diff --git a/dist-esm/billboard.js b/dist-esm/billboard.js index 26bfe0c54..34463186a 100644 --- a/dist-esm/billboard.js +++ b/dist-esm/billboard.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */ import { pointer, select, namespaces, selectAll } from 'd3-selection'; import { timeParse, utcParse, timeFormat, utcFormat } from 'd3-time-format'; @@ -4455,10 +4455,23 @@ var data$1 = { return (isBoolean(dataLabels) && dataLabels) || (isObjectType(dataLabels) && notEmpty(dataLabels)); }, + /** + * Determine if has null value + * @param {Array} targets Data array to be evaluated + * @returns {boolean} + * @private + */ + hasNullDataValue: function (targets) { + return targets.some(function (_a) { + var value = _a.value; + return value === null; + }); + }, /** * Get data index from the event coodinates * @param {Event} event Event object * @returns {number} + * @private */ getDataIndexFromEvent: function (event) { var $$ = this; @@ -7020,15 +7033,13 @@ var redraw = { /** * Get scale * @param {string} [type='linear'] Scale type - * @param {number} [min] Min range - * @param {number} [max] Max range + * @param {number|Date} [min] Min range + * @param {number|Date} [max] Max range * @returns {d3.scaleLinear|d3.scaleTime} scale * @private */ function getScale(type, min, max) { if (type === void 0) { type = "linear"; } - if (min === void 0) { min = 0; } - if (max === void 0) { max = 1; } var scale = ({ linear: scaleLinear, log: scaleSymlog, @@ -7038,7 +7049,7 @@ function getScale(type, min, max) { })[type](); scale.type = type; /_?log/.test(type) && scale.clamp(true); - return scale.range([min, max]); + return scale.range([min !== null && min !== void 0 ? min : 0, max !== null && max !== void 0 ? max : 1]); } var scale = { /** @@ -17497,8 +17508,12 @@ var optDataAxis = { * - The object type should be as: * - start {number}: Start data point number. If not set, the start will be the first data point. * - [end] {number}: End data point number. If not set, the end will be the last data point. - * - [style.dasharray="2 2"] {object}: The first number specifies a distance for the filled area, and the second a distance for the unfilled area. - * - **NOTE:** Currently this option supports only line chart and dashed style. If this option specified, the line will be dashed only in the regions. + * - [style.dasharray="2 2"] {string}: The first number specifies a distance for the filled area, and the second a distance for the unfilled area. + * - **NOTE:** + * - Supports only line type. + * - `start` and `end` values should be in the exact x value range. + * - Dashes will be applied using `stroke-dasharray` css property when data doesn't contain nullish value(or nullish value with `line.connectNull=true` set). + * - Dashes will be applied via path command when data contains nullish value. * @name data․regions * @memberof Options * @type {object} @@ -19622,6 +19637,63 @@ var shapeGauge = { * Copyright (c) 2017 ~ present NAVER Corp. * billboard.js project is licensed under the MIT license */ +/** + * Get stroke dasharray style value + * @param {number} start Start position in path length + * @param {number} end End position in path length + * @param {Array} pattern Dash array pattern + * @param {boolean} isLastX Weather is last x tick + * @returns {object} Stroke dasharray style value and its length + * @private + */ +function getStrokeDashArray(start, end, pattern, isLastX) { + if (isLastX === void 0) { isLastX = false; } + var dash = start ? [start, 0] : pattern; + var _loop_1 = function (i) { + pattern.forEach(function (v) { + if (i + v <= end) { + dash.push(v); + } + i += v; + }); + out_i_1 = i; + }; + var out_i_1; + for (var i = start ? start : pattern.reduce(function (a, c) { return a + c; }); i <= end;) { + _loop_1(i); + i = out_i_1; + } + // make sure to have even length + dash.length % 2 !== 0 && dash.push(isLastX ? pattern[1] : 0); + return { + dash: dash.join(" "), + length: dash.reduce(function (a, b) { return a + b; }, 0) + }; +} +/** + * Get regions data + * @param {Array} d Data object + * @param {object} _regions regions to be set + * @param {boolean} isTimeSeries whether is time series + * @returns {object} Regions data + * @private + */ +function getRegions(d, _regions, isTimeSeries) { + var $$ = this; + var regions = []; + var dasharray = "2 2"; // default value + // Check start/end of regions + if (isDefined(_regions)) { + var getValue = function (v, def) { return (isUndefined(v) ? def : (isTimeSeries ? parseDate.call($$, v) : v)); }; + for (var i = 0, reg = void 0; (reg = _regions[i]); i++) { + var start = getValue(reg.start, d[0].x); + var end = getValue(reg.end, d[d.length - 1].x); + var style = reg.style || { dasharray: dasharray }; + regions[i] = { start: start, end: end, style: style }; + } + } + return regions; +} var shapeLine = { initLine: function () { var $el = this.$el; @@ -19778,27 +19850,28 @@ var shapeLine = { return path || "M 0 0"; }; }, + /** + * Set regions dasharray and get path + * @param {Array} d Data object + * @param {Function} x x scale function + * @param {Function} y y scale function + * @param {object} _regions regions to be set + * @returns {stirng} Path string + * @private + */ lineWithRegions: function (d, x, y, _regions) { var $$ = this; var config = $$.config; var isRotated = config.axis_rotated; var isTimeSeries = $$.axis.isTimeSeries(); - var regions = []; var dasharray = "2 2"; // default value + var regions = getRegions.bind($$)(d, _regions, isTimeSeries); + // when contains null data, can't apply style dashed + var hasNullDataValue = $$.hasNullDataValue(d); var xp; var yp; var diff; var diffx2; - // Check start/end of regions - if (isDefined(_regions)) { - var getValue = function (v, def) { return (isUndefined(v) ? def : (isTimeSeries ? parseDate.call($$, v) : v)); }; - for (var i = 0, reg = void 0; (reg = _regions[i]); i++) { - var start = getValue(reg.start, d[0].x); - var end = getValue(reg.end, d[d.length - 1].x); - var style = reg.style || { dasharray: dasharray }; - regions[i] = { start: start, end: end, style: style }; - } - } // Set scales var xValue = isRotated ? function (dt) { return y(dt.value); } : function (dt) { return x(dt.x); }; var yValue = isRotated ? function (dt) { return x(dt.x); } : function (dt) { return y(dt.value); }; @@ -19832,20 +19905,28 @@ var shapeLine = { if (d0.value > d1.value && (isRotated ? yDiff < y0 : yDiff > y0)) { yDiff = y0; } - var points = isRotated ? - [ - [yValue, xValue], - [yDiff, xDiff] - ] : - [ - [xValue, yValue], - [xDiff, yDiff] - ]; + var points = [ + [xValue, yValue], + [xDiff, yDiff] + ]; + isRotated && points.forEach(function (v) { return v.reverse(); }); return generateM(points); }; // Generate var axisType = { x: $$.axis.getAxisType("x"), y: $$.axis.getAxisType("y") }; var path = ""; + // clone the line path to be used to get length value + var target = $$.$el.line.filter(function (_a) { + var id = _a.id; + return id === d[0].id; + }); + var tempNode = target.clone().style("display", "none"); + var getLength = function (node, path) { return node.attr("d", path).node().getTotalLength(); }; + var dashArray = { + dash: [], + lastLength: 0 + }; + var isLastX = false; for (var i = 0, data = void 0; (data = d[i]); i++) { var prevData = d[i - 1]; var hasPrevData = prevData && isValue(prevData.value); @@ -19863,20 +19944,54 @@ var shapeLine = { // Draw with region // TODO: Fix for horizotal charts xp = getScale(axisType.x, prevData.x, data.x); yp = getScale(axisType.y, prevData.value, data.value); - var dx = x(data.x) - x(prevData.x); - var dy = y(data.value) - y(prevData.value); - var dd = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2)); - diff = style[0] / dd; // dash - diffx2 = diff * style[1]; // gap - for (var j = diff; j <= 1; j += diffx2) { - path += sWithRegion(prevData, data, j, diff); - // to make sure correct line drawing - if (j + diffx2 >= 1) { - path += sWithRegion(prevData, data, 1, 0); + // when it contains null data, dash can't be applied with style + if (hasNullDataValue) { + var dx = x(data.x) - x(prevData.x); + var dy = y(data.value) - y(prevData.value); + var dd = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2)); + diff = style[0] / dd; // dash + diffx2 = diff * style[1]; // gap + for (var j = diff; j <= 1; j += diffx2) { + path += sWithRegion(prevData, data, j, diff); + // to make sure correct line drawing + if (j + diffx2 >= 1) { + path += sWithRegion(prevData, data, 1, 0); + } } } + else { + var points = []; + isLastX = data.x === d[d.length - 1].x; + if (isTimeSeries) { + var x0 = +prevData.x; + var xv0 = new Date(x0); + var xv1 = new Date(x0 + (+data.x - x0)); + points = [ + [x(xv0), y(yp(0))], // M + [x(xv1), y(yp(1))] // L + ]; + } + else { + points = [ + [x(xp(0)), y(yp(0))], // M + [x(xp(1)), y(yp(1))] // L + ]; + } + isRotated && points.forEach(function (v) { return v.reverse(); }); + var startLength = getLength(tempNode, path); + var endLength = getLength(tempNode, path += "L".concat(points[1].join(","))); + var strokeDashArray = getStrokeDashArray(startLength - dashArray.lastLength, endLength - dashArray.lastLength, style, isLastX); + dashArray.lastLength += strokeDashArray.length; + dashArray.dash.push(strokeDashArray.dash); + } } } + if (dashArray.dash.length) { + // if not last x tick, then should draw rest of path that is not drawed yet + !isLastX && dashArray.dash.push(getLength(tempNode, path)); + tempNode.remove(); + target.attr("stroke-dasharray", dashArray.dash.join(" ")); + } return path; }, isWithinRegions: function (withinX, withinRegions) { @@ -24263,7 +24378,7 @@ var zoomModule = function () { var defaults = {}; /** * @namespace bb - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */ var bb = { /** @@ -24273,7 +24388,7 @@ var bb = { * bb.version; // "1.0.0" * @memberof bb */ - version: "3.12.4-nightly-20240724004639", + version: "3.12.4-nightly-20240726004631", /** * Generate chart * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when: diff --git a/dist-esm/plugin/billboardjs-plugin-bubblecompare.js b/dist-esm/plugin/billboardjs-plugin-bubblecompare.js index e83a969d1..6fc2a487c 100644 --- a/dist-esm/plugin/billboardjs-plugin-bubblecompare.js +++ b/dist-esm/plugin/billboardjs-plugin-bubblecompare.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -100,7 +100,7 @@ var Plugin = /** @class */ (function () { delete _this[key]; }); }; - Plugin.version = "3.12.4-nightly-20240724004639"; + Plugin.version = "3.12.4-nightly-20240726004631"; return Plugin; }()); diff --git a/dist-esm/plugin/billboardjs-plugin-sparkline.js b/dist-esm/plugin/billboardjs-plugin-sparkline.js index 72423aeae..16a811964 100644 --- a/dist-esm/plugin/billboardjs-plugin-sparkline.js +++ b/dist-esm/plugin/billboardjs-plugin-sparkline.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -443,7 +443,7 @@ var Plugin = /** @class */ (function () { delete _this[key]; }); }; - Plugin.version = "3.12.4-nightly-20240724004639"; + Plugin.version = "3.12.4-nightly-20240726004631"; return Plugin; }()); diff --git a/dist-esm/plugin/billboardjs-plugin-stanford.js b/dist-esm/plugin/billboardjs-plugin-stanford.js index cb1a04491..a7c1c468b 100644 --- a/dist-esm/plugin/billboardjs-plugin-stanford.js +++ b/dist-esm/plugin/billboardjs-plugin-stanford.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -501,7 +501,7 @@ var Plugin = /** @class */ (function () { delete _this[key]; }); }; - Plugin.version = "3.12.4-nightly-20240724004639"; + Plugin.version = "3.12.4-nightly-20240726004631"; return Plugin; }()); diff --git a/dist-esm/plugin/billboardjs-plugin-tableview.js b/dist-esm/plugin/billboardjs-plugin-tableview.js index 004e49d3c..3358245da 100644 --- a/dist-esm/plugin/billboardjs-plugin-tableview.js +++ b/dist-esm/plugin/billboardjs-plugin-tableview.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -290,7 +290,7 @@ var Plugin = /** @class */ (function () { delete _this[key]; }); }; - Plugin.version = "3.12.4-nightly-20240724004639"; + Plugin.version = "3.12.4-nightly-20240726004631"; return Plugin; }()); diff --git a/dist-esm/plugin/billboardjs-plugin-textoverlap.js b/dist-esm/plugin/billboardjs-plugin-textoverlap.js index 24a0cc851..3ae567f6b 100644 --- a/dist-esm/plugin/billboardjs-plugin-textoverlap.js +++ b/dist-esm/plugin/billboardjs-plugin-textoverlap.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -267,7 +267,7 @@ var Plugin = /** @class */ (function () { delete _this[key]; }); }; - Plugin.version = "3.12.4-nightly-20240724004639"; + Plugin.version = "3.12.4-nightly-20240726004631"; return Plugin; }()); diff --git a/dist/billboard.css b/dist/billboard.css index a8c46f5e0..5c2617a39 100644 --- a/dist/billboard.css +++ b/dist/billboard.css @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */ /*-- Chart --*/ .bb svg { diff --git a/dist/billboard.js b/dist/billboard.js index f32023413..caf4cecfb 100644 --- a/dist/billboard.js +++ b/dist/billboard.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') @@ -4083,10 +4083,20 @@ function getDataKeyForJson(keysParam, config) { const dataLabels = this.config.data_labels; return isBoolean(dataLabels) && dataLabels || isObjectType(dataLabels) && notEmpty(dataLabels); }, + /** + * Determine if has null value + * @param {Array} targets Data array to be evaluated + * @returns {boolean} + * @private + */ + hasNullDataValue(targets) { + return targets.some(({ value }) => value === null); + }, /** * Get data index from the event coodinates * @param {Event} event Event object * @returns {number} + * @private */ getDataIndexFromEvent(event) { const $$ = this; @@ -6270,7 +6280,7 @@ var external_commonjs_d3_transition_commonjs2_d3_transition_amd_d3_transition_ro ;// CONCATENATED MODULE: ./src/ChartInternal/internals/scale.ts -function getScale(type = "linear", min = 0, max = 1) { +function getScale(type = "linear", min, max) { const scale = { linear: external_commonjs_d3_scale_commonjs2_d3_scale_amd_d3_scale_root_d3_.scaleLinear, log: external_commonjs_d3_scale_commonjs2_d3_scale_amd_d3_scale_root_d3_.scaleSymlog, @@ -6280,7 +6290,7 @@ function getScale(type = "linear", min = 0, max = 1) { }[type](); scale.type = type; /_?log/.test(type) && scale.clamp(true); - return scale.range([min, max]); + return scale.range([min != null ? min : 0, max != null ? max : 1]); } /* harmony default export */ var scale = ({ /** @@ -17075,8 +17085,12 @@ var axis_spreadValues = (a, b) => { * - The object type should be as: * - start {number}: Start data point number. If not set, the start will be the first data point. * - [end] {number}: End data point number. If not set, the end will be the last data point. - * - [style.dasharray="2 2"] {object}: The first number specifies a distance for the filled area, and the second a distance for the unfilled area. - * - **NOTE:** Currently this option supports only line chart and dashed style. If this option specified, the line will be dashed only in the regions. + * - [style.dasharray="2 2"] {string}: The first number specifies a distance for the filled area, and the second a distance for the unfilled area. + * - **NOTE:** + * - Supports only line type. + * - `start` and `end` values should be in the exact x value range. + * - Dashes will be applied using `stroke-dasharray` css property when data doesn't contain nullish value(or nullish value with `line.connectNull=true` set). + * - Dashes will be applied via path command when data contains nullish value. * @name data․regions * @memberof Options * @type {object} @@ -18925,6 +18939,37 @@ function updateRatio(data) { +function getStrokeDashArray(start, end, pattern, isLastX = false) { + const dash = start ? [start, 0] : pattern; + for (let i = start ? start : pattern.reduce((a, c) => a + c); i <= end; ) { + pattern.forEach((v) => { + if (i + v <= end) { + dash.push(v); + } + i += v; + }); + } + dash.length % 2 !== 0 && dash.push(isLastX ? pattern[1] : 0); + return { + dash: dash.join(" "), + length: dash.reduce((a, b) => a + b, 0) + }; +} +function getRegions(d, _regions, isTimeSeries) { + const $$ = this; + const regions = []; + const dasharray = "2 2"; + if (isDefined(_regions)) { + const getValue = (v, def) => isUndefined(v) ? def : isTimeSeries ? parseDate.call($$, v) : v; + for (let i = 0, reg; reg = _regions[i]; i++) { + const start = getValue(reg.start, d[0].x); + const end = getValue(reg.end, d[d.length - 1].x); + const style = reg.style || { dasharray }; + regions[i] = { start, end, style }; + } + } + return regions; +} /* harmony default export */ var line = ({ initLine() { const { $el } = this; @@ -19046,26 +19091,27 @@ function updateRatio(data) { return path || "M 0 0"; }; }, + /** + * Set regions dasharray and get path + * @param {Array} d Data object + * @param {Function} x x scale function + * @param {Function} y y scale function + * @param {object} _regions regions to be set + * @returns {stirng} Path string + * @private + */ lineWithRegions(d, x, y, _regions) { const $$ = this; const { config } = $$; const isRotated = config.axis_rotated; const isTimeSeries = $$.axis.isTimeSeries(); - const regions = []; const dasharray = "2 2"; + const regions = getRegions.bind($$)(d, _regions, isTimeSeries); + const hasNullDataValue = $$.hasNullDataValue(d); let xp; let yp; let diff; let diffx2; - if (isDefined(_regions)) { - const getValue = (v, def) => isUndefined(v) ? def : isTimeSeries ? parseDate.call($$, v) : v; - for (let i = 0, reg; reg = _regions[i]; i++) { - const start = getValue(reg.start, d[0].x); - const end = getValue(reg.end, d[d.length - 1].x); - const style = reg.style || { dasharray }; - regions[i] = { start, end, style }; - } - } const xValue = isRotated ? (dt) => y(dt.value) : (dt) => x(dt.x); const yValue = isRotated ? (dt) => x(dt.x) : (dt) => y(dt.value); const generateM = (points) => `M${points[0][0]},${points[0][1]}L${points[1][0]},${points[1][1]}`; @@ -19090,17 +19136,23 @@ function updateRatio(data) { if (d0.value > d1.value && (isRotated ? yDiff < y0 : yDiff > y0)) { yDiff = y0; } - const points = isRotated ? [ - [yValue2, xValue2], - [yDiff, xDiff] - ] : [ + const points = [ [xValue2, yValue2], [xDiff, yDiff] ]; + isRotated && points.forEach((v) => v.reverse()); return generateM(points); }; const axisType = { x: $$.axis.getAxisType("x"), y: $$.axis.getAxisType("y") }; let path = ""; + const target = $$.$el.line.filter(({ id }) => id === d[0].id); + const tempNode = target.clone().style("display", "none"); + const getLength = (node, path2) => node.attr("d", path2).node().getTotalLength(); + const dashArray = { + dash: [], + lastLength: 0 + }; + let isLastX = false; for (let i = 0, data; data = d[i]; i++) { const prevData = d[i - 1]; const hasPrevData = prevData && isValue(prevData.value); @@ -19114,19 +19166,58 @@ function updateRatio(data) { style = ((style == null ? void 0 : style.dasharray) || dasharray).split(" ").map(Number); xp = getScale(axisType.x, prevData.x, data.x); yp = getScale(axisType.y, prevData.value, data.value); - const dx = x(data.x) - x(prevData.x); - const dy = y(data.value) - y(prevData.value); - const dd = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2)); - diff = style[0] / dd; - diffx2 = diff * style[1]; - for (let j = diff; j <= 1; j += diffx2) { - path += sWithRegion(prevData, data, j, diff); - if (j + diffx2 >= 1) { - path += sWithRegion(prevData, data, 1, 0); + if (hasNullDataValue) { + const dx = x(data.x) - x(prevData.x); + const dy = y(data.value) - y(prevData.value); + const dd = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2)); + diff = style[0] / dd; + diffx2 = diff * style[1]; + for (let j = diff; j <= 1; j += diffx2) { + path += sWithRegion(prevData, data, j, diff); + if (j + diffx2 >= 1) { + path += sWithRegion(prevData, data, 1, 0); + } } + } else { + let points = []; + isLastX = data.x === d[d.length - 1].x; + if (isTimeSeries) { + const x0 = +prevData.x; + const xv0 = new Date(x0); + const xv1 = new Date(x0 + (+data.x - x0)); + points = [ + [x(xv0), y(yp(0))], + // M + [x(xv1), y(yp(1))] + // L + ]; + } else { + points = [ + [x(xp(0)), y(yp(0))], + // M + [x(xp(1)), y(yp(1))] + // L + ]; + } + isRotated && points.forEach((v) => v.reverse()); + const startLength = getLength(tempNode, path); + const endLength = getLength(tempNode, path += `L${points[1].join(",")}`); + const strokeDashArray = getStrokeDashArray( + startLength - dashArray.lastLength, + endLength - dashArray.lastLength, + style, + isLastX + ); + dashArray.lastLength += strokeDashArray.length; + dashArray.dash.push(strokeDashArray.dash); } } } + if (dashArray.dash.length) { + !isLastX && dashArray.dash.push(getLength(tempNode, path)); + tempNode.remove(); + target.attr("stroke-dasharray", dashArray.dash.join(" ")); + } return path; }, isWithinRegions(withinX, withinRegions) { @@ -21543,7 +21634,7 @@ const bb = { * bb.version; // "1.0.0" * @memberof bb */ - version: "3.12.4-nightly-20240724004639", + version: "3.12.4-nightly-20240726004631", /** * Generate chart * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when: diff --git a/dist/billboard.min.css b/dist/billboard.min.css index 678e829ae..07d13187f 100644 --- a/dist/billboard.min.css +++ b/dist/billboard.min.css @@ -5,5 +5,5 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */.bb svg{font:10px sans-serif;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bb path,.bb line{fill:none;stroke:#000}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;user-select:none}.bb-legend-item-tile,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle,.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{font-size:13px;fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:1em;fill:#fff;white-space:nowrap}.bb-grid{pointer-events:none}.bb-grid line{stroke:#aaa}.bb-grid text{fill:#aaa}.bb-xgrid,.bb-ygrid{stroke-dasharray:3 3}.bb-text.bb-empty{fill:gray;font-size:2em}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:1px;stroke:#fff}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{font-size:12px;user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font:14px sans-serif}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;user-select:none}.bb-tooltip{border-collapse:collapse;border-spacing:0;background-color:#fff;empty-cells:show;opacity:.9;box-shadow:7px 7px 12px -9px #777;white-space:nowrap}.bb-tooltip tr{border:1px solid #CCC}.bb-tooltip th{background-color:#aaa;font-size:14px;padding:2px 5px;text-align:left;color:#fff}.bb-tooltip td{font-size:13px;padding:3px 6px;background-color:#fff;border-left:1px dotted #999}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:10px;height:10px;margin-right:6px}.bb-tooltip.value{text-align:right}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-max,.bb-chart-arcs .bb-chart-arcs-gauge-min{fill:#777}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{font-size:11px;border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer} diff --git a/dist/billboard.min.js b/dist/billboard.min.js index 966123885..6273ea62f 100644 --- a/dist/billboard.min.js +++ b/dist/billboard.min.js @@ -5,29 +5,29 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 - */(function(lt,Wt){if(typeof exports=="object"&&typeof module=="object")module.exports=Wt(require("d3-axis"),require("d3-brush"),require("d3-drag"),require("d3-dsv"),require("d3-ease"),require("d3-hierarchy"),require("d3-interpolate"),require("d3-scale"),require("d3-selection"),require("d3-shape"),require("d3-time-format"),require("d3-transition"),require("d3-zoom"));else if(typeof define=="function"&&define.amd)define(["d3-axis","d3-brush","d3-drag","d3-dsv","d3-ease","d3-hierarchy","d3-interpolate","d3-scale","d3-selection","d3-shape","d3-time-format","d3-transition","d3-zoom"],Wt);else{var ce=typeof exports=="object"?Wt(require("d3-axis"),require("d3-brush"),require("d3-drag"),require("d3-dsv"),require("d3-ease"),require("d3-hierarchy"),require("d3-interpolate"),require("d3-scale"),require("d3-selection"),require("d3-shape"),require("d3-time-format"),require("d3-transition"),require("d3-zoom")):Wt(lt.d3,lt.d3,lt.d3,lt.d3,lt.d3,lt.d3,lt.d3,lt.d3,lt.d3,lt.d3,lt.d3,lt.d3,lt.d3);for(var de in ce)(typeof exports=="object"?exports:lt)[de]=ce[de]}})(this,function(We,lt,Wt,ce,de,Pi,Oi,Ii,Di,zi,Fi,Mi,Xi){return function(){"use strict";var Bi=[,,function(O){O.exports=Di},function(O){O.exports=Fi},function(O){O.exports=lt},function(O){O.exports=ce},function(O){O.exports=Wt},function(O){O.exports=Ii},function(O){O.exports=Mi},function(O){O.exports=zi},function(O){O.exports=Xi},function(O){O.exports=We},function(O){O.exports=de},function(O){O.exports=Oi},function(O){O.exports=Pi}],Ue={};function j(O){var pt=Ue[O];if(pt!==void 0)return pt.exports;var w=Ue[O]={exports:{}};return Bi[O](w,w.exports,j),w.exports}(function(){j.d=function(O,pt){for(var w in pt)j.o(pt,w)&&!j.o(O,w)&&Object.defineProperty(O,w,{enumerable:!0,get:pt[w]})}})(),function(){j.o=function(O,pt){return Object.prototype.hasOwnProperty.call(O,pt)}}(),function(){j.r=function(O){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(O,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(O,"__esModule",{value:!0})}}();var we={};return function(){j.r(we),j.d(we,{bb:function(){return Ei},default:function(){return Ei}});var O={};j.r(O),j.d(O,{selection:function(){return Ps},subchart:function(){return Os},zoom:function(){return Is}});var pt={};j.r(pt),j.d(pt,{area:function(){return ci},areaLineRange:function(){return di},areaSpline:function(){return hi},areaSplineRange:function(){return gi},areaStep:function(){return fi},areaStepRange:function(){return ui},bar:function(){return Ti},bubble:function(){return Ai},candlestick:function(){return wi},donut:function(){return mi},funnel:function(){return Ri},gauge:function(){return $i},line:function(){return pi},pie:function(){return yi},polar:function(){return bi},radar:function(){return vi},scatter:function(){return Si},spline:function(){return xi},step:function(){return _i},treemap:function(){return Ci}});var w=j(2),ue=j(3),Ni=Object.defineProperty,Ze=Object.getOwnPropertySymbols,Gi=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,qe=(e,t,s)=>t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,H=(e,t)=>{for(var s in t||(t={}))Gi.call(t,s)&&qe(e,s,t[s]);if(Ze)for(var s of Ze(t))Vi.call(t,s)&&qe(e,s,t[s]);return e};const I={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},N={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},he={area:"bb-area",areas:"bb-areas"},st={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},$t={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},wt={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},ct={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},Se={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Mt={dragarea:"bb-dragarea",INCLUDED:"_included_"},ne={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},xt={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},V={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},St={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},yt={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},W={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},J={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Lt={level:"bb-level",levels:"bb-levels"},Ke={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},ae={region:"bb-region",regions:"bb-regions"},q={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},Q={shape:"bb-shape",shapes:"bb-shapes"},Je={brush:"bb-brush",subchart:"bb-subchart"},ut={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},ge={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Qe={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Re={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var X=H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H(H({},I),N),he),st),$t),wt),ct),Se),Mt),xt),V),St),yt),W),ne),J),Ke),ae),q),Q),Je),ut),ge),Qe),Re),Yi={boost_useCssRule:!1,boost_useWorker:!1},ji={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Hi={legend_contents_bindto:void 0,legend_contents_template:"{=TITLE}",legend_equally:!1,legend_hide:!1,legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_interaction:!0,legend_item_dblclick:!1,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_format:void 0,legend_padding:0,legend_position:"bottom",legend_show:!0,legend_tooltip:!1,legend_usePoint:!1},Wi={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_mode:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,resize_timer:!0,onclick:void 0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},Ui={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},Zi={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:void 0,tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:()=>{},tooltip_onhide:()=>{},tooltip_onshown:()=>{},tooltip_onhidden:()=>{},tooltip_order:null},qi={data_x:void 0,data_idConverter:e=>e,data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_groupsZeroAs:"positive",data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:()=>{},data_onover:()=>{},data_onout:()=>{},data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},Ki={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},fe=j(4);function Ji(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Qi(e){const t=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",s=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",i=a=>setTimeout(a,1),n=a=>clearTimeout(a);return[t?e.requestAnimationFrame:i,t?e.cancelAnimationFrame:n,s?e.requestIdleCallback:i,s?e.cancelIdleCallback:n]}const U=Ji(),it=U==null?void 0:U.document,[tn,xr,ts,_r]=Qi(U);var en=Object.defineProperty,es=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,ss=(e,t,s)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,is=(e,t)=>{for(var s in t||(t={}))sn.call(t,s)&&ss(e,s,t[s]);if(es)for(var s of es(t))nn.call(t,s)&&ss(e,s,t[s]);return e};const z=e=>e||e===0,L=e=>typeof e=="function",G=e=>typeof e=="string",k=e=>typeof e=="number",tt=e=>typeof e=="undefined",Y=e=>typeof e!="undefined",Ce=e=>typeof e=="boolean",an=e=>Math.ceil(e/10)*10,pe=e=>Math.ceil(e)+.5,Xt=e=>e[1]-e[0],Tt=e=>typeof e=="object",bt=e=>tt(e)||e===null||G(e)&&e.length===0||Tt(e)&&!(e instanceof Date)&&Object.keys(e).length===0||k(e)&&isNaN(e),et=e=>!bt(e),B=e=>Array.isArray(e),M=e=>e&&!(e!=null&&e.nodeType)&&Tt(e)&&!B(e);function Pt(e,t,s){return Y(e[t])?e[t]:s}function on(e,t){let s=!1;return Object.keys(e).forEach(i=>e[i]===t&&(s=!0)),s}function Z(e,t,...s){const i=L(e);return i&&e.call(t,...s),i}function xe(e,t){let s=0;const i=function(...n){!--s&&t.apply(this,...n)};"duration"in e?e.each(()=>++s).on("end",i):(++s,e.call(i))}function Ee(e){return G(e)?e.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):e}function oe(e,t,s=[-1,1],i=!1){if(!(!e||!G(t)))if(t.indexOf(` + * @version 3.12.4-nightly-20240726004631 + */(function(dt,Zt){if(typeof exports=="object"&&typeof module=="object")module.exports=Zt(require("d3-axis"),require("d3-brush"),require("d3-drag"),require("d3-dsv"),require("d3-ease"),require("d3-hierarchy"),require("d3-interpolate"),require("d3-scale"),require("d3-selection"),require("d3-shape"),require("d3-time-format"),require("d3-transition"),require("d3-zoom"));else if(typeof define=="function"&&define.amd)define(["d3-axis","d3-brush","d3-drag","d3-dsv","d3-ease","d3-hierarchy","d3-interpolate","d3-scale","d3-selection","d3-shape","d3-time-format","d3-transition","d3-zoom"],Zt);else{var ue=typeof exports=="object"?Zt(require("d3-axis"),require("d3-brush"),require("d3-drag"),require("d3-dsv"),require("d3-ease"),require("d3-hierarchy"),require("d3-interpolate"),require("d3-scale"),require("d3-selection"),require("d3-shape"),require("d3-time-format"),require("d3-transition"),require("d3-zoom")):Zt(dt.d3,dt.d3,dt.d3,dt.d3,dt.d3,dt.d3,dt.d3,dt.d3,dt.d3,dt.d3,dt.d3,dt.d3,dt.d3);for(var he in ue)(typeof exports=="object"?exports:dt)[he]=ue[he]}})(this,function(Ue,dt,Zt,ue,he,Pi,Oi,Ii,Di,zi,Fi,Mi,Xi){return function(){"use strict";var Bi=[,,function(D){D.exports=Di},function(D){D.exports=Fi},function(D){D.exports=dt},function(D){D.exports=ue},function(D){D.exports=Zt},function(D){D.exports=Ii},function(D){D.exports=Mi},function(D){D.exports=zi},function(D){D.exports=Xi},function(D){D.exports=Ue},function(D){D.exports=he},function(D){D.exports=Oi},function(D){D.exports=Pi}],Ze={};function W(D){var xt=Ze[D];if(xt!==void 0)return xt.exports;var S=Ze[D]={exports:{}};return Bi[D](S,S.exports,W),S.exports}(function(){W.d=function(D,xt){for(var S in xt)W.o(xt,S)&&!W.o(D,S)&&Object.defineProperty(D,S,{enumerable:!0,get:xt[S]})}})(),function(){W.o=function(D,xt){return Object.prototype.hasOwnProperty.call(D,xt)}}(),function(){W.r=function(D){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(D,"__esModule",{value:!0})}}();var Re={};return function(){W.r(Re),W.d(Re,{bb:function(){return ki},default:function(){return ki}});var D={};W.r(D),W.d(D,{selection:function(){return Os},subchart:function(){return Is},zoom:function(){return Ds}});var xt={};W.r(xt),W.d(xt,{area:function(){return di},areaLineRange:function(){return ui},areaSpline:function(){return gi},areaSplineRange:function(){return fi},areaStep:function(){return pi},areaStepRange:function(){return hi},bar:function(){return Ai},bubble:function(){return wi},candlestick:function(){return Si},donut:function(){return $i},funnel:function(){return Ci},gauge:function(){return yi},line:function(){return xi},pie:function(){return bi},polar:function(){return vi},radar:function(){return Ti},scatter:function(){return Ri},spline:function(){return _i},step:function(){return mi},treemap:function(){return Ei}});var S=W(2),ge=W(3),Ni=Object.defineProperty,qe=Object.getOwnPropertySymbols,Gi=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,Ke=(e,t,s)=>t in e?Ni(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,U=(e,t)=>{for(var s in t||(t={}))Gi.call(t,s)&&Ke(e,s,t[s]);if(qe)for(var s of qe(t))Vi.call(t,s)&&Ke(e,s,t[s]);return e};const z={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},G={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},fe={area:"bb-area",areas:"bb-areas"},ot={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},bt={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},Et={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},ut={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},Ce={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Bt={dragarea:"bb-dragarea",INCLUDED:"_included_"},oe={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},_t={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},j={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},kt={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},vt={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},Z={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},et={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Dt={level:"bb-level",levels:"bb-levels"},Je={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},re={region:"bb-region",regions:"bb-regions"},J={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},st={shape:"bb-shape",shapes:"bb-shapes"},Qe={brush:"bb-brush",subchart:"bb-subchart"},gt={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},pe={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},ts={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Ee={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var B=U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U(U({},z),G),fe),ot),bt),Et),ut),Ce),Bt),_t),j),kt),vt),Z),oe),et),Je),re),J),st),Qe),gt),pe),ts),Ee),Yi={boost_useCssRule:!1,boost_useWorker:!1},ji={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Hi={legend_contents_bindto:void 0,legend_contents_template:"{=TITLE}",legend_equally:!1,legend_hide:!1,legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_interaction:!0,legend_item_dblclick:!1,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_format:void 0,legend_padding:0,legend_position:"bottom",legend_show:!0,legend_tooltip:!1,legend_usePoint:!1},Wi={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_mode:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,resize_timer:!0,onclick:void 0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},Ui={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},Zi={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:void 0,tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:()=>{},tooltip_onhide:()=>{},tooltip_onshown:()=>{},tooltip_onhidden:()=>{},tooltip_order:null},qi={data_x:void 0,data_idConverter:e=>e,data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_groupsZeroAs:"positive",data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:()=>{},data_onover:()=>{},data_onout:()=>{},data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},Ki={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},xe=W(4);function Ji(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Qi(e){const t=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",s=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",i=a=>setTimeout(a,1),n=a=>clearTimeout(a);return[t?e.requestAnimationFrame:i,t?e.cancelAnimationFrame:n,s?e.requestIdleCallback:i,s?e.cancelIdleCallback:n]}const q=Ji(),lt=q==null?void 0:q.document,[tn,mr,es,$r]=Qi(q);var en=Object.defineProperty,ss=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,nn=Object.prototype.propertyIsEnumerable,is=(e,t,s)=>t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ns=(e,t)=>{for(var s in t||(t={}))sn.call(t,s)&&is(e,s,t[s]);if(ss)for(var s of ss(t))nn.call(t,s)&&is(e,s,t[s]);return e};const F=e=>e||e===0,P=e=>typeof e=="function",V=e=>typeof e=="string",L=e=>typeof e=="number",it=e=>typeof e=="undefined",H=e=>typeof e!="undefined",ke=e=>typeof e=="boolean",an=e=>Math.ceil(e/10)*10,_e=e=>Math.ceil(e)+.5,Nt=e=>e[1]-e[0],wt=e=>typeof e=="object",Tt=e=>it(e)||e===null||V(e)&&e.length===0||wt(e)&&!(e instanceof Date)&&Object.keys(e).length===0||L(e)&&isNaN(e),nt=e=>!Tt(e),N=e=>Array.isArray(e),X=e=>e&&!(e!=null&&e.nodeType)&&wt(e)&&!N(e);function zt(e,t,s){return H(e[t])?e[t]:s}function on(e,t){let s=!1;return Object.keys(e).forEach(i=>e[i]===t&&(s=!0)),s}function K(e,t,...s){const i=P(e);return i&&e.call(t,...s),i}function me(e,t){let s=0;const i=function(...n){!--s&&t.apply(this,...n)};"duration"in e?e.each(()=>++s).on("end",i):(++s,e.call(i))}function Le(e){return V(e)?e.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):e}function le(e,t,s=[-1,1],i=!1){if(!(!e||!V(t)))if(t.indexOf(` `)===-1)e.text(t);else{const n=[e.text(),t].map(a=>a.replace(/[\s\n]/g,""));if(n[0]!==n[1]){const a=t.split(` -`),o=i?a.length-1:1;e.html(""),a.forEach((r,l)=>{e.append("tspan").attr("x",0).attr("dy",`${l===0?s[0]*o:s[1]}em`).text(r)})}}}function ns(e){const{x:t,y:s,width:i,height:n}=e.getBBox();return[{x:t,y:s+n},{x:t,y:s},{x:t+i,y:s},{x:t+i,y:s+n}]}function as(e){const{width:t,height:s}=e.getBoundingClientRect(),i=ns(e),n=i[0].x,a=Math.min(i[0].y,i[1].y);return{x:n,y:a,width:t,height:s}}function mt(e,t){var s;const i=e&&((s=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:s[0]);let n=[0,0];try{n=(0,w.pointer)(i||e,t)}catch(a){}return n.map(a=>isNaN(a)?0:a)}function os(e){const{event:t,$el:s}=e,i=s.subchart.main||s.main;let n;return t&&t.type==="brush"?n=t.selection:i&&(n=i.select(".bb-brush").node())&&(n=(0,fe.brushSelection)(n)),n}function _e(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Rt(e=!0,t=0,s=1e4){const i=U.crypto||U.msCrypto,n=i?t+i.getRandomValues(new Uint32Array(1))[0]%(s-t+1):Math.floor(Math.random()*(s-t)+t);return e?String(n):n}function ke(e,t,s,i,n){if(s>i)return-1;const a=Math.floor((s+i)/2);let{x:o,w:r=0}=e[a];return n&&(o=e[a].y,r=e[a].h),t>=o&&t<=o+r?a:t{if(M(s)&&s.constructor){const i=new s.constructor;for(const n in s)i[n]=t(s[n]);return i}return s};return e.map(s=>t(s)).reduce((s,i)=>is(is({},s),i))}function at(e={},t){B(t)&&t.forEach(s=>at(e,s));for(const s in t)/^\d+$/.test(s)||s in e||(e[s]=t[s]);return e}const gt=e=>e.charAt(0).toUpperCase()+e.slice(1);function ln(e,t="-"){return e.split(t).map((s,i)=>i?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():s.toLowerCase()).join("")}const Bt=e=>[].slice.call(e);function cn(e,t,s){const{rootSelector:i="",sheet:n}=e,o=`${i} ${(r=>r.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${s.join(";")}}`;return n[n.insertRule?"insertRule":"addRule"](o,n.cssRules.length)}function dn(e){let t=[];return e.forEach(s=>{var i;try{s.cssRules&&s.cssRules.length&&(t=t.concat(Bt(s.cssRules)))}catch(n){(i=U.console)==null||i.warn(`Error while reading rules from ${s.href}: ${n.toString()}`)}}),t}function ls(e){var t,s,i,n;return{x:((s=(t=U.pageXOffset)!=null?t:U.scrollX)!=null?s:0)+e.scrollLeft,y:((n=(i=U.pageYOffset)!=null?i:U.scrollY)!=null?n:0)+e.scrollTop}}function cs(e){const t=e?e.transform:null,s=t&&t.baseVal;return s&&s.numberOfItems?s.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Le(e){const t=e[0]instanceof Date,s=(t?e.map(Number):e).filter((i,n,a)=>a.indexOf(i)===n);return t?s.map(i=>new Date(i)):s}function Pe(e){return e&&e.length?e.reduce((t,s)=>t.concat(s)):[]}function Ut(e,...t){if(!t.length||t.length===1&&!t[0])return e;const s=t.shift();return M(e)&&M(s)&&Object.keys(s).forEach(i=>{const n=s[i];M(n)?(!e[i]&&(e[i]={}),e[i]=Ut(e[i],n)):e[i]=B(n)?n.concat():n}),Ut(e,...t)}function Zt(e,t=!0){let s;return e[0]instanceof Date?s=t?(i,n)=>i-n:(i,n)=>n-i:t&&!e.every(isNaN)?s=(i,n)=>i-n:t||(s=(i,n)=>i>n&&-1||iet(i));return s.length?k(s[0])?s=Math[e](...s):s[0]instanceof Date&&(s=Zt(s,e==="min")[0]):s=void 0,s}const me=(e,t,s=1)=>{const i=[],n=Math.max(0,Math.ceil((t-e)/s))|0;for(let a=e;a{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,s,i=e())=>{t.dispatchEvent(new MouseEvent(s,i))}}catch(t){return(s,i,n=e())=>{const a=it.createEvent("MouseEvent");a.initMouseEvent(i,n.bubbles,n.cancelable,U,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),s.dispatchEvent(a)}}})(),touch:(e,t,s)=>{const i=new Touch(Ut({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},s));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[i],targetTouches:[],changedTouches:[i]}))}};function $e(e,t){let s=e;for(const i in t)s=s.replace(new RegExp(`{=${i}}`,"g"),t[i]);return s}function _t(e){var t;let s;if(e instanceof Date)s=e;else if(G(e)){const{config:i,format:n}=this;s=(t=n.dataTime(i.data_xFormat)(e))!=null?t:new Date(e)}else k(e)&&!isNaN(e)&&(s=new Date(+e));return(!s||isNaN(+s))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),s}function re(){var e,t;return((e=it)==null?void 0:e.hidden)===!1||((t=it)==null?void 0:t.visibilityState)==="visible"}function hn(e,t){const{DocumentTouch:s,matchMedia:i,navigator:n}=U;let a=!1;if(t)if(n&&"maxTouchPoints"in n)a=n.maxTouchPoints>0;else if("ontouchmove"in U||s&&it instanceof s)a=!0;else if(i!=null&&i("(pointer:coarse)").matches)a=!0;else{const r=n.userAgent;a=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(r)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(r)}return e&&((i==null?void 0:i("any-hover:hover").matches)||(i==null?void 0:i("any-pointer:fine").matches))&&"mouse"||a&&"touch"||"mouse"}function ds(e,t){t()===!1?tn(()=>ds(e,t)):e()}var gn=Object.defineProperty,us=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,Oe=(e,t,s)=>t in e?gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,hs=(e,t)=>{for(var s in t||(t={}))fn.call(t,s)&&Oe(e,s,t[s]);if(us)for(var s of us(t))pn.call(t,s)&&Oe(e,s,t[s]);return e},xn=(e,t,s)=>Oe(e,typeof t!="symbol"?t+"":t,s);const gs=class Li{static setOptions(t){this.data=t.reduce((s,i)=>hs(hs({},s),i),this.data)}constructor(){return rn(Wi,Yi,qi,ji,Ki,Hi,Ui,Zi,Li.data)}};xn(gs,"data",{});let Nt=gs;class _n{constructor(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},axisTooltip:{x:null,y:null,y2:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,candlestick:null,line:null,area:null,circle:null,radar:null,text:null,grid:{main:null,x:null,y:null},gridLines:{main:null,x:null,y:null},region:{main:null,list:null},eventRect:null,zoomResetBtn:null}}}class mn{constructor(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasFunnel:!1,hasRadar:!1,hasTreemap:!1,cssRule:{},current:{domain:void 0,width:0,height:0,dataMax:0,maxTickSize:{x:{width:0,height:0,ticks:[],clipPath:0,domain:""},y:{width:0,height:0,domain:""},y2:{width:0,height:0,domain:""}},types:[],needle:void 0},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},event:null,dragStart:null,dragging:!1,flowing:!1,cancelClick:!1,mouseover:!1,rendered:!1,transiting:!1,redrawing:!1,resizing:!1,toggling:!1,zooming:!1,hasNegativeValue:!1,hasPositiveValue:!0,orgAreaOpacity:"0.2",orgConfig:{},hiddenTargetIds:[],hiddenLegendIds:[],focusedTargetIds:[],defocusedTargetIds:[],radius:0,innerRadius:0,outerRadius:void 0,innerRadiusRatio:0,gaugeArcWidth:0,radiusExpanded:0,xgridAttr:{x1:null,x2:null,y1:null,y2:null}}}}const fs={element:_n,state:mn};class $n{constructor(){Object.keys(fs).forEach(t=>{this[t]=new fs[t]})}getStore(t){return this[t]}}var yn=Object.defineProperty,bn=(e,t,s)=>t in e?yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,vn=(e,t,s)=>bn(e,typeof t!="symbol"?t+"":t,s);const ft={bubbleBaseLength:"$baseLength",colorPattern:"__colorPattern__",dataMinMax:"$dataMinMax",dataTotalSum:"$dataTotalSum",dataTotalPerIndex:"$totalPerIndex",legendItemTextBox:"legendItemTextBox",radarPoints:"$radarPoints",radarTextWidth:"$radarTextWidth",setOverOut:"setOverOut",callOverOutForTouch:"callOverOutForTouch",textRect:"textRect"};class Tn{constructor(){vn(this,"cache",{})}add(t,s,i=!1){return this.cache[t]=i?this.cloneTarget(s):s,this.cache[t]}remove(t){(G(t)?[t]:t).forEach(s=>delete this.cache[s])}get(t,s=!1){if(s&&Array.isArray(t)){const i=[];for(let n=0,a;a=t[n];n++)a in this.cache&&i.push(this.cloneTarget(this.cache[a]));return i}else{const i=this.cache[t];return z(i)?i:null}}reset(t){const s=this;for(const i in s.cache)(t||/^\$/.test(i))&&(s.cache[i]=null)}cloneTarget(t){return{id:t.id,id_org:t.id_org,values:t.values.map(s=>({x:s.x,value:s.value,id:s.id}))}}}const C={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",AREA_STEP_RANGE:"area-step-range",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",FUNNEL:"funnel",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step",TREEMAP:"treemap"},Ie={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",AREA_STEP_RANGE:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",FUNNEL:"initFunnel",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine",TREEMAP:"initTreemap"},Ot={Area:[C.AREA,C.AREA_SPLINE,C.AREA_SPLINE_RANGE,C.AREA_LINE_RANGE,C.AREA_STEP,C.AREA_STEP_RANGE],AreaRange:[C.AREA_SPLINE_RANGE,C.AREA_LINE_RANGE,C.AREA_STEP_RANGE],Arc:[C.PIE,C.DONUT,C.GAUGE,C.POLAR,C.RADAR],Line:[C.LINE,C.SPLINE,C.AREA,C.AREA_SPLINE,C.AREA_SPLINE_RANGE,C.AREA_LINE_RANGE,C.STEP,C.AREA_STEP,C.AREA_STEP_RANGE],Step:[C.STEP,C.AREA_STEP,C.AREA_STEP_RANGE],Spline:[C.SPLINE,C.AREA_SPLINE,C.AREA_SPLINE_RANGE]};function An(e){const t=e,{config:s}=t;let i="";if(bt(s.data_type||s.data_types)&&!t[Ie.LINE])i="line";else for(const n in Ie){const a=C[n];if(t.hasType(a)&&!t[Ie[n]]){i=a;break}}i&&wn(`Please, make sure if %c${ln(i)}`,"module has been imported and specified correctly.")}function wn(e,t){var s;const i="[billboard.js]";throw((s=U.console)==null?void 0:s.error)&&(console.error(`\u274C ${i} ${e}`,"background:red;color:white;display:block;font-size:15px",t),console.info("%c\u2139\uFE0F","font-size:15px","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality")),Error(`${i} ${e.replace(/\%c([a-z-]+)/i,"'$1' ")} ${t}`)}const{setTimeout:Sn,clearTimeout:Rn}=U;function Cn(e){const t=[];let s;const i=function(){i.clear(),e===!1?ts(()=>{t.forEach(n=>n())},{timeout:200}):s=Sn(()=>{t.forEach(n=>n())},k(e)?e:200)};return i.clear=()=>{s&&(Rn(s),s=null)},i.add=n=>t.push(n),i.remove=n=>t.splice(t.indexOf(n),1),i}function ps(){let e=[];const t=function(s,i){function n(){var a;let o=0;for(let r=0,l;l=e[r];r++){if(l===!0||(a=l.empty)!=null&&a.call(l)){o++;continue}if(re()===!1){o=e.length;break}try{l.transition()}catch(c){o++}}return o===e.length}ds(()=>{i==null||i()},n)};return t.add=function(s){B(s)?e=e.concat(s):e.push(s)},t}const De={};function En(e,t){var s;const i=e.toString(),n=i.replace(/(function|[\s\W\n])/g,"").substring(0,15);return n in De||(De[n]=new U.Blob([`${(s=t==null?void 0:t.map(String).join(";"))!=null?s:""} +`),o=i?a.length-1:1;e.html(""),a.forEach((r,l)=>{e.append("tspan").attr("x",0).attr("dy",`${l===0?s[0]*o:s[1]}em`).text(r)})}}}function as(e){const{x:t,y:s,width:i,height:n}=e.getBBox();return[{x:t,y:s+n},{x:t,y:s},{x:t+i,y:s},{x:t+i,y:s+n}]}function os(e){const{width:t,height:s}=e.getBoundingClientRect(),i=as(e),n=i[0].x,a=Math.min(i[0].y,i[1].y);return{x:n,y:a,width:t,height:s}}function $t(e,t){var s;const i=e&&((s=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:s[0]);let n=[0,0];try{n=(0,S.pointer)(i||e,t)}catch(a){}return n.map(a=>isNaN(a)?0:a)}function rs(e){const{event:t,$el:s}=e,i=s.subchart.main||s.main;let n;return t&&t.type==="brush"?n=t.selection:i&&(n=i.select(".bb-brush").node())&&(n=(0,xe.brushSelection)(n)),n}function $e(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Lt(e=!0,t=0,s=1e4){const i=q.crypto||q.msCrypto,n=i?t+i.getRandomValues(new Uint32Array(1))[0]%(s-t+1):Math.floor(Math.random()*(s-t)+t);return e?String(n):n}function Pe(e,t,s,i,n){if(s>i)return-1;const a=Math.floor((s+i)/2);let{x:o,w:r=0}=e[a];return n&&(o=e[a].y,r=e[a].h),t>=o&&t<=o+r?a:t{if(X(s)&&s.constructor){const i=new s.constructor;for(const n in s)i[n]=t(s[n]);return i}return s};return e.map(s=>t(s)).reduce((s,i)=>ns(ns({},s),i))}function ct(e={},t){N(t)&&t.forEach(s=>ct(e,s));for(const s in t)/^\d+$/.test(s)||s in e||(e[s]=t[s]);return e}const ft=e=>e.charAt(0).toUpperCase()+e.slice(1);function ln(e,t="-"){return e.split(t).map((s,i)=>i?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():s.toLowerCase()).join("")}const Gt=e=>[].slice.call(e);function cn(e,t,s){const{rootSelector:i="",sheet:n}=e,o=`${i} ${(r=>r.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${s.join(";")}}`;return n[n.insertRule?"insertRule":"addRule"](o,n.cssRules.length)}function dn(e){let t=[];return e.forEach(s=>{var i;try{s.cssRules&&s.cssRules.length&&(t=t.concat(Gt(s.cssRules)))}catch(n){(i=q.console)==null||i.warn(`Error while reading rules from ${s.href}: ${n.toString()}`)}}),t}function cs(e){var t,s,i,n;return{x:((s=(t=q.pageXOffset)!=null?t:q.scrollX)!=null?s:0)+e.scrollLeft,y:((n=(i=q.pageYOffset)!=null?i:q.scrollY)!=null?n:0)+e.scrollTop}}function ds(e){const t=e?e.transform:null,s=t&&t.baseVal;return s&&s.numberOfItems?s.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Oe(e){const t=e[0]instanceof Date,s=(t?e.map(Number):e).filter((i,n,a)=>a.indexOf(i)===n);return t?s.map(i=>new Date(i)):s}function Ie(e){return e&&e.length?e.reduce((t,s)=>t.concat(s)):[]}function qt(e,...t){if(!t.length||t.length===1&&!t[0])return e;const s=t.shift();return X(e)&&X(s)&&Object.keys(s).forEach(i=>{const n=s[i];X(n)?(!e[i]&&(e[i]={}),e[i]=qt(e[i],n)):e[i]=N(n)?n.concat():n}),qt(e,...t)}function Kt(e,t=!0){let s;return e[0]instanceof Date?s=t?(i,n)=>i-n:(i,n)=>n-i:t&&!e.every(isNaN)?s=(i,n)=>i-n:t||(s=(i,n)=>i>n&&-1||int(i));return s.length?L(s[0])?s=Math[e](...s):s[0]instanceof Date&&(s=Kt(s,e==="min")[0]):s=void 0,s}const ye=(e,t,s=1)=>{const i=[],n=Math.max(0,Math.ceil((t-e)/s))|0;for(let a=e;a{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,s,i=e())=>{t.dispatchEvent(new MouseEvent(s,i))}}catch(t){return(s,i,n=e())=>{const a=lt.createEvent("MouseEvent");a.initMouseEvent(i,n.bubbles,n.cancelable,q,0,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),s.dispatchEvent(a)}}})(),touch:(e,t,s)=>{const i=new Touch(qt({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},s));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[i],targetTouches:[],changedTouches:[i]}))}};function be(e,t){let s=e;for(const i in t)s=s.replace(new RegExp(`{=${i}}`,"g"),t[i]);return s}function mt(e){var t;let s;if(e instanceof Date)s=e;else if(V(e)){const{config:i,format:n}=this;s=(t=n.dataTime(i.data_xFormat)(e))!=null?t:new Date(e)}else L(e)&&!isNaN(e)&&(s=new Date(+e));return(!s||isNaN(+s))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),s}function ce(){var e,t;return((e=lt)==null?void 0:e.hidden)===!1||((t=lt)==null?void 0:t.visibilityState)==="visible"}function hn(e,t){const{DocumentTouch:s,matchMedia:i,navigator:n}=q;let a=!1;if(t)if(n&&"maxTouchPoints"in n)a=n.maxTouchPoints>0;else if("ontouchmove"in q||s&< instanceof s)a=!0;else if(i!=null&&i("(pointer:coarse)").matches)a=!0;else{const r=n.userAgent;a=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(r)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(r)}return e&&((i==null?void 0:i("any-hover:hover").matches)||(i==null?void 0:i("any-pointer:fine").matches))&&"mouse"||a&&"touch"||"mouse"}function us(e,t){t()===!1?tn(()=>us(e,t)):e()}var gn=Object.defineProperty,hs=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,De=(e,t,s)=>t in e?gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,gs=(e,t)=>{for(var s in t||(t={}))fn.call(t,s)&&De(e,s,t[s]);if(hs)for(var s of hs(t))pn.call(t,s)&&De(e,s,t[s]);return e},xn=(e,t,s)=>De(e,typeof t!="symbol"?t+"":t,s);const fs=class Li{static setOptions(t){this.data=t.reduce((s,i)=>gs(gs({},s),i),this.data)}constructor(){return rn(Wi,Yi,qi,ji,Ki,Hi,Ui,Zi,Li.data)}};xn(fs,"data",{});let Vt=fs;class _n{constructor(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},axisTooltip:{x:null,y:null,y2:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,candlestick:null,line:null,area:null,circle:null,radar:null,text:null,grid:{main:null,x:null,y:null},gridLines:{main:null,x:null,y:null},region:{main:null,list:null},eventRect:null,zoomResetBtn:null}}}class mn{constructor(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasFunnel:!1,hasRadar:!1,hasTreemap:!1,cssRule:{},current:{domain:void 0,width:0,height:0,dataMax:0,maxTickSize:{x:{width:0,height:0,ticks:[],clipPath:0,domain:""},y:{width:0,height:0,domain:""},y2:{width:0,height:0,domain:""}},types:[],needle:void 0},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},event:null,dragStart:null,dragging:!1,flowing:!1,cancelClick:!1,mouseover:!1,rendered:!1,transiting:!1,redrawing:!1,resizing:!1,toggling:!1,zooming:!1,hasNegativeValue:!1,hasPositiveValue:!0,orgAreaOpacity:"0.2",orgConfig:{},hiddenTargetIds:[],hiddenLegendIds:[],focusedTargetIds:[],defocusedTargetIds:[],radius:0,innerRadius:0,outerRadius:void 0,innerRadiusRatio:0,gaugeArcWidth:0,radiusExpanded:0,xgridAttr:{x1:null,x2:null,y1:null,y2:null}}}}const ps={element:_n,state:mn};class $n{constructor(){Object.keys(ps).forEach(t=>{this[t]=new ps[t]})}getStore(t){return this[t]}}var yn=Object.defineProperty,bn=(e,t,s)=>t in e?yn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,vn=(e,t,s)=>bn(e,typeof t!="symbol"?t+"":t,s);const pt={bubbleBaseLength:"$baseLength",colorPattern:"__colorPattern__",dataMinMax:"$dataMinMax",dataTotalSum:"$dataTotalSum",dataTotalPerIndex:"$totalPerIndex",legendItemTextBox:"legendItemTextBox",radarPoints:"$radarPoints",radarTextWidth:"$radarTextWidth",setOverOut:"setOverOut",callOverOutForTouch:"callOverOutForTouch",textRect:"textRect"};class Tn{constructor(){vn(this,"cache",{})}add(t,s,i=!1){return this.cache[t]=i?this.cloneTarget(s):s,this.cache[t]}remove(t){(V(t)?[t]:t).forEach(s=>delete this.cache[s])}get(t,s=!1){if(s&&Array.isArray(t)){const i=[];for(let n=0,a;a=t[n];n++)a in this.cache&&i.push(this.cloneTarget(this.cache[a]));return i}else{const i=this.cache[t];return F(i)?i:null}}reset(t){const s=this;for(const i in s.cache)(t||/^\$/.test(i))&&(s.cache[i]=null)}cloneTarget(t){return{id:t.id,id_org:t.id_org,values:t.values.map(s=>({x:s.x,value:s.value,id:s.id}))}}}const E={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",AREA_STEP_RANGE:"area-step-range",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",FUNNEL:"funnel",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step",TREEMAP:"treemap"},ze={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",AREA_STEP_RANGE:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",FUNNEL:"initFunnel",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine",TREEMAP:"initTreemap"},Ft={Area:[E.AREA,E.AREA_SPLINE,E.AREA_SPLINE_RANGE,E.AREA_LINE_RANGE,E.AREA_STEP,E.AREA_STEP_RANGE],AreaRange:[E.AREA_SPLINE_RANGE,E.AREA_LINE_RANGE,E.AREA_STEP_RANGE],Arc:[E.PIE,E.DONUT,E.GAUGE,E.POLAR,E.RADAR],Line:[E.LINE,E.SPLINE,E.AREA,E.AREA_SPLINE,E.AREA_SPLINE_RANGE,E.AREA_LINE_RANGE,E.STEP,E.AREA_STEP,E.AREA_STEP_RANGE],Step:[E.STEP,E.AREA_STEP,E.AREA_STEP_RANGE],Spline:[E.SPLINE,E.AREA_SPLINE,E.AREA_SPLINE_RANGE]};function An(e){const t=e,{config:s}=t;let i="";if(Tt(s.data_type||s.data_types)&&!t[ze.LINE])i="line";else for(const n in ze){const a=E[n];if(t.hasType(a)&&!t[ze[n]]){i=a;break}}i&&wn(`Please, make sure if %c${ln(i)}`,"module has been imported and specified correctly.")}function wn(e,t){var s;const i="[billboard.js]";throw((s=q.console)==null?void 0:s.error)&&(console.error(`\u274C ${i} ${e}`,"background:red;color:white;display:block;font-size:15px",t),console.info("%c\u2139\uFE0F","font-size:15px","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality")),Error(`${i} ${e.replace(/\%c([a-z-]+)/i,"'$1' ")} ${t}`)}const{setTimeout:Sn,clearTimeout:Rn}=q;function Cn(e){const t=[];let s;const i=function(){i.clear(),e===!1?es(()=>{t.forEach(n=>n())},{timeout:200}):s=Sn(()=>{t.forEach(n=>n())},L(e)?e:200)};return i.clear=()=>{s&&(Rn(s),s=null)},i.add=n=>t.push(n),i.remove=n=>t.splice(t.indexOf(n),1),i}function xs(){let e=[];const t=function(s,i){function n(){var a;let o=0;for(let r=0,l;l=e[r];r++){if(l===!0||(a=l.empty)!=null&&a.call(l)){o++;continue}if(ce()===!1){o=e.length;break}try{l.transition()}catch(c){o++}}return o===e.length}us(()=>{i==null||i()},n)};return t.add=function(s){N(s)?e=e.concat(s):e.push(s)},t}const Fe={};function En(e,t){var s;const i=e.toString(),n=i.replace(/(function|[\s\W\n])/g,"").substring(0,15);return n in Fe||(Fe[n]=new q.Blob([`${(s=t==null?void 0:t.map(String).join(";"))!=null?s:""} self.onmessage=function({data}) { const result = (${i}).apply(null, data); self.postMessage(result); - };`],{type:"text/javascript"})),U.URL.createObjectURL(De[n])}function kn(e){const t=new U.Worker(e);return t.onerror=function(s){console.error?console.error(s):console.log(s)},t}function ze(e=!0,t,s,i){let n=function(...a){const o=t(...a);s(o)};if(U.Worker&&e){const a=En(t,i),o=kn(a);n=function(...r){o.postMessage(r),o.onmessage=function(l){return U.URL.revokeObjectURL(a),s(l.data)}}}return n}var ye=j(5);function Fe(e){const t=[];return e.forEach(function(s,i){const n=s[0];s.forEach(function(a,o){if(o>0){if(typeof t[o-1]=="undefined"&&(t[o-1]={}),typeof a=="undefined")throw new Error(`Source data is missing a component at (${i}, ${o})!`);t[o-1][n]=a}})}),t}function Me(e){const t=e[0],s=[];return e.forEach(function(i,n){if(n>0){const a={};i.forEach(function(o,r){if(typeof o=="undefined")throw new Error(`Source data is missing a component at (${n}, ${r})!`);a[t[r]]=o}),s.push(a)}}),s}function xs(e,t){const s=[];let i,n;if(Array.isArray(e)){const a=function(o,r){if(o[r]!==void 0)return o[r];const c=r.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let u=o;return c.some(function(d){return!(u=u&&d in u?u[d]:void 0)}),u};t.x?i=t.value.concat(t.x):i=t.value,s.push(i),e.forEach(function(o){const r=i.map(function(l){let c=a(o,l);return typeof c=="undefined"&&(c=null),c});s.push(r)}),n=Me(s)}else Object.keys(e).forEach(function(a){var o;const r=e[a].concat();(o=r.unshift)==null||o.call(r,a),s.push(r)}),n=Fe(s);return n}function Ln(e,t="csv",s,i,n){const a=new XMLHttpRequest,o={csv:Pn,tsv:On,json:xs};a.open("GET",e),s&&Object.keys(s).forEach(function(r){a.setRequestHeader(r,s[r])}),a.onreadystatechange=function(){if(a.readyState===4)if(a.status===200){const r=a.responseText;r&&n.call(this,o[t](t==="json"?JSON.parse(r):r,i))}else throw new Error(`${e}: Something went wrong loading!`)},a.send()}function _s(e,t){const s=e.rows(t);let i;return s.length===1?(i=[{}],s[0].forEach(n=>{i[0][n]=null})):i=e.parse(t),i}function Pn(e){return _s({rows:ye.csvParseRows,parse:ye.csvParse},e)}function On(e){return _s({rows:ye.tsvParseRows,parse:ye.tsvParse},e)}function ms(e,t){const s=e||(t==null?void 0:t.data_keys);return s!=null&&s.x&&(t.data_x=s.x),s}var In={convertData(e,t){const{config:s}=this,i=s.boost_useWorker;let n=e;if(e.bindto&&(n={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(a=>{const o=`data_${a}`;o in e&&(n[a]=e[o])})),n.url&&t)Ln(n.url,n.mimeType,n.headers,ms(n.keys,s),t);else if(n.json)ze(i,xs,t,[Fe,Me])(n.json,ms(n.keys,s));else if(n.rows)ze(i,Me,t)(n.rows);else if(n.columns)ze(i,Fe,t)(n.columns);else if(e.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets(e,t){const s=this,{axis:i,config:n,state:a}=s,o=n.data_type;let r=!1,l=!1,c=!1;i&&(r=i.isCategorized(),l=i.isTimeSeries(),c=i.isCustomX());const u=Object.keys(e[0]||{}),d=u.length?u.filter(s.isNotX,s):[],h=u.length?u.filter(s.isX,s):[];let g;d.forEach(p=>{const _=this.getXKey(p);c||l?h.indexOf(_)>=0?g=(t&&s.data.xs[p]||[]).concat(e.map(x=>x[_]).filter(z).map((x,m)=>s.generateTargetX(x,p,m))):n.data_x?g=this.getOtherTargetXs():et(n.data_xs)&&(g=s.getXValuesOfXKey(_,s.data.targets)):g=e.map((x,m)=>m),g&&(this.data.xs[p]=g)}),d.forEach(p=>{if(!this.data.xs[p])throw new Error(`x is not defined for id = "${p}".`)});const f=d.map((p,_)=>{const x=n.data_idConverter.bind(s.api)(p),m=s.getXKey(p),b=c&&r,y=b&&e.map(T=>T.x).every(T=>n.axis_x_categories.indexOf(T)>-1),v=e.__append__,$=m===null&&v?s.api.data.values(p).length:0;return{id:x,id_org:p,values:e.map((T,S)=>{const A=T[m];let R=T[p],P;return R=R!==null&&!isNaN(R)&&!M(R)?+R:B(R)||M(R)?R:null,(b||a.hasRadar)&&_===0&&!tt(A)?(!y&&_===0&&S===0&&!v&&(n.axis_x_categories=[]),P=n.axis_x_categories.indexOf(A),P===-1&&(P=n.axis_x_categories.length,n.axis_x_categories.push(A))):P=s.generateTargetX(A,p,$+S),(tt(R)||s.data.xs[p].length<=S)&&(P=void 0),{x:P,value:R,id:x,index:-1}}).filter(T=>Y(T.x))}});if(f.forEach(p=>{var _;n.data_xSort&&(p.values=p.values.sort((x,m)=>{const b=x.x||x.x===0?x.x:1/0,y=m.x||m.x===0?m.x:1/0;return b-y})),p.values.forEach((x,m)=>x.index=m),(_=s.data.xs[p.id])==null||_.sort((x,m)=>x-m)}),a.hasNegativeValue=s.hasNegativeValueInTargets(f),a.hasPositiveValue=s.hasPositiveValueInTargets(f),o&&s.isValidChartType(o)){const p=s.mapToIds(f).filter(_=>!(_ in n.data_types)||!s.isValidChartType(n.data_types[_]));s.setTargetType(p,o)}return f.forEach(p=>s.cache.add(p.id_org,p,!0)),f}},Dn={isX(e){const t=this,{config:s}=t,i=s.data_x&&e===s.data_x,n=et(s.data_xs)&&on(s.data_xs,e);return i||n},isNotX(e){return!this.isX(e)},isStackNormalized(){const{config:e}=this;return!!(e.data_stack_normalize&&e.data_groups.length)},isGrouped(e){const t=this.config.data_groups;return e?t.some(s=>s.indexOf(e)>=0&&s.length>1):t.length>0},getXKey(e){const t=this,{config:s}=t;return s.data_x?s.data_x:et(s.data_xs)?s.data_xs[e]:null},getXValuesOfXKey(e,t){const s=this,i=t&&et(t)?s.mapToIds(t):[];let n;return i.forEach(a=>{s.getXKey(a)===e&&(n=s.data.xs[a])}),n},getIndexByX(e,t){const s=this;return t?t.indexOf(G(e)?e:+e):(s.filterByX(s.data.targets,e)[0]||{index:null}).index},getXValue(e,t){const s=this;return e in s.data.xs&&s.data.xs[e]&&z(s.data.xs[e][t])?s.data.xs[e][t]:t},getOtherTargetXs(){const e=this,t=Object.keys(e.data.xs);return t.length?e.data.xs[t[0]]:null},getOtherTargetX(e){const t=this.getOtherTargetXs();return t&&e{s.data_xs[i]=e[i]})},isMultipleX(){return!this.config.axis_x_forceAsSingle&&(et(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter"))},addName(e){const t=this,{config:s}=t;let i;return e&&(i=s.data_names[e.id],e.name=i!==void 0?i:e.id),e},getAllValuesOnIndex(e,t=!1){const s=this;let i=s.filterTargetsToShow(s.data.targets).map(n=>s.addName(s.getValueOnIndex(n.values,e)));return t&&(i=i.filter(n=>n&&"value"in n&&z(n.value))),i},getValueOnIndex(e,t){const s=e.filter(i=>i.index===t);return s.length?s[0]:null},updateTargetX(e,t){const s=this;e.forEach(i=>{i.values.forEach((n,a)=>{n.x=s.generateTargetX(t[a],i.id,a)}),s.data.xs[i.id]=t})},updateTargetXs(e,t){const s=this;e.forEach(i=>{t[i.id]&&s.updateTargetX([i],t[i.id])})},generateTargetX(e,t,s){const i=this,{axis:n}=i;let a=n!=null&&n.isCategorized()?s:e||s;if(n!=null&&n.isTimeSeries()){const o=_t.bind(i);a=o(e||i.getXValue(t,s))}else n!=null&&n.isCustomX()&&!(n!=null&&n.isCategorized())&&(a=z(e)?+e:i.getXValue(t,s));return a},updateXs(e){e.length&&(this.axis.xs=e.map(t=>t.x))},getPrevX(e){const t=this.axis.xs[e-1];return Y(t)?t:null},getNextX(e){const t=this.axis.xs[e+1];return Y(t)?t:null},getBaseValue(e){const t=this,{hasAxis:s}=t.state;let{value:i}=e;return i&&s&&(t.isAreaRangeType(e)?i=t.getRangedData(e,"mid"):t.isBubbleZType(e)&&(i=t.getBubbleZData(i,"y"))),i},getMinMaxValue(e){const t=this.getBaseValue.bind(this);let s,i;return(e||this.data.targets.map(n=>n.values)).forEach((n,a)=>{const o=n.map(t).filter(k);s=Math.min(a?s:1/0,...o),i=Math.max(a?i:-1/0,...o)}),{min:s,max:i}},getMinMaxData(){const e=this,t=ft.dataMinMax;let s=e.cache.get(t);if(!s){const i=e.data.targets.map(r=>r.values),n=e.getMinMaxValue(i);let a=[],o=[];i.forEach(r=>{const l=e.getFilteredDataByValue(r,n.min),c=e.getFilteredDataByValue(r,n.max);l.length&&(a=a.concat(l)),c.length&&(o=o.concat(c))}),e.cache.add(t,s={min:a,max:o})}return s},getTotalPerIndex(){const e=this,t=ft.dataTotalPerIndex;let s=e.cache.get(t);return(e.config.data_groups.length||e.isStackNormalized())&&!s&&(s=[],e.data.targets.forEach(i=>{i.values.forEach((n,a)=>{s[a]||(s[a]=0),s[a]+=k(n.value)?n.value:0})})),s},getTotalDataSum(e){const t=this,s=ft.dataTotalSum;let i=t.cache.get(s);if(!k(i)){const n=Pe(t.data.targets.map(a=>a.values)).map(a=>a.value);i=n.length?n.reduce((a,o)=>a+o):0,t.cache.add(s,i)}return e&&(i-=t.getHiddenTotalDataSum()),i},getHiddenTotalDataSum(){const e=this,{api:t,state:{hiddenTargetIds:s}}=e;let i=0;return s.length&&(i=t.data.values.bind(t)(s).reduce((n,a)=>n+a)),i},getFilteredDataByValue(e,t){return e.filter(s=>this.getBaseValue(s)===t)},getMaxDataCount(){return Math.max(...this.data.targets.map(e=>e.values.length),0)},getMaxDataCountTarget(){let e=this.filterTargetsToShow()||[];const t=e.length,s=this.config.axis_x_inverted;return t>1?(e=e.map(i=>i.values).reduce((i,n)=>i.concat(n)).map(i=>i.x),e=Zt(Le(e)).map((i,n,a)=>({x:i,index:s?a.length-n-1:n}))):t&&(e=e[0].values.concat()),e},mapToIds(e){return e.map(t=>t.id)},mapToTargetIds(e){const t=this;return e?B(e)?e.concat():[e]:t.mapToIds(t.data.targets)},hasTarget(e,t){const s=this.mapToIds(e);for(let i=0,n;n=s[i];i++)if(n===t)return!0;return!1},isTargetToShow(e){return this.state.hiddenTargetIds.indexOf(e)<0},isLegendToShow(e){return this.state.hiddenLegendIds.indexOf(e)<0},filterTargetsToShow(e){const t=this;return(e||t.data.targets).filter(s=>t.isTargetToShow(s.id))},mapTargetsToUniqueXs(e){const t=this,{axis:s}=t;let i=[];return e!=null&&e.length&&(i=Le(Pe(e.map(n=>n.values.map(a=>+a.x)))),i=s!=null&&s.isTimeSeries()?i.map(n=>new Date(+n)):i.map(Number)),Zt(i)},addTargetIds(e,t){const{state:s}=this;(B(t)?t:[t]).forEach(n=>{s[e].indexOf(n)<0&&s[e].push(n)})},removeTargetIds(e,t){const{state:s}=this;(B(t)?t:[t]).forEach(n=>{const a=s[e].indexOf(n);a>=0&&s[e].splice(a,1)})},addHiddenTargetIds(e){this.addTargetIds("hiddenTargetIds",e)},removeHiddenTargetIds(e){this.removeTargetIds("hiddenTargetIds",e)},addHiddenLegendIds(e){this.addTargetIds("hiddenLegendIds",e)},removeHiddenLegendIds(e){this.removeTargetIds("hiddenLegendIds",e)},getValuesAsIdKeyed(e){const t=this,{hasAxis:s}=t.state,i={},n=t.isMultipleX(),a=n?t.mapTargetsToUniqueXs(e).map(o=>G(o)?o:+o):null;return e.forEach(o=>{const r=[];o.values.filter(({value:l})=>z(l)||l===null).forEach(l=>{let{value:c}=l;c!==null&&t.isCandlestickType(l)&&(c=B(c)?c.slice(0,4):[c.open,c.high,c.low,c.close]),B(c)?r.push(...c):M(c)&&"high"in c?r.push(...Object.values(c)):t.isBubbleZType(l)?r.push(s&&t.getBubbleZData(c,"y")):n?r[t.getIndexByX(l.x,a)]=c:r.push(c)}),i[o.id]=r}),i},checkValueInTargets(e,t){const s=Object.keys(e);let i;for(let n=0;n1},hasNegativeValueInTargets(e){return this.checkValueInTargets(e,t=>t<0)},hasPositiveValueInTargets(e){return this.checkValueInTargets(e,t=>t>0)},orderTargets(e){const t=this,s=[...e],i=t.getSortCompareFn();return i&&s.sort(i),s},getSortCompareFn(e=!1){const t=this,{config:s}=t,i=s.data_order,n=/asc/i.test(i),a=/desc/i.test(i);let o;if(n||a){const r=(c,u)=>c+Math.abs(u.value),l=c=>k(c)?c:"values"in c?c.values.reduce(r,0):c.value;o=(c,u)=>{const d=l(c),h=l(u);return e?n?d-h:h-d:n?h-d:d-h}}else L(i)&&(o=i.bind(t.api));return o||null},filterByX(e,t){return Pe(e.map(s=>s.values)).filter(s=>s.x-t===0)},filterRemoveNull(e){return e.filter(t=>z(this.getBaseValue(t)))},filterByXDomain(e,t){return e.map(s=>({id:s.id,id_org:s.id_org,values:s.values.filter(i=>t[0]<=i.x&&i.x<=t[1])}))},hasDataLabel(){const e=this.config.data_labels;return Ce(e)&&e||Tt(e)&&et(e)},getDataIndexFromEvent(e){const t=this,{$el:s,config:i,state:{hasRadar:n,inputType:a,eventReceiver:{coords:o,rect:r}}}=t;let l;if(n){let c=e.target;/tspan/i.test(c.tagName)&&(c=c.parentNode);const u=(0,w.select)(c).datum();l=u&&Object.keys(u).length===1?u.index:void 0}else{const c=i.axis_rotated,u=ls(s.chart.node()),d=a==="touch"&&e.changedTouches?e.changedTouches[0]:e;l=ke(o,c?d.clientY+u.y-r.top:d.clientX+u.x-r.left,0,o.length-1,c)}return l},getDataLabelLength(e,t,s){const i=this,n=[0,0],a=1.3;return i.$el.chart.select("svg").selectAll(".dummy").data([e,t]).enter().append("text").text(o=>i.dataLabelFormat(o.id)(o)).each(function(o,r){n[r]=this.getBoundingClientRect()[s]*a}).remove(),n},isNoneArc(e){return this.hasTarget(this.data.targets,e.id)},isArc(e){return"data"in e&&this.hasTarget(this.data.targets,e.data.id)},findSameXOfValues(e,t){const s=e[t].x,i=[];let n;for(n=t-1;n>=0&&s===e[n].x;n--)i.push(e[n]);for(n=t;ns.findClosest(n.values,t));return s.findClosest(i,t)},findClosest(e,t){const s=this,{$el:{main:i}}=s,n=e.filter(r=>r&&z(r.value));let a,o;return n.filter(r=>s.isBarType(r.id)||s.isCandlestickType(r.id)).forEach(r=>{const l=s.isBarType(r.id)?`.${$t.chartBar}.${I.target}${s.getTargetSelectorSuffix(r.id)} .${$t.bar}-${r.index}`:`.${wt.chartCandlestick}.${I.target}${s.getTargetSelectorSuffix(r.id)} .${wt.candlestick}-${r.index} path`;!o&&s.isWithinBar(i.select(l).node())&&(o=r)}),n.filter(r=>!s.isBarType(r.id)&&!s.isCandlestickType(r.id)).forEach(r=>{const l=s.dist(r,t);a=s.getPointSensitivity(r),l{const{x:n,id:a}=i;s.push({x:n,id:a,value:i.value[0]}),s.push({x:n,id:a,value:i.value[2]})}),s},updateDataAttributes(e,t){const s=this,{config:i}=s,n=i[`data_${e}`];return tt(t)||(Object.keys(t).forEach(a=>{n[a]=t[a]}),s.redraw({withLegend:!0})),n},getRangedData(e,t="",s="areaRange"){const i=e==null?void 0:e.value;if(B(i)){if(s==="bar")return i.reduce((n,a)=>a-n);{const n={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[s].indexOf(t);return n>=0&&i?i[n]:void 0}}else if(i&&t)return i[t];return i},setRatioForGroupedData(e){const t=this,{config:s}=t;if(s.data_groups.length&&e.some(i=>t.isGrouped(i.id))){const i=n=>t.getRatio("index",n,!0);e.forEach(n=>{"values"in n?n.values.forEach(i):i(n)})}},getRatio(e,t,s=!1){const i=this,{config:n,state:a}=i,o=i.api;let r=0;if(t&&o.data.shown().length)if(r=t.ratio||t.value,e==="arc")if(i.pie.padAngle()())r=t.value/i.getTotalDataSum(!0);else{const l=n.gauge_fullCircle?i.getArcLength():i.getStartingAngle()*-2,c=i.hasType("gauge")?l:Math.PI*2;r=(t.endAngle-t.startAngle)/c}else if(e==="index"){const l=o.data.values.bind(o);let c=this.getTotalPerIndex();if(a.hiddenTargetIds.length){let d=l(a.hiddenTargetIds,!1);d.length&&(d=d.reduce((h,g)=>h.map((f,p)=>(k(f)?f:0)+g[p])),c=c.map((h,g)=>h-d[g]))}const u=c[t.index];t.ratio=k(t.value)&&c&&u?t.value/u:0,r=t.ratio}else if(e==="radar")r=parseFloat(String(Math.max(t.value,0)))/a.current.dataMax*n.radar_size_ratio;else if(e==="bar"){const c=i.getYScaleById.bind(i)(t.id).domain().reduce((u,d)=>d-u);r=c===0?0:Math.abs(i.getRangedData(t,null,e)/c)}else e==="treemap"&&(r/=i.getTotalDataSum(!0));return s&&r?r*100:r},updateDataIndexByX(e){const t=this,s=e.reduce((i,n,a)=>(i[Number(n.x)]=a,i),{});t.data.targets.forEach(i=>{i.values.forEach((n,a)=>{let o=s[Number(n.x)];o===void 0&&(o=a),n.index=o})})},isBubbleZType(e){return this.isBubbleType(e)&&(M(e.value)&&("z"in e.value||"y"in e.value)||B(e.value)&&e.value.length>=2)},isBarRangeType(e){const t=this,{value:s}=e;return t.isBarType(e)&&B(s)&&s.length>=2&&s.every(i=>k(i))},getDataById(e){var t;const s=this.cache.get(e)||this.api.data(e);return(t=s==null?void 0:s[0])!=null?t:s}};function $s(e,t=!1){const s=this,{api:i}=s;t&&s.api.flush(!0),e==null||e.call(i)}var zn={load(e,t){const s=this,{axis:i,data:n,org:a,scale:o}=s,{append:r}=t,l={domain:null,currentDomain:null,x:null};let c=e;c&&(t.filter&&(c=c.filter(t.filter)),(t.type||t.types)&&c.forEach(u=>{var d;const h=((d=t.types)==null?void 0:d[u.id])||t.type;s.setTargetType(u.id,h)}),n.targets.forEach(u=>{for(let d=0;d{const i=e.data||s;e.append&&(i.__append__=!0),i&&t.load(t.convertDataToTargets(i),e)}))},unload(e,t){var s;const i=this,{state:n,$el:a,$T:o}=i,r=!!((s=i.hasLegendDefsPoint)!=null&&s.call(i));let l=t,c=e;if(i.cache.reset(),l||(l=()=>{}),c=c.filter(d=>i.hasTarget(i.data.targets,d)),!c||c.length===0){l();return}const u=a.svg.selectAll(c.map(d=>i.selectorTarget(d)));o(u).style("opacity","0").remove().call(xe,l),c.forEach(d=>{var h;const g=i.getTargetSelectorSuffix(d);n.withoutFadeIn[d]=!1,a.legend&&a.legend.selectAll(`.${V.legendItem}${g}`).remove(),i.data.targets=i.data.targets.filter(f=>f.id!==d),r&&((h=a.defs)==null||h.select(`#${i.getDefsPointId(g)}`).remove())}),n.hasFunnel&&i.updateFunnel(i.data.targets),n.hasTreemap&&i.updateTargetsForTreemap(i.data.targets),i.updateTypesElements()}},ys=j(6),Fn={setExpand(e,t,s){const i=this,{config:n,$el:{circle:a}}=i;a&&n.point_focus_expand_enabled&&i.expandCircles(e,t,s),i.expandBarTypeShapes(!0,e,t,s)},expandBarTypeShapes(e=!0,t,s,i){const n=this;["bar","candlestick"].filter(a=>n.$el[a]).forEach(a=>{i&&n.$el[a].classed(I.EXPANDED,!1),n.getShapeByIndex(a,t,s).classed(I.EXPANDED,e)})},setOverOut(e,t){const s=this,{config:i,state:{hasFunnel:n,hasRadar:a,hasTreemap:o},$el:{main:r}}=s,l=M(t);if(l||t!==-1){const c=i[e?"data_onover":"data_onout"].bind(s.api);if(i.color_onover&&s.setOverColor(e,t,l),l){const u=s.getTargetSelectorSuffix(t.id),d=n||o?`${I.target+u} .${Q.shape}`:N.arc+u;c(t,r.select(`.${d}`).node())}else if(i.tooltip_grouped)e&&(a&&s.isPointFocusOnly()?s.showCircleFocus(s.getAllValuesOnIndex(t,!0)):s.setExpand(t,null,!0)),!s.isMultipleX()&&r.selectAll(`.${Q.shape}-${t}`).each(function(u){c(u,this)});else{const u=s.cache.get(ft.setOverOut)||[],d=r.selectAll(`.${Q.shape}-${t}`).filter(function(g){return s.isWithinShape(this,g)}),h=d.filter(function(){return u.every(g=>g!==this)});if(!e||d.empty()||u.length===h.size()&&h.nodes().every((g,f)=>g!==u[f]))for(;u.length;){const g=u.pop();i.data_onout.bind(s.api)((0,w.select)(g).datum(),g)}h.each(function(){e&&(c((0,w.select)(this).datum(),this),u.push(this))}),s.cache.add(ft.setOverOut,u)}}},callOverOutForTouch(e){const t=this,s=t.cache.get(ft.callOverOutForTouch);(M(e)&&s?e.id!==s.id:e!==s)&&((s||k(s))&&t.setOverOut(!1,s),(e||k(e))&&t.setOverOut(!0,e),t.cache.add(ft.callOverOutForTouch,e))},getDraggableSelection(){const e=this,{config:t,state:s}=e;return t.interaction_enabled&&t.data_selection_draggable&&e.drag?(0,ys.drag)().on("drag",function(i){s.event=i,e.drag(mt(i,this))}).on("start",function(i){s.event=i,e.dragstart(mt(i,this))}).on("end",i=>{s.event=i,e.dragend()}):()=>{}},dispatchEvent(e,t,s){var i,n;const a=this,{config:o,state:{eventReceiver:r,hasAxis:l,hasFunnel:c,hasRadar:u,hasTreemap:d},$el:{eventRect:h,funnel:g,radar:f,treemap:p}}=a;let _=(n=(c||d)&&r.rect||u&&f.axes.select(`.${st.axis}-${t} text`)||h||((i=a.getArcElementByIdOrIndex)==null?void 0:i.call(a,t)))==null?void 0:n.node();if(_){const x=a.isMultipleX(),m=o.axis_rotated;let{width:b,left:y,top:v}=_.getBoundingClientRect();if(l&&!u&&!x){const A=r.coords[t];A?(b=A.w,y+=A.x,v+=A.y):(b=0,y=0,v=0)}const $=y+(s?s[0]:0)+(x||m?0:b/2),T=v+(s?s[1]:0)+(m?4:0),S={screenX:$,screenY:T,clientX:$,clientY:T,bubbles:u};(c||d)&&(_=(g!=null?g:p).node()),un[/^(mouse|click)/.test(e)?"mouse":"touch"](_,e,S)}},setDragStatus(e){this.state.dragging=e},unbindZoomEvent(){const e=this,{$el:{eventRect:t,zoomResetBtn:s}}=e;t==null||t.on(".zoom wheel.zoom .drag",null),s==null||s.on("click",null).style("display","none")},unbindAllEvents(){var e;const t=this,{$el:{arcs:s,eventRect:i,legend:n,region:a,svg:o,treemap:r},brush:l}=t,c=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[o,i,a==null?void 0:a.list,l==null?void 0:l.getSelection(),s==null?void 0:s.selectAll("path"),n==null?void 0:n.selectAll("g"),r].forEach(u=>u==null?void 0:u.on(c,null)),(e=t.unbindZoomEvent)==null||e.call(t)}},Mn={categoryName(e){var t;const{axis_x_categories:s}=this.config;return(t=s==null?void 0:s[e])!=null?t:e}},Xn={generateClass(e,t){return` ${e} ${e+this.getTargetSelectorSuffix(t)}`},getClass(e,t){const s=/s$/.test(e),i=/^(area|arc|line|funnel|treemap)s?$/.test(e),n=s?"id":"index";return a=>{const o=a.data||a;return((t?this.generateClass(X[s?"shapes":"shape"],o[n]):"")+this.generateClass(X[e],o[i?"id":n])).trim()}},getChartClass(e){return t=>X[`chart${e}`]+this.classTarget((t.data?t.data:t).id)},generateExtraLineClass(){const t=this.config.line_classes||[],s=[];return function(i){var n;const a=i.id||((n=i.data)==null?void 0:n.id)||i;return s.indexOf(a)<0&&s.push(a),t[s.indexOf(a)%t.length]}},classRegion(e,t){return`${this.generateClass(X.region,t)} ${"class"in e?e.class:""}`},classTarget(e){const t=this.config.data_classes[e];let s="";return t&&(s=` ${X.target}-${t}`),this.generateClass(X.target,e)+s},classFocus(e){return this.classFocused(e)+this.classDefocused(e)},classFocused(e){return` ${this.state.focusedTargetIds.indexOf(e.id)>=0?X.focused:""}`},classDefocused(e){return` ${this.state.defocusedTargetIds.indexOf(e.id)>=0?X.defocused:""}`},getTargetSelectorSuffix(e){return(e||e===0?`-${e}`:"").replace(/[\x00-\x20\x7F-\xA0\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-")},selectorTarget(e,t="",s=""){const i=this.getTargetSelectorSuffix(e);return`${t}.${X.target+i} ${s}, ${t}.${X.circles+i} ${s}`},selectorTargets(e,t){const s=e||[];return s.length?s.map(i=>this.selectorTarget(i,t)):null},selectorLegend(e){return`.${X.legendItem+this.getTargetSelectorSuffix(e)}`},selectorLegends(e){return e!=null&&e.length?e.map(t=>this.selectorLegend(t)):null}},It=j(7);const Bn=(e,t,s)=>{const i=(0,w.select)(e.cloneNode(!0));return i.attr("id",s).insert("rect",":first-child").attr("width",i.attr("width")).attr("height",i.attr("height")).style("fill",t),{id:s,node:i.node()}};function Nn(e){const t=ft.colorPattern,{body:s}=it;let i=s[t];if(!i){const n=";",a=e.classed(Se.colorPattern,!0).style("background-image");e.classed(Se.colorPattern,!1),a.indexOf(n)>-1&&(i=a.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(n).map(o=>o.trim().replace(/[\"'\s]/g,"")).filter(Boolean),s[t]=i)}return i}const Gn=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var Vn={generateColor(){const e=this,{$el:t,config:s}=e,i=s.data_colors,n=s.data_color,a=[];let o=et(s.color_pattern)?s.color_pattern:(0,It.scaleOrdinal)(Nn(t.chart)||Gn).range();const r=o;if(L(s.color_tiles)){const l=s.color_tiles.bind(e.api)(),c=o.map((u,d)=>{const h=u.replace(/[#\(\)\s,]/g,""),g=`${e.state.datetimeId}-pattern-${h}-${d}`;return Bn(l[d%l.length],u,g)});o=c.map(u=>`url(#${u.id})`),e.patterns=c}return function(l){var c;const u=l.id||((c=l.data)==null?void 0:c.id)||l,d=e.isTypeOf(u,["line","spline","step"])||!s.data_types[u];let h;return L(i[u])?h=i[u].bind(e.api)(l):i[u]?h=i[u]:(a.indexOf(u)<0&&a.push(u),h=d?r[a.indexOf(u)%r.length]:o[a.indexOf(u)%o.length],i[u]=h),L(n)?n.bind(e.api)(h,l):h}},generateLevelColor(){const e=this,{config:t}=e,s=t.color_pattern,i=t.color_threshold,n=i.unit==="value",a=i.max||100,o=i.values&&i.values.length?i.values:[];return et(i)?function(r){const l=n?r:r*100/a;let c=s[s.length-1];for(let u=0,d=o.length;u{const r=`${n.datetimeId}-labels-bg${s.getTargetSelectorSuffix(o)}${G(e)?s.getTargetSelectorSuffix(e):""}`;i.defs.append("filter").attr("x",t.x).attr("y",t.y).attr("width",t.width).attr("height",t.height).attr("id",r).html(` - `)})}},getGradienColortUrl(e){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(e)})`},updateLinearGradient(){const e=this,{config:t,data:{targets:s},state:{datetimeId:i},$el:{defs:n}}=e;s.forEach(a=>{const o=`${i}-gradient${e.getTargetSelectorSuffix(a.id)}`,r=e.hasPointType()&&t.point_radialGradient,l=e.isAreaType(a)&&"area"||e.isBarType(a)&&"bar";if((r||l)&&n.select(`#${o}`).empty()){const c=e.color(a),u={defs:null,stops:[]};if(r){const{cx:d=.3,cy:h=.3,r:g=.7,stops:f=[[.1,c,0],[.9,c,1]]}=r;u.stops=f,u.defs=n.append("radialGradient").attr("id",`${o}`).attr("cx",d).attr("cy",h).attr("r",g)}else{const d=t.axis_rotated,{x:h=d?[1,0]:[0,0],y:g=d?[0,0]:[0,1],stops:f=[[0,c,1],[1,c,0]]}=t[`${l}_linearGradient`];u.stops=f,u.defs=n.append("linearGradient").attr("id",`${o}`).attr("x1",h[0]).attr("x2",h[1]).attr("y1",g[0]).attr("y2",g[1])}u.stops.forEach(d=>{const[h,g,f]=d,p=L(g)?g.bind(e.api)(a.id):g;u.defs&&u.defs.append("stop").attr("offset",h).attr("stop-color",p||c).attr("stop-opacity",f)})}})},setOverColor(e,t){const s=this,{config:i,$el:{main:n}}=s,a=i.color_onover;let o=e?a:s.color;M(o)?o=({id:r})=>r in a?a[r]:s.color(r):G(o)?o=()=>a:L(a)&&(o=o.bind(s.api)),n.selectAll(M(t)?`.${N.arc}${s.getTargetSelectorSuffix(t.id)}`:`.${Q.shape}-${t}`).style("fill",o)}},Yn={getYDomainMinMax(e,t){const s=this,{axis:i,config:n}=s,a=t==="min",o=n.data_groups,r=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(o.length>0){const c=s[`has${a?"Negative":"Positive"}ValueInTargets`](e);o.forEach(u=>{const d=u.filter(h=>r.indexOf(h)>=0);if(d.length){const h=d[0],g=i.getId(h);c&&l[h]&&(l[h]=l[h].map(f=>(a?f<0:f>0)?f:0)),d.filter((f,p)=>p>0).forEach(f=>{if(l[f]){const p=i.getId(f);l[f].forEach((_,x)=>{const m=+_,b=a?m>0:m<0;p===g&&!(c&&b)&&(l[h][x]+=m)})}})}})}return vt(t,Object.keys(l).map(c=>vt(t,l[c])))},isHiddenTargetWithYDomain(e){const t=this;return t.state.hiddenTargetIds.some(s=>t.axis.getId(s)===e)},getYDomain(e,t,s){const i=this,{axis:n,config:a,scale:o}=i,r=`axis_${t}`;if(i.isStackNormalized())return[0,100];const l=(o==null?void 0:o[t])&&o[t].type==="log",c=e.filter(R=>n.getId(R.id)===t),u=s?i.filterByXDomain(c,s):c;if(u.length===0)return i.isHiddenTargetWithYDomain(t)?o[t].domain():t==="y2"?o.y.domain():i.getYDomain(e,"y2",s);const d=a[`${r}_min`],h=a[`${r}_max`],g=a[`${r}_center`],f=a[`${r}_inverted`],p=i.hasDataLabel()&&a.axis_rotated,_=i.hasDataLabel()&&!a.axis_rotated;let x=i.getYDomainMinMax(u,"min"),m=i.getYDomainMinMax(u,"max"),b=[C.BAR,C.BUBBLE,C.SCATTER,...Ot.Line].some(R=>{const P=R.indexOf("area")>-1?"area":R;return i.hasType(R,u,!0)&&a[`${P}_zerobased`]});x=z(d)?d:z(h)?x<=h?x:h-10:x,m=z(h)?h:z(d)?d<=m?m:d+10:m,isNaN(x)&&(x=0),isNaN(m)&&(m=x),x===m&&(x<0?m=0:x=0);const y=x>=0&&m>=0,v=x<=0&&m<=0;(z(d)&&y||z(h)&&v)&&(b=!1),b&&(y&&(x=0),v&&(m=0));const $=Math.abs(m-x);let T={top:$*.1,bottom:$*.1};if(Y(g)){const R=Math.max(Math.abs(x),Math.abs(m));m=g+R,x=g-R}if(p){const R=Xt(o.y.range()),P=i.getDataLabelLength(x,m,"width").map(F=>F/R);["bottom","top"].forEach((F,E)=>{T[F]+=$*(P[E]/(1-P[0]-P[1]))})}else if(_){const R=i.getDataLabelLength(x,m,"height");["bottom","top"].forEach((P,F)=>{T[P]+=i.convertPixelToScale("y",R[F],$)})}T=i.getResettedPadding(T);const S=a[`${r}_padding`];et(S)&&["bottom","top"].forEach(R=>{T[R]=n.getPadding(S,R,T[R],$)}),b&&(y&&(T.bottom=x),v&&(T.top=-m));const A=l?[x,m].map(R=>R<0?0:R):[x-T.bottom,m+T.top];return f?A.reverse():A},getXDomainMinMax(e,t){var s;const i=this,n=i.config[`axis_x_${t}`],a=vt(t,e.map(r=>vt(t,r.values.map(l=>l.x))));let o=M(n)?n.value:n;return o=Y(o)&&((s=i.axis)!=null&&s.isTimeSeries())?_t.bind(this)(o):o,M(n)&&n.fit&&(t==="min"&&oa)&&(o=void 0),Y(o)?o:a},getXDomainPadding(e,t){const s=this,{axis:i,config:n}=s,a=n.axis_x_padding,o=i.isTimeSeries()&&t,r=Xt(e);let l;if(i.isCategorized()||o)l=0;else if(s.hasType("bar")){const d=s.getMaxDataCount();l=d>1?r/(d-1)/2:.5}else l=s.getResettedPadding(r*.01);let{left:c=l,right:u=l}=k(a)?{left:a,right:a}:a;if(a.unit==="px"){const d=Math.abs(r+r*.2);c=i.getPadding(a,"left",l,d),u=i.getPadding(a,"right",l,d)}else{const d=r+c+u;if(o&&d){const h=r/t/d;c=c/d/h,u=u/d/h}}return{left:c,right:u}},getXDomain(e){const t=this,{axis:s,config:i,scale:{x:n}}=t,a=i.axis_x_inverted,o=[t.getXDomainMinMax(e,"min"),t.getXDomainMinMax(e,"max")];let[r=0,l=0]=o;if(n.type!=="log"){const c=s.isCategorized(),u=s.isTimeSeries(),d=t.getXDomainPadding(o);let[h,g]=o;h-g===0&&!c&&(u?(h=new Date(h.getTime()*.5),g=new Date(g.getTime()*1.5)):(h=h===0?1:h*.5,g=g===0?-1:g*1.5)),(h||h===0)&&(r=u?new Date(h.getTime()-d.left):h-d.left),(g||g===0)&&(l=u?new Date(g.getTime()+d.right):g+d.right)}return a?[l,r]:[r,l]},updateXDomain(e,t,s,i,n){var a;const o=this,{config:r,org:l,scale:{x:c,subX:u}}=o,d=r.zoom_enabled;if(s&&(c.domain(n||Zt(o.getXDomain(e),!r.axis_x_inverted)),l.xDomain=c.domain(),u.domain(c.domain()),(a=o.brush)==null||a.scale(u)),t){const h=n||!o.brush||rs(o)?l.xDomain:os(o).map(u.invert);c.domain(h)}return(s||t)&&d&&o.zoom.updateScaleExtent(),i&&c.domain(o.trimXDomain(c.orgDomain())),c.domain()},trimXDomain(e){const t=this,s=t.config.axis_x_inverted,i=t.getZoomDomain(),[n,a]=i;return(s?e[0]>=n:e[0]<=n)&&(e[1]=+e[1]+(n-e[0]),e[0]=n),(s?e[1]<=a:e[1]>=a)&&(e[0]=+e[0]-(e[1]-a),e[1]=a),e},getZoomDomain(e="zoom",t=!1){const s=this,{config:i,scale:n,org:a}=s;let[o,r]=t&&n[e]?n[e].domain():a.xDomain;return e==="zoom"&&(Y(i.zoom_x_min)&&(o=vt("min",[o,i.zoom_x_min])),Y(i.zoom_x_max)&&(r=vt("max",[r,i.zoom_x_max]))),[o,r]},getZoomDomainValue(e){const t=this,{config:s,axis:i}=t;if(i.isCategorized()&&Array.isArray(e)){const n=s.axis_x_inverted;return e.map((o,r)=>Number(o)+(r===0?+n:+!n))}return e},convertPixelToScale(e,t,s){const i=this,{config:n,state:a}=i,o=n.axis_rotated;let r;return e==="x"?r=o?"height":"width":r=o?"width":"height",s*(t/a[r])},withinRange(e,t=[0,0],s){const n=this.config.axis_x_inverted,[a,o]=s;if(Array.isArray(e)){const r=[...e];if(n&&r.reverse(),r[0](c===0?n?+l<=a:+l>=a:n?+l>=o:+l<=o)&&!e.every((u,d)=>u===t[d]))}return!1}};function bs(e,t,s){const{config:i}=e,n=`axis_${t}_tick_format`;return(i[n]?i[n]:e.defaultValueFormat).call(e.api,s)}var jn={yFormat(e){return bs(this,"y",e)},y2Format(e){return bs(this,"y2",e)},getDefaultValueFormat(){const e=this,{defaultArcValueFormat:t,yFormat:s,y2Format:i}=e,n=e.hasArcType(null,["gauge","polar","radar"]);return function(a,o,r){return(n?t:e.axis&&e.axis.getId(r)==="y2"?i:s).call(e,a,o)}},defaultValueFormat(e){return B(e)?e.join("~"):z(e)?+e:""},defaultArcValueFormat(e,t){return`${(t*100).toFixed(1)}%`},defaultPolarValueFormat(e){return`${e}`},dataLabelFormat(e){const t=this,s=t.config.data_labels,i=a=>{const o="~";let r=a;return B(a)?r=a.join(o):M(a)&&(r=Object.values(a).join(o)),r};let n=i;return L(s.format)?n=s.format:Tt(s.format)&&(s.format[e]?n=s.format[e]===!0?i:s.format[e]:n=()=>""),n.bind(t.api)}};function be(e){const t=this,s=t.getDataById(e);return t.levelColor?t.levelColor(s.values[0].value):t.color(s)}function Xe(e,t=!0){var s;const{config:i}=this;let n=(s=i.data_names[e])!=null?s:e;return t&&L(i.legend_format)&&(n=i.legend_format(n)),n}var Hn={initLegend(){const e=this,{config:t,$el:s}=e;e.legendItemTextBox={},e.state.legendHasRendered=!1,t.legend_show?(t.legend_contents_bindto||(s.legend=e.$el.svg.append("g").classed(V.legend,!0).attr("transform",e.getTranslate("legend"))),e.updateLegend()):e.state.hiddenLegendIds=e.mapToIds(e.data.targets)},updateLegend(e,t,s){var i;const n=this,{config:a,state:o,scale:r,$el:l}=n,c=t||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};c.withTransition=Pt(c,"withTransition",!0),c.withTransitionForTransform=Pt(c,"withTransitionForTransform",!0),a.legend_contents_bindto&&a.legend_contents_template?n.updateLegendTemplate():o.hasTreemap||n.updateLegendElement(e||n.mapToIds(n.data.targets),c,s),(i=l.legend)==null||i.selectAll(`.${V.legendItem}`).classed(V.legendItemHidden,function(u){const d=!n.isTargetToShow(u);return d&&(this.style.opacity=null),d}),n.updateScales(!1,!r.zoom),n.updateSvgSize(),n.transformAll(c.withTransitionForTransform,s),o.legendHasRendered=!0},updateLegendTemplate(){const e=this,{config:t,$el:s}=e,i=(0,w.select)(t.legend_contents_bindto),n=t.legend_contents_template;if(!i.empty()){const a=e.mapToIds(e.data.targets),o=[];let r="";a.forEach(c=>{const u=L(n)?n.bind(e.api)(c,e.color(c),e.api.data(c)[0].values):$e(n,{COLOR:e.color(c),TITLE:c});u&&(o.push(c),r+=u)});const l=i.html(r).selectAll(function(){return this.childNodes}).data(o);e.setLegendItem(l),s.legend=i}},updateSizeForLegend(e){const t=this,{config:s,state:{isLegendTop:i,isLegendLeft:n,isLegendRight:a,isLegendInset:o,current:r}}=t,{width:l,height:c}=e,u={top:i?t.getCurrentPaddingByDirection("top")+s.legend_inset_y+5.5:r.height-c-t.getCurrentPaddingByDirection("bottom")-s.legend_inset_y,left:n?t.getCurrentPaddingByDirection("left")+s.legend_inset_x+.5:r.width-l-t.getCurrentPaddingByDirection("right")-s.legend_inset_x+.5};t.state.margin3={top:a?0:o?u.top:r.height-c,right:NaN,bottom:0,left:a?r.width-l:o?u.left:0}},transformLegend(e){const t=this,{$el:{legend:s},$T:i}=t;i(s,e).attr("transform",t.getTranslate("legend"))},updateLegendStep(e){this.state.legendStep=e},updateLegendItemWidth(e){this.state.legendItemWidth=e},updateLegendItemHeight(e){this.state.legendItemHeight=e},updateLegendItemColor(e,t){const{legend:s}=this.$el;s&&s.select(`.${V.legendItem}-${e} line`).style("stroke",t)},getLegendWidth(){const e=this,{current:{width:t},isLegendRight:s,isLegendInset:i,legendItemWidth:n,legendStep:a}=e.state;return e.config.legend_show?s||i?n*(a+1):t:0},getLegendHeight(){var e;const t=this,{current:s,isLegendRight:i,legendItemHeight:n,legendStep:a}=t.state,o=((e=t.config.padding)==null?void 0:e.mode)==="fit";return t.config.legend_show?i?s.height:(o?10:Math.max(20,n))*(a+1):0},opacityForUnfocusedLegend(e){return e.classed(V.legendItemHidden)?null:"0.3"},toggleFocusLegend(e,t){const s=this,{$el:{legend:i},$T:n}=s,a=s.mapToTargetIds(e);i&&n(i.selectAll(`.${V.legendItem}`).filter(o=>a.indexOf(o)>=0).classed(W.legendItemFocused,t)).style("opacity",function(){return t?null:s.opacityForUnfocusedLegend.call(s,(0,w.select)(this))})},revertLegend(){const e=this,{$el:{legend:t},$T:s}=e;t&&s(t.selectAll(`.${V.legendItem}`).classed(W.legendItemFocused,!1)).style("opacity",null)},showLegend(e){const t=this,{config:s,$el:i,$T:n}=t;s.legend_show||(s.legend_show=!0,i.legend?i.legend.style("visibility",null):t.initLegend(),!t.state.legendHasRendered&&t.updateLegend()),t.removeHiddenLegendIds(e),n(i.legend.selectAll(t.selectorLegends(e)).style("visibility",null)).style("opacity",null)},hideLegend(e){const t=this,{config:s,$el:{legend:i}}=t;s.legend_show&&bt(e)&&(s.legend_show=!1,i.style("visibility","hidden")),t.addHiddenLegendIds(e),i.selectAll(t.selectorLegends(e)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox(e,t){const s=this,{cache:i,state:n}=s;let a;const o=ft.legendItemTextBox;return e&&(a=!n.redrawing&&i.get(o)||{},a[e]||(a[e]=s.getTextRect(t,V.legendItem),i.add(o,a)),a=a[e]),a},setLegendItem(e){const t=this,{$el:s,api:i,config:n,state:a}=t,o=a.inputType==="touch",r=t.hasType("gauge"),l=n.boost_useCssRule,c=n.legend_item_interaction;e.attr("class",function(u){const d=(0,w.select)(this);return(!d.empty()&&d.attr("class")||"")+t.generateClass(V.legendItem,u)}).style("visibility",u=>t.isLegendToShow(u)?null:"hidden"),n.interaction_enabled&&(l&&[[`.${V.legendItem}`,"cursor:pointer"],[`.${V.legendItem} text`,"pointer-events:none"],[`.${V.legendItemPoint} text`,"pointer-events:none"],[`.${V.legendItemTile}`,"pointer-events:none"],[`.${V.legendItemEvent}`,"fill-opacity:0"]].forEach(u=>{const[d,h]=u;t.setCssRule(!1,d,[h])(s.legend)}),e.on(c.dblclick?"dblclick":"click",c||L(n.legend_item_onclick)?function(u,d){if(!Z(n.legend_item_onclick,i,d)){const{altKey:h,target:g,type:f}=u;f==="dblclick"||h?a.hiddenTargetIds.length&&g.parentNode.getAttribute("class").indexOf(V.legendItemHidden)===-1?i.show():(i.hide(),i.show(d)):(i.toggle(d),(0,w.select)(this).classed(W.legendItemFocused,!1))}o&&t.hideTooltip()}:null),!o&&e.on("mouseout",c||L(n.legend_item_onout)?function(u,d){Z(n.legend_item_onout,i,d)||((0,w.select)(this).classed(W.legendItemFocused,!1),r&&t.undoMarkOverlapped(t,`.${xt.gaugeValue}`),t.api.revert())}:null).on("mouseover",c||L(n.legend_item_onover)?function(u,d){Z(n.legend_item_onover,i,d)||((0,w.select)(this).classed(W.legendItemFocused,!0),r&&t.markOverlapped(d,t,`.${xt.gaugeValue}`),!a.transiting&&t.isTargetToShow(d)&&i.focus(d))}:null),!e.empty()&&e.on("click mouseout mouseover")&&e.style("cursor",t.getStylePropValue("pointer")))},updateLegendElement(e,t){const s=this,{config:i,state:n,$el:{legend:a},$T:o}=s,l=i.legend_item_tile_type!=="circle",c=i.legend_item_tile_r,u={width:l?i.legend_item_tile_width:c*2,height:l?i.legend_item_tile_height:c*2},d={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:u.width+5,totalLength:0},h={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let g,f,p;const _=e.filter($=>!Y(i.data_names[$])||i.data_names[$]!==null),x=t.withTransition,m=s.getUpdateLegendPositions(_,d,h);n.isLegendInset&&(d.step=i.legend_inset_step?i.legend_inset_step:_.length,s.updateLegendStep(d.step)),n.isLegendRight?(g=$=>d.max.width*h.steps[$],f=$=>h.margins[h.steps[$]]+h.offsets[$]):n.isLegendInset?(g=$=>d.max.width*h.steps[$]+10,f=$=>h.margins[h.steps[$]]+h.offsets[$]):(g=$=>h.margins[h.steps[$]]+h.offsets[$],f=$=>d.max.height*h.steps[$]);const b={xText:($,T)=>g($,T)+4+u.width,xRect:($,T)=>g($,T),x1Tile:($,T)=>g($,T)-2,x2Tile:($,T)=>g($,T)-2+u.width,yText:($,T)=>f($,T)+9,yRect:($,T)=>f($,T)-5,yTile:($,T)=>f($,T)+4};s.generateLegendItem(_,u,m,b),p=a.select(`.${V.legendBackground} rect`),n.isLegendInset&&d.max.width>0&&p.size()===0&&(p=a.insert("g",`.${V.legendItem}`).attr("class",V.legendBackground).append("rect")),i.legend_tooltip&&a.selectAll("title").data(_).text($=>Xe.bind(s)($,!1));const y=a.selectAll("text").data(_).text($=>Xe.bind(s)($)).each(function($,T){m(this,$,T)});o(y,x).attr("x",b.xText).attr("y",b.yText);const v=a.selectAll(`rect.${V.legendItemEvent}`).data(_);o(v,x).attr("width",$=>h.widths[$]).attr("height",$=>h.heights[$]).attr("x",b.xRect).attr("y",b.yRect),s.updateLegendItemPos(_,x,b),p&&o(p,x).attr("height",s.getLegendHeight()-12).attr("width",d.max.width*(d.step+1)+10),s.updateLegendItemWidth(d.max.width),s.updateLegendItemHeight(d.max.height),s.updateLegendStep(d.step)},getUpdateLegendPositions(e,t,s){const i=this,{config:n,state:a}=i,o=a.isLegendRight||a.isLegendInset;return function(r,l,c){const u=c===0,d=c===e.length-1,h=i.getLegendItemTextBox(l,r),g=h.width+t.tileWidth+(d&&!o?0:t.padding.right)+n.legend_padding,f=h.height+t.padding.top,p=o?f:g,_=o?i.getLegendHeight():i.getLegendWidth();let x;const m=function(y,v){v||(x=(_-t.totalLength-p)/2,x=t.max.width)&&(t.max.width=g),(!t.max.height||f>=t.max.height)&&(t.max.height=f);const b=o?t.max.height:t.max.width;n.legend_equally?(Object.keys(s.widths).forEach(y=>s.widths[y]=t.max.width),Object.keys(s.heights).forEach(y=>s.heights[y]=t.max.height),x=(_-b*e.length)/2,xm(y))):m(l,!0)):m(l)}},generateLegendItem(e,t,s,i){const n=this,{config:a,state:o,$el:{legend:r}}=n,l=a.legend_usePoint,c=a.legend_item_tile_r,u=a.legend_item_tile_type,d=u!=="circle",h=o.isLegendRight||o.isLegendInset,g=-200,f=r.selectAll(`.${V.legendItem}`).data(e).enter().append("g");if(n.setLegendItem(f),a.legend_tooltip&&f.append("title").text(p=>p),f.append("text").text(p=>Xe.bind(n)(p)).each(function(p,_){s(this,p,_)}).style("pointer-events",n.getStylePropValue("none")).attr("x",h?i.xText:g).attr("y",h?g:i.yText),f.append("rect").attr("class",V.legendItemEvent).style("fill-opacity",n.getStylePropValue("0")).attr("x",h?i.xRect:g).attr("y",h?g:i.yRect),l){const p=[];f.append(_=>{const x=et(a.point_pattern)?a.point_pattern:[a.point_type];p.indexOf(_)===-1&&p.push(_);let m=x[p.indexOf(_)%x.length];return m==="rectangle"&&(m="rect"),it.createElementNS(w.namespaces.svg,"hasValidPointType"in n&&n.hasValidPointType(m)?m:"use")}).attr("class",V.legendItemPoint).style("fill",be.bind(n)).style("pointer-events",n.getStylePropValue("none")).attr("href",(_,x,m)=>{const y=m[x].nodeName.toLowerCase(),v=n.getTargetSelectorSuffix(_);return y==="use"?`#${o.datetimeId}-point${v}`:void 0})}else f.append(d?"line":u).attr("class",V.legendItemTile).style("stroke",be.bind(n)).style("pointer-events",n.getStylePropValue("none")).call(p=>{u==="circle"?p.attr("r",c).style("fill",be.bind(n)).attr("cx",h?i.x2Tile:g).attr("cy",h?g:i.yTile):d&&p.attr("stroke-width",t.height).attr("x1",h?i.x1Tile:g).attr("y1",h?g:i.yTile).attr("x2",h?i.x2Tile:g).attr("y2",h?g:i.yTile)})},updateLegendItemPos(e,t,s){const i=this,{config:n,$el:{legend:a},$T:o}=i,r=n.legend_usePoint,l=n.legend_item_tile_type,c=l!=="circle";if(r){const u=a.selectAll(`.${V.legendItemPoint}`).data(e);o(u,t).each(function(){const d=this.nodeName.toLowerCase(),h=n.point_r;let g="x",f="y",p=2,_=2.5,x=null,m=null,b=null;if(d==="circle"){const y=h*.2;g="cx",f="cy",x=h+y,p=h*2,_=-y}else if(d==="rect"){const y=h*2.5;m=y,b=y,_=3}(0,w.select)(this).attr(g,y=>s.x1Tile(y)+p).attr(f,y=>s.yTile(y)-_).attr("r",x).attr("width",m).attr("height",b)})}else{const u=a.selectAll(`.${V.legendItemTile}`).data(e);o(u,t).style("stroke",be.bind(i)).call(d=>{l==="circle"?d.attr("cx",h=>{const g=s.x2Tile(h);return g-(g-s.x1Tile(h))/2}).attr("cy",s.yTile):c&&d.attr("x1",s.x1Tile).attr("y1",s.yTile).attr("x2",s.x2Tile).attr("y2",s.yTile)})}}},Wn=j(8),Un={redraw(e={}){var t,s,i,n;const a=this,{config:o,state:r,$el:l}=a,{main:c,treemap:u}=l;r.redrawing=!0;const d=a.filterTargetsToShow(a.data.targets),{flow:h,initializing:g}=e,f=a.getWithOption(e),p=f.Transition?o.transition_duration:0,_=f.TransitionForExit?p:0,x=f.TransitionForAxis?p:0,m=(t=a.axis)==null?void 0:t.generateTransitions(x);a.updateSizes(g),f.Legend&&o.legend_show?(e.withTransition=!!p,!u&&a.updateLegend(a.mapToIds(a.data.targets),e,m)):f.Dimension&&a.updateDimension(!0),o.data_empty_label_text&&c.select(`text.${ut.text}.${I.empty}`).attr("x",r.width/2).attr("y",r.height/2).text(o.data_empty_label_text).style("display",d.length?"none":null),r.hasAxis?(a.axis.redrawAxis(d,f,m,h,g),a.hasGrid()&&a.updateGrid(),o.regions.length&&a.updateRegion(),["bar","candlestick","line","area"].forEach(b=>{const y=gt(b);(/^(line|area)$/.test(b)&&a.hasTypeOf(y)||a.hasType(b))&&a[`update${y}`](f.TransitionForExit)}),l.text&&c.selectAll(`.${q.selectedCircles}`).filter(a.isBarType.bind(a)).selectAll("circle").remove(),o.interaction_enabled&&!h&&f.EventRect&&(a.redrawEventRect(),(s=a.bindZoomEvent)==null||s.call(a))):(l.arcs&&a.redrawArc(p,_,f.Transform),l.radar&&a.redrawRadar(),l.polar&&a.redrawPolar(),l.funnel&&a.redrawFunnel(),u&&a.updateTreemap(_)),!r.resizing&&!u&&(a.hasPointType()||r.hasRadar)?a.updateCircle():(i=a.hasLegendDefsPoint)!=null&&i.call(a)&&a.data.targets.forEach(a.point("create",this)),a.hasDataLabel()&&!a.hasArcType(null,["radar"])&&a.updateText(),(n=a.redrawTitle)==null||n.call(a),g&&a.updateTypesElements(),a.generateRedrawList(d,h,p,f.Subchart),a.updateTooltipOnRedraw(),a.callPluginHook("$redraw",e,p)},generateRedrawList(e,t,s,i){const n=this,{config:a,state:o}=n,r=n.getDrawShape();o.hasAxis&&a.subchart_show&&n.redrawSubchart(i,s,r);const l=t&&n.generateFlow({targets:e,flow:t,duration:t.duration,shape:r,xv:n.xv.bind(n)}),c=(s||l)&&re(),u=n.getRedrawList(r,t,l,c),d=()=>{l&&l(),o.redrawing=!1,Z(a.onrendered,n.api)};if(d)if(c&&u.length){const h=ps();(0,Wn.transition)().duration(s).each(()=>{u.reduce((g,f)=>g.concat(f),[]).forEach(g=>h.add(g))}).call(h,d)}else o.transiting||d();n.mapToIds(n.data.targets).forEach(h=>{o.withoutFadeIn[h]=!0})},getRedrawList(e,t,s,i){const n=this,{config:a,state:{hasAxis:o,hasRadar:r,hasTreemap:l},$el:{grid:c}}=n,{cx:u,cy:d,xForText:h,yForText:g}=e.pos,f=[];return o&&((a.grid_x_lines.length||a.grid_y_lines.length)&&f.push(n.redrawGrid(i)),a.regions.length&&f.push(n.redrawRegion(i)),Object.keys(e.type).forEach(p=>{const _=gt(p),x=e.type[p];(/^(area|line)$/.test(p)&&n.hasTypeOf(_)||n.hasType(p))&&f.push(n[`redraw${_}`](x,i))}),!t&&c.main&&f.push(n.updateGridFocus())),(!n.hasArcType()||r)&&et(a.data_labels)&&a.data_labels!==!1&&f.push(n.redrawText(h,g,t,i)),(n.hasPointType()||r)&&!n.isPointFocusOnly()&&n.redrawCircle&&f.push(n.redrawCircle(u,d,i,s)),l&&f.push(n.redrawTreemap(i)),f},updateAndRedraw(e={}){const t=this,{config:s,state:i}=t;let n;e.withTransition=Pt(e,"withTransition",!0),e.withTransform=Pt(e,"withTransform",!1),e.withLegend=Pt(e,"withLegend",!1),e.withUpdateXDomain=!0,e.withUpdateOrgXDomain=!0,e.withTransitionForExit=!1,e.withTransitionForTransform=Pt(e,"withTransitionForTransform",e.withTransition),e.withLegend&&s.legend_show||(i.hasAxis&&(n=t.axis.generateTransitions(e.withTransitionForAxis?s.transition_duration:0)),t.updateScales(),t.updateSvgSize(),t.transformAll(e.withTransitionForTransform,n)),t.redraw(e,n)}};function Gt(e="linear",t=0,s=1){const i={linear:It.scaleLinear,log:It.scaleSymlog,_log:It.scaleLog,time:It.scaleTime,utc:It.scaleUtc}[e]();return i.type=e,/_?log/.test(e)&&i.clamp(!0),i.range([t,s])}var Zn={getXScale(e,t,s,i){const n=this,a=n.state.loading!=="append"&&n.scale.zoom||Gt(n.axis.getAxisType("x"),e,t);return n.getCustomizedXScale(s?a.domain(s):a,i)},getYScale(e,t,s,i){const a=Gt(this.axis.getAxisType(e),t,s);return i&&a.domain(i),a},getYScaleById(e,t=!1){var s;const i=((s=this.axis)==null?void 0:s.getId(e))==="y2",n=t?i?"subY2":"subY":i?"y2":"y";return this.scale[n]},getCustomizedXScale(e,t){const s=this,i=t||(()=>s.axis.x.tickOffset()),n=s.config.axis_x_inverted,a=function(o,r){const l=e(o)+i();return r?l:Math.ceil(l)};for(const o in e)a[o]=e[o];return a.orgDomain=()=>e.domain(),a.orgScale=()=>e,s.axis.isCategorized()&&(a.domain=function(o){let r=o;return arguments.length?(e.domain(r),a):(r=this.orgDomain(),n?[r[0]+1,r[1]]:[r[0],r[1]+1])}),a},updateScales(e,t=!0){var s,i;const n=this,{axis:a,config:o,format:r,org:l,scale:c,state:{current:u,width:d,height:h,width2:g,height2:f,hasAxis:p,hasTreemap:_}}=n;if(p){const x=o.axis_rotated,m=n.getResettedPadding(1),b={x:x?m:0,y:x?0:h,subX:x?1:0,subY:x?0:f},y={x:x?h:d,y:x?d:m,subX:x?h:d,subY:x?g:1},v=t&&((s=c.x)==null?void 0:s.orgDomain()),$=t&&l.xDomain;c.x=n.getXScale(b.x,y.x,v,()=>a.x.tickOffset()),c.subX=n.getXScale(b.x,y.x,$,T=>{var S;return T%1?0:((S=a.subX)!=null?S:a.x).tickOffset()}),r.xAxisTick=a.getXAxisTickFormat(),r.subXAxisTick=a.getXAxisTickFormat(!0),a.setAxis("x",c.x,o.axis_x_tick_outer,e),o.subchart_show&&a.setAxis("subX",c.subX,o.axis_x_tick_outer,e),c.y=n.getYScale("y",b.y,y.y,c.y?c.y.domain():o.axis_y_default),c.subY=n.getYScale("y",b.subY,y.subY,c.subY?c.subY.domain():o.axis_y_default),a.setAxis("y",c.y,o.axis_y_tick_outer,e),o.axis_y2_show&&(c.y2=n.getYScale("y2",b.y,y.y,c.y2?c.y2.domain():o.axis_y2_default),c.subY2=n.getYScale("y2",b.subY,y.subY,c.subY2?c.subY2.domain():o.axis_y2_default),a.setAxis("y2",c.y2,o.axis_y2_tick_outer,e))}else if(_){const x=n.getCurrentPadding();c.x=(0,It.scaleLinear)().rangeRound([x.left,u.width-x.right]),c.y=(0,It.scaleLinear)().rangeRound([x.top,u.height-x.bottom])}else(i=n.updateArc)==null||i.call(n)},xx(e){const t=this,{config:s,scale:{x:i,zoom:n}}=t,a=s.zoom_enabled&&n?n:i;return e?a(z(e.x)?e.x:e):null},xv(e){const t=this,{axis:s,config:i,scale:{x:n,zoom:a}}=t,o=i.zoom_enabled&&a?a:n;let r=t.getBaseValue(e);return s.isTimeSeries()?r=_t.call(t,r):s.isCategorized()&&G(r)&&(r=i.axis_x_categories.indexOf(r)),Math.ceil(o(r))},yv(e){const t=this,{scale:{y:s,y2:i}}=t,n=e.axis&&e.axis==="y2"?i:s;return Math.ceil(n(t.getBaseValue(e)))},subxx(e){return e?this.scale.subX(e.x):null}},qn={setContainerSize(){const e=this,{state:t}=e;t.current.width=e.getCurrentWidth(),t.current.height=e.getCurrentHeight()},getCurrentWidth(){const e=this;return e.config.size_width||e.getParentWidth()},getCurrentHeight(){const e=this,{config:t}=e,s=t.size_height||e.getParentHeight();return s>0?s:320/(e.hasType("gauge")&&!t.gauge_fullCircle?2:1)},getParentRectValue(e){const t=`offset${gt(e)}`;let s=this.$el.chart.node(),i=0;for(;i<30&&s&&s.tagName!=="BODY";){try{i=s.getBoundingClientRect()[e]}catch(a){t in s&&(i=s[t])}s=s.parentNode}const n=it.body[t];return i>n&&(i=n),i},getParentWidth(){return this.getParentRectValue("width")},getParentHeight(){const e=this.$el.chart.style("height");let t=0;return e&&(t=/px$/.test(e)?parseInt(e,10):this.getParentRectValue("height")),t},getSvgLeft(e){const t=this,{config:s,state:{hasAxis:i},$el:n}=t,a=s.axis_rotated,o=a||!a&&!s.axis_y_inner,r=a?st.axisX:st.axisY,l=n.main.select(`.${r}`).node(),c=i&&s[`axis_${a?"x":"y"}_label`];let u=0;if(i&&(G(c)||G(c.text)||/^inner-/.test(c==null?void 0:c.position))){const p=n.main.select(`.${r}-label`);p.empty()||(u=p.node().getBoundingClientRect().left)}const d=l&&o?l.getBoundingClientRect():{right:0},h=n.chart.node().getBoundingClientRect().left+u,g=t.hasArcType(),f=d.right-h-(g?0:t.getCurrentPaddingByDirection("left",e));return f>0?f:0},updateDimension(e){var t;const s=this,{config:i,state:{hasAxis:n},$el:a}=s;n&&!e&&s.axis.x&&i.axis_rotated&&((t=s.axis.subX)==null||t.create(a.axis.subX)),s.updateScales(e),s.updateSvgSize(),s.transformAll(!1)},updateSvgSize(){const e=this,{state:{clip:t,current:s,hasAxis:i,width:n,height:a},$el:{svg:o}}=e;if(o.attr("width",s.width).attr("height",s.height),i){const r=o.select(`.${Je.brush} .overlay`),l={width:0,height:0};r.size()&&(l.width=+r.attr("width"),l.height=+r.attr("height")),o.selectAll([`#${t.id}`,`#${t.idGrid}`]).select("rect").attr("width",n).attr("height",a),o.select(`#${t.idXAxis}`).select("rect").call(e.setXAxisClipPath.bind(e)),o.select(`#${t.idYAxis}`).select("rect").call(e.setYAxisClipPath.bind(e)),t.idSubchart&&o.select(`#${t.idSubchart}`).select("rect").attr("width",n).attr("height",l.height)}},getCurrentPaddingByDirection(e,t=!1,s=!1){var i;const n=this,{config:a,$el:o,state:{hasAxis:r}}=n,l=a.axis_rotated,c=((i=a.padding)==null?void 0:i.mode)==="fit",u=k(a[`padding_${e}`])?a[`padding_${e}`]:void 0,d=r?{top:l?"y2":null,bottom:l?"y":"x",left:l?"x":"y",right:l?null:"y2"}[e]:null,h=/^(left|right)$/.test(e),g=d&&a[`axis_${d}_inner`],f=d&&a[`axis_${d}_show`],p=d?a[`axis_${d}_axes`].length:0;let _=d?h?n.getAxisWidthByAxisId(d,t):n.getHorizontalAxisHeight(d):0;const x=20;let m=0;!c&&h&&(_=an(_));let b=r&&h&&(g||tt(u)&&!f)?0:c?(f?_:0)+(u!=null?u:0):tt(u)?_:u;return h&&r?(d&&(c||g)&&a[`axis_${d}_label`].text&&(b+=n.axis.getAxisLabelPosition(d).isOuter?x:0),e==="right"?(b+=l?!c&&tt(u)?10:2:!f||g?c?2:1:0,b+=s?n.axis.getXAxisTickTextY2Overflow(x):0):e==="left"&&l&&tt(u)&&(b=a.axis_x_show?c?_:Math.max(_,40):1)):e==="top"?(o.title&&o.title.node()&&(b+=n.getTitlePadding()),m=l&&!g?p:0):e==="bottom"&&r&&l&&!f&&(b+=1),b+_*p-m},getCurrentPadding(e=!1){const t=this,[s,i,n,a]=["top","bottom","left","right"].map(o=>t.getCurrentPaddingByDirection(o,null,e));return{top:s,bottom:i,left:n,right:a}},getResettedPadding(e){const t=this,{config:s}=t,i=k(e);let n=i?0:{};return s.padding===!1?!i&&Object.keys(e).forEach(a=>{n[a]=!bt(s.data_labels)&&s.data_labels!==!1&&a==="top"?e[a]:0}):n=e,n},updateSizes(e){var t,s,i,n,a;const o=this,{config:r,state:l,$el:{legend:c}}=o,u=r.axis_rotated,d=o.hasArcType()||l.hasFunnel||l.hasTreemap,h=((t=r.padding)==null?void 0:t.mode)==="fit";!e&&o.setContainerSize();const g={width:c?o.getLegendWidth():0,height:c?o.getLegendHeight():0};!d&&r.axis_x_show&&r.axis_x_tick_autorotate&&o.updateXAxisTickClip();const f={right:r.legend_show&&l.isLegendRight?o.getLegendWidth()+(h?0:20):0,bottom:!r.legend_show||l.isLegendRight||l.isLegendInset?0:g.height},p=u||d?0:o.getHorizontalAxisHeight("x"),_=r.subchart_axis_x_show&&r.subchart_axis_x_tick_text_show?p:30,x=r.subchart_show&&!d?r.subchart_size_height+_:0,m=o.hasType("gauge")&&r.arc_needle_show&&!r.gauge_fullCircle&&!r.gauge_label_show?10:0,b=o.getCurrentPadding(!0);if(l.margin=!d&&u?{top:b.top,right:d?0:b.right+f.right,bottom:f.bottom+b.bottom,left:x+(d?0:b.left)}:{top:(h?0:4)+b.top,right:d?0:b.right+f.right,bottom:m+x+f.bottom+b.bottom,left:d?0:b.left},l.margin=o.getResettedPadding(l.margin),l.margin2=u?{top:l.margin.top,right:NaN,bottom:20+f.bottom,left:o.state.rotatedPadding.left}:{top:l.current.height-x-f.bottom,right:NaN,bottom:_+f.bottom,left:l.margin.left},l.margin3={top:0,right:NaN,bottom:0,left:0},(s=o.updateSizeForLegend)==null||s.call(o,g),l.width=l.current.width-l.margin.left-l.margin.right,l.height=l.current.height-l.margin.top-l.margin.bottom,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l.width2=u?l.margin.left-l.rotatedPadding.left-l.rotatedPadding.right:l.width,l.height2=u?l.height:l.current.height-l.margin2.top-l.margin2.bottom,l.width2<0&&(l.width2=0),l.height2<0&&(l.height2=0),o.hasArcType()){const y=o.hasType("gauge"),v=r.legend_show&&l.isLegendRight,$=(i=l.hasRadar&&o.cache.get(ft.radarTextWidth))!=null?i:0;l.arcWidth=l.width-(v?g.width+10:0)-$,l.arcHeight=l.height-(v&&!y?0:10),(n=r.arc_rangeText_values)!=null&&n.length&&(y?(l.arcWidth-=25,l.arcHeight-=10,l.margin.left+=10):(l.arcHeight-=20,l.margin.top+=10)),y&&!r.gauge_fullCircle&&(l.arcHeight+=l.height-o.getPaddingBottomForGauge()),(a=o.updateRadius)==null||a.call(o)}l.isLegendRight&&d&&(l.margin3.left=l.arcWidth/2+l.radiusExpanded*1.1)}},Kn={setCssRule(e,t,s,i){const n=this,{config:a,state:{cssRule:o,style:r}}=n;return a.boost_useCssRule?l=>{l.each(c=>{const u=i&&(i==null?void 0:i.call(n,c)),d=`${e?`.${Q.shapes+n.getTargetSelectorSuffix(c.id)}`:""}${t}`;t in o&&r.sheet.deleteRule(o[d]),n.state.cssRule[d]=cn(r,d,s.filter(Boolean).map(h=>G(u)&&h.indexOf(":")===-1?`${h}: ${u}`:h||""))})}:()=>{}},getStylePropValue(e){const{config:{boost_useCssRule:t}}=this;return t?null:L(e)?e.bind(this):e}};function Jn(e){let t="middle";return e>0&&e<=170?t="end":e>190&&e<=360&&(t="start"),t}function Qn(e,t,s,i,n){var a;const o=this,{value:r}=e,l=o.isCandlestickType(e),c=k(r)&&r<0||l&&!((a=o.getCandlestickData(e))!=null&&a._isUp);let{x:u,y:d}=t;const h=4,g=h*2;return i?s==="start"?(u+=c?0:g,d+=h):s==="middle"?(u+=g,d-=g):s==="end"&&(c&&(u-=g),d+=h):(s==="start"?(u+=h,c&&(d+=g*2)):s==="middle"?d-=g:s==="end"&&(u-=h,c&&(d+=g*2)),n&&(d+=c?-17:l?13:7)),{x:u,y:d}}function vs(e,t){var s;const i=this.config.data_labels_position,{id:n,index:a,value:o}=e;return(s=L(i)?i.bind(this.api)(t,o,n,a,this.$el.text):(n in i?i[n]:i)[t])!=null?s:0}var ta={opacityForText(e){const t=this;return t.isBarType(e)&&!t.meetsLabelThreshold(Math.abs(t.getRatio("bar",e)),"bar")?"0":t.hasDataLabel?null:"0"},initText(){const{$el:e}=this;e.main.select(`.${I.chart}`).append("g").attr("class",ut.chartTexts).style("pointer-events",e.funnel||e.treemap?"none":null)},updateTargetsForText(e){const t=this,s=t.getChartClass("Text"),i=t.getClass("texts","id"),n=t.classFocus.bind(t);t.$el.main.select(`.${ut.chartTexts}`).selectAll(`.${ut.chartText}`).data(e).attr("class",r=>`${s(r)}${n(r)}`.trim()).enter().append("g").style("opacity","0").attr("class",s).call(t.setCssRule(!0,` .${ut.text}`,["fill","pointer-events:none"],t.updateTextColor)).append("g").attr("class",i)},updateText(){const e=this,{$el:t,$T:s,config:i,axis:n}=e,a=e.getClass("text","index"),o=i.data_labels.centered,r=t.main.selectAll(`.${ut.texts}`).selectAll(`.${ut.text}`).data(e.labelishData.bind(e));s(r.exit()).style("fill-opacity","0").remove(),t.text=r.enter().append("text").merge(r).attr("class",a).attr("text-anchor",l=>{let u=i[`axis_${n==null?void 0:n.getId(l.id)}_inverted`]?l.value>0:l.value<0;if(e.isCandlestickType(l)){const d=e.getCandlestickData(l);u=!(d!=null&&d._isUp)}else if(e.isTreemapType(l))return o?"middle":"start";return i.axis_rotated?u?"end":"start":"middle"}).style("fill",e.getStylePropValue(e.updateTextColor)).style("fill-opacity","0").each(function(l,c,u){const d=(0,w.select)(this);let{value:h}=l;if(e.isBubbleZType(l))h=e.getBubbleZData(h,"z");else if(e.isCandlestickType(l)){const g=e.getCandlestickData(l);g&&(h=g.close)}h=e.isTreemapType(l)?e.treemapDataLabelFormat(l)(d):e.dataLabelFormat(l.id)(h,l.id,l.index,u),k(h)?this.textContent=h:oe(d,h)})},updateTextColor(e){const t=this,{config:s}=t,i=s.data_labels_colors,n=t.isArcType(e)&&!t.isRadarType(e)||t.isFunnelType(e)||t.isTreemapType(e)?null:t.color(e);let a;if(G(i))a=i;else if(M(i)){const{id:o}=e.data||e;a=i[o]}else L(i)&&(a=i.bind(t.api)(n,e));if(t.isCandlestickType(e)&&!L(i)){const o=t.getCandlestickData(e);if(!(o!=null&&o._isUp)){const r=s.candlestick_color_down;a=M(r)?r[e.id]:r}}return a||n},updateTextBGColor(e,t){const s=this,{$el:i}=s;let n="";if(G(t)||M(t)){const a=G(t)?"":s.getTargetSelectorSuffix("id"in e?e.id:e.data.id),o=i.defs.select(["filter[id*='labels-bg","']"].join(a));o.size()&&(n=`url(#${o.attr("id")})`)}return n||null},redrawText(e,t,s,i){const n=this,{$T:a,axis:o,config:r,state:{hasTreemap:l}}=n,c=Rt(!0),u=r.axis_rotated,d=r.data_labels.rotate,h=Jn(d),g=d?`rotate(${d})`:"";return n.$el.text.style("fill",n.getStylePropValue(n.updateTextColor)).attr("filter",f=>n.updateTextBGColor.bind(n)(f,r.data_labels_backgroundColors)).style("fill-opacity",s?0:n.opacityForText.bind(n)).each(function(f,p){const _=a(l&&this.childElementCount?this.parentNode:this,!!(i&&this.getAttribute("x")),c),x=r[`axis_${o==null?void 0:o.getId(f.id)}_inverted`];let m={x:e.bind(this)(f,p),y:t.bind(this)(f,p)};d&&(m=Qn.bind(n)(f,m,h,u,x),_.attr("text-anchor",h)),this.childElementCount||d?_.attr("transform",`translate(${m.x} ${m.y}) ${g}`):_.attr("x",m.x).attr("y",m.y)}),!0},getTextRect(e,t){const s=this;let i=e.node?e.node():e;/text/i.test(i.tagName)||(i=i.querySelector("text"));const n=i.textContent,a=`${ft.textRect}-${n.replace(/\W/g,"_")}`;let o=s.cache.get(a);return o||(s.$el.svg.append("text").style("visibility","hidden").style("font",(0,w.select)(i).style("font")).classed(t,!0).text(n).call(r=>{o=_e(r.node())}).remove(),s.cache.add(a,o)),o},generateXYForText(e,t){const s=this,{state:{hasRadar:i,hasFunnel:n,hasTreemap:a}}=s,o=Object.keys(e),r={},l=t?s.getXForText:s.getYForText;return n&&o.push("funnel"),i&&o.push("radar"),a&&o.push("treemap"),o.forEach(c=>{r[c]=s[`generateGet${gt(c)}Points`](e[c],!1)}),function(c,u){const d=s.isAreaType(c)&&"area"||s.isBarType(c)&&"bar"||s.isCandlestickType(c)&&"candlestick"||s.isFunnelType(c)&&"funnel"||s.isRadarType(c)&&"radar"||s.isTreemapType(c)&&"treemap"||"line";return l.call(s,r[d](c,u),c,this)}},getCenteredTextPos(e,t,s,i){const n=this,{config:a}=n,o=a.axis_rotated,r=n.isBarType(e),l=n.isTreemapType(e);if(a.data_labels.centered&&(r||l)){const c=_e(s);if(r){const u=n.getRangedData(e,null,"bar")>=0;if(o){const d=(u?t[1][1]-t[0][1]:t[0][1]-t[1][1])/2+c.width/2;return u?-d-3:d+2}else{const d=(u?t[0][1]-t[1][1]:t[1][1]-t[0][1])/2+c.height/2;return u?d:-d-2}}else if(l)return i==="x"?(t[1][0]-t[0][0])/2:(t[1][1]-t[0][1])/2+c.height/2}return 0},getXForText(e,t,s){var i;const n=this,{config:a}=n,o=a.axis_rotated,r=n.isFunnelType(t),l=n.isTreemapType(t);let c=e?e[0][0]:0;if(n.isCandlestickType(t))o?c=(i=n.getCandlestickData(t))!=null&&i._isUp?e[2][2]+4:e[2][1]-4:c+=(e[1][0]-c)/2;else if(r)c+=n.state.current.width/2;else if(l)c+=a.data_labels.centered?0:5;else if(o){const u=a[`axis_${n.axis.getId(t.id)}_inverted`],d=n.isBarType(t)?4:6,h=t.value;c=e[2][1],u?c-=d*(h>0?1:-1):c+=d*(h<0?-1:1)}else c=n.hasType("bar")?(e[2][0]+e[0][0])/2:c;return(o||l)&&(c+=n.getCenteredTextPos(t,e,s,"x")),c+vs.call(this,t,"x")},getYForText(e,t,s){const i=this,{axis:n,config:a,state:o}=i,r=a.axis_rotated,l=a[`axis_${n==null?void 0:n.getId(t.id)}_inverted`],c=i.isBarType(t),u=i.isFunnelType(t),d=i.isTreemapType(t),h=a.point_r,g=_e(s);let{value:f}=t,p=3,_;if(i.isCandlestickType(t))f=i.getCandlestickData(t),r?(_=e[0][0],_+=(e[1][0]-_)/2+p):(_=f&&f._isUp?e[2][2]-p:e[2][1]+p*4,l&&(_+=15*(f._isUp?1:-1)));else if(u)_=e?e[0][1]+(e[1][1]-e[0][1])/2+g.height/2-3:0;else if(d)_=e[0][1]+(a.data_labels.centered?0:g.height+5);else if(r)_=(e[0][0]+e[2][0]+g.height*.6)/2;else if(_=e[2][1],k(h)&&h>5&&(i.isLineType(t)||i.isScatterType(t))&&(p+=a.point_r/2.3),f<0||f===0&&!o.hasPositiveValue&&o.hasNegativeValue)_+=l?c?-3:-5:g.height+(c?-p:p);else{let x=-p*2;c?x=-p:i.isBubbleType(t)&&(x=p),l&&(x=c?10:15),_+=x}return(!r||d)&&(_+=i.getCenteredTextPos(t,e,s,"y")),_+vs.call(this,t,"y")},markOverlapped(e,t,s){const i=t.$el.arcs.selectAll(s),n=i.filter(l=>l.data.id!==e),a=i.filter(l=>l.data.id===e),o=cs(a.node()),r=(l,c)=>Math.sqrt(Math.pow(l,2)+Math.pow(c,2));a.node()&&n.each(function(){const l=cs(this),c=(0,w.select)(this),u=r(o.e,o.f)>r(l.e,l.f)?a:c,d=Math.ceil(Math.abs(o.e-l.e))=n}};function Ts(e="left",t){const s=k(t);let i;return e.indexOf("center")>-1?i=s?t/2:"middle":e.indexOf("right")>-1?i=s?t:"end":i=s?0:"start",i}var ea={initTitle(){const e=this,{config:t,$el:s}=e;if(t.title_text){s.title=s.svg.append("g");const i=s.title.append("text").style("text-anchor",Ts(t.title_position)).attr("class",ut.title);oe(i,t.title_text,[.3,1.5])}},redrawTitle(){const e=this,{config:t,state:{current:s},$el:{title:i}}=e;if(i){const n=Ts(t.title_position,s.width),a=(t.title_padding.top||0)+e.getTextRect(e.$el.title,ut.title).height;i.attr("transform",`translate(${n}, ${a})`)}},getTitlePadding(){const e=this,{$el:{title:t},config:s}=e;return(s.title_padding.top||0)+(t?e.getTextRect(t,ut.title).height:0)+(s.title_padding.bottom||0)}},sa={initTooltip(){const e=this,{config:t,$el:s}=e;s.tooltip=(0,w.select)(t.tooltip_contents.bindto),s.tooltip.empty()&&(s.tooltip=s.chart.append("div").attr("class",ge.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),e.bindTooltipResizePos()},initShowTooltip(){var e;const t=this,{config:s,$el:i,state:{hasAxis:n,hasRadar:a}}=t;if(s.tooltip_init_show){const o=!(n||a);(e=t.axis)!=null&&e.isTimeSeries()&&G(s.tooltip_init_x)&&(s.tooltip_init_x=_t.call(t,s.tooltip_init_x)),t.api.tooltip.show({data:{[o?"index":"x"]:s.tooltip_init_x}});const r=s.tooltip_init_position;if(!s.tooltip_contents.bindto&&!bt(r)){const{top:l=0,left:c=50}=r;i.tooltip.style("top",G(l)?l:`${l}px`).style("left",G(c)?c:`${c}px`).style("display",null)}}},getTooltipHTML(...e){const t=this,{api:s,config:i}=t;return L(i.tooltip_contents)?i.tooltip_contents.bind(s)(...e):t.getTooltipContent(...e)},getTooltipContent(e,t,s,i){var n;const a=this,{api:o,config:r,state:l,$el:c}=a,[u,d,h]=["title","name","value"].map(E=>{const D=r[`tooltip_format_${E}`];return L(D)?D.bind(o):D}),g=(...E)=>Ee((u||t)(...E)),f=(...E)=>Ee((d||(D=>D))(...E)),p=(...E)=>{const D=h||(l.hasTreemap||a.isStackNormalized()?(nt,ot)=>`${(ot*100).toFixed(2)}%`:s);return Ee(D(...E))},_=r.tooltip_order,x=E=>a.axis&&a.isBubbleZType(E)?a.getBubbleZData(E.value,"z"):a.getBaseValue(E),m=a.levelColor?E=>a.levelColor(E.value):E=>i(E),b=r.tooltip_contents,y=b.template,v=a.mapToTargetIds();if(_===null&&r.data_groups.length){const E=a.orderTargets(a.data.targets).map(D=>D.id).reverse();e.sort((D,nt)=>{let ot=D?D.value:null,ht=nt?nt.value:null;return ot>0&&ht>0&&(ot=D.id?E.indexOf(D.id):null,ht=nt.id?E.indexOf(nt.id):null),ot-ht})}else if(/^(asc|desc)$/.test(_)){const E=_==="asc";e.sort((D,nt)=>{const ot=D?x(D):null,ht=nt?x(nt):null;return E?ot-ht:ht-ot})}else L(_)&&e.sort(_.bind(o));const $=a.getTooltipContentTemplate(y),T=e.length;let S,A,R,P,F;for(F=0;F${E}`:""})}if(!A.ratio&&c.arcs&&(R=["arc",a.$el.arcs.select(`path.${N.arc}-${A.id}`).data()[0]],A.ratio=a.getRatio(...R)),R=[A.ratio,A.id,A.index],a.isAreaRangeType(A)){const[E,D]=["high","low"].map(ot=>p(a.getRangedData(A,ot),...R));P=`Mid: ${p(x(A),...R)} High: ${E} Low: ${D}`}else if(a.isCandlestickType(A)){const[E,D,nt,ot,ht]=["open","high","low","close","volume"].map(zt=>a.getRangedData(A,zt,"candlestick")?p(a.getRangedData(A,zt,"candlestick"),...R):void 0);P=`Open: ${E} High: ${D} Low: ${nt} Close: ${ot}${ht?` Volume: ${ht}`:""}`}else if(a.isBarRangeType(A)){const{value:E,id:D,index:nt}=A;P=`${p(E,void 0,D,nt)}`}else P=p(x(A),...R);if(P!==void 0){if(A.name===null)continue;const E=f((n=A.name)!=null?n:A.id,...R),D=m(A),nt={CLASS_TOOLTIP_NAME:ge.tooltipName+a.getTargetSelectorSuffix(A.id),COLOR:y||!a.patterns?D:``,NAME:E,VALUE:P};if(y&&M(b.text)){const ot=v.indexOf(A.id);Object.keys(b.text).forEach(ht=>{nt[ht]=b.text[ht][ot]})}S+=$e($[1],nt)}}return`${S}`},getTooltipContentTemplate(e){return(e||` + };`],{type:"text/javascript"})),q.URL.createObjectURL(Fe[n])}function kn(e){const t=new q.Worker(e);return t.onerror=function(s){console.error?console.error(s):console.log(s)},t}function Me(e=!0,t,s,i){let n=function(...a){const o=t(...a);s(o)};if(q.Worker&&e){const a=En(t,i),o=kn(a);n=function(...r){o.postMessage(r),o.onmessage=function(l){return q.URL.revokeObjectURL(a),s(l.data)}}}return n}var ve=W(5);function Xe(e){const t=[];return e.forEach(function(s,i){const n=s[0];s.forEach(function(a,o){if(o>0){if(typeof t[o-1]=="undefined"&&(t[o-1]={}),typeof a=="undefined")throw new Error(`Source data is missing a component at (${i}, ${o})!`);t[o-1][n]=a}})}),t}function Be(e){const t=e[0],s=[];return e.forEach(function(i,n){if(n>0){const a={};i.forEach(function(o,r){if(typeof o=="undefined")throw new Error(`Source data is missing a component at (${n}, ${r})!`);a[t[r]]=o}),s.push(a)}}),s}function _s(e,t){const s=[];let i,n;if(Array.isArray(e)){const a=function(o,r){if(o[r]!==void 0)return o[r];const c=r.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let u=o;return c.some(function(d){return!(u=u&&d in u?u[d]:void 0)}),u};t.x?i=t.value.concat(t.x):i=t.value,s.push(i),e.forEach(function(o){const r=i.map(function(l){let c=a(o,l);return typeof c=="undefined"&&(c=null),c});s.push(r)}),n=Be(s)}else Object.keys(e).forEach(function(a){var o;const r=e[a].concat();(o=r.unshift)==null||o.call(r,a),s.push(r)}),n=Xe(s);return n}function Ln(e,t="csv",s,i,n){const a=new XMLHttpRequest,o={csv:Pn,tsv:On,json:_s};a.open("GET",e),s&&Object.keys(s).forEach(function(r){a.setRequestHeader(r,s[r])}),a.onreadystatechange=function(){if(a.readyState===4)if(a.status===200){const r=a.responseText;r&&n.call(this,o[t](t==="json"?JSON.parse(r):r,i))}else throw new Error(`${e}: Something went wrong loading!`)},a.send()}function ms(e,t){const s=e.rows(t);let i;return s.length===1?(i=[{}],s[0].forEach(n=>{i[0][n]=null})):i=e.parse(t),i}function Pn(e){return ms({rows:ve.csvParseRows,parse:ve.csvParse},e)}function On(e){return ms({rows:ve.tsvParseRows,parse:ve.tsvParse},e)}function $s(e,t){const s=e||(t==null?void 0:t.data_keys);return s!=null&&s.x&&(t.data_x=s.x),s}var In={convertData(e,t){const{config:s}=this,i=s.boost_useWorker;let n=e;if(e.bindto&&(n={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(a=>{const o=`data_${a}`;o in e&&(n[a]=e[o])})),n.url&&t)Ln(n.url,n.mimeType,n.headers,$s(n.keys,s),t);else if(n.json)Me(i,_s,t,[Xe,Be])(n.json,$s(n.keys,s));else if(n.rows)Me(i,Be,t)(n.rows);else if(n.columns)Me(i,Xe,t)(n.columns);else if(e.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets(e,t){const s=this,{axis:i,config:n,state:a}=s,o=n.data_type;let r=!1,l=!1,c=!1;i&&(r=i.isCategorized(),l=i.isTimeSeries(),c=i.isCustomX());const u=Object.keys(e[0]||{}),d=u.length?u.filter(s.isNotX,s):[],h=u.length?u.filter(s.isX,s):[];let g;d.forEach(p=>{const _=this.getXKey(p);c||l?h.indexOf(_)>=0?g=(t&&s.data.xs[p]||[]).concat(e.map(x=>x[_]).filter(F).map((x,m)=>s.generateTargetX(x,p,m))):n.data_x?g=this.getOtherTargetXs():nt(n.data_xs)&&(g=s.getXValuesOfXKey(_,s.data.targets)):g=e.map((x,m)=>m),g&&(this.data.xs[p]=g)}),d.forEach(p=>{if(!this.data.xs[p])throw new Error(`x is not defined for id = "${p}".`)});const f=d.map((p,_)=>{const x=n.data_idConverter.bind(s.api)(p),m=s.getXKey(p),$=c&&r,b=$&&e.map(v=>v.x).every(v=>n.axis_x_categories.indexOf(v)>-1),A=e.__append__,y=m===null&&A?s.api.data.values(p).length:0;return{id:x,id_org:p,values:e.map((v,R)=>{const w=v[m];let T=v[p],C;return T=T!==null&&!isNaN(T)&&!X(T)?+T:N(T)||X(T)?T:null,($||a.hasRadar)&&_===0&&!it(w)?(!b&&_===0&&R===0&&!A&&(n.axis_x_categories=[]),C=n.axis_x_categories.indexOf(w),C===-1&&(C=n.axis_x_categories.length,n.axis_x_categories.push(w))):C=s.generateTargetX(w,p,y+R),(it(T)||s.data.xs[p].length<=R)&&(C=void 0),{x:C,value:T,id:x,index:-1}}).filter(v=>H(v.x))}});if(f.forEach(p=>{var _;n.data_xSort&&(p.values=p.values.sort((x,m)=>{const $=x.x||x.x===0?x.x:1/0,b=m.x||m.x===0?m.x:1/0;return $-b})),p.values.forEach((x,m)=>x.index=m),(_=s.data.xs[p.id])==null||_.sort((x,m)=>x-m)}),a.hasNegativeValue=s.hasNegativeValueInTargets(f),a.hasPositiveValue=s.hasPositiveValueInTargets(f),o&&s.isValidChartType(o)){const p=s.mapToIds(f).filter(_=>!(_ in n.data_types)||!s.isValidChartType(n.data_types[_]));s.setTargetType(p,o)}return f.forEach(p=>s.cache.add(p.id_org,p,!0)),f}},Dn={isX(e){const t=this,{config:s}=t,i=s.data_x&&e===s.data_x,n=nt(s.data_xs)&&on(s.data_xs,e);return i||n},isNotX(e){return!this.isX(e)},isStackNormalized(){const{config:e}=this;return!!(e.data_stack_normalize&&e.data_groups.length)},isGrouped(e){const t=this.config.data_groups;return e?t.some(s=>s.indexOf(e)>=0&&s.length>1):t.length>0},getXKey(e){const t=this,{config:s}=t;return s.data_x?s.data_x:nt(s.data_xs)?s.data_xs[e]:null},getXValuesOfXKey(e,t){const s=this,i=t&&nt(t)?s.mapToIds(t):[];let n;return i.forEach(a=>{s.getXKey(a)===e&&(n=s.data.xs[a])}),n},getIndexByX(e,t){const s=this;return t?t.indexOf(V(e)?e:+e):(s.filterByX(s.data.targets,e)[0]||{index:null}).index},getXValue(e,t){const s=this;return e in s.data.xs&&s.data.xs[e]&&F(s.data.xs[e][t])?s.data.xs[e][t]:t},getOtherTargetXs(){const e=this,t=Object.keys(e.data.xs);return t.length?e.data.xs[t[0]]:null},getOtherTargetX(e){const t=this.getOtherTargetXs();return t&&e{s.data_xs[i]=e[i]})},isMultipleX(){return!this.config.axis_x_forceAsSingle&&(nt(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter"))},addName(e){const t=this,{config:s}=t;let i;return e&&(i=s.data_names[e.id],e.name=i!==void 0?i:e.id),e},getAllValuesOnIndex(e,t=!1){const s=this;let i=s.filterTargetsToShow(s.data.targets).map(n=>s.addName(s.getValueOnIndex(n.values,e)));return t&&(i=i.filter(n=>n&&"value"in n&&F(n.value))),i},getValueOnIndex(e,t){const s=e.filter(i=>i.index===t);return s.length?s[0]:null},updateTargetX(e,t){const s=this;e.forEach(i=>{i.values.forEach((n,a)=>{n.x=s.generateTargetX(t[a],i.id,a)}),s.data.xs[i.id]=t})},updateTargetXs(e,t){const s=this;e.forEach(i=>{t[i.id]&&s.updateTargetX([i],t[i.id])})},generateTargetX(e,t,s){const i=this,{axis:n}=i;let a=n!=null&&n.isCategorized()?s:e||s;if(n!=null&&n.isTimeSeries()){const o=mt.bind(i);a=o(e||i.getXValue(t,s))}else n!=null&&n.isCustomX()&&!(n!=null&&n.isCategorized())&&(a=F(e)?+e:i.getXValue(t,s));return a},updateXs(e){e.length&&(this.axis.xs=e.map(t=>t.x))},getPrevX(e){const t=this.axis.xs[e-1];return H(t)?t:null},getNextX(e){const t=this.axis.xs[e+1];return H(t)?t:null},getBaseValue(e){const t=this,{hasAxis:s}=t.state;let{value:i}=e;return i&&s&&(t.isAreaRangeType(e)?i=t.getRangedData(e,"mid"):t.isBubbleZType(e)&&(i=t.getBubbleZData(i,"y"))),i},getMinMaxValue(e){const t=this.getBaseValue.bind(this);let s,i;return(e||this.data.targets.map(n=>n.values)).forEach((n,a)=>{const o=n.map(t).filter(L);s=Math.min(a?s:1/0,...o),i=Math.max(a?i:-1/0,...o)}),{min:s,max:i}},getMinMaxData(){const e=this,t=pt.dataMinMax;let s=e.cache.get(t);if(!s){const i=e.data.targets.map(r=>r.values),n=e.getMinMaxValue(i);let a=[],o=[];i.forEach(r=>{const l=e.getFilteredDataByValue(r,n.min),c=e.getFilteredDataByValue(r,n.max);l.length&&(a=a.concat(l)),c.length&&(o=o.concat(c))}),e.cache.add(t,s={min:a,max:o})}return s},getTotalPerIndex(){const e=this,t=pt.dataTotalPerIndex;let s=e.cache.get(t);return(e.config.data_groups.length||e.isStackNormalized())&&!s&&(s=[],e.data.targets.forEach(i=>{i.values.forEach((n,a)=>{s[a]||(s[a]=0),s[a]+=L(n.value)?n.value:0})})),s},getTotalDataSum(e){const t=this,s=pt.dataTotalSum;let i=t.cache.get(s);if(!L(i)){const n=Ie(t.data.targets.map(a=>a.values)).map(a=>a.value);i=n.length?n.reduce((a,o)=>a+o):0,t.cache.add(s,i)}return e&&(i-=t.getHiddenTotalDataSum()),i},getHiddenTotalDataSum(){const e=this,{api:t,state:{hiddenTargetIds:s}}=e;let i=0;return s.length&&(i=t.data.values.bind(t)(s).reduce((n,a)=>n+a)),i},getFilteredDataByValue(e,t){return e.filter(s=>this.getBaseValue(s)===t)},getMaxDataCount(){return Math.max(...this.data.targets.map(e=>e.values.length),0)},getMaxDataCountTarget(){let e=this.filterTargetsToShow()||[];const t=e.length,s=this.config.axis_x_inverted;return t>1?(e=e.map(i=>i.values).reduce((i,n)=>i.concat(n)).map(i=>i.x),e=Kt(Oe(e)).map((i,n,a)=>({x:i,index:s?a.length-n-1:n}))):t&&(e=e[0].values.concat()),e},mapToIds(e){return e.map(t=>t.id)},mapToTargetIds(e){const t=this;return e?N(e)?e.concat():[e]:t.mapToIds(t.data.targets)},hasTarget(e,t){const s=this.mapToIds(e);for(let i=0,n;n=s[i];i++)if(n===t)return!0;return!1},isTargetToShow(e){return this.state.hiddenTargetIds.indexOf(e)<0},isLegendToShow(e){return this.state.hiddenLegendIds.indexOf(e)<0},filterTargetsToShow(e){const t=this;return(e||t.data.targets).filter(s=>t.isTargetToShow(s.id))},mapTargetsToUniqueXs(e){const t=this,{axis:s}=t;let i=[];return e!=null&&e.length&&(i=Oe(Ie(e.map(n=>n.values.map(a=>+a.x)))),i=s!=null&&s.isTimeSeries()?i.map(n=>new Date(+n)):i.map(Number)),Kt(i)},addTargetIds(e,t){const{state:s}=this;(N(t)?t:[t]).forEach(n=>{s[e].indexOf(n)<0&&s[e].push(n)})},removeTargetIds(e,t){const{state:s}=this;(N(t)?t:[t]).forEach(n=>{const a=s[e].indexOf(n);a>=0&&s[e].splice(a,1)})},addHiddenTargetIds(e){this.addTargetIds("hiddenTargetIds",e)},removeHiddenTargetIds(e){this.removeTargetIds("hiddenTargetIds",e)},addHiddenLegendIds(e){this.addTargetIds("hiddenLegendIds",e)},removeHiddenLegendIds(e){this.removeTargetIds("hiddenLegendIds",e)},getValuesAsIdKeyed(e){const t=this,{hasAxis:s}=t.state,i={},n=t.isMultipleX(),a=n?t.mapTargetsToUniqueXs(e).map(o=>V(o)?o:+o):null;return e.forEach(o=>{const r=[];o.values.filter(({value:l})=>F(l)||l===null).forEach(l=>{let{value:c}=l;c!==null&&t.isCandlestickType(l)&&(c=N(c)?c.slice(0,4):[c.open,c.high,c.low,c.close]),N(c)?r.push(...c):X(c)&&"high"in c?r.push(...Object.values(c)):t.isBubbleZType(l)?r.push(s&&t.getBubbleZData(c,"y")):n?r[t.getIndexByX(l.x,a)]=c:r.push(c)}),i[o.id]=r}),i},checkValueInTargets(e,t){const s=Object.keys(e);let i;for(let n=0;n1},hasNegativeValueInTargets(e){return this.checkValueInTargets(e,t=>t<0)},hasPositiveValueInTargets(e){return this.checkValueInTargets(e,t=>t>0)},orderTargets(e){const t=this,s=[...e],i=t.getSortCompareFn();return i&&s.sort(i),s},getSortCompareFn(e=!1){const t=this,{config:s}=t,i=s.data_order,n=/asc/i.test(i),a=/desc/i.test(i);let o;if(n||a){const r=(c,u)=>c+Math.abs(u.value),l=c=>L(c)?c:"values"in c?c.values.reduce(r,0):c.value;o=(c,u)=>{const d=l(c),h=l(u);return e?n?d-h:h-d:n?h-d:d-h}}else P(i)&&(o=i.bind(t.api));return o||null},filterByX(e,t){return Ie(e.map(s=>s.values)).filter(s=>s.x-t===0)},filterRemoveNull(e){return e.filter(t=>F(this.getBaseValue(t)))},filterByXDomain(e,t){return e.map(s=>({id:s.id,id_org:s.id_org,values:s.values.filter(i=>t[0]<=i.x&&i.x<=t[1])}))},hasDataLabel(){const e=this.config.data_labels;return ke(e)&&e||wt(e)&&nt(e)},hasNullDataValue(e){return e.some(({value:t})=>t===null)},getDataIndexFromEvent(e){const t=this,{$el:s,config:i,state:{hasRadar:n,inputType:a,eventReceiver:{coords:o,rect:r}}}=t;let l;if(n){let c=e.target;/tspan/i.test(c.tagName)&&(c=c.parentNode);const u=(0,S.select)(c).datum();l=u&&Object.keys(u).length===1?u.index:void 0}else{const c=i.axis_rotated,u=cs(s.chart.node()),d=a==="touch"&&e.changedTouches?e.changedTouches[0]:e;l=Pe(o,c?d.clientY+u.y-r.top:d.clientX+u.x-r.left,0,o.length-1,c)}return l},getDataLabelLength(e,t,s){const i=this,n=[0,0],a=1.3;return i.$el.chart.select("svg").selectAll(".dummy").data([e,t]).enter().append("text").text(o=>i.dataLabelFormat(o.id)(o)).each(function(o,r){n[r]=this.getBoundingClientRect()[s]*a}).remove(),n},isNoneArc(e){return this.hasTarget(this.data.targets,e.id)},isArc(e){return"data"in e&&this.hasTarget(this.data.targets,e.data.id)},findSameXOfValues(e,t){const s=e[t].x,i=[];let n;for(n=t-1;n>=0&&s===e[n].x;n--)i.push(e[n]);for(n=t;ns.findClosest(n.values,t));return s.findClosest(i,t)},findClosest(e,t){const s=this,{$el:{main:i}}=s,n=e.filter(r=>r&&F(r.value));let a,o;return n.filter(r=>s.isBarType(r.id)||s.isCandlestickType(r.id)).forEach(r=>{const l=s.isBarType(r.id)?`.${bt.chartBar}.${z.target}${s.getTargetSelectorSuffix(r.id)} .${bt.bar}-${r.index}`:`.${Et.chartCandlestick}.${z.target}${s.getTargetSelectorSuffix(r.id)} .${Et.candlestick}-${r.index} path`;!o&&s.isWithinBar(i.select(l).node())&&(o=r)}),n.filter(r=>!s.isBarType(r.id)&&!s.isCandlestickType(r.id)).forEach(r=>{const l=s.dist(r,t);a=s.getPointSensitivity(r),l{const{x:n,id:a}=i;s.push({x:n,id:a,value:i.value[0]}),s.push({x:n,id:a,value:i.value[2]})}),s},updateDataAttributes(e,t){const s=this,{config:i}=s,n=i[`data_${e}`];return it(t)||(Object.keys(t).forEach(a=>{n[a]=t[a]}),s.redraw({withLegend:!0})),n},getRangedData(e,t="",s="areaRange"){const i=e==null?void 0:e.value;if(N(i)){if(s==="bar")return i.reduce((n,a)=>a-n);{const n={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[s].indexOf(t);return n>=0&&i?i[n]:void 0}}else if(i&&t)return i[t];return i},setRatioForGroupedData(e){const t=this,{config:s}=t;if(s.data_groups.length&&e.some(i=>t.isGrouped(i.id))){const i=n=>t.getRatio("index",n,!0);e.forEach(n=>{"values"in n?n.values.forEach(i):i(n)})}},getRatio(e,t,s=!1){const i=this,{config:n,state:a}=i,o=i.api;let r=0;if(t&&o.data.shown().length)if(r=t.ratio||t.value,e==="arc")if(i.pie.padAngle()())r=t.value/i.getTotalDataSum(!0);else{const l=n.gauge_fullCircle?i.getArcLength():i.getStartingAngle()*-2,c=i.hasType("gauge")?l:Math.PI*2;r=(t.endAngle-t.startAngle)/c}else if(e==="index"){const l=o.data.values.bind(o);let c=this.getTotalPerIndex();if(a.hiddenTargetIds.length){let d=l(a.hiddenTargetIds,!1);d.length&&(d=d.reduce((h,g)=>h.map((f,p)=>(L(f)?f:0)+g[p])),c=c.map((h,g)=>h-d[g]))}const u=c[t.index];t.ratio=L(t.value)&&c&&u?t.value/u:0,r=t.ratio}else if(e==="radar")r=parseFloat(String(Math.max(t.value,0)))/a.current.dataMax*n.radar_size_ratio;else if(e==="bar"){const c=i.getYScaleById.bind(i)(t.id).domain().reduce((u,d)=>d-u);r=c===0?0:Math.abs(i.getRangedData(t,null,e)/c)}else e==="treemap"&&(r/=i.getTotalDataSum(!0));return s&&r?r*100:r},updateDataIndexByX(e){const t=this,s=e.reduce((i,n,a)=>(i[Number(n.x)]=a,i),{});t.data.targets.forEach(i=>{i.values.forEach((n,a)=>{let o=s[Number(n.x)];o===void 0&&(o=a),n.index=o})})},isBubbleZType(e){return this.isBubbleType(e)&&(X(e.value)&&("z"in e.value||"y"in e.value)||N(e.value)&&e.value.length>=2)},isBarRangeType(e){const t=this,{value:s}=e;return t.isBarType(e)&&N(s)&&s.length>=2&&s.every(i=>L(i))},getDataById(e){var t;const s=this.cache.get(e)||this.api.data(e);return(t=s==null?void 0:s[0])!=null?t:s}};function ys(e,t=!1){const s=this,{api:i}=s;t&&s.api.flush(!0),e==null||e.call(i)}var zn={load(e,t){const s=this,{axis:i,data:n,org:a,scale:o}=s,{append:r}=t,l={domain:null,currentDomain:null,x:null};let c=e;c&&(t.filter&&(c=c.filter(t.filter)),(t.type||t.types)&&c.forEach(u=>{var d;const h=((d=t.types)==null?void 0:d[u.id])||t.type;s.setTargetType(u.id,h)}),n.targets.forEach(u=>{for(let d=0;d{const i=e.data||s;e.append&&(i.__append__=!0),i&&t.load(t.convertDataToTargets(i),e)}))},unload(e,t){var s;const i=this,{state:n,$el:a,$T:o}=i,r=!!((s=i.hasLegendDefsPoint)!=null&&s.call(i));let l=t,c=e;if(i.cache.reset(),l||(l=()=>{}),c=c.filter(d=>i.hasTarget(i.data.targets,d)),!c||c.length===0){l();return}const u=a.svg.selectAll(c.map(d=>i.selectorTarget(d)));o(u).style("opacity","0").remove().call(me,l),c.forEach(d=>{var h;const g=i.getTargetSelectorSuffix(d);n.withoutFadeIn[d]=!1,a.legend&&a.legend.selectAll(`.${j.legendItem}${g}`).remove(),i.data.targets=i.data.targets.filter(f=>f.id!==d),r&&((h=a.defs)==null||h.select(`#${i.getDefsPointId(g)}`).remove())}),n.hasFunnel&&i.updateFunnel(i.data.targets),n.hasTreemap&&i.updateTargetsForTreemap(i.data.targets),i.updateTypesElements()}},bs=W(6),Fn={setExpand(e,t,s){const i=this,{config:n,$el:{circle:a}}=i;a&&n.point_focus_expand_enabled&&i.expandCircles(e,t,s),i.expandBarTypeShapes(!0,e,t,s)},expandBarTypeShapes(e=!0,t,s,i){const n=this;["bar","candlestick"].filter(a=>n.$el[a]).forEach(a=>{i&&n.$el[a].classed(z.EXPANDED,!1),n.getShapeByIndex(a,t,s).classed(z.EXPANDED,e)})},setOverOut(e,t){const s=this,{config:i,state:{hasFunnel:n,hasRadar:a,hasTreemap:o},$el:{main:r}}=s,l=X(t);if(l||t!==-1){const c=i[e?"data_onover":"data_onout"].bind(s.api);if(i.color_onover&&s.setOverColor(e,t,l),l){const u=s.getTargetSelectorSuffix(t.id),d=n||o?`${z.target+u} .${st.shape}`:G.arc+u;c(t,r.select(`.${d}`).node())}else if(i.tooltip_grouped)e&&(a&&s.isPointFocusOnly()?s.showCircleFocus(s.getAllValuesOnIndex(t,!0)):s.setExpand(t,null,!0)),!s.isMultipleX()&&r.selectAll(`.${st.shape}-${t}`).each(function(u){c(u,this)});else{const u=s.cache.get(pt.setOverOut)||[],d=r.selectAll(`.${st.shape}-${t}`).filter(function(g){return s.isWithinShape(this,g)}),h=d.filter(function(){return u.every(g=>g!==this)});if(!e||d.empty()||u.length===h.size()&&h.nodes().every((g,f)=>g!==u[f]))for(;u.length;){const g=u.pop();i.data_onout.bind(s.api)((0,S.select)(g).datum(),g)}h.each(function(){e&&(c((0,S.select)(this).datum(),this),u.push(this))}),s.cache.add(pt.setOverOut,u)}}},callOverOutForTouch(e){const t=this,s=t.cache.get(pt.callOverOutForTouch);(X(e)&&s?e.id!==s.id:e!==s)&&((s||L(s))&&t.setOverOut(!1,s),(e||L(e))&&t.setOverOut(!0,e),t.cache.add(pt.callOverOutForTouch,e))},getDraggableSelection(){const e=this,{config:t,state:s}=e;return t.interaction_enabled&&t.data_selection_draggable&&e.drag?(0,bs.drag)().on("drag",function(i){s.event=i,e.drag($t(i,this))}).on("start",function(i){s.event=i,e.dragstart($t(i,this))}).on("end",i=>{s.event=i,e.dragend()}):()=>{}},dispatchEvent(e,t,s){var i,n;const a=this,{config:o,state:{eventReceiver:r,hasAxis:l,hasFunnel:c,hasRadar:u,hasTreemap:d},$el:{eventRect:h,funnel:g,radar:f,treemap:p}}=a;let _=(n=(c||d)&&r.rect||u&&f.axes.select(`.${ot.axis}-${t} text`)||h||((i=a.getArcElementByIdOrIndex)==null?void 0:i.call(a,t)))==null?void 0:n.node();if(_){const x=a.isMultipleX(),m=o.axis_rotated;let{width:$,left:b,top:A}=_.getBoundingClientRect();if(l&&!u&&!x){const w=r.coords[t];w?($=w.w,b+=w.x,A+=w.y):($=0,b=0,A=0)}const y=b+(s?s[0]:0)+(x||m?0:$/2),v=A+(s?s[1]:0)+(m?4:0),R={screenX:y,screenY:v,clientX:y,clientY:v,bubbles:u};(c||d)&&(_=(g!=null?g:p).node()),un[/^(mouse|click)/.test(e)?"mouse":"touch"](_,e,R)}},setDragStatus(e){this.state.dragging=e},unbindZoomEvent(){const e=this,{$el:{eventRect:t,zoomResetBtn:s}}=e;t==null||t.on(".zoom wheel.zoom .drag",null),s==null||s.on("click",null).style("display","none")},unbindAllEvents(){var e;const t=this,{$el:{arcs:s,eventRect:i,legend:n,region:a,svg:o,treemap:r},brush:l}=t,c=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[o,i,a==null?void 0:a.list,l==null?void 0:l.getSelection(),s==null?void 0:s.selectAll("path"),n==null?void 0:n.selectAll("g"),r].forEach(u=>u==null?void 0:u.on(c,null)),(e=t.unbindZoomEvent)==null||e.call(t)}},Mn={categoryName(e){var t;const{axis_x_categories:s}=this.config;return(t=s==null?void 0:s[e])!=null?t:e}},Xn={generateClass(e,t){return` ${e} ${e+this.getTargetSelectorSuffix(t)}`},getClass(e,t){const s=/s$/.test(e),i=/^(area|arc|line|funnel|treemap)s?$/.test(e),n=s?"id":"index";return a=>{const o=a.data||a;return((t?this.generateClass(B[s?"shapes":"shape"],o[n]):"")+this.generateClass(B[e],o[i?"id":n])).trim()}},getChartClass(e){return t=>B[`chart${e}`]+this.classTarget((t.data?t.data:t).id)},generateExtraLineClass(){const t=this.config.line_classes||[],s=[];return function(i){var n;const a=i.id||((n=i.data)==null?void 0:n.id)||i;return s.indexOf(a)<0&&s.push(a),t[s.indexOf(a)%t.length]}},classRegion(e,t){return`${this.generateClass(B.region,t)} ${"class"in e?e.class:""}`},classTarget(e){const t=this.config.data_classes[e];let s="";return t&&(s=` ${B.target}-${t}`),this.generateClass(B.target,e)+s},classFocus(e){return this.classFocused(e)+this.classDefocused(e)},classFocused(e){return` ${this.state.focusedTargetIds.indexOf(e.id)>=0?B.focused:""}`},classDefocused(e){return` ${this.state.defocusedTargetIds.indexOf(e.id)>=0?B.defocused:""}`},getTargetSelectorSuffix(e){return(e||e===0?`-${e}`:"").replace(/[\x00-\x20\x7F-\xA0\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-")},selectorTarget(e,t="",s=""){const i=this.getTargetSelectorSuffix(e);return`${t}.${B.target+i} ${s}, ${t}.${B.circles+i} ${s}`},selectorTargets(e,t){const s=e||[];return s.length?s.map(i=>this.selectorTarget(i,t)):null},selectorLegend(e){return`.${B.legendItem+this.getTargetSelectorSuffix(e)}`},selectorLegends(e){return e!=null&&e.length?e.map(t=>this.selectorLegend(t)):null}},Mt=W(7);const Bn=(e,t,s)=>{const i=(0,S.select)(e.cloneNode(!0));return i.attr("id",s).insert("rect",":first-child").attr("width",i.attr("width")).attr("height",i.attr("height")).style("fill",t),{id:s,node:i.node()}};function Nn(e){const t=pt.colorPattern,{body:s}=lt;let i=s[t];if(!i){const n=";",a=e.classed(Ce.colorPattern,!0).style("background-image");e.classed(Ce.colorPattern,!1),a.indexOf(n)>-1&&(i=a.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(n).map(o=>o.trim().replace(/[\"'\s]/g,"")).filter(Boolean),s[t]=i)}return i}const Gn=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var Vn={generateColor(){const e=this,{$el:t,config:s}=e,i=s.data_colors,n=s.data_color,a=[];let o=nt(s.color_pattern)?s.color_pattern:(0,Mt.scaleOrdinal)(Nn(t.chart)||Gn).range();const r=o;if(P(s.color_tiles)){const l=s.color_tiles.bind(e.api)(),c=o.map((u,d)=>{const h=u.replace(/[#\(\)\s,]/g,""),g=`${e.state.datetimeId}-pattern-${h}-${d}`;return Bn(l[d%l.length],u,g)});o=c.map(u=>`url(#${u.id})`),e.patterns=c}return function(l){var c;const u=l.id||((c=l.data)==null?void 0:c.id)||l,d=e.isTypeOf(u,["line","spline","step"])||!s.data_types[u];let h;return P(i[u])?h=i[u].bind(e.api)(l):i[u]?h=i[u]:(a.indexOf(u)<0&&a.push(u),h=d?r[a.indexOf(u)%r.length]:o[a.indexOf(u)%o.length],i[u]=h),P(n)?n.bind(e.api)(h,l):h}},generateLevelColor(){const e=this,{config:t}=e,s=t.color_pattern,i=t.color_threshold,n=i.unit==="value",a=i.max||100,o=i.values&&i.values.length?i.values:[];return nt(i)?function(r){const l=n?r:r*100/a;let c=s[s.length-1];for(let u=0,d=o.length;u{const r=`${n.datetimeId}-labels-bg${s.getTargetSelectorSuffix(o)}${V(e)?s.getTargetSelectorSuffix(e):""}`;i.defs.append("filter").attr("x",t.x).attr("y",t.y).attr("width",t.width).attr("height",t.height).attr("id",r).html(` + `)})}},getGradienColortUrl(e){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(e)})`},updateLinearGradient(){const e=this,{config:t,data:{targets:s},state:{datetimeId:i},$el:{defs:n}}=e;s.forEach(a=>{const o=`${i}-gradient${e.getTargetSelectorSuffix(a.id)}`,r=e.hasPointType()&&t.point_radialGradient,l=e.isAreaType(a)&&"area"||e.isBarType(a)&&"bar";if((r||l)&&n.select(`#${o}`).empty()){const c=e.color(a),u={defs:null,stops:[]};if(r){const{cx:d=.3,cy:h=.3,r:g=.7,stops:f=[[.1,c,0],[.9,c,1]]}=r;u.stops=f,u.defs=n.append("radialGradient").attr("id",`${o}`).attr("cx",d).attr("cy",h).attr("r",g)}else{const d=t.axis_rotated,{x:h=d?[1,0]:[0,0],y:g=d?[0,0]:[0,1],stops:f=[[0,c,1],[1,c,0]]}=t[`${l}_linearGradient`];u.stops=f,u.defs=n.append("linearGradient").attr("id",`${o}`).attr("x1",h[0]).attr("x2",h[1]).attr("y1",g[0]).attr("y2",g[1])}u.stops.forEach(d=>{const[h,g,f]=d,p=P(g)?g.bind(e.api)(a.id):g;u.defs&&u.defs.append("stop").attr("offset",h).attr("stop-color",p||c).attr("stop-opacity",f)})}})},setOverColor(e,t){const s=this,{config:i,$el:{main:n}}=s,a=i.color_onover;let o=e?a:s.color;X(o)?o=({id:r})=>r in a?a[r]:s.color(r):V(o)?o=()=>a:P(a)&&(o=o.bind(s.api)),n.selectAll(X(t)?`.${G.arc}${s.getTargetSelectorSuffix(t.id)}`:`.${st.shape}-${t}`).style("fill",o)}},Yn={getYDomainMinMax(e,t){const s=this,{axis:i,config:n}=s,a=t==="min",o=n.data_groups,r=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(o.length>0){const c=s[`has${a?"Negative":"Positive"}ValueInTargets`](e);o.forEach(u=>{const d=u.filter(h=>r.indexOf(h)>=0);if(d.length){const h=d[0],g=i.getId(h);c&&l[h]&&(l[h]=l[h].map(f=>(a?f<0:f>0)?f:0)),d.filter((f,p)=>p>0).forEach(f=>{if(l[f]){const p=i.getId(f);l[f].forEach((_,x)=>{const m=+_,$=a?m>0:m<0;p===g&&!(c&&$)&&(l[h][x]+=m)})}})}})}return At(t,Object.keys(l).map(c=>At(t,l[c])))},isHiddenTargetWithYDomain(e){const t=this;return t.state.hiddenTargetIds.some(s=>t.axis.getId(s)===e)},getYDomain(e,t,s){const i=this,{axis:n,config:a,scale:o}=i,r=`axis_${t}`;if(i.isStackNormalized())return[0,100];const l=(o==null?void 0:o[t])&&o[t].type==="log",c=e.filter(T=>n.getId(T.id)===t),u=s?i.filterByXDomain(c,s):c;if(u.length===0)return i.isHiddenTargetWithYDomain(t)?o[t].domain():t==="y2"?o.y.domain():i.getYDomain(e,"y2",s);const d=a[`${r}_min`],h=a[`${r}_max`],g=a[`${r}_center`],f=a[`${r}_inverted`],p=i.hasDataLabel()&&a.axis_rotated,_=i.hasDataLabel()&&!a.axis_rotated;let x=i.getYDomainMinMax(u,"min"),m=i.getYDomainMinMax(u,"max"),$=[E.BAR,E.BUBBLE,E.SCATTER,...Ft.Line].some(T=>{const C=T.indexOf("area")>-1?"area":T;return i.hasType(T,u,!0)&&a[`${C}_zerobased`]});x=F(d)?d:F(h)?x<=h?x:h-10:x,m=F(h)?h:F(d)?d<=m?m:d+10:m,isNaN(x)&&(x=0),isNaN(m)&&(m=x),x===m&&(x<0?m=0:x=0);const b=x>=0&&m>=0,A=x<=0&&m<=0;(F(d)&&b||F(h)&&A)&&($=!1),$&&(b&&(x=0),A&&(m=0));const y=Math.abs(m-x);let v={top:y*.1,bottom:y*.1};if(H(g)){const T=Math.max(Math.abs(x),Math.abs(m));m=g+T,x=g-T}if(p){const T=Nt(o.y.range()),C=i.getDataLabelLength(x,m,"width").map(I=>I/T);["bottom","top"].forEach((I,k)=>{v[I]+=y*(C[k]/(1-C[0]-C[1]))})}else if(_){const T=i.getDataLabelLength(x,m,"height");["bottom","top"].forEach((C,I)=>{v[C]+=i.convertPixelToScale("y",T[I],y)})}v=i.getResettedPadding(v);const R=a[`${r}_padding`];nt(R)&&["bottom","top"].forEach(T=>{v[T]=n.getPadding(R,T,v[T],y)}),$&&(b&&(v.bottom=x),A&&(v.top=-m));const w=l?[x,m].map(T=>T<0?0:T):[x-v.bottom,m+v.top];return f?w.reverse():w},getXDomainMinMax(e,t){var s;const i=this,n=i.config[`axis_x_${t}`],a=At(t,e.map(r=>At(t,r.values.map(l=>l.x))));let o=X(n)?n.value:n;return o=H(o)&&((s=i.axis)!=null&&s.isTimeSeries())?mt.bind(this)(o):o,X(n)&&n.fit&&(t==="min"&&oa)&&(o=void 0),H(o)?o:a},getXDomainPadding(e,t){const s=this,{axis:i,config:n}=s,a=n.axis_x_padding,o=i.isTimeSeries()&&t,r=Nt(e);let l;if(i.isCategorized()||o)l=0;else if(s.hasType("bar")){const d=s.getMaxDataCount();l=d>1?r/(d-1)/2:.5}else l=s.getResettedPadding(r*.01);let{left:c=l,right:u=l}=L(a)?{left:a,right:a}:a;if(a.unit==="px"){const d=Math.abs(r+r*.2);c=i.getPadding(a,"left",l,d),u=i.getPadding(a,"right",l,d)}else{const d=r+c+u;if(o&&d){const h=r/t/d;c=c/d/h,u=u/d/h}}return{left:c,right:u}},getXDomain(e){const t=this,{axis:s,config:i,scale:{x:n}}=t,a=i.axis_x_inverted,o=[t.getXDomainMinMax(e,"min"),t.getXDomainMinMax(e,"max")];let[r=0,l=0]=o;if(n.type!=="log"){const c=s.isCategorized(),u=s.isTimeSeries(),d=t.getXDomainPadding(o);let[h,g]=o;h-g===0&&!c&&(u?(h=new Date(h.getTime()*.5),g=new Date(g.getTime()*1.5)):(h=h===0?1:h*.5,g=g===0?-1:g*1.5)),(h||h===0)&&(r=u?new Date(h.getTime()-d.left):h-d.left),(g||g===0)&&(l=u?new Date(g.getTime()+d.right):g+d.right)}return a?[l,r]:[r,l]},updateXDomain(e,t,s,i,n){var a;const o=this,{config:r,org:l,scale:{x:c,subX:u}}=o,d=r.zoom_enabled;if(s&&(c.domain(n||Kt(o.getXDomain(e),!r.axis_x_inverted)),l.xDomain=c.domain(),u.domain(c.domain()),(a=o.brush)==null||a.scale(u)),t){const h=n||!o.brush||ls(o)?l.xDomain:rs(o).map(u.invert);c.domain(h)}return(s||t)&&d&&o.zoom.updateScaleExtent(),i&&c.domain(o.trimXDomain(c.orgDomain())),c.domain()},trimXDomain(e){const t=this,s=t.config.axis_x_inverted,i=t.getZoomDomain(),[n,a]=i;return(s?e[0]>=n:e[0]<=n)&&(e[1]=+e[1]+(n-e[0]),e[0]=n),(s?e[1]<=a:e[1]>=a)&&(e[0]=+e[0]-(e[1]-a),e[1]=a),e},getZoomDomain(e="zoom",t=!1){const s=this,{config:i,scale:n,org:a}=s;let[o,r]=t&&n[e]?n[e].domain():a.xDomain;return e==="zoom"&&(H(i.zoom_x_min)&&(o=At("min",[o,i.zoom_x_min])),H(i.zoom_x_max)&&(r=At("max",[r,i.zoom_x_max]))),[o,r]},getZoomDomainValue(e){const t=this,{config:s,axis:i}=t;if(i.isCategorized()&&Array.isArray(e)){const n=s.axis_x_inverted;return e.map((o,r)=>Number(o)+(r===0?+n:+!n))}return e},convertPixelToScale(e,t,s){const i=this,{config:n,state:a}=i,o=n.axis_rotated;let r;return e==="x"?r=o?"height":"width":r=o?"width":"height",s*(t/a[r])},withinRange(e,t=[0,0],s){const n=this.config.axis_x_inverted,[a,o]=s;if(Array.isArray(e)){const r=[...e];if(n&&r.reverse(),r[0](c===0?n?+l<=a:+l>=a:n?+l>=o:+l<=o)&&!e.every((u,d)=>u===t[d]))}return!1}};function vs(e,t,s){const{config:i}=e,n=`axis_${t}_tick_format`;return(i[n]?i[n]:e.defaultValueFormat).call(e.api,s)}var jn={yFormat(e){return vs(this,"y",e)},y2Format(e){return vs(this,"y2",e)},getDefaultValueFormat(){const e=this,{defaultArcValueFormat:t,yFormat:s,y2Format:i}=e,n=e.hasArcType(null,["gauge","polar","radar"]);return function(a,o,r){return(n?t:e.axis&&e.axis.getId(r)==="y2"?i:s).call(e,a,o)}},defaultValueFormat(e){return N(e)?e.join("~"):F(e)?+e:""},defaultArcValueFormat(e,t){return`${(t*100).toFixed(1)}%`},defaultPolarValueFormat(e){return`${e}`},dataLabelFormat(e){const t=this,s=t.config.data_labels,i=a=>{const o="~";let r=a;return N(a)?r=a.join(o):X(a)&&(r=Object.values(a).join(o)),r};let n=i;return P(s.format)?n=s.format:wt(s.format)&&(s.format[e]?n=s.format[e]===!0?i:s.format[e]:n=()=>""),n.bind(t.api)}};function Te(e){const t=this,s=t.getDataById(e);return t.levelColor?t.levelColor(s.values[0].value):t.color(s)}function Ne(e,t=!0){var s;const{config:i}=this;let n=(s=i.data_names[e])!=null?s:e;return t&&P(i.legend_format)&&(n=i.legend_format(n)),n}var Hn={initLegend(){const e=this,{config:t,$el:s}=e;e.legendItemTextBox={},e.state.legendHasRendered=!1,t.legend_show?(t.legend_contents_bindto||(s.legend=e.$el.svg.append("g").classed(j.legend,!0).attr("transform",e.getTranslate("legend"))),e.updateLegend()):e.state.hiddenLegendIds=e.mapToIds(e.data.targets)},updateLegend(e,t,s){var i;const n=this,{config:a,state:o,scale:r,$el:l}=n,c=t||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};c.withTransition=zt(c,"withTransition",!0),c.withTransitionForTransform=zt(c,"withTransitionForTransform",!0),a.legend_contents_bindto&&a.legend_contents_template?n.updateLegendTemplate():o.hasTreemap||n.updateLegendElement(e||n.mapToIds(n.data.targets),c,s),(i=l.legend)==null||i.selectAll(`.${j.legendItem}`).classed(j.legendItemHidden,function(u){const d=!n.isTargetToShow(u);return d&&(this.style.opacity=null),d}),n.updateScales(!1,!r.zoom),n.updateSvgSize(),n.transformAll(c.withTransitionForTransform,s),o.legendHasRendered=!0},updateLegendTemplate(){const e=this,{config:t,$el:s}=e,i=(0,S.select)(t.legend_contents_bindto),n=t.legend_contents_template;if(!i.empty()){const a=e.mapToIds(e.data.targets),o=[];let r="";a.forEach(c=>{const u=P(n)?n.bind(e.api)(c,e.color(c),e.api.data(c)[0].values):be(n,{COLOR:e.color(c),TITLE:c});u&&(o.push(c),r+=u)});const l=i.html(r).selectAll(function(){return this.childNodes}).data(o);e.setLegendItem(l),s.legend=i}},updateSizeForLegend(e){const t=this,{config:s,state:{isLegendTop:i,isLegendLeft:n,isLegendRight:a,isLegendInset:o,current:r}}=t,{width:l,height:c}=e,u={top:i?t.getCurrentPaddingByDirection("top")+s.legend_inset_y+5.5:r.height-c-t.getCurrentPaddingByDirection("bottom")-s.legend_inset_y,left:n?t.getCurrentPaddingByDirection("left")+s.legend_inset_x+.5:r.width-l-t.getCurrentPaddingByDirection("right")-s.legend_inset_x+.5};t.state.margin3={top:a?0:o?u.top:r.height-c,right:NaN,bottom:0,left:a?r.width-l:o?u.left:0}},transformLegend(e){const t=this,{$el:{legend:s},$T:i}=t;i(s,e).attr("transform",t.getTranslate("legend"))},updateLegendStep(e){this.state.legendStep=e},updateLegendItemWidth(e){this.state.legendItemWidth=e},updateLegendItemHeight(e){this.state.legendItemHeight=e},updateLegendItemColor(e,t){const{legend:s}=this.$el;s&&s.select(`.${j.legendItem}-${e} line`).style("stroke",t)},getLegendWidth(){const e=this,{current:{width:t},isLegendRight:s,isLegendInset:i,legendItemWidth:n,legendStep:a}=e.state;return e.config.legend_show?s||i?n*(a+1):t:0},getLegendHeight(){var e;const t=this,{current:s,isLegendRight:i,legendItemHeight:n,legendStep:a}=t.state,o=((e=t.config.padding)==null?void 0:e.mode)==="fit";return t.config.legend_show?i?s.height:(o?10:Math.max(20,n))*(a+1):0},opacityForUnfocusedLegend(e){return e.classed(j.legendItemHidden)?null:"0.3"},toggleFocusLegend(e,t){const s=this,{$el:{legend:i},$T:n}=s,a=s.mapToTargetIds(e);i&&n(i.selectAll(`.${j.legendItem}`).filter(o=>a.indexOf(o)>=0).classed(Z.legendItemFocused,t)).style("opacity",function(){return t?null:s.opacityForUnfocusedLegend.call(s,(0,S.select)(this))})},revertLegend(){const e=this,{$el:{legend:t},$T:s}=e;t&&s(t.selectAll(`.${j.legendItem}`).classed(Z.legendItemFocused,!1)).style("opacity",null)},showLegend(e){const t=this,{config:s,$el:i,$T:n}=t;s.legend_show||(s.legend_show=!0,i.legend?i.legend.style("visibility",null):t.initLegend(),!t.state.legendHasRendered&&t.updateLegend()),t.removeHiddenLegendIds(e),n(i.legend.selectAll(t.selectorLegends(e)).style("visibility",null)).style("opacity",null)},hideLegend(e){const t=this,{config:s,$el:{legend:i}}=t;s.legend_show&&Tt(e)&&(s.legend_show=!1,i.style("visibility","hidden")),t.addHiddenLegendIds(e),i.selectAll(t.selectorLegends(e)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox(e,t){const s=this,{cache:i,state:n}=s;let a;const o=pt.legendItemTextBox;return e&&(a=!n.redrawing&&i.get(o)||{},a[e]||(a[e]=s.getTextRect(t,j.legendItem),i.add(o,a)),a=a[e]),a},setLegendItem(e){const t=this,{$el:s,api:i,config:n,state:a}=t,o=a.inputType==="touch",r=t.hasType("gauge"),l=n.boost_useCssRule,c=n.legend_item_interaction;e.attr("class",function(u){const d=(0,S.select)(this);return(!d.empty()&&d.attr("class")||"")+t.generateClass(j.legendItem,u)}).style("visibility",u=>t.isLegendToShow(u)?null:"hidden"),n.interaction_enabled&&(l&&[[`.${j.legendItem}`,"cursor:pointer"],[`.${j.legendItem} text`,"pointer-events:none"],[`.${j.legendItemPoint} text`,"pointer-events:none"],[`.${j.legendItemTile}`,"pointer-events:none"],[`.${j.legendItemEvent}`,"fill-opacity:0"]].forEach(u=>{const[d,h]=u;t.setCssRule(!1,d,[h])(s.legend)}),e.on(c.dblclick?"dblclick":"click",c||P(n.legend_item_onclick)?function(u,d){if(!K(n.legend_item_onclick,i,d)){const{altKey:h,target:g,type:f}=u;f==="dblclick"||h?a.hiddenTargetIds.length&&g.parentNode.getAttribute("class").indexOf(j.legendItemHidden)===-1?i.show():(i.hide(),i.show(d)):(i.toggle(d),(0,S.select)(this).classed(Z.legendItemFocused,!1))}o&&t.hideTooltip()}:null),!o&&e.on("mouseout",c||P(n.legend_item_onout)?function(u,d){K(n.legend_item_onout,i,d)||((0,S.select)(this).classed(Z.legendItemFocused,!1),r&&t.undoMarkOverlapped(t,`.${_t.gaugeValue}`),t.api.revert())}:null).on("mouseover",c||P(n.legend_item_onover)?function(u,d){K(n.legend_item_onover,i,d)||((0,S.select)(this).classed(Z.legendItemFocused,!0),r&&t.markOverlapped(d,t,`.${_t.gaugeValue}`),!a.transiting&&t.isTargetToShow(d)&&i.focus(d))}:null),!e.empty()&&e.on("click mouseout mouseover")&&e.style("cursor",t.getStylePropValue("pointer")))},updateLegendElement(e,t){const s=this,{config:i,state:n,$el:{legend:a},$T:o}=s,l=i.legend_item_tile_type!=="circle",c=i.legend_item_tile_r,u={width:l?i.legend_item_tile_width:c*2,height:l?i.legend_item_tile_height:c*2},d={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:u.width+5,totalLength:0},h={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let g,f,p;const _=e.filter(y=>!H(i.data_names[y])||i.data_names[y]!==null),x=t.withTransition,m=s.getUpdateLegendPositions(_,d,h);n.isLegendInset&&(d.step=i.legend_inset_step?i.legend_inset_step:_.length,s.updateLegendStep(d.step)),n.isLegendRight?(g=y=>d.max.width*h.steps[y],f=y=>h.margins[h.steps[y]]+h.offsets[y]):n.isLegendInset?(g=y=>d.max.width*h.steps[y]+10,f=y=>h.margins[h.steps[y]]+h.offsets[y]):(g=y=>h.margins[h.steps[y]]+h.offsets[y],f=y=>d.max.height*h.steps[y]);const $={xText:(y,v)=>g(y,v)+4+u.width,xRect:(y,v)=>g(y,v),x1Tile:(y,v)=>g(y,v)-2,x2Tile:(y,v)=>g(y,v)-2+u.width,yText:(y,v)=>f(y,v)+9,yRect:(y,v)=>f(y,v)-5,yTile:(y,v)=>f(y,v)+4};s.generateLegendItem(_,u,m,$),p=a.select(`.${j.legendBackground} rect`),n.isLegendInset&&d.max.width>0&&p.size()===0&&(p=a.insert("g",`.${j.legendItem}`).attr("class",j.legendBackground).append("rect")),i.legend_tooltip&&a.selectAll("title").data(_).text(y=>Ne.bind(s)(y,!1));const b=a.selectAll("text").data(_).text(y=>Ne.bind(s)(y)).each(function(y,v){m(this,y,v)});o(b,x).attr("x",$.xText).attr("y",$.yText);const A=a.selectAll(`rect.${j.legendItemEvent}`).data(_);o(A,x).attr("width",y=>h.widths[y]).attr("height",y=>h.heights[y]).attr("x",$.xRect).attr("y",$.yRect),s.updateLegendItemPos(_,x,$),p&&o(p,x).attr("height",s.getLegendHeight()-12).attr("width",d.max.width*(d.step+1)+10),s.updateLegendItemWidth(d.max.width),s.updateLegendItemHeight(d.max.height),s.updateLegendStep(d.step)},getUpdateLegendPositions(e,t,s){const i=this,{config:n,state:a}=i,o=a.isLegendRight||a.isLegendInset;return function(r,l,c){const u=c===0,d=c===e.length-1,h=i.getLegendItemTextBox(l,r),g=h.width+t.tileWidth+(d&&!o?0:t.padding.right)+n.legend_padding,f=h.height+t.padding.top,p=o?f:g,_=o?i.getLegendHeight():i.getLegendWidth();let x;const m=function(b,A){A||(x=(_-t.totalLength-p)/2,x=t.max.width)&&(t.max.width=g),(!t.max.height||f>=t.max.height)&&(t.max.height=f);const $=o?t.max.height:t.max.width;n.legend_equally?(Object.keys(s.widths).forEach(b=>s.widths[b]=t.max.width),Object.keys(s.heights).forEach(b=>s.heights[b]=t.max.height),x=(_-$*e.length)/2,xm(b))):m(l,!0)):m(l)}},generateLegendItem(e,t,s,i){const n=this,{config:a,state:o,$el:{legend:r}}=n,l=a.legend_usePoint,c=a.legend_item_tile_r,u=a.legend_item_tile_type,d=u!=="circle",h=o.isLegendRight||o.isLegendInset,g=-200,f=r.selectAll(`.${j.legendItem}`).data(e).enter().append("g");if(n.setLegendItem(f),a.legend_tooltip&&f.append("title").text(p=>p),f.append("text").text(p=>Ne.bind(n)(p)).each(function(p,_){s(this,p,_)}).style("pointer-events",n.getStylePropValue("none")).attr("x",h?i.xText:g).attr("y",h?g:i.yText),f.append("rect").attr("class",j.legendItemEvent).style("fill-opacity",n.getStylePropValue("0")).attr("x",h?i.xRect:g).attr("y",h?g:i.yRect),l){const p=[];f.append(_=>{const x=nt(a.point_pattern)?a.point_pattern:[a.point_type];p.indexOf(_)===-1&&p.push(_);let m=x[p.indexOf(_)%x.length];return m==="rectangle"&&(m="rect"),lt.createElementNS(S.namespaces.svg,"hasValidPointType"in n&&n.hasValidPointType(m)?m:"use")}).attr("class",j.legendItemPoint).style("fill",Te.bind(n)).style("pointer-events",n.getStylePropValue("none")).attr("href",(_,x,m)=>{const b=m[x].nodeName.toLowerCase(),A=n.getTargetSelectorSuffix(_);return b==="use"?`#${o.datetimeId}-point${A}`:void 0})}else f.append(d?"line":u).attr("class",j.legendItemTile).style("stroke",Te.bind(n)).style("pointer-events",n.getStylePropValue("none")).call(p=>{u==="circle"?p.attr("r",c).style("fill",Te.bind(n)).attr("cx",h?i.x2Tile:g).attr("cy",h?g:i.yTile):d&&p.attr("stroke-width",t.height).attr("x1",h?i.x1Tile:g).attr("y1",h?g:i.yTile).attr("x2",h?i.x2Tile:g).attr("y2",h?g:i.yTile)})},updateLegendItemPos(e,t,s){const i=this,{config:n,$el:{legend:a},$T:o}=i,r=n.legend_usePoint,l=n.legend_item_tile_type,c=l!=="circle";if(r){const u=a.selectAll(`.${j.legendItemPoint}`).data(e);o(u,t).each(function(){const d=this.nodeName.toLowerCase(),h=n.point_r;let g="x",f="y",p=2,_=2.5,x=null,m=null,$=null;if(d==="circle"){const b=h*.2;g="cx",f="cy",x=h+b,p=h*2,_=-b}else if(d==="rect"){const b=h*2.5;m=b,$=b,_=3}(0,S.select)(this).attr(g,b=>s.x1Tile(b)+p).attr(f,b=>s.yTile(b)-_).attr("r",x).attr("width",m).attr("height",$)})}else{const u=a.selectAll(`.${j.legendItemTile}`).data(e);o(u,t).style("stroke",Te.bind(i)).call(d=>{l==="circle"?d.attr("cx",h=>{const g=s.x2Tile(h);return g-(g-s.x1Tile(h))/2}).attr("cy",s.yTile):c&&d.attr("x1",s.x1Tile).attr("y1",s.yTile).attr("x2",s.x2Tile).attr("y2",s.yTile)})}}},Wn=W(8),Un={redraw(e={}){var t,s,i,n;const a=this,{config:o,state:r,$el:l}=a,{main:c,treemap:u}=l;r.redrawing=!0;const d=a.filterTargetsToShow(a.data.targets),{flow:h,initializing:g}=e,f=a.getWithOption(e),p=f.Transition?o.transition_duration:0,_=f.TransitionForExit?p:0,x=f.TransitionForAxis?p:0,m=(t=a.axis)==null?void 0:t.generateTransitions(x);a.updateSizes(g),f.Legend&&o.legend_show?(e.withTransition=!!p,!u&&a.updateLegend(a.mapToIds(a.data.targets),e,m)):f.Dimension&&a.updateDimension(!0),o.data_empty_label_text&&c.select(`text.${gt.text}.${z.empty}`).attr("x",r.width/2).attr("y",r.height/2).text(o.data_empty_label_text).style("display",d.length?"none":null),r.hasAxis?(a.axis.redrawAxis(d,f,m,h,g),a.hasGrid()&&a.updateGrid(),o.regions.length&&a.updateRegion(),["bar","candlestick","line","area"].forEach($=>{const b=ft($);(/^(line|area)$/.test($)&&a.hasTypeOf(b)||a.hasType($))&&a[`update${b}`](f.TransitionForExit)}),l.text&&c.selectAll(`.${J.selectedCircles}`).filter(a.isBarType.bind(a)).selectAll("circle").remove(),o.interaction_enabled&&!h&&f.EventRect&&(a.redrawEventRect(),(s=a.bindZoomEvent)==null||s.call(a))):(l.arcs&&a.redrawArc(p,_,f.Transform),l.radar&&a.redrawRadar(),l.polar&&a.redrawPolar(),l.funnel&&a.redrawFunnel(),u&&a.updateTreemap(_)),!r.resizing&&!u&&(a.hasPointType()||r.hasRadar)?a.updateCircle():(i=a.hasLegendDefsPoint)!=null&&i.call(a)&&a.data.targets.forEach(a.point("create",this)),a.hasDataLabel()&&!a.hasArcType(null,["radar"])&&a.updateText(),(n=a.redrawTitle)==null||n.call(a),g&&a.updateTypesElements(),a.generateRedrawList(d,h,p,f.Subchart),a.updateTooltipOnRedraw(),a.callPluginHook("$redraw",e,p)},generateRedrawList(e,t,s,i){const n=this,{config:a,state:o}=n,r=n.getDrawShape();o.hasAxis&&a.subchart_show&&n.redrawSubchart(i,s,r);const l=t&&n.generateFlow({targets:e,flow:t,duration:t.duration,shape:r,xv:n.xv.bind(n)}),c=(s||l)&&ce(),u=n.getRedrawList(r,t,l,c),d=()=>{l&&l(),o.redrawing=!1,K(a.onrendered,n.api)};if(d)if(c&&u.length){const h=xs();(0,Wn.transition)().duration(s).each(()=>{u.reduce((g,f)=>g.concat(f),[]).forEach(g=>h.add(g))}).call(h,d)}else o.transiting||d();n.mapToIds(n.data.targets).forEach(h=>{o.withoutFadeIn[h]=!0})},getRedrawList(e,t,s,i){const n=this,{config:a,state:{hasAxis:o,hasRadar:r,hasTreemap:l},$el:{grid:c}}=n,{cx:u,cy:d,xForText:h,yForText:g}=e.pos,f=[];return o&&((a.grid_x_lines.length||a.grid_y_lines.length)&&f.push(n.redrawGrid(i)),a.regions.length&&f.push(n.redrawRegion(i)),Object.keys(e.type).forEach(p=>{const _=ft(p),x=e.type[p];(/^(area|line)$/.test(p)&&n.hasTypeOf(_)||n.hasType(p))&&f.push(n[`redraw${_}`](x,i))}),!t&&c.main&&f.push(n.updateGridFocus())),(!n.hasArcType()||r)&&nt(a.data_labels)&&a.data_labels!==!1&&f.push(n.redrawText(h,g,t,i)),(n.hasPointType()||r)&&!n.isPointFocusOnly()&&n.redrawCircle&&f.push(n.redrawCircle(u,d,i,s)),l&&f.push(n.redrawTreemap(i)),f},updateAndRedraw(e={}){const t=this,{config:s,state:i}=t;let n;e.withTransition=zt(e,"withTransition",!0),e.withTransform=zt(e,"withTransform",!1),e.withLegend=zt(e,"withLegend",!1),e.withUpdateXDomain=!0,e.withUpdateOrgXDomain=!0,e.withTransitionForExit=!1,e.withTransitionForTransform=zt(e,"withTransitionForTransform",e.withTransition),e.withLegend&&s.legend_show||(i.hasAxis&&(n=t.axis.generateTransitions(e.withTransitionForAxis?s.transition_duration:0)),t.updateScales(),t.updateSvgSize(),t.transformAll(e.withTransitionForTransform,n)),t.redraw(e,n)}};function Yt(e="linear",t,s){const i={linear:Mt.scaleLinear,log:Mt.scaleSymlog,_log:Mt.scaleLog,time:Mt.scaleTime,utc:Mt.scaleUtc}[e]();return i.type=e,/_?log/.test(e)&&i.clamp(!0),i.range([t!=null?t:0,s!=null?s:1])}var Zn={getXScale(e,t,s,i){const n=this,a=n.state.loading!=="append"&&n.scale.zoom||Yt(n.axis.getAxisType("x"),e,t);return n.getCustomizedXScale(s?a.domain(s):a,i)},getYScale(e,t,s,i){const a=Yt(this.axis.getAxisType(e),t,s);return i&&a.domain(i),a},getYScaleById(e,t=!1){var s;const i=((s=this.axis)==null?void 0:s.getId(e))==="y2",n=t?i?"subY2":"subY":i?"y2":"y";return this.scale[n]},getCustomizedXScale(e,t){const s=this,i=t||(()=>s.axis.x.tickOffset()),n=s.config.axis_x_inverted,a=function(o,r){const l=e(o)+i();return r?l:Math.ceil(l)};for(const o in e)a[o]=e[o];return a.orgDomain=()=>e.domain(),a.orgScale=()=>e,s.axis.isCategorized()&&(a.domain=function(o){let r=o;return arguments.length?(e.domain(r),a):(r=this.orgDomain(),n?[r[0]+1,r[1]]:[r[0],r[1]+1])}),a},updateScales(e,t=!0){var s,i;const n=this,{axis:a,config:o,format:r,org:l,scale:c,state:{current:u,width:d,height:h,width2:g,height2:f,hasAxis:p,hasTreemap:_}}=n;if(p){const x=o.axis_rotated,m=n.getResettedPadding(1),$={x:x?m:0,y:x?0:h,subX:x?1:0,subY:x?0:f},b={x:x?h:d,y:x?d:m,subX:x?h:d,subY:x?g:1},A=t&&((s=c.x)==null?void 0:s.orgDomain()),y=t&&l.xDomain;c.x=n.getXScale($.x,b.x,A,()=>a.x.tickOffset()),c.subX=n.getXScale($.x,b.x,y,v=>{var R;return v%1?0:((R=a.subX)!=null?R:a.x).tickOffset()}),r.xAxisTick=a.getXAxisTickFormat(),r.subXAxisTick=a.getXAxisTickFormat(!0),a.setAxis("x",c.x,o.axis_x_tick_outer,e),o.subchart_show&&a.setAxis("subX",c.subX,o.axis_x_tick_outer,e),c.y=n.getYScale("y",$.y,b.y,c.y?c.y.domain():o.axis_y_default),c.subY=n.getYScale("y",$.subY,b.subY,c.subY?c.subY.domain():o.axis_y_default),a.setAxis("y",c.y,o.axis_y_tick_outer,e),o.axis_y2_show&&(c.y2=n.getYScale("y2",$.y,b.y,c.y2?c.y2.domain():o.axis_y2_default),c.subY2=n.getYScale("y2",$.subY,b.subY,c.subY2?c.subY2.domain():o.axis_y2_default),a.setAxis("y2",c.y2,o.axis_y2_tick_outer,e))}else if(_){const x=n.getCurrentPadding();c.x=(0,Mt.scaleLinear)().rangeRound([x.left,u.width-x.right]),c.y=(0,Mt.scaleLinear)().rangeRound([x.top,u.height-x.bottom])}else(i=n.updateArc)==null||i.call(n)},xx(e){const t=this,{config:s,scale:{x:i,zoom:n}}=t,a=s.zoom_enabled&&n?n:i;return e?a(F(e.x)?e.x:e):null},xv(e){const t=this,{axis:s,config:i,scale:{x:n,zoom:a}}=t,o=i.zoom_enabled&&a?a:n;let r=t.getBaseValue(e);return s.isTimeSeries()?r=mt.call(t,r):s.isCategorized()&&V(r)&&(r=i.axis_x_categories.indexOf(r)),Math.ceil(o(r))},yv(e){const t=this,{scale:{y:s,y2:i}}=t,n=e.axis&&e.axis==="y2"?i:s;return Math.ceil(n(t.getBaseValue(e)))},subxx(e){return e?this.scale.subX(e.x):null}},qn={setContainerSize(){const e=this,{state:t}=e;t.current.width=e.getCurrentWidth(),t.current.height=e.getCurrentHeight()},getCurrentWidth(){const e=this;return e.config.size_width||e.getParentWidth()},getCurrentHeight(){const e=this,{config:t}=e,s=t.size_height||e.getParentHeight();return s>0?s:320/(e.hasType("gauge")&&!t.gauge_fullCircle?2:1)},getParentRectValue(e){const t=`offset${ft(e)}`;let s=this.$el.chart.node(),i=0;for(;i<30&&s&&s.tagName!=="BODY";){try{i=s.getBoundingClientRect()[e]}catch(a){t in s&&(i=s[t])}s=s.parentNode}const n=lt.body[t];return i>n&&(i=n),i},getParentWidth(){return this.getParentRectValue("width")},getParentHeight(){const e=this.$el.chart.style("height");let t=0;return e&&(t=/px$/.test(e)?parseInt(e,10):this.getParentRectValue("height")),t},getSvgLeft(e){const t=this,{config:s,state:{hasAxis:i},$el:n}=t,a=s.axis_rotated,o=a||!a&&!s.axis_y_inner,r=a?ot.axisX:ot.axisY,l=n.main.select(`.${r}`).node(),c=i&&s[`axis_${a?"x":"y"}_label`];let u=0;if(i&&(V(c)||V(c.text)||/^inner-/.test(c==null?void 0:c.position))){const p=n.main.select(`.${r}-label`);p.empty()||(u=p.node().getBoundingClientRect().left)}const d=l&&o?l.getBoundingClientRect():{right:0},h=n.chart.node().getBoundingClientRect().left+u,g=t.hasArcType(),f=d.right-h-(g?0:t.getCurrentPaddingByDirection("left",e));return f>0?f:0},updateDimension(e){var t;const s=this,{config:i,state:{hasAxis:n},$el:a}=s;n&&!e&&s.axis.x&&i.axis_rotated&&((t=s.axis.subX)==null||t.create(a.axis.subX)),s.updateScales(e),s.updateSvgSize(),s.transformAll(!1)},updateSvgSize(){const e=this,{state:{clip:t,current:s,hasAxis:i,width:n,height:a},$el:{svg:o}}=e;if(o.attr("width",s.width).attr("height",s.height),i){const r=o.select(`.${Qe.brush} .overlay`),l={width:0,height:0};r.size()&&(l.width=+r.attr("width"),l.height=+r.attr("height")),o.selectAll([`#${t.id}`,`#${t.idGrid}`]).select("rect").attr("width",n).attr("height",a),o.select(`#${t.idXAxis}`).select("rect").call(e.setXAxisClipPath.bind(e)),o.select(`#${t.idYAxis}`).select("rect").call(e.setYAxisClipPath.bind(e)),t.idSubchart&&o.select(`#${t.idSubchart}`).select("rect").attr("width",n).attr("height",l.height)}},getCurrentPaddingByDirection(e,t=!1,s=!1){var i;const n=this,{config:a,$el:o,state:{hasAxis:r}}=n,l=a.axis_rotated,c=((i=a.padding)==null?void 0:i.mode)==="fit",u=L(a[`padding_${e}`])?a[`padding_${e}`]:void 0,d=r?{top:l?"y2":null,bottom:l?"y":"x",left:l?"x":"y",right:l?null:"y2"}[e]:null,h=/^(left|right)$/.test(e),g=d&&a[`axis_${d}_inner`],f=d&&a[`axis_${d}_show`],p=d?a[`axis_${d}_axes`].length:0;let _=d?h?n.getAxisWidthByAxisId(d,t):n.getHorizontalAxisHeight(d):0;const x=20;let m=0;!c&&h&&(_=an(_));let $=r&&h&&(g||it(u)&&!f)?0:c?(f?_:0)+(u!=null?u:0):it(u)?_:u;return h&&r?(d&&(c||g)&&a[`axis_${d}_label`].text&&($+=n.axis.getAxisLabelPosition(d).isOuter?x:0),e==="right"?($+=l?!c&&it(u)?10:2:!f||g?c?2:1:0,$+=s?n.axis.getXAxisTickTextY2Overflow(x):0):e==="left"&&l&&it(u)&&($=a.axis_x_show?c?_:Math.max(_,40):1)):e==="top"?(o.title&&o.title.node()&&($+=n.getTitlePadding()),m=l&&!g?p:0):e==="bottom"&&r&&l&&!f&&($+=1),$+_*p-m},getCurrentPadding(e=!1){const t=this,[s,i,n,a]=["top","bottom","left","right"].map(o=>t.getCurrentPaddingByDirection(o,null,e));return{top:s,bottom:i,left:n,right:a}},getResettedPadding(e){const t=this,{config:s}=t,i=L(e);let n=i?0:{};return s.padding===!1?!i&&Object.keys(e).forEach(a=>{n[a]=!Tt(s.data_labels)&&s.data_labels!==!1&&a==="top"?e[a]:0}):n=e,n},updateSizes(e){var t,s,i,n,a;const o=this,{config:r,state:l,$el:{legend:c}}=o,u=r.axis_rotated,d=o.hasArcType()||l.hasFunnel||l.hasTreemap,h=((t=r.padding)==null?void 0:t.mode)==="fit";!e&&o.setContainerSize();const g={width:c?o.getLegendWidth():0,height:c?o.getLegendHeight():0};!d&&r.axis_x_show&&r.axis_x_tick_autorotate&&o.updateXAxisTickClip();const f={right:r.legend_show&&l.isLegendRight?o.getLegendWidth()+(h?0:20):0,bottom:!r.legend_show||l.isLegendRight||l.isLegendInset?0:g.height},p=u||d?0:o.getHorizontalAxisHeight("x"),_=r.subchart_axis_x_show&&r.subchart_axis_x_tick_text_show?p:30,x=r.subchart_show&&!d?r.subchart_size_height+_:0,m=o.hasType("gauge")&&r.arc_needle_show&&!r.gauge_fullCircle&&!r.gauge_label_show?10:0,$=o.getCurrentPadding(!0);if(l.margin=!d&&u?{top:$.top,right:d?0:$.right+f.right,bottom:f.bottom+$.bottom,left:x+(d?0:$.left)}:{top:(h?0:4)+$.top,right:d?0:$.right+f.right,bottom:m+x+f.bottom+$.bottom,left:d?0:$.left},l.margin=o.getResettedPadding(l.margin),l.margin2=u?{top:l.margin.top,right:NaN,bottom:20+f.bottom,left:o.state.rotatedPadding.left}:{top:l.current.height-x-f.bottom,right:NaN,bottom:_+f.bottom,left:l.margin.left},l.margin3={top:0,right:NaN,bottom:0,left:0},(s=o.updateSizeForLegend)==null||s.call(o,g),l.width=l.current.width-l.margin.left-l.margin.right,l.height=l.current.height-l.margin.top-l.margin.bottom,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l.width2=u?l.margin.left-l.rotatedPadding.left-l.rotatedPadding.right:l.width,l.height2=u?l.height:l.current.height-l.margin2.top-l.margin2.bottom,l.width2<0&&(l.width2=0),l.height2<0&&(l.height2=0),o.hasArcType()){const b=o.hasType("gauge"),A=r.legend_show&&l.isLegendRight,y=(i=l.hasRadar&&o.cache.get(pt.radarTextWidth))!=null?i:0;l.arcWidth=l.width-(A?g.width+10:0)-y,l.arcHeight=l.height-(A&&!b?0:10),(n=r.arc_rangeText_values)!=null&&n.length&&(b?(l.arcWidth-=25,l.arcHeight-=10,l.margin.left+=10):(l.arcHeight-=20,l.margin.top+=10)),b&&!r.gauge_fullCircle&&(l.arcHeight+=l.height-o.getPaddingBottomForGauge()),(a=o.updateRadius)==null||a.call(o)}l.isLegendRight&&d&&(l.margin3.left=l.arcWidth/2+l.radiusExpanded*1.1)}},Kn={setCssRule(e,t,s,i){const n=this,{config:a,state:{cssRule:o,style:r}}=n;return a.boost_useCssRule?l=>{l.each(c=>{const u=i&&(i==null?void 0:i.call(n,c)),d=`${e?`.${st.shapes+n.getTargetSelectorSuffix(c.id)}`:""}${t}`;t in o&&r.sheet.deleteRule(o[d]),n.state.cssRule[d]=cn(r,d,s.filter(Boolean).map(h=>V(u)&&h.indexOf(":")===-1?`${h}: ${u}`:h||""))})}:()=>{}},getStylePropValue(e){const{config:{boost_useCssRule:t}}=this;return t?null:P(e)?e.bind(this):e}};function Jn(e){let t="middle";return e>0&&e<=170?t="end":e>190&&e<=360&&(t="start"),t}function Qn(e,t,s,i,n){var a;const o=this,{value:r}=e,l=o.isCandlestickType(e),c=L(r)&&r<0||l&&!((a=o.getCandlestickData(e))!=null&&a._isUp);let{x:u,y:d}=t;const h=4,g=h*2;return i?s==="start"?(u+=c?0:g,d+=h):s==="middle"?(u+=g,d-=g):s==="end"&&(c&&(u-=g),d+=h):(s==="start"?(u+=h,c&&(d+=g*2)):s==="middle"?d-=g:s==="end"&&(u-=h,c&&(d+=g*2)),n&&(d+=c?-17:l?13:7)),{x:u,y:d}}function Ts(e,t){var s;const i=this.config.data_labels_position,{id:n,index:a,value:o}=e;return(s=P(i)?i.bind(this.api)(t,o,n,a,this.$el.text):(n in i?i[n]:i)[t])!=null?s:0}var ta={opacityForText(e){const t=this;return t.isBarType(e)&&!t.meetsLabelThreshold(Math.abs(t.getRatio("bar",e)),"bar")?"0":t.hasDataLabel?null:"0"},initText(){const{$el:e}=this;e.main.select(`.${z.chart}`).append("g").attr("class",gt.chartTexts).style("pointer-events",e.funnel||e.treemap?"none":null)},updateTargetsForText(e){const t=this,s=t.getChartClass("Text"),i=t.getClass("texts","id"),n=t.classFocus.bind(t);t.$el.main.select(`.${gt.chartTexts}`).selectAll(`.${gt.chartText}`).data(e).attr("class",r=>`${s(r)}${n(r)}`.trim()).enter().append("g").style("opacity","0").attr("class",s).call(t.setCssRule(!0,` .${gt.text}`,["fill","pointer-events:none"],t.updateTextColor)).append("g").attr("class",i)},updateText(){const e=this,{$el:t,$T:s,config:i,axis:n}=e,a=e.getClass("text","index"),o=i.data_labels.centered,r=t.main.selectAll(`.${gt.texts}`).selectAll(`.${gt.text}`).data(e.labelishData.bind(e));s(r.exit()).style("fill-opacity","0").remove(),t.text=r.enter().append("text").merge(r).attr("class",a).attr("text-anchor",l=>{let u=i[`axis_${n==null?void 0:n.getId(l.id)}_inverted`]?l.value>0:l.value<0;if(e.isCandlestickType(l)){const d=e.getCandlestickData(l);u=!(d!=null&&d._isUp)}else if(e.isTreemapType(l))return o?"middle":"start";return i.axis_rotated?u?"end":"start":"middle"}).style("fill",e.getStylePropValue(e.updateTextColor)).style("fill-opacity","0").each(function(l,c,u){const d=(0,S.select)(this);let{value:h}=l;if(e.isBubbleZType(l))h=e.getBubbleZData(h,"z");else if(e.isCandlestickType(l)){const g=e.getCandlestickData(l);g&&(h=g.close)}h=e.isTreemapType(l)?e.treemapDataLabelFormat(l)(d):e.dataLabelFormat(l.id)(h,l.id,l.index,u),L(h)?this.textContent=h:le(d,h)})},updateTextColor(e){const t=this,{config:s}=t,i=s.data_labels_colors,n=t.isArcType(e)&&!t.isRadarType(e)||t.isFunnelType(e)||t.isTreemapType(e)?null:t.color(e);let a;if(V(i))a=i;else if(X(i)){const{id:o}=e.data||e;a=i[o]}else P(i)&&(a=i.bind(t.api)(n,e));if(t.isCandlestickType(e)&&!P(i)){const o=t.getCandlestickData(e);if(!(o!=null&&o._isUp)){const r=s.candlestick_color_down;a=X(r)?r[e.id]:r}}return a||n},updateTextBGColor(e,t){const s=this,{$el:i}=s;let n="";if(V(t)||X(t)){const a=V(t)?"":s.getTargetSelectorSuffix("id"in e?e.id:e.data.id),o=i.defs.select(["filter[id*='labels-bg","']"].join(a));o.size()&&(n=`url(#${o.attr("id")})`)}return n||null},redrawText(e,t,s,i){const n=this,{$T:a,axis:o,config:r,state:{hasTreemap:l}}=n,c=Lt(!0),u=r.axis_rotated,d=r.data_labels.rotate,h=Jn(d),g=d?`rotate(${d})`:"";return n.$el.text.style("fill",n.getStylePropValue(n.updateTextColor)).attr("filter",f=>n.updateTextBGColor.bind(n)(f,r.data_labels_backgroundColors)).style("fill-opacity",s?0:n.opacityForText.bind(n)).each(function(f,p){const _=a(l&&this.childElementCount?this.parentNode:this,!!(i&&this.getAttribute("x")),c),x=r[`axis_${o==null?void 0:o.getId(f.id)}_inverted`];let m={x:e.bind(this)(f,p),y:t.bind(this)(f,p)};d&&(m=Qn.bind(n)(f,m,h,u,x),_.attr("text-anchor",h)),this.childElementCount||d?_.attr("transform",`translate(${m.x} ${m.y}) ${g}`):_.attr("x",m.x).attr("y",m.y)}),!0},getTextRect(e,t){const s=this;let i=e.node?e.node():e;/text/i.test(i.tagName)||(i=i.querySelector("text"));const n=i.textContent,a=`${pt.textRect}-${n.replace(/\W/g,"_")}`;let o=s.cache.get(a);return o||(s.$el.svg.append("text").style("visibility","hidden").style("font",(0,S.select)(i).style("font")).classed(t,!0).text(n).call(r=>{o=$e(r.node())}).remove(),s.cache.add(a,o)),o},generateXYForText(e,t){const s=this,{state:{hasRadar:i,hasFunnel:n,hasTreemap:a}}=s,o=Object.keys(e),r={},l=t?s.getXForText:s.getYForText;return n&&o.push("funnel"),i&&o.push("radar"),a&&o.push("treemap"),o.forEach(c=>{r[c]=s[`generateGet${ft(c)}Points`](e[c],!1)}),function(c,u){const d=s.isAreaType(c)&&"area"||s.isBarType(c)&&"bar"||s.isCandlestickType(c)&&"candlestick"||s.isFunnelType(c)&&"funnel"||s.isRadarType(c)&&"radar"||s.isTreemapType(c)&&"treemap"||"line";return l.call(s,r[d](c,u),c,this)}},getCenteredTextPos(e,t,s,i){const n=this,{config:a}=n,o=a.axis_rotated,r=n.isBarType(e),l=n.isTreemapType(e);if(a.data_labels.centered&&(r||l)){const c=$e(s);if(r){const u=n.getRangedData(e,null,"bar")>=0;if(o){const d=(u?t[1][1]-t[0][1]:t[0][1]-t[1][1])/2+c.width/2;return u?-d-3:d+2}else{const d=(u?t[0][1]-t[1][1]:t[1][1]-t[0][1])/2+c.height/2;return u?d:-d-2}}else if(l)return i==="x"?(t[1][0]-t[0][0])/2:(t[1][1]-t[0][1])/2+c.height/2}return 0},getXForText(e,t,s){var i;const n=this,{config:a}=n,o=a.axis_rotated,r=n.isFunnelType(t),l=n.isTreemapType(t);let c=e?e[0][0]:0;if(n.isCandlestickType(t))o?c=(i=n.getCandlestickData(t))!=null&&i._isUp?e[2][2]+4:e[2][1]-4:c+=(e[1][0]-c)/2;else if(r)c+=n.state.current.width/2;else if(l)c+=a.data_labels.centered?0:5;else if(o){const u=a[`axis_${n.axis.getId(t.id)}_inverted`],d=n.isBarType(t)?4:6,h=t.value;c=e[2][1],u?c-=d*(h>0?1:-1):c+=d*(h<0?-1:1)}else c=n.hasType("bar")?(e[2][0]+e[0][0])/2:c;return(o||l)&&(c+=n.getCenteredTextPos(t,e,s,"x")),c+Ts.call(this,t,"x")},getYForText(e,t,s){const i=this,{axis:n,config:a,state:o}=i,r=a.axis_rotated,l=a[`axis_${n==null?void 0:n.getId(t.id)}_inverted`],c=i.isBarType(t),u=i.isFunnelType(t),d=i.isTreemapType(t),h=a.point_r,g=$e(s);let{value:f}=t,p=3,_;if(i.isCandlestickType(t))f=i.getCandlestickData(t),r?(_=e[0][0],_+=(e[1][0]-_)/2+p):(_=f&&f._isUp?e[2][2]-p:e[2][1]+p*4,l&&(_+=15*(f._isUp?1:-1)));else if(u)_=e?e[0][1]+(e[1][1]-e[0][1])/2+g.height/2-3:0;else if(d)_=e[0][1]+(a.data_labels.centered?0:g.height+5);else if(r)_=(e[0][0]+e[2][0]+g.height*.6)/2;else if(_=e[2][1],L(h)&&h>5&&(i.isLineType(t)||i.isScatterType(t))&&(p+=a.point_r/2.3),f<0||f===0&&!o.hasPositiveValue&&o.hasNegativeValue)_+=l?c?-3:-5:g.height+(c?-p:p);else{let x=-p*2;c?x=-p:i.isBubbleType(t)&&(x=p),l&&(x=c?10:15),_+=x}return(!r||d)&&(_+=i.getCenteredTextPos(t,e,s,"y")),_+Ts.call(this,t,"y")},markOverlapped(e,t,s){const i=t.$el.arcs.selectAll(s),n=i.filter(l=>l.data.id!==e),a=i.filter(l=>l.data.id===e),o=ds(a.node()),r=(l,c)=>Math.sqrt(Math.pow(l,2)+Math.pow(c,2));a.node()&&n.each(function(){const l=ds(this),c=(0,S.select)(this),u=r(o.e,o.f)>r(l.e,l.f)?a:c,d=Math.ceil(Math.abs(o.e-l.e))=n}};function As(e="left",t){const s=L(t);let i;return e.indexOf("center")>-1?i=s?t/2:"middle":e.indexOf("right")>-1?i=s?t:"end":i=s?0:"start",i}var ea={initTitle(){const e=this,{config:t,$el:s}=e;if(t.title_text){s.title=s.svg.append("g");const i=s.title.append("text").style("text-anchor",As(t.title_position)).attr("class",gt.title);le(i,t.title_text,[.3,1.5])}},redrawTitle(){const e=this,{config:t,state:{current:s},$el:{title:i}}=e;if(i){const n=As(t.title_position,s.width),a=(t.title_padding.top||0)+e.getTextRect(e.$el.title,gt.title).height;i.attr("transform",`translate(${n}, ${a})`)}},getTitlePadding(){const e=this,{$el:{title:t},config:s}=e;return(s.title_padding.top||0)+(t?e.getTextRect(t,gt.title).height:0)+(s.title_padding.bottom||0)}},sa={initTooltip(){const e=this,{config:t,$el:s}=e;s.tooltip=(0,S.select)(t.tooltip_contents.bindto),s.tooltip.empty()&&(s.tooltip=s.chart.append("div").attr("class",pe.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),e.bindTooltipResizePos()},initShowTooltip(){var e;const t=this,{config:s,$el:i,state:{hasAxis:n,hasRadar:a}}=t;if(s.tooltip_init_show){const o=!(n||a);(e=t.axis)!=null&&e.isTimeSeries()&&V(s.tooltip_init_x)&&(s.tooltip_init_x=mt.call(t,s.tooltip_init_x)),t.api.tooltip.show({data:{[o?"index":"x"]:s.tooltip_init_x}});const r=s.tooltip_init_position;if(!s.tooltip_contents.bindto&&!Tt(r)){const{top:l=0,left:c=50}=r;i.tooltip.style("top",V(l)?l:`${l}px`).style("left",V(c)?c:`${c}px`).style("display",null)}}},getTooltipHTML(...e){const t=this,{api:s,config:i}=t;return P(i.tooltip_contents)?i.tooltip_contents.bind(s)(...e):t.getTooltipContent(...e)},getTooltipContent(e,t,s,i){var n;const a=this,{api:o,config:r,state:l,$el:c}=a,[u,d,h]=["title","name","value"].map(k=>{const O=r[`tooltip_format_${k}`];return P(O)?O.bind(o):O}),g=(...k)=>Le((u||t)(...k)),f=(...k)=>Le((d||(O=>O))(...k)),p=(...k)=>{const O=h||(l.hasTreemap||a.isStackNormalized()?(M,Y)=>`${(Y*100).toFixed(2)}%`:s);return Le(O(...k))},_=r.tooltip_order,x=k=>a.axis&&a.isBubbleZType(k)?a.getBubbleZData(k.value,"z"):a.getBaseValue(k),m=a.levelColor?k=>a.levelColor(k.value):k=>i(k),$=r.tooltip_contents,b=$.template,A=a.mapToTargetIds();if(_===null&&r.data_groups.length){const k=a.orderTargets(a.data.targets).map(O=>O.id).reverse();e.sort((O,M)=>{let Y=O?O.value:null,Q=M?M.value:null;return Y>0&&Q>0&&(Y=O.id?k.indexOf(O.id):null,Q=M.id?k.indexOf(M.id):null),Y-Q})}else if(/^(asc|desc)$/.test(_)){const k=_==="asc";e.sort((O,M)=>{const Y=O?x(O):null,Q=M?x(M):null;return k?Y-Q:Q-Y})}else P(_)&&e.sort(_.bind(o));const y=a.getTooltipContentTemplate(b),v=e.length;let R,w,T,C,I;for(I=0;I`:""})}if(!w.ratio&&c.arcs&&(T=["arc",a.$el.arcs.select(`path.${G.arc}-${w.id}`).data()[0]],w.ratio=a.getRatio(...T)),T=[w.ratio,w.id,w.index],a.isAreaRangeType(w)){const[k,O]=["high","low"].map(Y=>p(a.getRangedData(w,Y),...T));C=`Mid: ${p(x(w),...T)} High: ${k} Low: ${O}`}else if(a.isCandlestickType(w)){const[k,O,M,Y,Q]=["open","high","low","close","volume"].map(rt=>a.getRangedData(w,rt,"candlestick")?p(a.getRangedData(w,rt,"candlestick"),...T):void 0);C=`Open: ${k} High: ${O} Low: ${M} Close: ${Y}${Q?` Volume: ${Q}`:""}`}else if(a.isBarRangeType(w)){const{value:k,id:O,index:M}=w;C=`${p(k,void 0,O,M)}`}else C=p(x(w),...T);if(C!==void 0){if(w.name===null)continue;const k=f((n=w.name)!=null?n:w.id,...T),O=m(w),M={CLASS_TOOLTIP_NAME:pe.tooltipName+a.getTargetSelectorSuffix(w.id),COLOR:b||!a.patterns?O:``,NAME:k,VALUE:C};if(b&&X($.text)){const Y=A.indexOf(w.id);Object.keys($.text).forEach(Q=>{M[Q]=$.text[Q][Y]})}R+=be(y[1],M)}}return`${R}
${k}
`},getTooltipContentTemplate(e){return(e||` {=TITLE} {{}} -
${this.patterns?"{=COLOR}":''}{=NAME} {=VALUE}
`).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition(e,t){var s,i;const n=this,{config:a,scale:o,state:r,$el:{eventRect:l,tooltip:c}}=n,{bindto:u}=a.tooltip_contents,d=a.axis_rotated,h=c==null?void 0:c.datum();if(!u&&h){const g=e!=null?e:JSON.parse(h.current),[f,p]=mt(r.event,t!=null?t:l==null?void 0:l.node()),_={x:f,y:p};if(r.hasAxis&&o.x&&h&&"x"in h){const y=(v=0,$,T="y")=>{var S;const A=o[$?(S=n.axis)==null?void 0:S.getId($):T];return A?A(v)+(d?r.margin.left:r.margin.top):0};_.xAxis=o.x(h.x)+(a.tooltip_position?d?r.margin.top:r.margin.left:0),g.length===1?_.yAxis=y(g[0].value,g[0].id):_.yAxis=y}const{width:x=0,height:m=0}=h,b=(i=(s=a.tooltip_position)==null?void 0:s.bind(n.api)(g,x,m,l==null?void 0:l.node(),_))!=null?i:n.getTooltipPosition.bind(n)(x,m,_);["top","left"].forEach(y=>{const v=b[y];c.style(y,`${v}px`),y==="left"&&!h.xPosInPercent&&(h.xPosInPercent=v/r.current.width*100)})}},getTooltipPosition(e,t,s){var i,n,a;const o=this,{config:r,scale:l,state:c}=o,{width:u,height:d,current:h,hasFunnel:g,hasRadar:f,hasTreemap:p,isLegendRight:_,inputType:x}=c,m=o.hasType("gauge")&&!r.gauge_fullCircle,b=r.axis_rotated,y=o.hasArcType(),v=o.getSvgLeft(!0);let $=v+h.width-o.getCurrentPaddingByDirection("right");const T=20;let{x:S,y:A}=s;if(f)S+=S>=u/2?15:-(e+15),A+=15;else if(y){if(x!=="touch"){let F=(n=(i=o.getTitlePadding)==null?void 0:i.call(o))!=null?n:0;F&&m&&((a=r.arc_rangeText_values)!=null&&a.length)&&(F+=10),S+=(u-(_?o.getLegendWidth():0))/2,A+=(m?d:d/2+t)+F}}else if(g||p)A+=t;else{const P={top:o.getCurrentPaddingByDirection("top",!0),left:o.getCurrentPaddingByDirection("left",!0)};b?(S+=v+P.left+T,A=P.top+s.xAxis+T,$-=v):(S=v+P.left+T+(l.zoom?S:s.xAxis),A+=P.top-5)}if(S+e+15>$&&(S-=e+(g||p||y?0:b?T*2:38)),A+t>h.height){const P=p?t+10:30;A-=m?t*1.5:t+P}const R={top:A,left:S};return Object.keys(R).forEach(P=>{R[P]<0&&(R[P]=0)}),R},showTooltip(e,t){const s=this,{config:i,$el:{tooltip:n}}=s,a=e.filter(l=>l&&z(s.getBaseValue(l)));if(!n||a.length===0||!i.tooltip_show)return;let o=n.datum();const r=JSON.stringify(e);if(!o||o.current!==r){const{index:l,x:c}=e.concat().sort()[0];Z(i.tooltip_onshow,s.api,e),n.html(s.getTooltipHTML(e,s.axis?s.axis.getXAxisTickFormat():s.categoryName.bind(s),s.getDefaultValueFormat(),s.color)).style("display",null).style("visibility",null).datum(o={index:l,x:c,current:r,width:n.property("offsetWidth"),height:n.property("offsetHeight")}),Z(i.tooltip_onshown,s.api,e),s._handleLinkedCharts(!0,l)}s.setTooltipPosition(a,t)},bindTooltipResizePos(){const e=this,{resizeFunction:t,state:s,$el:{tooltip:i}}=e;t.add(()=>{if(i.style("display")==="block"){const{current:n}=s,{width:a,xPosInPercent:o}=i.datum();let r=n.width/100*o;const l=n.width-(r+a);l<0&&(r+=l),i.style("left",`${r}px`)}})},hideTooltip(e){var t;const s=this,{api:i,config:n,$el:{tooltip:a}}=s;if(a&&a.style("display")!=="none"&&(!n.tooltip_doNotHide||e)){const o=JSON.parse((t=a.datum().current)!=null?t:{});Z(n.tooltip_onhide,i,o),a.style("display","none").style("visibility","hidden").datum(null),Z(n.tooltip_onhidden,i,o)}},_handleLinkedCharts(e,t){const s=this,{charts:i,config:n,state:{event:a}}=s;if(a!=null&&a.isTrusted&&n.tooltip_linked&&i.length>1){const o=n.tooltip_linked_name;i.filter(r=>r!==s.api).forEach(r=>{const{config:l,$el:c}=r.internal,u=l.tooltip_linked,d=l.tooltip_linked_name,h=it.body.contains(c.chart.node());if(u&&o===d&&h){const g=c.tooltip.data()[0],f=t!==(g==null?void 0:g.index);try{r.tooltip[e&&f?"show":"hide"]({index:t})}catch(p){}}})}},updateTooltipOnRedraw(e,t){var s;const i=this,{config:n,$el:{eventRect:a,svg:o,tooltip:r},state:{event:l,hasAxis:c,hasRadar:u,hasTreemap:d}}=i;if((r==null?void 0:r.style("display"))==="block"&&l){const h=e!=null?e:(s=u?o:a)==null?void 0:s.node();if(c||u)if(i.isMultipleX())i.selectRectForMultipleXs(h,!1);else{const g=t!=null?t:i.getDataIndexFromEvent(l);t===-1?i.api.tooltip.hide():(i.selectRectForSingle(h,g),i.setExpand(g,null,!0))}else{const{clientX:g,clientY:f}=l;setTimeout(()=>{let p=it.elementFromPoint(g,f);const _=(0,w.select)(p).datum();if(_){const x=i.hasArcType()?i.convertToArcData(i.updateAngle(_)):_==null?void 0:_.data;d&&(p=o.node()),x&&i.showTooltip([x],p)}else i.api.tooltip.hide()},n.transition_duration)}}}},ia={getTranslate(e,t=0){var s;const i=this,{config:n,state:a}=i,o=n.axis_rotated;let r=0,l,c;if(t&&/^(x|y2?)$/.test(e)&&(r=i.getAxisSize(e)*t),e==="main")l=pe(a.margin.left),c=pe(a.margin.top);else if(e==="context")l=pe(a.margin2.left),c=pe(a.margin2.top);else if(e==="legend")l=a.margin3.left,c=a.margin3.top;else if(e==="x")l=o?-r:0,c=o?0:a.height+r;else if(e==="y")l=o?0:-r,c=o?a.height+r:0;else if(e==="y2")l=o?0:a.width+r,c=o?-r-1:0;else if(e==="subX")l=0,c=o?0:a.height2;else if(e==="arc")l=a.arcWidth/2,c=a.arcHeight/2,(s=n.arc_rangeText_values)!=null&&s.length&&(c+=5+(i.hasType("gauge")&&n.title_text?10:0));else if(e==="polar")l=a.arcWidth/2,c=a.arcHeight/2;else if(e==="radar"){const[u,d]=i.getRadarSize();l=a.width/2-u,c=a.height/2-d}return`translate(${l}, ${c})`},transformMain(e,t){const s=this,{$el:{main:i},$T:n}=s,a=t!=null&&t.axisX?t.axisX:n(i.select(`.${st.axisX}`),e),o=t!=null&&t.axisY?t.axisY:n(i.select(`.${st.axisY}`),e),r=t!=null&&t.axisY2?t.axisY2:n(i.select(`.${st.axisY2}`),e);n(i,e).attr("transform",s.getTranslate("main")),a.attr("transform",s.getTranslate("x")),o.attr("transform",s.getTranslate("y")),r.attr("transform",s.getTranslate("y2")),i.select(`.${N.chartArcs}`).attr("transform",s.getTranslate("arc"))},transformAll(e,t){const s=this,{config:i,state:{hasAxis:n,hasFunnel:a,hasTreemap:o},$el:r}=s;!a&&!o&&s.transformMain(e,t),n&&i.subchart_show&&s.transformContext(e,t),r.legend&&s.transformLegend(e)}},na={isValidChartType(e){return!!(e&&Object.values(C).indexOf(e)>-1)},setTargetType(e,t){const s=this,{config:i,state:{withoutFadeIn:n}}=s;s.mapToTargetIds(e).forEach(a=>{n[a]=t===i.data_types[a],i.data_types[a]=t}),e||(i.data_type=t)},updateTypesElements(){const e=this,{state:{current:t}}=e;Object.keys(C).forEach(s=>{const i=C[s],n=e.hasType(i,null,!0),a=t.types.indexOf(i);a===-1&&n?t.types.push(i):a>-1&&!n&&t.types.splice(a,1)}),e.setChartElements()},hasType(e,t,s=!1){var i;const n=this,{config:a,state:{current:o}}=n,r=a.data_types,l=t||n.data.targets;let c=!1;return!s&&((i=o.types)==null?void 0:i.indexOf(e))>-1?c=!0:l!=null&&l.length?l.forEach(u=>{const d=r[u.id];(d===e||!d&&e==="line")&&(c=!0)}):Object.keys(r).length?Object.keys(r).forEach(u=>{r[u]===e&&(c=!0)}):c=a.data_type===e,c},hasTypeOf(e,t,s=[]){return e in Ot?!Ot[e].filter(i=>s.indexOf(i)===-1).every(i=>!this.hasType(i,t)):!1},isTypeOf(e,t){var s;const i=G(e)?e:e.id,n=this.config&&(((s=this.config.data_types)==null?void 0:s[i])||this.config.data_type);return B(t)?t.indexOf(n)>=0:n===t},hasPointType(){const e=this;return e.hasTypeOf("Line")||e.hasType("bubble")||e.hasType("scatter")},hasArcType(e,t){return this.hasTypeOf("Arc",e,t)},hasMultiArcGauge(){return this.hasType("gauge")&&this.config.gauge_type==="multi"},isLineType(e){const t=G(e)?e:e.id;return!this.config.data_types[t]||this.isTypeOf(t,Ot.Line)},isStepType(e){return this.isTypeOf(e,Ot.Step)},isSplineType(e){return this.isTypeOf(e,Ot.Spline)},isAreaType(e){return this.isTypeOf(e,Ot.Area)},isAreaRangeType(e){return this.isTypeOf(e,Ot.AreaRange)},isBarType(e){return this.isTypeOf(e,"bar")},isBubbleType(e){return this.isTypeOf(e,"bubble")},isCandlestickType(e){return this.isTypeOf(e,"candlestick")},isScatterType(e){return this.isTypeOf(e,"scatter")},isTreemapType(e){return this.isTypeOf(e,"treemap")},isPieType(e){return this.isTypeOf(e,"pie")},isFunnelType(e){return this.isTypeOf(e,"funnel")},isGaugeType(e){return this.isTypeOf(e,"gauge")},isDonutType(e){return this.isTypeOf(e,"donut")},isPolarType(e){return this.isTypeOf(e,"polar")},isRadarType(e){return this.isTypeOf(e,"radar")},isArcType(e){return this.isPieType(e)||this.isDonutType(e)||this.isGaugeType(e)||this.isPolarType(e)||this.isRadarType(e)},isCirclePoint(e){const{config:t}=this,s=t.point_pattern;let i=!1;return(e==null?void 0:e.tagName)==="circle"?i=!0:i=t.point_type==="circle"&&(!s||B(s)&&s.length===0),i},lineData(e){return this.isLineType(e)?[e]:[]},arcData(e){return this.isArcType(e.data)?[e]:[]},labelishData(e){return this.isBarType(e)||this.isLineType(e)||this.isScatterType(e)||this.isBubbleType(e)||this.isCandlestickType(e)||this.isFunnelType(e)||this.isRadarType(e)||this.isTreemapType(e)?e.values.filter(t=>k(t.value)||!!t.value):[]},barLineBubbleData(e){return this.isBarType(e)||this.isLineType(e)||this.isBubbleType(e)?e.values:[]},isInterpolationType(e){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(e)>=0}},K=j(9);function aa(e){const t=this;let s;return t.isLineType(e)?s=t.generateGetLinePoints(t.getShapeIndices(t.isLineType)):t.isBarType(e)&&(s=t.generateGetBarPoints(t.getShapeIndices(t.isBarType))),s}var oa={getDrawShape(){const e=this,t=e.config.axis_rotated,{hasRadar:s,hasTreemap:i}=e.state,n={type:{},indices:{},pos:{}};if(!i&&["bar","candlestick","line","area"].forEach(a=>{const o=gt(/^(bubble|scatter)$/.test(a)?"line":a);if(e.hasType(a)||e.hasTypeOf(o)||a==="line"&&(e.hasType("bubble")||e.hasType("scatter"))){const r=e.getShapeIndices(e[`is${o}Type`]),l=e[`generateDraw${o}`];n.indices[a]=r,n.type[a]=l?l.bind(e)(r,!1):void 0}}),!e.hasArcType()||s||i){let a,o;i||(a=s?e.radarCircleX:t?e.circleY:e.circleX,o=s?e.radarCircleY:t?e.circleX:e.circleY),n.pos={xForText:e.generateXYForText(n.indices,!0),yForText:e.generateXYForText(n.indices,!1),cx:(a||function(){}).bind(e),cy:(o||function(){}).bind(e)}}return n},getShapeIndices(e){const t=this,{config:s}=t,i=s.data_xs,n=et(i),a={};let o=n?{}:0;return n&&Le(Object.keys(i).map(r=>i[r])).forEach(r=>{o[r]=0,a[r]={}}),t.filterTargetsToShow(t.data.targets.filter(e,t)).forEach(r=>{var l;const c=r.id in i?i[r.id]:"",u=c?a[c]:a;for(let d=0,h;h=s.data_groups[d];d++)if(!(h.indexOf(r.id)<0))for(let g=0,f;f=h[g];g++){if(f in u){u[r.id]=u[f];break}r.id!==f&&c&&(u[f]=(l=u[r.id])!=null?l:o[c])}tt(u[r.id])&&(u[r.id]=c?o[c]++:o++,u.__max__=(c?o[c]:o)-1)}),a},getIndices(e,t,s){const i=this,{data_xs:n,bar_indices_removeNull:a}=i.config,{id:o,index:r}=t;if(i.isBarType(o)&&a){const l={};return i.getAllValuesOnIndex(r,!0).forEach((c,u)=>{l[c.id]=u,l.__max__=u}),l}return et(n)?e[n[o]]:e},getIndicesMax(e){return et(this.config.data_xs)?Object.keys(e).map(t=>e[t].__max__||0).reduce((t,s)=>t+s):e.__max__},getShapeX(e,t,s){const i=this,{config:n,scale:a}=i,o=s?a.subX:a.zoom||a.x,r=n.bar_overlap,l=n.bar_padding,c=(d,h)=>d+h,u=Tt(e)&&(e._$total.length?e._$total.reduce(c)/2:0);return d=>{const h=i.getIndices(t,d,"getShapeX"),g=d.id in h?h[d.id]:0,f=(h.__max__||0)+1;let p=0;if(et(d.x)){const _=o(d.x,!0);if(u){const x=e[d.id]||e._$width;p=r?_-x/2:_-x+e._$total.slice(0,g+1).reduce(c)-u}else p=_-(k(e)?e:e._$width)*(f/2-(r?1:g))}return e&&p&&f>1&&l&&(g&&(p+=l*g),f>2?p-=(f-1)*l/2:f===2&&(p-=l/2)),p}},getShapeY(e){const t=this,s=t.isStackNormalized();return i=>{let{value:n}=i;return k(i)?n=i:t.isAreaRangeType(i)?n=t.getBaseValue(i,"mid"):s?n=t.getRatio("index",i,!0):t.isBubbleZType(i)?n=t.getBubbleZData(i.value,"y"):t.isBarRangeType(i)&&(n=n[1]),t.getYScaleById(i.id,e)(n)}},getShapeYMin(e){const t=this,s=t.axis.getId(e),i=t.scale[s],[n]=i.domain(),a=t.config[`axis_${s}_inverted`];return!t.isGrouped(e)&&!a&&n>0?n:0},getShapeOffsetData(e){const t=this,s=t.orderTargets(t.filterTargetsToShow(t.data.targets.filter(e,t))),i=t.isStackNormalized(),n=s.map(o=>{let r=o.values;const l={};t.isStepType(o)&&(r=t.convertValuesToStep(r));const c=r.reduce((u,d)=>{const h=Number(d.x);return u[h]=d,l[h]=i?t.getRatio("index",d,!0):d.value,u},{});return{id:o.id,rowValues:r,rowValueMapByXValue:c,values:l}});return{indexMapByTargetId:s.reduce((o,{id:r},l)=>(o[r]=l,o),{}),shapeOffsetTargets:n}},getShapeOffset(e,t,s){const i=this,{shapeOffsetTargets:n,indexMapByTargetId:a}=i.getShapeOffsetData(e),o=i.config.data_groupsZeroAs;return(r,l)=>{const{id:c,value:u,x:d}=r,h=i.getIndices(t,r),g=i.getYScaleById(c,s);if(i.isBarRangeType(r))return g(u[0]);const f=Number(d),p=g(o==="zero"?0:i.getShapeYMin(c));let _=p;return n.filter(x=>x.id!==c&&h[x.id]===h[c]).forEach(x=>{const{id:m,rowValueMapByXValue:b,rowValues:y,values:v}=x;if(a[m]=0&&k($)&&(u!==0||o==="positive"&&$>0||o==="negative"&&$<0)&&(_+=g($)-p)}}),_}},circleY(e,t){const s=this,i=e.id;let n;return s.isGrouped(i)&&(n=aa.bind(s)(e)),n?n(e,t)[0][1]:s.getYScaleById(i)(s.getBaseValue(e))},getBarW(e,t,s){var i,n,a,o,r;const l=this,{config:c,org:u,scale:d,state:h}=l,g=l.getMaxDataCount(),f=e==="bar"&&((i=c.data_groups)==null?void 0:i.length),p=`${e}_width`,{k:_}=(a=(n=l.getZoomTransform)==null?void 0:n.call(l))!=null?a:{k:1},x=[(o=c.axis_x_min)!=null?o:u.xDomain[0],(r=c.axis_x_max)!=null?r:u.xDomain[1]].map(l.axis.isTimeSeries()?_t.bind(l):Number);let m=t.tickInterval(g);if(d.zoom&&!l.axis.isCategorized()&&_>1){const v=x.every(($,T)=>$===u.xDomain[T]);m=u.xDomain.map(($,T)=>{const S=v?$:$-Math.abs(x[T]);return d.zoom(S)}).reduce(($,T)=>Math.abs($)+T)/g}const b=v=>{const $=v?c[p][v]:c[p],T=v?$.ratio:c[`${p}_ratio`],S=v?$.max:c[`${p}_max`],A=k($)?$:L($)?$.call(l,h.width,s,g):s?m*T/s:0;return S&&A>S?S:A};let y=b();return!f&&Tt(c[p])&&(y={_$width:y,_$total:[]},l.filterTargetsToShow(l.data.targets).forEach(v=>{c[p][v.id]&&(y[v.id]=b(v.id),y._$total.push(y[v.id]||y._$width))})),y},getShapeByIndex(e,t,s){const i=this,{$el:n}=i,a=z(t)?`-${t}`:"";let o=n[e];return o&&!o.empty()?o=o.filter(r=>s?r.id===s:!0).filter(r=>z(t)?r.index===t:!0):o=(s?n.main.selectAll(`.${X[`${e}s`]}${i.getTargetSelectorSuffix(s)}`):n.main).selectAll(`.${X[e]}${a}`),o},isWithinShape(e,t){var s;const i=this,n=(0,w.select)(e);let a;return i.isTargetToShow(t.id)?(s=i.hasValidPointType)!=null&&s.call(i,e.nodeName)?a=i.isStepType(t)?i.isWithinStep(e,i.getYScaleById(t.id)(i.getBaseValue(t))):i.isWithinCircle(e,i.isBubbleType(t)?i.pointSelectR(t)*1.5:0):e.nodeName==="path"&&(a=n.classed(X.bar)?i.isWithinBar(e):!0):a=!1,a},getInterpolate(e){const s=this.getInterpolateType(e);return{basis:K.curveBasis,"basis-closed":K.curveBasisClosed,"basis-open":K.curveBasisOpen,bundle:K.curveBundle,cardinal:K.curveCardinal,"cardinal-closed":K.curveCardinalClosed,"cardinal-open":K.curveCardinalOpen,"catmull-rom":K.curveCatmullRom,"catmull-rom-closed":K.curveCatmullRomClosed,"catmull-rom-open":K.curveCatmullRomOpen,"monotone-x":K.curveMonotoneX,"monotone-y":K.curveMonotoneY,natural:K.curveNatural,"linear-closed":K.curveLinearClosed,linear:K.curveLinear,step:K.curveStep,"step-after":K.curveStepAfter,"step-before":K.curveStepBefore}[s]},getInterpolateType(e){const t=this,{config:s}=t,i=s.spline_interpolation_type,n=t.isInterpolationType(i)?i:"cardinal";return t.isSplineType(e)?n:t.isStepType(e)?s.line_step_type:"linear"},isWithinBar(e){const t=mt(this.state.event,e),s=ns(e),[i,n]=s,a=Math.min(i.x,n.x),o=Math.min(i.y,n.y),r=this.config.bar_sensitivity,{width:l,height:c}=e.getBBox(),u=a-r,d=a+l+r,h=o+c+r,g=o-r;return ut in e?ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,dt=(e,t,s)=>la(e,typeof t!="symbol"?t+"":t,s);class Vt{constructor(t){dt(this,"api"),dt(this,"config"),dt(this,"cache"),dt(this,"$el"),dt(this,"state"),dt(this,"charts"),dt(this,"data",{xs:{},targets:[]}),dt(this,"axis"),dt(this,"scale",{x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null}),dt(this,"org",{xScale:null,xDomain:null}),dt(this,"color"),dt(this,"patterns"),dt(this,"levelColor"),dt(this,"point"),dt(this,"brush"),dt(this,"format",{extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null});const s=this;s.api=t,s.config=new Nt,s.cache=new Tn;const i=new $n;s.$el=i.getStore("element"),s.state=i.getStore("state"),s.$T=s.$T.bind(s)}$T(t,s,i){const{config:n,state:a}=this,o=n.transition_duration,r=n.subchart_show;let l=t;return l&&("tagName"in l&&(l=(0,w.select)(l)),l=(s!==!1&&o||s)&&(!a.zooming||a.dragging)&&!a.resizing&&a.rendered&&!r?l.transition(i).duration(o):l),l}beforeInit(){const t=this;t.callPluginHook("$beforeInit"),Z(t.config.onbeforeinit,t.api)}afterInit(){const t=this;t.callPluginHook("$afterInit"),Z(t.config.onafterinit,t.api)}init(){const t=this,{config:s,state:i,$el:n}=t,a=s.boost_useCssRule;if(An(t),i.hasRadar=!i.hasAxis&&t.hasType("radar"),i.hasFunnel=!i.hasAxis&&t.hasType("funnel"),i.hasTreemap=!i.hasAxis&&t.hasType("treemap"),i.hasAxis=!t.hasArcType()&&!i.hasFunnel&&!i.hasTreemap,i.datetimeId=`bb-${+new Date*Rt()}`,a){const r=it.createElement("style");r.type="text/css",it.head.appendChild(r),i.style={rootSelctor:`.${i.datetimeId}`,sheet:r.sheet},n.style=r}const o={element:s.bindto,classname:"bb"};M(s.bindto)&&(o.element=s.bindto.element||"#chart",o.classname=s.bindto.classname||o.classname),n.chart=L(o.element.node)?s.bindto.element:(0,w.select)(o.element||[]),n.chart.empty()&&(n.chart=(0,w.select)(it.body.appendChild(it.createElement("div")))),n.chart.html("").classed(o.classname,!0).classed(i.datetimeId,a).style("position","relative"),t.initParams(),t.initToRender()}initToRender(t){const s=this,{config:i,state:n,$el:{chart:a}}=s,o=()=>a.style("display")==="none"||a.style("visibility")==="hidden",r=i.render.lazy||o(),l=U.MutationObserver;r&&l&&i.render.observe!==!1&&!t&&new l((c,u)=>{o()||(u.disconnect(),!n.rendered&&s.initToRender(!0))}).observe(a.node(),{attributes:!0,attributeFilter:["class","style"]}),(!r||t)&&s.convertData(i,c=>{s.initWithData(c),s.afterInit()})}initParams(){var t;const s=this,{config:i,format:n,state:a}=s,o=i.axis_rotated;if(s.color=s.generateColor(),s.levelColor=s.generateLevelColor(),i.padding===!1&&(i.axis_x_show=!1,i.axis_y_show=!1,i.axis_y2_show=!1,i.subchart_show=!1),(s.hasPointType()||(t=s.hasLegendDefsPoint)!=null&&t.call(s))&&(s.point=s.generatePoint()),a.hasAxis){s.initClip(),n.extraLineClasses=s.generateExtraLineClass(),n.dataTime=i.data_xLocaltime?ue.timeParse:ue.utcParse,n.axisTime=i.axis_x_localtime?ue.timeFormat:ue.utcFormat;const r=s.config.zoom_enabled&&s.config.zoom_type==="drag";n.defaultAxisTime=l=>{const{x:c,zoom:u}=s.scale,d=r?u:u&&c.orgDomain().toString()!==u.domain().toString(),h=l.getMilliseconds()&&".%L"||l.getSeconds()&&".:%S"||l.getMinutes()&&"%I:%M"||l.getHours()&&"%I %p"||l.getDate()!==1&&"%b %d"||d&&l.getDate()===1&&"%b'%y"||l.getMonth()&&"%-m/%-d"||"%Y";return n.axisTime(h)(l)}}a.isLegendRight=i.legend_position==="right",a.isLegendInset=i.legend_position==="inset",a.isLegendTop=i.legend_inset_anchor==="top-left"||i.legend_inset_anchor==="top-right",a.isLegendLeft=i.legend_inset_anchor==="top-left"||i.legend_inset_anchor==="bottom-left",a.rotatedPadding.top=s.getResettedPadding(a.rotatedPadding.top),a.rotatedPadding.right=o&&!i.axis_x_show?0:30,a.inputType=hn(i.interaction_inputType_mouse,i.interaction_inputType_touch)}initWithData(t){var s,i,n;const a=this,{config:o,scale:r,state:l,$el:c,org:u}=a,{hasAxis:d,hasFunnel:h,hasTreemap:g}=l,f=o.interaction_enabled,p=a.hasType("polar"),_=o.data_labels_backgroundColors;if(d&&(a.axis=a.getAxisInstance(),o.zoom_enabled&&a.initZoom()),a.data.xs={},a.data.targets=a.convertDataToTargets(t),o.data_filter&&(a.data.targets=a.data.targets.filter(o.data_filter.bind(a.api))),o.data_hide&&a.addHiddenTargetIds(o.data_hide===!0?a.mapToIds(a.data.targets):o.data_hide),o.legend_hide&&a.addHiddenLegendIds(o.legend_hide===!0?a.mapToIds(a.data.targets):o.legend_hide),a.updateSizes(),a.updateScales(!0),d){const{x:b,y,y2:v,subX:$,subY:T,subY2:S}=r;b&&(b.domain(Zt(a.getXDomain(a.data.targets),!o.axis_x_inverted)),$.domain(b.domain()),u.xDomain=b.domain()),y&&(y.domain(a.getYDomain(a.data.targets,"y")),T.domain(y.domain())),v&&(v.domain(a.getYDomain(a.data.targets,"y2")),S&&S.domain(v.domain()))}if(c.svg=c.chart.append("svg").style("overflow","hidden").style("display","block"),f&&l.inputType){const b=l.inputType==="touch",{onclick:y,onover:v,onout:$}=o;c.svg.on("click",(y==null?void 0:y.bind(a.api))||null).on(b?"touchstart":"mouseenter",(v==null?void 0:v.bind(a.api))||null).on(b?"touchend":"mouseleave",($==null?void 0:$.bind(a.api))||null)}o.svg_classname&&c.svg.attr("class",o.svg_classname);const x=L(o.color_tiles)&&a.patterns;(d||x||p||g||_||(s=a.hasLegendDefsPoint)!=null&&s.call(a))&&(c.defs=c.svg.append("defs"),d&&["id","idXAxis","idYAxis","idGrid"].forEach(b=>{a.appendClip(c.defs,l.clip[b])}),a.generateTextBGColorFilter(_),x&&a.patterns.forEach(b=>c.defs.append(()=>b.node))),a.updateSvgSize(),a.bindResize();const m=c.svg.append("g").classed(I.main,!0).attr("transform",h||g?null:a.getTranslate("main"));if(c.main=m,o.subchart_show&&a.initSubchart(),o.tooltip_show&&a.initTooltip(),o.title_text&&a.initTitle(),!g&&o.legend_show&&a.initLegend(),o.data_empty_label_text&&m.append("text").attr("class",`${ut.text} ${I.empty}`).attr("text-anchor","middle").attr("dominant-baseline","middle"),d&&(o.regions.length&&a.initRegion(),!o.clipPath&&a.axis.init()),m.append("g").classed(I.chart,!0).attr("clip-path",d?l.clip.path:null),a.callPluginHook("$init"),a.initChartElements(),d&&(f&&((i=a.initEventRect)==null||i.call(a)),a.initGrid(),o.clipPath&&((n=a.axis)==null||n.init())),a.updateTargets(a.data.targets),a.updateDimension(),Z(o.oninit,a.api),a.setBackground(),a.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),o.data_onmin||o.data_onmax){const b=a.getMinMaxData();Z(o.data_onmin,a.api,b.min),Z(o.data_onmax,a.api,b.max)}o.tooltip_show&&a.initShowTooltip(),l.rendered=!0}initChartElements(){const t=this,{hasAxis:s,hasRadar:i,hasTreemap:n}=t.state,a=[];if(s){const o=["bar","bubble","candlestick","line"];t.config.bar_front&&o.push(o.shift()),o.forEach(r=>{const l=gt(r);(r==="line"&&t.hasTypeOf(l)||t.hasType(r))&&a.push(l)})}else if(n)a.push("Treemap");else if(t.hasType("funnel"))a.push("Funnel");else{const o=t.hasType("polar");i||a.push("Arc","Pie"),t.hasType("gauge")?a.push("Gauge"):i?a.push("Radar"):o&&a.push("Polar")}a.forEach(o=>{t[`init${o}`]()}),et(t.config.data_labels)&&!t.hasArcType(null,["radar"])&&t.initText()}setChartElements(){const t=this,{$el:{chart:s,svg:i,defs:n,main:a,tooltip:o,legend:r,title:l,grid:c,needle:u,arcs:d,circle:h,bar:g,candlestick:f,line:p,area:_,text:x}}=t;t.api.$={chart:s,svg:i,defs:n,main:a,tooltip:o,legend:r,title:l,grid:c,arc:d,circles:h,bar:{bars:g},candlestick:f,line:{lines:p,areas:_},needle:u,text:{texts:x}}}setBackground(){const t=this,{config:{background:s},state:i,$el:{svg:n}}=t;if(et(s)){const a=n.select("g").insert(s.imgUrl?"image":"rect",":first-child");s.imgUrl?a.attr("href",s.imgUrl):s.color&&a.style("fill",s.color).attr("clip-path",i.clip.path),a.attr("class",s.class||null).attr("width","100%").attr("height","100%")}}updateTargets(t){var s;const i=this,{hasAxis:n,hasFunnel:a,hasRadar:o,hasTreemap:r}=i.state,l=u=>i[`updateTargetsFor${u}`](t.filter(i[`is${u}Type`].bind(i)));if(i.updateTargetsForText(t),n)["bar","candlestick","line"].forEach(u=>{const d=gt(u);(u==="line"&&i.hasTypeOf(d)||i.hasType(u))&&l(d)}),i.updateTargetsForSubchart&&i.updateTargetsForSubchart(t);else if(i.hasArcType(t)){let u="Arc";o?u="Radar":i.hasType("polar")&&(u="Polar"),l(u)}else a?l("Funnel"):r&&l("Treemap");const c=i.hasType("bubble")||i.hasType("scatter");c&&((s=i.updateTargetForCircle)==null||s.call(i)),i.filterTargetsToShowAtInit(c)}filterTargetsToShowAtInit(t=!1){const s=this,{$el:{svg:i},$T:n}=s;let a=`.${I.target}`;t&&(a+=`, .${ct.chartCircles} > .${ct.circles}`),n(i.selectAll(a).filter(o=>s.isTargetToShow(o.id))).style("opacity",null)}getWithOption(t){const s={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(s).forEach(i=>{let n=s[i];G(n)&&(n=s[n]),s[i]=Pt(t,`with${i}`,n)}),s}initialOpacity(t){const s=this,{withoutFadeIn:i}=s.state;return s.getBaseValue(t)!==null&&i[t.id]?null:"0"}bindResize(){const t=this,{config:s,state:i}=t,n=Cn(s.resize_timer),a=[];a.push(()=>Z(s.onresize,t.api)),s.resize_auto&&a.push(()=>{i.resizing=!0,s.legend_show&&(t.updateSizes(),t.updateLegend()),t.api.flush(!1)}),a.push(()=>{Z(s.onresized,t.api),i.resizing=!1}),a.forEach(o=>n.add(o)),t.resizeFunction=n,U.addEventListener("resize",t.resizeFunction=n)}callPluginHook(t,...s){this.config.plugins.forEach(i=>{t==="$beforeInit"&&(i.$$=this,this.api.plugins.push(i)),i[t](...s)})}}at(Vt.prototype,[In,Dn,zn,Mn,Xn,Vn,Yn,Fn,jn,Hn,Un,Zn,oa,qn,Kn,ta,ea,sa,ia,na]);function ca(e){const t=this.config;let s,i,n;const a=()=>{const o=i.shift();if(o&&s&&Tt(s)&&o in s)return s=s[o],a();if(!o)return s};Object.keys(t).forEach(o=>{s=e,i=o.split("_"),n=a(),Y(n)&&(t[o]=n)}),this.api&&(this.state.orgConfig=e)}var da={resize(e){const t=this.internal,{config:s,state:i}=t;i.rendered&&(s.size_width=e?e.width:null,s.size_height=e?e.height:null,i.resizing=!0,this.flush(!1),t.resizeFunction())},flush(e){var t,s;const i=this.internal,{state:n,$el:{zoomResetBtn:a}}=i;n.rendered?(n.resizing?(t=i.brush)==null||t.updateResize():(s=i.axis)==null||s.setOrient(),a==null||a.style("display","none"),i.scale.zoom=null,e?i.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):i.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!n.resizing&&i.brush&&(i.brush.getSelection().call(i.brush.move),i.unselectRect())):i.initToRender(!0)},destroy(){const e=this.internal,{$el:{chart:t,style:s,svg:i}}=e;if(et(e)){e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),i.select("*").interrupt(),e.resizeFunction.clear(),U.removeEventListener("resize",e.resizeFunction),t.classed("bb",!1).style("position",null).selectChildren().remove(),s&&s.parentNode.removeChild(s),Object.keys(this).forEach(n=>{n==="internal"&&Object.keys(e).forEach(a=>{e[a]=null}),this[n]=null,delete this[n]});for(const n in this)this[n]=()=>{}}return null},config(e,t,s){const i=this.internal,{config:n,state:a}=i,o=e==null?void 0:e.replace(/\./g,"_");let r;return e&&o in n?Y(t)?(n[o]=t,r=t,s&&this.flush()):r=n[o]:(arguments.length===0||bt(e))&&(r=a.orgConfig),r}},ua={color(e){return this.internal.color(e)}};const As=function(e){const{targets:t}=this.internal.data;if(!tt(e)){const s=B(e)?e:[e];return t.filter(i=>s.some(n=>n===i.id))}return t};at(As,{shown:function(e){return this.internal.filterTargetsToShow(this.data(e))},values:function(e,t=!0){let s=null;if(e){const i=this.data(e);B(i)&&(s=[],i.forEach(n=>{const a=n.values.map(o=>o.value);t?s=s.concat(a):s.push(a)}))}return s},names:function(e){return this.internal.updateDataAttributes("names",e)},colors:function(e){return this.internal.updateDataAttributes("colors",e)},axes:function(e){return this.internal.updateDataAttributes("axes",e)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});var ha={data:As};const ga=e=>{var t,s;return(s=(t=U).btoa)==null?void 0:s.call(t,encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(i,n)=>String.fromCharCode(+`0x${n}`)))};function fa(e,t,s){const{width:i,height:n}=t||s,a=new XMLSerializer,o=e.cloneNode(!0),r=dn(Bt(it.styleSheets)).filter(h=>h.cssText).map(h=>h.cssText);o.setAttribute("xmlns",w.namespaces.xhtml),o.style.margin="0",o.style.padding="0",t.preserveFontStyle&&o.querySelectorAll("text").forEach(h=>{h.innerHTML=""});const l=a.serializeToString(o),c=it.createElement("style");c.appendChild(it.createTextNode(r.join(` -`)));const u=a.serializeToString(c),d=``).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition(e,t){var s,i;const n=this,{config:a,scale:o,state:r,$el:{eventRect:l,tooltip:c}}=n,{bindto:u}=a.tooltip_contents,d=a.axis_rotated,h=c==null?void 0:c.datum();if(!u&&h){const g=e!=null?e:JSON.parse(h.current),[f,p]=$t(r.event,t!=null?t:l==null?void 0:l.node()),_={x:f,y:p};if(r.hasAxis&&o.x&&h&&"x"in h){const b=(A=0,y,v="y")=>{var R;const w=o[y?(R=n.axis)==null?void 0:R.getId(y):v];return w?w(A)+(d?r.margin.left:r.margin.top):0};_.xAxis=o.x(h.x)+(a.tooltip_position?d?r.margin.top:r.margin.left:0),g.length===1?_.yAxis=b(g[0].value,g[0].id):_.yAxis=b}const{width:x=0,height:m=0}=h,$=(i=(s=a.tooltip_position)==null?void 0:s.bind(n.api)(g,x,m,l==null?void 0:l.node(),_))!=null?i:n.getTooltipPosition.bind(n)(x,m,_);["top","left"].forEach(b=>{const A=$[b];c.style(b,`${A}px`),b==="left"&&!h.xPosInPercent&&(h.xPosInPercent=A/r.current.width*100)})}},getTooltipPosition(e,t,s){var i,n,a;const o=this,{config:r,scale:l,state:c}=o,{width:u,height:d,current:h,hasFunnel:g,hasRadar:f,hasTreemap:p,isLegendRight:_,inputType:x}=c,m=o.hasType("gauge")&&!r.gauge_fullCircle,$=r.axis_rotated,b=o.hasArcType(),A=o.getSvgLeft(!0);let y=A+h.width-o.getCurrentPaddingByDirection("right");const v=20;let{x:R,y:w}=s;if(f)R+=R>=u/2?15:-(e+15),w+=15;else if(b){if(x!=="touch"){let I=(n=(i=o.getTitlePadding)==null?void 0:i.call(o))!=null?n:0;I&&m&&((a=r.arc_rangeText_values)!=null&&a.length)&&(I+=10),R+=(u-(_?o.getLegendWidth():0))/2,w+=(m?d:d/2+t)+I}}else if(g||p)w+=t;else{const C={top:o.getCurrentPaddingByDirection("top",!0),left:o.getCurrentPaddingByDirection("left",!0)};$?(R+=A+C.left+v,w=C.top+s.xAxis+v,y-=A):(R=A+C.left+v+(l.zoom?R:s.xAxis),w+=C.top-5)}if(R+e+15>y&&(R-=e+(g||p||b?0:$?v*2:38)),w+t>h.height){const C=p?t+10:30;w-=m?t*1.5:t+C}const T={top:w,left:R};return Object.keys(T).forEach(C=>{T[C]<0&&(T[C]=0)}),T},showTooltip(e,t){const s=this,{config:i,$el:{tooltip:n}}=s,a=e.filter(l=>l&&F(s.getBaseValue(l)));if(!n||a.length===0||!i.tooltip_show)return;let o=n.datum();const r=JSON.stringify(e);if(!o||o.current!==r){const{index:l,x:c}=e.concat().sort()[0];K(i.tooltip_onshow,s.api,e),n.html(s.getTooltipHTML(e,s.axis?s.axis.getXAxisTickFormat():s.categoryName.bind(s),s.getDefaultValueFormat(),s.color)).style("display",null).style("visibility",null).datum(o={index:l,x:c,current:r,width:n.property("offsetWidth"),height:n.property("offsetHeight")}),K(i.tooltip_onshown,s.api,e),s._handleLinkedCharts(!0,l)}s.setTooltipPosition(a,t)},bindTooltipResizePos(){const e=this,{resizeFunction:t,state:s,$el:{tooltip:i}}=e;t.add(()=>{if(i.style("display")==="block"){const{current:n}=s,{width:a,xPosInPercent:o}=i.datum();let r=n.width/100*o;const l=n.width-(r+a);l<0&&(r+=l),i.style("left",`${r}px`)}})},hideTooltip(e){var t;const s=this,{api:i,config:n,$el:{tooltip:a}}=s;if(a&&a.style("display")!=="none"&&(!n.tooltip_doNotHide||e)){const o=JSON.parse((t=a.datum().current)!=null?t:{});K(n.tooltip_onhide,i,o),a.style("display","none").style("visibility","hidden").datum(null),K(n.tooltip_onhidden,i,o)}},_handleLinkedCharts(e,t){const s=this,{charts:i,config:n,state:{event:a}}=s;if(a!=null&&a.isTrusted&&n.tooltip_linked&&i.length>1){const o=n.tooltip_linked_name;i.filter(r=>r!==s.api).forEach(r=>{const{config:l,$el:c}=r.internal,u=l.tooltip_linked,d=l.tooltip_linked_name,h=lt.body.contains(c.chart.node());if(u&&o===d&&h){const g=c.tooltip.data()[0],f=t!==(g==null?void 0:g.index);try{r.tooltip[e&&f?"show":"hide"]({index:t})}catch(p){}}})}},updateTooltipOnRedraw(e,t){var s;const i=this,{config:n,$el:{eventRect:a,svg:o,tooltip:r},state:{event:l,hasAxis:c,hasRadar:u,hasTreemap:d}}=i;if((r==null?void 0:r.style("display"))==="block"&&l){const h=e!=null?e:(s=u?o:a)==null?void 0:s.node();if(c||u)if(i.isMultipleX())i.selectRectForMultipleXs(h,!1);else{const g=t!=null?t:i.getDataIndexFromEvent(l);t===-1?i.api.tooltip.hide():(i.selectRectForSingle(h,g),i.setExpand(g,null,!0))}else{const{clientX:g,clientY:f}=l;setTimeout(()=>{let p=lt.elementFromPoint(g,f);const _=(0,S.select)(p).datum();if(_){const x=i.hasArcType()?i.convertToArcData(i.updateAngle(_)):_==null?void 0:_.data;d&&(p=o.node()),x&&i.showTooltip([x],p)}else i.api.tooltip.hide()},n.transition_duration)}}}},ia={getTranslate(e,t=0){var s;const i=this,{config:n,state:a}=i,o=n.axis_rotated;let r=0,l,c;if(t&&/^(x|y2?)$/.test(e)&&(r=i.getAxisSize(e)*t),e==="main")l=_e(a.margin.left),c=_e(a.margin.top);else if(e==="context")l=_e(a.margin2.left),c=_e(a.margin2.top);else if(e==="legend")l=a.margin3.left,c=a.margin3.top;else if(e==="x")l=o?-r:0,c=o?0:a.height+r;else if(e==="y")l=o?0:-r,c=o?a.height+r:0;else if(e==="y2")l=o?0:a.width+r,c=o?-r-1:0;else if(e==="subX")l=0,c=o?0:a.height2;else if(e==="arc")l=a.arcWidth/2,c=a.arcHeight/2,(s=n.arc_rangeText_values)!=null&&s.length&&(c+=5+(i.hasType("gauge")&&n.title_text?10:0));else if(e==="polar")l=a.arcWidth/2,c=a.arcHeight/2;else if(e==="radar"){const[u,d]=i.getRadarSize();l=a.width/2-u,c=a.height/2-d}return`translate(${l}, ${c})`},transformMain(e,t){const s=this,{$el:{main:i},$T:n}=s,a=t!=null&&t.axisX?t.axisX:n(i.select(`.${ot.axisX}`),e),o=t!=null&&t.axisY?t.axisY:n(i.select(`.${ot.axisY}`),e),r=t!=null&&t.axisY2?t.axisY2:n(i.select(`.${ot.axisY2}`),e);n(i,e).attr("transform",s.getTranslate("main")),a.attr("transform",s.getTranslate("x")),o.attr("transform",s.getTranslate("y")),r.attr("transform",s.getTranslate("y2")),i.select(`.${G.chartArcs}`).attr("transform",s.getTranslate("arc"))},transformAll(e,t){const s=this,{config:i,state:{hasAxis:n,hasFunnel:a,hasTreemap:o},$el:r}=s;!a&&!o&&s.transformMain(e,t),n&&i.subchart_show&&s.transformContext(e,t),r.legend&&s.transformLegend(e)}},na={isValidChartType(e){return!!(e&&Object.values(E).indexOf(e)>-1)},setTargetType(e,t){const s=this,{config:i,state:{withoutFadeIn:n}}=s;s.mapToTargetIds(e).forEach(a=>{n[a]=t===i.data_types[a],i.data_types[a]=t}),e||(i.data_type=t)},updateTypesElements(){const e=this,{state:{current:t}}=e;Object.keys(E).forEach(s=>{const i=E[s],n=e.hasType(i,null,!0),a=t.types.indexOf(i);a===-1&&n?t.types.push(i):a>-1&&!n&&t.types.splice(a,1)}),e.setChartElements()},hasType(e,t,s=!1){var i;const n=this,{config:a,state:{current:o}}=n,r=a.data_types,l=t||n.data.targets;let c=!1;return!s&&((i=o.types)==null?void 0:i.indexOf(e))>-1?c=!0:l!=null&&l.length?l.forEach(u=>{const d=r[u.id];(d===e||!d&&e==="line")&&(c=!0)}):Object.keys(r).length?Object.keys(r).forEach(u=>{r[u]===e&&(c=!0)}):c=a.data_type===e,c},hasTypeOf(e,t,s=[]){return e in Ft?!Ft[e].filter(i=>s.indexOf(i)===-1).every(i=>!this.hasType(i,t)):!1},isTypeOf(e,t){var s;const i=V(e)?e:e.id,n=this.config&&(((s=this.config.data_types)==null?void 0:s[i])||this.config.data_type);return N(t)?t.indexOf(n)>=0:n===t},hasPointType(){const e=this;return e.hasTypeOf("Line")||e.hasType("bubble")||e.hasType("scatter")},hasArcType(e,t){return this.hasTypeOf("Arc",e,t)},hasMultiArcGauge(){return this.hasType("gauge")&&this.config.gauge_type==="multi"},isLineType(e){const t=V(e)?e:e.id;return!this.config.data_types[t]||this.isTypeOf(t,Ft.Line)},isStepType(e){return this.isTypeOf(e,Ft.Step)},isSplineType(e){return this.isTypeOf(e,Ft.Spline)},isAreaType(e){return this.isTypeOf(e,Ft.Area)},isAreaRangeType(e){return this.isTypeOf(e,Ft.AreaRange)},isBarType(e){return this.isTypeOf(e,"bar")},isBubbleType(e){return this.isTypeOf(e,"bubble")},isCandlestickType(e){return this.isTypeOf(e,"candlestick")},isScatterType(e){return this.isTypeOf(e,"scatter")},isTreemapType(e){return this.isTypeOf(e,"treemap")},isPieType(e){return this.isTypeOf(e,"pie")},isFunnelType(e){return this.isTypeOf(e,"funnel")},isGaugeType(e){return this.isTypeOf(e,"gauge")},isDonutType(e){return this.isTypeOf(e,"donut")},isPolarType(e){return this.isTypeOf(e,"polar")},isRadarType(e){return this.isTypeOf(e,"radar")},isArcType(e){return this.isPieType(e)||this.isDonutType(e)||this.isGaugeType(e)||this.isPolarType(e)||this.isRadarType(e)},isCirclePoint(e){const{config:t}=this,s=t.point_pattern;let i=!1;return(e==null?void 0:e.tagName)==="circle"?i=!0:i=t.point_type==="circle"&&(!s||N(s)&&s.length===0),i},lineData(e){return this.isLineType(e)?[e]:[]},arcData(e){return this.isArcType(e.data)?[e]:[]},labelishData(e){return this.isBarType(e)||this.isLineType(e)||this.isScatterType(e)||this.isBubbleType(e)||this.isCandlestickType(e)||this.isFunnelType(e)||this.isRadarType(e)||this.isTreemapType(e)?e.values.filter(t=>L(t.value)||!!t.value):[]},barLineBubbleData(e){return this.isBarType(e)||this.isLineType(e)||this.isBubbleType(e)?e.values:[]},isInterpolationType(e){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(e)>=0}},tt=W(9);function aa(e){const t=this;let s;return t.isLineType(e)?s=t.generateGetLinePoints(t.getShapeIndices(t.isLineType)):t.isBarType(e)&&(s=t.generateGetBarPoints(t.getShapeIndices(t.isBarType))),s}var oa={getDrawShape(){const e=this,t=e.config.axis_rotated,{hasRadar:s,hasTreemap:i}=e.state,n={type:{},indices:{},pos:{}};if(!i&&["bar","candlestick","line","area"].forEach(a=>{const o=ft(/^(bubble|scatter)$/.test(a)?"line":a);if(e.hasType(a)||e.hasTypeOf(o)||a==="line"&&(e.hasType("bubble")||e.hasType("scatter"))){const r=e.getShapeIndices(e[`is${o}Type`]),l=e[`generateDraw${o}`];n.indices[a]=r,n.type[a]=l?l.bind(e)(r,!1):void 0}}),!e.hasArcType()||s||i){let a,o;i||(a=s?e.radarCircleX:t?e.circleY:e.circleX,o=s?e.radarCircleY:t?e.circleX:e.circleY),n.pos={xForText:e.generateXYForText(n.indices,!0),yForText:e.generateXYForText(n.indices,!1),cx:(a||function(){}).bind(e),cy:(o||function(){}).bind(e)}}return n},getShapeIndices(e){const t=this,{config:s}=t,i=s.data_xs,n=nt(i),a={};let o=n?{}:0;return n&&Oe(Object.keys(i).map(r=>i[r])).forEach(r=>{o[r]=0,a[r]={}}),t.filterTargetsToShow(t.data.targets.filter(e,t)).forEach(r=>{var l;const c=r.id in i?i[r.id]:"",u=c?a[c]:a;for(let d=0,h;h=s.data_groups[d];d++)if(!(h.indexOf(r.id)<0))for(let g=0,f;f=h[g];g++){if(f in u){u[r.id]=u[f];break}r.id!==f&&c&&(u[f]=(l=u[r.id])!=null?l:o[c])}it(u[r.id])&&(u[r.id]=c?o[c]++:o++,u.__max__=(c?o[c]:o)-1)}),a},getIndices(e,t,s){const i=this,{data_xs:n,bar_indices_removeNull:a}=i.config,{id:o,index:r}=t;if(i.isBarType(o)&&a){const l={};return i.getAllValuesOnIndex(r,!0).forEach((c,u)=>{l[c.id]=u,l.__max__=u}),l}return nt(n)?e[n[o]]:e},getIndicesMax(e){return nt(this.config.data_xs)?Object.keys(e).map(t=>e[t].__max__||0).reduce((t,s)=>t+s):e.__max__},getShapeX(e,t,s){const i=this,{config:n,scale:a}=i,o=s?a.subX:a.zoom||a.x,r=n.bar_overlap,l=n.bar_padding,c=(d,h)=>d+h,u=wt(e)&&(e._$total.length?e._$total.reduce(c)/2:0);return d=>{const h=i.getIndices(t,d,"getShapeX"),g=d.id in h?h[d.id]:0,f=(h.__max__||0)+1;let p=0;if(nt(d.x)){const _=o(d.x,!0);if(u){const x=e[d.id]||e._$width;p=r?_-x/2:_-x+e._$total.slice(0,g+1).reduce(c)-u}else p=_-(L(e)?e:e._$width)*(f/2-(r?1:g))}return e&&p&&f>1&&l&&(g&&(p+=l*g),f>2?p-=(f-1)*l/2:f===2&&(p-=l/2)),p}},getShapeY(e){const t=this,s=t.isStackNormalized();return i=>{let{value:n}=i;return L(i)?n=i:t.isAreaRangeType(i)?n=t.getBaseValue(i,"mid"):s?n=t.getRatio("index",i,!0):t.isBubbleZType(i)?n=t.getBubbleZData(i.value,"y"):t.isBarRangeType(i)&&(n=n[1]),t.getYScaleById(i.id,e)(n)}},getShapeYMin(e){const t=this,s=t.axis.getId(e),i=t.scale[s],[n]=i.domain(),a=t.config[`axis_${s}_inverted`];return!t.isGrouped(e)&&!a&&n>0?n:0},getShapeOffsetData(e){const t=this,s=t.orderTargets(t.filterTargetsToShow(t.data.targets.filter(e,t))),i=t.isStackNormalized(),n=s.map(o=>{let r=o.values;const l={};t.isStepType(o)&&(r=t.convertValuesToStep(r));const c=r.reduce((u,d)=>{const h=Number(d.x);return u[h]=d,l[h]=i?t.getRatio("index",d,!0):d.value,u},{});return{id:o.id,rowValues:r,rowValueMapByXValue:c,values:l}});return{indexMapByTargetId:s.reduce((o,{id:r},l)=>(o[r]=l,o),{}),shapeOffsetTargets:n}},getShapeOffset(e,t,s){const i=this,{shapeOffsetTargets:n,indexMapByTargetId:a}=i.getShapeOffsetData(e),o=i.config.data_groupsZeroAs;return(r,l)=>{const{id:c,value:u,x:d}=r,h=i.getIndices(t,r),g=i.getYScaleById(c,s);if(i.isBarRangeType(r))return g(u[0]);const f=Number(d),p=g(o==="zero"?0:i.getShapeYMin(c));let _=p;return n.filter(x=>x.id!==c&&h[x.id]===h[c]).forEach(x=>{const{id:m,rowValueMapByXValue:$,rowValues:b,values:A}=x;if(a[m]=0&&L(y)&&(u!==0||o==="positive"&&y>0||o==="negative"&&y<0)&&(_+=g(y)-p)}}),_}},circleY(e,t){const s=this,i=e.id;let n;return s.isGrouped(i)&&(n=aa.bind(s)(e)),n?n(e,t)[0][1]:s.getYScaleById(i)(s.getBaseValue(e))},getBarW(e,t,s){var i,n,a,o,r;const l=this,{config:c,org:u,scale:d,state:h}=l,g=l.getMaxDataCount(),f=e==="bar"&&((i=c.data_groups)==null?void 0:i.length),p=`${e}_width`,{k:_}=(a=(n=l.getZoomTransform)==null?void 0:n.call(l))!=null?a:{k:1},x=[(o=c.axis_x_min)!=null?o:u.xDomain[0],(r=c.axis_x_max)!=null?r:u.xDomain[1]].map(l.axis.isTimeSeries()?mt.bind(l):Number);let m=t.tickInterval(g);if(d.zoom&&!l.axis.isCategorized()&&_>1){const A=x.every((y,v)=>y===u.xDomain[v]);m=u.xDomain.map((y,v)=>{const R=A?y:y-Math.abs(x[v]);return d.zoom(R)}).reduce((y,v)=>Math.abs(y)+v)/g}const $=A=>{const y=A?c[p][A]:c[p],v=A?y.ratio:c[`${p}_ratio`],R=A?y.max:c[`${p}_max`],w=L(y)?y:P(y)?y.call(l,h.width,s,g):s?m*v/s:0;return R&&w>R?R:w};let b=$();return!f&&wt(c[p])&&(b={_$width:b,_$total:[]},l.filterTargetsToShow(l.data.targets).forEach(A=>{c[p][A.id]&&(b[A.id]=$(A.id),b._$total.push(b[A.id]||b._$width))})),b},getShapeByIndex(e,t,s){const i=this,{$el:n}=i,a=F(t)?`-${t}`:"";let o=n[e];return o&&!o.empty()?o=o.filter(r=>s?r.id===s:!0).filter(r=>F(t)?r.index===t:!0):o=(s?n.main.selectAll(`.${B[`${e}s`]}${i.getTargetSelectorSuffix(s)}`):n.main).selectAll(`.${B[e]}${a}`),o},isWithinShape(e,t){var s;const i=this,n=(0,S.select)(e);let a;return i.isTargetToShow(t.id)?(s=i.hasValidPointType)!=null&&s.call(i,e.nodeName)?a=i.isStepType(t)?i.isWithinStep(e,i.getYScaleById(t.id)(i.getBaseValue(t))):i.isWithinCircle(e,i.isBubbleType(t)?i.pointSelectR(t)*1.5:0):e.nodeName==="path"&&(a=n.classed(B.bar)?i.isWithinBar(e):!0):a=!1,a},getInterpolate(e){const s=this.getInterpolateType(e);return{basis:tt.curveBasis,"basis-closed":tt.curveBasisClosed,"basis-open":tt.curveBasisOpen,bundle:tt.curveBundle,cardinal:tt.curveCardinal,"cardinal-closed":tt.curveCardinalClosed,"cardinal-open":tt.curveCardinalOpen,"catmull-rom":tt.curveCatmullRom,"catmull-rom-closed":tt.curveCatmullRomClosed,"catmull-rom-open":tt.curveCatmullRomOpen,"monotone-x":tt.curveMonotoneX,"monotone-y":tt.curveMonotoneY,natural:tt.curveNatural,"linear-closed":tt.curveLinearClosed,linear:tt.curveLinear,step:tt.curveStep,"step-after":tt.curveStepAfter,"step-before":tt.curveStepBefore}[s]},getInterpolateType(e){const t=this,{config:s}=t,i=s.spline_interpolation_type,n=t.isInterpolationType(i)?i:"cardinal";return t.isSplineType(e)?n:t.isStepType(e)?s.line_step_type:"linear"},isWithinBar(e){const t=$t(this.state.event,e),s=as(e),[i,n]=s,a=Math.min(i.x,n.x),o=Math.min(i.y,n.y),r=this.config.bar_sensitivity,{width:l,height:c}=e.getBBox(),u=a-r,d=a+l+r,h=o+c+r,g=o-r;return ut in e?ra(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ht=(e,t,s)=>la(e,typeof t!="symbol"?t+"":t,s);class jt{constructor(t){ht(this,"api"),ht(this,"config"),ht(this,"cache"),ht(this,"$el"),ht(this,"state"),ht(this,"charts"),ht(this,"data",{xs:{},targets:[]}),ht(this,"axis"),ht(this,"scale",{x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null}),ht(this,"org",{xScale:null,xDomain:null}),ht(this,"color"),ht(this,"patterns"),ht(this,"levelColor"),ht(this,"point"),ht(this,"brush"),ht(this,"format",{extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null});const s=this;s.api=t,s.config=new Vt,s.cache=new Tn;const i=new $n;s.$el=i.getStore("element"),s.state=i.getStore("state"),s.$T=s.$T.bind(s)}$T(t,s,i){const{config:n,state:a}=this,o=n.transition_duration,r=n.subchart_show;let l=t;return l&&("tagName"in l&&(l=(0,S.select)(l)),l=(s!==!1&&o||s)&&(!a.zooming||a.dragging)&&!a.resizing&&a.rendered&&!r?l.transition(i).duration(o):l),l}beforeInit(){const t=this;t.callPluginHook("$beforeInit"),K(t.config.onbeforeinit,t.api)}afterInit(){const t=this;t.callPluginHook("$afterInit"),K(t.config.onafterinit,t.api)}init(){const t=this,{config:s,state:i,$el:n}=t,a=s.boost_useCssRule;if(An(t),i.hasRadar=!i.hasAxis&&t.hasType("radar"),i.hasFunnel=!i.hasAxis&&t.hasType("funnel"),i.hasTreemap=!i.hasAxis&&t.hasType("treemap"),i.hasAxis=!t.hasArcType()&&!i.hasFunnel&&!i.hasTreemap,i.datetimeId=`bb-${+new Date*Lt()}`,a){const r=lt.createElement("style");r.type="text/css",lt.head.appendChild(r),i.style={rootSelctor:`.${i.datetimeId}`,sheet:r.sheet},n.style=r}const o={element:s.bindto,classname:"bb"};X(s.bindto)&&(o.element=s.bindto.element||"#chart",o.classname=s.bindto.classname||o.classname),n.chart=P(o.element.node)?s.bindto.element:(0,S.select)(o.element||[]),n.chart.empty()&&(n.chart=(0,S.select)(lt.body.appendChild(lt.createElement("div")))),n.chart.html("").classed(o.classname,!0).classed(i.datetimeId,a).style("position","relative"),t.initParams(),t.initToRender()}initToRender(t){const s=this,{config:i,state:n,$el:{chart:a}}=s,o=()=>a.style("display")==="none"||a.style("visibility")==="hidden",r=i.render.lazy||o(),l=q.MutationObserver;r&&l&&i.render.observe!==!1&&!t&&new l((c,u)=>{o()||(u.disconnect(),!n.rendered&&s.initToRender(!0))}).observe(a.node(),{attributes:!0,attributeFilter:["class","style"]}),(!r||t)&&s.convertData(i,c=>{s.initWithData(c),s.afterInit()})}initParams(){var t;const s=this,{config:i,format:n,state:a}=s,o=i.axis_rotated;if(s.color=s.generateColor(),s.levelColor=s.generateLevelColor(),i.padding===!1&&(i.axis_x_show=!1,i.axis_y_show=!1,i.axis_y2_show=!1,i.subchart_show=!1),(s.hasPointType()||(t=s.hasLegendDefsPoint)!=null&&t.call(s))&&(s.point=s.generatePoint()),a.hasAxis){s.initClip(),n.extraLineClasses=s.generateExtraLineClass(),n.dataTime=i.data_xLocaltime?ge.timeParse:ge.utcParse,n.axisTime=i.axis_x_localtime?ge.timeFormat:ge.utcFormat;const r=s.config.zoom_enabled&&s.config.zoom_type==="drag";n.defaultAxisTime=l=>{const{x:c,zoom:u}=s.scale,d=r?u:u&&c.orgDomain().toString()!==u.domain().toString(),h=l.getMilliseconds()&&".%L"||l.getSeconds()&&".:%S"||l.getMinutes()&&"%I:%M"||l.getHours()&&"%I %p"||l.getDate()!==1&&"%b %d"||d&&l.getDate()===1&&"%b'%y"||l.getMonth()&&"%-m/%-d"||"%Y";return n.axisTime(h)(l)}}a.isLegendRight=i.legend_position==="right",a.isLegendInset=i.legend_position==="inset",a.isLegendTop=i.legend_inset_anchor==="top-left"||i.legend_inset_anchor==="top-right",a.isLegendLeft=i.legend_inset_anchor==="top-left"||i.legend_inset_anchor==="bottom-left",a.rotatedPadding.top=s.getResettedPadding(a.rotatedPadding.top),a.rotatedPadding.right=o&&!i.axis_x_show?0:30,a.inputType=hn(i.interaction_inputType_mouse,i.interaction_inputType_touch)}initWithData(t){var s,i,n;const a=this,{config:o,scale:r,state:l,$el:c,org:u}=a,{hasAxis:d,hasFunnel:h,hasTreemap:g}=l,f=o.interaction_enabled,p=a.hasType("polar"),_=o.data_labels_backgroundColors;if(d&&(a.axis=a.getAxisInstance(),o.zoom_enabled&&a.initZoom()),a.data.xs={},a.data.targets=a.convertDataToTargets(t),o.data_filter&&(a.data.targets=a.data.targets.filter(o.data_filter.bind(a.api))),o.data_hide&&a.addHiddenTargetIds(o.data_hide===!0?a.mapToIds(a.data.targets):o.data_hide),o.legend_hide&&a.addHiddenLegendIds(o.legend_hide===!0?a.mapToIds(a.data.targets):o.legend_hide),a.updateSizes(),a.updateScales(!0),d){const{x:$,y:b,y2:A,subX:y,subY:v,subY2:R}=r;$&&($.domain(Kt(a.getXDomain(a.data.targets),!o.axis_x_inverted)),y.domain($.domain()),u.xDomain=$.domain()),b&&(b.domain(a.getYDomain(a.data.targets,"y")),v.domain(b.domain())),A&&(A.domain(a.getYDomain(a.data.targets,"y2")),R&&R.domain(A.domain()))}if(c.svg=c.chart.append("svg").style("overflow","hidden").style("display","block"),f&&l.inputType){const $=l.inputType==="touch",{onclick:b,onover:A,onout:y}=o;c.svg.on("click",(b==null?void 0:b.bind(a.api))||null).on($?"touchstart":"mouseenter",(A==null?void 0:A.bind(a.api))||null).on($?"touchend":"mouseleave",(y==null?void 0:y.bind(a.api))||null)}o.svg_classname&&c.svg.attr("class",o.svg_classname);const x=P(o.color_tiles)&&a.patterns;(d||x||p||g||_||(s=a.hasLegendDefsPoint)!=null&&s.call(a))&&(c.defs=c.svg.append("defs"),d&&["id","idXAxis","idYAxis","idGrid"].forEach($=>{a.appendClip(c.defs,l.clip[$])}),a.generateTextBGColorFilter(_),x&&a.patterns.forEach($=>c.defs.append(()=>$.node))),a.updateSvgSize(),a.bindResize();const m=c.svg.append("g").classed(z.main,!0).attr("transform",h||g?null:a.getTranslate("main"));if(c.main=m,o.subchart_show&&a.initSubchart(),o.tooltip_show&&a.initTooltip(),o.title_text&&a.initTitle(),!g&&o.legend_show&&a.initLegend(),o.data_empty_label_text&&m.append("text").attr("class",`${gt.text} ${z.empty}`).attr("text-anchor","middle").attr("dominant-baseline","middle"),d&&(o.regions.length&&a.initRegion(),!o.clipPath&&a.axis.init()),m.append("g").classed(z.chart,!0).attr("clip-path",d?l.clip.path:null),a.callPluginHook("$init"),a.initChartElements(),d&&(f&&((i=a.initEventRect)==null||i.call(a)),a.initGrid(),o.clipPath&&((n=a.axis)==null||n.init())),a.updateTargets(a.data.targets),a.updateDimension(),K(o.oninit,a.api),a.setBackground(),a.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),o.data_onmin||o.data_onmax){const $=a.getMinMaxData();K(o.data_onmin,a.api,$.min),K(o.data_onmax,a.api,$.max)}o.tooltip_show&&a.initShowTooltip(),l.rendered=!0}initChartElements(){const t=this,{hasAxis:s,hasRadar:i,hasTreemap:n}=t.state,a=[];if(s){const o=["bar","bubble","candlestick","line"];t.config.bar_front&&o.push(o.shift()),o.forEach(r=>{const l=ft(r);(r==="line"&&t.hasTypeOf(l)||t.hasType(r))&&a.push(l)})}else if(n)a.push("Treemap");else if(t.hasType("funnel"))a.push("Funnel");else{const o=t.hasType("polar");i||a.push("Arc","Pie"),t.hasType("gauge")?a.push("Gauge"):i?a.push("Radar"):o&&a.push("Polar")}a.forEach(o=>{t[`init${o}`]()}),nt(t.config.data_labels)&&!t.hasArcType(null,["radar"])&&t.initText()}setChartElements(){const t=this,{$el:{chart:s,svg:i,defs:n,main:a,tooltip:o,legend:r,title:l,grid:c,needle:u,arcs:d,circle:h,bar:g,candlestick:f,line:p,area:_,text:x}}=t;t.api.$={chart:s,svg:i,defs:n,main:a,tooltip:o,legend:r,title:l,grid:c,arc:d,circles:h,bar:{bars:g},candlestick:f,line:{lines:p,areas:_},needle:u,text:{texts:x}}}setBackground(){const t=this,{config:{background:s},state:i,$el:{svg:n}}=t;if(nt(s)){const a=n.select("g").insert(s.imgUrl?"image":"rect",":first-child");s.imgUrl?a.attr("href",s.imgUrl):s.color&&a.style("fill",s.color).attr("clip-path",i.clip.path),a.attr("class",s.class||null).attr("width","100%").attr("height","100%")}}updateTargets(t){var s;const i=this,{hasAxis:n,hasFunnel:a,hasRadar:o,hasTreemap:r}=i.state,l=u=>i[`updateTargetsFor${u}`](t.filter(i[`is${u}Type`].bind(i)));if(i.updateTargetsForText(t),n)["bar","candlestick","line"].forEach(u=>{const d=ft(u);(u==="line"&&i.hasTypeOf(d)||i.hasType(u))&&l(d)}),i.updateTargetsForSubchart&&i.updateTargetsForSubchart(t);else if(i.hasArcType(t)){let u="Arc";o?u="Radar":i.hasType("polar")&&(u="Polar"),l(u)}else a?l("Funnel"):r&&l("Treemap");const c=i.hasType("bubble")||i.hasType("scatter");c&&((s=i.updateTargetForCircle)==null||s.call(i)),i.filterTargetsToShowAtInit(c)}filterTargetsToShowAtInit(t=!1){const s=this,{$el:{svg:i},$T:n}=s;let a=`.${z.target}`;t&&(a+=`, .${ut.chartCircles} > .${ut.circles}`),n(i.selectAll(a).filter(o=>s.isTargetToShow(o.id))).style("opacity",null)}getWithOption(t){const s={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(s).forEach(i=>{let n=s[i];V(n)&&(n=s[n]),s[i]=zt(t,`with${i}`,n)}),s}initialOpacity(t){const s=this,{withoutFadeIn:i}=s.state;return s.getBaseValue(t)!==null&&i[t.id]?null:"0"}bindResize(){const t=this,{config:s,state:i}=t,n=Cn(s.resize_timer),a=[];a.push(()=>K(s.onresize,t.api)),s.resize_auto&&a.push(()=>{i.resizing=!0,s.legend_show&&(t.updateSizes(),t.updateLegend()),t.api.flush(!1)}),a.push(()=>{K(s.onresized,t.api),i.resizing=!1}),a.forEach(o=>n.add(o)),t.resizeFunction=n,q.addEventListener("resize",t.resizeFunction=n)}callPluginHook(t,...s){this.config.plugins.forEach(i=>{t==="$beforeInit"&&(i.$$=this,this.api.plugins.push(i)),i[t](...s)})}}ct(jt.prototype,[In,Dn,zn,Mn,Xn,Vn,Yn,Fn,jn,Hn,Un,Zn,oa,qn,Kn,ta,ea,sa,ia,na]);function ca(e){const t=this.config;let s,i,n;const a=()=>{const o=i.shift();if(o&&s&&wt(s)&&o in s)return s=s[o],a();if(!o)return s};Object.keys(t).forEach(o=>{s=e,i=o.split("_"),n=a(),H(n)&&(t[o]=n)}),this.api&&(this.state.orgConfig=e)}var da={resize(e){const t=this.internal,{config:s,state:i}=t;i.rendered&&(s.size_width=e?e.width:null,s.size_height=e?e.height:null,i.resizing=!0,this.flush(!1),t.resizeFunction())},flush(e){var t,s;const i=this.internal,{state:n,$el:{zoomResetBtn:a}}=i;n.rendered?(n.resizing?(t=i.brush)==null||t.updateResize():(s=i.axis)==null||s.setOrient(),a==null||a.style("display","none"),i.scale.zoom=null,e?i.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):i.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!n.resizing&&i.brush&&(i.brush.getSelection().call(i.brush.move),i.unselectRect())):i.initToRender(!0)},destroy(){const e=this.internal,{$el:{chart:t,style:s,svg:i}}=e;if(nt(e)){e.callPluginHook("$willDestroy"),e.charts.splice(e.charts.indexOf(this),1),e.unbindAllEvents(),i.select("*").interrupt(),e.resizeFunction.clear(),q.removeEventListener("resize",e.resizeFunction),t.classed("bb",!1).style("position",null).selectChildren().remove(),s&&s.parentNode.removeChild(s),Object.keys(this).forEach(n=>{n==="internal"&&Object.keys(e).forEach(a=>{e[a]=null}),this[n]=null,delete this[n]});for(const n in this)this[n]=()=>{}}return null},config(e,t,s){const i=this.internal,{config:n,state:a}=i,o=e==null?void 0:e.replace(/\./g,"_");let r;return e&&o in n?H(t)?(n[o]=t,r=t,s&&this.flush()):r=n[o]:(arguments.length===0||Tt(e))&&(r=a.orgConfig),r}},ua={color(e){return this.internal.color(e)}};const ws=function(e){const{targets:t}=this.internal.data;if(!it(e)){const s=N(e)?e:[e];return t.filter(i=>s.some(n=>n===i.id))}return t};ct(ws,{shown:function(e){return this.internal.filterTargetsToShow(this.data(e))},values:function(e,t=!0){let s=null;if(e){const i=this.data(e);N(i)&&(s=[],i.forEach(n=>{const a=n.values.map(o=>o.value);t?s=s.concat(a):s.push(a)}))}return s},names:function(e){return this.internal.updateDataAttributes("names",e)},colors:function(e){return this.internal.updateDataAttributes("colors",e)},axes:function(e){return this.internal.updateDataAttributes("axes",e)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});var ha={data:ws};const ga=e=>{var t,s;return(s=(t=q).btoa)==null?void 0:s.call(t,encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(i,n)=>String.fromCharCode(+`0x${n}`)))};function fa(e,t,s){const{width:i,height:n}=t||s,a=new XMLSerializer,o=e.cloneNode(!0),r=dn(Gt(lt.styleSheets)).filter(h=>h.cssText).map(h=>h.cssText);o.setAttribute("xmlns",S.namespaces.xhtml),o.style.margin="0",o.style.padding="0",t.preserveFontStyle&&o.querySelectorAll("text").forEach(h=>{h.innerHTML=""});const l=a.serializeToString(o),c=lt.createElement("style");c.appendChild(lt.createTextNode(r.join(` +`)));const u=a.serializeToString(c),d=` ${u} ${l.replace(/(url\()[^#]+/g,"$1")} - `;return`data:image/svg+xml;base64,${ga(d)}`}function pa(e,t){const{top:s,left:i}=t,{x:n,y:a}=e.getBBox(),{a:o,b:r,c:l,d:c,e:u,f:d}=e.getScreenCTM(),{width:h,height:g}=e.getBoundingClientRect();return{x:o*n+l*a+u-i,y:r*n+c*a+d-s+(g-Math.round(g/4)),width:h,height:g}}function xa(e){const{left:t,top:s}=e.getBoundingClientRect(),i=a=>a.textContent||a.childElementCount,n=[];return Bt(e.querySelectorAll("text")).filter(i).forEach(a=>{const o=r=>{const{fill:l,fontFamily:c,fontSize:u,textAnchor:d,transform:h}=U.getComputedStyle(r),{x:g,y:f,width:p,height:_}=pa(r,{left:t,top:s});return{[r.textContent]:{x:g,y:f,width:p,height:_,fill:l,fontFamily:c,fontSize:u,textAnchor:d,transform:h}}};if(a.childElementCount>1){const r=[];return Bt(a.querySelectorAll("tspan")).filter(i).forEach(l=>{n.push(o(l))}),r}else n.push(o(a))}),n}function _a(e,t){t.forEach(s=>{Object.keys(s).forEach(i=>{const{x:n,y:a,width:o,height:r,fill:l,fontFamily:c,fontSize:u,transform:d}=s[i];if(e.save(),e.font=`${u} ${c}`,e.fillStyle=l,d==="none")e.fillText(i,n,a);else{const h=d.replace(/(matrix|\(|\))/g,"").split(",");h.splice(4).every(g=>+g==0)?(h.push(n+o-o/4),h.push(a-r+r/3)):(h.push(n),h.push(a)),e.transform(...h),e.fillText(i,0,0)}e.restore()})})}var ma={export(e,t){const s=this.internal,{state:i,$el:{chart:n,svg:a}}=s,{width:o,height:r}=i.current,l=Ut({width:o,height:r,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},e),c=fa(n.node(),l,{width:o,height:r}),u=l.preserveFontStyle?xa(a.node()):[];if(t&&L(t)){const d=new Image;d.crossOrigin="Anonymous",d.onload=()=>{const h=it.createElement("canvas"),g=h.getContext("2d");h.width=l.width||o,h.height=l.height||r,g.drawImage(d,0,0),u.length&&(_a(g,u),u.length=0),t.bind(this)(h.toDataURL(l.mimeType))},d.src=c}return c}},$a={focus(e){const t=this.internal,{state:s}=t,i=t.mapToTargetIds(e),n=t.$el.svg.selectAll(t.selectorTargets(i.filter(t.isTargetToShow,t)));this.revert(),this.defocus(),n.classed(W.focused,!0).classed(W.defocused,!1),t.hasArcType()&&!s.hasRadar&&(t.expandArc(i),t.hasType("gauge")&&t.markOverlapped(e,t,`.${xt.gaugeValue}`)),t.toggleFocusLegend(i,!0),s.focusedTargetIds=i,s.defocusedTargetIds=s.defocusedTargetIds.filter(a=>i.indexOf(a)<0)},defocus(e){const t=this.internal,{state:s}=t,i=t.mapToTargetIds(e);t.$el.svg.selectAll(t.selectorTargets(i.filter(t.isTargetToShow,t))).classed(W.focused,!1).classed(W.defocused,!0),t.hasArcType(null,["polar"])&&(t.unexpandArc(i),t.hasType("gauge")&&t.undoMarkOverlapped(t,`.${xt.gaugeValue}`)),t.toggleFocusLegend(i,!1),s.focusedTargetIds=s.focusedTargetIds.filter(a=>i.indexOf(a)<0),s.defocusedTargetIds=i},revert(e){const t=this.internal,{config:s,state:i,$el:n}=t,a=t.mapToTargetIds(e);n.svg.selectAll(t.selectorTargets(a)).classed(W.focused,!1).classed(W.defocused,!1),t.hasArcType(null,["polar"])&&t.unexpandArc(a),s.legend_show&&(t.showLegend(a.filter(t.isLegendToShow.bind(t))),n.legend.selectAll(t.selectorLegends(a)).filter(function(){return(0,w.select)(this).classed(W.legendItemFocused)}).classed(W.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}},ya={legend:{show:function(e){const t=this.internal;t.showLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},hide:function(e){const t=this.internal;t.hideLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})}}},ba={load(e){const t=this.internal,{config:s}=t;e.xs&&t.addXs(e.xs),"names"in e&&this.data.names(e.names),"classes"in e&&Object.keys(e.classes).forEach(i=>{s.data_classes[i]=e.classes[i]}),"categories"in e&&t.axis.isCategorized()&&(s.axis_x_categories=e.categories),"axes"in e&&Object.keys(e.axes).forEach(i=>{s.data_axes[i]=e.axes[i]}),"colors"in e&&Object.keys(e.colors).forEach(i=>{s.data_colors[i]=e.colors[i]}),"unload"in e&&e.unload!==!1?t.unload(t.mapToTargetIds(e.unload===!0?null:e.unload),()=>{ts(()=>t.loadFromArgs(e))}):t.loadFromArgs(e)},unload(e){const t=this.internal;let s=e||{};bt(s)&&this.tooltip.hide(),B(s)?s={ids:s}:G(s)&&(s={ids:[s]});const i=t.mapToTargetIds(s.ids);t.unload(i,()=>{t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),t.cache.remove(i),$s.call(t,s.done,s.resizeAfter)})}};function ws(e,t,s){const i=this.internal,n=i.mapToTargetIds(t),a=i.state.hiddenTargetIds.map(l=>n.indexOf(l)>-1&&l).filter(Boolean);i.state.toggling=!0,i[`${e?"remove":"add"}HiddenTargetIds`](n);const o=i.$el.svg.selectAll(i.selectorTargets(n)),r=e?null:"0";e&&a.length&&(o.style("display",null),Z(i.config.data_onshown,this,a)),i.$T(o).style("opacity",r,"important").call(xe,()=>{!e&&a.length===0&&(o.style("display","none"),Z(i.config.data_onhidden,this,n)),o.style("opacity",r)}),s.withLegend&&i[`${e?"show":"hide"}Legend`](n),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.state.toggling=!1}var va={show(e,t={}){ws.call(this,!0,e,t)},hide(e,t={}){ws.call(this,!1,e,t)},toggle(e,t={}){const s=this.internal,i={show:[],hide:[]};s.mapToTargetIds(e).forEach(n=>i[s.isTargetToShow(n)?"hide":"show"].push(n)),i.show.length&&this.show(i.show,t),i.hide.length&&setTimeout(()=>this.hide(i.hide,t),0)}},Ta={tooltip:{show:function(e){var t,s,i;const n=this.internal,{$el:a,config:o,state:{eventReceiver:r,hasFunnel:l,hasTreemap:c,inputType:u}}=n;let d,h;if(e.mouse&&(h=e.mouse),e.data){const{data:g}=e,f=(t=n.getYScaleById(g.id))==null?void 0:t(g.value);if((l||c)&&g.id){const p=n.selectorTarget(g.id,void 0,`.${Q.shape}`);r.rect=a.main.select(p)}else n.isMultipleX()?h=[n.xx(g),f]:(o.tooltip_grouped||(h=[0,f]),d=(i=g.index)!=null?i:n.hasArcType()&&g.id?(s=n.getArcElementByIdOrIndex(g.id))==null?void 0:s.datum().index:n.getIndexByX(g.x))}else Y(e.x)?d=n.getIndexByX(e.x):Y(e.index)&&(d=e.index);(u==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(g=>{n.dispatchEvent(g,d,h)})},hide:function(){var e,t,s;const i=this.internal,{state:{inputType:n},$el:{tooltip:a}}=i,o=a==null?void 0:a.datum();if(o){const{index:r}=JSON.parse(o.current)[0];(n==="mouse"?["mouseout"]:["touchend"]).forEach(l=>{i.dispatchEvent(l,r)})}n==="touch"&&i.callOverOutForTouch(),i.hideTooltip(!0),(e=i.hideGridFocus)==null||e.call(i),(t=i.unexpandCircles)==null||t.call(i),(s=i.expandBarTypeShapes)==null||s.call(i,!1)}}},Aa=Object.defineProperty,wa=(e,t,s)=>t in e?Aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ss=(e,t,s)=>wa(e,typeof t!="symbol"?t+"":t,s);class Dt{constructor(t){Ss(this,"plugins",[]),Ss(this,"internal");const s=new Vt(this);this.internal=s,function i(n,a,o){Object.keys(n).forEach(r=>{const l=L(n[r]),c=a!==o,u=et(n[r]),d=u&&Object.keys(n[r]).length>0;l&&(!c&&d||c)?a[r]=n[r].bind(o):u&&!l?a[r]={}:a[r]=n[r],d&&i(n[r],a[r],o)})}(Dt.prototype,this,this),ca.call(s,t),s.beforeInit(),s.init()}}at(Dt.prototype,[da,ua,ha,ma,$a,ya,ba,va,Ta]);function Rs(e=!1,t,s,i){const n=this,{config:a,$el:{main:o}}=n,r=a.data_selection_grouped,l=a.data_selection_isselectable.bind(n.api);a.data_selection_enabled&&o.selectAll(`.${Q.shapes}`).selectAll(`.${Q.shape}`).each(function(c){const u=(0,w.select)(this),{id:d,index:h}=c.data?c.data:c,g=n.getToggle(this,c).bind(n),f=r||!t||t.indexOf(d)>=0,p=!s||s.indexOf(h)>=0,_=u.classed(q.SELECTED);u.classed(St.line)||u.classed(he.area)||(e?f&&p&&l(c)&&!_?g(!0,u.classed(q.SELECTED,!0),c,h):Y(i)&&i&&_&&g(!1,u.classed(q.SELECTED,!1),c,h):f&&p&&l(c)&&_&&g(!1,u.classed(q.SELECTED,!1),c,h))})}var Sa={selected(e){const t=this.internal,s=[];return t.$el.main.selectAll(`.${Q.shapes+t.getTargetSelectorSuffix(e)}`).selectAll(`.${Q.shape}`).filter(function(){return(0,w.select)(this).classed(q.SELECTED)}).each(i=>s.push(i)),s},select(e,t,s){const i=this.internal;Rs.bind(i)(!0,e,t,s)},unselect(e,t){const s=this.internal;Rs.bind(s)(!1,e,t)}};const Cs=function(e){var t;const s=this.internal,{axis:i,brush:n,config:a,scale:{x:o,subX:r},state:l}=s;let c;return a.subchart_show&&(c=e,Array.isArray(c)?(i.isTimeSeries()&&(c=c.map(d=>_t.bind(s)(d))),s.withinRange(c,s.getZoomDomain("subX",!0),s.getZoomDomain("subX"))&&(l.domain=c,n.move(n.getSelection(),c.map(r)))):c=(t=l.domain)!=null?t:o.orgDomain()),c};at(Cs,{show(){var e,t;const s=this.internal,{$el:{subchart:i},config:n}=s,a=n.subchart_show;if(!a){s.unbindZoomEvent(),n.subchart_show=!a,!i.main&&s.initSubchart();let o=i.main.selectAll(`.${I.target}`);s.data.targets.length!==o.size()&&(s.updateSizes(),s.updateTargetsForSubchart(s.data.targets),o=(e=i.main)==null?void 0:e.selectAll(`.${I.target}`)),o==null||o.style("opacity",null),(t=i.main)==null||t.style("display",null),this.resize()}},hide(){const e=this.internal,{$el:{subchart:{main:t}},config:s}=e;s.subchart_show&&(t==null?void 0:t.style("display"))!=="none"&&(s.subchart_show=!1,t.style("display","none"),this.resize())},toggle(){const e=this.internal,{config:t}=e;this.subchart[t.subchart_show?"hide":"show"]()},reset(){const e=this.internal,{brush:t}=e;t.clear(t.getSelection())}});var Ra={subchart:Cs},At=j(10);const Es=function(e){var t;const s=this.internal,{axis:i,config:n,org:a,scale:o,state:r}=s,l=i.isCategorized();let c;if(n.zoom_enabled)if(c=e,Array.isArray(c)){if(i.isTimeSeries()&&(c=c.map(d=>_t.bind(s)(d))),s.withinRange(c,s.getZoomDomain("zoom",!0),s.getZoomDomain("zoom"))){if(r.domain=c,c=s.getZoomDomainValue(c),s.api.tooltip.hide(),n.subchart_show){const d=o.zoom||o.x;s.brush.getSelection().call(s.brush.move,c.map(d))}else{const d=l?o.x.orgScale():a.xScale||o.x;s.updateCurrentZoomTransform(d,c)}s.setZoomResetButton()}}else c=s.zoom.getDomain();return(t=r.domain)!=null?t:c};at(Es,{enable(e){const t=this.internal,{config:s}=t;/^(drag|wheel)$/.test(e)&&(s.zoom_type=e),s.zoom_enabled=!!e,t.zoom?e===!1&&t.bindZoomEvent(!1):(t.initZoom(),t.bindZoomEvent()),t.updateAndRedraw()},max(e){const t=this.internal,{config:s,org:{xDomain:i}}=t;return(e===0||e)&&(s.zoom_x_max=vt("max",[i[1],e])),s.zoom_x_max},min(e){const t=this.internal,{config:s,org:{xDomain:i}}=t;return(e===0||e)&&(s.zoom_x_min=vt("min",[i[0],e])),s.zoom_x_min},range(e){const t=this.zoom;if(M(e)){const{min:s,max:i}=e;Y(s)&&t.min(s),Y(i)&&t.max(i)}return{min:t.min(),max:t.max()}}});var Ca={zoom:Es,unzoom(){const e=this.internal,{config:t,$el:{eventRect:s,zoomResetBtn:i},scale:{zoom:n},state:a}=e;n&&(t.subchart_show?e.brush.getSelection().call(e.brush.move,null):e.zoom.updateTransformScale(At.zoomIdentity),e.updateZoom(!0),i==null||i.style("display","none"),(0,At.zoomTransform)(s.node())!==At.zoomIdentity&&e.zoom.transform(s,At.zoomIdentity),a.domain=void 0)}},Ea={initBrush(){const e=this,{config:t,scale:s,$el:{subchart:i},state:n}=e,a=t.axis_rotated,o=t.subchart_size_height;let r,l,c;e.brush=(a?(0,fe.brushY)():(0,fe.brushX)()).handleSize(5),e.brush.on("start brush end",u=>{const{selection:d,sourceEvent:h,target:g,type:f}=u;f==="start"&&(e.state.inputType==="touch"&&e.hideTooltip(),l=h?d:null),/(start|brush)/.test(f)&&(f==="brush"&&h&&n.domain&&(l==null||l.forEach((p,_)=>{p!==d[_]&&(n.domain[_]=s.x.orgDomain()[_])})),e.redrawForBrush(f!=="start")),f==="end"&&(r=s.x.orgDomain()),g!=null&&g.handle&&(d===null?e.brush.handle.attr("display","none"):e.brush.handle.attr("display",null).attr("transform",(p,_)=>{const x=[d[_],o/2];return`translate(${a?x.reverse():x})`}))}),e.brush.updateResize=function(){c&&clearTimeout(c),c=setTimeout(()=>{const u=this.getSelection();r&&(0,fe.brushSelection)(u.node())&&this.move(u,r.map(s.subX.orgScale()))},0)},e.brush.update=function(){var u;return this.extent()()[1].filter(h=>isNaN(h)).length===0&&((u=i.main)==null||u.select(`.${X.brush}`).call(this)),this},e.brush.scale=function(u){const d=t.subchart_size_height;let h=e.getExtent();!h&&u.range?h=[[0,0],[u.range()[1],d]]:B(h)&&(h=h.map((g,f)=>[g,f>0?d:f])),a&&h[1].reverse(),this.extent(h),this.update()},e.brush.getSelection=()=>i.main?i.main.select(`.${X.brush}`):(0,w.select)([])},initSubchart(){const e=this,{config:t,state:{clip:s,hasAxis:i},$el:{defs:n,svg:a,subchart:o,axis:r}}=e;if(!i)return;const l=t.subchart_show?null:"hidden",c=`${s.id}-subchart`,u=e.getClipPath(c);s.idSubchart=c,e.appendClip(n,c),e.initBrush(),o.main=a.append("g").classed(X.subchart,!0).attr("transform",e.getTranslate("context"));const{main:d}=o;d.style("visibility",l),d.append("g").attr("clip-path",u).attr("class",X.chart),["bar","line","bubble","candlestick","scatter"].forEach(g=>{const f=gt(/^(bubble|scatter)$/.test(g)?"circle":g);if(e.hasType(g)||e.hasTypeOf(f)){const p=d.select(`.${X.chart}`),_=X[`chart${f}s`];p.select(`.${_}`).empty()&&p.append("g").attr("class",_)}});const h=d.append("g").attr("clip-path",u).attr("class",X.brush).call(e.brush);t.subchart_showHandle&&e.addBrushHandle(h),r.subX=d.append("g").attr("class",X.axisX).attr("transform",e.getTranslate("subX")).attr("clip-path",t.axis_rotated?"":s.pathXAxis).style("visibility",t.subchart_axis_x_show?l:"hidden")},addBrushHandle(e){const t=this,{config:s}=t,i=s.axis_rotated,n=s.subchart_init_range,a="handle--custom",o=i?["M8.5 0 a6 6 0 0 0 -6 -6.5 H-2.5 a 6 6 0 0 0 -6 6.5 z m-5 -2 H-3.5 m7 -2 H-3.5z","M8.5 0 a6 -6 0 0 1 -6 6.5 H-2.5 a 6 -6 0 0 1 -6 -6.5z m-5 2 H-3.5 m7 2 H-3.5z"]:["M0 -8.5 A6 6 0 0 0 -6.5 -3.5 V2.5 A6 6 0 0 0 0 8.5 Z M-2 -3.5 V3.5 M-4 -3.5 V3.5z","M0 -8.5 A6 6 0 0 1 6.5 -3.5 V2.5 A6 6 0 0 1 0 8.5 Z M2 -3.5 V3.5 M4 -3.5 V3.5z"];t.brush.handle=e.selectAll(`.${a}`).data(i?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",a).attr("cursor",`${i?"ns":"ew"}-resize`).attr("d",r=>o[+/[se]/.test(r.type)]).attr("display",n?null:"none")},updateTargetsForSubchart(e){const t=this,{config:s,state:i,$el:{subchart:{main:n}}}=t;s.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(a=>t.hasType(a)||t.hasTypeOf(gt(a))).forEach(a=>{const o=/^(bubble|scatter)$/.test(a),r=gt(o?"circle":a),l=t.getChartClass(r,!0),c=t.getClass(o?"circles":`${a}s`,!0),u=n.select(`.${X[`chart${`${r}s`}`]}`);if(o){const d=u.selectAll(`.${X.circles}`).data(e.filter(t[`is${gt(a)}Type`].bind(t))).attr("class",c);d.exit().remove(),d.enter().append("g").attr("class",c)}else{const d=u.selectAll(`.${X[`chart${r}`]}`).attr("class",l).data(e.filter(t[`is${r}Type`].bind(t))),h=d.enter().append("g").style("opacity","0").attr("class",l).append("g").attr("class",c);d.exit().remove(),a==="line"&&t.hasTypeOf("Area")&&h.append("g").attr("class",t.getClass("areas",!0))}}),n.selectAll(`.${X.brush} rect`).attr(s.axis_rotated?"width":"height",s.axis_rotated?i.width2:i.height2))},redrawSubchart(e,t,s){var i;const n=this,{config:a,$el:{subchart:{main:o}},state:r}=n,l=!!t;if(o.style("visibility",a.subchart_show?null:"hidden"),a.subchart_show&&(((i=r.event)==null?void 0:i.type)==="zoom"&&n.brush.update(),e)){const c=a.subchart_init_range;if(!rs(n)&&n.brush.update(),Object.keys(s.type).forEach(u=>{const d=gt(u),h=n[`generateDraw${d}`](s.indices[u],!0);n[`update${d}`](l,!0),n[`redraw${d}`](h,l,!0)}),n.hasType("bubble")||n.hasType("scatter")){const{cx:u}=s.pos,d=n.updateCircleY(!0);n.updateCircle(!0),n.redrawCircle(u,d,l,void 0,!0)}!r.rendered&&c&&(r.domain=c,n.brush.move(n.brush.getSelection(),c.map(n.scale.x)))}},redrawForBrush(e=!0){var t;const s=this,{config:{subchart_onbrush:i,zoom_rescale:n},scale:a,state:o}=s;s.redraw({withTransition:!1,withY:n,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),e&&o.rendered&&i.bind(s.api)((t=o.domain)!=null?t:a.x.orgDomain())},transformContext(e,t){const s=this,{$el:{subchart:i},$T:n}=s,a=t!=null&&t.axisSubX?t.axisSubX:n(i.main.select(`.${X.axisX}`),e);i.main.attr("transform",s.getTranslate("context")),a.attr("transform",s.getTranslate("subX"))},getExtent(){const e=this,{config:t,scale:s}=e;let i=t.axis_x_extent;if(i){if(L(i))i=i.bind(e.api)(e.getXDomain(e.data.targets),s.subX);else if(e.axis.isTimeSeries()&&i.every(isNaN)){const n=_t.bind(e);i=i.map(a=>s.subX(n(a)))}}return i}},ka={initZoom(){const e=this;e.scale.zoom=null,e.generateZoom(),e.initZoomBehaviour()},bindZoomEvent(e=!0){const t=this,{config:s}=t;s.zoom_enabled&&e?!s.subchart_show&&t.bindZoomOnEventRect():e===!1&&(t.api.unzoom(),t.unbindZoomEvent())},generateZoom(){const e=this,{config:t,org:s,scale:i}=e,n=(0,At.zoom)().duration(0).on("start",e.onZoomStart.bind(e)).on("zoom",e.onZoom.bind(e)).on("end",e.onZoomEnd.bind(e));n.orgScaleExtent=()=>{const a=t.zoom_extent||[1,10];return[a[0],Math.max(e.getMaxDataCount()/a[1],a[1])]},n.updateScaleExtent=function(){const a=Xt(e.scale.x.orgDomain())/Xt(e.getZoomDomain()),o=this.orgScaleExtent();return this.scaleExtent([o[0]*a,o[1]*a]),this},n.updateTransformScale=(a,o)=>{var r;const l=t.axis_rotated;(r=s.xScale)==null||r.range(i.x.range());const c=a[l?"rescaleY":"rescaleX"](s.xScale||i.x),u=e.trimXDomain(c.domain()),d=t.zoom_rescale;if(c.domain(u,s.xDomain),o){const h=c(i.x.domain()[0]),g=l?a.x:h,f=l?h:a.y;e.$el.eventRect.property("__zoom",At.zoomIdentity.translate(g,f).scale(a.k))}e.state.xTickOffset||(e.state.xTickOffset=e.axis.x.tickOffset()),i.zoom=e.getCustomizedXScale(c),e.axis.x.scale(i.zoom),d?(!s.xScale&&(s.xScale=i.x.copy()),i.x.domain(u)):s.xScale&&(i.x.domain(s.xScale.domain()),s.xScale=null)},n.getDomain=()=>{const a=i[i.zoom?"zoom":"subX"].domain();return e.axis.isCategorized()&&(a[1]-=2),a},e.zoom=n},onZoomStart(e){const t=this,{sourceEvent:s}=e;s&&(t.zoom.startEvent=s,t.state.zooming=!0,Z(t.config.zoom_onzoomstart,t.api,e))},onZoom(e){var t;const s=this,{config:i,scale:n,state:a,org:o}=s,{sourceEvent:r}=e,l=(e==null?void 0:e.transform)===At.zoomIdentity;if(!i.zoom_enabled||s.filterTargetsToShow(s.data.targets).length===0||!n.zoom&&(r==null?void 0:r.type.indexOf("touch"))>-1&&(r==null?void 0:r.touches.length)===1)return;e.sourceEvent&&(a.zooming=!0,a.domain=void 0);const c=(r==null?void 0:r.type)==="mousemove",u=(r==null?void 0:r.wheelDelta)<0,{transform:d}=e;!c&&u&&n.x.domain().every((g,f)=>g!==o.xDomain[f])&&n.x.domain(o.xDomain),s.zoom.updateTransformScale(d,i.zoom_type==="wheel"&&r);const h=i.transition_duration>0&&!i.subchart_show&&(a.dragging||l||!e.sourceEvent);s.redraw({withTransition:h,withY:i.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),s.state.cancelClick=c,!l&&Z(i.zoom_onzoom,s.api,(t=s.state.domain)!=null?t:s.zoom.getDomain())},onZoomEnd(e){var t,s;const i=this,{config:n,state:a}=i;let{startEvent:o}=i.zoom,r=e==null?void 0:e.sourceEvent;const l=(e==null?void 0:e.transform)===At.zoomIdentity;(o==null?void 0:o.type.indexOf("touch"))>-1&&(o=o.changedTouches[0],r=(t=r==null?void 0:r.changedTouches)==null?void 0:t[0]),!(n.zoom_type==="drag"&&r&&o.clientX===r.clientX&&o.clientY===r.clientY)&&(a.zooming=!1,i.redrawEventRect(),i.updateZoom(),!l&&(r||a.dragging)&&Z(n.zoom_onzoomend,i.api,(s=i.state.domain)!=null?s:i.zoom.getDomain()))},updateZoom(e){const t=this,{subX:s,x:i,zoom:n}=t.scale;if(n){const a=n.domain(),o=s.domain(),r=.015,l=t.config.axis_x_inverted?(a[0]>=o[0]||a[0]+r>=o[0])&&(o[1]>=a[1]||o[1]>=a[1]+r):(a[0]<=o[0]||a[0]-r<=o[0])&&(o[1]<=a[1]||o[1]<=a[1]-r);(e||l)&&(t.axis.x.scale(s),i.domain(s.orgDomain()),t.scale.zoom=null)}},updateCurrentZoomTransform(e,t){const s=this,{$el:{eventRect:i},config:n}=s,a=n.axis_rotated,o=[-e(t[0]),0],r=At.zoomIdentity.scale(e.range()[1]/(e(t[1])-e(t[0]))).translate(...a?o.reverse():o);i.call(s.zoom.transform,r)},bindZoomOnEventRect(){const e=this,{config:t,$el:{eventRect:s}}=e,i=t.zoom_type==="drag"?e.zoomBehaviour:e.zoom;s==null||s.call(i).on("dblclick.zoom",null)},initZoomBehaviour(){const e=this,{config:t,state:s}=e,i=t.axis_rotated;let n=0,a=0,o;const r={axis:i?"y":"x",attr:i?"height":"width",index:i?1:0};e.zoomBehaviour=(0,ys.drag)().clickDistance(4).on("start",function(l){s.event=l,e.setDragStatus(!0),e.unselectRect(),o||(o=e.$el.main.append("rect").attr("clip-path",s.clip.path).attr("class",Re.zoomBrush).attr("width",i?s.width:0).attr("height",i?0:s.height)),n=mt(l,this)[r.index],a=n,o.attr(r.axis,n).attr(r.attr,0),e.onZoomStart(l)}).on("drag",function(l){a=mt(l,this)[r.index],o.attr(r.axis,Math.min(n,a)).attr(r.attr,Math.abs(a-n))}).on("end",l=>{const c=e.scale.zoom||e.scale.x;s.event=l,o.attr(r.axis,0).attr(r.attr,0),n>a&&([n,a]=[a,n]),n<0&&(a+=Math.abs(n),n=0),n!==a&&e.api.zoom([n,a].map(u=>c.invert(u))),e.setDragStatus(!1)})},setZoomResetButton(){const e=this,{config:t,$el:s}=e,i=t.zoom_resetButton;i&&t.zoom_type==="drag"&&(s.zoomResetBtn?s.zoomResetBtn.style("display",null):s.zoomResetBtn=e.$el.chart.append("div").classed(I.button,!0).append("span").on("click",function(){L(i.onclick)&&i.onclick.bind(e.api)(this),e.api.unzoom()}).classed(Re.buttonZoomReset,!0).text(i.text||"Reset Zoom"))},getZoomTransform(){const e=this,{$el:{eventRect:t}}=e;return t!=null&&t.node()?(0,At.zoomTransform)(t.node()):{k:1}}},La={drag(e){const t=this,{config:s,state:i,$el:{main:n}}=t,a=s.data_selection_grouped,o=s.interaction_enabled&&s.data_selection_isselectable;if(t.hasArcType()||!s.data_selection_enabled||s.zoom_enabled&&!t.zoom.altDomain||!s.data_selection_multiple)return;const[r,l]=i.dragStart||[0,0],[c,u]=e,d=Math.min(r,c),h=Math.max(r,c),g=a?i.margin.top:Math.min(l,u),f=a?i.height:Math.max(l,u);n.select(`.${Mt.dragarea}`).attr("x",d).attr("y",g).attr("width",h-d).attr("height",f-g),n.selectAll(`.${Q.shapes}`).selectAll(`.${Q.shape}`).filter(p=>o==null?void 0:o.bind(t.api)(p)).each(function(p,_){const x=(0,w.select)(this),m=x.classed(q.SELECTED),b=x.classed(Mt.INCLUDED);let y=!1,v;if(x.classed(ct.circle)){const $=+x.attr("cx")*1,T=+x.attr("cy")*1;v=t.togglePoint,y=d<$&&$t in e?Pa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Fa=(e,t)=>{for(var s in t||(t={}))Da.call(t,s)&&Ls(e,s,t[s]);if(ks)for(var s of ks(t))za.call(t,s)&&Ls(e,s,t[s]);return e},Ma=(e,t)=>Oa(e,Ia(t)),Xa=Ma(Fa({},La),{selectPoint(e,t,s){const i=this,{config:n,$el:{main:a},$T:o}=i,r=n.axis_rotated,l=(r?i.circleY:i.circleX).bind(i),c=(r?i.circleX:i.circleY).bind(i),u=i.pointSelectR.bind(i);Z(n.data_onselected,i.api,t,e.node()),o(a.select(`.${q.selectedCircles}${i.getTargetSelectorSuffix(t.id)}`).selectAll(`.${q.selectedCircle}-${s}`).data([t]).enter().append("circle").attr("class",()=>i.generateClass(q.selectedCircle,s)).attr("cx",l).attr("cy",c).attr("stroke",i.color).attr("r",d=>i.pointSelectR(d)*1.4)).attr("r",u)},unselectPoint(e,t,s){const i=this,{config:n,$el:{main:a},$T:o}=i;Z(n.data_onunselected,i.api,t,e==null?void 0:e.node()),o(a.select(`.${q.selectedCircles}${i.getTargetSelectorSuffix(t.id)}`).selectAll(`.${q.selectedCircle}-${s}`)).attr("r",0).remove()},togglePoint(e,t,s,i){this[`${e?"":"un"}selectPoint`](t,s,i)},selectPath(e,t){const s=this,{config:i}=s;Z(i.data_onselected,s.api,t,e.node()),i.interaction_brighten&&e.style("filter","brightness(1.25)")},unselectPath(e,t){const s=this,{config:i}=s;Z(i.data_onunselected,s.api,t,e.node()),i.interaction_brighten&&e.style("filter",null)},togglePath(e,t,s,i){this[`${e?"":"un"}selectPath`](t,s,i)},getToggle(e,t){const s=this;return e.nodeName==="path"?s.togglePath:s.isStepType(t)?()=>{}:s.togglePoint},toggleShape(e,t,s){var i;const n=this,{config:a,$el:{main:o}}=n;if(a.data_selection_enabled&&a.data_selection_isselectable.bind(n.api)(t)){const r=(0,w.select)(e),l=r.classed(q.SELECTED),c=n.getToggle(e,t).bind(n);let u;if(!a.data_selection_multiple){const d=(i=n.isPointFocusOnly)==null?void 0:i.call(n);let h=`.${d?q.selectedCircles:Q.shapes}`;a.data_selection_grouped&&(h+=n.getTargetSelectorSuffix(t.id)),o.selectAll(h).selectAll(d?`.${q.selectedCircle}`:`.${Q.shape}.${q.SELECTED}`).classed(q.SELECTED,!1).each(function(g){const f=(0,w.select)(this);u=f,c(!1,f,g,g.index)})}(!u||u.node()!==r.node())&&(r.classed(q.SELECTED,!l),c(!l,r,t,s))}}}),Ba={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:()=>!0,data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:()=>{},data_onunselected:()=>{}},Na={subchart_show:!1,subchart_showHandle:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_format:void 0,subchart_axis_x_tick_text_show:!0,subchart_init_range:void 0,subchart_onbrush:()=>{}},Ga={zoom_enabled:!1,zoom_type:"wheel",zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:void 0,zoom_onzoomstart:void 0,zoom_onzoomend:void 0,zoom_resetButton:!0,zoom_x_min:void 0,zoom_x_max:void 0};let Ps=()=>(at(Vt.prototype,Xa),at(Dt.prototype,Sa),Nt.setOptions([Ba]),(Ps=()=>!0)()),Os=()=>(at(Vt.prototype,Ea),at(Dt.prototype,Ra),Nt.setOptions([Na]),(Os=()=>!0)()),Is=()=>(at(Vt.prototype,ka),at(Dt.prototype,Ca),Nt.setOptions([Ga]),(Is=()=>!0)());function Ds(e,t,s){const{config:i}=e,n=(a,o)=>{const r=k(o)?o:o===!1?void 0:null;r!==null&&(i[`axis_${a}_${t}`]=r)};Y(s)&&(Tt(s)?Object.keys(s).forEach(a=>{n(a,s[a])}):(k(s)||s===!1)&&["y","y2"].forEach(a=>{n(a,s)}),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function zs(e,t){const{config:s}=e;return{x:s[`axis_x_${t}`],y:s[`axis_y_${t}`],y2:s[`axis_y2_${t}`]}}var Va={axis:{labels:function(e){const t=this.internal;let s;return e&&(Object.keys(e).forEach(i=>{t.axis.setLabelText(i,e[i])}),t.axis.updateLabels()),["x","y","y2"].forEach(i=>{const n=t.axis.getLabelText(i);n&&(!s&&(s={}),s[i]=n)}),s},min:function(e){const t=this.internal;return z(e)||e===!1?Ds(t,"min",e):zs(t,"min")},max:function(e){const t=this.internal;return z(e)||e===!1?Ds(t,"max",e):zs(t,"max")},range:function(e){const{axis:t}=this;if(arguments.length){const{min:s,max:i}=e;Y(i)&&t.max(i),Y(s)&&t.min(s)}else return{max:t.max(),min:t.min()}}}},Ya={category(e,t){const s=this.internal,{config:i}=s;return arguments.length>1&&(i.axis_x_categories[e]=t,s.redraw()),i.axis_x_categories[e]},categories(e){const t=this.internal,{config:s}=t;if(!e||!Array.isArray(e)){const i=s.axis_x_categories;return bt(i)?Object.values(t.data.xs)[0]:i}return s.axis_x_categories=e,t.redraw(),s.axis_x_categories}},ja={flow(e){const t=this.internal;let s;(e.json||e.rows||e.columns)&&t.convertData(e,n=>{s=n,i()});function i(){let n,a=0,o=0,r,l;if(t.state.redrawing||!s||!re())return;const c=[],u=t.getMaxDataCount(),d=t.convertDataToTargets(s,!0),h=t.axis.isTimeSeries();t.data.targets.forEach(p=>{let _=!1;for(let x=0;x{for(let _=0;_{const _=[];for(let x=t.data.targets[0].values[0].index;x{x.index+=o,h||(x.x+=o)}),p.values=_.concat(p.values)}),t.data.targets=t.data.targets.concat(d);const g=t.data.targets[0],f=g.values[0];Y(e.to)?(a=0,l=h?_t.call(t,e.to):e.to,g.values.forEach(p=>{p.x1?g.values[g.values.length-1].x-f.x:f.x-t.getXDomain(t.data.targets)[0]:r=1,n=[f.x-r,f.x]),n&&t.updateXDomain(null,!0,!0,!1,n),t.updateTargets(t.data.targets),t.redraw({flow:{index:f.index,length:a,duration:z(e.duration)?e.duration:t.config.transition_duration,done:e.done,orgDataCount:u},withLegend:!0,withTransition:u>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function Be(e,t){const s=this.internal,{config:i}=s,n=i.transition_duration&&re(),a=`grid_${t}_lines`;return e&&(i[a]=e,s.updateGrid(),s.redrawGrid(n)),i[a]}function Fs(e,t){const s=`grid_${t}_lines`;return Be.bind(this)(this.internal.config[s].concat(e||[]),t)}function Ms(e,t){this.internal.removeGridLines(e,t)}const Xs=function(e){return Be.bind(this)(e,"x")};at(Xs,{add(e){return Fs.bind(this)(e,"x")},remove(e){return Ms.bind(this)(e,!0)}});const Bs=function(e){return Be.bind(this)(e,"y")};at(Bs,{add(e){return Fs.bind(this)(e,"y")},remove(e){return Ms.bind(this)(e,!1)}});var Ha={xgrids:Xs,ygrids:Bs},Wa={groups(e){const t=this.internal,{config:s}=t;return tt(e)||(s.data_groups=e,t.redraw()),s.data_groups}};function Ns(e,t=!1){const s=this.internal,{config:i}=s,n=i.transition_duration&&re();return e?(i.regions=t?i.regions.concat(e):e,s.updateRegion(),s.redrawRegion(n),t?i.regions:e):i.regions}const Gs=function(e){return Ns.bind(this)(e)};at(Gs,{add:function(e){return Ns.bind(this)(e,!0)},remove:function(e){const t=this.internal,{config:s,$T:i}=t,n=e||{},a=Pt(n,"classes",[ae.region]);let o=t.$el.main.select(`.${ae.regions}`).selectAll(a.map(r=>`.${r}`));return i(o).style("opacity","0").remove(),o=s.regions,Object.keys(n).length?(o=o.filter(r=>{let l=!1;return r.class?(r.class.split(" ").forEach(c=>{a.indexOf(c)>=0&&(l=!0)}),!l):!0}),s.regions=o):s.regions=[],o}});var Ua={regions:Gs},Za={x(e){const t=this.internal,{axis:s,data:i}=t,n=s.isCustomX()&&s.isCategorized();return B(e)&&(n?this.categories(e):(t.updateTargetX(i.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),n?this.categories():i.xs},xs(e){const t=this.internal;return M(e)&&(t.updateTargetXs(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs}},qt=j(11),qa=Object.defineProperty,Ka=(e,t,s)=>t in e?qa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ne=(e,t,s)=>Ka(e,typeof t!="symbol"?t+"":t,s);class Vs{constructor(t){Ne(this,"owner"),Ne(this,"config"),Ne(this,"scale");const s=Gt(),{config:i,params:n}=t;this.owner=t,this.config=i,this.scale=s,(i.noTransition||!n.config.transition_duration)&&(i.withoutTransition=!0),i.range=this.scaleExtent((n.orgXScale||s).range())}static getSizeFor1Char(t){const s={w:5.5,h:11.5};return!t.empty()&&t.select("text").text("0").call(i=>{try{const{width:n,height:a}=i.node().getBBox();n&&a&&(s.w=n,s.h=a)}catch(n){}finally{i.text("")}}),this.getSizeFor1Char=()=>s,s}getTickTransformSetter(t){const{config:s}=this,i=t==="x"?n=>`translate(${n+s.tickOffset},0)`:n=>`translate(0,${n})`;return(n,a)=>{n.attr("transform",o=>z(o)?i(Math.ceil(a(o))):null)}}scaleExtent(t){const s=t[0],i=t[t.length-1];return s0?n:1,a]).range(t.range());o=l.ticks();for(let c=a.toFixed().length;o.length>15;c--)o=l.ticks(c);o.splice(0,1,n),o.splice(o.length-1,1,a)}else o=t.ticks(...this.config.tickArguments||[]);o=o.map(l=>G(l)&&k(l)&&!isNaN(l)&&Math.round(l*10)/10||l)}return o}copyScale(){const t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t}textFormatted(t){const s=this.config.tickFormat,i=/\d+\.\d+0{5,}\d$/.test(t)?+String(t).replace(/0+\d$/,""):t,n=s?s(i):i;return Y(n)?n:""}transitionise(t){const{config:s}=this;let i=t;if(s.withoutTransition)i=t.interrupt();else if(s.transition||!this.owner.params.noTransition)try{i=t.transition(s.transition)}catch(n){}return i}}var Ja=Object.defineProperty,Qa=(e,t,s)=>t in e?Ja(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,le=(e,t,s)=>Qa(e,typeof t!="symbol"?t+"":t,s);class to{constructor(t={}){le(this,"helper"),le(this,"config"),le(this,"params"),le(this,"g"),le(this,"generatedTicks");const s={innerTickSize:6,outerTickSize:t.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:t.noTransition};s.tickLength=Math.max(s.innerTickSize,0)+s.tickPadding,this.config=s,this.params=t,this.helper=new Vs(this)}create(t){const s=this,{config:i,helper:n,params:a}=s,{scale:o}=n,{orient:r}=i,l=this.splitTickText.bind(s),c=/^(left|right)$/.test(r),u=/^(top|bottom)$/.test(r),d=n.getTickTransformSetter(u?"x":"y"),h=d===n.axisX?"y":"x",g=/^(top|left)$/.test(r)?-1:1,f=a.tickTextRotate;this.config.range=o.rangeExtent?o.rangeExtent():n.scaleExtent((a.orgXScale||o).range());const{innerTickSize:p,tickLength:_,range:x}=i,m=a.id,b=m&&/^(x|y|y2)$/.test(m)?a.config[`axis_${m}_tick_text_position`]:{x:0,y:0},y=m==="subX"?"subchart_axis_x":`axis_${m}`,v=a.config[`${y}_show`],$={tick:v?a.config[`${y}_tick_show`]:!1,text:v?a.config[`${y}_tick_text_show`]:!1};let T;t.each(function(){const S=(0,w.select)(this);let A=this.__chart__||o,R=n.copyScale();T=S,this.__chart__=R,i.tickOffset=a.isCategory?Math.ceil((R(1)-R(0))/2):0;const P=S.selectAll(".domain").data([0]);if(P.enter().append("path").attr("class","domain").merge(P).attr("d",()=>{const F=i.outerTickSize*g;return u?`M${x[0]},${F}V0H${x[1]}V${F}`:`M${F},${x[0]}H0V${x[1]}H${F}`}),$.tick||$.text){const F=i.tickValues||n.generateTicks(R,c);s.generatedTicks=F;let E=S.selectAll(".tick").data(F,R);const D=E.enter().insert("g",".domain").attr("class","tick"),nt=E.exit().remove();E=D.merge(E),$.tick&&D.append("line"),$.text&&D.append("text");const ot=Vs.getSizeFor1Char(E),ht=[];let zt=E.select("text").selectAll("tspan").data((rt,Ft)=>{const jt=a.tickMultiline?l(rt,R,F,c,ot.w):B(n.textFormatted(rt))?n.textFormatted(rt).concat():[n.textFormatted(rt)];return ht[Ft]=jt.length,jt.map(Ht=>({index:Ft,splitted:Ht}))});zt.exit().remove(),zt=zt.enter().append("tspan").merge(zt).text(rt=>rt.splitted),zt.attr("x",u?0:_*g).attr("dx",(()=>{let rt=0;return/(top|bottom)/.test(r)&&f&&(rt=8*Math.sin(Math.PI*(f/180))*(r==="top"?-1:1)),rt+(b.x||0)})()).attr("dy",(rt,Ft)=>{const jt=".71em";let Ht=0;return r!=="top"&&(Ht=ot.h,Ft===0&&(Ht=c?-((ht[rt.index]-1)*(ot.h/2)-3):b.y===0?jt:0)),k(Ht)&&b.y?Ht+b.y:Ht||jt});const ki=E.select("line"),He=E.select("text");if(D.select("line").attr(`${h}2`,p*g),D.select("text").attr(h,_*g),s.setTickLineTextPosition(ki,He),a.tickTitle){const rt=He.select("title");(rt.empty()?He.append("title"):rt).text(Ft=>a.tickTitle[Ft])}if(R.bandwidth){const rt=R,Ft=rt.bandwidth()/2;A=jt=>rt(jt)+Ft,R=A}else A.bandwidth?A=R:d(nt,R);E=a.owner.state.flowing?n.transitionise(E):a.owner.$T(E),d(D,A),d(E.style("opacity",null),R)}}),this.g=T}getGeneratedTicks(t){var s;const i=((s=this.generatedTicks)==null?void 0:s.length)-1;let n=this.generatedTicks;if(i>t){const a=Math.round(i/t+.1);n=this.generatedTicks.map((o,r)=>r%a===0?o:null).filter(o=>o!==null).splice(0,t)}return n}getTickXY(){const{config:t}=this,s={x:0,y:0};return this.params.isCategory&&(s.x=t.tickCentered?0:t.tickOffset,s.y=t.tickCentered?t.tickOffset:0),s}getTickSize(t){const{scale:s}=this.helper,{config:i}=this,{innerTickSize:n,range:a}=i,o=s(t)+(i.tickCentered?0:i.tickOffset);return a[0]{const p=["start","end"];return a==="top"&&p.reverse(),f?p[f>0?0:1]:"middle"},u=f=>f?`rotate(${f})`:null,d=f=>{const p=f/(a==="bottom"?15:23);return f?11.5-2.5*p*(f>0?1:-1):o},{config:{axis_rotated:h,axis_x_tick_text_inner:g}}=this.params.owner;switch(a){case"bottom":t.attr("x1",i.x).attr("x2",i.x).attr("y2",this.getTickSize.bind(this)),s.attr("x",0).attr("y",d(l)).style("text-anchor",c(l)).style("text-anchor",(f,p,{length:_})=>!h&&p===0&&(g===!0||g.first)?"start":!h&&p===_-1&&(g===!0||g.last)?"end":c(l)).attr("transform",u(l));break;case"top":t.attr("x2",0).attr("y2",-n),s.attr("x",0).attr("y",-d(l)*2).style("text-anchor",c(l)).attr("transform",u(l));break;case"left":t.attr("x2",-n).attr("y1",i.y).attr("y2",i.y),s.attr("x",-o).attr("y",r).style("text-anchor","end");break;case"right":t.attr("x2",n).attr("y2",0),s.attr("x",o).attr("y",0).style("text-anchor","start")}}splitTickText(t,s,i,n,a){const{params:o}=this,r=this.helper.textFormatted(t),l=G(r)&&r.indexOf(` + `;return`data:image/svg+xml;base64,${ga(d)}`}function pa(e,t){const{top:s,left:i}=t,{x:n,y:a}=e.getBBox(),{a:o,b:r,c:l,d:c,e:u,f:d}=e.getScreenCTM(),{width:h,height:g}=e.getBoundingClientRect();return{x:o*n+l*a+u-i,y:r*n+c*a+d-s+(g-Math.round(g/4)),width:h,height:g}}function xa(e){const{left:t,top:s}=e.getBoundingClientRect(),i=a=>a.textContent||a.childElementCount,n=[];return Gt(e.querySelectorAll("text")).filter(i).forEach(a=>{const o=r=>{const{fill:l,fontFamily:c,fontSize:u,textAnchor:d,transform:h}=q.getComputedStyle(r),{x:g,y:f,width:p,height:_}=pa(r,{left:t,top:s});return{[r.textContent]:{x:g,y:f,width:p,height:_,fill:l,fontFamily:c,fontSize:u,textAnchor:d,transform:h}}};if(a.childElementCount>1){const r=[];return Gt(a.querySelectorAll("tspan")).filter(i).forEach(l=>{n.push(o(l))}),r}else n.push(o(a))}),n}function _a(e,t){t.forEach(s=>{Object.keys(s).forEach(i=>{const{x:n,y:a,width:o,height:r,fill:l,fontFamily:c,fontSize:u,transform:d}=s[i];if(e.save(),e.font=`${u} ${c}`,e.fillStyle=l,d==="none")e.fillText(i,n,a);else{const h=d.replace(/(matrix|\(|\))/g,"").split(",");h.splice(4).every(g=>+g==0)?(h.push(n+o-o/4),h.push(a-r+r/3)):(h.push(n),h.push(a)),e.transform(...h),e.fillText(i,0,0)}e.restore()})})}var ma={export(e,t){const s=this.internal,{state:i,$el:{chart:n,svg:a}}=s,{width:o,height:r}=i.current,l=qt({width:o,height:r,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},e),c=fa(n.node(),l,{width:o,height:r}),u=l.preserveFontStyle?xa(a.node()):[];if(t&&P(t)){const d=new Image;d.crossOrigin="Anonymous",d.onload=()=>{const h=lt.createElement("canvas"),g=h.getContext("2d");h.width=l.width||o,h.height=l.height||r,g.drawImage(d,0,0),u.length&&(_a(g,u),u.length=0),t.bind(this)(h.toDataURL(l.mimeType))},d.src=c}return c}},$a={focus(e){const t=this.internal,{state:s}=t,i=t.mapToTargetIds(e),n=t.$el.svg.selectAll(t.selectorTargets(i.filter(t.isTargetToShow,t)));this.revert(),this.defocus(),n.classed(Z.focused,!0).classed(Z.defocused,!1),t.hasArcType()&&!s.hasRadar&&(t.expandArc(i),t.hasType("gauge")&&t.markOverlapped(e,t,`.${_t.gaugeValue}`)),t.toggleFocusLegend(i,!0),s.focusedTargetIds=i,s.defocusedTargetIds=s.defocusedTargetIds.filter(a=>i.indexOf(a)<0)},defocus(e){const t=this.internal,{state:s}=t,i=t.mapToTargetIds(e);t.$el.svg.selectAll(t.selectorTargets(i.filter(t.isTargetToShow,t))).classed(Z.focused,!1).classed(Z.defocused,!0),t.hasArcType(null,["polar"])&&(t.unexpandArc(i),t.hasType("gauge")&&t.undoMarkOverlapped(t,`.${_t.gaugeValue}`)),t.toggleFocusLegend(i,!1),s.focusedTargetIds=s.focusedTargetIds.filter(a=>i.indexOf(a)<0),s.defocusedTargetIds=i},revert(e){const t=this.internal,{config:s,state:i,$el:n}=t,a=t.mapToTargetIds(e);n.svg.selectAll(t.selectorTargets(a)).classed(Z.focused,!1).classed(Z.defocused,!1),t.hasArcType(null,["polar"])&&t.unexpandArc(a),s.legend_show&&(t.showLegend(a.filter(t.isLegendToShow.bind(t))),n.legend.selectAll(t.selectorLegends(a)).filter(function(){return(0,S.select)(this).classed(Z.legendItemFocused)}).classed(Z.legendItemFocused,!1)),i.focusedTargetIds=[],i.defocusedTargetIds=[]}},ya={legend:{show:function(e){const t=this.internal;t.showLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},hide:function(e){const t=this.internal;t.hideLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})}}},ba={load(e){const t=this.internal,{config:s}=t;e.xs&&t.addXs(e.xs),"names"in e&&this.data.names(e.names),"classes"in e&&Object.keys(e.classes).forEach(i=>{s.data_classes[i]=e.classes[i]}),"categories"in e&&t.axis.isCategorized()&&(s.axis_x_categories=e.categories),"axes"in e&&Object.keys(e.axes).forEach(i=>{s.data_axes[i]=e.axes[i]}),"colors"in e&&Object.keys(e.colors).forEach(i=>{s.data_colors[i]=e.colors[i]}),"unload"in e&&e.unload!==!1?t.unload(t.mapToTargetIds(e.unload===!0?null:e.unload),()=>{es(()=>t.loadFromArgs(e))}):t.loadFromArgs(e)},unload(e){const t=this.internal;let s=e||{};Tt(s)&&this.tooltip.hide(),N(s)?s={ids:s}:V(s)&&(s={ids:[s]});const i=t.mapToTargetIds(s.ids);t.unload(i,()=>{t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),t.cache.remove(i),ys.call(t,s.done,s.resizeAfter)})}};function Ss(e,t,s){const i=this.internal,n=i.mapToTargetIds(t),a=i.state.hiddenTargetIds.map(l=>n.indexOf(l)>-1&&l).filter(Boolean);i.state.toggling=!0,i[`${e?"remove":"add"}HiddenTargetIds`](n);const o=i.$el.svg.selectAll(i.selectorTargets(n)),r=e?null:"0";e&&a.length&&(o.style("display",null),K(i.config.data_onshown,this,a)),i.$T(o).style("opacity",r,"important").call(me,()=>{!e&&a.length===0&&(o.style("display","none"),K(i.config.data_onhidden,this,n)),o.style("opacity",r)}),s.withLegend&&i[`${e?"show":"hide"}Legend`](n),i.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),i.state.toggling=!1}var va={show(e,t={}){Ss.call(this,!0,e,t)},hide(e,t={}){Ss.call(this,!1,e,t)},toggle(e,t={}){const s=this.internal,i={show:[],hide:[]};s.mapToTargetIds(e).forEach(n=>i[s.isTargetToShow(n)?"hide":"show"].push(n)),i.show.length&&this.show(i.show,t),i.hide.length&&setTimeout(()=>this.hide(i.hide,t),0)}},Ta={tooltip:{show:function(e){var t,s,i;const n=this.internal,{$el:a,config:o,state:{eventReceiver:r,hasFunnel:l,hasTreemap:c,inputType:u}}=n;let d,h;if(e.mouse&&(h=e.mouse),e.data){const{data:g}=e,f=(t=n.getYScaleById(g.id))==null?void 0:t(g.value);if((l||c)&&g.id){const p=n.selectorTarget(g.id,void 0,`.${st.shape}`);r.rect=a.main.select(p)}else n.isMultipleX()?h=[n.xx(g),f]:(o.tooltip_grouped||(h=[0,f]),d=(i=g.index)!=null?i:n.hasArcType()&&g.id?(s=n.getArcElementByIdOrIndex(g.id))==null?void 0:s.datum().index:n.getIndexByX(g.x))}else H(e.x)?d=n.getIndexByX(e.x):H(e.index)&&(d=e.index);(u==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(g=>{n.dispatchEvent(g,d,h)})},hide:function(){var e,t,s;const i=this.internal,{state:{inputType:n},$el:{tooltip:a}}=i,o=a==null?void 0:a.datum();if(o){const{index:r}=JSON.parse(o.current)[0];(n==="mouse"?["mouseout"]:["touchend"]).forEach(l=>{i.dispatchEvent(l,r)})}n==="touch"&&i.callOverOutForTouch(),i.hideTooltip(!0),(e=i.hideGridFocus)==null||e.call(i),(t=i.unexpandCircles)==null||t.call(i),(s=i.expandBarTypeShapes)==null||s.call(i,!1)}}},Aa=Object.defineProperty,wa=(e,t,s)=>t in e?Aa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Rs=(e,t,s)=>wa(e,typeof t!="symbol"?t+"":t,s);class Xt{constructor(t){Rs(this,"plugins",[]),Rs(this,"internal");const s=new jt(this);this.internal=s,function i(n,a,o){Object.keys(n).forEach(r=>{const l=P(n[r]),c=a!==o,u=nt(n[r]),d=u&&Object.keys(n[r]).length>0;l&&(!c&&d||c)?a[r]=n[r].bind(o):u&&!l?a[r]={}:a[r]=n[r],d&&i(n[r],a[r],o)})}(Xt.prototype,this,this),ca.call(s,t),s.beforeInit(),s.init()}}ct(Xt.prototype,[da,ua,ha,ma,$a,ya,ba,va,Ta]);function Cs(e=!1,t,s,i){const n=this,{config:a,$el:{main:o}}=n,r=a.data_selection_grouped,l=a.data_selection_isselectable.bind(n.api);a.data_selection_enabled&&o.selectAll(`.${st.shapes}`).selectAll(`.${st.shape}`).each(function(c){const u=(0,S.select)(this),{id:d,index:h}=c.data?c.data:c,g=n.getToggle(this,c).bind(n),f=r||!t||t.indexOf(d)>=0,p=!s||s.indexOf(h)>=0,_=u.classed(J.SELECTED);u.classed(kt.line)||u.classed(fe.area)||(e?f&&p&&l(c)&&!_?g(!0,u.classed(J.SELECTED,!0),c,h):H(i)&&i&&_&&g(!1,u.classed(J.SELECTED,!1),c,h):f&&p&&l(c)&&_&&g(!1,u.classed(J.SELECTED,!1),c,h))})}var Sa={selected(e){const t=this.internal,s=[];return t.$el.main.selectAll(`.${st.shapes+t.getTargetSelectorSuffix(e)}`).selectAll(`.${st.shape}`).filter(function(){return(0,S.select)(this).classed(J.SELECTED)}).each(i=>s.push(i)),s},select(e,t,s){const i=this.internal;Cs.bind(i)(!0,e,t,s)},unselect(e,t){const s=this.internal;Cs.bind(s)(!1,e,t)}};const Es=function(e){var t;const s=this.internal,{axis:i,brush:n,config:a,scale:{x:o,subX:r},state:l}=s;let c;return a.subchart_show&&(c=e,Array.isArray(c)?(i.isTimeSeries()&&(c=c.map(d=>mt.bind(s)(d))),s.withinRange(c,s.getZoomDomain("subX",!0),s.getZoomDomain("subX"))&&(l.domain=c,n.move(n.getSelection(),c.map(r)))):c=(t=l.domain)!=null?t:o.orgDomain()),c};ct(Es,{show(){var e,t;const s=this.internal,{$el:{subchart:i},config:n}=s,a=n.subchart_show;if(!a){s.unbindZoomEvent(),n.subchart_show=!a,!i.main&&s.initSubchart();let o=i.main.selectAll(`.${z.target}`);s.data.targets.length!==o.size()&&(s.updateSizes(),s.updateTargetsForSubchart(s.data.targets),o=(e=i.main)==null?void 0:e.selectAll(`.${z.target}`)),o==null||o.style("opacity",null),(t=i.main)==null||t.style("display",null),this.resize()}},hide(){const e=this.internal,{$el:{subchart:{main:t}},config:s}=e;s.subchart_show&&(t==null?void 0:t.style("display"))!=="none"&&(s.subchart_show=!1,t.style("display","none"),this.resize())},toggle(){const e=this.internal,{config:t}=e;this.subchart[t.subchart_show?"hide":"show"]()},reset(){const e=this.internal,{brush:t}=e;t.clear(t.getSelection())}});var Ra={subchart:Es},St=W(10);const ks=function(e){var t;const s=this.internal,{axis:i,config:n,org:a,scale:o,state:r}=s,l=i.isCategorized();let c;if(n.zoom_enabled)if(c=e,Array.isArray(c)){if(i.isTimeSeries()&&(c=c.map(d=>mt.bind(s)(d))),s.withinRange(c,s.getZoomDomain("zoom",!0),s.getZoomDomain("zoom"))){if(r.domain=c,c=s.getZoomDomainValue(c),s.api.tooltip.hide(),n.subchart_show){const d=o.zoom||o.x;s.brush.getSelection().call(s.brush.move,c.map(d))}else{const d=l?o.x.orgScale():a.xScale||o.x;s.updateCurrentZoomTransform(d,c)}s.setZoomResetButton()}}else c=s.zoom.getDomain();return(t=r.domain)!=null?t:c};ct(ks,{enable(e){const t=this.internal,{config:s}=t;/^(drag|wheel)$/.test(e)&&(s.zoom_type=e),s.zoom_enabled=!!e,t.zoom?e===!1&&t.bindZoomEvent(!1):(t.initZoom(),t.bindZoomEvent()),t.updateAndRedraw()},max(e){const t=this.internal,{config:s,org:{xDomain:i}}=t;return(e===0||e)&&(s.zoom_x_max=At("max",[i[1],e])),s.zoom_x_max},min(e){const t=this.internal,{config:s,org:{xDomain:i}}=t;return(e===0||e)&&(s.zoom_x_min=At("min",[i[0],e])),s.zoom_x_min},range(e){const t=this.zoom;if(X(e)){const{min:s,max:i}=e;H(s)&&t.min(s),H(i)&&t.max(i)}return{min:t.min(),max:t.max()}}});var Ca={zoom:ks,unzoom(){const e=this.internal,{config:t,$el:{eventRect:s,zoomResetBtn:i},scale:{zoom:n},state:a}=e;n&&(t.subchart_show?e.brush.getSelection().call(e.brush.move,null):e.zoom.updateTransformScale(St.zoomIdentity),e.updateZoom(!0),i==null||i.style("display","none"),(0,St.zoomTransform)(s.node())!==St.zoomIdentity&&e.zoom.transform(s,St.zoomIdentity),a.domain=void 0)}},Ea={initBrush(){const e=this,{config:t,scale:s,$el:{subchart:i},state:n}=e,a=t.axis_rotated,o=t.subchart_size_height;let r,l,c;e.brush=(a?(0,xe.brushY)():(0,xe.brushX)()).handleSize(5),e.brush.on("start brush end",u=>{const{selection:d,sourceEvent:h,target:g,type:f}=u;f==="start"&&(e.state.inputType==="touch"&&e.hideTooltip(),l=h?d:null),/(start|brush)/.test(f)&&(f==="brush"&&h&&n.domain&&(l==null||l.forEach((p,_)=>{p!==d[_]&&(n.domain[_]=s.x.orgDomain()[_])})),e.redrawForBrush(f!=="start")),f==="end"&&(r=s.x.orgDomain()),g!=null&&g.handle&&(d===null?e.brush.handle.attr("display","none"):e.brush.handle.attr("display",null).attr("transform",(p,_)=>{const x=[d[_],o/2];return`translate(${a?x.reverse():x})`}))}),e.brush.updateResize=function(){c&&clearTimeout(c),c=setTimeout(()=>{const u=this.getSelection();r&&(0,xe.brushSelection)(u.node())&&this.move(u,r.map(s.subX.orgScale()))},0)},e.brush.update=function(){var u;return this.extent()()[1].filter(h=>isNaN(h)).length===0&&((u=i.main)==null||u.select(`.${B.brush}`).call(this)),this},e.brush.scale=function(u){const d=t.subchart_size_height;let h=e.getExtent();!h&&u.range?h=[[0,0],[u.range()[1],d]]:N(h)&&(h=h.map((g,f)=>[g,f>0?d:f])),a&&h[1].reverse(),this.extent(h),this.update()},e.brush.getSelection=()=>i.main?i.main.select(`.${B.brush}`):(0,S.select)([])},initSubchart(){const e=this,{config:t,state:{clip:s,hasAxis:i},$el:{defs:n,svg:a,subchart:o,axis:r}}=e;if(!i)return;const l=t.subchart_show?null:"hidden",c=`${s.id}-subchart`,u=e.getClipPath(c);s.idSubchart=c,e.appendClip(n,c),e.initBrush(),o.main=a.append("g").classed(B.subchart,!0).attr("transform",e.getTranslate("context"));const{main:d}=o;d.style("visibility",l),d.append("g").attr("clip-path",u).attr("class",B.chart),["bar","line","bubble","candlestick","scatter"].forEach(g=>{const f=ft(/^(bubble|scatter)$/.test(g)?"circle":g);if(e.hasType(g)||e.hasTypeOf(f)){const p=d.select(`.${B.chart}`),_=B[`chart${f}s`];p.select(`.${_}`).empty()&&p.append("g").attr("class",_)}});const h=d.append("g").attr("clip-path",u).attr("class",B.brush).call(e.brush);t.subchart_showHandle&&e.addBrushHandle(h),r.subX=d.append("g").attr("class",B.axisX).attr("transform",e.getTranslate("subX")).attr("clip-path",t.axis_rotated?"":s.pathXAxis).style("visibility",t.subchart_axis_x_show?l:"hidden")},addBrushHandle(e){const t=this,{config:s}=t,i=s.axis_rotated,n=s.subchart_init_range,a="handle--custom",o=i?["M8.5 0 a6 6 0 0 0 -6 -6.5 H-2.5 a 6 6 0 0 0 -6 6.5 z m-5 -2 H-3.5 m7 -2 H-3.5z","M8.5 0 a6 -6 0 0 1 -6 6.5 H-2.5 a 6 -6 0 0 1 -6 -6.5z m-5 2 H-3.5 m7 2 H-3.5z"]:["M0 -8.5 A6 6 0 0 0 -6.5 -3.5 V2.5 A6 6 0 0 0 0 8.5 Z M-2 -3.5 V3.5 M-4 -3.5 V3.5z","M0 -8.5 A6 6 0 0 1 6.5 -3.5 V2.5 A6 6 0 0 1 0 8.5 Z M2 -3.5 V3.5 M4 -3.5 V3.5z"];t.brush.handle=e.selectAll(`.${a}`).data(i?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",a).attr("cursor",`${i?"ns":"ew"}-resize`).attr("d",r=>o[+/[se]/.test(r.type)]).attr("display",n?null:"none")},updateTargetsForSubchart(e){const t=this,{config:s,state:i,$el:{subchart:{main:n}}}=t;s.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(a=>t.hasType(a)||t.hasTypeOf(ft(a))).forEach(a=>{const o=/^(bubble|scatter)$/.test(a),r=ft(o?"circle":a),l=t.getChartClass(r,!0),c=t.getClass(o?"circles":`${a}s`,!0),u=n.select(`.${B[`chart${`${r}s`}`]}`);if(o){const d=u.selectAll(`.${B.circles}`).data(e.filter(t[`is${ft(a)}Type`].bind(t))).attr("class",c);d.exit().remove(),d.enter().append("g").attr("class",c)}else{const d=u.selectAll(`.${B[`chart${r}`]}`).attr("class",l).data(e.filter(t[`is${r}Type`].bind(t))),h=d.enter().append("g").style("opacity","0").attr("class",l).append("g").attr("class",c);d.exit().remove(),a==="line"&&t.hasTypeOf("Area")&&h.append("g").attr("class",t.getClass("areas",!0))}}),n.selectAll(`.${B.brush} rect`).attr(s.axis_rotated?"width":"height",s.axis_rotated?i.width2:i.height2))},redrawSubchart(e,t,s){var i;const n=this,{config:a,$el:{subchart:{main:o}},state:r}=n,l=!!t;if(o.style("visibility",a.subchart_show?null:"hidden"),a.subchart_show&&(((i=r.event)==null?void 0:i.type)==="zoom"&&n.brush.update(),e)){const c=a.subchart_init_range;if(!ls(n)&&n.brush.update(),Object.keys(s.type).forEach(u=>{const d=ft(u),h=n[`generateDraw${d}`](s.indices[u],!0);n[`update${d}`](l,!0),n[`redraw${d}`](h,l,!0)}),n.hasType("bubble")||n.hasType("scatter")){const{cx:u}=s.pos,d=n.updateCircleY(!0);n.updateCircle(!0),n.redrawCircle(u,d,l,void 0,!0)}!r.rendered&&c&&(r.domain=c,n.brush.move(n.brush.getSelection(),c.map(n.scale.x)))}},redrawForBrush(e=!0){var t;const s=this,{config:{subchart_onbrush:i,zoom_rescale:n},scale:a,state:o}=s;s.redraw({withTransition:!1,withY:n,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),e&&o.rendered&&i.bind(s.api)((t=o.domain)!=null?t:a.x.orgDomain())},transformContext(e,t){const s=this,{$el:{subchart:i},$T:n}=s,a=t!=null&&t.axisSubX?t.axisSubX:n(i.main.select(`.${B.axisX}`),e);i.main.attr("transform",s.getTranslate("context")),a.attr("transform",s.getTranslate("subX"))},getExtent(){const e=this,{config:t,scale:s}=e;let i=t.axis_x_extent;if(i){if(P(i))i=i.bind(e.api)(e.getXDomain(e.data.targets),s.subX);else if(e.axis.isTimeSeries()&&i.every(isNaN)){const n=mt.bind(e);i=i.map(a=>s.subX(n(a)))}}return i}},ka={initZoom(){const e=this;e.scale.zoom=null,e.generateZoom(),e.initZoomBehaviour()},bindZoomEvent(e=!0){const t=this,{config:s}=t;s.zoom_enabled&&e?!s.subchart_show&&t.bindZoomOnEventRect():e===!1&&(t.api.unzoom(),t.unbindZoomEvent())},generateZoom(){const e=this,{config:t,org:s,scale:i}=e,n=(0,St.zoom)().duration(0).on("start",e.onZoomStart.bind(e)).on("zoom",e.onZoom.bind(e)).on("end",e.onZoomEnd.bind(e));n.orgScaleExtent=()=>{const a=t.zoom_extent||[1,10];return[a[0],Math.max(e.getMaxDataCount()/a[1],a[1])]},n.updateScaleExtent=function(){const a=Nt(e.scale.x.orgDomain())/Nt(e.getZoomDomain()),o=this.orgScaleExtent();return this.scaleExtent([o[0]*a,o[1]*a]),this},n.updateTransformScale=(a,o)=>{var r;const l=t.axis_rotated;(r=s.xScale)==null||r.range(i.x.range());const c=a[l?"rescaleY":"rescaleX"](s.xScale||i.x),u=e.trimXDomain(c.domain()),d=t.zoom_rescale;if(c.domain(u,s.xDomain),o){const h=c(i.x.domain()[0]),g=l?a.x:h,f=l?h:a.y;e.$el.eventRect.property("__zoom",St.zoomIdentity.translate(g,f).scale(a.k))}e.state.xTickOffset||(e.state.xTickOffset=e.axis.x.tickOffset()),i.zoom=e.getCustomizedXScale(c),e.axis.x.scale(i.zoom),d?(!s.xScale&&(s.xScale=i.x.copy()),i.x.domain(u)):s.xScale&&(i.x.domain(s.xScale.domain()),s.xScale=null)},n.getDomain=()=>{const a=i[i.zoom?"zoom":"subX"].domain();return e.axis.isCategorized()&&(a[1]-=2),a},e.zoom=n},onZoomStart(e){const t=this,{sourceEvent:s}=e;s&&(t.zoom.startEvent=s,t.state.zooming=!0,K(t.config.zoom_onzoomstart,t.api,e))},onZoom(e){var t;const s=this,{config:i,scale:n,state:a,org:o}=s,{sourceEvent:r}=e,l=(e==null?void 0:e.transform)===St.zoomIdentity;if(!i.zoom_enabled||s.filterTargetsToShow(s.data.targets).length===0||!n.zoom&&(r==null?void 0:r.type.indexOf("touch"))>-1&&(r==null?void 0:r.touches.length)===1)return;e.sourceEvent&&(a.zooming=!0,a.domain=void 0);const c=(r==null?void 0:r.type)==="mousemove",u=(r==null?void 0:r.wheelDelta)<0,{transform:d}=e;!c&&u&&n.x.domain().every((g,f)=>g!==o.xDomain[f])&&n.x.domain(o.xDomain),s.zoom.updateTransformScale(d,i.zoom_type==="wheel"&&r);const h=i.transition_duration>0&&!i.subchart_show&&(a.dragging||l||!e.sourceEvent);s.redraw({withTransition:h,withY:i.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),s.state.cancelClick=c,!l&&K(i.zoom_onzoom,s.api,(t=s.state.domain)!=null?t:s.zoom.getDomain())},onZoomEnd(e){var t,s;const i=this,{config:n,state:a}=i;let{startEvent:o}=i.zoom,r=e==null?void 0:e.sourceEvent;const l=(e==null?void 0:e.transform)===St.zoomIdentity;(o==null?void 0:o.type.indexOf("touch"))>-1&&(o=o.changedTouches[0],r=(t=r==null?void 0:r.changedTouches)==null?void 0:t[0]),!(n.zoom_type==="drag"&&r&&o.clientX===r.clientX&&o.clientY===r.clientY)&&(a.zooming=!1,i.redrawEventRect(),i.updateZoom(),!l&&(r||a.dragging)&&K(n.zoom_onzoomend,i.api,(s=i.state.domain)!=null?s:i.zoom.getDomain()))},updateZoom(e){const t=this,{subX:s,x:i,zoom:n}=t.scale;if(n){const a=n.domain(),o=s.domain(),r=.015,l=t.config.axis_x_inverted?(a[0]>=o[0]||a[0]+r>=o[0])&&(o[1]>=a[1]||o[1]>=a[1]+r):(a[0]<=o[0]||a[0]-r<=o[0])&&(o[1]<=a[1]||o[1]<=a[1]-r);(e||l)&&(t.axis.x.scale(s),i.domain(s.orgDomain()),t.scale.zoom=null)}},updateCurrentZoomTransform(e,t){const s=this,{$el:{eventRect:i},config:n}=s,a=n.axis_rotated,o=[-e(t[0]),0],r=St.zoomIdentity.scale(e.range()[1]/(e(t[1])-e(t[0]))).translate(...a?o.reverse():o);i.call(s.zoom.transform,r)},bindZoomOnEventRect(){const e=this,{config:t,$el:{eventRect:s}}=e,i=t.zoom_type==="drag"?e.zoomBehaviour:e.zoom;s==null||s.call(i).on("dblclick.zoom",null)},initZoomBehaviour(){const e=this,{config:t,state:s}=e,i=t.axis_rotated;let n=0,a=0,o;const r={axis:i?"y":"x",attr:i?"height":"width",index:i?1:0};e.zoomBehaviour=(0,bs.drag)().clickDistance(4).on("start",function(l){s.event=l,e.setDragStatus(!0),e.unselectRect(),o||(o=e.$el.main.append("rect").attr("clip-path",s.clip.path).attr("class",Ee.zoomBrush).attr("width",i?s.width:0).attr("height",i?0:s.height)),n=$t(l,this)[r.index],a=n,o.attr(r.axis,n).attr(r.attr,0),e.onZoomStart(l)}).on("drag",function(l){a=$t(l,this)[r.index],o.attr(r.axis,Math.min(n,a)).attr(r.attr,Math.abs(a-n))}).on("end",l=>{const c=e.scale.zoom||e.scale.x;s.event=l,o.attr(r.axis,0).attr(r.attr,0),n>a&&([n,a]=[a,n]),n<0&&(a+=Math.abs(n),n=0),n!==a&&e.api.zoom([n,a].map(u=>c.invert(u))),e.setDragStatus(!1)})},setZoomResetButton(){const e=this,{config:t,$el:s}=e,i=t.zoom_resetButton;i&&t.zoom_type==="drag"&&(s.zoomResetBtn?s.zoomResetBtn.style("display",null):s.zoomResetBtn=e.$el.chart.append("div").classed(z.button,!0).append("span").on("click",function(){P(i.onclick)&&i.onclick.bind(e.api)(this),e.api.unzoom()}).classed(Ee.buttonZoomReset,!0).text(i.text||"Reset Zoom"))},getZoomTransform(){const e=this,{$el:{eventRect:t}}=e;return t!=null&&t.node()?(0,St.zoomTransform)(t.node()):{k:1}}},La={drag(e){const t=this,{config:s,state:i,$el:{main:n}}=t,a=s.data_selection_grouped,o=s.interaction_enabled&&s.data_selection_isselectable;if(t.hasArcType()||!s.data_selection_enabled||s.zoom_enabled&&!t.zoom.altDomain||!s.data_selection_multiple)return;const[r,l]=i.dragStart||[0,0],[c,u]=e,d=Math.min(r,c),h=Math.max(r,c),g=a?i.margin.top:Math.min(l,u),f=a?i.height:Math.max(l,u);n.select(`.${Bt.dragarea}`).attr("x",d).attr("y",g).attr("width",h-d).attr("height",f-g),n.selectAll(`.${st.shapes}`).selectAll(`.${st.shape}`).filter(p=>o==null?void 0:o.bind(t.api)(p)).each(function(p,_){const x=(0,S.select)(this),m=x.classed(J.SELECTED),$=x.classed(Bt.INCLUDED);let b=!1,A;if(x.classed(ut.circle)){const y=+x.attr("cx")*1,v=+x.attr("cy")*1;A=t.togglePoint,b=dt in e?Pa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Fa=(e,t)=>{for(var s in t||(t={}))Da.call(t,s)&&Ps(e,s,t[s]);if(Ls)for(var s of Ls(t))za.call(t,s)&&Ps(e,s,t[s]);return e},Ma=(e,t)=>Oa(e,Ia(t)),Xa=Ma(Fa({},La),{selectPoint(e,t,s){const i=this,{config:n,$el:{main:a},$T:o}=i,r=n.axis_rotated,l=(r?i.circleY:i.circleX).bind(i),c=(r?i.circleX:i.circleY).bind(i),u=i.pointSelectR.bind(i);K(n.data_onselected,i.api,t,e.node()),o(a.select(`.${J.selectedCircles}${i.getTargetSelectorSuffix(t.id)}`).selectAll(`.${J.selectedCircle}-${s}`).data([t]).enter().append("circle").attr("class",()=>i.generateClass(J.selectedCircle,s)).attr("cx",l).attr("cy",c).attr("stroke",i.color).attr("r",d=>i.pointSelectR(d)*1.4)).attr("r",u)},unselectPoint(e,t,s){const i=this,{config:n,$el:{main:a},$T:o}=i;K(n.data_onunselected,i.api,t,e==null?void 0:e.node()),o(a.select(`.${J.selectedCircles}${i.getTargetSelectorSuffix(t.id)}`).selectAll(`.${J.selectedCircle}-${s}`)).attr("r",0).remove()},togglePoint(e,t,s,i){this[`${e?"":"un"}selectPoint`](t,s,i)},selectPath(e,t){const s=this,{config:i}=s;K(i.data_onselected,s.api,t,e.node()),i.interaction_brighten&&e.style("filter","brightness(1.25)")},unselectPath(e,t){const s=this,{config:i}=s;K(i.data_onunselected,s.api,t,e.node()),i.interaction_brighten&&e.style("filter",null)},togglePath(e,t,s,i){this[`${e?"":"un"}selectPath`](t,s,i)},getToggle(e,t){const s=this;return e.nodeName==="path"?s.togglePath:s.isStepType(t)?()=>{}:s.togglePoint},toggleShape(e,t,s){var i;const n=this,{config:a,$el:{main:o}}=n;if(a.data_selection_enabled&&a.data_selection_isselectable.bind(n.api)(t)){const r=(0,S.select)(e),l=r.classed(J.SELECTED),c=n.getToggle(e,t).bind(n);let u;if(!a.data_selection_multiple){const d=(i=n.isPointFocusOnly)==null?void 0:i.call(n);let h=`.${d?J.selectedCircles:st.shapes}`;a.data_selection_grouped&&(h+=n.getTargetSelectorSuffix(t.id)),o.selectAll(h).selectAll(d?`.${J.selectedCircle}`:`.${st.shape}.${J.SELECTED}`).classed(J.SELECTED,!1).each(function(g){const f=(0,S.select)(this);u=f,c(!1,f,g,g.index)})}(!u||u.node()!==r.node())&&(r.classed(J.SELECTED,!l),c(!l,r,t,s))}}}),Ba={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:()=>!0,data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:()=>{},data_onunselected:()=>{}},Na={subchart_show:!1,subchart_showHandle:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_format:void 0,subchart_axis_x_tick_text_show:!0,subchart_init_range:void 0,subchart_onbrush:()=>{}},Ga={zoom_enabled:!1,zoom_type:"wheel",zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:void 0,zoom_onzoomstart:void 0,zoom_onzoomend:void 0,zoom_resetButton:!0,zoom_x_min:void 0,zoom_x_max:void 0};let Os=()=>(ct(jt.prototype,Xa),ct(Xt.prototype,Sa),Vt.setOptions([Ba]),(Os=()=>!0)()),Is=()=>(ct(jt.prototype,Ea),ct(Xt.prototype,Ra),Vt.setOptions([Na]),(Is=()=>!0)()),Ds=()=>(ct(jt.prototype,ka),ct(Xt.prototype,Ca),Vt.setOptions([Ga]),(Ds=()=>!0)());function zs(e,t,s){const{config:i}=e,n=(a,o)=>{const r=L(o)?o:o===!1?void 0:null;r!==null&&(i[`axis_${a}_${t}`]=r)};H(s)&&(wt(s)?Object.keys(s).forEach(a=>{n(a,s[a])}):(L(s)||s===!1)&&["y","y2"].forEach(a=>{n(a,s)}),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function Fs(e,t){const{config:s}=e;return{x:s[`axis_x_${t}`],y:s[`axis_y_${t}`],y2:s[`axis_y2_${t}`]}}var Va={axis:{labels:function(e){const t=this.internal;let s;return e&&(Object.keys(e).forEach(i=>{t.axis.setLabelText(i,e[i])}),t.axis.updateLabels()),["x","y","y2"].forEach(i=>{const n=t.axis.getLabelText(i);n&&(!s&&(s={}),s[i]=n)}),s},min:function(e){const t=this.internal;return F(e)||e===!1?zs(t,"min",e):Fs(t,"min")},max:function(e){const t=this.internal;return F(e)||e===!1?zs(t,"max",e):Fs(t,"max")},range:function(e){const{axis:t}=this;if(arguments.length){const{min:s,max:i}=e;H(i)&&t.max(i),H(s)&&t.min(s)}else return{max:t.max(),min:t.min()}}}},Ya={category(e,t){const s=this.internal,{config:i}=s;return arguments.length>1&&(i.axis_x_categories[e]=t,s.redraw()),i.axis_x_categories[e]},categories(e){const t=this.internal,{config:s}=t;if(!e||!Array.isArray(e)){const i=s.axis_x_categories;return Tt(i)?Object.values(t.data.xs)[0]:i}return s.axis_x_categories=e,t.redraw(),s.axis_x_categories}},ja={flow(e){const t=this.internal;let s;(e.json||e.rows||e.columns)&&t.convertData(e,n=>{s=n,i()});function i(){let n,a=0,o=0,r,l;if(t.state.redrawing||!s||!ce())return;const c=[],u=t.getMaxDataCount(),d=t.convertDataToTargets(s,!0),h=t.axis.isTimeSeries();t.data.targets.forEach(p=>{let _=!1;for(let x=0;x{for(let _=0;_{const _=[];for(let x=t.data.targets[0].values[0].index;x{x.index+=o,h||(x.x+=o)}),p.values=_.concat(p.values)}),t.data.targets=t.data.targets.concat(d);const g=t.data.targets[0],f=g.values[0];H(e.to)?(a=0,l=h?mt.call(t,e.to):e.to,g.values.forEach(p=>{p.x1?g.values[g.values.length-1].x-f.x:f.x-t.getXDomain(t.data.targets)[0]:r=1,n=[f.x-r,f.x]),n&&t.updateXDomain(null,!0,!0,!1,n),t.updateTargets(t.data.targets),t.redraw({flow:{index:f.index,length:a,duration:F(e.duration)?e.duration:t.config.transition_duration,done:e.done,orgDataCount:u},withLegend:!0,withTransition:u>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function Ge(e,t){const s=this.internal,{config:i}=s,n=i.transition_duration&&ce(),a=`grid_${t}_lines`;return e&&(i[a]=e,s.updateGrid(),s.redrawGrid(n)),i[a]}function Ms(e,t){const s=`grid_${t}_lines`;return Ge.bind(this)(this.internal.config[s].concat(e||[]),t)}function Xs(e,t){this.internal.removeGridLines(e,t)}const Bs=function(e){return Ge.bind(this)(e,"x")};ct(Bs,{add(e){return Ms.bind(this)(e,"x")},remove(e){return Xs.bind(this)(e,!0)}});const Ns=function(e){return Ge.bind(this)(e,"y")};ct(Ns,{add(e){return Ms.bind(this)(e,"y")},remove(e){return Xs.bind(this)(e,!1)}});var Ha={xgrids:Bs,ygrids:Ns},Wa={groups(e){const t=this.internal,{config:s}=t;return it(e)||(s.data_groups=e,t.redraw()),s.data_groups}};function Gs(e,t=!1){const s=this.internal,{config:i}=s,n=i.transition_duration&&ce();return e?(i.regions=t?i.regions.concat(e):e,s.updateRegion(),s.redrawRegion(n),t?i.regions:e):i.regions}const Vs=function(e){return Gs.bind(this)(e)};ct(Vs,{add:function(e){return Gs.bind(this)(e,!0)},remove:function(e){const t=this.internal,{config:s,$T:i}=t,n=e||{},a=zt(n,"classes",[re.region]);let o=t.$el.main.select(`.${re.regions}`).selectAll(a.map(r=>`.${r}`));return i(o).style("opacity","0").remove(),o=s.regions,Object.keys(n).length?(o=o.filter(r=>{let l=!1;return r.class?(r.class.split(" ").forEach(c=>{a.indexOf(c)>=0&&(l=!0)}),!l):!0}),s.regions=o):s.regions=[],o}});var Ua={regions:Vs},Za={x(e){const t=this.internal,{axis:s,data:i}=t,n=s.isCustomX()&&s.isCategorized();return N(e)&&(n?this.categories(e):(t.updateTargetX(i.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),n?this.categories():i.xs},xs(e){const t=this.internal;return X(e)&&(t.updateTargetXs(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs}},Jt=W(11),qa=Object.defineProperty,Ka=(e,t,s)=>t in e?qa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ve=(e,t,s)=>Ka(e,typeof t!="symbol"?t+"":t,s);class Ys{constructor(t){Ve(this,"owner"),Ve(this,"config"),Ve(this,"scale");const s=Yt(),{config:i,params:n}=t;this.owner=t,this.config=i,this.scale=s,(i.noTransition||!n.config.transition_duration)&&(i.withoutTransition=!0),i.range=this.scaleExtent((n.orgXScale||s).range())}static getSizeFor1Char(t){const s={w:5.5,h:11.5};return!t.empty()&&t.select("text").text("0").call(i=>{try{const{width:n,height:a}=i.node().getBBox();n&&a&&(s.w=n,s.h=a)}catch(n){}finally{i.text("")}}),this.getSizeFor1Char=()=>s,s}getTickTransformSetter(t){const{config:s}=this,i=t==="x"?n=>`translate(${n+s.tickOffset},0)`:n=>`translate(0,${n})`;return(n,a)=>{n.attr("transform",o=>F(o)?i(Math.ceil(a(o))):null)}}scaleExtent(t){const s=t[0],i=t[t.length-1];return s0?n:1,a]).range(t.range());o=l.ticks();for(let c=a.toFixed().length;o.length>15;c--)o=l.ticks(c);o.splice(0,1,n),o.splice(o.length-1,1,a)}else o=t.ticks(...this.config.tickArguments||[]);o=o.map(l=>V(l)&&L(l)&&!isNaN(l)&&Math.round(l*10)/10||l)}return o}copyScale(){const t=this.scale.copy();return t.domain().length||t.domain(this.scale.domain()),t.type=this.scale.type,t}textFormatted(t){const s=this.config.tickFormat,i=/\d+\.\d+0{5,}\d$/.test(t)?+String(t).replace(/0+\d$/,""):t,n=s?s(i):i;return H(n)?n:""}transitionise(t){const{config:s}=this;let i=t;if(s.withoutTransition)i=t.interrupt();else if(s.transition||!this.owner.params.noTransition)try{i=t.transition(s.transition)}catch(n){}return i}}var Ja=Object.defineProperty,Qa=(e,t,s)=>t in e?Ja(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,de=(e,t,s)=>Qa(e,typeof t!="symbol"?t+"":t,s);class to{constructor(t={}){de(this,"helper"),de(this,"config"),de(this,"params"),de(this,"g"),de(this,"generatedTicks");const s={innerTickSize:6,outerTickSize:t.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:t.noTransition};s.tickLength=Math.max(s.innerTickSize,0)+s.tickPadding,this.config=s,this.params=t,this.helper=new Ys(this)}create(t){const s=this,{config:i,helper:n,params:a}=s,{scale:o}=n,{orient:r}=i,l=this.splitTickText.bind(s),c=/^(left|right)$/.test(r),u=/^(top|bottom)$/.test(r),d=n.getTickTransformSetter(u?"x":"y"),h=d===n.axisX?"y":"x",g=/^(top|left)$/.test(r)?-1:1,f=a.tickTextRotate;this.config.range=o.rangeExtent?o.rangeExtent():n.scaleExtent((a.orgXScale||o).range());const{innerTickSize:p,tickLength:_,range:x}=i,m=a.id,$=m&&/^(x|y|y2)$/.test(m)?a.config[`axis_${m}_tick_text_position`]:{x:0,y:0},b=m==="subX"?"subchart_axis_x":`axis_${m}`,A=a.config[`${b}_show`],y={tick:A?a.config[`${b}_tick_show`]:!1,text:A?a.config[`${b}_tick_text_show`]:!1};let v;t.each(function(){const R=(0,S.select)(this);let w=this.__chart__||o,T=n.copyScale();v=R,this.__chart__=T,i.tickOffset=a.isCategory?Math.ceil((T(1)-T(0))/2):0;const C=R.selectAll(".domain").data([0]);if(C.enter().append("path").attr("class","domain").merge(C).attr("d",()=>{const I=i.outerTickSize*g;return u?`M${x[0]},${I}V0H${x[1]}V${I}`:`M${I},${x[0]}H0V${x[1]}H${I}`}),y.tick||y.text){const I=i.tickValues||n.generateTicks(T,c);s.generatedTicks=I;let k=R.selectAll(".tick").data(I,T);const O=k.enter().insert("g",".domain").attr("class","tick"),M=k.exit().remove();k=O.merge(k),y.tick&&O.append("line"),y.text&&O.append("text");const Y=Ys.getSizeFor1Char(k),Q=[];let rt=k.select("text").selectAll("tspan").data((at,Ct)=>{const Wt=a.tickMultiline?l(at,T,I,c,Y.w):N(n.textFormatted(at))?n.textFormatted(at).concat():[n.textFormatted(at)];return Q[Ct]=Wt.length,Wt.map(Ut=>({index:Ct,splitted:Ut}))});rt.exit().remove(),rt=rt.enter().append("tspan").merge(rt).text(at=>at.splitted),rt.attr("x",u?0:_*g).attr("dx",(()=>{let at=0;return/(top|bottom)/.test(r)&&f&&(at=8*Math.sin(Math.PI*(f/180))*(r==="top"?-1:1)),at+($.x||0)})()).attr("dy",(at,Ct)=>{const Wt=".71em";let Ut=0;return r!=="top"&&(Ut=Y.h,Ct===0&&(Ut=c?-((Q[at.index]-1)*(Y.h/2)-3):$.y===0?Wt:0)),L(Ut)&&$.y?Ut+$.y:Ut||Wt});const yt=k.select("line"),Rt=k.select("text");if(O.select("line").attr(`${h}2`,p*g),O.select("text").attr(h,_*g),s.setTickLineTextPosition(yt,Rt),a.tickTitle){const at=Rt.select("title");(at.empty()?Rt.append("title"):at).text(Ct=>a.tickTitle[Ct])}if(T.bandwidth){const at=T,Ct=at.bandwidth()/2;w=Wt=>at(Wt)+Ct,T=w}else w.bandwidth?w=T:d(M,T);k=a.owner.state.flowing?n.transitionise(k):a.owner.$T(k),d(O,w),d(k.style("opacity",null),T)}}),this.g=v}getGeneratedTicks(t){var s;const i=((s=this.generatedTicks)==null?void 0:s.length)-1;let n=this.generatedTicks;if(i>t){const a=Math.round(i/t+.1);n=this.generatedTicks.map((o,r)=>r%a===0?o:null).filter(o=>o!==null).splice(0,t)}return n}getTickXY(){const{config:t}=this,s={x:0,y:0};return this.params.isCategory&&(s.x=t.tickCentered?0:t.tickOffset,s.y=t.tickCentered?t.tickOffset:0),s}getTickSize(t){const{scale:s}=this.helper,{config:i}=this,{innerTickSize:n,range:a}=i,o=s(t)+(i.tickCentered?0:i.tickOffset);return a[0]{const p=["start","end"];return a==="top"&&p.reverse(),f?p[f>0?0:1]:"middle"},u=f=>f?`rotate(${f})`:null,d=f=>{const p=f/(a==="bottom"?15:23);return f?11.5-2.5*p*(f>0?1:-1):o},{config:{axis_rotated:h,axis_x_tick_text_inner:g}}=this.params.owner;switch(a){case"bottom":t.attr("x1",i.x).attr("x2",i.x).attr("y2",this.getTickSize.bind(this)),s.attr("x",0).attr("y",d(l)).style("text-anchor",c(l)).style("text-anchor",(f,p,{length:_})=>!h&&p===0&&(g===!0||g.first)?"start":!h&&p===_-1&&(g===!0||g.last)?"end":c(l)).attr("transform",u(l));break;case"top":t.attr("x2",0).attr("y2",-n),s.attr("x",0).attr("y",-d(l)*2).style("text-anchor",c(l)).attr("transform",u(l));break;case"left":t.attr("x2",-n).attr("y1",i.y).attr("y2",i.y),s.attr("x",-o).attr("y",r).style("text-anchor","end");break;case"right":t.attr("x2",n).attr("y2",0),s.attr("x",o).attr("y",0).style("text-anchor","start")}}splitTickText(t,s,i,n,a){const{params:o}=this,r=this.helper.textFormatted(t),l=V(r)&&r.indexOf(` `)>-1?r.split(` -`):[];if(l.length)return l;if(B(r))return r;let c=o.tickWidth;(!c||c<=0)&&(c=n?95:o.isCategory?Math.ceil(o.isInverted?s(i[0])-s(i[1]):s(i[1])-s(i[0]))-12:110);function u(d,h){let g,f,p;for(let _=1;_{const g=d+1;return gt(this.helper.scale.domain());else{if(!arguments.length)return s.tickValues;s.tickValues=t}return this}setTransition(t){return this.config.transition=t,this}}var eo=Object.defineProperty,so=(e,t,s)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ct=(e,t,s)=>so(e,typeof t!="symbol"?t+"":t,s),io={getAxisInstance:function(){return this.axis||new no(this)}};class no{constructor(t){Ct(this,"owner"),Ct(this,"x"),Ct(this,"subX"),Ct(this,"y"),Ct(this,"y2"),Ct(this,"axesList",{}),Ct(this,"tick",{x:null,y:null,y2:null}),Ct(this,"xs",[]),Ct(this,"orient",{x:"bottom",y:"left",y2:"right",subX:"bottom"}),this.owner=t,this.setOrient()}getAxisClassName(t){return`${st.axis} ${st[`axis${gt(t)}`]}`}isHorizontal(t,s){const i=t.config.axis_rotated;return s?i:!i}isCategorized(){const{config:t,state:s}=this.owner;return t.axis_x_type.indexOf("category")>=0||s.hasRadar}isCustomX(){const{config:t}=this.owner;return!this.isTimeSeries()&&(t.data_x||et(t.data_xs))}isTimeSeries(t="x"){return this.owner.config[`axis_${t}_type`]==="timeseries"}isLog(t="x"){return this.owner.config[`axis_${t}_type`]==="log"}isTimeSeriesY(){return this.isTimeSeries("y")}getAxisType(t="x"){let s="linear";return this.isTimeSeries(t)?s=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(t)&&(s="log"),s}init(){const t=this.owner,{config:s,$el:{main:i,axis:n},state:{clip:a}}=t,o=s.axis_rotated,r=["x","y"];s.axis_y2_show&&r.push("y2"),r.forEach(l=>{const c=this.getAxisClassName(l),u=st[`axis${l.toUpperCase()}Label`];n[l]=i.append("g").attr("class",c).attr("clip-path",()=>{let d=null;return l==="x"?d=a.pathXAxis:l==="y"&&(d=a.pathYAxis),d}).attr("transform",t.getTranslate(l)).style("visibility",s[`axis_${l}_show`]?null:"hidden"),n[l].append("text").attr("class",u).attr("transform",["rotate(-90)",null][l==="x"?+!o:+o]).style("text-anchor",()=>this.textAnchorForAxisLabel(l)),this.generateAxes(l)}),s.axis_tooltip&&this.setAxisTooltip()}setOrient(){const t=this.owner,{axis_rotated:s,axis_y_inner:i,axis_y2_inner:n}=t.config;this.orient={x:s?"left":"bottom",y:s?i?"top":"bottom":i?"right":"left",y2:s?n?"bottom":"top":n?"left":"right",subX:s?"left":"bottom"}}generateAxes(t){const s=this.owner,{config:i}=s,n=[],a=i[`axis_${t}_axes`],o=i.axis_rotated;let r;t==="x"?r=o?qt.axisLeft:qt.axisBottom:t==="y"?r=o?qt.axisBottom:qt.axisLeft:t==="y2"&&(r=o?qt.axisTop:qt.axisRight),a.length&&a.forEach(l=>{const c=l.tick||{},u=s.scale[t].copy();l.domain&&u.domain(l.domain),n.push(r(u).ticks(c.count).tickFormat(L(c.format)?c.format.bind(s.api):d=>d).tickValues(c.values).tickSizeOuter(c.outer===!1?0:6))}),this.axesList[t]=n}updateAxes(){const t=this.owner,{config:s,$el:{main:i},$T:n}=t;Object.keys(this.axesList).forEach(a=>{const o=s[`axis_${a}_axes`],r=t.scale[a].copy(),l=r.range();this.axesList[a].forEach((c,u)=>{const d=c.scale().range();l.every((f,p)=>f===d[p])||c.scale().range(l);const h=`${this.getAxisClassName(a)}-${u+1}`;let g=i.select(`.${h.replace(/\s/,".")}`);g.empty()?g=i.append("g").attr("class",h).style("visibility",s[`axis_${a}_show`]?null:"hidden").call(c):(o[u].domain&&r.domain(o[u].domain),n(g).call(c.scale(r))),g.attr("transform",t.getTranslate(a,u+1))})})}setAxis(t,s,i,n){const a=this.owner;t!=="subX"&&(this.tick[t]=this.getTickValues(t)),this[t]=this.getAxis(t,s,i,t==="x"&&(a.scale.zoom||a.config.subchart_show||a.state.resizing)?!0:n)}getAxis(t,s,i,n,a){const o=this.owner,{config:r}=o,l=/^(x|subX)$/.test(t),c=l?"x":t,u=l&&this.isCategorized(),d=this.orient[t],h=a?0:o.getAxisTickRotate(c);let g;if(l)g=t==="subX"?o.format.subXAxisTick:o.format.xAxisTick;else{const m=r[`axis_${t}_tick_format`];L(m)&&(g=m.bind(o.api))}let f=this.tick[c];const p=Ut({outerTick:i,noTransition:n,config:r,id:t,tickTextRotate:h,owner:o},l&&{isCategory:u,isInverted:r.axis_x_inverted,tickMultiline:r.axis_x_tick_multiline,tickWidth:r.axis_x_tick_width,tickTitle:u&&r.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});l||(p.tickStepSize=r[`axis_${c}_tick_stepSize`]);const _=new to(p).scale(l&&o.scale.zoom||s).orient(d);if(l&&this.isTimeSeries()&&f&&!L(f)){const m=_t.bind(o);f=f.map(b=>m(b))}else!l&&this.isTimeSeriesY()&&(_.ticks(r.axis_y_tick_time_value),f=null);f&&_.tickValues(f),_.tickFormat(g||!l&&o.isStackNormalized()&&(m=>`${m}%`)),u&&(_.tickCentered(r.axis_x_tick_centered),bt(r.axis_x_tick_culling)&&(r.axis_x_tick_culling=!1));const x=r[`axis_${c}_tick_count`];return x&&_.ticks(x),_}updateXAxisTickValues(t,s){var i;const n=this.owner,{config:a}=n,o=a.axis_x_tick_fit;let r=a.axis_x_tick_count,l;return(o||r&&o)&&(l=n.mapTargetsToUniqueXs(t),this.isCategorized()&&r>l.length&&(r=l.length),l=this.generateTickValues(l,r,this.isTimeSeries())),s?s.tickValues(l):this.x&&(this.x.tickValues(l),(i=this.subX)==null||i.tickValues(l)),l}getId(t){const{config:s,scale:i}=this.owner;let n=s.data_axes[t];return(!n||!i[n])&&(n="y"),n}getXAxisTickFormat(t){const s=this.owner,{config:i,format:n}=s,a=t&&i.subchart_axis_x_tick_format||i.axis_x_tick_format,o=this.isTimeSeries(),r=this.isCategorized();let l;return a?L(a)?l=a.bind(s.api):o&&(l=c=>c?n.axisTime(a)(c):""):l=o?n.defaultAxisTime:r?s.categoryName:c=>c<0?c.toFixed(0):c,L(l)?c=>l.apply(s,r?[c,s.categoryName(c)]:[c]):l}getTickValues(t){const s=this.owner,i=s.config[`axis_${t}_tick_values`],n=s[`${t}Axis`];return(L(i)?i.call(s.api):i)||(n?n.tickValues():void 0)}getLabelOptionByAxisId(t){return this.owner.config[`axis_${t}_label`]}getLabelText(t){const s=this.getLabelOptionByAxisId(t);return G(s)?s:s?s.text:null}setLabelText(t,s){const i=this.owner,{config:n}=i,a=this.getLabelOptionByAxisId(t);G(a)?n[`axis_${t}_label`]=s:a&&(a.text=s)}getLabelPosition(t,s){const i=this.owner.config.axis_rotated,n=this.getLabelOptionByAxisId(t),a=Tt(n)&&n.position?n.position:s[+!i],o=r=>!!~a.indexOf(r);return{isInner:o("inner"),isOuter:o("outer"),isLeft:o("left"),isCenter:o("center"),isRight:o("right"),isTop:o("top"),isMiddle:o("middle"),isBottom:o("bottom")}}getAxisLabelPosition(t){return this.getLabelPosition(t,t==="x"?["inner-top","inner-right"]:["inner-right","inner-top"])}getLabelPositionById(t){return this.getAxisLabelPosition(t)}xForAxisLabel(t){const s=this.owner,{state:{width:i,height:n}}=s,a=this.getAxisLabelPosition(t);let o=a.isMiddle?-n/2:0;return this.isHorizontal(s,t!=="x")?o=a.isLeft?0:a.isCenter?i/2:i:a.isBottom&&(o=-n),o}dxForAxisLabel(t){const s=this.owner,i=this.getAxisLabelPosition(t);let n=i.isBottom?"0.5em":"0";return this.isHorizontal(s,t!=="x")?n=i.isLeft?"0.5em":i.isRight?"-0.5em":"0":i.isTop&&(n="-0.5em"),n}textAnchorForAxisLabel(t){const s=this.owner,i=this.getAxisLabelPosition(t);let n=i.isMiddle?"middle":"end";return this.isHorizontal(s,t!=="x")?n=i.isLeft?"start":i.isCenter?"middle":"end":i.isBottom&&(n="start"),n}dyForAxisLabel(t){const s=this.owner,{config:i}=s,n=i.axis_rotated,a=this.getAxisLabelPosition(t).isInner,o=i[`axis_${t}_tick_rotate`]?s.getHorizontalAxisHeight(t):0,{width:r}=this.getMaxTickSize(t);let l;if(t==="x"){const c=i.axis_x_height;n?l=a?"1.2em":-25-r:a?l="-0.5em":c?l=c-10:o?l=o-10:l="3em"}else l={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],n?a?l=l[0]:o?l=o*(t==="y2"?-1:1)-l[1]:l=l[2]:l=a?l[3]:(l[4]+(i[`axis_${t}_inner`]?0:r+l[4]))*(t==="y"?-1:1);return l}getMaxTickSize(t,s){const i=this.owner,{config:n,state:{current:a},$el:{svg:o,chart:r}}=i,l=a.maxTickSize[t],c=`axis_${t}`,u={width:0,height:0};if(s||!n[`${c}_show`]||l.width>0&&i.filterTargetsToShow().length===0)return l;if(o){const d=/^y2?$/.test(t),h=i.filterTargetsToShow(i.data.targets),g=i.scale[t].copy().domain(i[`get${d?"Y":"X"}Domain`](h,t)),f=g.domain(),p=f[0]===f[1]&&f.every($=>$>0),_=B(l.domain)&&l.domain[0]===l.domain[1]&&l.domain.every($=>$>0);if(p||_)return l.size;l.domain=f,d||l.ticks.splice(0);const x=this.getAxis(t,g,!1,!1,!0),m=n[`${c}_tick_rotate`],b=n[`${c}_tick_count`];!n[`${c}_tick_values`]&&b&&x.tickValues(this.generateTickValues(f,b,d?this.isTimeSeriesY():this.isTimeSeries())),!d&&this.updateXAxisTickValues(h,x);const v=r.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");x.create(v),v.selectAll("text").attr("transform",k(m)?`rotate(${m})`:null).each(function($,T){const{width:S,height:A}=this.getBoundingClientRect();u.width=Math.max(u.width,S),u.height=Math.max(u.height,A),d||(l.ticks[T]=S)}),v.remove()}return Object.keys(u).forEach(d=>{u[d]>0&&(l[d]=u[d])}),l}getXAxisTickTextY2Overflow(t){const s=this.owner,{axis:i,config:n,state:{current:a,isLegendRight:o,legendItemWidth:r}}=s,l=s.getAxisTickRotate("x"),c=l>0&&l<90;if((i.isCategorized()||i.isTimeSeries())&&n.axis_x_tick_fit&&(!n.axis_x_tick_culling||bt(n.axis_x_tick_culling))&&!n.axis_x_tick_multiline&&c){const u=n.axis_y2_show&&a.maxTickSize.y2.width||0,d=o&&r||0,h=a.width-s.getCurrentPaddingByDirection("left"),g=this.getXAxisTickMaxOverflow(l,h-t)-u-d,f=Math.max(0,g)+t;return Math.min(f,h/2)}return 0}getXAxisTickMaxOverflow(t,s){const i=this.owner,{axis:n,config:a,state:o}=i,r=n.isTimeSeries(),l=o.current.maxTickSize.x.ticks,c=l.length,{left:u,right:d}=o.axis.x.padding;let h=0;const g=c-(r&&a.axis_x_tick_fit?.5:0);for(let _=0;_!a[o].empty()).forEach(o=>{const r=a[o];n(r,t).attr("x",()=>this.xForAxisLabel(o)).attr("dx",()=>this.dxForAxisLabel(o)).attr("dy",()=>this.dyForAxisLabel(o)).text(()=>this.getLabelText(o))})}getPadding(t,s,i,n){const a=k(t)?t:t[s];return z(a)?this.owner.convertPixelToScale(/(bottom|top)/.test(s)?"y":"x",a,n):i}generateTickValues(t,s,i){let n=t;if(s){const a=L(s)?s():s;if(a===1)n=[t[0]];else if(a===2)n=[t[0],t[t.length-1]];else if(a>2){const o=this.isCategorized(),r=a-2,l=t[0],c=t[t.length-1],u=(c-l)/(r+1);let d;n=[l];for(let h=0;ha-o)),n}generateTransitions(t){const s=this.owner,{$el:{axis:i},$T:n}=s,[a,o,r,l]=["x","y","y2","subX"].map(c=>n(i[c],t));return{axisX:a,axisY:o,axisY2:r,axisSubX:l}}redraw(t,s,i){const n=this.owner,{config:a,$el:o}=n,r=s?"0":null;["x","y","y2","subX"].forEach(l=>{const c=this[l],u=o.axis[l];c&&u&&(!i&&!a.transition_duration&&(c.config.withoutTransition=!0),u.style("opacity",r),c.create(t[`axis${gt(l)}`]))}),this.updateAxes()}redrawAxis(t,s,i,n,a){var o,r,l;const c=this.owner,{config:u,scale:d,$el:h}=c,g=!!d.zoom;let f;!g&&this.isCategorized()&&t.length===0&&d.x.domain([0,h.axis.x.selectAll(".tick").size()]),d.x&&t.length?(!g&&c.updateXDomain(t,s.UpdateXDomain,s.UpdateOrgXDomain,s.TrimXDomain),u.axis_x_tick_values||this.updateXAxisTickValues(t)):this.x&&(this.x.tickValues([]),(o=this.subX)==null||o.tickValues([])),u.zoom_rescale&&!n&&(f=d.x.orgDomain()),["y","y2"].forEach(p=>{const _=`axis_${p}_`,x=d[p];if(x){const m=u[`${_}tick_values`],b=u[`${_}tick_count`];if(x.domain(c.getYDomain(t,p,f)),!m&&b){const y=c.axis[p],v=x.domain();y.tickValues(this.generateTickValues(v,v.every($=>$===0)?1:b,this.isTimeSeriesY()))}}}),this.redraw(i,c.hasArcType(),a),this.updateLabels(s.Transition),(s.UpdateXDomain||s.UpdateXAxis||s.Y)&&t.length&&this.setCulling(),s.Y&&((r=d.subY)==null||r.domain(c.getYDomain(t,"y")),(l=d.subY2)==null||l.domain(c.getYDomain(t,"y2")))}setCulling(){const t=this.owner,{config:s,state:{clip:i,current:n},$el:a}=t;["subX","x","y","y2"].forEach(o=>{const r=a.axis[o],c=`axis_${o==="subX"?"x":o}_tick_culling`,u=s[c];if(r&&u){const d=r.selectAll(".tick"),h=Zt(d.data()),g=h.length,f=s[`${c}_max`],p=s[`${c}_lines`];let _;if(g){for(let x=1;x{var c,u,d;if(o[l]=(c=a[l])==null?void 0:c.append("text").classed(st[`axis${l.toUpperCase()}Tooltip`],!0).attr("filter",s.updateTextBGColor({id:l},r)),i){const h=l==="x"?"x":"y",g=l==="y"?"1.15em":l==="x"?"-0.3em":"-0.4em";(u=o[l])==null||u.attr(h,g).attr(`d${l==="x"?"y":"x"}`,l==="x"?"0.4em":"-1.3em").style("text-anchor",l==="x"?"end":null)}else{const h=l==="x"?"y":"x",g=l==="x"?"1.15em":`${l==="y"?"-":""}0.4em`;(d=o[l])==null||d.attr(h,g).attr(`d${l==="x"?"x":"y"}`,l==="x"?"-1em":"0.3em").style("text-anchor",l==="y"?"end":null)}})}}var ao={initEventRect(){this.$el.main.select(`.${I.chart}`).append("g").attr("class",yt.eventRects).style("fill-opacity","0")},redrawEventRect(){var e;const t=this,{config:s,state:i,$el:n}=t,a=t.isMultipleX(),o=s.axis_x_inverted;if(n.eventRect)t.updateEventRect(n.eventRect,!0);else if(t.data.targets.length){const l=t.$el.main.select(`.${yt.eventRects}`).style("cursor",s.zoom_enabled&&s.zoom_type!=="drag"?s.axis_rotated?"ns-resize":"ew-resize":null).classed(yt.eventRectsMultiple,a).classed(yt.eventRectsSingle,!a).selectAll(`.${yt.eventRect}`).data([0]).enter().append("rect");t.updateEventRect(l),t.updateEventType(l),l.call(t.getDraggableSelection()),n.eventRect=l,t.state.inputType==="touch"&&!n.svg.on("touchstart.eventRect")&&!t.hasArcType()&&t.bindTouchOnEventRect(),i.rendered&&t.updateEventRect(n.eventRect,!0)}if(!a){const r=t.getMaxDataCountTarget();(!s.data_xSort||o)&&r.sort((l,c)=>o?c.x-l.x:l.x-c.x),t.updateDataIndexByX(r),t.updateXs(r),(e=t.updatePointClass)==null||e.call(t,!0),i.eventReceiver.data=r}t.updateEventRectData()},bindTouchOnEventRect(){const e=this,{config:t,state:s,$el:{eventRect:i,svg:n}}=e,a=h=>{if(e.isMultipleX())e.selectRectForMultipleXs(h);else{const g=e.getDataIndexFromEvent(s.event);e.callOverOutForTouch(g),g===-1?e.unselectRect():e.selectRectForSingle(h,g)}},o=()=>{e.unselectRect(),e.callOverOutForTouch()},r=t.interaction_inputType_touch.preventDefault,l=Ce(r)&&r||!1,c=!isNaN(r)&&r||null;let u;const d=h=>{const g=h.type,p=h.changedTouches[0][`client${t.axis_rotated?"Y":"X"}`];g==="touchstart"?l?h.preventDefault():c!==null&&(u=p):g==="touchmove"&&(l||u===!0||c!==null&&Math.abs(u-p)>=c)&&(u=!0,h.preventDefault())};i.on("touchstart",h=>{s.event=h,e.updateEventRect()}).on("touchstart.eventRect touchmove.eventRect",h=>{if(s.event=h,!i.empty()&&i.classed(yt.eventRect)){if(s.dragging||s.flowing||e.hasArcType()||h.touches.length>1)return;d(h),a(i.node())}else o()},!0).on("touchend.eventRect",h=>{s.event=h,!i.empty()&&i.classed(yt.eventRect)&&(e.hasArcType()||!e.toggleShape||s.cancelClick)&&s.cancelClick&&(s.cancelClick=!1)},!0),n.on("touchstart",h=>{s.event=h;const{target:g}=h;g&&g!==i.node()&&o()})},updateEventRect(e,t=!1){const s=this,{state:i,$el:n}=s,{eventReceiver:a,width:o,height:r,rendered:l,resizing:c}=i,u=e||n.eventRect,d=()=>{if(a){const h=ls(n.chart.node());a.rect=u.node().getBoundingClientRect().toJSON(),a.rect.top+=h.y,a.rect.left+=h.x}};(!l||c||t)&&(u.attr("x",0).attr("y",0).attr("width",o).attr("height",r),(!l||t)&&u.classed(yt.eventRect,!0)),d()},updateEventType(e){const t=this,s=Ce(e),i=s?t.$el.eventRect:e,n=s?e!==(i==null?void 0:i.datum().multipleX):!1;i&&(n&&(i==null||i.on("mouseover mousemove mouseout click",null)),t.isMultipleX()?t.generateEventRectsForMultipleXs(i):t.generateEventRectsForSingleX(i))},updateEventRectData(){const e=this,{config:t,scale:s,state:i}=e,n=s.zoom||s.x,a=t.axis_rotated,o=e.isMultipleX();let r,l,c,u;if(e.updateEventType(o),o)r=0,l=0,c=i.width,u=i.height;else{let g,f;if(e.axis.isCategorized())g=e.getEventRectWidth(),f=p=>n(p.x)-g/2;else{const p=({index:_})=>({prev:e.getPrevX(_),next:e.getNextX(_)});g=_=>{const x=p(_),m=n.domain();let b;return x.prev===null&&x.next===null?b=a?i.height:i.width:x.prev===null?b=(n(x.next)+n(_.x))/2:x.next===null?b=n(m[1])-(n(x.prev)+n(_.x))/2:(Object.keys(x).forEach((y,v)=>{var $;x[y]=($=x[y])!=null?$:m[v]}),b=Math.max(0,(n(x.next)-n(x.prev))/2)),b},f=_=>{const x=p(_);let m;return x.prev===null&&x.next===null?m=0:x.prev===null?m=n(n.domain()[0]):m=(n(_.x)+n(x.prev))/2,m}}r=a?0:f,l=a?f:0,c=a?i.width:g,u=a?g:i.height}const{eventReceiver:d}=i,h=(g,f)=>L(g)?g(f):g;d.coords.splice(d.data.length),d.data.forEach((g,f)=>{d.coords[f]={x:h(r,g),y:h(l,g),w:h(c,g),h:h(u,g)}})},selectRectForSingle(e,t){var s,i;const n=this,{config:a,$el:{main:o,circle:r}}=n,l=a.data_selection_enabled,c=a.data_selection_grouped,u=a.data_selection_isselectable,d=a.tooltip_grouped,h=n.getAllValuesOnIndex(t);if(d&&(n.showTooltip(h,e),(s=n.showGridFocus)==null||s.call(n,h),!l||c))return;!r&&o.selectAll(`.${I.EXPANDED}:not(.${Q.shape}-${t})`).classed(I.EXPANDED,!1);const g=o.selectAll(`.${Q.shape}-${t}`).classed(I.EXPANDED,!0).style("cursor",u?"pointer":null).filter(function(f){return n.isWithinShape(this,f)});g.empty()&&!d&&((i=n.hideGridFocus)==null||i.call(n),n.hideTooltip(),!c&&n.setExpand(t)),g.call(f=>{var p,_;const x=f.data();l&&(c||u!=null&&u.bind(n.api)(x))&&(e.style.cursor="pointer"),d||(n.showTooltip(x,e),(p=n.showGridFocus)==null||p.call(n,x),(_=n.unexpandCircles)==null||_.call(n),f.each(m=>n.setExpand(t,m.id)))})},selectRectForMultipleXs(e,t=!0){const s=this,{config:i,state:n}=s,a=s.filterTargetsToShow(s.data.targets);if(n.dragging||s.hasArcType(a))return;const o=mt(n.event,e),r=s.findClosestFromTargets(a,o);if(t&&n.mouseover&&(!r||r.id!==n.mouseover.id)&&(i.data_onout.call(s.api,n.mouseover),n.mouseover=void 0),!r){s.unselectRect();return}const c=(s.isBubbleType(r)||s.isScatterType(r)||!i.tooltip_grouped?[r]:s.filterByX(a,r.x)).map(d=>s.addName(d));s.showTooltip(c,e),s.setExpand(r.index,r.id,!0),s.showGridFocus(c);const u=s.dist(r,o);(s.isBarType(r.id)||u{const l=r?t.getDataIndexFromEvent(r):n.currentIdx;return l>-1?n.data[l]:null};a.on("mouseover",r=>{i.event=r,t.updateEventRect(),Object.values(t.$el.axisTooltip).forEach(l=>l==null?void 0:l.style("display",null))}).on("mousemove",function(r){const l=o(r);if(i.event=r,!l)return;let{index:c}=l;const u=s.line_step_type;if(s.line_step_tooltipMatch&&t.hasType("step")&&/^step\-(before|after)$/.test(u)){const h=t.scale.zoom||t.scale.x,g=t.axis.xs[c],f=h.invert(mt(r,this)[0]);u==="step-after"&&fg&&(c+=1)}t.showAxisGridFocus();const d=s.tooltip_grouped&&c===n.currentIdx;if(i.dragging||i.flowing||t.hasArcType()||d){s.tooltip_show&&d&&t.setTooltipPosition();return}c!==n.currentIdx&&(t.setOverOut(!1,n.currentIdx),n.currentIdx=c),c===-1?t.unselectRect():t.selectRectForSingle(this,c),t.setOverOut(c!==-1,c)}).on("mouseout",r=>{i.event=r,!(!s||t.hasArcType()||n.currentIdx===-1)&&(t.hideAxisGridFocus(),t.unselectRect(),t.setOverOut(!1,n.currentIdx),n.currentIdx=-1)})}return a},clickHandlerForSingleX(e,t){const s=t,{config:i,state:n,$el:{main:a}}=s;if(!e||s.hasArcType()||n.cancelClick){n.cancelClick&&(n.cancelClick=!1);return}const{index:o}=e;a.selectAll(`.${Q.shape}-${o}`).each(function(r){var l;(i.data_selection_grouped||s.isWithinShape(this,r))&&((l=s.toggleShape)==null||l.call(s,this,r,o),i.data_onclick.bind(s.api)(r,this))})},generateEventRectsForMultipleXs(e){const t=this,{state:s}=t;e.on("click",function(i){s.event=i,t.clickHandlerForMultipleXS.bind(this)(t)}).datum({multipleX:!0}),s.inputType==="mouse"&&e.on("mouseover mousemove",function(i){s.event=i,t.selectRectForMultipleXs(this)}).on("mouseout",i=>{s.event=i,!(!t.config||t.hasArcType())&&t.unselectRect()})},clickHandlerForMultipleXS(e){const t=e,{config:s,state:i}=t,n=t.filterTargetsToShow(t.data.targets);if(t.hasArcType(n))return;const a=mt(i.event,this),o=t.findClosestFromTargets(n,a),r=s.point_sensitivity==="radius"?o.r:s.point_sensitivity;o&&(t.isBarType(o.id)||t.dist(o,a){r.values.splice(0,a)}),t.updateXGrid&&t.updateXGrid(!0);const o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(r=>{const l=r.split(".");let c=n[l[0]];c&&l.length>1&&(c=c[l[1]]),c!=null&&c.size()&&(o[r]=c)}),t.hideGridFocus(),t.setFlowList(o,e)}},setFlowList(e,t){const s=this,{flow:i,targets:n}=t,{duration:a=t.duration,index:o,length:r,orgDataCount:l}=i,c=s.getFlowTransform(n,l,o,r),u=ps();let d;u.add(Object.keys(e).map(h=>(d=e[h].transition().ease(oo.easeLinear).duration(a),h==="axis.x"?d=d.call(g=>{s.axis.x.setTransition(g).create(g)}):h==="region.list"?d=d.filter(s.isRegionOnX).attr("transform",c):d=d.attr("transform",c),d))),d.call(u,()=>{s.cleanUpFlow(e,t)})},cleanUpFlow(e,t){const s=this,{config:i,state:n,$el:{svg:a}}=s,o=i.axis_rotated,{flow:r,shape:l,xv:c}=t,{cx:u,cy:d,xForText:h,yForText:g}=l.pos,{done:f=()=>{},length:p}=r;p&&(["circle","text","shape","eventRect"].forEach(_=>{const x=[];for(let m=0;m{const x=e[_];if(_!=="axis.x"&&x.attr("transform",null),_==="grid.x")x.attr(n.xgridAttr);else if(_==="gridLines.x")x.attr("x1",o?0:c).attr("x2",o?n.width:c),x.select("text").attr("x",o?n.width:0).attr("y",c);else if(/^(area|bar|line)$/.test(_))x.attr("d",l.type[_]);else if(_==="text")x.attr("x",h).attr("y",g).style("fill-opacity",s.opacityForText.bind(s));else if(_==="circle")if(s.isCirclePoint())x.attr("cx",u).attr("cy",d);else{const m=y=>u(y)-i.point_r,b=y=>d(y)-i.point_r;x.attr("x",m).attr("y",b)}else _==="region.list"&&x.select("rect").filter(s.isRegionOnX).attr("x",s.regionX.bind(s)).attr("width",s.regionWidth.bind(s))}),i.interaction_enabled&&s.redrawEventRect(),f.call(s.api),n.flowing=!1},getFlowTransform(e,t,s,i){const n=this,{data:a,scale:{x:o}}=n,r=a.targets[0].values;let l=n.getValueOnIndex(r,s),c=n.getValueOnIndex(r,s+i),u;const d=o.domain(),h=n.updateXDomain(e,!0,!0);t?t===1||(l==null?void 0:l.x)===(c==null?void 0:c.x)?u=o(d[0])-o(h[0]):u=n.axis.isTimeSeries()?o(d[0])-o(h[0]):o((l==null?void 0:l.x)||0)-o(c.x):r.length!==1?u=o(d[0])-o(h[0]):n.axis.isTimeSeries()?(l=n.getValueOnIndex(r,0),c=n.getValueOnIndex(r,r.length-1),u=o(l.x)-o(c.x)):u=Xt(h)/2;const g=Xt(d)/Xt(h);return`translate(${u},0) scale(${g},1)`}},lo={initClip(){const e=this,{clip:t,datetimeId:s}=e.state;t.id=`${s}-clip`,t.idXAxis=`${t.id}-xaxis`,t.idYAxis=`${t.id}-yaxis`,t.idGrid=`${t.id}-grid`,t.path=e.getClipPath(t.id),t.pathXAxis=e.getClipPath(t.idXAxis),t.pathYAxis=e.getClipPath(t.idYAxis),t.pathGrid=e.getClipPath(t.idGrid)},getClipPath(e){const t=this,{config:s}=t;return!s.clipPath&&/-clip$/.test(e)||!s.axis_x_clipPath&&/-clip-xaxis$/.test(e)||!s.axis_y_clipPath&&/-clip-yaxis$/.test(e)?null:`url(#${e})`},appendClip(e,t){t&&e.append("clipPath").attr("id",t).append("rect")},setXAxisClipPath(e){const t=this,{config:s,state:{margin:i,width:n,height:a}}=t,o=s.axis_rotated,r=Math.max(30,i.left)-(o?0:20),l=(o?i.top+a+10:i.bottom)+20,c=o?-(1+r):-(r-1),u=-15,d=o?i.left+20:n+10+r;e.attr("x",c).attr("y",u).attr("width",d).attr("height",l)},setYAxisClipPath(e){const t=this,{config:s,state:{margin:i,width:n,height:a}}=t,o=s.axis_rotated,r=Math.max(30,i.left)-(o?20:0),l=s.axis_y_inner,c=l&&!o?s.axis_y_label.text?-20:-1:o?-(1+r):-(r-1),u=-(o?20:i.top),d=(o?n+15+r:i.left+20)+(l?20:0),h=(o?i.bottom+10:i.top+a)+10;e.attr("x",c).attr("y",u).attr("width",d).attr("height",h)},updateXAxisTickClip(){const e=this,{config:t,state:{clip:s,xAxisHeight:i},$el:{defs:n}}=e,a=e.getHorizontalAxisHeight("x");if(n&&!s.idXAxisTickTexts){const o=`${s.id}-xaxisticktexts`;e.appendClip(n,o),s.pathXAxisTickTexts=e.getClipPath(s.idXAxisTickTexts),s.idXAxisTickTexts=o}!t.axis_x_tick_multiline&&e.getAxisTickRotate("x")&&a!==i&&(e.setXAxisTickClipWidth(),e.setXAxisTickTextClipPathWidth()),e.state.xAxisHeight=a},setXAxisTickClipWidth(){const e=this,{config:t,state:{current:{maxTickSize:s}}}=e,i=e.getAxisTickRotate("x");if(!t.axis_x_tick_multiline&&i){const n=Math.sin(Math.PI/180*Math.abs(i));s.x.clipPath=(e.getHorizontalAxisHeight("x")-20)/n}else s.x.clipPath=null},setXAxisTickTextClipPathWidth(){const e=this,{state:{clip:t,current:s},$el:{svg:i}}=e;i&&i.select(`#${t.idXAxisTickTexts} rect`).attr("width",s.maxTickSize.x.clipPath).attr("height",30)}};const co=e=>z(e.position)||"end",uo=e=>e.position==="start"?4:e.position==="middle"?0:-4;function Ys(e,t,s){return i=>{let n=e?0:t;return i.position==="start"?n=e?-s:0:i.position==="middle"&&(n=(e?-s:t)/2),n}}function js(e,t){t==="grid"&&e.each(function(){const s=(0,w.select)(this);["x1","x2","y1","y2"].forEach(i=>s.attr(i,Math.ceil(+s.attr(i))))})}var ho={hasGrid(){const{config:e}=this;return["x","y"].some(t=>e[`grid_${t}_show`]||e[`grid_${t}_lines`].length)},initGrid(){const e=this;e.hasGrid()&&e.initGridLines(),e.initFocusGrid()},initGridLines(){const e=this,{config:t,state:{clip:s},$el:i}=e;(t.grid_x_lines.length||t.grid_y_lines.length)&&(i.gridLines.main=i.main.insert("g",`.${I.chart}${t.grid_lines_front?" + *":""}`).attr("clip-path",s.pathGrid).attr("class",`${J.grid} ${J.gridLines}`),i.gridLines.main.append("g").attr("class",J.xgridLines),i.gridLines.main.append("g").attr("class",J.ygridLines),i.gridLines.x=(0,w.selectAll)([]))},updateXGrid(e){const t=this,{config:s,scale:i,state:n,$el:{main:a,grid:o}}=t,r=s.axis_rotated,l=t.generateGridData(s.grid_x_type,i.x),c=t.axis.isCategorized()?t.axis.x.tickOffset():0,u=d=>(i.zoom||i.x)(d)+c*(r?-1:1);n.xgridAttr=r?{x1:0,x2:n.width,y1:u,y2:u}:{x1:u,x2:u,y1:0,y2:n.height},o.x=a.select(`.${J.xgrids}`).selectAll(`.${J.xgrid}`).data(l),o.x.exit().remove(),o.x=o.x.enter().append("line").attr("class",J.xgrid).merge(o.x),e||o.x.each(function(){const d=(0,w.select)(this);Object.keys(n.xgridAttr).forEach(h=>{d.attr(h,n.xgridAttr[h]).style("opacity",()=>d.attr(r?"y1":"x1")===(r?n.height:0)?"0":null)})})},updateYGrid(){const e=this,{axis:t,config:s,scale:i,state:n,$el:{grid:a,main:o}}=e,r=s.axis_rotated,l=u=>Math.ceil(i.y(u)),c=t.y.getGeneratedTicks(s.grid_y_ticks)||e.scale.y.ticks(s.grid_y_ticks);a.y=o.select(`.${J.ygrids}`).selectAll(`.${J.ygrid}`).data(c),a.y.exit().remove(),a.y=a.y.enter().append("line").attr("class",J.ygrid).merge(a.y),a.y.attr("x1",r?l:0).attr("x2",r?l:n.width).attr("y1",r?0:l).attr("y2",r?n.height:l),js(a.y,"grid")},updateGrid(){const e=this,{$el:{grid:t,gridLines:s}}=e;!s.main&&e.initGridLines(),t.main.style("visibility",e.hasArcType()?"hidden":null),e.hideGridFocus(),e.updateGridLines("x"),e.updateGridLines("y")},updateGridLines(e){const t=this,{config:s,$el:{gridLines:i,main:n},$T:a}=t,o=s.axis_rotated,r=e==="x";s[`grid_${e}_show`]&&t[`update${e.toUpperCase()}Grid`]();let l=n.select(`.${J[`${e}gridLines`]}`).selectAll(`.${J[`${e}gridLine`]}`).data(s[`grid_${e}_lines`]);a(l.exit()).style("opacity","0").remove();const c=l.enter().append("g");c.append("line").style("opacity","0"),l=c.merge(l),l.each(function(u){const d=(0,w.select)(this);d.select("text").empty()&&u.text&&d.append("text").style("opacity","0")}),a(l.attr("class",u=>`${J[`${e}gridLine`]} ${u.class||""}`.trim()).select("text").attr("text-anchor",co).attr("transform",()=>r?o?null:"rotate(-90)":o?"rotate(-90)":null).attr("dx",uo).attr("dy",-5)).text(function(u){var d;return(d=u.text)!=null?d:this.remove()}),i[e]=l},redrawGrid(e){const t=this,{config:{axis_rotated:s},state:{width:i,height:n},$el:{gridLines:a},$T:o}=t,r=t.xv.bind(t),l=t.yv.bind(t);let c=a.x.select("line"),u=a.x.select("text"),d=a.y.select("line"),h=a.y.select("text");return c=o(c,e).attr("x1",s?0:r).attr("x2",s?i:r).attr("y1",s?r:0).attr("y2",s?r:n),u=o(u,e).attr("x",Ys(!s,i,n)).attr("y",r),d=o(d,e).attr("x1",s?l:0).attr("x2",s?l:i).attr("y1",s?0:l).attr("y2",s?n:l),h=o(h,e).attr("x",Ys(s,i,n)).attr("y",l),[c.style("opacity",null),u.style("opacity",null),d.style("opacity",null),h.style("opacity",null)]},initFocusGrid(){const e=this,{config:t,state:{clip:s},$el:i}=e,n=t.grid_front,a=`.${n&&i.gridLines.main?J.gridLines:I.chart}${n?" + *":""}`,o=i.main.insert("g",a).attr("clip-path",s.pathGrid).attr("class",J.grid);if(i.grid.main=o,t.grid_x_show&&o.append("g").attr("class",J.xgrids),t.grid_y_show&&o.append("g").attr("class",J.ygrids),t.axis_tooltip){const r=o.append("g").attr("class","bb-axis-tooltip");r.append("line").attr("class","bb-axis-tooltip-x"),r.append("line").attr("class","bb-axis-tooltip-y")}t.interaction_enabled&&t.grid_focus_show&&!t.axis_tooltip&&(o.append("g").attr("class",W.xgridFocus).append("line").attr("class",W.xgridFocus),t.grid_focus_y&&!t.tooltip_grouped&&o.append("g").attr("class",W.ygridFocus).append("line").attr("class",W.ygridFocus))},showAxisGridFocus(){var e,t;const s=this,{config:i,format:n,state:{event:a,width:o,height:r}}=s,l=i.axis_rotated,[c,u]=mt(a,(e=s.$el.eventRect)==null?void 0:e.node()),d={x:c,y:u};for(const[h,g]of Object.entries(s.$el.axisTooltip)){const f=h==="x"&&!l||h!=="x"&&l?"x":"y",p=d[f];let _=(t=s.scale[h])==null?void 0:t.invert(p);_&&(_=h==="x"&&s.axis.isTimeSeries()?n.xAxisTick(_):_==null?void 0:_.toFixed(2),g==null||g.attr(f,p).text(_))}s.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility",null).each(function(h,g){const f=(0,w.select)(this);g===0?f.attr("x1",c).attr("x2",c).attr("y1",g?0:r).attr("y2",g?r:0):f.attr("x1",g?0:o).attr("x2",g?o:0).attr("y1",u).attr("y2",u)})},hideAxisGridFocus(){const e=this;e.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility","hidden"),Object.values(e.$el.axisTooltip).forEach(t=>t==null?void 0:t.style("display","none"))},showGridFocus(e){var t;const s=this,{config:i,state:{width:n,height:a}}=s,o=i.axis_rotated,r=s.$el.main.selectAll(`line.${W.xgridFocus}, line.${W.ygridFocus}`),l=(e||[r.datum()]).filter(d=>d&&z(s.getBaseValue(d)));if(!i.tooltip_show||l.length===0||!i.axis_x_forceAsSingle&&s.hasType("bubble")||s.hasArcType())return;const c=i.grid_focus_edge&&!i.tooltip_grouped,u=s.xx.bind(s);r.style("visibility",null).data(l.concat(l)).each(function(d){const h=(0,w.select)(this),g={x:u(d),y:s.getYScaleById(d.id)(d.value)};let f;if(h.classed(W.xgridFocus))f=o?[null,g.x,c?g.y:n,g.x]:[g.x,c?g.y:null,g.x,a];else{const p=s.axis.getId(d.id)==="y2";f=o?[g.y,c&&!p?g.x:null,g.y,c&&p?g.x:a]:[c&&p?g.x:null,g.y,c&&!p?g.x:n,g.y]}["x1","y1","x2","y2"].forEach((p,_)=>h.attr(p,f[_]))}),js(r,"grid"),(t=s.showCircleFocus)==null||t.call(s,e)},hideGridFocus(){var e;const t=this,{state:{inputType:s,resizing:i},$el:{main:n}}=t;(s==="mouse"||!i)&&(n.selectAll(`line.${W.xgridFocus}, line.${W.ygridFocus}`).style("visibility","hidden"),(e=t.hideCircleFocus)==null||e.call(t))},updateGridFocus(){var e;const t=this,{state:{inputType:s,width:i,height:n,resizing:a},$el:{grid:o}}=t,r=o.main.select(`line.${W.xgridFocus}`);if(s==="touch")r.empty()?a&&((e=t.showCircleFocus)==null||e.call(t)):t.showGridFocus();else{const l=t.config.axis_rotated;r.attr("x1",l?0:-10).attr("x2",l?i:-10).attr("y1",l?-10:0).attr("y2",l?-10:n)}return!0},generateGridData(e,t){const s=this,i=s.$el.main.select(`.${st.axisX}`).selectAll(".tick").size();let n=[];if(e==="year"){const a=s.getXDomain(),[o,r]=a.map(l=>l.getFullYear());for(let l=o;l<=r;l++)n.push(new Date(`${l}-01-01 00:00:00`))}else n=t.ticks(10),n.length>i&&(n=n.filter(a=>String(a).indexOf(".")<0));return n},getGridFilterToRemove(e){return e?t=>{let s=!1;return(B(e)?e.concat():[e]).forEach(i=>{("value"in i&&t.value===i.value||"class"in i&&t.class===i.class)&&(s=!0)}),s}:()=>!0},removeGridLines(e,t){const s=this,{config:i,$T:n}=s,a=s.getGridFilterToRemove(e),o=u=>!a(u),r=t?J.xgridLines:J.ygridLines,l=t?J.xgridLine:J.ygridLine;n(s.$el.main.select(`.${r}`).selectAll(`.${l}`).filter(a)).style("opacity","0").remove();const c=`grid_${t?"x":"y"}_lines`;i[c]=i[c].filter(o)}},go={initRegion(){const e=this,{$el:t}=e;t.region.main=t.main.insert("g",":first-child").attr("clip-path",e.state.clip.path).attr("class",ae.regions)},updateRegion(){const e=this,{config:t,$el:{region:s},$T:i}=e;s.main||e.initRegion(),s.main.style("visibility",e.hasArcType()?"hidden":null);const n=s.main.selectAll(`.${ae.region}`).data(t.regions);i(n.exit()).style("opacity","0").remove();const a=n.enter().append("g");a.append("rect").style("fill-opacity","0"),s.list=a.merge(n).attr("class",e.classRegion.bind(e)),s.list.each(function(o){var r;(0,w.select)(this).select("text").empty()&&((r=o.label)!=null&&r.text)&&(0,w.select)(this).append("text").style("opacity","0")})},redrawRegion(e){const t=this,{$el:{region:s},$T:i}=t;let n=s.list.select("rect"),a=s.list.selectAll("text");return n=i(n,e).attr("x",t.regionX.bind(t)).attr("y",t.regionY.bind(t)).attr("width",t.regionWidth.bind(t)).attr("height",t.regionHeight.bind(t)),a=i(a,e).attr("transform",o=>{var r;const{x:l=0,y:c=0,rotated:u=!1}=(r=o.label)!=null?r:{};return`translate(${t.regionX.bind(t)(o)+l}, ${t.regionY.bind(t)(o)+c})${u?" rotate(-90)":""}`}).attr("text-anchor",o=>{var r;return(r=o.label)!=null&&r.rotated?"end":null}).attr("dy","1em").style("fill",o=>{var r,l;return(l=(r=o.label)==null?void 0:r.color)!=null?l:null}).text(o=>{var r;return(r=o.label)==null?void 0:r.text}),[n.style("fill-opacity",o=>z(o.opacity)?o.opacity:null).on("end",function(){(0,w.select)(this.parentNode).selectAll("rect:not([x])").remove()}),a.style("opacity",null)]},getRegionXY(e,t){const s=this,{config:i,scale:n}=s,a=i.axis_rotated,o=e==="x";let r="start",l,c=0;return t.axis==="y"||t.axis==="y2"?(o||(r="end"),(o?a:!a)&&r in t&&(l=n[t.axis],c=l(t[r]))):(o?!a:a)&&r in t&&(l=n.zoom||n.x,c=l(s.axis.isTimeSeries()?_t.call(s,t[r]):t[r])),c},regionX(e){return this.getRegionXY("x",e)},regionY(e){return this.getRegionXY("y",e)},getRegionSize(e,t){const s=this,{config:i,scale:n,state:a}=s,o=i.axis_rotated,r=e==="width",l=s[r?"regionX":"regionY"](t);let c,u="end",d=a[e];return t.axis==="y"||t.axis==="y2"?(r||(u="start"),(r?o:!o)&&u in t&&(c=n[t.axis],d=c(t[u]))):(r?!o:o)&&u in t&&(c=n.zoom||n.x,d=c(s.axis.isTimeSeries()?_t.call(s,t[u]):t[u])),d0&&(!n.axis_x_tick_autorotate||i.needToRotateXAxisTickTexts());return(n.axis_x_tick_multiline||_)&&p.height>g&&(f+=p.height-g),f+(i.axis.getLabelPositionById(e).isInner?0:10)+(e==="y2"&&!c?-10:0)},getEventRectWidth(){const e=this,{config:t,axis:s}=e,i=t.axis_x_inverted,n=s.x.tickInterval();return Math.max(0,i?Math.abs(n):n)},getAxisTickRotate(e){const t=this,{axis:s,config:i,state:n,$el:a}=t;let o=i[`axis_${e}_tick_rotate`];if(e==="x"){const r=s.isCategorized()||s.isTimeSeries();if(i.axis_x_tick_fit&&r){const l=i.axis_x_tick_count,c=n.current.maxTickSize.x.ticks.length;let u=0;if(l?u=l>c?c:l:c&&(u=c),u!==n.axis.x.tickCount){const{targets:d}=t.data;n.axis.x.padding=t.getXDomainPadding([t.getXDomainMinMax(d,"min"),t.getXDomainMinMax(d,"max")],u)}n.axis.x.tickCount=u}a.svg&&i.axis_x_tick_autorotate&&i.axis_x_tick_fit&&!i.axis_x_tick_multiline&&!i.axis_x_tick_culling&&r&&(o=t.needToRotateXAxisTickTexts()?i.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts(){const e=this,{state:{axis:t,current:s,isLegendRight:i,legendItemWidth:n}}=e,a=i&&n,o=s.width-a-e.getCurrentPaddingByDirection("left")-e.getCurrentPaddingByDirection("right"),r=t.x.tickCount+t.x.padding.left+t.x.padding.right,{width:l}=e.axis.getMaxTickSize("x"),c=r?o/r:0;return l>c}},po={axis_x_clipPath:!0,axis_x_show:!0,axis_x_forceAsSingle:!1,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_inner:!1,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_inverted:!1,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]},xo={axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:5,axis_y_tick_culling_lines:!0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]},_o={axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_culling_lines:!0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]},mo=Object.defineProperty,Hs=Object.getOwnPropertySymbols,$o=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,Ws=(e,t,s)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ge=(e,t)=>{for(var s in t||(t={}))$o.call(t,s)&&Ws(e,s,t[s]);if(Hs)for(var s of Hs(t))yo.call(t,s)&&Ws(e,s,t[s]);return e},bo=Ge(Ge(Ge({axis_rotated:!1,axis_tooltip:!1},po),xo),_o),vo={grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:void 0,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0},To={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1};const Ao=[Va,Ya,ja,Ha,Wa,Ua,Za],Us={axis:io,clip:lo,eventrect:ao,flow:ro,grid:ho,region:go,sizeAxis:fo},Zs={optDataAxis:To,optAxis:bo,optGrid:vo};var qs=j(13),wo=Object.defineProperty,So=Object.defineProperties,Ro=Object.getOwnPropertyDescriptors,Ks=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Js=(e,t,s)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ko=(e,t)=>{for(var s in t||(t={}))Co.call(t,s)&&Js(e,s,t[s]);if(Ks)for(var s of Ks(t))Eo.call(t,s)&&Js(e,s,t[s]);return e},Lo=(e,t)=>So(e,Ro(t));function Qs(e=0){const t=this,{config:s,state:i}=t,n=t.hasMultiArcGauge(),a=i.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length,o=e?Math.min(i.radiusExpanded*e-i.radius,a*.8-(1-e)*100):0;return{inner(r){const{innerRadius:l}=t.getRadius(r);return n?i.radius-a*(r.index+1):k(l)?l:0},outer(r){const{outerRadius:l}=t.getRadius(r);let c;if(n)c=i.radius-a*r.index+o;else if(t.hasType("polar")&&!e)c=t.getPolarOuterRadius(r,l);else if(c=l,e){let{radiusExpanded:u}=i;i.radius!==l&&(u-=Math.abs(i.radius-l)),c=u*e}return c},corner(r,l){const{arc_cornerRadius_ratio:c=0,arc_cornerRadius:u=0}=s,{data:{id:d},value:h}=r;let g=0;return c?g=c*l:g=k(u)?u:u.call(t.api,d,h,l),g}}}function Ve(e){return function(t){const s=({startAngle:n=0,endAngle:a=0,padAngle:o=0})=>({startAngle:n,endAngle:a,padAngle:o}),i=(0,qs.interpolate)(s(this._current),s(t));return this._current=t,function(n){const a=i(n),{data:o,index:r,value:l}=t;return e(Lo(ko({},a),{data:o,index:r,value:l}))}}}var Po={initPie(){const e=this,{config:t}=e,s=t.data_type,i=t[`${s}_padding`],n=t[`${s}_startingAngle`]||0,a=(i?i*.01:t[`${s}_padAngle`])||0;e.pie=(0,K.pie)().startAngle(n).endAngle(n+2*Math.PI).padAngle(a).value(o=>{var r,l;return(l=(r=o.values)==null?void 0:r.reduce((c,u)=>c+u.value,0))!=null?l:o}).sort(e.getSortCompareFn.bind(e)(!0))},updateRadius(){const e=this,{config:t,state:s}=e,i=t.data_type,n=t[`${i}_padding`],a=t.gauge_width||t.donut_width,o=e.filterTargetsToShow(e.data.targets).length*t.gauge_arcs_minWidth;s.radiusExpanded=Math.min(s.arcWidth,s.arcHeight)/2*(e.hasMultiArcGauge()&&t.gauge_label_show?.85:1),s.radius=s.radiusExpanded*.95,s.innerRadiusRatio=a?(s.radius-a)/s.radius:.6,s.gaugeArcWidth=a||(o<=s.radius-s.innerRadius?s.radius-s.innerRadius:o<=s.radius?o:s.radius);const r=t.pie_innerRadius||(n?n*(s.innerRadiusRatio+.1):0);s.outerRadius=t.pie_outerRadius,s.innerRadius=e.hasType("donut")||e.hasType("gauge")?s.radius*s.innerRadiusRatio:r},getRadius(e){const t=this,s=e==null?void 0:e.data;let{innerRadius:i,outerRadius:n}=t.state;return!k(i)&&s&&(i=i[s.id]||0),M(n)&&s&&s.id in n?n=n[s.id]:k(n)||(n=t.state.radius),{innerRadius:i,outerRadius:n}},updateArc(){const e=this;e.updateRadius(),e.svgArc=e.getSvgArc(),e.svgArcExpanded=e.getSvgArcExpanded()},getArcLength(){const e=this,{config:t}=e,s=t.gauge_arcLength*3.6;let i=2*(s/360);return s<-360?i=-2:s>360&&(i=2),i*Math.PI},getStartingAngle(){const e=this,{config:t}=e,s=t.data_type,i=e.hasType("gauge")?t.gauge_fullCircle:!1,n=-1*Math.PI/2,a=Math.PI/2;let o=t[`${s}_startingAngle`]||0;return!i&&o<=n?o=n:!i&&o>=a?o=a:(o>Math.PI||o<-1*Math.PI)&&(o=Math.PI),o},updateAngle(e,t=!1){var s;const i=this,{config:n,state:a}=i,o=t&&i.hasType("gauge");let{pie:r}=i,l=e,c=!1;if(!n)return null;const u=i.getStartingAngle(),d=n.gauge_fullCircle||t&&!o?i.getArcLength():u*-2;if(l.data&&i.isGaugeType(l.data)&&!i.hasMultiArcGauge()){const{gauge_min:h,gauge_max:g}=n,f=i.getTotalDataSum(a.rendered),p=d*((f-h)/(g-h));r=r.startAngle(u).endAngle(p+u)}if(t===!1&&r(i.filterTargetsToShow()).forEach((h,g)=>{var f;!c&&h.data.id===((f=l.data)==null?void 0:f.id)&&(c=!0,l=h,l.index=g)}),isNaN(l.startAngle)&&(l.startAngle=0),isNaN(l.endAngle)&&(l.endAngle=l.startAngle),t||l.data&&(n.gauge_enforceMinMax||i.hasMultiArcGauge())){const{gauge_min:h,gauge_max:g}=n,f=t&&!o?i.getTotalDataSum(a.rendered):g,p=d/(f-h),_=(s=l.value)!=null?s:0,x=_{const r=t.updateAngle(o),l=i(r);let c=0;return r&&(c=n(r,l)),r?a.cornerRadius(c)(r):"M 0 0"}},getArc(e,t,s){return s||this.isArcType(e.data)?this.svgArc(e,t):"M 0 0"},redrawArcRangeText(){const e=this,{config:t,$el:{arcs:s},state:i,$T:n}=e,a=t.arc_rangeText_format,o=e.hasType("gauge")&&t.arc_rangeText_fixed;let r=t.arc_rangeText_values;if(r!=null&&r.length){const l=t.arc_rangeText_unit==="%",c=e.getTotalDataSum(i.rendered);l&&(r=r.map(h=>c/100*h));const u=e.pie(r).map((h,g)=>(h.index=g,h));let d=s.selectAll(`.${N.arcRange}`).data(r);d.exit(),d=n(d.enter().append("text").attr("class",N.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(h=>{const g=l?h/c*100:h;return L(a)?a(g):`${g}${l?"%":""}`}).merge(d)),(!i.rendered||i.rendered&&!o)&&c>0&&d.attr("transform",(h,g)=>e.transformForArcLabel(u[g],!0)),d.style("opacity",h=>!o&&(h>c||c===0)?"0":null)}},transformForArcLabel(e,t=!1){var s,i,n;const a=this,{config:o,state:{radiusExpanded:r}}=a,l=a.updateAngle(e,t);let c="";if(l){if(t||a.hasMultiArcGauge()){const u=Math.sin(l.endAngle-Math.PI/2),d=o.arc_rangeText_position;let h=Math.cos(l.endAngle-Math.PI/2)*(r+(t?5:25)),g=u*(r+15-Math.abs(u*10))+3;if(t&&d){const f=o.arc_rangeText_values,p=L(d)?d(f[e.index]):d;h+=(s=p==null?void 0:p.x)!=null?s:0,g+=(i=p==null?void 0:p.y)!=null?i:0}c=`translate(${h},${g})`}else if(!a.hasType("gauge")||a.data.targets.length>1){let{outerRadius:u}=a.getRadius(e);a.hasType("polar")&&(u=a.getPolarOuterRadius(e,u));const d=this.svgArc.centroid(l),[h,g]=d.map(_=>isNaN(_)?0:_),f=Math.sqrt(h*h+g*g);let p=(n=["donut","gauge","pie","polar"].filter(a.hasType.bind(a)).map(_=>o[`${_}_label_ratio`]))==null?void 0:n[0];p?p=L(p)?p.bind(a.api)(e,u,f):p:p=u&&(f?(36/u>.375?1.175-36/u:.8)*u/f:0),c=`translate(${h*p},${g*p})`}}return c},convertToArcData(e){return this.addName({id:"data"in e?e.data.id:e.id,value:e.value,ratio:this.getRatio("arc",e),index:e.index})},textForArcLabel(e){const t=this,s=t.hasType("gauge");t.shouldShowArcLabel()&&e.style("fill",t.updateTextColor.bind(t)).attr("filter",i=>t.updateTextBGColor.bind(t)(i,t.config.data_labels_backgroundColors)).each(function(i){var n;const a=(0,w.select)(this),o=t.updateAngle(i),r=t.getRatio("arc",o);if(t.meetsLabelThreshold(r,(n=["donut","gauge","pie","polar"].filter(t.hasType.bind(t)))==null?void 0:n[0])){const{value:c}=o||i,u=(t.getArcLabelFormat()||t.defaultArcValueFormat)(c,r,i.data.id).toString();oe(a,u,[-1,1],s)}else a.text("")})},expandArc(e){const t=this,{state:{transiting:s},$el:i}=t;if(s){const a=setInterval(()=>{s||(clearInterval(a),i.legend.selectAll(`.${W.legendItemFocused}`).size()>0&&t.expandArc(e))},10);return}const n=t.mapToTargetIds(e);i.svg.selectAll(t.selectorTargets(n,`.${N.chartArc}`)).each(function(a){if(!t.shouldExpand(a.data.id))return;const o=t.getExpandConfig(a.data.id,"duration"),r=t.getSvgArcExpanded(t.getExpandConfig(a.data.id,"rate"));(0,w.select)(this).selectAll("path").transition().duration(o).attrTween("d",Ve(t.svgArcExpanded.bind(t))).transition().duration(o*2).attrTween("d",Ve(r.bind(t)))})},unexpandArc(e){const t=this,{state:{transiting:s},$el:{svg:i}}=t;if(s)return;const n=t.mapToTargetIds(e);i.selectAll(t.selectorTargets(n,`.${N.chartArc}`)).selectAll("path").transition().duration(a=>t.getExpandConfig(a.data.id,"duration")).attrTween("d",Ve(t.svgArc.bind(t))),i.selectAll(`${N.arc}`).style("opacity",null)},getExpandConfig(e,t){const s=this,{config:i}=s,n={duration:50,rate:.98};let a;return s.isDonutType(e)?a="donut":s.isGaugeType(e)?a="gauge":s.isPieType(e)&&(a="pie"),a?i[`${a}_expand_${t}`]:n[t]},shouldExpand(e){const t=this,{config:s}=t;return t.isDonutType(e)&&s.donut_expand||t.isGaugeType(e)&&s.gauge_expand||t.isPieType(e)&&s.pie_expand},shouldShowArcLabel(){const e=this,{config:t}=e;return["donut","gauge","pie","polar"].some(s=>e.hasType(s)&&t[`${s}_label_show`])},getArcLabelFormat(){const e=this,{config:t}=e;let s=i=>i;return["donut","gauge","pie","polar"].filter(e.hasType.bind(e)).forEach(i=>{s=t[`${i}_label_format`]}),L(s)?s.bind(e.api):s},updateTargetsForArc(e){const t=this,{$el:s}=t,i=t.hasType("gauge"),n=t.getChartClass("Arc"),a=t.getClass("arcs",!0),o=t.classFocus.bind(t),r=s.main.select(`.${N.chartArcs}`),l=r.selectAll(`.${N.chartArc}`).data(t.pie(e)).attr("class",u=>n(u)+o(u.data)),c=l.enter().append("g").attr("class",n).call(this.setCssRule(!1,`.${N.chartArcs} text`,["pointer-events:none","text-anchor:middle"]));c.append("g").attr("class",a).merge(l),c.append("text").attr("dy",i&&!t.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor",t.getStylePropValue("middle")).style("pointer-events",t.getStylePropValue("none")),s.text=r.selectAll(`.${I.target} text`)},initArc(){const e=this,{$el:t}=e;t.arcs=t.main.select(`.${I.chart}`).append("g").attr("class",N.chartArcs).attr("transform",e.getTranslate("arc")),e.setArcTitle()},setArcTitle(e){const t=this,s=e||t.getArcTitle(),i=t.hasType("gauge");if(s){const n=i?xt.chartArcsGaugeTitle:N.chartArcsTitle;let a=t.$el.arcs.select(`.${n}`);a.empty()&&(a=t.$el.arcs.append("text").attr("class",n).style("text-anchor","middle")),i&&a.attr("dy","-0.3em"),oe(a,s,i?void 0:[-.6,1.35],!0)}},getArcTitle(){const e=this,t=e.hasType("donut")&&"donut"||e.hasType("gauge")&&"gauge";return t?e.config[`${t}_title`]:""},getArcTitleWithNeedleValue(){const e=this,{config:t,state:s}=e,i=e.getArcTitle();if(i&&e.config.arc_needle_show&&/{=[A-Z_]+}/.test(i)){let n=s.current.needle;return k(n)||(n=t.arc_needle_value),$e(i,{NEEDLE_VALUE:k(n)?n:0})}return!1},redrawArc(e,t,s){const i=this,{config:n,state:a,$el:{main:o}}=i,r=n.interaction_enabled,l=r&&n.data_selection_isselectable;let c=o.selectAll(`.${N.arcs}`).selectAll(`.${N.arc}`).data(i.arcData.bind(i));c.exit().transition().duration(t).style("opacity","0").remove(),c=c.enter().append("path").attr("class",i.getClass("arc",!0)).style("fill",u=>i.color(u.data)).style("cursor",u=>{var d;return(d=l==null?void 0:l.bind)!=null&&d.call(l,i.api)(u)?"pointer":null}).style("opacity","0").each(function(u){i.isGaugeType(u.data)&&(u.startAngle=n.gauge_startingAngle,u.endAngle=n.gauge_startingAngle),this._current=u}).merge(c),i.hasType("gauge")&&(i.updateGaugeMax(),i.hasMultiArcGauge()&&i.redrawArcGaugeLine()),c.attr("transform",u=>!i.isGaugeType(u.data)&&s?"scale(0)":"").style("opacity",function(u){return u===this._current?"0":null}).each(()=>{a.transiting=!0}).transition().duration(e).attrTween("d",function(u){const d=i.updateAngle(u);if(!d)return()=>"M 0 0";isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);const h=(0,qs.interpolate)(this._current,d);return this._current=h(0),function(g){const f=h(g);return f.data=u.data,i.getArc(f,!0)}}).attr("transform",s?"scale(1)":"").style("fill",u=>{let d;return i.levelColor?(d=i.levelColor(u.data.values[0].value),n.data_colors[u.data.id]=d):d=i.color(u.data),d}).style("opacity",null).call(xe,function(){if(i.levelColor){const u=(0,w.select)(this),d=u.datum(this._current);i.updateLegendItemColor(d.data.id,u.style("fill"))}a.transiting=!1,Z(n.onrendered,i.api)}),r&&i.bindArcEvent(c),i.hasType("polar")&&i.redrawPolar(),i.hasType("gauge")&&i.redrawBackgroundArcs(),n.arc_needle_show&&i.redrawNeedle(),i.redrawArcText(e),i.redrawArcRangeText()},redrawNeedle(){const e=this,{$el:t,config:s,state:{hiddenTargetIds:i,radius:n}}=e,a=(n-1)/100*s.arc_needle_length,o=i.length!==e.data.targets.length;let r=e.$el.arcs.select(`.${N.needle}`);const l=s.arc_needle_path,c=s.arc_needle_bottom_width/2,u=s.arc_needle_top_width/2,d=s.arc_needle_top_rx,h=s.arc_needle_top_ry,g=s.arc_needle_bottom_len,f=s.arc_needle_bottom_rx,p=s.arc_needle_bottom_ry,_=e.getNeedleAngle(),x=()=>{const m=e.getArcTitleWithNeedleValue();m&&e.setArcTitle(m)};if(x(),r.empty()&&(r=t.arcs.append("path").classed(N.needle,!0),t.needle=r,t.needle.updateHelper=(m,b=!1)=>{t.needle.style("display")!=="none"&&e.$T(t.needle).style("transform",`rotate(${e.getNeedleAngle(m)}deg)`).call(xe,()=>{b&&(s.arc_needle_value=m),x()})}),o){const m=L(l)?l.call(e,a):`M-${c} ${g} A${f} ${p} 0 0 0 ${c} ${g} L${u} -${a} A${d} ${h} 0 0 0 -${u} -${a} L-${c} ${g} Z`;e.$T(r).attr("d",m).style("fill",s.arc_needle_color).style("display",null).style("transform",`rotate(${_}deg)`)}else r.style("display","none")},getNeedleAngle(e){const t=this,{config:s,state:i}=t,n=t.getArcLength(),a=t.hasType("gauge"),o=t.getTotalDataSum(!0);let r=Y(e)?e:s.arc_needle_value,l=s[`${s.data_type}_startingAngle`]||0,c=0;if(k(r)||(r=a&&t.data.targets.length===1?o:0),i.current.needle=r,a){l=t.getStartingAngle();const u=s.gauge_fullCircle?n:l*-2,{gauge_min:d,gauge_max:h}=s;c=u*((r-d)/(h-d))}else c=n*(r/o);return(l+c)*(180/Math.PI)},redrawBackgroundArcs(){const e=this,{config:t,state:s}=e,i=e.hasMultiArcGauge(),n=t.gauge_fullCircle,a=e.filterTargetsToShow(e.data.targets).length===0&&!!t.data_empty_label_text,o=e.getStartingAngle(),r=n?o+e.getArcLength():o*-1;let l=e.$el.arcs.select(`${i?"g":""}.${N.chartArcsBackground}`);if(i){let c=0;l=l.selectAll(`path.${N.chartArcsBackground}`).data(e.data.targets),l.enter().append("path").attr("class",(u,d)=>`${N.chartArcsBackground} ${N.chartArcsBackground}-${d}`).merge(l).style("fill",t.gauge_background||null).attr("d",({id:u})=>{if(a||s.hiddenTargetIds.indexOf(u)>=0)return"M 0 0";const d={data:[{value:t.gauge_max}],startAngle:o,endAngle:r,index:c++};return e.getArc(d,!0,!0)}),l.exit().remove()}else l.attr("d",a?"M 0 0":()=>{const c={data:[{value:t.gauge_max}],startAngle:o,endAngle:r};return e.getArc(c,!0,!0)})},bindArcEvent(e){const t=this,{config:s,state:i}=t,n=i.inputType==="touch",a=i.inputType==="mouse";function o(l,c,u){t.expandArc(u),t.api.focus(u),t.toggleFocusLegend(u,!0),t.showTooltip([c],l)}function r(l){const c=(l==null?void 0:l.id)||void 0;t.unexpandArc(c),t.api.revert(),t.revertLegend(),t.hideTooltip()}if(e.on("click",function(l,c,u){var d;const h=t.updateAngle(c);let g;h&&(g=t.convertToArcData(h),(d=t.toggleShape)==null||d.call(t,this,g,u),s.data_onclick.bind(t.api)(g,this))}),a&&e.on("mouseover",function(l,c){if(i.transiting)return;i.event=l;const u=t.updateAngle(c),d=u?t.convertToArcData(u):null,h=(d==null?void 0:d.id)||void 0;o(this,d,h),t.setOverOut(!0,d)}).on("mouseout",(l,c)=>{if(i.transiting)return;i.event=l;const u=t.updateAngle(c),d=u?t.convertToArcData(u):null;r(),t.setOverOut(!1,d)}).on("mousemove",function(l,c){const u=t.updateAngle(c),d=u?t.convertToArcData(u):null;i.event=l,t.showTooltip([d],this)}),n&&t.hasArcType()&&!t.radars){const l=c=>{var u,d;const{clientX:h,clientY:g}=(d=(u=c.changedTouches)==null?void 0:u[0])!=null?d:{clientX:0,clientY:0};return(0,w.select)(it.elementFromPoint(h,g))};t.$el.svg.on("touchstart touchmove",function(c){if(i.transiting)return;i.event=c;const d=l(c).datum(),h=d!=null&&d.data&&d.data.id?t.updateAngle(d):null,g=h?t.convertToArcData(h):null,f=(g==null?void 0:g.id)||void 0;t.callOverOutForTouch(g),tt(f)?r():o(this,g,f)})}},redrawArcText(e){const t=this,{config:s,state:i,$el:{main:n,arcs:a}}=t,o=t.hasType("gauge"),r=t.hasMultiArcGauge();let l;if(o&&t.data.targets.length===1&&s.gauge_title||(l=n.selectAll(`.${N.chartArc}`).select("text").style("opacity","0").attr("class",c=>t.isGaugeType(c.data)?xt.gaugeValue:null).call(t.textForArcLabel.bind(t)).attr("transform",c=>t.transformForArcLabel.bind(t)(c)).style("font-size",c=>t.isGaugeType(c.data)&&t.data.targets.length===1&&!r?`${Math.round(i.radius/5)}px`:null).transition().duration(e).style("opacity",c=>t.isTargetToShow(c.data.id)&&t.isArcType(c.data)?null:"0"),r&&l.attr("dy","-.1em")),n.select(`.${N.chartArcsTitle}`).style("opacity",t.hasType("donut")||o?null:"0"),o){const c=s.gauge_fullCircle;c&&(l==null||l.attr("dy",`${r?0:Math.round(i.radius/14)}`)),s.gauge_label_show&&(a.select(`.${xt.chartArcsGaugeUnit}`).attr("dy",`${c?1.5:.75}em`).text(s.gauge_units),a.select(`.${xt.chartArcsGaugeMin}`).attr("dx",`${-1*(i.innerRadius+(i.radius-i.innerRadius)/(c?1:2))}px`).attr("dy","1.2em").text(t.textForGaugeMinMax(s.gauge_min,!1)),!c&&a.select(`.${xt.chartArcsGaugeMax}`).attr("dx",`${i.innerRadius+(i.radius-i.innerRadius)/2}px`).attr("dy","1.2em").text(t.textForGaugeMinMax(s.gauge_max,!0)))}},getArcElementByIdOrIndex(e){const t=this,{$el:{arcs:s}}=t,i=k(e)?n=>n.index===e:n=>n.data.id===e;return s==null?void 0:s.selectAll(`.${I.target} path`).filter(i)}},Kt={initArea(e){const t=this,{config:s}=t;e.insert("g",`.${s.area_front?ct.circles:St.lines}`).attr("class",t.getClass("areas",!0))},updateAreaColor(e){const t=this;return t.config.area_linearGradient?t.getGradienColortUrl(e.id):t.color(e)},updateArea(e,t=!1){const s=this,{config:i,state:n,$el:a,$T:o}=s,r=t?a.subchart:a;i.area_linearGradient&&s.updateLinearGradient();const l=r.main.selectAll(`.${he.areas}`).selectAll(`.${he.area}`).data(s.lineData.bind(s));o(l.exit(),e).style("opacity","0").remove(),r.area=l.enter().append("path").attr("class",s.getClass("area",!0)).style("fill",s.updateAreaColor.bind(s)).style("opacity",function(){return n.orgAreaOpacity=(0,w.select)(this).style("opacity"),"0"}).merge(l),l.style("opacity",n.orgAreaOpacity),s.setRatioForGroupedData(r.area.data())},redrawArea(e,t,s=!1){const i=this,{area:n}=s?this.$el.subchart:this.$el,{orgAreaOpacity:a}=i.state;return[i.$T(n,t,Rt()).attr("d",e).style("fill",i.updateAreaColor.bind(i)).style("opacity",o=>String(i.isAreaRangeType(o)?a/1.75:a))]},generateDrawArea(e,t){const s=this,{config:i}=s,n=i.line_connectNull,a=i.axis_rotated,o=s.generateGetAreaPoints(e,t),r=s.getYScaleById.bind(s),l=d=>(t?s.subxx:s.xx).call(s,d),c=(d,h)=>s.isGrouped(d.id)?o(d,h)[0][1]:r(d.id,t)(s.isAreaRangeType(d)?s.getRangedData(d,"high"):s.getShapeYMin(d.id)),u=(d,h)=>s.isGrouped(d.id)?o(d,h)[1][1]:r(d.id,t)(s.isAreaRangeType(d)?s.getRangedData(d,"low"):d.value);return d=>{let h=n?s.filterRemoveNull(d.values):d.values,g=0,f=0,p;if(s.isAreaType(d)){let _=(0,K.area)();_=a?_.y(l).x0(c).x1(u):_.x(l).y0(i.area_above?0:i.area_below?s.state.height:c).y1(u),n||(_=_.defined(x=>s.getBaseValue(x)!==null)),s.isStepType(d)&&(h=s.convertValuesToStep(h)),p=_.curve(s.getCurve(d))(h)}else h[0]&&(g=s.scale.x(h[0].x),f=s.getYScaleById(d.id)(h[0].value)),p=a?`M ${f} ${g}`:`M ${g} ${f}`;return p||"M 0 0"}},generateGetAreaPoints(e,t){const s=this,{config:i}=s,n=s.getShapeX(0,e,t),a=s.getShapeY(!!t),o=s.getShapeOffset(s.isAreaType,e,t),r=s.getYScaleById.bind(s);return function(l,c){const u=r.call(s,l.id,t)(s.getShapeYMin(l.id)),d=o(l,c)||u,h=n(l),g=l.value;let f=a(l);return i.axis_rotated&&(g>0&&fu.values.some(d=>k(d.value)||t.isBarRangeType(d)))).attr("class",u=>n(u)+o(u)).enter().append("g").attr("class",n).style("opacity","0").style("pointer-events",t.getStylePropValue("none")).append("g").attr("class",a).style("cursor",u=>{var d;return(d=r==null?void 0:r.bind)!=null&&d.call(r,t.api)(u)?"pointer":null}).call(t.setCssRule(!0,` .${$t.bar}`,["fill"],t.color))},updateBar(e,t=!1){const s=this,{config:i,$el:n,$T:a}=s,o=t?n.subchart:n,r=s.getClass("bar",!0),l=s.initialOpacity.bind(s);i.bar_linearGradient&&s.updateLinearGradient();const c=o.main.selectAll(`.${$t.bars}`).selectAll(`.${$t.bar}`).data(s.labelishData.bind(s));a(c.exit(),e).style("opacity","0").remove(),o.bar=c.enter().append("path").attr("class",r).style("fill",s.updateBarColor.bind(s)).merge(c).style("opacity",l),s.setRatioForGroupedData(o.bar.data())},updateBarColor(e){const t=this,s=t.getStylePropValue(t.color);return t.config.bar_linearGradient?t.getGradienColortUrl(e.id):s?s(e):null},redrawBar(e,t,s=!1){const i=this,{bar:n}=s?i.$el.subchart:i.$el;return[i.$T(n,t,Rt()).attr("d",a=>(k(a.value)||i.isBarRangeType(a))&&e(a)).style("fill",i.updateBarColor.bind(i)).style("opacity",null)]},generateDrawBar(e,t){const s=this,{config:i}=s,n=s.generateGetBarPoints(e,t),a=i.axis_rotated,o=i.bar_radius,r=i.bar_radius_ratio,l=k(o)&&o>0?()=>o:k(r)?c=>c*r:null;return(c,u)=>{const d=n(c,u),h=+a,g=+!h,f=c.value<0,p=i[`axis_${s.axis.getId(c.id)}_inverted`],_=!p&&f||p&&!f,x=["",""];let m=0;const b=s.isGrouped(c.id),y=l&&b?s.isStackingRadiusData(c):!1;if(l){const $=a?g:h,T=d[2][$]-d[0][$];m=!b||y?l(T):0;const S=`a${m},${m} ${_?"1 0 0":"0 0 1"} `;x[+!a]=`${S}${m},${m}`,x[+a]=`${S}${[-m,m][a?"sort":"reverse"]()}`,_&&x.reverse()}const v=a?`H${d[1][h]+(_?m:-m)} ${x[0]}V${d[2][g]-m} ${x[1]}H${d[3][h]}`:`V${d[1][g]+(_?-m:m)} ${x[0]}H${d[2][h]-m} ${x[1]}V${d[3][g]}`;return`M${d[0][h]},${d[0][g]}${v}z`}},isStackingRadiusData(e){const t=this,{$el:s,config:i,data:n,state:a}=t,{id:o,index:r,value:l}=e;if(a.hiddenTargetIds.indexOf(o)>-1){const h=s.bar.filter(g=>g.id===o&&g.value===l);return!h.empty()&&/a\d+/i.test(h.attr("d"))}const c=i.data_groups.find(h=>h.indexOf(o)>-1),d=t.orderTargets(t.filterTargetsToShow(n.targets.filter(t.isBarType,t))).filter(h=>c.indexOf(h.id)>-1).map(h=>h.values.filter(g=>g.index===r&&(k(l)&&l>0?g.value>0:g.value<0))[0]).filter(Boolean).map(h=>h.id);return l!==0&&d.indexOf(o)===d.length-1},generateGetBarPoints(e,t){const s=this,{config:i}=s,n=t?s.axis.subX:s.axis.x,a=s.getIndicesMax(e)+1,o=s.getBarW("bar",n,a),r=s.getShapeX(o,e,!!t),l=s.getShapeY(!!t),c=s.getShapeOffset(s.isBarType,e,!!t),u=s.getYScaleById.bind(s);return(d,h)=>{const{id:g}=d,f=u.call(s,g,t)(s.getShapeYMin(g)),p=c(d,h)||f,_=k(o)?o:o[d.id]||o._$width,x=i[`axis_${s.axis.getId(g)}_inverted`],m=d.value,b=r(d);let y=l(d);i.axis_rotated&&!x&&(m>0&&yt.isBubbleZType(o)?t.getBubbleZData(o.value,"y"):M(o.value)?o.value.mid:o.value)),n=s*s*Math.PI,a=(t.isBubbleZType(e)?t.getBubbleZData(e.value,"z"):e.value)*(n/i);return Math.sqrt(a/Math.PI)},getBubbleZData(e,t){return M(e)?e[t]:e[t==="y"?0:1]}},Do=Object.defineProperty,ti=Object.getOwnPropertySymbols,zo=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,ei=(e,t,s)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Mo=(e,t)=>{for(var s in t||(t={}))zo.call(t,s)&&ei(e,s,t[s]);if(ti)for(var s of ti(t))Fo.call(t,s)&&ei(e,s,t[s]);return e},Xo={initCandlestick(){const{$el:e}=this;e.candlestick=e.main.select(`.${I.chart}`).append("g").attr("class",wt.chartCandlesticks)},updateTargetsForCandlestick(e){const t=this,{$el:s}=t,i=t.getChartClass("Candlestick");s.candlestick||t.initCandlestick(),t.$el.main.select(`.${wt.chartCandlesticks}`).selectAll(`.${wt.chartCandlestick}`).data(e).enter().append("g").attr("class",i).style("pointer-events","none")},updateCandlestick(e,t=!1){const s=this,{$el:i,$T:n}=s,a=t?i.subchart:i,o=s.getClass("candlestick",!0),r=s.initialOpacity.bind(s),l=a.main.selectAll(`.${wt.chartCandlestick}`).selectAll(`.${wt.candlestick}`).data(s.labelishData.bind(s));n(l.exit(),e).style("opacity","0").remove();const c=l.enter().filter(u=>u.value).append("g").attr("class",o);c.append("line"),c.append("path"),a.candlestick=l.merge(c).style("opacity",r)},generateDrawCandlestick(e,t){const s=this,{config:i}=s,n=s.generateGetCandlestickPoints(e,t),a=i.axis_rotated,o=i.candlestick_color_down;return(r,l,c)=>{const u=n(r,l),d=s.getCandlestickData(r),h=d==null?void 0:d._isUp,g=+a,f=+!g;c.classed&&c.classed(wt[h?"valueUp":"valueDown"],!0);const p=a?`H${u[1][1]} V${u[1][0]} H${u[0][1]}`:`V${u[1][1]} H${u[1][0]} V${u[0][1]}`;c.select("path").attr("d",`M${u[0][g]},${u[0][f]}${p}z`).style("fill",m=>(h?s.color(m):M(o)?o[m.id]:o)||s.color(m));const _=c.select("line"),x=a?{x1:u[2][1],x2:u[2][2],y1:u[2][0],y2:u[2][0]}:{x1:u[2][0],x2:u[2][0],y1:u[2][1],y2:u[2][2]};for(const m in x)_.attr(m,x[m])}},generateGetCandlestickPoints(e,t=!1){const s=this,i=t?s.axis.subX:s.axis.x,n=s.getIndicesMax(e)+1,a=s.getBarW("candlestick",i,n),o=s.getShapeX(a,e,!!t),r=s.getShapeY(!!t),l=s.getShapeOffset(s.isBarType,e,!!t),c=s.getYScaleById.bind(s);return(u,d)=>{const h=c.call(s,u.id,t)(s.getShapeYMin(u.id)),g=l(u,d)||h,f=k(a)?a:a[u.id]||a._$width,p=s.getCandlestickData(u);let _;if(p&&k(p.open)&&k(p.close)){const x={start:o(u),end:0};x.end=x.start+f;const m={start:r(p.open),end:r(p.close)},b={x:x.start+f/2,high:r(p.high),low:r(p.low)};m.start-=h-g,_=[[x.start,m.start],[x.end,m.end],[b.x,b.low,b.high]]}else _=[[0,0],[0,0],[0,0,0]];return _}},redrawCandlestick(e,t,s=!1){const i=this,{$el:n,$T:a}=i,{candlestick:o}=s?n.subchart:n,r=Rt(!0);return[o.each(function(l,c){const u=a((0,w.select)(this),t,r);e(l,c,u)}).style("opacity",null)]},getCandlestickData({value:e}){let t;if(B(e)){const[s,i,n,a,o=!1]=e;t={open:s,high:i,low:n,close:a},o!==!1&&(t.volume=o)}else M(e)&&(t=Mo({},e));return t&&(t._isUp=t.close>=t.open),t||null}},Bo=Object.defineProperty,si=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,Go=Object.prototype.propertyIsEnumerable,ii=(e,t,s)=>t in e?Bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Vo=(e,t)=>{for(var s in t||(t={}))No.call(t,s)&&ii(e,s,t[s]);if(si)for(var s of si(t))Go.call(t,s)&&ii(e,s,t[s]);return e};function ve(e=!1){const t=this,{config:s,state:{current:{width:i,height:n}}}=t,a=t.getCurrentPadding(),o=Vo({width:i-(a.left+a.right),height:n-(s.legend_show?t.getLegendHeight()+10:0)-(a.top+a.bottom)},a);if(e){const{width:r,height:l}=ni.call(t,{width:o.width,height:o.height});o.width{let r=a;return M(a)&&(r=e[o?"height":"width"]*a.ratio),r}),{width:i,height:n}}function Yo(e){const t=this,{top:s,left:i,width:n}=ve.call(t,!0),a=[];return e.forEach((o,r)=>{const{ratio:l}=o,c=r>0?a[r-1][2][1]:s;a.push(o.coords=[[i,c],[i+n,c],[i+n,r>0?l+c:l+s],[i,r>0?l+c:l+s],[i,c]])}),a}function ai(e=!1){const t=this,{width:s,height:i,top:n,left:a}=ve.call(t,!0),o=ni.call(t,{width:s,height:i}),r=(s-o.width)/2,l=(s+o.width)/2,c=i-o.height,u=[[0,0],[s,0],[l,c],[l,i],[r,i],[r,c],[0,0]];return e&&u.forEach(d=>{d[0]+=a,d[1]+=n}),`M${u.join("L")}z`}function jo(e){const t=this,{config:s}=t,i=e.map(n=>({id:n.id,value:n.values.reduce((a,o)=>a+o.value,0)}));return s.data_order&&i.sort(t.getSortCompareFn.bind(t)(!0)),oi.call(t,i)}function oi(e){const t=this,{height:s}=ve.call(t),i=t.getTotalDataSum(!0);return e.forEach(n=>{n.ratio=n.value/i*s}),e}var Ho={initFunnel(){const e=this,{$el:t}=e;t.funnel=t.main.select(`.${I.chart}`).append("g").classed(ne.chartFunnels,!0),t.funnel.background=t.funnel.append("path").classed(ne.funnelBackground,!0),e.bindFunnelEvent()},bindFunnelEvent(){const e=this,{$el:{funnel:t},config:s,state:i}=e,n=a=>{var o;const r=a.isTrusted?a.target:(o=i.eventReceiver.rect)==null?void 0:o.node();let l;return/^path$/i.test(r.tagName)&&(i.event=a,l=(0,w.select)(r).datum()),l};if(s.interaction_enabled){const a=i.inputType==="touch";t.on(a?"touchstart":"mouseover mousemove",o=>{const r=n(o);r&&(e.showTooltip([r],o.target),/^(touchstart|mouseover)$/.test(o.type)&&e.setOverOut(!0,r))}).on(a?"touchend":"mouseout",o=>{const r=n(o);e.hideTooltip(),e.setOverOut(!1,r)})}},updateTargetsForFunnel(e){const t=this,{$el:{funnel:s}}=t,i=t.getChartClass("Funnel"),n=t.getClass("funnel",!0);s||t.initFunnel();const a=jo.call(t,e.filter(t.isFunnelType.bind(t))),o=s.selectAll(`.${ne.chartFunnel}`).data(a);o.exit().remove();const r=o.enter().insert("g",`.${ne.funnelBackground}`);r.append("path"),s.path=r.merge(o).attr("class",l=>i(l)).select("path").attr("class",n).style("opacity","0").style("fill",t.color)},updateFunnel(e){const t=this,{$el:{funnel:s}}=t,i=e.map(({id:n})=>n);s.path=s.path.filter(n=>i.indexOf(n.id)>=0)},generateGetFunnelPoints(){const e=this,{$el:{funnel:t}}=e,s=e.filterTargetsToShow(t.path),{top:i,left:n,right:a}=ve.call(e),o=(n-a)/2,r={};let l=i!=null?i:0;return s.each((c,u)=>{var d;r[c.id]=[[o,l],[o,l+=((d=s==null?void 0:s[u])!=null?d:c).ratio]]}),c=>r[c.id]},redrawFunnel(){const e=this,{$T:t,$el:{funnel:s}}=e,i=e.filterTargetsToShow(s.path),n=Yo.call(e,oi.call(e,i.data()));s.attr("clip-path",`path('${ai.bind(e)()}')`),s.background.attr("d",ai.call(e,!0)),t(i).attr("d",(a,o)=>`M${n[o].join("L")}z`).style("opacity","1"),s.selectAll("g").style("opacity",null)}},Wo={initGauge(){const e=this,{config:t,$el:{arcs:s}}=e,i=(n=null,a="")=>{s.append("text").attr("class",n).style("text-anchor","middle").style("pointer-events","none").text(a)};if(e.hasType("gauge")){const n=e.hasMultiArcGauge();s.append(n?"g":"path").attr("class",N.chartArcsBackground).style("fill",!n&&t.gauge_background||null),t.gauge_units&&i(xt.chartArcsGaugeUnit),t.gauge_label_show&&(i(xt.chartArcsGaugeMin),!t.gauge_fullCircle&&i(xt.chartArcsGaugeMax))}},updateGaugeMax(){const e=this,{config:t,state:s}=e,n=e.hasMultiArcGauge()?e.getMinMaxData().max[0].value:e.getTotalDataSum(s.rendered);!t.gauge_enforceMinMax&&n+t.gauge_min*(t.gauge_min>0?-1:1)>t.gauge_max&&(t.gauge_max=n-t.gauge_min)},redrawArcGaugeLine(){const e=this,{config:t,state:s,$el:i}=e,{hiddenTargetIds:n}=e.state,a=i.main.selectAll(`.${N.arcs}`).selectAll(`.${N.arcLabelLine}`).data(e.arcData.bind(e));a.enter().append("rect").attr("class",r=>`${N.arcLabelLine} ${I.target} ${I.target}-${r.data.id}`).merge(a).style("fill",r=>e.levelColor?e.levelColor(r.data.values[0].value):e.color(r.data)).style("display",t.gauge_label_show?null:"none").each(function(r){let l=0;const c=2;let u=0,d=0,h="";if(n.indexOf(r.data.id)<0){const g=e.updateAngle(r),f=s.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length*(g.index+1),p=g.endAngle-Math.PI/2,_=s.radius-f,x=p-(_===0?0:1/_);l=s.radiusExpanded-s.radius+f,u=Math.cos(x)*_,d=Math.sin(x)*_,h=`rotate(${p*180/Math.PI}, ${u}, ${d})`}(0,w.select)(this).attr("x",u).attr("y",d).attr("width",l).attr("height",c).attr("transform",h).style("stroke-dasharray",`0, ${l+c}, 0`)})},textForGaugeMinMax(e,t){const s=this,{config:i}=s,n=i.gauge_label_extents;return L(n)?n.bind(s.api)(e,t):e},getGaugeLabelHeight(){const{config:e}=this;return this.config.gauge_label_show&&!e.gauge_fullCircle?20:0},getPaddingBottomForGauge(){const e=this;return e.getGaugeLabelHeight()*(e.config.gauge_label_show?2:2.5)}},Uo={initLine(){const{$el:e}=this;e.line=e.main.select(`.${I.chart}`).append("g").attr("class",St.chartLines).call(this.setCssRule(!1,`.${St.chartLines}`,["pointer-events:none"]))},updateTargetsForLine(e){const t=this,{$el:{area:s,line:i,main:n}}=t,a=t.getChartClass("Line"),o=t.getClass("lines",!0),r=t.classFocus.bind(t);i||t.initLine();const l=e.filter(d=>!(t.isScatterType(d)||t.isBubbleType(d))),c=n.select(`.${St.chartLines}`).selectAll(`.${St.chartLine}`).data(l).attr("class",d=>a(d)+r(d)),u=c.enter().append("g").attr("class",a).style("opacity","0").style("pointer-events",t.getStylePropValue("none"));if(u.append("g").attr("class",o),t.hasTypeOf("Area")){const d=(!s&&u.empty()?c:u).filter(t.isAreaType.bind(t));t.initArea(d)}t.updateTargetForCircle(l,u)},updateLine(e,t=!1){const s=this,{format:{extraLineClasses:i},$el:n,$T:a}=s,o=t?n.subchart:n,r=o.main.selectAll(`.${St.lines}`).selectAll(`.${St.line}`).data(s.lineData.bind(s));a(r.exit(),e).style("opacity","0").remove(),o.line=r.enter().append("path").attr("class",l=>`${s.getClass("line",!0)(l)} ${i(l)||""}`).style("stroke",s.color).merge(r).style("opacity",s.initialOpacity.bind(s)).attr("transform",null)},redrawLine(e,t,s=!1){const i=this,{$el:n,$T:a}=i,{line:o}=s?n.subchart:n;return[a(o,t,Rt()).attr("d",e).style("stroke",this.color).style("opacity",null)]},getCurve(e){const t=this;return t.config.axis_rotated&&t.isStepType(e)?i=>{const n=t.getInterpolate(e)(i);return n.orgPoint=n.point,n.pointRotated=function(a,o){this._point===1&&(this._point=2);const r=this._y*(1-this._t)+o*this._t;this._context.lineTo(this._x,r),this._context.lineTo(a,r),this._x=a,this._y=o},n.point=function(a,o){this._point===0?this.orgPoint(a,o):this.pointRotated(a,o)},n}:t.getInterpolate(e)},generateDrawLine(e,t){const s=this,{config:i,scale:n}=s,a=i.line_connectNull,o=i.axis_rotated,r=s.generateGetLinePoints(e,t),l=s.getYScaleById.bind(s),c=g=>(t?s.subxx:s.xx).call(s,g),u=(g,f)=>s.isGrouped(g.id)?r(g,f)[0][1]:l(g.id,t)(s.getBaseValue(g));let d=(0,K.line)();d=o?d.x(u).y(c):d.x(c).y(u),a||(d=d.defined(g=>s.getBaseValue(g)!==null));const h=t?n.subX:n.x;return g=>{const f=l(g.id,t);let p=a?s.filterRemoveNull(g.values):g.values,_=0,x=0,m;if(s.isLineType(g)){const b=i.data_regions[g.id];b?m=s.lineWithRegions(p,n.zoom||h,f,b):(s.isStepType(g)&&(p=s.convertValuesToStep(p)),m=d.curve(s.getCurve(g))(p))}else p[0]&&(_=h(p[0].x),x=f(p[0].value)),m=o?`M ${x} ${_}`:`M ${_} ${x}`;return m||"M 0 0"}},lineWithRegions(e,t,s,i){const n=this,{config:a}=n,o=a.axis_rotated,r=n.axis.isTimeSeries(),l=[],c="2 2";let u,d,h,g;if(Y(i)){const y=(v,$)=>tt(v)?$:r?_t.call(n,v):v;for(let v=0,$;$=i[v];v++){const T=y($.start,e[0].x),S=y($.end,e[e.length-1].x),A=$.style||{dasharray:c};l[v]={start:T,end:S,style:A}}}const f=o?y=>s(y.value):y=>t(y.x),p=o?y=>t(y.x):y=>s(y.value),_=y=>`M${y[0][0]},${y[0][1]}L${y[1][0]},${y[1][1]}`,x=r?(y,v,$,T)=>{const S=y.x.getTime(),A=v.x-y.x,R=new Date(S+A*$),P=new Date(S+A*($+T)),F=o?[[s(d($)),t(R)],[s(d($+h)),t(P)]]:[[t(R),s(d($))],[t(P),s(d($+h))]];return _(F)}:(y,v,$,T)=>{const S=t(v.x,!o),A=s(v.value,o),R=$+T,P=t(u($),!o),F=s(d($),o);let E=t(u(R),!o),D=s(d(R),o);return E>S&&(E=S),y.value>v.value&&(o?DA)&&(D=A),_(o?[[F,P],[D,E]]:[[P,F],[E,D]])},m={x:n.axis.getAxisType("x"),y:n.axis.getAxisType("y")};let b="";for(let y=0,v;v=e[y];y++){const $=e[y-1],T=$&&z($.value);let S=n.isWithinRegions(v.x,l);if(z(v.value)){if(tt(l)||!S||!T)b+=`${y&&T?"L":"M"}${f(v)},${p(v)}`;else if(T){S=((S==null?void 0:S.dasharray)||c).split(" ").map(Number),u=Gt(m.x,$.x,v.x),d=Gt(m.y,$.value,v.value);const A=t(v.x)-t($.x),R=s(v.value)-s($.value),P=Math.sqrt(Math.pow(A,2)+Math.pow(R,2));h=S[0]/P,g=h*S[1];for(let F=h;F<=1;F+=g)b+=x($,v,F,h),F+g>=1&&(b+=x($,v,1,0))}}}return b},isWithinRegions(e,t){for(let s=0,i;i=t[s];s++)if(i.startRt();var Te={initialOpacityForCircle(e){const{config:t,state:{withoutFadeIn:s}}=this;let i=t.point_opacity;return tt(i)&&(i=this.getBaseValue(e)!==null&&s[e.id]?this.opacityForCircle(e):"0"),i},opacityForCircle(e){var t;const{config:s}=this;let i=s.point_opacity;return tt(i)&&(i=s.point_show&&!((t=this.isPointFocusOnly)!=null&&t.call(this))?null:"0",i=z(this.getBaseValue(e))?this.isBubbleType(e)||this.isScatterType(e)?"0.5":i:"0"),i},initCircle(){const e=this,{$el:{main:t}}=e;!e.point&&(e.point=e.generatePoint()),(e.hasType("bubble")||e.hasType("scatter"))&&t.select(`.${I.chart} > .${ct.chartCircles}`).empty()&&t.select(`.${I.chart}`).append("g").attr("class",ct.chartCircles)},updateTargetForCircle(e,t){const s=this,{config:i,data:n,$el:a}=s,o=i.interaction_enabled&&i.data_selection_enabled,r=o&&i.data_selection_isselectable,l=s.getClass("circles",!0);if(!i.point_show)return;s.initCircle();let c=e,u=t;if(!c){c=n.targets.filter(h=>this.isScatterType(h)||this.isBubbleType(h));const d=a.main.select(`.${ct.chartCircles}`).style("pointer-events","none").selectAll(`.${ct.circles}`).data(c);d.exit().remove(),u=d.enter()}o&&u.append("g").attr("class",d=>s.generateClass(q.selectedCircles,d.id)),u.append("g").attr("class",l).call(d=>{s.setCssRule(!0,`.${ct.circles}`,["cursor:pointer"],r)(d),s.setCssRule(!0,` .${ct.circle}`,["fill","stroke"],s.color)(d)}).style("opacity",function(){return(0,w.select)(this.parentNode).attr("class").indexOf(ct.chartCircles)>-1?"0":null}),o&&c.forEach(d=>{a.main.selectAll(`.${q.selectedCircles}${s.getTargetSelectorSuffix(d.id)}`).selectAll(`${q.selectedCircle}`).each(h=>{h.value=d.values[h.index].value})})},updateCircle(e=!1){const t=this,{config:s,state:i,$el:n}=t,a=t.isPointFocusOnly(),o=e?n.subchart:n;if(s.point_show&&!i.toggling){s.point_radialGradient&&t.updateLinearGradient();const r=o.main.selectAll(`.${ct.circles}`).selectAll(`.${ct.circle}`).data(l=>t.isLineType(l)&&t.shouldDrawPointsForLine(l)||t.isBubbleType(l)||t.isRadarType(l)||t.isScatterType(l)?a?[l.values[0]]:l.values:[]);r.exit().remove(),r.enter().filter(Boolean).append(t.point("create",this,t.pointR.bind(t),t.updateCircleColor.bind(t))),o.circle=o.main.selectAll(`.${ct.circles} .${ct.circle}`).style("stroke",t.getStylePropValue(t.color)).style("opacity",t.initialOpacityForCircle.bind(t))}},updateCircleColor(e){const t=this,s=t.getStylePropValue(t.color);return t.config.point_radialGradient?t.getGradienColortUrl(e.id):s?s(e):null},redrawCircle(e,t,s,i,n=!1){const a=this,{state:{rendered:o},$el:r,$T:l}=a,c=n?r.subchart:r,u=c.main.selectAll(`.${q.selectedCircle}`);if(!a.config.point_show)return[];const d=a.point("update",a,e,t,a.updateCircleColor.bind(a),s,i,u),h=a.isCirclePoint()?"c":"",g=Rt(),f=a.opacityForCircle.bind(a),p=[];return c.circle.each(function(_){let x=d.bind(this)(_);x=l(x,s||!o,g).style("opacity",f),p.push(x)}),[p,l(u,s).attr(`${h}x`,e).attr(`${h}y`,t)]},showCircleFocus(e){const t=this,{state:{hasRadar:s,resizing:i,toggling:n,transiting:a},$el:o}=t;let{circle:r}=o;if(a===!1&&r&&t.isPointFocusOnly()){const l=(s?t.radarCircleX:t.circleX).bind(t),c=(s?t.radarCircleY:t.circleY).bind(t),u=n||tt(e),d=t.point("update",t,l,c,t.getStylePropValue(t.color),i?!1:u);e&&(r=r.filter(function(h){var g;const f=(g=e.filter)==null?void 0:g.call(e,p=>p.id===h.id);return f.length?(0,w.select)(this).datum(f[0]):!1})),r.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(h){const{id:g,index:f,value:p}=h;let _="hidden";z(p)&&(d.bind(this)(h),t.expandCircles(f,g),_=""),this.style.visibility=_})}},hideCircleFocus(){const e=this,{$el:{circle:t}}=e;e.isPointFocusOnly()&&t&&(e.unexpandCircles(),t.style("visibility","hidden"))},circleX(e){return this.xx(e)},updateCircleY(e=!1){const t=this,s=t.generateGetLinePoints(t.getShapeIndices(t.isLineType),e);return(i,n)=>{const a=i.id;return t.isGrouped(a)?s(i,n)[0][1]:t.getYScaleById(a,e)(t.getBaseValue(i))}},expandCircles(e,t,s){const i=this,n=i.pointExpandedR.bind(i);s&&i.unexpandCircles();const a=i.getShapeByIndex("circle",e,t).classed(I.EXPANDED,!0),o=n(a)/i.config.point_r,r=1-o;i.isCirclePoint()?a.attr("r",n):a.each(function(){const l=(0,w.select)(this);if(this.tagName==="circle")l.attr("r",n);else{const{width:c,height:u}=this.getBBox(),d=r*(+l.attr("x")+c/2),h=r*(+l.attr("y")+u/2);l.attr("transform",`translate(${d} ${h}) scale(${o})`)}})},unexpandCircles(e){const t=this,s=t.pointR.bind(t),i=t.getShapeByIndex("circle",e).filter(function(){return(0,w.select)(this).classed(I.EXPANDED)}).classed(I.EXPANDED,!1);if(i.attr("r",s),!t.isCirclePoint()){const n=s(i)/t.config.point_r;i.attr("transform",n!==1?`scale(${n})`:null)}},pointR(e){const t=this,{config:s}=t,i=s.point_r;let n=i;return t.isBubbleType(e)?n=t.getBubbleR(e):L(i)&&(n=i.bind(t.api)(e)),e.r=n,n},pointExpandedR(e){const t=this,{config:s}=t,i=t.isBubbleType(e)?1.15:1.75;return s.point_focus_expand_enabled?s.point_focus_expand_r||t.pointR(e)*i:t.pointR(e)},pointSelectR(e){const t=this,s=t.config.point_select_r;return L(s)?s(e):s||t.pointR(e)*4},isPointFocusOnly(){const e=this;return e.config.point_focus_only&&!e.hasType("bubble")&&!e.hasType("scatter")&&!e.hasArcType(null,["radar"])},isWithinCircle(e,t){const{config:s,state:i}=this,n=mt(i.event,e),a=(0,w.select)(e),o=this.isCirclePoint(e)?"c":"",r=s.point_sensitivity==="radius"?e.getAttribute("r"):s.point_sensitivity;let l=+a.attr(`${o}x`),c=+a.attr(`${o}y`);if(!(l||c)&&e.nodeType===1){const{x:u,y:d}=_e(e);l=u,c=d}return Math.sqrt(Math.pow(l-n[0],2)+Math.pow(c-n[1],2))<(t||r)},getPointSensitivity(e){const t=this;let s=t.config.point_sensitivity;return L(s)?s=s.call(t.api,e):s==="radius"&&(s=e.r),s},updatePointClass(e){const t=this,{circle:s}=t.$el;let i=!1;return(M(e)||s)&&(i=e===!0?s.each(function(n){let a=t.getClass("circle",!0)(n);this.getAttribute("class").indexOf(I.EXPANDED)>-1&&(a+=` ${I.EXPANDED}`),this.setAttribute("class",a)}):t.getClass("circle",!0)(e)),i},generateGetLinePoints(e,t){const s=this,{config:i}=s,n=s.getShapeX(0,e,t),a=s.getShapeY(t),o=s.getShapeOffset(s.isLineType,e,t),r=s.getYScaleById.bind(s);return(l,c)=>{const u=r.call(s,l.id,t)(s.getShapeYMin(l.id)),d=o(l,c)||u,h=n(l);let g=a(l);i.axis_rotated&&(l.value>0&&gz(g.value)?t(g)-l/2:0,d=g=>z(g.value)?s(g)-c/2:0;let h=e;return n&&(a&&h.attr("x",u),h=r.$T(h,n,Jt()),o&&r.$T(o,n,Jt())),h.attr("x",u).attr("y",d).style("fill",i)}},circle:{create(e,t,s){return e.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",t).style("fill",s).node()},update(e,t,s,i,n,a,o){const r=this;let l=e;return r.hasType("bubble")&&l.attr("r",r.pointR.bind(r)),n&&(a&&l.attr("cx",t),l.attr("cx")&&(l=r.$T(l,n,Jt())),o&&r.$T(l,n,Jt())),l.attr("cx",t).attr("cy",s).style("fill",i)}},rectangle:{create(e,t,s){const i=n=>t(n)*2;return e.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",i).attr("height",i).style("fill",s).node()},update(e,t,s,i,n,a,o){const r=this,l=r.config.point_r,c=h=>t(h)-l,u=h=>s(h)-l;let d=e;return n&&(a&&d.attr("x",c),d=r.$T(d,n,Jt()),o&&r.$T(o,n,Jt())),d.attr("x",c).attr("y",u).style("fill",i)}}};function Zo(e){return Tt(e)&&L(e.create)&&L(e.update)}function qo(e,t){var s;const i=this,n=(l,c)=>{const u=l.attributes;for(let d=0,h;h=u[d];d++)h=h.name,c.setAttribute(h,l.getAttribute(h))},o=new DOMParser().parseFromString(e,"image/svg+xml").documentElement,r=it.createElementNS(w.namespaces.svg,o.nodeName.toLowerCase());if(r.id=t,r.style.fill="inherit",r.style.stroke="inherit",n(o,r),(s=o.childNodes)!=null&&s.length){const l=(0,w.select)(r);"innerHTML"in r?l.html(o.innerHTML):Bt(o.childNodes).forEach(c=>{n(c,l.append(c.tagName).node())})}i.$el.defs.node().appendChild(r)}var Qt={hasValidPointType(e){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(e||this.config.point_type)},hasLegendDefsPoint(){var e;const{config:t}=this;return t.legend_show&&((e=t.point_pattern)==null?void 0:e.length)&&t.legend_usePoint},getDefsPointId(e){const{state:{datetimeId:t}}=this;return`${t}-point${e}`},generatePoint(){const e=this,{$el:t,config:s}=e,i=[],n=et(s.point_pattern)?s.point_pattern:[s.point_type];return function(a,o,...r){return function(l){var c,u,d,h;const g=e.getTargetSelectorSuffix(l.id||((c=l.data)==null?void 0:c.id)||l),f=(0,w.select)(this);i.indexOf(g)<0&&i.push(g);let p=n[i.indexOf(g)%n.length];if(e.hasValidPointType(p))p=e[p];else if(!Zo(p||s.point_type)){const _=e.getDefsPointId(g);if(t.defs.select(`#${_}`).size()<1&&qo.bind(e)(p,_),a==="create")return(u=e.custom)==null?void 0:u.create.bind(o)(f,_,...r);if(a==="update")return(d=e.custom)==null?void 0:d.update.bind(o)(f,...r)}return(h=p[a])==null?void 0:h.bind(o)(f,...r)}}}};function ri(e){const t=e.config.polar_level_max;let s=e.getMinMaxData().max[0].value;return t&&t>s&&(s=t),s}var Ko={initPolar(){const e=this,{$el:{arcs:t},config:s}=e,i=s.polar_level_text_show,n=s.polar_level_text_backgroundColor;t.levels=t.append("g").attr("class",Lt.levels),i&&n&&e.generateTextBGColorFilter(n)},getPolarOuterRadius(e,t){var s;const i=ri(this);return((s=e==null?void 0:e.data.values[0].value)!=null?s:0)/i*t},updateTargetsForPolar(e){this.updateTargetsForArc(e)},redrawPolar(){const e=this,{config:t}=e;t.polar_level_show&&e.updatePolarLevel()},updatePolarLevel(){const e=this,{config:t,state:s,$el:{arcs:{levels:i}}}=e,n=t.polar_level_depth,a=ri(e),o=me(0,n),r=s.radius,l=o.map(h=>r*((h+1)/n)),c=(t.polar_level_text_format||function(){}).bind(e.api),u=i.selectAll(`.${Lt.level}`).data(o);u.exit().remove();const d=u.enter().append("g").attr("class",(h,g)=>`${Lt.level} ${Lt.level}-${g}`);if(d.append("circle"),d.merge(u).selectAll("circle").style("visibility",t.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",h=>l[h]),t.polar_level_text_show){const h=t.polar_level_text_backgroundColor,g=`#${s.datetimeId}-labels-bg${e.getTargetSelectorSuffix(h)}`;d.append("text").style("text-anchor","middle"),d.merge(u).selectAll("text").attr("dy",f=>-l[f]+5).attr("filter",h?`url(${g})`:null).text(f=>c(a/o.length*(f+1)))}}};function Jo(e,t,s,i,n,a){const o=e&&i>0?s-i:i,r=2*Math.PI;return n*(1-a*(t==="x"?Math.sin:Math.cos)(o*r/s))}const te=ft.radarPoints,li=ft.radarTextWidth;var Qo={initRadar(){const e=this,{config:t,state:{current:s},$el:i}=e;e.hasType("radar")&&(i.radar=i.main.select(`.${I.chart}`).append("g").attr("class",Ke.chartRadars),i.radar.levels=i.radar.append("g").attr("class",Lt.levels),i.radar.axes=i.radar.append("g").attr("class",st.axis),i.radar.shapes=i.radar.append("g").attr("class",Q.shapes),s.dataMax=t.radar_axis_max||e.getMinMaxData().max[0].value,t.radar_axis_text_show&&(t.interaction_enabled&&e.bindRadarEvent(),e.updateRadarLevel(),e.updateRadarAxes()))},getRadarSize(){const e=this,{config:t,state:{arcWidth:s,arcHeight:i}}=e,n=t.axis_x_categories.length<4?-20:10,a=(Math.min(s,i)-n)/2;return[a,a]},updateTargetsForRadar(e){const t=this,{config:s}=t;bt(s.axis_x_categories)&&(s.axis_x_categories=me(0,vt("max",e.map(i=>i.values.length)))),t.generateRadarPoints()},getRadarPosition(e,t,s,i){const n=this,{config:a}=n,[o,r]=n.getRadarSize(),l=a.axis_x_categories.length,c=a.radar_direction_clockwise,u=Bt(e).map(d=>Jo(c,d,l,t,Y(s)?s:e==="x"?o:r,k(i)?i:a.radar_size_ratio));return u.length===1?u[0]:u},generateRadarPoints(){const e=this,t=e.data.targets,[s,i]=e.getRadarSize(),n=e.cache.get(te)||{},a=n._size;(!a||a.width!==s&&a.height!==i)&&(t.forEach(o=>{n[o.id]=o.values.map((r,l)=>e.getRadarPosition(["x","y"],l,void 0,e.getRatio("radar",r)))}),n._size={width:s,height:i},e.cache.add(te,n))},redrawRadar(){const e=this,{radar:t,main:s}=e.$el,i=e.getTranslate("radar");i&&(t.attr("transform",i),s.select(`.${ut.chartTexts}`).attr("transform",i),e.generateRadarPoints(),e.updateRadarLevel(),e.updateRadarAxes(),e.updateRadarShape())},generateGetRadarPoints(){const e=this.cache.get(te);return(t,s)=>{const i=e[t.id][s];return[i,i,i,i]}},updateRadarLevel(){const e=this,{config:t,state:s,$el:{radar:i}}=e,[n,a]=e.getRadarSize(),o=t.radar_level_depth,r=t.axis_x_categories.length,l=t.radar_level_text_show,c=i.levels,u=me(0,o),d=t.radar_size_ratio*Math.min(n,a),h=u.map(x=>d*((x+1)/o)),g=(t.radar_level_text_format||function(){}).bind(e.api),f=u.map(x=>{const m=h[x];return me(0,r).map(y=>e.getRadarPosition(["x","y"],y,m,1).join(",")).join(" ")}),p=c.selectAll(`.${Lt.level}`).data(u);p.exit().remove();const _=p.enter().append("g").attr("class",(x,m)=>`${Lt.level} ${Lt.level}-${m}`);_.append("polygon").style("visibility",t.radar_level_show?null:"hidden"),l&&(c.select("text").empty()&&c.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text(()=>g(0)),_.append("text").attr("dx","-.5em").style("text-anchor","end").text(x=>g(s.current.dataMax/u.length*(x+1)))),_.merge(p).attr("transform",x=>`translate(${n-h[x]}, ${a-h[x]})`).selectAll("polygon").attr("points",x=>f[x]),l&&c.selectAll("text").attr("x",x=>tt(x)?n:f[x].split(",")[0]).attr("y",x=>tt(x)?a:0)},updateRadarAxes(){const e=this,{config:t,$el:{radar:s}}=e,[i,n]=e.getRadarSize(),a=t.axis_x_categories;let o=s.axes.selectAll("g").data(a);o.exit().remove();const r=o.enter().append("g").attr("class",(l,c)=>`${st.axis}-${c}`);if(t.radar_axis_line_show&&r.append("line"),t.radar_axis_text_show&&r.append("text"),o=r.merge(o),t.radar_axis_line_show&&o.select("line").attr("x1",i).attr("y1",n).attr("x2",(l,c)=>e.getRadarPosition("x",c)).attr("y2",(l,c)=>e.getRadarPosition("y",c)),t.radar_axis_text_show){const{x:l=0,y:c=0}=t.radar_axis_text_position,u=e.cache.get(li)||0;if(o.select("text").style("text-anchor","middle").attr("dy",".5em").call(d=>{d.each(function(h){oe((0,w.select)(this),String(h),[-.6,1.2])})}).datum((d,h)=>({index:h})).attr("transform",function(d){tt(this.width)&&(this.width=this.getBoundingClientRect().width/2);let h=e.getRadarPosition("x",d.index,void 0,1),g=Math.round(e.getRadarPosition("y",d.index,void 0,1));return h>i?h+=this.width+l:Math.round(h)n?(g/2===n&&this.firstChild.tagName==="tspan"&&this.firstChild.setAttribute("dy","0em"),g+=c):gas(h.node()).width);d.every(h=>h>0)&&e.cache.add(li,d[0]-d[1])}}},bindRadarEvent(){const e=this,{state:t,$el:{radar:s,svg:i}}=e,n=e.isPointFocusOnly(),{inputType:a,transiting:o}=t,r=a==="mouse",l=c=>{t.event=c;const u=e.getDataIndexFromEvent(c),d=tt(u);(r||d)&&(e.hideTooltip(),n?e.hideCircleFocus():e.unexpandCircles(),r?e.setOverOut(!1,u):d&&e.callOverOutForTouch())};s.axes.on(r?"mouseover ":"touchstart",c=>{if(o)return;t.event=c;const u=e.getDataIndexFromEvent(c);e.selectRectForSingle(i.node(),u),r?e.setOverOut(!0,u):e.callOverOutForTouch(u)}).on("mouseout",r?l:null),r||i.on("touchstart",l)},updateRadarShape(){const e=this,t=e.data.targets.filter(a=>e.isRadarType(a)),s=e.cache.get(te),i=e.$el.radar.shapes.selectAll("polygon").data(t),n=i.enter().append("g").attr("class",e.getChartClass("Radar"));e.$T(i.exit()).remove(),n.append("polygon").merge(i).style("fill",e.color).style("stroke",e.color).attr("points",a=>s[a.id].join(" ")),e.updateTargetForCircle(t,n)},radarCircleX(e){return this.cache.get(te)[e.id][e.index][0]},radarCircleY(e){return this.cache.get(te)[e.id][e.index][1]}},Et=j(14);function tr(e,t){const s=this,{scale:{x:i,y:n},state:{width:a}}=s;e.selectAll("g").attr("transform",o=>`translate(${o===t?"0,0":`${i(o.x0)},${n(o.y0)}`})`).select("rect").attr("width",o=>o===t?a:i(o.x1)-i(o.x0)).attr("height",o=>o===t?0:n(o.y1)-n(o.y0))}function er(e){const t=this;return e.map(s=>{const{id:i,values:n}=s,{value:a}=n[0];return{name:i,id:i,value:a,ratio:t.getRatio("treemap",n[0])}})}function sr(e){const t=this,s=(0,Et.hierarchy)(e).sum(n=>n.value),i=t.getSortCompareFn(!0);return[t.treemap(i?s.sort(i):s)]}var ir={initTreemap(){const e=this,{$el:t,state:{current:{width:s,height:i},clip:n,datetimeId:a}}=e;n.id=`${a}-clip`,e.treemap=(0,Et.treemap)().tile(e.getTreemapTile()),t.defs.append("clipPath").attr("id",n.id).append("rect").attr("width",s).attr("height",i),t.treemap=t.main.select(`.${I.chart}`).attr("clip-path",`url(#${n.id})`).append("g").classed(Qe.chartTreemaps,!0),e.bindTreemapEvent()},bindTreemapEvent(){const e=this,{$el:t,config:s,state:i}=e,n=a=>{var o;const r=a.isTrusted?a.target:(o=i.eventReceiver.rect)==null?void 0:o.node();let l;return/^rect$/i.test(r.tagName)&&(i.event=a,l=(0,w.select)(r).datum()),l==null?void 0:l.data};if(s.interaction_enabled){const a=i.inputType==="touch";t.treemap.on(a?"touchstart":"mouseover mousemove",o=>{const r=n(o);r&&(e.showTooltip([r],o.currentTarget),/^(touchstart|mouseover)$/.test(o.type)&&e.setOverOut(!0,r))}).on(a?"touchend":"mouseout",o=>{const r=n(o);e.hideTooltip(),e.setOverOut(!1,r)})}},getTreemapTile(){var e,t;const s=this,{config:i,state:{current:{width:n,height:a}}}=s,o=(t={binary:Et.treemapBinary,dice:Et.treemapDice,slice:Et.treemapSlice,sliceDice:Et.treemapSliceDice,squarify:Et.treemapSquarify,resquarify:Et.treemapResquarify}[(e=i.treemap_tile)!=null?e:"binary"])!=null?t:Et.treemapBinary;return(r,l,c,u,d)=>{o(r,0,0,n,a);for(const h of r.children)h.x0=l+h.x0/n*(u-l),h.x1=l+h.x1/n*(u-l),h.y0=c+h.y0/a*(d-c),h.y1=c+h.y1/a*(d-c)}},getTreemapData(e){const t=this;return{name:"root",children:er.bind(t)(t.filterTargetsToShow(e.filter(t.isTreemapType,t)))}},updateTargetsForTreemap(e){const t=this,{$el:{treemap:s}}=t,i=sr.call(t,t.getTreemapData(e!=null?e:t.data.targets));s.data(i)},updateTreemap(e){const t=this,{$el:s,$T:i}=t,n=s.treemap.datum(),a=t.getChartClass("Treemap"),o=t.getClass("treemap",!0),r=s.treemap.selectAll("g").data(n.children);i(r.exit(),e).style("opacity","0").remove(),r.enter().append("g").append("rect"),s.treemap.selectAll("g").attr("class",a).select("rect").attr("class",o).attr("fill",l=>t.color(l.data.name))},generateGetTreemapPoints(){const e=this,{$el:t,scale:{x:s,y:i}}=e,n={};return t.treemap.selectAll("g").each(a=>{n[a.data.name]=[[s(a.x0),i(a.y0)],[s(a.x1),i(a.y1)]]}),a=>n[a.id]},redrawTreemap(e){const t=this,{$el:s,state:{current:{width:i,height:n}}}=t;return s.defs.select("rect").attr("width",i).attr("height",n),[t.$T(s.treemap,e,Rt()).call(tr.bind(t),s.treemap.datum())]},treemapDataLabelFormat(e){const t=this,{config:s}=t,{id:i,value:n}=e,a=s.treemap_label_format,o=t.getRatio("treemap",e),r=(o*100).toFixed(2),l=s.treemap_label_show&&t.meetsLabelThreshold(o,"treemap")?null:"0";return function(c){return c.style("opacity",l),L(a)?a.bind(t.api)(n,o,i):`${i} -${r}%`}}},Yt={point_show:!0,point_r:2.5,point_radialGradient:!1,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},ee={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},nr={bar_front:!1,bar_indices_removeNull:!1,bar_label_threshold:0,bar_linearGradient:!1,bar_overlap:!1,bar_padding:0,bar_radius:void 0,bar_radius_ratio:void 0,bar_sensitivity:2,bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0},ar={bubble_maxR:35,bubble_zerobased:!1},or={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},rr={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},lr={scatter_zerobased:!1},Ye={spline_interpolation_type:"cardinal"},Ae={arc_cornerRadius:0,arc_cornerRadius_ratio:0,arc_needle_show:!1,arc_needle_color:void 0,arc_needle_value:void 0,arc_needle_path:void 0,arc_needle_length:100,arc_needle_top_rx:0,arc_needle_top_ry:0,arc_needle_top_width:0,arc_needle_bottom_rx:1,arc_needle_bottom_ry:1,arc_needle_bottom_width:15,arc_needle_bottom_len:0,arc_rangeText_values:void 0,arc_rangeText_unit:"absolute",arc_rangeText_fixed:!1,arc_rangeText_format:void 0,arc_rangeText_position:void 0},cr={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},dr={funnel_neck_width:0,funnel_neck_height:0},ur={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_extents:void 0,gauge_label_format:void 0,gauge_label_ratio:void 0,gauge_label_threshold:0,gauge_enforceMinMax:!1,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},hr={pie_label_show:!0,pie_label_format:void 0,pie_label_ratio:void 0,pie_label_threshold:.05,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},gr={polar_label_show:!0,polar_label_format:void 0,polar_label_threshold:.05,polar_label_ratio:void 0,polar_level_depth:3,polar_level_max:void 0,polar_level_show:!0,polar_level_text_backgroundColor:"#fff",polar_level_text_format:e=>e%1===0?e:e.toFixed(2),polar_level_text_show:!0,polar_padAngle:0,polar_padding:0,polar_startingAngle:0},fr={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:e=>e%1===0?e:e.toFixed(2),radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1},pr={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0};function se(e,t){at(Vt.prototype,Object.values(Us).concat(e)),at(Dt.prototype,Ao),Nt.setOptions(Object.values(Zs).concat(t||[]))}function kt(e,t){se([Qt,Te,Uo].concat(e||[])),Nt.setOptions([Yt,rr].concat(t||[]))}function ie(e,t){at(Vt.prototype,[Po,Qt].concat(e||[])),Nt.setOptions([Yt].concat(t||[]))}let ci=()=>(kt(Kt,[ee]),(ci=()=>C.AREA)()),di=()=>(kt(Kt,[ee]),(di=()=>C.AREA_LINE_RANGE)()),ui=()=>(kt(Kt,[ee]),(ui=()=>C.AREA_STEP_RANGE)()),hi=()=>(kt(Kt,[ee,Ye]),(hi=()=>C.AREA_SPLINE)()),gi=()=>(kt(Kt,[ee,Ye]),(gi=()=>C.AREA_SPLINE_RANGE)()),fi=()=>(kt(Kt,[ee]),(fi=()=>C.AREA_STEP)()),pi=()=>(kt(),(pi=()=>C.LINE)()),xi=()=>(kt(void 0,[Ye]),(xi=()=>C.SPLINE)()),_i=()=>(kt(),(_i=()=>C.STEP)()),mi=()=>(ie(void 0,[Ae,cr]),(mi=()=>C.DONUT)()),$i=()=>(ie([Wo],[Ae,ur]),($i=()=>C.GAUGE)()),yi=()=>(ie(void 0,[Ae,hr]),(yi=()=>C.PIE)()),bi=()=>(ie([Ko],[Ae,gr]),(bi=()=>C.POLAR)()),vi=()=>(ie([Us.eventrect,Te,Qo],[Yt,fr,{axis_x_categories:Zs.optAxis.axis_x_categories}]),(vi=()=>C.RADAR)()),Ti=()=>(se([Oo,Qt],[nr,Yt]),(Ti=()=>C.BAR)()),Ai=()=>(se([Qt,Te,Io],[ar,Yt]),(Ai=()=>C.BUBBLE)()),wi=()=>(se([Xo,Qt],[or,Yt]),(wi=()=>C.CANDLESTICK)()),Si=()=>(se([Qt,Te],[Yt,lr]),(Si=()=>C.SCATTER)()),Ri=()=>(ie([Ho],[dr]),(Ri=()=>C.FUNNEL)()),Ci=()=>(se([ir],[pr]),(Ci=()=>C.TREEMAP)()),je={};const Ei={version:"3.12.4-nightly-20240724004639",generate(e){const t=Ut({},je,e),s=new Dt(t);return s.internal.charts=this.instance,this.instance.push(s),s},defaults(e){return M(e)&&(je=e),je},instance:[],plugin:{}};Object.keys(pt).forEach(e=>pt[e]()),Object.keys(O).forEach(e=>O[e]())}(),we}()}); +`):[];if(l.length)return l;if(N(r))return r;let c=o.tickWidth;(!c||c<=0)&&(c=n?95:o.isCategory?Math.ceil(o.isInverted?s(i[0])-s(i[1]):s(i[1])-s(i[0]))-12:110);function u(d,h){let g,f,p;for(let _=1;_{const g=d+1;return gt(this.helper.scale.domain());else{if(!arguments.length)return s.tickValues;s.tickValues=t}return this}setTransition(t){return this.config.transition=t,this}}var eo=Object.defineProperty,so=(e,t,s)=>t in e?eo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Pt=(e,t,s)=>so(e,typeof t!="symbol"?t+"":t,s),io={getAxisInstance:function(){return this.axis||new no(this)}};class no{constructor(t){Pt(this,"owner"),Pt(this,"x"),Pt(this,"subX"),Pt(this,"y"),Pt(this,"y2"),Pt(this,"axesList",{}),Pt(this,"tick",{x:null,y:null,y2:null}),Pt(this,"xs",[]),Pt(this,"orient",{x:"bottom",y:"left",y2:"right",subX:"bottom"}),this.owner=t,this.setOrient()}getAxisClassName(t){return`${ot.axis} ${ot[`axis${ft(t)}`]}`}isHorizontal(t,s){const i=t.config.axis_rotated;return s?i:!i}isCategorized(){const{config:t,state:s}=this.owner;return t.axis_x_type.indexOf("category")>=0||s.hasRadar}isCustomX(){const{config:t}=this.owner;return!this.isTimeSeries()&&(t.data_x||nt(t.data_xs))}isTimeSeries(t="x"){return this.owner.config[`axis_${t}_type`]==="timeseries"}isLog(t="x"){return this.owner.config[`axis_${t}_type`]==="log"}isTimeSeriesY(){return this.isTimeSeries("y")}getAxisType(t="x"){let s="linear";return this.isTimeSeries(t)?s=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(t)&&(s="log"),s}init(){const t=this.owner,{config:s,$el:{main:i,axis:n},state:{clip:a}}=t,o=s.axis_rotated,r=["x","y"];s.axis_y2_show&&r.push("y2"),r.forEach(l=>{const c=this.getAxisClassName(l),u=ot[`axis${l.toUpperCase()}Label`];n[l]=i.append("g").attr("class",c).attr("clip-path",()=>{let d=null;return l==="x"?d=a.pathXAxis:l==="y"&&(d=a.pathYAxis),d}).attr("transform",t.getTranslate(l)).style("visibility",s[`axis_${l}_show`]?null:"hidden"),n[l].append("text").attr("class",u).attr("transform",["rotate(-90)",null][l==="x"?+!o:+o]).style("text-anchor",()=>this.textAnchorForAxisLabel(l)),this.generateAxes(l)}),s.axis_tooltip&&this.setAxisTooltip()}setOrient(){const t=this.owner,{axis_rotated:s,axis_y_inner:i,axis_y2_inner:n}=t.config;this.orient={x:s?"left":"bottom",y:s?i?"top":"bottom":i?"right":"left",y2:s?n?"bottom":"top":n?"left":"right",subX:s?"left":"bottom"}}generateAxes(t){const s=this.owner,{config:i}=s,n=[],a=i[`axis_${t}_axes`],o=i.axis_rotated;let r;t==="x"?r=o?Jt.axisLeft:Jt.axisBottom:t==="y"?r=o?Jt.axisBottom:Jt.axisLeft:t==="y2"&&(r=o?Jt.axisTop:Jt.axisRight),a.length&&a.forEach(l=>{const c=l.tick||{},u=s.scale[t].copy();l.domain&&u.domain(l.domain),n.push(r(u).ticks(c.count).tickFormat(P(c.format)?c.format.bind(s.api):d=>d).tickValues(c.values).tickSizeOuter(c.outer===!1?0:6))}),this.axesList[t]=n}updateAxes(){const t=this.owner,{config:s,$el:{main:i},$T:n}=t;Object.keys(this.axesList).forEach(a=>{const o=s[`axis_${a}_axes`],r=t.scale[a].copy(),l=r.range();this.axesList[a].forEach((c,u)=>{const d=c.scale().range();l.every((f,p)=>f===d[p])||c.scale().range(l);const h=`${this.getAxisClassName(a)}-${u+1}`;let g=i.select(`.${h.replace(/\s/,".")}`);g.empty()?g=i.append("g").attr("class",h).style("visibility",s[`axis_${a}_show`]?null:"hidden").call(c):(o[u].domain&&r.domain(o[u].domain),n(g).call(c.scale(r))),g.attr("transform",t.getTranslate(a,u+1))})})}setAxis(t,s,i,n){const a=this.owner;t!=="subX"&&(this.tick[t]=this.getTickValues(t)),this[t]=this.getAxis(t,s,i,t==="x"&&(a.scale.zoom||a.config.subchart_show||a.state.resizing)?!0:n)}getAxis(t,s,i,n,a){const o=this.owner,{config:r}=o,l=/^(x|subX)$/.test(t),c=l?"x":t,u=l&&this.isCategorized(),d=this.orient[t],h=a?0:o.getAxisTickRotate(c);let g;if(l)g=t==="subX"?o.format.subXAxisTick:o.format.xAxisTick;else{const m=r[`axis_${t}_tick_format`];P(m)&&(g=m.bind(o.api))}let f=this.tick[c];const p=qt({outerTick:i,noTransition:n,config:r,id:t,tickTextRotate:h,owner:o},l&&{isCategory:u,isInverted:r.axis_x_inverted,tickMultiline:r.axis_x_tick_multiline,tickWidth:r.axis_x_tick_width,tickTitle:u&&r.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});l||(p.tickStepSize=r[`axis_${c}_tick_stepSize`]);const _=new to(p).scale(l&&o.scale.zoom||s).orient(d);if(l&&this.isTimeSeries()&&f&&!P(f)){const m=mt.bind(o);f=f.map($=>m($))}else!l&&this.isTimeSeriesY()&&(_.ticks(r.axis_y_tick_time_value),f=null);f&&_.tickValues(f),_.tickFormat(g||!l&&o.isStackNormalized()&&(m=>`${m}%`)),u&&(_.tickCentered(r.axis_x_tick_centered),Tt(r.axis_x_tick_culling)&&(r.axis_x_tick_culling=!1));const x=r[`axis_${c}_tick_count`];return x&&_.ticks(x),_}updateXAxisTickValues(t,s){var i;const n=this.owner,{config:a}=n,o=a.axis_x_tick_fit;let r=a.axis_x_tick_count,l;return(o||r&&o)&&(l=n.mapTargetsToUniqueXs(t),this.isCategorized()&&r>l.length&&(r=l.length),l=this.generateTickValues(l,r,this.isTimeSeries())),s?s.tickValues(l):this.x&&(this.x.tickValues(l),(i=this.subX)==null||i.tickValues(l)),l}getId(t){const{config:s,scale:i}=this.owner;let n=s.data_axes[t];return(!n||!i[n])&&(n="y"),n}getXAxisTickFormat(t){const s=this.owner,{config:i,format:n}=s,a=t&&i.subchart_axis_x_tick_format||i.axis_x_tick_format,o=this.isTimeSeries(),r=this.isCategorized();let l;return a?P(a)?l=a.bind(s.api):o&&(l=c=>c?n.axisTime(a)(c):""):l=o?n.defaultAxisTime:r?s.categoryName:c=>c<0?c.toFixed(0):c,P(l)?c=>l.apply(s,r?[c,s.categoryName(c)]:[c]):l}getTickValues(t){const s=this.owner,i=s.config[`axis_${t}_tick_values`],n=s[`${t}Axis`];return(P(i)?i.call(s.api):i)||(n?n.tickValues():void 0)}getLabelOptionByAxisId(t){return this.owner.config[`axis_${t}_label`]}getLabelText(t){const s=this.getLabelOptionByAxisId(t);return V(s)?s:s?s.text:null}setLabelText(t,s){const i=this.owner,{config:n}=i,a=this.getLabelOptionByAxisId(t);V(a)?n[`axis_${t}_label`]=s:a&&(a.text=s)}getLabelPosition(t,s){const i=this.owner.config.axis_rotated,n=this.getLabelOptionByAxisId(t),a=wt(n)&&n.position?n.position:s[+!i],o=r=>!!~a.indexOf(r);return{isInner:o("inner"),isOuter:o("outer"),isLeft:o("left"),isCenter:o("center"),isRight:o("right"),isTop:o("top"),isMiddle:o("middle"),isBottom:o("bottom")}}getAxisLabelPosition(t){return this.getLabelPosition(t,t==="x"?["inner-top","inner-right"]:["inner-right","inner-top"])}getLabelPositionById(t){return this.getAxisLabelPosition(t)}xForAxisLabel(t){const s=this.owner,{state:{width:i,height:n}}=s,a=this.getAxisLabelPosition(t);let o=a.isMiddle?-n/2:0;return this.isHorizontal(s,t!=="x")?o=a.isLeft?0:a.isCenter?i/2:i:a.isBottom&&(o=-n),o}dxForAxisLabel(t){const s=this.owner,i=this.getAxisLabelPosition(t);let n=i.isBottom?"0.5em":"0";return this.isHorizontal(s,t!=="x")?n=i.isLeft?"0.5em":i.isRight?"-0.5em":"0":i.isTop&&(n="-0.5em"),n}textAnchorForAxisLabel(t){const s=this.owner,i=this.getAxisLabelPosition(t);let n=i.isMiddle?"middle":"end";return this.isHorizontal(s,t!=="x")?n=i.isLeft?"start":i.isCenter?"middle":"end":i.isBottom&&(n="start"),n}dyForAxisLabel(t){const s=this.owner,{config:i}=s,n=i.axis_rotated,a=this.getAxisLabelPosition(t).isInner,o=i[`axis_${t}_tick_rotate`]?s.getHorizontalAxisHeight(t):0,{width:r}=this.getMaxTickSize(t);let l;if(t==="x"){const c=i.axis_x_height;n?l=a?"1.2em":-25-r:a?l="-0.5em":c?l=c-10:o?l=o-10:l="3em"}else l={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[t],n?a?l=l[0]:o?l=o*(t==="y2"?-1:1)-l[1]:l=l[2]:l=a?l[3]:(l[4]+(i[`axis_${t}_inner`]?0:r+l[4]))*(t==="y"?-1:1);return l}getMaxTickSize(t,s){const i=this.owner,{config:n,state:{current:a},$el:{svg:o,chart:r}}=i,l=a.maxTickSize[t],c=`axis_${t}`,u={width:0,height:0};if(s||!n[`${c}_show`]||l.width>0&&i.filterTargetsToShow().length===0)return l;if(o){const d=/^y2?$/.test(t),h=i.filterTargetsToShow(i.data.targets),g=i.scale[t].copy().domain(i[`get${d?"Y":"X"}Domain`](h,t)),f=g.domain(),p=f[0]===f[1]&&f.every(y=>y>0),_=N(l.domain)&&l.domain[0]===l.domain[1]&&l.domain.every(y=>y>0);if(p||_)return l.size;l.domain=f,d||l.ticks.splice(0);const x=this.getAxis(t,g,!1,!1,!0),m=n[`${c}_tick_rotate`],$=n[`${c}_tick_count`];!n[`${c}_tick_values`]&&$&&x.tickValues(this.generateTickValues(f,$,d?this.isTimeSeriesY():this.isTimeSeries())),!d&&this.updateXAxisTickValues(h,x);const A=r.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");x.create(A),A.selectAll("text").attr("transform",L(m)?`rotate(${m})`:null).each(function(y,v){const{width:R,height:w}=this.getBoundingClientRect();u.width=Math.max(u.width,R),u.height=Math.max(u.height,w),d||(l.ticks[v]=R)}),A.remove()}return Object.keys(u).forEach(d=>{u[d]>0&&(l[d]=u[d])}),l}getXAxisTickTextY2Overflow(t){const s=this.owner,{axis:i,config:n,state:{current:a,isLegendRight:o,legendItemWidth:r}}=s,l=s.getAxisTickRotate("x"),c=l>0&&l<90;if((i.isCategorized()||i.isTimeSeries())&&n.axis_x_tick_fit&&(!n.axis_x_tick_culling||Tt(n.axis_x_tick_culling))&&!n.axis_x_tick_multiline&&c){const u=n.axis_y2_show&&a.maxTickSize.y2.width||0,d=o&&r||0,h=a.width-s.getCurrentPaddingByDirection("left"),g=this.getXAxisTickMaxOverflow(l,h-t)-u-d,f=Math.max(0,g)+t;return Math.min(f,h/2)}return 0}getXAxisTickMaxOverflow(t,s){const i=this.owner,{axis:n,config:a,state:o}=i,r=n.isTimeSeries(),l=o.current.maxTickSize.x.ticks,c=l.length,{left:u,right:d}=o.axis.x.padding;let h=0;const g=c-(r&&a.axis_x_tick_fit?.5:0);for(let _=0;_!a[o].empty()).forEach(o=>{const r=a[o];n(r,t).attr("x",()=>this.xForAxisLabel(o)).attr("dx",()=>this.dxForAxisLabel(o)).attr("dy",()=>this.dyForAxisLabel(o)).text(()=>this.getLabelText(o))})}getPadding(t,s,i,n){const a=L(t)?t:t[s];return F(a)?this.owner.convertPixelToScale(/(bottom|top)/.test(s)?"y":"x",a,n):i}generateTickValues(t,s,i){let n=t;if(s){const a=P(s)?s():s;if(a===1)n=[t[0]];else if(a===2)n=[t[0],t[t.length-1]];else if(a>2){const o=this.isCategorized(),r=a-2,l=t[0],c=t[t.length-1],u=(c-l)/(r+1);let d;n=[l];for(let h=0;ha-o)),n}generateTransitions(t){const s=this.owner,{$el:{axis:i},$T:n}=s,[a,o,r,l]=["x","y","y2","subX"].map(c=>n(i[c],t));return{axisX:a,axisY:o,axisY2:r,axisSubX:l}}redraw(t,s,i){const n=this.owner,{config:a,$el:o}=n,r=s?"0":null;["x","y","y2","subX"].forEach(l=>{const c=this[l],u=o.axis[l];c&&u&&(!i&&!a.transition_duration&&(c.config.withoutTransition=!0),u.style("opacity",r),c.create(t[`axis${ft(l)}`]))}),this.updateAxes()}redrawAxis(t,s,i,n,a){var o,r,l;const c=this.owner,{config:u,scale:d,$el:h}=c,g=!!d.zoom;let f;!g&&this.isCategorized()&&t.length===0&&d.x.domain([0,h.axis.x.selectAll(".tick").size()]),d.x&&t.length?(!g&&c.updateXDomain(t,s.UpdateXDomain,s.UpdateOrgXDomain,s.TrimXDomain),u.axis_x_tick_values||this.updateXAxisTickValues(t)):this.x&&(this.x.tickValues([]),(o=this.subX)==null||o.tickValues([])),u.zoom_rescale&&!n&&(f=d.x.orgDomain()),["y","y2"].forEach(p=>{const _=`axis_${p}_`,x=d[p];if(x){const m=u[`${_}tick_values`],$=u[`${_}tick_count`];if(x.domain(c.getYDomain(t,p,f)),!m&&$){const b=c.axis[p],A=x.domain();b.tickValues(this.generateTickValues(A,A.every(y=>y===0)?1:$,this.isTimeSeriesY()))}}}),this.redraw(i,c.hasArcType(),a),this.updateLabels(s.Transition),(s.UpdateXDomain||s.UpdateXAxis||s.Y)&&t.length&&this.setCulling(),s.Y&&((r=d.subY)==null||r.domain(c.getYDomain(t,"y")),(l=d.subY2)==null||l.domain(c.getYDomain(t,"y2")))}setCulling(){const t=this.owner,{config:s,state:{clip:i,current:n},$el:a}=t;["subX","x","y","y2"].forEach(o=>{const r=a.axis[o],c=`axis_${o==="subX"?"x":o}_tick_culling`,u=s[c];if(r&&u){const d=r.selectAll(".tick"),h=Kt(d.data()),g=h.length,f=s[`${c}_max`],p=s[`${c}_lines`];let _;if(g){for(let x=1;x{var c,u,d;if(o[l]=(c=a[l])==null?void 0:c.append("text").classed(ot[`axis${l.toUpperCase()}Tooltip`],!0).attr("filter",s.updateTextBGColor({id:l},r)),i){const h=l==="x"?"x":"y",g=l==="y"?"1.15em":l==="x"?"-0.3em":"-0.4em";(u=o[l])==null||u.attr(h,g).attr(`d${l==="x"?"y":"x"}`,l==="x"?"0.4em":"-1.3em").style("text-anchor",l==="x"?"end":null)}else{const h=l==="x"?"y":"x",g=l==="x"?"1.15em":`${l==="y"?"-":""}0.4em`;(d=o[l])==null||d.attr(h,g).attr(`d${l==="x"?"x":"y"}`,l==="x"?"-1em":"0.3em").style("text-anchor",l==="y"?"end":null)}})}}var ao={initEventRect(){this.$el.main.select(`.${z.chart}`).append("g").attr("class",vt.eventRects).style("fill-opacity","0")},redrawEventRect(){var e;const t=this,{config:s,state:i,$el:n}=t,a=t.isMultipleX(),o=s.axis_x_inverted;if(n.eventRect)t.updateEventRect(n.eventRect,!0);else if(t.data.targets.length){const l=t.$el.main.select(`.${vt.eventRects}`).style("cursor",s.zoom_enabled&&s.zoom_type!=="drag"?s.axis_rotated?"ns-resize":"ew-resize":null).classed(vt.eventRectsMultiple,a).classed(vt.eventRectsSingle,!a).selectAll(`.${vt.eventRect}`).data([0]).enter().append("rect");t.updateEventRect(l),t.updateEventType(l),l.call(t.getDraggableSelection()),n.eventRect=l,t.state.inputType==="touch"&&!n.svg.on("touchstart.eventRect")&&!t.hasArcType()&&t.bindTouchOnEventRect(),i.rendered&&t.updateEventRect(n.eventRect,!0)}if(!a){const r=t.getMaxDataCountTarget();(!s.data_xSort||o)&&r.sort((l,c)=>o?c.x-l.x:l.x-c.x),t.updateDataIndexByX(r),t.updateXs(r),(e=t.updatePointClass)==null||e.call(t,!0),i.eventReceiver.data=r}t.updateEventRectData()},bindTouchOnEventRect(){const e=this,{config:t,state:s,$el:{eventRect:i,svg:n}}=e,a=h=>{if(e.isMultipleX())e.selectRectForMultipleXs(h);else{const g=e.getDataIndexFromEvent(s.event);e.callOverOutForTouch(g),g===-1?e.unselectRect():e.selectRectForSingle(h,g)}},o=()=>{e.unselectRect(),e.callOverOutForTouch()},r=t.interaction_inputType_touch.preventDefault,l=ke(r)&&r||!1,c=!isNaN(r)&&r||null;let u;const d=h=>{const g=h.type,p=h.changedTouches[0][`client${t.axis_rotated?"Y":"X"}`];g==="touchstart"?l?h.preventDefault():c!==null&&(u=p):g==="touchmove"&&(l||u===!0||c!==null&&Math.abs(u-p)>=c)&&(u=!0,h.preventDefault())};i.on("touchstart",h=>{s.event=h,e.updateEventRect()}).on("touchstart.eventRect touchmove.eventRect",h=>{if(s.event=h,!i.empty()&&i.classed(vt.eventRect)){if(s.dragging||s.flowing||e.hasArcType()||h.touches.length>1)return;d(h),a(i.node())}else o()},!0).on("touchend.eventRect",h=>{s.event=h,!i.empty()&&i.classed(vt.eventRect)&&(e.hasArcType()||!e.toggleShape||s.cancelClick)&&s.cancelClick&&(s.cancelClick=!1)},!0),n.on("touchstart",h=>{s.event=h;const{target:g}=h;g&&g!==i.node()&&o()})},updateEventRect(e,t=!1){const s=this,{state:i,$el:n}=s,{eventReceiver:a,width:o,height:r,rendered:l,resizing:c}=i,u=e||n.eventRect,d=()=>{if(a){const h=cs(n.chart.node());a.rect=u.node().getBoundingClientRect().toJSON(),a.rect.top+=h.y,a.rect.left+=h.x}};(!l||c||t)&&(u.attr("x",0).attr("y",0).attr("width",o).attr("height",r),(!l||t)&&u.classed(vt.eventRect,!0)),d()},updateEventType(e){const t=this,s=ke(e),i=s?t.$el.eventRect:e,n=s?e!==(i==null?void 0:i.datum().multipleX):!1;i&&(n&&(i==null||i.on("mouseover mousemove mouseout click",null)),t.isMultipleX()?t.generateEventRectsForMultipleXs(i):t.generateEventRectsForSingleX(i))},updateEventRectData(){const e=this,{config:t,scale:s,state:i}=e,n=s.zoom||s.x,a=t.axis_rotated,o=e.isMultipleX();let r,l,c,u;if(e.updateEventType(o),o)r=0,l=0,c=i.width,u=i.height;else{let g,f;if(e.axis.isCategorized())g=e.getEventRectWidth(),f=p=>n(p.x)-g/2;else{const p=({index:_})=>({prev:e.getPrevX(_),next:e.getNextX(_)});g=_=>{const x=p(_),m=n.domain();let $;return x.prev===null&&x.next===null?$=a?i.height:i.width:x.prev===null?$=(n(x.next)+n(_.x))/2:x.next===null?$=n(m[1])-(n(x.prev)+n(_.x))/2:(Object.keys(x).forEach((b,A)=>{var y;x[b]=(y=x[b])!=null?y:m[A]}),$=Math.max(0,(n(x.next)-n(x.prev))/2)),$},f=_=>{const x=p(_);let m;return x.prev===null&&x.next===null?m=0:x.prev===null?m=n(n.domain()[0]):m=(n(_.x)+n(x.prev))/2,m}}r=a?0:f,l=a?f:0,c=a?i.width:g,u=a?g:i.height}const{eventReceiver:d}=i,h=(g,f)=>P(g)?g(f):g;d.coords.splice(d.data.length),d.data.forEach((g,f)=>{d.coords[f]={x:h(r,g),y:h(l,g),w:h(c,g),h:h(u,g)}})},selectRectForSingle(e,t){var s,i;const n=this,{config:a,$el:{main:o,circle:r}}=n,l=a.data_selection_enabled,c=a.data_selection_grouped,u=a.data_selection_isselectable,d=a.tooltip_grouped,h=n.getAllValuesOnIndex(t);if(d&&(n.showTooltip(h,e),(s=n.showGridFocus)==null||s.call(n,h),!l||c))return;!r&&o.selectAll(`.${z.EXPANDED}:not(.${st.shape}-${t})`).classed(z.EXPANDED,!1);const g=o.selectAll(`.${st.shape}-${t}`).classed(z.EXPANDED,!0).style("cursor",u?"pointer":null).filter(function(f){return n.isWithinShape(this,f)});g.empty()&&!d&&((i=n.hideGridFocus)==null||i.call(n),n.hideTooltip(),!c&&n.setExpand(t)),g.call(f=>{var p,_;const x=f.data();l&&(c||u!=null&&u.bind(n.api)(x))&&(e.style.cursor="pointer"),d||(n.showTooltip(x,e),(p=n.showGridFocus)==null||p.call(n,x),(_=n.unexpandCircles)==null||_.call(n),f.each(m=>n.setExpand(t,m.id)))})},selectRectForMultipleXs(e,t=!0){const s=this,{config:i,state:n}=s,a=s.filterTargetsToShow(s.data.targets);if(n.dragging||s.hasArcType(a))return;const o=$t(n.event,e),r=s.findClosestFromTargets(a,o);if(t&&n.mouseover&&(!r||r.id!==n.mouseover.id)&&(i.data_onout.call(s.api,n.mouseover),n.mouseover=void 0),!r){s.unselectRect();return}const c=(s.isBubbleType(r)||s.isScatterType(r)||!i.tooltip_grouped?[r]:s.filterByX(a,r.x)).map(d=>s.addName(d));s.showTooltip(c,e),s.setExpand(r.index,r.id,!0),s.showGridFocus(c);const u=s.dist(r,o);(s.isBarType(r.id)||u{const l=r?t.getDataIndexFromEvent(r):n.currentIdx;return l>-1?n.data[l]:null};a.on("mouseover",r=>{i.event=r,t.updateEventRect(),Object.values(t.$el.axisTooltip).forEach(l=>l==null?void 0:l.style("display",null))}).on("mousemove",function(r){const l=o(r);if(i.event=r,!l)return;let{index:c}=l;const u=s.line_step_type;if(s.line_step_tooltipMatch&&t.hasType("step")&&/^step\-(before|after)$/.test(u)){const h=t.scale.zoom||t.scale.x,g=t.axis.xs[c],f=h.invert($t(r,this)[0]);u==="step-after"&&fg&&(c+=1)}t.showAxisGridFocus();const d=s.tooltip_grouped&&c===n.currentIdx;if(i.dragging||i.flowing||t.hasArcType()||d){s.tooltip_show&&d&&t.setTooltipPosition();return}c!==n.currentIdx&&(t.setOverOut(!1,n.currentIdx),n.currentIdx=c),c===-1?t.unselectRect():t.selectRectForSingle(this,c),t.setOverOut(c!==-1,c)}).on("mouseout",r=>{i.event=r,!(!s||t.hasArcType()||n.currentIdx===-1)&&(t.hideAxisGridFocus(),t.unselectRect(),t.setOverOut(!1,n.currentIdx),n.currentIdx=-1)})}return a},clickHandlerForSingleX(e,t){const s=t,{config:i,state:n,$el:{main:a}}=s;if(!e||s.hasArcType()||n.cancelClick){n.cancelClick&&(n.cancelClick=!1);return}const{index:o}=e;a.selectAll(`.${st.shape}-${o}`).each(function(r){var l;(i.data_selection_grouped||s.isWithinShape(this,r))&&((l=s.toggleShape)==null||l.call(s,this,r,o),i.data_onclick.bind(s.api)(r,this))})},generateEventRectsForMultipleXs(e){const t=this,{state:s}=t;e.on("click",function(i){s.event=i,t.clickHandlerForMultipleXS.bind(this)(t)}).datum({multipleX:!0}),s.inputType==="mouse"&&e.on("mouseover mousemove",function(i){s.event=i,t.selectRectForMultipleXs(this)}).on("mouseout",i=>{s.event=i,!(!t.config||t.hasArcType())&&t.unselectRect()})},clickHandlerForMultipleXS(e){const t=e,{config:s,state:i}=t,n=t.filterTargetsToShow(t.data.targets);if(t.hasArcType(n))return;const a=$t(i.event,this),o=t.findClosestFromTargets(n,a),r=s.point_sensitivity==="radius"?o.r:s.point_sensitivity;o&&(t.isBarType(o.id)||t.dist(o,a){r.values.splice(0,a)}),t.updateXGrid&&t.updateXGrid(!0);const o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(r=>{const l=r.split(".");let c=n[l[0]];c&&l.length>1&&(c=c[l[1]]),c!=null&&c.size()&&(o[r]=c)}),t.hideGridFocus(),t.setFlowList(o,e)}},setFlowList(e,t){const s=this,{flow:i,targets:n}=t,{duration:a=t.duration,index:o,length:r,orgDataCount:l}=i,c=s.getFlowTransform(n,l,o,r),u=xs();let d;u.add(Object.keys(e).map(h=>(d=e[h].transition().ease(oo.easeLinear).duration(a),h==="axis.x"?d=d.call(g=>{s.axis.x.setTransition(g).create(g)}):h==="region.list"?d=d.filter(s.isRegionOnX).attr("transform",c):d=d.attr("transform",c),d))),d.call(u,()=>{s.cleanUpFlow(e,t)})},cleanUpFlow(e,t){const s=this,{config:i,state:n,$el:{svg:a}}=s,o=i.axis_rotated,{flow:r,shape:l,xv:c}=t,{cx:u,cy:d,xForText:h,yForText:g}=l.pos,{done:f=()=>{},length:p}=r;p&&(["circle","text","shape","eventRect"].forEach(_=>{const x=[];for(let m=0;m{const x=e[_];if(_!=="axis.x"&&x.attr("transform",null),_==="grid.x")x.attr(n.xgridAttr);else if(_==="gridLines.x")x.attr("x1",o?0:c).attr("x2",o?n.width:c),x.select("text").attr("x",o?n.width:0).attr("y",c);else if(/^(area|bar|line)$/.test(_))x.attr("d",l.type[_]);else if(_==="text")x.attr("x",h).attr("y",g).style("fill-opacity",s.opacityForText.bind(s));else if(_==="circle")if(s.isCirclePoint())x.attr("cx",u).attr("cy",d);else{const m=b=>u(b)-i.point_r,$=b=>d(b)-i.point_r;x.attr("x",m).attr("y",$)}else _==="region.list"&&x.select("rect").filter(s.isRegionOnX).attr("x",s.regionX.bind(s)).attr("width",s.regionWidth.bind(s))}),i.interaction_enabled&&s.redrawEventRect(),f.call(s.api),n.flowing=!1},getFlowTransform(e,t,s,i){const n=this,{data:a,scale:{x:o}}=n,r=a.targets[0].values;let l=n.getValueOnIndex(r,s),c=n.getValueOnIndex(r,s+i),u;const d=o.domain(),h=n.updateXDomain(e,!0,!0);t?t===1||(l==null?void 0:l.x)===(c==null?void 0:c.x)?u=o(d[0])-o(h[0]):u=n.axis.isTimeSeries()?o(d[0])-o(h[0]):o((l==null?void 0:l.x)||0)-o(c.x):r.length!==1?u=o(d[0])-o(h[0]):n.axis.isTimeSeries()?(l=n.getValueOnIndex(r,0),c=n.getValueOnIndex(r,r.length-1),u=o(l.x)-o(c.x)):u=Nt(h)/2;const g=Nt(d)/Nt(h);return`translate(${u},0) scale(${g},1)`}},lo={initClip(){const e=this,{clip:t,datetimeId:s}=e.state;t.id=`${s}-clip`,t.idXAxis=`${t.id}-xaxis`,t.idYAxis=`${t.id}-yaxis`,t.idGrid=`${t.id}-grid`,t.path=e.getClipPath(t.id),t.pathXAxis=e.getClipPath(t.idXAxis),t.pathYAxis=e.getClipPath(t.idYAxis),t.pathGrid=e.getClipPath(t.idGrid)},getClipPath(e){const t=this,{config:s}=t;return!s.clipPath&&/-clip$/.test(e)||!s.axis_x_clipPath&&/-clip-xaxis$/.test(e)||!s.axis_y_clipPath&&/-clip-yaxis$/.test(e)?null:`url(#${e})`},appendClip(e,t){t&&e.append("clipPath").attr("id",t).append("rect")},setXAxisClipPath(e){const t=this,{config:s,state:{margin:i,width:n,height:a}}=t,o=s.axis_rotated,r=Math.max(30,i.left)-(o?0:20),l=(o?i.top+a+10:i.bottom)+20,c=o?-(1+r):-(r-1),u=-15,d=o?i.left+20:n+10+r;e.attr("x",c).attr("y",u).attr("width",d).attr("height",l)},setYAxisClipPath(e){const t=this,{config:s,state:{margin:i,width:n,height:a}}=t,o=s.axis_rotated,r=Math.max(30,i.left)-(o?20:0),l=s.axis_y_inner,c=l&&!o?s.axis_y_label.text?-20:-1:o?-(1+r):-(r-1),u=-(o?20:i.top),d=(o?n+15+r:i.left+20)+(l?20:0),h=(o?i.bottom+10:i.top+a)+10;e.attr("x",c).attr("y",u).attr("width",d).attr("height",h)},updateXAxisTickClip(){const e=this,{config:t,state:{clip:s,xAxisHeight:i},$el:{defs:n}}=e,a=e.getHorizontalAxisHeight("x");if(n&&!s.idXAxisTickTexts){const o=`${s.id}-xaxisticktexts`;e.appendClip(n,o),s.pathXAxisTickTexts=e.getClipPath(s.idXAxisTickTexts),s.idXAxisTickTexts=o}!t.axis_x_tick_multiline&&e.getAxisTickRotate("x")&&a!==i&&(e.setXAxisTickClipWidth(),e.setXAxisTickTextClipPathWidth()),e.state.xAxisHeight=a},setXAxisTickClipWidth(){const e=this,{config:t,state:{current:{maxTickSize:s}}}=e,i=e.getAxisTickRotate("x");if(!t.axis_x_tick_multiline&&i){const n=Math.sin(Math.PI/180*Math.abs(i));s.x.clipPath=(e.getHorizontalAxisHeight("x")-20)/n}else s.x.clipPath=null},setXAxisTickTextClipPathWidth(){const e=this,{state:{clip:t,current:s},$el:{svg:i}}=e;i&&i.select(`#${t.idXAxisTickTexts} rect`).attr("width",s.maxTickSize.x.clipPath).attr("height",30)}};const co=e=>F(e.position)||"end",uo=e=>e.position==="start"?4:e.position==="middle"?0:-4;function js(e,t,s){return i=>{let n=e?0:t;return i.position==="start"?n=e?-s:0:i.position==="middle"&&(n=(e?-s:t)/2),n}}function Hs(e,t){t==="grid"&&e.each(function(){const s=(0,S.select)(this);["x1","x2","y1","y2"].forEach(i=>s.attr(i,Math.ceil(+s.attr(i))))})}var ho={hasGrid(){const{config:e}=this;return["x","y"].some(t=>e[`grid_${t}_show`]||e[`grid_${t}_lines`].length)},initGrid(){const e=this;e.hasGrid()&&e.initGridLines(),e.initFocusGrid()},initGridLines(){const e=this,{config:t,state:{clip:s},$el:i}=e;(t.grid_x_lines.length||t.grid_y_lines.length)&&(i.gridLines.main=i.main.insert("g",`.${z.chart}${t.grid_lines_front?" + *":""}`).attr("clip-path",s.pathGrid).attr("class",`${et.grid} ${et.gridLines}`),i.gridLines.main.append("g").attr("class",et.xgridLines),i.gridLines.main.append("g").attr("class",et.ygridLines),i.gridLines.x=(0,S.selectAll)([]))},updateXGrid(e){const t=this,{config:s,scale:i,state:n,$el:{main:a,grid:o}}=t,r=s.axis_rotated,l=t.generateGridData(s.grid_x_type,i.x),c=t.axis.isCategorized()?t.axis.x.tickOffset():0,u=d=>(i.zoom||i.x)(d)+c*(r?-1:1);n.xgridAttr=r?{x1:0,x2:n.width,y1:u,y2:u}:{x1:u,x2:u,y1:0,y2:n.height},o.x=a.select(`.${et.xgrids}`).selectAll(`.${et.xgrid}`).data(l),o.x.exit().remove(),o.x=o.x.enter().append("line").attr("class",et.xgrid).merge(o.x),e||o.x.each(function(){const d=(0,S.select)(this);Object.keys(n.xgridAttr).forEach(h=>{d.attr(h,n.xgridAttr[h]).style("opacity",()=>d.attr(r?"y1":"x1")===(r?n.height:0)?"0":null)})})},updateYGrid(){const e=this,{axis:t,config:s,scale:i,state:n,$el:{grid:a,main:o}}=e,r=s.axis_rotated,l=u=>Math.ceil(i.y(u)),c=t.y.getGeneratedTicks(s.grid_y_ticks)||e.scale.y.ticks(s.grid_y_ticks);a.y=o.select(`.${et.ygrids}`).selectAll(`.${et.ygrid}`).data(c),a.y.exit().remove(),a.y=a.y.enter().append("line").attr("class",et.ygrid).merge(a.y),a.y.attr("x1",r?l:0).attr("x2",r?l:n.width).attr("y1",r?0:l).attr("y2",r?n.height:l),Hs(a.y,"grid")},updateGrid(){const e=this,{$el:{grid:t,gridLines:s}}=e;!s.main&&e.initGridLines(),t.main.style("visibility",e.hasArcType()?"hidden":null),e.hideGridFocus(),e.updateGridLines("x"),e.updateGridLines("y")},updateGridLines(e){const t=this,{config:s,$el:{gridLines:i,main:n},$T:a}=t,o=s.axis_rotated,r=e==="x";s[`grid_${e}_show`]&&t[`update${e.toUpperCase()}Grid`]();let l=n.select(`.${et[`${e}gridLines`]}`).selectAll(`.${et[`${e}gridLine`]}`).data(s[`grid_${e}_lines`]);a(l.exit()).style("opacity","0").remove();const c=l.enter().append("g");c.append("line").style("opacity","0"),l=c.merge(l),l.each(function(u){const d=(0,S.select)(this);d.select("text").empty()&&u.text&&d.append("text").style("opacity","0")}),a(l.attr("class",u=>`${et[`${e}gridLine`]} ${u.class||""}`.trim()).select("text").attr("text-anchor",co).attr("transform",()=>r?o?null:"rotate(-90)":o?"rotate(-90)":null).attr("dx",uo).attr("dy",-5)).text(function(u){var d;return(d=u.text)!=null?d:this.remove()}),i[e]=l},redrawGrid(e){const t=this,{config:{axis_rotated:s},state:{width:i,height:n},$el:{gridLines:a},$T:o}=t,r=t.xv.bind(t),l=t.yv.bind(t);let c=a.x.select("line"),u=a.x.select("text"),d=a.y.select("line"),h=a.y.select("text");return c=o(c,e).attr("x1",s?0:r).attr("x2",s?i:r).attr("y1",s?r:0).attr("y2",s?r:n),u=o(u,e).attr("x",js(!s,i,n)).attr("y",r),d=o(d,e).attr("x1",s?l:0).attr("x2",s?l:i).attr("y1",s?0:l).attr("y2",s?n:l),h=o(h,e).attr("x",js(s,i,n)).attr("y",l),[c.style("opacity",null),u.style("opacity",null),d.style("opacity",null),h.style("opacity",null)]},initFocusGrid(){const e=this,{config:t,state:{clip:s},$el:i}=e,n=t.grid_front,a=`.${n&&i.gridLines.main?et.gridLines:z.chart}${n?" + *":""}`,o=i.main.insert("g",a).attr("clip-path",s.pathGrid).attr("class",et.grid);if(i.grid.main=o,t.grid_x_show&&o.append("g").attr("class",et.xgrids),t.grid_y_show&&o.append("g").attr("class",et.ygrids),t.axis_tooltip){const r=o.append("g").attr("class","bb-axis-tooltip");r.append("line").attr("class","bb-axis-tooltip-x"),r.append("line").attr("class","bb-axis-tooltip-y")}t.interaction_enabled&&t.grid_focus_show&&!t.axis_tooltip&&(o.append("g").attr("class",Z.xgridFocus).append("line").attr("class",Z.xgridFocus),t.grid_focus_y&&!t.tooltip_grouped&&o.append("g").attr("class",Z.ygridFocus).append("line").attr("class",Z.ygridFocus))},showAxisGridFocus(){var e,t;const s=this,{config:i,format:n,state:{event:a,width:o,height:r}}=s,l=i.axis_rotated,[c,u]=$t(a,(e=s.$el.eventRect)==null?void 0:e.node()),d={x:c,y:u};for(const[h,g]of Object.entries(s.$el.axisTooltip)){const f=h==="x"&&!l||h!=="x"&&l?"x":"y",p=d[f];let _=(t=s.scale[h])==null?void 0:t.invert(p);_&&(_=h==="x"&&s.axis.isTimeSeries()?n.xAxisTick(_):_==null?void 0:_.toFixed(2),g==null||g.attr(f,p).text(_))}s.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility",null).each(function(h,g){const f=(0,S.select)(this);g===0?f.attr("x1",c).attr("x2",c).attr("y1",g?0:r).attr("y2",g?r:0):f.attr("x1",g?0:o).attr("x2",g?o:0).attr("y1",u).attr("y2",u)})},hideAxisGridFocus(){const e=this;e.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility","hidden"),Object.values(e.$el.axisTooltip).forEach(t=>t==null?void 0:t.style("display","none"))},showGridFocus(e){var t;const s=this,{config:i,state:{width:n,height:a}}=s,o=i.axis_rotated,r=s.$el.main.selectAll(`line.${Z.xgridFocus}, line.${Z.ygridFocus}`),l=(e||[r.datum()]).filter(d=>d&&F(s.getBaseValue(d)));if(!i.tooltip_show||l.length===0||!i.axis_x_forceAsSingle&&s.hasType("bubble")||s.hasArcType())return;const c=i.grid_focus_edge&&!i.tooltip_grouped,u=s.xx.bind(s);r.style("visibility",null).data(l.concat(l)).each(function(d){const h=(0,S.select)(this),g={x:u(d),y:s.getYScaleById(d.id)(d.value)};let f;if(h.classed(Z.xgridFocus))f=o?[null,g.x,c?g.y:n,g.x]:[g.x,c?g.y:null,g.x,a];else{const p=s.axis.getId(d.id)==="y2";f=o?[g.y,c&&!p?g.x:null,g.y,c&&p?g.x:a]:[c&&p?g.x:null,g.y,c&&!p?g.x:n,g.y]}["x1","y1","x2","y2"].forEach((p,_)=>h.attr(p,f[_]))}),Hs(r,"grid"),(t=s.showCircleFocus)==null||t.call(s,e)},hideGridFocus(){var e;const t=this,{state:{inputType:s,resizing:i},$el:{main:n}}=t;(s==="mouse"||!i)&&(n.selectAll(`line.${Z.xgridFocus}, line.${Z.ygridFocus}`).style("visibility","hidden"),(e=t.hideCircleFocus)==null||e.call(t))},updateGridFocus(){var e;const t=this,{state:{inputType:s,width:i,height:n,resizing:a},$el:{grid:o}}=t,r=o.main.select(`line.${Z.xgridFocus}`);if(s==="touch")r.empty()?a&&((e=t.showCircleFocus)==null||e.call(t)):t.showGridFocus();else{const l=t.config.axis_rotated;r.attr("x1",l?0:-10).attr("x2",l?i:-10).attr("y1",l?-10:0).attr("y2",l?-10:n)}return!0},generateGridData(e,t){const s=this,i=s.$el.main.select(`.${ot.axisX}`).selectAll(".tick").size();let n=[];if(e==="year"){const a=s.getXDomain(),[o,r]=a.map(l=>l.getFullYear());for(let l=o;l<=r;l++)n.push(new Date(`${l}-01-01 00:00:00`))}else n=t.ticks(10),n.length>i&&(n=n.filter(a=>String(a).indexOf(".")<0));return n},getGridFilterToRemove(e){return e?t=>{let s=!1;return(N(e)?e.concat():[e]).forEach(i=>{("value"in i&&t.value===i.value||"class"in i&&t.class===i.class)&&(s=!0)}),s}:()=>!0},removeGridLines(e,t){const s=this,{config:i,$T:n}=s,a=s.getGridFilterToRemove(e),o=u=>!a(u),r=t?et.xgridLines:et.ygridLines,l=t?et.xgridLine:et.ygridLine;n(s.$el.main.select(`.${r}`).selectAll(`.${l}`).filter(a)).style("opacity","0").remove();const c=`grid_${t?"x":"y"}_lines`;i[c]=i[c].filter(o)}},go={initRegion(){const e=this,{$el:t}=e;t.region.main=t.main.insert("g",":first-child").attr("clip-path",e.state.clip.path).attr("class",re.regions)},updateRegion(){const e=this,{config:t,$el:{region:s},$T:i}=e;s.main||e.initRegion(),s.main.style("visibility",e.hasArcType()?"hidden":null);const n=s.main.selectAll(`.${re.region}`).data(t.regions);i(n.exit()).style("opacity","0").remove();const a=n.enter().append("g");a.append("rect").style("fill-opacity","0"),s.list=a.merge(n).attr("class",e.classRegion.bind(e)),s.list.each(function(o){var r;(0,S.select)(this).select("text").empty()&&((r=o.label)!=null&&r.text)&&(0,S.select)(this).append("text").style("opacity","0")})},redrawRegion(e){const t=this,{$el:{region:s},$T:i}=t;let n=s.list.select("rect"),a=s.list.selectAll("text");return n=i(n,e).attr("x",t.regionX.bind(t)).attr("y",t.regionY.bind(t)).attr("width",t.regionWidth.bind(t)).attr("height",t.regionHeight.bind(t)),a=i(a,e).attr("transform",o=>{var r;const{x:l=0,y:c=0,rotated:u=!1}=(r=o.label)!=null?r:{};return`translate(${t.regionX.bind(t)(o)+l}, ${t.regionY.bind(t)(o)+c})${u?" rotate(-90)":""}`}).attr("text-anchor",o=>{var r;return(r=o.label)!=null&&r.rotated?"end":null}).attr("dy","1em").style("fill",o=>{var r,l;return(l=(r=o.label)==null?void 0:r.color)!=null?l:null}).text(o=>{var r;return(r=o.label)==null?void 0:r.text}),[n.style("fill-opacity",o=>F(o.opacity)?o.opacity:null).on("end",function(){(0,S.select)(this.parentNode).selectAll("rect:not([x])").remove()}),a.style("opacity",null)]},getRegionXY(e,t){const s=this,{config:i,scale:n}=s,a=i.axis_rotated,o=e==="x";let r="start",l,c=0;return t.axis==="y"||t.axis==="y2"?(o||(r="end"),(o?a:!a)&&r in t&&(l=n[t.axis],c=l(t[r]))):(o?!a:a)&&r in t&&(l=n.zoom||n.x,c=l(s.axis.isTimeSeries()?mt.call(s,t[r]):t[r])),c},regionX(e){return this.getRegionXY("x",e)},regionY(e){return this.getRegionXY("y",e)},getRegionSize(e,t){const s=this,{config:i,scale:n,state:a}=s,o=i.axis_rotated,r=e==="width",l=s[r?"regionX":"regionY"](t);let c,u="end",d=a[e];return t.axis==="y"||t.axis==="y2"?(r||(u="start"),(r?o:!o)&&u in t&&(c=n[t.axis],d=c(t[u]))):(r?!o:o)&&u in t&&(c=n.zoom||n.x,d=c(s.axis.isTimeSeries()?mt.call(s,t[u]):t[u])),d0&&(!n.axis_x_tick_autorotate||i.needToRotateXAxisTickTexts());return(n.axis_x_tick_multiline||_)&&p.height>g&&(f+=p.height-g),f+(i.axis.getLabelPositionById(e).isInner?0:10)+(e==="y2"&&!c?-10:0)},getEventRectWidth(){const e=this,{config:t,axis:s}=e,i=t.axis_x_inverted,n=s.x.tickInterval();return Math.max(0,i?Math.abs(n):n)},getAxisTickRotate(e){const t=this,{axis:s,config:i,state:n,$el:a}=t;let o=i[`axis_${e}_tick_rotate`];if(e==="x"){const r=s.isCategorized()||s.isTimeSeries();if(i.axis_x_tick_fit&&r){const l=i.axis_x_tick_count,c=n.current.maxTickSize.x.ticks.length;let u=0;if(l?u=l>c?c:l:c&&(u=c),u!==n.axis.x.tickCount){const{targets:d}=t.data;n.axis.x.padding=t.getXDomainPadding([t.getXDomainMinMax(d,"min"),t.getXDomainMinMax(d,"max")],u)}n.axis.x.tickCount=u}a.svg&&i.axis_x_tick_autorotate&&i.axis_x_tick_fit&&!i.axis_x_tick_multiline&&!i.axis_x_tick_culling&&r&&(o=t.needToRotateXAxisTickTexts()?i.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts(){const e=this,{state:{axis:t,current:s,isLegendRight:i,legendItemWidth:n}}=e,a=i&&n,o=s.width-a-e.getCurrentPaddingByDirection("left")-e.getCurrentPaddingByDirection("right"),r=t.x.tickCount+t.x.padding.left+t.x.padding.right,{width:l}=e.axis.getMaxTickSize("x"),c=r?o/r:0;return l>c}},po={axis_x_clipPath:!0,axis_x_show:!0,axis_x_forceAsSingle:!1,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_inner:!1,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_inverted:!1,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]},xo={axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:5,axis_y_tick_culling_lines:!0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]},_o={axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_culling_lines:!0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]},mo=Object.defineProperty,Ws=Object.getOwnPropertySymbols,$o=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,Us=(e,t,s)=>t in e?mo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Ye=(e,t)=>{for(var s in t||(t={}))$o.call(t,s)&&Us(e,s,t[s]);if(Ws)for(var s of Ws(t))yo.call(t,s)&&Us(e,s,t[s]);return e},bo=Ye(Ye(Ye({axis_rotated:!1,axis_tooltip:!1},po),xo),_o),vo={grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:void 0,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0},To={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1};const Ao=[Va,Ya,ja,Ha,Wa,Ua,Za],Zs={axis:io,clip:lo,eventrect:ao,flow:ro,grid:ho,region:go,sizeAxis:fo},qs={optDataAxis:To,optAxis:bo,optGrid:vo};var Ks=W(13),wo=Object.defineProperty,So=Object.defineProperties,Ro=Object.getOwnPropertyDescriptors,Js=Object.getOwnPropertySymbols,Co=Object.prototype.hasOwnProperty,Eo=Object.prototype.propertyIsEnumerable,Qs=(e,t,s)=>t in e?wo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,ko=(e,t)=>{for(var s in t||(t={}))Co.call(t,s)&&Qs(e,s,t[s]);if(Js)for(var s of Js(t))Eo.call(t,s)&&Qs(e,s,t[s]);return e},Lo=(e,t)=>So(e,Ro(t));function ti(e=0){const t=this,{config:s,state:i}=t,n=t.hasMultiArcGauge(),a=i.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length,o=e?Math.min(i.radiusExpanded*e-i.radius,a*.8-(1-e)*100):0;return{inner(r){const{innerRadius:l}=t.getRadius(r);return n?i.radius-a*(r.index+1):L(l)?l:0},outer(r){const{outerRadius:l}=t.getRadius(r);let c;if(n)c=i.radius-a*r.index+o;else if(t.hasType("polar")&&!e)c=t.getPolarOuterRadius(r,l);else if(c=l,e){let{radiusExpanded:u}=i;i.radius!==l&&(u-=Math.abs(i.radius-l)),c=u*e}return c},corner(r,l){const{arc_cornerRadius_ratio:c=0,arc_cornerRadius:u=0}=s,{data:{id:d},value:h}=r;let g=0;return c?g=c*l:g=L(u)?u:u.call(t.api,d,h,l),g}}}function je(e){return function(t){const s=({startAngle:n=0,endAngle:a=0,padAngle:o=0})=>({startAngle:n,endAngle:a,padAngle:o}),i=(0,Ks.interpolate)(s(this._current),s(t));return this._current=t,function(n){const a=i(n),{data:o,index:r,value:l}=t;return e(Lo(ko({},a),{data:o,index:r,value:l}))}}}var Po={initPie(){const e=this,{config:t}=e,s=t.data_type,i=t[`${s}_padding`],n=t[`${s}_startingAngle`]||0,a=(i?i*.01:t[`${s}_padAngle`])||0;e.pie=(0,tt.pie)().startAngle(n).endAngle(n+2*Math.PI).padAngle(a).value(o=>{var r,l;return(l=(r=o.values)==null?void 0:r.reduce((c,u)=>c+u.value,0))!=null?l:o}).sort(e.getSortCompareFn.bind(e)(!0))},updateRadius(){const e=this,{config:t,state:s}=e,i=t.data_type,n=t[`${i}_padding`],a=t.gauge_width||t.donut_width,o=e.filterTargetsToShow(e.data.targets).length*t.gauge_arcs_minWidth;s.radiusExpanded=Math.min(s.arcWidth,s.arcHeight)/2*(e.hasMultiArcGauge()&&t.gauge_label_show?.85:1),s.radius=s.radiusExpanded*.95,s.innerRadiusRatio=a?(s.radius-a)/s.radius:.6,s.gaugeArcWidth=a||(o<=s.radius-s.innerRadius?s.radius-s.innerRadius:o<=s.radius?o:s.radius);const r=t.pie_innerRadius||(n?n*(s.innerRadiusRatio+.1):0);s.outerRadius=t.pie_outerRadius,s.innerRadius=e.hasType("donut")||e.hasType("gauge")?s.radius*s.innerRadiusRatio:r},getRadius(e){const t=this,s=e==null?void 0:e.data;let{innerRadius:i,outerRadius:n}=t.state;return!L(i)&&s&&(i=i[s.id]||0),X(n)&&s&&s.id in n?n=n[s.id]:L(n)||(n=t.state.radius),{innerRadius:i,outerRadius:n}},updateArc(){const e=this;e.updateRadius(),e.svgArc=e.getSvgArc(),e.svgArcExpanded=e.getSvgArcExpanded()},getArcLength(){const e=this,{config:t}=e,s=t.gauge_arcLength*3.6;let i=2*(s/360);return s<-360?i=-2:s>360&&(i=2),i*Math.PI},getStartingAngle(){const e=this,{config:t}=e,s=t.data_type,i=e.hasType("gauge")?t.gauge_fullCircle:!1,n=-1*Math.PI/2,a=Math.PI/2;let o=t[`${s}_startingAngle`]||0;return!i&&o<=n?o=n:!i&&o>=a?o=a:(o>Math.PI||o<-1*Math.PI)&&(o=Math.PI),o},updateAngle(e,t=!1){var s;const i=this,{config:n,state:a}=i,o=t&&i.hasType("gauge");let{pie:r}=i,l=e,c=!1;if(!n)return null;const u=i.getStartingAngle(),d=n.gauge_fullCircle||t&&!o?i.getArcLength():u*-2;if(l.data&&i.isGaugeType(l.data)&&!i.hasMultiArcGauge()){const{gauge_min:h,gauge_max:g}=n,f=i.getTotalDataSum(a.rendered),p=d*((f-h)/(g-h));r=r.startAngle(u).endAngle(p+u)}if(t===!1&&r(i.filterTargetsToShow()).forEach((h,g)=>{var f;!c&&h.data.id===((f=l.data)==null?void 0:f.id)&&(c=!0,l=h,l.index=g)}),isNaN(l.startAngle)&&(l.startAngle=0),isNaN(l.endAngle)&&(l.endAngle=l.startAngle),t||l.data&&(n.gauge_enforceMinMax||i.hasMultiArcGauge())){const{gauge_min:h,gauge_max:g}=n,f=t&&!o?i.getTotalDataSum(a.rendered):g,p=d/(f-h),_=(s=l.value)!=null?s:0,x=_{const r=t.updateAngle(o),l=i(r);let c=0;return r&&(c=n(r,l)),r?a.cornerRadius(c)(r):"M 0 0"}},getArc(e,t,s){return s||this.isArcType(e.data)?this.svgArc(e,t):"M 0 0"},redrawArcRangeText(){const e=this,{config:t,$el:{arcs:s},state:i,$T:n}=e,a=t.arc_rangeText_format,o=e.hasType("gauge")&&t.arc_rangeText_fixed;let r=t.arc_rangeText_values;if(r!=null&&r.length){const l=t.arc_rangeText_unit==="%",c=e.getTotalDataSum(i.rendered);l&&(r=r.map(h=>c/100*h));const u=e.pie(r).map((h,g)=>(h.index=g,h));let d=s.selectAll(`.${G.arcRange}`).data(r);d.exit(),d=n(d.enter().append("text").attr("class",G.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(h=>{const g=l?h/c*100:h;return P(a)?a(g):`${g}${l?"%":""}`}).merge(d)),(!i.rendered||i.rendered&&!o)&&c>0&&d.attr("transform",(h,g)=>e.transformForArcLabel(u[g],!0)),d.style("opacity",h=>!o&&(h>c||c===0)?"0":null)}},transformForArcLabel(e,t=!1){var s,i,n;const a=this,{config:o,state:{radiusExpanded:r}}=a,l=a.updateAngle(e,t);let c="";if(l){if(t||a.hasMultiArcGauge()){const u=Math.sin(l.endAngle-Math.PI/2),d=o.arc_rangeText_position;let h=Math.cos(l.endAngle-Math.PI/2)*(r+(t?5:25)),g=u*(r+15-Math.abs(u*10))+3;if(t&&d){const f=o.arc_rangeText_values,p=P(d)?d(f[e.index]):d;h+=(s=p==null?void 0:p.x)!=null?s:0,g+=(i=p==null?void 0:p.y)!=null?i:0}c=`translate(${h},${g})`}else if(!a.hasType("gauge")||a.data.targets.length>1){let{outerRadius:u}=a.getRadius(e);a.hasType("polar")&&(u=a.getPolarOuterRadius(e,u));const d=this.svgArc.centroid(l),[h,g]=d.map(_=>isNaN(_)?0:_),f=Math.sqrt(h*h+g*g);let p=(n=["donut","gauge","pie","polar"].filter(a.hasType.bind(a)).map(_=>o[`${_}_label_ratio`]))==null?void 0:n[0];p?p=P(p)?p.bind(a.api)(e,u,f):p:p=u&&(f?(36/u>.375?1.175-36/u:.8)*u/f:0),c=`translate(${h*p},${g*p})`}}return c},convertToArcData(e){return this.addName({id:"data"in e?e.data.id:e.id,value:e.value,ratio:this.getRatio("arc",e),index:e.index})},textForArcLabel(e){const t=this,s=t.hasType("gauge");t.shouldShowArcLabel()&&e.style("fill",t.updateTextColor.bind(t)).attr("filter",i=>t.updateTextBGColor.bind(t)(i,t.config.data_labels_backgroundColors)).each(function(i){var n;const a=(0,S.select)(this),o=t.updateAngle(i),r=t.getRatio("arc",o);if(t.meetsLabelThreshold(r,(n=["donut","gauge","pie","polar"].filter(t.hasType.bind(t)))==null?void 0:n[0])){const{value:c}=o||i,u=(t.getArcLabelFormat()||t.defaultArcValueFormat)(c,r,i.data.id).toString();le(a,u,[-1,1],s)}else a.text("")})},expandArc(e){const t=this,{state:{transiting:s},$el:i}=t;if(s){const a=setInterval(()=>{s||(clearInterval(a),i.legend.selectAll(`.${Z.legendItemFocused}`).size()>0&&t.expandArc(e))},10);return}const n=t.mapToTargetIds(e);i.svg.selectAll(t.selectorTargets(n,`.${G.chartArc}`)).each(function(a){if(!t.shouldExpand(a.data.id))return;const o=t.getExpandConfig(a.data.id,"duration"),r=t.getSvgArcExpanded(t.getExpandConfig(a.data.id,"rate"));(0,S.select)(this).selectAll("path").transition().duration(o).attrTween("d",je(t.svgArcExpanded.bind(t))).transition().duration(o*2).attrTween("d",je(r.bind(t)))})},unexpandArc(e){const t=this,{state:{transiting:s},$el:{svg:i}}=t;if(s)return;const n=t.mapToTargetIds(e);i.selectAll(t.selectorTargets(n,`.${G.chartArc}`)).selectAll("path").transition().duration(a=>t.getExpandConfig(a.data.id,"duration")).attrTween("d",je(t.svgArc.bind(t))),i.selectAll(`${G.arc}`).style("opacity",null)},getExpandConfig(e,t){const s=this,{config:i}=s,n={duration:50,rate:.98};let a;return s.isDonutType(e)?a="donut":s.isGaugeType(e)?a="gauge":s.isPieType(e)&&(a="pie"),a?i[`${a}_expand_${t}`]:n[t]},shouldExpand(e){const t=this,{config:s}=t;return t.isDonutType(e)&&s.donut_expand||t.isGaugeType(e)&&s.gauge_expand||t.isPieType(e)&&s.pie_expand},shouldShowArcLabel(){const e=this,{config:t}=e;return["donut","gauge","pie","polar"].some(s=>e.hasType(s)&&t[`${s}_label_show`])},getArcLabelFormat(){const e=this,{config:t}=e;let s=i=>i;return["donut","gauge","pie","polar"].filter(e.hasType.bind(e)).forEach(i=>{s=t[`${i}_label_format`]}),P(s)?s.bind(e.api):s},updateTargetsForArc(e){const t=this,{$el:s}=t,i=t.hasType("gauge"),n=t.getChartClass("Arc"),a=t.getClass("arcs",!0),o=t.classFocus.bind(t),r=s.main.select(`.${G.chartArcs}`),l=r.selectAll(`.${G.chartArc}`).data(t.pie(e)).attr("class",u=>n(u)+o(u.data)),c=l.enter().append("g").attr("class",n).call(this.setCssRule(!1,`.${G.chartArcs} text`,["pointer-events:none","text-anchor:middle"]));c.append("g").attr("class",a).merge(l),c.append("text").attr("dy",i&&!t.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor",t.getStylePropValue("middle")).style("pointer-events",t.getStylePropValue("none")),s.text=r.selectAll(`.${z.target} text`)},initArc(){const e=this,{$el:t}=e;t.arcs=t.main.select(`.${z.chart}`).append("g").attr("class",G.chartArcs).attr("transform",e.getTranslate("arc")),e.setArcTitle()},setArcTitle(e){const t=this,s=e||t.getArcTitle(),i=t.hasType("gauge");if(s){const n=i?_t.chartArcsGaugeTitle:G.chartArcsTitle;let a=t.$el.arcs.select(`.${n}`);a.empty()&&(a=t.$el.arcs.append("text").attr("class",n).style("text-anchor","middle")),i&&a.attr("dy","-0.3em"),le(a,s,i?void 0:[-.6,1.35],!0)}},getArcTitle(){const e=this,t=e.hasType("donut")&&"donut"||e.hasType("gauge")&&"gauge";return t?e.config[`${t}_title`]:""},getArcTitleWithNeedleValue(){const e=this,{config:t,state:s}=e,i=e.getArcTitle();if(i&&e.config.arc_needle_show&&/{=[A-Z_]+}/.test(i)){let n=s.current.needle;return L(n)||(n=t.arc_needle_value),be(i,{NEEDLE_VALUE:L(n)?n:0})}return!1},redrawArc(e,t,s){const i=this,{config:n,state:a,$el:{main:o}}=i,r=n.interaction_enabled,l=r&&n.data_selection_isselectable;let c=o.selectAll(`.${G.arcs}`).selectAll(`.${G.arc}`).data(i.arcData.bind(i));c.exit().transition().duration(t).style("opacity","0").remove(),c=c.enter().append("path").attr("class",i.getClass("arc",!0)).style("fill",u=>i.color(u.data)).style("cursor",u=>{var d;return(d=l==null?void 0:l.bind)!=null&&d.call(l,i.api)(u)?"pointer":null}).style("opacity","0").each(function(u){i.isGaugeType(u.data)&&(u.startAngle=n.gauge_startingAngle,u.endAngle=n.gauge_startingAngle),this._current=u}).merge(c),i.hasType("gauge")&&(i.updateGaugeMax(),i.hasMultiArcGauge()&&i.redrawArcGaugeLine()),c.attr("transform",u=>!i.isGaugeType(u.data)&&s?"scale(0)":"").style("opacity",function(u){return u===this._current?"0":null}).each(()=>{a.transiting=!0}).transition().duration(e).attrTween("d",function(u){const d=i.updateAngle(u);if(!d)return()=>"M 0 0";isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);const h=(0,Ks.interpolate)(this._current,d);return this._current=h(0),function(g){const f=h(g);return f.data=u.data,i.getArc(f,!0)}}).attr("transform",s?"scale(1)":"").style("fill",u=>{let d;return i.levelColor?(d=i.levelColor(u.data.values[0].value),n.data_colors[u.data.id]=d):d=i.color(u.data),d}).style("opacity",null).call(me,function(){if(i.levelColor){const u=(0,S.select)(this),d=u.datum(this._current);i.updateLegendItemColor(d.data.id,u.style("fill"))}a.transiting=!1,K(n.onrendered,i.api)}),r&&i.bindArcEvent(c),i.hasType("polar")&&i.redrawPolar(),i.hasType("gauge")&&i.redrawBackgroundArcs(),n.arc_needle_show&&i.redrawNeedle(),i.redrawArcText(e),i.redrawArcRangeText()},redrawNeedle(){const e=this,{$el:t,config:s,state:{hiddenTargetIds:i,radius:n}}=e,a=(n-1)/100*s.arc_needle_length,o=i.length!==e.data.targets.length;let r=e.$el.arcs.select(`.${G.needle}`);const l=s.arc_needle_path,c=s.arc_needle_bottom_width/2,u=s.arc_needle_top_width/2,d=s.arc_needle_top_rx,h=s.arc_needle_top_ry,g=s.arc_needle_bottom_len,f=s.arc_needle_bottom_rx,p=s.arc_needle_bottom_ry,_=e.getNeedleAngle(),x=()=>{const m=e.getArcTitleWithNeedleValue();m&&e.setArcTitle(m)};if(x(),r.empty()&&(r=t.arcs.append("path").classed(G.needle,!0),t.needle=r,t.needle.updateHelper=(m,$=!1)=>{t.needle.style("display")!=="none"&&e.$T(t.needle).style("transform",`rotate(${e.getNeedleAngle(m)}deg)`).call(me,()=>{$&&(s.arc_needle_value=m),x()})}),o){const m=P(l)?l.call(e,a):`M-${c} ${g} A${f} ${p} 0 0 0 ${c} ${g} L${u} -${a} A${d} ${h} 0 0 0 -${u} -${a} L-${c} ${g} Z`;e.$T(r).attr("d",m).style("fill",s.arc_needle_color).style("display",null).style("transform",`rotate(${_}deg)`)}else r.style("display","none")},getNeedleAngle(e){const t=this,{config:s,state:i}=t,n=t.getArcLength(),a=t.hasType("gauge"),o=t.getTotalDataSum(!0);let r=H(e)?e:s.arc_needle_value,l=s[`${s.data_type}_startingAngle`]||0,c=0;if(L(r)||(r=a&&t.data.targets.length===1?o:0),i.current.needle=r,a){l=t.getStartingAngle();const u=s.gauge_fullCircle?n:l*-2,{gauge_min:d,gauge_max:h}=s;c=u*((r-d)/(h-d))}else c=n*(r/o);return(l+c)*(180/Math.PI)},redrawBackgroundArcs(){const e=this,{config:t,state:s}=e,i=e.hasMultiArcGauge(),n=t.gauge_fullCircle,a=e.filterTargetsToShow(e.data.targets).length===0&&!!t.data_empty_label_text,o=e.getStartingAngle(),r=n?o+e.getArcLength():o*-1;let l=e.$el.arcs.select(`${i?"g":""}.${G.chartArcsBackground}`);if(i){let c=0;l=l.selectAll(`path.${G.chartArcsBackground}`).data(e.data.targets),l.enter().append("path").attr("class",(u,d)=>`${G.chartArcsBackground} ${G.chartArcsBackground}-${d}`).merge(l).style("fill",t.gauge_background||null).attr("d",({id:u})=>{if(a||s.hiddenTargetIds.indexOf(u)>=0)return"M 0 0";const d={data:[{value:t.gauge_max}],startAngle:o,endAngle:r,index:c++};return e.getArc(d,!0,!0)}),l.exit().remove()}else l.attr("d",a?"M 0 0":()=>{const c={data:[{value:t.gauge_max}],startAngle:o,endAngle:r};return e.getArc(c,!0,!0)})},bindArcEvent(e){const t=this,{config:s,state:i}=t,n=i.inputType==="touch",a=i.inputType==="mouse";function o(l,c,u){t.expandArc(u),t.api.focus(u),t.toggleFocusLegend(u,!0),t.showTooltip([c],l)}function r(l){const c=(l==null?void 0:l.id)||void 0;t.unexpandArc(c),t.api.revert(),t.revertLegend(),t.hideTooltip()}if(e.on("click",function(l,c,u){var d;const h=t.updateAngle(c);let g;h&&(g=t.convertToArcData(h),(d=t.toggleShape)==null||d.call(t,this,g,u),s.data_onclick.bind(t.api)(g,this))}),a&&e.on("mouseover",function(l,c){if(i.transiting)return;i.event=l;const u=t.updateAngle(c),d=u?t.convertToArcData(u):null,h=(d==null?void 0:d.id)||void 0;o(this,d,h),t.setOverOut(!0,d)}).on("mouseout",(l,c)=>{if(i.transiting)return;i.event=l;const u=t.updateAngle(c),d=u?t.convertToArcData(u):null;r(),t.setOverOut(!1,d)}).on("mousemove",function(l,c){const u=t.updateAngle(c),d=u?t.convertToArcData(u):null;i.event=l,t.showTooltip([d],this)}),n&&t.hasArcType()&&!t.radars){const l=c=>{var u,d;const{clientX:h,clientY:g}=(d=(u=c.changedTouches)==null?void 0:u[0])!=null?d:{clientX:0,clientY:0};return(0,S.select)(lt.elementFromPoint(h,g))};t.$el.svg.on("touchstart touchmove",function(c){if(i.transiting)return;i.event=c;const d=l(c).datum(),h=d!=null&&d.data&&d.data.id?t.updateAngle(d):null,g=h?t.convertToArcData(h):null,f=(g==null?void 0:g.id)||void 0;t.callOverOutForTouch(g),it(f)?r():o(this,g,f)})}},redrawArcText(e){const t=this,{config:s,state:i,$el:{main:n,arcs:a}}=t,o=t.hasType("gauge"),r=t.hasMultiArcGauge();let l;if(o&&t.data.targets.length===1&&s.gauge_title||(l=n.selectAll(`.${G.chartArc}`).select("text").style("opacity","0").attr("class",c=>t.isGaugeType(c.data)?_t.gaugeValue:null).call(t.textForArcLabel.bind(t)).attr("transform",c=>t.transformForArcLabel.bind(t)(c)).style("font-size",c=>t.isGaugeType(c.data)&&t.data.targets.length===1&&!r?`${Math.round(i.radius/5)}px`:null).transition().duration(e).style("opacity",c=>t.isTargetToShow(c.data.id)&&t.isArcType(c.data)?null:"0"),r&&l.attr("dy","-.1em")),n.select(`.${G.chartArcsTitle}`).style("opacity",t.hasType("donut")||o?null:"0"),o){const c=s.gauge_fullCircle;c&&(l==null||l.attr("dy",`${r?0:Math.round(i.radius/14)}`)),s.gauge_label_show&&(a.select(`.${_t.chartArcsGaugeUnit}`).attr("dy",`${c?1.5:.75}em`).text(s.gauge_units),a.select(`.${_t.chartArcsGaugeMin}`).attr("dx",`${-1*(i.innerRadius+(i.radius-i.innerRadius)/(c?1:2))}px`).attr("dy","1.2em").text(t.textForGaugeMinMax(s.gauge_min,!1)),!c&&a.select(`.${_t.chartArcsGaugeMax}`).attr("dx",`${i.innerRadius+(i.radius-i.innerRadius)/2}px`).attr("dy","1.2em").text(t.textForGaugeMinMax(s.gauge_max,!0)))}},getArcElementByIdOrIndex(e){const t=this,{$el:{arcs:s}}=t,i=L(e)?n=>n.index===e:n=>n.data.id===e;return s==null?void 0:s.selectAll(`.${z.target} path`).filter(i)}},Qt={initArea(e){const t=this,{config:s}=t;e.insert("g",`.${s.area_front?ut.circles:kt.lines}`).attr("class",t.getClass("areas",!0))},updateAreaColor(e){const t=this;return t.config.area_linearGradient?t.getGradienColortUrl(e.id):t.color(e)},updateArea(e,t=!1){const s=this,{config:i,state:n,$el:a,$T:o}=s,r=t?a.subchart:a;i.area_linearGradient&&s.updateLinearGradient();const l=r.main.selectAll(`.${fe.areas}`).selectAll(`.${fe.area}`).data(s.lineData.bind(s));o(l.exit(),e).style("opacity","0").remove(),r.area=l.enter().append("path").attr("class",s.getClass("area",!0)).style("fill",s.updateAreaColor.bind(s)).style("opacity",function(){return n.orgAreaOpacity=(0,S.select)(this).style("opacity"),"0"}).merge(l),l.style("opacity",n.orgAreaOpacity),s.setRatioForGroupedData(r.area.data())},redrawArea(e,t,s=!1){const i=this,{area:n}=s?this.$el.subchart:this.$el,{orgAreaOpacity:a}=i.state;return[i.$T(n,t,Lt()).attr("d",e).style("fill",i.updateAreaColor.bind(i)).style("opacity",o=>String(i.isAreaRangeType(o)?a/1.75:a))]},generateDrawArea(e,t){const s=this,{config:i}=s,n=i.line_connectNull,a=i.axis_rotated,o=s.generateGetAreaPoints(e,t),r=s.getYScaleById.bind(s),l=d=>(t?s.subxx:s.xx).call(s,d),c=(d,h)=>s.isGrouped(d.id)?o(d,h)[0][1]:r(d.id,t)(s.isAreaRangeType(d)?s.getRangedData(d,"high"):s.getShapeYMin(d.id)),u=(d,h)=>s.isGrouped(d.id)?o(d,h)[1][1]:r(d.id,t)(s.isAreaRangeType(d)?s.getRangedData(d,"low"):d.value);return d=>{let h=n?s.filterRemoveNull(d.values):d.values,g=0,f=0,p;if(s.isAreaType(d)){let _=(0,tt.area)();_=a?_.y(l).x0(c).x1(u):_.x(l).y0(i.area_above?0:i.area_below?s.state.height:c).y1(u),n||(_=_.defined(x=>s.getBaseValue(x)!==null)),s.isStepType(d)&&(h=s.convertValuesToStep(h)),p=_.curve(s.getCurve(d))(h)}else h[0]&&(g=s.scale.x(h[0].x),f=s.getYScaleById(d.id)(h[0].value)),p=a?`M ${f} ${g}`:`M ${g} ${f}`;return p||"M 0 0"}},generateGetAreaPoints(e,t){const s=this,{config:i}=s,n=s.getShapeX(0,e,t),a=s.getShapeY(!!t),o=s.getShapeOffset(s.isAreaType,e,t),r=s.getYScaleById.bind(s);return function(l,c){const u=r.call(s,l.id,t)(s.getShapeYMin(l.id)),d=o(l,c)||u,h=n(l),g=l.value;let f=a(l);return i.axis_rotated&&(g>0&&fu.values.some(d=>L(d.value)||t.isBarRangeType(d)))).attr("class",u=>n(u)+o(u)).enter().append("g").attr("class",n).style("opacity","0").style("pointer-events",t.getStylePropValue("none")).append("g").attr("class",a).style("cursor",u=>{var d;return(d=r==null?void 0:r.bind)!=null&&d.call(r,t.api)(u)?"pointer":null}).call(t.setCssRule(!0,` .${bt.bar}`,["fill"],t.color))},updateBar(e,t=!1){const s=this,{config:i,$el:n,$T:a}=s,o=t?n.subchart:n,r=s.getClass("bar",!0),l=s.initialOpacity.bind(s);i.bar_linearGradient&&s.updateLinearGradient();const c=o.main.selectAll(`.${bt.bars}`).selectAll(`.${bt.bar}`).data(s.labelishData.bind(s));a(c.exit(),e).style("opacity","0").remove(),o.bar=c.enter().append("path").attr("class",r).style("fill",s.updateBarColor.bind(s)).merge(c).style("opacity",l),s.setRatioForGroupedData(o.bar.data())},updateBarColor(e){const t=this,s=t.getStylePropValue(t.color);return t.config.bar_linearGradient?t.getGradienColortUrl(e.id):s?s(e):null},redrawBar(e,t,s=!1){const i=this,{bar:n}=s?i.$el.subchart:i.$el;return[i.$T(n,t,Lt()).attr("d",a=>(L(a.value)||i.isBarRangeType(a))&&e(a)).style("fill",i.updateBarColor.bind(i)).style("opacity",null)]},generateDrawBar(e,t){const s=this,{config:i}=s,n=s.generateGetBarPoints(e,t),a=i.axis_rotated,o=i.bar_radius,r=i.bar_radius_ratio,l=L(o)&&o>0?()=>o:L(r)?c=>c*r:null;return(c,u)=>{const d=n(c,u),h=+a,g=+!h,f=c.value<0,p=i[`axis_${s.axis.getId(c.id)}_inverted`],_=!p&&f||p&&!f,x=["",""];let m=0;const $=s.isGrouped(c.id),b=l&&$?s.isStackingRadiusData(c):!1;if(l){const y=a?g:h,v=d[2][y]-d[0][y];m=!$||b?l(v):0;const R=`a${m},${m} ${_?"1 0 0":"0 0 1"} `;x[+!a]=`${R}${m},${m}`,x[+a]=`${R}${[-m,m][a?"sort":"reverse"]()}`,_&&x.reverse()}const A=a?`H${d[1][h]+(_?m:-m)} ${x[0]}V${d[2][g]-m} ${x[1]}H${d[3][h]}`:`V${d[1][g]+(_?-m:m)} ${x[0]}H${d[2][h]-m} ${x[1]}V${d[3][g]}`;return`M${d[0][h]},${d[0][g]}${A}z`}},isStackingRadiusData(e){const t=this,{$el:s,config:i,data:n,state:a}=t,{id:o,index:r,value:l}=e;if(a.hiddenTargetIds.indexOf(o)>-1){const h=s.bar.filter(g=>g.id===o&&g.value===l);return!h.empty()&&/a\d+/i.test(h.attr("d"))}const c=i.data_groups.find(h=>h.indexOf(o)>-1),d=t.orderTargets(t.filterTargetsToShow(n.targets.filter(t.isBarType,t))).filter(h=>c.indexOf(h.id)>-1).map(h=>h.values.filter(g=>g.index===r&&(L(l)&&l>0?g.value>0:g.value<0))[0]).filter(Boolean).map(h=>h.id);return l!==0&&d.indexOf(o)===d.length-1},generateGetBarPoints(e,t){const s=this,{config:i}=s,n=t?s.axis.subX:s.axis.x,a=s.getIndicesMax(e)+1,o=s.getBarW("bar",n,a),r=s.getShapeX(o,e,!!t),l=s.getShapeY(!!t),c=s.getShapeOffset(s.isBarType,e,!!t),u=s.getYScaleById.bind(s);return(d,h)=>{const{id:g}=d,f=u.call(s,g,t)(s.getShapeYMin(g)),p=c(d,h)||f,_=L(o)?o:o[d.id]||o._$width,x=i[`axis_${s.axis.getId(g)}_inverted`],m=d.value,$=r(d);let b=l(d);i.axis_rotated&&!x&&(m>0&&bt.isBubbleZType(o)?t.getBubbleZData(o.value,"y"):X(o.value)?o.value.mid:o.value)),n=s*s*Math.PI,a=(t.isBubbleZType(e)?t.getBubbleZData(e.value,"z"):e.value)*(n/i);return Math.sqrt(a/Math.PI)},getBubbleZData(e,t){return X(e)?e[t]:e[t==="y"?0:1]}},Do=Object.defineProperty,ei=Object.getOwnPropertySymbols,zo=Object.prototype.hasOwnProperty,Fo=Object.prototype.propertyIsEnumerable,si=(e,t,s)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Mo=(e,t)=>{for(var s in t||(t={}))zo.call(t,s)&&si(e,s,t[s]);if(ei)for(var s of ei(t))Fo.call(t,s)&&si(e,s,t[s]);return e},Xo={initCandlestick(){const{$el:e}=this;e.candlestick=e.main.select(`.${z.chart}`).append("g").attr("class",Et.chartCandlesticks)},updateTargetsForCandlestick(e){const t=this,{$el:s}=t,i=t.getChartClass("Candlestick");s.candlestick||t.initCandlestick(),t.$el.main.select(`.${Et.chartCandlesticks}`).selectAll(`.${Et.chartCandlestick}`).data(e).enter().append("g").attr("class",i).style("pointer-events","none")},updateCandlestick(e,t=!1){const s=this,{$el:i,$T:n}=s,a=t?i.subchart:i,o=s.getClass("candlestick",!0),r=s.initialOpacity.bind(s),l=a.main.selectAll(`.${Et.chartCandlestick}`).selectAll(`.${Et.candlestick}`).data(s.labelishData.bind(s));n(l.exit(),e).style("opacity","0").remove();const c=l.enter().filter(u=>u.value).append("g").attr("class",o);c.append("line"),c.append("path"),a.candlestick=l.merge(c).style("opacity",r)},generateDrawCandlestick(e,t){const s=this,{config:i}=s,n=s.generateGetCandlestickPoints(e,t),a=i.axis_rotated,o=i.candlestick_color_down;return(r,l,c)=>{const u=n(r,l),d=s.getCandlestickData(r),h=d==null?void 0:d._isUp,g=+a,f=+!g;c.classed&&c.classed(Et[h?"valueUp":"valueDown"],!0);const p=a?`H${u[1][1]} V${u[1][0]} H${u[0][1]}`:`V${u[1][1]} H${u[1][0]} V${u[0][1]}`;c.select("path").attr("d",`M${u[0][g]},${u[0][f]}${p}z`).style("fill",m=>(h?s.color(m):X(o)?o[m.id]:o)||s.color(m));const _=c.select("line"),x=a?{x1:u[2][1],x2:u[2][2],y1:u[2][0],y2:u[2][0]}:{x1:u[2][0],x2:u[2][0],y1:u[2][1],y2:u[2][2]};for(const m in x)_.attr(m,x[m])}},generateGetCandlestickPoints(e,t=!1){const s=this,i=t?s.axis.subX:s.axis.x,n=s.getIndicesMax(e)+1,a=s.getBarW("candlestick",i,n),o=s.getShapeX(a,e,!!t),r=s.getShapeY(!!t),l=s.getShapeOffset(s.isBarType,e,!!t),c=s.getYScaleById.bind(s);return(u,d)=>{const h=c.call(s,u.id,t)(s.getShapeYMin(u.id)),g=l(u,d)||h,f=L(a)?a:a[u.id]||a._$width,p=s.getCandlestickData(u);let _;if(p&&L(p.open)&&L(p.close)){const x={start:o(u),end:0};x.end=x.start+f;const m={start:r(p.open),end:r(p.close)},$={x:x.start+f/2,high:r(p.high),low:r(p.low)};m.start-=h-g,_=[[x.start,m.start],[x.end,m.end],[$.x,$.low,$.high]]}else _=[[0,0],[0,0],[0,0,0]];return _}},redrawCandlestick(e,t,s=!1){const i=this,{$el:n,$T:a}=i,{candlestick:o}=s?n.subchart:n,r=Lt(!0);return[o.each(function(l,c){const u=a((0,S.select)(this),t,r);e(l,c,u)}).style("opacity",null)]},getCandlestickData({value:e}){let t;if(N(e)){const[s,i,n,a,o=!1]=e;t={open:s,high:i,low:n,close:a},o!==!1&&(t.volume=o)}else X(e)&&(t=Mo({},e));return t&&(t._isUp=t.close>=t.open),t||null}},Bo=Object.defineProperty,ii=Object.getOwnPropertySymbols,No=Object.prototype.hasOwnProperty,Go=Object.prototype.propertyIsEnumerable,ni=(e,t,s)=>t in e?Bo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Vo=(e,t)=>{for(var s in t||(t={}))No.call(t,s)&&ni(e,s,t[s]);if(ii)for(var s of ii(t))Go.call(t,s)&&ni(e,s,t[s]);return e};function Ae(e=!1){const t=this,{config:s,state:{current:{width:i,height:n}}}=t,a=t.getCurrentPadding(),o=Vo({width:i-(a.left+a.right),height:n-(s.legend_show?t.getLegendHeight()+10:0)-(a.top+a.bottom)},a);if(e){const{width:r,height:l}=ai.call(t,{width:o.width,height:o.height});o.width{let r=a;return X(a)&&(r=e[o?"height":"width"]*a.ratio),r}),{width:i,height:n}}function Yo(e){const t=this,{top:s,left:i,width:n}=Ae.call(t,!0),a=[];return e.forEach((o,r)=>{const{ratio:l}=o,c=r>0?a[r-1][2][1]:s;a.push(o.coords=[[i,c],[i+n,c],[i+n,r>0?l+c:l+s],[i,r>0?l+c:l+s],[i,c]])}),a}function oi(e=!1){const t=this,{width:s,height:i,top:n,left:a}=Ae.call(t,!0),o=ai.call(t,{width:s,height:i}),r=(s-o.width)/2,l=(s+o.width)/2,c=i-o.height,u=[[0,0],[s,0],[l,c],[l,i],[r,i],[r,c],[0,0]];return e&&u.forEach(d=>{d[0]+=a,d[1]+=n}),`M${u.join("L")}z`}function jo(e){const t=this,{config:s}=t,i=e.map(n=>({id:n.id,value:n.values.reduce((a,o)=>a+o.value,0)}));return s.data_order&&i.sort(t.getSortCompareFn.bind(t)(!0)),ri.call(t,i)}function ri(e){const t=this,{height:s}=Ae.call(t),i=t.getTotalDataSum(!0);return e.forEach(n=>{n.ratio=n.value/i*s}),e}var Ho={initFunnel(){const e=this,{$el:t}=e;t.funnel=t.main.select(`.${z.chart}`).append("g").classed(oe.chartFunnels,!0),t.funnel.background=t.funnel.append("path").classed(oe.funnelBackground,!0),e.bindFunnelEvent()},bindFunnelEvent(){const e=this,{$el:{funnel:t},config:s,state:i}=e,n=a=>{var o;const r=a.isTrusted?a.target:(o=i.eventReceiver.rect)==null?void 0:o.node();let l;return/^path$/i.test(r.tagName)&&(i.event=a,l=(0,S.select)(r).datum()),l};if(s.interaction_enabled){const a=i.inputType==="touch";t.on(a?"touchstart":"mouseover mousemove",o=>{const r=n(o);r&&(e.showTooltip([r],o.target),/^(touchstart|mouseover)$/.test(o.type)&&e.setOverOut(!0,r))}).on(a?"touchend":"mouseout",o=>{const r=n(o);e.hideTooltip(),e.setOverOut(!1,r)})}},updateTargetsForFunnel(e){const t=this,{$el:{funnel:s}}=t,i=t.getChartClass("Funnel"),n=t.getClass("funnel",!0);s||t.initFunnel();const a=jo.call(t,e.filter(t.isFunnelType.bind(t))),o=s.selectAll(`.${oe.chartFunnel}`).data(a);o.exit().remove();const r=o.enter().insert("g",`.${oe.funnelBackground}`);r.append("path"),s.path=r.merge(o).attr("class",l=>i(l)).select("path").attr("class",n).style("opacity","0").style("fill",t.color)},updateFunnel(e){const t=this,{$el:{funnel:s}}=t,i=e.map(({id:n})=>n);s.path=s.path.filter(n=>i.indexOf(n.id)>=0)},generateGetFunnelPoints(){const e=this,{$el:{funnel:t}}=e,s=e.filterTargetsToShow(t.path),{top:i,left:n,right:a}=Ae.call(e),o=(n-a)/2,r={};let l=i!=null?i:0;return s.each((c,u)=>{var d;r[c.id]=[[o,l],[o,l+=((d=s==null?void 0:s[u])!=null?d:c).ratio]]}),c=>r[c.id]},redrawFunnel(){const e=this,{$T:t,$el:{funnel:s}}=e,i=e.filterTargetsToShow(s.path),n=Yo.call(e,ri.call(e,i.data()));s.attr("clip-path",`path('${oi.bind(e)()}')`),s.background.attr("d",oi.call(e,!0)),t(i).attr("d",(a,o)=>`M${n[o].join("L")}z`).style("opacity","1"),s.selectAll("g").style("opacity",null)}},Wo={initGauge(){const e=this,{config:t,$el:{arcs:s}}=e,i=(n=null,a="")=>{s.append("text").attr("class",n).style("text-anchor","middle").style("pointer-events","none").text(a)};if(e.hasType("gauge")){const n=e.hasMultiArcGauge();s.append(n?"g":"path").attr("class",G.chartArcsBackground).style("fill",!n&&t.gauge_background||null),t.gauge_units&&i(_t.chartArcsGaugeUnit),t.gauge_label_show&&(i(_t.chartArcsGaugeMin),!t.gauge_fullCircle&&i(_t.chartArcsGaugeMax))}},updateGaugeMax(){const e=this,{config:t,state:s}=e,n=e.hasMultiArcGauge()?e.getMinMaxData().max[0].value:e.getTotalDataSum(s.rendered);!t.gauge_enforceMinMax&&n+t.gauge_min*(t.gauge_min>0?-1:1)>t.gauge_max&&(t.gauge_max=n-t.gauge_min)},redrawArcGaugeLine(){const e=this,{config:t,state:s,$el:i}=e,{hiddenTargetIds:n}=e.state,a=i.main.selectAll(`.${G.arcs}`).selectAll(`.${G.arcLabelLine}`).data(e.arcData.bind(e));a.enter().append("rect").attr("class",r=>`${G.arcLabelLine} ${z.target} ${z.target}-${r.data.id}`).merge(a).style("fill",r=>e.levelColor?e.levelColor(r.data.values[0].value):e.color(r.data)).style("display",t.gauge_label_show?null:"none").each(function(r){let l=0;const c=2;let u=0,d=0,h="";if(n.indexOf(r.data.id)<0){const g=e.updateAngle(r),f=s.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length*(g.index+1),p=g.endAngle-Math.PI/2,_=s.radius-f,x=p-(_===0?0:1/_);l=s.radiusExpanded-s.radius+f,u=Math.cos(x)*_,d=Math.sin(x)*_,h=`rotate(${p*180/Math.PI}, ${u}, ${d})`}(0,S.select)(this).attr("x",u).attr("y",d).attr("width",l).attr("height",c).attr("transform",h).style("stroke-dasharray",`0, ${l+c}, 0`)})},textForGaugeMinMax(e,t){const s=this,{config:i}=s,n=i.gauge_label_extents;return P(n)?n.bind(s.api)(e,t):e},getGaugeLabelHeight(){const{config:e}=this;return this.config.gauge_label_show&&!e.gauge_fullCircle?20:0},getPaddingBottomForGauge(){const e=this;return e.getGaugeLabelHeight()*(e.config.gauge_label_show?2:2.5)}};function Uo(e,t,s,i=!1){const n=e?[e,0]:s;for(let a=e||s.reduce((o,r)=>o+r);a<=t;)s.forEach(o=>{a+o<=t&&n.push(o),a+=o});return n.length%2!==0&&n.push(i?s[1]:0),{dash:n.join(" "),length:n.reduce((a,o)=>a+o,0)}}function Zo(e,t,s){const i=this,n=[],a="2 2";if(H(t)){const o=(r,l)=>it(r)?l:s?mt.call(i,r):r;for(let r=0,l;l=t[r];r++){const c=o(l.start,e[0].x),u=o(l.end,e[e.length-1].x),d=l.style||{dasharray:a};n[r]={start:c,end:u,style:d}}}return n}var qo={initLine(){const{$el:e}=this;e.line=e.main.select(`.${z.chart}`).append("g").attr("class",kt.chartLines).call(this.setCssRule(!1,`.${kt.chartLines}`,["pointer-events:none"]))},updateTargetsForLine(e){const t=this,{$el:{area:s,line:i,main:n}}=t,a=t.getChartClass("Line"),o=t.getClass("lines",!0),r=t.classFocus.bind(t);i||t.initLine();const l=e.filter(d=>!(t.isScatterType(d)||t.isBubbleType(d))),c=n.select(`.${kt.chartLines}`).selectAll(`.${kt.chartLine}`).data(l).attr("class",d=>a(d)+r(d)),u=c.enter().append("g").attr("class",a).style("opacity","0").style("pointer-events",t.getStylePropValue("none"));if(u.append("g").attr("class",o),t.hasTypeOf("Area")){const d=(!s&&u.empty()?c:u).filter(t.isAreaType.bind(t));t.initArea(d)}t.updateTargetForCircle(l,u)},updateLine(e,t=!1){const s=this,{format:{extraLineClasses:i},$el:n,$T:a}=s,o=t?n.subchart:n,r=o.main.selectAll(`.${kt.lines}`).selectAll(`.${kt.line}`).data(s.lineData.bind(s));a(r.exit(),e).style("opacity","0").remove(),o.line=r.enter().append("path").attr("class",l=>`${s.getClass("line",!0)(l)} ${i(l)||""}`).style("stroke",s.color).merge(r).style("opacity",s.initialOpacity.bind(s)).attr("transform",null)},redrawLine(e,t,s=!1){const i=this,{$el:n,$T:a}=i,{line:o}=s?n.subchart:n;return[a(o,t,Lt()).attr("d",e).style("stroke",this.color).style("opacity",null)]},getCurve(e){const t=this;return t.config.axis_rotated&&t.isStepType(e)?i=>{const n=t.getInterpolate(e)(i);return n.orgPoint=n.point,n.pointRotated=function(a,o){this._point===1&&(this._point=2);const r=this._y*(1-this._t)+o*this._t;this._context.lineTo(this._x,r),this._context.lineTo(a,r),this._x=a,this._y=o},n.point=function(a,o){this._point===0?this.orgPoint(a,o):this.pointRotated(a,o)},n}:t.getInterpolate(e)},generateDrawLine(e,t){const s=this,{config:i,scale:n}=s,a=i.line_connectNull,o=i.axis_rotated,r=s.generateGetLinePoints(e,t),l=s.getYScaleById.bind(s),c=g=>(t?s.subxx:s.xx).call(s,g),u=(g,f)=>s.isGrouped(g.id)?r(g,f)[0][1]:l(g.id,t)(s.getBaseValue(g));let d=(0,tt.line)();d=o?d.x(u).y(c):d.x(c).y(u),a||(d=d.defined(g=>s.getBaseValue(g)!==null));const h=t?n.subX:n.x;return g=>{const f=l(g.id,t);let p=a?s.filterRemoveNull(g.values):g.values,_=0,x=0,m;if(s.isLineType(g)){const $=i.data_regions[g.id];$?m=s.lineWithRegions(p,n.zoom||h,f,$):(s.isStepType(g)&&(p=s.convertValuesToStep(p)),m=d.curve(s.getCurve(g))(p))}else p[0]&&(_=h(p[0].x),x=f(p[0].value)),m=o?`M ${x} ${_}`:`M ${_} ${x}`;return m||"M 0 0"}},lineWithRegions(e,t,s,i){const n=this,{config:a}=n,o=a.axis_rotated,r=n.axis.isTimeSeries(),l="2 2",c=Zo.bind(n)(e,i,r),u=n.hasNullDataValue(e);let d,h,g,f;const p=o?T=>s(T.value):T=>t(T.x),_=o?T=>t(T.x):T=>s(T.value),x=T=>`M${T[0][0]},${T[0][1]}L${T[1][0]},${T[1][1]}`,m=r?(T,C,I,k)=>{const O=T.x.getTime(),M=C.x-T.x,Y=new Date(O+M*I),Q=new Date(O+M*(I+k)),rt=o?[[s(h(I)),t(Y)],[s(h(I+g)),t(Q)]]:[[t(Y),s(h(I))],[t(Q),s(h(I+g))]];return x(rt)}:(T,C,I,k)=>{const O=t(C.x,!o),M=s(C.value,o),Y=I+k,Q=t(d(I),!o),rt=s(h(I),o);let yt=t(d(Y),!o),Rt=s(h(Y),o);yt>O&&(yt=O),T.value>C.value&&(o?RtM)&&(Rt=M);const at=[[Q,rt],[yt,Rt]];return o&&at.forEach(Ct=>Ct.reverse()),x(at)},$={x:n.axis.getAxisType("x"),y:n.axis.getAxisType("y")};let b="";const A=n.$el.line.filter(({id:T})=>T===e[0].id),y=A.clone().style("display","none"),v=(T,C)=>T.attr("d",C).node().getTotalLength(),R={dash:[],lastLength:0};let w=!1;for(let T=0,C;C=e[T];T++){const I=e[T-1],k=I&&F(I.value);let O=n.isWithinRegions(C.x,c);if(F(C.value)){if(it(c)||!O||!k)b+=`${T&&k?"L":"M"}${p(C)},${_(C)}`;else if(k)if(O=((O==null?void 0:O.dasharray)||l).split(" ").map(Number),d=Yt($.x,I.x,C.x),h=Yt($.y,I.value,C.value),u){const M=t(C.x)-t(I.x),Y=s(C.value)-s(I.value),Q=Math.sqrt(Math.pow(M,2)+Math.pow(Y,2));g=O[0]/Q,f=g*O[1];for(let rt=g;rt<=1;rt+=f)b+=m(I,C,rt,g),rt+f>=1&&(b+=m(I,C,1,0))}else{let M=[];if(w=C.x===e[e.length-1].x,r){const yt=+I.x,Rt=new Date(yt),at=new Date(yt+(+C.x-yt));M=[[t(Rt),s(h(0))],[t(at),s(h(1))]]}else M=[[t(d(0)),s(h(0))],[t(d(1)),s(h(1))]];o&&M.forEach(yt=>yt.reverse());const Y=v(y,b),Q=v(y,b+=`L${M[1].join(",")}`),rt=Uo(Y-R.lastLength,Q-R.lastLength,O,w);R.lastLength+=rt.length,R.dash.push(rt.dash)}}}return R.dash.length&&(!w&&R.dash.push(v(y,b)),y.remove(),A.attr("stroke-dasharray",R.dash.join(" "))),b},isWithinRegions(e,t){for(let s=0,i;i=t[s];s++)if(i.startLt();var we={initialOpacityForCircle(e){const{config:t,state:{withoutFadeIn:s}}=this;let i=t.point_opacity;return it(i)&&(i=this.getBaseValue(e)!==null&&s[e.id]?this.opacityForCircle(e):"0"),i},opacityForCircle(e){var t;const{config:s}=this;let i=s.point_opacity;return it(i)&&(i=s.point_show&&!((t=this.isPointFocusOnly)!=null&&t.call(this))?null:"0",i=F(this.getBaseValue(e))?this.isBubbleType(e)||this.isScatterType(e)?"0.5":i:"0"),i},initCircle(){const e=this,{$el:{main:t}}=e;!e.point&&(e.point=e.generatePoint()),(e.hasType("bubble")||e.hasType("scatter"))&&t.select(`.${z.chart} > .${ut.chartCircles}`).empty()&&t.select(`.${z.chart}`).append("g").attr("class",ut.chartCircles)},updateTargetForCircle(e,t){const s=this,{config:i,data:n,$el:a}=s,o=i.interaction_enabled&&i.data_selection_enabled,r=o&&i.data_selection_isselectable,l=s.getClass("circles",!0);if(!i.point_show)return;s.initCircle();let c=e,u=t;if(!c){c=n.targets.filter(h=>this.isScatterType(h)||this.isBubbleType(h));const d=a.main.select(`.${ut.chartCircles}`).style("pointer-events","none").selectAll(`.${ut.circles}`).data(c);d.exit().remove(),u=d.enter()}o&&u.append("g").attr("class",d=>s.generateClass(J.selectedCircles,d.id)),u.append("g").attr("class",l).call(d=>{s.setCssRule(!0,`.${ut.circles}`,["cursor:pointer"],r)(d),s.setCssRule(!0,` .${ut.circle}`,["fill","stroke"],s.color)(d)}).style("opacity",function(){return(0,S.select)(this.parentNode).attr("class").indexOf(ut.chartCircles)>-1?"0":null}),o&&c.forEach(d=>{a.main.selectAll(`.${J.selectedCircles}${s.getTargetSelectorSuffix(d.id)}`).selectAll(`${J.selectedCircle}`).each(h=>{h.value=d.values[h.index].value})})},updateCircle(e=!1){const t=this,{config:s,state:i,$el:n}=t,a=t.isPointFocusOnly(),o=e?n.subchart:n;if(s.point_show&&!i.toggling){s.point_radialGradient&&t.updateLinearGradient();const r=o.main.selectAll(`.${ut.circles}`).selectAll(`.${ut.circle}`).data(l=>t.isLineType(l)&&t.shouldDrawPointsForLine(l)||t.isBubbleType(l)||t.isRadarType(l)||t.isScatterType(l)?a?[l.values[0]]:l.values:[]);r.exit().remove(),r.enter().filter(Boolean).append(t.point("create",this,t.pointR.bind(t),t.updateCircleColor.bind(t))),o.circle=o.main.selectAll(`.${ut.circles} .${ut.circle}`).style("stroke",t.getStylePropValue(t.color)).style("opacity",t.initialOpacityForCircle.bind(t))}},updateCircleColor(e){const t=this,s=t.getStylePropValue(t.color);return t.config.point_radialGradient?t.getGradienColortUrl(e.id):s?s(e):null},redrawCircle(e,t,s,i,n=!1){const a=this,{state:{rendered:o},$el:r,$T:l}=a,c=n?r.subchart:r,u=c.main.selectAll(`.${J.selectedCircle}`);if(!a.config.point_show)return[];const d=a.point("update",a,e,t,a.updateCircleColor.bind(a),s,i,u),h=a.isCirclePoint()?"c":"",g=Lt(),f=a.opacityForCircle.bind(a),p=[];return c.circle.each(function(_){let x=d.bind(this)(_);x=l(x,s||!o,g).style("opacity",f),p.push(x)}),[p,l(u,s).attr(`${h}x`,e).attr(`${h}y`,t)]},showCircleFocus(e){const t=this,{state:{hasRadar:s,resizing:i,toggling:n,transiting:a},$el:o}=t;let{circle:r}=o;if(a===!1&&r&&t.isPointFocusOnly()){const l=(s?t.radarCircleX:t.circleX).bind(t),c=(s?t.radarCircleY:t.circleY).bind(t),u=n||it(e),d=t.point("update",t,l,c,t.getStylePropValue(t.color),i?!1:u);e&&(r=r.filter(function(h){var g;const f=(g=e.filter)==null?void 0:g.call(e,p=>p.id===h.id);return f.length?(0,S.select)(this).datum(f[0]):!1})),r.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(h){const{id:g,index:f,value:p}=h;let _="hidden";F(p)&&(d.bind(this)(h),t.expandCircles(f,g),_=""),this.style.visibility=_})}},hideCircleFocus(){const e=this,{$el:{circle:t}}=e;e.isPointFocusOnly()&&t&&(e.unexpandCircles(),t.style("visibility","hidden"))},circleX(e){return this.xx(e)},updateCircleY(e=!1){const t=this,s=t.generateGetLinePoints(t.getShapeIndices(t.isLineType),e);return(i,n)=>{const a=i.id;return t.isGrouped(a)?s(i,n)[0][1]:t.getYScaleById(a,e)(t.getBaseValue(i))}},expandCircles(e,t,s){const i=this,n=i.pointExpandedR.bind(i);s&&i.unexpandCircles();const a=i.getShapeByIndex("circle",e,t).classed(z.EXPANDED,!0),o=n(a)/i.config.point_r,r=1-o;i.isCirclePoint()?a.attr("r",n):a.each(function(){const l=(0,S.select)(this);if(this.tagName==="circle")l.attr("r",n);else{const{width:c,height:u}=this.getBBox(),d=r*(+l.attr("x")+c/2),h=r*(+l.attr("y")+u/2);l.attr("transform",`translate(${d} ${h}) scale(${o})`)}})},unexpandCircles(e){const t=this,s=t.pointR.bind(t),i=t.getShapeByIndex("circle",e).filter(function(){return(0,S.select)(this).classed(z.EXPANDED)}).classed(z.EXPANDED,!1);if(i.attr("r",s),!t.isCirclePoint()){const n=s(i)/t.config.point_r;i.attr("transform",n!==1?`scale(${n})`:null)}},pointR(e){const t=this,{config:s}=t,i=s.point_r;let n=i;return t.isBubbleType(e)?n=t.getBubbleR(e):P(i)&&(n=i.bind(t.api)(e)),e.r=n,n},pointExpandedR(e){const t=this,{config:s}=t,i=t.isBubbleType(e)?1.15:1.75;return s.point_focus_expand_enabled?s.point_focus_expand_r||t.pointR(e)*i:t.pointR(e)},pointSelectR(e){const t=this,s=t.config.point_select_r;return P(s)?s(e):s||t.pointR(e)*4},isPointFocusOnly(){const e=this;return e.config.point_focus_only&&!e.hasType("bubble")&&!e.hasType("scatter")&&!e.hasArcType(null,["radar"])},isWithinCircle(e,t){const{config:s,state:i}=this,n=$t(i.event,e),a=(0,S.select)(e),o=this.isCirclePoint(e)?"c":"",r=s.point_sensitivity==="radius"?e.getAttribute("r"):s.point_sensitivity;let l=+a.attr(`${o}x`),c=+a.attr(`${o}y`);if(!(l||c)&&e.nodeType===1){const{x:u,y:d}=$e(e);l=u,c=d}return Math.sqrt(Math.pow(l-n[0],2)+Math.pow(c-n[1],2))<(t||r)},getPointSensitivity(e){const t=this;let s=t.config.point_sensitivity;return P(s)?s=s.call(t.api,e):s==="radius"&&(s=e.r),s},updatePointClass(e){const t=this,{circle:s}=t.$el;let i=!1;return(X(e)||s)&&(i=e===!0?s.each(function(n){let a=t.getClass("circle",!0)(n);this.getAttribute("class").indexOf(z.EXPANDED)>-1&&(a+=` ${z.EXPANDED}`),this.setAttribute("class",a)}):t.getClass("circle",!0)(e)),i},generateGetLinePoints(e,t){const s=this,{config:i}=s,n=s.getShapeX(0,e,t),a=s.getShapeY(t),o=s.getShapeOffset(s.isLineType,e,t),r=s.getYScaleById.bind(s);return(l,c)=>{const u=r.call(s,l.id,t)(s.getShapeYMin(l.id)),d=o(l,c)||u,h=n(l);let g=a(l);i.axis_rotated&&(l.value>0&&gF(g.value)?t(g)-l/2:0,d=g=>F(g.value)?s(g)-c/2:0;let h=e;return n&&(a&&h.attr("x",u),h=r.$T(h,n,te()),o&&r.$T(o,n,te())),h.attr("x",u).attr("y",d).style("fill",i)}},circle:{create(e,t,s){return e.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",t).style("fill",s).node()},update(e,t,s,i,n,a,o){const r=this;let l=e;return r.hasType("bubble")&&l.attr("r",r.pointR.bind(r)),n&&(a&&l.attr("cx",t),l.attr("cx")&&(l=r.$T(l,n,te())),o&&r.$T(l,n,te())),l.attr("cx",t).attr("cy",s).style("fill",i)}},rectangle:{create(e,t,s){const i=n=>t(n)*2;return e.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",i).attr("height",i).style("fill",s).node()},update(e,t,s,i,n,a,o){const r=this,l=r.config.point_r,c=h=>t(h)-l,u=h=>s(h)-l;let d=e;return n&&(a&&d.attr("x",c),d=r.$T(d,n,te()),o&&r.$T(o,n,te())),d.attr("x",c).attr("y",u).style("fill",i)}}};function Ko(e){return wt(e)&&P(e.create)&&P(e.update)}function Jo(e,t){var s;const i=this,n=(l,c)=>{const u=l.attributes;for(let d=0,h;h=u[d];d++)h=h.name,c.setAttribute(h,l.getAttribute(h))},o=new DOMParser().parseFromString(e,"image/svg+xml").documentElement,r=lt.createElementNS(S.namespaces.svg,o.nodeName.toLowerCase());if(r.id=t,r.style.fill="inherit",r.style.stroke="inherit",n(o,r),(s=o.childNodes)!=null&&s.length){const l=(0,S.select)(r);"innerHTML"in r?l.html(o.innerHTML):Gt(o.childNodes).forEach(c=>{n(c,l.append(c.tagName).node())})}i.$el.defs.node().appendChild(r)}var ee={hasValidPointType(e){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(e||this.config.point_type)},hasLegendDefsPoint(){var e;const{config:t}=this;return t.legend_show&&((e=t.point_pattern)==null?void 0:e.length)&&t.legend_usePoint},getDefsPointId(e){const{state:{datetimeId:t}}=this;return`${t}-point${e}`},generatePoint(){const e=this,{$el:t,config:s}=e,i=[],n=nt(s.point_pattern)?s.point_pattern:[s.point_type];return function(a,o,...r){return function(l){var c,u,d,h;const g=e.getTargetSelectorSuffix(l.id||((c=l.data)==null?void 0:c.id)||l),f=(0,S.select)(this);i.indexOf(g)<0&&i.push(g);let p=n[i.indexOf(g)%n.length];if(e.hasValidPointType(p))p=e[p];else if(!Ko(p||s.point_type)){const _=e.getDefsPointId(g);if(t.defs.select(`#${_}`).size()<1&&Jo.bind(e)(p,_),a==="create")return(u=e.custom)==null?void 0:u.create.bind(o)(f,_,...r);if(a==="update")return(d=e.custom)==null?void 0:d.update.bind(o)(f,...r)}return(h=p[a])==null?void 0:h.bind(o)(f,...r)}}}};function li(e){const t=e.config.polar_level_max;let s=e.getMinMaxData().max[0].value;return t&&t>s&&(s=t),s}var Qo={initPolar(){const e=this,{$el:{arcs:t},config:s}=e,i=s.polar_level_text_show,n=s.polar_level_text_backgroundColor;t.levels=t.append("g").attr("class",Dt.levels),i&&n&&e.generateTextBGColorFilter(n)},getPolarOuterRadius(e,t){var s;const i=li(this);return((s=e==null?void 0:e.data.values[0].value)!=null?s:0)/i*t},updateTargetsForPolar(e){this.updateTargetsForArc(e)},redrawPolar(){const e=this,{config:t}=e;t.polar_level_show&&e.updatePolarLevel()},updatePolarLevel(){const e=this,{config:t,state:s,$el:{arcs:{levels:i}}}=e,n=t.polar_level_depth,a=li(e),o=ye(0,n),r=s.radius,l=o.map(h=>r*((h+1)/n)),c=(t.polar_level_text_format||function(){}).bind(e.api),u=i.selectAll(`.${Dt.level}`).data(o);u.exit().remove();const d=u.enter().append("g").attr("class",(h,g)=>`${Dt.level} ${Dt.level}-${g}`);if(d.append("circle"),d.merge(u).selectAll("circle").style("visibility",t.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",h=>l[h]),t.polar_level_text_show){const h=t.polar_level_text_backgroundColor,g=`#${s.datetimeId}-labels-bg${e.getTargetSelectorSuffix(h)}`;d.append("text").style("text-anchor","middle"),d.merge(u).selectAll("text").attr("dy",f=>-l[f]+5).attr("filter",h?`url(${g})`:null).text(f=>c(a/o.length*(f+1)))}}};function tr(e,t,s,i,n,a){const o=e&&i>0?s-i:i,r=2*Math.PI;return n*(1-a*(t==="x"?Math.sin:Math.cos)(o*r/s))}const se=pt.radarPoints,ci=pt.radarTextWidth;var er={initRadar(){const e=this,{config:t,state:{current:s},$el:i}=e;e.hasType("radar")&&(i.radar=i.main.select(`.${z.chart}`).append("g").attr("class",Je.chartRadars),i.radar.levels=i.radar.append("g").attr("class",Dt.levels),i.radar.axes=i.radar.append("g").attr("class",ot.axis),i.radar.shapes=i.radar.append("g").attr("class",st.shapes),s.dataMax=t.radar_axis_max||e.getMinMaxData().max[0].value,t.radar_axis_text_show&&(t.interaction_enabled&&e.bindRadarEvent(),e.updateRadarLevel(),e.updateRadarAxes()))},getRadarSize(){const e=this,{config:t,state:{arcWidth:s,arcHeight:i}}=e,n=t.axis_x_categories.length<4?-20:10,a=(Math.min(s,i)-n)/2;return[a,a]},updateTargetsForRadar(e){const t=this,{config:s}=t;Tt(s.axis_x_categories)&&(s.axis_x_categories=ye(0,At("max",e.map(i=>i.values.length)))),t.generateRadarPoints()},getRadarPosition(e,t,s,i){const n=this,{config:a}=n,[o,r]=n.getRadarSize(),l=a.axis_x_categories.length,c=a.radar_direction_clockwise,u=Gt(e).map(d=>tr(c,d,l,t,H(s)?s:e==="x"?o:r,L(i)?i:a.radar_size_ratio));return u.length===1?u[0]:u},generateRadarPoints(){const e=this,t=e.data.targets,[s,i]=e.getRadarSize(),n=e.cache.get(se)||{},a=n._size;(!a||a.width!==s&&a.height!==i)&&(t.forEach(o=>{n[o.id]=o.values.map((r,l)=>e.getRadarPosition(["x","y"],l,void 0,e.getRatio("radar",r)))}),n._size={width:s,height:i},e.cache.add(se,n))},redrawRadar(){const e=this,{radar:t,main:s}=e.$el,i=e.getTranslate("radar");i&&(t.attr("transform",i),s.select(`.${gt.chartTexts}`).attr("transform",i),e.generateRadarPoints(),e.updateRadarLevel(),e.updateRadarAxes(),e.updateRadarShape())},generateGetRadarPoints(){const e=this.cache.get(se);return(t,s)=>{const i=e[t.id][s];return[i,i,i,i]}},updateRadarLevel(){const e=this,{config:t,state:s,$el:{radar:i}}=e,[n,a]=e.getRadarSize(),o=t.radar_level_depth,r=t.axis_x_categories.length,l=t.radar_level_text_show,c=i.levels,u=ye(0,o),d=t.radar_size_ratio*Math.min(n,a),h=u.map(x=>d*((x+1)/o)),g=(t.radar_level_text_format||function(){}).bind(e.api),f=u.map(x=>{const m=h[x];return ye(0,r).map(b=>e.getRadarPosition(["x","y"],b,m,1).join(",")).join(" ")}),p=c.selectAll(`.${Dt.level}`).data(u);p.exit().remove();const _=p.enter().append("g").attr("class",(x,m)=>`${Dt.level} ${Dt.level}-${m}`);_.append("polygon").style("visibility",t.radar_level_show?null:"hidden"),l&&(c.select("text").empty()&&c.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text(()=>g(0)),_.append("text").attr("dx","-.5em").style("text-anchor","end").text(x=>g(s.current.dataMax/u.length*(x+1)))),_.merge(p).attr("transform",x=>`translate(${n-h[x]}, ${a-h[x]})`).selectAll("polygon").attr("points",x=>f[x]),l&&c.selectAll("text").attr("x",x=>it(x)?n:f[x].split(",")[0]).attr("y",x=>it(x)?a:0)},updateRadarAxes(){const e=this,{config:t,$el:{radar:s}}=e,[i,n]=e.getRadarSize(),a=t.axis_x_categories;let o=s.axes.selectAll("g").data(a);o.exit().remove();const r=o.enter().append("g").attr("class",(l,c)=>`${ot.axis}-${c}`);if(t.radar_axis_line_show&&r.append("line"),t.radar_axis_text_show&&r.append("text"),o=r.merge(o),t.radar_axis_line_show&&o.select("line").attr("x1",i).attr("y1",n).attr("x2",(l,c)=>e.getRadarPosition("x",c)).attr("y2",(l,c)=>e.getRadarPosition("y",c)),t.radar_axis_text_show){const{x:l=0,y:c=0}=t.radar_axis_text_position,u=e.cache.get(ci)||0;if(o.select("text").style("text-anchor","middle").attr("dy",".5em").call(d=>{d.each(function(h){le((0,S.select)(this),String(h),[-.6,1.2])})}).datum((d,h)=>({index:h})).attr("transform",function(d){it(this.width)&&(this.width=this.getBoundingClientRect().width/2);let h=e.getRadarPosition("x",d.index,void 0,1),g=Math.round(e.getRadarPosition("y",d.index,void 0,1));return h>i?h+=this.width+l:Math.round(h)n?(g/2===n&&this.firstChild.tagName==="tspan"&&this.firstChild.setAttribute("dy","0em"),g+=c):gos(h.node()).width);d.every(h=>h>0)&&e.cache.add(ci,d[0]-d[1])}}},bindRadarEvent(){const e=this,{state:t,$el:{radar:s,svg:i}}=e,n=e.isPointFocusOnly(),{inputType:a,transiting:o}=t,r=a==="mouse",l=c=>{t.event=c;const u=e.getDataIndexFromEvent(c),d=it(u);(r||d)&&(e.hideTooltip(),n?e.hideCircleFocus():e.unexpandCircles(),r?e.setOverOut(!1,u):d&&e.callOverOutForTouch())};s.axes.on(r?"mouseover ":"touchstart",c=>{if(o)return;t.event=c;const u=e.getDataIndexFromEvent(c);e.selectRectForSingle(i.node(),u),r?e.setOverOut(!0,u):e.callOverOutForTouch(u)}).on("mouseout",r?l:null),r||i.on("touchstart",l)},updateRadarShape(){const e=this,t=e.data.targets.filter(a=>e.isRadarType(a)),s=e.cache.get(se),i=e.$el.radar.shapes.selectAll("polygon").data(t),n=i.enter().append("g").attr("class",e.getChartClass("Radar"));e.$T(i.exit()).remove(),n.append("polygon").merge(i).style("fill",e.color).style("stroke",e.color).attr("points",a=>s[a.id].join(" ")),e.updateTargetForCircle(t,n)},radarCircleX(e){return this.cache.get(se)[e.id][e.index][0]},radarCircleY(e){return this.cache.get(se)[e.id][e.index][1]}},Ot=W(14);function sr(e,t){const s=this,{scale:{x:i,y:n},state:{width:a}}=s;e.selectAll("g").attr("transform",o=>`translate(${o===t?"0,0":`${i(o.x0)},${n(o.y0)}`})`).select("rect").attr("width",o=>o===t?a:i(o.x1)-i(o.x0)).attr("height",o=>o===t?0:n(o.y1)-n(o.y0))}function ir(e){const t=this;return e.map(s=>{const{id:i,values:n}=s,{value:a}=n[0];return{name:i,id:i,value:a,ratio:t.getRatio("treemap",n[0])}})}function nr(e){const t=this,s=(0,Ot.hierarchy)(e).sum(n=>n.value),i=t.getSortCompareFn(!0);return[t.treemap(i?s.sort(i):s)]}var ar={initTreemap(){const e=this,{$el:t,state:{current:{width:s,height:i},clip:n,datetimeId:a}}=e;n.id=`${a}-clip`,e.treemap=(0,Ot.treemap)().tile(e.getTreemapTile()),t.defs.append("clipPath").attr("id",n.id).append("rect").attr("width",s).attr("height",i),t.treemap=t.main.select(`.${z.chart}`).attr("clip-path",`url(#${n.id})`).append("g").classed(ts.chartTreemaps,!0),e.bindTreemapEvent()},bindTreemapEvent(){const e=this,{$el:t,config:s,state:i}=e,n=a=>{var o;const r=a.isTrusted?a.target:(o=i.eventReceiver.rect)==null?void 0:o.node();let l;return/^rect$/i.test(r.tagName)&&(i.event=a,l=(0,S.select)(r).datum()),l==null?void 0:l.data};if(s.interaction_enabled){const a=i.inputType==="touch";t.treemap.on(a?"touchstart":"mouseover mousemove",o=>{const r=n(o);r&&(e.showTooltip([r],o.currentTarget),/^(touchstart|mouseover)$/.test(o.type)&&e.setOverOut(!0,r))}).on(a?"touchend":"mouseout",o=>{const r=n(o);e.hideTooltip(),e.setOverOut(!1,r)})}},getTreemapTile(){var e,t;const s=this,{config:i,state:{current:{width:n,height:a}}}=s,o=(t={binary:Ot.treemapBinary,dice:Ot.treemapDice,slice:Ot.treemapSlice,sliceDice:Ot.treemapSliceDice,squarify:Ot.treemapSquarify,resquarify:Ot.treemapResquarify}[(e=i.treemap_tile)!=null?e:"binary"])!=null?t:Ot.treemapBinary;return(r,l,c,u,d)=>{o(r,0,0,n,a);for(const h of r.children)h.x0=l+h.x0/n*(u-l),h.x1=l+h.x1/n*(u-l),h.y0=c+h.y0/a*(d-c),h.y1=c+h.y1/a*(d-c)}},getTreemapData(e){const t=this;return{name:"root",children:ir.bind(t)(t.filterTargetsToShow(e.filter(t.isTreemapType,t)))}},updateTargetsForTreemap(e){const t=this,{$el:{treemap:s}}=t,i=nr.call(t,t.getTreemapData(e!=null?e:t.data.targets));s.data(i)},updateTreemap(e){const t=this,{$el:s,$T:i}=t,n=s.treemap.datum(),a=t.getChartClass("Treemap"),o=t.getClass("treemap",!0),r=s.treemap.selectAll("g").data(n.children);i(r.exit(),e).style("opacity","0").remove(),r.enter().append("g").append("rect"),s.treemap.selectAll("g").attr("class",a).select("rect").attr("class",o).attr("fill",l=>t.color(l.data.name))},generateGetTreemapPoints(){const e=this,{$el:t,scale:{x:s,y:i}}=e,n={};return t.treemap.selectAll("g").each(a=>{n[a.data.name]=[[s(a.x0),i(a.y0)],[s(a.x1),i(a.y1)]]}),a=>n[a.id]},redrawTreemap(e){const t=this,{$el:s,state:{current:{width:i,height:n}}}=t;return s.defs.select("rect").attr("width",i).attr("height",n),[t.$T(s.treemap,e,Lt()).call(sr.bind(t),s.treemap.datum())]},treemapDataLabelFormat(e){const t=this,{config:s}=t,{id:i,value:n}=e,a=s.treemap_label_format,o=t.getRatio("treemap",e),r=(o*100).toFixed(2),l=s.treemap_label_show&&t.meetsLabelThreshold(o,"treemap")?null:"0";return function(c){return c.style("opacity",l),P(a)?a.bind(t.api)(n,o,i):`${i} +${r}%`}}},Ht={point_show:!0,point_r:2.5,point_radialGradient:!1,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},ie={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},or={bar_front:!1,bar_indices_removeNull:!1,bar_label_threshold:0,bar_linearGradient:!1,bar_overlap:!1,bar_padding:0,bar_radius:void 0,bar_radius_ratio:void 0,bar_sensitivity:2,bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0},rr={bubble_maxR:35,bubble_zerobased:!1},lr={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},cr={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},dr={scatter_zerobased:!1},He={spline_interpolation_type:"cardinal"},Se={arc_cornerRadius:0,arc_cornerRadius_ratio:0,arc_needle_show:!1,arc_needle_color:void 0,arc_needle_value:void 0,arc_needle_path:void 0,arc_needle_length:100,arc_needle_top_rx:0,arc_needle_top_ry:0,arc_needle_top_width:0,arc_needle_bottom_rx:1,arc_needle_bottom_ry:1,arc_needle_bottom_width:15,arc_needle_bottom_len:0,arc_rangeText_values:void 0,arc_rangeText_unit:"absolute",arc_rangeText_fixed:!1,arc_rangeText_format:void 0,arc_rangeText_position:void 0},ur={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},hr={funnel_neck_width:0,funnel_neck_height:0},gr={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_extents:void 0,gauge_label_format:void 0,gauge_label_ratio:void 0,gauge_label_threshold:0,gauge_enforceMinMax:!1,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},fr={pie_label_show:!0,pie_label_format:void 0,pie_label_ratio:void 0,pie_label_threshold:.05,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},pr={polar_label_show:!0,polar_label_format:void 0,polar_label_threshold:.05,polar_label_ratio:void 0,polar_level_depth:3,polar_level_max:void 0,polar_level_show:!0,polar_level_text_backgroundColor:"#fff",polar_level_text_format:e=>e%1===0?e:e.toFixed(2),polar_level_text_show:!0,polar_padAngle:0,polar_padding:0,polar_startingAngle:0},xr={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:e=>e%1===0?e:e.toFixed(2),radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1},_r={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0};function ne(e,t){ct(jt.prototype,Object.values(Zs).concat(e)),ct(Xt.prototype,Ao),Vt.setOptions(Object.values(qs).concat(t||[]))}function It(e,t){ne([ee,we,qo].concat(e||[])),Vt.setOptions([Ht,cr].concat(t||[]))}function ae(e,t){ct(jt.prototype,[Po,ee].concat(e||[])),Vt.setOptions([Ht].concat(t||[]))}let di=()=>(It(Qt,[ie]),(di=()=>E.AREA)()),ui=()=>(It(Qt,[ie]),(ui=()=>E.AREA_LINE_RANGE)()),hi=()=>(It(Qt,[ie]),(hi=()=>E.AREA_STEP_RANGE)()),gi=()=>(It(Qt,[ie,He]),(gi=()=>E.AREA_SPLINE)()),fi=()=>(It(Qt,[ie,He]),(fi=()=>E.AREA_SPLINE_RANGE)()),pi=()=>(It(Qt,[ie]),(pi=()=>E.AREA_STEP)()),xi=()=>(It(),(xi=()=>E.LINE)()),_i=()=>(It(void 0,[He]),(_i=()=>E.SPLINE)()),mi=()=>(It(),(mi=()=>E.STEP)()),$i=()=>(ae(void 0,[Se,ur]),($i=()=>E.DONUT)()),yi=()=>(ae([Wo],[Se,gr]),(yi=()=>E.GAUGE)()),bi=()=>(ae(void 0,[Se,fr]),(bi=()=>E.PIE)()),vi=()=>(ae([Qo],[Se,pr]),(vi=()=>E.POLAR)()),Ti=()=>(ae([Zs.eventrect,we,er],[Ht,xr,{axis_x_categories:qs.optAxis.axis_x_categories}]),(Ti=()=>E.RADAR)()),Ai=()=>(ne([Oo,ee],[or,Ht]),(Ai=()=>E.BAR)()),wi=()=>(ne([ee,we,Io],[rr,Ht]),(wi=()=>E.BUBBLE)()),Si=()=>(ne([Xo,ee],[lr,Ht]),(Si=()=>E.CANDLESTICK)()),Ri=()=>(ne([ee,we],[Ht,dr]),(Ri=()=>E.SCATTER)()),Ci=()=>(ae([Ho],[hr]),(Ci=()=>E.FUNNEL)()),Ei=()=>(ne([ar],[_r]),(Ei=()=>E.TREEMAP)()),We={};const ki={version:"3.12.4-nightly-20240726004631",generate(e){const t=qt({},We,e),s=new Xt(t);return s.internal.charts=this.instance,this.instance.push(s),s},defaults(e){return X(e)&&(We=e),We},instance:[],plugin:{}};Object.keys(xt).forEach(e=>xt[e]()),Object.keys(D).forEach(e=>D[e]())}(),Re}()}); diff --git a/dist/billboard.pkgd.js b/dist/billboard.pkgd.js index 72343a40f..5f0e8a74a 100644 --- a/dist/billboard.pkgd.js +++ b/dist/billboard.pkgd.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * * All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills. * - @types/d3-selection ^3.0.0 @@ -27056,10 +27056,20 @@ function getDataKeyForJson(keysParam, config) { const dataLabels = this.config.data_labels; return isBoolean(dataLabels) && dataLabels || isObjectType(dataLabels) && notEmpty(dataLabels); }, + /** + * Determine if has null value + * @param {Array} targets Data array to be evaluated + * @returns {boolean} + * @private + */ + hasNullDataValue(targets) { + return targets.some(({ value }) => value === null); + }, /** * Get data index from the event coodinates * @param {Event} event Event object * @returns {number} + * @private */ getDataIndexFromEvent(event) { const $$ = this; @@ -30514,7 +30524,7 @@ function utcTime() { ;// CONCATENATED MODULE: ./src/ChartInternal/internals/scale.ts -function getScale(type = "linear", min = 0, max = 1) { +function getScale(type = "linear", min, max) { const scale = { linear: linear_linear, log: symlog, @@ -30524,7 +30534,7 @@ function getScale(type = "linear", min = 0, max = 1) { }[type](); scale.type = type; /_?log/.test(type) && scale.clamp(true); - return scale.range([min, max]); + return scale.range([min != null ? min : 0, max != null ? max : 1]); } /* harmony default export */ var scale = ({ /** @@ -42781,8 +42791,12 @@ var axis_spreadValues = (a, b) => { * - The object type should be as: * - start {number}: Start data point number. If not set, the start will be the first data point. * - [end] {number}: End data point number. If not set, the end will be the last data point. - * - [style.dasharray="2 2"] {object}: The first number specifies a distance for the filled area, and the second a distance for the unfilled area. - * - **NOTE:** Currently this option supports only line chart and dashed style. If this option specified, the line will be dashed only in the regions. + * - [style.dasharray="2 2"] {string}: The first number specifies a distance for the filled area, and the second a distance for the unfilled area. + * - **NOTE:** + * - Supports only line type. + * - `start` and `end` values should be in the exact x value range. + * - Dashes will be applied using `stroke-dasharray` css property when data doesn't contain nullish value(or nullish value with `line.connectNull=true` set). + * - Dashes will be applied via path command when data contains nullish value. * @name data․regions * @memberof Options * @type {object} @@ -45079,6 +45093,37 @@ function updateRatio(data) { +function getStrokeDashArray(start, end, pattern, isLastX = false) { + const dash = start ? [start, 0] : pattern; + for (let i = start ? start : pattern.reduce((a, c) => a + c); i <= end; ) { + pattern.forEach((v) => { + if (i + v <= end) { + dash.push(v); + } + i += v; + }); + } + dash.length % 2 !== 0 && dash.push(isLastX ? pattern[1] : 0); + return { + dash: dash.join(" "), + length: dash.reduce((a, b) => a + b, 0) + }; +} +function getRegions(d, _regions, isTimeSeries) { + const $$ = this; + const regions = []; + const dasharray = "2 2"; + if (isDefined(_regions)) { + const getValue = (v, def) => isUndefined(v) ? def : isTimeSeries ? parseDate.call($$, v) : v; + for (let i = 0, reg; reg = _regions[i]; i++) { + const start = getValue(reg.start, d[0].x); + const end = getValue(reg.end, d[d.length - 1].x); + const style = reg.style || { dasharray }; + regions[i] = { start, end, style }; + } + } + return regions; +} /* harmony default export */ var line = ({ initLine() { const { $el } = this; @@ -45200,26 +45245,27 @@ function updateRatio(data) { return path || "M 0 0"; }; }, + /** + * Set regions dasharray and get path + * @param {Array} d Data object + * @param {Function} x x scale function + * @param {Function} y y scale function + * @param {object} _regions regions to be set + * @returns {stirng} Path string + * @private + */ lineWithRegions(d, x, y, _regions) { const $$ = this; const { config } = $$; const isRotated = config.axis_rotated; const isTimeSeries = $$.axis.isTimeSeries(); - const regions = []; const dasharray = "2 2"; + const regions = getRegions.bind($$)(d, _regions, isTimeSeries); + const hasNullDataValue = $$.hasNullDataValue(d); let xp; let yp; let diff; let diffx2; - if (isDefined(_regions)) { - const getValue = (v, def) => isUndefined(v) ? def : isTimeSeries ? parseDate.call($$, v) : v; - for (let i = 0, reg; reg = _regions[i]; i++) { - const start = getValue(reg.start, d[0].x); - const end = getValue(reg.end, d[d.length - 1].x); - const style = reg.style || { dasharray }; - regions[i] = { start, end, style }; - } - } const xValue = isRotated ? (dt) => y(dt.value) : (dt) => x(dt.x); const yValue = isRotated ? (dt) => x(dt.x) : (dt) => y(dt.value); const generateM = (points) => `M${points[0][0]},${points[0][1]}L${points[1][0]},${points[1][1]}`; @@ -45244,17 +45290,23 @@ function updateRatio(data) { if (d0.value > d1.value && (isRotated ? yDiff < y0 : yDiff > y0)) { yDiff = y0; } - const points = isRotated ? [ - [yValue2, xValue2], - [yDiff, xDiff] - ] : [ + const points = [ [xValue2, yValue2], [xDiff, yDiff] ]; + isRotated && points.forEach((v) => v.reverse()); return generateM(points); }; const axisType = { x: $$.axis.getAxisType("x"), y: $$.axis.getAxisType("y") }; let path = ""; + const target = $$.$el.line.filter(({ id }) => id === d[0].id); + const tempNode = target.clone().style("display", "none"); + const getLength = (node, path2) => node.attr("d", path2).node().getTotalLength(); + const dashArray = { + dash: [], + lastLength: 0 + }; + let isLastX = false; for (let i = 0, data; data = d[i]; i++) { const prevData = d[i - 1]; const hasPrevData = prevData && isValue(prevData.value); @@ -45268,19 +45320,58 @@ function updateRatio(data) { style = ((style == null ? void 0 : style.dasharray) || dasharray).split(" ").map(Number); xp = getScale(axisType.x, prevData.x, data.x); yp = getScale(axisType.y, prevData.value, data.value); - const dx = x(data.x) - x(prevData.x); - const dy = y(data.value) - y(prevData.value); - const dd = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2)); - diff = style[0] / dd; - diffx2 = diff * style[1]; - for (let j = diff; j <= 1; j += diffx2) { - path += sWithRegion(prevData, data, j, diff); - if (j + diffx2 >= 1) { - path += sWithRegion(prevData, data, 1, 0); + if (hasNullDataValue) { + const dx = x(data.x) - x(prevData.x); + const dy = y(data.value) - y(prevData.value); + const dd = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2)); + diff = style[0] / dd; + diffx2 = diff * style[1]; + for (let j = diff; j <= 1; j += diffx2) { + path += sWithRegion(prevData, data, j, diff); + if (j + diffx2 >= 1) { + path += sWithRegion(prevData, data, 1, 0); + } } + } else { + let points = []; + isLastX = data.x === d[d.length - 1].x; + if (isTimeSeries) { + const x0 = +prevData.x; + const xv0 = new Date(x0); + const xv1 = new Date(x0 + (+data.x - x0)); + points = [ + [x(xv0), y(yp(0))], + // M + [x(xv1), y(yp(1))] + // L + ]; + } else { + points = [ + [x(xp(0)), y(yp(0))], + // M + [x(xp(1)), y(yp(1))] + // L + ]; + } + isRotated && points.forEach((v) => v.reverse()); + const startLength = getLength(tempNode, path); + const endLength = getLength(tempNode, path += `L${points[1].join(",")}`); + const strokeDashArray = getStrokeDashArray( + startLength - dashArray.lastLength, + endLength - dashArray.lastLength, + style, + isLastX + ); + dashArray.lastLength += strokeDashArray.length; + dashArray.dash.push(strokeDashArray.dash); } } } + if (dashArray.dash.length) { + !isLastX && dashArray.dash.push(getLength(tempNode, path)); + tempNode.remove(); + target.attr("stroke-dasharray", dashArray.dash.join(" ")); + } return path; }, isWithinRegions(withinX, withinRegions) { @@ -48153,7 +48244,7 @@ const bb = { * bb.version; // "1.0.0" * @memberof bb */ - version: "3.12.4-nightly-20240724004639", + version: "3.12.4-nightly-20240726004631", /** * Generate chart * - **NOTE:** Bear in mind for the possiblity of ***throwing an error***, during the generation when: diff --git a/dist/billboard.pkgd.min.js b/dist/billboard.pkgd.min.js index 55cc288bc..eb8183378 100644 --- a/dist/billboard.pkgd.min.js +++ b/dist/billboard.pkgd.min.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * * All-in-one packaged file for ease use of 'billboard.js' with dependant d3.js modules & polyfills. * - @types/d3-selection ^3.0.0 @@ -23,10 +23,10 @@ * - d3-time-format ^4.1.0 * - d3-transition ^3.0.1 * - d3-zoom ^3.0.0 - */(function(Va,Nn){if(typeof exports=="object"&&typeof module=="object")module.exports=Nn();else if(typeof define=="function"&&define.amd)define([],Nn);else{var Xa=Nn();for(var x in Xa)(typeof exports=="object"?exports:Va)[x]=Xa[x]}})(this,function(){return function(){"use strict";var Oo=[function(x,E,r){r(1),r(97),r(98),r(99),r(100),r(101),r(102),r(103),r(104),r(105),r(106),r(107),r(108),r(109),r(110),r(111),r(124),r(126),r(136),r(137),r(139),r(143),r(146),r(148),r(150),r(151),r(152),r(153),r(155),r(156),r(158),r(159),r(161),r(165),r(166),r(167),r(168),r(173),r(174),r(176),r(177),r(178),r(180),r(183),r(184),r(185),r(186),r(187),r(192),r(194),r(195),r(197),r(200),r(201),r(202),r(203),r(204),r(206),r(216),r(218),r(221),r(223),r(226),r(233),r(234),r(235),r(236),r(237),r(238),r(242),r(243),r(245),r(246),r(247),r(249),r(250),r(251),r(93),r(252),r(253),r(261),r(263),r(265),r(266),r(267),r(268),r(269),r(271),r(272),r(273),r(274),r(275),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(288),r(289),r(291),r(293),r(294),r(295),r(296),r(297),r(299),r(301),r(302),r(303),r(304),r(306),r(307),r(309),r(310),r(311),r(312),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(336),r(337),r(338),r(339),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(387),r(388),r(390),r(391),r(392),r(393),r(394),r(396),r(407),r(409),r(411),r(413),r(415),r(417),r(419),r(420),r(422),r(425),r(426),r(427),r(428),r(429),r(433),r(434),r(436),r(437),r(438),r(439),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(449),r(452),r(455),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(479),r(480),r(481),r(482),r(483),r(484),r(485),r(486),r(487),r(488),r(489),r(490),r(491),r(494),r(495),r(496),r(497),r(498),r(499),r(500),r(501),r(502),r(503),r(504),r(505),r(506),r(507),r(508),r(509),r(510),r(511),r(512),r(513),r(514),r(515),r(516),r(517),r(518),r(519),r(520),r(521),r(524),r(526),r(528),r(529),r(532),r(533),r(535),r(536),r(537),r(542),r(543),r(544),r(545),r(548),r(553),r(554),r(555),r(556),r(557),r(558),r(559),r(80)},function(x,E,r){r(2),r(90),r(92),r(93),r(96)},function(x,E,r){var f=r(3),d=r(4),h=r(8),p=r(14),y=r(36),T=r(6),$=r(26),A=r(7),b=r(38),R=r(24),O=r(46),C=r(12),w=r(18),D=r(68),L=r(11),F=r(71),j=r(73),U=r(57),z=r(75),Y=r(66),B=r(5),X=r(44),K=r(72),Q=r(10),Z=r(47),_=r(77),nt=r(34),rt=r(53),q=r(54),tt=r(40),et=r(33),lt=r(78),pt=r(79),ft=r(81),bt=r(82),xt=r(51),Ft=r(83).forEach,Lt=rt("hidden"),jt="Symbol",Kt="prototype",Jt=xt.set,ge=xt.getterFor(jt),ce=Object[Kt],ee=d.Symbol,Mt=ee&&ee[Kt],zt=d.RangeError,te=d.TypeError,ie=d.QObject,re=B.f,le=X.f,Re=z.f,Ce=Q.f,xe=p([].push),oe=nt("symbols"),Ae=nt("op-symbols"),me=nt("wks"),ue=!ie||!ie[Kt]||!ie[Kt].findChild,Et=function(Ot,Pt,ot){var vt=re(ce,Pt);vt&&delete ce[Pt],le(Ot,Pt,ot),vt&&Ot!==ce&&le(ce,Pt,vt)},Bt=T&&A(function(){return F(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!==7})?Et:le,At=function(Ot,Pt){var ot=oe[Ot]=F(Mt);return Jt(ot,{type:jt,tag:Ot,description:Pt}),T||(ot.description=Pt),ot},kt=function(Pt,ot,vt){Pt===ce&&kt(Ae,ot,vt),O(Pt);var ct=w(ot);return O(vt),b(oe,ct)?(vt.enumerable?(b(Pt,Lt)&&Pt[Lt][ct]&&(Pt[Lt][ct]=!1),vt=F(vt,{enumerable:L(0,!1)})):(b(Pt,Lt)||le(Pt,Lt,L(1,F(null))),Pt[Lt][ct]=!0),Bt(Pt,ct,vt)):le(Pt,ct,vt)},Qt=function(Pt,ot){O(Pt);var vt=C(ot),ct=j(vt).concat(dt(vt));return Ft(ct,function(Nt){(!T||h(Ut,vt,Nt))&&kt(Pt,Nt,vt[Nt])}),Pt},Xt=function(Pt,ot){return ot===void 0?F(Pt):Qt(F(Pt),ot)},Ut=function(Pt){var ot=w(Pt),vt=h(Ce,this,ot);return this===ce&&b(oe,ot)&&!b(Ae,ot)?!1:vt||!b(this,ot)||!b(oe,ot)||b(this,Lt)&&this[Lt][ot]?vt:!0},we=function(Pt,ot){var vt=C(Pt),ct=w(ot);if(!(vt===ce&&b(oe,ct)&&!b(Ae,ct))){var Nt=re(vt,ct);return Nt&&b(oe,ct)&&!(b(vt,Lt)&&vt[Lt][ct])&&(Nt.enumerable=!0),Nt}},Ye=function(Pt){var ot=Re(C(Pt)),vt=[];return Ft(ot,function(ct){!b(oe,ct)&&!b(q,ct)&&xe(vt,ct)}),vt},dt=function(Ot){var Pt=Ot===ce,ot=Re(Pt?Ae:C(Ot)),vt=[];return Ft(ot,function(ct){b(oe,ct)&&(!Pt||b(ce,ct))&&xe(vt,oe[ct])}),vt};$||(ee=function(){if(R(Mt,this))throw new te("Symbol is not a constructor");var Pt=!arguments.length||arguments[0]===void 0?void 0:D(arguments[0]),ot=tt(Pt),vt=function(ct){var Nt=this===void 0?d:this;Nt===ce&&h(vt,Ae,ct),b(Nt,Lt)&&b(Nt[Lt],ot)&&(Nt[Lt][ot]=!1);var qt=L(1,ct);try{Bt(Nt,ot,qt)}catch(se){if(!(se instanceof zt))throw se;Et(Nt,ot,qt)}};return T&&ue&&Bt(ce,ot,{configurable:!0,set:vt}),At(ot,Pt)},Mt=ee[Kt],Z(Mt,"toString",function(){return ge(this).tag}),Z(ee,"withoutSetter",function(Ot){return At(tt(Ot),Ot)}),Q.f=Ut,X.f=kt,K.f=Qt,B.f=we,U.f=z.f=Ye,Y.f=dt,lt.f=function(Ot){return At(et(Ot),Ot)},T&&(_(Mt,"description",{configurable:!0,get:function(){return ge(this).description}}),y||Z(ce,"propertyIsEnumerable",Ut,{unsafe:!0}))),f({global:!0,constructor:!0,wrap:!0,forced:!$,sham:!$},{Symbol:ee}),Ft(j(me),function(Ot){pt(Ot)}),f({target:jt,stat:!0,forced:!$},{useSetter:function(){ue=!0},useSimple:function(){ue=!1}}),f({target:"Object",stat:!0,forced:!$,sham:!T},{create:Xt,defineProperty:kt,defineProperties:Qt,getOwnPropertyDescriptor:we}),f({target:"Object",stat:!0,forced:!$},{getOwnPropertyNames:Ye}),ft(),bt(ee,jt),q[Lt]=!0},function(x,E,r){var f=r(4),d=r(5).f,h=r(43),p=r(47),y=r(37),T=r(55),$=r(67);x.exports=function(A,b){var R=A.target,O=A.global,C=A.stat,w,D,L,F,j,U;if(O?D=f:C?D=f[R]||y(R,{}):D=f[R]&&f[R].prototype,D)for(L in b){if(j=b[L],A.dontCallGetSet?(U=d(D,L),F=U&&U.value):F=D[L],w=$(O?L:R+(C?".":"#")+L,A.forced),!w&&F!==void 0){if(typeof j==typeof F)continue;T(j,F)}(A.sham||F&&F.sham)&&h(j,"sham",!0),p(D,L,j,A)}}},function(x){var E=function(r){return r&&r.Math===Math&&r};x.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof global=="object"&&global)||E(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},function(x,E,r){var f=r(6),d=r(8),h=r(10),p=r(11),y=r(12),T=r(18),$=r(38),A=r(41),b=Object.getOwnPropertyDescriptor;E.f=f?b:function(O,C){if(O=y(O),C=T(C),A)try{return b(O,C)}catch(w){}if($(O,C))return p(!d(h.f,O,C),O[C])}},function(x,E,r){var f=r(7);x.exports=!f(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},function(x){x.exports=function(E){try{return!!E()}catch(r){return!0}}},function(x,E,r){var f=r(9),d=Function.prototype.call;x.exports=f?d.bind(d):function(){return d.apply(d,arguments)}},function(x,E,r){var f=r(7);x.exports=!f(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},function(x,E){var r={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,d=f&&!r.call({1:2},1);E.f=d?function(p){var y=f(this,p);return!!y&&y.enumerable}:r},function(x){x.exports=function(E,r){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:r}}},function(x,E,r){var f=r(13),d=r(16);x.exports=function(h){return f(d(h))}},function(x,E,r){var f=r(14),d=r(7),h=r(15),p=Object,y=f("".split);x.exports=d(function(){return!p("z").propertyIsEnumerable(0)})?function(T){return h(T)==="String"?y(T,""):p(T)}:p},function(x,E,r){var f=r(9),d=Function.prototype,h=d.call,p=f&&d.bind.bind(h,h);x.exports=f?p:function(y){return function(){return h.apply(y,arguments)}}},function(x,E,r){var f=r(14),d=f({}.toString),h=f("".slice);x.exports=function(p){return h(d(p),8,-1)}},function(x,E,r){var f=r(17),d=TypeError;x.exports=function(h){if(f(h))throw new d("Can't call method on "+h);return h}},function(x){x.exports=function(E){return E==null}},function(x,E,r){var f=r(19),d=r(22);x.exports=function(h){var p=f(h,"string");return d(p)?p:p+""}},function(x,E,r){var f=r(8),d=r(20),h=r(22),p=r(29),y=r(32),T=r(33),$=TypeError,A=T("toPrimitive");x.exports=function(b,R){if(!d(b)||h(b))return b;var O=p(b,A),C;if(O){if(R===void 0&&(R="default"),C=f(O,b,R),!d(C)||h(C))return C;throw new $("Can't convert object to primitive value")}return R===void 0&&(R="number"),y(b,R)}},function(x,E,r){var f=r(21);x.exports=function(d){return typeof d=="object"?d!==null:f(d)}},function(x){var E=typeof document=="object"&&document.all;x.exports=typeof E=="undefined"&&E!==void 0?function(r){return typeof r=="function"||r===E}:function(r){return typeof r=="function"}},function(x,E,r){var f=r(23),d=r(21),h=r(24),p=r(25),y=Object;x.exports=p?function(T){return typeof T=="symbol"}:function(T){var $=f("Symbol");return d($)&&h($.prototype,y(T))}},function(x,E,r){var f=r(4),d=r(21),h=function(p){return d(p)?p:void 0};x.exports=function(p,y){return arguments.length<2?h(f[p]):f[p]&&f[p][y]}},function(x,E,r){var f=r(14);x.exports=f({}.isPrototypeOf)},function(x,E,r){var f=r(26);x.exports=f&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(x,E,r){var f=r(27),d=r(7),h=r(4),p=h.String;x.exports=!!Object.getOwnPropertySymbols&&!d(function(){var y=Symbol("symbol detection");return!p(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&f&&f<41})},function(x,E,r){var f=r(4),d=r(28),h=f.process,p=f.Deno,y=h&&h.versions||p&&p.version,T=y&&y.v8,$,A;T&&($=T.split("."),A=$[0]>0&&$[0]<4?1:+($[0]+$[1])),!A&&d&&($=d.match(/Edge\/(\d+)/),(!$||$[1]>=74)&&($=d.match(/Chrome\/(\d+)/),$&&(A=+$[1]))),x.exports=A},function(x){x.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},function(x,E,r){var f=r(30),d=r(17);x.exports=function(h,p){var y=h[p];return d(y)?void 0:f(y)}},function(x,E,r){var f=r(21),d=r(31),h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not a function")}},function(x){var E=String;x.exports=function(r){try{return E(r)}catch(f){return"Object"}}},function(x,E,r){var f=r(8),d=r(21),h=r(20),p=TypeError;x.exports=function(y,T){var $,A;if(T==="string"&&d($=y.toString)&&!h(A=f($,y))||d($=y.valueOf)&&!h(A=f($,y))||T!=="string"&&d($=y.toString)&&!h(A=f($,y)))return A;throw new p("Can't convert object to primitive value")}},function(x,E,r){var f=r(4),d=r(34),h=r(38),p=r(40),y=r(26),T=r(25),$=f.Symbol,A=d("wks"),b=T?$.for||$:$&&$.withoutSetter||p;x.exports=function(R){return h(A,R)||(A[R]=y&&h($,R)?$[R]:b("Symbol."+R)),A[R]}},function(x,E,r){var f=r(35);x.exports=function(d,h){return f[d]||(f[d]=h||{})}},function(x,E,r){var f=r(36),d=r(4),h=r(37),p="__core-js_shared__",y=x.exports=d[p]||h(p,{});(y.versions||(y.versions=[])).push({version:"3.37.1",mode:f?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(x){x.exports=!1},function(x,E,r){var f=r(4),d=Object.defineProperty;x.exports=function(h,p){try{d(f,h,{value:p,configurable:!0,writable:!0})}catch(y){f[h]=p}return p}},function(x,E,r){var f=r(14),d=r(39),h=f({}.hasOwnProperty);x.exports=Object.hasOwn||function(y,T){return h(d(y),T)}},function(x,E,r){var f=r(16),d=Object;x.exports=function(h){return d(f(h))}},function(x,E,r){var f=r(14),d=0,h=Math.random(),p=f(1 .toString);x.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+p(++d+h,36)}},function(x,E,r){var f=r(6),d=r(7),h=r(42);x.exports=!f&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7})},function(x,E,r){var f=r(4),d=r(20),h=f.document,p=d(h)&&d(h.createElement);x.exports=function(y){return p?h.createElement(y):{}}},function(x,E,r){var f=r(6),d=r(44),h=r(11);x.exports=f?function(p,y,T){return d.f(p,y,h(1,T))}:function(p,y,T){return p[y]=T,p}},function(x,E,r){var f=r(6),d=r(41),h=r(45),p=r(46),y=r(18),T=TypeError,$=Object.defineProperty,A=Object.getOwnPropertyDescriptor,b="enumerable",R="configurable",O="writable";E.f=f?h?function(w,D,L){if(p(w),D=y(D),p(L),typeof w=="function"&&D==="prototype"&&"value"in L&&O in L&&!L[O]){var F=A(w,D);F&&F[O]&&(w[D]=L.value,L={configurable:R in L?L[R]:F[R],enumerable:b in L?L[b]:F[b],writable:!1})}return $(w,D,L)}:$:function(w,D,L){if(p(w),D=y(D),p(L),d)try{return $(w,D,L)}catch(F){}if("get"in L||"set"in L)throw new T("Accessors not supported");return"value"in L&&(w[D]=L.value),w}},function(x,E,r){var f=r(6),d=r(7);x.exports=f&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},function(x,E,r){var f=r(20),d=String,h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not an object")}},function(x,E,r){var f=r(21),d=r(44),h=r(48),p=r(37);x.exports=function(y,T,$,A){A||(A={});var b=A.enumerable,R=A.name!==void 0?A.name:T;if(f($)&&h($,R,A),A.global)b?y[T]=$:p(T,$);else{try{A.unsafe?y[T]&&(b=!0):delete y[T]}catch(O){}b?y[T]=$:d.f(y,T,{value:$,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return y}},function(x,E,r){var f=r(14),d=r(7),h=r(21),p=r(38),y=r(6),T=r(49).CONFIGURABLE,$=r(50),A=r(51),b=A.enforce,R=A.get,O=String,C=Object.defineProperty,w=f("".slice),D=f("".replace),L=f([].join),F=y&&!d(function(){return C(function(){},"length",{value:8}).length!==8}),j=String(String).split("String"),U=x.exports=function(z,Y,B){w(O(Y),0,7)==="Symbol("&&(Y="["+D(O(Y),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),B&&B.getter&&(Y="get "+Y),B&&B.setter&&(Y="set "+Y),(!p(z,"name")||T&&z.name!==Y)&&(y?C(z,"name",{value:Y,configurable:!0}):z.name=Y),F&&B&&p(B,"arity")&&z.length!==B.arity&&C(z,"length",{value:B.arity});try{B&&p(B,"constructor")&&B.constructor?y&&C(z,"prototype",{writable:!1}):z.prototype&&(z.prototype=void 0)}catch(K){}var X=b(z);return p(X,"source")||(X.source=L(j,typeof Y=="string"?Y:"")),z};Function.prototype.toString=U(function(){return h(this)&&R(this).source||$(this)},"toString")},function(x,E,r){var f=r(6),d=r(38),h=Function.prototype,p=f&&Object.getOwnPropertyDescriptor,y=d(h,"name"),T=y&&function(){}.name==="something",$=y&&(!f||f&&p(h,"name").configurable);x.exports={EXISTS:y,PROPER:T,CONFIGURABLE:$}},function(x,E,r){var f=r(14),d=r(21),h=r(35),p=f(Function.toString);d(h.inspectSource)||(h.inspectSource=function(y){return p(y)}),x.exports=h.inspectSource},function(x,E,r){var f=r(52),d=r(4),h=r(20),p=r(43),y=r(38),T=r(35),$=r(53),A=r(54),b="Object already initialized",R=d.TypeError,O=d.WeakMap,C,w,D,L=function(z){return D(z)?w(z):C(z,{})},F=function(z){return function(Y){var B;if(!h(Y)||(B=w(Y)).type!==z)throw new R("Incompatible receiver, "+z+" required");return B}};if(f||T.state){var j=T.state||(T.state=new O);j.get=j.get,j.has=j.has,j.set=j.set,C=function(z,Y){if(j.has(z))throw new R(b);return Y.facade=z,j.set(z,Y),Y},w=function(z){return j.get(z)||{}},D=function(z){return j.has(z)}}else{var U=$("state");A[U]=!0,C=function(z,Y){if(y(z,U))throw new R(b);return Y.facade=z,p(z,U,Y),Y},w=function(z){return y(z,U)?z[U]:{}},D=function(z){return y(z,U)}}x.exports={set:C,get:w,has:D,enforce:L,getterFor:F}},function(x,E,r){var f=r(4),d=r(21),h=f.WeakMap;x.exports=d(h)&&/native code/.test(String(h))},function(x,E,r){var f=r(34),d=r(40),h=f("keys");x.exports=function(p){return h[p]||(h[p]=d(p))}},function(x){x.exports={}},function(x,E,r){var f=r(38),d=r(56),h=r(5),p=r(44);x.exports=function(y,T,$){for(var A=d(T),b=p.f,R=h.f,O=0;OR;)d(b,C=A[R++])&&(~p(O,C)||T(O,C));return O}},function(x,E,r){var f=r(12),d=r(60),h=r(63),p=function(y){return function(T,$,A){var b=f(T),R=h(b);if(R===0)return!y&&-1;var O=d(A,R),C;if(y&&$!==$){for(;R>O;)if(C=b[O++],C!==C)return!0}else for(;R>O;O++)if((y||O in b)&&b[O]===$)return y||O||0;return!y&&-1}};x.exports={includes:p(!0),indexOf:p(!1)}},function(x,E,r){var f=r(61),d=Math.max,h=Math.min;x.exports=function(p,y){var T=f(p);return T<0?d(T+y,0):h(T,y)}},function(x,E,r){var f=r(62);x.exports=function(d){var h=+d;return h!==h||h===0?0:f(h)}},function(x){var E=Math.ceil,r=Math.floor;x.exports=Math.trunc||function(d){var h=+d;return(h>0?r:E)(h)}},function(x,E,r){var f=r(64);x.exports=function(d){return f(d.length)}},function(x,E,r){var f=r(61),d=Math.min;x.exports=function(h){var p=f(h);return p>0?d(p,9007199254740991):0}},function(x){x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(x,E){E.f=Object.getOwnPropertySymbols},function(x,E,r){var f=r(7),d=r(21),h=/#|\.prototype\./,p=function(b,R){var O=T[y(b)];return O===A?!0:O===$?!1:d(R)?f(R):!!R},y=p.normalize=function(b){return String(b).replace(h,".").toLowerCase()},T=p.data={},$=p.NATIVE="N",A=p.POLYFILL="P";x.exports=p},function(x,E,r){var f=r(69),d=String;x.exports=function(h){if(f(h)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return d(h)}},function(x,E,r){var f=r(70),d=r(21),h=r(15),p=r(33),y=p("toStringTag"),T=Object,$=h(function(){return arguments}())==="Arguments",A=function(b,R){try{return b[R]}catch(O){}};x.exports=f?h:function(b){var R,O,C;return b===void 0?"Undefined":b===null?"Null":typeof(O=A(R=T(b),y))=="string"?O:$?h(R):(C=h(R))==="Object"&&d(R.callee)?"Arguments":C}},function(x,E,r){var f=r(33),d=f("toStringTag"),h={};h[d]="z",x.exports=String(h)==="[object z]"},function(x,E,r){var f=r(46),d=r(72),h=r(65),p=r(54),y=r(74),T=r(42),$=r(53),A=">",b="<",R="prototype",O="script",C=$("IE_PROTO"),w=function(){},D=function(z){return b+O+A+z+b+"/"+O+A},L=function(z){z.write(D("")),z.close();var Y=z.parentWindow.Object;return z=null,Y},F=function(){var z=T("iframe"),Y="java"+O+":",B;return z.style.display="none",y.appendChild(z),z.src=String(Y),B=z.contentWindow.document,B.open(),B.write(D("document.F=Object")),B.close(),B.F},j,U=function(){try{j=new ActiveXObject("htmlfile")}catch(Y){}U=typeof document!="undefined"?document.domain&&j?L(j):F():L(j);for(var z=h.length;z--;)delete U[R][h[z]];return U()};p[C]=!0,x.exports=Object.create||function(Y,B){var X;return Y!==null?(w[R]=f(Y),X=new w,w[R]=null,X[C]=Y):X=U(),B===void 0?X:d.f(X,B)}},function(x,E,r){var f=r(6),d=r(45),h=r(44),p=r(46),y=r(12),T=r(73);E.f=f&&!d?Object.defineProperties:function(A,b){p(A);for(var R=y(b),O=T(b),C=O.length,w=0,D;C>w;)h.f(A,D=O[w++],R[D]);return A}},function(x,E,r){var f=r(58),d=r(65);x.exports=Object.keys||function(p){return f(p,d)}},function(x,E,r){var f=r(23);x.exports=f("document","documentElement")},function(x,E,r){var f=r(15),d=r(12),h=r(57).f,p=r(76),y=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function($){try{return h($)}catch(A){return p(y)}};x.exports.f=function(A){return y&&f(A)==="Window"?T(A):h(d(A))}},function(x,E,r){var f=r(14);x.exports=f([].slice)},function(x,E,r){var f=r(48),d=r(44);x.exports=function(h,p,y){return y.get&&f(y.get,p,{getter:!0}),y.set&&f(y.set,p,{setter:!0}),d.f(h,p,y)}},function(x,E,r){var f=r(33);E.f=f},function(x,E,r){var f=r(80),d=r(38),h=r(78),p=r(44).f;x.exports=function(y){var T=f.Symbol||(f.Symbol={});d(T,y)||p(T,y,{value:h.f(y)})}},function(x,E,r){var f=r(4);x.exports=f},function(x,E,r){var f=r(8),d=r(23),h=r(33),p=r(47);x.exports=function(){var y=d("Symbol"),T=y&&y.prototype,$=T&&T.valueOf,A=h("toPrimitive");T&&!T[A]&&p(T,A,function(b){return f($,this)},{arity:1})}},function(x,E,r){var f=r(44).f,d=r(38),h=r(33),p=h("toStringTag");x.exports=function(y,T,$){y&&!$&&(y=y.prototype),y&&!d(y,p)&&f(y,p,{configurable:!0,value:T})}},function(x,E,r){var f=r(84),d=r(14),h=r(13),p=r(39),y=r(63),T=r(86),$=d([].push),A=function(b){var R=b===1,O=b===2,C=b===3,w=b===4,D=b===6,L=b===7,F=b===5||D;return function(j,U,z,Y){for(var B=p(j),X=h(B),K=y(X),Q=f(U,z),Z=0,_=Y||T,nt=R?_(j,K):O||L?_(j,0):void 0,rt,q;K>Z;Z++)if((F||Z in X)&&(rt=X[Z],q=Q(rt,Z,B),b))if(R)nt[Z]=q;else if(q)switch(b){case 3:return!0;case 5:return rt;case 6:return Z;case 2:$(nt,rt)}else switch(b){case 4:return!1;case 7:$(nt,rt)}return D?-1:C||w?w:nt}};x.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterReject:A(7)}},function(x,E,r){var f=r(85),d=r(30),h=r(9),p=f(f.bind);x.exports=function(y,T){return d(y),T===void 0?y:h?p(y,T):function(){return y.apply(T,arguments)}}},function(x,E,r){var f=r(15),d=r(14);x.exports=function(h){if(f(h)==="Function")return d(h)}},function(x,E,r){var f=r(87);x.exports=function(d,h){return new(f(d))(h===0?0:h)}},function(x,E,r){var f=r(88),d=r(89),h=r(20),p=r(33),y=p("species"),T=Array;x.exports=function($){var A;return f($)&&(A=$.constructor,d(A)&&(A===T||f(A.prototype))?A=void 0:h(A)&&(A=A[y],A===null&&(A=void 0))),A===void 0?T:A}},function(x,E,r){var f=r(15);x.exports=Array.isArray||function(h){return f(h)==="Array"}},function(x,E,r){var f=r(14),d=r(7),h=r(21),p=r(69),y=r(23),T=r(50),$=function(){},A=y("Reflect","construct"),b=/^\s*(?:class|function)\b/,R=f(b.exec),O=!b.test($),C=function(L){if(!h(L))return!1;try{return A($,[],L),!0}catch(F){return!1}},w=function(L){if(!h(L))return!1;switch(p(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return O||!!R(b,T(L))}catch(F){return!0}};w.sham=!0,x.exports=!A||d(function(){var D;return C(C.call)||!C(Object)||!C(function(){D=!0})||D})?w:C},function(x,E,r){var f=r(3),d=r(23),h=r(38),p=r(68),y=r(34),T=r(91),$=y("string-to-symbol-registry"),A=y("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!T},{for:function(b){var R=p(b);if(h($,R))return $[R];var O=d("Symbol")(R);return $[R]=O,A[O]=R,O}})},function(x,E,r){var f=r(26);x.exports=f&&!!Symbol.for&&!!Symbol.keyFor},function(x,E,r){var f=r(3),d=r(38),h=r(22),p=r(31),y=r(34),T=r(91),$=y("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!T},{keyFor:function(b){if(!h(b))throw new TypeError(p(b)+" is not a symbol");if(d($,b))return $[b]}})},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(8),y=r(14),T=r(7),$=r(21),A=r(22),b=r(76),R=r(95),O=r(26),C=String,w=d("JSON","stringify"),D=y(/./.exec),L=y("".charAt),F=y("".charCodeAt),j=y("".replace),U=y(1 .toString),z=/[\uD800-\uDFFF]/g,Y=/^[\uD800-\uDBFF]$/,B=/^[\uDC00-\uDFFF]$/,X=!O||T(function(){var _=d("Symbol")("stringify detection");return w([_])!=="[null]"||w({a:_})!=="{}"||w(Object(_))!=="{}"}),K=T(function(){return w("\uDF06\uD834")!=='"\\udf06\\ud834"'||w("\uDEAD")!=='"\\udead"'}),Q=function(_,nt){var rt=b(arguments),q=R(nt);if(!(!$(q)&&(_===void 0||A(_))))return rt[1]=function(tt,et){if($(q)&&(et=p(q,this,C(tt),et)),!A(et))return et},h(w,null,rt)},Z=function(_,nt,rt){var q=L(rt,nt-1),tt=L(rt,nt+1);return D(Y,_)&&!D(B,tt)||D(B,_)&&!D(Y,q)?"\\u"+U(F(_,0),16):_};w&&f({target:"JSON",stat:!0,arity:3,forced:X||K},{stringify:function(nt,rt,q){var tt=b(arguments),et=h(X?Q:w,null,tt);return K&&typeof et=="string"?j(et,z,Z):et}})},function(x,E,r){var f=r(9),d=Function.prototype,h=d.apply,p=d.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(f?p.bind(h):function(){return p.apply(h,arguments)})},function(x,E,r){var f=r(14),d=r(88),h=r(21),p=r(15),y=r(68),T=f([].push);x.exports=function($){if(h($))return $;if(d($)){for(var A=$.length,b=[],R=0;Rz&&R(q,arguments[z]),q});if(Z.prototype=K,B!=="Error"?y?y(Z,Q):T(Z,Q,{name:!0}):C&&U in X&&($(Z,X,U),$(Z,X,"prepareStackTrace")),T(Z,X),!w)try{K.name!==B&&h(K,"name",B),K.constructor=Z}catch(_){}return Z}}},function(x,E,r){var f=r(114),d=r(20),h=r(16),p=r(115);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var y=!1,T={},$;try{$=f(Object.prototype,"__proto__","set"),$(T,[]),y=T instanceof Array}catch(A){}return function(b,R){return h(b),p(R),d(b)&&(y?$(b,R):b.__proto__=R),b}}():void 0)},function(x,E,r){var f=r(14),d=r(30);x.exports=function(h,p,y){try{return f(d(Object.getOwnPropertyDescriptor(h,p)[y]))}catch(T){}}},function(x,E,r){var f=r(116),d=String,h=TypeError;x.exports=function(p){if(f(p))return p;throw new h("Can't set "+d(p)+" as a prototype")}},function(x,E,r){var f=r(20);x.exports=function(d){return f(d)||d===null}},function(x,E,r){var f=r(44).f;x.exports=function(d,h,p){p in d||f(d,p,{configurable:!0,get:function(){return h[p]},set:function(y){h[p]=y}})}},function(x,E,r){var f=r(21),d=r(20),h=r(113);x.exports=function(p,y,T){var $,A;return h&&f($=y.constructor)&&$!==T&&d(A=$.prototype)&&A!==T.prototype&&h(p,A),p}},function(x,E,r){var f=r(68);x.exports=function(d,h){return d===void 0?arguments.length<2?"":h:f(d)}},function(x,E,r){var f=r(20),d=r(43);x.exports=function(h,p){f(p)&&"cause"in p&&d(h,"cause",p.cause)}},function(x,E,r){var f=r(43),d=r(122),h=r(123),p=Error.captureStackTrace;x.exports=function(y,T,$,A){h&&(p?p(y,T):f(y,"stack",d($,A)))}},function(x,E,r){var f=r(14),d=Error,h=f("".replace),p=function($){return String(new d($).stack)}("zxcasd"),y=/\n\s*at [^:]*:[^\n]*/,T=y.test(p);x.exports=function($,A){if(T&&typeof $=="string"&&!d.prepareStackTrace)for(;A--;)$=h($,y,"");return $}},function(x,E,r){var f=r(7),d=r(11);x.exports=!f(function(){var h=new Error("a");return"stack"in h?(Object.defineProperty(h,"stack",d(1,7)),h.stack!==7):!0})},function(x,E,r){var f=r(47),d=r(125),h=Error.prototype;h.toString!==d&&f(h,"toString",d)},function(x,E,r){var f=r(6),d=r(7),h=r(46),p=r(119),y=Error.prototype.toString,T=d(function(){if(f){var $=Object.create(Object.defineProperty({},"name",{get:function(){return this===$}}));if(y.call($)!=="true")return!0}return y.call({message:1,name:2})!=="2: 1"||y.call({})!=="Error"});x.exports=T?function(){var A=h(this),b=p(A.name,"Error"),R=p(A.message);return b?R?b+": "+R:b:R}:y},function(x,E,r){r(127)},function(x,E,r){var f=r(3),d=r(24),h=r(128),p=r(113),y=r(55),T=r(71),$=r(43),A=r(11),b=r(120),R=r(121),O=r(130),C=r(119),w=r(33),D=w("toStringTag"),L=Error,F=[].push,j=function(Y,B){var X=d(U,this),K;p?K=p(new L,X?h(this):U):(K=X?this:T(U),$(K,D,"Error")),B!==void 0&&$(K,"message",C(B)),R(K,j,K.stack,1),arguments.length>2&&b(K,arguments[2]);var Q=[];return O(Y,F,{that:Q}),$(K,"errors",Q),K};p?p(j,L):y(j,L,{name:!0});var U=j.prototype=T(L.prototype,{constructor:A(1,j),message:A(1,""),name:A(1,"AggregateError")});f({global:!0,constructor:!0,arity:2},{AggregateError:j})},function(x,E,r){var f=r(38),d=r(21),h=r(39),p=r(53),y=r(129),T=p("IE_PROTO"),$=Object,A=$.prototype;x.exports=y?$.getPrototypeOf:function(b){var R=h(b);if(f(R,T))return R[T];var O=R.constructor;return d(O)&&R instanceof O?O.prototype:R instanceof $?A:null}},function(x,E,r){var f=r(7);x.exports=!f(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(x,E,r){var f=r(84),d=r(8),h=r(46),p=r(31),y=r(131),T=r(63),$=r(24),A=r(133),b=r(134),R=r(135),O=TypeError,C=function(D,L){this.stopped=D,this.result=L},w=C.prototype;x.exports=function(D,L,F){var j=F&&F.that,U=!!(F&&F.AS_ENTRIES),z=!!(F&&F.IS_RECORD),Y=!!(F&&F.IS_ITERATOR),B=!!(F&&F.INTERRUPTED),X=f(L,j),K,Q,Z,_,nt,rt,q,tt=function(lt){return K&&R(K,"normal",lt),new C(!0,lt)},et=function(lt){return U?(h(lt),B?X(lt[0],lt[1],tt):X(lt[0],lt[1])):B?X(lt,tt):X(lt)};if(z)K=D.iterator;else if(Y)K=D;else{if(Q=b(D),!Q)throw new O(p(D)+" is not iterable");if(y(Q)){for(Z=0,_=T(D);_>Z;Z++)if(nt=et(D[Z]),nt&&$(w,nt))return nt;return new C(!1)}K=A(D,Q)}for(rt=z?D.next:K.next;!(q=d(rt,K)).done;){try{nt=et(q.value)}catch(lt){R(K,"throw",lt)}if(typeof nt=="object"&&nt&&$(w,nt))return nt}return new C(!1)}},function(x,E,r){var f=r(33),d=r(132),h=f("iterator"),p=Array.prototype;x.exports=function(y){return y!==void 0&&(d.Array===y||p[h]===y)}},function(x){x.exports={}},function(x,E,r){var f=r(8),d=r(30),h=r(46),p=r(31),y=r(134),T=TypeError;x.exports=function($,A){var b=arguments.length<2?y($):A;if(d(b))return h(f(b,$));throw new T(p($)+" is not iterable")}},function(x,E,r){var f=r(69),d=r(29),h=r(17),p=r(132),y=r(33),T=y("iterator");x.exports=function($){if(!h($))return d($,T)||d($,"@@iterator")||p[f($)]}},function(x,E,r){var f=r(8),d=r(46),h=r(29);x.exports=function(p,y,T){var $,A;d(p);try{if($=h(p,"return"),!$){if(y==="throw")throw T;return T}$=f($,p)}catch(b){A=!0,$=b}if(y==="throw")throw T;if(A)throw $;return d($),T}},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(7),y=r(112),T="AggregateError",$=d(T),A=!p(function(){return $([1]).errors[0]!==1})&&p(function(){return $([1],T,{cause:7}).cause!==7});f({global:!0,constructor:!0,arity:2,forced:A},{AggregateError:y(T,function(b){return function(O,C){return h(b,this,arguments)}},A,!0)})},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(61),y=r(138);f({target:"Array",proto:!0},{at:function($){var A=d(this),b=h(A),R=p($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]}}),y("at")},function(x,E,r){var f=r(33),d=r(71),h=r(44).f,p=f("unscopables"),y=Array.prototype;y[p]===void 0&&h(y,p,{configurable:!0,value:d(null)}),x.exports=function(T){y[p][T]=!0}},function(x,E,r){var f=r(3),d=r(7),h=r(88),p=r(20),y=r(39),T=r(63),$=r(140),A=r(141),b=r(86),R=r(142),O=r(33),C=r(27),w=O("isConcatSpreadable"),D=C>=51||!d(function(){var j=[];return j[w]=!1,j.concat()[0]!==j}),L=function(j){if(!p(j))return!1;var U=j[w];return U!==void 0?!!U:h(j)},F=!D||!R("concat");f({target:"Array",proto:!0,arity:1,forced:F},{concat:function(U){var z=y(this),Y=b(z,0),B=0,X,K,Q,Z,_;for(X=-1,Q=arguments.length;Xr)throw E("Maximum allowed index exceeded");return f}},function(x,E,r){var f=r(6),d=r(44),h=r(11);x.exports=function(p,y,T){f?d.f(p,y,h(0,T)):p[y]=T}},function(x,E,r){var f=r(7),d=r(33),h=r(27),p=d("species");x.exports=function(y){return h>=51||!f(function(){var T=[],$=T.constructor={};return $[p]=function(){return{foo:1}},T[y](Boolean).foo!==1})}},function(x,E,r){var f=r(3),d=r(144),h=r(138);f({target:"Array",proto:!0},{copyWithin:d}),h("copyWithin")},function(x,E,r){var f=r(39),d=r(60),h=r(63),p=r(145),y=Math.min;x.exports=[].copyWithin||function($,A){var b=f(this),R=h(b),O=d($,R),C=d(A,R),w=arguments.length>2?arguments[2]:void 0,D=y((w===void 0?R:d(w,R))-C,R-O),L=1;for(C0;)C in b?b[O]=b[C]:p(b,O),O+=L,C+=L;return b}},function(x,E,r){var f=r(31),d=TypeError;x.exports=function(h,p){if(!delete h[p])throw new d("Cannot delete property "+f(p)+" of "+f(h))}},function(x,E,r){var f=r(3),d=r(83).every,h=r(147),p=h("every");f({target:"Array",proto:!0,forced:!p},{every:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(7);x.exports=function(d,h){var p=[][d];return!!p&&f(function(){p.call(null,h||function(){return 1},1)})}},function(x,E,r){var f=r(3),d=r(149),h=r(138);f({target:"Array",proto:!0},{fill:d}),h("fill")},function(x,E,r){var f=r(39),d=r(60),h=r(63);x.exports=function(y){for(var T=f(this),$=h(T),A=arguments.length,b=d(A>1?arguments[1]:void 0,$),R=A>2?arguments[2]:void 0,O=R===void 0?$:d(R,$);O>b;)T[b++]=y;return T}},function(x,E,r){var f=r(3),d=r(83).filter,h=r(142),p=h("filter");f({target:"Array",proto:!0,forced:!p},{filter:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(83).find,h=r(138),p="find",y=!0;p in[]&&Array(1)[p](function(){y=!1}),f({target:"Array",proto:!0,forced:y},{find:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var f=r(3),d=r(83).findIndex,h=r(138),p="findIndex",y=!0;p in[]&&Array(1)[p](function(){y=!1}),f({target:"Array",proto:!0,forced:y},{findIndex:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var f=r(3),d=r(154).findLast,h=r(138);f({target:"Array",proto:!0},{findLast:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLast")},function(x,E,r){var f=r(84),d=r(13),h=r(39),p=r(63),y=function(T){var $=T===1;return function(A,b,R){for(var O=h(A),C=d(O),w=p(C),D=f(b,R),L,F;w-- >0;)if(L=C[w],F=D(L,w,O),F)switch(T){case 0:return L;case 1:return w}return $?-1:void 0}};x.exports={findLast:y(0),findLastIndex:y(1)}},function(x,E,r){var f=r(3),d=r(154).findLastIndex,h=r(138);f({target:"Array",proto:!0},{findLastIndex:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLastIndex")},function(x,E,r){var f=r(3),d=r(157),h=r(39),p=r(63),y=r(61),T=r(86);f({target:"Array",proto:!0},{flat:function(){var A=arguments.length?arguments[0]:void 0,b=h(this),R=p(b),O=T(b,0);return O.length=d(O,b,b,R,0,A===void 0?1:y(A)),O}})},function(x,E,r){var f=r(88),d=r(63),h=r(140),p=r(84),y=function(T,$,A,b,R,O,C,w){for(var D=R,L=0,F=C?p(C,w):!1,j,U;L0&&f(j)?(U=d(j),D=y(T,$,j,U,D,O-1)-1):(h(D+1),T[D]=j),D++),L++;return D};x.exports=y},function(x,E,r){var f=r(3),d=r(157),h=r(30),p=r(39),y=r(63),T=r(86);f({target:"Array",proto:!0},{flatMap:function(A){var b=p(this),R=y(b),O;return h(A),O=T(b,0),O.length=d(O,b,b,R,0,1,A,arguments.length>1?arguments[1]:void 0),O}})},function(x,E,r){var f=r(3),d=r(160);f({target:"Array",proto:!0,forced:[].forEach!==d},{forEach:d})},function(x,E,r){var f=r(83).forEach,d=r(147),h=d("forEach");x.exports=h?[].forEach:function(y){return f(this,y,arguments.length>1?arguments[1]:void 0)}},function(x,E,r){var f=r(3),d=r(162),h=r(164),p=!h(function(y){Array.from(y)});f({target:"Array",stat:!0,forced:p},{from:d})},function(x,E,r){var f=r(84),d=r(8),h=r(39),p=r(163),y=r(131),T=r(89),$=r(63),A=r(141),b=r(133),R=r(134),O=Array;x.exports=function(w){var D=h(w),L=T(this),F=arguments.length,j=F>1?arguments[1]:void 0,U=j!==void 0;U&&(j=f(j,F>2?arguments[2]:void 0));var z=R(D),Y=0,B,X,K,Q,Z,_;if(z&&!(this===O&&y(z)))for(X=L?new this:[],Q=b(D,z),Z=Q.next;!(K=d(Z,Q)).done;Y++)_=U?p(Q,j,[K.value,Y],!0):K.value,A(X,Y,_);else for(B=$(D),X=L?new this(B):O(B);B>Y;Y++)_=U?j(D[Y],Y):D[Y],A(X,Y,_);return X.length=Y,X}},function(x,E,r){var f=r(46),d=r(135);x.exports=function(h,p,y,T){try{return T?p(f(y)[0],y[1]):p(y)}catch($){d(h,"throw",$)}}},function(x,E,r){var f=r(33),d=f("iterator"),h=!1;try{var p=0,y={next:function(){return{done:!!p++}},return:function(){h=!0}};y[d]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}x.exports=function(T,$){try{if(!$&&!h)return!1}catch(R){return!1}var A=!1;try{var b={};b[d]=function(){return{next:function(){return{done:A=!0}}}},T(b)}catch(R){}return A}},function(x,E,r){var f=r(3),d=r(59).includes,h=r(7),p=r(138),y=h(function(){return!Array(1).includes()});f({target:"Array",proto:!0,forced:y},{includes:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),p("includes")},function(x,E,r){var f=r(3),d=r(85),h=r(59).indexOf,p=r(147),y=d([].indexOf),T=!!y&&1/y([1],1,-0)<0,$=T||!p("indexOf");f({target:"Array",proto:!0,forced:$},{indexOf:function(b){var R=arguments.length>1?arguments[1]:void 0;return T?y(this,b,R)||0:h(this,b,R)}})},function(x,E,r){var f=r(3),d=r(88);f({target:"Array",stat:!0},{isArray:d})},function(x,E,r){var f=r(12),d=r(138),h=r(132),p=r(51),y=r(44).f,T=r(169),$=r(172),A=r(36),b=r(6),R="Array Iterator",O=p.set,C=p.getterFor(R);x.exports=T(Array,"Array",function(D,L){O(this,{type:R,target:f(D),index:0,kind:L})},function(){var D=C(this),L=D.target,F=D.index++;if(!L||F>=L.length)return D.target=void 0,$(void 0,!0);switch(D.kind){case"keys":return $(F,!1);case"values":return $(L[F],!1)}return $([F,L[F]],!1)},"values");var w=h.Arguments=h.Array;if(d("keys"),d("values"),d("entries"),!A&&b&&w.name!=="values")try{y(w,"name",{value:"values"})}catch(D){}},function(x,E,r){var f=r(3),d=r(8),h=r(36),p=r(49),y=r(21),T=r(170),$=r(128),A=r(113),b=r(82),R=r(43),O=r(47),C=r(33),w=r(132),D=r(171),L=p.PROPER,F=p.CONFIGURABLE,j=D.IteratorPrototype,U=D.BUGGY_SAFARI_ITERATORS,z=C("iterator"),Y="keys",B="values",X="entries",K=function(){return this};x.exports=function(Q,Z,_,nt,rt,q,tt){T(_,Z,nt);var et=function(Jt){if(Jt===rt&&xt)return xt;if(!U&&Jt&&Jt in ft)return ft[Jt];switch(Jt){case Y:return function(){return new _(this,Jt)};case B:return function(){return new _(this,Jt)};case X:return function(){return new _(this,Jt)}}return function(){return new _(this)}},lt=Z+" Iterator",pt=!1,ft=Q.prototype,bt=ft[z]||ft["@@iterator"]||rt&&ft[rt],xt=!U&&bt||et(rt),Ft=Z==="Array"&&ft.entries||bt,Lt,jt,Kt;if(Ft&&(Lt=$(Ft.call(new Q)),Lt!==Object.prototype&&Lt.next&&(!h&&$(Lt)!==j&&(A?A(Lt,j):y(Lt[z])||O(Lt,z,K)),b(Lt,lt,!0,!0),h&&(w[lt]=K))),L&&rt===B&&bt&&bt.name!==B&&(!h&&F?R(ft,"name",B):(pt=!0,xt=function(){return d(bt,this)})),rt)if(jt={values:et(B),keys:q?xt:et(Y),entries:et(X)},tt)for(Kt in jt)(U||pt||!(Kt in ft))&&O(ft,Kt,jt[Kt]);else f({target:Z,proto:!0,forced:U||pt},jt);return(!h||tt)&&ft[z]!==xt&&O(ft,z,xt,{name:rt}),w[Z]=xt,jt}},function(x,E,r){var f=r(171).IteratorPrototype,d=r(71),h=r(11),p=r(82),y=r(132),T=function(){return this};x.exports=function($,A,b,R){var O=A+" Iterator";return $.prototype=d(f,{next:h(+!R,b)}),p($,O,!1,!0),y[O]=T,$}},function(x,E,r){var f=r(7),d=r(21),h=r(20),p=r(71),y=r(128),T=r(47),$=r(33),A=r(36),b=$("iterator"),R=!1,O,C,w;[].keys&&(w=[].keys(),"next"in w?(C=y(y(w)),C!==Object.prototype&&(O=C)):R=!0);var D=!h(O)||f(function(){var L={};return O[b].call(L)!==L});D?O={}:A&&(O=p(O)),d(O[b])||T(O,b,function(){return this}),x.exports={IteratorPrototype:O,BUGGY_SAFARI_ITERATORS:R}},function(x){x.exports=function(E,r){return{value:E,done:r}}},function(x,E,r){var f=r(3),d=r(14),h=r(13),p=r(12),y=r(147),T=d([].join),$=h!==Object,A=$||!y("join",",");f({target:"Array",proto:!0,forced:A},{join:function(R){return T(p(this),R===void 0?",":R)}})},function(x,E,r){var f=r(3),d=r(175);f({target:"Array",proto:!0,forced:d!==[].lastIndexOf},{lastIndexOf:d})},function(x,E,r){var f=r(94),d=r(12),h=r(61),p=r(63),y=r(147),T=Math.min,$=[].lastIndexOf,A=!!$&&1/[1].lastIndexOf(1,-0)<0,b=y("lastIndexOf"),R=A||!b;x.exports=R?function(C){if(A)return f($,this,arguments)||0;var w=d(this),D=p(w);if(D===0)return-1;var L=D-1;for(arguments.length>1&&(L=T(L,h(arguments[1]))),L<0&&(L=D+L);L>=0;L--)if(L in w&&w[L]===C)return L||0;return-1}:$},function(x,E,r){var f=r(3),d=r(83).map,h=r(142),p=h("map");f({target:"Array",proto:!0,forced:!p},{map:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(7),h=r(89),p=r(141),y=Array,T=d(function(){function $(){}return!(y.of.call($)instanceof $)});f({target:"Array",stat:!0,forced:T},{of:function(){for(var A=0,b=arguments.length,R=new(h(this)?this:y)(b);b>A;)p(R,A,arguments[A++]);return R.length=b,R}})},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(179),y=r(140),T=r(7),$=T(function(){return[].push.call({length:4294967296},1)!==4294967297}),A=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(R){return R instanceof TypeError}},b=$||!A();f({target:"Array",proto:!0,arity:1,forced:b},{push:function(O){var C=d(this),w=h(C),D=arguments.length;y(w+D);for(var L=0;L79&&p<83,$=T||!h("reduce");f({target:"Array",proto:!0,forced:$},{reduce:function(b){var R=arguments.length;return d(this,b,R,R>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(30),d=r(39),h=r(13),p=r(63),y=TypeError,T="Reduce of empty array with no initial value",$=function(A){return function(b,R,O,C){var w=d(b),D=h(w),L=p(w);if(f(R),L===0&&O<2)throw new y(T);var F=A?L-1:0,j=A?-1:1;if(O<2)for(;;){if(F in D){C=D[F],F+=j;break}if(F+=j,A?F<0:L<=F)throw new y(T)}for(;A?F>=0:L>F;F+=j)F in D&&(C=R(C,D[F],F,w));return C}};x.exports={left:$(!1),right:$(!0)}},function(x,E,r){var f=r(4),d=r(15);x.exports=d(f.process)==="process"},function(x,E,r){var f=r(3),d=r(181).right,h=r(147),p=r(27),y=r(182),T=!y&&p>79&&p<83,$=T||!h("reduceRight");f({target:"Array",proto:!0,forced:$},{reduceRight:function(b){return d(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(88),p=d([].reverse),y=[1,2];f({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return h(this)&&(this.length=this.length),p(this)}})},function(x,E,r){var f=r(3),d=r(88),h=r(89),p=r(20),y=r(60),T=r(63),$=r(12),A=r(141),b=r(33),R=r(142),O=r(76),C=R("slice"),w=b("species"),D=Array,L=Math.max;f({target:"Array",proto:!0,forced:!C},{slice:function(j,U){var z=$(this),Y=T(z),B=y(j,Y),X=y(U===void 0?Y:U,Y),K,Q,Z;if(d(z)&&(K=z.constructor,h(K)&&(K===D||d(K.prototype))?K=void 0:p(K)&&(K=K[w],K===null&&(K=void 0)),K===D||K===void 0))return O(z,B,X);for(Q=new(K===void 0?D:K)(L(X-B,0)),Z=0;B1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(39),y=r(63),T=r(145),$=r(68),A=r(7),b=r(188),R=r(147),O=r(189),C=r(190),w=r(27),D=r(191),L=[],F=d(L.sort),j=d(L.push),U=A(function(){L.sort(void 0)}),z=A(function(){L.sort(null)}),Y=R("sort"),B=!A(function(){if(w)return w<70;if(!(O&&O>3)){if(C)return!0;if(D)return D<603;var Q="",Z,_,nt,rt;for(Z=65;Z<76;Z++){switch(_=String.fromCharCode(Z),Z){case 66:case 69:case 70:case 72:nt=3;break;case 68:case 71:nt=4;break;default:nt=2}for(rt=0;rt<47;rt++)L.push({k:_+rt,v:nt})}for(L.sort(function(q,tt){return tt.v-q.v}),rt=0;rt$(_)?1:-1}};f({target:"Array",proto:!0,forced:X},{sort:function(Z){Z!==void 0&&h(Z);var _=p(this);if(B)return Z===void 0?F(_):F(_,Z);var nt=[],rt=y(_),q,tt;for(tt=0;tt0;)p[b]=p[--b];b!==$++&&(p[b]=A)}else for(var R=d(T/2),O=h(f(p,0,R),y),C=h(f(p,R),y),w=O.length,D=C.length,L=0,F=0;Lz-K+X;Z--)R(U,Z-1)}else if(X>K)for(Z=z-K;Z>Y;Z--)_=Z+K-1,nt=Z+X-1,_ in U?U[nt]=U[_]:R(U,nt);for(Z=0;Z2?p:f(h),$=new d(T);T>y;)$[y]=h[y++];return $}},function(x,E,r){var f=r(4);x.exports=function(d,h){var p=f[d],y=p&&p.prototype;return y&&y[h]}},function(x,E,r){var f=r(3),d=r(138),h=r(140),p=r(63),y=r(60),T=r(12),$=r(61),A=Array,b=Math.max,R=Math.min;f({target:"Array",proto:!0},{toSpliced:function(C,w){var D=T(this),L=p(D),F=y(C,L),j=arguments.length,U=0,z,Y,B,X;for(j===0?z=Y=0:j===1?(z=0,Y=L-F):(z=j-2,Y=R(b($(w),0),L-F)),B=h(L+z-Y),X=A(B);U=A||R<0)throw new h("Incorrect index");for(var O=new y(A),C=0;C>8&255]},ie=function(Et){return[Et&255,Et>>8&255,Et>>16&255,Et>>24&255]},re=function(Et){return Et[3]<<24|Et[2]<<16|Et[1]<<8|Et[0]},le=function(Et){return ee(D(Et),23,4)},Re=function(Et){return ee(Et,52,8)},Ce=function(Et,Bt,At){$(Et[rt],Bt,{configurable:!0,get:function(){return At(this)[Bt]}})},xe=function(Et,Bt,At,kt){var Qt=lt(Et),Xt=w(At),Ut=!!kt;if(Xt+Bt>Qt.byteLength)throw new Jt(tt);var we=Qt.bytes,Ye=Xt+Qt.byteOffset,dt=z(we,Ye,Ye+Bt);return Ut?dt:ce(dt)},oe=function(Et,Bt,At,kt,Qt,Xt){var Ut=lt(Et),we=w(At),Ye=kt(+Qt),dt=!!Xt;if(we+Bt>Ut.byteLength)throw new Jt(tt);for(var Ot=Ut.bytes,Pt=we+Ut.byteOffset,ot=0;otXt)throw new Jt("Wrong offset");if(kt=kt===void 0?Xt-Ut:C(kt),Ut+kt>Xt)throw new Jt(q);pt(this,{type:nt,buffer:Bt,byteLength:kt,byteOffset:Ut,bytes:Qt.bytes}),h||(this.buffer=Bt,this.byteLength=kt,this.byteOffset=Ut)},Lt=Ft[rt],h&&(Ce(bt,"byteLength",et),Ce(Ft,"buffer",lt),Ce(Ft,"byteLength",lt),Ce(Ft,"byteOffset",lt)),A(Lt,{getInt8:function(Bt){return xe(this,1,Bt)[0]<<24>>24},getUint8:function(Bt){return xe(this,1,Bt)[0]},getInt16:function(Bt){var At=xe(this,2,Bt,arguments.length>1?arguments[1]:!1);return(At[1]<<8|At[0])<<16>>16},getUint16:function(Bt){var At=xe(this,2,Bt,arguments.length>1?arguments[1]:!1);return At[1]<<8|At[0]},getInt32:function(Bt){return re(xe(this,4,Bt,arguments.length>1?arguments[1]:!1))},getUint32:function(Bt){return re(xe(this,4,Bt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Bt){return Mt(xe(this,4,Bt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Bt){return Mt(xe(this,8,Bt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Bt,At){oe(this,1,Bt,zt,At)},setUint8:function(Bt,At){oe(this,1,Bt,zt,At)},setInt16:function(Bt,At){oe(this,2,Bt,te,At,arguments.length>2?arguments[2]:!1)},setUint16:function(Bt,At){oe(this,2,Bt,te,At,arguments.length>2?arguments[2]:!1)},setInt32:function(Bt,At){oe(this,4,Bt,ie,At,arguments.length>2?arguments[2]:!1)},setUint32:function(Bt,At){oe(this,4,Bt,ie,At,arguments.length>2?arguments[2]:!1)},setFloat32:function(Bt,At){oe(this,4,Bt,le,At,arguments.length>2?arguments[2]:!1)},setFloat64:function(Bt,At){oe(this,8,Bt,Re,At,arguments.length>2?arguments[2]:!1)}});else{var Ae=Q&&ft.name!==_;!b(function(){ft(1)})||!b(function(){new ft(-1)})||b(function(){return new ft,new ft(1.5),new ft(NaN),ft.length!==1||Ae&&!Z})?(bt=function(Bt){return R(this,xt),Y(new ft(w(Bt)),this,bt)},bt[rt]=xt,xt.constructor=bt,B(bt,ft)):Ae&&Z&&T(ft,"name",_),j&&F(Lt)!==jt&&j(Lt,jt);var me=new Ft(new bt(2)),ue=d(Lt.setInt8);me.setInt8(0,2147483648),me.setInt8(1,2147483649),(me.getInt8(0)||!me.getInt8(1))&&A(Lt,{setInt8:function(Bt,At){ue(this,Bt,At<<24>>24)},setUint8:function(Bt,At){ue(this,Bt,At<<24>>24)}},{unsafe:!0})}X(bt,_),X(Ft,nt),x.exports={ArrayBuffer:bt,DataView:Ft}},function(x){x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(x,E,r){var f=r(47);x.exports=function(d,h,p){for(var y in h)f(d,y,h[y],p);return d}},function(x,E,r){var f=r(24),d=TypeError;x.exports=function(h,p){if(f(p,h))return h;throw new d("Incorrect invocation")}},function(x,E,r){var f=r(61),d=r(64),h=RangeError;x.exports=function(p){if(p===void 0)return 0;var y=f(p),T=d(y);if(y!==T)throw new h("Wrong length or index");return T}},function(x,E,r){var f=r(213),d=11920928955078125e-23,h=34028234663852886e22,p=11754943508222875e-54;x.exports=Math.fround||function(T){return f(T,d,h,p)}},function(x,E,r){var f=r(214),d=Math.abs,h=2220446049250313e-31,p=1/h,y=function(T){return T+p-p};x.exports=function(T,$,A,b){var R=+T,O=d(R),C=f(R);if(OA||D!==D?C*(1/0):C*D}},function(x){x.exports=Math.sign||function(r){var f=+r;return f===0||f!==f?f:f<0?-1:1}},function(x){var E=Array,r=Math.abs,f=Math.pow,d=Math.floor,h=Math.log,p=Math.LN2,y=function($,A,b){var R=E(b),O=b*8-A-1,C=(1<>1,D=A===23?f(2,-24)-f(2,-77):0,L=$<0||$===0&&1/$<0?1:0,F=0,j,U,z;for($=r($),$!==$||$===1/0?(U=$!==$?1:0,j=C):(j=d(h($)/p),z=f(2,-j),$*z<1&&(j--,z*=2),j+w>=1?$+=D/z:$+=D*f(2,1-w),$*z>=2&&(j++,z/=2),j+w>=C?(U=0,j=C):j+w>=1?(U=($*z-1)*f(2,A),j+=w):(U=$*f(2,w-1)*f(2,A),j=0));A>=8;)R[F++]=U&255,U/=256,A-=8;for(j=j<0;)R[F++]=j&255,j/=256,O-=8;return R[--F]|=L*128,R},T=function($,A){var b=$.length,R=b*8-A-1,O=(1<>1,w=R-7,D=b-1,L=$[D--],F=L&127,j;for(L>>=7;w>0;)F=F*256+$[D--],w-=8;for(j=F&(1<<-w)-1,F>>=-w,w+=A;w>0;)j=j*256+$[D--],w-=8;if(F===0)F=1-C;else{if(F===O)return j?NaN:L?-1/0:1/0;j+=f(2,A),F-=C}return(L?-1:1)*j*f(2,F-A)};x.exports={pack:y,unpack:T}},function(x,E,r){var f=r(3),d=r(217),h=d.NATIVE_ARRAY_BUFFER_VIEWS;f({target:"ArrayBuffer",stat:!0,forced:!h},{isView:d.isView})},function(x,E,r){var f=r(208),d=r(6),h=r(4),p=r(21),y=r(20),T=r(38),$=r(69),A=r(31),b=r(43),R=r(47),O=r(77),C=r(24),w=r(128),D=r(113),L=r(33),F=r(40),j=r(51),U=j.enforce,z=j.get,Y=h.Int8Array,B=Y&&Y.prototype,X=h.Uint8ClampedArray,K=X&&X.prototype,Q=Y&&w(Y),Z=B&&w(B),_=Object.prototype,nt=h.TypeError,rt=L("toStringTag"),q=F("TYPED_ARRAY_TAG"),tt="TypedArrayConstructor",et=f&&!!D&&$(h.opera)!=="Opera",lt=!1,pt,ft,bt,xt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Ft={BigInt64Array:8,BigUint64Array:8},Lt=function(zt){if(!y(zt))return!1;var te=$(zt);return te==="DataView"||T(xt,te)||T(Ft,te)},jt=function(Mt){var zt=w(Mt);if(y(zt)){var te=z(zt);return te&&T(te,tt)?te[tt]:jt(zt)}},Kt=function(Mt){if(!y(Mt))return!1;var zt=$(Mt);return T(xt,zt)||T(Ft,zt)},Jt=function(Mt){if(Kt(Mt))return Mt;throw new nt("Target is not a typed array")},ge=function(Mt){if(p(Mt)&&(!D||C(Q,Mt)))return Mt;throw new nt(A(Mt)+" is not a typed array constructor")},ce=function(Mt,zt,te,ie){if(d){if(te)for(var re in xt){var le=h[re];if(le&&T(le.prototype,Mt))try{delete le.prototype[Mt]}catch(Re){try{le.prototype[Mt]=zt}catch(Ce){}}}(!Z[Mt]||te)&&R(Z,Mt,te?zt:et&&B[Mt]||zt,ie)}},ee=function(Mt,zt,te){var ie,re;if(d){if(D){if(te){for(ie in xt)if(re=h[ie],re&&T(re,Mt))try{delete re[Mt]}catch(le){}}if(!Q[Mt]||te)try{return R(Q,Mt,te?zt:et&&Q[Mt]||zt)}catch(le){}else return}for(ie in xt)re=h[ie],re&&(!re[Mt]||te)&&R(re,Mt,zt)}};for(pt in xt)ft=h[pt],bt=ft&&ft.prototype,bt?U(bt)[tt]=ft:et=!1;for(pt in Ft)ft=h[pt],bt=ft&&ft.prototype,bt&&(U(bt)[tt]=ft);if((!et||!p(Q)||Q===Function.prototype)&&(Q=function(){throw new nt("Incorrect invocation")},et))for(pt in xt)h[pt]&&D(h[pt],Q);if((!et||!Z||Z===_)&&(Z=Q.prototype,et))for(pt in xt)h[pt]&&D(h[pt].prototype,Z);if(et&&w(K)!==Z&&D(K,Z),d&&!T(Z,rt)){lt=!0,O(Z,rt,{configurable:!0,get:function(){return y(this)?this[q]:void 0}});for(pt in xt)h[pt]&&b(h[pt],q,pt)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:et,TYPED_ARRAY_TAG:lt&&q,aTypedArray:Jt,aTypedArrayConstructor:ge,exportTypedArrayMethod:ce,exportTypedArrayStaticMethod:ee,getTypedArrayConstructor:jt,isView:Lt,isTypedArray:Kt,TypedArray:Q,TypedArrayPrototype:Z}},function(x,E,r){var f=r(3),d=r(85),h=r(7),p=r(207),y=r(46),T=r(60),$=r(64),A=r(219),b=p.ArrayBuffer,R=p.DataView,O=R.prototype,C=d(b.prototype.slice),w=d(O.getUint8),D=d(O.setUint8),L=h(function(){return!new b(2).slice(1,void 0).byteLength});f({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:L},{slice:function(j,U){if(C&&U===void 0)return C(y(this),j);for(var z=y(this).byteLength,Y=T(j,z),B=T(U===void 0?z:U,z),X=new(A(this,b))($(B-Y)),K=new R(this),Q=new R(X),Z=0;Y=Z&&(!K||_))nt=F(B,0,Z);else{var rt=K&&!_&&U?{maxByteLength:U(B)}:void 0;nt=new R(Z,rt);for(var q=new O(B),tt=new O(nt),et=w(Z,Q),lt=0;lt92||T&&h>94||p&&h>97)return!1;var A=new ArrayBuffer(8),b=$(A,{transfer:[A]});return A.byteLength!==0||b.byteLength!==8})},function(x,E,r){var f=r(232),d=r(182);x.exports=!f&&!d&&typeof window=="object"&&typeof document=="object"},function(x){x.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},function(x,E,r){var f=r(3),d=r(227);d&&f({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return d(this,arguments.length?arguments[0]:void 0,!1)}})},function(x,E,r){var f=r(3),d=r(14),h=r(7),p=h(function(){return new Date(16e11).getYear()!==120}),y=d(Date.prototype.getFullYear);f({target:"Date",proto:!0,forced:p},{getYear:function(){return y(this)-1900}})},function(x,E,r){var f=r(3),d=r(14),h=Date,p=d(h.prototype.getTime);f({target:"Date",stat:!0},{now:function(){return p(new h)}})},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=Date.prototype,y=d(p.getTime),T=d(p.setFullYear);f({target:"Date",proto:!0},{setYear:function(A){y(this);var b=h(A),R=b>=0&&b<=99?b+1900:b;return T(this,R)}})},function(x,E,r){var f=r(3);f({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(x,E,r){var f=r(3),d=r(239);f({target:"Date",proto:!0,forced:Date.prototype.toISOString!==d},{toISOString:d})},function(x,E,r){var f=r(14),d=r(7),h=r(240).start,p=RangeError,y=isFinite,T=Math.abs,$=Date.prototype,A=$.toISOString,b=f($.getTime),R=f($.getUTCDate),O=f($.getUTCFullYear),C=f($.getUTCHours),w=f($.getUTCMilliseconds),D=f($.getUTCMinutes),L=f($.getUTCMonth),F=f($.getUTCSeconds);x.exports=d(function(){return A.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!d(function(){A.call(new Date(NaN))})?function(){if(!y(b(this)))throw new p("Invalid time value");var U=this,z=O(U),Y=w(U),B=z<0?"-":z>9999?"+":"";return B+h(T(z),B?6:4,0)+"-"+h(L(U)+1,2,0)+"-"+h(R(U),2,0)+"T"+h(C(U),2,0)+":"+h(D(U),2,0)+":"+h(F(U),2,0)+"."+h(Y,3,0)+"Z"}:A},function(x,E,r){var f=r(14),d=r(64),h=r(68),p=r(241),y=r(16),T=f(p),$=f("".slice),A=Math.ceil,b=function(R){return function(O,C,w){var D=h(y(O)),L=d(C),F=D.length,j=w===void 0?" ":h(w),U,z;return L<=F||j===""?D:(U=L-F,z=T(j,A(U/j.length)),z.length>U&&(z=$(z,0,U)),R?D+z:z+D)}};x.exports={start:b(!1),end:b(!0)}},function(x,E,r){var f=r(61),d=r(68),h=r(16),p=RangeError;x.exports=function(T){var $=d(h(this)),A="",b=f(T);if(b<0||b===1/0)throw new p("Wrong number of repetitions");for(;b>0;(b>>>=1)&&($+=$))b&1&&(A+=$);return A}},function(x,E,r){var f=r(3),d=r(7),h=r(39),p=r(19),y=d(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});f({target:"Date",proto:!0,arity:1,forced:y},{toJSON:function($){var A=h(this),b=p(A,"number");return typeof b=="number"&&!isFinite(b)?null:A.toISOString()}})},function(x,E,r){var f=r(38),d=r(47),h=r(244),p=r(33),y=p("toPrimitive"),T=Date.prototype;f(T,y)||d(T,y,h)},function(x,E,r){var f=r(46),d=r(32),h=TypeError;x.exports=function(p){if(f(this),p==="string"||p==="default")p="string";else if(p!=="number")throw new h("Incorrect hint");return d(this,p)}},function(x,E,r){var f=r(14),d=r(47),h=Date.prototype,p="Invalid Date",y="toString",T=f(h[y]),$=f(h.getTime);String(new Date(NaN))!==p&&d(h,y,function(){var b=$(this);return b===b?T(this):p})},function(x,E,r){var f=r(3),d=r(14),h=r(68),p=d("".charAt),y=d("".charCodeAt),T=d(/./.exec),$=d(1 .toString),A=d("".toUpperCase),b=/[\w*+\-./@]/,R=function(O,C){for(var w=$(O,16);w.length1?arguments[1]:void 0),q;q=q?q.next:nt.first;)for(rt(q.value,q.key,this);q&&q.removed;)q=q.previous},has:function(_){return!!Q(this,_)}}),h(B,U?{get:function(_){var nt=Q(this,_);return nt&&nt.value},set:function(_,nt){return K(this,_===0?0:_,nt)}}:{add:function(_){return K(this,_=_===0?0:_,_)}}),O&&d(B,"size",{configurable:!0,get:function(){return X(this).size}}),Y},setStrong:function(F,j,U){var z=j+" Iterator",Y=L(j),B=L(z);A(F,j,function(X,K){D(this,{type:z,target:X,state:Y(X),kind:K,last:void 0})},function(){for(var X=B(this),K=X.kind,Q=X.last;Q&&Q.removed;)Q=Q.previous;return!X.target||!(X.last=Q=Q?Q.next:X.state.first)?(X.target=void 0,b(void 0,!0)):b(K==="keys"?Q.key:K==="values"?Q.value:[Q.key,Q.value],!1)},U?"entries":"values",!U,!0),R(j)}}},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(16),y=r(130),T=r(262),$=r(36),A=r(7),b=T.Map,R=T.has,O=T.get,C=T.set,w=d([].push),D=$||A(function(){return b.groupBy("ab",function(L){return L}).get("a").length!==1});f({target:"Map",stat:!0,forced:$||D},{groupBy:function(F,j){p(F),h(j);var U=new b,z=0;return y(F,function(Y){var B=j(Y,z++);R(U,B)?w(O(U,B),Y):C(U,B,[Y])}),U}})},function(x,E,r){var f=r(14),d=Map.prototype;x.exports={Map,set:f(d.set),get:f(d.get),has:f(d.has),remove:f(d.delete),proto:d}},function(x,E,r){var f=r(3),d=r(264),h=Math.acosh,p=Math.log,y=Math.sqrt,T=Math.LN2,$=!h||Math.floor(h(Number.MAX_VALUE))!==710||h(1/0)!==1/0;f({target:"Math",stat:!0,forced:$},{acosh:function(b){var R=+b;return R<1?NaN:R>9490626562425156e-8?p(R)+T:d(R-1+y(R-1)*y(R+1))}})},function(x){var E=Math.log;x.exports=Math.log1p||function(f){var d=+f;return d>-1e-8&&d<1e-8?d-d*d/2:E(1+d)}},function(x,E,r){var f=r(3),d=Math.asinh,h=Math.log,p=Math.sqrt;function y($){var A=+$;return!isFinite(A)||A===0?A:A<0?-y(-A):h(A+p(A*A+1))}var T=!(d&&1/d(0)>0);f({target:"Math",stat:!0,forced:T},{asinh:y})},function(x,E,r){var f=r(3),d=Math.atanh,h=Math.log,p=!(d&&1/d(-0)<0);f({target:"Math",stat:!0,forced:p},{atanh:function(T){var $=+T;return $===0?$:h((1+$)/(1-$))/2}})},function(x,E,r){var f=r(3),d=r(214),h=Math.abs,p=Math.pow;f({target:"Math",stat:!0},{cbrt:function(T){var $=+T;return d($)*p(h($),.3333333333333333)}})},function(x,E,r){var f=r(3),d=Math.floor,h=Math.log,p=Math.LOG2E;f({target:"Math",stat:!0},{clz32:function(T){var $=T>>>0;return $?31-d(h($+.5)*p):32}})},function(x,E,r){var f=r(3),d=r(270),h=Math.cosh,p=Math.abs,y=Math.E,T=!h||h(710)===1/0;f({target:"Math",stat:!0,forced:T},{cosh:function(A){var b=d(p(A)-1)+1;return(b+1/(b*y*y))*(y/2)}})},function(x){var E=Math.expm1,r=Math.exp;x.exports=!E||E(10)>22025.465794806718||E(10)<22025.465794806718||E(-2e-17)!==-2e-17?function(d){var h=+d;return h===0?h:h>-1e-6&&h<1e-6?h+h*h/2:r(h)-1}:E},function(x,E,r){var f=r(3),d=r(270);f({target:"Math",stat:!0,forced:d!==Math.expm1},{expm1:d})},function(x,E,r){var f=r(3),d=r(212);f({target:"Math",stat:!0},{fround:d})},function(x,E,r){var f=r(3),d=Math.hypot,h=Math.abs,p=Math.sqrt,y=!!d&&d(1/0,NaN)!==1/0;f({target:"Math",stat:!0,arity:2,forced:y},{hypot:function($,A){for(var b=0,R=0,O=arguments.length,C=0,w,D;R0?(D=w/C,b+=D*D):b+=w;return C===1/0?1/0:C*p(b)}})},function(x,E,r){var f=r(3),d=r(7),h=Math.imul,p=d(function(){return h(4294967295,5)!==-5||h.length!==2});f({target:"Math",stat:!0,forced:p},{imul:function(T,$){var A=65535,b=+T,R=+$,O=A&b,C=A&R;return 0|O*C+((A&b>>>16)*C+O*(A&R>>>16)<<16>>>0)}})},function(x,E,r){var f=r(3),d=r(276);f({target:"Math",stat:!0},{log10:d})},function(x){var E=Math.log,r=Math.LOG10E;x.exports=Math.log10||function(d){return E(d)*r}},function(x,E,r){var f=r(3),d=r(264);f({target:"Math",stat:!0},{log1p:d})},function(x,E,r){var f=r(3),d=Math.log,h=Math.LN2;f({target:"Math",stat:!0},{log2:function(y){return d(y)/h}})},function(x,E,r){var f=r(3),d=r(214);f({target:"Math",stat:!0},{sign:d})},function(x,E,r){var f=r(3),d=r(7),h=r(270),p=Math.abs,y=Math.exp,T=Math.E,$=d(function(){return Math.sinh(-2e-17)!==-2e-17});f({target:"Math",stat:!0,forced:$},{sinh:function(b){var R=+b;return p(R)<1?(h(R)-h(-R))/2:(y(R-1)-y(-R-1))*(T/2)}})},function(x,E,r){var f=r(3),d=r(270),h=Math.exp;f({target:"Math",stat:!0},{tanh:function(y){var T=+y,$=d(T),A=d(-T);return $===1/0?1:A===1/0?-1:($-A)/(h(T)+h(-T))}})},function(x,E,r){var f=r(82);f(Math,"Math",!0)},function(x,E,r){var f=r(3),d=r(62);f({target:"Math",stat:!0},{trunc:d})},function(x,E,r){var f=r(3),d=r(36),h=r(6),p=r(4),y=r(80),T=r(14),$=r(67),A=r(38),b=r(118),R=r(24),O=r(22),C=r(19),w=r(7),D=r(57).f,L=r(5).f,F=r(44).f,j=r(285),U=r(286).trim,z="Number",Y=p[z],B=y[z],X=Y.prototype,K=p.TypeError,Q=T("".slice),Z=T("".charCodeAt),_=function(lt){var pt=C(lt,"number");return typeof pt=="bigint"?pt:nt(pt)},nt=function(lt){var pt=C(lt,"number"),ft,bt,xt,Ft,Lt,jt,Kt,Jt;if(O(pt))throw new K("Cannot convert a Symbol value to a number");if(typeof pt=="string"&&pt.length>2){if(pt=U(pt),ft=Z(pt,0),ft===43||ft===45){if(bt=Z(pt,2),bt===88||bt===120)return NaN}else if(ft===48){switch(Z(pt,1)){case 66:case 98:xt=2,Ft=49;break;case 79:case 111:xt=8,Ft=55;break;default:return+pt}for(Lt=Q(pt,2),jt=Lt.length,Kt=0;KtFt)return NaN;return parseInt(Lt,xt)}}return+pt},rt=$(z,!Y(" 0o1")||!Y("0b1")||Y("+0x1")),q=function(lt){return R(X,lt)&&w(function(){j(lt)})},tt=function(pt){var ft=arguments.length<1?0:Y(_(pt));return q(this)?b(Object(ft),this,tt):ft};tt.prototype=X,rt&&!d&&(X.constructor=tt),f({global:!0,constructor:!0,wrap:!0,forced:rt},{Number:tt});var et=function(lt,pt){for(var ft=h?D(pt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),bt=0,xt;ft.length>bt;bt++)A(pt,xt=ft[bt])&&!A(lt,xt)&&F(lt,xt,L(pt,xt))};d&&B&&et(y[z],B),(rt||d)&&et(y[z],Y)},function(x,E,r){var f=r(14);x.exports=f(1 .valueOf)},function(x,E,r){var f=r(14),d=r(16),h=r(68),p=r(287),y=f("".replace),T=RegExp("^["+p+"]+"),$=RegExp("(^|[^"+p+"])["+p+"]+$"),A=function(b){return function(R){var O=h(d(R));return b&1&&(O=y(O,T,"")),b&2&&(O=y(O,$,"$1")),O}};x.exports={start:A(1),end:A(2),trim:A(3)}},function(x){x.exports=` -\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(x,E,r){var f=r(3),d=r(290);f({target:"Number",stat:!0},{isFinite:d})},function(x,E,r){var f=r(4),d=f.isFinite;x.exports=Number.isFinite||function(p){return typeof p=="number"&&d(p)}},function(x,E,r){var f=r(3),d=r(292);f({target:"Number",stat:!0},{isInteger:d})},function(x,E,r){var f=r(20),d=Math.floor;x.exports=Number.isInteger||function(p){return!f(p)&&isFinite(p)&&d(p)===p}},function(x,E,r){var f=r(3);f({target:"Number",stat:!0},{isNaN:function(h){return h!==h}})},function(x,E,r){var f=r(3),d=r(292),h=Math.abs;f({target:"Number",stat:!0},{isSafeInteger:function(y){return d(y)&&h(y)<=9007199254740991}})},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(x,E,r){var f=r(3),d=r(298);f({target:"Number",stat:!0,forced:Number.parseFloat!==d},{parseFloat:d})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=h("".charAt),A=f.parseFloat,b=f.Symbol,R=b&&b.iterator,O=1/A(T+"-0")!==-1/0||R&&!d(function(){A(Object(R))});x.exports=O?function(w){var D=y(p(w)),L=A(D);return L===0&&$(D,0)==="-"?-0:L}:A},function(x,E,r){var f=r(3),d=r(300);f({target:"Number",stat:!0,forced:Number.parseInt!==d},{parseInt:d})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=f.parseInt,A=f.Symbol,b=A&&A.iterator,R=/^[+-]?0x/i,O=h(R.exec),C=$(T+"08")!==8||$(T+"0x16")!==22||b&&!d(function(){$(Object(b))});x.exports=C?function(D,L){var F=y(p(D));return $(F,L>>>0||(O(R,F)?16:10))}:$},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(276),$=r(7),A=RangeError,b=String,R=isFinite,O=Math.abs,C=Math.floor,w=Math.pow,D=Math.round,L=d(1 .toExponential),F=d(y),j=d("".slice),U=L(-69e-12,4)==="-6.9000e-11"&&L(1.255,2)==="1.25e+0"&&L(12345,3)==="1.235e+4"&&L(25,0)==="3e+1",z=function(){return $(function(){L(1,1/0)})&&$(function(){L(1,-1/0)})},Y=function(){return!$(function(){L(1/0,1/0),L(NaN,1/0)})},B=!U||!z()||!Y();f({target:"Number",proto:!0,forced:B},{toExponential:function(K){var Q=p(this);if(K===void 0)return L(Q);var Z=h(K);if(!R(Q))return String(Q);if(Z<0||Z>20)throw new A("Incorrect fraction digits");if(U)return L(Q,Z);var _="",nt="",rt=0,q="",tt="";if(Q<0&&(_="-",Q=-Q),Q===0)rt=0,nt=F("0",Z+1);else{var et=T(Q);rt=C(et);var lt=0,pt=w(10,rt-Z);lt=D(Q/pt),2*Q>=(2*lt+1)*pt&&(lt+=1),lt>=w(10,Z+1)&&(lt/=10,rt+=1),nt=b(lt)}return Z!==0&&(nt=j(nt,0,1)+"."+j(nt,1)),rt===0?(q="+",tt="0"):(q=rt>0?"+":"-",tt=b(O(rt))),nt+="e"+q+tt,_+nt}})},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(7),$=RangeError,A=String,b=Math.floor,R=d(y),O=d("".slice),C=d(1 .toFixed),w=function(z,Y,B){return Y===0?B:Y%2===1?w(z,Y-1,B*z):w(z*z,Y/2,B)},D=function(z){for(var Y=0,B=z;B>=4096;)Y+=12,B/=4096;for(;B>=2;)Y+=1,B/=2;return Y},L=function(z,Y,B){for(var X=-1,K=B;++X<6;)K+=Y*z[X],z[X]=K%1e7,K=b(K/1e7)},F=function(z,Y){for(var B=6,X=0;--B>=0;)X+=z[B],z[B]=b(X/Y),X=X%Y*1e7},j=function(z){for(var Y=6,B="";--Y>=0;)if(B!==""||Y===0||z[Y]!==0){var X=A(z[Y]);B=B===""?X:B+R("0",7-X.length)+X}return B},U=T(function(){return C(8e-5,3)!=="0.000"||C(.9,0)!=="1"||C(1.255,2)!=="1.25"||C(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!T(function(){C({})});f({target:"Number",proto:!0,forced:U},{toFixed:function(Y){var B=p(this),X=h(Y),K=[0,0,0,0,0,0],Q="",Z="0",_,nt,rt,q;if(X<0||X>20)throw new $("Incorrect fraction digits");if(B!==B)return"NaN";if(B<=-1e21||B>=1e21)return A(B);if(B<0&&(Q="-",B=-B),B>1e-21)if(_=D(B*w(2,69,1))-69,nt=_<0?B*w(2,-_,1):B/w(2,_,1),nt*=4503599627370496,_=52-_,_>0){for(L(K,0,nt),rt=X;rt>=7;)L(K,1e7,0),rt-=7;for(L(K,w(10,rt,1),0),rt=_-1;rt>=23;)F(K,8388608),rt-=23;F(K,1<0?(q=Z.length,Z=Q+(q<=X?"0."+R("0",X-q)+Z:O(Z,0,q-X)+"."+O(Z,q-X))):Z=Q+Z,Z}})},function(x,E,r){var f=r(3),d=r(14),h=r(7),p=r(285),y=d(1 .toPrecision),T=h(function(){return y(1,void 0)!=="1"})||!h(function(){y({})});f({target:"Number",proto:!0,forced:T},{toPrecision:function(A){return A===void 0?y(p(this)):y(p(this),A)}})},function(x,E,r){var f=r(3),d=r(305);f({target:"Object",stat:!0,arity:2,forced:Object.assign!==d},{assign:d})},function(x,E,r){var f=r(6),d=r(14),h=r(8),p=r(7),y=r(73),T=r(66),$=r(10),A=r(39),b=r(13),R=Object.assign,O=Object.defineProperty,C=d([].concat);x.exports=!R||p(function(){if(f&&R({b:1},R(O({},"a",{enumerable:!0,get:function(){O(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},D={},L=Symbol("assign detection"),F="abcdefghijklmnopqrst";return w[L]=7,F.split("").forEach(function(j){D[j]=j}),R({},w)[L]!==7||y(R({},D)).join("")!==F})?function(D,L){for(var F=A(D),j=arguments.length,U=1,z=T.f,Y=$.f;j>U;)for(var B=b(arguments[U++]),X=z?C(y(B),z(B)):y(B),K=X.length,Q=0,Z;K>Q;)Z=X[Q++],(!f||h(Y,B,Z))&&(F[Z]=B[Z]);return F}:R},function(x,E,r){var f=r(3),d=r(6),h=r(71);f({target:"Object",stat:!0,sham:!d},{create:h})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&f({target:"Object",proto:!0,forced:h},{__defineGetter__:function(A,b){T.f(y(this),A,{get:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var f=r(36),d=r(4),h=r(7),p=r(191);x.exports=f||!h(function(){if(!(p&&p<535)){var y=Math.random();__defineSetter__.call(null,y,function(){}),delete d[y]}})},function(x,E,r){var f=r(3),d=r(6),h=r(72).f;f({target:"Object",stat:!0,forced:Object.defineProperties!==h,sham:!d},{defineProperties:h})},function(x,E,r){var f=r(3),d=r(6),h=r(44).f;f({target:"Object",stat:!0,forced:Object.defineProperty!==h,sham:!d},{defineProperty:h})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&f({target:"Object",proto:!0,forced:h},{__defineSetter__:function(A,b){T.f(y(this),A,{set:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var f=r(3),d=r(313).entries;f({target:"Object",stat:!0},{entries:function(p){return d(p)}})},function(x,E,r){var f=r(6),d=r(7),h=r(14),p=r(128),y=r(73),T=r(12),$=r(10).f,A=h($),b=h([].push),R=f&&d(function(){var C=Object.create(null);return C[2]=2,!A(C,2)}),O=function(C){return function(w){for(var D=T(w),L=y(D),F=R&&p(D)===null,j=L.length,U=0,z=[],Y;j>U;)Y=L[U++],(!f||(F?Y in D:A(D,Y)))&&b(z,C?[Y,D[Y]]:D[Y]);return z}};x.exports={entries:O(!0),values:O(!1)}},function(x,E,r){var f=r(3),d=r(259),h=r(7),p=r(20),y=r(256).onFreeze,T=Object.freeze,$=h(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!d},{freeze:function(b){return T&&p(b)?T(y(b)):b}})},function(x,E,r){var f=r(3),d=r(130),h=r(141);f({target:"Object",stat:!0},{fromEntries:function(y){var T={};return d(y,function($,A){h(T,$,A)},{AS_ENTRIES:!0}),T}})},function(x,E,r){var f=r(3),d=r(7),h=r(12),p=r(5).f,y=r(6),T=!y||d(function(){p(1)});f({target:"Object",stat:!0,forced:T,sham:!y},{getOwnPropertyDescriptor:function(A,b){return p(h(A),b)}})},function(x,E,r){var f=r(3),d=r(6),h=r(56),p=r(12),y=r(5),T=r(141);f({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(A){for(var b=p(A),R=y.f,O=h(b),C={},w=0,D,L;O.length>w;)L=R(b,D=O[w++]),L!==void 0&&T(C,D,L);return C}})},function(x,E,r){var f=r(3),d=r(7),h=r(75).f,p=d(function(){return!Object.getOwnPropertyNames(1)});f({target:"Object",stat:!0,forced:p},{getOwnPropertyNames:h})},function(x,E,r){var f=r(3),d=r(7),h=r(39),p=r(128),y=r(129),T=d(function(){p(1)});f({target:"Object",stat:!0,forced:T,sham:!y},{getPrototypeOf:function(A){return p(h(A))}})},function(x,E,r){var f=r(3),d=r(23),h=r(14),p=r(30),y=r(16),T=r(18),$=r(130),A=r(7),b=Object.groupBy,R=d("Object","create"),O=h([].push),C=!b||A(function(){return b("ab",function(w){return w}).a.length!==1});f({target:"Object",stat:!0,forced:C},{groupBy:function(D,L){y(D),p(L);var F=R(null),j=0;return $(D,function(U){var z=T(L(U,j++));z in F?O(F[z],U):F[z]=[U]}),F}})},function(x,E,r){var f=r(3),d=r(38);f({target:"Object",stat:!0},{hasOwn:d})},function(x,E,r){var f=r(3),d=r(323);f({target:"Object",stat:!0},{is:d})},function(x){x.exports=Object.is||function(r,f){return r===f?r!==0||1/r===1/f:r!==r&&f!==f}},function(x,E,r){var f=r(3),d=r(257);f({target:"Object",stat:!0,forced:Object.isExtensible!==d},{isExtensible:d})},function(x,E,r){var f=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isFrozen,$=y||d(function(){T(1)});f({target:"Object",stat:!0,forced:$},{isFrozen:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var f=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isSealed,$=y||d(function(){T(1)});f({target:"Object",stat:!0,forced:$},{isSealed:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var f=r(3),d=r(39),h=r(73),p=r(7),y=p(function(){h(1)});f({target:"Object",stat:!0,forced:y},{keys:function($){return h(d($))}})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&f({target:"Object",proto:!0,forced:h},{__lookupGetter__:function(b){var R=p(this),O=y(b),C;do if(C=$(R,O))return C.get;while(R=T(R))}})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&f({target:"Object",proto:!0,forced:h},{__lookupSetter__:function(b){var R=p(this),O=y(b),C;do if(C=$(R,O))return C.set;while(R=T(R))}})},function(x,E,r){var f=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.preventExtensions,$=y(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!p},{preventExtensions:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var f=r(6),d=r(77),h=r(20),p=r(116),y=r(39),T=r(16),$=Object.getPrototypeOf,A=Object.setPrototypeOf,b=Object.prototype,R="__proto__";if(f&&$&&A&&!(R in b))try{d(b,R,{configurable:!0,get:function(){return $(y(this))},set:function(C){var w=T(this);p(C)&&h(w)&&A(w,C)}})}catch(O){}},function(x,E,r){var f=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.seal,$=y(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!p},{seal:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var f=r(3),d=r(113);f({target:"Object",stat:!0},{setPrototypeOf:d})},function(x,E,r){var f=r(70),d=r(47),h=r(335);f||d(Object.prototype,"toString",h,{unsafe:!0})},function(x,E,r){var f=r(70),d=r(69);x.exports=f?{}.toString:function(){return"[object "+d(this)+"]"}},function(x,E,r){var f=r(3),d=r(313).values;f({target:"Object",stat:!0},{values:function(p){return d(p)}})},function(x,E,r){var f=r(3),d=r(298);f({global:!0,forced:parseFloat!==d},{parseFloat:d})},function(x,E,r){var f=r(3),d=r(300);f({global:!0,forced:parseInt!==d},{parseInt:d})},function(x,E,r){r(340),r(354),r(356),r(357),r(358),r(359)},function(x,E,r){var f=r(3),d=r(36),h=r(182),p=r(4),y=r(8),T=r(47),$=r(113),A=r(82),b=r(193),R=r(30),O=r(21),C=r(20),w=r(210),D=r(219),L=r(341).set,F=r(344),j=r(349),U=r(350),z=r(346),Y=r(51),B=r(351),X=r(352),K=r(353),Q="Promise",Z=X.CONSTRUCTOR,_=X.REJECTION_EVENT,nt=X.SUBCLASSING,rt=Y.getterFor(Q),q=Y.set,tt=B&&B.prototype,et=B,lt=tt,pt=p.TypeError,ft=p.document,bt=p.process,xt=K.f,Ft=xt,Lt=!!(ft&&ft.createEvent&&p.dispatchEvent),jt="unhandledrejection",Kt="rejectionhandled",Jt=0,ge=1,ce=2,ee=1,Mt=2,zt,te,ie,re,le=function(At){var kt;return C(At)&&O(kt=At.then)?kt:!1},Re=function(At,kt){var Qt=kt.value,Xt=kt.state===ge,Ut=Xt?At.ok:At.fail,we=At.resolve,Ye=At.reject,dt=At.domain,Ot,Pt,ot;try{Ut?(Xt||(kt.rejection===Mt&&me(kt),kt.rejection=ee),Ut===!0?Ot=Qt:(dt&&dt.enter(),Ot=Ut(Qt),dt&&(dt.exit(),ot=!0)),Ot===At.promise?Ye(new pt("Promise-chain cycle")):(Pt=le(Ot))?y(Pt,Ot,we,Ye):we(Ot)):Ye(Qt)}catch(vt){dt&&!ot&&dt.exit(),Ye(vt)}},Ce=function(At,kt){At.notified||(At.notified=!0,F(function(){for(var Qt=At.reactions,Xt;Xt=Qt.get();)Re(Xt,At);At.notified=!1,kt&&!At.rejection&&oe(At)}))},xe=function(At,kt,Qt){var Xt,Ut;Lt?(Xt=ft.createEvent("Event"),Xt.promise=kt,Xt.reason=Qt,Xt.initEvent(At,!1,!0),p.dispatchEvent(Xt)):Xt={promise:kt,reason:Qt},!_&&(Ut=p["on"+At])?Ut(Xt):At===jt&&j("Unhandled promise rejection",Qt)},oe=function(At){y(L,p,function(){var kt=At.facade,Qt=At.value,Xt=Ae(At),Ut;if(Xt&&(Ut=U(function(){h?bt.emit("unhandledRejection",Qt,kt):xe(jt,kt,Qt)}),At.rejection=h||Ae(At)?Mt:ee,Ut.error))throw Ut.value})},Ae=function(At){return At.rejection!==ee&&!At.parent},me=function(At){y(L,p,function(){var kt=At.facade;h?bt.emit("rejectionHandled",kt):xe(Kt,kt,At.value)})},ue=function(At,kt,Qt){return function(Xt){At(kt,Xt,Qt)}},Et=function(At,kt,Qt){At.done||(At.done=!0,Qt&&(At=Qt),At.value=kt,At.state=ce,Ce(At,!0))},Bt=function(At,kt,Qt){if(!At.done){At.done=!0,Qt&&(At=Qt);try{if(At.facade===kt)throw new pt("Promise can't be resolved itself");var Xt=le(kt);Xt?F(function(){var Ut={done:!1};try{y(Xt,kt,ue(Bt,Ut,At),ue(Et,Ut,At))}catch(we){Et(Ut,we,At)}}):(At.value=kt,At.state=ge,Ce(At,!1))}catch(Ut){Et({done:!1},Ut,At)}}};if(Z&&(et=function(kt){w(this,lt),R(kt),y(zt,this);var Qt=rt(this);try{kt(ue(Bt,Qt),ue(Et,Qt))}catch(Xt){Et(Qt,Xt)}},lt=et.prototype,zt=function(kt){q(this,{type:Q,done:!1,notified:!1,parent:!1,reactions:new z,rejection:!1,state:Jt,value:void 0})},zt.prototype=T(lt,"then",function(kt,Qt){var Xt=rt(this),Ut=xt(D(this,et));return Xt.parent=!0,Ut.ok=O(kt)?kt:!0,Ut.fail=O(Qt)&&Qt,Ut.domain=h?bt.domain:void 0,Xt.state===Jt?Xt.reactions.add(Ut):F(function(){Re(Ut,Xt)}),Ut.promise}),te=function(){var At=new zt,kt=rt(At);this.promise=At,this.resolve=ue(Bt,kt),this.reject=ue(Et,kt)},K.f=xt=function(At){return At===et||At===ie?new te(At):Ft(At)},!d&&O(B)&&tt!==Object.prototype)){re=tt.then,nt||T(tt,"then",function(kt,Qt){var Xt=this;return new et(function(Ut,we){y(re,Xt,Ut,we)}).then(kt,Qt)},{unsafe:!0});try{delete tt.constructor}catch(At){}$&&$(tt,lt)}f({global:!0,constructor:!0,wrap:!0,forced:Z},{Promise:et}),A(et,Q,!1,!0),b(Q)},function(x,E,r){var f=r(4),d=r(94),h=r(84),p=r(21),y=r(38),T=r(7),$=r(74),A=r(76),b=r(42),R=r(342),O=r(343),C=r(182),w=f.setImmediate,D=f.clearImmediate,L=f.process,F=f.Dispatch,j=f.Function,U=f.MessageChannel,z=f.String,Y=0,B={},X="onreadystatechange",K,Q,Z,_;T(function(){K=f.location});var nt=function(et){if(y(B,et)){var lt=B[et];delete B[et],lt()}},rt=function(et){return function(){nt(et)}},q=function(et){nt(et.data)},tt=function(et){f.postMessage(z(et),K.protocol+"//"+K.host)};(!w||!D)&&(w=function(lt){R(arguments.length,1);var pt=p(lt)?lt:j(lt),ft=A(arguments,1);return B[++Y]=function(){d(pt,void 0,ft)},Q(Y),Y},D=function(lt){delete B[lt]},C?Q=function(et){L.nextTick(rt(et))}:F&&F.now?Q=function(et){F.now(rt(et))}:U&&!O?(Z=new U,_=Z.port2,Z.port1.onmessage=q,Q=h(_.postMessage,_)):f.addEventListener&&p(f.postMessage)&&!f.importScripts&&K&&K.protocol!=="file:"&&!T(tt)?(Q=tt,f.addEventListener("message",q,!1)):X in b("script")?Q=function(et){$.appendChild(b("script"))[X]=function(){$.removeChild(this),nt(et)}}:Q=function(et){setTimeout(rt(et),0)}),x.exports={set:w,clear:D}},function(x){var E=TypeError;x.exports=function(r,f){if(r@^][^\s!#%&*+<=>@^]*>/,pt=/a/g,ft=/a/g,bt=new Q(pt)!==pt,xt=w.MISSED_STICKY,Ft=w.UNSUPPORTED_Y,Lt=f&&(!bt||xt||B||X||F(function(){return ft[K]=!1,Q(pt)!==pt||Q(ft)===ft||String(Q(pt,"i"))!=="/a/i"})),jt=function(ee){for(var Mt=ee.length,zt=0,te="",ie=!1,re;zt<=Mt;zt++){if(re=rt(ee,zt),re==="\\"){te+=re+rt(ee,++zt);continue}!ie&&re==="."?te+="[\\s\\S]":(re==="["?ie=!0:re==="]"&&(ie=!1),te+=re)}return te},Kt=function(ee){for(var Mt=ee.length,zt=0,te="",ie=[],re=$(null),le=!1,Re=!1,Ce=0,xe="",oe;zt<=Mt;zt++){if(oe=rt(ee,zt),oe==="\\")oe+=rt(ee,++zt);else if(oe==="]")le=!1;else if(!le)switch(!0){case oe==="[":le=!0;break;case oe==="(":nt(lt,et(ee,zt+1))&&(zt+=2,Re=!0),te+=oe,Ce++;continue;case(oe===">"&&Re):if(xe===""||j(re,xe))throw new _("Invalid capture group name");re[xe]=!0,ie[ie.length]=[xe,Ce],Re=!1,xe="";continue}Re?xe+=oe:te+=oe}return[te,ie]};if(p("RegExp",Lt)){for(var Jt=function(Mt,zt){var te=b(Z,this),ie=R(Mt),re=zt===void 0,le=[],Re=Mt,Ce,xe,oe,Ae,me,ue;if(!te&&ie&&re&&Mt.constructor===Jt)return Mt;if((ie||b(Z,Mt))&&(Mt=Mt.source,re&&(zt=C(Re))),Mt=Mt===void 0?"":O(Mt),zt=zt===void 0?"":O(zt),Re=Mt,B&&"dotAll"in pt&&(xe=!!zt&&tt(zt,"s")>-1,xe&&(zt=q(zt,/s/g,""))),Ce=zt,xt&&"sticky"in pt&&(oe=!!zt&&tt(zt,"y")>-1,oe&&Ft&&(zt=q(zt,/y/g,""))),X&&(Ae=Kt(Mt),Mt=Ae[0],le=Ae[1]),me=y(Q(Mt,zt),te?this:Z,Jt),(xe||oe||le.length)&&(ue=U(me),xe&&(ue.dotAll=!0,ue.raw=Jt(jt(Mt),Ce)),oe&&(ue.sticky=!0),le.length&&(ue.groups=le)),Mt!==Re)try{T(me,"source",Re===""?"(?:)":Re)}catch(Et){}return me},ge=A(Q),ce=0;ge.length>ce;)D(Jt,Q,ge[ce++]);Z.constructor=Jt,Jt.prototype=Z,L(d,"RegExp",Jt,{constructor:!0})}z("RegExp")},function(x,E,r){var f=r(20),d=r(15),h=r(33),p=h("match");x.exports=function(y){var T;return f(y)&&((T=y[p])!==void 0?!!T:d(y)==="RegExp")}},function(x,E,r){var f=r(8),d=r(38),h=r(24),p=r(383),y=RegExp.prototype;x.exports=function(T){var $=T.flags;return $===void 0&&!("flags"in y)&&!d(T,"flags")&&h(y,T)?f(p,T):$}},function(x,E,r){var f=r(46);x.exports=function(){var d=f(this),h="";return d.hasIndices&&(h+="d"),d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.unicodeSets&&(h+="v"),d.sticky&&(h+="y"),h}},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp,p=f(function(){var $=h("a","y");return $.lastIndex=2,$.exec("abcd")!==null}),y=p||f(function(){return!h("a","y").sticky}),T=p||f(function(){var $=h("^r","gy");return $.lastIndex=2,$.exec("str")!==null});x.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:p}},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp;x.exports=f(function(){var p=h(".","s");return!(p.dotAll&&p.test(` -`)&&p.flags==="s")})},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp;x.exports=f(function(){var p=h("(?b)","g");return p.exec("b").groups.a!=="b"||"b".replace(p,"$c")!=="bc"})},function(x,E,r){var f=r(6),d=r(385),h=r(15),p=r(77),y=r(51).get,T=RegExp.prototype,$=TypeError;f&&d&&p(T,"dotAll",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!y(this).dotAll;throw new $("Incompatible receiver, RegExp required")}}})},function(x,E,r){var f=r(3),d=r(389);f({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},function(x,E,r){var f=r(8),d=r(14),h=r(68),p=r(383),y=r(384),T=r(34),$=r(71),A=r(51).get,b=r(385),R=r(386),O=T("native-string-replace",String.prototype.replace),C=RegExp.prototype.exec,w=C,D=d("".charAt),L=d("".indexOf),F=d("".replace),j=d("".slice),U=function(){var X=/a/,K=/b*/g;return f(C,X,"a"),f(C,K,"a"),X.lastIndex!==0||K.lastIndex!==0}(),z=y.BROKEN_CARET,Y=/()??/.exec("")[1]!==void 0,B=U||Y||z||b||R;B&&(w=function(K){var Q=this,Z=A(Q),_=h(K),nt=Z.raw,rt,q,tt,et,lt,pt,ft;if(nt)return nt.lastIndex=Q.lastIndex,rt=f(w,nt,_),Q.lastIndex=nt.lastIndex,rt;var bt=Z.groups,xt=z&&Q.sticky,Ft=f(p,Q),Lt=Q.source,jt=0,Kt=_;if(xt&&(Ft=F(Ft,"y",""),L(Ft,"g")===-1&&(Ft+="g"),Kt=j(_,Q.lastIndex),Q.lastIndex>0&&(!Q.multiline||Q.multiline&&D(_,Q.lastIndex-1)!==` -`)&&(Lt="(?: "+Lt+")",Kt=" "+Kt,jt++),q=new RegExp("^(?:"+Lt+")",Ft)),Y&&(q=new RegExp("^"+Lt+"$(?!\\s)",Ft)),U&&(tt=Q.lastIndex),et=f(C,xt?q:Q,Kt),xt?et?(et.input=j(et.input,jt),et[0]=j(et[0],jt),et.index=Q.lastIndex,Q.lastIndex+=et[0].length):Q.lastIndex=0:U&&et&&(Q.lastIndex=Q.global?et.index+et[0].length:tt),Y&&et&&et.length>1&&f(O,et[0],q,function(){for(lt=1;ltw.size?T(w.getIterator(),function(L){b(C,L)&&A(D,L)}):y(C,function(L){w.includes(L)&&A(D,L)}),D}},function(x,E,r){var f=r(3),d=r(410),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isDisjointFrom")},{isDisjointFrom:d})},function(x,E,r){var f=r(398),d=r(399).has,h=r(403),p=r(404),y=r(401),T=r(402),$=r(135);x.exports=function(b){var R=f(this),O=p(b);if(h(R)<=O.size)return y(R,function(w){if(O.includes(w))return!1},!0)!==!1;var C=O.getIterator();return T(C,function(w){if(d(R,w))return $(C,"normal",!1)})!==!1}},function(x,E,r){var f=r(3),d=r(412),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isSubsetOf")},{isSubsetOf:d})},function(x,E,r){var f=r(398),d=r(403),h=r(401),p=r(404);x.exports=function(T){var $=f(this),A=p(T);return d($)>A.size?!1:h($,function(b){if(!A.includes(b))return!1},!0)!==!1}},function(x,E,r){var f=r(3),d=r(414),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isSupersetOf")},{isSupersetOf:d})},function(x,E,r){var f=r(398),d=r(399).has,h=r(403),p=r(404),y=r(402),T=r(135);x.exports=function(A){var b=f(this),R=p(A);if(h(b)=0?w:C+w;return D<0||D>=C?void 0:$(O,D)}})},function(x,E,r){var f=r(3),d=r(421).codeAt;f({target:"String",proto:!0},{codePointAt:function(p){return d(this,p)}})},function(x,E,r){var f=r(14),d=r(61),h=r(68),p=r(16),y=f("".charAt),T=f("".charCodeAt),$=f("".slice),A=function(b){return function(R,O){var C=h(p(R)),w=d(O),D=C.length,L,F;return w<0||w>=D?b?"":void 0:(L=T(C,w),L<55296||L>56319||w+1===D||(F=T(C,w+1))<56320||F>57343?b?y(C,w):L:b?$(C,w,w+2):(L-55296<<10)+(F-56320)+65536)}};x.exports={codeAt:A(!1),charAt:A(!0)}},function(x,E,r){var f=r(3),d=r(85),h=r(5).f,p=r(64),y=r(68),T=r(423),$=r(16),A=r(424),b=r(36),R=d("".slice),O=Math.min,C=A("endsWith"),w=!b&&!C&&!!function(){var D=h(String.prototype,"endsWith");return D&&!D.writable}();f({target:"String",proto:!0,forced:!w&&!C},{endsWith:function(L){var F=y($(this));T(L);var j=arguments.length>1?arguments[1]:void 0,U=F.length,z=j===void 0?U:O(p(j),U),Y=y(L);return R(F,z-Y.length,z)===Y}})},function(x,E,r){var f=r(381),d=TypeError;x.exports=function(h){if(f(h))throw new d("The method doesn't accept regular expressions");return h}},function(x,E,r){var f=r(33),d=f("match");x.exports=function(h){var p=/./;try{"/./"[h](p)}catch(y){try{return p[d]=!1,"/./"[h](p)}catch(T){}}return!1}},function(x,E,r){var f=r(3),d=r(14),h=r(60),p=RangeError,y=String.fromCharCode,T=String.fromCodePoint,$=d([].join),A=!!T&&T.length!==1;f({target:"String",stat:!0,arity:1,forced:A},{fromCodePoint:function(R){for(var O=[],C=arguments.length,w=0,D;C>w;){if(D=+arguments[w++],h(D,1114111)!==D)throw new p(D+" is not a valid code point");O[w]=D<65536?y(D):y(((D-=65536)>>10)+55296,D%1024+56320)}return $(O,"")}})},function(x,E,r){var f=r(3),d=r(14),h=r(423),p=r(16),y=r(68),T=r(424),$=d("".indexOf);f({target:"String",proto:!0,forced:!T("includes")},{includes:function(b){return!!~$(y(p(this)),y(h(b)),arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(68),y=d("".charCodeAt);f({target:"String",proto:!0},{isWellFormed:function(){for(var $=p(h(this)),A=$.length,b=0;b=56320||++b>=A||(y($,b)&64512)!==56320))return!1}return!0}})},function(x,E,r){var f=r(421).charAt,d=r(68),h=r(51),p=r(169),y=r(172),T="String Iterator",$=h.set,A=h.getterFor(T);p(String,"String",function(b){$(this,{type:T,string:d(b),index:0})},function(){var R=A(this),O=R.string,C=R.index,w;return C>=O.length?y(void 0,!0):(w=f(O,C),R.index+=w.length,y(w,!1))})},function(x,E,r){var f=r(8),d=r(430),h=r(46),p=r(17),y=r(64),T=r(68),$=r(16),A=r(29),b=r(431),R=r(432);d("match",function(O,C,w){return[function(L){var F=$(this),j=p(L)?void 0:A(L,O);return j?f(j,L,F):new RegExp(L)[O](T(F))},function(D){var L=h(this),F=T(D),j=w(C,L,F);if(j.done)return j.value;if(!L.global)return R(L,F);var U=L.unicode;L.lastIndex=0;for(var z=[],Y=0,B;(B=R(L,F))!==null;){var X=T(B[0]);z[Y]=X,X===""&&(L.lastIndex=b(F,y(L.lastIndex),U)),Y++}return Y===0?null:z}]})},function(x,E,r){r(388);var f=r(8),d=r(47),h=r(389),p=r(7),y=r(33),T=r(43),$=y("species"),A=RegExp.prototype;x.exports=function(b,R,O,C){var w=y(b),D=!p(function(){var U={};return U[w]=function(){return 7},""[b](U)!==7}),L=D&&!p(function(){var U=!1,z=/a/;return b==="split"&&(z={},z.constructor={},z.constructor[$]=function(){return z},z.flags="",z[w]=/./[w]),z.exec=function(){return U=!0,null},z[w](""),!U});if(!D||!L||O){var F=/./[w],j=R(w,""[b],function(U,z,Y,B,X){var K=z.exec;return K===h||K===A.exec?D&&!X?{done:!0,value:f(F,z,Y,B)}:{done:!0,value:f(U,Y,z,B)}:{done:!1}});d(String.prototype,b,j[0]),d(A,w,j[1])}C&&T(A[w],"sham",!0)}},function(x,E,r){var f=r(421).charAt;x.exports=function(d,h,p){return h+(p?f(d,h).length:1)}},function(x,E,r){var f=r(8),d=r(46),h=r(21),p=r(15),y=r(389),T=TypeError;x.exports=function($,A){var b=$.exec;if(h(b)){var R=f(b,$,A);return R!==null&&d(R),R}if(p($)==="RegExp")return f(y,$,A);throw new T("RegExp#exec called on incompatible receiver")}},function(x,E,r){var f=r(3),d=r(8),h=r(85),p=r(170),y=r(172),T=r(16),$=r(64),A=r(68),b=r(46),R=r(17),O=r(15),C=r(381),w=r(382),D=r(29),L=r(47),F=r(7),j=r(33),U=r(219),z=r(431),Y=r(432),B=r(51),X=r(36),K=j("matchAll"),Q="RegExp String",Z=Q+" Iterator",_=B.set,nt=B.getterFor(Z),rt=RegExp.prototype,q=TypeError,tt=h("".indexOf),et=h("".matchAll),lt=!!et&&!F(function(){et("a",/./)}),pt=p(function(xt,Ft,Lt,jt){_(this,{type:Z,regexp:xt,string:Ft,global:Lt,unicode:jt,done:!1})},Q,function(){var xt=nt(this);if(xt.done)return y(void 0,!0);var Ft=xt.regexp,Lt=xt.string,jt=Y(Ft,Lt);return jt===null?(xt.done=!0,y(void 0,!0)):xt.global?(A(jt[0])===""&&(Ft.lastIndex=z(Lt,$(Ft.lastIndex),xt.unicode)),y(jt,!1)):(xt.done=!0,y(jt,!1))}),ft=function(bt){var xt=b(this),Ft=A(bt),Lt=U(xt,RegExp),jt=A(w(xt)),Kt,Jt,ge;return Kt=new Lt(Lt===RegExp?xt.source:xt,jt),Jt=!!~tt(jt,"g"),ge=!!~tt(jt,"u"),Kt.lastIndex=$(xt.lastIndex),new pt(Kt,Ft,Jt,ge)};f({target:"String",proto:!0,forced:lt},{matchAll:function(xt){var Ft=T(this),Lt,jt,Kt,Jt;if(R(xt)){if(lt)return et(Ft,xt)}else{if(C(xt)&&(Lt=A(T(w(xt))),!~tt(Lt,"g")))throw new q("`.matchAll` does not allow non-global regexes");if(lt)return et(Ft,xt);if(Kt=D(xt,K),Kt===void 0&&X&&O(xt)==="RegExp"&&(Kt=ft),Kt)return d(Kt,xt,Ft)}return jt=A(Ft),Jt=new RegExp(xt,"g"),X?d(ft,Jt,jt):Jt[K](jt)}}),X||K in rt||L(rt,K,ft)},function(x,E,r){var f=r(3),d=r(240).end,h=r(435);f({target:"String",proto:!0,forced:h},{padEnd:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(28);x.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(f)},function(x,E,r){var f=r(3),d=r(240).start,h=r(435);f({target:"String",proto:!0,forced:h},{padStart:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(12),p=r(39),y=r(68),T=r(63),$=d([].push),A=d([].join);f({target:"String",stat:!0},{raw:function(R){var O=h(p(R).raw),C=T(O);if(!C)return"";for(var w=arguments.length,D=[],L=0;;){if($(D,y(O[L++])),L===C)return A(D,"");L")!=="7"});p("replace",function(q,tt,et){var lt=nt?"$":"$0";return[function(ft,bt){var xt=C(this),Ft=A(ft)?void 0:D(ft,U);return Ft?d(Ft,ft,xt,bt):d(tt,O(xt),ft,bt)},function(pt,ft){var bt=T(this),xt=O(pt);if(typeof ft=="string"&&K(ft,lt)===-1&&K(ft,"$<")===-1){var Ft=et(tt,bt,xt,ft);if(Ft.done)return Ft.value}var Lt=$(ft);Lt||(ft=O(ft));var jt=bt.global,Kt;jt&&(Kt=bt.unicode,bt.lastIndex=0);for(var Jt=[],ge;ge=F(bt,xt),!(ge===null||(X(Jt,ge),!jt));){var ce=O(ge[0]);ce===""&&(bt.lastIndex=w(xt,R(bt.lastIndex),Kt))}for(var ee="",Mt=0,zt=0;zt=Mt&&(ee+=Q(xt,Mt,ie)+le,Mt=ie+te.length)}return ee+Q(xt,Mt)}]},!rt||!_||nt)},function(x,E,r){var f=r(14),d=r(39),h=Math.floor,p=f("".charAt),y=f("".replace),T=f("".slice),$=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,A=/\$([$&'`]|\d{1,2})/g;x.exports=function(b,R,O,C,w,D){var L=O+b.length,F=C.length,j=A;return w!==void 0&&(w=d(w),j=$),y(D,j,function(U,z){var Y;switch(p(z,0)){case"$":return"$";case"&":return b;case"`":return T(R,0,O);case"'":return T(R,L);case"<":Y=w[T(z,1,-1)];break;default:var B=+z;if(B===0)return U;if(B>F){var X=h(B/10);return X===0?U:X<=F?C[X-1]===void 0?p(z,1):C[X-1]+p(z,1):U}Y=C[B-1]}return Y===void 0?"":Y})}},function(x,E,r){var f=r(3),d=r(8),h=r(14),p=r(16),y=r(21),T=r(17),$=r(381),A=r(68),b=r(29),R=r(382),O=r(440),C=r(33),w=r(36),D=C("replace"),L=TypeError,F=h("".indexOf),j=h("".replace),U=h("".slice),z=Math.max;f({target:"String",proto:!0},{replaceAll:function(B,X){var K=p(this),Q,Z,_,nt,rt,q,tt,et,lt,pt=0,ft=0,bt="";if(!T(B)){if(Q=$(B),Q&&(Z=A(p(R(B))),!~F(Z,"g")))throw new L("`.replaceAll` does not allow non-global regexes");if(_=b(B,D),_)return d(_,B,K,X);if(w&&Q)return j(A(K),B,X)}for(nt=A(K),rt=A(B),q=y(X),q||(X=A(X)),tt=rt.length,et=z(1,tt),pt=F(nt,rt);pt!==-1;)lt=q?A(X(rt,pt,nt)):O(rt,nt,pt,[],void 0,X),bt+=U(nt,ft,pt)+lt,ft=pt+tt,pt=pt+et>nt.length?-1:F(nt,rt,pt+et);return ft1||"".split(/.?/).length;h("split",function(X,K,Q){var Z="0".split(void 0,0).length?function(_,nt){return _===void 0&&nt===0?[]:f(K,this,_,nt)}:K;return[function(nt,rt){var q=T(this),tt=y(nt)?void 0:O(nt,X);return tt?f(tt,nt,q,rt):f(Z,R(q),nt,rt)},function(_,nt){var rt=p(this),q=R(_);if(!B){var tt=Q(Z,rt,q,nt,Z!==K);if(tt.done)return tt.value}var et=$(rt,RegExp),lt=rt.unicode,pt=(rt.ignoreCase?"i":"")+(rt.multiline?"m":"")+(rt.unicode?"u":"")+(L?"g":"y"),ft=new et(L?"^(?:"+rt.source+")":rt,pt),bt=nt===void 0?F:nt>>>0;if(bt===0)return[];if(q.length===0)return C(ft,q)===null?[q]:[];for(var xt=0,Ft=0,Lt=[];Ft1?arguments[1]:void 0,F.length)),U=y(L);return R(F,j,j+U.length)===U}})},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(61),y=r(68),T=d("".slice),$=Math.max,A=Math.min,b=!"".substr||"ab".substr(-1)!=="b";f({target:"String",proto:!0,forced:b},{substr:function(O,C){var w=y(h(this)),D=w.length,L=p(O),F,j;return L===1/0&&(L=0),L<0&&(L=$(D+L,0)),F=C===void 0?D:p(C),F<=0||F===1/0?"":(j=A(L+F,D),L>=j?"":T(w,L,j))}})},function(x,E,r){var f=r(3),d=r(8),h=r(14),p=r(16),y=r(68),T=r(7),$=Array,A=h("".charAt),b=h("".charCodeAt),R=h([].join),O="".toWellFormed,C="\uFFFD",w=O&&T(function(){return d(O,1)!=="1"});f({target:"String",proto:!0,forced:w},{toWellFormed:function(){var L=y(p(this));if(w)return d(O,L);for(var F=L.length,j=$(F),U=0;U=56320||U+1>=F||(b(L,U+1)&64512)!==56320?j[U]=C:(j[U]=A(L,U),j[++U]=A(L,U))}return R(j,"")}})},function(x,E,r){var f=r(3),d=r(286).trim,h=r(448);f({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},function(x,E,r){var f=r(49).PROPER,d=r(7),h=r(287),p="\u200B\x85\u180E";x.exports=function(y){return d(function(){return!!h[y]()||p[y]()!==p||f&&h[y].name!==y})}},function(x,E,r){r(450);var f=r(3),d=r(451);f({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==d},{trimEnd:d})},function(x,E,r){var f=r(3),d=r(451);f({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==d},{trimRight:d})},function(x,E,r){var f=r(286).end,d=r(448);x.exports=d("trimEnd")?function(){return f(this)}:"".trimEnd},function(x,E,r){r(453);var f=r(3),d=r(454);f({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==d},{trimStart:d})},function(x,E,r){var f=r(3),d=r(454);f({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==d},{trimLeft:d})},function(x,E,r){var f=r(286).start,d=r(448);x.exports=d("trimStart")?function(){return f(this)}:"".trimStart},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("anchor")},{anchor:function(y){return d(this,"a","name",y)}})},function(x,E,r){var f=r(14),d=r(16),h=r(68),p=/"/g,y=f("".replace);x.exports=function(T,$,A,b){var R=h(d(T)),O="<"+$;return A!==""&&(O+=" "+A+'="'+y(h(b),p,""")+'"'),O+">"+R+""}},function(x,E,r){var f=r(7);x.exports=function(d){return f(function(){var h=""[d]('"');return h!==h.toLowerCase()||h.split('"').length>3})}},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("big")},{big:function(){return d(this,"big","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("blink")},{blink:function(){return d(this,"blink","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("bold")},{bold:function(){return d(this,"b","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fixed")},{fixed:function(){return d(this,"tt","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fontcolor")},{fontcolor:function(y){return d(this,"font","color",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fontsize")},{fontsize:function(y){return d(this,"font","size",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("italics")},{italics:function(){return d(this,"i","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("link")},{link:function(y){return d(this,"a","href",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("small")},{small:function(){return d(this,"small","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("strike")},{strike:function(){return d(this,"strike","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("sub")},{sub:function(){return d(this,"sub","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("sup")},{sup:function(){return d(this,"sup","","")}})},function(x,E,r){var f=r(471);f("Float32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(3),d=r(4),h=r(8),p=r(6),y=r(472),T=r(217),$=r(207),A=r(210),b=r(11),R=r(43),O=r(292),C=r(64),w=r(211),D=r(473),L=r(475),F=r(18),j=r(38),U=r(69),z=r(20),Y=r(22),B=r(71),X=r(24),K=r(113),Q=r(57).f,Z=r(476),_=r(83).forEach,nt=r(193),rt=r(77),q=r(44),tt=r(5),et=r(198),lt=r(51),pt=r(118),ft=lt.get,bt=lt.set,xt=lt.enforce,Ft=q.f,Lt=tt.f,jt=d.RangeError,Kt=$.ArrayBuffer,Jt=Kt.prototype,ge=$.DataView,ce=T.NATIVE_ARRAY_BUFFER_VIEWS,ee=T.TYPED_ARRAY_TAG,Mt=T.TypedArray,zt=T.TypedArrayPrototype,te=T.isTypedArray,ie="BYTES_PER_ELEMENT",re="Wrong length",le=function(Ae,me){rt(Ae,me,{configurable:!0,get:function(){return ft(this)[me]}})},Re=function(Ae){var me;return X(Jt,Ae)||(me=U(Ae))==="ArrayBuffer"||me==="SharedArrayBuffer"},Ce=function(Ae,me){return te(Ae)&&!Y(me)&&me in Ae&&O(+me)&&me>=0},xe=function(me,ue){return ue=F(ue),Ce(me,ue)?b(2,me[ue]):Lt(me,ue)},oe=function(me,ue,Et){return ue=F(ue),Ce(me,ue)&&z(Et)&&j(Et,"value")&&!j(Et,"get")&&!j(Et,"set")&&!Et.configurable&&(!j(Et,"writable")||Et.writable)&&(!j(Et,"enumerable")||Et.enumerable)?(me[ue]=Et.value,me):Ft(me,ue,Et)};p?(ce||(tt.f=xe,q.f=oe,le(zt,"buffer"),le(zt,"byteOffset"),le(zt,"byteLength"),le(zt,"length")),f({target:"Object",stat:!0,forced:!ce},{getOwnPropertyDescriptor:xe,defineProperty:oe}),x.exports=function(Ae,me,ue){var Et=Ae.match(/\d+/)[0]/8,Bt=Ae+(ue?"Clamped":"")+"Array",At="get"+Ae,kt="set"+Ae,Qt=d[Bt],Xt=Qt,Ut=Xt&&Xt.prototype,we={},Ye=function(ot,vt){var ct=ft(ot);return ct.view[At](vt*Et+ct.byteOffset,!0)},dt=function(ot,vt,ct){var Nt=ft(ot);Nt.view[kt](vt*Et+Nt.byteOffset,ue?L(ct):ct,!0)},Ot=function(ot,vt){Ft(ot,vt,{get:function(){return Ye(this,vt)},set:function(ct){return dt(this,vt,ct)},enumerable:!0})};ce?y&&(Xt=me(function(ot,vt,ct,Nt){return A(ot,Ut),pt(function(){return z(vt)?Re(vt)?Nt!==void 0?new Qt(vt,D(ct,Et),Nt):ct!==void 0?new Qt(vt,D(ct,Et)):new Qt(vt):te(vt)?et(Xt,vt):h(Z,Xt,vt):new Qt(w(vt))}(),ot,Xt)}),K&&K(Xt,Mt),_(Q(Qt),function(ot){ot in Xt||R(Xt,ot,Qt[ot])}),Xt.prototype=Ut):(Xt=me(function(ot,vt,ct,Nt){A(ot,Ut);var qt=0,se=0,Te,$e,ye;if(!z(vt))ye=w(vt),$e=ye*Et,Te=new Kt($e);else if(Re(vt)){Te=vt,se=D(ct,Et);var sn=vt.byteLength;if(Nt===void 0){if(sn%Et)throw new jt(re);if($e=sn-se,$e<0)throw new jt(re)}else if($e=C(Nt)*Et,$e+se>sn)throw new jt(re);ye=$e/Et}else return te(vt)?et(Xt,vt):h(Z,Xt,vt);for(bt(ot,{buffer:Te,byteOffset:se,byteLength:$e,length:ye,view:new ge(Te)});qt255?255:f&255}},function(x,E,r){var f=r(84),d=r(8),h=r(220),p=r(39),y=r(63),T=r(133),$=r(134),A=r(131),b=r(477),R=r(217).aTypedArrayConstructor,O=r(478);x.exports=function(w){var D=h(this),L=p(w),F=arguments.length,j=F>1?arguments[1]:void 0,U=j!==void 0,z=$(L),Y,B,X,K,Q,Z,_,nt;if(z&&!A(z))for(_=T(L,z),nt=_.next,L=[];!(Z=d(nt,_)).done;)L.push(Z.value);for(U&&F>2&&(j=f(j,arguments[2])),B=y(L),X=new(R(D))(B),K=b(X),Y=0;B>Y;Y++)Q=U?j(L[Y],Y):L[Y],X[Y]=K?O(Q):+Q;return X}},function(x,E,r){var f=r(69);x.exports=function(d){var h=f(d);return h==="BigInt64Array"||h==="BigUint64Array"}},function(x,E,r){var f=r(19),d=TypeError;x.exports=function(h){var p=f(h,"number");if(typeof p=="number")throw new d("Can't convert number to bigint");return BigInt(p)}},function(x,E,r){var f=r(471);f("Float64",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}},!0)},function(x,E,r){var f=r(471);f("Uint16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(217),d=r(63),h=r(61),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("at",function($){var A=p(this),b=d(A),R=h($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]})},function(x,E,r){var f=r(14),d=r(217),h=r(144),p=f(h),y=d.aTypedArray,T=d.exportTypedArrayMethod;T("copyWithin",function(A,b){return p(y(this),A,b,arguments.length>2?arguments[2]:void 0)})},function(x,E,r){var f=r(217),d=r(83).every,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("every",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(149),h=r(478),p=r(69),y=r(8),T=r(14),$=r(7),A=f.aTypedArray,b=f.exportTypedArrayMethod,R=T("".slice),O=$(function(){var C=0;return new Int8Array(2).fill({valueOf:function(){return C++}}),C!==1});b("fill",function(w){var D=arguments.length;A(this);var L=R(p(this),0,3)==="Big"?h(w):+w;return y(d,this,L,D>1?arguments[1]:void 0,D>2?arguments[2]:void 0)},O)},function(x,E,r){var f=r(217),d=r(83).filter,h=r(492),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("filter",function($){var A=d(p(this),$,arguments.length>1?arguments[1]:void 0);return h(this,A)})},function(x,E,r){var f=r(198),d=r(493);x.exports=function(h,p){return f(d(h),p)}},function(x,E,r){var f=r(217),d=r(219),h=f.aTypedArrayConstructor,p=f.getTypedArrayConstructor;x.exports=function(y){return h(d(y,p(y)))}},function(x,E,r){var f=r(217),d=r(83).find,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("find",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(83).findIndex,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(154).findLast,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findLast",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(154).findLastIndex,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findLastIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(83).forEach,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("forEach",function(T){d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(472),d=r(217).exportTypedArrayStaticMethod,h=r(476);d("from",h,f)},function(x,E,r){var f=r(217),d=r(59).includes,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("includes",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(59).indexOf,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("indexOf",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(217),y=r(168),T=r(33),$=T("iterator"),A=f.Uint8Array,b=h(y.values),R=h(y.keys),O=h(y.entries),C=p.aTypedArray,w=p.exportTypedArrayMethod,D=A&&A.prototype,L=!d(function(){D[$].call([1])}),F=!!D&&D.values&&D[$]===D.values&&D.values.name==="values",j=function(){return b(C(this))};w("entries",function(){return O(C(this))},L),w("keys",function(){return R(C(this))},L),w("values",j,L||!F,{name:"values"}),w($,j,L||!F,{name:"values"})},function(x,E,r){var f=r(217),d=r(14),h=f.aTypedArray,p=f.exportTypedArrayMethod,y=d([].join);p("join",function($){return y(h(this),$)})},function(x,E,r){var f=r(217),d=r(94),h=r(175),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("lastIndexOf",function($){var A=arguments.length;return d(h,p(this),A>1?[$,arguments[1]]:[$])})},function(x,E,r){var f=r(217),d=r(83).map,h=r(493),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("map",function($){return d(p(this),$,arguments.length>1?arguments[1]:void 0,function(A,b){return new(h(A))(b)})})},function(x,E,r){var f=r(217),d=r(472),h=f.aTypedArrayConstructor,p=f.exportTypedArrayStaticMethod;p("of",function(){for(var T=0,$=arguments.length,A=new(h(this))($);$>T;)A[T]=arguments[T++];return A},d)},function(x,E,r){var f=r(217),d=r(181).left,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduce",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(181).right,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduceRight",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=f.aTypedArray,h=f.exportTypedArrayMethod,p=Math.floor;h("reverse",function(){for(var T=this,$=d(T).length,A=p($/2),b=0,R;b1?arguments[1]:void 0,1),z=T(j);if(D)return d(O,this,z,U);var Y=this.length,B=p(z),X=0;if(B+U>Y)throw new A("Wrong length");for(;Xw;)L[w]=O[w++];return L},$)},function(x,E,r){var f=r(217),d=r(83).some,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("some",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(4),d=r(85),h=r(7),p=r(30),y=r(188),T=r(217),$=r(189),A=r(190),b=r(27),R=r(191),O=T.aTypedArray,C=T.exportTypedArrayMethod,w=f.Uint16Array,D=w&&d(w.prototype.sort),L=!!D&&!(h(function(){D(new w(2),null)})&&h(function(){D(new w(2),{})})),F=!!D&&!h(function(){if(b)return b<74;if($)return $<67;if(A)return!0;if(R)return R<602;var U=new w(516),z=Array(516),Y,B;for(Y=0;Y<516;Y++)B=Y%4,U[Y]=515-Y,z[Y]=Y-2*B+3;for(D(U,function(X,K){return(X/4|0)-(K/4|0)}),Y=0;Y<516;Y++)if(U[Y]!==z[Y])return!0}),j=function(U){return function(z,Y){return U!==void 0?+U(z,Y)||0:Y!==Y?-1:z!==z?1:z===0&&Y===0?1/z>0&&1/Y<0?1:-1:z>Y}};C("sort",function(z){return z!==void 0&&p(z),F?D(this,z):y(O(this),j(z))},!F||L)},function(x,E,r){var f=r(217),d=r(64),h=r(60),p=r(493),y=f.aTypedArray,T=f.exportTypedArrayMethod;T("subarray",function(A,b){var R=y(this),O=R.length,C=h(A,O),w=p(R);return new w(R.buffer,R.byteOffset+C*R.BYTES_PER_ELEMENT,d((b===void 0?O:h(b,O))-C))})},function(x,E,r){var f=r(4),d=r(94),h=r(217),p=r(7),y=r(76),T=f.Int8Array,$=h.aTypedArray,A=h.exportTypedArrayMethod,b=[].toLocaleString,R=!!T&&p(function(){b.call(new T(1))}),O=p(function(){return[1,2].toLocaleString()!==new T([1,2]).toLocaleString()})||!p(function(){T.prototype.toLocaleString.call([1,2])});A("toLocaleString",function(){return d(b,R?y($(this)):$(this),y(arguments))},O)},function(x,E,r){var f=r(196),d=r(217),h=d.aTypedArray,p=d.exportTypedArrayMethod,y=d.getTypedArrayConstructor;p("toReversed",function(){return f(h(this),y(this))})},function(x,E,r){var f=r(217),d=r(14),h=r(30),p=r(198),y=f.aTypedArray,T=f.getTypedArrayConstructor,$=f.exportTypedArrayMethod,A=d(f.TypedArrayPrototype.sort);$("toSorted",function(R){R!==void 0&&h(R);var O=y(this),C=p(T(O),O);return A(C,R)})},function(x,E,r){var f=r(217).exportTypedArrayMethod,d=r(7),h=r(4),p=r(14),y=h.Uint8Array,T=y&&y.prototype||{},$=[].toString,A=p([].join);d(function(){$.call({})})&&($=function(){return A(this)});var b=T.toString!==$;f("toString",$,b)},function(x,E,r){var f=r(205),d=r(217),h=r(477),p=r(61),y=r(478),T=d.aTypedArray,$=d.getTypedArrayConstructor,A=d.exportTypedArrayMethod,b=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(R){return R===8}}();A("with",function(R,O){var C=T(this),w=p(R),D=h(C)?y(O):+O;return f(C,$(C),w,D)},!b)},function(x,E,r){var f=r(3),d=r(14),h=r(68),p=String.fromCharCode,y=d("".charAt),T=d(/./.exec),$=d("".slice),A=/^[\da-f]{2}$/i,b=/^[\da-f]{4}$/i;f({global:!0},{unescape:function(O){for(var C=h(O),w="",D=C.length,L=0,F,j;L>(-2*q&6)));return nt}})},function(x){var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=E+"+/",f=E+"-_",d=function(h){for(var p={},y=0;y<64;y++)p[h.charAt(y)]=y;return p};x.exports={i2c:r,c2i:d(r),i2cUrl:f,c2iUrl:d(f)}},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(14),y=r(8),T=r(7),$=r(68),A=r(342),b=r(527).i2c,R=h("btoa"),O=p("".charAt),C=p("".charCodeAt),w=!!R&&!T(function(){return R("hi")!=="aGk="}),D=w&&!T(function(){R()}),L=w&&T(function(){return R(null)!=="bnVsbA=="}),F=w&&R.length!==1;f({global:!0,bind:!0,enumerable:!0,forced:!w||D||L||F},{btoa:function(U){if(A(arguments.length,1),w)return y(R,d,$(U));for(var z=$(U),Y="",B=0,X=b,K,Q;O(z,B)||(X="=",B%1);){if(Q=C(z,B+=.75),Q>255)throw new(h("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");K=K<<8|Q,Y+=O(X,63&K>>8-B%1*8)}return Y}})},function(x,E,r){var f=r(4),d=r(530),h=r(531),p=r(160),y=r(43),T=function(A){if(A&&A.forEach!==p)try{y(A,"forEach",p)}catch(b){A.forEach=p}};for(var $ in d)d[$]&&T(f[$]&&f[$].prototype);T(h)},function(x){x.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(x,E,r){var f=r(42),d=f("span").classList,h=d&&d.constructor&&d.constructor.prototype;x.exports=h===Object.prototype?void 0:h},function(x,E,r){var f=r(4),d=r(530),h=r(531),p=r(168),y=r(43),T=r(82),$=r(33),A=$("iterator"),b=p.values,R=function(C,w){if(C){if(C[A]!==b)try{y(C,A,b)}catch(L){C[A]=b}if(T(C,w,!0),d[w]){for(var D in p)if(C[D]!==p[D])try{y(C,D,p[D])}catch(L){C[D]=p[D]}}}};for(var O in d)R(f[O]&&f[O].prototype,O);R(h,"DOMTokenList")},function(x,E,r){var f=r(3),d=r(229),h=r(23),p=r(7),y=r(71),T=r(11),$=r(44).f,A=r(47),b=r(77),R=r(38),O=r(210),C=r(46),w=r(125),D=r(119),L=r(534),F=r(122),j=r(51),U=r(6),z=r(36),Y="DOMException",B="DATA_CLONE_ERR",X=h("Error"),K=h(Y)||function(){try{var Mt=h("MessageChannel")||d("worker_threads").MessageChannel;new Mt().port1.postMessage(new WeakMap)}catch(zt){if(zt.name===B&&zt.code===25)return zt.constructor}}(),Q=K&&K.prototype,Z=X.prototype,_=j.set,nt=j.getterFor(Y),rt="stack"in new X(Y),q=function(Mt){return R(L,Mt)&&L[Mt].m?L[Mt].c:0},tt=function(){O(this,et);var zt=arguments.length,te=D(zt<1?void 0:arguments[0]),ie=D(zt<2?void 0:arguments[1],"Error"),re=q(ie);if(_(this,{type:Y,name:ie,message:te,code:re}),U||(this.name=ie,this.message=te,this.code=re),rt){var le=new X(te);le.name=Y,$(this,"stack",T(1,F(le.stack,1)))}},et=tt.prototype=y(Z),lt=function(Mt){return{enumerable:!0,configurable:!0,get:Mt}},pt=function(Mt){return lt(function(){return nt(this)[Mt]})};U&&(b(et,"code",pt("code")),b(et,"message",pt("message")),b(et,"name",pt("name"))),$(et,"constructor",T(1,tt));var ft=p(function(){return!(new K instanceof X)}),bt=ft||p(function(){return Z.toString!==w||String(new K(1,2))!=="2: 1"}),xt=ft||p(function(){return new K(1,"DataCloneError").code!==25}),Ft=ft||K[B]!==25||Q[B]!==25,Lt=z?bt||xt||Ft:ft;f({global:!0,constructor:!0,forced:Lt},{DOMException:Lt?tt:K});var jt=h(Y),Kt=jt.prototype;bt&&(z||K===jt)&&A(Kt,"toString",w),xt&&U&&K===jt&&b(Kt,"code",lt(function(){return q(C(this).name)}));for(var Jt in L)if(R(L,Jt)){var ge=L[Jt],ce=ge.s,ee=T(6,ge.c);R(jt,ce)||$(jt,ce,ee),R(Kt,ce)||$(Kt,ce,ee)}},function(x){x.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(11),y=r(44).f,T=r(38),$=r(210),A=r(118),b=r(119),R=r(534),O=r(122),C=r(6),w=r(36),D="DOMException",L=h("Error"),F=h(D),j=function(){$(this,U);var tt=arguments.length,et=b(tt<1?void 0:arguments[0]),lt=b(tt<2?void 0:arguments[1],"Error"),pt=new F(et,lt),ft=new L(et);return ft.name=D,y(pt,"stack",p(1,O(ft.stack,1))),A(pt,this,j),pt},U=j.prototype=F.prototype,z="stack"in new L(D),Y="stack"in new F(1,2),B=F&&C&&Object.getOwnPropertyDescriptor(d,D),X=!!B&&!(B.writable&&B.configurable),K=z&&!X&&!Y;f({global:!0,constructor:!0,forced:w||K},{DOMException:K?j:F});var Q=h(D),Z=Q.prototype;if(Z.constructor!==Q){w||y(Z,"constructor",p(1,Q));for(var _ in R)if(T(R,_)){var nt=R[_],rt=nt.s;T(Q,rt)||y(Q,rt,p(6,nt.c))}}},function(x,E,r){var f=r(23),d=r(82),h="DOMException";d(f(h),h)},function(x,E,r){r(538),r(539)},function(x,E,r){var f=r(3),d=r(4),h=r(341).clear;f({global:!0,bind:!0,enumerable:!0,forced:d.clearImmediate!==h},{clearImmediate:h})},function(x,E,r){var f=r(3),d=r(4),h=r(341).set,p=r(540),y=d.setImmediate?p(h,!1):h;f({global:!0,bind:!0,enumerable:!0,forced:d.setImmediate!==y},{setImmediate:y})},function(x,E,r){var f=r(4),d=r(94),h=r(21),p=r(541),y=r(28),T=r(76),$=r(342),A=f.Function,b=/MSIE .\./.test(y)||p&&function(){var R=f.Bun.version.split(".");return R.length<3||R[0]==="0"&&(R[1]<3||R[1]==="3"&&R[2]==="0")}();x.exports=function(R,O){var C=O?2:1;return b?function(w,D){var L=$(arguments.length,1)>C,F=h(w)?w:A(w),j=L?T(arguments,C):[],U=L?function(){d(F,this,j)}:F;return O?R(U,D):R(U)}:R}},function(x){x.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},function(x,E,r){var f=r(3),d=r(4),h=r(344),p=r(30),y=r(342),T=r(7),$=r(6),A=T(function(){return $&&Object.getOwnPropertyDescriptor(d,"queueMicrotask").value.length!==1});f({global:!0,enumerable:!0,dontCallGetSet:!0,forced:A},{queueMicrotask:function(R){y(arguments.length,1),h(p(R))}})},function(x,E,r){var f=r(3),d=r(4),h=r(77),p=r(6),y=TypeError,T=Object.defineProperty,$=d.self!==d;try{if(p){var A=Object.getOwnPropertyDescriptor(d,"self");($||!A||!A.get||!A.enumerable)&&h(d,"self",{get:function(){return d},set:function(R){if(this!==d)throw new y("Illegal invocation");T(d,"self",{value:R,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else f({global:!0,simple:!0,forced:$},{self:d})}catch(b){}},function(x,E,r){var f=r(36),d=r(3),h=r(4),p=r(23),y=r(14),T=r(7),$=r(40),A=r(21),b=r(89),R=r(17),O=r(20),C=r(22),w=r(130),D=r(46),L=r(69),F=r(38),j=r(141),U=r(43),z=r(63),Y=r(342),B=r(382),X=r(262),K=r(399),Q=r(401),Z=r(228),_=r(123),nt=r(230),rt=h.Object,q=h.Array,tt=h.Date,et=h.Error,lt=h.TypeError,pt=h.PerformanceMark,ft=p("DOMException"),bt=X.Map,xt=X.has,Ft=X.get,Lt=X.set,jt=K.Set,Kt=K.add,Jt=K.has,ge=p("Object","keys"),ce=y([].push),ee=y((!0).valueOf),Mt=y(1 .valueOf),zt=y("".valueOf),te=y(tt.prototype.getTime),ie=$("structuredClone"),re="DataCloneError",le="Transferring",Re=function(dt){return!T(function(){var Ot=new h.Set([7]),Pt=dt(Ot),ot=dt(rt(7));return Pt===Ot||!Pt.has(7)||!O(ot)||+ot!=7})&&dt},Ce=function(dt,Ot){return!T(function(){var Pt=new Ot,ot=dt({a:Pt,b:Pt});return!(ot&&ot.a===ot.b&&ot.a instanceof Ot&&ot.a.stack===Pt.stack)})},xe=function(dt){return!T(function(){var Ot=dt(new h.AggregateError([1],ie,{cause:3}));return Ot.name!=="AggregateError"||Ot.errors[0]!==1||Ot.message!==ie||Ot.cause!==3})},oe=h.structuredClone,Ae=f||!Ce(oe,et)||!Ce(oe,ft)||!xe(oe),me=!oe&&Re(function(dt){return new pt(ie,{detail:dt}).detail}),ue=Re(oe)||me,Et=function(dt){throw new ft("Uncloneable type: "+dt,re)},Bt=function(dt,Ot){throw new ft((Ot||"Cloning")+" of "+dt+" cannot be properly polyfilled in this engine",re)},At=function(dt,Ot){return ue||Bt(Ot),ue(dt)},kt=function(){var dt;try{dt=new h.DataTransfer}catch(Ot){try{dt=new h.ClipboardEvent("").clipboardData}catch(Pt){}}return dt&&dt.items&&dt.files?dt:null},Qt=function(dt,Ot,Pt){if(xt(Ot,dt))return Ft(Ot,dt);var ot=Pt||L(dt),vt,ct,Nt,qt,se,Te;if(ot==="SharedArrayBuffer")ue?vt=ue(dt):vt=dt;else{var $e=h.DataView;!$e&&!A(dt.slice)&&Bt("ArrayBuffer");try{if(A(dt.slice)&&!dt.resizable)vt=dt.slice(0);else for(ct=dt.byteLength,Nt=("maxByteLength"in dt)?{maxByteLength:dt.maxByteLength}:void 0,vt=new ArrayBuffer(ct,Nt),qt=new $e(dt),se=new $e(vt),Te=0;Te1&&!R(arguments[1])?D(arguments[1]):void 0,ot=Pt?Pt.transfer:void 0,vt,ct;ot!==void 0&&(vt=new bt,ct=we(ot,vt));var Nt=Ut(Ot,vt);return ct&&Ye(ct),Nt}})},function(x,E,r){r(546),r(547)},function(x,E,r){var f=r(3),d=r(4),h=r(540),p=h(d.setInterval,!0);f({global:!0,bind:!0,forced:d.setInterval!==p},{setInterval:p})},function(x,E,r){var f=r(3),d=r(4),h=r(540),p=h(d.setTimeout,!0);f({global:!0,bind:!0,forced:d.setTimeout!==p},{setTimeout:p})},function(x,E,r){r(549)},function(x,E,r){r(428);var f=r(3),d=r(6),h=r(550),p=r(4),y=r(84),T=r(14),$=r(47),A=r(77),b=r(210),R=r(38),O=r(305),C=r(162),w=r(76),D=r(421).codeAt,L=r(551),F=r(68),j=r(82),U=r(342),z=r(552),Y=r(51),B=Y.set,X=Y.getterFor("URL"),K=z.URLSearchParams,Q=z.getState,Z=p.URL,_=p.TypeError,nt=p.parseInt,rt=Math.floor,q=Math.pow,tt=T("".charAt),et=T(/./.exec),lt=T([].join),pt=T(1 .toString),ft=T([].pop),bt=T([].push),xt=T("".replace),Ft=T([].shift),Lt=T("".split),jt=T("".slice),Kt=T("".toLowerCase),Jt=T([].unshift),ge="Invalid authority",ce="Invalid scheme",ee="Invalid host",Mt="Invalid port",zt=/[a-z]/i,te=/[\d+-.a-z]/i,ie=/\d/,re=/^0x/i,le=/^[0-7]+$/,Re=/^\d+$/,Ce=/^[\da-f]+$/i,xe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,oe=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ae=/^[\u0000-\u0020]+/,me=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ue=/[\t\n\r]/g,Et,Bt=function(ut){var wt=Lt(ut,"."),yt,it,Rt,ve,_t,Ee,Qe;if(wt.length&&wt[wt.length-1]===""&&wt.length--,yt=wt.length,yt>4)return ut;for(it=[],Rt=0;Rt1&&tt(ve,0)==="0"&&(_t=et(re,ve)?16:8,ve=jt(ve,_t===8?1:2)),ve==="")Ee=0;else{if(!et(_t===10?Re:_t===8?le:Ce,ve))return ut;Ee=nt(ve,_t)}bt(it,Ee)}for(Rt=0;Rt=q(256,5-yt))return null}else if(Ee>255)return null;for(Qe=ft(it),Rt=0;Rt6))return;for(Ee=0;_e();){if(Qe=null,Ee>0)if(_e()==="."&&Ee<4)Rt++;else return;if(!et(ie,_e()))return;for(;et(ie,_e());){if(un=nt(_e(),10),Qe===null)Qe=un;else{if(Qe===0)return;Qe=Qe*10+un}if(Qe>255)return;Rt++}wt[yt]=wt[yt]*256+Qe,Ee++,(Ee===2||Ee===4)&&yt++}if(Ee!==4)return;break}else if(_e()===":"){if(Rt++,!_e())return}else if(_e())return;wt[yt++]=ve}if(it!==null)for(dn=yt-it,yt=7;yt!==0&&dn>0;)st=wt[yt],wt[yt--]=wt[it+dn-1],wt[it+--dn]=st;else if(yt!==8)return;return wt},kt=function(ut){for(var wt=null,yt=1,it=null,Rt=0,ve=0;ve<8;ve++)ut[ve]!==0?(Rt>yt&&(wt=it,yt=Rt),it=null,Rt=0):(it===null&&(it=ve),++Rt);return Rt>yt&&(wt=it,yt=Rt),wt},Qt=function(ut){var wt,yt,it,Rt;if(typeof ut=="number"){for(wt=[],yt=0;yt<4;yt++)Jt(wt,ut%256),ut=rt(ut/256);return lt(wt,".")}else if(typeof ut=="object"){for(wt="",it=kt(ut),yt=0;yt<8;yt++)Rt&&ut[yt]===0||(Rt&&(Rt=!1),it===yt?(wt+=yt?":":"::",Rt=!0):(wt+=pt(ut[yt],16),yt<7&&(wt+=":")));return"["+wt+"]"}return ut},Xt={},Ut=O({},Xt,{" ":1,'"':1,"<":1,">":1,"`":1}),we=O({},Ut,{"#":1,"?":1,"{":1,"}":1}),Ye=O({},we,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),dt=function(ut,wt){var yt=D(ut,0);return yt>32&&yt<127&&!R(wt,ut)?ut:encodeURIComponent(ut)},Ot={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Pt=function(ut,wt){var yt;return ut.length===2&&et(zt,tt(ut,0))&&((yt=tt(ut,1))===":"||!wt&&yt==="|")},ot=function(ut){var wt;return ut.length>1&&Pt(jt(ut,0,2))&&(ut.length===2||(wt=tt(ut,2))==="/"||wt==="\\"||wt==="?"||wt==="#")},vt=function(ut){return ut==="."||Kt(ut)==="%2e"},ct=function(ut){return ut=Kt(ut),ut===".."||ut==="%2e."||ut===".%2e"||ut==="%2e%2e"},Nt={},qt={},se={},Te={},$e={},ye={},sn={},dr={},zr={},jr={},fa={},da={},ha={},Gr={},Ya={},ga={},hr={},Fn={},Ha={},qn={},jn={},va=function(ut,wt,yt){var it=F(ut),Rt,ve,_t;if(wt){if(ve=this.parse(it),ve)throw new _(ve);this.searchParams=null}else{if(yt!==void 0&&(Rt=new va(yt,!0)),ve=this.parse(it,null,Rt),ve)throw new _(ve);_t=Q(new K),_t.bindURL(this),this.searchParams=_t}};va.prototype={type:"URL",parse:function(ut,wt,yt){var it=this,Rt=wt||Nt,ve=0,_t="",Ee=!1,Qe=!1,un=!1,dn,st,_e,wn;for(ut=F(ut),wt||(it.scheme="",it.username="",it.password="",it.host=null,it.port=null,it.path=[],it.query=null,it.fragment=null,it.cannotBeABaseURL=!1,ut=xt(ut,Ae,""),ut=xt(ut,me,"$1")),ut=xt(ut,ue,""),dn=C(ut);ve<=dn.length;){switch(st=dn[ve],Rt){case Nt:if(st&&et(zt,st))_t+=Kt(st),Rt=qt;else{if(wt)return ce;Rt=se;continue}break;case qt:if(st&&(et(te,st)||st==="+"||st==="-"||st==="."))_t+=Kt(st);else if(st===":"){if(wt&&(it.isSpecial()!==R(Ot,_t)||_t==="file"&&(it.includesCredentials()||it.port!==null)||it.scheme==="file"&&!it.host))return;if(it.scheme=_t,wt){it.isSpecial()&&Ot[it.scheme]===it.port&&(it.port=null);return}_t="",it.scheme==="file"?Rt=Gr:it.isSpecial()&&yt&&yt.scheme===it.scheme?Rt=Te:it.isSpecial()?Rt=dr:dn[ve+1]==="/"?(Rt=$e,ve++):(it.cannotBeABaseURL=!0,bt(it.path,""),Rt=Ha)}else{if(wt)return ce;_t="",Rt=se,ve=0;continue}break;case se:if(!yt||yt.cannotBeABaseURL&&st!=="#")return ce;if(yt.cannotBeABaseURL&&st==="#"){it.scheme=yt.scheme,it.path=w(yt.path),it.query=yt.query,it.fragment="",it.cannotBeABaseURL=!0,Rt=jn;break}Rt=yt.scheme==="file"?Gr:ye;continue;case Te:if(st==="/"&&dn[ve+1]==="/")Rt=zr,ve++;else{Rt=ye;continue}break;case $e:if(st==="/"){Rt=jr;break}else{Rt=Fn;continue}case ye:if(it.scheme=yt.scheme,st===Et)it.username=yt.username,it.password=yt.password,it.host=yt.host,it.port=yt.port,it.path=w(yt.path),it.query=yt.query;else if(st==="/"||st==="\\"&&it.isSpecial())Rt=sn;else if(st==="?")it.username=yt.username,it.password=yt.password,it.host=yt.host,it.port=yt.port,it.path=w(yt.path),it.query="",Rt=qn;else if(st==="#")it.username=yt.username,it.password=yt.password,it.host=yt.host,it.port=yt.port,it.path=w(yt.path),it.query=yt.query,it.fragment="",Rt=jn;else{it.username=yt.username,it.password=yt.password,it.host=yt.host,it.port=yt.port,it.path=w(yt.path),it.path.length--,Rt=Fn;continue}break;case sn:if(it.isSpecial()&&(st==="/"||st==="\\"))Rt=zr;else if(st==="/")Rt=jr;else{it.username=yt.username,it.password=yt.password,it.host=yt.host,it.port=yt.port,Rt=Fn;continue}break;case dr:if(Rt=zr,st!=="/"||tt(_t,ve+1)!=="/")continue;ve++;break;case zr:if(st!=="/"&&st!=="\\"){Rt=jr;continue}break;case jr:if(st==="@"){Ee&&(_t="%40"+_t),Ee=!0,_e=C(_t);for(var Je=0;Je<_e.length;Je++){var Bn=_e[Je];if(Bn===":"&&!un){un=!0;continue}var Sn=dt(Bn,Ye);un?it.password+=Sn:it.username+=Sn}_t=""}else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(Ee&&_t==="")return ge;ve-=C(_t).length+1,_t="",Rt=fa}else _t+=st;break;case fa:case da:if(wt&&it.scheme==="file"){Rt=ga;continue}else if(st===":"&&!Qe){if(_t==="")return ee;if(wn=it.parseHost(_t),wn)return wn;if(_t="",Rt=ha,wt===da)return}else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(it.isSpecial()&&_t==="")return ee;if(wt&&_t===""&&(it.includesCredentials()||it.port!==null))return;if(wn=it.parseHost(_t),wn)return wn;if(_t="",Rt=hr,wt)return;continue}else st==="["?Qe=!0:st==="]"&&(Qe=!1),_t+=st;break;case ha:if(et(ie,st))_t+=st;else if(st===Et||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()||wt){if(_t!==""){var Mn=nt(_t,10);if(Mn>65535)return Mt;it.port=it.isSpecial()&&Mn===Ot[it.scheme]?null:Mn,_t=""}if(wt)return;Rt=hr;continue}else return Mt;break;case Gr:if(it.scheme="file",st==="/"||st==="\\")Rt=Ya;else if(yt&&yt.scheme==="file")switch(st){case Et:it.host=yt.host,it.path=w(yt.path),it.query=yt.query;break;case"?":it.host=yt.host,it.path=w(yt.path),it.query="",Rt=qn;break;case"#":it.host=yt.host,it.path=w(yt.path),it.query=yt.query,it.fragment="",Rt=jn;break;default:ot(lt(w(dn,ve),""))||(it.host=yt.host,it.path=w(yt.path),it.shortenPath()),Rt=Fn;continue}else{Rt=Fn;continue}break;case Ya:if(st==="/"||st==="\\"){Rt=ga;break}yt&&yt.scheme==="file"&&!ot(lt(w(dn,ve),""))&&(Pt(yt.path[0],!0)?bt(it.path,yt.path[0]):it.host=yt.host),Rt=Fn;continue;case ga:if(st===Et||st==="/"||st==="\\"||st==="?"||st==="#"){if(!wt&&Pt(_t))Rt=Fn;else if(_t===""){if(it.host="",wt)return;Rt=hr}else{if(wn=it.parseHost(_t),wn)return wn;if(it.host==="localhost"&&(it.host=""),wt)return;_t="",Rt=hr}continue}else _t+=st;break;case hr:if(it.isSpecial()){if(Rt=Fn,st!=="/"&&st!=="\\")continue}else if(!wt&&st==="?")it.query="",Rt=qn;else if(!wt&&st==="#")it.fragment="",Rt=jn;else if(st!==Et&&(Rt=Fn,st!=="/"))continue;break;case Fn:if(st===Et||st==="/"||st==="\\"&&it.isSpecial()||!wt&&(st==="?"||st==="#")){if(ct(_t)?(it.shortenPath(),st!=="/"&&!(st==="\\"&&it.isSpecial())&&bt(it.path,"")):vt(_t)?st!=="/"&&!(st==="\\"&&it.isSpecial())&&bt(it.path,""):(it.scheme==="file"&&!it.path.length&&Pt(_t)&&(it.host&&(it.host=""),_t=tt(_t,0)+":"),bt(it.path,_t)),_t="",it.scheme==="file"&&(st===Et||st==="?"||st==="#"))for(;it.path.length>1&&it.path[0]==="";)Ft(it.path);st==="?"?(it.query="",Rt=qn):st==="#"&&(it.fragment="",Rt=jn)}else _t+=dt(st,we);break;case Ha:st==="?"?(it.query="",Rt=qn):st==="#"?(it.fragment="",Rt=jn):st!==Et&&(it.path[0]+=dt(st,Xt));break;case qn:!wt&&st==="#"?(it.fragment="",Rt=jn):st!==Et&&(st==="'"&&it.isSpecial()?it.query+="%27":st==="#"?it.query+="%23":it.query+=dt(st,Xt));break;case jn:st!==Et&&(it.fragment+=dt(st,Ut));break}ve++}},parseHost:function(ut){var wt,yt,it;if(tt(ut,0)==="["){if(tt(ut,ut.length-1)!=="]"||(wt=At(jt(ut,1,-1)),!wt))return ee;this.host=wt}else if(this.isSpecial()){if(ut=L(ut),et(xe,ut)||(wt=Bt(ut),wt===null))return ee;this.host=wt}else{if(et(oe,ut))return ee;for(wt="",yt=C(ut),it=0;it1?arguments[1]:void 0,Rt=B(yt,new va(wt,!1,it));d||(yt.href=Rt.serialize(),yt.origin=Rt.getOrigin(),yt.protocol=Rt.getProtocol(),yt.username=Rt.getUsername(),yt.password=Rt.getPassword(),yt.host=Rt.getHost(),yt.hostname=Rt.getHostname(),yt.port=Rt.getPort(),yt.pathname=Rt.getPathname(),yt.search=Rt.getSearch(),yt.searchParams=Rt.getSearchParams(),yt.hash=Rt.getHash())},vn=gr.prototype,Rn=function(ut,wt){return{get:function(){return X(this)[ut]()},set:wt&&function(yt){return X(this)[wt](yt)},configurable:!0,enumerable:!0}};if(d&&(A(vn,"href",Rn("serialize","setHref")),A(vn,"origin",Rn("getOrigin")),A(vn,"protocol",Rn("getProtocol","setProtocol")),A(vn,"username",Rn("getUsername","setUsername")),A(vn,"password",Rn("getPassword","setPassword")),A(vn,"host",Rn("getHost","setHost")),A(vn,"hostname",Rn("getHostname","setHostname")),A(vn,"port",Rn("getPort","setPort")),A(vn,"pathname",Rn("getPathname","setPathname")),A(vn,"search",Rn("getSearch","setSearch")),A(vn,"searchParams",Rn("getSearchParams")),A(vn,"hash",Rn("getHash","setHash"))),$(vn,"toJSON",function(){return X(this).serialize()},{enumerable:!0}),$(vn,"toString",function(){return X(this).serialize()},{enumerable:!0}),Z){var Wa=Z.createObjectURL,Ka=Z.revokeObjectURL;Wa&&$(gr,"createObjectURL",y(Wa,Z)),Ka&&$(gr,"revokeObjectURL",y(Ka,Z))}j(gr,"URL"),f({global:!0,constructor:!0,forced:!h,sham:!d},{URL:gr})},function(x,E,r){var f=r(7),d=r(33),h=r(6),p=r(36),y=d("iterator");x.exports=!f(function(){var T=new URL("b?a=1&b=2&c=3","http://a"),$=T.searchParams,A=new URLSearchParams("a=1&a=2&b=3"),b="";return T.pathname="c%20d",$.forEach(function(R,O){$.delete("b"),b+=O+R}),A.delete("a",2),A.delete("b",void 0),p&&(!T.toJSON||!A.has("a",1)||A.has("a",2)||!A.has("a",void 0)||A.has("b"))||!$.size&&(p||!h)||!$.sort||T.href!=="http://a/c%20d?a=1&c=3"||$.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!$[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||b!=="a1c3"||new URL("http://x",void 0).host!=="x"})},function(x,E,r){var f=r(14),d=2147483647,h=36,p=1,y=26,T=38,$=700,A=72,b=128,R="-",O=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",D=h-p,L=RangeError,F=f(C.exec),j=Math.floor,U=String.fromCharCode,z=f("".charCodeAt),Y=f([].join),B=f([].push),X=f("".replace),K=f("".split),Q=f("".toLowerCase),Z=function(q){for(var tt=[],et=0,lt=q.length;et=55296&&pt<=56319&&et>1,q+=j(q/tt);q>D*y>>1;)q=j(q/D),lt+=h;return j(lt+(D+1)*q/(q+T))},rt=function(q){var tt=[];q=Z(q);var et=q.length,lt=b,pt=0,ft=A,bt,xt;for(bt=0;bt=lt&&xtj((d-pt)/Kt))throw new L(w);for(pt+=(jt-lt)*Kt,lt=jt,bt=0;btd)throw new L(w);if(xt===lt){for(var Jt=pt,ge=h;;){var ce=ge<=ft?p:ge>=ft+y?y:ge-ft;if(Jt=ct.length)return vt.target=void 0,_(void 0,!0);var qt=ct[Nt];switch(vt.kind){case"keys":return _(qt.key,!1);case"values":return _(qt.value,!1)}return _([qt.key,qt.value],!1)},!0),Xt=function(ot){this.entries=[],this.url=null,ot!==void 0&&(Y(ot)?this.parseObject(ot):this.parseQuery(typeof ot=="string"?Mt(ot,0)==="?"?Ce(ot,1):ot:B(ot)))};Xt.prototype={type:et,bindURL:function(ot){this.url=ot,this.update()},parseObject:function(ot){var vt=this.entries,ct=Z(ot),Nt,qt,se,Te,$e,ye,sn;if(ct)for(Nt=Q(ot,ct),qt=Nt.next;!(se=p(qt,Nt)).done;){if(Te=Q(z(se.value)),$e=Te.next,(ye=p($e,Te)).done||(sn=p($e,Te)).done||!p($e,Te).done)throw new ge("Expected sequence with length 2");te(vt,{key:B(ye.value),value:B(sn.value)})}else for(var dr in ot)F(ot,dr)&&te(vt,{key:dr,value:B(ot[dr])})},parseQuery:function(ot){if(ot)for(var vt=this.entries,ct=Re(ot,"&"),Nt=0,qt,se;Nt0?arguments[0]:void 0,ct=pt(this,new Xt(vt));T||(this.size=ct.entries.length)},we=Ut.prototype;if(R(we,{append:function(vt,ct){var Nt=ft(this);nt(arguments.length,2),te(Nt.entries,{key:B(vt),value:B(ct)}),T||this.length++,Nt.updateURL()},delete:function(ot){for(var vt=ft(this),ct=nt(arguments.length,1),Nt=vt.entries,qt=B(ot),se=ct<2?void 0:arguments[1],Te=se===void 0?se:B(se),$e=0;$eNt.key?1:-1}),vt.updateURL()},forEach:function(vt){for(var ct=ft(this).entries,Nt=j(vt,arguments.length>1?arguments[1]:void 0),qt=0,se;qt1?Ot(arguments[1]):{})}}),L(Ft)){var Pt=function(vt){return D(this,jt),new Ft(vt,arguments.length>1?Ot(arguments[1]):{})};jt.constructor=Pt,Pt.prototype=jt,f({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pt})}}x.exports={URLSearchParams:Ut,getState:ft}},function(x,E,r){var f=r(3),d=r(23),h=r(7),p=r(342),y=r(68),T=r(550),$=d("URL"),A=T&&h(function(){$.canParse()}),b=h(function(){return $.canParse.length!==1});f({target:"URL",stat:!0,forced:!A||b},{canParse:function(O){var C=p(arguments.length,1),w=y(O),D=C<2||arguments[1]===void 0?void 0:y(arguments[1]);try{return!!new $(w,D)}catch(L){return!1}}})},function(x,E,r){var f=r(3),d=r(23),h=r(342),p=r(68),y=r(550),T=d("URL");f({target:"URL",stat:!0,forced:!y},{parse:function(A){var b=h(arguments.length,1),R=p(A),O=b<2||arguments[1]===void 0?void 0:p(arguments[1]);try{return new T(R,O)}catch(C){return null}}})},function(x,E,r){var f=r(3),d=r(8);f({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return d(URL.prototype.toString,this)}})},function(x,E,r){r(552)},function(x,E,r){var f=r(47),d=r(14),h=r(68),p=r(342),y=URLSearchParams,T=y.prototype,$=d(T.append),A=d(T.delete),b=d(T.forEach),R=d([].push),O=new y("a=1&a=2&b=3");O.delete("a",1),O.delete("b",void 0),O+""!="a=2"&&f(T,"delete",function(C){var w=arguments.length,D=w<2?void 0:arguments[1];if(w&&D===void 0)return A(this,C);var L=[];b(this,function(K,Q){R(L,{key:Q,value:K})}),p(w,1);for(var F=h(C),j=h(D),U=0,z=0,Y=!1,B=L.length,X;U=W&&(W=G+1);!(k=M[W])&&++W=0;)(o=a[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function bt(t){t||(t=xt);function e(v,m){return v&&m?t(v.__data__,m.__data__):!v-!m}for(var n=this._groups,a=n.length,i=new Array(a),s=0;se?1:t>=e?0:NaN}function Ft(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Lt(){return Array.from(this)}function jt(){for(var t=this._groups,e=0,n=t.length;e=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ee.hasOwnProperty(e)?{space:ee[e],local:t}:t}function zt(t){return function(){this.removeAttribute(t)}}function te(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ie(t,e){return function(){this.setAttribute(t,e)}}function re(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function le(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Re(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ce(t,e){var n=Mt(t);if(arguments.length<2){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((e==null?n.local?te:zt:typeof e=="function"?n.local?Re:le:n.local?re:ie)(n,e))}function xe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function oe(t){return function(){this.style.removeProperty(t)}}function Ae(t,e,n){return function(){this.style.setProperty(t,e,n)}}function me(t,e,n){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,n)}}function ue(t,e,n){return arguments.length>1?this.each((e==null?oe:typeof e=="function"?me:Ae)(t,e,n==null?"":n)):Et(this.node(),t)}function Et(t,e){return t.style.getPropertyValue(e)||xe(t).getComputedStyle(t,null).getPropertyValue(e)}function Bt(t){return function(){delete this[t]}}function At(t,e){return function(){this[t]=e}}function kt(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Qt(t,e){return arguments.length>1?this.each((e==null?Bt:typeof e=="function"?kt:At)(t,e)):this.node()[t]}function Xt(t){return t.trim().split(/^|\s+/)}function Ut(t){return t.classList||new we(t)}function we(t){this._node=t,this._names=Xt(t.getAttribute("class")||"")}we.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ye(t,e){for(var n=Ut(t),a=-1,i=e.length;++a=0&&(n=e.slice(a+1),e=e.slice(0,a)),{type:e,name:n}})}function Wa(t){return function(){var e=this.__on;if(e){for(var n=0,a=-1,i=e.length,s;n(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),l=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,l)=>{const c=[];if(s=i.ceil(s),l=l==null?1:Math.floor(l),!(s0))return c;let u;do c.push(u=new Date(+s)),e(s,l),t(s);while(uJe(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!s(o););else for(;--l>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(_e.setTime(+s),wn.setTime(+o),t(_e),t(wn),Math.floor(n(_e,wn))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(a?o=>a(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Bn=1e3,Sn=Bn*60,Mn=Sn*60,tr=Mn*24,qi=tr*7,Io=tr*30,ts=tr*365;function $r(t){return Je(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*Sn)/qi)}const Za=$r(0),ka=$r(1),bf=$r(2),Ef=$r(3),Vr=$r(4),Rf=$r(5),Of=$r(6),S0=Za.range,A0=ka.range,b0=bf.range,E0=Ef.range,R0=Vr.range,O0=Rf.range,I0=Of.range;function Sr(t){return Je(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/qi)}const Ja=Sr(0),Qa=Sr(1),If=Sr(2),Cf=Sr(3),Xr=Sr(4),Pf=Sr(5),wf=Sr(6),C0=Ja.range,P0=Qa.range,w0=If.range,M0=Cf.range,L0=Xr.range,D0=Pf.range,N0=wf.range,pa=Je(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Sn)/tr,t=>t.getDate()-1),F0=pa.range,_a=Je(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/tr,t=>t.getUTCDate()-1),B0=_a.range,Co=Je(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/tr,t=>Math.floor(t/tr)),U0=Co.range,er=Je(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());er.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Je(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});const z0=er.range,nr=Je(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());nr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Je(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});const j0=nr.range;function es(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ns(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ma(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Mf(t){var e=t.dateTime,n=t.date,a=t.time,i=t.periods,s=t.days,o=t.shortDays,l=t.months,c=t.shortMonths,u=ya(i),g=xa(i),v=ya(s),m=xa(s),S=ya(o),I=xa(o),N=ya(l),M=xa(l),P=ya(c),G=xa(c),W={a:It,A:Yt,b:Vt,B:Zt,c:null,d:No,e:No,f:ed,g:fd,G:hd,H:_f,I:qf,j:td,L:Fo,m:nd,M:rd,p:Wt,q:ne,Q:Vo,s:Xo,S:ad,u:id,U:sd,V:od,w:ld,W:cd,x:null,X:null,y:ud,Y:dd,Z:gd,"%":Go},V={a:je,A:Oe,b:Ge,B:cn,c:null,d:Uo,e:Uo,f:yd,g:Id,G:Pd,H:vd,I:pd,j:md,L:zo,m:xd,M:Td,p:Le,q:ln,Q:Vo,s:Xo,S:$d,u:Sd,U:Ad,V:bd,w:Ed,W:Rd,x:null,X:null,y:Od,Y:Cd,Z:wd,"%":Go},k={a:St,A:Tt,b:Gt,B:mt,c:J,d:Lo,e:Lo,f:Zf,g:Mo,G:wo,H:Do,I:Do,j:Yf,L:Kf,m:Xf,M:Hf,p:$t,q:Vf,Q:Jf,s:Qf,S:Wf,u:Bf,U:Uf,V:zf,w:Ff,W:jf,x:Ct,X:ht,y:Mo,Y:wo,Z:Gf,"%":kf};W.x=H(n,W),W.X=H(a,W),W.c=H(e,W),V.x=H(n,V),V.X=H(a,V),V.c=H(e,V);function H(Ht,pe){return function(be){var Dt=[],rn=-1,Ue=0,bn=Ht.length,En,he,an;for(be instanceof Date||(be=new Date(+be));++rn53)return null;"w"in Dt||(Dt.w=1),"Z"in Dt?(Ue=ns(ma(Dt.y,0,1)),bn=Ue.getUTCDay(),Ue=bn>4||bn===0?Qa.ceil(Ue):Qa(Ue),Ue=_a.offset(Ue,(Dt.V-1)*7),Dt.y=Ue.getUTCFullYear(),Dt.m=Ue.getUTCMonth(),Dt.d=Ue.getUTCDate()+(Dt.w+6)%7):(Ue=es(ma(Dt.y,0,1)),bn=Ue.getDay(),Ue=bn>4||bn===0?ka.ceil(Ue):ka(Ue),Ue=pa.offset(Ue,(Dt.V-1)*7),Dt.y=Ue.getFullYear(),Dt.m=Ue.getMonth(),Dt.d=Ue.getDate()+(Dt.w+6)%7)}else("W"in Dt||"U"in Dt)&&("w"in Dt||(Dt.w="u"in Dt?Dt.u%7:"W"in Dt?1:0),bn="Z"in Dt?ns(ma(Dt.y,0,1)).getUTCDay():es(ma(Dt.y,0,1)).getDay(),Dt.m=0,Dt.d="W"in Dt?(Dt.w+6)%7+Dt.W*7-(bn+5)%7:Dt.w+Dt.U*7-(bn+6)%7);return"Z"in Dt?(Dt.H+=Dt.Z/100|0,Dt.M+=Dt.Z%100,ns(Dt)):es(Dt)}}function gt(Ht,pe,be,Dt){for(var rn=0,Ue=pe.length,bn=be.length,En,he;rn=bn)return-1;if(En=pe.charCodeAt(rn++),En===37){if(En=pe.charAt(rn++),he=k[En in Po?pe.charAt(rn++):En],!he||(Dt=he(Ht,be,Dt))<0)return-1}else if(En!=be.charCodeAt(Dt++))return-1}return Dt}function $t(Ht,pe,be){var Dt=u.exec(pe.slice(be));return Dt?(Ht.p=g.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function St(Ht,pe,be){var Dt=S.exec(pe.slice(be));return Dt?(Ht.w=I.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function Tt(Ht,pe,be){var Dt=v.exec(pe.slice(be));return Dt?(Ht.w=m.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function Gt(Ht,pe,be){var Dt=P.exec(pe.slice(be));return Dt?(Ht.m=G.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function mt(Ht,pe,be){var Dt=N.exec(pe.slice(be));return Dt?(Ht.m=M.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function J(Ht,pe,be){return gt(Ht,e,pe,be)}function Ct(Ht,pe,be){return gt(Ht,n,pe,be)}function ht(Ht,pe,be){return gt(Ht,a,pe,be)}function It(Ht){return o[Ht.getDay()]}function Yt(Ht){return s[Ht.getDay()]}function Vt(Ht){return c[Ht.getMonth()]}function Zt(Ht){return l[Ht.getMonth()]}function Wt(Ht){return i[+(Ht.getHours()>=12)]}function ne(Ht){return 1+~~(Ht.getMonth()/3)}function je(Ht){return o[Ht.getUTCDay()]}function Oe(Ht){return s[Ht.getUTCDay()]}function Ge(Ht){return c[Ht.getUTCMonth()]}function cn(Ht){return l[Ht.getUTCMonth()]}function Le(Ht){return i[+(Ht.getUTCHours()>=12)]}function ln(Ht){return 1+~~(Ht.getUTCMonth()/3)}return{format:function(Ht){var pe=H(Ht+="",W);return pe.toString=function(){return Ht},pe},parse:function(Ht){var pe=at(Ht+="",!1);return pe.toString=function(){return Ht},pe},utcFormat:function(Ht){var pe=H(Ht+="",V);return pe.toString=function(){return Ht},pe},utcParse:function(Ht){var pe=at(Ht+="",!0);return pe.toString=function(){return Ht},pe}}}var Po={"-":"",_:" ",0:"0"},hn=/^\s*\d+/,Lf=/^%/,Df=/[\\^$*+?|[\]().{}]/g;function Me(t,e,n){var a=t<0?"-":"",i=(a?-t:t)+"",s=i.length;return a+(s[e.toLowerCase(),n]))}function Ff(t,e,n){var a=hn.exec(e.slice(n,n+1));return a?(t.w=+a[0],n+a[0].length):-1}function Bf(t,e,n){var a=hn.exec(e.slice(n,n+1));return a?(t.u=+a[0],n+a[0].length):-1}function Uf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.U=+a[0],n+a[0].length):-1}function zf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.V=+a[0],n+a[0].length):-1}function jf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.W=+a[0],n+a[0].length):-1}function wo(t,e,n){var a=hn.exec(e.slice(n,n+4));return a?(t.y=+a[0],n+a[0].length):-1}function Mo(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function Gf(t,e,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function Vf(t,e,n){var a=hn.exec(e.slice(n,n+1));return a?(t.q=a[0]*3-3,n+a[0].length):-1}function Xf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.m=a[0]-1,n+a[0].length):-1}function Lo(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.d=+a[0],n+a[0].length):-1}function Yf(t,e,n){var a=hn.exec(e.slice(n,n+3));return a?(t.m=0,t.d=+a[0],n+a[0].length):-1}function Do(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.H=+a[0],n+a[0].length):-1}function Hf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.M=+a[0],n+a[0].length):-1}function Wf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.S=+a[0],n+a[0].length):-1}function Kf(t,e,n){var a=hn.exec(e.slice(n,n+3));return a?(t.L=+a[0],n+a[0].length):-1}function Zf(t,e,n){var a=hn.exec(e.slice(n,n+6));return a?(t.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function kf(t,e,n){var a=Lf.exec(e.slice(n,n+1));return a?n+a[0].length:-1}function Jf(t,e,n){var a=hn.exec(e.slice(n));return a?(t.Q=+a[0],n+a[0].length):-1}function Qf(t,e,n){var a=hn.exec(e.slice(n));return a?(t.s=+a[0],n+a[0].length):-1}function No(t,e){return Me(t.getDate(),e,2)}function _f(t,e){return Me(t.getHours(),e,2)}function qf(t,e){return Me(t.getHours()%12||12,e,2)}function td(t,e){return Me(1+pa.count(er(t),t),e,3)}function Fo(t,e){return Me(t.getMilliseconds(),e,3)}function ed(t,e){return Fo(t,e)+"000"}function nd(t,e){return Me(t.getMonth()+1,e,2)}function rd(t,e){return Me(t.getMinutes(),e,2)}function ad(t,e){return Me(t.getSeconds(),e,2)}function id(t){var e=t.getDay();return e===0?7:e}function sd(t,e){return Me(Za.count(er(t)-1,t),e,2)}function Bo(t){var e=t.getDay();return e>=4||e===0?Vr(t):Vr.ceil(t)}function od(t,e){return t=Bo(t),Me(Vr.count(er(t),t)+(er(t).getDay()===4),e,2)}function ld(t){return t.getDay()}function cd(t,e){return Me(ka.count(er(t)-1,t),e,2)}function ud(t,e){return Me(t.getFullYear()%100,e,2)}function fd(t,e){return t=Bo(t),Me(t.getFullYear()%100,e,2)}function dd(t,e){return Me(t.getFullYear()%1e4,e,4)}function hd(t,e){var n=t.getDay();return t=n>=4||n===0?Vr(t):Vr.ceil(t),Me(t.getFullYear()%1e4,e,4)}function gd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Me(e/60|0,"0",2)+Me(e%60,"0",2)}function Uo(t,e){return Me(t.getUTCDate(),e,2)}function vd(t,e){return Me(t.getUTCHours(),e,2)}function pd(t,e){return Me(t.getUTCHours()%12||12,e,2)}function md(t,e){return Me(1+_a.count(nr(t),t),e,3)}function zo(t,e){return Me(t.getUTCMilliseconds(),e,3)}function yd(t,e){return zo(t,e)+"000"}function xd(t,e){return Me(t.getUTCMonth()+1,e,2)}function Td(t,e){return Me(t.getUTCMinutes(),e,2)}function $d(t,e){return Me(t.getUTCSeconds(),e,2)}function Sd(t){var e=t.getUTCDay();return e===0?7:e}function Ad(t,e){return Me(Ja.count(nr(t)-1,t),e,2)}function jo(t){var e=t.getUTCDay();return e>=4||e===0?Xr(t):Xr.ceil(t)}function bd(t,e){return t=jo(t),Me(Xr.count(nr(t),t)+(nr(t).getUTCDay()===4),e,2)}function Ed(t){return t.getUTCDay()}function Rd(t,e){return Me(Qa.count(nr(t)-1,t),e,2)}function Od(t,e){return Me(t.getUTCFullYear()%100,e,2)}function Id(t,e){return t=jo(t),Me(t.getUTCFullYear()%100,e,2)}function Cd(t,e){return Me(t.getUTCFullYear()%1e4,e,4)}function Pd(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Xr(t):Xr.ceil(t),Me(t.getUTCFullYear()%1e4,e,4)}function wd(){return"+0000"}function Go(){return"%"}function Vo(t){return+t}function Xo(t){return Math.floor(+t/1e3)}var Yr,rs,Yo,as,Ho;Md({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 Md(t){return Yr=Mf(t),rs=Yr.format,Yo=Yr.parse,as=Yr.utcFormat,Ho=Yr.utcParse,Yr}var Ld=Object.defineProperty,Wo=Object.getOwnPropertySymbols,Dd=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,Ko=(t,e,n)=>e in t?Ld(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,He=(t,e)=>{for(var n in e||(e={}))Dd.call(e,n)&&Ko(t,n,e[n]);if(Wo)for(var n of Wo(e))Nd.call(e,n)&&Ko(t,n,e[n]);return t};const Se={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},Be={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},qa={area:"bb-area",areas:"bb-areas"},on={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},Gn={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},rr={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},pn={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},is={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Ar={dragarea:"bb-dragarea",INCLUDED:"_included_"},Ta={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},Ln={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},Ve={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},ar={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Vn={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},We={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},qe={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},vr={level:"bb-level",levels:"bb-levels"},Zo={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},$a={region:"bb-region",regions:"bb-regions"},ke={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},tn={shape:"bb-shape",shapes:"bb-shapes"},ko={brush:"bb-brush",subchart:"bb-subchart"},An={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},ti={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Jo={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ss={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Ne=He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He({},Se),Be),qa),on),Gn),rr),pn),is),Ar),Ln),Ve),ar),Vn),We),Ta),qe),Zo),$a),ke),tn),ko),An),ti),Jo),ss),Fd={boost_useCssRule:!1,boost_useWorker:!1},Bd={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Ud={legend_contents_bindto:void 0,legend_contents_template:"{=TITLE}",legend_equally:!1,legend_hide:!1,legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_interaction:!0,legend_item_dblclick:!1,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_format:void 0,legend_padding:0,legend_position:"bottom",legend_show:!0,legend_tooltip:!1,legend_usePoint:!1},zd={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_mode:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,resize_timer:!0,onclick:void 0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},jd={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},Gd={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:void 0,tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:()=>{},tooltip_onhide:()=>{},tooltip_onshown:()=>{},tooltip_onhidden:()=>{},tooltip_order:null},Vd={data_x:void 0,data_idConverter:t=>t,data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_groupsZeroAs:"positive",data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:()=>{},data_onover:()=>{},data_onout:()=>{},data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},Xd={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},Yd={value:()=>{}};function Qo(){for(var t=0,e=arguments.length,n={},a;t=0&&(a=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:a}})}ei.prototype=Qo.prototype={constructor:ei,on:function(t,e){var n=this._,a=Hd(t+"",n),i,s=-1,o=a.length;if(arguments.length<2){for(;++s0)for(var n=new Array(i),a=0,i,s;a>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?ai(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?ai(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=kd.exec(t))?new On(e[1],e[2],e[3],1):(e=Jd.exec(t))?new On(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qd.exec(t))?ai(e[1],e[2],e[3],e[4]):(e=_d.exec(t))?ai(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=qd.exec(t))?sl(e[1],e[2]/100,e[3]/100,1):(e=th.exec(t))?sl(e[1],e[2]/100,e[3]/100,e[4]):tl.hasOwnProperty(t)?rl(tl[t]):t==="transparent"?new On(NaN,NaN,NaN,0):null}function rl(t){return new On(t>>16&255,t>>8&255,t&255,1)}function ai(t,e,n,a){return a<=0&&(t=e=n=NaN),new On(t,e,n,a)}function rh(t){return t instanceof Aa||(t=br(t)),t?(t=t.rgb(),new On(t.r,t.g,t.b,t.opacity)):new On}function ii(t,e,n,a){return arguments.length===1?rh(t):new On(t,e,n,a==null?1:a)}function On(t,e,n,a){this.r=+t,this.g=+e,this.b=+n,this.opacity=+a}us(On,ii,qo(Aa,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new On(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ba:Math.pow(ba,t),new On(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new On(Er(this.r),Er(this.g),Er(this.b),si(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:al,formatHex:al,formatHex8:ah,formatRgb:il,toString:il}));function al(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}`}function ah(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}${Rr((isNaN(this.opacity)?1:this.opacity)*255)}`}function il(){const t=si(this.opacity);return`${t===1?"rgb(":"rgba("}${Er(this.r)}, ${Er(this.g)}, ${Er(this.b)}${t===1?")":`, ${t})`}`}function si(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Er(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Rr(t){return t=Er(t),(t<16?"0":"")+t.toString(16)}function sl(t,e,n,a){return a<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Xn(t,e,n,a)}function ol(t){if(t instanceof Xn)return new Xn(t.h,t.s,t.l,t.opacity);if(t instanceof Aa||(t=br(t)),!t)return new Xn;if(t instanceof Xn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,a=t.b/255,i=Math.min(e,n,a),s=Math.max(e,n,a),o=NaN,l=s-i,c=(s+i)/2;return l?(e===s?o=(n-a)/l+(n0&&c<1?0:o,new Xn(o,l,c,t.opacity)}function ih(t,e,n,a){return arguments.length===1?ol(t):new Xn(t,e,n,a==null?1:a)}function Xn(t,e,n,a){this.h=+t,this.s=+e,this.l=+n,this.opacity=+a}us(Xn,ih,qo(Aa,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new Xn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ba:Math.pow(ba,t),new Xn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*e,i=2*n-a;return new On(fs(t>=240?t-240:t+120,i,a),fs(t,i,a),fs(t<120?t+240:t-120,i,a),this.opacity)},clamp(){return new Xn(ll(this.h),oi(this.s),oi(this.l),si(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 t=si(this.opacity);return`${t===1?"hsl(":"hsla("}${ll(this.h)}, ${oi(this.s)*100}%, ${oi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ll(t){return t=(t||0)%360,t<0?t+360:t}function oi(t){return Math.max(0,Math.min(1,t||0))}function fs(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function cl(t,e,n,a,i){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*a+o*i)/6}function sh(t){var e=t.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[a],s=t[a+1],o=a>0?t[a-1]:2*i-s,l=a()=>t;function ul(t,e){return function(n){return t+n*e}}function lh(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(a){return Math.pow(t+a*e,n)}}function G0(t,e){var n=e-t;return n?ul(t,n>180||n<-180?n-360*Math.round(n/360):n):li(isNaN(t)?e:t)}function ch(t){return(t=+t)==1?fl:function(e,n){return n-e?lh(e,n,t):li(isNaN(e)?n:e)}}function fl(t,e){var n=e-t;return n?ul(t,n):li(isNaN(t)?e:t)}var ci=function t(e){var n=ch(e);function a(i,s){var o=n((i=ii(i)).r,(s=ii(s)).r),l=n(i.g,s.g),c=n(i.b,s.b),u=fl(i.opacity,s.opacity);return function(g){return i.r=o(g),i.g=l(g),i.b=c(g),i.opacity=u(g),i+""}}return a.gamma=t,a}(1);function dl(t){return function(e){var n=e.length,a=new Array(n),i=new Array(n),s=new Array(n),o,l;for(o=0;on&&(s=e.slice(n,s),l[o]?l[o]+=s:l[++o]=s),(a=a[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,c.push({i:o,x:Yn(a,i)})),n=hs.lastIndex;return n=0&&t._call.call(void 0,e),t=t._next;--Zr}function Tl(){Or=(fi=Ca.now())+di,Zr=Ra=0;try{ph()}finally{Zr=0,yh(),Or=0}}function mh(){var t=Ca.now(),e=t-fi;e>ml&&(di-=e,fi=t)}function yh(){for(var t,e=ui,n,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ui=n);Ia=t,vs(a)}function vs(t){if(!Zr){Ra&&(Ra=clearTimeout(Ra));var e=t-Or;e>24?(t<1/0&&(Ra=setTimeout(Tl,t-Ca.now()-di)),Oa&&(Oa=clearInterval(Oa))):(Oa||(fi=Ca.now(),Oa=setInterval(mh,ml)),Zr=1,yl(Tl))}}function $l(t,e,n){var a=new hi;return e=e==null?0:+e,a.restart(i=>{a.stop(),t(i+e)},e,n),a}var xh=ni("start","end","cancel","interrupt"),Th=[],Sl=0,Al=1,ps=2,gi=3,bl=4,ms=5,vi=6;function pi(t,e,n,a,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;$h(t,n,{name:e,index:a,group:i,on:xh,tween:Th,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Sl})}function ys(t,e){var n=Hn(t,e);if(n.state>Sl)throw new Error("too late; already scheduled");return n}function kn(t,e){var n=Hn(t,e);if(n.state>gi)throw new Error("too late; already running");return n}function Hn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function $h(t,e,n){var a=t.__transition,i;a[e]=n,n.timer=xl(s,0,n.time);function s(u){n.state=Al,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var g,v,m,S;if(n.state!==Al)return c();for(g in a)if(S=a[g],S.name===n.name){if(S.state===gi)return $l(o);S.state===bl?(S.state=vi,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete a[g]):+gps&&a.state180?g+=360:g-u>180&&(u+=360),m.push({i:v.push(i(v)+"rotate(",null,a)-2,x:Yn(u,g)})):g&&v.push(i(v)+"rotate("+g+a)}function l(u,g,v,m){u!==g?m.push({i:v.push(i(v)+"skewX(",null,a)-2,x:Yn(u,g)}):g&&v.push(i(v)+"skewX("+g+a)}function c(u,g,v,m,S,I){if(u!==v||g!==m){var N=S.push(i(S)+"scale(",null,",",null,")");I.push({i:N-4,x:Yn(u,v)},{i:N-2,x:Yn(g,m)})}else(v!==1||m!==1)&&S.push(i(S)+"scale("+v+","+m+")")}return function(u,g){var v=[],m=[];return u=t(u),g=t(g),s(u.translateX,u.translateY,g.translateX,g.translateY,v,m),o(u.rotate,g.rotate,v,m),l(u.skewX,g.skewX,v,m),c(u.scaleX,u.scaleY,g.scaleX,g.scaleY,v,m),u=g=null,function(S){for(var I=-1,N=m.length,M;++I=0&&(e=e.slice(0,n)),!e||e==="start"})}function eg(t,e,n){var a,i,s=tg(e)?ys:kn;return function(){var o=s(this,t),l=o.on;l!==a&&(i=(a=l).copy()).on(e,n),o.on=i}}function ng(t,e){var n=this._id;return arguments.length<2?Hn(this.node(),n).on.on(t):this.each(eg(n,t,e))}function rg(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ag(){return this.on("end.remove",rg(this._id))}function ig(t){var e=this._name,n=this._id;typeof t!="function"&&(t=p(t));for(var a=this._groups,i=a.length,s=new Array(i),o=0;o()=>t;function Pg(t,{sourceEvent:e,target:n,selection:a,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:a,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function wg(t){t.stopImmediatePropagation()}function Ss(t){t.preventDefault(),t.stopImmediatePropagation()}var Ml={name:"drag"},As={name:"space"},Jr={name:"handle"},Qr={name:"center"};const{abs:Ll,max:mn,min:yn}=Math;function Dl(t){return[+t[0],+t[1]]}function bs(t){return[Dl(t[0]),Dl(t[1])]}var yi={name:"x",handles:["w","e"].map(Pa),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},xi={name:"y",handles:["n","s"].map(Pa),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Mg={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Pa),input:function(t){return t==null?null:bs(t)},output:function(t){return t}},or={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Nl={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Fl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Lg={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Dg={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Pa(t){return{type:t}}function Ng(t){return!t.ctrlKey&&!t.button}function Fg(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Bg(){return navigator.maxTouchPoints||"ontouchstart"in this}function Es(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ug(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Bl(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function zg(){return Rs(yi)}function jg(){return Rs(xi)}function K0(){return Rs(Mg)}function Rs(t){var e=Fg,n=Ng,a=Bg,i=!0,s=ni("start","brush","end"),o=6,l;function c(M){var P=M.property("__brush",N).selectAll(".overlay").data([Pa("overlay")]);P.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",or.overlay).merge(P).each(function(){var W=Es(this).extent;st(this).attr("x",W[0][0]).attr("y",W[0][1]).attr("width",W[1][0]-W[0][0]).attr("height",W[1][1]-W[0][1])}),M.selectAll(".selection").data([Pa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",or.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var G=M.selectAll(".handle").data(t.handles,function(W){return W.type});G.exit().remove(),G.enter().append("rect").attr("class",function(W){return"handle handle--"+W.type}).attr("cursor",function(W){return or[W.type]}),M.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",m).filter(a).on("touchstart.brush",m).on("touchmove.brush",S).on("touchend.brush touchcancel.brush",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}c.move=function(M,P,G){M.tween?M.on("start.brush",function(W){g(this,arguments).beforestart().start(W)}).on("interrupt.brush end.brush",function(W){g(this,arguments).end(W)}).tween("brush",function(){var W=this,V=W.__brush,k=g(W,arguments),H=V.selection,at=t.input(typeof P=="function"?P.apply(this,arguments):P,V.extent),gt=Kr(H,at);function $t(St){V.selection=St===1&&at===null?null:gt(St),u.call(W),k.brush()}return H!==null&&at!==null?$t:$t(1)}):M.each(function(){var W=this,V=arguments,k=W.__brush,H=t.input(typeof P=="function"?P.apply(W,V):P,k.extent),at=g(W,V).beforestart();kr(W),k.selection=H===null?null:H,u.call(W),at.start(G).brush(G).end(G)})},c.clear=function(M,P){c.move(M,null,P)};function u(){var M=st(this),P=Es(this).selection;P?(M.selectAll(".selection").style("display",null).attr("x",P[0][0]).attr("y",P[0][1]).attr("width",P[1][0]-P[0][0]).attr("height",P[1][1]-P[0][1]),M.selectAll(".handle").style("display",null).attr("x",function(G){return G.type[G.type.length-1]==="e"?P[1][0]-o/2:P[0][0]-o/2}).attr("y",function(G){return G.type[0]==="s"?P[1][1]-o/2:P[0][1]-o/2}).attr("width",function(G){return G.type==="n"||G.type==="s"?P[1][0]-P[0][0]+o:o}).attr("height",function(G){return G.type==="e"||G.type==="w"?P[1][1]-P[0][1]+o:o})):M.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function g(M,P,G){var W=M.__brush.emitter;return W&&(!G||!W.clean)?W:new v(M,P,G)}function v(M,P,G){this.that=M,this.args=P,this.state=M.__brush,this.active=0,this.clean=G}v.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(M,P){return this.starting?(this.starting=!1,this.emit("start",M,P)):this.emit("brush",M),this},brush:function(M,P){return this.emit("brush",M,P),this},end:function(M,P){return--this.active===0&&(delete this.state.emitter,this.emit("end",M,P)),this},emit:function(M,P,G){var W=st(this.that).datum();s.call(M,this.that,new Pg(M,{sourceEvent:P,target:c,selection:t.output(this.state.selection),mode:G,dispatch:s}),W)}};function m(M){if(l&&!M.touches||!n.apply(this,arguments))return;var P=this,G=M.target.__data__.type,W=(i&&M.metaKey?G="overlay":G)==="selection"?Ml:i&&M.altKey?Qr:Jr,V=t===xi?null:Lg[G],k=t===yi?null:Dg[G],H=Es(P),at=H.extent,gt=H.selection,$t=at[0][0],St,Tt,Gt=at[0][1],mt,J,Ct=at[1][0],ht,It,Yt=at[1][1],Vt,Zt,Wt=0,ne=0,je,Oe=V&&k&&i&&M.shiftKey,Ge,cn,Le=Array.from(M.touches||[M],he=>{const an=he.identifier;return he=Un(he,P),he.point0=he.slice(),he.identifier=an,he});kr(P);var ln=g(P,arguments,!0).beforestart();if(G==="overlay"){gt&&(je=!0);const he=[Le[0],Le[1]||Le[0]];H.selection=gt=[[St=t===xi?$t:yn(he[0][0],he[1][0]),mt=t===yi?Gt:yn(he[0][1],he[1][1])],[ht=t===xi?Ct:mn(he[0][0],he[1][0]),Vt=t===yi?Yt:mn(he[0][1],he[1][1])]],Le.length>1&&rn(M)}else St=gt[0][0],mt=gt[0][1],ht=gt[1][0],Vt=gt[1][1];Tt=St,J=mt,It=ht,Zt=Vt;var Ht=st(P).attr("pointer-events","none"),pe=Ht.selectAll(".overlay").attr("cursor",or[G]);if(M.touches)ln.moved=Dt,ln.ended=Ue;else{var be=st(M.view).on("mousemove.brush",Dt,!0).on("mouseup.brush",Ue,!0);i&&be.on("keydown.brush",bn,!0).on("keyup.brush",En,!0),ls(M.view)}u.call(P),ln.start(M,W.name);function Dt(he){for(const an of he.changedTouches||[he])for(const Ga of Le)Ga.identifier===an.identifier&&(Ga.cur=Un(an,P));if(Oe&&!Ge&&!cn&&Le.length===1){const an=Le[0];Ll(an.cur[0]-an[0])>Ll(an.cur[1]-an[1])?cn=!0:Ge=!0}for(const an of Le)an.cur&&(an[0]=an.cur[0],an[1]=an.cur[1]);je=!0,Ss(he),rn(he)}function rn(he){const an=Le[0],Ga=an.point0;var Tr;switch(Wt=an[0]-Ga[0],ne=an[1]-Ga[1],W){case As:case Ml:{V&&(Wt=mn($t-St,yn(Ct-ht,Wt)),Tt=St+Wt,It=ht+Wt),k&&(ne=mn(Gt-mt,yn(Yt-Vt,ne)),J=mt+ne,Zt=Vt+ne);break}case Jr:{Le[1]?(V&&(Tt=mn($t,yn(Ct,Le[0][0])),It=mn($t,yn(Ct,Le[1][0])),V=1),k&&(J=mn(Gt,yn(Yt,Le[0][1])),Zt=mn(Gt,yn(Yt,Le[1][1])),k=1)):(V<0?(Wt=mn($t-St,yn(Ct-St,Wt)),Tt=St+Wt,It=ht):V>0&&(Wt=mn($t-ht,yn(Ct-ht,Wt)),Tt=St,It=ht+Wt),k<0?(ne=mn(Gt-mt,yn(Yt-mt,ne)),J=mt+ne,Zt=Vt):k>0&&(ne=mn(Gt-Vt,yn(Yt-Vt,ne)),J=mt,Zt=Vt+ne));break}case Qr:{V&&(Tt=mn($t,yn(Ct,St-Wt*V)),It=mn($t,yn(Ct,ht+Wt*V))),k&&(J=mn(Gt,yn(Yt,mt-ne*k)),Zt=mn(Gt,yn(Yt,Vt+ne*k)));break}}It0&&(St=Tt-Wt),k<0?Vt=Zt-ne:k>0&&(mt=J-ne),W=As,pe.attr("cursor",or.selection),rn(he));break}default:return}Ss(he)}function En(he){switch(he.keyCode){case 16:{Oe&&(Ge=cn=Oe=!1,rn(he));break}case 18:{W===Qr&&(V<0?ht=It:V>0&&(St=Tt),k<0?Vt=Zt:k>0&&(mt=J),W=Jr,rn(he));break}case 32:{W===As&&(he.altKey?(V&&(ht=It-Wt*V,St=Tt+Wt*V),k&&(Vt=Zt-ne*k,mt=J+ne*k),W=Qr):(V<0?ht=It:V>0&&(St=Tt),k<0?Vt=Zt:k>0&&(mt=J),W=Jr),pe.attr("cursor",or[G]),rn(he));break}default:return}Ss(he)}}function S(M){g(this,arguments).moved(M)}function I(M){g(this,arguments).ended(M)}function N(){var M=this.__brush||{selection:null};return M.extent=bs(e.apply(this,arguments)),M.dim=t,M}return c.extent=function(M){return arguments.length?(e=typeof M=="function"?M:$s(bs(M)),c):e},c.filter=function(M){return arguments.length?(n=typeof M=="function"?M:$s(!!M),c):n},c.touchable=function(M){return arguments.length?(a=typeof M=="function"?M:$s(!!M),c):a},c.handleSize=function(M){return arguments.length?(o=+M,c):o},c.keyModifiers=function(M){return arguments.length?(i=!!M,c):i},c.on=function(){var M=s.on.apply(s,arguments);return M===s?c:M},c}function Gg(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Vg(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",a=s=>setTimeout(s,1),i=s=>clearTimeout(s);return[e?t.requestAnimationFrame:a,e?t.cancelAnimationFrame:i,n?t.requestIdleCallback:a,n?t.cancelIdleCallback:i]}const Ke=Gg(),fn=Ke==null?void 0:Ke.document,[Xg,Z0,Ul,k0]=Vg(Ke);var Yg=Object.defineProperty,zl=Object.getOwnPropertySymbols,Hg=Object.prototype.hasOwnProperty,Wg=Object.prototype.propertyIsEnumerable,jl=(t,e,n)=>e in t?Yg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gl=(t,e)=>{for(var n in e||(e={}))Hg.call(e,n)&&jl(t,n,e[n]);if(zl)for(var n of zl(e))Wg.call(e,n)&&jl(t,n,e[n]);return t};const Ie=t=>t||t===0,de=t=>typeof t=="function",ze=t=>typeof t=="string",fe=t=>typeof t=="number",en=t=>typeof t=="undefined",Xe=t=>typeof t!="undefined",Os=t=>typeof t=="boolean",Kg=t=>Math.ceil(t/10)*10,Ti=t=>Math.ceil(t)+.5,Ir=t=>t[1]-t[0],Jn=t=>typeof t=="object",Wn=t=>en(t)||t===null||ze(t)&&t.length===0||Jn(t)&&!(t instanceof Date)&&Object.keys(t).length===0||fe(t)&&isNaN(t),nn=t=>!Wn(t),Fe=t=>Array.isArray(t),De=t=>t&&!(t!=null&&t.nodeType)&&Jn(t)&&!Fe(t);function pr(t,e,n){return Xe(t[e])?t[e]:n}function Zg(t,e){let n=!1;return Object.keys(t).forEach(a=>t[a]===e&&(n=!0)),n}function Ze(t,e,...n){const a=de(t);return a&&t.call(e,...n),a}function $i(t,e){let n=0;const a=function(...i){!--n&&e.apply(this,...i)};"duration"in t?t.each(()=>++n).on("end",a):(++n,t.call(a))}function Is(t){return ze(t)?t.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):t}function wa(t,e,n=[-1,1],a=!1){if(!(!t||!ze(e)))if(e.indexOf(` + */(function(Va,Nn){if(typeof exports=="object"&&typeof module=="object")module.exports=Nn();else if(typeof define=="function"&&define.amd)define([],Nn);else{var Xa=Nn();for(var x in Xa)(typeof exports=="object"?exports:Va)[x]=Xa[x]}})(this,function(){return function(){"use strict";var Oo=[function(x,E,r){r(1),r(97),r(98),r(99),r(100),r(101),r(102),r(103),r(104),r(105),r(106),r(107),r(108),r(109),r(110),r(111),r(124),r(126),r(136),r(137),r(139),r(143),r(146),r(148),r(150),r(151),r(152),r(153),r(155),r(156),r(158),r(159),r(161),r(165),r(166),r(167),r(168),r(173),r(174),r(176),r(177),r(178),r(180),r(183),r(184),r(185),r(186),r(187),r(192),r(194),r(195),r(197),r(200),r(201),r(202),r(203),r(204),r(206),r(216),r(218),r(221),r(223),r(226),r(233),r(234),r(235),r(236),r(237),r(238),r(242),r(243),r(245),r(246),r(247),r(249),r(250),r(251),r(93),r(252),r(253),r(261),r(263),r(265),r(266),r(267),r(268),r(269),r(271),r(272),r(273),r(274),r(275),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(288),r(289),r(291),r(293),r(294),r(295),r(296),r(297),r(299),r(301),r(302),r(303),r(304),r(306),r(307),r(309),r(310),r(311),r(312),r(314),r(315),r(316),r(317),r(318),r(319),r(320),r(321),r(322),r(324),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(336),r(337),r(338),r(339),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(371),r(372),r(373),r(374),r(375),r(376),r(377),r(378),r(379),r(380),r(387),r(388),r(390),r(391),r(392),r(393),r(394),r(396),r(407),r(409),r(411),r(413),r(415),r(417),r(419),r(420),r(422),r(425),r(426),r(427),r(428),r(429),r(433),r(434),r(436),r(437),r(438),r(439),r(441),r(442),r(443),r(444),r(445),r(446),r(447),r(449),r(452),r(455),r(458),r(459),r(460),r(461),r(462),r(463),r(464),r(465),r(466),r(467),r(468),r(469),r(470),r(479),r(480),r(481),r(482),r(483),r(484),r(485),r(486),r(487),r(488),r(489),r(490),r(491),r(494),r(495),r(496),r(497),r(498),r(499),r(500),r(501),r(502),r(503),r(504),r(505),r(506),r(507),r(508),r(509),r(510),r(511),r(512),r(513),r(514),r(515),r(516),r(517),r(518),r(519),r(520),r(521),r(524),r(526),r(528),r(529),r(532),r(533),r(535),r(536),r(537),r(542),r(543),r(544),r(545),r(548),r(553),r(554),r(555),r(556),r(557),r(558),r(559),r(80)},function(x,E,r){r(2),r(90),r(92),r(93),r(96)},function(x,E,r){var f=r(3),d=r(4),h=r(8),p=r(14),y=r(36),T=r(6),$=r(26),A=r(7),b=r(38),R=r(24),O=r(46),C=r(12),w=r(18),D=r(68),L=r(11),F=r(71),j=r(73),U=r(57),z=r(75),X=r(66),B=r(5),V=r(44),W=r(72),J=r(10),Z=r(47),Q=r(77),nt=r(34),rt=r(53),q=r(54),tt=r(40),et=r(33),lt=r(78),yt=r(79),dt=r(81),bt=r(82),Tt=r(51),Bt=r(83).forEach,Lt=rt("hidden"),Xt="Symbol",Zt="prototype",Jt=Tt.set,ge=Tt.getterFor(Xt),ce=Object[Zt],ne=d.Symbol,Mt=ne&&ne[Zt],Vt=d.RangeError,te=d.TypeError,ie=d.QObject,re=B.f,le=V.f,Re=z.f,Ce=J.f,xe=p([].push),oe=nt("symbols"),Ae=nt("op-symbols"),me=nt("wks"),ue=!ie||!ie[Zt]||!ie[Zt].findChild,Ot=function(Ct,Pt,ot){var mt=re(ce,Pt);mt&&delete ce[Pt],le(Ct,Pt,ot),mt&&Ct!==ce&&le(ce,Pt,mt)},Ut=T&&A(function(){return F(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!==7})?Ot:le,St=function(Ct,Pt){var ot=oe[Ct]=F(Mt);return Jt(ot,{type:Xt,tag:Ct,description:Pt}),T||(ot.description=Pt),ot},kt=function(Pt,ot,mt){Pt===ce&&kt(Ae,ot,mt),O(Pt);var ct=w(ot);return O(mt),b(oe,ct)?(mt.enumerable?(b(Pt,Lt)&&Pt[Lt][ct]&&(Pt[Lt][ct]=!1),mt=F(mt,{enumerable:L(0,!1)})):(b(Pt,Lt)||le(Pt,Lt,L(1,F(null))),Pt[Lt][ct]=!0),Ut(Pt,ct,mt)):le(Pt,ct,mt)},Qt=function(Pt,ot){O(Pt);var mt=C(ot),ct=j(mt).concat(ht(mt));return Bt(ct,function(Nt){(!T||h(Gt,mt,Nt))&&kt(Pt,Nt,mt[Nt])}),Pt},Yt=function(Pt,ot){return ot===void 0?F(Pt):Qt(F(Pt),ot)},Gt=function(Pt){var ot=w(Pt),mt=h(Ce,this,ot);return this===ce&&b(oe,ot)&&!b(Ae,ot)?!1:mt||!b(this,ot)||!b(oe,ot)||b(this,Lt)&&this[Lt][ot]?mt:!0},we=function(Pt,ot){var mt=C(Pt),ct=w(ot);if(!(mt===ce&&b(oe,ct)&&!b(Ae,ct))){var Nt=re(mt,ct);return Nt&&b(oe,ct)&&!(b(mt,Lt)&&mt[Lt][ct])&&(Nt.enumerable=!0),Nt}},Ye=function(Pt){var ot=Re(C(Pt)),mt=[];return Bt(ot,function(ct){!b(oe,ct)&&!b(q,ct)&&xe(mt,ct)}),mt},ht=function(Ct){var Pt=Ct===ce,ot=Re(Pt?Ae:C(Ct)),mt=[];return Bt(ot,function(ct){b(oe,ct)&&(!Pt||b(ce,ct))&&xe(mt,oe[ct])}),mt};$||(ne=function(){if(R(Mt,this))throw new te("Symbol is not a constructor");var Pt=!arguments.length||arguments[0]===void 0?void 0:D(arguments[0]),ot=tt(Pt),mt=function(ct){var Nt=this===void 0?d:this;Nt===ce&&h(mt,Ae,ct),b(Nt,Lt)&&b(Nt[Lt],ot)&&(Nt[Lt][ot]=!1);var qt=L(1,ct);try{Ut(Nt,ot,qt)}catch(se){if(!(se instanceof Vt))throw se;Ot(Nt,ot,qt)}};return T&&ue&&Ut(ce,ot,{configurable:!0,set:mt}),St(ot,Pt)},Mt=ne[Zt],Z(Mt,"toString",function(){return ge(this).tag}),Z(ne,"withoutSetter",function(Ct){return St(tt(Ct),Ct)}),J.f=Gt,V.f=kt,W.f=Qt,B.f=we,U.f=z.f=Ye,X.f=ht,lt.f=function(Ct){return St(et(Ct),Ct)},T&&(Q(Mt,"description",{configurable:!0,get:function(){return ge(this).description}}),y||Z(ce,"propertyIsEnumerable",Gt,{unsafe:!0}))),f({global:!0,constructor:!0,wrap:!0,forced:!$,sham:!$},{Symbol:ne}),Bt(j(me),function(Ct){yt(Ct)}),f({target:Xt,stat:!0,forced:!$},{useSetter:function(){ue=!0},useSimple:function(){ue=!1}}),f({target:"Object",stat:!0,forced:!$,sham:!T},{create:Yt,defineProperty:kt,defineProperties:Qt,getOwnPropertyDescriptor:we}),f({target:"Object",stat:!0,forced:!$},{getOwnPropertyNames:Ye}),dt(),bt(ne,Xt),q[Lt]=!0},function(x,E,r){var f=r(4),d=r(5).f,h=r(43),p=r(47),y=r(37),T=r(55),$=r(67);x.exports=function(A,b){var R=A.target,O=A.global,C=A.stat,w,D,L,F,j,U;if(O?D=f:C?D=f[R]||y(R,{}):D=f[R]&&f[R].prototype,D)for(L in b){if(j=b[L],A.dontCallGetSet?(U=d(D,L),F=U&&U.value):F=D[L],w=$(O?L:R+(C?".":"#")+L,A.forced),!w&&F!==void 0){if(typeof j==typeof F)continue;T(j,F)}(A.sham||F&&F.sham)&&h(j,"sham",!0),p(D,L,j,A)}}},function(x){var E=function(r){return r&&r.Math===Math&&r};x.exports=E(typeof globalThis=="object"&&globalThis)||E(typeof window=="object"&&window)||E(typeof self=="object"&&self)||E(typeof global=="object"&&global)||E(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},function(x,E,r){var f=r(6),d=r(8),h=r(10),p=r(11),y=r(12),T=r(18),$=r(38),A=r(41),b=Object.getOwnPropertyDescriptor;E.f=f?b:function(O,C){if(O=y(O),C=T(C),A)try{return b(O,C)}catch(w){}if($(O,C))return p(!d(h.f,O,C),O[C])}},function(x,E,r){var f=r(7);x.exports=!f(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},function(x){x.exports=function(E){try{return!!E()}catch(r){return!0}}},function(x,E,r){var f=r(9),d=Function.prototype.call;x.exports=f?d.bind(d):function(){return d.apply(d,arguments)}},function(x,E,r){var f=r(7);x.exports=!f(function(){var d=function(){}.bind();return typeof d!="function"||d.hasOwnProperty("prototype")})},function(x,E){var r={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,d=f&&!r.call({1:2},1);E.f=d?function(p){var y=f(this,p);return!!y&&y.enumerable}:r},function(x){x.exports=function(E,r){return{enumerable:!(E&1),configurable:!(E&2),writable:!(E&4),value:r}}},function(x,E,r){var f=r(13),d=r(16);x.exports=function(h){return f(d(h))}},function(x,E,r){var f=r(14),d=r(7),h=r(15),p=Object,y=f("".split);x.exports=d(function(){return!p("z").propertyIsEnumerable(0)})?function(T){return h(T)==="String"?y(T,""):p(T)}:p},function(x,E,r){var f=r(9),d=Function.prototype,h=d.call,p=f&&d.bind.bind(h,h);x.exports=f?p:function(y){return function(){return h.apply(y,arguments)}}},function(x,E,r){var f=r(14),d=f({}.toString),h=f("".slice);x.exports=function(p){return h(d(p),8,-1)}},function(x,E,r){var f=r(17),d=TypeError;x.exports=function(h){if(f(h))throw new d("Can't call method on "+h);return h}},function(x){x.exports=function(E){return E==null}},function(x,E,r){var f=r(19),d=r(22);x.exports=function(h){var p=f(h,"string");return d(p)?p:p+""}},function(x,E,r){var f=r(8),d=r(20),h=r(22),p=r(29),y=r(32),T=r(33),$=TypeError,A=T("toPrimitive");x.exports=function(b,R){if(!d(b)||h(b))return b;var O=p(b,A),C;if(O){if(R===void 0&&(R="default"),C=f(O,b,R),!d(C)||h(C))return C;throw new $("Can't convert object to primitive value")}return R===void 0&&(R="number"),y(b,R)}},function(x,E,r){var f=r(21);x.exports=function(d){return typeof d=="object"?d!==null:f(d)}},function(x){var E=typeof document=="object"&&document.all;x.exports=typeof E=="undefined"&&E!==void 0?function(r){return typeof r=="function"||r===E}:function(r){return typeof r=="function"}},function(x,E,r){var f=r(23),d=r(21),h=r(24),p=r(25),y=Object;x.exports=p?function(T){return typeof T=="symbol"}:function(T){var $=f("Symbol");return d($)&&h($.prototype,y(T))}},function(x,E,r){var f=r(4),d=r(21),h=function(p){return d(p)?p:void 0};x.exports=function(p,y){return arguments.length<2?h(f[p]):f[p]&&f[p][y]}},function(x,E,r){var f=r(14);x.exports=f({}.isPrototypeOf)},function(x,E,r){var f=r(26);x.exports=f&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(x,E,r){var f=r(27),d=r(7),h=r(4),p=h.String;x.exports=!!Object.getOwnPropertySymbols&&!d(function(){var y=Symbol("symbol detection");return!p(y)||!(Object(y)instanceof Symbol)||!Symbol.sham&&f&&f<41})},function(x,E,r){var f=r(4),d=r(28),h=f.process,p=f.Deno,y=h&&h.versions||p&&p.version,T=y&&y.v8,$,A;T&&($=T.split("."),A=$[0]>0&&$[0]<4?1:+($[0]+$[1])),!A&&d&&($=d.match(/Edge\/(\d+)/),(!$||$[1]>=74)&&($=d.match(/Chrome\/(\d+)/),$&&(A=+$[1]))),x.exports=A},function(x){x.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},function(x,E,r){var f=r(30),d=r(17);x.exports=function(h,p){var y=h[p];return d(y)?void 0:f(y)}},function(x,E,r){var f=r(21),d=r(31),h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not a function")}},function(x){var E=String;x.exports=function(r){try{return E(r)}catch(f){return"Object"}}},function(x,E,r){var f=r(8),d=r(21),h=r(20),p=TypeError;x.exports=function(y,T){var $,A;if(T==="string"&&d($=y.toString)&&!h(A=f($,y))||d($=y.valueOf)&&!h(A=f($,y))||T!=="string"&&d($=y.toString)&&!h(A=f($,y)))return A;throw new p("Can't convert object to primitive value")}},function(x,E,r){var f=r(4),d=r(34),h=r(38),p=r(40),y=r(26),T=r(25),$=f.Symbol,A=d("wks"),b=T?$.for||$:$&&$.withoutSetter||p;x.exports=function(R){return h(A,R)||(A[R]=y&&h($,R)?$[R]:b("Symbol."+R)),A[R]}},function(x,E,r){var f=r(35);x.exports=function(d,h){return f[d]||(f[d]=h||{})}},function(x,E,r){var f=r(36),d=r(4),h=r(37),p="__core-js_shared__",y=x.exports=d[p]||h(p,{});(y.versions||(y.versions=[])).push({version:"3.37.1",mode:f?"pure":"global",copyright:"\xA9 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(x){x.exports=!1},function(x,E,r){var f=r(4),d=Object.defineProperty;x.exports=function(h,p){try{d(f,h,{value:p,configurable:!0,writable:!0})}catch(y){f[h]=p}return p}},function(x,E,r){var f=r(14),d=r(39),h=f({}.hasOwnProperty);x.exports=Object.hasOwn||function(y,T){return h(d(y),T)}},function(x,E,r){var f=r(16),d=Object;x.exports=function(h){return d(f(h))}},function(x,E,r){var f=r(14),d=0,h=Math.random(),p=f(1 .toString);x.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+p(++d+h,36)}},function(x,E,r){var f=r(6),d=r(7),h=r(42);x.exports=!f&&!d(function(){return Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a!==7})},function(x,E,r){var f=r(4),d=r(20),h=f.document,p=d(h)&&d(h.createElement);x.exports=function(y){return p?h.createElement(y):{}}},function(x,E,r){var f=r(6),d=r(44),h=r(11);x.exports=f?function(p,y,T){return d.f(p,y,h(1,T))}:function(p,y,T){return p[y]=T,p}},function(x,E,r){var f=r(6),d=r(41),h=r(45),p=r(46),y=r(18),T=TypeError,$=Object.defineProperty,A=Object.getOwnPropertyDescriptor,b="enumerable",R="configurable",O="writable";E.f=f?h?function(w,D,L){if(p(w),D=y(D),p(L),typeof w=="function"&&D==="prototype"&&"value"in L&&O in L&&!L[O]){var F=A(w,D);F&&F[O]&&(w[D]=L.value,L={configurable:R in L?L[R]:F[R],enumerable:b in L?L[b]:F[b],writable:!1})}return $(w,D,L)}:$:function(w,D,L){if(p(w),D=y(D),p(L),d)try{return $(w,D,L)}catch(F){}if("get"in L||"set"in L)throw new T("Accessors not supported");return"value"in L&&(w[D]=L.value),w}},function(x,E,r){var f=r(6),d=r(7);x.exports=f&&d(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},function(x,E,r){var f=r(20),d=String,h=TypeError;x.exports=function(p){if(f(p))return p;throw new h(d(p)+" is not an object")}},function(x,E,r){var f=r(21),d=r(44),h=r(48),p=r(37);x.exports=function(y,T,$,A){A||(A={});var b=A.enumerable,R=A.name!==void 0?A.name:T;if(f($)&&h($,R,A),A.global)b?y[T]=$:p(T,$);else{try{A.unsafe?y[T]&&(b=!0):delete y[T]}catch(O){}b?y[T]=$:d.f(y,T,{value:$,enumerable:!1,configurable:!A.nonConfigurable,writable:!A.nonWritable})}return y}},function(x,E,r){var f=r(14),d=r(7),h=r(21),p=r(38),y=r(6),T=r(49).CONFIGURABLE,$=r(50),A=r(51),b=A.enforce,R=A.get,O=String,C=Object.defineProperty,w=f("".slice),D=f("".replace),L=f([].join),F=y&&!d(function(){return C(function(){},"length",{value:8}).length!==8}),j=String(String).split("String"),U=x.exports=function(z,X,B){w(O(X),0,7)==="Symbol("&&(X="["+D(O(X),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),B&&B.getter&&(X="get "+X),B&&B.setter&&(X="set "+X),(!p(z,"name")||T&&z.name!==X)&&(y?C(z,"name",{value:X,configurable:!0}):z.name=X),F&&B&&p(B,"arity")&&z.length!==B.arity&&C(z,"length",{value:B.arity});try{B&&p(B,"constructor")&&B.constructor?y&&C(z,"prototype",{writable:!1}):z.prototype&&(z.prototype=void 0)}catch(W){}var V=b(z);return p(V,"source")||(V.source=L(j,typeof X=="string"?X:"")),z};Function.prototype.toString=U(function(){return h(this)&&R(this).source||$(this)},"toString")},function(x,E,r){var f=r(6),d=r(38),h=Function.prototype,p=f&&Object.getOwnPropertyDescriptor,y=d(h,"name"),T=y&&function(){}.name==="something",$=y&&(!f||f&&p(h,"name").configurable);x.exports={EXISTS:y,PROPER:T,CONFIGURABLE:$}},function(x,E,r){var f=r(14),d=r(21),h=r(35),p=f(Function.toString);d(h.inspectSource)||(h.inspectSource=function(y){return p(y)}),x.exports=h.inspectSource},function(x,E,r){var f=r(52),d=r(4),h=r(20),p=r(43),y=r(38),T=r(35),$=r(53),A=r(54),b="Object already initialized",R=d.TypeError,O=d.WeakMap,C,w,D,L=function(z){return D(z)?w(z):C(z,{})},F=function(z){return function(X){var B;if(!h(X)||(B=w(X)).type!==z)throw new R("Incompatible receiver, "+z+" required");return B}};if(f||T.state){var j=T.state||(T.state=new O);j.get=j.get,j.has=j.has,j.set=j.set,C=function(z,X){if(j.has(z))throw new R(b);return X.facade=z,j.set(z,X),X},w=function(z){return j.get(z)||{}},D=function(z){return j.has(z)}}else{var U=$("state");A[U]=!0,C=function(z,X){if(y(z,U))throw new R(b);return X.facade=z,p(z,U,X),X},w=function(z){return y(z,U)?z[U]:{}},D=function(z){return y(z,U)}}x.exports={set:C,get:w,has:D,enforce:L,getterFor:F}},function(x,E,r){var f=r(4),d=r(21),h=f.WeakMap;x.exports=d(h)&&/native code/.test(String(h))},function(x,E,r){var f=r(34),d=r(40),h=f("keys");x.exports=function(p){return h[p]||(h[p]=d(p))}},function(x){x.exports={}},function(x,E,r){var f=r(38),d=r(56),h=r(5),p=r(44);x.exports=function(y,T,$){for(var A=d(T),b=p.f,R=h.f,O=0;OR;)d(b,C=A[R++])&&(~p(O,C)||T(O,C));return O}},function(x,E,r){var f=r(12),d=r(60),h=r(63),p=function(y){return function(T,$,A){var b=f(T),R=h(b);if(R===0)return!y&&-1;var O=d(A,R),C;if(y&&$!==$){for(;R>O;)if(C=b[O++],C!==C)return!0}else for(;R>O;O++)if((y||O in b)&&b[O]===$)return y||O||0;return!y&&-1}};x.exports={includes:p(!0),indexOf:p(!1)}},function(x,E,r){var f=r(61),d=Math.max,h=Math.min;x.exports=function(p,y){var T=f(p);return T<0?d(T+y,0):h(T,y)}},function(x,E,r){var f=r(62);x.exports=function(d){var h=+d;return h!==h||h===0?0:f(h)}},function(x){var E=Math.ceil,r=Math.floor;x.exports=Math.trunc||function(d){var h=+d;return(h>0?r:E)(h)}},function(x,E,r){var f=r(64);x.exports=function(d){return f(d.length)}},function(x,E,r){var f=r(61),d=Math.min;x.exports=function(h){var p=f(h);return p>0?d(p,9007199254740991):0}},function(x){x.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(x,E){E.f=Object.getOwnPropertySymbols},function(x,E,r){var f=r(7),d=r(21),h=/#|\.prototype\./,p=function(b,R){var O=T[y(b)];return O===A?!0:O===$?!1:d(R)?f(R):!!R},y=p.normalize=function(b){return String(b).replace(h,".").toLowerCase()},T=p.data={},$=p.NATIVE="N",A=p.POLYFILL="P";x.exports=p},function(x,E,r){var f=r(69),d=String;x.exports=function(h){if(f(h)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return d(h)}},function(x,E,r){var f=r(70),d=r(21),h=r(15),p=r(33),y=p("toStringTag"),T=Object,$=h(function(){return arguments}())==="Arguments",A=function(b,R){try{return b[R]}catch(O){}};x.exports=f?h:function(b){var R,O,C;return b===void 0?"Undefined":b===null?"Null":typeof(O=A(R=T(b),y))=="string"?O:$?h(R):(C=h(R))==="Object"&&d(R.callee)?"Arguments":C}},function(x,E,r){var f=r(33),d=f("toStringTag"),h={};h[d]="z",x.exports=String(h)==="[object z]"},function(x,E,r){var f=r(46),d=r(72),h=r(65),p=r(54),y=r(74),T=r(42),$=r(53),A=">",b="<",R="prototype",O="script",C=$("IE_PROTO"),w=function(){},D=function(z){return b+O+A+z+b+"/"+O+A},L=function(z){z.write(D("")),z.close();var X=z.parentWindow.Object;return z=null,X},F=function(){var z=T("iframe"),X="java"+O+":",B;return z.style.display="none",y.appendChild(z),z.src=String(X),B=z.contentWindow.document,B.open(),B.write(D("document.F=Object")),B.close(),B.F},j,U=function(){try{j=new ActiveXObject("htmlfile")}catch(X){}U=typeof document!="undefined"?document.domain&&j?L(j):F():L(j);for(var z=h.length;z--;)delete U[R][h[z]];return U()};p[C]=!0,x.exports=Object.create||function(X,B){var V;return X!==null?(w[R]=f(X),V=new w,w[R]=null,V[C]=X):V=U(),B===void 0?V:d.f(V,B)}},function(x,E,r){var f=r(6),d=r(45),h=r(44),p=r(46),y=r(12),T=r(73);E.f=f&&!d?Object.defineProperties:function(A,b){p(A);for(var R=y(b),O=T(b),C=O.length,w=0,D;C>w;)h.f(A,D=O[w++],R[D]);return A}},function(x,E,r){var f=r(58),d=r(65);x.exports=Object.keys||function(p){return f(p,d)}},function(x,E,r){var f=r(23);x.exports=f("document","documentElement")},function(x,E,r){var f=r(15),d=r(12),h=r(57).f,p=r(76),y=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function($){try{return h($)}catch(A){return p(y)}};x.exports.f=function(A){return y&&f(A)==="Window"?T(A):h(d(A))}},function(x,E,r){var f=r(14);x.exports=f([].slice)},function(x,E,r){var f=r(48),d=r(44);x.exports=function(h,p,y){return y.get&&f(y.get,p,{getter:!0}),y.set&&f(y.set,p,{setter:!0}),d.f(h,p,y)}},function(x,E,r){var f=r(33);E.f=f},function(x,E,r){var f=r(80),d=r(38),h=r(78),p=r(44).f;x.exports=function(y){var T=f.Symbol||(f.Symbol={});d(T,y)||p(T,y,{value:h.f(y)})}},function(x,E,r){var f=r(4);x.exports=f},function(x,E,r){var f=r(8),d=r(23),h=r(33),p=r(47);x.exports=function(){var y=d("Symbol"),T=y&&y.prototype,$=T&&T.valueOf,A=h("toPrimitive");T&&!T[A]&&p(T,A,function(b){return f($,this)},{arity:1})}},function(x,E,r){var f=r(44).f,d=r(38),h=r(33),p=h("toStringTag");x.exports=function(y,T,$){y&&!$&&(y=y.prototype),y&&!d(y,p)&&f(y,p,{configurable:!0,value:T})}},function(x,E,r){var f=r(84),d=r(14),h=r(13),p=r(39),y=r(63),T=r(86),$=d([].push),A=function(b){var R=b===1,O=b===2,C=b===3,w=b===4,D=b===6,L=b===7,F=b===5||D;return function(j,U,z,X){for(var B=p(j),V=h(B),W=y(V),J=f(U,z),Z=0,Q=X||T,nt=R?Q(j,W):O||L?Q(j,0):void 0,rt,q;W>Z;Z++)if((F||Z in V)&&(rt=V[Z],q=J(rt,Z,B),b))if(R)nt[Z]=q;else if(q)switch(b){case 3:return!0;case 5:return rt;case 6:return Z;case 2:$(nt,rt)}else switch(b){case 4:return!1;case 7:$(nt,rt)}return D?-1:C||w?w:nt}};x.exports={forEach:A(0),map:A(1),filter:A(2),some:A(3),every:A(4),find:A(5),findIndex:A(6),filterReject:A(7)}},function(x,E,r){var f=r(85),d=r(30),h=r(9),p=f(f.bind);x.exports=function(y,T){return d(y),T===void 0?y:h?p(y,T):function(){return y.apply(T,arguments)}}},function(x,E,r){var f=r(15),d=r(14);x.exports=function(h){if(f(h)==="Function")return d(h)}},function(x,E,r){var f=r(87);x.exports=function(d,h){return new(f(d))(h===0?0:h)}},function(x,E,r){var f=r(88),d=r(89),h=r(20),p=r(33),y=p("species"),T=Array;x.exports=function($){var A;return f($)&&(A=$.constructor,d(A)&&(A===T||f(A.prototype))?A=void 0:h(A)&&(A=A[y],A===null&&(A=void 0))),A===void 0?T:A}},function(x,E,r){var f=r(15);x.exports=Array.isArray||function(h){return f(h)==="Array"}},function(x,E,r){var f=r(14),d=r(7),h=r(21),p=r(69),y=r(23),T=r(50),$=function(){},A=y("Reflect","construct"),b=/^\s*(?:class|function)\b/,R=f(b.exec),O=!b.test($),C=function(L){if(!h(L))return!1;try{return A($,[],L),!0}catch(F){return!1}},w=function(L){if(!h(L))return!1;switch(p(L)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return O||!!R(b,T(L))}catch(F){return!0}};w.sham=!0,x.exports=!A||d(function(){var D;return C(C.call)||!C(Object)||!C(function(){D=!0})||D})?w:C},function(x,E,r){var f=r(3),d=r(23),h=r(38),p=r(68),y=r(34),T=r(91),$=y("string-to-symbol-registry"),A=y("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!T},{for:function(b){var R=p(b);if(h($,R))return $[R];var O=d("Symbol")(R);return $[R]=O,A[O]=R,O}})},function(x,E,r){var f=r(26);x.exports=f&&!!Symbol.for&&!!Symbol.keyFor},function(x,E,r){var f=r(3),d=r(38),h=r(22),p=r(31),y=r(34),T=r(91),$=y("symbol-to-string-registry");f({target:"Symbol",stat:!0,forced:!T},{keyFor:function(b){if(!h(b))throw new TypeError(p(b)+" is not a symbol");if(d($,b))return $[b]}})},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(8),y=r(14),T=r(7),$=r(21),A=r(22),b=r(76),R=r(95),O=r(26),C=String,w=d("JSON","stringify"),D=y(/./.exec),L=y("".charAt),F=y("".charCodeAt),j=y("".replace),U=y(1 .toString),z=/[\uD800-\uDFFF]/g,X=/^[\uD800-\uDBFF]$/,B=/^[\uDC00-\uDFFF]$/,V=!O||T(function(){var Q=d("Symbol")("stringify detection");return w([Q])!=="[null]"||w({a:Q})!=="{}"||w(Object(Q))!=="{}"}),W=T(function(){return w("\uDF06\uD834")!=='"\\udf06\\ud834"'||w("\uDEAD")!=='"\\udead"'}),J=function(Q,nt){var rt=b(arguments),q=R(nt);if(!(!$(q)&&(Q===void 0||A(Q))))return rt[1]=function(tt,et){if($(q)&&(et=p(q,this,C(tt),et)),!A(et))return et},h(w,null,rt)},Z=function(Q,nt,rt){var q=L(rt,nt-1),tt=L(rt,nt+1);return D(X,Q)&&!D(B,tt)||D(B,Q)&&!D(X,q)?"\\u"+U(F(Q,0),16):Q};w&&f({target:"JSON",stat:!0,arity:3,forced:V||W},{stringify:function(nt,rt,q){var tt=b(arguments),et=h(V?J:w,null,tt);return W&&typeof et=="string"?j(et,z,Z):et}})},function(x,E,r){var f=r(9),d=Function.prototype,h=d.apply,p=d.call;x.exports=typeof Reflect=="object"&&Reflect.apply||(f?p.bind(h):function(){return p.apply(h,arguments)})},function(x,E,r){var f=r(14),d=r(88),h=r(21),p=r(15),y=r(68),T=f([].push);x.exports=function($){if(h($))return $;if(d($)){for(var A=$.length,b=[],R=0;Rz&&R(q,arguments[z]),q});if(Z.prototype=W,B!=="Error"?y?y(Z,J):T(Z,J,{name:!0}):C&&U in V&&($(Z,V,U),$(Z,V,"prepareStackTrace")),T(Z,V),!w)try{W.name!==B&&h(W,"name",B),W.constructor=Z}catch(Q){}return Z}}},function(x,E,r){var f=r(114),d=r(20),h=r(16),p=r(115);x.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var y=!1,T={},$;try{$=f(Object.prototype,"__proto__","set"),$(T,[]),y=T instanceof Array}catch(A){}return function(b,R){return h(b),p(R),d(b)&&(y?$(b,R):b.__proto__=R),b}}():void 0)},function(x,E,r){var f=r(14),d=r(30);x.exports=function(h,p,y){try{return f(d(Object.getOwnPropertyDescriptor(h,p)[y]))}catch(T){}}},function(x,E,r){var f=r(116),d=String,h=TypeError;x.exports=function(p){if(f(p))return p;throw new h("Can't set "+d(p)+" as a prototype")}},function(x,E,r){var f=r(20);x.exports=function(d){return f(d)||d===null}},function(x,E,r){var f=r(44).f;x.exports=function(d,h,p){p in d||f(d,p,{configurable:!0,get:function(){return h[p]},set:function(y){h[p]=y}})}},function(x,E,r){var f=r(21),d=r(20),h=r(113);x.exports=function(p,y,T){var $,A;return h&&f($=y.constructor)&&$!==T&&d(A=$.prototype)&&A!==T.prototype&&h(p,A),p}},function(x,E,r){var f=r(68);x.exports=function(d,h){return d===void 0?arguments.length<2?"":h:f(d)}},function(x,E,r){var f=r(20),d=r(43);x.exports=function(h,p){f(p)&&"cause"in p&&d(h,"cause",p.cause)}},function(x,E,r){var f=r(43),d=r(122),h=r(123),p=Error.captureStackTrace;x.exports=function(y,T,$,A){h&&(p?p(y,T):f(y,"stack",d($,A)))}},function(x,E,r){var f=r(14),d=Error,h=f("".replace),p=function($){return String(new d($).stack)}("zxcasd"),y=/\n\s*at [^:]*:[^\n]*/,T=y.test(p);x.exports=function($,A){if(T&&typeof $=="string"&&!d.prepareStackTrace)for(;A--;)$=h($,y,"");return $}},function(x,E,r){var f=r(7),d=r(11);x.exports=!f(function(){var h=new Error("a");return"stack"in h?(Object.defineProperty(h,"stack",d(1,7)),h.stack!==7):!0})},function(x,E,r){var f=r(47),d=r(125),h=Error.prototype;h.toString!==d&&f(h,"toString",d)},function(x,E,r){var f=r(6),d=r(7),h=r(46),p=r(119),y=Error.prototype.toString,T=d(function(){if(f){var $=Object.create(Object.defineProperty({},"name",{get:function(){return this===$}}));if(y.call($)!=="true")return!0}return y.call({message:1,name:2})!=="2: 1"||y.call({})!=="Error"});x.exports=T?function(){var A=h(this),b=p(A.name,"Error"),R=p(A.message);return b?R?b+": "+R:b:R}:y},function(x,E,r){r(127)},function(x,E,r){var f=r(3),d=r(24),h=r(128),p=r(113),y=r(55),T=r(71),$=r(43),A=r(11),b=r(120),R=r(121),O=r(130),C=r(119),w=r(33),D=w("toStringTag"),L=Error,F=[].push,j=function(X,B){var V=d(U,this),W;p?W=p(new L,V?h(this):U):(W=V?this:T(U),$(W,D,"Error")),B!==void 0&&$(W,"message",C(B)),R(W,j,W.stack,1),arguments.length>2&&b(W,arguments[2]);var J=[];return O(X,F,{that:J}),$(W,"errors",J),W};p?p(j,L):y(j,L,{name:!0});var U=j.prototype=T(L.prototype,{constructor:A(1,j),message:A(1,""),name:A(1,"AggregateError")});f({global:!0,constructor:!0,arity:2},{AggregateError:j})},function(x,E,r){var f=r(38),d=r(21),h=r(39),p=r(53),y=r(129),T=p("IE_PROTO"),$=Object,A=$.prototype;x.exports=y?$.getPrototypeOf:function(b){var R=h(b);if(f(R,T))return R[T];var O=R.constructor;return d(O)&&R instanceof O?O.prototype:R instanceof $?A:null}},function(x,E,r){var f=r(7);x.exports=!f(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(x,E,r){var f=r(84),d=r(8),h=r(46),p=r(31),y=r(131),T=r(63),$=r(24),A=r(133),b=r(134),R=r(135),O=TypeError,C=function(D,L){this.stopped=D,this.result=L},w=C.prototype;x.exports=function(D,L,F){var j=F&&F.that,U=!!(F&&F.AS_ENTRIES),z=!!(F&&F.IS_RECORD),X=!!(F&&F.IS_ITERATOR),B=!!(F&&F.INTERRUPTED),V=f(L,j),W,J,Z,Q,nt,rt,q,tt=function(lt){return W&&R(W,"normal",lt),new C(!0,lt)},et=function(lt){return U?(h(lt),B?V(lt[0],lt[1],tt):V(lt[0],lt[1])):B?V(lt,tt):V(lt)};if(z)W=D.iterator;else if(X)W=D;else{if(J=b(D),!J)throw new O(p(D)+" is not iterable");if(y(J)){for(Z=0,Q=T(D);Q>Z;Z++)if(nt=et(D[Z]),nt&&$(w,nt))return nt;return new C(!1)}W=A(D,J)}for(rt=z?D.next:W.next;!(q=d(rt,W)).done;){try{nt=et(q.value)}catch(lt){R(W,"throw",lt)}if(typeof nt=="object"&&nt&&$(w,nt))return nt}return new C(!1)}},function(x,E,r){var f=r(33),d=r(132),h=f("iterator"),p=Array.prototype;x.exports=function(y){return y!==void 0&&(d.Array===y||p[h]===y)}},function(x){x.exports={}},function(x,E,r){var f=r(8),d=r(30),h=r(46),p=r(31),y=r(134),T=TypeError;x.exports=function($,A){var b=arguments.length<2?y($):A;if(d(b))return h(f(b,$));throw new T(p($)+" is not iterable")}},function(x,E,r){var f=r(69),d=r(29),h=r(17),p=r(132),y=r(33),T=y("iterator");x.exports=function($){if(!h($))return d($,T)||d($,"@@iterator")||p[f($)]}},function(x,E,r){var f=r(8),d=r(46),h=r(29);x.exports=function(p,y,T){var $,A;d(p);try{if($=h(p,"return"),!$){if(y==="throw")throw T;return T}$=f($,p)}catch(b){A=!0,$=b}if(y==="throw")throw T;if(A)throw $;return d($),T}},function(x,E,r){var f=r(3),d=r(23),h=r(94),p=r(7),y=r(112),T="AggregateError",$=d(T),A=!p(function(){return $([1]).errors[0]!==1})&&p(function(){return $([1],T,{cause:7}).cause!==7});f({global:!0,constructor:!0,arity:2,forced:A},{AggregateError:y(T,function(b){return function(O,C){return h(b,this,arguments)}},A,!0)})},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(61),y=r(138);f({target:"Array",proto:!0},{at:function($){var A=d(this),b=h(A),R=p($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]}}),y("at")},function(x,E,r){var f=r(33),d=r(71),h=r(44).f,p=f("unscopables"),y=Array.prototype;y[p]===void 0&&h(y,p,{configurable:!0,value:d(null)}),x.exports=function(T){y[p][T]=!0}},function(x,E,r){var f=r(3),d=r(7),h=r(88),p=r(20),y=r(39),T=r(63),$=r(140),A=r(141),b=r(86),R=r(142),O=r(33),C=r(27),w=O("isConcatSpreadable"),D=C>=51||!d(function(){var j=[];return j[w]=!1,j.concat()[0]!==j}),L=function(j){if(!p(j))return!1;var U=j[w];return U!==void 0?!!U:h(j)},F=!D||!R("concat");f({target:"Array",proto:!0,arity:1,forced:F},{concat:function(U){var z=y(this),X=b(z,0),B=0,V,W,J,Z,Q;for(V=-1,J=arguments.length;Vr)throw E("Maximum allowed index exceeded");return f}},function(x,E,r){var f=r(6),d=r(44),h=r(11);x.exports=function(p,y,T){f?d.f(p,y,h(0,T)):p[y]=T}},function(x,E,r){var f=r(7),d=r(33),h=r(27),p=d("species");x.exports=function(y){return h>=51||!f(function(){var T=[],$=T.constructor={};return $[p]=function(){return{foo:1}},T[y](Boolean).foo!==1})}},function(x,E,r){var f=r(3),d=r(144),h=r(138);f({target:"Array",proto:!0},{copyWithin:d}),h("copyWithin")},function(x,E,r){var f=r(39),d=r(60),h=r(63),p=r(145),y=Math.min;x.exports=[].copyWithin||function($,A){var b=f(this),R=h(b),O=d($,R),C=d(A,R),w=arguments.length>2?arguments[2]:void 0,D=y((w===void 0?R:d(w,R))-C,R-O),L=1;for(C0;)C in b?b[O]=b[C]:p(b,O),O+=L,C+=L;return b}},function(x,E,r){var f=r(31),d=TypeError;x.exports=function(h,p){if(!delete h[p])throw new d("Cannot delete property "+f(p)+" of "+f(h))}},function(x,E,r){var f=r(3),d=r(83).every,h=r(147),p=h("every");f({target:"Array",proto:!0,forced:!p},{every:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(7);x.exports=function(d,h){var p=[][d];return!!p&&f(function(){p.call(null,h||function(){return 1},1)})}},function(x,E,r){var f=r(3),d=r(149),h=r(138);f({target:"Array",proto:!0},{fill:d}),h("fill")},function(x,E,r){var f=r(39),d=r(60),h=r(63);x.exports=function(y){for(var T=f(this),$=h(T),A=arguments.length,b=d(A>1?arguments[1]:void 0,$),R=A>2?arguments[2]:void 0,O=R===void 0?$:d(R,$);O>b;)T[b++]=y;return T}},function(x,E,r){var f=r(3),d=r(83).filter,h=r(142),p=h("filter");f({target:"Array",proto:!0,forced:!p},{filter:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(83).find,h=r(138),p="find",y=!0;p in[]&&Array(1)[p](function(){y=!1}),f({target:"Array",proto:!0,forced:y},{find:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var f=r(3),d=r(83).findIndex,h=r(138),p="findIndex",y=!0;p in[]&&Array(1)[p](function(){y=!1}),f({target:"Array",proto:!0,forced:y},{findIndex:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),h(p)},function(x,E,r){var f=r(3),d=r(154).findLast,h=r(138);f({target:"Array",proto:!0},{findLast:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLast")},function(x,E,r){var f=r(84),d=r(13),h=r(39),p=r(63),y=function(T){var $=T===1;return function(A,b,R){for(var O=h(A),C=d(O),w=p(C),D=f(b,R),L,F;w-- >0;)if(L=C[w],F=D(L,w,O),F)switch(T){case 0:return L;case 1:return w}return $?-1:void 0}};x.exports={findLast:y(0),findLastIndex:y(1)}},function(x,E,r){var f=r(3),d=r(154).findLastIndex,h=r(138);f({target:"Array",proto:!0},{findLastIndex:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),h("findLastIndex")},function(x,E,r){var f=r(3),d=r(157),h=r(39),p=r(63),y=r(61),T=r(86);f({target:"Array",proto:!0},{flat:function(){var A=arguments.length?arguments[0]:void 0,b=h(this),R=p(b),O=T(b,0);return O.length=d(O,b,b,R,0,A===void 0?1:y(A)),O}})},function(x,E,r){var f=r(88),d=r(63),h=r(140),p=r(84),y=function(T,$,A,b,R,O,C,w){for(var D=R,L=0,F=C?p(C,w):!1,j,U;L0&&f(j)?(U=d(j),D=y(T,$,j,U,D,O-1)-1):(h(D+1),T[D]=j),D++),L++;return D};x.exports=y},function(x,E,r){var f=r(3),d=r(157),h=r(30),p=r(39),y=r(63),T=r(86);f({target:"Array",proto:!0},{flatMap:function(A){var b=p(this),R=y(b),O;return h(A),O=T(b,0),O.length=d(O,b,b,R,0,1,A,arguments.length>1?arguments[1]:void 0),O}})},function(x,E,r){var f=r(3),d=r(160);f({target:"Array",proto:!0,forced:[].forEach!==d},{forEach:d})},function(x,E,r){var f=r(83).forEach,d=r(147),h=d("forEach");x.exports=h?[].forEach:function(y){return f(this,y,arguments.length>1?arguments[1]:void 0)}},function(x,E,r){var f=r(3),d=r(162),h=r(164),p=!h(function(y){Array.from(y)});f({target:"Array",stat:!0,forced:p},{from:d})},function(x,E,r){var f=r(84),d=r(8),h=r(39),p=r(163),y=r(131),T=r(89),$=r(63),A=r(141),b=r(133),R=r(134),O=Array;x.exports=function(w){var D=h(w),L=T(this),F=arguments.length,j=F>1?arguments[1]:void 0,U=j!==void 0;U&&(j=f(j,F>2?arguments[2]:void 0));var z=R(D),X=0,B,V,W,J,Z,Q;if(z&&!(this===O&&y(z)))for(V=L?new this:[],J=b(D,z),Z=J.next;!(W=d(Z,J)).done;X++)Q=U?p(J,j,[W.value,X],!0):W.value,A(V,X,Q);else for(B=$(D),V=L?new this(B):O(B);B>X;X++)Q=U?j(D[X],X):D[X],A(V,X,Q);return V.length=X,V}},function(x,E,r){var f=r(46),d=r(135);x.exports=function(h,p,y,T){try{return T?p(f(y)[0],y[1]):p(y)}catch($){d(h,"throw",$)}}},function(x,E,r){var f=r(33),d=f("iterator"),h=!1;try{var p=0,y={next:function(){return{done:!!p++}},return:function(){h=!0}};y[d]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}x.exports=function(T,$){try{if(!$&&!h)return!1}catch(R){return!1}var A=!1;try{var b={};b[d]=function(){return{next:function(){return{done:A=!0}}}},T(b)}catch(R){}return A}},function(x,E,r){var f=r(3),d=r(59).includes,h=r(7),p=r(138),y=h(function(){return!Array(1).includes()});f({target:"Array",proto:!0,forced:y},{includes:function($){return d(this,$,arguments.length>1?arguments[1]:void 0)}}),p("includes")},function(x,E,r){var f=r(3),d=r(85),h=r(59).indexOf,p=r(147),y=d([].indexOf),T=!!y&&1/y([1],1,-0)<0,$=T||!p("indexOf");f({target:"Array",proto:!0,forced:$},{indexOf:function(b){var R=arguments.length>1?arguments[1]:void 0;return T?y(this,b,R)||0:h(this,b,R)}})},function(x,E,r){var f=r(3),d=r(88);f({target:"Array",stat:!0},{isArray:d})},function(x,E,r){var f=r(12),d=r(138),h=r(132),p=r(51),y=r(44).f,T=r(169),$=r(172),A=r(36),b=r(6),R="Array Iterator",O=p.set,C=p.getterFor(R);x.exports=T(Array,"Array",function(D,L){O(this,{type:R,target:f(D),index:0,kind:L})},function(){var D=C(this),L=D.target,F=D.index++;if(!L||F>=L.length)return D.target=void 0,$(void 0,!0);switch(D.kind){case"keys":return $(F,!1);case"values":return $(L[F],!1)}return $([F,L[F]],!1)},"values");var w=h.Arguments=h.Array;if(d("keys"),d("values"),d("entries"),!A&&b&&w.name!=="values")try{y(w,"name",{value:"values"})}catch(D){}},function(x,E,r){var f=r(3),d=r(8),h=r(36),p=r(49),y=r(21),T=r(170),$=r(128),A=r(113),b=r(82),R=r(43),O=r(47),C=r(33),w=r(132),D=r(171),L=p.PROPER,F=p.CONFIGURABLE,j=D.IteratorPrototype,U=D.BUGGY_SAFARI_ITERATORS,z=C("iterator"),X="keys",B="values",V="entries",W=function(){return this};x.exports=function(J,Z,Q,nt,rt,q,tt){T(Q,Z,nt);var et=function(Jt){if(Jt===rt&&Tt)return Tt;if(!U&&Jt&&Jt in dt)return dt[Jt];switch(Jt){case X:return function(){return new Q(this,Jt)};case B:return function(){return new Q(this,Jt)};case V:return function(){return new Q(this,Jt)}}return function(){return new Q(this)}},lt=Z+" Iterator",yt=!1,dt=J.prototype,bt=dt[z]||dt["@@iterator"]||rt&&dt[rt],Tt=!U&&bt||et(rt),Bt=Z==="Array"&&dt.entries||bt,Lt,Xt,Zt;if(Bt&&(Lt=$(Bt.call(new J)),Lt!==Object.prototype&&Lt.next&&(!h&&$(Lt)!==j&&(A?A(Lt,j):y(Lt[z])||O(Lt,z,W)),b(Lt,lt,!0,!0),h&&(w[lt]=W))),L&&rt===B&&bt&&bt.name!==B&&(!h&&F?R(dt,"name",B):(yt=!0,Tt=function(){return d(bt,this)})),rt)if(Xt={values:et(B),keys:q?Tt:et(X),entries:et(V)},tt)for(Zt in Xt)(U||yt||!(Zt in dt))&&O(dt,Zt,Xt[Zt]);else f({target:Z,proto:!0,forced:U||yt},Xt);return(!h||tt)&&dt[z]!==Tt&&O(dt,z,Tt,{name:rt}),w[Z]=Tt,Xt}},function(x,E,r){var f=r(171).IteratorPrototype,d=r(71),h=r(11),p=r(82),y=r(132),T=function(){return this};x.exports=function($,A,b,R){var O=A+" Iterator";return $.prototype=d(f,{next:h(+!R,b)}),p($,O,!1,!0),y[O]=T,$}},function(x,E,r){var f=r(7),d=r(21),h=r(20),p=r(71),y=r(128),T=r(47),$=r(33),A=r(36),b=$("iterator"),R=!1,O,C,w;[].keys&&(w=[].keys(),"next"in w?(C=y(y(w)),C!==Object.prototype&&(O=C)):R=!0);var D=!h(O)||f(function(){var L={};return O[b].call(L)!==L});D?O={}:A&&(O=p(O)),d(O[b])||T(O,b,function(){return this}),x.exports={IteratorPrototype:O,BUGGY_SAFARI_ITERATORS:R}},function(x){x.exports=function(E,r){return{value:E,done:r}}},function(x,E,r){var f=r(3),d=r(14),h=r(13),p=r(12),y=r(147),T=d([].join),$=h!==Object,A=$||!y("join",",");f({target:"Array",proto:!0,forced:A},{join:function(R){return T(p(this),R===void 0?",":R)}})},function(x,E,r){var f=r(3),d=r(175);f({target:"Array",proto:!0,forced:d!==[].lastIndexOf},{lastIndexOf:d})},function(x,E,r){var f=r(94),d=r(12),h=r(61),p=r(63),y=r(147),T=Math.min,$=[].lastIndexOf,A=!!$&&1/[1].lastIndexOf(1,-0)<0,b=y("lastIndexOf"),R=A||!b;x.exports=R?function(C){if(A)return f($,this,arguments)||0;var w=d(this),D=p(w);if(D===0)return-1;var L=D-1;for(arguments.length>1&&(L=T(L,h(arguments[1]))),L<0&&(L=D+L);L>=0;L--)if(L in w&&w[L]===C)return L||0;return-1}:$},function(x,E,r){var f=r(3),d=r(83).map,h=r(142),p=h("map");f({target:"Array",proto:!0,forced:!p},{map:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(7),h=r(89),p=r(141),y=Array,T=d(function(){function $(){}return!(y.of.call($)instanceof $)});f({target:"Array",stat:!0,forced:T},{of:function(){for(var A=0,b=arguments.length,R=new(h(this)?this:y)(b);b>A;)p(R,A,arguments[A++]);return R.length=b,R}})},function(x,E,r){var f=r(3),d=r(39),h=r(63),p=r(179),y=r(140),T=r(7),$=T(function(){return[].push.call({length:4294967296},1)!==4294967297}),A=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(R){return R instanceof TypeError}},b=$||!A();f({target:"Array",proto:!0,arity:1,forced:b},{push:function(O){var C=d(this),w=h(C),D=arguments.length;y(w+D);for(var L=0;L79&&p<83,$=T||!h("reduce");f({target:"Array",proto:!0,forced:$},{reduce:function(b){var R=arguments.length;return d(this,b,R,R>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(30),d=r(39),h=r(13),p=r(63),y=TypeError,T="Reduce of empty array with no initial value",$=function(A){return function(b,R,O,C){var w=d(b),D=h(w),L=p(w);if(f(R),L===0&&O<2)throw new y(T);var F=A?L-1:0,j=A?-1:1;if(O<2)for(;;){if(F in D){C=D[F],F+=j;break}if(F+=j,A?F<0:L<=F)throw new y(T)}for(;A?F>=0:L>F;F+=j)F in D&&(C=R(C,D[F],F,w));return C}};x.exports={left:$(!1),right:$(!0)}},function(x,E,r){var f=r(4),d=r(15);x.exports=d(f.process)==="process"},function(x,E,r){var f=r(3),d=r(181).right,h=r(147),p=r(27),y=r(182),T=!y&&p>79&&p<83,$=T||!h("reduceRight");f({target:"Array",proto:!0,forced:$},{reduceRight:function(b){return d(this,b,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(88),p=d([].reverse),y=[1,2];f({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return h(this)&&(this.length=this.length),p(this)}})},function(x,E,r){var f=r(3),d=r(88),h=r(89),p=r(20),y=r(60),T=r(63),$=r(12),A=r(141),b=r(33),R=r(142),O=r(76),C=R("slice"),w=b("species"),D=Array,L=Math.max;f({target:"Array",proto:!0,forced:!C},{slice:function(j,U){var z=$(this),X=T(z),B=y(j,X),V=y(U===void 0?X:U,X),W,J,Z;if(d(z)&&(W=z.constructor,h(W)&&(W===D||d(W.prototype))?W=void 0:p(W)&&(W=W[w],W===null&&(W=void 0)),W===D||W===void 0))return O(z,B,V);for(J=new(W===void 0?D:W)(L(V-B,0)),Z=0;B1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(39),y=r(63),T=r(145),$=r(68),A=r(7),b=r(188),R=r(147),O=r(189),C=r(190),w=r(27),D=r(191),L=[],F=d(L.sort),j=d(L.push),U=A(function(){L.sort(void 0)}),z=A(function(){L.sort(null)}),X=R("sort"),B=!A(function(){if(w)return w<70;if(!(O&&O>3)){if(C)return!0;if(D)return D<603;var J="",Z,Q,nt,rt;for(Z=65;Z<76;Z++){switch(Q=String.fromCharCode(Z),Z){case 66:case 69:case 70:case 72:nt=3;break;case 68:case 71:nt=4;break;default:nt=2}for(rt=0;rt<47;rt++)L.push({k:Q+rt,v:nt})}for(L.sort(function(q,tt){return tt.v-q.v}),rt=0;rt$(Q)?1:-1}};f({target:"Array",proto:!0,forced:V},{sort:function(Z){Z!==void 0&&h(Z);var Q=p(this);if(B)return Z===void 0?F(Q):F(Q,Z);var nt=[],rt=y(Q),q,tt;for(tt=0;tt0;)p[b]=p[--b];b!==$++&&(p[b]=A)}else for(var R=d(T/2),O=h(f(p,0,R),y),C=h(f(p,R),y),w=O.length,D=C.length,L=0,F=0;Lz-W+V;Z--)R(U,Z-1)}else if(V>W)for(Z=z-W;Z>X;Z--)Q=Z+W-1,nt=Z+V-1,Q in U?U[nt]=U[Q]:R(U,nt);for(Z=0;Z2?p:f(h),$=new d(T);T>y;)$[y]=h[y++];return $}},function(x,E,r){var f=r(4);x.exports=function(d,h){var p=f[d],y=p&&p.prototype;return y&&y[h]}},function(x,E,r){var f=r(3),d=r(138),h=r(140),p=r(63),y=r(60),T=r(12),$=r(61),A=Array,b=Math.max,R=Math.min;f({target:"Array",proto:!0},{toSpliced:function(C,w){var D=T(this),L=p(D),F=y(C,L),j=arguments.length,U=0,z,X,B,V;for(j===0?z=X=0:j===1?(z=0,X=L-F):(z=j-2,X=R(b($(w),0),L-F)),B=h(L+z-X),V=A(B);U=A||R<0)throw new h("Incorrect index");for(var O=new y(A),C=0;C>8&255]},ie=function(Ot){return[Ot&255,Ot>>8&255,Ot>>16&255,Ot>>24&255]},re=function(Ot){return Ot[3]<<24|Ot[2]<<16|Ot[1]<<8|Ot[0]},le=function(Ot){return ne(D(Ot),23,4)},Re=function(Ot){return ne(Ot,52,8)},Ce=function(Ot,Ut,St){$(Ot[rt],Ut,{configurable:!0,get:function(){return St(this)[Ut]}})},xe=function(Ot,Ut,St,kt){var Qt=lt(Ot),Yt=w(St),Gt=!!kt;if(Yt+Ut>Qt.byteLength)throw new Jt(tt);var we=Qt.bytes,Ye=Yt+Qt.byteOffset,ht=z(we,Ye,Ye+Ut);return Gt?ht:ce(ht)},oe=function(Ot,Ut,St,kt,Qt,Yt){var Gt=lt(Ot),we=w(St),Ye=kt(+Qt),ht=!!Yt;if(we+Ut>Gt.byteLength)throw new Jt(tt);for(var Ct=Gt.bytes,Pt=we+Gt.byteOffset,ot=0;otYt)throw new Jt("Wrong offset");if(kt=kt===void 0?Yt-Gt:C(kt),Gt+kt>Yt)throw new Jt(q);yt(this,{type:nt,buffer:Ut,byteLength:kt,byteOffset:Gt,bytes:Qt.bytes}),h||(this.buffer=Ut,this.byteLength=kt,this.byteOffset=Gt)},Lt=Bt[rt],h&&(Ce(bt,"byteLength",et),Ce(Bt,"buffer",lt),Ce(Bt,"byteLength",lt),Ce(Bt,"byteOffset",lt)),A(Lt,{getInt8:function(Ut){return xe(this,1,Ut)[0]<<24>>24},getUint8:function(Ut){return xe(this,1,Ut)[0]},getInt16:function(Ut){var St=xe(this,2,Ut,arguments.length>1?arguments[1]:!1);return(St[1]<<8|St[0])<<16>>16},getUint16:function(Ut){var St=xe(this,2,Ut,arguments.length>1?arguments[1]:!1);return St[1]<<8|St[0]},getInt32:function(Ut){return re(xe(this,4,Ut,arguments.length>1?arguments[1]:!1))},getUint32:function(Ut){return re(xe(this,4,Ut,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Ut){return Mt(xe(this,4,Ut,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Ut){return Mt(xe(this,8,Ut,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Ut,St){oe(this,1,Ut,Vt,St)},setUint8:function(Ut,St){oe(this,1,Ut,Vt,St)},setInt16:function(Ut,St){oe(this,2,Ut,te,St,arguments.length>2?arguments[2]:!1)},setUint16:function(Ut,St){oe(this,2,Ut,te,St,arguments.length>2?arguments[2]:!1)},setInt32:function(Ut,St){oe(this,4,Ut,ie,St,arguments.length>2?arguments[2]:!1)},setUint32:function(Ut,St){oe(this,4,Ut,ie,St,arguments.length>2?arguments[2]:!1)},setFloat32:function(Ut,St){oe(this,4,Ut,le,St,arguments.length>2?arguments[2]:!1)},setFloat64:function(Ut,St){oe(this,8,Ut,Re,St,arguments.length>2?arguments[2]:!1)}});else{var Ae=J&&dt.name!==Q;!b(function(){dt(1)})||!b(function(){new dt(-1)})||b(function(){return new dt,new dt(1.5),new dt(NaN),dt.length!==1||Ae&&!Z})?(bt=function(Ut){return R(this,Tt),X(new dt(w(Ut)),this,bt)},bt[rt]=Tt,Tt.constructor=bt,B(bt,dt)):Ae&&Z&&T(dt,"name",Q),j&&F(Lt)!==Xt&&j(Lt,Xt);var me=new Bt(new bt(2)),ue=d(Lt.setInt8);me.setInt8(0,2147483648),me.setInt8(1,2147483649),(me.getInt8(0)||!me.getInt8(1))&&A(Lt,{setInt8:function(Ut,St){ue(this,Ut,St<<24>>24)},setUint8:function(Ut,St){ue(this,Ut,St<<24>>24)}},{unsafe:!0})}V(bt,Q),V(Bt,nt),x.exports={ArrayBuffer:bt,DataView:Bt}},function(x){x.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},function(x,E,r){var f=r(47);x.exports=function(d,h,p){for(var y in h)f(d,y,h[y],p);return d}},function(x,E,r){var f=r(24),d=TypeError;x.exports=function(h,p){if(f(p,h))return h;throw new d("Incorrect invocation")}},function(x,E,r){var f=r(61),d=r(64),h=RangeError;x.exports=function(p){if(p===void 0)return 0;var y=f(p),T=d(y);if(y!==T)throw new h("Wrong length or index");return T}},function(x,E,r){var f=r(213),d=11920928955078125e-23,h=34028234663852886e22,p=11754943508222875e-54;x.exports=Math.fround||function(T){return f(T,d,h,p)}},function(x,E,r){var f=r(214),d=Math.abs,h=2220446049250313e-31,p=1/h,y=function(T){return T+p-p};x.exports=function(T,$,A,b){var R=+T,O=d(R),C=f(R);if(OA||D!==D?C*(1/0):C*D}},function(x){x.exports=Math.sign||function(r){var f=+r;return f===0||f!==f?f:f<0?-1:1}},function(x){var E=Array,r=Math.abs,f=Math.pow,d=Math.floor,h=Math.log,p=Math.LN2,y=function($,A,b){var R=E(b),O=b*8-A-1,C=(1<>1,D=A===23?f(2,-24)-f(2,-77):0,L=$<0||$===0&&1/$<0?1:0,F=0,j,U,z;for($=r($),$!==$||$===1/0?(U=$!==$?1:0,j=C):(j=d(h($)/p),z=f(2,-j),$*z<1&&(j--,z*=2),j+w>=1?$+=D/z:$+=D*f(2,1-w),$*z>=2&&(j++,z/=2),j+w>=C?(U=0,j=C):j+w>=1?(U=($*z-1)*f(2,A),j+=w):(U=$*f(2,w-1)*f(2,A),j=0));A>=8;)R[F++]=U&255,U/=256,A-=8;for(j=j<0;)R[F++]=j&255,j/=256,O-=8;return R[--F]|=L*128,R},T=function($,A){var b=$.length,R=b*8-A-1,O=(1<>1,w=R-7,D=b-1,L=$[D--],F=L&127,j;for(L>>=7;w>0;)F=F*256+$[D--],w-=8;for(j=F&(1<<-w)-1,F>>=-w,w+=A;w>0;)j=j*256+$[D--],w-=8;if(F===0)F=1-C;else{if(F===O)return j?NaN:L?-1/0:1/0;j+=f(2,A),F-=C}return(L?-1:1)*j*f(2,F-A)};x.exports={pack:y,unpack:T}},function(x,E,r){var f=r(3),d=r(217),h=d.NATIVE_ARRAY_BUFFER_VIEWS;f({target:"ArrayBuffer",stat:!0,forced:!h},{isView:d.isView})},function(x,E,r){var f=r(208),d=r(6),h=r(4),p=r(21),y=r(20),T=r(38),$=r(69),A=r(31),b=r(43),R=r(47),O=r(77),C=r(24),w=r(128),D=r(113),L=r(33),F=r(40),j=r(51),U=j.enforce,z=j.get,X=h.Int8Array,B=X&&X.prototype,V=h.Uint8ClampedArray,W=V&&V.prototype,J=X&&w(X),Z=B&&w(B),Q=Object.prototype,nt=h.TypeError,rt=L("toStringTag"),q=F("TYPED_ARRAY_TAG"),tt="TypedArrayConstructor",et=f&&!!D&&$(h.opera)!=="Opera",lt=!1,yt,dt,bt,Tt={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},Bt={BigInt64Array:8,BigUint64Array:8},Lt=function(Vt){if(!y(Vt))return!1;var te=$(Vt);return te==="DataView"||T(Tt,te)||T(Bt,te)},Xt=function(Mt){var Vt=w(Mt);if(y(Vt)){var te=z(Vt);return te&&T(te,tt)?te[tt]:Xt(Vt)}},Zt=function(Mt){if(!y(Mt))return!1;var Vt=$(Mt);return T(Tt,Vt)||T(Bt,Vt)},Jt=function(Mt){if(Zt(Mt))return Mt;throw new nt("Target is not a typed array")},ge=function(Mt){if(p(Mt)&&(!D||C(J,Mt)))return Mt;throw new nt(A(Mt)+" is not a typed array constructor")},ce=function(Mt,Vt,te,ie){if(d){if(te)for(var re in Tt){var le=h[re];if(le&&T(le.prototype,Mt))try{delete le.prototype[Mt]}catch(Re){try{le.prototype[Mt]=Vt}catch(Ce){}}}(!Z[Mt]||te)&&R(Z,Mt,te?Vt:et&&B[Mt]||Vt,ie)}},ne=function(Mt,Vt,te){var ie,re;if(d){if(D){if(te){for(ie in Tt)if(re=h[ie],re&&T(re,Mt))try{delete re[Mt]}catch(le){}}if(!J[Mt]||te)try{return R(J,Mt,te?Vt:et&&J[Mt]||Vt)}catch(le){}else return}for(ie in Tt)re=h[ie],re&&(!re[Mt]||te)&&R(re,Mt,Vt)}};for(yt in Tt)dt=h[yt],bt=dt&&dt.prototype,bt?U(bt)[tt]=dt:et=!1;for(yt in Bt)dt=h[yt],bt=dt&&dt.prototype,bt&&(U(bt)[tt]=dt);if((!et||!p(J)||J===Function.prototype)&&(J=function(){throw new nt("Incorrect invocation")},et))for(yt in Tt)h[yt]&&D(h[yt],J);if((!et||!Z||Z===Q)&&(Z=J.prototype,et))for(yt in Tt)h[yt]&&D(h[yt].prototype,Z);if(et&&w(W)!==Z&&D(W,Z),d&&!T(Z,rt)){lt=!0,O(Z,rt,{configurable:!0,get:function(){return y(this)?this[q]:void 0}});for(yt in Tt)h[yt]&&b(h[yt],q,yt)}x.exports={NATIVE_ARRAY_BUFFER_VIEWS:et,TYPED_ARRAY_TAG:lt&&q,aTypedArray:Jt,aTypedArrayConstructor:ge,exportTypedArrayMethod:ce,exportTypedArrayStaticMethod:ne,getTypedArrayConstructor:Xt,isView:Lt,isTypedArray:Zt,TypedArray:J,TypedArrayPrototype:Z}},function(x,E,r){var f=r(3),d=r(85),h=r(7),p=r(207),y=r(46),T=r(60),$=r(64),A=r(219),b=p.ArrayBuffer,R=p.DataView,O=R.prototype,C=d(b.prototype.slice),w=d(O.getUint8),D=d(O.setUint8),L=h(function(){return!new b(2).slice(1,void 0).byteLength});f({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:L},{slice:function(j,U){if(C&&U===void 0)return C(y(this),j);for(var z=y(this).byteLength,X=T(j,z),B=T(U===void 0?z:U,z),V=new(A(this,b))($(B-X)),W=new R(this),J=new R(V),Z=0;X=Z&&(!W||Q))nt=F(B,0,Z);else{var rt=W&&!Q&&U?{maxByteLength:U(B)}:void 0;nt=new R(Z,rt);for(var q=new O(B),tt=new O(nt),et=w(Z,J),lt=0;lt92||T&&h>94||p&&h>97)return!1;var A=new ArrayBuffer(8),b=$(A,{transfer:[A]});return A.byteLength!==0||b.byteLength!==8})},function(x,E,r){var f=r(232),d=r(182);x.exports=!f&&!d&&typeof window=="object"&&typeof document=="object"},function(x){x.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},function(x,E,r){var f=r(3),d=r(227);d&&f({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return d(this,arguments.length?arguments[0]:void 0,!1)}})},function(x,E,r){var f=r(3),d=r(14),h=r(7),p=h(function(){return new Date(16e11).getYear()!==120}),y=d(Date.prototype.getFullYear);f({target:"Date",proto:!0,forced:p},{getYear:function(){return y(this)-1900}})},function(x,E,r){var f=r(3),d=r(14),h=Date,p=d(h.prototype.getTime);f({target:"Date",stat:!0},{now:function(){return p(new h)}})},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=Date.prototype,y=d(p.getTime),T=d(p.setFullYear);f({target:"Date",proto:!0},{setYear:function(A){y(this);var b=h(A),R=b>=0&&b<=99?b+1900:b;return T(this,R)}})},function(x,E,r){var f=r(3);f({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},function(x,E,r){var f=r(3),d=r(239);f({target:"Date",proto:!0,forced:Date.prototype.toISOString!==d},{toISOString:d})},function(x,E,r){var f=r(14),d=r(7),h=r(240).start,p=RangeError,y=isFinite,T=Math.abs,$=Date.prototype,A=$.toISOString,b=f($.getTime),R=f($.getUTCDate),O=f($.getUTCFullYear),C=f($.getUTCHours),w=f($.getUTCMilliseconds),D=f($.getUTCMinutes),L=f($.getUTCMonth),F=f($.getUTCSeconds);x.exports=d(function(){return A.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!d(function(){A.call(new Date(NaN))})?function(){if(!y(b(this)))throw new p("Invalid time value");var U=this,z=O(U),X=w(U),B=z<0?"-":z>9999?"+":"";return B+h(T(z),B?6:4,0)+"-"+h(L(U)+1,2,0)+"-"+h(R(U),2,0)+"T"+h(C(U),2,0)+":"+h(D(U),2,0)+":"+h(F(U),2,0)+"."+h(X,3,0)+"Z"}:A},function(x,E,r){var f=r(14),d=r(64),h=r(68),p=r(241),y=r(16),T=f(p),$=f("".slice),A=Math.ceil,b=function(R){return function(O,C,w){var D=h(y(O)),L=d(C),F=D.length,j=w===void 0?" ":h(w),U,z;return L<=F||j===""?D:(U=L-F,z=T(j,A(U/j.length)),z.length>U&&(z=$(z,0,U)),R?D+z:z+D)}};x.exports={start:b(!1),end:b(!0)}},function(x,E,r){var f=r(61),d=r(68),h=r(16),p=RangeError;x.exports=function(T){var $=d(h(this)),A="",b=f(T);if(b<0||b===1/0)throw new p("Wrong number of repetitions");for(;b>0;(b>>>=1)&&($+=$))b&1&&(A+=$);return A}},function(x,E,r){var f=r(3),d=r(7),h=r(39),p=r(19),y=d(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});f({target:"Date",proto:!0,arity:1,forced:y},{toJSON:function($){var A=h(this),b=p(A,"number");return typeof b=="number"&&!isFinite(b)?null:A.toISOString()}})},function(x,E,r){var f=r(38),d=r(47),h=r(244),p=r(33),y=p("toPrimitive"),T=Date.prototype;f(T,y)||d(T,y,h)},function(x,E,r){var f=r(46),d=r(32),h=TypeError;x.exports=function(p){if(f(this),p==="string"||p==="default")p="string";else if(p!=="number")throw new h("Incorrect hint");return d(this,p)}},function(x,E,r){var f=r(14),d=r(47),h=Date.prototype,p="Invalid Date",y="toString",T=f(h[y]),$=f(h.getTime);String(new Date(NaN))!==p&&d(h,y,function(){var b=$(this);return b===b?T(this):p})},function(x,E,r){var f=r(3),d=r(14),h=r(68),p=d("".charAt),y=d("".charCodeAt),T=d(/./.exec),$=d(1 .toString),A=d("".toUpperCase),b=/[\w*+\-./@]/,R=function(O,C){for(var w=$(O,16);w.length1?arguments[1]:void 0),q;q=q?q.next:nt.first;)for(rt(q.value,q.key,this);q&&q.removed;)q=q.previous},has:function(Q){return!!J(this,Q)}}),h(B,U?{get:function(Q){var nt=J(this,Q);return nt&&nt.value},set:function(Q,nt){return W(this,Q===0?0:Q,nt)}}:{add:function(Q){return W(this,Q=Q===0?0:Q,Q)}}),O&&d(B,"size",{configurable:!0,get:function(){return V(this).size}}),X},setStrong:function(F,j,U){var z=j+" Iterator",X=L(j),B=L(z);A(F,j,function(V,W){D(this,{type:z,target:V,state:X(V),kind:W,last:void 0})},function(){for(var V=B(this),W=V.kind,J=V.last;J&&J.removed;)J=J.previous;return!V.target||!(V.last=J=J?J.next:V.state.first)?(V.target=void 0,b(void 0,!0)):b(W==="keys"?J.key:W==="values"?J.value:[J.key,J.value],!1)},U?"entries":"values",!U,!0),R(j)}}},function(x,E,r){var f=r(3),d=r(14),h=r(30),p=r(16),y=r(130),T=r(262),$=r(36),A=r(7),b=T.Map,R=T.has,O=T.get,C=T.set,w=d([].push),D=$||A(function(){return b.groupBy("ab",function(L){return L}).get("a").length!==1});f({target:"Map",stat:!0,forced:$||D},{groupBy:function(F,j){p(F),h(j);var U=new b,z=0;return y(F,function(X){var B=j(X,z++);R(U,B)?w(O(U,B),X):C(U,B,[X])}),U}})},function(x,E,r){var f=r(14),d=Map.prototype;x.exports={Map,set:f(d.set),get:f(d.get),has:f(d.has),remove:f(d.delete),proto:d}},function(x,E,r){var f=r(3),d=r(264),h=Math.acosh,p=Math.log,y=Math.sqrt,T=Math.LN2,$=!h||Math.floor(h(Number.MAX_VALUE))!==710||h(1/0)!==1/0;f({target:"Math",stat:!0,forced:$},{acosh:function(b){var R=+b;return R<1?NaN:R>9490626562425156e-8?p(R)+T:d(R-1+y(R-1)*y(R+1))}})},function(x){var E=Math.log;x.exports=Math.log1p||function(f){var d=+f;return d>-1e-8&&d<1e-8?d-d*d/2:E(1+d)}},function(x,E,r){var f=r(3),d=Math.asinh,h=Math.log,p=Math.sqrt;function y($){var A=+$;return!isFinite(A)||A===0?A:A<0?-y(-A):h(A+p(A*A+1))}var T=!(d&&1/d(0)>0);f({target:"Math",stat:!0,forced:T},{asinh:y})},function(x,E,r){var f=r(3),d=Math.atanh,h=Math.log,p=!(d&&1/d(-0)<0);f({target:"Math",stat:!0,forced:p},{atanh:function(T){var $=+T;return $===0?$:h((1+$)/(1-$))/2}})},function(x,E,r){var f=r(3),d=r(214),h=Math.abs,p=Math.pow;f({target:"Math",stat:!0},{cbrt:function(T){var $=+T;return d($)*p(h($),.3333333333333333)}})},function(x,E,r){var f=r(3),d=Math.floor,h=Math.log,p=Math.LOG2E;f({target:"Math",stat:!0},{clz32:function(T){var $=T>>>0;return $?31-d(h($+.5)*p):32}})},function(x,E,r){var f=r(3),d=r(270),h=Math.cosh,p=Math.abs,y=Math.E,T=!h||h(710)===1/0;f({target:"Math",stat:!0,forced:T},{cosh:function(A){var b=d(p(A)-1)+1;return(b+1/(b*y*y))*(y/2)}})},function(x){var E=Math.expm1,r=Math.exp;x.exports=!E||E(10)>22025.465794806718||E(10)<22025.465794806718||E(-2e-17)!==-2e-17?function(d){var h=+d;return h===0?h:h>-1e-6&&h<1e-6?h+h*h/2:r(h)-1}:E},function(x,E,r){var f=r(3),d=r(270);f({target:"Math",stat:!0,forced:d!==Math.expm1},{expm1:d})},function(x,E,r){var f=r(3),d=r(212);f({target:"Math",stat:!0},{fround:d})},function(x,E,r){var f=r(3),d=Math.hypot,h=Math.abs,p=Math.sqrt,y=!!d&&d(1/0,NaN)!==1/0;f({target:"Math",stat:!0,arity:2,forced:y},{hypot:function($,A){for(var b=0,R=0,O=arguments.length,C=0,w,D;R0?(D=w/C,b+=D*D):b+=w;return C===1/0?1/0:C*p(b)}})},function(x,E,r){var f=r(3),d=r(7),h=Math.imul,p=d(function(){return h(4294967295,5)!==-5||h.length!==2});f({target:"Math",stat:!0,forced:p},{imul:function(T,$){var A=65535,b=+T,R=+$,O=A&b,C=A&R;return 0|O*C+((A&b>>>16)*C+O*(A&R>>>16)<<16>>>0)}})},function(x,E,r){var f=r(3),d=r(276);f({target:"Math",stat:!0},{log10:d})},function(x){var E=Math.log,r=Math.LOG10E;x.exports=Math.log10||function(d){return E(d)*r}},function(x,E,r){var f=r(3),d=r(264);f({target:"Math",stat:!0},{log1p:d})},function(x,E,r){var f=r(3),d=Math.log,h=Math.LN2;f({target:"Math",stat:!0},{log2:function(y){return d(y)/h}})},function(x,E,r){var f=r(3),d=r(214);f({target:"Math",stat:!0},{sign:d})},function(x,E,r){var f=r(3),d=r(7),h=r(270),p=Math.abs,y=Math.exp,T=Math.E,$=d(function(){return Math.sinh(-2e-17)!==-2e-17});f({target:"Math",stat:!0,forced:$},{sinh:function(b){var R=+b;return p(R)<1?(h(R)-h(-R))/2:(y(R-1)-y(-R-1))*(T/2)}})},function(x,E,r){var f=r(3),d=r(270),h=Math.exp;f({target:"Math",stat:!0},{tanh:function(y){var T=+y,$=d(T),A=d(-T);return $===1/0?1:A===1/0?-1:($-A)/(h(T)+h(-T))}})},function(x,E,r){var f=r(82);f(Math,"Math",!0)},function(x,E,r){var f=r(3),d=r(62);f({target:"Math",stat:!0},{trunc:d})},function(x,E,r){var f=r(3),d=r(36),h=r(6),p=r(4),y=r(80),T=r(14),$=r(67),A=r(38),b=r(118),R=r(24),O=r(22),C=r(19),w=r(7),D=r(57).f,L=r(5).f,F=r(44).f,j=r(285),U=r(286).trim,z="Number",X=p[z],B=y[z],V=X.prototype,W=p.TypeError,J=T("".slice),Z=T("".charCodeAt),Q=function(lt){var yt=C(lt,"number");return typeof yt=="bigint"?yt:nt(yt)},nt=function(lt){var yt=C(lt,"number"),dt,bt,Tt,Bt,Lt,Xt,Zt,Jt;if(O(yt))throw new W("Cannot convert a Symbol value to a number");if(typeof yt=="string"&&yt.length>2){if(yt=U(yt),dt=Z(yt,0),dt===43||dt===45){if(bt=Z(yt,2),bt===88||bt===120)return NaN}else if(dt===48){switch(Z(yt,1)){case 66:case 98:Tt=2,Bt=49;break;case 79:case 111:Tt=8,Bt=55;break;default:return+yt}for(Lt=J(yt,2),Xt=Lt.length,Zt=0;ZtBt)return NaN;return parseInt(Lt,Tt)}}return+yt},rt=$(z,!X(" 0o1")||!X("0b1")||X("+0x1")),q=function(lt){return R(V,lt)&&w(function(){j(lt)})},tt=function(yt){var dt=arguments.length<1?0:X(Q(yt));return q(this)?b(Object(dt),this,tt):dt};tt.prototype=V,rt&&!d&&(V.constructor=tt),f({global:!0,constructor:!0,wrap:!0,forced:rt},{Number:tt});var et=function(lt,yt){for(var dt=h?D(yt):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),bt=0,Tt;dt.length>bt;bt++)A(yt,Tt=dt[bt])&&!A(lt,Tt)&&F(lt,Tt,L(yt,Tt))};d&&B&&et(y[z],B),(rt||d)&&et(y[z],X)},function(x,E,r){var f=r(14);x.exports=f(1 .valueOf)},function(x,E,r){var f=r(14),d=r(16),h=r(68),p=r(287),y=f("".replace),T=RegExp("^["+p+"]+"),$=RegExp("(^|[^"+p+"])["+p+"]+$"),A=function(b){return function(R){var O=h(d(R));return b&1&&(O=y(O,T,"")),b&2&&(O=y(O,$,"$1")),O}};x.exports={start:A(1),end:A(2),trim:A(3)}},function(x){x.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},function(x,E,r){var f=r(3),d=r(290);f({target:"Number",stat:!0},{isFinite:d})},function(x,E,r){var f=r(4),d=f.isFinite;x.exports=Number.isFinite||function(p){return typeof p=="number"&&d(p)}},function(x,E,r){var f=r(3),d=r(292);f({target:"Number",stat:!0},{isInteger:d})},function(x,E,r){var f=r(20),d=Math.floor;x.exports=Number.isInteger||function(p){return!f(p)&&isFinite(p)&&d(p)===p}},function(x,E,r){var f=r(3);f({target:"Number",stat:!0},{isNaN:function(h){return h!==h}})},function(x,E,r){var f=r(3),d=r(292),h=Math.abs;f({target:"Number",stat:!0},{isSafeInteger:function(y){return d(y)&&h(y)<=9007199254740991}})},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(x,E,r){var f=r(3);f({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(x,E,r){var f=r(3),d=r(298);f({target:"Number",stat:!0,forced:Number.parseFloat!==d},{parseFloat:d})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=h("".charAt),A=f.parseFloat,b=f.Symbol,R=b&&b.iterator,O=1/A(T+"-0")!==-1/0||R&&!d(function(){A(Object(R))});x.exports=O?function(w){var D=y(p(w)),L=A(D);return L===0&&$(D,0)==="-"?-0:L}:A},function(x,E,r){var f=r(3),d=r(300);f({target:"Number",stat:!0,forced:Number.parseInt!==d},{parseInt:d})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(68),y=r(286).trim,T=r(287),$=f.parseInt,A=f.Symbol,b=A&&A.iterator,R=/^[+-]?0x/i,O=h(R.exec),C=$(T+"08")!==8||$(T+"0x16")!==22||b&&!d(function(){$(Object(b))});x.exports=C?function(D,L){var F=y(p(D));return $(F,L>>>0||(O(R,F)?16:10))}:$},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(276),$=r(7),A=RangeError,b=String,R=isFinite,O=Math.abs,C=Math.floor,w=Math.pow,D=Math.round,L=d(1 .toExponential),F=d(y),j=d("".slice),U=L(-69e-12,4)==="-6.9000e-11"&&L(1.255,2)==="1.25e+0"&&L(12345,3)==="1.235e+4"&&L(25,0)==="3e+1",z=function(){return $(function(){L(1,1/0)})&&$(function(){L(1,-1/0)})},X=function(){return!$(function(){L(1/0,1/0),L(NaN,1/0)})},B=!U||!z()||!X();f({target:"Number",proto:!0,forced:B},{toExponential:function(W){var J=p(this);if(W===void 0)return L(J);var Z=h(W);if(!R(J))return String(J);if(Z<0||Z>20)throw new A("Incorrect fraction digits");if(U)return L(J,Z);var Q="",nt="",rt=0,q="",tt="";if(J<0&&(Q="-",J=-J),J===0)rt=0,nt=F("0",Z+1);else{var et=T(J);rt=C(et);var lt=0,yt=w(10,rt-Z);lt=D(J/yt),2*J>=(2*lt+1)*yt&&(lt+=1),lt>=w(10,Z+1)&&(lt/=10,rt+=1),nt=b(lt)}return Z!==0&&(nt=j(nt,0,1)+"."+j(nt,1)),rt===0?(q="+",tt="0"):(q=rt>0?"+":"-",tt=b(O(rt))),nt+="e"+q+tt,Q+nt}})},function(x,E,r){var f=r(3),d=r(14),h=r(61),p=r(285),y=r(241),T=r(7),$=RangeError,A=String,b=Math.floor,R=d(y),O=d("".slice),C=d(1 .toFixed),w=function(z,X,B){return X===0?B:X%2===1?w(z,X-1,B*z):w(z*z,X/2,B)},D=function(z){for(var X=0,B=z;B>=4096;)X+=12,B/=4096;for(;B>=2;)X+=1,B/=2;return X},L=function(z,X,B){for(var V=-1,W=B;++V<6;)W+=X*z[V],z[V]=W%1e7,W=b(W/1e7)},F=function(z,X){for(var B=6,V=0;--B>=0;)V+=z[B],z[B]=b(V/X),V=V%X*1e7},j=function(z){for(var X=6,B="";--X>=0;)if(B!==""||X===0||z[X]!==0){var V=A(z[X]);B=B===""?V:B+R("0",7-V.length)+V}return B},U=T(function(){return C(8e-5,3)!=="0.000"||C(.9,0)!=="1"||C(1.255,2)!=="1.25"||C(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!T(function(){C({})});f({target:"Number",proto:!0,forced:U},{toFixed:function(X){var B=p(this),V=h(X),W=[0,0,0,0,0,0],J="",Z="0",Q,nt,rt,q;if(V<0||V>20)throw new $("Incorrect fraction digits");if(B!==B)return"NaN";if(B<=-1e21||B>=1e21)return A(B);if(B<0&&(J="-",B=-B),B>1e-21)if(Q=D(B*w(2,69,1))-69,nt=Q<0?B*w(2,-Q,1):B/w(2,Q,1),nt*=4503599627370496,Q=52-Q,Q>0){for(L(W,0,nt),rt=V;rt>=7;)L(W,1e7,0),rt-=7;for(L(W,w(10,rt,1),0),rt=Q-1;rt>=23;)F(W,8388608),rt-=23;F(W,1<0?(q=Z.length,Z=J+(q<=V?"0."+R("0",V-q)+Z:O(Z,0,q-V)+"."+O(Z,q-V))):Z=J+Z,Z}})},function(x,E,r){var f=r(3),d=r(14),h=r(7),p=r(285),y=d(1 .toPrecision),T=h(function(){return y(1,void 0)!=="1"})||!h(function(){y({})});f({target:"Number",proto:!0,forced:T},{toPrecision:function(A){return A===void 0?y(p(this)):y(p(this),A)}})},function(x,E,r){var f=r(3),d=r(305);f({target:"Object",stat:!0,arity:2,forced:Object.assign!==d},{assign:d})},function(x,E,r){var f=r(6),d=r(14),h=r(8),p=r(7),y=r(73),T=r(66),$=r(10),A=r(39),b=r(13),R=Object.assign,O=Object.defineProperty,C=d([].concat);x.exports=!R||p(function(){if(f&&R({b:1},R(O({},"a",{enumerable:!0,get:function(){O(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},D={},L=Symbol("assign detection"),F="abcdefghijklmnopqrst";return w[L]=7,F.split("").forEach(function(j){D[j]=j}),R({},w)[L]!==7||y(R({},D)).join("")!==F})?function(D,L){for(var F=A(D),j=arguments.length,U=1,z=T.f,X=$.f;j>U;)for(var B=b(arguments[U++]),V=z?C(y(B),z(B)):y(B),W=V.length,J=0,Z;W>J;)Z=V[J++],(!f||h(X,B,Z))&&(F[Z]=B[Z]);return F}:R},function(x,E,r){var f=r(3),d=r(6),h=r(71);f({target:"Object",stat:!0,sham:!d},{create:h})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&f({target:"Object",proto:!0,forced:h},{__defineGetter__:function(A,b){T.f(y(this),A,{get:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var f=r(36),d=r(4),h=r(7),p=r(191);x.exports=f||!h(function(){if(!(p&&p<535)){var y=Math.random();__defineSetter__.call(null,y,function(){}),delete d[y]}})},function(x,E,r){var f=r(3),d=r(6),h=r(72).f;f({target:"Object",stat:!0,forced:Object.defineProperties!==h,sham:!d},{defineProperties:h})},function(x,E,r){var f=r(3),d=r(6),h=r(44).f;f({target:"Object",stat:!0,forced:Object.defineProperty!==h,sham:!d},{defineProperty:h})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(30),y=r(39),T=r(44);d&&f({target:"Object",proto:!0,forced:h},{__defineSetter__:function(A,b){T.f(y(this),A,{set:p(b),enumerable:!0,configurable:!0})}})},function(x,E,r){var f=r(3),d=r(313).entries;f({target:"Object",stat:!0},{entries:function(p){return d(p)}})},function(x,E,r){var f=r(6),d=r(7),h=r(14),p=r(128),y=r(73),T=r(12),$=r(10).f,A=h($),b=h([].push),R=f&&d(function(){var C=Object.create(null);return C[2]=2,!A(C,2)}),O=function(C){return function(w){for(var D=T(w),L=y(D),F=R&&p(D)===null,j=L.length,U=0,z=[],X;j>U;)X=L[U++],(!f||(F?X in D:A(D,X)))&&b(z,C?[X,D[X]]:D[X]);return z}};x.exports={entries:O(!0),values:O(!1)}},function(x,E,r){var f=r(3),d=r(259),h=r(7),p=r(20),y=r(256).onFreeze,T=Object.freeze,$=h(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!d},{freeze:function(b){return T&&p(b)?T(y(b)):b}})},function(x,E,r){var f=r(3),d=r(130),h=r(141);f({target:"Object",stat:!0},{fromEntries:function(y){var T={};return d(y,function($,A){h(T,$,A)},{AS_ENTRIES:!0}),T}})},function(x,E,r){var f=r(3),d=r(7),h=r(12),p=r(5).f,y=r(6),T=!y||d(function(){p(1)});f({target:"Object",stat:!0,forced:T,sham:!y},{getOwnPropertyDescriptor:function(A,b){return p(h(A),b)}})},function(x,E,r){var f=r(3),d=r(6),h=r(56),p=r(12),y=r(5),T=r(141);f({target:"Object",stat:!0,sham:!d},{getOwnPropertyDescriptors:function(A){for(var b=p(A),R=y.f,O=h(b),C={},w=0,D,L;O.length>w;)L=R(b,D=O[w++]),L!==void 0&&T(C,D,L);return C}})},function(x,E,r){var f=r(3),d=r(7),h=r(75).f,p=d(function(){return!Object.getOwnPropertyNames(1)});f({target:"Object",stat:!0,forced:p},{getOwnPropertyNames:h})},function(x,E,r){var f=r(3),d=r(7),h=r(39),p=r(128),y=r(129),T=d(function(){p(1)});f({target:"Object",stat:!0,forced:T,sham:!y},{getPrototypeOf:function(A){return p(h(A))}})},function(x,E,r){var f=r(3),d=r(23),h=r(14),p=r(30),y=r(16),T=r(18),$=r(130),A=r(7),b=Object.groupBy,R=d("Object","create"),O=h([].push),C=!b||A(function(){return b("ab",function(w){return w}).a.length!==1});f({target:"Object",stat:!0,forced:C},{groupBy:function(D,L){y(D),p(L);var F=R(null),j=0;return $(D,function(U){var z=T(L(U,j++));z in F?O(F[z],U):F[z]=[U]}),F}})},function(x,E,r){var f=r(3),d=r(38);f({target:"Object",stat:!0},{hasOwn:d})},function(x,E,r){var f=r(3),d=r(323);f({target:"Object",stat:!0},{is:d})},function(x){x.exports=Object.is||function(r,f){return r===f?r!==0||1/r===1/f:r!==r&&f!==f}},function(x,E,r){var f=r(3),d=r(257);f({target:"Object",stat:!0,forced:Object.isExtensible!==d},{isExtensible:d})},function(x,E,r){var f=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isFrozen,$=y||d(function(){T(1)});f({target:"Object",stat:!0,forced:$},{isFrozen:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var f=r(3),d=r(7),h=r(20),p=r(15),y=r(258),T=Object.isSealed,$=y||d(function(){T(1)});f({target:"Object",stat:!0,forced:$},{isSealed:function(b){return!h(b)||y&&p(b)==="ArrayBuffer"?!0:T?T(b):!1}})},function(x,E,r){var f=r(3),d=r(39),h=r(73),p=r(7),y=p(function(){h(1)});f({target:"Object",stat:!0,forced:y},{keys:function($){return h(d($))}})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&f({target:"Object",proto:!0,forced:h},{__lookupGetter__:function(b){var R=p(this),O=y(b),C;do if(C=$(R,O))return C.get;while(R=T(R))}})},function(x,E,r){var f=r(3),d=r(6),h=r(308),p=r(39),y=r(18),T=r(128),$=r(5).f;d&&f({target:"Object",proto:!0,forced:h},{__lookupSetter__:function(b){var R=p(this),O=y(b),C;do if(C=$(R,O))return C.set;while(R=T(R))}})},function(x,E,r){var f=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.preventExtensions,$=y(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!p},{preventExtensions:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var f=r(6),d=r(77),h=r(20),p=r(116),y=r(39),T=r(16),$=Object.getPrototypeOf,A=Object.setPrototypeOf,b=Object.prototype,R="__proto__";if(f&&$&&A&&!(R in b))try{d(b,R,{configurable:!0,get:function(){return $(y(this))},set:function(C){var w=T(this);p(C)&&h(w)&&A(w,C)}})}catch(O){}},function(x,E,r){var f=r(3),d=r(20),h=r(256).onFreeze,p=r(259),y=r(7),T=Object.seal,$=y(function(){T(1)});f({target:"Object",stat:!0,forced:$,sham:!p},{seal:function(b){return T&&d(b)?T(h(b)):b}})},function(x,E,r){var f=r(3),d=r(113);f({target:"Object",stat:!0},{setPrototypeOf:d})},function(x,E,r){var f=r(70),d=r(47),h=r(335);f||d(Object.prototype,"toString",h,{unsafe:!0})},function(x,E,r){var f=r(70),d=r(69);x.exports=f?{}.toString:function(){return"[object "+d(this)+"]"}},function(x,E,r){var f=r(3),d=r(313).values;f({target:"Object",stat:!0},{values:function(p){return d(p)}})},function(x,E,r){var f=r(3),d=r(298);f({global:!0,forced:parseFloat!==d},{parseFloat:d})},function(x,E,r){var f=r(3),d=r(300);f({global:!0,forced:parseInt!==d},{parseInt:d})},function(x,E,r){r(340),r(354),r(356),r(357),r(358),r(359)},function(x,E,r){var f=r(3),d=r(36),h=r(182),p=r(4),y=r(8),T=r(47),$=r(113),A=r(82),b=r(193),R=r(30),O=r(21),C=r(20),w=r(210),D=r(219),L=r(341).set,F=r(344),j=r(349),U=r(350),z=r(346),X=r(51),B=r(351),V=r(352),W=r(353),J="Promise",Z=V.CONSTRUCTOR,Q=V.REJECTION_EVENT,nt=V.SUBCLASSING,rt=X.getterFor(J),q=X.set,tt=B&&B.prototype,et=B,lt=tt,yt=p.TypeError,dt=p.document,bt=p.process,Tt=W.f,Bt=Tt,Lt=!!(dt&&dt.createEvent&&p.dispatchEvent),Xt="unhandledrejection",Zt="rejectionhandled",Jt=0,ge=1,ce=2,ne=1,Mt=2,Vt,te,ie,re,le=function(St){var kt;return C(St)&&O(kt=St.then)?kt:!1},Re=function(St,kt){var Qt=kt.value,Yt=kt.state===ge,Gt=Yt?St.ok:St.fail,we=St.resolve,Ye=St.reject,ht=St.domain,Ct,Pt,ot;try{Gt?(Yt||(kt.rejection===Mt&&me(kt),kt.rejection=ne),Gt===!0?Ct=Qt:(ht&&ht.enter(),Ct=Gt(Qt),ht&&(ht.exit(),ot=!0)),Ct===St.promise?Ye(new yt("Promise-chain cycle")):(Pt=le(Ct))?y(Pt,Ct,we,Ye):we(Ct)):Ye(Qt)}catch(mt){ht&&!ot&&ht.exit(),Ye(mt)}},Ce=function(St,kt){St.notified||(St.notified=!0,F(function(){for(var Qt=St.reactions,Yt;Yt=Qt.get();)Re(Yt,St);St.notified=!1,kt&&!St.rejection&&oe(St)}))},xe=function(St,kt,Qt){var Yt,Gt;Lt?(Yt=dt.createEvent("Event"),Yt.promise=kt,Yt.reason=Qt,Yt.initEvent(St,!1,!0),p.dispatchEvent(Yt)):Yt={promise:kt,reason:Qt},!Q&&(Gt=p["on"+St])?Gt(Yt):St===Xt&&j("Unhandled promise rejection",Qt)},oe=function(St){y(L,p,function(){var kt=St.facade,Qt=St.value,Yt=Ae(St),Gt;if(Yt&&(Gt=U(function(){h?bt.emit("unhandledRejection",Qt,kt):xe(Xt,kt,Qt)}),St.rejection=h||Ae(St)?Mt:ne,Gt.error))throw Gt.value})},Ae=function(St){return St.rejection!==ne&&!St.parent},me=function(St){y(L,p,function(){var kt=St.facade;h?bt.emit("rejectionHandled",kt):xe(Zt,kt,St.value)})},ue=function(St,kt,Qt){return function(Yt){St(kt,Yt,Qt)}},Ot=function(St,kt,Qt){St.done||(St.done=!0,Qt&&(St=Qt),St.value=kt,St.state=ce,Ce(St,!0))},Ut=function(St,kt,Qt){if(!St.done){St.done=!0,Qt&&(St=Qt);try{if(St.facade===kt)throw new yt("Promise can't be resolved itself");var Yt=le(kt);Yt?F(function(){var Gt={done:!1};try{y(Yt,kt,ue(Ut,Gt,St),ue(Ot,Gt,St))}catch(we){Ot(Gt,we,St)}}):(St.value=kt,St.state=ge,Ce(St,!1))}catch(Gt){Ot({done:!1},Gt,St)}}};if(Z&&(et=function(kt){w(this,lt),R(kt),y(Vt,this);var Qt=rt(this);try{kt(ue(Ut,Qt),ue(Ot,Qt))}catch(Yt){Ot(Qt,Yt)}},lt=et.prototype,Vt=function(kt){q(this,{type:J,done:!1,notified:!1,parent:!1,reactions:new z,rejection:!1,state:Jt,value:void 0})},Vt.prototype=T(lt,"then",function(kt,Qt){var Yt=rt(this),Gt=Tt(D(this,et));return Yt.parent=!0,Gt.ok=O(kt)?kt:!0,Gt.fail=O(Qt)&&Qt,Gt.domain=h?bt.domain:void 0,Yt.state===Jt?Yt.reactions.add(Gt):F(function(){Re(Gt,Yt)}),Gt.promise}),te=function(){var St=new Vt,kt=rt(St);this.promise=St,this.resolve=ue(Ut,kt),this.reject=ue(Ot,kt)},W.f=Tt=function(St){return St===et||St===ie?new te(St):Bt(St)},!d&&O(B)&&tt!==Object.prototype)){re=tt.then,nt||T(tt,"then",function(kt,Qt){var Yt=this;return new et(function(Gt,we){y(re,Yt,Gt,we)}).then(kt,Qt)},{unsafe:!0});try{delete tt.constructor}catch(St){}$&&$(tt,lt)}f({global:!0,constructor:!0,wrap:!0,forced:Z},{Promise:et}),A(et,J,!1,!0),b(J)},function(x,E,r){var f=r(4),d=r(94),h=r(84),p=r(21),y=r(38),T=r(7),$=r(74),A=r(76),b=r(42),R=r(342),O=r(343),C=r(182),w=f.setImmediate,D=f.clearImmediate,L=f.process,F=f.Dispatch,j=f.Function,U=f.MessageChannel,z=f.String,X=0,B={},V="onreadystatechange",W,J,Z,Q;T(function(){W=f.location});var nt=function(et){if(y(B,et)){var lt=B[et];delete B[et],lt()}},rt=function(et){return function(){nt(et)}},q=function(et){nt(et.data)},tt=function(et){f.postMessage(z(et),W.protocol+"//"+W.host)};(!w||!D)&&(w=function(lt){R(arguments.length,1);var yt=p(lt)?lt:j(lt),dt=A(arguments,1);return B[++X]=function(){d(yt,void 0,dt)},J(X),X},D=function(lt){delete B[lt]},C?J=function(et){L.nextTick(rt(et))}:F&&F.now?J=function(et){F.now(rt(et))}:U&&!O?(Z=new U,Q=Z.port2,Z.port1.onmessage=q,J=h(Q.postMessage,Q)):f.addEventListener&&p(f.postMessage)&&!f.importScripts&&W&&W.protocol!=="file:"&&!T(tt)?(J=tt,f.addEventListener("message",q,!1)):V in b("script")?J=function(et){$.appendChild(b("script"))[V]=function(){$.removeChild(this),nt(et)}}:J=function(et){setTimeout(rt(et),0)}),x.exports={set:w,clear:D}},function(x){var E=TypeError;x.exports=function(r,f){if(r@^][^\s!#%&*+<=>@^]*>/,yt=/a/g,dt=/a/g,bt=new J(yt)!==yt,Tt=w.MISSED_STICKY,Bt=w.UNSUPPORTED_Y,Lt=f&&(!bt||Tt||B||V||F(function(){return dt[W]=!1,J(yt)!==yt||J(dt)===dt||String(J(yt,"i"))!=="/a/i"})),Xt=function(ne){for(var Mt=ne.length,Vt=0,te="",ie=!1,re;Vt<=Mt;Vt++){if(re=rt(ne,Vt),re==="\\"){te+=re+rt(ne,++Vt);continue}!ie&&re==="."?te+="[\\s\\S]":(re==="["?ie=!0:re==="]"&&(ie=!1),te+=re)}return te},Zt=function(ne){for(var Mt=ne.length,Vt=0,te="",ie=[],re=$(null),le=!1,Re=!1,Ce=0,xe="",oe;Vt<=Mt;Vt++){if(oe=rt(ne,Vt),oe==="\\")oe+=rt(ne,++Vt);else if(oe==="]")le=!1;else if(!le)switch(!0){case oe==="[":le=!0;break;case oe==="(":nt(lt,et(ne,Vt+1))&&(Vt+=2,Re=!0),te+=oe,Ce++;continue;case(oe===">"&&Re):if(xe===""||j(re,xe))throw new Q("Invalid capture group name");re[xe]=!0,ie[ie.length]=[xe,Ce],Re=!1,xe="";continue}Re?xe+=oe:te+=oe}return[te,ie]};if(p("RegExp",Lt)){for(var Jt=function(Mt,Vt){var te=b(Z,this),ie=R(Mt),re=Vt===void 0,le=[],Re=Mt,Ce,xe,oe,Ae,me,ue;if(!te&&ie&&re&&Mt.constructor===Jt)return Mt;if((ie||b(Z,Mt))&&(Mt=Mt.source,re&&(Vt=C(Re))),Mt=Mt===void 0?"":O(Mt),Vt=Vt===void 0?"":O(Vt),Re=Mt,B&&"dotAll"in yt&&(xe=!!Vt&&tt(Vt,"s")>-1,xe&&(Vt=q(Vt,/s/g,""))),Ce=Vt,Tt&&"sticky"in yt&&(oe=!!Vt&&tt(Vt,"y")>-1,oe&&Bt&&(Vt=q(Vt,/y/g,""))),V&&(Ae=Zt(Mt),Mt=Ae[0],le=Ae[1]),me=y(J(Mt,Vt),te?this:Z,Jt),(xe||oe||le.length)&&(ue=U(me),xe&&(ue.dotAll=!0,ue.raw=Jt(Xt(Mt),Ce)),oe&&(ue.sticky=!0),le.length&&(ue.groups=le)),Mt!==Re)try{T(me,"source",Re===""?"(?:)":Re)}catch(Ot){}return me},ge=A(J),ce=0;ge.length>ce;)D(Jt,J,ge[ce++]);Z.constructor=Jt,Jt.prototype=Z,L(d,"RegExp",Jt,{constructor:!0})}z("RegExp")},function(x,E,r){var f=r(20),d=r(15),h=r(33),p=h("match");x.exports=function(y){var T;return f(y)&&((T=y[p])!==void 0?!!T:d(y)==="RegExp")}},function(x,E,r){var f=r(8),d=r(38),h=r(24),p=r(383),y=RegExp.prototype;x.exports=function(T){var $=T.flags;return $===void 0&&!("flags"in y)&&!d(T,"flags")&&h(y,T)?f(p,T):$}},function(x,E,r){var f=r(46);x.exports=function(){var d=f(this),h="";return d.hasIndices&&(h+="d"),d.global&&(h+="g"),d.ignoreCase&&(h+="i"),d.multiline&&(h+="m"),d.dotAll&&(h+="s"),d.unicode&&(h+="u"),d.unicodeSets&&(h+="v"),d.sticky&&(h+="y"),h}},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp,p=f(function(){var $=h("a","y");return $.lastIndex=2,$.exec("abcd")!==null}),y=p||f(function(){return!h("a","y").sticky}),T=p||f(function(){var $=h("^r","gy");return $.lastIndex=2,$.exec("str")!==null});x.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:p}},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp;x.exports=f(function(){var p=h(".","s");return!(p.dotAll&&p.test(` +`)&&p.flags==="s")})},function(x,E,r){var f=r(7),d=r(4),h=d.RegExp;x.exports=f(function(){var p=h("(?b)","g");return p.exec("b").groups.a!=="b"||"b".replace(p,"$c")!=="bc"})},function(x,E,r){var f=r(6),d=r(385),h=r(15),p=r(77),y=r(51).get,T=RegExp.prototype,$=TypeError;f&&d&&p(T,"dotAll",{configurable:!0,get:function(){if(this!==T){if(h(this)==="RegExp")return!!y(this).dotAll;throw new $("Incompatible receiver, RegExp required")}}})},function(x,E,r){var f=r(3),d=r(389);f({target:"RegExp",proto:!0,forced:/./.exec!==d},{exec:d})},function(x,E,r){var f=r(8),d=r(14),h=r(68),p=r(383),y=r(384),T=r(34),$=r(71),A=r(51).get,b=r(385),R=r(386),O=T("native-string-replace",String.prototype.replace),C=RegExp.prototype.exec,w=C,D=d("".charAt),L=d("".indexOf),F=d("".replace),j=d("".slice),U=function(){var V=/a/,W=/b*/g;return f(C,V,"a"),f(C,W,"a"),V.lastIndex!==0||W.lastIndex!==0}(),z=y.BROKEN_CARET,X=/()??/.exec("")[1]!==void 0,B=U||X||z||b||R;B&&(w=function(W){var J=this,Z=A(J),Q=h(W),nt=Z.raw,rt,q,tt,et,lt,yt,dt;if(nt)return nt.lastIndex=J.lastIndex,rt=f(w,nt,Q),J.lastIndex=nt.lastIndex,rt;var bt=Z.groups,Tt=z&&J.sticky,Bt=f(p,J),Lt=J.source,Xt=0,Zt=Q;if(Tt&&(Bt=F(Bt,"y",""),L(Bt,"g")===-1&&(Bt+="g"),Zt=j(Q,J.lastIndex),J.lastIndex>0&&(!J.multiline||J.multiline&&D(Q,J.lastIndex-1)!==` +`)&&(Lt="(?: "+Lt+")",Zt=" "+Zt,Xt++),q=new RegExp("^(?:"+Lt+")",Bt)),X&&(q=new RegExp("^"+Lt+"$(?!\\s)",Bt)),U&&(tt=J.lastIndex),et=f(C,Tt?q:J,Zt),Tt?et?(et.input=j(et.input,Xt),et[0]=j(et[0],Xt),et.index=J.lastIndex,J.lastIndex+=et[0].length):J.lastIndex=0:U&&et&&(J.lastIndex=J.global?et.index+et[0].length:tt),X&&et&&et.length>1&&f(O,et[0],q,function(){for(lt=1;ltw.size?T(w.getIterator(),function(L){b(C,L)&&A(D,L)}):y(C,function(L){w.includes(L)&&A(D,L)}),D}},function(x,E,r){var f=r(3),d=r(410),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isDisjointFrom")},{isDisjointFrom:d})},function(x,E,r){var f=r(398),d=r(399).has,h=r(403),p=r(404),y=r(401),T=r(402),$=r(135);x.exports=function(b){var R=f(this),O=p(b);if(h(R)<=O.size)return y(R,function(w){if(O.includes(w))return!1},!0)!==!1;var C=O.getIterator();return T(C,function(w){if(d(R,w))return $(C,"normal",!1)})!==!1}},function(x,E,r){var f=r(3),d=r(412),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isSubsetOf")},{isSubsetOf:d})},function(x,E,r){var f=r(398),d=r(403),h=r(401),p=r(404);x.exports=function(T){var $=f(this),A=p(T);return d($)>A.size?!1:h($,function(b){if(!A.includes(b))return!1},!0)!==!1}},function(x,E,r){var f=r(3),d=r(414),h=r(406);f({target:"Set",proto:!0,real:!0,forced:!h("isSupersetOf")},{isSupersetOf:d})},function(x,E,r){var f=r(398),d=r(399).has,h=r(403),p=r(404),y=r(402),T=r(135);x.exports=function(A){var b=f(this),R=p(A);if(h(b)=0?w:C+w;return D<0||D>=C?void 0:$(O,D)}})},function(x,E,r){var f=r(3),d=r(421).codeAt;f({target:"String",proto:!0},{codePointAt:function(p){return d(this,p)}})},function(x,E,r){var f=r(14),d=r(61),h=r(68),p=r(16),y=f("".charAt),T=f("".charCodeAt),$=f("".slice),A=function(b){return function(R,O){var C=h(p(R)),w=d(O),D=C.length,L,F;return w<0||w>=D?b?"":void 0:(L=T(C,w),L<55296||L>56319||w+1===D||(F=T(C,w+1))<56320||F>57343?b?y(C,w):L:b?$(C,w,w+2):(L-55296<<10)+(F-56320)+65536)}};x.exports={codeAt:A(!1),charAt:A(!0)}},function(x,E,r){var f=r(3),d=r(85),h=r(5).f,p=r(64),y=r(68),T=r(423),$=r(16),A=r(424),b=r(36),R=d("".slice),O=Math.min,C=A("endsWith"),w=!b&&!C&&!!function(){var D=h(String.prototype,"endsWith");return D&&!D.writable}();f({target:"String",proto:!0,forced:!w&&!C},{endsWith:function(L){var F=y($(this));T(L);var j=arguments.length>1?arguments[1]:void 0,U=F.length,z=j===void 0?U:O(p(j),U),X=y(L);return R(F,z-X.length,z)===X}})},function(x,E,r){var f=r(381),d=TypeError;x.exports=function(h){if(f(h))throw new d("The method doesn't accept regular expressions");return h}},function(x,E,r){var f=r(33),d=f("match");x.exports=function(h){var p=/./;try{"/./"[h](p)}catch(y){try{return p[d]=!1,"/./"[h](p)}catch(T){}}return!1}},function(x,E,r){var f=r(3),d=r(14),h=r(60),p=RangeError,y=String.fromCharCode,T=String.fromCodePoint,$=d([].join),A=!!T&&T.length!==1;f({target:"String",stat:!0,arity:1,forced:A},{fromCodePoint:function(R){for(var O=[],C=arguments.length,w=0,D;C>w;){if(D=+arguments[w++],h(D,1114111)!==D)throw new p(D+" is not a valid code point");O[w]=D<65536?y(D):y(((D-=65536)>>10)+55296,D%1024+56320)}return $(O,"")}})},function(x,E,r){var f=r(3),d=r(14),h=r(423),p=r(16),y=r(68),T=r(424),$=d("".indexOf);f({target:"String",proto:!0,forced:!T("includes")},{includes:function(b){return!!~$(y(p(this)),y(h(b)),arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(68),y=d("".charCodeAt);f({target:"String",proto:!0},{isWellFormed:function(){for(var $=p(h(this)),A=$.length,b=0;b=56320||++b>=A||(y($,b)&64512)!==56320))return!1}return!0}})},function(x,E,r){var f=r(421).charAt,d=r(68),h=r(51),p=r(169),y=r(172),T="String Iterator",$=h.set,A=h.getterFor(T);p(String,"String",function(b){$(this,{type:T,string:d(b),index:0})},function(){var R=A(this),O=R.string,C=R.index,w;return C>=O.length?y(void 0,!0):(w=f(O,C),R.index+=w.length,y(w,!1))})},function(x,E,r){var f=r(8),d=r(430),h=r(46),p=r(17),y=r(64),T=r(68),$=r(16),A=r(29),b=r(431),R=r(432);d("match",function(O,C,w){return[function(L){var F=$(this),j=p(L)?void 0:A(L,O);return j?f(j,L,F):new RegExp(L)[O](T(F))},function(D){var L=h(this),F=T(D),j=w(C,L,F);if(j.done)return j.value;if(!L.global)return R(L,F);var U=L.unicode;L.lastIndex=0;for(var z=[],X=0,B;(B=R(L,F))!==null;){var V=T(B[0]);z[X]=V,V===""&&(L.lastIndex=b(F,y(L.lastIndex),U)),X++}return X===0?null:z}]})},function(x,E,r){r(388);var f=r(8),d=r(47),h=r(389),p=r(7),y=r(33),T=r(43),$=y("species"),A=RegExp.prototype;x.exports=function(b,R,O,C){var w=y(b),D=!p(function(){var U={};return U[w]=function(){return 7},""[b](U)!==7}),L=D&&!p(function(){var U=!1,z=/a/;return b==="split"&&(z={},z.constructor={},z.constructor[$]=function(){return z},z.flags="",z[w]=/./[w]),z.exec=function(){return U=!0,null},z[w](""),!U});if(!D||!L||O){var F=/./[w],j=R(w,""[b],function(U,z,X,B,V){var W=z.exec;return W===h||W===A.exec?D&&!V?{done:!0,value:f(F,z,X,B)}:{done:!0,value:f(U,X,z,B)}:{done:!1}});d(String.prototype,b,j[0]),d(A,w,j[1])}C&&T(A[w],"sham",!0)}},function(x,E,r){var f=r(421).charAt;x.exports=function(d,h,p){return h+(p?f(d,h).length:1)}},function(x,E,r){var f=r(8),d=r(46),h=r(21),p=r(15),y=r(389),T=TypeError;x.exports=function($,A){var b=$.exec;if(h(b)){var R=f(b,$,A);return R!==null&&d(R),R}if(p($)==="RegExp")return f(y,$,A);throw new T("RegExp#exec called on incompatible receiver")}},function(x,E,r){var f=r(3),d=r(8),h=r(85),p=r(170),y=r(172),T=r(16),$=r(64),A=r(68),b=r(46),R=r(17),O=r(15),C=r(381),w=r(382),D=r(29),L=r(47),F=r(7),j=r(33),U=r(219),z=r(431),X=r(432),B=r(51),V=r(36),W=j("matchAll"),J="RegExp String",Z=J+" Iterator",Q=B.set,nt=B.getterFor(Z),rt=RegExp.prototype,q=TypeError,tt=h("".indexOf),et=h("".matchAll),lt=!!et&&!F(function(){et("a",/./)}),yt=p(function(Tt,Bt,Lt,Xt){Q(this,{type:Z,regexp:Tt,string:Bt,global:Lt,unicode:Xt,done:!1})},J,function(){var Tt=nt(this);if(Tt.done)return y(void 0,!0);var Bt=Tt.regexp,Lt=Tt.string,Xt=X(Bt,Lt);return Xt===null?(Tt.done=!0,y(void 0,!0)):Tt.global?(A(Xt[0])===""&&(Bt.lastIndex=z(Lt,$(Bt.lastIndex),Tt.unicode)),y(Xt,!1)):(Tt.done=!0,y(Xt,!1))}),dt=function(bt){var Tt=b(this),Bt=A(bt),Lt=U(Tt,RegExp),Xt=A(w(Tt)),Zt,Jt,ge;return Zt=new Lt(Lt===RegExp?Tt.source:Tt,Xt),Jt=!!~tt(Xt,"g"),ge=!!~tt(Xt,"u"),Zt.lastIndex=$(Tt.lastIndex),new yt(Zt,Bt,Jt,ge)};f({target:"String",proto:!0,forced:lt},{matchAll:function(Tt){var Bt=T(this),Lt,Xt,Zt,Jt;if(R(Tt)){if(lt)return et(Bt,Tt)}else{if(C(Tt)&&(Lt=A(T(w(Tt))),!~tt(Lt,"g")))throw new q("`.matchAll` does not allow non-global regexes");if(lt)return et(Bt,Tt);if(Zt=D(Tt,W),Zt===void 0&&V&&O(Tt)==="RegExp"&&(Zt=dt),Zt)return d(Zt,Tt,Bt)}return Xt=A(Bt),Jt=new RegExp(Tt,"g"),V?d(dt,Jt,Xt):Jt[W](Xt)}}),V||W in rt||L(rt,W,dt)},function(x,E,r){var f=r(3),d=r(240).end,h=r(435);f({target:"String",proto:!0,forced:h},{padEnd:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(28);x.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(f)},function(x,E,r){var f=r(3),d=r(240).start,h=r(435);f({target:"String",proto:!0,forced:h},{padStart:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}})},function(x,E,r){var f=r(3),d=r(14),h=r(12),p=r(39),y=r(68),T=r(63),$=d([].push),A=d([].join);f({target:"String",stat:!0},{raw:function(R){var O=h(p(R).raw),C=T(O);if(!C)return"";for(var w=arguments.length,D=[],L=0;;){if($(D,y(O[L++])),L===C)return A(D,"");L")!=="7"});p("replace",function(q,tt,et){var lt=nt?"$":"$0";return[function(dt,bt){var Tt=C(this),Bt=A(dt)?void 0:D(dt,U);return Bt?d(Bt,dt,Tt,bt):d(tt,O(Tt),dt,bt)},function(yt,dt){var bt=T(this),Tt=O(yt);if(typeof dt=="string"&&W(dt,lt)===-1&&W(dt,"$<")===-1){var Bt=et(tt,bt,Tt,dt);if(Bt.done)return Bt.value}var Lt=$(dt);Lt||(dt=O(dt));var Xt=bt.global,Zt;Xt&&(Zt=bt.unicode,bt.lastIndex=0);for(var Jt=[],ge;ge=F(bt,Tt),!(ge===null||(V(Jt,ge),!Xt));){var ce=O(ge[0]);ce===""&&(bt.lastIndex=w(Tt,R(bt.lastIndex),Zt))}for(var ne="",Mt=0,Vt=0;Vt=Mt&&(ne+=J(Tt,Mt,ie)+le,Mt=ie+te.length)}return ne+J(Tt,Mt)}]},!rt||!Q||nt)},function(x,E,r){var f=r(14),d=r(39),h=Math.floor,p=f("".charAt),y=f("".replace),T=f("".slice),$=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,A=/\$([$&'`]|\d{1,2})/g;x.exports=function(b,R,O,C,w,D){var L=O+b.length,F=C.length,j=A;return w!==void 0&&(w=d(w),j=$),y(D,j,function(U,z){var X;switch(p(z,0)){case"$":return"$";case"&":return b;case"`":return T(R,0,O);case"'":return T(R,L);case"<":X=w[T(z,1,-1)];break;default:var B=+z;if(B===0)return U;if(B>F){var V=h(B/10);return V===0?U:V<=F?C[V-1]===void 0?p(z,1):C[V-1]+p(z,1):U}X=C[B-1]}return X===void 0?"":X})}},function(x,E,r){var f=r(3),d=r(8),h=r(14),p=r(16),y=r(21),T=r(17),$=r(381),A=r(68),b=r(29),R=r(382),O=r(440),C=r(33),w=r(36),D=C("replace"),L=TypeError,F=h("".indexOf),j=h("".replace),U=h("".slice),z=Math.max;f({target:"String",proto:!0},{replaceAll:function(B,V){var W=p(this),J,Z,Q,nt,rt,q,tt,et,lt,yt=0,dt=0,bt="";if(!T(B)){if(J=$(B),J&&(Z=A(p(R(B))),!~F(Z,"g")))throw new L("`.replaceAll` does not allow non-global regexes");if(Q=b(B,D),Q)return d(Q,B,W,V);if(w&&J)return j(A(W),B,V)}for(nt=A(W),rt=A(B),q=y(V),q||(V=A(V)),tt=rt.length,et=z(1,tt),yt=F(nt,rt);yt!==-1;)lt=q?A(V(rt,yt,nt)):O(rt,nt,yt,[],void 0,V),bt+=U(nt,dt,yt)+lt,dt=yt+tt,yt=yt+et>nt.length?-1:F(nt,rt,yt+et);return dt1||"".split(/.?/).length;h("split",function(V,W,J){var Z="0".split(void 0,0).length?function(Q,nt){return Q===void 0&&nt===0?[]:f(W,this,Q,nt)}:W;return[function(nt,rt){var q=T(this),tt=y(nt)?void 0:O(nt,V);return tt?f(tt,nt,q,rt):f(Z,R(q),nt,rt)},function(Q,nt){var rt=p(this),q=R(Q);if(!B){var tt=J(Z,rt,q,nt,Z!==W);if(tt.done)return tt.value}var et=$(rt,RegExp),lt=rt.unicode,yt=(rt.ignoreCase?"i":"")+(rt.multiline?"m":"")+(rt.unicode?"u":"")+(L?"g":"y"),dt=new et(L?"^(?:"+rt.source+")":rt,yt),bt=nt===void 0?F:nt>>>0;if(bt===0)return[];if(q.length===0)return C(dt,q)===null?[q]:[];for(var Tt=0,Bt=0,Lt=[];Bt1?arguments[1]:void 0,F.length)),U=y(L);return R(F,j,j+U.length)===U}})},function(x,E,r){var f=r(3),d=r(14),h=r(16),p=r(61),y=r(68),T=d("".slice),$=Math.max,A=Math.min,b=!"".substr||"ab".substr(-1)!=="b";f({target:"String",proto:!0,forced:b},{substr:function(O,C){var w=y(h(this)),D=w.length,L=p(O),F,j;return L===1/0&&(L=0),L<0&&(L=$(D+L,0)),F=C===void 0?D:p(C),F<=0||F===1/0?"":(j=A(L+F,D),L>=j?"":T(w,L,j))}})},function(x,E,r){var f=r(3),d=r(8),h=r(14),p=r(16),y=r(68),T=r(7),$=Array,A=h("".charAt),b=h("".charCodeAt),R=h([].join),O="".toWellFormed,C="\uFFFD",w=O&&T(function(){return d(O,1)!=="1"});f({target:"String",proto:!0,forced:w},{toWellFormed:function(){var L=y(p(this));if(w)return d(O,L);for(var F=L.length,j=$(F),U=0;U=56320||U+1>=F||(b(L,U+1)&64512)!==56320?j[U]=C:(j[U]=A(L,U),j[++U]=A(L,U))}return R(j,"")}})},function(x,E,r){var f=r(3),d=r(286).trim,h=r(448);f({target:"String",proto:!0,forced:h("trim")},{trim:function(){return d(this)}})},function(x,E,r){var f=r(49).PROPER,d=r(7),h=r(287),p="\u200B\x85\u180E";x.exports=function(y){return d(function(){return!!h[y]()||p[y]()!==p||f&&h[y].name!==y})}},function(x,E,r){r(450);var f=r(3),d=r(451);f({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==d},{trimEnd:d})},function(x,E,r){var f=r(3),d=r(451);f({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==d},{trimRight:d})},function(x,E,r){var f=r(286).end,d=r(448);x.exports=d("trimEnd")?function(){return f(this)}:"".trimEnd},function(x,E,r){r(453);var f=r(3),d=r(454);f({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==d},{trimStart:d})},function(x,E,r){var f=r(3),d=r(454);f({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==d},{trimLeft:d})},function(x,E,r){var f=r(286).start,d=r(448);x.exports=d("trimStart")?function(){return f(this)}:"".trimStart},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("anchor")},{anchor:function(y){return d(this,"a","name",y)}})},function(x,E,r){var f=r(14),d=r(16),h=r(68),p=/"/g,y=f("".replace);x.exports=function(T,$,A,b){var R=h(d(T)),O="<"+$;return A!==""&&(O+=" "+A+'="'+y(h(b),p,""")+'"'),O+">"+R+""}},function(x,E,r){var f=r(7);x.exports=function(d){return f(function(){var h=""[d]('"');return h!==h.toLowerCase()||h.split('"').length>3})}},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("big")},{big:function(){return d(this,"big","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("blink")},{blink:function(){return d(this,"blink","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("bold")},{bold:function(){return d(this,"b","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fixed")},{fixed:function(){return d(this,"tt","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fontcolor")},{fontcolor:function(y){return d(this,"font","color",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("fontsize")},{fontsize:function(y){return d(this,"font","size",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("italics")},{italics:function(){return d(this,"i","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("link")},{link:function(y){return d(this,"a","href",y)}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("small")},{small:function(){return d(this,"small","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("strike")},{strike:function(){return d(this,"strike","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("sub")},{sub:function(){return d(this,"sub","","")}})},function(x,E,r){var f=r(3),d=r(456),h=r(457);f({target:"String",proto:!0,forced:h("sup")},{sup:function(){return d(this,"sup","","")}})},function(x,E,r){var f=r(471);f("Float32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(3),d=r(4),h=r(8),p=r(6),y=r(472),T=r(217),$=r(207),A=r(210),b=r(11),R=r(43),O=r(292),C=r(64),w=r(211),D=r(473),L=r(475),F=r(18),j=r(38),U=r(69),z=r(20),X=r(22),B=r(71),V=r(24),W=r(113),J=r(57).f,Z=r(476),Q=r(83).forEach,nt=r(193),rt=r(77),q=r(44),tt=r(5),et=r(198),lt=r(51),yt=r(118),dt=lt.get,bt=lt.set,Tt=lt.enforce,Bt=q.f,Lt=tt.f,Xt=d.RangeError,Zt=$.ArrayBuffer,Jt=Zt.prototype,ge=$.DataView,ce=T.NATIVE_ARRAY_BUFFER_VIEWS,ne=T.TYPED_ARRAY_TAG,Mt=T.TypedArray,Vt=T.TypedArrayPrototype,te=T.isTypedArray,ie="BYTES_PER_ELEMENT",re="Wrong length",le=function(Ae,me){rt(Ae,me,{configurable:!0,get:function(){return dt(this)[me]}})},Re=function(Ae){var me;return V(Jt,Ae)||(me=U(Ae))==="ArrayBuffer"||me==="SharedArrayBuffer"},Ce=function(Ae,me){return te(Ae)&&!X(me)&&me in Ae&&O(+me)&&me>=0},xe=function(me,ue){return ue=F(ue),Ce(me,ue)?b(2,me[ue]):Lt(me,ue)},oe=function(me,ue,Ot){return ue=F(ue),Ce(me,ue)&&z(Ot)&&j(Ot,"value")&&!j(Ot,"get")&&!j(Ot,"set")&&!Ot.configurable&&(!j(Ot,"writable")||Ot.writable)&&(!j(Ot,"enumerable")||Ot.enumerable)?(me[ue]=Ot.value,me):Bt(me,ue,Ot)};p?(ce||(tt.f=xe,q.f=oe,le(Vt,"buffer"),le(Vt,"byteOffset"),le(Vt,"byteLength"),le(Vt,"length")),f({target:"Object",stat:!0,forced:!ce},{getOwnPropertyDescriptor:xe,defineProperty:oe}),x.exports=function(Ae,me,ue){var Ot=Ae.match(/\d+/)[0]/8,Ut=Ae+(ue?"Clamped":"")+"Array",St="get"+Ae,kt="set"+Ae,Qt=d[Ut],Yt=Qt,Gt=Yt&&Yt.prototype,we={},Ye=function(ot,mt){var ct=dt(ot);return ct.view[St](mt*Ot+ct.byteOffset,!0)},ht=function(ot,mt,ct){var Nt=dt(ot);Nt.view[kt](mt*Ot+Nt.byteOffset,ue?L(ct):ct,!0)},Ct=function(ot,mt){Bt(ot,mt,{get:function(){return Ye(this,mt)},set:function(ct){return ht(this,mt,ct)},enumerable:!0})};ce?y&&(Yt=me(function(ot,mt,ct,Nt){return A(ot,Gt),yt(function(){return z(mt)?Re(mt)?Nt!==void 0?new Qt(mt,D(ct,Ot),Nt):ct!==void 0?new Qt(mt,D(ct,Ot)):new Qt(mt):te(mt)?et(Yt,mt):h(Z,Yt,mt):new Qt(w(mt))}(),ot,Yt)}),W&&W(Yt,Mt),Q(J(Qt),function(ot){ot in Yt||R(Yt,ot,Qt[ot])}),Yt.prototype=Gt):(Yt=me(function(ot,mt,ct,Nt){A(ot,Gt);var qt=0,se=0,Te,$e,ye;if(!z(mt))ye=w(mt),$e=ye*Ot,Te=new Zt($e);else if(Re(mt)){Te=mt,se=D(ct,Ot);var sn=mt.byteLength;if(Nt===void 0){if(sn%Ot)throw new Xt(re);if($e=sn-se,$e<0)throw new Xt(re)}else if($e=C(Nt)*Ot,$e+se>sn)throw new Xt(re);ye=$e/Ot}else return te(mt)?et(Yt,mt):h(Z,Yt,mt);for(bt(ot,{buffer:Te,byteOffset:se,byteLength:$e,length:ye,view:new ge(Te)});qt255?255:f&255}},function(x,E,r){var f=r(84),d=r(8),h=r(220),p=r(39),y=r(63),T=r(133),$=r(134),A=r(131),b=r(477),R=r(217).aTypedArrayConstructor,O=r(478);x.exports=function(w){var D=h(this),L=p(w),F=arguments.length,j=F>1?arguments[1]:void 0,U=j!==void 0,z=$(L),X,B,V,W,J,Z,Q,nt;if(z&&!A(z))for(Q=T(L,z),nt=Q.next,L=[];!(Z=d(nt,Q)).done;)L.push(Z.value);for(U&&F>2&&(j=f(j,arguments[2])),B=y(L),V=new(R(D))(B),W=b(V),X=0;B>X;X++)J=U?j(L[X],X):L[X],V[X]=W?O(J):+J;return V}},function(x,E,r){var f=r(69);x.exports=function(d){var h=f(d);return h==="BigInt64Array"||h==="BigUint64Array"}},function(x,E,r){var f=r(19),d=TypeError;x.exports=function(h){var p=f(h,"number");if(typeof p=="number")throw new d("Can't convert number to bigint");return BigInt(p)}},function(x,E,r){var f=r(471);f("Float64",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Int32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint8",function(d){return function(p,y,T){return d(this,p,y,T)}},!0)},function(x,E,r){var f=r(471);f("Uint16",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(471);f("Uint32",function(d){return function(p,y,T){return d(this,p,y,T)}})},function(x,E,r){var f=r(217),d=r(63),h=r(61),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("at",function($){var A=p(this),b=d(A),R=h($),O=R>=0?R:b+R;return O<0||O>=b?void 0:A[O]})},function(x,E,r){var f=r(14),d=r(217),h=r(144),p=f(h),y=d.aTypedArray,T=d.exportTypedArrayMethod;T("copyWithin",function(A,b){return p(y(this),A,b,arguments.length>2?arguments[2]:void 0)})},function(x,E,r){var f=r(217),d=r(83).every,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("every",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(149),h=r(478),p=r(69),y=r(8),T=r(14),$=r(7),A=f.aTypedArray,b=f.exportTypedArrayMethod,R=T("".slice),O=$(function(){var C=0;return new Int8Array(2).fill({valueOf:function(){return C++}}),C!==1});b("fill",function(w){var D=arguments.length;A(this);var L=R(p(this),0,3)==="Big"?h(w):+w;return y(d,this,L,D>1?arguments[1]:void 0,D>2?arguments[2]:void 0)},O)},function(x,E,r){var f=r(217),d=r(83).filter,h=r(492),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("filter",function($){var A=d(p(this),$,arguments.length>1?arguments[1]:void 0);return h(this,A)})},function(x,E,r){var f=r(198),d=r(493);x.exports=function(h,p){return f(d(h),p)}},function(x,E,r){var f=r(217),d=r(219),h=f.aTypedArrayConstructor,p=f.getTypedArrayConstructor;x.exports=function(y){return h(d(y,p(y)))}},function(x,E,r){var f=r(217),d=r(83).find,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("find",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(83).findIndex,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(154).findLast,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findLast",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(154).findLastIndex,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("findLastIndex",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(83).forEach,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("forEach",function(T){d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(472),d=r(217).exportTypedArrayStaticMethod,h=r(476);d("from",h,f)},function(x,E,r){var f=r(217),d=r(59).includes,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("includes",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(59).indexOf,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("indexOf",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(4),d=r(7),h=r(14),p=r(217),y=r(168),T=r(33),$=T("iterator"),A=f.Uint8Array,b=h(y.values),R=h(y.keys),O=h(y.entries),C=p.aTypedArray,w=p.exportTypedArrayMethod,D=A&&A.prototype,L=!d(function(){D[$].call([1])}),F=!!D&&D.values&&D[$]===D.values&&D.values.name==="values",j=function(){return b(C(this))};w("entries",function(){return O(C(this))},L),w("keys",function(){return R(C(this))},L),w("values",j,L||!F,{name:"values"}),w($,j,L||!F,{name:"values"})},function(x,E,r){var f=r(217),d=r(14),h=f.aTypedArray,p=f.exportTypedArrayMethod,y=d([].join);p("join",function($){return y(h(this),$)})},function(x,E,r){var f=r(217),d=r(94),h=r(175),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("lastIndexOf",function($){var A=arguments.length;return d(h,p(this),A>1?[$,arguments[1]]:[$])})},function(x,E,r){var f=r(217),d=r(83).map,h=r(493),p=f.aTypedArray,y=f.exportTypedArrayMethod;y("map",function($){return d(p(this),$,arguments.length>1?arguments[1]:void 0,function(A,b){return new(h(A))(b)})})},function(x,E,r){var f=r(217),d=r(472),h=f.aTypedArrayConstructor,p=f.exportTypedArrayStaticMethod;p("of",function(){for(var T=0,$=arguments.length,A=new(h(this))($);$>T;)A[T]=arguments[T++];return A},d)},function(x,E,r){var f=r(217),d=r(181).left,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduce",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=r(181).right,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("reduceRight",function(T){var $=arguments.length;return d(h(this),T,$,$>1?arguments[1]:void 0)})},function(x,E,r){var f=r(217),d=f.aTypedArray,h=f.exportTypedArrayMethod,p=Math.floor;h("reverse",function(){for(var T=this,$=d(T).length,A=p($/2),b=0,R;b1?arguments[1]:void 0,1),z=T(j);if(D)return d(O,this,z,U);var X=this.length,B=p(z),V=0;if(B+U>X)throw new A("Wrong length");for(;Vw;)L[w]=O[w++];return L},$)},function(x,E,r){var f=r(217),d=r(83).some,h=f.aTypedArray,p=f.exportTypedArrayMethod;p("some",function(T){return d(h(this),T,arguments.length>1?arguments[1]:void 0)})},function(x,E,r){var f=r(4),d=r(85),h=r(7),p=r(30),y=r(188),T=r(217),$=r(189),A=r(190),b=r(27),R=r(191),O=T.aTypedArray,C=T.exportTypedArrayMethod,w=f.Uint16Array,D=w&&d(w.prototype.sort),L=!!D&&!(h(function(){D(new w(2),null)})&&h(function(){D(new w(2),{})})),F=!!D&&!h(function(){if(b)return b<74;if($)return $<67;if(A)return!0;if(R)return R<602;var U=new w(516),z=Array(516),X,B;for(X=0;X<516;X++)B=X%4,U[X]=515-X,z[X]=X-2*B+3;for(D(U,function(V,W){return(V/4|0)-(W/4|0)}),X=0;X<516;X++)if(U[X]!==z[X])return!0}),j=function(U){return function(z,X){return U!==void 0?+U(z,X)||0:X!==X?-1:z!==z?1:z===0&&X===0?1/z>0&&1/X<0?1:-1:z>X}};C("sort",function(z){return z!==void 0&&p(z),F?D(this,z):y(O(this),j(z))},!F||L)},function(x,E,r){var f=r(217),d=r(64),h=r(60),p=r(493),y=f.aTypedArray,T=f.exportTypedArrayMethod;T("subarray",function(A,b){var R=y(this),O=R.length,C=h(A,O),w=p(R);return new w(R.buffer,R.byteOffset+C*R.BYTES_PER_ELEMENT,d((b===void 0?O:h(b,O))-C))})},function(x,E,r){var f=r(4),d=r(94),h=r(217),p=r(7),y=r(76),T=f.Int8Array,$=h.aTypedArray,A=h.exportTypedArrayMethod,b=[].toLocaleString,R=!!T&&p(function(){b.call(new T(1))}),O=p(function(){return[1,2].toLocaleString()!==new T([1,2]).toLocaleString()})||!p(function(){T.prototype.toLocaleString.call([1,2])});A("toLocaleString",function(){return d(b,R?y($(this)):$(this),y(arguments))},O)},function(x,E,r){var f=r(196),d=r(217),h=d.aTypedArray,p=d.exportTypedArrayMethod,y=d.getTypedArrayConstructor;p("toReversed",function(){return f(h(this),y(this))})},function(x,E,r){var f=r(217),d=r(14),h=r(30),p=r(198),y=f.aTypedArray,T=f.getTypedArrayConstructor,$=f.exportTypedArrayMethod,A=d(f.TypedArrayPrototype.sort);$("toSorted",function(R){R!==void 0&&h(R);var O=y(this),C=p(T(O),O);return A(C,R)})},function(x,E,r){var f=r(217).exportTypedArrayMethod,d=r(7),h=r(4),p=r(14),y=h.Uint8Array,T=y&&y.prototype||{},$=[].toString,A=p([].join);d(function(){$.call({})})&&($=function(){return A(this)});var b=T.toString!==$;f("toString",$,b)},function(x,E,r){var f=r(205),d=r(217),h=r(477),p=r(61),y=r(478),T=d.aTypedArray,$=d.getTypedArrayConstructor,A=d.exportTypedArrayMethod,b=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(R){return R===8}}();A("with",function(R,O){var C=T(this),w=p(R),D=h(C)?y(O):+O;return f(C,$(C),w,D)},!b)},function(x,E,r){var f=r(3),d=r(14),h=r(68),p=String.fromCharCode,y=d("".charAt),T=d(/./.exec),$=d("".slice),A=/^[\da-f]{2}$/i,b=/^[\da-f]{4}$/i;f({global:!0},{unescape:function(O){for(var C=h(O),w="",D=C.length,L=0,F,j;L>(-2*q&6)));return nt}})},function(x){var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=E+"+/",f=E+"-_",d=function(h){for(var p={},y=0;y<64;y++)p[h.charAt(y)]=y;return p};x.exports={i2c:r,c2i:d(r),i2cUrl:f,c2iUrl:d(f)}},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(14),y=r(8),T=r(7),$=r(68),A=r(342),b=r(527).i2c,R=h("btoa"),O=p("".charAt),C=p("".charCodeAt),w=!!R&&!T(function(){return R("hi")!=="aGk="}),D=w&&!T(function(){R()}),L=w&&T(function(){return R(null)!=="bnVsbA=="}),F=w&&R.length!==1;f({global:!0,bind:!0,enumerable:!0,forced:!w||D||L||F},{btoa:function(U){if(A(arguments.length,1),w)return y(R,d,$(U));for(var z=$(U),X="",B=0,V=b,W,J;O(z,B)||(V="=",B%1);){if(J=C(z,B+=.75),J>255)throw new(h("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");W=W<<8|J,X+=O(V,63&W>>8-B%1*8)}return X}})},function(x,E,r){var f=r(4),d=r(530),h=r(531),p=r(160),y=r(43),T=function(A){if(A&&A.forEach!==p)try{y(A,"forEach",p)}catch(b){A.forEach=p}};for(var $ in d)d[$]&&T(f[$]&&f[$].prototype);T(h)},function(x){x.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(x,E,r){var f=r(42),d=f("span").classList,h=d&&d.constructor&&d.constructor.prototype;x.exports=h===Object.prototype?void 0:h},function(x,E,r){var f=r(4),d=r(530),h=r(531),p=r(168),y=r(43),T=r(82),$=r(33),A=$("iterator"),b=p.values,R=function(C,w){if(C){if(C[A]!==b)try{y(C,A,b)}catch(L){C[A]=b}if(T(C,w,!0),d[w]){for(var D in p)if(C[D]!==p[D])try{y(C,D,p[D])}catch(L){C[D]=p[D]}}}};for(var O in d)R(f[O]&&f[O].prototype,O);R(h,"DOMTokenList")},function(x,E,r){var f=r(3),d=r(229),h=r(23),p=r(7),y=r(71),T=r(11),$=r(44).f,A=r(47),b=r(77),R=r(38),O=r(210),C=r(46),w=r(125),D=r(119),L=r(534),F=r(122),j=r(51),U=r(6),z=r(36),X="DOMException",B="DATA_CLONE_ERR",V=h("Error"),W=h(X)||function(){try{var Mt=h("MessageChannel")||d("worker_threads").MessageChannel;new Mt().port1.postMessage(new WeakMap)}catch(Vt){if(Vt.name===B&&Vt.code===25)return Vt.constructor}}(),J=W&&W.prototype,Z=V.prototype,Q=j.set,nt=j.getterFor(X),rt="stack"in new V(X),q=function(Mt){return R(L,Mt)&&L[Mt].m?L[Mt].c:0},tt=function(){O(this,et);var Vt=arguments.length,te=D(Vt<1?void 0:arguments[0]),ie=D(Vt<2?void 0:arguments[1],"Error"),re=q(ie);if(Q(this,{type:X,name:ie,message:te,code:re}),U||(this.name=ie,this.message=te,this.code=re),rt){var le=new V(te);le.name=X,$(this,"stack",T(1,F(le.stack,1)))}},et=tt.prototype=y(Z),lt=function(Mt){return{enumerable:!0,configurable:!0,get:Mt}},yt=function(Mt){return lt(function(){return nt(this)[Mt]})};U&&(b(et,"code",yt("code")),b(et,"message",yt("message")),b(et,"name",yt("name"))),$(et,"constructor",T(1,tt));var dt=p(function(){return!(new W instanceof V)}),bt=dt||p(function(){return Z.toString!==w||String(new W(1,2))!=="2: 1"}),Tt=dt||p(function(){return new W(1,"DataCloneError").code!==25}),Bt=dt||W[B]!==25||J[B]!==25,Lt=z?bt||Tt||Bt:dt;f({global:!0,constructor:!0,forced:Lt},{DOMException:Lt?tt:W});var Xt=h(X),Zt=Xt.prototype;bt&&(z||W===Xt)&&A(Zt,"toString",w),Tt&&U&&W===Xt&&b(Zt,"code",lt(function(){return q(C(this).name)}));for(var Jt in L)if(R(L,Jt)){var ge=L[Jt],ce=ge.s,ne=T(6,ge.c);R(Xt,ce)||$(Xt,ce,ne),R(Zt,ce)||$(Zt,ce,ne)}},function(x){x.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},function(x,E,r){var f=r(3),d=r(4),h=r(23),p=r(11),y=r(44).f,T=r(38),$=r(210),A=r(118),b=r(119),R=r(534),O=r(122),C=r(6),w=r(36),D="DOMException",L=h("Error"),F=h(D),j=function(){$(this,U);var tt=arguments.length,et=b(tt<1?void 0:arguments[0]),lt=b(tt<2?void 0:arguments[1],"Error"),yt=new F(et,lt),dt=new L(et);return dt.name=D,y(yt,"stack",p(1,O(dt.stack,1))),A(yt,this,j),yt},U=j.prototype=F.prototype,z="stack"in new L(D),X="stack"in new F(1,2),B=F&&C&&Object.getOwnPropertyDescriptor(d,D),V=!!B&&!(B.writable&&B.configurable),W=z&&!V&&!X;f({global:!0,constructor:!0,forced:w||W},{DOMException:W?j:F});var J=h(D),Z=J.prototype;if(Z.constructor!==J){w||y(Z,"constructor",p(1,J));for(var Q in R)if(T(R,Q)){var nt=R[Q],rt=nt.s;T(J,rt)||y(J,rt,p(6,nt.c))}}},function(x,E,r){var f=r(23),d=r(82),h="DOMException";d(f(h),h)},function(x,E,r){r(538),r(539)},function(x,E,r){var f=r(3),d=r(4),h=r(341).clear;f({global:!0,bind:!0,enumerable:!0,forced:d.clearImmediate!==h},{clearImmediate:h})},function(x,E,r){var f=r(3),d=r(4),h=r(341).set,p=r(540),y=d.setImmediate?p(h,!1):h;f({global:!0,bind:!0,enumerable:!0,forced:d.setImmediate!==y},{setImmediate:y})},function(x,E,r){var f=r(4),d=r(94),h=r(21),p=r(541),y=r(28),T=r(76),$=r(342),A=f.Function,b=/MSIE .\./.test(y)||p&&function(){var R=f.Bun.version.split(".");return R.length<3||R[0]==="0"&&(R[1]<3||R[1]==="3"&&R[2]==="0")}();x.exports=function(R,O){var C=O?2:1;return b?function(w,D){var L=$(arguments.length,1)>C,F=h(w)?w:A(w),j=L?T(arguments,C):[],U=L?function(){d(F,this,j)}:F;return O?R(U,D):R(U)}:R}},function(x){x.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},function(x,E,r){var f=r(3),d=r(4),h=r(344),p=r(30),y=r(342),T=r(7),$=r(6),A=T(function(){return $&&Object.getOwnPropertyDescriptor(d,"queueMicrotask").value.length!==1});f({global:!0,enumerable:!0,dontCallGetSet:!0,forced:A},{queueMicrotask:function(R){y(arguments.length,1),h(p(R))}})},function(x,E,r){var f=r(3),d=r(4),h=r(77),p=r(6),y=TypeError,T=Object.defineProperty,$=d.self!==d;try{if(p){var A=Object.getOwnPropertyDescriptor(d,"self");($||!A||!A.get||!A.enumerable)&&h(d,"self",{get:function(){return d},set:function(R){if(this!==d)throw new y("Illegal invocation");T(d,"self",{value:R,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else f({global:!0,simple:!0,forced:$},{self:d})}catch(b){}},function(x,E,r){var f=r(36),d=r(3),h=r(4),p=r(23),y=r(14),T=r(7),$=r(40),A=r(21),b=r(89),R=r(17),O=r(20),C=r(22),w=r(130),D=r(46),L=r(69),F=r(38),j=r(141),U=r(43),z=r(63),X=r(342),B=r(382),V=r(262),W=r(399),J=r(401),Z=r(228),Q=r(123),nt=r(230),rt=h.Object,q=h.Array,tt=h.Date,et=h.Error,lt=h.TypeError,yt=h.PerformanceMark,dt=p("DOMException"),bt=V.Map,Tt=V.has,Bt=V.get,Lt=V.set,Xt=W.Set,Zt=W.add,Jt=W.has,ge=p("Object","keys"),ce=y([].push),ne=y((!0).valueOf),Mt=y(1 .valueOf),Vt=y("".valueOf),te=y(tt.prototype.getTime),ie=$("structuredClone"),re="DataCloneError",le="Transferring",Re=function(ht){return!T(function(){var Ct=new h.Set([7]),Pt=ht(Ct),ot=ht(rt(7));return Pt===Ct||!Pt.has(7)||!O(ot)||+ot!=7})&&ht},Ce=function(ht,Ct){return!T(function(){var Pt=new Ct,ot=ht({a:Pt,b:Pt});return!(ot&&ot.a===ot.b&&ot.a instanceof Ct&&ot.a.stack===Pt.stack)})},xe=function(ht){return!T(function(){var Ct=ht(new h.AggregateError([1],ie,{cause:3}));return Ct.name!=="AggregateError"||Ct.errors[0]!==1||Ct.message!==ie||Ct.cause!==3})},oe=h.structuredClone,Ae=f||!Ce(oe,et)||!Ce(oe,dt)||!xe(oe),me=!oe&&Re(function(ht){return new yt(ie,{detail:ht}).detail}),ue=Re(oe)||me,Ot=function(ht){throw new dt("Uncloneable type: "+ht,re)},Ut=function(ht,Ct){throw new dt((Ct||"Cloning")+" of "+ht+" cannot be properly polyfilled in this engine",re)},St=function(ht,Ct){return ue||Ut(Ct),ue(ht)},kt=function(){var ht;try{ht=new h.DataTransfer}catch(Ct){try{ht=new h.ClipboardEvent("").clipboardData}catch(Pt){}}return ht&&ht.items&&ht.files?ht:null},Qt=function(ht,Ct,Pt){if(Tt(Ct,ht))return Bt(Ct,ht);var ot=Pt||L(ht),mt,ct,Nt,qt,se,Te;if(ot==="SharedArrayBuffer")ue?mt=ue(ht):mt=ht;else{var $e=h.DataView;!$e&&!A(ht.slice)&&Ut("ArrayBuffer");try{if(A(ht.slice)&&!ht.resizable)mt=ht.slice(0);else for(ct=ht.byteLength,Nt=("maxByteLength"in ht)?{maxByteLength:ht.maxByteLength}:void 0,mt=new ArrayBuffer(ct,Nt),qt=new $e(ht),se=new $e(mt),Te=0;Te1&&!R(arguments[1])?D(arguments[1]):void 0,ot=Pt?Pt.transfer:void 0,mt,ct;ot!==void 0&&(mt=new bt,ct=we(ot,mt));var Nt=Gt(Ct,mt);return ct&&Ye(ct),Nt}})},function(x,E,r){r(546),r(547)},function(x,E,r){var f=r(3),d=r(4),h=r(540),p=h(d.setInterval,!0);f({global:!0,bind:!0,forced:d.setInterval!==p},{setInterval:p})},function(x,E,r){var f=r(3),d=r(4),h=r(540),p=h(d.setTimeout,!0);f({global:!0,bind:!0,forced:d.setTimeout!==p},{setTimeout:p})},function(x,E,r){r(549)},function(x,E,r){r(428);var f=r(3),d=r(6),h=r(550),p=r(4),y=r(84),T=r(14),$=r(47),A=r(77),b=r(210),R=r(38),O=r(305),C=r(162),w=r(76),D=r(421).codeAt,L=r(551),F=r(68),j=r(82),U=r(342),z=r(552),X=r(51),B=X.set,V=X.getterFor("URL"),W=z.URLSearchParams,J=z.getState,Z=p.URL,Q=p.TypeError,nt=p.parseInt,rt=Math.floor,q=Math.pow,tt=T("".charAt),et=T(/./.exec),lt=T([].join),yt=T(1 .toString),dt=T([].pop),bt=T([].push),Tt=T("".replace),Bt=T([].shift),Lt=T("".split),Xt=T("".slice),Zt=T("".toLowerCase),Jt=T([].unshift),ge="Invalid authority",ce="Invalid scheme",ne="Invalid host",Mt="Invalid port",Vt=/[a-z]/i,te=/[\d+-.a-z]/i,ie=/\d/,re=/^0x/i,le=/^[0-7]+$/,Re=/^\d+$/,Ce=/^[\da-f]+$/i,xe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,oe=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ae=/^[\u0000-\u0020]+/,me=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ue=/[\t\n\r]/g,Ot,Ut=function(ft){var wt=Lt(ft,"."),xt,it,It,ve,_t,Ee,Qe;if(wt.length&&wt[wt.length-1]===""&&wt.length--,xt=wt.length,xt>4)return ft;for(it=[],It=0;It1&&tt(ve,0)==="0"&&(_t=et(re,ve)?16:8,ve=Xt(ve,_t===8?1:2)),ve==="")Ee=0;else{if(!et(_t===10?Re:_t===8?le:Ce,ve))return ft;Ee=nt(ve,_t)}bt(it,Ee)}for(It=0;It=q(256,5-xt))return null}else if(Ee>255)return null;for(Qe=dt(it),It=0;It6))return;for(Ee=0;_e();){if(Qe=null,Ee>0)if(_e()==="."&&Ee<4)It++;else return;if(!et(ie,_e()))return;for(;et(ie,_e());){if(un=nt(_e(),10),Qe===null)Qe=un;else{if(Qe===0)return;Qe=Qe*10+un}if(Qe>255)return;It++}wt[xt]=wt[xt]*256+Qe,Ee++,(Ee===2||Ee===4)&&xt++}if(Ee!==4)return;break}else if(_e()===":"){if(It++,!_e())return}else if(_e())return;wt[xt++]=ve}if(it!==null)for(dn=xt-it,xt=7;xt!==0&&dn>0;)st=wt[xt],wt[xt--]=wt[it+dn-1],wt[it+--dn]=st;else if(xt!==8)return;return wt},kt=function(ft){for(var wt=null,xt=1,it=null,It=0,ve=0;ve<8;ve++)ft[ve]!==0?(It>xt&&(wt=it,xt=It),it=null,It=0):(it===null&&(it=ve),++It);return It>xt&&(wt=it,xt=It),wt},Qt=function(ft){var wt,xt,it,It;if(typeof ft=="number"){for(wt=[],xt=0;xt<4;xt++)Jt(wt,ft%256),ft=rt(ft/256);return lt(wt,".")}else if(typeof ft=="object"){for(wt="",it=kt(ft),xt=0;xt<8;xt++)It&&ft[xt]===0||(It&&(It=!1),it===xt?(wt+=xt?":":"::",It=!0):(wt+=yt(ft[xt],16),xt<7&&(wt+=":")));return"["+wt+"]"}return ft},Yt={},Gt=O({},Yt,{" ":1,'"':1,"<":1,">":1,"`":1}),we=O({},Gt,{"#":1,"?":1,"{":1,"}":1}),Ye=O({},we,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),ht=function(ft,wt){var xt=D(ft,0);return xt>32&&xt<127&&!R(wt,ft)?ft:encodeURIComponent(ft)},Ct={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Pt=function(ft,wt){var xt;return ft.length===2&&et(Vt,tt(ft,0))&&((xt=tt(ft,1))===":"||!wt&&xt==="|")},ot=function(ft){var wt;return ft.length>1&&Pt(Xt(ft,0,2))&&(ft.length===2||(wt=tt(ft,2))==="/"||wt==="\\"||wt==="?"||wt==="#")},mt=function(ft){return ft==="."||Zt(ft)==="%2e"},ct=function(ft){return ft=Zt(ft),ft===".."||ft==="%2e."||ft===".%2e"||ft==="%2e%2e"},Nt={},qt={},se={},Te={},$e={},ye={},sn={},dr={},zr={},jr={},fa={},da={},ha={},Gr={},Ya={},ga={},hr={},Fn={},Ha={},qn={},jn={},va=function(ft,wt,xt){var it=F(ft),It,ve,_t;if(wt){if(ve=this.parse(it),ve)throw new Q(ve);this.searchParams=null}else{if(xt!==void 0&&(It=new va(xt,!0)),ve=this.parse(it,null,It),ve)throw new Q(ve);_t=J(new W),_t.bindURL(this),this.searchParams=_t}};va.prototype={type:"URL",parse:function(ft,wt,xt){var it=this,It=wt||Nt,ve=0,_t="",Ee=!1,Qe=!1,un=!1,dn,st,_e,wn;for(ft=F(ft),wt||(it.scheme="",it.username="",it.password="",it.host=null,it.port=null,it.path=[],it.query=null,it.fragment=null,it.cannotBeABaseURL=!1,ft=Tt(ft,Ae,""),ft=Tt(ft,me,"$1")),ft=Tt(ft,ue,""),dn=C(ft);ve<=dn.length;){switch(st=dn[ve],It){case Nt:if(st&&et(Vt,st))_t+=Zt(st),It=qt;else{if(wt)return ce;It=se;continue}break;case qt:if(st&&(et(te,st)||st==="+"||st==="-"||st==="."))_t+=Zt(st);else if(st===":"){if(wt&&(it.isSpecial()!==R(Ct,_t)||_t==="file"&&(it.includesCredentials()||it.port!==null)||it.scheme==="file"&&!it.host))return;if(it.scheme=_t,wt){it.isSpecial()&&Ct[it.scheme]===it.port&&(it.port=null);return}_t="",it.scheme==="file"?It=Gr:it.isSpecial()&&xt&&xt.scheme===it.scheme?It=Te:it.isSpecial()?It=dr:dn[ve+1]==="/"?(It=$e,ve++):(it.cannotBeABaseURL=!0,bt(it.path,""),It=Ha)}else{if(wt)return ce;_t="",It=se,ve=0;continue}break;case se:if(!xt||xt.cannotBeABaseURL&&st!=="#")return ce;if(xt.cannotBeABaseURL&&st==="#"){it.scheme=xt.scheme,it.path=w(xt.path),it.query=xt.query,it.fragment="",it.cannotBeABaseURL=!0,It=jn;break}It=xt.scheme==="file"?Gr:ye;continue;case Te:if(st==="/"&&dn[ve+1]==="/")It=zr,ve++;else{It=ye;continue}break;case $e:if(st==="/"){It=jr;break}else{It=Fn;continue}case ye:if(it.scheme=xt.scheme,st===Ot)it.username=xt.username,it.password=xt.password,it.host=xt.host,it.port=xt.port,it.path=w(xt.path),it.query=xt.query;else if(st==="/"||st==="\\"&&it.isSpecial())It=sn;else if(st==="?")it.username=xt.username,it.password=xt.password,it.host=xt.host,it.port=xt.port,it.path=w(xt.path),it.query="",It=qn;else if(st==="#")it.username=xt.username,it.password=xt.password,it.host=xt.host,it.port=xt.port,it.path=w(xt.path),it.query=xt.query,it.fragment="",It=jn;else{it.username=xt.username,it.password=xt.password,it.host=xt.host,it.port=xt.port,it.path=w(xt.path),it.path.length--,It=Fn;continue}break;case sn:if(it.isSpecial()&&(st==="/"||st==="\\"))It=zr;else if(st==="/")It=jr;else{it.username=xt.username,it.password=xt.password,it.host=xt.host,it.port=xt.port,It=Fn;continue}break;case dr:if(It=zr,st!=="/"||tt(_t,ve+1)!=="/")continue;ve++;break;case zr:if(st!=="/"&&st!=="\\"){It=jr;continue}break;case jr:if(st==="@"){Ee&&(_t="%40"+_t),Ee=!0,_e=C(_t);for(var Je=0;Je<_e.length;Je++){var Bn=_e[Je];if(Bn===":"&&!un){un=!0;continue}var Sn=ht(Bn,Ye);un?it.password+=Sn:it.username+=Sn}_t=""}else if(st===Ot||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(Ee&&_t==="")return ge;ve-=C(_t).length+1,_t="",It=fa}else _t+=st;break;case fa:case da:if(wt&&it.scheme==="file"){It=ga;continue}else if(st===":"&&!Qe){if(_t==="")return ne;if(wn=it.parseHost(_t),wn)return wn;if(_t="",It=ha,wt===da)return}else if(st===Ot||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()){if(it.isSpecial()&&_t==="")return ne;if(wt&&_t===""&&(it.includesCredentials()||it.port!==null))return;if(wn=it.parseHost(_t),wn)return wn;if(_t="",It=hr,wt)return;continue}else st==="["?Qe=!0:st==="]"&&(Qe=!1),_t+=st;break;case ha:if(et(ie,st))_t+=st;else if(st===Ot||st==="/"||st==="?"||st==="#"||st==="\\"&&it.isSpecial()||wt){if(_t!==""){var Mn=nt(_t,10);if(Mn>65535)return Mt;it.port=it.isSpecial()&&Mn===Ct[it.scheme]?null:Mn,_t=""}if(wt)return;It=hr;continue}else return Mt;break;case Gr:if(it.scheme="file",st==="/"||st==="\\")It=Ya;else if(xt&&xt.scheme==="file")switch(st){case Ot:it.host=xt.host,it.path=w(xt.path),it.query=xt.query;break;case"?":it.host=xt.host,it.path=w(xt.path),it.query="",It=qn;break;case"#":it.host=xt.host,it.path=w(xt.path),it.query=xt.query,it.fragment="",It=jn;break;default:ot(lt(w(dn,ve),""))||(it.host=xt.host,it.path=w(xt.path),it.shortenPath()),It=Fn;continue}else{It=Fn;continue}break;case Ya:if(st==="/"||st==="\\"){It=ga;break}xt&&xt.scheme==="file"&&!ot(lt(w(dn,ve),""))&&(Pt(xt.path[0],!0)?bt(it.path,xt.path[0]):it.host=xt.host),It=Fn;continue;case ga:if(st===Ot||st==="/"||st==="\\"||st==="?"||st==="#"){if(!wt&&Pt(_t))It=Fn;else if(_t===""){if(it.host="",wt)return;It=hr}else{if(wn=it.parseHost(_t),wn)return wn;if(it.host==="localhost"&&(it.host=""),wt)return;_t="",It=hr}continue}else _t+=st;break;case hr:if(it.isSpecial()){if(It=Fn,st!=="/"&&st!=="\\")continue}else if(!wt&&st==="?")it.query="",It=qn;else if(!wt&&st==="#")it.fragment="",It=jn;else if(st!==Ot&&(It=Fn,st!=="/"))continue;break;case Fn:if(st===Ot||st==="/"||st==="\\"&&it.isSpecial()||!wt&&(st==="?"||st==="#")){if(ct(_t)?(it.shortenPath(),st!=="/"&&!(st==="\\"&&it.isSpecial())&&bt(it.path,"")):mt(_t)?st!=="/"&&!(st==="\\"&&it.isSpecial())&&bt(it.path,""):(it.scheme==="file"&&!it.path.length&&Pt(_t)&&(it.host&&(it.host=""),_t=tt(_t,0)+":"),bt(it.path,_t)),_t="",it.scheme==="file"&&(st===Ot||st==="?"||st==="#"))for(;it.path.length>1&&it.path[0]==="";)Bt(it.path);st==="?"?(it.query="",It=qn):st==="#"&&(it.fragment="",It=jn)}else _t+=ht(st,we);break;case Ha:st==="?"?(it.query="",It=qn):st==="#"?(it.fragment="",It=jn):st!==Ot&&(it.path[0]+=ht(st,Yt));break;case qn:!wt&&st==="#"?(it.fragment="",It=jn):st!==Ot&&(st==="'"&&it.isSpecial()?it.query+="%27":st==="#"?it.query+="%23":it.query+=ht(st,Yt));break;case jn:st!==Ot&&(it.fragment+=ht(st,Gt));break}ve++}},parseHost:function(ft){var wt,xt,it;if(tt(ft,0)==="["){if(tt(ft,ft.length-1)!=="]"||(wt=St(Xt(ft,1,-1)),!wt))return ne;this.host=wt}else if(this.isSpecial()){if(ft=L(ft),et(xe,ft)||(wt=Ut(ft),wt===null))return ne;this.host=wt}else{if(et(oe,ft))return ne;for(wt="",xt=C(ft),it=0;it1?arguments[1]:void 0,It=B(xt,new va(wt,!1,it));d||(xt.href=It.serialize(),xt.origin=It.getOrigin(),xt.protocol=It.getProtocol(),xt.username=It.getUsername(),xt.password=It.getPassword(),xt.host=It.getHost(),xt.hostname=It.getHostname(),xt.port=It.getPort(),xt.pathname=It.getPathname(),xt.search=It.getSearch(),xt.searchParams=It.getSearchParams(),xt.hash=It.getHash())},vn=gr.prototype,Rn=function(ft,wt){return{get:function(){return V(this)[ft]()},set:wt&&function(xt){return V(this)[wt](xt)},configurable:!0,enumerable:!0}};if(d&&(A(vn,"href",Rn("serialize","setHref")),A(vn,"origin",Rn("getOrigin")),A(vn,"protocol",Rn("getProtocol","setProtocol")),A(vn,"username",Rn("getUsername","setUsername")),A(vn,"password",Rn("getPassword","setPassword")),A(vn,"host",Rn("getHost","setHost")),A(vn,"hostname",Rn("getHostname","setHostname")),A(vn,"port",Rn("getPort","setPort")),A(vn,"pathname",Rn("getPathname","setPathname")),A(vn,"search",Rn("getSearch","setSearch")),A(vn,"searchParams",Rn("getSearchParams")),A(vn,"hash",Rn("getHash","setHash"))),$(vn,"toJSON",function(){return V(this).serialize()},{enumerable:!0}),$(vn,"toString",function(){return V(this).serialize()},{enumerable:!0}),Z){var Wa=Z.createObjectURL,Ka=Z.revokeObjectURL;Wa&&$(gr,"createObjectURL",y(Wa,Z)),Ka&&$(gr,"revokeObjectURL",y(Ka,Z))}j(gr,"URL"),f({global:!0,constructor:!0,forced:!h,sham:!d},{URL:gr})},function(x,E,r){var f=r(7),d=r(33),h=r(6),p=r(36),y=d("iterator");x.exports=!f(function(){var T=new URL("b?a=1&b=2&c=3","http://a"),$=T.searchParams,A=new URLSearchParams("a=1&a=2&b=3"),b="";return T.pathname="c%20d",$.forEach(function(R,O){$.delete("b"),b+=O+R}),A.delete("a",2),A.delete("b",void 0),p&&(!T.toJSON||!A.has("a",1)||A.has("a",2)||!A.has("a",void 0)||A.has("b"))||!$.size&&(p||!h)||!$.sort||T.href!=="http://a/c%20d?a=1&c=3"||$.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!$[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||b!=="a1c3"||new URL("http://x",void 0).host!=="x"})},function(x,E,r){var f=r(14),d=2147483647,h=36,p=1,y=26,T=38,$=700,A=72,b=128,R="-",O=/[^\0-\u007E]/,C=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",D=h-p,L=RangeError,F=f(C.exec),j=Math.floor,U=String.fromCharCode,z=f("".charCodeAt),X=f([].join),B=f([].push),V=f("".replace),W=f("".split),J=f("".toLowerCase),Z=function(q){for(var tt=[],et=0,lt=q.length;et=55296&&yt<=56319&&et>1,q+=j(q/tt);q>D*y>>1;)q=j(q/D),lt+=h;return j(lt+(D+1)*q/(q+T))},rt=function(q){var tt=[];q=Z(q);var et=q.length,lt=b,yt=0,dt=A,bt,Tt;for(bt=0;bt=lt&&Ttj((d-yt)/Zt))throw new L(w);for(yt+=(Xt-lt)*Zt,lt=Xt,bt=0;btd)throw new L(w);if(Tt===lt){for(var Jt=yt,ge=h;;){var ce=ge<=dt?p:ge>=dt+y?y:ge-dt;if(Jt=ct.length)return mt.target=void 0,Q(void 0,!0);var qt=ct[Nt];switch(mt.kind){case"keys":return Q(qt.key,!1);case"values":return Q(qt.value,!1)}return Q([qt.key,qt.value],!1)},!0),Yt=function(ot){this.entries=[],this.url=null,ot!==void 0&&(X(ot)?this.parseObject(ot):this.parseQuery(typeof ot=="string"?Mt(ot,0)==="?"?Ce(ot,1):ot:B(ot)))};Yt.prototype={type:et,bindURL:function(ot){this.url=ot,this.update()},parseObject:function(ot){var mt=this.entries,ct=Z(ot),Nt,qt,se,Te,$e,ye,sn;if(ct)for(Nt=J(ot,ct),qt=Nt.next;!(se=p(qt,Nt)).done;){if(Te=J(z(se.value)),$e=Te.next,(ye=p($e,Te)).done||(sn=p($e,Te)).done||!p($e,Te).done)throw new ge("Expected sequence with length 2");te(mt,{key:B(ye.value),value:B(sn.value)})}else for(var dr in ot)F(ot,dr)&&te(mt,{key:dr,value:B(ot[dr])})},parseQuery:function(ot){if(ot)for(var mt=this.entries,ct=Re(ot,"&"),Nt=0,qt,se;Nt0?arguments[0]:void 0,ct=yt(this,new Yt(mt));T||(this.size=ct.entries.length)},we=Gt.prototype;if(R(we,{append:function(mt,ct){var Nt=dt(this);nt(arguments.length,2),te(Nt.entries,{key:B(mt),value:B(ct)}),T||this.length++,Nt.updateURL()},delete:function(ot){for(var mt=dt(this),ct=nt(arguments.length,1),Nt=mt.entries,qt=B(ot),se=ct<2?void 0:arguments[1],Te=se===void 0?se:B(se),$e=0;$eNt.key?1:-1}),mt.updateURL()},forEach:function(mt){for(var ct=dt(this).entries,Nt=j(mt,arguments.length>1?arguments[1]:void 0),qt=0,se;qt1?Ct(arguments[1]):{})}}),L(Bt)){var Pt=function(mt){return D(this,Xt),new Bt(mt,arguments.length>1?Ct(arguments[1]):{})};Xt.constructor=Pt,Pt.prototype=Xt,f({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Pt})}}x.exports={URLSearchParams:Gt,getState:dt}},function(x,E,r){var f=r(3),d=r(23),h=r(7),p=r(342),y=r(68),T=r(550),$=d("URL"),A=T&&h(function(){$.canParse()}),b=h(function(){return $.canParse.length!==1});f({target:"URL",stat:!0,forced:!A||b},{canParse:function(O){var C=p(arguments.length,1),w=y(O),D=C<2||arguments[1]===void 0?void 0:y(arguments[1]);try{return!!new $(w,D)}catch(L){return!1}}})},function(x,E,r){var f=r(3),d=r(23),h=r(342),p=r(68),y=r(550),T=d("URL");f({target:"URL",stat:!0,forced:!y},{parse:function(A){var b=h(arguments.length,1),R=p(A),O=b<2||arguments[1]===void 0?void 0:p(arguments[1]);try{return new T(R,O)}catch(C){return null}}})},function(x,E,r){var f=r(3),d=r(8);f({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return d(URL.prototype.toString,this)}})},function(x,E,r){r(552)},function(x,E,r){var f=r(47),d=r(14),h=r(68),p=r(342),y=URLSearchParams,T=y.prototype,$=d(T.append),A=d(T.delete),b=d(T.forEach),R=d([].push),O=new y("a=1&a=2&b=3");O.delete("a",1),O.delete("b",void 0),O+""!="a=2"&&f(T,"delete",function(C){var w=arguments.length,D=w<2?void 0:arguments[1];if(w&&D===void 0)return A(this,C);var L=[];b(this,function(W,J){R(L,{key:J,value:W})}),p(w,1);for(var F=h(C),j=h(D),U=0,z=0,X=!1,B=L.length,V;U=H&&(H=G+1);!(_=M[H])&&++H=0;)(o=a[i])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function bt(t){t||(t=Tt);function e(v,m){return v&&m?t(v.__data__,m.__data__):!v-!m}for(var n=this._groups,a=n.length,i=new Array(a),s=0;se?1:t>=e?0:NaN}function Bt(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Lt(){return Array.from(this)}function Xt(){for(var t=this._groups,e=0,n=t.length;e=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),ne.hasOwnProperty(e)?{space:ne[e],local:t}:t}function Vt(t){return function(){this.removeAttribute(t)}}function te(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ie(t,e){return function(){this.setAttribute(t,e)}}function re(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function le(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Re(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ce(t,e){var n=Mt(t);if(arguments.length<2){var a=this.node();return n.local?a.getAttributeNS(n.space,n.local):a.getAttribute(n)}return this.each((e==null?n.local?te:Vt:typeof e=="function"?n.local?Re:le:n.local?re:ie)(n,e))}function xe(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function oe(t){return function(){this.style.removeProperty(t)}}function Ae(t,e,n){return function(){this.style.setProperty(t,e,n)}}function me(t,e,n){return function(){var a=e.apply(this,arguments);a==null?this.style.removeProperty(t):this.style.setProperty(t,a,n)}}function ue(t,e,n){return arguments.length>1?this.each((e==null?oe:typeof e=="function"?me:Ae)(t,e,n==null?"":n)):Ot(this.node(),t)}function Ot(t,e){return t.style.getPropertyValue(e)||xe(t).getComputedStyle(t,null).getPropertyValue(e)}function Ut(t){return function(){delete this[t]}}function St(t,e){return function(){this[t]=e}}function kt(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Qt(t,e){return arguments.length>1?this.each((e==null?Ut:typeof e=="function"?kt:St)(t,e)):this.node()[t]}function Yt(t){return t.trim().split(/^|\s+/)}function Gt(t){return t.classList||new we(t)}function we(t){this._node=t,this._names=Yt(t.getAttribute("class")||"")}we.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ye(t,e){for(var n=Gt(t),a=-1,i=e.length;++a=0&&(n=e.slice(a+1),e=e.slice(0,a)),{type:e,name:n}})}function Wa(t){return function(){var e=this.__on;if(e){for(var n=0,a=-1,i=e.length,s;n(t(s=new Date(+s)),s),i.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),i.round=s=>{const o=i(s),l=i.ceil(s);return s-o(e(s=new Date(+s),o==null?1:Math.floor(o)),s),i.range=(s,o,l)=>{const c=[];if(s=i.ceil(s),l=l==null?1:Math.floor(l),!(s0))return c;let u;do c.push(u=new Date(+s)),e(s,l),t(s);while(uJe(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;e(o,-1),!s(o););else for(;--l>=0;)for(;e(o,1),!s(o););}),n&&(i.count=(s,o)=>(_e.setTime(+s),wn.setTime(+o),t(_e),t(wn),Math.floor(n(_e,wn))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(a?o=>a(o)%s===0:o=>i.count(0,o)%s===0):i)),i}const Bn=1e3,Sn=Bn*60,Mn=Sn*60,tr=Mn*24,qi=tr*7,Io=tr*30,ts=tr*365;function $r(t){return Je(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*Sn)/qi)}const Za=$r(0),ka=$r(1),bf=$r(2),Ef=$r(3),Vr=$r(4),Rf=$r(5),Of=$r(6),b0=Za.range,E0=ka.range,R0=bf.range,O0=Ef.range,I0=Vr.range,C0=Rf.range,P0=Of.range;function Sr(t){return Je(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/qi)}const Ja=Sr(0),Qa=Sr(1),If=Sr(2),Cf=Sr(3),Xr=Sr(4),Pf=Sr(5),wf=Sr(6),w0=Ja.range,M0=Qa.range,L0=If.range,D0=Cf.range,N0=Xr.range,F0=Pf.range,B0=wf.range,pa=Je(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Sn)/tr,t=>t.getDate()-1),U0=pa.range,_a=Je(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/tr,t=>t.getUTCDate()-1),z0=_a.range,Co=Je(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/tr,t=>Math.floor(t/tr)),j0=Co.range,er=Je(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());er.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Je(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});const G0=er.range,nr=Je(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());nr.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:Je(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});const V0=nr.range;function es(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function ns(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ma(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Mf(t){var e=t.dateTime,n=t.date,a=t.time,i=t.periods,s=t.days,o=t.shortDays,l=t.months,c=t.shortMonths,u=ya(i),g=xa(i),v=ya(s),m=xa(s),S=ya(o),I=xa(o),N=ya(l),M=xa(l),P=ya(c),G=xa(c),H={a:Rt,A:jt,b:zt,B:Wt,c:null,d:No,e:No,f:ed,g:fd,G:hd,H:_f,I:qf,j:td,L:Fo,m:nd,M:rd,p:Ht,q:ee,Q:Vo,s:Xo,S:ad,u:id,U:sd,V:od,w:ld,W:cd,x:null,X:null,y:ud,Y:dd,Z:gd,"%":Go},Y={a:je,A:Oe,b:Ge,B:cn,c:null,d:Uo,e:Uo,f:yd,g:Id,G:Pd,H:vd,I:pd,j:md,L:zo,m:xd,M:Td,p:Le,q:ln,Q:Vo,s:Xo,S:$d,u:Sd,U:Ad,V:bd,w:Ed,W:Rd,x:null,X:null,y:Od,Y:Cd,Z:wd,"%":Go},_={a:vt,A:gt,b:Ft,B:pt,c:k,d:Lo,e:Lo,f:Zf,g:Mo,G:wo,H:Do,I:Do,j:Yf,L:Kf,m:Xf,M:Hf,p:At,q:Vf,Q:Jf,s:Qf,S:Wf,u:Bf,U:Uf,V:zf,w:Ff,W:jf,x:Et,X:ut,y:Mo,Y:wo,Z:Gf,"%":kf};H.x=K(n,H),H.X=K(a,H),H.c=K(e,H),Y.x=K(n,Y),Y.X=K(a,Y),Y.c=K(e,Y);function K(Kt,pe){return function(be){var Dt=[],rn=-1,Ue=0,bn=Kt.length,En,he,an;for(be instanceof Date||(be=new Date(+be));++rn53)return null;"w"in Dt||(Dt.w=1),"Z"in Dt?(Ue=ns(ma(Dt.y,0,1)),bn=Ue.getUTCDay(),Ue=bn>4||bn===0?Qa.ceil(Ue):Qa(Ue),Ue=_a.offset(Ue,(Dt.V-1)*7),Dt.y=Ue.getUTCFullYear(),Dt.m=Ue.getUTCMonth(),Dt.d=Ue.getUTCDate()+(Dt.w+6)%7):(Ue=es(ma(Dt.y,0,1)),bn=Ue.getDay(),Ue=bn>4||bn===0?ka.ceil(Ue):ka(Ue),Ue=pa.offset(Ue,(Dt.V-1)*7),Dt.y=Ue.getFullYear(),Dt.m=Ue.getMonth(),Dt.d=Ue.getDate()+(Dt.w+6)%7)}else("W"in Dt||"U"in Dt)&&("w"in Dt||(Dt.w="u"in Dt?Dt.u%7:"W"in Dt?1:0),bn="Z"in Dt?ns(ma(Dt.y,0,1)).getUTCDay():es(ma(Dt.y,0,1)).getDay(),Dt.m=0,Dt.d="W"in Dt?(Dt.w+6)%7+Dt.W*7-(bn+5)%7:Dt.w+Dt.U*7-(bn+6)%7);return"Z"in Dt?(Dt.H+=Dt.Z/100|0,Dt.M+=Dt.Z%100,ns(Dt)):es(Dt)}}function $t(Kt,pe,be,Dt){for(var rn=0,Ue=pe.length,bn=be.length,En,he;rn=bn)return-1;if(En=pe.charCodeAt(rn++),En===37){if(En=pe.charAt(rn++),he=_[En in Po?pe.charAt(rn++):En],!he||(Dt=he(Kt,be,Dt))<0)return-1}else if(En!=be.charCodeAt(Dt++))return-1}return Dt}function At(Kt,pe,be){var Dt=u.exec(pe.slice(be));return Dt?(Kt.p=g.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function vt(Kt,pe,be){var Dt=S.exec(pe.slice(be));return Dt?(Kt.w=I.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function gt(Kt,pe,be){var Dt=v.exec(pe.slice(be));return Dt?(Kt.w=m.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function Ft(Kt,pe,be){var Dt=P.exec(pe.slice(be));return Dt?(Kt.m=G.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function pt(Kt,pe,be){var Dt=N.exec(pe.slice(be));return Dt?(Kt.m=M.get(Dt[0].toLowerCase()),be+Dt[0].length):-1}function k(Kt,pe,be){return $t(Kt,e,pe,be)}function Et(Kt,pe,be){return $t(Kt,n,pe,be)}function ut(Kt,pe,be){return $t(Kt,a,pe,be)}function Rt(Kt){return o[Kt.getDay()]}function jt(Kt){return s[Kt.getDay()]}function zt(Kt){return c[Kt.getMonth()]}function Wt(Kt){return l[Kt.getMonth()]}function Ht(Kt){return i[+(Kt.getHours()>=12)]}function ee(Kt){return 1+~~(Kt.getMonth()/3)}function je(Kt){return o[Kt.getUTCDay()]}function Oe(Kt){return s[Kt.getUTCDay()]}function Ge(Kt){return c[Kt.getUTCMonth()]}function cn(Kt){return l[Kt.getUTCMonth()]}function Le(Kt){return i[+(Kt.getUTCHours()>=12)]}function ln(Kt){return 1+~~(Kt.getUTCMonth()/3)}return{format:function(Kt){var pe=K(Kt+="",H);return pe.toString=function(){return Kt},pe},parse:function(Kt){var pe=at(Kt+="",!1);return pe.toString=function(){return Kt},pe},utcFormat:function(Kt){var pe=K(Kt+="",Y);return pe.toString=function(){return Kt},pe},utcParse:function(Kt){var pe=at(Kt+="",!0);return pe.toString=function(){return Kt},pe}}}var Po={"-":"",_:" ",0:"0"},hn=/^\s*\d+/,Lf=/^%/,Df=/[\\^$*+?|[\]().{}]/g;function Me(t,e,n){var a=t<0?"-":"",i=(a?-t:t)+"",s=i.length;return a+(s[e.toLowerCase(),n]))}function Ff(t,e,n){var a=hn.exec(e.slice(n,n+1));return a?(t.w=+a[0],n+a[0].length):-1}function Bf(t,e,n){var a=hn.exec(e.slice(n,n+1));return a?(t.u=+a[0],n+a[0].length):-1}function Uf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.U=+a[0],n+a[0].length):-1}function zf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.V=+a[0],n+a[0].length):-1}function jf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.W=+a[0],n+a[0].length):-1}function wo(t,e,n){var a=hn.exec(e.slice(n,n+4));return a?(t.y=+a[0],n+a[0].length):-1}function Mo(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.y=+a[0]+(+a[0]>68?1900:2e3),n+a[0].length):-1}function Gf(t,e,n){var a=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return a?(t.Z=a[1]?0:-(a[2]+(a[3]||"00")),n+a[0].length):-1}function Vf(t,e,n){var a=hn.exec(e.slice(n,n+1));return a?(t.q=a[0]*3-3,n+a[0].length):-1}function Xf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.m=a[0]-1,n+a[0].length):-1}function Lo(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.d=+a[0],n+a[0].length):-1}function Yf(t,e,n){var a=hn.exec(e.slice(n,n+3));return a?(t.m=0,t.d=+a[0],n+a[0].length):-1}function Do(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.H=+a[0],n+a[0].length):-1}function Hf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.M=+a[0],n+a[0].length):-1}function Wf(t,e,n){var a=hn.exec(e.slice(n,n+2));return a?(t.S=+a[0],n+a[0].length):-1}function Kf(t,e,n){var a=hn.exec(e.slice(n,n+3));return a?(t.L=+a[0],n+a[0].length):-1}function Zf(t,e,n){var a=hn.exec(e.slice(n,n+6));return a?(t.L=Math.floor(a[0]/1e3),n+a[0].length):-1}function kf(t,e,n){var a=Lf.exec(e.slice(n,n+1));return a?n+a[0].length:-1}function Jf(t,e,n){var a=hn.exec(e.slice(n));return a?(t.Q=+a[0],n+a[0].length):-1}function Qf(t,e,n){var a=hn.exec(e.slice(n));return a?(t.s=+a[0],n+a[0].length):-1}function No(t,e){return Me(t.getDate(),e,2)}function _f(t,e){return Me(t.getHours(),e,2)}function qf(t,e){return Me(t.getHours()%12||12,e,2)}function td(t,e){return Me(1+pa.count(er(t),t),e,3)}function Fo(t,e){return Me(t.getMilliseconds(),e,3)}function ed(t,e){return Fo(t,e)+"000"}function nd(t,e){return Me(t.getMonth()+1,e,2)}function rd(t,e){return Me(t.getMinutes(),e,2)}function ad(t,e){return Me(t.getSeconds(),e,2)}function id(t){var e=t.getDay();return e===0?7:e}function sd(t,e){return Me(Za.count(er(t)-1,t),e,2)}function Bo(t){var e=t.getDay();return e>=4||e===0?Vr(t):Vr.ceil(t)}function od(t,e){return t=Bo(t),Me(Vr.count(er(t),t)+(er(t).getDay()===4),e,2)}function ld(t){return t.getDay()}function cd(t,e){return Me(ka.count(er(t)-1,t),e,2)}function ud(t,e){return Me(t.getFullYear()%100,e,2)}function fd(t,e){return t=Bo(t),Me(t.getFullYear()%100,e,2)}function dd(t,e){return Me(t.getFullYear()%1e4,e,4)}function hd(t,e){var n=t.getDay();return t=n>=4||n===0?Vr(t):Vr.ceil(t),Me(t.getFullYear()%1e4,e,4)}function gd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Me(e/60|0,"0",2)+Me(e%60,"0",2)}function Uo(t,e){return Me(t.getUTCDate(),e,2)}function vd(t,e){return Me(t.getUTCHours(),e,2)}function pd(t,e){return Me(t.getUTCHours()%12||12,e,2)}function md(t,e){return Me(1+_a.count(nr(t),t),e,3)}function zo(t,e){return Me(t.getUTCMilliseconds(),e,3)}function yd(t,e){return zo(t,e)+"000"}function xd(t,e){return Me(t.getUTCMonth()+1,e,2)}function Td(t,e){return Me(t.getUTCMinutes(),e,2)}function $d(t,e){return Me(t.getUTCSeconds(),e,2)}function Sd(t){var e=t.getUTCDay();return e===0?7:e}function Ad(t,e){return Me(Ja.count(nr(t)-1,t),e,2)}function jo(t){var e=t.getUTCDay();return e>=4||e===0?Xr(t):Xr.ceil(t)}function bd(t,e){return t=jo(t),Me(Xr.count(nr(t),t)+(nr(t).getUTCDay()===4),e,2)}function Ed(t){return t.getUTCDay()}function Rd(t,e){return Me(Qa.count(nr(t)-1,t),e,2)}function Od(t,e){return Me(t.getUTCFullYear()%100,e,2)}function Id(t,e){return t=jo(t),Me(t.getUTCFullYear()%100,e,2)}function Cd(t,e){return Me(t.getUTCFullYear()%1e4,e,4)}function Pd(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Xr(t):Xr.ceil(t),Me(t.getUTCFullYear()%1e4,e,4)}function wd(){return"+0000"}function Go(){return"%"}function Vo(t){return+t}function Xo(t){return Math.floor(+t/1e3)}var Yr,rs,Yo,as,Ho;Md({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 Md(t){return Yr=Mf(t),rs=Yr.format,Yo=Yr.parse,as=Yr.utcFormat,Ho=Yr.utcParse,Yr}var Ld=Object.defineProperty,Wo=Object.getOwnPropertySymbols,Dd=Object.prototype.hasOwnProperty,Nd=Object.prototype.propertyIsEnumerable,Ko=(t,e,n)=>e in t?Ld(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,He=(t,e)=>{for(var n in e||(e={}))Dd.call(e,n)&&Ko(t,n,e[n]);if(Wo)for(var n of Wo(e))Nd.call(e,n)&&Ko(t,n,e[n]);return t};const Se={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},Be={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},qa={area:"bb-area",areas:"bb-areas"},on={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},Gn={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},rr={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},pn={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},is={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},Ar={dragarea:"bb-dragarea",INCLUDED:"_included_"},Ta={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},Ln={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},Ve={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},ar={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Vn={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},We={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},qe={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},vr={level:"bb-level",levels:"bb-levels"},Zo={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},$a={region:"bb-region",regions:"bb-regions"},ke={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},tn={shape:"bb-shape",shapes:"bb-shapes"},ko={brush:"bb-brush",subchart:"bb-subchart"},An={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},ti={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Jo={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ss={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var Ne=He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He(He({},Se),Be),qa),on),Gn),rr),pn),is),Ar),Ln),Ve),ar),Vn),We),Ta),qe),Zo),$a),ke),tn),ko),An),ti),Jo),ss),Fd={boost_useCssRule:!1,boost_useWorker:!1},Bd={color_pattern:[],color_tiles:void 0,color_threshold:{},color_onover:void 0},Ud={legend_contents_bindto:void 0,legend_contents_template:"{=TITLE}",legend_equally:!1,legend_hide:!1,legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_interaction:!0,legend_item_dblclick:!1,legend_item_onclick:void 0,legend_item_onover:void 0,legend_item_onout:void 0,legend_item_tile_width:10,legend_item_tile_height:10,legend_item_tile_r:5,legend_item_tile_type:"rectangle",legend_format:void 0,legend_padding:0,legend_position:"bottom",legend_show:!0,legend_tooltip:!1,legend_usePoint:!1},zd={bindto:"#chart",background:{},clipPath:!0,svg_classname:void 0,size_width:void 0,size_height:void 0,padding:!0,padding_mode:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,resize_timer:!0,onclick:void 0,onover:void 0,onout:void 0,onresize:void 0,onresized:void 0,onbeforeinit:void 0,oninit:void 0,onafterinit:void 0,onrendered:void 0,transition_duration:250,plugins:[],render:{},regions:[]},jd={title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"center"},Gd={tooltip_show:!0,tooltip_doNotHide:!1,tooltip_grouped:!0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:{},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:void 0,tooltip_linked:!1,tooltip_linked_name:"",tooltip_onshow:()=>{},tooltip_onhide:()=>{},tooltip_onshown:()=>{},tooltip_onhidden:()=>{},tooltip_order:null},Vd={data_x:void 0,data_idConverter:t=>t,data_names:{},data_classes:{},data_type:void 0,data_types:{},data_order:"desc",data_groups:[],data_groupsZeroAs:"positive",data_color:void 0,data_colors:{},data_labels:{},data_labels_backgroundColors:void 0,data_labels_colors:void 0,data_labels_position:{},data_hide:!1,data_filter:void 0,data_onclick:()=>{},data_onover:()=>{},data_onout:()=>{},data_onshown:void 0,data_onhidden:void 0,data_onmin:void 0,data_onmax:void 0,data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:"csv",data_keys:void 0,data_empty_label_text:""},Xd={interaction_enabled:!0,interaction_brighten:!0,interaction_inputType_mouse:!0,interaction_inputType_touch:{}},Yd={value:()=>{}};function Qo(){for(var t=0,e=arguments.length,n={},a;t=0&&(a=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:a}})}ei.prototype=Qo.prototype={constructor:ei,on:function(t,e){var n=this._,a=Hd(t+"",n),i,s=-1,o=a.length;if(arguments.length<2){for(;++s0)for(var n=new Array(i),a=0,i,s;a>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?ai(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?ai(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=kd.exec(t))?new On(e[1],e[2],e[3],1):(e=Jd.exec(t))?new On(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Qd.exec(t))?ai(e[1],e[2],e[3],e[4]):(e=_d.exec(t))?ai(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=qd.exec(t))?sl(e[1],e[2]/100,e[3]/100,1):(e=th.exec(t))?sl(e[1],e[2]/100,e[3]/100,e[4]):tl.hasOwnProperty(t)?rl(tl[t]):t==="transparent"?new On(NaN,NaN,NaN,0):null}function rl(t){return new On(t>>16&255,t>>8&255,t&255,1)}function ai(t,e,n,a){return a<=0&&(t=e=n=NaN),new On(t,e,n,a)}function rh(t){return t instanceof Aa||(t=br(t)),t?(t=t.rgb(),new On(t.r,t.g,t.b,t.opacity)):new On}function ii(t,e,n,a){return arguments.length===1?rh(t):new On(t,e,n,a==null?1:a)}function On(t,e,n,a){this.r=+t,this.g=+e,this.b=+n,this.opacity=+a}us(On,ii,qo(Aa,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new On(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?ba:Math.pow(ba,t),new On(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new On(Er(this.r),Er(this.g),Er(this.b),si(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:al,formatHex:al,formatHex8:ah,formatRgb:il,toString:il}));function al(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}`}function ah(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}${Rr((isNaN(this.opacity)?1:this.opacity)*255)}`}function il(){const t=si(this.opacity);return`${t===1?"rgb(":"rgba("}${Er(this.r)}, ${Er(this.g)}, ${Er(this.b)}${t===1?")":`, ${t})`}`}function si(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Er(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Rr(t){return t=Er(t),(t<16?"0":"")+t.toString(16)}function sl(t,e,n,a){return a<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Xn(t,e,n,a)}function ol(t){if(t instanceof Xn)return new Xn(t.h,t.s,t.l,t.opacity);if(t instanceof Aa||(t=br(t)),!t)return new Xn;if(t instanceof Xn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,a=t.b/255,i=Math.min(e,n,a),s=Math.max(e,n,a),o=NaN,l=s-i,c=(s+i)/2;return l?(e===s?o=(n-a)/l+(n0&&c<1?0:o,new Xn(o,l,c,t.opacity)}function ih(t,e,n,a){return arguments.length===1?ol(t):new Xn(t,e,n,a==null?1:a)}function Xn(t,e,n,a){this.h=+t,this.s=+e,this.l=+n,this.opacity=+a}us(Xn,ih,qo(Aa,{brighter(t){return t=t==null?ri:Math.pow(ri,t),new Xn(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?ba:Math.pow(ba,t),new Xn(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,a=n+(n<.5?n:1-n)*e,i=2*n-a;return new On(fs(t>=240?t-240:t+120,i,a),fs(t,i,a),fs(t<120?t+240:t-120,i,a),this.opacity)},clamp(){return new Xn(ll(this.h),oi(this.s),oi(this.l),si(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 t=si(this.opacity);return`${t===1?"hsl(":"hsla("}${ll(this.h)}, ${oi(this.s)*100}%, ${oi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ll(t){return t=(t||0)%360,t<0?t+360:t}function oi(t){return Math.max(0,Math.min(1,t||0))}function fs(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function cl(t,e,n,a,i){var s=t*t,o=s*t;return((1-3*t+3*s-o)*e+(4-6*s+3*o)*n+(1+3*t+3*s-3*o)*a+o*i)/6}function sh(t){var e=t.length-1;return function(n){var a=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[a],s=t[a+1],o=a>0?t[a-1]:2*i-s,l=a()=>t;function ul(t,e){return function(n){return t+n*e}}function lh(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(a){return Math.pow(t+a*e,n)}}function X0(t,e){var n=e-t;return n?ul(t,n>180||n<-180?n-360*Math.round(n/360):n):li(isNaN(t)?e:t)}function ch(t){return(t=+t)==1?fl:function(e,n){return n-e?lh(e,n,t):li(isNaN(e)?n:e)}}function fl(t,e){var n=e-t;return n?ul(t,n):li(isNaN(t)?e:t)}var ci=function t(e){var n=ch(e);function a(i,s){var o=n((i=ii(i)).r,(s=ii(s)).r),l=n(i.g,s.g),c=n(i.b,s.b),u=fl(i.opacity,s.opacity);return function(g){return i.r=o(g),i.g=l(g),i.b=c(g),i.opacity=u(g),i+""}}return a.gamma=t,a}(1);function dl(t){return function(e){var n=e.length,a=new Array(n),i=new Array(n),s=new Array(n),o,l;for(o=0;on&&(s=e.slice(n,s),l[o]?l[o]+=s:l[++o]=s),(a=a[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,c.push({i:o,x:Yn(a,i)})),n=hs.lastIndex;return n=0&&t._call.call(void 0,e),t=t._next;--Zr}function Tl(){Or=(fi=Ca.now())+di,Zr=Ra=0;try{ph()}finally{Zr=0,yh(),Or=0}}function mh(){var t=Ca.now(),e=t-fi;e>ml&&(di-=e,fi=t)}function yh(){for(var t,e=ui,n,a=1/0;e;)e._call?(a>e._time&&(a=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:ui=n);Ia=t,vs(a)}function vs(t){if(!Zr){Ra&&(Ra=clearTimeout(Ra));var e=t-Or;e>24?(t<1/0&&(Ra=setTimeout(Tl,t-Ca.now()-di)),Oa&&(Oa=clearInterval(Oa))):(Oa||(fi=Ca.now(),Oa=setInterval(mh,ml)),Zr=1,yl(Tl))}}function $l(t,e,n){var a=new hi;return e=e==null?0:+e,a.restart(i=>{a.stop(),t(i+e)},e,n),a}var xh=ni("start","end","cancel","interrupt"),Th=[],Sl=0,Al=1,ps=2,gi=3,bl=4,ms=5,vi=6;function pi(t,e,n,a,i,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;$h(t,n,{name:e,index:a,group:i,on:xh,tween:Th,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Sl})}function ys(t,e){var n=Hn(t,e);if(n.state>Sl)throw new Error("too late; already scheduled");return n}function kn(t,e){var n=Hn(t,e);if(n.state>gi)throw new Error("too late; already running");return n}function Hn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function $h(t,e,n){var a=t.__transition,i;a[e]=n,n.timer=xl(s,0,n.time);function s(u){n.state=Al,n.timer.restart(o,n.delay,n.time),n.delay<=u&&o(u-n.delay)}function o(u){var g,v,m,S;if(n.state!==Al)return c();for(g in a)if(S=a[g],S.name===n.name){if(S.state===gi)return $l(o);S.state===bl?(S.state=vi,S.timer.stop(),S.on.call("interrupt",t,t.__data__,S.index,S.group),delete a[g]):+gps&&a.state180?g+=360:g-u>180&&(u+=360),m.push({i:v.push(i(v)+"rotate(",null,a)-2,x:Yn(u,g)})):g&&v.push(i(v)+"rotate("+g+a)}function l(u,g,v,m){u!==g?m.push({i:v.push(i(v)+"skewX(",null,a)-2,x:Yn(u,g)}):g&&v.push(i(v)+"skewX("+g+a)}function c(u,g,v,m,S,I){if(u!==v||g!==m){var N=S.push(i(S)+"scale(",null,",",null,")");I.push({i:N-4,x:Yn(u,v)},{i:N-2,x:Yn(g,m)})}else(v!==1||m!==1)&&S.push(i(S)+"scale("+v+","+m+")")}return function(u,g){var v=[],m=[];return u=t(u),g=t(g),s(u.translateX,u.translateY,g.translateX,g.translateY,v,m),o(u.rotate,g.rotate,v,m),l(u.skewX,g.skewX,v,m),c(u.scaleX,u.scaleY,g.scaleX,g.scaleY,v,m),u=g=null,function(S){for(var I=-1,N=m.length,M;++I=0&&(e=e.slice(0,n)),!e||e==="start"})}function eg(t,e,n){var a,i,s=tg(e)?ys:kn;return function(){var o=s(this,t),l=o.on;l!==a&&(i=(a=l).copy()).on(e,n),o.on=i}}function ng(t,e){var n=this._id;return arguments.length<2?Hn(this.node(),n).on.on(t):this.each(eg(n,t,e))}function rg(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function ag(){return this.on("end.remove",rg(this._id))}function ig(t){var e=this._name,n=this._id;typeof t!="function"&&(t=p(t));for(var a=this._groups,i=a.length,s=new Array(i),o=0;o()=>t;function Pg(t,{sourceEvent:e,target:n,selection:a,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:a,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function wg(t){t.stopImmediatePropagation()}function Ss(t){t.preventDefault(),t.stopImmediatePropagation()}var Ml={name:"drag"},As={name:"space"},Jr={name:"handle"},Qr={name:"center"};const{abs:Ll,max:mn,min:yn}=Math;function Dl(t){return[+t[0],+t[1]]}function bs(t){return[Dl(t[0]),Dl(t[1])]}var yi={name:"x",handles:["w","e"].map(Pa),input:function(t,e){return t==null?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},xi={name:"y",handles:["n","s"].map(Pa),input:function(t,e){return t==null?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Mg={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Pa),input:function(t){return t==null?null:bs(t)},output:function(t){return t}},or={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Nl={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Fl={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Lg={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Dg={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Pa(t){return{type:t}}function Ng(t){return!t.ctrlKey&&!t.button}function Fg(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Bg(){return navigator.maxTouchPoints||"ontouchstart"in this}function Es(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ug(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Bl(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function zg(){return Rs(yi)}function jg(){return Rs(xi)}function k0(){return Rs(Mg)}function Rs(t){var e=Fg,n=Ng,a=Bg,i=!0,s=ni("start","brush","end"),o=6,l;function c(M){var P=M.property("__brush",N).selectAll(".overlay").data([Pa("overlay")]);P.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",or.overlay).merge(P).each(function(){var H=Es(this).extent;st(this).attr("x",H[0][0]).attr("y",H[0][1]).attr("width",H[1][0]-H[0][0]).attr("height",H[1][1]-H[0][1])}),M.selectAll(".selection").data([Pa("selection")]).enter().append("rect").attr("class","selection").attr("cursor",or.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var G=M.selectAll(".handle").data(t.handles,function(H){return H.type});G.exit().remove(),G.enter().append("rect").attr("class",function(H){return"handle handle--"+H.type}).attr("cursor",function(H){return or[H.type]}),M.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",m).filter(a).on("touchstart.brush",m).on("touchmove.brush",S).on("touchend.brush touchcancel.brush",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}c.move=function(M,P,G){M.tween?M.on("start.brush",function(H){g(this,arguments).beforestart().start(H)}).on("interrupt.brush end.brush",function(H){g(this,arguments).end(H)}).tween("brush",function(){var H=this,Y=H.__brush,_=g(H,arguments),K=Y.selection,at=t.input(typeof P=="function"?P.apply(this,arguments):P,Y.extent),$t=Kr(K,at);function At(vt){Y.selection=vt===1&&at===null?null:$t(vt),u.call(H),_.brush()}return K!==null&&at!==null?At:At(1)}):M.each(function(){var H=this,Y=arguments,_=H.__brush,K=t.input(typeof P=="function"?P.apply(H,Y):P,_.extent),at=g(H,Y).beforestart();kr(H),_.selection=K===null?null:K,u.call(H),at.start(G).brush(G).end(G)})},c.clear=function(M,P){c.move(M,null,P)};function u(){var M=st(this),P=Es(this).selection;P?(M.selectAll(".selection").style("display",null).attr("x",P[0][0]).attr("y",P[0][1]).attr("width",P[1][0]-P[0][0]).attr("height",P[1][1]-P[0][1]),M.selectAll(".handle").style("display",null).attr("x",function(G){return G.type[G.type.length-1]==="e"?P[1][0]-o/2:P[0][0]-o/2}).attr("y",function(G){return G.type[0]==="s"?P[1][1]-o/2:P[0][1]-o/2}).attr("width",function(G){return G.type==="n"||G.type==="s"?P[1][0]-P[0][0]+o:o}).attr("height",function(G){return G.type==="e"||G.type==="w"?P[1][1]-P[0][1]+o:o})):M.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function g(M,P,G){var H=M.__brush.emitter;return H&&(!G||!H.clean)?H:new v(M,P,G)}function v(M,P,G){this.that=M,this.args=P,this.state=M.__brush,this.active=0,this.clean=G}v.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(M,P){return this.starting?(this.starting=!1,this.emit("start",M,P)):this.emit("brush",M),this},brush:function(M,P){return this.emit("brush",M,P),this},end:function(M,P){return--this.active===0&&(delete this.state.emitter,this.emit("end",M,P)),this},emit:function(M,P,G){var H=st(this.that).datum();s.call(M,this.that,new Pg(M,{sourceEvent:P,target:c,selection:t.output(this.state.selection),mode:G,dispatch:s}),H)}};function m(M){if(l&&!M.touches||!n.apply(this,arguments))return;var P=this,G=M.target.__data__.type,H=(i&&M.metaKey?G="overlay":G)==="selection"?Ml:i&&M.altKey?Qr:Jr,Y=t===xi?null:Lg[G],_=t===yi?null:Dg[G],K=Es(P),at=K.extent,$t=K.selection,At=at[0][0],vt,gt,Ft=at[0][1],pt,k,Et=at[1][0],ut,Rt,jt=at[1][1],zt,Wt,Ht=0,ee=0,je,Oe=Y&&_&&i&&M.shiftKey,Ge,cn,Le=Array.from(M.touches||[M],he=>{const an=he.identifier;return he=Un(he,P),he.point0=he.slice(),he.identifier=an,he});kr(P);var ln=g(P,arguments,!0).beforestart();if(G==="overlay"){$t&&(je=!0);const he=[Le[0],Le[1]||Le[0]];K.selection=$t=[[vt=t===xi?At:yn(he[0][0],he[1][0]),pt=t===yi?Ft:yn(he[0][1],he[1][1])],[ut=t===xi?Et:mn(he[0][0],he[1][0]),zt=t===yi?jt:mn(he[0][1],he[1][1])]],Le.length>1&&rn(M)}else vt=$t[0][0],pt=$t[0][1],ut=$t[1][0],zt=$t[1][1];gt=vt,k=pt,Rt=ut,Wt=zt;var Kt=st(P).attr("pointer-events","none"),pe=Kt.selectAll(".overlay").attr("cursor",or[G]);if(M.touches)ln.moved=Dt,ln.ended=Ue;else{var be=st(M.view).on("mousemove.brush",Dt,!0).on("mouseup.brush",Ue,!0);i&&be.on("keydown.brush",bn,!0).on("keyup.brush",En,!0),ls(M.view)}u.call(P),ln.start(M,H.name);function Dt(he){for(const an of he.changedTouches||[he])for(const Ga of Le)Ga.identifier===an.identifier&&(Ga.cur=Un(an,P));if(Oe&&!Ge&&!cn&&Le.length===1){const an=Le[0];Ll(an.cur[0]-an[0])>Ll(an.cur[1]-an[1])?cn=!0:Ge=!0}for(const an of Le)an.cur&&(an[0]=an.cur[0],an[1]=an.cur[1]);je=!0,Ss(he),rn(he)}function rn(he){const an=Le[0],Ga=an.point0;var Tr;switch(Ht=an[0]-Ga[0],ee=an[1]-Ga[1],H){case As:case Ml:{Y&&(Ht=mn(At-vt,yn(Et-ut,Ht)),gt=vt+Ht,Rt=ut+Ht),_&&(ee=mn(Ft-pt,yn(jt-zt,ee)),k=pt+ee,Wt=zt+ee);break}case Jr:{Le[1]?(Y&&(gt=mn(At,yn(Et,Le[0][0])),Rt=mn(At,yn(Et,Le[1][0])),Y=1),_&&(k=mn(Ft,yn(jt,Le[0][1])),Wt=mn(Ft,yn(jt,Le[1][1])),_=1)):(Y<0?(Ht=mn(At-vt,yn(Et-vt,Ht)),gt=vt+Ht,Rt=ut):Y>0&&(Ht=mn(At-ut,yn(Et-ut,Ht)),gt=vt,Rt=ut+Ht),_<0?(ee=mn(Ft-pt,yn(jt-pt,ee)),k=pt+ee,Wt=zt):_>0&&(ee=mn(Ft-zt,yn(jt-zt,ee)),k=pt,Wt=zt+ee));break}case Qr:{Y&&(gt=mn(At,yn(Et,vt-Ht*Y)),Rt=mn(At,yn(Et,ut+Ht*Y))),_&&(k=mn(Ft,yn(jt,pt-ee*_)),Wt=mn(Ft,yn(jt,zt+ee*_)));break}}Rt0&&(vt=gt-Ht),_<0?zt=Wt-ee:_>0&&(pt=k-ee),H=As,pe.attr("cursor",or.selection),rn(he));break}default:return}Ss(he)}function En(he){switch(he.keyCode){case 16:{Oe&&(Ge=cn=Oe=!1,rn(he));break}case 18:{H===Qr&&(Y<0?ut=Rt:Y>0&&(vt=gt),_<0?zt=Wt:_>0&&(pt=k),H=Jr,rn(he));break}case 32:{H===As&&(he.altKey?(Y&&(ut=Rt-Ht*Y,vt=gt+Ht*Y),_&&(zt=Wt-ee*_,pt=k+ee*_),H=Qr):(Y<0?ut=Rt:Y>0&&(vt=gt),_<0?zt=Wt:_>0&&(pt=k),H=Jr),pe.attr("cursor",or[G]),rn(he));break}default:return}Ss(he)}}function S(M){g(this,arguments).moved(M)}function I(M){g(this,arguments).ended(M)}function N(){var M=this.__brush||{selection:null};return M.extent=bs(e.apply(this,arguments)),M.dim=t,M}return c.extent=function(M){return arguments.length?(e=typeof M=="function"?M:$s(bs(M)),c):e},c.filter=function(M){return arguments.length?(n=typeof M=="function"?M:$s(!!M),c):n},c.touchable=function(M){return arguments.length?(a=typeof M=="function"?M:$s(!!M),c):a},c.handleSize=function(M){return arguments.length?(o=+M,c):o},c.keyModifiers=function(M){return arguments.length?(i=!!M,c):i},c.on=function(){var M=s.on.apply(s,arguments);return M===s?c:M},c}function Gg(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Vg(t){const e=typeof(t==null?void 0:t.requestAnimationFrame)=="function"&&typeof(t==null?void 0:t.cancelAnimationFrame)=="function",n=typeof(t==null?void 0:t.requestIdleCallback)=="function"&&typeof(t==null?void 0:t.cancelIdleCallback)=="function",a=s=>setTimeout(s,1),i=s=>clearTimeout(s);return[e?t.requestAnimationFrame:a,e?t.cancelAnimationFrame:i,n?t.requestIdleCallback:a,n?t.cancelIdleCallback:i]}const Ke=Gg(),fn=Ke==null?void 0:Ke.document,[Xg,J0,Ul,Q0]=Vg(Ke);var Yg=Object.defineProperty,zl=Object.getOwnPropertySymbols,Hg=Object.prototype.hasOwnProperty,Wg=Object.prototype.propertyIsEnumerable,jl=(t,e,n)=>e in t?Yg(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Gl=(t,e)=>{for(var n in e||(e={}))Hg.call(e,n)&&jl(t,n,e[n]);if(zl)for(var n of zl(e))Wg.call(e,n)&&jl(t,n,e[n]);return t};const Ie=t=>t||t===0,de=t=>typeof t=="function",ze=t=>typeof t=="string",fe=t=>typeof t=="number",en=t=>typeof t=="undefined",Xe=t=>typeof t!="undefined",Os=t=>typeof t=="boolean",Kg=t=>Math.ceil(t/10)*10,Ti=t=>Math.ceil(t)+.5,Ir=t=>t[1]-t[0],Jn=t=>typeof t=="object",Wn=t=>en(t)||t===null||ze(t)&&t.length===0||Jn(t)&&!(t instanceof Date)&&Object.keys(t).length===0||fe(t)&&isNaN(t),nn=t=>!Wn(t),Fe=t=>Array.isArray(t),De=t=>t&&!(t!=null&&t.nodeType)&&Jn(t)&&!Fe(t);function pr(t,e,n){return Xe(t[e])?t[e]:n}function Zg(t,e){let n=!1;return Object.keys(t).forEach(a=>t[a]===e&&(n=!0)),n}function Ze(t,e,...n){const a=de(t);return a&&t.call(e,...n),a}function $i(t,e){let n=0;const a=function(...i){!--n&&e.apply(this,...i)};"duration"in t?t.each(()=>++n).on("end",a):(++n,t.call(a))}function Is(t){return ze(t)?t.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):t}function wa(t,e,n=[-1,1],a=!1){if(!(!t||!ze(e)))if(e.indexOf(` `)===-1)t.text(e);else{const i=[t.text(),e].map(s=>s.replace(/[\s\n]/g,""));if(i[0]!==i[1]){const s=e.split(` `),o=a?s.length-1:1;t.html(""),s.forEach((l,c)=>{t.append("tspan").attr("x",0).attr("dy",`${c===0?n[0]*o:n[1]}em`).text(l)})}}}function Vl(t){const{x:e,y:n,width:a,height:i}=t.getBBox();return[{x:e,y:n+i},{x:e,y:n},{x:e+a,y:n},{x:e+a,y:n+i}]}function Xl(t){const{width:e,height:n}=t.getBoundingClientRect(),a=Vl(t),i=a[0].x,s=Math.min(a[0].y,a[1].y);return{x:i,y:s,width:e,height:n}}function zn(t,e){var n;const a=t&&((n=t.touches||t.sourceEvent&&t.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=Un(a||t,e)}catch(s){}return i.map(s=>isNaN(s)?0:s)}function Yl(t){const{event:e,$el:n}=t,a=n.subchart.main||n.main;let i;return e&&e.type==="brush"?i=e.selection:a&&(i=a.select(".bb-brush").node())&&(i=Bl(i)),i}function Si(t){return!("rect"in t)||"rect"in t&&t.hasAttribute("width")&&t.rect.width!==+t.getAttribute("width")?t.rect=t.getBoundingClientRect():t.rect}function lr(t=!0,e=0,n=1e4){const a=Ke.crypto||Ke.msCrypto,i=a?e+a.getRandomValues(new Uint32Array(1))[0]%(n-e+1):Math.floor(Math.random()*(n-e)+e);return t?String(i):i}function Cs(t,e,n,a,i){if(n>a)return-1;const s=Math.floor((n+a)/2);let{x:o,w:l=0}=t[s];return i&&(o=t[s].y,l=t[s].h),e>=o&&e<=o+l?s:e{if(De(n)&&n.constructor){const a=new n.constructor;for(const i in n)a[i]=e(n[i]);return a}return n};return t.map(n=>e(n)).reduce((n,a)=>Gl(Gl({},n),a))}function gn(t={},e){Fe(e)&&e.forEach(n=>gn(t,n));for(const n in e)/^\d+$/.test(n)||n in t||(t[n]=e[n]);return t}const In=t=>t.charAt(0).toUpperCase()+t.slice(1);function Jg(t,e="-"){return t.split(e).map((n,a)=>a?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Cr=t=>[].slice.call(t);function Qg(t,e,n){const{rootSelector:a="",sheet:i}=t,o=`${a} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(e)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function _g(t){let e=[];return t.forEach(n=>{var a;try{n.cssRules&&n.cssRules.length&&(e=e.concat(Cr(n.cssRules)))}catch(i){(a=Ke.console)==null||a.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),e}function Wl(t){var e,n,a,i;return{x:((n=(e=Ke.pageXOffset)!=null?e:Ke.scrollX)!=null?n:0)+t.scrollLeft,y:((i=(a=Ke.pageYOffset)!=null?a:Ke.scrollY)!=null?i:0)+t.scrollTop}}function Kl(t){const e=t?t.transform:null,n=e&&e.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ps(t){const e=t[0]instanceof Date,n=(e?t.map(Number):t).filter((a,i,s)=>s.indexOf(a)===i);return e?n.map(a=>new Date(a)):n}function ws(t){return t&&t.length?t.reduce((e,n)=>e.concat(n)):[]}function _r(t,...e){if(!e.length||e.length===1&&!e[0])return t;const n=e.shift();return De(t)&&De(n)&&Object.keys(n).forEach(a=>{const i=n[a];De(i)?(!t[a]&&(t[a]={}),t[a]=_r(t[a],i)):t[a]=Fe(i)?i.concat():i}),_r(t,...e)}function qr(t,e=!0){let n;return t[0]instanceof Date?n=e?(a,i)=>a-i:(a,i)=>i-a:e&&!t.every(isNaN)?n=(a,i)=>a-i:e||(n=(a,i)=>a>i&&-1||ann(a));return n.length?fe(n[0])?n=Math[t](...n):n[0]instanceof Date&&(n=qr(n,t==="min")[0]):n=void 0,n}const Ai=(t,e,n=1)=>{const a=[],i=Math.max(0,Math.ceil((e-t)/n))|0;for(let s=t;s{const t=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(e,n,a=t())=>{e.dispatchEvent(new MouseEvent(n,a))}}catch(e){return(n,a,i=t())=>{const s=fn.createEvent("MouseEvent");s.initMouseEvent(a,i.bubbles,i.cancelable,Ke,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(t,e,n)=>{const a=new Touch(_r({identifier:Date.now(),target:t,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));t.dispatchEvent(new TouchEvent(e,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[a],targetTouches:[],changedTouches:[a]}))}};function bi(t,e){let n=t;for(const a in e)n=n.replace(new RegExp(`{=${a}}`,"g"),e[a]);return n}function Dn(t){var e;let n;if(t instanceof Date)n=t;else if(ze(t)){const{config:a,format:i}=this;n=(e=i.dataTime(a.data_xFormat)(t))!=null?e:new Date(t)}else fe(t)&&!isNaN(t)&&(n=new Date(+t));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${t}' to Date object`),n}function Ma(){var t,e;return((t=fn)==null?void 0:t.hidden)===!1||((e=fn)==null?void 0:e.visibilityState)==="visible"}function tv(t,e){const{DocumentTouch:n,matchMedia:a,navigator:i}=Ke;let s=!1;if(e)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in Ke||n&&fn instanceof n)s=!0;else if(a!=null&&a("(pointer:coarse)").matches)s=!0;else{const l=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(l)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(l)}return t&&((a==null?void 0:a("any-hover:hover").matches)||(a==null?void 0:a("any-pointer:fine").matches))&&"mouse"||s&&"touch"||"mouse"}function Zl(t,e){e()===!1?Xg(()=>Zl(t,e)):t()}var ev=Object.defineProperty,kl=Object.getOwnPropertySymbols,nv=Object.prototype.hasOwnProperty,rv=Object.prototype.propertyIsEnumerable,Ms=(t,e,n)=>e in t?ev(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jl=(t,e)=>{for(var n in e||(e={}))nv.call(e,n)&&Ms(t,n,e[n]);if(kl)for(var n of kl(e))rv.call(e,n)&&Ms(t,n,e[n]);return t},av=(t,e,n)=>Ms(t,typeof e!="symbol"?e+"":e,n);const Ql=class Af{static setOptions(e){this.data=e.reduce((n,a)=>Jl(Jl({},n),a),this.data)}constructor(){return kg(zd,Fd,Vd,Bd,Xd,Ud,jd,Gd,Af.data)}};av(Ql,"data",{});let Pr=Ql;class iv{constructor(){return{chart:null,main:null,svg:null,axis:{x:null,y:null,y2:null,subX:null},axisTooltip:{x:null,y:null,y2:null},defs:null,tooltip:null,legend:null,title:null,subchart:{main:null,bar:null,line:null,area:null},arcs:null,bar:null,candlestick:null,line:null,area:null,circle:null,radar:null,text:null,grid:{main:null,x:null,y:null},gridLines:{main:null,x:null,y:null},region:{main:null,list:null},eventRect:null,zoomResetBtn:null}}}class sv{constructor(){return{width:0,width2:0,height:0,height2:0,margin:{top:0,bottom:0,left:0,right:0},margin2:{top:0,bottom:0,left:0,right:0},margin3:{top:0,bottom:0,left:0,right:0},arcWidth:0,arcHeight:0,xAxisHeight:0,hasAxis:!1,hasFunnel:!1,hasRadar:!1,hasTreemap:!1,cssRule:{},current:{domain:void 0,width:0,height:0,dataMax:0,maxTickSize:{x:{width:0,height:0,ticks:[],clipPath:0,domain:""},y:{width:0,height:0,domain:""},y2:{width:0,height:0,domain:""}},types:[],needle:void 0},isLegendRight:!1,isLegendInset:!1,isLegendTop:!1,isLegendLeft:!1,legendStep:0,legendItemWidth:0,legendItemHeight:0,legendHasRendered:!1,eventReceiver:{currentIdx:-1,rect:{},data:[],coords:[]},axis:{x:{padding:{left:0,right:0},tickCount:0}},rotatedPadding:{left:30,right:0,top:5},withoutFadeIn:{},inputType:"",datetimeId:"",clip:{id:"",idXAxis:"",idYAxis:"",idXAxisTickTexts:"",idGrid:"",idSubchart:"",path:"",pathXAxis:"",pathYAxis:"",pathXAxisTickTexts:"",pathGrid:""},event:null,dragStart:null,dragging:!1,flowing:!1,cancelClick:!1,mouseover:!1,rendered:!1,transiting:!1,redrawing:!1,resizing:!1,toggling:!1,zooming:!1,hasNegativeValue:!1,hasPositiveValue:!0,orgAreaOpacity:"0.2",orgConfig:{},hiddenTargetIds:[],hiddenLegendIds:[],focusedTargetIds:[],defocusedTargetIds:[],radius:0,innerRadius:0,outerRadius:void 0,innerRadiusRatio:0,gaugeArcWidth:0,radiusExpanded:0,xgridAttr:{x1:null,x2:null,y1:null,y2:null}}}}const _l={element:iv,state:sv};class ov{constructor(){Object.keys(_l).forEach(e=>{this[e]=new _l[e]})}getStore(e){return this[e]}}var lv=Object.defineProperty,cv=(t,e,n)=>e in t?lv(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,uv=(t,e,n)=>cv(t,typeof e!="symbol"?e+"":e,n);const Cn={bubbleBaseLength:"$baseLength",colorPattern:"__colorPattern__",dataMinMax:"$dataMinMax",dataTotalSum:"$dataTotalSum",dataTotalPerIndex:"$totalPerIndex",legendItemTextBox:"legendItemTextBox",radarPoints:"$radarPoints",radarTextWidth:"$radarTextWidth",setOverOut:"setOverOut",callOverOutForTouch:"callOverOutForTouch",textRect:"textRect"};class fv{constructor(){uv(this,"cache",{})}add(e,n,a=!1){return this.cache[e]=a?this.cloneTarget(n):n,this.cache[e]}remove(e){(ze(e)?[e]:e).forEach(n=>delete this.cache[n])}get(e,n=!1){if(n&&Array.isArray(e)){const a=[];for(let i=0,s;s=e[i];i++)s in this.cache&&a.push(this.cloneTarget(this.cache[s]));return a}else{const a=this.cache[e];return Ie(a)?a:null}}reset(e){const n=this;for(const a in n.cache)(e||/^\$/.test(a))&&(n.cache[a]=null)}cloneTarget(e){return{id:e.id,id_org:e.id_org,values:e.values.map(n=>({x:n.x,value:n.value,id:n.id}))}}}const ae={AREA:"area",AREA_LINE_RANGE:"area-line-range",AREA_SPLINE:"area-spline",AREA_SPLINE_RANGE:"area-spline-range",AREA_STEP:"area-step",AREA_STEP_RANGE:"area-step-range",BAR:"bar",BUBBLE:"bubble",CANDLESTICK:"candlestick",DONUT:"donut",FUNNEL:"funnel",GAUGE:"gauge",LINE:"line",PIE:"pie",POLAR:"polar",RADAR:"radar",SCATTER:"scatter",SPLINE:"spline",STEP:"step",TREEMAP:"treemap"},Ls={AREA:"initArea",AREA_LINE_RANGE:"initArea",AREA_SPLINE:"initArea",AREA_SPLINE_RANGE:"initArea",AREA_STEP:"initArea",AREA_STEP_RANGE:"initArea",BAR:"initBar",BUBBLE:"initCircle",CANDLESTICK:"initCandlestick",DONUT:"initArc",FUNNEL:"initFunnel",GAUGE:"initArc",LINE:"initLine",PIE:"initArc",POLAR:"initPolar",RADAR:"initCircle",SCATTER:"initCircle",SPLINE:"initLine",STEP:"initLine",TREEMAP:"initTreemap"},mr={Area:[ae.AREA,ae.AREA_SPLINE,ae.AREA_SPLINE_RANGE,ae.AREA_LINE_RANGE,ae.AREA_STEP,ae.AREA_STEP_RANGE],AreaRange:[ae.AREA_SPLINE_RANGE,ae.AREA_LINE_RANGE,ae.AREA_STEP_RANGE],Arc:[ae.PIE,ae.DONUT,ae.GAUGE,ae.POLAR,ae.RADAR],Line:[ae.LINE,ae.SPLINE,ae.AREA,ae.AREA_SPLINE,ae.AREA_SPLINE_RANGE,ae.AREA_LINE_RANGE,ae.STEP,ae.AREA_STEP,ae.AREA_STEP_RANGE],Step:[ae.STEP,ae.AREA_STEP,ae.AREA_STEP_RANGE],Spline:[ae.SPLINE,ae.AREA_SPLINE,ae.AREA_SPLINE_RANGE]};function dv(t){const e=t,{config:n}=e;let a="";if(Wn(n.data_type||n.data_types)&&!e[Ls.LINE])a="line";else for(const i in Ls){const s=ae[i];if(e.hasType(s)&&!e[Ls[i]]){a=s;break}}a&&hv(`Please, make sure if %c${Jg(a)}`,"module has been imported and specified correctly.")}function hv(t,e){var n;const a="[billboard.js]";throw((n=Ke.console)==null?void 0:n.error)&&(console.error(`\u274C ${a} ${t}`,"background:red;color:white;display:block;font-size:15px",e),console.info("%c\u2139\uFE0F","font-size:15px","https://github.com/naver/billboard.js/wiki/CHANGELOG-v2#modularization-by-its-functionality")),Error(`${a} ${t.replace(/\%c([a-z-]+)/i,"'$1' ")} ${e}`)}const{setTimeout:gv,clearTimeout:vv}=Ke;function pv(t){const e=[];let n;const a=function(){a.clear(),t===!1?Ul(()=>{e.forEach(i=>i())},{timeout:200}):n=gv(()=>{e.forEach(i=>i())},fe(t)?t:200)};return a.clear=()=>{n&&(vv(n),n=null)},a.add=i=>e.push(i),a.remove=i=>e.splice(e.indexOf(i),1),a}function ql(){let t=[];const e=function(n,a){function i(){var s;let o=0;for(let l=0,c;c=t[l];l++){if(c===!0||(s=c.empty)!=null&&s.call(c)){o++;continue}if(Ma()===!1){o=t.length;break}try{c.transition()}catch(u){o++}}return o===t.length}Zl(()=>{a==null||a()},i)};return e.add=function(n){Fe(n)?t=t.concat(n):t.push(n)},e}const Ds={};function mv(t,e){var n;const a=t.toString(),i=a.replace(/(function|[\s\W\n])/g,"").substring(0,15);return i in Ds||(Ds[i]=new Ke.Blob([`${(n=e==null?void 0:e.map(String).join(";"))!=null?n:""} @@ -34,24 +34,24 @@ const result = (${a}).apply(null, data); self.postMessage(result); };`],{type:"text/javascript"})),Ke.URL.createObjectURL(Ds[i])}function yv(t){const e=new Ke.Worker(t);return e.onerror=function(n){console.error?console.error(n):console.log(n)},e}function Ns(t=!0,e,n,a){let i=function(...s){const o=e(...s);n(o)};if(Ke.Worker&&t){const s=mv(e,a),o=yv(s);i=function(...l){o.postMessage(l),o.onmessage=function(c){return Ke.URL.revokeObjectURL(s),n(c.data)}}}return i}var tc={},Fs={},Bs=34,La=10,Us=13;function ec(t){return new Function("d","return {"+t.map(function(e,n){return JSON.stringify(e)+": d["+n+'] || ""'}).join(",")+"}")}function xv(t,e){var n=ec(t);return function(a,i){return e(n(a),i,t)}}function nc(t){var e=Object.create(null),n=[];return t.forEach(function(a){for(var i in a)i in e||n.push(e[i]=i)}),n}function Pn(t,e){var n=t+"",a=n.length;return a9999?"+"+Pn(t,6):Pn(t,4)}function $v(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),a=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":Tv(t.getUTCFullYear(),4)+"-"+Pn(t.getUTCMonth()+1,2)+"-"+Pn(t.getUTCDate(),2)+(i?"T"+Pn(e,2)+":"+Pn(n,2)+":"+Pn(a,2)+"."+Pn(i,3)+"Z":a?"T"+Pn(e,2)+":"+Pn(n,2)+":"+Pn(a,2)+"Z":n||e?"T"+Pn(e,2)+":"+Pn(n,2)+"Z":"")}function rc(t){var e=new RegExp('["'+t+` -\r]`),n=t.charCodeAt(0);function a(v,m){var S,I,N=i(v,function(M,P){if(S)return S(M,P-1);I=M,S=m?xv(M,m):ec(M)});return N.columns=I||[],N}function i(v,m){var S=[],I=v.length,N=0,M=0,P,G=I<=0,W=!1;v.charCodeAt(I-1)===La&&--I,v.charCodeAt(I-1)===Us&&--I;function V(){if(G)return Fs;if(W)return W=!1,tc;var H,at=N,gt;if(v.charCodeAt(at)===Bs){for(;N++=I?G=!0:(gt=v.charCodeAt(N++))===La?W=!0:gt===Us&&(W=!0,v.charCodeAt(N)===La&&++N),v.slice(at+1,H-1).replace(/""/g,'"')}for(;N=I?G=!0:($t=v.charCodeAt(N++))===La?H=!0:$t===Us&&(H=!0,v.charCodeAt(N)===La&&++N),v.slice(at+1,K-1).replace(/""/g,'"')}for(;N0){if(typeof e[o-1]=="undefined"&&(e[o-1]={}),typeof s=="undefined")throw new Error(`Source data is missing a component at (${a}, ${o})!`);e[o-1][i]=s}})}),e}function js(t){const e=t[0],n=[];return t.forEach(function(a,i){if(i>0){const s={};a.forEach(function(o,l){if(typeof o=="undefined")throw new Error(`Source data is missing a component at (${i}, ${l})!`);s[e[l]]=o}),n.push(s)}}),n}function ac(t,e){const n=[];let a,i;if(Array.isArray(t)){const s=function(o,l){if(o[l]!==void 0)return o[l];const u=l.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let g=o;return u.some(function(v){return!(g=g&&v in g?g[v]:void 0)}),g};e.x?a=e.value.concat(e.x):a=e.value,n.push(a),t.forEach(function(o){const l=a.map(function(c){let u=s(o,c);return typeof u=="undefined"&&(u=null),u});n.push(l)}),i=js(n)}else Object.keys(t).forEach(function(s){var o;const l=t[s].concat();(o=l.unshift)==null||o.call(l,s),n.push(l)}),i=zs(n);return i}function Rv(t,e="csv",n,a,i){const s=new XMLHttpRequest,o={csv:Ov,tsv:Iv,json:ac};s.open("GET",t),n&&Object.keys(n).forEach(function(l){s.setRequestHeader(l,n[l])}),s.onreadystatechange=function(){if(s.readyState===4)if(s.status===200){const l=s.responseText;l&&i.call(this,o[e](e==="json"?JSON.parse(l):l,a))}else throw new Error(`${t}: Something went wrong loading!`)},s.send()}function ic(t,e){const n=t.rows(e);let a;return n.length===1?(a=[{}],n[0].forEach(i=>{a[0][i]=null})):a=t.parse(e),a}function Ov(t){return ic({rows:Av,parse:Sv},t)}function Iv(t){return ic({rows:Ev,parse:bv},t)}function sc(t,e){const n=t||(e==null?void 0:e.data_keys);return n!=null&&n.x&&(e.data_x=n.x),n}var Cv={convertData(t,e){const{config:n}=this,a=n.boost_useWorker;let i=t;if(t.bindto&&(i={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(s=>{const o=`data_${s}`;o in t&&(i[s]=t[o])})),i.url&&e)Rv(i.url,i.mimeType,i.headers,sc(i.keys,n),e);else if(i.json)Ns(a,ac,e,[zs,js])(i.json,sc(i.keys,n));else if(i.rows)Ns(a,js,e)(i.rows);else if(i.columns)Ns(a,zs,e)(i.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets(t,e){const n=this,{axis:a,config:i,state:s}=n,o=i.data_type;let l=!1,c=!1,u=!1;a&&(l=a.isCategorized(),c=a.isTimeSeries(),u=a.isCustomX());const g=Object.keys(t[0]||{}),v=g.length?g.filter(n.isNotX,n):[],m=g.length?g.filter(n.isX,n):[];let S;v.forEach(N=>{const M=this.getXKey(N);u||c?m.indexOf(M)>=0?S=(e&&n.data.xs[N]||[]).concat(t.map(P=>P[M]).filter(Ie).map((P,G)=>n.generateTargetX(P,N,G))):i.data_x?S=this.getOtherTargetXs():nn(i.data_xs)&&(S=n.getXValuesOfXKey(M,n.data.targets)):S=t.map((P,G)=>G),S&&(this.data.xs[N]=S)}),v.forEach(N=>{if(!this.data.xs[N])throw new Error(`x is not defined for id = "${N}".`)});const I=v.map((N,M)=>{const P=i.data_idConverter.bind(n.api)(N),G=n.getXKey(N),W=u&&l,V=W&&t.map(at=>at.x).every(at=>i.axis_x_categories.indexOf(at)>-1),k=t.__append__,H=G===null&&k?n.api.data.values(N).length:0;return{id:P,id_org:N,values:t.map((at,gt)=>{const $t=at[G];let St=at[N],Tt;return St=St!==null&&!isNaN(St)&&!De(St)?+St:Fe(St)||De(St)?St:null,(W||s.hasRadar)&&M===0&&!en($t)?(!V&&M===0&>===0&&!k&&(i.axis_x_categories=[]),Tt=i.axis_x_categories.indexOf($t),Tt===-1&&(Tt=i.axis_x_categories.length,i.axis_x_categories.push($t))):Tt=n.generateTargetX($t,N,H+gt),(en(St)||n.data.xs[N].length<=gt)&&(Tt=void 0),{x:Tt,value:St,id:P,index:-1}}).filter(at=>Xe(at.x))}});if(I.forEach(N=>{var M;i.data_xSort&&(N.values=N.values.sort((P,G)=>{const W=P.x||P.x===0?P.x:1/0,V=G.x||G.x===0?G.x:1/0;return W-V})),N.values.forEach((P,G)=>P.index=G),(M=n.data.xs[N.id])==null||M.sort((P,G)=>P-G)}),s.hasNegativeValue=n.hasNegativeValueInTargets(I),s.hasPositiveValue=n.hasPositiveValueInTargets(I),o&&n.isValidChartType(o)){const N=n.mapToIds(I).filter(M=>!(M in i.data_types)||!n.isValidChartType(i.data_types[M]));n.setTargetType(N,o)}return I.forEach(N=>n.cache.add(N.id_org,N,!0)),I}},Pv={isX(t){const e=this,{config:n}=e,a=n.data_x&&t===n.data_x,i=nn(n.data_xs)&&Zg(n.data_xs,t);return a||i},isNotX(t){return!this.isX(t)},isStackNormalized(){const{config:t}=this;return!!(t.data_stack_normalize&&t.data_groups.length)},isGrouped(t){const e=this.config.data_groups;return t?e.some(n=>n.indexOf(t)>=0&&n.length>1):e.length>0},getXKey(t){const e=this,{config:n}=e;return n.data_x?n.data_x:nn(n.data_xs)?n.data_xs[t]:null},getXValuesOfXKey(t,e){const n=this,a=e&&nn(e)?n.mapToIds(e):[];let i;return a.forEach(s=>{n.getXKey(s)===t&&(i=n.data.xs[s])}),i},getIndexByX(t,e){const n=this;return e?e.indexOf(ze(t)?t:+t):(n.filterByX(n.data.targets,t)[0]||{index:null}).index},getXValue(t,e){const n=this;return t in n.data.xs&&n.data.xs[t]&&Ie(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs(){const t=this,e=Object.keys(t.data.xs);return e.length?t.data.xs[e[0]]:null},getOtherTargetX(t){const e=this.getOtherTargetXs();return e&&t{n.data_xs[a]=t[a]})},isMultipleX(){return!this.config.axis_x_forceAsSingle&&(nn(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter"))},addName(t){const e=this,{config:n}=e;let a;return t&&(a=n.data_names[t.id],t.name=a!==void 0?a:t.id),t},getAllValuesOnIndex(t,e=!1){const n=this;let a=n.filterTargetsToShow(n.data.targets).map(i=>n.addName(n.getValueOnIndex(i.values,t)));return e&&(a=a.filter(i=>i&&"value"in i&&Ie(i.value))),a},getValueOnIndex(t,e){const n=t.filter(a=>a.index===e);return n.length?n[0]:null},updateTargetX(t,e){const n=this;t.forEach(a=>{a.values.forEach((i,s)=>{i.x=n.generateTargetX(e[s],a.id,s)}),n.data.xs[a.id]=e})},updateTargetXs(t,e){const n=this;t.forEach(a=>{e[a.id]&&n.updateTargetX([a],e[a.id])})},generateTargetX(t,e,n){const a=this,{axis:i}=a;let s=i!=null&&i.isCategorized()?n:t||n;if(i!=null&&i.isTimeSeries()){const o=Dn.bind(a);s=o(t||a.getXValue(e,n))}else i!=null&&i.isCustomX()&&!(i!=null&&i.isCategorized())&&(s=Ie(t)?+t:a.getXValue(e,n));return s},updateXs(t){t.length&&(this.axis.xs=t.map(e=>e.x))},getPrevX(t){const e=this.axis.xs[t-1];return Xe(e)?e:null},getNextX(t){const e=this.axis.xs[t+1];return Xe(e)?e:null},getBaseValue(t){const e=this,{hasAxis:n}=e.state;let{value:a}=t;return a&&n&&(e.isAreaRangeType(t)?a=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(a=e.getBubbleZData(a,"y"))),a},getMinMaxValue(t){const e=this.getBaseValue.bind(this);let n,a;return(t||this.data.targets.map(i=>i.values)).forEach((i,s)=>{const o=i.map(e).filter(fe);n=Math.min(s?n:1/0,...o),a=Math.max(s?a:-1/0,...o)}),{min:n,max:a}},getMinMaxData(){const t=this,e=Cn.dataMinMax;let n=t.cache.get(e);if(!n){const a=t.data.targets.map(l=>l.values),i=t.getMinMaxValue(a);let s=[],o=[];a.forEach(l=>{const c=t.getFilteredDataByValue(l,i.min),u=t.getFilteredDataByValue(l,i.max);c.length&&(s=s.concat(c)),u.length&&(o=o.concat(u))}),t.cache.add(e,n={min:s,max:o})}return n},getTotalPerIndex(){const t=this,e=Cn.dataTotalPerIndex;let n=t.cache.get(e);return(t.config.data_groups.length||t.isStackNormalized())&&!n&&(n=[],t.data.targets.forEach(a=>{a.values.forEach((i,s)=>{n[s]||(n[s]=0),n[s]+=fe(i.value)?i.value:0})})),n},getTotalDataSum(t){const e=this,n=Cn.dataTotalSum;let a=e.cache.get(n);if(!fe(a)){const i=ws(e.data.targets.map(s=>s.values)).map(s=>s.value);a=i.length?i.reduce((s,o)=>s+o):0,e.cache.add(n,a)}return t&&(a-=e.getHiddenTotalDataSum()),a},getHiddenTotalDataSum(){const t=this,{api:e,state:{hiddenTargetIds:n}}=t;let a=0;return n.length&&(a=e.data.values.bind(e)(n).reduce((i,s)=>i+s)),a},getFilteredDataByValue(t,e){return t.filter(n=>this.getBaseValue(n)===e)},getMaxDataCount(){return Math.max(...this.data.targets.map(t=>t.values.length),0)},getMaxDataCountTarget(){let t=this.filterTargetsToShow()||[];const e=t.length,n=this.config.axis_x_inverted;return e>1?(t=t.map(a=>a.values).reduce((a,i)=>a.concat(i)).map(a=>a.x),t=qr(Ps(t)).map((a,i,s)=>({x:a,index:n?s.length-i-1:i}))):e&&(t=t[0].values.concat()),t},mapToIds(t){return t.map(e=>e.id)},mapToTargetIds(t){const e=this;return t?Fe(t)?t.concat():[t]:e.mapToIds(e.data.targets)},hasTarget(t,e){const n=this.mapToIds(t);for(let a=0,i;i=n[a];a++)if(i===e)return!0;return!1},isTargetToShow(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow(t){const e=this;return(t||e.data.targets).filter(n=>e.isTargetToShow(n.id))},mapTargetsToUniqueXs(t){const e=this,{axis:n}=e;let a=[];return t!=null&&t.length&&(a=Ps(ws(t.map(i=>i.values.map(s=>+s.x)))),a=n!=null&&n.isTimeSeries()?a.map(i=>new Date(+i)):a.map(Number)),qr(a)},addTargetIds(t,e){const{state:n}=this;(Fe(e)?e:[e]).forEach(i=>{n[t].indexOf(i)<0&&n[t].push(i)})},removeTargetIds(t,e){const{state:n}=this;(Fe(e)?e:[e]).forEach(i=>{const s=n[t].indexOf(i);s>=0&&n[t].splice(s,1)})},addHiddenTargetIds(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed(t){const e=this,{hasAxis:n}=e.state,a={},i=e.isMultipleX(),s=i?e.mapTargetsToUniqueXs(t).map(o=>ze(o)?o:+o):null;return t.forEach(o=>{const l=[];o.values.filter(({value:c})=>Ie(c)||c===null).forEach(c=>{let{value:u}=c;u!==null&&e.isCandlestickType(c)&&(u=Fe(u)?u.slice(0,4):[u.open,u.high,u.low,u.close]),Fe(u)?l.push(...u):De(u)&&"high"in u?l.push(...Object.values(u)):e.isBubbleZType(c)?l.push(n&&e.getBubbleZData(u,"y")):i?l[e.getIndexByX(c.x,s)]=u:l.push(u)}),a[o.id]=l}),a},checkValueInTargets(t,e){const n=Object.keys(t);let a;for(let i=0;i1},hasNegativeValueInTargets(t){return this.checkValueInTargets(t,e=>e<0)},hasPositiveValueInTargets(t){return this.checkValueInTargets(t,e=>e>0)},orderTargets(t){const e=this,n=[...t],a=e.getSortCompareFn();return a&&n.sort(a),n},getSortCompareFn(t=!1){const e=this,{config:n}=e,a=n.data_order,i=/asc/i.test(a),s=/desc/i.test(a);let o;if(i||s){const l=(u,g)=>u+Math.abs(g.value),c=u=>fe(u)?u:"values"in u?u.values.reduce(l,0):u.value;o=(u,g)=>{const v=c(u),m=c(g);return t?i?v-m:m-v:i?m-v:v-m}}else de(a)&&(o=a.bind(e.api));return o||null},filterByX(t,e){return ws(t.map(n=>n.values)).filter(n=>n.x-e===0)},filterRemoveNull(t){return t.filter(e=>Ie(this.getBaseValue(e)))},filterByXDomain(t,e){return t.map(n=>({id:n.id,id_org:n.id_org,values:n.values.filter(a=>e[0]<=a.x&&a.x<=e[1])}))},hasDataLabel(){const t=this.config.data_labels;return Os(t)&&t||Jn(t)&&nn(t)},getDataIndexFromEvent(t){const e=this,{$el:n,config:a,state:{hasRadar:i,inputType:s,eventReceiver:{coords:o,rect:l}}}=e;let c;if(i){let u=t.target;/tspan/i.test(u.tagName)&&(u=u.parentNode);const g=st(u).datum();c=g&&Object.keys(g).length===1?g.index:void 0}else{const u=a.axis_rotated,g=Wl(n.chart.node()),v=s==="touch"&&t.changedTouches?t.changedTouches[0]:t;c=Cs(o,u?v.clientY+g.y-l.top:v.clientX+g.x-l.left,0,o.length-1,u)}return c},getDataLabelLength(t,e,n){const a=this,i=[0,0],s=1.3;return a.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(o=>a.dataLabelFormat(o.id)(o)).each(function(o,l){i[l]=this.getBoundingClientRect()[n]*s}).remove(),i},isNoneArc(t){return this.hasTarget(this.data.targets,t.id)},isArc(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues(t,e){const n=t[e].x,a=[];let i;for(i=e-1;i>=0&&n===t[i].x;i--)a.push(t[i]);for(i=e;in.findClosest(i.values,e));return n.findClosest(a,e)},findClosest(t,e){const n=this,{$el:{main:a}}=n,i=t.filter(l=>l&&Ie(l.value));let s,o;return i.filter(l=>n.isBarType(l.id)||n.isCandlestickType(l.id)).forEach(l=>{const c=n.isBarType(l.id)?`.${Gn.chartBar}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${Gn.bar}-${l.index}`:`.${rr.chartCandlestick}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${rr.candlestick}-${l.index} path`;!o&&n.isWithinBar(a.select(c).node())&&(o=l)}),i.filter(l=>!n.isBarType(l.id)&&!n.isCandlestickType(l.id)).forEach(l=>{const c=n.dist(l,e);s=n.getPointSensitivity(l),c{const{x:i,id:s}=a;n.push({x:i,id:s,value:a.value[0]}),n.push({x:i,id:s,value:a.value[2]})}),n},updateDataAttributes(t,e){const n=this,{config:a}=n,i=a[`data_${t}`];return en(e)||(Object.keys(e).forEach(s=>{i[s]=e[s]}),n.redraw({withLegend:!0})),i},getRangedData(t,e="",n="areaRange"){const a=t==null?void 0:t.value;if(Fe(a)){if(n==="bar")return a.reduce((i,s)=>s-i);{const i={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return i>=0&&a?a[i]:void 0}}else if(a&&e)return a[e];return a},setRatioForGroupedData(t){const e=this,{config:n}=e;if(n.data_groups.length&&t.some(a=>e.isGrouped(a.id))){const a=i=>e.getRatio("index",i,!0);t.forEach(i=>{"values"in i?i.values.forEach(a):a(i)})}},getRatio(t,e,n=!1){const a=this,{config:i,state:s}=a,o=a.api;let l=0;if(e&&o.data.shown().length)if(l=e.ratio||e.value,t==="arc")if(a.pie.padAngle()())l=e.value/a.getTotalDataSum(!0);else{const c=i.gauge_fullCircle?a.getArcLength():a.getStartingAngle()*-2,u=a.hasType("gauge")?c:Math.PI*2;l=(e.endAngle-e.startAngle)/u}else if(t==="index"){const c=o.data.values.bind(o);let u=this.getTotalPerIndex();if(s.hiddenTargetIds.length){let v=c(s.hiddenTargetIds,!1);v.length&&(v=v.reduce((m,S)=>m.map((I,N)=>(fe(I)?I:0)+S[N])),u=u.map((m,S)=>m-v[S]))}const g=u[e.index];e.ratio=fe(e.value)&&u&&g?e.value/g:0,l=e.ratio}else if(t==="radar")l=parseFloat(String(Math.max(e.value,0)))/s.current.dataMax*i.radar_size_ratio;else if(t==="bar"){const u=a.getYScaleById.bind(a)(e.id).domain().reduce((g,v)=>v-g);l=u===0?0:Math.abs(a.getRangedData(e,null,t)/u)}else t==="treemap"&&(l/=a.getTotalDataSum(!0));return n&&l?l*100:l},updateDataIndexByX(t){const e=this,n=t.reduce((a,i,s)=>(a[Number(i.x)]=s,a),{});e.data.targets.forEach(a=>{a.values.forEach((i,s)=>{let o=n[Number(i.x)];o===void 0&&(o=s),i.index=o})})},isBubbleZType(t){return this.isBubbleType(t)&&(De(t.value)&&("z"in t.value||"y"in t.value)||Fe(t.value)&&t.value.length>=2)},isBarRangeType(t){const e=this,{value:n}=t;return e.isBarType(t)&&Fe(n)&&n.length>=2&&n.every(a=>fe(a))},getDataById(t){var e;const n=this.cache.get(t)||this.api.data(t);return(e=n==null?void 0:n[0])!=null?e:n}};function oc(t,e=!1){const n=this,{api:a}=n;e&&n.api.flush(!0),t==null||t.call(a)}var wv={load(t,e){const n=this,{axis:a,data:i,org:s,scale:o}=n,{append:l}=e,c={domain:null,currentDomain:null,x:null};let u=t;u&&(e.filter&&(u=u.filter(e.filter)),(e.type||e.types)&&u.forEach(g=>{var v;const m=((v=e.types)==null?void 0:v[g.id])||e.type;n.setTargetType(g.id,m)}),i.targets.forEach(g=>{for(let v=0;v{const a=t.data||n;t.append&&(a.__append__=!0),a&&e.load(e.convertDataToTargets(a),t)}))},unload(t,e){var n;const a=this,{state:i,$el:s,$T:o}=a,l=!!((n=a.hasLegendDefsPoint)!=null&&n.call(a));let c=e,u=t;if(a.cache.reset(),c||(c=()=>{}),u=u.filter(v=>a.hasTarget(a.data.targets,v)),!u||u.length===0){c();return}const g=s.svg.selectAll(u.map(v=>a.selectorTarget(v)));o(g).style("opacity","0").remove().call($i,c),u.forEach(v=>{var m;const S=a.getTargetSelectorSuffix(v);i.withoutFadeIn[v]=!1,s.legend&&s.legend.selectAll(`.${Ve.legendItem}${S}`).remove(),a.data.targets=a.data.targets.filter(I=>I.id!==v),l&&((m=s.defs)==null||m.select(`#${a.getDefsPointId(S)}`).remove())}),i.hasFunnel&&a.updateFunnel(a.data.targets),i.hasTreemap&&a.updateTargetsForTreemap(a.data.targets),a.updateTypesElements()}},Ei=t=>()=>t;function Gs(t,{sourceEvent:e,subject:n,target:a,identifier:i,active:s,x:o,y:l,dx:c,dy:u,dispatch:g}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:g}})}Gs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Mv(t){return!t.ctrlKey&&!t.button}function Lv(){return this.parentNode}function Dv(t,e){return e==null?{x:t.x,y:t.y}:e}function Nv(){return navigator.maxTouchPoints||"ontouchstart"in this}function lc(){var t=Mv,e=Lv,n=Dv,a=Nv,i={},s=ni("start","drag","end"),o=0,l,c,u,g,v=0;function m(V){V.on("mousedown.drag",S).filter(a).on("touchstart.drag",M).on("touchmove.drag",P,Kd).on("touchend.drag touchcancel.drag",G).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(V,k){if(!(g||!t.call(this,V,k))){var H=W(this,e.call(this,V,k),V,k,"mouse");H&&(st(V.view).on("mousemove.drag",I,Sa).on("mouseup.drag",N,Sa),ls(V.view),os(V),u=!1,l=V.clientX,c=V.clientY,H("start",V))}}function I(V){if(Hr(V),!u){var k=V.clientX-l,H=V.clientY-c;u=k*k+H*H>v}i.mouse("drag",V)}function N(V){st(V.view).on("mousemove.drag mouseup.drag",null),cs(V.view,u),Hr(V),i.mouse("end",V)}function M(V,k){if(t.call(this,V,k)){var H=V.changedTouches,at=e.call(this,V,k),gt=H.length,$t,St;for($t=0;$ti.$el[s]).forEach(s=>{a&&i.$el[s].classed(Se.EXPANDED,!1),i.getShapeByIndex(s,e,n).classed(Se.EXPANDED,t)})},setOverOut(t,e){const n=this,{config:a,state:{hasFunnel:i,hasRadar:s,hasTreemap:o},$el:{main:l}}=n,c=De(e);if(c||e!==-1){const u=a[t?"data_onover":"data_onout"].bind(n.api);if(a.color_onover&&n.setOverColor(t,e,c),c){const g=n.getTargetSelectorSuffix(e.id),v=i||o?`${Se.target+g} .${tn.shape}`:Be.arc+g;u(e,l.select(`.${v}`).node())}else if(a.tooltip_grouped)t&&(s&&n.isPointFocusOnly()?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),!n.isMultipleX()&&l.selectAll(`.${tn.shape}-${e}`).each(function(g){u(g,this)});else{const g=n.cache.get(Cn.setOverOut)||[],v=l.selectAll(`.${tn.shape}-${e}`).filter(function(S){return n.isWithinShape(this,S)}),m=v.filter(function(){return g.every(S=>S!==this)});if(!t||v.empty()||g.length===m.size()&&m.nodes().every((S,I)=>S!==g[I]))for(;g.length;){const S=g.pop();a.data_onout.bind(n.api)(st(S).datum(),S)}m.each(function(){t&&(u(st(this).datum(),this),g.push(this))}),n.cache.add(Cn.setOverOut,g)}}},callOverOutForTouch(t){const e=this,n=e.cache.get(Cn.callOverOutForTouch);(De(t)&&n?t.id!==n.id:t!==n)&&((n||fe(n))&&e.setOverOut(!1,n),(t||fe(t))&&e.setOverOut(!0,t),e.cache.add(Cn.callOverOutForTouch,t))},getDraggableSelection(){const t=this,{config:e,state:n}=t;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?lc().on("drag",function(a){n.event=a,t.drag(zn(a,this))}).on("start",function(a){n.event=a,t.dragstart(zn(a,this))}).on("end",a=>{n.event=a,t.dragend()}):()=>{}},dispatchEvent(t,e,n){var a,i;const s=this,{config:o,state:{eventReceiver:l,hasAxis:c,hasFunnel:u,hasRadar:g,hasTreemap:v},$el:{eventRect:m,funnel:S,radar:I,treemap:N}}=s;let M=(i=(u||v)&&l.rect||g&&I.axes.select(`.${on.axis}-${e} text`)||m||((a=s.getArcElementByIdOrIndex)==null?void 0:a.call(s,e)))==null?void 0:i.node();if(M){const P=s.isMultipleX(),G=o.axis_rotated;let{width:W,left:V,top:k}=M.getBoundingClientRect();if(c&&!g&&!P){const $t=l.coords[e];$t?(W=$t.w,V+=$t.x,k+=$t.y):(W=0,V=0,k=0)}const H=V+(n?n[0]:0)+(P||G?0:W/2),at=k+(n?n[1]:0)+(G?4:0),gt={screenX:H,screenY:at,clientX:H,clientY:at,bubbles:g};(u||v)&&(M=(S!=null?S:N).node()),qg[/^(mouse|click)/.test(t)?"mouse":"touch"](M,t,gt)}},setDragStatus(t){this.state.dragging=t},unbindZoomEvent(){const t=this,{$el:{eventRect:e,zoomResetBtn:n}}=t;e==null||e.on(".zoom wheel.zoom .drag",null),n==null||n.on("click",null).style("display","none")},unbindAllEvents(){var t;const e=this,{$el:{arcs:n,eventRect:a,legend:i,region:s,svg:o,treemap:l},brush:c}=e,u=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[o,a,s==null?void 0:s.list,c==null?void 0:c.getSelection(),n==null?void 0:n.selectAll("path"),i==null?void 0:i.selectAll("g"),l].forEach(g=>g==null?void 0:g.on(u,null)),(t=e.unbindZoomEvent)==null||t.call(e)}},Bv={categoryName(t){var e;const{axis_x_categories:n}=this.config;return(e=n==null?void 0:n[t])!=null?e:t}},Uv={generateClass(t,e){return` ${t} ${t+this.getTargetSelectorSuffix(e)}`},getClass(t,e){const n=/s$/.test(t),a=/^(area|arc|line|funnel|treemap)s?$/.test(t),i=n?"id":"index";return s=>{const o=s.data||s;return((e?this.generateClass(Ne[n?"shapes":"shape"],o[i]):"")+this.generateClass(Ne[t],o[a?"id":i])).trim()}},getChartClass(t){return e=>Ne[`chart${t}`]+this.classTarget((e.data?e.data:e).id)},generateExtraLineClass(){const e=this.config.line_classes||[],n=[];return function(a){var i;const s=a.id||((i=a.data)==null?void 0:i.id)||a;return n.indexOf(s)<0&&n.push(s),e[n.indexOf(s)%e.length]}},classRegion(t,e){return`${this.generateClass(Ne.region,e)} ${"class"in t?t.class:""}`},classTarget(t){const e=this.config.data_classes[t];let n="";return e&&(n=` ${Ne.target}-${e}`),this.generateClass(Ne.target,t)+n},classFocus(t){return this.classFocused(t)+this.classDefocused(t)},classFocused(t){return` ${this.state.focusedTargetIds.indexOf(t.id)>=0?Ne.focused:""}`},classDefocused(t){return` ${this.state.defocusedTargetIds.indexOf(t.id)>=0?Ne.defocused:""}`},getTargetSelectorSuffix(t){return(t||t===0?`-${t}`:"").replace(/[\x00-\x20\x7F-\xA0\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-")},selectorTarget(t,e="",n=""){const a=this.getTargetSelectorSuffix(t);return`${e}.${Ne.target+a} ${n}, ${e}.${Ne.circles+a} ${n}`},selectorTargets(t,e){const n=t||[];return n.length?n.map(a=>this.selectorTarget(a,e)):null},selectorLegend(t){return`.${Ne.legendItem+this.getTargetSelectorSuffix(t)}`},selectorLegends(t){return t!=null&&t.length?t.map(e=>this.selectorLegend(e)):null}};class cc extends Map{constructor(e,n=dc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[a,i]of e)this.set(a,i)}get(e){return super.get(Vs(this,e))}has(e){return super.has(Vs(this,e))}set(e,n){return super.set(uc(this,e),n)}delete(e){return super.delete(fc(this,e))}}class s1 extends Set{constructor(e,n=dc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const a of e)this.add(a)}has(e){return super.has(Vs(this,e))}add(e){return super.add(uc(this,e))}delete(e){return super.delete(fc(this,e))}}function Vs({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):n}function uc({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):(t.set(a,n),n)}function fc({_intern:t,_key:e},n){const a=e(n);return t.has(a)&&(n=t.get(a),t.delete(a)),n}function dc(t){return t!==null&&typeof t=="object"?t.valueOf():t}function ta(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function o1(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const hc=Symbol("implicit");function gc(){var t=new cc,e=[],n=[],a=hc;function i(s){let o=t.get(s);if(o===void 0){if(a!==hc)return a;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new cc;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(a=s,i):a},i.copy=function(){return gc(e,n).unknown(a)},ta.apply(i,arguments),i}const zv=(t,e,n)=>{const a=st(t.cloneNode(!0));return a.attr("id",n).insert("rect",":first-child").attr("width",a.attr("width")).attr("height",a.attr("height")).style("fill",e),{id:n,node:a.node()}};function jv(t){const e=Cn.colorPattern,{body:n}=fn;let a=n[e];if(!a){const i=";",s=t.classed(is.colorPattern,!0).style("background-image");t.classed(is.colorPattern,!1),s.indexOf(i)>-1&&(a=s.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(i).map(o=>o.trim().replace(/[\"'\s]/g,"")).filter(Boolean),n[e]=a)}return a}const Gv=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var Vv={generateColor(){const t=this,{$el:e,config:n}=t,a=n.data_colors,i=n.data_color,s=[];let o=nn(n.color_pattern)?n.color_pattern:gc(jv(e.chart)||Gv).range();const l=o;if(de(n.color_tiles)){const c=n.color_tiles.bind(t.api)(),u=o.map((g,v)=>{const m=g.replace(/[#\(\)\s,]/g,""),S=`${t.state.datetimeId}-pattern-${m}-${v}`;return zv(c[v%c.length],g,S)});o=u.map(g=>`url(#${g.id})`),t.patterns=u}return function(c){var u;const g=c.id||((u=c.data)==null?void 0:u.id)||c,v=t.isTypeOf(g,["line","spline","step"])||!n.data_types[g];let m;return de(a[g])?m=a[g].bind(t.api)(c):a[g]?m=a[g]:(s.indexOf(g)<0&&s.push(g),m=v?l[s.indexOf(g)%l.length]:o[s.indexOf(g)%o.length],a[g]=m),de(i)?i.bind(t.api)(m,c):m}},generateLevelColor(){const t=this,{config:e}=t,n=e.color_pattern,a=e.color_threshold,i=a.unit==="value",s=a.max||100,o=a.values&&a.values.length?a.values:[];return nn(a)?function(l){const c=i?l:l*100/s;let u=n[n.length-1];for(let g=0,v=o.length;g{const l=`${i.datetimeId}-labels-bg${n.getTargetSelectorSuffix(o)}${ze(t)?n.getTargetSelectorSuffix(t):""}`;a.defs.append("filter").attr("x",e.x).attr("y",e.y).attr("width",e.width).attr("height",e.height).attr("id",l).html(` - `)})}},getGradienColortUrl(t){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(t)})`},updateLinearGradient(){const t=this,{config:e,data:{targets:n},state:{datetimeId:a},$el:{defs:i}}=t;n.forEach(s=>{const o=`${a}-gradient${t.getTargetSelectorSuffix(s.id)}`,l=t.hasPointType()&&e.point_radialGradient,c=t.isAreaType(s)&&"area"||t.isBarType(s)&&"bar";if((l||c)&&i.select(`#${o}`).empty()){const u=t.color(s),g={defs:null,stops:[]};if(l){const{cx:v=.3,cy:m=.3,r:S=.7,stops:I=[[.1,u,0],[.9,u,1]]}=l;g.stops=I,g.defs=i.append("radialGradient").attr("id",`${o}`).attr("cx",v).attr("cy",m).attr("r",S)}else{const v=e.axis_rotated,{x:m=v?[1,0]:[0,0],y:S=v?[0,0]:[0,1],stops:I=[[0,u,1],[1,u,0]]}=e[`${c}_linearGradient`];g.stops=I,g.defs=i.append("linearGradient").attr("id",`${o}`).attr("x1",m[0]).attr("x2",m[1]).attr("y1",S[0]).attr("y2",S[1])}g.stops.forEach(v=>{const[m,S,I]=v,N=de(S)?S.bind(t.api)(s.id):S;g.defs&&g.defs.append("stop").attr("offset",m).attr("stop-color",N||u).attr("stop-opacity",I)})}})},setOverColor(t,e){const n=this,{config:a,$el:{main:i}}=n,s=a.color_onover;let o=t?s:n.color;De(o)?o=({id:l})=>l in s?s[l]:n.color(l):ze(o)?o=()=>s:de(s)&&(o=o.bind(n.api)),i.selectAll(De(e)?`.${Be.arc}${n.getTargetSelectorSuffix(e.id)}`:`.${tn.shape}-${e}`).style("fill",o)}},Xv={getYDomainMinMax(t,e){const n=this,{axis:a,config:i}=n,s=e==="min",o=i.data_groups,l=n.mapToIds(t),c=n.getValuesAsIdKeyed(t);if(o.length>0){const u=n[`has${s?"Negative":"Positive"}ValueInTargets`](t);o.forEach(g=>{const v=g.filter(m=>l.indexOf(m)>=0);if(v.length){const m=v[0],S=a.getId(m);u&&c[m]&&(c[m]=c[m].map(I=>(s?I<0:I>0)?I:0)),v.filter((I,N)=>N>0).forEach(I=>{if(c[I]){const N=a.getId(I);c[I].forEach((M,P)=>{const G=+M,W=s?G>0:G<0;N===S&&!(u&&W)&&(c[m][P]+=G)})}})}})}return Kn(e,Object.keys(c).map(u=>Kn(e,c[u])))},isHiddenTargetWithYDomain(t){const e=this;return e.state.hiddenTargetIds.some(n=>e.axis.getId(n)===t)},getYDomain(t,e,n){const a=this,{axis:i,config:s,scale:o}=a,l=`axis_${e}`;if(a.isStackNormalized())return[0,100];const c=(o==null?void 0:o[e])&&o[e].type==="log",u=t.filter(St=>i.getId(St.id)===e),g=n?a.filterByXDomain(u,n):u;if(g.length===0)return a.isHiddenTargetWithYDomain(e)?o[e].domain():e==="y2"?o.y.domain():a.getYDomain(t,"y2",n);const v=s[`${l}_min`],m=s[`${l}_max`],S=s[`${l}_center`],I=s[`${l}_inverted`],N=a.hasDataLabel()&&s.axis_rotated,M=a.hasDataLabel()&&!s.axis_rotated;let P=a.getYDomainMinMax(g,"min"),G=a.getYDomainMinMax(g,"max"),W=[ae.BAR,ae.BUBBLE,ae.SCATTER,...mr.Line].some(St=>{const Tt=St.indexOf("area")>-1?"area":St;return a.hasType(St,g,!0)&&s[`${Tt}_zerobased`]});P=Ie(v)?v:Ie(m)?P<=m?P:m-10:P,G=Ie(m)?m:Ie(v)?v<=G?G:v+10:G,isNaN(P)&&(P=0),isNaN(G)&&(G=P),P===G&&(P<0?G=0:P=0);const V=P>=0&&G>=0,k=P<=0&&G<=0;(Ie(v)&&V||Ie(m)&&k)&&(W=!1),W&&(V&&(P=0),k&&(G=0));const H=Math.abs(G-P);let at={top:H*.1,bottom:H*.1};if(Xe(S)){const St=Math.max(Math.abs(P),Math.abs(G));G=S+St,P=S-St}if(N){const St=Ir(o.y.range()),Tt=a.getDataLabelLength(P,G,"width").map(Gt=>Gt/St);["bottom","top"].forEach((Gt,mt)=>{at[Gt]+=H*(Tt[mt]/(1-Tt[0]-Tt[1]))})}else if(M){const St=a.getDataLabelLength(P,G,"height");["bottom","top"].forEach((Tt,Gt)=>{at[Tt]+=a.convertPixelToScale("y",St[Gt],H)})}at=a.getResettedPadding(at);const gt=s[`${l}_padding`];nn(gt)&&["bottom","top"].forEach(St=>{at[St]=i.getPadding(gt,St,at[St],H)}),W&&(V&&(at.bottom=P),k&&(at.top=-G));const $t=c?[P,G].map(St=>St<0?0:St):[P-at.bottom,G+at.top];return I?$t.reverse():$t},getXDomainMinMax(t,e){var n;const a=this,i=a.config[`axis_x_${e}`],s=Kn(e,t.map(l=>Kn(e,l.values.map(c=>c.x))));let o=De(i)?i.value:i;return o=Xe(o)&&((n=a.axis)!=null&&n.isTimeSeries())?Dn.bind(this)(o):o,De(i)&&i.fit&&(e==="min"&&os)&&(o=void 0),Xe(o)?o:s},getXDomainPadding(t,e){const n=this,{axis:a,config:i}=n,s=i.axis_x_padding,o=a.isTimeSeries()&&e,l=Ir(t);let c;if(a.isCategorized()||o)c=0;else if(n.hasType("bar")){const v=n.getMaxDataCount();c=v>1?l/(v-1)/2:.5}else c=n.getResettedPadding(l*.01);let{left:u=c,right:g=c}=fe(s)?{left:s,right:s}:s;if(s.unit==="px"){const v=Math.abs(l+l*.2);u=a.getPadding(s,"left",c,v),g=a.getPadding(s,"right",c,v)}else{const v=l+u+g;if(o&&v){const m=l/e/v;u=u/v/m,g=g/v/m}}return{left:u,right:g}},getXDomain(t){const e=this,{axis:n,config:a,scale:{x:i}}=e,s=a.axis_x_inverted,o=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")];let[l=0,c=0]=o;if(i.type!=="log"){const u=n.isCategorized(),g=n.isTimeSeries(),v=e.getXDomainPadding(o);let[m,S]=o;m-S===0&&!u&&(g?(m=new Date(m.getTime()*.5),S=new Date(S.getTime()*1.5)):(m=m===0?1:m*.5,S=S===0?-1:S*1.5)),(m||m===0)&&(l=g?new Date(m.getTime()-v.left):m-v.left),(S||S===0)&&(c=g?new Date(S.getTime()+v.right):S+v.right)}return s?[c,l]:[l,c]},updateXDomain(t,e,n,a,i){var s;const o=this,{config:l,org:c,scale:{x:u,subX:g}}=o,v=l.zoom_enabled;if(n&&(u.domain(i||qr(o.getXDomain(t),!l.axis_x_inverted)),c.xDomain=u.domain(),g.domain(u.domain()),(s=o.brush)==null||s.scale(g)),e){const m=i||!o.brush||Hl(o)?c.xDomain:Yl(o).map(g.invert);u.domain(m)}return(n||e)&&v&&o.zoom.updateScaleExtent(),a&&u.domain(o.trimXDomain(u.orgDomain())),u.domain()},trimXDomain(t){const e=this,n=e.config.axis_x_inverted,a=e.getZoomDomain(),[i,s]=a;return(n?t[0]>=i:t[0]<=i)&&(t[1]=+t[1]+(i-t[0]),t[0]=i),(n?t[1]<=s:t[1]>=s)&&(t[0]=+t[0]-(t[1]-s),t[1]=s),t},getZoomDomain(t="zoom",e=!1){const n=this,{config:a,scale:i,org:s}=n;let[o,l]=e&&i[t]?i[t].domain():s.xDomain;return t==="zoom"&&(Xe(a.zoom_x_min)&&(o=Kn("min",[o,a.zoom_x_min])),Xe(a.zoom_x_max)&&(l=Kn("max",[l,a.zoom_x_max]))),[o,l]},getZoomDomainValue(t){const e=this,{config:n,axis:a}=e;if(a.isCategorized()&&Array.isArray(t)){const i=n.axis_x_inverted;return t.map((o,l)=>Number(o)+(l===0?+i:+!i))}return t},convertPixelToScale(t,e,n){const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l;return t==="x"?l=o?"height":"width":l=o?"width":"height",n*(e/s[l])},withinRange(t,e=[0,0],n){const i=this.config.axis_x_inverted,[s,o]=n;if(Array.isArray(t)){const l=[...t];if(i&&l.reverse(),l[0](u===0?i?+c<=s:+c>=s:i?+c>=o:+c<=o)&&!t.every((g,v)=>g===e[v]))}return!1}};function vc(t,e,n){const{config:a}=t,i=`axis_${e}_tick_format`;return(a[i]?a[i]:t.defaultValueFormat).call(t.api,n)}var Yv={yFormat(t){return vc(this,"y",t)},y2Format(t){return vc(this,"y2",t)},getDefaultValueFormat(){const t=this,{defaultArcValueFormat:e,yFormat:n,y2Format:a}=t,i=t.hasArcType(null,["gauge","polar","radar"]);return function(s,o,l){return(i?e:t.axis&&t.axis.getId(l)==="y2"?a:n).call(t,s,o)}},defaultValueFormat(t){return Fe(t)?t.join("~"):Ie(t)?+t:""},defaultArcValueFormat(t,e){return`${(e*100).toFixed(1)}%`},defaultPolarValueFormat(t){return`${t}`},dataLabelFormat(t){const e=this,n=e.config.data_labels,a=s=>{const o="~";let l=s;return Fe(s)?l=s.join(o):De(s)&&(l=Object.values(s).join(o)),l};let i=a;return de(n.format)?i=n.format:Jn(n.format)&&(n.format[t]?i=n.format[t]===!0?a:n.format[t]:i=()=>""),i.bind(e.api)}};function Ri(t){const e=this,n=e.getDataById(t);return e.levelColor?e.levelColor(n.values[0].value):e.color(n)}function Xs(t,e=!0){var n;const{config:a}=this;let i=(n=a.data_names[t])!=null?n:t;return e&&de(a.legend_format)&&(i=a.legend_format(i)),i}var Hv={initLegend(){const t=this,{config:e,$el:n}=t;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(Ve.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend(t,e,n){var a;const i=this,{config:s,state:o,scale:l,$el:c}=i,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=pr(u,"withTransition",!0),u.withTransitionForTransform=pr(u,"withTransitionForTransform",!0),s.legend_contents_bindto&&s.legend_contents_template?i.updateLegendTemplate():o.hasTreemap||i.updateLegendElement(t||i.mapToIds(i.data.targets),u,n),(a=c.legend)==null||a.selectAll(`.${Ve.legendItem}`).classed(Ve.legendItemHidden,function(g){const v=!i.isTargetToShow(g);return v&&(this.style.opacity=null),v}),i.updateScales(!1,!l.zoom),i.updateSvgSize(),i.transformAll(u.withTransitionForTransform,n),o.legendHasRendered=!0},updateLegendTemplate(){const t=this,{config:e,$el:n}=t,a=st(e.legend_contents_bindto),i=e.legend_contents_template;if(!a.empty()){const s=t.mapToIds(t.data.targets),o=[];let l="";s.forEach(u=>{const g=de(i)?i.bind(t.api)(u,t.color(u),t.api.data(u)[0].values):bi(i,{COLOR:t.color(u),TITLE:u});g&&(o.push(u),l+=g)});const c=a.html(l).selectAll(function(){return this.childNodes}).data(o);t.setLegendItem(c),n.legend=a}},updateSizeForLegend(t){const e=this,{config:n,state:{isLegendTop:a,isLegendLeft:i,isLegendRight:s,isLegendInset:o,current:l}}=e,{width:c,height:u}=t,g={top:a?e.getCurrentPaddingByDirection("top")+n.legend_inset_y+5.5:l.height-u-e.getCurrentPaddingByDirection("bottom")-n.legend_inset_y,left:i?e.getCurrentPaddingByDirection("left")+n.legend_inset_x+.5:l.width-c-e.getCurrentPaddingByDirection("right")-n.legend_inset_x+.5};e.state.margin3={top:s?0:o?g.top:l.height-u,right:NaN,bottom:0,left:s?l.width-c:o?g.left:0}},transformLegend(t){const e=this,{$el:{legend:n},$T:a}=e;a(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep(t){this.state.legendStep=t},updateLegendItemWidth(t){this.state.legendItemWidth=t},updateLegendItemHeight(t){this.state.legendItemHeight=t},updateLegendItemColor(t,e){const{legend:n}=this.$el;n&&n.select(`.${Ve.legendItem}-${t} line`).style("stroke",e)},getLegendWidth(){const t=this,{current:{width:e},isLegendRight:n,isLegendInset:a,legendItemWidth:i,legendStep:s}=t.state;return t.config.legend_show?n||a?i*(s+1):e:0},getLegendHeight(){var t;const e=this,{current:n,isLegendRight:a,legendItemHeight:i,legendStep:s}=e.state,o=((t=e.config.padding)==null?void 0:t.mode)==="fit";return e.config.legend_show?a?n.height:(o?10:Math.max(20,i))*(s+1):0},opacityForUnfocusedLegend(t){return t.classed(Ve.legendItemHidden)?null:"0.3"},toggleFocusLegend(t,e){const n=this,{$el:{legend:a},$T:i}=n,s=n.mapToTargetIds(t);a&&i(a.selectAll(`.${Ve.legendItem}`).filter(o=>s.indexOf(o)>=0).classed(We.legendItemFocused,e)).style("opacity",function(){return e?null:n.opacityForUnfocusedLegend.call(n,st(this))})},revertLegend(){const t=this,{$el:{legend:e},$T:n}=t;e&&n(e.selectAll(`.${Ve.legendItem}`).classed(We.legendItemFocused,!1)).style("opacity",null)},showLegend(t){const e=this,{config:n,$el:a,$T:i}=e;n.legend_show||(n.legend_show=!0,a.legend?a.legend.style("visibility",null):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),i(a.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend(t){const e=this,{config:n,$el:{legend:a}}=e;n.legend_show&&Wn(t)&&(n.legend_show=!1,a.style("visibility","hidden")),e.addHiddenLegendIds(t),a.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox(t,e){const n=this,{cache:a,state:i}=n;let s;const o=Cn.legendItemTextBox;return t&&(s=!i.redrawing&&a.get(o)||{},s[t]||(s[t]=n.getTextRect(e,Ve.legendItem),a.add(o,s)),s=s[t]),s},setLegendItem(t){const e=this,{$el:n,api:a,config:i,state:s}=e,o=s.inputType==="touch",l=e.hasType("gauge"),c=i.boost_useCssRule,u=i.legend_item_interaction;t.attr("class",function(g){const v=st(this);return(!v.empty()&&v.attr("class")||"")+e.generateClass(Ve.legendItem,g)}).style("visibility",g=>e.isLegendToShow(g)?null:"hidden"),i.interaction_enabled&&(c&&[[`.${Ve.legendItem}`,"cursor:pointer"],[`.${Ve.legendItem} text`,"pointer-events:none"],[`.${Ve.legendItemPoint} text`,"pointer-events:none"],[`.${Ve.legendItemTile}`,"pointer-events:none"],[`.${Ve.legendItemEvent}`,"fill-opacity:0"]].forEach(g=>{const[v,m]=g;e.setCssRule(!1,v,[m])(n.legend)}),t.on(u.dblclick?"dblclick":"click",u||de(i.legend_item_onclick)?function(g,v){if(!Ze(i.legend_item_onclick,a,v)){const{altKey:m,target:S,type:I}=g;I==="dblclick"||m?s.hiddenTargetIds.length&&S.parentNode.getAttribute("class").indexOf(Ve.legendItemHidden)===-1?a.show():(a.hide(),a.show(v)):(a.toggle(v),st(this).classed(We.legendItemFocused,!1))}o&&e.hideTooltip()}:null),!o&&t.on("mouseout",u||de(i.legend_item_onout)?function(g,v){Ze(i.legend_item_onout,a,v)||(st(this).classed(We.legendItemFocused,!1),l&&e.undoMarkOverlapped(e,`.${Ln.gaugeValue}`),e.api.revert())}:null).on("mouseover",u||de(i.legend_item_onover)?function(g,v){Ze(i.legend_item_onover,a,v)||(st(this).classed(We.legendItemFocused,!0),l&&e.markOverlapped(v,e,`.${Ln.gaugeValue}`),!s.transiting&&e.isTargetToShow(v)&&a.focus(v))}:null),!t.empty()&&t.on("click mouseout mouseover")&&t.style("cursor",e.getStylePropValue("pointer")))},updateLegendElement(t,e){const n=this,{config:a,state:i,$el:{legend:s},$T:o}=n,c=a.legend_item_tile_type!=="circle",u=a.legend_item_tile_r,g={width:c?a.legend_item_tile_width:u*2,height:c?a.legend_item_tile_height:u*2},v={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:g.width+5,totalLength:0},m={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let S,I,N;const M=t.filter(H=>!Xe(a.data_names[H])||a.data_names[H]!==null),P=e.withTransition,G=n.getUpdateLegendPositions(M,v,m);i.isLegendInset&&(v.step=a.legend_inset_step?a.legend_inset_step:M.length,n.updateLegendStep(v.step)),i.isLegendRight?(S=H=>v.max.width*m.steps[H],I=H=>m.margins[m.steps[H]]+m.offsets[H]):i.isLegendInset?(S=H=>v.max.width*m.steps[H]+10,I=H=>m.margins[m.steps[H]]+m.offsets[H]):(S=H=>m.margins[m.steps[H]]+m.offsets[H],I=H=>v.max.height*m.steps[H]);const W={xText:(H,at)=>S(H,at)+4+g.width,xRect:(H,at)=>S(H,at),x1Tile:(H,at)=>S(H,at)-2,x2Tile:(H,at)=>S(H,at)-2+g.width,yText:(H,at)=>I(H,at)+9,yRect:(H,at)=>I(H,at)-5,yTile:(H,at)=>I(H,at)+4};n.generateLegendItem(M,g,G,W),N=s.select(`.${Ve.legendBackground} rect`),i.isLegendInset&&v.max.width>0&&N.size()===0&&(N=s.insert("g",`.${Ve.legendItem}`).attr("class",Ve.legendBackground).append("rect")),a.legend_tooltip&&s.selectAll("title").data(M).text(H=>Xs.bind(n)(H,!1));const V=s.selectAll("text").data(M).text(H=>Xs.bind(n)(H)).each(function(H,at){G(this,H,at)});o(V,P).attr("x",W.xText).attr("y",W.yText);const k=s.selectAll(`rect.${Ve.legendItemEvent}`).data(M);o(k,P).attr("width",H=>m.widths[H]).attr("height",H=>m.heights[H]).attr("x",W.xRect).attr("y",W.yRect),n.updateLegendItemPos(M,P,W),N&&o(N,P).attr("height",n.getLegendHeight()-12).attr("width",v.max.width*(v.step+1)+10),n.updateLegendItemWidth(v.max.width),n.updateLegendItemHeight(v.max.height),n.updateLegendStep(v.step)},getUpdateLegendPositions(t,e,n){const a=this,{config:i,state:s}=a,o=s.isLegendRight||s.isLegendInset;return function(l,c,u){const g=u===0,v=u===t.length-1,m=a.getLegendItemTextBox(c,l),S=m.width+e.tileWidth+(v&&!o?0:e.padding.right)+i.legend_padding,I=m.height+e.padding.top,N=o?I:S,M=o?a.getLegendHeight():a.getLegendWidth();let P;const G=function(V,k){k||(P=(M-e.totalLength-N)/2,P=e.max.width)&&(e.max.width=S),(!e.max.height||I>=e.max.height)&&(e.max.height=I);const W=o?e.max.height:e.max.width;i.legend_equally?(Object.keys(n.widths).forEach(V=>n.widths[V]=e.max.width),Object.keys(n.heights).forEach(V=>n.heights[V]=e.max.height),P=(M-W*t.length)/2,PG(V))):G(c,!0)):G(c)}},generateLegendItem(t,e,n,a){const i=this,{config:s,state:o,$el:{legend:l}}=i,c=s.legend_usePoint,u=s.legend_item_tile_r,g=s.legend_item_tile_type,v=g!=="circle",m=o.isLegendRight||o.isLegendInset,S=-200,I=l.selectAll(`.${Ve.legendItem}`).data(t).enter().append("g");if(i.setLegendItem(I),s.legend_tooltip&&I.append("title").text(N=>N),I.append("text").text(N=>Xs.bind(i)(N)).each(function(N,M){n(this,N,M)}).style("pointer-events",i.getStylePropValue("none")).attr("x",m?a.xText:S).attr("y",m?S:a.yText),I.append("rect").attr("class",Ve.legendItemEvent).style("fill-opacity",i.getStylePropValue("0")).attr("x",m?a.xRect:S).attr("y",m?S:a.yRect),c){const N=[];I.append(M=>{const P=nn(s.point_pattern)?s.point_pattern:[s.point_type];N.indexOf(M)===-1&&N.push(M);let G=P[N.indexOf(M)%P.length];return G==="rectangle"&&(G="rect"),fn.createElementNS(ee.svg,"hasValidPointType"in i&&i.hasValidPointType(G)?G:"use")}).attr("class",Ve.legendItemPoint).style("fill",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).attr("href",(M,P,G)=>{const V=G[P].nodeName.toLowerCase(),k=i.getTargetSelectorSuffix(M);return V==="use"?`#${o.datetimeId}-point${k}`:void 0})}else I.append(v?"line":g).attr("class",Ve.legendItemTile).style("stroke",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).call(N=>{g==="circle"?N.attr("r",u).style("fill",Ri.bind(i)).attr("cx",m?a.x2Tile:S).attr("cy",m?S:a.yTile):v&&N.attr("stroke-width",e.height).attr("x1",m?a.x1Tile:S).attr("y1",m?S:a.yTile).attr("x2",m?a.x2Tile:S).attr("y2",m?S:a.yTile)})},updateLegendItemPos(t,e,n){const a=this,{config:i,$el:{legend:s},$T:o}=a,l=i.legend_usePoint,c=i.legend_item_tile_type,u=c!=="circle";if(l){const g=s.selectAll(`.${Ve.legendItemPoint}`).data(t);o(g,e).each(function(){const v=this.nodeName.toLowerCase(),m=i.point_r;let S="x",I="y",N=2,M=2.5,P=null,G=null,W=null;if(v==="circle"){const V=m*.2;S="cx",I="cy",P=m+V,N=m*2,M=-V}else if(v==="rect"){const V=m*2.5;G=V,W=V,M=3}st(this).attr(S,V=>n.x1Tile(V)+N).attr(I,V=>n.yTile(V)-M).attr("r",P).attr("width",G).attr("height",W)})}else{const g=s.selectAll(`.${Ve.legendItemTile}`).data(t);o(g,e).style("stroke",Ri.bind(a)).call(v=>{c==="circle"?v.attr("cx",m=>{const S=n.x2Tile(m);return S-(S-n.x1Tile(m))/2}).attr("cy",n.yTile):u&&v.attr("x1",n.x1Tile).attr("y1",n.yTile).attr("x2",n.x2Tile).attr("y2",n.yTile)})}}},Wv={redraw(t={}){var e,n,a,i;const s=this,{config:o,state:l,$el:c}=s,{main:u,treemap:g}=c;l.redrawing=!0;const v=s.filterTargetsToShow(s.data.targets),{flow:m,initializing:S}=t,I=s.getWithOption(t),N=I.Transition?o.transition_duration:0,M=I.TransitionForExit?N:0,P=I.TransitionForAxis?N:0,G=(e=s.axis)==null?void 0:e.generateTransitions(P);s.updateSizes(S),I.Legend&&o.legend_show?(t.withTransition=!!N,!g&&s.updateLegend(s.mapToIds(s.data.targets),t,G)):I.Dimension&&s.updateDimension(!0),o.data_empty_label_text&&u.select(`text.${An.text}.${Se.empty}`).attr("x",l.width/2).attr("y",l.height/2).text(o.data_empty_label_text).style("display",v.length?"none":null),l.hasAxis?(s.axis.redrawAxis(v,I,G,m,S),s.hasGrid()&&s.updateGrid(),o.regions.length&&s.updateRegion(),["bar","candlestick","line","area"].forEach(W=>{const V=In(W);(/^(line|area)$/.test(W)&&s.hasTypeOf(V)||s.hasType(W))&&s[`update${V}`](I.TransitionForExit)}),c.text&&u.selectAll(`.${ke.selectedCircles}`).filter(s.isBarType.bind(s)).selectAll("circle").remove(),o.interaction_enabled&&!m&&I.EventRect&&(s.redrawEventRect(),(n=s.bindZoomEvent)==null||n.call(s))):(c.arcs&&s.redrawArc(N,M,I.Transform),c.radar&&s.redrawRadar(),c.polar&&s.redrawPolar(),c.funnel&&s.redrawFunnel(),g&&s.updateTreemap(M)),!l.resizing&&!g&&(s.hasPointType()||l.hasRadar)?s.updateCircle():(a=s.hasLegendDefsPoint)!=null&&a.call(s)&&s.data.targets.forEach(s.point("create",this)),s.hasDataLabel()&&!s.hasArcType(null,["radar"])&&s.updateText(),(i=s.redrawTitle)==null||i.call(s),S&&s.updateTypesElements(),s.generateRedrawList(v,m,N,I.Subchart),s.updateTooltipOnRedraw(),s.callPluginHook("$redraw",t,N)},generateRedrawList(t,e,n,a){const i=this,{config:s,state:o}=i,l=i.getDrawShape();o.hasAxis&&s.subchart_show&&i.redrawSubchart(a,n,l);const c=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:l,xv:i.xv.bind(i)}),u=(n||c)&&Ma(),g=i.getRedrawList(l,e,c,u),v=()=>{c&&c(),o.redrawing=!1,Ze(s.onrendered,i.api)};if(v)if(u&&g.length){const m=ql();Pl().duration(n).each(()=>{g.reduce((S,I)=>S.concat(I),[]).forEach(S=>m.add(S))}).call(m,v)}else o.transiting||v();i.mapToIds(i.data.targets).forEach(m=>{o.withoutFadeIn[m]=!0})},getRedrawList(t,e,n,a){const i=this,{config:s,state:{hasAxis:o,hasRadar:l,hasTreemap:c},$el:{grid:u}}=i,{cx:g,cy:v,xForText:m,yForText:S}=t.pos,I=[];return o&&((s.grid_x_lines.length||s.grid_y_lines.length)&&I.push(i.redrawGrid(a)),s.regions.length&&I.push(i.redrawRegion(a)),Object.keys(t.type).forEach(N=>{const M=In(N),P=t.type[N];(/^(area|line)$/.test(N)&&i.hasTypeOf(M)||i.hasType(N))&&I.push(i[`redraw${M}`](P,a))}),!e&&u.main&&I.push(i.updateGridFocus())),(!i.hasArcType()||l)&&nn(s.data_labels)&&s.data_labels!==!1&&I.push(i.redrawText(m,S,e,a)),(i.hasPointType()||l)&&!i.isPointFocusOnly()&&i.redrawCircle&&I.push(i.redrawCircle(g,v,a,n)),c&&I.push(i.redrawTreemap(a)),I},updateAndRedraw(t={}){const e=this,{config:n,state:a}=e;let i;t.withTransition=pr(t,"withTransition",!0),t.withTransform=pr(t,"withTransform",!1),t.withLegend=pr(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=pr(t,"withTransitionForTransform",t.withTransition),t.withLegend&&n.legend_show||(a.hasAxis&&(i=e.axis.generateTransitions(t.withTransitionForAxis?n.transition_duration:0)),e.updateScales(),e.updateSvgSize(),e.transformAll(t.withTransitionForTransform,i)),e.redraw(t,i)}};const Kv=Math.sqrt(50),Zv=Math.sqrt(10),kv=Math.sqrt(2);function Oi(t,e,n){const a=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(a)),s=a/Math.pow(10,i),o=s>=Kv?10:s>=Zv?5:s>=kv?2:1;let l,c,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(t*u),c=Math.round(e*u),l/ue&&--c,u=-u):(u=Math.pow(10,i)*o,l=Math.round(t/u),c=Math.round(e/u),l*ue&&--c),c0))return[];if(t===e)return[t];const a=e=i))return[];const l=s-i+1,c=new Array(l);if(a)if(o<0)for(let u=0;ue?1:t>=e?0:NaN}function Jv(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Ks(t){let e,n,a;t.length!==2?(e=Ii,n=(l,c)=>Ii(t(l),c),a=(l,c)=>t(l)-c):(e=t===Ii||t===Jv?t:Qv,n=t,a=t);function i(l,c,u=0,g=l.length){if(u>>1;n(l[v],c)<0?u=v+1:g=v}while(u>>1;n(l[v],c)<=0?u=v+1:g=v}while(uu&&a(l[v-1],c)>-a(l[v],c)?v-1:v}return{left:i,center:o,right:s}}function Qv(){return 0}function _v(t){return t===null?NaN:+t}function*l1(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(a=+a)>=a&&(yield a)}}const pc=Ks(Ii),qv=pc.right,c1=pc.left,u1=Ks(_v).center;var tp=qv;function ep(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function np(t){return function(){return t}}function rp(t){return+t}var mc=[0,1];function ea(t){return t}function Zs(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:np(isNaN(e)?NaN:.5)}function ap(t,e){var n;return t>e&&(n=t,t=e,e=n),function(a){return Math.max(t,Math.min(e,a))}}function ip(t,e,n){var a=t[0],i=t[1],s=e[0],o=e[1];return i2?sp:ip,c=u=null,v}function v(m){return m==null||isNaN(m=+m)?s:(c||(c=l(t.map(a),e,n)))(a(o(m)))}return v.invert=function(m){return o(i((u||(u=l(e,t.map(a),Yn)))(m)))},v.domain=function(m){return arguments.length?(t=Array.from(m,rp),g()):t.slice()},v.range=function(m){return arguments.length?(e=Array.from(m),g()):e.slice()},v.rangeRound=function(m){return e=Array.from(m),n=ep,g()},v.clamp=function(m){return arguments.length?(o=m?!0:ea,g()):o!==ea},v.interpolate=function(m){return arguments.length?(n=m,g()):n},v.unknown=function(m){return arguments.length?(s=m,v):s},function(m,S){return a=m,i=S,g()}}function yc(){return ks()(ea,ea)}var op=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Da(t){if(!(e=op.exec(t)))throw new Error("invalid format: "+t);var e;return new Js({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Da.prototype=Js.prototype;function Js(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Js.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function lp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Pi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,a=t.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+t.slice(n+1)]}function na(t){return t=Pi(Math.abs(t)),t?t[1]:NaN}function cp(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(na(e)/3)))*3-na(Math.abs(t)))}function up(t,e){return function(n,a){for(var i=n.length,s=[],o=0,l=t[0],c=0;i>0&&l>0&&(c+l+1>a&&(l=Math.max(1,a-c)),s.push(n.substring(i-=l,i+l)),!((c+=l+1)>a));)l=t[o=(o+1)%t.length];return s.reverse().join(e)}}function fp(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}function dp(t){t:for(var e=t.length,n=1,a=-1,i;n0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(i+1):t}var xc;function hp(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1],s=i-(xc=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=a.length;return s===o?a:s>o?a+new Array(s-o+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+Pi(t,Math.max(0,e+s-1))[0]}function Tc(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}var $c={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:lp,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Tc(t*100,e),r:Tc,s:hp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Sc(t){return t}var Ac=Array.prototype.map,bc=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function gp(t){var e=t.grouping===void 0||t.thousands===void 0?Sc:up(Ac.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Sc:fp(Ac.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(v){v=Da(v);var m=v.fill,S=v.align,I=v.sign,N=v.symbol,M=v.zero,P=v.width,G=v.comma,W=v.precision,V=v.trim,k=v.type;k==="n"?(G=!0,k="g"):$c[k]||(W===void 0&&(W=12),V=!0,k="g"),(M||m==="0"&&S==="=")&&(M=!0,m="0",S="=");var H=N==="$"?n:N==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",at=N==="$"?a:/[%p]/.test(k)?o:"",gt=$c[k],$t=/[defgprs%]/.test(k);W=W===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,W)):Math.max(0,Math.min(20,W));function St(Tt){var Gt=H,mt=at,J,Ct,ht;if(k==="c")mt=gt(Tt)+mt,Tt="";else{Tt=+Tt;var It=Tt<0||1/Tt<0;if(Tt=isNaN(Tt)?c:gt(Math.abs(Tt),W),V&&(Tt=dp(Tt)),It&&+Tt==0&&I!=="+"&&(It=!1),Gt=(It?I==="("?I:l:I==="-"||I==="("?"":I)+Gt,mt=(k==="s"?bc[8+xc/3]:"")+mt+(It&&I==="("?")":""),$t){for(J=-1,Ct=Tt.length;++Jht||ht>57){mt=(ht===46?i+Tt.slice(J+1):Tt.slice(J))+mt,Tt=Tt.slice(0,J);break}}}G&&!M&&(Tt=e(Tt,1/0));var Yt=Gt.length+Tt.length+mt.length,Vt=Yt>1)+Gt+Tt+mt+Vt.slice(Yt);break;default:Tt=Vt+Gt+Tt+mt;break}return s(Tt)}return St.toString=function(){return v+""},St}function g(v,m){var S=u((v=Da(v),v.type="f",v)),I=Math.max(-8,Math.min(8,Math.floor(na(m)/3)))*3,N=Math.pow(10,-I),M=bc[8+I/3];return function(P){return S(N*P)+M}}return{format:u,formatPrefix:g}}var wi,Qs,Ec;vp({thousands:",",grouping:[3],currency:["$",""]});function vp(t){return wi=gp(t),Qs=wi.format,Ec=wi.formatPrefix,wi}function pp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,na(e)-na(t))+1}function mp(t){return Math.max(0,-na(Math.abs(t)))}function yp(t,e,n,a){var i=Ws(t,e,n),s;switch(a=Da(a==null?",f":a),a.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(s=cp(i,o))&&(a.precision=s),Ec(a,o)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(s=pp(i,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=s-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(s=mp(i))&&(a.precision=s-(a.type==="%")*2);break}}return Qs(a)}function Rc(t){var e=t.domain;return t.ticks=function(n){var a=e();return Ys(a[0],a[a.length-1],n==null?10:n)},t.tickFormat=function(n,a){var i=e();return yp(i[0],i[i.length-1],n==null?10:n,a)},t.nice=function(n){n==null&&(n=10);var a=e(),i=0,s=a.length-1,o=a[i],l=a[s],c,u,g=10;for(l0;){if(u=Hs(o,l,n),u===c)return a[i]=o,a[s]=l,e(a);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return t},t}function Mi(){var t=yc();return t.copy=function(){return Ci(t,Mi())},ta.apply(t,arguments),Rc(t)}function Oc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ic(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function xp(t){var e=1,n=t(Oc(e),Ic(e));return n.constant=function(a){return arguments.length?t(Oc(e=+a),Ic(e)):e},Rc(n)}function Cc(){var t=xp(ks());return t.copy=function(){return Ci(t,Cc()).constant(t.constant())},ta.apply(t,arguments)}function Pc(t,e){t=t.slice();var n=0,a=t.length-1,i=t[n],s=t[a],o;return sMath.pow(t,e)}function bp(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Lc(t){return(e,n)=>-t(-e,n)}function Ep(t){const e=t(wc,Mc),n=e.domain;let a=10,i,s;function o(){return i=bp(a),s=Ap(a),n()[0]<0?(i=Lc(i),s=Lc(s),t(Tp,$p)):t(wc,Mc),e}return e.base=function(l){return arguments.length?(a=+l,o()):a},e.domain=function(l){return arguments.length?(n(l),o()):n()},e.ticks=l=>{const c=n();let u=c[0],g=c[c.length-1];const v=g0){for(;m<=S;++m)for(I=1;Ig)break;P.push(N)}}else for(;m<=S;++m)for(I=a-1;I>=1;--I)if(N=m>0?I/s(-m):I*s(m),!(Ng)break;P.push(N)}P.length*2{if(l==null&&(l=10),c==null&&(c=a===10?"s":","),typeof c!="function"&&(!(a%1)&&(c=Da(c)).precision==null&&(c.trim=!0),c=Qs(c)),l===1/0)return c;const u=Math.max(1,a*l/e.ticks().length);return g=>{let v=g/s(Math.round(i(g)));return v*an(Pc(n(),{floor:l=>s(Math.floor(i(l))),ceil:l=>s(Math.ceil(i(l)))})),e}function Dc(){const t=Ep(ks()).domain([1,10]);return t.copy=()=>Ci(t,Dc()).base(t.base()),ta.apply(t,arguments),t}const Li=Je(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Li.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Je(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Li);const f1=Li.range,Lr=Je(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Bn)},(t,e)=>(e-t)/Bn,t=>t.getUTCSeconds()),d1=Lr.range,_s=Je(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn)},(t,e)=>{t.setTime(+t+e*Sn)},(t,e)=>(e-t)/Sn,t=>t.getMinutes()),h1=_s.range,qs=Je(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Sn)},(t,e)=>(e-t)/Sn,t=>t.getUTCMinutes()),g1=qs.range,to=Je(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn-t.getMinutes()*Sn)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getHours()),v1=to.range,eo=Je(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getUTCHours()),p1=eo.range,no=Je(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),m1=no.range,ro=Je(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),y1=ro.range;function Nc(t,e,n,a,i,s){const o=[[Lr,1,Bn],[Lr,5,5*Bn],[Lr,15,15*Bn],[Lr,30,30*Bn],[s,1,Sn],[s,5,5*Sn],[s,15,15*Sn],[s,30,30*Sn],[i,1,Mn],[i,3,3*Mn],[i,6,6*Mn],[i,12,12*Mn],[a,1,tr],[a,2,2*tr],[n,1,qi],[e,1,Io],[e,3,3*Io],[t,1,ts]];function l(u,g,v){const m=gM).right(o,m);if(S===o.length)return t.every(Ws(u/ts,g/ts,v));if(S===0)return Li.every(Math.max(Ws(u,g,v),1));const[I,N]=o[m/o[S-1][2]n.axis.x.tickOffset()),i=n.config.axis_x_inverted,s=function(o,l){const c=t(o)+a();return l?c:Math.ceil(c)};for(const o in t)s[o]=t[o];return s.orgDomain=()=>t.domain(),s.orgScale=()=>t,n.axis.isCategorized()&&(s.domain=function(o){let l=o;return arguments.length?(t.domain(l),s):(l=this.orgDomain(),i?[l[0]+1,l[1]]:[l[0],l[1]+1])}),s},updateScales(t,e=!0){var n,a;const i=this,{axis:s,config:o,format:l,org:c,scale:u,state:{current:g,width:v,height:m,width2:S,height2:I,hasAxis:N,hasTreemap:M}}=i;if(N){const P=o.axis_rotated,G=i.getResettedPadding(1),W={x:P?G:0,y:P?0:m,subX:P?1:0,subY:P?0:I},V={x:P?m:v,y:P?v:G,subX:P?m:v,subY:P?S:1},k=e&&((n=u.x)==null?void 0:n.orgDomain()),H=e&&c.xDomain;u.x=i.getXScale(W.x,V.x,k,()=>s.x.tickOffset()),u.subX=i.getXScale(W.x,V.x,H,at=>{var gt;return at%1?0:((gt=s.subX)!=null?gt:s.x).tickOffset()}),l.xAxisTick=s.getXAxisTickFormat(),l.subXAxisTick=s.getXAxisTickFormat(!0),s.setAxis("x",u.x,o.axis_x_tick_outer,t),o.subchart_show&&s.setAxis("subX",u.subX,o.axis_x_tick_outer,t),u.y=i.getYScale("y",W.y,V.y,u.y?u.y.domain():o.axis_y_default),u.subY=i.getYScale("y",W.subY,V.subY,u.subY?u.subY.domain():o.axis_y_default),s.setAxis("y",u.y,o.axis_y_tick_outer,t),o.axis_y2_show&&(u.y2=i.getYScale("y2",W.y,V.y,u.y2?u.y2.domain():o.axis_y2_default),u.subY2=i.getYScale("y2",W.subY,V.subY,u.subY2?u.subY2.domain():o.axis_y2_default),s.setAxis("y2",u.y2,o.axis_y2_tick_outer,t))}else if(M){const P=i.getCurrentPadding();u.x=Mi().rangeRound([P.left,g.width-P.right]),u.y=Mi().rangeRound([P.top,g.height-P.bottom])}else(a=i.updateArc)==null||a.call(i)},xx(t){const e=this,{config:n,scale:{x:a,zoom:i}}=e,s=n.zoom_enabled&&i?i:a;return t?s(Ie(t.x)?t.x:t):null},xv(t){const e=this,{axis:n,config:a,scale:{x:i,zoom:s}}=e,o=a.zoom_enabled&&s?s:i;let l=e.getBaseValue(t);return n.isTimeSeries()?l=Dn.call(e,l):n.isCategorized()&&ze(l)&&(l=a.axis_x_categories.indexOf(l)),Math.ceil(o(l))},yv(t){const e=this,{scale:{y:n,y2:a}}=e,i=t.axis&&t.axis==="y2"?a:n;return Math.ceil(i(e.getBaseValue(t)))},subxx(t){return t?this.scale.subX(t.x):null}},Np={setContainerSize(){const t=this,{state:e}=t;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth(){const t=this;return t.config.size_width||t.getParentWidth()},getCurrentHeight(){const t=this,{config:e}=t,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getParentRectValue(t){const e=`offset${In(t)}`;let n=this.$el.chart.node(),a=0;for(;a<30&&n&&n.tagName!=="BODY";){try{a=n.getBoundingClientRect()[t]}catch(s){e in n&&(a=n[e])}n=n.parentNode}const i=fn.body[e];return a>i&&(a=i),a},getParentWidth(){return this.getParentRectValue("width")},getParentHeight(){const t=this.$el.chart.style("height");let e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft(t){const e=this,{config:n,state:{hasAxis:a},$el:i}=e,s=n.axis_rotated,o=s||!s&&!n.axis_y_inner,l=s?on.axisX:on.axisY,c=i.main.select(`.${l}`).node(),u=a&&n[`axis_${s?"x":"y"}_label`];let g=0;if(a&&(ze(u)||ze(u.text)||/^inner-/.test(u==null?void 0:u.position))){const N=i.main.select(`.${l}-label`);N.empty()||(g=N.node().getBoundingClientRect().left)}const v=c&&o?c.getBoundingClientRect():{right:0},m=i.chart.node().getBoundingClientRect().left+g,S=e.hasArcType(),I=v.right-m-(S?0:e.getCurrentPaddingByDirection("left",t));return I>0?I:0},updateDimension(t){var e;const n=this,{config:a,state:{hasAxis:i},$el:s}=n;i&&!t&&n.axis.x&&a.axis_rotated&&((e=n.axis.subX)==null||e.create(s.axis.subX)),n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize(){const t=this,{state:{clip:e,current:n,hasAxis:a,width:i,height:s},$el:{svg:o}}=t;if(o.attr("width",n.width).attr("height",n.height),a){const l=o.select(`.${ko.brush} .overlay`),c={width:0,height:0};l.size()&&(c.width=+l.attr("width"),c.height=+l.attr("height")),o.selectAll([`#${e.id}`,`#${e.idGrid}`]).select("rect").attr("width",i).attr("height",s),o.select(`#${e.idXAxis}`).select("rect").call(t.setXAxisClipPath.bind(t)),o.select(`#${e.idYAxis}`).select("rect").call(t.setYAxisClipPath.bind(t)),e.idSubchart&&o.select(`#${e.idSubchart}`).select("rect").attr("width",i).attr("height",c.height)}},getCurrentPaddingByDirection(t,e=!1,n=!1){var a;const i=this,{config:s,$el:o,state:{hasAxis:l}}=i,c=s.axis_rotated,u=((a=s.padding)==null?void 0:a.mode)==="fit",g=fe(s[`padding_${t}`])?s[`padding_${t}`]:void 0,v=l?{top:c?"y2":null,bottom:c?"y":"x",left:c?"x":"y",right:c?null:"y2"}[t]:null,m=/^(left|right)$/.test(t),S=v&&s[`axis_${v}_inner`],I=v&&s[`axis_${v}_show`],N=v?s[`axis_${v}_axes`].length:0;let M=v?m?i.getAxisWidthByAxisId(v,e):i.getHorizontalAxisHeight(v):0;const P=20;let G=0;!u&&m&&(M=Kg(M));let W=l&&m&&(S||en(g)&&!I)?0:u?(I?M:0)+(g!=null?g:0):en(g)?M:g;return m&&l?(v&&(u||S)&&s[`axis_${v}_label`].text&&(W+=i.axis.getAxisLabelPosition(v).isOuter?P:0),t==="right"?(W+=c?!u&&en(g)?10:2:!I||S?u?2:1:0,W+=n?i.axis.getXAxisTickTextY2Overflow(P):0):t==="left"&&c&&en(g)&&(W=s.axis_x_show?u?M:Math.max(M,40):1)):t==="top"?(o.title&&o.title.node()&&(W+=i.getTitlePadding()),G=c&&!S?N:0):t==="bottom"&&l&&c&&!I&&(W+=1),W+M*N-G},getCurrentPadding(t=!1){const e=this,[n,a,i,s]=["top","bottom","left","right"].map(o=>e.getCurrentPaddingByDirection(o,null,t));return{top:n,bottom:a,left:i,right:s}},getResettedPadding(t){const e=this,{config:n}=e,a=fe(t);let i=a?0:{};return n.padding===!1?!a&&Object.keys(t).forEach(s=>{i[s]=!Wn(n.data_labels)&&n.data_labels!==!1&&s==="top"?t[s]:0}):i=t,i},updateSizes(t){var e,n,a,i,s;const o=this,{config:l,state:c,$el:{legend:u}}=o,g=l.axis_rotated,v=o.hasArcType()||c.hasFunnel||c.hasTreemap,m=((e=l.padding)==null?void 0:e.mode)==="fit";!t&&o.setContainerSize();const S={width:u?o.getLegendWidth():0,height:u?o.getLegendHeight():0};!v&&l.axis_x_show&&l.axis_x_tick_autorotate&&o.updateXAxisTickClip();const I={right:l.legend_show&&c.isLegendRight?o.getLegendWidth()+(m?0:20):0,bottom:!l.legend_show||c.isLegendRight||c.isLegendInset?0:S.height},N=g||v?0:o.getHorizontalAxisHeight("x"),M=l.subchart_axis_x_show&&l.subchart_axis_x_tick_text_show?N:30,P=l.subchart_show&&!v?l.subchart_size_height+M:0,G=o.hasType("gauge")&&l.arc_needle_show&&!l.gauge_fullCircle&&!l.gauge_label_show?10:0,W=o.getCurrentPadding(!0);if(c.margin=!v&&g?{top:W.top,right:v?0:W.right+I.right,bottom:I.bottom+W.bottom,left:P+(v?0:W.left)}:{top:(m?0:4)+W.top,right:v?0:W.right+I.right,bottom:G+P+I.bottom+W.bottom,left:v?0:W.left},c.margin=o.getResettedPadding(c.margin),c.margin2=g?{top:c.margin.top,right:NaN,bottom:20+I.bottom,left:o.state.rotatedPadding.left}:{top:c.current.height-P-I.bottom,right:NaN,bottom:M+I.bottom,left:c.margin.left},c.margin3={top:0,right:NaN,bottom:0,left:0},(n=o.updateSizeForLegend)==null||n.call(o,S),c.width=c.current.width-c.margin.left-c.margin.right,c.height=c.current.height-c.margin.top-c.margin.bottom,c.width<0&&(c.width=0),c.height<0&&(c.height=0),c.width2=g?c.margin.left-c.rotatedPadding.left-c.rotatedPadding.right:c.width,c.height2=g?c.height:c.current.height-c.margin2.top-c.margin2.bottom,c.width2<0&&(c.width2=0),c.height2<0&&(c.height2=0),o.hasArcType()){const V=o.hasType("gauge"),k=l.legend_show&&c.isLegendRight,H=(a=c.hasRadar&&o.cache.get(Cn.radarTextWidth))!=null?a:0;c.arcWidth=c.width-(k?S.width+10:0)-H,c.arcHeight=c.height-(k&&!V?0:10),(i=l.arc_rangeText_values)!=null&&i.length&&(V?(c.arcWidth-=25,c.arcHeight-=10,c.margin.left+=10):(c.arcHeight-=20,c.margin.top+=10)),V&&!l.gauge_fullCircle&&(c.arcHeight+=c.height-o.getPaddingBottomForGauge()),(s=o.updateRadius)==null||s.call(o)}c.isLegendRight&&v&&(c.margin3.left=c.arcWidth/2+c.radiusExpanded*1.1)}},Fp={setCssRule(t,e,n,a){const i=this,{config:s,state:{cssRule:o,style:l}}=i;return s.boost_useCssRule?c=>{c.each(u=>{const g=a&&(a==null?void 0:a.call(i,u)),v=`${t?`.${tn.shapes+i.getTargetSelectorSuffix(u.id)}`:""}${e}`;e in o&&l.sheet.deleteRule(o[v]),i.state.cssRule[v]=Qg(l,v,n.filter(Boolean).map(m=>ze(g)&&m.indexOf(":")===-1?`${m}: ${g}`:m||""))})}:()=>{}},getStylePropValue(t){const{config:{boost_useCssRule:e}}=this;return e?null:de(t)?t.bind(this):t}};function Fc(t){return typeof t=="string"?new Ee([document.querySelectorAll(t)],[document.documentElement]):new Ee([T(t)],_t)}function Bp(t){let e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}function Up(t,e,n,a,i){var s;const o=this,{value:l}=t,c=o.isCandlestickType(t),u=fe(l)&&l<0||c&&!((s=o.getCandlestickData(t))!=null&&s._isUp);let{x:g,y:v}=e;const m=4,S=m*2;return a?n==="start"?(g+=u?0:S,v+=m):n==="middle"?(g+=S,v-=S):n==="end"&&(u&&(g-=S),v+=m):(n==="start"?(g+=m,u&&(v+=S*2)):n==="middle"?v-=S:n==="end"&&(g-=m,u&&(v+=S*2)),i&&(v+=u?-17:c?13:7)),{x:g,y:v}}function Bc(t,e){var n;const a=this.config.data_labels_position,{id:i,index:s,value:o}=t;return(n=de(a)?a.bind(this.api)(e,o,i,s,this.$el.text):(i in a?a[i]:a)[e])!=null?n:0}var zp={opacityForText(t){const e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText(){const{$el:t}=this;t.main.select(`.${Se.chart}`).append("g").attr("class",An.chartTexts).style("pointer-events",t.funnel||t.treemap?"none":null)},updateTargetsForText(t){const e=this,n=e.getChartClass("Text"),a=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select(`.${An.chartTexts}`).selectAll(`.${An.chartText}`).data(t).attr("class",l=>`${n(l)}${i(l)}`.trim()).enter().append("g").style("opacity","0").attr("class",n).call(e.setCssRule(!0,` .${An.text}`,["fill","pointer-events:none"],e.updateTextColor)).append("g").attr("class",a)},updateText(){const t=this,{$el:e,$T:n,config:a,axis:i}=t,s=t.getClass("text","index"),o=a.data_labels.centered,l=e.main.selectAll(`.${An.texts}`).selectAll(`.${An.text}`).data(t.labelishData.bind(t));n(l.exit()).style("fill-opacity","0").remove(),e.text=l.enter().append("text").merge(l).attr("class",s).attr("text-anchor",c=>{let g=a[`axis_${i==null?void 0:i.getId(c.id)}_inverted`]?c.value>0:c.value<0;if(t.isCandlestickType(c)){const v=t.getCandlestickData(c);g=!(v!=null&&v._isUp)}else if(t.isTreemapType(c))return o?"middle":"start";return a.axis_rotated?g?"end":"start":"middle"}).style("fill",t.getStylePropValue(t.updateTextColor)).style("fill-opacity","0").each(function(c,u,g){const v=st(this);let{value:m}=c;if(t.isBubbleZType(c))m=t.getBubbleZData(m,"z");else if(t.isCandlestickType(c)){const S=t.getCandlestickData(c);S&&(m=S.close)}m=t.isTreemapType(c)?t.treemapDataLabelFormat(c)(v):t.dataLabelFormat(c.id)(m,c.id,c.index,g),fe(m)?this.textContent=m:wa(v,m)})},updateTextColor(t){const e=this,{config:n}=e,a=n.data_labels_colors,i=e.isArcType(t)&&!e.isRadarType(t)||e.isFunnelType(t)||e.isTreemapType(t)?null:e.color(t);let s;if(ze(a))s=a;else if(De(a)){const{id:o}=t.data||t;s=a[o]}else de(a)&&(s=a.bind(e.api)(i,t));if(e.isCandlestickType(t)&&!de(a)){const o=e.getCandlestickData(t);if(!(o!=null&&o._isUp)){const l=n.candlestick_color_down;s=De(l)?l[t.id]:l}}return s||i},updateTextBGColor(t,e){const n=this,{$el:a}=n;let i="";if(ze(e)||De(e)){const s=ze(e)?"":n.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=a.defs.select(["filter[id*='labels-bg","']"].join(s));o.size()&&(i=`url(#${o.attr("id")})`)}return i||null},redrawText(t,e,n,a){const i=this,{$T:s,axis:o,config:l,state:{hasTreemap:c}}=i,u=lr(!0),g=l.axis_rotated,v=l.data_labels.rotate,m=Bp(v),S=v?`rotate(${v})`:"";return i.$el.text.style("fill",i.getStylePropValue(i.updateTextColor)).attr("filter",I=>i.updateTextBGColor.bind(i)(I,l.data_labels_backgroundColors)).style("fill-opacity",n?0:i.opacityForText.bind(i)).each(function(I,N){const M=s(c&&this.childElementCount?this.parentNode:this,!!(a&&this.getAttribute("x")),u),P=l[`axis_${o==null?void 0:o.getId(I.id)}_inverted`];let G={x:t.bind(this)(I,N),y:e.bind(this)(I,N)};v&&(G=Up.bind(i)(I,G,m,g,P),M.attr("text-anchor",m)),this.childElementCount||v?M.attr("transform",`translate(${G.x} ${G.y}) ${S}`):M.attr("x",G.x).attr("y",G.y)}),!0},getTextRect(t,e){const n=this;let a=t.node?t.node():t;/text/i.test(a.tagName)||(a=a.querySelector("text"));const i=a.textContent,s=`${Cn.textRect}-${i.replace(/\W/g,"_")}`;let o=n.cache.get(s);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",st(a).style("font")).classed(e,!0).text(i).call(l=>{o=Si(l.node())}).remove(),n.cache.add(s,o)),o},generateXYForText(t,e){const n=this,{state:{hasRadar:a,hasFunnel:i,hasTreemap:s}}=n,o=Object.keys(t),l={},c=e?n.getXForText:n.getYForText;return i&&o.push("funnel"),a&&o.push("radar"),s&&o.push("treemap"),o.forEach(u=>{l[u]=n[`generateGet${In(u)}Points`](t[u],!1)}),function(u,g){const v=n.isAreaType(u)&&"area"||n.isBarType(u)&&"bar"||n.isCandlestickType(u)&&"candlestick"||n.isFunnelType(u)&&"funnel"||n.isRadarType(u)&&"radar"||n.isTreemapType(u)&&"treemap"||"line";return c.call(n,l[v](u,g),u,this)}},getCenteredTextPos(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.isBarType(t),c=i.isTreemapType(t);if(s.data_labels.centered&&(l||c)){const u=Si(n);if(l){const g=i.getRangedData(t,null,"bar")>=0;if(o){const v=(g?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+u.width/2;return g?-v-3:v+2}else{const v=(g?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+u.height/2;return g?v:-v-2}}else if(c)return a==="x"?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2+u.height/2}return 0},getXForText(t,e,n){var a;const i=this,{config:s}=i,o=s.axis_rotated,l=i.isFunnelType(e),c=i.isTreemapType(e);let u=t?t[0][0]:0;if(i.isCandlestickType(e))o?u=(a=i.getCandlestickData(e))!=null&&a._isUp?t[2][2]+4:t[2][1]-4:u+=(t[1][0]-u)/2;else if(l)u+=i.state.current.width/2;else if(c)u+=s.data_labels.centered?0:5;else if(o){const g=s[`axis_${i.axis.getId(e.id)}_inverted`],v=i.isBarType(e)?4:6,m=e.value;u=t[2][1],g?u-=v*(m>0?1:-1):u+=v*(m<0?-1:1)}else u=i.hasType("bar")?(t[2][0]+t[0][0])/2:u;return(o||c)&&(u+=i.getCenteredTextPos(e,t,n,"x")),u+Bc.call(this,e,"x")},getYForText(t,e,n){const a=this,{axis:i,config:s,state:o}=a,l=s.axis_rotated,c=s[`axis_${i==null?void 0:i.getId(e.id)}_inverted`],u=a.isBarType(e),g=a.isFunnelType(e),v=a.isTreemapType(e),m=s.point_r,S=Si(n);let{value:I}=e,N=3,M;if(a.isCandlestickType(e))I=a.getCandlestickData(e),l?(M=t[0][0],M+=(t[1][0]-M)/2+N):(M=I&&I._isUp?t[2][2]-N:t[2][1]+N*4,c&&(M+=15*(I._isUp?1:-1)));else if(g)M=t?t[0][1]+(t[1][1]-t[0][1])/2+S.height/2-3:0;else if(v)M=t[0][1]+(s.data_labels.centered?0:S.height+5);else if(l)M=(t[0][0]+t[2][0]+S.height*.6)/2;else if(M=t[2][1],fe(m)&&m>5&&(a.isLineType(e)||a.isScatterType(e))&&(N+=s.point_r/2.3),I<0||I===0&&!o.hasPositiveValue&&o.hasNegativeValue)M+=c?u?-3:-5:S.height+(u?-N:N);else{let P=-N*2;u?P=-N:a.isBubbleType(e)&&(P=N),c&&(P=u?10:15),M+=P}return(!l||v)&&(M+=a.getCenteredTextPos(e,t,n,"y")),M+Bc.call(this,e,"y")},markOverlapped(t,e,n){const a=e.$el.arcs.selectAll(n),i=a.filter(c=>c.data.id!==t),s=a.filter(c=>c.data.id===t),o=Kl(s.node()),l=(c,u)=>Math.sqrt(Math.pow(c,2)+Math.pow(u,2));s.node()&&i.each(function(){const c=Kl(this),u=st(this),g=l(o.e,o.f)>l(c.e,c.f)?s:u,v=Math.ceil(Math.abs(o.e-c.e))=i}};function Uc(t="left",e){const n=fe(e);let a;return t.indexOf("center")>-1?a=n?e/2:"middle":t.indexOf("right")>-1?a=n?e:"end":a=n?0:"start",a}var jp={initTitle(){const t=this,{config:e,$el:n}=t;if(e.title_text){n.title=n.svg.append("g");const a=n.title.append("text").style("text-anchor",Uc(e.title_position)).attr("class",An.title);wa(a,e.title_text,[.3,1.5])}},redrawTitle(){const t=this,{config:e,state:{current:n},$el:{title:a}}=t;if(a){const i=Uc(e.title_position,n.width),s=(e.title_padding.top||0)+t.getTextRect(t.$el.title,An.title).height;a.attr("transform",`translate(${i}, ${s})`)}},getTitlePadding(){const t=this,{$el:{title:e},config:n}=t;return(n.title_padding.top||0)+(e?t.getTextRect(e,An.title).height:0)+(n.title_padding.bottom||0)}},Gp={initTooltip(){const t=this,{config:e,$el:n}=t;n.tooltip=st(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",ti.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip(){var t;const e=this,{config:n,$el:a,state:{hasAxis:i,hasRadar:s}}=e;if(n.tooltip_init_show){const o=!(i||s);(t=e.axis)!=null&&t.isTimeSeries()&&ze(n.tooltip_init_x)&&(n.tooltip_init_x=Dn.call(e,n.tooltip_init_x)),e.api.tooltip.show({data:{[o?"index":"x"]:n.tooltip_init_x}});const l=n.tooltip_init_position;if(!n.tooltip_contents.bindto&&!Wn(l)){const{top:c=0,left:u=50}=l;a.tooltip.style("top",ze(c)?c:`${c}px`).style("left",ze(u)?u:`${u}px`).style("display",null)}}},getTooltipHTML(...t){const e=this,{api:n,config:a}=e;return de(a.tooltip_contents)?a.tooltip_contents.bind(n)(...t):e.getTooltipContent(...t)},getTooltipContent(t,e,n,a){var i;const s=this,{api:o,config:l,state:c,$el:u}=s,[g,v,m]=["title","name","value"].map(mt=>{const J=l[`tooltip_format_${mt}`];return de(J)?J.bind(o):J}),S=(...mt)=>Is((g||e)(...mt)),I=(...mt)=>Is((v||(J=>J))(...mt)),N=(...mt)=>{const J=m||(c.hasTreemap||s.isStackNormalized()?(Ct,ht)=>`${(ht*100).toFixed(2)}%`:n);return Is(J(...mt))},M=l.tooltip_order,P=mt=>s.axis&&s.isBubbleZType(mt)?s.getBubbleZData(mt.value,"z"):s.getBaseValue(mt),G=s.levelColor?mt=>s.levelColor(mt.value):mt=>a(mt),W=l.tooltip_contents,V=W.template,k=s.mapToTargetIds();if(M===null&&l.data_groups.length){const mt=s.orderTargets(s.data.targets).map(J=>J.id).reverse();t.sort((J,Ct)=>{let ht=J?J.value:null,It=Ct?Ct.value:null;return ht>0&&It>0&&(ht=J.id?mt.indexOf(J.id):null,It=Ct.id?mt.indexOf(Ct.id):null),ht-It})}else if(/^(asc|desc)$/.test(M)){const mt=M==="asc";t.sort((J,Ct)=>{const ht=J?P(J):null,It=Ct?P(Ct):null;return mt?ht-It:It-ht})}else de(M)&&t.sort(M.bind(o));const H=s.getTooltipContentTemplate(V),at=t.length;let gt,$t,St,Tt,Gt;for(Gt=0;Gt${mt}`:""})}if(!$t.ratio&&u.arcs&&(St=["arc",s.$el.arcs.select(`path.${Be.arc}-${$t.id}`).data()[0]],$t.ratio=s.getRatio(...St)),St=[$t.ratio,$t.id,$t.index],s.isAreaRangeType($t)){const[mt,J]=["high","low"].map(ht=>N(s.getRangedData($t,ht),...St));Tt=`Mid: ${N(P($t),...St)} High: ${mt} Low: ${J}`}else if(s.isCandlestickType($t)){const[mt,J,Ct,ht,It]=["open","high","low","close","volume"].map(Yt=>s.getRangedData($t,Yt,"candlestick")?N(s.getRangedData($t,Yt,"candlestick"),...St):void 0);Tt=`Open: ${mt} High: ${J} Low: ${Ct} Close: ${ht}${It?` Volume: ${It}`:""}`}else if(s.isBarRangeType($t)){const{value:mt,id:J,index:Ct}=$t;Tt=`${N(mt,void 0,J,Ct)}`}else Tt=N(P($t),...St);if(Tt!==void 0){if($t.name===null)continue;const mt=I((i=$t.name)!=null?i:$t.id,...St),J=G($t),Ct={CLASS_TOOLTIP_NAME:ti.tooltipName+s.getTargetSelectorSuffix($t.id),COLOR:V||!s.patterns?J:``,NAME:mt,VALUE:Tt};if(V&&De(W.text)){const ht=k.indexOf($t.id);Object.keys(W.text).forEach(It=>{Ct[It]=W.text[It][ht]})}gt+=bi(H[1],Ct)}}return`${gt}`},getTooltipContentTemplate(t){return(t||` +`)}function u(v){return v.map(g).join(t)}function g(v){return v==null?"":v instanceof Date?$v(v):e.test(v+="")?'"'+v.replace(/"/g,'""')+'"':v}return{parse:a,parseRows:i,format:o,formatBody:l,formatRows:c,formatRow:u,formatValue:g}}var wr=rc(","),Sv=wr.parse,Av=wr.parseRows,_0=wr.format,q0=wr.formatBody,t1=wr.formatRows,e1=wr.formatRow,n1=wr.formatValue,Mr=rc(" "),bv=Mr.parse,Ev=Mr.parseRows,r1=Mr.format,a1=Mr.formatBody,i1=Mr.formatRows,s1=Mr.formatRow,o1=Mr.formatValue;function zs(t){const e=[];return t.forEach(function(n,a){const i=n[0];n.forEach(function(s,o){if(o>0){if(typeof e[o-1]=="undefined"&&(e[o-1]={}),typeof s=="undefined")throw new Error(`Source data is missing a component at (${a}, ${o})!`);e[o-1][i]=s}})}),e}function js(t){const e=t[0],n=[];return t.forEach(function(a,i){if(i>0){const s={};a.forEach(function(o,l){if(typeof o=="undefined")throw new Error(`Source data is missing a component at (${i}, ${l})!`);s[e[l]]=o}),n.push(s)}}),n}function ac(t,e){const n=[];let a,i;if(Array.isArray(t)){const s=function(o,l){if(o[l]!==void 0)return o[l];const u=l.replace(/\[(\w+)\]/g,".$1").replace(/^\./,"").split(".");let g=o;return u.some(function(v){return!(g=g&&v in g?g[v]:void 0)}),g};e.x?a=e.value.concat(e.x):a=e.value,n.push(a),t.forEach(function(o){const l=a.map(function(c){let u=s(o,c);return typeof u=="undefined"&&(u=null),u});n.push(l)}),i=js(n)}else Object.keys(t).forEach(function(s){var o;const l=t[s].concat();(o=l.unshift)==null||o.call(l,s),n.push(l)}),i=zs(n);return i}function Rv(t,e="csv",n,a,i){const s=new XMLHttpRequest,o={csv:Ov,tsv:Iv,json:ac};s.open("GET",t),n&&Object.keys(n).forEach(function(l){s.setRequestHeader(l,n[l])}),s.onreadystatechange=function(){if(s.readyState===4)if(s.status===200){const l=s.responseText;l&&i.call(this,o[e](e==="json"?JSON.parse(l):l,a))}else throw new Error(`${t}: Something went wrong loading!`)},s.send()}function ic(t,e){const n=t.rows(e);let a;return n.length===1?(a=[{}],n[0].forEach(i=>{a[0][i]=null})):a=t.parse(e),a}function Ov(t){return ic({rows:Av,parse:Sv},t)}function Iv(t){return ic({rows:Ev,parse:bv},t)}function sc(t,e){const n=t||(e==null?void 0:e.data_keys);return n!=null&&n.x&&(e.data_x=n.x),n}var Cv={convertData(t,e){const{config:n}=this,a=n.boost_useWorker;let i=t;if(t.bindto&&(i={},["url","mimeType","headers","keys","json","keys","rows","columns"].forEach(s=>{const o=`data_${s}`;o in t&&(i[s]=t[o])})),i.url&&e)Rv(i.url,i.mimeType,i.headers,sc(i.keys,n),e);else if(i.json)Ns(a,ac,e,[zs,js])(i.json,sc(i.keys,n));else if(i.rows)Ns(a,js,e)(i.rows);else if(i.columns)Ns(a,zs,e)(i.columns);else if(t.bindto)throw Error("url or json or rows or columns is required.")},convertDataToTargets(t,e){const n=this,{axis:a,config:i,state:s}=n,o=i.data_type;let l=!1,c=!1,u=!1;a&&(l=a.isCategorized(),c=a.isTimeSeries(),u=a.isCustomX());const g=Object.keys(t[0]||{}),v=g.length?g.filter(n.isNotX,n):[],m=g.length?g.filter(n.isX,n):[];let S;v.forEach(N=>{const M=this.getXKey(N);u||c?m.indexOf(M)>=0?S=(e&&n.data.xs[N]||[]).concat(t.map(P=>P[M]).filter(Ie).map((P,G)=>n.generateTargetX(P,N,G))):i.data_x?S=this.getOtherTargetXs():nn(i.data_xs)&&(S=n.getXValuesOfXKey(M,n.data.targets)):S=t.map((P,G)=>G),S&&(this.data.xs[N]=S)}),v.forEach(N=>{if(!this.data.xs[N])throw new Error(`x is not defined for id = "${N}".`)});const I=v.map((N,M)=>{const P=i.data_idConverter.bind(n.api)(N),G=n.getXKey(N),H=u&&l,Y=H&&t.map(at=>at.x).every(at=>i.axis_x_categories.indexOf(at)>-1),_=t.__append__,K=G===null&&_?n.api.data.values(N).length:0;return{id:P,id_org:N,values:t.map((at,$t)=>{const At=at[G];let vt=at[N],gt;return vt=vt!==null&&!isNaN(vt)&&!De(vt)?+vt:Fe(vt)||De(vt)?vt:null,(H||s.hasRadar)&&M===0&&!en(At)?(!Y&&M===0&&$t===0&&!_&&(i.axis_x_categories=[]),gt=i.axis_x_categories.indexOf(At),gt===-1&&(gt=i.axis_x_categories.length,i.axis_x_categories.push(At))):gt=n.generateTargetX(At,N,K+$t),(en(vt)||n.data.xs[N].length<=$t)&&(gt=void 0),{x:gt,value:vt,id:P,index:-1}}).filter(at=>Xe(at.x))}});if(I.forEach(N=>{var M;i.data_xSort&&(N.values=N.values.sort((P,G)=>{const H=P.x||P.x===0?P.x:1/0,Y=G.x||G.x===0?G.x:1/0;return H-Y})),N.values.forEach((P,G)=>P.index=G),(M=n.data.xs[N.id])==null||M.sort((P,G)=>P-G)}),s.hasNegativeValue=n.hasNegativeValueInTargets(I),s.hasPositiveValue=n.hasPositiveValueInTargets(I),o&&n.isValidChartType(o)){const N=n.mapToIds(I).filter(M=>!(M in i.data_types)||!n.isValidChartType(i.data_types[M]));n.setTargetType(N,o)}return I.forEach(N=>n.cache.add(N.id_org,N,!0)),I}},Pv={isX(t){const e=this,{config:n}=e,a=n.data_x&&t===n.data_x,i=nn(n.data_xs)&&Zg(n.data_xs,t);return a||i},isNotX(t){return!this.isX(t)},isStackNormalized(){const{config:t}=this;return!!(t.data_stack_normalize&&t.data_groups.length)},isGrouped(t){const e=this.config.data_groups;return t?e.some(n=>n.indexOf(t)>=0&&n.length>1):e.length>0},getXKey(t){const e=this,{config:n}=e;return n.data_x?n.data_x:nn(n.data_xs)?n.data_xs[t]:null},getXValuesOfXKey(t,e){const n=this,a=e&&nn(e)?n.mapToIds(e):[];let i;return a.forEach(s=>{n.getXKey(s)===t&&(i=n.data.xs[s])}),i},getIndexByX(t,e){const n=this;return e?e.indexOf(ze(t)?t:+t):(n.filterByX(n.data.targets,t)[0]||{index:null}).index},getXValue(t,e){const n=this;return t in n.data.xs&&n.data.xs[t]&&Ie(n.data.xs[t][e])?n.data.xs[t][e]:e},getOtherTargetXs(){const t=this,e=Object.keys(t.data.xs);return e.length?t.data.xs[e[0]]:null},getOtherTargetX(t){const e=this.getOtherTargetXs();return e&&t{n.data_xs[a]=t[a]})},isMultipleX(){return!this.config.axis_x_forceAsSingle&&(nn(this.config.data_xs)||this.hasType("bubble")||this.hasType("scatter"))},addName(t){const e=this,{config:n}=e;let a;return t&&(a=n.data_names[t.id],t.name=a!==void 0?a:t.id),t},getAllValuesOnIndex(t,e=!1){const n=this;let a=n.filterTargetsToShow(n.data.targets).map(i=>n.addName(n.getValueOnIndex(i.values,t)));return e&&(a=a.filter(i=>i&&"value"in i&&Ie(i.value))),a},getValueOnIndex(t,e){const n=t.filter(a=>a.index===e);return n.length?n[0]:null},updateTargetX(t,e){const n=this;t.forEach(a=>{a.values.forEach((i,s)=>{i.x=n.generateTargetX(e[s],a.id,s)}),n.data.xs[a.id]=e})},updateTargetXs(t,e){const n=this;t.forEach(a=>{e[a.id]&&n.updateTargetX([a],e[a.id])})},generateTargetX(t,e,n){const a=this,{axis:i}=a;let s=i!=null&&i.isCategorized()?n:t||n;if(i!=null&&i.isTimeSeries()){const o=Dn.bind(a);s=o(t||a.getXValue(e,n))}else i!=null&&i.isCustomX()&&!(i!=null&&i.isCategorized())&&(s=Ie(t)?+t:a.getXValue(e,n));return s},updateXs(t){t.length&&(this.axis.xs=t.map(e=>e.x))},getPrevX(t){const e=this.axis.xs[t-1];return Xe(e)?e:null},getNextX(t){const e=this.axis.xs[t+1];return Xe(e)?e:null},getBaseValue(t){const e=this,{hasAxis:n}=e.state;let{value:a}=t;return a&&n&&(e.isAreaRangeType(t)?a=e.getRangedData(t,"mid"):e.isBubbleZType(t)&&(a=e.getBubbleZData(a,"y"))),a},getMinMaxValue(t){const e=this.getBaseValue.bind(this);let n,a;return(t||this.data.targets.map(i=>i.values)).forEach((i,s)=>{const o=i.map(e).filter(fe);n=Math.min(s?n:1/0,...o),a=Math.max(s?a:-1/0,...o)}),{min:n,max:a}},getMinMaxData(){const t=this,e=Cn.dataMinMax;let n=t.cache.get(e);if(!n){const a=t.data.targets.map(l=>l.values),i=t.getMinMaxValue(a);let s=[],o=[];a.forEach(l=>{const c=t.getFilteredDataByValue(l,i.min),u=t.getFilteredDataByValue(l,i.max);c.length&&(s=s.concat(c)),u.length&&(o=o.concat(u))}),t.cache.add(e,n={min:s,max:o})}return n},getTotalPerIndex(){const t=this,e=Cn.dataTotalPerIndex;let n=t.cache.get(e);return(t.config.data_groups.length||t.isStackNormalized())&&!n&&(n=[],t.data.targets.forEach(a=>{a.values.forEach((i,s)=>{n[s]||(n[s]=0),n[s]+=fe(i.value)?i.value:0})})),n},getTotalDataSum(t){const e=this,n=Cn.dataTotalSum;let a=e.cache.get(n);if(!fe(a)){const i=ws(e.data.targets.map(s=>s.values)).map(s=>s.value);a=i.length?i.reduce((s,o)=>s+o):0,e.cache.add(n,a)}return t&&(a-=e.getHiddenTotalDataSum()),a},getHiddenTotalDataSum(){const t=this,{api:e,state:{hiddenTargetIds:n}}=t;let a=0;return n.length&&(a=e.data.values.bind(e)(n).reduce((i,s)=>i+s)),a},getFilteredDataByValue(t,e){return t.filter(n=>this.getBaseValue(n)===e)},getMaxDataCount(){return Math.max(...this.data.targets.map(t=>t.values.length),0)},getMaxDataCountTarget(){let t=this.filterTargetsToShow()||[];const e=t.length,n=this.config.axis_x_inverted;return e>1?(t=t.map(a=>a.values).reduce((a,i)=>a.concat(i)).map(a=>a.x),t=qr(Ps(t)).map((a,i,s)=>({x:a,index:n?s.length-i-1:i}))):e&&(t=t[0].values.concat()),t},mapToIds(t){return t.map(e=>e.id)},mapToTargetIds(t){const e=this;return t?Fe(t)?t.concat():[t]:e.mapToIds(e.data.targets)},hasTarget(t,e){const n=this.mapToIds(t);for(let a=0,i;i=n[a];a++)if(i===e)return!0;return!1},isTargetToShow(t){return this.state.hiddenTargetIds.indexOf(t)<0},isLegendToShow(t){return this.state.hiddenLegendIds.indexOf(t)<0},filterTargetsToShow(t){const e=this;return(t||e.data.targets).filter(n=>e.isTargetToShow(n.id))},mapTargetsToUniqueXs(t){const e=this,{axis:n}=e;let a=[];return t!=null&&t.length&&(a=Ps(ws(t.map(i=>i.values.map(s=>+s.x)))),a=n!=null&&n.isTimeSeries()?a.map(i=>new Date(+i)):a.map(Number)),qr(a)},addTargetIds(t,e){const{state:n}=this;(Fe(e)?e:[e]).forEach(i=>{n[t].indexOf(i)<0&&n[t].push(i)})},removeTargetIds(t,e){const{state:n}=this;(Fe(e)?e:[e]).forEach(i=>{const s=n[t].indexOf(i);s>=0&&n[t].splice(s,1)})},addHiddenTargetIds(t){this.addTargetIds("hiddenTargetIds",t)},removeHiddenTargetIds(t){this.removeTargetIds("hiddenTargetIds",t)},addHiddenLegendIds(t){this.addTargetIds("hiddenLegendIds",t)},removeHiddenLegendIds(t){this.removeTargetIds("hiddenLegendIds",t)},getValuesAsIdKeyed(t){const e=this,{hasAxis:n}=e.state,a={},i=e.isMultipleX(),s=i?e.mapTargetsToUniqueXs(t).map(o=>ze(o)?o:+o):null;return t.forEach(o=>{const l=[];o.values.filter(({value:c})=>Ie(c)||c===null).forEach(c=>{let{value:u}=c;u!==null&&e.isCandlestickType(c)&&(u=Fe(u)?u.slice(0,4):[u.open,u.high,u.low,u.close]),Fe(u)?l.push(...u):De(u)&&"high"in u?l.push(...Object.values(u)):e.isBubbleZType(c)?l.push(n&&e.getBubbleZData(u,"y")):i?l[e.getIndexByX(c.x,s)]=u:l.push(u)}),a[o.id]=l}),a},checkValueInTargets(t,e){const n=Object.keys(t);let a;for(let i=0;i1},hasNegativeValueInTargets(t){return this.checkValueInTargets(t,e=>e<0)},hasPositiveValueInTargets(t){return this.checkValueInTargets(t,e=>e>0)},orderTargets(t){const e=this,n=[...t],a=e.getSortCompareFn();return a&&n.sort(a),n},getSortCompareFn(t=!1){const e=this,{config:n}=e,a=n.data_order,i=/asc/i.test(a),s=/desc/i.test(a);let o;if(i||s){const l=(u,g)=>u+Math.abs(g.value),c=u=>fe(u)?u:"values"in u?u.values.reduce(l,0):u.value;o=(u,g)=>{const v=c(u),m=c(g);return t?i?v-m:m-v:i?m-v:v-m}}else de(a)&&(o=a.bind(e.api));return o||null},filterByX(t,e){return ws(t.map(n=>n.values)).filter(n=>n.x-e===0)},filterRemoveNull(t){return t.filter(e=>Ie(this.getBaseValue(e)))},filterByXDomain(t,e){return t.map(n=>({id:n.id,id_org:n.id_org,values:n.values.filter(a=>e[0]<=a.x&&a.x<=e[1])}))},hasDataLabel(){const t=this.config.data_labels;return Os(t)&&t||Jn(t)&&nn(t)},hasNullDataValue(t){return t.some(({value:e})=>e===null)},getDataIndexFromEvent(t){const e=this,{$el:n,config:a,state:{hasRadar:i,inputType:s,eventReceiver:{coords:o,rect:l}}}=e;let c;if(i){let u=t.target;/tspan/i.test(u.tagName)&&(u=u.parentNode);const g=st(u).datum();c=g&&Object.keys(g).length===1?g.index:void 0}else{const u=a.axis_rotated,g=Wl(n.chart.node()),v=s==="touch"&&t.changedTouches?t.changedTouches[0]:t;c=Cs(o,u?v.clientY+g.y-l.top:v.clientX+g.x-l.left,0,o.length-1,u)}return c},getDataLabelLength(t,e,n){const a=this,i=[0,0],s=1.3;return a.$el.chart.select("svg").selectAll(".dummy").data([t,e]).enter().append("text").text(o=>a.dataLabelFormat(o.id)(o)).each(function(o,l){i[l]=this.getBoundingClientRect()[n]*s}).remove(),i},isNoneArc(t){return this.hasTarget(this.data.targets,t.id)},isArc(t){return"data"in t&&this.hasTarget(this.data.targets,t.data.id)},findSameXOfValues(t,e){const n=t[e].x,a=[];let i;for(i=e-1;i>=0&&n===t[i].x;i--)a.push(t[i]);for(i=e;in.findClosest(i.values,e));return n.findClosest(a,e)},findClosest(t,e){const n=this,{$el:{main:a}}=n,i=t.filter(l=>l&&Ie(l.value));let s,o;return i.filter(l=>n.isBarType(l.id)||n.isCandlestickType(l.id)).forEach(l=>{const c=n.isBarType(l.id)?`.${Gn.chartBar}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${Gn.bar}-${l.index}`:`.${rr.chartCandlestick}.${Se.target}${n.getTargetSelectorSuffix(l.id)} .${rr.candlestick}-${l.index} path`;!o&&n.isWithinBar(a.select(c).node())&&(o=l)}),i.filter(l=>!n.isBarType(l.id)&&!n.isCandlestickType(l.id)).forEach(l=>{const c=n.dist(l,e);s=n.getPointSensitivity(l),c{const{x:i,id:s}=a;n.push({x:i,id:s,value:a.value[0]}),n.push({x:i,id:s,value:a.value[2]})}),n},updateDataAttributes(t,e){const n=this,{config:a}=n,i=a[`data_${t}`];return en(e)||(Object.keys(e).forEach(s=>{i[s]=e[s]}),n.redraw({withLegend:!0})),i},getRangedData(t,e="",n="areaRange"){const a=t==null?void 0:t.value;if(Fe(a)){if(n==="bar")return a.reduce((i,s)=>s-i);{const i={areaRange:["high","mid","low"],candlestick:["open","high","low","close","volume"]}[n].indexOf(e);return i>=0&&a?a[i]:void 0}}else if(a&&e)return a[e];return a},setRatioForGroupedData(t){const e=this,{config:n}=e;if(n.data_groups.length&&t.some(a=>e.isGrouped(a.id))){const a=i=>e.getRatio("index",i,!0);t.forEach(i=>{"values"in i?i.values.forEach(a):a(i)})}},getRatio(t,e,n=!1){const a=this,{config:i,state:s}=a,o=a.api;let l=0;if(e&&o.data.shown().length)if(l=e.ratio||e.value,t==="arc")if(a.pie.padAngle()())l=e.value/a.getTotalDataSum(!0);else{const c=i.gauge_fullCircle?a.getArcLength():a.getStartingAngle()*-2,u=a.hasType("gauge")?c:Math.PI*2;l=(e.endAngle-e.startAngle)/u}else if(t==="index"){const c=o.data.values.bind(o);let u=this.getTotalPerIndex();if(s.hiddenTargetIds.length){let v=c(s.hiddenTargetIds,!1);v.length&&(v=v.reduce((m,S)=>m.map((I,N)=>(fe(I)?I:0)+S[N])),u=u.map((m,S)=>m-v[S]))}const g=u[e.index];e.ratio=fe(e.value)&&u&&g?e.value/g:0,l=e.ratio}else if(t==="radar")l=parseFloat(String(Math.max(e.value,0)))/s.current.dataMax*i.radar_size_ratio;else if(t==="bar"){const u=a.getYScaleById.bind(a)(e.id).domain().reduce((g,v)=>v-g);l=u===0?0:Math.abs(a.getRangedData(e,null,t)/u)}else t==="treemap"&&(l/=a.getTotalDataSum(!0));return n&&l?l*100:l},updateDataIndexByX(t){const e=this,n=t.reduce((a,i,s)=>(a[Number(i.x)]=s,a),{});e.data.targets.forEach(a=>{a.values.forEach((i,s)=>{let o=n[Number(i.x)];o===void 0&&(o=s),i.index=o})})},isBubbleZType(t){return this.isBubbleType(t)&&(De(t.value)&&("z"in t.value||"y"in t.value)||Fe(t.value)&&t.value.length>=2)},isBarRangeType(t){const e=this,{value:n}=t;return e.isBarType(t)&&Fe(n)&&n.length>=2&&n.every(a=>fe(a))},getDataById(t){var e;const n=this.cache.get(t)||this.api.data(t);return(e=n==null?void 0:n[0])!=null?e:n}};function oc(t,e=!1){const n=this,{api:a}=n;e&&n.api.flush(!0),t==null||t.call(a)}var wv={load(t,e){const n=this,{axis:a,data:i,org:s,scale:o}=n,{append:l}=e,c={domain:null,currentDomain:null,x:null};let u=t;u&&(e.filter&&(u=u.filter(e.filter)),(e.type||e.types)&&u.forEach(g=>{var v;const m=((v=e.types)==null?void 0:v[g.id])||e.type;n.setTargetType(g.id,m)}),i.targets.forEach(g=>{for(let v=0;v{const a=t.data||n;t.append&&(a.__append__=!0),a&&e.load(e.convertDataToTargets(a),t)}))},unload(t,e){var n;const a=this,{state:i,$el:s,$T:o}=a,l=!!((n=a.hasLegendDefsPoint)!=null&&n.call(a));let c=e,u=t;if(a.cache.reset(),c||(c=()=>{}),u=u.filter(v=>a.hasTarget(a.data.targets,v)),!u||u.length===0){c();return}const g=s.svg.selectAll(u.map(v=>a.selectorTarget(v)));o(g).style("opacity","0").remove().call($i,c),u.forEach(v=>{var m;const S=a.getTargetSelectorSuffix(v);i.withoutFadeIn[v]=!1,s.legend&&s.legend.selectAll(`.${Ve.legendItem}${S}`).remove(),a.data.targets=a.data.targets.filter(I=>I.id!==v),l&&((m=s.defs)==null||m.select(`#${a.getDefsPointId(S)}`).remove())}),i.hasFunnel&&a.updateFunnel(a.data.targets),i.hasTreemap&&a.updateTargetsForTreemap(a.data.targets),a.updateTypesElements()}},Ei=t=>()=>t;function Gs(t,{sourceEvent:e,subject:n,target:a,identifier:i,active:s,x:o,y:l,dx:c,dy:u,dispatch:g}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:a,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:s,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:g}})}Gs.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function Mv(t){return!t.ctrlKey&&!t.button}function Lv(){return this.parentNode}function Dv(t,e){return e==null?{x:t.x,y:t.y}:e}function Nv(){return navigator.maxTouchPoints||"ontouchstart"in this}function lc(){var t=Mv,e=Lv,n=Dv,a=Nv,i={},s=ni("start","drag","end"),o=0,l,c,u,g,v=0;function m(Y){Y.on("mousedown.drag",S).filter(a).on("touchstart.drag",M).on("touchmove.drag",P,Kd).on("touchend.drag touchcancel.drag",G).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function S(Y,_){if(!(g||!t.call(this,Y,_))){var K=H(this,e.call(this,Y,_),Y,_,"mouse");K&&(st(Y.view).on("mousemove.drag",I,Sa).on("mouseup.drag",N,Sa),ls(Y.view),os(Y),u=!1,l=Y.clientX,c=Y.clientY,K("start",Y))}}function I(Y){if(Hr(Y),!u){var _=Y.clientX-l,K=Y.clientY-c;u=_*_+K*K>v}i.mouse("drag",Y)}function N(Y){st(Y.view).on("mousemove.drag mouseup.drag",null),cs(Y.view,u),Hr(Y),i.mouse("end",Y)}function M(Y,_){if(t.call(this,Y,_)){var K=Y.changedTouches,at=e.call(this,Y,_),$t=K.length,At,vt;for(At=0;At<$t;++At)(vt=H(this,at,Y,_,K[At].identifier,K[At]))&&(os(Y),vt("start",Y,K[At]))}}function P(Y){var _=Y.changedTouches,K=_.length,at,$t;for(at=0;ati.$el[s]).forEach(s=>{a&&i.$el[s].classed(Se.EXPANDED,!1),i.getShapeByIndex(s,e,n).classed(Se.EXPANDED,t)})},setOverOut(t,e){const n=this,{config:a,state:{hasFunnel:i,hasRadar:s,hasTreemap:o},$el:{main:l}}=n,c=De(e);if(c||e!==-1){const u=a[t?"data_onover":"data_onout"].bind(n.api);if(a.color_onover&&n.setOverColor(t,e,c),c){const g=n.getTargetSelectorSuffix(e.id),v=i||o?`${Se.target+g} .${tn.shape}`:Be.arc+g;u(e,l.select(`.${v}`).node())}else if(a.tooltip_grouped)t&&(s&&n.isPointFocusOnly()?n.showCircleFocus(n.getAllValuesOnIndex(e,!0)):n.setExpand(e,null,!0)),!n.isMultipleX()&&l.selectAll(`.${tn.shape}-${e}`).each(function(g){u(g,this)});else{const g=n.cache.get(Cn.setOverOut)||[],v=l.selectAll(`.${tn.shape}-${e}`).filter(function(S){return n.isWithinShape(this,S)}),m=v.filter(function(){return g.every(S=>S!==this)});if(!t||v.empty()||g.length===m.size()&&m.nodes().every((S,I)=>S!==g[I]))for(;g.length;){const S=g.pop();a.data_onout.bind(n.api)(st(S).datum(),S)}m.each(function(){t&&(u(st(this).datum(),this),g.push(this))}),n.cache.add(Cn.setOverOut,g)}}},callOverOutForTouch(t){const e=this,n=e.cache.get(Cn.callOverOutForTouch);(De(t)&&n?t.id!==n.id:t!==n)&&((n||fe(n))&&e.setOverOut(!1,n),(t||fe(t))&&e.setOverOut(!0,t),e.cache.add(Cn.callOverOutForTouch,t))},getDraggableSelection(){const t=this,{config:e,state:n}=t;return e.interaction_enabled&&e.data_selection_draggable&&t.drag?lc().on("drag",function(a){n.event=a,t.drag(zn(a,this))}).on("start",function(a){n.event=a,t.dragstart(zn(a,this))}).on("end",a=>{n.event=a,t.dragend()}):()=>{}},dispatchEvent(t,e,n){var a,i;const s=this,{config:o,state:{eventReceiver:l,hasAxis:c,hasFunnel:u,hasRadar:g,hasTreemap:v},$el:{eventRect:m,funnel:S,radar:I,treemap:N}}=s;let M=(i=(u||v)&&l.rect||g&&I.axes.select(`.${on.axis}-${e} text`)||m||((a=s.getArcElementByIdOrIndex)==null?void 0:a.call(s,e)))==null?void 0:i.node();if(M){const P=s.isMultipleX(),G=o.axis_rotated;let{width:H,left:Y,top:_}=M.getBoundingClientRect();if(c&&!g&&!P){const At=l.coords[e];At?(H=At.w,Y+=At.x,_+=At.y):(H=0,Y=0,_=0)}const K=Y+(n?n[0]:0)+(P||G?0:H/2),at=_+(n?n[1]:0)+(G?4:0),$t={screenX:K,screenY:at,clientX:K,clientY:at,bubbles:g};(u||v)&&(M=(S!=null?S:N).node()),qg[/^(mouse|click)/.test(t)?"mouse":"touch"](M,t,$t)}},setDragStatus(t){this.state.dragging=t},unbindZoomEvent(){const t=this,{$el:{eventRect:e,zoomResetBtn:n}}=t;e==null||e.on(".zoom wheel.zoom .drag",null),n==null||n.on("click",null).style("display","none")},unbindAllEvents(){var t;const e=this,{$el:{arcs:n,eventRect:a,legend:i,region:s,svg:o,treemap:l},brush:c}=e,u=["wheel","click","mouseover","mousemove","mouseout","touchstart","touchmove","touchend","touchstart.eventRect","touchmove.eventRect","touchend.eventRect",".brush",".drag",".zoom","wheel.zoom","dblclick.zoom"].join(" ");[o,a,s==null?void 0:s.list,c==null?void 0:c.getSelection(),n==null?void 0:n.selectAll("path"),i==null?void 0:i.selectAll("g"),l].forEach(g=>g==null?void 0:g.on(u,null)),(t=e.unbindZoomEvent)==null||t.call(e)}},Bv={categoryName(t){var e;const{axis_x_categories:n}=this.config;return(e=n==null?void 0:n[t])!=null?e:t}},Uv={generateClass(t,e){return` ${t} ${t+this.getTargetSelectorSuffix(e)}`},getClass(t,e){const n=/s$/.test(t),a=/^(area|arc|line|funnel|treemap)s?$/.test(t),i=n?"id":"index";return s=>{const o=s.data||s;return((e?this.generateClass(Ne[n?"shapes":"shape"],o[i]):"")+this.generateClass(Ne[t],o[a?"id":i])).trim()}},getChartClass(t){return e=>Ne[`chart${t}`]+this.classTarget((e.data?e.data:e).id)},generateExtraLineClass(){const e=this.config.line_classes||[],n=[];return function(a){var i;const s=a.id||((i=a.data)==null?void 0:i.id)||a;return n.indexOf(s)<0&&n.push(s),e[n.indexOf(s)%e.length]}},classRegion(t,e){return`${this.generateClass(Ne.region,e)} ${"class"in t?t.class:""}`},classTarget(t){const e=this.config.data_classes[t];let n="";return e&&(n=` ${Ne.target}-${e}`),this.generateClass(Ne.target,t)+n},classFocus(t){return this.classFocused(t)+this.classDefocused(t)},classFocused(t){return` ${this.state.focusedTargetIds.indexOf(t.id)>=0?Ne.focused:""}`},classDefocused(t){return` ${this.state.defocusedTargetIds.indexOf(t.id)>=0?Ne.defocused:""}`},getTargetSelectorSuffix(t){return(t||t===0?`-${t}`:"").replace(/[\x00-\x20\x7F-\xA0\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-")},selectorTarget(t,e="",n=""){const a=this.getTargetSelectorSuffix(t);return`${e}.${Ne.target+a} ${n}, ${e}.${Ne.circles+a} ${n}`},selectorTargets(t,e){const n=t||[];return n.length?n.map(a=>this.selectorTarget(a,e)):null},selectorLegend(t){return`.${Ne.legendItem+this.getTargetSelectorSuffix(t)}`},selectorLegends(t){return t!=null&&t.length?t.map(e=>this.selectorLegend(e)):null}};class cc extends Map{constructor(e,n=dc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[a,i]of e)this.set(a,i)}get(e){return super.get(Vs(this,e))}has(e){return super.has(Vs(this,e))}set(e,n){return super.set(uc(this,e),n)}delete(e){return super.delete(fc(this,e))}}class l1 extends Set{constructor(e,n=dc){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const a of e)this.add(a)}has(e){return super.has(Vs(this,e))}add(e){return super.add(uc(this,e))}delete(e){return super.delete(fc(this,e))}}function Vs({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):n}function uc({_intern:t,_key:e},n){const a=e(n);return t.has(a)?t.get(a):(t.set(a,n),n)}function fc({_intern:t,_key:e},n){const a=e(n);return t.has(a)&&(n=t.get(a),t.delete(a)),n}function dc(t){return t!==null&&typeof t=="object"?t.valueOf():t}function ta(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function c1(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const hc=Symbol("implicit");function gc(){var t=new cc,e=[],n=[],a=hc;function i(s){let o=t.get(s);if(o===void 0){if(a!==hc)return a;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return i.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new cc;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(a=s,i):a},i.copy=function(){return gc(e,n).unknown(a)},ta.apply(i,arguments),i}const zv=(t,e,n)=>{const a=st(t.cloneNode(!0));return a.attr("id",n).insert("rect",":first-child").attr("width",a.attr("width")).attr("height",a.attr("height")).style("fill",e),{id:n,node:a.node()}};function jv(t){const e=Cn.colorPattern,{body:n}=fn;let a=n[e];if(!a){const i=";",s=t.classed(is.colorPattern,!0).style("background-image");t.classed(is.colorPattern,!1),s.indexOf(i)>-1&&(a=s.replace(/url[^#]*|["'()]|(\s|%20)/g,"").split(i).map(o=>o.trim().replace(/[\"'\s]/g,"")).filter(Boolean),n[e]=a)}return a}const Gv=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"];var Vv={generateColor(){const t=this,{$el:e,config:n}=t,a=n.data_colors,i=n.data_color,s=[];let o=nn(n.color_pattern)?n.color_pattern:gc(jv(e.chart)||Gv).range();const l=o;if(de(n.color_tiles)){const c=n.color_tiles.bind(t.api)(),u=o.map((g,v)=>{const m=g.replace(/[#\(\)\s,]/g,""),S=`${t.state.datetimeId}-pattern-${m}-${v}`;return zv(c[v%c.length],g,S)});o=u.map(g=>`url(#${g.id})`),t.patterns=u}return function(c){var u;const g=c.id||((u=c.data)==null?void 0:u.id)||c,v=t.isTypeOf(g,["line","spline","step"])||!n.data_types[g];let m;return de(a[g])?m=a[g].bind(t.api)(c):a[g]?m=a[g]:(s.indexOf(g)<0&&s.push(g),m=v?l[s.indexOf(g)%l.length]:o[s.indexOf(g)%o.length],a[g]=m),de(i)?i.bind(t.api)(m,c):m}},generateLevelColor(){const t=this,{config:e}=t,n=e.color_pattern,a=e.color_threshold,i=a.unit==="value",s=a.max||100,o=a.values&&a.values.length?a.values:[];return nn(a)?function(l){const c=i?l:l*100/s;let u=n[n.length-1];for(let g=0,v=o.length;g{const l=`${i.datetimeId}-labels-bg${n.getTargetSelectorSuffix(o)}${ze(t)?n.getTargetSelectorSuffix(t):""}`;a.defs.append("filter").attr("x",e.x).attr("y",e.y).attr("width",e.width).attr("height",e.height).attr("id",l).html(` + `)})}},getGradienColortUrl(t){return`url(#${this.state.datetimeId}-gradient${this.getTargetSelectorSuffix(t)})`},updateLinearGradient(){const t=this,{config:e,data:{targets:n},state:{datetimeId:a},$el:{defs:i}}=t;n.forEach(s=>{const o=`${a}-gradient${t.getTargetSelectorSuffix(s.id)}`,l=t.hasPointType()&&e.point_radialGradient,c=t.isAreaType(s)&&"area"||t.isBarType(s)&&"bar";if((l||c)&&i.select(`#${o}`).empty()){const u=t.color(s),g={defs:null,stops:[]};if(l){const{cx:v=.3,cy:m=.3,r:S=.7,stops:I=[[.1,u,0],[.9,u,1]]}=l;g.stops=I,g.defs=i.append("radialGradient").attr("id",`${o}`).attr("cx",v).attr("cy",m).attr("r",S)}else{const v=e.axis_rotated,{x:m=v?[1,0]:[0,0],y:S=v?[0,0]:[0,1],stops:I=[[0,u,1],[1,u,0]]}=e[`${c}_linearGradient`];g.stops=I,g.defs=i.append("linearGradient").attr("id",`${o}`).attr("x1",m[0]).attr("x2",m[1]).attr("y1",S[0]).attr("y2",S[1])}g.stops.forEach(v=>{const[m,S,I]=v,N=de(S)?S.bind(t.api)(s.id):S;g.defs&&g.defs.append("stop").attr("offset",m).attr("stop-color",N||u).attr("stop-opacity",I)})}})},setOverColor(t,e){const n=this,{config:a,$el:{main:i}}=n,s=a.color_onover;let o=t?s:n.color;De(o)?o=({id:l})=>l in s?s[l]:n.color(l):ze(o)?o=()=>s:de(s)&&(o=o.bind(n.api)),i.selectAll(De(e)?`.${Be.arc}${n.getTargetSelectorSuffix(e.id)}`:`.${tn.shape}-${e}`).style("fill",o)}},Xv={getYDomainMinMax(t,e){const n=this,{axis:a,config:i}=n,s=e==="min",o=i.data_groups,l=n.mapToIds(t),c=n.getValuesAsIdKeyed(t);if(o.length>0){const u=n[`has${s?"Negative":"Positive"}ValueInTargets`](t);o.forEach(g=>{const v=g.filter(m=>l.indexOf(m)>=0);if(v.length){const m=v[0],S=a.getId(m);u&&c[m]&&(c[m]=c[m].map(I=>(s?I<0:I>0)?I:0)),v.filter((I,N)=>N>0).forEach(I=>{if(c[I]){const N=a.getId(I);c[I].forEach((M,P)=>{const G=+M,H=s?G>0:G<0;N===S&&!(u&&H)&&(c[m][P]+=G)})}})}})}return Kn(e,Object.keys(c).map(u=>Kn(e,c[u])))},isHiddenTargetWithYDomain(t){const e=this;return e.state.hiddenTargetIds.some(n=>e.axis.getId(n)===t)},getYDomain(t,e,n){const a=this,{axis:i,config:s,scale:o}=a,l=`axis_${e}`;if(a.isStackNormalized())return[0,100];const c=(o==null?void 0:o[e])&&o[e].type==="log",u=t.filter(vt=>i.getId(vt.id)===e),g=n?a.filterByXDomain(u,n):u;if(g.length===0)return a.isHiddenTargetWithYDomain(e)?o[e].domain():e==="y2"?o.y.domain():a.getYDomain(t,"y2",n);const v=s[`${l}_min`],m=s[`${l}_max`],S=s[`${l}_center`],I=s[`${l}_inverted`],N=a.hasDataLabel()&&s.axis_rotated,M=a.hasDataLabel()&&!s.axis_rotated;let P=a.getYDomainMinMax(g,"min"),G=a.getYDomainMinMax(g,"max"),H=[ae.BAR,ae.BUBBLE,ae.SCATTER,...mr.Line].some(vt=>{const gt=vt.indexOf("area")>-1?"area":vt;return a.hasType(vt,g,!0)&&s[`${gt}_zerobased`]});P=Ie(v)?v:Ie(m)?P<=m?P:m-10:P,G=Ie(m)?m:Ie(v)?v<=G?G:v+10:G,isNaN(P)&&(P=0),isNaN(G)&&(G=P),P===G&&(P<0?G=0:P=0);const Y=P>=0&&G>=0,_=P<=0&&G<=0;(Ie(v)&&Y||Ie(m)&&_)&&(H=!1),H&&(Y&&(P=0),_&&(G=0));const K=Math.abs(G-P);let at={top:K*.1,bottom:K*.1};if(Xe(S)){const vt=Math.max(Math.abs(P),Math.abs(G));G=S+vt,P=S-vt}if(N){const vt=Ir(o.y.range()),gt=a.getDataLabelLength(P,G,"width").map(Ft=>Ft/vt);["bottom","top"].forEach((Ft,pt)=>{at[Ft]+=K*(gt[pt]/(1-gt[0]-gt[1]))})}else if(M){const vt=a.getDataLabelLength(P,G,"height");["bottom","top"].forEach((gt,Ft)=>{at[gt]+=a.convertPixelToScale("y",vt[Ft],K)})}at=a.getResettedPadding(at);const $t=s[`${l}_padding`];nn($t)&&["bottom","top"].forEach(vt=>{at[vt]=i.getPadding($t,vt,at[vt],K)}),H&&(Y&&(at.bottom=P),_&&(at.top=-G));const At=c?[P,G].map(vt=>vt<0?0:vt):[P-at.bottom,G+at.top];return I?At.reverse():At},getXDomainMinMax(t,e){var n;const a=this,i=a.config[`axis_x_${e}`],s=Kn(e,t.map(l=>Kn(e,l.values.map(c=>c.x))));let o=De(i)?i.value:i;return o=Xe(o)&&((n=a.axis)!=null&&n.isTimeSeries())?Dn.bind(this)(o):o,De(i)&&i.fit&&(e==="min"&&os)&&(o=void 0),Xe(o)?o:s},getXDomainPadding(t,e){const n=this,{axis:a,config:i}=n,s=i.axis_x_padding,o=a.isTimeSeries()&&e,l=Ir(t);let c;if(a.isCategorized()||o)c=0;else if(n.hasType("bar")){const v=n.getMaxDataCount();c=v>1?l/(v-1)/2:.5}else c=n.getResettedPadding(l*.01);let{left:u=c,right:g=c}=fe(s)?{left:s,right:s}:s;if(s.unit==="px"){const v=Math.abs(l+l*.2);u=a.getPadding(s,"left",c,v),g=a.getPadding(s,"right",c,v)}else{const v=l+u+g;if(o&&v){const m=l/e/v;u=u/v/m,g=g/v/m}}return{left:u,right:g}},getXDomain(t){const e=this,{axis:n,config:a,scale:{x:i}}=e,s=a.axis_x_inverted,o=[e.getXDomainMinMax(t,"min"),e.getXDomainMinMax(t,"max")];let[l=0,c=0]=o;if(i.type!=="log"){const u=n.isCategorized(),g=n.isTimeSeries(),v=e.getXDomainPadding(o);let[m,S]=o;m-S===0&&!u&&(g?(m=new Date(m.getTime()*.5),S=new Date(S.getTime()*1.5)):(m=m===0?1:m*.5,S=S===0?-1:S*1.5)),(m||m===0)&&(l=g?new Date(m.getTime()-v.left):m-v.left),(S||S===0)&&(c=g?new Date(S.getTime()+v.right):S+v.right)}return s?[c,l]:[l,c]},updateXDomain(t,e,n,a,i){var s;const o=this,{config:l,org:c,scale:{x:u,subX:g}}=o,v=l.zoom_enabled;if(n&&(u.domain(i||qr(o.getXDomain(t),!l.axis_x_inverted)),c.xDomain=u.domain(),g.domain(u.domain()),(s=o.brush)==null||s.scale(g)),e){const m=i||!o.brush||Hl(o)?c.xDomain:Yl(o).map(g.invert);u.domain(m)}return(n||e)&&v&&o.zoom.updateScaleExtent(),a&&u.domain(o.trimXDomain(u.orgDomain())),u.domain()},trimXDomain(t){const e=this,n=e.config.axis_x_inverted,a=e.getZoomDomain(),[i,s]=a;return(n?t[0]>=i:t[0]<=i)&&(t[1]=+t[1]+(i-t[0]),t[0]=i),(n?t[1]<=s:t[1]>=s)&&(t[0]=+t[0]-(t[1]-s),t[1]=s),t},getZoomDomain(t="zoom",e=!1){const n=this,{config:a,scale:i,org:s}=n;let[o,l]=e&&i[t]?i[t].domain():s.xDomain;return t==="zoom"&&(Xe(a.zoom_x_min)&&(o=Kn("min",[o,a.zoom_x_min])),Xe(a.zoom_x_max)&&(l=Kn("max",[l,a.zoom_x_max]))),[o,l]},getZoomDomainValue(t){const e=this,{config:n,axis:a}=e;if(a.isCategorized()&&Array.isArray(t)){const i=n.axis_x_inverted;return t.map((o,l)=>Number(o)+(l===0?+i:+!i))}return t},convertPixelToScale(t,e,n){const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l;return t==="x"?l=o?"height":"width":l=o?"width":"height",n*(e/s[l])},withinRange(t,e=[0,0],n){const i=this.config.axis_x_inverted,[s,o]=n;if(Array.isArray(t)){const l=[...t];if(i&&l.reverse(),l[0](u===0?i?+c<=s:+c>=s:i?+c>=o:+c<=o)&&!t.every((g,v)=>g===e[v]))}return!1}};function vc(t,e,n){const{config:a}=t,i=`axis_${e}_tick_format`;return(a[i]?a[i]:t.defaultValueFormat).call(t.api,n)}var Yv={yFormat(t){return vc(this,"y",t)},y2Format(t){return vc(this,"y2",t)},getDefaultValueFormat(){const t=this,{defaultArcValueFormat:e,yFormat:n,y2Format:a}=t,i=t.hasArcType(null,["gauge","polar","radar"]);return function(s,o,l){return(i?e:t.axis&&t.axis.getId(l)==="y2"?a:n).call(t,s,o)}},defaultValueFormat(t){return Fe(t)?t.join("~"):Ie(t)?+t:""},defaultArcValueFormat(t,e){return`${(e*100).toFixed(1)}%`},defaultPolarValueFormat(t){return`${t}`},dataLabelFormat(t){const e=this,n=e.config.data_labels,a=s=>{const o="~";let l=s;return Fe(s)?l=s.join(o):De(s)&&(l=Object.values(s).join(o)),l};let i=a;return de(n.format)?i=n.format:Jn(n.format)&&(n.format[t]?i=n.format[t]===!0?a:n.format[t]:i=()=>""),i.bind(e.api)}};function Ri(t){const e=this,n=e.getDataById(t);return e.levelColor?e.levelColor(n.values[0].value):e.color(n)}function Xs(t,e=!0){var n;const{config:a}=this;let i=(n=a.data_names[t])!=null?n:t;return e&&de(a.legend_format)&&(i=a.legend_format(i)),i}var Hv={initLegend(){const t=this,{config:e,$el:n}=t;t.legendItemTextBox={},t.state.legendHasRendered=!1,e.legend_show?(e.legend_contents_bindto||(n.legend=t.$el.svg.append("g").classed(Ve.legend,!0).attr("transform",t.getTranslate("legend"))),t.updateLegend()):t.state.hiddenLegendIds=t.mapToIds(t.data.targets)},updateLegend(t,e,n){var a;const i=this,{config:s,state:o,scale:l,$el:c}=i,u=e||{withTransform:!1,withTransitionForTransform:!1,withTransition:!1};u.withTransition=pr(u,"withTransition",!0),u.withTransitionForTransform=pr(u,"withTransitionForTransform",!0),s.legend_contents_bindto&&s.legend_contents_template?i.updateLegendTemplate():o.hasTreemap||i.updateLegendElement(t||i.mapToIds(i.data.targets),u,n),(a=c.legend)==null||a.selectAll(`.${Ve.legendItem}`).classed(Ve.legendItemHidden,function(g){const v=!i.isTargetToShow(g);return v&&(this.style.opacity=null),v}),i.updateScales(!1,!l.zoom),i.updateSvgSize(),i.transformAll(u.withTransitionForTransform,n),o.legendHasRendered=!0},updateLegendTemplate(){const t=this,{config:e,$el:n}=t,a=st(e.legend_contents_bindto),i=e.legend_contents_template;if(!a.empty()){const s=t.mapToIds(t.data.targets),o=[];let l="";s.forEach(u=>{const g=de(i)?i.bind(t.api)(u,t.color(u),t.api.data(u)[0].values):bi(i,{COLOR:t.color(u),TITLE:u});g&&(o.push(u),l+=g)});const c=a.html(l).selectAll(function(){return this.childNodes}).data(o);t.setLegendItem(c),n.legend=a}},updateSizeForLegend(t){const e=this,{config:n,state:{isLegendTop:a,isLegendLeft:i,isLegendRight:s,isLegendInset:o,current:l}}=e,{width:c,height:u}=t,g={top:a?e.getCurrentPaddingByDirection("top")+n.legend_inset_y+5.5:l.height-u-e.getCurrentPaddingByDirection("bottom")-n.legend_inset_y,left:i?e.getCurrentPaddingByDirection("left")+n.legend_inset_x+.5:l.width-c-e.getCurrentPaddingByDirection("right")-n.legend_inset_x+.5};e.state.margin3={top:s?0:o?g.top:l.height-u,right:NaN,bottom:0,left:s?l.width-c:o?g.left:0}},transformLegend(t){const e=this,{$el:{legend:n},$T:a}=e;a(n,t).attr("transform",e.getTranslate("legend"))},updateLegendStep(t){this.state.legendStep=t},updateLegendItemWidth(t){this.state.legendItemWidth=t},updateLegendItemHeight(t){this.state.legendItemHeight=t},updateLegendItemColor(t,e){const{legend:n}=this.$el;n&&n.select(`.${Ve.legendItem}-${t} line`).style("stroke",e)},getLegendWidth(){const t=this,{current:{width:e},isLegendRight:n,isLegendInset:a,legendItemWidth:i,legendStep:s}=t.state;return t.config.legend_show?n||a?i*(s+1):e:0},getLegendHeight(){var t;const e=this,{current:n,isLegendRight:a,legendItemHeight:i,legendStep:s}=e.state,o=((t=e.config.padding)==null?void 0:t.mode)==="fit";return e.config.legend_show?a?n.height:(o?10:Math.max(20,i))*(s+1):0},opacityForUnfocusedLegend(t){return t.classed(Ve.legendItemHidden)?null:"0.3"},toggleFocusLegend(t,e){const n=this,{$el:{legend:a},$T:i}=n,s=n.mapToTargetIds(t);a&&i(a.selectAll(`.${Ve.legendItem}`).filter(o=>s.indexOf(o)>=0).classed(We.legendItemFocused,e)).style("opacity",function(){return e?null:n.opacityForUnfocusedLegend.call(n,st(this))})},revertLegend(){const t=this,{$el:{legend:e},$T:n}=t;e&&n(e.selectAll(`.${Ve.legendItem}`).classed(We.legendItemFocused,!1)).style("opacity",null)},showLegend(t){const e=this,{config:n,$el:a,$T:i}=e;n.legend_show||(n.legend_show=!0,a.legend?a.legend.style("visibility",null):e.initLegend(),!e.state.legendHasRendered&&e.updateLegend()),e.removeHiddenLegendIds(t),i(a.legend.selectAll(e.selectorLegends(t)).style("visibility",null)).style("opacity",null)},hideLegend(t){const e=this,{config:n,$el:{legend:a}}=e;n.legend_show&&Wn(t)&&(n.legend_show=!1,a.style("visibility","hidden")),e.addHiddenLegendIds(t),a.selectAll(e.selectorLegends(t)).style("opacity","0").style("visibility","hidden")},getLegendItemTextBox(t,e){const n=this,{cache:a,state:i}=n;let s;const o=Cn.legendItemTextBox;return t&&(s=!i.redrawing&&a.get(o)||{},s[t]||(s[t]=n.getTextRect(e,Ve.legendItem),a.add(o,s)),s=s[t]),s},setLegendItem(t){const e=this,{$el:n,api:a,config:i,state:s}=e,o=s.inputType==="touch",l=e.hasType("gauge"),c=i.boost_useCssRule,u=i.legend_item_interaction;t.attr("class",function(g){const v=st(this);return(!v.empty()&&v.attr("class")||"")+e.generateClass(Ve.legendItem,g)}).style("visibility",g=>e.isLegendToShow(g)?null:"hidden"),i.interaction_enabled&&(c&&[[`.${Ve.legendItem}`,"cursor:pointer"],[`.${Ve.legendItem} text`,"pointer-events:none"],[`.${Ve.legendItemPoint} text`,"pointer-events:none"],[`.${Ve.legendItemTile}`,"pointer-events:none"],[`.${Ve.legendItemEvent}`,"fill-opacity:0"]].forEach(g=>{const[v,m]=g;e.setCssRule(!1,v,[m])(n.legend)}),t.on(u.dblclick?"dblclick":"click",u||de(i.legend_item_onclick)?function(g,v){if(!Ze(i.legend_item_onclick,a,v)){const{altKey:m,target:S,type:I}=g;I==="dblclick"||m?s.hiddenTargetIds.length&&S.parentNode.getAttribute("class").indexOf(Ve.legendItemHidden)===-1?a.show():(a.hide(),a.show(v)):(a.toggle(v),st(this).classed(We.legendItemFocused,!1))}o&&e.hideTooltip()}:null),!o&&t.on("mouseout",u||de(i.legend_item_onout)?function(g,v){Ze(i.legend_item_onout,a,v)||(st(this).classed(We.legendItemFocused,!1),l&&e.undoMarkOverlapped(e,`.${Ln.gaugeValue}`),e.api.revert())}:null).on("mouseover",u||de(i.legend_item_onover)?function(g,v){Ze(i.legend_item_onover,a,v)||(st(this).classed(We.legendItemFocused,!0),l&&e.markOverlapped(v,e,`.${Ln.gaugeValue}`),!s.transiting&&e.isTargetToShow(v)&&a.focus(v))}:null),!t.empty()&&t.on("click mouseout mouseover")&&t.style("cursor",e.getStylePropValue("pointer")))},updateLegendElement(t,e){const n=this,{config:a,state:i,$el:{legend:s},$T:o}=n,c=a.legend_item_tile_type!=="circle",u=a.legend_item_tile_r,g={width:c?a.legend_item_tile_width:u*2,height:c?a.legend_item_tile_height:u*2},v={padding:{top:4,right:10},max:{width:0,height:0},posMin:10,step:0,tileWidth:g.width+5,totalLength:0},m={offsets:{},widths:{},heights:{},margins:[0],steps:{}};let S,I,N;const M=t.filter(K=>!Xe(a.data_names[K])||a.data_names[K]!==null),P=e.withTransition,G=n.getUpdateLegendPositions(M,v,m);i.isLegendInset&&(v.step=a.legend_inset_step?a.legend_inset_step:M.length,n.updateLegendStep(v.step)),i.isLegendRight?(S=K=>v.max.width*m.steps[K],I=K=>m.margins[m.steps[K]]+m.offsets[K]):i.isLegendInset?(S=K=>v.max.width*m.steps[K]+10,I=K=>m.margins[m.steps[K]]+m.offsets[K]):(S=K=>m.margins[m.steps[K]]+m.offsets[K],I=K=>v.max.height*m.steps[K]);const H={xText:(K,at)=>S(K,at)+4+g.width,xRect:(K,at)=>S(K,at),x1Tile:(K,at)=>S(K,at)-2,x2Tile:(K,at)=>S(K,at)-2+g.width,yText:(K,at)=>I(K,at)+9,yRect:(K,at)=>I(K,at)-5,yTile:(K,at)=>I(K,at)+4};n.generateLegendItem(M,g,G,H),N=s.select(`.${Ve.legendBackground} rect`),i.isLegendInset&&v.max.width>0&&N.size()===0&&(N=s.insert("g",`.${Ve.legendItem}`).attr("class",Ve.legendBackground).append("rect")),a.legend_tooltip&&s.selectAll("title").data(M).text(K=>Xs.bind(n)(K,!1));const Y=s.selectAll("text").data(M).text(K=>Xs.bind(n)(K)).each(function(K,at){G(this,K,at)});o(Y,P).attr("x",H.xText).attr("y",H.yText);const _=s.selectAll(`rect.${Ve.legendItemEvent}`).data(M);o(_,P).attr("width",K=>m.widths[K]).attr("height",K=>m.heights[K]).attr("x",H.xRect).attr("y",H.yRect),n.updateLegendItemPos(M,P,H),N&&o(N,P).attr("height",n.getLegendHeight()-12).attr("width",v.max.width*(v.step+1)+10),n.updateLegendItemWidth(v.max.width),n.updateLegendItemHeight(v.max.height),n.updateLegendStep(v.step)},getUpdateLegendPositions(t,e,n){const a=this,{config:i,state:s}=a,o=s.isLegendRight||s.isLegendInset;return function(l,c,u){const g=u===0,v=u===t.length-1,m=a.getLegendItemTextBox(c,l),S=m.width+e.tileWidth+(v&&!o?0:e.padding.right)+i.legend_padding,I=m.height+e.padding.top,N=o?I:S,M=o?a.getLegendHeight():a.getLegendWidth();let P;const G=function(Y,_){_||(P=(M-e.totalLength-N)/2,P=e.max.width)&&(e.max.width=S),(!e.max.height||I>=e.max.height)&&(e.max.height=I);const H=o?e.max.height:e.max.width;i.legend_equally?(Object.keys(n.widths).forEach(Y=>n.widths[Y]=e.max.width),Object.keys(n.heights).forEach(Y=>n.heights[Y]=e.max.height),P=(M-H*t.length)/2,PG(Y))):G(c,!0)):G(c)}},generateLegendItem(t,e,n,a){const i=this,{config:s,state:o,$el:{legend:l}}=i,c=s.legend_usePoint,u=s.legend_item_tile_r,g=s.legend_item_tile_type,v=g!=="circle",m=o.isLegendRight||o.isLegendInset,S=-200,I=l.selectAll(`.${Ve.legendItem}`).data(t).enter().append("g");if(i.setLegendItem(I),s.legend_tooltip&&I.append("title").text(N=>N),I.append("text").text(N=>Xs.bind(i)(N)).each(function(N,M){n(this,N,M)}).style("pointer-events",i.getStylePropValue("none")).attr("x",m?a.xText:S).attr("y",m?S:a.yText),I.append("rect").attr("class",Ve.legendItemEvent).style("fill-opacity",i.getStylePropValue("0")).attr("x",m?a.xRect:S).attr("y",m?S:a.yRect),c){const N=[];I.append(M=>{const P=nn(s.point_pattern)?s.point_pattern:[s.point_type];N.indexOf(M)===-1&&N.push(M);let G=P[N.indexOf(M)%P.length];return G==="rectangle"&&(G="rect"),fn.createElementNS(ne.svg,"hasValidPointType"in i&&i.hasValidPointType(G)?G:"use")}).attr("class",Ve.legendItemPoint).style("fill",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).attr("href",(M,P,G)=>{const Y=G[P].nodeName.toLowerCase(),_=i.getTargetSelectorSuffix(M);return Y==="use"?`#${o.datetimeId}-point${_}`:void 0})}else I.append(v?"line":g).attr("class",Ve.legendItemTile).style("stroke",Ri.bind(i)).style("pointer-events",i.getStylePropValue("none")).call(N=>{g==="circle"?N.attr("r",u).style("fill",Ri.bind(i)).attr("cx",m?a.x2Tile:S).attr("cy",m?S:a.yTile):v&&N.attr("stroke-width",e.height).attr("x1",m?a.x1Tile:S).attr("y1",m?S:a.yTile).attr("x2",m?a.x2Tile:S).attr("y2",m?S:a.yTile)})},updateLegendItemPos(t,e,n){const a=this,{config:i,$el:{legend:s},$T:o}=a,l=i.legend_usePoint,c=i.legend_item_tile_type,u=c!=="circle";if(l){const g=s.selectAll(`.${Ve.legendItemPoint}`).data(t);o(g,e).each(function(){const v=this.nodeName.toLowerCase(),m=i.point_r;let S="x",I="y",N=2,M=2.5,P=null,G=null,H=null;if(v==="circle"){const Y=m*.2;S="cx",I="cy",P=m+Y,N=m*2,M=-Y}else if(v==="rect"){const Y=m*2.5;G=Y,H=Y,M=3}st(this).attr(S,Y=>n.x1Tile(Y)+N).attr(I,Y=>n.yTile(Y)-M).attr("r",P).attr("width",G).attr("height",H)})}else{const g=s.selectAll(`.${Ve.legendItemTile}`).data(t);o(g,e).style("stroke",Ri.bind(a)).call(v=>{c==="circle"?v.attr("cx",m=>{const S=n.x2Tile(m);return S-(S-n.x1Tile(m))/2}).attr("cy",n.yTile):u&&v.attr("x1",n.x1Tile).attr("y1",n.yTile).attr("x2",n.x2Tile).attr("y2",n.yTile)})}}},Wv={redraw(t={}){var e,n,a,i;const s=this,{config:o,state:l,$el:c}=s,{main:u,treemap:g}=c;l.redrawing=!0;const v=s.filterTargetsToShow(s.data.targets),{flow:m,initializing:S}=t,I=s.getWithOption(t),N=I.Transition?o.transition_duration:0,M=I.TransitionForExit?N:0,P=I.TransitionForAxis?N:0,G=(e=s.axis)==null?void 0:e.generateTransitions(P);s.updateSizes(S),I.Legend&&o.legend_show?(t.withTransition=!!N,!g&&s.updateLegend(s.mapToIds(s.data.targets),t,G)):I.Dimension&&s.updateDimension(!0),o.data_empty_label_text&&u.select(`text.${An.text}.${Se.empty}`).attr("x",l.width/2).attr("y",l.height/2).text(o.data_empty_label_text).style("display",v.length?"none":null),l.hasAxis?(s.axis.redrawAxis(v,I,G,m,S),s.hasGrid()&&s.updateGrid(),o.regions.length&&s.updateRegion(),["bar","candlestick","line","area"].forEach(H=>{const Y=In(H);(/^(line|area)$/.test(H)&&s.hasTypeOf(Y)||s.hasType(H))&&s[`update${Y}`](I.TransitionForExit)}),c.text&&u.selectAll(`.${ke.selectedCircles}`).filter(s.isBarType.bind(s)).selectAll("circle").remove(),o.interaction_enabled&&!m&&I.EventRect&&(s.redrawEventRect(),(n=s.bindZoomEvent)==null||n.call(s))):(c.arcs&&s.redrawArc(N,M,I.Transform),c.radar&&s.redrawRadar(),c.polar&&s.redrawPolar(),c.funnel&&s.redrawFunnel(),g&&s.updateTreemap(M)),!l.resizing&&!g&&(s.hasPointType()||l.hasRadar)?s.updateCircle():(a=s.hasLegendDefsPoint)!=null&&a.call(s)&&s.data.targets.forEach(s.point("create",this)),s.hasDataLabel()&&!s.hasArcType(null,["radar"])&&s.updateText(),(i=s.redrawTitle)==null||i.call(s),S&&s.updateTypesElements(),s.generateRedrawList(v,m,N,I.Subchart),s.updateTooltipOnRedraw(),s.callPluginHook("$redraw",t,N)},generateRedrawList(t,e,n,a){const i=this,{config:s,state:o}=i,l=i.getDrawShape();o.hasAxis&&s.subchart_show&&i.redrawSubchart(a,n,l);const c=e&&i.generateFlow({targets:t,flow:e,duration:e.duration,shape:l,xv:i.xv.bind(i)}),u=(n||c)&&Ma(),g=i.getRedrawList(l,e,c,u),v=()=>{c&&c(),o.redrawing=!1,Ze(s.onrendered,i.api)};if(v)if(u&&g.length){const m=ql();Pl().duration(n).each(()=>{g.reduce((S,I)=>S.concat(I),[]).forEach(S=>m.add(S))}).call(m,v)}else o.transiting||v();i.mapToIds(i.data.targets).forEach(m=>{o.withoutFadeIn[m]=!0})},getRedrawList(t,e,n,a){const i=this,{config:s,state:{hasAxis:o,hasRadar:l,hasTreemap:c},$el:{grid:u}}=i,{cx:g,cy:v,xForText:m,yForText:S}=t.pos,I=[];return o&&((s.grid_x_lines.length||s.grid_y_lines.length)&&I.push(i.redrawGrid(a)),s.regions.length&&I.push(i.redrawRegion(a)),Object.keys(t.type).forEach(N=>{const M=In(N),P=t.type[N];(/^(area|line)$/.test(N)&&i.hasTypeOf(M)||i.hasType(N))&&I.push(i[`redraw${M}`](P,a))}),!e&&u.main&&I.push(i.updateGridFocus())),(!i.hasArcType()||l)&&nn(s.data_labels)&&s.data_labels!==!1&&I.push(i.redrawText(m,S,e,a)),(i.hasPointType()||l)&&!i.isPointFocusOnly()&&i.redrawCircle&&I.push(i.redrawCircle(g,v,a,n)),c&&I.push(i.redrawTreemap(a)),I},updateAndRedraw(t={}){const e=this,{config:n,state:a}=e;let i;t.withTransition=pr(t,"withTransition",!0),t.withTransform=pr(t,"withTransform",!1),t.withLegend=pr(t,"withLegend",!1),t.withUpdateXDomain=!0,t.withUpdateOrgXDomain=!0,t.withTransitionForExit=!1,t.withTransitionForTransform=pr(t,"withTransitionForTransform",t.withTransition),t.withLegend&&n.legend_show||(a.hasAxis&&(i=e.axis.generateTransitions(t.withTransitionForAxis?n.transition_duration:0)),e.updateScales(),e.updateSvgSize(),e.transformAll(t.withTransitionForTransform,i)),e.redraw(t,i)}};const Kv=Math.sqrt(50),Zv=Math.sqrt(10),kv=Math.sqrt(2);function Oi(t,e,n){const a=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(a)),s=a/Math.pow(10,i),o=s>=Kv?10:s>=Zv?5:s>=kv?2:1;let l,c,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(t*u),c=Math.round(e*u),l/ue&&--c,u=-u):(u=Math.pow(10,i)*o,l=Math.round(t/u),c=Math.round(e/u),l*ue&&--c),c0))return[];if(t===e)return[t];const a=e=i))return[];const l=s-i+1,c=new Array(l);if(a)if(o<0)for(let u=0;ue?1:t>=e?0:NaN}function Jv(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Ks(t){let e,n,a;t.length!==2?(e=Ii,n=(l,c)=>Ii(t(l),c),a=(l,c)=>t(l)-c):(e=t===Ii||t===Jv?t:Qv,n=t,a=t);function i(l,c,u=0,g=l.length){if(u>>1;n(l[v],c)<0?u=v+1:g=v}while(u>>1;n(l[v],c)<=0?u=v+1:g=v}while(uu&&a(l[v-1],c)>-a(l[v],c)?v-1:v}return{left:i,center:o,right:s}}function Qv(){return 0}function _v(t){return t===null?NaN:+t}function*u1(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let a of t)(a=e(a,++n,t))!=null&&(a=+a)>=a&&(yield a)}}const pc=Ks(Ii),qv=pc.right,f1=pc.left,d1=Ks(_v).center;var tp=qv;function ep(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function np(t){return function(){return t}}function rp(t){return+t}var mc=[0,1];function ea(t){return t}function Zs(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:np(isNaN(e)?NaN:.5)}function ap(t,e){var n;return t>e&&(n=t,t=e,e=n),function(a){return Math.max(t,Math.min(e,a))}}function ip(t,e,n){var a=t[0],i=t[1],s=e[0],o=e[1];return i2?sp:ip,c=u=null,v}function v(m){return m==null||isNaN(m=+m)?s:(c||(c=l(t.map(a),e,n)))(a(o(m)))}return v.invert=function(m){return o(i((u||(u=l(e,t.map(a),Yn)))(m)))},v.domain=function(m){return arguments.length?(t=Array.from(m,rp),g()):t.slice()},v.range=function(m){return arguments.length?(e=Array.from(m),g()):e.slice()},v.rangeRound=function(m){return e=Array.from(m),n=ep,g()},v.clamp=function(m){return arguments.length?(o=m?!0:ea,g()):o!==ea},v.interpolate=function(m){return arguments.length?(n=m,g()):n},v.unknown=function(m){return arguments.length?(s=m,v):s},function(m,S){return a=m,i=S,g()}}function yc(){return ks()(ea,ea)}var op=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Da(t){if(!(e=op.exec(t)))throw new Error("invalid format: "+t);var e;return new Js({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Da.prototype=Js.prototype;function Js(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}Js.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function lp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Pi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,a=t.slice(0,n);return[a.length>1?a[0]+a.slice(2):a,+t.slice(n+1)]}function na(t){return t=Pi(Math.abs(t)),t?t[1]:NaN}function cp(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(na(e)/3)))*3-na(Math.abs(t)))}function up(t,e){return function(n,a){for(var i=n.length,s=[],o=0,l=t[0],c=0;i>0&&l>0&&(c+l+1>a&&(l=Math.max(1,a-c)),s.push(n.substring(i-=l,i+l)),!((c+=l+1)>a));)l=t[o=(o+1)%t.length];return s.reverse().join(e)}}function fp(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}function dp(t){t:for(var e=t.length,n=1,a=-1,i;n0&&(a=0);break}return a>0?t.slice(0,a)+t.slice(i+1):t}var xc;function hp(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1],s=i-(xc=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=a.length;return s===o?a:s>o?a+new Array(s-o+1).join("0"):s>0?a.slice(0,s)+"."+a.slice(s):"0."+new Array(1-s).join("0")+Pi(t,Math.max(0,e+s-1))[0]}function Tc(t,e){var n=Pi(t,e);if(!n)return t+"";var a=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+a:a.length>i+1?a.slice(0,i+1)+"."+a.slice(i+1):a+new Array(i-a.length+2).join("0")}var $c={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:lp,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>Tc(t*100,e),r:Tc,s:hp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Sc(t){return t}var Ac=Array.prototype.map,bc=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function gp(t){var e=t.grouping===void 0||t.thousands===void 0?Sc:up(Ac.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",a=t.currency===void 0?"":t.currency[1]+"",i=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Sc:fp(Ac.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(v){v=Da(v);var m=v.fill,S=v.align,I=v.sign,N=v.symbol,M=v.zero,P=v.width,G=v.comma,H=v.precision,Y=v.trim,_=v.type;_==="n"?(G=!0,_="g"):$c[_]||(H===void 0&&(H=12),Y=!0,_="g"),(M||m==="0"&&S==="=")&&(M=!0,m="0",S="=");var K=N==="$"?n:N==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",at=N==="$"?a:/[%p]/.test(_)?o:"",$t=$c[_],At=/[defgprs%]/.test(_);H=H===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,H)):Math.max(0,Math.min(20,H));function vt(gt){var Ft=K,pt=at,k,Et,ut;if(_==="c")pt=$t(gt)+pt,gt="";else{gt=+gt;var Rt=gt<0||1/gt<0;if(gt=isNaN(gt)?c:$t(Math.abs(gt),H),Y&&(gt=dp(gt)),Rt&&+gt==0&&I!=="+"&&(Rt=!1),Ft=(Rt?I==="("?I:l:I==="-"||I==="("?"":I)+Ft,pt=(_==="s"?bc[8+xc/3]:"")+pt+(Rt&&I==="("?")":""),At){for(k=-1,Et=gt.length;++kut||ut>57){pt=(ut===46?i+gt.slice(k+1):gt.slice(k))+pt,gt=gt.slice(0,k);break}}}G&&!M&&(gt=e(gt,1/0));var jt=Ft.length+gt.length+pt.length,zt=jt>1)+Ft+gt+pt+zt.slice(jt);break;default:gt=zt+Ft+gt+pt;break}return s(gt)}return vt.toString=function(){return v+""},vt}function g(v,m){var S=u((v=Da(v),v.type="f",v)),I=Math.max(-8,Math.min(8,Math.floor(na(m)/3)))*3,N=Math.pow(10,-I),M=bc[8+I/3];return function(P){return S(N*P)+M}}return{format:u,formatPrefix:g}}var wi,Qs,Ec;vp({thousands:",",grouping:[3],currency:["$",""]});function vp(t){return wi=gp(t),Qs=wi.format,Ec=wi.formatPrefix,wi}function pp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,na(e)-na(t))+1}function mp(t){return Math.max(0,-na(Math.abs(t)))}function yp(t,e,n,a){var i=Ws(t,e,n),s;switch(a=Da(a==null?",f":a),a.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return a.precision==null&&!isNaN(s=cp(i,o))&&(a.precision=s),Ec(a,o)}case"":case"e":case"g":case"p":case"r":{a.precision==null&&!isNaN(s=pp(i,Math.max(Math.abs(t),Math.abs(e))))&&(a.precision=s-(a.type==="e"));break}case"f":case"%":{a.precision==null&&!isNaN(s=mp(i))&&(a.precision=s-(a.type==="%")*2);break}}return Qs(a)}function Rc(t){var e=t.domain;return t.ticks=function(n){var a=e();return Ys(a[0],a[a.length-1],n==null?10:n)},t.tickFormat=function(n,a){var i=e();return yp(i[0],i[i.length-1],n==null?10:n,a)},t.nice=function(n){n==null&&(n=10);var a=e(),i=0,s=a.length-1,o=a[i],l=a[s],c,u,g=10;for(l0;){if(u=Hs(o,l,n),u===c)return a[i]=o,a[s]=l,e(a);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;c=u}return t},t}function Mi(){var t=yc();return t.copy=function(){return Ci(t,Mi())},ta.apply(t,arguments),Rc(t)}function Oc(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ic(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function xp(t){var e=1,n=t(Oc(e),Ic(e));return n.constant=function(a){return arguments.length?t(Oc(e=+a),Ic(e)):e},Rc(n)}function Cc(){var t=xp(ks());return t.copy=function(){return Ci(t,Cc()).constant(t.constant())},ta.apply(t,arguments)}function Pc(t,e){t=t.slice();var n=0,a=t.length-1,i=t[n],s=t[a],o;return sMath.pow(t,e)}function bp(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Lc(t){return(e,n)=>-t(-e,n)}function Ep(t){const e=t(wc,Mc),n=e.domain;let a=10,i,s;function o(){return i=bp(a),s=Ap(a),n()[0]<0?(i=Lc(i),s=Lc(s),t(Tp,$p)):t(wc,Mc),e}return e.base=function(l){return arguments.length?(a=+l,o()):a},e.domain=function(l){return arguments.length?(n(l),o()):n()},e.ticks=l=>{const c=n();let u=c[0],g=c[c.length-1];const v=g0){for(;m<=S;++m)for(I=1;Ig)break;P.push(N)}}else for(;m<=S;++m)for(I=a-1;I>=1;--I)if(N=m>0?I/s(-m):I*s(m),!(Ng)break;P.push(N)}P.length*2{if(l==null&&(l=10),c==null&&(c=a===10?"s":","),typeof c!="function"&&(!(a%1)&&(c=Da(c)).precision==null&&(c.trim=!0),c=Qs(c)),l===1/0)return c;const u=Math.max(1,a*l/e.ticks().length);return g=>{let v=g/s(Math.round(i(g)));return v*an(Pc(n(),{floor:l=>s(Math.floor(i(l))),ceil:l=>s(Math.ceil(i(l)))})),e}function Dc(){const t=Ep(ks()).domain([1,10]);return t.copy=()=>Ci(t,Dc()).base(t.base()),ta.apply(t,arguments),t}const Li=Je(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Li.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?Je(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Li);const h1=Li.range,Lr=Je(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Bn)},(t,e)=>(e-t)/Bn,t=>t.getUTCSeconds()),g1=Lr.range,_s=Je(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn)},(t,e)=>{t.setTime(+t+e*Sn)},(t,e)=>(e-t)/Sn,t=>t.getMinutes()),v1=_s.range,qs=Je(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*Sn)},(t,e)=>(e-t)/Sn,t=>t.getUTCMinutes()),p1=qs.range,to=Je(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Bn-t.getMinutes()*Sn)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getHours()),m1=to.range,eo=Je(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Mn)},(t,e)=>(e-t)/Mn,t=>t.getUTCHours()),y1=eo.range,no=Je(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),x1=no.range,ro=Je(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),T1=ro.range;function Nc(t,e,n,a,i,s){const o=[[Lr,1,Bn],[Lr,5,5*Bn],[Lr,15,15*Bn],[Lr,30,30*Bn],[s,1,Sn],[s,5,5*Sn],[s,15,15*Sn],[s,30,30*Sn],[i,1,Mn],[i,3,3*Mn],[i,6,6*Mn],[i,12,12*Mn],[a,1,tr],[a,2,2*tr],[n,1,qi],[e,1,Io],[e,3,3*Io],[t,1,ts]];function l(u,g,v){const m=gM).right(o,m);if(S===o.length)return t.every(Ws(u/ts,g/ts,v));if(S===0)return Li.every(Math.max(Ws(u,g,v),1));const[I,N]=o[m/o[S-1][2]n.axis.x.tickOffset()),i=n.config.axis_x_inverted,s=function(o,l){const c=t(o)+a();return l?c:Math.ceil(c)};for(const o in t)s[o]=t[o];return s.orgDomain=()=>t.domain(),s.orgScale=()=>t,n.axis.isCategorized()&&(s.domain=function(o){let l=o;return arguments.length?(t.domain(l),s):(l=this.orgDomain(),i?[l[0]+1,l[1]]:[l[0],l[1]+1])}),s},updateScales(t,e=!0){var n,a;const i=this,{axis:s,config:o,format:l,org:c,scale:u,state:{current:g,width:v,height:m,width2:S,height2:I,hasAxis:N,hasTreemap:M}}=i;if(N){const P=o.axis_rotated,G=i.getResettedPadding(1),H={x:P?G:0,y:P?0:m,subX:P?1:0,subY:P?0:I},Y={x:P?m:v,y:P?v:G,subX:P?m:v,subY:P?S:1},_=e&&((n=u.x)==null?void 0:n.orgDomain()),K=e&&c.xDomain;u.x=i.getXScale(H.x,Y.x,_,()=>s.x.tickOffset()),u.subX=i.getXScale(H.x,Y.x,K,at=>{var $t;return at%1?0:(($t=s.subX)!=null?$t:s.x).tickOffset()}),l.xAxisTick=s.getXAxisTickFormat(),l.subXAxisTick=s.getXAxisTickFormat(!0),s.setAxis("x",u.x,o.axis_x_tick_outer,t),o.subchart_show&&s.setAxis("subX",u.subX,o.axis_x_tick_outer,t),u.y=i.getYScale("y",H.y,Y.y,u.y?u.y.domain():o.axis_y_default),u.subY=i.getYScale("y",H.subY,Y.subY,u.subY?u.subY.domain():o.axis_y_default),s.setAxis("y",u.y,o.axis_y_tick_outer,t),o.axis_y2_show&&(u.y2=i.getYScale("y2",H.y,Y.y,u.y2?u.y2.domain():o.axis_y2_default),u.subY2=i.getYScale("y2",H.subY,Y.subY,u.subY2?u.subY2.domain():o.axis_y2_default),s.setAxis("y2",u.y2,o.axis_y2_tick_outer,t))}else if(M){const P=i.getCurrentPadding();u.x=Mi().rangeRound([P.left,g.width-P.right]),u.y=Mi().rangeRound([P.top,g.height-P.bottom])}else(a=i.updateArc)==null||a.call(i)},xx(t){const e=this,{config:n,scale:{x:a,zoom:i}}=e,s=n.zoom_enabled&&i?i:a;return t?s(Ie(t.x)?t.x:t):null},xv(t){const e=this,{axis:n,config:a,scale:{x:i,zoom:s}}=e,o=a.zoom_enabled&&s?s:i;let l=e.getBaseValue(t);return n.isTimeSeries()?l=Dn.call(e,l):n.isCategorized()&&ze(l)&&(l=a.axis_x_categories.indexOf(l)),Math.ceil(o(l))},yv(t){const e=this,{scale:{y:n,y2:a}}=e,i=t.axis&&t.axis==="y2"?a:n;return Math.ceil(i(e.getBaseValue(t)))},subxx(t){return t?this.scale.subX(t.x):null}},Np={setContainerSize(){const t=this,{state:e}=t;e.current.width=t.getCurrentWidth(),e.current.height=t.getCurrentHeight()},getCurrentWidth(){const t=this;return t.config.size_width||t.getParentWidth()},getCurrentHeight(){const t=this,{config:e}=t,n=e.size_height||t.getParentHeight();return n>0?n:320/(t.hasType("gauge")&&!e.gauge_fullCircle?2:1)},getParentRectValue(t){const e=`offset${In(t)}`;let n=this.$el.chart.node(),a=0;for(;a<30&&n&&n.tagName!=="BODY";){try{a=n.getBoundingClientRect()[t]}catch(s){e in n&&(a=n[e])}n=n.parentNode}const i=fn.body[e];return a>i&&(a=i),a},getParentWidth(){return this.getParentRectValue("width")},getParentHeight(){const t=this.$el.chart.style("height");let e=0;return t&&(e=/px$/.test(t)?parseInt(t,10):this.getParentRectValue("height")),e},getSvgLeft(t){const e=this,{config:n,state:{hasAxis:a},$el:i}=e,s=n.axis_rotated,o=s||!s&&!n.axis_y_inner,l=s?on.axisX:on.axisY,c=i.main.select(`.${l}`).node(),u=a&&n[`axis_${s?"x":"y"}_label`];let g=0;if(a&&(ze(u)||ze(u.text)||/^inner-/.test(u==null?void 0:u.position))){const N=i.main.select(`.${l}-label`);N.empty()||(g=N.node().getBoundingClientRect().left)}const v=c&&o?c.getBoundingClientRect():{right:0},m=i.chart.node().getBoundingClientRect().left+g,S=e.hasArcType(),I=v.right-m-(S?0:e.getCurrentPaddingByDirection("left",t));return I>0?I:0},updateDimension(t){var e;const n=this,{config:a,state:{hasAxis:i},$el:s}=n;i&&!t&&n.axis.x&&a.axis_rotated&&((e=n.axis.subX)==null||e.create(s.axis.subX)),n.updateScales(t),n.updateSvgSize(),n.transformAll(!1)},updateSvgSize(){const t=this,{state:{clip:e,current:n,hasAxis:a,width:i,height:s},$el:{svg:o}}=t;if(o.attr("width",n.width).attr("height",n.height),a){const l=o.select(`.${ko.brush} .overlay`),c={width:0,height:0};l.size()&&(c.width=+l.attr("width"),c.height=+l.attr("height")),o.selectAll([`#${e.id}`,`#${e.idGrid}`]).select("rect").attr("width",i).attr("height",s),o.select(`#${e.idXAxis}`).select("rect").call(t.setXAxisClipPath.bind(t)),o.select(`#${e.idYAxis}`).select("rect").call(t.setYAxisClipPath.bind(t)),e.idSubchart&&o.select(`#${e.idSubchart}`).select("rect").attr("width",i).attr("height",c.height)}},getCurrentPaddingByDirection(t,e=!1,n=!1){var a;const i=this,{config:s,$el:o,state:{hasAxis:l}}=i,c=s.axis_rotated,u=((a=s.padding)==null?void 0:a.mode)==="fit",g=fe(s[`padding_${t}`])?s[`padding_${t}`]:void 0,v=l?{top:c?"y2":null,bottom:c?"y":"x",left:c?"x":"y",right:c?null:"y2"}[t]:null,m=/^(left|right)$/.test(t),S=v&&s[`axis_${v}_inner`],I=v&&s[`axis_${v}_show`],N=v?s[`axis_${v}_axes`].length:0;let M=v?m?i.getAxisWidthByAxisId(v,e):i.getHorizontalAxisHeight(v):0;const P=20;let G=0;!u&&m&&(M=Kg(M));let H=l&&m&&(S||en(g)&&!I)?0:u?(I?M:0)+(g!=null?g:0):en(g)?M:g;return m&&l?(v&&(u||S)&&s[`axis_${v}_label`].text&&(H+=i.axis.getAxisLabelPosition(v).isOuter?P:0),t==="right"?(H+=c?!u&&en(g)?10:2:!I||S?u?2:1:0,H+=n?i.axis.getXAxisTickTextY2Overflow(P):0):t==="left"&&c&&en(g)&&(H=s.axis_x_show?u?M:Math.max(M,40):1)):t==="top"?(o.title&&o.title.node()&&(H+=i.getTitlePadding()),G=c&&!S?N:0):t==="bottom"&&l&&c&&!I&&(H+=1),H+M*N-G},getCurrentPadding(t=!1){const e=this,[n,a,i,s]=["top","bottom","left","right"].map(o=>e.getCurrentPaddingByDirection(o,null,t));return{top:n,bottom:a,left:i,right:s}},getResettedPadding(t){const e=this,{config:n}=e,a=fe(t);let i=a?0:{};return n.padding===!1?!a&&Object.keys(t).forEach(s=>{i[s]=!Wn(n.data_labels)&&n.data_labels!==!1&&s==="top"?t[s]:0}):i=t,i},updateSizes(t){var e,n,a,i,s;const o=this,{config:l,state:c,$el:{legend:u}}=o,g=l.axis_rotated,v=o.hasArcType()||c.hasFunnel||c.hasTreemap,m=((e=l.padding)==null?void 0:e.mode)==="fit";!t&&o.setContainerSize();const S={width:u?o.getLegendWidth():0,height:u?o.getLegendHeight():0};!v&&l.axis_x_show&&l.axis_x_tick_autorotate&&o.updateXAxisTickClip();const I={right:l.legend_show&&c.isLegendRight?o.getLegendWidth()+(m?0:20):0,bottom:!l.legend_show||c.isLegendRight||c.isLegendInset?0:S.height},N=g||v?0:o.getHorizontalAxisHeight("x"),M=l.subchart_axis_x_show&&l.subchart_axis_x_tick_text_show?N:30,P=l.subchart_show&&!v?l.subchart_size_height+M:0,G=o.hasType("gauge")&&l.arc_needle_show&&!l.gauge_fullCircle&&!l.gauge_label_show?10:0,H=o.getCurrentPadding(!0);if(c.margin=!v&&g?{top:H.top,right:v?0:H.right+I.right,bottom:I.bottom+H.bottom,left:P+(v?0:H.left)}:{top:(m?0:4)+H.top,right:v?0:H.right+I.right,bottom:G+P+I.bottom+H.bottom,left:v?0:H.left},c.margin=o.getResettedPadding(c.margin),c.margin2=g?{top:c.margin.top,right:NaN,bottom:20+I.bottom,left:o.state.rotatedPadding.left}:{top:c.current.height-P-I.bottom,right:NaN,bottom:M+I.bottom,left:c.margin.left},c.margin3={top:0,right:NaN,bottom:0,left:0},(n=o.updateSizeForLegend)==null||n.call(o,S),c.width=c.current.width-c.margin.left-c.margin.right,c.height=c.current.height-c.margin.top-c.margin.bottom,c.width<0&&(c.width=0),c.height<0&&(c.height=0),c.width2=g?c.margin.left-c.rotatedPadding.left-c.rotatedPadding.right:c.width,c.height2=g?c.height:c.current.height-c.margin2.top-c.margin2.bottom,c.width2<0&&(c.width2=0),c.height2<0&&(c.height2=0),o.hasArcType()){const Y=o.hasType("gauge"),_=l.legend_show&&c.isLegendRight,K=(a=c.hasRadar&&o.cache.get(Cn.radarTextWidth))!=null?a:0;c.arcWidth=c.width-(_?S.width+10:0)-K,c.arcHeight=c.height-(_&&!Y?0:10),(i=l.arc_rangeText_values)!=null&&i.length&&(Y?(c.arcWidth-=25,c.arcHeight-=10,c.margin.left+=10):(c.arcHeight-=20,c.margin.top+=10)),Y&&!l.gauge_fullCircle&&(c.arcHeight+=c.height-o.getPaddingBottomForGauge()),(s=o.updateRadius)==null||s.call(o)}c.isLegendRight&&v&&(c.margin3.left=c.arcWidth/2+c.radiusExpanded*1.1)}},Fp={setCssRule(t,e,n,a){const i=this,{config:s,state:{cssRule:o,style:l}}=i;return s.boost_useCssRule?c=>{c.each(u=>{const g=a&&(a==null?void 0:a.call(i,u)),v=`${t?`.${tn.shapes+i.getTargetSelectorSuffix(u.id)}`:""}${e}`;e in o&&l.sheet.deleteRule(o[v]),i.state.cssRule[v]=Qg(l,v,n.filter(Boolean).map(m=>ze(g)&&m.indexOf(":")===-1?`${m}: ${g}`:m||""))})}:()=>{}},getStylePropValue(t){const{config:{boost_useCssRule:e}}=this;return e?null:de(t)?t.bind(this):t}};function Fc(t){return typeof t=="string"?new Ee([document.querySelectorAll(t)],[document.documentElement]):new Ee([T(t)],_t)}function Bp(t){let e="middle";return t>0&&t<=170?e="end":t>190&&t<=360&&(e="start"),e}function Up(t,e,n,a,i){var s;const o=this,{value:l}=t,c=o.isCandlestickType(t),u=fe(l)&&l<0||c&&!((s=o.getCandlestickData(t))!=null&&s._isUp);let{x:g,y:v}=e;const m=4,S=m*2;return a?n==="start"?(g+=u?0:S,v+=m):n==="middle"?(g+=S,v-=S):n==="end"&&(u&&(g-=S),v+=m):(n==="start"?(g+=m,u&&(v+=S*2)):n==="middle"?v-=S:n==="end"&&(g-=m,u&&(v+=S*2)),i&&(v+=u?-17:c?13:7)),{x:g,y:v}}function Bc(t,e){var n;const a=this.config.data_labels_position,{id:i,index:s,value:o}=t;return(n=de(a)?a.bind(this.api)(e,o,i,s,this.$el.text):(i in a?a[i]:a)[e])!=null?n:0}var zp={opacityForText(t){const e=this;return e.isBarType(t)&&!e.meetsLabelThreshold(Math.abs(e.getRatio("bar",t)),"bar")?"0":e.hasDataLabel?null:"0"},initText(){const{$el:t}=this;t.main.select(`.${Se.chart}`).append("g").attr("class",An.chartTexts).style("pointer-events",t.funnel||t.treemap?"none":null)},updateTargetsForText(t){const e=this,n=e.getChartClass("Text"),a=e.getClass("texts","id"),i=e.classFocus.bind(e);e.$el.main.select(`.${An.chartTexts}`).selectAll(`.${An.chartText}`).data(t).attr("class",l=>`${n(l)}${i(l)}`.trim()).enter().append("g").style("opacity","0").attr("class",n).call(e.setCssRule(!0,` .${An.text}`,["fill","pointer-events:none"],e.updateTextColor)).append("g").attr("class",a)},updateText(){const t=this,{$el:e,$T:n,config:a,axis:i}=t,s=t.getClass("text","index"),o=a.data_labels.centered,l=e.main.selectAll(`.${An.texts}`).selectAll(`.${An.text}`).data(t.labelishData.bind(t));n(l.exit()).style("fill-opacity","0").remove(),e.text=l.enter().append("text").merge(l).attr("class",s).attr("text-anchor",c=>{let g=a[`axis_${i==null?void 0:i.getId(c.id)}_inverted`]?c.value>0:c.value<0;if(t.isCandlestickType(c)){const v=t.getCandlestickData(c);g=!(v!=null&&v._isUp)}else if(t.isTreemapType(c))return o?"middle":"start";return a.axis_rotated?g?"end":"start":"middle"}).style("fill",t.getStylePropValue(t.updateTextColor)).style("fill-opacity","0").each(function(c,u,g){const v=st(this);let{value:m}=c;if(t.isBubbleZType(c))m=t.getBubbleZData(m,"z");else if(t.isCandlestickType(c)){const S=t.getCandlestickData(c);S&&(m=S.close)}m=t.isTreemapType(c)?t.treemapDataLabelFormat(c)(v):t.dataLabelFormat(c.id)(m,c.id,c.index,g),fe(m)?this.textContent=m:wa(v,m)})},updateTextColor(t){const e=this,{config:n}=e,a=n.data_labels_colors,i=e.isArcType(t)&&!e.isRadarType(t)||e.isFunnelType(t)||e.isTreemapType(t)?null:e.color(t);let s;if(ze(a))s=a;else if(De(a)){const{id:o}=t.data||t;s=a[o]}else de(a)&&(s=a.bind(e.api)(i,t));if(e.isCandlestickType(t)&&!de(a)){const o=e.getCandlestickData(t);if(!(o!=null&&o._isUp)){const l=n.candlestick_color_down;s=De(l)?l[t.id]:l}}return s||i},updateTextBGColor(t,e){const n=this,{$el:a}=n;let i="";if(ze(e)||De(e)){const s=ze(e)?"":n.getTargetSelectorSuffix("id"in t?t.id:t.data.id),o=a.defs.select(["filter[id*='labels-bg","']"].join(s));o.size()&&(i=`url(#${o.attr("id")})`)}return i||null},redrawText(t,e,n,a){const i=this,{$T:s,axis:o,config:l,state:{hasTreemap:c}}=i,u=lr(!0),g=l.axis_rotated,v=l.data_labels.rotate,m=Bp(v),S=v?`rotate(${v})`:"";return i.$el.text.style("fill",i.getStylePropValue(i.updateTextColor)).attr("filter",I=>i.updateTextBGColor.bind(i)(I,l.data_labels_backgroundColors)).style("fill-opacity",n?0:i.opacityForText.bind(i)).each(function(I,N){const M=s(c&&this.childElementCount?this.parentNode:this,!!(a&&this.getAttribute("x")),u),P=l[`axis_${o==null?void 0:o.getId(I.id)}_inverted`];let G={x:t.bind(this)(I,N),y:e.bind(this)(I,N)};v&&(G=Up.bind(i)(I,G,m,g,P),M.attr("text-anchor",m)),this.childElementCount||v?M.attr("transform",`translate(${G.x} ${G.y}) ${S}`):M.attr("x",G.x).attr("y",G.y)}),!0},getTextRect(t,e){const n=this;let a=t.node?t.node():t;/text/i.test(a.tagName)||(a=a.querySelector("text"));const i=a.textContent,s=`${Cn.textRect}-${i.replace(/\W/g,"_")}`;let o=n.cache.get(s);return o||(n.$el.svg.append("text").style("visibility","hidden").style("font",st(a).style("font")).classed(e,!0).text(i).call(l=>{o=Si(l.node())}).remove(),n.cache.add(s,o)),o},generateXYForText(t,e){const n=this,{state:{hasRadar:a,hasFunnel:i,hasTreemap:s}}=n,o=Object.keys(t),l={},c=e?n.getXForText:n.getYForText;return i&&o.push("funnel"),a&&o.push("radar"),s&&o.push("treemap"),o.forEach(u=>{l[u]=n[`generateGet${In(u)}Points`](t[u],!1)}),function(u,g){const v=n.isAreaType(u)&&"area"||n.isBarType(u)&&"bar"||n.isCandlestickType(u)&&"candlestick"||n.isFunnelType(u)&&"funnel"||n.isRadarType(u)&&"radar"||n.isTreemapType(u)&&"treemap"||"line";return c.call(n,l[v](u,g),u,this)}},getCenteredTextPos(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.isBarType(t),c=i.isTreemapType(t);if(s.data_labels.centered&&(l||c)){const u=Si(n);if(l){const g=i.getRangedData(t,null,"bar")>=0;if(o){const v=(g?e[1][1]-e[0][1]:e[0][1]-e[1][1])/2+u.width/2;return g?-v-3:v+2}else{const v=(g?e[0][1]-e[1][1]:e[1][1]-e[0][1])/2+u.height/2;return g?v:-v-2}}else if(c)return a==="x"?(e[1][0]-e[0][0])/2:(e[1][1]-e[0][1])/2+u.height/2}return 0},getXForText(t,e,n){var a;const i=this,{config:s}=i,o=s.axis_rotated,l=i.isFunnelType(e),c=i.isTreemapType(e);let u=t?t[0][0]:0;if(i.isCandlestickType(e))o?u=(a=i.getCandlestickData(e))!=null&&a._isUp?t[2][2]+4:t[2][1]-4:u+=(t[1][0]-u)/2;else if(l)u+=i.state.current.width/2;else if(c)u+=s.data_labels.centered?0:5;else if(o){const g=s[`axis_${i.axis.getId(e.id)}_inverted`],v=i.isBarType(e)?4:6,m=e.value;u=t[2][1],g?u-=v*(m>0?1:-1):u+=v*(m<0?-1:1)}else u=i.hasType("bar")?(t[2][0]+t[0][0])/2:u;return(o||c)&&(u+=i.getCenteredTextPos(e,t,n,"x")),u+Bc.call(this,e,"x")},getYForText(t,e,n){const a=this,{axis:i,config:s,state:o}=a,l=s.axis_rotated,c=s[`axis_${i==null?void 0:i.getId(e.id)}_inverted`],u=a.isBarType(e),g=a.isFunnelType(e),v=a.isTreemapType(e),m=s.point_r,S=Si(n);let{value:I}=e,N=3,M;if(a.isCandlestickType(e))I=a.getCandlestickData(e),l?(M=t[0][0],M+=(t[1][0]-M)/2+N):(M=I&&I._isUp?t[2][2]-N:t[2][1]+N*4,c&&(M+=15*(I._isUp?1:-1)));else if(g)M=t?t[0][1]+(t[1][1]-t[0][1])/2+S.height/2-3:0;else if(v)M=t[0][1]+(s.data_labels.centered?0:S.height+5);else if(l)M=(t[0][0]+t[2][0]+S.height*.6)/2;else if(M=t[2][1],fe(m)&&m>5&&(a.isLineType(e)||a.isScatterType(e))&&(N+=s.point_r/2.3),I<0||I===0&&!o.hasPositiveValue&&o.hasNegativeValue)M+=c?u?-3:-5:S.height+(u?-N:N);else{let P=-N*2;u?P=-N:a.isBubbleType(e)&&(P=N),c&&(P=u?10:15),M+=P}return(!l||v)&&(M+=a.getCenteredTextPos(e,t,n,"y")),M+Bc.call(this,e,"y")},markOverlapped(t,e,n){const a=e.$el.arcs.selectAll(n),i=a.filter(c=>c.data.id!==t),s=a.filter(c=>c.data.id===t),o=Kl(s.node()),l=(c,u)=>Math.sqrt(Math.pow(c,2)+Math.pow(u,2));s.node()&&i.each(function(){const c=Kl(this),u=st(this),g=l(o.e,o.f)>l(c.e,c.f)?s:u,v=Math.ceil(Math.abs(o.e-c.e))=i}};function Uc(t="left",e){const n=fe(e);let a;return t.indexOf("center")>-1?a=n?e/2:"middle":t.indexOf("right")>-1?a=n?e:"end":a=n?0:"start",a}var jp={initTitle(){const t=this,{config:e,$el:n}=t;if(e.title_text){n.title=n.svg.append("g");const a=n.title.append("text").style("text-anchor",Uc(e.title_position)).attr("class",An.title);wa(a,e.title_text,[.3,1.5])}},redrawTitle(){const t=this,{config:e,state:{current:n},$el:{title:a}}=t;if(a){const i=Uc(e.title_position,n.width),s=(e.title_padding.top||0)+t.getTextRect(t.$el.title,An.title).height;a.attr("transform",`translate(${i}, ${s})`)}},getTitlePadding(){const t=this,{$el:{title:e},config:n}=t;return(n.title_padding.top||0)+(e?t.getTextRect(e,An.title).height:0)+(n.title_padding.bottom||0)}},Gp={initTooltip(){const t=this,{config:e,$el:n}=t;n.tooltip=st(e.tooltip_contents.bindto),n.tooltip.empty()&&(n.tooltip=n.chart.append("div").attr("class",ti.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none")),t.bindTooltipResizePos()},initShowTooltip(){var t;const e=this,{config:n,$el:a,state:{hasAxis:i,hasRadar:s}}=e;if(n.tooltip_init_show){const o=!(i||s);(t=e.axis)!=null&&t.isTimeSeries()&&ze(n.tooltip_init_x)&&(n.tooltip_init_x=Dn.call(e,n.tooltip_init_x)),e.api.tooltip.show({data:{[o?"index":"x"]:n.tooltip_init_x}});const l=n.tooltip_init_position;if(!n.tooltip_contents.bindto&&!Wn(l)){const{top:c=0,left:u=50}=l;a.tooltip.style("top",ze(c)?c:`${c}px`).style("left",ze(u)?u:`${u}px`).style("display",null)}}},getTooltipHTML(...t){const e=this,{api:n,config:a}=e;return de(a.tooltip_contents)?a.tooltip_contents.bind(n)(...t):e.getTooltipContent(...t)},getTooltipContent(t,e,n,a){var i;const s=this,{api:o,config:l,state:c,$el:u}=s,[g,v,m]=["title","name","value"].map(pt=>{const k=l[`tooltip_format_${pt}`];return de(k)?k.bind(o):k}),S=(...pt)=>Is((g||e)(...pt)),I=(...pt)=>Is((v||(k=>k))(...pt)),N=(...pt)=>{const k=m||(c.hasTreemap||s.isStackNormalized()?(Et,ut)=>`${(ut*100).toFixed(2)}%`:n);return Is(k(...pt))},M=l.tooltip_order,P=pt=>s.axis&&s.isBubbleZType(pt)?s.getBubbleZData(pt.value,"z"):s.getBaseValue(pt),G=s.levelColor?pt=>s.levelColor(pt.value):pt=>a(pt),H=l.tooltip_contents,Y=H.template,_=s.mapToTargetIds();if(M===null&&l.data_groups.length){const pt=s.orderTargets(s.data.targets).map(k=>k.id).reverse();t.sort((k,Et)=>{let ut=k?k.value:null,Rt=Et?Et.value:null;return ut>0&&Rt>0&&(ut=k.id?pt.indexOf(k.id):null,Rt=Et.id?pt.indexOf(Et.id):null),ut-Rt})}else if(/^(asc|desc)$/.test(M)){const pt=M==="asc";t.sort((k,Et)=>{const ut=k?P(k):null,Rt=Et?P(Et):null;return pt?ut-Rt:Rt-ut})}else de(M)&&t.sort(M.bind(o));const K=s.getTooltipContentTemplate(Y),at=t.length;let $t,At,vt,gt,Ft;for(Ft=0;Ft`:""})}if(!At.ratio&&u.arcs&&(vt=["arc",s.$el.arcs.select(`path.${Be.arc}-${At.id}`).data()[0]],At.ratio=s.getRatio(...vt)),vt=[At.ratio,At.id,At.index],s.isAreaRangeType(At)){const[pt,k]=["high","low"].map(ut=>N(s.getRangedData(At,ut),...vt));gt=`Mid: ${N(P(At),...vt)} High: ${pt} Low: ${k}`}else if(s.isCandlestickType(At)){const[pt,k,Et,ut,Rt]=["open","high","low","close","volume"].map(jt=>s.getRangedData(At,jt,"candlestick")?N(s.getRangedData(At,jt,"candlestick"),...vt):void 0);gt=`Open: ${pt} High: ${k} Low: ${Et} Close: ${ut}${Rt?` Volume: ${Rt}`:""}`}else if(s.isBarRangeType(At)){const{value:pt,id:k,index:Et}=At;gt=`${N(pt,void 0,k,Et)}`}else gt=N(P(At),...vt);if(gt!==void 0){if(At.name===null)continue;const pt=I((i=At.name)!=null?i:At.id,...vt),k=G(At),Et={CLASS_TOOLTIP_NAME:ti.tooltipName+s.getTargetSelectorSuffix(At.id),COLOR:Y||!s.patterns?k:``,NAME:pt,VALUE:gt};if(Y&&De(H.text)){const ut=_.indexOf(At.id);Object.keys(H.text).forEach(Rt=>{Et[Rt]=H.text[Rt][ut]})}$t+=bi(K[1],Et)}}return`${$t}
${pt}
`},getTooltipContentTemplate(t){return(t||` {=TITLE} {{}} -
${this.patterns?"{=COLOR}":''}{=NAME} {=VALUE}
`).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition(t,e){var n,a;const i=this,{config:s,scale:o,state:l,$el:{eventRect:c,tooltip:u}}=i,{bindto:g}=s.tooltip_contents,v=s.axis_rotated,m=u==null?void 0:u.datum();if(!g&&m){const S=t!=null?t:JSON.parse(m.current),[I,N]=zn(l.event,e!=null?e:c==null?void 0:c.node()),M={x:I,y:N};if(l.hasAxis&&o.x&&m&&"x"in m){const V=(k=0,H,at="y")=>{var gt;const $t=o[H?(gt=i.axis)==null?void 0:gt.getId(H):at];return $t?$t(k)+(v?l.margin.left:l.margin.top):0};M.xAxis=o.x(m.x)+(s.tooltip_position?v?l.margin.top:l.margin.left:0),S.length===1?M.yAxis=V(S[0].value,S[0].id):M.yAxis=V}const{width:P=0,height:G=0}=m,W=(a=(n=s.tooltip_position)==null?void 0:n.bind(i.api)(S,P,G,c==null?void 0:c.node(),M))!=null?a:i.getTooltipPosition.bind(i)(P,G,M);["top","left"].forEach(V=>{const k=W[V];u.style(V,`${k}px`),V==="left"&&!m.xPosInPercent&&(m.xPosInPercent=k/l.current.width*100)})}},getTooltipPosition(t,e,n){var a,i,s;const o=this,{config:l,scale:c,state:u}=o,{width:g,height:v,current:m,hasFunnel:S,hasRadar:I,hasTreemap:N,isLegendRight:M,inputType:P}=u,G=o.hasType("gauge")&&!l.gauge_fullCircle,W=l.axis_rotated,V=o.hasArcType(),k=o.getSvgLeft(!0);let H=k+m.width-o.getCurrentPaddingByDirection("right");const at=20;let{x:gt,y:$t}=n;if(I)gt+=gt>=g/2?15:-(t+15),$t+=15;else if(V){if(P!=="touch"){let Gt=(i=(a=o.getTitlePadding)==null?void 0:a.call(o))!=null?i:0;Gt&&G&&((s=l.arc_rangeText_values)!=null&&s.length)&&(Gt+=10),gt+=(g-(M?o.getLegendWidth():0))/2,$t+=(G?v:v/2+e)+Gt}}else if(S||N)$t+=e;else{const Tt={top:o.getCurrentPaddingByDirection("top",!0),left:o.getCurrentPaddingByDirection("left",!0)};W?(gt+=k+Tt.left+at,$t=Tt.top+n.xAxis+at,H-=k):(gt=k+Tt.left+at+(c.zoom?gt:n.xAxis),$t+=Tt.top-5)}if(gt+t+15>H&&(gt-=t+(S||N||V?0:W?at*2:38)),$t+e>m.height){const Tt=N?e+10:30;$t-=G?e*1.5:e+Tt}const St={top:$t,left:gt};return Object.keys(St).forEach(Tt=>{St[Tt]<0&&(St[Tt]=0)}),St},showTooltip(t,e){const n=this,{config:a,$el:{tooltip:i}}=n,s=t.filter(c=>c&&Ie(n.getBaseValue(c)));if(!i||s.length===0||!a.tooltip_show)return;let o=i.datum();const l=JSON.stringify(t);if(!o||o.current!==l){const{index:c,x:u}=t.concat().sort()[0];Ze(a.tooltip_onshow,n.api,t),i.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style("display",null).style("visibility",null).datum(o={index:c,x:u,current:l,width:i.property("offsetWidth"),height:i.property("offsetHeight")}),Ze(a.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,c)}n.setTooltipPosition(s,e)},bindTooltipResizePos(){const t=this,{resizeFunction:e,state:n,$el:{tooltip:a}}=t;e.add(()=>{if(a.style("display")==="block"){const{current:i}=n,{width:s,xPosInPercent:o}=a.datum();let l=i.width/100*o;const c=i.width-(l+s);c<0&&(l+=c),a.style("left",`${l}px`)}})},hideTooltip(t){var e;const n=this,{api:a,config:i,$el:{tooltip:s}}=n;if(s&&s.style("display")!=="none"&&(!i.tooltip_doNotHide||t)){const o=JSON.parse((e=s.datum().current)!=null?e:{});Ze(i.tooltip_onhide,a,o),s.style("display","none").style("visibility","hidden").datum(null),Ze(i.tooltip_onhidden,a,o)}},_handleLinkedCharts(t,e){const n=this,{charts:a,config:i,state:{event:s}}=n;if(s!=null&&s.isTrusted&&i.tooltip_linked&&a.length>1){const o=i.tooltip_linked_name;a.filter(l=>l!==n.api).forEach(l=>{const{config:c,$el:u}=l.internal,g=c.tooltip_linked,v=c.tooltip_linked_name,m=fn.body.contains(u.chart.node());if(g&&o===v&&m){const S=u.tooltip.data()[0],I=e!==(S==null?void 0:S.index);try{l.tooltip[t&&I?"show":"hide"]({index:e})}catch(N){}}})}},updateTooltipOnRedraw(t,e){var n;const a=this,{config:i,$el:{eventRect:s,svg:o,tooltip:l},state:{event:c,hasAxis:u,hasRadar:g,hasTreemap:v}}=a;if((l==null?void 0:l.style("display"))==="block"&&c){const m=t!=null?t:(n=g?o:s)==null?void 0:n.node();if(u||g)if(a.isMultipleX())a.selectRectForMultipleXs(m,!1);else{const S=e!=null?e:a.getDataIndexFromEvent(c);e===-1?a.api.tooltip.hide():(a.selectRectForSingle(m,S),a.setExpand(S,null,!0))}else{const{clientX:S,clientY:I}=c;setTimeout(()=>{let N=fn.elementFromPoint(S,I);const M=st(N).datum();if(M){const P=a.hasArcType()?a.convertToArcData(a.updateAngle(M)):M==null?void 0:M.data;v&&(N=o.node()),P&&a.showTooltip([P],N)}else a.api.tooltip.hide()},i.transition_duration)}}}},Vp={getTranslate(t,e=0){var n;const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l=0,c,u;if(e&&/^(x|y2?)$/.test(t)&&(l=a.getAxisSize(t)*e),t==="main")c=Ti(s.margin.left),u=Ti(s.margin.top);else if(t==="context")c=Ti(s.margin2.left),u=Ti(s.margin2.top);else if(t==="legend")c=s.margin3.left,u=s.margin3.top;else if(t==="x")c=o?-l:0,u=o?0:s.height+l;else if(t==="y")c=o?0:-l,u=o?s.height+l:0;else if(t==="y2")c=o?0:s.width+l,u=o?-l-1:0;else if(t==="subX")c=0,u=o?0:s.height2;else if(t==="arc")c=s.arcWidth/2,u=s.arcHeight/2,(n=i.arc_rangeText_values)!=null&&n.length&&(u+=5+(a.hasType("gauge")&&i.title_text?10:0));else if(t==="polar")c=s.arcWidth/2,u=s.arcHeight/2;else if(t==="radar"){const[g,v]=a.getRadarSize();c=s.width/2-g,u=s.height/2-v}return`translate(${c}, ${u})`},transformMain(t,e){const n=this,{$el:{main:a},$T:i}=n,s=e!=null&&e.axisX?e.axisX:i(a.select(`.${on.axisX}`),t),o=e!=null&&e.axisY?e.axisY:i(a.select(`.${on.axisY}`),t),l=e!=null&&e.axisY2?e.axisY2:i(a.select(`.${on.axisY2}`),t);i(a,t).attr("transform",n.getTranslate("main")),s.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),l.attr("transform",n.getTranslate("y2")),a.select(`.${Be.chartArcs}`).attr("transform",n.getTranslate("arc"))},transformAll(t,e){const n=this,{config:a,state:{hasAxis:i,hasFunnel:s,hasTreemap:o},$el:l}=n;!s&&!o&&n.transformMain(t,e),i&&a.subchart_show&&n.transformContext(t,e),l.legend&&n.transformLegend(t)}},Xp={isValidChartType(t){return!!(t&&Object.values(ae).indexOf(t)>-1)},setTargetType(t,e){const n=this,{config:a,state:{withoutFadeIn:i}}=n;n.mapToTargetIds(t).forEach(s=>{i[s]=e===a.data_types[s],a.data_types[s]=e}),t||(a.data_type=e)},updateTypesElements(){const t=this,{state:{current:e}}=t;Object.keys(ae).forEach(n=>{const a=ae[n],i=t.hasType(a,null,!0),s=e.types.indexOf(a);s===-1&&i?e.types.push(a):s>-1&&!i&&e.types.splice(s,1)}),t.setChartElements()},hasType(t,e,n=!1){var a;const i=this,{config:s,state:{current:o}}=i,l=s.data_types,c=e||i.data.targets;let u=!1;return!n&&((a=o.types)==null?void 0:a.indexOf(t))>-1?u=!0:c!=null&&c.length?c.forEach(g=>{const v=l[g.id];(v===t||!v&&t==="line")&&(u=!0)}):Object.keys(l).length?Object.keys(l).forEach(g=>{l[g]===t&&(u=!0)}):u=s.data_type===t,u},hasTypeOf(t,e,n=[]){return t in mr?!mr[t].filter(a=>n.indexOf(a)===-1).every(a=>!this.hasType(a,e)):!1},isTypeOf(t,e){var n;const a=ze(t)?t:t.id,i=this.config&&(((n=this.config.data_types)==null?void 0:n[a])||this.config.data_type);return Fe(e)?e.indexOf(i)>=0:i===e},hasPointType(){const t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge(){return this.hasType("gauge")&&this.config.gauge_type==="multi"},isLineType(t){const e=ze(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,mr.Line)},isStepType(t){return this.isTypeOf(t,mr.Step)},isSplineType(t){return this.isTypeOf(t,mr.Spline)},isAreaType(t){return this.isTypeOf(t,mr.Area)},isAreaRangeType(t){return this.isTypeOf(t,mr.AreaRange)},isBarType(t){return this.isTypeOf(t,"bar")},isBubbleType(t){return this.isTypeOf(t,"bubble")},isCandlestickType(t){return this.isTypeOf(t,"candlestick")},isScatterType(t){return this.isTypeOf(t,"scatter")},isTreemapType(t){return this.isTypeOf(t,"treemap")},isPieType(t){return this.isTypeOf(t,"pie")},isFunnelType(t){return this.isTypeOf(t,"funnel")},isGaugeType(t){return this.isTypeOf(t,"gauge")},isDonutType(t){return this.isTypeOf(t,"donut")},isPolarType(t){return this.isTypeOf(t,"polar")},isRadarType(t){return this.isTypeOf(t,"radar")},isArcType(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint(t){const{config:e}=this,n=e.point_pattern;let a=!1;return(t==null?void 0:t.tagName)==="circle"?a=!0:a=e.point_type==="circle"&&(!n||Fe(n)&&n.length===0),a},lineData(t){return this.isLineType(t)?[t]:[]},arcData(t){return this.isArcType(t.data)?[t]:[]},labelishData(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isFunnelType(t)||this.isRadarType(t)||this.isTreemapType(t)?t.values.filter(e=>fe(e.value)||!!e.value):[]},barLineBubbleData(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}};function Di(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Ni(t){this._context=t}Ni.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:Di(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yp(t){return new Ni(t)}function yr(){}function zc(t){this._context=t}zc.prototype={areaStart:yr,areaEnd:yr,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Hp(t){return new zc(t)}function jc(t){this._context=t}jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Wp(t){return new jc(t)}function Gc(t,e){this._basis=new Ni(t),this._beta=e}Gc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var a=t[0],i=e[0],s=t[n]-a,o=e[n]-i,l=-1,c;++l<=n;)c=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+c*s),this._beta*e[l]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Kp=function t(e){function n(a){return e===1?new Ni(a):new Gc(a,e)}return n.beta=function(a){return t(+a)},n}(.85);function Fi(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function io(t,e){this._context=t,this._k=(1-e)/6}io.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Fi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zp=function t(e){function n(a){return new io(a,e)}return n.tension=function(a){return t(+a)},n}(0);function so(t,e){this._context=t,this._k=(1-e)/6}so.prototype={areaStart:yr,areaEnd:yr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kp=function t(e){function n(a){return new so(a,e)}return n.tension=function(a){return t(+a)},n}(0);function oo(t,e){this._context=t,this._k=(1-e)/6}oo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Jp=function t(e){function n(a){return new oo(a,e)}return n.tension=function(a){return t(+a)},n}(0);const Vc=Math.abs,xn=Math.atan2,Nr=Math.cos,Qp=Math.max,lo=Math.min,Qn=Math.sin,ra=Math.sqrt,Tn=1e-12,Na=Math.PI,Bi=Na/2,Ui=2*Na;function _p(t){return t>1?0:t<-1?Na:Math.acos(t)}function Xc(t){return t>=1?Bi:t<=-1?-Bi:Math.asin(t)}function co(t,e,n){var a=t._x1,i=t._y1,s=t._x2,o=t._y2;if(t._l01_a>Tn){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);a=(a*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Tn){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,g=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*u+t._x1*t._l23_2a-e*t._l12_2a)/g,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/g}t._context.bezierCurveTo(a,i,s,o,t._x2,t._y2)}function Yc(t,e){this._context=t,this._alpha=e}Yc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:co(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qp=function t(e){function n(a){return e?new Yc(a,e):new io(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Hc(t,e){this._context=t,this._alpha=e}Hc.prototype={areaStart:yr,areaEnd:yr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:co(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var tm=function t(e){function n(a){return e?new Hc(a,e):new so(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Wc(t,e){this._context=t,this._alpha=e}Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:co(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var em=function t(e){function n(a){return e?new Wc(a,e):new oo(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Kc(t){return t<0?-1:1}function Zc(t,e,n){var a=t._x1-t._x0,i=e-t._x1,s=(t._y1-t._y0)/(a||i<0&&-0),o=(n-t._y1)/(i||a<0&&-0),l=(s*i+o*a)/(a+i);return(Kc(s)+Kc(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function kc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function uo(t,e,n){var a=t._x0,i=t._y0,s=t._x1,o=t._y1,l=(s-a)/3;t._context.bezierCurveTo(a+l,i+l*e,s-l,o-l*n,s,o)}function zi(t){this._context=t}zi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uo(this,this._t0,kc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,uo(this,kc(this,n=Zc(this,t,e)),n);break;default:uo(this,this._t0,n=Zc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Jc(t){this._context=new Qc(t)}(Jc.prototype=Object.create(zi.prototype)).point=function(t,e){zi.prototype.point.call(this,e,t)};function Qc(t){this._context=t}Qc.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,a,i,s){this._context.bezierCurveTo(e,t,a,n,s,i)}};function nm(t){return new zi(t)}function rm(t){return new Jc(t)}function _c(t){this._context=t}_c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var a=qc(t),i=qc(e),s=0,o=1;o=0;--e)i[e]=(o[e]-i[e+1])/s[e];for(s[n-1]=(t[n]+i[n-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function sm(t){return new ji(t,.5)}function om(t){return new ji(t,0)}function lm(t){return new ji(t,1)}function cm(t){const e=this;let n;return e.isLineType(t)?n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType)):e.isBarType(t)&&(n=e.generateGetBarPoints(e.getShapeIndices(e.isBarType))),n}var um={getDrawShape(){const t=this,e=t.config.axis_rotated,{hasRadar:n,hasTreemap:a}=t.state,i={type:{},indices:{},pos:{}};if(!a&&["bar","candlestick","line","area"].forEach(s=>{const o=In(/^(bubble|scatter)$/.test(s)?"line":s);if(t.hasType(s)||t.hasTypeOf(o)||s==="line"&&(t.hasType("bubble")||t.hasType("scatter"))){const l=t.getShapeIndices(t[`is${o}Type`]),c=t[`generateDraw${o}`];i.indices[s]=l,i.type[s]=c?c.bind(t)(l,!1):void 0}}),!t.hasArcType()||n||a){let s,o;a||(s=n?t.radarCircleX:e?t.circleY:t.circleX,o=n?t.radarCircleY:e?t.circleX:t.circleY),i.pos={xForText:t.generateXYForText(i.indices,!0),yForText:t.generateXYForText(i.indices,!1),cx:(s||function(){}).bind(t),cy:(o||function(){}).bind(t)}}return i},getShapeIndices(t){const e=this,{config:n}=e,a=n.data_xs,i=nn(a),s={};let o=i?{}:0;return i&&Ps(Object.keys(a).map(l=>a[l])).forEach(l=>{o[l]=0,s[l]={}}),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach(l=>{var c;const u=l.id in a?a[l.id]:"",g=u?s[u]:s;for(let v=0,m;m=n.data_groups[v];v++)if(!(m.indexOf(l.id)<0))for(let S=0,I;I=m[S];S++){if(I in g){g[l.id]=g[I];break}l.id!==I&&u&&(g[I]=(c=g[l.id])!=null?c:o[u])}en(g[l.id])&&(g[l.id]=u?o[u]++:o++,g.__max__=(u?o[u]:o)-1)}),s},getIndices(t,e,n){const a=this,{data_xs:i,bar_indices_removeNull:s}=a.config,{id:o,index:l}=e;if(a.isBarType(o)&&s){const c={};return a.getAllValuesOnIndex(l,!0).forEach((u,g)=>{c[u.id]=g,c.__max__=g}),c}return nn(i)?t[i[o]]:t},getIndicesMax(t){return nn(this.config.data_xs)?Object.keys(t).map(e=>t[e].__max__||0).reduce((e,n)=>e+n):t.__max__},getShapeX(t,e,n){const a=this,{config:i,scale:s}=a,o=n?s.subX:s.zoom||s.x,l=i.bar_overlap,c=i.bar_padding,u=(v,m)=>v+m,g=Jn(t)&&(t._$total.length?t._$total.reduce(u)/2:0);return v=>{const m=a.getIndices(e,v,"getShapeX"),S=v.id in m?m[v.id]:0,I=(m.__max__||0)+1;let N=0;if(nn(v.x)){const M=o(v.x,!0);if(g){const P=t[v.id]||t._$width;N=l?M-P/2:M-P+t._$total.slice(0,S+1).reduce(u)-g}else N=M-(fe(t)?t:t._$width)*(I/2-(l?1:S))}return t&&N&&I>1&&c&&(S&&(N+=c*S),I>2?N-=(I-1)*c/2:I===2&&(N-=c/2)),N}},getShapeY(t){const e=this,n=e.isStackNormalized();return a=>{let{value:i}=a;return fe(a)?i=a:e.isAreaRangeType(a)?i=e.getBaseValue(a,"mid"):n?i=e.getRatio("index",a,!0):e.isBubbleZType(a)?i=e.getBubbleZData(a.value,"y"):e.isBarRangeType(a)&&(i=i[1]),e.getYScaleById(a.id,t)(i)}},getShapeYMin(t){const e=this,n=e.axis.getId(t),a=e.scale[n],[i]=a.domain(),s=e.config[`axis_${n}_inverted`];return!e.isGrouped(t)&&!s&&i>0?i:0},getShapeOffsetData(t){const e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),a=e.isStackNormalized(),i=n.map(o=>{let l=o.values;const c={};e.isStepType(o)&&(l=e.convertValuesToStep(l));const u=l.reduce((g,v)=>{const m=Number(v.x);return g[m]=v,c[m]=a?e.getRatio("index",v,!0):v.value,g},{});return{id:o.id,rowValues:l,rowValueMapByXValue:u,values:c}});return{indexMapByTargetId:n.reduce((o,{id:l},c)=>(o[l]=c,o),{}),shapeOffsetTargets:i}},getShapeOffset(t,e,n){const a=this,{shapeOffsetTargets:i,indexMapByTargetId:s}=a.getShapeOffsetData(t),o=a.config.data_groupsZeroAs;return(l,c)=>{const{id:u,value:g,x:v}=l,m=a.getIndices(e,l),S=a.getYScaleById(u,n);if(a.isBarRangeType(l))return S(g[0]);const I=Number(v),N=S(o==="zero"?0:a.getShapeYMin(u));let M=N;return i.filter(P=>P.id!==u&&m[P.id]===m[u]).forEach(P=>{const{id:G,rowValueMapByXValue:W,rowValues:V,values:k}=P;if(s[G]=0&&fe(H)&&(g!==0||o==="positive"&&H>0||o==="negative"&&H<0)&&(M+=S(H)-N)}}),M}},circleY(t,e){const n=this,a=t.id;let i;return n.isGrouped(a)&&(i=cm.bind(n)(t)),i?i(t,e)[0][1]:n.getYScaleById(a)(n.getBaseValue(t))},getBarW(t,e,n){var a,i,s,o,l;const c=this,{config:u,org:g,scale:v,state:m}=c,S=c.getMaxDataCount(),I=t==="bar"&&((a=u.data_groups)==null?void 0:a.length),N=`${t}_width`,{k:M}=(s=(i=c.getZoomTransform)==null?void 0:i.call(c))!=null?s:{k:1},P=[(o=u.axis_x_min)!=null?o:g.xDomain[0],(l=u.axis_x_max)!=null?l:g.xDomain[1]].map(c.axis.isTimeSeries()?Dn.bind(c):Number);let G=e.tickInterval(S);if(v.zoom&&!c.axis.isCategorized()&&M>1){const k=P.every((H,at)=>H===g.xDomain[at]);G=g.xDomain.map((H,at)=>{const gt=k?H:H-Math.abs(P[at]);return v.zoom(gt)}).reduce((H,at)=>Math.abs(H)+at)/S}const W=k=>{const H=k?u[N][k]:u[N],at=k?H.ratio:u[`${N}_ratio`],gt=k?H.max:u[`${N}_max`],$t=fe(H)?H:de(H)?H.call(c,m.width,n,S):n?G*at/n:0;return gt&&$t>gt?gt:$t};let V=W();return!I&&Jn(u[N])&&(V={_$width:V,_$total:[]},c.filterTargetsToShow(c.data.targets).forEach(k=>{u[N][k.id]&&(V[k.id]=W(k.id),V._$total.push(V[k.id]||V._$width))})),V},getShapeByIndex(t,e,n){const a=this,{$el:i}=a,s=Ie(e)?`-${e}`:"";let o=i[t];return o&&!o.empty()?o=o.filter(l=>n?l.id===n:!0).filter(l=>Ie(e)?l.index===e:!0):o=(n?i.main.selectAll(`.${Ne[`${t}s`]}${a.getTargetSelectorSuffix(n)}`):i.main).selectAll(`.${Ne[t]}${s}`),o},isWithinShape(t,e){var n;const a=this,i=st(t);let s;return a.isTargetToShow(e.id)?(n=a.hasValidPointType)!=null&&n.call(a,t.nodeName)?s=a.isStepType(e)?a.isWithinStep(t,a.getYScaleById(e.id)(a.getBaseValue(e))):a.isWithinCircle(t,a.isBubbleType(e)?a.pointSelectR(e)*1.5:0):t.nodeName==="path"&&(s=i.classed(Ne.bar)?a.isWithinBar(t):!0):s=!1,s},getInterpolate(t){const n=this.getInterpolateType(t);return{basis:Yp,"basis-closed":Hp,"basis-open":Wp,bundle:Kp,cardinal:Zp,"cardinal-closed":kp,"cardinal-open":Jp,"catmull-rom":qp,"catmull-rom-closed":tm,"catmull-rom-open":em,"monotone-x":nm,"monotone-y":rm,natural:am,"linear-closed":im,linear:fo,step:sm,"step-after":lm,"step-before":om}[n]},getInterpolateType(t){const e=this,{config:n}=e,a=n.spline_interpolation_type,i=e.isInterpolationType(a)?a:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar(t){const e=zn(this.state.event,t),n=Vl(t),[a,i]=n,s=Math.min(a.x,i.x),o=Math.min(a.y,i.y),l=this.config.bar_sensitivity,{width:c,height:u}=t.getBBox(),g=s-l,v=s+c+l,m=o+u+l,S=o-l;return ge in t?fm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$n=(t,e,n)=>dm(t,typeof e!="symbol"?e+"":e,n);class Fr{constructor(e){$n(this,"api"),$n(this,"config"),$n(this,"cache"),$n(this,"$el"),$n(this,"state"),$n(this,"charts"),$n(this,"data",{xs:{},targets:[]}),$n(this,"axis"),$n(this,"scale",{x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null}),$n(this,"org",{xScale:null,xDomain:null}),$n(this,"color"),$n(this,"patterns"),$n(this,"levelColor"),$n(this,"point"),$n(this,"brush"),$n(this,"format",{extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null});const n=this;n.api=e,n.config=new Pr,n.cache=new fv;const a=new ov;n.$el=a.getStore("element"),n.state=a.getStore("state"),n.$T=n.$T.bind(n)}$T(e,n,a){const{config:i,state:s}=this,o=i.transition_duration,l=i.subchart_show;let c=e;return c&&("tagName"in c&&(c=st(c)),c=(n!==!1&&o||n)&&(!s.zooming||s.dragging)&&!s.resizing&&s.rendered&&!l?c.transition(a).duration(o):c),c}beforeInit(){const e=this;e.callPluginHook("$beforeInit"),Ze(e.config.onbeforeinit,e.api)}afterInit(){const e=this;e.callPluginHook("$afterInit"),Ze(e.config.onafterinit,e.api)}init(){const e=this,{config:n,state:a,$el:i}=e,s=n.boost_useCssRule;if(dv(e),a.hasRadar=!a.hasAxis&&e.hasType("radar"),a.hasFunnel=!a.hasAxis&&e.hasType("funnel"),a.hasTreemap=!a.hasAxis&&e.hasType("treemap"),a.hasAxis=!e.hasArcType()&&!a.hasFunnel&&!a.hasTreemap,a.datetimeId=`bb-${+new Date*lr()}`,s){const l=fn.createElement("style");l.type="text/css",fn.head.appendChild(l),a.style={rootSelctor:`.${a.datetimeId}`,sheet:l.sheet},i.style=l}const o={element:n.bindto,classname:"bb"};De(n.bindto)&&(o.element=n.bindto.element||"#chart",o.classname=n.bindto.classname||o.classname),i.chart=de(o.element.node)?n.bindto.element:st(o.element||[]),i.chart.empty()&&(i.chart=st(fn.body.appendChild(fn.createElement("div")))),i.chart.html("").classed(o.classname,!0).classed(a.datetimeId,s).style("position","relative"),e.initParams(),e.initToRender()}initToRender(e){const n=this,{config:a,state:i,$el:{chart:s}}=n,o=()=>s.style("display")==="none"||s.style("visibility")==="hidden",l=a.render.lazy||o(),c=Ke.MutationObserver;l&&c&&a.render.observe!==!1&&!e&&new c((u,g)=>{o()||(g.disconnect(),!i.rendered&&n.initToRender(!0))}).observe(s.node(),{attributes:!0,attributeFilter:["class","style"]}),(!l||e)&&n.convertData(a,u=>{n.initWithData(u),n.afterInit()})}initParams(){var e;const n=this,{config:a,format:i,state:s}=n,o=a.axis_rotated;if(n.color=n.generateColor(),n.levelColor=n.generateLevelColor(),a.padding===!1&&(a.axis_x_show=!1,a.axis_y_show=!1,a.axis_y2_show=!1,a.subchart_show=!1),(n.hasPointType()||(e=n.hasLegendDefsPoint)!=null&&e.call(n))&&(n.point=n.generatePoint()),s.hasAxis){n.initClip(),i.extraLineClasses=n.generateExtraLineClass(),i.dataTime=a.data_xLocaltime?Yo:Ho,i.axisTime=a.axis_x_localtime?rs:as;const l=n.config.zoom_enabled&&n.config.zoom_type==="drag";i.defaultAxisTime=c=>{const{x:u,zoom:g}=n.scale,v=l?g:g&&u.orgDomain().toString()!==g.domain().toString(),m=c.getMilliseconds()&&".%L"||c.getSeconds()&&".:%S"||c.getMinutes()&&"%I:%M"||c.getHours()&&"%I %p"||c.getDate()!==1&&"%b %d"||v&&c.getDate()===1&&"%b'%y"||c.getMonth()&&"%-m/%-d"||"%Y";return i.axisTime(m)(c)}}s.isLegendRight=a.legend_position==="right",s.isLegendInset=a.legend_position==="inset",s.isLegendTop=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="top-right",s.isLegendLeft=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="bottom-left",s.rotatedPadding.top=n.getResettedPadding(s.rotatedPadding.top),s.rotatedPadding.right=o&&!a.axis_x_show?0:30,s.inputType=tv(a.interaction_inputType_mouse,a.interaction_inputType_touch)}initWithData(e){var n,a,i;const s=this,{config:o,scale:l,state:c,$el:u,org:g}=s,{hasAxis:v,hasFunnel:m,hasTreemap:S}=c,I=o.interaction_enabled,N=s.hasType("polar"),M=o.data_labels_backgroundColors;if(v&&(s.axis=s.getAxisInstance(),o.zoom_enabled&&s.initZoom()),s.data.xs={},s.data.targets=s.convertDataToTargets(e),o.data_filter&&(s.data.targets=s.data.targets.filter(o.data_filter.bind(s.api))),o.data_hide&&s.addHiddenTargetIds(o.data_hide===!0?s.mapToIds(s.data.targets):o.data_hide),o.legend_hide&&s.addHiddenLegendIds(o.legend_hide===!0?s.mapToIds(s.data.targets):o.legend_hide),s.updateSizes(),s.updateScales(!0),v){const{x:W,y:V,y2:k,subX:H,subY:at,subY2:gt}=l;W&&(W.domain(qr(s.getXDomain(s.data.targets),!o.axis_x_inverted)),H.domain(W.domain()),g.xDomain=W.domain()),V&&(V.domain(s.getYDomain(s.data.targets,"y")),at.domain(V.domain())),k&&(k.domain(s.getYDomain(s.data.targets,"y2")),gt&>.domain(k.domain()))}if(u.svg=u.chart.append("svg").style("overflow","hidden").style("display","block"),I&&c.inputType){const W=c.inputType==="touch",{onclick:V,onover:k,onout:H}=o;u.svg.on("click",(V==null?void 0:V.bind(s.api))||null).on(W?"touchstart":"mouseenter",(k==null?void 0:k.bind(s.api))||null).on(W?"touchend":"mouseleave",(H==null?void 0:H.bind(s.api))||null)}o.svg_classname&&u.svg.attr("class",o.svg_classname);const P=de(o.color_tiles)&&s.patterns;(v||P||N||S||M||(n=s.hasLegendDefsPoint)!=null&&n.call(s))&&(u.defs=u.svg.append("defs"),v&&["id","idXAxis","idYAxis","idGrid"].forEach(W=>{s.appendClip(u.defs,c.clip[W])}),s.generateTextBGColorFilter(M),P&&s.patterns.forEach(W=>u.defs.append(()=>W.node))),s.updateSvgSize(),s.bindResize();const G=u.svg.append("g").classed(Se.main,!0).attr("transform",m||S?null:s.getTranslate("main"));if(u.main=G,o.subchart_show&&s.initSubchart(),o.tooltip_show&&s.initTooltip(),o.title_text&&s.initTitle(),!S&&o.legend_show&&s.initLegend(),o.data_empty_label_text&&G.append("text").attr("class",`${An.text} ${Se.empty}`).attr("text-anchor","middle").attr("dominant-baseline","middle"),v&&(o.regions.length&&s.initRegion(),!o.clipPath&&s.axis.init()),G.append("g").classed(Se.chart,!0).attr("clip-path",v?c.clip.path:null),s.callPluginHook("$init"),s.initChartElements(),v&&(I&&((a=s.initEventRect)==null||a.call(s)),s.initGrid(),o.clipPath&&((i=s.axis)==null||i.init())),s.updateTargets(s.data.targets),s.updateDimension(),Ze(o.oninit,s.api),s.setBackground(),s.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),o.data_onmin||o.data_onmax){const W=s.getMinMaxData();Ze(o.data_onmin,s.api,W.min),Ze(o.data_onmax,s.api,W.max)}o.tooltip_show&&s.initShowTooltip(),c.rendered=!0}initChartElements(){const e=this,{hasAxis:n,hasRadar:a,hasTreemap:i}=e.state,s=[];if(n){const o=["bar","bubble","candlestick","line"];e.config.bar_front&&o.push(o.shift()),o.forEach(l=>{const c=In(l);(l==="line"&&e.hasTypeOf(c)||e.hasType(l))&&s.push(c)})}else if(i)s.push("Treemap");else if(e.hasType("funnel"))s.push("Funnel");else{const o=e.hasType("polar");a||s.push("Arc","Pie"),e.hasType("gauge")?s.push("Gauge"):a?s.push("Radar"):o&&s.push("Polar")}s.forEach(o=>{e[`init${o}`]()}),nn(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()}setChartElements(){const e=this,{$el:{chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:u,needle:g,arcs:v,circle:m,bar:S,candlestick:I,line:N,area:M,text:P}}=e;e.api.$={chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:u,arc:v,circles:m,bar:{bars:S},candlestick:I,line:{lines:N,areas:M},needle:g,text:{texts:P}}}setBackground(){const e=this,{config:{background:n},state:a,$el:{svg:i}}=e;if(nn(n)){const s=i.select("g").insert(n.imgUrl?"image":"rect",":first-child");n.imgUrl?s.attr("href",n.imgUrl):n.color&&s.style("fill",n.color).attr("clip-path",a.clip.path),s.attr("class",n.class||null).attr("width","100%").attr("height","100%")}}updateTargets(e){var n;const a=this,{hasAxis:i,hasFunnel:s,hasRadar:o,hasTreemap:l}=a.state,c=g=>a[`updateTargetsFor${g}`](e.filter(a[`is${g}Type`].bind(a)));if(a.updateTargetsForText(e),i)["bar","candlestick","line"].forEach(g=>{const v=In(g);(g==="line"&&a.hasTypeOf(v)||a.hasType(g))&&c(v)}),a.updateTargetsForSubchart&&a.updateTargetsForSubchart(e);else if(a.hasArcType(e)){let g="Arc";o?g="Radar":a.hasType("polar")&&(g="Polar"),c(g)}else s?c("Funnel"):l&&c("Treemap");const u=a.hasType("bubble")||a.hasType("scatter");u&&((n=a.updateTargetForCircle)==null||n.call(a)),a.filterTargetsToShowAtInit(u)}filterTargetsToShowAtInit(e=!1){const n=this,{$el:{svg:a},$T:i}=n;let s=`.${Se.target}`;e&&(s+=`, .${pn.chartCircles} > .${pn.circles}`),i(a.selectAll(s).filter(o=>n.isTargetToShow(o.id))).style("opacity",null)}getWithOption(e){const n={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(n).forEach(a=>{let i=n[a];ze(i)&&(i=n[i]),n[a]=pr(e,`with${a}`,i)}),n}initialOpacity(e){const n=this,{withoutFadeIn:a}=n.state;return n.getBaseValue(e)!==null&&a[e.id]?null:"0"}bindResize(){const e=this,{config:n,state:a}=e,i=pv(n.resize_timer),s=[];s.push(()=>Ze(n.onresize,e.api)),n.resize_auto&&s.push(()=>{a.resizing=!0,n.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}),s.push(()=>{Ze(n.onresized,e.api),a.resizing=!1}),s.forEach(o=>i.add(o)),e.resizeFunction=i,Ke.addEventListener("resize",e.resizeFunction=i)}callPluginHook(e,...n){this.config.plugins.forEach(a=>{e==="$beforeInit"&&(a.$$=this,this.api.plugins.push(a)),a[e](...n)})}}gn(Fr.prototype,[Cv,Pv,wv,Bv,Uv,Vv,Xv,Fv,Yv,Hv,Wv,Dp,um,Np,Fp,zp,jp,Gp,Vp,Xp]);function hm(t){const e=this.config;let n,a,i;const s=()=>{const o=a.shift();if(o&&n&&Jn(n)&&o in n)return n=n[o],s();if(!o)return n};Object.keys(e).forEach(o=>{n=t,a=o.split("_"),i=s(),Xe(i)&&(e[o]=i)}),this.api&&(this.state.orgConfig=t)}var gm={resize(t){const e=this.internal,{config:n,state:a}=e;a.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,a.resizing=!0,this.flush(!1),e.resizeFunction())},flush(t){var e,n;const a=this.internal,{state:i,$el:{zoomResetBtn:s}}=a;i.rendered?(i.resizing?(e=a.brush)==null||e.updateResize():(n=a.axis)==null||n.setOrient(),s==null||s.style("display","none"),a.scale.zoom=null,t?a.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):a.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!i.resizing&&a.brush&&(a.brush.getSelection().call(a.brush.move),a.unselectRect())):a.initToRender(!0)},destroy(){const t=this.internal,{$el:{chart:e,style:n,svg:a}}=t;if(nn(t)){t.callPluginHook("$willDestroy"),t.charts.splice(t.charts.indexOf(this),1),t.unbindAllEvents(),a.select("*").interrupt(),t.resizeFunction.clear(),Ke.removeEventListener("resize",t.resizeFunction),e.classed("bb",!1).style("position",null).selectChildren().remove(),n&&n.parentNode.removeChild(n),Object.keys(this).forEach(i=>{i==="internal"&&Object.keys(t).forEach(s=>{t[s]=null}),this[i]=null,delete this[i]});for(const i in this)this[i]=()=>{}}return null},config(t,e,n){const a=this.internal,{config:i,state:s}=a,o=t==null?void 0:t.replace(/\./g,"_");let l;return t&&o in i?Xe(e)?(i[o]=e,l=e,n&&this.flush()):l=i[o]:(arguments.length===0||Wn(t))&&(l=s.orgConfig),l}},vm={color(t){return this.internal.color(t)}};const nu=function(t){const{targets:e}=this.internal.data;if(!en(t)){const n=Fe(t)?t:[t];return e.filter(a=>n.some(i=>i===a.id))}return e};gn(nu,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e=!0){let n=null;if(t){const a=this.data(t);Fe(a)&&(n=[],a.forEach(i=>{const s=i.values.map(o=>o.value);e?n=n.concat(s):n.push(s)}))}return n},names:function(t){return this.internal.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});var pm={data:nu};const mm=t=>{var e,n;return(n=(e=Ke).btoa)==null?void 0:n.call(e,encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(a,i)=>String.fromCharCode(+`0x${i}`)))};function ym(t,e,n){const{width:a,height:i}=e||n,s=new XMLSerializer,o=t.cloneNode(!0),l=_g(Cr(fn.styleSheets)).filter(m=>m.cssText).map(m=>m.cssText);o.setAttribute("xmlns",ee.xhtml),o.style.margin="0",o.style.padding="0",e.preserveFontStyle&&o.querySelectorAll("text").forEach(m=>{m.innerHTML=""});const c=s.serializeToString(o),u=fn.createElement("style");u.appendChild(fn.createTextNode(l.join(` -`)));const g=s.serializeToString(u),v=``).replace(/(\r?\n|\t)/g,"").split(/{{(.*)}}/)},setTooltipPosition(t,e){var n,a;const i=this,{config:s,scale:o,state:l,$el:{eventRect:c,tooltip:u}}=i,{bindto:g}=s.tooltip_contents,v=s.axis_rotated,m=u==null?void 0:u.datum();if(!g&&m){const S=t!=null?t:JSON.parse(m.current),[I,N]=zn(l.event,e!=null?e:c==null?void 0:c.node()),M={x:I,y:N};if(l.hasAxis&&o.x&&m&&"x"in m){const Y=(_=0,K,at="y")=>{var $t;const At=o[K?($t=i.axis)==null?void 0:$t.getId(K):at];return At?At(_)+(v?l.margin.left:l.margin.top):0};M.xAxis=o.x(m.x)+(s.tooltip_position?v?l.margin.top:l.margin.left:0),S.length===1?M.yAxis=Y(S[0].value,S[0].id):M.yAxis=Y}const{width:P=0,height:G=0}=m,H=(a=(n=s.tooltip_position)==null?void 0:n.bind(i.api)(S,P,G,c==null?void 0:c.node(),M))!=null?a:i.getTooltipPosition.bind(i)(P,G,M);["top","left"].forEach(Y=>{const _=H[Y];u.style(Y,`${_}px`),Y==="left"&&!m.xPosInPercent&&(m.xPosInPercent=_/l.current.width*100)})}},getTooltipPosition(t,e,n){var a,i,s;const o=this,{config:l,scale:c,state:u}=o,{width:g,height:v,current:m,hasFunnel:S,hasRadar:I,hasTreemap:N,isLegendRight:M,inputType:P}=u,G=o.hasType("gauge")&&!l.gauge_fullCircle,H=l.axis_rotated,Y=o.hasArcType(),_=o.getSvgLeft(!0);let K=_+m.width-o.getCurrentPaddingByDirection("right");const at=20;let{x:$t,y:At}=n;if(I)$t+=$t>=g/2?15:-(t+15),At+=15;else if(Y){if(P!=="touch"){let Ft=(i=(a=o.getTitlePadding)==null?void 0:a.call(o))!=null?i:0;Ft&&G&&((s=l.arc_rangeText_values)!=null&&s.length)&&(Ft+=10),$t+=(g-(M?o.getLegendWidth():0))/2,At+=(G?v:v/2+e)+Ft}}else if(S||N)At+=e;else{const gt={top:o.getCurrentPaddingByDirection("top",!0),left:o.getCurrentPaddingByDirection("left",!0)};H?($t+=_+gt.left+at,At=gt.top+n.xAxis+at,K-=_):($t=_+gt.left+at+(c.zoom?$t:n.xAxis),At+=gt.top-5)}if($t+t+15>K&&($t-=t+(S||N||Y?0:H?at*2:38)),At+e>m.height){const gt=N?e+10:30;At-=G?e*1.5:e+gt}const vt={top:At,left:$t};return Object.keys(vt).forEach(gt=>{vt[gt]<0&&(vt[gt]=0)}),vt},showTooltip(t,e){const n=this,{config:a,$el:{tooltip:i}}=n,s=t.filter(c=>c&&Ie(n.getBaseValue(c)));if(!i||s.length===0||!a.tooltip_show)return;let o=i.datum();const l=JSON.stringify(t);if(!o||o.current!==l){const{index:c,x:u}=t.concat().sort()[0];Ze(a.tooltip_onshow,n.api,t),i.html(n.getTooltipHTML(t,n.axis?n.axis.getXAxisTickFormat():n.categoryName.bind(n),n.getDefaultValueFormat(),n.color)).style("display",null).style("visibility",null).datum(o={index:c,x:u,current:l,width:i.property("offsetWidth"),height:i.property("offsetHeight")}),Ze(a.tooltip_onshown,n.api,t),n._handleLinkedCharts(!0,c)}n.setTooltipPosition(s,e)},bindTooltipResizePos(){const t=this,{resizeFunction:e,state:n,$el:{tooltip:a}}=t;e.add(()=>{if(a.style("display")==="block"){const{current:i}=n,{width:s,xPosInPercent:o}=a.datum();let l=i.width/100*o;const c=i.width-(l+s);c<0&&(l+=c),a.style("left",`${l}px`)}})},hideTooltip(t){var e;const n=this,{api:a,config:i,$el:{tooltip:s}}=n;if(s&&s.style("display")!=="none"&&(!i.tooltip_doNotHide||t)){const o=JSON.parse((e=s.datum().current)!=null?e:{});Ze(i.tooltip_onhide,a,o),s.style("display","none").style("visibility","hidden").datum(null),Ze(i.tooltip_onhidden,a,o)}},_handleLinkedCharts(t,e){const n=this,{charts:a,config:i,state:{event:s}}=n;if(s!=null&&s.isTrusted&&i.tooltip_linked&&a.length>1){const o=i.tooltip_linked_name;a.filter(l=>l!==n.api).forEach(l=>{const{config:c,$el:u}=l.internal,g=c.tooltip_linked,v=c.tooltip_linked_name,m=fn.body.contains(u.chart.node());if(g&&o===v&&m){const S=u.tooltip.data()[0],I=e!==(S==null?void 0:S.index);try{l.tooltip[t&&I?"show":"hide"]({index:e})}catch(N){}}})}},updateTooltipOnRedraw(t,e){var n;const a=this,{config:i,$el:{eventRect:s,svg:o,tooltip:l},state:{event:c,hasAxis:u,hasRadar:g,hasTreemap:v}}=a;if((l==null?void 0:l.style("display"))==="block"&&c){const m=t!=null?t:(n=g?o:s)==null?void 0:n.node();if(u||g)if(a.isMultipleX())a.selectRectForMultipleXs(m,!1);else{const S=e!=null?e:a.getDataIndexFromEvent(c);e===-1?a.api.tooltip.hide():(a.selectRectForSingle(m,S),a.setExpand(S,null,!0))}else{const{clientX:S,clientY:I}=c;setTimeout(()=>{let N=fn.elementFromPoint(S,I);const M=st(N).datum();if(M){const P=a.hasArcType()?a.convertToArcData(a.updateAngle(M)):M==null?void 0:M.data;v&&(N=o.node()),P&&a.showTooltip([P],N)}else a.api.tooltip.hide()},i.transition_duration)}}}},Vp={getTranslate(t,e=0){var n;const a=this,{config:i,state:s}=a,o=i.axis_rotated;let l=0,c,u;if(e&&/^(x|y2?)$/.test(t)&&(l=a.getAxisSize(t)*e),t==="main")c=Ti(s.margin.left),u=Ti(s.margin.top);else if(t==="context")c=Ti(s.margin2.left),u=Ti(s.margin2.top);else if(t==="legend")c=s.margin3.left,u=s.margin3.top;else if(t==="x")c=o?-l:0,u=o?0:s.height+l;else if(t==="y")c=o?0:-l,u=o?s.height+l:0;else if(t==="y2")c=o?0:s.width+l,u=o?-l-1:0;else if(t==="subX")c=0,u=o?0:s.height2;else if(t==="arc")c=s.arcWidth/2,u=s.arcHeight/2,(n=i.arc_rangeText_values)!=null&&n.length&&(u+=5+(a.hasType("gauge")&&i.title_text?10:0));else if(t==="polar")c=s.arcWidth/2,u=s.arcHeight/2;else if(t==="radar"){const[g,v]=a.getRadarSize();c=s.width/2-g,u=s.height/2-v}return`translate(${c}, ${u})`},transformMain(t,e){const n=this,{$el:{main:a},$T:i}=n,s=e!=null&&e.axisX?e.axisX:i(a.select(`.${on.axisX}`),t),o=e!=null&&e.axisY?e.axisY:i(a.select(`.${on.axisY}`),t),l=e!=null&&e.axisY2?e.axisY2:i(a.select(`.${on.axisY2}`),t);i(a,t).attr("transform",n.getTranslate("main")),s.attr("transform",n.getTranslate("x")),o.attr("transform",n.getTranslate("y")),l.attr("transform",n.getTranslate("y2")),a.select(`.${Be.chartArcs}`).attr("transform",n.getTranslate("arc"))},transformAll(t,e){const n=this,{config:a,state:{hasAxis:i,hasFunnel:s,hasTreemap:o},$el:l}=n;!s&&!o&&n.transformMain(t,e),i&&a.subchart_show&&n.transformContext(t,e),l.legend&&n.transformLegend(t)}},Xp={isValidChartType(t){return!!(t&&Object.values(ae).indexOf(t)>-1)},setTargetType(t,e){const n=this,{config:a,state:{withoutFadeIn:i}}=n;n.mapToTargetIds(t).forEach(s=>{i[s]=e===a.data_types[s],a.data_types[s]=e}),t||(a.data_type=e)},updateTypesElements(){const t=this,{state:{current:e}}=t;Object.keys(ae).forEach(n=>{const a=ae[n],i=t.hasType(a,null,!0),s=e.types.indexOf(a);s===-1&&i?e.types.push(a):s>-1&&!i&&e.types.splice(s,1)}),t.setChartElements()},hasType(t,e,n=!1){var a;const i=this,{config:s,state:{current:o}}=i,l=s.data_types,c=e||i.data.targets;let u=!1;return!n&&((a=o.types)==null?void 0:a.indexOf(t))>-1?u=!0:c!=null&&c.length?c.forEach(g=>{const v=l[g.id];(v===t||!v&&t==="line")&&(u=!0)}):Object.keys(l).length?Object.keys(l).forEach(g=>{l[g]===t&&(u=!0)}):u=s.data_type===t,u},hasTypeOf(t,e,n=[]){return t in mr?!mr[t].filter(a=>n.indexOf(a)===-1).every(a=>!this.hasType(a,e)):!1},isTypeOf(t,e){var n;const a=ze(t)?t:t.id,i=this.config&&(((n=this.config.data_types)==null?void 0:n[a])||this.config.data_type);return Fe(e)?e.indexOf(i)>=0:i===e},hasPointType(){const t=this;return t.hasTypeOf("Line")||t.hasType("bubble")||t.hasType("scatter")},hasArcType(t,e){return this.hasTypeOf("Arc",t,e)},hasMultiArcGauge(){return this.hasType("gauge")&&this.config.gauge_type==="multi"},isLineType(t){const e=ze(t)?t:t.id;return!this.config.data_types[e]||this.isTypeOf(e,mr.Line)},isStepType(t){return this.isTypeOf(t,mr.Step)},isSplineType(t){return this.isTypeOf(t,mr.Spline)},isAreaType(t){return this.isTypeOf(t,mr.Area)},isAreaRangeType(t){return this.isTypeOf(t,mr.AreaRange)},isBarType(t){return this.isTypeOf(t,"bar")},isBubbleType(t){return this.isTypeOf(t,"bubble")},isCandlestickType(t){return this.isTypeOf(t,"candlestick")},isScatterType(t){return this.isTypeOf(t,"scatter")},isTreemapType(t){return this.isTypeOf(t,"treemap")},isPieType(t){return this.isTypeOf(t,"pie")},isFunnelType(t){return this.isTypeOf(t,"funnel")},isGaugeType(t){return this.isTypeOf(t,"gauge")},isDonutType(t){return this.isTypeOf(t,"donut")},isPolarType(t){return this.isTypeOf(t,"polar")},isRadarType(t){return this.isTypeOf(t,"radar")},isArcType(t){return this.isPieType(t)||this.isDonutType(t)||this.isGaugeType(t)||this.isPolarType(t)||this.isRadarType(t)},isCirclePoint(t){const{config:e}=this,n=e.point_pattern;let a=!1;return(t==null?void 0:t.tagName)==="circle"?a=!0:a=e.point_type==="circle"&&(!n||Fe(n)&&n.length===0),a},lineData(t){return this.isLineType(t)?[t]:[]},arcData(t){return this.isArcType(t.data)?[t]:[]},labelishData(t){return this.isBarType(t)||this.isLineType(t)||this.isScatterType(t)||this.isBubbleType(t)||this.isCandlestickType(t)||this.isFunnelType(t)||this.isRadarType(t)||this.isTreemapType(t)?t.values.filter(e=>fe(e.value)||!!e.value):[]},barLineBubbleData(t){return this.isBarType(t)||this.isLineType(t)||this.isBubbleType(t)?t.values:[]},isInterpolationType(t){return["basis","basis-closed","basis-open","bundle","cardinal","cardinal-closed","cardinal-open","catmull-rom","catmull-rom-closed","catmull-rom-open","linear","linear-closed","monotone-x","monotone-y","natural"].indexOf(t)>=0}};function Di(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Ni(t){this._context=t}Ni.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:Di(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Yp(t){return new Ni(t)}function yr(){}function zc(t){this._context=t}zc.prototype={areaStart:yr,areaEnd:yr,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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Hp(t){return new zc(t)}function jc(t){this._context=t}jc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,a):this._context.moveTo(n,a);break;case 3:this._point=4;default:Di(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Wp(t){return new jc(t)}function Gc(t,e){this._basis=new Ni(t),this._beta=e}Gc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var a=t[0],i=e[0],s=t[n]-a,o=e[n]-i,l=-1,c;++l<=n;)c=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(a+c*s),this._beta*e[l]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Kp=function t(e){function n(a){return e===1?new Ni(a):new Gc(a,e)}return n.beta=function(a){return t(+a)},n}(.85);function Fi(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function io(t,e){this._context=t,this._k=(1-e)/6}io.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Fi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zp=function t(e){function n(a){return new io(a,e)}return n.tension=function(a){return t(+a)},n}(0);function so(t,e){this._context=t,this._k=(1-e)/6}so.prototype={areaStart:yr,areaEnd:yr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kp=function t(e){function n(a){return new so(a,e)}return n.tension=function(a){return t(+a)},n}(0);function oo(t,e){this._context=t,this._k=(1-e)/6}oo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Fi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Jp=function t(e){function n(a){return new oo(a,e)}return n.tension=function(a){return t(+a)},n}(0);const Vc=Math.abs,xn=Math.atan2,Nr=Math.cos,Qp=Math.max,lo=Math.min,Qn=Math.sin,ra=Math.sqrt,Tn=1e-12,Na=Math.PI,Bi=Na/2,Ui=2*Na;function _p(t){return t>1?0:t<-1?Na:Math.acos(t)}function Xc(t){return t>=1?Bi:t<=-1?-Bi:Math.asin(t)}function co(t,e,n){var a=t._x1,i=t._y1,s=t._x2,o=t._y2;if(t._l01_a>Tn){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);a=(a*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Tn){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,g=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*u+t._x1*t._l23_2a-e*t._l12_2a)/g,o=(o*u+t._y1*t._l23_2a-n*t._l12_2a)/g}t._context.bezierCurveTo(a,i,s,o,t._x2,t._y2)}function Yc(t,e){this._context=t,this._alpha=e}Yc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:co(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qp=function t(e){function n(a){return e?new Yc(a,e):new io(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Hc(t,e){this._context=t,this._alpha=e}Hc.prototype={areaStart:yr,areaEnd:yr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:co(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var tm=function t(e){function n(a){return e?new Hc(a,e):new so(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Wc(t,e){this._context=t,this._alpha=e}Wc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,a=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:co(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var em=function t(e){function n(a){return e?new Wc(a,e):new oo(a,0)}return n.alpha=function(a){return t(+a)},n}(.5);function Kc(t){return t<0?-1:1}function Zc(t,e,n){var a=t._x1-t._x0,i=e-t._x1,s=(t._y1-t._y0)/(a||i<0&&-0),o=(n-t._y1)/(i||a<0&&-0),l=(s*i+o*a)/(a+i);return(Kc(s)+Kc(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(l))||0}function kc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function uo(t,e,n){var a=t._x0,i=t._y0,s=t._x1,o=t._y1,l=(s-a)/3;t._context.bezierCurveTo(a+l,i+l*e,s-l,o-l*n,s,o)}function zi(t){this._context=t}zi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:uo(this,this._t0,kc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,uo(this,kc(this,n=Zc(this,t,e)),n);break;default:uo(this,this._t0,n=Zc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Jc(t){this._context=new Qc(t)}(Jc.prototype=Object.create(zi.prototype)).point=function(t,e){zi.prototype.point.call(this,e,t)};function Qc(t){this._context=t}Qc.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,a,i,s){this._context.bezierCurveTo(e,t,a,n,s,i)}};function nm(t){return new zi(t)}function rm(t){return new Jc(t)}function _c(t){this._context=t}_c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var a=qc(t),i=qc(e),s=0,o=1;o=0;--e)i[e]=(o[e]-i[e+1])/s[e];for(s[n-1]=(t[n]+i[n-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function sm(t){return new ji(t,.5)}function om(t){return new ji(t,0)}function lm(t){return new ji(t,1)}function cm(t){const e=this;let n;return e.isLineType(t)?n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType)):e.isBarType(t)&&(n=e.generateGetBarPoints(e.getShapeIndices(e.isBarType))),n}var um={getDrawShape(){const t=this,e=t.config.axis_rotated,{hasRadar:n,hasTreemap:a}=t.state,i={type:{},indices:{},pos:{}};if(!a&&["bar","candlestick","line","area"].forEach(s=>{const o=In(/^(bubble|scatter)$/.test(s)?"line":s);if(t.hasType(s)||t.hasTypeOf(o)||s==="line"&&(t.hasType("bubble")||t.hasType("scatter"))){const l=t.getShapeIndices(t[`is${o}Type`]),c=t[`generateDraw${o}`];i.indices[s]=l,i.type[s]=c?c.bind(t)(l,!1):void 0}}),!t.hasArcType()||n||a){let s,o;a||(s=n?t.radarCircleX:e?t.circleY:t.circleX,o=n?t.radarCircleY:e?t.circleX:t.circleY),i.pos={xForText:t.generateXYForText(i.indices,!0),yForText:t.generateXYForText(i.indices,!1),cx:(s||function(){}).bind(t),cy:(o||function(){}).bind(t)}}return i},getShapeIndices(t){const e=this,{config:n}=e,a=n.data_xs,i=nn(a),s={};let o=i?{}:0;return i&&Ps(Object.keys(a).map(l=>a[l])).forEach(l=>{o[l]=0,s[l]={}}),e.filterTargetsToShow(e.data.targets.filter(t,e)).forEach(l=>{var c;const u=l.id in a?a[l.id]:"",g=u?s[u]:s;for(let v=0,m;m=n.data_groups[v];v++)if(!(m.indexOf(l.id)<0))for(let S=0,I;I=m[S];S++){if(I in g){g[l.id]=g[I];break}l.id!==I&&u&&(g[I]=(c=g[l.id])!=null?c:o[u])}en(g[l.id])&&(g[l.id]=u?o[u]++:o++,g.__max__=(u?o[u]:o)-1)}),s},getIndices(t,e,n){const a=this,{data_xs:i,bar_indices_removeNull:s}=a.config,{id:o,index:l}=e;if(a.isBarType(o)&&s){const c={};return a.getAllValuesOnIndex(l,!0).forEach((u,g)=>{c[u.id]=g,c.__max__=g}),c}return nn(i)?t[i[o]]:t},getIndicesMax(t){return nn(this.config.data_xs)?Object.keys(t).map(e=>t[e].__max__||0).reduce((e,n)=>e+n):t.__max__},getShapeX(t,e,n){const a=this,{config:i,scale:s}=a,o=n?s.subX:s.zoom||s.x,l=i.bar_overlap,c=i.bar_padding,u=(v,m)=>v+m,g=Jn(t)&&(t._$total.length?t._$total.reduce(u)/2:0);return v=>{const m=a.getIndices(e,v,"getShapeX"),S=v.id in m?m[v.id]:0,I=(m.__max__||0)+1;let N=0;if(nn(v.x)){const M=o(v.x,!0);if(g){const P=t[v.id]||t._$width;N=l?M-P/2:M-P+t._$total.slice(0,S+1).reduce(u)-g}else N=M-(fe(t)?t:t._$width)*(I/2-(l?1:S))}return t&&N&&I>1&&c&&(S&&(N+=c*S),I>2?N-=(I-1)*c/2:I===2&&(N-=c/2)),N}},getShapeY(t){const e=this,n=e.isStackNormalized();return a=>{let{value:i}=a;return fe(a)?i=a:e.isAreaRangeType(a)?i=e.getBaseValue(a,"mid"):n?i=e.getRatio("index",a,!0):e.isBubbleZType(a)?i=e.getBubbleZData(a.value,"y"):e.isBarRangeType(a)&&(i=i[1]),e.getYScaleById(a.id,t)(i)}},getShapeYMin(t){const e=this,n=e.axis.getId(t),a=e.scale[n],[i]=a.domain(),s=e.config[`axis_${n}_inverted`];return!e.isGrouped(t)&&!s&&i>0?i:0},getShapeOffsetData(t){const e=this,n=e.orderTargets(e.filterTargetsToShow(e.data.targets.filter(t,e))),a=e.isStackNormalized(),i=n.map(o=>{let l=o.values;const c={};e.isStepType(o)&&(l=e.convertValuesToStep(l));const u=l.reduce((g,v)=>{const m=Number(v.x);return g[m]=v,c[m]=a?e.getRatio("index",v,!0):v.value,g},{});return{id:o.id,rowValues:l,rowValueMapByXValue:u,values:c}});return{indexMapByTargetId:n.reduce((o,{id:l},c)=>(o[l]=c,o),{}),shapeOffsetTargets:i}},getShapeOffset(t,e,n){const a=this,{shapeOffsetTargets:i,indexMapByTargetId:s}=a.getShapeOffsetData(t),o=a.config.data_groupsZeroAs;return(l,c)=>{const{id:u,value:g,x:v}=l,m=a.getIndices(e,l),S=a.getYScaleById(u,n);if(a.isBarRangeType(l))return S(g[0]);const I=Number(v),N=S(o==="zero"?0:a.getShapeYMin(u));let M=N;return i.filter(P=>P.id!==u&&m[P.id]===m[u]).forEach(P=>{const{id:G,rowValueMapByXValue:H,rowValues:Y,values:_}=P;if(s[G]=0&&fe(K)&&(g!==0||o==="positive"&&K>0||o==="negative"&&K<0)&&(M+=S(K)-N)}}),M}},circleY(t,e){const n=this,a=t.id;let i;return n.isGrouped(a)&&(i=cm.bind(n)(t)),i?i(t,e)[0][1]:n.getYScaleById(a)(n.getBaseValue(t))},getBarW(t,e,n){var a,i,s,o,l;const c=this,{config:u,org:g,scale:v,state:m}=c,S=c.getMaxDataCount(),I=t==="bar"&&((a=u.data_groups)==null?void 0:a.length),N=`${t}_width`,{k:M}=(s=(i=c.getZoomTransform)==null?void 0:i.call(c))!=null?s:{k:1},P=[(o=u.axis_x_min)!=null?o:g.xDomain[0],(l=u.axis_x_max)!=null?l:g.xDomain[1]].map(c.axis.isTimeSeries()?Dn.bind(c):Number);let G=e.tickInterval(S);if(v.zoom&&!c.axis.isCategorized()&&M>1){const _=P.every((K,at)=>K===g.xDomain[at]);G=g.xDomain.map((K,at)=>{const $t=_?K:K-Math.abs(P[at]);return v.zoom($t)}).reduce((K,at)=>Math.abs(K)+at)/S}const H=_=>{const K=_?u[N][_]:u[N],at=_?K.ratio:u[`${N}_ratio`],$t=_?K.max:u[`${N}_max`],At=fe(K)?K:de(K)?K.call(c,m.width,n,S):n?G*at/n:0;return $t&&At>$t?$t:At};let Y=H();return!I&&Jn(u[N])&&(Y={_$width:Y,_$total:[]},c.filterTargetsToShow(c.data.targets).forEach(_=>{u[N][_.id]&&(Y[_.id]=H(_.id),Y._$total.push(Y[_.id]||Y._$width))})),Y},getShapeByIndex(t,e,n){const a=this,{$el:i}=a,s=Ie(e)?`-${e}`:"";let o=i[t];return o&&!o.empty()?o=o.filter(l=>n?l.id===n:!0).filter(l=>Ie(e)?l.index===e:!0):o=(n?i.main.selectAll(`.${Ne[`${t}s`]}${a.getTargetSelectorSuffix(n)}`):i.main).selectAll(`.${Ne[t]}${s}`),o},isWithinShape(t,e){var n;const a=this,i=st(t);let s;return a.isTargetToShow(e.id)?(n=a.hasValidPointType)!=null&&n.call(a,t.nodeName)?s=a.isStepType(e)?a.isWithinStep(t,a.getYScaleById(e.id)(a.getBaseValue(e))):a.isWithinCircle(t,a.isBubbleType(e)?a.pointSelectR(e)*1.5:0):t.nodeName==="path"&&(s=i.classed(Ne.bar)?a.isWithinBar(t):!0):s=!1,s},getInterpolate(t){const n=this.getInterpolateType(t);return{basis:Yp,"basis-closed":Hp,"basis-open":Wp,bundle:Kp,cardinal:Zp,"cardinal-closed":kp,"cardinal-open":Jp,"catmull-rom":qp,"catmull-rom-closed":tm,"catmull-rom-open":em,"monotone-x":nm,"monotone-y":rm,natural:am,"linear-closed":im,linear:fo,step:sm,"step-after":lm,"step-before":om}[n]},getInterpolateType(t){const e=this,{config:n}=e,a=n.spline_interpolation_type,i=e.isInterpolationType(a)?a:"cardinal";return e.isSplineType(t)?i:e.isStepType(t)?n.line_step_type:"linear"},isWithinBar(t){const e=zn(this.state.event,t),n=Vl(t),[a,i]=n,s=Math.min(a.x,i.x),o=Math.min(a.y,i.y),l=this.config.bar_sensitivity,{width:c,height:u}=t.getBBox(),g=s-l,v=s+c+l,m=o+u+l,S=o-l;return ge in t?fm(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$n=(t,e,n)=>dm(t,typeof e!="symbol"?e+"":e,n);class Fr{constructor(e){$n(this,"api"),$n(this,"config"),$n(this,"cache"),$n(this,"$el"),$n(this,"state"),$n(this,"charts"),$n(this,"data",{xs:{},targets:[]}),$n(this,"axis"),$n(this,"scale",{x:null,y:null,y2:null,subX:null,subY:null,subY2:null,zoom:null}),$n(this,"org",{xScale:null,xDomain:null}),$n(this,"color"),$n(this,"patterns"),$n(this,"levelColor"),$n(this,"point"),$n(this,"brush"),$n(this,"format",{extraLineClasses:null,xAxisTick:null,dataTime:null,defaultAxisTime:null,axisTime:null});const n=this;n.api=e,n.config=new Pr,n.cache=new fv;const a=new ov;n.$el=a.getStore("element"),n.state=a.getStore("state"),n.$T=n.$T.bind(n)}$T(e,n,a){const{config:i,state:s}=this,o=i.transition_duration,l=i.subchart_show;let c=e;return c&&("tagName"in c&&(c=st(c)),c=(n!==!1&&o||n)&&(!s.zooming||s.dragging)&&!s.resizing&&s.rendered&&!l?c.transition(a).duration(o):c),c}beforeInit(){const e=this;e.callPluginHook("$beforeInit"),Ze(e.config.onbeforeinit,e.api)}afterInit(){const e=this;e.callPluginHook("$afterInit"),Ze(e.config.onafterinit,e.api)}init(){const e=this,{config:n,state:a,$el:i}=e,s=n.boost_useCssRule;if(dv(e),a.hasRadar=!a.hasAxis&&e.hasType("radar"),a.hasFunnel=!a.hasAxis&&e.hasType("funnel"),a.hasTreemap=!a.hasAxis&&e.hasType("treemap"),a.hasAxis=!e.hasArcType()&&!a.hasFunnel&&!a.hasTreemap,a.datetimeId=`bb-${+new Date*lr()}`,s){const l=fn.createElement("style");l.type="text/css",fn.head.appendChild(l),a.style={rootSelctor:`.${a.datetimeId}`,sheet:l.sheet},i.style=l}const o={element:n.bindto,classname:"bb"};De(n.bindto)&&(o.element=n.bindto.element||"#chart",o.classname=n.bindto.classname||o.classname),i.chart=de(o.element.node)?n.bindto.element:st(o.element||[]),i.chart.empty()&&(i.chart=st(fn.body.appendChild(fn.createElement("div")))),i.chart.html("").classed(o.classname,!0).classed(a.datetimeId,s).style("position","relative"),e.initParams(),e.initToRender()}initToRender(e){const n=this,{config:a,state:i,$el:{chart:s}}=n,o=()=>s.style("display")==="none"||s.style("visibility")==="hidden",l=a.render.lazy||o(),c=Ke.MutationObserver;l&&c&&a.render.observe!==!1&&!e&&new c((u,g)=>{o()||(g.disconnect(),!i.rendered&&n.initToRender(!0))}).observe(s.node(),{attributes:!0,attributeFilter:["class","style"]}),(!l||e)&&n.convertData(a,u=>{n.initWithData(u),n.afterInit()})}initParams(){var e;const n=this,{config:a,format:i,state:s}=n,o=a.axis_rotated;if(n.color=n.generateColor(),n.levelColor=n.generateLevelColor(),a.padding===!1&&(a.axis_x_show=!1,a.axis_y_show=!1,a.axis_y2_show=!1,a.subchart_show=!1),(n.hasPointType()||(e=n.hasLegendDefsPoint)!=null&&e.call(n))&&(n.point=n.generatePoint()),s.hasAxis){n.initClip(),i.extraLineClasses=n.generateExtraLineClass(),i.dataTime=a.data_xLocaltime?Yo:Ho,i.axisTime=a.axis_x_localtime?rs:as;const l=n.config.zoom_enabled&&n.config.zoom_type==="drag";i.defaultAxisTime=c=>{const{x:u,zoom:g}=n.scale,v=l?g:g&&u.orgDomain().toString()!==g.domain().toString(),m=c.getMilliseconds()&&".%L"||c.getSeconds()&&".:%S"||c.getMinutes()&&"%I:%M"||c.getHours()&&"%I %p"||c.getDate()!==1&&"%b %d"||v&&c.getDate()===1&&"%b'%y"||c.getMonth()&&"%-m/%-d"||"%Y";return i.axisTime(m)(c)}}s.isLegendRight=a.legend_position==="right",s.isLegendInset=a.legend_position==="inset",s.isLegendTop=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="top-right",s.isLegendLeft=a.legend_inset_anchor==="top-left"||a.legend_inset_anchor==="bottom-left",s.rotatedPadding.top=n.getResettedPadding(s.rotatedPadding.top),s.rotatedPadding.right=o&&!a.axis_x_show?0:30,s.inputType=tv(a.interaction_inputType_mouse,a.interaction_inputType_touch)}initWithData(e){var n,a,i;const s=this,{config:o,scale:l,state:c,$el:u,org:g}=s,{hasAxis:v,hasFunnel:m,hasTreemap:S}=c,I=o.interaction_enabled,N=s.hasType("polar"),M=o.data_labels_backgroundColors;if(v&&(s.axis=s.getAxisInstance(),o.zoom_enabled&&s.initZoom()),s.data.xs={},s.data.targets=s.convertDataToTargets(e),o.data_filter&&(s.data.targets=s.data.targets.filter(o.data_filter.bind(s.api))),o.data_hide&&s.addHiddenTargetIds(o.data_hide===!0?s.mapToIds(s.data.targets):o.data_hide),o.legend_hide&&s.addHiddenLegendIds(o.legend_hide===!0?s.mapToIds(s.data.targets):o.legend_hide),s.updateSizes(),s.updateScales(!0),v){const{x:H,y:Y,y2:_,subX:K,subY:at,subY2:$t}=l;H&&(H.domain(qr(s.getXDomain(s.data.targets),!o.axis_x_inverted)),K.domain(H.domain()),g.xDomain=H.domain()),Y&&(Y.domain(s.getYDomain(s.data.targets,"y")),at.domain(Y.domain())),_&&(_.domain(s.getYDomain(s.data.targets,"y2")),$t&&$t.domain(_.domain()))}if(u.svg=u.chart.append("svg").style("overflow","hidden").style("display","block"),I&&c.inputType){const H=c.inputType==="touch",{onclick:Y,onover:_,onout:K}=o;u.svg.on("click",(Y==null?void 0:Y.bind(s.api))||null).on(H?"touchstart":"mouseenter",(_==null?void 0:_.bind(s.api))||null).on(H?"touchend":"mouseleave",(K==null?void 0:K.bind(s.api))||null)}o.svg_classname&&u.svg.attr("class",o.svg_classname);const P=de(o.color_tiles)&&s.patterns;(v||P||N||S||M||(n=s.hasLegendDefsPoint)!=null&&n.call(s))&&(u.defs=u.svg.append("defs"),v&&["id","idXAxis","idYAxis","idGrid"].forEach(H=>{s.appendClip(u.defs,c.clip[H])}),s.generateTextBGColorFilter(M),P&&s.patterns.forEach(H=>u.defs.append(()=>H.node))),s.updateSvgSize(),s.bindResize();const G=u.svg.append("g").classed(Se.main,!0).attr("transform",m||S?null:s.getTranslate("main"));if(u.main=G,o.subchart_show&&s.initSubchart(),o.tooltip_show&&s.initTooltip(),o.title_text&&s.initTitle(),!S&&o.legend_show&&s.initLegend(),o.data_empty_label_text&&G.append("text").attr("class",`${An.text} ${Se.empty}`).attr("text-anchor","middle").attr("dominant-baseline","middle"),v&&(o.regions.length&&s.initRegion(),!o.clipPath&&s.axis.init()),G.append("g").classed(Se.chart,!0).attr("clip-path",v?c.clip.path:null),s.callPluginHook("$init"),s.initChartElements(),v&&(I&&((a=s.initEventRect)==null||a.call(s)),s.initGrid(),o.clipPath&&((i=s.axis)==null||i.init())),s.updateTargets(s.data.targets),s.updateDimension(),Ze(o.oninit,s.api),s.setBackground(),s.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1,initializing:!0}),o.data_onmin||o.data_onmax){const H=s.getMinMaxData();Ze(o.data_onmin,s.api,H.min),Ze(o.data_onmax,s.api,H.max)}o.tooltip_show&&s.initShowTooltip(),c.rendered=!0}initChartElements(){const e=this,{hasAxis:n,hasRadar:a,hasTreemap:i}=e.state,s=[];if(n){const o=["bar","bubble","candlestick","line"];e.config.bar_front&&o.push(o.shift()),o.forEach(l=>{const c=In(l);(l==="line"&&e.hasTypeOf(c)||e.hasType(l))&&s.push(c)})}else if(i)s.push("Treemap");else if(e.hasType("funnel"))s.push("Funnel");else{const o=e.hasType("polar");a||s.push("Arc","Pie"),e.hasType("gauge")?s.push("Gauge"):a?s.push("Radar"):o&&s.push("Polar")}s.forEach(o=>{e[`init${o}`]()}),nn(e.config.data_labels)&&!e.hasArcType(null,["radar"])&&e.initText()}setChartElements(){const e=this,{$el:{chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:u,needle:g,arcs:v,circle:m,bar:S,candlestick:I,line:N,area:M,text:P}}=e;e.api.$={chart:n,svg:a,defs:i,main:s,tooltip:o,legend:l,title:c,grid:u,arc:v,circles:m,bar:{bars:S},candlestick:I,line:{lines:N,areas:M},needle:g,text:{texts:P}}}setBackground(){const e=this,{config:{background:n},state:a,$el:{svg:i}}=e;if(nn(n)){const s=i.select("g").insert(n.imgUrl?"image":"rect",":first-child");n.imgUrl?s.attr("href",n.imgUrl):n.color&&s.style("fill",n.color).attr("clip-path",a.clip.path),s.attr("class",n.class||null).attr("width","100%").attr("height","100%")}}updateTargets(e){var n;const a=this,{hasAxis:i,hasFunnel:s,hasRadar:o,hasTreemap:l}=a.state,c=g=>a[`updateTargetsFor${g}`](e.filter(a[`is${g}Type`].bind(a)));if(a.updateTargetsForText(e),i)["bar","candlestick","line"].forEach(g=>{const v=In(g);(g==="line"&&a.hasTypeOf(v)||a.hasType(g))&&c(v)}),a.updateTargetsForSubchart&&a.updateTargetsForSubchart(e);else if(a.hasArcType(e)){let g="Arc";o?g="Radar":a.hasType("polar")&&(g="Polar"),c(g)}else s?c("Funnel"):l&&c("Treemap");const u=a.hasType("bubble")||a.hasType("scatter");u&&((n=a.updateTargetForCircle)==null||n.call(a)),a.filterTargetsToShowAtInit(u)}filterTargetsToShowAtInit(e=!1){const n=this,{$el:{svg:a},$T:i}=n;let s=`.${Se.target}`;e&&(s+=`, .${pn.chartCircles} > .${pn.circles}`),i(a.selectAll(s).filter(o=>n.isTargetToShow(o.id))).style("opacity",null)}getWithOption(e){const n={Dimension:!0,EventRect:!0,Legend:!1,Subchart:!0,Transform:!1,Transition:!0,TrimXDomain:!0,UpdateXAxis:"UpdateXDomain",UpdateXDomain:!1,UpdateOrgXDomain:!1,TransitionForExit:"Transition",TransitionForAxis:"Transition",Y:!0};return Object.keys(n).forEach(a=>{let i=n[a];ze(i)&&(i=n[i]),n[a]=pr(e,`with${a}`,i)}),n}initialOpacity(e){const n=this,{withoutFadeIn:a}=n.state;return n.getBaseValue(e)!==null&&a[e.id]?null:"0"}bindResize(){const e=this,{config:n,state:a}=e,i=pv(n.resize_timer),s=[];s.push(()=>Ze(n.onresize,e.api)),n.resize_auto&&s.push(()=>{a.resizing=!0,n.legend_show&&(e.updateSizes(),e.updateLegend()),e.api.flush(!1)}),s.push(()=>{Ze(n.onresized,e.api),a.resizing=!1}),s.forEach(o=>i.add(o)),e.resizeFunction=i,Ke.addEventListener("resize",e.resizeFunction=i)}callPluginHook(e,...n){this.config.plugins.forEach(a=>{e==="$beforeInit"&&(a.$$=this,this.api.plugins.push(a)),a[e](...n)})}}gn(Fr.prototype,[Cv,Pv,wv,Bv,Uv,Vv,Xv,Fv,Yv,Hv,Wv,Dp,um,Np,Fp,zp,jp,Gp,Vp,Xp]);function hm(t){const e=this.config;let n,a,i;const s=()=>{const o=a.shift();if(o&&n&&Jn(n)&&o in n)return n=n[o],s();if(!o)return n};Object.keys(e).forEach(o=>{n=t,a=o.split("_"),i=s(),Xe(i)&&(e[o]=i)}),this.api&&(this.state.orgConfig=t)}var gm={resize(t){const e=this.internal,{config:n,state:a}=e;a.rendered&&(n.size_width=t?t.width:null,n.size_height=t?t.height:null,a.resizing=!0,this.flush(!1),e.resizeFunction())},flush(t){var e,n;const a=this.internal,{state:i,$el:{zoomResetBtn:s}}=a;i.rendered?(i.resizing?(e=a.brush)==null||e.updateResize():(n=a.axis)==null||n.setOrient(),s==null||s.style("display","none"),a.scale.zoom=null,t?a.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withLegend:!0}):a.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1}),!i.resizing&&a.brush&&(a.brush.getSelection().call(a.brush.move),a.unselectRect())):a.initToRender(!0)},destroy(){const t=this.internal,{$el:{chart:e,style:n,svg:a}}=t;if(nn(t)){t.callPluginHook("$willDestroy"),t.charts.splice(t.charts.indexOf(this),1),t.unbindAllEvents(),a.select("*").interrupt(),t.resizeFunction.clear(),Ke.removeEventListener("resize",t.resizeFunction),e.classed("bb",!1).style("position",null).selectChildren().remove(),n&&n.parentNode.removeChild(n),Object.keys(this).forEach(i=>{i==="internal"&&Object.keys(t).forEach(s=>{t[s]=null}),this[i]=null,delete this[i]});for(const i in this)this[i]=()=>{}}return null},config(t,e,n){const a=this.internal,{config:i,state:s}=a,o=t==null?void 0:t.replace(/\./g,"_");let l;return t&&o in i?Xe(e)?(i[o]=e,l=e,n&&this.flush()):l=i[o]:(arguments.length===0||Wn(t))&&(l=s.orgConfig),l}},vm={color(t){return this.internal.color(t)}};const nu=function(t){const{targets:e}=this.internal.data;if(!en(t)){const n=Fe(t)?t:[t];return e.filter(a=>n.some(i=>i===a.id))}return e};gn(nu,{shown:function(t){return this.internal.filterTargetsToShow(this.data(t))},values:function(t,e=!0){let n=null;if(t){const a=this.data(t);Fe(a)&&(n=[],a.forEach(i=>{const s=i.values.map(o=>o.value);e?n=n.concat(s):n.push(s)}))}return n},names:function(t){return this.internal.updateDataAttributes("names",t)},colors:function(t){return this.internal.updateDataAttributes("colors",t)},axes:function(t){return this.internal.updateDataAttributes("axes",t)},min:function(){return this.internal.getMinMaxData().min},max:function(){return this.internal.getMinMaxData().max}});var pm={data:nu};const mm=t=>{var e,n;return(n=(e=Ke).btoa)==null?void 0:n.call(e,encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(a,i)=>String.fromCharCode(+`0x${i}`)))};function ym(t,e,n){const{width:a,height:i}=e||n,s=new XMLSerializer,o=t.cloneNode(!0),l=_g(Cr(fn.styleSheets)).filter(m=>m.cssText).map(m=>m.cssText);o.setAttribute("xmlns",ne.xhtml),o.style.margin="0",o.style.padding="0",e.preserveFontStyle&&o.querySelectorAll("text").forEach(m=>{m.innerHTML=""});const c=s.serializeToString(o),u=fn.createElement("style");u.appendChild(fn.createTextNode(l.join(` +`)));const g=s.serializeToString(u),v=` ${g} ${c.replace(/(url\()[^#]+/g,"$1")} - `;return`data:image/svg+xml;base64,${mm(v)}`}function xm(t,e){const{top:n,left:a}=e,{x:i,y:s}=t.getBBox(),{a:o,b:l,c,d:u,e:g,f:v}=t.getScreenCTM(),{width:m,height:S}=t.getBoundingClientRect();return{x:o*i+c*s+g-a,y:l*i+u*s+v-n+(S-Math.round(S/4)),width:m,height:S}}function Tm(t){const{left:e,top:n}=t.getBoundingClientRect(),a=s=>s.textContent||s.childElementCount,i=[];return Cr(t.querySelectorAll("text")).filter(a).forEach(s=>{const o=l=>{const{fill:c,fontFamily:u,fontSize:g,textAnchor:v,transform:m}=Ke.getComputedStyle(l),{x:S,y:I,width:N,height:M}=xm(l,{left:e,top:n});return{[l.textContent]:{x:S,y:I,width:N,height:M,fill:c,fontFamily:u,fontSize:g,textAnchor:v,transform:m}}};if(s.childElementCount>1){const l=[];return Cr(s.querySelectorAll("tspan")).filter(a).forEach(c=>{i.push(o(c))}),l}else i.push(o(s))}),i}function $m(t,e){e.forEach(n=>{Object.keys(n).forEach(a=>{const{x:i,y:s,width:o,height:l,fill:c,fontFamily:u,fontSize:g,transform:v}=n[a];if(t.save(),t.font=`${g} ${u}`,t.fillStyle=c,v==="none")t.fillText(a,i,s);else{const m=v.replace(/(matrix|\(|\))/g,"").split(",");m.splice(4).every(S=>+S==0)?(m.push(i+o-o/4),m.push(s-l+l/3)):(m.push(i),m.push(s)),t.transform(...m),t.fillText(a,0,0)}t.restore()})})}var Sm={export(t,e){const n=this.internal,{state:a,$el:{chart:i,svg:s}}=n,{width:o,height:l}=a.current,c=_r({width:o,height:l,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),u=ym(i.node(),c,{width:o,height:l}),g=c.preserveFontStyle?Tm(s.node()):[];if(e&&de(e)){const v=new Image;v.crossOrigin="Anonymous",v.onload=()=>{const m=fn.createElement("canvas"),S=m.getContext("2d");m.width=c.width||o,m.height=c.height||l,S.drawImage(v,0,0),g.length&&($m(S,g),g.length=0),e.bind(this)(m.toDataURL(c.mimeType))},v.src=u}return u}},Am={focus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(We.focused,!0).classed(We.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(a),e.hasType("gauge")&&e.markOverlapped(t,e,`.${Ln.gaugeValue}`)),e.toggleFocusLegend(a,!0),n.focusedTargetIds=a,n.defocusedTargetIds=n.defocusedTargetIds.filter(s=>a.indexOf(s)<0)},defocus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e))).classed(We.focused,!1).classed(We.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(a),e.hasType("gauge")&&e.undoMarkOverlapped(e,`.${Ln.gaugeValue}`)),e.toggleFocusLegend(a,!1),n.focusedTargetIds=n.focusedTargetIds.filter(s=>a.indexOf(s)<0),n.defocusedTargetIds=a},revert(t){const e=this.internal,{config:n,state:a,$el:i}=e,s=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(s)).classed(We.focused,!1).classed(We.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(s),n.legend_show&&(e.showLegend(s.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(s)).filter(function(){return st(this).classed(We.legendItemFocused)}).classed(We.legendItemFocused,!1)),a.focusedTargetIds=[],a.defocusedTargetIds=[]}},bm={legend:{show:function(t){const e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){const e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},Em={load(t){const e=this.internal,{config:n}=e;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(a=>{n.data_classes[a]=t.classes[a]}),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(a=>{n.data_axes[a]=t.axes[a]}),"colors"in t&&Object.keys(t.colors).forEach(a=>{n.data_colors[a]=t.colors[a]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTargetIds(t.unload===!0?null:t.unload),()=>{Ul(()=>e.loadFromArgs(t))}):e.loadFromArgs(t)},unload(t){const e=this.internal;let n=t||{};Wn(n)&&this.tooltip.hide(),Fe(n)?n={ids:n}:ze(n)&&(n={ids:[n]});const a=e.mapToTargetIds(n.ids);e.unload(a,()=>{e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.cache.remove(a),oc.call(e,n.done,n.resizeAfter)})}};function ru(t,e,n){const a=this.internal,i=a.mapToTargetIds(e),s=a.state.hiddenTargetIds.map(c=>i.indexOf(c)>-1&&c).filter(Boolean);a.state.toggling=!0,a[`${t?"remove":"add"}HiddenTargetIds`](i);const o=a.$el.svg.selectAll(a.selectorTargets(i)),l=t?null:"0";t&&s.length&&(o.style("display",null),Ze(a.config.data_onshown,this,s)),a.$T(o).style("opacity",l,"important").call($i,()=>{!t&&s.length===0&&(o.style("display","none"),Ze(a.config.data_onhidden,this,i)),o.style("opacity",l)}),n.withLegend&&a[`${t?"show":"hide"}Legend`](i),a.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),a.state.toggling=!1}var Rm={show(t,e={}){ru.call(this,!0,t,e)},hide(t,e={}){ru.call(this,!1,t,e)},toggle(t,e={}){const n=this.internal,a={show:[],hide:[]};n.mapToTargetIds(t).forEach(i=>a[n.isTargetToShow(i)?"hide":"show"].push(i)),a.show.length&&this.show(a.show,e),a.hide.length&&setTimeout(()=>this.hide(a.hide,e),0)}},Om={tooltip:{show:function(t){var e,n,a;const i=this.internal,{$el:s,config:o,state:{eventReceiver:l,hasFunnel:c,hasTreemap:u,inputType:g}}=i;let v,m;if(t.mouse&&(m=t.mouse),t.data){const{data:S}=t,I=(e=i.getYScaleById(S.id))==null?void 0:e(S.value);if((c||u)&&S.id){const N=i.selectorTarget(S.id,void 0,`.${tn.shape}`);l.rect=s.main.select(N)}else i.isMultipleX()?m=[i.xx(S),I]:(o.tooltip_grouped||(m=[0,I]),v=(a=S.index)!=null?a:i.hasArcType()&&S.id?(n=i.getArcElementByIdOrIndex(S.id))==null?void 0:n.datum().index:i.getIndexByX(S.x))}else Xe(t.x)?v=i.getIndexByX(t.x):Xe(t.index)&&(v=t.index);(g==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(S=>{i.dispatchEvent(S,v,m)})},hide:function(){var t,e,n;const a=this.internal,{state:{inputType:i},$el:{tooltip:s}}=a,o=s==null?void 0:s.datum();if(o){const{index:l}=JSON.parse(o.current)[0];(i==="mouse"?["mouseout"]:["touchend"]).forEach(c=>{a.dispatchEvent(c,l)})}i==="touch"&&a.callOverOutForTouch(),a.hideTooltip(!0),(t=a.hideGridFocus)==null||t.call(a),(e=a.unexpandCircles)==null||e.call(a),(n=a.expandBarTypeShapes)==null||n.call(a,!1)}}},Im=Object.defineProperty,Cm=(t,e,n)=>e in t?Im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,au=(t,e,n)=>Cm(t,typeof e!="symbol"?e+"":e,n);class xr{constructor(e){au(this,"plugins",[]),au(this,"internal");const n=new Fr(this);this.internal=n,function a(i,s,o){Object.keys(i).forEach(l=>{const c=de(i[l]),u=s!==o,g=nn(i[l]),v=g&&Object.keys(i[l]).length>0;c&&(!u&&v||u)?s[l]=i[l].bind(o):g&&!c?s[l]={}:s[l]=i[l],v&&a(i[l],s[l],o)})}(xr.prototype,this,this),hm.call(n,e),n.beforeInit(),n.init()}}gn(xr.prototype,[gm,vm,pm,Sm,Am,bm,Em,Rm,Om]);function iu(t=!1,e,n,a){const i=this,{config:s,$el:{main:o}}=i,l=s.data_selection_grouped,c=s.data_selection_isselectable.bind(i.api);s.data_selection_enabled&&o.selectAll(`.${tn.shapes}`).selectAll(`.${tn.shape}`).each(function(u){const g=st(this),{id:v,index:m}=u.data?u.data:u,S=i.getToggle(this,u).bind(i),I=l||!e||e.indexOf(v)>=0,N=!n||n.indexOf(m)>=0,M=g.classed(ke.SELECTED);g.classed(ar.line)||g.classed(qa.area)||(t?I&&N&&c(u)&&!M?S(!0,g.classed(ke.SELECTED,!0),u,m):Xe(a)&&a&&M&&S(!1,g.classed(ke.SELECTED,!1),u,m):I&&N&&c(u)&&M&&S(!1,g.classed(ke.SELECTED,!1),u,m))})}var Pm={selected(t){const e=this.internal,n=[];return e.$el.main.selectAll(`.${tn.shapes+e.getTargetSelectorSuffix(t)}`).selectAll(`.${tn.shape}`).filter(function(){return st(this).classed(ke.SELECTED)}).each(a=>n.push(a)),n},select(t,e,n){const a=this.internal;iu.bind(a)(!0,t,e,n)},unselect(t,e){const n=this.internal;iu.bind(n)(!1,t,e)}};const su=function(t){var e;const n=this.internal,{axis:a,brush:i,config:s,scale:{x:o,subX:l},state:c}=n;let u;return s.subchart_show&&(u=t,Array.isArray(u)?(a.isTimeSeries()&&(u=u.map(v=>Dn.bind(n)(v))),n.withinRange(u,n.getZoomDomain("subX",!0),n.getZoomDomain("subX"))&&(c.domain=u,i.move(i.getSelection(),u.map(l)))):u=(e=c.domain)!=null?e:o.orgDomain()),u};gn(su,{show(){var t,e;const n=this.internal,{$el:{subchart:a},config:i}=n,s=i.subchart_show;if(!s){n.unbindZoomEvent(),i.subchart_show=!s,!a.main&&n.initSubchart();let o=a.main.selectAll(`.${Se.target}`);n.data.targets.length!==o.size()&&(n.updateSizes(),n.updateTargetsForSubchart(n.data.targets),o=(t=a.main)==null?void 0:t.selectAll(`.${Se.target}`)),o==null||o.style("opacity",null),(e=a.main)==null||e.style("display",null),this.resize()}},hide(){const t=this.internal,{$el:{subchart:{main:e}},config:n}=t;n.subchart_show&&(e==null?void 0:e.style("display"))!=="none"&&(n.subchart_show=!1,e.style("display","none"),this.resize())},toggle(){const t=this.internal,{config:e}=t;this.subchart[e.subchart_show?"hide":"show"]()},reset(){const t=this.internal,{brush:e}=t;e.clear(e.getSelection())}});var wm={subchart:su},Mm=1e-12;function ou(t){return((t=Math.exp(t))+1/t)/2}function Lm(t){return((t=Math.exp(t))-1/t)/2}function Dm(t){return((t=Math.exp(2*t))-1)/(t+1)}var Nm=function t(e,n,a){function i(s,o){var l=s[0],c=s[1],u=s[2],g=o[0],v=o[1],m=o[2],S=g-l,I=v-c,N=S*S+I*I,M,P;if(N()=>t;function Fm(t,{sourceEvent:e,target:n,transform:a,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:i}})}function cr(t,e,n){this.k=t,this.x=e,this.y=n}cr.prototype={constructor:cr,scale:function(t){return t===1?this:new cr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new cr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var _n=new cr(1,0,0);ho.prototype=cr.prototype;function ho(t){for(;!t.__zoom;)if(!(t=t.parentNode))return _n;return t.__zoom}function go(t){t.stopImmediatePropagation()}function Fa(t){t.preventDefault(),t.stopImmediatePropagation()}function Bm(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Um(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function lu(){return this.__zoom||_n}function zm(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function jm(){return navigator.maxTouchPoints||"ontouchstart"in this}function Gm(t,e,n){var a=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function Vm(){var t=Bm,e=Um,n=Gm,a=zm,i=jm,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Nm,u=ni("start","zoom","end"),g,v,m,S=500,I=150,N=0,M=10;function P(J){J.property("__zoom",lu).on("wheel.zoom",gt,{passive:!1}).on("mousedown.zoom",$t).on("dblclick.zoom",St).filter(i).on("touchstart.zoom",Tt).on("touchmove.zoom",Gt).on("touchend.zoom touchcancel.zoom",mt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}P.transform=function(J,Ct,ht,It){var Yt=J.selection?J.selection():J;Yt.property("__zoom",lu),J!==Yt?k(J,Ct,ht,It):Yt.interrupt().each(function(){H(this,arguments).event(It).start().zoom(null,typeof Ct=="function"?Ct.apply(this,arguments):Ct).end()})},P.scaleBy=function(J,Ct,ht,It){P.scaleTo(J,function(){var Yt=this.__zoom.k,Vt=typeof Ct=="function"?Ct.apply(this,arguments):Ct;return Yt*Vt},ht,It)},P.scaleTo=function(J,Ct,ht,It){P.transform(J,function(){var Yt=e.apply(this,arguments),Vt=this.__zoom,Zt=ht==null?V(Yt):typeof ht=="function"?ht.apply(this,arguments):ht,Wt=Vt.invert(Zt),ne=typeof Ct=="function"?Ct.apply(this,arguments):Ct;return n(W(G(Vt,ne),Zt,Wt),Yt,o)},ht,It)},P.translateBy=function(J,Ct,ht,It){P.transform(J,function(){return n(this.__zoom.translate(typeof Ct=="function"?Ct.apply(this,arguments):Ct,typeof ht=="function"?ht.apply(this,arguments):ht),e.apply(this,arguments),o)},null,It)},P.translateTo=function(J,Ct,ht,It,Yt){P.transform(J,function(){var Vt=e.apply(this,arguments),Zt=this.__zoom,Wt=It==null?V(Vt):typeof It=="function"?It.apply(this,arguments):It;return n(_n.translate(Wt[0],Wt[1]).scale(Zt.k).translate(typeof Ct=="function"?-Ct.apply(this,arguments):-Ct,typeof ht=="function"?-ht.apply(this,arguments):-ht),Vt,o)},It,Yt)};function G(J,Ct){return Ct=Math.max(s[0],Math.min(s[1],Ct)),Ct===J.k?J:new cr(Ct,J.x,J.y)}function W(J,Ct,ht){var It=Ct[0]-ht[0]*J.k,Yt=Ct[1]-ht[1]*J.k;return It===J.x&&Yt===J.y?J:new cr(J.k,It,Yt)}function V(J){return[(+J[0][0]+ +J[1][0])/2,(+J[0][1]+ +J[1][1])/2]}function k(J,Ct,ht,It){J.on("start.zoom",function(){H(this,arguments).event(It).start()}).on("interrupt.zoom end.zoom",function(){H(this,arguments).event(It).end()}).tween("zoom",function(){var Yt=this,Vt=arguments,Zt=H(Yt,Vt).event(It),Wt=e.apply(Yt,Vt),ne=ht==null?V(Wt):typeof ht=="function"?ht.apply(Yt,Vt):ht,je=Math.max(Wt[1][0]-Wt[0][0],Wt[1][1]-Wt[0][1]),Oe=Yt.__zoom,Ge=typeof Ct=="function"?Ct.apply(Yt,Vt):Ct,cn=c(Oe.invert(ne).concat(je/Oe.k),Ge.invert(ne).concat(je/Ge.k));return function(Le){if(Le===1)Le=Ge;else{var ln=cn(Le),Ht=je/ln[2];Le=new cr(Ht,ne[0]-ln[0]*Ht,ne[1]-ln[1]*Ht)}Zt.zoom(null,Le)}})}function H(J,Ct,ht){return!ht&&J.__zooming||new at(J,Ct)}function at(J,Ct){this.that=J,this.args=Ct,this.active=0,this.sourceEvent=null,this.extent=e.apply(J,Ct),this.taps=0}at.prototype={event:function(J){return J&&(this.sourceEvent=J),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(J,Ct){return this.mouse&&J!=="mouse"&&(this.mouse[1]=Ct.invert(this.mouse[0])),this.touch0&&J!=="touch"&&(this.touch0[1]=Ct.invert(this.touch0[0])),this.touch1&&J!=="touch"&&(this.touch1[1]=Ct.invert(this.touch1[0])),this.that.__zoom=Ct,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(J){var Ct=st(this.that).datum();u.call(J,this.that,new Fm(J,{sourceEvent:this.sourceEvent,target:P,type:J,transform:this.that.__zoom,dispatch:u}),Ct)}};function gt(J,...Ct){if(!t.apply(this,arguments))return;var ht=H(this,Ct).event(J),It=this.__zoom,Yt=Math.max(s[0],Math.min(s[1],It.k*Math.pow(2,a.apply(this,arguments)))),Vt=Un(J);if(ht.wheel)(ht.mouse[0][0]!==Vt[0]||ht.mouse[0][1]!==Vt[1])&&(ht.mouse[1]=It.invert(ht.mouse[0]=Vt)),clearTimeout(ht.wheel);else{if(It.k===Yt)return;ht.mouse=[Vt,It.invert(Vt)],kr(this),ht.start()}Fa(J),ht.wheel=setTimeout(Zt,I),ht.zoom("mouse",n(W(G(It,Yt),ht.mouse[0],ht.mouse[1]),ht.extent,o));function Zt(){ht.wheel=null,ht.end()}}function $t(J,...Ct){if(m||!t.apply(this,arguments))return;var ht=J.currentTarget,It=H(this,Ct,!0).event(J),Yt=st(J.view).on("mousemove.zoom",ne,!0).on("mouseup.zoom",je,!0),Vt=Un(J,ht),Zt=J.clientX,Wt=J.clientY;ls(J.view),go(J),It.mouse=[Vt,this.__zoom.invert(Vt)],kr(this),It.start();function ne(Oe){if(Fa(Oe),!It.moved){var Ge=Oe.clientX-Zt,cn=Oe.clientY-Wt;It.moved=Ge*Ge+cn*cn>N}It.event(Oe).zoom("mouse",n(W(It.that.__zoom,It.mouse[0]=Un(Oe,ht),It.mouse[1]),It.extent,o))}function je(Oe){Yt.on("mousemove.zoom mouseup.zoom",null),cs(Oe.view,It.moved),Fa(Oe),It.event(Oe).end()}}function St(J,...Ct){if(t.apply(this,arguments)){var ht=this.__zoom,It=Un(J.changedTouches?J.changedTouches[0]:J,this),Yt=ht.invert(It),Vt=ht.k*(J.shiftKey?.5:2),Zt=n(W(G(ht,Vt),It,Yt),e.apply(this,Ct),o);Fa(J),l>0?st(this).transition().duration(l).call(k,Zt,It,J):st(this).call(P.transform,Zt,It,J)}}function Tt(J,...Ct){if(t.apply(this,arguments)){var ht=J.touches,It=ht.length,Yt=H(this,Ct,J.changedTouches.length===It).event(J),Vt,Zt,Wt,ne;for(go(J),Zt=0;ZtDn.bind(n)(v))),n.withinRange(u,n.getZoomDomain("zoom",!0),n.getZoomDomain("zoom"))){if(l.domain=u,u=n.getZoomDomainValue(u),n.api.tooltip.hide(),i.subchart_show){const v=o.zoom||o.x;n.brush.getSelection().call(n.brush.move,u.map(v))}else{const v=c?o.x.orgScale():s.xScale||o.x;n.updateCurrentZoomTransform(v,u)}n.setZoomResetButton()}}else u=n.zoom.getDomain();return(e=l.domain)!=null?e:u};gn(cu,{enable(t){const e=this.internal,{config:n}=e;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?t===!1&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_max=Kn("max",[a[1],t])),n.zoom_x_max},min(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_min=Kn("min",[a[0],t])),n.zoom_x_min},range(t){const e=this.zoom;if(De(t)){const{min:n,max:a}=t;Xe(n)&&e.min(n),Xe(a)&&e.max(a)}return{min:e.min(),max:e.max()}}});var Xm={zoom:cu,unzoom(){const t=this.internal,{config:e,$el:{eventRect:n,zoomResetBtn:a},scale:{zoom:i},state:s}=t;i&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(_n),t.updateZoom(!0),a==null||a.style("display","none"),ho(n.node())!==_n&&t.zoom.transform(n,_n),s.domain=void 0)}},Ym={initBrush(){const t=this,{config:e,scale:n,$el:{subchart:a},state:i}=t,s=e.axis_rotated,o=e.subchart_size_height;let l,c,u;t.brush=(s?jg():zg()).handleSize(5),t.brush.on("start brush end",g=>{const{selection:v,sourceEvent:m,target:S,type:I}=g;I==="start"&&(t.state.inputType==="touch"&&t.hideTooltip(),c=m?v:null),/(start|brush)/.test(I)&&(I==="brush"&&m&&i.domain&&(c==null||c.forEach((N,M)=>{N!==v[M]&&(i.domain[M]=n.x.orgDomain()[M])})),t.redrawForBrush(I!=="start")),I==="end"&&(l=n.x.orgDomain()),S!=null&&S.handle&&(v===null?t.brush.handle.attr("display","none"):t.brush.handle.attr("display",null).attr("transform",(N,M)=>{const P=[v[M],o/2];return`translate(${s?P.reverse():P})`}))}),t.brush.updateResize=function(){u&&clearTimeout(u),u=setTimeout(()=>{const g=this.getSelection();l&&Bl(g.node())&&this.move(g,l.map(n.subX.orgScale()))},0)},t.brush.update=function(){var g;return this.extent()()[1].filter(m=>isNaN(m)).length===0&&((g=a.main)==null||g.select(`.${Ne.brush}`).call(this)),this},t.brush.scale=function(g){const v=e.subchart_size_height;let m=t.getExtent();!m&&g.range?m=[[0,0],[g.range()[1],v]]:Fe(m)&&(m=m.map((S,I)=>[S,I>0?v:I])),s&&m[1].reverse(),this.extent(m),this.update()},t.brush.getSelection=()=>a.main?a.main.select(`.${Ne.brush}`):st([])},initSubchart(){const t=this,{config:e,state:{clip:n,hasAxis:a},$el:{defs:i,svg:s,subchart:o,axis:l}}=t;if(!a)return;const c=e.subchart_show?null:"hidden",u=`${n.id}-subchart`,g=t.getClipPath(u);n.idSubchart=u,t.appendClip(i,u),t.initBrush(),o.main=s.append("g").classed(Ne.subchart,!0).attr("transform",t.getTranslate("context"));const{main:v}=o;v.style("visibility",c),v.append("g").attr("clip-path",g).attr("class",Ne.chart),["bar","line","bubble","candlestick","scatter"].forEach(S=>{const I=In(/^(bubble|scatter)$/.test(S)?"circle":S);if(t.hasType(S)||t.hasTypeOf(I)){const N=v.select(`.${Ne.chart}`),M=Ne[`chart${I}s`];N.select(`.${M}`).empty()&&N.append("g").attr("class",M)}});const m=v.append("g").attr("clip-path",g).attr("class",Ne.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(m),l.subX=v.append("g").attr("class",Ne.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":n.pathXAxis).style("visibility",e.subchart_axis_x_show?c:"hidden")},addBrushHandle(t){const e=this,{config:n}=e,a=n.axis_rotated,i=n.subchart_init_range,s="handle--custom",o=a?["M8.5 0 a6 6 0 0 0 -6 -6.5 H-2.5 a 6 6 0 0 0 -6 6.5 z m-5 -2 H-3.5 m7 -2 H-3.5z","M8.5 0 a6 -6 0 0 1 -6 6.5 H-2.5 a 6 -6 0 0 1 -6 -6.5z m-5 2 H-3.5 m7 2 H-3.5z"]:["M0 -8.5 A6 6 0 0 0 -6.5 -3.5 V2.5 A6 6 0 0 0 0 8.5 Z M-2 -3.5 V3.5 M-4 -3.5 V3.5z","M0 -8.5 A6 6 0 0 1 6.5 -3.5 V2.5 A6 6 0 0 1 0 8.5 Z M2 -3.5 V3.5 M4 -3.5 V3.5z"];e.brush.handle=t.selectAll(`.${s}`).data(a?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",s).attr("cursor",`${a?"ns":"ew"}-resize`).attr("d",l=>o[+/[se]/.test(l.type)]).attr("display",i?null:"none")},updateTargetsForSubchart(t){const e=this,{config:n,state:a,$el:{subchart:{main:i}}}=e;n.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(s=>e.hasType(s)||e.hasTypeOf(In(s))).forEach(s=>{const o=/^(bubble|scatter)$/.test(s),l=In(o?"circle":s),c=e.getChartClass(l,!0),u=e.getClass(o?"circles":`${s}s`,!0),g=i.select(`.${Ne[`chart${`${l}s`}`]}`);if(o){const v=g.selectAll(`.${Ne.circles}`).data(t.filter(e[`is${In(s)}Type`].bind(e))).attr("class",u);v.exit().remove(),v.enter().append("g").attr("class",u)}else{const v=g.selectAll(`.${Ne[`chart${l}`]}`).attr("class",c).data(t.filter(e[`is${l}Type`].bind(e))),m=v.enter().append("g").style("opacity","0").attr("class",c).append("g").attr("class",u);v.exit().remove(),s==="line"&&e.hasTypeOf("Area")&&m.append("g").attr("class",e.getClass("areas",!0))}}),i.selectAll(`.${Ne.brush} rect`).attr(n.axis_rotated?"width":"height",n.axis_rotated?a.width2:a.height2))},redrawSubchart(t,e,n){var a;const i=this,{config:s,$el:{subchart:{main:o}},state:l}=i,c=!!e;if(o.style("visibility",s.subchart_show?null:"hidden"),s.subchart_show&&(((a=l.event)==null?void 0:a.type)==="zoom"&&i.brush.update(),t)){const u=s.subchart_init_range;if(!Hl(i)&&i.brush.update(),Object.keys(n.type).forEach(g=>{const v=In(g),m=i[`generateDraw${v}`](n.indices[g],!0);i[`update${v}`](c,!0),i[`redraw${v}`](m,c,!0)}),i.hasType("bubble")||i.hasType("scatter")){const{cx:g}=n.pos,v=i.updateCircleY(!0);i.updateCircle(!0),i.redrawCircle(g,v,c,void 0,!0)}!l.rendered&&u&&(l.domain=u,i.brush.move(i.brush.getSelection(),u.map(i.scale.x)))}},redrawForBrush(t=!0){var e;const n=this,{config:{subchart_onbrush:a,zoom_rescale:i},scale:s,state:o}=n;n.redraw({withTransition:!1,withY:i,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t&&o.rendered&&a.bind(n.api)((e=o.domain)!=null?e:s.x.orgDomain())},transformContext(t,e){const n=this,{$el:{subchart:a},$T:i}=n,s=e!=null&&e.axisSubX?e.axisSubX:i(a.main.select(`.${Ne.axisX}`),t);a.main.attr("transform",n.getTranslate("context")),s.attr("transform",n.getTranslate("subX"))},getExtent(){const t=this,{config:e,scale:n}=t;let a=e.axis_x_extent;if(a){if(de(a))a=a.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&a.every(isNaN)){const i=Dn.bind(t);a=a.map(s=>n.subX(i(s)))}}return a}},Hm={initZoom(){const t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent(t=!0){const e=this,{config:n}=e;n.zoom_enabled&&t?!n.subchart_show&&e.bindZoomOnEventRect():t===!1&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom(){const t=this,{config:e,org:n,scale:a}=t,i=Vm().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=()=>{const s=e.zoom_extent||[1,10];return[s[0],Math.max(t.getMaxDataCount()/s[1],s[1])]},i.updateScaleExtent=function(){const s=Ir(t.scale.x.orgDomain())/Ir(t.getZoomDomain()),o=this.orgScaleExtent();return this.scaleExtent([o[0]*s,o[1]*s]),this},i.updateTransformScale=(s,o)=>{var l;const c=e.axis_rotated;(l=n.xScale)==null||l.range(a.x.range());const u=s[c?"rescaleY":"rescaleX"](n.xScale||a.x),g=t.trimXDomain(u.domain()),v=e.zoom_rescale;if(u.domain(g,n.xDomain),o){const m=u(a.x.domain()[0]),S=c?s.x:m,I=c?m:s.y;t.$el.eventRect.property("__zoom",_n.translate(S,I).scale(s.k))}t.state.xTickOffset||(t.state.xTickOffset=t.axis.x.tickOffset()),a.zoom=t.getCustomizedXScale(u),t.axis.x.scale(a.zoom),v?(!n.xScale&&(n.xScale=a.x.copy()),a.x.domain(g)):n.xScale&&(a.x.domain(n.xScale.domain()),n.xScale=null)},i.getDomain=()=>{const s=a[a.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(s[1]-=2),s},t.zoom=i},onZoomStart(t){const e=this,{sourceEvent:n}=t;n&&(e.zoom.startEvent=n,e.state.zooming=!0,Ze(e.config.zoom_onzoomstart,e.api,t))},onZoom(t){var e;const n=this,{config:a,scale:i,state:s,org:o}=n,{sourceEvent:l}=t,c=(t==null?void 0:t.transform)===_n;if(!a.zoom_enabled||n.filterTargetsToShow(n.data.targets).length===0||!i.zoom&&(l==null?void 0:l.type.indexOf("touch"))>-1&&(l==null?void 0:l.touches.length)===1)return;t.sourceEvent&&(s.zooming=!0,s.domain=void 0);const u=(l==null?void 0:l.type)==="mousemove",g=(l==null?void 0:l.wheelDelta)<0,{transform:v}=t;!u&&g&&i.x.domain().every((S,I)=>S!==o.xDomain[I])&&i.x.domain(o.xDomain),n.zoom.updateTransformScale(v,a.zoom_type==="wheel"&&l);const m=a.transition_duration>0&&!a.subchart_show&&(s.dragging||c||!t.sourceEvent);n.redraw({withTransition:m,withY:a.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),n.state.cancelClick=u,!c&&Ze(a.zoom_onzoom,n.api,(e=n.state.domain)!=null?e:n.zoom.getDomain())},onZoomEnd(t){var e,n;const a=this,{config:i,state:s}=a;let{startEvent:o}=a.zoom,l=t==null?void 0:t.sourceEvent;const c=(t==null?void 0:t.transform)===_n;(o==null?void 0:o.type.indexOf("touch"))>-1&&(o=o.changedTouches[0],l=(e=l==null?void 0:l.changedTouches)==null?void 0:e[0]),!(i.zoom_type==="drag"&&l&&o.clientX===l.clientX&&o.clientY===l.clientY)&&(s.zooming=!1,a.redrawEventRect(),a.updateZoom(),!c&&(l||s.dragging)&&Ze(i.zoom_onzoomend,a.api,(n=a.state.domain)!=null?n:a.zoom.getDomain()))},updateZoom(t){const e=this,{subX:n,x:a,zoom:i}=e.scale;if(i){const s=i.domain(),o=n.domain(),l=.015,c=e.config.axis_x_inverted?(s[0]>=o[0]||s[0]+l>=o[0])&&(o[1]>=s[1]||o[1]>=s[1]+l):(s[0]<=o[0]||s[0]-l<=o[0])&&(o[1]<=s[1]||o[1]<=s[1]-l);(t||c)&&(e.axis.x.scale(n),a.domain(n.orgDomain()),e.scale.zoom=null)}},updateCurrentZoomTransform(t,e){const n=this,{$el:{eventRect:a},config:i}=n,s=i.axis_rotated,o=[-t(e[0]),0],l=_n.scale(t.range()[1]/(t(e[1])-t(e[0]))).translate(...s?o.reverse():o);a.call(n.zoom.transform,l)},bindZoomOnEventRect(){const t=this,{config:e,$el:{eventRect:n}}=t,a=e.zoom_type==="drag"?t.zoomBehaviour:t.zoom;n==null||n.call(a).on("dblclick.zoom",null)},initZoomBehaviour(){const t=this,{config:e,state:n}=t,a=e.axis_rotated;let i=0,s=0,o;const l={axis:a?"y":"x",attr:a?"height":"width",index:a?1:0};t.zoomBehaviour=lc().clickDistance(4).on("start",function(c){n.event=c,t.setDragStatus(!0),t.unselectRect(),o||(o=t.$el.main.append("rect").attr("clip-path",n.clip.path).attr("class",ss.zoomBrush).attr("width",a?n.width:0).attr("height",a?0:n.height)),i=zn(c,this)[l.index],s=i,o.attr(l.axis,i).attr(l.attr,0),t.onZoomStart(c)}).on("drag",function(c){s=zn(c,this)[l.index],o.attr(l.axis,Math.min(i,s)).attr(l.attr,Math.abs(s-i))}).on("end",c=>{const u=t.scale.zoom||t.scale.x;n.event=c,o.attr(l.axis,0).attr(l.attr,0),i>s&&([i,s]=[s,i]),i<0&&(s+=Math.abs(i),i=0),i!==s&&t.api.zoom([i,s].map(g=>u.invert(g))),t.setDragStatus(!1)})},setZoomResetButton(){const t=this,{config:e,$el:n}=t,a=e.zoom_resetButton;a&&e.zoom_type==="drag"&&(n.zoomResetBtn?n.zoomResetBtn.style("display",null):n.zoomResetBtn=t.$el.chart.append("div").classed(Se.button,!0).append("span").on("click",function(){de(a.onclick)&&a.onclick.bind(t.api)(this),t.api.unzoom()}).classed(ss.buttonZoomReset,!0).text(a.text||"Reset Zoom"))},getZoomTransform(){const t=this,{$el:{eventRect:e}}=t;return e!=null&&e.node()?ho(e.node()):{k:1}}},Wm={drag(t){const e=this,{config:n,state:a,$el:{main:i}}=e,s=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(e.hasArcType()||!n.data_selection_enabled||n.zoom_enabled&&!e.zoom.altDomain||!n.data_selection_multiple)return;const[l,c]=a.dragStart||[0,0],[u,g]=t,v=Math.min(l,u),m=Math.max(l,u),S=s?a.margin.top:Math.min(c,g),I=s?a.height:Math.max(c,g);i.select(`.${Ar.dragarea}`).attr("x",v).attr("y",S).attr("width",m-v).attr("height",I-S),i.selectAll(`.${tn.shapes}`).selectAll(`.${tn.shape}`).filter(N=>o==null?void 0:o.bind(e.api)(N)).each(function(N,M){const P=st(this),G=P.classed(ke.SELECTED),W=P.classed(Ar.INCLUDED);let V=!1,k;if(P.classed(pn.circle)){const H=+P.attr("cx")*1,at=+P.attr("cy")*1;k=e.togglePoint,V=ve in t?Km(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_m=(t,e)=>{for(var n in e||(e={}))Jm.call(e,n)&&fu(t,n,e[n]);if(uu)for(var n of uu(e))Qm.call(e,n)&&fu(t,n,e[n]);return t},qm=(t,e)=>Zm(t,km(e)),ty=qm(_m({},Wm),{selectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a,l=i.axis_rotated,c=(l?a.circleY:a.circleX).bind(a),u=(l?a.circleX:a.circleY).bind(a),g=a.pointSelectR.bind(a);Ze(i.data_onselected,a.api,e,t.node()),o(s.select(`.${ke.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${ke.selectedCircle}-${n}`).data([e]).enter().append("circle").attr("class",()=>a.generateClass(ke.selectedCircle,n)).attr("cx",c).attr("cy",u).attr("stroke",a.color).attr("r",v=>a.pointSelectR(v)*1.4)).attr("r",g)},unselectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a;Ze(i.data_onunselected,a.api,e,t==null?void 0:t.node()),o(s.select(`.${ke.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${ke.selectedCircle}-${n}`)).attr("r",0).remove()},togglePoint(t,e,n,a){this[`${t?"":"un"}selectPoint`](e,n,a)},selectPath(t,e){const n=this,{config:a}=n;Ze(a.data_onselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath(t,e){const n=this,{config:a}=n;Ze(a.data_onunselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter",null)},togglePath(t,e,n,a){this[`${t?"":"un"}selectPath`](e,n,a)},getToggle(t,e){const n=this;return t.nodeName==="path"?n.togglePath:n.isStepType(e)?()=>{}:n.togglePoint},toggleShape(t,e,n){var a;const i=this,{config:s,$el:{main:o}}=i;if(s.data_selection_enabled&&s.data_selection_isselectable.bind(i.api)(e)){const l=st(t),c=l.classed(ke.SELECTED),u=i.getToggle(t,e).bind(i);let g;if(!s.data_selection_multiple){const v=(a=i.isPointFocusOnly)==null?void 0:a.call(i);let m=`.${v?ke.selectedCircles:tn.shapes}`;s.data_selection_grouped&&(m+=i.getTargetSelectorSuffix(e.id)),o.selectAll(m).selectAll(v?`.${ke.selectedCircle}`:`.${tn.shape}.${ke.SELECTED}`).classed(ke.SELECTED,!1).each(function(S){const I=st(this);g=I,u(!1,I,S,S.index)})}(!g||g.node()!==l.node())&&(l.classed(ke.SELECTED,!c),u(!c,l,e,n))}}}),ey={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:()=>!0,data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:()=>{},data_onunselected:()=>{}},ny={subchart_show:!1,subchart_showHandle:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_format:void 0,subchart_axis_x_tick_text_show:!0,subchart_init_range:void 0,subchart_onbrush:()=>{}},ry={zoom_enabled:!1,zoom_type:"wheel",zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:void 0,zoom_onzoomstart:void 0,zoom_onzoomend:void 0,zoom_resetButton:!0,zoom_x_min:void 0,zoom_x_max:void 0};let du=()=>(gn(Fr.prototype,ty),gn(xr.prototype,Pm),Pr.setOptions([ey]),(du=()=>!0)()),hu=()=>(gn(Fr.prototype,Ym),gn(xr.prototype,wm),Pr.setOptions([ny]),(hu=()=>!0)()),gu=()=>(gn(Fr.prototype,Hm),gn(xr.prototype,Xm),Pr.setOptions([ry]),(gu=()=>!0)());function vu(t,e,n){const{config:a}=t,i=(s,o)=>{const l=fe(o)?o:o===!1?void 0:null;l!==null&&(a[`axis_${s}_${e}`]=l)};Xe(n)&&(Jn(n)?Object.keys(n).forEach(s=>{i(s,n[s])}):(fe(n)||n===!1)&&["y","y2"].forEach(s=>{i(s,n)}),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function pu(t,e){const{config:n}=t;return{x:n[`axis_x_${e}`],y:n[`axis_y_${e}`],y2:n[`axis_y2_${e}`]}}var ay={axis:{labels:function(t){const e=this.internal;let n;return t&&(Object.keys(t).forEach(a=>{e.axis.setLabelText(a,t[a])}),e.axis.updateLabels()),["x","y","y2"].forEach(a=>{const i=e.axis.getLabelText(a);i&&(!n&&(n={}),n[a]=i)}),n},min:function(t){const e=this.internal;return Ie(t)||t===!1?vu(e,"min",t):pu(e,"min")},max:function(t){const e=this.internal;return Ie(t)||t===!1?vu(e,"max",t):pu(e,"max")},range:function(t){const{axis:e}=this;if(arguments.length){const{min:n,max:a}=t;Xe(a)&&e.max(a),Xe(n)&&e.min(n)}else return{max:e.max(),min:e.min()}}}},iy={category(t,e){const n=this.internal,{config:a}=n;return arguments.length>1&&(a.axis_x_categories[t]=e,n.redraw()),a.axis_x_categories[t]},categories(t){const e=this.internal,{config:n}=e;if(!t||!Array.isArray(t)){const a=n.axis_x_categories;return Wn(a)?Object.values(e.data.xs)[0]:a}return n.axis_x_categories=t,e.redraw(),n.axis_x_categories}},sy={flow(t){const e=this.internal;let n;(t.json||t.rows||t.columns)&&e.convertData(t,i=>{n=i,a()});function a(){let i,s=0,o=0,l,c;if(e.state.redrawing||!n||!Ma())return;const u=[],g=e.getMaxDataCount(),v=e.convertDataToTargets(n,!0),m=e.axis.isTimeSeries();e.data.targets.forEach(N=>{let M=!1;for(let P=0;P{for(let M=0;M{const M=[];for(let P=e.data.targets[0].values[0].index;P{P.index+=o,m||(P.x+=o)}),N.values=M.concat(N.values)}),e.data.targets=e.data.targets.concat(v);const S=e.data.targets[0],I=S.values[0];Xe(t.to)?(s=0,c=m?Dn.call(e,t.to):t.to,S.values.forEach(N=>{N.x1?S.values[S.values.length-1].x-I.x:I.x-e.getXDomain(e.data.targets)[0]:l=1,i=[I.x-l,I.x]),i&&e.updateXDomain(null,!0,!0,!1,i),e.updateTargets(e.data.targets),e.redraw({flow:{index:I.index,length:s,duration:Ie(t.duration)?t.duration:e.config.transition_duration,done:t.done,orgDataCount:g},withLegend:!0,withTransition:g>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function vo(t,e){const n=this.internal,{config:a}=n,i=a.transition_duration&&Ma(),s=`grid_${e}_lines`;return t&&(a[s]=t,n.updateGrid(),n.redrawGrid(i)),a[s]}function mu(t,e){const n=`grid_${e}_lines`;return vo.bind(this)(this.internal.config[n].concat(t||[]),e)}function yu(t,e){this.internal.removeGridLines(t,e)}const xu=function(t){return vo.bind(this)(t,"x")};gn(xu,{add(t){return mu.bind(this)(t,"x")},remove(t){return yu.bind(this)(t,!0)}});const Tu=function(t){return vo.bind(this)(t,"y")};gn(Tu,{add(t){return mu.bind(this)(t,"y")},remove(t){return yu.bind(this)(t,!1)}});var oy={xgrids:xu,ygrids:Tu},ly={groups(t){const e=this.internal,{config:n}=e;return en(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function $u(t,e=!1){const n=this.internal,{config:a}=n,i=a.transition_duration&&Ma();return t?(a.regions=e?a.regions.concat(t):t,n.updateRegion(),n.redrawRegion(i),e?a.regions:t):a.regions}const Su=function(t){return $u.bind(this)(t)};gn(Su,{add:function(t){return $u.bind(this)(t,!0)},remove:function(t){const e=this.internal,{config:n,$T:a}=e,i=t||{},s=pr(i,"classes",[$a.region]);let o=e.$el.main.select(`.${$a.regions}`).selectAll(s.map(l=>`.${l}`));return a(o).style("opacity","0").remove(),o=n.regions,Object.keys(i).length?(o=o.filter(l=>{let c=!1;return l.class?(l.class.split(" ").forEach(u=>{s.indexOf(u)>=0&&(c=!0)}),!c):!0}),n.regions=o):n.regions=[],o}});var cy={regions:Su},uy={x(t){const e=this.internal,{axis:n,data:a}=e,i=n.isCustomX()&&n.isCategorized();return Fe(t)&&(i?this.categories(t):(e.updateTargetX(a.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():a.xs},xs(t){const e=this.internal;return De(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}};function fy(t){return t}var Vi=1,Xi=2,po=3,Ba=4,Au=1e-6;function dy(t){return"translate("+t+",0)"}function hy(t){return"translate(0,"+t+")"}function gy(t){return e=>+t(e)}function vy(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function py(){return!this.__axis}function Yi(t,e){var n=[],a=null,i=null,s=6,o=6,l=3,c=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,u=t===Vi||t===Ba?-1:1,g=t===Ba||t===Xi?"x":"y",v=t===Vi||t===po?dy:hy;function m(S){var I=a==null?e.ticks?e.ticks.apply(e,n):e.domain():a,N=i==null?e.tickFormat?e.tickFormat.apply(e,n):fy:i,M=Math.max(s,0)+l,P=e.range(),G=+P[0]+c,W=+P[P.length-1]+c,V=(e.bandwidth?vy:gy)(e.copy(),c),k=S.selection?S.selection():S,H=k.selectAll(".domain").data([null]),at=k.selectAll(".tick").data(I,e).order(),gt=at.exit(),$t=at.enter().append("g").attr("class","tick"),St=at.select("line"),Tt=at.select("text");H=H.merge(H.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),at=at.merge($t),St=St.merge($t.append("line").attr("stroke","currentColor").attr(g+"2",u*s)),Tt=Tt.merge($t.append("text").attr("fill","currentColor").attr(g,u*M).attr("dy",t===Vi?"0em":t===po?"0.71em":"0.32em")),S!==k&&(H=H.transition(S),at=at.transition(S),St=St.transition(S),Tt=Tt.transition(S),gt=gt.transition(S).attr("opacity",Au).attr("transform",function(Gt){return isFinite(Gt=V(Gt))?v(Gt+c):this.getAttribute("transform")}),$t.attr("opacity",Au).attr("transform",function(Gt){var mt=this.parentNode.__axis;return v((mt&&isFinite(mt=mt(Gt))?mt:V(Gt))+c)})),gt.remove(),H.attr("d",t===Ba||t===Xi?o?"M"+u*o+","+G+"H"+c+"V"+W+"H"+u*o:"M"+c+","+G+"V"+W:o?"M"+G+","+u*o+"V"+c+"H"+W+"V"+u*o:"M"+G+","+c+"H"+W),at.attr("opacity",1).attr("transform",function(Gt){return v(V(Gt)+c)}),St.attr(g+"2",u*s),Tt.attr(g,u*M).text(N),k.filter(py).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Xi?"start":t===Ba?"end":"middle"),k.each(function(){this.__axis=V})}return m.scale=function(S){return arguments.length?(e=S,m):e},m.ticks=function(){return n=Array.from(arguments),m},m.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),m):n.slice()},m.tickValues=function(S){return arguments.length?(a=S==null?null:Array.from(S),m):a&&a.slice()},m.tickFormat=function(S){return arguments.length?(i=S,m):i},m.tickSize=function(S){return arguments.length?(s=o=+S,m):s},m.tickSizeInner=function(S){return arguments.length?(s=+S,m):s},m.tickSizeOuter=function(S){return arguments.length?(o=+S,m):o},m.tickPadding=function(S){return arguments.length?(l=+S,m):l},m.offset=function(S){return arguments.length?(c=+S,m):c},m}function my(t){return Yi(Vi,t)}function yy(t){return Yi(Xi,t)}function bu(t){return Yi(po,t)}function Eu(t){return Yi(Ba,t)}var xy=Object.defineProperty,Ty=(t,e,n)=>e in t?xy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mo=(t,e,n)=>Ty(t,typeof e!="symbol"?e+"":e,n);class Ru{constructor(e){mo(this,"owner"),mo(this,"config"),mo(this,"scale");const n=Dr(),{config:a,params:i}=e;this.owner=e,this.config=a,this.scale=n,(a.noTransition||!i.config.transition_duration)&&(a.withoutTransition=!0),a.range=this.scaleExtent((i.orgXScale||n).range())}static getSizeFor1Char(e){const n={w:5.5,h:11.5};return!e.empty()&&e.select("text").text("0").call(a=>{try{const{width:i,height:s}=a.node().getBBox();i&&s&&(n.w=i,n.h=s)}catch(i){}finally{a.text("")}}),this.getSizeFor1Char=()=>n,n}getTickTransformSetter(e){const{config:n}=this,a=e==="x"?i=>`translate(${i+n.tickOffset},0)`:i=>`translate(0,${i})`;return(i,s)=>{i.attr("transform",o=>Ie(o)?a(Math.ceil(s(o))):null)}}scaleExtent(e){const n=e[0],a=e[e.length-1];return n0?i:1,s]).range(e.range());o=c.ticks();for(let u=s.toFixed().length;o.length>15;u--)o=c.ticks(u);o.splice(0,1,i),o.splice(o.length-1,1,s)}else o=e.ticks(...this.config.tickArguments||[]);o=o.map(c=>ze(c)&&fe(c)&&!isNaN(c)&&Math.round(c*10)/10||c)}return o}copyScale(){const e=this.scale.copy();return e.domain().length||e.domain(this.scale.domain()),e.type=this.scale.type,e}textFormatted(e){const n=this.config.tickFormat,a=/\d+\.\d+0{5,}\d$/.test(e)?+String(e).replace(/0+\d$/,""):e,i=n?n(a):a;return Xe(i)?i:""}transitionise(e){const{config:n}=this;let a=e;if(n.withoutTransition)a=e.interrupt();else if(n.transition||!this.owner.params.noTransition)try{a=e.transition(n.transition)}catch(i){}return a}}var $y=Object.defineProperty,Sy=(t,e,n)=>e in t?$y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ua=(t,e,n)=>Sy(t,typeof e!="symbol"?e+"":e,n);class Ay{constructor(e={}){Ua(this,"helper"),Ua(this,"config"),Ua(this,"params"),Ua(this,"g"),Ua(this,"generatedTicks");const n={innerTickSize:6,outerTickSize:e.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:e.noTransition};n.tickLength=Math.max(n.innerTickSize,0)+n.tickPadding,this.config=n,this.params=e,this.helper=new Ru(this)}create(e){const n=this,{config:a,helper:i,params:s}=n,{scale:o}=i,{orient:l}=a,c=this.splitTickText.bind(n),u=/^(left|right)$/.test(l),g=/^(top|bottom)$/.test(l),v=i.getTickTransformSetter(g?"x":"y"),m=v===i.axisX?"y":"x",S=/^(top|left)$/.test(l)?-1:1,I=s.tickTextRotate;this.config.range=o.rangeExtent?o.rangeExtent():i.scaleExtent((s.orgXScale||o).range());const{innerTickSize:N,tickLength:M,range:P}=a,G=s.id,W=G&&/^(x|y|y2)$/.test(G)?s.config[`axis_${G}_tick_text_position`]:{x:0,y:0},V=G==="subX"?"subchart_axis_x":`axis_${G}`,k=s.config[`${V}_show`],H={tick:k?s.config[`${V}_tick_show`]:!1,text:k?s.config[`${V}_tick_text_show`]:!1};let at;e.each(function(){const gt=st(this);let $t=this.__chart__||o,St=i.copyScale();at=gt,this.__chart__=St,a.tickOffset=s.isCategory?Math.ceil((St(1)-St(0))/2):0;const Tt=gt.selectAll(".domain").data([0]);if(Tt.enter().append("path").attr("class","domain").merge(Tt).attr("d",()=>{const Gt=a.outerTickSize*S;return g?`M${P[0]},${Gt}V0H${P[1]}V${Gt}`:`M${Gt},${P[0]}H0V${P[1]}H${Gt}`}),H.tick||H.text){const Gt=a.tickValues||i.generateTicks(St,u);n.generatedTicks=Gt;let mt=gt.selectAll(".tick").data(Gt,St);const J=mt.enter().insert("g",".domain").attr("class","tick"),Ct=mt.exit().remove();mt=J.merge(mt),H.tick&&J.append("line"),H.text&&J.append("text");const ht=Ru.getSizeFor1Char(mt),It=[];let Yt=mt.select("text").selectAll("tspan").data((Wt,ne)=>{const je=s.tickMultiline?c(Wt,St,Gt,u,ht.w):Fe(i.textFormatted(Wt))?i.textFormatted(Wt).concat():[i.textFormatted(Wt)];return It[ne]=je.length,je.map(Oe=>({index:ne,splitted:Oe}))});Yt.exit().remove(),Yt=Yt.enter().append("tspan").merge(Yt).text(Wt=>Wt.splitted),Yt.attr("x",g?0:M*S).attr("dx",(()=>{let Wt=0;return/(top|bottom)/.test(l)&&I&&(Wt=8*Math.sin(Math.PI*(I/180))*(l==="top"?-1:1)),Wt+(W.x||0)})()).attr("dy",(Wt,ne)=>{const je=".71em";let Oe=0;return l!=="top"&&(Oe=ht.h,ne===0&&(Oe=u?-((It[Wt.index]-1)*(ht.h/2)-3):W.y===0?je:0)),fe(Oe)&&W.y?Oe+W.y:Oe||je});const Vt=mt.select("line"),Zt=mt.select("text");if(J.select("line").attr(`${m}2`,N*S),J.select("text").attr(m,M*S),n.setTickLineTextPosition(Vt,Zt),s.tickTitle){const Wt=Zt.select("title");(Wt.empty()?Zt.append("title"):Wt).text(ne=>s.tickTitle[ne])}if(St.bandwidth){const Wt=St,ne=Wt.bandwidth()/2;$t=je=>Wt(je)+ne,St=$t}else $t.bandwidth?$t=St:v(Ct,St);mt=s.owner.state.flowing?i.transitionise(mt):s.owner.$T(mt),v(J,$t),v(mt.style("opacity",null),St)}}),this.g=at}getGeneratedTicks(e){var n;const a=((n=this.generatedTicks)==null?void 0:n.length)-1;let i=this.generatedTicks;if(a>e){const s=Math.round(a/e+.1);i=this.generatedTicks.map((o,l)=>l%s===0?o:null).filter(o=>o!==null).splice(0,e)}return i}getTickXY(){const{config:e}=this,n={x:0,y:0};return this.params.isCategory&&(n.x=e.tickCentered?0:e.tickOffset,n.y=e.tickCentered?e.tickOffset:0),n}getTickSize(e){const{scale:n}=this.helper,{config:a}=this,{innerTickSize:i,range:s}=a,o=n(e)+(a.tickCentered?0:a.tickOffset);return s[0]{const N=["start","end"];return s==="top"&&N.reverse(),I?N[I>0?0:1]:"middle"},g=I=>I?`rotate(${I})`:null,v=I=>{const N=I/(s==="bottom"?15:23);return I?11.5-2.5*N*(I>0?1:-1):o},{config:{axis_rotated:m,axis_x_tick_text_inner:S}}=this.params.owner;switch(s){case"bottom":e.attr("x1",a.x).attr("x2",a.x).attr("y2",this.getTickSize.bind(this)),n.attr("x",0).attr("y",v(c)).style("text-anchor",u(c)).style("text-anchor",(I,N,{length:M})=>!m&&N===0&&(S===!0||S.first)?"start":!m&&N===M-1&&(S===!0||S.last)?"end":u(c)).attr("transform",g(c));break;case"top":e.attr("x2",0).attr("y2",-i),n.attr("x",0).attr("y",-v(c)*2).style("text-anchor",u(c)).attr("transform",g(c));break;case"left":e.attr("x2",-i).attr("y1",a.y).attr("y2",a.y),n.attr("x",-o).attr("y",l).style("text-anchor","end");break;case"right":e.attr("x2",i).attr("y2",0),n.attr("x",o).attr("y",0).style("text-anchor","start")}}splitTickText(e,n,a,i,s){const{params:o}=this,l=this.helper.textFormatted(e),c=ze(l)&&l.indexOf(` + `;return`data:image/svg+xml;base64,${mm(v)}`}function xm(t,e){const{top:n,left:a}=e,{x:i,y:s}=t.getBBox(),{a:o,b:l,c,d:u,e:g,f:v}=t.getScreenCTM(),{width:m,height:S}=t.getBoundingClientRect();return{x:o*i+c*s+g-a,y:l*i+u*s+v-n+(S-Math.round(S/4)),width:m,height:S}}function Tm(t){const{left:e,top:n}=t.getBoundingClientRect(),a=s=>s.textContent||s.childElementCount,i=[];return Cr(t.querySelectorAll("text")).filter(a).forEach(s=>{const o=l=>{const{fill:c,fontFamily:u,fontSize:g,textAnchor:v,transform:m}=Ke.getComputedStyle(l),{x:S,y:I,width:N,height:M}=xm(l,{left:e,top:n});return{[l.textContent]:{x:S,y:I,width:N,height:M,fill:c,fontFamily:u,fontSize:g,textAnchor:v,transform:m}}};if(s.childElementCount>1){const l=[];return Cr(s.querySelectorAll("tspan")).filter(a).forEach(c=>{i.push(o(c))}),l}else i.push(o(s))}),i}function $m(t,e){e.forEach(n=>{Object.keys(n).forEach(a=>{const{x:i,y:s,width:o,height:l,fill:c,fontFamily:u,fontSize:g,transform:v}=n[a];if(t.save(),t.font=`${g} ${u}`,t.fillStyle=c,v==="none")t.fillText(a,i,s);else{const m=v.replace(/(matrix|\(|\))/g,"").split(",");m.splice(4).every(S=>+S==0)?(m.push(i+o-o/4),m.push(s-l+l/3)):(m.push(i),m.push(s)),t.transform(...m),t.fillText(a,0,0)}t.restore()})})}var Sm={export(t,e){const n=this.internal,{state:a,$el:{chart:i,svg:s}}=n,{width:o,height:l}=a.current,c=_r({width:o,height:l,preserveAspectRatio:!0,preserveFontStyle:!1,mimeType:"image/png"},t),u=ym(i.node(),c,{width:o,height:l}),g=c.preserveFontStyle?Tm(s.node()):[];if(e&&de(e)){const v=new Image;v.crossOrigin="Anonymous",v.onload=()=>{const m=fn.createElement("canvas"),S=m.getContext("2d");m.width=c.width||o,m.height=c.height||l,S.drawImage(v,0,0),g.length&&($m(S,g),g.length=0),e.bind(this)(m.toDataURL(c.mimeType))},v.src=u}return u}},Am={focus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t),i=e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e)));this.revert(),this.defocus(),i.classed(We.focused,!0).classed(We.defocused,!1),e.hasArcType()&&!n.hasRadar&&(e.expandArc(a),e.hasType("gauge")&&e.markOverlapped(t,e,`.${Ln.gaugeValue}`)),e.toggleFocusLegend(a,!0),n.focusedTargetIds=a,n.defocusedTargetIds=n.defocusedTargetIds.filter(s=>a.indexOf(s)<0)},defocus(t){const e=this.internal,{state:n}=e,a=e.mapToTargetIds(t);e.$el.svg.selectAll(e.selectorTargets(a.filter(e.isTargetToShow,e))).classed(We.focused,!1).classed(We.defocused,!0),e.hasArcType(null,["polar"])&&(e.unexpandArc(a),e.hasType("gauge")&&e.undoMarkOverlapped(e,`.${Ln.gaugeValue}`)),e.toggleFocusLegend(a,!1),n.focusedTargetIds=n.focusedTargetIds.filter(s=>a.indexOf(s)<0),n.defocusedTargetIds=a},revert(t){const e=this.internal,{config:n,state:a,$el:i}=e,s=e.mapToTargetIds(t);i.svg.selectAll(e.selectorTargets(s)).classed(We.focused,!1).classed(We.defocused,!1),e.hasArcType(null,["polar"])&&e.unexpandArc(s),n.legend_show&&(e.showLegend(s.filter(e.isLegendToShow.bind(e))),i.legend.selectAll(e.selectorLegends(s)).filter(function(){return st(this).classed(We.legendItemFocused)}).classed(We.legendItemFocused,!1)),a.focusedTargetIds=[],a.defocusedTargetIds=[]}},bm={legend:{show:function(t){const e=this.internal;e.showLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})},hide:function(t){const e=this.internal;e.hideLegend(e.mapToTargetIds(t)),e.updateAndRedraw({withLegend:!0})}}},Em={load(t){const e=this.internal,{config:n}=e;t.xs&&e.addXs(t.xs),"names"in t&&this.data.names(t.names),"classes"in t&&Object.keys(t.classes).forEach(a=>{n.data_classes[a]=t.classes[a]}),"categories"in t&&e.axis.isCategorized()&&(n.axis_x_categories=t.categories),"axes"in t&&Object.keys(t.axes).forEach(a=>{n.data_axes[a]=t.axes[a]}),"colors"in t&&Object.keys(t.colors).forEach(a=>{n.data_colors[a]=t.colors[a]}),"unload"in t&&t.unload!==!1?e.unload(e.mapToTargetIds(t.unload===!0?null:t.unload),()=>{Ul(()=>e.loadFromArgs(t))}):e.loadFromArgs(t)},unload(t){const e=this.internal;let n=t||{};Wn(n)&&this.tooltip.hide(),Fe(n)?n={ids:n}:ze(n)&&(n={ids:[n]});const a=e.mapToTargetIds(n.ids);e.unload(a,()=>{e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.cache.remove(a),oc.call(e,n.done,n.resizeAfter)})}};function ru(t,e,n){const a=this.internal,i=a.mapToTargetIds(e),s=a.state.hiddenTargetIds.map(c=>i.indexOf(c)>-1&&c).filter(Boolean);a.state.toggling=!0,a[`${t?"remove":"add"}HiddenTargetIds`](i);const o=a.$el.svg.selectAll(a.selectorTargets(i)),l=t?null:"0";t&&s.length&&(o.style("display",null),Ze(a.config.data_onshown,this,s)),a.$T(o).style("opacity",l,"important").call($i,()=>{!t&&s.length===0&&(o.style("display","none"),Ze(a.config.data_onhidden,this,i)),o.style("opacity",l)}),n.withLegend&&a[`${t?"show":"hide"}Legend`](i),a.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),a.state.toggling=!1}var Rm={show(t,e={}){ru.call(this,!0,t,e)},hide(t,e={}){ru.call(this,!1,t,e)},toggle(t,e={}){const n=this.internal,a={show:[],hide:[]};n.mapToTargetIds(t).forEach(i=>a[n.isTargetToShow(i)?"hide":"show"].push(i)),a.show.length&&this.show(a.show,e),a.hide.length&&setTimeout(()=>this.hide(a.hide,e),0)}},Om={tooltip:{show:function(t){var e,n,a;const i=this.internal,{$el:s,config:o,state:{eventReceiver:l,hasFunnel:c,hasTreemap:u,inputType:g}}=i;let v,m;if(t.mouse&&(m=t.mouse),t.data){const{data:S}=t,I=(e=i.getYScaleById(S.id))==null?void 0:e(S.value);if((c||u)&&S.id){const N=i.selectorTarget(S.id,void 0,`.${tn.shape}`);l.rect=s.main.select(N)}else i.isMultipleX()?m=[i.xx(S),I]:(o.tooltip_grouped||(m=[0,I]),v=(a=S.index)!=null?a:i.hasArcType()&&S.id?(n=i.getArcElementByIdOrIndex(S.id))==null?void 0:n.datum().index:i.getIndexByX(S.x))}else Xe(t.x)?v=i.getIndexByX(t.x):Xe(t.index)&&(v=t.index);(g==="mouse"?["mouseover","mousemove"]:["touchstart"]).forEach(S=>{i.dispatchEvent(S,v,m)})},hide:function(){var t,e,n;const a=this.internal,{state:{inputType:i},$el:{tooltip:s}}=a,o=s==null?void 0:s.datum();if(o){const{index:l}=JSON.parse(o.current)[0];(i==="mouse"?["mouseout"]:["touchend"]).forEach(c=>{a.dispatchEvent(c,l)})}i==="touch"&&a.callOverOutForTouch(),a.hideTooltip(!0),(t=a.hideGridFocus)==null||t.call(a),(e=a.unexpandCircles)==null||e.call(a),(n=a.expandBarTypeShapes)==null||n.call(a,!1)}}},Im=Object.defineProperty,Cm=(t,e,n)=>e in t?Im(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,au=(t,e,n)=>Cm(t,typeof e!="symbol"?e+"":e,n);class xr{constructor(e){au(this,"plugins",[]),au(this,"internal");const n=new Fr(this);this.internal=n,function a(i,s,o){Object.keys(i).forEach(l=>{const c=de(i[l]),u=s!==o,g=nn(i[l]),v=g&&Object.keys(i[l]).length>0;c&&(!u&&v||u)?s[l]=i[l].bind(o):g&&!c?s[l]={}:s[l]=i[l],v&&a(i[l],s[l],o)})}(xr.prototype,this,this),hm.call(n,e),n.beforeInit(),n.init()}}gn(xr.prototype,[gm,vm,pm,Sm,Am,bm,Em,Rm,Om]);function iu(t=!1,e,n,a){const i=this,{config:s,$el:{main:o}}=i,l=s.data_selection_grouped,c=s.data_selection_isselectable.bind(i.api);s.data_selection_enabled&&o.selectAll(`.${tn.shapes}`).selectAll(`.${tn.shape}`).each(function(u){const g=st(this),{id:v,index:m}=u.data?u.data:u,S=i.getToggle(this,u).bind(i),I=l||!e||e.indexOf(v)>=0,N=!n||n.indexOf(m)>=0,M=g.classed(ke.SELECTED);g.classed(ar.line)||g.classed(qa.area)||(t?I&&N&&c(u)&&!M?S(!0,g.classed(ke.SELECTED,!0),u,m):Xe(a)&&a&&M&&S(!1,g.classed(ke.SELECTED,!1),u,m):I&&N&&c(u)&&M&&S(!1,g.classed(ke.SELECTED,!1),u,m))})}var Pm={selected(t){const e=this.internal,n=[];return e.$el.main.selectAll(`.${tn.shapes+e.getTargetSelectorSuffix(t)}`).selectAll(`.${tn.shape}`).filter(function(){return st(this).classed(ke.SELECTED)}).each(a=>n.push(a)),n},select(t,e,n){const a=this.internal;iu.bind(a)(!0,t,e,n)},unselect(t,e){const n=this.internal;iu.bind(n)(!1,t,e)}};const su=function(t){var e;const n=this.internal,{axis:a,brush:i,config:s,scale:{x:o,subX:l},state:c}=n;let u;return s.subchart_show&&(u=t,Array.isArray(u)?(a.isTimeSeries()&&(u=u.map(v=>Dn.bind(n)(v))),n.withinRange(u,n.getZoomDomain("subX",!0),n.getZoomDomain("subX"))&&(c.domain=u,i.move(i.getSelection(),u.map(l)))):u=(e=c.domain)!=null?e:o.orgDomain()),u};gn(su,{show(){var t,e;const n=this.internal,{$el:{subchart:a},config:i}=n,s=i.subchart_show;if(!s){n.unbindZoomEvent(),i.subchart_show=!s,!a.main&&n.initSubchart();let o=a.main.selectAll(`.${Se.target}`);n.data.targets.length!==o.size()&&(n.updateSizes(),n.updateTargetsForSubchart(n.data.targets),o=(t=a.main)==null?void 0:t.selectAll(`.${Se.target}`)),o==null||o.style("opacity",null),(e=a.main)==null||e.style("display",null),this.resize()}},hide(){const t=this.internal,{$el:{subchart:{main:e}},config:n}=t;n.subchart_show&&(e==null?void 0:e.style("display"))!=="none"&&(n.subchart_show=!1,e.style("display","none"),this.resize())},toggle(){const t=this.internal,{config:e}=t;this.subchart[e.subchart_show?"hide":"show"]()},reset(){const t=this.internal,{brush:e}=t;e.clear(e.getSelection())}});var wm={subchart:su},Mm=1e-12;function ou(t){return((t=Math.exp(t))+1/t)/2}function Lm(t){return((t=Math.exp(t))-1/t)/2}function Dm(t){return((t=Math.exp(2*t))-1)/(t+1)}var Nm=function t(e,n,a){function i(s,o){var l=s[0],c=s[1],u=s[2],g=o[0],v=o[1],m=o[2],S=g-l,I=v-c,N=S*S+I*I,M,P;if(N()=>t;function Fm(t,{sourceEvent:e,target:n,transform:a,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:a,enumerable:!0,configurable:!0},_:{value:i}})}function cr(t,e,n){this.k=t,this.x=e,this.y=n}cr.prototype={constructor:cr,scale:function(t){return t===1?this:new cr(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new cr(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var _n=new cr(1,0,0);ho.prototype=cr.prototype;function ho(t){for(;!t.__zoom;)if(!(t=t.parentNode))return _n;return t.__zoom}function go(t){t.stopImmediatePropagation()}function Fa(t){t.preventDefault(),t.stopImmediatePropagation()}function Bm(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Um(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function lu(){return this.__zoom||_n}function zm(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function jm(){return navigator.maxTouchPoints||"ontouchstart"in this}function Gm(t,e,n){var a=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],s=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>a?(a+i)/2:Math.min(0,a)||Math.max(0,i),o>s?(s+o)/2:Math.min(0,s)||Math.max(0,o))}function Vm(){var t=Bm,e=Um,n=Gm,a=zm,i=jm,s=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],l=250,c=Nm,u=ni("start","zoom","end"),g,v,m,S=500,I=150,N=0,M=10;function P(k){k.property("__zoom",lu).on("wheel.zoom",$t,{passive:!1}).on("mousedown.zoom",At).on("dblclick.zoom",vt).filter(i).on("touchstart.zoom",gt).on("touchmove.zoom",Ft).on("touchend.zoom touchcancel.zoom",pt).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}P.transform=function(k,Et,ut,Rt){var jt=k.selection?k.selection():k;jt.property("__zoom",lu),k!==jt?_(k,Et,ut,Rt):jt.interrupt().each(function(){K(this,arguments).event(Rt).start().zoom(null,typeof Et=="function"?Et.apply(this,arguments):Et).end()})},P.scaleBy=function(k,Et,ut,Rt){P.scaleTo(k,function(){var jt=this.__zoom.k,zt=typeof Et=="function"?Et.apply(this,arguments):Et;return jt*zt},ut,Rt)},P.scaleTo=function(k,Et,ut,Rt){P.transform(k,function(){var jt=e.apply(this,arguments),zt=this.__zoom,Wt=ut==null?Y(jt):typeof ut=="function"?ut.apply(this,arguments):ut,Ht=zt.invert(Wt),ee=typeof Et=="function"?Et.apply(this,arguments):Et;return n(H(G(zt,ee),Wt,Ht),jt,o)},ut,Rt)},P.translateBy=function(k,Et,ut,Rt){P.transform(k,function(){return n(this.__zoom.translate(typeof Et=="function"?Et.apply(this,arguments):Et,typeof ut=="function"?ut.apply(this,arguments):ut),e.apply(this,arguments),o)},null,Rt)},P.translateTo=function(k,Et,ut,Rt,jt){P.transform(k,function(){var zt=e.apply(this,arguments),Wt=this.__zoom,Ht=Rt==null?Y(zt):typeof Rt=="function"?Rt.apply(this,arguments):Rt;return n(_n.translate(Ht[0],Ht[1]).scale(Wt.k).translate(typeof Et=="function"?-Et.apply(this,arguments):-Et,typeof ut=="function"?-ut.apply(this,arguments):-ut),zt,o)},Rt,jt)};function G(k,Et){return Et=Math.max(s[0],Math.min(s[1],Et)),Et===k.k?k:new cr(Et,k.x,k.y)}function H(k,Et,ut){var Rt=Et[0]-ut[0]*k.k,jt=Et[1]-ut[1]*k.k;return Rt===k.x&&jt===k.y?k:new cr(k.k,Rt,jt)}function Y(k){return[(+k[0][0]+ +k[1][0])/2,(+k[0][1]+ +k[1][1])/2]}function _(k,Et,ut,Rt){k.on("start.zoom",function(){K(this,arguments).event(Rt).start()}).on("interrupt.zoom end.zoom",function(){K(this,arguments).event(Rt).end()}).tween("zoom",function(){var jt=this,zt=arguments,Wt=K(jt,zt).event(Rt),Ht=e.apply(jt,zt),ee=ut==null?Y(Ht):typeof ut=="function"?ut.apply(jt,zt):ut,je=Math.max(Ht[1][0]-Ht[0][0],Ht[1][1]-Ht[0][1]),Oe=jt.__zoom,Ge=typeof Et=="function"?Et.apply(jt,zt):Et,cn=c(Oe.invert(ee).concat(je/Oe.k),Ge.invert(ee).concat(je/Ge.k));return function(Le){if(Le===1)Le=Ge;else{var ln=cn(Le),Kt=je/ln[2];Le=new cr(Kt,ee[0]-ln[0]*Kt,ee[1]-ln[1]*Kt)}Wt.zoom(null,Le)}})}function K(k,Et,ut){return!ut&&k.__zooming||new at(k,Et)}function at(k,Et){this.that=k,this.args=Et,this.active=0,this.sourceEvent=null,this.extent=e.apply(k,Et),this.taps=0}at.prototype={event:function(k){return k&&(this.sourceEvent=k),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(k,Et){return this.mouse&&k!=="mouse"&&(this.mouse[1]=Et.invert(this.mouse[0])),this.touch0&&k!=="touch"&&(this.touch0[1]=Et.invert(this.touch0[0])),this.touch1&&k!=="touch"&&(this.touch1[1]=Et.invert(this.touch1[0])),this.that.__zoom=Et,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(k){var Et=st(this.that).datum();u.call(k,this.that,new Fm(k,{sourceEvent:this.sourceEvent,target:P,type:k,transform:this.that.__zoom,dispatch:u}),Et)}};function $t(k,...Et){if(!t.apply(this,arguments))return;var ut=K(this,Et).event(k),Rt=this.__zoom,jt=Math.max(s[0],Math.min(s[1],Rt.k*Math.pow(2,a.apply(this,arguments)))),zt=Un(k);if(ut.wheel)(ut.mouse[0][0]!==zt[0]||ut.mouse[0][1]!==zt[1])&&(ut.mouse[1]=Rt.invert(ut.mouse[0]=zt)),clearTimeout(ut.wheel);else{if(Rt.k===jt)return;ut.mouse=[zt,Rt.invert(zt)],kr(this),ut.start()}Fa(k),ut.wheel=setTimeout(Wt,I),ut.zoom("mouse",n(H(G(Rt,jt),ut.mouse[0],ut.mouse[1]),ut.extent,o));function Wt(){ut.wheel=null,ut.end()}}function At(k,...Et){if(m||!t.apply(this,arguments))return;var ut=k.currentTarget,Rt=K(this,Et,!0).event(k),jt=st(k.view).on("mousemove.zoom",ee,!0).on("mouseup.zoom",je,!0),zt=Un(k,ut),Wt=k.clientX,Ht=k.clientY;ls(k.view),go(k),Rt.mouse=[zt,this.__zoom.invert(zt)],kr(this),Rt.start();function ee(Oe){if(Fa(Oe),!Rt.moved){var Ge=Oe.clientX-Wt,cn=Oe.clientY-Ht;Rt.moved=Ge*Ge+cn*cn>N}Rt.event(Oe).zoom("mouse",n(H(Rt.that.__zoom,Rt.mouse[0]=Un(Oe,ut),Rt.mouse[1]),Rt.extent,o))}function je(Oe){jt.on("mousemove.zoom mouseup.zoom",null),cs(Oe.view,Rt.moved),Fa(Oe),Rt.event(Oe).end()}}function vt(k,...Et){if(t.apply(this,arguments)){var ut=this.__zoom,Rt=Un(k.changedTouches?k.changedTouches[0]:k,this),jt=ut.invert(Rt),zt=ut.k*(k.shiftKey?.5:2),Wt=n(H(G(ut,zt),Rt,jt),e.apply(this,Et),o);Fa(k),l>0?st(this).transition().duration(l).call(_,Wt,Rt,k):st(this).call(P.transform,Wt,Rt,k)}}function gt(k,...Et){if(t.apply(this,arguments)){var ut=k.touches,Rt=ut.length,jt=K(this,Et,k.changedTouches.length===Rt).event(k),zt,Wt,Ht,ee;for(go(k),Wt=0;WtDn.bind(n)(v))),n.withinRange(u,n.getZoomDomain("zoom",!0),n.getZoomDomain("zoom"))){if(l.domain=u,u=n.getZoomDomainValue(u),n.api.tooltip.hide(),i.subchart_show){const v=o.zoom||o.x;n.brush.getSelection().call(n.brush.move,u.map(v))}else{const v=c?o.x.orgScale():s.xScale||o.x;n.updateCurrentZoomTransform(v,u)}n.setZoomResetButton()}}else u=n.zoom.getDomain();return(e=l.domain)!=null?e:u};gn(cu,{enable(t){const e=this.internal,{config:n}=e;/^(drag|wheel)$/.test(t)&&(n.zoom_type=t),n.zoom_enabled=!!t,e.zoom?t===!1&&e.bindZoomEvent(!1):(e.initZoom(),e.bindZoomEvent()),e.updateAndRedraw()},max(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_max=Kn("max",[a[1],t])),n.zoom_x_max},min(t){const e=this.internal,{config:n,org:{xDomain:a}}=e;return(t===0||t)&&(n.zoom_x_min=Kn("min",[a[0],t])),n.zoom_x_min},range(t){const e=this.zoom;if(De(t)){const{min:n,max:a}=t;Xe(n)&&e.min(n),Xe(a)&&e.max(a)}return{min:e.min(),max:e.max()}}});var Xm={zoom:cu,unzoom(){const t=this.internal,{config:e,$el:{eventRect:n,zoomResetBtn:a},scale:{zoom:i},state:s}=t;i&&(e.subchart_show?t.brush.getSelection().call(t.brush.move,null):t.zoom.updateTransformScale(_n),t.updateZoom(!0),a==null||a.style("display","none"),ho(n.node())!==_n&&t.zoom.transform(n,_n),s.domain=void 0)}},Ym={initBrush(){const t=this,{config:e,scale:n,$el:{subchart:a},state:i}=t,s=e.axis_rotated,o=e.subchart_size_height;let l,c,u;t.brush=(s?jg():zg()).handleSize(5),t.brush.on("start brush end",g=>{const{selection:v,sourceEvent:m,target:S,type:I}=g;I==="start"&&(t.state.inputType==="touch"&&t.hideTooltip(),c=m?v:null),/(start|brush)/.test(I)&&(I==="brush"&&m&&i.domain&&(c==null||c.forEach((N,M)=>{N!==v[M]&&(i.domain[M]=n.x.orgDomain()[M])})),t.redrawForBrush(I!=="start")),I==="end"&&(l=n.x.orgDomain()),S!=null&&S.handle&&(v===null?t.brush.handle.attr("display","none"):t.brush.handle.attr("display",null).attr("transform",(N,M)=>{const P=[v[M],o/2];return`translate(${s?P.reverse():P})`}))}),t.brush.updateResize=function(){u&&clearTimeout(u),u=setTimeout(()=>{const g=this.getSelection();l&&Bl(g.node())&&this.move(g,l.map(n.subX.orgScale()))},0)},t.brush.update=function(){var g;return this.extent()()[1].filter(m=>isNaN(m)).length===0&&((g=a.main)==null||g.select(`.${Ne.brush}`).call(this)),this},t.brush.scale=function(g){const v=e.subchart_size_height;let m=t.getExtent();!m&&g.range?m=[[0,0],[g.range()[1],v]]:Fe(m)&&(m=m.map((S,I)=>[S,I>0?v:I])),s&&m[1].reverse(),this.extent(m),this.update()},t.brush.getSelection=()=>a.main?a.main.select(`.${Ne.brush}`):st([])},initSubchart(){const t=this,{config:e,state:{clip:n,hasAxis:a},$el:{defs:i,svg:s,subchart:o,axis:l}}=t;if(!a)return;const c=e.subchart_show?null:"hidden",u=`${n.id}-subchart`,g=t.getClipPath(u);n.idSubchart=u,t.appendClip(i,u),t.initBrush(),o.main=s.append("g").classed(Ne.subchart,!0).attr("transform",t.getTranslate("context"));const{main:v}=o;v.style("visibility",c),v.append("g").attr("clip-path",g).attr("class",Ne.chart),["bar","line","bubble","candlestick","scatter"].forEach(S=>{const I=In(/^(bubble|scatter)$/.test(S)?"circle":S);if(t.hasType(S)||t.hasTypeOf(I)){const N=v.select(`.${Ne.chart}`),M=Ne[`chart${I}s`];N.select(`.${M}`).empty()&&N.append("g").attr("class",M)}});const m=v.append("g").attr("clip-path",g).attr("class",Ne.brush).call(t.brush);e.subchart_showHandle&&t.addBrushHandle(m),l.subX=v.append("g").attr("class",Ne.axisX).attr("transform",t.getTranslate("subX")).attr("clip-path",e.axis_rotated?"":n.pathXAxis).style("visibility",e.subchart_axis_x_show?c:"hidden")},addBrushHandle(t){const e=this,{config:n}=e,a=n.axis_rotated,i=n.subchart_init_range,s="handle--custom",o=a?["M8.5 0 a6 6 0 0 0 -6 -6.5 H-2.5 a 6 6 0 0 0 -6 6.5 z m-5 -2 H-3.5 m7 -2 H-3.5z","M8.5 0 a6 -6 0 0 1 -6 6.5 H-2.5 a 6 -6 0 0 1 -6 -6.5z m-5 2 H-3.5 m7 2 H-3.5z"]:["M0 -8.5 A6 6 0 0 0 -6.5 -3.5 V2.5 A6 6 0 0 0 0 8.5 Z M-2 -3.5 V3.5 M-4 -3.5 V3.5z","M0 -8.5 A6 6 0 0 1 6.5 -3.5 V2.5 A6 6 0 0 1 0 8.5 Z M2 -3.5 V3.5 M4 -3.5 V3.5z"];e.brush.handle=t.selectAll(`.${s}`).data(a?[{type:"n"},{type:"s"}]:[{type:"w"},{type:"e"}]).enter().append("path").attr("class",s).attr("cursor",`${a?"ns":"ew"}-resize`).attr("d",l=>o[+/[se]/.test(l.type)]).attr("display",i?null:"none")},updateTargetsForSubchart(t){const e=this,{config:n,state:a,$el:{subchart:{main:i}}}=e;n.subchart_show&&(["bar","line","bubble","candlestick","scatter"].filter(s=>e.hasType(s)||e.hasTypeOf(In(s))).forEach(s=>{const o=/^(bubble|scatter)$/.test(s),l=In(o?"circle":s),c=e.getChartClass(l,!0),u=e.getClass(o?"circles":`${s}s`,!0),g=i.select(`.${Ne[`chart${`${l}s`}`]}`);if(o){const v=g.selectAll(`.${Ne.circles}`).data(t.filter(e[`is${In(s)}Type`].bind(e))).attr("class",u);v.exit().remove(),v.enter().append("g").attr("class",u)}else{const v=g.selectAll(`.${Ne[`chart${l}`]}`).attr("class",c).data(t.filter(e[`is${l}Type`].bind(e))),m=v.enter().append("g").style("opacity","0").attr("class",c).append("g").attr("class",u);v.exit().remove(),s==="line"&&e.hasTypeOf("Area")&&m.append("g").attr("class",e.getClass("areas",!0))}}),i.selectAll(`.${Ne.brush} rect`).attr(n.axis_rotated?"width":"height",n.axis_rotated?a.width2:a.height2))},redrawSubchart(t,e,n){var a;const i=this,{config:s,$el:{subchart:{main:o}},state:l}=i,c=!!e;if(o.style("visibility",s.subchart_show?null:"hidden"),s.subchart_show&&(((a=l.event)==null?void 0:a.type)==="zoom"&&i.brush.update(),t)){const u=s.subchart_init_range;if(!Hl(i)&&i.brush.update(),Object.keys(n.type).forEach(g=>{const v=In(g),m=i[`generateDraw${v}`](n.indices[g],!0);i[`update${v}`](c,!0),i[`redraw${v}`](m,c,!0)}),i.hasType("bubble")||i.hasType("scatter")){const{cx:g}=n.pos,v=i.updateCircleY(!0);i.updateCircle(!0),i.redrawCircle(g,v,c,void 0,!0)}!l.rendered&&u&&(l.domain=u,i.brush.move(i.brush.getSelection(),u.map(i.scale.x)))}},redrawForBrush(t=!0){var e;const n=this,{config:{subchart_onbrush:a,zoom_rescale:i},scale:s,state:o}=n;n.redraw({withTransition:!1,withY:i,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),t&&o.rendered&&a.bind(n.api)((e=o.domain)!=null?e:s.x.orgDomain())},transformContext(t,e){const n=this,{$el:{subchart:a},$T:i}=n,s=e!=null&&e.axisSubX?e.axisSubX:i(a.main.select(`.${Ne.axisX}`),t);a.main.attr("transform",n.getTranslate("context")),s.attr("transform",n.getTranslate("subX"))},getExtent(){const t=this,{config:e,scale:n}=t;let a=e.axis_x_extent;if(a){if(de(a))a=a.bind(t.api)(t.getXDomain(t.data.targets),n.subX);else if(t.axis.isTimeSeries()&&a.every(isNaN)){const i=Dn.bind(t);a=a.map(s=>n.subX(i(s)))}}return a}},Hm={initZoom(){const t=this;t.scale.zoom=null,t.generateZoom(),t.initZoomBehaviour()},bindZoomEvent(t=!0){const e=this,{config:n}=e;n.zoom_enabled&&t?!n.subchart_show&&e.bindZoomOnEventRect():t===!1&&(e.api.unzoom(),e.unbindZoomEvent())},generateZoom(){const t=this,{config:e,org:n,scale:a}=t,i=Vm().duration(0).on("start",t.onZoomStart.bind(t)).on("zoom",t.onZoom.bind(t)).on("end",t.onZoomEnd.bind(t));i.orgScaleExtent=()=>{const s=e.zoom_extent||[1,10];return[s[0],Math.max(t.getMaxDataCount()/s[1],s[1])]},i.updateScaleExtent=function(){const s=Ir(t.scale.x.orgDomain())/Ir(t.getZoomDomain()),o=this.orgScaleExtent();return this.scaleExtent([o[0]*s,o[1]*s]),this},i.updateTransformScale=(s,o)=>{var l;const c=e.axis_rotated;(l=n.xScale)==null||l.range(a.x.range());const u=s[c?"rescaleY":"rescaleX"](n.xScale||a.x),g=t.trimXDomain(u.domain()),v=e.zoom_rescale;if(u.domain(g,n.xDomain),o){const m=u(a.x.domain()[0]),S=c?s.x:m,I=c?m:s.y;t.$el.eventRect.property("__zoom",_n.translate(S,I).scale(s.k))}t.state.xTickOffset||(t.state.xTickOffset=t.axis.x.tickOffset()),a.zoom=t.getCustomizedXScale(u),t.axis.x.scale(a.zoom),v?(!n.xScale&&(n.xScale=a.x.copy()),a.x.domain(g)):n.xScale&&(a.x.domain(n.xScale.domain()),n.xScale=null)},i.getDomain=()=>{const s=a[a.zoom?"zoom":"subX"].domain();return t.axis.isCategorized()&&(s[1]-=2),s},t.zoom=i},onZoomStart(t){const e=this,{sourceEvent:n}=t;n&&(e.zoom.startEvent=n,e.state.zooming=!0,Ze(e.config.zoom_onzoomstart,e.api,t))},onZoom(t){var e;const n=this,{config:a,scale:i,state:s,org:o}=n,{sourceEvent:l}=t,c=(t==null?void 0:t.transform)===_n;if(!a.zoom_enabled||n.filterTargetsToShow(n.data.targets).length===0||!i.zoom&&(l==null?void 0:l.type.indexOf("touch"))>-1&&(l==null?void 0:l.touches.length)===1)return;t.sourceEvent&&(s.zooming=!0,s.domain=void 0);const u=(l==null?void 0:l.type)==="mousemove",g=(l==null?void 0:l.wheelDelta)<0,{transform:v}=t;!u&&g&&i.x.domain().every((S,I)=>S!==o.xDomain[I])&&i.x.domain(o.xDomain),n.zoom.updateTransformScale(v,a.zoom_type==="wheel"&&l);const m=a.transition_duration>0&&!a.subchart_show&&(s.dragging||c||!t.sourceEvent);n.redraw({withTransition:m,withY:a.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),n.state.cancelClick=u,!c&&Ze(a.zoom_onzoom,n.api,(e=n.state.domain)!=null?e:n.zoom.getDomain())},onZoomEnd(t){var e,n;const a=this,{config:i,state:s}=a;let{startEvent:o}=a.zoom,l=t==null?void 0:t.sourceEvent;const c=(t==null?void 0:t.transform)===_n;(o==null?void 0:o.type.indexOf("touch"))>-1&&(o=o.changedTouches[0],l=(e=l==null?void 0:l.changedTouches)==null?void 0:e[0]),!(i.zoom_type==="drag"&&l&&o.clientX===l.clientX&&o.clientY===l.clientY)&&(s.zooming=!1,a.redrawEventRect(),a.updateZoom(),!c&&(l||s.dragging)&&Ze(i.zoom_onzoomend,a.api,(n=a.state.domain)!=null?n:a.zoom.getDomain()))},updateZoom(t){const e=this,{subX:n,x:a,zoom:i}=e.scale;if(i){const s=i.domain(),o=n.domain(),l=.015,c=e.config.axis_x_inverted?(s[0]>=o[0]||s[0]+l>=o[0])&&(o[1]>=s[1]||o[1]>=s[1]+l):(s[0]<=o[0]||s[0]-l<=o[0])&&(o[1]<=s[1]||o[1]<=s[1]-l);(t||c)&&(e.axis.x.scale(n),a.domain(n.orgDomain()),e.scale.zoom=null)}},updateCurrentZoomTransform(t,e){const n=this,{$el:{eventRect:a},config:i}=n,s=i.axis_rotated,o=[-t(e[0]),0],l=_n.scale(t.range()[1]/(t(e[1])-t(e[0]))).translate(...s?o.reverse():o);a.call(n.zoom.transform,l)},bindZoomOnEventRect(){const t=this,{config:e,$el:{eventRect:n}}=t,a=e.zoom_type==="drag"?t.zoomBehaviour:t.zoom;n==null||n.call(a).on("dblclick.zoom",null)},initZoomBehaviour(){const t=this,{config:e,state:n}=t,a=e.axis_rotated;let i=0,s=0,o;const l={axis:a?"y":"x",attr:a?"height":"width",index:a?1:0};t.zoomBehaviour=lc().clickDistance(4).on("start",function(c){n.event=c,t.setDragStatus(!0),t.unselectRect(),o||(o=t.$el.main.append("rect").attr("clip-path",n.clip.path).attr("class",ss.zoomBrush).attr("width",a?n.width:0).attr("height",a?0:n.height)),i=zn(c,this)[l.index],s=i,o.attr(l.axis,i).attr(l.attr,0),t.onZoomStart(c)}).on("drag",function(c){s=zn(c,this)[l.index],o.attr(l.axis,Math.min(i,s)).attr(l.attr,Math.abs(s-i))}).on("end",c=>{const u=t.scale.zoom||t.scale.x;n.event=c,o.attr(l.axis,0).attr(l.attr,0),i>s&&([i,s]=[s,i]),i<0&&(s+=Math.abs(i),i=0),i!==s&&t.api.zoom([i,s].map(g=>u.invert(g))),t.setDragStatus(!1)})},setZoomResetButton(){const t=this,{config:e,$el:n}=t,a=e.zoom_resetButton;a&&e.zoom_type==="drag"&&(n.zoomResetBtn?n.zoomResetBtn.style("display",null):n.zoomResetBtn=t.$el.chart.append("div").classed(Se.button,!0).append("span").on("click",function(){de(a.onclick)&&a.onclick.bind(t.api)(this),t.api.unzoom()}).classed(ss.buttonZoomReset,!0).text(a.text||"Reset Zoom"))},getZoomTransform(){const t=this,{$el:{eventRect:e}}=t;return e!=null&&e.node()?ho(e.node()):{k:1}}},Wm={drag(t){const e=this,{config:n,state:a,$el:{main:i}}=e,s=n.data_selection_grouped,o=n.interaction_enabled&&n.data_selection_isselectable;if(e.hasArcType()||!n.data_selection_enabled||n.zoom_enabled&&!e.zoom.altDomain||!n.data_selection_multiple)return;const[l,c]=a.dragStart||[0,0],[u,g]=t,v=Math.min(l,u),m=Math.max(l,u),S=s?a.margin.top:Math.min(c,g),I=s?a.height:Math.max(c,g);i.select(`.${Ar.dragarea}`).attr("x",v).attr("y",S).attr("width",m-v).attr("height",I-S),i.selectAll(`.${tn.shapes}`).selectAll(`.${tn.shape}`).filter(N=>o==null?void 0:o.bind(e.api)(N)).each(function(N,M){const P=st(this),G=P.classed(ke.SELECTED),H=P.classed(Ar.INCLUDED);let Y=!1,_;if(P.classed(pn.circle)){const K=+P.attr("cx")*1,at=+P.attr("cy")*1;_=e.togglePoint,Y=ve in t?Km(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,_m=(t,e)=>{for(var n in e||(e={}))Jm.call(e,n)&&fu(t,n,e[n]);if(uu)for(var n of uu(e))Qm.call(e,n)&&fu(t,n,e[n]);return t},qm=(t,e)=>Zm(t,km(e)),ty=qm(_m({},Wm),{selectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a,l=i.axis_rotated,c=(l?a.circleY:a.circleX).bind(a),u=(l?a.circleX:a.circleY).bind(a),g=a.pointSelectR.bind(a);Ze(i.data_onselected,a.api,e,t.node()),o(s.select(`.${ke.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${ke.selectedCircle}-${n}`).data([e]).enter().append("circle").attr("class",()=>a.generateClass(ke.selectedCircle,n)).attr("cx",c).attr("cy",u).attr("stroke",a.color).attr("r",v=>a.pointSelectR(v)*1.4)).attr("r",g)},unselectPoint(t,e,n){const a=this,{config:i,$el:{main:s},$T:o}=a;Ze(i.data_onunselected,a.api,e,t==null?void 0:t.node()),o(s.select(`.${ke.selectedCircles}${a.getTargetSelectorSuffix(e.id)}`).selectAll(`.${ke.selectedCircle}-${n}`)).attr("r",0).remove()},togglePoint(t,e,n,a){this[`${t?"":"un"}selectPoint`](e,n,a)},selectPath(t,e){const n=this,{config:a}=n;Ze(a.data_onselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter","brightness(1.25)")},unselectPath(t,e){const n=this,{config:a}=n;Ze(a.data_onunselected,n.api,e,t.node()),a.interaction_brighten&&t.style("filter",null)},togglePath(t,e,n,a){this[`${t?"":"un"}selectPath`](e,n,a)},getToggle(t,e){const n=this;return t.nodeName==="path"?n.togglePath:n.isStepType(e)?()=>{}:n.togglePoint},toggleShape(t,e,n){var a;const i=this,{config:s,$el:{main:o}}=i;if(s.data_selection_enabled&&s.data_selection_isselectable.bind(i.api)(e)){const l=st(t),c=l.classed(ke.SELECTED),u=i.getToggle(t,e).bind(i);let g;if(!s.data_selection_multiple){const v=(a=i.isPointFocusOnly)==null?void 0:a.call(i);let m=`.${v?ke.selectedCircles:tn.shapes}`;s.data_selection_grouped&&(m+=i.getTargetSelectorSuffix(e.id)),o.selectAll(m).selectAll(v?`.${ke.selectedCircle}`:`.${tn.shape}.${ke.SELECTED}`).classed(ke.SELECTED,!1).each(function(S){const I=st(this);g=I,u(!1,I,S,S.index)})}(!g||g.node()!==l.node())&&(l.classed(ke.SELECTED,!c),u(!c,l,e,n))}}}),ey={data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:()=>!0,data_selection_multiple:!0,data_selection_draggable:!1,data_onselected:()=>{},data_onunselected:()=>{}},ny={subchart_show:!1,subchart_showHandle:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_axis_x_tick_show:!0,subchart_axis_x_tick_format:void 0,subchart_axis_x_tick_text_show:!0,subchart_init_range:void 0,subchart_onbrush:()=>{}},ry={zoom_enabled:!1,zoom_type:"wheel",zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:void 0,zoom_onzoomstart:void 0,zoom_onzoomend:void 0,zoom_resetButton:!0,zoom_x_min:void 0,zoom_x_max:void 0};let du=()=>(gn(Fr.prototype,ty),gn(xr.prototype,Pm),Pr.setOptions([ey]),(du=()=>!0)()),hu=()=>(gn(Fr.prototype,Ym),gn(xr.prototype,wm),Pr.setOptions([ny]),(hu=()=>!0)()),gu=()=>(gn(Fr.prototype,Hm),gn(xr.prototype,Xm),Pr.setOptions([ry]),(gu=()=>!0)());function vu(t,e,n){const{config:a}=t,i=(s,o)=>{const l=fe(o)?o:o===!1?void 0:null;l!==null&&(a[`axis_${s}_${e}`]=l)};Xe(n)&&(Jn(n)?Object.keys(n).forEach(s=>{i(s,n[s])}):(fe(n)||n===!1)&&["y","y2"].forEach(s=>{i(s,n)}),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))}function pu(t,e){const{config:n}=t;return{x:n[`axis_x_${e}`],y:n[`axis_y_${e}`],y2:n[`axis_y2_${e}`]}}var ay={axis:{labels:function(t){const e=this.internal;let n;return t&&(Object.keys(t).forEach(a=>{e.axis.setLabelText(a,t[a])}),e.axis.updateLabels()),["x","y","y2"].forEach(a=>{const i=e.axis.getLabelText(a);i&&(!n&&(n={}),n[a]=i)}),n},min:function(t){const e=this.internal;return Ie(t)||t===!1?vu(e,"min",t):pu(e,"min")},max:function(t){const e=this.internal;return Ie(t)||t===!1?vu(e,"max",t):pu(e,"max")},range:function(t){const{axis:e}=this;if(arguments.length){const{min:n,max:a}=t;Xe(a)&&e.max(a),Xe(n)&&e.min(n)}else return{max:e.max(),min:e.min()}}}},iy={category(t,e){const n=this.internal,{config:a}=n;return arguments.length>1&&(a.axis_x_categories[t]=e,n.redraw()),a.axis_x_categories[t]},categories(t){const e=this.internal,{config:n}=e;if(!t||!Array.isArray(t)){const a=n.axis_x_categories;return Wn(a)?Object.values(e.data.xs)[0]:a}return n.axis_x_categories=t,e.redraw(),n.axis_x_categories}},sy={flow(t){const e=this.internal;let n;(t.json||t.rows||t.columns)&&e.convertData(t,i=>{n=i,a()});function a(){let i,s=0,o=0,l,c;if(e.state.redrawing||!n||!Ma())return;const u=[],g=e.getMaxDataCount(),v=e.convertDataToTargets(n,!0),m=e.axis.isTimeSeries();e.data.targets.forEach(N=>{let M=!1;for(let P=0;P{for(let M=0;M{const M=[];for(let P=e.data.targets[0].values[0].index;P{P.index+=o,m||(P.x+=o)}),N.values=M.concat(N.values)}),e.data.targets=e.data.targets.concat(v);const S=e.data.targets[0],I=S.values[0];Xe(t.to)?(s=0,c=m?Dn.call(e,t.to):t.to,S.values.forEach(N=>{N.x1?S.values[S.values.length-1].x-I.x:I.x-e.getXDomain(e.data.targets)[0]:l=1,i=[I.x-l,I.x]),i&&e.updateXDomain(null,!0,!0,!1,i),e.updateTargets(e.data.targets),e.redraw({flow:{index:I.index,length:s,duration:Ie(t.duration)?t.duration:e.config.transition_duration,done:t.done,orgDataCount:g},withLegend:!0,withTransition:g>1,withTrimXDomain:!1,withUpdateXAxis:!0})}}};function vo(t,e){const n=this.internal,{config:a}=n,i=a.transition_duration&&Ma(),s=`grid_${e}_lines`;return t&&(a[s]=t,n.updateGrid(),n.redrawGrid(i)),a[s]}function mu(t,e){const n=`grid_${e}_lines`;return vo.bind(this)(this.internal.config[n].concat(t||[]),e)}function yu(t,e){this.internal.removeGridLines(t,e)}const xu=function(t){return vo.bind(this)(t,"x")};gn(xu,{add(t){return mu.bind(this)(t,"x")},remove(t){return yu.bind(this)(t,!0)}});const Tu=function(t){return vo.bind(this)(t,"y")};gn(Tu,{add(t){return mu.bind(this)(t,"y")},remove(t){return yu.bind(this)(t,!1)}});var oy={xgrids:xu,ygrids:Tu},ly={groups(t){const e=this.internal,{config:n}=e;return en(t)||(n.data_groups=t,e.redraw()),n.data_groups}};function $u(t,e=!1){const n=this.internal,{config:a}=n,i=a.transition_duration&&Ma();return t?(a.regions=e?a.regions.concat(t):t,n.updateRegion(),n.redrawRegion(i),e?a.regions:t):a.regions}const Su=function(t){return $u.bind(this)(t)};gn(Su,{add:function(t){return $u.bind(this)(t,!0)},remove:function(t){const e=this.internal,{config:n,$T:a}=e,i=t||{},s=pr(i,"classes",[$a.region]);let o=e.$el.main.select(`.${$a.regions}`).selectAll(s.map(l=>`.${l}`));return a(o).style("opacity","0").remove(),o=n.regions,Object.keys(i).length?(o=o.filter(l=>{let c=!1;return l.class?(l.class.split(" ").forEach(u=>{s.indexOf(u)>=0&&(c=!0)}),!c):!0}),n.regions=o):n.regions=[],o}});var cy={regions:Su},uy={x(t){const e=this.internal,{axis:n,data:a}=e,i=n.isCustomX()&&n.isCategorized();return Fe(t)&&(i?this.categories(t):(e.updateTargetX(a.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0}))),i?this.categories():a.xs},xs(t){const e=this.internal;return De(t)&&(e.updateTargetXs(e.data.targets,t),e.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),e.data.xs}};function fy(t){return t}var Vi=1,Xi=2,po=3,Ba=4,Au=1e-6;function dy(t){return"translate("+t+",0)"}function hy(t){return"translate(0,"+t+")"}function gy(t){return e=>+t(e)}function vy(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function py(){return!this.__axis}function Yi(t,e){var n=[],a=null,i=null,s=6,o=6,l=3,c=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,u=t===Vi||t===Ba?-1:1,g=t===Ba||t===Xi?"x":"y",v=t===Vi||t===po?dy:hy;function m(S){var I=a==null?e.ticks?e.ticks.apply(e,n):e.domain():a,N=i==null?e.tickFormat?e.tickFormat.apply(e,n):fy:i,M=Math.max(s,0)+l,P=e.range(),G=+P[0]+c,H=+P[P.length-1]+c,Y=(e.bandwidth?vy:gy)(e.copy(),c),_=S.selection?S.selection():S,K=_.selectAll(".domain").data([null]),at=_.selectAll(".tick").data(I,e).order(),$t=at.exit(),At=at.enter().append("g").attr("class","tick"),vt=at.select("line"),gt=at.select("text");K=K.merge(K.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),at=at.merge(At),vt=vt.merge(At.append("line").attr("stroke","currentColor").attr(g+"2",u*s)),gt=gt.merge(At.append("text").attr("fill","currentColor").attr(g,u*M).attr("dy",t===Vi?"0em":t===po?"0.71em":"0.32em")),S!==_&&(K=K.transition(S),at=at.transition(S),vt=vt.transition(S),gt=gt.transition(S),$t=$t.transition(S).attr("opacity",Au).attr("transform",function(Ft){return isFinite(Ft=Y(Ft))?v(Ft+c):this.getAttribute("transform")}),At.attr("opacity",Au).attr("transform",function(Ft){var pt=this.parentNode.__axis;return v((pt&&isFinite(pt=pt(Ft))?pt:Y(Ft))+c)})),$t.remove(),K.attr("d",t===Ba||t===Xi?o?"M"+u*o+","+G+"H"+c+"V"+H+"H"+u*o:"M"+c+","+G+"V"+H:o?"M"+G+","+u*o+"V"+c+"H"+H+"V"+u*o:"M"+G+","+c+"H"+H),at.attr("opacity",1).attr("transform",function(Ft){return v(Y(Ft)+c)}),vt.attr(g+"2",u*s),gt.attr(g,u*M).text(N),_.filter(py).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Xi?"start":t===Ba?"end":"middle"),_.each(function(){this.__axis=Y})}return m.scale=function(S){return arguments.length?(e=S,m):e},m.ticks=function(){return n=Array.from(arguments),m},m.tickArguments=function(S){return arguments.length?(n=S==null?[]:Array.from(S),m):n.slice()},m.tickValues=function(S){return arguments.length?(a=S==null?null:Array.from(S),m):a&&a.slice()},m.tickFormat=function(S){return arguments.length?(i=S,m):i},m.tickSize=function(S){return arguments.length?(s=o=+S,m):s},m.tickSizeInner=function(S){return arguments.length?(s=+S,m):s},m.tickSizeOuter=function(S){return arguments.length?(o=+S,m):o},m.tickPadding=function(S){return arguments.length?(l=+S,m):l},m.offset=function(S){return arguments.length?(c=+S,m):c},m}function my(t){return Yi(Vi,t)}function yy(t){return Yi(Xi,t)}function bu(t){return Yi(po,t)}function Eu(t){return Yi(Ba,t)}var xy=Object.defineProperty,Ty=(t,e,n)=>e in t?xy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mo=(t,e,n)=>Ty(t,typeof e!="symbol"?e+"":e,n);class Ru{constructor(e){mo(this,"owner"),mo(this,"config"),mo(this,"scale");const n=Dr(),{config:a,params:i}=e;this.owner=e,this.config=a,this.scale=n,(a.noTransition||!i.config.transition_duration)&&(a.withoutTransition=!0),a.range=this.scaleExtent((i.orgXScale||n).range())}static getSizeFor1Char(e){const n={w:5.5,h:11.5};return!e.empty()&&e.select("text").text("0").call(a=>{try{const{width:i,height:s}=a.node().getBBox();i&&s&&(n.w=i,n.h=s)}catch(i){}finally{a.text("")}}),this.getSizeFor1Char=()=>n,n}getTickTransformSetter(e){const{config:n}=this,a=e==="x"?i=>`translate(${i+n.tickOffset},0)`:i=>`translate(0,${i})`;return(i,s)=>{i.attr("transform",o=>Ie(o)?a(Math.ceil(s(o))):null)}}scaleExtent(e){const n=e[0],a=e[e.length-1];return n0?i:1,s]).range(e.range());o=c.ticks();for(let u=s.toFixed().length;o.length>15;u--)o=c.ticks(u);o.splice(0,1,i),o.splice(o.length-1,1,s)}else o=e.ticks(...this.config.tickArguments||[]);o=o.map(c=>ze(c)&&fe(c)&&!isNaN(c)&&Math.round(c*10)/10||c)}return o}copyScale(){const e=this.scale.copy();return e.domain().length||e.domain(this.scale.domain()),e.type=this.scale.type,e}textFormatted(e){const n=this.config.tickFormat,a=/\d+\.\d+0{5,}\d$/.test(e)?+String(e).replace(/0+\d$/,""):e,i=n?n(a):a;return Xe(i)?i:""}transitionise(e){const{config:n}=this;let a=e;if(n.withoutTransition)a=e.interrupt();else if(n.transition||!this.owner.params.noTransition)try{a=e.transition(n.transition)}catch(i){}return a}}var $y=Object.defineProperty,Sy=(t,e,n)=>e in t?$y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ua=(t,e,n)=>Sy(t,typeof e!="symbol"?e+"":e,n);class Ay{constructor(e={}){Ua(this,"helper"),Ua(this,"config"),Ua(this,"params"),Ua(this,"g"),Ua(this,"generatedTicks");const n={innerTickSize:6,outerTickSize:e.outerTick?6:0,orient:"bottom",range:[],tickArguments:null,tickCentered:null,tickCulling:!0,tickFormat:null,tickLength:9,tickOffset:0,tickPadding:3,tickValues:null,transition:null,noTransition:e.noTransition};n.tickLength=Math.max(n.innerTickSize,0)+n.tickPadding,this.config=n,this.params=e,this.helper=new Ru(this)}create(e){const n=this,{config:a,helper:i,params:s}=n,{scale:o}=i,{orient:l}=a,c=this.splitTickText.bind(n),u=/^(left|right)$/.test(l),g=/^(top|bottom)$/.test(l),v=i.getTickTransformSetter(g?"x":"y"),m=v===i.axisX?"y":"x",S=/^(top|left)$/.test(l)?-1:1,I=s.tickTextRotate;this.config.range=o.rangeExtent?o.rangeExtent():i.scaleExtent((s.orgXScale||o).range());const{innerTickSize:N,tickLength:M,range:P}=a,G=s.id,H=G&&/^(x|y|y2)$/.test(G)?s.config[`axis_${G}_tick_text_position`]:{x:0,y:0},Y=G==="subX"?"subchart_axis_x":`axis_${G}`,_=s.config[`${Y}_show`],K={tick:_?s.config[`${Y}_tick_show`]:!1,text:_?s.config[`${Y}_tick_text_show`]:!1};let at;e.each(function(){const $t=st(this);let At=this.__chart__||o,vt=i.copyScale();at=$t,this.__chart__=vt,a.tickOffset=s.isCategory?Math.ceil((vt(1)-vt(0))/2):0;const gt=$t.selectAll(".domain").data([0]);if(gt.enter().append("path").attr("class","domain").merge(gt).attr("d",()=>{const Ft=a.outerTickSize*S;return g?`M${P[0]},${Ft}V0H${P[1]}V${Ft}`:`M${Ft},${P[0]}H0V${P[1]}H${Ft}`}),K.tick||K.text){const Ft=a.tickValues||i.generateTicks(vt,u);n.generatedTicks=Ft;let pt=$t.selectAll(".tick").data(Ft,vt);const k=pt.enter().insert("g",".domain").attr("class","tick"),Et=pt.exit().remove();pt=k.merge(pt),K.tick&&k.append("line"),K.text&&k.append("text");const ut=Ru.getSizeFor1Char(pt),Rt=[];let jt=pt.select("text").selectAll("tspan").data((Ht,ee)=>{const je=s.tickMultiline?c(Ht,vt,Ft,u,ut.w):Fe(i.textFormatted(Ht))?i.textFormatted(Ht).concat():[i.textFormatted(Ht)];return Rt[ee]=je.length,je.map(Oe=>({index:ee,splitted:Oe}))});jt.exit().remove(),jt=jt.enter().append("tspan").merge(jt).text(Ht=>Ht.splitted),jt.attr("x",g?0:M*S).attr("dx",(()=>{let Ht=0;return/(top|bottom)/.test(l)&&I&&(Ht=8*Math.sin(Math.PI*(I/180))*(l==="top"?-1:1)),Ht+(H.x||0)})()).attr("dy",(Ht,ee)=>{const je=".71em";let Oe=0;return l!=="top"&&(Oe=ut.h,ee===0&&(Oe=u?-((Rt[Ht.index]-1)*(ut.h/2)-3):H.y===0?je:0)),fe(Oe)&&H.y?Oe+H.y:Oe||je});const zt=pt.select("line"),Wt=pt.select("text");if(k.select("line").attr(`${m}2`,N*S),k.select("text").attr(m,M*S),n.setTickLineTextPosition(zt,Wt),s.tickTitle){const Ht=Wt.select("title");(Ht.empty()?Wt.append("title"):Ht).text(ee=>s.tickTitle[ee])}if(vt.bandwidth){const Ht=vt,ee=Ht.bandwidth()/2;At=je=>Ht(je)+ee,vt=At}else At.bandwidth?At=vt:v(Et,vt);pt=s.owner.state.flowing?i.transitionise(pt):s.owner.$T(pt),v(k,At),v(pt.style("opacity",null),vt)}}),this.g=at}getGeneratedTicks(e){var n;const a=((n=this.generatedTicks)==null?void 0:n.length)-1;let i=this.generatedTicks;if(a>e){const s=Math.round(a/e+.1);i=this.generatedTicks.map((o,l)=>l%s===0?o:null).filter(o=>o!==null).splice(0,e)}return i}getTickXY(){const{config:e}=this,n={x:0,y:0};return this.params.isCategory&&(n.x=e.tickCentered?0:e.tickOffset,n.y=e.tickCentered?e.tickOffset:0),n}getTickSize(e){const{scale:n}=this.helper,{config:a}=this,{innerTickSize:i,range:s}=a,o=n(e)+(a.tickCentered?0:a.tickOffset);return s[0]{const N=["start","end"];return s==="top"&&N.reverse(),I?N[I>0?0:1]:"middle"},g=I=>I?`rotate(${I})`:null,v=I=>{const N=I/(s==="bottom"?15:23);return I?11.5-2.5*N*(I>0?1:-1):o},{config:{axis_rotated:m,axis_x_tick_text_inner:S}}=this.params.owner;switch(s){case"bottom":e.attr("x1",a.x).attr("x2",a.x).attr("y2",this.getTickSize.bind(this)),n.attr("x",0).attr("y",v(c)).style("text-anchor",u(c)).style("text-anchor",(I,N,{length:M})=>!m&&N===0&&(S===!0||S.first)?"start":!m&&N===M-1&&(S===!0||S.last)?"end":u(c)).attr("transform",g(c));break;case"top":e.attr("x2",0).attr("y2",-i),n.attr("x",0).attr("y",-v(c)*2).style("text-anchor",u(c)).attr("transform",g(c));break;case"left":e.attr("x2",-i).attr("y1",a.y).attr("y2",a.y),n.attr("x",-o).attr("y",l).style("text-anchor","end");break;case"right":e.attr("x2",i).attr("y2",0),n.attr("x",o).attr("y",0).style("text-anchor","start")}}splitTickText(e,n,a,i,s){const{params:o}=this,l=this.helper.textFormatted(e),c=ze(l)&&l.indexOf(` `)>-1?l.split(` -`):[];if(c.length)return c;if(Fe(l))return l;let u=o.tickWidth;(!u||u<=0)&&(u=i?95:o.isCategory?Math.ceil(o.isInverted?n(a[0])-n(a[1]):n(a[1])-n(a[0]))-12:110);function g(v,m){let S,I,N;for(let M=1;M{const S=v+1;return Se(this.helper.scale.domain());else{if(!arguments.length)return n.tickValues;n.tickValues=e}return this}setTransition(e){return this.config.transition=e,this}}var by=Object.defineProperty,Ey=(t,e,n)=>e in t?by(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ur=(t,e,n)=>Ey(t,typeof e!="symbol"?e+"":e,n),Ry={getAxisInstance:function(){return this.axis||new Oy(this)}};class Oy{constructor(e){ur(this,"owner"),ur(this,"x"),ur(this,"subX"),ur(this,"y"),ur(this,"y2"),ur(this,"axesList",{}),ur(this,"tick",{x:null,y:null,y2:null}),ur(this,"xs",[]),ur(this,"orient",{x:"bottom",y:"left",y2:"right",subX:"bottom"}),this.owner=e,this.setOrient()}getAxisClassName(e){return`${on.axis} ${on[`axis${In(e)}`]}`}isHorizontal(e,n){const a=e.config.axis_rotated;return n?a:!a}isCategorized(){const{config:e,state:n}=this.owner;return e.axis_x_type.indexOf("category")>=0||n.hasRadar}isCustomX(){const{config:e}=this.owner;return!this.isTimeSeries()&&(e.data_x||nn(e.data_xs))}isTimeSeries(e="x"){return this.owner.config[`axis_${e}_type`]==="timeseries"}isLog(e="x"){return this.owner.config[`axis_${e}_type`]==="log"}isTimeSeriesY(){return this.isTimeSeries("y")}getAxisType(e="x"){let n="linear";return this.isTimeSeries(e)?n=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(n="log"),n}init(){const e=this.owner,{config:n,$el:{main:a,axis:i},state:{clip:s}}=e,o=n.axis_rotated,l=["x","y"];n.axis_y2_show&&l.push("y2"),l.forEach(c=>{const u=this.getAxisClassName(c),g=on[`axis${c.toUpperCase()}Label`];i[c]=a.append("g").attr("class",u).attr("clip-path",()=>{let v=null;return c==="x"?v=s.pathXAxis:c==="y"&&(v=s.pathYAxis),v}).attr("transform",e.getTranslate(c)).style("visibility",n[`axis_${c}_show`]?null:"hidden"),i[c].append("text").attr("class",g).attr("transform",["rotate(-90)",null][c==="x"?+!o:+o]).style("text-anchor",()=>this.textAnchorForAxisLabel(c)),this.generateAxes(c)}),n.axis_tooltip&&this.setAxisTooltip()}setOrient(){const e=this.owner,{axis_rotated:n,axis_y_inner:a,axis_y2_inner:i}=e.config;this.orient={x:n?"left":"bottom",y:n?a?"top":"bottom":a?"right":"left",y2:n?i?"bottom":"top":i?"left":"right",subX:n?"left":"bottom"}}generateAxes(e){const n=this.owner,{config:a}=n,i=[],s=a[`axis_${e}_axes`],o=a.axis_rotated;let l;e==="x"?l=o?Eu:bu:e==="y"?l=o?bu:Eu:e==="y2"&&(l=o?my:yy),s.length&&s.forEach(c=>{const u=c.tick||{},g=n.scale[e].copy();c.domain&&g.domain(c.domain),i.push(l(g).ticks(u.count).tickFormat(de(u.format)?u.format.bind(n.api):v=>v).tickValues(u.values).tickSizeOuter(u.outer===!1?0:6))}),this.axesList[e]=i}updateAxes(){const e=this.owner,{config:n,$el:{main:a},$T:i}=e;Object.keys(this.axesList).forEach(s=>{const o=n[`axis_${s}_axes`],l=e.scale[s].copy(),c=l.range();this.axesList[s].forEach((u,g)=>{const v=u.scale().range();c.every((I,N)=>I===v[N])||u.scale().range(c);const m=`${this.getAxisClassName(s)}-${g+1}`;let S=a.select(`.${m.replace(/\s/,".")}`);S.empty()?S=a.append("g").attr("class",m).style("visibility",n[`axis_${s}_show`]?null:"hidden").call(u):(o[g].domain&&l.domain(o[g].domain),i(S).call(u.scale(l))),S.attr("transform",e.getTranslate(s,g+1))})})}setAxis(e,n,a,i){const s=this.owner;e!=="subX"&&(this.tick[e]=this.getTickValues(e)),this[e]=this.getAxis(e,n,a,e==="x"&&(s.scale.zoom||s.config.subchart_show||s.state.resizing)?!0:i)}getAxis(e,n,a,i,s){const o=this.owner,{config:l}=o,c=/^(x|subX)$/.test(e),u=c?"x":e,g=c&&this.isCategorized(),v=this.orient[e],m=s?0:o.getAxisTickRotate(u);let S;if(c)S=e==="subX"?o.format.subXAxisTick:o.format.xAxisTick;else{const G=l[`axis_${e}_tick_format`];de(G)&&(S=G.bind(o.api))}let I=this.tick[u];const N=_r({outerTick:a,noTransition:i,config:l,id:e,tickTextRotate:m,owner:o},c&&{isCategory:g,isInverted:l.axis_x_inverted,tickMultiline:l.axis_x_tick_multiline,tickWidth:l.axis_x_tick_width,tickTitle:g&&l.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});c||(N.tickStepSize=l[`axis_${u}_tick_stepSize`]);const M=new Ay(N).scale(c&&o.scale.zoom||n).orient(v);if(c&&this.isTimeSeries()&&I&&!de(I)){const G=Dn.bind(o);I=I.map(W=>G(W))}else!c&&this.isTimeSeriesY()&&(M.ticks(l.axis_y_tick_time_value),I=null);I&&M.tickValues(I),M.tickFormat(S||!c&&o.isStackNormalized()&&(G=>`${G}%`)),g&&(M.tickCentered(l.axis_x_tick_centered),Wn(l.axis_x_tick_culling)&&(l.axis_x_tick_culling=!1));const P=l[`axis_${u}_tick_count`];return P&&M.ticks(P),M}updateXAxisTickValues(e,n){var a;const i=this.owner,{config:s}=i,o=s.axis_x_tick_fit;let l=s.axis_x_tick_count,c;return(o||l&&o)&&(c=i.mapTargetsToUniqueXs(e),this.isCategorized()&&l>c.length&&(l=c.length),c=this.generateTickValues(c,l,this.isTimeSeries())),n?n.tickValues(c):this.x&&(this.x.tickValues(c),(a=this.subX)==null||a.tickValues(c)),c}getId(e){const{config:n,scale:a}=this.owner;let i=n.data_axes[e];return(!i||!a[i])&&(i="y"),i}getXAxisTickFormat(e){const n=this.owner,{config:a,format:i}=n,s=e&&a.subchart_axis_x_tick_format||a.axis_x_tick_format,o=this.isTimeSeries(),l=this.isCategorized();let c;return s?de(s)?c=s.bind(n.api):o&&(c=u=>u?i.axisTime(s)(u):""):c=o?i.defaultAxisTime:l?n.categoryName:u=>u<0?u.toFixed(0):u,de(c)?u=>c.apply(n,l?[u,n.categoryName(u)]:[u]):c}getTickValues(e){const n=this.owner,a=n.config[`axis_${e}_tick_values`],i=n[`${e}Axis`];return(de(a)?a.call(n.api):a)||(i?i.tickValues():void 0)}getLabelOptionByAxisId(e){return this.owner.config[`axis_${e}_label`]}getLabelText(e){const n=this.getLabelOptionByAxisId(e);return ze(n)?n:n?n.text:null}setLabelText(e,n){const a=this.owner,{config:i}=a,s=this.getLabelOptionByAxisId(e);ze(s)?i[`axis_${e}_label`]=n:s&&(s.text=n)}getLabelPosition(e,n){const a=this.owner.config.axis_rotated,i=this.getLabelOptionByAxisId(e),s=Jn(i)&&i.position?i.position:n[+!a],o=l=>!!~s.indexOf(l);return{isInner:o("inner"),isOuter:o("outer"),isLeft:o("left"),isCenter:o("center"),isRight:o("right"),isTop:o("top"),isMiddle:o("middle"),isBottom:o("bottom")}}getAxisLabelPosition(e){return this.getLabelPosition(e,e==="x"?["inner-top","inner-right"]:["inner-right","inner-top"])}getLabelPositionById(e){return this.getAxisLabelPosition(e)}xForAxisLabel(e){const n=this.owner,{state:{width:a,height:i}}=n,s=this.getAxisLabelPosition(e);let o=s.isMiddle?-i/2:0;return this.isHorizontal(n,e!=="x")?o=s.isLeft?0:s.isCenter?a/2:a:s.isBottom&&(o=-i),o}dxForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isBottom?"0.5em":"0";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"0.5em":a.isRight?"-0.5em":"0":a.isTop&&(i="-0.5em"),i}textAnchorForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isMiddle?"middle":"end";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"start":a.isCenter?"middle":"end":a.isBottom&&(i="start"),i}dyForAxisLabel(e){const n=this.owner,{config:a}=n,i=a.axis_rotated,s=this.getAxisLabelPosition(e).isInner,o=a[`axis_${e}_tick_rotate`]?n.getHorizontalAxisHeight(e):0,{width:l}=this.getMaxTickSize(e);let c;if(e==="x"){const u=a.axis_x_height;i?c=s?"1.2em":-25-l:s?c="-0.5em":u?c=u-10:o?c=o-10:c="3em"}else c={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[e],i?s?c=c[0]:o?c=o*(e==="y2"?-1:1)-c[1]:c=c[2]:c=s?c[3]:(c[4]+(a[`axis_${e}_inner`]?0:l+c[4]))*(e==="y"?-1:1);return c}getMaxTickSize(e,n){const a=this.owner,{config:i,state:{current:s},$el:{svg:o,chart:l}}=a,c=s.maxTickSize[e],u=`axis_${e}`,g={width:0,height:0};if(n||!i[`${u}_show`]||c.width>0&&a.filterTargetsToShow().length===0)return c;if(o){const v=/^y2?$/.test(e),m=a.filterTargetsToShow(a.data.targets),S=a.scale[e].copy().domain(a[`get${v?"Y":"X"}Domain`](m,e)),I=S.domain(),N=I[0]===I[1]&&I.every(H=>H>0),M=Fe(c.domain)&&c.domain[0]===c.domain[1]&&c.domain.every(H=>H>0);if(N||M)return c.size;c.domain=I,v||c.ticks.splice(0);const P=this.getAxis(e,S,!1,!1,!0),G=i[`${u}_tick_rotate`],W=i[`${u}_tick_count`];!i[`${u}_tick_values`]&&W&&P.tickValues(this.generateTickValues(I,W,v?this.isTimeSeriesY():this.isTimeSeries())),!v&&this.updateXAxisTickValues(m,P);const k=l.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");P.create(k),k.selectAll("text").attr("transform",fe(G)?`rotate(${G})`:null).each(function(H,at){const{width:gt,height:$t}=this.getBoundingClientRect();g.width=Math.max(g.width,gt),g.height=Math.max(g.height,$t),v||(c.ticks[at]=gt)}),k.remove()}return Object.keys(g).forEach(v=>{g[v]>0&&(c[v]=g[v])}),c}getXAxisTickTextY2Overflow(e){const n=this.owner,{axis:a,config:i,state:{current:s,isLegendRight:o,legendItemWidth:l}}=n,c=n.getAxisTickRotate("x"),u=c>0&&c<90;if((a.isCategorized()||a.isTimeSeries())&&i.axis_x_tick_fit&&(!i.axis_x_tick_culling||Wn(i.axis_x_tick_culling))&&!i.axis_x_tick_multiline&&u){const g=i.axis_y2_show&&s.maxTickSize.y2.width||0,v=o&&l||0,m=s.width-n.getCurrentPaddingByDirection("left"),S=this.getXAxisTickMaxOverflow(c,m-e)-g-v,I=Math.max(0,S)+e;return Math.min(I,m/2)}return 0}getXAxisTickMaxOverflow(e,n){const a=this.owner,{axis:i,config:s,state:o}=a,l=i.isTimeSeries(),c=o.current.maxTickSize.x.ticks,u=c.length,{left:g,right:v}=o.axis.x.padding;let m=0;const S=u-(l&&s.axis_x_tick_fit?.5:0);for(let M=0;M!s[o].empty()).forEach(o=>{const l=s[o];i(l,e).attr("x",()=>this.xForAxisLabel(o)).attr("dx",()=>this.dxForAxisLabel(o)).attr("dy",()=>this.dyForAxisLabel(o)).text(()=>this.getLabelText(o))})}getPadding(e,n,a,i){const s=fe(e)?e:e[n];return Ie(s)?this.owner.convertPixelToScale(/(bottom|top)/.test(n)?"y":"x",s,i):a}generateTickValues(e,n,a){let i=e;if(n){const s=de(n)?n():n;if(s===1)i=[e[0]];else if(s===2)i=[e[0],e[e.length-1]];else if(s>2){const o=this.isCategorized(),l=s-2,c=e[0],u=e[e.length-1],g=(u-c)/(l+1);let v;i=[c];for(let m=0;ms-o)),i}generateTransitions(e){const n=this.owner,{$el:{axis:a},$T:i}=n,[s,o,l,c]=["x","y","y2","subX"].map(u=>i(a[u],e));return{axisX:s,axisY:o,axisY2:l,axisSubX:c}}redraw(e,n,a){const i=this.owner,{config:s,$el:o}=i,l=n?"0":null;["x","y","y2","subX"].forEach(c=>{const u=this[c],g=o.axis[c];u&&g&&(!a&&!s.transition_duration&&(u.config.withoutTransition=!0),g.style("opacity",l),u.create(e[`axis${In(c)}`]))}),this.updateAxes()}redrawAxis(e,n,a,i,s){var o,l,c;const u=this.owner,{config:g,scale:v,$el:m}=u,S=!!v.zoom;let I;!S&&this.isCategorized()&&e.length===0&&v.x.domain([0,m.axis.x.selectAll(".tick").size()]),v.x&&e.length?(!S&&u.updateXDomain(e,n.UpdateXDomain,n.UpdateOrgXDomain,n.TrimXDomain),g.axis_x_tick_values||this.updateXAxisTickValues(e)):this.x&&(this.x.tickValues([]),(o=this.subX)==null||o.tickValues([])),g.zoom_rescale&&!i&&(I=v.x.orgDomain()),["y","y2"].forEach(N=>{const M=`axis_${N}_`,P=v[N];if(P){const G=g[`${M}tick_values`],W=g[`${M}tick_count`];if(P.domain(u.getYDomain(e,N,I)),!G&&W){const V=u.axis[N],k=P.domain();V.tickValues(this.generateTickValues(k,k.every(H=>H===0)?1:W,this.isTimeSeriesY()))}}}),this.redraw(a,u.hasArcType(),s),this.updateLabels(n.Transition),(n.UpdateXDomain||n.UpdateXAxis||n.Y)&&e.length&&this.setCulling(),n.Y&&((l=v.subY)==null||l.domain(u.getYDomain(e,"y")),(c=v.subY2)==null||c.domain(u.getYDomain(e,"y2")))}setCulling(){const e=this.owner,{config:n,state:{clip:a,current:i},$el:s}=e;["subX","x","y","y2"].forEach(o=>{const l=s.axis[o],u=`axis_${o==="subX"?"x":o}_tick_culling`,g=n[u];if(l&&g){const v=l.selectAll(".tick"),m=qr(v.data()),S=m.length,I=n[`${u}_max`],N=n[`${u}_lines`];let M;if(S){for(let P=1;P{var u,g,v;if(o[c]=(u=s[c])==null?void 0:u.append("text").classed(on[`axis${c.toUpperCase()}Tooltip`],!0).attr("filter",n.updateTextBGColor({id:c},l)),a){const m=c==="x"?"x":"y",S=c==="y"?"1.15em":c==="x"?"-0.3em":"-0.4em";(g=o[c])==null||g.attr(m,S).attr(`d${c==="x"?"y":"x"}`,c==="x"?"0.4em":"-1.3em").style("text-anchor",c==="x"?"end":null)}else{const m=c==="x"?"y":"x",S=c==="x"?"1.15em":`${c==="y"?"-":""}0.4em`;(v=o[c])==null||v.attr(m,S).attr(`d${c==="x"?"x":"y"}`,c==="x"?"-1em":"0.3em").style("text-anchor",c==="y"?"end":null)}})}}var Iy={initEventRect(){this.$el.main.select(`.${Se.chart}`).append("g").attr("class",Vn.eventRects).style("fill-opacity","0")},redrawEventRect(){var t;const e=this,{config:n,state:a,$el:i}=e,s=e.isMultipleX(),o=n.axis_x_inverted;if(i.eventRect)e.updateEventRect(i.eventRect,!0);else if(e.data.targets.length){const c=e.$el.main.select(`.${Vn.eventRects}`).style("cursor",n.zoom_enabled&&n.zoom_type!=="drag"?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Vn.eventRectsMultiple,s).classed(Vn.eventRectsSingle,!s).selectAll(`.${Vn.eventRect}`).data([0]).enter().append("rect");e.updateEventRect(c),e.updateEventType(c),c.call(e.getDraggableSelection()),i.eventRect=c,e.state.inputType==="touch"&&!i.svg.on("touchstart.eventRect")&&!e.hasArcType()&&e.bindTouchOnEventRect(),a.rendered&&e.updateEventRect(i.eventRect,!0)}if(!s){const l=e.getMaxDataCountTarget();(!n.data_xSort||o)&&l.sort((c,u)=>o?u.x-c.x:c.x-u.x),e.updateDataIndexByX(l),e.updateXs(l),(t=e.updatePointClass)==null||t.call(e,!0),a.eventReceiver.data=l}e.updateEventRectData()},bindTouchOnEventRect(){const t=this,{config:e,state:n,$el:{eventRect:a,svg:i}}=t,s=m=>{if(t.isMultipleX())t.selectRectForMultipleXs(m);else{const S=t.getDataIndexFromEvent(n.event);t.callOverOutForTouch(S),S===-1?t.unselectRect():t.selectRectForSingle(m,S)}},o=()=>{t.unselectRect(),t.callOverOutForTouch()},l=e.interaction_inputType_touch.preventDefault,c=Os(l)&&l||!1,u=!isNaN(l)&&l||null;let g;const v=m=>{const S=m.type,N=m.changedTouches[0][`client${e.axis_rotated?"Y":"X"}`];S==="touchstart"?c?m.preventDefault():u!==null&&(g=N):S==="touchmove"&&(c||g===!0||u!==null&&Math.abs(g-N)>=u)&&(g=!0,m.preventDefault())};a.on("touchstart",m=>{n.event=m,t.updateEventRect()}).on("touchstart.eventRect touchmove.eventRect",m=>{if(n.event=m,!a.empty()&&a.classed(Vn.eventRect)){if(n.dragging||n.flowing||t.hasArcType()||m.touches.length>1)return;v(m),s(a.node())}else o()},!0).on("touchend.eventRect",m=>{n.event=m,!a.empty()&&a.classed(Vn.eventRect)&&(t.hasArcType()||!t.toggleShape||n.cancelClick)&&n.cancelClick&&(n.cancelClick=!1)},!0),i.on("touchstart",m=>{n.event=m;const{target:S}=m;S&&S!==a.node()&&o()})},updateEventRect(t,e=!1){const n=this,{state:a,$el:i}=n,{eventReceiver:s,width:o,height:l,rendered:c,resizing:u}=a,g=t||i.eventRect,v=()=>{if(s){const m=Wl(i.chart.node());s.rect=g.node().getBoundingClientRect().toJSON(),s.rect.top+=m.y,s.rect.left+=m.x}};(!c||u||e)&&(g.attr("x",0).attr("y",0).attr("width",o).attr("height",l),(!c||e)&&g.classed(Vn.eventRect,!0)),v()},updateEventType(t){const e=this,n=Os(t),a=n?e.$el.eventRect:t,i=n?t!==(a==null?void 0:a.datum().multipleX):!1;a&&(i&&(a==null||a.on("mouseover mousemove mouseout click",null)),e.isMultipleX()?e.generateEventRectsForMultipleXs(a):e.generateEventRectsForSingleX(a))},updateEventRectData(){const t=this,{config:e,scale:n,state:a}=t,i=n.zoom||n.x,s=e.axis_rotated,o=t.isMultipleX();let l,c,u,g;if(t.updateEventType(o),o)l=0,c=0,u=a.width,g=a.height;else{let S,I;if(t.axis.isCategorized())S=t.getEventRectWidth(),I=N=>i(N.x)-S/2;else{const N=({index:M})=>({prev:t.getPrevX(M),next:t.getNextX(M)});S=M=>{const P=N(M),G=i.domain();let W;return P.prev===null&&P.next===null?W=s?a.height:a.width:P.prev===null?W=(i(P.next)+i(M.x))/2:P.next===null?W=i(G[1])-(i(P.prev)+i(M.x))/2:(Object.keys(P).forEach((V,k)=>{var H;P[V]=(H=P[V])!=null?H:G[k]}),W=Math.max(0,(i(P.next)-i(P.prev))/2)),W},I=M=>{const P=N(M);let G;return P.prev===null&&P.next===null?G=0:P.prev===null?G=i(i.domain()[0]):G=(i(M.x)+i(P.prev))/2,G}}l=s?0:I,c=s?I:0,u=s?a.width:S,g=s?S:a.height}const{eventReceiver:v}=a,m=(S,I)=>de(S)?S(I):S;v.coords.splice(v.data.length),v.data.forEach((S,I)=>{v.coords[I]={x:m(l,S),y:m(c,S),w:m(u,S),h:m(g,S)}})},selectRectForSingle(t,e){var n,a;const i=this,{config:s,$el:{main:o,circle:l}}=i,c=s.data_selection_enabled,u=s.data_selection_grouped,g=s.data_selection_isselectable,v=s.tooltip_grouped,m=i.getAllValuesOnIndex(e);if(v&&(i.showTooltip(m,t),(n=i.showGridFocus)==null||n.call(i,m),!c||u))return;!l&&o.selectAll(`.${Se.EXPANDED}:not(.${tn.shape}-${e})`).classed(Se.EXPANDED,!1);const S=o.selectAll(`.${tn.shape}-${e}`).classed(Se.EXPANDED,!0).style("cursor",g?"pointer":null).filter(function(I){return i.isWithinShape(this,I)});S.empty()&&!v&&((a=i.hideGridFocus)==null||a.call(i),i.hideTooltip(),!u&&i.setExpand(e)),S.call(I=>{var N,M;const P=I.data();c&&(u||g!=null&&g.bind(i.api)(P))&&(t.style.cursor="pointer"),v||(i.showTooltip(P,t),(N=i.showGridFocus)==null||N.call(i,P),(M=i.unexpandCircles)==null||M.call(i),I.each(G=>i.setExpand(e,G.id)))})},selectRectForMultipleXs(t,e=!0){const n=this,{config:a,state:i}=n,s=n.filterTargetsToShow(n.data.targets);if(i.dragging||n.hasArcType(s))return;const o=zn(i.event,t),l=n.findClosestFromTargets(s,o);if(e&&i.mouseover&&(!l||l.id!==i.mouseover.id)&&(a.data_onout.call(n.api,i.mouseover),i.mouseover=void 0),!l){n.unselectRect();return}const u=(n.isBubbleType(l)||n.isScatterType(l)||!a.tooltip_grouped?[l]:n.filterByX(s,l.x)).map(v=>n.addName(v));n.showTooltip(u,t),n.setExpand(l.index,l.id,!0),n.showGridFocus(u);const g=n.dist(l,o);(n.isBarType(l.id)||g{const c=l?e.getDataIndexFromEvent(l):i.currentIdx;return c>-1?i.data[c]:null};s.on("mouseover",l=>{a.event=l,e.updateEventRect(),Object.values(e.$el.axisTooltip).forEach(c=>c==null?void 0:c.style("display",null))}).on("mousemove",function(l){const c=o(l);if(a.event=l,!c)return;let{index:u}=c;const g=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(g)){const m=e.scale.zoom||e.scale.x,S=e.axis.xs[u],I=m.invert(zn(l,this)[0]);g==="step-after"&&IS&&(u+=1)}e.showAxisGridFocus();const v=n.tooltip_grouped&&u===i.currentIdx;if(a.dragging||a.flowing||e.hasArcType()||v){n.tooltip_show&&v&&e.setTooltipPosition();return}u!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=u),u===-1?e.unselectRect():e.selectRectForSingle(this,u),e.setOverOut(u!==-1,u)}).on("mouseout",l=>{a.event=l,!(!n||e.hasArcType()||i.currentIdx===-1)&&(e.hideAxisGridFocus(),e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)})}return s},clickHandlerForSingleX(t,e){const n=e,{config:a,state:i,$el:{main:s}}=n;if(!t||n.hasArcType()||i.cancelClick){i.cancelClick&&(i.cancelClick=!1);return}const{index:o}=t;s.selectAll(`.${tn.shape}-${o}`).each(function(l){var c;(a.data_selection_grouped||n.isWithinShape(this,l))&&((c=n.toggleShape)==null||c.call(n,this,l,o),a.data_onclick.bind(n.api)(l,this))})},generateEventRectsForMultipleXs(t){const e=this,{state:n}=e;t.on("click",function(a){n.event=a,e.clickHandlerForMultipleXS.bind(this)(e)}).datum({multipleX:!0}),n.inputType==="mouse"&&t.on("mouseover mousemove",function(a){n.event=a,e.selectRectForMultipleXs(this)}).on("mouseout",a=>{n.event=a,!(!e.config||e.hasArcType())&&e.unselectRect()})},clickHandlerForMultipleXS(t){const e=t,{config:n,state:a}=e,i=e.filterTargetsToShow(e.data.targets);if(e.hasArcType(i))return;const s=zn(a.event,this),o=e.findClosestFromTargets(i,s),l=n.point_sensitivity==="radius"?o.r:n.point_sensitivity;o&&(e.isBarType(o.id)||e.dist(o,s)+t;var Py={generateFlow(t){const e=this,{data:n,state:a,$el:i}=e;return function(){const s=t.flow.length;a.flowing=!0,n.targets.forEach(l=>{l.values.splice(0,s)}),e.updateXGrid&&e.updateXGrid(!0);const o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(l=>{const c=l.split(".");let u=i[c[0]];u&&c.length>1&&(u=u[c[1]]),u!=null&&u.size()&&(o[l]=u)}),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList(t,e){const n=this,{flow:a,targets:i}=e,{duration:s=e.duration,index:o,length:l,orgDataCount:c}=a,u=n.getFlowTransform(i,c,o,l),g=ql();let v;g.add(Object.keys(t).map(m=>(v=t[m].transition().ease(Cy).duration(s),m==="axis.x"?v=v.call(S=>{n.axis.x.setTransition(S).create(S)}):m==="region.list"?v=v.filter(n.isRegionOnX).attr("transform",u):v=v.attr("transform",u),v))),v.call(g,()=>{n.cleanUpFlow(t,e)})},cleanUpFlow(t,e){const n=this,{config:a,state:i,$el:{svg:s}}=n,o=a.axis_rotated,{flow:l,shape:c,xv:u}=e,{cx:g,cy:v,xForText:m,yForText:S}=c.pos,{done:I=()=>{},length:N}=l;N&&(["circle","text","shape","eventRect"].forEach(M=>{const P=[];for(let G=0;G{const P=t[M];if(M!=="axis.x"&&P.attr("transform",null),M==="grid.x")P.attr(i.xgridAttr);else if(M==="gridLines.x")P.attr("x1",o?0:u).attr("x2",o?i.width:u),P.select("text").attr("x",o?i.width:0).attr("y",u);else if(/^(area|bar|line)$/.test(M))P.attr("d",c.type[M]);else if(M==="text")P.attr("x",m).attr("y",S).style("fill-opacity",n.opacityForText.bind(n));else if(M==="circle")if(n.isCirclePoint())P.attr("cx",g).attr("cy",v);else{const G=V=>g(V)-a.point_r,W=V=>v(V)-a.point_r;P.attr("x",G).attr("y",W)}else M==="region.list"&&P.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))}),a.interaction_enabled&&n.redrawEventRect(),I.call(n.api),i.flowing=!1},getFlowTransform(t,e,n,a){const i=this,{data:s,scale:{x:o}}=i,l=s.targets[0].values;let c=i.getValueOnIndex(l,n),u=i.getValueOnIndex(l,n+a),g;const v=o.domain(),m=i.updateXDomain(t,!0,!0);e?e===1||(c==null?void 0:c.x)===(u==null?void 0:u.x)?g=o(v[0])-o(m[0]):g=i.axis.isTimeSeries()?o(v[0])-o(m[0]):o((c==null?void 0:c.x)||0)-o(u.x):l.length!==1?g=o(v[0])-o(m[0]):i.axis.isTimeSeries()?(c=i.getValueOnIndex(l,0),u=i.getValueOnIndex(l,l.length-1),g=o(c.x)-o(u.x)):g=Ir(m)/2;const S=Ir(v)/Ir(m);return`translate(${g},0) scale(${S},1)`}},wy={initClip(){const t=this,{clip:e,datetimeId:n}=t.state;e.id=`${n}-clip`,e.idXAxis=`${e.id}-xaxis`,e.idYAxis=`${e.id}-yaxis`,e.idGrid=`${e.id}-grid`,e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath(t){const e=this,{config:n}=e;return!n.clipPath&&/-clip$/.test(t)||!n.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!n.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:`url(#${t})`},appendClip(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?0:20),c=(o?a.top+s+10:a.bottom)+20,u=o?-(1+l):-(l-1),g=-15,v=o?a.left+20:i+10+l;t.attr("x",u).attr("y",g).attr("width",v).attr("height",c)},setYAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?20:0),c=n.axis_y_inner,u=c&&!o?n.axis_y_label.text?-20:-1:o?-(1+l):-(l-1),g=-(o?20:a.top),v=(o?i+15+l:a.left+20)+(c?20:0),m=(o?a.bottom+10:a.top+s)+10;t.attr("x",u).attr("y",g).attr("width",v).attr("height",m)},updateXAxisTickClip(){const t=this,{config:e,state:{clip:n,xAxisHeight:a},$el:{defs:i}}=t,s=t.getHorizontalAxisHeight("x");if(i&&!n.idXAxisTickTexts){const o=`${n.id}-xaxisticktexts`;t.appendClip(i,o),n.pathXAxisTickTexts=t.getClipPath(n.idXAxisTickTexts),n.idXAxisTickTexts=o}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&s!==a&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=s},setXAxisTickClipWidth(){const t=this,{config:e,state:{current:{maxTickSize:n}}}=t,a=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&a){const i=Math.sin(Math.PI/180*Math.abs(a));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth(){const t=this,{state:{clip:e,current:n},$el:{svg:a}}=t;a&&a.select(`#${e.idXAxisTickTexts} rect`).attr("width",n.maxTickSize.x.clipPath).attr("height",30)}};const My=t=>Ie(t.position)||"end",Ly=t=>t.position==="start"?4:t.position==="middle"?0:-4;function Ou(t,e,n){return a=>{let i=t?0:e;return a.position==="start"?i=t?-n:0:a.position==="middle"&&(i=(t?-n:e)/2),i}}function Iu(t,e){e==="grid"&&t.each(function(){const n=st(this);["x1","x2","y1","y2"].forEach(a=>n.attr(a,Math.ceil(+n.attr(a))))})}var Dy={hasGrid(){const{config:t}=this;return["x","y"].some(e=>t[`grid_${e}_show`]||t[`grid_${e}_lines`].length)},initGrid(){const t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines(){const t=this,{config:e,state:{clip:n},$el:a}=t;(e.grid_x_lines.length||e.grid_y_lines.length)&&(a.gridLines.main=a.main.insert("g",`.${Se.chart}${e.grid_lines_front?" + *":""}`).attr("clip-path",n.pathGrid).attr("class",`${qe.grid} ${qe.gridLines}`),a.gridLines.main.append("g").attr("class",qe.xgridLines),a.gridLines.main.append("g").attr("class",qe.ygridLines),a.gridLines.x=Fc([]))},updateXGrid(t){const e=this,{config:n,scale:a,state:i,$el:{main:s,grid:o}}=e,l=n.axis_rotated,c=e.generateGridData(n.grid_x_type,a.x),u=e.axis.isCategorized()?e.axis.x.tickOffset():0,g=v=>(a.zoom||a.x)(v)+u*(l?-1:1);i.xgridAttr=l?{x1:0,x2:i.width,y1:g,y2:g}:{x1:g,x2:g,y1:0,y2:i.height},o.x=s.select(`.${qe.xgrids}`).selectAll(`.${qe.xgrid}`).data(c),o.x.exit().remove(),o.x=o.x.enter().append("line").attr("class",qe.xgrid).merge(o.x),t||o.x.each(function(){const v=st(this);Object.keys(i.xgridAttr).forEach(m=>{v.attr(m,i.xgridAttr[m]).style("opacity",()=>v.attr(l?"y1":"x1")===(l?i.height:0)?"0":null)})})},updateYGrid(){const t=this,{axis:e,config:n,scale:a,state:i,$el:{grid:s,main:o}}=t,l=n.axis_rotated,c=g=>Math.ceil(a.y(g)),u=e.y.getGeneratedTicks(n.grid_y_ticks)||t.scale.y.ticks(n.grid_y_ticks);s.y=o.select(`.${qe.ygrids}`).selectAll(`.${qe.ygrid}`).data(u),s.y.exit().remove(),s.y=s.y.enter().append("line").attr("class",qe.ygrid).merge(s.y),s.y.attr("x1",l?c:0).attr("x2",l?c:i.width).attr("y1",l?0:c).attr("y2",l?i.height:c),Iu(s.y,"grid")},updateGrid(){const t=this,{$el:{grid:e,gridLines:n}}=t;!n.main&&t.initGridLines(),e.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateGridLines("x"),t.updateGridLines("y")},updateGridLines(t){const e=this,{config:n,$el:{gridLines:a,main:i},$T:s}=e,o=n.axis_rotated,l=t==="x";n[`grid_${t}_show`]&&e[`update${t.toUpperCase()}Grid`]();let c=i.select(`.${qe[`${t}gridLines`]}`).selectAll(`.${qe[`${t}gridLine`]}`).data(n[`grid_${t}_lines`]);s(c.exit()).style("opacity","0").remove();const u=c.enter().append("g");u.append("line").style("opacity","0"),c=u.merge(c),c.each(function(g){const v=st(this);v.select("text").empty()&&g.text&&v.append("text").style("opacity","0")}),s(c.attr("class",g=>`${qe[`${t}gridLine`]} ${g.class||""}`.trim()).select("text").attr("text-anchor",My).attr("transform",()=>l?o?null:"rotate(-90)":o?"rotate(-90)":null).attr("dx",Ly).attr("dy",-5)).text(function(g){var v;return(v=g.text)!=null?v:this.remove()}),a[t]=c},redrawGrid(t){const e=this,{config:{axis_rotated:n},state:{width:a,height:i},$el:{gridLines:s},$T:o}=e,l=e.xv.bind(e),c=e.yv.bind(e);let u=s.x.select("line"),g=s.x.select("text"),v=s.y.select("line"),m=s.y.select("text");return u=o(u,t).attr("x1",n?0:l).attr("x2",n?a:l).attr("y1",n?l:0).attr("y2",n?l:i),g=o(g,t).attr("x",Ou(!n,a,i)).attr("y",l),v=o(v,t).attr("x1",n?c:0).attr("x2",n?c:a).attr("y1",n?0:c).attr("y2",n?i:c),m=o(m,t).attr("x",Ou(n,a,i)).attr("y",c),[u.style("opacity",null),g.style("opacity",null),v.style("opacity",null),m.style("opacity",null)]},initFocusGrid(){const t=this,{config:e,state:{clip:n},$el:a}=t,i=e.grid_front,s=`.${i&&a.gridLines.main?qe.gridLines:Se.chart}${i?" + *":""}`,o=a.main.insert("g",s).attr("clip-path",n.pathGrid).attr("class",qe.grid);if(a.grid.main=o,e.grid_x_show&&o.append("g").attr("class",qe.xgrids),e.grid_y_show&&o.append("g").attr("class",qe.ygrids),e.axis_tooltip){const l=o.append("g").attr("class","bb-axis-tooltip");l.append("line").attr("class","bb-axis-tooltip-x"),l.append("line").attr("class","bb-axis-tooltip-y")}e.interaction_enabled&&e.grid_focus_show&&!e.axis_tooltip&&(o.append("g").attr("class",We.xgridFocus).append("line").attr("class",We.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",We.ygridFocus).append("line").attr("class",We.ygridFocus))},showAxisGridFocus(){var t,e;const n=this,{config:a,format:i,state:{event:s,width:o,height:l}}=n,c=a.axis_rotated,[u,g]=zn(s,(t=n.$el.eventRect)==null?void 0:t.node()),v={x:u,y:g};for(const[m,S]of Object.entries(n.$el.axisTooltip)){const I=m==="x"&&!c||m!=="x"&&c?"x":"y",N=v[I];let M=(e=n.scale[m])==null?void 0:e.invert(N);M&&(M=m==="x"&&n.axis.isTimeSeries()?i.xAxisTick(M):M==null?void 0:M.toFixed(2),S==null||S.attr(I,N).text(M))}n.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility",null).each(function(m,S){const I=st(this);S===0?I.attr("x1",u).attr("x2",u).attr("y1",S?0:l).attr("y2",S?l:0):I.attr("x1",S?0:o).attr("x2",S?o:0).attr("y1",g).attr("y2",g)})},hideAxisGridFocus(){const t=this;t.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility","hidden"),Object.values(t.$el.axisTooltip).forEach(e=>e==null?void 0:e.style("display","none"))},showGridFocus(t){var e;const n=this,{config:a,state:{width:i,height:s}}=n,o=a.axis_rotated,l=n.$el.main.selectAll(`line.${We.xgridFocus}, line.${We.ygridFocus}`),c=(t||[l.datum()]).filter(v=>v&&Ie(n.getBaseValue(v)));if(!a.tooltip_show||c.length===0||!a.axis_x_forceAsSingle&&n.hasType("bubble")||n.hasArcType())return;const u=a.grid_focus_edge&&!a.tooltip_grouped,g=n.xx.bind(n);l.style("visibility",null).data(c.concat(c)).each(function(v){const m=st(this),S={x:g(v),y:n.getYScaleById(v.id)(v.value)};let I;if(m.classed(We.xgridFocus))I=o?[null,S.x,u?S.y:i,S.x]:[S.x,u?S.y:null,S.x,s];else{const N=n.axis.getId(v.id)==="y2";I=o?[S.y,u&&!N?S.x:null,S.y,u&&N?S.x:s]:[u&&N?S.x:null,S.y,u&&!N?S.x:i,S.y]}["x1","y1","x2","y2"].forEach((N,M)=>m.attr(N,I[M]))}),Iu(l,"grid"),(e=n.showCircleFocus)==null||e.call(n,t)},hideGridFocus(){var t;const e=this,{state:{inputType:n,resizing:a},$el:{main:i}}=e;(n==="mouse"||!a)&&(i.selectAll(`line.${We.xgridFocus}, line.${We.ygridFocus}`).style("visibility","hidden"),(t=e.hideCircleFocus)==null||t.call(e))},updateGridFocus(){var t;const e=this,{state:{inputType:n,width:a,height:i,resizing:s},$el:{grid:o}}=e,l=o.main.select(`line.${We.xgridFocus}`);if(n==="touch")l.empty()?s&&((t=e.showCircleFocus)==null||t.call(e)):e.showGridFocus();else{const c=e.config.axis_rotated;l.attr("x1",c?0:-10).attr("x2",c?a:-10).attr("y1",c?-10:0).attr("y2",c?-10:i)}return!0},generateGridData(t,e){const n=this,a=n.$el.main.select(`.${on.axisX}`).selectAll(".tick").size();let i=[];if(t==="year"){const s=n.getXDomain(),[o,l]=s.map(c=>c.getFullYear());for(let c=o;c<=l;c++)i.push(new Date(`${c}-01-01 00:00:00`))}else i=e.ticks(10),i.length>a&&(i=i.filter(s=>String(s).indexOf(".")<0));return i},getGridFilterToRemove(t){return t?e=>{let n=!1;return(Fe(t)?t.concat():[t]).forEach(a=>{("value"in a&&e.value===a.value||"class"in a&&e.class===a.class)&&(n=!0)}),n}:()=>!0},removeGridLines(t,e){const n=this,{config:a,$T:i}=n,s=n.getGridFilterToRemove(t),o=g=>!s(g),l=e?qe.xgridLines:qe.ygridLines,c=e?qe.xgridLine:qe.ygridLine;i(n.$el.main.select(`.${l}`).selectAll(`.${c}`).filter(s)).style("opacity","0").remove();const u=`grid_${e?"x":"y"}_lines`;a[u]=a[u].filter(o)}},Ny={initRegion(){const t=this,{$el:e}=t;e.region.main=e.main.insert("g",":first-child").attr("clip-path",t.state.clip.path).attr("class",$a.regions)},updateRegion(){const t=this,{config:e,$el:{region:n},$T:a}=t;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);const i=n.main.selectAll(`.${$a.region}`).data(e.regions);a(i.exit()).style("opacity","0").remove();const s=i.enter().append("g");s.append("rect").style("fill-opacity","0"),n.list=s.merge(i).attr("class",t.classRegion.bind(t)),n.list.each(function(o){var l;st(this).select("text").empty()&&((l=o.label)!=null&&l.text)&&st(this).append("text").style("opacity","0")})},redrawRegion(t){const e=this,{$el:{region:n},$T:a}=e;let i=n.list.select("rect"),s=n.list.selectAll("text");return i=a(i,t).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e)),s=a(s,t).attr("transform",o=>{var l;const{x:c=0,y:u=0,rotated:g=!1}=(l=o.label)!=null?l:{};return`translate(${e.regionX.bind(e)(o)+c}, ${e.regionY.bind(e)(o)+u})${g?" rotate(-90)":""}`}).attr("text-anchor",o=>{var l;return(l=o.label)!=null&&l.rotated?"end":null}).attr("dy","1em").style("fill",o=>{var l,c;return(c=(l=o.label)==null?void 0:l.color)!=null?c:null}).text(o=>{var l;return(l=o.label)==null?void 0:l.text}),[i.style("fill-opacity",o=>Ie(o.opacity)?o.opacity:null).on("end",function(){st(this.parentNode).selectAll("rect:not([x])").remove()}),s.style("opacity",null)]},getRegionXY(t,e){const n=this,{config:a,scale:i}=n,s=a.axis_rotated,o=t==="x";let l="start",c,u=0;return e.axis==="y"||e.axis==="y2"?(o||(l="end"),(o?s:!s)&&l in e&&(c=i[e.axis],u=c(e[l]))):(o?!s:s)&&l in e&&(c=i.zoom||i.x,u=c(n.axis.isTimeSeries()?Dn.call(n,e[l]):e[l])),u},regionX(t){return this.getRegionXY("x",t)},regionY(t){return this.getRegionXY("y",t)},getRegionSize(t,e){const n=this,{config:a,scale:i,state:s}=n,o=a.axis_rotated,l=t==="width",c=n[l?"regionX":"regionY"](e);let u,g="end",v=s[t];return e.axis==="y"||e.axis==="y2"?(l||(g="start"),(l?o:!o)&&g in e&&(u=i[e.axis],v=u(e[g]))):(l?!o:o)&&g in e&&(u=i.zoom||i.x,v=u(n.axis.isTimeSeries()?Dn.call(n,e[g]):e[g])),v0&&(!i.axis_x_tick_autorotate||a.needToRotateXAxisTickTexts());return(i.axis_x_tick_multiline||M)&&N.height>S&&(I+=N.height-S),I+(a.axis.getLabelPositionById(t).isInner?0:10)+(t==="y2"&&!u?-10:0)},getEventRectWidth(){const t=this,{config:e,axis:n}=t,a=e.axis_x_inverted,i=n.x.tickInterval();return Math.max(0,a?Math.abs(i):i)},getAxisTickRotate(t){const e=this,{axis:n,config:a,state:i,$el:s}=e;let o=a[`axis_${t}_tick_rotate`];if(t==="x"){const l=n.isCategorized()||n.isTimeSeries();if(a.axis_x_tick_fit&&l){const c=a.axis_x_tick_count,u=i.current.maxTickSize.x.ticks.length;let g=0;if(c?g=c>u?u:c:u&&(g=u),g!==i.axis.x.tickCount){const{targets:v}=e.data;i.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(v,"min"),e.getXDomainMinMax(v,"max")],g)}i.axis.x.tickCount=g}s.svg&&a.axis_x_tick_autorotate&&a.axis_x_tick_fit&&!a.axis_x_tick_multiline&&!a.axis_x_tick_culling&&l&&(o=e.needToRotateXAxisTickTexts()?a.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts(){const t=this,{state:{axis:e,current:n,isLegendRight:a,legendItemWidth:i}}=t,s=a&&i,o=n.width-s-t.getCurrentPaddingByDirection("left")-t.getCurrentPaddingByDirection("right"),l=e.x.tickCount+e.x.padding.left+e.x.padding.right,{width:c}=t.axis.getMaxTickSize("x"),u=l?o/l:0;return c>u}},By={axis_x_clipPath:!0,axis_x_show:!0,axis_x_forceAsSingle:!1,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_inner:!1,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_inverted:!1,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]},Uy={axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:5,axis_y_tick_culling_lines:!0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]},zy={axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_culling_lines:!0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]},jy=Object.defineProperty,Cu=Object.getOwnPropertySymbols,Gy=Object.prototype.hasOwnProperty,Vy=Object.prototype.propertyIsEnumerable,Pu=(t,e,n)=>e in t?jy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yo=(t,e)=>{for(var n in e||(e={}))Gy.call(e,n)&&Pu(t,n,e[n]);if(Cu)for(var n of Cu(e))Vy.call(e,n)&&Pu(t,n,e[n]);return t},Xy=yo(yo(yo({axis_rotated:!1,axis_tooltip:!1},By),Uy),zy),Yy={grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:void 0,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0},Hy={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1};const Wy=[ay,iy,sy,oy,ly,cy,uy],wu={axis:Ry,clip:wy,eventrect:Iy,flow:Py,grid:Dy,region:Ny,sizeAxis:Fy},Mu={optDataAxis:Hy,optAxis:Xy,optGrid:Yy};var S1=Array.prototype.slice;function xo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Pe(t){return function(){return t}}function Ky(t,e){return et?1:e>=t?0:NaN}function Zy(t){return t}function ky(){var t=Zy,e=Ky,n=null,a=Pe(0),i=Pe(Ui),s=Pe(0);function o(l){var c,u=(l=xo(l)).length,g,v,m=0,S=new Array(u),I=new Array(u),N=+a.apply(this,arguments),M=Math.min(Ui,Math.max(-Ui,i.apply(this,arguments)-N)),P,G=Math.min(Math.abs(M)/u,s.apply(this,arguments)),W=G*(M<0?-1:1),V;for(c=0;c0&&(m+=V);for(e!=null?S.sort(function(k,H){return e(I[k],I[H])}):n!=null&&S.sort(function(k,H){return n(l[k],l[H])}),c=0,v=m?(M-u*W)/m:0;c0?V*v:0)+W,I[g]={data:l[g],index:c,value:V,startAngle:N,endAngle:P,padAngle:G};return I}return o.value=function(l){return arguments.length?(t=typeof l=="function"?l:Pe(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,n=null,o):e},o.sort=function(l){return arguments.length?(n=l,e=null,o):n},o.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Pe(+l),o):a},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Pe(+l),o):i},o.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Pe(+l),o):s},o}var Jy=Math.pow;const To=Math.PI,$o=2*To,Br=1e-6,Qy=$o-Br;function Lu(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Lu;const n=Jy(10,e);return function(a){this._+=a[0];for(let i=1,s=a.length;iBr)if(!(Math.abs(v*c-u*g)>Br)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let S=a-o,I=i-l,N=c*c+u*u,M=S*S+I*I,P=Math.sqrt(N),G=Math.sqrt(m),W=s*Math.tan((To-Math.acos((N+m-M)/(2*P*G)))/2),V=W/G,k=W/P;Math.abs(V-1)>Br&&this._append`L${e+V*g},${n+V*v}`,this._append`A${s},${s},0,0,${+(v*S>g*I)},${this._x1=e+k*c},${this._y1=n+k*u}`}}arc(e,n,a,i,s,o){if(e=+e,n=+n,a=+a,o=!!o,a<0)throw new Error(`negative radius: ${a}`);let l=a*Math.cos(i),c=a*Math.sin(i),u=e+l,g=n+c,v=1^o,m=o?i-s:s-i;this._x1===null?this._append`M${u},${g}`:(Math.abs(this._x1-u)>Br||Math.abs(this._y1-g)>Br)&&this._append`L${u},${g}`,a&&(m<0&&(m=m%$o+$o),m>Qy?this._append`A${a},${a},0,1,${v},${e-l},${n-c}A${a},${a},0,1,${v},${this._x1=u},${this._y1=g}`:m>Br&&this._append`A${a},${a},0,${+(m>=To)},${v},${this._x1=e+a*Math.cos(s)},${this._y1=n+a*Math.sin(s)}`)}rect(e,n,a,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${a=+a}v${+i}h${-a}Z`}toString(){return this._}}function qy(){return new Hi}qy.prototype=Hi.prototype;function A1(t=3){return new Hi(+t)}function So(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const a=Math.floor(n);if(!(a>=0))throw new RangeError(`invalid digits: ${n}`);e=a}return t},()=>new Hi(e)}function tx(t){return t.innerRadius}function ex(t){return t.outerRadius}function nx(t){return t.startAngle}function rx(t){return t.endAngle}function ax(t){return t&&t.padAngle}function ix(t,e,n,a,i,s,o,l){var c=n-t,u=a-e,g=o-i,v=l-s,m=v*c-g*u;if(!(m*mJ*J+Ct*Ct&&(gt=St,$t=Tt),{cx:gt,cy:$t,x01:-g,y01:-v,x11:gt*(i/k-1),y11:$t*(i/k-1)}}function Du(){var t=tx,e=ex,n=Pe(0),a=null,i=nx,s=rx,o=ax,l=null,c=So(u);function u(){var g,v,m=+t.apply(this,arguments),S=+e.apply(this,arguments),I=i.apply(this,arguments)-Bi,N=s.apply(this,arguments)-Bi,M=Vc(N-I),P=N>I;if(l||(l=g=c()),STn))l.moveTo(0,0);else if(M>Ui-Tn)l.moveTo(S*Nr(I),S*Qn(I)),l.arc(0,0,S,I,N,!P),m>Tn&&(l.moveTo(m*Nr(N),m*Qn(N)),l.arc(0,0,m,N,I,P));else{var G=I,W=N,V=I,k=N,H=M,at=M,gt=o.apply(this,arguments)/2,$t=gt>Tn&&(a?+a.apply(this,arguments):ra(m*m+S*S)),St=lo(Vc(S-m)/2,+n.apply(this,arguments)),Tt=St,Gt=St,mt,J;if($t>Tn){var Ct=Xc($t/m*Qn(gt)),ht=Xc($t/S*Qn(gt));(H-=Ct*2)>Tn?(Ct*=P?1:-1,V+=Ct,k-=Ct):(H=0,V=k=(I+N)/2),(at-=ht*2)>Tn?(ht*=P?1:-1,G+=ht,W-=ht):(at=0,G=W=(I+N)/2)}var It=S*Nr(G),Yt=S*Qn(G),Vt=m*Nr(k),Zt=m*Qn(k);if(St>Tn){var Wt=S*Nr(W),ne=S*Qn(W),je=m*Nr(V),Oe=m*Qn(V),Ge;if(MTn?Gt>Tn?(mt=Wi(je,Oe,It,Yt,S,Gt,P),J=Wi(Wt,ne,Vt,Zt,S,Gt,P),l.moveTo(mt.cx+mt.x01,mt.cy+mt.y01),GtTn)||!(H>Tn)?l.lineTo(Vt,Zt):Tt>Tn?(mt=Wi(Vt,Zt,Wt,ne,m,-Tt,P),J=Wi(It,Yt,je,Oe,m,-Tt,P),l.lineTo(mt.cx+mt.x01,mt.cy+mt.y01),Tte in t?sx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fx=(t,e)=>{for(var n in e||(e={}))cx.call(e,n)&&Fu(t,n,e[n]);if(Nu)for(var n of Nu(e))ux.call(e,n)&&Fu(t,n,e[n]);return t},dx=(t,e)=>ox(t,lx(e));function Bu(t=0){const e=this,{config:n,state:a}=e,i=e.hasMultiArcGauge(),s=a.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,o=t?Math.min(a.radiusExpanded*t-a.radius,s*.8-(1-t)*100):0;return{inner(l){const{innerRadius:c}=e.getRadius(l);return i?a.radius-s*(l.index+1):fe(c)?c:0},outer(l){const{outerRadius:c}=e.getRadius(l);let u;if(i)u=a.radius-s*l.index+o;else if(e.hasType("polar")&&!t)u=e.getPolarOuterRadius(l,c);else if(u=c,t){let{radiusExpanded:g}=a;a.radius!==c&&(g-=Math.abs(a.radius-c)),u=g*t}return u},corner(l,c){const{arc_cornerRadius_ratio:u=0,arc_cornerRadius:g=0}=n,{data:{id:v},value:m}=l;let S=0;return u?S=u*c:S=fe(g)?g:g.call(e.api,v,m,c),S}}}function Ao(t){return function(e){const n=({startAngle:i=0,endAngle:s=0,padAngle:o=0})=>({startAngle:i,endAngle:s,padAngle:o}),a=Kr(n(this._current),n(e));return this._current=e,function(i){const s=a(i),{data:o,index:l,value:c}=e;return t(dx(fx({},s),{data:o,index:l,value:c}))}}}var hx={initPie(){const t=this,{config:e}=t,n=e.data_type,a=e[`${n}_padding`],i=e[`${n}_startingAngle`]||0,s=(a?a*.01:e[`${n}_padAngle`])||0;t.pie=ky().startAngle(i).endAngle(i+2*Math.PI).padAngle(s).value(o=>{var l,c;return(c=(l=o.values)==null?void 0:l.reduce((u,g)=>u+g.value,0))!=null?c:o}).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius(){const t=this,{config:e,state:n}=t,a=e.data_type,i=e[`${a}_padding`],s=e.gauge_width||e.donut_width,o=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()&&e.gauge_label_show?.85:1),n.radius=n.radiusExpanded*.95,n.innerRadiusRatio=s?(n.radius-s)/n.radius:.6,n.gaugeArcWidth=s||(o<=n.radius-n.innerRadius?n.radius-n.innerRadius:o<=n.radius?o:n.radius);const l=e.pie_innerRadius||(i?i*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:l},getRadius(t){const e=this,n=t==null?void 0:t.data;let{innerRadius:a,outerRadius:i}=e.state;return!fe(a)&&n&&(a=a[n.id]||0),De(i)&&n&&n.id in i?i=i[n.id]:fe(i)||(i=e.state.radius),{innerRadius:a,outerRadius:i}},updateArc(){const t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength(){const t=this,{config:e}=t,n=e.gauge_arcLength*3.6;let a=2*(n/360);return n<-360?a=-2:n>360&&(a=2),a*Math.PI},getStartingAngle(){const t=this,{config:e}=t,n=e.data_type,a=t.hasType("gauge")?e.gauge_fullCircle:!1,i=-1*Math.PI/2,s=Math.PI/2;let o=e[`${n}_startingAngle`]||0;return!a&&o<=i?o=i:!a&&o>=s?o=s:(o>Math.PI||o<-1*Math.PI)&&(o=Math.PI),o},updateAngle(t,e=!1){var n;const a=this,{config:i,state:s}=a,o=e&&a.hasType("gauge");let{pie:l}=a,c=t,u=!1;if(!i)return null;const g=a.getStartingAngle(),v=i.gauge_fullCircle||e&&!o?a.getArcLength():g*-2;if(c.data&&a.isGaugeType(c.data)&&!a.hasMultiArcGauge()){const{gauge_min:m,gauge_max:S}=i,I=a.getTotalDataSum(s.rendered),N=v*((I-m)/(S-m));l=l.startAngle(g).endAngle(N+g)}if(e===!1&&l(a.filterTargetsToShow()).forEach((m,S)=>{var I;!u&&m.data.id===((I=c.data)==null?void 0:I.id)&&(u=!0,c=m,c.index=S)}),isNaN(c.startAngle)&&(c.startAngle=0),isNaN(c.endAngle)&&(c.endAngle=c.startAngle),e||c.data&&(i.gauge_enforceMinMax||a.hasMultiArcGauge())){const{gauge_min:m,gauge_max:S}=i,I=e&&!o?a.getTotalDataSum(s.rendered):S,N=v/(I-m),M=(n=c.value)!=null?n:0,P=M{const l=e.updateAngle(o),c=a(l);let u=0;return l&&(u=i(l,c)),l?s.cornerRadius(u)(l):"M 0 0"}},getArc(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},redrawArcRangeText(){const t=this,{config:e,$el:{arcs:n},state:a,$T:i}=t,s=e.arc_rangeText_format,o=t.hasType("gauge")&&e.arc_rangeText_fixed;let l=e.arc_rangeText_values;if(l!=null&&l.length){const c=e.arc_rangeText_unit==="%",u=t.getTotalDataSum(a.rendered);c&&(l=l.map(m=>u/100*m));const g=t.pie(l).map((m,S)=>(m.index=S,m));let v=n.selectAll(`.${Be.arcRange}`).data(l);v.exit(),v=i(v.enter().append("text").attr("class",Be.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(m=>{const S=c?m/u*100:m;return de(s)?s(S):`${S}${c?"%":""}`}).merge(v)),(!a.rendered||a.rendered&&!o)&&u>0&&v.attr("transform",(m,S)=>t.transformForArcLabel(g[S],!0)),v.style("opacity",m=>!o&&(m>u||u===0)?"0":null)}},transformForArcLabel(t,e=!1){var n,a,i;const s=this,{config:o,state:{radiusExpanded:l}}=s,c=s.updateAngle(t,e);let u="";if(c){if(e||s.hasMultiArcGauge()){const g=Math.sin(c.endAngle-Math.PI/2),v=o.arc_rangeText_position;let m=Math.cos(c.endAngle-Math.PI/2)*(l+(e?5:25)),S=g*(l+15-Math.abs(g*10))+3;if(e&&v){const I=o.arc_rangeText_values,N=de(v)?v(I[t.index]):v;m+=(n=N==null?void 0:N.x)!=null?n:0,S+=(a=N==null?void 0:N.y)!=null?a:0}u=`translate(${m},${S})`}else if(!s.hasType("gauge")||s.data.targets.length>1){let{outerRadius:g}=s.getRadius(t);s.hasType("polar")&&(g=s.getPolarOuterRadius(t,g));const v=this.svgArc.centroid(c),[m,S]=v.map(M=>isNaN(M)?0:M),I=Math.sqrt(m*m+S*S);let N=(i=["donut","gauge","pie","polar"].filter(s.hasType.bind(s)).map(M=>o[`${M}_label_ratio`]))==null?void 0:i[0];N?N=de(N)?N.bind(s.api)(t,g,I):N:N=g&&(I?(36/g>.375?1.175-36/g:.8)*g/I:0),u=`translate(${m*N},${S*N})`}}return u},convertToArcData(t){return this.addName({id:"data"in t?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel(t){const e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",a=>e.updateTextBGColor.bind(e)(a,e.config.data_labels_backgroundColors)).each(function(a){var i;const s=st(this),o=e.updateAngle(a),l=e.getRatio("arc",o);if(e.meetsLabelThreshold(l,(i=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))==null?void 0:i[0])){const{value:u}=o||a,g=(e.getArcLabelFormat()||e.defaultArcValueFormat)(u,l,a.data.id).toString();wa(s,g,[-1,1],n)}else s.text("")})},expandArc(t){const e=this,{state:{transiting:n},$el:a}=e;if(n){const s=setInterval(()=>{n||(clearInterval(s),a.legend.selectAll(`.${We.legendItemFocused}`).size()>0&&e.expandArc(t))},10);return}const i=e.mapToTargetIds(t);a.svg.selectAll(e.selectorTargets(i,`.${Be.chartArc}`)).each(function(s){if(!e.shouldExpand(s.data.id))return;const o=e.getExpandConfig(s.data.id,"duration"),l=e.getSvgArcExpanded(e.getExpandConfig(s.data.id,"rate"));st(this).selectAll("path").transition().duration(o).attrTween("d",Ao(e.svgArcExpanded.bind(e))).transition().duration(o*2).attrTween("d",Ao(l.bind(e)))})},unexpandArc(t){const e=this,{state:{transiting:n},$el:{svg:a}}=e;if(n)return;const i=e.mapToTargetIds(t);a.selectAll(e.selectorTargets(i,`.${Be.chartArc}`)).selectAll("path").transition().duration(s=>e.getExpandConfig(s.data.id,"duration")).attrTween("d",Ao(e.svgArc.bind(e))),a.selectAll(`${Be.arc}`).style("opacity",null)},getExpandConfig(t,e){const n=this,{config:a}=n,i={duration:50,rate:.98};let s;return n.isDonutType(t)?s="donut":n.isGaugeType(t)?s="gauge":n.isPieType(t)&&(s="pie"),s?a[`${s}_expand_${e}`]:i[e]},shouldExpand(t){const e=this,{config:n}=e;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel(){const t=this,{config:e}=t;return["donut","gauge","pie","polar"].some(n=>t.hasType(n)&&e[`${n}_label_show`])},getArcLabelFormat(){const t=this,{config:e}=t;let n=a=>a;return["donut","gauge","pie","polar"].filter(t.hasType.bind(t)).forEach(a=>{n=e[`${a}_label_format`]}),de(n)?n.bind(t.api):n},updateTargetsForArc(t){const e=this,{$el:n}=e,a=e.hasType("gauge"),i=e.getChartClass("Arc"),s=e.getClass("arcs",!0),o=e.classFocus.bind(e),l=n.main.select(`.${Be.chartArcs}`),c=l.selectAll(`.${Be.chartArc}`).data(e.pie(t)).attr("class",g=>i(g)+o(g.data)),u=c.enter().append("g").attr("class",i).call(this.setCssRule(!1,`.${Be.chartArcs} text`,["pointer-events:none","text-anchor:middle"]));u.append("g").attr("class",s).merge(c),u.append("text").attr("dy",a&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor",e.getStylePropValue("middle")).style("pointer-events",e.getStylePropValue("none")),n.text=l.selectAll(`.${Se.target} text`)},initArc(){const t=this,{$el:e}=t;e.arcs=e.main.select(`.${Se.chart}`).append("g").attr("class",Be.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle(t){const e=this,n=t||e.getArcTitle(),a=e.hasType("gauge");if(n){const i=a?Ln.chartArcsGaugeTitle:Be.chartArcsTitle;let s=e.$el.arcs.select(`.${i}`);s.empty()&&(s=e.$el.arcs.append("text").attr("class",i).style("text-anchor","middle")),a&&s.attr("dy","-0.3em"),wa(s,n,a?void 0:[-.6,1.35],!0)}},getArcTitle(){const t=this,e=t.hasType("donut")&&"donut"||t.hasType("gauge")&&"gauge";return e?t.config[`${e}_title`]:""},getArcTitleWithNeedleValue(){const t=this,{config:e,state:n}=t,a=t.getArcTitle();if(a&&t.config.arc_needle_show&&/{=[A-Z_]+}/.test(a)){let i=n.current.needle;return fe(i)||(i=e.arc_needle_value),bi(a,{NEEDLE_VALUE:fe(i)?i:0})}return!1},redrawArc(t,e,n){const a=this,{config:i,state:s,$el:{main:o}}=a,l=i.interaction_enabled,c=l&&i.data_selection_isselectable;let u=o.selectAll(`.${Be.arcs}`).selectAll(`.${Be.arc}`).data(a.arcData.bind(a));u.exit().transition().duration(e).style("opacity","0").remove(),u=u.enter().append("path").attr("class",a.getClass("arc",!0)).style("fill",g=>a.color(g.data)).style("cursor",g=>{var v;return(v=c==null?void 0:c.bind)!=null&&v.call(c,a.api)(g)?"pointer":null}).style("opacity","0").each(function(g){a.isGaugeType(g.data)&&(g.startAngle=i.gauge_startingAngle,g.endAngle=i.gauge_startingAngle),this._current=g}).merge(u),a.hasType("gauge")&&(a.updateGaugeMax(),a.hasMultiArcGauge()&&a.redrawArcGaugeLine()),u.attr("transform",g=>!a.isGaugeType(g.data)&&n?"scale(0)":"").style("opacity",function(g){return g===this._current?"0":null}).each(()=>{s.transiting=!0}).transition().duration(t).attrTween("d",function(g){const v=a.updateAngle(g);if(!v)return()=>"M 0 0";isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);const m=Kr(this._current,v);return this._current=m(0),function(S){const I=m(S);return I.data=g.data,a.getArc(I,!0)}}).attr("transform",n?"scale(1)":"").style("fill",g=>{let v;return a.levelColor?(v=a.levelColor(g.data.values[0].value),i.data_colors[g.data.id]=v):v=a.color(g.data),v}).style("opacity",null).call($i,function(){if(a.levelColor){const g=st(this),v=g.datum(this._current);a.updateLegendItemColor(v.data.id,g.style("fill"))}s.transiting=!1,Ze(i.onrendered,a.api)}),l&&a.bindArcEvent(u),a.hasType("polar")&&a.redrawPolar(),a.hasType("gauge")&&a.redrawBackgroundArcs(),i.arc_needle_show&&a.redrawNeedle(),a.redrawArcText(t),a.redrawArcRangeText()},redrawNeedle(){const t=this,{$el:e,config:n,state:{hiddenTargetIds:a,radius:i}}=t,s=(i-1)/100*n.arc_needle_length,o=a.length!==t.data.targets.length;let l=t.$el.arcs.select(`.${Be.needle}`);const c=n.arc_needle_path,u=n.arc_needle_bottom_width/2,g=n.arc_needle_top_width/2,v=n.arc_needle_top_rx,m=n.arc_needle_top_ry,S=n.arc_needle_bottom_len,I=n.arc_needle_bottom_rx,N=n.arc_needle_bottom_ry,M=t.getNeedleAngle(),P=()=>{const G=t.getArcTitleWithNeedleValue();G&&t.setArcTitle(G)};if(P(),l.empty()&&(l=e.arcs.append("path").classed(Be.needle,!0),e.needle=l,e.needle.updateHelper=(G,W=!1)=>{e.needle.style("display")!=="none"&&t.$T(e.needle).style("transform",`rotate(${t.getNeedleAngle(G)}deg)`).call($i,()=>{W&&(n.arc_needle_value=G),P()})}),o){const G=de(c)?c.call(t,s):`M-${u} ${S} A${I} ${N} 0 0 0 ${u} ${S} L${g} -${s} A${v} ${m} 0 0 0 -${g} -${s} L-${u} ${S} Z`;t.$T(l).attr("d",G).style("fill",n.arc_needle_color).style("display",null).style("transform",`rotate(${M}deg)`)}else l.style("display","none")},getNeedleAngle(t){const e=this,{config:n,state:a}=e,i=e.getArcLength(),s=e.hasType("gauge"),o=e.getTotalDataSum(!0);let l=Xe(t)?t:n.arc_needle_value,c=n[`${n.data_type}_startingAngle`]||0,u=0;if(fe(l)||(l=s&&e.data.targets.length===1?o:0),a.current.needle=l,s){c=e.getStartingAngle();const g=n.gauge_fullCircle?i:c*-2,{gauge_min:v,gauge_max:m}=n;u=g*((l-v)/(m-v))}else u=i*(l/o);return(c+u)*(180/Math.PI)},redrawBackgroundArcs(){const t=this,{config:e,state:n}=t,a=t.hasMultiArcGauge(),i=e.gauge_fullCircle,s=t.filterTargetsToShow(t.data.targets).length===0&&!!e.data_empty_label_text,o=t.getStartingAngle(),l=i?o+t.getArcLength():o*-1;let c=t.$el.arcs.select(`${a?"g":""}.${Be.chartArcsBackground}`);if(a){let u=0;c=c.selectAll(`path.${Be.chartArcsBackground}`).data(t.data.targets),c.enter().append("path").attr("class",(g,v)=>`${Be.chartArcsBackground} ${Be.chartArcsBackground}-${v}`).merge(c).style("fill",e.gauge_background||null).attr("d",({id:g})=>{if(s||n.hiddenTargetIds.indexOf(g)>=0)return"M 0 0";const v={data:[{value:e.gauge_max}],startAngle:o,endAngle:l,index:u++};return t.getArc(v,!0,!0)}),c.exit().remove()}else c.attr("d",s?"M 0 0":()=>{const u={data:[{value:e.gauge_max}],startAngle:o,endAngle:l};return t.getArc(u,!0,!0)})},bindArcEvent(t){const e=this,{config:n,state:a}=e,i=a.inputType==="touch",s=a.inputType==="mouse";function o(c,u,g){e.expandArc(g),e.api.focus(g),e.toggleFocusLegend(g,!0),e.showTooltip([u],c)}function l(c){const u=(c==null?void 0:c.id)||void 0;e.unexpandArc(u),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",function(c,u,g){var v;const m=e.updateAngle(u);let S;m&&(S=e.convertToArcData(m),(v=e.toggleShape)==null||v.call(e,this,S,g),n.data_onclick.bind(e.api)(S,this))}),s&&t.on("mouseover",function(c,u){if(a.transiting)return;a.event=c;const g=e.updateAngle(u),v=g?e.convertToArcData(g):null,m=(v==null?void 0:v.id)||void 0;o(this,v,m),e.setOverOut(!0,v)}).on("mouseout",(c,u)=>{if(a.transiting)return;a.event=c;const g=e.updateAngle(u),v=g?e.convertToArcData(g):null;l(),e.setOverOut(!1,v)}).on("mousemove",function(c,u){const g=e.updateAngle(u),v=g?e.convertToArcData(g):null;a.event=c,e.showTooltip([v],this)}),i&&e.hasArcType()&&!e.radars){const c=u=>{var g,v;const{clientX:m,clientY:S}=(v=(g=u.changedTouches)==null?void 0:g[0])!=null?v:{clientX:0,clientY:0};return st(fn.elementFromPoint(m,S))};e.$el.svg.on("touchstart touchmove",function(u){if(a.transiting)return;a.event=u;const v=c(u).datum(),m=v!=null&&v.data&&v.data.id?e.updateAngle(v):null,S=m?e.convertToArcData(m):null,I=(S==null?void 0:S.id)||void 0;e.callOverOutForTouch(S),en(I)?l():o(this,S,I)})}},redrawArcText(t){const e=this,{config:n,state:a,$el:{main:i,arcs:s}}=e,o=e.hasType("gauge"),l=e.hasMultiArcGauge();let c;if(o&&e.data.targets.length===1&&n.gauge_title||(c=i.selectAll(`.${Be.chartArc}`).select("text").style("opacity","0").attr("class",u=>e.isGaugeType(u.data)?Ln.gaugeValue:null).call(e.textForArcLabel.bind(e)).attr("transform",u=>e.transformForArcLabel.bind(e)(u)).style("font-size",u=>e.isGaugeType(u.data)&&e.data.targets.length===1&&!l?`${Math.round(a.radius/5)}px`:null).transition().duration(t).style("opacity",u=>e.isTargetToShow(u.data.id)&&e.isArcType(u.data)?null:"0"),l&&c.attr("dy","-.1em")),i.select(`.${Be.chartArcsTitle}`).style("opacity",e.hasType("donut")||o?null:"0"),o){const u=n.gauge_fullCircle;u&&(c==null||c.attr("dy",`${l?0:Math.round(a.radius/14)}`)),n.gauge_label_show&&(s.select(`.${Ln.chartArcsGaugeUnit}`).attr("dy",`${u?1.5:.75}em`).text(n.gauge_units),s.select(`.${Ln.chartArcsGaugeMin}`).attr("dx",`${-1*(a.innerRadius+(a.radius-a.innerRadius)/(u?1:2))}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_min,!1)),!u&&s.select(`.${Ln.chartArcsGaugeMax}`).attr("dx",`${a.innerRadius+(a.radius-a.innerRadius)/2}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_max,!0)))}},getArcElementByIdOrIndex(t){const e=this,{$el:{arcs:n}}=e,a=fe(t)?i=>i.index===t:i=>i.data.id===t;return n==null?void 0:n.selectAll(`.${Se.target} path`).filter(a)}};function Uu(t){return t[0]}function zu(t){return t[1]}function ju(t,e){var n=Pe(!0),a=null,i=fo,s=null,o=So(l);t=typeof t=="function"?t:t===void 0?Uu:Pe(t),e=typeof e=="function"?e:e===void 0?zu:Pe(e);function l(c){var u,g=(c=xo(c)).length,v,m=!1,S;for(a==null&&(s=i(S=o())),u=0;u<=g;++u)!(u=S;--I)l.point(W[I],V[I]);l.lineEnd(),l.areaEnd()}P&&(W[m]=+t(M,m,v),V[m]=+e(M,m,v),l.point(a?+a(M,m,v):W[m],n?+n(M,m,v):V[m]))}if(G)return l=null,G+""||null}function g(){return ju().defined(i).curve(o).context(s)}return u.x=function(v){return arguments.length?(t=typeof v=="function"?v:Pe(+v),a=null,u):t},u.x0=function(v){return arguments.length?(t=typeof v=="function"?v:Pe(+v),u):t},u.x1=function(v){return arguments.length?(a=v==null?null:typeof v=="function"?v:Pe(+v),u):a},u.y=function(v){return arguments.length?(e=typeof v=="function"?v:Pe(+v),n=null,u):e},u.y0=function(v){return arguments.length?(e=typeof v=="function"?v:Pe(+v),u):e},u.y1=function(v){return arguments.length?(n=v==null?null:typeof v=="function"?v:Pe(+v),u):n},u.lineX0=u.lineY0=function(){return g().x(t).y(e)},u.lineY1=function(){return g().x(t).y(n)},u.lineX1=function(){return g().x(a).y(e)},u.defined=function(v){return arguments.length?(i=typeof v=="function"?v:Pe(!!v),u):i},u.curve=function(v){return arguments.length?(o=v,s!=null&&(l=o(s)),u):o},u.context=function(v){return arguments.length?(v==null?s=l=null:l=o(s=v),u):s},u}var aa={initArea(t){const e=this,{config:n}=e;t.insert("g",`.${n.area_front?pn.circles:ar.lines}`).attr("class",e.getClass("areas",!0))},updateAreaColor(t){const e=this;return e.config.area_linearGradient?e.getGradienColortUrl(t.id):e.color(t)},updateArea(t,e=!1){const n=this,{config:a,state:i,$el:s,$T:o}=n,l=e?s.subchart:s;a.area_linearGradient&&n.updateLinearGradient();const c=l.main.selectAll(`.${qa.areas}`).selectAll(`.${qa.area}`).data(n.lineData.bind(n));o(c.exit(),t).style("opacity","0").remove(),l.area=c.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",function(){return i.orgAreaOpacity=st(this).style("opacity"),"0"}).merge(c),c.style("opacity",i.orgAreaOpacity),n.setRatioForGroupedData(l.area.data())},redrawArea(t,e,n=!1){const a=this,{area:i}=n?this.$el.subchart:this.$el,{orgAreaOpacity:s}=a.state;return[a.$T(i,e,lr()).attr("d",t).style("fill",a.updateAreaColor.bind(a)).style("opacity",o=>String(a.isAreaRangeType(o)?s/1.75:s))]},generateDrawArea(t,e){const n=this,{config:a}=n,i=a.line_connectNull,s=a.axis_rotated,o=n.generateGetAreaPoints(t,e),l=n.getYScaleById.bind(n),c=v=>(e?n.subxx:n.xx).call(n,v),u=(v,m)=>n.isGrouped(v.id)?o(v,m)[0][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"high"):n.getShapeYMin(v.id)),g=(v,m)=>n.isGrouped(v.id)?o(v,m)[1][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"low"):v.value);return v=>{let m=i?n.filterRemoveNull(v.values):v.values,S=0,I=0,N;if(n.isAreaType(v)){let M=gx();M=s?M.y(c).x0(u).x1(g):M.x(c).y0(a.area_above?0:a.area_below?n.state.height:u).y1(g),i||(M=M.defined(P=>n.getBaseValue(P)!==null)),n.isStepType(v)&&(m=n.convertValuesToStep(m)),N=M.curve(n.getCurve(v))(m)}else m[0]&&(S=n.scale.x(m[0].x),I=n.getYScaleById(v.id)(m[0].value)),N=s?`M ${I} ${S}`:`M ${S} ${I}`;return N||"M 0 0"}},generateGetAreaPoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),l=n.getYScaleById.bind(n);return function(c,u){const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,u)||g,m=i(c),S=c.value;let I=s(c);return a.axis_rotated&&(S>0&&Ig.values.some(v=>fe(v.value)||e.isBarRangeType(v)))).attr("class",g=>i(g)+o(g)).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events",e.getStylePropValue("none")).append("g").attr("class",s).style("cursor",g=>{var v;return(v=l==null?void 0:l.bind)!=null&&v.call(l,e.api)(g)?"pointer":null}).call(e.setCssRule(!0,` .${Gn.bar}`,["fill"],e.color))},updateBar(t,e=!1){const n=this,{config:a,$el:i,$T:s}=n,o=e?i.subchart:i,l=n.getClass("bar",!0),c=n.initialOpacity.bind(n);a.bar_linearGradient&&n.updateLinearGradient();const u=o.main.selectAll(`.${Gn.bars}`).selectAll(`.${Gn.bar}`).data(n.labelishData.bind(n));s(u.exit(),t).style("opacity","0").remove(),o.bar=u.enter().append("path").attr("class",l).style("fill",n.updateBarColor.bind(n)).merge(u).style("opacity",c),n.setRatioForGroupedData(o.bar.data())},updateBarColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.bar_linearGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawBar(t,e,n=!1){const a=this,{bar:i}=n?a.$el.subchart:a.$el;return[a.$T(i,e,lr()).attr("d",s=>(fe(s.value)||a.isBarRangeType(s))&&t(s)).style("fill",a.updateBarColor.bind(a)).style("opacity",null)]},generateDrawBar(t,e){const n=this,{config:a}=n,i=n.generateGetBarPoints(t,e),s=a.axis_rotated,o=a.bar_radius,l=a.bar_radius_ratio,c=fe(o)&&o>0?()=>o:fe(l)?u=>u*l:null;return(u,g)=>{const v=i(u,g),m=+s,S=+!m,I=u.value<0,N=a[`axis_${n.axis.getId(u.id)}_inverted`],M=!N&&I||N&&!I,P=["",""];let G=0;const W=n.isGrouped(u.id),V=c&&W?n.isStackingRadiusData(u):!1;if(c){const H=s?S:m,at=v[2][H]-v[0][H];G=!W||V?c(at):0;const gt=`a${G},${G} ${M?"1 0 0":"0 0 1"} `;P[+!s]=`${gt}${G},${G}`,P[+s]=`${gt}${[-G,G][s?"sort":"reverse"]()}`,M&&P.reverse()}const k=s?`H${v[1][m]+(M?G:-G)} ${P[0]}V${v[2][S]-G} ${P[1]}H${v[3][m]}`:`V${v[1][S]+(M?-G:G)} ${P[0]}H${v[2][m]-G} ${P[1]}V${v[3][S]}`;return`M${v[0][m]},${v[0][S]}${k}z`}},isStackingRadiusData(t){const e=this,{$el:n,config:a,data:i,state:s}=e,{id:o,index:l,value:c}=t;if(s.hiddenTargetIds.indexOf(o)>-1){const m=n.bar.filter(S=>S.id===o&&S.value===c);return!m.empty()&&/a\d+/i.test(m.attr("d"))}const u=a.data_groups.find(m=>m.indexOf(o)>-1),v=e.orderTargets(e.filterTargetsToShow(i.targets.filter(e.isBarType,e))).filter(m=>u.indexOf(m.id)>-1).map(m=>m.values.filter(S=>S.index===l&&(fe(c)&&c>0?S.value>0:S.value<0))[0]).filter(Boolean).map(m=>m.id);return c!==0&&v.indexOf(o)===v.length-1},generateGetBarPoints(t,e){const n=this,{config:a}=n,i=e?n.axis.subX:n.axis.x,s=n.getIndicesMax(t)+1,o=n.getBarW("bar",i,s),l=n.getShapeX(o,t,!!e),c=n.getShapeY(!!e),u=n.getShapeOffset(n.isBarType,t,!!e),g=n.getYScaleById.bind(n);return(v,m)=>{const{id:S}=v,I=g.call(n,S,e)(n.getShapeYMin(S)),N=u(v,m)||I,M=fe(o)?o:o[v.id]||o._$width,P=a[`axis_${n.axis.getId(S)}_inverted`],G=v.value,W=l(v);let V=c(v);a.axis_rotated&&!P&&(G>0&&Ve.isBubbleZType(o)?e.getBubbleZData(o.value,"y"):De(o.value)?o.value.mid:o.value)),i=n*n*Math.PI,s=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/a);return Math.sqrt(s/Math.PI)},getBubbleZData(t,e){return De(t)?t[e]:t[e==="y"?0:1]}},mx=Object.defineProperty,Gu=Object.getOwnPropertySymbols,yx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable,Vu=(t,e,n)=>e in t?mx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tx=(t,e)=>{for(var n in e||(e={}))yx.call(e,n)&&Vu(t,n,e[n]);if(Gu)for(var n of Gu(e))xx.call(e,n)&&Vu(t,n,e[n]);return t},$x={initCandlestick(){const{$el:t}=this;t.candlestick=t.main.select(`.${Se.chart}`).append("g").attr("class",rr.chartCandlesticks)},updateTargetsForCandlestick(t){const e=this,{$el:n}=e,a=e.getChartClass("Candlestick");n.candlestick||e.initCandlestick(),e.$el.main.select(`.${rr.chartCandlesticks}`).selectAll(`.${rr.chartCandlestick}`).data(t).enter().append("g").attr("class",a).style("pointer-events","none")},updateCandlestick(t,e=!1){const n=this,{$el:a,$T:i}=n,s=e?a.subchart:a,o=n.getClass("candlestick",!0),l=n.initialOpacity.bind(n),c=s.main.selectAll(`.${rr.chartCandlestick}`).selectAll(`.${rr.candlestick}`).data(n.labelishData.bind(n));i(c.exit(),t).style("opacity","0").remove();const u=c.enter().filter(g=>g.value).append("g").attr("class",o);u.append("line"),u.append("path"),s.candlestick=c.merge(u).style("opacity",l)},generateDrawCandlestick(t,e){const n=this,{config:a}=n,i=n.generateGetCandlestickPoints(t,e),s=a.axis_rotated,o=a.candlestick_color_down;return(l,c,u)=>{const g=i(l,c),v=n.getCandlestickData(l),m=v==null?void 0:v._isUp,S=+s,I=+!S;u.classed&&u.classed(rr[m?"valueUp":"valueDown"],!0);const N=s?`H${g[1][1]} V${g[1][0]} H${g[0][1]}`:`V${g[1][1]} H${g[1][0]} V${g[0][1]}`;u.select("path").attr("d",`M${g[0][S]},${g[0][I]}${N}z`).style("fill",G=>(m?n.color(G):De(o)?o[G.id]:o)||n.color(G));const M=u.select("line"),P=s?{x1:g[2][1],x2:g[2][2],y1:g[2][0],y2:g[2][0]}:{x1:g[2][0],x2:g[2][0],y1:g[2][1],y2:g[2][2]};for(const G in P)M.attr(G,P[G])}},generateGetCandlestickPoints(t,e=!1){const n=this,a=e?n.axis.subX:n.axis.x,i=n.getIndicesMax(t)+1,s=n.getBarW("candlestick",a,i),o=n.getShapeX(s,t,!!e),l=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),u=n.getYScaleById.bind(n);return(g,v)=>{const m=u.call(n,g.id,e)(n.getShapeYMin(g.id)),S=c(g,v)||m,I=fe(s)?s:s[g.id]||s._$width,N=n.getCandlestickData(g);let M;if(N&&fe(N.open)&&fe(N.close)){const P={start:o(g),end:0};P.end=P.start+I;const G={start:l(N.open),end:l(N.close)},W={x:P.start+I/2,high:l(N.high),low:l(N.low)};G.start-=m-S,M=[[P.start,G.start],[P.end,G.end],[W.x,W.low,W.high]]}else M=[[0,0],[0,0],[0,0,0]];return M}},redrawCandlestick(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{candlestick:o}=n?i.subchart:i,l=lr(!0);return[o.each(function(c,u){const g=s(st(this),e,l);t(c,u,g)}).style("opacity",null)]},getCandlestickData({value:t}){let e;if(Fe(t)){const[n,a,i,s,o=!1]=t;e={open:n,high:a,low:i,close:s},o!==!1&&(e.volume=o)}else De(t)&&(e=Tx({},t));return e&&(e._isUp=e.close>=e.open),e||null}},Sx=Object.defineProperty,Xu=Object.getOwnPropertySymbols,Ax=Object.prototype.hasOwnProperty,bx=Object.prototype.propertyIsEnumerable,Yu=(t,e,n)=>e in t?Sx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ex=(t,e)=>{for(var n in e||(e={}))Ax.call(e,n)&&Yu(t,n,e[n]);if(Xu)for(var n of Xu(e))bx.call(e,n)&&Yu(t,n,e[n]);return t};function Ki(t=!1){const e=this,{config:n,state:{current:{width:a,height:i}}}=e,s=e.getCurrentPadding(),o=Ex({width:a-(s.left+s.right),height:i-(n.legend_show?e.getLegendHeight()+10:0)-(s.top+s.bottom)},s);if(t){const{width:l,height:c}=Hu.call(e,{width:o.width,height:o.height});o.width{let l=s;return De(s)&&(l=t[o?"height":"width"]*s.ratio),l}),{width:a,height:i}}function Rx(t){const e=this,{top:n,left:a,width:i}=Ki.call(e,!0),s=[];return t.forEach((o,l)=>{const{ratio:c}=o,u=l>0?s[l-1][2][1]:n;s.push(o.coords=[[a,u],[a+i,u],[a+i,l>0?c+u:c+n],[a,l>0?c+u:c+n],[a,u]])}),s}function Wu(t=!1){const e=this,{width:n,height:a,top:i,left:s}=Ki.call(e,!0),o=Hu.call(e,{width:n,height:a}),l=(n-o.width)/2,c=(n+o.width)/2,u=a-o.height,g=[[0,0],[n,0],[c,u],[c,a],[l,a],[l,u],[0,0]];return t&&g.forEach(v=>{v[0]+=s,v[1]+=i}),`M${g.join("L")}z`}function Ox(t){const e=this,{config:n}=e,a=t.map(i=>({id:i.id,value:i.values.reduce((s,o)=>s+o.value,0)}));return n.data_order&&a.sort(e.getSortCompareFn.bind(e)(!0)),Ku.call(e,a)}function Ku(t){const e=this,{height:n}=Ki.call(e),a=e.getTotalDataSum(!0);return t.forEach(i=>{i.ratio=i.value/a*n}),t}var Ix={initFunnel(){const t=this,{$el:e}=t;e.funnel=e.main.select(`.${Se.chart}`).append("g").classed(Ta.chartFunnels,!0),e.funnel.background=e.funnel.append("path").classed(Ta.funnelBackground,!0),t.bindFunnelEvent()},bindFunnelEvent(){const t=this,{$el:{funnel:e},config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^path$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c};if(n.interaction_enabled){const s=a.inputType==="touch";e.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.target),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);t.hideTooltip(),t.setOverOut(!1,l)})}},updateTargetsForFunnel(t){const e=this,{$el:{funnel:n}}=e,a=e.getChartClass("Funnel"),i=e.getClass("funnel",!0);n||e.initFunnel();const s=Ox.call(e,t.filter(e.isFunnelType.bind(e))),o=n.selectAll(`.${Ta.chartFunnel}`).data(s);o.exit().remove();const l=o.enter().insert("g",`.${Ta.funnelBackground}`);l.append("path"),n.path=l.merge(o).attr("class",c=>a(c)).select("path").attr("class",i).style("opacity","0").style("fill",e.color)},updateFunnel(t){const e=this,{$el:{funnel:n}}=e,a=t.map(({id:i})=>i);n.path=n.path.filter(i=>a.indexOf(i.id)>=0)},generateGetFunnelPoints(){const t=this,{$el:{funnel:e}}=t,n=t.filterTargetsToShow(e.path),{top:a,left:i,right:s}=Ki.call(t),o=(i-s)/2,l={};let c=a!=null?a:0;return n.each((u,g)=>{var v;l[u.id]=[[o,c],[o,c+=((v=n==null?void 0:n[g])!=null?v:u).ratio]]}),u=>l[u.id]},redrawFunnel(){const t=this,{$T:e,$el:{funnel:n}}=t,a=t.filterTargetsToShow(n.path),i=Rx.call(t,Ku.call(t,a.data()));n.attr("clip-path",`path('${Wu.bind(t)()}')`),n.background.attr("d",Wu.call(t,!0)),e(a).attr("d",(s,o)=>`M${i[o].join("L")}z`).style("opacity","1"),n.selectAll("g").style("opacity",null)}},Cx={initGauge(){const t=this,{config:e,$el:{arcs:n}}=t,a=(i=null,s="")=>{n.append("text").attr("class",i).style("text-anchor","middle").style("pointer-events","none").text(s)};if(t.hasType("gauge")){const i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",Be.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&a(Ln.chartArcsGaugeUnit),e.gauge_label_show&&(a(Ln.chartArcsGaugeMin),!e.gauge_fullCircle&&a(Ln.chartArcsGaugeMax))}},updateGaugeMax(){const t=this,{config:e,state:n}=t,i=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);!e.gauge_enforceMinMax&&i+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=i-e.gauge_min)},redrawArcGaugeLine(){const t=this,{config:e,state:n,$el:a}=t,{hiddenTargetIds:i}=t.state,s=a.main.selectAll(`.${Be.arcs}`).selectAll(`.${Be.arcLabelLine}`).data(t.arcData.bind(t));s.enter().append("rect").attr("class",l=>`${Be.arcLabelLine} ${Se.target} ${Se.target}-${l.data.id}`).merge(s).style("fill",l=>t.levelColor?t.levelColor(l.data.values[0].value):t.color(l.data)).style("display",e.gauge_label_show?null:"none").each(function(l){let c=0;const u=2;let g=0,v=0,m="";if(i.indexOf(l.data.id)<0){const S=t.updateAngle(l),I=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(S.index+1),N=S.endAngle-Math.PI/2,M=n.radius-I,P=N-(M===0?0:1/M);c=n.radiusExpanded-n.radius+I,g=Math.cos(P)*M,v=Math.sin(P)*M,m=`rotate(${N*180/Math.PI}, ${g}, ${v})`}st(this).attr("x",g).attr("y",v).attr("width",c).attr("height",u).attr("transform",m).style("stroke-dasharray",`0, ${c+u}, 0`)})},textForGaugeMinMax(t,e){const n=this,{config:a}=n,i=a.gauge_label_extents;return de(i)?i.bind(n.api)(t,e):t},getGaugeLabelHeight(){const{config:t}=this;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge(){const t=this;return t.getGaugeLabelHeight()*(t.config.gauge_label_show?2:2.5)}},Px={initLine(){const{$el:t}=this;t.line=t.main.select(`.${Se.chart}`).append("g").attr("class",ar.chartLines).call(this.setCssRule(!1,`.${ar.chartLines}`,["pointer-events:none"]))},updateTargetsForLine(t){const e=this,{$el:{area:n,line:a,main:i}}=e,s=e.getChartClass("Line"),o=e.getClass("lines",!0),l=e.classFocus.bind(e);a||e.initLine();const c=t.filter(v=>!(e.isScatterType(v)||e.isBubbleType(v))),u=i.select(`.${ar.chartLines}`).selectAll(`.${ar.chartLine}`).data(c).attr("class",v=>s(v)+l(v)),g=u.enter().append("g").attr("class",s).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));if(g.append("g").attr("class",o),e.hasTypeOf("Area")){const v=(!n&&g.empty()?u:g).filter(e.isAreaType.bind(e));e.initArea(v)}e.updateTargetForCircle(c,g)},updateLine(t,e=!1){const n=this,{format:{extraLineClasses:a},$el:i,$T:s}=n,o=e?i.subchart:i,l=o.main.selectAll(`.${ar.lines}`).selectAll(`.${ar.line}`).data(n.lineData.bind(n));s(l.exit(),t).style("opacity","0").remove(),o.line=l.enter().append("path").attr("class",c=>`${n.getClass("line",!0)(c)} ${a(c)||""}`).style("stroke",n.color).merge(l).style("opacity",n.initialOpacity.bind(n)).attr("transform",null)},redrawLine(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{line:o}=n?i.subchart:i;return[s(o,e,lr()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve(t){const e=this;return e.config.axis_rotated&&e.isStepType(t)?a=>{const i=e.getInterpolate(t)(a);return i.orgPoint=i.point,i.pointRotated=function(s,o){this._point===1&&(this._point=2);const l=this._y*(1-this._t)+o*this._t;this._context.lineTo(this._x,l),this._context.lineTo(s,l),this._x=s,this._y=o},i.point=function(s,o){this._point===0?this.orgPoint(s,o):this.pointRotated(s,o)},i}:e.getInterpolate(t)},generateDrawLine(t,e){const n=this,{config:a,scale:i}=n,s=a.line_connectNull,o=a.axis_rotated,l=n.generateGetLinePoints(t,e),c=n.getYScaleById.bind(n),u=S=>(e?n.subxx:n.xx).call(n,S),g=(S,I)=>n.isGrouped(S.id)?l(S,I)[0][1]:c(S.id,e)(n.getBaseValue(S));let v=ju();v=o?v.x(g).y(u):v.x(u).y(g),s||(v=v.defined(S=>n.getBaseValue(S)!==null));const m=e?i.subX:i.x;return S=>{const I=c(S.id,e);let N=s?n.filterRemoveNull(S.values):S.values,M=0,P=0,G;if(n.isLineType(S)){const W=a.data_regions[S.id];W?G=n.lineWithRegions(N,i.zoom||m,I,W):(n.isStepType(S)&&(N=n.convertValuesToStep(N)),G=v.curve(n.getCurve(S))(N))}else N[0]&&(M=m(N[0].x),P=I(N[0].value)),G=o?`M ${P} ${M}`:`M ${M} ${P}`;return G||"M 0 0"}},lineWithRegions(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.axis.isTimeSeries(),c=[],u="2 2";let g,v,m,S;if(Xe(a)){const V=(k,H)=>en(k)?H:l?Dn.call(i,k):k;for(let k=0,H;H=a[k];k++){const at=V(H.start,t[0].x),gt=V(H.end,t[t.length-1].x),$t=H.style||{dasharray:u};c[k]={start:at,end:gt,style:$t}}}const I=o?V=>n(V.value):V=>e(V.x),N=o?V=>e(V.x):V=>n(V.value),M=V=>`M${V[0][0]},${V[0][1]}L${V[1][0]},${V[1][1]}`,P=l?(V,k,H,at)=>{const gt=V.x.getTime(),$t=k.x-V.x,St=new Date(gt+$t*H),Tt=new Date(gt+$t*(H+at)),Gt=o?[[n(v(H)),e(St)],[n(v(H+m)),e(Tt)]]:[[e(St),n(v(H))],[e(Tt),n(v(H+m))]];return M(Gt)}:(V,k,H,at)=>{const gt=e(k.x,!o),$t=n(k.value,o),St=H+at,Tt=e(g(H),!o),Gt=n(v(H),o);let mt=e(g(St),!o),J=n(v(St),o);return mt>gt&&(mt=gt),V.value>k.value&&(o?J<$t:J>$t)&&(J=$t),M(o?[[Gt,Tt],[J,mt]]:[[Tt,Gt],[mt,J]])},G={x:i.axis.getAxisType("x"),y:i.axis.getAxisType("y")};let W="";for(let V=0,k;k=t[V];V++){const H=t[V-1],at=H&&Ie(H.value);let gt=i.isWithinRegions(k.x,c);if(Ie(k.value)){if(en(c)||!gt||!at)W+=`${V&&at?"L":"M"}${I(k)},${N(k)}`;else if(at){gt=((gt==null?void 0:gt.dasharray)||u).split(" ").map(Number),g=Dr(G.x,H.x,k.x),v=Dr(G.y,H.value,k.value);const $t=e(k.x)-e(H.x),St=n(k.value)-n(H.value),Tt=Math.sqrt(Math.pow($t,2)+Math.pow(St,2));m=gt[0]/Tt,S=m*gt[1];for(let Gt=m;Gt<=1;Gt+=S)W+=P(H,k,Gt,m),Gt+S>=1&&(W+=P(H,k,1,0))}}}return W},isWithinRegions(t,e){for(let n=0,a;a=e[n];n++)if(a.startlr();var Zi={initialOpacityForCircle(t){const{config:e,state:{withoutFadeIn:n}}=this;let a=e.point_opacity;return en(a)&&(a=this.getBaseValue(t)!==null&&n[t.id]?this.opacityForCircle(t):"0"),a},opacityForCircle(t){var e;const{config:n}=this;let a=n.point_opacity;return en(a)&&(a=n.point_show&&!((e=this.isPointFocusOnly)!=null&&e.call(this))?null:"0",a=Ie(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":a:"0"),a},initCircle(){const t=this,{$el:{main:e}}=t;!t.point&&(t.point=t.generatePoint()),(t.hasType("bubble")||t.hasType("scatter"))&&e.select(`.${Se.chart} > .${pn.chartCircles}`).empty()&&e.select(`.${Se.chart}`).append("g").attr("class",pn.chartCircles)},updateTargetForCircle(t,e){const n=this,{config:a,data:i,$el:s}=n,o=a.interaction_enabled&&a.data_selection_enabled,l=o&&a.data_selection_isselectable,c=n.getClass("circles",!0);if(!a.point_show)return;n.initCircle();let u=t,g=e;if(!u){u=i.targets.filter(m=>this.isScatterType(m)||this.isBubbleType(m));const v=s.main.select(`.${pn.chartCircles}`).style("pointer-events","none").selectAll(`.${pn.circles}`).data(u);v.exit().remove(),g=v.enter()}o&&g.append("g").attr("class",v=>n.generateClass(ke.selectedCircles,v.id)),g.append("g").attr("class",c).call(v=>{n.setCssRule(!0,`.${pn.circles}`,["cursor:pointer"],l)(v),n.setCssRule(!0,` .${pn.circle}`,["fill","stroke"],n.color)(v)}).style("opacity",function(){return st(this.parentNode).attr("class").indexOf(pn.chartCircles)>-1?"0":null}),o&&u.forEach(v=>{s.main.selectAll(`.${ke.selectedCircles}${n.getTargetSelectorSuffix(v.id)}`).selectAll(`${ke.selectedCircle}`).each(m=>{m.value=v.values[m.index].value})})},updateCircle(t=!1){const e=this,{config:n,state:a,$el:i}=e,s=e.isPointFocusOnly(),o=t?i.subchart:i;if(n.point_show&&!a.toggling){n.point_radialGradient&&e.updateLinearGradient();const l=o.main.selectAll(`.${pn.circles}`).selectAll(`.${pn.circle}`).data(c=>e.isLineType(c)&&e.shouldDrawPointsForLine(c)||e.isBubbleType(c)||e.isRadarType(c)||e.isScatterType(c)?s?[c.values[0]]:c.values:[]);l.exit().remove(),l.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.updateCircleColor.bind(e))),o.circle=o.main.selectAll(`.${pn.circles} .${pn.circle}`).style("stroke",e.getStylePropValue(e.color)).style("opacity",e.initialOpacityForCircle.bind(e))}},updateCircleColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.point_radialGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawCircle(t,e,n,a,i=!1){const s=this,{state:{rendered:o},$el:l,$T:c}=s,u=i?l.subchart:l,g=u.main.selectAll(`.${ke.selectedCircle}`);if(!s.config.point_show)return[];const v=s.point("update",s,t,e,s.updateCircleColor.bind(s),n,a,g),m=s.isCirclePoint()?"c":"",S=lr(),I=s.opacityForCircle.bind(s),N=[];return u.circle.each(function(M){let P=v.bind(this)(M);P=c(P,n||!o,S).style("opacity",I),N.push(P)}),[N,c(g,n).attr(`${m}x`,t).attr(`${m}y`,e)]},showCircleFocus(t){const e=this,{state:{hasRadar:n,resizing:a,toggling:i,transiting:s},$el:o}=e;let{circle:l}=o;if(s===!1&&l&&e.isPointFocusOnly()){const c=(n?e.radarCircleX:e.circleX).bind(e),u=(n?e.radarCircleY:e.circleY).bind(e),g=i||en(t),v=e.point("update",e,c,u,e.getStylePropValue(e.color),a?!1:g);t&&(l=l.filter(function(m){var S;const I=(S=t.filter)==null?void 0:S.call(t,N=>N.id===m.id);return I.length?st(this).datum(I[0]):!1})),l.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(m){const{id:S,index:I,value:N}=m;let M="hidden";Ie(N)&&(v.bind(this)(m),e.expandCircles(I,S),M=""),this.style.visibility=M})}},hideCircleFocus(){const t=this,{$el:{circle:e}}=t;t.isPointFocusOnly()&&e&&(t.unexpandCircles(),e.style("visibility","hidden"))},circleX(t){return this.xx(t)},updateCircleY(t=!1){const e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return(a,i)=>{const s=a.id;return e.isGrouped(s)?n(a,i)[0][1]:e.getYScaleById(s,t)(e.getBaseValue(a))}},expandCircles(t,e,n){const a=this,i=a.pointExpandedR.bind(a);n&&a.unexpandCircles();const s=a.getShapeByIndex("circle",t,e).classed(Se.EXPANDED,!0),o=i(s)/a.config.point_r,l=1-o;a.isCirclePoint()?s.attr("r",i):s.each(function(){const c=st(this);if(this.tagName==="circle")c.attr("r",i);else{const{width:u,height:g}=this.getBBox(),v=l*(+c.attr("x")+u/2),m=l*(+c.attr("y")+g/2);c.attr("transform",`translate(${v} ${m}) scale(${o})`)}})},unexpandCircles(t){const e=this,n=e.pointR.bind(e),a=e.getShapeByIndex("circle",t).filter(function(){return st(this).classed(Se.EXPANDED)}).classed(Se.EXPANDED,!1);if(a.attr("r",n),!e.isCirclePoint()){const i=n(a)/e.config.point_r;a.attr("transform",i!==1?`scale(${i})`:null)}},pointR(t){const e=this,{config:n}=e,a=n.point_r;let i=a;return e.isBubbleType(t)?i=e.getBubbleR(t):de(a)&&(i=a.bind(e.api)(t)),t.r=i,i},pointExpandedR(t){const e=this,{config:n}=e,a=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*a:e.pointR(t)},pointSelectR(t){const e=this,n=e.config.point_select_r;return de(n)?n(t):n||e.pointR(t)*4},isPointFocusOnly(){const t=this;return t.config.point_focus_only&&!t.hasType("bubble")&&!t.hasType("scatter")&&!t.hasArcType(null,["radar"])},isWithinCircle(t,e){const{config:n,state:a}=this,i=zn(a.event,t),s=st(t),o=this.isCirclePoint(t)?"c":"",l=n.point_sensitivity==="radius"?t.getAttribute("r"):n.point_sensitivity;let c=+s.attr(`${o}x`),u=+s.attr(`${o}y`);if(!(c||u)&&t.nodeType===1){const{x:g,y:v}=Si(t);c=g,u=v}return Math.sqrt(Math.pow(c-i[0],2)+Math.pow(u-i[1],2))<(e||l)},getPointSensitivity(t){const e=this;let n=e.config.point_sensitivity;return de(n)?n=n.call(e.api,t):n==="radius"&&(n=t.r),n},updatePointClass(t){const e=this,{circle:n}=e.$el;let a=!1;return(De(t)||n)&&(a=t===!0?n.each(function(i){let s=e.getClass("circle",!0)(i);this.getAttribute("class").indexOf(Se.EXPANDED)>-1&&(s+=` ${Se.EXPANDED}`),this.setAttribute("class",s)}):e.getClass("circle",!0)(t)),a},generateGetLinePoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),l=n.getYScaleById.bind(n);return(c,u)=>{const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,u)||g,m=i(c);let S=s(c);a.axis_rotated&&(c.value>0&&SIe(S.value)?e(S)-c/2:0,v=S=>Ie(S.value)?n(S)-u/2:0;let m=t;return i&&(s&&m.attr("x",g),m=l.$T(m,i,ia()),o&&l.$T(o,i,ia())),m.attr("x",g).attr("y",v).style("fill",a)}},circle:{create(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this;let c=t;return l.hasType("bubble")&&c.attr("r",l.pointR.bind(l)),i&&(s&&c.attr("cx",e),c.attr("cx")&&(c=l.$T(c,i,ia())),o&&l.$T(c,i,ia())),c.attr("cx",e).attr("cy",n).style("fill",a)}},rectangle:{create(t,e,n){const a=i=>e(i)*2;return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",a).attr("height",a).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this,c=l.config.point_r,u=m=>e(m)-c,g=m=>n(m)-c;let v=t;return i&&(s&&v.attr("x",u),v=l.$T(v,i,ia()),o&&l.$T(o,i,ia())),v.attr("x",u).attr("y",g).style("fill",a)}}};function wx(t){return Jn(t)&&de(t.create)&&de(t.update)}function Mx(t,e){var n;const a=this,i=(c,u)=>{const g=c.attributes;for(let v=0,m;m=g[v];v++)m=m.name,u.setAttribute(m,c.getAttribute(m))},o=new DOMParser().parseFromString(t,"image/svg+xml").documentElement,l=fn.createElementNS(ee.svg,o.nodeName.toLowerCase());if(l.id=e,l.style.fill="inherit",l.style.stroke="inherit",i(o,l),(n=o.childNodes)!=null&&n.length){const c=st(l);"innerHTML"in l?c.html(o.innerHTML):Cr(o.childNodes).forEach(u=>{i(u,c.append(u.tagName).node())})}a.$el.defs.node().appendChild(l)}var sa={hasValidPointType(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasLegendDefsPoint(){var t;const{config:e}=this;return e.legend_show&&((t=e.point_pattern)==null?void 0:t.length)&&e.legend_usePoint},getDefsPointId(t){const{state:{datetimeId:e}}=this;return`${e}-point${t}`},generatePoint(){const t=this,{$el:e,config:n}=t,a=[],i=nn(n.point_pattern)?n.point_pattern:[n.point_type];return function(s,o,...l){return function(c){var u,g,v,m;const S=t.getTargetSelectorSuffix(c.id||((u=c.data)==null?void 0:u.id)||c),I=st(this);a.indexOf(S)<0&&a.push(S);let N=i[a.indexOf(S)%i.length];if(t.hasValidPointType(N))N=t[N];else if(!wx(N||n.point_type)){const M=t.getDefsPointId(S);if(e.defs.select(`#${M}`).size()<1&&Mx.bind(t)(N,M),s==="create")return(g=t.custom)==null?void 0:g.create.bind(o)(I,M,...l);if(s==="update")return(v=t.custom)==null?void 0:v.update.bind(o)(I,...l)}return(m=N[s])==null?void 0:m.bind(o)(I,...l)}}}};function Zu(t){const e=t.config.polar_level_max;let n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Lx={initPolar(){const t=this,{$el:{arcs:e},config:n}=t,a=n.polar_level_text_show,i=n.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",vr.levels),a&&i&&t.generateTextBGColorFilter(i)},getPolarOuterRadius(t,e){var n;const a=Zu(this);return((n=t==null?void 0:t.data.values[0].value)!=null?n:0)/a*e},updateTargetsForPolar(t){this.updateTargetsForArc(t)},redrawPolar(){const t=this,{config:e}=t;e.polar_level_show&&t.updatePolarLevel()},updatePolarLevel(){const t=this,{config:e,state:n,$el:{arcs:{levels:a}}}=t,i=e.polar_level_depth,s=Zu(t),o=Ai(0,i),l=n.radius,c=o.map(m=>l*((m+1)/i)),u=(e.polar_level_text_format||function(){}).bind(t.api),g=a.selectAll(`.${vr.level}`).data(o);g.exit().remove();const v=g.enter().append("g").attr("class",(m,S)=>`${vr.level} ${vr.level}-${S}`);if(v.append("circle"),v.merge(g).selectAll("circle").style("visibility",e.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",m=>c[m]),e.polar_level_text_show){const m=e.polar_level_text_backgroundColor,S=`#${n.datetimeId}-labels-bg${t.getTargetSelectorSuffix(m)}`;v.append("text").style("text-anchor","middle"),v.merge(g).selectAll("text").attr("dy",I=>-c[I]+5).attr("filter",m?`url(${S})`:null).text(I=>u(s/o.length*(I+1)))}}};function Dx(t,e,n,a,i,s){const o=t&&a>0?n-a:a,l=2*Math.PI;return i*(1-s*(e==="x"?Math.sin:Math.cos)(o*l/n))}const oa=Cn.radarPoints,ku=Cn.radarTextWidth;var Nx={initRadar(){const t=this,{config:e,state:{current:n},$el:a}=t;t.hasType("radar")&&(a.radar=a.main.select(`.${Se.chart}`).append("g").attr("class",Zo.chartRadars),a.radar.levels=a.radar.append("g").attr("class",vr.levels),a.radar.axes=a.radar.append("g").attr("class",on.axis),a.radar.shapes=a.radar.append("g").attr("class",tn.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value,e.radar_axis_text_show&&(e.interaction_enabled&&t.bindRadarEvent(),t.updateRadarLevel(),t.updateRadarAxes()))},getRadarSize(){const t=this,{config:e,state:{arcWidth:n,arcHeight:a}}=t,i=e.axis_x_categories.length<4?-20:10,s=(Math.min(n,a)-i)/2;return[s,s]},updateTargetsForRadar(t){const e=this,{config:n}=e;Wn(n.axis_x_categories)&&(n.axis_x_categories=Ai(0,Kn("max",t.map(a=>a.values.length)))),e.generateRadarPoints()},getRadarPosition(t,e,n,a){const i=this,{config:s}=i,[o,l]=i.getRadarSize(),c=s.axis_x_categories.length,u=s.radar_direction_clockwise,g=Cr(t).map(v=>Dx(u,v,c,e,Xe(n)?n:t==="x"?o:l,fe(a)?a:s.radar_size_ratio));return g.length===1?g[0]:g},generateRadarPoints(){const t=this,e=t.data.targets,[n,a]=t.getRadarSize(),i=t.cache.get(oa)||{},s=i._size;(!s||s.width!==n&&s.height!==a)&&(e.forEach(o=>{i[o.id]=o.values.map((l,c)=>t.getRadarPosition(["x","y"],c,void 0,t.getRatio("radar",l)))}),i._size={width:n,height:a},t.cache.add(oa,i))},redrawRadar(){const t=this,{radar:e,main:n}=t.$el,a=t.getTranslate("radar");a&&(e.attr("transform",a),n.select(`.${An.chartTexts}`).attr("transform",a),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints(){const t=this.cache.get(oa);return(e,n)=>{const a=t[e.id][n];return[a,a,a,a]}},updateRadarLevel(){const t=this,{config:e,state:n,$el:{radar:a}}=t,[i,s]=t.getRadarSize(),o=e.radar_level_depth,l=e.axis_x_categories.length,c=e.radar_level_text_show,u=a.levels,g=Ai(0,o),v=e.radar_size_ratio*Math.min(i,s),m=g.map(P=>v*((P+1)/o)),S=(e.radar_level_text_format||function(){}).bind(t.api),I=g.map(P=>{const G=m[P];return Ai(0,l).map(V=>t.getRadarPosition(["x","y"],V,G,1).join(",")).join(" ")}),N=u.selectAll(`.${vr.level}`).data(g);N.exit().remove();const M=N.enter().append("g").attr("class",(P,G)=>`${vr.level} ${vr.level}-${G}`);M.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(u.select("text").empty()&&u.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text(()=>S(0)),M.append("text").attr("dx","-.5em").style("text-anchor","end").text(P=>S(n.current.dataMax/g.length*(P+1)))),M.merge(N).attr("transform",P=>`translate(${i-m[P]}, ${s-m[P]})`).selectAll("polygon").attr("points",P=>I[P]),c&&u.selectAll("text").attr("x",P=>en(P)?i:I[P].split(",")[0]).attr("y",P=>en(P)?s:0)},updateRadarAxes(){const t=this,{config:e,$el:{radar:n}}=t,[a,i]=t.getRadarSize(),s=e.axis_x_categories;let o=n.axes.selectAll("g").data(s);o.exit().remove();const l=o.enter().append("g").attr("class",(c,u)=>`${on.axis}-${u}`);if(e.radar_axis_line_show&&l.append("line"),e.radar_axis_text_show&&l.append("text"),o=l.merge(o),e.radar_axis_line_show&&o.select("line").attr("x1",a).attr("y1",i).attr("x2",(c,u)=>t.getRadarPosition("x",u)).attr("y2",(c,u)=>t.getRadarPosition("y",u)),e.radar_axis_text_show){const{x:c=0,y:u=0}=e.radar_axis_text_position,g=t.cache.get(ku)||0;if(o.select("text").style("text-anchor","middle").attr("dy",".5em").call(v=>{v.each(function(m){wa(st(this),String(m),[-.6,1.2])})}).datum((v,m)=>({index:m})).attr("transform",function(v){en(this.width)&&(this.width=this.getBoundingClientRect().width/2);let m=t.getRadarPosition("x",v.index,void 0,1),S=Math.round(t.getRadarPosition("y",v.index,void 0,1));return m>a?m+=this.width+c:Math.round(m)i?(S/2===i&&this.firstChild.tagName==="tspan"&&this.firstChild.setAttribute("dy","0em"),S+=u):SXl(m.node()).width);v.every(m=>m>0)&&t.cache.add(ku,v[0]-v[1])}}},bindRadarEvent(){const t=this,{state:e,$el:{radar:n,svg:a}}=t,i=t.isPointFocusOnly(),{inputType:s,transiting:o}=e,l=s==="mouse",c=u=>{e.event=u;const g=t.getDataIndexFromEvent(u),v=en(g);(l||v)&&(t.hideTooltip(),i?t.hideCircleFocus():t.unexpandCircles(),l?t.setOverOut(!1,g):v&&t.callOverOutForTouch())};n.axes.on(l?"mouseover ":"touchstart",u=>{if(o)return;e.event=u;const g=t.getDataIndexFromEvent(u);t.selectRectForSingle(a.node(),g),l?t.setOverOut(!0,g):t.callOverOutForTouch(g)}).on("mouseout",l?c:null),l||a.on("touchstart",c)},updateRadarShape(){const t=this,e=t.data.targets.filter(s=>t.isRadarType(s)),n=t.cache.get(oa),a=t.$el.radar.shapes.selectAll("polygon").data(e),i=a.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(a.exit()).remove(),i.append("polygon").merge(a).style("fill",t.color).style("stroke",t.color).attr("points",s=>n[s.id].join(" ")),t.updateTargetForCircle(e,i)},radarCircleX(t){return this.cache.get(oa)[t.id][t.index][0]},radarCircleY(t){return this.cache.get(oa)[t.id][t.index][1]}};function Fx(t){var e=0,n=t.children,a=n&&n.length;if(!a)e=1;else for(;--a>=0;)e+=n[a].value;t.value=e}function Bx(){return this.eachAfter(Fx)}function Ux(t,e){let n=-1;for(const a of this)t.call(e,a,++n,this);return this}function zx(t,e){for(var n=this,a=[n],i,s,o=-1;n=a.pop();)if(t.call(e,n,++o,this),i=n.children)for(s=i.length-1;s>=0;--s)a.push(i[s]);return this}function jx(t,e){for(var n=this,a=[n],i=[],s,o,l,c=-1;n=a.pop();)if(i.push(n),s=n.children)for(o=0,l=s.length;o=0;)n+=a[i].value;e.value=n})}function Xx(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Yx(t){for(var e=this,n=Hx(e,t),a=[e];e!==n;)e=e.parent,a.push(e);for(var i=a.length;t!==n;)a.splice(i,0,t),t=t.parent;return a}function Hx(t,e){if(t===e)return t;var n=t.ancestors(),a=e.ancestors(),i=null;for(t=n.pop(),e=a.pop();t===e;)i=t,t=n.pop(),e=a.pop();return i}function Wx(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Kx(){return Array.from(this)}function Zx(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function kx(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*Jx(){var t=this,e,n=[t],a,i,s;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,a=t.children)for(i=0,s=a.length;i=0;--l)i.push(s=o[l]=new ki(o[l])),s.parent=a,s.depth=a.depth+1;return n.eachBefore(e0)}function Qx(){return bo(this).eachBefore(t0)}function _x(t){return t.children}function qx(t){return Array.isArray(t)?t[1]:null}function t0(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function e0(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ki(t){this.data=t,this.depth=this.height=0,this.parent=null}ki.prototype=bo.prototype={constructor:ki,count:Bx,each:Ux,eachAfter:jx,eachBefore:zx,find:Gx,sum:Vx,sort:Xx,path:Yx,ancestors:Wx,descendants:Kx,leaves:Zx,links:kx,copy:Qx,[Symbol.iterator]:Jx};function n0(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ji(t,e,n,a,i){for(var s=t.children,o,l=-1,c=s.length,u=t.value&&(a-e)/t.value;++lG&&(G=u),H=M*M*k,W=Math.max(G/H,H/P),W>V){M-=u;break}V=W}o.push(c={value:M,dice:S1?a:1)},n}(Ju);function b1(t){return t==null?null:qu(t)}function qu(t){if(typeof t!="function")throw new Error;return t}function za(){return 0}function ja(t){return function(){return t}}function r0(){var t=_u,e=!1,n=1,a=1,i=[0],s=za,o=za,l=za,c=za,u=za;function g(m){return m.x0=m.y0=0,m.x1=n,m.y1=a,m.eachBefore(v),i=[0],e&&m.eachBefore(n0),m}function v(m){var S=i[m.depth],I=m.x0+S,N=m.y0+S,M=m.x1-S,P=m.y1-S;M=m-1){var G=s[v];G.x0=I,G.y0=N,G.x1=M,G.y1=P;return}for(var W=u[v],V=S/2+W,k=v+1,H=m-1;k>>1;u[at]P-N){var St=S?(I*$t+M*gt)/S:M;g(v,k,gt,I,N,St,P),g(k,m,$t,St,N,M,P)}else{var Tt=S?(N*$t+P*gt)/S:P;g(v,k,gt,I,N,M,Tt),g(k,m,$t,I,Tt,M,P)}}}function a0(t,e,n,a,i){(t.depth&1?Qi:Ji)(t,e,n,a,i)}var i0=function t(e){function n(a,i,s,o,l){if((c=a._squarify)&&c.ratio===e)for(var c,u,g,v,m=-1,S,I=c.length,N=a.value;++m1?a:1)},n}(Ju);function s0(t,e){const n=this,{scale:{x:a,y:i},state:{width:s}}=n;t.selectAll("g").attr("transform",o=>`translate(${o===e?"0,0":`${a(o.x0)},${i(o.y0)}`})`).select("rect").attr("width",o=>o===e?s:a(o.x1)-a(o.x0)).attr("height",o=>o===e?0:i(o.y1)-i(o.y0))}function o0(t){const e=this;return t.map(n=>{const{id:a,values:i}=n,{value:s}=i[0];return{name:a,id:a,value:s,ratio:e.getRatio("treemap",i[0])}})}function l0(t){const e=this,n=bo(t).sum(i=>i.value),a=e.getSortCompareFn(!0);return[e.treemap(a?n.sort(a):n)]}var c0={initTreemap(){const t=this,{$el:e,state:{current:{width:n,height:a},clip:i,datetimeId:s}}=t;i.id=`${s}-clip`,t.treemap=r0().tile(t.getTreemapTile()),e.defs.append("clipPath").attr("id",i.id).append("rect").attr("width",n).attr("height",a),e.treemap=e.main.select(`.${Se.chart}`).attr("clip-path",`url(#${i.id})`).append("g").classed(Jo.chartTreemaps,!0),t.bindTreemapEvent()},bindTreemapEvent(){const t=this,{$el:e,config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^rect$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c==null?void 0:c.data};if(n.interaction_enabled){const s=a.inputType==="touch";e.treemap.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.currentTarget),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);t.hideTooltip(),t.setOverOut(!1,l)})}},getTreemapTile(){var t,e;const n=this,{config:a,state:{current:{width:i,height:s}}}=n,o=(e={binary:tf,dice:Ji,slice:Qi,sliceDice:a0,squarify:_u,resquarify:i0}[(t=a.treemap_tile)!=null?t:"binary"])!=null?e:tf;return(l,c,u,g,v)=>{o(l,0,0,i,s);for(const m of l.children)m.x0=c+m.x0/i*(g-c),m.x1=c+m.x1/i*(g-c),m.y0=u+m.y0/s*(v-u),m.y1=u+m.y1/s*(v-u)}},getTreemapData(t){const e=this;return{name:"root",children:o0.bind(e)(e.filterTargetsToShow(t.filter(e.isTreemapType,e)))}},updateTargetsForTreemap(t){const e=this,{$el:{treemap:n}}=e,a=l0.call(e,e.getTreemapData(t!=null?t:e.data.targets));n.data(a)},updateTreemap(t){const e=this,{$el:n,$T:a}=e,i=n.treemap.datum(),s=e.getChartClass("Treemap"),o=e.getClass("treemap",!0),l=n.treemap.selectAll("g").data(i.children);a(l.exit(),t).style("opacity","0").remove(),l.enter().append("g").append("rect"),n.treemap.selectAll("g").attr("class",s).select("rect").attr("class",o).attr("fill",c=>e.color(c.data.name))},generateGetTreemapPoints(){const t=this,{$el:e,scale:{x:n,y:a}}=t,i={};return e.treemap.selectAll("g").each(s=>{i[s.data.name]=[[n(s.x0),a(s.y0)],[n(s.x1),a(s.y1)]]}),s=>i[s.id]},redrawTreemap(t){const e=this,{$el:n,state:{current:{width:a,height:i}}}=e;return n.defs.select("rect").attr("width",a).attr("height",i),[e.$T(n.treemap,t,lr()).call(s0.bind(e),n.treemap.datum())]},treemapDataLabelFormat(t){const e=this,{config:n}=e,{id:a,value:i}=t,s=n.treemap_label_format,o=e.getRatio("treemap",t),l=(o*100).toFixed(2),c=n.treemap_label_show&&e.meetsLabelThreshold(o,"treemap")?null:"0";return function(u){return u.style("opacity",c),de(s)?s.bind(e.api)(i,o,a):`${a} -${l}%`}}},Ur={point_show:!0,point_r:2.5,point_radialGradient:!1,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},la={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},u0={bar_front:!1,bar_indices_removeNull:!1,bar_label_threshold:0,bar_linearGradient:!1,bar_overlap:!1,bar_padding:0,bar_radius:void 0,bar_radius_ratio:void 0,bar_sensitivity:2,bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0},f0={bubble_maxR:35,bubble_zerobased:!1},d0={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},h0={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},g0={scatter_zerobased:!1},Eo={spline_interpolation_type:"cardinal"},_i={arc_cornerRadius:0,arc_cornerRadius_ratio:0,arc_needle_show:!1,arc_needle_color:void 0,arc_needle_value:void 0,arc_needle_path:void 0,arc_needle_length:100,arc_needle_top_rx:0,arc_needle_top_ry:0,arc_needle_top_width:0,arc_needle_bottom_rx:1,arc_needle_bottom_ry:1,arc_needle_bottom_width:15,arc_needle_bottom_len:0,arc_rangeText_values:void 0,arc_rangeText_unit:"absolute",arc_rangeText_fixed:!1,arc_rangeText_format:void 0,arc_rangeText_position:void 0},v0={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},p0={funnel_neck_width:0,funnel_neck_height:0},m0={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_extents:void 0,gauge_label_format:void 0,gauge_label_ratio:void 0,gauge_label_threshold:0,gauge_enforceMinMax:!1,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},y0={pie_label_show:!0,pie_label_format:void 0,pie_label_ratio:void 0,pie_label_threshold:.05,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},x0={polar_label_show:!0,polar_label_format:void 0,polar_label_threshold:.05,polar_label_ratio:void 0,polar_level_depth:3,polar_level_max:void 0,polar_level_show:!0,polar_level_text_backgroundColor:"#fff",polar_level_text_format:t=>t%1===0?t:t.toFixed(2),polar_level_text_show:!0,polar_padAngle:0,polar_padding:0,polar_startingAngle:0},T0={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:t=>t%1===0?t:t.toFixed(2),radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1},$0={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0};function ca(t,e){gn(Fr.prototype,Object.values(wu).concat(t)),gn(xr.prototype,Wy),Pr.setOptions(Object.values(Mu).concat(e||[]))}function fr(t,e){ca([sa,Zi,Px].concat(t||[])),Pr.setOptions([Ur,h0].concat(e||[]))}function ua(t,e){gn(Fr.prototype,[hx,sa].concat(t||[])),Pr.setOptions([Ur].concat(e||[]))}let ef=()=>(fr(aa,[la]),(ef=()=>ae.AREA)()),nf=()=>(fr(aa,[la]),(nf=()=>ae.AREA_LINE_RANGE)()),rf=()=>(fr(aa,[la]),(rf=()=>ae.AREA_STEP_RANGE)()),af=()=>(fr(aa,[la,Eo]),(af=()=>ae.AREA_SPLINE)()),sf=()=>(fr(aa,[la,Eo]),(sf=()=>ae.AREA_SPLINE_RANGE)()),of=()=>(fr(aa,[la]),(of=()=>ae.AREA_STEP)()),lf=()=>(fr(),(lf=()=>ae.LINE)()),cf=()=>(fr(void 0,[Eo]),(cf=()=>ae.SPLINE)()),uf=()=>(fr(),(uf=()=>ae.STEP)()),ff=()=>(ua(void 0,[_i,v0]),(ff=()=>ae.DONUT)()),df=()=>(ua([Cx],[_i,m0]),(df=()=>ae.GAUGE)()),hf=()=>(ua(void 0,[_i,y0]),(hf=()=>ae.PIE)()),gf=()=>(ua([Lx],[_i,x0]),(gf=()=>ae.POLAR)()),vf=()=>(ua([wu.eventrect,Zi,Nx],[Ur,T0,{axis_x_categories:Mu.optAxis.axis_x_categories}]),(vf=()=>ae.RADAR)()),pf=()=>(ca([vx,sa],[u0,Ur]),(pf=()=>ae.BAR)()),mf=()=>(ca([sa,Zi,px],[f0,Ur]),(mf=()=>ae.BUBBLE)()),yf=()=>(ca([$x,sa],[d0,Ur]),(yf=()=>ae.CANDLESTICK)()),xf=()=>(ca([sa,Zi],[Ur,g0]),(xf=()=>ae.SCATTER)()),Tf=()=>(ua([Ix],[p0]),(Tf=()=>ae.FUNNEL)()),$f=()=>(ca([c0],[$0]),($f=()=>ae.TREEMAP)()),Ro={};const Sf={version:"3.12.4-nightly-20240724004639",generate(t){const e=_r({},Ro,t),n=new xr(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults(t){return De(t)&&(Ro=t),Ro},instance:[],plugin:{}};Object.keys(d).forEach(t=>d[t]()),Object.keys(f).forEach(t=>f[t]())}],Va={};function Nn(x){var E=Va[x];if(E!==void 0)return E.exports;var r=Va[x]={exports:{}};return Oo[x].call(r.exports,r,r.exports,Nn),r.exports}(function(){Nn.d=function(x,E){for(var r in E)Nn.o(E,r)&&!Nn.o(x,r)&&Object.defineProperty(x,r,{enumerable:!0,get:E[r]})}})(),function(){Nn.o=function(x,E){return Object.prototype.hasOwnProperty.call(x,E)}}(),function(){Nn.r=function(x){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})}}(),Nn(0);var Xa=Nn(560);return Xa}()}); +`):[];if(c.length)return c;if(Fe(l))return l;let u=o.tickWidth;(!u||u<=0)&&(u=i?95:o.isCategory?Math.ceil(o.isInverted?n(a[0])-n(a[1]):n(a[1])-n(a[0]))-12:110);function g(v,m){let S,I,N;for(let M=1;M{const S=v+1;return Se(this.helper.scale.domain());else{if(!arguments.length)return n.tickValues;n.tickValues=e}return this}setTransition(e){return this.config.transition=e,this}}var by=Object.defineProperty,Ey=(t,e,n)=>e in t?by(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ur=(t,e,n)=>Ey(t,typeof e!="symbol"?e+"":e,n),Ry={getAxisInstance:function(){return this.axis||new Oy(this)}};class Oy{constructor(e){ur(this,"owner"),ur(this,"x"),ur(this,"subX"),ur(this,"y"),ur(this,"y2"),ur(this,"axesList",{}),ur(this,"tick",{x:null,y:null,y2:null}),ur(this,"xs",[]),ur(this,"orient",{x:"bottom",y:"left",y2:"right",subX:"bottom"}),this.owner=e,this.setOrient()}getAxisClassName(e){return`${on.axis} ${on[`axis${In(e)}`]}`}isHorizontal(e,n){const a=e.config.axis_rotated;return n?a:!a}isCategorized(){const{config:e,state:n}=this.owner;return e.axis_x_type.indexOf("category")>=0||n.hasRadar}isCustomX(){const{config:e}=this.owner;return!this.isTimeSeries()&&(e.data_x||nn(e.data_xs))}isTimeSeries(e="x"){return this.owner.config[`axis_${e}_type`]==="timeseries"}isLog(e="x"){return this.owner.config[`axis_${e}_type`]==="log"}isTimeSeriesY(){return this.isTimeSeries("y")}getAxisType(e="x"){let n="linear";return this.isTimeSeries(e)?n=this.owner.config.axis_x_localtime?"time":"utc":this.isLog(e)&&(n="log"),n}init(){const e=this.owner,{config:n,$el:{main:a,axis:i},state:{clip:s}}=e,o=n.axis_rotated,l=["x","y"];n.axis_y2_show&&l.push("y2"),l.forEach(c=>{const u=this.getAxisClassName(c),g=on[`axis${c.toUpperCase()}Label`];i[c]=a.append("g").attr("class",u).attr("clip-path",()=>{let v=null;return c==="x"?v=s.pathXAxis:c==="y"&&(v=s.pathYAxis),v}).attr("transform",e.getTranslate(c)).style("visibility",n[`axis_${c}_show`]?null:"hidden"),i[c].append("text").attr("class",g).attr("transform",["rotate(-90)",null][c==="x"?+!o:+o]).style("text-anchor",()=>this.textAnchorForAxisLabel(c)),this.generateAxes(c)}),n.axis_tooltip&&this.setAxisTooltip()}setOrient(){const e=this.owner,{axis_rotated:n,axis_y_inner:a,axis_y2_inner:i}=e.config;this.orient={x:n?"left":"bottom",y:n?a?"top":"bottom":a?"right":"left",y2:n?i?"bottom":"top":i?"left":"right",subX:n?"left":"bottom"}}generateAxes(e){const n=this.owner,{config:a}=n,i=[],s=a[`axis_${e}_axes`],o=a.axis_rotated;let l;e==="x"?l=o?Eu:bu:e==="y"?l=o?bu:Eu:e==="y2"&&(l=o?my:yy),s.length&&s.forEach(c=>{const u=c.tick||{},g=n.scale[e].copy();c.domain&&g.domain(c.domain),i.push(l(g).ticks(u.count).tickFormat(de(u.format)?u.format.bind(n.api):v=>v).tickValues(u.values).tickSizeOuter(u.outer===!1?0:6))}),this.axesList[e]=i}updateAxes(){const e=this.owner,{config:n,$el:{main:a},$T:i}=e;Object.keys(this.axesList).forEach(s=>{const o=n[`axis_${s}_axes`],l=e.scale[s].copy(),c=l.range();this.axesList[s].forEach((u,g)=>{const v=u.scale().range();c.every((I,N)=>I===v[N])||u.scale().range(c);const m=`${this.getAxisClassName(s)}-${g+1}`;let S=a.select(`.${m.replace(/\s/,".")}`);S.empty()?S=a.append("g").attr("class",m).style("visibility",n[`axis_${s}_show`]?null:"hidden").call(u):(o[g].domain&&l.domain(o[g].domain),i(S).call(u.scale(l))),S.attr("transform",e.getTranslate(s,g+1))})})}setAxis(e,n,a,i){const s=this.owner;e!=="subX"&&(this.tick[e]=this.getTickValues(e)),this[e]=this.getAxis(e,n,a,e==="x"&&(s.scale.zoom||s.config.subchart_show||s.state.resizing)?!0:i)}getAxis(e,n,a,i,s){const o=this.owner,{config:l}=o,c=/^(x|subX)$/.test(e),u=c?"x":e,g=c&&this.isCategorized(),v=this.orient[e],m=s?0:o.getAxisTickRotate(u);let S;if(c)S=e==="subX"?o.format.subXAxisTick:o.format.xAxisTick;else{const G=l[`axis_${e}_tick_format`];de(G)&&(S=G.bind(o.api))}let I=this.tick[u];const N=_r({outerTick:a,noTransition:i,config:l,id:e,tickTextRotate:m,owner:o},c&&{isCategory:g,isInverted:l.axis_x_inverted,tickMultiline:l.axis_x_tick_multiline,tickWidth:l.axis_x_tick_width,tickTitle:g&&l.axis_x_tick_tooltip&&o.api.categories(),orgXScale:o.scale.x});c||(N.tickStepSize=l[`axis_${u}_tick_stepSize`]);const M=new Ay(N).scale(c&&o.scale.zoom||n).orient(v);if(c&&this.isTimeSeries()&&I&&!de(I)){const G=Dn.bind(o);I=I.map(H=>G(H))}else!c&&this.isTimeSeriesY()&&(M.ticks(l.axis_y_tick_time_value),I=null);I&&M.tickValues(I),M.tickFormat(S||!c&&o.isStackNormalized()&&(G=>`${G}%`)),g&&(M.tickCentered(l.axis_x_tick_centered),Wn(l.axis_x_tick_culling)&&(l.axis_x_tick_culling=!1));const P=l[`axis_${u}_tick_count`];return P&&M.ticks(P),M}updateXAxisTickValues(e,n){var a;const i=this.owner,{config:s}=i,o=s.axis_x_tick_fit;let l=s.axis_x_tick_count,c;return(o||l&&o)&&(c=i.mapTargetsToUniqueXs(e),this.isCategorized()&&l>c.length&&(l=c.length),c=this.generateTickValues(c,l,this.isTimeSeries())),n?n.tickValues(c):this.x&&(this.x.tickValues(c),(a=this.subX)==null||a.tickValues(c)),c}getId(e){const{config:n,scale:a}=this.owner;let i=n.data_axes[e];return(!i||!a[i])&&(i="y"),i}getXAxisTickFormat(e){const n=this.owner,{config:a,format:i}=n,s=e&&a.subchart_axis_x_tick_format||a.axis_x_tick_format,o=this.isTimeSeries(),l=this.isCategorized();let c;return s?de(s)?c=s.bind(n.api):o&&(c=u=>u?i.axisTime(s)(u):""):c=o?i.defaultAxisTime:l?n.categoryName:u=>u<0?u.toFixed(0):u,de(c)?u=>c.apply(n,l?[u,n.categoryName(u)]:[u]):c}getTickValues(e){const n=this.owner,a=n.config[`axis_${e}_tick_values`],i=n[`${e}Axis`];return(de(a)?a.call(n.api):a)||(i?i.tickValues():void 0)}getLabelOptionByAxisId(e){return this.owner.config[`axis_${e}_label`]}getLabelText(e){const n=this.getLabelOptionByAxisId(e);return ze(n)?n:n?n.text:null}setLabelText(e,n){const a=this.owner,{config:i}=a,s=this.getLabelOptionByAxisId(e);ze(s)?i[`axis_${e}_label`]=n:s&&(s.text=n)}getLabelPosition(e,n){const a=this.owner.config.axis_rotated,i=this.getLabelOptionByAxisId(e),s=Jn(i)&&i.position?i.position:n[+!a],o=l=>!!~s.indexOf(l);return{isInner:o("inner"),isOuter:o("outer"),isLeft:o("left"),isCenter:o("center"),isRight:o("right"),isTop:o("top"),isMiddle:o("middle"),isBottom:o("bottom")}}getAxisLabelPosition(e){return this.getLabelPosition(e,e==="x"?["inner-top","inner-right"]:["inner-right","inner-top"])}getLabelPositionById(e){return this.getAxisLabelPosition(e)}xForAxisLabel(e){const n=this.owner,{state:{width:a,height:i}}=n,s=this.getAxisLabelPosition(e);let o=s.isMiddle?-i/2:0;return this.isHorizontal(n,e!=="x")?o=s.isLeft?0:s.isCenter?a/2:a:s.isBottom&&(o=-i),o}dxForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isBottom?"0.5em":"0";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"0.5em":a.isRight?"-0.5em":"0":a.isTop&&(i="-0.5em"),i}textAnchorForAxisLabel(e){const n=this.owner,a=this.getAxisLabelPosition(e);let i=a.isMiddle?"middle":"end";return this.isHorizontal(n,e!=="x")?i=a.isLeft?"start":a.isCenter?"middle":"end":a.isBottom&&(i="start"),i}dyForAxisLabel(e){const n=this.owner,{config:a}=n,i=a.axis_rotated,s=this.getAxisLabelPosition(e).isInner,o=a[`axis_${e}_tick_rotate`]?n.getHorizontalAxisHeight(e):0,{width:l}=this.getMaxTickSize(e);let c;if(e==="x"){const u=a.axis_x_height;i?c=s?"1.2em":-25-l:s?c="-0.5em":u?c=u-10:o?c=o-10:c="3em"}else c={y:["-0.5em",10,"3em","1.2em",10],y2:["1.2em",-20,"-2.2em","-0.5em",15]}[e],i?s?c=c[0]:o?c=o*(e==="y2"?-1:1)-c[1]:c=c[2]:c=s?c[3]:(c[4]+(a[`axis_${e}_inner`]?0:l+c[4]))*(e==="y"?-1:1);return c}getMaxTickSize(e,n){const a=this.owner,{config:i,state:{current:s},$el:{svg:o,chart:l}}=a,c=s.maxTickSize[e],u=`axis_${e}`,g={width:0,height:0};if(n||!i[`${u}_show`]||c.width>0&&a.filterTargetsToShow().length===0)return c;if(o){const v=/^y2?$/.test(e),m=a.filterTargetsToShow(a.data.targets),S=a.scale[e].copy().domain(a[`get${v?"Y":"X"}Domain`](m,e)),I=S.domain(),N=I[0]===I[1]&&I.every(K=>K>0),M=Fe(c.domain)&&c.domain[0]===c.domain[1]&&c.domain.every(K=>K>0);if(N||M)return c.size;c.domain=I,v||c.ticks.splice(0);const P=this.getAxis(e,S,!1,!1,!0),G=i[`${u}_tick_rotate`],H=i[`${u}_tick_count`];!i[`${u}_tick_values`]&&H&&P.tickValues(this.generateTickValues(I,H,v?this.isTimeSeriesY():this.isTimeSeries())),!v&&this.updateXAxisTickValues(m,P);const _=l.append("svg").style("visibility","hidden").style("position","fixed").style("top","0").style("left","0");P.create(_),_.selectAll("text").attr("transform",fe(G)?`rotate(${G})`:null).each(function(K,at){const{width:$t,height:At}=this.getBoundingClientRect();g.width=Math.max(g.width,$t),g.height=Math.max(g.height,At),v||(c.ticks[at]=$t)}),_.remove()}return Object.keys(g).forEach(v=>{g[v]>0&&(c[v]=g[v])}),c}getXAxisTickTextY2Overflow(e){const n=this.owner,{axis:a,config:i,state:{current:s,isLegendRight:o,legendItemWidth:l}}=n,c=n.getAxisTickRotate("x"),u=c>0&&c<90;if((a.isCategorized()||a.isTimeSeries())&&i.axis_x_tick_fit&&(!i.axis_x_tick_culling||Wn(i.axis_x_tick_culling))&&!i.axis_x_tick_multiline&&u){const g=i.axis_y2_show&&s.maxTickSize.y2.width||0,v=o&&l||0,m=s.width-n.getCurrentPaddingByDirection("left"),S=this.getXAxisTickMaxOverflow(c,m-e)-g-v,I=Math.max(0,S)+e;return Math.min(I,m/2)}return 0}getXAxisTickMaxOverflow(e,n){const a=this.owner,{axis:i,config:s,state:o}=a,l=i.isTimeSeries(),c=o.current.maxTickSize.x.ticks,u=c.length,{left:g,right:v}=o.axis.x.padding;let m=0;const S=u-(l&&s.axis_x_tick_fit?.5:0);for(let M=0;M!s[o].empty()).forEach(o=>{const l=s[o];i(l,e).attr("x",()=>this.xForAxisLabel(o)).attr("dx",()=>this.dxForAxisLabel(o)).attr("dy",()=>this.dyForAxisLabel(o)).text(()=>this.getLabelText(o))})}getPadding(e,n,a,i){const s=fe(e)?e:e[n];return Ie(s)?this.owner.convertPixelToScale(/(bottom|top)/.test(n)?"y":"x",s,i):a}generateTickValues(e,n,a){let i=e;if(n){const s=de(n)?n():n;if(s===1)i=[e[0]];else if(s===2)i=[e[0],e[e.length-1]];else if(s>2){const o=this.isCategorized(),l=s-2,c=e[0],u=e[e.length-1],g=(u-c)/(l+1);let v;i=[c];for(let m=0;ms-o)),i}generateTransitions(e){const n=this.owner,{$el:{axis:a},$T:i}=n,[s,o,l,c]=["x","y","y2","subX"].map(u=>i(a[u],e));return{axisX:s,axisY:o,axisY2:l,axisSubX:c}}redraw(e,n,a){const i=this.owner,{config:s,$el:o}=i,l=n?"0":null;["x","y","y2","subX"].forEach(c=>{const u=this[c],g=o.axis[c];u&&g&&(!a&&!s.transition_duration&&(u.config.withoutTransition=!0),g.style("opacity",l),u.create(e[`axis${In(c)}`]))}),this.updateAxes()}redrawAxis(e,n,a,i,s){var o,l,c;const u=this.owner,{config:g,scale:v,$el:m}=u,S=!!v.zoom;let I;!S&&this.isCategorized()&&e.length===0&&v.x.domain([0,m.axis.x.selectAll(".tick").size()]),v.x&&e.length?(!S&&u.updateXDomain(e,n.UpdateXDomain,n.UpdateOrgXDomain,n.TrimXDomain),g.axis_x_tick_values||this.updateXAxisTickValues(e)):this.x&&(this.x.tickValues([]),(o=this.subX)==null||o.tickValues([])),g.zoom_rescale&&!i&&(I=v.x.orgDomain()),["y","y2"].forEach(N=>{const M=`axis_${N}_`,P=v[N];if(P){const G=g[`${M}tick_values`],H=g[`${M}tick_count`];if(P.domain(u.getYDomain(e,N,I)),!G&&H){const Y=u.axis[N],_=P.domain();Y.tickValues(this.generateTickValues(_,_.every(K=>K===0)?1:H,this.isTimeSeriesY()))}}}),this.redraw(a,u.hasArcType(),s),this.updateLabels(n.Transition),(n.UpdateXDomain||n.UpdateXAxis||n.Y)&&e.length&&this.setCulling(),n.Y&&((l=v.subY)==null||l.domain(u.getYDomain(e,"y")),(c=v.subY2)==null||c.domain(u.getYDomain(e,"y2")))}setCulling(){const e=this.owner,{config:n,state:{clip:a,current:i},$el:s}=e;["subX","x","y","y2"].forEach(o=>{const l=s.axis[o],u=`axis_${o==="subX"?"x":o}_tick_culling`,g=n[u];if(l&&g){const v=l.selectAll(".tick"),m=qr(v.data()),S=m.length,I=n[`${u}_max`],N=n[`${u}_lines`];let M;if(S){for(let P=1;P{var u,g,v;if(o[c]=(u=s[c])==null?void 0:u.append("text").classed(on[`axis${c.toUpperCase()}Tooltip`],!0).attr("filter",n.updateTextBGColor({id:c},l)),a){const m=c==="x"?"x":"y",S=c==="y"?"1.15em":c==="x"?"-0.3em":"-0.4em";(g=o[c])==null||g.attr(m,S).attr(`d${c==="x"?"y":"x"}`,c==="x"?"0.4em":"-1.3em").style("text-anchor",c==="x"?"end":null)}else{const m=c==="x"?"y":"x",S=c==="x"?"1.15em":`${c==="y"?"-":""}0.4em`;(v=o[c])==null||v.attr(m,S).attr(`d${c==="x"?"x":"y"}`,c==="x"?"-1em":"0.3em").style("text-anchor",c==="y"?"end":null)}})}}var Iy={initEventRect(){this.$el.main.select(`.${Se.chart}`).append("g").attr("class",Vn.eventRects).style("fill-opacity","0")},redrawEventRect(){var t;const e=this,{config:n,state:a,$el:i}=e,s=e.isMultipleX(),o=n.axis_x_inverted;if(i.eventRect)e.updateEventRect(i.eventRect,!0);else if(e.data.targets.length){const c=e.$el.main.select(`.${Vn.eventRects}`).style("cursor",n.zoom_enabled&&n.zoom_type!=="drag"?n.axis_rotated?"ns-resize":"ew-resize":null).classed(Vn.eventRectsMultiple,s).classed(Vn.eventRectsSingle,!s).selectAll(`.${Vn.eventRect}`).data([0]).enter().append("rect");e.updateEventRect(c),e.updateEventType(c),c.call(e.getDraggableSelection()),i.eventRect=c,e.state.inputType==="touch"&&!i.svg.on("touchstart.eventRect")&&!e.hasArcType()&&e.bindTouchOnEventRect(),a.rendered&&e.updateEventRect(i.eventRect,!0)}if(!s){const l=e.getMaxDataCountTarget();(!n.data_xSort||o)&&l.sort((c,u)=>o?u.x-c.x:c.x-u.x),e.updateDataIndexByX(l),e.updateXs(l),(t=e.updatePointClass)==null||t.call(e,!0),a.eventReceiver.data=l}e.updateEventRectData()},bindTouchOnEventRect(){const t=this,{config:e,state:n,$el:{eventRect:a,svg:i}}=t,s=m=>{if(t.isMultipleX())t.selectRectForMultipleXs(m);else{const S=t.getDataIndexFromEvent(n.event);t.callOverOutForTouch(S),S===-1?t.unselectRect():t.selectRectForSingle(m,S)}},o=()=>{t.unselectRect(),t.callOverOutForTouch()},l=e.interaction_inputType_touch.preventDefault,c=Os(l)&&l||!1,u=!isNaN(l)&&l||null;let g;const v=m=>{const S=m.type,N=m.changedTouches[0][`client${e.axis_rotated?"Y":"X"}`];S==="touchstart"?c?m.preventDefault():u!==null&&(g=N):S==="touchmove"&&(c||g===!0||u!==null&&Math.abs(g-N)>=u)&&(g=!0,m.preventDefault())};a.on("touchstart",m=>{n.event=m,t.updateEventRect()}).on("touchstart.eventRect touchmove.eventRect",m=>{if(n.event=m,!a.empty()&&a.classed(Vn.eventRect)){if(n.dragging||n.flowing||t.hasArcType()||m.touches.length>1)return;v(m),s(a.node())}else o()},!0).on("touchend.eventRect",m=>{n.event=m,!a.empty()&&a.classed(Vn.eventRect)&&(t.hasArcType()||!t.toggleShape||n.cancelClick)&&n.cancelClick&&(n.cancelClick=!1)},!0),i.on("touchstart",m=>{n.event=m;const{target:S}=m;S&&S!==a.node()&&o()})},updateEventRect(t,e=!1){const n=this,{state:a,$el:i}=n,{eventReceiver:s,width:o,height:l,rendered:c,resizing:u}=a,g=t||i.eventRect,v=()=>{if(s){const m=Wl(i.chart.node());s.rect=g.node().getBoundingClientRect().toJSON(),s.rect.top+=m.y,s.rect.left+=m.x}};(!c||u||e)&&(g.attr("x",0).attr("y",0).attr("width",o).attr("height",l),(!c||e)&&g.classed(Vn.eventRect,!0)),v()},updateEventType(t){const e=this,n=Os(t),a=n?e.$el.eventRect:t,i=n?t!==(a==null?void 0:a.datum().multipleX):!1;a&&(i&&(a==null||a.on("mouseover mousemove mouseout click",null)),e.isMultipleX()?e.generateEventRectsForMultipleXs(a):e.generateEventRectsForSingleX(a))},updateEventRectData(){const t=this,{config:e,scale:n,state:a}=t,i=n.zoom||n.x,s=e.axis_rotated,o=t.isMultipleX();let l,c,u,g;if(t.updateEventType(o),o)l=0,c=0,u=a.width,g=a.height;else{let S,I;if(t.axis.isCategorized())S=t.getEventRectWidth(),I=N=>i(N.x)-S/2;else{const N=({index:M})=>({prev:t.getPrevX(M),next:t.getNextX(M)});S=M=>{const P=N(M),G=i.domain();let H;return P.prev===null&&P.next===null?H=s?a.height:a.width:P.prev===null?H=(i(P.next)+i(M.x))/2:P.next===null?H=i(G[1])-(i(P.prev)+i(M.x))/2:(Object.keys(P).forEach((Y,_)=>{var K;P[Y]=(K=P[Y])!=null?K:G[_]}),H=Math.max(0,(i(P.next)-i(P.prev))/2)),H},I=M=>{const P=N(M);let G;return P.prev===null&&P.next===null?G=0:P.prev===null?G=i(i.domain()[0]):G=(i(M.x)+i(P.prev))/2,G}}l=s?0:I,c=s?I:0,u=s?a.width:S,g=s?S:a.height}const{eventReceiver:v}=a,m=(S,I)=>de(S)?S(I):S;v.coords.splice(v.data.length),v.data.forEach((S,I)=>{v.coords[I]={x:m(l,S),y:m(c,S),w:m(u,S),h:m(g,S)}})},selectRectForSingle(t,e){var n,a;const i=this,{config:s,$el:{main:o,circle:l}}=i,c=s.data_selection_enabled,u=s.data_selection_grouped,g=s.data_selection_isselectable,v=s.tooltip_grouped,m=i.getAllValuesOnIndex(e);if(v&&(i.showTooltip(m,t),(n=i.showGridFocus)==null||n.call(i,m),!c||u))return;!l&&o.selectAll(`.${Se.EXPANDED}:not(.${tn.shape}-${e})`).classed(Se.EXPANDED,!1);const S=o.selectAll(`.${tn.shape}-${e}`).classed(Se.EXPANDED,!0).style("cursor",g?"pointer":null).filter(function(I){return i.isWithinShape(this,I)});S.empty()&&!v&&((a=i.hideGridFocus)==null||a.call(i),i.hideTooltip(),!u&&i.setExpand(e)),S.call(I=>{var N,M;const P=I.data();c&&(u||g!=null&&g.bind(i.api)(P))&&(t.style.cursor="pointer"),v||(i.showTooltip(P,t),(N=i.showGridFocus)==null||N.call(i,P),(M=i.unexpandCircles)==null||M.call(i),I.each(G=>i.setExpand(e,G.id)))})},selectRectForMultipleXs(t,e=!0){const n=this,{config:a,state:i}=n,s=n.filterTargetsToShow(n.data.targets);if(i.dragging||n.hasArcType(s))return;const o=zn(i.event,t),l=n.findClosestFromTargets(s,o);if(e&&i.mouseover&&(!l||l.id!==i.mouseover.id)&&(a.data_onout.call(n.api,i.mouseover),i.mouseover=void 0),!l){n.unselectRect();return}const u=(n.isBubbleType(l)||n.isScatterType(l)||!a.tooltip_grouped?[l]:n.filterByX(s,l.x)).map(v=>n.addName(v));n.showTooltip(u,t),n.setExpand(l.index,l.id,!0),n.showGridFocus(u);const g=n.dist(l,o);(n.isBarType(l.id)||g{const c=l?e.getDataIndexFromEvent(l):i.currentIdx;return c>-1?i.data[c]:null};s.on("mouseover",l=>{a.event=l,e.updateEventRect(),Object.values(e.$el.axisTooltip).forEach(c=>c==null?void 0:c.style("display",null))}).on("mousemove",function(l){const c=o(l);if(a.event=l,!c)return;let{index:u}=c;const g=n.line_step_type;if(n.line_step_tooltipMatch&&e.hasType("step")&&/^step\-(before|after)$/.test(g)){const m=e.scale.zoom||e.scale.x,S=e.axis.xs[u],I=m.invert(zn(l,this)[0]);g==="step-after"&&IS&&(u+=1)}e.showAxisGridFocus();const v=n.tooltip_grouped&&u===i.currentIdx;if(a.dragging||a.flowing||e.hasArcType()||v){n.tooltip_show&&v&&e.setTooltipPosition();return}u!==i.currentIdx&&(e.setOverOut(!1,i.currentIdx),i.currentIdx=u),u===-1?e.unselectRect():e.selectRectForSingle(this,u),e.setOverOut(u!==-1,u)}).on("mouseout",l=>{a.event=l,!(!n||e.hasArcType()||i.currentIdx===-1)&&(e.hideAxisGridFocus(),e.unselectRect(),e.setOverOut(!1,i.currentIdx),i.currentIdx=-1)})}return s},clickHandlerForSingleX(t,e){const n=e,{config:a,state:i,$el:{main:s}}=n;if(!t||n.hasArcType()||i.cancelClick){i.cancelClick&&(i.cancelClick=!1);return}const{index:o}=t;s.selectAll(`.${tn.shape}-${o}`).each(function(l){var c;(a.data_selection_grouped||n.isWithinShape(this,l))&&((c=n.toggleShape)==null||c.call(n,this,l,o),a.data_onclick.bind(n.api)(l,this))})},generateEventRectsForMultipleXs(t){const e=this,{state:n}=e;t.on("click",function(a){n.event=a,e.clickHandlerForMultipleXS.bind(this)(e)}).datum({multipleX:!0}),n.inputType==="mouse"&&t.on("mouseover mousemove",function(a){n.event=a,e.selectRectForMultipleXs(this)}).on("mouseout",a=>{n.event=a,!(!e.config||e.hasArcType())&&e.unselectRect()})},clickHandlerForMultipleXS(t){const e=t,{config:n,state:a}=e,i=e.filterTargetsToShow(e.data.targets);if(e.hasArcType(i))return;const s=zn(a.event,this),o=e.findClosestFromTargets(i,s),l=n.point_sensitivity==="radius"?o.r:n.point_sensitivity;o&&(e.isBarType(o.id)||e.dist(o,s)+t;var Py={generateFlow(t){const e=this,{data:n,state:a,$el:i}=e;return function(){const s=t.flow.length;a.flowing=!0,n.targets.forEach(l=>{l.values.splice(0,s)}),e.updateXGrid&&e.updateXGrid(!0);const o={};["axis.x","grid.x","gridLines.x","region.list","text","bar","line","area","circle"].forEach(l=>{const c=l.split(".");let u=i[c[0]];u&&c.length>1&&(u=u[c[1]]),u!=null&&u.size()&&(o[l]=u)}),e.hideGridFocus(),e.setFlowList(o,t)}},setFlowList(t,e){const n=this,{flow:a,targets:i}=e,{duration:s=e.duration,index:o,length:l,orgDataCount:c}=a,u=n.getFlowTransform(i,c,o,l),g=ql();let v;g.add(Object.keys(t).map(m=>(v=t[m].transition().ease(Cy).duration(s),m==="axis.x"?v=v.call(S=>{n.axis.x.setTransition(S).create(S)}):m==="region.list"?v=v.filter(n.isRegionOnX).attr("transform",u):v=v.attr("transform",u),v))),v.call(g,()=>{n.cleanUpFlow(t,e)})},cleanUpFlow(t,e){const n=this,{config:a,state:i,$el:{svg:s}}=n,o=a.axis_rotated,{flow:l,shape:c,xv:u}=e,{cx:g,cy:v,xForText:m,yForText:S}=c.pos,{done:I=()=>{},length:N}=l;N&&(["circle","text","shape","eventRect"].forEach(M=>{const P=[];for(let G=0;G{const P=t[M];if(M!=="axis.x"&&P.attr("transform",null),M==="grid.x")P.attr(i.xgridAttr);else if(M==="gridLines.x")P.attr("x1",o?0:u).attr("x2",o?i.width:u),P.select("text").attr("x",o?i.width:0).attr("y",u);else if(/^(area|bar|line)$/.test(M))P.attr("d",c.type[M]);else if(M==="text")P.attr("x",m).attr("y",S).style("fill-opacity",n.opacityForText.bind(n));else if(M==="circle")if(n.isCirclePoint())P.attr("cx",g).attr("cy",v);else{const G=Y=>g(Y)-a.point_r,H=Y=>v(Y)-a.point_r;P.attr("x",G).attr("y",H)}else M==="region.list"&&P.select("rect").filter(n.isRegionOnX).attr("x",n.regionX.bind(n)).attr("width",n.regionWidth.bind(n))}),a.interaction_enabled&&n.redrawEventRect(),I.call(n.api),i.flowing=!1},getFlowTransform(t,e,n,a){const i=this,{data:s,scale:{x:o}}=i,l=s.targets[0].values;let c=i.getValueOnIndex(l,n),u=i.getValueOnIndex(l,n+a),g;const v=o.domain(),m=i.updateXDomain(t,!0,!0);e?e===1||(c==null?void 0:c.x)===(u==null?void 0:u.x)?g=o(v[0])-o(m[0]):g=i.axis.isTimeSeries()?o(v[0])-o(m[0]):o((c==null?void 0:c.x)||0)-o(u.x):l.length!==1?g=o(v[0])-o(m[0]):i.axis.isTimeSeries()?(c=i.getValueOnIndex(l,0),u=i.getValueOnIndex(l,l.length-1),g=o(c.x)-o(u.x)):g=Ir(m)/2;const S=Ir(v)/Ir(m);return`translate(${g},0) scale(${S},1)`}},wy={initClip(){const t=this,{clip:e,datetimeId:n}=t.state;e.id=`${n}-clip`,e.idXAxis=`${e.id}-xaxis`,e.idYAxis=`${e.id}-yaxis`,e.idGrid=`${e.id}-grid`,e.path=t.getClipPath(e.id),e.pathXAxis=t.getClipPath(e.idXAxis),e.pathYAxis=t.getClipPath(e.idYAxis),e.pathGrid=t.getClipPath(e.idGrid)},getClipPath(t){const e=this,{config:n}=e;return!n.clipPath&&/-clip$/.test(t)||!n.axis_x_clipPath&&/-clip-xaxis$/.test(t)||!n.axis_y_clipPath&&/-clip-yaxis$/.test(t)?null:`url(#${t})`},appendClip(t,e){e&&t.append("clipPath").attr("id",e).append("rect")},setXAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?0:20),c=(o?a.top+s+10:a.bottom)+20,u=o?-(1+l):-(l-1),g=-15,v=o?a.left+20:i+10+l;t.attr("x",u).attr("y",g).attr("width",v).attr("height",c)},setYAxisClipPath(t){const e=this,{config:n,state:{margin:a,width:i,height:s}}=e,o=n.axis_rotated,l=Math.max(30,a.left)-(o?20:0),c=n.axis_y_inner,u=c&&!o?n.axis_y_label.text?-20:-1:o?-(1+l):-(l-1),g=-(o?20:a.top),v=(o?i+15+l:a.left+20)+(c?20:0),m=(o?a.bottom+10:a.top+s)+10;t.attr("x",u).attr("y",g).attr("width",v).attr("height",m)},updateXAxisTickClip(){const t=this,{config:e,state:{clip:n,xAxisHeight:a},$el:{defs:i}}=t,s=t.getHorizontalAxisHeight("x");if(i&&!n.idXAxisTickTexts){const o=`${n.id}-xaxisticktexts`;t.appendClip(i,o),n.pathXAxisTickTexts=t.getClipPath(n.idXAxisTickTexts),n.idXAxisTickTexts=o}!e.axis_x_tick_multiline&&t.getAxisTickRotate("x")&&s!==a&&(t.setXAxisTickClipWidth(),t.setXAxisTickTextClipPathWidth()),t.state.xAxisHeight=s},setXAxisTickClipWidth(){const t=this,{config:e,state:{current:{maxTickSize:n}}}=t,a=t.getAxisTickRotate("x");if(!e.axis_x_tick_multiline&&a){const i=Math.sin(Math.PI/180*Math.abs(a));n.x.clipPath=(t.getHorizontalAxisHeight("x")-20)/i}else n.x.clipPath=null},setXAxisTickTextClipPathWidth(){const t=this,{state:{clip:e,current:n},$el:{svg:a}}=t;a&&a.select(`#${e.idXAxisTickTexts} rect`).attr("width",n.maxTickSize.x.clipPath).attr("height",30)}};const My=t=>Ie(t.position)||"end",Ly=t=>t.position==="start"?4:t.position==="middle"?0:-4;function Ou(t,e,n){return a=>{let i=t?0:e;return a.position==="start"?i=t?-n:0:a.position==="middle"&&(i=(t?-n:e)/2),i}}function Iu(t,e){e==="grid"&&t.each(function(){const n=st(this);["x1","x2","y1","y2"].forEach(a=>n.attr(a,Math.ceil(+n.attr(a))))})}var Dy={hasGrid(){const{config:t}=this;return["x","y"].some(e=>t[`grid_${e}_show`]||t[`grid_${e}_lines`].length)},initGrid(){const t=this;t.hasGrid()&&t.initGridLines(),t.initFocusGrid()},initGridLines(){const t=this,{config:e,state:{clip:n},$el:a}=t;(e.grid_x_lines.length||e.grid_y_lines.length)&&(a.gridLines.main=a.main.insert("g",`.${Se.chart}${e.grid_lines_front?" + *":""}`).attr("clip-path",n.pathGrid).attr("class",`${qe.grid} ${qe.gridLines}`),a.gridLines.main.append("g").attr("class",qe.xgridLines),a.gridLines.main.append("g").attr("class",qe.ygridLines),a.gridLines.x=Fc([]))},updateXGrid(t){const e=this,{config:n,scale:a,state:i,$el:{main:s,grid:o}}=e,l=n.axis_rotated,c=e.generateGridData(n.grid_x_type,a.x),u=e.axis.isCategorized()?e.axis.x.tickOffset():0,g=v=>(a.zoom||a.x)(v)+u*(l?-1:1);i.xgridAttr=l?{x1:0,x2:i.width,y1:g,y2:g}:{x1:g,x2:g,y1:0,y2:i.height},o.x=s.select(`.${qe.xgrids}`).selectAll(`.${qe.xgrid}`).data(c),o.x.exit().remove(),o.x=o.x.enter().append("line").attr("class",qe.xgrid).merge(o.x),t||o.x.each(function(){const v=st(this);Object.keys(i.xgridAttr).forEach(m=>{v.attr(m,i.xgridAttr[m]).style("opacity",()=>v.attr(l?"y1":"x1")===(l?i.height:0)?"0":null)})})},updateYGrid(){const t=this,{axis:e,config:n,scale:a,state:i,$el:{grid:s,main:o}}=t,l=n.axis_rotated,c=g=>Math.ceil(a.y(g)),u=e.y.getGeneratedTicks(n.grid_y_ticks)||t.scale.y.ticks(n.grid_y_ticks);s.y=o.select(`.${qe.ygrids}`).selectAll(`.${qe.ygrid}`).data(u),s.y.exit().remove(),s.y=s.y.enter().append("line").attr("class",qe.ygrid).merge(s.y),s.y.attr("x1",l?c:0).attr("x2",l?c:i.width).attr("y1",l?0:c).attr("y2",l?i.height:c),Iu(s.y,"grid")},updateGrid(){const t=this,{$el:{grid:e,gridLines:n}}=t;!n.main&&t.initGridLines(),e.main.style("visibility",t.hasArcType()?"hidden":null),t.hideGridFocus(),t.updateGridLines("x"),t.updateGridLines("y")},updateGridLines(t){const e=this,{config:n,$el:{gridLines:a,main:i},$T:s}=e,o=n.axis_rotated,l=t==="x";n[`grid_${t}_show`]&&e[`update${t.toUpperCase()}Grid`]();let c=i.select(`.${qe[`${t}gridLines`]}`).selectAll(`.${qe[`${t}gridLine`]}`).data(n[`grid_${t}_lines`]);s(c.exit()).style("opacity","0").remove();const u=c.enter().append("g");u.append("line").style("opacity","0"),c=u.merge(c),c.each(function(g){const v=st(this);v.select("text").empty()&&g.text&&v.append("text").style("opacity","0")}),s(c.attr("class",g=>`${qe[`${t}gridLine`]} ${g.class||""}`.trim()).select("text").attr("text-anchor",My).attr("transform",()=>l?o?null:"rotate(-90)":o?"rotate(-90)":null).attr("dx",Ly).attr("dy",-5)).text(function(g){var v;return(v=g.text)!=null?v:this.remove()}),a[t]=c},redrawGrid(t){const e=this,{config:{axis_rotated:n},state:{width:a,height:i},$el:{gridLines:s},$T:o}=e,l=e.xv.bind(e),c=e.yv.bind(e);let u=s.x.select("line"),g=s.x.select("text"),v=s.y.select("line"),m=s.y.select("text");return u=o(u,t).attr("x1",n?0:l).attr("x2",n?a:l).attr("y1",n?l:0).attr("y2",n?l:i),g=o(g,t).attr("x",Ou(!n,a,i)).attr("y",l),v=o(v,t).attr("x1",n?c:0).attr("x2",n?c:a).attr("y1",n?0:c).attr("y2",n?i:c),m=o(m,t).attr("x",Ou(n,a,i)).attr("y",c),[u.style("opacity",null),g.style("opacity",null),v.style("opacity",null),m.style("opacity",null)]},initFocusGrid(){const t=this,{config:e,state:{clip:n},$el:a}=t,i=e.grid_front,s=`.${i&&a.gridLines.main?qe.gridLines:Se.chart}${i?" + *":""}`,o=a.main.insert("g",s).attr("clip-path",n.pathGrid).attr("class",qe.grid);if(a.grid.main=o,e.grid_x_show&&o.append("g").attr("class",qe.xgrids),e.grid_y_show&&o.append("g").attr("class",qe.ygrids),e.axis_tooltip){const l=o.append("g").attr("class","bb-axis-tooltip");l.append("line").attr("class","bb-axis-tooltip-x"),l.append("line").attr("class","bb-axis-tooltip-y")}e.interaction_enabled&&e.grid_focus_show&&!e.axis_tooltip&&(o.append("g").attr("class",We.xgridFocus).append("line").attr("class",We.xgridFocus),e.grid_focus_y&&!e.tooltip_grouped&&o.append("g").attr("class",We.ygridFocus).append("line").attr("class",We.ygridFocus))},showAxisGridFocus(){var t,e;const n=this,{config:a,format:i,state:{event:s,width:o,height:l}}=n,c=a.axis_rotated,[u,g]=zn(s,(t=n.$el.eventRect)==null?void 0:t.node()),v={x:u,y:g};for(const[m,S]of Object.entries(n.$el.axisTooltip)){const I=m==="x"&&!c||m!=="x"&&c?"x":"y",N=v[I];let M=(e=n.scale[m])==null?void 0:e.invert(N);M&&(M=m==="x"&&n.axis.isTimeSeries()?i.xAxisTick(M):M==null?void 0:M.toFixed(2),S==null||S.attr(I,N).text(M))}n.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility",null).each(function(m,S){const I=st(this);S===0?I.attr("x1",u).attr("x2",u).attr("y1",S?0:l).attr("y2",S?l:0):I.attr("x1",S?0:o).attr("x2",S?o:0).attr("y1",g).attr("y2",g)})},hideAxisGridFocus(){const t=this;t.$el.main.selectAll("line.bb-axis-tooltip-x, line.bb-axis-tooltip-y").style("visibility","hidden"),Object.values(t.$el.axisTooltip).forEach(e=>e==null?void 0:e.style("display","none"))},showGridFocus(t){var e;const n=this,{config:a,state:{width:i,height:s}}=n,o=a.axis_rotated,l=n.$el.main.selectAll(`line.${We.xgridFocus}, line.${We.ygridFocus}`),c=(t||[l.datum()]).filter(v=>v&&Ie(n.getBaseValue(v)));if(!a.tooltip_show||c.length===0||!a.axis_x_forceAsSingle&&n.hasType("bubble")||n.hasArcType())return;const u=a.grid_focus_edge&&!a.tooltip_grouped,g=n.xx.bind(n);l.style("visibility",null).data(c.concat(c)).each(function(v){const m=st(this),S={x:g(v),y:n.getYScaleById(v.id)(v.value)};let I;if(m.classed(We.xgridFocus))I=o?[null,S.x,u?S.y:i,S.x]:[S.x,u?S.y:null,S.x,s];else{const N=n.axis.getId(v.id)==="y2";I=o?[S.y,u&&!N?S.x:null,S.y,u&&N?S.x:s]:[u&&N?S.x:null,S.y,u&&!N?S.x:i,S.y]}["x1","y1","x2","y2"].forEach((N,M)=>m.attr(N,I[M]))}),Iu(l,"grid"),(e=n.showCircleFocus)==null||e.call(n,t)},hideGridFocus(){var t;const e=this,{state:{inputType:n,resizing:a},$el:{main:i}}=e;(n==="mouse"||!a)&&(i.selectAll(`line.${We.xgridFocus}, line.${We.ygridFocus}`).style("visibility","hidden"),(t=e.hideCircleFocus)==null||t.call(e))},updateGridFocus(){var t;const e=this,{state:{inputType:n,width:a,height:i,resizing:s},$el:{grid:o}}=e,l=o.main.select(`line.${We.xgridFocus}`);if(n==="touch")l.empty()?s&&((t=e.showCircleFocus)==null||t.call(e)):e.showGridFocus();else{const c=e.config.axis_rotated;l.attr("x1",c?0:-10).attr("x2",c?a:-10).attr("y1",c?-10:0).attr("y2",c?-10:i)}return!0},generateGridData(t,e){const n=this,a=n.$el.main.select(`.${on.axisX}`).selectAll(".tick").size();let i=[];if(t==="year"){const s=n.getXDomain(),[o,l]=s.map(c=>c.getFullYear());for(let c=o;c<=l;c++)i.push(new Date(`${c}-01-01 00:00:00`))}else i=e.ticks(10),i.length>a&&(i=i.filter(s=>String(s).indexOf(".")<0));return i},getGridFilterToRemove(t){return t?e=>{let n=!1;return(Fe(t)?t.concat():[t]).forEach(a=>{("value"in a&&e.value===a.value||"class"in a&&e.class===a.class)&&(n=!0)}),n}:()=>!0},removeGridLines(t,e){const n=this,{config:a,$T:i}=n,s=n.getGridFilterToRemove(t),o=g=>!s(g),l=e?qe.xgridLines:qe.ygridLines,c=e?qe.xgridLine:qe.ygridLine;i(n.$el.main.select(`.${l}`).selectAll(`.${c}`).filter(s)).style("opacity","0").remove();const u=`grid_${e?"x":"y"}_lines`;a[u]=a[u].filter(o)}},Ny={initRegion(){const t=this,{$el:e}=t;e.region.main=e.main.insert("g",":first-child").attr("clip-path",t.state.clip.path).attr("class",$a.regions)},updateRegion(){const t=this,{config:e,$el:{region:n},$T:a}=t;n.main||t.initRegion(),n.main.style("visibility",t.hasArcType()?"hidden":null);const i=n.main.selectAll(`.${$a.region}`).data(e.regions);a(i.exit()).style("opacity","0").remove();const s=i.enter().append("g");s.append("rect").style("fill-opacity","0"),n.list=s.merge(i).attr("class",t.classRegion.bind(t)),n.list.each(function(o){var l;st(this).select("text").empty()&&((l=o.label)!=null&&l.text)&&st(this).append("text").style("opacity","0")})},redrawRegion(t){const e=this,{$el:{region:n},$T:a}=e;let i=n.list.select("rect"),s=n.list.selectAll("text");return i=a(i,t).attr("x",e.regionX.bind(e)).attr("y",e.regionY.bind(e)).attr("width",e.regionWidth.bind(e)).attr("height",e.regionHeight.bind(e)),s=a(s,t).attr("transform",o=>{var l;const{x:c=0,y:u=0,rotated:g=!1}=(l=o.label)!=null?l:{};return`translate(${e.regionX.bind(e)(o)+c}, ${e.regionY.bind(e)(o)+u})${g?" rotate(-90)":""}`}).attr("text-anchor",o=>{var l;return(l=o.label)!=null&&l.rotated?"end":null}).attr("dy","1em").style("fill",o=>{var l,c;return(c=(l=o.label)==null?void 0:l.color)!=null?c:null}).text(o=>{var l;return(l=o.label)==null?void 0:l.text}),[i.style("fill-opacity",o=>Ie(o.opacity)?o.opacity:null).on("end",function(){st(this.parentNode).selectAll("rect:not([x])").remove()}),s.style("opacity",null)]},getRegionXY(t,e){const n=this,{config:a,scale:i}=n,s=a.axis_rotated,o=t==="x";let l="start",c,u=0;return e.axis==="y"||e.axis==="y2"?(o||(l="end"),(o?s:!s)&&l in e&&(c=i[e.axis],u=c(e[l]))):(o?!s:s)&&l in e&&(c=i.zoom||i.x,u=c(n.axis.isTimeSeries()?Dn.call(n,e[l]):e[l])),u},regionX(t){return this.getRegionXY("x",t)},regionY(t){return this.getRegionXY("y",t)},getRegionSize(t,e){const n=this,{config:a,scale:i,state:s}=n,o=a.axis_rotated,l=t==="width",c=n[l?"regionX":"regionY"](e);let u,g="end",v=s[t];return e.axis==="y"||e.axis==="y2"?(l||(g="start"),(l?o:!o)&&g in e&&(u=i[e.axis],v=u(e[g]))):(l?!o:o)&&g in e&&(u=i.zoom||i.x,v=u(n.axis.isTimeSeries()?Dn.call(n,e[g]):e[g])),v0&&(!i.axis_x_tick_autorotate||a.needToRotateXAxisTickTexts());return(i.axis_x_tick_multiline||M)&&N.height>S&&(I+=N.height-S),I+(a.axis.getLabelPositionById(t).isInner?0:10)+(t==="y2"&&!u?-10:0)},getEventRectWidth(){const t=this,{config:e,axis:n}=t,a=e.axis_x_inverted,i=n.x.tickInterval();return Math.max(0,a?Math.abs(i):i)},getAxisTickRotate(t){const e=this,{axis:n,config:a,state:i,$el:s}=e;let o=a[`axis_${t}_tick_rotate`];if(t==="x"){const l=n.isCategorized()||n.isTimeSeries();if(a.axis_x_tick_fit&&l){const c=a.axis_x_tick_count,u=i.current.maxTickSize.x.ticks.length;let g=0;if(c?g=c>u?u:c:u&&(g=u),g!==i.axis.x.tickCount){const{targets:v}=e.data;i.axis.x.padding=e.getXDomainPadding([e.getXDomainMinMax(v,"min"),e.getXDomainMinMax(v,"max")],g)}i.axis.x.tickCount=g}s.svg&&a.axis_x_tick_autorotate&&a.axis_x_tick_fit&&!a.axis_x_tick_multiline&&!a.axis_x_tick_culling&&l&&(o=e.needToRotateXAxisTickTexts()?a.axis_x_tick_rotate:0)}return o},needToRotateXAxisTickTexts(){const t=this,{state:{axis:e,current:n,isLegendRight:a,legendItemWidth:i}}=t,s=a&&i,o=n.width-s-t.getCurrentPaddingByDirection("left")-t.getCurrentPaddingByDirection("right"),l=e.x.tickCount+e.x.padding.left+e.x.padding.right,{width:c}=t.axis.getMaxTickSize("x"),u=l?o/l:0;return c>u}},By={axis_x_clipPath:!0,axis_x_show:!0,axis_x_forceAsSingle:!1,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_culling_lines:!0,axis_x_tick_count:void 0,axis_x_tick_show:!0,axis_x_tick_text_show:!0,axis_x_tick_text_inner:!1,axis_x_tick_text_position:{x:0,y:0},axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_autorotate:!1,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_width:null,axis_x_tick_tooltip:!1,axis_x_max:void 0,axis_x_min:void 0,axis_x_inverted:!1,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_axes:[]},Uy={axis_y_clipPath:!0,axis_y_show:!0,axis_y_type:"indexed",axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:!1,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_culling:!1,axis_y_tick_culling_max:5,axis_y_tick_culling_lines:!0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_show:!0,axis_y_tick_stepSize:null,axis_y_tick_text_show:!0,axis_y_tick_text_position:{x:0,y:0},axis_y_tick_time_value:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y_axes:[]},zy={axis_y2_show:!1,axis_y2_type:"indexed",axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:!1,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_culling:!1,axis_y2_tick_culling_max:5,axis_y2_tick_culling_lines:!0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_rotate:0,axis_y2_tick_count:void 0,axis_y2_tick_show:!0,axis_y2_tick_stepSize:null,axis_y2_tick_text_show:!0,axis_y2_tick_text_position:{x:0,y:0},axis_y2_padding:{},axis_y2_default:void 0,axis_y2_axes:[]},jy=Object.defineProperty,Cu=Object.getOwnPropertySymbols,Gy=Object.prototype.hasOwnProperty,Vy=Object.prototype.propertyIsEnumerable,Pu=(t,e,n)=>e in t?jy(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yo=(t,e)=>{for(var n in e||(e={}))Gy.call(e,n)&&Pu(t,n,e[n]);if(Cu)for(var n of Cu(e))Vy.call(e,n)&&Pu(t,n,e[n]);return t},Xy=yo(yo(yo({axis_rotated:!1,axis_tooltip:!1},By),Uy),zy),Yy={grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:void 0,grid_focus_edge:!1,grid_focus_show:!0,grid_focus_y:!1,grid_front:!1,grid_lines_front:!0},Hy={data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_axes:{},data_regions:{},data_stack_normalize:!1};const Wy=[ay,iy,sy,oy,ly,cy,uy],wu={axis:Ry,clip:wy,eventrect:Iy,flow:Py,grid:Dy,region:Ny,sizeAxis:Fy},Mu={optDataAxis:Hy,optAxis:Xy,optGrid:Yy};var b1=Array.prototype.slice;function xo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Pe(t){return function(){return t}}function Ky(t,e){return et?1:e>=t?0:NaN}function Zy(t){return t}function ky(){var t=Zy,e=Ky,n=null,a=Pe(0),i=Pe(Ui),s=Pe(0);function o(l){var c,u=(l=xo(l)).length,g,v,m=0,S=new Array(u),I=new Array(u),N=+a.apply(this,arguments),M=Math.min(Ui,Math.max(-Ui,i.apply(this,arguments)-N)),P,G=Math.min(Math.abs(M)/u,s.apply(this,arguments)),H=G*(M<0?-1:1),Y;for(c=0;c0&&(m+=Y);for(e!=null?S.sort(function(_,K){return e(I[_],I[K])}):n!=null&&S.sort(function(_,K){return n(l[_],l[K])}),c=0,v=m?(M-u*H)/m:0;c0?Y*v:0)+H,I[g]={data:l[g],index:c,value:Y,startAngle:N,endAngle:P,padAngle:G};return I}return o.value=function(l){return arguments.length?(t=typeof l=="function"?l:Pe(+l),o):t},o.sortValues=function(l){return arguments.length?(e=l,n=null,o):e},o.sort=function(l){return arguments.length?(n=l,e=null,o):n},o.startAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Pe(+l),o):a},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Pe(+l),o):i},o.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:Pe(+l),o):s},o}var Jy=Math.pow;const To=Math.PI,$o=2*To,Br=1e-6,Qy=$o-Br;function Lu(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Lu;const n=Jy(10,e);return function(a){this._+=a[0];for(let i=1,s=a.length;iBr)if(!(Math.abs(v*c-u*g)>Br)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let S=a-o,I=i-l,N=c*c+u*u,M=S*S+I*I,P=Math.sqrt(N),G=Math.sqrt(m),H=s*Math.tan((To-Math.acos((N+m-M)/(2*P*G)))/2),Y=H/G,_=H/P;Math.abs(Y-1)>Br&&this._append`L${e+Y*g},${n+Y*v}`,this._append`A${s},${s},0,0,${+(v*S>g*I)},${this._x1=e+_*c},${this._y1=n+_*u}`}}arc(e,n,a,i,s,o){if(e=+e,n=+n,a=+a,o=!!o,a<0)throw new Error(`negative radius: ${a}`);let l=a*Math.cos(i),c=a*Math.sin(i),u=e+l,g=n+c,v=1^o,m=o?i-s:s-i;this._x1===null?this._append`M${u},${g}`:(Math.abs(this._x1-u)>Br||Math.abs(this._y1-g)>Br)&&this._append`L${u},${g}`,a&&(m<0&&(m=m%$o+$o),m>Qy?this._append`A${a},${a},0,1,${v},${e-l},${n-c}A${a},${a},0,1,${v},${this._x1=u},${this._y1=g}`:m>Br&&this._append`A${a},${a},0,${+(m>=To)},${v},${this._x1=e+a*Math.cos(s)},${this._y1=n+a*Math.sin(s)}`)}rect(e,n,a,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${a=+a}v${+i}h${-a}Z`}toString(){return this._}}function qy(){return new Hi}qy.prototype=Hi.prototype;function E1(t=3){return new Hi(+t)}function So(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const a=Math.floor(n);if(!(a>=0))throw new RangeError(`invalid digits: ${n}`);e=a}return t},()=>new Hi(e)}function tx(t){return t.innerRadius}function ex(t){return t.outerRadius}function nx(t){return t.startAngle}function rx(t){return t.endAngle}function ax(t){return t&&t.padAngle}function ix(t,e,n,a,i,s,o,l){var c=n-t,u=a-e,g=o-i,v=l-s,m=v*c-g*u;if(!(m*mk*k+Et*Et&&($t=vt,At=gt),{cx:$t,cy:At,x01:-g,y01:-v,x11:$t*(i/_-1),y11:At*(i/_-1)}}function Du(){var t=tx,e=ex,n=Pe(0),a=null,i=nx,s=rx,o=ax,l=null,c=So(u);function u(){var g,v,m=+t.apply(this,arguments),S=+e.apply(this,arguments),I=i.apply(this,arguments)-Bi,N=s.apply(this,arguments)-Bi,M=Vc(N-I),P=N>I;if(l||(l=g=c()),STn))l.moveTo(0,0);else if(M>Ui-Tn)l.moveTo(S*Nr(I),S*Qn(I)),l.arc(0,0,S,I,N,!P),m>Tn&&(l.moveTo(m*Nr(N),m*Qn(N)),l.arc(0,0,m,N,I,P));else{var G=I,H=N,Y=I,_=N,K=M,at=M,$t=o.apply(this,arguments)/2,At=$t>Tn&&(a?+a.apply(this,arguments):ra(m*m+S*S)),vt=lo(Vc(S-m)/2,+n.apply(this,arguments)),gt=vt,Ft=vt,pt,k;if(At>Tn){var Et=Xc(At/m*Qn($t)),ut=Xc(At/S*Qn($t));(K-=Et*2)>Tn?(Et*=P?1:-1,Y+=Et,_-=Et):(K=0,Y=_=(I+N)/2),(at-=ut*2)>Tn?(ut*=P?1:-1,G+=ut,H-=ut):(at=0,G=H=(I+N)/2)}var Rt=S*Nr(G),jt=S*Qn(G),zt=m*Nr(_),Wt=m*Qn(_);if(vt>Tn){var Ht=S*Nr(H),ee=S*Qn(H),je=m*Nr(Y),Oe=m*Qn(Y),Ge;if(MTn?Ft>Tn?(pt=Wi(je,Oe,Rt,jt,S,Ft,P),k=Wi(Ht,ee,zt,Wt,S,Ft,P),l.moveTo(pt.cx+pt.x01,pt.cy+pt.y01),FtTn)||!(K>Tn)?l.lineTo(zt,Wt):gt>Tn?(pt=Wi(zt,Wt,Ht,ee,m,-gt,P),k=Wi(Rt,jt,je,Oe,m,-gt,P),l.lineTo(pt.cx+pt.x01,pt.cy+pt.y01),gte in t?sx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fx=(t,e)=>{for(var n in e||(e={}))cx.call(e,n)&&Fu(t,n,e[n]);if(Nu)for(var n of Nu(e))ux.call(e,n)&&Fu(t,n,e[n]);return t},dx=(t,e)=>ox(t,lx(e));function Bu(t=0){const e=this,{config:n,state:a}=e,i=e.hasMultiArcGauge(),s=a.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,o=t?Math.min(a.radiusExpanded*t-a.radius,s*.8-(1-t)*100):0;return{inner(l){const{innerRadius:c}=e.getRadius(l);return i?a.radius-s*(l.index+1):fe(c)?c:0},outer(l){const{outerRadius:c}=e.getRadius(l);let u;if(i)u=a.radius-s*l.index+o;else if(e.hasType("polar")&&!t)u=e.getPolarOuterRadius(l,c);else if(u=c,t){let{radiusExpanded:g}=a;a.radius!==c&&(g-=Math.abs(a.radius-c)),u=g*t}return u},corner(l,c){const{arc_cornerRadius_ratio:u=0,arc_cornerRadius:g=0}=n,{data:{id:v},value:m}=l;let S=0;return u?S=u*c:S=fe(g)?g:g.call(e.api,v,m,c),S}}}function Ao(t){return function(e){const n=({startAngle:i=0,endAngle:s=0,padAngle:o=0})=>({startAngle:i,endAngle:s,padAngle:o}),a=Kr(n(this._current),n(e));return this._current=e,function(i){const s=a(i),{data:o,index:l,value:c}=e;return t(dx(fx({},s),{data:o,index:l,value:c}))}}}var hx={initPie(){const t=this,{config:e}=t,n=e.data_type,a=e[`${n}_padding`],i=e[`${n}_startingAngle`]||0,s=(a?a*.01:e[`${n}_padAngle`])||0;t.pie=ky().startAngle(i).endAngle(i+2*Math.PI).padAngle(s).value(o=>{var l,c;return(c=(l=o.values)==null?void 0:l.reduce((u,g)=>u+g.value,0))!=null?c:o}).sort(t.getSortCompareFn.bind(t)(!0))},updateRadius(){const t=this,{config:e,state:n}=t,a=e.data_type,i=e[`${a}_padding`],s=e.gauge_width||e.donut_width,o=t.filterTargetsToShow(t.data.targets).length*e.gauge_arcs_minWidth;n.radiusExpanded=Math.min(n.arcWidth,n.arcHeight)/2*(t.hasMultiArcGauge()&&e.gauge_label_show?.85:1),n.radius=n.radiusExpanded*.95,n.innerRadiusRatio=s?(n.radius-s)/n.radius:.6,n.gaugeArcWidth=s||(o<=n.radius-n.innerRadius?n.radius-n.innerRadius:o<=n.radius?o:n.radius);const l=e.pie_innerRadius||(i?i*(n.innerRadiusRatio+.1):0);n.outerRadius=e.pie_outerRadius,n.innerRadius=t.hasType("donut")||t.hasType("gauge")?n.radius*n.innerRadiusRatio:l},getRadius(t){const e=this,n=t==null?void 0:t.data;let{innerRadius:a,outerRadius:i}=e.state;return!fe(a)&&n&&(a=a[n.id]||0),De(i)&&n&&n.id in i?i=i[n.id]:fe(i)||(i=e.state.radius),{innerRadius:a,outerRadius:i}},updateArc(){const t=this;t.updateRadius(),t.svgArc=t.getSvgArc(),t.svgArcExpanded=t.getSvgArcExpanded()},getArcLength(){const t=this,{config:e}=t,n=e.gauge_arcLength*3.6;let a=2*(n/360);return n<-360?a=-2:n>360&&(a=2),a*Math.PI},getStartingAngle(){const t=this,{config:e}=t,n=e.data_type,a=t.hasType("gauge")?e.gauge_fullCircle:!1,i=-1*Math.PI/2,s=Math.PI/2;let o=e[`${n}_startingAngle`]||0;return!a&&o<=i?o=i:!a&&o>=s?o=s:(o>Math.PI||o<-1*Math.PI)&&(o=Math.PI),o},updateAngle(t,e=!1){var n;const a=this,{config:i,state:s}=a,o=e&&a.hasType("gauge");let{pie:l}=a,c=t,u=!1;if(!i)return null;const g=a.getStartingAngle(),v=i.gauge_fullCircle||e&&!o?a.getArcLength():g*-2;if(c.data&&a.isGaugeType(c.data)&&!a.hasMultiArcGauge()){const{gauge_min:m,gauge_max:S}=i,I=a.getTotalDataSum(s.rendered),N=v*((I-m)/(S-m));l=l.startAngle(g).endAngle(N+g)}if(e===!1&&l(a.filterTargetsToShow()).forEach((m,S)=>{var I;!u&&m.data.id===((I=c.data)==null?void 0:I.id)&&(u=!0,c=m,c.index=S)}),isNaN(c.startAngle)&&(c.startAngle=0),isNaN(c.endAngle)&&(c.endAngle=c.startAngle),e||c.data&&(i.gauge_enforceMinMax||a.hasMultiArcGauge())){const{gauge_min:m,gauge_max:S}=i,I=e&&!o?a.getTotalDataSum(s.rendered):S,N=v/(I-m),M=(n=c.value)!=null?n:0,P=M{const l=e.updateAngle(o),c=a(l);let u=0;return l&&(u=i(l,c)),l?s.cornerRadius(u)(l):"M 0 0"}},getArc(t,e,n){return n||this.isArcType(t.data)?this.svgArc(t,e):"M 0 0"},redrawArcRangeText(){const t=this,{config:e,$el:{arcs:n},state:a,$T:i}=t,s=e.arc_rangeText_format,o=t.hasType("gauge")&&e.arc_rangeText_fixed;let l=e.arc_rangeText_values;if(l!=null&&l.length){const c=e.arc_rangeText_unit==="%",u=t.getTotalDataSum(a.rendered);c&&(l=l.map(m=>u/100*m));const g=t.pie(l).map((m,S)=>(m.index=S,m));let v=n.selectAll(`.${Be.arcRange}`).data(l);v.exit(),v=i(v.enter().append("text").attr("class",Be.arcRange).style("text-anchor","middle").style("pointer-events","none").style("opacity","0").text(m=>{const S=c?m/u*100:m;return de(s)?s(S):`${S}${c?"%":""}`}).merge(v)),(!a.rendered||a.rendered&&!o)&&u>0&&v.attr("transform",(m,S)=>t.transformForArcLabel(g[S],!0)),v.style("opacity",m=>!o&&(m>u||u===0)?"0":null)}},transformForArcLabel(t,e=!1){var n,a,i;const s=this,{config:o,state:{radiusExpanded:l}}=s,c=s.updateAngle(t,e);let u="";if(c){if(e||s.hasMultiArcGauge()){const g=Math.sin(c.endAngle-Math.PI/2),v=o.arc_rangeText_position;let m=Math.cos(c.endAngle-Math.PI/2)*(l+(e?5:25)),S=g*(l+15-Math.abs(g*10))+3;if(e&&v){const I=o.arc_rangeText_values,N=de(v)?v(I[t.index]):v;m+=(n=N==null?void 0:N.x)!=null?n:0,S+=(a=N==null?void 0:N.y)!=null?a:0}u=`translate(${m},${S})`}else if(!s.hasType("gauge")||s.data.targets.length>1){let{outerRadius:g}=s.getRadius(t);s.hasType("polar")&&(g=s.getPolarOuterRadius(t,g));const v=this.svgArc.centroid(c),[m,S]=v.map(M=>isNaN(M)?0:M),I=Math.sqrt(m*m+S*S);let N=(i=["donut","gauge","pie","polar"].filter(s.hasType.bind(s)).map(M=>o[`${M}_label_ratio`]))==null?void 0:i[0];N?N=de(N)?N.bind(s.api)(t,g,I):N:N=g&&(I?(36/g>.375?1.175-36/g:.8)*g/I:0),u=`translate(${m*N},${S*N})`}}return u},convertToArcData(t){return this.addName({id:"data"in t?t.data.id:t.id,value:t.value,ratio:this.getRatio("arc",t),index:t.index})},textForArcLabel(t){const e=this,n=e.hasType("gauge");e.shouldShowArcLabel()&&t.style("fill",e.updateTextColor.bind(e)).attr("filter",a=>e.updateTextBGColor.bind(e)(a,e.config.data_labels_backgroundColors)).each(function(a){var i;const s=st(this),o=e.updateAngle(a),l=e.getRatio("arc",o);if(e.meetsLabelThreshold(l,(i=["donut","gauge","pie","polar"].filter(e.hasType.bind(e)))==null?void 0:i[0])){const{value:u}=o||a,g=(e.getArcLabelFormat()||e.defaultArcValueFormat)(u,l,a.data.id).toString();wa(s,g,[-1,1],n)}else s.text("")})},expandArc(t){const e=this,{state:{transiting:n},$el:a}=e;if(n){const s=setInterval(()=>{n||(clearInterval(s),a.legend.selectAll(`.${We.legendItemFocused}`).size()>0&&e.expandArc(t))},10);return}const i=e.mapToTargetIds(t);a.svg.selectAll(e.selectorTargets(i,`.${Be.chartArc}`)).each(function(s){if(!e.shouldExpand(s.data.id))return;const o=e.getExpandConfig(s.data.id,"duration"),l=e.getSvgArcExpanded(e.getExpandConfig(s.data.id,"rate"));st(this).selectAll("path").transition().duration(o).attrTween("d",Ao(e.svgArcExpanded.bind(e))).transition().duration(o*2).attrTween("d",Ao(l.bind(e)))})},unexpandArc(t){const e=this,{state:{transiting:n},$el:{svg:a}}=e;if(n)return;const i=e.mapToTargetIds(t);a.selectAll(e.selectorTargets(i,`.${Be.chartArc}`)).selectAll("path").transition().duration(s=>e.getExpandConfig(s.data.id,"duration")).attrTween("d",Ao(e.svgArc.bind(e))),a.selectAll(`${Be.arc}`).style("opacity",null)},getExpandConfig(t,e){const n=this,{config:a}=n,i={duration:50,rate:.98};let s;return n.isDonutType(t)?s="donut":n.isGaugeType(t)?s="gauge":n.isPieType(t)&&(s="pie"),s?a[`${s}_expand_${e}`]:i[e]},shouldExpand(t){const e=this,{config:n}=e;return e.isDonutType(t)&&n.donut_expand||e.isGaugeType(t)&&n.gauge_expand||e.isPieType(t)&&n.pie_expand},shouldShowArcLabel(){const t=this,{config:e}=t;return["donut","gauge","pie","polar"].some(n=>t.hasType(n)&&e[`${n}_label_show`])},getArcLabelFormat(){const t=this,{config:e}=t;let n=a=>a;return["donut","gauge","pie","polar"].filter(t.hasType.bind(t)).forEach(a=>{n=e[`${a}_label_format`]}),de(n)?n.bind(t.api):n},updateTargetsForArc(t){const e=this,{$el:n}=e,a=e.hasType("gauge"),i=e.getChartClass("Arc"),s=e.getClass("arcs",!0),o=e.classFocus.bind(e),l=n.main.select(`.${Be.chartArcs}`),c=l.selectAll(`.${Be.chartArc}`).data(e.pie(t)).attr("class",g=>i(g)+o(g.data)),u=c.enter().append("g").attr("class",i).call(this.setCssRule(!1,`.${Be.chartArcs} text`,["pointer-events:none","text-anchor:middle"]));u.append("g").attr("class",s).merge(c),u.append("text").attr("dy",a&&!e.hasMultiTargets()?"-.1em":".35em").style("opacity","0").style("text-anchor",e.getStylePropValue("middle")).style("pointer-events",e.getStylePropValue("none")),n.text=l.selectAll(`.${Se.target} text`)},initArc(){const t=this,{$el:e}=t;e.arcs=e.main.select(`.${Se.chart}`).append("g").attr("class",Be.chartArcs).attr("transform",t.getTranslate("arc")),t.setArcTitle()},setArcTitle(t){const e=this,n=t||e.getArcTitle(),a=e.hasType("gauge");if(n){const i=a?Ln.chartArcsGaugeTitle:Be.chartArcsTitle;let s=e.$el.arcs.select(`.${i}`);s.empty()&&(s=e.$el.arcs.append("text").attr("class",i).style("text-anchor","middle")),a&&s.attr("dy","-0.3em"),wa(s,n,a?void 0:[-.6,1.35],!0)}},getArcTitle(){const t=this,e=t.hasType("donut")&&"donut"||t.hasType("gauge")&&"gauge";return e?t.config[`${e}_title`]:""},getArcTitleWithNeedleValue(){const t=this,{config:e,state:n}=t,a=t.getArcTitle();if(a&&t.config.arc_needle_show&&/{=[A-Z_]+}/.test(a)){let i=n.current.needle;return fe(i)||(i=e.arc_needle_value),bi(a,{NEEDLE_VALUE:fe(i)?i:0})}return!1},redrawArc(t,e,n){const a=this,{config:i,state:s,$el:{main:o}}=a,l=i.interaction_enabled,c=l&&i.data_selection_isselectable;let u=o.selectAll(`.${Be.arcs}`).selectAll(`.${Be.arc}`).data(a.arcData.bind(a));u.exit().transition().duration(e).style("opacity","0").remove(),u=u.enter().append("path").attr("class",a.getClass("arc",!0)).style("fill",g=>a.color(g.data)).style("cursor",g=>{var v;return(v=c==null?void 0:c.bind)!=null&&v.call(c,a.api)(g)?"pointer":null}).style("opacity","0").each(function(g){a.isGaugeType(g.data)&&(g.startAngle=i.gauge_startingAngle,g.endAngle=i.gauge_startingAngle),this._current=g}).merge(u),a.hasType("gauge")&&(a.updateGaugeMax(),a.hasMultiArcGauge()&&a.redrawArcGaugeLine()),u.attr("transform",g=>!a.isGaugeType(g.data)&&n?"scale(0)":"").style("opacity",function(g){return g===this._current?"0":null}).each(()=>{s.transiting=!0}).transition().duration(t).attrTween("d",function(g){const v=a.updateAngle(g);if(!v)return()=>"M 0 0";isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle);const m=Kr(this._current,v);return this._current=m(0),function(S){const I=m(S);return I.data=g.data,a.getArc(I,!0)}}).attr("transform",n?"scale(1)":"").style("fill",g=>{let v;return a.levelColor?(v=a.levelColor(g.data.values[0].value),i.data_colors[g.data.id]=v):v=a.color(g.data),v}).style("opacity",null).call($i,function(){if(a.levelColor){const g=st(this),v=g.datum(this._current);a.updateLegendItemColor(v.data.id,g.style("fill"))}s.transiting=!1,Ze(i.onrendered,a.api)}),l&&a.bindArcEvent(u),a.hasType("polar")&&a.redrawPolar(),a.hasType("gauge")&&a.redrawBackgroundArcs(),i.arc_needle_show&&a.redrawNeedle(),a.redrawArcText(t),a.redrawArcRangeText()},redrawNeedle(){const t=this,{$el:e,config:n,state:{hiddenTargetIds:a,radius:i}}=t,s=(i-1)/100*n.arc_needle_length,o=a.length!==t.data.targets.length;let l=t.$el.arcs.select(`.${Be.needle}`);const c=n.arc_needle_path,u=n.arc_needle_bottom_width/2,g=n.arc_needle_top_width/2,v=n.arc_needle_top_rx,m=n.arc_needle_top_ry,S=n.arc_needle_bottom_len,I=n.arc_needle_bottom_rx,N=n.arc_needle_bottom_ry,M=t.getNeedleAngle(),P=()=>{const G=t.getArcTitleWithNeedleValue();G&&t.setArcTitle(G)};if(P(),l.empty()&&(l=e.arcs.append("path").classed(Be.needle,!0),e.needle=l,e.needle.updateHelper=(G,H=!1)=>{e.needle.style("display")!=="none"&&t.$T(e.needle).style("transform",`rotate(${t.getNeedleAngle(G)}deg)`).call($i,()=>{H&&(n.arc_needle_value=G),P()})}),o){const G=de(c)?c.call(t,s):`M-${u} ${S} A${I} ${N} 0 0 0 ${u} ${S} L${g} -${s} A${v} ${m} 0 0 0 -${g} -${s} L-${u} ${S} Z`;t.$T(l).attr("d",G).style("fill",n.arc_needle_color).style("display",null).style("transform",`rotate(${M}deg)`)}else l.style("display","none")},getNeedleAngle(t){const e=this,{config:n,state:a}=e,i=e.getArcLength(),s=e.hasType("gauge"),o=e.getTotalDataSum(!0);let l=Xe(t)?t:n.arc_needle_value,c=n[`${n.data_type}_startingAngle`]||0,u=0;if(fe(l)||(l=s&&e.data.targets.length===1?o:0),a.current.needle=l,s){c=e.getStartingAngle();const g=n.gauge_fullCircle?i:c*-2,{gauge_min:v,gauge_max:m}=n;u=g*((l-v)/(m-v))}else u=i*(l/o);return(c+u)*(180/Math.PI)},redrawBackgroundArcs(){const t=this,{config:e,state:n}=t,a=t.hasMultiArcGauge(),i=e.gauge_fullCircle,s=t.filterTargetsToShow(t.data.targets).length===0&&!!e.data_empty_label_text,o=t.getStartingAngle(),l=i?o+t.getArcLength():o*-1;let c=t.$el.arcs.select(`${a?"g":""}.${Be.chartArcsBackground}`);if(a){let u=0;c=c.selectAll(`path.${Be.chartArcsBackground}`).data(t.data.targets),c.enter().append("path").attr("class",(g,v)=>`${Be.chartArcsBackground} ${Be.chartArcsBackground}-${v}`).merge(c).style("fill",e.gauge_background||null).attr("d",({id:g})=>{if(s||n.hiddenTargetIds.indexOf(g)>=0)return"M 0 0";const v={data:[{value:e.gauge_max}],startAngle:o,endAngle:l,index:u++};return t.getArc(v,!0,!0)}),c.exit().remove()}else c.attr("d",s?"M 0 0":()=>{const u={data:[{value:e.gauge_max}],startAngle:o,endAngle:l};return t.getArc(u,!0,!0)})},bindArcEvent(t){const e=this,{config:n,state:a}=e,i=a.inputType==="touch",s=a.inputType==="mouse";function o(c,u,g){e.expandArc(g),e.api.focus(g),e.toggleFocusLegend(g,!0),e.showTooltip([u],c)}function l(c){const u=(c==null?void 0:c.id)||void 0;e.unexpandArc(u),e.api.revert(),e.revertLegend(),e.hideTooltip()}if(t.on("click",function(c,u,g){var v;const m=e.updateAngle(u);let S;m&&(S=e.convertToArcData(m),(v=e.toggleShape)==null||v.call(e,this,S,g),n.data_onclick.bind(e.api)(S,this))}),s&&t.on("mouseover",function(c,u){if(a.transiting)return;a.event=c;const g=e.updateAngle(u),v=g?e.convertToArcData(g):null,m=(v==null?void 0:v.id)||void 0;o(this,v,m),e.setOverOut(!0,v)}).on("mouseout",(c,u)=>{if(a.transiting)return;a.event=c;const g=e.updateAngle(u),v=g?e.convertToArcData(g):null;l(),e.setOverOut(!1,v)}).on("mousemove",function(c,u){const g=e.updateAngle(u),v=g?e.convertToArcData(g):null;a.event=c,e.showTooltip([v],this)}),i&&e.hasArcType()&&!e.radars){const c=u=>{var g,v;const{clientX:m,clientY:S}=(v=(g=u.changedTouches)==null?void 0:g[0])!=null?v:{clientX:0,clientY:0};return st(fn.elementFromPoint(m,S))};e.$el.svg.on("touchstart touchmove",function(u){if(a.transiting)return;a.event=u;const v=c(u).datum(),m=v!=null&&v.data&&v.data.id?e.updateAngle(v):null,S=m?e.convertToArcData(m):null,I=(S==null?void 0:S.id)||void 0;e.callOverOutForTouch(S),en(I)?l():o(this,S,I)})}},redrawArcText(t){const e=this,{config:n,state:a,$el:{main:i,arcs:s}}=e,o=e.hasType("gauge"),l=e.hasMultiArcGauge();let c;if(o&&e.data.targets.length===1&&n.gauge_title||(c=i.selectAll(`.${Be.chartArc}`).select("text").style("opacity","0").attr("class",u=>e.isGaugeType(u.data)?Ln.gaugeValue:null).call(e.textForArcLabel.bind(e)).attr("transform",u=>e.transformForArcLabel.bind(e)(u)).style("font-size",u=>e.isGaugeType(u.data)&&e.data.targets.length===1&&!l?`${Math.round(a.radius/5)}px`:null).transition().duration(t).style("opacity",u=>e.isTargetToShow(u.data.id)&&e.isArcType(u.data)?null:"0"),l&&c.attr("dy","-.1em")),i.select(`.${Be.chartArcsTitle}`).style("opacity",e.hasType("donut")||o?null:"0"),o){const u=n.gauge_fullCircle;u&&(c==null||c.attr("dy",`${l?0:Math.round(a.radius/14)}`)),n.gauge_label_show&&(s.select(`.${Ln.chartArcsGaugeUnit}`).attr("dy",`${u?1.5:.75}em`).text(n.gauge_units),s.select(`.${Ln.chartArcsGaugeMin}`).attr("dx",`${-1*(a.innerRadius+(a.radius-a.innerRadius)/(u?1:2))}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_min,!1)),!u&&s.select(`.${Ln.chartArcsGaugeMax}`).attr("dx",`${a.innerRadius+(a.radius-a.innerRadius)/2}px`).attr("dy","1.2em").text(e.textForGaugeMinMax(n.gauge_max,!0)))}},getArcElementByIdOrIndex(t){const e=this,{$el:{arcs:n}}=e,a=fe(t)?i=>i.index===t:i=>i.data.id===t;return n==null?void 0:n.selectAll(`.${Se.target} path`).filter(a)}};function Uu(t){return t[0]}function zu(t){return t[1]}function ju(t,e){var n=Pe(!0),a=null,i=fo,s=null,o=So(l);t=typeof t=="function"?t:t===void 0?Uu:Pe(t),e=typeof e=="function"?e:e===void 0?zu:Pe(e);function l(c){var u,g=(c=xo(c)).length,v,m=!1,S;for(a==null&&(s=i(S=o())),u=0;u<=g;++u)!(u=S;--I)l.point(H[I],Y[I]);l.lineEnd(),l.areaEnd()}P&&(H[m]=+t(M,m,v),Y[m]=+e(M,m,v),l.point(a?+a(M,m,v):H[m],n?+n(M,m,v):Y[m]))}if(G)return l=null,G+""||null}function g(){return ju().defined(i).curve(o).context(s)}return u.x=function(v){return arguments.length?(t=typeof v=="function"?v:Pe(+v),a=null,u):t},u.x0=function(v){return arguments.length?(t=typeof v=="function"?v:Pe(+v),u):t},u.x1=function(v){return arguments.length?(a=v==null?null:typeof v=="function"?v:Pe(+v),u):a},u.y=function(v){return arguments.length?(e=typeof v=="function"?v:Pe(+v),n=null,u):e},u.y0=function(v){return arguments.length?(e=typeof v=="function"?v:Pe(+v),u):e},u.y1=function(v){return arguments.length?(n=v==null?null:typeof v=="function"?v:Pe(+v),u):n},u.lineX0=u.lineY0=function(){return g().x(t).y(e)},u.lineY1=function(){return g().x(t).y(n)},u.lineX1=function(){return g().x(a).y(e)},u.defined=function(v){return arguments.length?(i=typeof v=="function"?v:Pe(!!v),u):i},u.curve=function(v){return arguments.length?(o=v,s!=null&&(l=o(s)),u):o},u.context=function(v){return arguments.length?(v==null?s=l=null:l=o(s=v),u):s},u}var aa={initArea(t){const e=this,{config:n}=e;t.insert("g",`.${n.area_front?pn.circles:ar.lines}`).attr("class",e.getClass("areas",!0))},updateAreaColor(t){const e=this;return e.config.area_linearGradient?e.getGradienColortUrl(t.id):e.color(t)},updateArea(t,e=!1){const n=this,{config:a,state:i,$el:s,$T:o}=n,l=e?s.subchart:s;a.area_linearGradient&&n.updateLinearGradient();const c=l.main.selectAll(`.${qa.areas}`).selectAll(`.${qa.area}`).data(n.lineData.bind(n));o(c.exit(),t).style("opacity","0").remove(),l.area=c.enter().append("path").attr("class",n.getClass("area",!0)).style("fill",n.updateAreaColor.bind(n)).style("opacity",function(){return i.orgAreaOpacity=st(this).style("opacity"),"0"}).merge(c),c.style("opacity",i.orgAreaOpacity),n.setRatioForGroupedData(l.area.data())},redrawArea(t,e,n=!1){const a=this,{area:i}=n?this.$el.subchart:this.$el,{orgAreaOpacity:s}=a.state;return[a.$T(i,e,lr()).attr("d",t).style("fill",a.updateAreaColor.bind(a)).style("opacity",o=>String(a.isAreaRangeType(o)?s/1.75:s))]},generateDrawArea(t,e){const n=this,{config:a}=n,i=a.line_connectNull,s=a.axis_rotated,o=n.generateGetAreaPoints(t,e),l=n.getYScaleById.bind(n),c=v=>(e?n.subxx:n.xx).call(n,v),u=(v,m)=>n.isGrouped(v.id)?o(v,m)[0][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"high"):n.getShapeYMin(v.id)),g=(v,m)=>n.isGrouped(v.id)?o(v,m)[1][1]:l(v.id,e)(n.isAreaRangeType(v)?n.getRangedData(v,"low"):v.value);return v=>{let m=i?n.filterRemoveNull(v.values):v.values,S=0,I=0,N;if(n.isAreaType(v)){let M=gx();M=s?M.y(c).x0(u).x1(g):M.x(c).y0(a.area_above?0:a.area_below?n.state.height:u).y1(g),i||(M=M.defined(P=>n.getBaseValue(P)!==null)),n.isStepType(v)&&(m=n.convertValuesToStep(m)),N=M.curve(n.getCurve(v))(m)}else m[0]&&(S=n.scale.x(m[0].x),I=n.getYScaleById(v.id)(m[0].value)),N=s?`M ${I} ${S}`:`M ${S} ${I}`;return N||"M 0 0"}},generateGetAreaPoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(!!e),o=n.getShapeOffset(n.isAreaType,t,e),l=n.getYScaleById.bind(n);return function(c,u){const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,u)||g,m=i(c),S=c.value;let I=s(c);return a.axis_rotated&&(S>0&&Ig.values.some(v=>fe(v.value)||e.isBarRangeType(v)))).attr("class",g=>i(g)+o(g)).enter().append("g").attr("class",i).style("opacity","0").style("pointer-events",e.getStylePropValue("none")).append("g").attr("class",s).style("cursor",g=>{var v;return(v=l==null?void 0:l.bind)!=null&&v.call(l,e.api)(g)?"pointer":null}).call(e.setCssRule(!0,` .${Gn.bar}`,["fill"],e.color))},updateBar(t,e=!1){const n=this,{config:a,$el:i,$T:s}=n,o=e?i.subchart:i,l=n.getClass("bar",!0),c=n.initialOpacity.bind(n);a.bar_linearGradient&&n.updateLinearGradient();const u=o.main.selectAll(`.${Gn.bars}`).selectAll(`.${Gn.bar}`).data(n.labelishData.bind(n));s(u.exit(),t).style("opacity","0").remove(),o.bar=u.enter().append("path").attr("class",l).style("fill",n.updateBarColor.bind(n)).merge(u).style("opacity",c),n.setRatioForGroupedData(o.bar.data())},updateBarColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.bar_linearGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawBar(t,e,n=!1){const a=this,{bar:i}=n?a.$el.subchart:a.$el;return[a.$T(i,e,lr()).attr("d",s=>(fe(s.value)||a.isBarRangeType(s))&&t(s)).style("fill",a.updateBarColor.bind(a)).style("opacity",null)]},generateDrawBar(t,e){const n=this,{config:a}=n,i=n.generateGetBarPoints(t,e),s=a.axis_rotated,o=a.bar_radius,l=a.bar_radius_ratio,c=fe(o)&&o>0?()=>o:fe(l)?u=>u*l:null;return(u,g)=>{const v=i(u,g),m=+s,S=+!m,I=u.value<0,N=a[`axis_${n.axis.getId(u.id)}_inverted`],M=!N&&I||N&&!I,P=["",""];let G=0;const H=n.isGrouped(u.id),Y=c&&H?n.isStackingRadiusData(u):!1;if(c){const K=s?S:m,at=v[2][K]-v[0][K];G=!H||Y?c(at):0;const $t=`a${G},${G} ${M?"1 0 0":"0 0 1"} `;P[+!s]=`${$t}${G},${G}`,P[+s]=`${$t}${[-G,G][s?"sort":"reverse"]()}`,M&&P.reverse()}const _=s?`H${v[1][m]+(M?G:-G)} ${P[0]}V${v[2][S]-G} ${P[1]}H${v[3][m]}`:`V${v[1][S]+(M?-G:G)} ${P[0]}H${v[2][m]-G} ${P[1]}V${v[3][S]}`;return`M${v[0][m]},${v[0][S]}${_}z`}},isStackingRadiusData(t){const e=this,{$el:n,config:a,data:i,state:s}=e,{id:o,index:l,value:c}=t;if(s.hiddenTargetIds.indexOf(o)>-1){const m=n.bar.filter(S=>S.id===o&&S.value===c);return!m.empty()&&/a\d+/i.test(m.attr("d"))}const u=a.data_groups.find(m=>m.indexOf(o)>-1),v=e.orderTargets(e.filterTargetsToShow(i.targets.filter(e.isBarType,e))).filter(m=>u.indexOf(m.id)>-1).map(m=>m.values.filter(S=>S.index===l&&(fe(c)&&c>0?S.value>0:S.value<0))[0]).filter(Boolean).map(m=>m.id);return c!==0&&v.indexOf(o)===v.length-1},generateGetBarPoints(t,e){const n=this,{config:a}=n,i=e?n.axis.subX:n.axis.x,s=n.getIndicesMax(t)+1,o=n.getBarW("bar",i,s),l=n.getShapeX(o,t,!!e),c=n.getShapeY(!!e),u=n.getShapeOffset(n.isBarType,t,!!e),g=n.getYScaleById.bind(n);return(v,m)=>{const{id:S}=v,I=g.call(n,S,e)(n.getShapeYMin(S)),N=u(v,m)||I,M=fe(o)?o:o[v.id]||o._$width,P=a[`axis_${n.axis.getId(S)}_inverted`],G=v.value,H=l(v);let Y=c(v);a.axis_rotated&&!P&&(G>0&&Ye.isBubbleZType(o)?e.getBubbleZData(o.value,"y"):De(o.value)?o.value.mid:o.value)),i=n*n*Math.PI,s=(e.isBubbleZType(t)?e.getBubbleZData(t.value,"z"):t.value)*(i/a);return Math.sqrt(s/Math.PI)},getBubbleZData(t,e){return De(t)?t[e]:t[e==="y"?0:1]}},mx=Object.defineProperty,Gu=Object.getOwnPropertySymbols,yx=Object.prototype.hasOwnProperty,xx=Object.prototype.propertyIsEnumerable,Vu=(t,e,n)=>e in t?mx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Tx=(t,e)=>{for(var n in e||(e={}))yx.call(e,n)&&Vu(t,n,e[n]);if(Gu)for(var n of Gu(e))xx.call(e,n)&&Vu(t,n,e[n]);return t},$x={initCandlestick(){const{$el:t}=this;t.candlestick=t.main.select(`.${Se.chart}`).append("g").attr("class",rr.chartCandlesticks)},updateTargetsForCandlestick(t){const e=this,{$el:n}=e,a=e.getChartClass("Candlestick");n.candlestick||e.initCandlestick(),e.$el.main.select(`.${rr.chartCandlesticks}`).selectAll(`.${rr.chartCandlestick}`).data(t).enter().append("g").attr("class",a).style("pointer-events","none")},updateCandlestick(t,e=!1){const n=this,{$el:a,$T:i}=n,s=e?a.subchart:a,o=n.getClass("candlestick",!0),l=n.initialOpacity.bind(n),c=s.main.selectAll(`.${rr.chartCandlestick}`).selectAll(`.${rr.candlestick}`).data(n.labelishData.bind(n));i(c.exit(),t).style("opacity","0").remove();const u=c.enter().filter(g=>g.value).append("g").attr("class",o);u.append("line"),u.append("path"),s.candlestick=c.merge(u).style("opacity",l)},generateDrawCandlestick(t,e){const n=this,{config:a}=n,i=n.generateGetCandlestickPoints(t,e),s=a.axis_rotated,o=a.candlestick_color_down;return(l,c,u)=>{const g=i(l,c),v=n.getCandlestickData(l),m=v==null?void 0:v._isUp,S=+s,I=+!S;u.classed&&u.classed(rr[m?"valueUp":"valueDown"],!0);const N=s?`H${g[1][1]} V${g[1][0]} H${g[0][1]}`:`V${g[1][1]} H${g[1][0]} V${g[0][1]}`;u.select("path").attr("d",`M${g[0][S]},${g[0][I]}${N}z`).style("fill",G=>(m?n.color(G):De(o)?o[G.id]:o)||n.color(G));const M=u.select("line"),P=s?{x1:g[2][1],x2:g[2][2],y1:g[2][0],y2:g[2][0]}:{x1:g[2][0],x2:g[2][0],y1:g[2][1],y2:g[2][2]};for(const G in P)M.attr(G,P[G])}},generateGetCandlestickPoints(t,e=!1){const n=this,a=e?n.axis.subX:n.axis.x,i=n.getIndicesMax(t)+1,s=n.getBarW("candlestick",a,i),o=n.getShapeX(s,t,!!e),l=n.getShapeY(!!e),c=n.getShapeOffset(n.isBarType,t,!!e),u=n.getYScaleById.bind(n);return(g,v)=>{const m=u.call(n,g.id,e)(n.getShapeYMin(g.id)),S=c(g,v)||m,I=fe(s)?s:s[g.id]||s._$width,N=n.getCandlestickData(g);let M;if(N&&fe(N.open)&&fe(N.close)){const P={start:o(g),end:0};P.end=P.start+I;const G={start:l(N.open),end:l(N.close)},H={x:P.start+I/2,high:l(N.high),low:l(N.low)};G.start-=m-S,M=[[P.start,G.start],[P.end,G.end],[H.x,H.low,H.high]]}else M=[[0,0],[0,0],[0,0,0]];return M}},redrawCandlestick(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{candlestick:o}=n?i.subchart:i,l=lr(!0);return[o.each(function(c,u){const g=s(st(this),e,l);t(c,u,g)}).style("opacity",null)]},getCandlestickData({value:t}){let e;if(Fe(t)){const[n,a,i,s,o=!1]=t;e={open:n,high:a,low:i,close:s},o!==!1&&(e.volume=o)}else De(t)&&(e=Tx({},t));return e&&(e._isUp=e.close>=e.open),e||null}},Sx=Object.defineProperty,Xu=Object.getOwnPropertySymbols,Ax=Object.prototype.hasOwnProperty,bx=Object.prototype.propertyIsEnumerable,Yu=(t,e,n)=>e in t?Sx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ex=(t,e)=>{for(var n in e||(e={}))Ax.call(e,n)&&Yu(t,n,e[n]);if(Xu)for(var n of Xu(e))bx.call(e,n)&&Yu(t,n,e[n]);return t};function Ki(t=!1){const e=this,{config:n,state:{current:{width:a,height:i}}}=e,s=e.getCurrentPadding(),o=Ex({width:a-(s.left+s.right),height:i-(n.legend_show?e.getLegendHeight()+10:0)-(s.top+s.bottom)},s);if(t){const{width:l,height:c}=Hu.call(e,{width:o.width,height:o.height});o.width{let l=s;return De(s)&&(l=t[o?"height":"width"]*s.ratio),l}),{width:a,height:i}}function Rx(t){const e=this,{top:n,left:a,width:i}=Ki.call(e,!0),s=[];return t.forEach((o,l)=>{const{ratio:c}=o,u=l>0?s[l-1][2][1]:n;s.push(o.coords=[[a,u],[a+i,u],[a+i,l>0?c+u:c+n],[a,l>0?c+u:c+n],[a,u]])}),s}function Wu(t=!1){const e=this,{width:n,height:a,top:i,left:s}=Ki.call(e,!0),o=Hu.call(e,{width:n,height:a}),l=(n-o.width)/2,c=(n+o.width)/2,u=a-o.height,g=[[0,0],[n,0],[c,u],[c,a],[l,a],[l,u],[0,0]];return t&&g.forEach(v=>{v[0]+=s,v[1]+=i}),`M${g.join("L")}z`}function Ox(t){const e=this,{config:n}=e,a=t.map(i=>({id:i.id,value:i.values.reduce((s,o)=>s+o.value,0)}));return n.data_order&&a.sort(e.getSortCompareFn.bind(e)(!0)),Ku.call(e,a)}function Ku(t){const e=this,{height:n}=Ki.call(e),a=e.getTotalDataSum(!0);return t.forEach(i=>{i.ratio=i.value/a*n}),t}var Ix={initFunnel(){const t=this,{$el:e}=t;e.funnel=e.main.select(`.${Se.chart}`).append("g").classed(Ta.chartFunnels,!0),e.funnel.background=e.funnel.append("path").classed(Ta.funnelBackground,!0),t.bindFunnelEvent()},bindFunnelEvent(){const t=this,{$el:{funnel:e},config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^path$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c};if(n.interaction_enabled){const s=a.inputType==="touch";e.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.target),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);t.hideTooltip(),t.setOverOut(!1,l)})}},updateTargetsForFunnel(t){const e=this,{$el:{funnel:n}}=e,a=e.getChartClass("Funnel"),i=e.getClass("funnel",!0);n||e.initFunnel();const s=Ox.call(e,t.filter(e.isFunnelType.bind(e))),o=n.selectAll(`.${Ta.chartFunnel}`).data(s);o.exit().remove();const l=o.enter().insert("g",`.${Ta.funnelBackground}`);l.append("path"),n.path=l.merge(o).attr("class",c=>a(c)).select("path").attr("class",i).style("opacity","0").style("fill",e.color)},updateFunnel(t){const e=this,{$el:{funnel:n}}=e,a=t.map(({id:i})=>i);n.path=n.path.filter(i=>a.indexOf(i.id)>=0)},generateGetFunnelPoints(){const t=this,{$el:{funnel:e}}=t,n=t.filterTargetsToShow(e.path),{top:a,left:i,right:s}=Ki.call(t),o=(i-s)/2,l={};let c=a!=null?a:0;return n.each((u,g)=>{var v;l[u.id]=[[o,c],[o,c+=((v=n==null?void 0:n[g])!=null?v:u).ratio]]}),u=>l[u.id]},redrawFunnel(){const t=this,{$T:e,$el:{funnel:n}}=t,a=t.filterTargetsToShow(n.path),i=Rx.call(t,Ku.call(t,a.data()));n.attr("clip-path",`path('${Wu.bind(t)()}')`),n.background.attr("d",Wu.call(t,!0)),e(a).attr("d",(s,o)=>`M${i[o].join("L")}z`).style("opacity","1"),n.selectAll("g").style("opacity",null)}},Cx={initGauge(){const t=this,{config:e,$el:{arcs:n}}=t,a=(i=null,s="")=>{n.append("text").attr("class",i).style("text-anchor","middle").style("pointer-events","none").text(s)};if(t.hasType("gauge")){const i=t.hasMultiArcGauge();n.append(i?"g":"path").attr("class",Be.chartArcsBackground).style("fill",!i&&e.gauge_background||null),e.gauge_units&&a(Ln.chartArcsGaugeUnit),e.gauge_label_show&&(a(Ln.chartArcsGaugeMin),!e.gauge_fullCircle&&a(Ln.chartArcsGaugeMax))}},updateGaugeMax(){const t=this,{config:e,state:n}=t,i=t.hasMultiArcGauge()?t.getMinMaxData().max[0].value:t.getTotalDataSum(n.rendered);!e.gauge_enforceMinMax&&i+e.gauge_min*(e.gauge_min>0?-1:1)>e.gauge_max&&(e.gauge_max=i-e.gauge_min)},redrawArcGaugeLine(){const t=this,{config:e,state:n,$el:a}=t,{hiddenTargetIds:i}=t.state,s=a.main.selectAll(`.${Be.arcs}`).selectAll(`.${Be.arcLabelLine}`).data(t.arcData.bind(t));s.enter().append("rect").attr("class",l=>`${Be.arcLabelLine} ${Se.target} ${Se.target}-${l.data.id}`).merge(s).style("fill",l=>t.levelColor?t.levelColor(l.data.values[0].value):t.color(l.data)).style("display",e.gauge_label_show?null:"none").each(function(l){let c=0;const u=2;let g=0,v=0,m="";if(i.indexOf(l.data.id)<0){const S=t.updateAngle(l),I=n.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length*(S.index+1),N=S.endAngle-Math.PI/2,M=n.radius-I,P=N-(M===0?0:1/M);c=n.radiusExpanded-n.radius+I,g=Math.cos(P)*M,v=Math.sin(P)*M,m=`rotate(${N*180/Math.PI}, ${g}, ${v})`}st(this).attr("x",g).attr("y",v).attr("width",c).attr("height",u).attr("transform",m).style("stroke-dasharray",`0, ${c+u}, 0`)})},textForGaugeMinMax(t,e){const n=this,{config:a}=n,i=a.gauge_label_extents;return de(i)?i.bind(n.api)(t,e):t},getGaugeLabelHeight(){const{config:t}=this;return this.config.gauge_label_show&&!t.gauge_fullCircle?20:0},getPaddingBottomForGauge(){const t=this;return t.getGaugeLabelHeight()*(t.config.gauge_label_show?2:2.5)}};function Px(t,e,n,a=!1){const i=t?[t,0]:n;for(let s=t||n.reduce((o,l)=>o+l);s<=e;)n.forEach(o=>{s+o<=e&&i.push(o),s+=o});return i.length%2!==0&&i.push(a?n[1]:0),{dash:i.join(" "),length:i.reduce((s,o)=>s+o,0)}}function wx(t,e,n){const a=this,i=[],s="2 2";if(Xe(e)){const o=(l,c)=>en(l)?c:n?Dn.call(a,l):l;for(let l=0,c;c=e[l];l++){const u=o(c.start,t[0].x),g=o(c.end,t[t.length-1].x),v=c.style||{dasharray:s};i[l]={start:u,end:g,style:v}}}return i}var Mx={initLine(){const{$el:t}=this;t.line=t.main.select(`.${Se.chart}`).append("g").attr("class",ar.chartLines).call(this.setCssRule(!1,`.${ar.chartLines}`,["pointer-events:none"]))},updateTargetsForLine(t){const e=this,{$el:{area:n,line:a,main:i}}=e,s=e.getChartClass("Line"),o=e.getClass("lines",!0),l=e.classFocus.bind(e);a||e.initLine();const c=t.filter(v=>!(e.isScatterType(v)||e.isBubbleType(v))),u=i.select(`.${ar.chartLines}`).selectAll(`.${ar.chartLine}`).data(c).attr("class",v=>s(v)+l(v)),g=u.enter().append("g").attr("class",s).style("opacity","0").style("pointer-events",e.getStylePropValue("none"));if(g.append("g").attr("class",o),e.hasTypeOf("Area")){const v=(!n&&g.empty()?u:g).filter(e.isAreaType.bind(e));e.initArea(v)}e.updateTargetForCircle(c,g)},updateLine(t,e=!1){const n=this,{format:{extraLineClasses:a},$el:i,$T:s}=n,o=e?i.subchart:i,l=o.main.selectAll(`.${ar.lines}`).selectAll(`.${ar.line}`).data(n.lineData.bind(n));s(l.exit(),t).style("opacity","0").remove(),o.line=l.enter().append("path").attr("class",c=>`${n.getClass("line",!0)(c)} ${a(c)||""}`).style("stroke",n.color).merge(l).style("opacity",n.initialOpacity.bind(n)).attr("transform",null)},redrawLine(t,e,n=!1){const a=this,{$el:i,$T:s}=a,{line:o}=n?i.subchart:i;return[s(o,e,lr()).attr("d",t).style("stroke",this.color).style("opacity",null)]},getCurve(t){const e=this;return e.config.axis_rotated&&e.isStepType(t)?a=>{const i=e.getInterpolate(t)(a);return i.orgPoint=i.point,i.pointRotated=function(s,o){this._point===1&&(this._point=2);const l=this._y*(1-this._t)+o*this._t;this._context.lineTo(this._x,l),this._context.lineTo(s,l),this._x=s,this._y=o},i.point=function(s,o){this._point===0?this.orgPoint(s,o):this.pointRotated(s,o)},i}:e.getInterpolate(t)},generateDrawLine(t,e){const n=this,{config:a,scale:i}=n,s=a.line_connectNull,o=a.axis_rotated,l=n.generateGetLinePoints(t,e),c=n.getYScaleById.bind(n),u=S=>(e?n.subxx:n.xx).call(n,S),g=(S,I)=>n.isGrouped(S.id)?l(S,I)[0][1]:c(S.id,e)(n.getBaseValue(S));let v=ju();v=o?v.x(g).y(u):v.x(u).y(g),s||(v=v.defined(S=>n.getBaseValue(S)!==null));const m=e?i.subX:i.x;return S=>{const I=c(S.id,e);let N=s?n.filterRemoveNull(S.values):S.values,M=0,P=0,G;if(n.isLineType(S)){const H=a.data_regions[S.id];H?G=n.lineWithRegions(N,i.zoom||m,I,H):(n.isStepType(S)&&(N=n.convertValuesToStep(N)),G=v.curve(n.getCurve(S))(N))}else N[0]&&(M=m(N[0].x),P=I(N[0].value)),G=o?`M ${P} ${M}`:`M ${M} ${P}`;return G||"M 0 0"}},lineWithRegions(t,e,n,a){const i=this,{config:s}=i,o=s.axis_rotated,l=i.axis.isTimeSeries(),c="2 2",u=wx.bind(i)(t,a,l),g=i.hasNullDataValue(t);let v,m,S,I;const N=o?vt=>n(vt.value):vt=>e(vt.x),M=o?vt=>e(vt.x):vt=>n(vt.value),P=vt=>`M${vt[0][0]},${vt[0][1]}L${vt[1][0]},${vt[1][1]}`,G=l?(vt,gt,Ft,pt)=>{const k=vt.x.getTime(),Et=gt.x-vt.x,ut=new Date(k+Et*Ft),Rt=new Date(k+Et*(Ft+pt)),jt=o?[[n(m(Ft)),e(ut)],[n(m(Ft+S)),e(Rt)]]:[[e(ut),n(m(Ft))],[e(Rt),n(m(Ft+S))]];return P(jt)}:(vt,gt,Ft,pt)=>{const k=e(gt.x,!o),Et=n(gt.value,o),ut=Ft+pt,Rt=e(v(Ft),!o),jt=n(m(Ft),o);let zt=e(v(ut),!o),Wt=n(m(ut),o);zt>k&&(zt=k),vt.value>gt.value&&(o?WtEt)&&(Wt=Et);const Ht=[[Rt,jt],[zt,Wt]];return o&&Ht.forEach(ee=>ee.reverse()),P(Ht)},H={x:i.axis.getAxisType("x"),y:i.axis.getAxisType("y")};let Y="";const _=i.$el.line.filter(({id:vt})=>vt===t[0].id),K=_.clone().style("display","none"),at=(vt,gt)=>vt.attr("d",gt).node().getTotalLength(),$t={dash:[],lastLength:0};let At=!1;for(let vt=0,gt;gt=t[vt];vt++){const Ft=t[vt-1],pt=Ft&&Ie(Ft.value);let k=i.isWithinRegions(gt.x,u);if(Ie(gt.value)){if(en(u)||!k||!pt)Y+=`${vt&&pt?"L":"M"}${N(gt)},${M(gt)}`;else if(pt)if(k=((k==null?void 0:k.dasharray)||c).split(" ").map(Number),v=Dr(H.x,Ft.x,gt.x),m=Dr(H.y,Ft.value,gt.value),g){const Et=e(gt.x)-e(Ft.x),ut=n(gt.value)-n(Ft.value),Rt=Math.sqrt(Math.pow(Et,2)+Math.pow(ut,2));S=k[0]/Rt,I=S*k[1];for(let jt=S;jt<=1;jt+=I)Y+=G(Ft,gt,jt,S),jt+I>=1&&(Y+=G(Ft,gt,1,0))}else{let Et=[];if(At=gt.x===t[t.length-1].x,l){const zt=+Ft.x,Wt=new Date(zt),Ht=new Date(zt+(+gt.x-zt));Et=[[e(Wt),n(m(0))],[e(Ht),n(m(1))]]}else Et=[[e(v(0)),n(m(0))],[e(v(1)),n(m(1))]];o&&Et.forEach(zt=>zt.reverse());const ut=at(K,Y),Rt=at(K,Y+=`L${Et[1].join(",")}`),jt=Px(ut-$t.lastLength,Rt-$t.lastLength,k,At);$t.lastLength+=jt.length,$t.dash.push(jt.dash)}}}return $t.dash.length&&(!At&&$t.dash.push(at(K,Y)),K.remove(),_.attr("stroke-dasharray",$t.dash.join(" "))),Y},isWithinRegions(t,e){for(let n=0,a;a=e[n];n++)if(a.startlr();var Zi={initialOpacityForCircle(t){const{config:e,state:{withoutFadeIn:n}}=this;let a=e.point_opacity;return en(a)&&(a=this.getBaseValue(t)!==null&&n[t.id]?this.opacityForCircle(t):"0"),a},opacityForCircle(t){var e;const{config:n}=this;let a=n.point_opacity;return en(a)&&(a=n.point_show&&!((e=this.isPointFocusOnly)!=null&&e.call(this))?null:"0",a=Ie(this.getBaseValue(t))?this.isBubbleType(t)||this.isScatterType(t)?"0.5":a:"0"),a},initCircle(){const t=this,{$el:{main:e}}=t;!t.point&&(t.point=t.generatePoint()),(t.hasType("bubble")||t.hasType("scatter"))&&e.select(`.${Se.chart} > .${pn.chartCircles}`).empty()&&e.select(`.${Se.chart}`).append("g").attr("class",pn.chartCircles)},updateTargetForCircle(t,e){const n=this,{config:a,data:i,$el:s}=n,o=a.interaction_enabled&&a.data_selection_enabled,l=o&&a.data_selection_isselectable,c=n.getClass("circles",!0);if(!a.point_show)return;n.initCircle();let u=t,g=e;if(!u){u=i.targets.filter(m=>this.isScatterType(m)||this.isBubbleType(m));const v=s.main.select(`.${pn.chartCircles}`).style("pointer-events","none").selectAll(`.${pn.circles}`).data(u);v.exit().remove(),g=v.enter()}o&&g.append("g").attr("class",v=>n.generateClass(ke.selectedCircles,v.id)),g.append("g").attr("class",c).call(v=>{n.setCssRule(!0,`.${pn.circles}`,["cursor:pointer"],l)(v),n.setCssRule(!0,` .${pn.circle}`,["fill","stroke"],n.color)(v)}).style("opacity",function(){return st(this.parentNode).attr("class").indexOf(pn.chartCircles)>-1?"0":null}),o&&u.forEach(v=>{s.main.selectAll(`.${ke.selectedCircles}${n.getTargetSelectorSuffix(v.id)}`).selectAll(`${ke.selectedCircle}`).each(m=>{m.value=v.values[m.index].value})})},updateCircle(t=!1){const e=this,{config:n,state:a,$el:i}=e,s=e.isPointFocusOnly(),o=t?i.subchart:i;if(n.point_show&&!a.toggling){n.point_radialGradient&&e.updateLinearGradient();const l=o.main.selectAll(`.${pn.circles}`).selectAll(`.${pn.circle}`).data(c=>e.isLineType(c)&&e.shouldDrawPointsForLine(c)||e.isBubbleType(c)||e.isRadarType(c)||e.isScatterType(c)?s?[c.values[0]]:c.values:[]);l.exit().remove(),l.enter().filter(Boolean).append(e.point("create",this,e.pointR.bind(e),e.updateCircleColor.bind(e))),o.circle=o.main.selectAll(`.${pn.circles} .${pn.circle}`).style("stroke",e.getStylePropValue(e.color)).style("opacity",e.initialOpacityForCircle.bind(e))}},updateCircleColor(t){const e=this,n=e.getStylePropValue(e.color);return e.config.point_radialGradient?e.getGradienColortUrl(t.id):n?n(t):null},redrawCircle(t,e,n,a,i=!1){const s=this,{state:{rendered:o},$el:l,$T:c}=s,u=i?l.subchart:l,g=u.main.selectAll(`.${ke.selectedCircle}`);if(!s.config.point_show)return[];const v=s.point("update",s,t,e,s.updateCircleColor.bind(s),n,a,g),m=s.isCirclePoint()?"c":"",S=lr(),I=s.opacityForCircle.bind(s),N=[];return u.circle.each(function(M){let P=v.bind(this)(M);P=c(P,n||!o,S).style("opacity",I),N.push(P)}),[N,c(g,n).attr(`${m}x`,t).attr(`${m}y`,e)]},showCircleFocus(t){const e=this,{state:{hasRadar:n,resizing:a,toggling:i,transiting:s},$el:o}=e;let{circle:l}=o;if(s===!1&&l&&e.isPointFocusOnly()){const c=(n?e.radarCircleX:e.circleX).bind(e),u=(n?e.radarCircleY:e.circleY).bind(e),g=i||en(t),v=e.point("update",e,c,u,e.getStylePropValue(e.color),a?!1:g);t&&(l=l.filter(function(m){var S;const I=(S=t.filter)==null?void 0:S.call(t,N=>N.id===m.id);return I.length?st(this).datum(I[0]):!1})),l.attr("class",this.updatePointClass.bind(this)).style("opacity",null).each(function(m){const{id:S,index:I,value:N}=m;let M="hidden";Ie(N)&&(v.bind(this)(m),e.expandCircles(I,S),M=""),this.style.visibility=M})}},hideCircleFocus(){const t=this,{$el:{circle:e}}=t;t.isPointFocusOnly()&&e&&(t.unexpandCircles(),e.style("visibility","hidden"))},circleX(t){return this.xx(t)},updateCircleY(t=!1){const e=this,n=e.generateGetLinePoints(e.getShapeIndices(e.isLineType),t);return(a,i)=>{const s=a.id;return e.isGrouped(s)?n(a,i)[0][1]:e.getYScaleById(s,t)(e.getBaseValue(a))}},expandCircles(t,e,n){const a=this,i=a.pointExpandedR.bind(a);n&&a.unexpandCircles();const s=a.getShapeByIndex("circle",t,e).classed(Se.EXPANDED,!0),o=i(s)/a.config.point_r,l=1-o;a.isCirclePoint()?s.attr("r",i):s.each(function(){const c=st(this);if(this.tagName==="circle")c.attr("r",i);else{const{width:u,height:g}=this.getBBox(),v=l*(+c.attr("x")+u/2),m=l*(+c.attr("y")+g/2);c.attr("transform",`translate(${v} ${m}) scale(${o})`)}})},unexpandCircles(t){const e=this,n=e.pointR.bind(e),a=e.getShapeByIndex("circle",t).filter(function(){return st(this).classed(Se.EXPANDED)}).classed(Se.EXPANDED,!1);if(a.attr("r",n),!e.isCirclePoint()){const i=n(a)/e.config.point_r;a.attr("transform",i!==1?`scale(${i})`:null)}},pointR(t){const e=this,{config:n}=e,a=n.point_r;let i=a;return e.isBubbleType(t)?i=e.getBubbleR(t):de(a)&&(i=a.bind(e.api)(t)),t.r=i,i},pointExpandedR(t){const e=this,{config:n}=e,a=e.isBubbleType(t)?1.15:1.75;return n.point_focus_expand_enabled?n.point_focus_expand_r||e.pointR(t)*a:e.pointR(t)},pointSelectR(t){const e=this,n=e.config.point_select_r;return de(n)?n(t):n||e.pointR(t)*4},isPointFocusOnly(){const t=this;return t.config.point_focus_only&&!t.hasType("bubble")&&!t.hasType("scatter")&&!t.hasArcType(null,["radar"])},isWithinCircle(t,e){const{config:n,state:a}=this,i=zn(a.event,t),s=st(t),o=this.isCirclePoint(t)?"c":"",l=n.point_sensitivity==="radius"?t.getAttribute("r"):n.point_sensitivity;let c=+s.attr(`${o}x`),u=+s.attr(`${o}y`);if(!(c||u)&&t.nodeType===1){const{x:g,y:v}=Si(t);c=g,u=v}return Math.sqrt(Math.pow(c-i[0],2)+Math.pow(u-i[1],2))<(e||l)},getPointSensitivity(t){const e=this;let n=e.config.point_sensitivity;return de(n)?n=n.call(e.api,t):n==="radius"&&(n=t.r),n},updatePointClass(t){const e=this,{circle:n}=e.$el;let a=!1;return(De(t)||n)&&(a=t===!0?n.each(function(i){let s=e.getClass("circle",!0)(i);this.getAttribute("class").indexOf(Se.EXPANDED)>-1&&(s+=` ${Se.EXPANDED}`),this.setAttribute("class",s)}):e.getClass("circle",!0)(t)),a},generateGetLinePoints(t,e){const n=this,{config:a}=n,i=n.getShapeX(0,t,e),s=n.getShapeY(e),o=n.getShapeOffset(n.isLineType,t,e),l=n.getYScaleById.bind(n);return(c,u)=>{const g=l.call(n,c.id,e)(n.getShapeYMin(c.id)),v=o(c,u)||g,m=i(c);let S=s(c);a.axis_rotated&&(c.value>0&&SIe(S.value)?e(S)-c/2:0,v=S=>Ie(S.value)?n(S)-u/2:0;let m=t;return i&&(s&&m.attr("x",g),m=l.$T(m,i,ia()),o&&l.$T(o,i,ia())),m.attr("x",g).attr("y",v).style("fill",a)}},circle:{create(t,e,n){return t.append("circle").attr("class",this.updatePointClass.bind(this)).attr("r",e).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this;let c=t;return l.hasType("bubble")&&c.attr("r",l.pointR.bind(l)),i&&(s&&c.attr("cx",e),c.attr("cx")&&(c=l.$T(c,i,ia())),o&&l.$T(c,i,ia())),c.attr("cx",e).attr("cy",n).style("fill",a)}},rectangle:{create(t,e,n){const a=i=>e(i)*2;return t.append("rect").attr("class",this.updatePointClass.bind(this)).attr("width",a).attr("height",a).style("fill",n).node()},update(t,e,n,a,i,s,o){const l=this,c=l.config.point_r,u=m=>e(m)-c,g=m=>n(m)-c;let v=t;return i&&(s&&v.attr("x",u),v=l.$T(v,i,ia()),o&&l.$T(o,i,ia())),v.attr("x",u).attr("y",g).style("fill",a)}}};function Lx(t){return Jn(t)&&de(t.create)&&de(t.update)}function Dx(t,e){var n;const a=this,i=(c,u)=>{const g=c.attributes;for(let v=0,m;m=g[v];v++)m=m.name,u.setAttribute(m,c.getAttribute(m))},o=new DOMParser().parseFromString(t,"image/svg+xml").documentElement,l=fn.createElementNS(ne.svg,o.nodeName.toLowerCase());if(l.id=e,l.style.fill="inherit",l.style.stroke="inherit",i(o,l),(n=o.childNodes)!=null&&n.length){const c=st(l);"innerHTML"in l?c.html(o.innerHTML):Cr(o.childNodes).forEach(u=>{i(u,c.append(u.tagName).node())})}a.$el.defs.node().appendChild(l)}var sa={hasValidPointType(t){return/^(circle|rect(angle)?|polygon|ellipse|use)$/i.test(t||this.config.point_type)},hasLegendDefsPoint(){var t;const{config:e}=this;return e.legend_show&&((t=e.point_pattern)==null?void 0:t.length)&&e.legend_usePoint},getDefsPointId(t){const{state:{datetimeId:e}}=this;return`${e}-point${t}`},generatePoint(){const t=this,{$el:e,config:n}=t,a=[],i=nn(n.point_pattern)?n.point_pattern:[n.point_type];return function(s,o,...l){return function(c){var u,g,v,m;const S=t.getTargetSelectorSuffix(c.id||((u=c.data)==null?void 0:u.id)||c),I=st(this);a.indexOf(S)<0&&a.push(S);let N=i[a.indexOf(S)%i.length];if(t.hasValidPointType(N))N=t[N];else if(!Lx(N||n.point_type)){const M=t.getDefsPointId(S);if(e.defs.select(`#${M}`).size()<1&&Dx.bind(t)(N,M),s==="create")return(g=t.custom)==null?void 0:g.create.bind(o)(I,M,...l);if(s==="update")return(v=t.custom)==null?void 0:v.update.bind(o)(I,...l)}return(m=N[s])==null?void 0:m.bind(o)(I,...l)}}}};function Zu(t){const e=t.config.polar_level_max;let n=t.getMinMaxData().max[0].value;return e&&e>n&&(n=e),n}var Nx={initPolar(){const t=this,{$el:{arcs:e},config:n}=t,a=n.polar_level_text_show,i=n.polar_level_text_backgroundColor;e.levels=e.append("g").attr("class",vr.levels),a&&i&&t.generateTextBGColorFilter(i)},getPolarOuterRadius(t,e){var n;const a=Zu(this);return((n=t==null?void 0:t.data.values[0].value)!=null?n:0)/a*e},updateTargetsForPolar(t){this.updateTargetsForArc(t)},redrawPolar(){const t=this,{config:e}=t;e.polar_level_show&&t.updatePolarLevel()},updatePolarLevel(){const t=this,{config:e,state:n,$el:{arcs:{levels:a}}}=t,i=e.polar_level_depth,s=Zu(t),o=Ai(0,i),l=n.radius,c=o.map(m=>l*((m+1)/i)),u=(e.polar_level_text_format||function(){}).bind(t.api),g=a.selectAll(`.${vr.level}`).data(o);g.exit().remove();const v=g.enter().append("g").attr("class",(m,S)=>`${vr.level} ${vr.level}-${S}`);if(v.append("circle"),v.merge(g).selectAll("circle").style("visibility",e.polar_level_show?null:"hidden").attr("cx",0).attr("cy",0).attr("r",m=>c[m]),e.polar_level_text_show){const m=e.polar_level_text_backgroundColor,S=`#${n.datetimeId}-labels-bg${t.getTargetSelectorSuffix(m)}`;v.append("text").style("text-anchor","middle"),v.merge(g).selectAll("text").attr("dy",I=>-c[I]+5).attr("filter",m?`url(${S})`:null).text(I=>u(s/o.length*(I+1)))}}};function Fx(t,e,n,a,i,s){const o=t&&a>0?n-a:a,l=2*Math.PI;return i*(1-s*(e==="x"?Math.sin:Math.cos)(o*l/n))}const oa=Cn.radarPoints,ku=Cn.radarTextWidth;var Bx={initRadar(){const t=this,{config:e,state:{current:n},$el:a}=t;t.hasType("radar")&&(a.radar=a.main.select(`.${Se.chart}`).append("g").attr("class",Zo.chartRadars),a.radar.levels=a.radar.append("g").attr("class",vr.levels),a.radar.axes=a.radar.append("g").attr("class",on.axis),a.radar.shapes=a.radar.append("g").attr("class",tn.shapes),n.dataMax=e.radar_axis_max||t.getMinMaxData().max[0].value,e.radar_axis_text_show&&(e.interaction_enabled&&t.bindRadarEvent(),t.updateRadarLevel(),t.updateRadarAxes()))},getRadarSize(){const t=this,{config:e,state:{arcWidth:n,arcHeight:a}}=t,i=e.axis_x_categories.length<4?-20:10,s=(Math.min(n,a)-i)/2;return[s,s]},updateTargetsForRadar(t){const e=this,{config:n}=e;Wn(n.axis_x_categories)&&(n.axis_x_categories=Ai(0,Kn("max",t.map(a=>a.values.length)))),e.generateRadarPoints()},getRadarPosition(t,e,n,a){const i=this,{config:s}=i,[o,l]=i.getRadarSize(),c=s.axis_x_categories.length,u=s.radar_direction_clockwise,g=Cr(t).map(v=>Fx(u,v,c,e,Xe(n)?n:t==="x"?o:l,fe(a)?a:s.radar_size_ratio));return g.length===1?g[0]:g},generateRadarPoints(){const t=this,e=t.data.targets,[n,a]=t.getRadarSize(),i=t.cache.get(oa)||{},s=i._size;(!s||s.width!==n&&s.height!==a)&&(e.forEach(o=>{i[o.id]=o.values.map((l,c)=>t.getRadarPosition(["x","y"],c,void 0,t.getRatio("radar",l)))}),i._size={width:n,height:a},t.cache.add(oa,i))},redrawRadar(){const t=this,{radar:e,main:n}=t.$el,a=t.getTranslate("radar");a&&(e.attr("transform",a),n.select(`.${An.chartTexts}`).attr("transform",a),t.generateRadarPoints(),t.updateRadarLevel(),t.updateRadarAxes(),t.updateRadarShape())},generateGetRadarPoints(){const t=this.cache.get(oa);return(e,n)=>{const a=t[e.id][n];return[a,a,a,a]}},updateRadarLevel(){const t=this,{config:e,state:n,$el:{radar:a}}=t,[i,s]=t.getRadarSize(),o=e.radar_level_depth,l=e.axis_x_categories.length,c=e.radar_level_text_show,u=a.levels,g=Ai(0,o),v=e.radar_size_ratio*Math.min(i,s),m=g.map(P=>v*((P+1)/o)),S=(e.radar_level_text_format||function(){}).bind(t.api),I=g.map(P=>{const G=m[P];return Ai(0,l).map(Y=>t.getRadarPosition(["x","y"],Y,G,1).join(",")).join(" ")}),N=u.selectAll(`.${vr.level}`).data(g);N.exit().remove();const M=N.enter().append("g").attr("class",(P,G)=>`${vr.level} ${vr.level}-${G}`);M.append("polygon").style("visibility",e.radar_level_show?null:"hidden"),c&&(u.select("text").empty()&&u.append("text").attr("dx","-.5em").attr("dy","-.7em").style("text-anchor","end").text(()=>S(0)),M.append("text").attr("dx","-.5em").style("text-anchor","end").text(P=>S(n.current.dataMax/g.length*(P+1)))),M.merge(N).attr("transform",P=>`translate(${i-m[P]}, ${s-m[P]})`).selectAll("polygon").attr("points",P=>I[P]),c&&u.selectAll("text").attr("x",P=>en(P)?i:I[P].split(",")[0]).attr("y",P=>en(P)?s:0)},updateRadarAxes(){const t=this,{config:e,$el:{radar:n}}=t,[a,i]=t.getRadarSize(),s=e.axis_x_categories;let o=n.axes.selectAll("g").data(s);o.exit().remove();const l=o.enter().append("g").attr("class",(c,u)=>`${on.axis}-${u}`);if(e.radar_axis_line_show&&l.append("line"),e.radar_axis_text_show&&l.append("text"),o=l.merge(o),e.radar_axis_line_show&&o.select("line").attr("x1",a).attr("y1",i).attr("x2",(c,u)=>t.getRadarPosition("x",u)).attr("y2",(c,u)=>t.getRadarPosition("y",u)),e.radar_axis_text_show){const{x:c=0,y:u=0}=e.radar_axis_text_position,g=t.cache.get(ku)||0;if(o.select("text").style("text-anchor","middle").attr("dy",".5em").call(v=>{v.each(function(m){wa(st(this),String(m),[-.6,1.2])})}).datum((v,m)=>({index:m})).attr("transform",function(v){en(this.width)&&(this.width=this.getBoundingClientRect().width/2);let m=t.getRadarPosition("x",v.index,void 0,1),S=Math.round(t.getRadarPosition("y",v.index,void 0,1));return m>a?m+=this.width+c:Math.round(m)i?(S/2===i&&this.firstChild.tagName==="tspan"&&this.firstChild.setAttribute("dy","0em"),S+=u):SXl(m.node()).width);v.every(m=>m>0)&&t.cache.add(ku,v[0]-v[1])}}},bindRadarEvent(){const t=this,{state:e,$el:{radar:n,svg:a}}=t,i=t.isPointFocusOnly(),{inputType:s,transiting:o}=e,l=s==="mouse",c=u=>{e.event=u;const g=t.getDataIndexFromEvent(u),v=en(g);(l||v)&&(t.hideTooltip(),i?t.hideCircleFocus():t.unexpandCircles(),l?t.setOverOut(!1,g):v&&t.callOverOutForTouch())};n.axes.on(l?"mouseover ":"touchstart",u=>{if(o)return;e.event=u;const g=t.getDataIndexFromEvent(u);t.selectRectForSingle(a.node(),g),l?t.setOverOut(!0,g):t.callOverOutForTouch(g)}).on("mouseout",l?c:null),l||a.on("touchstart",c)},updateRadarShape(){const t=this,e=t.data.targets.filter(s=>t.isRadarType(s)),n=t.cache.get(oa),a=t.$el.radar.shapes.selectAll("polygon").data(e),i=a.enter().append("g").attr("class",t.getChartClass("Radar"));t.$T(a.exit()).remove(),i.append("polygon").merge(a).style("fill",t.color).style("stroke",t.color).attr("points",s=>n[s.id].join(" ")),t.updateTargetForCircle(e,i)},radarCircleX(t){return this.cache.get(oa)[t.id][t.index][0]},radarCircleY(t){return this.cache.get(oa)[t.id][t.index][1]}};function Ux(t){var e=0,n=t.children,a=n&&n.length;if(!a)e=1;else for(;--a>=0;)e+=n[a].value;t.value=e}function zx(){return this.eachAfter(Ux)}function jx(t,e){let n=-1;for(const a of this)t.call(e,a,++n,this);return this}function Gx(t,e){for(var n=this,a=[n],i,s,o=-1;n=a.pop();)if(t.call(e,n,++o,this),i=n.children)for(s=i.length-1;s>=0;--s)a.push(i[s]);return this}function Vx(t,e){for(var n=this,a=[n],i=[],s,o,l,c=-1;n=a.pop();)if(i.push(n),s=n.children)for(o=0,l=s.length;o=0;)n+=a[i].value;e.value=n})}function Hx(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Wx(t){for(var e=this,n=Kx(e,t),a=[e];e!==n;)e=e.parent,a.push(e);for(var i=a.length;t!==n;)a.splice(i,0,t),t=t.parent;return a}function Kx(t,e){if(t===e)return t;var n=t.ancestors(),a=e.ancestors(),i=null;for(t=n.pop(),e=a.pop();t===e;)i=t,t=n.pop(),e=a.pop();return i}function Zx(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function kx(){return Array.from(this)}function Jx(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function Qx(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e}function*_x(){var t=this,e,n=[t],a,i,s;do for(e=n.reverse(),n=[];t=e.pop();)if(yield t,a=t.children)for(i=0,s=a.length;i=0;--l)i.push(s=o[l]=new ki(o[l])),s.parent=a,s.depth=a.depth+1;return n.eachBefore(r0)}function qx(){return bo(this).eachBefore(n0)}function t0(t){return t.children}function e0(t){return Array.isArray(t)?t[1]:null}function n0(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function r0(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function ki(t){this.data=t,this.depth=this.height=0,this.parent=null}ki.prototype=bo.prototype={constructor:ki,count:zx,each:jx,eachAfter:Vx,eachBefore:Gx,find:Xx,sum:Yx,sort:Hx,path:Wx,ancestors:Zx,descendants:kx,leaves:Jx,links:Qx,copy:qx,[Symbol.iterator]:_x};function a0(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function Ji(t,e,n,a,i){for(var s=t.children,o,l=-1,c=s.length,u=t.value&&(a-e)/t.value;++lG&&(G=u),K=M*M*_,H=Math.max(G/K,K/P),H>Y){M-=u;break}Y=H}o.push(c={value:M,dice:S1?a:1)},n}(Ju);function R1(t){return t==null?null:qu(t)}function qu(t){if(typeof t!="function")throw new Error;return t}function za(){return 0}function ja(t){return function(){return t}}function i0(){var t=_u,e=!1,n=1,a=1,i=[0],s=za,o=za,l=za,c=za,u=za;function g(m){return m.x0=m.y0=0,m.x1=n,m.y1=a,m.eachBefore(v),i=[0],e&&m.eachBefore(a0),m}function v(m){var S=i[m.depth],I=m.x0+S,N=m.y0+S,M=m.x1-S,P=m.y1-S;M=m-1){var G=s[v];G.x0=I,G.y0=N,G.x1=M,G.y1=P;return}for(var H=u[v],Y=S/2+H,_=v+1,K=m-1;_>>1;u[at]P-N){var vt=S?(I*At+M*$t)/S:M;g(v,_,$t,I,N,vt,P),g(_,m,At,vt,N,M,P)}else{var gt=S?(N*At+P*$t)/S:P;g(v,_,$t,I,N,M,gt),g(_,m,At,I,gt,M,P)}}}function s0(t,e,n,a,i){(t.depth&1?Qi:Ji)(t,e,n,a,i)}var o0=function t(e){function n(a,i,s,o,l){if((c=a._squarify)&&c.ratio===e)for(var c,u,g,v,m=-1,S,I=c.length,N=a.value;++m1?a:1)},n}(Ju);function l0(t,e){const n=this,{scale:{x:a,y:i},state:{width:s}}=n;t.selectAll("g").attr("transform",o=>`translate(${o===e?"0,0":`${a(o.x0)},${i(o.y0)}`})`).select("rect").attr("width",o=>o===e?s:a(o.x1)-a(o.x0)).attr("height",o=>o===e?0:i(o.y1)-i(o.y0))}function c0(t){const e=this;return t.map(n=>{const{id:a,values:i}=n,{value:s}=i[0];return{name:a,id:a,value:s,ratio:e.getRatio("treemap",i[0])}})}function u0(t){const e=this,n=bo(t).sum(i=>i.value),a=e.getSortCompareFn(!0);return[e.treemap(a?n.sort(a):n)]}var f0={initTreemap(){const t=this,{$el:e,state:{current:{width:n,height:a},clip:i,datetimeId:s}}=t;i.id=`${s}-clip`,t.treemap=i0().tile(t.getTreemapTile()),e.defs.append("clipPath").attr("id",i.id).append("rect").attr("width",n).attr("height",a),e.treemap=e.main.select(`.${Se.chart}`).attr("clip-path",`url(#${i.id})`).append("g").classed(Jo.chartTreemaps,!0),t.bindTreemapEvent()},bindTreemapEvent(){const t=this,{$el:e,config:n,state:a}=t,i=s=>{var o;const l=s.isTrusted?s.target:(o=a.eventReceiver.rect)==null?void 0:o.node();let c;return/^rect$/i.test(l.tagName)&&(a.event=s,c=st(l).datum()),c==null?void 0:c.data};if(n.interaction_enabled){const s=a.inputType==="touch";e.treemap.on(s?"touchstart":"mouseover mousemove",o=>{const l=i(o);l&&(t.showTooltip([l],o.currentTarget),/^(touchstart|mouseover)$/.test(o.type)&&t.setOverOut(!0,l))}).on(s?"touchend":"mouseout",o=>{const l=i(o);t.hideTooltip(),t.setOverOut(!1,l)})}},getTreemapTile(){var t,e;const n=this,{config:a,state:{current:{width:i,height:s}}}=n,o=(e={binary:tf,dice:Ji,slice:Qi,sliceDice:s0,squarify:_u,resquarify:o0}[(t=a.treemap_tile)!=null?t:"binary"])!=null?e:tf;return(l,c,u,g,v)=>{o(l,0,0,i,s);for(const m of l.children)m.x0=c+m.x0/i*(g-c),m.x1=c+m.x1/i*(g-c),m.y0=u+m.y0/s*(v-u),m.y1=u+m.y1/s*(v-u)}},getTreemapData(t){const e=this;return{name:"root",children:c0.bind(e)(e.filterTargetsToShow(t.filter(e.isTreemapType,e)))}},updateTargetsForTreemap(t){const e=this,{$el:{treemap:n}}=e,a=u0.call(e,e.getTreemapData(t!=null?t:e.data.targets));n.data(a)},updateTreemap(t){const e=this,{$el:n,$T:a}=e,i=n.treemap.datum(),s=e.getChartClass("Treemap"),o=e.getClass("treemap",!0),l=n.treemap.selectAll("g").data(i.children);a(l.exit(),t).style("opacity","0").remove(),l.enter().append("g").append("rect"),n.treemap.selectAll("g").attr("class",s).select("rect").attr("class",o).attr("fill",c=>e.color(c.data.name))},generateGetTreemapPoints(){const t=this,{$el:e,scale:{x:n,y:a}}=t,i={};return e.treemap.selectAll("g").each(s=>{i[s.data.name]=[[n(s.x0),a(s.y0)],[n(s.x1),a(s.y1)]]}),s=>i[s.id]},redrawTreemap(t){const e=this,{$el:n,state:{current:{width:a,height:i}}}=e;return n.defs.select("rect").attr("width",a).attr("height",i),[e.$T(n.treemap,t,lr()).call(l0.bind(e),n.treemap.datum())]},treemapDataLabelFormat(t){const e=this,{config:n}=e,{id:a,value:i}=t,s=n.treemap_label_format,o=e.getRatio("treemap",t),l=(o*100).toFixed(2),c=n.treemap_label_show&&e.meetsLabelThreshold(o,"treemap")?null:"0";return function(u){return u.style("opacity",c),de(s)?s.bind(e.api)(i,o,a):`${a} +${l}%`}}},Ur={point_show:!0,point_r:2.5,point_radialGradient:!1,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_focus_only:!1,point_opacity:void 0,point_pattern:[],point_select_r:void 0,point_type:"circle"},la={area_above:!1,area_below:!1,area_front:!0,area_linearGradient:!1,area_zerobased:!0},d0={bar_front:!1,bar_indices_removeNull:!1,bar_label_threshold:0,bar_linearGradient:!1,bar_overlap:!1,bar_padding:0,bar_radius:void 0,bar_radius_ratio:void 0,bar_sensitivity:2,bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0},h0={bubble_maxR:35,bubble_zerobased:!1},g0={candlestick_width:void 0,candlestick_width_ratio:.6,candlestick_width_max:void 0,candlestick_color_down:"red"},v0={line_connectNull:!1,line_step_type:"step",line_step_tooltipMatch:!1,line_zerobased:!1,line_classes:void 0,line_point:!0},p0={scatter_zerobased:!1},Eo={spline_interpolation_type:"cardinal"},_i={arc_cornerRadius:0,arc_cornerRadius_ratio:0,arc_needle_show:!1,arc_needle_color:void 0,arc_needle_value:void 0,arc_needle_path:void 0,arc_needle_length:100,arc_needle_top_rx:0,arc_needle_top_ry:0,arc_needle_top_width:0,arc_needle_bottom_rx:1,arc_needle_bottom_ry:1,arc_needle_bottom_width:15,arc_needle_bottom_len:0,arc_rangeText_values:void 0,arc_rangeText_unit:"absolute",arc_rangeText_fixed:!1,arc_rangeText_format:void 0,arc_rangeText_position:void 0},m0={donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_rate:.98,donut_expand_duration:50,donut_padAngle:0,donut_startingAngle:0},y0={funnel_neck_width:0,funnel_neck_height:0},x0={gauge_background:"",gauge_fullCircle:!1,gauge_label_show:!0,gauge_label_extents:void 0,gauge_label_format:void 0,gauge_label_ratio:void 0,gauge_label_threshold:0,gauge_enforceMinMax:!1,gauge_min:0,gauge_max:100,gauge_type:"single",gauge_startingAngle:-1*Math.PI/2,gauge_arcLength:100,gauge_title:"",gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_rate:.98,gauge_expand_duration:50},T0={pie_label_show:!0,pie_label_format:void 0,pie_label_ratio:void 0,pie_label_threshold:.05,pie_expand:{},pie_expand_rate:.98,pie_expand_duration:50,pie_innerRadius:0,pie_outerRadius:void 0,pie_padAngle:0,pie_padding:0,pie_startingAngle:0},$0={polar_label_show:!0,polar_label_format:void 0,polar_label_threshold:.05,polar_label_ratio:void 0,polar_level_depth:3,polar_level_max:void 0,polar_level_show:!0,polar_level_text_backgroundColor:"#fff",polar_level_text_format:t=>t%1===0?t:t.toFixed(2),polar_level_text_show:!0,polar_padAngle:0,polar_padding:0,polar_startingAngle:0},S0={radar_axis_max:void 0,radar_axis_line_show:!0,radar_axis_text_show:!0,radar_axis_text_position:{},radar_level_depth:3,radar_level_show:!0,radar_level_text_format:t=>t%1===0?t:t.toFixed(2),radar_level_text_show:!0,radar_size_ratio:.87,radar_direction_clockwise:!1},A0={treemap_tile:"binary",treemap_label_format:void 0,treemap_label_threshold:.05,treemap_label_show:!0};function ca(t,e){gn(Fr.prototype,Object.values(wu).concat(t)),gn(xr.prototype,Wy),Pr.setOptions(Object.values(Mu).concat(e||[]))}function fr(t,e){ca([sa,Zi,Mx].concat(t||[])),Pr.setOptions([Ur,v0].concat(e||[]))}function ua(t,e){gn(Fr.prototype,[hx,sa].concat(t||[])),Pr.setOptions([Ur].concat(e||[]))}let ef=()=>(fr(aa,[la]),(ef=()=>ae.AREA)()),nf=()=>(fr(aa,[la]),(nf=()=>ae.AREA_LINE_RANGE)()),rf=()=>(fr(aa,[la]),(rf=()=>ae.AREA_STEP_RANGE)()),af=()=>(fr(aa,[la,Eo]),(af=()=>ae.AREA_SPLINE)()),sf=()=>(fr(aa,[la,Eo]),(sf=()=>ae.AREA_SPLINE_RANGE)()),of=()=>(fr(aa,[la]),(of=()=>ae.AREA_STEP)()),lf=()=>(fr(),(lf=()=>ae.LINE)()),cf=()=>(fr(void 0,[Eo]),(cf=()=>ae.SPLINE)()),uf=()=>(fr(),(uf=()=>ae.STEP)()),ff=()=>(ua(void 0,[_i,m0]),(ff=()=>ae.DONUT)()),df=()=>(ua([Cx],[_i,x0]),(df=()=>ae.GAUGE)()),hf=()=>(ua(void 0,[_i,T0]),(hf=()=>ae.PIE)()),gf=()=>(ua([Nx],[_i,$0]),(gf=()=>ae.POLAR)()),vf=()=>(ua([wu.eventrect,Zi,Bx],[Ur,S0,{axis_x_categories:Mu.optAxis.axis_x_categories}]),(vf=()=>ae.RADAR)()),pf=()=>(ca([vx,sa],[d0,Ur]),(pf=()=>ae.BAR)()),mf=()=>(ca([sa,Zi,px],[h0,Ur]),(mf=()=>ae.BUBBLE)()),yf=()=>(ca([$x,sa],[g0,Ur]),(yf=()=>ae.CANDLESTICK)()),xf=()=>(ca([sa,Zi],[Ur,p0]),(xf=()=>ae.SCATTER)()),Tf=()=>(ua([Ix],[y0]),(Tf=()=>ae.FUNNEL)()),$f=()=>(ca([f0],[A0]),($f=()=>ae.TREEMAP)()),Ro={};const Sf={version:"3.12.4-nightly-20240726004631",generate(t){const e=_r({},Ro,t),n=new xr(e);return n.internal.charts=this.instance,this.instance.push(n),n},defaults(t){return De(t)&&(Ro=t),Ro},instance:[],plugin:{}};Object.keys(d).forEach(t=>d[t]()),Object.keys(f).forEach(t=>f[t]())}],Va={};function Nn(x){var E=Va[x];if(E!==void 0)return E.exports;var r=Va[x]={exports:{}};return Oo[x].call(r.exports,r,r.exports,Nn),r.exports}(function(){Nn.d=function(x,E){for(var r in E)Nn.o(E,r)&&!Nn.o(x,r)&&Object.defineProperty(x,r,{enumerable:!0,get:E[r]})}})(),function(){Nn.o=function(x,E){return Object.prototype.hasOwnProperty.call(x,E)}}(),function(){Nn.r=function(x){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(x,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(x,"__esModule",{value:!0})}}(),Nn(0);var Xa=Nn(560);return Xa}()}); diff --git a/dist/plugin/billboardjs-plugin-bubblecompare.js b/dist/plugin/billboardjs-plugin-bubblecompare.js index 29b482085..60d39f2d4 100644 --- a/dist/plugin/billboardjs-plugin-bubblecompare.js +++ b/dist/plugin/billboardjs-plugin-bubblecompare.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -133,7 +133,7 @@ class Plugin { }); } } -__publicField(Plugin, "version", "3.12.4-nightly-20240724004639"); +__publicField(Plugin, "version", "3.12.4-nightly-20240726004631"); ;// CONCATENATED MODULE: ./src/Plugin/bubblecompare/index.ts var bubblecompare_defProp = Object.defineProperty; diff --git a/dist/plugin/billboardjs-plugin-bubblecompare.min.js b/dist/plugin/billboardjs-plugin-bubblecompare.min.js index 87d1be1cf..5c16db13e 100644 --- a/dist/plugin/billboardjs-plugin-bubblecompare.min.js +++ b/dist/plugin/billboardjs-plugin-bubblecompare.min.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin - */(function(n,i){typeof exports=="object"&&typeof module=="object"?module.exports=i(require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-selection"],i):typeof exports=="object"?exports.bb=i(require("d3-selection")):(n.bb=n.bb||{},n.bb.plugin=n.bb.plugin||{},n.bb.plugin.bubblecompare=i(n.d3))})(this,function(p){return function(){"use strict";var n={747:function(r){r.exports=p}},i={};function s(r){var e=i[r];if(e!==void 0)return e.exports;var t=i[r]={exports:{}};return n[r](t,t.exports,s),t.exports}(function(){s.d=function(r,e){for(var t in e)s.o(e,t)&&!s.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})}})(),function(){s.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)}}();var b={};s.d(b,{default:function(){return R}});var $=s(747),g=Object.defineProperty,v=(r,e,t)=>e in r?g(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,l=(r,e,t)=>v(r,typeof e!="symbol"?e+"":e,t);class d{constructor(e={}){l(this,"$$"),l(this,"options"),this.options=e}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}l(d,"version","3.12.4-nightly-20240724004639");var x=Object.defineProperty,B=(r,e,t)=>e in r?x(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,_=(r,e,t)=>B(r,typeof e!="symbol"?e+"":e,t);const f=class m extends d{constructor(e){return super(e),_(this,"$$"),this}$init(){const{$$:e}=this;e.findClosest=this.findClosest.bind(this),e.getBubbleR=this.getBubbleR.bind(this),e.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(e){const t=this.getBubbleR(e),{expandScale:a=1}=this.options;return m.raiseFocusedBubbleLayer(e),this.changeCursorPoint(),t*a}static raiseFocusedBubbleLayer(e){e.raise&&(0,$.select)(e.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(e,t){const{$$:a}=this;return e.filter(o=>o&&!a.isBarType(o.id)).reduce((o,u)=>a.dist(u,t){const h=this.getZData(j.values[0]);return[Math.min(w,h),Math.max(C,h)]},[1e4,0]),P=u>0&&c===u?0:o/c;return Math.abs(P)*(a-t)+t}getZData(e){return this.$$.isBubbleZType(e)?this.$$.getBubbleZData(e.value,"z"):e.value}};_(f,"version","0.0.1");let R=f;return b=b.default,b}()}); + */(function(n,i){typeof exports=="object"&&typeof module=="object"?module.exports=i(require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-selection"],i):typeof exports=="object"?exports.bb=i(require("d3-selection")):(n.bb=n.bb||{},n.bb.plugin=n.bb.plugin||{},n.bb.plugin.bubblecompare=i(n.d3))})(this,function(p){return function(){"use strict";var n={747:function(r){r.exports=p}},i={};function s(r){var e=i[r];if(e!==void 0)return e.exports;var t=i[r]={exports:{}};return n[r](t,t.exports,s),t.exports}(function(){s.d=function(r,e){for(var t in e)s.o(e,t)&&!s.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})}})(),function(){s.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)}}();var b={};s.d(b,{default:function(){return R}});var $=s(747),g=Object.defineProperty,v=(r,e,t)=>e in r?g(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,l=(r,e,t)=>v(r,typeof e!="symbol"?e+"":e,t);class d{constructor(e={}){l(this,"$$"),l(this,"options"),this.options=e}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(e=>{this[e]=null,delete this[e]})}}l(d,"version","3.12.4-nightly-20240726004631");var x=Object.defineProperty,B=(r,e,t)=>e in r?x(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,_=(r,e,t)=>B(r,typeof e!="symbol"?e+"":e,t);const f=class m extends d{constructor(e){return super(e),_(this,"$$"),this}$init(){const{$$:e}=this;e.findClosest=this.findClosest.bind(this),e.getBubbleR=this.getBubbleR.bind(this),e.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(e){const t=this.getBubbleR(e),{expandScale:a=1}=this.options;return m.raiseFocusedBubbleLayer(e),this.changeCursorPoint(),t*a}static raiseFocusedBubbleLayer(e){e.raise&&(0,$.select)(e.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(e,t){const{$$:a}=this;return e.filter(o=>o&&!a.isBarType(o.id)).reduce((o,u)=>a.dist(u,t){const h=this.getZData(j.values[0]);return[Math.min(w,h),Math.max(C,h)]},[1e4,0]),P=u>0&&c===u?0:o/c;return Math.abs(P)*(a-t)+t}getZData(e){return this.$$.isBubbleZType(e)?this.$$.getBubbleZData(e.value,"z"):e.value}};_(f,"version","0.0.1");let R=f;return b=b.default,b}()}); diff --git a/dist/plugin/billboardjs-plugin-sparkline.js b/dist/plugin/billboardjs-plugin-sparkline.js index 1f543fa38..21190ee5f 100644 --- a/dist/plugin/billboardjs-plugin-sparkline.js +++ b/dist/plugin/billboardjs-plugin-sparkline.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -777,7 +777,7 @@ class Plugin { }); } } -__publicField(Plugin, "version", "3.12.4-nightly-20240724004639"); +__publicField(Plugin, "version", "3.12.4-nightly-20240726004631"); ;// CONCATENATED MODULE: ./src/Plugin/sparkline/Options.ts class Options { diff --git a/dist/plugin/billboardjs-plugin-sparkline.min.js b/dist/plugin/billboardjs-plugin-sparkline.min.js index ceb223c6f..f30497cd9 100644 --- a/dist/plugin/billboardjs-plugin-sparkline.min.js +++ b/dist/plugin/billboardjs-plugin-sparkline.min.js @@ -5,9 +5,9 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */(function(b,f){typeof exports=="object"&&typeof module=="object"?module.exports=f(require("d3-brush"),require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-brush","d3-selection"],f):typeof exports=="object"?exports.bb=f(require("d3-brush"),require("d3-selection")):(b.bb=b.bb||{},b.bb.plugin=b.bb.plugin||{},b.bb.plugin.sparkline=f(b.d3,b.d3))})(this,function(T,b){return function(){"use strict";var f={853:function(e){e.exports=T},747:function(e){e.exports=b}},A={};function d(e){var t=A[e];if(t!==void 0)return t.exports;var n=A[e]={exports:{}};return f[e](n,n.exports,d),n.exports}(function(){d.d=function(e,t){for(var n in t)d.o(t,n)&&!d.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),function(){d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();var p={};d.d(p,{default:function(){return j}});var N=Object.defineProperty,P=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,q=Object.prototype.propertyIsEnumerable,C=(e,t,n)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,c=(e,t)=>{for(var n in t||(t={}))B.call(t,n)&&C(e,n,t[n]);if(P)for(var n of P(t))q.call(t,n)&&C(e,n,t[n]);return e};const R={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},k={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},H={area:"bb-area",areas:"bb-areas"},U={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},X={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},Y={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},V={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},G={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},z={dragarea:"bb-dragarea",INCLUDED:"_included_"},W={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},K={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},Z={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},J={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},Q={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},ee={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},te={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Le={level:"bb-level",levels:"bb-levels"},ne={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},re={region:"bb-region",regions:"bb-regions"},ie={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},se={shape:"bb-shape",shapes:"bb-shapes"},oe={brush:"bb-brush",subchart:"bb-subchart"},ce={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},le={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},ae={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},ue={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var De=c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c(c({},R),k),H),U),X),Y),V),G),z),K),Z),J),Q),ee),W),te),ne),re),ie),se),oe),ce),le),ae),ue),Me=d(853),Fe=d(747);function be(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function de(e){const t=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",n=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",r=s=>setTimeout(s,1),i=s=>clearTimeout(s);return[t?e.requestAnimationFrame:r,t?e.cancelAnimationFrame:i,n?e.requestIdleCallback:r,n?e.cancelIdleCallback:i]}const g=be(),fe=g==null?void 0:g.document,[je,Ne,Be,qe]=de(g);var he=Object.defineProperty,I=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,S=(e,t,n)=>t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L=(e,t)=>{for(var n in t||(t={}))pe.call(t,n)&&S(e,n,t[n]);if(I)for(var n of I(t))ge.call(t,n)&&S(e,n,t[n]);return e};const ke=e=>e||e===0,me=e=>typeof e=="function",m=e=>typeof e=="string",_=e=>typeof e=="number",ve=e=>typeof e=="undefined",D=e=>typeof e!="undefined",He=e=>typeof e=="boolean",Ue=e=>Math.ceil(e/10)*10,Xe=e=>Math.ceil(e)+.5,Ye=e=>e[1]-e[0],y=e=>typeof e=="object",_e=e=>ve(e)||e===null||m(e)&&e.length===0||y(e)&&!(e instanceof Date)&&Object.keys(e).length===0||_(e)&&isNaN(e),ye=e=>!_e(e),x=e=>Array.isArray(e),v=e=>e&&!(e!=null&&e.nodeType)&&y(e)&&!x(e);function Ve(e,t,n){return D(e[t])?e[t]:n}function Ge(e,t){let n=!1;return Object.keys(e).forEach(r=>e[r]===t&&(n=!0)),n}function ze(e,t,...n){const r=me(e);return r&&e.call(t,...n),r}function We(e,t){let n=0;const r=function(...i){!--n&&t.apply(this,...i)};"duration"in e?e.each(()=>++n).on("end",r):(++n,e.call(r))}function Ke(e){return m(e)?e.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):e}function Ze(e,t,n=[-1,1],r=!1){if(!(!e||!m(t)))if(t.indexOf(` `)===-1)e.text(t);else{const i=[e.text(),t].map(s=>s.replace(/[\s\n]/g,""));if(i[0]!==i[1]){const s=t.split(` -`),o=r?s.length-1:1;e.html(""),s.forEach((l,a)=>{e.append("tspan").attr("x",0).attr("dy",`${a===0?n[0]*o:n[1]}em`).text(l)})}}}function xe(e){const{x:t,y:n,width:r,height:i}=e.getBBox();return[{x:t,y:n+i},{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i}]}function Je(e){const{width:t,height:n}=e.getBoundingClientRect(),r=xe(e),i=r[0].x,s=Math.min(r[0].y,r[1].y);return{x:i,y:s,width:t,height:n}}function Qe(e,t){var n;const r=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=d3Pointer(r||e,t)}catch(s){}return i.map(s=>isNaN(s)?0:s)}function $e(e){const{event:t,$el:n}=e,r=n.subchart.main||n.main;let i;return t&&t.type==="brush"?i=t.selection:r&&(i=r.select(".bb-brush").node())&&(i=d3BrushSelection(i)),i}function et(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function tt(e=!0,t=0,n=1e4){const r=window.crypto||window.msCrypto,i=r?t+r.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(i):i}function M(e,t,n,r,i){if(n>r)return-1;const s=Math.floor((n+r)/2);let{x:o,w:l=0}=e[s];return i&&(o=e[s].y,l=e[s].h),t>=o&&t<=o+l?s:t{if(v(n)&&n.constructor){const r=new n.constructor;for(const i in n)r[i]=t(n[i]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>L(L({},n),r))}function Ee(e={},t){x(t)&&t.forEach(n=>Ee(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const it=e=>e.charAt(0).toUpperCase()+e.slice(1);function st(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const we=e=>[].slice.call(e);function ot(e,t,n){const{rootSelector:r="",sheet:i}=e,o=`${r} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function ct(e){let t=[];return e.forEach(n=>{var r;try{n.cssRules&&n.cssRules.length&&(t=t.concat(we(n.cssRules)))}catch(i){(r=window.console)==null||r.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),t}function lt(e){var t,n,r,i;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((i=(r=window.pageYOffset)!=null?r:window.scrollY)!=null?i:0)+e.scrollTop}}function at(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function ut(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((r,i,s)=>s.indexOf(r)===i);return t?n.map(r=>new Date(r)):n}function bt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function $(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return v(e)&&v(n)&&Object.keys(n).forEach(r=>{const i=n[r];v(i)?(!e[r]&&(e[r]={}),e[r]=$(e[r],i)):e[r]=x(i)?i.concat():i}),$(e,...t)}function Oe(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,i)=>r-i:(r,i)=>i-r:t&&!e.every(isNaN)?n=(r,i)=>r-i:t||(n=(r,i)=>r>i&&-1||rye(r));return n.length?_(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Oe(n,e==="min")[0]):n=void 0,n}const ft=(e,t,n=1)=>{const r=[],i=Math.max(0,Math.ceil((t-e)/n))|0;for(let s=e;s{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,r=e())=>{t.dispatchEvent(new MouseEvent(n,r))}}catch(t){return(n,r,i=e())=>{const s=fe.createEvent("MouseEvent");s.initMouseEvent(r,i.bubbles,i.cancelable,g,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(e,t,n)=>{const r=new Touch($({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function pt(e,t){let n=e;for(const r in t)n=n.replace(new RegExp(`{=${r}}`,"g"),t[r]);return n}function gt(e){var t;let n;if(e instanceof Date)n=e;else if(m(e)){const{config:r,format:i}=this;n=(t=i.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else _(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function mt(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function vt(e,t){const{DocumentTouch:n,matchMedia:r,navigator:i}=window;let s=!1;if(t)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)s=!0;else if(r!=null&&r("(pointer:coarse)").matches)s=!0;else{const l=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(l)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(l)}return e&&((r==null?void 0:r("any-hover:hover").matches)||(r==null?void 0:r("any-pointer:fine").matches))&&"mouse"||s&&"touch"||"mouse"}function Te(e,t){t()===!1?requestAnimationFrame(()=>Te(e,t)):e()}function Ae(e){const t=this.config;let n,r,i;const s=()=>{const o=r.shift();if(o&&n&&y(n)&&o in n)return n=n[o],s();if(!o)return n};Object.keys(t).forEach(o=>{n=e,r=o.split("_"),i=s(),D(i)&&(t[o]=i)}),this.api&&(this.state.orgConfig=e)}var Pe=Object.defineProperty,Ce=(e,t,n)=>t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>Ce(e,typeof t!="symbol"?t+"":t,n);class F{constructor(t={}){E(this,"$$"),E(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}E(F,"version","3.12.4-nightly-20240724004639");class Re{constructor(){return{selector:void 0}}}var Ie=Object.defineProperty,Se=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t,n)=>Se(e,typeof t!="symbol"?t+"":t,n);class j extends F{constructor(t){return super(t),w(this,"config"),w(this,"element"),this.config=new Re,this}$beforeInit(){Ae.call(this,this.options),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)}validate(){const{$$:t,config:n}=this;let r="";if((!n.selector||!document.querySelector(n.selector))&&(r="No holder elements found from given selector option."),(t.hasType("bubble")||t.hasType("scatter")||t.hasArcType(t.data.targets))&&(r="Contains non supported chart types."),r)throw new Error(`[Sparkline plugin] ${r}`)}overrideInternals(){const{$$:t}=this,{getBarW:n,getIndices:r}=t;t.getIndices=function(i,s,o){return o==="getShapeX"?{}:r.call(this,i,s)},t.getBarW=function(i,s){return n.call(this,i,s,1)}}overrideOptions(){const{config:t}=this.$$;if(t.legend_show=!1,t.resize_auto=!1,t.axis_x_show=!1,t.padding!==!1){const n=r=>Object.keys(r||{}).length>0;n(t.axis_x_padding)&&(t.axis_x_padding={left:15,right:15,unit:"px"}),n(t.axis_y_padding)&&(t.axis_y_padding=5)}t.axis_y_show=!1,t.tooltip_position||(t.tooltip_position=function(n,r,i){const{internal:{state:{event:s}}}=this;let o=s.pageY-i*1.35,l=s.pageX-r/2;return o<0&&(o=0),l<0&&(l=0),{top:o,left:l}})}$init(){var t;const{$$:{$el:n}}=this;n.chart.style("width","0").style("height","0").style("pointer-events","none"),(t=n.tooltip)!=null&&t.node()&&document.body.appendChild(n.tooltip.node())}$afterInit(){const{$$:t}=this;t.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents(t=!0){const{$$:{config:n}}=this;if(n.interaction_enabled&&n.tooltip_show){const r=`${t?"add":"remove"}EventListener`;this.element.forEach(i=>{const s=i.querySelector("svg");s[r]("mouseover",this.overHandler),s[r]("mousemove",this.moveHandler),s[r]("mouseout",this.outHandler)})}}overHandler(t){const{$$:n}=this,{state:{eventReceiver:r}}=n;r.rect=t.target.getBoundingClientRect()}moveHandler(t){var n,r,i,s;const{$$:o}=this,l=o.getDataIndexFromEvent(t),a=(n=o.api.data(t.target.__id))==null?void 0:n[0],u=(r=a==null?void 0:a.values)==null?void 0:r[l];u&&!u.name&&(u.name=u.id),o.state.event=t,(i=o.isPointFocusOnly)!=null&&i.call(o)&&u&&((s=o.showCircleFocus)==null||s.call(o,[u])),o.setExpand(l,a.id,!0),o.showTooltip([u],t.target)}outHandler(t){const{$$:n}=this;n.state.event=t,n.isPointFocusOnly()?n.hideCircleFocus():n.unexpandCircles(),n.hideTooltip()}$redraw(){var t;const{$$:n}=this,{$el:r}=n;let i=this.element;const s=n.api.data(),o=(t=r.chart.html().match(/]*>/))==null?void 0:t[0];if(i.length0;a--)l.parentNode.insertBefore(i[0].cloneNode(),l.nextSibling);this.element=document.querySelectorAll(this.config.selector),i=this.element}s.map(l=>l.id).forEach((l,a)=>{const u=`.${R.target}-${l}`,O=r.main.selectAll(u);let h=i[a].querySelector("svg");h||(i[a].innerHTML=`${o}`,h=i[a].querySelector("svg"),h.__id=l),h.querySelector(u)||O.style("opacity",null),O.style("fill","none").style("opacity",null),h.innerHTML="",h.appendChild(O.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach(t=>{t.innerHTML=""})}}return w(j,"version","0.0.1"),p=p.default,p}()}); +`),o=r?s.length-1:1;e.html(""),s.forEach((l,a)=>{e.append("tspan").attr("x",0).attr("dy",`${a===0?n[0]*o:n[1]}em`).text(l)})}}}function xe(e){const{x:t,y:n,width:r,height:i}=e.getBBox();return[{x:t,y:n+i},{x:t,y:n},{x:t+r,y:n},{x:t+r,y:n+i}]}function Je(e){const{width:t,height:n}=e.getBoundingClientRect(),r=xe(e),i=r[0].x,s=Math.min(r[0].y,r[1].y);return{x:i,y:s,width:t,height:n}}function Qe(e,t){var n;const r=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=d3Pointer(r||e,t)}catch(s){}return i.map(s=>isNaN(s)?0:s)}function $e(e){const{event:t,$el:n}=e,r=n.subchart.main||n.main;let i;return t&&t.type==="brush"?i=t.selection:r&&(i=r.select(".bb-brush").node())&&(i=d3BrushSelection(i)),i}function et(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function tt(e=!0,t=0,n=1e4){const r=window.crypto||window.msCrypto,i=r?t+r.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(i):i}function M(e,t,n,r,i){if(n>r)return-1;const s=Math.floor((n+r)/2);let{x:o,w:l=0}=e[s];return i&&(o=e[s].y,l=e[s].h),t>=o&&t<=o+l?s:t{if(v(n)&&n.constructor){const r=new n.constructor;for(const i in n)r[i]=t(n[i]);return r}return n};return e.map(n=>t(n)).reduce((n,r)=>L(L({},n),r))}function Ee(e={},t){x(t)&&t.forEach(n=>Ee(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const it=e=>e.charAt(0).toUpperCase()+e.slice(1);function st(e,t="-"){return e.split(t).map((n,r)=>r?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const we=e=>[].slice.call(e);function ot(e,t,n){const{rootSelector:r="",sheet:i}=e,o=`${r} ${(l=>l.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](o,i.cssRules.length)}function ct(e){let t=[];return e.forEach(n=>{var r;try{n.cssRules&&n.cssRules.length&&(t=t.concat(we(n.cssRules)))}catch(i){(r=window.console)==null||r.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),t}function lt(e){var t,n,r,i;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((i=(r=window.pageYOffset)!=null?r:window.scrollY)!=null?i:0)+e.scrollTop}}function at(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function ut(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((r,i,s)=>s.indexOf(r)===i);return t?n.map(r=>new Date(r)):n}function bt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function $(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return v(e)&&v(n)&&Object.keys(n).forEach(r=>{const i=n[r];v(i)?(!e[r]&&(e[r]={}),e[r]=$(e[r],i)):e[r]=x(i)?i.concat():i}),$(e,...t)}function Oe(e,t=!0){let n;return e[0]instanceof Date?n=t?(r,i)=>r-i:(r,i)=>i-r:t&&!e.every(isNaN)?n=(r,i)=>r-i:t||(n=(r,i)=>r>i&&-1||rye(r));return n.length?_(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Oe(n,e==="min")[0]):n=void 0,n}const ft=(e,t,n=1)=>{const r=[],i=Math.max(0,Math.ceil((t-e)/n))|0;for(let s=e;s{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,r=e())=>{t.dispatchEvent(new MouseEvent(n,r))}}catch(t){return(n,r,i=e())=>{const s=fe.createEvent("MouseEvent");s.initMouseEvent(r,i.bubbles,i.cancelable,g,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(e,t,n)=>{const r=new Touch($({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[r],targetTouches:[],changedTouches:[r]}))}};function pt(e,t){let n=e;for(const r in t)n=n.replace(new RegExp(`{=${r}}`,"g"),t[r]);return n}function gt(e){var t;let n;if(e instanceof Date)n=e;else if(m(e)){const{config:r,format:i}=this;n=(t=i.dataTime(r.data_xFormat)(e))!=null?t:new Date(e)}else _(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function mt(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function vt(e,t){const{DocumentTouch:n,matchMedia:r,navigator:i}=window;let s=!1;if(t)if(i&&"maxTouchPoints"in i)s=i.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)s=!0;else if(r!=null&&r("(pointer:coarse)").matches)s=!0;else{const l=i.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(l)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(l)}return e&&((r==null?void 0:r("any-hover:hover").matches)||(r==null?void 0:r("any-pointer:fine").matches))&&"mouse"||s&&"touch"||"mouse"}function Te(e,t){t()===!1?requestAnimationFrame(()=>Te(e,t)):e()}function Ae(e){const t=this.config;let n,r,i;const s=()=>{const o=r.shift();if(o&&n&&y(n)&&o in n)return n=n[o],s();if(!o)return n};Object.keys(t).forEach(o=>{n=e,r=o.split("_"),i=s(),D(i)&&(t[o]=i)}),this.api&&(this.state.orgConfig=e)}var Pe=Object.defineProperty,Ce=(e,t,n)=>t in e?Pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,E=(e,t,n)=>Ce(e,typeof t!="symbol"?t+"":t,n);class F{constructor(t={}){E(this,"$$"),E(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}E(F,"version","3.12.4-nightly-20240726004631");class Re{constructor(){return{selector:void 0}}}var Ie=Object.defineProperty,Se=(e,t,n)=>t in e?Ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,w=(e,t,n)=>Se(e,typeof t!="symbol"?t+"":t,n);class j extends F{constructor(t){return super(t),w(this,"config"),w(this,"element"),this.config=new Re,this}$beforeInit(){Ae.call(this,this.options),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)}validate(){const{$$:t,config:n}=this;let r="";if((!n.selector||!document.querySelector(n.selector))&&(r="No holder elements found from given selector option."),(t.hasType("bubble")||t.hasType("scatter")||t.hasArcType(t.data.targets))&&(r="Contains non supported chart types."),r)throw new Error(`[Sparkline plugin] ${r}`)}overrideInternals(){const{$$:t}=this,{getBarW:n,getIndices:r}=t;t.getIndices=function(i,s,o){return o==="getShapeX"?{}:r.call(this,i,s)},t.getBarW=function(i,s){return n.call(this,i,s,1)}}overrideOptions(){const{config:t}=this.$$;if(t.legend_show=!1,t.resize_auto=!1,t.axis_x_show=!1,t.padding!==!1){const n=r=>Object.keys(r||{}).length>0;n(t.axis_x_padding)&&(t.axis_x_padding={left:15,right:15,unit:"px"}),n(t.axis_y_padding)&&(t.axis_y_padding=5)}t.axis_y_show=!1,t.tooltip_position||(t.tooltip_position=function(n,r,i){const{internal:{state:{event:s}}}=this;let o=s.pageY-i*1.35,l=s.pageX-r/2;return o<0&&(o=0),l<0&&(l=0),{top:o,left:l}})}$init(){var t;const{$$:{$el:n}}=this;n.chart.style("width","0").style("height","0").style("pointer-events","none"),(t=n.tooltip)!=null&&t.node()&&document.body.appendChild(n.tooltip.node())}$afterInit(){const{$$:t}=this;t.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents(t=!0){const{$$:{config:n}}=this;if(n.interaction_enabled&&n.tooltip_show){const r=`${t?"add":"remove"}EventListener`;this.element.forEach(i=>{const s=i.querySelector("svg");s[r]("mouseover",this.overHandler),s[r]("mousemove",this.moveHandler),s[r]("mouseout",this.outHandler)})}}overHandler(t){const{$$:n}=this,{state:{eventReceiver:r}}=n;r.rect=t.target.getBoundingClientRect()}moveHandler(t){var n,r,i,s;const{$$:o}=this,l=o.getDataIndexFromEvent(t),a=(n=o.api.data(t.target.__id))==null?void 0:n[0],u=(r=a==null?void 0:a.values)==null?void 0:r[l];u&&!u.name&&(u.name=u.id),o.state.event=t,(i=o.isPointFocusOnly)!=null&&i.call(o)&&u&&((s=o.showCircleFocus)==null||s.call(o,[u])),o.setExpand(l,a.id,!0),o.showTooltip([u],t.target)}outHandler(t){const{$$:n}=this;n.state.event=t,n.isPointFocusOnly()?n.hideCircleFocus():n.unexpandCircles(),n.hideTooltip()}$redraw(){var t;const{$$:n}=this,{$el:r}=n;let i=this.element;const s=n.api.data(),o=(t=r.chart.html().match(/]*>/))==null?void 0:t[0];if(i.length0;a--)l.parentNode.insertBefore(i[0].cloneNode(),l.nextSibling);this.element=document.querySelectorAll(this.config.selector),i=this.element}s.map(l=>l.id).forEach((l,a)=>{const u=`.${R.target}-${l}`,O=r.main.selectAll(u);let h=i[a].querySelector("svg");h||(i[a].innerHTML=`${o}`,h=i[a].querySelector("svg"),h.__id=l),h.querySelector(u)||O.style("opacity",null),O.style("fill","none").style("opacity",null),h.innerHTML="",h.appendChild(O.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach(t=>{t.innerHTML=""})}}return w(j,"version","0.0.1"),p=p.default,p}()}); diff --git a/dist/plugin/billboardjs-plugin-stanford.js b/dist/plugin/billboardjs-plugin-stanford.js index 827d80d20..f53de3757 100644 --- a/dist/plugin/billboardjs-plugin-stanford.js +++ b/dist/plugin/billboardjs-plugin-stanford.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -814,7 +814,7 @@ class Plugin { }); } } -__publicField(Plugin, "version", "3.12.4-nightly-20240724004639"); +__publicField(Plugin, "version", "3.12.4-nightly-20240726004631"); // EXTERNAL MODULE: external {"commonjs":"d3-axis","commonjs2":"d3-axis","amd":"d3-axis","root":"d3"} var external_commonjs_d3_axis_commonjs2_d3_axis_amd_d3_axis_root_d3_ = __webpack_require__(8); diff --git a/dist/plugin/billboardjs-plugin-stanford.min.js b/dist/plugin/billboardjs-plugin-stanford.min.js index a4b06260c..d89f9395c 100644 --- a/dist/plugin/billboardjs-plugin-stanford.min.js +++ b/dist/plugin/billboardjs-plugin-stanford.min.js @@ -5,12 +5,12 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */(function(f,_){typeof exports=="object"&&typeof module=="object"?module.exports=_(require("d3-color"),require("d3-interpolate"),require("d3-scale"),require("d3-brush"),require("d3-selection"),require("d3-axis"),require("d3-format")):typeof define=="function"&&define.amd?define("bb",["d3-color","d3-interpolate","d3-scale","d3-brush","d3-selection","d3-axis","d3-format"],_):typeof exports=="object"?exports.bb=_(require("d3-color"),require("d3-interpolate"),require("d3-scale"),require("d3-brush"),require("d3-selection"),require("d3-axis"),require("d3-format")):(f.bb=f.bb||{},f.bb.plugin=f.bb.plugin||{},f.bb.plugin.stanford=_(f.d3,f.d3,f.d3,f.d3,f.d3,f.d3,f.d3))})(this,function(j,f,_,z,H,K,W){return function(){"use strict";var Z={996:function(e){e.exports=K},853:function(e){e.exports=z},218:function(e){e.exports=j},390:function(e){e.exports=W},798:function(e){e.exports=f},455:function(e){e.exports=_},747:function(e){e.exports=H}},M={};function h(e){var t=M[e];if(t!==void 0)return t.exports;var n=M[e]={exports:{}};return Z[e](n,n.exports,h),n.exports}(function(){h.d=function(e,t){for(var n in t)h.o(t,n)&&!h.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),function(){h.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();var y={};h.d(y,{default:function(){return st}});var I=h(218),J=h(798),E=h(455),Q=Object.defineProperty,D=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,N=(e,t,n)=>t in e?Q(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))ee.call(t,n)&&N(e,n,t[n]);if(D)for(var n of D(t))te.call(t,n)&&N(e,n,t[n]);return e};const ne={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},oe={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},re={area:"bb-area",areas:"bb-areas"},se={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},ae={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},ie={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},ce={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},le={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},ue={dragarea:"bb-dragarea",INCLUDED:"_included_"},de={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},be={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},fe={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},he={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},pe={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},ge={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},me={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},it={level:"bb-level",levels:"bb-levels"},_e={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},xe={region:"bb-region",regions:"bb-regions"},ye={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},ve={shape:"bb-shape",shapes:"bb-shapes"},$e={brush:"bb-brush",subchart:"bb-subchart"},we={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},S={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Ee={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Se={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var ct=u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u({},ne),oe),re),se),ae),ie),ce),le),ue),be),fe),he),pe),ge),de),me),_e),xe),ye),ve),$e),we),S),Ee),Se),lt=h(853),ut=h(747);function Ce(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Oe(e){const t=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",n=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",o=s=>setTimeout(s,1),r=s=>clearTimeout(s);return[t?e.requestAnimationFrame:o,t?e.cancelAnimationFrame:r,n?e.requestIdleCallback:o,n?e.cancelIdleCallback:r]}const v=Ce(),Pe=v==null?void 0:v.document,[dt,bt,ft,ht]=Oe(v);var Re=Object.defineProperty,F=Object.getOwnPropertySymbols,Ae=Object.prototype.hasOwnProperty,Te=Object.prototype.propertyIsEnumerable,q=(e,t,n)=>t in e?Re(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))Ae.call(t,n)&&q(e,n,t[n]);if(F)for(var n of F(t))Te.call(t,n)&&q(e,n,t[n]);return e};const pt=e=>e||e===0,C=e=>typeof e=="function",x=e=>typeof e=="string",O=e=>typeof e=="number",Le=e=>typeof e=="undefined",U=e=>typeof e!="undefined",gt=e=>typeof e=="boolean",mt=e=>Math.ceil(e/10)*10,_t=e=>Math.ceil(e)+.5,xt=e=>e[1]-e[0],P=e=>typeof e=="object",X=e=>Le(e)||e===null||x(e)&&e.length===0||P(e)&&!(e instanceof Date)&&Object.keys(e).length===0||O(e)&&isNaN(e),je=e=>!X(e),R=e=>Array.isArray(e),$=e=>e&&!(e!=null&&e.nodeType)&&P(e)&&!R(e);function yt(e,t,n){return U(e[t])?e[t]:n}function vt(e,t){let n=!1;return Object.keys(e).forEach(o=>e[o]===t&&(n=!0)),n}function $t(e,t,...n){const o=C(e);return o&&e.call(t,...n),o}function wt(e,t){let n=0;const o=function(...r){!--n&&t.apply(this,...r)};"duration"in e?e.each(()=>++n).on("end",o):(++n,e.call(o))}function Et(e){return x(e)?e.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):e}function St(e,t,n=[-1,1],o=!1){if(!(!e||!x(t)))if(t.indexOf(` `)===-1)e.text(t);else{const r=[e.text(),t].map(s=>s.replace(/[\s\n]/g,""));if(r[0]!==r[1]){const s=t.split(` -`),a=o?s.length-1:1;e.html(""),s.forEach((i,d)=>{e.append("tspan").attr("x",0).attr("dy",`${d===0?n[0]*a:n[1]}em`).text(i)})}}}function Me(e){const{x:t,y:n,width:o,height:r}=e.getBBox();return[{x:t,y:n+r},{x:t,y:n},{x:t+o,y:n},{x:t+o,y:n+r}]}function Ct(e){const{width:t,height:n}=e.getBoundingClientRect(),o=Me(e),r=o[0].x,s=Math.min(o[0].y,o[1].y);return{x:r,y:s,width:t,height:n}}function Ot(e,t){var n;const o=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let r=[0,0];try{r=d3Pointer(o||e,t)}catch(s){}return r.map(s=>isNaN(s)?0:s)}function Ie(e){const{event:t,$el:n}=e,o=n.subchart.main||n.main;let r;return t&&t.type==="brush"?r=t.selection:o&&(r=o.select(".bb-brush").node())&&(r=d3BrushSelection(r)),r}function Pt(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Rt(e=!0,t=0,n=1e4){const o=window.crypto||window.msCrypto,r=o?t+o.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(r):r}function Y(e,t,n,o,r){if(n>o)return-1;const s=Math.floor((n+o)/2);let{x:a,w:i=0}=e[s];return r&&(a=e[s].y,i=e[s].h),t>=a&&t<=a+i?s:t{if($(n)&&n.constructor){const o=new n.constructor;for(const r in n)o[r]=t(n[r]);return o}return n};return e.map(n=>t(n)).reduce((n,o)=>B(B({},n),o))}function De(e={},t){R(t)&&t.forEach(n=>De(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const Lt=e=>e.charAt(0).toUpperCase()+e.slice(1);function jt(e,t="-"){return e.split(t).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Ne=e=>[].slice.call(e);function Mt(e,t,n){const{rootSelector:o="",sheet:r}=e,a=`${o} ${(i=>i.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](a,r.cssRules.length)}function It(e){let t=[];return e.forEach(n=>{var o;try{n.cssRules&&n.cssRules.length&&(t=t.concat(Ne(n.cssRules)))}catch(r){(o=window.console)==null||o.warn(`Error while reading rules from ${n.href}: ${r.toString()}`)}}),t}function Dt(e){var t,n,o,r;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((r=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?r:0)+e.scrollTop}}function Nt(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ft(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((o,r,s)=>s.indexOf(o)===r);return t?n.map(o=>new Date(o)):n}function qt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function A(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return $(e)&&$(n)&&Object.keys(n).forEach(o=>{const r=n[o];$(r)?(!e[o]&&(e[o]={}),e[o]=A(e[o],r)):e[o]=R(r)?r.concat():r}),A(e,...t)}function Fe(e,t=!0){let n;return e[0]instanceof Date?n=t?(o,r)=>o-r:(o,r)=>r-o:t&&!e.every(isNaN)?n=(o,r)=>o-r:t||(n=(o,r)=>o>r&&-1||oje(o));return n.length?O(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Fe(n,e==="min")[0]):n=void 0,n}const qe=(e,t,n=1)=>{const o=[],r=Math.max(0,Math.ceil((t-e)/n))|0;for(let s=e;s{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,o=e())=>{t.dispatchEvent(new MouseEvent(n,o))}}catch(t){return(n,o,r=e())=>{const s=Pe.createEvent("MouseEvent");s.initMouseEvent(o,r.bubbles,r.cancelable,v,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(e,t,n)=>{const o=new Touch(A({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function Xt(e,t){let n=e;for(const o in t)n=n.replace(new RegExp(`{=${o}}`,"g"),t[o]);return n}function Be(e){var t;let n;if(e instanceof Date)n=e;else if(x(e)){const{config:o,format:r}=this;n=(t=r.dataTime(o.data_xFormat)(e))!=null?t:new Date(e)}else O(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function Yt(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function Gt(e,t){const{DocumentTouch:n,matchMedia:o,navigator:r}=window;let s=!1;if(t)if(r&&"maxTouchPoints"in r)s=r.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)s=!0;else if(o!=null&&o("(pointer:coarse)").matches)s=!0;else{const i=r.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(i)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(i)}return e&&((o==null?void 0:o("any-hover:hover").matches)||(o==null?void 0:o("any-pointer:fine").matches))&&"mouse"||s&&"touch"||"mouse"}function Ue(e,t){t()===!1?requestAnimationFrame(()=>Ue(e,t)):e()}function Xe(e){const t=this.config;let n,o,r;const s=()=>{const a=o.shift();if(a&&n&&P(n)&&a in n)return n=n[a],s();if(!a)return n};Object.keys(t).forEach(a=>{n=e,o=a.split("_"),r=s(),U(r)&&(t[a]=r)}),this.api&&(this.state.orgConfig=e)}var Ye=Object.defineProperty,Ge=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>Ge(e,typeof t!="symbol"?t+"":t,n);class G{constructor(t={}){T(this,"$$"),T(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}T(G,"version","3.12.4-nightly-20240724004639");var Ve=h(996),ke=h(390),p={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},ze=Object.defineProperty,He=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t,n)=>He(e,typeof t!="symbol"?t+"":t,n);class Ke{constructor(t){V(this,"owner"),V(this,"colorScale"),this.owner=t}drawColorScale(){const{$$:t,config:n}=this.owner,o=t.data.targets[0],r=t.state.height-n.padding_bottom-n.padding_top,s=n.scale_width,a=5,i=qe(n.padding_bottom,r,a),d=(0,E.scaleSequential)(o.colors).domain([i[i.length-1],i[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=t.$el.svg.append("g").attr("width",50).attr("height",r).attr("class",p.colorScale),this.colorScale.append("g").attr("transform",`translate(0, ${n.padding_top})`).selectAll("bars").data(i).enter().append("rect").attr("y",(m,at)=>at*a).attr("x",0).attr("width",s).attr("height",a).attr("fill",m=>d(m));const b=(0,E.scaleSymlog)().domain([o.minEpochs,o.maxEpochs]).range([i[0]+n.padding_top+i[i.length-1]+a-1,i[0]+n.padding_top]),c=(0,Ve.axisRight)(b),l=n.scale_format;l==="pow10"?c.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):C(l)?c.tickFormat(l):c.tickFormat((0,ke.format)("d"));const g=this.colorScale.append("g").attr("class","legend axis").attr("transform",`translate(${s},0)`).call(c);l==="pow10"&&g.selectAll(".tick text").text(null).filter(m=>m/Math.pow(10,Math.ceil(Math.log(m)/Math.LN10-1e-12))===1).text(10).append("tspan").attr("dy","-.7em").text(m=>Math.round(Math.log(m)/Math.LN10)),this.colorScale.attr("transform",`translate(${t.state.current.width-this.xForColorScale()}, 0)`)}xForColorScale(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width}getColorScalePadding(){return this.xForColorScale()+this.owner.config.padding_left+20}}function We(e,t){const n=e.x,o=e.value;let r=!1;for(let s=0,a=t.length-1;so!=c>o&&n<(b-i)*(o-d)/(c-d)+i&&(r=!r)}return r}function Ze(e,t){return e.epochst.epochs?1:0}function Je(e){let t=0,n,o;for(let r=0,s=e.length,a=s-1;rt in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t,n)=>et(e,typeof t!="symbol"?t+"":t,n);class nt{constructor(t){tt(this,"owner"),this.owner=t;const n=t.$$.$el.main.select(".bb-chart").append("g").attr("class",p.stanfordElements);n.append("g").attr("class",p.stanfordLines),n.append("g").attr("class",p.stanfordRegions)}updateStanfordLines(t){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),d=r.select(`.${p.stanfordLines}`).style("shape-rendering","geometricprecision").selectAll(`.${p.stanfordLine}`).data(this.owner.config.lines);d.exit().transition().duration(t).style("opacity","0").remove();const b=d.enter().append("g");b.append("line").style("opacity","0"),b.merge(d).attr("class",c=>p.stanfordLine+(c.class?` ${c.class}`:"")).select("line").transition().duration(t).attr("x1",c=>s?i(c,"y1"):a(c,"x1")).attr("x2",c=>s?i(c,"y2"):a(c,"x2")).attr("y1",c=>s?a(c,"x1"):i(c,"y1")).attr("y2",c=>s?a(c,"x2"):i(c,"y2")).transition().style("opacity",null)}updateStanfordRegions(t){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),d=this.owner.countEpochsInRegion.bind(n);let b=r.select(`.${p.stanfordRegions}`).selectAll(`.${p.stanfordRegion}`).data(this.owner.config.regions);b.exit().transition().duration(t).style("opacity","0").remove();const c=b.enter().append("g");c.append("polygon").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),b=c.merge(b),b.attr("class",l=>p.stanfordRegion+(l.class?` ${l.class}`:"")).select("polygon").transition().duration(t).attr("points",l=>l.points.map(g=>[s?i(g,"y"):a(g,"x"),s?a(g,"x"):i(g,"y")].join(",")).join(" ")).transition().style("opacity",l=>String(l.opacity?l.opacity:.2)),b.select("text").transition().duration(t).attr("x",l=>s?i(w(l.points),"y"):a(w(l.points),"x")).attr("y",l=>s?a(w(l.points),"x"):i(w(l.points),"y")).text(l=>{if(l.text){const{value:g,percentage:m}=d(l.points);return l.text(g,m)}return""}).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)}updateStanfordElements(t=0){this.updateStanfordLines(t),this.updateStanfordRegions(t)}xvCustom(t,n){const o=this,{axis:r,config:s}=o;let a=n?t[n]:o.getBaseValue(t);return r.isTimeSeries()?a=Be.call(o,a):r.isCategorized()&&x(a)&&(a=s.axis_x_categories.indexOf(t.value)),Math.ceil(o.scale.x(a))}yvCustom(t,n){const o=this,r=t.axis&&t.axis==="y2"?o.scale.y2:o.scale.y,s=n?t[n]:o.getBaseValue(t);return Math.ceil(r(s))}}class k{constructor(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}}}var ot=Object.defineProperty,rt=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L=(e,t,n)=>rt(e,typeof t!="symbol"?t+"":t,n);class st extends G{constructor(t){return super(t),L(this,"config"),L(this,"colorScale"),L(this,"elements"),this.config=new k,this}$beforeInit(){const{$$:t}=this;t.config.data_xSort=!1,t.isMultipleX=()=>!0,t.showGridFocus=()=>{},t.labelishData=o=>o.values,t.opacityForCircle=()=>1;const n=t.getCurrentPadding.bind(t);t.getCurrentPadding=()=>{const o=n();return o.right+=this.colorScale?this.colorScale.getColorScalePadding():0,o}}$init(){const{$$:t}=this;Xe.call(this,this.options),t.color=this.getStanfordPointColor.bind(t),this.colorScale=new Ke(this),this.elements=new nt(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),t.right+=this.colorScale?this.colorScale.getColorScalePadding():0,this.$redraw()}$redraw(t){var n,o;(n=this.colorScale)==null||n.drawColorScale(),(o=this.elements)==null||o.updateStanfordElements(t)}getOptions(){return new k}convertData(){const t=this.$$.data.targets,n=this.options.epochs;t.forEach(o=>{o.values.forEach((r,s)=>{r.epochs=n[s]}),o.minEpochs=void 0,o.maxEpochs=void 0,o.colors=void 0,o.colorscale=void 0})}initStanfordData(){const{config:t}=this,n=this.$$.data.targets[0];n.values.sort(Ze);const o=n.values.map(r=>r.epochs);n.minEpochs=isNaN(t.scale_min)?Math.min(...o):t.scale_min,n.maxEpochs=isNaN(t.scale_max)?Math.max(...o):t.scale_max,n.colors=C(t.colors)?t.colors:(0,J.interpolateHslLong)((0,I.hsl)(250,1,.5),(0,I.hsl)(0,1,.5)),n.colorscale=(0,E.scaleSequentialLog)(n.colors).domain([n.minEpochs,n.maxEpochs])}getStanfordPointColor(t){return this.data.targets[0].colorscale(t.epochs)}setStanfordTooltip(){const{config:t}=this.$$;X(t.tooltip_contents)&&(t.tooltip_contents=function(n,o,r,s){const{data_x:a}=t;let i=``;return n.forEach(d=>{const{id:b="",value:c=0,epochs:l=0,x:g=""}=d;i+=` +`),a=o?s.length-1:1;e.html(""),s.forEach((i,d)=>{e.append("tspan").attr("x",0).attr("dy",`${d===0?n[0]*a:n[1]}em`).text(i)})}}}function Me(e){const{x:t,y:n,width:o,height:r}=e.getBBox();return[{x:t,y:n+r},{x:t,y:n},{x:t+o,y:n},{x:t+o,y:n+r}]}function Ct(e){const{width:t,height:n}=e.getBoundingClientRect(),o=Me(e),r=o[0].x,s=Math.min(o[0].y,o[1].y);return{x:r,y:s,width:t,height:n}}function Ot(e,t){var n;const o=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let r=[0,0];try{r=d3Pointer(o||e,t)}catch(s){}return r.map(s=>isNaN(s)?0:s)}function Ie(e){const{event:t,$el:n}=e,o=n.subchart.main||n.main;let r;return t&&t.type==="brush"?r=t.selection:o&&(r=o.select(".bb-brush").node())&&(r=d3BrushSelection(r)),r}function Pt(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Rt(e=!0,t=0,n=1e4){const o=window.crypto||window.msCrypto,r=o?t+o.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(r):r}function Y(e,t,n,o,r){if(n>o)return-1;const s=Math.floor((n+o)/2);let{x:a,w:i=0}=e[s];return r&&(a=e[s].y,i=e[s].h),t>=a&&t<=a+i?s:t{if($(n)&&n.constructor){const o=new n.constructor;for(const r in n)o[r]=t(n[r]);return o}return n};return e.map(n=>t(n)).reduce((n,o)=>B(B({},n),o))}function De(e={},t){R(t)&&t.forEach(n=>De(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const Lt=e=>e.charAt(0).toUpperCase()+e.slice(1);function jt(e,t="-"){return e.split(t).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const Ne=e=>[].slice.call(e);function Mt(e,t,n){const{rootSelector:o="",sheet:r}=e,a=`${o} ${(i=>i.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](a,r.cssRules.length)}function It(e){let t=[];return e.forEach(n=>{var o;try{n.cssRules&&n.cssRules.length&&(t=t.concat(Ne(n.cssRules)))}catch(r){(o=window.console)==null||o.warn(`Error while reading rules from ${n.href}: ${r.toString()}`)}}),t}function Dt(e){var t,n,o,r;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((r=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?r:0)+e.scrollTop}}function Nt(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ft(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((o,r,s)=>s.indexOf(o)===r);return t?n.map(o=>new Date(o)):n}function qt(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function A(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return $(e)&&$(n)&&Object.keys(n).forEach(o=>{const r=n[o];$(r)?(!e[o]&&(e[o]={}),e[o]=A(e[o],r)):e[o]=R(r)?r.concat():r}),A(e,...t)}function Fe(e,t=!0){let n;return e[0]instanceof Date?n=t?(o,r)=>o-r:(o,r)=>r-o:t&&!e.every(isNaN)?n=(o,r)=>o-r:t||(n=(o,r)=>o>r&&-1||oje(o));return n.length?O(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Fe(n,e==="min")[0]):n=void 0,n}const qe=(e,t,n=1)=>{const o=[],r=Math.max(0,Math.ceil((t-e)/n))|0;for(let s=e;s{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,o=e())=>{t.dispatchEvent(new MouseEvent(n,o))}}catch(t){return(n,o,r=e())=>{const s=Pe.createEvent("MouseEvent");s.initMouseEvent(o,r.bubbles,r.cancelable,v,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(s)}}})(),touch:(e,t,n)=>{const o=new Touch(A({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function Xt(e,t){let n=e;for(const o in t)n=n.replace(new RegExp(`{=${o}}`,"g"),t[o]);return n}function Be(e){var t;let n;if(e instanceof Date)n=e;else if(x(e)){const{config:o,format:r}=this;n=(t=r.dataTime(o.data_xFormat)(e))!=null?t:new Date(e)}else O(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function Yt(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function Gt(e,t){const{DocumentTouch:n,matchMedia:o,navigator:r}=window;let s=!1;if(t)if(r&&"maxTouchPoints"in r)s=r.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)s=!0;else if(o!=null&&o("(pointer:coarse)").matches)s=!0;else{const i=r.userAgent;s=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(i)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(i)}return e&&((o==null?void 0:o("any-hover:hover").matches)||(o==null?void 0:o("any-pointer:fine").matches))&&"mouse"||s&&"touch"||"mouse"}function Ue(e,t){t()===!1?requestAnimationFrame(()=>Ue(e,t)):e()}function Xe(e){const t=this.config;let n,o,r;const s=()=>{const a=o.shift();if(a&&n&&P(n)&&a in n)return n=n[a],s();if(!a)return n};Object.keys(t).forEach(a=>{n=e,o=a.split("_"),r=s(),U(r)&&(t[a]=r)}),this.api&&(this.state.orgConfig=e)}var Ye=Object.defineProperty,Ge=(e,t,n)=>t in e?Ye(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,T=(e,t,n)=>Ge(e,typeof t!="symbol"?t+"":t,n);class G{constructor(t={}){T(this,"$$"),T(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}T(G,"version","3.12.4-nightly-20240726004631");var Ve=h(996),ke=h(390),p={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},ze=Object.defineProperty,He=(e,t,n)=>t in e?ze(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,V=(e,t,n)=>He(e,typeof t!="symbol"?t+"":t,n);class Ke{constructor(t){V(this,"owner"),V(this,"colorScale"),this.owner=t}drawColorScale(){const{$$:t,config:n}=this.owner,o=t.data.targets[0],r=t.state.height-n.padding_bottom-n.padding_top,s=n.scale_width,a=5,i=qe(n.padding_bottom,r,a),d=(0,E.scaleSequential)(o.colors).domain([i[i.length-1],i[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=t.$el.svg.append("g").attr("width",50).attr("height",r).attr("class",p.colorScale),this.colorScale.append("g").attr("transform",`translate(0, ${n.padding_top})`).selectAll("bars").data(i).enter().append("rect").attr("y",(m,at)=>at*a).attr("x",0).attr("width",s).attr("height",a).attr("fill",m=>d(m));const b=(0,E.scaleSymlog)().domain([o.minEpochs,o.maxEpochs]).range([i[0]+n.padding_top+i[i.length-1]+a-1,i[0]+n.padding_top]),c=(0,Ve.axisRight)(b),l=n.scale_format;l==="pow10"?c.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):C(l)?c.tickFormat(l):c.tickFormat((0,ke.format)("d"));const g=this.colorScale.append("g").attr("class","legend axis").attr("transform",`translate(${s},0)`).call(c);l==="pow10"&&g.selectAll(".tick text").text(null).filter(m=>m/Math.pow(10,Math.ceil(Math.log(m)/Math.LN10-1e-12))===1).text(10).append("tspan").attr("dy","-.7em").text(m=>Math.round(Math.log(m)/Math.LN10)),this.colorScale.attr("transform",`translate(${t.state.current.width-this.xForColorScale()}, 0)`)}xForColorScale(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width}getColorScalePadding(){return this.xForColorScale()+this.owner.config.padding_left+20}}function We(e,t){const n=e.x,o=e.value;let r=!1;for(let s=0,a=t.length-1;so!=c>o&&n<(b-i)*(o-d)/(c-d)+i&&(r=!r)}return r}function Ze(e,t){return e.epochst.epochs?1:0}function Je(e){let t=0,n,o;for(let r=0,s=e.length,a=s-1;rt in e?Qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tt=(e,t,n)=>et(e,typeof t!="symbol"?t+"":t,n);class nt{constructor(t){tt(this,"owner"),this.owner=t;const n=t.$$.$el.main.select(".bb-chart").append("g").attr("class",p.stanfordElements);n.append("g").attr("class",p.stanfordLines),n.append("g").attr("class",p.stanfordRegions)}updateStanfordLines(t){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),d=r.select(`.${p.stanfordLines}`).style("shape-rendering","geometricprecision").selectAll(`.${p.stanfordLine}`).data(this.owner.config.lines);d.exit().transition().duration(t).style("opacity","0").remove();const b=d.enter().append("g");b.append("line").style("opacity","0"),b.merge(d).attr("class",c=>p.stanfordLine+(c.class?` ${c.class}`:"")).select("line").transition().duration(t).attr("x1",c=>s?i(c,"y1"):a(c,"x1")).attr("x2",c=>s?i(c,"y2"):a(c,"x2")).attr("y1",c=>s?a(c,"x1"):i(c,"y1")).attr("y2",c=>s?a(c,"x2"):i(c,"y2")).transition().style("opacity",null)}updateStanfordRegions(t){const{$$:n}=this.owner,{config:o,$el:{main:r}}=n,s=o.axis_rotated,a=this.xvCustom.bind(n),i=this.yvCustom.bind(n),d=this.owner.countEpochsInRegion.bind(n);let b=r.select(`.${p.stanfordRegions}`).selectAll(`.${p.stanfordRegion}`).data(this.owner.config.regions);b.exit().transition().duration(t).style("opacity","0").remove();const c=b.enter().append("g");c.append("polygon").style("opacity","0"),c.append("text").attr("transform",s?"rotate(-90)":"").style("opacity","0"),b=c.merge(b),b.attr("class",l=>p.stanfordRegion+(l.class?` ${l.class}`:"")).select("polygon").transition().duration(t).attr("points",l=>l.points.map(g=>[s?i(g,"y"):a(g,"x"),s?a(g,"x"):i(g,"y")].join(",")).join(" ")).transition().style("opacity",l=>String(l.opacity?l.opacity:.2)),b.select("text").transition().duration(t).attr("x",l=>s?i(w(l.points),"y"):a(w(l.points),"x")).attr("y",l=>s?a(w(l.points),"x"):i(w(l.points),"y")).text(l=>{if(l.text){const{value:g,percentage:m}=d(l.points);return l.text(g,m)}return""}).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)}updateStanfordElements(t=0){this.updateStanfordLines(t),this.updateStanfordRegions(t)}xvCustom(t,n){const o=this,{axis:r,config:s}=o;let a=n?t[n]:o.getBaseValue(t);return r.isTimeSeries()?a=Be.call(o,a):r.isCategorized()&&x(a)&&(a=s.axis_x_categories.indexOf(t.value)),Math.ceil(o.scale.x(a))}yvCustom(t,n){const o=this,r=t.axis&&t.axis==="y2"?o.scale.y2:o.scale.y,s=n?t[n]:o.getBaseValue(t);return Math.ceil(r(s))}}class k{constructor(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}}}var ot=Object.defineProperty,rt=(e,t,n)=>t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,L=(e,t,n)=>rt(e,typeof t!="symbol"?t+"":t,n);class st extends G{constructor(t){return super(t),L(this,"config"),L(this,"colorScale"),L(this,"elements"),this.config=new k,this}$beforeInit(){const{$$:t}=this;t.config.data_xSort=!1,t.isMultipleX=()=>!0,t.showGridFocus=()=>{},t.labelishData=o=>o.values,t.opacityForCircle=()=>1;const n=t.getCurrentPadding.bind(t);t.getCurrentPadding=()=>{const o=n();return o.right+=this.colorScale?this.colorScale.getColorScalePadding():0,o}}$init(){const{$$:t}=this;Xe.call(this,this.options),t.color=this.getStanfordPointColor.bind(t),this.colorScale=new Ke(this),this.elements=new nt(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),t.right+=this.colorScale?this.colorScale.getColorScalePadding():0,this.$redraw()}$redraw(t){var n,o;(n=this.colorScale)==null||n.drawColorScale(),(o=this.elements)==null||o.updateStanfordElements(t)}getOptions(){return new k}convertData(){const t=this.$$.data.targets,n=this.options.epochs;t.forEach(o=>{o.values.forEach((r,s)=>{r.epochs=n[s]}),o.minEpochs=void 0,o.maxEpochs=void 0,o.colors=void 0,o.colorscale=void 0})}initStanfordData(){const{config:t}=this,n=this.$$.data.targets[0];n.values.sort(Ze);const o=n.values.map(r=>r.epochs);n.minEpochs=isNaN(t.scale_min)?Math.min(...o):t.scale_min,n.maxEpochs=isNaN(t.scale_max)?Math.max(...o):t.scale_max,n.colors=C(t.colors)?t.colors:(0,J.interpolateHslLong)((0,I.hsl)(250,1,.5),(0,I.hsl)(0,1,.5)),n.colorscale=(0,E.scaleSequentialLog)(n.colors).domain([n.minEpochs,n.maxEpochs])}getStanfordPointColor(t){return this.data.targets[0].colorscale(t.epochs)}setStanfordTooltip(){const{config:t}=this.$$;X(t.tooltip_contents)&&(t.tooltip_contents=function(n,o,r,s){const{data_x:a}=t;let i=`
`;return n.forEach(d=>{const{id:b="",value:c=0,epochs:l=0,x:g=""}=d;i+=` diff --git a/dist/plugin/billboardjs-plugin-tableview.js b/dist/plugin/billboardjs-plugin-tableview.js index e3d7e22cc..9b3d336cf 100644 --- a/dist/plugin/billboardjs-plugin-tableview.js +++ b/dist/plugin/billboardjs-plugin-tableview.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -596,7 +596,7 @@ class Plugin { }); } } -__publicField(Plugin, "version", "3.12.4-nightly-20240724004639"); +__publicField(Plugin, "version", "3.12.4-nightly-20240726004631"); ;// CONCATENATED MODULE: ./src/Plugin/tableview/const.ts diff --git a/dist/plugin/billboardjs-plugin-tableview.min.js b/dist/plugin/billboardjs-plugin-tableview.min.js index 7f3c841ff..cccc167f6 100644 --- a/dist/plugin/billboardjs-plugin-tableview.min.js +++ b/dist/plugin/billboardjs-plugin-tableview.min.js @@ -5,12 +5,12 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */(function(c,u){typeof exports=="object"&&typeof module=="object"?module.exports=u(require("d3-brush"),require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-brush","d3-selection"],u):typeof exports=="object"?exports.bb=u(require("d3-brush"),require("d3-selection")):(c.bb=c.bb||{},c.bb.plugin=c.bb.plugin||{},c.bb.plugin.tableview=u(c.d3,c.d3))})(this,function(j,c){return function(){"use strict";var u={853:function(e){e.exports=j},747:function(e){e.exports=c}},C={};function a(e){var t=C[e];if(t!==void 0)return t.exports;var n=C[e]={exports:{}};return u[e](n,n.exports,a),n.exports}(function(){a.d=function(e,t){for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}})(),function(){a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}();var p={};a.d(p,{default:function(){return fe}});var he=a(853),be=a(747);function R(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function q(e){const t=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",n=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",o=r=>setTimeout(r,1),i=r=>clearTimeout(r);return[t?e.requestAnimationFrame:o,t?e.cancelAnimationFrame:i,n?e.requestIdleCallback:o,n?e.cancelIdleCallback:i]}const m=R(),V=m==null?void 0:m.document,[pe,me,ge,_e]=q(m);var L=Object.defineProperty,S=Object.getOwnPropertySymbols,U=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,M=(e,t,n)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,D=(e,t)=>{for(var n in t||(t={}))U.call(t,n)&&M(e,n,t[n]);if(S)for(var n of S(t))z.call(t,n)&&M(e,n,t[n]);return e};const ve=e=>e||e===0,X=e=>typeof e=="function",g=e=>typeof e=="string",_=e=>typeof e=="number",Y=e=>typeof e=="undefined",A=e=>typeof e!="undefined",ye=e=>typeof e=="boolean",we=e=>Math.ceil(e/10)*10,Oe=e=>Math.ceil(e)+.5,xe=e=>e[1]-e[0],O=e=>typeof e=="object",H=e=>Y(e)||e===null||g(e)&&e.length===0||O(e)&&!(e instanceof Date)&&Object.keys(e).length===0||_(e)&&isNaN(e),k=e=>!H(e),x=e=>Array.isArray(e),v=e=>e&&!(e!=null&&e.nodeType)&&O(e)&&!x(e);function Ee(e,t,n){return A(e[t])?e[t]:n}function Pe(e,t){let n=!1;return Object.keys(e).forEach(o=>e[o]===t&&(n=!0)),n}function $e(e,t,...n){const o=X(e);return o&&e.call(t,...n),o}function Te(e,t){let n=0;const o=function(...i){!--n&&t.apply(this,...i)};"duration"in e?e.each(()=>++n).on("end",o):(++n,e.call(o))}function je(e){return g(e)?e.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):e}function Ce(e,t,n=[-1,1],o=!1){if(!(!e||!g(t)))if(t.indexOf(` `)===-1)e.text(t);else{const i=[e.text(),t].map(r=>r.replace(/[\s\n]/g,""));if(i[0]!==i[1]){const r=t.split(` -`),l=o?r.length-1:1;e.html(""),r.forEach((s,T)=>{e.append("tspan").attr("x",0).attr("dy",`${T===0?n[0]*l:n[1]}em`).text(s)})}}}function G(e){const{x:t,y:n,width:o,height:i}=e.getBBox();return[{x:t,y:n+i},{x:t,y:n},{x:t+o,y:n},{x:t+o,y:n+i}]}function Se(e){const{width:t,height:n}=e.getBoundingClientRect(),o=G(e),i=o[0].x,r=Math.min(o[0].y,o[1].y);return{x:i,y:r,width:t,height:n}}function Me(e,t){var n;const o=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=d3Pointer(o||e,t)}catch(r){}return i.map(r=>isNaN(r)?0:r)}function K(e){const{event:t,$el:n}=e,o=n.subchart.main||n.main;let i;return t&&t.type==="brush"?i=t.selection:o&&(i=o.select(".bb-brush").node())&&(i=d3BrushSelection(i)),i}function De(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ae(e=!0,t=0,n=1e4){const o=window.crypto||window.msCrypto,i=o?t+o.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(i):i}function N(e,t,n,o,i){if(n>o)return-1;const r=Math.floor((n+o)/2);let{x:l,w:s=0}=e[r];return i&&(l=e[r].y,s=e[r].h),t>=l&&t<=l+s?r:t{if(v(n)&&n.constructor){const o=new n.constructor;for(const i in n)o[i]=t(n[i]);return o}return n};return e.map(n=>t(n)).reduce((n,o)=>D(D({},n),o))}function W(e={},t){x(t)&&t.forEach(n=>W(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const Fe=e=>e.charAt(0).toUpperCase()+e.slice(1);function Be(e,t="-"){return e.split(t).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const J=e=>[].slice.call(e);function Re(e,t,n){const{rootSelector:o="",sheet:i}=e,l=`${o} ${(s=>s.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](l,i.cssRules.length)}function qe(e){let t=[];return e.forEach(n=>{var o;try{n.cssRules&&n.cssRules.length&&(t=t.concat(J(n.cssRules)))}catch(i){(o=window.console)==null||o.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),t}function Ve(e){var t,n,o,i;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((i=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?i:0)+e.scrollTop}}function Le(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ue(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((o,i,r)=>r.indexOf(o)===i);return t?n.map(o=>new Date(o)):n}function ze(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function E(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return v(e)&&v(n)&&Object.keys(n).forEach(o=>{const i=n[o];v(i)?(!e[o]&&(e[o]={}),e[o]=E(e[o],i)):e[o]=x(i)?i.concat():i}),E(e,...t)}function Q(e,t=!0){let n;return e[0]instanceof Date?n=t?(o,i)=>o-i:(o,i)=>i-o:t&&!e.every(isNaN)?n=(o,i)=>o-i:t||(n=(o,i)=>o>i&&-1||ok(o));return n.length?_(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Q(n,e==="min")[0]):n=void 0,n}const Ye=(e,t,n=1)=>{const o=[],i=Math.max(0,Math.ceil((t-e)/n))|0;for(let r=e;r{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,o=e())=>{t.dispatchEvent(new MouseEvent(n,o))}}catch(t){return(n,o,i=e())=>{const r=V.createEvent("MouseEvent");r.initMouseEvent(o,i.bubbles,i.cancelable,m,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(r)}}})(),touch:(e,t,n)=>{const o=new Touch(E({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function y(e,t){let n=e;for(const o in t)n=n.replace(new RegExp(`{=${o}}`,"g"),t[o]);return n}function ke(e){var t;let n;if(e instanceof Date)n=e;else if(g(e)){const{config:o,format:i}=this;n=(t=i.dataTime(o.data_xFormat)(e))!=null?t:new Date(e)}else _(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function Ge(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function Ke(e,t){const{DocumentTouch:n,matchMedia:o,navigator:i}=window;let r=!1;if(t)if(i&&"maxTouchPoints"in i)r=i.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)r=!0;else if(o!=null&&o("(pointer:coarse)").matches)r=!0;else{const s=i.userAgent;r=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(s)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(s)}return e&&((o==null?void 0:o("any-hover:hover").matches)||(o==null?void 0:o("any-pointer:fine").matches))&&"mouse"||r&&"touch"||"mouse"}function Z(e,t){t()===!1?requestAnimationFrame(()=>Z(e,t)):e()}function ee(e){const t=this.config;let n,o,i;const r=()=>{const l=o.shift();if(l&&n&&O(n)&&l in n)return n=n[l],r();if(!l)return n};Object.keys(t).forEach(l=>{n=e,o=l.split("_"),i=r(),A(i)&&(t[l]=i)}),this.api&&(this.state.orgConfig=e)}var te=Object.defineProperty,ne=(e,t,n)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>ne(e,typeof t!="symbol"?t+"":t,n);class I{constructor(t={}){P(this,"$$"),P(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}P(I,"version","3.12.4-nightly-20240724004639");const f={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview { +`),l=o?r.length-1:1;e.html(""),r.forEach((s,T)=>{e.append("tspan").attr("x",0).attr("dy",`${T===0?n[0]*l:n[1]}em`).text(s)})}}}function G(e){const{x:t,y:n,width:o,height:i}=e.getBBox();return[{x:t,y:n+i},{x:t,y:n},{x:t+o,y:n},{x:t+o,y:n+i}]}function Se(e){const{width:t,height:n}=e.getBoundingClientRect(),o=G(e),i=o[0].x,r=Math.min(o[0].y,o[1].y);return{x:i,y:r,width:t,height:n}}function Me(e,t){var n;const o=e&&((n=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:n[0]);let i=[0,0];try{i=d3Pointer(o||e,t)}catch(r){}return i.map(r=>isNaN(r)?0:r)}function K(e){const{event:t,$el:n}=e,o=n.subchart.main||n.main;let i;return t&&t.type==="brush"?i=t.selection:o&&(i=o.select(".bb-brush").node())&&(i=d3BrushSelection(i)),i}function De(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ae(e=!0,t=0,n=1e4){const o=window.crypto||window.msCrypto,i=o?t+o.getRandomValues(new Uint32Array(1))[0]%(n-t+1):Math.floor(Math.random()*(n-t)+t);return e?String(i):i}function N(e,t,n,o,i){if(n>o)return-1;const r=Math.floor((n+o)/2);let{x:l,w:s=0}=e[r];return i&&(l=e[r].y,s=e[r].h),t>=l&&t<=l+s?r:t{if(v(n)&&n.constructor){const o=new n.constructor;for(const i in n)o[i]=t(n[i]);return o}return n};return e.map(n=>t(n)).reduce((n,o)=>D(D({},n),o))}function W(e={},t){x(t)&&t.forEach(n=>W(e,n));for(const n in t)/^\d+$/.test(n)||n in e||(e[n]=t[n]);return e}const Fe=e=>e.charAt(0).toUpperCase()+e.slice(1);function Be(e,t="-"){return e.split(t).map((n,o)=>o?n.charAt(0).toUpperCase()+n.slice(1).toLowerCase():n.toLowerCase()).join("")}const J=e=>[].slice.call(e);function Re(e,t,n){const{rootSelector:o="",sheet:i}=e,l=`${o} ${(s=>s.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(t)} {${n.join(";")}}`;return i[i.insertRule?"insertRule":"addRule"](l,i.cssRules.length)}function qe(e){let t=[];return e.forEach(n=>{var o;try{n.cssRules&&n.cssRules.length&&(t=t.concat(J(n.cssRules)))}catch(i){(o=window.console)==null||o.warn(`Error while reading rules from ${n.href}: ${i.toString()}`)}}),t}function Ve(e){var t,n,o,i;return{x:((n=(t=window.pageXOffset)!=null?t:window.scrollX)!=null?n:0)+e.scrollLeft,y:((i=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?i:0)+e.scrollTop}}function Le(e){const t=e?e.transform:null,n=t&&t.baseVal;return n&&n.numberOfItems?n.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ue(e){const t=e[0]instanceof Date,n=(t?e.map(Number):e).filter((o,i,r)=>r.indexOf(o)===i);return t?n.map(o=>new Date(o)):n}function ze(e){return e&&e.length?e.reduce((t,n)=>t.concat(n)):[]}function E(e,...t){if(!t.length||t.length===1&&!t[0])return e;const n=t.shift();return v(e)&&v(n)&&Object.keys(n).forEach(o=>{const i=n[o];v(i)?(!e[o]&&(e[o]={}),e[o]=E(e[o],i)):e[o]=x(i)?i.concat():i}),E(e,...t)}function Q(e,t=!0){let n;return e[0]instanceof Date?n=t?(o,i)=>o-i:(o,i)=>i-o:t&&!e.every(isNaN)?n=(o,i)=>o-i:t||(n=(o,i)=>o>i&&-1||ok(o));return n.length?_(n[0])?n=Math[e](...n):n[0]instanceof Date&&(n=Q(n,e==="min")[0]):n=void 0,n}const Ye=(e,t,n=1)=>{const o=[],i=Math.max(0,Math.ceil((t-e)/n))|0;for(let r=e;r{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(t,n,o=e())=>{t.dispatchEvent(new MouseEvent(n,o))}}catch(t){return(n,o,i=e())=>{const r=V.createEvent("MouseEvent");r.initMouseEvent(o,i.bubbles,i.cancelable,m,0,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.dispatchEvent(r)}}})(),touch:(e,t,n)=>{const o=new Touch(E({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},n));e.dispatchEvent(new TouchEvent(t,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function y(e,t){let n=e;for(const o in t)n=n.replace(new RegExp(`{=${o}}`,"g"),t[o]);return n}function ke(e){var t;let n;if(e instanceof Date)n=e;else if(g(e)){const{config:o,format:i}=this;n=(t=i.dataTime(o.data_xFormat)(e))!=null?t:new Date(e)}else _(e)&&!isNaN(e)&&(n=new Date(+e));return(!n||isNaN(+n))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),n}function Ge(){var e,t;return((e=document)==null?void 0:e.hidden)===!1||((t=document)==null?void 0:t.visibilityState)==="visible"}function Ke(e,t){const{DocumentTouch:n,matchMedia:o,navigator:i}=window;let r=!1;if(t)if(i&&"maxTouchPoints"in i)r=i.maxTouchPoints>0;else if("ontouchmove"in window||n&&document instanceof n)r=!0;else if(o!=null&&o("(pointer:coarse)").matches)r=!0;else{const s=i.userAgent;r=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(s)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(s)}return e&&((o==null?void 0:o("any-hover:hover").matches)||(o==null?void 0:o("any-pointer:fine").matches))&&"mouse"||r&&"touch"||"mouse"}function Z(e,t){t()===!1?requestAnimationFrame(()=>Z(e,t)):e()}function ee(e){const t=this.config;let n,o,i;const r=()=>{const l=o.shift();if(l&&n&&O(n)&&l in n)return n=n[l],r();if(!l)return n};Object.keys(t).forEach(l=>{n=e,o=l.split("_"),i=r(),A(i)&&(t[l]=i)}),this.api&&(this.state.orgConfig=e)}var te=Object.defineProperty,ne=(e,t,n)=>t in e?te(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,P=(e,t,n)=>ne(e,typeof t!="symbol"?t+"":t,n);class I{constructor(t={}){P(this,"$$"),P(this,"options"),this.options=t}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(t=>{this[t]=null,delete this[t]})}}P(I,"version","3.12.4-nightly-20240726004631");const f={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview { border-collapse:collapse; border-spacing:0; background:#fff; diff --git a/dist/plugin/billboardjs-plugin-textoverlap.js b/dist/plugin/billboardjs-plugin-textoverlap.js index a233f5515..8dd92a7b2 100644 --- a/dist/plugin/billboardjs-plugin-textoverlap.js +++ b/dist/plugin/billboardjs-plugin-textoverlap.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -615,7 +615,7 @@ class Plugin { }); } } -__publicField(Plugin, "version", "3.12.4-nightly-20240724004639"); +__publicField(Plugin, "version", "3.12.4-nightly-20240726004631"); ;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts class Options { diff --git a/dist/plugin/billboardjs-plugin-textoverlap.min.js b/dist/plugin/billboardjs-plugin-textoverlap.min.js index 62b1b99a2..3419a3b0d 100644 --- a/dist/plugin/billboardjs-plugin-textoverlap.min.js +++ b/dist/plugin/billboardjs-plugin-textoverlap.min.js @@ -5,9 +5,9 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */(function(l,u){typeof exports=="object"&&typeof module=="object"?module.exports=u(require("d3-delaunay"),require("d3-polygon"),require("d3-brush"),require("d3-selection")):typeof define=="function"&&define.amd?define("bb",["d3-delaunay","d3-polygon","d3-brush","d3-selection"],u):typeof exports=="object"?exports.bb=u(require("d3-delaunay"),require("d3-polygon"),require("d3-brush"),require("d3-selection")):(l.bb=l.bb||{},l.bb.plugin=l.bb.plugin||{},l.bb.plugin.textoverlap=u(l.d3,l.d3,l.d3,l.d3))})(this,function(w,l,u,C){return function(){"use strict";var D={853:function(e){e.exports=u},348:function(e){e.exports=w},263:function(e){e.exports=l},747:function(e){e.exports=C}},O={};function a(e){var n=O[e];if(n!==void 0)return n.exports;var t=O[e]={exports:{}};return D[e](t,t.exports,a),t.exports}(function(){a.d=function(e,n){for(var t in n)a.o(n,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})}})(),function(){a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}();var d={};a.d(d,{default:function(){return oe}});var q=a(348),P=a(263),fe=a(853),de=a(747);function R(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function F(e){const n=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",t=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",o=i=>setTimeout(i,1),r=i=>clearTimeout(i);return[n?e.requestAnimationFrame:o,n?e.cancelAnimationFrame:r,t?e.requestIdleCallback:o,t?e.cancelIdleCallback:r]}const p=R(),I=p==null?void 0:p.document,[pe,he,be,me]=F(p);var S=Object.defineProperty,E=Object.getOwnPropertySymbols,B=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,$=(e,n,t)=>n in e?S(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,j=(e,n)=>{for(var t in n||(n={}))B.call(n,t)&&$(e,t,n[t]);if(E)for(var t of E(n))N.call(n,t)&&$(e,t,n[t]);return e};const _e=e=>e||e===0,V=e=>typeof e=="function",h=e=>typeof e=="string",m=e=>typeof e=="number",U=e=>typeof e=="undefined",A=e=>typeof e!="undefined",ge=e=>typeof e=="boolean",ye=e=>Math.ceil(e/10)*10,ve=e=>Math.ceil(e)+.5,xe=e=>e[1]-e[0],_=e=>typeof e=="object",X=e=>U(e)||e===null||h(e)&&e.length===0||_(e)&&!(e instanceof Date)&&Object.keys(e).length===0||m(e)&&isNaN(e),Y=e=>!X(e),g=e=>Array.isArray(e),b=e=>e&&!(e!=null&&e.nodeType)&&_(e)&&!g(e);function we(e,n,t){return A(e[n])?e[n]:t}function Oe(e,n){let t=!1;return Object.keys(e).forEach(o=>e[o]===n&&(t=!0)),t}function Pe(e,n,...t){const o=V(e);return o&&e.call(n,...t),o}function Ee(e,n){let t=0;const o=function(...r){!--t&&n.apply(this,...r)};"duration"in e?e.each(()=>++t).on("end",o):(++t,e.call(o))}function $e(e){return h(e)?e.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):e}function je(e,n,t=[-1,1],o=!1){if(!(!e||!h(n)))if(n.indexOf(` `)===-1)e.text(n);else{const r=[e.text(),n].map(i=>i.replace(/[\s\n]/g,""));if(r[0]!==r[1]){const i=n.split(` -`),s=o?i.length-1:1;e.html(""),i.forEach((c,x)=>{e.append("tspan").attr("x",0).attr("dy",`${x===0?t[0]*s:t[1]}em`).text(c)})}}}function L(e){const{x:n,y:t,width:o,height:r}=e.getBBox();return[{x:n,y:t+r},{x:n,y:t},{x:n+o,y:t},{x:n+o,y:t+r}]}function Ae(e){const{width:n,height:t}=e.getBoundingClientRect(),o=L(e),r=o[0].x,i=Math.min(o[0].y,o[1].y);return{x:r,y:i,width:n,height:t}}function Me(e,n){var t;const o=e&&((t=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:t[0]);let r=[0,0];try{r=d3Pointer(o||e,n)}catch(i){}return r.map(i=>isNaN(i)?0:i)}function z(e){const{event:n,$el:t}=e,o=t.subchart.main||t.main;let r;return n&&n.type==="brush"?r=n.selection:o&&(r=o.select(".bb-brush").node())&&(r=d3BrushSelection(r)),r}function Te(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ce(e=!0,n=0,t=1e4){const o=window.crypto||window.msCrypto,r=o?n+o.getRandomValues(new Uint32Array(1))[0]%(t-n+1):Math.floor(Math.random()*(t-n)+n);return e?String(r):r}function M(e,n,t,o,r){if(t>o)return-1;const i=Math.floor((t+o)/2);let{x:s,w:c=0}=e[i];return r&&(s=e[i].y,c=e[i].h),n>=s&&n<=s+c?i:n{if(b(t)&&t.constructor){const o=new t.constructor;for(const r in t)o[r]=n(t[r]);return o}return t};return e.map(t=>n(t)).reduce((t,o)=>j(j({},t),o))}function G(e={},n){g(n)&&n.forEach(t=>G(e,t));for(const t in n)/^\d+$/.test(t)||t in e||(e[t]=n[t]);return e}const Re=e=>e.charAt(0).toUpperCase()+e.slice(1);function Fe(e,n="-"){return e.split(n).map((t,o)=>o?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()).join("")}const H=e=>[].slice.call(e);function Ie(e,n,t){const{rootSelector:o="",sheet:r}=e,s=`${o} ${(c=>c.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(n)} {${t.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](s,r.cssRules.length)}function Se(e){let n=[];return e.forEach(t=>{var o;try{t.cssRules&&t.cssRules.length&&(n=n.concat(H(t.cssRules)))}catch(r){(o=window.console)==null||o.warn(`Error while reading rules from ${t.href}: ${r.toString()}`)}}),n}function Be(e){var n,t,o,r;return{x:((t=(n=window.pageXOffset)!=null?n:window.scrollX)!=null?t:0)+e.scrollLeft,y:((r=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?r:0)+e.scrollTop}}function Ne(e){const n=e?e.transform:null,t=n&&n.baseVal;return t&&t.numberOfItems?t.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ve(e){const n=e[0]instanceof Date,t=(n?e.map(Number):e).filter((o,r,i)=>i.indexOf(o)===r);return n?t.map(o=>new Date(o)):t}function Ue(e){return e&&e.length?e.reduce((n,t)=>n.concat(t)):[]}function y(e,...n){if(!n.length||n.length===1&&!n[0])return e;const t=n.shift();return b(e)&&b(t)&&Object.keys(t).forEach(o=>{const r=t[o];b(r)?(!e[o]&&(e[o]={}),e[o]=y(e[o],r)):e[o]=g(r)?r.concat():r}),y(e,...n)}function K(e,n=!0){let t;return e[0]instanceof Date?t=n?(o,r)=>o-r:(o,r)=>r-o:n&&!e.every(isNaN)?t=(o,r)=>o-r:n||(t=(o,r)=>o>r&&-1||oY(o));return t.length?m(t[0])?t=Math[e](...t):t[0]instanceof Date&&(t=K(t,e==="min")[0]):t=void 0,t}const Ye=(e,n,t=1)=>{const o=[],r=Math.max(0,Math.ceil((n-e)/t))|0;for(let i=e;i{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(n,t,o=e())=>{n.dispatchEvent(new MouseEvent(t,o))}}catch(n){return(t,o,r=e())=>{const i=I.createEvent("MouseEvent");i.initMouseEvent(o,r.bubbles,r.cancelable,p,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}})(),touch:(e,n,t)=>{const o=new Touch(y({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},t));e.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function ze(e,n){let t=e;for(const o in n)t=t.replace(new RegExp(`{=${o}}`,"g"),n[o]);return t}function Ge(e){var n;let t;if(e instanceof Date)t=e;else if(h(e)){const{config:o,format:r}=this;t=(n=r.dataTime(o.data_xFormat)(e))!=null?n:new Date(e)}else m(e)&&!isNaN(e)&&(t=new Date(+e));return(!t||isNaN(+t))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),t}function He(){var e,n;return((e=document)==null?void 0:e.hidden)===!1||((n=document)==null?void 0:n.visibilityState)==="visible"}function Ke(e,n){const{DocumentTouch:t,matchMedia:o,navigator:r}=window;let i=!1;if(n)if(r&&"maxTouchPoints"in r)i=r.maxTouchPoints>0;else if("ontouchmove"in window||t&&document instanceof t)i=!0;else if(o!=null&&o("(pointer:coarse)").matches)i=!0;else{const c=r.userAgent;i=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(c)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(c)}return e&&((o==null?void 0:o("any-hover:hover").matches)||(o==null?void 0:o("any-pointer:fine").matches))&&"mouse"||i&&"touch"||"mouse"}function W(e,n){n()===!1?requestAnimationFrame(()=>W(e,n)):e()}function k(e){const n=this.config;let t,o,r;const i=()=>{const s=o.shift();if(s&&t&&_(t)&&s in t)return t=t[s],i();if(!s)return t};Object.keys(n).forEach(s=>{t=e,o=s.split("_"),r=i(),A(r)&&(n[s]=r)}),this.api&&(this.state.orgConfig=e)}var J=Object.defineProperty,Q=(e,n,t)=>n in e?J(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,v=(e,n,t)=>Q(e,typeof n!="symbol"?n+"":n,t);class T{constructor(n={}){v(this,"$$"),v(this,"options"),this.options=n}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(n=>{this[n]=null,delete this[n]})}}v(T,"version","3.12.4-nightly-20240724004639");class Z{constructor(){return{selector:void 0,extent:1,area:0}}}var ee=Object.defineProperty,te=(e,n,t)=>n in e?ee(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,ne=(e,n,t)=>te(e,typeof n!="symbol"?n+"":n,t);class oe extends T{constructor(n){return super(n),ne(this,"config"),this.config=new Z,this}$init(){k.call(this,this.options)}$redraw(){const{$$:{$el:n},config:{selector:t}}=this,o=t?n.main.selectAll(t):n.text;!o.empty()&&this.preventLabelOverlap(o)}generateVoronoi(n){const{$$:t}=this,{scale:o}=t,[r,i]=["x","y"].map(s=>o[s].domain());return[r[1],i[0]]=[i[0],r[1]],q.Delaunay.from(n).voronoi([...r,...i])}preventLabelOverlap(n){const{extent:t,area:o}=this.config,r=n.data().map(c=>[c.index,c.value]),i=this.generateVoronoi(r);let s=0;n.each(function(){const c=i.cellPolygon(s);if(c&&this){const[x,re]=r[s],[ie,se]=(0,P.polygonCentroid)(c),ce=Math.abs((0,P.polygonArea)(c)),f=Math.round(Math.atan2(se-re,ie-x)/Math.PI*2),le=t*(f===0?1:-1),ae=f===-1?-t:t+5,ue=Math.abs(f)===1?"middle":f===0?"start":"end";this.style.display=ce{e.append("tspan").attr("x",0).attr("dy",`${x===0?t[0]*s:t[1]}em`).text(c)})}}}function L(e){const{x:n,y:t,width:o,height:r}=e.getBBox();return[{x:n,y:t+r},{x:n,y:t},{x:n+o,y:t},{x:n+o,y:t+r}]}function Ae(e){const{width:n,height:t}=e.getBoundingClientRect(),o=L(e),r=o[0].x,i=Math.min(o[0].y,o[1].y);return{x:r,y:i,width:n,height:t}}function Me(e,n){var t;const o=e&&((t=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:t[0]);let r=[0,0];try{r=d3Pointer(o||e,n)}catch(i){}return r.map(i=>isNaN(i)?0:i)}function z(e){const{event:n,$el:t}=e,o=t.subchart.main||t.main;let r;return n&&n.type==="brush"?r=n.selection:o&&(r=o.select(".bb-brush").node())&&(r=d3BrushSelection(r)),r}function Te(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ce(e=!0,n=0,t=1e4){const o=window.crypto||window.msCrypto,r=o?n+o.getRandomValues(new Uint32Array(1))[0]%(t-n+1):Math.floor(Math.random()*(t-n)+n);return e?String(r):r}function M(e,n,t,o,r){if(t>o)return-1;const i=Math.floor((t+o)/2);let{x:s,w:c=0}=e[i];return r&&(s=e[i].y,c=e[i].h),n>=s&&n<=s+c?i:n{if(b(t)&&t.constructor){const o=new t.constructor;for(const r in t)o[r]=n(t[r]);return o}return t};return e.map(t=>n(t)).reduce((t,o)=>j(j({},t),o))}function G(e={},n){g(n)&&n.forEach(t=>G(e,t));for(const t in n)/^\d+$/.test(t)||t in e||(e[t]=n[t]);return e}const Re=e=>e.charAt(0).toUpperCase()+e.slice(1);function Fe(e,n="-"){return e.split(n).map((t,o)=>o?t.charAt(0).toUpperCase()+t.slice(1).toLowerCase():t.toLowerCase()).join("")}const H=e=>[].slice.call(e);function Ie(e,n,t){const{rootSelector:o="",sheet:r}=e,s=`${o} ${(c=>c.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(n)} {${t.join(";")}}`;return r[r.insertRule?"insertRule":"addRule"](s,r.cssRules.length)}function Se(e){let n=[];return e.forEach(t=>{var o;try{t.cssRules&&t.cssRules.length&&(n=n.concat(H(t.cssRules)))}catch(r){(o=window.console)==null||o.warn(`Error while reading rules from ${t.href}: ${r.toString()}`)}}),n}function Be(e){var n,t,o,r;return{x:((t=(n=window.pageXOffset)!=null?n:window.scrollX)!=null?t:0)+e.scrollLeft,y:((r=(o=window.pageYOffset)!=null?o:window.scrollY)!=null?r:0)+e.scrollTop}}function Ne(e){const n=e?e.transform:null,t=n&&n.baseVal;return t&&t.numberOfItems?t.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Ve(e){const n=e[0]instanceof Date,t=(n?e.map(Number):e).filter((o,r,i)=>i.indexOf(o)===r);return n?t.map(o=>new Date(o)):t}function Ue(e){return e&&e.length?e.reduce((n,t)=>n.concat(t)):[]}function y(e,...n){if(!n.length||n.length===1&&!n[0])return e;const t=n.shift();return b(e)&&b(t)&&Object.keys(t).forEach(o=>{const r=t[o];b(r)?(!e[o]&&(e[o]={}),e[o]=y(e[o],r)):e[o]=g(r)?r.concat():r}),y(e,...n)}function K(e,n=!0){let t;return e[0]instanceof Date?t=n?(o,r)=>o-r:(o,r)=>r-o:n&&!e.every(isNaN)?t=(o,r)=>o-r:n||(t=(o,r)=>o>r&&-1||oY(o));return t.length?m(t[0])?t=Math[e](...t):t[0]instanceof Date&&(t=K(t,e==="min")[0]):t=void 0,t}const Ye=(e,n,t=1)=>{const o=[],r=Math.max(0,Math.ceil((n-e)/t))|0;for(let i=e;i{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(n,t,o=e())=>{n.dispatchEvent(new MouseEvent(t,o))}}catch(n){return(t,o,r=e())=>{const i=I.createEvent("MouseEvent");i.initMouseEvent(o,r.bubbles,r.cancelable,p,0,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),t.dispatchEvent(i)}}})(),touch:(e,n,t)=>{const o=new Touch(y({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},t));e.dispatchEvent(new TouchEvent(n,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[o],targetTouches:[],changedTouches:[o]}))}};function ze(e,n){let t=e;for(const o in n)t=t.replace(new RegExp(`{=${o}}`,"g"),n[o]);return t}function Ge(e){var n;let t;if(e instanceof Date)t=e;else if(h(e)){const{config:o,format:r}=this;t=(n=r.dataTime(o.data_xFormat)(e))!=null?n:new Date(e)}else m(e)&&!isNaN(e)&&(t=new Date(+e));return(!t||isNaN(+t))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),t}function He(){var e,n;return((e=document)==null?void 0:e.hidden)===!1||((n=document)==null?void 0:n.visibilityState)==="visible"}function Ke(e,n){const{DocumentTouch:t,matchMedia:o,navigator:r}=window;let i=!1;if(n)if(r&&"maxTouchPoints"in r)i=r.maxTouchPoints>0;else if("ontouchmove"in window||t&&document instanceof t)i=!0;else if(o!=null&&o("(pointer:coarse)").matches)i=!0;else{const c=r.userAgent;i=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(c)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(c)}return e&&((o==null?void 0:o("any-hover:hover").matches)||(o==null?void 0:o("any-pointer:fine").matches))&&"mouse"||i&&"touch"||"mouse"}function W(e,n){n()===!1?requestAnimationFrame(()=>W(e,n)):e()}function k(e){const n=this.config;let t,o,r;const i=()=>{const s=o.shift();if(s&&t&&_(t)&&s in t)return t=t[s],i();if(!s)return t};Object.keys(n).forEach(s=>{t=e,o=s.split("_"),r=i(),A(r)&&(n[s]=r)}),this.api&&(this.state.orgConfig=e)}var J=Object.defineProperty,Q=(e,n,t)=>n in e?J(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,v=(e,n,t)=>Q(e,typeof n!="symbol"?n+"":n,t);class T{constructor(n={}){v(this,"$$"),v(this,"options"),this.options=n}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(n=>{this[n]=null,delete this[n]})}}v(T,"version","3.12.4-nightly-20240726004631");class Z{constructor(){return{selector:void 0,extent:1,area:0}}}var ee=Object.defineProperty,te=(e,n,t)=>n in e?ee(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,ne=(e,n,t)=>te(e,typeof n!="symbol"?n+"":n,t);class oe extends T{constructor(n){return super(n),ne(this,"config"),this.config=new Z,this}$init(){k.call(this,this.options)}$redraw(){const{$$:{$el:n},config:{selector:t}}=this,o=t?n.main.selectAll(t):n.text;!o.empty()&&this.preventLabelOverlap(o)}generateVoronoi(n){const{$$:t}=this,{scale:o}=t,[r,i]=["x","y"].map(s=>o[s].domain());return[r[1],i[0]]=[i[0],r[1]],q.Delaunay.from(n).voronoi([...r,...i])}preventLabelOverlap(n){const{extent:t,area:o}=this.config,r=n.data().map(c=>[c.index,c.value]),i=this.generateVoronoi(r);let s=0;n.each(function(){const c=i.cellPolygon(s);if(c&&this){const[x,re]=r[s],[ie,se]=(0,P.polygonCentroid)(c),ce=Math.abs((0,P.polygonArea)(c)),f=Math.round(Math.atan2(se-re,ie-x)/Math.PI*2),le=t*(f===0?1:-1),ae=f===-1?-t:t+5,ue=Math.abs(f)===1?"middle":f===0?"start":"end";this.style.display=ce=Mr&&(Mr=Rr+1);!(Br=$r[Mr])&&++Mr=0;)(Et=it[_])&&(dt&&Et.compareDocumentPosition(dt)^4&&dt.parentNode.insertBefore(Et,dt),dt=Et);return this}function K(R){R||(R=H);function M(tr,sr){return tr&&sr?R(tr.__data__,sr.__data__):!tr-!sr}for(var Z=this._groups,it=Z.length,_=new Array(it),dt=0;dtM?1:R>=M?0:NaN}function Q(){var R=arguments[0];return arguments[0]=this,R.apply(null,arguments),this}function X(){return Array.from(this)}function st(){for(var R=this._groups,M=0,Z=R.length;M=0&&(M=R.slice(0,Z))!=="xmlns"&&(R=R.slice(Z+1)),Lt.hasOwnProperty(M)?{space:Lt[M],local:R}:R}function Ct(R){return function(){this.removeAttribute(R)}}function at(R){return function(){this.removeAttributeNS(R.space,R.local)}}function vt(R,M){return function(){this.setAttribute(R,M)}}function St(R,M){return function(){this.setAttributeNS(R.space,R.local,M)}}function Rt(R,M){return function(){var Z=M.apply(this,arguments);Z==null?this.removeAttribute(R):this.setAttribute(R,Z)}}function Tt(R,M){return function(){var Z=M.apply(this,arguments);Z==null?this.removeAttributeNS(R.space,R.local):this.setAttributeNS(R.space,R.local,Z)}}function Nt(R,M){var Z=Dt(R);if(arguments.length<2){var it=this.node();return Z.local?it.getAttributeNS(Z.space,Z.local):it.getAttribute(Z)}return this.each((M==null?Z.local?at:Ct:typeof M=="function"?Z.local?Tt:Rt:Z.local?St:vt)(Z,M))}function Ht(R){return R.ownerDocument&&R.ownerDocument.defaultView||R.document&&R||R.defaultView}function Wt(R){return function(){this.style.removeProperty(R)}}function bt(R,M,Z){return function(){this.style.setProperty(R,M,Z)}}function Pt(R,M,Z){return function(){var it=M.apply(this,arguments);it==null?this.style.removeProperty(R):this.style.setProperty(R,it,Z)}}function Vt(R,M,Z){return arguments.length>1?this.each((M==null?Wt:typeof M=="function"?Pt:bt)(R,M,Z==null?"":Z)):$t(this.node(),R)}function $t(R,M){return R.style.getPropertyValue(M)||Ht(R).getComputedStyle(R,null).getPropertyValue(M)}function Mt(R){return function(){delete this[R]}}function q(R,M){return function(){this[R]=M}}function ut(R,M){return function(){var Z=M.apply(this,arguments);Z==null?delete this[R]:this[R]=Z}}function J(R,M){return arguments.length>1?this.each((M==null?Mt:typeof M=="function"?ut:q)(R,M)):this.node()[R]}function yt(R){return R.trim().split(/^|\s+/)}function pt(R){return R.classList||new ct(R)}function ct(R){this._node=R,this._names=yt(R.getAttribute("class")||"")}ct.prototype={add:function(R){var M=this._names.indexOf(R);M<0&&(this._names.push(R),this._node.setAttribute("class",this._names.join(" ")))},remove:function(R){var M=this._names.indexOf(R);M>=0&&(this._names.splice(M,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(R){return this._names.indexOf(R)>=0}};function ft(R,M){for(var Z=pt(R),it=-1,_=M.length;++it<_;)Z.add(M[it])}function zt(R,M){for(var Z=pt(R),it=-1,_=M.length;++it<_;)Z.remove(M[it])}function Yt(R){return function(){ft(this,R)}}function W(R){return function(){zt(this,R)}}function k(R,M){return function(){(M.apply(this,arguments)?ft:zt)(this,R)}}function tt(R,M){var Z=yt(R+"");if(arguments.length<2){for(var it=pt(this.node()),_=-1,dt=Z.length;++_=0&&(Z=M.slice(it+1),M=M.slice(0,it)),{type:M,name:Z}})}function kt(R){return function(){var M=this.__on;if(M){for(var Z=0,it=-1,_=M.length,dt;Z<_;++Z)dt=M[Z],(!R.type||dt.type===R.type)&&dt.name===R.name?this.removeEventListener(dt.type,dt.listener,dt.options):M[++it]=dt;++it?M.length=it:delete this.__on}}}function qt(R,M,Z){return function(){var it=this.__on,_,dt=Er(M);if(it){for(var Et=0,It=it.length;EtM in R?_t(R,M,{enumerable:!0,configurable:!0,writable:!0,value:Z}):R[M]=Z,Jt=(R,M,Z)=>nt(R,typeof M!="symbol"?M+"":M,Z);class er{constructor(M={}){Jt(this,"$$"),Jt(this,"options"),this.options=M}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(M=>{this[M]=null,delete this[M]})}}Jt(er,"version","3.12.4-nightly-20240724004639");var Ir=Object.defineProperty,Nr=(R,M,Z)=>M in R?Ir(R,M,{enumerable:!0,configurable:!0,writable:!0,value:Z}):R[M]=Z,Tr=(R,M,Z)=>Nr(R,typeof M!="symbol"?M+"":M,Z);const yr=class jr extends er{constructor(M){return super(M),Tr(this,"$$"),this}$init(){const{$$:M}=this;M.findClosest=this.findClosest.bind(this),M.getBubbleR=this.getBubbleR.bind(this),M.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(M){const Z=this.getBubbleR(M),{expandScale:it=1}=this.options;return jr.raiseFocusedBubbleLayer(M),this.changeCursorPoint(),Z*it}static raiseFocusedBubbleLayer(M){M.raise&&wt(M.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(M,Z){const{$$:it}=this;return M.filter(_=>_&&!it.isBarType(_.id)).reduce((_,dt)=>it.dist(dt,Z){const tr=this.getZData(Kt.values[0]);return[Math.min(Ft,tr),Math.max(Gt,tr)]},[1e4,0]),It=dt>0&&Et===dt?0:_/Et;return Math.abs(It)*(it-Z)+Z}getZData(M){return this.$$.isBubbleZType(M)?this.$$.getBubbleZData(M.value,"z"):M.value}};Tr(yr,"version","0.0.1");let br=yr},85156:function(s,l,t){var r=t(23583),n=t(82453),e=TypeError;s.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a function")}},80042:function(s,l,t){var r=t(11051),n=t(82453),e=TypeError;s.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a constructor")}},53408:function(s,l,t){var r=t(52427),n=String,e=TypeError;s.exports=function(a){if(r(a))return a;throw new e("Can't set "+n(a)+" as a prototype")}},76602:function(s,l,t){var r=t(172).has;s.exports=function(n){return r(n),n}},23811:function(s,l,t){var r=t(18565),n=t(5406),e=t(7831).f,a=r("unscopables"),o=Array.prototype;o[a]===void 0&&e(o,a,{configurable:!0,value:n(null)}),s.exports=function(u){o[a][u]=!0}},24487:function(s,l,t){var r=t(22149).charAt;s.exports=function(n,e,a){return e+(a?r(n,e).length:1)}},12833:function(s,l,t){var r=t(95307),n=TypeError;s.exports=function(e,a){if(r(a,e))return e;throw new n("Incorrect invocation")}},25001:function(s,l,t){var r=t(37540),n=String,e=TypeError;s.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not an object")}},3237:function(s){s.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},58360:function(s,l,t){var r=t(84756),n=t(14274),e=TypeError;s.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(a){if(n(a)!=="ArrayBuffer")throw new e("ArrayBuffer expected");return a.byteLength}},30736:function(s,l,t){var r=t(11286),n=t(58360),e=r(ArrayBuffer.prototype.slice);s.exports=function(a){if(n(a)!==0)return!1;try{return e(a,0,0),!1}catch(o){return!0}}},72058:function(s,l,t){var r=t(72069);s.exports=r(function(){if(typeof ArrayBuffer=="function"){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}})},65006:function(s,l,t){var r=t(66009),n=t(11286),e=t(84756),a=t(9450),o=t(30736),u=t(58360),i=t(63741),v=t(99050),f=r.structuredClone,c=r.ArrayBuffer,d=r.DataView,h=r.TypeError,g=Math.min,p=c.prototype,y=d.prototype,m=n(p.slice),O=e(p,"resizable","get"),S=e(p,"maxByteLength","get"),E=n(y.getInt8),T=n(y.setInt8);s.exports=(v||i)&&function(x,I,A){var C=u(x),P=I===void 0?C:a(I),N=!O||!O(x),$;if(o(x))throw new h("ArrayBuffer is detached");if(v&&(x=f(x,{transfer:[x]}),C===P&&(A||N)))return x;if(C>=P&&(!A||N))$=m(x,0,P);else{var U=A&&!N&&S?{maxByteLength:S(x)}:void 0;$=new c(P,U);for(var F=new d(x),D=new d($),L=g(P,C),b=0;b>8&255]},Rt=function(q){return[q&255,q>>8&255,q>>16&255,q>>24&255]},Tt=function(q){return q[3]<<24|q[2]<<16|q[1]<<8|q[0]},Nt=function(q){return Ct(p(q),23,4)},Ht=function(q){return Ct(q,52,8)},Wt=function(q,ut,J){i(q[U],ut,{configurable:!0,get:function(){return J(this)[ut]}})},bt=function(q,ut,J,yt){var pt=b(q),ct=g(J),ft=!!yt;if(ct+ut>pt.byteLength)throw new gt(D);var zt=pt.bytes,Yt=ct+pt.byteOffset,W=E(zt,Yt,Yt+ut);return ft?W:Dt(W)},Pt=function(q,ut,J,yt,pt,ct){var ft=b(q),zt=g(J),Yt=yt(+pt),W=!!ct;if(zt+ut>ft.byteLength)throw new gt(D);for(var k=ft.bytes,tt=zt+ft.byteOffset,j=0;jct)throw new gt("Wrong offset");if(yt=yt===void 0?ct-ft:h(yt),ft+yt>ct)throw new gt(F);K(this,{type:$,buffer:ut,byteLength:yt,byteOffset:ft,bytes:pt.bytes}),e||(this.buffer=ut,this.byteLength=yt,this.byteOffset=ft)},et=st[U],e&&(Wt(Q,"byteLength",L),Wt(st,"buffer",b),Wt(st,"byteLength",b),Wt(st,"byteOffset",b)),v(et,{getInt8:function(ut){return bt(this,1,ut)[0]<<24>>24},getUint8:function(ut){return bt(this,1,ut)[0]},getInt16:function(ut){var J=bt(this,2,ut,arguments.length>1?arguments[1]:!1);return(J[1]<<8|J[0])<<16>>16},getUint16:function(ut){var J=bt(this,2,ut,arguments.length>1?arguments[1]:!1);return J[1]<<8|J[0]},getInt32:function(ut){return Tt(bt(this,4,ut,arguments.length>1?arguments[1]:!1))},getUint32:function(ut){return Tt(bt(this,4,ut,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(ut){return at(bt(this,4,ut,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(ut){return at(bt(this,8,ut,arguments.length>1?arguments[1]:!1),52)},setInt8:function(ut,J){Pt(this,1,ut,vt,J)},setUint8:function(ut,J){Pt(this,1,ut,vt,J)},setInt16:function(ut,J){Pt(this,2,ut,St,J,arguments.length>2?arguments[2]:!1)},setUint16:function(ut,J){Pt(this,2,ut,St,J,arguments.length>2?arguments[2]:!1)},setInt32:function(ut,J){Pt(this,4,ut,Rt,J,arguments.length>2?arguments[2]:!1)},setUint32:function(ut,J){Pt(this,4,ut,Rt,J,arguments.length>2?arguments[2]:!1)},setFloat32:function(ut,J){Pt(this,4,ut,Nt,J,arguments.length>2?arguments[2]:!1)},setFloat64:function(ut,J){Pt(this,8,ut,Ht,J,arguments.length>2?arguments[2]:!1)}});else{var Vt=C&&H.name!==N;!f(function(){H(1)})||!f(function(){new H(-1)})||f(function(){return new H,new H(1.5),new H(NaN),H.length!==1||Vt&&!P})?(Q=function(ut){return c(this,X),T(new H(g(ut)),this,Q)},Q[U]=X,X.constructor=Q,x(Q,H)):Vt&&P&&u(H,"name",N),O&&m(et)!==lt&&O(et,lt);var $t=new st(new Q(2)),Mt=n(et.setInt8);$t.setInt8(0,2147483648),$t.setInt8(1,2147483649),($t.getInt8(0)||!$t.getInt8(1))&&v(et,{setInt8:function(ut,J){Mt(this,ut,J<<24>>24)},setUint8:function(ut,J){Mt(this,ut,J<<24>>24)}},{unsafe:!0})}I(Q,N),I(st,$),s.exports={ArrayBuffer:Q,DataView:st}},81499:function(s,l,t){var r=t(49671),n=t(4652),e=t(82628),a=t(12384),o=Math.min;s.exports=[].copyWithin||function(i,v){var f=r(this),c=e(f),d=n(i,c),h=n(v,c),g=arguments.length>2?arguments[2]:void 0,p=o((g===void 0?c:n(g,c))-h,c-d),y=1;for(h0;)h in f?f[d]=f[h]:a(f,d),d+=y,h+=y;return f}},43011:function(s,l,t){var r=t(49671),n=t(4652),e=t(82628);s.exports=function(o){for(var u=r(this),i=e(u),v=arguments.length,f=n(v>1?arguments[1]:void 0,i),c=v>2?arguments[2]:void 0,d=c===void 0?i:n(c,i);d>f;)u[f++]=o;return u}},13349:function(s,l,t){var r=t(66655).forEach,n=t(6148),e=n("forEach");s.exports=e?[].forEach:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}},5220:function(s,l,t){var r=t(82628);s.exports=function(n,e,a){for(var o=0,u=arguments.length>2?a:r(e),i=new n(u);u>o;)i[o]=e[o++];return i}},48258:function(s,l,t){var r=t(45526),n=t(96499),e=t(49671),a=t(39969),o=t(48199),u=t(11051),i=t(82628),v=t(84082),f=t(90619),c=t(81077),d=Array;s.exports=function(g){var p=e(g),y=u(this),m=arguments.length,O=m>1?arguments[1]:void 0,S=O!==void 0;S&&(O=r(O,m>2?arguments[2]:void 0));var E=c(p),T=0,x,I,A,C,P,N;if(E&&!(this===d&&o(E)))for(I=y?new this:[],C=f(p,E),P=C.next;!(A=n(P,C)).done;T++)N=S?a(C,O,[A.value,T],!0):A.value,v(I,T,N);else for(x=i(p),I=y?new this(x):d(x);x>T;T++)N=S?O(p[T],T):p[T],v(I,T,N);return I.length=T,I}},94319:function(s,l,t){var r=t(36859),n=t(4652),e=t(82628),a=function(o){return function(u,i,v){var f=r(u),c=e(f);if(c===0)return!o&&-1;var d=n(v,c),h;if(o&&i!==i){for(;c>d;)if(h=f[d++],h!==h)return!0}else for(;c>d;d++)if((o||d in f)&&f[d]===i)return o||d||0;return!o&&-1}};s.exports={includes:a(!0),indexOf:a(!1)}},73849:function(s,l,t){var r=t(45526),n=t(72181),e=t(49671),a=t(82628),o=function(u){var i=u===1;return function(v,f,c){for(var d=e(v),h=n(d),g=a(h),p=r(f,c),y,m;g-- >0;)if(y=h[g],m=p(y,g,d),m)switch(u){case 0:return y;case 1:return g}return i?-1:void 0}};s.exports={findLast:o(0),findLastIndex:o(1)}},66655:function(s,l,t){var r=t(45526),n=t(11286),e=t(72181),a=t(49671),o=t(82628),u=t(62083),i=n([].push),v=function(f){var c=f===1,d=f===2,h=f===3,g=f===4,p=f===6,y=f===7,m=f===5||p;return function(O,S,E,T){for(var x=a(O),I=e(x),A=o(I),C=r(S,E),P=0,N=T||u,$=c?N(O,A):d||y?N(O,0):void 0,U,F;A>P;P++)if((m||P in I)&&(U=I[P],F=C(U,P,x),f))if(c)$[P]=F;else if(F)switch(f){case 3:return!0;case 5:return U;case 6:return P;case 2:i($,U)}else switch(f){case 4:return!1;case 7:i($,U)}return p?-1:h||g?g:$}};s.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},58465:function(s,l,t){var r=t(66543),n=t(36859),e=t(12105),a=t(82628),o=t(6148),u=Math.min,i=[].lastIndexOf,v=!!i&&1/[1].lastIndexOf(1,-0)<0,f=o("lastIndexOf"),c=v||!f;s.exports=c?function(h){if(v)return r(i,this,arguments)||0;var g=n(this),p=a(g);if(p===0)return-1;var y=p-1;for(arguments.length>1&&(y=u(y,e(arguments[1]))),y<0&&(y=p+y);y>=0;y--)if(y in g&&g[y]===h)return y||0;return-1}:i},52183:function(s,l,t){var r=t(72069),n=t(18565),e=t(73126),a=n("species");s.exports=function(o){return e>=51||!r(function(){var u=[],i=u.constructor={};return i[a]=function(){return{foo:1}},u[o](Boolean).foo!==1})}},6148:function(s,l,t){var r=t(72069);s.exports=function(n,e){var a=[][n];return!!a&&r(function(){a.call(null,e||function(){return 1},1)})}},97264:function(s,l,t){var r=t(85156),n=t(49671),e=t(72181),a=t(82628),o=TypeError,u="Reduce of empty array with no initial value",i=function(v){return function(f,c,d,h){var g=n(f),p=e(g),y=a(g);if(r(c),y===0&&d<2)throw new o(u);var m=v?y-1:0,O=v?-1:1;if(d<2)for(;;){if(m in p){h=p[m],m+=O;break}if(m+=O,v?m<0:y<=m)throw new o(u)}for(;v?m>=0:y>m;m+=O)m in p&&(h=c(h,p[m],m,g));return h}};s.exports={left:i(!1),right:i(!0)}},2213:function(s,l,t){var r=t(92986),n=t(3438),e=TypeError,a=Object.getOwnPropertyDescriptor,o=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}();s.exports=o?function(u,i){if(n(u)&&!a(u,"length").writable)throw new e("Cannot set read only .length");return u.length=i}:function(u,i){return u.length=i}},22806:function(s,l,t){var r=t(11286);s.exports=r([].slice)},13270:function(s,l,t){var r=t(22806),n=Math.floor,e=function(a,o){var u=a.length;if(u<8)for(var i=1,v,f;i0;)a[f]=a[--f];f!==i++&&(a[f]=v)}else for(var c=n(u/2),d=e(r(a,0,c),o),h=e(r(a,c),o),g=d.length,p=h.length,y=0,m=0;y=v||c<0)throw new e("Incorrect index");for(var d=new o(v),h=0;h1?arguments[1]:void 0),F;F=F?F.next:$.first;)for(U(F.value,F.key,this);F&&F.removed;)F=F.previous},has:function(N){return!!C(this,N)}}),e(x,S?{get:function(N){var $=C(this,N);return $&&$.value},set:function(N,$){return A(this,N===0?0:N,$)}}:{add:function(N){return A(this,N=N===0?0:N,N)}}),d&&n(x,"size",{configurable:!0,get:function(){return I(this).size}}),T},setStrong:function(m,O,S){var E=O+" Iterator",T=y(O),x=y(E);v(m,O,function(I,A){p(this,{type:E,target:I,state:T(I),kind:A,last:void 0})},function(){for(var I=x(this),A=I.kind,C=I.last;C&&C.removed;)C=C.previous;return!I.target||!(I.last=C=C?C.next:I.state.first)?(I.target=void 0,f(void 0,!0)):f(A==="keys"?C.key:A==="values"?C.value:[C.key,C.value],!1)},S?"entries":"values",!S,!0),c(O)}}},94667:function(s,l,t){var r=t(11286),n=t(2725),e=t(31853).getWeakData,a=t(12833),o=t(25001),u=t(5683),i=t(37540),v=t(55902),f=t(66655),c=t(94879),d=t(82367),h=d.set,g=d.getterFor,p=f.find,y=f.findIndex,m=r([].splice),O=0,S=function(x){return x.frozen||(x.frozen=new E)},E=function(){this.entries=[]},T=function(x,I){return p(x.entries,function(A){return A[0]===I})};E.prototype={get:function(x){var I=T(this,x);if(I)return I[1]},has:function(x){return!!T(this,x)},set:function(x,I){var A=T(this,x);A?A[1]=I:this.entries.push([x,I])},delete:function(x){var I=y(this.entries,function(A){return A[0]===x});return~I&&m(this.entries,I,1),!!~I}},s.exports={getConstructor:function(x,I,A,C){var P=x(function(F,D){a(F,N),h(F,{type:I,id:O++,frozen:void 0}),u(D)||v(D,F[C],{that:F,AS_ENTRIES:A})}),N=P.prototype,$=g(I),U=function(F,D,L){var b=$(F),K=e(o(D),!0);return K===!0?S(b).set(D,L):K[b.id]=L,F};return n(N,{delete:function(F){var D=$(this);if(!i(F))return!1;var L=e(F);return L===!0?S(D).delete(F):L&&c(L,D.id)&&delete L[D.id]},has:function(D){var L=$(this);if(!i(D))return!1;var b=e(D);return b===!0?S(L).has(D):b&&c(b,L.id)}}),n(N,A?{get:function(D){var L=$(this);if(i(D)){var b=e(D);return b===!0?S(L).get(D):b?b[L.id]:void 0}},set:function(D,L){return U(this,D,L)}}:{add:function(D){return U(this,D,!0)}}),P}}},89378:function(s,l,t){var r=t(14304),n=t(66009),e=t(11286),a=t(13278),o=t(16142),u=t(31853),i=t(55902),v=t(12833),f=t(23583),c=t(5683),d=t(37540),h=t(72069),g=t(97494),p=t(78401),y=t(32345);s.exports=function(m,O,S){var E=m.indexOf("Map")!==-1,T=m.indexOf("Weak")!==-1,x=E?"set":"add",I=n[m],A=I&&I.prototype,C=I,P={},N=function(K){var H=e(A[K]);o(A,K,K==="add"?function(X){return H(this,X===0?0:X),this}:K==="delete"?function(Q){return T&&!d(Q)?!1:H(this,Q===0?0:Q)}:K==="get"?function(X){return T&&!d(X)?void 0:H(this,X===0?0:X)}:K==="has"?function(X){return T&&!d(X)?!1:H(this,X===0?0:X)}:function(X,st){return H(this,X===0?0:X,st),this})},$=a(m,!f(I)||!(T||A.forEach&&!h(function(){new I().entries().next()})));if($)C=S.getConstructor(O,m,E,x),u.enable();else if(a(m,!0)){var U=new C,F=U[x](T?{}:-0,1)!==U,D=h(function(){U.has(1)}),L=g(function(K){new I(K)}),b=!T&&h(function(){for(var K=new I,H=5;H--;)K[x](H,H);return!K.has(-0)});L||(C=O(function(K,H){v(K,A);var Q=y(new I,K,C);return c(H)||i(H,Q[x],{that:Q,AS_ENTRIES:E}),Q}),C.prototype=A,A.constructor=C),(D||b)&&(N("delete"),N("has"),E&&N("get")),(b||F)&&N(x),T&&A.clear&&delete A.clear}return P[m]=C,r({global:!0,constructor:!0,forced:C!==I},P),p(C,m),T||S.setStrong(C,m,E),C}},93706:function(s,l,t){var r=t(94879),n=t(16885),e=t(71349),a=t(7831);s.exports=function(o,u,i){for(var v=n(u),f=a.f,c=e.f,d=0;d"+c+""}},10659:function(s){s.exports=function(l,t){return{value:l,done:t}}},90809:function(s,l,t){var r=t(92986),n=t(7831),e=t(18526);s.exports=r?function(a,o,u){return n.f(a,o,e(1,u))}:function(a,o,u){return a[o]=u,a}},18526:function(s){s.exports=function(l,t){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:t}}},84082:function(s,l,t){var r=t(92986),n=t(7831),e=t(18526);s.exports=function(a,o,u){r?n.f(a,o,e(0,u)):a[o]=u}},11890:function(s,l,t){var r=t(11286),n=t(72069),e=t(61607).start,a=RangeError,o=isFinite,u=Math.abs,i=Date.prototype,v=i.toISOString,f=r(i.getTime),c=r(i.getUTCDate),d=r(i.getUTCFullYear),h=r(i.getUTCHours),g=r(i.getUTCMilliseconds),p=r(i.getUTCMinutes),y=r(i.getUTCMonth),m=r(i.getUTCSeconds);s.exports=n(function(){return v.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!n(function(){v.call(new Date(NaN))})?function(){if(!o(f(this)))throw new a("Invalid time value");var S=this,E=d(S),T=g(S),x=E<0?"-":E>9999?"+":"";return x+e(u(E),x?6:4,0)+"-"+e(y(S)+1,2,0)+"-"+e(c(S),2,0)+"T"+e(h(S),2,0)+":"+e(p(S),2,0)+":"+e(m(S),2,0)+"."+e(T,3,0)+"Z"}:v},84306:function(s,l,t){var r=t(25001),n=t(2064),e=TypeError;s.exports=function(a){if(r(this),a==="string"||a==="default")a="string";else if(a!=="number")throw new e("Incorrect hint");return n(this,a)}},85500:function(s,l,t){var r=t(13749),n=t(7831);s.exports=function(e,a,o){return o.get&&r(o.get,a,{getter:!0}),o.set&&r(o.set,a,{setter:!0}),n.f(e,a,o)}},16142:function(s,l,t){var r=t(23583),n=t(7831),e=t(13749),a=t(36003);s.exports=function(o,u,i,v){v||(v={});var f=v.enumerable,c=v.name!==void 0?v.name:u;if(r(i)&&e(i,c,v),v.global)f?o[u]=i:a(u,i);else{try{v.unsafe?o[u]&&(f=!0):delete o[u]}catch(d){}f?o[u]=i:n.f(o,u,{value:i,enumerable:!1,configurable:!v.nonConfigurable,writable:!v.nonWritable})}return o}},2725:function(s,l,t){var r=t(16142);s.exports=function(n,e,a){for(var o in e)r(n,o,e[o],a);return n}},36003:function(s,l,t){var r=t(66009),n=Object.defineProperty;s.exports=function(e,a){try{n(r,e,{value:a,configurable:!0,writable:!0})}catch(o){r[e]=a}return a}},12384:function(s,l,t){var r=t(82453),n=TypeError;s.exports=function(e,a){if(!delete e[a])throw new n("Cannot delete property "+r(a)+" of "+r(e))}},92986:function(s,l,t){var r=t(72069);s.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},63741:function(s,l,t){var r=t(66009),n=t(18096),e=t(99050),a=r.structuredClone,o=r.ArrayBuffer,u=r.MessageChannel,i=!1,v,f,c,d;if(e)i=function(h){a(h,{transfer:[h]})};else if(o)try{u||(v=n("worker_threads"),v&&(u=v.MessageChannel)),u&&(f=new u,c=new o(2),d=function(h){f.port1.postMessage(null,[h])},c.byteLength===2&&(d(c),c.byteLength===0&&(i=d)))}catch(h){}s.exports=i},85501:function(s,l,t){var r=t(66009),n=t(37540),e=r.document,a=n(e)&&n(e.createElement);s.exports=function(o){return a?e.createElement(o):{}}},20095:function(s){var l=TypeError,t=9007199254740991;s.exports=function(r){if(r>t)throw l("Maximum allowed index exceeded");return r}},74408:function(s){s.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},93014:function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},39882:function(s,l,t){var r=t(85501),n=r("span").classList,e=n&&n.constructor&&n.constructor.prototype;s.exports=e===Object.prototype?void 0:e},54040:function(s,l,t){var r=t(89042),n=r.match(/firefox\/(\d+)/i);s.exports=!!n&&+n[1]},63144:function(s,l,t){var r=t(56422),n=t(42954);s.exports=!r&&!n&&typeof window=="object"&&typeof document=="object"},5017:function(s){s.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},56422:function(s){s.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},87216:function(s,l,t){var r=t(89042);s.exports=/MSIE|Trident/.test(r)},92150:function(s,l,t){var r=t(89042);s.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble!="undefined"},51149:function(s,l,t){var r=t(89042);s.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},42954:function(s,l,t){var r=t(66009),n=t(14274);s.exports=n(r.process)==="process"},81539:function(s,l,t){var r=t(89042);s.exports=/web0s(?!.*chrome)/i.test(r)},89042:function(s){s.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},73126:function(s,l,t){var r=t(66009),n=t(89042),e=r.process,a=r.Deno,o=e&&e.versions||a&&a.version,u=o&&o.v8,i,v;u&&(i=u.split("."),v=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!v&&n&&(i=n.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=n.match(/Chrome\/(\d+)/),i&&(v=+i[1]))),s.exports=v},68674:function(s,l,t){var r=t(89042),n=r.match(/AppleWebKit\/(\d+)\./);s.exports=!!n&&+n[1]},75785:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},40851:function(s,l,t){var r=t(11286),n=Error,e=r("".replace),a=function(i){return String(new n(i).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,u=o.test(a);s.exports=function(i,v){if(u&&typeof i=="string"&&!n.prepareStackTrace)for(;v--;)i=e(i,o,"");return i}},97077:function(s,l,t){var r=t(90809),n=t(40851),e=t(16929),a=Error.captureStackTrace;s.exports=function(o,u,i,v){e&&(a?a(o,u):r(o,"stack",n(i,v)))}},16929:function(s,l,t){var r=t(72069),n=t(18526);s.exports=!r(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",n(1,7)),e.stack!==7):!0})},58434:function(s,l,t){var r=t(92986),n=t(72069),e=t(25001),a=t(15453),o=Error.prototype.toString,u=n(function(){if(r){var i=Object.create(Object.defineProperty({},"name",{get:function(){return this===i}}));if(o.call(i)!=="true")return!0}return o.call({message:1,name:2})!=="2: 1"||o.call({})!=="Error"});s.exports=u?function(){var v=e(this),f=a(v.name,"Error"),c=a(v.message);return f?c?f+": "+c:f:c}:o},14304:function(s,l,t){var r=t(66009),n=t(71349).f,e=t(90809),a=t(16142),o=t(36003),u=t(93706),i=t(13278);s.exports=function(v,f){var c=v.target,d=v.global,h=v.stat,g,p,y,m,O,S;if(d?p=r:h?p=r[c]||o(c,{}):p=r[c]&&r[c].prototype,p)for(y in f){if(O=f[y],v.dontCallGetSet?(S=n(p,y),m=S&&S.value):m=p[y],g=i(d?y:c+(h?".":"#")+y,v.forced),!g&&m!==void 0){if(typeof O==typeof m)continue;u(O,m)}(v.sham||m&&m.sham)&&e(O,"sham",!0),a(p,y,O,v)}}},72069:function(s){s.exports=function(l){try{return!!l()}catch(t){return!0}}},63194:function(s,l,t){t(31145);var r=t(96499),n=t(16142),e=t(44381),a=t(72069),o=t(18565),u=t(90809),i=o("species"),v=RegExp.prototype;s.exports=function(f,c,d,h){var g=o(f),p=!a(function(){var S={};return S[g]=function(){return 7},""[f](S)!==7}),y=p&&!a(function(){var S=!1,E=/a/;return f==="split"&&(E={},E.constructor={},E.constructor[i]=function(){return E},E.flags="",E[g]=/./[g]),E.exec=function(){return S=!0,null},E[g](""),!S});if(!p||!y||d){var m=/./[g],O=c(g,""[f],function(S,E,T,x,I){var A=E.exec;return A===e||A===v.exec?p&&!I?{done:!0,value:r(m,E,T,x)}:{done:!0,value:r(S,T,E,x)}:{done:!1}});n(String.prototype,f,O[0]),n(v,g,O[1])}h&&u(v[g],"sham",!0)}},53149:function(s,l,t){var r=t(3438),n=t(82628),e=t(20095),a=t(45526),o=function(u,i,v,f,c,d,h,g){for(var p=c,y=0,m=h?a(h,g):!1,O,S;y0&&r(O)?(S=n(O),p=o(u,i,O,S,p,d-1)-1):(e(p+1),u[p]=O),p++),y++;return p};s.exports=o},27534:function(s,l,t){var r=t(72069);s.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},66543:function(s,l,t){var r=t(87878),n=Function.prototype,e=n.apply,a=n.call;s.exports=typeof Reflect=="object"&&Reflect.apply||(r?a.bind(e):function(){return a.apply(e,arguments)})},45526:function(s,l,t){var r=t(77422),n=t(85156),e=t(87878),a=r(r.bind);s.exports=function(o,u){return n(o),u===void 0?o:e?a(o,u):function(){return o.apply(u,arguments)}}},87878:function(s,l,t){var r=t(72069);s.exports=!r(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})},91384:function(s,l,t){var r=t(11286),n=t(85156),e=t(37540),a=t(94879),o=t(22806),u=t(87878),i=Function,v=r([].concat),f=r([].join),c={},d=function(h,g,p){if(!a(c,g)){for(var y=[],m=0;m]*>)/g,v=/\$([$&'`]|\d{1,2})/g;s.exports=function(f,c,d,h,g,p){var y=d+f.length,m=h.length,O=v;return g!==void 0&&(g=n(g),O=i),o(p,O,function(S,E){var T;switch(a(E,0)){case"$":return"$";case"&":return f;case"`":return u(c,0,d);case"'":return u(c,y);case"<":T=g[u(E,1,-1)];break;default:var x=+E;if(x===0)return S;if(x>m){var I=e(x/10);return I===0?S:I<=m?h[I-1]===void 0?a(E,1):h[I-1]+a(E,1):S}T=h[x-1]}return T===void 0?"":T})}},66009:function(s){var l=function(t){return t&&t.Math===Math&&t};s.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof global=="object"&&global)||l(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},94879:function(s,l,t){var r=t(11286),n=t(49671),e=r({}.hasOwnProperty);s.exports=Object.hasOwn||function(o,u){return e(n(o),u)}},19423:function(s){s.exports={}},99095:function(s){s.exports=function(l,t){try{arguments.length===1?console.error(l):console.error(l,t)}catch(r){}}},96439:function(s,l,t){var r=t(38941);s.exports=r("document","documentElement")},52515:function(s,l,t){var r=t(92986),n=t(72069),e=t(85501);s.exports=!r&&!n(function(){return Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a!==7})},25212:function(s){var l=Array,t=Math.abs,r=Math.pow,n=Math.floor,e=Math.log,a=Math.LN2,o=function(i,v,f){var c=l(f),d=f*8-v-1,h=(1<>1,p=v===23?r(2,-24)-r(2,-77):0,y=i<0||i===0&&1/i<0?1:0,m=0,O,S,E;for(i=t(i),i!==i||i===1/0?(S=i!==i?1:0,O=h):(O=n(e(i)/a),E=r(2,-O),i*E<1&&(O--,E*=2),O+g>=1?i+=p/E:i+=p*r(2,1-g),i*E>=2&&(O++,E/=2),O+g>=h?(S=0,O=h):O+g>=1?(S=(i*E-1)*r(2,v),O+=g):(S=i*r(2,g-1)*r(2,v),O=0));v>=8;)c[m++]=S&255,S/=256,v-=8;for(O=O<0;)c[m++]=O&255,O/=256,d-=8;return c[--m]|=y*128,c},u=function(i,v){var f=i.length,c=f*8-v-1,d=(1<>1,g=c-7,p=f-1,y=i[p--],m=y&127,O;for(y>>=7;g>0;)m=m*256+i[p--],g-=8;for(O=m&(1<<-g)-1,m>>=-g,g+=v;g>0;)O=O*256+i[p--],g-=8;if(m===0)m=1-h;else{if(m===d)return O?NaN:y?-1/0:1/0;O+=r(2,v),m-=h}return(y?-1:1)*O*r(2,m-v)};s.exports={pack:o,unpack:u}},72181:function(s,l,t){var r=t(11286),n=t(72069),e=t(14274),a=Object,o=r("".split);s.exports=n(function(){return!a("z").propertyIsEnumerable(0)})?function(u){return e(u)==="String"?o(u,""):a(u)}:a},32345:function(s,l,t){var r=t(23583),n=t(37540),e=t(15861);s.exports=function(a,o,u){var i,v;return e&&r(i=o.constructor)&&i!==u&&n(v=i.prototype)&&v!==u.prototype&&e(a,v),a}},84352:function(s,l,t){var r=t(11286),n=t(23583),e=t(70443),a=r(Function.toString);n(e.inspectSource)||(e.inspectSource=function(o){return a(o)}),s.exports=e.inspectSource},31486:function(s,l,t){var r=t(37540),n=t(90809);s.exports=function(e,a){r(a)&&"cause"in a&&n(e,"cause",a.cause)}},31853:function(s,l,t){var r=t(14304),n=t(11286),e=t(19423),a=t(37540),o=t(94879),u=t(7831).f,i=t(83258),v=t(92880),f=t(28174),c=t(36374),d=t(27534),h=!1,g=c("meta"),p=0,y=function(x){u(x,g,{value:{objectID:"O"+p++,weakData:{}}})},m=function(x,I){if(!a(x))return typeof x=="symbol"?x:(typeof x=="string"?"S":"P")+x;if(!o(x,g)){if(!f(x))return"F";if(!I)return"E";y(x)}return x[g].objectID},O=function(x,I){if(!o(x,g)){if(!f(x))return!0;if(!I)return!1;y(x)}return x[g].weakData},S=function(x){return d&&h&&f(x)&&!o(x,g)&&y(x),x},E=function(){T.enable=function(){},h=!0;var x=i.f,I=n([].splice),A={};A[g]=1,x(A).length&&(i.f=function(C){for(var P=x(C),N=0,$=P.length;N<$;N++)if(P[N]===g){I(P,N,1);break}return P},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:v.f}))},T=s.exports={enable:E,fastKey:m,getWeakData:O,onFreeze:S};e[g]=!0},82367:function(s,l,t){var r=t(42960),n=t(66009),e=t(37540),a=t(90809),o=t(94879),u=t(70443),i=t(44869),v=t(19423),f="Object already initialized",c=n.TypeError,d=n.WeakMap,h,g,p,y=function(E){return p(E)?g(E):h(E,{})},m=function(E){return function(T){var x;if(!e(T)||(x=g(T)).type!==E)throw new c("Incompatible receiver, "+E+" required");return x}};if(r||u.state){var O=u.state||(u.state=new d);O.get=O.get,O.has=O.has,O.set=O.set,h=function(E,T){if(O.has(E))throw new c(f);return T.facade=E,O.set(E,T),T},g=function(E){return O.get(E)||{}},p=function(E){return O.has(E)}}else{var S=i("state");v[S]=!0,h=function(E,T){if(o(E,S))throw new c(f);return T.facade=E,a(E,S,T),T},g=function(E){return o(E,S)?E[S]:{}},p=function(E){return o(E,S)}}s.exports={set:h,get:g,has:p,enforce:y,getterFor:m}},48199:function(s,l,t){var r=t(18565),n=t(29107),e=r("iterator"),a=Array.prototype;s.exports=function(o){return o!==void 0&&(n.Array===o||a[e]===o)}},3438:function(s,l,t){var r=t(14274);s.exports=Array.isArray||function(e){return r(e)==="Array"}},77129:function(s,l,t){var r=t(9205);s.exports=function(n){var e=r(n);return e==="BigInt64Array"||e==="BigUint64Array"}},23583:function(s){var l=typeof document=="object"&&document.all;s.exports=typeof l=="undefined"&&l!==void 0?function(t){return typeof t=="function"||t===l}:function(t){return typeof t=="function"}},11051:function(s,l,t){var r=t(11286),n=t(72069),e=t(23583),a=t(9205),o=t(38941),u=t(84352),i=function(){},v=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,c=r(f.exec),d=!f.test(i),h=function(y){if(!e(y))return!1;try{return v(i,[],y),!0}catch(m){return!1}},g=function(y){if(!e(y))return!1;switch(a(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!c(f,u(y))}catch(m){return!0}};g.sham=!0,s.exports=!v||n(function(){var p;return h(h.call)||!h(Object)||!h(function(){p=!0})||p})?g:h},69745:function(s,l,t){var r=t(94879);s.exports=function(n){return n!==void 0&&(r(n,"value")||r(n,"writable"))}},13278:function(s,l,t){var r=t(72069),n=t(23583),e=/#|\.prototype\./,a=function(f,c){var d=u[o(f)];return d===v?!0:d===i?!1:n(c)?r(c):!!c},o=a.normalize=function(f){return String(f).replace(e,".").toLowerCase()},u=a.data={},i=a.NATIVE="N",v=a.POLYFILL="P";s.exports=a},613:function(s,l,t){var r=t(37540),n=Math.floor;s.exports=Number.isInteger||function(a){return!r(a)&&isFinite(a)&&n(a)===a}},5683:function(s){s.exports=function(l){return l==null}},37540:function(s,l,t){var r=t(23583);s.exports=function(n){return typeof n=="object"?n!==null:r(n)}},52427:function(s,l,t){var r=t(37540);s.exports=function(n){return r(n)||n===null}},70457:function(s){s.exports=!1},11566:function(s,l,t){var r=t(37540),n=t(14274),e=t(18565),a=e("match");s.exports=function(o){var u;return r(o)&&((u=o[a])!==void 0?!!u:n(o)==="RegExp")}},491:function(s,l,t){var r=t(38941),n=t(23583),e=t(95307),a=t(50234),o=Object;s.exports=a?function(u){return typeof u=="symbol"}:function(u){var i=r("Symbol");return n(i)&&e(i.prototype,o(u))}},9573:function(s,l,t){var r=t(96499);s.exports=function(n,e,a){for(var o=a?n:n.iterator,u=n.next,i,v;!(i=r(u,o)).done;)if(v=e(i.value),v!==void 0)return v}},55902:function(s,l,t){var r=t(45526),n=t(96499),e=t(25001),a=t(82453),o=t(48199),u=t(82628),i=t(95307),v=t(90619),f=t(81077),c=t(99797),d=TypeError,h=function(p,y){this.stopped=p,this.result=y},g=h.prototype;s.exports=function(p,y,m){var O=m&&m.that,S=!!(m&&m.AS_ENTRIES),E=!!(m&&m.IS_RECORD),T=!!(m&&m.IS_ITERATOR),x=!!(m&&m.INTERRUPTED),I=r(y,O),A,C,P,N,$,U,F,D=function(b){return A&&c(A,"normal",b),new h(!0,b)},L=function(b){return S?(e(b),x?I(b[0],b[1],D):I(b[0],b[1])):x?I(b,D):I(b)};if(E)A=p.iterator;else if(T)A=p;else{if(C=f(p),!C)throw new d(a(p)+" is not iterable");if(o(C)){for(P=0,N=u(p);N>P;P++)if($=L(p[P]),$&&i(g,$))return $;return new h(!1)}A=v(p,C)}for(U=E?p.next:A.next;!(F=n(U,A)).done;){try{$=L(F.value)}catch(b){c(A,"throw",b)}if(typeof $=="object"&&$&&i(g,$))return $}return new h(!1)}},99797:function(s,l,t){var r=t(96499),n=t(25001),e=t(10512);s.exports=function(a,o,u){var i,v;n(a);try{if(i=e(a,"return"),!i){if(o==="throw")throw u;return u}i=r(i,a)}catch(f){v=!0,i=f}if(o==="throw")throw u;if(v)throw i;return n(i),u}},26820:function(s,l,t){var r=t(24519).IteratorPrototype,n=t(5406),e=t(18526),a=t(78401),o=t(29107),u=function(){return this};s.exports=function(i,v,f,c){var d=v+" Iterator";return i.prototype=n(r,{next:e(+!c,f)}),a(i,d,!1,!0),o[d]=u,i}},10218:function(s,l,t){var r=t(14304),n=t(96499),e=t(70457),a=t(86588),o=t(23583),u=t(26820),i=t(26313),v=t(15861),f=t(78401),c=t(90809),d=t(16142),h=t(18565),g=t(29107),p=t(24519),y=a.PROPER,m=a.CONFIGURABLE,O=p.IteratorPrototype,S=p.BUGGY_SAFARI_ITERATORS,E=h("iterator"),T="keys",x="values",I="entries",A=function(){return this};s.exports=function(C,P,N,$,U,F,D){u(N,P,$);var L=function(gt){if(gt===U&&X)return X;if(!S&>&> in H)return H[gt];switch(gt){case T:return function(){return new N(this,gt)};case x:return function(){return new N(this,gt)};case I:return function(){return new N(this,gt)}}return function(){return new N(this)}},b=P+" Iterator",K=!1,H=C.prototype,Q=H[E]||H["@@iterator"]||U&&H[U],X=!S&&Q||L(U),st=P==="Array"&&H.entries||Q,et,lt,ht;if(st&&(et=i(st.call(new C)),et!==Object.prototype&&et.next&&(!e&&i(et)!==O&&(v?v(et,O):o(et[E])||d(et,E,A)),f(et,b,!0,!0),e&&(g[b]=A))),y&&U===x&&Q&&Q.name!==x&&(!e&&m?c(H,"name",x):(K=!0,X=function(){return n(Q,this)})),U)if(lt={values:L(x),keys:F?X:L(T),entries:L(I)},D)for(ht in lt)(S||K||!(ht in H))&&d(H,ht,lt[ht]);else r({target:P,proto:!0,forced:S||K},lt);return(!e||D)&&H[E]!==X&&d(H,E,X,{name:U}),g[P]=X,lt}},24519:function(s,l,t){var r=t(72069),n=t(23583),e=t(37540),a=t(5406),o=t(26313),u=t(16142),i=t(18565),v=t(70457),f=i("iterator"),c=!1,d,h,g;[].keys&&(g=[].keys(),"next"in g?(h=o(o(g)),h!==Object.prototype&&(d=h)):c=!0);var p=!e(d)||r(function(){var y={};return d[f].call(y)!==y});p?d={}:v&&(d=a(d)),n(d[f])||u(d,f,function(){return this}),s.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:c}},29107:function(s){s.exports={}},82628:function(s,l,t){var r=t(45344);s.exports=function(n){return r(n.length)}},13749:function(s,l,t){var r=t(11286),n=t(72069),e=t(23583),a=t(94879),o=t(92986),u=t(86588).CONFIGURABLE,i=t(84352),v=t(82367),f=v.enforce,c=v.get,d=String,h=Object.defineProperty,g=r("".slice),p=r("".replace),y=r([].join),m=o&&!n(function(){return h(function(){},"length",{value:8}).length!==8}),O=String(String).split("String"),S=s.exports=function(E,T,x){g(d(T),0,7)==="Symbol("&&(T="["+p(d(T),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(T="get "+T),x&&x.setter&&(T="set "+T),(!a(E,"name")||u&&E.name!==T)&&(o?h(E,"name",{value:T,configurable:!0}):E.name=T),m&&x&&a(x,"arity")&&E.length!==x.arity&&h(E,"length",{value:x.arity});try{x&&a(x,"constructor")&&x.constructor?o&&h(E,"prototype",{writable:!1}):E.prototype&&(E.prototype=void 0)}catch(A){}var I=f(E);return a(I,"source")||(I.source=y(O,typeof T=="string"?T:"")),E};Function.prototype.toString=S(function(){return e(this)&&c(this).source||i(this)},"toString")},1774:function(s,l,t){var r=t(11286),n=Map.prototype;s.exports={Map,set:r(n.set),get:r(n.get),has:r(n.has),remove:r(n.delete),proto:n}},98940:function(s){var l=Math.expm1,t=Math.exp;s.exports=!l||l(10)>22025.465794806718||l(10)<22025.465794806718||l(-2e-17)!==-2e-17?function(n){var e=+n;return e===0?e:e>-1e-6&&e<1e-6?e+e*e/2:t(e)-1}:l},10418:function(s,l,t){var r=t(93976),n=Math.abs,e=2220446049250313e-31,a=1/e,o=function(u){return u+a-a};s.exports=function(u,i,v,f){var c=+u,d=n(c),h=r(c);if(dv||p!==p?h*(1/0):h*p}},93279:function(s,l,t){var r=t(10418),n=11920928955078125e-23,e=34028234663852886e22,a=11754943508222875e-54;s.exports=Math.fround||function(u){return r(u,n,e,a)}},41942:function(s){var l=Math.log,t=Math.LOG10E;s.exports=Math.log10||function(n){return l(n)*t}},49366:function(s){var l=Math.log;s.exports=Math.log1p||function(r){var n=+r;return n>-1e-8&&n<1e-8?n-n*n/2:l(1+n)}},93976:function(s){s.exports=Math.sign||function(t){var r=+t;return r===0||r!==r?r:r<0?-1:1}},22459:function(s){var l=Math.ceil,t=Math.floor;s.exports=Math.trunc||function(n){var e=+n;return(e>0?t:l)(e)}},9709:function(s,l,t){var r=t(66009),n=t(28167),e=t(45526),a=t(23115).set,o=t(76895),u=t(51149),i=t(92150),v=t(81539),f=t(42954),c=r.MutationObserver||r.WebKitMutationObserver,d=r.document,h=r.process,g=r.Promise,p=n("queueMicrotask"),y,m,O,S,E;if(!p){var T=new o,x=function(){var I,A;for(f&&(I=h.domain)&&I.exit();A=T.get();)try{A()}catch(C){throw T.head&&y(),C}I&&I.enter()};!u&&!f&&!v&&c&&d?(m=!0,O=d.createTextNode(""),new c(x).observe(O,{characterData:!0}),y=function(){O.data=m=!m}):!i&&g&&g.resolve?(S=g.resolve(void 0),S.constructor=g,E=e(S.then,S),y=function(){E(x)}):f?y=function(){h.nextTick(x)}:(a=e(a,r),y=function(){a(x)}),p=function(I){T.head||y(),T.add(I)}}s.exports=p},24649:function(s,l,t){var r=t(85156),n=TypeError,e=function(a){var o,u;this.promise=new a(function(i,v){if(o!==void 0||u!==void 0)throw new n("Bad Promise constructor");o=i,u=v}),this.resolve=r(o),this.reject=r(u)};s.exports.f=function(a){return new e(a)}},15453:function(s,l,t){var r=t(17361);s.exports=function(n,e){return n===void 0?arguments.length<2?"":e:r(n)}},92337:function(s,l,t){var r=t(11566),n=TypeError;s.exports=function(e){if(r(e))throw new n("The method doesn't accept regular expressions");return e}},98074:function(s,l,t){var r=t(66009),n=r.isFinite;s.exports=Number.isFinite||function(a){return typeof a=="number"&&n(a)}},25838:function(s,l,t){var r=t(66009),n=t(72069),e=t(11286),a=t(17361),o=t(85900).trim,u=t(77082),i=e("".charAt),v=r.parseFloat,f=r.Symbol,c=f&&f.iterator,d=1/v(u+"-0")!==-1/0||c&&!n(function(){v(Object(c))});s.exports=d?function(g){var p=o(a(g)),y=v(p);return y===0&&i(p,0)==="-"?-0:y}:v},23009:function(s,l,t){var r=t(66009),n=t(72069),e=t(11286),a=t(17361),o=t(85900).trim,u=t(77082),i=r.parseInt,v=r.Symbol,f=v&&v.iterator,c=/^[+-]?0x/i,d=e(c.exec),h=i(u+"08")!==8||i(u+"0x16")!==22||f&&!n(function(){i(Object(f))});s.exports=h?function(p,y){var m=o(a(p));return i(m,y>>>0||(d(c,m)?16:10))}:i},16667:function(s,l,t){var r=t(92986),n=t(11286),e=t(96499),a=t(72069),o=t(18350),u=t(24943),i=t(79591),v=t(49671),f=t(72181),c=Object.assign,d=Object.defineProperty,h=n([].concat);s.exports=!c||a(function(){if(r&&c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},p={},y=Symbol("assign detection"),m="abcdefghijklmnopqrst";return g[y]=7,m.split("").forEach(function(O){p[O]=O}),c({},g)[y]!==7||o(c({},p)).join("")!==m})?function(p,y){for(var m=v(p),O=arguments.length,S=1,E=u.f,T=i.f;O>S;)for(var x=f(arguments[S++]),I=E?h(o(x),E(x)):o(x),A=I.length,C=0,P;A>C;)P=I[C++],(!r||e(T,x,P))&&(m[P]=x[P]);return m}:c},5406:function(s,l,t){var r=t(25001),n=t(61963),e=t(75785),a=t(19423),o=t(96439),u=t(85501),i=t(44869),v=">",f="<",c="prototype",d="script",h=i("IE_PROTO"),g=function(){},p=function(E){return f+d+v+E+f+"/"+d+v},y=function(E){E.write(p("")),E.close();var T=E.parentWindow.Object;return E=null,T},m=function(){var E=u("iframe"),T="java"+d+":",x;return E.style.display="none",o.appendChild(E),E.src=String(T),x=E.contentWindow.document,x.open(),x.write(p("document.F=Object")),x.close(),x.F},O,S=function(){try{O=new ActiveXObject("htmlfile")}catch(T){}S=typeof document!="undefined"?document.domain&&O?y(O):m():y(O);for(var E=e.length;E--;)delete S[c][e[E]];return S()};a[h]=!0,s.exports=Object.create||function(T,x){var I;return T!==null?(g[c]=r(T),I=new g,g[c]=null,I[h]=T):I=S(),x===void 0?I:n.f(I,x)}},61963:function(s,l,t){var r=t(92986),n=t(356),e=t(7831),a=t(25001),o=t(36859),u=t(18350);l.f=r&&!n?Object.defineProperties:function(v,f){a(v);for(var c=o(f),d=u(f),h=d.length,g=0,p;h>g;)e.f(v,p=d[g++],c[p]);return v}},7831:function(s,l,t){var r=t(92986),n=t(52515),e=t(356),a=t(25001),o=t(50035),u=TypeError,i=Object.defineProperty,v=Object.getOwnPropertyDescriptor,f="enumerable",c="configurable",d="writable";l.f=r?e?function(g,p,y){if(a(g),p=o(p),a(y),typeof g=="function"&&p==="prototype"&&"value"in y&&d in y&&!y[d]){var m=v(g,p);m&&m[d]&&(g[p]=y.value,y={configurable:c in y?y[c]:m[c],enumerable:f in y?y[f]:m[f],writable:!1})}return i(g,p,y)}:i:function(g,p,y){if(a(g),p=o(p),a(y),n)try{return i(g,p,y)}catch(m){}if("get"in y||"set"in y)throw new u("Accessors not supported");return"value"in y&&(g[p]=y.value),g}},71349:function(s,l,t){var r=t(92986),n=t(96499),e=t(79591),a=t(18526),o=t(36859),u=t(50035),i=t(94879),v=t(52515),f=Object.getOwnPropertyDescriptor;l.f=r?f:function(d,h){if(d=o(d),h=u(h),v)try{return f(d,h)}catch(g){}if(i(d,h))return a(!n(e.f,d,h),d[h])}},92880:function(s,l,t){var r=t(14274),n=t(36859),e=t(83258).f,a=t(22806),o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(i){try{return e(i)}catch(v){return a(o)}};s.exports.f=function(v){return o&&r(v)==="Window"?u(v):e(n(v))}},83258:function(s,l,t){var r=t(6242),n=t(75785),e=n.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(o){return r(o,e)}},24943:function(s,l){l.f=Object.getOwnPropertySymbols},26313:function(s,l,t){var r=t(94879),n=t(23583),e=t(49671),a=t(44869),o=t(87501),u=a("IE_PROTO"),i=Object,v=i.prototype;s.exports=o?i.getPrototypeOf:function(f){var c=e(f);if(r(c,u))return c[u];var d=c.constructor;return n(d)&&c instanceof d?d.prototype:c instanceof i?v:null}},28174:function(s,l,t){var r=t(72069),n=t(37540),e=t(14274),a=t(72058),o=Object.isExtensible,u=r(function(){o(1)});s.exports=u||a?function(v){return!n(v)||a&&e(v)==="ArrayBuffer"?!1:o?o(v):!0}:o},95307:function(s,l,t){var r=t(11286);s.exports=r({}.isPrototypeOf)},6242:function(s,l,t){var r=t(11286),n=t(94879),e=t(36859),a=t(94319).indexOf,o=t(19423),u=r([].push);s.exports=function(i,v){var f=e(i),c=0,d=[],h;for(h in f)!n(o,h)&&n(f,h)&&u(d,h);for(;v.length>c;)n(f,h=v[c++])&&(~a(d,h)||u(d,h));return d}},18350:function(s,l,t){var r=t(6242),n=t(75785);s.exports=Object.keys||function(a){return r(a,n)}},79591:function(s,l){var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);l.f=n?function(a){var o=r(this,a);return!!o&&o.enumerable}:t},57629:function(s,l,t){var r=t(70457),n=t(66009),e=t(72069),a=t(68674);s.exports=r||!e(function(){if(!(a&&a<535)){var o=Math.random();__defineSetter__.call(null,o,function(){}),delete n[o]}})},15861:function(s,l,t){var r=t(84756),n=t(37540),e=t(2068),a=t(53408);s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,u={},i;try{i=r(Object.prototype,"__proto__","set"),i(u,[]),o=u instanceof Array}catch(v){}return function(f,c){return e(f),a(c),n(f)&&(o?i(f,c):f.__proto__=c),f}}():void 0)},8511:function(s,l,t){var r=t(92986),n=t(72069),e=t(11286),a=t(26313),o=t(18350),u=t(36859),i=t(79591).f,v=e(i),f=e([].push),c=r&&n(function(){var h=Object.create(null);return h[2]=2,!v(h,2)}),d=function(h){return function(g){for(var p=u(g),y=o(p),m=c&&a(p)===null,O=y.length,S=0,E=[],T;O>S;)T=y[S++],(!r||(m?T in p:v(p,T)))&&f(E,h?[T,p[T]]:p[T]);return E}};s.exports={entries:d(!0),values:d(!1)}},60105:function(s,l,t){var r=t(67878),n=t(9205);s.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},2064:function(s,l,t){var r=t(96499),n=t(23583),e=t(37540),a=TypeError;s.exports=function(o,u){var i,v;if(u==="string"&&n(i=o.toString)&&!e(v=r(i,o))||n(i=o.valueOf)&&!e(v=r(i,o))||u!=="string"&&n(i=o.toString)&&!e(v=r(i,o)))return v;throw new a("Can't convert object to primitive value")}},16885:function(s,l,t){var r=t(38941),n=t(11286),e=t(83258),a=t(24943),o=t(25001),u=n([].concat);s.exports=r("Reflect","ownKeys")||function(v){var f=e.f(o(v)),c=a.f;return c?u(f,c(v)):f}},75081:function(s,l,t){var r=t(66009);s.exports=r},67805:function(s){s.exports=function(l){try{return{error:!1,value:l()}}catch(t){return{error:!0,value:t}}}},37130:function(s,l,t){var r=t(66009),n=t(98844),e=t(23583),a=t(13278),o=t(84352),u=t(18565),i=t(63144),v=t(56422),f=t(70457),c=t(73126),d=n&&n.prototype,h=u("species"),g=!1,p=e(r.PromiseRejectionEvent),y=a("Promise",function(){var m=o(n),O=m!==String(n);if(!O&&c===66||f&&!(d.catch&&d.finally))return!0;if(!c||c<51||!/native code/.test(m)){var S=new n(function(x){x(1)}),E=function(x){x(function(){},function(){})},T=S.constructor={};if(T[h]=E,g=S.then(function(){})instanceof E,!g)return!0}return!O&&(i||v)&&!p});s.exports={CONSTRUCTOR:y,REJECTION_EVENT:p,SUBCLASSING:g}},98844:function(s,l,t){var r=t(66009);s.exports=r.Promise},87408:function(s,l,t){var r=t(25001),n=t(37540),e=t(24649);s.exports=function(a,o){if(r(a),n(o)&&o.constructor===a)return o;var u=e.f(a),i=u.resolve;return i(o),u.promise}},26035:function(s,l,t){var r=t(98844),n=t(97494),e=t(37130).CONSTRUCTOR;s.exports=e||!n(function(a){r.all(a).then(void 0,function(){})})},2594:function(s,l,t){var r=t(7831).f;s.exports=function(n,e,a){a in n||r(n,a,{configurable:!0,get:function(){return e[a]},set:function(o){e[a]=o}})}},76895:function(s){var l=function(){this.head=null,this.tail=null};l.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}},s.exports=l},33064:function(s,l,t){var r=t(96499),n=t(25001),e=t(23583),a=t(14274),o=t(44381),u=TypeError;s.exports=function(i,v){var f=i.exec;if(e(f)){var c=r(f,i,v);return c!==null&&n(c),c}if(a(i)==="RegExp")return r(o,i,v);throw new u("RegExp#exec called on incompatible receiver")}},44381:function(s,l,t){var r=t(96499),n=t(11286),e=t(17361),a=t(29833),o=t(39807),u=t(96731),i=t(5406),v=t(82367).get,f=t(76769),c=t(85220),d=u("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,p=n("".charAt),y=n("".indexOf),m=n("".replace),O=n("".slice),S=function(){var I=/a/,A=/b*/g;return r(h,I,"a"),r(h,A,"a"),I.lastIndex!==0||A.lastIndex!==0}(),E=o.BROKEN_CARET,T=/()??/.exec("")[1]!==void 0,x=S||T||E||f||c;x&&(g=function(A){var C=this,P=v(C),N=e(A),$=P.raw,U,F,D,L,b,K,H;if($)return $.lastIndex=C.lastIndex,U=r(g,$,N),C.lastIndex=$.lastIndex,U;var Q=P.groups,X=E&&C.sticky,st=r(a,C),et=C.source,lt=0,ht=N;if(X&&(st=m(st,"y",""),y(st,"g")===-1&&(st+="g"),ht=O(N,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&p(N,C.lastIndex-1)!==` + */(function(vr,rr){typeof exports=="object"&&typeof module=="object"?module.exports=rr():typeof define=="function"&&define.amd?define("bb",[],rr):typeof exports=="object"?exports.bb=rr():(vr.bb=vr.bb||{},vr.bb.plugin=vr.bb.plugin||{},vr.bb.plugin["bubblecompare.pkgd"]=rr())})(this,function(){return function(){"use strict";var Dr={19770:function(s,l,t){t.d(l,{default:function(){return br}});function r(){}function n(R){return R==null?r:function(){return this.querySelector(R)}}function e(R){typeof R!="function"&&(R=n(R));for(var M=this._groups,Z=M.length,it=new Array(Z),_=0;_=Mr&&(Mr=Rr+1);!(Br=$r[Mr])&&++Mr=0;)(Et=it[_])&&(dt&&Et.compareDocumentPosition(dt)^4&&dt.parentNode.insertBefore(Et,dt),dt=Et);return this}function K(R){R||(R=H);function M(tr,sr){return tr&&sr?R(tr.__data__,sr.__data__):!tr-!sr}for(var Z=this._groups,it=Z.length,_=new Array(it),dt=0;dtM?1:R>=M?0:NaN}function Q(){var R=arguments[0];return arguments[0]=this,R.apply(null,arguments),this}function X(){return Array.from(this)}function st(){for(var R=this._groups,M=0,Z=R.length;M=0&&(M=R.slice(0,Z))!=="xmlns"&&(R=R.slice(Z+1)),Lt.hasOwnProperty(M)?{space:Lt[M],local:R}:R}function Ct(R){return function(){this.removeAttribute(R)}}function at(R){return function(){this.removeAttributeNS(R.space,R.local)}}function vt(R,M){return function(){this.setAttribute(R,M)}}function St(R,M){return function(){this.setAttributeNS(R.space,R.local,M)}}function Rt(R,M){return function(){var Z=M.apply(this,arguments);Z==null?this.removeAttribute(R):this.setAttribute(R,Z)}}function Tt(R,M){return function(){var Z=M.apply(this,arguments);Z==null?this.removeAttributeNS(R.space,R.local):this.setAttributeNS(R.space,R.local,Z)}}function Nt(R,M){var Z=Dt(R);if(arguments.length<2){var it=this.node();return Z.local?it.getAttributeNS(Z.space,Z.local):it.getAttribute(Z)}return this.each((M==null?Z.local?at:Ct:typeof M=="function"?Z.local?Tt:Rt:Z.local?St:vt)(Z,M))}function Ht(R){return R.ownerDocument&&R.ownerDocument.defaultView||R.document&&R||R.defaultView}function Wt(R){return function(){this.style.removeProperty(R)}}function bt(R,M,Z){return function(){this.style.setProperty(R,M,Z)}}function Pt(R,M,Z){return function(){var it=M.apply(this,arguments);it==null?this.style.removeProperty(R):this.style.setProperty(R,it,Z)}}function Vt(R,M,Z){return arguments.length>1?this.each((M==null?Wt:typeof M=="function"?Pt:bt)(R,M,Z==null?"":Z)):$t(this.node(),R)}function $t(R,M){return R.style.getPropertyValue(M)||Ht(R).getComputedStyle(R,null).getPropertyValue(M)}function Mt(R){return function(){delete this[R]}}function q(R,M){return function(){this[R]=M}}function ut(R,M){return function(){var Z=M.apply(this,arguments);Z==null?delete this[R]:this[R]=Z}}function J(R,M){return arguments.length>1?this.each((M==null?Mt:typeof M=="function"?ut:q)(R,M)):this.node()[R]}function yt(R){return R.trim().split(/^|\s+/)}function pt(R){return R.classList||new ct(R)}function ct(R){this._node=R,this._names=yt(R.getAttribute("class")||"")}ct.prototype={add:function(R){var M=this._names.indexOf(R);M<0&&(this._names.push(R),this._node.setAttribute("class",this._names.join(" ")))},remove:function(R){var M=this._names.indexOf(R);M>=0&&(this._names.splice(M,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(R){return this._names.indexOf(R)>=0}};function ft(R,M){for(var Z=pt(R),it=-1,_=M.length;++it<_;)Z.add(M[it])}function zt(R,M){for(var Z=pt(R),it=-1,_=M.length;++it<_;)Z.remove(M[it])}function Yt(R){return function(){ft(this,R)}}function W(R){return function(){zt(this,R)}}function k(R,M){return function(){(M.apply(this,arguments)?ft:zt)(this,R)}}function tt(R,M){var Z=yt(R+"");if(arguments.length<2){for(var it=pt(this.node()),_=-1,dt=Z.length;++_=0&&(Z=M.slice(it+1),M=M.slice(0,it)),{type:M,name:Z}})}function kt(R){return function(){var M=this.__on;if(M){for(var Z=0,it=-1,_=M.length,dt;Z<_;++Z)dt=M[Z],(!R.type||dt.type===R.type)&&dt.name===R.name?this.removeEventListener(dt.type,dt.listener,dt.options):M[++it]=dt;++it?M.length=it:delete this.__on}}}function qt(R,M,Z){return function(){var it=this.__on,_,dt=Er(M);if(it){for(var Et=0,It=it.length;EtM in R?_t(R,M,{enumerable:!0,configurable:!0,writable:!0,value:Z}):R[M]=Z,Jt=(R,M,Z)=>nt(R,typeof M!="symbol"?M+"":M,Z);class er{constructor(M={}){Jt(this,"$$"),Jt(this,"options"),this.options=M}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(M=>{this[M]=null,delete this[M]})}}Jt(er,"version","3.12.4-nightly-20240726004631");var Ir=Object.defineProperty,Nr=(R,M,Z)=>M in R?Ir(R,M,{enumerable:!0,configurable:!0,writable:!0,value:Z}):R[M]=Z,Tr=(R,M,Z)=>Nr(R,typeof M!="symbol"?M+"":M,Z);const yr=class jr extends er{constructor(M){return super(M),Tr(this,"$$"),this}$init(){const{$$:M}=this;M.findClosest=this.findClosest.bind(this),M.getBubbleR=this.getBubbleR.bind(this),M.pointExpandedR=this.pointExpandedR.bind(this)}pointExpandedR(M){const Z=this.getBubbleR(M),{expandScale:it=1}=this.options;return jr.raiseFocusedBubbleLayer(M),this.changeCursorPoint(),Z*it}static raiseFocusedBubbleLayer(M){M.raise&&wt(M.node().parentNode.parentNode).raise()}changeCursorPoint(){this.$$.$el.eventRect.style("cursor","pointer")}findClosest(M,Z){const{$$:it}=this;return M.filter(_=>_&&!it.isBarType(_.id)).reduce((_,dt)=>it.dist(dt,Z){const tr=this.getZData(Kt.values[0]);return[Math.min(Ft,tr),Math.max(Gt,tr)]},[1e4,0]),It=dt>0&&Et===dt?0:_/Et;return Math.abs(It)*(it-Z)+Z}getZData(M){return this.$$.isBubbleZType(M)?this.$$.getBubbleZData(M.value,"z"):M.value}};Tr(yr,"version","0.0.1");let br=yr},85156:function(s,l,t){var r=t(23583),n=t(82453),e=TypeError;s.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a function")}},80042:function(s,l,t){var r=t(11051),n=t(82453),e=TypeError;s.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not a constructor")}},53408:function(s,l,t){var r=t(52427),n=String,e=TypeError;s.exports=function(a){if(r(a))return a;throw new e("Can't set "+n(a)+" as a prototype")}},76602:function(s,l,t){var r=t(172).has;s.exports=function(n){return r(n),n}},23811:function(s,l,t){var r=t(18565),n=t(5406),e=t(7831).f,a=r("unscopables"),o=Array.prototype;o[a]===void 0&&e(o,a,{configurable:!0,value:n(null)}),s.exports=function(u){o[a][u]=!0}},24487:function(s,l,t){var r=t(22149).charAt;s.exports=function(n,e,a){return e+(a?r(n,e).length:1)}},12833:function(s,l,t){var r=t(95307),n=TypeError;s.exports=function(e,a){if(r(a,e))return e;throw new n("Incorrect invocation")}},25001:function(s,l,t){var r=t(37540),n=String,e=TypeError;s.exports=function(a){if(r(a))return a;throw new e(n(a)+" is not an object")}},3237:function(s){s.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},58360:function(s,l,t){var r=t(84756),n=t(14274),e=TypeError;s.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(a){if(n(a)!=="ArrayBuffer")throw new e("ArrayBuffer expected");return a.byteLength}},30736:function(s,l,t){var r=t(11286),n=t(58360),e=r(ArrayBuffer.prototype.slice);s.exports=function(a){if(n(a)!==0)return!1;try{return e(a,0,0),!1}catch(o){return!0}}},72058:function(s,l,t){var r=t(72069);s.exports=r(function(){if(typeof ArrayBuffer=="function"){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}})},65006:function(s,l,t){var r=t(66009),n=t(11286),e=t(84756),a=t(9450),o=t(30736),u=t(58360),i=t(63741),v=t(99050),f=r.structuredClone,c=r.ArrayBuffer,d=r.DataView,h=r.TypeError,g=Math.min,p=c.prototype,y=d.prototype,m=n(p.slice),O=e(p,"resizable","get"),S=e(p,"maxByteLength","get"),E=n(y.getInt8),T=n(y.setInt8);s.exports=(v||i)&&function(x,I,A){var C=u(x),P=I===void 0?C:a(I),N=!O||!O(x),$;if(o(x))throw new h("ArrayBuffer is detached");if(v&&(x=f(x,{transfer:[x]}),C===P&&(A||N)))return x;if(C>=P&&(!A||N))$=m(x,0,P);else{var U=A&&!N&&S?{maxByteLength:S(x)}:void 0;$=new c(P,U);for(var F=new d(x),D=new d($),L=g(P,C),b=0;b>8&255]},Rt=function(q){return[q&255,q>>8&255,q>>16&255,q>>24&255]},Tt=function(q){return q[3]<<24|q[2]<<16|q[1]<<8|q[0]},Nt=function(q){return Ct(p(q),23,4)},Ht=function(q){return Ct(q,52,8)},Wt=function(q,ut,J){i(q[U],ut,{configurable:!0,get:function(){return J(this)[ut]}})},bt=function(q,ut,J,yt){var pt=b(q),ct=g(J),ft=!!yt;if(ct+ut>pt.byteLength)throw new gt(D);var zt=pt.bytes,Yt=ct+pt.byteOffset,W=E(zt,Yt,Yt+ut);return ft?W:Dt(W)},Pt=function(q,ut,J,yt,pt,ct){var ft=b(q),zt=g(J),Yt=yt(+pt),W=!!ct;if(zt+ut>ft.byteLength)throw new gt(D);for(var k=ft.bytes,tt=zt+ft.byteOffset,j=0;jct)throw new gt("Wrong offset");if(yt=yt===void 0?ct-ft:h(yt),ft+yt>ct)throw new gt(F);K(this,{type:$,buffer:ut,byteLength:yt,byteOffset:ft,bytes:pt.bytes}),e||(this.buffer=ut,this.byteLength=yt,this.byteOffset=ft)},et=st[U],e&&(Wt(Q,"byteLength",L),Wt(st,"buffer",b),Wt(st,"byteLength",b),Wt(st,"byteOffset",b)),v(et,{getInt8:function(ut){return bt(this,1,ut)[0]<<24>>24},getUint8:function(ut){return bt(this,1,ut)[0]},getInt16:function(ut){var J=bt(this,2,ut,arguments.length>1?arguments[1]:!1);return(J[1]<<8|J[0])<<16>>16},getUint16:function(ut){var J=bt(this,2,ut,arguments.length>1?arguments[1]:!1);return J[1]<<8|J[0]},getInt32:function(ut){return Tt(bt(this,4,ut,arguments.length>1?arguments[1]:!1))},getUint32:function(ut){return Tt(bt(this,4,ut,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(ut){return at(bt(this,4,ut,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(ut){return at(bt(this,8,ut,arguments.length>1?arguments[1]:!1),52)},setInt8:function(ut,J){Pt(this,1,ut,vt,J)},setUint8:function(ut,J){Pt(this,1,ut,vt,J)},setInt16:function(ut,J){Pt(this,2,ut,St,J,arguments.length>2?arguments[2]:!1)},setUint16:function(ut,J){Pt(this,2,ut,St,J,arguments.length>2?arguments[2]:!1)},setInt32:function(ut,J){Pt(this,4,ut,Rt,J,arguments.length>2?arguments[2]:!1)},setUint32:function(ut,J){Pt(this,4,ut,Rt,J,arguments.length>2?arguments[2]:!1)},setFloat32:function(ut,J){Pt(this,4,ut,Nt,J,arguments.length>2?arguments[2]:!1)},setFloat64:function(ut,J){Pt(this,8,ut,Ht,J,arguments.length>2?arguments[2]:!1)}});else{var Vt=C&&H.name!==N;!f(function(){H(1)})||!f(function(){new H(-1)})||f(function(){return new H,new H(1.5),new H(NaN),H.length!==1||Vt&&!P})?(Q=function(ut){return c(this,X),T(new H(g(ut)),this,Q)},Q[U]=X,X.constructor=Q,x(Q,H)):Vt&&P&&u(H,"name",N),O&&m(et)!==lt&&O(et,lt);var $t=new st(new Q(2)),Mt=n(et.setInt8);$t.setInt8(0,2147483648),$t.setInt8(1,2147483649),($t.getInt8(0)||!$t.getInt8(1))&&v(et,{setInt8:function(ut,J){Mt(this,ut,J<<24>>24)},setUint8:function(ut,J){Mt(this,ut,J<<24>>24)}},{unsafe:!0})}I(Q,N),I(st,$),s.exports={ArrayBuffer:Q,DataView:st}},81499:function(s,l,t){var r=t(49671),n=t(4652),e=t(82628),a=t(12384),o=Math.min;s.exports=[].copyWithin||function(i,v){var f=r(this),c=e(f),d=n(i,c),h=n(v,c),g=arguments.length>2?arguments[2]:void 0,p=o((g===void 0?c:n(g,c))-h,c-d),y=1;for(h0;)h in f?f[d]=f[h]:a(f,d),d+=y,h+=y;return f}},43011:function(s,l,t){var r=t(49671),n=t(4652),e=t(82628);s.exports=function(o){for(var u=r(this),i=e(u),v=arguments.length,f=n(v>1?arguments[1]:void 0,i),c=v>2?arguments[2]:void 0,d=c===void 0?i:n(c,i);d>f;)u[f++]=o;return u}},13349:function(s,l,t){var r=t(66655).forEach,n=t(6148),e=n("forEach");s.exports=e?[].forEach:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}},5220:function(s,l,t){var r=t(82628);s.exports=function(n,e,a){for(var o=0,u=arguments.length>2?a:r(e),i=new n(u);u>o;)i[o]=e[o++];return i}},48258:function(s,l,t){var r=t(45526),n=t(96499),e=t(49671),a=t(39969),o=t(48199),u=t(11051),i=t(82628),v=t(84082),f=t(90619),c=t(81077),d=Array;s.exports=function(g){var p=e(g),y=u(this),m=arguments.length,O=m>1?arguments[1]:void 0,S=O!==void 0;S&&(O=r(O,m>2?arguments[2]:void 0));var E=c(p),T=0,x,I,A,C,P,N;if(E&&!(this===d&&o(E)))for(I=y?new this:[],C=f(p,E),P=C.next;!(A=n(P,C)).done;T++)N=S?a(C,O,[A.value,T],!0):A.value,v(I,T,N);else for(x=i(p),I=y?new this(x):d(x);x>T;T++)N=S?O(p[T],T):p[T],v(I,T,N);return I.length=T,I}},94319:function(s,l,t){var r=t(36859),n=t(4652),e=t(82628),a=function(o){return function(u,i,v){var f=r(u),c=e(f);if(c===0)return!o&&-1;var d=n(v,c),h;if(o&&i!==i){for(;c>d;)if(h=f[d++],h!==h)return!0}else for(;c>d;d++)if((o||d in f)&&f[d]===i)return o||d||0;return!o&&-1}};s.exports={includes:a(!0),indexOf:a(!1)}},73849:function(s,l,t){var r=t(45526),n=t(72181),e=t(49671),a=t(82628),o=function(u){var i=u===1;return function(v,f,c){for(var d=e(v),h=n(d),g=a(h),p=r(f,c),y,m;g-- >0;)if(y=h[g],m=p(y,g,d),m)switch(u){case 0:return y;case 1:return g}return i?-1:void 0}};s.exports={findLast:o(0),findLastIndex:o(1)}},66655:function(s,l,t){var r=t(45526),n=t(11286),e=t(72181),a=t(49671),o=t(82628),u=t(62083),i=n([].push),v=function(f){var c=f===1,d=f===2,h=f===3,g=f===4,p=f===6,y=f===7,m=f===5||p;return function(O,S,E,T){for(var x=a(O),I=e(x),A=o(I),C=r(S,E),P=0,N=T||u,$=c?N(O,A):d||y?N(O,0):void 0,U,F;A>P;P++)if((m||P in I)&&(U=I[P],F=C(U,P,x),f))if(c)$[P]=F;else if(F)switch(f){case 3:return!0;case 5:return U;case 6:return P;case 2:i($,U)}else switch(f){case 4:return!1;case 7:i($,U)}return p?-1:h||g?g:$}};s.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},58465:function(s,l,t){var r=t(66543),n=t(36859),e=t(12105),a=t(82628),o=t(6148),u=Math.min,i=[].lastIndexOf,v=!!i&&1/[1].lastIndexOf(1,-0)<0,f=o("lastIndexOf"),c=v||!f;s.exports=c?function(h){if(v)return r(i,this,arguments)||0;var g=n(this),p=a(g);if(p===0)return-1;var y=p-1;for(arguments.length>1&&(y=u(y,e(arguments[1]))),y<0&&(y=p+y);y>=0;y--)if(y in g&&g[y]===h)return y||0;return-1}:i},52183:function(s,l,t){var r=t(72069),n=t(18565),e=t(73126),a=n("species");s.exports=function(o){return e>=51||!r(function(){var u=[],i=u.constructor={};return i[a]=function(){return{foo:1}},u[o](Boolean).foo!==1})}},6148:function(s,l,t){var r=t(72069);s.exports=function(n,e){var a=[][n];return!!a&&r(function(){a.call(null,e||function(){return 1},1)})}},97264:function(s,l,t){var r=t(85156),n=t(49671),e=t(72181),a=t(82628),o=TypeError,u="Reduce of empty array with no initial value",i=function(v){return function(f,c,d,h){var g=n(f),p=e(g),y=a(g);if(r(c),y===0&&d<2)throw new o(u);var m=v?y-1:0,O=v?-1:1;if(d<2)for(;;){if(m in p){h=p[m],m+=O;break}if(m+=O,v?m<0:y<=m)throw new o(u)}for(;v?m>=0:y>m;m+=O)m in p&&(h=c(h,p[m],m,g));return h}};s.exports={left:i(!1),right:i(!0)}},2213:function(s,l,t){var r=t(92986),n=t(3438),e=TypeError,a=Object.getOwnPropertyDescriptor,o=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}();s.exports=o?function(u,i){if(n(u)&&!a(u,"length").writable)throw new e("Cannot set read only .length");return u.length=i}:function(u,i){return u.length=i}},22806:function(s,l,t){var r=t(11286);s.exports=r([].slice)},13270:function(s,l,t){var r=t(22806),n=Math.floor,e=function(a,o){var u=a.length;if(u<8)for(var i=1,v,f;i0;)a[f]=a[--f];f!==i++&&(a[f]=v)}else for(var c=n(u/2),d=e(r(a,0,c),o),h=e(r(a,c),o),g=d.length,p=h.length,y=0,m=0;y=v||c<0)throw new e("Incorrect index");for(var d=new o(v),h=0;h1?arguments[1]:void 0),F;F=F?F.next:$.first;)for(U(F.value,F.key,this);F&&F.removed;)F=F.previous},has:function(N){return!!C(this,N)}}),e(x,S?{get:function(N){var $=C(this,N);return $&&$.value},set:function(N,$){return A(this,N===0?0:N,$)}}:{add:function(N){return A(this,N=N===0?0:N,N)}}),d&&n(x,"size",{configurable:!0,get:function(){return I(this).size}}),T},setStrong:function(m,O,S){var E=O+" Iterator",T=y(O),x=y(E);v(m,O,function(I,A){p(this,{type:E,target:I,state:T(I),kind:A,last:void 0})},function(){for(var I=x(this),A=I.kind,C=I.last;C&&C.removed;)C=C.previous;return!I.target||!(I.last=C=C?C.next:I.state.first)?(I.target=void 0,f(void 0,!0)):f(A==="keys"?C.key:A==="values"?C.value:[C.key,C.value],!1)},S?"entries":"values",!S,!0),c(O)}}},94667:function(s,l,t){var r=t(11286),n=t(2725),e=t(31853).getWeakData,a=t(12833),o=t(25001),u=t(5683),i=t(37540),v=t(55902),f=t(66655),c=t(94879),d=t(82367),h=d.set,g=d.getterFor,p=f.find,y=f.findIndex,m=r([].splice),O=0,S=function(x){return x.frozen||(x.frozen=new E)},E=function(){this.entries=[]},T=function(x,I){return p(x.entries,function(A){return A[0]===I})};E.prototype={get:function(x){var I=T(this,x);if(I)return I[1]},has:function(x){return!!T(this,x)},set:function(x,I){var A=T(this,x);A?A[1]=I:this.entries.push([x,I])},delete:function(x){var I=y(this.entries,function(A){return A[0]===x});return~I&&m(this.entries,I,1),!!~I}},s.exports={getConstructor:function(x,I,A,C){var P=x(function(F,D){a(F,N),h(F,{type:I,id:O++,frozen:void 0}),u(D)||v(D,F[C],{that:F,AS_ENTRIES:A})}),N=P.prototype,$=g(I),U=function(F,D,L){var b=$(F),K=e(o(D),!0);return K===!0?S(b).set(D,L):K[b.id]=L,F};return n(N,{delete:function(F){var D=$(this);if(!i(F))return!1;var L=e(F);return L===!0?S(D).delete(F):L&&c(L,D.id)&&delete L[D.id]},has:function(D){var L=$(this);if(!i(D))return!1;var b=e(D);return b===!0?S(L).has(D):b&&c(b,L.id)}}),n(N,A?{get:function(D){var L=$(this);if(i(D)){var b=e(D);return b===!0?S(L).get(D):b?b[L.id]:void 0}},set:function(D,L){return U(this,D,L)}}:{add:function(D){return U(this,D,!0)}}),P}}},89378:function(s,l,t){var r=t(14304),n=t(66009),e=t(11286),a=t(13278),o=t(16142),u=t(31853),i=t(55902),v=t(12833),f=t(23583),c=t(5683),d=t(37540),h=t(72069),g=t(97494),p=t(78401),y=t(32345);s.exports=function(m,O,S){var E=m.indexOf("Map")!==-1,T=m.indexOf("Weak")!==-1,x=E?"set":"add",I=n[m],A=I&&I.prototype,C=I,P={},N=function(K){var H=e(A[K]);o(A,K,K==="add"?function(X){return H(this,X===0?0:X),this}:K==="delete"?function(Q){return T&&!d(Q)?!1:H(this,Q===0?0:Q)}:K==="get"?function(X){return T&&!d(X)?void 0:H(this,X===0?0:X)}:K==="has"?function(X){return T&&!d(X)?!1:H(this,X===0?0:X)}:function(X,st){return H(this,X===0?0:X,st),this})},$=a(m,!f(I)||!(T||A.forEach&&!h(function(){new I().entries().next()})));if($)C=S.getConstructor(O,m,E,x),u.enable();else if(a(m,!0)){var U=new C,F=U[x](T?{}:-0,1)!==U,D=h(function(){U.has(1)}),L=g(function(K){new I(K)}),b=!T&&h(function(){for(var K=new I,H=5;H--;)K[x](H,H);return!K.has(-0)});L||(C=O(function(K,H){v(K,A);var Q=y(new I,K,C);return c(H)||i(H,Q[x],{that:Q,AS_ENTRIES:E}),Q}),C.prototype=A,A.constructor=C),(D||b)&&(N("delete"),N("has"),E&&N("get")),(b||F)&&N(x),T&&A.clear&&delete A.clear}return P[m]=C,r({global:!0,constructor:!0,forced:C!==I},P),p(C,m),T||S.setStrong(C,m,E),C}},93706:function(s,l,t){var r=t(94879),n=t(16885),e=t(71349),a=t(7831);s.exports=function(o,u,i){for(var v=n(u),f=a.f,c=e.f,d=0;d"+c+""}},10659:function(s){s.exports=function(l,t){return{value:l,done:t}}},90809:function(s,l,t){var r=t(92986),n=t(7831),e=t(18526);s.exports=r?function(a,o,u){return n.f(a,o,e(1,u))}:function(a,o,u){return a[o]=u,a}},18526:function(s){s.exports=function(l,t){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:t}}},84082:function(s,l,t){var r=t(92986),n=t(7831),e=t(18526);s.exports=function(a,o,u){r?n.f(a,o,e(0,u)):a[o]=u}},11890:function(s,l,t){var r=t(11286),n=t(72069),e=t(61607).start,a=RangeError,o=isFinite,u=Math.abs,i=Date.prototype,v=i.toISOString,f=r(i.getTime),c=r(i.getUTCDate),d=r(i.getUTCFullYear),h=r(i.getUTCHours),g=r(i.getUTCMilliseconds),p=r(i.getUTCMinutes),y=r(i.getUTCMonth),m=r(i.getUTCSeconds);s.exports=n(function(){return v.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!n(function(){v.call(new Date(NaN))})?function(){if(!o(f(this)))throw new a("Invalid time value");var S=this,E=d(S),T=g(S),x=E<0?"-":E>9999?"+":"";return x+e(u(E),x?6:4,0)+"-"+e(y(S)+1,2,0)+"-"+e(c(S),2,0)+"T"+e(h(S),2,0)+":"+e(p(S),2,0)+":"+e(m(S),2,0)+"."+e(T,3,0)+"Z"}:v},84306:function(s,l,t){var r=t(25001),n=t(2064),e=TypeError;s.exports=function(a){if(r(this),a==="string"||a==="default")a="string";else if(a!=="number")throw new e("Incorrect hint");return n(this,a)}},85500:function(s,l,t){var r=t(13749),n=t(7831);s.exports=function(e,a,o){return o.get&&r(o.get,a,{getter:!0}),o.set&&r(o.set,a,{setter:!0}),n.f(e,a,o)}},16142:function(s,l,t){var r=t(23583),n=t(7831),e=t(13749),a=t(36003);s.exports=function(o,u,i,v){v||(v={});var f=v.enumerable,c=v.name!==void 0?v.name:u;if(r(i)&&e(i,c,v),v.global)f?o[u]=i:a(u,i);else{try{v.unsafe?o[u]&&(f=!0):delete o[u]}catch(d){}f?o[u]=i:n.f(o,u,{value:i,enumerable:!1,configurable:!v.nonConfigurable,writable:!v.nonWritable})}return o}},2725:function(s,l,t){var r=t(16142);s.exports=function(n,e,a){for(var o in e)r(n,o,e[o],a);return n}},36003:function(s,l,t){var r=t(66009),n=Object.defineProperty;s.exports=function(e,a){try{n(r,e,{value:a,configurable:!0,writable:!0})}catch(o){r[e]=a}return a}},12384:function(s,l,t){var r=t(82453),n=TypeError;s.exports=function(e,a){if(!delete e[a])throw new n("Cannot delete property "+r(a)+" of "+r(e))}},92986:function(s,l,t){var r=t(72069);s.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},63741:function(s,l,t){var r=t(66009),n=t(18096),e=t(99050),a=r.structuredClone,o=r.ArrayBuffer,u=r.MessageChannel,i=!1,v,f,c,d;if(e)i=function(h){a(h,{transfer:[h]})};else if(o)try{u||(v=n("worker_threads"),v&&(u=v.MessageChannel)),u&&(f=new u,c=new o(2),d=function(h){f.port1.postMessage(null,[h])},c.byteLength===2&&(d(c),c.byteLength===0&&(i=d)))}catch(h){}s.exports=i},85501:function(s,l,t){var r=t(66009),n=t(37540),e=r.document,a=n(e)&&n(e.createElement);s.exports=function(o){return a?e.createElement(o):{}}},20095:function(s){var l=TypeError,t=9007199254740991;s.exports=function(r){if(r>t)throw l("Maximum allowed index exceeded");return r}},74408:function(s){s.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},93014:function(s){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},39882:function(s,l,t){var r=t(85501),n=r("span").classList,e=n&&n.constructor&&n.constructor.prototype;s.exports=e===Object.prototype?void 0:e},54040:function(s,l,t){var r=t(89042),n=r.match(/firefox\/(\d+)/i);s.exports=!!n&&+n[1]},63144:function(s,l,t){var r=t(56422),n=t(42954);s.exports=!r&&!n&&typeof window=="object"&&typeof document=="object"},5017:function(s){s.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},56422:function(s){s.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},87216:function(s,l,t){var r=t(89042);s.exports=/MSIE|Trident/.test(r)},92150:function(s,l,t){var r=t(89042);s.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble!="undefined"},51149:function(s,l,t){var r=t(89042);s.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},42954:function(s,l,t){var r=t(66009),n=t(14274);s.exports=n(r.process)==="process"},81539:function(s,l,t){var r=t(89042);s.exports=/web0s(?!.*chrome)/i.test(r)},89042:function(s){s.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},73126:function(s,l,t){var r=t(66009),n=t(89042),e=r.process,a=r.Deno,o=e&&e.versions||a&&a.version,u=o&&o.v8,i,v;u&&(i=u.split("."),v=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!v&&n&&(i=n.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=n.match(/Chrome\/(\d+)/),i&&(v=+i[1]))),s.exports=v},68674:function(s,l,t){var r=t(89042),n=r.match(/AppleWebKit\/(\d+)\./);s.exports=!!n&&+n[1]},75785:function(s){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},40851:function(s,l,t){var r=t(11286),n=Error,e=r("".replace),a=function(i){return String(new n(i).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,u=o.test(a);s.exports=function(i,v){if(u&&typeof i=="string"&&!n.prepareStackTrace)for(;v--;)i=e(i,o,"");return i}},97077:function(s,l,t){var r=t(90809),n=t(40851),e=t(16929),a=Error.captureStackTrace;s.exports=function(o,u,i,v){e&&(a?a(o,u):r(o,"stack",n(i,v)))}},16929:function(s,l,t){var r=t(72069),n=t(18526);s.exports=!r(function(){var e=new Error("a");return"stack"in e?(Object.defineProperty(e,"stack",n(1,7)),e.stack!==7):!0})},58434:function(s,l,t){var r=t(92986),n=t(72069),e=t(25001),a=t(15453),o=Error.prototype.toString,u=n(function(){if(r){var i=Object.create(Object.defineProperty({},"name",{get:function(){return this===i}}));if(o.call(i)!=="true")return!0}return o.call({message:1,name:2})!=="2: 1"||o.call({})!=="Error"});s.exports=u?function(){var v=e(this),f=a(v.name,"Error"),c=a(v.message);return f?c?f+": "+c:f:c}:o},14304:function(s,l,t){var r=t(66009),n=t(71349).f,e=t(90809),a=t(16142),o=t(36003),u=t(93706),i=t(13278);s.exports=function(v,f){var c=v.target,d=v.global,h=v.stat,g,p,y,m,O,S;if(d?p=r:h?p=r[c]||o(c,{}):p=r[c]&&r[c].prototype,p)for(y in f){if(O=f[y],v.dontCallGetSet?(S=n(p,y),m=S&&S.value):m=p[y],g=i(d?y:c+(h?".":"#")+y,v.forced),!g&&m!==void 0){if(typeof O==typeof m)continue;u(O,m)}(v.sham||m&&m.sham)&&e(O,"sham",!0),a(p,y,O,v)}}},72069:function(s){s.exports=function(l){try{return!!l()}catch(t){return!0}}},63194:function(s,l,t){t(31145);var r=t(96499),n=t(16142),e=t(44381),a=t(72069),o=t(18565),u=t(90809),i=o("species"),v=RegExp.prototype;s.exports=function(f,c,d,h){var g=o(f),p=!a(function(){var S={};return S[g]=function(){return 7},""[f](S)!==7}),y=p&&!a(function(){var S=!1,E=/a/;return f==="split"&&(E={},E.constructor={},E.constructor[i]=function(){return E},E.flags="",E[g]=/./[g]),E.exec=function(){return S=!0,null},E[g](""),!S});if(!p||!y||d){var m=/./[g],O=c(g,""[f],function(S,E,T,x,I){var A=E.exec;return A===e||A===v.exec?p&&!I?{done:!0,value:r(m,E,T,x)}:{done:!0,value:r(S,T,E,x)}:{done:!1}});n(String.prototype,f,O[0]),n(v,g,O[1])}h&&u(v[g],"sham",!0)}},53149:function(s,l,t){var r=t(3438),n=t(82628),e=t(20095),a=t(45526),o=function(u,i,v,f,c,d,h,g){for(var p=c,y=0,m=h?a(h,g):!1,O,S;y0&&r(O)?(S=n(O),p=o(u,i,O,S,p,d-1)-1):(e(p+1),u[p]=O),p++),y++;return p};s.exports=o},27534:function(s,l,t){var r=t(72069);s.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},66543:function(s,l,t){var r=t(87878),n=Function.prototype,e=n.apply,a=n.call;s.exports=typeof Reflect=="object"&&Reflect.apply||(r?a.bind(e):function(){return a.apply(e,arguments)})},45526:function(s,l,t){var r=t(77422),n=t(85156),e=t(87878),a=r(r.bind);s.exports=function(o,u){return n(o),u===void 0?o:e?a(o,u):function(){return o.apply(u,arguments)}}},87878:function(s,l,t){var r=t(72069);s.exports=!r(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})},91384:function(s,l,t){var r=t(11286),n=t(85156),e=t(37540),a=t(94879),o=t(22806),u=t(87878),i=Function,v=r([].concat),f=r([].join),c={},d=function(h,g,p){if(!a(c,g)){for(var y=[],m=0;m]*>)/g,v=/\$([$&'`]|\d{1,2})/g;s.exports=function(f,c,d,h,g,p){var y=d+f.length,m=h.length,O=v;return g!==void 0&&(g=n(g),O=i),o(p,O,function(S,E){var T;switch(a(E,0)){case"$":return"$";case"&":return f;case"`":return u(c,0,d);case"'":return u(c,y);case"<":T=g[u(E,1,-1)];break;default:var x=+E;if(x===0)return S;if(x>m){var I=e(x/10);return I===0?S:I<=m?h[I-1]===void 0?a(E,1):h[I-1]+a(E,1):S}T=h[x-1]}return T===void 0?"":T})}},66009:function(s){var l=function(t){return t&&t.Math===Math&&t};s.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof global=="object"&&global)||l(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},94879:function(s,l,t){var r=t(11286),n=t(49671),e=r({}.hasOwnProperty);s.exports=Object.hasOwn||function(o,u){return e(n(o),u)}},19423:function(s){s.exports={}},99095:function(s){s.exports=function(l,t){try{arguments.length===1?console.error(l):console.error(l,t)}catch(r){}}},96439:function(s,l,t){var r=t(38941);s.exports=r("document","documentElement")},52515:function(s,l,t){var r=t(92986),n=t(72069),e=t(85501);s.exports=!r&&!n(function(){return Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a!==7})},25212:function(s){var l=Array,t=Math.abs,r=Math.pow,n=Math.floor,e=Math.log,a=Math.LN2,o=function(i,v,f){var c=l(f),d=f*8-v-1,h=(1<>1,p=v===23?r(2,-24)-r(2,-77):0,y=i<0||i===0&&1/i<0?1:0,m=0,O,S,E;for(i=t(i),i!==i||i===1/0?(S=i!==i?1:0,O=h):(O=n(e(i)/a),E=r(2,-O),i*E<1&&(O--,E*=2),O+g>=1?i+=p/E:i+=p*r(2,1-g),i*E>=2&&(O++,E/=2),O+g>=h?(S=0,O=h):O+g>=1?(S=(i*E-1)*r(2,v),O+=g):(S=i*r(2,g-1)*r(2,v),O=0));v>=8;)c[m++]=S&255,S/=256,v-=8;for(O=O<0;)c[m++]=O&255,O/=256,d-=8;return c[--m]|=y*128,c},u=function(i,v){var f=i.length,c=f*8-v-1,d=(1<>1,g=c-7,p=f-1,y=i[p--],m=y&127,O;for(y>>=7;g>0;)m=m*256+i[p--],g-=8;for(O=m&(1<<-g)-1,m>>=-g,g+=v;g>0;)O=O*256+i[p--],g-=8;if(m===0)m=1-h;else{if(m===d)return O?NaN:y?-1/0:1/0;O+=r(2,v),m-=h}return(y?-1:1)*O*r(2,m-v)};s.exports={pack:o,unpack:u}},72181:function(s,l,t){var r=t(11286),n=t(72069),e=t(14274),a=Object,o=r("".split);s.exports=n(function(){return!a("z").propertyIsEnumerable(0)})?function(u){return e(u)==="String"?o(u,""):a(u)}:a},32345:function(s,l,t){var r=t(23583),n=t(37540),e=t(15861);s.exports=function(a,o,u){var i,v;return e&&r(i=o.constructor)&&i!==u&&n(v=i.prototype)&&v!==u.prototype&&e(a,v),a}},84352:function(s,l,t){var r=t(11286),n=t(23583),e=t(70443),a=r(Function.toString);n(e.inspectSource)||(e.inspectSource=function(o){return a(o)}),s.exports=e.inspectSource},31486:function(s,l,t){var r=t(37540),n=t(90809);s.exports=function(e,a){r(a)&&"cause"in a&&n(e,"cause",a.cause)}},31853:function(s,l,t){var r=t(14304),n=t(11286),e=t(19423),a=t(37540),o=t(94879),u=t(7831).f,i=t(83258),v=t(92880),f=t(28174),c=t(36374),d=t(27534),h=!1,g=c("meta"),p=0,y=function(x){u(x,g,{value:{objectID:"O"+p++,weakData:{}}})},m=function(x,I){if(!a(x))return typeof x=="symbol"?x:(typeof x=="string"?"S":"P")+x;if(!o(x,g)){if(!f(x))return"F";if(!I)return"E";y(x)}return x[g].objectID},O=function(x,I){if(!o(x,g)){if(!f(x))return!0;if(!I)return!1;y(x)}return x[g].weakData},S=function(x){return d&&h&&f(x)&&!o(x,g)&&y(x),x},E=function(){T.enable=function(){},h=!0;var x=i.f,I=n([].splice),A={};A[g]=1,x(A).length&&(i.f=function(C){for(var P=x(C),N=0,$=P.length;N<$;N++)if(P[N]===g){I(P,N,1);break}return P},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:v.f}))},T=s.exports={enable:E,fastKey:m,getWeakData:O,onFreeze:S};e[g]=!0},82367:function(s,l,t){var r=t(42960),n=t(66009),e=t(37540),a=t(90809),o=t(94879),u=t(70443),i=t(44869),v=t(19423),f="Object already initialized",c=n.TypeError,d=n.WeakMap,h,g,p,y=function(E){return p(E)?g(E):h(E,{})},m=function(E){return function(T){var x;if(!e(T)||(x=g(T)).type!==E)throw new c("Incompatible receiver, "+E+" required");return x}};if(r||u.state){var O=u.state||(u.state=new d);O.get=O.get,O.has=O.has,O.set=O.set,h=function(E,T){if(O.has(E))throw new c(f);return T.facade=E,O.set(E,T),T},g=function(E){return O.get(E)||{}},p=function(E){return O.has(E)}}else{var S=i("state");v[S]=!0,h=function(E,T){if(o(E,S))throw new c(f);return T.facade=E,a(E,S,T),T},g=function(E){return o(E,S)?E[S]:{}},p=function(E){return o(E,S)}}s.exports={set:h,get:g,has:p,enforce:y,getterFor:m}},48199:function(s,l,t){var r=t(18565),n=t(29107),e=r("iterator"),a=Array.prototype;s.exports=function(o){return o!==void 0&&(n.Array===o||a[e]===o)}},3438:function(s,l,t){var r=t(14274);s.exports=Array.isArray||function(e){return r(e)==="Array"}},77129:function(s,l,t){var r=t(9205);s.exports=function(n){var e=r(n);return e==="BigInt64Array"||e==="BigUint64Array"}},23583:function(s){var l=typeof document=="object"&&document.all;s.exports=typeof l=="undefined"&&l!==void 0?function(t){return typeof t=="function"||t===l}:function(t){return typeof t=="function"}},11051:function(s,l,t){var r=t(11286),n=t(72069),e=t(23583),a=t(9205),o=t(38941),u=t(84352),i=function(){},v=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,c=r(f.exec),d=!f.test(i),h=function(y){if(!e(y))return!1;try{return v(i,[],y),!0}catch(m){return!1}},g=function(y){if(!e(y))return!1;switch(a(y)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!c(f,u(y))}catch(m){return!0}};g.sham=!0,s.exports=!v||n(function(){var p;return h(h.call)||!h(Object)||!h(function(){p=!0})||p})?g:h},69745:function(s,l,t){var r=t(94879);s.exports=function(n){return n!==void 0&&(r(n,"value")||r(n,"writable"))}},13278:function(s,l,t){var r=t(72069),n=t(23583),e=/#|\.prototype\./,a=function(f,c){var d=u[o(f)];return d===v?!0:d===i?!1:n(c)?r(c):!!c},o=a.normalize=function(f){return String(f).replace(e,".").toLowerCase()},u=a.data={},i=a.NATIVE="N",v=a.POLYFILL="P";s.exports=a},613:function(s,l,t){var r=t(37540),n=Math.floor;s.exports=Number.isInteger||function(a){return!r(a)&&isFinite(a)&&n(a)===a}},5683:function(s){s.exports=function(l){return l==null}},37540:function(s,l,t){var r=t(23583);s.exports=function(n){return typeof n=="object"?n!==null:r(n)}},52427:function(s,l,t){var r=t(37540);s.exports=function(n){return r(n)||n===null}},70457:function(s){s.exports=!1},11566:function(s,l,t){var r=t(37540),n=t(14274),e=t(18565),a=e("match");s.exports=function(o){var u;return r(o)&&((u=o[a])!==void 0?!!u:n(o)==="RegExp")}},491:function(s,l,t){var r=t(38941),n=t(23583),e=t(95307),a=t(50234),o=Object;s.exports=a?function(u){return typeof u=="symbol"}:function(u){var i=r("Symbol");return n(i)&&e(i.prototype,o(u))}},9573:function(s,l,t){var r=t(96499);s.exports=function(n,e,a){for(var o=a?n:n.iterator,u=n.next,i,v;!(i=r(u,o)).done;)if(v=e(i.value),v!==void 0)return v}},55902:function(s,l,t){var r=t(45526),n=t(96499),e=t(25001),a=t(82453),o=t(48199),u=t(82628),i=t(95307),v=t(90619),f=t(81077),c=t(99797),d=TypeError,h=function(p,y){this.stopped=p,this.result=y},g=h.prototype;s.exports=function(p,y,m){var O=m&&m.that,S=!!(m&&m.AS_ENTRIES),E=!!(m&&m.IS_RECORD),T=!!(m&&m.IS_ITERATOR),x=!!(m&&m.INTERRUPTED),I=r(y,O),A,C,P,N,$,U,F,D=function(b){return A&&c(A,"normal",b),new h(!0,b)},L=function(b){return S?(e(b),x?I(b[0],b[1],D):I(b[0],b[1])):x?I(b,D):I(b)};if(E)A=p.iterator;else if(T)A=p;else{if(C=f(p),!C)throw new d(a(p)+" is not iterable");if(o(C)){for(P=0,N=u(p);N>P;P++)if($=L(p[P]),$&&i(g,$))return $;return new h(!1)}A=v(p,C)}for(U=E?p.next:A.next;!(F=n(U,A)).done;){try{$=L(F.value)}catch(b){c(A,"throw",b)}if(typeof $=="object"&&$&&i(g,$))return $}return new h(!1)}},99797:function(s,l,t){var r=t(96499),n=t(25001),e=t(10512);s.exports=function(a,o,u){var i,v;n(a);try{if(i=e(a,"return"),!i){if(o==="throw")throw u;return u}i=r(i,a)}catch(f){v=!0,i=f}if(o==="throw")throw u;if(v)throw i;return n(i),u}},26820:function(s,l,t){var r=t(24519).IteratorPrototype,n=t(5406),e=t(18526),a=t(78401),o=t(29107),u=function(){return this};s.exports=function(i,v,f,c){var d=v+" Iterator";return i.prototype=n(r,{next:e(+!c,f)}),a(i,d,!1,!0),o[d]=u,i}},10218:function(s,l,t){var r=t(14304),n=t(96499),e=t(70457),a=t(86588),o=t(23583),u=t(26820),i=t(26313),v=t(15861),f=t(78401),c=t(90809),d=t(16142),h=t(18565),g=t(29107),p=t(24519),y=a.PROPER,m=a.CONFIGURABLE,O=p.IteratorPrototype,S=p.BUGGY_SAFARI_ITERATORS,E=h("iterator"),T="keys",x="values",I="entries",A=function(){return this};s.exports=function(C,P,N,$,U,F,D){u(N,P,$);var L=function(gt){if(gt===U&&X)return X;if(!S&>&> in H)return H[gt];switch(gt){case T:return function(){return new N(this,gt)};case x:return function(){return new N(this,gt)};case I:return function(){return new N(this,gt)}}return function(){return new N(this)}},b=P+" Iterator",K=!1,H=C.prototype,Q=H[E]||H["@@iterator"]||U&&H[U],X=!S&&Q||L(U),st=P==="Array"&&H.entries||Q,et,lt,ht;if(st&&(et=i(st.call(new C)),et!==Object.prototype&&et.next&&(!e&&i(et)!==O&&(v?v(et,O):o(et[E])||d(et,E,A)),f(et,b,!0,!0),e&&(g[b]=A))),y&&U===x&&Q&&Q.name!==x&&(!e&&m?c(H,"name",x):(K=!0,X=function(){return n(Q,this)})),U)if(lt={values:L(x),keys:F?X:L(T),entries:L(I)},D)for(ht in lt)(S||K||!(ht in H))&&d(H,ht,lt[ht]);else r({target:P,proto:!0,forced:S||K},lt);return(!e||D)&&H[E]!==X&&d(H,E,X,{name:U}),g[P]=X,lt}},24519:function(s,l,t){var r=t(72069),n=t(23583),e=t(37540),a=t(5406),o=t(26313),u=t(16142),i=t(18565),v=t(70457),f=i("iterator"),c=!1,d,h,g;[].keys&&(g=[].keys(),"next"in g?(h=o(o(g)),h!==Object.prototype&&(d=h)):c=!0);var p=!e(d)||r(function(){var y={};return d[f].call(y)!==y});p?d={}:v&&(d=a(d)),n(d[f])||u(d,f,function(){return this}),s.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:c}},29107:function(s){s.exports={}},82628:function(s,l,t){var r=t(45344);s.exports=function(n){return r(n.length)}},13749:function(s,l,t){var r=t(11286),n=t(72069),e=t(23583),a=t(94879),o=t(92986),u=t(86588).CONFIGURABLE,i=t(84352),v=t(82367),f=v.enforce,c=v.get,d=String,h=Object.defineProperty,g=r("".slice),p=r("".replace),y=r([].join),m=o&&!n(function(){return h(function(){},"length",{value:8}).length!==8}),O=String(String).split("String"),S=s.exports=function(E,T,x){g(d(T),0,7)==="Symbol("&&(T="["+p(d(T),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),x&&x.getter&&(T="get "+T),x&&x.setter&&(T="set "+T),(!a(E,"name")||u&&E.name!==T)&&(o?h(E,"name",{value:T,configurable:!0}):E.name=T),m&&x&&a(x,"arity")&&E.length!==x.arity&&h(E,"length",{value:x.arity});try{x&&a(x,"constructor")&&x.constructor?o&&h(E,"prototype",{writable:!1}):E.prototype&&(E.prototype=void 0)}catch(A){}var I=f(E);return a(I,"source")||(I.source=y(O,typeof T=="string"?T:"")),E};Function.prototype.toString=S(function(){return e(this)&&c(this).source||i(this)},"toString")},1774:function(s,l,t){var r=t(11286),n=Map.prototype;s.exports={Map,set:r(n.set),get:r(n.get),has:r(n.has),remove:r(n.delete),proto:n}},98940:function(s){var l=Math.expm1,t=Math.exp;s.exports=!l||l(10)>22025.465794806718||l(10)<22025.465794806718||l(-2e-17)!==-2e-17?function(n){var e=+n;return e===0?e:e>-1e-6&&e<1e-6?e+e*e/2:t(e)-1}:l},10418:function(s,l,t){var r=t(93976),n=Math.abs,e=2220446049250313e-31,a=1/e,o=function(u){return u+a-a};s.exports=function(u,i,v,f){var c=+u,d=n(c),h=r(c);if(dv||p!==p?h*(1/0):h*p}},93279:function(s,l,t){var r=t(10418),n=11920928955078125e-23,e=34028234663852886e22,a=11754943508222875e-54;s.exports=Math.fround||function(u){return r(u,n,e,a)}},41942:function(s){var l=Math.log,t=Math.LOG10E;s.exports=Math.log10||function(n){return l(n)*t}},49366:function(s){var l=Math.log;s.exports=Math.log1p||function(r){var n=+r;return n>-1e-8&&n<1e-8?n-n*n/2:l(1+n)}},93976:function(s){s.exports=Math.sign||function(t){var r=+t;return r===0||r!==r?r:r<0?-1:1}},22459:function(s){var l=Math.ceil,t=Math.floor;s.exports=Math.trunc||function(n){var e=+n;return(e>0?t:l)(e)}},9709:function(s,l,t){var r=t(66009),n=t(28167),e=t(45526),a=t(23115).set,o=t(76895),u=t(51149),i=t(92150),v=t(81539),f=t(42954),c=r.MutationObserver||r.WebKitMutationObserver,d=r.document,h=r.process,g=r.Promise,p=n("queueMicrotask"),y,m,O,S,E;if(!p){var T=new o,x=function(){var I,A;for(f&&(I=h.domain)&&I.exit();A=T.get();)try{A()}catch(C){throw T.head&&y(),C}I&&I.enter()};!u&&!f&&!v&&c&&d?(m=!0,O=d.createTextNode(""),new c(x).observe(O,{characterData:!0}),y=function(){O.data=m=!m}):!i&&g&&g.resolve?(S=g.resolve(void 0),S.constructor=g,E=e(S.then,S),y=function(){E(x)}):f?y=function(){h.nextTick(x)}:(a=e(a,r),y=function(){a(x)}),p=function(I){T.head||y(),T.add(I)}}s.exports=p},24649:function(s,l,t){var r=t(85156),n=TypeError,e=function(a){var o,u;this.promise=new a(function(i,v){if(o!==void 0||u!==void 0)throw new n("Bad Promise constructor");o=i,u=v}),this.resolve=r(o),this.reject=r(u)};s.exports.f=function(a){return new e(a)}},15453:function(s,l,t){var r=t(17361);s.exports=function(n,e){return n===void 0?arguments.length<2?"":e:r(n)}},92337:function(s,l,t){var r=t(11566),n=TypeError;s.exports=function(e){if(r(e))throw new n("The method doesn't accept regular expressions");return e}},98074:function(s,l,t){var r=t(66009),n=r.isFinite;s.exports=Number.isFinite||function(a){return typeof a=="number"&&n(a)}},25838:function(s,l,t){var r=t(66009),n=t(72069),e=t(11286),a=t(17361),o=t(85900).trim,u=t(77082),i=e("".charAt),v=r.parseFloat,f=r.Symbol,c=f&&f.iterator,d=1/v(u+"-0")!==-1/0||c&&!n(function(){v(Object(c))});s.exports=d?function(g){var p=o(a(g)),y=v(p);return y===0&&i(p,0)==="-"?-0:y}:v},23009:function(s,l,t){var r=t(66009),n=t(72069),e=t(11286),a=t(17361),o=t(85900).trim,u=t(77082),i=r.parseInt,v=r.Symbol,f=v&&v.iterator,c=/^[+-]?0x/i,d=e(c.exec),h=i(u+"08")!==8||i(u+"0x16")!==22||f&&!n(function(){i(Object(f))});s.exports=h?function(p,y){var m=o(a(p));return i(m,y>>>0||(d(c,m)?16:10))}:i},16667:function(s,l,t){var r=t(92986),n=t(11286),e=t(96499),a=t(72069),o=t(18350),u=t(24943),i=t(79591),v=t(49671),f=t(72181),c=Object.assign,d=Object.defineProperty,h=n([].concat);s.exports=!c||a(function(){if(r&&c({b:1},c(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var g={},p={},y=Symbol("assign detection"),m="abcdefghijklmnopqrst";return g[y]=7,m.split("").forEach(function(O){p[O]=O}),c({},g)[y]!==7||o(c({},p)).join("")!==m})?function(p,y){for(var m=v(p),O=arguments.length,S=1,E=u.f,T=i.f;O>S;)for(var x=f(arguments[S++]),I=E?h(o(x),E(x)):o(x),A=I.length,C=0,P;A>C;)P=I[C++],(!r||e(T,x,P))&&(m[P]=x[P]);return m}:c},5406:function(s,l,t){var r=t(25001),n=t(61963),e=t(75785),a=t(19423),o=t(96439),u=t(85501),i=t(44869),v=">",f="<",c="prototype",d="script",h=i("IE_PROTO"),g=function(){},p=function(E){return f+d+v+E+f+"/"+d+v},y=function(E){E.write(p("")),E.close();var T=E.parentWindow.Object;return E=null,T},m=function(){var E=u("iframe"),T="java"+d+":",x;return E.style.display="none",o.appendChild(E),E.src=String(T),x=E.contentWindow.document,x.open(),x.write(p("document.F=Object")),x.close(),x.F},O,S=function(){try{O=new ActiveXObject("htmlfile")}catch(T){}S=typeof document!="undefined"?document.domain&&O?y(O):m():y(O);for(var E=e.length;E--;)delete S[c][e[E]];return S()};a[h]=!0,s.exports=Object.create||function(T,x){var I;return T!==null?(g[c]=r(T),I=new g,g[c]=null,I[h]=T):I=S(),x===void 0?I:n.f(I,x)}},61963:function(s,l,t){var r=t(92986),n=t(356),e=t(7831),a=t(25001),o=t(36859),u=t(18350);l.f=r&&!n?Object.defineProperties:function(v,f){a(v);for(var c=o(f),d=u(f),h=d.length,g=0,p;h>g;)e.f(v,p=d[g++],c[p]);return v}},7831:function(s,l,t){var r=t(92986),n=t(52515),e=t(356),a=t(25001),o=t(50035),u=TypeError,i=Object.defineProperty,v=Object.getOwnPropertyDescriptor,f="enumerable",c="configurable",d="writable";l.f=r?e?function(g,p,y){if(a(g),p=o(p),a(y),typeof g=="function"&&p==="prototype"&&"value"in y&&d in y&&!y[d]){var m=v(g,p);m&&m[d]&&(g[p]=y.value,y={configurable:c in y?y[c]:m[c],enumerable:f in y?y[f]:m[f],writable:!1})}return i(g,p,y)}:i:function(g,p,y){if(a(g),p=o(p),a(y),n)try{return i(g,p,y)}catch(m){}if("get"in y||"set"in y)throw new u("Accessors not supported");return"value"in y&&(g[p]=y.value),g}},71349:function(s,l,t){var r=t(92986),n=t(96499),e=t(79591),a=t(18526),o=t(36859),u=t(50035),i=t(94879),v=t(52515),f=Object.getOwnPropertyDescriptor;l.f=r?f:function(d,h){if(d=o(d),h=u(h),v)try{return f(d,h)}catch(g){}if(i(d,h))return a(!n(e.f,d,h),d[h])}},92880:function(s,l,t){var r=t(14274),n=t(36859),e=t(83258).f,a=t(22806),o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(i){try{return e(i)}catch(v){return a(o)}};s.exports.f=function(v){return o&&r(v)==="Window"?u(v):e(n(v))}},83258:function(s,l,t){var r=t(6242),n=t(75785),e=n.concat("length","prototype");l.f=Object.getOwnPropertyNames||function(o){return r(o,e)}},24943:function(s,l){l.f=Object.getOwnPropertySymbols},26313:function(s,l,t){var r=t(94879),n=t(23583),e=t(49671),a=t(44869),o=t(87501),u=a("IE_PROTO"),i=Object,v=i.prototype;s.exports=o?i.getPrototypeOf:function(f){var c=e(f);if(r(c,u))return c[u];var d=c.constructor;return n(d)&&c instanceof d?d.prototype:c instanceof i?v:null}},28174:function(s,l,t){var r=t(72069),n=t(37540),e=t(14274),a=t(72058),o=Object.isExtensible,u=r(function(){o(1)});s.exports=u||a?function(v){return!n(v)||a&&e(v)==="ArrayBuffer"?!1:o?o(v):!0}:o},95307:function(s,l,t){var r=t(11286);s.exports=r({}.isPrototypeOf)},6242:function(s,l,t){var r=t(11286),n=t(94879),e=t(36859),a=t(94319).indexOf,o=t(19423),u=r([].push);s.exports=function(i,v){var f=e(i),c=0,d=[],h;for(h in f)!n(o,h)&&n(f,h)&&u(d,h);for(;v.length>c;)n(f,h=v[c++])&&(~a(d,h)||u(d,h));return d}},18350:function(s,l,t){var r=t(6242),n=t(75785);s.exports=Object.keys||function(a){return r(a,n)}},79591:function(s,l){var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);l.f=n?function(a){var o=r(this,a);return!!o&&o.enumerable}:t},57629:function(s,l,t){var r=t(70457),n=t(66009),e=t(72069),a=t(68674);s.exports=r||!e(function(){if(!(a&&a<535)){var o=Math.random();__defineSetter__.call(null,o,function(){}),delete n[o]}})},15861:function(s,l,t){var r=t(84756),n=t(37540),e=t(2068),a=t(53408);s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var o=!1,u={},i;try{i=r(Object.prototype,"__proto__","set"),i(u,[]),o=u instanceof Array}catch(v){}return function(f,c){return e(f),a(c),n(f)&&(o?i(f,c):f.__proto__=c),f}}():void 0)},8511:function(s,l,t){var r=t(92986),n=t(72069),e=t(11286),a=t(26313),o=t(18350),u=t(36859),i=t(79591).f,v=e(i),f=e([].push),c=r&&n(function(){var h=Object.create(null);return h[2]=2,!v(h,2)}),d=function(h){return function(g){for(var p=u(g),y=o(p),m=c&&a(p)===null,O=y.length,S=0,E=[],T;O>S;)T=y[S++],(!r||(m?T in p:v(p,T)))&&f(E,h?[T,p[T]]:p[T]);return E}};s.exports={entries:d(!0),values:d(!1)}},60105:function(s,l,t){var r=t(67878),n=t(9205);s.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},2064:function(s,l,t){var r=t(96499),n=t(23583),e=t(37540),a=TypeError;s.exports=function(o,u){var i,v;if(u==="string"&&n(i=o.toString)&&!e(v=r(i,o))||n(i=o.valueOf)&&!e(v=r(i,o))||u!=="string"&&n(i=o.toString)&&!e(v=r(i,o)))return v;throw new a("Can't convert object to primitive value")}},16885:function(s,l,t){var r=t(38941),n=t(11286),e=t(83258),a=t(24943),o=t(25001),u=n([].concat);s.exports=r("Reflect","ownKeys")||function(v){var f=e.f(o(v)),c=a.f;return c?u(f,c(v)):f}},75081:function(s,l,t){var r=t(66009);s.exports=r},67805:function(s){s.exports=function(l){try{return{error:!1,value:l()}}catch(t){return{error:!0,value:t}}}},37130:function(s,l,t){var r=t(66009),n=t(98844),e=t(23583),a=t(13278),o=t(84352),u=t(18565),i=t(63144),v=t(56422),f=t(70457),c=t(73126),d=n&&n.prototype,h=u("species"),g=!1,p=e(r.PromiseRejectionEvent),y=a("Promise",function(){var m=o(n),O=m!==String(n);if(!O&&c===66||f&&!(d.catch&&d.finally))return!0;if(!c||c<51||!/native code/.test(m)){var S=new n(function(x){x(1)}),E=function(x){x(function(){},function(){})},T=S.constructor={};if(T[h]=E,g=S.then(function(){})instanceof E,!g)return!0}return!O&&(i||v)&&!p});s.exports={CONSTRUCTOR:y,REJECTION_EVENT:p,SUBCLASSING:g}},98844:function(s,l,t){var r=t(66009);s.exports=r.Promise},87408:function(s,l,t){var r=t(25001),n=t(37540),e=t(24649);s.exports=function(a,o){if(r(a),n(o)&&o.constructor===a)return o;var u=e.f(a),i=u.resolve;return i(o),u.promise}},26035:function(s,l,t){var r=t(98844),n=t(97494),e=t(37130).CONSTRUCTOR;s.exports=e||!n(function(a){r.all(a).then(void 0,function(){})})},2594:function(s,l,t){var r=t(7831).f;s.exports=function(n,e,a){a in n||r(n,a,{configurable:!0,get:function(){return e[a]},set:function(o){e[a]=o}})}},76895:function(s){var l=function(){this.head=null,this.tail=null};l.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}},s.exports=l},33064:function(s,l,t){var r=t(96499),n=t(25001),e=t(23583),a=t(14274),o=t(44381),u=TypeError;s.exports=function(i,v){var f=i.exec;if(e(f)){var c=r(f,i,v);return c!==null&&n(c),c}if(a(i)==="RegExp")return r(o,i,v);throw new u("RegExp#exec called on incompatible receiver")}},44381:function(s,l,t){var r=t(96499),n=t(11286),e=t(17361),a=t(29833),o=t(39807),u=t(96731),i=t(5406),v=t(82367).get,f=t(76769),c=t(85220),d=u("native-string-replace",String.prototype.replace),h=RegExp.prototype.exec,g=h,p=n("".charAt),y=n("".indexOf),m=n("".replace),O=n("".slice),S=function(){var I=/a/,A=/b*/g;return r(h,I,"a"),r(h,A,"a"),I.lastIndex!==0||A.lastIndex!==0}(),E=o.BROKEN_CARET,T=/()??/.exec("")[1]!==void 0,x=S||T||E||f||c;x&&(g=function(A){var C=this,P=v(C),N=e(A),$=P.raw,U,F,D,L,b,K,H;if($)return $.lastIndex=C.lastIndex,U=r(g,$,N),C.lastIndex=$.lastIndex,U;var Q=P.groups,X=E&&C.sticky,st=r(a,C),et=C.source,lt=0,ht=N;if(X&&(st=m(st,"y",""),y(st,"g")===-1&&(st+="g"),ht=O(N,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&p(N,C.lastIndex-1)!==` `)&&(et="(?: "+et+")",ht=" "+ht,lt++),F=new RegExp("^(?:"+et+")",st)),T&&(F=new RegExp("^"+et+"$(?!\\s)",st)),S&&(D=C.lastIndex),L=r(h,X?F:C,ht),X?L?(L.input=O(L.input,lt),L[0]=O(L[0],lt),L.index=C.lastIndex,C.lastIndex+=L[0].length):C.lastIndex=0:S&&L&&(C.lastIndex=C.global?L.index+L[0].length:D),T&&L&&L.length>1&&r(d,L[0],F,function(){for(b=1;bb)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$c")!=="bc"})},2068:function(s,l,t){var r=t(5683),n=TypeError;s.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},28167:function(s,l,t){var r=t(66009),n=t(92986),e=Object.getOwnPropertyDescriptor;s.exports=function(a){if(!n)return r[a];var o=e(r,a);return o&&o.value}},13944:function(s){s.exports=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}},9934:function(s,l,t){var r=t(66009),n=t(66543),e=t(23583),a=t(5017),o=t(89042),u=t(22806),i=t(95486),v=r.Function,f=/MSIE .\./.test(o)||a&&function(){var c=r.Bun.version.split(".");return c.length<3||c[0]==="0"&&(c[1]<3||c[1]==="3"&&c[2]==="0")}();s.exports=function(c,d){var h=d?2:1;return f?function(g,p){var y=i(arguments.length,1)>h,m=e(g)?g:v(g),O=y?u(arguments,h):[],S=y?function(){n(m,this,O)}:m;return d?c(S,p):c(S)}:c}},48348:function(s,l,t){var r=t(172),n=t(35051),e=r.Set,a=r.add;s.exports=function(o){var u=new e;return n(o,function(i){a(u,i)}),u}},41754:function(s,l,t){var r=t(76602),n=t(172),e=t(48348),a=t(17768),o=t(65263),u=t(35051),i=t(9573),v=n.has,f=n.remove;s.exports=function(d){var h=r(this),g=o(d),p=e(h);return a(h)<=g.size?u(h,function(y){g.includes(y)&&f(p,y)}):i(g.getIterator(),function(y){v(h,y)&&f(p,y)}),p}},172:function(s,l,t){var r=t(11286),n=Set.prototype;s.exports={Set,add:r(n.add),has:r(n.has),remove:r(n.delete),proto:n}},92292:function(s,l,t){var r=t(76602),n=t(172),e=t(17768),a=t(65263),o=t(35051),u=t(9573),i=n.Set,v=n.add,f=n.has;s.exports=function(d){var h=r(this),g=a(d),p=new i;return e(h)>g.size?u(g.getIterator(),function(y){f(h,y)&&v(p,y)}):o(h,function(y){g.includes(y)&&v(p,y)}),p}},47391:function(s,l,t){var r=t(76602),n=t(172).has,e=t(17768),a=t(65263),o=t(35051),u=t(9573),i=t(99797);s.exports=function(f){var c=r(this),d=a(f);if(e(c)<=d.size)return o(c,function(g){if(d.includes(g))return!1},!0)!==!1;var h=d.getIterator();return u(h,function(g){if(n(c,g))return i(h,"normal",!1)})!==!1}},75492:function(s,l,t){var r=t(76602),n=t(17768),e=t(35051),a=t(65263);s.exports=function(u){var i=r(this),v=a(u);return n(i)>v.size?!1:e(i,function(f){if(!v.includes(f))return!1},!0)!==!1}},1333:function(s,l,t){var r=t(76602),n=t(172).has,e=t(17768),a=t(65263),o=t(9573),u=t(99797);s.exports=function(v){var f=r(this),c=a(v);if(e(f)3})}},22149:function(s,l,t){var r=t(11286),n=t(12105),e=t(17361),a=t(2068),o=r("".charAt),u=r("".charCodeAt),i=r("".slice),v=function(f){return function(c,d){var h=e(a(c)),g=n(d),p=h.length,y,m;return g<0||g>=p?f?"":void 0:(y=u(h,g),y<55296||y>56319||g+1===p||(m=u(h,g+1))<56320||m>57343?f?o(h,g):y:f?i(h,g,g+2):(y-55296<<10)+(m-56320)+65536)}};s.exports={codeAt:v(!1),charAt:v(!0)}},36945:function(s,l,t){var r=t(89042);s.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},61607:function(s,l,t){var r=t(11286),n=t(45344),e=t(17361),a=t(79719),o=t(2068),u=r(a),i=r("".slice),v=Math.ceil,f=function(c){return function(d,h,g){var p=e(o(d)),y=n(h),m=p.length,O=g===void 0?" ":e(g),S,E;return y<=m||O===""?p:(S=y-m,E=u(O,v(S/O.length)),E.length>S&&(E=i(E,0,S)),c?p+E:E+p)}};s.exports={start:f(!1),end:f(!0)}},38679:function(s,l,t){var r=t(11286),n=2147483647,e=36,a=1,o=26,u=38,i=700,v=72,f=128,c="-",d=/[^\0-\u007E]/,h=/[.\u3002\uFF0E\uFF61]/g,g="Overflow: input needs wider integers to process",p=e-a,y=RangeError,m=r(h.exec),O=Math.floor,S=String.fromCharCode,E=r("".charCodeAt),T=r([].join),x=r([].push),I=r("".replace),A=r("".split),C=r("".toLowerCase),P=function(F){for(var D=[],L=0,b=F.length;L=55296&&K<=56319&&L>1,F+=O(F/D);F>p*o>>1;)F=O(F/p),b+=e;return O(b+(p+1)*F/(F+u))},U=function(F){var D=[];F=P(F);var L=F.length,b=f,K=0,H=v,Q,X;for(Q=0;Q=b&&XO((n-K)/ht))throw new y(g);for(K+=(lt-b)*ht,b=lt,Q=0;Qn)throw new y(g);if(X===b){for(var gt=K,Lt=e;;){var Dt=Lt<=H?a:Lt>=H+o?o:Lt-H;if(gt0;(f>>>=1)&&(i+=i))f&1&&(v+=i);return v}},75176:function(s,l,t){var r=t(85900).end,n=t(33328);s.exports=n("trimEnd")?function(){return r(this)}:"".trimEnd},33328:function(s,l,t){var r=t(86588).PROPER,n=t(72069),e=t(77082),a="\u200B\x85\u180E";s.exports=function(o){return n(function(){return!!e[o]()||a[o]()!==a||r&&e[o].name!==o})}},83481:function(s,l,t){var r=t(85900).start,n=t(33328);s.exports=n("trimStart")?function(){return r(this)}:"".trimStart},85900:function(s,l,t){var r=t(11286),n=t(2068),e=t(17361),a=t(77082),o=r("".replace),u=RegExp("^["+a+"]+"),i=RegExp("(^|[^"+a+"])["+a+"]+$"),v=function(f){return function(c){var d=e(n(c));return f&1&&(d=o(d,u,"")),f&2&&(d=o(d,i,"$1")),d}};s.exports={start:v(1),end:v(2),trim:v(3)}},99050:function(s,l,t){var r=t(66009),n=t(72069),e=t(73126),a=t(63144),o=t(56422),u=t(42954),i=r.structuredClone;s.exports=!!i&&!n(function(){if(o&&e>92||u&&e>94||a&&e>97)return!1;var v=new ArrayBuffer(8),f=i(v,{transfer:[v]});return v.byteLength!==0||f.byteLength!==8})},39729:function(s,l,t){var r=t(73126),n=t(72069),e=t(66009),a=e.String;s.exports=!!Object.getOwnPropertySymbols&&!n(function(){var o=Symbol("symbol detection");return!a(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&r&&r<41})},60796:function(s,l,t){var r=t(96499),n=t(38941),e=t(18565),a=t(16142);s.exports=function(){var o=n("Symbol"),u=o&&o.prototype,i=u&&u.valueOf,v=e("toPrimitive");u&&!u[v]&&a(u,v,function(f){return r(i,this)},{arity:1})}},61190:function(s,l,t){var r=t(39729);s.exports=r&&!!Symbol.for&&!!Symbol.keyFor},23115:function(s,l,t){var r=t(66009),n=t(66543),e=t(45526),a=t(23583),o=t(94879),u=t(72069),i=t(96439),v=t(22806),f=t(85501),c=t(95486),d=t(51149),h=t(42954),g=r.setImmediate,p=r.clearImmediate,y=r.process,m=r.Dispatch,O=r.Function,S=r.MessageChannel,E=r.String,T=0,x={},I="onreadystatechange",A,C,P,N;u(function(){A=r.location});var $=function(L){if(o(x,L)){var b=x[L];delete x[L],b()}},U=function(L){return function(){$(L)}},F=function(L){$(L.data)},D=function(L){r.postMessage(E(L),A.protocol+"//"+A.host)};(!g||!p)&&(g=function(b){c(arguments.length,1);var K=a(b)?b:O(b),H=v(arguments,1);return x[++T]=function(){n(K,void 0,H)},C(T),T},p=function(b){delete x[b]},h?C=function(L){y.nextTick(U(L))}:m&&m.now?C=function(L){m.now(U(L))}:S&&!d?(P=new S,N=P.port2,P.port1.onmessage=F,C=e(N.postMessage,N)):r.addEventListener&&a(r.postMessage)&&!r.importScripts&&A&&A.protocol!=="file:"&&!u(D)?(C=D,r.addEventListener("message",F,!1)):I in f("script")?C=function(L){i.appendChild(f("script"))[I]=function(){i.removeChild(this),$(L)}}:C=function(L){setTimeout(U(L),0)}),s.exports={set:g,clear:p}},34338:function(s,l,t){var r=t(11286);s.exports=r(1 .valueOf)},4652:function(s,l,t){var r=t(12105),n=Math.max,e=Math.min;s.exports=function(a,o){var u=r(a);return u<0?n(u+o,0):e(u,o)}},11344:function(s,l,t){var r=t(89935),n=TypeError;s.exports=function(e){var a=r(e,"number");if(typeof a=="number")throw new n("Can't convert number to bigint");return BigInt(a)}},9450:function(s,l,t){var r=t(12105),n=t(45344),e=RangeError;s.exports=function(a){if(a===void 0)return 0;var o=r(a),u=n(o);if(o!==u)throw new e("Wrong length or index");return u}},36859:function(s,l,t){var r=t(72181),n=t(2068);s.exports=function(e){return r(n(e))}},12105:function(s,l,t){var r=t(22459);s.exports=function(n){var e=+n;return e!==e||e===0?0:r(e)}},45344:function(s,l,t){var r=t(12105),n=Math.min;s.exports=function(e){var a=r(e);return a>0?n(a,9007199254740991):0}},49671:function(s,l,t){var r=t(2068),n=Object;s.exports=function(e){return n(r(e))}},58143:function(s,l,t){var r=t(98072),n=RangeError;s.exports=function(e,a){var o=r(e);if(o%a)throw new n("Wrong offset");return o}},98072:function(s,l,t){var r=t(12105),n=RangeError;s.exports=function(e){var a=r(e);if(a<0)throw new n("The argument can't be less than 0");return a}},89935:function(s,l,t){var r=t(96499),n=t(37540),e=t(491),a=t(10512),o=t(2064),u=t(18565),i=TypeError,v=u("toPrimitive");s.exports=function(f,c){if(!n(f)||e(f))return f;var d=a(f,v),h;if(d){if(c===void 0&&(c="default"),h=r(d,f,c),!n(h)||e(h))return h;throw new i("Can't convert object to primitive value")}return c===void 0&&(c="number"),o(f,c)}},50035:function(s,l,t){var r=t(89935),n=t(491);s.exports=function(e){var a=r(e,"string");return n(a)?a:a+""}},67878:function(s,l,t){var r=t(18565),n=r("toStringTag"),e={};e[n]="z",s.exports=String(e)==="[object z]"},17361:function(s,l,t){var r=t(9205),n=String;s.exports=function(e){if(r(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},76517:function(s){var l=Math.round;s.exports=function(t){var r=l(t);return r<0?0:r>255?255:r&255}},18096:function(s,l,t){var r=t(42954);s.exports=function(n){try{if(r)return Function('return require("'+n+'")')()}catch(e){}}},82453:function(s){var l=String;s.exports=function(t){try{return l(t)}catch(r){return"Object"}}},80357:function(s,l,t){var r=t(14304),n=t(66009),e=t(96499),a=t(92986),o=t(46868),u=t(88037),i=t(17468),v=t(12833),f=t(18526),c=t(90809),d=t(613),h=t(45344),g=t(9450),p=t(58143),y=t(76517),m=t(50035),O=t(94879),S=t(9205),E=t(37540),T=t(491),x=t(5406),I=t(95307),A=t(15861),C=t(83258).f,P=t(66169),N=t(66655).forEach,$=t(36167),U=t(85500),F=t(7831),D=t(71349),L=t(5220),b=t(82367),K=t(32345),H=b.get,Q=b.set,X=b.enforce,st=F.f,et=D.f,lt=n.RangeError,ht=i.ArrayBuffer,gt=ht.prototype,Lt=i.DataView,Dt=u.NATIVE_ARRAY_BUFFER_VIEWS,Ct=u.TYPED_ARRAY_TAG,at=u.TypedArray,vt=u.TypedArrayPrototype,St=u.isTypedArray,Rt="BYTES_PER_ELEMENT",Tt="Wrong length",Nt=function(Vt,$t){U(Vt,$t,{configurable:!0,get:function(){return H(this)[$t]}})},Ht=function(Vt){var $t;return I(gt,Vt)||($t=S(Vt))==="ArrayBuffer"||$t==="SharedArrayBuffer"},Wt=function(Vt,$t){return St(Vt)&&!T($t)&&$t in Vt&&d(+$t)&&$t>=0},bt=function($t,Mt){return Mt=m(Mt),Wt($t,Mt)?f(2,$t[Mt]):et($t,Mt)},Pt=function($t,Mt,q){return Mt=m(Mt),Wt($t,Mt)&&E(q)&&O(q,"value")&&!O(q,"get")&&!O(q,"set")&&!q.configurable&&(!O(q,"writable")||q.writable)&&(!O(q,"enumerable")||q.enumerable)?($t[Mt]=q.value,$t):st($t,Mt,q)};a?(Dt||(D.f=bt,F.f=Pt,Nt(vt,"buffer"),Nt(vt,"byteOffset"),Nt(vt,"byteLength"),Nt(vt,"length")),r({target:"Object",stat:!0,forced:!Dt},{getOwnPropertyDescriptor:bt,defineProperty:Pt}),s.exports=function(Vt,$t,Mt){var q=Vt.match(/\d+/)[0]/8,ut=Vt+(Mt?"Clamped":"")+"Array",J="get"+Vt,yt="set"+Vt,pt=n[ut],ct=pt,ft=ct&&ct.prototype,zt={},Yt=function(j,z){var G=H(j);return G.view[J](z*q+G.byteOffset,!0)},W=function(j,z,G){var ot=H(j);ot.view[yt](z*q+ot.byteOffset,Mt?y(G):G,!0)},k=function(j,z){st(j,z,{get:function(){return Yt(this,z)},set:function(G){return W(this,z,G)},enumerable:!0})};Dt?o&&(ct=$t(function(j,z,G,ot){return v(j,ft),K(function(){return E(z)?Ht(z)?ot!==void 0?new pt(z,p(G,q),ot):G!==void 0?new pt(z,p(G,q)):new pt(z):St(z)?L(ct,z):e(P,ct,z):new pt(g(z))}(),j,ct)}),A&&A(ct,at),N(C(pt),function(j){j in ct||c(ct,j,pt[j])}),ct.prototype=ft):(ct=$t(function(j,z,G,ot){v(j,ft);var mt=0,At=0,Bt,jt,Ut;if(!E(z))Ut=g(z),jt=Ut*q,Bt=new ht(jt);else if(Ht(z)){Bt=z,At=p(G,q);var Qt=z.byteLength;if(ot===void 0){if(Qt%q)throw new lt(Tt);if(jt=Qt-At,jt<0)throw new lt(Tt)}else if(jt=h(ot)*q,jt+At>Qt)throw new lt(Tt);Ut=jt/q}else return St(z)?L(ct,z):e(P,ct,z);for(Q(j,{buffer:Bt,byteOffset:At,byteLength:jt,length:Ut,view:new Lt(Bt)});mt1?arguments[1]:void 0,S=O!==void 0,E=i(y),T,x,I,A,C,P,N,$;if(E&&!v(E))for(N=u(y,E),$=N.next,y=[];!(P=n($,N)).done;)y.push(P.value);for(S&&m>2&&(O=r(O,arguments[2])),x=o(y),I=new(c(p))(x),A=f(I),T=0;x>T;T++)C=S?O(y[T],T):y[T],I[T]=A?d(C):+C;return I}},21822:function(s,l,t){var r=t(88037),n=t(16887),e=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;s.exports=function(o){return e(n(o,a(o)))}},36374:function(s,l,t){var r=t(11286),n=0,e=Math.random(),a=r(1 .toString);s.exports=function(o){return"Symbol("+(o===void 0?"":o)+")_"+a(++n+e,36)}},91918:function(s,l,t){var r=t(72069),n=t(18565),e=t(92986),a=t(70457),o=n("iterator");s.exports=!r(function(){var u=new URL("b?a=1&b=2&c=3","http://a"),i=u.searchParams,v=new URLSearchParams("a=1&a=2&b=3"),f="";return u.pathname="c%20d",i.forEach(function(c,d){i.delete("b"),f+=d+c}),v.delete("a",2),v.delete("b",void 0),a&&(!u.toJSON||!v.has("a",1)||v.has("a",2)||!v.has("a",void 0)||v.has("b"))||!i.size&&(a||!e)||!i.sort||u.href!=="http://a/c%20d?a=1&c=3"||i.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!i[o]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||f!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50234:function(s,l,t){var r=t(39729);s.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},356:function(s,l,t){var r=t(92986),n=t(72069);s.exports=r&&n(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},95486:function(s){var l=TypeError;s.exports=function(t,r){if(tE&&c(F,arguments[E]),F});if(P.prototype=A,x!=="Error"?o?o(P,C):u(P,C,{name:!0}):h&&S in I&&(i(P,I,S),i(P,I,"prepareStackTrace")),u(P,I),!g)try{A.name!==x&&e(A,"name",x),A.constructor=P}catch(N){}return P}}},27796:function(s,l,t){var r=t(14304),n=t(38941),e=t(66543),a=t(72069),o=t(70003),u="AggregateError",i=n(u),v=!a(function(){return i([1]).errors[0]!==1})&&a(function(){return i([1],u,{cause:7}).cause!==7});r({global:!0,constructor:!0,arity:2,forced:v},{AggregateError:o(u,function(f){return function(d,h){return e(f,this,arguments)}},v,!0)})},85647:function(s,l,t){var r=t(14304),n=t(95307),e=t(26313),a=t(15861),o=t(93706),u=t(5406),i=t(90809),v=t(18526),f=t(31486),c=t(97077),d=t(55902),h=t(15453),g=t(18565),p=g("toStringTag"),y=Error,m=[].push,O=function(T,x){var I=n(S,this),A;a?A=a(new y,I?e(this):S):(A=I?this:u(S),i(A,p,"Error")),x!==void 0&&i(A,"message",h(x)),c(A,O,A.stack,1),arguments.length>2&&f(A,arguments[2]);var C=[];return d(T,m,{that:C}),i(A,"errors",C),A};a?a(O,y):o(O,y,{name:!0});var S=O.prototype=u(y.prototype,{constructor:v(1,O),message:v(1,""),name:v(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:O})},42861:function(s,l,t){t(85647)},35473:function(s,l,t){var r=t(14304),n=t(66009),e=t(17468),a=t(36167),o="ArrayBuffer",u=e[o],i=n[o];r({global:!0,constructor:!0,forced:i!==u},{ArrayBuffer:u}),a(o)},35495:function(s,l,t){var r=t(92986),n=t(85500),e=t(30736),a=ArrayBuffer.prototype;r&&!("detached"in a)&&n(a,"detached",{configurable:!0,get:function(){return e(this)}})},4983:function(s,l,t){var r=t(14304),n=t(88037),e=n.NATIVE_ARRAY_BUFFER_VIEWS;r({target:"ArrayBuffer",stat:!0,forced:!e},{isView:n.isView})},6875:function(s,l,t){var r=t(14304),n=t(77422),e=t(72069),a=t(17468),o=t(25001),u=t(4652),i=t(45344),v=t(16887),f=a.ArrayBuffer,c=a.DataView,d=c.prototype,h=n(f.prototype.slice),g=n(d.getUint8),p=n(d.setUint8),y=e(function(){return!new f(2).slice(1,void 0).byteLength});r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:y},{slice:function(O,S){if(h&&S===void 0)return h(o(this),O);for(var E=o(this).byteLength,T=u(O,E),x=u(S===void 0?E:S,E),I=new(v(this,f))(i(x-T)),A=new c(this),C=new c(I),P=0;T=0?c:f+c;return d<0||d>=f?void 0:v[d]}}),o("at")},98700:function(s,l,t){var r=t(14304),n=t(72069),e=t(3438),a=t(37540),o=t(49671),u=t(82628),i=t(20095),v=t(84082),f=t(62083),c=t(52183),d=t(18565),h=t(73126),g=d("isConcatSpreadable"),p=h>=51||!n(function(){var O=[];return O[g]=!1,O.concat()[0]!==O}),y=function(O){if(!a(O))return!1;var S=O[g];return S!==void 0?!!S:e(O)},m=!p||!c("concat");r({target:"Array",proto:!0,arity:1,forced:m},{concat:function(S){var E=o(this),T=f(E,0),x=0,I,A,C,P,N;for(I=-1,C=arguments.length;I1?arguments[1]:void 0)}})},41585:function(s,l,t){var r=t(14304),n=t(43011),e=t(23811);r({target:"Array",proto:!0},{fill:n}),e("fill")},84554:function(s,l,t){var r=t(14304),n=t(66655).filter,e=t(52183),a=e("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}})},33818:function(s,l,t){var r=t(14304),n=t(66655).findIndex,e=t(23811),a="findIndex",o=!0;a in[]&&Array(1)[a](function(){o=!1}),r({target:"Array",proto:!0,forced:o},{findIndex:function(i){return n(this,i,arguments.length>1?arguments[1]:void 0)}}),e(a)},2209:function(s,l,t){var r=t(14304),n=t(73849).findLastIndex,e=t(23811);r({target:"Array",proto:!0},{findLastIndex:function(o){return n(this,o,arguments.length>1?arguments[1]:void 0)}}),e("findLastIndex")},64096:function(s,l,t){var r=t(14304),n=t(73849).findLast,e=t(23811);r({target:"Array",proto:!0},{findLast:function(o){return n(this,o,arguments.length>1?arguments[1]:void 0)}}),e("findLast")},36619:function(s,l,t){var r=t(14304),n=t(66655).find,e=t(23811),a="find",o=!0;a in[]&&Array(1)[a](function(){o=!1}),r({target:"Array",proto:!0,forced:o},{find:function(i){return n(this,i,arguments.length>1?arguments[1]:void 0)}}),e(a)},74092:function(s,l,t){var r=t(14304),n=t(53149),e=t(85156),a=t(49671),o=t(82628),u=t(62083);r({target:"Array",proto:!0},{flatMap:function(v){var f=a(this),c=o(f),d;return e(v),d=u(f,0),d.length=n(d,f,f,c,0,1,v,arguments.length>1?arguments[1]:void 0),d}})},91591:function(s,l,t){var r=t(14304),n=t(53149),e=t(49671),a=t(82628),o=t(12105),u=t(62083);r({target:"Array",proto:!0},{flat:function(){var v=arguments.length?arguments[0]:void 0,f=e(this),c=a(f),d=u(f,0);return d.length=n(d,f,f,c,0,v===void 0?1:o(v)),d}})},54703:function(s,l,t){var r=t(14304),n=t(13349);r({target:"Array",proto:!0,forced:[].forEach!==n},{forEach:n})},82936:function(s,l,t){var r=t(14304),n=t(48258),e=t(97494),a=!e(function(o){Array.from(o)});r({target:"Array",stat:!0,forced:a},{from:n})},48493:function(s,l,t){var r=t(14304),n=t(94319).includes,e=t(72069),a=t(23811),o=e(function(){return!Array(1).includes()});r({target:"Array",proto:!0,forced:o},{includes:function(i){return n(this,i,arguments.length>1?arguments[1]:void 0)}}),a("includes")},64730:function(s,l,t){var r=t(14304),n=t(77422),e=t(94319).indexOf,a=t(6148),o=n([].indexOf),u=!!o&&1/o([1],1,-0)<0,i=u||!a("indexOf");r({target:"Array",proto:!0,forced:i},{indexOf:function(f){var c=arguments.length>1?arguments[1]:void 0;return u?o(this,f,c)||0:e(this,f,c)}})},95024:function(s,l,t){var r=t(14304),n=t(3438);r({target:"Array",stat:!0},{isArray:n})},35054:function(s,l,t){var r=t(36859),n=t(23811),e=t(29107),a=t(82367),o=t(7831).f,u=t(10218),i=t(10659),v=t(70457),f=t(92986),c="Array Iterator",d=a.set,h=a.getterFor(c);s.exports=u(Array,"Array",function(p,y){d(this,{type:c,target:r(p),index:0,kind:y})},function(){var p=h(this),y=p.target,m=p.index++;if(!y||m>=y.length)return p.target=void 0,i(void 0,!0);switch(p.kind){case"keys":return i(m,!1);case"values":return i(y[m],!1)}return i([m,y[m]],!1)},"values");var g=e.Arguments=e.Array;if(n("keys"),n("values"),n("entries"),!v&&f&&g.name!=="values")try{o(g,"name",{value:"values"})}catch(p){}},25460:function(s,l,t){var r=t(14304),n=t(11286),e=t(72181),a=t(36859),o=t(6148),u=n([].join),i=e!==Object,v=i||!o("join",",");r({target:"Array",proto:!0,forced:v},{join:function(c){return u(a(this),c===void 0?",":c)}})},60703:function(s,l,t){var r=t(14304),n=t(58465);r({target:"Array",proto:!0,forced:n!==[].lastIndexOf},{lastIndexOf:n})},90468:function(s,l,t){var r=t(14304),n=t(66655).map,e=t(52183),a=e("map");r({target:"Array",proto:!0,forced:!a},{map:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}})},69581:function(s,l,t){var r=t(14304),n=t(72069),e=t(11051),a=t(84082),o=Array,u=n(function(){function i(){}return!(o.of.call(i)instanceof i)});r({target:"Array",stat:!0,forced:u},{of:function(){for(var v=0,f=arguments.length,c=new(e(this)?this:o)(f);f>v;)a(c,v,arguments[v++]);return c.length=f,c}})},720:function(s,l,t){var r=t(14304),n=t(49671),e=t(82628),a=t(2213),o=t(20095),u=t(72069),i=u(function(){return[].push.call({length:4294967296},1)!==4294967297}),v=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(c){return c instanceof TypeError}},f=i||!v();r({target:"Array",proto:!0,arity:1,forced:f},{push:function(d){var h=n(this),g=e(h),p=arguments.length;o(g+p);for(var y=0;y79&&a<83,i=u||!e("reduceRight");r({target:"Array",proto:!0,forced:i},{reduceRight:function(f){return n(this,f,arguments.length,arguments.length>1?arguments[1]:void 0)}})},11042:function(s,l,t){var r=t(14304),n=t(97264).left,e=t(6148),a=t(73126),o=t(42954),u=!o&&a>79&&a<83,i=u||!e("reduce");r({target:"Array",proto:!0,forced:i},{reduce:function(f){var c=arguments.length;return n(this,f,c,c>1?arguments[1]:void 0)}})},24608:function(s,l,t){var r=t(14304),n=t(11286),e=t(3438),a=n([].reverse),o=[1,2];r({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return e(this)&&(this.length=this.length),a(this)}})},51644:function(s,l,t){var r=t(14304),n=t(3438),e=t(11051),a=t(37540),o=t(4652),u=t(82628),i=t(36859),v=t(84082),f=t(18565),c=t(52183),d=t(22806),h=c("slice"),g=f("species"),p=Array,y=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(O,S){var E=i(this),T=u(E),x=o(O,T),I=o(S===void 0?T:S,T),A,C,P;if(n(E)&&(A=E.constructor,e(A)&&(A===p||n(A.prototype))?A=void 0:a(A)&&(A=A[g],A===null&&(A=void 0)),A===p||A===void 0))return d(E,x,I);for(C=new(A===void 0?p:A)(y(I-x,0)),P=0;x1?arguments[1]:void 0)}})},46828:function(s,l,t){var r=t(14304),n=t(11286),e=t(85156),a=t(49671),o=t(82628),u=t(12384),i=t(17361),v=t(72069),f=t(13270),c=t(6148),d=t(54040),h=t(87216),g=t(73126),p=t(68674),y=[],m=n(y.sort),O=n(y.push),S=v(function(){y.sort(void 0)}),E=v(function(){y.sort(null)}),T=c("sort"),x=!v(function(){if(g)return g<70;if(!(d&&d>3)){if(h)return!0;if(p)return p<603;var C="",P,N,$,U;for(P=65;P<76;P++){switch(N=String.fromCharCode(P),P){case 66:case 69:case 70:case 72:$=3;break;case 68:case 71:$=4;break;default:$=2}for(U=0;U<47;U++)y.push({k:N+U,v:$})}for(y.sort(function(F,D){return D.v-F.v}),U=0;Ui(N)?1:-1}};r({target:"Array",proto:!0,forced:I},{sort:function(P){P!==void 0&&e(P);var N=a(this);if(x)return P===void 0?m(N):m(N,P);var $=[],U=o(N),F,D;for(D=0;DE-A+I;P--)c(S,P-1)}else if(I>A)for(P=E-A;P>T;P--)N=P+A-1,$=P+I-1,N in S?S[$]=S[N]:c(S,$);for(P=0;P=0&&f<=99?f+1900:f;return u(this,c)}})},33685:function(s,l,t){var r=t(14304);r({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},60086:function(s,l,t){var r=t(14304),n=t(11890);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==n},{toISOString:n})},96049:function(s,l,t){var r=t(14304),n=t(72069),e=t(49671),a=t(89935),o=n(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});r({target:"Date",proto:!0,arity:1,forced:o},{toJSON:function(i){var v=e(this),f=a(v,"number");return typeof f=="number"&&!isFinite(f)?null:v.toISOString()}})},14038:function(s,l,t){var r=t(94879),n=t(16142),e=t(84306),a=t(18565),o=a("toPrimitive"),u=Date.prototype;r(u,o)||n(u,o,e)},55518:function(s,l,t){var r=t(11286),n=t(16142),e=Date.prototype,a="Invalid Date",o="toString",u=r(e[o]),i=r(e.getTime);String(new Date(NaN))!==a&&n(e,o,function(){var f=i(this);return f===f?u(this):a})},81742:function(s,l,t){var r=t(14304),n=t(66009),e=t(66543),a=t(70003),o="WebAssembly",u=n[o],i=new Error("e",{cause:7}).cause!==7,v=function(c,d){var h={};h[c]=a(c,d,i),r({global:!0,constructor:!0,arity:1,forced:i},h)},f=function(c,d){if(u&&u[c]){var h={};h[c]=a(o+"."+c,d,i),r({target:o,stat:!0,constructor:!0,arity:1,forced:i},h)}};v("Error",function(c){return function(h){return e(c,this,arguments)}}),v("EvalError",function(c){return function(h){return e(c,this,arguments)}}),v("RangeError",function(c){return function(h){return e(c,this,arguments)}}),v("ReferenceError",function(c){return function(h){return e(c,this,arguments)}}),v("SyntaxError",function(c){return function(h){return e(c,this,arguments)}}),v("TypeError",function(c){return function(h){return e(c,this,arguments)}}),v("URIError",function(c){return function(h){return e(c,this,arguments)}}),f("CompileError",function(c){return function(h){return e(c,this,arguments)}}),f("LinkError",function(c){return function(h){return e(c,this,arguments)}}),f("RuntimeError",function(c){return function(h){return e(c,this,arguments)}})},8720:function(s,l,t){var r=t(16142),n=t(58434),e=Error.prototype;e.toString!==n&&r(e,"toString",n)},8894:function(s,l,t){var r=t(14304),n=t(11286),e=t(17361),a=n("".charAt),o=n("".charCodeAt),u=n(/./.exec),i=n(1 .toString),v=n("".toUpperCase),f=/[\w*+\-./@]/,c=function(d,h){for(var g=i(d,16);g.length9490626562425156e-8?a(c)+u:n(c-1+o(c-1)*o(c+1))}})},15656:function(s,l,t){var r=t(14304),n=Math.asinh,e=Math.log,a=Math.sqrt;function o(i){var v=+i;return!isFinite(v)||v===0?v:v<0?-o(-v):e(v+a(v*v+1))}var u=!(n&&1/n(0)>0);r({target:"Math",stat:!0,forced:u},{asinh:o})},22091:function(s,l,t){var r=t(14304),n=Math.atanh,e=Math.log,a=!(n&&1/n(-0)<0);r({target:"Math",stat:!0,forced:a},{atanh:function(u){var i=+u;return i===0?i:e((1+i)/(1-i))/2}})},2886:function(s,l,t){var r=t(14304),n=t(93976),e=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(u){var i=+u;return n(i)*a(e(i),.3333333333333333)}})},25895:function(s,l,t){var r=t(14304),n=Math.floor,e=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(u){var i=u>>>0;return i?31-n(e(i+.5)*a):32}})},24228:function(s,l,t){var r=t(14304),n=t(98940),e=Math.cosh,a=Math.abs,o=Math.E,u=!e||e(710)===1/0;r({target:"Math",stat:!0,forced:u},{cosh:function(v){var f=n(a(v)-1)+1;return(f+1/(f*o*o))*(o/2)}})},79488:function(s,l,t){var r=t(14304),n=t(98940);r({target:"Math",stat:!0,forced:n!==Math.expm1},{expm1:n})},75987:function(s,l,t){var r=t(14304),n=t(93279);r({target:"Math",stat:!0},{fround:n})},81555:function(s,l,t){var r=t(14304),n=Math.hypot,e=Math.abs,a=Math.sqrt,o=!!n&&n(1/0,NaN)!==1/0;r({target:"Math",stat:!0,arity:2,forced:o},{hypot:function(i,v){for(var f=0,c=0,d=arguments.length,h=0,g,p;c0?(p=g/h,f+=p*p):f+=g;return h===1/0?1/0:h*a(f)}})},87854:function(s,l,t){var r=t(14304),n=t(72069),e=Math.imul,a=n(function(){return e(4294967295,5)!==-5||e.length!==2});r({target:"Math",stat:!0,forced:a},{imul:function(u,i){var v=65535,f=+u,c=+i,d=v&f,h=v&c;return 0|d*h+((v&f>>>16)*h+d*(v&c>>>16)<<16>>>0)}})},35074:function(s,l,t){var r=t(14304),n=t(41942);r({target:"Math",stat:!0},{log10:n})},50946:function(s,l,t){var r=t(14304),n=t(49366);r({target:"Math",stat:!0},{log1p:n})},29417:function(s,l,t){var r=t(14304),n=Math.log,e=Math.LN2;r({target:"Math",stat:!0},{log2:function(o){return n(o)/e}})},80628:function(s,l,t){var r=t(14304),n=t(93976);r({target:"Math",stat:!0},{sign:n})},74375:function(s,l,t){var r=t(14304),n=t(72069),e=t(98940),a=Math.abs,o=Math.exp,u=Math.E,i=n(function(){return Math.sinh(-2e-17)!==-2e-17});r({target:"Math",stat:!0,forced:i},{sinh:function(f){var c=+f;return a(c)<1?(e(c)-e(-c))/2:(o(c-1)-o(-c-1))*(u/2)}})},29708:function(s,l,t){var r=t(14304),n=t(98940),e=Math.exp;r({target:"Math",stat:!0},{tanh:function(o){var u=+o,i=n(u),v=n(-u);return i===1/0?1:v===1/0?-1:(i-v)/(e(u)+e(-u))}})},93449:function(s,l,t){var r=t(78401);r(Math,"Math",!0)},9111:function(s,l,t){var r=t(14304),n=t(22459);r({target:"Math",stat:!0},{trunc:n})},83514:function(s,l,t){var r=t(14304),n=t(70457),e=t(92986),a=t(66009),o=t(75081),u=t(11286),i=t(13278),v=t(94879),f=t(32345),c=t(95307),d=t(491),h=t(89935),g=t(72069),p=t(83258).f,y=t(71349).f,m=t(7831).f,O=t(34338),S=t(85900).trim,E="Number",T=a[E],x=o[E],I=T.prototype,A=a.TypeError,C=u("".slice),P=u("".charCodeAt),N=function(b){var K=h(b,"number");return typeof K=="bigint"?K:$(K)},$=function(b){var K=h(b,"number"),H,Q,X,st,et,lt,ht,gt;if(d(K))throw new A("Cannot convert a Symbol value to a number");if(typeof K=="string"&&K.length>2){if(K=S(K),H=P(K,0),H===43||H===45){if(Q=P(K,2),Q===88||Q===120)return NaN}else if(H===48){switch(P(K,1)){case 66:case 98:X=2,st=49;break;case 79:case 111:X=8,st=55;break;default:return+K}for(et=C(K,2),lt=et.length,ht=0;htst)return NaN;return parseInt(et,X)}}return+K},U=i(E,!T(" 0o1")||!T("0b1")||T("+0x1")),F=function(b){return c(I,b)&&g(function(){O(b)})},D=function(K){var H=arguments.length<1?0:T(N(K));return F(this)?f(Object(H),this,D):H};D.prototype=I,U&&!n&&(I.constructor=D),r({global:!0,constructor:!0,wrap:!0,forced:U},{Number:D});var L=function(b,K){for(var H=e?p(K):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),Q=0,X;H.length>Q;Q++)v(K,X=H[Q])&&!v(b,X)&&m(b,X,y(K,X))};n&&x&&L(o[E],x),(U||n)&&L(o[E],T)},15096:function(s,l,t){var r=t(14304);r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59590:function(s,l,t){var r=t(14304),n=t(98074);r({target:"Number",stat:!0},{isFinite:n})},99663:function(s,l,t){var r=t(14304),n=t(613);r({target:"Number",stat:!0},{isInteger:n})},89988:function(s,l,t){var r=t(14304);r({target:"Number",stat:!0},{isNaN:function(e){return e!==e}})},54427:function(s,l,t){var r=t(14304),n=t(613),e=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(o){return n(o)&&e(o)<=9007199254740991}})},67895:function(s,l,t){var r=t(14304);r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},57909:function(s,l,t){var r=t(14304);r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},83938:function(s,l,t){var r=t(14304),n=t(25838);r({target:"Number",stat:!0,forced:Number.parseFloat!==n},{parseFloat:n})},55461:function(s,l,t){var r=t(14304),n=t(23009);r({target:"Number",stat:!0,forced:Number.parseInt!==n},{parseInt:n})},97339:function(s,l,t){var r=t(14304),n=t(11286),e=t(12105),a=t(34338),o=t(79719),u=t(41942),i=t(72069),v=RangeError,f=String,c=isFinite,d=Math.abs,h=Math.floor,g=Math.pow,p=Math.round,y=n(1 .toExponential),m=n(o),O=n("".slice),S=y(-69e-12,4)==="-6.9000e-11"&&y(1.255,2)==="1.25e+0"&&y(12345,3)==="1.235e+4"&&y(25,0)==="3e+1",E=function(){return i(function(){y(1,1/0)})&&i(function(){y(1,-1/0)})},T=function(){return!i(function(){y(1/0,1/0),y(NaN,1/0)})},x=!S||!E()||!T();r({target:"Number",proto:!0,forced:x},{toExponential:function(A){var C=a(this);if(A===void 0)return y(C);var P=e(A);if(!c(C))return String(C);if(P<0||P>20)throw new v("Incorrect fraction digits");if(S)return y(C,P);var N="",$="",U=0,F="",D="";if(C<0&&(N="-",C=-C),C===0)U=0,$=m("0",P+1);else{var L=u(C);U=h(L);var b=0,K=g(10,U-P);b=p(C/K),2*C>=(2*b+1)*K&&(b+=1),b>=g(10,P+1)&&(b/=10,U+=1),$=f(b)}return P!==0&&($=O($,0,1)+"."+O($,1)),U===0?(F="+",D="0"):(F=U>0?"+":"-",D=f(d(U))),$+="e"+F+D,N+$}})},3670:function(s,l,t){var r=t(14304),n=t(11286),e=t(12105),a=t(34338),o=t(79719),u=t(72069),i=RangeError,v=String,f=Math.floor,c=n(o),d=n("".slice),h=n(1 .toFixed),g=function(E,T,x){return T===0?x:T%2===1?g(E,T-1,x*E):g(E*E,T/2,x)},p=function(E){for(var T=0,x=E;x>=4096;)T+=12,x/=4096;for(;x>=2;)T+=1,x/=2;return T},y=function(E,T,x){for(var I=-1,A=x;++I<6;)A+=T*E[I],E[I]=A%1e7,A=f(A/1e7)},m=function(E,T){for(var x=6,I=0;--x>=0;)I+=E[x],E[x]=f(I/T),I=I%T*1e7},O=function(E){for(var T=6,x="";--T>=0;)if(x!==""||T===0||E[T]!==0){var I=v(E[T]);x=x===""?I:x+c("0",7-I.length)+I}return x},S=u(function(){return h(8e-5,3)!=="0.000"||h(.9,0)!=="1"||h(1.255,2)!=="1.25"||h(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!u(function(){h({})});r({target:"Number",proto:!0,forced:S},{toFixed:function(T){var x=a(this),I=e(T),A=[0,0,0,0,0,0],C="",P="0",N,$,U,F;if(I<0||I>20)throw new i("Incorrect fraction digits");if(x!==x)return"NaN";if(x<=-1e21||x>=1e21)return v(x);if(x<0&&(C="-",x=-x),x>1e-21)if(N=p(x*g(2,69,1))-69,$=N<0?x*g(2,-N,1):x/g(2,N,1),$*=4503599627370496,N=52-N,N>0){for(y(A,0,$),U=I;U>=7;)y(A,1e7,0),U-=7;for(y(A,g(10,U,1),0),U=N-1;U>=23;)m(A,8388608),U-=23;m(A,1<0?(F=P.length,P=C+(F<=I?"0."+c("0",I-F)+P:d(P,0,F-I)+"."+d(P,F-I))):P=C+P,P}})},15224:function(s,l,t){var r=t(14304),n=t(11286),e=t(72069),a=t(34338),o=n(1 .toPrecision),u=e(function(){return o(1,void 0)!=="1"})||!e(function(){o({})});r({target:"Number",proto:!0,forced:u},{toPrecision:function(v){return v===void 0?o(a(this)):o(a(this),v)}})},45891:function(s,l,t){var r=t(14304),n=t(16667);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},99910:function(s,l,t){var r=t(14304),n=t(92986),e=t(5406);r({target:"Object",stat:!0,sham:!n},{create:e})},92445:function(s,l,t){var r=t(14304),n=t(92986),e=t(57629),a=t(85156),o=t(49671),u=t(7831);n&&r({target:"Object",proto:!0,forced:e},{__defineGetter__:function(v,f){u.f(o(this),v,{get:a(f),enumerable:!0,configurable:!0})}})},21875:function(s,l,t){var r=t(14304),n=t(92986),e=t(61963).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==e,sham:!n},{defineProperties:e})},4383:function(s,l,t){var r=t(14304),n=t(92986),e=t(7831).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==e,sham:!n},{defineProperty:e})},11361:function(s,l,t){var r=t(14304),n=t(92986),e=t(57629),a=t(85156),o=t(49671),u=t(7831);n&&r({target:"Object",proto:!0,forced:e},{__defineSetter__:function(v,f){u.f(o(this),v,{set:a(f),enumerable:!0,configurable:!0})}})},13728:function(s,l,t){var r=t(14304),n=t(8511).entries;r({target:"Object",stat:!0},{entries:function(a){return n(a)}})},14885:function(s,l,t){var r=t(14304),n=t(27534),e=t(72069),a=t(37540),o=t(31853).onFreeze,u=Object.freeze,i=e(function(){u(1)});r({target:"Object",stat:!0,forced:i,sham:!n},{freeze:function(f){return u&&a(f)?u(o(f)):f}})},30343:function(s,l,t){var r=t(14304),n=t(55902),e=t(84082);r({target:"Object",stat:!0},{fromEntries:function(o){var u={};return n(o,function(i,v){e(u,i,v)},{AS_ENTRIES:!0}),u}})},22045:function(s,l,t){var r=t(14304),n=t(72069),e=t(36859),a=t(71349).f,o=t(92986),u=!o||n(function(){a(1)});r({target:"Object",stat:!0,forced:u,sham:!o},{getOwnPropertyDescriptor:function(v,f){return a(e(v),f)}})},75e3:function(s,l,t){var r=t(14304),n=t(92986),e=t(16885),a=t(36859),o=t(71349),u=t(84082);r({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(v){for(var f=a(v),c=o.f,d=e(f),h={},g=0,p,y;d.length>g;)y=c(f,p=d[g++]),y!==void 0&&u(h,p,y);return h}})},64658:function(s,l,t){var r=t(14304),n=t(72069),e=t(92880).f,a=n(function(){return!Object.getOwnPropertyNames(1)});r({target:"Object",stat:!0,forced:a},{getOwnPropertyNames:e})},45223:function(s,l,t){var r=t(14304),n=t(39729),e=t(72069),a=t(24943),o=t(49671),u=!n||e(function(){a.f(1)});r({target:"Object",stat:!0,forced:u},{getOwnPropertySymbols:function(v){var f=a.f;return f?f(o(v)):[]}})},16017:function(s,l,t){var r=t(14304),n=t(72069),e=t(49671),a=t(26313),o=t(87501),u=n(function(){a(1)});r({target:"Object",stat:!0,forced:u,sham:!o},{getPrototypeOf:function(v){return a(e(v))}})},84681:function(s,l,t){var r=t(14304),n=t(38941),e=t(11286),a=t(85156),o=t(2068),u=t(50035),i=t(55902),v=t(72069),f=Object.groupBy,c=n("Object","create"),d=e([].push),h=!f||v(function(){return f("ab",function(g){return g}).a.length!==1});r({target:"Object",stat:!0,forced:h},{groupBy:function(p,y){o(p),a(y);var m=c(null),O=0;return i(p,function(S){var E=u(y(S,O++));E in m?d(m[E],S):m[E]=[S]}),m}})},73421:function(s,l,t){var r=t(14304),n=t(94879);r({target:"Object",stat:!0},{hasOwn:n})},31046:function(s,l,t){var r=t(14304),n=t(28174);r({target:"Object",stat:!0,forced:Object.isExtensible!==n},{isExtensible:n})},94645:function(s,l,t){var r=t(14304),n=t(72069),e=t(37540),a=t(14274),o=t(72058),u=Object.isFrozen,i=o||n(function(){u(1)});r({target:"Object",stat:!0,forced:i},{isFrozen:function(f){return!e(f)||o&&a(f)==="ArrayBuffer"?!0:u?u(f):!1}})},62935:function(s,l,t){var r=t(14304),n=t(72069),e=t(37540),a=t(14274),o=t(72058),u=Object.isSealed,i=o||n(function(){u(1)});r({target:"Object",stat:!0,forced:i},{isSealed:function(f){return!e(f)||o&&a(f)==="ArrayBuffer"?!0:u?u(f):!1}})},93446:function(s,l,t){var r=t(14304),n=t(13944);r({target:"Object",stat:!0},{is:n})},62518:function(s,l,t){var r=t(14304),n=t(49671),e=t(18350),a=t(72069),o=a(function(){e(1)});r({target:"Object",stat:!0,forced:o},{keys:function(i){return e(n(i))}})},45130:function(s,l,t){var r=t(14304),n=t(92986),e=t(57629),a=t(49671),o=t(50035),u=t(26313),i=t(71349).f;n&&r({target:"Object",proto:!0,forced:e},{__lookupGetter__:function(f){var c=a(this),d=o(f),h;do if(h=i(c,d))return h.get;while(c=u(c))}})},51542:function(s,l,t){var r=t(14304),n=t(92986),e=t(57629),a=t(49671),o=t(50035),u=t(26313),i=t(71349).f;n&&r({target:"Object",proto:!0,forced:e},{__lookupSetter__:function(f){var c=a(this),d=o(f),h;do if(h=i(c,d))return h.set;while(c=u(c))}})},43781:function(s,l,t){var r=t(14304),n=t(37540),e=t(31853).onFreeze,a=t(27534),o=t(72069),u=Object.preventExtensions,i=o(function(){u(1)});r({target:"Object",stat:!0,forced:i,sham:!a},{preventExtensions:function(f){return u&&n(f)?u(e(f)):f}})},25738:function(s,l,t){var r=t(92986),n=t(85500),e=t(37540),a=t(52427),o=t(49671),u=t(2068),i=Object.getPrototypeOf,v=Object.setPrototypeOf,f=Object.prototype,c="__proto__";if(r&&i&&v&&!(c in f))try{n(f,c,{configurable:!0,get:function(){return i(o(this))},set:function(h){var g=u(this);a(h)&&e(g)&&v(g,h)}})}catch(d){}},93247:function(s,l,t){var r=t(14304),n=t(37540),e=t(31853).onFreeze,a=t(27534),o=t(72069),u=Object.seal,i=o(function(){u(1)});r({target:"Object",stat:!0,forced:i,sham:!a},{seal:function(f){return u&&n(f)?u(e(f)):f}})},41533:function(s,l,t){var r=t(14304),n=t(15861);r({target:"Object",stat:!0},{setPrototypeOf:n})},60225:function(s,l,t){var r=t(67878),n=t(16142),e=t(60105);r||n(Object.prototype,"toString",e,{unsafe:!0})},69920:function(s,l,t){var r=t(14304),n=t(8511).values;r({target:"Object",stat:!0},{values:function(a){return n(a)}})},89205:function(s,l,t){var r=t(14304),n=t(25838);r({global:!0,forced:parseFloat!==n},{parseFloat:n})},78546:function(s,l,t){var r=t(14304),n=t(23009);r({global:!0,forced:parseInt!==n},{parseInt:n})},16893:function(s,l,t){var r=t(14304),n=t(96499),e=t(85156),a=t(24649),o=t(67805),u=t(55902),i=t(26035);r({target:"Promise",stat:!0,forced:i},{allSettled:function(f){var c=this,d=a.f(c),h=d.resolve,g=d.reject,p=o(function(){var y=e(c.resolve),m=[],O=0,S=1;u(f,function(E){var T=O++,x=!1;S++,n(y,c,E).then(function(I){x||(x=!0,m[T]={status:"fulfilled",value:I},--S||h(m))},function(I){x||(x=!0,m[T]={status:"rejected",reason:I},--S||h(m))})}),--S||h(m)});return p.error&&g(p.value),d.promise}})},11733:function(s,l,t){var r=t(14304),n=t(96499),e=t(85156),a=t(24649),o=t(67805),u=t(55902),i=t(26035);r({target:"Promise",stat:!0,forced:i},{all:function(f){var c=this,d=a.f(c),h=d.resolve,g=d.reject,p=o(function(){var y=e(c.resolve),m=[],O=0,S=1;u(f,function(E){var T=O++,x=!1;S++,n(y,c,E).then(function(I){x||(x=!0,m[T]=I,--S||h(m))},g)}),--S||h(m)});return p.error&&g(p.value),d.promise}})},3676:function(s,l,t){var r=t(14304),n=t(96499),e=t(85156),a=t(38941),o=t(24649),u=t(67805),i=t(55902),v=t(26035),f="No one promise resolved";r({target:"Promise",stat:!0,forced:v},{any:function(d){var h=this,g=a("AggregateError"),p=o.f(h),y=p.resolve,m=p.reject,O=u(function(){var S=e(h.resolve),E=[],T=0,x=1,I=!1;i(d,function(A){var C=T++,P=!1;x++,n(S,h,A).then(function(N){P||I||(I=!0,y(N))},function(N){P||I||(P=!0,E[C]=N,--x||m(new g(E,f)))})}),--x||m(new g(E,f))});return O.error&&m(O.value),p.promise}})},14013:function(s,l,t){var r=t(14304),n=t(70457),e=t(37130).CONSTRUCTOR,a=t(98844),o=t(38941),u=t(23583),i=t(16142),v=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:e,real:!0},{catch:function(c){return this.then(void 0,c)}}),!n&&u(a)){var f=o("Promise").prototype.catch;v.catch!==f&&i(v,"catch",f,{unsafe:!0})}},20238:function(s,l,t){var r=t(14304),n=t(70457),e=t(42954),a=t(66009),o=t(96499),u=t(16142),i=t(15861),v=t(78401),f=t(36167),c=t(85156),d=t(23583),h=t(37540),g=t(12833),p=t(16887),y=t(23115).set,m=t(9709),O=t(99095),S=t(67805),E=t(76895),T=t(82367),x=t(98844),I=t(37130),A=t(24649),C="Promise",P=I.CONSTRUCTOR,N=I.REJECTION_EVENT,$=I.SUBCLASSING,U=T.getterFor(C),F=T.set,D=x&&x.prototype,L=x,b=D,K=a.TypeError,H=a.document,Q=a.process,X=A.f,st=X,et=!!(H&&H.createEvent&&a.dispatchEvent),lt="unhandledrejection",ht="rejectionhandled",gt=0,Lt=1,Dt=2,Ct=1,at=2,vt,St,Rt,Tt,Nt=function(J){var yt;return h(J)&&d(yt=J.then)?yt:!1},Ht=function(J,yt){var pt=yt.value,ct=yt.state===Lt,ft=ct?J.ok:J.fail,zt=J.resolve,Yt=J.reject,W=J.domain,k,tt,j;try{ft?(ct||(yt.rejection===at&&$t(yt),yt.rejection=Ct),ft===!0?k=pt:(W&&W.enter(),k=ft(pt),W&&(W.exit(),j=!0)),k===J.promise?Yt(new K("Promise-chain cycle")):(tt=Nt(k))?o(tt,k,zt,Yt):zt(k)):Yt(pt)}catch(z){W&&!j&&W.exit(),Yt(z)}},Wt=function(J,yt){J.notified||(J.notified=!0,m(function(){for(var pt=J.reactions,ct;ct=pt.get();)Ht(ct,J);J.notified=!1,yt&&!J.rejection&&Pt(J)}))},bt=function(J,yt,pt){var ct,ft;et?(ct=H.createEvent("Event"),ct.promise=yt,ct.reason=pt,ct.initEvent(J,!1,!0),a.dispatchEvent(ct)):ct={promise:yt,reason:pt},!N&&(ft=a["on"+J])?ft(ct):J===lt&&O("Unhandled promise rejection",pt)},Pt=function(J){o(y,a,function(){var yt=J.facade,pt=J.value,ct=Vt(J),ft;if(ct&&(ft=S(function(){e?Q.emit("unhandledRejection",pt,yt):bt(lt,yt,pt)}),J.rejection=e||Vt(J)?at:Ct,ft.error))throw ft.value})},Vt=function(J){return J.rejection!==Ct&&!J.parent},$t=function(J){o(y,a,function(){var yt=J.facade;e?Q.emit("rejectionHandled",yt):bt(ht,yt,J.value)})},Mt=function(J,yt,pt){return function(ct){J(yt,ct,pt)}},q=function(J,yt,pt){J.done||(J.done=!0,pt&&(J=pt),J.value=yt,J.state=Dt,Wt(J,!0))},ut=function(J,yt,pt){if(!J.done){J.done=!0,pt&&(J=pt);try{if(J.facade===yt)throw new K("Promise can't be resolved itself");var ct=Nt(yt);ct?m(function(){var ft={done:!1};try{o(ct,yt,Mt(ut,ft,J),Mt(q,ft,J))}catch(zt){q(ft,zt,J)}}):(J.value=yt,J.state=Lt,Wt(J,!1))}catch(ft){q({done:!1},ft,J)}}};if(P&&(L=function(yt){g(this,b),c(yt),o(vt,this);var pt=U(this);try{yt(Mt(ut,pt),Mt(q,pt))}catch(ct){q(pt,ct)}},b=L.prototype,vt=function(yt){F(this,{type:C,done:!1,notified:!1,parent:!1,reactions:new E,rejection:!1,state:gt,value:void 0})},vt.prototype=u(b,"then",function(yt,pt){var ct=U(this),ft=X(p(this,L));return ct.parent=!0,ft.ok=d(yt)?yt:!0,ft.fail=d(pt)&&pt,ft.domain=e?Q.domain:void 0,ct.state===gt?ct.reactions.add(ft):m(function(){Ht(ft,ct)}),ft.promise}),St=function(){var J=new vt,yt=U(J);this.promise=J,this.resolve=Mt(ut,yt),this.reject=Mt(q,yt)},A.f=X=function(J){return J===L||J===Rt?new St(J):st(J)},!n&&d(x)&&D!==Object.prototype)){Tt=D.then,$||u(D,"then",function(yt,pt){var ct=this;return new L(function(ft,zt){o(Tt,ct,ft,zt)}).then(yt,pt)},{unsafe:!0});try{delete D.constructor}catch(J){}i&&i(D,b)}r({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:L}),v(L,C,!1,!0),f(C)},58361:function(s,l,t){var r=t(14304),n=t(70457),e=t(98844),a=t(72069),o=t(38941),u=t(23583),i=t(16887),v=t(87408),f=t(16142),c=e&&e.prototype,d=!!e&&a(function(){c.finally.call({then:function(){}},function(){})});if(r({target:"Promise",proto:!0,real:!0,forced:d},{finally:function(g){var p=i(this,o("Promise")),y=u(g);return this.then(y?function(m){return v(p,g()).then(function(){return m})}:g,y?function(m){return v(p,g()).then(function(){throw m})}:g)}}),!n&&u(e)){var h=o("Promise").prototype.finally;c.finally!==h&&f(c,"finally",h,{unsafe:!0})}},63616:function(s,l,t){t(20238),t(11733),t(14013),t(3037),t(36027),t(97282)},3037:function(s,l,t){var r=t(14304),n=t(96499),e=t(85156),a=t(24649),o=t(67805),u=t(55902),i=t(26035);r({target:"Promise",stat:!0,forced:i},{race:function(f){var c=this,d=a.f(c),h=d.reject,g=o(function(){var p=e(c.resolve);u(f,function(y){n(p,c,y).then(d.resolve,h)})});return g.error&&h(g.value),d.promise}})},36027:function(s,l,t){var r=t(14304),n=t(24649),e=t(37130).CONSTRUCTOR;r({target:"Promise",stat:!0,forced:e},{reject:function(o){var u=n.f(this),i=u.reject;return i(o),u.promise}})},97282:function(s,l,t){var r=t(14304),n=t(38941),e=t(70457),a=t(98844),o=t(37130).CONSTRUCTOR,u=t(87408),i=n("Promise"),v=e&&!o;r({target:"Promise",stat:!0,forced:e||o},{resolve:function(c){return u(v&&this===i?a:this,c)}})},23958:function(s,l,t){var r=t(14304),n=t(24649);r({target:"Promise",stat:!0},{withResolvers:function(){var a=n.f(this);return{promise:a.promise,resolve:a.resolve,reject:a.reject}}})},9798:function(s,l,t){var r=t(14304),n=t(66543),e=t(85156),a=t(25001),o=t(72069),u=!o(function(){Reflect.apply(function(){})});r({target:"Reflect",stat:!0,forced:u},{apply:function(v,f,c){return n(e(v),f,a(c))}})},2371:function(s,l,t){var r=t(14304),n=t(38941),e=t(66543),a=t(91384),o=t(80042),u=t(25001),i=t(37540),v=t(5406),f=t(72069),c=n("Reflect","construct"),d=Object.prototype,h=[].push,g=f(function(){function m(){}return!(c(function(){},[],m)instanceof m)}),p=!f(function(){c(function(){})}),y=g||p;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(O,S){o(O),u(S);var E=arguments.length<3?O:o(arguments[2]);if(p&&!g)return c(O,S,E);if(O===E){switch(S.length){case 0:return new O;case 1:return new O(S[0]);case 2:return new O(S[0],S[1]);case 3:return new O(S[0],S[1],S[2]);case 4:return new O(S[0],S[1],S[2],S[3])}var T=[null];return e(h,T,S),new(e(a,O,T))}var x=E.prototype,I=v(i(x)?x:d),A=e(O,I,S);return i(A)?A:I}})},76185:function(s,l,t){var r=t(14304),n=t(92986),e=t(25001),a=t(50035),o=t(7831),u=t(72069),i=u(function(){Reflect.defineProperty(o.f({},1,{value:1}),1,{value:2})});r({target:"Reflect",stat:!0,forced:i,sham:!n},{defineProperty:function(f,c,d){e(f);var h=a(c);e(d);try{return o.f(f,h,d),!0}catch(g){return!1}}})},76553:function(s,l,t){var r=t(14304),n=t(25001),e=t(71349).f;r({target:"Reflect",stat:!0},{deleteProperty:function(o,u){var i=e(n(o),u);return i&&!i.configurable?!1:delete o[u]}})},25227:function(s,l,t){var r=t(14304),n=t(92986),e=t(25001),a=t(71349);r({target:"Reflect",stat:!0,sham:!n},{getOwnPropertyDescriptor:function(u,i){return a.f(e(u),i)}})},91723:function(s,l,t){var r=t(14304),n=t(25001),e=t(26313),a=t(87501);r({target:"Reflect",stat:!0,sham:!a},{getPrototypeOf:function(u){return e(n(u))}})},93518:function(s,l,t){var r=t(14304),n=t(96499),e=t(37540),a=t(25001),o=t(69745),u=t(71349),i=t(26313);function v(f,c){var d=arguments.length<3?f:arguments[2],h,g;if(a(f)===d)return f[c];if(h=u.f(f,c),h)return o(h)?h.value:h.get===void 0?void 0:n(h.get,d);if(e(g=i(f)))return v(g,c,d)}r({target:"Reflect",stat:!0},{get:v})},57882:function(s,l,t){var r=t(14304);r({target:"Reflect",stat:!0},{has:function(e,a){return a in e}})},37796:function(s,l,t){var r=t(14304),n=t(25001),e=t(28174);r({target:"Reflect",stat:!0},{isExtensible:function(o){return n(o),e(o)}})},11563:function(s,l,t){var r=t(14304),n=t(16885);r({target:"Reflect",stat:!0},{ownKeys:n})},26159:function(s,l,t){var r=t(14304),n=t(38941),e=t(25001),a=t(27534);r({target:"Reflect",stat:!0,sham:!a},{preventExtensions:function(u){e(u);try{var i=n("Object","preventExtensions");return i&&i(u),!0}catch(v){return!1}}})},77487:function(s,l,t){var r=t(14304),n=t(25001),e=t(53408),a=t(15861);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(u,i){n(u),e(i);try{return a(u,i),!0}catch(v){return!1}}})},20962:function(s,l,t){var r=t(14304),n=t(96499),e=t(25001),a=t(37540),o=t(69745),u=t(72069),i=t(7831),v=t(71349),f=t(26313),c=t(18526);function d(g,p,y){var m=arguments.length<4?g:arguments[3],O=v.f(e(g),p),S,E,T;if(!O){if(a(E=f(g)))return d(E,p,y,m);O=c(0)}if(o(O)){if(O.writable===!1||!a(m))return!1;if(S=v.f(m,p)){if(S.get||S.set||S.writable===!1)return!1;S.value=y,i.f(m,p,S)}else i.f(m,p,c(0,y))}else{if(T=O.set,T===void 0)return!1;n(T,m,y)}return!0}var h=u(function(){var g=function(){},p=i.f(new g,"a",{configurable:!0});return Reflect.set(g.prototype,"a",1,p)!==!1});r({target:"Reflect",stat:!0,forced:h},{set:d})},6130:function(s,l,t){var r=t(14304),n=t(66009),e=t(78401);r({global:!0},{Reflect:{}}),e(n.Reflect,"Reflect",!0)},1354:function(s,l,t){var r=t(92986),n=t(66009),e=t(11286),a=t(13278),o=t(32345),u=t(90809),i=t(5406),v=t(83258).f,f=t(95307),c=t(11566),d=t(17361),h=t(54932),g=t(39807),p=t(2594),y=t(16142),m=t(72069),O=t(94879),S=t(82367).enforce,E=t(36167),T=t(18565),x=t(76769),I=t(85220),A=T("match"),C=n.RegExp,P=C.prototype,N=n.SyntaxError,$=e(P.exec),U=e("".charAt),F=e("".replace),D=e("".indexOf),L=e("".slice),b=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,K=/a/g,H=/a/g,Q=new C(K)!==K,X=g.MISSED_STICKY,st=g.UNSUPPORTED_Y,et=r&&(!Q||X||x||I||m(function(){return H[A]=!1,C(K)!==K||C(H)===H||String(C(K,"i"))!=="/a/i"})),lt=function(Ct){for(var at=Ct.length,vt=0,St="",Rt=!1,Tt;vt<=at;vt++){if(Tt=U(Ct,vt),Tt==="\\"){St+=Tt+U(Ct,++vt);continue}!Rt&&Tt==="."?St+="[\\s\\S]":(Tt==="["?Rt=!0:Tt==="]"&&(Rt=!1),St+=Tt)}return St},ht=function(Ct){for(var at=Ct.length,vt=0,St="",Rt=[],Tt=i(null),Nt=!1,Ht=!1,Wt=0,bt="",Pt;vt<=at;vt++){if(Pt=U(Ct,vt),Pt==="\\")Pt+=U(Ct,++vt);else if(Pt==="]")Nt=!1;else if(!Nt)switch(!0){case Pt==="[":Nt=!0;break;case Pt==="(":$(b,L(Ct,vt+1))&&(vt+=2,Ht=!0),St+=Pt,Wt++;continue;case(Pt===">"&&Ht):if(bt===""||O(Tt,bt))throw new N("Invalid capture group name");Tt[bt]=!0,Rt[Rt.length]=[bt,Wt],Ht=!1,bt="";continue}Ht?bt+=Pt:St+=Pt}return[St,Rt]};if(a("RegExp",et)){for(var gt=function(at,vt){var St=f(P,this),Rt=c(at),Tt=vt===void 0,Nt=[],Ht=at,Wt,bt,Pt,Vt,$t,Mt;if(!St&&Rt&&Tt&&at.constructor===gt)return at;if((Rt||f(P,at))&&(at=at.source,Tt&&(vt=h(Ht))),at=at===void 0?"":d(at),vt=vt===void 0?"":d(vt),Ht=at,x&&"dotAll"in K&&(bt=!!vt&&D(vt,"s")>-1,bt&&(vt=F(vt,/s/g,""))),Wt=vt,X&&"sticky"in K&&(Pt=!!vt&&D(vt,"y")>-1,Pt&&st&&(vt=F(vt,/y/g,""))),I&&(Vt=ht(at),at=Vt[0],Nt=Vt[1]),$t=o(C(at,vt),St?this:P,gt),(bt||Pt||Nt.length)&&(Mt=S($t),bt&&(Mt.dotAll=!0,Mt.raw=gt(lt(at),Wt)),Pt&&(Mt.sticky=!0),Nt.length&&(Mt.groups=Nt)),at!==Ht)try{u($t,"source",Ht===""?"(?:)":Ht)}catch(q){}return $t},Lt=v(C),Dt=0;Lt.length>Dt;)p(gt,C,Lt[Dt++]);P.constructor=gt,gt.prototype=P,y(n,"RegExp",gt,{constructor:!0})}E("RegExp")},47119:function(s,l,t){var r=t(92986),n=t(76769),e=t(14274),a=t(85500),o=t(82367).get,u=RegExp.prototype,i=TypeError;r&&n&&a(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if(e(this)==="RegExp")return!!o(this).dotAll;throw new i("Incompatible receiver, RegExp required")}}})},31145:function(s,l,t){var r=t(14304),n=t(44381);r({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},96773:function(s,l,t){var r=t(66009),n=t(92986),e=t(85500),a=t(29833),o=t(72069),u=r.RegExp,i=u.prototype,v=n&&o(function(){var f=!0;try{u(".","d")}catch(O){f=!1}var c={},d="",h=f?"dgimsy":"gimsy",g=function(O,S){Object.defineProperty(c,O,{get:function(){return d+=S,!0}})},p={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};f&&(p.hasIndices="d");for(var y in p)g(y,p[y]);var m=Object.getOwnPropertyDescriptor(i,"flags").get.call(c);return m!==h||d!==h});v&&e(i,"flags",{configurable:!0,get:a})},14371:function(s,l,t){var r=t(92986),n=t(39807).MISSED_STICKY,e=t(14274),a=t(85500),o=t(82367).get,u=RegExp.prototype,i=TypeError;r&&n&&a(u,"sticky",{configurable:!0,get:function(){if(this!==u){if(e(this)==="RegExp")return!!o(this).sticky;throw new i("Incompatible receiver, RegExp required")}}})},18180:function(s,l,t){t(31145);var r=t(14304),n=t(96499),e=t(23583),a=t(25001),o=t(17361),u=function(){var v=!1,f=/[ac]/;return f.exec=function(){return v=!0,/./.exec.apply(this,arguments)},f.test("abc")===!0&&v}(),i=/./.test;r({target:"RegExp",proto:!0,forced:!u},{test:function(v){var f=a(this),c=o(v),d=f.exec;if(!e(d))return n(i,f,c);var h=n(d,f,c);return h===null?!1:(a(h),!0)}})},83147:function(s,l,t){var r=t(86588).PROPER,n=t(16142),e=t(25001),a=t(17361),o=t(72069),u=t(54932),i="toString",v=RegExp.prototype,f=v[i],c=o(function(){return f.call({source:"a",flags:"b"})!=="/a/b"}),d=r&&f.name!==i;(c||d)&&n(v,i,function(){var g=e(this),p=a(g.source),y=a(u(g));return"/"+p+"/"+y},{unsafe:!0})},6583:function(s,l,t){var r=t(89378),n=t(34440);r("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},n)},86548:function(s,l,t){var r=t(14304),n=t(41754),e=t(94118);r({target:"Set",proto:!0,real:!0,forced:!e("difference")},{difference:n})},15282:function(s,l,t){var r=t(14304),n=t(72069),e=t(92292),a=t(94118),o=!a("intersection")||n(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});r({target:"Set",proto:!0,real:!0,forced:o},{intersection:e})},51275:function(s,l,t){var r=t(14304),n=t(47391),e=t(94118);r({target:"Set",proto:!0,real:!0,forced:!e("isDisjointFrom")},{isDisjointFrom:n})},91890:function(s,l,t){var r=t(14304),n=t(75492),e=t(94118);r({target:"Set",proto:!0,real:!0,forced:!e("isSubsetOf")},{isSubsetOf:n})},15089:function(s,l,t){var r=t(14304),n=t(1333),e=t(94118);r({target:"Set",proto:!0,real:!0,forced:!e("isSupersetOf")},{isSupersetOf:n})},75765:function(s,l,t){t(6583)},78134:function(s,l,t){var r=t(14304),n=t(64680),e=t(94118);r({target:"Set",proto:!0,real:!0,forced:!e("symmetricDifference")},{symmetricDifference:n})},56456:function(s,l,t){var r=t(14304),n=t(70402),e=t(94118);r({target:"Set",proto:!0,real:!0,forced:!e("union")},{union:n})},70641:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("anchor")},{anchor:function(o){return n(this,"a","name",o)}})},40735:function(s,l,t){var r=t(14304),n=t(11286),e=t(2068),a=t(12105),o=t(17361),u=t(72069),i=n("".charAt),v=u(function(){return"\u{20BB7}".at(-2)!=="\uD842"});r({target:"String",proto:!0,forced:v},{at:function(c){var d=o(e(this)),h=d.length,g=a(c),p=g>=0?g:h+g;return p<0||p>=h?void 0:i(d,p)}})},53892:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("big")},{big:function(){return n(this,"big","","")}})},95976:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("blink")},{blink:function(){return n(this,"blink","","")}})},399:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("bold")},{bold:function(){return n(this,"b","","")}})},8510:function(s,l,t){var r=t(14304),n=t(22149).codeAt;r({target:"String",proto:!0},{codePointAt:function(a){return n(this,a)}})},70159:function(s,l,t){var r=t(14304),n=t(77422),e=t(71349).f,a=t(45344),o=t(17361),u=t(92337),i=t(2068),v=t(8790),f=t(70457),c=n("".slice),d=Math.min,h=v("endsWith"),g=!f&&!h&&!!function(){var p=e(String.prototype,"endsWith");return p&&!p.writable}();r({target:"String",proto:!0,forced:!g&&!h},{endsWith:function(y){var m=o(i(this));u(y);var O=arguments.length>1?arguments[1]:void 0,S=m.length,E=O===void 0?S:d(a(O),S),T=o(y);return c(m,E-T.length,E)===T}})},72032:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("fixed")},{fixed:function(){return n(this,"tt","","")}})},49442:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("fontcolor")},{fontcolor:function(o){return n(this,"font","color",o)}})},16012:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("fontsize")},{fontsize:function(o){return n(this,"font","size",o)}})},93087:function(s,l,t){var r=t(14304),n=t(11286),e=t(4652),a=RangeError,o=String.fromCharCode,u=String.fromCodePoint,i=n([].join),v=!!u&&u.length!==1;r({target:"String",stat:!0,arity:1,forced:v},{fromCodePoint:function(c){for(var d=[],h=arguments.length,g=0,p;h>g;){if(p=+arguments[g++],e(p,1114111)!==p)throw new a(p+" is not a valid code point");d[g]=p<65536?o(p):o(((p-=65536)>>10)+55296,p%1024+56320)}return i(d,"")}})},26021:function(s,l,t){var r=t(14304),n=t(11286),e=t(92337),a=t(2068),o=t(17361),u=t(8790),i=n("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(f){return!!~i(o(a(this)),o(e(f)),arguments.length>1?arguments[1]:void 0)}})},93029:function(s,l,t){var r=t(14304),n=t(11286),e=t(2068),a=t(17361),o=n("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var i=a(e(this)),v=i.length,f=0;f=56320||++f>=v||(o(i,f)&64512)!==56320))return!1}return!0}})},9943:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("italics")},{italics:function(){return n(this,"i","","")}})},59158:function(s,l,t){var r=t(22149).charAt,n=t(17361),e=t(82367),a=t(10218),o=t(10659),u="String Iterator",i=e.set,v=e.getterFor(u);a(String,"String",function(f){i(this,{type:u,string:n(f),index:0})},function(){var c=v(this),d=c.string,h=c.index,g;return h>=d.length?o(void 0,!0):(g=r(d,h),c.index+=g.length,o(g,!1))})},33128:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("link")},{link:function(o){return n(this,"a","href",o)}})},18509:function(s,l,t){var r=t(14304),n=t(96499),e=t(77422),a=t(26820),o=t(10659),u=t(2068),i=t(45344),v=t(17361),f=t(25001),c=t(5683),d=t(14274),h=t(11566),g=t(54932),p=t(10512),y=t(16142),m=t(72069),O=t(18565),S=t(16887),E=t(24487),T=t(33064),x=t(82367),I=t(70457),A=O("matchAll"),C="RegExp String",P=C+" Iterator",N=x.set,$=x.getterFor(P),U=RegExp.prototype,F=TypeError,D=e("".indexOf),L=e("".matchAll),b=!!L&&!m(function(){L("a",/./)}),K=a(function(X,st,et,lt){N(this,{type:P,regexp:X,string:st,global:et,unicode:lt,done:!1})},C,function(){var X=$(this);if(X.done)return o(void 0,!0);var st=X.regexp,et=X.string,lt=T(st,et);return lt===null?(X.done=!0,o(void 0,!0)):X.global?(v(lt[0])===""&&(st.lastIndex=E(et,i(st.lastIndex),X.unicode)),o(lt,!1)):(X.done=!0,o(lt,!1))}),H=function(Q){var X=f(this),st=v(Q),et=S(X,RegExp),lt=v(g(X)),ht,gt,Lt;return ht=new et(et===RegExp?X.source:X,lt),gt=!!~D(lt,"g"),Lt=!!~D(lt,"u"),ht.lastIndex=i(X.lastIndex),new K(ht,st,gt,Lt)};r({target:"String",proto:!0,forced:b},{matchAll:function(X){var st=u(this),et,lt,ht,gt;if(c(X)){if(b)return L(st,X)}else{if(h(X)&&(et=v(u(g(X))),!~D(et,"g")))throw new F("`.matchAll` does not allow non-global regexes");if(b)return L(st,X);if(ht=p(X,A),ht===void 0&&I&&d(X)==="RegExp"&&(ht=H),ht)return n(ht,X,st)}return lt=v(st),gt=new RegExp(X,"g"),I?n(H,gt,lt):gt[A](lt)}}),I||A in U||y(U,A,H)},15599:function(s,l,t){var r=t(96499),n=t(63194),e=t(25001),a=t(5683),o=t(45344),u=t(17361),i=t(2068),v=t(10512),f=t(24487),c=t(33064);n("match",function(d,h,g){return[function(y){var m=i(this),O=a(y)?void 0:v(y,d);return O?r(O,y,m):new RegExp(y)[d](u(m))},function(p){var y=e(this),m=u(p),O=g(h,y,m);if(O.done)return O.value;if(!y.global)return c(y,m);var S=y.unicode;y.lastIndex=0;for(var E=[],T=0,x;(x=c(y,m))!==null;){var I=u(x[0]);E[T]=I,I===""&&(y.lastIndex=f(m,o(y.lastIndex),S)),T++}return T===0?null:E}]})},21579:function(s,l,t){var r=t(14304),n=t(61607).end,e=t(36945);r({target:"String",proto:!0,forced:e},{padEnd:function(o){return n(this,o,arguments.length>1?arguments[1]:void 0)}})},8854:function(s,l,t){var r=t(14304),n=t(61607).start,e=t(36945);r({target:"String",proto:!0,forced:e},{padStart:function(o){return n(this,o,arguments.length>1?arguments[1]:void 0)}})},57676:function(s,l,t){var r=t(14304),n=t(11286),e=t(36859),a=t(49671),o=t(17361),u=t(82628),i=n([].push),v=n([].join);r({target:"String",stat:!0},{raw:function(c){var d=e(a(c).raw),h=u(d);if(!h)return"";for(var g=arguments.length,p=[],y=0;;){if(i(p,o(d[y++])),y===h)return v(p,"");y$.length?-1:m($,U,K+L);return H<$.length&&(Q+=S($,H)),Q}})},96834:function(s,l,t){var r=t(66543),n=t(96499),e=t(11286),a=t(63194),o=t(72069),u=t(25001),i=t(23583),v=t(5683),f=t(12105),c=t(45344),d=t(17361),h=t(2068),g=t(24487),p=t(10512),y=t(38368),m=t(33064),O=t(18565),S=O("replace"),E=Math.max,T=Math.min,x=e([].concat),I=e([].push),A=e("".indexOf),C=e("".slice),P=function(F){return F===void 0?F:String(F)},N=function(){return"a".replace(/./,"$0")==="$0"}(),$=function(){return/./[S]?/./[S]("a","$0")==="":!1}(),U=!o(function(){var F=/./;return F.exec=function(){var D=[];return D.groups={a:"7"},D},"".replace(F,"$")!=="7"});a("replace",function(F,D,L){var b=$?"$":"$0";return[function(H,Q){var X=h(this),st=v(H)?void 0:p(H,S);return st?n(st,H,X,Q):n(D,d(X),H,Q)},function(K,H){var Q=u(this),X=d(K);if(typeof H=="string"&&A(H,b)===-1&&A(H,"$<")===-1){var st=L(D,Q,X,H);if(st.done)return st.value}var et=i(H);et||(H=d(H));var lt=Q.global,ht;lt&&(ht=Q.unicode,Q.lastIndex=0);for(var gt=[],Lt;Lt=m(Q,X),!(Lt===null||(I(gt,Lt),!lt));){var Dt=d(Lt[0]);Dt===""&&(Q.lastIndex=g(X,c(Q.lastIndex),ht))}for(var Ct="",at=0,vt=0;vt=at&&(Ct+=C(X,at,Rt)+Nt,at=Rt+St.length)}return Ct+C(X,at)}]},!U||!N||$)},74980:function(s,l,t){var r=t(96499),n=t(63194),e=t(25001),a=t(5683),o=t(2068),u=t(13944),i=t(17361),v=t(10512),f=t(33064);n("search",function(c,d,h){return[function(p){var y=o(this),m=a(p)?void 0:v(p,c);return m?r(m,p,y):new RegExp(p)[c](i(y))},function(g){var p=e(this),y=i(g),m=h(d,p,y);if(m.done)return m.value;var O=p.lastIndex;u(O,0)||(p.lastIndex=0);var S=f(p,y);return u(p.lastIndex,O)||(p.lastIndex=O),S===null?-1:S.index}]})},95625:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("small")},{small:function(){return n(this,"small","","")}})},390:function(s,l,t){var r=t(96499),n=t(11286),e=t(63194),a=t(25001),o=t(5683),u=t(2068),i=t(16887),v=t(24487),f=t(45344),c=t(17361),d=t(10512),h=t(33064),g=t(39807),p=t(72069),y=g.UNSUPPORTED_Y,m=4294967295,O=Math.min,S=n([].push),E=n("".slice),T=!p(function(){var I=/(?:)/,A=I.exec;I.exec=function(){return A.apply(this,arguments)};var C="ab".split(I);return C.length!==2||C[0]!=="a"||C[1]!=="b"}),x="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;e("split",function(I,A,C){var P="0".split(void 0,0).length?function(N,$){return N===void 0&&$===0?[]:r(A,this,N,$)}:A;return[function($,U){var F=u(this),D=o($)?void 0:d($,I);return D?r(D,$,F,U):r(P,c(F),$,U)},function(N,$){var U=a(this),F=c(N);if(!x){var D=C(P,U,F,$,P!==A);if(D.done)return D.value}var L=i(U,RegExp),b=U.unicode,K=(U.ignoreCase?"i":"")+(U.multiline?"m":"")+(U.unicode?"u":"")+(y?"g":"y"),H=new L(y?"^(?:"+U.source+")":U,K),Q=$===void 0?m:$>>>0;if(Q===0)return[];if(F.length===0)return h(H,F)===null?[F]:[];for(var X=0,st=0,et=[];st1?arguments[1]:void 0,m.length)),S=o(y);return c(m,O,O+S.length)===S}})},90614:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("strike")},{strike:function(){return n(this,"strike","","")}})},60120:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("sub")},{sub:function(){return n(this,"sub","","")}})},21293:function(s,l,t){var r=t(14304),n=t(11286),e=t(2068),a=t(12105),o=t(17361),u=n("".slice),i=Math.max,v=Math.min,f=!"".substr||"ab".substr(-1)!=="b";r({target:"String",proto:!0,forced:f},{substr:function(d,h){var g=o(e(this)),p=g.length,y=a(d),m,O;return y===1/0&&(y=0),y<0&&(y=i(p+y,0)),m=h===void 0?p:a(h),m<=0||m===1/0?"":(O=v(y+m,p),y>=O?"":u(g,y,O))}})},75826:function(s,l,t){var r=t(14304),n=t(68422),e=t(5287);r({target:"String",proto:!0,forced:e("sup")},{sup:function(){return n(this,"sup","","")}})},18184:function(s,l,t){var r=t(14304),n=t(96499),e=t(11286),a=t(2068),o=t(17361),u=t(72069),i=Array,v=e("".charAt),f=e("".charCodeAt),c=e([].join),d="".toWellFormed,h="\uFFFD",g=d&&u(function(){return n(d,1)!=="1"});r({target:"String",proto:!0,forced:g},{toWellFormed:function(){var y=o(a(this));if(g)return n(d,y);for(var m=y.length,O=i(m),S=0;S=56320||S+1>=m||(f(y,S+1)&64512)!==56320?O[S]=h:(O[S]=v(y,S),O[++S]=v(y,S))}return c(O,"")}})},19680:function(s,l,t){t(23283);var r=t(14304),n=t(75176);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==n},{trimEnd:n})},12272:function(s,l,t){var r=t(14304),n=t(83481);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==n},{trimLeft:n})},23283:function(s,l,t){var r=t(14304),n=t(75176);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==n},{trimRight:n})},4193:function(s,l,t){t(12272);var r=t(14304),n=t(83481);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==n},{trimStart:n})},75012:function(s,l,t){var r=t(14304),n=t(85900).trim,e=t(33328);r({target:"String",proto:!0,forced:e("trim")},{trim:function(){return n(this)}})},43606:function(s,l,t){var r=t(83749);r("asyncIterator")},51767:function(s,l,t){var r=t(14304),n=t(66009),e=t(96499),a=t(11286),o=t(70457),u=t(92986),i=t(39729),v=t(72069),f=t(94879),c=t(95307),d=t(25001),h=t(36859),g=t(50035),p=t(17361),y=t(18526),m=t(5406),O=t(18350),S=t(83258),E=t(92880),T=t(24943),x=t(71349),I=t(7831),A=t(61963),C=t(79591),P=t(16142),N=t(85500),$=t(96731),U=t(44869),F=t(19423),D=t(36374),L=t(18565),b=t(56529),K=t(83749),H=t(60796),Q=t(78401),X=t(82367),st=t(66655).forEach,et=U("hidden"),lt="Symbol",ht="prototype",gt=X.set,Lt=X.getterFor(lt),Dt=Object[ht],Ct=n.Symbol,at=Ct&&Ct[ht],vt=n.RangeError,St=n.TypeError,Rt=n.QObject,Tt=x.f,Nt=I.f,Ht=E.f,Wt=C.f,bt=a([].push),Pt=$("symbols"),Vt=$("op-symbols"),$t=$("wks"),Mt=!Rt||!Rt[ht]||!Rt[ht].findChild,q=function(k,tt,j){var z=Tt(Dt,tt);z&&delete Dt[tt],Nt(k,tt,j),z&&k!==Dt&&Nt(Dt,tt,z)},ut=u&&v(function(){return m(Nt({},"a",{get:function(){return Nt(this,"a",{value:7}).a}})).a!==7})?q:Nt,J=function(k,tt){var j=Pt[k]=m(at);return gt(j,{type:lt,tag:k,description:tt}),u||(j.description=tt),j},yt=function(tt,j,z){tt===Dt&&yt(Vt,j,z),d(tt);var G=g(j);return d(z),f(Pt,G)?(z.enumerable?(f(tt,et)&&tt[et][G]&&(tt[et][G]=!1),z=m(z,{enumerable:y(0,!1)})):(f(tt,et)||Nt(tt,et,y(1,m(null))),tt[et][G]=!0),ut(tt,G,z)):Nt(tt,G,z)},pt=function(tt,j){d(tt);var z=h(j),G=O(z).concat(W(z));return st(G,function(ot){(!u||e(ft,z,ot))&&yt(tt,ot,z[ot])}),tt},ct=function(tt,j){return j===void 0?m(tt):pt(m(tt),j)},ft=function(tt){var j=g(tt),z=e(Wt,this,j);return this===Dt&&f(Pt,j)&&!f(Vt,j)?!1:z||!f(this,j)||!f(Pt,j)||f(this,et)&&this[et][j]?z:!0},zt=function(tt,j){var z=h(tt),G=g(j);if(!(z===Dt&&f(Pt,G)&&!f(Vt,G))){var ot=Tt(z,G);return ot&&f(Pt,G)&&!(f(z,et)&&z[et][G])&&(ot.enumerable=!0),ot}},Yt=function(tt){var j=Ht(h(tt)),z=[];return st(j,function(G){!f(Pt,G)&&!f(F,G)&&bt(z,G)}),z},W=function(k){var tt=k===Dt,j=Ht(tt?Vt:h(k)),z=[];return st(j,function(G){f(Pt,G)&&(!tt||f(Dt,G))&&bt(z,Pt[G])}),z};i||(Ct=function(){if(c(at,this))throw new St("Symbol is not a constructor");var tt=!arguments.length||arguments[0]===void 0?void 0:p(arguments[0]),j=D(tt),z=function(G){var ot=this===void 0?n:this;ot===Dt&&e(z,Vt,G),f(ot,et)&&f(ot[et],j)&&(ot[et][j]=!1);var mt=y(1,G);try{ut(ot,j,mt)}catch(At){if(!(At instanceof vt))throw At;q(ot,j,mt)}};return u&&Mt&&ut(Dt,j,{configurable:!0,set:z}),J(j,tt)},at=Ct[ht],P(at,"toString",function(){return Lt(this).tag}),P(Ct,"withoutSetter",function(k){return J(D(k),k)}),C.f=ft,I.f=yt,A.f=pt,x.f=zt,S.f=E.f=Yt,T.f=W,b.f=function(k){return J(L(k),k)},u&&(N(at,"description",{configurable:!0,get:function(){return Lt(this).description}}),o||P(Dt,"propertyIsEnumerable",ft,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!i,sham:!i},{Symbol:Ct}),st(O($t),function(k){K(k)}),r({target:lt,stat:!0,forced:!i},{useSetter:function(){Mt=!0},useSimple:function(){Mt=!1}}),r({target:"Object",stat:!0,forced:!i,sham:!u},{create:ct,defineProperty:yt,defineProperties:pt,getOwnPropertyDescriptor:zt}),r({target:"Object",stat:!0,forced:!i},{getOwnPropertyNames:Yt}),H(),Q(Ct,lt),F[et]=!0},43657:function(s,l,t){var r=t(14304),n=t(92986),e=t(66009),a=t(11286),o=t(94879),u=t(23583),i=t(95307),v=t(17361),f=t(85500),c=t(93706),d=e.Symbol,h=d&&d.prototype;if(n&&u(d)&&(!("description"in h)||d().description!==void 0)){var g={},p=function(){var I=arguments.length<1||arguments[0]===void 0?void 0:v(arguments[0]),A=i(h,this)?new d(I):I===void 0?d():d(I);return I===""&&(g[A]=!0),A};c(p,d),p.prototype=h,h.constructor=p;var y=String(d("description detection"))==="Symbol(description detection)",m=a(h.valueOf),O=a(h.toString),S=/^Symbol\((.*)\)[^)]+$/,E=a("".replace),T=a("".slice);f(h,"description",{configurable:!0,get:function(){var I=m(this);if(o(g,I))return"";var A=O(I),C=y?T(A,7,-1):E(A,S,"$1");return C===""?void 0:C}}),r({global:!0,constructor:!0,forced:!0},{Symbol:p})}},20872:function(s,l,t){var r=t(14304),n=t(38941),e=t(94879),a=t(17361),o=t(96731),u=t(61190),i=o("string-to-symbol-registry"),v=o("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(f){var c=a(f);if(e(i,c))return i[c];var d=n("Symbol")(c);return i[c]=d,v[d]=c,d}})},15855:function(s,l,t){var r=t(83749);r("hasInstance")},42026:function(s,l,t){var r=t(83749);r("isConcatSpreadable")},33257:function(s,l,t){var r=t(83749);r("iterator")},40949:function(s,l,t){t(51767),t(20872),t(94762),t(71332),t(45223)},94762:function(s,l,t){var r=t(14304),n=t(94879),e=t(491),a=t(82453),o=t(96731),u=t(61190),i=o("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(f){if(!e(f))throw new TypeError(a(f)+" is not a symbol");if(n(i,f))return i[f]}})},88344:function(s,l,t){var r=t(83749);r("matchAll")},59414:function(s,l,t){var r=t(83749);r("match")},92579:function(s,l,t){var r=t(83749);r("replace")},94655:function(s,l,t){var r=t(83749);r("search")},8565:function(s,l,t){var r=t(83749);r("species")},60843:function(s,l,t){var r=t(83749);r("split")},65842:function(s,l,t){var r=t(83749),n=t(60796);r("toPrimitive"),n()},51595:function(s,l,t){var r=t(38941),n=t(83749),e=t(78401);n("toStringTag"),e(r("Symbol"),"Symbol")},54908:function(s,l,t){var r=t(83749);r("unscopables")},71998:function(s,l,t){var r=t(88037),n=t(82628),e=t(12105),a=r.aTypedArray,o=r.exportTypedArrayMethod;o("at",function(i){var v=a(this),f=n(v),c=e(i),d=c>=0?c:f+c;return d<0||d>=f?void 0:v[d]})},6116:function(s,l,t){var r=t(11286),n=t(88037),e=t(81499),a=r(e),o=n.aTypedArray,u=n.exportTypedArrayMethod;u("copyWithin",function(v,f){return a(o(this),v,f,arguments.length>2?arguments[2]:void 0)})},33032:function(s,l,t){var r=t(88037),n=t(66655).every,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("every",function(u){return n(e(this),u,arguments.length>1?arguments[1]:void 0)})},80962:function(s,l,t){var r=t(88037),n=t(43011),e=t(11344),a=t(9205),o=t(96499),u=t(11286),i=t(72069),v=r.aTypedArray,f=r.exportTypedArrayMethod,c=u("".slice),d=i(function(){var h=0;return new Int8Array(2).fill({valueOf:function(){return h++}}),h!==1});f("fill",function(g){var p=arguments.length;v(this);var y=c(a(this),0,3)==="Big"?e(g):+g;return o(n,this,y,p>1?arguments[1]:void 0,p>2?arguments[2]:void 0)},d)},49381:function(s,l,t){var r=t(88037),n=t(66655).filter,e=t(3795),a=r.aTypedArray,o=r.exportTypedArrayMethod;o("filter",function(i){var v=n(a(this),i,arguments.length>1?arguments[1]:void 0);return e(this,v)})},65961:function(s,l,t){var r=t(88037),n=t(66655).findIndex,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("findIndex",function(u){return n(e(this),u,arguments.length>1?arguments[1]:void 0)})},16028:function(s,l,t){var r=t(88037),n=t(73849).findLastIndex,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLastIndex",function(u){return n(e(this),u,arguments.length>1?arguments[1]:void 0)})},94153:function(s,l,t){var r=t(88037),n=t(73849).findLast,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("findLast",function(u){return n(e(this),u,arguments.length>1?arguments[1]:void 0)})},38344:function(s,l,t){var r=t(88037),n=t(66655).find,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("find",function(u){return n(e(this),u,arguments.length>1?arguments[1]:void 0)})},25560:function(s,l,t){var r=t(80357);r("Float32",function(n){return function(a,o,u){return n(this,a,o,u)}})},22571:function(s,l,t){var r=t(80357);r("Float64",function(n){return function(a,o,u){return n(this,a,o,u)}})},20656:function(s,l,t){var r=t(88037),n=t(66655).forEach,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("forEach",function(u){n(e(this),u,arguments.length>1?arguments[1]:void 0)})},17063:function(s,l,t){var r=t(46868),n=t(88037).exportTypedArrayStaticMethod,e=t(66169);n("from",e,r)},21774:function(s,l,t){var r=t(88037),n=t(94319).includes,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("includes",function(u){return n(e(this),u,arguments.length>1?arguments[1]:void 0)})},51761:function(s,l,t){var r=t(88037),n=t(94319).indexOf,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("indexOf",function(u){return n(e(this),u,arguments.length>1?arguments[1]:void 0)})},36849:function(s,l,t){var r=t(80357);r("Int16",function(n){return function(a,o,u){return n(this,a,o,u)}})},49191:function(s,l,t){var r=t(80357);r("Int32",function(n){return function(a,o,u){return n(this,a,o,u)}})},40704:function(s,l,t){var r=t(80357);r("Int8",function(n){return function(a,o,u){return n(this,a,o,u)}})},12317:function(s,l,t){var r=t(66009),n=t(72069),e=t(11286),a=t(88037),o=t(35054),u=t(18565),i=u("iterator"),v=r.Uint8Array,f=e(o.values),c=e(o.keys),d=e(o.entries),h=a.aTypedArray,g=a.exportTypedArrayMethod,p=v&&v.prototype,y=!n(function(){p[i].call([1])}),m=!!p&&p.values&&p[i]===p.values&&p.values.name==="values",O=function(){return f(h(this))};g("entries",function(){return d(h(this))},y),g("keys",function(){return c(h(this))},y),g("values",O,y||!m,{name:"values"}),g(i,O,y||!m,{name:"values"})},19711:function(s,l,t){var r=t(88037),n=t(11286),e=r.aTypedArray,a=r.exportTypedArrayMethod,o=n([].join);a("join",function(i){return o(e(this),i)})},41034:function(s,l,t){var r=t(88037),n=t(66543),e=t(58465),a=r.aTypedArray,o=r.exportTypedArrayMethod;o("lastIndexOf",function(i){var v=arguments.length;return n(e,a(this),v>1?[i,arguments[1]]:[i])})},13313:function(s,l,t){var r=t(88037),n=t(66655).map,e=t(21822),a=r.aTypedArray,o=r.exportTypedArrayMethod;o("map",function(i){return n(a(this),i,arguments.length>1?arguments[1]:void 0,function(v,f){return new(e(v))(f)})})},44698:function(s,l,t){var r=t(88037),n=t(46868),e=r.aTypedArrayConstructor,a=r.exportTypedArrayStaticMethod;a("of",function(){for(var u=0,i=arguments.length,v=new(e(this))(i);i>u;)v[u]=arguments[u++];return v},n)},66178:function(s,l,t){var r=t(88037),n=t(97264).right,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduceRight",function(u){var i=arguments.length;return n(e(this),u,i,i>1?arguments[1]:void 0)})},7369:function(s,l,t){var r=t(88037),n=t(97264).left,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("reduce",function(u){var i=arguments.length;return n(e(this),u,i,i>1?arguments[1]:void 0)})},67961:function(s,l,t){var r=t(88037),n=r.aTypedArray,e=r.exportTypedArrayMethod,a=Math.floor;e("reverse",function(){for(var u=this,i=n(u).length,v=a(i/2),f=0,c;f1?arguments[1]:void 0,1),E=u(O);if(p)return n(d,this,E,S);var T=this.length,x=a(E),I=0;if(x+S>T)throw new v("Wrong length");for(;Ig;)y[g]=d[g++];return y},i)},9711:function(s,l,t){var r=t(88037),n=t(66655).some,e=r.aTypedArray,a=r.exportTypedArrayMethod;a("some",function(u){return n(e(this),u,arguments.length>1?arguments[1]:void 0)})},3923:function(s,l,t){var r=t(66009),n=t(77422),e=t(72069),a=t(85156),o=t(13270),u=t(88037),i=t(54040),v=t(87216),f=t(73126),c=t(68674),d=u.aTypedArray,h=u.exportTypedArrayMethod,g=r.Uint16Array,p=g&&n(g.prototype.sort),y=!!p&&!(e(function(){p(new g(2),null)})&&e(function(){p(new g(2),{})})),m=!!p&&!e(function(){if(f)return f<74;if(i)return i<67;if(v)return!0;if(c)return c<602;var S=new g(516),E=Array(516),T,x;for(T=0;T<516;T++)x=T%4,S[T]=515-T,E[T]=T-2*x+3;for(p(S,function(I,A){return(I/4|0)-(A/4|0)}),T=0;T<516;T++)if(S[T]!==E[T])return!0}),O=function(S){return function(E,T){return S!==void 0?+S(E,T)||0:T!==T?-1:E!==E?1:E===0&&T===0?1/E>0&&1/T<0?1:-1:E>T}};h("sort",function(E){return E!==void 0&&a(E),m?p(this,E):o(d(this),O(E))},!m||y)},59728:function(s,l,t){var r=t(88037),n=t(45344),e=t(4652),a=t(21822),o=r.aTypedArray,u=r.exportTypedArrayMethod;u("subarray",function(v,f){var c=o(this),d=c.length,h=e(v,d),g=a(c);return new g(c.buffer,c.byteOffset+h*c.BYTES_PER_ELEMENT,n((f===void 0?d:e(f,d))-h))})},85227:function(s,l,t){var r=t(66009),n=t(66543),e=t(88037),a=t(72069),o=t(22806),u=r.Int8Array,i=e.aTypedArray,v=e.exportTypedArrayMethod,f=[].toLocaleString,c=!!u&&a(function(){f.call(new u(1))}),d=a(function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()})||!a(function(){u.prototype.toLocaleString.call([1,2])});v("toLocaleString",function(){return n(f,c?o(i(this)):i(this),o(arguments))},d)},56933:function(s,l,t){var r=t(61638),n=t(88037),e=n.aTypedArray,a=n.exportTypedArrayMethod,o=n.getTypedArrayConstructor;a("toReversed",function(){return r(e(this),o(this))})},91490:function(s,l,t){var r=t(88037),n=t(11286),e=t(85156),a=t(5220),o=r.aTypedArray,u=r.getTypedArrayConstructor,i=r.exportTypedArrayMethod,v=n(r.TypedArrayPrototype.sort);i("toSorted",function(c){c!==void 0&&e(c);var d=o(this),h=a(u(d),d);return v(h,c)})},61766:function(s,l,t){var r=t(88037).exportTypedArrayMethod,n=t(72069),e=t(66009),a=t(11286),o=e.Uint8Array,u=o&&o.prototype||{},i=[].toString,v=a([].join);n(function(){i.call({})})&&(i=function(){return v(this)});var f=u.toString!==i;r("toString",i,f)},44884:function(s,l,t){var r=t(80357);r("Uint16",function(n){return function(a,o,u){return n(this,a,o,u)}})},48658:function(s,l,t){var r=t(80357);r("Uint32",function(n){return function(a,o,u){return n(this,a,o,u)}})},81083:function(s,l,t){var r=t(80357);r("Uint8",function(n){return function(a,o,u){return n(this,a,o,u)}})},27428:function(s,l,t){var r=t(80357);r("Uint8",function(n){return function(a,o,u){return n(this,a,o,u)}},!0)},85143:function(s,l,t){var r=t(72302),n=t(88037),e=t(77129),a=t(12105),o=t(11344),u=n.aTypedArray,i=n.getTypedArrayConstructor,v=n.exportTypedArrayMethod,f=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(c){return c===8}}();v("with",function(c,d){var h=u(this),g=a(c),p=e(h)?o(d):+d;return r(h,i(h),g,p)},!f)},47005:function(s,l,t){var r=t(14304),n=t(11286),e=t(17361),a=String.fromCharCode,o=n("".charAt),u=n(/./.exec),i=n("".slice),v=/^[\da-f]{2}$/i,f=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(d){for(var h=e(d),g="",p=h.length,y=0,m,O;y>(-2*F&6)));return $}})},60869:function(s,l,t){var r=t(14304),n=t(66009),e=t(38941),a=t(11286),o=t(96499),u=t(72069),i=t(17361),v=t(95486),f=t(6210).i2c,c=e("btoa"),d=a("".charAt),h=a("".charCodeAt),g=!!c&&!u(function(){return c("hi")!=="aGk="}),p=g&&!u(function(){c()}),y=g&&u(function(){return c(null)!=="bnVsbA=="}),m=g&&c.length!==1;r({global:!0,bind:!0,enumerable:!0,forced:!g||p||y||m},{btoa:function(S){if(v(arguments.length,1),g)return o(c,n,i(S));for(var E=i(S),T="",x=0,I=f,A,C;d(E,x)||(I="=",x%1);){if(C=h(E,x+=.75),C>255)throw new(e("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");A=A<<8|C,T+=d(I,63&A>>8-x%1*8)}return T}})},66722:function(s,l,t){var r=t(14304),n=t(66009),e=t(23115).clear;r({global:!0,bind:!0,enumerable:!0,forced:n.clearImmediate!==e},{clearImmediate:e})},50338:function(s,l,t){var r=t(66009),n=t(93014),e=t(39882),a=t(13349),o=t(90809),u=function(v){if(v&&v.forEach!==a)try{o(v,"forEach",a)}catch(f){v.forEach=a}};for(var i in n)n[i]&&u(r[i]&&r[i].prototype);u(e)},53059:function(s,l,t){var r=t(66009),n=t(93014),e=t(39882),a=t(35054),o=t(90809),u=t(78401),i=t(18565),v=i("iterator"),f=a.values,c=function(h,g){if(h){if(h[v]!==f)try{o(h,v,f)}catch(y){h[v]=f}if(u(h,g,!0),n[g]){for(var p in a)if(h[p]!==a[p])try{o(h,p,a[p])}catch(y){h[p]=a[p]}}}};for(var d in n)c(r[d]&&r[d].prototype,d);c(e,"DOMTokenList")},5805:function(s,l,t){var r=t(14304),n=t(18096),e=t(38941),a=t(72069),o=t(5406),u=t(18526),i=t(7831).f,v=t(16142),f=t(85500),c=t(94879),d=t(12833),h=t(25001),g=t(58434),p=t(15453),y=t(74408),m=t(40851),O=t(82367),S=t(92986),E=t(70457),T="DOMException",x="DATA_CLONE_ERR",I=e("Error"),A=e(T)||function(){try{var at=e("MessageChannel")||n("worker_threads").MessageChannel;new at().port1.postMessage(new WeakMap)}catch(vt){if(vt.name===x&&vt.code===25)return vt.constructor}}(),C=A&&A.prototype,P=I.prototype,N=O.set,$=O.getterFor(T),U="stack"in new I(T),F=function(at){return c(y,at)&&y[at].m?y[at].c:0},D=function(){d(this,L);var vt=arguments.length,St=p(vt<1?void 0:arguments[0]),Rt=p(vt<2?void 0:arguments[1],"Error"),Tt=F(Rt);if(N(this,{type:T,name:Rt,message:St,code:Tt}),S||(this.name=Rt,this.message=St,this.code=Tt),U){var Nt=new I(St);Nt.name=T,i(this,"stack",u(1,m(Nt.stack,1)))}},L=D.prototype=o(P),b=function(at){return{enumerable:!0,configurable:!0,get:at}},K=function(at){return b(function(){return $(this)[at]})};S&&(f(L,"code",K("code")),f(L,"message",K("message")),f(L,"name",K("name"))),i(L,"constructor",u(1,D));var H=a(function(){return!(new A instanceof I)}),Q=H||a(function(){return P.toString!==g||String(new A(1,2))!=="2: 1"}),X=H||a(function(){return new A(1,"DataCloneError").code!==25}),st=H||A[x]!==25||C[x]!==25,et=E?Q||X||st:H;r({global:!0,constructor:!0,forced:et},{DOMException:et?D:A});var lt=e(T),ht=lt.prototype;Q&&(E||A===lt)&&v(ht,"toString",g),X&&S&&A===lt&&f(ht,"code",b(function(){return F(h(this).name)}));for(var gt in y)if(c(y,gt)){var Lt=y[gt],Dt=Lt.s,Ct=u(6,Lt.c);c(lt,Dt)||i(lt,Dt,Ct),c(ht,Dt)||i(ht,Dt,Ct)}},50685:function(s,l,t){var r=t(14304),n=t(66009),e=t(38941),a=t(18526),o=t(7831).f,u=t(94879),i=t(12833),v=t(32345),f=t(15453),c=t(74408),d=t(40851),h=t(92986),g=t(70457),p="DOMException",y=e("Error"),m=e(p),O=function(){i(this,S);var D=arguments.length,L=f(D<1?void 0:arguments[0]),b=f(D<2?void 0:arguments[1],"Error"),K=new m(L,b),H=new y(L);return H.name=p,o(K,"stack",a(1,d(H.stack,1))),v(K,this,O),K},S=O.prototype=m.prototype,E="stack"in new y(p),T="stack"in new m(1,2),x=m&&h&&Object.getOwnPropertyDescriptor(n,p),I=!!x&&!(x.writable&&x.configurable),A=E&&!I&&!T;r({global:!0,constructor:!0,forced:g||A},{DOMException:A?O:m});var C=e(p),P=C.prototype;if(P.constructor!==C){g||o(P,"constructor",a(1,C));for(var N in c)if(u(c,N)){var $=c[N],U=$.s;u(C,U)||o(C,U,a(6,$.c))}}},70649:function(s,l,t){var r=t(38941),n=t(78401),e="DOMException";n(r(e),e)},39842:function(s,l,t){t(66722),t(8235)},82872:function(s,l,t){var r=t(14304),n=t(66009),e=t(9709),a=t(85156),o=t(95486),u=t(72069),i=t(92986),v=u(function(){return i&&Object.getOwnPropertyDescriptor(n,"queueMicrotask").value.length!==1});r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:v},{queueMicrotask:function(c){o(arguments.length,1),e(a(c))}})},91401:function(s,l,t){var r=t(14304),n=t(66009),e=t(85500),a=t(92986),o=TypeError,u=Object.defineProperty,i=n.self!==n;try{if(a){var v=Object.getOwnPropertyDescriptor(n,"self");(i||!v||!v.get||!v.enumerable)&&e(n,"self",{get:function(){return n},set:function(c){if(this!==n)throw new o("Illegal invocation");u(n,"self",{value:c,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:i},{self:n})}catch(f){}},8235:function(s,l,t){var r=t(14304),n=t(66009),e=t(23115).set,a=t(9934),o=n.setImmediate?a(e,!1):e;r({global:!0,bind:!0,enumerable:!0,forced:n.setImmediate!==o},{setImmediate:o})},63981:function(s,l,t){var r=t(14304),n=t(66009),e=t(9934),a=e(n.setInterval,!0);r({global:!0,bind:!0,forced:n.setInterval!==a},{setInterval:a})},23913:function(s,l,t){var r=t(14304),n=t(66009),e=t(9934),a=e(n.setTimeout,!0);r({global:!0,bind:!0,forced:n.setTimeout!==a},{setTimeout:a})},92904:function(s,l,t){var r=t(70457),n=t(14304),e=t(66009),a=t(38941),o=t(11286),u=t(72069),i=t(36374),v=t(23583),f=t(11051),c=t(5683),d=t(37540),h=t(491),g=t(55902),p=t(25001),y=t(9205),m=t(94879),O=t(84082),S=t(90809),E=t(82628),T=t(95486),x=t(54932),I=t(1774),A=t(172),C=t(35051),P=t(63741),N=t(16929),$=t(99050),U=e.Object,F=e.Array,D=e.Date,L=e.Error,b=e.TypeError,K=e.PerformanceMark,H=a("DOMException"),Q=I.Map,X=I.has,st=I.get,et=I.set,lt=A.Set,ht=A.add,gt=A.has,Lt=a("Object","keys"),Dt=o([].push),Ct=o((!0).valueOf),at=o(1 .valueOf),vt=o("".valueOf),St=o(D.prototype.getTime),Rt=i("structuredClone"),Tt="DataCloneError",Nt="Transferring",Ht=function(W){return!u(function(){var k=new e.Set([7]),tt=W(k),j=W(U(7));return tt===k||!tt.has(7)||!d(j)||+j!=7})&&W},Wt=function(W,k){return!u(function(){var tt=new k,j=W({a:tt,b:tt});return!(j&&j.a===j.b&&j.a instanceof k&&j.a.stack===tt.stack)})},bt=function(W){return!u(function(){var k=W(new e.AggregateError([1],Rt,{cause:3}));return k.name!=="AggregateError"||k.errors[0]!==1||k.message!==Rt||k.cause!==3})},Pt=e.structuredClone,Vt=r||!Wt(Pt,L)||!Wt(Pt,H)||!bt(Pt),$t=!Pt&&Ht(function(W){return new K(Rt,{detail:W}).detail}),Mt=Ht(Pt)||$t,q=function(W){throw new H("Uncloneable type: "+W,Tt)},ut=function(W,k){throw new H((k||"Cloning")+" of "+W+" cannot be properly polyfilled in this engine",Tt)},J=function(W,k){return Mt||ut(k),Mt(W)},yt=function(){var W;try{W=new e.DataTransfer}catch(k){try{W=new e.ClipboardEvent("").clipboardData}catch(tt){}}return W&&W.items&&W.files?W:null},pt=function(W,k,tt){if(X(k,W))return st(k,W);var j=tt||y(W),z,G,ot,mt,At,Bt;if(j==="SharedArrayBuffer")Mt?z=Mt(W):z=W;else{var jt=e.DataView;!jt&&!v(W.slice)&&ut("ArrayBuffer");try{if(v(W.slice)&&!W.resizable)z=W.slice(0);else for(G=W.byteLength,ot=("maxByteLength"in W)?{maxByteLength:W.maxByteLength}:void 0,z=new ArrayBuffer(G,ot),mt=new jt(W),At=new jt(z),Bt=0;Bt1&&!c(arguments[1])?p(arguments[1]):void 0,j=tt?tt.transfer:void 0,z,G;j!==void 0&&(z=new Q,G=zt(j,z));var ot=ft(k,z);return G&&Yt(G),ot}})},28381:function(s,l,t){t(63981),t(23913)},98812:function(s,l,t){t(35054);var r=t(14304),n=t(66009),e=t(28167),a=t(96499),o=t(11286),u=t(92986),i=t(91918),v=t(16142),f=t(85500),c=t(2725),d=t(78401),h=t(26820),g=t(82367),p=t(12833),y=t(23583),m=t(94879),O=t(45526),S=t(9205),E=t(25001),T=t(37540),x=t(17361),I=t(5406),A=t(18526),C=t(90619),P=t(81077),N=t(10659),$=t(95486),U=t(18565),F=t(13270),D=U("iterator"),L="URLSearchParams",b=L+"Iterator",K=g.set,H=g.getterFor(L),Q=g.getterFor(b),X=e("fetch"),st=e("Request"),et=e("Headers"),lt=st&&st.prototype,ht=et&&et.prototype,gt=n.RegExp,Lt=n.TypeError,Dt=n.decodeURIComponent,Ct=n.encodeURIComponent,at=o("".charAt),vt=o([].join),St=o([].push),Rt=o("".replace),Tt=o([].shift),Nt=o([].splice),Ht=o("".split),Wt=o("".slice),bt=/\+/g,Pt=Array(4),Vt=function(j){return Pt[j-1]||(Pt[j-1]=gt("((?:%[\\da-f]{2}){"+j+"})","gi"))},$t=function(j){try{return Dt(j)}catch(z){return j}},Mt=function(j){var z=Rt(j,bt," "),G=4;try{return Dt(z)}catch(ot){for(;G;)z=Rt(z,Vt(G--),$t);return z}},q=/[!'()~]|%20/g,ut={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},J=function(j){return ut[j]},yt=function(j){return Rt(Ct(j),q,J)},pt=h(function(z,G){K(this,{type:b,target:H(z).entries,index:0,kind:G})},L,function(){var z=Q(this),G=z.target,ot=z.index++;if(!G||ot>=G.length)return z.target=void 0,N(void 0,!0);var mt=G[ot];switch(z.kind){case"keys":return N(mt.key,!1);case"values":return N(mt.value,!1)}return N([mt.key,mt.value],!1)},!0),ct=function(j){this.entries=[],this.url=null,j!==void 0&&(T(j)?this.parseObject(j):this.parseQuery(typeof j=="string"?at(j,0)==="?"?Wt(j,1):j:x(j)))};ct.prototype={type:L,bindURL:function(j){this.url=j,this.update()},parseObject:function(j){var z=this.entries,G=P(j),ot,mt,At,Bt,jt,Ut,Qt;if(G)for(ot=C(j,G),mt=ot.next;!(At=a(mt,ot)).done;){if(Bt=C(E(At.value)),jt=Bt.next,(Ut=a(jt,Bt)).done||(Qt=a(jt,Bt)).done||!a(jt,Bt).done)throw new Lt("Expected sequence with length 2");St(z,{key:x(Ut.value),value:x(Qt.value)})}else for(var fr in j)m(j,fr)&&St(z,{key:fr,value:x(j[fr])})},parseQuery:function(j){if(j)for(var z=this.entries,G=Ht(j,"&"),ot=0,mt,At;ot0?arguments[0]:void 0,G=K(this,new ct(z));u||(this.size=G.entries.length)},zt=ft.prototype;if(c(zt,{append:function(z,G){var ot=H(this);$(arguments.length,2),St(ot.entries,{key:x(z),value:x(G)}),u||this.length++,ot.updateURL()},delete:function(j){for(var z=H(this),G=$(arguments.length,1),ot=z.entries,mt=x(j),At=G<2?void 0:arguments[1],Bt=At===void 0?At:x(At),jt=0;jtot.key?1:-1}),z.updateURL()},forEach:function(z){for(var G=H(this).entries,ot=O(z,arguments.length>1?arguments[1]:void 0),mt=0,At;mt1?k(arguments[1]):{})}}),y(st)){var tt=function(z){return p(this,lt),new st(z,arguments.length>1?k(arguments[1]):{})};lt.constructor=tt,tt.prototype=lt,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:tt})}}s.exports={URLSearchParams:ft,getState:H}},10901:function(s,l,t){var r=t(16142),n=t(11286),e=t(17361),a=t(95486),o=URLSearchParams,u=o.prototype,i=n(u.append),v=n(u.delete),f=n(u.forEach),c=n([].push),d=new o("a=1&a=2&b=3");d.delete("a",1),d.delete("b",void 0),d+""!="a=2"&&r(u,"delete",function(h){var g=arguments.length,p=g<2?void 0:arguments[1];if(g&&p===void 0)return v(this,h);var y=[];f(this,function(A,C){c(y,{key:C,value:A})}),a(g,1);for(var m=e(h),O=e(p),S=0,E=0,T=!1,x=y.length,I;S?@[\\\]^|]/,Pt=/[\0\t\n\r #/:<>?@[\\\]^|]/,Vt=/^[\u0000-\u0020]+/,$t=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Mt=/[\t\n\r]/g,q,ut=function(V){var rt=et(V,"."),Y,B,w,Ot,xt,Xt,Zt;if(rt.length&&rt[rt.length-1]===""&&rt.length--,Y=rt.length,Y>4)return V;for(B=[],w=0;w1&&D(Ot,0)==="0"&&(xt=L(Tt,Ot)?16:8,Ot=lt(Ot,xt===8?1:2)),Ot==="")Xt=0;else{if(!L(xt===10?Ht:xt===8?Nt:Wt,Ot))return V;Xt=$(Ot,xt)}Q(B,Xt)}for(w=0;w=F(256,5-Y))return null}else if(Xt>255)return null;for(Zt=H(B),w=0;w6))return;for(Xt=0;Jt();){if(Zt=null,Xt>0)if(Jt()==="."&&Xt<4)w++;else return;if(!L(Rt,Jt()))return;for(;L(Rt,Jt());){if(wt=$(Jt(),10),Zt===null)Zt=wt;else{if(Zt===0)return;Zt=Zt*10+wt}if(Zt>255)return;w++}rt[Y]=rt[Y]*256+Zt,Xt++,(Xt===2||Xt===4)&&Y++}if(Xt!==4)return;break}else if(Jt()===":"){if(w++,!Jt())return}else if(Jt())return;rt[Y++]=Ot}if(B!==null)for(_t=Y-B,Y=7;Y!==0&&_t>0;)nt=rt[Y],rt[Y--]=rt[B+_t-1],rt[B+--_t]=nt;else if(Y!==8)return;return rt},yt=function(V){for(var rt=null,Y=1,B=null,w=0,Ot=0;Ot<8;Ot++)V[Ot]!==0?(w>Y&&(rt=B,Y=w),B=null,w=0):(B===null&&(B=Ot),++w);return w>Y&&(rt=B,Y=w),rt},pt=function(V){var rt,Y,B,w;if(typeof V=="number"){for(rt=[],Y=0;Y<4;Y++)gt(rt,V%256),V=U(V/256);return b(rt,".")}else if(typeof V=="object"){for(rt="",B=yt(V),Y=0;Y<8;Y++)w&&V[Y]===0||(w&&(w=!1),B===Y?(rt+=Y?":":"::",w=!0):(rt+=K(V[Y],16),Y<7&&(rt+=":")));return"["+rt+"]"}return V},ct={},ft=d({},ct,{" ":1,'"':1,"<":1,">":1,"`":1}),zt=d({},ft,{"#":1,"?":1,"{":1,"}":1}),Yt=d({},zt,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),W=function(V,rt){var Y=p(V,0);return Y>32&&Y<127&&!c(rt,V)?V:encodeURIComponent(V)},k={ftp:21,file:null,http:80,https:443,ws:80,wss:443},tt=function(V,rt){var Y;return V.length===2&&L(vt,D(V,0))&&((Y=D(V,1))===":"||!rt&&Y==="|")},j=function(V){var rt;return V.length>1&&tt(lt(V,0,2))&&(V.length===2||(rt=D(V,2))==="/"||rt==="\\"||rt==="?"||rt==="#")},z=function(V){return V==="."||ht(V)==="%2e"},G=function(V){return V=ht(V),V===".."||V==="%2e."||V===".%2e"||V==="%2e%2e"},ot={},mt={},At={},Bt={},jt={},Ut={},Qt={},fr={},dr={},hr={},pr={},gr={},mr={},xr={},Ar={},Sr={},lr={},nr={},Pr={},ir={},or={},Er=function(V,rt,Y){var B=m(V),w,Ot,xt;if(rt){if(Ot=this.parse(B),Ot)throw new N(Ot);this.searchParams=null}else{if(Y!==void 0&&(w=new Er(Y,!0)),Ot=this.parse(B,null,w),Ot)throw new N(Ot);xt=C(new A),xt.bindURL(this),this.searchParams=xt}};Er.prototype={type:"URL",parse:function(V,rt,Y){var B=this,w=rt||ot,Ot=0,xt="",Xt=!1,Zt=!1,wt=!1,_t,nt,Jt,er;for(V=m(V),rt||(B.scheme="",B.username="",B.password="",B.host=null,B.port=null,B.path=[],B.query=null,B.fragment=null,B.cannotBeABaseURL=!1,V=X(V,Vt,""),V=X(V,$t,"$1")),V=X(V,Mt,""),_t=h(V);Ot<=_t.length;){switch(nt=_t[Ot],w){case ot:if(nt&&L(vt,nt))xt+=ht(nt),w=mt;else{if(rt)return Dt;w=At;continue}break;case mt:if(nt&&(L(St,nt)||nt==="+"||nt==="-"||nt==="."))xt+=ht(nt);else if(nt===":"){if(rt&&(B.isSpecial()!==c(k,xt)||xt==="file"&&(B.includesCredentials()||B.port!==null)||B.scheme==="file"&&!B.host))return;if(B.scheme=xt,rt){B.isSpecial()&&k[B.scheme]===B.port&&(B.port=null);return}xt="",B.scheme==="file"?w=xr:B.isSpecial()&&Y&&Y.scheme===B.scheme?w=Bt:B.isSpecial()?w=fr:_t[Ot+1]==="/"?(w=jt,Ot++):(B.cannotBeABaseURL=!0,Q(B.path,""),w=Pr)}else{if(rt)return Dt;xt="",w=At,Ot=0;continue}break;case At:if(!Y||Y.cannotBeABaseURL&&nt!=="#")return Dt;if(Y.cannotBeABaseURL&&nt==="#"){B.scheme=Y.scheme,B.path=g(Y.path),B.query=Y.query,B.fragment="",B.cannotBeABaseURL=!0,w=or;break}w=Y.scheme==="file"?xr:Ut;continue;case Bt:if(nt==="/"&&_t[Ot+1]==="/")w=dr,Ot++;else{w=Ut;continue}break;case jt:if(nt==="/"){w=hr;break}else{w=nr;continue}case Ut:if(B.scheme=Y.scheme,nt===q)B.username=Y.username,B.password=Y.password,B.host=Y.host,B.port=Y.port,B.path=g(Y.path),B.query=Y.query;else if(nt==="/"||nt==="\\"&&B.isSpecial())w=Qt;else if(nt==="?")B.username=Y.username,B.password=Y.password,B.host=Y.host,B.port=Y.port,B.path=g(Y.path),B.query="",w=ir;else if(nt==="#")B.username=Y.username,B.password=Y.password,B.host=Y.host,B.port=Y.port,B.path=g(Y.path),B.query=Y.query,B.fragment="",w=or;else{B.username=Y.username,B.password=Y.password,B.host=Y.host,B.port=Y.port,B.path=g(Y.path),B.path.length--,w=nr;continue}break;case Qt:if(B.isSpecial()&&(nt==="/"||nt==="\\"))w=dr;else if(nt==="/")w=hr;else{B.username=Y.username,B.password=Y.password,B.host=Y.host,B.port=Y.port,w=nr;continue}break;case fr:if(w=dr,nt!=="/"||D(xt,Ot+1)!=="/")continue;Ot++;break;case dr:if(nt!=="/"&&nt!=="\\"){w=hr;continue}break;case hr:if(nt==="@"){Xt&&(xt="%40"+xt),Xt=!0,Jt=h(xt);for(var Ir=0;Ir65535)return at;B.port=B.isSpecial()&&yr===k[B.scheme]?null:yr,xt=""}if(rt)return;w=lr;continue}else return at;break;case xr:if(B.scheme="file",nt==="/"||nt==="\\")w=Ar;else if(Y&&Y.scheme==="file")switch(nt){case q:B.host=Y.host,B.path=g(Y.path),B.query=Y.query;break;case"?":B.host=Y.host,B.path=g(Y.path),B.query="",w=ir;break;case"#":B.host=Y.host,B.path=g(Y.path),B.query=Y.query,B.fragment="",w=or;break;default:j(b(g(_t,Ot),""))||(B.host=Y.host,B.path=g(Y.path),B.shortenPath()),w=nr;continue}else{w=nr;continue}break;case Ar:if(nt==="/"||nt==="\\"){w=Sr;break}Y&&Y.scheme==="file"&&!j(b(g(_t,Ot),""))&&(tt(Y.path[0],!0)?Q(B.path,Y.path[0]):B.host=Y.host),w=nr;continue;case Sr:if(nt===q||nt==="/"||nt==="\\"||nt==="?"||nt==="#"){if(!rt&&tt(xt))w=nr;else if(xt===""){if(B.host="",rt)return;w=lr}else{if(er=B.parseHost(xt),er)return er;if(B.host==="localhost"&&(B.host=""),rt)return;xt="",w=lr}continue}else xt+=nt;break;case lr:if(B.isSpecial()){if(w=nr,nt!=="/"&&nt!=="\\")continue}else if(!rt&&nt==="?")B.query="",w=ir;else if(!rt&&nt==="#")B.fragment="",w=or;else if(nt!==q&&(w=nr,nt!=="/"))continue;break;case nr:if(nt===q||nt==="/"||nt==="\\"&&B.isSpecial()||!rt&&(nt==="?"||nt==="#")){if(G(xt)?(B.shortenPath(),nt!=="/"&&!(nt==="\\"&&B.isSpecial())&&Q(B.path,"")):z(xt)?nt!=="/"&&!(nt==="\\"&&B.isSpecial())&&Q(B.path,""):(B.scheme==="file"&&!B.path.length&&tt(xt)&&(B.host&&(B.host=""),xt=D(xt,0)+":"),Q(B.path,xt)),xt="",B.scheme==="file"&&(nt===q||nt==="?"||nt==="#"))for(;B.path.length>1&&B.path[0]==="";)st(B.path);nt==="?"?(B.query="",w=ir):nt==="#"&&(B.fragment="",w=or)}else xt+=W(nt,zt);break;case Pr:nt==="?"?(B.query="",w=ir):nt==="#"?(B.fragment="",w=or):nt!==q&&(B.path[0]+=W(nt,ct));break;case ir:!rt&&nt==="#"?(B.fragment="",w=or):nt!==q&&(nt==="'"&&B.isSpecial()?B.query+="%27":nt==="#"?B.query+="%23":B.query+=W(nt,ct));break;case or:nt!==q&&(B.fragment+=W(nt,ft));break}Ot++}},parseHost:function(V){var rt,Y,B;if(D(V,0)==="["){if(D(V,V.length-1)!=="]"||(rt=J(lt(V,1,-1)),!rt))return Ct;this.host=rt}else if(this.isSpecial()){if(V=y(V),L(bt,V)||(rt=ut(V),rt===null))return Ct;this.host=rt}else{if(L(Pt,V))return Ct;for(rt="",Y=h(V),B=0;B1?arguments[1]:void 0,w=x(Y,new Er(rt,!1,B));n||(Y.href=w.serialize(),Y.origin=w.getOrigin(),Y.protocol=w.getProtocol(),Y.username=w.getUsername(),Y.password=w.getPassword(),Y.host=w.getHost(),Y.hostname=w.getHostname(),Y.port=w.getPort(),Y.pathname=w.getPathname(),Y.search=w.getSearch(),Y.searchParams=w.getSearchParams(),Y.hash=w.getHash())},kt=cr.prototype,qt=function(V,rt){return{get:function(){return I(this)[V]()},set:rt&&function(Y){return I(this)[rt](Y)},configurable:!0,enumerable:!0}};if(n&&(v(kt,"href",qt("serialize","setHref")),v(kt,"origin",qt("getOrigin")),v(kt,"protocol",qt("getProtocol","setProtocol")),v(kt,"username",qt("getUsername","setUsername")),v(kt,"password",qt("getPassword","setPassword")),v(kt,"host",qt("getHost","setHost")),v(kt,"hostname",qt("getHostname","setHostname")),v(kt,"port",qt("getPort","setPort")),v(kt,"pathname",qt("getPathname","setPathname")),v(kt,"search",qt("getSearch","setSearch")),v(kt,"searchParams",qt("getSearchParams")),v(kt,"hash",qt("getHash","setHash"))),i(kt,"toJSON",function(){return I(this).serialize()},{enumerable:!0}),i(kt,"toString",function(){return I(this).serialize()},{enumerable:!0}),P){var Cr=P.createObjectURL,Or=P.revokeObjectURL;Cr&&i(cr,"createObjectURL",o(Cr,P)),Or&&i(cr,"revokeObjectURL",o(Or,P))}O(cr,"URL"),r({global:!0,constructor:!0,forced:!e,sham:!n},{URL:cr})},51862:function(s,l,t){t(81888)},24119:function(s,l,t){var r=t(14304),n=t(38941),e=t(95486),a=t(17361),o=t(91918),u=n("URL");r({target:"URL",stat:!0,forced:!o},{parse:function(v){var f=e(arguments.length,1),c=a(v),d=f<2||arguments[1]===void 0?void 0:a(arguments[1]);try{return new u(c,d)}catch(h){return null}}})},97526:function(s,l,t){var r=t(14304),n=t(96499);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return n(URL.prototype.toString,this)}})},61969:function(s,l,t){t(40949),t(43657),t(43606),t(15855),t(42026),t(33257),t(59414),t(88344),t(92579),t(94655),t(8565),t(60843),t(65842),t(51595),t(54908),t(81742),t(8720),t(42861),t(27796),t(1341),t(98700),t(65481),t(46509),t(41585),t(84554),t(36619),t(33818),t(64096),t(2209),t(91591),t(74092),t(54703),t(82936),t(48493),t(64730),t(95024),t(35054),t(25460),t(60703),t(90468),t(69581),t(720),t(11042),t(17289),t(24608),t(51644),t(88088),t(46828),t(90088),t(35148),t(86184),t(53983),t(42560),t(88444),t(27839),t(73051),t(9372),t(35473),t(4983),t(6875),t(68575),t(35495),t(32790),t(58594),t(30801),t(90911),t(90429),t(33685),t(60086),t(96049),t(14038),t(55518),t(8894),t(60628),t(56347),t(16864),t(93819),t(71332),t(47269),t(25627),t(22090),t(9839),t(15656),t(22091),t(2886),t(25895),t(24228),t(79488),t(75987),t(81555),t(87854),t(35074),t(50946),t(29417),t(80628),t(74375),t(29708),t(93449),t(9111),t(83514),t(15096),t(59590),t(99663),t(89988),t(54427),t(67895),t(57909),t(83938),t(55461),t(97339),t(3670),t(15224),t(45891),t(99910),t(92445),t(21875),t(4383),t(11361),t(13728),t(14885),t(30343),t(22045),t(75e3),t(64658),t(16017),t(84681),t(73421),t(93446),t(31046),t(94645),t(62935),t(62518),t(45130),t(51542),t(43781),t(25738),t(93247),t(41533),t(60225),t(69920),t(89205),t(78546),t(63616),t(16893),t(3676),t(58361),t(23958),t(9798),t(2371),t(76185),t(76553),t(93518),t(25227),t(91723),t(57882),t(37796),t(11563),t(26159),t(20962),t(77487),t(6130),t(1354),t(47119),t(31145),t(96773),t(14371),t(18180),t(83147),t(75765),t(86548),t(15282),t(51275),t(91890),t(15089),t(78134),t(56456),t(40735),t(8510),t(70159),t(93087),t(26021),t(93029),t(59158),t(15599),t(18509),t(21579),t(8854),t(57676),t(14527),t(96834),t(52684),t(74980),t(390),t(42794),t(21293),t(18184),t(75012),t(19680),t(4193),t(70641),t(53892),t(95976),t(399),t(72032),t(49442),t(16012),t(9943),t(33128),t(95625),t(90614),t(60120),t(75826),t(25560),t(22571),t(40704),t(36849),t(49191),t(81083),t(27428),t(44884),t(48658),t(71998),t(6116),t(33032),t(80962),t(49381),t(38344),t(65961),t(94153),t(16028),t(20656),t(17063),t(21774),t(51761),t(12317),t(19711),t(41034),t(13313),t(44698),t(7369),t(66178),t(67961),t(8695),t(69997),t(9711),t(3923),t(59728),t(85227),t(56933),t(91490),t(61766),t(85143),t(47005),t(10042),t(37888),t(19431),t(60869),t(50338),t(53059),t(5805),t(50685),t(70649),t(39842),t(82872),t(91401),t(92904),t(28381),t(51862),t(20760),t(24119),t(97526),t(86650),t(10901),t(93944),t(79043),t(75081)}},vr={};function rr(s){var l=vr[s];if(l!==void 0)return l.exports;var t=vr[s]={exports:{}};return Dr[s].call(t.exports,t,t.exports,rr),t.exports}(function(){rr.d=function(s,l){for(var t in l)rr.o(l,t)&&!rr.o(s,t)&&Object.defineProperty(s,t,{enumerable:!0,get:l[t]})}})(),function(){rr.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)}}(),rr(61969);var Fr=rr(19770);return Fr=Fr.default,Fr}()}); diff --git a/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js b/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js index 42832bb38..58db241bf 100644 --- a/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js +++ b/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -22924,7 +22924,7 @@ class Plugin { }); } } -__publicField(Plugin, "version", "3.12.4-nightly-20240724004639"); +__publicField(Plugin, "version", "3.12.4-nightly-20240726004631"); ;// CONCATENATED MODULE: ./src/Plugin/sparkline/Options.ts class Options { diff --git a/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js b/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js index 95d5136f5..0ba26d12a 100644 --- a/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js +++ b/dist/plugin/pkgd/billboardjs-plugin-sparkline.pkgd.min.js @@ -5,12 +5,12 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */(function(Kr,Mr){typeof exports=="object"&&typeof module=="object"?module.exports=Mr():typeof define=="function"&&define.amd?define("bb",[],Mr):typeof exports=="object"?exports.bb=Mr():(Kr.bb=Kr.bb||{},Kr.bb.plugin=Kr.bb.plugin||{},Kr.bb.plugin["sparkline.pkgd"]=Mr())})(this,function(){return function(){"use strict";var Ce={68990:function(i,h,t){t.d(h,{default:function(){return Sa}});var r=Object.defineProperty,n=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,s=(e,f,c)=>f in e?r(e,f,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[f]=c,u=(e,f)=>{for(var c in f||(f={}))a.call(f,c)&&s(e,c,f[c]);if(n)for(var c of n(f))o.call(f,c)&&s(e,c,f[c]);return e};const l={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},v={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},d={area:"bb-area",areas:"bb-areas"},g={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},y={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},p={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},m={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},E={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},S={dragarea:"bb-dragarea",INCLUDED:"_included_"},I={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},P={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},A={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},R={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},N={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},T={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},C={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},b={level:"bb-level",levels:"bb-levels"},L={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},D={region:"bb-region",regions:"bb-regions"},$={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},w={shape:"bb-shape",shapes:"bb-shapes"},H={brush:"bb-brush",subchart:"bb-subchart"},U={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},B={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},j={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Y={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var k=u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u(u({},l),v),d),g),y),p),m),E),S),P),A),R),N),T),I),C),L),D),$),w),H),U),B),j),Y);function J(){}function nt(e){return e==null?J:function(){return this.querySelector(e)}}function _(e){typeof e!="function"&&(e=nt(e));for(var f=this._groups,c=f.length,x=new Array(c),O=0;O=$t&&($t=zt+1);!(tr=mt[$t])&&++$t=0;)(F=x[O])&&(M&&F.compareDocumentPosition(M)^4&&M.parentNode.insertBefore(F,M),M=F);return this}function rr(e){e||(e=Q);function f(Et,bt){return Et&&bt?e(Et.__data__,bt.__data__):!Et-!bt}for(var c=this._groups,x=c.length,O=new Array(x),M=0;Mf?1:e>=f?0:NaN}function ot(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function it(){return Array.from(this)}function z(){for(var e=this._groups,f=0,c=e.length;f=0&&(f=e.slice(0,c))!=="xmlns"&&(e=e.slice(c+1)),Nt.hasOwnProperty(f)?{space:Nt[f],local:e}:e}function Jt(e){return function(){this.removeAttribute(e)}}function Yt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function er(e,f){return function(){this.setAttribute(e,f)}}function Xr(e,f){return function(){this.setAttributeNS(e.space,e.local,f)}}function en(e,f){return function(){var c=f.apply(this,arguments);c==null?this.removeAttribute(e):this.setAttribute(e,c)}}function an(e,f){return function(){var c=f.apply(this,arguments);c==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,c)}}function dn(e,f){var c=Wt(e);if(arguments.length<2){var x=this.node();return c.local?x.getAttributeNS(c.space,c.local):x.getAttribute(c)}return this.each((f==null?c.local?Yt:Jt:typeof f=="function"?c.local?an:en:c.local?Xr:er)(c,f))}function on(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function hn(e){return function(){this.style.removeProperty(e)}}function gn(e,f,c){return function(){this.style.setProperty(e,f,c)}}function Dn(e,f,c){return function(){var x=f.apply(this,arguments);x==null?this.style.removeProperty(e):this.style.setProperty(e,x,c)}}function yn(e,f,c){return arguments.length>1?this.each((f==null?hn:typeof f=="function"?Dn:gn)(e,f,c==null?"":c)):Nr(this.node(),e)}function Nr(e,f){return e.style.getPropertyValue(f)||on(e).getComputedStyle(e,null).getPropertyValue(f)}function br(e){return function(){delete this[e]}}function Fn(e,f){return function(){this[e]=f}}function Vr(e,f){return function(){var c=f.apply(this,arguments);c==null?delete this[e]:this[e]=c}}function Dr(e,f){return arguments.length>1?this.each((f==null?br:typeof f=="function"?Vr:Fn)(e,f)):this.node()[e]}function sn(e){return e.trim().split(/^|\s+/)}function jr(e){return e.classList||new dr(e)}function dr(e){this._node=e,this._names=sn(e.getAttribute("class")||"")}dr.prototype={add:function(e){var f=this._names.indexOf(e);f<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var f=this._names.indexOf(e);f>=0&&(this._names.splice(f,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Tr(e,f){for(var c=jr(e),x=-1,O=f.length;++x=0&&(c=f.slice(x+1),f=f.slice(0,x)),{type:f,name:c}})}function Ua(e){return function(){var f=this.__on;if(f){for(var c=0,x=-1,O=f.length,M;c{}};function be(){for(var e=0,f=arguments.length,c={},x;e=0&&(x=c.slice(O+1),c=c.slice(0,O)),c&&!f.hasOwnProperty(c))throw new Error("unknown type: "+c);return{type:c,name:x}})}Bn.prototype=be.prototype={constructor:Bn,on:function(e,f){var c=this._,x=Ka(e+"",c),O,M=-1,F=x.length;if(arguments.length<2){for(;++M0)for(var c=new Array(O),x=0,O,M;x=0&&e._call.call(void 0,f),e=e._next;--fn}function Ue(){_r=(wn=In.now())+Gn,fn=Sn=0;try{Za()}finally{fn=0,qa(),_r=0}}function ka(){var e=In.now(),f=e-wn;f>Fe&&(Gn-=f,wn=e)}function qa(){for(var e,f=jn,c,x=1/0;f;)f._call?(x>f._time&&(x=f._time),e=f,f=f._next):(c=f._next,f._next=null,f=e?e._next=c:jn=c);On=e,ie(x)}function ie(e){if(!fn){Sn&&(Sn=clearTimeout(Sn));var f=e-_r;f>24?(e<1/0&&(Sn=setTimeout(Ue,e-In.now()-Gn)),En&&(En=clearInterval(En))):(En||(wn=In.now(),En=setInterval(ka,Fe)),fn=1,Le(Ue))}}function Be(e,f,c){var x=new Hn;return f=f==null?0:+f,x.restart(O=>{x.stop(),e(O+f)},f,c),x}var _a=Ja("start","end","cancel","interrupt"),to=[],je=0,we=1,ue=2,Vn=3,Ge=4,fe=5,Wn=6;function zn(e,f,c,x,O,M){var F=e.__transition;if(!F)e.__transition={};else if(c in F)return;ro(e,c,{name:f,index:x,group:O,on:_a,tween:to,time:M.time,delay:M.delay,duration:M.duration,ease:M.ease,timer:null,state:je})}function le(e,f){var c=$r(e,f);if(c.state>je)throw new Error("too late; already scheduled");return c}function wr(e,f){var c=$r(e,f);if(c.state>Vn)throw new Error("too late; already running");return c}function $r(e,f){var c=e.__transition;if(!c||!(c=c[f]))throw new Error("transition not found");return c}function ro(e,f,c){var x=e.__transition,O;x[f]=c,c.timer=$e(M,0,c.time);function M(tt){c.state=we,c.timer.restart(F,c.delay,c.time),c.delay<=tt&&F(tt-c.delay)}function F(tt){var et,Et,bt,wt;if(c.state!==we)return W();for(et in x)if(wt=x[et],wt.name===c.name){if(wt.state===Vn)return Be(F);wt.state===Ge?(wt.state=Wn,wt.timer.stop(),wt.on.call("interrupt",e,e.__data__,wt.index,wt.group),delete x[et]):+etue&&x.state180?et+=360:et-tt>180&&(tt+=360),bt.push({i:Et.push(O(Et)+"rotate(",null,x)-2,x:Jr(tt,et)})):et&&Et.push(O(Et)+"rotate("+et+x)}function G(tt,et,Et,bt){tt!==et?bt.push({i:Et.push(O(Et)+"skewX(",null,x)-2,x:Jr(tt,et)}):et&&Et.push(O(Et)+"skewX("+et+x)}function W(tt,et,Et,bt,wt,or){if(tt!==Et||et!==bt){var hr=wt.push(O(wt)+"scale(",null,",",null,")");or.push({i:hr-4,x:Jr(tt,Et)},{i:hr-2,x:Jr(et,bt)})}else(Et!==1||bt!==1)&&wt.push(O(wt)+"scale("+Et+","+bt+")")}return function(tt,et){var Et=[],bt=[];return tt=e(tt),et=e(et),M(tt.translateX,tt.translateY,et.translateX,et.translateY,Et,bt),F(tt.rotate,et.rotate,Et,bt),G(tt.skewX,et.skewX,Et,bt),W(tt.scaleX,tt.scaleY,et.scaleX,et.scaleY,Et,bt),tt=et=null,function(wt){for(var or=-1,hr=bt.length,mt;++or>8&15|f>>4&240,f>>4&15|f&240,(f&15)<<4|f&15,1):c===8?Xn(f>>24&255,f>>16&255,f>>8&255,(f&255)/255):c===4?Xn(f>>12&15|f>>8&240,f>>8&15|f>>4&240,f>>4&15|f&240,((f&15)<<4|f&15)/255):null):(f=co.exec(e))?new Pr(f[1],f[2],f[3],1):(f=ho.exec(e))?new Pr(f[1]*255/100,f[2]*255/100,f[3]*255/100,1):(f=go.exec(e))?Xn(f[1],f[2],f[3],f[4]):(f=yo.exec(e))?Xn(f[1]*255/100,f[2]*255/100,f[3]*255/100,f[4]):(f=po.exec(e))?ke(f[1],f[2]/100,f[3]/100,1):(f=mo.exec(e))?ke(f[1],f[2]/100,f[3]/100,f[4]):Ye.hasOwnProperty(e)?Je(Ye[e]):e==="transparent"?new Pr(NaN,NaN,NaN,0):null}function Je(e){return new Pr(e>>16&255,e>>8&255,e&255,1)}function Xn(e,f,c,x){return x<=0&&(e=f=c=NaN),new Pr(e,f,c,x)}function Eo(e){return e instanceof Tn||(e=Pn(e)),e?(e=e.rgb(),new Pr(e.r,e.g,e.b,e.opacity)):new Pr}function Jn(e,f,c,x){return arguments.length===1?Eo(e):new Pr(e,f,c,x==null?1:x)}function Pr(e,f,c,x){this.r=+e,this.g=+f,this.b=+c,this.opacity=+x}de(Pr,Jn,ze(Tn,{brighter(e){return e=e==null?Kn:Math.pow(Kn,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?An:Math.pow(An,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pr(tn(this.r),tn(this.g),tn(this.b),Qn(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:Qe,formatHex:Qe,formatHex8:Oo,formatRgb:Ze,toString:Ze}));function Qe(){return`#${rn(this.r)}${rn(this.g)}${rn(this.b)}`}function Oo(){return`#${rn(this.r)}${rn(this.g)}${rn(this.b)}${rn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ze(){const e=Qn(this.opacity);return`${e===1?"rgb(":"rgba("}${tn(this.r)}, ${tn(this.g)}, ${tn(this.b)}${e===1?")":`, ${e})`}`}function Qn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function tn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rn(e){return e=tn(e),(e<16?"0":"")+e.toString(16)}function ke(e,f,c,x){return x<=0?e=f=c=NaN:c<=0||c>=1?e=f=NaN:f<=0&&(e=NaN),new Ur(e,f,c,x)}function qe(e){if(e instanceof Ur)return new Ur(e.h,e.s,e.l,e.opacity);if(e instanceof Tn||(e=Pn(e)),!e)return new Ur;if(e instanceof Ur)return e;e=e.rgb();var f=e.r/255,c=e.g/255,x=e.b/255,O=Math.min(f,c,x),M=Math.max(f,c,x),F=NaN,G=M-O,W=(M+O)/2;return G?(f===M?F=(c-x)/G+(c0&&W<1?0:F,new Ur(F,G,W,e.opacity)}function Io(e,f,c,x){return arguments.length===1?qe(e):new Ur(e,f,c,x==null?1:x)}function Ur(e,f,c,x){this.h=+e,this.s=+f,this.l=+c,this.opacity=+x}de(Ur,Io,ze(Tn,{brighter(e){return e=e==null?Kn:Math.pow(Kn,e),new Ur(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?An:Math.pow(An,e),new Ur(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,f=isNaN(e)||isNaN(this.s)?0:this.s,c=this.l,x=c+(c<.5?c:1-c)*f,O=2*c-x;return new Pr(he(e>=240?e-240:e+120,O,x),he(e,O,x),he(e<120?e+240:e-120,O,x),this.opacity)},clamp(){return new Ur(_e(this.h),Zn(this.s),Zn(this.l),Qn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Qn(this.opacity);return`${e===1?"hsl(":"hsla("}${_e(this.h)}, ${Zn(this.s)*100}%, ${Zn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function _e(e){return e=(e||0)%360,e<0?e+360:e}function Zn(e){return Math.max(0,Math.min(1,e||0))}function he(e,f,c){return(e<60?f+(c-f)*e/60:e<180?c:e<240?f+(c-f)*(240-e)/60:f)*255}function ta(e,f,c,x,O){var M=e*e,F=M*e;return((1-3*e+3*M-F)*f+(4-6*M+3*F)*c+(1+3*e+3*M-3*F)*x+F*O)/6}function To(e){var f=e.length-1;return function(c){var x=c<=0?c=0:c>=1?(c=1,f-1):Math.floor(c*f),O=e[x],M=e[x+1],F=x>0?e[x-1]:2*O-M,G=x()=>e;function na(e,f){return function(c){return e+c*f}}function Ro(e,f,c){return e=Math.pow(e,c),f=Math.pow(f,c)-e,c=1/c,function(x){return Math.pow(e+x*f,c)}}function fi(e,f){var c=f-e;return c?na(e,c>180||c<-180?c-360*Math.round(c/360):c):constant(isNaN(e)?f:e)}function Po(e){return(e=+e)==1?ea:function(f,c){return c-f?Ro(f,c,e):ra(isNaN(f)?c:f)}}function ea(e,f){var c=f-e;return c?na(e,c):ra(isNaN(e)?f:e)}var aa=function e(f){var c=Po(f);function x(O,M){var F=c((O=Jn(O)).r,(M=Jn(M)).r),G=c(O.g,M.g),W=c(O.b,M.b),tt=ea(O.opacity,M.opacity);return function(et){return O.r=F(et),O.g=G(et),O.b=W(et),O.opacity=tt(et),O+""}}return x.gamma=e,x}(1);function oa(e){return function(f){var c=f.length,x=new Array(c),O=new Array(c),M=new Array(c),F,G;for(F=0;Fc&&(M=f.slice(c,M),G[F]?G[F]+=M:G[++F]=M),(x=x[0])===(O=O[0])?G[F]?G[F]+=O:G[++F]=O:(G[++F]=null,W.push({i:F,x:Jr(x,O)})),c=ye.lastIndex;return c=0&&(f=f.slice(0,c)),!f||f==="start"})}function ns(e,f,c){var x,O,M=rs(f)?le:wr;return function(){var F=M(this,e),G=F.on;G!==x&&(O=(x=G).copy()).on(f,c),F.on=O}}function es(e,f){var c=this._id;return arguments.length<2?$r(this.node(),c).on.on(e):this.each(ns(c,e,f))}function as(e){return function(){var f=this.parentNode;for(var c in this.__transition)if(+c!==e)return;f&&f.removeChild(this)}}function os(){return this.on("end.remove",as(this._id))}function ss(e){var f=this._name,c=this._id;typeof e!="function"&&(e=nt(e));for(var x=this._groups,O=x.length,M=new Array(O),F=0;F{const cr=Qt.identifier;return Qt=pointer(Qt,Bt),Qt.point0=Qt.slice(),Qt.identifier=cr,Qt});interrupt(Bt);var Nn=et(Bt,arguments,!0).beforestart();if(zt==="overlay"){fr&&(Pe=!0);const Qt=[Cr[0],Cr[1]||Cr[0]];Ar.selection=fr=[[ir=e===qn?Br:Ir(Qt[0][0],Qt[1][0]),yr=e===kn?Qr:Ir(Qt[0][1],Qt[1][1])],[mr=e===qn?Zr:Or(Qt[0][0],Qt[1][0]),Sr=e===kn?kr:Or(Qt[0][1],Qt[1][1])]],Cr.length>1&&nn(mt)}else ir=fr[0][0],yr=fr[0][1],mr=fr[1][0],Sr=fr[1][1];gr=ir,pr=yr,xr=mr,Er=Sr;var Ea=select(Bt).attr("pointer-events","none"),Mn=Ea.selectAll(".overlay").attr("cursor",Yr[zt]);if(mt.touches)Nn.moved=Ia,Nn.ended=Ta;else{var Oa=select(mt.view).on("mousemove.brush",Ia,!0).on("mouseup.brush",Ta,!0);O&&Oa.on("keydown.brush",ii,!0).on("keyup.brush",ui,!0),dragDisable(mt.view)}tt.call(Bt),Nn.start(mt,$t.name);function Ia(Qt){for(const cr of Qt.changedTouches||[Qt])for(const bn of Cr)bn.identifier===cr.identifier&&(bn.cur=pointer(cr,Bt));if(ne&&!ee&&!ae&&Cr.length===1){const cr=Cr[0];la(cr.cur[0]-cr[0])>la(cr.cur[1]-cr[1])?ae=!0:ee=!0}for(const cr of Cr)cr.cur&&(cr[0]=cr.cur[0],cr[1]=cr.cur[1]);Pe=!0,noevent(Qt),nn(Qt)}function nn(Qt){const cr=Cr[0],bn=cr.point0;var qr;switch(lr=cr[0]-bn[0],vr=cr[1]-bn[1],$t){case pe:case fa:{qt&&(lr=Or(Br-ir,Ir(Zr-mr,lr)),gr=ir+lr,xr=mr+lr),tr&&(vr=Or(Qr-yr,Ir(kr-Sr,vr)),pr=yr+vr,Er=Sr+vr);break}case vn:{Cr[1]?(qt&&(gr=Or(Br,Ir(Zr,Cr[0][0])),xr=Or(Br,Ir(Zr,Cr[1][0])),qt=1),tr&&(pr=Or(Qr,Ir(kr,Cr[0][1])),Er=Or(Qr,Ir(kr,Cr[1][1])),tr=1)):(qt<0?(lr=Or(Br-ir,Ir(Zr-ir,lr)),gr=ir+lr,xr=mr):qt>0&&(lr=Or(Br-mr,Ir(Zr-mr,lr)),gr=ir,xr=mr+lr),tr<0?(vr=Or(Qr-yr,Ir(kr-yr,vr)),pr=yr+vr,Er=Sr):tr>0&&(vr=Or(Qr-Sr,Ir(kr-Sr,vr)),pr=yr,Er=Sr+vr));break}case cn:{qt&&(gr=Or(Br,Ir(Zr,ir-lr*qt)),xr=Or(Br,Ir(Zr,mr+lr*qt))),tr&&(pr=Or(Qr,Ir(kr,yr-vr*tr)),Er=Or(Qr,Ir(kr,Sr+vr*tr)));break}}xr0&&(ir=gr-lr),tr<0?Sr=Er-vr:tr>0&&(yr=pr-vr),$t=pe,Mn.attr("cursor",Yr.selection),nn(Qt));break}default:return}noevent(Qt)}function ui(Qt){switch(Qt.keyCode){case 16:{ne&&(ee=ae=ne=!1,nn(Qt));break}case 18:{$t===cn&&(qt<0?mr=xr:qt>0&&(ir=gr),tr<0?Sr=Er:tr>0&&(yr=pr),$t=vn,nn(Qt));break}case 32:{$t===pe&&(Qt.altKey?(qt&&(mr=xr-lr*qt,ir=gr+lr*qt),tr&&(Sr=Er-vr*tr,yr=pr+vr*tr),$t=cn):(qt<0?mr=xr:qt>0&&(ir=gr),tr<0?Sr=Er:tr>0&&(yr=pr),$t=vn),Mn.attr("cursor",Yr[zt]),nn(Qt));break}default:return}noevent(Qt)}}function wt(mt){et(this,arguments).moved(mt)}function or(mt){et(this,arguments).ended(mt)}function hr(){var mt=this.__brush||{selection:null};return mt.extent=me(f.apply(this,arguments)),mt.dim=e,mt}return W.extent=function(mt){return arguments.length?(f=typeof mt=="function"?mt:constant(me(mt)),W):f},W.filter=function(mt){return arguments.length?(c=typeof mt=="function"?mt:constant(!!mt),W):c},W.touchable=function(mt){return arguments.length?(x=typeof mt=="function"?mt:constant(!!mt),W):x},W.handleSize=function(mt){return arguments.length?(F=+mt,W):F},W.keyModifiers=function(mt){return arguments.length?(O=!!mt,W):O},W.on=function(){var mt=M.on.apply(M,arguments);return mt===M?W:mt},W}function ws(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Gs(e){const f=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",c=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",x=M=>setTimeout(M,1),O=M=>clearTimeout(M);return[f?e.requestAnimationFrame:x,f?e.cancelAnimationFrame:O,c?e.requestIdleCallback:x,c?e.cancelIdleCallback:O]}const _n=ws(),Hs=_n==null?void 0:_n.document,[mi,xi,Si,Ei]=Gs(_n);var Vs=Object.defineProperty,ha=Object.getOwnPropertySymbols,Ws=Object.prototype.hasOwnProperty,zs=Object.prototype.propertyIsEnumerable,ga=(e,f,c)=>f in e?Vs(e,f,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[f]=c,ya=(e,f)=>{for(var c in f||(f={}))Ws.call(f,c)&&ga(e,c,f[c]);if(ha)for(var c of ha(f))zs.call(f,c)&&ga(e,c,f[c]);return e};const Oi=e=>e||e===0,Ys=e=>typeof e=="function",te=e=>typeof e=="string",Ee=e=>typeof e=="number",Ks=e=>typeof e=="undefined",pa=e=>typeof e!="undefined",Ii=e=>typeof e=="boolean",Ti=e=>Math.ceil(e/10)*10,Ai=e=>Math.ceil(e)+.5,Ri=e=>e[1]-e[0],Oe=e=>typeof e=="object",Xs=e=>Ks(e)||e===null||te(e)&&e.length===0||Oe(e)&&!(e instanceof Date)&&Object.keys(e).length===0||Ee(e)&&isNaN(e),Js=e=>!Xs(e),Ie=e=>Array.isArray(e),re=e=>e&&!(e!=null&&e.nodeType)&&Oe(e)&&!Ie(e);function Pi(e,f,c){return pa(e[f])?e[f]:c}function Ci(e,f){let c=!1;return Object.keys(e).forEach(x=>e[x]===f&&(c=!0)),c}function Ni(e,f,...c){const x=Ys(e);return x&&e.call(f,...c),x}function Mi(e,f){let c=0;const x=function(...O){!--c&&f.apply(this,...O)};"duration"in e?e.each(()=>++c).on("end",x):(++c,e.call(x))}function bi(e){return te(e)?e.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):e}function Di(e,f,c=[-1,1],x=!1){if(!(!e||!te(f)))if(f.indexOf(` `)===-1)e.text(f);else{const O=[e.text(),f].map(M=>M.replace(/[\s\n]/g,""));if(O[0]!==O[1]){const M=f.split(` -`),F=x?M.length-1:1;e.html(""),M.forEach((G,W)=>{e.append("tspan").attr("x",0).attr("dy",`${W===0?c[0]*F:c[1]}em`).text(G)})}}}function Qs(e){const{x:f,y:c,width:x,height:O}=e.getBBox();return[{x:f,y:c+O},{x:f,y:c},{x:f+x,y:c},{x:f+x,y:c+O}]}function Fi(e){const{width:f,height:c}=e.getBoundingClientRect(),x=Qs(e),O=x[0].x,M=Math.min(x[0].y,x[1].y);return{x:O,y:M,width:f,height:c}}function Li(e,f){var c;const x=e&&((c=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:c[0]);let O=[0,0];try{O=d3Pointer(x||e,f)}catch(M){}return O.map(M=>isNaN(M)?0:M)}function Zs(e){const{event:f,$el:c}=e,x=c.subchart.main||c.main;let O;return f&&f.type==="brush"?O=f.selection:x&&(O=x.select(".bb-brush").node())&&(O=d3BrushSelection(O)),O}function $i(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ui(e=!0,f=0,c=1e4){const x=window.crypto||window.msCrypto,O=x?f+x.getRandomValues(new Uint32Array(1))[0]%(c-f+1):Math.floor(Math.random()*(c-f)+f);return e?String(O):O}function ma(e,f,c,x,O){if(c>x)return-1;const M=Math.floor((c+x)/2);let{x:F,w:G=0}=e[M];return O&&(F=e[M].y,G=e[M].h),f>=F&&f<=F+G?M:f{if(re(c)&&c.constructor){const x=new c.constructor;for(const O in c)x[O]=f(c[O]);return x}return c};return e.map(c=>f(c)).reduce((c,x)=>ya(ya({},c),x))}function ks(e={},f){Ie(f)&&f.forEach(c=>ks(e,c));for(const c in f)/^\d+$/.test(c)||c in e||(e[c]=f[c]);return e}const wi=e=>e.charAt(0).toUpperCase()+e.slice(1);function Gi(e,f="-"){return e.split(f).map((c,x)=>x?c.charAt(0).toUpperCase()+c.slice(1).toLowerCase():c.toLowerCase()).join("")}const qs=e=>[].slice.call(e);function Hi(e,f,c){const{rootSelector:x="",sheet:O}=e,F=`${x} ${(G=>G.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(f)} {${c.join(";")}}`;return O[O.insertRule?"insertRule":"addRule"](F,O.cssRules.length)}function Vi(e){let f=[];return e.forEach(c=>{var x;try{c.cssRules&&c.cssRules.length&&(f=f.concat(qs(c.cssRules)))}catch(O){(x=window.console)==null||x.warn(`Error while reading rules from ${c.href}: ${O.toString()}`)}}),f}function Wi(e){var f,c,x,O;return{x:((c=(f=window.pageXOffset)!=null?f:window.scrollX)!=null?c:0)+e.scrollLeft,y:((O=(x=window.pageYOffset)!=null?x:window.scrollY)!=null?O:0)+e.scrollTop}}function zi(e){const f=e?e.transform:null,c=f&&f.baseVal;return c&&c.numberOfItems?c.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Yi(e){const f=e[0]instanceof Date,c=(f?e.map(Number):e).filter((x,O,M)=>M.indexOf(x)===O);return f?c.map(x=>new Date(x)):c}function Ki(e){return e&&e.length?e.reduce((f,c)=>f.concat(c)):[]}function Te(e,...f){if(!f.length||f.length===1&&!f[0])return e;const c=f.shift();return re(e)&&re(c)&&Object.keys(c).forEach(x=>{const O=c[x];re(O)?(!e[x]&&(e[x]={}),e[x]=Te(e[x],O)):e[x]=Ie(O)?O.concat():O}),Te(e,...f)}function _s(e,f=!0){let c;return e[0]instanceof Date?c=f?(x,O)=>x-O:(x,O)=>O-x:f&&!e.every(isNaN)?c=(x,O)=>x-O:f||(c=(x,O)=>x>O&&-1||xJs(x));return c.length?Ee(c[0])?c=Math[e](...c):c[0]instanceof Date&&(c=_s(c,e==="min")[0]):c=void 0,c}const Ji=(e,f,c=1)=>{const x=[],O=Math.max(0,Math.ceil((f-e)/c))|0;for(let M=e;M{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(f,c,x=e())=>{f.dispatchEvent(new MouseEvent(c,x))}}catch(f){return(c,x,O=e())=>{const M=Hs.createEvent("MouseEvent");M.initMouseEvent(x,O.bubbles,O.cancelable,_n,0,O.screenX,O.screenY,O.clientX,O.clientY,!1,!1,!1,!1,0,null),c.dispatchEvent(M)}}})(),touch:(e,f,c)=>{const x=new Touch(Te({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},c));e.dispatchEvent(new TouchEvent(f,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[x],targetTouches:[],changedTouches:[x]}))}};function Zi(e,f){let c=e;for(const x in f)c=c.replace(new RegExp(`{=${x}}`,"g"),f[x]);return c}function ki(e){var f;let c;if(e instanceof Date)c=e;else if(te(e)){const{config:x,format:O}=this;c=(f=O.dataTime(x.data_xFormat)(e))!=null?f:new Date(e)}else Ee(e)&&!isNaN(e)&&(c=new Date(+e));return(!c||isNaN(+c))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),c}function qi(){var e,f;return((e=document)==null?void 0:e.hidden)===!1||((f=document)==null?void 0:f.visibilityState)==="visible"}function _i(e,f){const{DocumentTouch:c,matchMedia:x,navigator:O}=window;let M=!1;if(f)if(O&&"maxTouchPoints"in O)M=O.maxTouchPoints>0;else if("ontouchmove"in window||c&&document instanceof c)M=!0;else if(x!=null&&x("(pointer:coarse)").matches)M=!0;else{const G=O.userAgent;M=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(G)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(G)}return e&&((x==null?void 0:x("any-hover:hover").matches)||(x==null?void 0:x("any-pointer:fine").matches))&&"mouse"||M&&"touch"||"mouse"}function ti(e,f){f()===!1?requestAnimationFrame(()=>ti(e,f)):e()}function ri(e){const f=this.config;let c,x,O;const M=()=>{const F=x.shift();if(F&&c&&Oe(c)&&F in c)return c=c[F],M();if(!F)return c};Object.keys(f).forEach(F=>{c=e,x=F.split("_"),O=M(),pa(O)&&(f[F]=O)}),this.api&&(this.state.orgConfig=e)}var ni=Object.defineProperty,ei=(e,f,c)=>f in e?ni(e,f,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[f]=c,Ae=(e,f,c)=>ei(e,typeof f!="symbol"?f+"":f,c);class xa{constructor(f={}){Ae(this,"$$"),Ae(this,"options"),this.options=f}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(f=>{this[f]=null,delete this[f]})}}Ae(xa,"version","3.12.4-nightly-20240724004639");class ai{constructor(){return{selector:void 0}}}var oi=Object.defineProperty,si=(e,f,c)=>f in e?oi(e,f,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[f]=c,Re=(e,f,c)=>si(e,typeof f!="symbol"?f+"":f,c);class Sa extends xa{constructor(f){return super(f),Re(this,"config"),Re(this,"element"),this.config=new ai,this}$beforeInit(){ri.call(this,this.options),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)}validate(){const{$$:f,config:c}=this;let x="";if((!c.selector||!document.querySelector(c.selector))&&(x="No holder elements found from given selector option."),(f.hasType("bubble")||f.hasType("scatter")||f.hasArcType(f.data.targets))&&(x="Contains non supported chart types."),x)throw new Error(`[Sparkline plugin] ${x}`)}overrideInternals(){const{$$:f}=this,{getBarW:c,getIndices:x}=f;f.getIndices=function(O,M,F){return F==="getShapeX"?{}:x.call(this,O,M)},f.getBarW=function(O,M){return c.call(this,O,M,1)}}overrideOptions(){const{config:f}=this.$$;if(f.legend_show=!1,f.resize_auto=!1,f.axis_x_show=!1,f.padding!==!1){const c=x=>Object.keys(x||{}).length>0;c(f.axis_x_padding)&&(f.axis_x_padding={left:15,right:15,unit:"px"}),c(f.axis_y_padding)&&(f.axis_y_padding=5)}f.axis_y_show=!1,f.tooltip_position||(f.tooltip_position=function(c,x,O){const{internal:{state:{event:M}}}=this;let F=M.pageY-O*1.35,G=M.pageX-x/2;return F<0&&(F=0),G<0&&(G=0),{top:F,left:G}})}$init(){var f;const{$$:{$el:c}}=this;c.chart.style("width","0").style("height","0").style("pointer-events","none"),(f=c.tooltip)!=null&&f.node()&&document.body.appendChild(c.tooltip.node())}$afterInit(){const{$$:f}=this;f.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents(f=!0){const{$$:{config:c}}=this;if(c.interaction_enabled&&c.tooltip_show){const x=`${f?"add":"remove"}EventListener`;this.element.forEach(O=>{const M=O.querySelector("svg");M[x]("mouseover",this.overHandler),M[x]("mousemove",this.moveHandler),M[x]("mouseout",this.outHandler)})}}overHandler(f){const{$$:c}=this,{state:{eventReceiver:x}}=c;x.rect=f.target.getBoundingClientRect()}moveHandler(f){var c,x,O,M;const{$$:F}=this,G=F.getDataIndexFromEvent(f),W=(c=F.api.data(f.target.__id))==null?void 0:c[0],tt=(x=W==null?void 0:W.values)==null?void 0:x[G];tt&&!tt.name&&(tt.name=tt.id),F.state.event=f,(O=F.isPointFocusOnly)!=null&&O.call(F)&&tt&&((M=F.showCircleFocus)==null||M.call(F,[tt])),F.setExpand(G,W.id,!0),F.showTooltip([tt],f.target)}outHandler(f){const{$$:c}=this;c.state.event=f,c.isPointFocusOnly()?c.hideCircleFocus():c.unexpandCircles(),c.hideTooltip()}$redraw(){var f;const{$$:c}=this,{$el:x}=c;let O=this.element;const M=c.api.data(),F=(f=x.chart.html().match(/]*>/))==null?void 0:f[0];if(O.length0;W--)G.parentNode.insertBefore(O[0].cloneNode(),G.nextSibling);this.element=document.querySelectorAll(this.config.selector),O=this.element}M.map(G=>G.id).forEach((G,W)=>{const tt=`.${l.target}-${G}`,et=x.main.selectAll(tt);let Et=O[W].querySelector("svg");Et||(O[W].innerHTML=`${F}`,Et=O[W].querySelector("svg"),Et.__id=G),Et.querySelector(tt)||et.style("opacity",null),et.style("fill","none").style("opacity",null),Et.innerHTML="",Et.appendChild(et.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach(f=>{f.innerHTML=""})}}Re(Sa,"version","0.0.1")},85156:function(i,h,t){var r=t(23583),n=t(82453),a=TypeError;i.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not a function")}},80042:function(i,h,t){var r=t(11051),n=t(82453),a=TypeError;i.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not a constructor")}},53408:function(i,h,t){var r=t(52427),n=String,a=TypeError;i.exports=function(o){if(r(o))return o;throw new a("Can't set "+n(o)+" as a prototype")}},76602:function(i,h,t){var r=t(172).has;i.exports=function(n){return r(n),n}},23811:function(i,h,t){var r=t(18565),n=t(5406),a=t(7831).f,o=r("unscopables"),s=Array.prototype;s[o]===void 0&&a(s,o,{configurable:!0,value:n(null)}),i.exports=function(u){s[o][u]=!0}},24487:function(i,h,t){var r=t(22149).charAt;i.exports=function(n,a,o){return a+(o?r(n,a).length:1)}},12833:function(i,h,t){var r=t(95307),n=TypeError;i.exports=function(a,o){if(r(o,a))return a;throw new n("Incorrect invocation")}},25001:function(i,h,t){var r=t(37540),n=String,a=TypeError;i.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not an object")}},3237:function(i){i.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},58360:function(i,h,t){var r=t(84756),n=t(14274),a=TypeError;i.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(o){if(n(o)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return o.byteLength}},30736:function(i,h,t){var r=t(11286),n=t(58360),a=r(ArrayBuffer.prototype.slice);i.exports=function(o){if(n(o)!==0)return!1;try{return a(o,0,0),!1}catch(s){return!0}}},72058:function(i,h,t){var r=t(72069);i.exports=r(function(){if(typeof ArrayBuffer=="function"){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}})},65006:function(i,h,t){var r=t(66009),n=t(11286),a=t(84756),o=t(9450),s=t(30736),u=t(58360),l=t(63741),v=t(99050),d=r.structuredClone,g=r.ArrayBuffer,y=r.DataView,p=r.TypeError,m=Math.min,E=g.prototype,S=y.prototype,I=n(E.slice),P=a(E,"resizable","get"),A=a(E,"maxByteLength","get"),R=n(S.getInt8),N=n(S.setInt8);i.exports=(v||l)&&function(T,C,b){var L=u(T),D=C===void 0?L:o(C),$=!P||!P(T),w;if(s(T))throw new p("ArrayBuffer is detached");if(v&&(T=d(T,{transfer:[T]}),L===D&&(b||$)))return T;if(L>=D&&(!b||$))w=I(T,0,D);else{var H=b&&!$&&A?{maxByteLength:A(T)}:void 0;w=new g(D,H);for(var U=new y(T),B=new y(w),j=m(D,L),Y=0;Y>8&255]},Mt=function(st){return[st&255,st>>8&255,st>>16&255,st>>24&255]},Ct=function(st){return st[3]<<24|st[2]<<16|st[1]<<8|st[0]},Lt=function(st){return Ft(E(st),23,4)},Zt=function(st){return Ft(st,52,8)},kt=function(st,ht,rt){l(st[H],ht,{configurable:!0,get:function(){return rt(this)[ht]}})},Kt=function(st,ht,rt,Ot){var Tt=Y(st),xt=m(rt),pt=!!Ot;if(xt+ht>Tt.byteLength)throw new It(B);var _t=Tt.bytes,rr=xt+Tt.byteOffset,Q=R(_t,rr,rr+ht);return pt?Q:jt(Q)},Dt=function(st,ht,rt,Ot,Tt,xt){var pt=Y(st),_t=m(rt),rr=Ot(+Tt),Q=!!xt;if(_t+ht>pt.byteLength)throw new It(B);for(var ot=pt.bytes,it=_t+pt.byteOffset,z=0;zxt)throw new It("Wrong offset");if(Ot=Ot===void 0?xt-pt:p(Ot),pt+Ot>xt)throw new It(U);k(this,{type:w,buffer:ht,byteLength:Ot,byteOffset:pt,bytes:Tt.bytes}),a||(this.buffer=ht,this.byteLength=Ot,this.byteOffset=pt)},lt=dt[H],a&&(kt(nt,"byteLength",j),kt(dt,"buffer",Y),kt(dt,"byteLength",Y),kt(dt,"byteOffset",Y)),v(lt,{getInt8:function(ht){return Kt(this,1,ht)[0]<<24>>24},getUint8:function(ht){return Kt(this,1,ht)[0]},getInt16:function(ht){var rt=Kt(this,2,ht,arguments.length>1?arguments[1]:!1);return(rt[1]<<8|rt[0])<<16>>16},getUint16:function(ht){var rt=Kt(this,2,ht,arguments.length>1?arguments[1]:!1);return rt[1]<<8|rt[0]},getInt32:function(ht){return Ct(Kt(this,4,ht,arguments.length>1?arguments[1]:!1))},getUint32:function(ht){return Ct(Kt(this,4,ht,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(ht){return vt(Kt(this,4,ht,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(ht){return vt(Kt(this,8,ht,arguments.length>1?arguments[1]:!1),52)},setInt8:function(ht,rt){Dt(this,1,ht,yt,rt)},setUint8:function(ht,rt){Dt(this,1,ht,yt,rt)},setInt16:function(ht,rt){Dt(this,2,ht,Pt,rt,arguments.length>2?arguments[2]:!1)},setUint16:function(ht,rt){Dt(this,2,ht,Pt,rt,arguments.length>2?arguments[2]:!1)},setInt32:function(ht,rt){Dt(this,4,ht,Mt,rt,arguments.length>2?arguments[2]:!1)},setUint32:function(ht,rt){Dt(this,4,ht,Mt,rt,arguments.length>2?arguments[2]:!1)},setFloat32:function(ht,rt){Dt(this,4,ht,Lt,rt,arguments.length>2?arguments[2]:!1)},setFloat64:function(ht,rt){Dt(this,8,ht,Zt,rt,arguments.length>2?arguments[2]:!1)}});else{var Xt=L&&J.name!==$;!d(function(){J(1)})||!d(function(){new J(-1)})||d(function(){return new J,new J(1.5),new J(NaN),J.length!==1||Xt&&!D})?(nt=function(ht){return g(this,_),N(new J(m(ht)),this,nt)},nt[H]=_,_.constructor=nt,T(nt,J)):Xt&&D&&u(J,"name",$),P&&I(lt)!==gt&&P(lt,gt);var Vt=new dt(new nt(2)),Ut=n(lt.setInt8);Vt.setInt8(0,2147483648),Vt.setInt8(1,2147483649),(Vt.getInt8(0)||!Vt.getInt8(1))&&v(lt,{setInt8:function(ht,rt){Ut(this,ht,rt<<24>>24)},setUint8:function(ht,rt){Ut(this,ht,rt<<24>>24)}},{unsafe:!0})}C(nt,$),C(dt,w),i.exports={ArrayBuffer:nt,DataView:dt}},81499:function(i,h,t){var r=t(49671),n=t(4652),a=t(82628),o=t(12384),s=Math.min;i.exports=[].copyWithin||function(l,v){var d=r(this),g=a(d),y=n(l,g),p=n(v,g),m=arguments.length>2?arguments[2]:void 0,E=s((m===void 0?g:n(m,g))-p,g-y),S=1;for(p0;)p in d?d[y]=d[p]:o(d,y),y+=S,p+=S;return d}},43011:function(i,h,t){var r=t(49671),n=t(4652),a=t(82628);i.exports=function(s){for(var u=r(this),l=a(u),v=arguments.length,d=n(v>1?arguments[1]:void 0,l),g=v>2?arguments[2]:void 0,y=g===void 0?l:n(g,l);y>d;)u[d++]=s;return u}},13349:function(i,h,t){var r=t(66655).forEach,n=t(6148),a=n("forEach");i.exports=a?[].forEach:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}},5220:function(i,h,t){var r=t(82628);i.exports=function(n,a,o){for(var s=0,u=arguments.length>2?o:r(a),l=new n(u);u>s;)l[s]=a[s++];return l}},48258:function(i,h,t){var r=t(45526),n=t(96499),a=t(49671),o=t(39969),s=t(48199),u=t(11051),l=t(82628),v=t(84082),d=t(90619),g=t(81077),y=Array;i.exports=function(m){var E=a(m),S=u(this),I=arguments.length,P=I>1?arguments[1]:void 0,A=P!==void 0;A&&(P=r(P,I>2?arguments[2]:void 0));var R=g(E),N=0,T,C,b,L,D,$;if(R&&!(this===y&&s(R)))for(C=S?new this:[],L=d(E,R),D=L.next;!(b=n(D,L)).done;N++)$=A?o(L,P,[b.value,N],!0):b.value,v(C,N,$);else for(T=l(E),C=S?new this(T):y(T);T>N;N++)$=A?P(E[N],N):E[N],v(C,N,$);return C.length=N,C}},94319:function(i,h,t){var r=t(36859),n=t(4652),a=t(82628),o=function(s){return function(u,l,v){var d=r(u),g=a(d);if(g===0)return!s&&-1;var y=n(v,g),p;if(s&&l!==l){for(;g>y;)if(p=d[y++],p!==p)return!0}else for(;g>y;y++)if((s||y in d)&&d[y]===l)return s||y||0;return!s&&-1}};i.exports={includes:o(!0),indexOf:o(!1)}},73849:function(i,h,t){var r=t(45526),n=t(72181),a=t(49671),o=t(82628),s=function(u){var l=u===1;return function(v,d,g){for(var y=a(v),p=n(y),m=o(p),E=r(d,g),S,I;m-- >0;)if(S=p[m],I=E(S,m,y),I)switch(u){case 0:return S;case 1:return m}return l?-1:void 0}};i.exports={findLast:s(0),findLastIndex:s(1)}},66655:function(i,h,t){var r=t(45526),n=t(11286),a=t(72181),o=t(49671),s=t(82628),u=t(62083),l=n([].push),v=function(d){var g=d===1,y=d===2,p=d===3,m=d===4,E=d===6,S=d===7,I=d===5||E;return function(P,A,R,N){for(var T=o(P),C=a(T),b=s(C),L=r(A,R),D=0,$=N||u,w=g?$(P,b):y||S?$(P,0):void 0,H,U;b>D;D++)if((I||D in C)&&(H=C[D],U=L(H,D,T),d))if(g)w[D]=U;else if(U)switch(d){case 3:return!0;case 5:return H;case 6:return D;case 2:l(w,H)}else switch(d){case 4:return!1;case 7:l(w,H)}return E?-1:p||m?m:w}};i.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},58465:function(i,h,t){var r=t(66543),n=t(36859),a=t(12105),o=t(82628),s=t(6148),u=Math.min,l=[].lastIndexOf,v=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),g=v||!d;i.exports=g?function(p){if(v)return r(l,this,arguments)||0;var m=n(this),E=o(m);if(E===0)return-1;var S=E-1;for(arguments.length>1&&(S=u(S,a(arguments[1]))),S<0&&(S=E+S);S>=0;S--)if(S in m&&m[S]===p)return S||0;return-1}:l},52183:function(i,h,t){var r=t(72069),n=t(18565),a=t(73126),o=n("species");i.exports=function(s){return a>=51||!r(function(){var u=[],l=u.constructor={};return l[o]=function(){return{foo:1}},u[s](Boolean).foo!==1})}},6148:function(i,h,t){var r=t(72069);i.exports=function(n,a){var o=[][n];return!!o&&r(function(){o.call(null,a||function(){return 1},1)})}},97264:function(i,h,t){var r=t(85156),n=t(49671),a=t(72181),o=t(82628),s=TypeError,u="Reduce of empty array with no initial value",l=function(v){return function(d,g,y,p){var m=n(d),E=a(m),S=o(m);if(r(g),S===0&&y<2)throw new s(u);var I=v?S-1:0,P=v?-1:1;if(y<2)for(;;){if(I in E){p=E[I],I+=P;break}if(I+=P,v?I<0:S<=I)throw new s(u)}for(;v?I>=0:S>I;I+=P)I in E&&(p=g(p,E[I],I,m));return p}};i.exports={left:l(!1),right:l(!0)}},2213:function(i,h,t){var r=t(92986),n=t(3438),a=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}();i.exports=s?function(u,l){if(n(u)&&!o(u,"length").writable)throw new a("Cannot set read only .length");return u.length=l}:function(u,l){return u.length=l}},22806:function(i,h,t){var r=t(11286);i.exports=r([].slice)},13270:function(i,h,t){var r=t(22806),n=Math.floor,a=function(o,s){var u=o.length;if(u<8)for(var l=1,v,d;l0;)o[d]=o[--d];d!==l++&&(o[d]=v)}else for(var g=n(u/2),y=a(r(o,0,g),s),p=a(r(o,g),s),m=y.length,E=p.length,S=0,I=0;S=v||g<0)throw new a("Incorrect index");for(var y=new s(v),p=0;p1?arguments[1]:void 0),U;U=U?U.next:w.first;)for(H(U.value,U.key,this);U&&U.removed;)U=U.previous},has:function($){return!!L(this,$)}}),a(T,A?{get:function($){var w=L(this,$);return w&&w.value},set:function($,w){return b(this,$===0?0:$,w)}}:{add:function($){return b(this,$=$===0?0:$,$)}}),y&&n(T,"size",{configurable:!0,get:function(){return C(this).size}}),N},setStrong:function(I,P,A){var R=P+" Iterator",N=S(P),T=S(R);v(I,P,function(C,b){E(this,{type:R,target:C,state:N(C),kind:b,last:void 0})},function(){for(var C=T(this),b=C.kind,L=C.last;L&&L.removed;)L=L.previous;return!C.target||!(C.last=L=L?L.next:C.state.first)?(C.target=void 0,d(void 0,!0)):d(b==="keys"?L.key:b==="values"?L.value:[L.key,L.value],!1)},A?"entries":"values",!A,!0),g(P)}}},94667:function(i,h,t){var r=t(11286),n=t(2725),a=t(31853).getWeakData,o=t(12833),s=t(25001),u=t(5683),l=t(37540),v=t(55902),d=t(66655),g=t(94879),y=t(82367),p=y.set,m=y.getterFor,E=d.find,S=d.findIndex,I=r([].splice),P=0,A=function(T){return T.frozen||(T.frozen=new R)},R=function(){this.entries=[]},N=function(T,C){return E(T.entries,function(b){return b[0]===C})};R.prototype={get:function(T){var C=N(this,T);if(C)return C[1]},has:function(T){return!!N(this,T)},set:function(T,C){var b=N(this,T);b?b[1]=C:this.entries.push([T,C])},delete:function(T){var C=S(this.entries,function(b){return b[0]===T});return~C&&I(this.entries,C,1),!!~C}},i.exports={getConstructor:function(T,C,b,L){var D=T(function(U,B){o(U,$),p(U,{type:C,id:P++,frozen:void 0}),u(B)||v(B,U[L],{that:U,AS_ENTRIES:b})}),$=D.prototype,w=m(C),H=function(U,B,j){var Y=w(U),k=a(s(B),!0);return k===!0?A(Y).set(B,j):k[Y.id]=j,U};return n($,{delete:function(U){var B=w(this);if(!l(U))return!1;var j=a(U);return j===!0?A(B).delete(U):j&&g(j,B.id)&&delete j[B.id]},has:function(B){var j=w(this);if(!l(B))return!1;var Y=a(B);return Y===!0?A(j).has(B):Y&&g(Y,j.id)}}),n($,b?{get:function(B){var j=w(this);if(l(B)){var Y=a(B);return Y===!0?A(j).get(B):Y?Y[j.id]:void 0}},set:function(B,j){return H(this,B,j)}}:{add:function(B){return H(this,B,!0)}}),D}}},89378:function(i,h,t){var r=t(14304),n=t(66009),a=t(11286),o=t(13278),s=t(16142),u=t(31853),l=t(55902),v=t(12833),d=t(23583),g=t(5683),y=t(37540),p=t(72069),m=t(97494),E=t(78401),S=t(32345);i.exports=function(I,P,A){var R=I.indexOf("Map")!==-1,N=I.indexOf("Weak")!==-1,T=R?"set":"add",C=n[I],b=C&&C.prototype,L=C,D={},$=function(k){var J=a(b[k]);s(b,k,k==="add"?function(_){return J(this,_===0?0:_),this}:k==="delete"?function(nt){return N&&!y(nt)?!1:J(this,nt===0?0:nt)}:k==="get"?function(_){return N&&!y(_)?void 0:J(this,_===0?0:_)}:k==="has"?function(_){return N&&!y(_)?!1:J(this,_===0?0:_)}:function(_,dt){return J(this,_===0?0:_,dt),this})},w=o(I,!d(C)||!(N||b.forEach&&!p(function(){new C().entries().next()})));if(w)L=A.getConstructor(P,I,R,T),u.enable();else if(o(I,!0)){var H=new L,U=H[T](N?{}:-0,1)!==H,B=p(function(){H.has(1)}),j=m(function(k){new C(k)}),Y=!N&&p(function(){for(var k=new C,J=5;J--;)k[T](J,J);return!k.has(-0)});j||(L=P(function(k,J){v(k,b);var nt=S(new C,k,L);return g(J)||l(J,nt[T],{that:nt,AS_ENTRIES:R}),nt}),L.prototype=b,b.constructor=L),(B||Y)&&($("delete"),$("has"),R&&$("get")),(Y||U)&&$(T),N&&b.clear&&delete b.clear}return D[I]=L,r({global:!0,constructor:!0,forced:L!==C},D),E(L,I),N||A.setStrong(L,I,R),L}},93706:function(i,h,t){var r=t(94879),n=t(16885),a=t(71349),o=t(7831);i.exports=function(s,u,l){for(var v=n(u),d=o.f,g=a.f,y=0;y"+g+""}},10659:function(i){i.exports=function(h,t){return{value:h,done:t}}},90809:function(i,h,t){var r=t(92986),n=t(7831),a=t(18526);i.exports=r?function(o,s,u){return n.f(o,s,a(1,u))}:function(o,s,u){return o[s]=u,o}},18526:function(i){i.exports=function(h,t){return{enumerable:!(h&1),configurable:!(h&2),writable:!(h&4),value:t}}},84082:function(i,h,t){var r=t(92986),n=t(7831),a=t(18526);i.exports=function(o,s,u){r?n.f(o,s,a(0,u)):o[s]=u}},11890:function(i,h,t){var r=t(11286),n=t(72069),a=t(61607).start,o=RangeError,s=isFinite,u=Math.abs,l=Date.prototype,v=l.toISOString,d=r(l.getTime),g=r(l.getUTCDate),y=r(l.getUTCFullYear),p=r(l.getUTCHours),m=r(l.getUTCMilliseconds),E=r(l.getUTCMinutes),S=r(l.getUTCMonth),I=r(l.getUTCSeconds);i.exports=n(function(){return v.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!n(function(){v.call(new Date(NaN))})?function(){if(!s(d(this)))throw new o("Invalid time value");var A=this,R=y(A),N=m(A),T=R<0?"-":R>9999?"+":"";return T+a(u(R),T?6:4,0)+"-"+a(S(A)+1,2,0)+"-"+a(g(A),2,0)+"T"+a(p(A),2,0)+":"+a(E(A),2,0)+":"+a(I(A),2,0)+"."+a(N,3,0)+"Z"}:v},84306:function(i,h,t){var r=t(25001),n=t(2064),a=TypeError;i.exports=function(o){if(r(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new a("Incorrect hint");return n(this,o)}},85500:function(i,h,t){var r=t(13749),n=t(7831);i.exports=function(a,o,s){return s.get&&r(s.get,o,{getter:!0}),s.set&&r(s.set,o,{setter:!0}),n.f(a,o,s)}},16142:function(i,h,t){var r=t(23583),n=t(7831),a=t(13749),o=t(36003);i.exports=function(s,u,l,v){v||(v={});var d=v.enumerable,g=v.name!==void 0?v.name:u;if(r(l)&&a(l,g,v),v.global)d?s[u]=l:o(u,l);else{try{v.unsafe?s[u]&&(d=!0):delete s[u]}catch(y){}d?s[u]=l:n.f(s,u,{value:l,enumerable:!1,configurable:!v.nonConfigurable,writable:!v.nonWritable})}return s}},2725:function(i,h,t){var r=t(16142);i.exports=function(n,a,o){for(var s in a)r(n,s,a[s],o);return n}},36003:function(i,h,t){var r=t(66009),n=Object.defineProperty;i.exports=function(a,o){try{n(r,a,{value:o,configurable:!0,writable:!0})}catch(s){r[a]=o}return o}},12384:function(i,h,t){var r=t(82453),n=TypeError;i.exports=function(a,o){if(!delete a[o])throw new n("Cannot delete property "+r(o)+" of "+r(a))}},92986:function(i,h,t){var r=t(72069);i.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},63741:function(i,h,t){var r=t(66009),n=t(18096),a=t(99050),o=r.structuredClone,s=r.ArrayBuffer,u=r.MessageChannel,l=!1,v,d,g,y;if(a)l=function(p){o(p,{transfer:[p]})};else if(s)try{u||(v=n("worker_threads"),v&&(u=v.MessageChannel)),u&&(d=new u,g=new s(2),y=function(p){d.port1.postMessage(null,[p])},g.byteLength===2&&(y(g),g.byteLength===0&&(l=y)))}catch(p){}i.exports=l},85501:function(i,h,t){var r=t(66009),n=t(37540),a=r.document,o=n(a)&&n(a.createElement);i.exports=function(s){return o?a.createElement(s):{}}},20095:function(i){var h=TypeError,t=9007199254740991;i.exports=function(r){if(r>t)throw h("Maximum allowed index exceeded");return r}},74408:function(i){i.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},93014:function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},39882:function(i,h,t){var r=t(85501),n=r("span").classList,a=n&&n.constructor&&n.constructor.prototype;i.exports=a===Object.prototype?void 0:a},54040:function(i,h,t){var r=t(89042),n=r.match(/firefox\/(\d+)/i);i.exports=!!n&&+n[1]},63144:function(i,h,t){var r=t(56422),n=t(42954);i.exports=!r&&!n&&typeof window=="object"&&typeof document=="object"},5017:function(i){i.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},56422:function(i){i.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},87216:function(i,h,t){var r=t(89042);i.exports=/MSIE|Trident/.test(r)},92150:function(i,h,t){var r=t(89042);i.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble!="undefined"},51149:function(i,h,t){var r=t(89042);i.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},42954:function(i,h,t){var r=t(66009),n=t(14274);i.exports=n(r.process)==="process"},81539:function(i,h,t){var r=t(89042);i.exports=/web0s(?!.*chrome)/i.test(r)},89042:function(i){i.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},73126:function(i,h,t){var r=t(66009),n=t(89042),a=r.process,o=r.Deno,s=a&&a.versions||o&&o.version,u=s&&s.v8,l,v;u&&(l=u.split("."),v=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!v&&n&&(l=n.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=n.match(/Chrome\/(\d+)/),l&&(v=+l[1]))),i.exports=v},68674:function(i,h,t){var r=t(89042),n=r.match(/AppleWebKit\/(\d+)\./);i.exports=!!n&&+n[1]},75785:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},40851:function(i,h,t){var r=t(11286),n=Error,a=r("".replace),o=function(l){return String(new n(l).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(o);i.exports=function(l,v){if(u&&typeof l=="string"&&!n.prepareStackTrace)for(;v--;)l=a(l,s,"");return l}},97077:function(i,h,t){var r=t(90809),n=t(40851),a=t(16929),o=Error.captureStackTrace;i.exports=function(s,u,l,v){a&&(o?o(s,u):r(s,"stack",n(l,v)))}},16929:function(i,h,t){var r=t(72069),n=t(18526);i.exports=!r(function(){var a=new Error("a");return"stack"in a?(Object.defineProperty(a,"stack",n(1,7)),a.stack!==7):!0})},58434:function(i,h,t){var r=t(92986),n=t(72069),a=t(25001),o=t(15453),s=Error.prototype.toString,u=n(function(){if(r){var l=Object.create(Object.defineProperty({},"name",{get:function(){return this===l}}));if(s.call(l)!=="true")return!0}return s.call({message:1,name:2})!=="2: 1"||s.call({})!=="Error"});i.exports=u?function(){var v=a(this),d=o(v.name,"Error"),g=o(v.message);return d?g?d+": "+g:d:g}:s},14304:function(i,h,t){var r=t(66009),n=t(71349).f,a=t(90809),o=t(16142),s=t(36003),u=t(93706),l=t(13278);i.exports=function(v,d){var g=v.target,y=v.global,p=v.stat,m,E,S,I,P,A;if(y?E=r:p?E=r[g]||s(g,{}):E=r[g]&&r[g].prototype,E)for(S in d){if(P=d[S],v.dontCallGetSet?(A=n(E,S),I=A&&A.value):I=E[S],m=l(y?S:g+(p?".":"#")+S,v.forced),!m&&I!==void 0){if(typeof P==typeof I)continue;u(P,I)}(v.sham||I&&I.sham)&&a(P,"sham",!0),o(E,S,P,v)}}},72069:function(i){i.exports=function(h){try{return!!h()}catch(t){return!0}}},63194:function(i,h,t){t(31145);var r=t(96499),n=t(16142),a=t(44381),o=t(72069),s=t(18565),u=t(90809),l=s("species"),v=RegExp.prototype;i.exports=function(d,g,y,p){var m=s(d),E=!o(function(){var A={};return A[m]=function(){return 7},""[d](A)!==7}),S=E&&!o(function(){var A=!1,R=/a/;return d==="split"&&(R={},R.constructor={},R.constructor[l]=function(){return R},R.flags="",R[m]=/./[m]),R.exec=function(){return A=!0,null},R[m](""),!A});if(!E||!S||y){var I=/./[m],P=g(m,""[d],function(A,R,N,T,C){var b=R.exec;return b===a||b===v.exec?E&&!C?{done:!0,value:r(I,R,N,T)}:{done:!0,value:r(A,N,R,T)}:{done:!1}});n(String.prototype,d,P[0]),n(v,m,P[1])}p&&u(v[m],"sham",!0)}},53149:function(i,h,t){var r=t(3438),n=t(82628),a=t(20095),o=t(45526),s=function(u,l,v,d,g,y,p,m){for(var E=g,S=0,I=p?o(p,m):!1,P,A;S0&&r(P)?(A=n(P),E=s(u,l,P,A,E,y-1)-1):(a(E+1),u[E]=P),E++),S++;return E};i.exports=s},27534:function(i,h,t){var r=t(72069);i.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},66543:function(i,h,t){var r=t(87878),n=Function.prototype,a=n.apply,o=n.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},45526:function(i,h,t){var r=t(77422),n=t(85156),a=t(87878),o=r(r.bind);i.exports=function(s,u){return n(s),u===void 0?s:a?o(s,u):function(){return s.apply(u,arguments)}}},87878:function(i,h,t){var r=t(72069);i.exports=!r(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})},91384:function(i,h,t){var r=t(11286),n=t(85156),a=t(37540),o=t(94879),s=t(22806),u=t(87878),l=Function,v=r([].concat),d=r([].join),g={},y=function(p,m,E){if(!o(g,m)){for(var S=[],I=0;I]*>)/g,v=/\$([$&'`]|\d{1,2})/g;i.exports=function(d,g,y,p,m,E){var S=y+d.length,I=p.length,P=v;return m!==void 0&&(m=n(m),P=l),s(E,P,function(A,R){var N;switch(o(R,0)){case"$":return"$";case"&":return d;case"`":return u(g,0,y);case"'":return u(g,S);case"<":N=m[u(R,1,-1)];break;default:var T=+R;if(T===0)return A;if(T>I){var C=a(T/10);return C===0?A:C<=I?p[C-1]===void 0?o(R,1):p[C-1]+o(R,1):A}N=p[T-1]}return N===void 0?"":N})}},66009:function(i){var h=function(t){return t&&t.Math===Math&&t};i.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof global=="object"&&global)||h(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},94879:function(i,h,t){var r=t(11286),n=t(49671),a=r({}.hasOwnProperty);i.exports=Object.hasOwn||function(s,u){return a(n(s),u)}},19423:function(i){i.exports={}},99095:function(i){i.exports=function(h,t){try{arguments.length===1?console.error(h):console.error(h,t)}catch(r){}}},96439:function(i,h,t){var r=t(38941);i.exports=r("document","documentElement")},52515:function(i,h,t){var r=t(92986),n=t(72069),a=t(85501);i.exports=!r&&!n(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!==7})},25212:function(i){var h=Array,t=Math.abs,r=Math.pow,n=Math.floor,a=Math.log,o=Math.LN2,s=function(l,v,d){var g=h(d),y=d*8-v-1,p=(1<>1,E=v===23?r(2,-24)-r(2,-77):0,S=l<0||l===0&&1/l<0?1:0,I=0,P,A,R;for(l=t(l),l!==l||l===1/0?(A=l!==l?1:0,P=p):(P=n(a(l)/o),R=r(2,-P),l*R<1&&(P--,R*=2),P+m>=1?l+=E/R:l+=E*r(2,1-m),l*R>=2&&(P++,R/=2),P+m>=p?(A=0,P=p):P+m>=1?(A=(l*R-1)*r(2,v),P+=m):(A=l*r(2,m-1)*r(2,v),P=0));v>=8;)g[I++]=A&255,A/=256,v-=8;for(P=P<0;)g[I++]=P&255,P/=256,y-=8;return g[--I]|=S*128,g},u=function(l,v){var d=l.length,g=d*8-v-1,y=(1<>1,m=g-7,E=d-1,S=l[E--],I=S&127,P;for(S>>=7;m>0;)I=I*256+l[E--],m-=8;for(P=I&(1<<-m)-1,I>>=-m,m+=v;m>0;)P=P*256+l[E--],m-=8;if(I===0)I=1-p;else{if(I===y)return P?NaN:S?-1/0:1/0;P+=r(2,v),I-=p}return(S?-1:1)*P*r(2,I-v)};i.exports={pack:s,unpack:u}},72181:function(i,h,t){var r=t(11286),n=t(72069),a=t(14274),o=Object,s=r("".split);i.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(u){return a(u)==="String"?s(u,""):o(u)}:o},32345:function(i,h,t){var r=t(23583),n=t(37540),a=t(15861);i.exports=function(o,s,u){var l,v;return a&&r(l=s.constructor)&&l!==u&&n(v=l.prototype)&&v!==u.prototype&&a(o,v),o}},84352:function(i,h,t){var r=t(11286),n=t(23583),a=t(70443),o=r(Function.toString);n(a.inspectSource)||(a.inspectSource=function(s){return o(s)}),i.exports=a.inspectSource},31486:function(i,h,t){var r=t(37540),n=t(90809);i.exports=function(a,o){r(o)&&"cause"in o&&n(a,"cause",o.cause)}},31853:function(i,h,t){var r=t(14304),n=t(11286),a=t(19423),o=t(37540),s=t(94879),u=t(7831).f,l=t(83258),v=t(92880),d=t(28174),g=t(36374),y=t(27534),p=!1,m=g("meta"),E=0,S=function(T){u(T,m,{value:{objectID:"O"+E++,weakData:{}}})},I=function(T,C){if(!o(T))return typeof T=="symbol"?T:(typeof T=="string"?"S":"P")+T;if(!s(T,m)){if(!d(T))return"F";if(!C)return"E";S(T)}return T[m].objectID},P=function(T,C){if(!s(T,m)){if(!d(T))return!0;if(!C)return!1;S(T)}return T[m].weakData},A=function(T){return y&&p&&d(T)&&!s(T,m)&&S(T),T},R=function(){N.enable=function(){},p=!0;var T=l.f,C=n([].splice),b={};b[m]=1,T(b).length&&(l.f=function(L){for(var D=T(L),$=0,w=D.length;$D;D++)if(w=j(E[D]),w&&l(m,w))return w;return new p(!1)}b=v(E,L)}for(H=R?E.next:b.next;!(U=n(H,b)).done;){try{w=j(U.value)}catch(Y){g(b,"throw",Y)}if(typeof w=="object"&&w&&l(m,w))return w}return new p(!1)}},99797:function(i,h,t){var r=t(96499),n=t(25001),a=t(10512);i.exports=function(o,s,u){var l,v;n(o);try{if(l=a(o,"return"),!l){if(s==="throw")throw u;return u}l=r(l,o)}catch(d){v=!0,l=d}if(s==="throw")throw u;if(v)throw l;return n(l),u}},26820:function(i,h,t){var r=t(24519).IteratorPrototype,n=t(5406),a=t(18526),o=t(78401),s=t(29107),u=function(){return this};i.exports=function(l,v,d,g){var y=v+" Iterator";return l.prototype=n(r,{next:a(+!g,d)}),o(l,y,!1,!0),s[y]=u,l}},10218:function(i,h,t){var r=t(14304),n=t(96499),a=t(70457),o=t(86588),s=t(23583),u=t(26820),l=t(26313),v=t(15861),d=t(78401),g=t(90809),y=t(16142),p=t(18565),m=t(29107),E=t(24519),S=o.PROPER,I=o.CONFIGURABLE,P=E.IteratorPrototype,A=E.BUGGY_SAFARI_ITERATORS,R=p("iterator"),N="keys",T="values",C="entries",b=function(){return this};i.exports=function(L,D,$,w,H,U,B){u($,D,w);var j=function(It){if(It===H&&_)return _;if(!A&&It&&It in J)return J[It];switch(It){case N:return function(){return new $(this,It)};case T:return function(){return new $(this,It)};case C:return function(){return new $(this,It)}}return function(){return new $(this)}},Y=D+" Iterator",k=!1,J=L.prototype,nt=J[R]||J["@@iterator"]||H&&J[H],_=!A&&nt||j(H),dt=D==="Array"&&J.entries||nt,lt,gt,St;if(dt&&(lt=l(dt.call(new L)),lt!==Object.prototype&<.next&&(!a&&l(lt)!==P&&(v?v(lt,P):s(lt[R])||y(lt,R,b)),d(lt,Y,!0,!0),a&&(m[Y]=b))),S&&H===T&&nt&&nt.name!==T&&(!a&&I?g(J,"name",T):(k=!0,_=function(){return n(nt,this)})),H)if(gt={values:j(T),keys:U?_:j(N),entries:j(C)},B)for(St in gt)(A||k||!(St in J))&&y(J,St,gt[St]);else r({target:D,proto:!0,forced:A||k},gt);return(!a||B)&&J[R]!==_&&y(J,R,_,{name:H}),m[D]=_,gt}},24519:function(i,h,t){var r=t(72069),n=t(23583),a=t(37540),o=t(5406),s=t(26313),u=t(16142),l=t(18565),v=t(70457),d=l("iterator"),g=!1,y,p,m;[].keys&&(m=[].keys(),"next"in m?(p=s(s(m)),p!==Object.prototype&&(y=p)):g=!0);var E=!a(y)||r(function(){var S={};return y[d].call(S)!==S});E?y={}:v&&(y=o(y)),n(y[d])||u(y,d,function(){return this}),i.exports={IteratorPrototype:y,BUGGY_SAFARI_ITERATORS:g}},29107:function(i){i.exports={}},82628:function(i,h,t){var r=t(45344);i.exports=function(n){return r(n.length)}},13749:function(i,h,t){var r=t(11286),n=t(72069),a=t(23583),o=t(94879),s=t(92986),u=t(86588).CONFIGURABLE,l=t(84352),v=t(82367),d=v.enforce,g=v.get,y=String,p=Object.defineProperty,m=r("".slice),E=r("".replace),S=r([].join),I=s&&!n(function(){return p(function(){},"length",{value:8}).length!==8}),P=String(String).split("String"),A=i.exports=function(R,N,T){m(y(N),0,7)==="Symbol("&&(N="["+E(y(N),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),T&&T.getter&&(N="get "+N),T&&T.setter&&(N="set "+N),(!o(R,"name")||u&&R.name!==N)&&(s?p(R,"name",{value:N,configurable:!0}):R.name=N),I&&T&&o(T,"arity")&&R.length!==T.arity&&p(R,"length",{value:T.arity});try{T&&o(T,"constructor")&&T.constructor?s&&p(R,"prototype",{writable:!1}):R.prototype&&(R.prototype=void 0)}catch(b){}var C=d(R);return o(C,"source")||(C.source=S(P,typeof N=="string"?N:"")),R};Function.prototype.toString=A(function(){return a(this)&&g(this).source||l(this)},"toString")},1774:function(i,h,t){var r=t(11286),n=Map.prototype;i.exports={Map,set:r(n.set),get:r(n.get),has:r(n.has),remove:r(n.delete),proto:n}},98940:function(i){var h=Math.expm1,t=Math.exp;i.exports=!h||h(10)>22025.465794806718||h(10)<22025.465794806718||h(-2e-17)!==-2e-17?function(n){var a=+n;return a===0?a:a>-1e-6&&a<1e-6?a+a*a/2:t(a)-1}:h},10418:function(i,h,t){var r=t(93976),n=Math.abs,a=2220446049250313e-31,o=1/a,s=function(u){return u+o-o};i.exports=function(u,l,v,d){var g=+u,y=n(g),p=r(g);if(yv||E!==E?p*(1/0):p*E}},93279:function(i,h,t){var r=t(10418),n=11920928955078125e-23,a=34028234663852886e22,o=11754943508222875e-54;i.exports=Math.fround||function(u){return r(u,n,a,o)}},41942:function(i){var h=Math.log,t=Math.LOG10E;i.exports=Math.log10||function(n){return h(n)*t}},49366:function(i){var h=Math.log;i.exports=Math.log1p||function(r){var n=+r;return n>-1e-8&&n<1e-8?n-n*n/2:h(1+n)}},93976:function(i){i.exports=Math.sign||function(t){var r=+t;return r===0||r!==r?r:r<0?-1:1}},22459:function(i){var h=Math.ceil,t=Math.floor;i.exports=Math.trunc||function(n){var a=+n;return(a>0?t:h)(a)}},9709:function(i,h,t){var r=t(66009),n=t(28167),a=t(45526),o=t(23115).set,s=t(76895),u=t(51149),l=t(92150),v=t(81539),d=t(42954),g=r.MutationObserver||r.WebKitMutationObserver,y=r.document,p=r.process,m=r.Promise,E=n("queueMicrotask"),S,I,P,A,R;if(!E){var N=new s,T=function(){var C,b;for(d&&(C=p.domain)&&C.exit();b=N.get();)try{b()}catch(L){throw N.head&&S(),L}C&&C.enter()};!u&&!d&&!v&&g&&y?(I=!0,P=y.createTextNode(""),new g(T).observe(P,{characterData:!0}),S=function(){P.data=I=!I}):!l&&m&&m.resolve?(A=m.resolve(void 0),A.constructor=m,R=a(A.then,A),S=function(){R(T)}):d?S=function(){p.nextTick(T)}:(o=a(o,r),S=function(){o(T)}),E=function(C){N.head||S(),N.add(C)}}i.exports=E},24649:function(i,h,t){var r=t(85156),n=TypeError,a=function(o){var s,u;this.promise=new o(function(l,v){if(s!==void 0||u!==void 0)throw new n("Bad Promise constructor");s=l,u=v}),this.resolve=r(s),this.reject=r(u)};i.exports.f=function(o){return new a(o)}},15453:function(i,h,t){var r=t(17361);i.exports=function(n,a){return n===void 0?arguments.length<2?"":a:r(n)}},92337:function(i,h,t){var r=t(11566),n=TypeError;i.exports=function(a){if(r(a))throw new n("The method doesn't accept regular expressions");return a}},98074:function(i,h,t){var r=t(66009),n=r.isFinite;i.exports=Number.isFinite||function(o){return typeof o=="number"&&n(o)}},25838:function(i,h,t){var r=t(66009),n=t(72069),a=t(11286),o=t(17361),s=t(85900).trim,u=t(77082),l=a("".charAt),v=r.parseFloat,d=r.Symbol,g=d&&d.iterator,y=1/v(u+"-0")!==-1/0||g&&!n(function(){v(Object(g))});i.exports=y?function(m){var E=s(o(m)),S=v(E);return S===0&&l(E,0)==="-"?-0:S}:v},23009:function(i,h,t){var r=t(66009),n=t(72069),a=t(11286),o=t(17361),s=t(85900).trim,u=t(77082),l=r.parseInt,v=r.Symbol,d=v&&v.iterator,g=/^[+-]?0x/i,y=a(g.exec),p=l(u+"08")!==8||l(u+"0x16")!==22||d&&!n(function(){l(Object(d))});i.exports=p?function(E,S){var I=s(o(E));return l(I,S>>>0||(y(g,I)?16:10))}:l},16667:function(i,h,t){var r=t(92986),n=t(11286),a=t(96499),o=t(72069),s=t(18350),u=t(24943),l=t(79591),v=t(49671),d=t(72181),g=Object.assign,y=Object.defineProperty,p=n([].concat);i.exports=!g||o(function(){if(r&&g({b:1},g(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var m={},E={},S=Symbol("assign detection"),I="abcdefghijklmnopqrst";return m[S]=7,I.split("").forEach(function(P){E[P]=P}),g({},m)[S]!==7||s(g({},E)).join("")!==I})?function(E,S){for(var I=v(E),P=arguments.length,A=1,R=u.f,N=l.f;P>A;)for(var T=d(arguments[A++]),C=R?p(s(T),R(T)):s(T),b=C.length,L=0,D;b>L;)D=C[L++],(!r||a(N,T,D))&&(I[D]=T[D]);return I}:g},5406:function(i,h,t){var r=t(25001),n=t(61963),a=t(75785),o=t(19423),s=t(96439),u=t(85501),l=t(44869),v=">",d="<",g="prototype",y="script",p=l("IE_PROTO"),m=function(){},E=function(R){return d+y+v+R+d+"/"+y+v},S=function(R){R.write(E("")),R.close();var N=R.parentWindow.Object;return R=null,N},I=function(){var R=u("iframe"),N="java"+y+":",T;return R.style.display="none",s.appendChild(R),R.src=String(N),T=R.contentWindow.document,T.open(),T.write(E("document.F=Object")),T.close(),T.F},P,A=function(){try{P=new ActiveXObject("htmlfile")}catch(N){}A=typeof document!="undefined"?document.domain&&P?S(P):I():S(P);for(var R=a.length;R--;)delete A[g][a[R]];return A()};o[p]=!0,i.exports=Object.create||function(N,T){var C;return N!==null?(m[g]=r(N),C=new m,m[g]=null,C[p]=N):C=A(),T===void 0?C:n.f(C,T)}},61963:function(i,h,t){var r=t(92986),n=t(356),a=t(7831),o=t(25001),s=t(36859),u=t(18350);h.f=r&&!n?Object.defineProperties:function(v,d){o(v);for(var g=s(d),y=u(d),p=y.length,m=0,E;p>m;)a.f(v,E=y[m++],g[E]);return v}},7831:function(i,h,t){var r=t(92986),n=t(52515),a=t(356),o=t(25001),s=t(50035),u=TypeError,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,d="enumerable",g="configurable",y="writable";h.f=r?a?function(m,E,S){if(o(m),E=s(E),o(S),typeof m=="function"&&E==="prototype"&&"value"in S&&y in S&&!S[y]){var I=v(m,E);I&&I[y]&&(m[E]=S.value,S={configurable:g in S?S[g]:I[g],enumerable:d in S?S[d]:I[d],writable:!1})}return l(m,E,S)}:l:function(m,E,S){if(o(m),E=s(E),o(S),n)try{return l(m,E,S)}catch(I){}if("get"in S||"set"in S)throw new u("Accessors not supported");return"value"in S&&(m[E]=S.value),m}},71349:function(i,h,t){var r=t(92986),n=t(96499),a=t(79591),o=t(18526),s=t(36859),u=t(50035),l=t(94879),v=t(52515),d=Object.getOwnPropertyDescriptor;h.f=r?d:function(y,p){if(y=s(y),p=u(p),v)try{return d(y,p)}catch(m){}if(l(y,p))return o(!n(a.f,y,p),y[p])}},92880:function(i,h,t){var r=t(14274),n=t(36859),a=t(83258).f,o=t(22806),s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(l){try{return a(l)}catch(v){return o(s)}};i.exports.f=function(v){return s&&r(v)==="Window"?u(v):a(n(v))}},83258:function(i,h,t){var r=t(6242),n=t(75785),a=n.concat("length","prototype");h.f=Object.getOwnPropertyNames||function(s){return r(s,a)}},24943:function(i,h){h.f=Object.getOwnPropertySymbols},26313:function(i,h,t){var r=t(94879),n=t(23583),a=t(49671),o=t(44869),s=t(87501),u=o("IE_PROTO"),l=Object,v=l.prototype;i.exports=s?l.getPrototypeOf:function(d){var g=a(d);if(r(g,u))return g[u];var y=g.constructor;return n(y)&&g instanceof y?y.prototype:g instanceof l?v:null}},28174:function(i,h,t){var r=t(72069),n=t(37540),a=t(14274),o=t(72058),s=Object.isExtensible,u=r(function(){s(1)});i.exports=u||o?function(v){return!n(v)||o&&a(v)==="ArrayBuffer"?!1:s?s(v):!0}:s},95307:function(i,h,t){var r=t(11286);i.exports=r({}.isPrototypeOf)},6242:function(i,h,t){var r=t(11286),n=t(94879),a=t(36859),o=t(94319).indexOf,s=t(19423),u=r([].push);i.exports=function(l,v){var d=a(l),g=0,y=[],p;for(p in d)!n(s,p)&&n(d,p)&&u(y,p);for(;v.length>g;)n(d,p=v[g++])&&(~o(y,p)||u(y,p));return y}},18350:function(i,h,t){var r=t(6242),n=t(75785);i.exports=Object.keys||function(o){return r(o,n)}},79591:function(i,h){var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);h.f=n?function(o){var s=r(this,o);return!!s&&s.enumerable}:t},57629:function(i,h,t){var r=t(70457),n=t(66009),a=t(72069),o=t(68674);i.exports=r||!a(function(){if(!(o&&o<535)){var s=Math.random();__defineSetter__.call(null,s,function(){}),delete n[s]}})},15861:function(i,h,t){var r=t(84756),n=t(37540),a=t(2068),o=t(53408);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,u={},l;try{l=r(Object.prototype,"__proto__","set"),l(u,[]),s=u instanceof Array}catch(v){}return function(d,g){return a(d),o(g),n(d)&&(s?l(d,g):d.__proto__=g),d}}():void 0)},8511:function(i,h,t){var r=t(92986),n=t(72069),a=t(11286),o=t(26313),s=t(18350),u=t(36859),l=t(79591).f,v=a(l),d=a([].push),g=r&&n(function(){var p=Object.create(null);return p[2]=2,!v(p,2)}),y=function(p){return function(m){for(var E=u(m),S=s(E),I=g&&o(E)===null,P=S.length,A=0,R=[],N;P>A;)N=S[A++],(!r||(I?N in E:v(E,N)))&&d(R,p?[N,E[N]]:E[N]);return R}};i.exports={entries:y(!0),values:y(!1)}},60105:function(i,h,t){var r=t(67878),n=t(9205);i.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},2064:function(i,h,t){var r=t(96499),n=t(23583),a=t(37540),o=TypeError;i.exports=function(s,u){var l,v;if(u==="string"&&n(l=s.toString)&&!a(v=r(l,s))||n(l=s.valueOf)&&!a(v=r(l,s))||u!=="string"&&n(l=s.toString)&&!a(v=r(l,s)))return v;throw new o("Can't convert object to primitive value")}},16885:function(i,h,t){var r=t(38941),n=t(11286),a=t(83258),o=t(24943),s=t(25001),u=n([].concat);i.exports=r("Reflect","ownKeys")||function(v){var d=a.f(s(v)),g=o.f;return g?u(d,g(v)):d}},75081:function(i,h,t){var r=t(66009);i.exports=r},67805:function(i){i.exports=function(h){try{return{error:!1,value:h()}}catch(t){return{error:!0,value:t}}}},37130:function(i,h,t){var r=t(66009),n=t(98844),a=t(23583),o=t(13278),s=t(84352),u=t(18565),l=t(63144),v=t(56422),d=t(70457),g=t(73126),y=n&&n.prototype,p=u("species"),m=!1,E=a(r.PromiseRejectionEvent),S=o("Promise",function(){var I=s(n),P=I!==String(n);if(!P&&g===66||d&&!(y.catch&&y.finally))return!0;if(!g||g<51||!/native code/.test(I)){var A=new n(function(T){T(1)}),R=function(T){T(function(){},function(){})},N=A.constructor={};if(N[p]=R,m=A.then(function(){})instanceof R,!m)return!0}return!P&&(l||v)&&!E});i.exports={CONSTRUCTOR:S,REJECTION_EVENT:E,SUBCLASSING:m}},98844:function(i,h,t){var r=t(66009);i.exports=r.Promise},87408:function(i,h,t){var r=t(25001),n=t(37540),a=t(24649);i.exports=function(o,s){if(r(o),n(s)&&s.constructor===o)return s;var u=a.f(o),l=u.resolve;return l(s),u.promise}},26035:function(i,h,t){var r=t(98844),n=t(97494),a=t(37130).CONSTRUCTOR;i.exports=a||!n(function(o){r.all(o).then(void 0,function(){})})},2594:function(i,h,t){var r=t(7831).f;i.exports=function(n,a,o){o in n||r(n,o,{configurable:!0,get:function(){return a[o]},set:function(s){a[o]=s}})}},76895:function(i){var h=function(){this.head=null,this.tail=null};h.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}},i.exports=h},33064:function(i,h,t){var r=t(96499),n=t(25001),a=t(23583),o=t(14274),s=t(44381),u=TypeError;i.exports=function(l,v){var d=l.exec;if(a(d)){var g=r(d,l,v);return g!==null&&n(g),g}if(o(l)==="RegExp")return r(s,l,v);throw new u("RegExp#exec called on incompatible receiver")}},44381:function(i,h,t){var r=t(96499),n=t(11286),a=t(17361),o=t(29833),s=t(39807),u=t(96731),l=t(5406),v=t(82367).get,d=t(76769),g=t(85220),y=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,E=n("".charAt),S=n("".indexOf),I=n("".replace),P=n("".slice),A=function(){var C=/a/,b=/b*/g;return r(p,C,"a"),r(p,b,"a"),C.lastIndex!==0||b.lastIndex!==0}(),R=s.BROKEN_CARET,N=/()??/.exec("")[1]!==void 0,T=A||N||R||d||g;T&&(m=function(b){var L=this,D=v(L),$=a(b),w=D.raw,H,U,B,j,Y,k,J;if(w)return w.lastIndex=L.lastIndex,H=r(m,w,$),L.lastIndex=w.lastIndex,H;var nt=D.groups,_=R&&L.sticky,dt=r(o,L),lt=L.source,gt=0,St=$;if(_&&(dt=I(dt,"y",""),S(dt,"g")===-1&&(dt+="g"),St=P($,L.lastIndex),L.lastIndex>0&&(!L.multiline||L.multiline&&E($,L.lastIndex-1)!==` +`),F=x?M.length-1:1;e.html(""),M.forEach((G,W)=>{e.append("tspan").attr("x",0).attr("dy",`${W===0?c[0]*F:c[1]}em`).text(G)})}}}function Qs(e){const{x:f,y:c,width:x,height:O}=e.getBBox();return[{x:f,y:c+O},{x:f,y:c},{x:f+x,y:c},{x:f+x,y:c+O}]}function Fi(e){const{width:f,height:c}=e.getBoundingClientRect(),x=Qs(e),O=x[0].x,M=Math.min(x[0].y,x[1].y);return{x:O,y:M,width:f,height:c}}function Li(e,f){var c;const x=e&&((c=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:c[0]);let O=[0,0];try{O=d3Pointer(x||e,f)}catch(M){}return O.map(M=>isNaN(M)?0:M)}function Zs(e){const{event:f,$el:c}=e,x=c.subchart.main||c.main;let O;return f&&f.type==="brush"?O=f.selection:x&&(O=x.select(".bb-brush").node())&&(O=d3BrushSelection(O)),O}function $i(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function Ui(e=!0,f=0,c=1e4){const x=window.crypto||window.msCrypto,O=x?f+x.getRandomValues(new Uint32Array(1))[0]%(c-f+1):Math.floor(Math.random()*(c-f)+f);return e?String(O):O}function ma(e,f,c,x,O){if(c>x)return-1;const M=Math.floor((c+x)/2);let{x:F,w:G=0}=e[M];return O&&(F=e[M].y,G=e[M].h),f>=F&&f<=F+G?M:f{if(re(c)&&c.constructor){const x=new c.constructor;for(const O in c)x[O]=f(c[O]);return x}return c};return e.map(c=>f(c)).reduce((c,x)=>ya(ya({},c),x))}function ks(e={},f){Ie(f)&&f.forEach(c=>ks(e,c));for(const c in f)/^\d+$/.test(c)||c in e||(e[c]=f[c]);return e}const wi=e=>e.charAt(0).toUpperCase()+e.slice(1);function Gi(e,f="-"){return e.split(f).map((c,x)=>x?c.charAt(0).toUpperCase()+c.slice(1).toLowerCase():c.toLowerCase()).join("")}const qs=e=>[].slice.call(e);function Hi(e,f,c){const{rootSelector:x="",sheet:O}=e,F=`${x} ${(G=>G.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(f)} {${c.join(";")}}`;return O[O.insertRule?"insertRule":"addRule"](F,O.cssRules.length)}function Vi(e){let f=[];return e.forEach(c=>{var x;try{c.cssRules&&c.cssRules.length&&(f=f.concat(qs(c.cssRules)))}catch(O){(x=window.console)==null||x.warn(`Error while reading rules from ${c.href}: ${O.toString()}`)}}),f}function Wi(e){var f,c,x,O;return{x:((c=(f=window.pageXOffset)!=null?f:window.scrollX)!=null?c:0)+e.scrollLeft,y:((O=(x=window.pageYOffset)!=null?x:window.scrollY)!=null?O:0)+e.scrollTop}}function zi(e){const f=e?e.transform:null,c=f&&f.baseVal;return c&&c.numberOfItems?c.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Yi(e){const f=e[0]instanceof Date,c=(f?e.map(Number):e).filter((x,O,M)=>M.indexOf(x)===O);return f?c.map(x=>new Date(x)):c}function Ki(e){return e&&e.length?e.reduce((f,c)=>f.concat(c)):[]}function Te(e,...f){if(!f.length||f.length===1&&!f[0])return e;const c=f.shift();return re(e)&&re(c)&&Object.keys(c).forEach(x=>{const O=c[x];re(O)?(!e[x]&&(e[x]={}),e[x]=Te(e[x],O)):e[x]=Ie(O)?O.concat():O}),Te(e,...f)}function _s(e,f=!0){let c;return e[0]instanceof Date?c=f?(x,O)=>x-O:(x,O)=>O-x:f&&!e.every(isNaN)?c=(x,O)=>x-O:f||(c=(x,O)=>x>O&&-1||xJs(x));return c.length?Ee(c[0])?c=Math[e](...c):c[0]instanceof Date&&(c=_s(c,e==="min")[0]):c=void 0,c}const Ji=(e,f,c=1)=>{const x=[],O=Math.max(0,Math.ceil((f-e)/c))|0;for(let M=e;M{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(f,c,x=e())=>{f.dispatchEvent(new MouseEvent(c,x))}}catch(f){return(c,x,O=e())=>{const M=Hs.createEvent("MouseEvent");M.initMouseEvent(x,O.bubbles,O.cancelable,_n,0,O.screenX,O.screenY,O.clientX,O.clientY,!1,!1,!1,!1,0,null),c.dispatchEvent(M)}}})(),touch:(e,f,c)=>{const x=new Touch(Te({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},c));e.dispatchEvent(new TouchEvent(f,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[x],targetTouches:[],changedTouches:[x]}))}};function Zi(e,f){let c=e;for(const x in f)c=c.replace(new RegExp(`{=${x}}`,"g"),f[x]);return c}function ki(e){var f;let c;if(e instanceof Date)c=e;else if(te(e)){const{config:x,format:O}=this;c=(f=O.dataTime(x.data_xFormat)(e))!=null?f:new Date(e)}else Ee(e)&&!isNaN(e)&&(c=new Date(+e));return(!c||isNaN(+c))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),c}function qi(){var e,f;return((e=document)==null?void 0:e.hidden)===!1||((f=document)==null?void 0:f.visibilityState)==="visible"}function _i(e,f){const{DocumentTouch:c,matchMedia:x,navigator:O}=window;let M=!1;if(f)if(O&&"maxTouchPoints"in O)M=O.maxTouchPoints>0;else if("ontouchmove"in window||c&&document instanceof c)M=!0;else if(x!=null&&x("(pointer:coarse)").matches)M=!0;else{const G=O.userAgent;M=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(G)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(G)}return e&&((x==null?void 0:x("any-hover:hover").matches)||(x==null?void 0:x("any-pointer:fine").matches))&&"mouse"||M&&"touch"||"mouse"}function ti(e,f){f()===!1?requestAnimationFrame(()=>ti(e,f)):e()}function ri(e){const f=this.config;let c,x,O;const M=()=>{const F=x.shift();if(F&&c&&Oe(c)&&F in c)return c=c[F],M();if(!F)return c};Object.keys(f).forEach(F=>{c=e,x=F.split("_"),O=M(),pa(O)&&(f[F]=O)}),this.api&&(this.state.orgConfig=e)}var ni=Object.defineProperty,ei=(e,f,c)=>f in e?ni(e,f,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[f]=c,Ae=(e,f,c)=>ei(e,typeof f!="symbol"?f+"":f,c);class xa{constructor(f={}){Ae(this,"$$"),Ae(this,"options"),this.options=f}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(f=>{this[f]=null,delete this[f]})}}Ae(xa,"version","3.12.4-nightly-20240726004631");class ai{constructor(){return{selector:void 0}}}var oi=Object.defineProperty,si=(e,f,c)=>f in e?oi(e,f,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[f]=c,Re=(e,f,c)=>si(e,typeof f!="symbol"?f+"":f,c);class Sa extends xa{constructor(f){return super(f),Re(this,"config"),Re(this,"element"),this.config=new ai,this}$beforeInit(){ri.call(this,this.options),this.validate(),this.element=[].slice.call(document.querySelectorAll(this.config.selector)),this.overrideInternals(),this.overrideOptions(),this.overHandler=this.overHandler.bind(this),this.moveHandler=this.moveHandler.bind(this),this.outHandler=this.outHandler.bind(this)}validate(){const{$$:f,config:c}=this;let x="";if((!c.selector||!document.querySelector(c.selector))&&(x="No holder elements found from given selector option."),(f.hasType("bubble")||f.hasType("scatter")||f.hasArcType(f.data.targets))&&(x="Contains non supported chart types."),x)throw new Error(`[Sparkline plugin] ${x}`)}overrideInternals(){const{$$:f}=this,{getBarW:c,getIndices:x}=f;f.getIndices=function(O,M,F){return F==="getShapeX"?{}:x.call(this,O,M)},f.getBarW=function(O,M){return c.call(this,O,M,1)}}overrideOptions(){const{config:f}=this.$$;if(f.legend_show=!1,f.resize_auto=!1,f.axis_x_show=!1,f.padding!==!1){const c=x=>Object.keys(x||{}).length>0;c(f.axis_x_padding)&&(f.axis_x_padding={left:15,right:15,unit:"px"}),c(f.axis_y_padding)&&(f.axis_y_padding=5)}f.axis_y_show=!1,f.tooltip_position||(f.tooltip_position=function(c,x,O){const{internal:{state:{event:M}}}=this;let F=M.pageY-O*1.35,G=M.pageX-x/2;return F<0&&(F=0),G<0&&(G=0),{top:F,left:G}})}$init(){var f;const{$$:{$el:c}}=this;c.chart.style("width","0").style("height","0").style("pointer-events","none"),(f=c.tooltip)!=null&&f.node()&&document.body.appendChild(c.tooltip.node())}$afterInit(){const{$$:f}=this;f.$el.svg.attr("style",null).style("width","0").style("height","0"),this.bindEvents(!0)}bindEvents(f=!0){const{$$:{config:c}}=this;if(c.interaction_enabled&&c.tooltip_show){const x=`${f?"add":"remove"}EventListener`;this.element.forEach(O=>{const M=O.querySelector("svg");M[x]("mouseover",this.overHandler),M[x]("mousemove",this.moveHandler),M[x]("mouseout",this.outHandler)})}}overHandler(f){const{$$:c}=this,{state:{eventReceiver:x}}=c;x.rect=f.target.getBoundingClientRect()}moveHandler(f){var c,x,O,M;const{$$:F}=this,G=F.getDataIndexFromEvent(f),W=(c=F.api.data(f.target.__id))==null?void 0:c[0],tt=(x=W==null?void 0:W.values)==null?void 0:x[G];tt&&!tt.name&&(tt.name=tt.id),F.state.event=f,(O=F.isPointFocusOnly)!=null&&O.call(F)&&tt&&((M=F.showCircleFocus)==null||M.call(F,[tt])),F.setExpand(G,W.id,!0),F.showTooltip([tt],f.target)}outHandler(f){const{$$:c}=this;c.state.event=f,c.isPointFocusOnly()?c.hideCircleFocus():c.unexpandCircles(),c.hideTooltip()}$redraw(){var f;const{$$:c}=this,{$el:x}=c;let O=this.element;const M=c.api.data(),F=(f=x.chart.html().match(/]*>/))==null?void 0:f[0];if(O.length0;W--)G.parentNode.insertBefore(O[0].cloneNode(),G.nextSibling);this.element=document.querySelectorAll(this.config.selector),O=this.element}M.map(G=>G.id).forEach((G,W)=>{const tt=`.${l.target}-${G}`,et=x.main.selectAll(tt);let Et=O[W].querySelector("svg");Et||(O[W].innerHTML=`${F}`,Et=O[W].querySelector("svg"),Et.__id=G),Et.querySelector(tt)||et.style("opacity",null),et.style("fill","none").style("opacity",null),Et.innerHTML="",Et.appendChild(et.node())})}$willDestroy(){this.bindEvents(!1),this.element.forEach(f=>{f.innerHTML=""})}}Re(Sa,"version","0.0.1")},85156:function(i,h,t){var r=t(23583),n=t(82453),a=TypeError;i.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not a function")}},80042:function(i,h,t){var r=t(11051),n=t(82453),a=TypeError;i.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not a constructor")}},53408:function(i,h,t){var r=t(52427),n=String,a=TypeError;i.exports=function(o){if(r(o))return o;throw new a("Can't set "+n(o)+" as a prototype")}},76602:function(i,h,t){var r=t(172).has;i.exports=function(n){return r(n),n}},23811:function(i,h,t){var r=t(18565),n=t(5406),a=t(7831).f,o=r("unscopables"),s=Array.prototype;s[o]===void 0&&a(s,o,{configurable:!0,value:n(null)}),i.exports=function(u){s[o][u]=!0}},24487:function(i,h,t){var r=t(22149).charAt;i.exports=function(n,a,o){return a+(o?r(n,a).length:1)}},12833:function(i,h,t){var r=t(95307),n=TypeError;i.exports=function(a,o){if(r(o,a))return a;throw new n("Incorrect invocation")}},25001:function(i,h,t){var r=t(37540),n=String,a=TypeError;i.exports=function(o){if(r(o))return o;throw new a(n(o)+" is not an object")}},3237:function(i){i.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},58360:function(i,h,t){var r=t(84756),n=t(14274),a=TypeError;i.exports=r(ArrayBuffer.prototype,"byteLength","get")||function(o){if(n(o)!=="ArrayBuffer")throw new a("ArrayBuffer expected");return o.byteLength}},30736:function(i,h,t){var r=t(11286),n=t(58360),a=r(ArrayBuffer.prototype.slice);i.exports=function(o){if(n(o)!==0)return!1;try{return a(o,0,0),!1}catch(s){return!0}}},72058:function(i,h,t){var r=t(72069);i.exports=r(function(){if(typeof ArrayBuffer=="function"){var n=new ArrayBuffer(8);Object.isExtensible(n)&&Object.defineProperty(n,"a",{value:8})}})},65006:function(i,h,t){var r=t(66009),n=t(11286),a=t(84756),o=t(9450),s=t(30736),u=t(58360),l=t(63741),v=t(99050),d=r.structuredClone,g=r.ArrayBuffer,y=r.DataView,p=r.TypeError,m=Math.min,E=g.prototype,S=y.prototype,I=n(E.slice),P=a(E,"resizable","get"),A=a(E,"maxByteLength","get"),R=n(S.getInt8),N=n(S.setInt8);i.exports=(v||l)&&function(T,C,b){var L=u(T),D=C===void 0?L:o(C),$=!P||!P(T),w;if(s(T))throw new p("ArrayBuffer is detached");if(v&&(T=d(T,{transfer:[T]}),L===D&&(b||$)))return T;if(L>=D&&(!b||$))w=I(T,0,D);else{var H=b&&!$&&A?{maxByteLength:A(T)}:void 0;w=new g(D,H);for(var U=new y(T),B=new y(w),j=m(D,L),Y=0;Y>8&255]},Mt=function(st){return[st&255,st>>8&255,st>>16&255,st>>24&255]},Ct=function(st){return st[3]<<24|st[2]<<16|st[1]<<8|st[0]},Lt=function(st){return Ft(E(st),23,4)},Zt=function(st){return Ft(st,52,8)},kt=function(st,ht,rt){l(st[H],ht,{configurable:!0,get:function(){return rt(this)[ht]}})},Kt=function(st,ht,rt,Ot){var Tt=Y(st),xt=m(rt),pt=!!Ot;if(xt+ht>Tt.byteLength)throw new It(B);var _t=Tt.bytes,rr=xt+Tt.byteOffset,Q=R(_t,rr,rr+ht);return pt?Q:jt(Q)},Dt=function(st,ht,rt,Ot,Tt,xt){var pt=Y(st),_t=m(rt),rr=Ot(+Tt),Q=!!xt;if(_t+ht>pt.byteLength)throw new It(B);for(var ot=pt.bytes,it=_t+pt.byteOffset,z=0;zxt)throw new It("Wrong offset");if(Ot=Ot===void 0?xt-pt:p(Ot),pt+Ot>xt)throw new It(U);k(this,{type:w,buffer:ht,byteLength:Ot,byteOffset:pt,bytes:Tt.bytes}),a||(this.buffer=ht,this.byteLength=Ot,this.byteOffset=pt)},lt=dt[H],a&&(kt(nt,"byteLength",j),kt(dt,"buffer",Y),kt(dt,"byteLength",Y),kt(dt,"byteOffset",Y)),v(lt,{getInt8:function(ht){return Kt(this,1,ht)[0]<<24>>24},getUint8:function(ht){return Kt(this,1,ht)[0]},getInt16:function(ht){var rt=Kt(this,2,ht,arguments.length>1?arguments[1]:!1);return(rt[1]<<8|rt[0])<<16>>16},getUint16:function(ht){var rt=Kt(this,2,ht,arguments.length>1?arguments[1]:!1);return rt[1]<<8|rt[0]},getInt32:function(ht){return Ct(Kt(this,4,ht,arguments.length>1?arguments[1]:!1))},getUint32:function(ht){return Ct(Kt(this,4,ht,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(ht){return vt(Kt(this,4,ht,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(ht){return vt(Kt(this,8,ht,arguments.length>1?arguments[1]:!1),52)},setInt8:function(ht,rt){Dt(this,1,ht,yt,rt)},setUint8:function(ht,rt){Dt(this,1,ht,yt,rt)},setInt16:function(ht,rt){Dt(this,2,ht,Pt,rt,arguments.length>2?arguments[2]:!1)},setUint16:function(ht,rt){Dt(this,2,ht,Pt,rt,arguments.length>2?arguments[2]:!1)},setInt32:function(ht,rt){Dt(this,4,ht,Mt,rt,arguments.length>2?arguments[2]:!1)},setUint32:function(ht,rt){Dt(this,4,ht,Mt,rt,arguments.length>2?arguments[2]:!1)},setFloat32:function(ht,rt){Dt(this,4,ht,Lt,rt,arguments.length>2?arguments[2]:!1)},setFloat64:function(ht,rt){Dt(this,8,ht,Zt,rt,arguments.length>2?arguments[2]:!1)}});else{var Xt=L&&J.name!==$;!d(function(){J(1)})||!d(function(){new J(-1)})||d(function(){return new J,new J(1.5),new J(NaN),J.length!==1||Xt&&!D})?(nt=function(ht){return g(this,_),N(new J(m(ht)),this,nt)},nt[H]=_,_.constructor=nt,T(nt,J)):Xt&&D&&u(J,"name",$),P&&I(lt)!==gt&&P(lt,gt);var Vt=new dt(new nt(2)),Ut=n(lt.setInt8);Vt.setInt8(0,2147483648),Vt.setInt8(1,2147483649),(Vt.getInt8(0)||!Vt.getInt8(1))&&v(lt,{setInt8:function(ht,rt){Ut(this,ht,rt<<24>>24)},setUint8:function(ht,rt){Ut(this,ht,rt<<24>>24)}},{unsafe:!0})}C(nt,$),C(dt,w),i.exports={ArrayBuffer:nt,DataView:dt}},81499:function(i,h,t){var r=t(49671),n=t(4652),a=t(82628),o=t(12384),s=Math.min;i.exports=[].copyWithin||function(l,v){var d=r(this),g=a(d),y=n(l,g),p=n(v,g),m=arguments.length>2?arguments[2]:void 0,E=s((m===void 0?g:n(m,g))-p,g-y),S=1;for(p0;)p in d?d[y]=d[p]:o(d,y),y+=S,p+=S;return d}},43011:function(i,h,t){var r=t(49671),n=t(4652),a=t(82628);i.exports=function(s){for(var u=r(this),l=a(u),v=arguments.length,d=n(v>1?arguments[1]:void 0,l),g=v>2?arguments[2]:void 0,y=g===void 0?l:n(g,l);y>d;)u[d++]=s;return u}},13349:function(i,h,t){var r=t(66655).forEach,n=t(6148),a=n("forEach");i.exports=a?[].forEach:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}},5220:function(i,h,t){var r=t(82628);i.exports=function(n,a,o){for(var s=0,u=arguments.length>2?o:r(a),l=new n(u);u>s;)l[s]=a[s++];return l}},48258:function(i,h,t){var r=t(45526),n=t(96499),a=t(49671),o=t(39969),s=t(48199),u=t(11051),l=t(82628),v=t(84082),d=t(90619),g=t(81077),y=Array;i.exports=function(m){var E=a(m),S=u(this),I=arguments.length,P=I>1?arguments[1]:void 0,A=P!==void 0;A&&(P=r(P,I>2?arguments[2]:void 0));var R=g(E),N=0,T,C,b,L,D,$;if(R&&!(this===y&&s(R)))for(C=S?new this:[],L=d(E,R),D=L.next;!(b=n(D,L)).done;N++)$=A?o(L,P,[b.value,N],!0):b.value,v(C,N,$);else for(T=l(E),C=S?new this(T):y(T);T>N;N++)$=A?P(E[N],N):E[N],v(C,N,$);return C.length=N,C}},94319:function(i,h,t){var r=t(36859),n=t(4652),a=t(82628),o=function(s){return function(u,l,v){var d=r(u),g=a(d);if(g===0)return!s&&-1;var y=n(v,g),p;if(s&&l!==l){for(;g>y;)if(p=d[y++],p!==p)return!0}else for(;g>y;y++)if((s||y in d)&&d[y]===l)return s||y||0;return!s&&-1}};i.exports={includes:o(!0),indexOf:o(!1)}},73849:function(i,h,t){var r=t(45526),n=t(72181),a=t(49671),o=t(82628),s=function(u){var l=u===1;return function(v,d,g){for(var y=a(v),p=n(y),m=o(p),E=r(d,g),S,I;m-- >0;)if(S=p[m],I=E(S,m,y),I)switch(u){case 0:return S;case 1:return m}return l?-1:void 0}};i.exports={findLast:s(0),findLastIndex:s(1)}},66655:function(i,h,t){var r=t(45526),n=t(11286),a=t(72181),o=t(49671),s=t(82628),u=t(62083),l=n([].push),v=function(d){var g=d===1,y=d===2,p=d===3,m=d===4,E=d===6,S=d===7,I=d===5||E;return function(P,A,R,N){for(var T=o(P),C=a(T),b=s(C),L=r(A,R),D=0,$=N||u,w=g?$(P,b):y||S?$(P,0):void 0,H,U;b>D;D++)if((I||D in C)&&(H=C[D],U=L(H,D,T),d))if(g)w[D]=U;else if(U)switch(d){case 3:return!0;case 5:return H;case 6:return D;case 2:l(w,H)}else switch(d){case 4:return!1;case 7:l(w,H)}return E?-1:p||m?m:w}};i.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},58465:function(i,h,t){var r=t(66543),n=t(36859),a=t(12105),o=t(82628),s=t(6148),u=Math.min,l=[].lastIndexOf,v=!!l&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),g=v||!d;i.exports=g?function(p){if(v)return r(l,this,arguments)||0;var m=n(this),E=o(m);if(E===0)return-1;var S=E-1;for(arguments.length>1&&(S=u(S,a(arguments[1]))),S<0&&(S=E+S);S>=0;S--)if(S in m&&m[S]===p)return S||0;return-1}:l},52183:function(i,h,t){var r=t(72069),n=t(18565),a=t(73126),o=n("species");i.exports=function(s){return a>=51||!r(function(){var u=[],l=u.constructor={};return l[o]=function(){return{foo:1}},u[s](Boolean).foo!==1})}},6148:function(i,h,t){var r=t(72069);i.exports=function(n,a){var o=[][n];return!!o&&r(function(){o.call(null,a||function(){return 1},1)})}},97264:function(i,h,t){var r=t(85156),n=t(49671),a=t(72181),o=t(82628),s=TypeError,u="Reduce of empty array with no initial value",l=function(v){return function(d,g,y,p){var m=n(d),E=a(m),S=o(m);if(r(g),S===0&&y<2)throw new s(u);var I=v?S-1:0,P=v?-1:1;if(y<2)for(;;){if(I in E){p=E[I],I+=P;break}if(I+=P,v?I<0:S<=I)throw new s(u)}for(;v?I>=0:S>I;I+=P)I in E&&(p=g(p,E[I],I,m));return p}};i.exports={left:l(!1),right:l(!0)}},2213:function(i,h,t){var r=t(92986),n=t(3438),a=TypeError,o=Object.getOwnPropertyDescriptor,s=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(u){return u instanceof TypeError}}();i.exports=s?function(u,l){if(n(u)&&!o(u,"length").writable)throw new a("Cannot set read only .length");return u.length=l}:function(u,l){return u.length=l}},22806:function(i,h,t){var r=t(11286);i.exports=r([].slice)},13270:function(i,h,t){var r=t(22806),n=Math.floor,a=function(o,s){var u=o.length;if(u<8)for(var l=1,v,d;l0;)o[d]=o[--d];d!==l++&&(o[d]=v)}else for(var g=n(u/2),y=a(r(o,0,g),s),p=a(r(o,g),s),m=y.length,E=p.length,S=0,I=0;S=v||g<0)throw new a("Incorrect index");for(var y=new s(v),p=0;p1?arguments[1]:void 0),U;U=U?U.next:w.first;)for(H(U.value,U.key,this);U&&U.removed;)U=U.previous},has:function($){return!!L(this,$)}}),a(T,A?{get:function($){var w=L(this,$);return w&&w.value},set:function($,w){return b(this,$===0?0:$,w)}}:{add:function($){return b(this,$=$===0?0:$,$)}}),y&&n(T,"size",{configurable:!0,get:function(){return C(this).size}}),N},setStrong:function(I,P,A){var R=P+" Iterator",N=S(P),T=S(R);v(I,P,function(C,b){E(this,{type:R,target:C,state:N(C),kind:b,last:void 0})},function(){for(var C=T(this),b=C.kind,L=C.last;L&&L.removed;)L=L.previous;return!C.target||!(C.last=L=L?L.next:C.state.first)?(C.target=void 0,d(void 0,!0)):d(b==="keys"?L.key:b==="values"?L.value:[L.key,L.value],!1)},A?"entries":"values",!A,!0),g(P)}}},94667:function(i,h,t){var r=t(11286),n=t(2725),a=t(31853).getWeakData,o=t(12833),s=t(25001),u=t(5683),l=t(37540),v=t(55902),d=t(66655),g=t(94879),y=t(82367),p=y.set,m=y.getterFor,E=d.find,S=d.findIndex,I=r([].splice),P=0,A=function(T){return T.frozen||(T.frozen=new R)},R=function(){this.entries=[]},N=function(T,C){return E(T.entries,function(b){return b[0]===C})};R.prototype={get:function(T){var C=N(this,T);if(C)return C[1]},has:function(T){return!!N(this,T)},set:function(T,C){var b=N(this,T);b?b[1]=C:this.entries.push([T,C])},delete:function(T){var C=S(this.entries,function(b){return b[0]===T});return~C&&I(this.entries,C,1),!!~C}},i.exports={getConstructor:function(T,C,b,L){var D=T(function(U,B){o(U,$),p(U,{type:C,id:P++,frozen:void 0}),u(B)||v(B,U[L],{that:U,AS_ENTRIES:b})}),$=D.prototype,w=m(C),H=function(U,B,j){var Y=w(U),k=a(s(B),!0);return k===!0?A(Y).set(B,j):k[Y.id]=j,U};return n($,{delete:function(U){var B=w(this);if(!l(U))return!1;var j=a(U);return j===!0?A(B).delete(U):j&&g(j,B.id)&&delete j[B.id]},has:function(B){var j=w(this);if(!l(B))return!1;var Y=a(B);return Y===!0?A(j).has(B):Y&&g(Y,j.id)}}),n($,b?{get:function(B){var j=w(this);if(l(B)){var Y=a(B);return Y===!0?A(j).get(B):Y?Y[j.id]:void 0}},set:function(B,j){return H(this,B,j)}}:{add:function(B){return H(this,B,!0)}}),D}}},89378:function(i,h,t){var r=t(14304),n=t(66009),a=t(11286),o=t(13278),s=t(16142),u=t(31853),l=t(55902),v=t(12833),d=t(23583),g=t(5683),y=t(37540),p=t(72069),m=t(97494),E=t(78401),S=t(32345);i.exports=function(I,P,A){var R=I.indexOf("Map")!==-1,N=I.indexOf("Weak")!==-1,T=R?"set":"add",C=n[I],b=C&&C.prototype,L=C,D={},$=function(k){var J=a(b[k]);s(b,k,k==="add"?function(_){return J(this,_===0?0:_),this}:k==="delete"?function(nt){return N&&!y(nt)?!1:J(this,nt===0?0:nt)}:k==="get"?function(_){return N&&!y(_)?void 0:J(this,_===0?0:_)}:k==="has"?function(_){return N&&!y(_)?!1:J(this,_===0?0:_)}:function(_,dt){return J(this,_===0?0:_,dt),this})},w=o(I,!d(C)||!(N||b.forEach&&!p(function(){new C().entries().next()})));if(w)L=A.getConstructor(P,I,R,T),u.enable();else if(o(I,!0)){var H=new L,U=H[T](N?{}:-0,1)!==H,B=p(function(){H.has(1)}),j=m(function(k){new C(k)}),Y=!N&&p(function(){for(var k=new C,J=5;J--;)k[T](J,J);return!k.has(-0)});j||(L=P(function(k,J){v(k,b);var nt=S(new C,k,L);return g(J)||l(J,nt[T],{that:nt,AS_ENTRIES:R}),nt}),L.prototype=b,b.constructor=L),(B||Y)&&($("delete"),$("has"),R&&$("get")),(Y||U)&&$(T),N&&b.clear&&delete b.clear}return D[I]=L,r({global:!0,constructor:!0,forced:L!==C},D),E(L,I),N||A.setStrong(L,I,R),L}},93706:function(i,h,t){var r=t(94879),n=t(16885),a=t(71349),o=t(7831);i.exports=function(s,u,l){for(var v=n(u),d=o.f,g=a.f,y=0;y"+g+""}},10659:function(i){i.exports=function(h,t){return{value:h,done:t}}},90809:function(i,h,t){var r=t(92986),n=t(7831),a=t(18526);i.exports=r?function(o,s,u){return n.f(o,s,a(1,u))}:function(o,s,u){return o[s]=u,o}},18526:function(i){i.exports=function(h,t){return{enumerable:!(h&1),configurable:!(h&2),writable:!(h&4),value:t}}},84082:function(i,h,t){var r=t(92986),n=t(7831),a=t(18526);i.exports=function(o,s,u){r?n.f(o,s,a(0,u)):o[s]=u}},11890:function(i,h,t){var r=t(11286),n=t(72069),a=t(61607).start,o=RangeError,s=isFinite,u=Math.abs,l=Date.prototype,v=l.toISOString,d=r(l.getTime),g=r(l.getUTCDate),y=r(l.getUTCFullYear),p=r(l.getUTCHours),m=r(l.getUTCMilliseconds),E=r(l.getUTCMinutes),S=r(l.getUTCMonth),I=r(l.getUTCSeconds);i.exports=n(function(){return v.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!n(function(){v.call(new Date(NaN))})?function(){if(!s(d(this)))throw new o("Invalid time value");var A=this,R=y(A),N=m(A),T=R<0?"-":R>9999?"+":"";return T+a(u(R),T?6:4,0)+"-"+a(S(A)+1,2,0)+"-"+a(g(A),2,0)+"T"+a(p(A),2,0)+":"+a(E(A),2,0)+":"+a(I(A),2,0)+"."+a(N,3,0)+"Z"}:v},84306:function(i,h,t){var r=t(25001),n=t(2064),a=TypeError;i.exports=function(o){if(r(this),o==="string"||o==="default")o="string";else if(o!=="number")throw new a("Incorrect hint");return n(this,o)}},85500:function(i,h,t){var r=t(13749),n=t(7831);i.exports=function(a,o,s){return s.get&&r(s.get,o,{getter:!0}),s.set&&r(s.set,o,{setter:!0}),n.f(a,o,s)}},16142:function(i,h,t){var r=t(23583),n=t(7831),a=t(13749),o=t(36003);i.exports=function(s,u,l,v){v||(v={});var d=v.enumerable,g=v.name!==void 0?v.name:u;if(r(l)&&a(l,g,v),v.global)d?s[u]=l:o(u,l);else{try{v.unsafe?s[u]&&(d=!0):delete s[u]}catch(y){}d?s[u]=l:n.f(s,u,{value:l,enumerable:!1,configurable:!v.nonConfigurable,writable:!v.nonWritable})}return s}},2725:function(i,h,t){var r=t(16142);i.exports=function(n,a,o){for(var s in a)r(n,s,a[s],o);return n}},36003:function(i,h,t){var r=t(66009),n=Object.defineProperty;i.exports=function(a,o){try{n(r,a,{value:o,configurable:!0,writable:!0})}catch(s){r[a]=o}return o}},12384:function(i,h,t){var r=t(82453),n=TypeError;i.exports=function(a,o){if(!delete a[o])throw new n("Cannot delete property "+r(o)+" of "+r(a))}},92986:function(i,h,t){var r=t(72069);i.exports=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},63741:function(i,h,t){var r=t(66009),n=t(18096),a=t(99050),o=r.structuredClone,s=r.ArrayBuffer,u=r.MessageChannel,l=!1,v,d,g,y;if(a)l=function(p){o(p,{transfer:[p]})};else if(s)try{u||(v=n("worker_threads"),v&&(u=v.MessageChannel)),u&&(d=new u,g=new s(2),y=function(p){d.port1.postMessage(null,[p])},g.byteLength===2&&(y(g),g.byteLength===0&&(l=y)))}catch(p){}i.exports=l},85501:function(i,h,t){var r=t(66009),n=t(37540),a=r.document,o=n(a)&&n(a.createElement);i.exports=function(s){return o?a.createElement(s):{}}},20095:function(i){var h=TypeError,t=9007199254740991;i.exports=function(r){if(r>t)throw h("Maximum allowed index exceeded");return r}},74408:function(i){i.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},93014:function(i){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},39882:function(i,h,t){var r=t(85501),n=r("span").classList,a=n&&n.constructor&&n.constructor.prototype;i.exports=a===Object.prototype?void 0:a},54040:function(i,h,t){var r=t(89042),n=r.match(/firefox\/(\d+)/i);i.exports=!!n&&+n[1]},63144:function(i,h,t){var r=t(56422),n=t(42954);i.exports=!r&&!n&&typeof window=="object"&&typeof document=="object"},5017:function(i){i.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},56422:function(i){i.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},87216:function(i,h,t){var r=t(89042);i.exports=/MSIE|Trident/.test(r)},92150:function(i,h,t){var r=t(89042);i.exports=/ipad|iphone|ipod/i.test(r)&&typeof Pebble!="undefined"},51149:function(i,h,t){var r=t(89042);i.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},42954:function(i,h,t){var r=t(66009),n=t(14274);i.exports=n(r.process)==="process"},81539:function(i,h,t){var r=t(89042);i.exports=/web0s(?!.*chrome)/i.test(r)},89042:function(i){i.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},73126:function(i,h,t){var r=t(66009),n=t(89042),a=r.process,o=r.Deno,s=a&&a.versions||o&&o.version,u=s&&s.v8,l,v;u&&(l=u.split("."),v=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!v&&n&&(l=n.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=n.match(/Chrome\/(\d+)/),l&&(v=+l[1]))),i.exports=v},68674:function(i,h,t){var r=t(89042),n=r.match(/AppleWebKit\/(\d+)\./);i.exports=!!n&&+n[1]},75785:function(i){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},40851:function(i,h,t){var r=t(11286),n=Error,a=r("".replace),o=function(l){return String(new n(l).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(o);i.exports=function(l,v){if(u&&typeof l=="string"&&!n.prepareStackTrace)for(;v--;)l=a(l,s,"");return l}},97077:function(i,h,t){var r=t(90809),n=t(40851),a=t(16929),o=Error.captureStackTrace;i.exports=function(s,u,l,v){a&&(o?o(s,u):r(s,"stack",n(l,v)))}},16929:function(i,h,t){var r=t(72069),n=t(18526);i.exports=!r(function(){var a=new Error("a");return"stack"in a?(Object.defineProperty(a,"stack",n(1,7)),a.stack!==7):!0})},58434:function(i,h,t){var r=t(92986),n=t(72069),a=t(25001),o=t(15453),s=Error.prototype.toString,u=n(function(){if(r){var l=Object.create(Object.defineProperty({},"name",{get:function(){return this===l}}));if(s.call(l)!=="true")return!0}return s.call({message:1,name:2})!=="2: 1"||s.call({})!=="Error"});i.exports=u?function(){var v=a(this),d=o(v.name,"Error"),g=o(v.message);return d?g?d+": "+g:d:g}:s},14304:function(i,h,t){var r=t(66009),n=t(71349).f,a=t(90809),o=t(16142),s=t(36003),u=t(93706),l=t(13278);i.exports=function(v,d){var g=v.target,y=v.global,p=v.stat,m,E,S,I,P,A;if(y?E=r:p?E=r[g]||s(g,{}):E=r[g]&&r[g].prototype,E)for(S in d){if(P=d[S],v.dontCallGetSet?(A=n(E,S),I=A&&A.value):I=E[S],m=l(y?S:g+(p?".":"#")+S,v.forced),!m&&I!==void 0){if(typeof P==typeof I)continue;u(P,I)}(v.sham||I&&I.sham)&&a(P,"sham",!0),o(E,S,P,v)}}},72069:function(i){i.exports=function(h){try{return!!h()}catch(t){return!0}}},63194:function(i,h,t){t(31145);var r=t(96499),n=t(16142),a=t(44381),o=t(72069),s=t(18565),u=t(90809),l=s("species"),v=RegExp.prototype;i.exports=function(d,g,y,p){var m=s(d),E=!o(function(){var A={};return A[m]=function(){return 7},""[d](A)!==7}),S=E&&!o(function(){var A=!1,R=/a/;return d==="split"&&(R={},R.constructor={},R.constructor[l]=function(){return R},R.flags="",R[m]=/./[m]),R.exec=function(){return A=!0,null},R[m](""),!A});if(!E||!S||y){var I=/./[m],P=g(m,""[d],function(A,R,N,T,C){var b=R.exec;return b===a||b===v.exec?E&&!C?{done:!0,value:r(I,R,N,T)}:{done:!0,value:r(A,N,R,T)}:{done:!1}});n(String.prototype,d,P[0]),n(v,m,P[1])}p&&u(v[m],"sham",!0)}},53149:function(i,h,t){var r=t(3438),n=t(82628),a=t(20095),o=t(45526),s=function(u,l,v,d,g,y,p,m){for(var E=g,S=0,I=p?o(p,m):!1,P,A;S0&&r(P)?(A=n(P),E=s(u,l,P,A,E,y-1)-1):(a(E+1),u[E]=P),E++),S++;return E};i.exports=s},27534:function(i,h,t){var r=t(72069);i.exports=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})},66543:function(i,h,t){var r=t(87878),n=Function.prototype,a=n.apply,o=n.call;i.exports=typeof Reflect=="object"&&Reflect.apply||(r?o.bind(a):function(){return o.apply(a,arguments)})},45526:function(i,h,t){var r=t(77422),n=t(85156),a=t(87878),o=r(r.bind);i.exports=function(s,u){return n(s),u===void 0?s:a?o(s,u):function(){return s.apply(u,arguments)}}},87878:function(i,h,t){var r=t(72069);i.exports=!r(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})},91384:function(i,h,t){var r=t(11286),n=t(85156),a=t(37540),o=t(94879),s=t(22806),u=t(87878),l=Function,v=r([].concat),d=r([].join),g={},y=function(p,m,E){if(!o(g,m)){for(var S=[],I=0;I]*>)/g,v=/\$([$&'`]|\d{1,2})/g;i.exports=function(d,g,y,p,m,E){var S=y+d.length,I=p.length,P=v;return m!==void 0&&(m=n(m),P=l),s(E,P,function(A,R){var N;switch(o(R,0)){case"$":return"$";case"&":return d;case"`":return u(g,0,y);case"'":return u(g,S);case"<":N=m[u(R,1,-1)];break;default:var T=+R;if(T===0)return A;if(T>I){var C=a(T/10);return C===0?A:C<=I?p[C-1]===void 0?o(R,1):p[C-1]+o(R,1):A}N=p[T-1]}return N===void 0?"":N})}},66009:function(i){var h=function(t){return t&&t.Math===Math&&t};i.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof global=="object"&&global)||h(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},94879:function(i,h,t){var r=t(11286),n=t(49671),a=r({}.hasOwnProperty);i.exports=Object.hasOwn||function(s,u){return a(n(s),u)}},19423:function(i){i.exports={}},99095:function(i){i.exports=function(h,t){try{arguments.length===1?console.error(h):console.error(h,t)}catch(r){}}},96439:function(i,h,t){var r=t(38941);i.exports=r("document","documentElement")},52515:function(i,h,t){var r=t(92986),n=t(72069),a=t(85501);i.exports=!r&&!n(function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!==7})},25212:function(i){var h=Array,t=Math.abs,r=Math.pow,n=Math.floor,a=Math.log,o=Math.LN2,s=function(l,v,d){var g=h(d),y=d*8-v-1,p=(1<>1,E=v===23?r(2,-24)-r(2,-77):0,S=l<0||l===0&&1/l<0?1:0,I=0,P,A,R;for(l=t(l),l!==l||l===1/0?(A=l!==l?1:0,P=p):(P=n(a(l)/o),R=r(2,-P),l*R<1&&(P--,R*=2),P+m>=1?l+=E/R:l+=E*r(2,1-m),l*R>=2&&(P++,R/=2),P+m>=p?(A=0,P=p):P+m>=1?(A=(l*R-1)*r(2,v),P+=m):(A=l*r(2,m-1)*r(2,v),P=0));v>=8;)g[I++]=A&255,A/=256,v-=8;for(P=P<0;)g[I++]=P&255,P/=256,y-=8;return g[--I]|=S*128,g},u=function(l,v){var d=l.length,g=d*8-v-1,y=(1<>1,m=g-7,E=d-1,S=l[E--],I=S&127,P;for(S>>=7;m>0;)I=I*256+l[E--],m-=8;for(P=I&(1<<-m)-1,I>>=-m,m+=v;m>0;)P=P*256+l[E--],m-=8;if(I===0)I=1-p;else{if(I===y)return P?NaN:S?-1/0:1/0;P+=r(2,v),I-=p}return(S?-1:1)*P*r(2,I-v)};i.exports={pack:s,unpack:u}},72181:function(i,h,t){var r=t(11286),n=t(72069),a=t(14274),o=Object,s=r("".split);i.exports=n(function(){return!o("z").propertyIsEnumerable(0)})?function(u){return a(u)==="String"?s(u,""):o(u)}:o},32345:function(i,h,t){var r=t(23583),n=t(37540),a=t(15861);i.exports=function(o,s,u){var l,v;return a&&r(l=s.constructor)&&l!==u&&n(v=l.prototype)&&v!==u.prototype&&a(o,v),o}},84352:function(i,h,t){var r=t(11286),n=t(23583),a=t(70443),o=r(Function.toString);n(a.inspectSource)||(a.inspectSource=function(s){return o(s)}),i.exports=a.inspectSource},31486:function(i,h,t){var r=t(37540),n=t(90809);i.exports=function(a,o){r(o)&&"cause"in o&&n(a,"cause",o.cause)}},31853:function(i,h,t){var r=t(14304),n=t(11286),a=t(19423),o=t(37540),s=t(94879),u=t(7831).f,l=t(83258),v=t(92880),d=t(28174),g=t(36374),y=t(27534),p=!1,m=g("meta"),E=0,S=function(T){u(T,m,{value:{objectID:"O"+E++,weakData:{}}})},I=function(T,C){if(!o(T))return typeof T=="symbol"?T:(typeof T=="string"?"S":"P")+T;if(!s(T,m)){if(!d(T))return"F";if(!C)return"E";S(T)}return T[m].objectID},P=function(T,C){if(!s(T,m)){if(!d(T))return!0;if(!C)return!1;S(T)}return T[m].weakData},A=function(T){return y&&p&&d(T)&&!s(T,m)&&S(T),T},R=function(){N.enable=function(){},p=!0;var T=l.f,C=n([].splice),b={};b[m]=1,T(b).length&&(l.f=function(L){for(var D=T(L),$=0,w=D.length;$D;D++)if(w=j(E[D]),w&&l(m,w))return w;return new p(!1)}b=v(E,L)}for(H=R?E.next:b.next;!(U=n(H,b)).done;){try{w=j(U.value)}catch(Y){g(b,"throw",Y)}if(typeof w=="object"&&w&&l(m,w))return w}return new p(!1)}},99797:function(i,h,t){var r=t(96499),n=t(25001),a=t(10512);i.exports=function(o,s,u){var l,v;n(o);try{if(l=a(o,"return"),!l){if(s==="throw")throw u;return u}l=r(l,o)}catch(d){v=!0,l=d}if(s==="throw")throw u;if(v)throw l;return n(l),u}},26820:function(i,h,t){var r=t(24519).IteratorPrototype,n=t(5406),a=t(18526),o=t(78401),s=t(29107),u=function(){return this};i.exports=function(l,v,d,g){var y=v+" Iterator";return l.prototype=n(r,{next:a(+!g,d)}),o(l,y,!1,!0),s[y]=u,l}},10218:function(i,h,t){var r=t(14304),n=t(96499),a=t(70457),o=t(86588),s=t(23583),u=t(26820),l=t(26313),v=t(15861),d=t(78401),g=t(90809),y=t(16142),p=t(18565),m=t(29107),E=t(24519),S=o.PROPER,I=o.CONFIGURABLE,P=E.IteratorPrototype,A=E.BUGGY_SAFARI_ITERATORS,R=p("iterator"),N="keys",T="values",C="entries",b=function(){return this};i.exports=function(L,D,$,w,H,U,B){u($,D,w);var j=function(It){if(It===H&&_)return _;if(!A&&It&&It in J)return J[It];switch(It){case N:return function(){return new $(this,It)};case T:return function(){return new $(this,It)};case C:return function(){return new $(this,It)}}return function(){return new $(this)}},Y=D+" Iterator",k=!1,J=L.prototype,nt=J[R]||J["@@iterator"]||H&&J[H],_=!A&&nt||j(H),dt=D==="Array"&&J.entries||nt,lt,gt,St;if(dt&&(lt=l(dt.call(new L)),lt!==Object.prototype&<.next&&(!a&&l(lt)!==P&&(v?v(lt,P):s(lt[R])||y(lt,R,b)),d(lt,Y,!0,!0),a&&(m[Y]=b))),S&&H===T&&nt&&nt.name!==T&&(!a&&I?g(J,"name",T):(k=!0,_=function(){return n(nt,this)})),H)if(gt={values:j(T),keys:U?_:j(N),entries:j(C)},B)for(St in gt)(A||k||!(St in J))&&y(J,St,gt[St]);else r({target:D,proto:!0,forced:A||k},gt);return(!a||B)&&J[R]!==_&&y(J,R,_,{name:H}),m[D]=_,gt}},24519:function(i,h,t){var r=t(72069),n=t(23583),a=t(37540),o=t(5406),s=t(26313),u=t(16142),l=t(18565),v=t(70457),d=l("iterator"),g=!1,y,p,m;[].keys&&(m=[].keys(),"next"in m?(p=s(s(m)),p!==Object.prototype&&(y=p)):g=!0);var E=!a(y)||r(function(){var S={};return y[d].call(S)!==S});E?y={}:v&&(y=o(y)),n(y[d])||u(y,d,function(){return this}),i.exports={IteratorPrototype:y,BUGGY_SAFARI_ITERATORS:g}},29107:function(i){i.exports={}},82628:function(i,h,t){var r=t(45344);i.exports=function(n){return r(n.length)}},13749:function(i,h,t){var r=t(11286),n=t(72069),a=t(23583),o=t(94879),s=t(92986),u=t(86588).CONFIGURABLE,l=t(84352),v=t(82367),d=v.enforce,g=v.get,y=String,p=Object.defineProperty,m=r("".slice),E=r("".replace),S=r([].join),I=s&&!n(function(){return p(function(){},"length",{value:8}).length!==8}),P=String(String).split("String"),A=i.exports=function(R,N,T){m(y(N),0,7)==="Symbol("&&(N="["+E(y(N),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),T&&T.getter&&(N="get "+N),T&&T.setter&&(N="set "+N),(!o(R,"name")||u&&R.name!==N)&&(s?p(R,"name",{value:N,configurable:!0}):R.name=N),I&&T&&o(T,"arity")&&R.length!==T.arity&&p(R,"length",{value:T.arity});try{T&&o(T,"constructor")&&T.constructor?s&&p(R,"prototype",{writable:!1}):R.prototype&&(R.prototype=void 0)}catch(b){}var C=d(R);return o(C,"source")||(C.source=S(P,typeof N=="string"?N:"")),R};Function.prototype.toString=A(function(){return a(this)&&g(this).source||l(this)},"toString")},1774:function(i,h,t){var r=t(11286),n=Map.prototype;i.exports={Map,set:r(n.set),get:r(n.get),has:r(n.has),remove:r(n.delete),proto:n}},98940:function(i){var h=Math.expm1,t=Math.exp;i.exports=!h||h(10)>22025.465794806718||h(10)<22025.465794806718||h(-2e-17)!==-2e-17?function(n){var a=+n;return a===0?a:a>-1e-6&&a<1e-6?a+a*a/2:t(a)-1}:h},10418:function(i,h,t){var r=t(93976),n=Math.abs,a=2220446049250313e-31,o=1/a,s=function(u){return u+o-o};i.exports=function(u,l,v,d){var g=+u,y=n(g),p=r(g);if(yv||E!==E?p*(1/0):p*E}},93279:function(i,h,t){var r=t(10418),n=11920928955078125e-23,a=34028234663852886e22,o=11754943508222875e-54;i.exports=Math.fround||function(u){return r(u,n,a,o)}},41942:function(i){var h=Math.log,t=Math.LOG10E;i.exports=Math.log10||function(n){return h(n)*t}},49366:function(i){var h=Math.log;i.exports=Math.log1p||function(r){var n=+r;return n>-1e-8&&n<1e-8?n-n*n/2:h(1+n)}},93976:function(i){i.exports=Math.sign||function(t){var r=+t;return r===0||r!==r?r:r<0?-1:1}},22459:function(i){var h=Math.ceil,t=Math.floor;i.exports=Math.trunc||function(n){var a=+n;return(a>0?t:h)(a)}},9709:function(i,h,t){var r=t(66009),n=t(28167),a=t(45526),o=t(23115).set,s=t(76895),u=t(51149),l=t(92150),v=t(81539),d=t(42954),g=r.MutationObserver||r.WebKitMutationObserver,y=r.document,p=r.process,m=r.Promise,E=n("queueMicrotask"),S,I,P,A,R;if(!E){var N=new s,T=function(){var C,b;for(d&&(C=p.domain)&&C.exit();b=N.get();)try{b()}catch(L){throw N.head&&S(),L}C&&C.enter()};!u&&!d&&!v&&g&&y?(I=!0,P=y.createTextNode(""),new g(T).observe(P,{characterData:!0}),S=function(){P.data=I=!I}):!l&&m&&m.resolve?(A=m.resolve(void 0),A.constructor=m,R=a(A.then,A),S=function(){R(T)}):d?S=function(){p.nextTick(T)}:(o=a(o,r),S=function(){o(T)}),E=function(C){N.head||S(),N.add(C)}}i.exports=E},24649:function(i,h,t){var r=t(85156),n=TypeError,a=function(o){var s,u;this.promise=new o(function(l,v){if(s!==void 0||u!==void 0)throw new n("Bad Promise constructor");s=l,u=v}),this.resolve=r(s),this.reject=r(u)};i.exports.f=function(o){return new a(o)}},15453:function(i,h,t){var r=t(17361);i.exports=function(n,a){return n===void 0?arguments.length<2?"":a:r(n)}},92337:function(i,h,t){var r=t(11566),n=TypeError;i.exports=function(a){if(r(a))throw new n("The method doesn't accept regular expressions");return a}},98074:function(i,h,t){var r=t(66009),n=r.isFinite;i.exports=Number.isFinite||function(o){return typeof o=="number"&&n(o)}},25838:function(i,h,t){var r=t(66009),n=t(72069),a=t(11286),o=t(17361),s=t(85900).trim,u=t(77082),l=a("".charAt),v=r.parseFloat,d=r.Symbol,g=d&&d.iterator,y=1/v(u+"-0")!==-1/0||g&&!n(function(){v(Object(g))});i.exports=y?function(m){var E=s(o(m)),S=v(E);return S===0&&l(E,0)==="-"?-0:S}:v},23009:function(i,h,t){var r=t(66009),n=t(72069),a=t(11286),o=t(17361),s=t(85900).trim,u=t(77082),l=r.parseInt,v=r.Symbol,d=v&&v.iterator,g=/^[+-]?0x/i,y=a(g.exec),p=l(u+"08")!==8||l(u+"0x16")!==22||d&&!n(function(){l(Object(d))});i.exports=p?function(E,S){var I=s(o(E));return l(I,S>>>0||(y(g,I)?16:10))}:l},16667:function(i,h,t){var r=t(92986),n=t(11286),a=t(96499),o=t(72069),s=t(18350),u=t(24943),l=t(79591),v=t(49671),d=t(72181),g=Object.assign,y=Object.defineProperty,p=n([].concat);i.exports=!g||o(function(){if(r&&g({b:1},g(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var m={},E={},S=Symbol("assign detection"),I="abcdefghijklmnopqrst";return m[S]=7,I.split("").forEach(function(P){E[P]=P}),g({},m)[S]!==7||s(g({},E)).join("")!==I})?function(E,S){for(var I=v(E),P=arguments.length,A=1,R=u.f,N=l.f;P>A;)for(var T=d(arguments[A++]),C=R?p(s(T),R(T)):s(T),b=C.length,L=0,D;b>L;)D=C[L++],(!r||a(N,T,D))&&(I[D]=T[D]);return I}:g},5406:function(i,h,t){var r=t(25001),n=t(61963),a=t(75785),o=t(19423),s=t(96439),u=t(85501),l=t(44869),v=">",d="<",g="prototype",y="script",p=l("IE_PROTO"),m=function(){},E=function(R){return d+y+v+R+d+"/"+y+v},S=function(R){R.write(E("")),R.close();var N=R.parentWindow.Object;return R=null,N},I=function(){var R=u("iframe"),N="java"+y+":",T;return R.style.display="none",s.appendChild(R),R.src=String(N),T=R.contentWindow.document,T.open(),T.write(E("document.F=Object")),T.close(),T.F},P,A=function(){try{P=new ActiveXObject("htmlfile")}catch(N){}A=typeof document!="undefined"?document.domain&&P?S(P):I():S(P);for(var R=a.length;R--;)delete A[g][a[R]];return A()};o[p]=!0,i.exports=Object.create||function(N,T){var C;return N!==null?(m[g]=r(N),C=new m,m[g]=null,C[p]=N):C=A(),T===void 0?C:n.f(C,T)}},61963:function(i,h,t){var r=t(92986),n=t(356),a=t(7831),o=t(25001),s=t(36859),u=t(18350);h.f=r&&!n?Object.defineProperties:function(v,d){o(v);for(var g=s(d),y=u(d),p=y.length,m=0,E;p>m;)a.f(v,E=y[m++],g[E]);return v}},7831:function(i,h,t){var r=t(92986),n=t(52515),a=t(356),o=t(25001),s=t(50035),u=TypeError,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,d="enumerable",g="configurable",y="writable";h.f=r?a?function(m,E,S){if(o(m),E=s(E),o(S),typeof m=="function"&&E==="prototype"&&"value"in S&&y in S&&!S[y]){var I=v(m,E);I&&I[y]&&(m[E]=S.value,S={configurable:g in S?S[g]:I[g],enumerable:d in S?S[d]:I[d],writable:!1})}return l(m,E,S)}:l:function(m,E,S){if(o(m),E=s(E),o(S),n)try{return l(m,E,S)}catch(I){}if("get"in S||"set"in S)throw new u("Accessors not supported");return"value"in S&&(m[E]=S.value),m}},71349:function(i,h,t){var r=t(92986),n=t(96499),a=t(79591),o=t(18526),s=t(36859),u=t(50035),l=t(94879),v=t(52515),d=Object.getOwnPropertyDescriptor;h.f=r?d:function(y,p){if(y=s(y),p=u(p),v)try{return d(y,p)}catch(m){}if(l(y,p))return o(!n(a.f,y,p),y[p])}},92880:function(i,h,t){var r=t(14274),n=t(36859),a=t(83258).f,o=t(22806),s=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(l){try{return a(l)}catch(v){return o(s)}};i.exports.f=function(v){return s&&r(v)==="Window"?u(v):a(n(v))}},83258:function(i,h,t){var r=t(6242),n=t(75785),a=n.concat("length","prototype");h.f=Object.getOwnPropertyNames||function(s){return r(s,a)}},24943:function(i,h){h.f=Object.getOwnPropertySymbols},26313:function(i,h,t){var r=t(94879),n=t(23583),a=t(49671),o=t(44869),s=t(87501),u=o("IE_PROTO"),l=Object,v=l.prototype;i.exports=s?l.getPrototypeOf:function(d){var g=a(d);if(r(g,u))return g[u];var y=g.constructor;return n(y)&&g instanceof y?y.prototype:g instanceof l?v:null}},28174:function(i,h,t){var r=t(72069),n=t(37540),a=t(14274),o=t(72058),s=Object.isExtensible,u=r(function(){s(1)});i.exports=u||o?function(v){return!n(v)||o&&a(v)==="ArrayBuffer"?!1:s?s(v):!0}:s},95307:function(i,h,t){var r=t(11286);i.exports=r({}.isPrototypeOf)},6242:function(i,h,t){var r=t(11286),n=t(94879),a=t(36859),o=t(94319).indexOf,s=t(19423),u=r([].push);i.exports=function(l,v){var d=a(l),g=0,y=[],p;for(p in d)!n(s,p)&&n(d,p)&&u(y,p);for(;v.length>g;)n(d,p=v[g++])&&(~o(y,p)||u(y,p));return y}},18350:function(i,h,t){var r=t(6242),n=t(75785);i.exports=Object.keys||function(o){return r(o,n)}},79591:function(i,h){var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);h.f=n?function(o){var s=r(this,o);return!!s&&s.enumerable}:t},57629:function(i,h,t){var r=t(70457),n=t(66009),a=t(72069),o=t(68674);i.exports=r||!a(function(){if(!(o&&o<535)){var s=Math.random();__defineSetter__.call(null,s,function(){}),delete n[s]}})},15861:function(i,h,t){var r=t(84756),n=t(37540),a=t(2068),o=t(53408);i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,u={},l;try{l=r(Object.prototype,"__proto__","set"),l(u,[]),s=u instanceof Array}catch(v){}return function(d,g){return a(d),o(g),n(d)&&(s?l(d,g):d.__proto__=g),d}}():void 0)},8511:function(i,h,t){var r=t(92986),n=t(72069),a=t(11286),o=t(26313),s=t(18350),u=t(36859),l=t(79591).f,v=a(l),d=a([].push),g=r&&n(function(){var p=Object.create(null);return p[2]=2,!v(p,2)}),y=function(p){return function(m){for(var E=u(m),S=s(E),I=g&&o(E)===null,P=S.length,A=0,R=[],N;P>A;)N=S[A++],(!r||(I?N in E:v(E,N)))&&d(R,p?[N,E[N]]:E[N]);return R}};i.exports={entries:y(!0),values:y(!1)}},60105:function(i,h,t){var r=t(67878),n=t(9205);i.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},2064:function(i,h,t){var r=t(96499),n=t(23583),a=t(37540),o=TypeError;i.exports=function(s,u){var l,v;if(u==="string"&&n(l=s.toString)&&!a(v=r(l,s))||n(l=s.valueOf)&&!a(v=r(l,s))||u!=="string"&&n(l=s.toString)&&!a(v=r(l,s)))return v;throw new o("Can't convert object to primitive value")}},16885:function(i,h,t){var r=t(38941),n=t(11286),a=t(83258),o=t(24943),s=t(25001),u=n([].concat);i.exports=r("Reflect","ownKeys")||function(v){var d=a.f(s(v)),g=o.f;return g?u(d,g(v)):d}},75081:function(i,h,t){var r=t(66009);i.exports=r},67805:function(i){i.exports=function(h){try{return{error:!1,value:h()}}catch(t){return{error:!0,value:t}}}},37130:function(i,h,t){var r=t(66009),n=t(98844),a=t(23583),o=t(13278),s=t(84352),u=t(18565),l=t(63144),v=t(56422),d=t(70457),g=t(73126),y=n&&n.prototype,p=u("species"),m=!1,E=a(r.PromiseRejectionEvent),S=o("Promise",function(){var I=s(n),P=I!==String(n);if(!P&&g===66||d&&!(y.catch&&y.finally))return!0;if(!g||g<51||!/native code/.test(I)){var A=new n(function(T){T(1)}),R=function(T){T(function(){},function(){})},N=A.constructor={};if(N[p]=R,m=A.then(function(){})instanceof R,!m)return!0}return!P&&(l||v)&&!E});i.exports={CONSTRUCTOR:S,REJECTION_EVENT:E,SUBCLASSING:m}},98844:function(i,h,t){var r=t(66009);i.exports=r.Promise},87408:function(i,h,t){var r=t(25001),n=t(37540),a=t(24649);i.exports=function(o,s){if(r(o),n(s)&&s.constructor===o)return s;var u=a.f(o),l=u.resolve;return l(s),u.promise}},26035:function(i,h,t){var r=t(98844),n=t(97494),a=t(37130).CONSTRUCTOR;i.exports=a||!n(function(o){r.all(o).then(void 0,function(){})})},2594:function(i,h,t){var r=t(7831).f;i.exports=function(n,a,o){o in n||r(n,o,{configurable:!0,get:function(){return a[o]},set:function(s){a[o]=s}})}},76895:function(i){var h=function(){this.head=null,this.tail=null};h.prototype={add:function(t){var r={item:t,next:null},n=this.tail;n?n.next=r:this.head=r,this.tail=r},get:function(){var t=this.head;if(t){var r=this.head=t.next;return r===null&&(this.tail=null),t.item}}},i.exports=h},33064:function(i,h,t){var r=t(96499),n=t(25001),a=t(23583),o=t(14274),s=t(44381),u=TypeError;i.exports=function(l,v){var d=l.exec;if(a(d)){var g=r(d,l,v);return g!==null&&n(g),g}if(o(l)==="RegExp")return r(s,l,v);throw new u("RegExp#exec called on incompatible receiver")}},44381:function(i,h,t){var r=t(96499),n=t(11286),a=t(17361),o=t(29833),s=t(39807),u=t(96731),l=t(5406),v=t(82367).get,d=t(76769),g=t(85220),y=u("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,E=n("".charAt),S=n("".indexOf),I=n("".replace),P=n("".slice),A=function(){var C=/a/,b=/b*/g;return r(p,C,"a"),r(p,b,"a"),C.lastIndex!==0||b.lastIndex!==0}(),R=s.BROKEN_CARET,N=/()??/.exec("")[1]!==void 0,T=A||N||R||d||g;T&&(m=function(b){var L=this,D=v(L),$=a(b),w=D.raw,H,U,B,j,Y,k,J;if(w)return w.lastIndex=L.lastIndex,H=r(m,w,$),L.lastIndex=w.lastIndex,H;var nt=D.groups,_=R&&L.sticky,dt=r(o,L),lt=L.source,gt=0,St=$;if(_&&(dt=I(dt,"y",""),S(dt,"g")===-1&&(dt+="g"),St=P($,L.lastIndex),L.lastIndex>0&&(!L.multiline||L.multiline&&E($,L.lastIndex-1)!==` `)&&(lt="(?: "+lt+")",St=" "+St,gt++),U=new RegExp("^(?:"+lt+")",dt)),N&&(U=new RegExp("^"+lt+"$(?!\\s)",dt)),A&&(B=L.lastIndex),j=r(p,_?U:L,St),_?j?(j.input=P(j.input,gt),j[0]=P(j[0],gt),j.index=L.lastIndex,L.lastIndex+=j[0].length):L.lastIndex=0:A&&j&&(L.lastIndex=L.global?j.index+j[0].length:B),N&&j&&j.length>1&&r(y,j[0],U,function(){for(Y=1;Yb)","g");return o.exec("b").groups.a!=="b"||"b".replace(o,"$c")!=="bc"})},2068:function(i,h,t){var r=t(5683),n=TypeError;i.exports=function(a){if(r(a))throw new n("Can't call method on "+a);return a}},28167:function(i,h,t){var r=t(66009),n=t(92986),a=Object.getOwnPropertyDescriptor;i.exports=function(o){if(!n)return r[o];var s=a(r,o);return s&&s.value}},13944:function(i){i.exports=Object.is||function(t,r){return t===r?t!==0||1/t===1/r:t!==t&&r!==r}},9934:function(i,h,t){var r=t(66009),n=t(66543),a=t(23583),o=t(5017),s=t(89042),u=t(22806),l=t(95486),v=r.Function,d=/MSIE .\./.test(s)||o&&function(){var g=r.Bun.version.split(".");return g.length<3||g[0]==="0"&&(g[1]<3||g[1]==="3"&&g[2]==="0")}();i.exports=function(g,y){var p=y?2:1;return d?function(m,E){var S=l(arguments.length,1)>p,I=a(m)?m:v(m),P=S?u(arguments,p):[],A=S?function(){n(I,this,P)}:I;return y?g(A,E):g(A)}:g}},48348:function(i,h,t){var r=t(172),n=t(35051),a=r.Set,o=r.add;i.exports=function(s){var u=new a;return n(s,function(l){o(u,l)}),u}},41754:function(i,h,t){var r=t(76602),n=t(172),a=t(48348),o=t(17768),s=t(65263),u=t(35051),l=t(9573),v=n.has,d=n.remove;i.exports=function(y){var p=r(this),m=s(y),E=a(p);return o(p)<=m.size?u(p,function(S){m.includes(S)&&d(E,S)}):l(m.getIterator(),function(S){v(p,S)&&d(E,S)}),E}},172:function(i,h,t){var r=t(11286),n=Set.prototype;i.exports={Set,add:r(n.add),has:r(n.has),remove:r(n.delete),proto:n}},92292:function(i,h,t){var r=t(76602),n=t(172),a=t(17768),o=t(65263),s=t(35051),u=t(9573),l=n.Set,v=n.add,d=n.has;i.exports=function(y){var p=r(this),m=o(y),E=new l;return a(p)>m.size?u(m.getIterator(),function(S){d(p,S)&&v(E,S)}):s(p,function(S){m.includes(S)&&v(E,S)}),E}},47391:function(i,h,t){var r=t(76602),n=t(172).has,a=t(17768),o=t(65263),s=t(35051),u=t(9573),l=t(99797);i.exports=function(d){var g=r(this),y=o(d);if(a(g)<=y.size)return s(g,function(m){if(y.includes(m))return!1},!0)!==!1;var p=y.getIterator();return u(p,function(m){if(n(g,m))return l(p,"normal",!1)})!==!1}},75492:function(i,h,t){var r=t(76602),n=t(17768),a=t(35051),o=t(65263);i.exports=function(u){var l=r(this),v=o(u);return n(l)>v.size?!1:a(l,function(d){if(!v.includes(d))return!1},!0)!==!1}},1333:function(i,h,t){var r=t(76602),n=t(172).has,a=t(17768),o=t(65263),s=t(9573),u=t(99797);i.exports=function(v){var d=r(this),g=o(v);if(a(d)3})}},22149:function(i,h,t){var r=t(11286),n=t(12105),a=t(17361),o=t(2068),s=r("".charAt),u=r("".charCodeAt),l=r("".slice),v=function(d){return function(g,y){var p=a(o(g)),m=n(y),E=p.length,S,I;return m<0||m>=E?d?"":void 0:(S=u(p,m),S<55296||S>56319||m+1===E||(I=u(p,m+1))<56320||I>57343?d?s(p,m):S:d?l(p,m,m+2):(S-55296<<10)+(I-56320)+65536)}};i.exports={codeAt:v(!1),charAt:v(!0)}},36945:function(i,h,t){var r=t(89042);i.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},61607:function(i,h,t){var r=t(11286),n=t(45344),a=t(17361),o=t(79719),s=t(2068),u=r(o),l=r("".slice),v=Math.ceil,d=function(g){return function(y,p,m){var E=a(s(y)),S=n(p),I=E.length,P=m===void 0?" ":a(m),A,R;return S<=I||P===""?E:(A=S-I,R=u(P,v(A/P.length)),R.length>A&&(R=l(R,0,A)),g?E+R:R+E)}};i.exports={start:d(!1),end:d(!0)}},38679:function(i,h,t){var r=t(11286),n=2147483647,a=36,o=1,s=26,u=38,l=700,v=72,d=128,g="-",y=/[^\0-\u007E]/,p=/[.\u3002\uFF0E\uFF61]/g,m="Overflow: input needs wider integers to process",E=a-o,S=RangeError,I=r(p.exec),P=Math.floor,A=String.fromCharCode,R=r("".charCodeAt),N=r([].join),T=r([].push),C=r("".replace),b=r("".split),L=r("".toLowerCase),D=function(U){for(var B=[],j=0,Y=U.length;j=55296&&k<=56319&&j>1,U+=P(U/B);U>E*s>>1;)U=P(U/E),Y+=a;return P(Y+(E+1)*U/(U+u))},H=function(U){var B=[];U=D(U);var j=U.length,Y=d,k=0,J=v,nt,_;for(nt=0;nt=Y&&_P((n-k)/St))throw new S(m);for(k+=(gt-Y)*St,Y=gt,nt=0;ntn)throw new S(m);if(_===Y){for(var It=k,Gt=a;;){var jt=Gt<=J?o:Gt>=J+s?s:Gt-J;if(It0;(d>>>=1)&&(l+=l))d&1&&(v+=l);return v}},75176:function(i,h,t){var r=t(85900).end,n=t(33328);i.exports=n("trimEnd")?function(){return r(this)}:"".trimEnd},33328:function(i,h,t){var r=t(86588).PROPER,n=t(72069),a=t(77082),o="\u200B\x85\u180E";i.exports=function(s){return n(function(){return!!a[s]()||o[s]()!==o||r&&a[s].name!==s})}},83481:function(i,h,t){var r=t(85900).start,n=t(33328);i.exports=n("trimStart")?function(){return r(this)}:"".trimStart},85900:function(i,h,t){var r=t(11286),n=t(2068),a=t(17361),o=t(77082),s=r("".replace),u=RegExp("^["+o+"]+"),l=RegExp("(^|[^"+o+"])["+o+"]+$"),v=function(d){return function(g){var y=a(n(g));return d&1&&(y=s(y,u,"")),d&2&&(y=s(y,l,"$1")),y}};i.exports={start:v(1),end:v(2),trim:v(3)}},99050:function(i,h,t){var r=t(66009),n=t(72069),a=t(73126),o=t(63144),s=t(56422),u=t(42954),l=r.structuredClone;i.exports=!!l&&!n(function(){if(s&&a>92||u&&a>94||o&&a>97)return!1;var v=new ArrayBuffer(8),d=l(v,{transfer:[v]});return v.byteLength!==0||d.byteLength!==8})},39729:function(i,h,t){var r=t(73126),n=t(72069),a=t(66009),o=a.String;i.exports=!!Object.getOwnPropertySymbols&&!n(function(){var s=Symbol("symbol detection");return!o(s)||!(Object(s)instanceof Symbol)||!Symbol.sham&&r&&r<41})},60796:function(i,h,t){var r=t(96499),n=t(38941),a=t(18565),o=t(16142);i.exports=function(){var s=n("Symbol"),u=s&&s.prototype,l=u&&u.valueOf,v=a("toPrimitive");u&&!u[v]&&o(u,v,function(d){return r(l,this)},{arity:1})}},61190:function(i,h,t){var r=t(39729);i.exports=r&&!!Symbol.for&&!!Symbol.keyFor},23115:function(i,h,t){var r=t(66009),n=t(66543),a=t(45526),o=t(23583),s=t(94879),u=t(72069),l=t(96439),v=t(22806),d=t(85501),g=t(95486),y=t(51149),p=t(42954),m=r.setImmediate,E=r.clearImmediate,S=r.process,I=r.Dispatch,P=r.Function,A=r.MessageChannel,R=r.String,N=0,T={},C="onreadystatechange",b,L,D,$;u(function(){b=r.location});var w=function(j){if(s(T,j)){var Y=T[j];delete T[j],Y()}},H=function(j){return function(){w(j)}},U=function(j){w(j.data)},B=function(j){r.postMessage(R(j),b.protocol+"//"+b.host)};(!m||!E)&&(m=function(Y){g(arguments.length,1);var k=o(Y)?Y:P(Y),J=v(arguments,1);return T[++N]=function(){n(k,void 0,J)},L(N),N},E=function(Y){delete T[Y]},p?L=function(j){S.nextTick(H(j))}:I&&I.now?L=function(j){I.now(H(j))}:A&&!y?(D=new A,$=D.port2,D.port1.onmessage=U,L=a($.postMessage,$)):r.addEventListener&&o(r.postMessage)&&!r.importScripts&&b&&b.protocol!=="file:"&&!u(B)?(L=B,r.addEventListener("message",U,!1)):C in d("script")?L=function(j){l.appendChild(d("script"))[C]=function(){l.removeChild(this),w(j)}}:L=function(j){setTimeout(H(j),0)}),i.exports={set:m,clear:E}},34338:function(i,h,t){var r=t(11286);i.exports=r(1 .valueOf)},4652:function(i,h,t){var r=t(12105),n=Math.max,a=Math.min;i.exports=function(o,s){var u=r(o);return u<0?n(u+s,0):a(u,s)}},11344:function(i,h,t){var r=t(89935),n=TypeError;i.exports=function(a){var o=r(a,"number");if(typeof o=="number")throw new n("Can't convert number to bigint");return BigInt(o)}},9450:function(i,h,t){var r=t(12105),n=t(45344),a=RangeError;i.exports=function(o){if(o===void 0)return 0;var s=r(o),u=n(s);if(s!==u)throw new a("Wrong length or index");return u}},36859:function(i,h,t){var r=t(72181),n=t(2068);i.exports=function(a){return r(n(a))}},12105:function(i,h,t){var r=t(22459);i.exports=function(n){var a=+n;return a!==a||a===0?0:r(a)}},45344:function(i,h,t){var r=t(12105),n=Math.min;i.exports=function(a){var o=r(a);return o>0?n(o,9007199254740991):0}},49671:function(i,h,t){var r=t(2068),n=Object;i.exports=function(a){return n(r(a))}},58143:function(i,h,t){var r=t(98072),n=RangeError;i.exports=function(a,o){var s=r(a);if(s%o)throw new n("Wrong offset");return s}},98072:function(i,h,t){var r=t(12105),n=RangeError;i.exports=function(a){var o=r(a);if(o<0)throw new n("The argument can't be less than 0");return o}},89935:function(i,h,t){var r=t(96499),n=t(37540),a=t(491),o=t(10512),s=t(2064),u=t(18565),l=TypeError,v=u("toPrimitive");i.exports=function(d,g){if(!n(d)||a(d))return d;var y=o(d,v),p;if(y){if(g===void 0&&(g="default"),p=r(y,d,g),!n(p)||a(p))return p;throw new l("Can't convert object to primitive value")}return g===void 0&&(g="number"),s(d,g)}},50035:function(i,h,t){var r=t(89935),n=t(491);i.exports=function(a){var o=r(a,"string");return n(o)?o:o+""}},67878:function(i,h,t){var r=t(18565),n=r("toStringTag"),a={};a[n]="z",i.exports=String(a)==="[object z]"},17361:function(i,h,t){var r=t(9205),n=String;i.exports=function(a){if(r(a)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return n(a)}},76517:function(i){var h=Math.round;i.exports=function(t){var r=h(t);return r<0?0:r>255?255:r&255}},18096:function(i,h,t){var r=t(42954);i.exports=function(n){try{if(r)return Function('return require("'+n+'")')()}catch(a){}}},82453:function(i){var h=String;i.exports=function(t){try{return h(t)}catch(r){return"Object"}}},80357:function(i,h,t){var r=t(14304),n=t(66009),a=t(96499),o=t(92986),s=t(46868),u=t(88037),l=t(17468),v=t(12833),d=t(18526),g=t(90809),y=t(613),p=t(45344),m=t(9450),E=t(58143),S=t(76517),I=t(50035),P=t(94879),A=t(9205),R=t(37540),N=t(491),T=t(5406),C=t(95307),b=t(15861),L=t(83258).f,D=t(66169),$=t(66655).forEach,w=t(36167),H=t(85500),U=t(7831),B=t(71349),j=t(5220),Y=t(82367),k=t(32345),J=Y.get,nt=Y.set,_=Y.enforce,dt=U.f,lt=B.f,gt=n.RangeError,St=l.ArrayBuffer,It=St.prototype,Gt=l.DataView,jt=u.NATIVE_ARRAY_BUFFER_VIEWS,Ft=u.TYPED_ARRAY_TAG,vt=u.TypedArray,yt=u.TypedArrayPrototype,Pt=u.isTypedArray,Mt="BYTES_PER_ELEMENT",Ct="Wrong length",Lt=function(Xt,Vt){H(Xt,Vt,{configurable:!0,get:function(){return J(this)[Vt]}})},Zt=function(Xt){var Vt;return C(It,Xt)||(Vt=A(Xt))==="ArrayBuffer"||Vt==="SharedArrayBuffer"},kt=function(Xt,Vt){return Pt(Xt)&&!N(Vt)&&Vt in Xt&&y(+Vt)&&Vt>=0},Kt=function(Vt,Ut){return Ut=I(Ut),kt(Vt,Ut)?d(2,Vt[Ut]):lt(Vt,Ut)},Dt=function(Vt,Ut,st){return Ut=I(Ut),kt(Vt,Ut)&&R(st)&&P(st,"value")&&!P(st,"get")&&!P(st,"set")&&!st.configurable&&(!P(st,"writable")||st.writable)&&(!P(st,"enumerable")||st.enumerable)?(Vt[Ut]=st.value,Vt):dt(Vt,Ut,st)};o?(jt||(B.f=Kt,U.f=Dt,Lt(yt,"buffer"),Lt(yt,"byteOffset"),Lt(yt,"byteLength"),Lt(yt,"length")),r({target:"Object",stat:!0,forced:!jt},{getOwnPropertyDescriptor:Kt,defineProperty:Dt}),i.exports=function(Xt,Vt,Ut){var st=Xt.match(/\d+/)[0]/8,ht=Xt+(Ut?"Clamped":"")+"Array",rt="get"+Xt,Ot="set"+Xt,Tt=n[ht],xt=Tt,pt=xt&&xt.prototype,_t={},rr=function(z,Z){var K=J(z);return K.view[rt](Z*st+K.byteOffset,!0)},Q=function(z,Z,K){var ct=J(z);ct.view[Ot](Z*st+ct.byteOffset,Ut?S(K):K,!0)},ot=function(z,Z){dt(z,Z,{get:function(){return rr(this,Z)},set:function(K){return Q(this,Z,K)},enumerable:!0})};jt?s&&(xt=Vt(function(z,Z,K,ct){return v(z,pt),k(function(){return R(Z)?Zt(Z)?ct!==void 0?new Tt(Z,E(K,st),ct):K!==void 0?new Tt(Z,E(K,st)):new Tt(Z):Pt(Z)?j(xt,Z):a(D,xt,Z):new Tt(m(Z))}(),z,xt)}),b&&b(xt,vt),$(L(Tt),function(z){z in xt||g(xt,z,Tt[z])}),xt.prototype=pt):(xt=Vt(function(z,Z,K,ct){v(z,pt);var At=0,Nt=0,Wt,Jt,Yt;if(!R(Z))Yt=m(Z),Jt=Yt*st,Wt=new St(Jt);else if(Zt(Z)){Wt=Z,Nt=E(K,st);var er=Z.byteLength;if(ct===void 0){if(er%st)throw new gt(Ct);if(Jt=er-Nt,Jt<0)throw new gt(Ct)}else if(Jt=p(ct)*st,Jt+Nt>er)throw new gt(Ct);Yt=Jt/st}else return Pt(Z)?j(xt,Z):a(D,xt,Z);for(nt(z,{buffer:Wt,byteOffset:Nt,byteLength:Jt,length:Yt,view:new Gt(Wt)});At1?arguments[1]:void 0,A=P!==void 0,R=l(S),N,T,C,b,L,D,$,w;if(R&&!v(R))for($=u(S,R),w=$.next,S=[];!(D=n(w,$)).done;)S.push(D.value);for(A&&I>2&&(P=r(P,arguments[2])),T=s(S),C=new(g(E))(T),b=d(C),N=0;T>N;N++)L=A?P(S[N],N):S[N],C[N]=b?y(L):+L;return C}},21822:function(i,h,t){var r=t(88037),n=t(16887),a=r.aTypedArrayConstructor,o=r.getTypedArrayConstructor;i.exports=function(s){return a(n(s,o(s)))}},36374:function(i,h,t){var r=t(11286),n=0,a=Math.random(),o=r(1 .toString);i.exports=function(s){return"Symbol("+(s===void 0?"":s)+")_"+o(++n+a,36)}},91918:function(i,h,t){var r=t(72069),n=t(18565),a=t(92986),o=t(70457),s=n("iterator");i.exports=!r(function(){var u=new URL("b?a=1&b=2&c=3","http://a"),l=u.searchParams,v=new URLSearchParams("a=1&a=2&b=3"),d="";return u.pathname="c%20d",l.forEach(function(g,y){l.delete("b"),d+=y+g}),v.delete("a",2),v.delete("b",void 0),o&&(!u.toJSON||!v.has("a",1)||v.has("a",2)||!v.has("a",void 0)||v.has("b"))||!l.size&&(o||!a)||!l.sort||u.href!=="http://a/c%20d?a=1&c=3"||l.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!l[s]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||d!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50234:function(i,h,t){var r=t(39729);i.exports=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},356:function(i,h,t){var r=t(92986),n=t(72069);i.exports=r&&n(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},95486:function(i){var h=TypeError;i.exports=function(t,r){if(tR&&g(U,arguments[R]),U});if(D.prototype=b,T!=="Error"?s?s(D,L):u(D,L,{name:!0}):p&&A in C&&(l(D,C,A),l(D,C,"prepareStackTrace")),u(D,C),!m)try{b.name!==T&&a(b,"name",T),b.constructor=D}catch($){}return D}}},27796:function(i,h,t){var r=t(14304),n=t(38941),a=t(66543),o=t(72069),s=t(70003),u="AggregateError",l=n(u),v=!o(function(){return l([1]).errors[0]!==1})&&o(function(){return l([1],u,{cause:7}).cause!==7});r({global:!0,constructor:!0,arity:2,forced:v},{AggregateError:s(u,function(d){return function(y,p){return a(d,this,arguments)}},v,!0)})},85647:function(i,h,t){var r=t(14304),n=t(95307),a=t(26313),o=t(15861),s=t(93706),u=t(5406),l=t(90809),v=t(18526),d=t(31486),g=t(97077),y=t(55902),p=t(15453),m=t(18565),E=m("toStringTag"),S=Error,I=[].push,P=function(N,T){var C=n(A,this),b;o?b=o(new S,C?a(this):A):(b=C?this:u(A),l(b,E,"Error")),T!==void 0&&l(b,"message",p(T)),g(b,P,b.stack,1),arguments.length>2&&d(b,arguments[2]);var L=[];return y(N,I,{that:L}),l(b,"errors",L),b};o?o(P,S):s(P,S,{name:!0});var A=P.prototype=u(S.prototype,{constructor:v(1,P),message:v(1,""),name:v(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:P})},42861:function(i,h,t){t(85647)},35473:function(i,h,t){var r=t(14304),n=t(66009),a=t(17468),o=t(36167),s="ArrayBuffer",u=a[s],l=n[s];r({global:!0,constructor:!0,forced:l!==u},{ArrayBuffer:u}),o(s)},35495:function(i,h,t){var r=t(92986),n=t(85500),a=t(30736),o=ArrayBuffer.prototype;r&&!("detached"in o)&&n(o,"detached",{configurable:!0,get:function(){return a(this)}})},4983:function(i,h,t){var r=t(14304),n=t(88037),a=n.NATIVE_ARRAY_BUFFER_VIEWS;r({target:"ArrayBuffer",stat:!0,forced:!a},{isView:n.isView})},6875:function(i,h,t){var r=t(14304),n=t(77422),a=t(72069),o=t(17468),s=t(25001),u=t(4652),l=t(45344),v=t(16887),d=o.ArrayBuffer,g=o.DataView,y=g.prototype,p=n(d.prototype.slice),m=n(y.getUint8),E=n(y.setUint8),S=a(function(){return!new d(2).slice(1,void 0).byteLength});r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:S},{slice:function(P,A){if(p&&A===void 0)return p(s(this),P);for(var R=s(this).byteLength,N=u(P,R),T=u(A===void 0?R:A,R),C=new(v(this,d))(l(T-N)),b=new g(this),L=new g(C),D=0;N=0?g:d+g;return y<0||y>=d?void 0:v[y]}}),s("at")},98700:function(i,h,t){var r=t(14304),n=t(72069),a=t(3438),o=t(37540),s=t(49671),u=t(82628),l=t(20095),v=t(84082),d=t(62083),g=t(52183),y=t(18565),p=t(73126),m=y("isConcatSpreadable"),E=p>=51||!n(function(){var P=[];return P[m]=!1,P.concat()[0]!==P}),S=function(P){if(!o(P))return!1;var A=P[m];return A!==void 0?!!A:a(P)},I=!E||!g("concat");r({target:"Array",proto:!0,arity:1,forced:I},{concat:function(A){var R=s(this),N=d(R,0),T=0,C,b,L,D,$;for(C=-1,L=arguments.length;C1?arguments[1]:void 0)}})},41585:function(i,h,t){var r=t(14304),n=t(43011),a=t(23811);r({target:"Array",proto:!0},{fill:n}),a("fill")},84554:function(i,h,t){var r=t(14304),n=t(66655).filter,a=t(52183),o=a("filter");r({target:"Array",proto:!0,forced:!o},{filter:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}})},33818:function(i,h,t){var r=t(14304),n=t(66655).findIndex,a=t(23811),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r({target:"Array",proto:!0,forced:s},{findIndex:function(l){return n(this,l,arguments.length>1?arguments[1]:void 0)}}),a(o)},2209:function(i,h,t){var r=t(14304),n=t(73849).findLastIndex,a=t(23811);r({target:"Array",proto:!0},{findLastIndex:function(s){return n(this,s,arguments.length>1?arguments[1]:void 0)}}),a("findLastIndex")},64096:function(i,h,t){var r=t(14304),n=t(73849).findLast,a=t(23811);r({target:"Array",proto:!0},{findLast:function(s){return n(this,s,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},36619:function(i,h,t){var r=t(14304),n=t(66655).find,a=t(23811),o="find",s=!0;o in[]&&Array(1)[o](function(){s=!1}),r({target:"Array",proto:!0,forced:s},{find:function(l){return n(this,l,arguments.length>1?arguments[1]:void 0)}}),a(o)},74092:function(i,h,t){var r=t(14304),n=t(53149),a=t(85156),o=t(49671),s=t(82628),u=t(62083);r({target:"Array",proto:!0},{flatMap:function(v){var d=o(this),g=s(d),y;return a(v),y=u(d,0),y.length=n(y,d,d,g,0,1,v,arguments.length>1?arguments[1]:void 0),y}})},91591:function(i,h,t){var r=t(14304),n=t(53149),a=t(49671),o=t(82628),s=t(12105),u=t(62083);r({target:"Array",proto:!0},{flat:function(){var v=arguments.length?arguments[0]:void 0,d=a(this),g=o(d),y=u(d,0);return y.length=n(y,d,d,g,0,v===void 0?1:s(v)),y}})},54703:function(i,h,t){var r=t(14304),n=t(13349);r({target:"Array",proto:!0,forced:[].forEach!==n},{forEach:n})},82936:function(i,h,t){var r=t(14304),n=t(48258),a=t(97494),o=!a(function(s){Array.from(s)});r({target:"Array",stat:!0,forced:o},{from:n})},48493:function(i,h,t){var r=t(14304),n=t(94319).includes,a=t(72069),o=t(23811),s=a(function(){return!Array(1).includes()});r({target:"Array",proto:!0,forced:s},{includes:function(l){return n(this,l,arguments.length>1?arguments[1]:void 0)}}),o("includes")},64730:function(i,h,t){var r=t(14304),n=t(77422),a=t(94319).indexOf,o=t(6148),s=n([].indexOf),u=!!s&&1/s([1],1,-0)<0,l=u||!o("indexOf");r({target:"Array",proto:!0,forced:l},{indexOf:function(d){var g=arguments.length>1?arguments[1]:void 0;return u?s(this,d,g)||0:a(this,d,g)}})},95024:function(i,h,t){var r=t(14304),n=t(3438);r({target:"Array",stat:!0},{isArray:n})},35054:function(i,h,t){var r=t(36859),n=t(23811),a=t(29107),o=t(82367),s=t(7831).f,u=t(10218),l=t(10659),v=t(70457),d=t(92986),g="Array Iterator",y=o.set,p=o.getterFor(g);i.exports=u(Array,"Array",function(E,S){y(this,{type:g,target:r(E),index:0,kind:S})},function(){var E=p(this),S=E.target,I=E.index++;if(!S||I>=S.length)return E.target=void 0,l(void 0,!0);switch(E.kind){case"keys":return l(I,!1);case"values":return l(S[I],!1)}return l([I,S[I]],!1)},"values");var m=a.Arguments=a.Array;if(n("keys"),n("values"),n("entries"),!v&&d&&m.name!=="values")try{s(m,"name",{value:"values"})}catch(E){}},25460:function(i,h,t){var r=t(14304),n=t(11286),a=t(72181),o=t(36859),s=t(6148),u=n([].join),l=a!==Object,v=l||!s("join",",");r({target:"Array",proto:!0,forced:v},{join:function(g){return u(o(this),g===void 0?",":g)}})},60703:function(i,h,t){var r=t(14304),n=t(58465);r({target:"Array",proto:!0,forced:n!==[].lastIndexOf},{lastIndexOf:n})},90468:function(i,h,t){var r=t(14304),n=t(66655).map,a=t(52183),o=a("map");r({target:"Array",proto:!0,forced:!o},{map:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}})},69581:function(i,h,t){var r=t(14304),n=t(72069),a=t(11051),o=t(84082),s=Array,u=n(function(){function l(){}return!(s.of.call(l)instanceof l)});r({target:"Array",stat:!0,forced:u},{of:function(){for(var v=0,d=arguments.length,g=new(a(this)?this:s)(d);d>v;)o(g,v,arguments[v++]);return g.length=d,g}})},720:function(i,h,t){var r=t(14304),n=t(49671),a=t(82628),o=t(2213),s=t(20095),u=t(72069),l=u(function(){return[].push.call({length:4294967296},1)!==4294967297}),v=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(g){return g instanceof TypeError}},d=l||!v();r({target:"Array",proto:!0,arity:1,forced:d},{push:function(y){var p=n(this),m=a(p),E=arguments.length;s(m+E);for(var S=0;S79&&o<83,l=u||!a("reduceRight");r({target:"Array",proto:!0,forced:l},{reduceRight:function(d){return n(this,d,arguments.length,arguments.length>1?arguments[1]:void 0)}})},11042:function(i,h,t){var r=t(14304),n=t(97264).left,a=t(6148),o=t(73126),s=t(42954),u=!s&&o>79&&o<83,l=u||!a("reduce");r({target:"Array",proto:!0,forced:l},{reduce:function(d){var g=arguments.length;return n(this,d,g,g>1?arguments[1]:void 0)}})},24608:function(i,h,t){var r=t(14304),n=t(11286),a=t(3438),o=n([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return a(this)&&(this.length=this.length),o(this)}})},51644:function(i,h,t){var r=t(14304),n=t(3438),a=t(11051),o=t(37540),s=t(4652),u=t(82628),l=t(36859),v=t(84082),d=t(18565),g=t(52183),y=t(22806),p=g("slice"),m=d("species"),E=Array,S=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(P,A){var R=l(this),N=u(R),T=s(P,N),C=s(A===void 0?N:A,N),b,L,D;if(n(R)&&(b=R.constructor,a(b)&&(b===E||n(b.prototype))?b=void 0:o(b)&&(b=b[m],b===null&&(b=void 0)),b===E||b===void 0))return y(R,T,C);for(L=new(b===void 0?E:b)(S(C-T,0)),D=0;T1?arguments[1]:void 0)}})},46828:function(i,h,t){var r=t(14304),n=t(11286),a=t(85156),o=t(49671),s=t(82628),u=t(12384),l=t(17361),v=t(72069),d=t(13270),g=t(6148),y=t(54040),p=t(87216),m=t(73126),E=t(68674),S=[],I=n(S.sort),P=n(S.push),A=v(function(){S.sort(void 0)}),R=v(function(){S.sort(null)}),N=g("sort"),T=!v(function(){if(m)return m<70;if(!(y&&y>3)){if(p)return!0;if(E)return E<603;var L="",D,$,w,H;for(D=65;D<76;D++){switch($=String.fromCharCode(D),D){case 66:case 69:case 70:case 72:w=3;break;case 68:case 71:w=4;break;default:w=2}for(H=0;H<47;H++)S.push({k:$+H,v:w})}for(S.sort(function(U,B){return B.v-U.v}),H=0;Hl($)?1:-1}};r({target:"Array",proto:!0,forced:C},{sort:function(D){D!==void 0&&a(D);var $=o(this);if(T)return D===void 0?I($):I($,D);var w=[],H=s($),U,B;for(B=0;BR-b+C;D--)g(A,D-1)}else if(C>b)for(D=R-b;D>N;D--)$=D+b-1,w=D+C-1,$ in A?A[w]=A[$]:g(A,w);for(D=0;D=0&&d<=99?d+1900:d;return u(this,g)}})},33685:function(i,h,t){var r=t(14304);r({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},60086:function(i,h,t){var r=t(14304),n=t(11890);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==n},{toISOString:n})},96049:function(i,h,t){var r=t(14304),n=t(72069),a=t(49671),o=t(89935),s=n(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});r({target:"Date",proto:!0,arity:1,forced:s},{toJSON:function(l){var v=a(this),d=o(v,"number");return typeof d=="number"&&!isFinite(d)?null:v.toISOString()}})},14038:function(i,h,t){var r=t(94879),n=t(16142),a=t(84306),o=t(18565),s=o("toPrimitive"),u=Date.prototype;r(u,s)||n(u,s,a)},55518:function(i,h,t){var r=t(11286),n=t(16142),a=Date.prototype,o="Invalid Date",s="toString",u=r(a[s]),l=r(a.getTime);String(new Date(NaN))!==o&&n(a,s,function(){var d=l(this);return d===d?u(this):o})},81742:function(i,h,t){var r=t(14304),n=t(66009),a=t(66543),o=t(70003),s="WebAssembly",u=n[s],l=new Error("e",{cause:7}).cause!==7,v=function(g,y){var p={};p[g]=o(g,y,l),r({global:!0,constructor:!0,arity:1,forced:l},p)},d=function(g,y){if(u&&u[g]){var p={};p[g]=o(s+"."+g,y,l),r({target:s,stat:!0,constructor:!0,arity:1,forced:l},p)}};v("Error",function(g){return function(p){return a(g,this,arguments)}}),v("EvalError",function(g){return function(p){return a(g,this,arguments)}}),v("RangeError",function(g){return function(p){return a(g,this,arguments)}}),v("ReferenceError",function(g){return function(p){return a(g,this,arguments)}}),v("SyntaxError",function(g){return function(p){return a(g,this,arguments)}}),v("TypeError",function(g){return function(p){return a(g,this,arguments)}}),v("URIError",function(g){return function(p){return a(g,this,arguments)}}),d("CompileError",function(g){return function(p){return a(g,this,arguments)}}),d("LinkError",function(g){return function(p){return a(g,this,arguments)}}),d("RuntimeError",function(g){return function(p){return a(g,this,arguments)}})},8720:function(i,h,t){var r=t(16142),n=t(58434),a=Error.prototype;a.toString!==n&&r(a,"toString",n)},8894:function(i,h,t){var r=t(14304),n=t(11286),a=t(17361),o=n("".charAt),s=n("".charCodeAt),u=n(/./.exec),l=n(1 .toString),v=n("".toUpperCase),d=/[\w*+\-./@]/,g=function(y,p){for(var m=l(y,16);m.length9490626562425156e-8?o(g)+u:n(g-1+s(g-1)*s(g+1))}})},15656:function(i,h,t){var r=t(14304),n=Math.asinh,a=Math.log,o=Math.sqrt;function s(l){var v=+l;return!isFinite(v)||v===0?v:v<0?-s(-v):a(v+o(v*v+1))}var u=!(n&&1/n(0)>0);r({target:"Math",stat:!0,forced:u},{asinh:s})},22091:function(i,h,t){var r=t(14304),n=Math.atanh,a=Math.log,o=!(n&&1/n(-0)<0);r({target:"Math",stat:!0,forced:o},{atanh:function(u){var l=+u;return l===0?l:a((1+l)/(1-l))/2}})},2886:function(i,h,t){var r=t(14304),n=t(93976),a=Math.abs,o=Math.pow;r({target:"Math",stat:!0},{cbrt:function(u){var l=+u;return n(l)*o(a(l),.3333333333333333)}})},25895:function(i,h,t){var r=t(14304),n=Math.floor,a=Math.log,o=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(u){var l=u>>>0;return l?31-n(a(l+.5)*o):32}})},24228:function(i,h,t){var r=t(14304),n=t(98940),a=Math.cosh,o=Math.abs,s=Math.E,u=!a||a(710)===1/0;r({target:"Math",stat:!0,forced:u},{cosh:function(v){var d=n(o(v)-1)+1;return(d+1/(d*s*s))*(s/2)}})},79488:function(i,h,t){var r=t(14304),n=t(98940);r({target:"Math",stat:!0,forced:n!==Math.expm1},{expm1:n})},75987:function(i,h,t){var r=t(14304),n=t(93279);r({target:"Math",stat:!0},{fround:n})},81555:function(i,h,t){var r=t(14304),n=Math.hypot,a=Math.abs,o=Math.sqrt,s=!!n&&n(1/0,NaN)!==1/0;r({target:"Math",stat:!0,arity:2,forced:s},{hypot:function(l,v){for(var d=0,g=0,y=arguments.length,p=0,m,E;g0?(E=m/p,d+=E*E):d+=m;return p===1/0?1/0:p*o(d)}})},87854:function(i,h,t){var r=t(14304),n=t(72069),a=Math.imul,o=n(function(){return a(4294967295,5)!==-5||a.length!==2});r({target:"Math",stat:!0,forced:o},{imul:function(u,l){var v=65535,d=+u,g=+l,y=v&d,p=v&g;return 0|y*p+((v&d>>>16)*p+y*(v&g>>>16)<<16>>>0)}})},35074:function(i,h,t){var r=t(14304),n=t(41942);r({target:"Math",stat:!0},{log10:n})},50946:function(i,h,t){var r=t(14304),n=t(49366);r({target:"Math",stat:!0},{log1p:n})},29417:function(i,h,t){var r=t(14304),n=Math.log,a=Math.LN2;r({target:"Math",stat:!0},{log2:function(s){return n(s)/a}})},80628:function(i,h,t){var r=t(14304),n=t(93976);r({target:"Math",stat:!0},{sign:n})},74375:function(i,h,t){var r=t(14304),n=t(72069),a=t(98940),o=Math.abs,s=Math.exp,u=Math.E,l=n(function(){return Math.sinh(-2e-17)!==-2e-17});r({target:"Math",stat:!0,forced:l},{sinh:function(d){var g=+d;return o(g)<1?(a(g)-a(-g))/2:(s(g-1)-s(-g-1))*(u/2)}})},29708:function(i,h,t){var r=t(14304),n=t(98940),a=Math.exp;r({target:"Math",stat:!0},{tanh:function(s){var u=+s,l=n(u),v=n(-u);return l===1/0?1:v===1/0?-1:(l-v)/(a(u)+a(-u))}})},93449:function(i,h,t){var r=t(78401);r(Math,"Math",!0)},9111:function(i,h,t){var r=t(14304),n=t(22459);r({target:"Math",stat:!0},{trunc:n})},83514:function(i,h,t){var r=t(14304),n=t(70457),a=t(92986),o=t(66009),s=t(75081),u=t(11286),l=t(13278),v=t(94879),d=t(32345),g=t(95307),y=t(491),p=t(89935),m=t(72069),E=t(83258).f,S=t(71349).f,I=t(7831).f,P=t(34338),A=t(85900).trim,R="Number",N=o[R],T=s[R],C=N.prototype,b=o.TypeError,L=u("".slice),D=u("".charCodeAt),$=function(Y){var k=p(Y,"number");return typeof k=="bigint"?k:w(k)},w=function(Y){var k=p(Y,"number"),J,nt,_,dt,lt,gt,St,It;if(y(k))throw new b("Cannot convert a Symbol value to a number");if(typeof k=="string"&&k.length>2){if(k=A(k),J=D(k,0),J===43||J===45){if(nt=D(k,2),nt===88||nt===120)return NaN}else if(J===48){switch(D(k,1)){case 66:case 98:_=2,dt=49;break;case 79:case 111:_=8,dt=55;break;default:return+k}for(lt=L(k,2),gt=lt.length,St=0;Stdt)return NaN;return parseInt(lt,_)}}return+k},H=l(R,!N(" 0o1")||!N("0b1")||N("+0x1")),U=function(Y){return g(C,Y)&&m(function(){P(Y)})},B=function(k){var J=arguments.length<1?0:N($(k));return U(this)?d(Object(J),this,B):J};B.prototype=C,H&&!n&&(C.constructor=B),r({global:!0,constructor:!0,wrap:!0,forced:H},{Number:B});var j=function(Y,k){for(var J=a?E(k):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),nt=0,_;J.length>nt;nt++)v(k,_=J[nt])&&!v(Y,_)&&I(Y,_,S(k,_))};n&&T&&j(s[R],T),(H||n)&&j(s[R],N)},15096:function(i,h,t){var r=t(14304);r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59590:function(i,h,t){var r=t(14304),n=t(98074);r({target:"Number",stat:!0},{isFinite:n})},99663:function(i,h,t){var r=t(14304),n=t(613);r({target:"Number",stat:!0},{isInteger:n})},89988:function(i,h,t){var r=t(14304);r({target:"Number",stat:!0},{isNaN:function(a){return a!==a}})},54427:function(i,h,t){var r=t(14304),n=t(613),a=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(s){return n(s)&&a(s)<=9007199254740991}})},67895:function(i,h,t){var r=t(14304);r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},57909:function(i,h,t){var r=t(14304);r({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},83938:function(i,h,t){var r=t(14304),n=t(25838);r({target:"Number",stat:!0,forced:Number.parseFloat!==n},{parseFloat:n})},55461:function(i,h,t){var r=t(14304),n=t(23009);r({target:"Number",stat:!0,forced:Number.parseInt!==n},{parseInt:n})},97339:function(i,h,t){var r=t(14304),n=t(11286),a=t(12105),o=t(34338),s=t(79719),u=t(41942),l=t(72069),v=RangeError,d=String,g=isFinite,y=Math.abs,p=Math.floor,m=Math.pow,E=Math.round,S=n(1 .toExponential),I=n(s),P=n("".slice),A=S(-69e-12,4)==="-6.9000e-11"&&S(1.255,2)==="1.25e+0"&&S(12345,3)==="1.235e+4"&&S(25,0)==="3e+1",R=function(){return l(function(){S(1,1/0)})&&l(function(){S(1,-1/0)})},N=function(){return!l(function(){S(1/0,1/0),S(NaN,1/0)})},T=!A||!R()||!N();r({target:"Number",proto:!0,forced:T},{toExponential:function(b){var L=o(this);if(b===void 0)return S(L);var D=a(b);if(!g(L))return String(L);if(D<0||D>20)throw new v("Incorrect fraction digits");if(A)return S(L,D);var $="",w="",H=0,U="",B="";if(L<0&&($="-",L=-L),L===0)H=0,w=I("0",D+1);else{var j=u(L);H=p(j);var Y=0,k=m(10,H-D);Y=E(L/k),2*L>=(2*Y+1)*k&&(Y+=1),Y>=m(10,D+1)&&(Y/=10,H+=1),w=d(Y)}return D!==0&&(w=P(w,0,1)+"."+P(w,1)),H===0?(U="+",B="0"):(U=H>0?"+":"-",B=d(y(H))),w+="e"+U+B,$+w}})},3670:function(i,h,t){var r=t(14304),n=t(11286),a=t(12105),o=t(34338),s=t(79719),u=t(72069),l=RangeError,v=String,d=Math.floor,g=n(s),y=n("".slice),p=n(1 .toFixed),m=function(R,N,T){return N===0?T:N%2===1?m(R,N-1,T*R):m(R*R,N/2,T)},E=function(R){for(var N=0,T=R;T>=4096;)N+=12,T/=4096;for(;T>=2;)N+=1,T/=2;return N},S=function(R,N,T){for(var C=-1,b=T;++C<6;)b+=N*R[C],R[C]=b%1e7,b=d(b/1e7)},I=function(R,N){for(var T=6,C=0;--T>=0;)C+=R[T],R[T]=d(C/N),C=C%N*1e7},P=function(R){for(var N=6,T="";--N>=0;)if(T!==""||N===0||R[N]!==0){var C=v(R[N]);T=T===""?C:T+g("0",7-C.length)+C}return T},A=u(function(){return p(8e-5,3)!=="0.000"||p(.9,0)!=="1"||p(1.255,2)!=="1.25"||p(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!u(function(){p({})});r({target:"Number",proto:!0,forced:A},{toFixed:function(N){var T=o(this),C=a(N),b=[0,0,0,0,0,0],L="",D="0",$,w,H,U;if(C<0||C>20)throw new l("Incorrect fraction digits");if(T!==T)return"NaN";if(T<=-1e21||T>=1e21)return v(T);if(T<0&&(L="-",T=-T),T>1e-21)if($=E(T*m(2,69,1))-69,w=$<0?T*m(2,-$,1):T/m(2,$,1),w*=4503599627370496,$=52-$,$>0){for(S(b,0,w),H=C;H>=7;)S(b,1e7,0),H-=7;for(S(b,m(10,H,1),0),H=$-1;H>=23;)I(b,8388608),H-=23;I(b,1<0?(U=D.length,D=L+(U<=C?"0."+g("0",C-U)+D:y(D,0,U-C)+"."+y(D,U-C))):D=L+D,D}})},15224:function(i,h,t){var r=t(14304),n=t(11286),a=t(72069),o=t(34338),s=n(1 .toPrecision),u=a(function(){return s(1,void 0)!=="1"})||!a(function(){s({})});r({target:"Number",proto:!0,forced:u},{toPrecision:function(v){return v===void 0?s(o(this)):s(o(this),v)}})},45891:function(i,h,t){var r=t(14304),n=t(16667);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==n},{assign:n})},99910:function(i,h,t){var r=t(14304),n=t(92986),a=t(5406);r({target:"Object",stat:!0,sham:!n},{create:a})},92445:function(i,h,t){var r=t(14304),n=t(92986),a=t(57629),o=t(85156),s=t(49671),u=t(7831);n&&r({target:"Object",proto:!0,forced:a},{__defineGetter__:function(v,d){u.f(s(this),v,{get:o(d),enumerable:!0,configurable:!0})}})},21875:function(i,h,t){var r=t(14304),n=t(92986),a=t(61963).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==a,sham:!n},{defineProperties:a})},4383:function(i,h,t){var r=t(14304),n=t(92986),a=t(7831).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==a,sham:!n},{defineProperty:a})},11361:function(i,h,t){var r=t(14304),n=t(92986),a=t(57629),o=t(85156),s=t(49671),u=t(7831);n&&r({target:"Object",proto:!0,forced:a},{__defineSetter__:function(v,d){u.f(s(this),v,{set:o(d),enumerable:!0,configurable:!0})}})},13728:function(i,h,t){var r=t(14304),n=t(8511).entries;r({target:"Object",stat:!0},{entries:function(o){return n(o)}})},14885:function(i,h,t){var r=t(14304),n=t(27534),a=t(72069),o=t(37540),s=t(31853).onFreeze,u=Object.freeze,l=a(function(){u(1)});r({target:"Object",stat:!0,forced:l,sham:!n},{freeze:function(d){return u&&o(d)?u(s(d)):d}})},30343:function(i,h,t){var r=t(14304),n=t(55902),a=t(84082);r({target:"Object",stat:!0},{fromEntries:function(s){var u={};return n(s,function(l,v){a(u,l,v)},{AS_ENTRIES:!0}),u}})},22045:function(i,h,t){var r=t(14304),n=t(72069),a=t(36859),o=t(71349).f,s=t(92986),u=!s||n(function(){o(1)});r({target:"Object",stat:!0,forced:u,sham:!s},{getOwnPropertyDescriptor:function(v,d){return o(a(v),d)}})},75e3:function(i,h,t){var r=t(14304),n=t(92986),a=t(16885),o=t(36859),s=t(71349),u=t(84082);r({target:"Object",stat:!0,sham:!n},{getOwnPropertyDescriptors:function(v){for(var d=o(v),g=s.f,y=a(d),p={},m=0,E,S;y.length>m;)S=g(d,E=y[m++]),S!==void 0&&u(p,E,S);return p}})},64658:function(i,h,t){var r=t(14304),n=t(72069),a=t(92880).f,o=n(function(){return!Object.getOwnPropertyNames(1)});r({target:"Object",stat:!0,forced:o},{getOwnPropertyNames:a})},45223:function(i,h,t){var r=t(14304),n=t(39729),a=t(72069),o=t(24943),s=t(49671),u=!n||a(function(){o.f(1)});r({target:"Object",stat:!0,forced:u},{getOwnPropertySymbols:function(v){var d=o.f;return d?d(s(v)):[]}})},16017:function(i,h,t){var r=t(14304),n=t(72069),a=t(49671),o=t(26313),s=t(87501),u=n(function(){o(1)});r({target:"Object",stat:!0,forced:u,sham:!s},{getPrototypeOf:function(v){return o(a(v))}})},84681:function(i,h,t){var r=t(14304),n=t(38941),a=t(11286),o=t(85156),s=t(2068),u=t(50035),l=t(55902),v=t(72069),d=Object.groupBy,g=n("Object","create"),y=a([].push),p=!d||v(function(){return d("ab",function(m){return m}).a.length!==1});r({target:"Object",stat:!0,forced:p},{groupBy:function(E,S){s(E),o(S);var I=g(null),P=0;return l(E,function(A){var R=u(S(A,P++));R in I?y(I[R],A):I[R]=[A]}),I}})},73421:function(i,h,t){var r=t(14304),n=t(94879);r({target:"Object",stat:!0},{hasOwn:n})},31046:function(i,h,t){var r=t(14304),n=t(28174);r({target:"Object",stat:!0,forced:Object.isExtensible!==n},{isExtensible:n})},94645:function(i,h,t){var r=t(14304),n=t(72069),a=t(37540),o=t(14274),s=t(72058),u=Object.isFrozen,l=s||n(function(){u(1)});r({target:"Object",stat:!0,forced:l},{isFrozen:function(d){return!a(d)||s&&o(d)==="ArrayBuffer"?!0:u?u(d):!1}})},62935:function(i,h,t){var r=t(14304),n=t(72069),a=t(37540),o=t(14274),s=t(72058),u=Object.isSealed,l=s||n(function(){u(1)});r({target:"Object",stat:!0,forced:l},{isSealed:function(d){return!a(d)||s&&o(d)==="ArrayBuffer"?!0:u?u(d):!1}})},93446:function(i,h,t){var r=t(14304),n=t(13944);r({target:"Object",stat:!0},{is:n})},62518:function(i,h,t){var r=t(14304),n=t(49671),a=t(18350),o=t(72069),s=o(function(){a(1)});r({target:"Object",stat:!0,forced:s},{keys:function(l){return a(n(l))}})},45130:function(i,h,t){var r=t(14304),n=t(92986),a=t(57629),o=t(49671),s=t(50035),u=t(26313),l=t(71349).f;n&&r({target:"Object",proto:!0,forced:a},{__lookupGetter__:function(d){var g=o(this),y=s(d),p;do if(p=l(g,y))return p.get;while(g=u(g))}})},51542:function(i,h,t){var r=t(14304),n=t(92986),a=t(57629),o=t(49671),s=t(50035),u=t(26313),l=t(71349).f;n&&r({target:"Object",proto:!0,forced:a},{__lookupSetter__:function(d){var g=o(this),y=s(d),p;do if(p=l(g,y))return p.set;while(g=u(g))}})},43781:function(i,h,t){var r=t(14304),n=t(37540),a=t(31853).onFreeze,o=t(27534),s=t(72069),u=Object.preventExtensions,l=s(function(){u(1)});r({target:"Object",stat:!0,forced:l,sham:!o},{preventExtensions:function(d){return u&&n(d)?u(a(d)):d}})},25738:function(i,h,t){var r=t(92986),n=t(85500),a=t(37540),o=t(52427),s=t(49671),u=t(2068),l=Object.getPrototypeOf,v=Object.setPrototypeOf,d=Object.prototype,g="__proto__";if(r&&l&&v&&!(g in d))try{n(d,g,{configurable:!0,get:function(){return l(s(this))},set:function(p){var m=u(this);o(p)&&a(m)&&v(m,p)}})}catch(y){}},93247:function(i,h,t){var r=t(14304),n=t(37540),a=t(31853).onFreeze,o=t(27534),s=t(72069),u=Object.seal,l=s(function(){u(1)});r({target:"Object",stat:!0,forced:l,sham:!o},{seal:function(d){return u&&n(d)?u(a(d)):d}})},41533:function(i,h,t){var r=t(14304),n=t(15861);r({target:"Object",stat:!0},{setPrototypeOf:n})},60225:function(i,h,t){var r=t(67878),n=t(16142),a=t(60105);r||n(Object.prototype,"toString",a,{unsafe:!0})},69920:function(i,h,t){var r=t(14304),n=t(8511).values;r({target:"Object",stat:!0},{values:function(o){return n(o)}})},89205:function(i,h,t){var r=t(14304),n=t(25838);r({global:!0,forced:parseFloat!==n},{parseFloat:n})},78546:function(i,h,t){var r=t(14304),n=t(23009);r({global:!0,forced:parseInt!==n},{parseInt:n})},16893:function(i,h,t){var r=t(14304),n=t(96499),a=t(85156),o=t(24649),s=t(67805),u=t(55902),l=t(26035);r({target:"Promise",stat:!0,forced:l},{allSettled:function(d){var g=this,y=o.f(g),p=y.resolve,m=y.reject,E=s(function(){var S=a(g.resolve),I=[],P=0,A=1;u(d,function(R){var N=P++,T=!1;A++,n(S,g,R).then(function(C){T||(T=!0,I[N]={status:"fulfilled",value:C},--A||p(I))},function(C){T||(T=!0,I[N]={status:"rejected",reason:C},--A||p(I))})}),--A||p(I)});return E.error&&m(E.value),y.promise}})},11733:function(i,h,t){var r=t(14304),n=t(96499),a=t(85156),o=t(24649),s=t(67805),u=t(55902),l=t(26035);r({target:"Promise",stat:!0,forced:l},{all:function(d){var g=this,y=o.f(g),p=y.resolve,m=y.reject,E=s(function(){var S=a(g.resolve),I=[],P=0,A=1;u(d,function(R){var N=P++,T=!1;A++,n(S,g,R).then(function(C){T||(T=!0,I[N]=C,--A||p(I))},m)}),--A||p(I)});return E.error&&m(E.value),y.promise}})},3676:function(i,h,t){var r=t(14304),n=t(96499),a=t(85156),o=t(38941),s=t(24649),u=t(67805),l=t(55902),v=t(26035),d="No one promise resolved";r({target:"Promise",stat:!0,forced:v},{any:function(y){var p=this,m=o("AggregateError"),E=s.f(p),S=E.resolve,I=E.reject,P=u(function(){var A=a(p.resolve),R=[],N=0,T=1,C=!1;l(y,function(b){var L=N++,D=!1;T++,n(A,p,b).then(function($){D||C||(C=!0,S($))},function($){D||C||(D=!0,R[L]=$,--T||I(new m(R,d)))})}),--T||I(new m(R,d))});return P.error&&I(P.value),E.promise}})},14013:function(i,h,t){var r=t(14304),n=t(70457),a=t(37130).CONSTRUCTOR,o=t(98844),s=t(38941),u=t(23583),l=t(16142),v=o&&o.prototype;if(r({target:"Promise",proto:!0,forced:a,real:!0},{catch:function(g){return this.then(void 0,g)}}),!n&&u(o)){var d=s("Promise").prototype.catch;v.catch!==d&&l(v,"catch",d,{unsafe:!0})}},20238:function(i,h,t){var r=t(14304),n=t(70457),a=t(42954),o=t(66009),s=t(96499),u=t(16142),l=t(15861),v=t(78401),d=t(36167),g=t(85156),y=t(23583),p=t(37540),m=t(12833),E=t(16887),S=t(23115).set,I=t(9709),P=t(99095),A=t(67805),R=t(76895),N=t(82367),T=t(98844),C=t(37130),b=t(24649),L="Promise",D=C.CONSTRUCTOR,$=C.REJECTION_EVENT,w=C.SUBCLASSING,H=N.getterFor(L),U=N.set,B=T&&T.prototype,j=T,Y=B,k=o.TypeError,J=o.document,nt=o.process,_=b.f,dt=_,lt=!!(J&&J.createEvent&&o.dispatchEvent),gt="unhandledrejection",St="rejectionhandled",It=0,Gt=1,jt=2,Ft=1,vt=2,yt,Pt,Mt,Ct,Lt=function(rt){var Ot;return p(rt)&&y(Ot=rt.then)?Ot:!1},Zt=function(rt,Ot){var Tt=Ot.value,xt=Ot.state===Gt,pt=xt?rt.ok:rt.fail,_t=rt.resolve,rr=rt.reject,Q=rt.domain,ot,it,z;try{pt?(xt||(Ot.rejection===vt&&Vt(Ot),Ot.rejection=Ft),pt===!0?ot=Tt:(Q&&Q.enter(),ot=pt(Tt),Q&&(Q.exit(),z=!0)),ot===rt.promise?rr(new k("Promise-chain cycle")):(it=Lt(ot))?s(it,ot,_t,rr):_t(ot)):rr(Tt)}catch(Z){Q&&!z&&Q.exit(),rr(Z)}},kt=function(rt,Ot){rt.notified||(rt.notified=!0,I(function(){for(var Tt=rt.reactions,xt;xt=Tt.get();)Zt(xt,rt);rt.notified=!1,Ot&&!rt.rejection&&Dt(rt)}))},Kt=function(rt,Ot,Tt){var xt,pt;lt?(xt=J.createEvent("Event"),xt.promise=Ot,xt.reason=Tt,xt.initEvent(rt,!1,!0),o.dispatchEvent(xt)):xt={promise:Ot,reason:Tt},!$&&(pt=o["on"+rt])?pt(xt):rt===gt&&P("Unhandled promise rejection",Tt)},Dt=function(rt){s(S,o,function(){var Ot=rt.facade,Tt=rt.value,xt=Xt(rt),pt;if(xt&&(pt=A(function(){a?nt.emit("unhandledRejection",Tt,Ot):Kt(gt,Ot,Tt)}),rt.rejection=a||Xt(rt)?vt:Ft,pt.error))throw pt.value})},Xt=function(rt){return rt.rejection!==Ft&&!rt.parent},Vt=function(rt){s(S,o,function(){var Ot=rt.facade;a?nt.emit("rejectionHandled",Ot):Kt(St,Ot,rt.value)})},Ut=function(rt,Ot,Tt){return function(xt){rt(Ot,xt,Tt)}},st=function(rt,Ot,Tt){rt.done||(rt.done=!0,Tt&&(rt=Tt),rt.value=Ot,rt.state=jt,kt(rt,!0))},ht=function(rt,Ot,Tt){if(!rt.done){rt.done=!0,Tt&&(rt=Tt);try{if(rt.facade===Ot)throw new k("Promise can't be resolved itself");var xt=Lt(Ot);xt?I(function(){var pt={done:!1};try{s(xt,Ot,Ut(ht,pt,rt),Ut(st,pt,rt))}catch(_t){st(pt,_t,rt)}}):(rt.value=Ot,rt.state=Gt,kt(rt,!1))}catch(pt){st({done:!1},pt,rt)}}};if(D&&(j=function(Ot){m(this,Y),g(Ot),s(yt,this);var Tt=H(this);try{Ot(Ut(ht,Tt),Ut(st,Tt))}catch(xt){st(Tt,xt)}},Y=j.prototype,yt=function(Ot){U(this,{type:L,done:!1,notified:!1,parent:!1,reactions:new R,rejection:!1,state:It,value:void 0})},yt.prototype=u(Y,"then",function(Ot,Tt){var xt=H(this),pt=_(E(this,j));return xt.parent=!0,pt.ok=y(Ot)?Ot:!0,pt.fail=y(Tt)&&Tt,pt.domain=a?nt.domain:void 0,xt.state===It?xt.reactions.add(pt):I(function(){Zt(pt,xt)}),pt.promise}),Pt=function(){var rt=new yt,Ot=H(rt);this.promise=rt,this.resolve=Ut(ht,Ot),this.reject=Ut(st,Ot)},b.f=_=function(rt){return rt===j||rt===Mt?new Pt(rt):dt(rt)},!n&&y(T)&&B!==Object.prototype)){Ct=B.then,w||u(B,"then",function(Ot,Tt){var xt=this;return new j(function(pt,_t){s(Ct,xt,pt,_t)}).then(Ot,Tt)},{unsafe:!0});try{delete B.constructor}catch(rt){}l&&l(B,Y)}r({global:!0,constructor:!0,wrap:!0,forced:D},{Promise:j}),v(j,L,!1,!0),d(L)},58361:function(i,h,t){var r=t(14304),n=t(70457),a=t(98844),o=t(72069),s=t(38941),u=t(23583),l=t(16887),v=t(87408),d=t(16142),g=a&&a.prototype,y=!!a&&o(function(){g.finally.call({then:function(){}},function(){})});if(r({target:"Promise",proto:!0,real:!0,forced:y},{finally:function(m){var E=l(this,s("Promise")),S=u(m);return this.then(S?function(I){return v(E,m()).then(function(){return I})}:m,S?function(I){return v(E,m()).then(function(){throw I})}:m)}}),!n&&u(a)){var p=s("Promise").prototype.finally;g.finally!==p&&d(g,"finally",p,{unsafe:!0})}},63616:function(i,h,t){t(20238),t(11733),t(14013),t(3037),t(36027),t(97282)},3037:function(i,h,t){var r=t(14304),n=t(96499),a=t(85156),o=t(24649),s=t(67805),u=t(55902),l=t(26035);r({target:"Promise",stat:!0,forced:l},{race:function(d){var g=this,y=o.f(g),p=y.reject,m=s(function(){var E=a(g.resolve);u(d,function(S){n(E,g,S).then(y.resolve,p)})});return m.error&&p(m.value),y.promise}})},36027:function(i,h,t){var r=t(14304),n=t(24649),a=t(37130).CONSTRUCTOR;r({target:"Promise",stat:!0,forced:a},{reject:function(s){var u=n.f(this),l=u.reject;return l(s),u.promise}})},97282:function(i,h,t){var r=t(14304),n=t(38941),a=t(70457),o=t(98844),s=t(37130).CONSTRUCTOR,u=t(87408),l=n("Promise"),v=a&&!s;r({target:"Promise",stat:!0,forced:a||s},{resolve:function(g){return u(v&&this===l?o:this,g)}})},23958:function(i,h,t){var r=t(14304),n=t(24649);r({target:"Promise",stat:!0},{withResolvers:function(){var o=n.f(this);return{promise:o.promise,resolve:o.resolve,reject:o.reject}}})},9798:function(i,h,t){var r=t(14304),n=t(66543),a=t(85156),o=t(25001),s=t(72069),u=!s(function(){Reflect.apply(function(){})});r({target:"Reflect",stat:!0,forced:u},{apply:function(v,d,g){return n(a(v),d,o(g))}})},2371:function(i,h,t){var r=t(14304),n=t(38941),a=t(66543),o=t(91384),s=t(80042),u=t(25001),l=t(37540),v=t(5406),d=t(72069),g=n("Reflect","construct"),y=Object.prototype,p=[].push,m=d(function(){function I(){}return!(g(function(){},[],I)instanceof I)}),E=!d(function(){g(function(){})}),S=m||E;r({target:"Reflect",stat:!0,forced:S,sham:S},{construct:function(P,A){s(P),u(A);var R=arguments.length<3?P:s(arguments[2]);if(E&&!m)return g(P,A,R);if(P===R){switch(A.length){case 0:return new P;case 1:return new P(A[0]);case 2:return new P(A[0],A[1]);case 3:return new P(A[0],A[1],A[2]);case 4:return new P(A[0],A[1],A[2],A[3])}var N=[null];return a(p,N,A),new(a(o,P,N))}var T=R.prototype,C=v(l(T)?T:y),b=a(P,C,A);return l(b)?b:C}})},76185:function(i,h,t){var r=t(14304),n=t(92986),a=t(25001),o=t(50035),s=t(7831),u=t(72069),l=u(function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})});r({target:"Reflect",stat:!0,forced:l,sham:!n},{defineProperty:function(d,g,y){a(d);var p=o(g);a(y);try{return s.f(d,p,y),!0}catch(m){return!1}}})},76553:function(i,h,t){var r=t(14304),n=t(25001),a=t(71349).f;r({target:"Reflect",stat:!0},{deleteProperty:function(s,u){var l=a(n(s),u);return l&&!l.configurable?!1:delete s[u]}})},25227:function(i,h,t){var r=t(14304),n=t(92986),a=t(25001),o=t(71349);r({target:"Reflect",stat:!0,sham:!n},{getOwnPropertyDescriptor:function(u,l){return o.f(a(u),l)}})},91723:function(i,h,t){var r=t(14304),n=t(25001),a=t(26313),o=t(87501);r({target:"Reflect",stat:!0,sham:!o},{getPrototypeOf:function(u){return a(n(u))}})},93518:function(i,h,t){var r=t(14304),n=t(96499),a=t(37540),o=t(25001),s=t(69745),u=t(71349),l=t(26313);function v(d,g){var y=arguments.length<3?d:arguments[2],p,m;if(o(d)===y)return d[g];if(p=u.f(d,g),p)return s(p)?p.value:p.get===void 0?void 0:n(p.get,y);if(a(m=l(d)))return v(m,g,y)}r({target:"Reflect",stat:!0},{get:v})},57882:function(i,h,t){var r=t(14304);r({target:"Reflect",stat:!0},{has:function(a,o){return o in a}})},37796:function(i,h,t){var r=t(14304),n=t(25001),a=t(28174);r({target:"Reflect",stat:!0},{isExtensible:function(s){return n(s),a(s)}})},11563:function(i,h,t){var r=t(14304),n=t(16885);r({target:"Reflect",stat:!0},{ownKeys:n})},26159:function(i,h,t){var r=t(14304),n=t(38941),a=t(25001),o=t(27534);r({target:"Reflect",stat:!0,sham:!o},{preventExtensions:function(u){a(u);try{var l=n("Object","preventExtensions");return l&&l(u),!0}catch(v){return!1}}})},77487:function(i,h,t){var r=t(14304),n=t(25001),a=t(53408),o=t(15861);o&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(u,l){n(u),a(l);try{return o(u,l),!0}catch(v){return!1}}})},20962:function(i,h,t){var r=t(14304),n=t(96499),a=t(25001),o=t(37540),s=t(69745),u=t(72069),l=t(7831),v=t(71349),d=t(26313),g=t(18526);function y(m,E,S){var I=arguments.length<4?m:arguments[3],P=v.f(a(m),E),A,R,N;if(!P){if(o(R=d(m)))return y(R,E,S,I);P=g(0)}if(s(P)){if(P.writable===!1||!o(I))return!1;if(A=v.f(I,E)){if(A.get||A.set||A.writable===!1)return!1;A.value=S,l.f(I,E,A)}else l.f(I,E,g(0,S))}else{if(N=P.set,N===void 0)return!1;n(N,I,S)}return!0}var p=u(function(){var m=function(){},E=l.f(new m,"a",{configurable:!0});return Reflect.set(m.prototype,"a",1,E)!==!1});r({target:"Reflect",stat:!0,forced:p},{set:y})},6130:function(i,h,t){var r=t(14304),n=t(66009),a=t(78401);r({global:!0},{Reflect:{}}),a(n.Reflect,"Reflect",!0)},1354:function(i,h,t){var r=t(92986),n=t(66009),a=t(11286),o=t(13278),s=t(32345),u=t(90809),l=t(5406),v=t(83258).f,d=t(95307),g=t(11566),y=t(17361),p=t(54932),m=t(39807),E=t(2594),S=t(16142),I=t(72069),P=t(94879),A=t(82367).enforce,R=t(36167),N=t(18565),T=t(76769),C=t(85220),b=N("match"),L=n.RegExp,D=L.prototype,$=n.SyntaxError,w=a(D.exec),H=a("".charAt),U=a("".replace),B=a("".indexOf),j=a("".slice),Y=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,k=/a/g,J=/a/g,nt=new L(k)!==k,_=m.MISSED_STICKY,dt=m.UNSUPPORTED_Y,lt=r&&(!nt||_||T||C||I(function(){return J[b]=!1,L(k)!==k||L(J)===J||String(L(k,"i"))!=="/a/i"})),gt=function(Ft){for(var vt=Ft.length,yt=0,Pt="",Mt=!1,Ct;yt<=vt;yt++){if(Ct=H(Ft,yt),Ct==="\\"){Pt+=Ct+H(Ft,++yt);continue}!Mt&&Ct==="."?Pt+="[\\s\\S]":(Ct==="["?Mt=!0:Ct==="]"&&(Mt=!1),Pt+=Ct)}return Pt},St=function(Ft){for(var vt=Ft.length,yt=0,Pt="",Mt=[],Ct=l(null),Lt=!1,Zt=!1,kt=0,Kt="",Dt;yt<=vt;yt++){if(Dt=H(Ft,yt),Dt==="\\")Dt+=H(Ft,++yt);else if(Dt==="]")Lt=!1;else if(!Lt)switch(!0){case Dt==="[":Lt=!0;break;case Dt==="(":w(Y,j(Ft,yt+1))&&(yt+=2,Zt=!0),Pt+=Dt,kt++;continue;case(Dt===">"&&Zt):if(Kt===""||P(Ct,Kt))throw new $("Invalid capture group name");Ct[Kt]=!0,Mt[Mt.length]=[Kt,kt],Zt=!1,Kt="";continue}Zt?Kt+=Dt:Pt+=Dt}return[Pt,Mt]};if(o("RegExp",lt)){for(var It=function(vt,yt){var Pt=d(D,this),Mt=g(vt),Ct=yt===void 0,Lt=[],Zt=vt,kt,Kt,Dt,Xt,Vt,Ut;if(!Pt&&Mt&&Ct&&vt.constructor===It)return vt;if((Mt||d(D,vt))&&(vt=vt.source,Ct&&(yt=p(Zt))),vt=vt===void 0?"":y(vt),yt=yt===void 0?"":y(yt),Zt=vt,T&&"dotAll"in k&&(Kt=!!yt&&B(yt,"s")>-1,Kt&&(yt=U(yt,/s/g,""))),kt=yt,_&&"sticky"in k&&(Dt=!!yt&&B(yt,"y")>-1,Dt&&dt&&(yt=U(yt,/y/g,""))),C&&(Xt=St(vt),vt=Xt[0],Lt=Xt[1]),Vt=s(L(vt,yt),Pt?this:D,It),(Kt||Dt||Lt.length)&&(Ut=A(Vt),Kt&&(Ut.dotAll=!0,Ut.raw=It(gt(vt),kt)),Dt&&(Ut.sticky=!0),Lt.length&&(Ut.groups=Lt)),vt!==Zt)try{u(Vt,"source",Zt===""?"(?:)":Zt)}catch(st){}return Vt},Gt=v(L),jt=0;Gt.length>jt;)E(It,L,Gt[jt++]);D.constructor=It,It.prototype=D,S(n,"RegExp",It,{constructor:!0})}R("RegExp")},47119:function(i,h,t){var r=t(92986),n=t(76769),a=t(14274),o=t(85500),s=t(82367).get,u=RegExp.prototype,l=TypeError;r&&n&&o(u,"dotAll",{configurable:!0,get:function(){if(this!==u){if(a(this)==="RegExp")return!!s(this).dotAll;throw new l("Incompatible receiver, RegExp required")}}})},31145:function(i,h,t){var r=t(14304),n=t(44381);r({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})},96773:function(i,h,t){var r=t(66009),n=t(92986),a=t(85500),o=t(29833),s=t(72069),u=r.RegExp,l=u.prototype,v=n&&s(function(){var d=!0;try{u(".","d")}catch(P){d=!1}var g={},y="",p=d?"dgimsy":"gimsy",m=function(P,A){Object.defineProperty(g,P,{get:function(){return y+=A,!0}})},E={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};d&&(E.hasIndices="d");for(var S in E)m(S,E[S]);var I=Object.getOwnPropertyDescriptor(l,"flags").get.call(g);return I!==p||y!==p});v&&a(l,"flags",{configurable:!0,get:o})},14371:function(i,h,t){var r=t(92986),n=t(39807).MISSED_STICKY,a=t(14274),o=t(85500),s=t(82367).get,u=RegExp.prototype,l=TypeError;r&&n&&o(u,"sticky",{configurable:!0,get:function(){if(this!==u){if(a(this)==="RegExp")return!!s(this).sticky;throw new l("Incompatible receiver, RegExp required")}}})},18180:function(i,h,t){t(31145);var r=t(14304),n=t(96499),a=t(23583),o=t(25001),s=t(17361),u=function(){var v=!1,d=/[ac]/;return d.exec=function(){return v=!0,/./.exec.apply(this,arguments)},d.test("abc")===!0&&v}(),l=/./.test;r({target:"RegExp",proto:!0,forced:!u},{test:function(v){var d=o(this),g=s(v),y=d.exec;if(!a(y))return n(l,d,g);var p=n(y,d,g);return p===null?!1:(o(p),!0)}})},83147:function(i,h,t){var r=t(86588).PROPER,n=t(16142),a=t(25001),o=t(17361),s=t(72069),u=t(54932),l="toString",v=RegExp.prototype,d=v[l],g=s(function(){return d.call({source:"a",flags:"b"})!=="/a/b"}),y=r&&d.name!==l;(g||y)&&n(v,l,function(){var m=a(this),E=o(m.source),S=o(u(m));return"/"+E+"/"+S},{unsafe:!0})},6583:function(i,h,t){var r=t(89378),n=t(34440);r("Set",function(a){return function(){return a(this,arguments.length?arguments[0]:void 0)}},n)},86548:function(i,h,t){var r=t(14304),n=t(41754),a=t(94118);r({target:"Set",proto:!0,real:!0,forced:!a("difference")},{difference:n})},15282:function(i,h,t){var r=t(14304),n=t(72069),a=t(92292),o=t(94118),s=!o("intersection")||n(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});r({target:"Set",proto:!0,real:!0,forced:s},{intersection:a})},51275:function(i,h,t){var r=t(14304),n=t(47391),a=t(94118);r({target:"Set",proto:!0,real:!0,forced:!a("isDisjointFrom")},{isDisjointFrom:n})},91890:function(i,h,t){var r=t(14304),n=t(75492),a=t(94118);r({target:"Set",proto:!0,real:!0,forced:!a("isSubsetOf")},{isSubsetOf:n})},15089:function(i,h,t){var r=t(14304),n=t(1333),a=t(94118);r({target:"Set",proto:!0,real:!0,forced:!a("isSupersetOf")},{isSupersetOf:n})},75765:function(i,h,t){t(6583)},78134:function(i,h,t){var r=t(14304),n=t(64680),a=t(94118);r({target:"Set",proto:!0,real:!0,forced:!a("symmetricDifference")},{symmetricDifference:n})},56456:function(i,h,t){var r=t(14304),n=t(70402),a=t(94118);r({target:"Set",proto:!0,real:!0,forced:!a("union")},{union:n})},70641:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("anchor")},{anchor:function(s){return n(this,"a","name",s)}})},40735:function(i,h,t){var r=t(14304),n=t(11286),a=t(2068),o=t(12105),s=t(17361),u=t(72069),l=n("".charAt),v=u(function(){return"\u{20BB7}".at(-2)!=="\uD842"});r({target:"String",proto:!0,forced:v},{at:function(g){var y=s(a(this)),p=y.length,m=o(g),E=m>=0?m:p+m;return E<0||E>=p?void 0:l(y,E)}})},53892:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("big")},{big:function(){return n(this,"big","","")}})},95976:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("blink")},{blink:function(){return n(this,"blink","","")}})},399:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("bold")},{bold:function(){return n(this,"b","","")}})},8510:function(i,h,t){var r=t(14304),n=t(22149).codeAt;r({target:"String",proto:!0},{codePointAt:function(o){return n(this,o)}})},70159:function(i,h,t){var r=t(14304),n=t(77422),a=t(71349).f,o=t(45344),s=t(17361),u=t(92337),l=t(2068),v=t(8790),d=t(70457),g=n("".slice),y=Math.min,p=v("endsWith"),m=!d&&!p&&!!function(){var E=a(String.prototype,"endsWith");return E&&!E.writable}();r({target:"String",proto:!0,forced:!m&&!p},{endsWith:function(S){var I=s(l(this));u(S);var P=arguments.length>1?arguments[1]:void 0,A=I.length,R=P===void 0?A:y(o(P),A),N=s(S);return g(I,R-N.length,R)===N}})},72032:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("fixed")},{fixed:function(){return n(this,"tt","","")}})},49442:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("fontcolor")},{fontcolor:function(s){return n(this,"font","color",s)}})},16012:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("fontsize")},{fontsize:function(s){return n(this,"font","size",s)}})},93087:function(i,h,t){var r=t(14304),n=t(11286),a=t(4652),o=RangeError,s=String.fromCharCode,u=String.fromCodePoint,l=n([].join),v=!!u&&u.length!==1;r({target:"String",stat:!0,arity:1,forced:v},{fromCodePoint:function(g){for(var y=[],p=arguments.length,m=0,E;p>m;){if(E=+arguments[m++],a(E,1114111)!==E)throw new o(E+" is not a valid code point");y[m]=E<65536?s(E):s(((E-=65536)>>10)+55296,E%1024+56320)}return l(y,"")}})},26021:function(i,h,t){var r=t(14304),n=t(11286),a=t(92337),o=t(2068),s=t(17361),u=t(8790),l=n("".indexOf);r({target:"String",proto:!0,forced:!u("includes")},{includes:function(d){return!!~l(s(o(this)),s(a(d)),arguments.length>1?arguments[1]:void 0)}})},93029:function(i,h,t){var r=t(14304),n=t(11286),a=t(2068),o=t(17361),s=n("".charCodeAt);r({target:"String",proto:!0},{isWellFormed:function(){for(var l=o(a(this)),v=l.length,d=0;d=56320||++d>=v||(s(l,d)&64512)!==56320))return!1}return!0}})},9943:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("italics")},{italics:function(){return n(this,"i","","")}})},59158:function(i,h,t){var r=t(22149).charAt,n=t(17361),a=t(82367),o=t(10218),s=t(10659),u="String Iterator",l=a.set,v=a.getterFor(u);o(String,"String",function(d){l(this,{type:u,string:n(d),index:0})},function(){var g=v(this),y=g.string,p=g.index,m;return p>=y.length?s(void 0,!0):(m=r(y,p),g.index+=m.length,s(m,!1))})},33128:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("link")},{link:function(s){return n(this,"a","href",s)}})},18509:function(i,h,t){var r=t(14304),n=t(96499),a=t(77422),o=t(26820),s=t(10659),u=t(2068),l=t(45344),v=t(17361),d=t(25001),g=t(5683),y=t(14274),p=t(11566),m=t(54932),E=t(10512),S=t(16142),I=t(72069),P=t(18565),A=t(16887),R=t(24487),N=t(33064),T=t(82367),C=t(70457),b=P("matchAll"),L="RegExp String",D=L+" Iterator",$=T.set,w=T.getterFor(D),H=RegExp.prototype,U=TypeError,B=a("".indexOf),j=a("".matchAll),Y=!!j&&!I(function(){j("a",/./)}),k=o(function(_,dt,lt,gt){$(this,{type:D,regexp:_,string:dt,global:lt,unicode:gt,done:!1})},L,function(){var _=w(this);if(_.done)return s(void 0,!0);var dt=_.regexp,lt=_.string,gt=N(dt,lt);return gt===null?(_.done=!0,s(void 0,!0)):_.global?(v(gt[0])===""&&(dt.lastIndex=R(lt,l(dt.lastIndex),_.unicode)),s(gt,!1)):(_.done=!0,s(gt,!1))}),J=function(nt){var _=d(this),dt=v(nt),lt=A(_,RegExp),gt=v(m(_)),St,It,Gt;return St=new lt(lt===RegExp?_.source:_,gt),It=!!~B(gt,"g"),Gt=!!~B(gt,"u"),St.lastIndex=l(_.lastIndex),new k(St,dt,It,Gt)};r({target:"String",proto:!0,forced:Y},{matchAll:function(_){var dt=u(this),lt,gt,St,It;if(g(_)){if(Y)return j(dt,_)}else{if(p(_)&&(lt=v(u(m(_))),!~B(lt,"g")))throw new U("`.matchAll` does not allow non-global regexes");if(Y)return j(dt,_);if(St=E(_,b),St===void 0&&C&&y(_)==="RegExp"&&(St=J),St)return n(St,_,dt)}return gt=v(dt),It=new RegExp(_,"g"),C?n(J,It,gt):It[b](gt)}}),C||b in H||S(H,b,J)},15599:function(i,h,t){var r=t(96499),n=t(63194),a=t(25001),o=t(5683),s=t(45344),u=t(17361),l=t(2068),v=t(10512),d=t(24487),g=t(33064);n("match",function(y,p,m){return[function(S){var I=l(this),P=o(S)?void 0:v(S,y);return P?r(P,S,I):new RegExp(S)[y](u(I))},function(E){var S=a(this),I=u(E),P=m(p,S,I);if(P.done)return P.value;if(!S.global)return g(S,I);var A=S.unicode;S.lastIndex=0;for(var R=[],N=0,T;(T=g(S,I))!==null;){var C=u(T[0]);R[N]=C,C===""&&(S.lastIndex=d(I,s(S.lastIndex),A)),N++}return N===0?null:R}]})},21579:function(i,h,t){var r=t(14304),n=t(61607).end,a=t(36945);r({target:"String",proto:!0,forced:a},{padEnd:function(s){return n(this,s,arguments.length>1?arguments[1]:void 0)}})},8854:function(i,h,t){var r=t(14304),n=t(61607).start,a=t(36945);r({target:"String",proto:!0,forced:a},{padStart:function(s){return n(this,s,arguments.length>1?arguments[1]:void 0)}})},57676:function(i,h,t){var r=t(14304),n=t(11286),a=t(36859),o=t(49671),s=t(17361),u=t(82628),l=n([].push),v=n([].join);r({target:"String",stat:!0},{raw:function(g){var y=a(o(g).raw),p=u(y);if(!p)return"";for(var m=arguments.length,E=[],S=0;;){if(l(E,s(y[S++])),S===p)return v(E,"");Sw.length?-1:I(w,H,k+j);return J")!=="7"});o("replace",function(U,B,j){var Y=w?"$":"$0";return[function(J,nt){var _=p(this),dt=v(J)?void 0:E(J,A);return dt?n(dt,J,_,nt):n(B,y(_),J,nt)},function(k,J){var nt=u(this),_=y(k);if(typeof J=="string"&&b(J,Y)===-1&&b(J,"$<")===-1){var dt=j(B,nt,_,J);if(dt.done)return dt.value}var lt=l(J);lt||(J=y(J));var gt=nt.global,St;gt&&(St=nt.unicode,nt.lastIndex=0);for(var It=[],Gt;Gt=I(nt,_),!(Gt===null||(C(It,Gt),!gt));){var jt=y(Gt[0]);jt===""&&(nt.lastIndex=m(_,g(nt.lastIndex),St))}for(var Ft="",vt=0,yt=0;yt=vt&&(Ft+=L(_,vt,Mt)+Lt,vt=Mt+Pt.length)}return Ft+L(_,vt)}]},!H||!$||w)},74980:function(i,h,t){var r=t(96499),n=t(63194),a=t(25001),o=t(5683),s=t(2068),u=t(13944),l=t(17361),v=t(10512),d=t(33064);n("search",function(g,y,p){return[function(E){var S=s(this),I=o(E)?void 0:v(E,g);return I?r(I,E,S):new RegExp(E)[g](l(S))},function(m){var E=a(this),S=l(m),I=p(y,E,S);if(I.done)return I.value;var P=E.lastIndex;u(P,0)||(E.lastIndex=0);var A=d(E,S);return u(E.lastIndex,P)||(E.lastIndex=P),A===null?-1:A.index}]})},95625:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("small")},{small:function(){return n(this,"small","","")}})},390:function(i,h,t){var r=t(96499),n=t(11286),a=t(63194),o=t(25001),s=t(5683),u=t(2068),l=t(16887),v=t(24487),d=t(45344),g=t(17361),y=t(10512),p=t(33064),m=t(39807),E=t(72069),S=m.UNSUPPORTED_Y,I=4294967295,P=Math.min,A=n([].push),R=n("".slice),N=!E(function(){var C=/(?:)/,b=C.exec;C.exec=function(){return b.apply(this,arguments)};var L="ab".split(C);return L.length!==2||L[0]!=="a"||L[1]!=="b"}),T="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;a("split",function(C,b,L){var D="0".split(void 0,0).length?function($,w){return $===void 0&&w===0?[]:r(b,this,$,w)}:b;return[function(w,H){var U=u(this),B=s(w)?void 0:y(w,C);return B?r(B,w,U,H):r(D,g(U),w,H)},function($,w){var H=o(this),U=g($);if(!T){var B=L(D,H,U,w,D!==b);if(B.done)return B.value}var j=l(H,RegExp),Y=H.unicode,k=(H.ignoreCase?"i":"")+(H.multiline?"m":"")+(H.unicode?"u":"")+(S?"g":"y"),J=new j(S?"^(?:"+H.source+")":H,k),nt=w===void 0?I:w>>>0;if(nt===0)return[];if(U.length===0)return p(J,U)===null?[U]:[];for(var _=0,dt=0,lt=[];dt1?arguments[1]:void 0,I.length)),A=s(S);return g(I,P,P+A.length)===A}})},90614:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("strike")},{strike:function(){return n(this,"strike","","")}})},60120:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("sub")},{sub:function(){return n(this,"sub","","")}})},21293:function(i,h,t){var r=t(14304),n=t(11286),a=t(2068),o=t(12105),s=t(17361),u=n("".slice),l=Math.max,v=Math.min,d=!"".substr||"ab".substr(-1)!=="b";r({target:"String",proto:!0,forced:d},{substr:function(y,p){var m=s(a(this)),E=m.length,S=o(y),I,P;return S===1/0&&(S=0),S<0&&(S=l(E+S,0)),I=p===void 0?E:o(p),I<=0||I===1/0?"":(P=v(S+I,E),S>=P?"":u(m,S,P))}})},75826:function(i,h,t){var r=t(14304),n=t(68422),a=t(5287);r({target:"String",proto:!0,forced:a("sup")},{sup:function(){return n(this,"sup","","")}})},18184:function(i,h,t){var r=t(14304),n=t(96499),a=t(11286),o=t(2068),s=t(17361),u=t(72069),l=Array,v=a("".charAt),d=a("".charCodeAt),g=a([].join),y="".toWellFormed,p="\uFFFD",m=y&&u(function(){return n(y,1)!=="1"});r({target:"String",proto:!0,forced:m},{toWellFormed:function(){var S=s(o(this));if(m)return n(y,S);for(var I=S.length,P=l(I),A=0;A=56320||A+1>=I||(d(S,A+1)&64512)!==56320?P[A]=p:(P[A]=v(S,A),P[++A]=v(S,A))}return g(P,"")}})},19680:function(i,h,t){t(23283);var r=t(14304),n=t(75176);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==n},{trimEnd:n})},12272:function(i,h,t){var r=t(14304),n=t(83481);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==n},{trimLeft:n})},23283:function(i,h,t){var r=t(14304),n=t(75176);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==n},{trimRight:n})},4193:function(i,h,t){t(12272);var r=t(14304),n=t(83481);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==n},{trimStart:n})},75012:function(i,h,t){var r=t(14304),n=t(85900).trim,a=t(33328);r({target:"String",proto:!0,forced:a("trim")},{trim:function(){return n(this)}})},43606:function(i,h,t){var r=t(83749);r("asyncIterator")},51767:function(i,h,t){var r=t(14304),n=t(66009),a=t(96499),o=t(11286),s=t(70457),u=t(92986),l=t(39729),v=t(72069),d=t(94879),g=t(95307),y=t(25001),p=t(36859),m=t(50035),E=t(17361),S=t(18526),I=t(5406),P=t(18350),A=t(83258),R=t(92880),N=t(24943),T=t(71349),C=t(7831),b=t(61963),L=t(79591),D=t(16142),$=t(85500),w=t(96731),H=t(44869),U=t(19423),B=t(36374),j=t(18565),Y=t(56529),k=t(83749),J=t(60796),nt=t(78401),_=t(82367),dt=t(66655).forEach,lt=H("hidden"),gt="Symbol",St="prototype",It=_.set,Gt=_.getterFor(gt),jt=Object[St],Ft=n.Symbol,vt=Ft&&Ft[St],yt=n.RangeError,Pt=n.TypeError,Mt=n.QObject,Ct=T.f,Lt=C.f,Zt=R.f,kt=L.f,Kt=o([].push),Dt=w("symbols"),Xt=w("op-symbols"),Vt=w("wks"),Ut=!Mt||!Mt[St]||!Mt[St].findChild,st=function(ot,it,z){var Z=Ct(jt,it);Z&&delete jt[it],Lt(ot,it,z),Z&&ot!==jt&&Lt(jt,it,Z)},ht=u&&v(function(){return I(Lt({},"a",{get:function(){return Lt(this,"a",{value:7}).a}})).a!==7})?st:Lt,rt=function(ot,it){var z=Dt[ot]=I(vt);return It(z,{type:gt,tag:ot,description:it}),u||(z.description=it),z},Ot=function(it,z,Z){it===jt&&Ot(Xt,z,Z),y(it);var K=m(z);return y(Z),d(Dt,K)?(Z.enumerable?(d(it,lt)&&it[lt][K]&&(it[lt][K]=!1),Z=I(Z,{enumerable:S(0,!1)})):(d(it,lt)||Lt(it,lt,S(1,I(null))),it[lt][K]=!0),ht(it,K,Z)):Lt(it,K,Z)},Tt=function(it,z){y(it);var Z=p(z),K=P(Z).concat(Q(Z));return dt(K,function(ct){(!u||a(pt,Z,ct))&&Ot(it,ct,Z[ct])}),it},xt=function(it,z){return z===void 0?I(it):Tt(I(it),z)},pt=function(it){var z=m(it),Z=a(kt,this,z);return this===jt&&d(Dt,z)&&!d(Xt,z)?!1:Z||!d(this,z)||!d(Dt,z)||d(this,lt)&&this[lt][z]?Z:!0},_t=function(it,z){var Z=p(it),K=m(z);if(!(Z===jt&&d(Dt,K)&&!d(Xt,K))){var ct=Ct(Z,K);return ct&&d(Dt,K)&&!(d(Z,lt)&&Z[lt][K])&&(ct.enumerable=!0),ct}},rr=function(it){var z=Zt(p(it)),Z=[];return dt(z,function(K){!d(Dt,K)&&!d(U,K)&&Kt(Z,K)}),Z},Q=function(ot){var it=ot===jt,z=Zt(it?Xt:p(ot)),Z=[];return dt(z,function(K){d(Dt,K)&&(!it||d(jt,K))&&Kt(Z,Dt[K])}),Z};l||(Ft=function(){if(g(vt,this))throw new Pt("Symbol is not a constructor");var it=!arguments.length||arguments[0]===void 0?void 0:E(arguments[0]),z=B(it),Z=function(K){var ct=this===void 0?n:this;ct===jt&&a(Z,Xt,K),d(ct,lt)&&d(ct[lt],z)&&(ct[lt][z]=!1);var At=S(1,K);try{ht(ct,z,At)}catch(Nt){if(!(Nt instanceof yt))throw Nt;st(ct,z,At)}};return u&&Ut&&ht(jt,z,{configurable:!0,set:Z}),rt(z,it)},vt=Ft[St],D(vt,"toString",function(){return Gt(this).tag}),D(Ft,"withoutSetter",function(ot){return rt(B(ot),ot)}),L.f=pt,C.f=Ot,b.f=Tt,T.f=_t,A.f=R.f=rr,N.f=Q,Y.f=function(ot){return rt(j(ot),ot)},u&&($(vt,"description",{configurable:!0,get:function(){return Gt(this).description}}),s||D(jt,"propertyIsEnumerable",pt,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:Ft}),dt(P(Vt),function(ot){k(ot)}),r({target:gt,stat:!0,forced:!l},{useSetter:function(){Ut=!0},useSimple:function(){Ut=!1}}),r({target:"Object",stat:!0,forced:!l,sham:!u},{create:xt,defineProperty:Ot,defineProperties:Tt,getOwnPropertyDescriptor:_t}),r({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:rr}),J(),nt(Ft,gt),U[lt]=!0},43657:function(i,h,t){var r=t(14304),n=t(92986),a=t(66009),o=t(11286),s=t(94879),u=t(23583),l=t(95307),v=t(17361),d=t(85500),g=t(93706),y=a.Symbol,p=y&&y.prototype;if(n&&u(y)&&(!("description"in p)||y().description!==void 0)){var m={},E=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:v(arguments[0]),b=l(p,this)?new y(C):C===void 0?y():y(C);return C===""&&(m[b]=!0),b};g(E,y),E.prototype=p,p.constructor=E;var S=String(y("description detection"))==="Symbol(description detection)",I=o(p.valueOf),P=o(p.toString),A=/^Symbol\((.*)\)[^)]+$/,R=o("".replace),N=o("".slice);d(p,"description",{configurable:!0,get:function(){var C=I(this);if(s(m,C))return"";var b=P(C),L=S?N(b,7,-1):R(b,A,"$1");return L===""?void 0:L}}),r({global:!0,constructor:!0,forced:!0},{Symbol:E})}},20872:function(i,h,t){var r=t(14304),n=t(38941),a=t(94879),o=t(17361),s=t(96731),u=t(61190),l=s("string-to-symbol-registry"),v=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{for:function(d){var g=o(d);if(a(l,g))return l[g];var y=n("Symbol")(g);return l[g]=y,v[y]=g,y}})},15855:function(i,h,t){var r=t(83749);r("hasInstance")},42026:function(i,h,t){var r=t(83749);r("isConcatSpreadable")},33257:function(i,h,t){var r=t(83749);r("iterator")},40949:function(i,h,t){t(51767),t(20872),t(94762),t(71332),t(45223)},94762:function(i,h,t){var r=t(14304),n=t(94879),a=t(491),o=t(82453),s=t(96731),u=t(61190),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!u},{keyFor:function(d){if(!a(d))throw new TypeError(o(d)+" is not a symbol");if(n(l,d))return l[d]}})},88344:function(i,h,t){var r=t(83749);r("matchAll")},59414:function(i,h,t){var r=t(83749);r("match")},92579:function(i,h,t){var r=t(83749);r("replace")},94655:function(i,h,t){var r=t(83749);r("search")},8565:function(i,h,t){var r=t(83749);r("species")},60843:function(i,h,t){var r=t(83749);r("split")},65842:function(i,h,t){var r=t(83749),n=t(60796);r("toPrimitive"),n()},51595:function(i,h,t){var r=t(38941),n=t(83749),a=t(78401);n("toStringTag"),a(r("Symbol"),"Symbol")},54908:function(i,h,t){var r=t(83749);r("unscopables")},71998:function(i,h,t){var r=t(88037),n=t(82628),a=t(12105),o=r.aTypedArray,s=r.exportTypedArrayMethod;s("at",function(l){var v=o(this),d=n(v),g=a(l),y=g>=0?g:d+g;return y<0||y>=d?void 0:v[y]})},6116:function(i,h,t){var r=t(11286),n=t(88037),a=t(81499),o=r(a),s=n.aTypedArray,u=n.exportTypedArrayMethod;u("copyWithin",function(v,d){return o(s(this),v,d,arguments.length>2?arguments[2]:void 0)})},33032:function(i,h,t){var r=t(88037),n=t(66655).every,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("every",function(u){return n(a(this),u,arguments.length>1?arguments[1]:void 0)})},80962:function(i,h,t){var r=t(88037),n=t(43011),a=t(11344),o=t(9205),s=t(96499),u=t(11286),l=t(72069),v=r.aTypedArray,d=r.exportTypedArrayMethod,g=u("".slice),y=l(function(){var p=0;return new Int8Array(2).fill({valueOf:function(){return p++}}),p!==1});d("fill",function(m){var E=arguments.length;v(this);var S=g(o(this),0,3)==="Big"?a(m):+m;return s(n,this,S,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)},y)},49381:function(i,h,t){var r=t(88037),n=t(66655).filter,a=t(3795),o=r.aTypedArray,s=r.exportTypedArrayMethod;s("filter",function(l){var v=n(o(this),l,arguments.length>1?arguments[1]:void 0);return a(this,v)})},65961:function(i,h,t){var r=t(88037),n=t(66655).findIndex,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("findIndex",function(u){return n(a(this),u,arguments.length>1?arguments[1]:void 0)})},16028:function(i,h,t){var r=t(88037),n=t(73849).findLastIndex,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("findLastIndex",function(u){return n(a(this),u,arguments.length>1?arguments[1]:void 0)})},94153:function(i,h,t){var r=t(88037),n=t(73849).findLast,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("findLast",function(u){return n(a(this),u,arguments.length>1?arguments[1]:void 0)})},38344:function(i,h,t){var r=t(88037),n=t(66655).find,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("find",function(u){return n(a(this),u,arguments.length>1?arguments[1]:void 0)})},25560:function(i,h,t){var r=t(80357);r("Float32",function(n){return function(o,s,u){return n(this,o,s,u)}})},22571:function(i,h,t){var r=t(80357);r("Float64",function(n){return function(o,s,u){return n(this,o,s,u)}})},20656:function(i,h,t){var r=t(88037),n=t(66655).forEach,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("forEach",function(u){n(a(this),u,arguments.length>1?arguments[1]:void 0)})},17063:function(i,h,t){var r=t(46868),n=t(88037).exportTypedArrayStaticMethod,a=t(66169);n("from",a,r)},21774:function(i,h,t){var r=t(88037),n=t(94319).includes,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("includes",function(u){return n(a(this),u,arguments.length>1?arguments[1]:void 0)})},51761:function(i,h,t){var r=t(88037),n=t(94319).indexOf,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("indexOf",function(u){return n(a(this),u,arguments.length>1?arguments[1]:void 0)})},36849:function(i,h,t){var r=t(80357);r("Int16",function(n){return function(o,s,u){return n(this,o,s,u)}})},49191:function(i,h,t){var r=t(80357);r("Int32",function(n){return function(o,s,u){return n(this,o,s,u)}})},40704:function(i,h,t){var r=t(80357);r("Int8",function(n){return function(o,s,u){return n(this,o,s,u)}})},12317:function(i,h,t){var r=t(66009),n=t(72069),a=t(11286),o=t(88037),s=t(35054),u=t(18565),l=u("iterator"),v=r.Uint8Array,d=a(s.values),g=a(s.keys),y=a(s.entries),p=o.aTypedArray,m=o.exportTypedArrayMethod,E=v&&v.prototype,S=!n(function(){E[l].call([1])}),I=!!E&&E.values&&E[l]===E.values&&E.values.name==="values",P=function(){return d(p(this))};m("entries",function(){return y(p(this))},S),m("keys",function(){return g(p(this))},S),m("values",P,S||!I,{name:"values"}),m(l,P,S||!I,{name:"values"})},19711:function(i,h,t){var r=t(88037),n=t(11286),a=r.aTypedArray,o=r.exportTypedArrayMethod,s=n([].join);o("join",function(l){return s(a(this),l)})},41034:function(i,h,t){var r=t(88037),n=t(66543),a=t(58465),o=r.aTypedArray,s=r.exportTypedArrayMethod;s("lastIndexOf",function(l){var v=arguments.length;return n(a,o(this),v>1?[l,arguments[1]]:[l])})},13313:function(i,h,t){var r=t(88037),n=t(66655).map,a=t(21822),o=r.aTypedArray,s=r.exportTypedArrayMethod;s("map",function(l){return n(o(this),l,arguments.length>1?arguments[1]:void 0,function(v,d){return new(a(v))(d)})})},44698:function(i,h,t){var r=t(88037),n=t(46868),a=r.aTypedArrayConstructor,o=r.exportTypedArrayStaticMethod;o("of",function(){for(var u=0,l=arguments.length,v=new(a(this))(l);l>u;)v[u]=arguments[u++];return v},n)},66178:function(i,h,t){var r=t(88037),n=t(97264).right,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("reduceRight",function(u){var l=arguments.length;return n(a(this),u,l,l>1?arguments[1]:void 0)})},7369:function(i,h,t){var r=t(88037),n=t(97264).left,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("reduce",function(u){var l=arguments.length;return n(a(this),u,l,l>1?arguments[1]:void 0)})},67961:function(i,h,t){var r=t(88037),n=r.aTypedArray,a=r.exportTypedArrayMethod,o=Math.floor;a("reverse",function(){for(var u=this,l=n(u).length,v=o(l/2),d=0,g;d1?arguments[1]:void 0,1),R=u(P);if(E)return n(y,this,R,A);var N=this.length,T=o(R),C=0;if(T+A>N)throw new v("Wrong length");for(;Cm;)S[m]=y[m++];return S},l)},9711:function(i,h,t){var r=t(88037),n=t(66655).some,a=r.aTypedArray,o=r.exportTypedArrayMethod;o("some",function(u){return n(a(this),u,arguments.length>1?arguments[1]:void 0)})},3923:function(i,h,t){var r=t(66009),n=t(77422),a=t(72069),o=t(85156),s=t(13270),u=t(88037),l=t(54040),v=t(87216),d=t(73126),g=t(68674),y=u.aTypedArray,p=u.exportTypedArrayMethod,m=r.Uint16Array,E=m&&n(m.prototype.sort),S=!!E&&!(a(function(){E(new m(2),null)})&&a(function(){E(new m(2),{})})),I=!!E&&!a(function(){if(d)return d<74;if(l)return l<67;if(v)return!0;if(g)return g<602;var A=new m(516),R=Array(516),N,T;for(N=0;N<516;N++)T=N%4,A[N]=515-N,R[N]=N-2*T+3;for(E(A,function(C,b){return(C/4|0)-(b/4|0)}),N=0;N<516;N++)if(A[N]!==R[N])return!0}),P=function(A){return function(R,N){return A!==void 0?+A(R,N)||0:N!==N?-1:R!==R?1:R===0&&N===0?1/R>0&&1/N<0?1:-1:R>N}};p("sort",function(R){return R!==void 0&&o(R),I?E(this,R):s(y(this),P(R))},!I||S)},59728:function(i,h,t){var r=t(88037),n=t(45344),a=t(4652),o=t(21822),s=r.aTypedArray,u=r.exportTypedArrayMethod;u("subarray",function(v,d){var g=s(this),y=g.length,p=a(v,y),m=o(g);return new m(g.buffer,g.byteOffset+p*g.BYTES_PER_ELEMENT,n((d===void 0?y:a(d,y))-p))})},85227:function(i,h,t){var r=t(66009),n=t(66543),a=t(88037),o=t(72069),s=t(22806),u=r.Int8Array,l=a.aTypedArray,v=a.exportTypedArrayMethod,d=[].toLocaleString,g=!!u&&o(function(){d.call(new u(1))}),y=o(function(){return[1,2].toLocaleString()!==new u([1,2]).toLocaleString()})||!o(function(){u.prototype.toLocaleString.call([1,2])});v("toLocaleString",function(){return n(d,g?s(l(this)):l(this),s(arguments))},y)},56933:function(i,h,t){var r=t(61638),n=t(88037),a=n.aTypedArray,o=n.exportTypedArrayMethod,s=n.getTypedArrayConstructor;o("toReversed",function(){return r(a(this),s(this))})},91490:function(i,h,t){var r=t(88037),n=t(11286),a=t(85156),o=t(5220),s=r.aTypedArray,u=r.getTypedArrayConstructor,l=r.exportTypedArrayMethod,v=n(r.TypedArrayPrototype.sort);l("toSorted",function(g){g!==void 0&&a(g);var y=s(this),p=o(u(y),y);return v(p,g)})},61766:function(i,h,t){var r=t(88037).exportTypedArrayMethod,n=t(72069),a=t(66009),o=t(11286),s=a.Uint8Array,u=s&&s.prototype||{},l=[].toString,v=o([].join);n(function(){l.call({})})&&(l=function(){return v(this)});var d=u.toString!==l;r("toString",l,d)},44884:function(i,h,t){var r=t(80357);r("Uint16",function(n){return function(o,s,u){return n(this,o,s,u)}})},48658:function(i,h,t){var r=t(80357);r("Uint32",function(n){return function(o,s,u){return n(this,o,s,u)}})},81083:function(i,h,t){var r=t(80357);r("Uint8",function(n){return function(o,s,u){return n(this,o,s,u)}})},27428:function(i,h,t){var r=t(80357);r("Uint8",function(n){return function(o,s,u){return n(this,o,s,u)}},!0)},85143:function(i,h,t){var r=t(72302),n=t(88037),a=t(77129),o=t(12105),s=t(11344),u=n.aTypedArray,l=n.getTypedArrayConstructor,v=n.exportTypedArrayMethod,d=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(g){return g===8}}();v("with",function(g,y){var p=u(this),m=o(g),E=a(p)?s(y):+y;return r(p,l(p),m,E)},!d)},47005:function(i,h,t){var r=t(14304),n=t(11286),a=t(17361),o=String.fromCharCode,s=n("".charAt),u=n(/./.exec),l=n("".slice),v=/^[\da-f]{2}$/i,d=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(y){for(var p=a(y),m="",E=p.length,S=0,I,P;S>(-2*U&6)));return w}})},60869:function(i,h,t){var r=t(14304),n=t(66009),a=t(38941),o=t(11286),s=t(96499),u=t(72069),l=t(17361),v=t(95486),d=t(6210).i2c,g=a("btoa"),y=o("".charAt),p=o("".charCodeAt),m=!!g&&!u(function(){return g("hi")!=="aGk="}),E=m&&!u(function(){g()}),S=m&&u(function(){return g(null)!=="bnVsbA=="}),I=m&&g.length!==1;r({global:!0,bind:!0,enumerable:!0,forced:!m||E||S||I},{btoa:function(A){if(v(arguments.length,1),m)return s(g,n,l(A));for(var R=l(A),N="",T=0,C=d,b,L;y(R,T)||(C="=",T%1);){if(L=p(R,T+=.75),L>255)throw new(a("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");b=b<<8|L,N+=y(C,63&b>>8-T%1*8)}return N}})},66722:function(i,h,t){var r=t(14304),n=t(66009),a=t(23115).clear;r({global:!0,bind:!0,enumerable:!0,forced:n.clearImmediate!==a},{clearImmediate:a})},50338:function(i,h,t){var r=t(66009),n=t(93014),a=t(39882),o=t(13349),s=t(90809),u=function(v){if(v&&v.forEach!==o)try{s(v,"forEach",o)}catch(d){v.forEach=o}};for(var l in n)n[l]&&u(r[l]&&r[l].prototype);u(a)},53059:function(i,h,t){var r=t(66009),n=t(93014),a=t(39882),o=t(35054),s=t(90809),u=t(78401),l=t(18565),v=l("iterator"),d=o.values,g=function(p,m){if(p){if(p[v]!==d)try{s(p,v,d)}catch(S){p[v]=d}if(u(p,m,!0),n[m]){for(var E in o)if(p[E]!==o[E])try{s(p,E,o[E])}catch(S){p[E]=o[E]}}}};for(var y in n)g(r[y]&&r[y].prototype,y);g(a,"DOMTokenList")},5805:function(i,h,t){var r=t(14304),n=t(18096),a=t(38941),o=t(72069),s=t(5406),u=t(18526),l=t(7831).f,v=t(16142),d=t(85500),g=t(94879),y=t(12833),p=t(25001),m=t(58434),E=t(15453),S=t(74408),I=t(40851),P=t(82367),A=t(92986),R=t(70457),N="DOMException",T="DATA_CLONE_ERR",C=a("Error"),b=a(N)||function(){try{var vt=a("MessageChannel")||n("worker_threads").MessageChannel;new vt().port1.postMessage(new WeakMap)}catch(yt){if(yt.name===T&&yt.code===25)return yt.constructor}}(),L=b&&b.prototype,D=C.prototype,$=P.set,w=P.getterFor(N),H="stack"in new C(N),U=function(vt){return g(S,vt)&&S[vt].m?S[vt].c:0},B=function(){y(this,j);var yt=arguments.length,Pt=E(yt<1?void 0:arguments[0]),Mt=E(yt<2?void 0:arguments[1],"Error"),Ct=U(Mt);if($(this,{type:N,name:Mt,message:Pt,code:Ct}),A||(this.name=Mt,this.message=Pt,this.code=Ct),H){var Lt=new C(Pt);Lt.name=N,l(this,"stack",u(1,I(Lt.stack,1)))}},j=B.prototype=s(D),Y=function(vt){return{enumerable:!0,configurable:!0,get:vt}},k=function(vt){return Y(function(){return w(this)[vt]})};A&&(d(j,"code",k("code")),d(j,"message",k("message")),d(j,"name",k("name"))),l(j,"constructor",u(1,B));var J=o(function(){return!(new b instanceof C)}),nt=J||o(function(){return D.toString!==m||String(new b(1,2))!=="2: 1"}),_=J||o(function(){return new b(1,"DataCloneError").code!==25}),dt=J||b[T]!==25||L[T]!==25,lt=R?nt||_||dt:J;r({global:!0,constructor:!0,forced:lt},{DOMException:lt?B:b});var gt=a(N),St=gt.prototype;nt&&(R||b===gt)&&v(St,"toString",m),_&&A&&b===gt&&d(St,"code",Y(function(){return U(p(this).name)}));for(var It in S)if(g(S,It)){var Gt=S[It],jt=Gt.s,Ft=u(6,Gt.c);g(gt,jt)||l(gt,jt,Ft),g(St,jt)||l(St,jt,Ft)}},50685:function(i,h,t){var r=t(14304),n=t(66009),a=t(38941),o=t(18526),s=t(7831).f,u=t(94879),l=t(12833),v=t(32345),d=t(15453),g=t(74408),y=t(40851),p=t(92986),m=t(70457),E="DOMException",S=a("Error"),I=a(E),P=function(){l(this,A);var B=arguments.length,j=d(B<1?void 0:arguments[0]),Y=d(B<2?void 0:arguments[1],"Error"),k=new I(j,Y),J=new S(j);return J.name=E,s(k,"stack",o(1,y(J.stack,1))),v(k,this,P),k},A=P.prototype=I.prototype,R="stack"in new S(E),N="stack"in new I(1,2),T=I&&p&&Object.getOwnPropertyDescriptor(n,E),C=!!T&&!(T.writable&&T.configurable),b=R&&!C&&!N;r({global:!0,constructor:!0,forced:m||b},{DOMException:b?P:I});var L=a(E),D=L.prototype;if(D.constructor!==L){m||s(D,"constructor",o(1,L));for(var $ in g)if(u(g,$)){var w=g[$],H=w.s;u(L,H)||s(L,H,o(6,w.c))}}},70649:function(i,h,t){var r=t(38941),n=t(78401),a="DOMException";n(r(a),a)},39842:function(i,h,t){t(66722),t(8235)},82872:function(i,h,t){var r=t(14304),n=t(66009),a=t(9709),o=t(85156),s=t(95486),u=t(72069),l=t(92986),v=u(function(){return l&&Object.getOwnPropertyDescriptor(n,"queueMicrotask").value.length!==1});r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:v},{queueMicrotask:function(g){s(arguments.length,1),a(o(g))}})},91401:function(i,h,t){var r=t(14304),n=t(66009),a=t(85500),o=t(92986),s=TypeError,u=Object.defineProperty,l=n.self!==n;try{if(o){var v=Object.getOwnPropertyDescriptor(n,"self");(l||!v||!v.get||!v.enumerable)&&a(n,"self",{get:function(){return n},set:function(g){if(this!==n)throw new s("Illegal invocation");u(n,"self",{value:g,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else r({global:!0,simple:!0,forced:l},{self:n})}catch(d){}},8235:function(i,h,t){var r=t(14304),n=t(66009),a=t(23115).set,o=t(9934),s=n.setImmediate?o(a,!1):a;r({global:!0,bind:!0,enumerable:!0,forced:n.setImmediate!==s},{setImmediate:s})},63981:function(i,h,t){var r=t(14304),n=t(66009),a=t(9934),o=a(n.setInterval,!0);r({global:!0,bind:!0,forced:n.setInterval!==o},{setInterval:o})},23913:function(i,h,t){var r=t(14304),n=t(66009),a=t(9934),o=a(n.setTimeout,!0);r({global:!0,bind:!0,forced:n.setTimeout!==o},{setTimeout:o})},92904:function(i,h,t){var r=t(70457),n=t(14304),a=t(66009),o=t(38941),s=t(11286),u=t(72069),l=t(36374),v=t(23583),d=t(11051),g=t(5683),y=t(37540),p=t(491),m=t(55902),E=t(25001),S=t(9205),I=t(94879),P=t(84082),A=t(90809),R=t(82628),N=t(95486),T=t(54932),C=t(1774),b=t(172),L=t(35051),D=t(63741),$=t(16929),w=t(99050),H=a.Object,U=a.Array,B=a.Date,j=a.Error,Y=a.TypeError,k=a.PerformanceMark,J=o("DOMException"),nt=C.Map,_=C.has,dt=C.get,lt=C.set,gt=b.Set,St=b.add,It=b.has,Gt=o("Object","keys"),jt=s([].push),Ft=s((!0).valueOf),vt=s(1 .valueOf),yt=s("".valueOf),Pt=s(B.prototype.getTime),Mt=l("structuredClone"),Ct="DataCloneError",Lt="Transferring",Zt=function(Q){return!u(function(){var ot=new a.Set([7]),it=Q(ot),z=Q(H(7));return it===ot||!it.has(7)||!y(z)||+z!=7})&&Q},kt=function(Q,ot){return!u(function(){var it=new ot,z=Q({a:it,b:it});return!(z&&z.a===z.b&&z.a instanceof ot&&z.a.stack===it.stack)})},Kt=function(Q){return!u(function(){var ot=Q(new a.AggregateError([1],Mt,{cause:3}));return ot.name!=="AggregateError"||ot.errors[0]!==1||ot.message!==Mt||ot.cause!==3})},Dt=a.structuredClone,Xt=r||!kt(Dt,j)||!kt(Dt,J)||!Kt(Dt),Vt=!Dt&&Zt(function(Q){return new k(Mt,{detail:Q}).detail}),Ut=Zt(Dt)||Vt,st=function(Q){throw new J("Uncloneable type: "+Q,Ct)},ht=function(Q,ot){throw new J((ot||"Cloning")+" of "+Q+" cannot be properly polyfilled in this engine",Ct)},rt=function(Q,ot){return Ut||ht(ot),Ut(Q)},Ot=function(){var Q;try{Q=new a.DataTransfer}catch(ot){try{Q=new a.ClipboardEvent("").clipboardData}catch(it){}}return Q&&Q.items&&Q.files?Q:null},Tt=function(Q,ot,it){if(_(ot,Q))return dt(ot,Q);var z=it||S(Q),Z,K,ct,At,Nt,Wt;if(z==="SharedArrayBuffer")Ut?Z=Ut(Q):Z=Q;else{var Jt=a.DataView;!Jt&&!v(Q.slice)&&ht("ArrayBuffer");try{if(v(Q.slice)&&!Q.resizable)Z=Q.slice(0);else for(K=Q.byteLength,ct=("maxByteLength"in Q)?{maxByteLength:Q.maxByteLength}:void 0,Z=new ArrayBuffer(K,ct),At=new Jt(Q),Nt=new Jt(Z),Wt=0;Wt1&&!g(arguments[1])?E(arguments[1]):void 0,z=it?it.transfer:void 0,Z,K;z!==void 0&&(Z=new nt,K=_t(z,Z));var ct=pt(ot,Z);return K&&rr(K),ct}})},28381:function(i,h,t){t(63981),t(23913)},98812:function(i,h,t){t(35054);var r=t(14304),n=t(66009),a=t(28167),o=t(96499),s=t(11286),u=t(92986),l=t(91918),v=t(16142),d=t(85500),g=t(2725),y=t(78401),p=t(26820),m=t(82367),E=t(12833),S=t(23583),I=t(94879),P=t(45526),A=t(9205),R=t(25001),N=t(37540),T=t(17361),C=t(5406),b=t(18526),L=t(90619),D=t(81077),$=t(10659),w=t(95486),H=t(18565),U=t(13270),B=H("iterator"),j="URLSearchParams",Y=j+"Iterator",k=m.set,J=m.getterFor(j),nt=m.getterFor(Y),_=a("fetch"),dt=a("Request"),lt=a("Headers"),gt=dt&&dt.prototype,St=lt&<.prototype,It=n.RegExp,Gt=n.TypeError,jt=n.decodeURIComponent,Ft=n.encodeURIComponent,vt=s("".charAt),yt=s([].join),Pt=s([].push),Mt=s("".replace),Ct=s([].shift),Lt=s([].splice),Zt=s("".split),kt=s("".slice),Kt=/\+/g,Dt=Array(4),Xt=function(z){return Dt[z-1]||(Dt[z-1]=It("((?:%[\\da-f]{2}){"+z+"})","gi"))},Vt=function(z){try{return jt(z)}catch(Z){return z}},Ut=function(z){var Z=Mt(z,Kt," "),K=4;try{return jt(Z)}catch(ct){for(;K;)Z=Mt(Z,Xt(K--),Vt);return Z}},st=/[!'()~]|%20/g,ht={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},rt=function(z){return ht[z]},Ot=function(z){return Mt(Ft(z),st,rt)},Tt=p(function(Z,K){k(this,{type:Y,target:J(Z).entries,index:0,kind:K})},j,function(){var Z=nt(this),K=Z.target,ct=Z.index++;if(!K||ct>=K.length)return Z.target=void 0,$(void 0,!0);var At=K[ct];switch(Z.kind){case"keys":return $(At.key,!1);case"values":return $(At.value,!1)}return $([At.key,At.value],!1)},!0),xt=function(z){this.entries=[],this.url=null,z!==void 0&&(N(z)?this.parseObject(z):this.parseQuery(typeof z=="string"?vt(z,0)==="?"?kt(z,1):z:T(z)))};xt.prototype={type:j,bindURL:function(z){this.url=z,this.update()},parseObject:function(z){var Z=this.entries,K=D(z),ct,At,Nt,Wt,Jt,Yt,er;if(K)for(ct=L(z,K),At=ct.next;!(Nt=o(At,ct)).done;){if(Wt=L(R(Nt.value)),Jt=Wt.next,(Yt=o(Jt,Wt)).done||(er=o(Jt,Wt)).done||!o(Jt,Wt).done)throw new Gt("Expected sequence with length 2");Pt(Z,{key:T(Yt.value),value:T(er.value)})}else for(var Xr in z)I(z,Xr)&&Pt(Z,{key:Xr,value:T(z[Xr])})},parseQuery:function(z){if(z)for(var Z=this.entries,K=Zt(z,"&"),ct=0,At,Nt;ct0?arguments[0]:void 0,K=k(this,new xt(Z));u||(this.size=K.entries.length)},_t=pt.prototype;if(g(_t,{append:function(Z,K){var ct=J(this);w(arguments.length,2),Pt(ct.entries,{key:T(Z),value:T(K)}),u||this.length++,ct.updateURL()},delete:function(z){for(var Z=J(this),K=w(arguments.length,1),ct=Z.entries,At=T(z),Nt=K<2?void 0:arguments[1],Wt=Nt===void 0?Nt:T(Nt),Jt=0;Jtct.key?1:-1}),Z.updateURL()},forEach:function(Z){for(var K=J(this).entries,ct=P(Z,arguments.length>1?arguments[1]:void 0),At=0,Nt;At1?ot(arguments[1]):{})}}),S(dt)){var it=function(Z){return E(this,gt),new dt(Z,arguments.length>1?ot(arguments[1]):{})};gt.constructor=it,it.prototype=gt,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:it})}}i.exports={URLSearchParams:pt,getState:J}},10901:function(i,h,t){var r=t(16142),n=t(11286),a=t(17361),o=t(95486),s=URLSearchParams,u=s.prototype,l=n(u.append),v=n(u.delete),d=n(u.forEach),g=n([].push),y=new s("a=1&a=2&b=3");y.delete("a",1),y.delete("b",void 0),y+""!="a=2"&&r(u,"delete",function(p){var m=arguments.length,E=m<2?void 0:arguments[1];if(m&&E===void 0)return v(this,p);var S=[];d(this,function(b,L){g(S,{key:L,value:b})}),o(m,1);for(var I=a(p),P=a(E),A=0,R=0,N=!1,T=S.length,C;A?@[\\\]^|]/,Dt=/[\0\t\n\r #/:<>?@[\\\]^|]/,Xt=/^[\u0000-\u0020]+/,Vt=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Ut=/[\t\n\r]/g,st,ht=function(X){var ut=lt(X,"."),q,V,at,Ht,Rt,nr,ar;if(ut.length&&ut[ut.length-1]===""&&ut.length--,q=ut.length,q>4)return X;for(V=[],at=0;at1&&B(Ht,0)==="0"&&(Rt=j(Ct,Ht)?16:8,Ht=gt(Ht,Rt===8?1:2)),Ht==="")nr=0;else{if(!j(Rt===10?Zt:Rt===8?Lt:kt,Ht))return X;nr=w(Ht,Rt)}nt(V,nr)}for(at=0;at=U(256,5-q))return null}else if(nr>255)return null;for(ar=J(V),at=0;at6))return;for(nr=0;sr();){if(ar=null,nr>0)if(sr()==="."&&nr<4)at++;else return;if(!j(Mt,sr()))return;for(;j(Mt,sr());){if(ur=w(sr(),10),ar===null)ar=ur;else{if(ar===0)return;ar=ar*10+ur}if(ar>255)return;at++}ut[q]=ut[q]*256+ar,nr++,(nr===2||nr===4)&&q++}if(nr!==4)return;break}else if(sr()===":"){if(at++,!sr())return}else if(sr())return;ut[q++]=Ht}if(V!==null)for(Rr=q-V,q=7;q!==0&&Rr>0;)ft=ut[q],ut[q--]=ut[V+Rr-1],ut[V+--Rr]=ft;else if(q!==8)return;return ut},Ot=function(X){for(var ut=null,q=1,V=null,at=0,Ht=0;Ht<8;Ht++)X[Ht]!==0?(at>q&&(ut=V,q=at),V=null,at=0):(V===null&&(V=Ht),++at);return at>q&&(ut=V,q=at),ut},Tt=function(X){var ut,q,V,at;if(typeof X=="number"){for(ut=[],q=0;q<4;q++)It(ut,X%256),X=H(X/256);return Y(ut,".")}else if(typeof X=="object"){for(ut="",V=Ot(X),q=0;q<8;q++)at&&X[q]===0||(at&&(at=!1),V===q?(ut+=q?":":"::",at=!0):(ut+=k(X[q],16),q<7&&(ut+=":")));return"["+ut+"]"}return X},xt={},pt=y({},xt,{" ":1,'"':1,"<":1,">":1,"`":1}),_t=y({},pt,{"#":1,"?":1,"{":1,"}":1}),rr=y({},_t,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Q=function(X,ut){var q=E(X,0);return q>32&&q<127&&!g(ut,X)?X:encodeURIComponent(X)},ot={ftp:21,file:null,http:80,https:443,ws:80,wss:443},it=function(X,ut){var q;return X.length===2&&j(yt,B(X,0))&&((q=B(X,1))===":"||!ut&&q==="|")},z=function(X){var ut;return X.length>1&&it(gt(X,0,2))&&(X.length===2||(ut=B(X,2))==="/"||ut==="\\"||ut==="?"||ut==="#")},Z=function(X){return X==="."||St(X)==="%2e"},K=function(X){return X=St(X),X===".."||X==="%2e."||X===".%2e"||X==="%2e%2e"},ct={},At={},Nt={},Wt={},Jt={},Yt={},er={},Xr={},en={},an={},dn={},on={},hn={},gn={},Dn={},yn={},Nr={},br={},Fn={},Vr={},Dr={},sn=function(X,ut,q){var V=I(X),at,Ht,Rt;if(ut){if(Ht=this.parse(V),Ht)throw new $(Ht);this.searchParams=null}else{if(q!==void 0&&(at=new sn(q,!0)),Ht=this.parse(V,null,at),Ht)throw new $(Ht);Rt=L(new b),Rt.bindURL(this),this.searchParams=Rt}};sn.prototype={type:"URL",parse:function(X,ut,q){var V=this,at=ut||ct,Ht=0,Rt="",nr=!1,ar=!1,ur=!1,Rr,ft,sr,Fr;for(X=I(X),ut||(V.scheme="",V.username="",V.password="",V.host=null,V.port=null,V.path=[],V.query=null,V.fragment=null,V.cannotBeABaseURL=!1,X=_(X,Xt,""),X=_(X,Vt,"$1")),X=_(X,Ut,""),Rr=p(X);Ht<=Rr.length;){switch(ft=Rr[Ht],at){case ct:if(ft&&j(yt,ft))Rt+=St(ft),at=At;else{if(ut)return jt;at=Nt;continue}break;case At:if(ft&&(j(Pt,ft)||ft==="+"||ft==="-"||ft==="."))Rt+=St(ft);else if(ft===":"){if(ut&&(V.isSpecial()!==g(ot,Rt)||Rt==="file"&&(V.includesCredentials()||V.port!==null)||V.scheme==="file"&&!V.host))return;if(V.scheme=Rt,ut){V.isSpecial()&&ot[V.scheme]===V.port&&(V.port=null);return}Rt="",V.scheme==="file"?at=gn:V.isSpecial()&&q&&q.scheme===V.scheme?at=Wt:V.isSpecial()?at=Xr:Rr[Ht+1]==="/"?(at=Jt,Ht++):(V.cannotBeABaseURL=!0,nt(V.path,""),at=Fn)}else{if(ut)return jt;Rt="",at=Nt,Ht=0;continue}break;case Nt:if(!q||q.cannotBeABaseURL&&ft!=="#")return jt;if(q.cannotBeABaseURL&&ft==="#"){V.scheme=q.scheme,V.path=m(q.path),V.query=q.query,V.fragment="",V.cannotBeABaseURL=!0,at=Dr;break}at=q.scheme==="file"?gn:Yt;continue;case Wt:if(ft==="/"&&Rr[Ht+1]==="/")at=en,Ht++;else{at=Yt;continue}break;case Jt:if(ft==="/"){at=an;break}else{at=br;continue}case Yt:if(V.scheme=q.scheme,ft===st)V.username=q.username,V.password=q.password,V.host=q.host,V.port=q.port,V.path=m(q.path),V.query=q.query;else if(ft==="/"||ft==="\\"&&V.isSpecial())at=er;else if(ft==="?")V.username=q.username,V.password=q.password,V.host=q.host,V.port=q.port,V.path=m(q.path),V.query="",at=Vr;else if(ft==="#")V.username=q.username,V.password=q.password,V.host=q.host,V.port=q.port,V.path=m(q.path),V.query=q.query,V.fragment="",at=Dr;else{V.username=q.username,V.password=q.password,V.host=q.host,V.port=q.port,V.path=m(q.path),V.path.length--,at=br;continue}break;case er:if(V.isSpecial()&&(ft==="/"||ft==="\\"))at=en;else if(ft==="/")at=an;else{V.username=q.username,V.password=q.password,V.host=q.host,V.port=q.port,at=br;continue}break;case Xr:if(at=en,ft!=="/"||B(Rt,Ht+1)!=="/")continue;Ht++;break;case en:if(ft!=="/"&&ft!=="\\"){at=an;continue}break;case an:if(ft==="@"){nr&&(Rt="%40"+Rt),nr=!0,sr=p(Rt);for(var mn=0;mn65535)return vt;V.port=V.isSpecial()&&un===ot[V.scheme]?null:un,Rt=""}if(ut)return;at=Nr;continue}else return vt;break;case gn:if(V.scheme="file",ft==="/"||ft==="\\")at=Dn;else if(q&&q.scheme==="file")switch(ft){case st:V.host=q.host,V.path=m(q.path),V.query=q.query;break;case"?":V.host=q.host,V.path=m(q.path),V.query="",at=Vr;break;case"#":V.host=q.host,V.path=m(q.path),V.query=q.query,V.fragment="",at=Dr;break;default:z(Y(m(Rr,Ht),""))||(V.host=q.host,V.path=m(q.path),V.shortenPath()),at=br;continue}else{at=br;continue}break;case Dn:if(ft==="/"||ft==="\\"){at=yn;break}q&&q.scheme==="file"&&!z(Y(m(Rr,Ht),""))&&(it(q.path[0],!0)?nt(V.path,q.path[0]):V.host=q.host),at=br;continue;case yn:if(ft===st||ft==="/"||ft==="\\"||ft==="?"||ft==="#"){if(!ut&&it(Rt))at=br;else if(Rt===""){if(V.host="",ut)return;at=Nr}else{if(Fr=V.parseHost(Rt),Fr)return Fr;if(V.host==="localhost"&&(V.host=""),ut)return;Rt="",at=Nr}continue}else Rt+=ft;break;case Nr:if(V.isSpecial()){if(at=br,ft!=="/"&&ft!=="\\")continue}else if(!ut&&ft==="?")V.query="",at=Vr;else if(!ut&&ft==="#")V.fragment="",at=Dr;else if(ft!==st&&(at=br,ft!=="/"))continue;break;case br:if(ft===st||ft==="/"||ft==="\\"&&V.isSpecial()||!ut&&(ft==="?"||ft==="#")){if(K(Rt)?(V.shortenPath(),ft!=="/"&&!(ft==="\\"&&V.isSpecial())&&nt(V.path,"")):Z(Rt)?ft!=="/"&&!(ft==="\\"&&V.isSpecial())&&nt(V.path,""):(V.scheme==="file"&&!V.path.length&&it(Rt)&&(V.host&&(V.host=""),Rt=B(Rt,0)+":"),nt(V.path,Rt)),Rt="",V.scheme==="file"&&(ft===st||ft==="?"||ft==="#"))for(;V.path.length>1&&V.path[0]==="";)dt(V.path);ft==="?"?(V.query="",at=Vr):ft==="#"&&(V.fragment="",at=Dr)}else Rt+=Q(ft,_t);break;case Fn:ft==="?"?(V.query="",at=Vr):ft==="#"?(V.fragment="",at=Dr):ft!==st&&(V.path[0]+=Q(ft,xt));break;case Vr:!ut&&ft==="#"?(V.fragment="",at=Dr):ft!==st&&(ft==="'"&&V.isSpecial()?V.query+="%27":ft==="#"?V.query+="%23":V.query+=Q(ft,xt));break;case Dr:ft!==st&&(V.fragment+=Q(ft,pt));break}Ht++}},parseHost:function(X){var ut,q,V;if(B(X,0)==="["){if(B(X,X.length-1)!=="]"||(ut=rt(gt(X,1,-1)),!ut))return Ft;this.host=ut}else if(this.isSpecial()){if(X=S(X),j(Kt,X)||(ut=ht(X),ut===null))return Ft;this.host=ut}else{if(j(Dt,X))return Ft;for(ut="",q=p(X),V=0;V1?arguments[1]:void 0,at=T(q,new sn(ut,!1,V));n||(q.href=at.serialize(),q.origin=at.getOrigin(),q.protocol=at.getProtocol(),q.username=at.getUsername(),q.password=at.getPassword(),q.host=at.getHost(),q.hostname=at.getHostname(),q.port=at.getPort(),q.pathname=at.getPathname(),q.search=at.getSearch(),q.searchParams=at.getSearchParams(),q.hash=at.getHash())},dr=jr.prototype,Tr=function(X,ut){return{get:function(){return C(this)[X]()},set:ut&&function(q){return C(this)[ut](q)},configurable:!0,enumerable:!0}};if(n&&(v(dr,"href",Tr("serialize","setHref")),v(dr,"origin",Tr("getOrigin")),v(dr,"protocol",Tr("getProtocol","setProtocol")),v(dr,"username",Tr("getUsername","setUsername")),v(dr,"password",Tr("getPassword","setPassword")),v(dr,"host",Tr("getHost","setHost")),v(dr,"hostname",Tr("getHostname","setHostname")),v(dr,"port",Tr("getPort","setPort")),v(dr,"pathname",Tr("getPathname","setPathname")),v(dr,"search",Tr("getSearch","setSearch")),v(dr,"searchParams",Tr("getSearchParams")),v(dr,"hash",Tr("getHash","setHash"))),l(dr,"toJSON",function(){return C(this).serialize()},{enumerable:!0}),l(dr,"toString",function(){return C(this).serialize()},{enumerable:!0}),D){var pn=D.createObjectURL,Ln=D.revokeObjectURL;pn&&l(jr,"createObjectURL",s(pn,D)),Ln&&l(jr,"revokeObjectURL",s(Ln,D))}P(jr,"URL"),r({global:!0,constructor:!0,forced:!a,sham:!n},{URL:jr})},51862:function(i,h,t){t(81888)},24119:function(i,h,t){var r=t(14304),n=t(38941),a=t(95486),o=t(17361),s=t(91918),u=n("URL");r({target:"URL",stat:!0,forced:!s},{parse:function(v){var d=a(arguments.length,1),g=o(v),y=d<2||arguments[1]===void 0?void 0:o(arguments[1]);try{return new u(g,y)}catch(p){return null}}})},97526:function(i,h,t){var r=t(14304),n=t(96499);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return n(URL.prototype.toString,this)}})},61969:function(i,h,t){t(40949),t(43657),t(43606),t(15855),t(42026),t(33257),t(59414),t(88344),t(92579),t(94655),t(8565),t(60843),t(65842),t(51595),t(54908),t(81742),t(8720),t(42861),t(27796),t(1341),t(98700),t(65481),t(46509),t(41585),t(84554),t(36619),t(33818),t(64096),t(2209),t(91591),t(74092),t(54703),t(82936),t(48493),t(64730),t(95024),t(35054),t(25460),t(60703),t(90468),t(69581),t(720),t(11042),t(17289),t(24608),t(51644),t(88088),t(46828),t(90088),t(35148),t(86184),t(53983),t(42560),t(88444),t(27839),t(73051),t(9372),t(35473),t(4983),t(6875),t(68575),t(35495),t(32790),t(58594),t(30801),t(90911),t(90429),t(33685),t(60086),t(96049),t(14038),t(55518),t(8894),t(60628),t(56347),t(16864),t(93819),t(71332),t(47269),t(25627),t(22090),t(9839),t(15656),t(22091),t(2886),t(25895),t(24228),t(79488),t(75987),t(81555),t(87854),t(35074),t(50946),t(29417),t(80628),t(74375),t(29708),t(93449),t(9111),t(83514),t(15096),t(59590),t(99663),t(89988),t(54427),t(67895),t(57909),t(83938),t(55461),t(97339),t(3670),t(15224),t(45891),t(99910),t(92445),t(21875),t(4383),t(11361),t(13728),t(14885),t(30343),t(22045),t(75e3),t(64658),t(16017),t(84681),t(73421),t(93446),t(31046),t(94645),t(62935),t(62518),t(45130),t(51542),t(43781),t(25738),t(93247),t(41533),t(60225),t(69920),t(89205),t(78546),t(63616),t(16893),t(3676),t(58361),t(23958),t(9798),t(2371),t(76185),t(76553),t(93518),t(25227),t(91723),t(57882),t(37796),t(11563),t(26159),t(20962),t(77487),t(6130),t(1354),t(47119),t(31145),t(96773),t(14371),t(18180),t(83147),t(75765),t(86548),t(15282),t(51275),t(91890),t(15089),t(78134),t(56456),t(40735),t(8510),t(70159),t(93087),t(26021),t(93029),t(59158),t(15599),t(18509),t(21579),t(8854),t(57676),t(14527),t(96834),t(52684),t(74980),t(390),t(42794),t(21293),t(18184),t(75012),t(19680),t(4193),t(70641),t(53892),t(95976),t(399),t(72032),t(49442),t(16012),t(9943),t(33128),t(95625),t(90614),t(60120),t(75826),t(25560),t(22571),t(40704),t(36849),t(49191),t(81083),t(27428),t(44884),t(48658),t(71998),t(6116),t(33032),t(80962),t(49381),t(38344),t(65961),t(94153),t(16028),t(20656),t(17063),t(21774),t(51761),t(12317),t(19711),t(41034),t(13313),t(44698),t(7369),t(66178),t(67961),t(8695),t(69997),t(9711),t(3923),t(59728),t(85227),t(56933),t(91490),t(61766),t(85143),t(47005),t(10042),t(37888),t(19431),t(60869),t(50338),t(53059),t(5805),t(50685),t(70649),t(39842),t(82872),t(91401),t(92904),t(28381),t(51862),t(20760),t(24119),t(97526),t(86650),t(10901),t(93944),t(79043),t(75081)}},Kr={};function Mr(i){var h=Kr[i];if(h!==void 0)return h.exports;var t=Kr[i]={exports:{}};return Ce[i].call(t.exports,t,t.exports,Mr),t.exports}(function(){Mr.d=function(i,h){for(var t in h)Mr.o(h,t)&&!Mr.o(i,t)&&Object.defineProperty(i,t,{enumerable:!0,get:h[t]})}})(),function(){Mr.o=function(i,h){return Object.prototype.hasOwnProperty.call(i,h)}}(),Mr(61969);var oe=Mr(68990);return oe=oe.default,oe}()}); diff --git a/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js b/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js index c0bfa6c83..04f8bdbaf 100644 --- a/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js +++ b/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -23835,7 +23835,7 @@ class Plugin { }); } } -__publicField(Plugin, "version", "3.12.4-nightly-20240724004639"); +__publicField(Plugin, "version", "3.12.4-nightly-20240726004631"); ;// CONCATENATED MODULE: ./node_modules/d3-axis/src/identity.js /* harmony default export */ function d3_axis_src_identity(x) { diff --git a/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js b/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js index 8d282cd1b..5327f9345 100644 --- a/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js +++ b/dist/plugin/pkgd/billboardjs-plugin-stanford.pkgd.min.js @@ -5,12 +5,12 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */(function(Xr,Lr){typeof exports=="object"&&typeof module=="object"?module.exports=Lr():typeof define=="function"&&define.amd?define("bb",[],Lr):typeof exports=="object"?exports.bb=Lr():(Xr.bb=Xr.bb||{},Xr.bb.plugin=Xr.bb.plugin||{},Xr.bb.plugin["stanford.pkgd"]=Lr())})(this,function(){return function(){"use strict";var Me={33539:function(u,g,t){t.d(g,{default:function(){return mf}});function n(r,a,f){r.prototype=a.prototype=f,f.constructor=r}function e(r,a){var f=Object.create(r.prototype);for(var d in a)f[d]=a[d];return f}function o(){}var s=.7,i=1/s,l="\\s*([+-]?\\d+)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",v="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,p=new RegExp(`^rgb\\(${l},${l},${l}\\)$`),y=new RegExp(`^rgb\\(${v},${v},${v}\\)$`),x=new RegExp(`^rgba\\(${l},${l},${l},${c}\\)$`),S=new RegExp(`^rgba\\(${v},${v},${v},${c}\\)$`),O=new RegExp(`^hsl\\(${c},${v},${v}\\)$`),E=new RegExp(`^hsla\\(${c},${v},${v},${c}\\)$`),A={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};n(o,R,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:M,formatHex:M,formatHex8:P,formatHsl:C,formatRgb:F,toString:F});function M(){return this.rgb().formatHex()}function P(){return this.rgb().formatHex8()}function C(){return k(this).formatHsl()}function F(){return this.rgb().formatRgb()}function R(r){var a,f;return r=(r+"").trim().toLowerCase(),(a=h.exec(r))?(f=a[1].length,a=parseInt(a[1],16),f===6?N(a):f===3?new B(a>>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):f===8?D(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):f===4?D(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=p.exec(r))?new B(a[1],a[2],a[3],1):(a=y.exec(r))?new B(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=x.exec(r))?D(a[1],a[2],a[3],a[4]):(a=S.exec(r))?D(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=O.exec(r))?rt(a[1],a[2]/100,a[3]/100,1):(a=E.exec(r))?rt(a[1],a[2]/100,a[3]/100,a[4]):A.hasOwnProperty(r)?N(A[r]):r==="transparent"?new B(NaN,NaN,NaN,0):null}function N(r){return new B(r>>16&255,r>>8&255,r&255,1)}function D(r,a,f,d){return d<=0&&(r=a=f=NaN),new B(r,a,f,d)}function j(r){return r instanceof o||(r=R(r)),r?(r=r.rgb(),new B(r.r,r.g,r.b,r.opacity)):new B}function U(r,a,f,d){return arguments.length===1?j(r):new B(r,a,f,d==null?1:d)}function B(r,a,f,d){this.r=+r,this.g=+a,this.b=+f,this.opacity=+d}n(B,U,e(o,{brighter(r){return r=r==null?i:Math.pow(i,r),new B(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?s:Math.pow(s,r),new B(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new B(V(this.r),V(this.g),V(this.b),G(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:H,formatHex:H,formatHex8:z,formatRgb:w,toString:w}));function H(){return`#${J(this.r)}${J(this.g)}${J(this.b)}`}function z(){return`#${J(this.r)}${J(this.g)}${J(this.b)}${J((isNaN(this.opacity)?1:this.opacity)*255)}`}function w(){const r=G(this.opacity);return`${r===1?"rgb(":"rgba("}${V(this.r)}, ${V(this.g)}, ${V(this.b)}${r===1?")":`, ${r})`}`}function G(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function V(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function J(r){return r=V(r),(r<16?"0":"")+r.toString(16)}function rt(r,a,f,d){return d<=0?r=a=f=NaN:f<=0||f>=1?r=a=NaN:a<=0&&(r=NaN),new _(r,a,f,d)}function k(r){if(r instanceof _)return new _(r.h,r.s,r.l,r.opacity);if(r instanceof o||(r=R(r)),!r)return new _;if(r instanceof _)return r;r=r.rgb();var a=r.r/255,f=r.g/255,d=r.b/255,m=Math.min(a,f,d),I=Math.max(a,f,d),T=NaN,b=I-m,L=(I+m)/2;return b?(a===I?T=(f-d)/b+(f0&&L<1?0:T,new _(T,b,L,r.opacity)}function ot(r,a,f,d){return arguments.length===1?k(r):new _(r,a,f,d==null?1:d)}function _(r,a,f,d){this.h=+r,this.s=+a,this.l=+f,this.opacity=+d}n(_,ot,e(o,{brighter(r){return r=r==null?i:Math.pow(i,r),new _(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?s:Math.pow(s,r),new _(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,a=isNaN(r)||isNaN(this.s)?0:this.s,f=this.l,d=f+(f<.5?f:1-f)*a,m=2*f-d;return new B(xt(r>=240?r-240:r+120,m,d),xt(r,m,d),xt(r<120?r+240:r-120,m,d),this.opacity)},clamp(){return new _(mt(this.h),ct(this.s),ct(this.l),G(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 r=G(this.opacity);return`${r===1?"hsl(":"hsla("}${mt(this.h)}, ${ct(this.s)*100}%, ${ct(this.l)*100}%${r===1?")":`, ${r})`}`}}));function mt(r){return r=(r||0)%360,r<0?r+360:r}function ct(r){return Math.max(0,Math.min(1,r||0))}function xt(r,a,f){return(r<60?a+(f-a)*r/60:r<180?f:r<240?a+(f-a)*(240-r)/60:a)*255}var It=r=>()=>r;function Ct(r,a){return function(f){return r+f*a}}function Yt(r,a,f){return r=Math.pow(r,f),a=Math.pow(a,f)-r,f=1/f,function(d){return Math.pow(r+d*a,f)}}function Wt(r,a){var f=a-r;return f?Ct(r,f>180||f<-180?f-360*Math.round(f/360):f):It(isNaN(r)?a:r)}function Bt(r){return(r=+r)==1?vt:function(a,f){return f-a?Yt(a,f,r):It(isNaN(a)?f:a)}}function vt(r,a){var f=a-r;return f?Ct(r,f):It(isNaN(r)?a:r)}function St(r){return function(a,f){var d=r((a=ot(a)).h,(f=ot(f)).h),m=vt(a.s,f.s),I=vt(a.l,f.l),T=vt(a.opacity,f.opacity);return function(b){return a.h=d(b),a.s=m(b),a.l=I(b),a.opacity=T(b),a+""}}}var bt=St(Wt),Lt=St(vt);function Ft(r,a,f,d,m){var I=r*r,T=I*r;return((1-3*r+3*I-T)*a+(4-6*I+3*T)*f+(1+3*r+3*I-3*T)*d+T*m)/6}function jt(r){var a=r.length-1;return function(f){var d=f<=0?f=0:f>=1?(f=1,a-1):Math.floor(f*a),m=r[d],I=r[d+1],T=d>0?r[d-1]:2*m-I,b=df&&(I=a.slice(f,I),b[T]?b[T]+=I:b[++T]=I),(d=d[0])===(m=m[0])?b[T]?b[T]+=m:b[++T]=m:(b[++T]=null,L.push({i:T,x:dt(d,m)})),f=Pt.lastIndex;return fa?1:r>=a?0:NaN}function nt(r,a){return r==null||a==null?NaN:ar?1:a>=r?0:NaN}function Q(r){let a,f,d;r.length!==2?(a=X,f=(b,L)=>X(r(b),L),d=(b,L)=>r(b)-L):(a=r===X||r===nt?r:yt,f=r,d=r);function m(b,L,$=0,W=b.length){if($>>1;f(b[K],L)<0?$=K+1:W=K}while($>>1;f(b[K],L)<=0?$=K+1:W=K}while($$&&d(b[K-1],L)>-d(b[K],L)?K-1:K}return{left:m,center:T,right:I}}function yt(){return 0}function Nt(r){return r===null?NaN:+r}function*$t(r,a){if(a===void 0)for(let f of r)f!=null&&(f=+f)>=f&&(yield f);else{let f=-1;for(let d of r)(d=a(d,++f,r))!=null&&(d=+d)>=d&&(yield d)}}const Xt=Q(X),Qt=Xt.right,Zt=Xt.left,mr=Q(Nt).center;var Jr=Qt;function rn(r){return function(){return r}}function nn(r){return+r}var en=[0,1];function $r(r){return r}function qr(r,a){return(a-=r=+r)?function(f){return(f-r)/a}:rn(isNaN(a)?NaN:.5)}function dn(r,a){var f;return r>a&&(f=r,r=a,a=f),function(d){return Math.max(r,Math.min(a,d))}}function Mn(r,a,f){var d=r[0],m=r[1],I=a[0],T=a[1];return m2?hn:Mn,L=$=null,K}function K(et){return et==null||isNaN(et=+et)?I:(L||(L=b(r.map(d),a,f)))(d(T(et)))}return K.invert=function(et){return T(m(($||($=b(a,r.map(d),dt)))(et)))},K.domain=function(et){return arguments.length?(r=Array.from(et,nn),W()):r.slice()},K.range=function(et){return arguments.length?(a=Array.from(et),W()):a.slice()},K.rangeRound=function(et){return a=Array.from(et),f=lt,W()},K.clamp=function(et){return arguments.length?(T=et?!0:$r,W()):T!==$r},K.interpolate=function(et){return arguments.length?(f=et,W()):f},K.unknown=function(et){return arguments.length?(I=et,K):I},function(et,st){return d=et,m=st,W()}}function ee(){return Fr()($r,$r)}function Wr(r,a){switch(arguments.length){case 0:break;case 1:this.range(r);break;default:this.range(a).domain(r);break}return this}function Ur(r,a){switch(arguments.length){case 0:break;case 1:{typeof r=="function"?this.interpolator(r):this.range(r);break}default:{this.domain(r),typeof a=="function"?this.interpolator(a):this.range(a);break}}return this}const gn=Math.sqrt(50),Zr=Math.sqrt(10),Tr=Math.sqrt(2);function Rr(r,a,f){const d=(a-r)/Math.max(0,f),m=Math.floor(Math.log10(d)),I=d/Math.pow(10,m),T=I>=gn?10:I>=Zr?5:I>=Tr?2:1;let b,L,$;return m<0?($=Math.pow(10,-m)/T,b=Math.round(r*$),L=Math.round(a*$),b/$a&&--L,$=-$):($=Math.pow(10,m)*T,b=Math.round(r/$),L=Math.round(a/$),b*$a&&--L),L0))return[];if(r===a)return[r];const d=a=m))return[];const b=I-m+1,L=new Array(b);if(d)if(T<0)for(let $=0;$=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tt(r){if(!(a=gt.exec(r)))throw new Error("invalid format: "+r);var a;return new Y({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}tt.prototype=Y.prototype;function Y(r){this.fill=r.fill===void 0?" ":r.fill+"",this.align=r.align===void 0?">":r.align+"",this.sign=r.sign===void 0?"-":r.sign+"",this.symbol=r.symbol===void 0?"":r.symbol+"",this.zero=!!r.zero,this.width=r.width===void 0?void 0:+r.width,this.comma=!!r.comma,this.precision=r.precision===void 0?void 0:+r.precision,this.trim=!!r.trim,this.type=r.type===void 0?"":r.type+""}Y.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function ut(r){return Math.abs(r=Math.round(r))>=1e21?r.toLocaleString("en").replace(/,/g,""):r.toString(10)}function zt(r,a){if((f=(r=a?r.toExponential(a-1):r.toExponential()).indexOf("e"))<0)return null;var f,d=r.slice(0,f);return[d.length>1?d[0]+d.slice(2):d,+r.slice(f+1)]}function Tt(r){return r=zt(Math.abs(r)),r?r[1]:NaN}function dr(r,a){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Tt(a)/3)))*3-Tt(Math.abs(r)))}function yr(r,a){return function(f,d){for(var m=f.length,I=[],T=0,b=r[0],L=0;m>0&&b>0&&(L+b+1>d&&(b=Math.max(1,d-L)),I.push(f.substring(m-=b,m+b)),!((L+=b+1)>d));)b=r[T=(T+1)%r.length];return I.reverse().join(a)}}function Sr(r){return function(a){return a.replace(/[0-9]/g,function(f){return r[+f]})}}function Nr(r){t:for(var a=r.length,f=1,d=-1,m;f0&&(d=0);break}return d>0?r.slice(0,d)+r.slice(m+1):r}var ht;function xr(r,a){var f=zt(r,a);if(!f)return r+"";var d=f[0],m=f[1],I=m-(ht=Math.max(-8,Math.min(8,Math.floor(m/3)))*3)+1,T=d.length;return I===T?d:I>T?d+new Array(I-T+1).join("0"):I>0?d.slice(0,I)+"."+d.slice(I):"0."+new Array(1-I).join("0")+zt(r,Math.max(0,a+I-1))[0]}function Br(r,a){var f=zt(r,a);if(!f)return r+"";var d=f[0],m=f[1];return m<0?"0."+new Array(-m).join("0")+d:d.length>m+1?d.slice(0,m+1)+"."+d.slice(m+1):d+new Array(m-d.length+2).join("0")}var sn={"%":(r,a)=>(r*100).toFixed(a),b:r=>Math.round(r).toString(2),c:r=>r+"",d:ut,e:(r,a)=>r.toExponential(a),f:(r,a)=>r.toFixed(a),g:(r,a)=>r.toPrecision(a),o:r=>Math.round(r).toString(8),p:(r,a)=>Br(r*100,a),r:Br,s:xr,X:r=>Math.round(r).toString(16).toUpperCase(),x:r=>Math.round(r).toString(16)};function pn(r){return r}var yn=Array.prototype.map,un=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function Ba(r){var a=r.grouping===void 0||r.thousands===void 0?pn:yr(yn.call(r.grouping,Number),r.thousands+""),f=r.currency===void 0?"":r.currency[0]+"",d=r.currency===void 0?"":r.currency[1]+"",m=r.decimal===void 0?".":r.decimal+"",I=r.numerals===void 0?pn:Sr(yn.call(r.numerals,String)),T=r.percent===void 0?"%":r.percent+"",b=r.minus===void 0?"\u2212":r.minus+"",L=r.nan===void 0?"NaN":r.nan+"";function $(K){K=tt(K);var et=K.fill,st=K.align,Vt=K.sign,er=K.symbol,pt=K.zero,Rt=K.width,Ut=K.comma,Mt=K.precision,kt=K.trim,Ht=K.type;Ht==="n"?(Ut=!0,Ht="g"):sn[Ht]||(Mt===void 0&&(Mt=12),kt=!0,Ht="g"),(pt||et==="0"&&st==="=")&&(pt=!0,et="0",st="=");var cr=er==="$"?f:er==="#"&&/[boxX]/.test(Ht)?"0"+Ht.toLowerCase():"",hr=er==="$"?d:/[%p]/.test(Ht)?T:"",ir=sn[Ht],Ar=/[defgprs%]/.test(Ht);Mt=Mt===void 0?6:/[gprs]/.test(Ht)?Math.max(1,Math.min(21,Mt)):Math.max(0,Math.min(20,Mt));function or(Dt){var fr=cr,nr=hr,vr,Gr,gr;if(Ht==="c")nr=ir(Dt)+nr,Dt="";else{Dt=+Dt;var pr=Dt<0||1/Dt<0;if(Dt=isNaN(Dt)?L:ir(Math.abs(Dt),Mt),kt&&(Dt=Nr(Dt)),pr&&+Dt==0&&Vt!=="+"&&(pr=!1),fr=(pr?Vt==="("?Vt:b:Vt==="-"||Vt==="("?"":Vt)+fr,nr=(Ht==="s"?un[8+ht/3]:"")+nr+(pr&&Vt==="("?")":""),Ar){for(vr=-1,Gr=Dt.length;++vrgr||gr>57){nr=(gr===46?m+Dt.slice(vr+1):Dt.slice(vr))+nr,Dt=Dt.slice(0,vr);break}}}Ut&&!pt&&(Dt=a(Dt,1/0));var Dr=fr.length+Dt.length+nr.length,sr=Dr>1)+fr+Dt+nr+sr.slice(Dr);break;default:Dt=sr+fr+Dt+nr;break}return I(Dt)}return or.toString=function(){return K+""},or}function W(K,et){var st=$((K=tt(K),K.type="f",K)),Vt=Math.max(-8,Math.min(8,Math.floor(Tt(et)/3)))*3,er=Math.pow(10,-Vt),pt=un[8+Vt/3];return function(Rt){return st(er*Rt)+pt}}return{format:$,formatPrefix:W}}var Nn,bn,Ne;ja({thousands:",",grouping:[3],currency:["$",""]});function ja(r){return Nn=Ba(r),bn=Nn.format,Ne=Nn.formatPrefix,Nn}function wa(r,a){return r=Math.abs(r),a=Math.abs(a)-r,Math.max(0,Tt(a)-Tt(r))+1}function Ga(r){return Math.max(0,-Tt(Math.abs(r)))}function Va(r,a,f,d){var m=Z(r,a,f),I;switch(d=tt(d==null?",f":d),d.type){case"s":{var T=Math.max(Math.abs(r),Math.abs(a));return d.precision==null&&!isNaN(I=dr(m,T))&&(d.precision=I),Ne(d,T)}case"":case"e":case"g":case"p":case"r":{d.precision==null&&!isNaN(I=wa(m,Math.max(Math.abs(r),Math.abs(a))))&&(d.precision=I-(d.type==="e"));break}case"f":case"%":{d.precision==null&&!isNaN(I=Ga(m))&&(d.precision=I-(d.type==="%")*2);break}}return bn(d)}function ae(r){var a=r.domain;return r.ticks=function(f){var d=a();return an(d[0],d[d.length-1],f==null?10:f)},r.tickFormat=function(f,d){var m=a();return Va(m[0],m[m.length-1],f==null?10:f,d)},r.nice=function(f){f==null&&(f=10);var d=a(),m=0,I=d.length-1,T=d[m],b=d[I],L,$,W=10;for(b0;){if($=on(T,b,f),$===L)return d[m]=T,d[I]=b,a(d);if($>0)T=Math.floor(T/$)*$,b=Math.ceil(b/$)*$;else if($<0)T=Math.ceil(T*$)/$,b=Math.floor(b*$)/$;else break;L=$}return r},r}function Ha(){var r=continuous();return r.copy=function(){return copy(r,Ha())},initRange.apply(r,arguments),ae(r)}function Wa(r,a){r=r.slice();var f=0,d=r.length-1,m=r[f],I=r[d],T;return IMath.pow(r,a)}function Ja(r){return r===Math.E?Math.log:r===10&&Math.log10||r===2&&Math.log2||(r=Math.log(r),a=>Math.log(a)/r)}function De(r){return(a,f)=>-r(-a,f)}function Le(r){const a=r(be,Fe),f=a.domain;let d=10,m,I;function T(){return m=Ja(d),I=Xa(d),f()[0]<0?(m=De(m),I=De(I),r(za,Ya)):r(be,Fe),a}return a.base=function(b){return arguments.length?(d=+b,T()):d},a.domain=function(b){return arguments.length?(f(b),T()):f()},a.ticks=b=>{const L=f();let $=L[0],W=L[L.length-1];const K=W<$;K&&([$,W]=[W,$]);let et=m($),st=m(W),Vt,er;const pt=b==null?10:+b;let Rt=[];if(!(d%1)&&st-et0){for(;et<=st;++et)for(Vt=1;VtW)break;Rt.push(er)}}else for(;et<=st;++et)for(Vt=d-1;Vt>=1;--Vt)if(er=et>0?Vt/I(-et):Vt*I(et),!(er<$)){if(er>W)break;Rt.push(er)}Rt.length*2{if(b==null&&(b=10),L==null&&(L=d===10?"s":","),typeof L!="function"&&(!(d%1)&&(L=tt(L)).precision==null&&(L.trim=!0),L=bn(L)),b===1/0)return L;const $=Math.max(1,d*b/a.ticks().length);return W=>{let K=W/I(Math.round(m(W)));return K*df(Wa(f(),{floor:b=>I(Math.floor(m(b))),ceil:b=>I(Math.ceil(m(b)))})),a}function Qa(){const r=Le(transformer()).domain([1,10]);return r.copy=()=>copy(r,Qa()).base(r.base()),initRange.apply(r,arguments),r}function Fn(){var r=0,a=1,f,d,m,I,T=$r,b=!1,L;function $(K){return K==null||isNaN(K=+K)?L:T(m===0?.5:(K=(I(K)-f)*m,b?Math.max(0,Math.min(1,K)):K))}$.domain=function(K){return arguments.length?([r,a]=K,f=I(r=+r),d=I(a=+a),m=f===d?0:1/(d-f),$):[r,a]},$.clamp=function(K){return arguments.length?(b=!!K,$):b},$.interpolator=function(K){return arguments.length?(T=K,$):T};function W(K){return function(et){var st,Vt;return arguments.length?([st,Vt]=et,T=K(st,Vt),$):[T(0),T(1)]}}return $.range=W(it),$.rangeRound=W(lt),$.unknown=function(K){return arguments.length?(L=K,$):L},function(K){return I=K,f=K(r),d=K(a),m=f===d?0:1/(d-f),$}}function Dn(r,a){return a.domain(r.domain()).interpolator(r.interpolator()).clamp(r.clamp()).unknown(r.unknown())}function $e(){var r=ae(Fn()($r));return r.copy=function(){return Dn(r,$e())},Ur.apply(r,arguments)}function Ue(){var r=Le(Fn()).domain([1,10]);return r.copy=function(){return Dn(r,Ue()).base(r.base())},Ur.apply(r,arguments)}function Za(){var r=symlogish(Fn());return r.copy=function(){return Dn(r,Za()).constant(r.constant())},initInterpolator.apply(r,arguments)}function Be(){var r=powish(Fn());return r.copy=function(){return Dn(r,Be()).exponent(r.exponent())},initInterpolator.apply(r,arguments)}function Ef(){return Be.apply(null,arguments).exponent(.5)}var ka=Object.defineProperty,je=Object.getOwnPropertySymbols,qa=Object.prototype.hasOwnProperty,_a=Object.prototype.propertyIsEnumerable,we=(r,a,f)=>a in r?ka(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,ur=(r,a)=>{for(var f in a||(a={}))qa.call(a,f)&&we(r,f,a[f]);if(je)for(var f of je(a))_a.call(a,f)&&we(r,f,a[f]);return r};const to={button:"bb-button",chart:"bb-chart",empty:"bb-empty",main:"bb-main",target:"bb-target",EXPANDED:"_expanded_"},ro={arc:"bb-arc",arcLabelLine:"bb-arc-label-line",arcRange:"bb-arc-range",arcs:"bb-arcs",chartArc:"bb-chart-arc",chartArcs:"bb-chart-arcs",chartArcsBackground:"bb-chart-arcs-background",chartArcsTitle:"bb-chart-arcs-title",needle:"bb-needle"},no={area:"bb-area",areas:"bb-areas"},eo={axis:"bb-axis",axisX:"bb-axis-x",axisXLabel:"bb-axis-x-label",axisY:"bb-axis-y",axisY2:"bb-axis-y2",axisY2Label:"bb-axis-y2-label",axisYLabel:"bb-axis-y-label",axisXTooltip:"bb-axis-x-tooltip",axisYTooltip:"bb-axis-y-tooltip",axisY2Tooltip:"bb-axis-y2-tooltip"},ao={bar:"bb-bar",bars:"bb-bars",chartBar:"bb-chart-bar",chartBars:"bb-chart-bars"},oo={candlestick:"bb-candlestick",candlesticks:"bb-candlesticks",chartCandlestick:"bb-chart-candlestick",chartCandlesticks:"bb-chart-candlesticks",valueDown:"bb-value-down",valueUp:"bb-value-up"},so={chartCircles:"bb-chart-circles",circle:"bb-circle",circles:"bb-circles"},io={colorPattern:"bb-color-pattern",colorScale:"bb-colorscale"},uo={dragarea:"bb-dragarea",INCLUDED:"_included_"},fo={funnel:"bb-funnel",chartFunnel:"bb-chart-funnel",chartFunnels:"bb-chart-funnels",funnelBackground:"bb-funnel-background"},lo={chartArcsGaugeMax:"bb-chart-arcs-gauge-max",chartArcsGaugeMin:"bb-chart-arcs-gauge-min",chartArcsGaugeUnit:"bb-chart-arcs-gauge-unit",chartArcsGaugeTitle:"bb-chart-arcs-gauge-title",gaugeValue:"bb-gauge-value"},co={legend:"bb-legend",legendBackground:"bb-legend-background",legendItem:"bb-legend-item",legendItemEvent:"bb-legend-item-event",legendItemHidden:"bb-legend-item-hidden",legendItemPoint:"bb-legend-item-point",legendItemTile:"bb-legend-item-tile"},vo={chartLine:"bb-chart-line",chartLines:"bb-chart-lines",line:"bb-line",lines:"bb-lines"},ho={eventRect:"bb-event-rect",eventRects:"bb-event-rects",eventRectsMultiple:"bb-event-rects-multiple",eventRectsSingle:"bb-event-rects-single"},go={focused:"bb-focused",defocused:"bb-defocused",legendItemFocused:"bb-legend-item-focused",xgridFocus:"bb-xgrid-focus",ygridFocus:"bb-ygrid-focus"},po={grid:"bb-grid",gridLines:"bb-grid-lines",xgrid:"bb-xgrid",xgridLine:"bb-xgrid-line",xgridLines:"bb-xgrid-lines",xgrids:"bb-xgrids",ygrid:"bb-ygrid",ygridLine:"bb-ygrid-line",ygridLines:"bb-ygrid-lines",ygrids:"bb-ygrids"},Of={level:"bb-level",levels:"bb-levels"},yo={chartRadar:"bb-chart-radar",chartRadars:"bb-chart-radars"},mo={region:"bb-region",regions:"bb-regions"},xo={selectedCircle:"bb-selected-circle",selectedCircles:"bb-selected-circles",SELECTED:"_selected_"},So={shape:"bb-shape",shapes:"bb-shapes"},Eo={brush:"bb-brush",subchart:"bb-subchart"},Oo={chartText:"bb-chart-text",chartTexts:"bb-chart-texts",text:"bb-text",texts:"bb-texts",title:"bb-title",TextOverlapping:"text-overlapping"},oe={tooltip:"bb-tooltip",tooltipContainer:"bb-tooltip-container",tooltipName:"bb-tooltip-name"},Io={treemap:"bb-treemap",chartTreemap:"bb-chart-treemap",chartTreemaps:"bb-chart-treemaps"},Ao={buttonZoomReset:"bb-zoom-reset",zoomBrush:"bb-zoom-brush"};var If=ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur(ur({},to),ro),no),eo),ao),oo),so),io),uo),lo),co),vo),ho),go),fo),po),yo),mo),xo),So),Eo),Oo),oe),Io),Ao);function To(){}function se(r){return r==null?To:function(){return this.querySelector(r)}}function Ro(r){typeof r!="function"&&(r=se(r));for(var a=this._groups,f=a.length,d=new Array(f),m=0;m=Mt&&(Mt=Ut+1);!(Ht=pt[Mt])&&++Mt=0;)(T=d[m])&&(I&&T.compareDocumentPosition(I)^4&&I.parentNode.insertBefore(T,I),I=T);return this}function ko(r){r||(r=qo);function a(K,et){return K&&et?r(K.__data__,et.__data__):!K-!et}for(var f=this._groups,d=f.length,m=new Array(d),I=0;Ia?1:r>=a?0:NaN}function _o(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function ts(){return Array.from(this)}function rs(){for(var r=this._groups,a=0,f=r.length;a=0&&(a=r.slice(0,f))!=="xmlns"&&(r=r.slice(f+1)),ze.hasOwnProperty(a)?{space:ze[a],local:r}:r}function os(r){return function(){this.removeAttribute(r)}}function ss(r){return function(){this.removeAttributeNS(r.space,r.local)}}function is(r,a){return function(){this.setAttribute(r,a)}}function us(r,a){return function(){this.setAttributeNS(r.space,r.local,a)}}function fs(r,a){return function(){var f=a.apply(this,arguments);f==null?this.removeAttribute(r):this.setAttribute(r,f)}}function ls(r,a){return function(){var f=a.apply(this,arguments);f==null?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,f)}}function cs(r,a){var f=$n(r);if(arguments.length<2){var d=this.node();return f.local?d.getAttributeNS(f.space,f.local):d.getAttribute(f)}return this.each((a==null?f.local?ss:os:typeof a=="function"?f.local?ls:fs:f.local?us:is)(f,a))}function Ye(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function vs(r){return function(){this.style.removeProperty(r)}}function ds(r,a,f){return function(){this.style.setProperty(r,a,f)}}function hs(r,a,f){return function(){var d=a.apply(this,arguments);d==null?this.style.removeProperty(r):this.style.setProperty(r,d,f)}}function gs(r,a,f){return arguments.length>1?this.each((a==null?vs:typeof a=="function"?hs:ds)(r,a,f==null?"":f)):fn(this.node(),r)}function fn(r,a){return r.style.getPropertyValue(a)||Ye(r).getComputedStyle(r,null).getPropertyValue(a)}function ps(r){return function(){delete this[r]}}function ys(r,a){return function(){this[r]=a}}function ms(r,a){return function(){var f=a.apply(this,arguments);f==null?delete this[r]:this[r]=f}}function xs(r,a){return arguments.length>1?this.each((a==null?ps:typeof a=="function"?ms:ys)(r,a)):this.node()[r]}function Ke(r){return r.trim().split(/^|\s+/)}function ue(r){return r.classList||new Xe(r)}function Xe(r){this._node=r,this._names=Ke(r.getAttribute("class")||"")}Xe.prototype={add:function(r){var a=this._names.indexOf(r);a<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var a=this._names.indexOf(r);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function Je(r,a){for(var f=ue(r),d=-1,m=a.length;++d=0&&(f=a.slice(d+1),a=a.slice(0,d)),{type:a,name:f}})}function Qs(r){return function(){var a=this.__on;if(a){for(var f=0,d=-1,m=a.length,I;f{}};function _e(){for(var r=0,a=arguments.length,f={},d;r=0&&(d=f.slice(m+1),f=f.slice(0,m)),f&&!a.hasOwnProperty(f))throw new Error("unknown type: "+f);return{type:f,name:d}})}Un.prototype=_e.prototype={constructor:Un,on:function(r,a){var f=this._,d=oi(r+"",f),m,I=-1,T=d.length;if(arguments.length<2){for(;++I0)for(var f=new Array(m),d=0,m,I;d=0&&r._call.call(void 0,a),r=r._next;--ln}function aa(){_r=(jn=On.now())+wn,ln=xn=0;try{fi()}finally{ln=0,ci(),_r=0}}function li(){var r=On.now(),a=r-jn;a>ra&&(wn-=a,jn=r)}function ci(){for(var r,a=Bn,f,d=1/0;a;)a._call?(d>a._time&&(d=a._time),r=a,a=a._next):(f=a._next,a._next=null,a=r?r._next=f:Bn=f);En=r,le(d)}function le(r){if(!ln){xn&&(xn=clearTimeout(xn));var a=r-_r;a>24?(r<1/0&&(xn=setTimeout(aa,r-On.now()-wn)),Sn&&(Sn=clearInterval(Sn))):(Sn||(jn=On.now(),Sn=setInterval(li,ra)),ln=1,na(aa))}}function oa(r,a,f){var d=new Gn;return a=a==null?0:+a,d.restart(m=>{d.stop(),r(m+a)},a,f),d}var vi=ii("start","end","cancel","interrupt"),di=[],sa=0,ia=1,ce=2,Vn=3,ua=4,ve=5,Hn=6;function Wn(r,a,f,d,m,I){var T=r.__transition;if(!T)r.__transition={};else if(f in T)return;hi(r,f,{name:a,index:d,group:m,on:vi,tween:di,time:I.time,delay:I.delay,duration:I.duration,ease:I.ease,timer:null,state:sa})}function de(r,a){var f=wr(r,a);if(f.state>sa)throw new Error("too late; already scheduled");return f}function Vr(r,a){var f=wr(r,a);if(f.state>Vn)throw new Error("too late; already running");return f}function wr(r,a){var f=r.__transition;if(!f||!(f=f[a]))throw new Error("transition not found");return f}function hi(r,a,f){var d=r.__transition,m;d[a]=f,f.timer=ea(I,0,f.time);function I($){f.state=ia,f.timer.restart(T,f.delay,f.time),f.delay<=$&&T($-f.delay)}function T($){var W,K,et,st;if(f.state!==ia)return L();for(W in d)if(st=d[W],st.name===f.name){if(st.state===Vn)return oa(T);st.state===ua?(st.state=Hn,st.timer.stop(),st.on.call("interrupt",r,r.__data__,st.index,st.group),delete d[W]):+Wce&&d.state180?W+=360:W-$>180&&($+=360),et.push({i:K.push(m(K)+"rotate(",null,d)-2,x:dt($,W)})):W&&K.push(m(K)+"rotate("+W+d)}function b($,W,K,et){$!==W?et.push({i:K.push(m(K)+"skewX(",null,d)-2,x:dt($,W)}):W&&K.push(m(K)+"skewX("+W+d)}function L($,W,K,et,st,Vt){if($!==K||W!==et){var er=st.push(m(st)+"scale(",null,",",null,")");Vt.push({i:er-4,x:dt($,K)},{i:er-2,x:dt(W,et)})}else(K!==1||et!==1)&&st.push(m(st)+"scale("+K+","+et+")")}return function($,W){var K=[],et=[];return $=r($),W=r(W),I($.translateX,$.translateY,W.translateX,W.translateY,K,et),T($.rotate,W.rotate,K,et),b($.skewX,W.skewX,K,et),L($.scaleX,$.scaleY,W.scaleX,W.scaleY,K,et),$=W=null,function(st){for(var Vt=-1,er=et.length,pt;++Vt=0&&(a=a.slice(0,f)),!a||a==="start"})}function Qi(r,a,f){var d,m,I=Ji(a)?de:Vr;return function(){var T=I(this,r),b=T.on;b!==d&&(m=(d=b).copy()).on(a,f),T.on=m}}function Zi(r,a){var f=this._id;return arguments.length<2?wr(this.node(),f).on.on(r):this.each(Qi(f,r,a))}function ki(r){return function(){var a=this.parentNode;for(var f in this.__transition)if(+f!==r)return;a&&a.removeChild(this)}}function qi(){return this.on("end.remove",ki(this._id))}function _i(r){var a=this._name,f=this._id;typeof r!="function"&&(r=se(r));for(var d=this._groups,m=d.length,I=new Array(m),T=0;T{const Ir=qt.identifier;return qt=pointer(qt,Rt),qt.point0=qt.slice(),qt.identifier=Ir,qt});interrupt(Rt);var Rn=W(Rt,arguments,!0).beforestart();if(Ut==="overlay"){ir&&(Ce=!0);const qt=[br[0],br[1]||br[0]];cr.selection=ir=[[or=r===Kn?Ar:Mr(qt[0][0],qt[1][0]),nr=r===Yn?fr:Mr(qt[0][1],qt[1][1])],[gr=r===Kn?Gr:Cr(qt[0][0],qt[1][0]),sr=r===Yn?Dr:Cr(qt[0][1],qt[1][1])]],br.length>1&&tn(pt)}else or=ir[0][0],nr=ir[0][1],gr=ir[1][0],sr=ir[1][1];Dt=or,vr=nr,pr=gr,Pr=sr;var Da=select(Rt).attr("pointer-events","none"),Pn=Da.selectAll(".overlay").attr("cursor",Kr[Ut]);if(pt.touches)Rn.moved=$a,Rn.ended=Ua;else{var La=select(pt.view).on("mousemove.brush",$a,!0).on("mouseup.brush",Ua,!0);m&&La.on("keydown.brush",xf,!0).on("keyup.brush",Sf,!0),dragDisable(pt.view)}$.call(Rt),Rn.start(pt,Mt.name);function $a(qt){for(const Ir of qt.changedTouches||[qt])for(const Cn of br)Cn.identifier===Ir.identifier&&(Cn.cur=pointer(Ir,Rt));if(_n&&!te&&!re&&br.length===1){const Ir=br[0];pa(Ir.cur[0]-Ir[0])>pa(Ir.cur[1]-Ir[1])?re=!0:te=!0}for(const Ir of br)Ir.cur&&(Ir[0]=Ir.cur[0],Ir[1]=Ir.cur[1]);Ce=!0,noevent(qt),tn(qt)}function tn(qt){const Ir=br[0],Cn=Ir.point0;var kr;switch(Er=Ir[0]-Cn[0],Or=Ir[1]-Cn[1],Mt){case pe:case ga:{kt&&(Er=Cr(Ar-or,Mr(Gr-gr,Er)),Dt=or+Er,pr=gr+Er),Ht&&(Or=Cr(fr-nr,Mr(Dr-sr,Or)),vr=nr+Or,Pr=sr+Or);break}case cn:{br[1]?(kt&&(Dt=Cr(Ar,Mr(Gr,br[0][0])),pr=Cr(Ar,Mr(Gr,br[1][0])),kt=1),Ht&&(vr=Cr(fr,Mr(Dr,br[0][1])),Pr=Cr(fr,Mr(Dr,br[1][1])),Ht=1)):(kt<0?(Er=Cr(Ar-or,Mr(Gr-or,Er)),Dt=or+Er,pr=gr):kt>0&&(Er=Cr(Ar-gr,Mr(Gr-gr,Er)),Dt=or,pr=gr+Er),Ht<0?(Or=Cr(fr-nr,Mr(Dr-nr,Or)),vr=nr+Or,Pr=sr):Ht>0&&(Or=Cr(fr-sr,Mr(Dr-sr,Or)),vr=nr,Pr=sr+Or));break}case vn:{kt&&(Dt=Cr(Ar,Mr(Gr,or-Er*kt)),pr=Cr(Ar,Mr(Gr,gr+Er*kt))),Ht&&(vr=Cr(fr,Mr(Dr,nr-Or*Ht)),Pr=Cr(fr,Mr(Dr,sr+Or*Ht)));break}}pr0&&(or=Dt-Er),Ht<0?sr=Pr-Or:Ht>0&&(nr=vr-Or),Mt=pe,Pn.attr("cursor",Kr.selection),tn(qt));break}default:return}noevent(qt)}function Sf(qt){switch(qt.keyCode){case 16:{_n&&(te=re=_n=!1,tn(qt));break}case 18:{Mt===vn&&(kt<0?gr=pr:kt>0&&(or=Dt),Ht<0?sr=Pr:Ht>0&&(nr=vr),Mt=cn,tn(qt));break}case 32:{Mt===pe&&(qt.altKey?(kt&&(gr=pr-Er*kt,or=Dt+Er*kt),Ht&&(sr=Pr-Or*Ht,nr=vr+Or*Ht),Mt=vn):(kt<0?gr=pr:kt>0&&(or=Dt),Ht<0?sr=Pr:Ht>0&&(nr=vr),Mt=cn),Pn.attr("cursor",Kr[Ut]),tn(qt));break}default:return}noevent(qt)}}function st(pt){W(this,arguments).moved(pt)}function Vt(pt){W(this,arguments).ended(pt)}function er(){var pt=this.__brush||{selection:null};return pt.extent=ye(a.apply(this,arguments)),pt.dim=r,pt}return L.extent=function(pt){return arguments.length?(a=typeof pt=="function"?pt:constant(ye(pt)),L):a},L.filter=function(pt){return arguments.length?(f=typeof pt=="function"?pt:constant(!!pt),L):f},L.touchable=function(pt){return arguments.length?(d=typeof pt=="function"?pt:constant(!!pt),L):d},L.handleSize=function(pt){return arguments.length?(T=+pt,L):T},L.keyModifiers=function(pt){return arguments.length?(m=!!pt,L):m},L.on=function(){var pt=I.on.apply(I,arguments);return pt===I?L:pt},L}function Fu(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Du(r){const a=typeof(r==null?void 0:r.requestAnimationFrame)=="function"&&typeof(r==null?void 0:r.cancelAnimationFrame)=="function",f=typeof(r==null?void 0:r.requestIdleCallback)=="function"&&typeof(r==null?void 0:r.cancelIdleCallback)=="function",d=I=>setTimeout(I,1),m=I=>clearTimeout(I);return[a?r.requestAnimationFrame:d,a?r.cancelAnimationFrame:m,f?r.requestIdleCallback:d,f?r.cancelIdleCallback:m]}const Xn=Fu(),Lu=Xn==null?void 0:Xn.document,[Nf,bf,Ff,Df]=Du(Xn);var $u=Object.defineProperty,Sa=Object.getOwnPropertySymbols,Uu=Object.prototype.hasOwnProperty,Bu=Object.prototype.propertyIsEnumerable,Ea=(r,a,f)=>a in r?$u(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,Oa=(r,a)=>{for(var f in a||(a={}))Uu.call(a,f)&&Ea(r,f,a[f]);if(Sa)for(var f of Sa(a))Bu.call(a,f)&&Ea(r,f,a[f]);return r};const Lf=r=>r||r===0,Se=r=>typeof r=="function",An=r=>typeof r=="string",Ee=r=>typeof r=="number",ju=r=>typeof r=="undefined",Ia=r=>typeof r!="undefined",$f=r=>typeof r=="boolean",Uf=r=>Math.ceil(r/10)*10,Bf=r=>Math.ceil(r)+.5,jf=r=>r[1]-r[0],Oe=r=>typeof r=="object",Aa=r=>ju(r)||r===null||An(r)&&r.length===0||Oe(r)&&!(r instanceof Date)&&Object.keys(r).length===0||Ee(r)&&isNaN(r),wu=r=>!Aa(r),Ie=r=>Array.isArray(r),Jn=r=>r&&!(r!=null&&r.nodeType)&&Oe(r)&&!Ie(r);function wf(r,a,f){return Ia(r[a])?r[a]:f}function Gf(r,a){let f=!1;return Object.keys(r).forEach(d=>r[d]===a&&(f=!0)),f}function Vf(r,a,...f){const d=Se(r);return d&&r.call(a,...f),d}function Hf(r,a){let f=0;const d=function(...m){!--f&&a.apply(this,...m)};"duration"in r?r.each(()=>++f).on("end",d):(++f,r.call(d))}function Wf(r){return An(r)?r.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):r}function zf(r,a,f=[-1,1],d=!1){if(!(!r||!An(a)))if(a.indexOf(` `)===-1)r.text(a);else{const m=[r.text(),a].map(I=>I.replace(/[\s\n]/g,""));if(m[0]!==m[1]){const I=a.split(` -`),T=d?I.length-1:1;r.html(""),I.forEach((b,L)=>{r.append("tspan").attr("x",0).attr("dy",`${L===0?f[0]*T:f[1]}em`).text(b)})}}}function Gu(r){const{x:a,y:f,width:d,height:m}=r.getBBox();return[{x:a,y:f+m},{x:a,y:f},{x:a+d,y:f},{x:a+d,y:f+m}]}function Yf(r){const{width:a,height:f}=r.getBoundingClientRect(),d=Gu(r),m=d[0].x,I=Math.min(d[0].y,d[1].y);return{x:m,y:I,width:a,height:f}}function Kf(r,a){var f;const d=r&&((f=r.touches||r.sourceEvent&&r.sourceEvent.touches)==null?void 0:f[0]);let m=[0,0];try{m=d3Pointer(d||r,a)}catch(I){}return m.map(I=>isNaN(I)?0:I)}function Vu(r){const{event:a,$el:f}=r,d=f.subchart.main||f.main;let m;return a&&a.type==="brush"?m=a.selection:d&&(m=d.select(".bb-brush").node())&&(m=d3BrushSelection(m)),m}function Xf(r){return!("rect"in r)||"rect"in r&&r.hasAttribute("width")&&r.rect.width!==+r.getAttribute("width")?r.rect=r.getBoundingClientRect():r.rect}function Jf(r=!0,a=0,f=1e4){const d=window.crypto||window.msCrypto,m=d?a+d.getRandomValues(new Uint32Array(1))[0]%(f-a+1):Math.floor(Math.random()*(f-a)+a);return r?String(m):m}function Ta(r,a,f,d,m){if(f>d)return-1;const I=Math.floor((f+d)/2);let{x:T,w:b=0}=r[I];return m&&(T=r[I].y,b=r[I].h),a>=T&&a<=T+b?I:a{if(Jn(f)&&f.constructor){const d=new f.constructor;for(const m in f)d[m]=a(f[m]);return d}return f};return r.map(f=>a(f)).reduce((f,d)=>Oa(Oa({},f),d))}function Hu(r={},a){Ie(a)&&a.forEach(f=>Hu(r,f));for(const f in a)/^\d+$/.test(f)||f in r||(r[f]=a[f]);return r}const kf=r=>r.charAt(0).toUpperCase()+r.slice(1);function qf(r,a="-"){return r.split(a).map((f,d)=>d?f.charAt(0).toUpperCase()+f.slice(1).toLowerCase():f.toLowerCase()).join("")}const Wu=r=>[].slice.call(r);function _f(r,a,f){const{rootSelector:d="",sheet:m}=r,T=`${d} ${(b=>b.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(a)} {${f.join(";")}}`;return m[m.insertRule?"insertRule":"addRule"](T,m.cssRules.length)}function tl(r){let a=[];return r.forEach(f=>{var d;try{f.cssRules&&f.cssRules.length&&(a=a.concat(Wu(f.cssRules)))}catch(m){(d=window.console)==null||d.warn(`Error while reading rules from ${f.href}: ${m.toString()}`)}}),a}function rl(r){var a,f,d,m;return{x:((f=(a=window.pageXOffset)!=null?a:window.scrollX)!=null?f:0)+r.scrollLeft,y:((m=(d=window.pageYOffset)!=null?d:window.scrollY)!=null?m:0)+r.scrollTop}}function nl(r){const a=r?r.transform:null,f=a&&a.baseVal;return f&&f.numberOfItems?f.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function el(r){const a=r[0]instanceof Date,f=(a?r.map(Number):r).filter((d,m,I)=>I.indexOf(d)===m);return a?f.map(d=>new Date(d)):f}function al(r){return r&&r.length?r.reduce((a,f)=>a.concat(f)):[]}function Ae(r,...a){if(!a.length||a.length===1&&!a[0])return r;const f=a.shift();return Jn(r)&&Jn(f)&&Object.keys(f).forEach(d=>{const m=f[d];Jn(m)?(!r[d]&&(r[d]={}),r[d]=Ae(r[d],m)):r[d]=Ie(m)?m.concat():m}),Ae(r,...a)}function zu(r,a=!0){let f;return r[0]instanceof Date?f=a?(d,m)=>d-m:(d,m)=>m-d:a&&!r.every(isNaN)?f=(d,m)=>d-m:a||(f=(d,m)=>d>m&&-1||dwu(d));return f.length?Ee(f[0])?f=Math[r](...f):f[0]instanceof Date&&(f=zu(f,r==="min")[0]):f=void 0,f}const Yu=(r,a,f=1)=>{const d=[],m=Math.max(0,Math.ceil((a-r)/f))|0;for(let I=r;I{const r=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(a,f,d=r())=>{a.dispatchEvent(new MouseEvent(f,d))}}catch(a){return(f,d,m=r())=>{const I=Lu.createEvent("MouseEvent");I.initMouseEvent(d,m.bubbles,m.cancelable,Xn,0,m.screenX,m.screenY,m.clientX,m.clientY,!1,!1,!1,!1,0,null),f.dispatchEvent(I)}}})(),touch:(r,a,f)=>{const d=new Touch(Ae({identifier:Date.now(),target:r,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},f));r.dispatchEvent(new TouchEvent(a,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[d],targetTouches:[],changedTouches:[d]}))}};function il(r,a){let f=r;for(const d in a)f=f.replace(new RegExp(`{=${d}}`,"g"),a[d]);return f}function Ku(r){var a;let f;if(r instanceof Date)f=r;else if(An(r)){const{config:d,format:m}=this;f=(a=m.dataTime(d.data_xFormat)(r))!=null?a:new Date(r)}else Ee(r)&&!isNaN(r)&&(f=new Date(+r));return(!f||isNaN(+f))&&console&&console.error&&console.error(`Failed to parse x '${r}' to Date object`),f}function ul(){var r,a;return((r=document)==null?void 0:r.hidden)===!1||((a=document)==null?void 0:a.visibilityState)==="visible"}function fl(r,a){const{DocumentTouch:f,matchMedia:d,navigator:m}=window;let I=!1;if(a)if(m&&"maxTouchPoints"in m)I=m.maxTouchPoints>0;else if("ontouchmove"in window||f&&document instanceof f)I=!0;else if(d!=null&&d("(pointer:coarse)").matches)I=!0;else{const b=m.userAgent;I=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(b)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(b)}return r&&((d==null?void 0:d("any-hover:hover").matches)||(d==null?void 0:d("any-pointer:fine").matches))&&"mouse"||I&&"touch"||"mouse"}function Xu(r,a){a()===!1?requestAnimationFrame(()=>Xu(r,a)):r()}function Ju(r){const a=this.config;let f,d,m;const I=()=>{const T=d.shift();if(T&&f&&Oe(f)&&T in f)return f=f[T],I();if(!T)return f};Object.keys(a).forEach(T=>{f=r,d=T.split("_"),m=I(),Ia(m)&&(a[T]=m)}),this.api&&(this.state.orgConfig=r)}var Qu=Object.defineProperty,Zu=(r,a,f)=>a in r?Qu(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,Te=(r,a,f)=>Zu(r,typeof a!="symbol"?a+"":a,f);class Ra{constructor(a={}){Te(this,"$$"),Te(this,"options"),this.options=a}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(a=>{this[a]=null,delete this[a]})}}Te(Ra,"version","3.12.4-nightly-20240724004639");function ku(r){return r}var Qn=1,Zn=2,Re=3,Tn=4,Pa=1e-6;function qu(r){return"translate("+r+",0)"}function _u(r){return"translate(0,"+r+")"}function tf(r){return a=>+r(a)}function rf(r,a){return a=Math.max(0,r.bandwidth()-a*2)/2,r.round()&&(a=Math.round(a)),f=>+r(f)+a}function nf(){return!this.__axis}function kn(r,a){var f=[],d=null,m=null,I=6,T=6,b=3,L=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,$=r===Qn||r===Tn?-1:1,W=r===Tn||r===Zn?"x":"y",K=r===Qn||r===Re?qu:_u;function et(st){var Vt=d==null?a.ticks?a.ticks.apply(a,f):a.domain():d,er=m==null?a.tickFormat?a.tickFormat.apply(a,f):ku:m,pt=Math.max(I,0)+b,Rt=a.range(),Ut=+Rt[0]+L,Mt=+Rt[Rt.length-1]+L,kt=(a.bandwidth?rf:tf)(a.copy(),L),Ht=st.selection?st.selection():st,cr=Ht.selectAll(".domain").data([null]),hr=Ht.selectAll(".tick").data(Vt,a).order(),ir=hr.exit(),Ar=hr.enter().append("g").attr("class","tick"),or=hr.select("line"),Dt=hr.select("text");cr=cr.merge(cr.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),hr=hr.merge(Ar),or=or.merge(Ar.append("line").attr("stroke","currentColor").attr(W+"2",$*I)),Dt=Dt.merge(Ar.append("text").attr("fill","currentColor").attr(W,$*pt).attr("dy",r===Qn?"0em":r===Re?"0.71em":"0.32em")),st!==Ht&&(cr=cr.transition(st),hr=hr.transition(st),or=or.transition(st),Dt=Dt.transition(st),ir=ir.transition(st).attr("opacity",Pa).attr("transform",function(fr){return isFinite(fr=kt(fr))?K(fr+L):this.getAttribute("transform")}),Ar.attr("opacity",Pa).attr("transform",function(fr){var nr=this.parentNode.__axis;return K((nr&&isFinite(nr=nr(fr))?nr:kt(fr))+L)})),ir.remove(),cr.attr("d",r===Tn||r===Zn?T?"M"+$*T+","+Ut+"H"+L+"V"+Mt+"H"+$*T:"M"+L+","+Ut+"V"+Mt:T?"M"+Ut+","+$*T+"V"+L+"H"+Mt+"V"+$*T:"M"+Ut+","+L+"H"+Mt),hr.attr("opacity",1).attr("transform",function(fr){return K(kt(fr)+L)}),or.attr(W+"2",$*I),Dt.attr(W,$*pt).text(er),Ht.filter(nf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",r===Zn?"start":r===Tn?"end":"middle"),Ht.each(function(){this.__axis=kt})}return et.scale=function(st){return arguments.length?(a=st,et):a},et.ticks=function(){return f=Array.from(arguments),et},et.tickArguments=function(st){return arguments.length?(f=st==null?[]:Array.from(st),et):f.slice()},et.tickValues=function(st){return arguments.length?(d=st==null?null:Array.from(st),et):d&&d.slice()},et.tickFormat=function(st){return arguments.length?(m=st,et):m},et.tickSize=function(st){return arguments.length?(I=T=+st,et):I},et.tickSizeInner=function(st){return arguments.length?(I=+st,et):I},et.tickSizeOuter=function(st){return arguments.length?(T=+st,et):T},et.tickPadding=function(st){return arguments.length?(b=+st,et):b},et.offset=function(st){return arguments.length?(L=+st,et):L},et}function ll(r){return kn(Qn,r)}function ef(r){return kn(Zn,r)}function cl(r){return kn(Re,r)}function vl(r){return kn(Tn,r)}function Ca(r){return function(a){return Math.sign(a)*Math.log1p(Math.abs(a/r))}}function Ma(r){return function(a){return Math.sign(a)*Math.expm1(Math.abs(a))*r}}function af(r){var a=1,f=r(Ca(a),Ma(a));return f.constant=function(d){return arguments.length?r(Ca(a=+d),Ma(a)):a},ae(f)}function Na(){var r=af(Fr());return r.copy=function(){return Qr(r,Na()).constant(r.constant())},Wr.apply(r,arguments)}var Hr={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},of=Object.defineProperty,sf=(r,a,f)=>a in r?of(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,ba=(r,a,f)=>sf(r,typeof a!="symbol"?a+"":a,f);class uf{constructor(a){ba(this,"owner"),ba(this,"colorScale"),this.owner=a}drawColorScale(){const{$$:a,config:f}=this.owner,d=a.data.targets[0],m=a.state.height-f.padding_bottom-f.padding_top,I=f.scale_width,T=5,b=Yu(f.padding_bottom,m,T),L=$e(d.colors).domain([b[b.length-1],b[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=a.$el.svg.append("g").attr("width",50).attr("height",m).attr("class",Hr.colorScale),this.colorScale.append("g").attr("transform",`translate(0, ${f.padding_top})`).selectAll("bars").data(b).enter().append("rect").attr("y",(st,Vt)=>Vt*T).attr("x",0).attr("width",I).attr("height",T).attr("fill",st=>L(st));const $=Na().domain([d.minEpochs,d.maxEpochs]).range([b[0]+f.padding_top+b[b.length-1]+T-1,b[0]+f.padding_top]),W=ef($),K=f.scale_format;K==="pow10"?W.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):Se(K)?W.tickFormat(K):W.tickFormat(bn("d"));const et=this.colorScale.append("g").attr("class","legend axis").attr("transform",`translate(${I},0)`).call(W);K==="pow10"&&et.selectAll(".tick text").text(null).filter(st=>st/Math.pow(10,Math.ceil(Math.log(st)/Math.LN10-1e-12))===1).text(10).append("tspan").attr("dy","-.7em").text(st=>Math.round(Math.log(st)/Math.LN10)),this.colorScale.attr("transform",`translate(${a.state.current.width-this.xForColorScale()}, 0)`)}xForColorScale(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width}getColorScalePadding(){return this.xForColorScale()+this.owner.config.padding_left+20}}function ff(r,a){const f=r.x,d=r.value;let m=!1;for(let I=0,T=a.length-1;Id!=W>d&&f<($-b)*(d-L)/(W-L)+b&&(m=!m)}return m}function lf(r,a){return r.epochsa.epochs?1:0}function cf(r){let a=0,f,d;for(let m=0,I=r.length,T=I-1;ma in r?vf(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,hf=(r,a,f)=>df(r,typeof a!="symbol"?a+"":a,f);class gf{constructor(a){hf(this,"owner"),this.owner=a;const f=a.$$.$el.main.select(".bb-chart").append("g").attr("class",Hr.stanfordElements);f.append("g").attr("class",Hr.stanfordLines),f.append("g").attr("class",Hr.stanfordRegions)}updateStanfordLines(a){const{$$:f}=this.owner,{config:d,$el:{main:m}}=f,I=d.axis_rotated,T=this.xvCustom.bind(f),b=this.yvCustom.bind(f),L=m.select(`.${Hr.stanfordLines}`).style("shape-rendering","geometricprecision").selectAll(`.${Hr.stanfordLine}`).data(this.owner.config.lines);L.exit().transition().duration(a).style("opacity","0").remove();const $=L.enter().append("g");$.append("line").style("opacity","0"),$.merge(L).attr("class",W=>Hr.stanfordLine+(W.class?` ${W.class}`:"")).select("line").transition().duration(a).attr("x1",W=>I?b(W,"y1"):T(W,"x1")).attr("x2",W=>I?b(W,"y2"):T(W,"x2")).attr("y1",W=>I?T(W,"x1"):b(W,"y1")).attr("y2",W=>I?T(W,"x2"):b(W,"y2")).transition().style("opacity",null)}updateStanfordRegions(a){const{$$:f}=this.owner,{config:d,$el:{main:m}}=f,I=d.axis_rotated,T=this.xvCustom.bind(f),b=this.yvCustom.bind(f),L=this.owner.countEpochsInRegion.bind(f);let $=m.select(`.${Hr.stanfordRegions}`).selectAll(`.${Hr.stanfordRegion}`).data(this.owner.config.regions);$.exit().transition().duration(a).style("opacity","0").remove();const W=$.enter().append("g");W.append("polygon").style("opacity","0"),W.append("text").attr("transform",I?"rotate(-90)":"").style("opacity","0"),$=W.merge($),$.attr("class",K=>Hr.stanfordRegion+(K.class?` ${K.class}`:"")).select("polygon").transition().duration(a).attr("points",K=>K.points.map(et=>[I?b(et,"y"):T(et,"x"),I?T(et,"x"):b(et,"y")].join(",")).join(" ")).transition().style("opacity",K=>String(K.opacity?K.opacity:.2)),$.select("text").transition().duration(a).attr("x",K=>I?b(qn(K.points),"y"):T(qn(K.points),"x")).attr("y",K=>I?T(qn(K.points),"x"):b(qn(K.points),"y")).text(K=>{if(K.text){const{value:et,percentage:st}=L(K.points);return K.text(et,st)}return""}).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)}updateStanfordElements(a=0){this.updateStanfordLines(a),this.updateStanfordRegions(a)}xvCustom(a,f){const d=this,{axis:m,config:I}=d;let T=f?a[f]:d.getBaseValue(a);return m.isTimeSeries()?T=Ku.call(d,T):m.isCategorized()&&An(T)&&(T=I.axis_x_categories.indexOf(a.value)),Math.ceil(d.scale.x(T))}yvCustom(a,f){const d=this,m=a.axis&&a.axis==="y2"?d.scale.y2:d.scale.y,I=f?a[f]:d.getBaseValue(a);return Math.ceil(m(I))}}class Fa{constructor(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}}}var pf=Object.defineProperty,yf=(r,a,f)=>a in r?pf(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,Pe=(r,a,f)=>yf(r,typeof a!="symbol"?a+"":a,f);class mf extends Ra{constructor(a){return super(a),Pe(this,"config"),Pe(this,"colorScale"),Pe(this,"elements"),this.config=new Fa,this}$beforeInit(){const{$$:a}=this;a.config.data_xSort=!1,a.isMultipleX=()=>!0,a.showGridFocus=()=>{},a.labelishData=d=>d.values,a.opacityForCircle=()=>1;const f=a.getCurrentPadding.bind(a);a.getCurrentPadding=()=>{const d=f();return d.right+=this.colorScale?this.colorScale.getColorScalePadding():0,d}}$init(){const{$$:a}=this;Ju.call(this,this.options),a.color=this.getStanfordPointColor.bind(a),this.colorScale=new uf(this),this.elements=new gf(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),a.right+=this.colorScale?this.colorScale.getColorScalePadding():0,this.$redraw()}$redraw(a){var f,d;(f=this.colorScale)==null||f.drawColorScale(),(d=this.elements)==null||d.updateStanfordElements(a)}getOptions(){return new Fa}convertData(){const a=this.$$.data.targets,f=this.options.epochs;a.forEach(d=>{d.values.forEach((m,I)=>{m.epochs=f[I]}),d.minEpochs=void 0,d.maxEpochs=void 0,d.colors=void 0,d.colorscale=void 0})}initStanfordData(){const{config:a}=this,f=this.$$.data.targets[0];f.values.sort(lf);const d=f.values.map(m=>m.epochs);f.minEpochs=isNaN(a.scale_min)?Math.min(...d):a.scale_min,f.maxEpochs=isNaN(a.scale_max)?Math.max(...d):a.scale_max,f.colors=Se(a.colors)?a.colors:Lt(ot(250,1,.5),ot(0,1,.5)),f.colorscale=Ue(f.colors).domain([f.minEpochs,f.maxEpochs])}getStanfordPointColor(a){return this.data.targets[0].colorscale(a.epochs)}setStanfordTooltip(){const{config:a}=this.$$;Aa(a.tooltip_contents)&&(a.tooltip_contents=function(f,d,m,I){const{data_x:T}=a;let b=`
${a||""} ${o(g)}
`;return f.forEach(L=>{const{id:$="",value:W=0,epochs:K=0,x:et=""}=L;b+=` +`),T=d?I.length-1:1;r.html(""),I.forEach((b,L)=>{r.append("tspan").attr("x",0).attr("dy",`${L===0?f[0]*T:f[1]}em`).text(b)})}}}function Gu(r){const{x:a,y:f,width:d,height:m}=r.getBBox();return[{x:a,y:f+m},{x:a,y:f},{x:a+d,y:f},{x:a+d,y:f+m}]}function Yf(r){const{width:a,height:f}=r.getBoundingClientRect(),d=Gu(r),m=d[0].x,I=Math.min(d[0].y,d[1].y);return{x:m,y:I,width:a,height:f}}function Kf(r,a){var f;const d=r&&((f=r.touches||r.sourceEvent&&r.sourceEvent.touches)==null?void 0:f[0]);let m=[0,0];try{m=d3Pointer(d||r,a)}catch(I){}return m.map(I=>isNaN(I)?0:I)}function Vu(r){const{event:a,$el:f}=r,d=f.subchart.main||f.main;let m;return a&&a.type==="brush"?m=a.selection:d&&(m=d.select(".bb-brush").node())&&(m=d3BrushSelection(m)),m}function Xf(r){return!("rect"in r)||"rect"in r&&r.hasAttribute("width")&&r.rect.width!==+r.getAttribute("width")?r.rect=r.getBoundingClientRect():r.rect}function Jf(r=!0,a=0,f=1e4){const d=window.crypto||window.msCrypto,m=d?a+d.getRandomValues(new Uint32Array(1))[0]%(f-a+1):Math.floor(Math.random()*(f-a)+a);return r?String(m):m}function Ta(r,a,f,d,m){if(f>d)return-1;const I=Math.floor((f+d)/2);let{x:T,w:b=0}=r[I];return m&&(T=r[I].y,b=r[I].h),a>=T&&a<=T+b?I:a{if(Jn(f)&&f.constructor){const d=new f.constructor;for(const m in f)d[m]=a(f[m]);return d}return f};return r.map(f=>a(f)).reduce((f,d)=>Oa(Oa({},f),d))}function Hu(r={},a){Ie(a)&&a.forEach(f=>Hu(r,f));for(const f in a)/^\d+$/.test(f)||f in r||(r[f]=a[f]);return r}const kf=r=>r.charAt(0).toUpperCase()+r.slice(1);function qf(r,a="-"){return r.split(a).map((f,d)=>d?f.charAt(0).toUpperCase()+f.slice(1).toLowerCase():f.toLowerCase()).join("")}const Wu=r=>[].slice.call(r);function _f(r,a,f){const{rootSelector:d="",sheet:m}=r,T=`${d} ${(b=>b.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(a)} {${f.join(";")}}`;return m[m.insertRule?"insertRule":"addRule"](T,m.cssRules.length)}function tl(r){let a=[];return r.forEach(f=>{var d;try{f.cssRules&&f.cssRules.length&&(a=a.concat(Wu(f.cssRules)))}catch(m){(d=window.console)==null||d.warn(`Error while reading rules from ${f.href}: ${m.toString()}`)}}),a}function rl(r){var a,f,d,m;return{x:((f=(a=window.pageXOffset)!=null?a:window.scrollX)!=null?f:0)+r.scrollLeft,y:((m=(d=window.pageYOffset)!=null?d:window.scrollY)!=null?m:0)+r.scrollTop}}function nl(r){const a=r?r.transform:null,f=a&&a.baseVal;return f&&f.numberOfItems?f.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function el(r){const a=r[0]instanceof Date,f=(a?r.map(Number):r).filter((d,m,I)=>I.indexOf(d)===m);return a?f.map(d=>new Date(d)):f}function al(r){return r&&r.length?r.reduce((a,f)=>a.concat(f)):[]}function Ae(r,...a){if(!a.length||a.length===1&&!a[0])return r;const f=a.shift();return Jn(r)&&Jn(f)&&Object.keys(f).forEach(d=>{const m=f[d];Jn(m)?(!r[d]&&(r[d]={}),r[d]=Ae(r[d],m)):r[d]=Ie(m)?m.concat():m}),Ae(r,...a)}function zu(r,a=!0){let f;return r[0]instanceof Date?f=a?(d,m)=>d-m:(d,m)=>m-d:a&&!r.every(isNaN)?f=(d,m)=>d-m:a||(f=(d,m)=>d>m&&-1||dwu(d));return f.length?Ee(f[0])?f=Math[r](...f):f[0]instanceof Date&&(f=zu(f,r==="min")[0]):f=void 0,f}const Yu=(r,a,f=1)=>{const d=[],m=Math.max(0,Math.ceil((a-r)/f))|0;for(let I=r;I{const r=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(a,f,d=r())=>{a.dispatchEvent(new MouseEvent(f,d))}}catch(a){return(f,d,m=r())=>{const I=Lu.createEvent("MouseEvent");I.initMouseEvent(d,m.bubbles,m.cancelable,Xn,0,m.screenX,m.screenY,m.clientX,m.clientY,!1,!1,!1,!1,0,null),f.dispatchEvent(I)}}})(),touch:(r,a,f)=>{const d=new Touch(Ae({identifier:Date.now(),target:r,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},f));r.dispatchEvent(new TouchEvent(a,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[d],targetTouches:[],changedTouches:[d]}))}};function il(r,a){let f=r;for(const d in a)f=f.replace(new RegExp(`{=${d}}`,"g"),a[d]);return f}function Ku(r){var a;let f;if(r instanceof Date)f=r;else if(An(r)){const{config:d,format:m}=this;f=(a=m.dataTime(d.data_xFormat)(r))!=null?a:new Date(r)}else Ee(r)&&!isNaN(r)&&(f=new Date(+r));return(!f||isNaN(+f))&&console&&console.error&&console.error(`Failed to parse x '${r}' to Date object`),f}function ul(){var r,a;return((r=document)==null?void 0:r.hidden)===!1||((a=document)==null?void 0:a.visibilityState)==="visible"}function fl(r,a){const{DocumentTouch:f,matchMedia:d,navigator:m}=window;let I=!1;if(a)if(m&&"maxTouchPoints"in m)I=m.maxTouchPoints>0;else if("ontouchmove"in window||f&&document instanceof f)I=!0;else if(d!=null&&d("(pointer:coarse)").matches)I=!0;else{const b=m.userAgent;I=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(b)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(b)}return r&&((d==null?void 0:d("any-hover:hover").matches)||(d==null?void 0:d("any-pointer:fine").matches))&&"mouse"||I&&"touch"||"mouse"}function Xu(r,a){a()===!1?requestAnimationFrame(()=>Xu(r,a)):r()}function Ju(r){const a=this.config;let f,d,m;const I=()=>{const T=d.shift();if(T&&f&&Oe(f)&&T in f)return f=f[T],I();if(!T)return f};Object.keys(a).forEach(T=>{f=r,d=T.split("_"),m=I(),Ia(m)&&(a[T]=m)}),this.api&&(this.state.orgConfig=r)}var Qu=Object.defineProperty,Zu=(r,a,f)=>a in r?Qu(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,Te=(r,a,f)=>Zu(r,typeof a!="symbol"?a+"":a,f);class Ra{constructor(a={}){Te(this,"$$"),Te(this,"options"),this.options=a}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(a=>{this[a]=null,delete this[a]})}}Te(Ra,"version","3.12.4-nightly-20240726004631");function ku(r){return r}var Qn=1,Zn=2,Re=3,Tn=4,Pa=1e-6;function qu(r){return"translate("+r+",0)"}function _u(r){return"translate(0,"+r+")"}function tf(r){return a=>+r(a)}function rf(r,a){return a=Math.max(0,r.bandwidth()-a*2)/2,r.round()&&(a=Math.round(a)),f=>+r(f)+a}function nf(){return!this.__axis}function kn(r,a){var f=[],d=null,m=null,I=6,T=6,b=3,L=typeof window!="undefined"&&window.devicePixelRatio>1?0:.5,$=r===Qn||r===Tn?-1:1,W=r===Tn||r===Zn?"x":"y",K=r===Qn||r===Re?qu:_u;function et(st){var Vt=d==null?a.ticks?a.ticks.apply(a,f):a.domain():d,er=m==null?a.tickFormat?a.tickFormat.apply(a,f):ku:m,pt=Math.max(I,0)+b,Rt=a.range(),Ut=+Rt[0]+L,Mt=+Rt[Rt.length-1]+L,kt=(a.bandwidth?rf:tf)(a.copy(),L),Ht=st.selection?st.selection():st,cr=Ht.selectAll(".domain").data([null]),hr=Ht.selectAll(".tick").data(Vt,a).order(),ir=hr.exit(),Ar=hr.enter().append("g").attr("class","tick"),or=hr.select("line"),Dt=hr.select("text");cr=cr.merge(cr.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),hr=hr.merge(Ar),or=or.merge(Ar.append("line").attr("stroke","currentColor").attr(W+"2",$*I)),Dt=Dt.merge(Ar.append("text").attr("fill","currentColor").attr(W,$*pt).attr("dy",r===Qn?"0em":r===Re?"0.71em":"0.32em")),st!==Ht&&(cr=cr.transition(st),hr=hr.transition(st),or=or.transition(st),Dt=Dt.transition(st),ir=ir.transition(st).attr("opacity",Pa).attr("transform",function(fr){return isFinite(fr=kt(fr))?K(fr+L):this.getAttribute("transform")}),Ar.attr("opacity",Pa).attr("transform",function(fr){var nr=this.parentNode.__axis;return K((nr&&isFinite(nr=nr(fr))?nr:kt(fr))+L)})),ir.remove(),cr.attr("d",r===Tn||r===Zn?T?"M"+$*T+","+Ut+"H"+L+"V"+Mt+"H"+$*T:"M"+L+","+Ut+"V"+Mt:T?"M"+Ut+","+$*T+"V"+L+"H"+Mt+"V"+$*T:"M"+Ut+","+L+"H"+Mt),hr.attr("opacity",1).attr("transform",function(fr){return K(kt(fr)+L)}),or.attr(W+"2",$*I),Dt.attr(W,$*pt).text(er),Ht.filter(nf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",r===Zn?"start":r===Tn?"end":"middle"),Ht.each(function(){this.__axis=kt})}return et.scale=function(st){return arguments.length?(a=st,et):a},et.ticks=function(){return f=Array.from(arguments),et},et.tickArguments=function(st){return arguments.length?(f=st==null?[]:Array.from(st),et):f.slice()},et.tickValues=function(st){return arguments.length?(d=st==null?null:Array.from(st),et):d&&d.slice()},et.tickFormat=function(st){return arguments.length?(m=st,et):m},et.tickSize=function(st){return arguments.length?(I=T=+st,et):I},et.tickSizeInner=function(st){return arguments.length?(I=+st,et):I},et.tickSizeOuter=function(st){return arguments.length?(T=+st,et):T},et.tickPadding=function(st){return arguments.length?(b=+st,et):b},et.offset=function(st){return arguments.length?(L=+st,et):L},et}function ll(r){return kn(Qn,r)}function ef(r){return kn(Zn,r)}function cl(r){return kn(Re,r)}function vl(r){return kn(Tn,r)}function Ca(r){return function(a){return Math.sign(a)*Math.log1p(Math.abs(a/r))}}function Ma(r){return function(a){return Math.sign(a)*Math.expm1(Math.abs(a))*r}}function af(r){var a=1,f=r(Ca(a),Ma(a));return f.constant=function(d){return arguments.length?r(Ca(a=+d),Ma(a)):a},ae(f)}function Na(){var r=af(Fr());return r.copy=function(){return Qr(r,Na()).constant(r.constant())},Wr.apply(r,arguments)}var Hr={colorScale:"bb-colorscale",stanfordElements:"bb-stanford-elements",stanfordLine:"bb-stanford-line",stanfordLines:"bb-stanford-lines",stanfordRegion:"bb-stanford-region",stanfordRegions:"bb-stanford-regions"},of=Object.defineProperty,sf=(r,a,f)=>a in r?of(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,ba=(r,a,f)=>sf(r,typeof a!="symbol"?a+"":a,f);class uf{constructor(a){ba(this,"owner"),ba(this,"colorScale"),this.owner=a}drawColorScale(){const{$$:a,config:f}=this.owner,d=a.data.targets[0],m=a.state.height-f.padding_bottom-f.padding_top,I=f.scale_width,T=5,b=Yu(f.padding_bottom,m,T),L=$e(d.colors).domain([b[b.length-1],b[0]]);this.colorScale&&this.colorScale.remove(),this.colorScale=a.$el.svg.append("g").attr("width",50).attr("height",m).attr("class",Hr.colorScale),this.colorScale.append("g").attr("transform",`translate(0, ${f.padding_top})`).selectAll("bars").data(b).enter().append("rect").attr("y",(st,Vt)=>Vt*T).attr("x",0).attr("width",I).attr("height",T).attr("fill",st=>L(st));const $=Na().domain([d.minEpochs,d.maxEpochs]).range([b[0]+f.padding_top+b[b.length-1]+T-1,b[0]+f.padding_top]),W=ef($),K=f.scale_format;K==="pow10"?W.tickValues([1,10,100,1e3,1e4,1e5,1e6,1e7]):Se(K)?W.tickFormat(K):W.tickFormat(bn("d"));const et=this.colorScale.append("g").attr("class","legend axis").attr("transform",`translate(${I},0)`).call(W);K==="pow10"&&et.selectAll(".tick text").text(null).filter(st=>st/Math.pow(10,Math.ceil(Math.log(st)/Math.LN10-1e-12))===1).text(10).append("tspan").attr("dy","-.7em").text(st=>Math.round(Math.log(st)/Math.LN10)),this.colorScale.attr("transform",`translate(${a.state.current.width-this.xForColorScale()}, 0)`)}xForColorScale(){return this.owner.config.padding_right+this.colorScale.node().getBBox().width}getColorScalePadding(){return this.xForColorScale()+this.owner.config.padding_left+20}}function ff(r,a){const f=r.x,d=r.value;let m=!1;for(let I=0,T=a.length-1;Id!=W>d&&f<($-b)*(d-L)/(W-L)+b&&(m=!m)}return m}function lf(r,a){return r.epochsa.epochs?1:0}function cf(r){let a=0,f,d;for(let m=0,I=r.length,T=I-1;ma in r?vf(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,hf=(r,a,f)=>df(r,typeof a!="symbol"?a+"":a,f);class gf{constructor(a){hf(this,"owner"),this.owner=a;const f=a.$$.$el.main.select(".bb-chart").append("g").attr("class",Hr.stanfordElements);f.append("g").attr("class",Hr.stanfordLines),f.append("g").attr("class",Hr.stanfordRegions)}updateStanfordLines(a){const{$$:f}=this.owner,{config:d,$el:{main:m}}=f,I=d.axis_rotated,T=this.xvCustom.bind(f),b=this.yvCustom.bind(f),L=m.select(`.${Hr.stanfordLines}`).style("shape-rendering","geometricprecision").selectAll(`.${Hr.stanfordLine}`).data(this.owner.config.lines);L.exit().transition().duration(a).style("opacity","0").remove();const $=L.enter().append("g");$.append("line").style("opacity","0"),$.merge(L).attr("class",W=>Hr.stanfordLine+(W.class?` ${W.class}`:"")).select("line").transition().duration(a).attr("x1",W=>I?b(W,"y1"):T(W,"x1")).attr("x2",W=>I?b(W,"y2"):T(W,"x2")).attr("y1",W=>I?T(W,"x1"):b(W,"y1")).attr("y2",W=>I?T(W,"x2"):b(W,"y2")).transition().style("opacity",null)}updateStanfordRegions(a){const{$$:f}=this.owner,{config:d,$el:{main:m}}=f,I=d.axis_rotated,T=this.xvCustom.bind(f),b=this.yvCustom.bind(f),L=this.owner.countEpochsInRegion.bind(f);let $=m.select(`.${Hr.stanfordRegions}`).selectAll(`.${Hr.stanfordRegion}`).data(this.owner.config.regions);$.exit().transition().duration(a).style("opacity","0").remove();const W=$.enter().append("g");W.append("polygon").style("opacity","0"),W.append("text").attr("transform",I?"rotate(-90)":"").style("opacity","0"),$=W.merge($),$.attr("class",K=>Hr.stanfordRegion+(K.class?` ${K.class}`:"")).select("polygon").transition().duration(a).attr("points",K=>K.points.map(et=>[I?b(et,"y"):T(et,"x"),I?T(et,"x"):b(et,"y")].join(",")).join(" ")).transition().style("opacity",K=>String(K.opacity?K.opacity:.2)),$.select("text").transition().duration(a).attr("x",K=>I?b(qn(K.points),"y"):T(qn(K.points),"x")).attr("y",K=>I?T(qn(K.points),"x"):b(qn(K.points),"y")).text(K=>{if(K.text){const{value:et,percentage:st}=L(K.points);return K.text(et,st)}return""}).attr("text-anchor","middle").attr("dominant-baseline","middle").transition().style("opacity",null)}updateStanfordElements(a=0){this.updateStanfordLines(a),this.updateStanfordRegions(a)}xvCustom(a,f){const d=this,{axis:m,config:I}=d;let T=f?a[f]:d.getBaseValue(a);return m.isTimeSeries()?T=Ku.call(d,T):m.isCategorized()&&An(T)&&(T=I.axis_x_categories.indexOf(a.value)),Math.ceil(d.scale.x(T))}yvCustom(a,f){const d=this,m=a.axis&&a.axis==="y2"?d.scale.y2:d.scale.y,I=f?a[f]:d.getBaseValue(a);return Math.ceil(m(I))}}class Fa{constructor(){return{colors:void 0,epochs:[],lines:[],scale_min:void 0,scale_max:void 0,scale_width:20,scale_format:void 0,padding_top:0,padding_right:0,padding_bottom:0,padding_left:0,regions:[]}}}var pf=Object.defineProperty,yf=(r,a,f)=>a in r?pf(r,a,{enumerable:!0,configurable:!0,writable:!0,value:f}):r[a]=f,Pe=(r,a,f)=>yf(r,typeof a!="symbol"?a+"":a,f);class mf extends Ra{constructor(a){return super(a),Pe(this,"config"),Pe(this,"colorScale"),Pe(this,"elements"),this.config=new Fa,this}$beforeInit(){const{$$:a}=this;a.config.data_xSort=!1,a.isMultipleX=()=>!0,a.showGridFocus=()=>{},a.labelishData=d=>d.values,a.opacityForCircle=()=>1;const f=a.getCurrentPadding.bind(a);a.getCurrentPadding=()=>{const d=f();return d.right+=this.colorScale?this.colorScale.getColorScalePadding():0,d}}$init(){const{$$:a}=this;Ju.call(this,this.options),a.color=this.getStanfordPointColor.bind(a),this.colorScale=new uf(this),this.elements=new gf(this),this.convertData(),this.initStanfordData(),this.setStanfordTooltip(),this.colorScale.drawColorScale(),a.right+=this.colorScale?this.colorScale.getColorScalePadding():0,this.$redraw()}$redraw(a){var f,d;(f=this.colorScale)==null||f.drawColorScale(),(d=this.elements)==null||d.updateStanfordElements(a)}getOptions(){return new Fa}convertData(){const a=this.$$.data.targets,f=this.options.epochs;a.forEach(d=>{d.values.forEach((m,I)=>{m.epochs=f[I]}),d.minEpochs=void 0,d.maxEpochs=void 0,d.colors=void 0,d.colorscale=void 0})}initStanfordData(){const{config:a}=this,f=this.$$.data.targets[0];f.values.sort(lf);const d=f.values.map(m=>m.epochs);f.minEpochs=isNaN(a.scale_min)?Math.min(...d):a.scale_min,f.maxEpochs=isNaN(a.scale_max)?Math.max(...d):a.scale_max,f.colors=Se(a.colors)?a.colors:Lt(ot(250,1,.5),ot(0,1,.5)),f.colorscale=Ue(f.colors).domain([f.minEpochs,f.maxEpochs])}getStanfordPointColor(a){return this.data.targets[0].colorscale(a.epochs)}setStanfordTooltip(){const{config:a}=this.$$;Aa(a.tooltip_contents)&&(a.tooltip_contents=function(f,d,m,I){const{data_x:T}=a;let b=`
`;return f.forEach(L=>{const{id:$="",value:W=0,epochs:K=0,x:et=""}=L;b+=` diff --git a/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js b/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js index 181e7fcf3..12ae9e426 100644 --- a/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js +++ b/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -22745,7 +22745,7 @@ class Plugin { }); } } -__publicField(Plugin, "version", "3.12.4-nightly-20240724004639"); +__publicField(Plugin, "version", "3.12.4-nightly-20240726004631"); ;// CONCATENATED MODULE: ./src/Plugin/tableview/const.ts diff --git a/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js b/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js index b96bdafa7..a5411e3ba 100644 --- a/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js +++ b/dist/plugin/pkgd/billboardjs-plugin-tableview.pkgd.min.js @@ -5,12 +5,12 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */(function(Kr,Nr){typeof exports=="object"&&typeof module=="object"?module.exports=Nr():typeof define=="function"&&define.amd?define("bb",[],Nr):typeof exports=="object"?exports.bb=Nr():(Kr.bb=Kr.bb||{},Kr.bb.plugin=Kr.bb.plugin||{},Kr.bb.plugin["tableview.pkgd"]=Nr())})(this,function(){return function(){"use strict";var Re={72611:function(i,d,t){t.d(d,{default:function(){return Bs}});function r(){}function n(e){return e==null?r:function(){return this.querySelector(e)}}function a(e){typeof e!="function"&&(e=n(e));for(var f=this._groups,h=f.length,E=new Array(h),O=0;O=Bt&&(Bt=Wt+1);!(tr=mt[Bt])&&++Bt=0;)($=E[O])&&(M&&$.compareDocumentPosition(M)^4&&M.parentNode.insertBefore($,M),M=$);return this}function k(e){e||(e=J);function f(Et,Ct){return Et&&Ct?e(Et.__data__,Ct.__data__):!Et-!Ct}for(var h=this._groups,E=h.length,O=new Array(E),M=0;Mf?1:e>=f?0:NaN}function et(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _(){return Array.from(this)}function dt(){for(var e=this._groups,f=0,h=e.length;f=0&&(f=e.slice(0,h))!=="xmlns"&&(e=e.slice(h+1)),Ht.hasOwnProperty(f)?{space:Ht[f],local:e}:e}function bt(e){return function(){this.removeAttribute(e)}}function vt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function gt(e,f){return function(){this.setAttribute(e,f)}}function Pt(e,f){return function(){this.setAttributeNS(e.space,e.local,f)}}function Dt(e,f){return function(){var h=f.apply(this,arguments);h==null?this.removeAttribute(e):this.setAttribute(e,h)}}function Nt(e,f){return function(){var h=f.apply(this,arguments);h==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,h)}}function Ut(e,f){var h=$t(e);if(arguments.length<2){var E=this.node();return h.local?E.getAttributeNS(h.space,h.local):E.getAttribute(h)}return this.each((f==null?h.local?vt:bt:typeof f=="function"?h.local?Nt:Dt:h.local?Pt:gt)(h,f))}function Zt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function kt(e){return function(){this.style.removeProperty(e)}}function Jt(e,f,h){return function(){this.style.setProperty(e,f,h)}}function Lt(e,f,h){return function(){var E=f.apply(this,arguments);E==null?this.style.removeProperty(e):this.style.setProperty(e,E,h)}}function Qt(e,f,h){return arguments.length>1?this.each((f==null?kt:typeof f=="function"?Lt:Jt)(e,f,h==null?"":h)):Vt(this.node(),e)}function Vt(e,f){return e.style.getPropertyValue(f)||Zt(e).getComputedStyle(e,null).getPropertyValue(f)}function jt(e){return function(){delete this[e]}}function st(e,f){return function(){this[e]=f}}function ht(e,f){return function(){var h=f.apply(this,arguments);h==null?delete this[e]:this[e]=h}}function tt(e,f){return arguments.length>1?this.each((f==null?jt:typeof f=="function"?ht:st)(e,f)):this.node()[e]}function It(e){return e.trim().split(/^|\s+/)}function Tt(e){return e.classList||new xt(e)}function xt(e){this._node=e,this._names=It(e.getAttribute("class")||"")}xt.prototype={add:function(e){var f=this._names.indexOf(e);f<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var f=this._names.indexOf(e);f>=0&&(this._names.splice(f,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function yt(e,f){for(var h=Tt(e),E=-1,O=f.length;++E=0&&(h=f.slice(E+1),f=f.slice(0,E)),{type:f,name:h}})}function dr(e){return function(){var f=this.__on;if(f){for(var h=0,E=-1,O=f.length,M;h{}};function Tr(){for(var e=0,f=arguments.length,h={},E;e=0&&(E=h.slice(O+1),h=h.slice(0,O)),h&&!f.hasOwnProperty(h))throw new Error("unknown type: "+h);return{type:h,name:E}})}it.prototype=Tr.prototype={constructor:it,on:function(e,f){var h=this._,E=sr(e+"",h),O,M=-1,$=E.length;if(arguments.length<2){for(;++M<$;)if((O=(e=E[M]).type)&&(O=Fr(h[O],e.name)))return O;return}if(f!=null&&typeof f!="function")throw new Error("invalid callback: "+f);for(;++M<$;)if(O=(e=E[M]).type)h[O]=un(h[O],e.name,f);else if(f==null)for(O in h)h[O]=un(h[O],e.name,null);return this},copy:function(){var e={},f=this._;for(var h in f)e[h]=f[h].slice();return new it(e)},call:function(e,f){if((O=arguments.length-2)>0)for(var h=new Array(O),E=0,O,M;E=0&&e._call.call(void 0,f),e=e._next;--Gr}function Me(){tn=(Un=En.now())+Bn,Gr=Vr=0;try{Ea()}finally{Gr=0,Ia(),tn=0}}function Oa(){var e=En.now(),f=e-Un;f>Pe&&(Bn-=f,Un=e)}function Ia(){for(var e,f=bn,h,E=1/0;f;)f._call?(E>f._time&&(E=f._time),e=f,f=f._next):(h=f._next,f._next=null,f=e?e._next=h:bn=h);Sn=e,se(E)}function se(e){if(!Gr){Vr&&(Vr=clearTimeout(Vr));var f=e-tn;f>24?(e<1/0&&(Vr=setTimeout(Me,e-En.now()-Bn)),xn&&(xn=clearInterval(xn))):(xn||(Un=En.now(),xn=setInterval(Oa,Pe)),Gr=1,Ce(Me))}}function De(e,f,h){var E=new jn;return f=f==null?0:+f,E.restart(O=>{E.stop(),e(O+f)},f,h),E}var Ta=$n("start","end","cancel","interrupt"),Aa=[],Fe=0,Le=1,ie=2,wn=3,$e=4,ue=5,Gn=6;function Vn(e,f,h,E,O,M){var $=e.__transition;if(!$)e.__transition={};else if(h in $)return;Ra(e,h,{name:f,index:E,group:O,on:Ta,tween:Aa,time:M.time,delay:M.delay,duration:M.duration,ease:M.ease,timer:null,state:Fe})}function fe(e,f){var h=Lr(e,f);if(h.state>Fe)throw new Error("too late; already scheduled");return h}function Ur(e,f){var h=Lr(e,f);if(h.state>wn)throw new Error("too late; already running");return h}function Lr(e,f){var h=e.__transition;if(!h||!(h=h[f]))throw new Error("transition not found");return h}function Ra(e,f,h){var E=e.__transition,O;E[f]=h,h.timer=Ne(M,0,h.time);function M(rt){h.state=Le,h.timer.restart($,h.delay,h.time),h.delay<=rt&&$(rt-h.delay)}function $(rt){var nt,Et,Ct,Gt;if(h.state!==Le)return Y();for(nt in E)if(Gt=E[nt],Gt.name===h.name){if(Gt.state===wn)return De($);Gt.state===$e?(Gt.state=Gn,Gt.timer.stop(),Gt.on.call("interrupt",e,e.__data__,Gt.index,Gt.group),delete E[nt]):+ntie&&E.state180?nt+=360:nt-rt>180&&(rt+=360),Ct.push({i:Et.push(O(Et)+"rotate(",null,E)-2,x:Qr(rt,nt)})):nt&&Et.push(O(Et)+"rotate("+nt+E)}function G(rt,nt,Et,Ct){rt!==nt?Ct.push({i:Et.push(O(Et)+"skewX(",null,E)-2,x:Qr(rt,nt)}):nt&&Et.push(O(Et)+"skewX("+nt+E)}function Y(rt,nt,Et,Ct,Gt,or){if(rt!==Et||nt!==Ct){var hr=Gt.push(O(Gt)+"scale(",null,",",null,")");or.push({i:hr-4,x:Qr(rt,Et)},{i:hr-2,x:Qr(nt,Ct)})}else(Et!==1||Ct!==1)&&Gt.push(O(Gt)+"scale("+Et+","+Ct+")")}return function(rt,nt){var Et=[],Ct=[];return rt=e(rt),nt=e(nt),M(rt.translateX,rt.translateY,nt.translateX,nt.translateY,Et,Ct),$(rt.rotate,nt.rotate,Et,Ct),G(rt.skewX,nt.skewX,Et,Ct),Y(rt.scaleX,rt.scaleY,nt.scaleX,nt.scaleY,Et,Ct),rt=nt=null,function(Gt){for(var or=-1,hr=Ct.length,mt;++or>8&15|f>>4&240,f>>4&15|f&240,(f&15)<<4|f&15,1):h===8?zn(f>>24&255,f>>16&255,f>>8&255,(f&255)/255):h===4?zn(f>>12&15|f>>8&240,f>>8&15|f>>4&240,f>>4&15|f&240,((f&15)<<4|f&15)/255):null):(f=Ba.exec(e))?new Pr(f[1],f[2],f[3],1):(f=ja.exec(e))?new Pr(f[1]*255/100,f[2]*255/100,f[3]*255/100,1):(f=wa.exec(e))?zn(f[1],f[2],f[3],f[4]):(f=Ga.exec(e))?zn(f[1]*255/100,f[2]*255/100,f[3]*255/100,f[4]):(f=Va.exec(e))?Ke(f[1],f[2]/100,f[3]/100,1):(f=Ha.exec(e))?Ke(f[1],f[2]/100,f[3]/100,f[4]):we.hasOwnProperty(e)?He(we[e]):e==="transparent"?new Pr(NaN,NaN,NaN,0):null}function He(e){return new Pr(e>>16&255,e>>8&255,e&255,1)}function zn(e,f,h,E){return E<=0&&(e=f=h=NaN),new Pr(e,f,h,E)}function Ka(e){return e instanceof On||(e=An(e)),e?(e=e.rgb(),new Pr(e.r,e.g,e.b,e.opacity)):new Pr}function Kn(e,f,h,E){return arguments.length===1?Ka(e):new Pr(e,f,h,E==null?1:E)}function Pr(e,f,h,E){this.r=+e,this.g=+f,this.b=+h,this.opacity=+E}ce(Pr,Kn,je(On,{brighter(e){return e=e==null?Wn:Math.pow(Wn,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new Pr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Pr(rn(this.r),rn(this.g),rn(this.b),Yn(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:We,formatHex:We,formatHex8:Ya,formatRgb:ze,toString:ze}));function We(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}`}function Ya(){return`#${nn(this.r)}${nn(this.g)}${nn(this.b)}${nn((isNaN(this.opacity)?1:this.opacity)*255)}`}function ze(){const e=Yn(this.opacity);return`${e===1?"rgb(":"rgba("}${rn(this.r)}, ${rn(this.g)}, ${rn(this.b)}${e===1?")":`, ${e})`}`}function Yn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rn(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function nn(e){return e=rn(e),(e<16?"0":"")+e.toString(16)}function Ke(e,f,h,E){return E<=0?e=f=h=NaN:h<=0||h>=1?e=f=NaN:f<=0&&(e=NaN),new $r(e,f,h,E)}function Ye(e){if(e instanceof $r)return new $r(e.h,e.s,e.l,e.opacity);if(e instanceof On||(e=An(e)),!e)return new $r;if(e instanceof $r)return e;e=e.rgb();var f=e.r/255,h=e.g/255,E=e.b/255,O=Math.min(f,h,E),M=Math.max(f,h,E),$=NaN,G=M-O,Y=(M+O)/2;return G?(f===M?$=(h-E)/G+(h0&&Y<1?0:$,new $r($,G,Y,e.opacity)}function Xa(e,f,h,E){return arguments.length===1?Ye(e):new $r(e,f,h,E==null?1:E)}function $r(e,f,h,E){this.h=+e,this.s=+f,this.l=+h,this.opacity=+E}ce($r,Xa,je(On,{brighter(e){return e=e==null?Wn:Math.pow(Wn,e),new $r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?In:Math.pow(In,e),new $r(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,f=isNaN(e)||isNaN(this.s)?0:this.s,h=this.l,E=h+(h<.5?h:1-h)*f,O=2*h-E;return new Pr(de(e>=240?e-240:e+120,O,E),de(e,O,E),de(e<120?e+240:e-120,O,E),this.opacity)},clamp(){return new $r(Xe(this.h),Xn(this.s),Xn(this.l),Yn(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Yn(this.opacity);return`${e===1?"hsl(":"hsla("}${Xe(this.h)}, ${Xn(this.s)*100}%, ${Xn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Xe(e){return e=(e||0)%360,e<0?e+360:e}function Xn(e){return Math.max(0,Math.min(1,e||0))}function de(e,f,h){return(e<60?f+(h-f)*e/60:e<180?h:e<240?f+(h-f)*(240-e)/60:f)*255}function Je(e,f,h,E,O){var M=e*e,$=M*e;return((1-3*e+3*M-$)*f+(4-6*M+3*$)*h+(1+3*e+3*M-3*$)*E+$*O)/6}function Ja(e){var f=e.length-1;return function(h){var E=h<=0?h=0:h>=1?(h=1,f-1):Math.floor(h*f),O=e[E],M=e[E+1],$=E>0?e[E-1]:2*O-M,G=E()=>e;function Ze(e,f){return function(h){return e+h*f}}function Za(e,f,h){return e=Math.pow(e,h),f=Math.pow(f,h)-e,h=1/h,function(E){return Math.pow(e+E*f,h)}}function Gs(e,f){var h=f-e;return h?Ze(e,h>180||h<-180?h-360*Math.round(h/360):h):constant(isNaN(e)?f:e)}function ka(e){return(e=+e)==1?ke:function(f,h){return h-f?Za(f,h,e):Qe(isNaN(f)?h:f)}}function ke(e,f){var h=f-e;return h?Ze(e,h):Qe(isNaN(e)?f:e)}var qe=function e(f){var h=ka(f);function E(O,M){var $=h((O=Kn(O)).r,(M=Kn(M)).r),G=h(O.g,M.g),Y=h(O.b,M.b),rt=ke(O.opacity,M.opacity);return function(nt){return O.r=$(nt),O.g=G(nt),O.b=Y(nt),O.opacity=rt(nt),O+""}}return E.gamma=e,E}(1);function _e(e){return function(f){var h=f.length,E=new Array(h),O=new Array(h),M=new Array(h),$,G;for($=0;$h&&(M=f.slice(h,M),G[$]?G[$]+=M:G[++$]=M),(E=E[0])===(O=O[0])?G[$]?G[$]+=O:G[++$]=O:(G[++$]=null,Y.push({i:$,x:Qr(E,O)})),h=ge.lastIndex;return h=0&&(f=f.slice(0,h)),!f||f==="start"})}function Po(e,f,h){var E,O,M=Ro(f)?fe:Ur;return function(){var $=M(this,e),G=$.on;G!==E&&(O=(E=G).copy()).on(f,h),$.on=O}}function Co(e,f){var h=this._id;return arguments.length<2?Lr(this.node(),h).on.on(e):this.each(Po(h,e,f))}function No(e){return function(){var f=this.parentNode;for(var h in this.__transition)if(+h!==e)return;f&&f.removeChild(this)}}function Mo(){return this.on("end.remove",No(this._id))}function Do(e){var f=this._name,h=this._id;typeof e!="function"&&(e=n(e));for(var E=this._groups,O=E.length,M=new Array(O),$=0;${const cr=Xt.identifier;return Xt=pointer(Xt,wt),Xt.point0=Xt.slice(),Xt.identifier=cr,Xt});interrupt(wt);var Cn=nt(wt,arguments,!0).beforestart();if(Wt==="overlay"){fr&&(Ae=!0);const Xt=[Cr[0],Cr[1]||Cr[0]];Ar.selection=fr=[[ir=e===Qn?br:Ir(Xt[0][0],Xt[1][0]),yr=e===Jn?Zr:Ir(Xt[0][1],Xt[1][1])],[mr=e===Qn?kr:Or(Xt[0][0],Xt[1][0]),Sr=e===Jn?qr:Or(Xt[0][1],Xt[1][1])]],Cr.length>1&&en(mt)}else ir=fr[0][0],yr=fr[0][1],mr=fr[1][0],Sr=fr[1][1];gr=ir,pr=yr,xr=mr,Er=Sr;var ya=select(wt).attr("pointer-events","none"),Nn=ya.selectAll(".overlay").attr("cursor",zr[Wt]);if(mt.touches)Cn.moved=ma,Cn.ended=xa;else{var pa=select(mt.view).on("mousemove.brush",ma,!0).on("mouseup.brush",xa,!0);O&&pa.on("keydown.brush",js,!0).on("keyup.brush",ws,!0),dragDisable(mt.view)}rt.call(wt),Cn.start(mt,Bt.name);function ma(Xt){for(const cr of Xt.changedTouches||[Xt])for(const Mn of Cr)Mn.identifier===cr.identifier&&(Mn.cur=pointer(cr,wt));if(re&&!ne&&!ee&&Cr.length===1){const cr=Cr[0];aa(cr.cur[0]-cr[0])>aa(cr.cur[1]-cr[1])?ee=!0:ne=!0}for(const cr of Cr)cr.cur&&(cr[0]=cr.cur[0],cr[1]=cr.cur[1]);Ae=!0,noevent(Xt),en(Xt)}function en(Xt){const cr=Cr[0],Mn=cr.point0;var _r;switch(lr=cr[0]-Mn[0],vr=cr[1]-Mn[1],Bt){case ye:case ea:{qt&&(lr=Or(br-ir,Ir(kr-mr,lr)),gr=ir+lr,xr=mr+lr),tr&&(vr=Or(Zr-yr,Ir(qr-Sr,vr)),pr=yr+vr,Er=Sr+vr);break}case ln:{Cr[1]?(qt&&(gr=Or(br,Ir(kr,Cr[0][0])),xr=Or(br,Ir(kr,Cr[1][0])),qt=1),tr&&(pr=Or(Zr,Ir(qr,Cr[0][1])),Er=Or(Zr,Ir(qr,Cr[1][1])),tr=1)):(qt<0?(lr=Or(br-ir,Ir(kr-ir,lr)),gr=ir+lr,xr=mr):qt>0&&(lr=Or(br-mr,Ir(kr-mr,lr)),gr=ir,xr=mr+lr),tr<0?(vr=Or(Zr-yr,Ir(qr-yr,vr)),pr=yr+vr,Er=Sr):tr>0&&(vr=Or(Zr-Sr,Ir(qr-Sr,vr)),pr=yr,Er=Sr+vr));break}case vn:{qt&&(gr=Or(br,Ir(kr,ir-lr*qt)),xr=Or(br,Ir(kr,mr+lr*qt))),tr&&(pr=Or(Zr,Ir(qr,yr-vr*tr)),Er=Or(Zr,Ir(qr,Sr+vr*tr)));break}}xr0&&(ir=gr-lr),tr<0?Sr=Er-vr:tr>0&&(yr=pr-vr),Bt=ye,Nn.attr("cursor",zr.selection),en(Xt));break}default:return}noevent(Xt)}function ws(Xt){switch(Xt.keyCode){case 16:{re&&(ne=ee=re=!1,en(Xt));break}case 18:{Bt===vn&&(qt<0?mr=xr:qt>0&&(ir=gr),tr<0?Sr=Er:tr>0&&(yr=pr),Bt=ln,en(Xt));break}case 32:{Bt===ye&&(Xt.altKey?(qt&&(mr=xr-lr*qt,ir=gr+lr*qt),tr&&(Sr=Er-vr*tr,yr=pr+vr*tr),Bt=vn):(qt<0?mr=xr:qt>0&&(ir=gr),tr<0?Sr=Er:tr>0&&(yr=pr),Bt=ln),Nn.attr("cursor",zr[Wt]),en(Xt));break}default:return}noevent(Xt)}}function Gt(mt){nt(this,arguments).moved(mt)}function or(mt){nt(this,arguments).ended(mt)}function hr(){var mt=this.__brush||{selection:null};return mt.extent=pe(f.apply(this,arguments)),mt.dim=e,mt}return Y.extent=function(mt){return arguments.length?(f=typeof mt=="function"?mt:constant(pe(mt)),Y):f},Y.filter=function(mt){return arguments.length?(h=typeof mt=="function"?mt:constant(!!mt),Y):h},Y.touchable=function(mt){return arguments.length?(E=typeof mt=="function"?mt:constant(!!mt),Y):E},Y.handleSize=function(mt){return arguments.length?($=+mt,Y):$},Y.keyModifiers=function(mt){return arguments.length?(O=!!mt,Y):O},Y.on=function(){var mt=M.on.apply(M,arguments);return mt===M?Y:mt},Y}function ls(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function vs(e){const f=typeof(e==null?void 0:e.requestAnimationFrame)=="function"&&typeof(e==null?void 0:e.cancelAnimationFrame)=="function",h=typeof(e==null?void 0:e.requestIdleCallback)=="function"&&typeof(e==null?void 0:e.cancelIdleCallback)=="function",E=M=>setTimeout(M,1),O=M=>clearTimeout(M);return[f?e.requestAnimationFrame:E,f?e.cancelAnimationFrame:O,h?e.requestIdleCallback:E,h?e.cancelIdleCallback:O]}const Zn=ls(),cs=Zn==null?void 0:Zn.document,[Qs,Zs,ks,qs]=vs(Zn);var ds=Object.defineProperty,ua=Object.getOwnPropertySymbols,hs=Object.prototype.hasOwnProperty,gs=Object.prototype.propertyIsEnumerable,fa=(e,f,h)=>f in e?ds(e,f,{enumerable:!0,configurable:!0,writable:!0,value:h}):e[f]=h,la=(e,f)=>{for(var h in f||(f={}))hs.call(f,h)&&fa(e,h,f[h]);if(ua)for(var h of ua(f))gs.call(f,h)&&fa(e,h,f[h]);return e};const _s=e=>e||e===0,ys=e=>typeof e=="function",kn=e=>typeof e=="string",qn=e=>typeof e=="number",ps=e=>typeof e=="undefined",va=e=>typeof e!="undefined",ti=e=>typeof e=="boolean",ri=e=>Math.ceil(e/10)*10,ni=e=>Math.ceil(e)+.5,ei=e=>e[1]-e[0],Se=e=>typeof e=="object",ms=e=>ps(e)||e===null||kn(e)&&e.length===0||Se(e)&&!(e instanceof Date)&&Object.keys(e).length===0||qn(e)&&isNaN(e),xs=e=>!ms(e),Ee=e=>Array.isArray(e),_n=e=>e&&!(e!=null&&e.nodeType)&&Se(e)&&!Ee(e);function ai(e,f,h){return va(e[f])?e[f]:h}function oi(e,f){let h=!1;return Object.keys(e).forEach(E=>e[E]===f&&(h=!0)),h}function si(e,f,...h){const E=ys(e);return E&&e.call(f,...h),E}function ii(e,f){let h=0;const E=function(...O){!--h&&f.apply(this,...O)};"duration"in e?e.each(()=>++h).on("end",E):(++h,e.call(E))}function ui(e){return kn(e)?e.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):e}function fi(e,f,h=[-1,1],E=!1){if(!(!e||!kn(f)))if(f.indexOf(` `)===-1)e.text(f);else{const O=[e.text(),f].map(M=>M.replace(/[\s\n]/g,""));if(O[0]!==O[1]){const M=f.split(` -`),$=E?M.length-1:1;e.html(""),M.forEach((G,Y)=>{e.append("tspan").attr("x",0).attr("dy",`${Y===0?h[0]*$:h[1]}em`).text(G)})}}}function Ss(e){const{x:f,y:h,width:E,height:O}=e.getBBox();return[{x:f,y:h+O},{x:f,y:h},{x:f+E,y:h},{x:f+E,y:h+O}]}function li(e){const{width:f,height:h}=e.getBoundingClientRect(),E=Ss(e),O=E[0].x,M=Math.min(E[0].y,E[1].y);return{x:O,y:M,width:f,height:h}}function vi(e,f){var h;const E=e&&((h=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:h[0]);let O=[0,0];try{O=d3Pointer(E||e,f)}catch(M){}return O.map(M=>isNaN(M)?0:M)}function Es(e){const{event:f,$el:h}=e,E=h.subchart.main||h.main;let O;return f&&f.type==="brush"?O=f.selection:E&&(O=E.select(".bb-brush").node())&&(O=d3BrushSelection(O)),O}function ci(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function di(e=!0,f=0,h=1e4){const E=window.crypto||window.msCrypto,O=E?f+E.getRandomValues(new Uint32Array(1))[0]%(h-f+1):Math.floor(Math.random()*(h-f)+f);return e?String(O):O}function ca(e,f,h,E,O){if(h>E)return-1;const M=Math.floor((h+E)/2);let{x:$,w:G=0}=e[M];return O&&($=e[M].y,G=e[M].h),f>=$&&f<=$+G?M:f<$?ca(e,f,h,M-1,O):ca(e,f,M+1,E,O)}function hi(e){const f=Es(e);return f?f[0]===f[1]:!0}function gi(...e){const f=h=>{if(_n(h)&&h.constructor){const E=new h.constructor;for(const O in h)E[O]=f(h[O]);return E}return h};return e.map(h=>f(h)).reduce((h,E)=>la(la({},h),E))}function Os(e={},f){Ee(f)&&f.forEach(h=>Os(e,h));for(const h in f)/^\d+$/.test(h)||h in e||(e[h]=f[h]);return e}const yi=e=>e.charAt(0).toUpperCase()+e.slice(1);function pi(e,f="-"){return e.split(f).map((h,E)=>E?h.charAt(0).toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()).join("")}const Is=e=>[].slice.call(e);function mi(e,f,h){const{rootSelector:E="",sheet:O}=e,$=`${E} ${(G=>G.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(f)} {${h.join(";")}}`;return O[O.insertRule?"insertRule":"addRule"]($,O.cssRules.length)}function xi(e){let f=[];return e.forEach(h=>{var E;try{h.cssRules&&h.cssRules.length&&(f=f.concat(Is(h.cssRules)))}catch(O){(E=window.console)==null||E.warn(`Error while reading rules from ${h.href}: ${O.toString()}`)}}),f}function Si(e){var f,h,E,O;return{x:((h=(f=window.pageXOffset)!=null?f:window.scrollX)!=null?h:0)+e.scrollLeft,y:((O=(E=window.pageYOffset)!=null?E:window.scrollY)!=null?O:0)+e.scrollTop}}function Ei(e){const f=e?e.transform:null,h=f&&f.baseVal;return h&&h.numberOfItems?h.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Oi(e){const f=e[0]instanceof Date,h=(f?e.map(Number):e).filter((E,O,M)=>M.indexOf(E)===O);return f?h.map(E=>new Date(E)):h}function Ii(e){return e&&e.length?e.reduce((f,h)=>f.concat(h)):[]}function Oe(e,...f){if(!f.length||f.length===1&&!f[0])return e;const h=f.shift();return _n(e)&&_n(h)&&Object.keys(h).forEach(E=>{const O=h[E];_n(O)?(!e[E]&&(e[E]={}),e[E]=Oe(e[E],O)):e[E]=Ee(O)?O.concat():O}),Oe(e,...f)}function Ts(e,f=!0){let h;return e[0]instanceof Date?h=f?(E,O)=>E-O:(E,O)=>O-E:f&&!e.every(isNaN)?h=(E,O)=>E-O:f||(h=(E,O)=>E>O&&-1||Exs(E));return h.length?qn(h[0])?h=Math[e](...h):h[0]instanceof Date&&(h=Ts(h,e==="min")[0]):h=void 0,h}const Ai=(e,f,h=1)=>{const E=[],O=Math.max(0,Math.ceil((f-e)/h))|0;for(let M=e;M{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(f,h,E=e())=>{f.dispatchEvent(new MouseEvent(h,E))}}catch(f){return(h,E,O=e())=>{const M=cs.createEvent("MouseEvent");M.initMouseEvent(E,O.bubbles,O.cancelable,Zn,0,O.screenX,O.screenY,O.clientX,O.clientY,!1,!1,!1,!1,0,null),h.dispatchEvent(M)}}})(),touch:(e,f,h)=>{const E=new Touch(Oe({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},h));e.dispatchEvent(new TouchEvent(f,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[E],targetTouches:[],changedTouches:[E]}))}};function te(e,f){let h=e;for(const E in f)h=h.replace(new RegExp(`{=${E}}`,"g"),f[E]);return h}function Pi(e){var f;let h;if(e instanceof Date)h=e;else if(kn(e)){const{config:E,format:O}=this;h=(f=O.dataTime(E.data_xFormat)(e))!=null?f:new Date(e)}else qn(e)&&!isNaN(e)&&(h=new Date(+e));return(!h||isNaN(+h))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),h}function Ci(){var e,f;return((e=document)==null?void 0:e.hidden)===!1||((f=document)==null?void 0:f.visibilityState)==="visible"}function Ni(e,f){const{DocumentTouch:h,matchMedia:E,navigator:O}=window;let M=!1;if(f)if(O&&"maxTouchPoints"in O)M=O.maxTouchPoints>0;else if("ontouchmove"in window||h&&document instanceof h)M=!0;else if(E!=null&&E("(pointer:coarse)").matches)M=!0;else{const G=O.userAgent;M=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(G)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(G)}return e&&((E==null?void 0:E("any-hover:hover").matches)||(E==null?void 0:E("any-pointer:fine").matches))&&"mouse"||M&&"touch"||"mouse"}function As(e,f){f()===!1?requestAnimationFrame(()=>As(e,f)):e()}function Rs(e){const f=this.config;let h,E,O;const M=()=>{const $=E.shift();if($&&h&&Se(h)&&$ in h)return h=h[$],M();if(!$)return h};Object.keys(f).forEach($=>{h=e,E=$.split("_"),O=M(),va(O)&&(f[$]=O)}),this.api&&(this.state.orgConfig=e)}var Ps=Object.defineProperty,Cs=(e,f,h)=>f in e?Ps(e,f,{enumerable:!0,configurable:!0,writable:!0,value:h}):e[f]=h,Ie=(e,f,h)=>Cs(e,typeof f!="symbol"?f+"":f,h);class da{constructor(f={}){Ie(this,"$$"),Ie(this,"options"),this.options=f}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(f=>{this[f]=null,delete this[f]})}}Ie(da,"version","3.12.4-nightly-20240724004639");const cn={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview { +`),$=E?M.length-1:1;e.html(""),M.forEach((G,Y)=>{e.append("tspan").attr("x",0).attr("dy",`${Y===0?h[0]*$:h[1]}em`).text(G)})}}}function Ss(e){const{x:f,y:h,width:E,height:O}=e.getBBox();return[{x:f,y:h+O},{x:f,y:h},{x:f+E,y:h},{x:f+E,y:h+O}]}function li(e){const{width:f,height:h}=e.getBoundingClientRect(),E=Ss(e),O=E[0].x,M=Math.min(E[0].y,E[1].y);return{x:O,y:M,width:f,height:h}}function vi(e,f){var h;const E=e&&((h=e.touches||e.sourceEvent&&e.sourceEvent.touches)==null?void 0:h[0]);let O=[0,0];try{O=d3Pointer(E||e,f)}catch(M){}return O.map(M=>isNaN(M)?0:M)}function Es(e){const{event:f,$el:h}=e,E=h.subchart.main||h.main;let O;return f&&f.type==="brush"?O=f.selection:E&&(O=E.select(".bb-brush").node())&&(O=d3BrushSelection(O)),O}function ci(e){return!("rect"in e)||"rect"in e&&e.hasAttribute("width")&&e.rect.width!==+e.getAttribute("width")?e.rect=e.getBoundingClientRect():e.rect}function di(e=!0,f=0,h=1e4){const E=window.crypto||window.msCrypto,O=E?f+E.getRandomValues(new Uint32Array(1))[0]%(h-f+1):Math.floor(Math.random()*(h-f)+f);return e?String(O):O}function ca(e,f,h,E,O){if(h>E)return-1;const M=Math.floor((h+E)/2);let{x:$,w:G=0}=e[M];return O&&($=e[M].y,G=e[M].h),f>=$&&f<=$+G?M:f<$?ca(e,f,h,M-1,O):ca(e,f,M+1,E,O)}function hi(e){const f=Es(e);return f?f[0]===f[1]:!0}function gi(...e){const f=h=>{if(_n(h)&&h.constructor){const E=new h.constructor;for(const O in h)E[O]=f(h[O]);return E}return h};return e.map(h=>f(h)).reduce((h,E)=>la(la({},h),E))}function Os(e={},f){Ee(f)&&f.forEach(h=>Os(e,h));for(const h in f)/^\d+$/.test(h)||h in e||(e[h]=f[h]);return e}const yi=e=>e.charAt(0).toUpperCase()+e.slice(1);function pi(e,f="-"){return e.split(f).map((h,E)=>E?h.charAt(0).toUpperCase()+h.slice(1).toLowerCase():h.toLowerCase()).join("")}const Is=e=>[].slice.call(e);function mi(e,f,h){const{rootSelector:E="",sheet:O}=e,$=`${E} ${(G=>G.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(f)} {${h.join(";")}}`;return O[O.insertRule?"insertRule":"addRule"]($,O.cssRules.length)}function xi(e){let f=[];return e.forEach(h=>{var E;try{h.cssRules&&h.cssRules.length&&(f=f.concat(Is(h.cssRules)))}catch(O){(E=window.console)==null||E.warn(`Error while reading rules from ${h.href}: ${O.toString()}`)}}),f}function Si(e){var f,h,E,O;return{x:((h=(f=window.pageXOffset)!=null?f:window.scrollX)!=null?h:0)+e.scrollLeft,y:((O=(E=window.pageYOffset)!=null?E:window.scrollY)!=null?O:0)+e.scrollTop}}function Ei(e){const f=e?e.transform:null,h=f&&f.baseVal;return h&&h.numberOfItems?h.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Oi(e){const f=e[0]instanceof Date,h=(f?e.map(Number):e).filter((E,O,M)=>M.indexOf(E)===O);return f?h.map(E=>new Date(E)):h}function Ii(e){return e&&e.length?e.reduce((f,h)=>f.concat(h)):[]}function Oe(e,...f){if(!f.length||f.length===1&&!f[0])return e;const h=f.shift();return _n(e)&&_n(h)&&Object.keys(h).forEach(E=>{const O=h[E];_n(O)?(!e[E]&&(e[E]={}),e[E]=Oe(e[E],O)):e[E]=Ee(O)?O.concat():O}),Oe(e,...f)}function Ts(e,f=!0){let h;return e[0]instanceof Date?h=f?(E,O)=>E-O:(E,O)=>O-E:f&&!e.every(isNaN)?h=(E,O)=>E-O:f||(h=(E,O)=>E>O&&-1||Exs(E));return h.length?qn(h[0])?h=Math[e](...h):h[0]instanceof Date&&(h=Ts(h,e==="min")[0]):h=void 0,h}const Ai=(e,f,h=1)=>{const E=[],O=Math.max(0,Math.ceil((f-e)/h))|0;for(let M=e;M{const e=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(f,h,E=e())=>{f.dispatchEvent(new MouseEvent(h,E))}}catch(f){return(h,E,O=e())=>{const M=cs.createEvent("MouseEvent");M.initMouseEvent(E,O.bubbles,O.cancelable,Zn,0,O.screenX,O.screenY,O.clientX,O.clientY,!1,!1,!1,!1,0,null),h.dispatchEvent(M)}}})(),touch:(e,f,h)=>{const E=new Touch(Oe({identifier:Date.now(),target:e,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},h));e.dispatchEvent(new TouchEvent(f,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[E],targetTouches:[],changedTouches:[E]}))}};function te(e,f){let h=e;for(const E in f)h=h.replace(new RegExp(`{=${E}}`,"g"),f[E]);return h}function Pi(e){var f;let h;if(e instanceof Date)h=e;else if(kn(e)){const{config:E,format:O}=this;h=(f=O.dataTime(E.data_xFormat)(e))!=null?f:new Date(e)}else qn(e)&&!isNaN(e)&&(h=new Date(+e));return(!h||isNaN(+h))&&console&&console.error&&console.error(`Failed to parse x '${e}' to Date object`),h}function Ci(){var e,f;return((e=document)==null?void 0:e.hidden)===!1||((f=document)==null?void 0:f.visibilityState)==="visible"}function Ni(e,f){const{DocumentTouch:h,matchMedia:E,navigator:O}=window;let M=!1;if(f)if(O&&"maxTouchPoints"in O)M=O.maxTouchPoints>0;else if("ontouchmove"in window||h&&document instanceof h)M=!0;else if(E!=null&&E("(pointer:coarse)").matches)M=!0;else{const G=O.userAgent;M=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(G)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(G)}return e&&((E==null?void 0:E("any-hover:hover").matches)||(E==null?void 0:E("any-pointer:fine").matches))&&"mouse"||M&&"touch"||"mouse"}function As(e,f){f()===!1?requestAnimationFrame(()=>As(e,f)):e()}function Rs(e){const f=this.config;let h,E,O;const M=()=>{const $=E.shift();if($&&h&&Se(h)&&$ in h)return h=h[$],M();if(!$)return h};Object.keys(f).forEach($=>{h=e,E=$.split("_"),O=M(),va(O)&&(f[$]=O)}),this.api&&(this.state.orgConfig=e)}var Ps=Object.defineProperty,Cs=(e,f,h)=>f in e?Ps(e,f,{enumerable:!0,configurable:!0,writable:!0,value:h}):e[f]=h,Ie=(e,f,h)=>Cs(e,typeof f!="symbol"?f+"":f,h);class da{constructor(f={}){Ie(this,"$$"),Ie(this,"options"),this.options=f}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(f=>{this[f]=null,delete this[f]})}}Ie(da,"version","3.12.4-nightly-20240726004631");const cn={id:"__tableview-style__",class:"bb-tableview",rule:`.bb-tableview { border-collapse:collapse; border-spacing:0; background:#fff; diff --git a/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js b/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js index ae4d9dfe1..1175e2b5a 100644 --- a/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js +++ b/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.js @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */ @@ -26185,7 +26185,7 @@ class Plugin { }); } } -__publicField(Plugin, "version", "3.12.4-nightly-20240724004639"); +__publicField(Plugin, "version", "3.12.4-nightly-20240726004631"); ;// CONCATENATED MODULE: ./src/Plugin/textoverlap/Options.ts class Options { diff --git a/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js b/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js index 0b9d412ed..2389ffe37 100644 --- a/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js +++ b/dist/plugin/pkgd/billboardjs-plugin-textoverlap.pkgd.min.js @@ -5,12 +5,12 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 * @requires billboard.js * @summary billboard.js plugin */(function(Sn,sn){typeof exports=="object"&&typeof module=="object"?module.exports=sn():typeof define=="function"&&define.amd?define("bb",[],sn):typeof exports=="object"?exports.bb=sn():(Sn.bb=Sn.bb||{},Sn.bb.plugin=Sn.bb.plugin||{},Sn.bb.plugin["textoverlap.pkgd"]=sn())})(this,function(){return function(){"use strict";var ia={65908:function(l,p,t){t.d(p,{default:function(){return Kl}});const n=11102230246251565e-32,e=134217729,o=(3+8*n)*n;function i(r,a,s,d,h){let m,x,O,P,R=a[0],C=d[0],B=0,L=0;C>R==C>-R?(m=R,R=a[++B]):(m=C,C=d[++L]);let F=0;if(BR==C>-R?(x=R+m,O=m-(x-R),R=a[++B]):(x=C+m,O=m-(x-C),C=d[++L]),m=x,O!==0&&(h[F++]=O);BR==C>-R?(x=m+R,P=x-m,O=m-(x-P)+(R-P),R=a[++B]):(x=m+C,P=x-m,O=m-(x-P)+(C-P),C=d[++L]),m=x,O!==0&&(h[F++]=O);for(;B=V||-Gt>=V||(B=r-ft,O=r-(ft+B)+(B-h),B=s-It,R=s-(It+B)+(B-h),B=a-Nt,P=a-(Nt+B)+(B-m),B=d-Dt,C=d-(Dt+B)+(B-m),O===0&&P===0&&R===0&&C===0)||(V=E*x+o*Math.abs(Gt),Gt+=ft*C+Dt*O-(Nt*R+It*P),Gt>=V||-Gt>=V))return Gt;lt=O*Dt,L=e*O,F=L-(L-O),Z=O-F,L=e*Dt,b=L-(L-Dt),j=Dt-b,nt=Z*j-(lt-F*b-Z*b-F*j),xt=P*It,L=e*P,F=L-(L-P),Z=P-F,L=e*It,b=L-(L-It),j=It-b,it=Z*j-(xt-F*b-Z*b-F*j),H=nt-it,B=nt-H,D[0]=nt-(H+B)+(B-it),Q=lt+H,B=Q-lt,J=lt-(Q-B)+(H-B),H=J-xt,B=J-H,D[1]=J-(H+B)+(B-xt),vt=Q+H,B=vt-Q,D[2]=Q-(vt-B)+(H-B),D[3]=vt;const tt=i(4,I,4,D,A);lt=ft*C,L=e*ft,F=L-(L-ft),Z=ft-F,L=e*C,b=L-(L-C),j=C-b,nt=Z*j-(lt-F*b-Z*b-F*j),xt=Nt*R,L=e*Nt,F=L-(L-Nt),Z=Nt-F,L=e*R,b=L-(L-R),j=R-b,it=Z*j-(xt-F*b-Z*b-F*j),H=nt-it,B=nt-H,D[0]=nt-(H+B)+(B-it),Q=lt+H,B=Q-lt,J=lt-(Q-B)+(H-B),H=J-xt,B=J-H,D[1]=J-(H+B)+(B-xt),vt=Q+H,B=vt-Q,D[2]=Q-(vt-B)+(H-B),D[3]=vt;const _=i(tt,A,4,D,T);lt=O*C,L=e*O,F=L-(L-O),Z=O-F,L=e*C,b=L-(L-C),j=C-b,nt=Z*j-(lt-F*b-Z*b-F*j),xt=P*R,L=e*P,F=L-(L-P),Z=P-F,L=e*R,b=L-(L-R),j=R-b,it=Z*j-(xt-F*b-Z*b-F*j),H=nt-it,B=nt-H,D[0]=nt-(H+B)+(B-it),Q=lt+H,B=Q-lt,J=lt-(Q-B)+(H-B),H=J-xt,B=J-H,D[1]=J-(H+B)+(B-xt),vt=Q+H,B=vt-Q,D[2]=Q-(vt-B)+(H-B),D[3]=vt;const dt=i(_,T,4,D,M);return M[dt-1]}function U(r,a,s,d,h,m){const x=(a-m)*(s-h),O=(r-h)*(d-m),P=x-O,R=Math.abs(x+O);return Math.abs(P)>=y*R?P:-$(r,a,s,d,h,m,R)}function G(r,a,s,d,h,m){return(a-m)*(s-h)-(r-h)*(d-m)}const N=(7+56*n)*n,w=(3+28*n)*n,W=(26+288*n)*n*n,X=v(4),Y=v(4),k=v(4),st=v(4),ut=v(4),rt=v(4),at=v(4),ot=v(4),pt=v(4),Ct=v(8),St=v(8),$t=v(8),Rt=v(4),Qt=v(8),Yt=v(8),Xt=v(8),er=v(12);let ir=v(192),Or=v(192);function yr(r,a,s){r=sum(r,ir,a,s,Or);const d=ir;return ir=Or,Or=d,r}function xr(r,a,s,d,h,m,x,O){let P,R,C,B,L,F,Z,b,j,H,Q,J,lt,nt,xt,it;return r===0?a===0?(x[0]=0,O[0]=0,1):(it=-a,Q=it*s,R=splitter*it,C=R-(R-it),B=it-C,R=splitter*s,L=R-(R-s),F=s-L,x[0]=B*F-(Q-C*L-B*L-C*F),x[1]=Q,Q=a*h,R=splitter*a,C=R-(R-a),B=a-C,R=splitter*h,L=R-(R-h),F=h-L,O[0]=B*F-(Q-C*L-B*L-C*F),O[1]=Q,2):a===0?(Q=r*d,R=splitter*r,C=R-(R-r),B=r-C,R=splitter*d,L=R-(R-d),F=d-L,x[0]=B*F-(Q-C*L-B*L-C*F),x[1]=Q,it=-r,Q=it*m,R=splitter*it,C=R-(R-it),B=it-C,R=splitter*m,L=R-(R-m),F=m-L,O[0]=B*F-(Q-C*L-B*L-C*F),O[1]=Q,2):(Q=r*d,R=splitter*r,C=R-(R-r),B=r-C,R=splitter*d,L=R-(R-d),F=d-L,J=B*F-(Q-C*L-B*L-C*F),lt=a*s,R=splitter*a,C=R-(R-a),B=a-C,R=splitter*s,L=R-(R-s),F=s-L,nt=B*F-(lt-C*L-B*L-C*F),Z=J-nt,P=J-Z,x[0]=J-(Z+P)+(P-nt),b=Q+Z,P=b-Q,H=Q-(b-P)+(Z-P),Z=H-lt,P=H-Z,x[1]=H-(Z+P)+(P-lt),xt=b+Z,P=xt-b,x[2]=b-(xt-P)+(Z-P),x[3]=xt,Q=a*h,R=splitter*a,C=R-(R-a),B=a-C,R=splitter*h,L=R-(R-h),F=h-L,J=B*F-(Q-C*L-B*L-C*F),lt=r*m,R=splitter*r,C=R-(R-r),B=r-C,R=splitter*m,L=R-(R-m),F=m-L,nt=B*F-(lt-C*L-B*L-C*F),Z=J-nt,P=J-Z,O[0]=J-(Z+P)+(P-nt),b=Q+Z,P=b-Q,H=Q-(b-P)+(Z-P),Z=H-lt,P=H-Z,O[1]=H-(Z+P)+(P-lt),xt=b+Z,P=xt-b,O[2]=b-(xt-P)+(Z-P),O[3]=xt,4)}function Kt(r,a,s,d,h){let m,x,O,P,R,C,B,L,F,Z,b,j,H;return b=a*s,x=splitter*a,O=x-(x-a),P=a-O,x=splitter*s,R=x-(x-s),C=s-R,j=P*C-(b-O*R-P*R-O*C),x=splitter*d,R=x-(x-d),C=d-R,B=j*d,x=splitter*j,O=x-(x-j),P=j-O,Rt[0]=P*C-(B-O*R-P*R-O*C),L=b*d,x=splitter*b,O=x-(x-b),P=b-O,Z=P*C-(L-O*R-P*R-O*C),F=B+Z,m=F-B,Rt[1]=B-(F-m)+(Z-m),H=L+F,Rt[2]=F-(H-L),Rt[3]=H,r=yr(r,4,Rt),h!==0&&(x=splitter*h,R=x-(x-h),C=h-R,B=j*h,x=splitter*j,O=x-(x-j),P=j-O,Rt[0]=P*C-(B-O*R-P*R-O*C),L=b*h,x=splitter*b,O=x-(x-b),P=b-O,Z=P*C-(L-O*R-P*R-O*C),F=B+Z,m=F-B,Rt[1]=B-(F-m)+(Z-m),H=L+F,Rt[2]=F-(H-L),Rt[3]=H,r=yr(r,4,Rt)),r}function _t(r,a,s,d,h,m,x,O,P,R,C,B,L){let F,Z,b,j,H,Q,J,lt,nt,xt,it,vt,ft,It,Nt,Dt,Gt,V,tt,_,dt,K,et,z,ct;const yt=r-R,Pt=d-R,Ot=x-R,Lt=a-C,zt=h-C,Ft=O-C,tr=s-B,nr=m-B,or=P-B;dt=Pt*Ft,vt=splitter*Pt,ft=vt-(vt-Pt),It=Pt-ft,vt=splitter*Ft,Nt=vt-(vt-Ft),Dt=Ft-Nt,K=It*Dt-(dt-ft*Nt-It*Nt-ft*Dt),et=Ot*zt,vt=splitter*Ot,ft=vt-(vt-Ot),It=Ot-ft,vt=splitter*zt,Nt=vt-(vt-zt),Dt=zt-Nt,z=It*Dt-(et-ft*Nt-It*Nt-ft*Dt),Gt=K-z,it=K-Gt,X[0]=K-(Gt+it)+(it-z),V=dt+Gt,it=V-dt,_=dt-(V-it)+(Gt-it),Gt=_-et,it=_-Gt,X[1]=_-(Gt+it)+(it-et),ct=V+Gt,it=ct-V,X[2]=V-(ct-it)+(Gt-it),X[3]=ct,dt=Ot*Lt,vt=splitter*Ot,ft=vt-(vt-Ot),It=Ot-ft,vt=splitter*Lt,Nt=vt-(vt-Lt),Dt=Lt-Nt,K=It*Dt-(dt-ft*Nt-It*Nt-ft*Dt),et=yt*Ft,vt=splitter*yt,ft=vt-(vt-yt),It=yt-ft,vt=splitter*Ft,Nt=vt-(vt-Ft),Dt=Ft-Nt,z=It*Dt-(et-ft*Nt-It*Nt-ft*Dt),Gt=K-z,it=K-Gt,Y[0]=K-(Gt+it)+(it-z),V=dt+Gt,it=V-dt,_=dt-(V-it)+(Gt-it),Gt=_-et,it=_-Gt,Y[1]=_-(Gt+it)+(it-et),ct=V+Gt,it=ct-V,Y[2]=V-(ct-it)+(Gt-it),Y[3]=ct,dt=yt*zt,vt=splitter*yt,ft=vt-(vt-yt),It=yt-ft,vt=splitter*zt,Nt=vt-(vt-zt),Dt=zt-Nt,K=It*Dt-(dt-ft*Nt-It*Nt-ft*Dt),et=Pt*Lt,vt=splitter*Pt,ft=vt-(vt-Pt),It=Pt-ft,vt=splitter*Lt,Nt=vt-(vt-Lt),Dt=Lt-Nt,z=It*Dt-(et-ft*Nt-It*Nt-ft*Dt),Gt=K-z,it=K-Gt,k[0]=K-(Gt+it)+(it-z),V=dt+Gt,it=V-dt,_=dt-(V-it)+(Gt-it),Gt=_-et,it=_-Gt,k[1]=_-(Gt+it)+(it-et),ct=V+Gt,it=ct-V,k[2]=V-(ct-it)+(Gt-it),k[3]=ct,F=sum(sum(scale(4,X,tr,Qt),Qt,scale(4,Y,nr,Yt),Yt,Xt),Xt,scale(4,k,or,Qt),Qt,ir);let sr=estimate(F,ir),ur=w*L;if(sr>=ur||-sr>=ur||(it=r-yt,Z=r-(yt+it)+(it-R),it=d-Pt,b=d-(Pt+it)+(it-R),it=x-Ot,j=x-(Ot+it)+(it-R),it=a-Lt,H=a-(Lt+it)+(it-C),it=h-zt,Q=h-(zt+it)+(it-C),it=O-Ft,J=O-(Ft+it)+(it-C),it=s-tr,lt=s-(tr+it)+(it-B),it=m-nr,nt=m-(nr+it)+(it-B),it=P-or,xt=P-(or+it)+(it-B),Z===0&&b===0&&j===0&&H===0&&Q===0&&J===0&<===0&&nt===0&&xt===0)||(ur=W*L+resulterrbound*Math.abs(sr),sr+=tr*(Pt*J+Ft*b-(zt*j+Ot*Q))+lt*(Pt*Ft-zt*Ot)+nr*(Ot*H+Lt*j-(Ft*Z+yt*J))+nt*(Ot*Lt-Ft*yt)+or*(yt*Q+zt*Z-(Lt*b+Pt*H))+xt*(yt*zt-Lt*Pt),sr>=ur||-sr>=ur))return sr;const lr=xr(Z,H,Pt,zt,Ot,Ft,st,ut),Nr=xr(b,Q,Ot,Ft,yt,Lt,rt,at),br=xr(j,J,yt,Lt,Pt,zt,ot,pt),Rr=sum(Nr,rt,br,pt,Ct);F=yr(F,scale(Rr,Ct,tr,Xt),Xt);const Zt=sum(br,ot,lr,ut,St);F=yr(F,scale(Zt,St,nr,Xt),Xt);const Mr=sum(lr,st,Nr,at,$t);return F=yr(F,scale(Mr,$t,or,Xt),Xt),lt!==0&&(F=yr(F,scale(4,X,lt,er),er),F=yr(F,scale(Rr,Ct,lt,Xt),Xt)),nt!==0&&(F=yr(F,scale(4,Y,nt,er),er),F=yr(F,scale(Zt,St,nt,Xt),Xt)),xt!==0&&(F=yr(F,scale(4,k,xt,er),er),F=yr(F,scale(Mr,$t,xt,Xt),Xt)),Z!==0&&(Q!==0&&(F=Kt(F,Z,Q,or,xt)),J!==0&&(F=Kt(F,-Z,J,nr,nt))),b!==0&&(J!==0&&(F=Kt(F,b,J,tr,lt)),H!==0&&(F=Kt(F,-b,H,or,xt))),j!==0&&(H!==0&&(F=Kt(F,j,H,nr,nt)),Q!==0&&(F=Kt(F,-j,Q,tr,lt))),ir[F-1]}function hr(r,a,s,d,h,m,x,O,P,R,C,B){const L=r-R,F=d-R,Z=x-R,b=a-C,j=h-C,H=O-C,Q=s-B,J=m-B,lt=P-B,nt=F*H,xt=Z*j,it=Z*b,vt=L*H,ft=L*j,It=F*b,Nt=Q*(nt-xt)+J*(it-vt)+lt*(ft-It),Dt=(Math.abs(nt)+Math.abs(xt))*Math.abs(Q)+(Math.abs(it)+Math.abs(vt))*Math.abs(J)+(Math.abs(ft)+Math.abs(It))*Math.abs(lt),Gt=N*Dt;return Nt>Gt||-Nt>Gt?Nt:_t(r,a,s,d,h,m,x,O,P,R,C,B,Dt)}function Sr(r,a,s,d,h,m,x,O,P,R,C,B){const L=r-R,F=d-R,Z=x-R,b=a-C,j=h-C,H=O-C,Q=s-B,J=m-B,lt=P-B;return L*(j*lt-J*H)+F*(H*Q-lt*b)+Z*(b*J-Q*j)}const mr=(10+96*n)*n,Ir=(4+48*n)*n,Fr=(44+576*n)*n*n,Dr=v(4),Pr=v(4),gr=v(4),Cr=v(4),Er=v(4),pr=v(4),Ut=v(4),Vt=v(4),bt=v(8),fr=v(8),cr=v(8),rr=v(8),qt=v(8),$r=v(8),Br=v(8),Et=v(8),Bt=v(8),wt=v(4),gt=v(4),Tt=v(4),q=v(8),At=v(16),Jt=v(16),kt=v(16),ar=v(32),Tr=v(32),dr=v(48),Lr=v(64);let on=v(1152),En=v(1152);function Ur(r,a,s){r=sum(r,on,a,s,En);const d=on;return on=En,En=d,r}function Vn(r,a,s,d,h,m,x,O,P){let R,C,B,L,F,Z,b,j,H,Q,J,lt,nt,xt,it,vt,ft,It,Nt,Dt,Gt,V,tt,_,dt,K,et,z,ct,yt,Pt,Ot,Lt,zt,Ft;const tr=r-x,nr=s-x,or=h-x,sr=a-O,ur=d-O,lr=m-O;Pt=nr*lr,tt=splitter*nr,_=tt-(tt-nr),dt=nr-_,tt=splitter*lr,K=tt-(tt-lr),et=lr-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=or*ur,tt=splitter*or,_=tt-(tt-or),dt=or-_,tt=splitter*ur,K=tt-(tt-ur),et=ur-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot-zt,V=Ot-z,Dr[0]=Ot-(z+V)+(V-zt),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt-Lt,V=yt-z,Dr[1]=yt-(z+V)+(V-Lt),Ft=ct+z,V=Ft-ct,Dr[2]=ct-(Ft-V)+(z-V),Dr[3]=Ft,Pt=or*sr,tt=splitter*or,_=tt-(tt-or),dt=or-_,tt=splitter*sr,K=tt-(tt-sr),et=sr-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=tr*lr,tt=splitter*tr,_=tt-(tt-tr),dt=tr-_,tt=splitter*lr,K=tt-(tt-lr),et=lr-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot-zt,V=Ot-z,Pr[0]=Ot-(z+V)+(V-zt),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt-Lt,V=yt-z,Pr[1]=yt-(z+V)+(V-Lt),Ft=ct+z,V=Ft-ct,Pr[2]=ct-(Ft-V)+(z-V),Pr[3]=Ft,Pt=tr*ur,tt=splitter*tr,_=tt-(tt-tr),dt=tr-_,tt=splitter*ur,K=tt-(tt-ur),et=ur-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=nr*sr,tt=splitter*nr,_=tt-(tt-nr),dt=nr-_,tt=splitter*sr,K=tt-(tt-sr),et=sr-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot-zt,V=Ot-z,gr[0]=Ot-(z+V)+(V-zt),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt-Lt,V=yt-z,gr[1]=yt-(z+V)+(V-Lt),Ft=ct+z,V=Ft-ct,gr[2]=ct-(Ft-V)+(z-V),gr[3]=Ft,R=sum(sum(sum(scale(scale(4,Dr,tr,q),q,tr,At),At,scale(scale(4,Dr,sr,q),q,sr,Jt),Jt,ar),ar,sum(scale(scale(4,Pr,nr,q),q,nr,At),At,scale(scale(4,Pr,ur,q),q,ur,Jt),Jt,Tr),Tr,Lr),Lr,sum(scale(scale(4,gr,or,q),q,or,At),At,scale(scale(4,gr,lr,q),q,lr,Jt),Jt,ar),ar,on);let Nr=estimate(R,on),br=Ir*P;if(Nr>=br||-Nr>=br||(V=r-tr,C=r-(tr+V)+(V-x),V=a-sr,F=a-(sr+V)+(V-O),V=s-nr,B=s-(nr+V)+(V-x),V=d-ur,Z=d-(ur+V)+(V-O),V=h-or,L=h-(or+V)+(V-x),V=m-lr,b=m-(lr+V)+(V-O),C===0&&B===0&&L===0&&F===0&&Z===0&&b===0)||(br=Fr*P+resulterrbound*Math.abs(Nr),Nr+=(tr*tr+sr*sr)*(nr*b+lr*B-(ur*L+or*Z))+2*(tr*C+sr*F)*(nr*lr-ur*or)+((nr*nr+ur*ur)*(or*F+sr*L-(lr*C+tr*b))+2*(nr*B+ur*Z)*(or*sr-lr*tr))+((or*or+lr*lr)*(tr*Z+ur*C-(sr*B+nr*F))+2*(or*L+lr*b)*(tr*ur-sr*nr)),Nr>=br||-Nr>=br))return Nr;if((B!==0||Z!==0||L!==0||b!==0)&&(Pt=tr*tr,tt=splitter*tr,_=tt-(tt-tr),dt=tr-_,Ot=dt*dt-(Pt-_*_-(_+_)*dt),Lt=sr*sr,tt=splitter*sr,_=tt-(tt-sr),dt=sr-_,zt=dt*dt-(Lt-_*_-(_+_)*dt),z=Ot+zt,V=z-Ot,Cr[0]=Ot-(z-V)+(zt-V),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt+Lt,V=z-yt,Cr[1]=yt-(z-V)+(Lt-V),Ft=ct+z,V=Ft-ct,Cr[2]=ct-(Ft-V)+(z-V),Cr[3]=Ft),(L!==0||b!==0||C!==0||F!==0)&&(Pt=nr*nr,tt=splitter*nr,_=tt-(tt-nr),dt=nr-_,Ot=dt*dt-(Pt-_*_-(_+_)*dt),Lt=ur*ur,tt=splitter*ur,_=tt-(tt-ur),dt=ur-_,zt=dt*dt-(Lt-_*_-(_+_)*dt),z=Ot+zt,V=z-Ot,Er[0]=Ot-(z-V)+(zt-V),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt+Lt,V=z-yt,Er[1]=yt-(z-V)+(Lt-V),Ft=ct+z,V=Ft-ct,Er[2]=ct-(Ft-V)+(z-V),Er[3]=Ft),(C!==0||F!==0||B!==0||Z!==0)&&(Pt=or*or,tt=splitter*or,_=tt-(tt-or),dt=or-_,Ot=dt*dt-(Pt-_*_-(_+_)*dt),Lt=lr*lr,tt=splitter*lr,_=tt-(tt-lr),dt=lr-_,zt=dt*dt-(Lt-_*_-(_+_)*dt),z=Ot+zt,V=z-Ot,pr[0]=Ot-(z-V)+(zt-V),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt+Lt,V=z-yt,pr[1]=yt-(z-V)+(Lt-V),Ft=ct+z,V=Ft-ct,pr[2]=ct-(Ft-V)+(z-V),pr[3]=Ft),C!==0&&(j=scale(4,Dr,C,bt),R=Ur(R,sum_three(scale(j,bt,2*tr,At),At,scale(scale(4,pr,C,q),q,ur,Jt),Jt,scale(scale(4,Er,C,q),q,-lr,kt),kt,ar,dr),dr)),F!==0&&(H=scale(4,Dr,F,fr),R=Ur(R,sum_three(scale(H,fr,2*sr,At),At,scale(scale(4,Er,F,q),q,or,Jt),Jt,scale(scale(4,pr,F,q),q,-nr,kt),kt,ar,dr),dr)),B!==0&&(Q=scale(4,Pr,B,cr),R=Ur(R,sum_three(scale(Q,cr,2*nr,At),At,scale(scale(4,Cr,B,q),q,lr,Jt),Jt,scale(scale(4,pr,B,q),q,-sr,kt),kt,ar,dr),dr)),Z!==0&&(J=scale(4,Pr,Z,rr),R=Ur(R,sum_three(scale(J,rr,2*ur,At),At,scale(scale(4,pr,Z,q),q,tr,Jt),Jt,scale(scale(4,Cr,Z,q),q,-or,kt),kt,ar,dr),dr)),L!==0&&(lt=scale(4,gr,L,qt),R=Ur(R,sum_three(scale(lt,qt,2*or,At),At,scale(scale(4,Er,L,q),q,sr,Jt),Jt,scale(scale(4,Cr,L,q),q,-ur,kt),kt,ar,dr),dr)),b!==0&&(nt=scale(4,gr,b,$r),R=Ur(R,sum_three(scale(nt,$r,2*lr,At),At,scale(scale(4,Cr,b,q),q,nr,Jt),Jt,scale(scale(4,Er,b,q),q,-tr,kt),kt,ar,dr),dr)),C!==0||F!==0){if(B!==0||Z!==0||L!==0||b!==0?(Pt=B*lr,tt=splitter*B,_=tt-(tt-B),dt=B-_,tt=splitter*lr,K=tt-(tt-lr),et=lr-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=nr*b,tt=splitter*nr,_=tt-(tt-nr),dt=nr-_,tt=splitter*b,K=tt-(tt-b),et=b-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot+zt,V=z-Ot,Ut[0]=Ot-(z-V)+(zt-V),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt+Lt,V=z-yt,Ut[1]=yt-(z-V)+(Lt-V),Ft=ct+z,V=Ft-ct,Ut[2]=ct-(Ft-V)+(z-V),Ut[3]=Ft,Pt=L*-ur,tt=splitter*L,_=tt-(tt-L),dt=L-_,tt=splitter*-ur,K=tt-(tt- -ur),et=-ur-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=or*-Z,tt=splitter*or,_=tt-(tt-or),dt=or-_,tt=splitter*-Z,K=tt-(tt- -Z),et=-Z-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot+zt,V=z-Ot,Vt[0]=Ot-(z-V)+(zt-V),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt+Lt,V=z-yt,Vt[1]=yt-(z-V)+(Lt-V),Ft=ct+z,V=Ft-ct,Vt[2]=ct-(Ft-V)+(z-V),Vt[3]=Ft,it=sum(4,Ut,4,Vt,Et),Pt=B*b,tt=splitter*B,_=tt-(tt-B),dt=B-_,tt=splitter*b,K=tt-(tt-b),et=b-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=L*Z,tt=splitter*L,_=tt-(tt-L),dt=L-_,tt=splitter*Z,K=tt-(tt-Z),et=Z-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot-zt,V=Ot-z,gt[0]=Ot-(z+V)+(V-zt),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt-Lt,V=yt-z,gt[1]=yt-(z+V)+(V-Lt),Ft=ct+z,V=Ft-ct,gt[2]=ct-(Ft-V)+(z-V),gt[3]=Ft,It=4):(Et[0]=0,it=1,gt[0]=0,It=1),C!==0){const Rr=scale(it,Et,C,kt);R=Ur(R,sum(scale(j,bt,C,At),At,scale(Rr,kt,2*tr,ar),ar,dr),dr);const Zt=scale(It,gt,C,q);R=Ur(R,sum_three(scale(Zt,q,2*tr,At),At,scale(Zt,q,C,Jt),Jt,scale(Rr,kt,C,ar),ar,Tr,Lr),Lr),Z!==0&&(R=Ur(R,scale(scale(4,pr,C,q),q,Z,At),At)),b!==0&&(R=Ur(R,scale(scale(4,Er,-C,q),q,b,At),At))}if(F!==0){const Rr=scale(it,Et,F,kt);R=Ur(R,sum(scale(H,fr,F,At),At,scale(Rr,kt,2*sr,ar),ar,dr),dr);const Zt=scale(It,gt,F,q);R=Ur(R,sum_three(scale(Zt,q,2*sr,At),At,scale(Zt,q,F,Jt),Jt,scale(Rr,kt,F,ar),ar,Tr,Lr),Lr)}}if(B!==0||Z!==0){if(L!==0||b!==0||C!==0||F!==0?(Pt=L*sr,tt=splitter*L,_=tt-(tt-L),dt=L-_,tt=splitter*sr,K=tt-(tt-sr),et=sr-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=or*F,tt=splitter*or,_=tt-(tt-or),dt=or-_,tt=splitter*F,K=tt-(tt-F),et=F-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot+zt,V=z-Ot,Ut[0]=Ot-(z-V)+(zt-V),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt+Lt,V=z-yt,Ut[1]=yt-(z-V)+(Lt-V),Ft=ct+z,V=Ft-ct,Ut[2]=ct-(Ft-V)+(z-V),Ut[3]=Ft,Dt=-lr,Gt=-b,Pt=C*Dt,tt=splitter*C,_=tt-(tt-C),dt=C-_,tt=splitter*Dt,K=tt-(tt-Dt),et=Dt-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=tr*Gt,tt=splitter*tr,_=tt-(tt-tr),dt=tr-_,tt=splitter*Gt,K=tt-(tt-Gt),et=Gt-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot+zt,V=z-Ot,Vt[0]=Ot-(z-V)+(zt-V),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt+Lt,V=z-yt,Vt[1]=yt-(z-V)+(Lt-V),Ft=ct+z,V=Ft-ct,Vt[2]=ct-(Ft-V)+(z-V),Vt[3]=Ft,vt=sum(4,Ut,4,Vt,Bt),Pt=L*F,tt=splitter*L,_=tt-(tt-L),dt=L-_,tt=splitter*F,K=tt-(tt-F),et=F-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=C*b,tt=splitter*C,_=tt-(tt-C),dt=C-_,tt=splitter*b,K=tt-(tt-b),et=b-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot-zt,V=Ot-z,Tt[0]=Ot-(z+V)+(V-zt),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt-Lt,V=yt-z,Tt[1]=yt-(z+V)+(V-Lt),Ft=ct+z,V=Ft-ct,Tt[2]=ct-(Ft-V)+(z-V),Tt[3]=Ft,Nt=4):(Bt[0]=0,vt=1,Tt[0]=0,Nt=1),B!==0){const Rr=scale(vt,Bt,B,kt);R=Ur(R,sum(scale(Q,cr,B,At),At,scale(Rr,kt,2*nr,ar),ar,dr),dr);const Zt=scale(Nt,Tt,B,q);R=Ur(R,sum_three(scale(Zt,q,2*nr,At),At,scale(Zt,q,B,Jt),Jt,scale(Rr,kt,B,ar),ar,Tr,Lr),Lr),b!==0&&(R=Ur(R,scale(scale(4,Cr,B,q),q,b,At),At)),F!==0&&(R=Ur(R,scale(scale(4,pr,-B,q),q,F,At),At))}if(Z!==0){const Rr=scale(vt,Bt,Z,kt);R=Ur(R,sum(scale(J,rr,Z,At),At,scale(Rr,kt,2*ur,ar),ar,dr),dr);const Zt=scale(Nt,Tt,Z,q);R=Ur(R,sum_three(scale(Zt,q,2*ur,At),At,scale(Zt,q,Z,Jt),Jt,scale(Rr,kt,Z,ar),ar,Tr,Lr),Lr)}}if(L!==0||b!==0){if(C!==0||F!==0||B!==0||Z!==0?(Pt=C*ur,tt=splitter*C,_=tt-(tt-C),dt=C-_,tt=splitter*ur,K=tt-(tt-ur),et=ur-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=tr*Z,tt=splitter*tr,_=tt-(tt-tr),dt=tr-_,tt=splitter*Z,K=tt-(tt-Z),et=Z-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot+zt,V=z-Ot,Ut[0]=Ot-(z-V)+(zt-V),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt+Lt,V=z-yt,Ut[1]=yt-(z-V)+(Lt-V),Ft=ct+z,V=Ft-ct,Ut[2]=ct-(Ft-V)+(z-V),Ut[3]=Ft,Dt=-sr,Gt=-F,Pt=B*Dt,tt=splitter*B,_=tt-(tt-B),dt=B-_,tt=splitter*Dt,K=tt-(tt-Dt),et=Dt-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=nr*Gt,tt=splitter*nr,_=tt-(tt-nr),dt=nr-_,tt=splitter*Gt,K=tt-(tt-Gt),et=Gt-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot+zt,V=z-Ot,Vt[0]=Ot-(z-V)+(zt-V),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt+Lt,V=z-yt,Vt[1]=yt-(z-V)+(Lt-V),Ft=ct+z,V=Ft-ct,Vt[2]=ct-(Ft-V)+(z-V),Vt[3]=Ft,xt=sum(4,Ut,4,Vt,Br),Pt=C*Z,tt=splitter*C,_=tt-(tt-C),dt=C-_,tt=splitter*Z,K=tt-(tt-Z),et=Z-K,Ot=dt*et-(Pt-_*K-dt*K-_*et),Lt=B*F,tt=splitter*B,_=tt-(tt-B),dt=B-_,tt=splitter*F,K=tt-(tt-F),et=F-K,zt=dt*et-(Lt-_*K-dt*K-_*et),z=Ot-zt,V=Ot-z,wt[0]=Ot-(z+V)+(V-zt),ct=Pt+z,V=ct-Pt,yt=Pt-(ct-V)+(z-V),z=yt-Lt,V=yt-z,wt[1]=yt-(z+V)+(V-Lt),Ft=ct+z,V=Ft-ct,wt[2]=ct-(Ft-V)+(z-V),wt[3]=Ft,ft=4):(Br[0]=0,xt=1,wt[0]=0,ft=1),L!==0){const Rr=scale(xt,Br,L,kt);R=Ur(R,sum(scale(lt,qt,L,At),At,scale(Rr,kt,2*or,ar),ar,dr),dr);const Zt=scale(ft,wt,L,q);R=Ur(R,sum_three(scale(Zt,q,2*or,At),At,scale(Zt,q,L,Jt),Jt,scale(Rr,kt,L,ar),ar,Tr,Lr),Lr),F!==0&&(R=Ur(R,scale(scale(4,Er,L,q),q,F,At),At)),Z!==0&&(R=Ur(R,scale(scale(4,Cr,-L,q),q,Z,At),At))}if(b!==0){const Rr=scale(xt,Br,b,kt);R=Ur(R,sum(scale(nt,$r,b,At),At,scale(Rr,kt,2*lr,ar),ar,dr),dr);const Zt=scale(ft,wt,b,q);R=Ur(R,sum_three(scale(Zt,q,2*lr,At),At,scale(Zt,q,b,Jt),Jt,scale(Rr,kt,b,ar),ar,Tr,Lr),Lr)}}return on[R-1]}function ee(r,a,s,d,h,m,x,O){const P=r-x,R=s-x,C=h-x,B=a-O,L=d-O,F=m-O,Z=R*F,b=C*L,j=P*P+B*B,H=C*B,Q=P*F,J=R*R+L*L,lt=P*L,nt=R*B,xt=C*C+F*F,it=j*(Z-b)+J*(H-Q)+xt*(lt-nt),vt=(Math.abs(Z)+Math.abs(b))*j+(Math.abs(H)+Math.abs(Q))*J+(Math.abs(lt)+Math.abs(nt))*xt,ft=mr*vt;return it>ft||-it>ft?it:Vn(r,a,s,d,h,m,x,O,vt)}function ae(r,a,s,d,h,m,x,O){const P=r-x,R=a-O,C=s-x,B=d-O,L=h-x,F=m-O,Z=P*B-C*R,b=C*F-L*B,j=L*R-P*F,H=P*P+R*R,Q=C*C+B*B,J=L*L+F*F;return H*b+Q*j+J*Z}const Hn=(16+224*n)*n,oe=(5+72*n)*n,Wn=(71+1408*n)*n*n,Xr=v(4),Vr=v(4),tn=v(4),en=v(4),kr=v(4),qr=v(4),Jr=v(4),Wr=v(4),wr=v(4),hn=v(4),Dn=v(24),mt=v(24),Wt=v(24),Mt=v(24),ht=v(24),jt=v(24),Ar=v(24),vr=v(24),Gr=v(24),Kr=v(24),Yr=v(1152),_r=v(1152),Ht=v(1152),zr=v(1152),un=v(1152),An=v(2304),Fn=v(2304),Kn=v(3456),bn=v(5760),ua=v(8),la=v(8),fa=v(8),Mo=v(16),se=v(24),In=v(48),Le=v(48),ie=v(96),Rn=v(192),ca=v(384),va=v(384),da=v(384),No=v(768);function fn(r,a,s,d,h,m,x){return sum_three(scale(4,r,d,ua),ua,scale(4,a,h,la),la,scale(4,s,m,fa),fa,Mo,x)}function Yn(r,a,s,d,h,m,x,O,P,R,C,B){const L=sum(sum(r,a,s,d,In),In,negate(sum(h,m,x,O,Le),Le),Le,ie);return sum_three(scale(scale(L,ie,P,Rn),Rn,P,ca),ca,scale(scale(L,ie,R,Rn),Rn,R,va),va,scale(scale(L,ie,C,Rn),Rn,C,da),da,No,B)}function Do(r,a,s,d,h,m,x,O,P,R,C,B,L,F,Z){let b,j,H,Q,J,lt,nt,xt,it,vt,ft,It,Nt,Dt;vt=r*h,j=splitter*r,H=j-(j-r),Q=r-H,j=splitter*h,J=j-(j-h),lt=h-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=d*a,j=splitter*d,H=j-(j-d),Q=d-H,j=splitter*a,J=j-(j-a),lt=a-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,Xr[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,Xr[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,Xr[2]=xt-(Dt-b)+(nt-b),Xr[3]=Dt,vt=d*O,j=splitter*d,H=j-(j-d),Q=d-H,j=splitter*O,J=j-(j-O),lt=O-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=x*h,j=splitter*x,H=j-(j-x),Q=x-H,j=splitter*h,J=j-(j-h),lt=h-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,Vr[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,Vr[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,Vr[2]=xt-(Dt-b)+(nt-b),Vr[3]=Dt,vt=x*C,j=splitter*x,H=j-(j-x),Q=x-H,j=splitter*C,J=j-(j-C),lt=C-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=R*O,j=splitter*R,H=j-(j-R),Q=R-H,j=splitter*O,J=j-(j-O),lt=O-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,tn[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,tn[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,tn[2]=xt-(Dt-b)+(nt-b),tn[3]=Dt,vt=R*F,j=splitter*R,H=j-(j-R),Q=R-H,j=splitter*F,J=j-(j-F),lt=F-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=L*C,j=splitter*L,H=j-(j-L),Q=L-H,j=splitter*C,J=j-(j-C),lt=C-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,en[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,en[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,en[2]=xt-(Dt-b)+(nt-b),en[3]=Dt,vt=L*a,j=splitter*L,H=j-(j-L),Q=L-H,j=splitter*a,J=j-(j-a),lt=a-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=r*F,j=splitter*r,H=j-(j-r),Q=r-H,j=splitter*F,J=j-(j-F),lt=F-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,kr[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,kr[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,kr[2]=xt-(Dt-b)+(nt-b),kr[3]=Dt,vt=r*O,j=splitter*r,H=j-(j-r),Q=r-H,j=splitter*O,J=j-(j-O),lt=O-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=x*a,j=splitter*x,H=j-(j-x),Q=x-H,j=splitter*a,J=j-(j-a),lt=a-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,qr[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,qr[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,qr[2]=xt-(Dt-b)+(nt-b),qr[3]=Dt,vt=d*C,j=splitter*d,H=j-(j-d),Q=d-H,j=splitter*C,J=j-(j-C),lt=C-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=R*h,j=splitter*R,H=j-(j-R),Q=R-H,j=splitter*h,J=j-(j-h),lt=h-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,Jr[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,Jr[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,Jr[2]=xt-(Dt-b)+(nt-b),Jr[3]=Dt,vt=x*F,j=splitter*x,H=j-(j-x),Q=x-H,j=splitter*F,J=j-(j-F),lt=F-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=L*O,j=splitter*L,H=j-(j-L),Q=L-H,j=splitter*O,J=j-(j-O),lt=O-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,Wr[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,Wr[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,Wr[2]=xt-(Dt-b)+(nt-b),Wr[3]=Dt,vt=R*a,j=splitter*R,H=j-(j-R),Q=R-H,j=splitter*a,J=j-(j-a),lt=a-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=r*C,j=splitter*r,H=j-(j-r),Q=r-H,j=splitter*C,J=j-(j-C),lt=C-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,wr[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,wr[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,wr[2]=xt-(Dt-b)+(nt-b),wr[3]=Dt,vt=L*h,j=splitter*L,H=j-(j-L),Q=L-H,j=splitter*h,J=j-(j-h),lt=h-J,ft=Q*lt-(vt-H*J-Q*J-H*lt),It=d*F,j=splitter*d,H=j-(j-d),Q=d-H,j=splitter*F,J=j-(j-F),lt=F-J,Nt=Q*lt-(It-H*J-Q*J-H*lt),nt=ft-Nt,b=ft-nt,hn[0]=ft-(nt+b)+(b-Nt),xt=vt+nt,b=xt-vt,it=vt-(xt-b)+(nt-b),nt=it-It,b=it-nt,hn[1]=it-(nt+b)+(b-It),Dt=xt+nt,b=Dt-xt,hn[2]=xt-(Dt-b)+(nt-b),hn[3]=Dt;const Gt=fn(Xr,Vr,qr,P,s,-m,Dn),V=fn(Vr,tn,Jr,B,m,-P,mt),tt=fn(tn,en,Wr,Z,P,-B,Wt),_=fn(en,kr,wr,s,B,-Z,Mt),dt=fn(kr,Xr,hn,m,Z,-s,ht),K=fn(Xr,Jr,wr,B,s,m,jt),et=fn(Vr,Wr,hn,Z,m,P,Ar),z=fn(tn,wr,qr,s,P,B,vr),ct=fn(en,hn,Jr,m,B,Z,Gr),yt=fn(kr,qr,Wr,P,Z,s,Kr),Pt=sum_three(Yn(tt,Wt,et,Ar,ct,Gr,V,mt,r,a,s,Yr),Yr,Yn(_,Mt,z,vr,yt,Kr,tt,Wt,d,h,m,_r),_r,sum_three(Yn(dt,ht,ct,Gr,K,jt,_,Mt,x,O,P,Ht),Ht,Yn(Gt,Dn,yt,Kr,et,Ar,dt,ht,R,C,B,zr),zr,Yn(V,mt,K,jt,z,vr,Gt,Dn,L,F,Z,un),un,Fn,Kn),Kn,An,bn);return bn[Pt-1]}const ha=v(96),ga=v(96),pa=v(96),ya=v(1152);function ue(r,a,s,d,h,m,x,O,P,R){const C=fn(r,a,s,d,h,m,se);return sum_three(scale(scale(C,se,x,In),In,x,ha),ha,scale(scale(C,se,O,In),In,O,ga),ga,scale(scale(C,se,P,In),In,P,pa),pa,Rn,R)}function Fo(r,a,s,d,h,m,x,O,P,R,C,B,L,F,Z,b){let j,H,Q,J,lt,nt,xt,it,vt,ft,It,Nt,Dt,Gt,V,tt,_,dt,K,et,z,ct,yt,Pt,Ot,Lt,zt,Ft,tr,nr,or;const sr=r-L,ur=d-L,lr=x-L,Nr=R-L,br=a-F,Rr=h-F,Zt=O-F,Mr=C-F,Hr=s-Z,jr=m-Z,Qr=P-Z,Zr=B-Z;Ft=sr*Rr,et=splitter*sr,z=et-(et-sr),ct=sr-z,et=splitter*Rr,yt=et-(et-Rr),Pt=Rr-yt,tr=ct*Pt-(Ft-z*yt-ct*yt-z*Pt),nr=ur*br,et=splitter*ur,z=et-(et-ur),ct=ur-z,et=splitter*br,yt=et-(et-br),Pt=br-yt,or=ct*Pt-(nr-z*yt-ct*yt-z*Pt),Ot=tr-or,K=tr-Ot,Xr[0]=tr-(Ot+K)+(K-or),Lt=Ft+Ot,K=Lt-Ft,zt=Ft-(Lt-K)+(Ot-K),Ot=zt-nr,K=zt-Ot,Xr[1]=zt-(Ot+K)+(K-nr),j=Lt+Ot,K=j-Lt,Xr[2]=Lt-(j-K)+(Ot-K),Xr[3]=j,Ft=ur*Zt,et=splitter*ur,z=et-(et-ur),ct=ur-z,et=splitter*Zt,yt=et-(et-Zt),Pt=Zt-yt,tr=ct*Pt-(Ft-z*yt-ct*yt-z*Pt),nr=lr*Rr,et=splitter*lr,z=et-(et-lr),ct=lr-z,et=splitter*Rr,yt=et-(et-Rr),Pt=Rr-yt,or=ct*Pt-(nr-z*yt-ct*yt-z*Pt),Ot=tr-or,K=tr-Ot,Vr[0]=tr-(Ot+K)+(K-or),Lt=Ft+Ot,K=Lt-Ft,zt=Ft-(Lt-K)+(Ot-K),Ot=zt-nr,K=zt-Ot,Vr[1]=zt-(Ot+K)+(K-nr),H=Lt+Ot,K=H-Lt,Vr[2]=Lt-(H-K)+(Ot-K),Vr[3]=H,Ft=lr*Mr,et=splitter*lr,z=et-(et-lr),ct=lr-z,et=splitter*Mr,yt=et-(et-Mr),Pt=Mr-yt,tr=ct*Pt-(Ft-z*yt-ct*yt-z*Pt),nr=Nr*Zt,et=splitter*Nr,z=et-(et-Nr),ct=Nr-z,et=splitter*Zt,yt=et-(et-Zt),Pt=Zt-yt,or=ct*Pt-(nr-z*yt-ct*yt-z*Pt),Ot=tr-or,K=tr-Ot,tn[0]=tr-(Ot+K)+(K-or),Lt=Ft+Ot,K=Lt-Ft,zt=Ft-(Lt-K)+(Ot-K),Ot=zt-nr,K=zt-Ot,tn[1]=zt-(Ot+K)+(K-nr),Q=Lt+Ot,K=Q-Lt,tn[2]=Lt-(Q-K)+(Ot-K),tn[3]=Q,Ft=Nr*br,et=splitter*Nr,z=et-(et-Nr),ct=Nr-z,et=splitter*br,yt=et-(et-br),Pt=br-yt,tr=ct*Pt-(Ft-z*yt-ct*yt-z*Pt),nr=sr*Mr,et=splitter*sr,z=et-(et-sr),ct=sr-z,et=splitter*Mr,yt=et-(et-Mr),Pt=Mr-yt,or=ct*Pt-(nr-z*yt-ct*yt-z*Pt),Ot=tr-or,K=tr-Ot,wr[0]=tr-(Ot+K)+(K-or),Lt=Ft+Ot,K=Lt-Ft,zt=Ft-(Lt-K)+(Ot-K),Ot=zt-nr,K=zt-Ot,wr[1]=zt-(Ot+K)+(K-nr),J=Lt+Ot,K=J-Lt,wr[2]=Lt-(J-K)+(Ot-K),wr[3]=J,Ft=sr*Zt,et=splitter*sr,z=et-(et-sr),ct=sr-z,et=splitter*Zt,yt=et-(et-Zt),Pt=Zt-yt,tr=ct*Pt-(Ft-z*yt-ct*yt-z*Pt),nr=lr*br,et=splitter*lr,z=et-(et-lr),ct=lr-z,et=splitter*br,yt=et-(et-br),Pt=br-yt,or=ct*Pt-(nr-z*yt-ct*yt-z*Pt),Ot=tr-or,K=tr-Ot,qr[0]=tr-(Ot+K)+(K-or),Lt=Ft+Ot,K=Lt-Ft,zt=Ft-(Lt-K)+(Ot-K),Ot=zt-nr,K=zt-Ot,qr[1]=zt-(Ot+K)+(K-nr),lt=Lt+Ot,K=lt-Lt,qr[2]=Lt-(lt-K)+(Ot-K),qr[3]=lt,Ft=ur*Mr,et=splitter*ur,z=et-(et-ur),ct=ur-z,et=splitter*Mr,yt=et-(et-Mr),Pt=Mr-yt,tr=ct*Pt-(Ft-z*yt-ct*yt-z*Pt),nr=Nr*Rr,et=splitter*Nr,z=et-(et-Nr),ct=Nr-z,et=splitter*Rr,yt=et-(et-Rr),Pt=Rr-yt,or=ct*Pt-(nr-z*yt-ct*yt-z*Pt),Ot=tr-or,K=tr-Ot,Jr[0]=tr-(Ot+K)+(K-or),Lt=Ft+Ot,K=Lt-Ft,zt=Ft-(Lt-K)+(Ot-K),Ot=zt-nr,K=zt-Ot,Jr[1]=zt-(Ot+K)+(K-nr),nt=Lt+Ot,K=nt-Lt,Jr[2]=Lt-(nt-K)+(Ot-K),Jr[3]=nt;const Fe=sum(sum(negate(ue(Vr,tn,Jr,Zr,jr,-Qr,sr,br,Hr,Yr),Yr),Yr,ue(tn,wr,qr,Hr,Qr,Zr,ur,Rr,jr,_r),_r,An),An,sum(negate(ue(wr,Xr,Jr,jr,Zr,Hr,lr,Zt,Qr,Ht),Ht),Ht,ue(Xr,Vr,qr,Qr,Hr,-jr,Nr,Mr,Zr,zr),zr,Fn),Fn,ya);let ln=estimate(Fe,ya),Tn=oe*b;if(ln>=Tn||-ln>=Tn||(K=r-sr,xt=r-(sr+K)+(K-L),K=a-br,It=a-(br+K)+(K-F),K=s-Hr,V=s-(Hr+K)+(K-Z),K=d-ur,it=d-(ur+K)+(K-L),K=h-Rr,Nt=h-(Rr+K)+(K-F),K=m-jr,tt=m-(jr+K)+(K-Z),K=x-lr,vt=x-(lr+K)+(K-L),K=O-Zt,Dt=O-(Zt+K)+(K-F),K=P-Qr,_=P-(Qr+K)+(K-Z),K=R-Nr,ft=R-(Nr+K)+(K-L),K=C-Mr,Gt=C-(Mr+K)+(K-F),K=B-Zr,dt=B-(Zr+K)+(K-Z),xt===0&&It===0&&V===0&&it===0&&Nt===0&&tt===0&&vt===0&&Dt===0&&_===0&&ft===0&&Gt===0&&dt===0))return ln;Tn=Wn*b+resulterrbound*Math.abs(ln);const Oo=sr*Nt+Rr*xt-(br*it+ur*It),To=ur*Dt+Zt*it-(Rr*vt+lr*Nt),Ao=lr*Gt+Mr*vt-(Zt*ft+Nr*Dt),Ro=Nr*It+br*ft-(Mr*xt+sr*Gt),Po=sr*Dt+Zt*xt-(br*vt+lr*It),Co=ur*Gt+Mr*it-(Rr*ft+Nr*Nt);return ln+=(ur*ur+Rr*Rr+jr*jr)*(Qr*Ro+Zr*Po+Hr*Ao+(_*J+dt*lt+V*Q))+(Nr*Nr+Mr*Mr+Zr*Zr)*(Hr*To-jr*Po+Qr*Oo+(V*H-tt*lt+_*j))-((sr*sr+br*br+Hr*Hr)*(jr*Ao-Qr*Co+Zr*To+(tt*Q-_*nt+dt*H))+(lr*lr+Zt*Zt+Qr*Qr)*(Zr*Oo+Hr*Co+jr*Ro+(dt*j+V*nt+tt*J)))+2*((ur*it+Rr*Nt+jr*tt)*(Qr*J+Zr*lt+Hr*Q)+(Nr*ft+Mr*Gt+Zr*dt)*(Hr*H-jr*lt+Qr*j)-((sr*xt+br*It+Hr*V)*(jr*Q-Qr*nt+Zr*H)+(lr*vt+Zt*Dt+Qr*_)*(Zr*j+Hr*nt+jr*J))),ln>=Tn||-ln>=Tn?ln:Do(r,a,s,d,h,m,x,O,P,R,C,B,L,F,Z)}function Yl(r,a,s,d,h,m,x,O,P,R,C,B,L,F,Z){const b=r-L,j=d-L,H=x-L,Q=R-L,J=a-F,lt=h-F,nt=O-F,xt=C-F,it=s-Z,vt=m-Z,ft=P-Z,It=B-Z,Nt=b*lt,Dt=j*J,Gt=Nt-Dt,V=j*nt,tt=H*lt,_=V-tt,dt=H*xt,K=Q*nt,et=dt-K,z=Q*J,ct=b*xt,yt=z-ct,Pt=b*nt,Ot=H*J,Lt=Pt-Ot,zt=j*xt,Ft=Q*lt,tr=zt-Ft,nr=b*b+J*J+it*it,or=j*j+lt*lt+vt*vt,sr=H*H+nt*nt+ft*ft,ur=Q*Q+xt*xt+It*It,lr=sr*(It*Gt+it*tr+vt*yt)-ur*(it*_-vt*Lt+ft*Gt)+(nr*(vt*et-ft*tr+It*_)-or*(ft*yt+It*Lt+it*et)),Nr=Math.abs(it),br=Math.abs(vt),Rr=Math.abs(ft),Zt=Math.abs(It),Mr=Math.abs(Nt)+Math.abs(Dt),Hr=Math.abs(V)+Math.abs(tt),jr=Math.abs(dt)+Math.abs(K),Qr=Math.abs(z)+Math.abs(ct),Zr=Math.abs(Pt)+Math.abs(Ot),Fe=Math.abs(zt)+Math.abs(Ft),ln=(jr*br+Fe*Rr+Hr*Zt)*nr+(Qr*Rr+Zr*Zt+jr*Nr)*or+(Mr*Zt+Fe*Nr+Qr*br)*sr+(Hr*Nr+Zr*br+Mr*Rr)*ur,Tn=Hn*ln;return lr>Tn||-lr>Tn?lr:-Fo(r,a,s,d,h,m,x,O,P,R,C,B,L,F,Z,ln)}function zl(r,a,s,d,h,m,x,O,P,R,C,B,L,F,Z){const b=r-L,j=d-L,H=x-L,Q=R-L,J=a-F,lt=h-F,nt=O-F,xt=C-F,it=s-Z,vt=m-Z,ft=P-Z,It=B-Z,Nt=b*lt-j*J,Dt=j*nt-H*lt,Gt=H*xt-Q*nt,V=Q*J-b*xt,tt=b*nt-H*J,_=j*xt-Q*lt,dt=it*Dt-vt*tt+ft*Nt,K=vt*Gt-ft*_+It*Dt,et=ft*V+It*tt+it*Gt,z=It*Nt+it*_+vt*V,ct=b*b+J*J+it*it,yt=j*j+lt*lt+vt*vt,Pt=H*H+nt*nt+ft*ft,Ot=Q*Q+xt*xt+It*It;return Pt*z-Ot*dt+(ct*K-yt*et)}const ma=Math.pow(2,-52),le=new Uint32Array(512);class fe{static from(a,s=Bo,d=jo){const h=a.length,m=new Float64Array(h*2);for(let x=0;x>1;if(s>0&&typeof a[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=a;const d=Math.max(2*s-5,0);this._triangles=new Uint32Array(d*3),this._halfedges=new Int32Array(d*3),this._hashSize=Math.ceil(Math.sqrt(s)),this._hullPrev=new Uint32Array(s),this._hullNext=new Uint32Array(s),this._hullTri=new Uint32Array(s),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(s),this._dists=new Float64Array(s),this.update()}update(){const{coords:a,_hullPrev:s,_hullNext:d,_hullTri:h,_hullHash:m}=this,x=a.length>>1;let O=1/0,P=1/0,R=-1/0,C=-1/0;for(let ft=0;ftR&&(R=It),Nt>C&&(C=Nt),this._ids[ft]=ft}const B=(O+R)/2,L=(P+C)/2;let F,Z,b;for(let ft=0,It=1/0;ft0&&(Z=ft,It=Nt)}let Q=a[2*Z],J=a[2*Z+1],lt=1/0;for(let ft=0;ftDt&&(ft[It++]=Gt,Dt=V)}this.hull=ft.subarray(0,It),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(U(j,H,Q,J,nt,xt)<0){const ft=Z,It=Q,Nt=J;Z=b,Q=nt,J=xt,b=ft,nt=It,xt=Nt}const it=Uo(j,H,Q,J,nt,xt);this._cx=it.x,this._cy=it.y;for(let ft=0;ft0&&Math.abs(Gt-It)<=ma&&Math.abs(V-Nt)<=ma||(It=Gt,Nt=V,Dt===F||Dt===Z||Dt===b))continue;let tt=0;for(let z=0,ct=this._hashKey(Gt,V);z=0;)if(_=dt,_===tt){_=-1;break}if(_===-1)continue;let K=this._addTriangle(_,Dt,d[_],-1,-1,h[_]);h[Dt]=this._legalize(K+2),h[_]=K,vt++;let et=d[_];for(;dt=d[et],U(Gt,V,a[2*et],a[2*et+1],a[2*dt],a[2*dt+1])<0;)K=this._addTriangle(et,Dt,dt,h[Dt],-1,h[et]),h[Dt]=this._legalize(K+2),d[et]=et,vt--,et=dt;if(_===tt)for(;dt=s[_],U(Gt,V,a[2*dt],a[2*dt+1],a[2*_],a[2*_+1])<0;)K=this._addTriangle(dt,Dt,_,-1,h[_],h[dt]),this._legalize(K+2),h[dt]=K,d[_]=_,vt--,_=dt;this._hullStart=s[Dt]=_,d[_]=s[et]=Dt,d[Dt]=et,m[this._hashKey(Gt,V)]=Dt,m[this._hashKey(a[2*_],a[2*_+1])]=_}this.hull=new Uint32Array(vt);for(let ft=0,It=this._hullStart;ft0?3-s:1+s)/4}function $e(r,a,s,d){const h=r-s,m=a-d;return h*h+m*m}function Lo(r,a,s,d,h,m,x,O){const P=r-x,R=a-O,C=s-x,B=d-O,L=h-x,F=m-O,Z=P*P+R*R,b=C*C+B*B,j=L*L+F*F;return P*(B*j-b*F)-R*(C*j-b*L)+Z*(C*F-B*L)<0}function $o(r,a,s,d,h,m){const x=s-r,O=d-a,P=h-r,R=m-a,C=x*x+O*O,B=P*P+R*R,L=.5/(x*R-O*P),F=(R*C-O*B)*L,Z=(x*B-P*C)*L;return F*F+Z*Z}function Uo(r,a,s,d,h,m){const x=s-r,O=d-a,P=h-r,R=m-a,C=x*x+O*O,B=P*P+R*R,L=.5/(x*R-O*P),F=r+(R*C-O*B)*L,Z=a+(x*B-P*C)*L;return{x:F,y:Z}}function Ln(r,a,s,d){if(d-s<=20)for(let h=s+1;h<=d;h++){const m=r[h],x=a[m];let O=h-1;for(;O>=s&&a[r[O]]>x;)r[O+1]=r[O--];r[O+1]=m}else{const h=s+d>>1;let m=s+1,x=d;zn(r,h,m),a[r[s]]>a[r[d]]&&zn(r,s,d),a[r[m]]>a[r[d]]&&zn(r,m,d),a[r[s]]>a[r[m]]&&zn(r,s,m);const O=r[m],P=a[O];for(;;){do m++;while(a[r[m]]P);if(x=x-s?(Ln(r,a,m,d),Ln(r,a,s,x-1)):(Ln(r,a,s,x-1),Ln(r,a,m,d))}}function zn(r,a,s){const d=r[a];r[a]=r[s],r[s]=d}function Bo(r){return r[0]}function jo(r){return r[1]}const xa=1e-6;class Pn{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(a,s){this._+=`M${this._x0=this._x1=+a},${this._y0=this._y1=+s}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(a,s){this._+=`L${this._x1=+a},${this._y1=+s}`}arc(a,s,d){a=+a,s=+s,d=+d;const h=a+d,m=s;if(d<0)throw new Error("negative radius");this._x1===null?this._+=`M${h},${m}`:(Math.abs(this._x1-h)>xa||Math.abs(this._y1-m)>xa)&&(this._+="L"+h+","+m),d&&(this._+=`A${d},${d},0,1,1,${a-d},${s}A${d},${d},0,1,1,${this._x1=h},${this._y1=m}`)}rect(a,s,d,h){this._+=`M${this._x0=this._x1=+a},${this._y0=this._y1=+s}h${+d}v${+h}h${-d}Z`}value(){return this._||null}}class Ue{constructor(){this._=[]}moveTo(a,s){this._.push([a,s])}closePath(){this._.push(this._[0].slice())}lineTo(a,s){this._.push([a,s])}value(){return this._.length?this._:null}}class wo{constructor(a,[s,d,h,m]=[0,0,960,500]){if(!((h=+h)>=(s=+s))||!((m=+m)>=(d=+d)))throw new Error("invalid bounds");this.delaunay=a,this._circumcenters=new Float64Array(a.points.length*2),this.vectors=new Float64Array(a.points.length*2),this.xmax=h,this.xmin=s,this.ymax=m,this.ymin=d,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:a,hull:s,triangles:d},vectors:h}=this;let m,x;const O=this.circumcenters=this._circumcenters.subarray(0,d.length/3*2);for(let b=0,j=0,H=d.length,Q,J;b1;)m-=2;for(let x=2;x0){if(s>=this.ymax)return null;(x=(this.ymax-s)/h)0){if(a>=this.xmax)return null;(x=(this.xmax-a)/d)this.xmax?2:0)|(sthis.ymax?8:0)}_simplify(a){if(a&&a.length>4){for(let s=0;s1e-10)return!1}return!0}function Ko(r,a,s){return[r+Math.sin(r+a)*s,a+Math.cos(r-a)*s]}class Be{static from(a,s=Vo,d=Ho,h){return new Be("length"in a?Yo(a,s,d,h):Float64Array.from(zo(a,s,d,h)))}constructor(a){this._delaunator=new fe(a),this.inedges=new Int32Array(a.length/2),this._hullIndex=new Int32Array(a.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const a=this._delaunator,s=this.points;if(a.hull&&a.hull.length>2&&Wo(a)){this.collinear=Int32Array.from({length:s.length/2},(L,F)=>F).sort((L,F)=>s[2*L]-s[2*F]||s[2*L+1]-s[2*F+1]);const P=this.collinear[0],R=this.collinear[this.collinear.length-1],C=[s[2*P],s[2*P+1],s[2*R],s[2*R+1]],B=1e-8*Math.hypot(C[3]-C[1],C[2]-C[0]);for(let L=0,F=s.length/2;L0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=h[0],x[h[0]]=1,h.length===2&&(x[h[1]]=0,this.triangles[1]=h[1],this.triangles[2]=h[1]))}voronoi(a){return new wo(this,a)}*neighbors(a){const{inedges:s,hull:d,_hullIndex:h,halfedges:m,triangles:x,collinear:O}=this;if(O){const B=O.indexOf(a);B>0&&(yield O[B-1]),B=0&&m!==d&&m!==h;)d=m;return m}_step(a,s,d){const{inedges:h,hull:m,_hullIndex:x,halfedges:O,triangles:P,points:R}=this;if(h[a]===-1||!R.length)return(a+1)%(R.length>>1);let C=a,B=$n(s-R[a*2],2)+$n(d-R[a*2+1],2);const L=h[a];let F=L;do{let Z=P[F];const b=$n(s-R[Z*2],2)+$n(d-R[Z*2+1],2);if(b=J&&(J=Q+1);!(nt=j[J])&&++J=0;)(x=d[h])&&(m&&x.compareDocumentPosition(m)^4&&m.parentNode.insertBefore(x,m),m=x);return this}function Es(r){r||(r=Is);function a(B,L){return B&&L?r(B.__data__,L.__data__):!B-!L}for(var s=this._groups,d=s.length,h=new Array(d),m=0;ma?1:r>=a?0:NaN}function Os(){var r=arguments[0];return arguments[0]=this,r.apply(null,arguments),this}function Ts(){return Array.from(this)}function As(){for(var r=this._groups,a=0,s=r.length;a=0&&(a=r.slice(0,s))!=="xmlns"&&(r=r.slice(s+1)),Ta.hasOwnProperty(a)?{space:Ta[a],local:r}:r}function Ms(r){return function(){this.removeAttribute(r)}}function Ns(r){return function(){this.removeAttributeNS(r.space,r.local)}}function Ds(r,a){return function(){this.setAttribute(r,a)}}function Fs(r,a){return function(){this.setAttributeNS(r.space,r.local,a)}}function bs(r,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttribute(r):this.setAttribute(r,s)}}function Ls(r,a){return function(){var s=a.apply(this,arguments);s==null?this.removeAttributeNS(r.space,r.local):this.setAttributeNS(r.space,r.local,s)}}function $s(r,a){var s=ve(r);if(arguments.length<2){var d=this.node();return s.local?d.getAttributeNS(s.space,s.local):d.getAttribute(s)}return this.each((a==null?s.local?Ns:Ms:typeof a=="function"?s.local?Ls:bs:s.local?Fs:Ds)(s,a))}function Aa(r){return r.ownerDocument&&r.ownerDocument.defaultView||r.document&&r||r.defaultView}function Us(r){return function(){this.style.removeProperty(r)}}function Bs(r,a,s){return function(){this.style.setProperty(r,a,s)}}function js(r,a,s){return function(){var d=a.apply(this,arguments);d==null?this.style.removeProperty(r):this.style.setProperty(r,d,s)}}function ws(r,a,s){return arguments.length>1?this.each((a==null?Us:typeof a=="function"?js:Bs)(r,a,s==null?"":s)):Un(this.node(),r)}function Un(r,a){return r.style.getPropertyValue(a)||Aa(r).getComputedStyle(r,null).getPropertyValue(a)}function Gs(r){return function(){delete this[r]}}function Vs(r,a){return function(){this[r]=a}}function Hs(r,a){return function(){var s=a.apply(this,arguments);s==null?delete this[r]:this[r]=s}}function Ws(r,a){return arguments.length>1?this.each((a==null?Gs:typeof a=="function"?Hs:Vs)(r,a)):this.node()[r]}function Ra(r){return r.trim().split(/^|\s+/)}function Ge(r){return r.classList||new Pa(r)}function Pa(r){this._node=r,this._names=Ra(r.getAttribute("class")||"")}Pa.prototype={add:function(r){var a=this._names.indexOf(r);a<0&&(this._names.push(r),this._node.setAttribute("class",this._names.join(" ")))},remove:function(r){var a=this._names.indexOf(r);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(r){return this._names.indexOf(r)>=0}};function Ca(r,a){for(var s=Ge(r),d=-1,h=a.length;++d=0&&(s=a.slice(d+1),a=a.slice(0,d)),{type:a,name:s}})}function xi(r){return function(){var a=this.__on;if(a){for(var s=0,d=-1,h=a.length,m;s{}};function ba(){for(var r=0,a=arguments.length,s={},d;r=0&&(d=s.slice(h+1),s=s.slice(0,h)),s&&!a.hasOwnProperty(s))throw new Error("unknown type: "+s);return{type:s,name:d}})}de.prototype=ba.prototype={constructor:de,on:function(r,a){var s=this._,d=Mi(r+"",s),h,m=-1,x=d.length;if(arguments.length<2){for(;++m0)for(var s=new Array(h),d=0,h,m;d=0&&r._call.call(void 0,a),r=r._next;--Bn}function ja(){Cn=(ge=kn.now())+pe,Bn=Jn=0;try{bi()}finally{Bn=0,$i(),Cn=0}}function Li(){var r=kn.now(),a=r-ge;a>$a&&(pe-=a,ge=r)}function $i(){for(var r,a=he,s,d=1/0;a;)a._call?(d>a._time&&(d=a._time),r=a,a=a._next):(s=a._next,a._next=null,a=r?r._next=s:he=s);Zn=r,He(d)}function He(r){if(!Bn){Jn&&(Jn=clearTimeout(Jn));var a=r-Cn;a>24?(r<1/0&&(Jn=setTimeout(ja,r-kn.now()-pe)),Qn&&(Qn=clearInterval(Qn))):(Qn||(ge=kn.now(),Qn=setInterval(Li,$a)),Bn=1,Ua(ja))}}function wa(r,a,s){var d=new ye;return a=a==null?0:+a,d.restart(h=>{d.stop(),r(h+a)},a,s),d}var Ui=Di("start","end","cancel","interrupt"),Bi=[],Ga=0,Va=1,We=2,me=3,Ha=4,Ke=5,xe=6;function Se(r,a,s,d,h,m){var x=r.__transition;if(!x)r.__transition={};else if(s in x)return;ji(r,s,{name:a,index:d,group:h,on:Ui,tween:Bi,time:m.time,delay:m.delay,duration:m.duration,ease:m.ease,timer:null,state:Ga})}function Ye(r,a){var s=vn(r,a);if(s.state>Ga)throw new Error("too late; already scheduled");return s}function gn(r,a){var s=vn(r,a);if(s.state>me)throw new Error("too late; already running");return s}function vn(r,a){var s=r.__transition;if(!s||!(s=s[a]))throw new Error("transition not found");return s}function ji(r,a,s){var d=r.__transition,h;d[a]=s,s.timer=Ba(m,0,s.time);function m(R){s.state=Va,s.timer.restart(x,s.delay,s.time),s.delay<=R&&x(R-s.delay)}function x(R){var C,B,L,F;if(s.state!==Va)return P();for(C in d)if(F=d[C],F.name===s.name){if(F.state===me)return wa(x);F.state===Ha?(F.state=xe,F.timer.stop(),F.on.call("interrupt",r,r.__data__,F.index,F.group),delete d[C]):+CWe&&d.state180?C+=360:C-R>180&&(R+=360),L.push({i:B.push(h(B)+"rotate(",null,d)-2,x:On(R,C)})):C&&B.push(h(B)+"rotate("+C+d)}function O(R,C,B,L){R!==C?L.push({i:B.push(h(B)+"skewX(",null,d)-2,x:On(R,C)}):C&&B.push(h(B)+"skewX("+C+d)}function P(R,C,B,L,F,Z){if(R!==B||C!==L){var b=F.push(h(F)+"scale(",null,",",null,")");Z.push({i:b-4,x:On(R,B)},{i:b-2,x:On(C,L)})}else(B!==1||L!==1)&&F.push(h(F)+"scale("+B+","+L+")")}return function(R,C){var B=[],L=[];return R=r(R),C=r(C),m(R.translateX,R.translateY,C.translateX,C.translateY,B,L),x(R.rotate,C.rotate,B,L),O(R.skewX,C.skewX,B,L),P(R.scaleX,R.scaleY,C.scaleX,C.scaleY,B,L),R=C=null,function(F){for(var Z=-1,b=L.length,j;++Z>8&15|a>>4&240,a>>4&15|a&240,(a&15)<<4|a&15,1):s===8?Oe(a>>24&255,a>>16&255,a>>8&255,(a&255)/255):s===4?Oe(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|a&240,((a&15)<<4|a&15)/255):null):(a=Qi.exec(r))?new an(a[1],a[2],a[3],1):(a=Zi.exec(r))?new an(a[1]*255/100,a[2]*255/100,a[3]*255/100,1):(a=ki.exec(r))?Oe(a[1],a[2],a[3],a[4]):(a=qi.exec(r))?Oe(a[1]*255/100,a[2]*255/100,a[3]*255/100,a[4]):(a=_i.exec(r))?_a(a[1],a[2]/100,a[3]/100,1):(a=tu.exec(r))?_a(a[1],a[2]/100,a[3]/100,a[4]):Xa.hasOwnProperty(r)?Za(Xa[r]):r==="transparent"?new an(NaN,NaN,NaN,0):null}function Za(r){return new an(r>>16&255,r>>8&255,r&255,1)}function Oe(r,a,s,d){return d<=0&&(r=a=s=NaN),new an(r,a,s,d)}function eu(r){return r instanceof qn||(r=re(r)),r?(r=r.rgb(),new an(r.r,r.g,r.b,r.opacity)):new an}function Te(r,a,s,d){return arguments.length===1?eu(r):new an(r,a,s,d==null?1:d)}function an(r,a,s,d){this.r=+r,this.g=+a,this.b=+s,this.opacity=+d}Je(an,Te,za(qn,{brighter(r){return r=r==null?Ie:Math.pow(Ie,r),new an(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?_n:Math.pow(_n,r),new an(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new an(Mn(this.r),Mn(this.g),Mn(this.b),Ae(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:ka,formatHex:ka,formatHex8:au,formatRgb:qa,toString:qa}));function ka(){return`#${Nn(this.r)}${Nn(this.g)}${Nn(this.b)}`}function au(){return`#${Nn(this.r)}${Nn(this.g)}${Nn(this.b)}${Nn((isNaN(this.opacity)?1:this.opacity)*255)}`}function qa(){const r=Ae(this.opacity);return`${r===1?"rgb(":"rgba("}${Mn(this.r)}, ${Mn(this.g)}, ${Mn(this.b)}${r===1?")":`, ${r})`}`}function Ae(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function Mn(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function Nn(r){return r=Mn(r),(r<16?"0":"")+r.toString(16)}function _a(r,a,s,d){return d<=0?r=a=s=NaN:s<=0||s>=1?r=a=NaN:a<=0&&(r=NaN),new dn(r,a,s,d)}function to(r){if(r instanceof dn)return new dn(r.h,r.s,r.l,r.opacity);if(r instanceof qn||(r=re(r)),!r)return new dn;if(r instanceof dn)return r;r=r.rgb();var a=r.r/255,s=r.g/255,d=r.b/255,h=Math.min(a,s,d),m=Math.max(a,s,d),x=NaN,O=m-h,P=(m+h)/2;return O?(a===m?x=(s-d)/O+(s0&&P<1?0:x,new dn(x,O,P,r.opacity)}function ou(r,a,s,d){return arguments.length===1?to(r):new dn(r,a,s,d==null?1:d)}function dn(r,a,s,d){this.h=+r,this.s=+a,this.l=+s,this.opacity=+d}Je(dn,ou,za(qn,{brighter(r){return r=r==null?Ie:Math.pow(Ie,r),new dn(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?_n:Math.pow(_n,r),new dn(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,a=isNaN(r)||isNaN(this.s)?0:this.s,s=this.l,d=s+(s<.5?s:1-s)*a,h=2*s-d;return new an(Qe(r>=240?r-240:r+120,h,d),Qe(r,h,d),Qe(r<120?r+240:r-120,h,d),this.opacity)},clamp(){return new dn(ro(this.h),Re(this.s),Re(this.l),Ae(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 r=Ae(this.opacity);return`${r===1?"hsl(":"hsla("}${ro(this.h)}, ${Re(this.s)*100}%, ${Re(this.l)*100}%${r===1?")":`, ${r})`}`}}));function ro(r){return r=(r||0)%360,r<0?r+360:r}function Re(r){return Math.max(0,Math.min(1,r||0))}function Qe(r,a,s){return(r<60?a+(s-a)*r/60:r<180?s:r<240?a+(s-a)*(240-r)/60:a)*255}function no(r,a,s,d,h){var m=r*r,x=m*r;return((1-3*r+3*m-x)*a+(4-6*m+3*x)*s+(1+3*r+3*m-3*x)*d+x*h)/6}function su(r){var a=r.length-1;return function(s){var d=s<=0?s=0:s>=1?(s=1,a-1):Math.floor(s*a),h=r[d],m=r[d+1],x=d>0?r[d-1]:2*h-m,O=d()=>r;function ao(r,a){return function(s){return r+s*a}}function uu(r,a,s){return r=Math.pow(r,s),a=Math.pow(a,s)-r,s=1/s,function(d){return Math.pow(r+d*a,s)}}function Xl(r,a){var s=a-r;return s?ao(r,s>180||s<-180?s-360*Math.round(s/360):s):constant(isNaN(r)?a:r)}function lu(r){return(r=+r)==1?oo:function(a,s){return s-a?uu(a,s,r):eo(isNaN(a)?s:a)}}function oo(r,a){var s=a-r;return s?ao(r,s):eo(isNaN(r)?a:r)}var so=function r(a){var s=lu(a);function d(h,m){var x=s((h=Te(h)).r,(m=Te(m)).r),O=s(h.g,m.g),P=s(h.b,m.b),R=oo(h.opacity,m.opacity);return function(C){return h.r=x(C),h.g=O(C),h.b=P(C),h.opacity=R(C),h+""}}return d.gamma=r,d}(1);function io(r){return function(a){var s=a.length,d=new Array(s),h=new Array(s),m=new Array(s),x,O;for(x=0;xs&&(m=a.slice(s,m),O[x]?O[x]+=m:O[++x]=m),(d=d[0])===(h=h[0])?O[x]?O[x]+=h:O[++x]=h:(O[++x]=null,P.push({i:x,x:On(d,h)})),s=ke.lastIndex;return s=0&&(a=a.slice(0,s)),!a||a==="start"})}function ju(r,a,s){var d,h,m=Bu(a)?Ye:gn;return function(){var x=m(this,r),O=x.on;O!==d&&(h=(d=O).copy()).on(a,s),x.on=h}}function wu(r,a){var s=this._id;return arguments.length<2?vn(this.node(),s).on.on(r):this.each(ju(s,r,a))}function Gu(r){return function(){var a=this.parentNode;for(var s in this.__transition)if(+s!==r)return;a&&a.removeChild(this)}}function Vu(){return this.on("end.remove",Gu(this._id))}function Hu(r){var a=this._name,s=this._id;typeof r!="function"&&(r=je(r));for(var d=this._groups,h=d.length,m=new Array(h),x=0;x{const Mr=Zt.identifier;return Zt=pointer(Zt,H),Zt.point0=Zt.slice(),Zt.identifier=Mr,Zt});interrupt(H);var tr=C(H,arguments,!0).beforestart();if(Q==="overlay"){vt&&(Pt=!0);const Zt=[Ft[0],Ft[1]||Ft[0]];xt.selection=vt=[[It=r===Ce?ft:nn(Zt[0][0],Zt[1][0]),Gt=r===Pe?Dt:nn(Zt[0][1],Zt[1][1])],[_=r===Ce?tt:rn(Zt[0][0],Zt[1][0]),et=r===Pe?K:rn(Zt[0][1],Zt[1][1])]],Ft.length>1&&lr(j)}else It=vt[0][0],Gt=vt[0][1],_=vt[1][0],et=vt[1][1];Nt=It,V=Gt,dt=_,z=et;var nr=select(H).attr("pointer-events","none"),or=nr.selectAll(".overlay").attr("cursor",xn[Q]);if(j.touches)tr.moved=ur,tr.ended=Nr;else{var sr=select(j.view).on("mousemove.brush",ur,!0).on("mouseup.brush",Nr,!0);h&&sr.on("keydown.brush",br,!0).on("keyup.brush",Rr,!0),dragDisable(j.view)}R.call(H),tr.start(j,J.name);function ur(Zt){for(const Mr of Zt.changedTouches||[Zt])for(const Hr of Ft)Hr.identifier===Mr.identifier&&(Hr.cur=pointer(Mr,H));if(Ot&&!Lt&&!zt&&Ft.length===1){const Mr=Ft[0];vo(Mr.cur[0]-Mr[0])>vo(Mr.cur[1]-Mr[1])?zt=!0:Lt=!0}for(const Mr of Ft)Mr.cur&&(Mr[0]=Mr.cur[0],Mr[1]=Mr.cur[1]);Pt=!0,noevent(Zt),lr(Zt)}function lr(Zt){const Mr=Ft[0],Hr=Mr.point0;var jr;switch(ct=Mr[0]-Hr[0],yt=Mr[1]-Hr[1],J){case qe:case co:{lt&&(ct=rn(ft-It,nn(tt-_,ct)),Nt=It+ct,dt=_+ct),nt&&(yt=rn(Dt-Gt,nn(K-et,yt)),V=Gt+yt,z=et+yt);break}case wn:{Ft[1]?(lt&&(Nt=rn(ft,nn(tt,Ft[0][0])),dt=rn(ft,nn(tt,Ft[1][0])),lt=1),nt&&(V=rn(Dt,nn(K,Ft[0][1])),z=rn(Dt,nn(K,Ft[1][1])),nt=1)):(lt<0?(ct=rn(ft-It,nn(tt-It,ct)),Nt=It+ct,dt=_):lt>0&&(ct=rn(ft-_,nn(tt-_,ct)),Nt=It,dt=_+ct),nt<0?(yt=rn(Dt-Gt,nn(K-Gt,yt)),V=Gt+yt,z=et):nt>0&&(yt=rn(Dt-et,nn(K-et,yt)),V=Gt,z=et+yt));break}case Gn:{lt&&(Nt=rn(ft,nn(tt,It-ct*lt)),dt=rn(ft,nn(tt,_+ct*lt))),nt&&(V=rn(Dt,nn(K,Gt-yt*nt)),z=rn(Dt,nn(K,et+yt*nt)));break}}dt0&&(It=Nt-ct),nt<0?et=z-yt:nt>0&&(Gt=V-yt),J=qe,or.attr("cursor",xn.selection),lr(Zt));break}default:return}noevent(Zt)}function Rr(Zt){switch(Zt.keyCode){case 16:{Ot&&(Lt=zt=Ot=!1,lr(Zt));break}case 18:{J===Gn&&(lt<0?_=dt:lt>0&&(It=Nt),nt<0?et=z:nt>0&&(Gt=V),J=wn,lr(Zt));break}case 32:{J===qe&&(Zt.altKey?(lt&&(_=dt-ct*lt,It=Nt+ct*lt),nt&&(et=z-yt*nt,Gt=V+yt*nt),J=Gn):(lt<0?_=dt:lt>0&&(It=Nt),nt<0?et=z:nt>0&&(Gt=V),J=wn),or.attr("cursor",xn[Q]),lr(Zt));break}default:return}noevent(Zt)}}function F(j){C(this,arguments).moved(j)}function Z(j){C(this,arguments).ended(j)}function b(){var j=this.__brush||{selection:null};return j.extent=_e(a.apply(this,arguments)),j.dim=r,j}return P.extent=function(j){return arguments.length?(a=typeof j=="function"?j:constant(_e(j)),P):a},P.filter=function(j){return arguments.length?(s=typeof j=="function"?j:constant(!!j),P):s},P.touchable=function(j){return arguments.length?(d=typeof j=="function"?j:constant(!!j),P):d},P.handleSize=function(j){return arguments.length?(x=+j,P):x},P.keyModifiers=function(j){return arguments.length?(h=!!j,P):h},P.on=function(){var j=m.on.apply(m,arguments);return j===m?P:j},P}function El(){return typeof globalThis=="object"&&globalThis!==null&&globalThis.Object===Object&&globalThis||typeof global=="object"&&global!==null&&global.Object===Object&&global||typeof self=="object"&&self!==null&&self.Object===Object&&self||Function("return this")()}function Il(r){const a=typeof(r==null?void 0:r.requestAnimationFrame)=="function"&&typeof(r==null?void 0:r.cancelAnimationFrame)=="function",s=typeof(r==null?void 0:r.requestIdleCallback)=="function"&&typeof(r==null?void 0:r.cancelIdleCallback)=="function",d=m=>setTimeout(m,1),h=m=>clearTimeout(m);return[a?r.requestAnimationFrame:d,a?r.cancelAnimationFrame:h,s?r.requestIdleCallback:d,s?r.cancelIdleCallback:h]}const Me=El(),Ol=Me==null?void 0:Me.document,[nf,ef,af,of]=Il(Me);var Tl=Object.defineProperty,yo=Object.getOwnPropertySymbols,Al=Object.prototype.hasOwnProperty,Rl=Object.prototype.propertyIsEnumerable,mo=(r,a,s)=>a in r?Tl(r,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[a]=s,xo=(r,a)=>{for(var s in a||(a={}))Al.call(a,s)&&mo(r,s,a[s]);if(yo)for(var s of yo(a))Rl.call(a,s)&&mo(r,s,a[s]);return r};const sf=r=>r||r===0,Pl=r=>typeof r=="function",Ne=r=>typeof r=="string",na=r=>typeof r=="number",Cl=r=>typeof r=="undefined",So=r=>typeof r!="undefined",uf=r=>typeof r=="boolean",lf=r=>Math.ceil(r/10)*10,ff=r=>Math.ceil(r)+.5,cf=r=>r[1]-r[0],ea=r=>typeof r=="object",Ml=r=>Cl(r)||r===null||Ne(r)&&r.length===0||ea(r)&&!(r instanceof Date)&&Object.keys(r).length===0||na(r)&&isNaN(r),Nl=r=>!Ml(r),aa=r=>Array.isArray(r),De=r=>r&&!(r!=null&&r.nodeType)&&ea(r)&&!aa(r);function vf(r,a,s){return So(r[a])?r[a]:s}function df(r,a){let s=!1;return Object.keys(r).forEach(d=>r[d]===a&&(s=!0)),s}function hf(r,a,...s){const d=Pl(r);return d&&r.call(a,...s),d}function gf(r,a){let s=0;const d=function(...h){!--s&&a.apply(this,...h)};"duration"in r?r.each(()=>++s).on("end",d):(++s,r.call(d))}function pf(r){return Ne(r)?r.replace(/<(script|img)?/ig,"<").replace(/(script)?>/ig,">"):r}function yf(r,a,s=[-1,1],d=!1){if(!(!r||!Ne(a)))if(a.indexOf(` `)===-1)r.text(a);else{const h=[r.text(),a].map(m=>m.replace(/[\s\n]/g,""));if(h[0]!==h[1]){const m=a.split(` -`),x=d?m.length-1:1;r.html(""),m.forEach((O,P)=>{r.append("tspan").attr("x",0).attr("dy",`${P===0?s[0]*x:s[1]}em`).text(O)})}}}function Dl(r){const{x:a,y:s,width:d,height:h}=r.getBBox();return[{x:a,y:s+h},{x:a,y:s},{x:a+d,y:s},{x:a+d,y:s+h}]}function mf(r){const{width:a,height:s}=r.getBoundingClientRect(),d=Dl(r),h=d[0].x,m=Math.min(d[0].y,d[1].y);return{x:h,y:m,width:a,height:s}}function xf(r,a){var s;const d=r&&((s=r.touches||r.sourceEvent&&r.sourceEvent.touches)==null?void 0:s[0]);let h=[0,0];try{h=d3Pointer(d||r,a)}catch(m){}return h.map(m=>isNaN(m)?0:m)}function Fl(r){const{event:a,$el:s}=r,d=s.subchart.main||s.main;let h;return a&&a.type==="brush"?h=a.selection:d&&(h=d.select(".bb-brush").node())&&(h=d3BrushSelection(h)),h}function Sf(r){return!("rect"in r)||"rect"in r&&r.hasAttribute("width")&&r.rect.width!==+r.getAttribute("width")?r.rect=r.getBoundingClientRect():r.rect}function Ef(r=!0,a=0,s=1e4){const d=window.crypto||window.msCrypto,h=d?a+d.getRandomValues(new Uint32Array(1))[0]%(s-a+1):Math.floor(Math.random()*(s-a)+a);return r?String(h):h}function Eo(r,a,s,d,h){if(s>d)return-1;const m=Math.floor((s+d)/2);let{x,w:O=0}=r[m];return h&&(x=r[m].y,O=r[m].h),a>=x&&a<=x+O?m:a{if(De(s)&&s.constructor){const d=new s.constructor;for(const h in s)d[h]=a(s[h]);return d}return s};return r.map(s=>a(s)).reduce((s,d)=>xo(xo({},s),d))}function bl(r={},a){aa(a)&&a.forEach(s=>bl(r,s));for(const s in a)/^\d+$/.test(s)||s in r||(r[s]=a[s]);return r}const Tf=r=>r.charAt(0).toUpperCase()+r.slice(1);function Af(r,a="-"){return r.split(a).map((s,d)=>d?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():s.toLowerCase()).join("")}const Ll=r=>[].slice.call(r);function Rf(r,a,s){const{rootSelector:d="",sheet:h}=r,x=`${d} ${(O=>O.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(a)} {${s.join(";")}}`;return h[h.insertRule?"insertRule":"addRule"](x,h.cssRules.length)}function Pf(r){let a=[];return r.forEach(s=>{var d;try{s.cssRules&&s.cssRules.length&&(a=a.concat(Ll(s.cssRules)))}catch(h){(d=window.console)==null||d.warn(`Error while reading rules from ${s.href}: ${h.toString()}`)}}),a}function Cf(r){var a,s,d,h;return{x:((s=(a=window.pageXOffset)!=null?a:window.scrollX)!=null?s:0)+r.scrollLeft,y:((h=(d=window.pageYOffset)!=null?d:window.scrollY)!=null?h:0)+r.scrollTop}}function Mf(r){const a=r?r.transform:null,s=a&&a.baseVal;return s&&s.numberOfItems?s.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Nf(r){const a=r[0]instanceof Date,s=(a?r.map(Number):r).filter((d,h,m)=>m.indexOf(d)===h);return a?s.map(d=>new Date(d)):s}function Df(r){return r&&r.length?r.reduce((a,s)=>a.concat(s)):[]}function oa(r,...a){if(!a.length||a.length===1&&!a[0])return r;const s=a.shift();return De(r)&&De(s)&&Object.keys(s).forEach(d=>{const h=s[d];De(h)?(!r[d]&&(r[d]={}),r[d]=oa(r[d],h)):r[d]=aa(h)?h.concat():h}),oa(r,...a)}function $l(r,a=!0){let s;return r[0]instanceof Date?s=a?(d,h)=>d-h:(d,h)=>h-d:a&&!r.every(isNaN)?s=(d,h)=>d-h:a||(s=(d,h)=>d>h&&-1||dNl(d));return s.length?na(s[0])?s=Math[r](...s):s[0]instanceof Date&&(s=$l(s,r==="min")[0]):s=void 0,s}const bf=(r,a,s=1)=>{const d=[],h=Math.max(0,Math.ceil((a-r)/s))|0;for(let m=r;m{const r=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(a,s,d=r())=>{a.dispatchEvent(new MouseEvent(s,d))}}catch(a){return(s,d,h=r())=>{const m=Ol.createEvent("MouseEvent");m.initMouseEvent(d,h.bubbles,h.cancelable,Me,0,h.screenX,h.screenY,h.clientX,h.clientY,!1,!1,!1,!1,0,null),s.dispatchEvent(m)}}})(),touch:(r,a,s)=>{const d=new Touch(oa({identifier:Date.now(),target:r,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},s));r.dispatchEvent(new TouchEvent(a,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[d],targetTouches:[],changedTouches:[d]}))}};function $f(r,a){let s=r;for(const d in a)s=s.replace(new RegExp(`{=${d}}`,"g"),a[d]);return s}function Uf(r){var a;let s;if(r instanceof Date)s=r;else if(Ne(r)){const{config:d,format:h}=this;s=(a=h.dataTime(d.data_xFormat)(r))!=null?a:new Date(r)}else na(r)&&!isNaN(r)&&(s=new Date(+r));return(!s||isNaN(+s))&&console&&console.error&&console.error(`Failed to parse x '${r}' to Date object`),s}function Bf(){var r,a;return((r=document)==null?void 0:r.hidden)===!1||((a=document)==null?void 0:a.visibilityState)==="visible"}function jf(r,a){const{DocumentTouch:s,matchMedia:d,navigator:h}=window;let m=!1;if(a)if(h&&"maxTouchPoints"in h)m=h.maxTouchPoints>0;else if("ontouchmove"in window||s&&document instanceof s)m=!0;else if(d!=null&&d("(pointer:coarse)").matches)m=!0;else{const O=h.userAgent;m=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(O)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(O)}return r&&((d==null?void 0:d("any-hover:hover").matches)||(d==null?void 0:d("any-pointer:fine").matches))&&"mouse"||m&&"touch"||"mouse"}function Ul(r,a){a()===!1?requestAnimationFrame(()=>Ul(r,a)):r()}function Bl(r){const a=this.config;let s,d,h;const m=()=>{const x=d.shift();if(x&&s&&ea(s)&&x in s)return s=s[x],m();if(!x)return s};Object.keys(a).forEach(x=>{s=r,d=x.split("_"),h=m(),So(h)&&(a[x]=h)}),this.api&&(this.state.orgConfig=r)}var jl=Object.defineProperty,wl=(r,a,s)=>a in r?jl(r,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[a]=s,sa=(r,a,s)=>wl(r,typeof a!="symbol"?a+"":a,s);class Io{constructor(a={}){sa(this,"$$"),sa(this,"options"),this.options=a}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(a=>{this[a]=null,delete this[a]})}}sa(Io,"version","3.12.4-nightly-20240724004639");class Gl{constructor(){return{selector:void 0,extent:1,area:0}}}var Vl=Object.defineProperty,Hl=(r,a,s)=>a in r?Vl(r,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[a]=s,Wl=(r,a,s)=>Hl(r,typeof a!="symbol"?a+"":a,s);class Kl extends Io{constructor(a){return super(a),Wl(this,"config"),this.config=new Gl,this}$init(){Bl.call(this,this.options)}$redraw(){const{$$:{$el:a},config:{selector:s}}=this,d=s?a.main.selectAll(s):a.text;!d.empty()&&this.preventLabelOverlap(d)}generateVoronoi(a){const{$$:s}=this,{scale:d}=s,[h,m]=["x","y"].map(x=>d[x].domain());return[h[1],m[0]]=[m[0],h[1]],Be.from(a).voronoi([...h,...m])}preventLabelOverlap(a){const{extent:s,area:d}=this.config,h=a.data().map(O=>[O.index,O.value]),m=this.generateVoronoi(h);let x=0;a.each(function(){const O=m.cellPolygon(x);if(O&&this){const[P,R]=h[x],[C,B]=Xo(O),L=Math.abs(Jo(O)),F=Math.round(Math.atan2(B-R,C-P)/Math.PI*2),Z=s*(F===0?1:-1),b=F===-1?-s:s+5,j=Math.abs(F)===1?"middle":F===0?"start":"end";this.style.display=L=Y&&(!W||k))st=M(N,0,Y);else{var ut=W&&!k&&$?{maxByteLength:$(N)}:void 0;st=new y(Y,ut);for(var rt=new S(N),at=new S(st),ot=I(Y,X),pt=0;pt>8&255]},Sr=function(Ut){return[Ut&255,Ut>>8&255,Ut>>16&255,Ut>>24&255]},mr=function(Ut){return Ut[3]<<24|Ut[2]<<16|Ut[1]<<8|Ut[0]},Ir=function(Ut){return xr(A(Ut),23,4)},Fr=function(Ut){return xr(Ut,52,8)},Dr=function(Ut,Vt,bt){c(Ut[ut],Vt,{configurable:!0,get:function(){return bt(this)[Vt]}})},Pr=function(Ut,Vt,bt,fr){var cr=pt(Ut),rr=I(bt),qt=!!fr;if(rr+Vt>cr.byteLength)throw new ir(at);var $r=cr.bytes,Br=rr+cr.byteOffset,Et=U($r,Br,Br+Vt);return qt?Et:yr(Et)},gr=function(Ut,Vt,bt,fr,cr,rr){var qt=pt(Ut),$r=I(bt),Br=fr(+cr),Et=!!rr;if($r+Vt>qt.byteLength)throw new ir(at);for(var Bt=qt.bytes,wt=$r+qt.byteOffset,gt=0;gtrr)throw new ir("Wrong offset");if(fr=fr===void 0?rr-qt:E(fr),qt+fr>rr)throw new ir(rt);Ct(this,{type:st,buffer:Vt,byteLength:fr,byteOffset:qt,bytes:cr.bytes}),o||(this.buffer=Vt,this.byteLength=fr,this.byteOffset=qt)},Yt=Qt[ut],o&&(Dr($t,"byteLength",ot),Dr(Qt,"buffer",pt),Dr(Qt,"byteLength",pt),Dr(Qt,"byteOffset",pt)),g(Yt,{getInt8:function(Vt){return Pr(this,1,Vt)[0]<<24>>24},getUint8:function(Vt){return Pr(this,1,Vt)[0]},getInt16:function(Vt){var bt=Pr(this,2,Vt,arguments.length>1?arguments[1]:!1);return(bt[1]<<8|bt[0])<<16>>16},getUint16:function(Vt){var bt=Pr(this,2,Vt,arguments.length>1?arguments[1]:!1);return bt[1]<<8|bt[0]},getInt32:function(Vt){return mr(Pr(this,4,Vt,arguments.length>1?arguments[1]:!1))},getUint32:function(Vt){return mr(Pr(this,4,Vt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Vt){return Kt(Pr(this,4,Vt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Vt){return Kt(Pr(this,8,Vt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Vt,bt){gr(this,1,Vt,_t,bt)},setUint8:function(Vt,bt){gr(this,1,Vt,_t,bt)},setInt16:function(Vt,bt){gr(this,2,Vt,hr,bt,arguments.length>2?arguments[2]:!1)},setUint16:function(Vt,bt){gr(this,2,Vt,hr,bt,arguments.length>2?arguments[2]:!1)},setInt32:function(Vt,bt){gr(this,4,Vt,Sr,bt,arguments.length>2?arguments[2]:!1)},setUint32:function(Vt,bt){gr(this,4,Vt,Sr,bt,arguments.length>2?arguments[2]:!1)},setFloat32:function(Vt,bt){gr(this,4,Vt,Ir,bt,arguments.length>2?arguments[2]:!1)},setFloat64:function(Vt,bt){gr(this,8,Vt,Fr,bt,arguments.length>2?arguments[2]:!1)}});else{var Cr=X&&St.name!==k;!v(function(){St(1)})||!v(function(){new St(-1)})||v(function(){return new St,new St(1.5),new St(NaN),St.length!==1||Cr&&!Y})?($t=function(Vt){return y(this,Rt),G(new St(I(Vt)),this,$t)},$t[ut]=Rt,Rt.constructor=$t,N($t,St)):Cr&&Y&&f(St,"name",k),D&&M(Yt)!==Xt&&D(Yt,Xt);var Er=new Qt(new $t(2)),pr=e(Yt.setInt8);Er.setInt8(0,2147483648),Er.setInt8(1,2147483649),(Er.getInt8(0)||!Er.getInt8(1))&&g(Yt,{setInt8:function(Vt,bt){pr(this,Vt,bt<<24>>24)},setUint8:function(Vt,bt){pr(this,Vt,bt<<24>>24)}},{unsafe:!0})}w($t,k),w(Qt,st),l.exports={ArrayBuffer:$t,DataView:Qt}},81499:function(l,p,t){var n=t(49671),e=t(4652),o=t(82628),i=t(12384),u=Math.min;l.exports=[].copyWithin||function(c,g){var v=n(this),y=o(v),S=e(c,y),E=e(g,y),I=arguments.length>2?arguments[2]:void 0,A=u((I===void 0?y:e(I,y))-E,y-S),T=1;for(E0;)E in v?v[S]=v[E]:i(v,S),S+=T,E+=T;return v}},43011:function(l,p,t){var n=t(49671),e=t(4652),o=t(82628);l.exports=function(u){for(var f=n(this),c=o(f),g=arguments.length,v=e(g>1?arguments[1]:void 0,c),y=g>2?arguments[2]:void 0,S=y===void 0?c:e(y,c);S>v;)f[v++]=u;return f}},13349:function(l,p,t){var n=t(66655).forEach,e=t(6148),o=e("forEach");l.exports=o?[].forEach:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}},5220:function(l,p,t){var n=t(82628);l.exports=function(e,o,i){for(var u=0,f=arguments.length>2?i:n(o),c=new e(f);f>u;)c[u]=o[u++];return c}},48258:function(l,p,t){var n=t(45526),e=t(96499),o=t(49671),i=t(39969),u=t(48199),f=t(11051),c=t(82628),g=t(84082),v=t(90619),y=t(81077),S=Array;l.exports=function(I){var A=o(I),T=f(this),M=arguments.length,D=M>1?arguments[1]:void 0,$=D!==void 0;$&&(D=n(D,M>2?arguments[2]:void 0));var U=y(A),G=0,N,w,W,X,Y,k;if(U&&!(this===S&&u(U)))for(w=T?new this:[],X=v(A,U),Y=X.next;!(W=e(Y,X)).done;G++)k=$?i(X,D,[W.value,G],!0):W.value,g(w,G,k);else for(N=c(A),w=T?new this(N):S(N);N>G;G++)k=$?D(A[G],G):A[G],g(w,G,k);return w.length=G,w}},94319:function(l,p,t){var n=t(36859),e=t(4652),o=t(82628),i=function(u){return function(f,c,g){var v=n(f),y=o(v);if(y===0)return!u&&-1;var S=e(g,y),E;if(u&&c!==c){for(;y>S;)if(E=v[S++],E!==E)return!0}else for(;y>S;S++)if((u||S in v)&&v[S]===c)return u||S||0;return!u&&-1}};l.exports={includes:i(!0),indexOf:i(!1)}},73849:function(l,p,t){var n=t(45526),e=t(72181),o=t(49671),i=t(82628),u=function(f){var c=f===1;return function(g,v,y){for(var S=o(g),E=e(S),I=i(E),A=n(v,y),T,M;I-- >0;)if(T=E[I],M=A(T,I,S),M)switch(f){case 0:return T;case 1:return I}return c?-1:void 0}};l.exports={findLast:u(0),findLastIndex:u(1)}},66655:function(l,p,t){var n=t(45526),e=t(11286),o=t(72181),i=t(49671),u=t(82628),f=t(62083),c=e([].push),g=function(v){var y=v===1,S=v===2,E=v===3,I=v===4,A=v===6,T=v===7,M=v===5||A;return function(D,$,U,G){for(var N=i(D),w=o(N),W=u(w),X=n($,U),Y=0,k=G||f,st=y?k(D,W):S||T?k(D,0):void 0,ut,rt;W>Y;Y++)if((M||Y in w)&&(ut=w[Y],rt=X(ut,Y,N),v))if(y)st[Y]=rt;else if(rt)switch(v){case 3:return!0;case 5:return ut;case 6:return Y;case 2:c(st,ut)}else switch(v){case 4:return!1;case 7:c(st,ut)}return A?-1:E||I?I:st}};l.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},58465:function(l,p,t){var n=t(66543),e=t(36859),o=t(12105),i=t(82628),u=t(6148),f=Math.min,c=[].lastIndexOf,g=!!c&&1/[1].lastIndexOf(1,-0)<0,v=u("lastIndexOf"),y=g||!v;l.exports=y?function(E){if(g)return n(c,this,arguments)||0;var I=e(this),A=i(I);if(A===0)return-1;var T=A-1;for(arguments.length>1&&(T=f(T,o(arguments[1]))),T<0&&(T=A+T);T>=0;T--)if(T in I&&I[T]===E)return T||0;return-1}:c},52183:function(l,p,t){var n=t(72069),e=t(18565),o=t(73126),i=e("species");l.exports=function(u){return o>=51||!n(function(){var f=[],c=f.constructor={};return c[i]=function(){return{foo:1}},f[u](Boolean).foo!==1})}},6148:function(l,p,t){var n=t(72069);l.exports=function(e,o){var i=[][e];return!!i&&n(function(){i.call(null,o||function(){return 1},1)})}},97264:function(l,p,t){var n=t(85156),e=t(49671),o=t(72181),i=t(82628),u=TypeError,f="Reduce of empty array with no initial value",c=function(g){return function(v,y,S,E){var I=e(v),A=o(I),T=i(I);if(n(y),T===0&&S<2)throw new u(f);var M=g?T-1:0,D=g?-1:1;if(S<2)for(;;){if(M in A){E=A[M],M+=D;break}if(M+=D,g?M<0:T<=M)throw new u(f)}for(;g?M>=0:T>M;M+=D)M in A&&(E=y(E,A[M],M,I));return E}};l.exports={left:c(!1),right:c(!0)}},2213:function(l,p,t){var n=t(92986),e=t(3438),o=TypeError,i=Object.getOwnPropertyDescriptor,u=n&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(f){return f instanceof TypeError}}();l.exports=u?function(f,c){if(e(f)&&!i(f,"length").writable)throw new o("Cannot set read only .length");return f.length=c}:function(f,c){return f.length=c}},22806:function(l,p,t){var n=t(11286);l.exports=n([].slice)},13270:function(l,p,t){var n=t(22806),e=Math.floor,o=function(i,u){var f=i.length;if(f<8)for(var c=1,g,v;c0;)i[v]=i[--v];v!==c++&&(i[v]=g)}else for(var y=e(f/2),S=o(n(i,0,y),u),E=o(n(i,y),u),I=S.length,A=E.length,T=0,M=0;T=g||y<0)throw new o("Incorrect index");for(var S=new u(g),E=0;E1?arguments[1]:void 0),rt;rt=rt?rt.next:st.first;)for(ut(rt.value,rt.key,this);rt&&rt.removed;)rt=rt.previous},has:function(k){return!!X(this,k)}}),o(N,$?{get:function(k){var st=X(this,k);return st&&st.value},set:function(k,st){return W(this,k===0?0:k,st)}}:{add:function(k){return W(this,k=k===0?0:k,k)}}),S&&e(N,"size",{configurable:!0,get:function(){return w(this).size}}),G},setStrong:function(M,D,$){var U=D+" Iterator",G=T(D),N=T(U);g(M,D,function(w,W){A(this,{type:U,target:w,state:G(w),kind:W,last:void 0})},function(){for(var w=N(this),W=w.kind,X=w.last;X&&X.removed;)X=X.previous;return!w.target||!(w.last=X=X?X.next:w.state.first)?(w.target=void 0,v(void 0,!0)):v(W==="keys"?X.key:W==="values"?X.value:[X.key,X.value],!1)},$?"entries":"values",!$,!0),y(D)}}},94667:function(l,p,t){var n=t(11286),e=t(2725),o=t(31853).getWeakData,i=t(12833),u=t(25001),f=t(5683),c=t(37540),g=t(55902),v=t(66655),y=t(94879),S=t(82367),E=S.set,I=S.getterFor,A=v.find,T=v.findIndex,M=n([].splice),D=0,$=function(N){return N.frozen||(N.frozen=new U)},U=function(){this.entries=[]},G=function(N,w){return A(N.entries,function(W){return W[0]===w})};U.prototype={get:function(N){var w=G(this,N);if(w)return w[1]},has:function(N){return!!G(this,N)},set:function(N,w){var W=G(this,N);W?W[1]=w:this.entries.push([N,w])},delete:function(N){var w=T(this.entries,function(W){return W[0]===N});return~w&&M(this.entries,w,1),!!~w}},l.exports={getConstructor:function(N,w,W,X){var Y=N(function(rt,at){i(rt,k),E(rt,{type:w,id:D++,frozen:void 0}),f(at)||g(at,rt[X],{that:rt,AS_ENTRIES:W})}),k=Y.prototype,st=I(w),ut=function(rt,at,ot){var pt=st(rt),Ct=o(u(at),!0);return Ct===!0?$(pt).set(at,ot):Ct[pt.id]=ot,rt};return e(k,{delete:function(rt){var at=st(this);if(!c(rt))return!1;var ot=o(rt);return ot===!0?$(at).delete(rt):ot&&y(ot,at.id)&&delete ot[at.id]},has:function(at){var ot=st(this);if(!c(at))return!1;var pt=o(at);return pt===!0?$(ot).has(at):pt&&y(pt,ot.id)}}),e(k,W?{get:function(at){var ot=st(this);if(c(at)){var pt=o(at);return pt===!0?$(ot).get(at):pt?pt[ot.id]:void 0}},set:function(at,ot){return ut(this,at,ot)}}:{add:function(at){return ut(this,at,!0)}}),Y}}},89378:function(l,p,t){var n=t(14304),e=t(66009),o=t(11286),i=t(13278),u=t(16142),f=t(31853),c=t(55902),g=t(12833),v=t(23583),y=t(5683),S=t(37540),E=t(72069),I=t(97494),A=t(78401),T=t(32345);l.exports=function(M,D,$){var U=M.indexOf("Map")!==-1,G=M.indexOf("Weak")!==-1,N=U?"set":"add",w=e[M],W=w&&w.prototype,X=w,Y={},k=function(Ct){var St=o(W[Ct]);u(W,Ct,Ct==="add"?function(Rt){return St(this,Rt===0?0:Rt),this}:Ct==="delete"?function($t){return G&&!S($t)?!1:St(this,$t===0?0:$t)}:Ct==="get"?function(Rt){return G&&!S(Rt)?void 0:St(this,Rt===0?0:Rt)}:Ct==="has"?function(Rt){return G&&!S(Rt)?!1:St(this,Rt===0?0:Rt)}:function(Rt,Qt){return St(this,Rt===0?0:Rt,Qt),this})},st=i(M,!v(w)||!(G||W.forEach&&!E(function(){new w().entries().next()})));if(st)X=$.getConstructor(D,M,U,N),f.enable();else if(i(M,!0)){var ut=new X,rt=ut[N](G?{}:-0,1)!==ut,at=E(function(){ut.has(1)}),ot=I(function(Ct){new w(Ct)}),pt=!G&&E(function(){for(var Ct=new w,St=5;St--;)Ct[N](St,St);return!Ct.has(-0)});ot||(X=D(function(Ct,St){g(Ct,W);var $t=T(new w,Ct,X);return y(St)||c(St,$t[N],{that:$t,AS_ENTRIES:U}),$t}),X.prototype=W,W.constructor=X),(at||pt)&&(k("delete"),k("has"),U&&k("get")),(pt||rt)&&k(N),G&&W.clear&&delete W.clear}return Y[M]=X,n({global:!0,constructor:!0,forced:X!==w},Y),A(X,M),G||$.setStrong(X,M,U),X}},93706:function(l,p,t){var n=t(94879),e=t(16885),o=t(71349),i=t(7831);l.exports=function(u,f,c){for(var g=e(f),v=i.f,y=o.f,S=0;S"+y+""}},10659:function(l){l.exports=function(p,t){return{value:p,done:t}}},90809:function(l,p,t){var n=t(92986),e=t(7831),o=t(18526);l.exports=n?function(i,u,f){return e.f(i,u,o(1,f))}:function(i,u,f){return i[u]=f,i}},18526:function(l){l.exports=function(p,t){return{enumerable:!(p&1),configurable:!(p&2),writable:!(p&4),value:t}}},84082:function(l,p,t){var n=t(92986),e=t(7831),o=t(18526);l.exports=function(i,u,f){n?e.f(i,u,o(0,f)):i[u]=f}},11890:function(l,p,t){var n=t(11286),e=t(72069),o=t(61607).start,i=RangeError,u=isFinite,f=Math.abs,c=Date.prototype,g=c.toISOString,v=n(c.getTime),y=n(c.getUTCDate),S=n(c.getUTCFullYear),E=n(c.getUTCHours),I=n(c.getUTCMilliseconds),A=n(c.getUTCMinutes),T=n(c.getUTCMonth),M=n(c.getUTCSeconds);l.exports=e(function(){return g.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!e(function(){g.call(new Date(NaN))})?function(){if(!u(v(this)))throw new i("Invalid time value");var $=this,U=S($),G=I($),N=U<0?"-":U>9999?"+":"";return N+o(f(U),N?6:4,0)+"-"+o(T($)+1,2,0)+"-"+o(y($),2,0)+"T"+o(E($),2,0)+":"+o(A($),2,0)+":"+o(M($),2,0)+"."+o(G,3,0)+"Z"}:g},84306:function(l,p,t){var n=t(25001),e=t(2064),o=TypeError;l.exports=function(i){if(n(this),i==="string"||i==="default")i="string";else if(i!=="number")throw new o("Incorrect hint");return e(this,i)}},85500:function(l,p,t){var n=t(13749),e=t(7831);l.exports=function(o,i,u){return u.get&&n(u.get,i,{getter:!0}),u.set&&n(u.set,i,{setter:!0}),e.f(o,i,u)}},16142:function(l,p,t){var n=t(23583),e=t(7831),o=t(13749),i=t(36003);l.exports=function(u,f,c,g){g||(g={});var v=g.enumerable,y=g.name!==void 0?g.name:f;if(n(c)&&o(c,y,g),g.global)v?u[f]=c:i(f,c);else{try{g.unsafe?u[f]&&(v=!0):delete u[f]}catch(S){}v?u[f]=c:e.f(u,f,{value:c,enumerable:!1,configurable:!g.nonConfigurable,writable:!g.nonWritable})}return u}},2725:function(l,p,t){var n=t(16142);l.exports=function(e,o,i){for(var u in o)n(e,u,o[u],i);return e}},36003:function(l,p,t){var n=t(66009),e=Object.defineProperty;l.exports=function(o,i){try{e(n,o,{value:i,configurable:!0,writable:!0})}catch(u){n[o]=i}return i}},12384:function(l,p,t){var n=t(82453),e=TypeError;l.exports=function(o,i){if(!delete o[i])throw new e("Cannot delete property "+n(i)+" of "+n(o))}},92986:function(l,p,t){var n=t(72069);l.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},63741:function(l,p,t){var n=t(66009),e=t(18096),o=t(99050),i=n.structuredClone,u=n.ArrayBuffer,f=n.MessageChannel,c=!1,g,v,y,S;if(o)c=function(E){i(E,{transfer:[E]})};else if(u)try{f||(g=e("worker_threads"),g&&(f=g.MessageChannel)),f&&(v=new f,y=new u(2),S=function(E){v.port1.postMessage(null,[E])},y.byteLength===2&&(S(y),y.byteLength===0&&(c=S)))}catch(E){}l.exports=c},85501:function(l,p,t){var n=t(66009),e=t(37540),o=n.document,i=e(o)&&e(o.createElement);l.exports=function(u){return i?o.createElement(u):{}}},20095:function(l){var p=TypeError,t=9007199254740991;l.exports=function(n){if(n>t)throw p("Maximum allowed index exceeded");return n}},74408:function(l){l.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},93014:function(l){l.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},39882:function(l,p,t){var n=t(85501),e=n("span").classList,o=e&&e.constructor&&e.constructor.prototype;l.exports=o===Object.prototype?void 0:o},54040:function(l,p,t){var n=t(89042),e=n.match(/firefox\/(\d+)/i);l.exports=!!e&&+e[1]},63144:function(l,p,t){var n=t(56422),e=t(42954);l.exports=!n&&!e&&typeof window=="object"&&typeof document=="object"},5017:function(l){l.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},56422:function(l){l.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},87216:function(l,p,t){var n=t(89042);l.exports=/MSIE|Trident/.test(n)},92150:function(l,p,t){var n=t(89042);l.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble!="undefined"},51149:function(l,p,t){var n=t(89042);l.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},42954:function(l,p,t){var n=t(66009),e=t(14274);l.exports=e(n.process)==="process"},81539:function(l,p,t){var n=t(89042);l.exports=/web0s(?!.*chrome)/i.test(n)},89042:function(l){l.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},73126:function(l,p,t){var n=t(66009),e=t(89042),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,f=u&&u.v8,c,g;f&&(c=f.split("."),g=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!g&&e&&(c=e.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=e.match(/Chrome\/(\d+)/),c&&(g=+c[1]))),l.exports=g},68674:function(l,p,t){var n=t(89042),e=n.match(/AppleWebKit\/(\d+)\./);l.exports=!!e&&+e[1]},75785:function(l){l.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},40851:function(l,p,t){var n=t(11286),e=Error,o=n("".replace),i=function(c){return String(new e(c).stack)}("zxcasd"),u=/\n\s*at [^:]*:[^\n]*/,f=u.test(i);l.exports=function(c,g){if(f&&typeof c=="string"&&!e.prepareStackTrace)for(;g--;)c=o(c,u,"");return c}},97077:function(l,p,t){var n=t(90809),e=t(40851),o=t(16929),i=Error.captureStackTrace;l.exports=function(u,f,c,g){o&&(i?i(u,f):n(u,"stack",e(c,g)))}},16929:function(l,p,t){var n=t(72069),e=t(18526);l.exports=!n(function(){var o=new Error("a");return"stack"in o?(Object.defineProperty(o,"stack",e(1,7)),o.stack!==7):!0})},58434:function(l,p,t){var n=t(92986),e=t(72069),o=t(25001),i=t(15453),u=Error.prototype.toString,f=e(function(){if(n){var c=Object.create(Object.defineProperty({},"name",{get:function(){return this===c}}));if(u.call(c)!=="true")return!0}return u.call({message:1,name:2})!=="2: 1"||u.call({})!=="Error"});l.exports=f?function(){var g=o(this),v=i(g.name,"Error"),y=i(g.message);return v?y?v+": "+y:v:y}:u},14304:function(l,p,t){var n=t(66009),e=t(71349).f,o=t(90809),i=t(16142),u=t(36003),f=t(93706),c=t(13278);l.exports=function(g,v){var y=g.target,S=g.global,E=g.stat,I,A,T,M,D,$;if(S?A=n:E?A=n[y]||u(y,{}):A=n[y]&&n[y].prototype,A)for(T in v){if(D=v[T],g.dontCallGetSet?($=e(A,T),M=$&&$.value):M=A[T],I=c(S?T:y+(E?".":"#")+T,g.forced),!I&&M!==void 0){if(typeof D==typeof M)continue;f(D,M)}(g.sham||M&&M.sham)&&o(D,"sham",!0),i(A,T,D,g)}}},72069:function(l){l.exports=function(p){try{return!!p()}catch(t){return!0}}},63194:function(l,p,t){t(31145);var n=t(96499),e=t(16142),o=t(44381),i=t(72069),u=t(18565),f=t(90809),c=u("species"),g=RegExp.prototype;l.exports=function(v,y,S,E){var I=u(v),A=!i(function(){var $={};return $[I]=function(){return 7},""[v]($)!==7}),T=A&&!i(function(){var $=!1,U=/a/;return v==="split"&&(U={},U.constructor={},U.constructor[c]=function(){return U},U.flags="",U[I]=/./[I]),U.exec=function(){return $=!0,null},U[I](""),!$});if(!A||!T||S){var M=/./[I],D=y(I,""[v],function($,U,G,N,w){var W=U.exec;return W===o||W===g.exec?A&&!w?{done:!0,value:n(M,U,G,N)}:{done:!0,value:n($,G,U,N)}:{done:!1}});e(String.prototype,v,D[0]),e(g,I,D[1])}E&&f(g[I],"sham",!0)}},53149:function(l,p,t){var n=t(3438),e=t(82628),o=t(20095),i=t(45526),u=function(f,c,g,v,y,S,E,I){for(var A=y,T=0,M=E?i(E,I):!1,D,$;T0&&n(D)?($=e(D),A=u(f,c,D,$,A,S-1)-1):(o(A+1),f[A]=D),A++),T++;return A};l.exports=u},27534:function(l,p,t){var n=t(72069);l.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},66543:function(l,p,t){var n=t(87878),e=Function.prototype,o=e.apply,i=e.call;l.exports=typeof Reflect=="object"&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},45526:function(l,p,t){var n=t(77422),e=t(85156),o=t(87878),i=n(n.bind);l.exports=function(u,f){return e(u),f===void 0?u:o?i(u,f):function(){return u.apply(f,arguments)}}},87878:function(l,p,t){var n=t(72069);l.exports=!n(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})},91384:function(l,p,t){var n=t(11286),e=t(85156),o=t(37540),i=t(94879),u=t(22806),f=t(87878),c=Function,g=n([].concat),v=n([].join),y={},S=function(E,I,A){if(!i(y,I)){for(var T=[],M=0;M]*>)/g,g=/\$([$&'`]|\d{1,2})/g;l.exports=function(v,y,S,E,I,A){var T=S+v.length,M=E.length,D=g;return I!==void 0&&(I=e(I),D=c),u(A,D,function($,U){var G;switch(i(U,0)){case"$":return"$";case"&":return v;case"`":return f(y,0,S);case"'":return f(y,T);case"<":G=I[f(U,1,-1)];break;default:var N=+U;if(N===0)return $;if(N>M){var w=o(N/10);return w===0?$:w<=M?E[w-1]===void 0?i(U,1):E[w-1]+i(U,1):$}G=E[N-1]}return G===void 0?"":G})}},66009:function(l){var p=function(t){return t&&t.Math===Math&&t};l.exports=p(typeof globalThis=="object"&&globalThis)||p(typeof window=="object"&&window)||p(typeof self=="object"&&self)||p(typeof global=="object"&&global)||p(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},94879:function(l,p,t){var n=t(11286),e=t(49671),o=n({}.hasOwnProperty);l.exports=Object.hasOwn||function(u,f){return o(e(u),f)}},19423:function(l){l.exports={}},99095:function(l){l.exports=function(p,t){try{arguments.length===1?console.error(p):console.error(p,t)}catch(n){}}},96439:function(l,p,t){var n=t(38941);l.exports=n("document","documentElement")},52515:function(l,p,t){var n=t(92986),e=t(72069),o=t(85501);l.exports=!n&&!e(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},25212:function(l){var p=Array,t=Math.abs,n=Math.pow,e=Math.floor,o=Math.log,i=Math.LN2,u=function(c,g,v){var y=p(v),S=v*8-g-1,E=(1<>1,A=g===23?n(2,-24)-n(2,-77):0,T=c<0||c===0&&1/c<0?1:0,M=0,D,$,U;for(c=t(c),c!==c||c===1/0?($=c!==c?1:0,D=E):(D=e(o(c)/i),U=n(2,-D),c*U<1&&(D--,U*=2),D+I>=1?c+=A/U:c+=A*n(2,1-I),c*U>=2&&(D++,U/=2),D+I>=E?($=0,D=E):D+I>=1?($=(c*U-1)*n(2,g),D+=I):($=c*n(2,I-1)*n(2,g),D=0));g>=8;)y[M++]=$&255,$/=256,g-=8;for(D=D<0;)y[M++]=D&255,D/=256,S-=8;return y[--M]|=T*128,y},f=function(c,g){var v=c.length,y=v*8-g-1,S=(1<>1,I=y-7,A=v-1,T=c[A--],M=T&127,D;for(T>>=7;I>0;)M=M*256+c[A--],I-=8;for(D=M&(1<<-I)-1,M>>=-I,I+=g;I>0;)D=D*256+c[A--],I-=8;if(M===0)M=1-E;else{if(M===S)return D?NaN:T?-1/0:1/0;D+=n(2,g),M-=E}return(T?-1:1)*D*n(2,M-g)};l.exports={pack:u,unpack:f}},72181:function(l,p,t){var n=t(11286),e=t(72069),o=t(14274),i=Object,u=n("".split);l.exports=e(function(){return!i("z").propertyIsEnumerable(0)})?function(f){return o(f)==="String"?u(f,""):i(f)}:i},32345:function(l,p,t){var n=t(23583),e=t(37540),o=t(15861);l.exports=function(i,u,f){var c,g;return o&&n(c=u.constructor)&&c!==f&&e(g=c.prototype)&&g!==f.prototype&&o(i,g),i}},84352:function(l,p,t){var n=t(11286),e=t(23583),o=t(70443),i=n(Function.toString);e(o.inspectSource)||(o.inspectSource=function(u){return i(u)}),l.exports=o.inspectSource},31486:function(l,p,t){var n=t(37540),e=t(90809);l.exports=function(o,i){n(i)&&"cause"in i&&e(o,"cause",i.cause)}},31853:function(l,p,t){var n=t(14304),e=t(11286),o=t(19423),i=t(37540),u=t(94879),f=t(7831).f,c=t(83258),g=t(92880),v=t(28174),y=t(36374),S=t(27534),E=!1,I=y("meta"),A=0,T=function(N){f(N,I,{value:{objectID:"O"+A++,weakData:{}}})},M=function(N,w){if(!i(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!u(N,I)){if(!v(N))return"F";if(!w)return"E";T(N)}return N[I].objectID},D=function(N,w){if(!u(N,I)){if(!v(N))return!0;if(!w)return!1;T(N)}return N[I].weakData},$=function(N){return S&&E&&v(N)&&!u(N,I)&&T(N),N},U=function(){G.enable=function(){},E=!0;var N=c.f,w=e([].splice),W={};W[I]=1,N(W).length&&(c.f=function(X){for(var Y=N(X),k=0,st=Y.length;kY;Y++)if(st=ot(A[Y]),st&&c(I,st))return st;return new E(!1)}W=g(A,X)}for(ut=U?A.next:W.next;!(rt=e(ut,W)).done;){try{st=ot(rt.value)}catch(pt){y(W,"throw",pt)}if(typeof st=="object"&&st&&c(I,st))return st}return new E(!1)}},99797:function(l,p,t){var n=t(96499),e=t(25001),o=t(10512);l.exports=function(i,u,f){var c,g;e(i);try{if(c=o(i,"return"),!c){if(u==="throw")throw f;return f}c=n(c,i)}catch(v){g=!0,c=v}if(u==="throw")throw f;if(g)throw c;return e(c),f}},26820:function(l,p,t){var n=t(24519).IteratorPrototype,e=t(5406),o=t(18526),i=t(78401),u=t(29107),f=function(){return this};l.exports=function(c,g,v,y){var S=g+" Iterator";return c.prototype=e(n,{next:o(+!y,v)}),i(c,S,!1,!0),u[S]=f,c}},10218:function(l,p,t){var n=t(14304),e=t(96499),o=t(70457),i=t(86588),u=t(23583),f=t(26820),c=t(26313),g=t(15861),v=t(78401),y=t(90809),S=t(16142),E=t(18565),I=t(29107),A=t(24519),T=i.PROPER,M=i.CONFIGURABLE,D=A.IteratorPrototype,$=A.BUGGY_SAFARI_ITERATORS,U=E("iterator"),G="keys",N="values",w="entries",W=function(){return this};l.exports=function(X,Y,k,st,ut,rt,at){f(k,Y,st);var ot=function(ir){if(ir===ut&&Rt)return Rt;if(!$&&ir&&ir in St)return St[ir];switch(ir){case G:return function(){return new k(this,ir)};case N:return function(){return new k(this,ir)};case w:return function(){return new k(this,ir)}}return function(){return new k(this)}},pt=Y+" Iterator",Ct=!1,St=X.prototype,$t=St[U]||St["@@iterator"]||ut&&St[ut],Rt=!$&&$t||ot(ut),Qt=Y==="Array"&&St.entries||$t,Yt,Xt,er;if(Qt&&(Yt=c(Qt.call(new X)),Yt!==Object.prototype&&Yt.next&&(!o&&c(Yt)!==D&&(g?g(Yt,D):u(Yt[U])||S(Yt,U,W)),v(Yt,pt,!0,!0),o&&(I[pt]=W))),T&&ut===N&&$t&&$t.name!==N&&(!o&&M?y(St,"name",N):(Ct=!0,Rt=function(){return e($t,this)})),ut)if(Xt={values:ot(N),keys:rt?Rt:ot(G),entries:ot(w)},at)for(er in Xt)($||Ct||!(er in St))&&S(St,er,Xt[er]);else n({target:Y,proto:!0,forced:$||Ct},Xt);return(!o||at)&&St[U]!==Rt&&S(St,U,Rt,{name:ut}),I[Y]=Rt,Xt}},24519:function(l,p,t){var n=t(72069),e=t(23583),o=t(37540),i=t(5406),u=t(26313),f=t(16142),c=t(18565),g=t(70457),v=c("iterator"),y=!1,S,E,I;[].keys&&(I=[].keys(),"next"in I?(E=u(u(I)),E!==Object.prototype&&(S=E)):y=!0);var A=!o(S)||n(function(){var T={};return S[v].call(T)!==T});A?S={}:g&&(S=i(S)),e(S[v])||f(S,v,function(){return this}),l.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:y}},29107:function(l){l.exports={}},82628:function(l,p,t){var n=t(45344);l.exports=function(e){return n(e.length)}},13749:function(l,p,t){var n=t(11286),e=t(72069),o=t(23583),i=t(94879),u=t(92986),f=t(86588).CONFIGURABLE,c=t(84352),g=t(82367),v=g.enforce,y=g.get,S=String,E=Object.defineProperty,I=n("".slice),A=n("".replace),T=n([].join),M=u&&!e(function(){return E(function(){},"length",{value:8}).length!==8}),D=String(String).split("String"),$=l.exports=function(U,G,N){I(S(G),0,7)==="Symbol("&&(G="["+A(S(G),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),N&&N.getter&&(G="get "+G),N&&N.setter&&(G="set "+G),(!i(U,"name")||f&&U.name!==G)&&(u?E(U,"name",{value:G,configurable:!0}):U.name=G),M&&N&&i(N,"arity")&&U.length!==N.arity&&E(U,"length",{value:N.arity});try{N&&i(N,"constructor")&&N.constructor?u&&E(U,"prototype",{writable:!1}):U.prototype&&(U.prototype=void 0)}catch(W){}var w=v(U);return i(w,"source")||(w.source=T(D,typeof G=="string"?G:"")),U};Function.prototype.toString=$(function(){return o(this)&&y(this).source||c(this)},"toString")},1774:function(l,p,t){var n=t(11286),e=Map.prototype;l.exports={Map,set:n(e.set),get:n(e.get),has:n(e.has),remove:n(e.delete),proto:e}},98940:function(l){var p=Math.expm1,t=Math.exp;l.exports=!p||p(10)>22025.465794806718||p(10)<22025.465794806718||p(-2e-17)!==-2e-17?function(e){var o=+e;return o===0?o:o>-1e-6&&o<1e-6?o+o*o/2:t(o)-1}:p},10418:function(l,p,t){var n=t(93976),e=Math.abs,o=2220446049250313e-31,i=1/o,u=function(f){return f+i-i};l.exports=function(f,c,g,v){var y=+f,S=e(y),E=n(y);if(Sg||A!==A?E*(1/0):E*A}},93279:function(l,p,t){var n=t(10418),e=11920928955078125e-23,o=34028234663852886e22,i=11754943508222875e-54;l.exports=Math.fround||function(f){return n(f,e,o,i)}},41942:function(l){var p=Math.log,t=Math.LOG10E;l.exports=Math.log10||function(e){return p(e)*t}},49366:function(l){var p=Math.log;l.exports=Math.log1p||function(n){var e=+n;return e>-1e-8&&e<1e-8?e-e*e/2:p(1+e)}},93976:function(l){l.exports=Math.sign||function(t){var n=+t;return n===0||n!==n?n:n<0?-1:1}},22459:function(l){var p=Math.ceil,t=Math.floor;l.exports=Math.trunc||function(e){var o=+e;return(o>0?t:p)(o)}},9709:function(l,p,t){var n=t(66009),e=t(28167),o=t(45526),i=t(23115).set,u=t(76895),f=t(51149),c=t(92150),g=t(81539),v=t(42954),y=n.MutationObserver||n.WebKitMutationObserver,S=n.document,E=n.process,I=n.Promise,A=e("queueMicrotask"),T,M,D,$,U;if(!A){var G=new u,N=function(){var w,W;for(v&&(w=E.domain)&&w.exit();W=G.get();)try{W()}catch(X){throw G.head&&T(),X}w&&w.enter()};!f&&!v&&!g&&y&&S?(M=!0,D=S.createTextNode(""),new y(N).observe(D,{characterData:!0}),T=function(){D.data=M=!M}):!c&&I&&I.resolve?($=I.resolve(void 0),$.constructor=I,U=o($.then,$),T=function(){U(N)}):v?T=function(){E.nextTick(N)}:(i=o(i,n),T=function(){i(N)}),A=function(w){G.head||T(),G.add(w)}}l.exports=A},24649:function(l,p,t){var n=t(85156),e=TypeError,o=function(i){var u,f;this.promise=new i(function(c,g){if(u!==void 0||f!==void 0)throw new e("Bad Promise constructor");u=c,f=g}),this.resolve=n(u),this.reject=n(f)};l.exports.f=function(i){return new o(i)}},15453:function(l,p,t){var n=t(17361);l.exports=function(e,o){return e===void 0?arguments.length<2?"":o:n(e)}},92337:function(l,p,t){var n=t(11566),e=TypeError;l.exports=function(o){if(n(o))throw new e("The method doesn't accept regular expressions");return o}},98074:function(l,p,t){var n=t(66009),e=n.isFinite;l.exports=Number.isFinite||function(i){return typeof i=="number"&&e(i)}},25838:function(l,p,t){var n=t(66009),e=t(72069),o=t(11286),i=t(17361),u=t(85900).trim,f=t(77082),c=o("".charAt),g=n.parseFloat,v=n.Symbol,y=v&&v.iterator,S=1/g(f+"-0")!==-1/0||y&&!e(function(){g(Object(y))});l.exports=S?function(I){var A=u(i(I)),T=g(A);return T===0&&c(A,0)==="-"?-0:T}:g},23009:function(l,p,t){var n=t(66009),e=t(72069),o=t(11286),i=t(17361),u=t(85900).trim,f=t(77082),c=n.parseInt,g=n.Symbol,v=g&&g.iterator,y=/^[+-]?0x/i,S=o(y.exec),E=c(f+"08")!==8||c(f+"0x16")!==22||v&&!e(function(){c(Object(v))});l.exports=E?function(A,T){var M=u(i(A));return c(M,T>>>0||(S(y,M)?16:10))}:c},16667:function(l,p,t){var n=t(92986),e=t(11286),o=t(96499),i=t(72069),u=t(18350),f=t(24943),c=t(79591),g=t(49671),v=t(72181),y=Object.assign,S=Object.defineProperty,E=e([].concat);l.exports=!y||i(function(){if(n&&y({b:1},y(S({},"a",{enumerable:!0,get:function(){S(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var I={},A={},T=Symbol("assign detection"),M="abcdefghijklmnopqrst";return I[T]=7,M.split("").forEach(function(D){A[D]=D}),y({},I)[T]!==7||u(y({},A)).join("")!==M})?function(A,T){for(var M=g(A),D=arguments.length,$=1,U=f.f,G=c.f;D>$;)for(var N=v(arguments[$++]),w=U?E(u(N),U(N)):u(N),W=w.length,X=0,Y;W>X;)Y=w[X++],(!n||o(G,N,Y))&&(M[Y]=N[Y]);return M}:y},5406:function(l,p,t){var n=t(25001),e=t(61963),o=t(75785),i=t(19423),u=t(96439),f=t(85501),c=t(44869),g=">",v="<",y="prototype",S="script",E=c("IE_PROTO"),I=function(){},A=function(U){return v+S+g+U+v+"/"+S+g},T=function(U){U.write(A("")),U.close();var G=U.parentWindow.Object;return U=null,G},M=function(){var U=f("iframe"),G="java"+S+":",N;return U.style.display="none",u.appendChild(U),U.src=String(G),N=U.contentWindow.document,N.open(),N.write(A("document.F=Object")),N.close(),N.F},D,$=function(){try{D=new ActiveXObject("htmlfile")}catch(G){}$=typeof document!="undefined"?document.domain&&D?T(D):M():T(D);for(var U=o.length;U--;)delete $[y][o[U]];return $()};i[E]=!0,l.exports=Object.create||function(G,N){var w;return G!==null?(I[y]=n(G),w=new I,I[y]=null,w[E]=G):w=$(),N===void 0?w:e.f(w,N)}},61963:function(l,p,t){var n=t(92986),e=t(356),o=t(7831),i=t(25001),u=t(36859),f=t(18350);p.f=n&&!e?Object.defineProperties:function(g,v){i(g);for(var y=u(v),S=f(v),E=S.length,I=0,A;E>I;)o.f(g,A=S[I++],y[A]);return g}},7831:function(l,p,t){var n=t(92986),e=t(52515),o=t(356),i=t(25001),u=t(50035),f=TypeError,c=Object.defineProperty,g=Object.getOwnPropertyDescriptor,v="enumerable",y="configurable",S="writable";p.f=n?o?function(I,A,T){if(i(I),A=u(A),i(T),typeof I=="function"&&A==="prototype"&&"value"in T&&S in T&&!T[S]){var M=g(I,A);M&&M[S]&&(I[A]=T.value,T={configurable:y in T?T[y]:M[y],enumerable:v in T?T[v]:M[v],writable:!1})}return c(I,A,T)}:c:function(I,A,T){if(i(I),A=u(A),i(T),e)try{return c(I,A,T)}catch(M){}if("get"in T||"set"in T)throw new f("Accessors not supported");return"value"in T&&(I[A]=T.value),I}},71349:function(l,p,t){var n=t(92986),e=t(96499),o=t(79591),i=t(18526),u=t(36859),f=t(50035),c=t(94879),g=t(52515),v=Object.getOwnPropertyDescriptor;p.f=n?v:function(S,E){if(S=u(S),E=f(E),g)try{return v(S,E)}catch(I){}if(c(S,E))return i(!e(o.f,S,E),S[E])}},92880:function(l,p,t){var n=t(14274),e=t(36859),o=t(83258).f,i=t(22806),u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(c){try{return o(c)}catch(g){return i(u)}};l.exports.f=function(g){return u&&n(g)==="Window"?f(g):o(e(g))}},83258:function(l,p,t){var n=t(6242),e=t(75785),o=e.concat("length","prototype");p.f=Object.getOwnPropertyNames||function(u){return n(u,o)}},24943:function(l,p){p.f=Object.getOwnPropertySymbols},26313:function(l,p,t){var n=t(94879),e=t(23583),o=t(49671),i=t(44869),u=t(87501),f=i("IE_PROTO"),c=Object,g=c.prototype;l.exports=u?c.getPrototypeOf:function(v){var y=o(v);if(n(y,f))return y[f];var S=y.constructor;return e(S)&&y instanceof S?S.prototype:y instanceof c?g:null}},28174:function(l,p,t){var n=t(72069),e=t(37540),o=t(14274),i=t(72058),u=Object.isExtensible,f=n(function(){u(1)});l.exports=f||i?function(g){return!e(g)||i&&o(g)==="ArrayBuffer"?!1:u?u(g):!0}:u},95307:function(l,p,t){var n=t(11286);l.exports=n({}.isPrototypeOf)},6242:function(l,p,t){var n=t(11286),e=t(94879),o=t(36859),i=t(94319).indexOf,u=t(19423),f=n([].push);l.exports=function(c,g){var v=o(c),y=0,S=[],E;for(E in v)!e(u,E)&&e(v,E)&&f(S,E);for(;g.length>y;)e(v,E=g[y++])&&(~i(S,E)||f(S,E));return S}},18350:function(l,p,t){var n=t(6242),e=t(75785);l.exports=Object.keys||function(i){return n(i,e)}},79591:function(l,p){var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,e=n&&!t.call({1:2},1);p.f=e?function(i){var u=n(this,i);return!!u&&u.enumerable}:t},57629:function(l,p,t){var n=t(70457),e=t(66009),o=t(72069),i=t(68674);l.exports=n||!o(function(){if(!(i&&i<535)){var u=Math.random();__defineSetter__.call(null,u,function(){}),delete e[u]}})},15861:function(l,p,t){var n=t(84756),e=t(37540),o=t(2068),i=t(53408);l.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,f={},c;try{c=n(Object.prototype,"__proto__","set"),c(f,[]),u=f instanceof Array}catch(g){}return function(v,y){return o(v),i(y),e(v)&&(u?c(v,y):v.__proto__=y),v}}():void 0)},8511:function(l,p,t){var n=t(92986),e=t(72069),o=t(11286),i=t(26313),u=t(18350),f=t(36859),c=t(79591).f,g=o(c),v=o([].push),y=n&&e(function(){var E=Object.create(null);return E[2]=2,!g(E,2)}),S=function(E){return function(I){for(var A=f(I),T=u(A),M=y&&i(A)===null,D=T.length,$=0,U=[],G;D>$;)G=T[$++],(!n||(M?G in A:g(A,G)))&&v(U,E?[G,A[G]]:A[G]);return U}};l.exports={entries:S(!0),values:S(!1)}},60105:function(l,p,t){var n=t(67878),e=t(9205);l.exports=n?{}.toString:function(){return"[object "+e(this)+"]"}},2064:function(l,p,t){var n=t(96499),e=t(23583),o=t(37540),i=TypeError;l.exports=function(u,f){var c,g;if(f==="string"&&e(c=u.toString)&&!o(g=n(c,u))||e(c=u.valueOf)&&!o(g=n(c,u))||f!=="string"&&e(c=u.toString)&&!o(g=n(c,u)))return g;throw new i("Can't convert object to primitive value")}},16885:function(l,p,t){var n=t(38941),e=t(11286),o=t(83258),i=t(24943),u=t(25001),f=e([].concat);l.exports=n("Reflect","ownKeys")||function(g){var v=o.f(u(g)),y=i.f;return y?f(v,y(g)):v}},75081:function(l,p,t){var n=t(66009);l.exports=n},67805:function(l){l.exports=function(p){try{return{error:!1,value:p()}}catch(t){return{error:!0,value:t}}}},37130:function(l,p,t){var n=t(66009),e=t(98844),o=t(23583),i=t(13278),u=t(84352),f=t(18565),c=t(63144),g=t(56422),v=t(70457),y=t(73126),S=e&&e.prototype,E=f("species"),I=!1,A=o(n.PromiseRejectionEvent),T=i("Promise",function(){var M=u(e),D=M!==String(e);if(!D&&y===66||v&&!(S.catch&&S.finally))return!0;if(!y||y<51||!/native code/.test(M)){var $=new e(function(N){N(1)}),U=function(N){N(function(){},function(){})},G=$.constructor={};if(G[E]=U,I=$.then(function(){})instanceof U,!I)return!0}return!D&&(c||g)&&!A});l.exports={CONSTRUCTOR:T,REJECTION_EVENT:A,SUBCLASSING:I}},98844:function(l,p,t){var n=t(66009);l.exports=n.Promise},87408:function(l,p,t){var n=t(25001),e=t(37540),o=t(24649);l.exports=function(i,u){if(n(i),e(u)&&u.constructor===i)return u;var f=o.f(i),c=f.resolve;return c(u),f.promise}},26035:function(l,p,t){var n=t(98844),e=t(97494),o=t(37130).CONSTRUCTOR;l.exports=o||!e(function(i){n.all(i).then(void 0,function(){})})},2594:function(l,p,t){var n=t(7831).f;l.exports=function(e,o,i){i in e||n(e,i,{configurable:!0,get:function(){return o[i]},set:function(u){o[i]=u}})}},76895:function(l){var p=function(){this.head=null,this.tail=null};p.prototype={add:function(t){var n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t){var n=this.head=t.next;return n===null&&(this.tail=null),t.item}}},l.exports=p},33064:function(l,p,t){var n=t(96499),e=t(25001),o=t(23583),i=t(14274),u=t(44381),f=TypeError;l.exports=function(c,g){var v=c.exec;if(o(v)){var y=n(v,c,g);return y!==null&&e(y),y}if(i(c)==="RegExp")return n(u,c,g);throw new f("RegExp#exec called on incompatible receiver")}},44381:function(l,p,t){var n=t(96499),e=t(11286),o=t(17361),i=t(29833),u=t(39807),f=t(96731),c=t(5406),g=t(82367).get,v=t(76769),y=t(85220),S=f("native-string-replace",String.prototype.replace),E=RegExp.prototype.exec,I=E,A=e("".charAt),T=e("".indexOf),M=e("".replace),D=e("".slice),$=function(){var w=/a/,W=/b*/g;return n(E,w,"a"),n(E,W,"a"),w.lastIndex!==0||W.lastIndex!==0}(),U=u.BROKEN_CARET,G=/()??/.exec("")[1]!==void 0,N=$||G||U||v||y;N&&(I=function(W){var X=this,Y=g(X),k=o(W),st=Y.raw,ut,rt,at,ot,pt,Ct,St;if(st)return st.lastIndex=X.lastIndex,ut=n(I,st,k),X.lastIndex=st.lastIndex,ut;var $t=Y.groups,Rt=U&&X.sticky,Qt=n(i,X),Yt=X.source,Xt=0,er=k;if(Rt&&(Qt=M(Qt,"y",""),T(Qt,"g")===-1&&(Qt+="g"),er=D(k,X.lastIndex),X.lastIndex>0&&(!X.multiline||X.multiline&&A(k,X.lastIndex-1)!==` +`),x=d?m.length-1:1;r.html(""),m.forEach((O,P)=>{r.append("tspan").attr("x",0).attr("dy",`${P===0?s[0]*x:s[1]}em`).text(O)})}}}function Dl(r){const{x:a,y:s,width:d,height:h}=r.getBBox();return[{x:a,y:s+h},{x:a,y:s},{x:a+d,y:s},{x:a+d,y:s+h}]}function mf(r){const{width:a,height:s}=r.getBoundingClientRect(),d=Dl(r),h=d[0].x,m=Math.min(d[0].y,d[1].y);return{x:h,y:m,width:a,height:s}}function xf(r,a){var s;const d=r&&((s=r.touches||r.sourceEvent&&r.sourceEvent.touches)==null?void 0:s[0]);let h=[0,0];try{h=d3Pointer(d||r,a)}catch(m){}return h.map(m=>isNaN(m)?0:m)}function Fl(r){const{event:a,$el:s}=r,d=s.subchart.main||s.main;let h;return a&&a.type==="brush"?h=a.selection:d&&(h=d.select(".bb-brush").node())&&(h=d3BrushSelection(h)),h}function Sf(r){return!("rect"in r)||"rect"in r&&r.hasAttribute("width")&&r.rect.width!==+r.getAttribute("width")?r.rect=r.getBoundingClientRect():r.rect}function Ef(r=!0,a=0,s=1e4){const d=window.crypto||window.msCrypto,h=d?a+d.getRandomValues(new Uint32Array(1))[0]%(s-a+1):Math.floor(Math.random()*(s-a)+a);return r?String(h):h}function Eo(r,a,s,d,h){if(s>d)return-1;const m=Math.floor((s+d)/2);let{x,w:O=0}=r[m];return h&&(x=r[m].y,O=r[m].h),a>=x&&a<=x+O?m:a{if(De(s)&&s.constructor){const d=new s.constructor;for(const h in s)d[h]=a(s[h]);return d}return s};return r.map(s=>a(s)).reduce((s,d)=>xo(xo({},s),d))}function bl(r={},a){aa(a)&&a.forEach(s=>bl(r,s));for(const s in a)/^\d+$/.test(s)||s in r||(r[s]=a[s]);return r}const Tf=r=>r.charAt(0).toUpperCase()+r.slice(1);function Af(r,a="-"){return r.split(a).map((s,d)=>d?s.charAt(0).toUpperCase()+s.slice(1).toLowerCase():s.toLowerCase()).join("")}const Ll=r=>[].slice.call(r);function Rf(r,a,s){const{rootSelector:d="",sheet:h}=r,x=`${d} ${(O=>O.replace(/\s?(bb-)/g,".$1").replace(/\.+/g,"."))(a)} {${s.join(";")}}`;return h[h.insertRule?"insertRule":"addRule"](x,h.cssRules.length)}function Pf(r){let a=[];return r.forEach(s=>{var d;try{s.cssRules&&s.cssRules.length&&(a=a.concat(Ll(s.cssRules)))}catch(h){(d=window.console)==null||d.warn(`Error while reading rules from ${s.href}: ${h.toString()}`)}}),a}function Cf(r){var a,s,d,h;return{x:((s=(a=window.pageXOffset)!=null?a:window.scrollX)!=null?s:0)+r.scrollLeft,y:((h=(d=window.pageYOffset)!=null?d:window.scrollY)!=null?h:0)+r.scrollTop}}function Mf(r){const a=r?r.transform:null,s=a&&a.baseVal;return s&&s.numberOfItems?s.getItem(0).matrix:{a:0,b:0,c:0,d:0,e:0,f:0}}function Nf(r){const a=r[0]instanceof Date,s=(a?r.map(Number):r).filter((d,h,m)=>m.indexOf(d)===h);return a?s.map(d=>new Date(d)):s}function Df(r){return r&&r.length?r.reduce((a,s)=>a.concat(s)):[]}function oa(r,...a){if(!a.length||a.length===1&&!a[0])return r;const s=a.shift();return De(r)&&De(s)&&Object.keys(s).forEach(d=>{const h=s[d];De(h)?(!r[d]&&(r[d]={}),r[d]=oa(r[d],h)):r[d]=aa(h)?h.concat():h}),oa(r,...a)}function $l(r,a=!0){let s;return r[0]instanceof Date?s=a?(d,h)=>d-h:(d,h)=>h-d:a&&!r.every(isNaN)?s=(d,h)=>d-h:a||(s=(d,h)=>d>h&&-1||dNl(d));return s.length?na(s[0])?s=Math[r](...s):s[0]instanceof Date&&(s=$l(s,r==="min")[0]):s=void 0,s}const bf=(r,a,s=1)=>{const d=[],h=Math.max(0,Math.ceil((a-r)/s))|0;for(let m=r;m{const r=()=>({bubbles:!1,cancelable:!1,screenX:0,screenY:0,clientX:0,clientY:0});try{return new MouseEvent("t"),(a,s,d=r())=>{a.dispatchEvent(new MouseEvent(s,d))}}catch(a){return(s,d,h=r())=>{const m=Ol.createEvent("MouseEvent");m.initMouseEvent(d,h.bubbles,h.cancelable,Me,0,h.screenX,h.screenY,h.clientX,h.clientY,!1,!1,!1,!1,0,null),s.dispatchEvent(m)}}})(),touch:(r,a,s)=>{const d=new Touch(oa({identifier:Date.now(),target:r,radiusX:2.5,radiusY:2.5,rotationAngle:10,force:.5},s));r.dispatchEvent(new TouchEvent(a,{cancelable:!0,bubbles:!0,shiftKey:!0,touches:[d],targetTouches:[],changedTouches:[d]}))}};function $f(r,a){let s=r;for(const d in a)s=s.replace(new RegExp(`{=${d}}`,"g"),a[d]);return s}function Uf(r){var a;let s;if(r instanceof Date)s=r;else if(Ne(r)){const{config:d,format:h}=this;s=(a=h.dataTime(d.data_xFormat)(r))!=null?a:new Date(r)}else na(r)&&!isNaN(r)&&(s=new Date(+r));return(!s||isNaN(+s))&&console&&console.error&&console.error(`Failed to parse x '${r}' to Date object`),s}function Bf(){var r,a;return((r=document)==null?void 0:r.hidden)===!1||((a=document)==null?void 0:a.visibilityState)==="visible"}function jf(r,a){const{DocumentTouch:s,matchMedia:d,navigator:h}=window;let m=!1;if(a)if(h&&"maxTouchPoints"in h)m=h.maxTouchPoints>0;else if("ontouchmove"in window||s&&document instanceof s)m=!0;else if(d!=null&&d("(pointer:coarse)").matches)m=!0;else{const O=h.userAgent;m=/\b(BlackBerry|webOS|iPhone|IEMobile)\b/i.test(O)||/\b(Android|Windows Phone|iPad|iPod)\b/i.test(O)}return r&&((d==null?void 0:d("any-hover:hover").matches)||(d==null?void 0:d("any-pointer:fine").matches))&&"mouse"||m&&"touch"||"mouse"}function Ul(r,a){a()===!1?requestAnimationFrame(()=>Ul(r,a)):r()}function Bl(r){const a=this.config;let s,d,h;const m=()=>{const x=d.shift();if(x&&s&&ea(s)&&x in s)return s=s[x],m();if(!x)return s};Object.keys(a).forEach(x=>{s=r,d=x.split("_"),h=m(),So(h)&&(a[x]=h)}),this.api&&(this.state.orgConfig=r)}var jl=Object.defineProperty,wl=(r,a,s)=>a in r?jl(r,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[a]=s,sa=(r,a,s)=>wl(r,typeof a!="symbol"?a+"":a,s);class Io{constructor(a={}){sa(this,"$$"),sa(this,"options"),this.options=a}$beforeInit(){}$init(){}$afterInit(){}$redraw(){}$willDestroy(){Object.keys(this).forEach(a=>{this[a]=null,delete this[a]})}}sa(Io,"version","3.12.4-nightly-20240726004631");class Gl{constructor(){return{selector:void 0,extent:1,area:0}}}var Vl=Object.defineProperty,Hl=(r,a,s)=>a in r?Vl(r,a,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[a]=s,Wl=(r,a,s)=>Hl(r,typeof a!="symbol"?a+"":a,s);class Kl extends Io{constructor(a){return super(a),Wl(this,"config"),this.config=new Gl,this}$init(){Bl.call(this,this.options)}$redraw(){const{$$:{$el:a},config:{selector:s}}=this,d=s?a.main.selectAll(s):a.text;!d.empty()&&this.preventLabelOverlap(d)}generateVoronoi(a){const{$$:s}=this,{scale:d}=s,[h,m]=["x","y"].map(x=>d[x].domain());return[h[1],m[0]]=[m[0],h[1]],Be.from(a).voronoi([...h,...m])}preventLabelOverlap(a){const{extent:s,area:d}=this.config,h=a.data().map(O=>[O.index,O.value]),m=this.generateVoronoi(h);let x=0;a.each(function(){const O=m.cellPolygon(x);if(O&&this){const[P,R]=h[x],[C,B]=Xo(O),L=Math.abs(Jo(O)),F=Math.round(Math.atan2(B-R,C-P)/Math.PI*2),Z=s*(F===0?1:-1),b=F===-1?-s:s+5,j=Math.abs(F)===1?"middle":F===0?"start":"end";this.style.display=L=Y&&(!W||k))st=M(N,0,Y);else{var ut=W&&!k&&$?{maxByteLength:$(N)}:void 0;st=new y(Y,ut);for(var rt=new S(N),at=new S(st),ot=I(Y,X),pt=0;pt>8&255]},Sr=function(Ut){return[Ut&255,Ut>>8&255,Ut>>16&255,Ut>>24&255]},mr=function(Ut){return Ut[3]<<24|Ut[2]<<16|Ut[1]<<8|Ut[0]},Ir=function(Ut){return xr(A(Ut),23,4)},Fr=function(Ut){return xr(Ut,52,8)},Dr=function(Ut,Vt,bt){c(Ut[ut],Vt,{configurable:!0,get:function(){return bt(this)[Vt]}})},Pr=function(Ut,Vt,bt,fr){var cr=pt(Ut),rr=I(bt),qt=!!fr;if(rr+Vt>cr.byteLength)throw new ir(at);var $r=cr.bytes,Br=rr+cr.byteOffset,Et=U($r,Br,Br+Vt);return qt?Et:yr(Et)},gr=function(Ut,Vt,bt,fr,cr,rr){var qt=pt(Ut),$r=I(bt),Br=fr(+cr),Et=!!rr;if($r+Vt>qt.byteLength)throw new ir(at);for(var Bt=qt.bytes,wt=$r+qt.byteOffset,gt=0;gtrr)throw new ir("Wrong offset");if(fr=fr===void 0?rr-qt:E(fr),qt+fr>rr)throw new ir(rt);Ct(this,{type:st,buffer:Vt,byteLength:fr,byteOffset:qt,bytes:cr.bytes}),o||(this.buffer=Vt,this.byteLength=fr,this.byteOffset=qt)},Yt=Qt[ut],o&&(Dr($t,"byteLength",ot),Dr(Qt,"buffer",pt),Dr(Qt,"byteLength",pt),Dr(Qt,"byteOffset",pt)),g(Yt,{getInt8:function(Vt){return Pr(this,1,Vt)[0]<<24>>24},getUint8:function(Vt){return Pr(this,1,Vt)[0]},getInt16:function(Vt){var bt=Pr(this,2,Vt,arguments.length>1?arguments[1]:!1);return(bt[1]<<8|bt[0])<<16>>16},getUint16:function(Vt){var bt=Pr(this,2,Vt,arguments.length>1?arguments[1]:!1);return bt[1]<<8|bt[0]},getInt32:function(Vt){return mr(Pr(this,4,Vt,arguments.length>1?arguments[1]:!1))},getUint32:function(Vt){return mr(Pr(this,4,Vt,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(Vt){return Kt(Pr(this,4,Vt,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(Vt){return Kt(Pr(this,8,Vt,arguments.length>1?arguments[1]:!1),52)},setInt8:function(Vt,bt){gr(this,1,Vt,_t,bt)},setUint8:function(Vt,bt){gr(this,1,Vt,_t,bt)},setInt16:function(Vt,bt){gr(this,2,Vt,hr,bt,arguments.length>2?arguments[2]:!1)},setUint16:function(Vt,bt){gr(this,2,Vt,hr,bt,arguments.length>2?arguments[2]:!1)},setInt32:function(Vt,bt){gr(this,4,Vt,Sr,bt,arguments.length>2?arguments[2]:!1)},setUint32:function(Vt,bt){gr(this,4,Vt,Sr,bt,arguments.length>2?arguments[2]:!1)},setFloat32:function(Vt,bt){gr(this,4,Vt,Ir,bt,arguments.length>2?arguments[2]:!1)},setFloat64:function(Vt,bt){gr(this,8,Vt,Fr,bt,arguments.length>2?arguments[2]:!1)}});else{var Cr=X&&St.name!==k;!v(function(){St(1)})||!v(function(){new St(-1)})||v(function(){return new St,new St(1.5),new St(NaN),St.length!==1||Cr&&!Y})?($t=function(Vt){return y(this,Rt),G(new St(I(Vt)),this,$t)},$t[ut]=Rt,Rt.constructor=$t,N($t,St)):Cr&&Y&&f(St,"name",k),D&&M(Yt)!==Xt&&D(Yt,Xt);var Er=new Qt(new $t(2)),pr=e(Yt.setInt8);Er.setInt8(0,2147483648),Er.setInt8(1,2147483649),(Er.getInt8(0)||!Er.getInt8(1))&&g(Yt,{setInt8:function(Vt,bt){pr(this,Vt,bt<<24>>24)},setUint8:function(Vt,bt){pr(this,Vt,bt<<24>>24)}},{unsafe:!0})}w($t,k),w(Qt,st),l.exports={ArrayBuffer:$t,DataView:Qt}},81499:function(l,p,t){var n=t(49671),e=t(4652),o=t(82628),i=t(12384),u=Math.min;l.exports=[].copyWithin||function(c,g){var v=n(this),y=o(v),S=e(c,y),E=e(g,y),I=arguments.length>2?arguments[2]:void 0,A=u((I===void 0?y:e(I,y))-E,y-S),T=1;for(E0;)E in v?v[S]=v[E]:i(v,S),S+=T,E+=T;return v}},43011:function(l,p,t){var n=t(49671),e=t(4652),o=t(82628);l.exports=function(u){for(var f=n(this),c=o(f),g=arguments.length,v=e(g>1?arguments[1]:void 0,c),y=g>2?arguments[2]:void 0,S=y===void 0?c:e(y,c);S>v;)f[v++]=u;return f}},13349:function(l,p,t){var n=t(66655).forEach,e=t(6148),o=e("forEach");l.exports=o?[].forEach:function(u){return n(this,u,arguments.length>1?arguments[1]:void 0)}},5220:function(l,p,t){var n=t(82628);l.exports=function(e,o,i){for(var u=0,f=arguments.length>2?i:n(o),c=new e(f);f>u;)c[u]=o[u++];return c}},48258:function(l,p,t){var n=t(45526),e=t(96499),o=t(49671),i=t(39969),u=t(48199),f=t(11051),c=t(82628),g=t(84082),v=t(90619),y=t(81077),S=Array;l.exports=function(I){var A=o(I),T=f(this),M=arguments.length,D=M>1?arguments[1]:void 0,$=D!==void 0;$&&(D=n(D,M>2?arguments[2]:void 0));var U=y(A),G=0,N,w,W,X,Y,k;if(U&&!(this===S&&u(U)))for(w=T?new this:[],X=v(A,U),Y=X.next;!(W=e(Y,X)).done;G++)k=$?i(X,D,[W.value,G],!0):W.value,g(w,G,k);else for(N=c(A),w=T?new this(N):S(N);N>G;G++)k=$?D(A[G],G):A[G],g(w,G,k);return w.length=G,w}},94319:function(l,p,t){var n=t(36859),e=t(4652),o=t(82628),i=function(u){return function(f,c,g){var v=n(f),y=o(v);if(y===0)return!u&&-1;var S=e(g,y),E;if(u&&c!==c){for(;y>S;)if(E=v[S++],E!==E)return!0}else for(;y>S;S++)if((u||S in v)&&v[S]===c)return u||S||0;return!u&&-1}};l.exports={includes:i(!0),indexOf:i(!1)}},73849:function(l,p,t){var n=t(45526),e=t(72181),o=t(49671),i=t(82628),u=function(f){var c=f===1;return function(g,v,y){for(var S=o(g),E=e(S),I=i(E),A=n(v,y),T,M;I-- >0;)if(T=E[I],M=A(T,I,S),M)switch(f){case 0:return T;case 1:return I}return c?-1:void 0}};l.exports={findLast:u(0),findLastIndex:u(1)}},66655:function(l,p,t){var n=t(45526),e=t(11286),o=t(72181),i=t(49671),u=t(82628),f=t(62083),c=e([].push),g=function(v){var y=v===1,S=v===2,E=v===3,I=v===4,A=v===6,T=v===7,M=v===5||A;return function(D,$,U,G){for(var N=i(D),w=o(N),W=u(w),X=n($,U),Y=0,k=G||f,st=y?k(D,W):S||T?k(D,0):void 0,ut,rt;W>Y;Y++)if((M||Y in w)&&(ut=w[Y],rt=X(ut,Y,N),v))if(y)st[Y]=rt;else if(rt)switch(v){case 3:return!0;case 5:return ut;case 6:return Y;case 2:c(st,ut)}else switch(v){case 4:return!1;case 7:c(st,ut)}return A?-1:E||I?I:st}};l.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},58465:function(l,p,t){var n=t(66543),e=t(36859),o=t(12105),i=t(82628),u=t(6148),f=Math.min,c=[].lastIndexOf,g=!!c&&1/[1].lastIndexOf(1,-0)<0,v=u("lastIndexOf"),y=g||!v;l.exports=y?function(E){if(g)return n(c,this,arguments)||0;var I=e(this),A=i(I);if(A===0)return-1;var T=A-1;for(arguments.length>1&&(T=f(T,o(arguments[1]))),T<0&&(T=A+T);T>=0;T--)if(T in I&&I[T]===E)return T||0;return-1}:c},52183:function(l,p,t){var n=t(72069),e=t(18565),o=t(73126),i=e("species");l.exports=function(u){return o>=51||!n(function(){var f=[],c=f.constructor={};return c[i]=function(){return{foo:1}},f[u](Boolean).foo!==1})}},6148:function(l,p,t){var n=t(72069);l.exports=function(e,o){var i=[][e];return!!i&&n(function(){i.call(null,o||function(){return 1},1)})}},97264:function(l,p,t){var n=t(85156),e=t(49671),o=t(72181),i=t(82628),u=TypeError,f="Reduce of empty array with no initial value",c=function(g){return function(v,y,S,E){var I=e(v),A=o(I),T=i(I);if(n(y),T===0&&S<2)throw new u(f);var M=g?T-1:0,D=g?-1:1;if(S<2)for(;;){if(M in A){E=A[M],M+=D;break}if(M+=D,g?M<0:T<=M)throw new u(f)}for(;g?M>=0:T>M;M+=D)M in A&&(E=y(E,A[M],M,I));return E}};l.exports={left:c(!1),right:c(!0)}},2213:function(l,p,t){var n=t(92986),e=t(3438),o=TypeError,i=Object.getOwnPropertyDescriptor,u=n&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(f){return f instanceof TypeError}}();l.exports=u?function(f,c){if(e(f)&&!i(f,"length").writable)throw new o("Cannot set read only .length");return f.length=c}:function(f,c){return f.length=c}},22806:function(l,p,t){var n=t(11286);l.exports=n([].slice)},13270:function(l,p,t){var n=t(22806),e=Math.floor,o=function(i,u){var f=i.length;if(f<8)for(var c=1,g,v;c0;)i[v]=i[--v];v!==c++&&(i[v]=g)}else for(var y=e(f/2),S=o(n(i,0,y),u),E=o(n(i,y),u),I=S.length,A=E.length,T=0,M=0;T=g||y<0)throw new o("Incorrect index");for(var S=new u(g),E=0;E1?arguments[1]:void 0),rt;rt=rt?rt.next:st.first;)for(ut(rt.value,rt.key,this);rt&&rt.removed;)rt=rt.previous},has:function(k){return!!X(this,k)}}),o(N,$?{get:function(k){var st=X(this,k);return st&&st.value},set:function(k,st){return W(this,k===0?0:k,st)}}:{add:function(k){return W(this,k=k===0?0:k,k)}}),S&&e(N,"size",{configurable:!0,get:function(){return w(this).size}}),G},setStrong:function(M,D,$){var U=D+" Iterator",G=T(D),N=T(U);g(M,D,function(w,W){A(this,{type:U,target:w,state:G(w),kind:W,last:void 0})},function(){for(var w=N(this),W=w.kind,X=w.last;X&&X.removed;)X=X.previous;return!w.target||!(w.last=X=X?X.next:w.state.first)?(w.target=void 0,v(void 0,!0)):v(W==="keys"?X.key:W==="values"?X.value:[X.key,X.value],!1)},$?"entries":"values",!$,!0),y(D)}}},94667:function(l,p,t){var n=t(11286),e=t(2725),o=t(31853).getWeakData,i=t(12833),u=t(25001),f=t(5683),c=t(37540),g=t(55902),v=t(66655),y=t(94879),S=t(82367),E=S.set,I=S.getterFor,A=v.find,T=v.findIndex,M=n([].splice),D=0,$=function(N){return N.frozen||(N.frozen=new U)},U=function(){this.entries=[]},G=function(N,w){return A(N.entries,function(W){return W[0]===w})};U.prototype={get:function(N){var w=G(this,N);if(w)return w[1]},has:function(N){return!!G(this,N)},set:function(N,w){var W=G(this,N);W?W[1]=w:this.entries.push([N,w])},delete:function(N){var w=T(this.entries,function(W){return W[0]===N});return~w&&M(this.entries,w,1),!!~w}},l.exports={getConstructor:function(N,w,W,X){var Y=N(function(rt,at){i(rt,k),E(rt,{type:w,id:D++,frozen:void 0}),f(at)||g(at,rt[X],{that:rt,AS_ENTRIES:W})}),k=Y.prototype,st=I(w),ut=function(rt,at,ot){var pt=st(rt),Ct=o(u(at),!0);return Ct===!0?$(pt).set(at,ot):Ct[pt.id]=ot,rt};return e(k,{delete:function(rt){var at=st(this);if(!c(rt))return!1;var ot=o(rt);return ot===!0?$(at).delete(rt):ot&&y(ot,at.id)&&delete ot[at.id]},has:function(at){var ot=st(this);if(!c(at))return!1;var pt=o(at);return pt===!0?$(ot).has(at):pt&&y(pt,ot.id)}}),e(k,W?{get:function(at){var ot=st(this);if(c(at)){var pt=o(at);return pt===!0?$(ot).get(at):pt?pt[ot.id]:void 0}},set:function(at,ot){return ut(this,at,ot)}}:{add:function(at){return ut(this,at,!0)}}),Y}}},89378:function(l,p,t){var n=t(14304),e=t(66009),o=t(11286),i=t(13278),u=t(16142),f=t(31853),c=t(55902),g=t(12833),v=t(23583),y=t(5683),S=t(37540),E=t(72069),I=t(97494),A=t(78401),T=t(32345);l.exports=function(M,D,$){var U=M.indexOf("Map")!==-1,G=M.indexOf("Weak")!==-1,N=U?"set":"add",w=e[M],W=w&&w.prototype,X=w,Y={},k=function(Ct){var St=o(W[Ct]);u(W,Ct,Ct==="add"?function(Rt){return St(this,Rt===0?0:Rt),this}:Ct==="delete"?function($t){return G&&!S($t)?!1:St(this,$t===0?0:$t)}:Ct==="get"?function(Rt){return G&&!S(Rt)?void 0:St(this,Rt===0?0:Rt)}:Ct==="has"?function(Rt){return G&&!S(Rt)?!1:St(this,Rt===0?0:Rt)}:function(Rt,Qt){return St(this,Rt===0?0:Rt,Qt),this})},st=i(M,!v(w)||!(G||W.forEach&&!E(function(){new w().entries().next()})));if(st)X=$.getConstructor(D,M,U,N),f.enable();else if(i(M,!0)){var ut=new X,rt=ut[N](G?{}:-0,1)!==ut,at=E(function(){ut.has(1)}),ot=I(function(Ct){new w(Ct)}),pt=!G&&E(function(){for(var Ct=new w,St=5;St--;)Ct[N](St,St);return!Ct.has(-0)});ot||(X=D(function(Ct,St){g(Ct,W);var $t=T(new w,Ct,X);return y(St)||c(St,$t[N],{that:$t,AS_ENTRIES:U}),$t}),X.prototype=W,W.constructor=X),(at||pt)&&(k("delete"),k("has"),U&&k("get")),(pt||rt)&&k(N),G&&W.clear&&delete W.clear}return Y[M]=X,n({global:!0,constructor:!0,forced:X!==w},Y),A(X,M),G||$.setStrong(X,M,U),X}},93706:function(l,p,t){var n=t(94879),e=t(16885),o=t(71349),i=t(7831);l.exports=function(u,f,c){for(var g=e(f),v=i.f,y=o.f,S=0;S"+y+""}},10659:function(l){l.exports=function(p,t){return{value:p,done:t}}},90809:function(l,p,t){var n=t(92986),e=t(7831),o=t(18526);l.exports=n?function(i,u,f){return e.f(i,u,o(1,f))}:function(i,u,f){return i[u]=f,i}},18526:function(l){l.exports=function(p,t){return{enumerable:!(p&1),configurable:!(p&2),writable:!(p&4),value:t}}},84082:function(l,p,t){var n=t(92986),e=t(7831),o=t(18526);l.exports=function(i,u,f){n?e.f(i,u,o(0,f)):i[u]=f}},11890:function(l,p,t){var n=t(11286),e=t(72069),o=t(61607).start,i=RangeError,u=isFinite,f=Math.abs,c=Date.prototype,g=c.toISOString,v=n(c.getTime),y=n(c.getUTCDate),S=n(c.getUTCFullYear),E=n(c.getUTCHours),I=n(c.getUTCMilliseconds),A=n(c.getUTCMinutes),T=n(c.getUTCMonth),M=n(c.getUTCSeconds);l.exports=e(function(){return g.call(new Date(-50000000000001))!=="0385-07-25T07:06:39.999Z"})||!e(function(){g.call(new Date(NaN))})?function(){if(!u(v(this)))throw new i("Invalid time value");var $=this,U=S($),G=I($),N=U<0?"-":U>9999?"+":"";return N+o(f(U),N?6:4,0)+"-"+o(T($)+1,2,0)+"-"+o(y($),2,0)+"T"+o(E($),2,0)+":"+o(A($),2,0)+":"+o(M($),2,0)+"."+o(G,3,0)+"Z"}:g},84306:function(l,p,t){var n=t(25001),e=t(2064),o=TypeError;l.exports=function(i){if(n(this),i==="string"||i==="default")i="string";else if(i!=="number")throw new o("Incorrect hint");return e(this,i)}},85500:function(l,p,t){var n=t(13749),e=t(7831);l.exports=function(o,i,u){return u.get&&n(u.get,i,{getter:!0}),u.set&&n(u.set,i,{setter:!0}),e.f(o,i,u)}},16142:function(l,p,t){var n=t(23583),e=t(7831),o=t(13749),i=t(36003);l.exports=function(u,f,c,g){g||(g={});var v=g.enumerable,y=g.name!==void 0?g.name:f;if(n(c)&&o(c,y,g),g.global)v?u[f]=c:i(f,c);else{try{g.unsafe?u[f]&&(v=!0):delete u[f]}catch(S){}v?u[f]=c:e.f(u,f,{value:c,enumerable:!1,configurable:!g.nonConfigurable,writable:!g.nonWritable})}return u}},2725:function(l,p,t){var n=t(16142);l.exports=function(e,o,i){for(var u in o)n(e,u,o[u],i);return e}},36003:function(l,p,t){var n=t(66009),e=Object.defineProperty;l.exports=function(o,i){try{e(n,o,{value:i,configurable:!0,writable:!0})}catch(u){n[o]=i}return i}},12384:function(l,p,t){var n=t(82453),e=TypeError;l.exports=function(o,i){if(!delete o[i])throw new e("Cannot delete property "+n(i)+" of "+n(o))}},92986:function(l,p,t){var n=t(72069);l.exports=!n(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},63741:function(l,p,t){var n=t(66009),e=t(18096),o=t(99050),i=n.structuredClone,u=n.ArrayBuffer,f=n.MessageChannel,c=!1,g,v,y,S;if(o)c=function(E){i(E,{transfer:[E]})};else if(u)try{f||(g=e("worker_threads"),g&&(f=g.MessageChannel)),f&&(v=new f,y=new u(2),S=function(E){v.port1.postMessage(null,[E])},y.byteLength===2&&(S(y),y.byteLength===0&&(c=S)))}catch(E){}l.exports=c},85501:function(l,p,t){var n=t(66009),e=t(37540),o=n.document,i=e(o)&&e(o.createElement);l.exports=function(u){return i?o.createElement(u):{}}},20095:function(l){var p=TypeError,t=9007199254740991;l.exports=function(n){if(n>t)throw p("Maximum allowed index exceeded");return n}},74408:function(l){l.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},93014:function(l){l.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},39882:function(l,p,t){var n=t(85501),e=n("span").classList,o=e&&e.constructor&&e.constructor.prototype;l.exports=o===Object.prototype?void 0:o},54040:function(l,p,t){var n=t(89042),e=n.match(/firefox\/(\d+)/i);l.exports=!!e&&+e[1]},63144:function(l,p,t){var n=t(56422),e=t(42954);l.exports=!n&&!e&&typeof window=="object"&&typeof document=="object"},5017:function(l){l.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},56422:function(l){l.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},87216:function(l,p,t){var n=t(89042);l.exports=/MSIE|Trident/.test(n)},92150:function(l,p,t){var n=t(89042);l.exports=/ipad|iphone|ipod/i.test(n)&&typeof Pebble!="undefined"},51149:function(l,p,t){var n=t(89042);l.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},42954:function(l,p,t){var n=t(66009),e=t(14274);l.exports=e(n.process)==="process"},81539:function(l,p,t){var n=t(89042);l.exports=/web0s(?!.*chrome)/i.test(n)},89042:function(l){l.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},73126:function(l,p,t){var n=t(66009),e=t(89042),o=n.process,i=n.Deno,u=o&&o.versions||i&&i.version,f=u&&u.v8,c,g;f&&(c=f.split("."),g=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!g&&e&&(c=e.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=e.match(/Chrome\/(\d+)/),c&&(g=+c[1]))),l.exports=g},68674:function(l,p,t){var n=t(89042),e=n.match(/AppleWebKit\/(\d+)\./);l.exports=!!e&&+e[1]},75785:function(l){l.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},40851:function(l,p,t){var n=t(11286),e=Error,o=n("".replace),i=function(c){return String(new e(c).stack)}("zxcasd"),u=/\n\s*at [^:]*:[^\n]*/,f=u.test(i);l.exports=function(c,g){if(f&&typeof c=="string"&&!e.prepareStackTrace)for(;g--;)c=o(c,u,"");return c}},97077:function(l,p,t){var n=t(90809),e=t(40851),o=t(16929),i=Error.captureStackTrace;l.exports=function(u,f,c,g){o&&(i?i(u,f):n(u,"stack",e(c,g)))}},16929:function(l,p,t){var n=t(72069),e=t(18526);l.exports=!n(function(){var o=new Error("a");return"stack"in o?(Object.defineProperty(o,"stack",e(1,7)),o.stack!==7):!0})},58434:function(l,p,t){var n=t(92986),e=t(72069),o=t(25001),i=t(15453),u=Error.prototype.toString,f=e(function(){if(n){var c=Object.create(Object.defineProperty({},"name",{get:function(){return this===c}}));if(u.call(c)!=="true")return!0}return u.call({message:1,name:2})!=="2: 1"||u.call({})!=="Error"});l.exports=f?function(){var g=o(this),v=i(g.name,"Error"),y=i(g.message);return v?y?v+": "+y:v:y}:u},14304:function(l,p,t){var n=t(66009),e=t(71349).f,o=t(90809),i=t(16142),u=t(36003),f=t(93706),c=t(13278);l.exports=function(g,v){var y=g.target,S=g.global,E=g.stat,I,A,T,M,D,$;if(S?A=n:E?A=n[y]||u(y,{}):A=n[y]&&n[y].prototype,A)for(T in v){if(D=v[T],g.dontCallGetSet?($=e(A,T),M=$&&$.value):M=A[T],I=c(S?T:y+(E?".":"#")+T,g.forced),!I&&M!==void 0){if(typeof D==typeof M)continue;f(D,M)}(g.sham||M&&M.sham)&&o(D,"sham",!0),i(A,T,D,g)}}},72069:function(l){l.exports=function(p){try{return!!p()}catch(t){return!0}}},63194:function(l,p,t){t(31145);var n=t(96499),e=t(16142),o=t(44381),i=t(72069),u=t(18565),f=t(90809),c=u("species"),g=RegExp.prototype;l.exports=function(v,y,S,E){var I=u(v),A=!i(function(){var $={};return $[I]=function(){return 7},""[v]($)!==7}),T=A&&!i(function(){var $=!1,U=/a/;return v==="split"&&(U={},U.constructor={},U.constructor[c]=function(){return U},U.flags="",U[I]=/./[I]),U.exec=function(){return $=!0,null},U[I](""),!$});if(!A||!T||S){var M=/./[I],D=y(I,""[v],function($,U,G,N,w){var W=U.exec;return W===o||W===g.exec?A&&!w?{done:!0,value:n(M,U,G,N)}:{done:!0,value:n($,G,U,N)}:{done:!1}});e(String.prototype,v,D[0]),e(g,I,D[1])}E&&f(g[I],"sham",!0)}},53149:function(l,p,t){var n=t(3438),e=t(82628),o=t(20095),i=t(45526),u=function(f,c,g,v,y,S,E,I){for(var A=y,T=0,M=E?i(E,I):!1,D,$;T0&&n(D)?($=e(D),A=u(f,c,D,$,A,S-1)-1):(o(A+1),f[A]=D),A++),T++;return A};l.exports=u},27534:function(l,p,t){var n=t(72069);l.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},66543:function(l,p,t){var n=t(87878),e=Function.prototype,o=e.apply,i=e.call;l.exports=typeof Reflect=="object"&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})},45526:function(l,p,t){var n=t(77422),e=t(85156),o=t(87878),i=n(n.bind);l.exports=function(u,f){return e(u),f===void 0?u:o?i(u,f):function(){return u.apply(f,arguments)}}},87878:function(l,p,t){var n=t(72069);l.exports=!n(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})},91384:function(l,p,t){var n=t(11286),e=t(85156),o=t(37540),i=t(94879),u=t(22806),f=t(87878),c=Function,g=n([].concat),v=n([].join),y={},S=function(E,I,A){if(!i(y,I)){for(var T=[],M=0;M]*>)/g,g=/\$([$&'`]|\d{1,2})/g;l.exports=function(v,y,S,E,I,A){var T=S+v.length,M=E.length,D=g;return I!==void 0&&(I=e(I),D=c),u(A,D,function($,U){var G;switch(i(U,0)){case"$":return"$";case"&":return v;case"`":return f(y,0,S);case"'":return f(y,T);case"<":G=I[f(U,1,-1)];break;default:var N=+U;if(N===0)return $;if(N>M){var w=o(N/10);return w===0?$:w<=M?E[w-1]===void 0?i(U,1):E[w-1]+i(U,1):$}G=E[N-1]}return G===void 0?"":G})}},66009:function(l){var p=function(t){return t&&t.Math===Math&&t};l.exports=p(typeof globalThis=="object"&&globalThis)||p(typeof window=="object"&&window)||p(typeof self=="object"&&self)||p(typeof global=="object"&&global)||p(typeof this=="object"&&this)||function(){return this}()||Function("return this")()},94879:function(l,p,t){var n=t(11286),e=t(49671),o=n({}.hasOwnProperty);l.exports=Object.hasOwn||function(u,f){return o(e(u),f)}},19423:function(l){l.exports={}},99095:function(l){l.exports=function(p,t){try{arguments.length===1?console.error(p):console.error(p,t)}catch(n){}}},96439:function(l,p,t){var n=t(38941);l.exports=n("document","documentElement")},52515:function(l,p,t){var n=t(92986),e=t(72069),o=t(85501);l.exports=!n&&!e(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!==7})},25212:function(l){var p=Array,t=Math.abs,n=Math.pow,e=Math.floor,o=Math.log,i=Math.LN2,u=function(c,g,v){var y=p(v),S=v*8-g-1,E=(1<>1,A=g===23?n(2,-24)-n(2,-77):0,T=c<0||c===0&&1/c<0?1:0,M=0,D,$,U;for(c=t(c),c!==c||c===1/0?($=c!==c?1:0,D=E):(D=e(o(c)/i),U=n(2,-D),c*U<1&&(D--,U*=2),D+I>=1?c+=A/U:c+=A*n(2,1-I),c*U>=2&&(D++,U/=2),D+I>=E?($=0,D=E):D+I>=1?($=(c*U-1)*n(2,g),D+=I):($=c*n(2,I-1)*n(2,g),D=0));g>=8;)y[M++]=$&255,$/=256,g-=8;for(D=D<0;)y[M++]=D&255,D/=256,S-=8;return y[--M]|=T*128,y},f=function(c,g){var v=c.length,y=v*8-g-1,S=(1<>1,I=y-7,A=v-1,T=c[A--],M=T&127,D;for(T>>=7;I>0;)M=M*256+c[A--],I-=8;for(D=M&(1<<-I)-1,M>>=-I,I+=g;I>0;)D=D*256+c[A--],I-=8;if(M===0)M=1-E;else{if(M===S)return D?NaN:T?-1/0:1/0;D+=n(2,g),M-=E}return(T?-1:1)*D*n(2,M-g)};l.exports={pack:u,unpack:f}},72181:function(l,p,t){var n=t(11286),e=t(72069),o=t(14274),i=Object,u=n("".split);l.exports=e(function(){return!i("z").propertyIsEnumerable(0)})?function(f){return o(f)==="String"?u(f,""):i(f)}:i},32345:function(l,p,t){var n=t(23583),e=t(37540),o=t(15861);l.exports=function(i,u,f){var c,g;return o&&n(c=u.constructor)&&c!==f&&e(g=c.prototype)&&g!==f.prototype&&o(i,g),i}},84352:function(l,p,t){var n=t(11286),e=t(23583),o=t(70443),i=n(Function.toString);e(o.inspectSource)||(o.inspectSource=function(u){return i(u)}),l.exports=o.inspectSource},31486:function(l,p,t){var n=t(37540),e=t(90809);l.exports=function(o,i){n(i)&&"cause"in i&&e(o,"cause",i.cause)}},31853:function(l,p,t){var n=t(14304),e=t(11286),o=t(19423),i=t(37540),u=t(94879),f=t(7831).f,c=t(83258),g=t(92880),v=t(28174),y=t(36374),S=t(27534),E=!1,I=y("meta"),A=0,T=function(N){f(N,I,{value:{objectID:"O"+A++,weakData:{}}})},M=function(N,w){if(!i(N))return typeof N=="symbol"?N:(typeof N=="string"?"S":"P")+N;if(!u(N,I)){if(!v(N))return"F";if(!w)return"E";T(N)}return N[I].objectID},D=function(N,w){if(!u(N,I)){if(!v(N))return!0;if(!w)return!1;T(N)}return N[I].weakData},$=function(N){return S&&E&&v(N)&&!u(N,I)&&T(N),N},U=function(){G.enable=function(){},E=!0;var N=c.f,w=e([].splice),W={};W[I]=1,N(W).length&&(c.f=function(X){for(var Y=N(X),k=0,st=Y.length;kY;Y++)if(st=ot(A[Y]),st&&c(I,st))return st;return new E(!1)}W=g(A,X)}for(ut=U?A.next:W.next;!(rt=e(ut,W)).done;){try{st=ot(rt.value)}catch(pt){y(W,"throw",pt)}if(typeof st=="object"&&st&&c(I,st))return st}return new E(!1)}},99797:function(l,p,t){var n=t(96499),e=t(25001),o=t(10512);l.exports=function(i,u,f){var c,g;e(i);try{if(c=o(i,"return"),!c){if(u==="throw")throw f;return f}c=n(c,i)}catch(v){g=!0,c=v}if(u==="throw")throw f;if(g)throw c;return e(c),f}},26820:function(l,p,t){var n=t(24519).IteratorPrototype,e=t(5406),o=t(18526),i=t(78401),u=t(29107),f=function(){return this};l.exports=function(c,g,v,y){var S=g+" Iterator";return c.prototype=e(n,{next:o(+!y,v)}),i(c,S,!1,!0),u[S]=f,c}},10218:function(l,p,t){var n=t(14304),e=t(96499),o=t(70457),i=t(86588),u=t(23583),f=t(26820),c=t(26313),g=t(15861),v=t(78401),y=t(90809),S=t(16142),E=t(18565),I=t(29107),A=t(24519),T=i.PROPER,M=i.CONFIGURABLE,D=A.IteratorPrototype,$=A.BUGGY_SAFARI_ITERATORS,U=E("iterator"),G="keys",N="values",w="entries",W=function(){return this};l.exports=function(X,Y,k,st,ut,rt,at){f(k,Y,st);var ot=function(ir){if(ir===ut&&Rt)return Rt;if(!$&&ir&&ir in St)return St[ir];switch(ir){case G:return function(){return new k(this,ir)};case N:return function(){return new k(this,ir)};case w:return function(){return new k(this,ir)}}return function(){return new k(this)}},pt=Y+" Iterator",Ct=!1,St=X.prototype,$t=St[U]||St["@@iterator"]||ut&&St[ut],Rt=!$&&$t||ot(ut),Qt=Y==="Array"&&St.entries||$t,Yt,Xt,er;if(Qt&&(Yt=c(Qt.call(new X)),Yt!==Object.prototype&&Yt.next&&(!o&&c(Yt)!==D&&(g?g(Yt,D):u(Yt[U])||S(Yt,U,W)),v(Yt,pt,!0,!0),o&&(I[pt]=W))),T&&ut===N&&$t&&$t.name!==N&&(!o&&M?y(St,"name",N):(Ct=!0,Rt=function(){return e($t,this)})),ut)if(Xt={values:ot(N),keys:rt?Rt:ot(G),entries:ot(w)},at)for(er in Xt)($||Ct||!(er in St))&&S(St,er,Xt[er]);else n({target:Y,proto:!0,forced:$||Ct},Xt);return(!o||at)&&St[U]!==Rt&&S(St,U,Rt,{name:ut}),I[Y]=Rt,Xt}},24519:function(l,p,t){var n=t(72069),e=t(23583),o=t(37540),i=t(5406),u=t(26313),f=t(16142),c=t(18565),g=t(70457),v=c("iterator"),y=!1,S,E,I;[].keys&&(I=[].keys(),"next"in I?(E=u(u(I)),E!==Object.prototype&&(S=E)):y=!0);var A=!o(S)||n(function(){var T={};return S[v].call(T)!==T});A?S={}:g&&(S=i(S)),e(S[v])||f(S,v,function(){return this}),l.exports={IteratorPrototype:S,BUGGY_SAFARI_ITERATORS:y}},29107:function(l){l.exports={}},82628:function(l,p,t){var n=t(45344);l.exports=function(e){return n(e.length)}},13749:function(l,p,t){var n=t(11286),e=t(72069),o=t(23583),i=t(94879),u=t(92986),f=t(86588).CONFIGURABLE,c=t(84352),g=t(82367),v=g.enforce,y=g.get,S=String,E=Object.defineProperty,I=n("".slice),A=n("".replace),T=n([].join),M=u&&!e(function(){return E(function(){},"length",{value:8}).length!==8}),D=String(String).split("String"),$=l.exports=function(U,G,N){I(S(G),0,7)==="Symbol("&&(G="["+A(S(G),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),N&&N.getter&&(G="get "+G),N&&N.setter&&(G="set "+G),(!i(U,"name")||f&&U.name!==G)&&(u?E(U,"name",{value:G,configurable:!0}):U.name=G),M&&N&&i(N,"arity")&&U.length!==N.arity&&E(U,"length",{value:N.arity});try{N&&i(N,"constructor")&&N.constructor?u&&E(U,"prototype",{writable:!1}):U.prototype&&(U.prototype=void 0)}catch(W){}var w=v(U);return i(w,"source")||(w.source=T(D,typeof G=="string"?G:"")),U};Function.prototype.toString=$(function(){return o(this)&&y(this).source||c(this)},"toString")},1774:function(l,p,t){var n=t(11286),e=Map.prototype;l.exports={Map,set:n(e.set),get:n(e.get),has:n(e.has),remove:n(e.delete),proto:e}},98940:function(l){var p=Math.expm1,t=Math.exp;l.exports=!p||p(10)>22025.465794806718||p(10)<22025.465794806718||p(-2e-17)!==-2e-17?function(e){var o=+e;return o===0?o:o>-1e-6&&o<1e-6?o+o*o/2:t(o)-1}:p},10418:function(l,p,t){var n=t(93976),e=Math.abs,o=2220446049250313e-31,i=1/o,u=function(f){return f+i-i};l.exports=function(f,c,g,v){var y=+f,S=e(y),E=n(y);if(Sg||A!==A?E*(1/0):E*A}},93279:function(l,p,t){var n=t(10418),e=11920928955078125e-23,o=34028234663852886e22,i=11754943508222875e-54;l.exports=Math.fround||function(f){return n(f,e,o,i)}},41942:function(l){var p=Math.log,t=Math.LOG10E;l.exports=Math.log10||function(e){return p(e)*t}},49366:function(l){var p=Math.log;l.exports=Math.log1p||function(n){var e=+n;return e>-1e-8&&e<1e-8?e-e*e/2:p(1+e)}},93976:function(l){l.exports=Math.sign||function(t){var n=+t;return n===0||n!==n?n:n<0?-1:1}},22459:function(l){var p=Math.ceil,t=Math.floor;l.exports=Math.trunc||function(e){var o=+e;return(o>0?t:p)(o)}},9709:function(l,p,t){var n=t(66009),e=t(28167),o=t(45526),i=t(23115).set,u=t(76895),f=t(51149),c=t(92150),g=t(81539),v=t(42954),y=n.MutationObserver||n.WebKitMutationObserver,S=n.document,E=n.process,I=n.Promise,A=e("queueMicrotask"),T,M,D,$,U;if(!A){var G=new u,N=function(){var w,W;for(v&&(w=E.domain)&&w.exit();W=G.get();)try{W()}catch(X){throw G.head&&T(),X}w&&w.enter()};!f&&!v&&!g&&y&&S?(M=!0,D=S.createTextNode(""),new y(N).observe(D,{characterData:!0}),T=function(){D.data=M=!M}):!c&&I&&I.resolve?($=I.resolve(void 0),$.constructor=I,U=o($.then,$),T=function(){U(N)}):v?T=function(){E.nextTick(N)}:(i=o(i,n),T=function(){i(N)}),A=function(w){G.head||T(),G.add(w)}}l.exports=A},24649:function(l,p,t){var n=t(85156),e=TypeError,o=function(i){var u,f;this.promise=new i(function(c,g){if(u!==void 0||f!==void 0)throw new e("Bad Promise constructor");u=c,f=g}),this.resolve=n(u),this.reject=n(f)};l.exports.f=function(i){return new o(i)}},15453:function(l,p,t){var n=t(17361);l.exports=function(e,o){return e===void 0?arguments.length<2?"":o:n(e)}},92337:function(l,p,t){var n=t(11566),e=TypeError;l.exports=function(o){if(n(o))throw new e("The method doesn't accept regular expressions");return o}},98074:function(l,p,t){var n=t(66009),e=n.isFinite;l.exports=Number.isFinite||function(i){return typeof i=="number"&&e(i)}},25838:function(l,p,t){var n=t(66009),e=t(72069),o=t(11286),i=t(17361),u=t(85900).trim,f=t(77082),c=o("".charAt),g=n.parseFloat,v=n.Symbol,y=v&&v.iterator,S=1/g(f+"-0")!==-1/0||y&&!e(function(){g(Object(y))});l.exports=S?function(I){var A=u(i(I)),T=g(A);return T===0&&c(A,0)==="-"?-0:T}:g},23009:function(l,p,t){var n=t(66009),e=t(72069),o=t(11286),i=t(17361),u=t(85900).trim,f=t(77082),c=n.parseInt,g=n.Symbol,v=g&&g.iterator,y=/^[+-]?0x/i,S=o(y.exec),E=c(f+"08")!==8||c(f+"0x16")!==22||v&&!e(function(){c(Object(v))});l.exports=E?function(A,T){var M=u(i(A));return c(M,T>>>0||(S(y,M)?16:10))}:c},16667:function(l,p,t){var n=t(92986),e=t(11286),o=t(96499),i=t(72069),u=t(18350),f=t(24943),c=t(79591),g=t(49671),v=t(72181),y=Object.assign,S=Object.defineProperty,E=e([].concat);l.exports=!y||i(function(){if(n&&y({b:1},y(S({},"a",{enumerable:!0,get:function(){S(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var I={},A={},T=Symbol("assign detection"),M="abcdefghijklmnopqrst";return I[T]=7,M.split("").forEach(function(D){A[D]=D}),y({},I)[T]!==7||u(y({},A)).join("")!==M})?function(A,T){for(var M=g(A),D=arguments.length,$=1,U=f.f,G=c.f;D>$;)for(var N=v(arguments[$++]),w=U?E(u(N),U(N)):u(N),W=w.length,X=0,Y;W>X;)Y=w[X++],(!n||o(G,N,Y))&&(M[Y]=N[Y]);return M}:y},5406:function(l,p,t){var n=t(25001),e=t(61963),o=t(75785),i=t(19423),u=t(96439),f=t(85501),c=t(44869),g=">",v="<",y="prototype",S="script",E=c("IE_PROTO"),I=function(){},A=function(U){return v+S+g+U+v+"/"+S+g},T=function(U){U.write(A("")),U.close();var G=U.parentWindow.Object;return U=null,G},M=function(){var U=f("iframe"),G="java"+S+":",N;return U.style.display="none",u.appendChild(U),U.src=String(G),N=U.contentWindow.document,N.open(),N.write(A("document.F=Object")),N.close(),N.F},D,$=function(){try{D=new ActiveXObject("htmlfile")}catch(G){}$=typeof document!="undefined"?document.domain&&D?T(D):M():T(D);for(var U=o.length;U--;)delete $[y][o[U]];return $()};i[E]=!0,l.exports=Object.create||function(G,N){var w;return G!==null?(I[y]=n(G),w=new I,I[y]=null,w[E]=G):w=$(),N===void 0?w:e.f(w,N)}},61963:function(l,p,t){var n=t(92986),e=t(356),o=t(7831),i=t(25001),u=t(36859),f=t(18350);p.f=n&&!e?Object.defineProperties:function(g,v){i(g);for(var y=u(v),S=f(v),E=S.length,I=0,A;E>I;)o.f(g,A=S[I++],y[A]);return g}},7831:function(l,p,t){var n=t(92986),e=t(52515),o=t(356),i=t(25001),u=t(50035),f=TypeError,c=Object.defineProperty,g=Object.getOwnPropertyDescriptor,v="enumerable",y="configurable",S="writable";p.f=n?o?function(I,A,T){if(i(I),A=u(A),i(T),typeof I=="function"&&A==="prototype"&&"value"in T&&S in T&&!T[S]){var M=g(I,A);M&&M[S]&&(I[A]=T.value,T={configurable:y in T?T[y]:M[y],enumerable:v in T?T[v]:M[v],writable:!1})}return c(I,A,T)}:c:function(I,A,T){if(i(I),A=u(A),i(T),e)try{return c(I,A,T)}catch(M){}if("get"in T||"set"in T)throw new f("Accessors not supported");return"value"in T&&(I[A]=T.value),I}},71349:function(l,p,t){var n=t(92986),e=t(96499),o=t(79591),i=t(18526),u=t(36859),f=t(50035),c=t(94879),g=t(52515),v=Object.getOwnPropertyDescriptor;p.f=n?v:function(S,E){if(S=u(S),E=f(E),g)try{return v(S,E)}catch(I){}if(c(S,E))return i(!e(o.f,S,E),S[E])}},92880:function(l,p,t){var n=t(14274),e=t(36859),o=t(83258).f,i=t(22806),u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],f=function(c){try{return o(c)}catch(g){return i(u)}};l.exports.f=function(g){return u&&n(g)==="Window"?f(g):o(e(g))}},83258:function(l,p,t){var n=t(6242),e=t(75785),o=e.concat("length","prototype");p.f=Object.getOwnPropertyNames||function(u){return n(u,o)}},24943:function(l,p){p.f=Object.getOwnPropertySymbols},26313:function(l,p,t){var n=t(94879),e=t(23583),o=t(49671),i=t(44869),u=t(87501),f=i("IE_PROTO"),c=Object,g=c.prototype;l.exports=u?c.getPrototypeOf:function(v){var y=o(v);if(n(y,f))return y[f];var S=y.constructor;return e(S)&&y instanceof S?S.prototype:y instanceof c?g:null}},28174:function(l,p,t){var n=t(72069),e=t(37540),o=t(14274),i=t(72058),u=Object.isExtensible,f=n(function(){u(1)});l.exports=f||i?function(g){return!e(g)||i&&o(g)==="ArrayBuffer"?!1:u?u(g):!0}:u},95307:function(l,p,t){var n=t(11286);l.exports=n({}.isPrototypeOf)},6242:function(l,p,t){var n=t(11286),e=t(94879),o=t(36859),i=t(94319).indexOf,u=t(19423),f=n([].push);l.exports=function(c,g){var v=o(c),y=0,S=[],E;for(E in v)!e(u,E)&&e(v,E)&&f(S,E);for(;g.length>y;)e(v,E=g[y++])&&(~i(S,E)||f(S,E));return S}},18350:function(l,p,t){var n=t(6242),e=t(75785);l.exports=Object.keys||function(i){return n(i,e)}},79591:function(l,p){var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,e=n&&!t.call({1:2},1);p.f=e?function(i){var u=n(this,i);return!!u&&u.enumerable}:t},57629:function(l,p,t){var n=t(70457),e=t(66009),o=t(72069),i=t(68674);l.exports=n||!o(function(){if(!(i&&i<535)){var u=Math.random();__defineSetter__.call(null,u,function(){}),delete e[u]}})},15861:function(l,p,t){var n=t(84756),e=t(37540),o=t(2068),i=t(53408);l.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,f={},c;try{c=n(Object.prototype,"__proto__","set"),c(f,[]),u=f instanceof Array}catch(g){}return function(v,y){return o(v),i(y),e(v)&&(u?c(v,y):v.__proto__=y),v}}():void 0)},8511:function(l,p,t){var n=t(92986),e=t(72069),o=t(11286),i=t(26313),u=t(18350),f=t(36859),c=t(79591).f,g=o(c),v=o([].push),y=n&&e(function(){var E=Object.create(null);return E[2]=2,!g(E,2)}),S=function(E){return function(I){for(var A=f(I),T=u(A),M=y&&i(A)===null,D=T.length,$=0,U=[],G;D>$;)G=T[$++],(!n||(M?G in A:g(A,G)))&&v(U,E?[G,A[G]]:A[G]);return U}};l.exports={entries:S(!0),values:S(!1)}},60105:function(l,p,t){var n=t(67878),e=t(9205);l.exports=n?{}.toString:function(){return"[object "+e(this)+"]"}},2064:function(l,p,t){var n=t(96499),e=t(23583),o=t(37540),i=TypeError;l.exports=function(u,f){var c,g;if(f==="string"&&e(c=u.toString)&&!o(g=n(c,u))||e(c=u.valueOf)&&!o(g=n(c,u))||f!=="string"&&e(c=u.toString)&&!o(g=n(c,u)))return g;throw new i("Can't convert object to primitive value")}},16885:function(l,p,t){var n=t(38941),e=t(11286),o=t(83258),i=t(24943),u=t(25001),f=e([].concat);l.exports=n("Reflect","ownKeys")||function(g){var v=o.f(u(g)),y=i.f;return y?f(v,y(g)):v}},75081:function(l,p,t){var n=t(66009);l.exports=n},67805:function(l){l.exports=function(p){try{return{error:!1,value:p()}}catch(t){return{error:!0,value:t}}}},37130:function(l,p,t){var n=t(66009),e=t(98844),o=t(23583),i=t(13278),u=t(84352),f=t(18565),c=t(63144),g=t(56422),v=t(70457),y=t(73126),S=e&&e.prototype,E=f("species"),I=!1,A=o(n.PromiseRejectionEvent),T=i("Promise",function(){var M=u(e),D=M!==String(e);if(!D&&y===66||v&&!(S.catch&&S.finally))return!0;if(!y||y<51||!/native code/.test(M)){var $=new e(function(N){N(1)}),U=function(N){N(function(){},function(){})},G=$.constructor={};if(G[E]=U,I=$.then(function(){})instanceof U,!I)return!0}return!D&&(c||g)&&!A});l.exports={CONSTRUCTOR:T,REJECTION_EVENT:A,SUBCLASSING:I}},98844:function(l,p,t){var n=t(66009);l.exports=n.Promise},87408:function(l,p,t){var n=t(25001),e=t(37540),o=t(24649);l.exports=function(i,u){if(n(i),e(u)&&u.constructor===i)return u;var f=o.f(i),c=f.resolve;return c(u),f.promise}},26035:function(l,p,t){var n=t(98844),e=t(97494),o=t(37130).CONSTRUCTOR;l.exports=o||!e(function(i){n.all(i).then(void 0,function(){})})},2594:function(l,p,t){var n=t(7831).f;l.exports=function(e,o,i){i in e||n(e,i,{configurable:!0,get:function(){return o[i]},set:function(u){o[i]=u}})}},76895:function(l){var p=function(){this.head=null,this.tail=null};p.prototype={add:function(t){var n={item:t,next:null},e=this.tail;e?e.next=n:this.head=n,this.tail=n},get:function(){var t=this.head;if(t){var n=this.head=t.next;return n===null&&(this.tail=null),t.item}}},l.exports=p},33064:function(l,p,t){var n=t(96499),e=t(25001),o=t(23583),i=t(14274),u=t(44381),f=TypeError;l.exports=function(c,g){var v=c.exec;if(o(v)){var y=n(v,c,g);return y!==null&&e(y),y}if(i(c)==="RegExp")return n(u,c,g);throw new f("RegExp#exec called on incompatible receiver")}},44381:function(l,p,t){var n=t(96499),e=t(11286),o=t(17361),i=t(29833),u=t(39807),f=t(96731),c=t(5406),g=t(82367).get,v=t(76769),y=t(85220),S=f("native-string-replace",String.prototype.replace),E=RegExp.prototype.exec,I=E,A=e("".charAt),T=e("".indexOf),M=e("".replace),D=e("".slice),$=function(){var w=/a/,W=/b*/g;return n(E,w,"a"),n(E,W,"a"),w.lastIndex!==0||W.lastIndex!==0}(),U=u.BROKEN_CARET,G=/()??/.exec("")[1]!==void 0,N=$||G||U||v||y;N&&(I=function(W){var X=this,Y=g(X),k=o(W),st=Y.raw,ut,rt,at,ot,pt,Ct,St;if(st)return st.lastIndex=X.lastIndex,ut=n(I,st,k),X.lastIndex=st.lastIndex,ut;var $t=Y.groups,Rt=U&&X.sticky,Qt=n(i,X),Yt=X.source,Xt=0,er=k;if(Rt&&(Qt=M(Qt,"y",""),T(Qt,"g")===-1&&(Qt+="g"),er=D(k,X.lastIndex),X.lastIndex>0&&(!X.multiline||X.multiline&&A(k,X.lastIndex-1)!==` `)&&(Yt="(?: "+Yt+")",er=" "+er,Xt++),rt=new RegExp("^(?:"+Yt+")",Qt)),G&&(rt=new RegExp("^"+Yt+"$(?!\\s)",Qt)),$&&(at=X.lastIndex),ot=n(E,Rt?rt:X,er),Rt?ot?(ot.input=D(ot.input,Xt),ot[0]=D(ot[0],Xt),ot.index=X.lastIndex,X.lastIndex+=ot[0].length):X.lastIndex=0:$&&ot&&(X.lastIndex=X.global?ot.index+ot[0].length:at),G&&ot&&ot.length>1&&n(S,ot[0],rt,function(){for(pt=1;ptb)","g");return i.exec("b").groups.a!=="b"||"b".replace(i,"$c")!=="bc"})},2068:function(l,p,t){var n=t(5683),e=TypeError;l.exports=function(o){if(n(o))throw new e("Can't call method on "+o);return o}},28167:function(l,p,t){var n=t(66009),e=t(92986),o=Object.getOwnPropertyDescriptor;l.exports=function(i){if(!e)return n[i];var u=o(n,i);return u&&u.value}},13944:function(l){l.exports=Object.is||function(t,n){return t===n?t!==0||1/t===1/n:t!==t&&n!==n}},9934:function(l,p,t){var n=t(66009),e=t(66543),o=t(23583),i=t(5017),u=t(89042),f=t(22806),c=t(95486),g=n.Function,v=/MSIE .\./.test(u)||i&&function(){var y=n.Bun.version.split(".");return y.length<3||y[0]==="0"&&(y[1]<3||y[1]==="3"&&y[2]==="0")}();l.exports=function(y,S){var E=S?2:1;return v?function(I,A){var T=c(arguments.length,1)>E,M=o(I)?I:g(I),D=T?f(arguments,E):[],$=T?function(){e(M,this,D)}:M;return S?y($,A):y($)}:y}},48348:function(l,p,t){var n=t(172),e=t(35051),o=n.Set,i=n.add;l.exports=function(u){var f=new o;return e(u,function(c){i(f,c)}),f}},41754:function(l,p,t){var n=t(76602),e=t(172),o=t(48348),i=t(17768),u=t(65263),f=t(35051),c=t(9573),g=e.has,v=e.remove;l.exports=function(S){var E=n(this),I=u(S),A=o(E);return i(E)<=I.size?f(E,function(T){I.includes(T)&&v(A,T)}):c(I.getIterator(),function(T){g(E,T)&&v(A,T)}),A}},172:function(l,p,t){var n=t(11286),e=Set.prototype;l.exports={Set,add:n(e.add),has:n(e.has),remove:n(e.delete),proto:e}},92292:function(l,p,t){var n=t(76602),e=t(172),o=t(17768),i=t(65263),u=t(35051),f=t(9573),c=e.Set,g=e.add,v=e.has;l.exports=function(S){var E=n(this),I=i(S),A=new c;return o(E)>I.size?f(I.getIterator(),function(T){v(E,T)&&g(A,T)}):u(E,function(T){I.includes(T)&&g(A,T)}),A}},47391:function(l,p,t){var n=t(76602),e=t(172).has,o=t(17768),i=t(65263),u=t(35051),f=t(9573),c=t(99797);l.exports=function(v){var y=n(this),S=i(v);if(o(y)<=S.size)return u(y,function(I){if(S.includes(I))return!1},!0)!==!1;var E=S.getIterator();return f(E,function(I){if(e(y,I))return c(E,"normal",!1)})!==!1}},75492:function(l,p,t){var n=t(76602),e=t(17768),o=t(35051),i=t(65263);l.exports=function(f){var c=n(this),g=i(f);return e(c)>g.size?!1:o(c,function(v){if(!g.includes(v))return!1},!0)!==!1}},1333:function(l,p,t){var n=t(76602),e=t(172).has,o=t(17768),i=t(65263),u=t(9573),f=t(99797);l.exports=function(g){var v=n(this),y=i(g);if(o(v)3})}},22149:function(l,p,t){var n=t(11286),e=t(12105),o=t(17361),i=t(2068),u=n("".charAt),f=n("".charCodeAt),c=n("".slice),g=function(v){return function(y,S){var E=o(i(y)),I=e(S),A=E.length,T,M;return I<0||I>=A?v?"":void 0:(T=f(E,I),T<55296||T>56319||I+1===A||(M=f(E,I+1))<56320||M>57343?v?u(E,I):T:v?c(E,I,I+2):(T-55296<<10)+(M-56320)+65536)}};l.exports={codeAt:g(!1),charAt:g(!0)}},36945:function(l,p,t){var n=t(89042);l.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},61607:function(l,p,t){var n=t(11286),e=t(45344),o=t(17361),i=t(79719),u=t(2068),f=n(i),c=n("".slice),g=Math.ceil,v=function(y){return function(S,E,I){var A=o(u(S)),T=e(E),M=A.length,D=I===void 0?" ":o(I),$,U;return T<=M||D===""?A:($=T-M,U=f(D,g($/D.length)),U.length>$&&(U=c(U,0,$)),y?A+U:U+A)}};l.exports={start:v(!1),end:v(!0)}},38679:function(l,p,t){var n=t(11286),e=2147483647,o=36,i=1,u=26,f=38,c=700,g=72,v=128,y="-",S=/[^\0-\u007E]/,E=/[.\u3002\uFF0E\uFF61]/g,I="Overflow: input needs wider integers to process",A=o-i,T=RangeError,M=n(E.exec),D=Math.floor,$=String.fromCharCode,U=n("".charCodeAt),G=n([].join),N=n([].push),w=n("".replace),W=n("".split),X=n("".toLowerCase),Y=function(rt){for(var at=[],ot=0,pt=rt.length;ot=55296&&Ct<=56319&&ot>1,rt+=D(rt/at);rt>A*u>>1;)rt=D(rt/A),pt+=o;return D(pt+(A+1)*rt/(rt+f))},ut=function(rt){var at=[];rt=Y(rt);var ot=rt.length,pt=v,Ct=0,St=g,$t,Rt;for($t=0;$t=pt&&RtD((e-Ct)/er))throw new T(I);for(Ct+=(Xt-pt)*er,pt=Xt,$t=0;$te)throw new T(I);if(Rt===pt){for(var ir=Ct,Or=o;;){var yr=Or<=St?i:Or>=St+u?u:Or-St;if(ir0;(v>>>=1)&&(c+=c))v&1&&(g+=c);return g}},75176:function(l,p,t){var n=t(85900).end,e=t(33328);l.exports=e("trimEnd")?function(){return n(this)}:"".trimEnd},33328:function(l,p,t){var n=t(86588).PROPER,e=t(72069),o=t(77082),i="\u200B\x85\u180E";l.exports=function(u){return e(function(){return!!o[u]()||i[u]()!==i||n&&o[u].name!==u})}},83481:function(l,p,t){var n=t(85900).start,e=t(33328);l.exports=e("trimStart")?function(){return n(this)}:"".trimStart},85900:function(l,p,t){var n=t(11286),e=t(2068),o=t(17361),i=t(77082),u=n("".replace),f=RegExp("^["+i+"]+"),c=RegExp("(^|[^"+i+"])["+i+"]+$"),g=function(v){return function(y){var S=o(e(y));return v&1&&(S=u(S,f,"")),v&2&&(S=u(S,c,"$1")),S}};l.exports={start:g(1),end:g(2),trim:g(3)}},99050:function(l,p,t){var n=t(66009),e=t(72069),o=t(73126),i=t(63144),u=t(56422),f=t(42954),c=n.structuredClone;l.exports=!!c&&!e(function(){if(u&&o>92||f&&o>94||i&&o>97)return!1;var g=new ArrayBuffer(8),v=c(g,{transfer:[g]});return g.byteLength!==0||v.byteLength!==8})},39729:function(l,p,t){var n=t(73126),e=t(72069),o=t(66009),i=o.String;l.exports=!!Object.getOwnPropertySymbols&&!e(function(){var u=Symbol("symbol detection");return!i(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&n&&n<41})},60796:function(l,p,t){var n=t(96499),e=t(38941),o=t(18565),i=t(16142);l.exports=function(){var u=e("Symbol"),f=u&&u.prototype,c=f&&f.valueOf,g=o("toPrimitive");f&&!f[g]&&i(f,g,function(v){return n(c,this)},{arity:1})}},61190:function(l,p,t){var n=t(39729);l.exports=n&&!!Symbol.for&&!!Symbol.keyFor},23115:function(l,p,t){var n=t(66009),e=t(66543),o=t(45526),i=t(23583),u=t(94879),f=t(72069),c=t(96439),g=t(22806),v=t(85501),y=t(95486),S=t(51149),E=t(42954),I=n.setImmediate,A=n.clearImmediate,T=n.process,M=n.Dispatch,D=n.Function,$=n.MessageChannel,U=n.String,G=0,N={},w="onreadystatechange",W,X,Y,k;f(function(){W=n.location});var st=function(ot){if(u(N,ot)){var pt=N[ot];delete N[ot],pt()}},ut=function(ot){return function(){st(ot)}},rt=function(ot){st(ot.data)},at=function(ot){n.postMessage(U(ot),W.protocol+"//"+W.host)};(!I||!A)&&(I=function(pt){y(arguments.length,1);var Ct=i(pt)?pt:D(pt),St=g(arguments,1);return N[++G]=function(){e(Ct,void 0,St)},X(G),G},A=function(pt){delete N[pt]},E?X=function(ot){T.nextTick(ut(ot))}:M&&M.now?X=function(ot){M.now(ut(ot))}:$&&!S?(Y=new $,k=Y.port2,Y.port1.onmessage=rt,X=o(k.postMessage,k)):n.addEventListener&&i(n.postMessage)&&!n.importScripts&&W&&W.protocol!=="file:"&&!f(at)?(X=at,n.addEventListener("message",rt,!1)):w in v("script")?X=function(ot){c.appendChild(v("script"))[w]=function(){c.removeChild(this),st(ot)}}:X=function(ot){setTimeout(ut(ot),0)}),l.exports={set:I,clear:A}},34338:function(l,p,t){var n=t(11286);l.exports=n(1 .valueOf)},4652:function(l,p,t){var n=t(12105),e=Math.max,o=Math.min;l.exports=function(i,u){var f=n(i);return f<0?e(f+u,0):o(f,u)}},11344:function(l,p,t){var n=t(89935),e=TypeError;l.exports=function(o){var i=n(o,"number");if(typeof i=="number")throw new e("Can't convert number to bigint");return BigInt(i)}},9450:function(l,p,t){var n=t(12105),e=t(45344),o=RangeError;l.exports=function(i){if(i===void 0)return 0;var u=n(i),f=e(u);if(u!==f)throw new o("Wrong length or index");return f}},36859:function(l,p,t){var n=t(72181),e=t(2068);l.exports=function(o){return n(e(o))}},12105:function(l,p,t){var n=t(22459);l.exports=function(e){var o=+e;return o!==o||o===0?0:n(o)}},45344:function(l,p,t){var n=t(12105),e=Math.min;l.exports=function(o){var i=n(o);return i>0?e(i,9007199254740991):0}},49671:function(l,p,t){var n=t(2068),e=Object;l.exports=function(o){return e(n(o))}},58143:function(l,p,t){var n=t(98072),e=RangeError;l.exports=function(o,i){var u=n(o);if(u%i)throw new e("Wrong offset");return u}},98072:function(l,p,t){var n=t(12105),e=RangeError;l.exports=function(o){var i=n(o);if(i<0)throw new e("The argument can't be less than 0");return i}},89935:function(l,p,t){var n=t(96499),e=t(37540),o=t(491),i=t(10512),u=t(2064),f=t(18565),c=TypeError,g=f("toPrimitive");l.exports=function(v,y){if(!e(v)||o(v))return v;var S=i(v,g),E;if(S){if(y===void 0&&(y="default"),E=n(S,v,y),!e(E)||o(E))return E;throw new c("Can't convert object to primitive value")}return y===void 0&&(y="number"),u(v,y)}},50035:function(l,p,t){var n=t(89935),e=t(491);l.exports=function(o){var i=n(o,"string");return e(i)?i:i+""}},67878:function(l,p,t){var n=t(18565),e=n("toStringTag"),o={};o[e]="z",l.exports=String(o)==="[object z]"},17361:function(l,p,t){var n=t(9205),e=String;l.exports=function(o){if(n(o)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(o)}},76517:function(l){var p=Math.round;l.exports=function(t){var n=p(t);return n<0?0:n>255?255:n&255}},18096:function(l,p,t){var n=t(42954);l.exports=function(e){try{if(n)return Function('return require("'+e+'")')()}catch(o){}}},82453:function(l){var p=String;l.exports=function(t){try{return p(t)}catch(n){return"Object"}}},80357:function(l,p,t){var n=t(14304),e=t(66009),o=t(96499),i=t(92986),u=t(46868),f=t(88037),c=t(17468),g=t(12833),v=t(18526),y=t(90809),S=t(613),E=t(45344),I=t(9450),A=t(58143),T=t(76517),M=t(50035),D=t(94879),$=t(9205),U=t(37540),G=t(491),N=t(5406),w=t(95307),W=t(15861),X=t(83258).f,Y=t(66169),k=t(66655).forEach,st=t(36167),ut=t(85500),rt=t(7831),at=t(71349),ot=t(5220),pt=t(82367),Ct=t(32345),St=pt.get,$t=pt.set,Rt=pt.enforce,Qt=rt.f,Yt=at.f,Xt=e.RangeError,er=c.ArrayBuffer,ir=er.prototype,Or=c.DataView,yr=f.NATIVE_ARRAY_BUFFER_VIEWS,xr=f.TYPED_ARRAY_TAG,Kt=f.TypedArray,_t=f.TypedArrayPrototype,hr=f.isTypedArray,Sr="BYTES_PER_ELEMENT",mr="Wrong length",Ir=function(Cr,Er){ut(Cr,Er,{configurable:!0,get:function(){return St(this)[Er]}})},Fr=function(Cr){var Er;return w(ir,Cr)||(Er=$(Cr))==="ArrayBuffer"||Er==="SharedArrayBuffer"},Dr=function(Cr,Er){return hr(Cr)&&!G(Er)&&Er in Cr&&S(+Er)&&Er>=0},Pr=function(Er,pr){return pr=M(pr),Dr(Er,pr)?v(2,Er[pr]):Yt(Er,pr)},gr=function(Er,pr,Ut){return pr=M(pr),Dr(Er,pr)&&U(Ut)&&D(Ut,"value")&&!D(Ut,"get")&&!D(Ut,"set")&&!Ut.configurable&&(!D(Ut,"writable")||Ut.writable)&&(!D(Ut,"enumerable")||Ut.enumerable)?(Er[pr]=Ut.value,Er):Qt(Er,pr,Ut)};i?(yr||(at.f=Pr,rt.f=gr,Ir(_t,"buffer"),Ir(_t,"byteOffset"),Ir(_t,"byteLength"),Ir(_t,"length")),n({target:"Object",stat:!0,forced:!yr},{getOwnPropertyDescriptor:Pr,defineProperty:gr}),l.exports=function(Cr,Er,pr){var Ut=Cr.match(/\d+/)[0]/8,Vt=Cr+(pr?"Clamped":"")+"Array",bt="get"+Cr,fr="set"+Cr,cr=e[Vt],rr=cr,qt=rr&&rr.prototype,$r={},Br=function(gt,Tt){var q=St(gt);return q.view[bt](Tt*Ut+q.byteOffset,!0)},Et=function(gt,Tt,q){var At=St(gt);At.view[fr](Tt*Ut+At.byteOffset,pr?T(q):q,!0)},Bt=function(gt,Tt){Qt(gt,Tt,{get:function(){return Br(this,Tt)},set:function(q){return Et(this,Tt,q)},enumerable:!0})};yr?u&&(rr=Er(function(gt,Tt,q,At){return g(gt,qt),Ct(function(){return U(Tt)?Fr(Tt)?At!==void 0?new cr(Tt,A(q,Ut),At):q!==void 0?new cr(Tt,A(q,Ut)):new cr(Tt):hr(Tt)?ot(rr,Tt):o(Y,rr,Tt):new cr(I(Tt))}(),gt,rr)}),W&&W(rr,Kt),k(X(cr),function(gt){gt in rr||y(rr,gt,cr[gt])}),rr.prototype=qt):(rr=Er(function(gt,Tt,q,At){g(gt,qt);var Jt=0,kt=0,ar,Tr,dr;if(!U(Tt))dr=I(Tt),Tr=dr*Ut,ar=new er(Tr);else if(Fr(Tt)){ar=Tt,kt=A(q,Ut);var Lr=Tt.byteLength;if(At===void 0){if(Lr%Ut)throw new Xt(mr);if(Tr=Lr-kt,Tr<0)throw new Xt(mr)}else if(Tr=E(At)*Ut,Tr+kt>Lr)throw new Xt(mr);dr=Tr/Ut}else return hr(Tt)?ot(rr,Tt):o(Y,rr,Tt);for($t(gt,{buffer:ar,byteOffset:kt,byteLength:Tr,length:dr,view:new Or(ar)});Jt1?arguments[1]:void 0,$=D!==void 0,U=c(T),G,N,w,W,X,Y,k,st;if(U&&!g(U))for(k=f(T,U),st=k.next,T=[];!(Y=e(st,k)).done;)T.push(Y.value);for($&&M>2&&(D=n(D,arguments[2])),N=u(T),w=new(y(A))(N),W=v(w),G=0;N>G;G++)X=$?D(T[G],G):T[G],w[G]=W?S(X):+X;return w}},21822:function(l,p,t){var n=t(88037),e=t(16887),o=n.aTypedArrayConstructor,i=n.getTypedArrayConstructor;l.exports=function(u){return o(e(u,i(u)))}},36374:function(l,p,t){var n=t(11286),e=0,o=Math.random(),i=n(1 .toString);l.exports=function(u){return"Symbol("+(u===void 0?"":u)+")_"+i(++e+o,36)}},91918:function(l,p,t){var n=t(72069),e=t(18565),o=t(92986),i=t(70457),u=e("iterator");l.exports=!n(function(){var f=new URL("b?a=1&b=2&c=3","http://a"),c=f.searchParams,g=new URLSearchParams("a=1&a=2&b=3"),v="";return f.pathname="c%20d",c.forEach(function(y,S){c.delete("b"),v+=S+y}),g.delete("a",2),g.delete("b",void 0),i&&(!f.toJSON||!g.has("a",1)||g.has("a",2)||!g.has("a",void 0)||g.has("b"))||!c.size&&(i||!o)||!c.sort||f.href!=="http://a/c%20d?a=1&c=3"||c.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!c[u]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||v!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50234:function(l,p,t){var n=t(39729);l.exports=n&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},356:function(l,p,t){var n=t(92986),e=t(72069);l.exports=n&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},95486:function(l){var p=TypeError;l.exports=function(t,n){if(tU&&y(rt,arguments[U]),rt});if(Y.prototype=W,N!=="Error"?u?u(Y,X):f(Y,X,{name:!0}):E&&$ in w&&(c(Y,w,$),c(Y,w,"prepareStackTrace")),f(Y,w),!I)try{W.name!==N&&o(W,"name",N),W.constructor=Y}catch(k){}return Y}}},27796:function(l,p,t){var n=t(14304),e=t(38941),o=t(66543),i=t(72069),u=t(70003),f="AggregateError",c=e(f),g=!i(function(){return c([1]).errors[0]!==1})&&i(function(){return c([1],f,{cause:7}).cause!==7});n({global:!0,constructor:!0,arity:2,forced:g},{AggregateError:u(f,function(v){return function(S,E){return o(v,this,arguments)}},g,!0)})},85647:function(l,p,t){var n=t(14304),e=t(95307),o=t(26313),i=t(15861),u=t(93706),f=t(5406),c=t(90809),g=t(18526),v=t(31486),y=t(97077),S=t(55902),E=t(15453),I=t(18565),A=I("toStringTag"),T=Error,M=[].push,D=function(G,N){var w=e($,this),W;i?W=i(new T,w?o(this):$):(W=w?this:f($),c(W,A,"Error")),N!==void 0&&c(W,"message",E(N)),y(W,D,W.stack,1),arguments.length>2&&v(W,arguments[2]);var X=[];return S(G,M,{that:X}),c(W,"errors",X),W};i?i(D,T):u(D,T,{name:!0});var $=D.prototype=f(T.prototype,{constructor:g(1,D),message:g(1,""),name:g(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:D})},42861:function(l,p,t){t(85647)},35473:function(l,p,t){var n=t(14304),e=t(66009),o=t(17468),i=t(36167),u="ArrayBuffer",f=o[u],c=e[u];n({global:!0,constructor:!0,forced:c!==f},{ArrayBuffer:f}),i(u)},35495:function(l,p,t){var n=t(92986),e=t(85500),o=t(30736),i=ArrayBuffer.prototype;n&&!("detached"in i)&&e(i,"detached",{configurable:!0,get:function(){return o(this)}})},4983:function(l,p,t){var n=t(14304),e=t(88037),o=e.NATIVE_ARRAY_BUFFER_VIEWS;n({target:"ArrayBuffer",stat:!0,forced:!o},{isView:e.isView})},6875:function(l,p,t){var n=t(14304),e=t(77422),o=t(72069),i=t(17468),u=t(25001),f=t(4652),c=t(45344),g=t(16887),v=i.ArrayBuffer,y=i.DataView,S=y.prototype,E=e(v.prototype.slice),I=e(S.getUint8),A=e(S.setUint8),T=o(function(){return!new v(2).slice(1,void 0).byteLength});n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:T},{slice:function(D,$){if(E&&$===void 0)return E(u(this),D);for(var U=u(this).byteLength,G=f(D,U),N=f($===void 0?U:$,U),w=new(g(this,v))(c(N-G)),W=new y(this),X=new y(w),Y=0;G=0?y:v+y;return S<0||S>=v?void 0:g[S]}}),u("at")},98700:function(l,p,t){var n=t(14304),e=t(72069),o=t(3438),i=t(37540),u=t(49671),f=t(82628),c=t(20095),g=t(84082),v=t(62083),y=t(52183),S=t(18565),E=t(73126),I=S("isConcatSpreadable"),A=E>=51||!e(function(){var D=[];return D[I]=!1,D.concat()[0]!==D}),T=function(D){if(!i(D))return!1;var $=D[I];return $!==void 0?!!$:o(D)},M=!A||!y("concat");n({target:"Array",proto:!0,arity:1,forced:M},{concat:function($){var U=u(this),G=v(U,0),N=0,w,W,X,Y,k;for(w=-1,X=arguments.length;w1?arguments[1]:void 0)}})},41585:function(l,p,t){var n=t(14304),e=t(43011),o=t(23811);n({target:"Array",proto:!0},{fill:e}),o("fill")},84554:function(l,p,t){var n=t(14304),e=t(66655).filter,o=t(52183),i=o("filter");n({target:"Array",proto:!0,forced:!i},{filter:function(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}})},33818:function(l,p,t){var n=t(14304),e=t(66655).findIndex,o=t(23811),i="findIndex",u=!0;i in[]&&Array(1)[i](function(){u=!1}),n({target:"Array",proto:!0,forced:u},{findIndex:function(c){return e(this,c,arguments.length>1?arguments[1]:void 0)}}),o(i)},2209:function(l,p,t){var n=t(14304),e=t(73849).findLastIndex,o=t(23811);n({target:"Array",proto:!0},{findLastIndex:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},64096:function(l,p,t){var n=t(14304),e=t(73849).findLast,o=t(23811);n({target:"Array",proto:!0},{findLast:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},36619:function(l,p,t){var n=t(14304),e=t(66655).find,o=t(23811),i="find",u=!0;i in[]&&Array(1)[i](function(){u=!1}),n({target:"Array",proto:!0,forced:u},{find:function(c){return e(this,c,arguments.length>1?arguments[1]:void 0)}}),o(i)},74092:function(l,p,t){var n=t(14304),e=t(53149),o=t(85156),i=t(49671),u=t(82628),f=t(62083);n({target:"Array",proto:!0},{flatMap:function(g){var v=i(this),y=u(v),S;return o(g),S=f(v,0),S.length=e(S,v,v,y,0,1,g,arguments.length>1?arguments[1]:void 0),S}})},91591:function(l,p,t){var n=t(14304),e=t(53149),o=t(49671),i=t(82628),u=t(12105),f=t(62083);n({target:"Array",proto:!0},{flat:function(){var g=arguments.length?arguments[0]:void 0,v=o(this),y=i(v),S=f(v,0);return S.length=e(S,v,v,y,0,g===void 0?1:u(g)),S}})},54703:function(l,p,t){var n=t(14304),e=t(13349);n({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e})},82936:function(l,p,t){var n=t(14304),e=t(48258),o=t(97494),i=!o(function(u){Array.from(u)});n({target:"Array",stat:!0,forced:i},{from:e})},48493:function(l,p,t){var n=t(14304),e=t(94319).includes,o=t(72069),i=t(23811),u=o(function(){return!Array(1).includes()});n({target:"Array",proto:!0,forced:u},{includes:function(c){return e(this,c,arguments.length>1?arguments[1]:void 0)}}),i("includes")},64730:function(l,p,t){var n=t(14304),e=t(77422),o=t(94319).indexOf,i=t(6148),u=e([].indexOf),f=!!u&&1/u([1],1,-0)<0,c=f||!i("indexOf");n({target:"Array",proto:!0,forced:c},{indexOf:function(v){var y=arguments.length>1?arguments[1]:void 0;return f?u(this,v,y)||0:o(this,v,y)}})},95024:function(l,p,t){var n=t(14304),e=t(3438);n({target:"Array",stat:!0},{isArray:e})},35054:function(l,p,t){var n=t(36859),e=t(23811),o=t(29107),i=t(82367),u=t(7831).f,f=t(10218),c=t(10659),g=t(70457),v=t(92986),y="Array Iterator",S=i.set,E=i.getterFor(y);l.exports=f(Array,"Array",function(A,T){S(this,{type:y,target:n(A),index:0,kind:T})},function(){var A=E(this),T=A.target,M=A.index++;if(!T||M>=T.length)return A.target=void 0,c(void 0,!0);switch(A.kind){case"keys":return c(M,!1);case"values":return c(T[M],!1)}return c([M,T[M]],!1)},"values");var I=o.Arguments=o.Array;if(e("keys"),e("values"),e("entries"),!g&&v&&I.name!=="values")try{u(I,"name",{value:"values"})}catch(A){}},25460:function(l,p,t){var n=t(14304),e=t(11286),o=t(72181),i=t(36859),u=t(6148),f=e([].join),c=o!==Object,g=c||!u("join",",");n({target:"Array",proto:!0,forced:g},{join:function(y){return f(i(this),y===void 0?",":y)}})},60703:function(l,p,t){var n=t(14304),e=t(58465);n({target:"Array",proto:!0,forced:e!==[].lastIndexOf},{lastIndexOf:e})},90468:function(l,p,t){var n=t(14304),e=t(66655).map,o=t(52183),i=o("map");n({target:"Array",proto:!0,forced:!i},{map:function(f){return e(this,f,arguments.length>1?arguments[1]:void 0)}})},69581:function(l,p,t){var n=t(14304),e=t(72069),o=t(11051),i=t(84082),u=Array,f=e(function(){function c(){}return!(u.of.call(c)instanceof c)});n({target:"Array",stat:!0,forced:f},{of:function(){for(var g=0,v=arguments.length,y=new(o(this)?this:u)(v);v>g;)i(y,g,arguments[g++]);return y.length=v,y}})},720:function(l,p,t){var n=t(14304),e=t(49671),o=t(82628),i=t(2213),u=t(20095),f=t(72069),c=f(function(){return[].push.call({length:4294967296},1)!==4294967297}),g=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(y){return y instanceof TypeError}},v=c||!g();n({target:"Array",proto:!0,arity:1,forced:v},{push:function(S){var E=e(this),I=o(E),A=arguments.length;u(I+A);for(var T=0;T79&&i<83,c=f||!o("reduceRight");n({target:"Array",proto:!0,forced:c},{reduceRight:function(v){return e(this,v,arguments.length,arguments.length>1?arguments[1]:void 0)}})},11042:function(l,p,t){var n=t(14304),e=t(97264).left,o=t(6148),i=t(73126),u=t(42954),f=!u&&i>79&&i<83,c=f||!o("reduce");n({target:"Array",proto:!0,forced:c},{reduce:function(v){var y=arguments.length;return e(this,v,y,y>1?arguments[1]:void 0)}})},24608:function(l,p,t){var n=t(14304),e=t(11286),o=t(3438),i=e([].reverse),u=[1,2];n({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i(this)}})},51644:function(l,p,t){var n=t(14304),e=t(3438),o=t(11051),i=t(37540),u=t(4652),f=t(82628),c=t(36859),g=t(84082),v=t(18565),y=t(52183),S=t(22806),E=y("slice"),I=v("species"),A=Array,T=Math.max;n({target:"Array",proto:!0,forced:!E},{slice:function(D,$){var U=c(this),G=f(U),N=u(D,G),w=u($===void 0?G:$,G),W,X,Y;if(e(U)&&(W=U.constructor,o(W)&&(W===A||e(W.prototype))?W=void 0:i(W)&&(W=W[I],W===null&&(W=void 0)),W===A||W===void 0))return S(U,N,w);for(X=new(W===void 0?A:W)(T(w-N,0)),Y=0;N1?arguments[1]:void 0)}})},46828:function(l,p,t){var n=t(14304),e=t(11286),o=t(85156),i=t(49671),u=t(82628),f=t(12384),c=t(17361),g=t(72069),v=t(13270),y=t(6148),S=t(54040),E=t(87216),I=t(73126),A=t(68674),T=[],M=e(T.sort),D=e(T.push),$=g(function(){T.sort(void 0)}),U=g(function(){T.sort(null)}),G=y("sort"),N=!g(function(){if(I)return I<70;if(!(S&&S>3)){if(E)return!0;if(A)return A<603;var X="",Y,k,st,ut;for(Y=65;Y<76;Y++){switch(k=String.fromCharCode(Y),Y){case 66:case 69:case 70:case 72:st=3;break;case 68:case 71:st=4;break;default:st=2}for(ut=0;ut<47;ut++)T.push({k:k+ut,v:st})}for(T.sort(function(rt,at){return at.v-rt.v}),ut=0;utc(k)?1:-1}};n({target:"Array",proto:!0,forced:w},{sort:function(Y){Y!==void 0&&o(Y);var k=i(this);if(N)return Y===void 0?M(k):M(k,Y);var st=[],ut=u(k),rt,at;for(at=0;atU-W+w;Y--)y($,Y-1)}else if(w>W)for(Y=U-W;Y>G;Y--)k=Y+W-1,st=Y+w-1,k in $?$[st]=$[k]:y($,st);for(Y=0;Y=0&&v<=99?v+1900:v;return f(this,y)}})},33685:function(l,p,t){var n=t(14304);n({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},60086:function(l,p,t){var n=t(14304),e=t(11890);n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==e},{toISOString:e})},96049:function(l,p,t){var n=t(14304),e=t(72069),o=t(49671),i=t(89935),u=e(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});n({target:"Date",proto:!0,arity:1,forced:u},{toJSON:function(c){var g=o(this),v=i(g,"number");return typeof v=="number"&&!isFinite(v)?null:g.toISOString()}})},14038:function(l,p,t){var n=t(94879),e=t(16142),o=t(84306),i=t(18565),u=i("toPrimitive"),f=Date.prototype;n(f,u)||e(f,u,o)},55518:function(l,p,t){var n=t(11286),e=t(16142),o=Date.prototype,i="Invalid Date",u="toString",f=n(o[u]),c=n(o.getTime);String(new Date(NaN))!==i&&e(o,u,function(){var v=c(this);return v===v?f(this):i})},81742:function(l,p,t){var n=t(14304),e=t(66009),o=t(66543),i=t(70003),u="WebAssembly",f=e[u],c=new Error("e",{cause:7}).cause!==7,g=function(y,S){var E={};E[y]=i(y,S,c),n({global:!0,constructor:!0,arity:1,forced:c},E)},v=function(y,S){if(f&&f[y]){var E={};E[y]=i(u+"."+y,S,c),n({target:u,stat:!0,constructor:!0,arity:1,forced:c},E)}};g("Error",function(y){return function(E){return o(y,this,arguments)}}),g("EvalError",function(y){return function(E){return o(y,this,arguments)}}),g("RangeError",function(y){return function(E){return o(y,this,arguments)}}),g("ReferenceError",function(y){return function(E){return o(y,this,arguments)}}),g("SyntaxError",function(y){return function(E){return o(y,this,arguments)}}),g("TypeError",function(y){return function(E){return o(y,this,arguments)}}),g("URIError",function(y){return function(E){return o(y,this,arguments)}}),v("CompileError",function(y){return function(E){return o(y,this,arguments)}}),v("LinkError",function(y){return function(E){return o(y,this,arguments)}}),v("RuntimeError",function(y){return function(E){return o(y,this,arguments)}})},8720:function(l,p,t){var n=t(16142),e=t(58434),o=Error.prototype;o.toString!==e&&n(o,"toString",e)},8894:function(l,p,t){var n=t(14304),e=t(11286),o=t(17361),i=e("".charAt),u=e("".charCodeAt),f=e(/./.exec),c=e(1 .toString),g=e("".toUpperCase),v=/[\w*+\-./@]/,y=function(S,E){for(var I=c(S,16);I.length9490626562425156e-8?i(y)+f:e(y-1+u(y-1)*u(y+1))}})},15656:function(l,p,t){var n=t(14304),e=Math.asinh,o=Math.log,i=Math.sqrt;function u(c){var g=+c;return!isFinite(g)||g===0?g:g<0?-u(-g):o(g+i(g*g+1))}var f=!(e&&1/e(0)>0);n({target:"Math",stat:!0,forced:f},{asinh:u})},22091:function(l,p,t){var n=t(14304),e=Math.atanh,o=Math.log,i=!(e&&1/e(-0)<0);n({target:"Math",stat:!0,forced:i},{atanh:function(f){var c=+f;return c===0?c:o((1+c)/(1-c))/2}})},2886:function(l,p,t){var n=t(14304),e=t(93976),o=Math.abs,i=Math.pow;n({target:"Math",stat:!0},{cbrt:function(f){var c=+f;return e(c)*i(o(c),.3333333333333333)}})},25895:function(l,p,t){var n=t(14304),e=Math.floor,o=Math.log,i=Math.LOG2E;n({target:"Math",stat:!0},{clz32:function(f){var c=f>>>0;return c?31-e(o(c+.5)*i):32}})},24228:function(l,p,t){var n=t(14304),e=t(98940),o=Math.cosh,i=Math.abs,u=Math.E,f=!o||o(710)===1/0;n({target:"Math",stat:!0,forced:f},{cosh:function(g){var v=e(i(g)-1)+1;return(v+1/(v*u*u))*(u/2)}})},79488:function(l,p,t){var n=t(14304),e=t(98940);n({target:"Math",stat:!0,forced:e!==Math.expm1},{expm1:e})},75987:function(l,p,t){var n=t(14304),e=t(93279);n({target:"Math",stat:!0},{fround:e})},81555:function(l,p,t){var n=t(14304),e=Math.hypot,o=Math.abs,i=Math.sqrt,u=!!e&&e(1/0,NaN)!==1/0;n({target:"Math",stat:!0,arity:2,forced:u},{hypot:function(c,g){for(var v=0,y=0,S=arguments.length,E=0,I,A;y0?(A=I/E,v+=A*A):v+=I;return E===1/0?1/0:E*i(v)}})},87854:function(l,p,t){var n=t(14304),e=t(72069),o=Math.imul,i=e(function(){return o(4294967295,5)!==-5||o.length!==2});n({target:"Math",stat:!0,forced:i},{imul:function(f,c){var g=65535,v=+f,y=+c,S=g&v,E=g&y;return 0|S*E+((g&v>>>16)*E+S*(g&y>>>16)<<16>>>0)}})},35074:function(l,p,t){var n=t(14304),e=t(41942);n({target:"Math",stat:!0},{log10:e})},50946:function(l,p,t){var n=t(14304),e=t(49366);n({target:"Math",stat:!0},{log1p:e})},29417:function(l,p,t){var n=t(14304),e=Math.log,o=Math.LN2;n({target:"Math",stat:!0},{log2:function(u){return e(u)/o}})},80628:function(l,p,t){var n=t(14304),e=t(93976);n({target:"Math",stat:!0},{sign:e})},74375:function(l,p,t){var n=t(14304),e=t(72069),o=t(98940),i=Math.abs,u=Math.exp,f=Math.E,c=e(function(){return Math.sinh(-2e-17)!==-2e-17});n({target:"Math",stat:!0,forced:c},{sinh:function(v){var y=+v;return i(y)<1?(o(y)-o(-y))/2:(u(y-1)-u(-y-1))*(f/2)}})},29708:function(l,p,t){var n=t(14304),e=t(98940),o=Math.exp;n({target:"Math",stat:!0},{tanh:function(u){var f=+u,c=e(f),g=e(-f);return c===1/0?1:g===1/0?-1:(c-g)/(o(f)+o(-f))}})},93449:function(l,p,t){var n=t(78401);n(Math,"Math",!0)},9111:function(l,p,t){var n=t(14304),e=t(22459);n({target:"Math",stat:!0},{trunc:e})},83514:function(l,p,t){var n=t(14304),e=t(70457),o=t(92986),i=t(66009),u=t(75081),f=t(11286),c=t(13278),g=t(94879),v=t(32345),y=t(95307),S=t(491),E=t(89935),I=t(72069),A=t(83258).f,T=t(71349).f,M=t(7831).f,D=t(34338),$=t(85900).trim,U="Number",G=i[U],N=u[U],w=G.prototype,W=i.TypeError,X=f("".slice),Y=f("".charCodeAt),k=function(pt){var Ct=E(pt,"number");return typeof Ct=="bigint"?Ct:st(Ct)},st=function(pt){var Ct=E(pt,"number"),St,$t,Rt,Qt,Yt,Xt,er,ir;if(S(Ct))throw new W("Cannot convert a Symbol value to a number");if(typeof Ct=="string"&&Ct.length>2){if(Ct=$(Ct),St=Y(Ct,0),St===43||St===45){if($t=Y(Ct,2),$t===88||$t===120)return NaN}else if(St===48){switch(Y(Ct,1)){case 66:case 98:Rt=2,Qt=49;break;case 79:case 111:Rt=8,Qt=55;break;default:return+Ct}for(Yt=X(Ct,2),Xt=Yt.length,er=0;erQt)return NaN;return parseInt(Yt,Rt)}}return+Ct},ut=c(U,!G(" 0o1")||!G("0b1")||G("+0x1")),rt=function(pt){return y(w,pt)&&I(function(){D(pt)})},at=function(Ct){var St=arguments.length<1?0:G(k(Ct));return rt(this)?v(Object(St),this,at):St};at.prototype=w,ut&&!e&&(w.constructor=at),n({global:!0,constructor:!0,wrap:!0,forced:ut},{Number:at});var ot=function(pt,Ct){for(var St=o?A(Ct):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),$t=0,Rt;St.length>$t;$t++)g(Ct,Rt=St[$t])&&!g(pt,Rt)&&M(pt,Rt,T(Ct,Rt))};e&&N&&ot(u[U],N),(ut||e)&&ot(u[U],G)},15096:function(l,p,t){var n=t(14304);n({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},59590:function(l,p,t){var n=t(14304),e=t(98074);n({target:"Number",stat:!0},{isFinite:e})},99663:function(l,p,t){var n=t(14304),e=t(613);n({target:"Number",stat:!0},{isInteger:e})},89988:function(l,p,t){var n=t(14304);n({target:"Number",stat:!0},{isNaN:function(o){return o!==o}})},54427:function(l,p,t){var n=t(14304),e=t(613),o=Math.abs;n({target:"Number",stat:!0},{isSafeInteger:function(u){return e(u)&&o(u)<=9007199254740991}})},67895:function(l,p,t){var n=t(14304);n({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},57909:function(l,p,t){var n=t(14304);n({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})},83938:function(l,p,t){var n=t(14304),e=t(25838);n({target:"Number",stat:!0,forced:Number.parseFloat!==e},{parseFloat:e})},55461:function(l,p,t){var n=t(14304),e=t(23009);n({target:"Number",stat:!0,forced:Number.parseInt!==e},{parseInt:e})},97339:function(l,p,t){var n=t(14304),e=t(11286),o=t(12105),i=t(34338),u=t(79719),f=t(41942),c=t(72069),g=RangeError,v=String,y=isFinite,S=Math.abs,E=Math.floor,I=Math.pow,A=Math.round,T=e(1 .toExponential),M=e(u),D=e("".slice),$=T(-69e-12,4)==="-6.9000e-11"&&T(1.255,2)==="1.25e+0"&&T(12345,3)==="1.235e+4"&&T(25,0)==="3e+1",U=function(){return c(function(){T(1,1/0)})&&c(function(){T(1,-1/0)})},G=function(){return!c(function(){T(1/0,1/0),T(NaN,1/0)})},N=!$||!U()||!G();n({target:"Number",proto:!0,forced:N},{toExponential:function(W){var X=i(this);if(W===void 0)return T(X);var Y=o(W);if(!y(X))return String(X);if(Y<0||Y>20)throw new g("Incorrect fraction digits");if($)return T(X,Y);var k="",st="",ut=0,rt="",at="";if(X<0&&(k="-",X=-X),X===0)ut=0,st=M("0",Y+1);else{var ot=f(X);ut=E(ot);var pt=0,Ct=I(10,ut-Y);pt=A(X/Ct),2*X>=(2*pt+1)*Ct&&(pt+=1),pt>=I(10,Y+1)&&(pt/=10,ut+=1),st=v(pt)}return Y!==0&&(st=D(st,0,1)+"."+D(st,1)),ut===0?(rt="+",at="0"):(rt=ut>0?"+":"-",at=v(S(ut))),st+="e"+rt+at,k+st}})},3670:function(l,p,t){var n=t(14304),e=t(11286),o=t(12105),i=t(34338),u=t(79719),f=t(72069),c=RangeError,g=String,v=Math.floor,y=e(u),S=e("".slice),E=e(1 .toFixed),I=function(U,G,N){return G===0?N:G%2===1?I(U,G-1,N*U):I(U*U,G/2,N)},A=function(U){for(var G=0,N=U;N>=4096;)G+=12,N/=4096;for(;N>=2;)G+=1,N/=2;return G},T=function(U,G,N){for(var w=-1,W=N;++w<6;)W+=G*U[w],U[w]=W%1e7,W=v(W/1e7)},M=function(U,G){for(var N=6,w=0;--N>=0;)w+=U[N],U[N]=v(w/G),w=w%G*1e7},D=function(U){for(var G=6,N="";--G>=0;)if(N!==""||G===0||U[G]!==0){var w=g(U[G]);N=N===""?w:N+y("0",7-w.length)+w}return N},$=f(function(){return E(8e-5,3)!=="0.000"||E(.9,0)!=="1"||E(1.255,2)!=="1.25"||E(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!f(function(){E({})});n({target:"Number",proto:!0,forced:$},{toFixed:function(G){var N=i(this),w=o(G),W=[0,0,0,0,0,0],X="",Y="0",k,st,ut,rt;if(w<0||w>20)throw new c("Incorrect fraction digits");if(N!==N)return"NaN";if(N<=-1e21||N>=1e21)return g(N);if(N<0&&(X="-",N=-N),N>1e-21)if(k=A(N*I(2,69,1))-69,st=k<0?N*I(2,-k,1):N/I(2,k,1),st*=4503599627370496,k=52-k,k>0){for(T(W,0,st),ut=w;ut>=7;)T(W,1e7,0),ut-=7;for(T(W,I(10,ut,1),0),ut=k-1;ut>=23;)M(W,8388608),ut-=23;M(W,1<0?(rt=Y.length,Y=X+(rt<=w?"0."+y("0",w-rt)+Y:S(Y,0,rt-w)+"."+S(Y,rt-w))):Y=X+Y,Y}})},15224:function(l,p,t){var n=t(14304),e=t(11286),o=t(72069),i=t(34338),u=e(1 .toPrecision),f=o(function(){return u(1,void 0)!=="1"})||!o(function(){u({})});n({target:"Number",proto:!0,forced:f},{toPrecision:function(g){return g===void 0?u(i(this)):u(i(this),g)}})},45891:function(l,p,t){var n=t(14304),e=t(16667);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e})},99910:function(l,p,t){var n=t(14304),e=t(92986),o=t(5406);n({target:"Object",stat:!0,sham:!e},{create:o})},92445:function(l,p,t){var n=t(14304),e=t(92986),o=t(57629),i=t(85156),u=t(49671),f=t(7831);e&&n({target:"Object",proto:!0,forced:o},{__defineGetter__:function(g,v){f.f(u(this),g,{get:i(v),enumerable:!0,configurable:!0})}})},21875:function(l,p,t){var n=t(14304),e=t(92986),o=t(61963).f;n({target:"Object",stat:!0,forced:Object.defineProperties!==o,sham:!e},{defineProperties:o})},4383:function(l,p,t){var n=t(14304),e=t(92986),o=t(7831).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!e},{defineProperty:o})},11361:function(l,p,t){var n=t(14304),e=t(92986),o=t(57629),i=t(85156),u=t(49671),f=t(7831);e&&n({target:"Object",proto:!0,forced:o},{__defineSetter__:function(g,v){f.f(u(this),g,{set:i(v),enumerable:!0,configurable:!0})}})},13728:function(l,p,t){var n=t(14304),e=t(8511).entries;n({target:"Object",stat:!0},{entries:function(i){return e(i)}})},14885:function(l,p,t){var n=t(14304),e=t(27534),o=t(72069),i=t(37540),u=t(31853).onFreeze,f=Object.freeze,c=o(function(){f(1)});n({target:"Object",stat:!0,forced:c,sham:!e},{freeze:function(v){return f&&i(v)?f(u(v)):v}})},30343:function(l,p,t){var n=t(14304),e=t(55902),o=t(84082);n({target:"Object",stat:!0},{fromEntries:function(u){var f={};return e(u,function(c,g){o(f,c,g)},{AS_ENTRIES:!0}),f}})},22045:function(l,p,t){var n=t(14304),e=t(72069),o=t(36859),i=t(71349).f,u=t(92986),f=!u||e(function(){i(1)});n({target:"Object",stat:!0,forced:f,sham:!u},{getOwnPropertyDescriptor:function(g,v){return i(o(g),v)}})},75e3:function(l,p,t){var n=t(14304),e=t(92986),o=t(16885),i=t(36859),u=t(71349),f=t(84082);n({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(g){for(var v=i(g),y=u.f,S=o(v),E={},I=0,A,T;S.length>I;)T=y(v,A=S[I++]),T!==void 0&&f(E,A,T);return E}})},64658:function(l,p,t){var n=t(14304),e=t(72069),o=t(92880).f,i=e(function(){return!Object.getOwnPropertyNames(1)});n({target:"Object",stat:!0,forced:i},{getOwnPropertyNames:o})},45223:function(l,p,t){var n=t(14304),e=t(39729),o=t(72069),i=t(24943),u=t(49671),f=!e||o(function(){i.f(1)});n({target:"Object",stat:!0,forced:f},{getOwnPropertySymbols:function(g){var v=i.f;return v?v(u(g)):[]}})},16017:function(l,p,t){var n=t(14304),e=t(72069),o=t(49671),i=t(26313),u=t(87501),f=e(function(){i(1)});n({target:"Object",stat:!0,forced:f,sham:!u},{getPrototypeOf:function(g){return i(o(g))}})},84681:function(l,p,t){var n=t(14304),e=t(38941),o=t(11286),i=t(85156),u=t(2068),f=t(50035),c=t(55902),g=t(72069),v=Object.groupBy,y=e("Object","create"),S=o([].push),E=!v||g(function(){return v("ab",function(I){return I}).a.length!==1});n({target:"Object",stat:!0,forced:E},{groupBy:function(A,T){u(A),i(T);var M=y(null),D=0;return c(A,function($){var U=f(T($,D++));U in M?S(M[U],$):M[U]=[$]}),M}})},73421:function(l,p,t){var n=t(14304),e=t(94879);n({target:"Object",stat:!0},{hasOwn:e})},31046:function(l,p,t){var n=t(14304),e=t(28174);n({target:"Object",stat:!0,forced:Object.isExtensible!==e},{isExtensible:e})},94645:function(l,p,t){var n=t(14304),e=t(72069),o=t(37540),i=t(14274),u=t(72058),f=Object.isFrozen,c=u||e(function(){f(1)});n({target:"Object",stat:!0,forced:c},{isFrozen:function(v){return!o(v)||u&&i(v)==="ArrayBuffer"?!0:f?f(v):!1}})},62935:function(l,p,t){var n=t(14304),e=t(72069),o=t(37540),i=t(14274),u=t(72058),f=Object.isSealed,c=u||e(function(){f(1)});n({target:"Object",stat:!0,forced:c},{isSealed:function(v){return!o(v)||u&&i(v)==="ArrayBuffer"?!0:f?f(v):!1}})},93446:function(l,p,t){var n=t(14304),e=t(13944);n({target:"Object",stat:!0},{is:e})},62518:function(l,p,t){var n=t(14304),e=t(49671),o=t(18350),i=t(72069),u=i(function(){o(1)});n({target:"Object",stat:!0,forced:u},{keys:function(c){return o(e(c))}})},45130:function(l,p,t){var n=t(14304),e=t(92986),o=t(57629),i=t(49671),u=t(50035),f=t(26313),c=t(71349).f;e&&n({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(v){var y=i(this),S=u(v),E;do if(E=c(y,S))return E.get;while(y=f(y))}})},51542:function(l,p,t){var n=t(14304),e=t(92986),o=t(57629),i=t(49671),u=t(50035),f=t(26313),c=t(71349).f;e&&n({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(v){var y=i(this),S=u(v),E;do if(E=c(y,S))return E.set;while(y=f(y))}})},43781:function(l,p,t){var n=t(14304),e=t(37540),o=t(31853).onFreeze,i=t(27534),u=t(72069),f=Object.preventExtensions,c=u(function(){f(1)});n({target:"Object",stat:!0,forced:c,sham:!i},{preventExtensions:function(v){return f&&e(v)?f(o(v)):v}})},25738:function(l,p,t){var n=t(92986),e=t(85500),o=t(37540),i=t(52427),u=t(49671),f=t(2068),c=Object.getPrototypeOf,g=Object.setPrototypeOf,v=Object.prototype,y="__proto__";if(n&&c&&g&&!(y in v))try{e(v,y,{configurable:!0,get:function(){return c(u(this))},set:function(E){var I=f(this);i(E)&&o(I)&&g(I,E)}})}catch(S){}},93247:function(l,p,t){var n=t(14304),e=t(37540),o=t(31853).onFreeze,i=t(27534),u=t(72069),f=Object.seal,c=u(function(){f(1)});n({target:"Object",stat:!0,forced:c,sham:!i},{seal:function(v){return f&&e(v)?f(o(v)):v}})},41533:function(l,p,t){var n=t(14304),e=t(15861);n({target:"Object",stat:!0},{setPrototypeOf:e})},60225:function(l,p,t){var n=t(67878),e=t(16142),o=t(60105);n||e(Object.prototype,"toString",o,{unsafe:!0})},69920:function(l,p,t){var n=t(14304),e=t(8511).values;n({target:"Object",stat:!0},{values:function(i){return e(i)}})},89205:function(l,p,t){var n=t(14304),e=t(25838);n({global:!0,forced:parseFloat!==e},{parseFloat:e})},78546:function(l,p,t){var n=t(14304),e=t(23009);n({global:!0,forced:parseInt!==e},{parseInt:e})},16893:function(l,p,t){var n=t(14304),e=t(96499),o=t(85156),i=t(24649),u=t(67805),f=t(55902),c=t(26035);n({target:"Promise",stat:!0,forced:c},{allSettled:function(v){var y=this,S=i.f(y),E=S.resolve,I=S.reject,A=u(function(){var T=o(y.resolve),M=[],D=0,$=1;f(v,function(U){var G=D++,N=!1;$++,e(T,y,U).then(function(w){N||(N=!0,M[G]={status:"fulfilled",value:w},--$||E(M))},function(w){N||(N=!0,M[G]={status:"rejected",reason:w},--$||E(M))})}),--$||E(M)});return A.error&&I(A.value),S.promise}})},11733:function(l,p,t){var n=t(14304),e=t(96499),o=t(85156),i=t(24649),u=t(67805),f=t(55902),c=t(26035);n({target:"Promise",stat:!0,forced:c},{all:function(v){var y=this,S=i.f(y),E=S.resolve,I=S.reject,A=u(function(){var T=o(y.resolve),M=[],D=0,$=1;f(v,function(U){var G=D++,N=!1;$++,e(T,y,U).then(function(w){N||(N=!0,M[G]=w,--$||E(M))},I)}),--$||E(M)});return A.error&&I(A.value),S.promise}})},3676:function(l,p,t){var n=t(14304),e=t(96499),o=t(85156),i=t(38941),u=t(24649),f=t(67805),c=t(55902),g=t(26035),v="No one promise resolved";n({target:"Promise",stat:!0,forced:g},{any:function(S){var E=this,I=i("AggregateError"),A=u.f(E),T=A.resolve,M=A.reject,D=f(function(){var $=o(E.resolve),U=[],G=0,N=1,w=!1;c(S,function(W){var X=G++,Y=!1;N++,e($,E,W).then(function(k){Y||w||(w=!0,T(k))},function(k){Y||w||(Y=!0,U[X]=k,--N||M(new I(U,v)))})}),--N||M(new I(U,v))});return D.error&&M(D.value),A.promise}})},14013:function(l,p,t){var n=t(14304),e=t(70457),o=t(37130).CONSTRUCTOR,i=t(98844),u=t(38941),f=t(23583),c=t(16142),g=i&&i.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(y){return this.then(void 0,y)}}),!e&&f(i)){var v=u("Promise").prototype.catch;g.catch!==v&&c(g,"catch",v,{unsafe:!0})}},20238:function(l,p,t){var n=t(14304),e=t(70457),o=t(42954),i=t(66009),u=t(96499),f=t(16142),c=t(15861),g=t(78401),v=t(36167),y=t(85156),S=t(23583),E=t(37540),I=t(12833),A=t(16887),T=t(23115).set,M=t(9709),D=t(99095),$=t(67805),U=t(76895),G=t(82367),N=t(98844),w=t(37130),W=t(24649),X="Promise",Y=w.CONSTRUCTOR,k=w.REJECTION_EVENT,st=w.SUBCLASSING,ut=G.getterFor(X),rt=G.set,at=N&&N.prototype,ot=N,pt=at,Ct=i.TypeError,St=i.document,$t=i.process,Rt=W.f,Qt=Rt,Yt=!!(St&&St.createEvent&&i.dispatchEvent),Xt="unhandledrejection",er="rejectionhandled",ir=0,Or=1,yr=2,xr=1,Kt=2,_t,hr,Sr,mr,Ir=function(bt){var fr;return E(bt)&&S(fr=bt.then)?fr:!1},Fr=function(bt,fr){var cr=fr.value,rr=fr.state===Or,qt=rr?bt.ok:bt.fail,$r=bt.resolve,Br=bt.reject,Et=bt.domain,Bt,wt,gt;try{qt?(rr||(fr.rejection===Kt&&Er(fr),fr.rejection=xr),qt===!0?Bt=cr:(Et&&Et.enter(),Bt=qt(cr),Et&&(Et.exit(),gt=!0)),Bt===bt.promise?Br(new Ct("Promise-chain cycle")):(wt=Ir(Bt))?u(wt,Bt,$r,Br):$r(Bt)):Br(cr)}catch(Tt){Et&&!gt&&Et.exit(),Br(Tt)}},Dr=function(bt,fr){bt.notified||(bt.notified=!0,M(function(){for(var cr=bt.reactions,rr;rr=cr.get();)Fr(rr,bt);bt.notified=!1,fr&&!bt.rejection&&gr(bt)}))},Pr=function(bt,fr,cr){var rr,qt;Yt?(rr=St.createEvent("Event"),rr.promise=fr,rr.reason=cr,rr.initEvent(bt,!1,!0),i.dispatchEvent(rr)):rr={promise:fr,reason:cr},!k&&(qt=i["on"+bt])?qt(rr):bt===Xt&&D("Unhandled promise rejection",cr)},gr=function(bt){u(T,i,function(){var fr=bt.facade,cr=bt.value,rr=Cr(bt),qt;if(rr&&(qt=$(function(){o?$t.emit("unhandledRejection",cr,fr):Pr(Xt,fr,cr)}),bt.rejection=o||Cr(bt)?Kt:xr,qt.error))throw qt.value})},Cr=function(bt){return bt.rejection!==xr&&!bt.parent},Er=function(bt){u(T,i,function(){var fr=bt.facade;o?$t.emit("rejectionHandled",fr):Pr(er,fr,bt.value)})},pr=function(bt,fr,cr){return function(rr){bt(fr,rr,cr)}},Ut=function(bt,fr,cr){bt.done||(bt.done=!0,cr&&(bt=cr),bt.value=fr,bt.state=yr,Dr(bt,!0))},Vt=function(bt,fr,cr){if(!bt.done){bt.done=!0,cr&&(bt=cr);try{if(bt.facade===fr)throw new Ct("Promise can't be resolved itself");var rr=Ir(fr);rr?M(function(){var qt={done:!1};try{u(rr,fr,pr(Vt,qt,bt),pr(Ut,qt,bt))}catch($r){Ut(qt,$r,bt)}}):(bt.value=fr,bt.state=Or,Dr(bt,!1))}catch(qt){Ut({done:!1},qt,bt)}}};if(Y&&(ot=function(fr){I(this,pt),y(fr),u(_t,this);var cr=ut(this);try{fr(pr(Vt,cr),pr(Ut,cr))}catch(rr){Ut(cr,rr)}},pt=ot.prototype,_t=function(fr){rt(this,{type:X,done:!1,notified:!1,parent:!1,reactions:new U,rejection:!1,state:ir,value:void 0})},_t.prototype=f(pt,"then",function(fr,cr){var rr=ut(this),qt=Rt(A(this,ot));return rr.parent=!0,qt.ok=S(fr)?fr:!0,qt.fail=S(cr)&&cr,qt.domain=o?$t.domain:void 0,rr.state===ir?rr.reactions.add(qt):M(function(){Fr(qt,rr)}),qt.promise}),hr=function(){var bt=new _t,fr=ut(bt);this.promise=bt,this.resolve=pr(Vt,fr),this.reject=pr(Ut,fr)},W.f=Rt=function(bt){return bt===ot||bt===Sr?new hr(bt):Qt(bt)},!e&&S(N)&&at!==Object.prototype)){mr=at.then,st||f(at,"then",function(fr,cr){var rr=this;return new ot(function(qt,$r){u(mr,rr,qt,$r)}).then(fr,cr)},{unsafe:!0});try{delete at.constructor}catch(bt){}c&&c(at,pt)}n({global:!0,constructor:!0,wrap:!0,forced:Y},{Promise:ot}),g(ot,X,!1,!0),v(X)},58361:function(l,p,t){var n=t(14304),e=t(70457),o=t(98844),i=t(72069),u=t(38941),f=t(23583),c=t(16887),g=t(87408),v=t(16142),y=o&&o.prototype,S=!!o&&i(function(){y.finally.call({then:function(){}},function(){})});if(n({target:"Promise",proto:!0,real:!0,forced:S},{finally:function(I){var A=c(this,u("Promise")),T=f(I);return this.then(T?function(M){return g(A,I()).then(function(){return M})}:I,T?function(M){return g(A,I()).then(function(){throw M})}:I)}}),!e&&f(o)){var E=u("Promise").prototype.finally;y.finally!==E&&v(y,"finally",E,{unsafe:!0})}},63616:function(l,p,t){t(20238),t(11733),t(14013),t(3037),t(36027),t(97282)},3037:function(l,p,t){var n=t(14304),e=t(96499),o=t(85156),i=t(24649),u=t(67805),f=t(55902),c=t(26035);n({target:"Promise",stat:!0,forced:c},{race:function(v){var y=this,S=i.f(y),E=S.reject,I=u(function(){var A=o(y.resolve);f(v,function(T){e(A,y,T).then(S.resolve,E)})});return I.error&&E(I.value),S.promise}})},36027:function(l,p,t){var n=t(14304),e=t(24649),o=t(37130).CONSTRUCTOR;n({target:"Promise",stat:!0,forced:o},{reject:function(u){var f=e.f(this),c=f.reject;return c(u),f.promise}})},97282:function(l,p,t){var n=t(14304),e=t(38941),o=t(70457),i=t(98844),u=t(37130).CONSTRUCTOR,f=t(87408),c=e("Promise"),g=o&&!u;n({target:"Promise",stat:!0,forced:o||u},{resolve:function(y){return f(g&&this===c?i:this,y)}})},23958:function(l,p,t){var n=t(14304),e=t(24649);n({target:"Promise",stat:!0},{withResolvers:function(){var i=e.f(this);return{promise:i.promise,resolve:i.resolve,reject:i.reject}}})},9798:function(l,p,t){var n=t(14304),e=t(66543),o=t(85156),i=t(25001),u=t(72069),f=!u(function(){Reflect.apply(function(){})});n({target:"Reflect",stat:!0,forced:f},{apply:function(g,v,y){return e(o(g),v,i(y))}})},2371:function(l,p,t){var n=t(14304),e=t(38941),o=t(66543),i=t(91384),u=t(80042),f=t(25001),c=t(37540),g=t(5406),v=t(72069),y=e("Reflect","construct"),S=Object.prototype,E=[].push,I=v(function(){function M(){}return!(y(function(){},[],M)instanceof M)}),A=!v(function(){y(function(){})}),T=I||A;n({target:"Reflect",stat:!0,forced:T,sham:T},{construct:function(D,$){u(D),f($);var U=arguments.length<3?D:u(arguments[2]);if(A&&!I)return y(D,$,U);if(D===U){switch($.length){case 0:return new D;case 1:return new D($[0]);case 2:return new D($[0],$[1]);case 3:return new D($[0],$[1],$[2]);case 4:return new D($[0],$[1],$[2],$[3])}var G=[null];return o(E,G,$),new(o(i,D,G))}var N=U.prototype,w=g(c(N)?N:S),W=o(D,w,$);return c(W)?W:w}})},76185:function(l,p,t){var n=t(14304),e=t(92986),o=t(25001),i=t(50035),u=t(7831),f=t(72069),c=f(function(){Reflect.defineProperty(u.f({},1,{value:1}),1,{value:2})});n({target:"Reflect",stat:!0,forced:c,sham:!e},{defineProperty:function(v,y,S){o(v);var E=i(y);o(S);try{return u.f(v,E,S),!0}catch(I){return!1}}})},76553:function(l,p,t){var n=t(14304),e=t(25001),o=t(71349).f;n({target:"Reflect",stat:!0},{deleteProperty:function(u,f){var c=o(e(u),f);return c&&!c.configurable?!1:delete u[f]}})},25227:function(l,p,t){var n=t(14304),e=t(92986),o=t(25001),i=t(71349);n({target:"Reflect",stat:!0,sham:!e},{getOwnPropertyDescriptor:function(f,c){return i.f(o(f),c)}})},91723:function(l,p,t){var n=t(14304),e=t(25001),o=t(26313),i=t(87501);n({target:"Reflect",stat:!0,sham:!i},{getPrototypeOf:function(f){return o(e(f))}})},93518:function(l,p,t){var n=t(14304),e=t(96499),o=t(37540),i=t(25001),u=t(69745),f=t(71349),c=t(26313);function g(v,y){var S=arguments.length<3?v:arguments[2],E,I;if(i(v)===S)return v[y];if(E=f.f(v,y),E)return u(E)?E.value:E.get===void 0?void 0:e(E.get,S);if(o(I=c(v)))return g(I,y,S)}n({target:"Reflect",stat:!0},{get:g})},57882:function(l,p,t){var n=t(14304);n({target:"Reflect",stat:!0},{has:function(o,i){return i in o}})},37796:function(l,p,t){var n=t(14304),e=t(25001),o=t(28174);n({target:"Reflect",stat:!0},{isExtensible:function(u){return e(u),o(u)}})},11563:function(l,p,t){var n=t(14304),e=t(16885);n({target:"Reflect",stat:!0},{ownKeys:e})},26159:function(l,p,t){var n=t(14304),e=t(38941),o=t(25001),i=t(27534);n({target:"Reflect",stat:!0,sham:!i},{preventExtensions:function(f){o(f);try{var c=e("Object","preventExtensions");return c&&c(f),!0}catch(g){return!1}}})},77487:function(l,p,t){var n=t(14304),e=t(25001),o=t(53408),i=t(15861);i&&n({target:"Reflect",stat:!0},{setPrototypeOf:function(f,c){e(f),o(c);try{return i(f,c),!0}catch(g){return!1}}})},20962:function(l,p,t){var n=t(14304),e=t(96499),o=t(25001),i=t(37540),u=t(69745),f=t(72069),c=t(7831),g=t(71349),v=t(26313),y=t(18526);function S(I,A,T){var M=arguments.length<4?I:arguments[3],D=g.f(o(I),A),$,U,G;if(!D){if(i(U=v(I)))return S(U,A,T,M);D=y(0)}if(u(D)){if(D.writable===!1||!i(M))return!1;if($=g.f(M,A)){if($.get||$.set||$.writable===!1)return!1;$.value=T,c.f(M,A,$)}else c.f(M,A,y(0,T))}else{if(G=D.set,G===void 0)return!1;e(G,M,T)}return!0}var E=f(function(){var I=function(){},A=c.f(new I,"a",{configurable:!0});return Reflect.set(I.prototype,"a",1,A)!==!1});n({target:"Reflect",stat:!0,forced:E},{set:S})},6130:function(l,p,t){var n=t(14304),e=t(66009),o=t(78401);n({global:!0},{Reflect:{}}),o(e.Reflect,"Reflect",!0)},1354:function(l,p,t){var n=t(92986),e=t(66009),o=t(11286),i=t(13278),u=t(32345),f=t(90809),c=t(5406),g=t(83258).f,v=t(95307),y=t(11566),S=t(17361),E=t(54932),I=t(39807),A=t(2594),T=t(16142),M=t(72069),D=t(94879),$=t(82367).enforce,U=t(36167),G=t(18565),N=t(76769),w=t(85220),W=G("match"),X=e.RegExp,Y=X.prototype,k=e.SyntaxError,st=o(Y.exec),ut=o("".charAt),rt=o("".replace),at=o("".indexOf),ot=o("".slice),pt=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Ct=/a/g,St=/a/g,$t=new X(Ct)!==Ct,Rt=I.MISSED_STICKY,Qt=I.UNSUPPORTED_Y,Yt=n&&(!$t||Rt||N||w||M(function(){return St[W]=!1,X(Ct)!==Ct||X(St)===St||String(X(Ct,"i"))!=="/a/i"})),Xt=function(xr){for(var Kt=xr.length,_t=0,hr="",Sr=!1,mr;_t<=Kt;_t++){if(mr=ut(xr,_t),mr==="\\"){hr+=mr+ut(xr,++_t);continue}!Sr&&mr==="."?hr+="[\\s\\S]":(mr==="["?Sr=!0:mr==="]"&&(Sr=!1),hr+=mr)}return hr},er=function(xr){for(var Kt=xr.length,_t=0,hr="",Sr=[],mr=c(null),Ir=!1,Fr=!1,Dr=0,Pr="",gr;_t<=Kt;_t++){if(gr=ut(xr,_t),gr==="\\")gr+=ut(xr,++_t);else if(gr==="]")Ir=!1;else if(!Ir)switch(!0){case gr==="[":Ir=!0;break;case gr==="(":st(pt,ot(xr,_t+1))&&(_t+=2,Fr=!0),hr+=gr,Dr++;continue;case(gr===">"&&Fr):if(Pr===""||D(mr,Pr))throw new k("Invalid capture group name");mr[Pr]=!0,Sr[Sr.length]=[Pr,Dr],Fr=!1,Pr="";continue}Fr?Pr+=gr:hr+=gr}return[hr,Sr]};if(i("RegExp",Yt)){for(var ir=function(Kt,_t){var hr=v(Y,this),Sr=y(Kt),mr=_t===void 0,Ir=[],Fr=Kt,Dr,Pr,gr,Cr,Er,pr;if(!hr&&Sr&&mr&&Kt.constructor===ir)return Kt;if((Sr||v(Y,Kt))&&(Kt=Kt.source,mr&&(_t=E(Fr))),Kt=Kt===void 0?"":S(Kt),_t=_t===void 0?"":S(_t),Fr=Kt,N&&"dotAll"in Ct&&(Pr=!!_t&&at(_t,"s")>-1,Pr&&(_t=rt(_t,/s/g,""))),Dr=_t,Rt&&"sticky"in Ct&&(gr=!!_t&&at(_t,"y")>-1,gr&&Qt&&(_t=rt(_t,/y/g,""))),w&&(Cr=er(Kt),Kt=Cr[0],Ir=Cr[1]),Er=u(X(Kt,_t),hr?this:Y,ir),(Pr||gr||Ir.length)&&(pr=$(Er),Pr&&(pr.dotAll=!0,pr.raw=ir(Xt(Kt),Dr)),gr&&(pr.sticky=!0),Ir.length&&(pr.groups=Ir)),Kt!==Fr)try{f(Er,"source",Fr===""?"(?:)":Fr)}catch(Ut){}return Er},Or=g(X),yr=0;Or.length>yr;)A(ir,X,Or[yr++]);Y.constructor=ir,ir.prototype=Y,T(e,"RegExp",ir,{constructor:!0})}U("RegExp")},47119:function(l,p,t){var n=t(92986),e=t(76769),o=t(14274),i=t(85500),u=t(82367).get,f=RegExp.prototype,c=TypeError;n&&e&&i(f,"dotAll",{configurable:!0,get:function(){if(this!==f){if(o(this)==="RegExp")return!!u(this).dotAll;throw new c("Incompatible receiver, RegExp required")}}})},31145:function(l,p,t){var n=t(14304),e=t(44381);n({target:"RegExp",proto:!0,forced:/./.exec!==e},{exec:e})},96773:function(l,p,t){var n=t(66009),e=t(92986),o=t(85500),i=t(29833),u=t(72069),f=n.RegExp,c=f.prototype,g=e&&u(function(){var v=!0;try{f(".","d")}catch(D){v=!1}var y={},S="",E=v?"dgimsy":"gimsy",I=function(D,$){Object.defineProperty(y,D,{get:function(){return S+=$,!0}})},A={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};v&&(A.hasIndices="d");for(var T in A)I(T,A[T]);var M=Object.getOwnPropertyDescriptor(c,"flags").get.call(y);return M!==E||S!==E});g&&o(c,"flags",{configurable:!0,get:i})},14371:function(l,p,t){var n=t(92986),e=t(39807).MISSED_STICKY,o=t(14274),i=t(85500),u=t(82367).get,f=RegExp.prototype,c=TypeError;n&&e&&i(f,"sticky",{configurable:!0,get:function(){if(this!==f){if(o(this)==="RegExp")return!!u(this).sticky;throw new c("Incompatible receiver, RegExp required")}}})},18180:function(l,p,t){t(31145);var n=t(14304),e=t(96499),o=t(23583),i=t(25001),u=t(17361),f=function(){var g=!1,v=/[ac]/;return v.exec=function(){return g=!0,/./.exec.apply(this,arguments)},v.test("abc")===!0&&g}(),c=/./.test;n({target:"RegExp",proto:!0,forced:!f},{test:function(g){var v=i(this),y=u(g),S=v.exec;if(!o(S))return e(c,v,y);var E=e(S,v,y);return E===null?!1:(i(E),!0)}})},83147:function(l,p,t){var n=t(86588).PROPER,e=t(16142),o=t(25001),i=t(17361),u=t(72069),f=t(54932),c="toString",g=RegExp.prototype,v=g[c],y=u(function(){return v.call({source:"a",flags:"b"})!=="/a/b"}),S=n&&v.name!==c;(y||S)&&e(g,c,function(){var I=o(this),A=i(I.source),T=i(f(I));return"/"+A+"/"+T},{unsafe:!0})},6583:function(l,p,t){var n=t(89378),e=t(34440);n("Set",function(o){return function(){return o(this,arguments.length?arguments[0]:void 0)}},e)},86548:function(l,p,t){var n=t(14304),e=t(41754),o=t(94118);n({target:"Set",proto:!0,real:!0,forced:!o("difference")},{difference:e})},15282:function(l,p,t){var n=t(14304),e=t(72069),o=t(92292),i=t(94118),u=!i("intersection")||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});n({target:"Set",proto:!0,real:!0,forced:u},{intersection:o})},51275:function(l,p,t){var n=t(14304),e=t(47391),o=t(94118);n({target:"Set",proto:!0,real:!0,forced:!o("isDisjointFrom")},{isDisjointFrom:e})},91890:function(l,p,t){var n=t(14304),e=t(75492),o=t(94118);n({target:"Set",proto:!0,real:!0,forced:!o("isSubsetOf")},{isSubsetOf:e})},15089:function(l,p,t){var n=t(14304),e=t(1333),o=t(94118);n({target:"Set",proto:!0,real:!0,forced:!o("isSupersetOf")},{isSupersetOf:e})},75765:function(l,p,t){t(6583)},78134:function(l,p,t){var n=t(14304),e=t(64680),o=t(94118);n({target:"Set",proto:!0,real:!0,forced:!o("symmetricDifference")},{symmetricDifference:e})},56456:function(l,p,t){var n=t(14304),e=t(70402),o=t(94118);n({target:"Set",proto:!0,real:!0,forced:!o("union")},{union:e})},70641:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("anchor")},{anchor:function(u){return e(this,"a","name",u)}})},40735:function(l,p,t){var n=t(14304),e=t(11286),o=t(2068),i=t(12105),u=t(17361),f=t(72069),c=e("".charAt),g=f(function(){return"\u{20BB7}".at(-2)!=="\uD842"});n({target:"String",proto:!0,forced:g},{at:function(y){var S=u(o(this)),E=S.length,I=i(y),A=I>=0?I:E+I;return A<0||A>=E?void 0:c(S,A)}})},53892:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("big")},{big:function(){return e(this,"big","","")}})},95976:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("blink")},{blink:function(){return e(this,"blink","","")}})},399:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("bold")},{bold:function(){return e(this,"b","","")}})},8510:function(l,p,t){var n=t(14304),e=t(22149).codeAt;n({target:"String",proto:!0},{codePointAt:function(i){return e(this,i)}})},70159:function(l,p,t){var n=t(14304),e=t(77422),o=t(71349).f,i=t(45344),u=t(17361),f=t(92337),c=t(2068),g=t(8790),v=t(70457),y=e("".slice),S=Math.min,E=g("endsWith"),I=!v&&!E&&!!function(){var A=o(String.prototype,"endsWith");return A&&!A.writable}();n({target:"String",proto:!0,forced:!I&&!E},{endsWith:function(T){var M=u(c(this));f(T);var D=arguments.length>1?arguments[1]:void 0,$=M.length,U=D===void 0?$:S(i(D),$),G=u(T);return y(M,U-G.length,U)===G}})},72032:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("fixed")},{fixed:function(){return e(this,"tt","","")}})},49442:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("fontcolor")},{fontcolor:function(u){return e(this,"font","color",u)}})},16012:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("fontsize")},{fontsize:function(u){return e(this,"font","size",u)}})},93087:function(l,p,t){var n=t(14304),e=t(11286),o=t(4652),i=RangeError,u=String.fromCharCode,f=String.fromCodePoint,c=e([].join),g=!!f&&f.length!==1;n({target:"String",stat:!0,arity:1,forced:g},{fromCodePoint:function(y){for(var S=[],E=arguments.length,I=0,A;E>I;){if(A=+arguments[I++],o(A,1114111)!==A)throw new i(A+" is not a valid code point");S[I]=A<65536?u(A):u(((A-=65536)>>10)+55296,A%1024+56320)}return c(S,"")}})},26021:function(l,p,t){var n=t(14304),e=t(11286),o=t(92337),i=t(2068),u=t(17361),f=t(8790),c=e("".indexOf);n({target:"String",proto:!0,forced:!f("includes")},{includes:function(v){return!!~c(u(i(this)),u(o(v)),arguments.length>1?arguments[1]:void 0)}})},93029:function(l,p,t){var n=t(14304),e=t(11286),o=t(2068),i=t(17361),u=e("".charCodeAt);n({target:"String",proto:!0},{isWellFormed:function(){for(var c=i(o(this)),g=c.length,v=0;v=56320||++v>=g||(u(c,v)&64512)!==56320))return!1}return!0}})},9943:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("italics")},{italics:function(){return e(this,"i","","")}})},59158:function(l,p,t){var n=t(22149).charAt,e=t(17361),o=t(82367),i=t(10218),u=t(10659),f="String Iterator",c=o.set,g=o.getterFor(f);i(String,"String",function(v){c(this,{type:f,string:e(v),index:0})},function(){var y=g(this),S=y.string,E=y.index,I;return E>=S.length?u(void 0,!0):(I=n(S,E),y.index+=I.length,u(I,!1))})},33128:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("link")},{link:function(u){return e(this,"a","href",u)}})},18509:function(l,p,t){var n=t(14304),e=t(96499),o=t(77422),i=t(26820),u=t(10659),f=t(2068),c=t(45344),g=t(17361),v=t(25001),y=t(5683),S=t(14274),E=t(11566),I=t(54932),A=t(10512),T=t(16142),M=t(72069),D=t(18565),$=t(16887),U=t(24487),G=t(33064),N=t(82367),w=t(70457),W=D("matchAll"),X="RegExp String",Y=X+" Iterator",k=N.set,st=N.getterFor(Y),ut=RegExp.prototype,rt=TypeError,at=o("".indexOf),ot=o("".matchAll),pt=!!ot&&!M(function(){ot("a",/./)}),Ct=i(function(Rt,Qt,Yt,Xt){k(this,{type:Y,regexp:Rt,string:Qt,global:Yt,unicode:Xt,done:!1})},X,function(){var Rt=st(this);if(Rt.done)return u(void 0,!0);var Qt=Rt.regexp,Yt=Rt.string,Xt=G(Qt,Yt);return Xt===null?(Rt.done=!0,u(void 0,!0)):Rt.global?(g(Xt[0])===""&&(Qt.lastIndex=U(Yt,c(Qt.lastIndex),Rt.unicode)),u(Xt,!1)):(Rt.done=!0,u(Xt,!1))}),St=function($t){var Rt=v(this),Qt=g($t),Yt=$(Rt,RegExp),Xt=g(I(Rt)),er,ir,Or;return er=new Yt(Yt===RegExp?Rt.source:Rt,Xt),ir=!!~at(Xt,"g"),Or=!!~at(Xt,"u"),er.lastIndex=c(Rt.lastIndex),new Ct(er,Qt,ir,Or)};n({target:"String",proto:!0,forced:pt},{matchAll:function(Rt){var Qt=f(this),Yt,Xt,er,ir;if(y(Rt)){if(pt)return ot(Qt,Rt)}else{if(E(Rt)&&(Yt=g(f(I(Rt))),!~at(Yt,"g")))throw new rt("`.matchAll` does not allow non-global regexes");if(pt)return ot(Qt,Rt);if(er=A(Rt,W),er===void 0&&w&&S(Rt)==="RegExp"&&(er=St),er)return e(er,Rt,Qt)}return Xt=g(Qt),ir=new RegExp(Rt,"g"),w?e(St,ir,Xt):ir[W](Xt)}}),w||W in ut||T(ut,W,St)},15599:function(l,p,t){var n=t(96499),e=t(63194),o=t(25001),i=t(5683),u=t(45344),f=t(17361),c=t(2068),g=t(10512),v=t(24487),y=t(33064);e("match",function(S,E,I){return[function(T){var M=c(this),D=i(T)?void 0:g(T,S);return D?n(D,T,M):new RegExp(T)[S](f(M))},function(A){var T=o(this),M=f(A),D=I(E,T,M);if(D.done)return D.value;if(!T.global)return y(T,M);var $=T.unicode;T.lastIndex=0;for(var U=[],G=0,N;(N=y(T,M))!==null;){var w=f(N[0]);U[G]=w,w===""&&(T.lastIndex=v(M,u(T.lastIndex),$)),G++}return G===0?null:U}]})},21579:function(l,p,t){var n=t(14304),e=t(61607).end,o=t(36945);n({target:"String",proto:!0,forced:o},{padEnd:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}})},8854:function(l,p,t){var n=t(14304),e=t(61607).start,o=t(36945);n({target:"String",proto:!0,forced:o},{padStart:function(u){return e(this,u,arguments.length>1?arguments[1]:void 0)}})},57676:function(l,p,t){var n=t(14304),e=t(11286),o=t(36859),i=t(49671),u=t(17361),f=t(82628),c=e([].push),g=e([].join);n({target:"String",stat:!0},{raw:function(y){var S=o(i(y).raw),E=f(S);if(!E)return"";for(var I=arguments.length,A=[],T=0;;){if(c(A,u(S[T++])),T===E)return g(A,"");Tst.length?-1:M(st,ut,Ct+ot);return St")!=="7"});i("replace",function(rt,at,ot){var pt=st?"$":"$0";return[function(St,$t){var Rt=E(this),Qt=g(St)?void 0:A(St,$);return Qt?e(Qt,St,Rt,$t):e(at,S(Rt),St,$t)},function(Ct,St){var $t=f(this),Rt=S(Ct);if(typeof St=="string"&&W(St,pt)===-1&&W(St,"$<")===-1){var Qt=ot(at,$t,Rt,St);if(Qt.done)return Qt.value}var Yt=c(St);Yt||(St=S(St));var Xt=$t.global,er;Xt&&(er=$t.unicode,$t.lastIndex=0);for(var ir=[],Or;Or=M($t,Rt),!(Or===null||(w(ir,Or),!Xt));){var yr=S(Or[0]);yr===""&&($t.lastIndex=I(Rt,y($t.lastIndex),er))}for(var xr="",Kt=0,_t=0;_t=Kt&&(xr+=X(Rt,Kt,Sr)+Ir,Kt=Sr+hr.length)}return xr+X(Rt,Kt)}]},!ut||!k||st)},74980:function(l,p,t){var n=t(96499),e=t(63194),o=t(25001),i=t(5683),u=t(2068),f=t(13944),c=t(17361),g=t(10512),v=t(33064);e("search",function(y,S,E){return[function(A){var T=u(this),M=i(A)?void 0:g(A,y);return M?n(M,A,T):new RegExp(A)[y](c(T))},function(I){var A=o(this),T=c(I),M=E(S,A,T);if(M.done)return M.value;var D=A.lastIndex;f(D,0)||(A.lastIndex=0);var $=v(A,T);return f(A.lastIndex,D)||(A.lastIndex=D),$===null?-1:$.index}]})},95625:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("small")},{small:function(){return e(this,"small","","")}})},390:function(l,p,t){var n=t(96499),e=t(11286),o=t(63194),i=t(25001),u=t(5683),f=t(2068),c=t(16887),g=t(24487),v=t(45344),y=t(17361),S=t(10512),E=t(33064),I=t(39807),A=t(72069),T=I.UNSUPPORTED_Y,M=4294967295,D=Math.min,$=e([].push),U=e("".slice),G=!A(function(){var w=/(?:)/,W=w.exec;w.exec=function(){return W.apply(this,arguments)};var X="ab".split(w);return X.length!==2||X[0]!=="a"||X[1]!=="b"}),N="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;o("split",function(w,W,X){var Y="0".split(void 0,0).length?function(k,st){return k===void 0&&st===0?[]:n(W,this,k,st)}:W;return[function(st,ut){var rt=f(this),at=u(st)?void 0:S(st,w);return at?n(at,st,rt,ut):n(Y,y(rt),st,ut)},function(k,st){var ut=i(this),rt=y(k);if(!N){var at=X(Y,ut,rt,st,Y!==W);if(at.done)return at.value}var ot=c(ut,RegExp),pt=ut.unicode,Ct=(ut.ignoreCase?"i":"")+(ut.multiline?"m":"")+(ut.unicode?"u":"")+(T?"g":"y"),St=new ot(T?"^(?:"+ut.source+")":ut,Ct),$t=st===void 0?M:st>>>0;if($t===0)return[];if(rt.length===0)return E(St,rt)===null?[rt]:[];for(var Rt=0,Qt=0,Yt=[];Qt1?arguments[1]:void 0,M.length)),$=u(T);return y(M,D,D+$.length)===$}})},90614:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("strike")},{strike:function(){return e(this,"strike","","")}})},60120:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("sub")},{sub:function(){return e(this,"sub","","")}})},21293:function(l,p,t){var n=t(14304),e=t(11286),o=t(2068),i=t(12105),u=t(17361),f=e("".slice),c=Math.max,g=Math.min,v=!"".substr||"ab".substr(-1)!=="b";n({target:"String",proto:!0,forced:v},{substr:function(S,E){var I=u(o(this)),A=I.length,T=i(S),M,D;return T===1/0&&(T=0),T<0&&(T=c(A+T,0)),M=E===void 0?A:i(E),M<=0||M===1/0?"":(D=g(T+M,A),T>=D?"":f(I,T,D))}})},75826:function(l,p,t){var n=t(14304),e=t(68422),o=t(5287);n({target:"String",proto:!0,forced:o("sup")},{sup:function(){return e(this,"sup","","")}})},18184:function(l,p,t){var n=t(14304),e=t(96499),o=t(11286),i=t(2068),u=t(17361),f=t(72069),c=Array,g=o("".charAt),v=o("".charCodeAt),y=o([].join),S="".toWellFormed,E="\uFFFD",I=S&&f(function(){return e(S,1)!=="1"});n({target:"String",proto:!0,forced:I},{toWellFormed:function(){var T=u(i(this));if(I)return e(S,T);for(var M=T.length,D=c(M),$=0;$=56320||$+1>=M||(v(T,$+1)&64512)!==56320?D[$]=E:(D[$]=g(T,$),D[++$]=g(T,$))}return y(D,"")}})},19680:function(l,p,t){t(23283);var n=t(14304),e=t(75176);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==e},{trimEnd:e})},12272:function(l,p,t){var n=t(14304),e=t(83481);n({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==e},{trimLeft:e})},23283:function(l,p,t){var n=t(14304),e=t(75176);n({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==e},{trimRight:e})},4193:function(l,p,t){t(12272);var n=t(14304),e=t(83481);n({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==e},{trimStart:e})},75012:function(l,p,t){var n=t(14304),e=t(85900).trim,o=t(33328);n({target:"String",proto:!0,forced:o("trim")},{trim:function(){return e(this)}})},43606:function(l,p,t){var n=t(83749);n("asyncIterator")},51767:function(l,p,t){var n=t(14304),e=t(66009),o=t(96499),i=t(11286),u=t(70457),f=t(92986),c=t(39729),g=t(72069),v=t(94879),y=t(95307),S=t(25001),E=t(36859),I=t(50035),A=t(17361),T=t(18526),M=t(5406),D=t(18350),$=t(83258),U=t(92880),G=t(24943),N=t(71349),w=t(7831),W=t(61963),X=t(79591),Y=t(16142),k=t(85500),st=t(96731),ut=t(44869),rt=t(19423),at=t(36374),ot=t(18565),pt=t(56529),Ct=t(83749),St=t(60796),$t=t(78401),Rt=t(82367),Qt=t(66655).forEach,Yt=ut("hidden"),Xt="Symbol",er="prototype",ir=Rt.set,Or=Rt.getterFor(Xt),yr=Object[er],xr=e.Symbol,Kt=xr&&xr[er],_t=e.RangeError,hr=e.TypeError,Sr=e.QObject,mr=N.f,Ir=w.f,Fr=U.f,Dr=X.f,Pr=i([].push),gr=st("symbols"),Cr=st("op-symbols"),Er=st("wks"),pr=!Sr||!Sr[er]||!Sr[er].findChild,Ut=function(Bt,wt,gt){var Tt=mr(yr,wt);Tt&&delete yr[wt],Ir(Bt,wt,gt),Tt&&Bt!==yr&&Ir(yr,wt,Tt)},Vt=f&&g(function(){return M(Ir({},"a",{get:function(){return Ir(this,"a",{value:7}).a}})).a!==7})?Ut:Ir,bt=function(Bt,wt){var gt=gr[Bt]=M(Kt);return ir(gt,{type:Xt,tag:Bt,description:wt}),f||(gt.description=wt),gt},fr=function(wt,gt,Tt){wt===yr&&fr(Cr,gt,Tt),S(wt);var q=I(gt);return S(Tt),v(gr,q)?(Tt.enumerable?(v(wt,Yt)&&wt[Yt][q]&&(wt[Yt][q]=!1),Tt=M(Tt,{enumerable:T(0,!1)})):(v(wt,Yt)||Ir(wt,Yt,T(1,M(null))),wt[Yt][q]=!0),Vt(wt,q,Tt)):Ir(wt,q,Tt)},cr=function(wt,gt){S(wt);var Tt=E(gt),q=D(Tt).concat(Et(Tt));return Qt(q,function(At){(!f||o(qt,Tt,At))&&fr(wt,At,Tt[At])}),wt},rr=function(wt,gt){return gt===void 0?M(wt):cr(M(wt),gt)},qt=function(wt){var gt=I(wt),Tt=o(Dr,this,gt);return this===yr&&v(gr,gt)&&!v(Cr,gt)?!1:Tt||!v(this,gt)||!v(gr,gt)||v(this,Yt)&&this[Yt][gt]?Tt:!0},$r=function(wt,gt){var Tt=E(wt),q=I(gt);if(!(Tt===yr&&v(gr,q)&&!v(Cr,q))){var At=mr(Tt,q);return At&&v(gr,q)&&!(v(Tt,Yt)&&Tt[Yt][q])&&(At.enumerable=!0),At}},Br=function(wt){var gt=Fr(E(wt)),Tt=[];return Qt(gt,function(q){!v(gr,q)&&!v(rt,q)&&Pr(Tt,q)}),Tt},Et=function(Bt){var wt=Bt===yr,gt=Fr(wt?Cr:E(Bt)),Tt=[];return Qt(gt,function(q){v(gr,q)&&(!wt||v(yr,q))&&Pr(Tt,gr[q])}),Tt};c||(xr=function(){if(y(Kt,this))throw new hr("Symbol is not a constructor");var wt=!arguments.length||arguments[0]===void 0?void 0:A(arguments[0]),gt=at(wt),Tt=function(q){var At=this===void 0?e:this;At===yr&&o(Tt,Cr,q),v(At,Yt)&&v(At[Yt],gt)&&(At[Yt][gt]=!1);var Jt=T(1,q);try{Vt(At,gt,Jt)}catch(kt){if(!(kt instanceof _t))throw kt;Ut(At,gt,Jt)}};return f&&pr&&Vt(yr,gt,{configurable:!0,set:Tt}),bt(gt,wt)},Kt=xr[er],Y(Kt,"toString",function(){return Or(this).tag}),Y(xr,"withoutSetter",function(Bt){return bt(at(Bt),Bt)}),X.f=qt,w.f=fr,W.f=cr,N.f=$r,$.f=U.f=Br,G.f=Et,pt.f=function(Bt){return bt(ot(Bt),Bt)},f&&(k(Kt,"description",{configurable:!0,get:function(){return Or(this).description}}),u||Y(yr,"propertyIsEnumerable",qt,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:xr}),Qt(D(Er),function(Bt){Ct(Bt)}),n({target:Xt,stat:!0,forced:!c},{useSetter:function(){pr=!0},useSimple:function(){pr=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!f},{create:rr,defineProperty:fr,defineProperties:cr,getOwnPropertyDescriptor:$r}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:Br}),St(),$t(xr,Xt),rt[Yt]=!0},43657:function(l,p,t){var n=t(14304),e=t(92986),o=t(66009),i=t(11286),u=t(94879),f=t(23583),c=t(95307),g=t(17361),v=t(85500),y=t(93706),S=o.Symbol,E=S&&S.prototype;if(e&&f(S)&&(!("description"in E)||S().description!==void 0)){var I={},A=function(){var w=arguments.length<1||arguments[0]===void 0?void 0:g(arguments[0]),W=c(E,this)?new S(w):w===void 0?S():S(w);return w===""&&(I[W]=!0),W};y(A,S),A.prototype=E,E.constructor=A;var T=String(S("description detection"))==="Symbol(description detection)",M=i(E.valueOf),D=i(E.toString),$=/^Symbol\((.*)\)[^)]+$/,U=i("".replace),G=i("".slice);v(E,"description",{configurable:!0,get:function(){var w=M(this);if(u(I,w))return"";var W=D(w),X=T?G(W,7,-1):U(W,$,"$1");return X===""?void 0:X}}),n({global:!0,constructor:!0,forced:!0},{Symbol:A})}},20872:function(l,p,t){var n=t(14304),e=t(38941),o=t(94879),i=t(17361),u=t(96731),f=t(61190),c=u("string-to-symbol-registry"),g=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!f},{for:function(v){var y=i(v);if(o(c,y))return c[y];var S=e("Symbol")(y);return c[y]=S,g[S]=y,S}})},15855:function(l,p,t){var n=t(83749);n("hasInstance")},42026:function(l,p,t){var n=t(83749);n("isConcatSpreadable")},33257:function(l,p,t){var n=t(83749);n("iterator")},40949:function(l,p,t){t(51767),t(20872),t(94762),t(71332),t(45223)},94762:function(l,p,t){var n=t(14304),e=t(94879),o=t(491),i=t(82453),u=t(96731),f=t(61190),c=u("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!f},{keyFor:function(v){if(!o(v))throw new TypeError(i(v)+" is not a symbol");if(e(c,v))return c[v]}})},88344:function(l,p,t){var n=t(83749);n("matchAll")},59414:function(l,p,t){var n=t(83749);n("match")},92579:function(l,p,t){var n=t(83749);n("replace")},94655:function(l,p,t){var n=t(83749);n("search")},8565:function(l,p,t){var n=t(83749);n("species")},60843:function(l,p,t){var n=t(83749);n("split")},65842:function(l,p,t){var n=t(83749),e=t(60796);n("toPrimitive"),e()},51595:function(l,p,t){var n=t(38941),e=t(83749),o=t(78401);e("toStringTag"),o(n("Symbol"),"Symbol")},54908:function(l,p,t){var n=t(83749);n("unscopables")},71998:function(l,p,t){var n=t(88037),e=t(82628),o=t(12105),i=n.aTypedArray,u=n.exportTypedArrayMethod;u("at",function(c){var g=i(this),v=e(g),y=o(c),S=y>=0?y:v+y;return S<0||S>=v?void 0:g[S]})},6116:function(l,p,t){var n=t(11286),e=t(88037),o=t(81499),i=n(o),u=e.aTypedArray,f=e.exportTypedArrayMethod;f("copyWithin",function(g,v){return i(u(this),g,v,arguments.length>2?arguments[2]:void 0)})},33032:function(l,p,t){var n=t(88037),e=t(66655).every,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("every",function(f){return e(o(this),f,arguments.length>1?arguments[1]:void 0)})},80962:function(l,p,t){var n=t(88037),e=t(43011),o=t(11344),i=t(9205),u=t(96499),f=t(11286),c=t(72069),g=n.aTypedArray,v=n.exportTypedArrayMethod,y=f("".slice),S=c(function(){var E=0;return new Int8Array(2).fill({valueOf:function(){return E++}}),E!==1});v("fill",function(I){var A=arguments.length;g(this);var T=y(i(this),0,3)==="Big"?o(I):+I;return u(e,this,T,A>1?arguments[1]:void 0,A>2?arguments[2]:void 0)},S)},49381:function(l,p,t){var n=t(88037),e=t(66655).filter,o=t(3795),i=n.aTypedArray,u=n.exportTypedArrayMethod;u("filter",function(c){var g=e(i(this),c,arguments.length>1?arguments[1]:void 0);return o(this,g)})},65961:function(l,p,t){var n=t(88037),e=t(66655).findIndex,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("findIndex",function(f){return e(o(this),f,arguments.length>1?arguments[1]:void 0)})},16028:function(l,p,t){var n=t(88037),e=t(73849).findLastIndex,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("findLastIndex",function(f){return e(o(this),f,arguments.length>1?arguments[1]:void 0)})},94153:function(l,p,t){var n=t(88037),e=t(73849).findLast,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("findLast",function(f){return e(o(this),f,arguments.length>1?arguments[1]:void 0)})},38344:function(l,p,t){var n=t(88037),e=t(66655).find,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("find",function(f){return e(o(this),f,arguments.length>1?arguments[1]:void 0)})},25560:function(l,p,t){var n=t(80357);n("Float32",function(e){return function(i,u,f){return e(this,i,u,f)}})},22571:function(l,p,t){var n=t(80357);n("Float64",function(e){return function(i,u,f){return e(this,i,u,f)}})},20656:function(l,p,t){var n=t(88037),e=t(66655).forEach,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("forEach",function(f){e(o(this),f,arguments.length>1?arguments[1]:void 0)})},17063:function(l,p,t){var n=t(46868),e=t(88037).exportTypedArrayStaticMethod,o=t(66169);e("from",o,n)},21774:function(l,p,t){var n=t(88037),e=t(94319).includes,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("includes",function(f){return e(o(this),f,arguments.length>1?arguments[1]:void 0)})},51761:function(l,p,t){var n=t(88037),e=t(94319).indexOf,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("indexOf",function(f){return e(o(this),f,arguments.length>1?arguments[1]:void 0)})},36849:function(l,p,t){var n=t(80357);n("Int16",function(e){return function(i,u,f){return e(this,i,u,f)}})},49191:function(l,p,t){var n=t(80357);n("Int32",function(e){return function(i,u,f){return e(this,i,u,f)}})},40704:function(l,p,t){var n=t(80357);n("Int8",function(e){return function(i,u,f){return e(this,i,u,f)}})},12317:function(l,p,t){var n=t(66009),e=t(72069),o=t(11286),i=t(88037),u=t(35054),f=t(18565),c=f("iterator"),g=n.Uint8Array,v=o(u.values),y=o(u.keys),S=o(u.entries),E=i.aTypedArray,I=i.exportTypedArrayMethod,A=g&&g.prototype,T=!e(function(){A[c].call([1])}),M=!!A&&A.values&&A[c]===A.values&&A.values.name==="values",D=function(){return v(E(this))};I("entries",function(){return S(E(this))},T),I("keys",function(){return y(E(this))},T),I("values",D,T||!M,{name:"values"}),I(c,D,T||!M,{name:"values"})},19711:function(l,p,t){var n=t(88037),e=t(11286),o=n.aTypedArray,i=n.exportTypedArrayMethod,u=e([].join);i("join",function(c){return u(o(this),c)})},41034:function(l,p,t){var n=t(88037),e=t(66543),o=t(58465),i=n.aTypedArray,u=n.exportTypedArrayMethod;u("lastIndexOf",function(c){var g=arguments.length;return e(o,i(this),g>1?[c,arguments[1]]:[c])})},13313:function(l,p,t){var n=t(88037),e=t(66655).map,o=t(21822),i=n.aTypedArray,u=n.exportTypedArrayMethod;u("map",function(c){return e(i(this),c,arguments.length>1?arguments[1]:void 0,function(g,v){return new(o(g))(v)})})},44698:function(l,p,t){var n=t(88037),e=t(46868),o=n.aTypedArrayConstructor,i=n.exportTypedArrayStaticMethod;i("of",function(){for(var f=0,c=arguments.length,g=new(o(this))(c);c>f;)g[f]=arguments[f++];return g},e)},66178:function(l,p,t){var n=t(88037),e=t(97264).right,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("reduceRight",function(f){var c=arguments.length;return e(o(this),f,c,c>1?arguments[1]:void 0)})},7369:function(l,p,t){var n=t(88037),e=t(97264).left,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("reduce",function(f){var c=arguments.length;return e(o(this),f,c,c>1?arguments[1]:void 0)})},67961:function(l,p,t){var n=t(88037),e=n.aTypedArray,o=n.exportTypedArrayMethod,i=Math.floor;o("reverse",function(){for(var f=this,c=e(f).length,g=i(c/2),v=0,y;v1?arguments[1]:void 0,1),U=f(D);if(A)return e(S,this,U,$);var G=this.length,N=i(U),w=0;if(N+$>G)throw new g("Wrong length");for(;wI;)T[I]=S[I++];return T},c)},9711:function(l,p,t){var n=t(88037),e=t(66655).some,o=n.aTypedArray,i=n.exportTypedArrayMethod;i("some",function(f){return e(o(this),f,arguments.length>1?arguments[1]:void 0)})},3923:function(l,p,t){var n=t(66009),e=t(77422),o=t(72069),i=t(85156),u=t(13270),f=t(88037),c=t(54040),g=t(87216),v=t(73126),y=t(68674),S=f.aTypedArray,E=f.exportTypedArrayMethod,I=n.Uint16Array,A=I&&e(I.prototype.sort),T=!!A&&!(o(function(){A(new I(2),null)})&&o(function(){A(new I(2),{})})),M=!!A&&!o(function(){if(v)return v<74;if(c)return c<67;if(g)return!0;if(y)return y<602;var $=new I(516),U=Array(516),G,N;for(G=0;G<516;G++)N=G%4,$[G]=515-G,U[G]=G-2*N+3;for(A($,function(w,W){return(w/4|0)-(W/4|0)}),G=0;G<516;G++)if($[G]!==U[G])return!0}),D=function($){return function(U,G){return $!==void 0?+$(U,G)||0:G!==G?-1:U!==U?1:U===0&&G===0?1/U>0&&1/G<0?1:-1:U>G}};E("sort",function(U){return U!==void 0&&i(U),M?A(this,U):u(S(this),D(U))},!M||T)},59728:function(l,p,t){var n=t(88037),e=t(45344),o=t(4652),i=t(21822),u=n.aTypedArray,f=n.exportTypedArrayMethod;f("subarray",function(g,v){var y=u(this),S=y.length,E=o(g,S),I=i(y);return new I(y.buffer,y.byteOffset+E*y.BYTES_PER_ELEMENT,e((v===void 0?S:o(v,S))-E))})},85227:function(l,p,t){var n=t(66009),e=t(66543),o=t(88037),i=t(72069),u=t(22806),f=n.Int8Array,c=o.aTypedArray,g=o.exportTypedArrayMethod,v=[].toLocaleString,y=!!f&&i(function(){v.call(new f(1))}),S=i(function(){return[1,2].toLocaleString()!==new f([1,2]).toLocaleString()})||!i(function(){f.prototype.toLocaleString.call([1,2])});g("toLocaleString",function(){return e(v,y?u(c(this)):c(this),u(arguments))},S)},56933:function(l,p,t){var n=t(61638),e=t(88037),o=e.aTypedArray,i=e.exportTypedArrayMethod,u=e.getTypedArrayConstructor;i("toReversed",function(){return n(o(this),u(this))})},91490:function(l,p,t){var n=t(88037),e=t(11286),o=t(85156),i=t(5220),u=n.aTypedArray,f=n.getTypedArrayConstructor,c=n.exportTypedArrayMethod,g=e(n.TypedArrayPrototype.sort);c("toSorted",function(y){y!==void 0&&o(y);var S=u(this),E=i(f(S),S);return g(E,y)})},61766:function(l,p,t){var n=t(88037).exportTypedArrayMethod,e=t(72069),o=t(66009),i=t(11286),u=o.Uint8Array,f=u&&u.prototype||{},c=[].toString,g=i([].join);e(function(){c.call({})})&&(c=function(){return g(this)});var v=f.toString!==c;n("toString",c,v)},44884:function(l,p,t){var n=t(80357);n("Uint16",function(e){return function(i,u,f){return e(this,i,u,f)}})},48658:function(l,p,t){var n=t(80357);n("Uint32",function(e){return function(i,u,f){return e(this,i,u,f)}})},81083:function(l,p,t){var n=t(80357);n("Uint8",function(e){return function(i,u,f){return e(this,i,u,f)}})},27428:function(l,p,t){var n=t(80357);n("Uint8",function(e){return function(i,u,f){return e(this,i,u,f)}},!0)},85143:function(l,p,t){var n=t(72302),e=t(88037),o=t(77129),i=t(12105),u=t(11344),f=e.aTypedArray,c=e.getTypedArrayConstructor,g=e.exportTypedArrayMethod,v=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(y){return y===8}}();g("with",function(y,S){var E=f(this),I=i(y),A=o(E)?u(S):+S;return n(E,c(E),I,A)},!v)},47005:function(l,p,t){var n=t(14304),e=t(11286),o=t(17361),i=String.fromCharCode,u=e("".charAt),f=e(/./.exec),c=e("".slice),g=/^[\da-f]{2}$/i,v=/^[\da-f]{4}$/i;n({global:!0},{unescape:function(S){for(var E=o(S),I="",A=E.length,T=0,M,D;T>(-2*rt&6)));return st}})},60869:function(l,p,t){var n=t(14304),e=t(66009),o=t(38941),i=t(11286),u=t(96499),f=t(72069),c=t(17361),g=t(95486),v=t(6210).i2c,y=o("btoa"),S=i("".charAt),E=i("".charCodeAt),I=!!y&&!f(function(){return y("hi")!=="aGk="}),A=I&&!f(function(){y()}),T=I&&f(function(){return y(null)!=="bnVsbA=="}),M=I&&y.length!==1;n({global:!0,bind:!0,enumerable:!0,forced:!I||A||T||M},{btoa:function($){if(g(arguments.length,1),I)return u(y,e,c($));for(var U=c($),G="",N=0,w=v,W,X;S(U,N)||(w="=",N%1);){if(X=E(U,N+=.75),X>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");W=W<<8|X,G+=S(w,63&W>>8-N%1*8)}return G}})},66722:function(l,p,t){var n=t(14304),e=t(66009),o=t(23115).clear;n({global:!0,bind:!0,enumerable:!0,forced:e.clearImmediate!==o},{clearImmediate:o})},50338:function(l,p,t){var n=t(66009),e=t(93014),o=t(39882),i=t(13349),u=t(90809),f=function(g){if(g&&g.forEach!==i)try{u(g,"forEach",i)}catch(v){g.forEach=i}};for(var c in e)e[c]&&f(n[c]&&n[c].prototype);f(o)},53059:function(l,p,t){var n=t(66009),e=t(93014),o=t(39882),i=t(35054),u=t(90809),f=t(78401),c=t(18565),g=c("iterator"),v=i.values,y=function(E,I){if(E){if(E[g]!==v)try{u(E,g,v)}catch(T){E[g]=v}if(f(E,I,!0),e[I]){for(var A in i)if(E[A]!==i[A])try{u(E,A,i[A])}catch(T){E[A]=i[A]}}}};for(var S in e)y(n[S]&&n[S].prototype,S);y(o,"DOMTokenList")},5805:function(l,p,t){var n=t(14304),e=t(18096),o=t(38941),i=t(72069),u=t(5406),f=t(18526),c=t(7831).f,g=t(16142),v=t(85500),y=t(94879),S=t(12833),E=t(25001),I=t(58434),A=t(15453),T=t(74408),M=t(40851),D=t(82367),$=t(92986),U=t(70457),G="DOMException",N="DATA_CLONE_ERR",w=o("Error"),W=o(G)||function(){try{var Kt=o("MessageChannel")||e("worker_threads").MessageChannel;new Kt().port1.postMessage(new WeakMap)}catch(_t){if(_t.name===N&&_t.code===25)return _t.constructor}}(),X=W&&W.prototype,Y=w.prototype,k=D.set,st=D.getterFor(G),ut="stack"in new w(G),rt=function(Kt){return y(T,Kt)&&T[Kt].m?T[Kt].c:0},at=function(){S(this,ot);var _t=arguments.length,hr=A(_t<1?void 0:arguments[0]),Sr=A(_t<2?void 0:arguments[1],"Error"),mr=rt(Sr);if(k(this,{type:G,name:Sr,message:hr,code:mr}),$||(this.name=Sr,this.message=hr,this.code=mr),ut){var Ir=new w(hr);Ir.name=G,c(this,"stack",f(1,M(Ir.stack,1)))}},ot=at.prototype=u(Y),pt=function(Kt){return{enumerable:!0,configurable:!0,get:Kt}},Ct=function(Kt){return pt(function(){return st(this)[Kt]})};$&&(v(ot,"code",Ct("code")),v(ot,"message",Ct("message")),v(ot,"name",Ct("name"))),c(ot,"constructor",f(1,at));var St=i(function(){return!(new W instanceof w)}),$t=St||i(function(){return Y.toString!==I||String(new W(1,2))!=="2: 1"}),Rt=St||i(function(){return new W(1,"DataCloneError").code!==25}),Qt=St||W[N]!==25||X[N]!==25,Yt=U?$t||Rt||Qt:St;n({global:!0,constructor:!0,forced:Yt},{DOMException:Yt?at:W});var Xt=o(G),er=Xt.prototype;$t&&(U||W===Xt)&&g(er,"toString",I),Rt&&$&&W===Xt&&v(er,"code",pt(function(){return rt(E(this).name)}));for(var ir in T)if(y(T,ir)){var Or=T[ir],yr=Or.s,xr=f(6,Or.c);y(Xt,yr)||c(Xt,yr,xr),y(er,yr)||c(er,yr,xr)}},50685:function(l,p,t){var n=t(14304),e=t(66009),o=t(38941),i=t(18526),u=t(7831).f,f=t(94879),c=t(12833),g=t(32345),v=t(15453),y=t(74408),S=t(40851),E=t(92986),I=t(70457),A="DOMException",T=o("Error"),M=o(A),D=function(){c(this,$);var at=arguments.length,ot=v(at<1?void 0:arguments[0]),pt=v(at<2?void 0:arguments[1],"Error"),Ct=new M(ot,pt),St=new T(ot);return St.name=A,u(Ct,"stack",i(1,S(St.stack,1))),g(Ct,this,D),Ct},$=D.prototype=M.prototype,U="stack"in new T(A),G="stack"in new M(1,2),N=M&&E&&Object.getOwnPropertyDescriptor(e,A),w=!!N&&!(N.writable&&N.configurable),W=U&&!w&&!G;n({global:!0,constructor:!0,forced:I||W},{DOMException:W?D:M});var X=o(A),Y=X.prototype;if(Y.constructor!==X){I||u(Y,"constructor",i(1,X));for(var k in y)if(f(y,k)){var st=y[k],ut=st.s;f(X,ut)||u(X,ut,i(6,st.c))}}},70649:function(l,p,t){var n=t(38941),e=t(78401),o="DOMException";e(n(o),o)},39842:function(l,p,t){t(66722),t(8235)},82872:function(l,p,t){var n=t(14304),e=t(66009),o=t(9709),i=t(85156),u=t(95486),f=t(72069),c=t(92986),g=f(function(){return c&&Object.getOwnPropertyDescriptor(e,"queueMicrotask").value.length!==1});n({global:!0,enumerable:!0,dontCallGetSet:!0,forced:g},{queueMicrotask:function(y){u(arguments.length,1),o(i(y))}})},91401:function(l,p,t){var n=t(14304),e=t(66009),o=t(85500),i=t(92986),u=TypeError,f=Object.defineProperty,c=e.self!==e;try{if(i){var g=Object.getOwnPropertyDescriptor(e,"self");(c||!g||!g.get||!g.enumerable)&&o(e,"self",{get:function(){return e},set:function(y){if(this!==e)throw new u("Illegal invocation");f(e,"self",{value:y,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else n({global:!0,simple:!0,forced:c},{self:e})}catch(v){}},8235:function(l,p,t){var n=t(14304),e=t(66009),o=t(23115).set,i=t(9934),u=e.setImmediate?i(o,!1):o;n({global:!0,bind:!0,enumerable:!0,forced:e.setImmediate!==u},{setImmediate:u})},63981:function(l,p,t){var n=t(14304),e=t(66009),o=t(9934),i=o(e.setInterval,!0);n({global:!0,bind:!0,forced:e.setInterval!==i},{setInterval:i})},23913:function(l,p,t){var n=t(14304),e=t(66009),o=t(9934),i=o(e.setTimeout,!0);n({global:!0,bind:!0,forced:e.setTimeout!==i},{setTimeout:i})},92904:function(l,p,t){var n=t(70457),e=t(14304),o=t(66009),i=t(38941),u=t(11286),f=t(72069),c=t(36374),g=t(23583),v=t(11051),y=t(5683),S=t(37540),E=t(491),I=t(55902),A=t(25001),T=t(9205),M=t(94879),D=t(84082),$=t(90809),U=t(82628),G=t(95486),N=t(54932),w=t(1774),W=t(172),X=t(35051),Y=t(63741),k=t(16929),st=t(99050),ut=o.Object,rt=o.Array,at=o.Date,ot=o.Error,pt=o.TypeError,Ct=o.PerformanceMark,St=i("DOMException"),$t=w.Map,Rt=w.has,Qt=w.get,Yt=w.set,Xt=W.Set,er=W.add,ir=W.has,Or=i("Object","keys"),yr=u([].push),xr=u((!0).valueOf),Kt=u(1 .valueOf),_t=u("".valueOf),hr=u(at.prototype.getTime),Sr=c("structuredClone"),mr="DataCloneError",Ir="Transferring",Fr=function(Et){return!f(function(){var Bt=new o.Set([7]),wt=Et(Bt),gt=Et(ut(7));return wt===Bt||!wt.has(7)||!S(gt)||+gt!=7})&&Et},Dr=function(Et,Bt){return!f(function(){var wt=new Bt,gt=Et({a:wt,b:wt});return!(gt&>.a===gt.b&>.a instanceof Bt&>.a.stack===wt.stack)})},Pr=function(Et){return!f(function(){var Bt=Et(new o.AggregateError([1],Sr,{cause:3}));return Bt.name!=="AggregateError"||Bt.errors[0]!==1||Bt.message!==Sr||Bt.cause!==3})},gr=o.structuredClone,Cr=n||!Dr(gr,ot)||!Dr(gr,St)||!Pr(gr),Er=!gr&&Fr(function(Et){return new Ct(Sr,{detail:Et}).detail}),pr=Fr(gr)||Er,Ut=function(Et){throw new St("Uncloneable type: "+Et,mr)},Vt=function(Et,Bt){throw new St((Bt||"Cloning")+" of "+Et+" cannot be properly polyfilled in this engine",mr)},bt=function(Et,Bt){return pr||Vt(Bt),pr(Et)},fr=function(){var Et;try{Et=new o.DataTransfer}catch(Bt){try{Et=new o.ClipboardEvent("").clipboardData}catch(wt){}}return Et&&Et.items&&Et.files?Et:null},cr=function(Et,Bt,wt){if(Rt(Bt,Et))return Qt(Bt,Et);var gt=wt||T(Et),Tt,q,At,Jt,kt,ar;if(gt==="SharedArrayBuffer")pr?Tt=pr(Et):Tt=Et;else{var Tr=o.DataView;!Tr&&!g(Et.slice)&&Vt("ArrayBuffer");try{if(g(Et.slice)&&!Et.resizable)Tt=Et.slice(0);else for(q=Et.byteLength,At=("maxByteLength"in Et)?{maxByteLength:Et.maxByteLength}:void 0,Tt=new ArrayBuffer(q,At),Jt=new Tr(Et),kt=new Tr(Tt),ar=0;ar1&&!y(arguments[1])?A(arguments[1]):void 0,gt=wt?wt.transfer:void 0,Tt,q;gt!==void 0&&(Tt=new $t,q=$r(gt,Tt));var At=qt(Bt,Tt);return q&&Br(q),At}})},28381:function(l,p,t){t(63981),t(23913)},98812:function(l,p,t){t(35054);var n=t(14304),e=t(66009),o=t(28167),i=t(96499),u=t(11286),f=t(92986),c=t(91918),g=t(16142),v=t(85500),y=t(2725),S=t(78401),E=t(26820),I=t(82367),A=t(12833),T=t(23583),M=t(94879),D=t(45526),$=t(9205),U=t(25001),G=t(37540),N=t(17361),w=t(5406),W=t(18526),X=t(90619),Y=t(81077),k=t(10659),st=t(95486),ut=t(18565),rt=t(13270),at=ut("iterator"),ot="URLSearchParams",pt=ot+"Iterator",Ct=I.set,St=I.getterFor(ot),$t=I.getterFor(pt),Rt=o("fetch"),Qt=o("Request"),Yt=o("Headers"),Xt=Qt&&Qt.prototype,er=Yt&&Yt.prototype,ir=e.RegExp,Or=e.TypeError,yr=e.decodeURIComponent,xr=e.encodeURIComponent,Kt=u("".charAt),_t=u([].join),hr=u([].push),Sr=u("".replace),mr=u([].shift),Ir=u([].splice),Fr=u("".split),Dr=u("".slice),Pr=/\+/g,gr=Array(4),Cr=function(gt){return gr[gt-1]||(gr[gt-1]=ir("((?:%[\\da-f]{2}){"+gt+"})","gi"))},Er=function(gt){try{return yr(gt)}catch(Tt){return gt}},pr=function(gt){var Tt=Sr(gt,Pr," "),q=4;try{return yr(Tt)}catch(At){for(;q;)Tt=Sr(Tt,Cr(q--),Er);return Tt}},Ut=/[!'()~]|%20/g,Vt={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},bt=function(gt){return Vt[gt]},fr=function(gt){return Sr(xr(gt),Ut,bt)},cr=E(function(Tt,q){Ct(this,{type:pt,target:St(Tt).entries,index:0,kind:q})},ot,function(){var Tt=$t(this),q=Tt.target,At=Tt.index++;if(!q||At>=q.length)return Tt.target=void 0,k(void 0,!0);var Jt=q[At];switch(Tt.kind){case"keys":return k(Jt.key,!1);case"values":return k(Jt.value,!1)}return k([Jt.key,Jt.value],!1)},!0),rr=function(gt){this.entries=[],this.url=null,gt!==void 0&&(G(gt)?this.parseObject(gt):this.parseQuery(typeof gt=="string"?Kt(gt,0)==="?"?Dr(gt,1):gt:N(gt)))};rr.prototype={type:ot,bindURL:function(gt){this.url=gt,this.update()},parseObject:function(gt){var Tt=this.entries,q=Y(gt),At,Jt,kt,ar,Tr,dr,Lr;if(q)for(At=X(gt,q),Jt=At.next;!(kt=i(Jt,At)).done;){if(ar=X(U(kt.value)),Tr=ar.next,(dr=i(Tr,ar)).done||(Lr=i(Tr,ar)).done||!i(Tr,ar).done)throw new Or("Expected sequence with length 2");hr(Tt,{key:N(dr.value),value:N(Lr.value)})}else for(var on in gt)M(gt,on)&&hr(Tt,{key:on,value:N(gt[on])})},parseQuery:function(gt){if(gt)for(var Tt=this.entries,q=Fr(gt,"&"),At=0,Jt,kt;At0?arguments[0]:void 0,q=Ct(this,new rr(Tt));f||(this.size=q.entries.length)},$r=qt.prototype;if(y($r,{append:function(Tt,q){var At=St(this);st(arguments.length,2),hr(At.entries,{key:N(Tt),value:N(q)}),f||this.length++,At.updateURL()},delete:function(gt){for(var Tt=St(this),q=st(arguments.length,1),At=Tt.entries,Jt=N(gt),kt=q<2?void 0:arguments[1],ar=kt===void 0?kt:N(kt),Tr=0;TrAt.key?1:-1}),Tt.updateURL()},forEach:function(Tt){for(var q=St(this).entries,At=D(Tt,arguments.length>1?arguments[1]:void 0),Jt=0,kt;Jt1?Bt(arguments[1]):{})}}),T(Qt)){var wt=function(Tt){return A(this,Xt),new Qt(Tt,arguments.length>1?Bt(arguments[1]):{})};Xt.constructor=wt,wt.prototype=Xt,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:wt})}}l.exports={URLSearchParams:qt,getState:St}},10901:function(l,p,t){var n=t(16142),e=t(11286),o=t(17361),i=t(95486),u=URLSearchParams,f=u.prototype,c=e(f.append),g=e(f.delete),v=e(f.forEach),y=e([].push),S=new u("a=1&a=2&b=3");S.delete("a",1),S.delete("b",void 0),S+""!="a=2"&&n(f,"delete",function(E){var I=arguments.length,A=I<2?void 0:arguments[1];if(I&&A===void 0)return g(this,E);var T=[];v(this,function(W,X){y(T,{key:X,value:W})}),i(I,1);for(var M=o(E),D=o(A),$=0,U=0,G=!1,N=T.length,w;$?@[\\\]^|]/,gr=/[\0\t\n\r #/:<>?@[\\\]^|]/,Cr=/^[\u0000-\u0020]+/,Er=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,pr=/[\t\n\r]/g,Ut,Vt=function(mt){var Wt=Yt(mt,"."),Mt,ht,jt,Ar,vr,Gr,Kr;if(Wt.length&&Wt[Wt.length-1]===""&&Wt.length--,Mt=Wt.length,Mt>4)return mt;for(ht=[],jt=0;jt1&&at(Ar,0)==="0"&&(vr=ot(mr,Ar)?16:8,Ar=Xt(Ar,vr===8?1:2)),Ar==="")Gr=0;else{if(!ot(vr===10?Fr:vr===8?Ir:Dr,Ar))return mt;Gr=st(Ar,vr)}$t(ht,Gr)}for(jt=0;jt=rt(256,5-Mt))return null}else if(Gr>255)return null;for(Kr=St(ht),jt=0;jt6))return;for(Gr=0;zr();){if(Kr=null,Gr>0)if(zr()==="."&&Gr<4)jt++;else return;if(!ot(Sr,zr()))return;for(;ot(Sr,zr());){if(Yr=st(zr(),10),Kr===null)Kr=Yr;else{if(Kr===0)return;Kr=Kr*10+Yr}if(Kr>255)return;jt++}Wt[Mt]=Wt[Mt]*256+Kr,Gr++,(Gr===2||Gr===4)&&Mt++}if(Gr!==4)return;break}else if(zr()===":"){if(jt++,!zr())return}else if(zr())return;Wt[Mt++]=Ar}if(ht!==null)for(_r=Mt-ht,Mt=7;Mt!==0&&_r>0;)Ht=Wt[Mt],Wt[Mt--]=Wt[ht+_r-1],Wt[ht+--_r]=Ht;else if(Mt!==8)return;return Wt},fr=function(mt){for(var Wt=null,Mt=1,ht=null,jt=0,Ar=0;Ar<8;Ar++)mt[Ar]!==0?(jt>Mt&&(Wt=ht,Mt=jt),ht=null,jt=0):(ht===null&&(ht=Ar),++jt);return jt>Mt&&(Wt=ht,Mt=jt),Wt},cr=function(mt){var Wt,Mt,ht,jt;if(typeof mt=="number"){for(Wt=[],Mt=0;Mt<4;Mt++)ir(Wt,mt%256),mt=ut(mt/256);return pt(Wt,".")}else if(typeof mt=="object"){for(Wt="",ht=fr(mt),Mt=0;Mt<8;Mt++)jt&&mt[Mt]===0||(jt&&(jt=!1),ht===Mt?(Wt+=Mt?":":"::",jt=!0):(Wt+=Ct(mt[Mt],16),Mt<7&&(Wt+=":")));return"["+Wt+"]"}return mt},rr={},qt=S({},rr,{" ":1,'"':1,"<":1,">":1,"`":1}),$r=S({},qt,{"#":1,"?":1,"{":1,"}":1}),Br=S({},$r,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Et=function(mt,Wt){var Mt=A(mt,0);return Mt>32&&Mt<127&&!y(Wt,mt)?mt:encodeURIComponent(mt)},Bt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},wt=function(mt,Wt){var Mt;return mt.length===2&&ot(_t,at(mt,0))&&((Mt=at(mt,1))===":"||!Wt&&Mt==="|")},gt=function(mt){var Wt;return mt.length>1&&wt(Xt(mt,0,2))&&(mt.length===2||(Wt=at(mt,2))==="/"||Wt==="\\"||Wt==="?"||Wt==="#")},Tt=function(mt){return mt==="."||er(mt)==="%2e"},q=function(mt){return mt=er(mt),mt===".."||mt==="%2e."||mt===".%2e"||mt==="%2e%2e"},At={},Jt={},kt={},ar={},Tr={},dr={},Lr={},on={},En={},Ur={},Vn={},ee={},ae={},Hn={},oe={},Wn={},Xr={},Vr={},tn={},en={},kr={},qr=function(mt,Wt,Mt){var ht=M(mt),jt,Ar,vr;if(Wt){if(Ar=this.parse(ht),Ar)throw new k(Ar);this.searchParams=null}else{if(Mt!==void 0&&(jt=new qr(Mt,!0)),Ar=this.parse(ht,null,jt),Ar)throw new k(Ar);vr=X(new W),vr.bindURL(this),this.searchParams=vr}};qr.prototype={type:"URL",parse:function(mt,Wt,Mt){var ht=this,jt=Wt||At,Ar=0,vr="",Gr=!1,Kr=!1,Yr=!1,_r,Ht,zr,un;for(mt=M(mt),Wt||(ht.scheme="",ht.username="",ht.password="",ht.host=null,ht.port=null,ht.path=[],ht.query=null,ht.fragment=null,ht.cannotBeABaseURL=!1,mt=Rt(mt,Cr,""),mt=Rt(mt,Er,"$1")),mt=Rt(mt,pr,""),_r=E(mt);Ar<=_r.length;){switch(Ht=_r[Ar],jt){case At:if(Ht&&ot(_t,Ht))vr+=er(Ht),jt=Jt;else{if(Wt)return yr;jt=kt;continue}break;case Jt:if(Ht&&(ot(hr,Ht)||Ht==="+"||Ht==="-"||Ht==="."))vr+=er(Ht);else if(Ht===":"){if(Wt&&(ht.isSpecial()!==y(Bt,vr)||vr==="file"&&(ht.includesCredentials()||ht.port!==null)||ht.scheme==="file"&&!ht.host))return;if(ht.scheme=vr,Wt){ht.isSpecial()&&Bt[ht.scheme]===ht.port&&(ht.port=null);return}vr="",ht.scheme==="file"?jt=Hn:ht.isSpecial()&&Mt&&Mt.scheme===ht.scheme?jt=ar:ht.isSpecial()?jt=on:_r[Ar+1]==="/"?(jt=Tr,Ar++):(ht.cannotBeABaseURL=!0,$t(ht.path,""),jt=tn)}else{if(Wt)return yr;vr="",jt=kt,Ar=0;continue}break;case kt:if(!Mt||Mt.cannotBeABaseURL&&Ht!=="#")return yr;if(Mt.cannotBeABaseURL&&Ht==="#"){ht.scheme=Mt.scheme,ht.path=I(Mt.path),ht.query=Mt.query,ht.fragment="",ht.cannotBeABaseURL=!0,jt=kr;break}jt=Mt.scheme==="file"?Hn:dr;continue;case ar:if(Ht==="/"&&_r[Ar+1]==="/")jt=En,Ar++;else{jt=dr;continue}break;case Tr:if(Ht==="/"){jt=Ur;break}else{jt=Vr;continue}case dr:if(ht.scheme=Mt.scheme,Ht===Ut)ht.username=Mt.username,ht.password=Mt.password,ht.host=Mt.host,ht.port=Mt.port,ht.path=I(Mt.path),ht.query=Mt.query;else if(Ht==="/"||Ht==="\\"&&ht.isSpecial())jt=Lr;else if(Ht==="?")ht.username=Mt.username,ht.password=Mt.password,ht.host=Mt.host,ht.port=Mt.port,ht.path=I(Mt.path),ht.query="",jt=en;else if(Ht==="#")ht.username=Mt.username,ht.password=Mt.password,ht.host=Mt.host,ht.port=Mt.port,ht.path=I(Mt.path),ht.query=Mt.query,ht.fragment="",jt=kr;else{ht.username=Mt.username,ht.password=Mt.password,ht.host=Mt.host,ht.port=Mt.port,ht.path=I(Mt.path),ht.path.length--,jt=Vr;continue}break;case Lr:if(ht.isSpecial()&&(Ht==="/"||Ht==="\\"))jt=En;else if(Ht==="/")jt=Ur;else{ht.username=Mt.username,ht.password=Mt.password,ht.host=Mt.host,ht.port=Mt.port,jt=Vr;continue}break;case on:if(jt=En,Ht!=="/"||at(vr,Ar+1)!=="/")continue;Ar++;break;case En:if(Ht!=="/"&&Ht!=="\\"){jt=Ur;continue}break;case Ur:if(Ht==="@"){Gr&&(vr="%40"+vr),Gr=!0,zr=E(vr);for(var An=0;An65535)return Kt;ht.port=ht.isSpecial()&&bn===Bt[ht.scheme]?null:bn,vr=""}if(Wt)return;jt=Xr;continue}else return Kt;break;case Hn:if(ht.scheme="file",Ht==="/"||Ht==="\\")jt=oe;else if(Mt&&Mt.scheme==="file")switch(Ht){case Ut:ht.host=Mt.host,ht.path=I(Mt.path),ht.query=Mt.query;break;case"?":ht.host=Mt.host,ht.path=I(Mt.path),ht.query="",jt=en;break;case"#":ht.host=Mt.host,ht.path=I(Mt.path),ht.query=Mt.query,ht.fragment="",jt=kr;break;default:gt(pt(I(_r,Ar),""))||(ht.host=Mt.host,ht.path=I(Mt.path),ht.shortenPath()),jt=Vr;continue}else{jt=Vr;continue}break;case oe:if(Ht==="/"||Ht==="\\"){jt=Wn;break}Mt&&Mt.scheme==="file"&&!gt(pt(I(_r,Ar),""))&&(wt(Mt.path[0],!0)?$t(ht.path,Mt.path[0]):ht.host=Mt.host),jt=Vr;continue;case Wn:if(Ht===Ut||Ht==="/"||Ht==="\\"||Ht==="?"||Ht==="#"){if(!Wt&&wt(vr))jt=Vr;else if(vr===""){if(ht.host="",Wt)return;jt=Xr}else{if(un=ht.parseHost(vr),un)return un;if(ht.host==="localhost"&&(ht.host=""),Wt)return;vr="",jt=Xr}continue}else vr+=Ht;break;case Xr:if(ht.isSpecial()){if(jt=Vr,Ht!=="/"&&Ht!=="\\")continue}else if(!Wt&&Ht==="?")ht.query="",jt=en;else if(!Wt&&Ht==="#")ht.fragment="",jt=kr;else if(Ht!==Ut&&(jt=Vr,Ht!=="/"))continue;break;case Vr:if(Ht===Ut||Ht==="/"||Ht==="\\"&&ht.isSpecial()||!Wt&&(Ht==="?"||Ht==="#")){if(q(vr)?(ht.shortenPath(),Ht!=="/"&&!(Ht==="\\"&&ht.isSpecial())&&$t(ht.path,"")):Tt(vr)?Ht!=="/"&&!(Ht==="\\"&&ht.isSpecial())&&$t(ht.path,""):(ht.scheme==="file"&&!ht.path.length&&wt(vr)&&(ht.host&&(ht.host=""),vr=at(vr,0)+":"),$t(ht.path,vr)),vr="",ht.scheme==="file"&&(Ht===Ut||Ht==="?"||Ht==="#"))for(;ht.path.length>1&&ht.path[0]==="";)Qt(ht.path);Ht==="?"?(ht.query="",jt=en):Ht==="#"&&(ht.fragment="",jt=kr)}else vr+=Et(Ht,$r);break;case tn:Ht==="?"?(ht.query="",jt=en):Ht==="#"?(ht.fragment="",jt=kr):Ht!==Ut&&(ht.path[0]+=Et(Ht,rr));break;case en:!Wt&&Ht==="#"?(ht.fragment="",jt=kr):Ht!==Ut&&(Ht==="'"&&ht.isSpecial()?ht.query+="%27":Ht==="#"?ht.query+="%23":ht.query+=Et(Ht,rr));break;case kr:Ht!==Ut&&(ht.fragment+=Et(Ht,qt));break}Ar++}},parseHost:function(mt){var Wt,Mt,ht;if(at(mt,0)==="["){if(at(mt,mt.length-1)!=="]"||(Wt=bt(Xt(mt,1,-1)),!Wt))return xr;this.host=Wt}else if(this.isSpecial()){if(mt=T(mt),ot(Pr,mt)||(Wt=Vt(mt),Wt===null))return xr;this.host=Wt}else{if(ot(gr,mt))return xr;for(Wt="",Mt=E(mt),ht=0;ht1?arguments[1]:void 0,jt=N(Mt,new qr(Wt,!1,ht));e||(Mt.href=jt.serialize(),Mt.origin=jt.getOrigin(),Mt.protocol=jt.getProtocol(),Mt.username=jt.getUsername(),Mt.password=jt.getPassword(),Mt.host=jt.getHost(),Mt.hostname=jt.getHostname(),Mt.port=jt.getPort(),Mt.pathname=jt.getPathname(),Mt.search=jt.getSearch(),Mt.searchParams=jt.getSearchParams(),Mt.hash=jt.getHash())},Wr=Jr.prototype,wr=function(mt,Wt){return{get:function(){return w(this)[mt]()},set:Wt&&function(Mt){return w(this)[Wt](Mt)},configurable:!0,enumerable:!0}};if(e&&(g(Wr,"href",wr("serialize","setHref")),g(Wr,"origin",wr("getOrigin")),g(Wr,"protocol",wr("getProtocol","setProtocol")),g(Wr,"username",wr("getUsername","setUsername")),g(Wr,"password",wr("getPassword","setPassword")),g(Wr,"host",wr("getHost","setHost")),g(Wr,"hostname",wr("getHostname","setHostname")),g(Wr,"port",wr("getPort","setPort")),g(Wr,"pathname",wr("getPathname","setPathname")),g(Wr,"search",wr("getSearch","setSearch")),g(Wr,"searchParams",wr("getSearchParams")),g(Wr,"hash",wr("getHash","setHash"))),c(Wr,"toJSON",function(){return w(this).serialize()},{enumerable:!0}),c(Wr,"toString",function(){return w(this).serialize()},{enumerable:!0}),Y){var hn=Y.createObjectURL,Dn=Y.revokeObjectURL;hn&&c(Jr,"createObjectURL",u(hn,Y)),Dn&&c(Jr,"revokeObjectURL",u(Dn,Y))}D(Jr,"URL"),n({global:!0,constructor:!0,forced:!o,sham:!e},{URL:Jr})},51862:function(l,p,t){t(81888)},24119:function(l,p,t){var n=t(14304),e=t(38941),o=t(95486),i=t(17361),u=t(91918),f=e("URL");n({target:"URL",stat:!0,forced:!u},{parse:function(g){var v=o(arguments.length,1),y=i(g),S=v<2||arguments[1]===void 0?void 0:i(arguments[1]);try{return new f(y,S)}catch(E){return null}}})},97526:function(l,p,t){var n=t(14304),e=t(96499);n({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return e(URL.prototype.toString,this)}})},61969:function(l,p,t){t(40949),t(43657),t(43606),t(15855),t(42026),t(33257),t(59414),t(88344),t(92579),t(94655),t(8565),t(60843),t(65842),t(51595),t(54908),t(81742),t(8720),t(42861),t(27796),t(1341),t(98700),t(65481),t(46509),t(41585),t(84554),t(36619),t(33818),t(64096),t(2209),t(91591),t(74092),t(54703),t(82936),t(48493),t(64730),t(95024),t(35054),t(25460),t(60703),t(90468),t(69581),t(720),t(11042),t(17289),t(24608),t(51644),t(88088),t(46828),t(90088),t(35148),t(86184),t(53983),t(42560),t(88444),t(27839),t(73051),t(9372),t(35473),t(4983),t(6875),t(68575),t(35495),t(32790),t(58594),t(30801),t(90911),t(90429),t(33685),t(60086),t(96049),t(14038),t(55518),t(8894),t(60628),t(56347),t(16864),t(93819),t(71332),t(47269),t(25627),t(22090),t(9839),t(15656),t(22091),t(2886),t(25895),t(24228),t(79488),t(75987),t(81555),t(87854),t(35074),t(50946),t(29417),t(80628),t(74375),t(29708),t(93449),t(9111),t(83514),t(15096),t(59590),t(99663),t(89988),t(54427),t(67895),t(57909),t(83938),t(55461),t(97339),t(3670),t(15224),t(45891),t(99910),t(92445),t(21875),t(4383),t(11361),t(13728),t(14885),t(30343),t(22045),t(75e3),t(64658),t(16017),t(84681),t(73421),t(93446),t(31046),t(94645),t(62935),t(62518),t(45130),t(51542),t(43781),t(25738),t(93247),t(41533),t(60225),t(69920),t(89205),t(78546),t(63616),t(16893),t(3676),t(58361),t(23958),t(9798),t(2371),t(76185),t(76553),t(93518),t(25227),t(91723),t(57882),t(37796),t(11563),t(26159),t(20962),t(77487),t(6130),t(1354),t(47119),t(31145),t(96773),t(14371),t(18180),t(83147),t(75765),t(86548),t(15282),t(51275),t(91890),t(15089),t(78134),t(56456),t(40735),t(8510),t(70159),t(93087),t(26021),t(93029),t(59158),t(15599),t(18509),t(21579),t(8854),t(57676),t(14527),t(96834),t(52684),t(74980),t(390),t(42794),t(21293),t(18184),t(75012),t(19680),t(4193),t(70641),t(53892),t(95976),t(399),t(72032),t(49442),t(16012),t(9943),t(33128),t(95625),t(90614),t(60120),t(75826),t(25560),t(22571),t(40704),t(36849),t(49191),t(81083),t(27428),t(44884),t(48658),t(71998),t(6116),t(33032),t(80962),t(49381),t(38344),t(65961),t(94153),t(16028),t(20656),t(17063),t(21774),t(51761),t(12317),t(19711),t(41034),t(13313),t(44698),t(7369),t(66178),t(67961),t(8695),t(69997),t(9711),t(3923),t(59728),t(85227),t(56933),t(91490),t(61766),t(85143),t(47005),t(10042),t(37888),t(19431),t(60869),t(50338),t(53059),t(5805),t(50685),t(70649),t(39842),t(82872),t(91401),t(92904),t(28381),t(51862),t(20760),t(24119),t(97526),t(86650),t(10901),t(93944),t(79043),t(75081)}},Sn={};function sn(l){var p=Sn[l];if(p!==void 0)return p.exports;var t=Sn[l]={exports:{}};return ia[l].call(t.exports,t,t.exports,sn),t.exports}(function(){sn.d=function(l,p){for(var t in p)sn.o(p,t)&&!sn.o(l,t)&&Object.defineProperty(l,t,{enumerable:!0,get:p[t]})}})(),function(){sn.o=function(l,p){return Object.prototype.hasOwnProperty.call(l,p)}}(),sn(61969);var be=sn(65908);return be=be.default,be}()}); diff --git a/dist/theme/dark.css b/dist/theme/dark.css index 50afcce79..7ccc0e385 100644 --- a/dist/theme/dark.css +++ b/dist/theme/dark.css @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */ /*-- Dark Theme --*/ /*-- Default color pattern --*/ diff --git a/dist/theme/dark.min.css b/dist/theme/dark.min.css index 422a8099e..b1b04ca19 100644 --- a/dist/theme/dark.min.css +++ b/dist/theme/dark.min.css @@ -5,5 +5,5 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */.bb-color-pattern{background-image:url(#4a7fff;#b02c2c;#1ca46c;#b47300;#49baf3;#ed7e13;#cfaa00;#a6cd19;#dccb52;#f5d194;)}.bb svg{font-size:12px;font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#8d9cab}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#8d9cab;font-size:11px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid,.bb-line{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#8d9cab}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#8d9cab}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#5c666e}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ccd9e6}.bb-text.bb-empty{fill:#8d9cab}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px;stroke:8d9cab}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.selection{stroke:none;fill:#ccd9e6}.bb-selected-circle{fill:#ccd9e6;stroke-width:2px}.bb-bar{stroke-width:.5px}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.5!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.5}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.25;fill:#ccd9e6}.bb-brush .extent{fill-opacity:.5}.bb-legend-item{user-select:none}.bb-legend-item line{stroke-width:10px;stroke-dasharray:3px}.bb-legend-item text{transform:translateY(-1px)}.bb-legend-item-hidden{opacity:.5}.bb-legend-background{opacity:.75;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#8d9cab;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Helvetica,Arial,sans-serif,nanumgothic,Dotum;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #828181;border-radius:5px;background-color:#000;text-align:left;font-size:11px;color:#fff;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:left;border-bottom:solid 1px #828181}.bb-tooltip td{padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:7px;height:7px;margin:-1px 6px 0 0;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.5}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#3f3f3f;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#828181;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#b6c2ce;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#b6c2ce}.bb-chart-arc rect{stroke:#8d9cab;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#000;color:#fff;padding:5px;border-radius:5px;cursor:pointer} diff --git a/dist/theme/datalab.css b/dist/theme/datalab.css index 37000e851..9b65cdcf2 100644 --- a/dist/theme/datalab.css +++ b/dist/theme/datalab.css @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */ /*-- Datalab Theme --*/ /*-- Default color pattern --*/ diff --git a/dist/theme/datalab.min.css b/dist/theme/datalab.min.css index 5ef63722b..529d9fb03 100644 --- a/dist/theme/datalab.min.css +++ b/dist/theme/datalab.min.css @@ -5,5 +5,5 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */.bb-color-pattern{background-image:url(#2ac4b3;#feaf29;#ff617b;#73a2ef;#b180d0;#3064cf;#d0a45f;#8aaec7;#ef65a2;#8aaec7;)}.bb svg{font-size:11px;font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#000}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-font-smoothing:antialiased;user-select:none;fill:#555;font-size:11px}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{stroke-width:.7px}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:.7px}.bb-circle{fill:#fff!important}.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:1px}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;stroke-width:8px;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Sans Pro,Arial,sans-serif,nanumgothic,Dotum;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;border-radius:2px;empty-cells:show;border:1px solid #999;background-color:#fff;text-align:left;font-size:11px;-webkit-font-smoothing:antialiased;white-space:nowrap}.bb-tooltip th{font-size:13px;padding:2px 8px;text-align:left;border-bottom:solid 2px #ff2d2d;background-color:#0b00b1;color:#fffdfd}.bb-tooltip td{padding:4px 6px}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:8px;height:8px;margin-right:6px;border:solid 1px #000;border-radius:3px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:11px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:18px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:18px!important;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-line{shape-rendering:crispEdges}.bb-chart-arc .bb-gauge-value{fill:#3b6969}.bb-chart-arc path{stroke:#000;stroke-width:.5px}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:14px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:.7px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer} diff --git a/dist/theme/graph.css b/dist/theme/graph.css index 78df67f44..33e04a7b1 100644 --- a/dist/theme/graph.css +++ b/dist/theme/graph.css @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */ /*-- Graph Theme --*/ /*-- Default color pattern --*/ diff --git a/dist/theme/graph.min.css b/dist/theme/graph.min.css index bacf8687f..5044d6573 100644 --- a/dist/theme/graph.min.css +++ b/dist/theme/graph.min.css @@ -5,5 +5,5 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */.bb-color-pattern{background-image:url(#65CFC2;#D0A45F;#64A4F5;#EF65A2;#A377FE;#8AAEC7;#FF7E5A;#898EFE;#FFAC35;#70B0FF;)}.bb svg{font-size:12px;font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#8c8c8c}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:12px;letter-spacing:-.3px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#8c8c8c}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ffb6b6;stroke-dasharray:3px}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:2px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1px}.bb-legend-item line{stroke-dasharray:1px}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:Helvetica,Apple SD Gothic Neo,Arial,sans-serif,nanumgothic,Dotum;user-select:none}.bb-tooltip{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;border-radius:2px;background-color:#fff;text-align:left;font-size:12px;box-shadow:.5px .5px 1px #999;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:center;border-bottom:dotted 1px #000;background-color:#efefef;color:#000}.bb-tooltip tr:last-child td{border-bottom:none}.bb-tooltip td{padding:3px 6px;background-color:#fff;border-bottom:solid 1px #eee}.bb-tooltip td:first-child{padding-left:5px;border-right:solid 1px #eee}.bb-tooltip td:last-child{padding-right:5px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:5px;height:12px;margin-right:6px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:1px;font-size:12px}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#fff}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#8c8c8c;font-style:italic}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#8c8c8c;font-style:italic}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px;font-weight:700}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#8c8c8c}.bb-chart-radars .bb-axis line{stroke:#8c8c8c;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;font-weight:700;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer;opacity:.8;box-shadow:1px 1px 2px #ccc} diff --git a/dist/theme/insight.css b/dist/theme/insight.css index b65c624b5..7ae69c82e 100644 --- a/dist/theme/insight.css +++ b/dist/theme/insight.css @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */ /*-- Insight Theme --*/ /*-- Default color pattern --*/ diff --git a/dist/theme/insight.min.css b/dist/theme/insight.min.css index 4940f15cd..63bbaf073 100644 --- a/dist/theme/insight.min.css +++ b/dist/theme/insight.min.css @@ -5,5 +5,5 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */.bb-color-pattern{background-image:url(#00c73c;#fa7171;#2ad0ff;#7294ce;#e3e448;#cc7e6e;#fb6ccf;#c98dff;#4aea99;#bbbbbb;)}.bb svg{font-size:12px;font-family:sans-serif,Arial,nanumgothic,Dotum;line-height:1}.bb path,.bb line{fill:none;stroke:#c4c4c4}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:11px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#ddd}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{fill:#fff!important;stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#4682b4}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush,.bb-brush .extent{fill-opacity:.1}.bb-legend-item{user-select:none}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#fff;stroke-width:1px}.bb-tooltip-container{z-index:10;font-family:sans-serif,Arial,nanumgothic,Dotum;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;background-color:#fff;text-align:left;font-size:11px;white-space:nowrap}.bb-tooltip th{font-size:12px;padding:4px 8px;text-align:left;border-bottom:solid 1px #eee}.bb-tooltip td{padding:4px 6px;background-color:#fff}.bb-tooltip td:first-child{padding-left:8px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:none}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:16px!important;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:13px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#848282;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:solid 1px #ccc;background-color:#fff;padding:5px;border-radius:5px;cursor:pointer} diff --git a/dist/theme/modern.css b/dist/theme/modern.css index dc1791d1a..2ae6d874c 100644 --- a/dist/theme/modern.css +++ b/dist/theme/modern.css @@ -5,7 +5,7 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */ @charset "UTF-8"; /*-- Insight Theme --*/ diff --git a/dist/theme/modern.min.css b/dist/theme/modern.min.css index 4c26cfb64..17a2341ac 100644 --- a/dist/theme/modern.min.css +++ b/dist/theme/modern.min.css @@ -5,5 +5,5 @@ * billboard.js, JavaScript chart library * https://naver.github.io/billboard.js/ * - * @version 3.12.4-nightly-20240724004639 + * @version 3.12.4-nightly-20240726004631 */.bb-color-pattern{background-image:url(#7ea9fa;#ffcd1e;#d33043;#41c464;#c86b74;#006bc2;#2a7e41;#f27c00;#c159ff;#bed017;)}.bb svg{font-size:12px;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;line-height:1}.bb path,.bb line{fill:none;stroke:#cecece}.bb text,.bb .bb-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;fill:#555;font-size:10.5px}.bb-legend-item-title,.bb-xgrid-focus,.bb-ygrid-focus,.bb-ygrid{shape-rendering:crispEdges}.bb-chart-arcs .bb-needle{fill:#000}.bb-chart-funnels path{stroke-width:0}.bb-chart-funnels+.bb-chart-texts text{fill:#fff}.bb-axis{shape-rendering:crispEdges}.bb-axis .bb-axis-x-tooltip,.bb-axis .bb-axis-y-tooltip,.bb-axis .bb-axis-y2-tooltip{font-size:.9em;fill:#fff;white-space:nowrap}.bb-axis-y text,.bb-axis-y2 text{fill:#737373}.bb-event-rects{fill-opacity:1!important}.bb-event-rects .bb-event-rect{fill:transparent}.bb-event-rects .bb-event-rect._active_{fill:#27c9030d}.tick._active_ text{fill:#00c83c!important}.bb-grid{pointer-events:none}.bb-grid line{stroke:#f1f1f1}.bb-xgrid-focus line,.bb-ygrid-focus line{stroke:#d2bad8}.bb-text.bb-empty{fill:#767676}.bb-line{stroke-width:1px}.bb-circle._expanded_{stroke-width:2px;stroke:red}rect.bb-circle._expanded_,use.bb-circle._expanded_{stroke-width:1px}.bb-selected-circle{fill:#fff;stroke-width:2px}.bb-bar{stroke-width:0}.bb-bar._expanded_{fill-opacity:.75}.bb-candlestick{stroke-width:1px}.bb-candlestick._expanded_{fill-opacity:.75}.bb-target.bb-focused,.bb-circles.bb-focused{opacity:1}.bb-target.bb-focused path.bb-line,.bb-target.bb-focused path.bb-step,.bb-circles.bb-focused path.bb-line,.bb-circles.bb-focused path.bb-step{stroke-width:2px}.bb-target.bb-defocused,.bb-circles.bb-defocused{opacity:.3!important}.bb-target.bb-defocused .text-overlapping,.bb-circles.bb-defocused .text-overlapping{opacity:.05!important}.bb-region{fill:#71808d}.bb-region rect{fill-opacity:.1}.bb-region.selected rect{fill:#27c903}.bb-zoom-brush{fill-opacity:.1;fill:#838181}.bb-brush .extent{fill-opacity:.1}.bb-brush .selection{fill:#838181;fill-opacity:.2}.bb-brush path{stroke:#838181}.bb-legend-item{user-select:none}.bb-legend-item line.bb-legend-item-tile{stroke-linecap:round;transform:translate(7px,1px);stroke-dasharray:1 20}.bb-legend-item-hidden{opacity:.15}.bb-legend-background{opacity:.75;fill:#fff;stroke:#d3d3d3;stroke-width:1}.bb-title{font-size:14px}.bb-chart-treemaps rect{stroke:#000;stroke-width:.5px}.bb-tooltip-container{z-index:10;font-family:-apple-system,"system-ui",Noto Sans,Malgun Gothic,\b9d1\c740 \ace0\b515,helvetica,Apple SD Gothic Neo,sans-serif;user-select:none}.bb-tooltip{border-collapse:separate;border-spacing:0;empty-cells:show;border:1px solid #999;color:#fff;border-radius:5px;background-color:#404244;text-align:left;font-size:11px;white-space:nowrap;opacity:.9}.bb-tooltip th{font-size:11px;padding:3px 6px 0;text-align:left}.bb-tooltip td{padding:3px}.bb-tooltip td:first-child{padding-left:7px}.bb-tooltip td:last-child{padding-right:8px}.bb-tooltip td>span,.bb-tooltip td>svg{display:inline-block;width:7px;height:7px;margin-right:6px;border-radius:5px;vertical-align:middle}.bb-tooltip td.value{border-left:1px solid transparent;text-align:right}.bb-tooltip .bb-tooltip-title{display:inline-block;color:#aaa;line-height:20px}.bb-tooltip .bb-tooltip-detail table{border-collapse:collapse;border-spacing:0}.bb-tooltip .bb-tooltip-detail .bb-tooltip-name,.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{font-size:11px;line-height:13px;padding:4px 0 3px;color:#444;text-align:left;font-weight:400}.bb-tooltip .bb-tooltip-detail .bb-tooltip-value{padding-left:5px;font-weight:800;font-size:12px}.bb-area{stroke-width:0;opacity:.2}.bb-chart-arcs-title{dominant-baseline:middle;font-size:1.3em}text.bb-chart-arcs-gauge-title{dominant-baseline:middle;font-size:2.7em}.bb-chart-arcs .bb-chart-arcs-background{fill:#e0e0e0;stroke:#ccc}.bb-chart-arcs .bb-chart-arcs-gauge-unit{fill:#000;font-size:16px}.bb-chart-arcs .bb-chart-arcs-gauge-min,.bb-chart-arcs .bb-chart-arcs-gauge-max{fill:#777}.bb-chart-arcs .bb-chart-arcs-title{font-size:1.8em;fill:#000;font-weight:600}.bb-chart-arcs path.empty{fill:#eaeaea;stroke-width:0}.bb-chart-arcs .bb-levels circle{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-arcs .bb-levels text{fill:#848282}.bb-chart-arc .bb-gauge-value{fill:#000}.bb-chart-arc path{stroke:#fff}.bb-chart-arc rect{stroke:#fff;stroke-width:1}.bb-chart-arc text{fill:#fff;font-size:11px}.bb-chart-radars .bb-levels polygon{fill:none;stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-levels text{fill:#848282}.bb-chart-radars .bb-axis line{stroke:#cecece;stroke-width:.5px}.bb-chart-radars .bb-axis text{font-size:1.15em;cursor:default}.bb-chart-radars .bb-shapes polygon{fill-opacity:.2;stroke-width:1px}.bb-button{position:absolute;top:10px;right:10px}.bb-button .bb-zoom-reset{border:1px solid #999;background-color:#404244;color:#fff;opacity:.9;padding:5px;border-radius:5px;cursor:pointer}
${T||""} ${d(et)}