{"version":3,"sources":[""],"sourcesContent":["/**\n * @license Highcharts JS v12.1.2 (2024-12-21)\n * @module highcharts/modules/color-axis\n * @requires highcharts\n *\n * ColorAxis module\n *\n * (c) 2012-2024 Pawel Potaczek\n *\n * License: www.highcharts.com/license\n */\n(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(root[\"_Highcharts\"], root[\"_Highcharts\"][\"Axis\"], root[\"_Highcharts\"][\"Color\"], root[\"_Highcharts\"][\"LegendSymbol\"], root[\"_Highcharts\"][\"SeriesRegistry\"], root[\"_Highcharts\"][\"SVGElement\"], root[\"_Highcharts\"][\"Series\"], root[\"_Highcharts\"][\"Chart\"], root[\"_Highcharts\"][\"SVGRenderer\"], root[\"_Highcharts\"][\"Templating\"], root[\"_Highcharts\"][\"Series\"][\"types\"][\"scatter\"], root[\"_Highcharts\"][\"Point\"]);\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"highcharts/modules/map\", [\"highcharts/highcharts\"], function (amd1) {return factory(amd1,amd1[\"Axis\"],amd1[\"Color\"],amd1[\"LegendSymbol\"],amd1[\"SeriesRegistry\"],amd1[\"SVGElement\"],amd1[\"Series\"],amd1[\"Chart\"],amd1[\"SVGRenderer\"],amd1[\"Templating\"],amd1[\"Series\"],[\"types\"],[\"scatter\"],amd1[\"Point\"]);});\n\telse if(typeof exports === 'object')\n\t\texports[\"highcharts/modules/map\"] = factory(root[\"_Highcharts\"], root[\"_Highcharts\"][\"Axis\"], root[\"_Highcharts\"][\"Color\"], root[\"_Highcharts\"][\"LegendSymbol\"], root[\"_Highcharts\"][\"SeriesRegistry\"], root[\"_Highcharts\"][\"SVGElement\"], root[\"_Highcharts\"][\"Series\"], root[\"_Highcharts\"][\"Chart\"], root[\"_Highcharts\"][\"SVGRenderer\"], root[\"_Highcharts\"][\"Templating\"], root[\"_Highcharts\"][\"Series\"][\"types\"][\"scatter\"], root[\"_Highcharts\"][\"Point\"]);\n\telse\n\t\troot[\"Highcharts\"] = factory(root[\"Highcharts\"], root[\"Highcharts\"][\"Axis\"], root[\"Highcharts\"][\"Color\"], root[\"Highcharts\"][\"LegendSymbol\"], root[\"Highcharts\"][\"SeriesRegistry\"], root[\"Highcharts\"][\"SVGElement\"], root[\"Highcharts\"][\"Series\"], root[\"Highcharts\"][\"Chart\"], root[\"Highcharts\"][\"SVGRenderer\"], root[\"Highcharts\"][\"Templating\"], root[\"Highcharts\"][\"Series\"][\"types\"][\"scatter\"], root[\"Highcharts\"][\"Point\"]);\n})(typeof window === 'undefined' ? this : window, (__WEBPACK_EXTERNAL_MODULE__944__, __WEBPACK_EXTERNAL_MODULE__532__, __WEBPACK_EXTERNAL_MODULE__620__, __WEBPACK_EXTERNAL_MODULE__500__, __WEBPACK_EXTERNAL_MODULE__512__, __WEBPACK_EXTERNAL_MODULE__28__, __WEBPACK_EXTERNAL_MODULE__820__, __WEBPACK_EXTERNAL_MODULE__960__, __WEBPACK_EXTERNAL_MODULE__540__, __WEBPACK_EXTERNAL_MODULE__984__, __WEBPACK_EXTERNAL_MODULE__632__, __WEBPACK_EXTERNAL_MODULE__260__) => {\nreturn /******/ (() => { // webpackBootstrap\n/******/ \t\"use strict\";\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 532:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__532__;\n\n/***/ }),\n\n/***/ 960:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__960__;\n\n/***/ }),\n\n/***/ 620:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__620__;\n\n/***/ }),\n\n/***/ 500:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__500__;\n\n/***/ }),\n\n/***/ 260:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__260__;\n\n/***/ }),\n\n/***/ 28:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__28__;\n\n/***/ }),\n\n/***/ 540:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__540__;\n\n/***/ }),\n\n/***/ 632:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__632__;\n\n/***/ }),\n\n/***/ 820:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__820__;\n\n/***/ }),\n\n/***/ 512:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__512__;\n\n/***/ }),\n\n/***/ 984:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__984__;\n\n/***/ }),\n\n/***/ 944:\n/***/ ((module) => {\n\nmodule.exports = __WEBPACK_EXTERNAL_MODULE__944__;\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \t\tif (cachedModule !== undefined) {\n/******/ \t\t\treturn cachedModule.exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/compat get default export */\n/******/ \t(() => {\n/******/ \t\t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t\t__webpack_require__.n = (module) => {\n/******/ \t\t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t\t() => (module['default']) :\n/******/ \t\t\t\t() => (module);\n/******/ \t\t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\t\treturn getter;\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t(() => {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__webpack_require__.d = (exports, definition) => {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t(() => {\n/******/ \t\t__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))\n/******/ \t})();\n/******/ \t\n/************************************************************************/\nvar __webpack_exports__ = {};\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"default\": () => (/* binding */ map_src)\n});\n\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\"],\"commonjs\":[\"highcharts\"],\"commonjs2\":[\"highcharts\"],\"root\":[\"Highcharts\"]}\nvar highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_ = __webpack_require__(944);\nvar highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default = /*#__PURE__*/__webpack_require__.n(highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_);\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"Axis\"],\"commonjs\":[\"highcharts\",\"Axis\"],\"commonjs2\":[\"highcharts\",\"Axis\"],\"root\":[\"Highcharts\",\"Axis\"]}\nvar highcharts_Axis_commonjs_highcharts_Axis_commonjs2_highcharts_Axis_root_Highcharts_Axis_ = __webpack_require__(532);\nvar highcharts_Axis_commonjs_highcharts_Axis_commonjs2_highcharts_Axis_root_Highcharts_Axis_default = /*#__PURE__*/__webpack_require__.n(highcharts_Axis_commonjs_highcharts_Axis_commonjs2_highcharts_Axis_root_Highcharts_Axis_);\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"Color\"],\"commonjs\":[\"highcharts\",\"Color\"],\"commonjs2\":[\"highcharts\",\"Color\"],\"root\":[\"Highcharts\",\"Color\"]}\nvar highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_ = __webpack_require__(620);\nvar highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_default = /*#__PURE__*/__webpack_require__.n(highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_);\n;// ./code/es-modules/Core/Axis/Color/ColorAxisComposition.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { parse: color } = (highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_default());\n\nconst { addEvent, extend, merge, pick, splat } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Composition\n *\n * */\nvar ColorAxisComposition;\n(function (ColorAxisComposition) {\n /* *\n *\n * Declarations\n *\n * */\n /* *\n *\n * Variables\n *\n * */\n let ColorAxisConstructor;\n /* *\n *\n * Functions\n *\n * */\n /**\n * @private\n */\n function compose(ColorAxisClass, ChartClass, FxClass, LegendClass, SeriesClass) {\n const chartProto = ChartClass.prototype, fxProto = FxClass.prototype, seriesProto = SeriesClass.prototype;\n if (!chartProto.collectionsWithUpdate.includes('colorAxis')) {\n ColorAxisConstructor = ColorAxisClass;\n chartProto.collectionsWithUpdate.push('colorAxis');\n chartProto.collectionsWithInit.colorAxis = [\n chartProto.addColorAxis\n ];\n addEvent(ChartClass, 'afterCreateAxes', onChartAfterCreateAxes);\n wrapChartCreateAxis(ChartClass);\n fxProto.fillSetter = wrapFxFillSetter;\n fxProto.strokeSetter = wrapFxStrokeSetter;\n addEvent(LegendClass, 'afterGetAllItems', onLegendAfterGetAllItems);\n addEvent(LegendClass, 'afterColorizeItem', onLegendAfterColorizeItem);\n addEvent(LegendClass, 'afterUpdate', onLegendAfterUpdate);\n extend(seriesProto, {\n optionalAxis: 'colorAxis',\n translateColors: seriesTranslateColors\n });\n extend(seriesProto.pointClass.prototype, {\n setVisible: pointSetVisible\n });\n addEvent(SeriesClass, 'afterTranslate', onSeriesAfterTranslate, { order: 1 });\n addEvent(SeriesClass, 'bindAxes', onSeriesBindAxes);\n }\n }\n ColorAxisComposition.compose = compose;\n /**\n * Extend the chart createAxes method to also make the color axis.\n * @private\n */\n function onChartAfterCreateAxes() {\n const { userOptions } = this;\n this.colorAxis = [];\n // If a `colorAxis` config is present in the user options (not in a\n // theme), instanciate it.\n if (userOptions.colorAxis) {\n userOptions.colorAxis = splat(userOptions.colorAxis);\n userOptions.colorAxis.map((axisOptions) => (new ColorAxisConstructor(this, axisOptions)));\n }\n }\n /**\n * Add the color axis. This also removes the axis' own series to prevent\n * them from showing up individually.\n * @private\n */\n function onLegendAfterGetAllItems(e) {\n const colorAxes = this.chart.colorAxis || [], destroyItem = (item) => {\n const i = e.allItems.indexOf(item);\n if (i !== -1) {\n // #15436\n this.destroyItem(e.allItems[i]);\n e.allItems.splice(i, 1);\n }\n };\n let colorAxisItems = [], options, i;\n colorAxes.forEach(function (colorAxis) {\n options = colorAxis.options;\n if (options && options.showInLegend) {\n // Data classes\n if (options.dataClasses && options.visible) {\n colorAxisItems = colorAxisItems.concat(colorAxis.getDataClassLegendSymbols());\n // Gradient legend\n }\n else if (options.visible) {\n // Add this axis on top\n colorAxisItems.push(colorAxis);\n }\n // If dataClasses are defined or showInLegend option is not set\n // to true, do not add color axis' series to legend.\n colorAxis.series.forEach(function (series) {\n if (!series.options.showInLegend || options.dataClasses) {\n if (series.options.legendType === 'point') {\n series.points.forEach(function (point) {\n destroyItem(point);\n });\n }\n else {\n destroyItem(series);\n }\n }\n });\n }\n });\n i = colorAxisItems.length;\n while (i--) {\n e.allItems.unshift(colorAxisItems[i]);\n }\n }\n /**\n * @private\n */\n function onLegendAfterColorizeItem(e) {\n if (e.visible && e.item.legendColor) {\n e.item.legendItem.symbol.attr({\n fill: e.item.legendColor\n });\n }\n }\n /**\n * Updates in the legend need to be reflected in the color axis. (#6888)\n * @private\n */\n function onLegendAfterUpdate(e) {\n this.chart.colorAxis?.forEach((colorAxis) => {\n colorAxis.update({}, e.redraw);\n });\n }\n /**\n * Calculate and set colors for points.\n * @private\n */\n function onSeriesAfterTranslate() {\n if (this.chart.colorAxis &&\n this.chart.colorAxis.length ||\n this.colorAttribs) {\n this.translateColors();\n }\n }\n /**\n * Add colorAxis to series axisTypes.\n * @private\n */\n function onSeriesBindAxes() {\n const axisTypes = this.axisTypes;\n if (!axisTypes) {\n this.axisTypes = ['colorAxis'];\n }\n else if (axisTypes.indexOf('colorAxis') === -1) {\n axisTypes.push('colorAxis');\n }\n }\n /**\n * Set the visibility of a single point\n * @private\n * @function Highcharts.colorPointMixin.setVisible\n * @param {boolean} visible\n */\n function pointSetVisible(vis) {\n const point = this, method = vis ? 'show' : 'hide';\n point.visible = point.options.visible = Boolean(vis);\n // Show and hide associated elements\n ['graphic', 'dataLabel'].forEach(function (key) {\n if (point[key]) {\n point[key][method]();\n }\n });\n this.series.buildKDTree(); // Rebuild kdtree #13195\n }\n ColorAxisComposition.pointSetVisible = pointSetVisible;\n /**\n * In choropleth maps, the color is a result of the value, so this needs\n * translation too\n * @private\n * @function Highcharts.colorSeriesMixin.translateColors\n */\n function seriesTranslateColors() {\n const series = this, points = this.getPointsCollection(), // #17945\n nullColor = this.options.nullColor, colorAxis = this.colorAxis, colorKey = this.colorKey;\n points.forEach((point) => {\n const value = point.getNestedProperty(colorKey), color = point.options.color || (point.isNull || point.value === null ?\n nullColor :\n (colorAxis && typeof value !== 'undefined') ?\n colorAxis.toColor(value, point) :\n point.color || series.color);\n if (color && point.color !== color) {\n point.color = color;\n if (series.options.legendType === 'point' &&\n point.legendItem &&\n point.legendItem.label) {\n series.chart.legend.colorizeItem(point, point.visible);\n }\n }\n });\n }\n /**\n * @private\n */\n function wrapChartCreateAxis(ChartClass) {\n const superCreateAxis = ChartClass.prototype.createAxis;\n ChartClass.prototype.createAxis = function (type, options) {\n const chart = this;\n if (type !== 'colorAxis') {\n return superCreateAxis.apply(chart, arguments);\n }\n const axis = new ColorAxisConstructor(chart, merge(options.axis, {\n index: chart[type].length,\n isX: false\n }));\n chart.isDirtyLegend = true;\n // Clear before 'bindAxes' (#11924)\n chart.axes.forEach((axis) => {\n axis.series = [];\n });\n chart.series.forEach((series) => {\n series.bindAxes();\n series.isDirtyData = true;\n });\n if (pick(options.redraw, true)) {\n chart.redraw(options.animation);\n }\n return axis;\n };\n }\n /**\n * Handle animation of the color attributes directly.\n * @private\n */\n function wrapFxFillSetter() {\n this.elem.attr('fill', color(this.start).tweenTo(color(this.end), this.pos), void 0, true);\n }\n /**\n * Handle animation of the color attributes directly.\n * @private\n */\n function wrapFxStrokeSetter() {\n this.elem.attr('stroke', color(this.start).tweenTo(color(this.end), this.pos), void 0, true);\n }\n})(ColorAxisComposition || (ColorAxisComposition = {}));\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Color_ColorAxisComposition = (ColorAxisComposition);\n\n;// ./code/es-modules/Core/Axis/Color/ColorAxisDefaults.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * API Options\n *\n * */\n/**\n * A color axis for series. Visually, the color\n * axis will appear as a gradient or as separate items inside the\n * legend, depending on whether the axis is scalar or based on data\n * classes.\n *\n * For supported color formats, see the\n * [docs article about colors](https://www.highcharts.com/docs/chart-design-and-style/colors).\n *\n * A scalar color axis is represented by a gradient. The colors either\n * range between the [minColor](#colorAxis.minColor) and the\n * [maxColor](#colorAxis.maxColor), or for more fine grained control the\n * colors can be defined in [stops](#colorAxis.stops). Often times, the\n * color axis needs to be adjusted to get the right color spread for the\n * data. In addition to stops, consider using a logarithmic\n * [axis type](#colorAxis.type), or setting [min](#colorAxis.min) and\n * [max](#colorAxis.max) to avoid the colors being determined by\n * outliers.\n *\n * When [dataClasses](#colorAxis.dataClasses) are used, the ranges are\n * subdivided into separate classes like categories based on their\n * values. This can be used for ranges between two values, but also for\n * a true category. However, when your data is categorized, it may be as\n * convenient to add each category to a separate series.\n *\n * Color axis does not work with: `sankey`, `sunburst`, `dependencywheel`,\n * `networkgraph`, `wordcloud`, `venn`, `gauge` and `solidgauge` series\n * types.\n *\n * Since v7.2.0 `colorAxis` can also be an array of options objects.\n *\n * See [the Axis object](/class-reference/Highcharts.Axis) for\n * programmatic access to the axis.\n *\n * @sample {highcharts} highcharts/coloraxis/custom-color-key\n * Column chart with color axis\n * @sample {highcharts} highcharts/coloraxis/horizontal-layout\n * Horizontal layout\n * @sample {highmaps} maps/coloraxis/dataclasscolor\n * With data classes\n * @sample {highmaps} maps/coloraxis/mincolor-maxcolor\n * Min color and max color\n *\n * @extends xAxis\n * @excluding alignTicks, allowDecimals, alternateGridColor, breaks,\n * categories, crosshair, dateTimeLabelFormats, left,\n * lineWidth, linkedTo, maxZoom, minRange, minTickInterval,\n * offset, opposite, pane, plotBands, plotLines,\n * reversedStacks, scrollbar, showEmpty, title, top,\n * zoomEnabled\n * @product highcharts highstock highmaps\n * @type {*|Array<*>}\n * @optionparent colorAxis\n */\nconst colorAxisDefaults = {\n /**\n * Whether to allow decimals on the color axis.\n * @type {boolean}\n * @default true\n * @product highcharts highstock highmaps\n * @apioption colorAxis.allowDecimals\n */\n /**\n * Determines how to set each data class' color if no individual\n * color is set. The default value, `tween`, computes intermediate\n * colors between `minColor` and `maxColor`. The other possible\n * value, `category`, pulls colors from the global or chart specific\n * [colors](#colors) array.\n *\n * @sample {highmaps} maps/coloraxis/dataclasscolor/\n * Category colors\n *\n * @type {string}\n * @default tween\n * @product highcharts highstock highmaps\n * @validvalue [\"tween\", \"category\"]\n * @apioption colorAxis.dataClassColor\n */\n /**\n * An array of data classes or ranges for the choropleth map. If\n * none given, the color axis is scalar and values are distributed\n * as a gradient between the minimum and maximum colors.\n *\n * @sample {highmaps} maps/demo/data-class-ranges/\n * Multiple ranges\n *\n * @sample {highmaps} maps/demo/data-class-two-ranges/\n * Two ranges\n *\n * @type {Array<*>}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.dataClasses\n */\n /**\n * The layout of the color axis. Can be `'horizontal'` or `'vertical'`.\n * If none given, the color axis has the same layout as the legend.\n *\n * @sample highcharts/coloraxis/horizontal-layout/\n * Horizontal color axis layout with vertical legend\n *\n * @type {string|undefined}\n * @since 7.2.0\n * @product highcharts highstock highmaps\n * @apioption colorAxis.layout\n */\n /**\n * The color of each data class. If not set, the color is pulled\n * from the global or chart-specific [colors](#colors) array. In\n * styled mode, this option is ignored. Instead, use colors defined\n * in CSS.\n *\n * @sample {highmaps} maps/demo/data-class-two-ranges/\n * Explicit colors\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.dataClasses.color\n */\n /**\n * The start of the value range that the data class represents,\n * relating to the point value.\n *\n * The range of each `dataClass` is closed in both ends, but can be\n * overridden by the next `dataClass`.\n *\n * @type {number}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.dataClasses.from\n */\n /**\n * The name of the data class as it appears in the legend.\n * If no name is given, it is automatically created based on the\n * `from` and `to` values. For full programmatic control,\n * [legend.labelFormatter](#legend.labelFormatter) can be used.\n * In the formatter, `this.from` and `this.to` can be accessed.\n *\n * @sample {highmaps} maps/coloraxis/dataclasses-name/\n * Named data classes\n *\n * @sample {highmaps} maps/coloraxis/dataclasses-labelformatter/\n * Formatted data classes\n *\n * @type {string}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.dataClasses.name\n */\n /**\n * The end of the value range that the data class represents,\n * relating to the point value.\n *\n * The range of each `dataClass` is closed in both ends, but can be\n * overridden by the next `dataClass`.\n *\n * @type {number}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.dataClasses.to\n */\n /** @ignore-option */\n lineWidth: 0,\n /**\n * Padding of the min value relative to the length of the axis. A\n * padding of 0.05 will make a 100px axis 5px longer.\n *\n * @product highcharts highstock highmaps\n */\n minPadding: 0,\n /**\n * The maximum value of the axis in terms of map point values. If\n * `null`, the max value is automatically calculated. If the\n * `endOnTick` option is true, the max value might be rounded up.\n *\n * @sample {highmaps} maps/coloraxis/gridlines/\n * Explicit min and max to reduce the effect of outliers\n *\n * @type {number}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.max\n */\n /**\n * The minimum value of the axis in terms of map point values. If\n * `null`, the min value is automatically calculated. If the\n * `startOnTick` option is true, the min value might be rounded\n * down.\n *\n * @sample {highmaps} maps/coloraxis/gridlines/\n * Explicit min and max to reduce the effect of outliers\n *\n * @type {number}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.min\n */\n /**\n * Padding of the max value relative to the length of the axis. A\n * padding of 0.05 will make a 100px axis 5px longer.\n *\n * @product highcharts highstock highmaps\n */\n maxPadding: 0,\n /**\n * Color of the grid lines extending from the axis across the\n * gradient.\n *\n * @sample {highmaps} maps/coloraxis/gridlines/\n * Grid lines demonstrated\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highstock highmaps\n */\n gridLineColor: \"#ffffff\" /* Palette.backgroundColor */,\n /**\n * The width of the grid lines extending from the axis across the\n * gradient of a scalar color axis.\n *\n * @sample {highmaps} maps/coloraxis/gridlines/\n * Grid lines demonstrated\n *\n * @product highcharts highstock highmaps\n */\n gridLineWidth: 1,\n /**\n * The interval of the tick marks in axis units. When `null`, the\n * tick interval is computed to approximately follow the\n * `tickPixelInterval`.\n *\n * @type {number}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.tickInterval\n */\n /**\n * If [tickInterval](#colorAxis.tickInterval) is `null` this option\n * sets the approximate pixel interval of the tick marks.\n *\n * @product highcharts highstock highmaps\n */\n tickPixelInterval: 72,\n /**\n * Whether to force the axis to start on a tick. Use this option\n * with the `maxPadding` option to control the axis start.\n *\n * @product highcharts highstock highmaps\n */\n startOnTick: true,\n /**\n * Whether to force the axis to end on a tick. Use this option with\n * the [maxPadding](#colorAxis.maxPadding) option to control the\n * axis end.\n *\n * @product highcharts highstock highmaps\n */\n endOnTick: true,\n /** @ignore */\n offset: 0,\n /**\n * The triangular marker on a scalar color axis that points to the\n * value of the hovered area. To disable the marker, set\n * `marker: null`.\n *\n * @sample {highmaps} maps/coloraxis/marker/\n * Black marker\n *\n * @declare Highcharts.PointMarkerOptionsObject\n * @product highcharts highstock highmaps\n */\n marker: {\n /**\n * Animation for the marker as it moves between values. Set to\n * `false` to disable animation. Defaults to `{ duration: 50 }`.\n *\n * @type {boolean|Partial}\n * @product highcharts highstock highmaps\n */\n animation: {\n /** @internal */\n duration: 50\n },\n /** @internal */\n width: 0.01,\n /**\n * The color of the marker.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highstock highmaps\n */\n color: \"#999999\" /* Palette.neutralColor40 */\n },\n /**\n * The axis labels show the number for each tick.\n *\n * For more live examples on label options, see [xAxis.labels in the\n * Highcharts API.](/highcharts#xAxis.labels)\n *\n * @extends xAxis.labels\n * @product highcharts highstock highmaps\n */\n labels: {\n distance: 8,\n /**\n * How to handle overflowing labels on horizontal color axis. If set\n * to `\"allow\"`, it will not be aligned at all. By default it\n * `\"justify\"` labels inside the chart area. If there is room to\n * move it, it will be aligned to the edge, else it will be removed.\n *\n * @validvalue [\"allow\", \"justify\"]\n * @product highcharts highstock highmaps\n */\n overflow: 'justify',\n rotation: 0\n },\n /**\n * The color to represent the minimum of the color axis. Unless\n * [dataClasses](#colorAxis.dataClasses) or\n * [stops](#colorAxis.stops) are set, the gradient starts at this\n * value.\n *\n * If dataClasses are set, the color is based on minColor and\n * maxColor unless a color is set for each data class, or the\n * [dataClassColor](#colorAxis.dataClassColor) is set.\n *\n * @sample {highmaps} maps/coloraxis/mincolor-maxcolor/\n * Min and max colors on scalar (gradient) axis\n * @sample {highmaps} maps/coloraxis/mincolor-maxcolor-dataclasses/\n * On data classes\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highstock highmaps\n */\n minColor: \"#e6e9ff\" /* Palette.highlightColor10 */,\n /**\n * The color to represent the maximum of the color axis. Unless\n * [dataClasses](#colorAxis.dataClasses) or\n * [stops](#colorAxis.stops) are set, the gradient ends at this\n * value.\n *\n * If dataClasses are set, the color is based on minColor and\n * maxColor unless a color is set for each data class, or the\n * [dataClassColor](#colorAxis.dataClassColor) is set.\n *\n * @sample {highmaps} maps/coloraxis/mincolor-maxcolor/\n * Min and max colors on scalar (gradient) axis\n * @sample {highmaps} maps/coloraxis/mincolor-maxcolor-dataclasses/\n * On data classes\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highstock highmaps\n */\n maxColor: \"#0022ff\" /* Palette.highlightColor100 */,\n /**\n * Color stops for the gradient of a scalar color axis. Use this in\n * cases where a linear gradient between a `minColor` and `maxColor`\n * is not sufficient. The stops is an array of tuples, where the\n * first item is a float between 0 and 1 assigning the relative\n * position in the gradient, and the second item is the color.\n *\n * @sample highcharts/coloraxis/coloraxis-stops/\n * Color axis stops\n * @sample highcharts/coloraxis/color-key-with-stops/\n * Color axis stops with custom colorKey\n * @sample {highmaps} maps/demo/heatmap/\n * Heatmap with three color stops\n *\n * @type {Array>}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.stops\n */\n /**\n * The pixel length of the main tick marks on the color axis.\n */\n tickLength: 5,\n /**\n * The type of interpolation to use for the color axis. Can be\n * `linear` or `logarithmic`.\n *\n * @sample highcharts/coloraxis/logarithmic-with-emulate-negative-values/\n * Logarithmic color axis with extension to emulate negative\n * values\n *\n * @type {Highcharts.ColorAxisTypeValue}\n * @default linear\n * @product highcharts highstock highmaps\n * @apioption colorAxis.type\n */\n /**\n * Whether to reverse the axis so that the highest number is closest\n * to the origin. Defaults to `false` in a horizontal legend and\n * `true` in a vertical legend, where the smallest value starts on\n * top.\n *\n * @type {boolean}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.reversed\n */\n /**\n * @product highcharts highstock highmaps\n * @excluding afterBreaks, pointBreak, pointInBreak\n * @apioption colorAxis.events\n */\n /**\n * Fires when the legend item belonging to the colorAxis is clicked.\n * One parameter, `event`, is passed to the function.\n *\n * **Note:** This option is deprecated in favor of\n * [legend.events.itemClick](#legend.events.itemClick).\n *\n * @deprecated 11.4.4\n * @type {Function}\n * @product highcharts highstock highmaps\n * @apioption colorAxis.events.legendItemClick\n */\n /**\n * The width of the color axis. If it's a number, it is interpreted as\n * pixels.\n *\n * If it's a percentage string, it is interpreted as percentages of the\n * total plot width.\n *\n * @sample highcharts/coloraxis/width-and-height\n * Percentage width and pixel height for color axis\n *\n * @type {number|string}\n * @since 11.3.0\n * @product highcharts highstock highmaps\n * @apioption colorAxis.width\n */\n /**\n * The height of the color axis. If it's a number, it is interpreted as\n * pixels.\n *\n * If it's a percentage string, it is interpreted as percentages of the\n * total plot height.\n *\n * @sample highcharts/coloraxis/width-and-height\n * Percentage width and pixel height for color axis\n *\n * @type {number|string}\n * @since 11.3.0\n * @product highcharts highstock highmaps\n * @apioption colorAxis.height\n */\n /**\n * Whether to display the colorAxis in the legend.\n *\n * @sample highcharts/coloraxis/hidden-coloraxis-with-3d-chart/\n * Hidden color axis with 3d chart\n *\n * @see [heatmap.showInLegend](#series.heatmap.showInLegend)\n *\n * @since 4.2.7\n * @product highcharts highstock highmaps\n */\n showInLegend: true\n};\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const ColorAxisDefaults = (colorAxisDefaults);\n\n;// ./code/es-modules/Core/Axis/Color/ColorAxisLike.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { parse: ColorAxisLike_color } = (highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_default());\n\nconst { merge: ColorAxisLike_merge } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Namespace\n *\n * */\nvar ColorAxisLike;\n(function (ColorAxisLike) {\n /* *\n *\n * Declarations\n *\n * */\n /* *\n *\n * Functions\n *\n * */\n /**\n * Initialize defined data classes.\n * @private\n */\n function initDataClasses(userOptions) {\n const axis = this, chart = axis.chart, legendItem = axis.legendItem = axis.legendItem || {}, options = axis.options, userDataClasses = userOptions.dataClasses || [];\n let dataClass, dataClasses, colorCount = chart.options.chart.colorCount, colorCounter = 0, colors;\n axis.dataClasses = dataClasses = [];\n legendItem.labels = [];\n for (let i = 0, iEnd = userDataClasses.length; i < iEnd; ++i) {\n dataClass = userDataClasses[i];\n dataClass = ColorAxisLike_merge(dataClass);\n dataClasses.push(dataClass);\n if (!chart.styledMode && dataClass.color) {\n continue;\n }\n if (options.dataClassColor === 'category') {\n if (!chart.styledMode) {\n colors = chart.options.colors || [];\n colorCount = colors.length;\n dataClass.color = colors[colorCounter];\n }\n dataClass.colorIndex = colorCounter;\n // Loop back to zero\n colorCounter++;\n if (colorCounter === colorCount) {\n colorCounter = 0;\n }\n }\n else {\n dataClass.color = ColorAxisLike_color(options.minColor).tweenTo(ColorAxisLike_color(options.maxColor), iEnd < 2 ? 0.5 : i / (iEnd - 1) // #3219\n );\n }\n }\n }\n ColorAxisLike.initDataClasses = initDataClasses;\n /**\n * Create initial color stops.\n * @private\n */\n function initStops() {\n const axis = this, options = axis.options, stops = axis.stops = options.stops || [\n [0, options.minColor || ''],\n [1, options.maxColor || '']\n ];\n for (let i = 0, iEnd = stops.length; i < iEnd; ++i) {\n stops[i].color = ColorAxisLike_color(stops[i][1]);\n }\n }\n ColorAxisLike.initStops = initStops;\n /**\n * Normalize logarithmic values.\n * @private\n */\n function normalizedValue(value) {\n const axis = this, max = axis.max || 0, min = axis.min || 0;\n if (axis.logarithmic) {\n value = axis.logarithmic.log2lin(value);\n }\n return 1 - ((max - value) /\n ((max - min) || 1));\n }\n ColorAxisLike.normalizedValue = normalizedValue;\n /**\n * Translate from a value to a color.\n * @private\n */\n function toColor(value, point) {\n const axis = this;\n const dataClasses = axis.dataClasses;\n const stops = axis.stops;\n let pos, from, to, color, dataClass, i;\n if (dataClasses) {\n i = dataClasses.length;\n while (i--) {\n dataClass = dataClasses[i];\n from = dataClass.from;\n to = dataClass.to;\n if ((typeof from === 'undefined' || value >= from) &&\n (typeof to === 'undefined' || value <= to)) {\n color = dataClass.color;\n if (point) {\n point.dataClass = i;\n point.colorIndex = dataClass.colorIndex;\n }\n break;\n }\n }\n }\n else {\n pos = axis.normalizedValue(value);\n i = stops.length;\n while (i--) {\n if (pos > stops[i][0]) {\n break;\n }\n }\n from = stops[i] || stops[i + 1];\n to = stops[i + 1] || from;\n // The position within the gradient\n pos = 1 - (to[0] - pos) / ((to[0] - from[0]) || 1);\n color = from.color.tweenTo(to.color, pos);\n }\n return color;\n }\n ColorAxisLike.toColor = toColor;\n})(ColorAxisLike || (ColorAxisLike = {}));\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Color_ColorAxisLike = (ColorAxisLike);\n\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"LegendSymbol\"],\"commonjs\":[\"highcharts\",\"LegendSymbol\"],\"commonjs2\":[\"highcharts\",\"LegendSymbol\"],\"root\":[\"Highcharts\",\"LegendSymbol\"]}\nvar highcharts_LegendSymbol_commonjs_highcharts_LegendSymbol_commonjs2_highcharts_LegendSymbol_root_Highcharts_LegendSymbol_ = __webpack_require__(500);\nvar highcharts_LegendSymbol_commonjs_highcharts_LegendSymbol_commonjs2_highcharts_LegendSymbol_root_Highcharts_LegendSymbol_default = /*#__PURE__*/__webpack_require__.n(highcharts_LegendSymbol_commonjs_highcharts_LegendSymbol_commonjs2_highcharts_LegendSymbol_root_Highcharts_LegendSymbol_);\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"SeriesRegistry\"],\"commonjs\":[\"highcharts\",\"SeriesRegistry\"],\"commonjs2\":[\"highcharts\",\"SeriesRegistry\"],\"root\":[\"Highcharts\",\"SeriesRegistry\"]}\nvar highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_ = __webpack_require__(512);\nvar highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default = /*#__PURE__*/__webpack_require__.n(highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_);\n;// ./code/es-modules/Core/Axis/Color/ColorAxis.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\n\n\n\n\nconst { defaultOptions } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\n\nconst { series: Series } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default());\n\nconst { defined, extend: ColorAxis_extend, fireEvent, isArray, isNumber, merge: ColorAxis_merge, pick: ColorAxis_pick, relativeLength } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\ndefaultOptions.colorAxis = ColorAxis_merge(defaultOptions.xAxis, ColorAxisDefaults);\n/* *\n *\n * Class\n *\n * */\n/**\n * The ColorAxis object for inclusion in gradient legends.\n *\n * @class\n * @name Highcharts.ColorAxis\n * @augments Highcharts.Axis\n *\n * @param {Highcharts.Chart} chart\n * The related chart of the color axis.\n *\n * @param {Highcharts.ColorAxisOptions} userOptions\n * The color axis options for initialization.\n */\nclass ColorAxis extends (highcharts_Axis_commonjs_highcharts_Axis_commonjs2_highcharts_Axis_root_Highcharts_Axis_default()) {\n /* *\n *\n * Static Functions\n *\n * */\n static compose(ChartClass, FxClass, LegendClass, SeriesClass) {\n Color_ColorAxisComposition.compose(ColorAxis, ChartClass, FxClass, LegendClass, SeriesClass);\n }\n /* *\n *\n * Constructors\n *\n * */\n /**\n * @private\n */\n constructor(chart, userOptions) {\n super(chart, userOptions);\n this.coll = 'colorAxis';\n this.visible = true;\n this.init(chart, userOptions);\n }\n /* *\n *\n * Functions\n *\n * */\n /**\n * Initializes the color axis.\n *\n * @function Highcharts.ColorAxis#init\n *\n * @param {Highcharts.Chart} chart\n * The related chart of the color axis.\n *\n * @param {Highcharts.ColorAxisOptions} userOptions\n * The color axis options for initialization.\n */\n init(chart, userOptions) {\n const axis = this;\n const legend = chart.options.legend || {}, horiz = userOptions.layout ?\n userOptions.layout !== 'vertical' :\n legend.layout !== 'vertical';\n axis.side = userOptions.side || horiz ? 2 : 1;\n axis.reversed = userOptions.reversed || !horiz;\n axis.opposite = !horiz;\n super.init(chart, userOptions, 'colorAxis');\n // `super.init` saves the extended user options, now replace it with the\n // originals\n this.userOptions = userOptions;\n if (isArray(chart.userOptions.colorAxis)) {\n chart.userOptions.colorAxis[this.index] = userOptions;\n }\n // Prepare data classes\n if (userOptions.dataClasses) {\n axis.initDataClasses(userOptions);\n }\n axis.initStops();\n // Override original axis properties\n axis.horiz = horiz;\n axis.zoomEnabled = false;\n }\n /**\n * Returns true if the series has points at all.\n *\n * @function Highcharts.ColorAxis#hasData\n *\n * @return {boolean}\n * True, if the series has points, otherwise false.\n */\n hasData() {\n return !!(this.tickPositions || []).length;\n }\n /**\n * Override so that ticks are not added in data class axes (#6914)\n * @private\n */\n setTickPositions() {\n if (!this.dataClasses) {\n return super.setTickPositions();\n }\n }\n /**\n * Extend the setOptions method to process extreme colors and color stops.\n * @private\n */\n setOptions(userOptions) {\n const options = ColorAxis_merge(defaultOptions.colorAxis, userOptions, \n // Forced options\n {\n showEmpty: false,\n title: null,\n visible: this.chart.options.legend.enabled &&\n userOptions.visible !== false\n });\n super.setOptions(options);\n this.options.crosshair = this.options.marker;\n }\n /**\n * @private\n */\n setAxisSize() {\n const axis = this, chart = axis.chart, symbol = axis.legendItem?.symbol;\n let { width, height } = axis.getSize();\n if (symbol) {\n this.left = +symbol.attr('x');\n this.top = +symbol.attr('y');\n this.width = width = +symbol.attr('width');\n this.height = height = +symbol.attr('height');\n this.right = chart.chartWidth - this.left - width;\n this.bottom = chart.chartHeight - this.top - height;\n this.pos = this.horiz ? this.left : this.top;\n }\n // Fake length for disabled legend to avoid tick issues\n // and such (#5205)\n this.len = (this.horiz ? width : height) ||\n ColorAxis.defaultLegendLength;\n }\n /**\n * Override the getOffset method to add the whole axis groups inside the\n * legend.\n * @private\n */\n getOffset() {\n const axis = this;\n const group = axis.legendItem?.group;\n const sideOffset = axis.chart.axisOffset[axis.side];\n if (group) {\n // Hook for the getOffset method to add groups to this parent\n // group\n axis.axisParent = group;\n // Call the base\n super.getOffset();\n const legend = this.chart.legend;\n // Adds `maxLabelLength` needed for label padding corrections done\n // by `render()` and `getMargins()` (#15551).\n legend.allItems.forEach(function (item) {\n if (item instanceof ColorAxis) {\n item.drawLegendSymbol(legend, item);\n }\n });\n legend.render();\n this.chart.getMargins(true);\n // If not drilling down/up\n if (!this.chart.series.some((series) => series.isDrilling)) {\n axis.isDirty = true; // Flag to fire drawChartBox\n }\n // First time only\n if (!axis.added) {\n axis.added = true;\n axis.labelLeft = 0;\n axis.labelRight = axis.width;\n }\n // Reset it to avoid color axis reserving space\n axis.chart.axisOffset[axis.side] = sideOffset;\n }\n }\n /**\n * Create the color gradient.\n * @private\n */\n setLegendColor() {\n const axis = this;\n const horiz = axis.horiz;\n const reversed = axis.reversed;\n const one = reversed ? 1 : 0;\n const zero = reversed ? 0 : 1;\n const grad = horiz ? [one, 0, zero, 0] : [0, zero, 0, one]; // #3190\n axis.legendColor = {\n linearGradient: {\n x1: grad[0],\n y1: grad[1],\n x2: grad[2],\n y2: grad[3]\n },\n stops: axis.stops\n };\n }\n /**\n * The color axis appears inside the legend and has its own legend symbol.\n * @private\n */\n drawLegendSymbol(legend, item) {\n const axis = this, legendItem = item.legendItem || {}, padding = legend.padding, legendOptions = legend.options, labelOptions = axis.options.labels, itemDistance = ColorAxis_pick(legendOptions.itemDistance, 10), horiz = axis.horiz, { width, height } = axis.getSize(), labelPadding = ColorAxis_pick(\n // @todo: This option is not documented, nor implemented when\n // vertical\n legendOptions.labelPadding, horiz ? 16 : 30);\n this.setLegendColor();\n // Create the gradient\n if (!legendItem.symbol) {\n legendItem.symbol = this.chart.renderer.symbol('roundedRect')\n .attr({\n r: legendOptions.symbolRadius ?? 3,\n zIndex: 1\n }).add(legendItem.group);\n }\n legendItem.symbol.attr({\n x: 0,\n y: (legend.baseline || 0) - 11,\n width: width,\n height: height\n });\n // Set how much space this legend item takes up\n legendItem.labelWidth = (width +\n padding +\n (horiz ?\n itemDistance :\n ColorAxis_pick(labelOptions.x, labelOptions.distance) +\n (this.maxLabelLength || 0)));\n legendItem.labelHeight = height + padding + (horiz ? labelPadding : 0);\n }\n /**\n * Fool the legend.\n * @private\n */\n setState(state) {\n this.series.forEach(function (series) {\n series.setState(state);\n });\n }\n /**\n * @private\n */\n setVisible() {\n }\n /**\n * @private\n */\n getSeriesExtremes() {\n const axis = this;\n const series = axis.series;\n let colorValArray, colorKey, calculatedExtremes, cSeries, i = series.length;\n this.dataMin = Infinity;\n this.dataMax = -Infinity;\n while (i--) { // X, y, value, other\n cSeries = series[i];\n colorKey = cSeries.colorKey = ColorAxis_pick(cSeries.options.colorKey, cSeries.colorKey, cSeries.pointValKey, cSeries.zoneAxis, 'y');\n calculatedExtremes = cSeries[colorKey + 'Min'] &&\n cSeries[colorKey + 'Max'];\n // Find the first column that has values\n for (const key of [colorKey, 'value', 'y']) {\n colorValArray = cSeries.getColumn(key);\n if (colorValArray.length) {\n break;\n }\n }\n // If color key extremes are already calculated, use them.\n if (calculatedExtremes) {\n cSeries.minColorValue = cSeries[colorKey + 'Min'];\n cSeries.maxColorValue = cSeries[colorKey + 'Max'];\n }\n else {\n const cExtremes = Series.prototype.getExtremes.call(cSeries, colorValArray);\n cSeries.minColorValue = cExtremes.dataMin;\n cSeries.maxColorValue = cExtremes.dataMax;\n }\n if (defined(cSeries.minColorValue) &&\n defined(cSeries.maxColorValue)) {\n this.dataMin =\n Math.min(this.dataMin, cSeries.minColorValue);\n this.dataMax =\n Math.max(this.dataMax, cSeries.maxColorValue);\n }\n if (!calculatedExtremes) {\n Series.prototype.applyExtremes.call(cSeries);\n }\n }\n }\n /**\n * Internal function to draw a crosshair.\n *\n * @function Highcharts.ColorAxis#drawCrosshair\n *\n * @param {Highcharts.PointerEventObject} [e]\n * The event arguments from the modified pointer event, extended with\n * `chartX` and `chartY`\n *\n * @param {Highcharts.Point} [point]\n * The Point object if the crosshair snaps to points.\n *\n * @emits Highcharts.ColorAxis#event:afterDrawCrosshair\n * @emits Highcharts.ColorAxis#event:drawCrosshair\n */\n drawCrosshair(e, point) {\n const axis = this, legendItem = axis.legendItem || {}, plotX = point && point.plotX, plotY = point && point.plotY, axisPos = axis.pos, axisLen = axis.len;\n let crossPos;\n if (point) {\n crossPos = axis.toPixels(point.getNestedProperty(point.series.colorKey));\n if (crossPos < axisPos) {\n crossPos = axisPos - 2;\n }\n else if (crossPos > axisPos + axisLen) {\n crossPos = axisPos + axisLen + 2;\n }\n point.plotX = crossPos;\n point.plotY = axis.len - crossPos;\n super.drawCrosshair(e, point);\n point.plotX = plotX;\n point.plotY = plotY;\n if (axis.cross &&\n !axis.cross.addedToColorAxis &&\n legendItem.group) {\n axis.cross\n .addClass('highcharts-coloraxis-marker')\n .add(legendItem.group);\n axis.cross.addedToColorAxis = true;\n if (!axis.chart.styledMode &&\n typeof axis.crosshair === 'object') {\n axis.cross.attr({\n fill: axis.crosshair.color\n });\n }\n }\n }\n }\n /**\n * @private\n */\n getPlotLinePath(options) {\n const axis = this, left = axis.left, pos = options.translatedValue, top = axis.top;\n // Crosshairs only\n return isNumber(pos) ? // `pos` can be 0 (#3969)\n (axis.horiz ? [\n ['M', pos - 4, top - 6],\n ['L', pos + 4, top - 6],\n ['L', pos, top],\n ['Z']\n ] : [\n ['M', left, pos],\n ['L', left - 6, pos + 6],\n ['L', left - 6, pos - 6],\n ['Z']\n ]) :\n super.getPlotLinePath(options);\n }\n /**\n * Updates a color axis instance with a new set of options. The options are\n * merged with the existing options, so only new or altered options need to\n * be specified.\n *\n * @function Highcharts.ColorAxis#update\n *\n * @param {Highcharts.ColorAxisOptions} newOptions\n * The new options that will be merged in with existing options on the color\n * axis.\n *\n * @param {boolean} [redraw]\n * Whether to redraw the chart after the color axis is altered. If doing\n * more operations on the chart, it is a good idea to set redraw to `false`\n * and call {@link Highcharts.Chart#redraw} after.\n */\n update(newOptions, redraw) {\n const axis = this, chart = axis.chart, legend = chart.legend;\n this.series.forEach((series) => {\n // Needed for Axis.update when choropleth colors change\n series.isDirtyData = true;\n });\n // When updating data classes, destroy old items and make sure new\n // ones are created (#3207)\n if (newOptions.dataClasses && legend.allItems || axis.dataClasses) {\n axis.destroyItems();\n }\n super.update(newOptions, redraw);\n if (axis.legendItem && axis.legendItem.label) {\n axis.setLegendColor();\n legend.colorizeItem(this, true);\n }\n }\n /**\n * Destroy color axis legend items.\n * @private\n */\n destroyItems() {\n const axis = this, chart = axis.chart, legendItem = axis.legendItem || {};\n if (legendItem.label) {\n chart.legend.destroyItem(axis);\n }\n else if (legendItem.labels) {\n for (const item of legendItem.labels) {\n chart.legend.destroyItem(item);\n }\n }\n chart.isDirtyLegend = true;\n }\n // Removing the whole axis (#14283)\n destroy() {\n this.chart.isDirtyLegend = true;\n this.destroyItems();\n super.destroy(...[].slice.call(arguments));\n }\n /**\n * Removes the color axis and the related legend item.\n *\n * @function Highcharts.ColorAxis#remove\n *\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart following the remove.\n */\n remove(redraw) {\n this.destroyItems();\n super.remove(redraw);\n }\n /**\n * Get the legend item symbols for data classes.\n * @private\n */\n getDataClassLegendSymbols() {\n const axis = this, chart = axis.chart, legendItems = (axis.legendItem &&\n axis.legendItem.labels ||\n []), legendOptions = chart.options.legend, valueDecimals = ColorAxis_pick(legendOptions.valueDecimals, -1), valueSuffix = ColorAxis_pick(legendOptions.valueSuffix, '');\n const getPointsInDataClass = (i) => axis.series.reduce((points, s) => {\n points.push(...s.points.filter((point) => point.dataClass === i));\n return points;\n }, []);\n let name;\n if (!legendItems.length) {\n axis.dataClasses.forEach((dataClass, i) => {\n const from = dataClass.from, to = dataClass.to, { numberFormatter } = chart;\n let vis = true;\n // Assemble the default name. This can be overridden\n // by legend.options.labelFormatter\n name = '';\n if (typeof from === 'undefined') {\n name = '< ';\n }\n else if (typeof to === 'undefined') {\n name = '> ';\n }\n if (typeof from !== 'undefined') {\n name += numberFormatter(from, valueDecimals) + valueSuffix;\n }\n if (typeof from !== 'undefined' && typeof to !== 'undefined') {\n name += ' - ';\n }\n if (typeof to !== 'undefined') {\n name += numberFormatter(to, valueDecimals) + valueSuffix;\n }\n // Add a mock object to the legend items\n legendItems.push(ColorAxis_extend({\n chart,\n name,\n options: {},\n drawLegendSymbol: (highcharts_LegendSymbol_commonjs_highcharts_LegendSymbol_commonjs2_highcharts_LegendSymbol_root_Highcharts_LegendSymbol_default()).rectangle,\n visible: true,\n isDataClass: true,\n // Override setState to set either normal or inactive\n // state to all points in this data class\n setState: (state) => {\n for (const point of getPointsInDataClass(i)) {\n point.setState(state);\n }\n },\n // Override setState to show or hide all points in this\n // data class\n setVisible: function () {\n this.visible = vis = axis.visible = !vis;\n const affectedSeries = [];\n for (const point of getPointsInDataClass(i)) {\n point.setVisible(vis);\n point.hiddenInDataClass = !vis; // #20441\n if (affectedSeries.indexOf(point.series) === -1) {\n affectedSeries.push(point.series);\n }\n }\n chart.legend.colorizeItem(this, vis);\n affectedSeries.forEach((series) => {\n fireEvent(series, 'afterDataClassLegendClick');\n });\n }\n }, dataClass));\n });\n }\n return legendItems;\n }\n /**\n * Get size of color axis symbol.\n * @private\n */\n getSize() {\n const axis = this, { chart, horiz } = axis, { height: colorAxisHeight, width: colorAxisWidth } = axis.options, { legend: legendOptions } = chart.options, width = ColorAxis_pick(defined(colorAxisWidth) ?\n relativeLength(colorAxisWidth, chart.chartWidth) : void 0, legendOptions?.symbolWidth, horiz ? ColorAxis.defaultLegendLength : 12), height = ColorAxis_pick(defined(colorAxisHeight) ?\n relativeLength(colorAxisHeight, chart.chartHeight) : void 0, legendOptions?.symbolHeight, horiz ? 12 : ColorAxis.defaultLegendLength);\n return {\n width,\n height\n };\n }\n}\n/* *\n *\n * Static Properties\n *\n * */\nColorAxis.defaultLegendLength = 200;\n/**\n * @private\n */\nColorAxis.keepProps = [\n 'legendItem'\n];\nColorAxis_extend(ColorAxis.prototype, Color_ColorAxisLike);\n/* *\n *\n * Registry\n *\n * */\n// Properties to preserve after destroy, for Axis.update (#5881, #6025).\nArray.prototype.push.apply((highcharts_Axis_commonjs_highcharts_Axis_commonjs2_highcharts_Axis_root_Highcharts_Axis_default()).keepProps, ColorAxis.keepProps);\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Color_ColorAxis = (ColorAxis);\n/* *\n *\n * API Declarations\n *\n * */\n/**\n * Color axis types\n *\n * @typedef {\"linear\"|\"logarithmic\"} Highcharts.ColorAxisTypeValue\n */\n''; // Detach doclet above\n\n;// ./code/es-modules/masters/modules/coloraxis.src.js\n\n\n\n\nconst G = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\nG.ColorAxis = G.ColorAxis || Color_ColorAxis;\nG.ColorAxis.compose(G.Chart, G.Fx, G.Legend, G.Series);\n/* harmony default export */ const coloraxis_src = ((/* unused pure expression or super */ null && (Highcharts)));\n\n;// ./code/es-modules/Maps/MapNavigationDefaults.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * Constants\n *\n * */\nconst lang = {\n zoomIn: 'Zoom in',\n zoomOut: 'Zoom out'\n};\n/**\n * The `mapNavigation` option handles buttons for navigation in addition to\n * `mousewheel` and `doubleclick` handlers for map zooming.\n *\n * @product highmaps\n * @optionparent mapNavigation\n */\nconst mapNavigation = {\n /**\n * General options for the map navigation buttons. Individual options\n * can be given from the [mapNavigation.buttons](#mapNavigation.buttons)\n * option set.\n *\n * @sample {highmaps} maps/mapnavigation/button-theme/\n * Theming the navigation buttons\n */\n buttonOptions: {\n /**\n * What box to align the buttons to. Possible values are `plotBox`\n * and `spacingBox`.\n *\n * @type {Highcharts.ButtonRelativeToValue}\n */\n alignTo: 'plotBox',\n /**\n * The alignment of the navigation buttons.\n *\n * @type {Highcharts.AlignValue}\n */\n align: 'left',\n /**\n * The vertical alignment of the buttons. Individual alignment can\n * be adjusted by each button's `y` offset.\n *\n * @type {Highcharts.VerticalAlignValue}\n */\n verticalAlign: 'top',\n /**\n * The X offset of the buttons relative to its `align` setting.\n */\n x: 0,\n /**\n * The width of the map navigation buttons.\n */\n width: 18,\n /**\n * The pixel height of the map navigation buttons.\n */\n height: 18,\n /**\n * Padding for the navigation buttons.\n *\n * @since 5.0.0\n */\n padding: 5,\n /**\n * Text styles for the map navigation buttons.\n *\n * @type {Highcharts.CSSObject}\n * @default {\"fontSize\": \"1em\", \"fontWeight\": \"bold\"}\n */\n style: {\n /** @ignore */\n color: \"#666666\" /* Palette.neutralColor60 */,\n /** @ignore */\n fontSize: '1em',\n /** @ignore */\n fontWeight: 'bold'\n },\n /**\n * A configuration object for the button theme. The object accepts\n * SVG properties like `stroke-width`, `stroke` and `fill`. Tri-state\n * button styles are supported by the `states.hover` and `states.select`\n * objects.\n *\n * @sample {highmaps} maps/mapnavigation/button-theme/\n * Themed navigation buttons\n *\n * @type {Highcharts.SVGAttributes}\n * @default {\"stroke-width\": 1, \"text-align\": \"center\"}\n */\n theme: {\n /** @ignore */\n fill: \"#ffffff\" /* Palette.backgroundColor */,\n /** @ignore */\n stroke: \"#e6e6e6\" /* Palette.neutralColor10 */,\n /** @ignore */\n 'stroke-width': 1,\n /** @ignore */\n 'text-align': 'center'\n }\n },\n /**\n * The individual buttons for the map navigation. This usually includes\n * the zoom in and zoom out buttons. Properties for each button is\n * inherited from\n * [mapNavigation.buttonOptions](#mapNavigation.buttonOptions), while\n * individual options can be overridden. But default, the `onclick`, `text`\n * and `y` options are individual.\n */\n buttons: {\n /**\n * Options for the zoom in button. Properties for the zoom in and zoom\n * out buttons are inherited from\n * [mapNavigation.buttonOptions](#mapNavigation.buttonOptions), while\n * individual options can be overridden. By default, the `onclick`,\n * `text` and `y` options are individual.\n *\n * @extends mapNavigation.buttonOptions\n */\n zoomIn: {\n // eslint-disable-next-line valid-jsdoc\n /**\n * Click handler for the button.\n *\n * @type {Function}\n * @default function () { this.mapZoom(0.5); }\n */\n onclick: function () {\n this.mapZoom(0.5);\n },\n /**\n * The text for the button. The tooltip (title) is a language option\n * given by [lang.zoomIn](#lang.zoomIn).\n */\n text: '+',\n /**\n * The position of the zoomIn button relative to the vertical\n * alignment.\n */\n y: 0\n },\n /**\n * Options for the zoom out button. Properties for the zoom in and\n * zoom out buttons are inherited from\n * [mapNavigation.buttonOptions](#mapNavigation.buttonOptions), while\n * individual options can be overridden. By default, the `onclick`,\n * `text` and `y` options are individual.\n *\n * @extends mapNavigation.buttonOptions\n */\n zoomOut: {\n // eslint-disable-next-line valid-jsdoc\n /**\n * Click handler for the button.\n *\n * @type {Function}\n * @default function () { this.mapZoom(2); }\n */\n onclick: function () {\n this.mapZoom(2);\n },\n /**\n * The text for the button. The tooltip (title) is a language option\n * given by [lang.zoomOut](#lang.zoomIn).\n */\n text: '-',\n /**\n * The position of the zoomOut button relative to the vertical\n * alignment.\n */\n y: 28\n }\n },\n /**\n * Whether to enable navigation buttons. By default it inherits the\n * [enabled](#mapNavigation.enabled) setting.\n *\n * @type {boolean}\n * @apioption mapNavigation.enableButtons\n */\n /**\n * Whether to enable map navigation. The default is not to enable\n * navigation, as many choropleth maps are simple and don't need it.\n * Additionally, when touch zoom and mouse wheel zoom is enabled, it breaks\n * the default behaviour of these interactions in the website, and the\n * implementer should be aware of this.\n *\n * Individual interactions can be enabled separately, namely buttons,\n * multitouch zoom, double click zoom, double click zoom to element and\n * mouse wheel zoom.\n *\n * @type {boolean}\n * @default false\n * @apioption mapNavigation.enabled\n */\n /**\n * Enables zooming in on an area on double clicking in the map. By default\n * it inherits the [enabled](#mapNavigation.enabled) setting.\n *\n * @type {boolean}\n * @apioption mapNavigation.enableDoubleClickZoom\n */\n /**\n * Whether to zoom in on an area when that area is double clicked.\n *\n * @sample {highmaps} maps/mapnavigation/doubleclickzoomto/\n * Enable double click zoom to\n *\n * @type {boolean}\n * @default false\n * @apioption mapNavigation.enableDoubleClickZoomTo\n */\n /**\n * Enables zooming by mouse wheel. By default it inherits the [enabled](\n * #mapNavigation.enabled) setting.\n *\n * @type {boolean}\n * @apioption mapNavigation.enableMouseWheelZoom\n */\n /**\n * Whether to enable multitouch zooming. Note that if the chart covers the\n * viewport, this prevents the user from using multitouch and touchdrag on\n * the web page, so you should make sure the user is not trapped inside the\n * chart. By default it inherits the [enabled](#mapNavigation.enabled)\n * setting.\n *\n * @type {boolean}\n * @apioption mapNavigation.enableTouchZoom\n */\n /**\n * Sensitivity of mouse wheel or trackpad scrolling. 1 is no sensitivity,\n * while with 2, one mouse wheel delta will zoom in 50%.\n *\n * @since 4.2.4\n */\n mouseWheelSensitivity: 1.1\n // Enabled: false,\n // enableButtons: null, // inherit from enabled\n // enableTouchZoom: null, // inherit from enabled\n // enableDoubleClickZoom: null, // inherit from enabled\n // enableDoubleClickZoomTo: false\n // enableMouseWheelZoom: null, // inherit from enabled\n};\n/* *\n *\n * Default Export\n *\n * */\nconst mapNavigationDefaults = {\n lang,\n mapNavigation\n};\n/* harmony default export */ const MapNavigationDefaults = (mapNavigationDefaults);\n\n;// ./code/es-modules/Maps/MapPointer.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { defined: MapPointer_defined, extend: MapPointer_extend, pick: MapPointer_pick, wrap } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Composition\n *\n * */\nvar MapPointer;\n(function (MapPointer) {\n /* *\n *\n * Variables\n *\n * */\n let totalWheelDelta = 0;\n let totalWheelDeltaTimer;\n /* *\n *\n * Functions\n *\n * */\n /**\n * Extend the Pointer.\n * @private\n */\n function compose(PointerClass) {\n const pointerProto = PointerClass.prototype;\n if (!pointerProto.onContainerDblClick) {\n MapPointer_extend(pointerProto, {\n onContainerDblClick,\n onContainerMouseWheel\n });\n wrap(pointerProto, 'normalize', wrapNormalize);\n wrap(pointerProto, 'zoomOption', wrapZoomOption);\n }\n }\n MapPointer.compose = compose;\n /**\n * The event handler for the doubleclick event.\n * @private\n */\n function onContainerDblClick(e) {\n const chart = this.chart;\n e = this.normalize(e);\n if (chart.options.mapNavigation.enableDoubleClickZoomTo) {\n if (chart.pointer.inClass(e.target, 'highcharts-tracker') &&\n chart.hoverPoint) {\n chart.hoverPoint.zoomTo();\n }\n }\n else if (chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop)) {\n chart.mapZoom(0.5, void 0, void 0, e.chartX, e.chartY);\n }\n }\n /**\n * The event handler for the mouse scroll event.\n * @private\n */\n function onContainerMouseWheel(e) {\n const chart = this.chart;\n e = this.normalize(e);\n // Firefox uses e.deltaY or e.detail, WebKit and IE uses wheelDelta\n // try wheelDelta first #15656\n const delta = (MapPointer_defined(e.wheelDelta) && -e.wheelDelta / 120) ||\n e.deltaY || e.detail;\n // Wheel zooming on trackpads have different behaviours in Firefox vs\n // WebKit. In Firefox the delta increments in steps by 1, so it is not\n // distinguishable from true mouse wheel. Therefore we use this timer\n // to avoid trackpad zooming going too fast and out of control. In\n // WebKit however, the delta is < 1, so we simply disable animation in\n // the `chart.mapZoom` call below.\n if (Math.abs(delta) >= 1) {\n totalWheelDelta += Math.abs(delta);\n if (totalWheelDeltaTimer) {\n clearTimeout(totalWheelDeltaTimer);\n }\n totalWheelDeltaTimer = setTimeout(() => {\n totalWheelDelta = 0;\n }, 50);\n }\n if (totalWheelDelta < 10 && chart.isInsidePlot(e.chartX - chart.plotLeft, e.chartY - chart.plotTop) && chart.mapView) {\n chart.mapView.zoomBy((chart.options.mapNavigation.mouseWheelSensitivity -\n 1) * -delta, void 0, [e.chartX, e.chartY], \n // Delta less than 1 indicates stepless/trackpad zooming, avoid\n // animation delaying the zoom\n Math.abs(delta) < 1 ? false : void 0);\n }\n }\n /**\n * Add lon and lat information to pointer events\n * @private\n */\n function wrapNormalize(proceed, e, chartPosition) {\n const chart = this.chart;\n e = proceed.call(this, e, chartPosition);\n if (chart && chart.mapView) {\n const lonLat = chart.mapView.pixelsToLonLat({\n x: e.chartX - chart.plotLeft,\n y: e.chartY - chart.plotTop\n });\n if (lonLat) {\n MapPointer_extend(e, lonLat);\n }\n }\n return e;\n }\n /**\n * The pinchType is inferred from mapNavigation options.\n * @private\n */\n function wrapZoomOption(proceed) {\n const mapNavigation = this.chart.options.mapNavigation;\n // Pinch status\n if (mapNavigation &&\n MapPointer_pick(mapNavigation.enableTouchZoom, mapNavigation.enabled)) {\n this.chart.zooming.pinchType = 'xy';\n }\n proceed.apply(this, [].slice.call(arguments, 1));\n }\n})(MapPointer || (MapPointer = {}));\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Maps_MapPointer = (MapPointer);\n\n;// ./code/es-modules/Maps/MapSymbols.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * Variables\n *\n * */\nlet symbols;\n/* *\n *\n * Functions\n *\n * */\n/**\n *\n */\nfunction bottomButton(x, y, w, h, options) {\n if (options) {\n const r = options?.r || 0;\n options.brBoxY = y - r;\n options.brBoxHeight = h + r;\n }\n return symbols.roundedRect(x, y, w, h, options);\n}\n/**\n *\n */\nfunction compose(SVGRendererClass) {\n symbols = SVGRendererClass.prototype.symbols;\n symbols.bottombutton = bottomButton;\n symbols.topbutton = topButton;\n}\n/**\n *\n */\nfunction topButton(x, y, w, h, options) {\n if (options) {\n const r = options?.r || 0;\n options.brBoxHeight = h + r;\n }\n return symbols.roundedRect(x, y, w, h, options);\n}\n/* *\n *\n * Default Export\n *\n * */\nconst MapSymbols = {\n compose\n};\n/* harmony default export */ const Maps_MapSymbols = (MapSymbols);\n\n;// ./code/es-modules/Maps/MapNavigation.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { setOptions } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\nconst { composed } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\n\n\n\nconst { addEvent: MapNavigation_addEvent, extend: MapNavigation_extend, merge: MapNavigation_merge, objectEach, pick: MapNavigation_pick, pushUnique } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Functions\n *\n * */\n/**\n * @private\n */\nfunction stopEvent(e) {\n if (e) {\n e.preventDefault?.();\n e.stopPropagation?.();\n e.cancelBubble = true;\n }\n}\n/* *\n *\n * Class\n *\n * */\n/**\n * The MapNavigation handles buttons for navigation in addition to mousewheel\n * and doubleclick handlers for chart zooming.\n *\n * @private\n * @class\n * @name MapNavigation\n *\n * @param {Highcharts.Chart} chart\n * The Chart instance.\n */\nclass MapNavigation {\n /* *\n *\n * Static Functions\n *\n * */\n static compose(MapChartClass, PointerClass, SVGRendererClass) {\n Maps_MapPointer.compose(PointerClass);\n Maps_MapSymbols.compose(SVGRendererClass);\n if (pushUnique(composed, 'Map.Navigation')) {\n // Extend the Chart.render method to add zooming and panning\n MapNavigation_addEvent(MapChartClass, 'beforeRender', function () {\n // Render the plus and minus buttons. Doing this before the\n // shapes makes getBBox much quicker, at least in Chrome.\n this.mapNavigation = new MapNavigation(this);\n this.mapNavigation.update();\n });\n setOptions(MapNavigationDefaults);\n }\n }\n /* *\n *\n * Constructor\n *\n * */\n constructor(chart) {\n this.chart = chart;\n this.navButtons = [];\n }\n /* *\n *\n * Functions\n *\n * */\n /**\n * Update the map navigation with new options. Calling this is the same as\n * calling `chart.update({ mapNavigation: {} })`.\n *\n * @function MapNavigation#update\n *\n * @param {Partial} [options]\n * New options for the map navigation.\n */\n update(options) {\n const mapNav = this, chart = mapNav.chart, navButtons = mapNav.navButtons, outerHandler = function (e) {\n this.handler.call(chart, e);\n stopEvent(e); // Stop default click event (#4444)\n };\n let navOptions = chart.options.mapNavigation;\n // Merge in new options in case of update, and register back to chart\n // options.\n if (options) {\n navOptions = chart.options.mapNavigation =\n MapNavigation_merge(chart.options.mapNavigation, options);\n }\n // Destroy buttons in case of dynamic update\n while (navButtons.length) {\n navButtons.pop()?.destroy();\n }\n if (!chart.renderer.forExport &&\n MapNavigation_pick(navOptions.enableButtons, navOptions.enabled)) {\n if (!mapNav.navButtonsGroup) {\n mapNav.navButtonsGroup = chart.renderer.g()\n .attr({\n zIndex: 7 // #4955, #8392, #20476\n })\n .add();\n }\n objectEach(navOptions.buttons, (buttonOptions, n) => {\n buttonOptions = MapNavigation_merge(navOptions.buttonOptions, buttonOptions);\n const attr = {\n padding: buttonOptions.padding\n };\n // Presentational\n if (!chart.styledMode && buttonOptions.theme) {\n MapNavigation_extend(attr, buttonOptions.theme);\n attr.style = MapNavigation_merge(buttonOptions.theme.style, buttonOptions.style // #3203\n );\n }\n const { text, width = 0, height = 0, padding = 0 } = buttonOptions;\n const button = chart.renderer\n .button(\n // Display the text from options only if it is not plus\n // or minus\n (text !== '+' && text !== '-' && text) || '', 0, 0, outerHandler, attr, void 0, void 0, void 0, n === 'zoomIn' ? 'topbutton' : 'bottombutton')\n .addClass('highcharts-map-navigation highcharts-' + {\n zoomIn: 'zoom-in',\n zoomOut: 'zoom-out'\n }[n])\n .attr({\n width,\n height,\n title: chart.options.lang[n],\n zIndex: 5\n })\n .add(mapNav.navButtonsGroup);\n // Add SVG paths for the default symbols, because the text\n // representation of + and - is not sharp and position is not\n // easy to control.\n if (text === '+' || text === '-') {\n // Mysterious +1 to achieve centering\n const w = width + 1, d = [\n ['M', padding + 3, padding + height / 2],\n ['L', padding + w - 3, padding + height / 2]\n ];\n if (text === '+') {\n d.push(['M', padding + w / 2, padding + 3], ['L', padding + w / 2, padding + height - 3]);\n }\n chart.renderer\n .path(d)\n .addClass('highcharts-button-symbol')\n .attr(chart.styledMode ? {} : {\n stroke: buttonOptions.style?.color,\n 'stroke-width': 3,\n 'stroke-linecap': 'round'\n })\n .add(button);\n }\n button.handler = buttonOptions.onclick;\n // Stop double click event (#4444)\n MapNavigation_addEvent(button.element, 'dblclick', stopEvent);\n navButtons.push(button);\n MapNavigation_extend(buttonOptions, {\n width: button.width,\n height: 2 * (button.height || 0)\n });\n if (!chart.hasLoaded) {\n // Align it after the plotBox is known (#12776)\n const unbind = MapNavigation_addEvent(chart, 'load', () => {\n // #15406: Make sure button hasnt been destroyed\n if (button.element) {\n button.align(buttonOptions, false, buttonOptions.alignTo);\n }\n unbind();\n });\n }\n else {\n button.align(buttonOptions, false, buttonOptions.alignTo);\n }\n });\n // Borrowed from overlapping-datalabels. Consider a shared module.\n const isIntersectRect = (box1, box2) => !(box2.x >= box1.x + box1.width ||\n box2.x + box2.width <= box1.x ||\n box2.y >= box1.y + box1.height ||\n box2.y + box2.height <= box1.y);\n // Check the mapNavigation buttons collision with exporting button\n // and translate the mapNavigation button if they overlap.\n const adjustMapNavBtn = function () {\n const expBtnBBox = chart.exportingGroup?.getBBox();\n if (expBtnBBox) {\n const navBtnsBBox = mapNav.navButtonsGroup.getBBox();\n // If buttons overlap\n if (isIntersectRect(expBtnBBox, navBtnsBBox)) {\n // Adjust the mapNav buttons' position by translating\n // them above or below the exporting button\n const aboveExpBtn = -navBtnsBBox.y -\n navBtnsBBox.height + expBtnBBox.y - 5, belowExpBtn = expBtnBBox.y + expBtnBBox.height -\n navBtnsBBox.y + 5, mapNavVerticalAlign = (navOptions.buttonOptions &&\n navOptions.buttonOptions.verticalAlign);\n // If bottom aligned and adjusting the mapNav button\n // would translate it out of the plotBox, translate it\n // up instead of down\n mapNav.navButtonsGroup.attr({\n translateY: mapNavVerticalAlign === 'bottom' ?\n aboveExpBtn :\n belowExpBtn\n });\n }\n }\n };\n if (!chart.hasLoaded) {\n // Align it after the plotBox is known (#12776) and after the\n // hamburger button's position is known so they don't overlap\n // (#15782)\n MapNavigation_addEvent(chart, 'render', adjustMapNavBtn);\n }\n }\n this.updateEvents(navOptions);\n }\n /**\n * Update events, called internally from the update function. Add new event\n * handlers, or unbinds events if disabled.\n *\n * @function MapNavigation#updateEvents\n *\n * @param {Partial} options\n * Options for map navigation.\n */\n updateEvents(options) {\n const chart = this.chart;\n // Add the double click event\n if (MapNavigation_pick(options.enableDoubleClickZoom, options.enabled) ||\n options.enableDoubleClickZoomTo) {\n this.unbindDblClick = this.unbindDblClick || MapNavigation_addEvent(chart.container, 'dblclick', function (e) {\n chart.pointer.onContainerDblClick(e);\n });\n }\n else if (this.unbindDblClick) {\n // Unbind and set unbinder to undefined\n this.unbindDblClick = this.unbindDblClick();\n }\n // Add the mousewheel event\n if (MapNavigation_pick(options.enableMouseWheelZoom, options.enabled)) {\n this.unbindMouseWheel = this.unbindMouseWheel || MapNavigation_addEvent(chart.container, 'wheel', function (e) {\n // Prevent scrolling when the pointer is over the element\n // with that class, for example anotation popup #12100.\n if (!chart.pointer.inClass(e.target, 'highcharts-no-mousewheel')) {\n const initialZoom = chart.mapView?.zoom;\n chart.pointer.onContainerMouseWheel(e);\n // If the zoom level changed, prevent the default action\n // which is to scroll the page\n if (initialZoom !== chart.mapView?.zoom) {\n stopEvent(e);\n }\n }\n return false;\n });\n }\n else if (this.unbindMouseWheel) {\n // Unbind and set unbinder to undefined\n this.unbindMouseWheel = this.unbindMouseWheel();\n }\n }\n}\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Maps_MapNavigation = (MapNavigation);\n\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"SVGElement\"],\"commonjs\":[\"highcharts\",\"SVGElement\"],\"commonjs2\":[\"highcharts\",\"SVGElement\"],\"root\":[\"Highcharts\",\"SVGElement\"]}\nvar highcharts_SVGElement_commonjs_highcharts_SVGElement_commonjs2_highcharts_SVGElement_root_Highcharts_SVGElement_ = __webpack_require__(28);\nvar highcharts_SVGElement_commonjs_highcharts_SVGElement_commonjs2_highcharts_SVGElement_root_Highcharts_SVGElement_default = /*#__PURE__*/__webpack_require__.n(highcharts_SVGElement_commonjs_highcharts_SVGElement_commonjs2_highcharts_SVGElement_root_Highcharts_SVGElement_);\n;// ./code/es-modules/Series/ColorMapComposition.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { column: { prototype: columnProto } } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default()).seriesTypes;\n\n\nconst { addEvent: ColorMapComposition_addEvent, defined: ColorMapComposition_defined } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Composition\n *\n * */\nvar ColorMapComposition;\n(function (ColorMapComposition) {\n /* *\n *\n * Constants\n *\n * */\n ColorMapComposition.pointMembers = {\n dataLabelOnNull: true,\n moveToTopOnHover: true,\n isValid: pointIsValid\n };\n ColorMapComposition.seriesMembers = {\n colorKey: 'value',\n axisTypes: ['xAxis', 'yAxis', 'colorAxis'],\n parallelArrays: ['x', 'y', 'value'],\n pointArrayMap: ['value'],\n trackerGroups: ['group', 'markerGroup', 'dataLabelsGroup'],\n colorAttribs: seriesColorAttribs,\n pointAttribs: columnProto.pointAttribs\n };\n /* *\n *\n * Functions\n *\n * */\n /**\n * @private\n */\n function compose(SeriesClass) {\n const PointClass = SeriesClass.prototype.pointClass;\n ColorMapComposition_addEvent(PointClass, 'afterSetState', onPointAfterSetState);\n return SeriesClass;\n }\n ColorMapComposition.compose = compose;\n /**\n * Move points to the top of the z-index order when hovered.\n * @private\n */\n function onPointAfterSetState(e) {\n const point = this, series = point.series, renderer = series.chart.renderer;\n if (point.moveToTopOnHover && point.graphic) {\n if (!series.stateMarkerGraphic) {\n // Create a `use` element and add it to the end of the group,\n // which would make it appear on top of the other elements. This\n // deals with z-index without reordering DOM elements (#13049).\n series.stateMarkerGraphic = new (highcharts_SVGElement_commonjs_highcharts_SVGElement_commonjs2_highcharts_SVGElement_root_Highcharts_SVGElement_default())(renderer, 'use')\n .css({\n pointerEvents: 'none'\n })\n .add(point.graphic.parentGroup);\n }\n if (e?.state === 'hover') {\n // Give the graphic DOM element the same id as the Point\n // instance\n point.graphic.attr({\n id: this.id\n });\n series.stateMarkerGraphic.attr({\n href: `${renderer.url}#${this.id}`,\n visibility: 'visible'\n });\n }\n else {\n series.stateMarkerGraphic.attr({\n href: ''\n });\n }\n }\n }\n /**\n * Color points have a value option that determines whether or not it is\n * a null point\n * @private\n */\n function pointIsValid() {\n return (this.value !== null &&\n this.value !== Infinity &&\n this.value !== -Infinity &&\n // Undefined is allowed, but NaN is not (#17279)\n (this.value === void 0 || !isNaN(this.value)));\n }\n /**\n * Get the color attributes to apply on the graphic\n * @private\n * @function Highcharts.colorMapSeriesMixin.colorAttribs\n * @param {Highcharts.Point} point\n * @return {Highcharts.SVGAttributes}\n * The SVG attributes\n */\n function seriesColorAttribs(point) {\n const ret = {};\n if (ColorMapComposition_defined(point.color) &&\n (!point.state || point.state === 'normal') // #15746\n ) {\n ret[this.colorProp || 'fill'] = point.color;\n }\n return ret;\n }\n})(ColorMapComposition || (ColorMapComposition = {}));\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Series_ColorMapComposition = (ColorMapComposition);\n\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"Series\"],\"commonjs\":[\"highcharts\",\"Series\"],\"commonjs2\":[\"highcharts\",\"Series\"],\"root\":[\"Highcharts\",\"Series\"]}\nvar highcharts_Series_commonjs_highcharts_Series_commonjs2_highcharts_Series_root_Highcharts_Series_ = __webpack_require__(820);\nvar highcharts_Series_commonjs_highcharts_Series_commonjs2_highcharts_Series_root_Highcharts_Series_default = /*#__PURE__*/__webpack_require__.n(highcharts_Series_commonjs_highcharts_Series_commonjs2_highcharts_Series_root_Highcharts_Series_);\n;// ./code/es-modules/Series/CenteredUtilities.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { deg2rad } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\n\nconst { fireEvent: CenteredUtilities_fireEvent, isNumber: CenteredUtilities_isNumber, pick: CenteredUtilities_pick, relativeLength: CenteredUtilities_relativeLength } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/**\n * @private\n */\nvar CenteredUtilities;\n(function (CenteredUtilities) {\n /* *\n *\n * Declarations\n *\n * */\n /* *\n *\n * Functions\n *\n * */\n /* eslint-disable valid-jsdoc */\n /**\n * Get the center of the pie based on the size and center options relative\n * to the plot area. Borrowed by the polar and gauge series types.\n *\n * @private\n * @function Highcharts.CenteredSeriesMixin.getCenter\n */\n function getCenter() {\n const options = this.options, chart = this.chart, slicingRoom = 2 * (options.slicedOffset || 0), plotWidth = chart.plotWidth - 2 * slicingRoom, plotHeight = chart.plotHeight - 2 * slicingRoom, centerOption = options.center, smallestSize = Math.min(plotWidth, plotHeight), thickness = options.thickness;\n let handleSlicingRoom, size = options.size, innerSize = options.innerSize || 0, i, value;\n if (typeof size === 'string') {\n size = parseFloat(size);\n }\n if (typeof innerSize === 'string') {\n innerSize = parseFloat(innerSize);\n }\n const positions = [\n CenteredUtilities_pick(centerOption?.[0], '50%'),\n CenteredUtilities_pick(centerOption?.[1], '50%'),\n // Prevent from negative values\n CenteredUtilities_pick(size && size < 0 ? void 0 : options.size, '100%'),\n CenteredUtilities_pick(innerSize && innerSize < 0 ? void 0 : options.innerSize || 0, '0%')\n ];\n // No need for inner size in angular (gauges) series but still required\n // for pie series\n if (chart.angular && !(this instanceof (highcharts_Series_commonjs_highcharts_Series_commonjs2_highcharts_Series_root_Highcharts_Series_default()))) {\n positions[3] = 0;\n }\n for (i = 0; i < 4; ++i) {\n value = positions[i];\n handleSlicingRoom = i < 2 || (i === 2 && /%$/.test(value));\n // I == 0: centerX, relative to width\n // i == 1: centerY, relative to height\n // i == 2: size, relative to smallestSize\n // i == 3: innerSize, relative to size\n positions[i] = CenteredUtilities_relativeLength(value, [plotWidth, plotHeight, smallestSize, positions[2]][i]) + (handleSlicingRoom ? slicingRoom : 0);\n }\n // Inner size cannot be larger than size (#3632)\n if (positions[3] > positions[2]) {\n positions[3] = positions[2];\n }\n // Thickness overrides innerSize, need to be less than pie size (#6647)\n if (CenteredUtilities_isNumber(thickness) &&\n thickness * 2 < positions[2] && thickness > 0) {\n positions[3] = positions[2] - thickness * 2;\n }\n CenteredUtilities_fireEvent(this, 'afterGetCenter', { positions });\n return positions;\n }\n CenteredUtilities.getCenter = getCenter;\n /**\n * GetStartAndEndRadians - Calculates start and end angles in radians.\n * Used in series types such as pie and sunburst.\n *\n * @private\n * @function Highcharts.CenteredSeriesMixin.getStartAndEndRadians\n *\n * @param {number} [start]\n * Start angle in degrees.\n *\n * @param {number} [end]\n * Start angle in degrees.\n *\n * @return {Highcharts.RadianAngles}\n * Returns an object containing start and end angles as radians.\n */\n function getStartAndEndRadians(start, end) {\n const startAngle = CenteredUtilities_isNumber(start) ? start : 0, // Must be a number\n endAngle = ((CenteredUtilities_isNumber(end) && // Must be a number\n end > startAngle && // Must be larger than the start angle\n // difference must be less than 360 degrees\n (end - startAngle) < 360) ?\n end :\n startAngle + 360), correction = -90;\n return {\n start: deg2rad * (startAngle + correction),\n end: deg2rad * (endAngle + correction)\n };\n }\n CenteredUtilities.getStartAndEndRadians = getStartAndEndRadians;\n})(CenteredUtilities || (CenteredUtilities = {}));\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Series_CenteredUtilities = (CenteredUtilities);\n/* *\n *\n * API Declarations\n *\n * */\n/**\n * @private\n * @interface Highcharts.RadianAngles\n */ /**\n* @name Highcharts.RadianAngles#end\n* @type {number}\n*/ /**\n* @name Highcharts.RadianAngles#start\n* @type {number}\n*/\n''; // Keeps doclets above in JS file\n\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"Chart\"],\"commonjs\":[\"highcharts\",\"Chart\"],\"commonjs2\":[\"highcharts\",\"Chart\"],\"root\":[\"Highcharts\",\"Chart\"]}\nvar highcharts_Chart_commonjs_highcharts_Chart_commonjs2_highcharts_Chart_root_Highcharts_Chart_ = __webpack_require__(960);\nvar highcharts_Chart_commonjs_highcharts_Chart_commonjs2_highcharts_Chart_root_Highcharts_Chart_default = /*#__PURE__*/__webpack_require__.n(highcharts_Chart_commonjs_highcharts_Chart_commonjs2_highcharts_Chart_root_Highcharts_Chart_);\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"SVGRenderer\"],\"commonjs\":[\"highcharts\",\"SVGRenderer\"],\"commonjs2\":[\"highcharts\",\"SVGRenderer\"],\"root\":[\"Highcharts\",\"SVGRenderer\"]}\nvar highcharts_SVGRenderer_commonjs_highcharts_SVGRenderer_commonjs2_highcharts_SVGRenderer_root_Highcharts_SVGRenderer_ = __webpack_require__(540);\nvar highcharts_SVGRenderer_commonjs_highcharts_SVGRenderer_commonjs2_highcharts_SVGRenderer_root_Highcharts_SVGRenderer_default = /*#__PURE__*/__webpack_require__.n(highcharts_SVGRenderer_commonjs_highcharts_SVGRenderer_commonjs2_highcharts_SVGRenderer_root_Highcharts_SVGRenderer_);\n;// ./code/es-modules/Core/Chart/MapChart.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\n\nconst { getOptions } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\n\nconst { isNumber: MapChart_isNumber, merge: MapChart_merge, pick: MapChart_pick } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\n/* *\n *\n * Class\n *\n * */\n/**\n * Map-optimized chart. Use {@link Highcharts.Chart|Chart} for common charts.\n *\n * @requires modules/map\n *\n * @class\n * @name Highcharts.MapChart\n * @extends Highcharts.Chart\n */\nclass MapChart extends (highcharts_Chart_commonjs_highcharts_Chart_commonjs2_highcharts_Chart_root_Highcharts_Chart_default()) {\n /* *\n *\n * Functions\n *\n * */\n /**\n * Initializes the chart. The constructor's arguments are passed on\n * directly.\n *\n * @function Highcharts.MapChart#init\n *\n * @param {Highcharts.Options} userOptions\n * Custom options.\n *\n * @param {Function} [callback]\n * Function to run when the chart has loaded and all external\n * images are loaded.\n *\n *\n * @emits Highcharts.MapChart#event:init\n * @emits Highcharts.MapChart#event:afterInit\n */\n init(userOptions, callback) {\n const defaultCreditsOptions = getOptions().credits;\n const options = MapChart_merge({\n chart: {\n panning: {\n enabled: true,\n type: 'xy'\n },\n type: 'map'\n },\n credits: {\n mapText: MapChart_pick(defaultCreditsOptions.mapText, ' \\u00a9 ' +\n '{geojson.copyrightShort}'),\n mapTextFull: MapChart_pick(defaultCreditsOptions.mapTextFull, '{geojson.copyright}')\n },\n mapView: {}, // Required to enable Chart.mapView\n tooltip: {\n followTouchMove: false\n }\n }, userOptions // User's options\n );\n super.init(options, callback);\n }\n /**\n * Highcharts Maps only. Zoom in or out of the map. See also\n * {@link Point#zoomTo}. See {@link Chart#fromLatLonToPoint} for how to get\n * the `centerX` and `centerY` parameters for a geographic location.\n *\n * Deprecated as of v9.3 in favor of [MapView.zoomBy](https://api.highcharts.com/class-reference/Highcharts.MapView#zoomBy).\n *\n * @deprecated\n * @function Highcharts.Chart#mapZoom\n *\n * @param {number} [howMuch]\n * How much to zoom the map. Values less than 1 zooms in. 0.5 zooms\n * in to half the current view. 2 zooms to twice the current view. If\n * omitted, the zoom is reset.\n *\n * @param {number} [xProjected]\n * The projected x position to keep stationary when zooming, if\n * available space.\n *\n * @param {number} [yProjected]\n * The projected y position to keep stationary when zooming, if\n * available space.\n *\n * @param {number} [chartX]\n * Keep this chart position stationary if possible. This is used for\n * example in `mousewheel` events, where the area under the mouse\n * should be fixed as we zoom in.\n *\n * @param {number} [chartY]\n * Keep this chart position stationary if possible.\n */\n mapZoom(howMuch, xProjected, yProjected, chartX, chartY) {\n if (this.mapView) {\n if (MapChart_isNumber(howMuch)) {\n // Compliance, mapView.zoomBy uses different values\n howMuch = Math.log(howMuch) / Math.log(0.5);\n }\n this.mapView.zoomBy(howMuch, MapChart_isNumber(xProjected) && MapChart_isNumber(yProjected) ?\n this.mapView.projection.inverse([xProjected, yProjected]) :\n void 0, MapChart_isNumber(chartX) && MapChart_isNumber(chartY) ?\n [chartX, chartY] :\n void 0);\n }\n }\n update(options) {\n // Calculate and set the recommended map view if map option is set\n if (options.chart && 'map' in options.chart) {\n this.mapView?.recommendMapView(this, [\n options.chart.map,\n ...(this.options.series || []).map((s) => s.mapData)\n ], true);\n }\n super.update.apply(this, arguments);\n }\n}\n/* *\n *\n * Class Namespace\n *\n * */\n(function (MapChart) {\n /* *\n *\n * Constants\n *\n * */\n /**\n * Contains all loaded map data for Highmaps.\n *\n * @requires modules/map\n *\n * @name Highcharts.maps\n * @type {Record}\n */\n MapChart.maps = {};\n /* *\n *\n * Functions\n *\n * */\n /**\n * The factory function for creating new map charts. Creates a new {@link\n * Highcharts.MapChart|MapChart} object with different default options than\n * the basic Chart.\n *\n * @requires modules/map\n *\n * @function Highcharts.mapChart\n *\n * @param {string|Highcharts.HTMLDOMElement} [renderTo]\n * The DOM element to render to, or its id.\n *\n * @param {Highcharts.Options} options\n * The chart options structure as described in the\n * [options reference](https://api.highcharts.com/highstock).\n *\n * @param {Highcharts.ChartCallbackFunction} [callback]\n * A function to execute when the chart object is finished\n * rendering and all external image files (`chart.backgroundImage`,\n * `chart.plotBackgroundImage` etc) are loaded. Defining a\n * [chart.events.load](https://api.highcharts.com/highstock/chart.events.load)\n * handler is equivalent.\n *\n * @return {Highcharts.MapChart}\n * The chart object.\n */\n function mapChart(a, b, c) {\n return new MapChart(a, b, c);\n }\n MapChart.mapChart = mapChart;\n /**\n * Utility for reading SVG paths directly.\n *\n * @requires modules/map\n *\n * @function Highcharts.splitPath\n *\n * @param {string|Array<(string|number)>} path\n * Path to split.\n *\n * @return {Highcharts.SVGPathArray}\n * Splitted SVG path\n */\n function splitPath(path) {\n let arr;\n if (typeof path === 'string') {\n path = path\n // Move letters apart\n .replace(/([A-Z])/gi, ' $1 ')\n // Trim\n .replace(/^\\s*/, '').replace(/\\s*$/, '');\n // Split on spaces and commas. The semicolon is bogus, designed to\n // circumvent string replacement in the pre-v7 assembler that built\n // specific styled mode files.\n const split = path.split(/[ ,;]+/);\n arr = split.map((item) => {\n if (!/[A-Z]/i.test(item)) {\n return parseFloat(item);\n }\n return item;\n });\n }\n else {\n arr = path;\n }\n return highcharts_SVGRenderer_commonjs_highcharts_SVGRenderer_commonjs2_highcharts_SVGRenderer_root_Highcharts_SVGRenderer_default().prototype.pathToSegments(arr);\n }\n MapChart.splitPath = splitPath;\n})(MapChart || (MapChart = {}));\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Chart_MapChart = (MapChart);\n\n;// ./code/es-modules/Maps/MapUtilities.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n// Compute bounds from a path element\nconst boundsFromPath = function (path) {\n let x2 = -Number.MAX_VALUE, x1 = Number.MAX_VALUE, y2 = -Number.MAX_VALUE, y1 = Number.MAX_VALUE, validBounds;\n path.forEach((seg) => {\n const x = seg[seg.length - 2], y = seg[seg.length - 1];\n if (typeof x === 'number' &&\n typeof y === 'number') {\n x1 = Math.min(x1, x);\n x2 = Math.max(x2, x);\n y1 = Math.min(y1, y);\n y2 = Math.max(y2, y);\n validBounds = true;\n }\n });\n if (validBounds) {\n return { x1, y1, x2, y2 };\n }\n};\n/* *\n *\n * Default Export\n *\n * */\nconst MapUtilities = {\n boundsFromPath\n};\n/* harmony default export */ const Maps_MapUtilities = (MapUtilities);\n\n;// ./code/es-modules/Series/Map/MapPoint.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\n\nconst { boundsFromPath: MapPoint_boundsFromPath } = Maps_MapUtilities;\n\nconst ScatterPoint = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default()).seriesTypes.scatter.prototype.pointClass;\n\nconst { extend: MapPoint_extend, isNumber: MapPoint_isNumber, pick: MapPoint_pick } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Class\n *\n * */\nclass MapPoint extends ScatterPoint {\n /* *\n *\n * Static Functions\n *\n * */\n /**\n * Get the projected path based on the geometry. May also be called on\n * mapData options (not point instances), hence static.\n * @private\n */\n static getProjectedPath(point, projection) {\n if (!point.projectedPath) {\n if (projection && point.geometry) {\n // Always true when given GeoJSON coordinates\n projection.hasCoordinates = true;\n point.projectedPath = projection.path(point.geometry);\n // SVG path given directly in point options\n }\n else {\n point.projectedPath = point.path;\n }\n }\n return point.projectedPath || [];\n }\n /* *\n *\n * Functions\n *\n * */\n /**\n * Extend the Point object to split paths.\n * @private\n */\n applyOptions(options, x) {\n const series = this.series, point = super.applyOptions(options, x), joinBy = series.joinBy;\n if (series.mapData && series.mapMap) {\n const joinKey = joinBy[1], mapKey = super.getNestedProperty(joinKey), mapPoint = typeof mapKey !== 'undefined' &&\n series.mapMap[mapKey];\n if (mapPoint) {\n // Copy over properties; #20231 prioritize point.name\n MapPoint_extend(point, {\n ...mapPoint,\n name: point.name ?? mapPoint.name\n });\n }\n else if (series.pointArrayMap.indexOf('value') !== -1) {\n point.value = point.value || null;\n }\n }\n return point;\n }\n /**\n * Get the bounds in terms of projected units\n * @private\n */\n getProjectedBounds(projection) {\n const path = MapPoint.getProjectedPath(this, projection), bounds = MapPoint_boundsFromPath(path), properties = this.properties, mapView = this.series.chart.mapView;\n if (bounds) {\n // Cache point bounding box for use to position data labels, bubbles\n // etc\n const propMiddleLon = properties && properties['hc-middle-lon'], propMiddleLat = properties && properties['hc-middle-lat'];\n if (mapView && MapPoint_isNumber(propMiddleLon) && MapPoint_isNumber(propMiddleLat)) {\n const projectedPoint = projection.forward([propMiddleLon, propMiddleLat]);\n bounds.midX = projectedPoint[0];\n bounds.midY = projectedPoint[1];\n }\n else {\n const propMiddleX = properties && properties['hc-middle-x'], propMiddleY = properties && properties['hc-middle-y'];\n bounds.midX = (bounds.x1 + (bounds.x2 - bounds.x1) * MapPoint_pick(this.middleX, MapPoint_isNumber(propMiddleX) ? propMiddleX : 0.5));\n let middleYFraction = MapPoint_pick(this.middleY, MapPoint_isNumber(propMiddleY) ? propMiddleY : 0.5);\n // No geographic geometry, only path given => flip\n if (!this.geometry) {\n middleYFraction = 1 - middleYFraction;\n }\n bounds.midY =\n bounds.y2 - (bounds.y2 - bounds.y1) * middleYFraction;\n }\n return bounds;\n }\n }\n /**\n * Stop the fade-out\n * @private\n */\n onMouseOver(e) {\n highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default().clearTimeout(this.colorInterval);\n if (\n // Valid...\n (!this.isNull && this.visible) ||\n // ... or interact anyway\n this.series.options.nullInteraction) {\n super.onMouseOver.call(this, e);\n }\n else {\n // #3401 Tooltip doesn't hide when hovering over null points\n this.series.onMouseOut();\n }\n }\n setVisible(vis) {\n const method = vis ? 'show' : 'hide';\n this.visible = this.options.visible = !!vis;\n // Show and hide associated elements\n if (this.dataLabel) {\n this.dataLabel[method]();\n }\n // For invisible map points, render them as null points rather than\n // fully removing them. Makes more sense for color axes with data\n // classes.\n if (this.graphic) {\n this.graphic.attr(this.series.pointAttribs(this));\n }\n }\n /**\n * Highmaps only. Zoom in on the point using the global animation.\n *\n * @sample maps/members/point-zoomto/\n * Zoom to points from buttons\n *\n * @requires modules/map\n *\n * @function Highcharts.Point#zoomTo\n */\n zoomTo(animOptions) {\n const point = this, chart = point.series.chart, mapView = chart.mapView;\n let bounds = point.bounds;\n if (mapView && bounds) {\n const inset = MapPoint_isNumber(point.insetIndex) &&\n mapView.insets[point.insetIndex];\n if (inset) {\n // If in an inset, translate the bounds to pixels ...\n const px1 = inset.projectedUnitsToPixels({\n x: bounds.x1,\n y: bounds.y1\n }), px2 = inset.projectedUnitsToPixels({\n x: bounds.x2,\n y: bounds.y2\n }), \n // ... then back to projected units in the main mapView\n proj1 = mapView.pixelsToProjectedUnits({\n x: px1.x,\n y: px1.y\n }), proj2 = mapView.pixelsToProjectedUnits({\n x: px2.x,\n y: px2.y\n });\n bounds = {\n x1: proj1.x,\n y1: proj1.y,\n x2: proj2.x,\n y2: proj2.y\n };\n }\n mapView.fitToBounds(bounds, void 0, false);\n point.series.isDirty = true;\n chart.redraw(animOptions);\n }\n }\n}\nMapPoint_extend(MapPoint.prototype, {\n dataLabelOnNull: Series_ColorMapComposition.pointMembers.dataLabelOnNull,\n moveToTopOnHover: Series_ColorMapComposition.pointMembers.moveToTopOnHover,\n isValid: Series_ColorMapComposition.pointMembers.isValid\n});\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Map_MapPoint = (MapPoint);\n\n;// ./code/es-modules/Series/Map/MapSeriesDefaults.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { isNumber: MapSeriesDefaults_isNumber } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * API Options\n *\n * */\n/**\n * The map series is used for basic choropleth maps, where each map area has\n * a color based on its value.\n *\n * @sample maps/demo/all-maps/\n * Choropleth map\n *\n * @extends plotOptions.scatter\n * @excluding boostBlending, boostThreshold, dragDrop, cluster, marker\n * @product highmaps\n * @optionparent plotOptions.map\n *\n * @private\n */\nconst MapSeriesDefaults = {\n /**\n * Whether the MapView takes this series into account when computing the\n * default zoom and center of the map.\n *\n * @sample maps/series/affectsmapview/\n * US map with world map backdrop\n *\n * @since 10.0.0\n *\n * @private\n */\n affectsMapView: true,\n animation: false, // Makes the complex shapes slow\n dataLabels: {\n crop: false,\n formatter: function () {\n const { numberFormatter } = this.series.chart;\n const { value } = this.point;\n return MapSeriesDefaults_isNumber(value) ?\n numberFormatter(value, -1) :\n (this.point.name || ''); // #20231\n },\n inside: true, // For the color\n overflow: false,\n padding: 0,\n verticalAlign: 'middle'\n },\n /**\n * The SVG value used for the `stroke-linecap` and `stroke-linejoin` of\n * the map borders. Round means that borders are rounded in the ends and\n * bends.\n *\n * @sample maps/demo/mappoint-mapmarker/\n * Backdrop coastline with round linecap\n *\n * @type {Highcharts.SeriesLinecapValue}\n * @since 10.3.3\n */\n linecap: 'round',\n /**\n * @ignore-option\n *\n * @private\n */\n marker: null,\n /**\n * The color to apply to null points.\n *\n * In styled mode, the null point fill is set in the\n * `.highcharts-null-point` class.\n *\n * @sample maps/demo/all-areas-as-null/\n * Null color\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n *\n * @private\n */\n nullColor: \"#f7f7f7\" /* Palette.neutralColor3 */,\n /**\n * Whether to allow pointer interaction like tooltips and mouse events\n * on null points.\n *\n * @type {boolean}\n * @since 4.2.7\n * @apioption plotOptions.map.nullInteraction\n *\n * @private\n */\n stickyTracking: false,\n tooltip: {\n followPointer: true,\n pointFormat: '{point.name}: {point.value}
'\n },\n /**\n * @ignore-option\n *\n * @private\n */\n turboThreshold: 0,\n /**\n * Whether all areas of the map defined in `mapData` should be rendered.\n * If `true`, areas which don't correspond to a data point, are rendered\n * as `null` points. If `false`, those areas are skipped.\n *\n * @sample maps/plotoptions/series-allareas-false/\n * All areas set to false\n *\n * @type {boolean}\n * @default true\n * @product highmaps\n * @apioption plotOptions.series.allAreas\n *\n * @private\n */\n allAreas: true,\n /**\n * The border color of the map areas.\n *\n * In styled mode, the border stroke is given in the `.highcharts-point`\n * class.\n *\n * @sample {highmaps} maps/plotoptions/series-border/\n * Borders demo\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default #cccccc\n * @product highmaps\n * @apioption plotOptions.series.borderColor\n *\n * @private\n */\n borderColor: \"#e6e6e6\" /* Palette.neutralColor10 */,\n /**\n * The border width of each map area.\n *\n * In styled mode, the border stroke width is given in the\n * `.highcharts-point` class.\n *\n * @sample maps/plotoptions/series-border/\n * Borders demo\n *\n * @type {number}\n * @default 1\n * @product highmaps\n * @apioption plotOptions.series.borderWidth\n *\n * @private\n */\n borderWidth: 1,\n /**\n * @type {string}\n * @default value\n * @apioption plotOptions.map.colorKey\n */\n /**\n * What property to join the `mapData` to the value data. For example,\n * if joinBy is \"code\", the mapData items with a specific code is merged\n * into the data with the same code. For maps loaded from GeoJSON, the\n * keys may be held in each point's `properties` object.\n *\n * The joinBy option can also be an array of two values, where the first\n * points to a key in the `mapData`, and the second points to another\n * key in the `data`.\n *\n * When joinBy is `null`, the map items are joined by their position in\n * the array, which performs much better in maps with many data points.\n * This is the recommended option if you are printing more than a\n * thousand data points and have a backend that can preprocess the data\n * into a parallel array of the mapData.\n *\n * @sample maps/plotoptions/series-border/\n * Joined by \"code\"\n * @sample maps/demo/geojson/\n * GeoJSON joined by an array\n * @sample maps/series/joinby-null/\n * Simple data joined by null\n *\n * @type {string|Array}\n * @default hc-key\n * @product highmaps\n * @apioption plotOptions.series.joinBy\n *\n * @private\n */\n joinBy: 'hc-key',\n /**\n * Define the z index of the series.\n *\n * @type {number}\n * @product highmaps\n * @apioption plotOptions.series.zIndex\n */\n /**\n * @apioption plotOptions.series.states\n *\n * @private\n */\n states: {\n /**\n * @apioption plotOptions.series.states.hover\n */\n hover: {\n /** @ignore-option */\n halo: void 0,\n /**\n * The color of the shape in this state.\n *\n * @sample maps/plotoptions/series-states-hover/\n * Hover options\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highmaps\n * @apioption plotOptions.series.states.hover.color\n */\n /**\n * The border color of the point in this state.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highmaps\n * @apioption plotOptions.series.states.hover.borderColor\n */\n borderColor: \"#666666\" /* Palette.neutralColor60 */,\n /**\n * The border width of the point in this state\n *\n * @type {number}\n * @product highmaps\n * @apioption plotOptions.series.states.hover.borderWidth\n */\n borderWidth: 2\n /**\n * The relative brightness of the point when hovered, relative\n * to the normal point color.\n *\n * @type {number}\n * @product highmaps\n * @default 0\n * @apioption plotOptions.series.states.hover.brightness\n */\n },\n /**\n * @apioption plotOptions.series.states.normal\n */\n normal: {\n /**\n * @productdesc {highmaps}\n * The animation adds some latency in order to reduce the effect\n * of flickering when hovering in and out of for example an\n * uneven coastline.\n *\n * @sample {highmaps} maps/plotoptions/series-states-animation-false/\n * No animation of fill color\n *\n * @apioption plotOptions.series.states.normal.animation\n */\n animation: true\n },\n /**\n * @apioption plotOptions.series.states.select\n */\n select: {\n /**\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @default ${palette.neutralColor20}\n * @product highmaps\n * @apioption plotOptions.series.states.select.color\n */\n color: \"#cccccc\" /* Palette.neutralColor20 */\n }\n },\n legendSymbol: 'rectangle'\n};\n/**\n * An array of objects containing a `geometry` or `path` definition and\n * optionally additional properties to join in the `data` as per the `joinBy`\n * option. GeoJSON and TopoJSON structures can also be passed directly into\n * `mapData`.\n *\n * @sample maps/demo/category-map/\n * Map data and joinBy\n * @sample maps/series/mapdata-multiple/\n * Multiple map sources\n *\n * @type {Array|Highcharts.GeoJSON|Highcharts.TopoJSON}\n * @product highmaps\n * @apioption series.mapData\n */\n/**\n * A `map` series. If the [type](#series.map.type) option is not specified, it\n * is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.map\n * @excluding dataParser, dataURL, dragDrop, marker\n * @product highmaps\n * @apioption series.map\n */\n/**\n * An array of data points for the series. For the `map` series type, points can\n * be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `value` options. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond to\n * `[hc-key, value]`. Example:\n * ```js\n * data: [\n * ['us-ny', 0],\n * ['us-mi', 5],\n * ['us-tx', 3],\n * ['us-ak', 5]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.map.turboThreshold),\n * this option is not available.\n * ```js\n * data: [{\n * value: 6,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * value: 6,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @type {Array|null|*>}\n * @product highmaps\n * @apioption series.map.data\n */\n/**\n * When using automatic point colors pulled from the global\n * [colors](colors) or series-specific\n * [plotOptions.map.colors](series.colors) collections, this option\n * determines whether the chart should receive one color per series or\n * one color per point.\n *\n * In styled mode, the `colors` or `series.colors` arrays are not\n * supported, and instead this option gives the points individual color\n * class names on the form `highcharts-color-{n}`.\n *\n * @see [series colors](#plotOptions.map.colors)\n *\n * @sample {highmaps} maps/plotoptions/mapline-colorbypoint-false/\n * Mapline colorByPoint set to false by default\n * @sample {highmaps} maps/plotoptions/mapline-colorbypoint-true/\n * Mapline colorByPoint set to true\n *\n * @type {boolean}\n * @default false\n * @since 2.0\n * @product highmaps\n * @apioption plotOptions.map.colorByPoint\n */\n/**\n * A series specific or series type specific color set to apply instead\n * of the global [colors](#colors) when [colorByPoint](\n * #plotOptions.map.colorByPoint) is true.\n *\n * @type {Array}\n * @since 3.0\n * @product highmaps\n * @apioption plotOptions.map.colors\n */\n/**\n * Individual color for the point. By default the color is either used\n * to denote the value, or pulled from the global `colors` array.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highmaps\n * @apioption series.map.data.color\n */\n/**\n * Individual data label for each point. The options are the same as\n * the ones for [plotOptions.series.dataLabels](\n * #plotOptions.series.dataLabels).\n *\n * @sample maps/series/data-datalabels/\n * Disable data labels for individual areas\n *\n * @type {Highcharts.DataLabelsOptions}\n * @product highmaps\n * @apioption series.map.data.dataLabels\n */\n/**\n * The `id` of a series in the [drilldown.series](#drilldown.series)\n * array to use for a drilldown for this point.\n *\n * @sample maps/demo/map-drilldown/\n * Basic drilldown\n *\n * @type {string}\n * @product highmaps\n * @apioption series.map.data.drilldown\n */\n/**\n * For map and mapline series types, the geometry of a point.\n *\n * To achieve a better separation between the structure and the data,\n * it is recommended to use `mapData` to define the geometry instead\n * of defining it on the data points themselves.\n *\n * The geometry object is compatible to that of a `feature` in GeoJSON, so\n * features of GeoJSON can be passed directly into the `data`, optionally\n * after first filtering and processing it.\n *\n * For pre-projected maps (like GeoJSON maps from our\n * [map collection](https://code.highcharts.com/mapdata/)), user has to specify\n * coordinates in `projectedUnits` for geometry type other than `Point`,\n * instead of `[longitude, latitude]`.\n *\n * @sample maps/series/mappoint-line-geometry/\n * Map point and line geometry\n * @sample maps/series/geometry-types/\n * Geometry types\n *\n * @type {Object}\n * @since 9.3.0\n * @product highmaps\n * @apioption series.map.data.geometry\n */\n/**\n * The geometry type. Can be one of `LineString`, `Polygon`, `MultiLineString`\n * or `MultiPolygon`.\n *\n * @sample maps/series/geometry-types/\n * Geometry types\n *\n * @declare Highcharts.MapGeometryTypeValue\n * @type {string}\n * @since 9.3.0\n * @product highmaps\n * @validvalue [\"LineString\", \"Polygon\", \"MultiLineString\", \"MultiPolygon\"]\n * @apioption series.map.data.geometry.type\n */\n/**\n * The geometry coordinates in terms of arrays of `[longitude, latitude]`, or\n * a two dimensional array of the same. The dimensionality must comply with the\n * `type`.\n *\n * @type {Array|Array>}\n * @since 9.3.0\n * @product highmaps\n * @apioption series.map.data.geometry.coordinates\n */\n/**\n * An id for the point. This can be used after render time to get a\n * pointer to the point object through `chart.get()`.\n *\n * @sample maps/series/data-id/\n * Highlight a point by id\n *\n * @type {string}\n * @product highmaps\n * @apioption series.map.data.id\n */\n/**\n * When data labels are laid out on a map, Highmaps runs a simplified\n * algorithm to detect collision. When two labels collide, the one with\n * the lowest rank is hidden. By default the rank is computed from the\n * area.\n *\n * @type {number}\n * @product highmaps\n * @apioption series.map.data.labelrank\n */\n/**\n * The relative mid point of an area, used to place the data label.\n * Ranges from 0 to 1\\. When `mapData` is used, middleX can be defined\n * there.\n *\n * @type {number}\n * @default 0.5\n * @product highmaps\n * @apioption series.map.data.middleX\n */\n/**\n * The relative mid point of an area, used to place the data label.\n * Ranges from 0 to 1\\. When `mapData` is used, middleY can be defined\n * there.\n *\n * @type {number}\n * @default 0.5\n * @product highmaps\n * @apioption series.map.data.middleY\n */\n/**\n * The name of the point as shown in the legend, tooltip, dataLabel\n * etc.\n *\n * @sample maps/series/data-datalabels/\n * Point names\n *\n * @type {string}\n * @product highmaps\n * @apioption series.map.data.name\n */\n/**\n * For map and mapline series types, the SVG path for the shape. For\n * compatibility with old IE, not all SVG path definitions are supported,\n * but M, L and C operators are safe.\n *\n * To achieve a better separation between the structure and the data,\n * it is recommended to use `mapData` to define that paths instead\n * of defining them on the data points themselves.\n *\n * For providing true geographical shapes based on longitude and latitude, use\n * the `geometry` option instead.\n *\n * @sample maps/series/data-path/\n * Paths defined in data\n *\n * @type {string}\n * @product highmaps\n * @apioption series.map.data.path\n */\n/**\n * The numeric value of the data point.\n *\n * @type {number|null}\n * @product highmaps\n * @apioption series.map.data.value\n */\n/**\n * Individual point events\n *\n * @extends plotOptions.series.point.events\n * @product highmaps\n * @apioption series.map.data.events\n */\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Map_MapSeriesDefaults = (MapSeriesDefaults);\n\n;// ./code/es-modules/Maps/MapViewDefaults.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * API Options\n *\n * */\n/**\n * The `mapView` options control the initial view of the chart, and how\n * projection is set up for raw geoJSON maps (beta as of v9.3).\n *\n * To set the view dynamically after chart generation, see\n * [mapView.setView](/class-reference/Highcharts.MapView#setView).\n *\n * @since 9.3.0\n * @product highmaps\n * @optionparent mapView\n */\nconst MapViewDefaults = {\n /**\n * The center of the map in terms of longitude and latitude. For\n * preprojected maps (like the GeoJSON files in Map Collection v1.x),\n * the units are projected x and y units.\n *\n * @sample {highmaps} maps/mapview/center-zoom\n * Custom view of a world map\n * @sample {highmaps} maps/mapview/get-view\n * Report the current view of a preprojected map\n *\n * @type {Highcharts.LonLatArray}\n * @default [0, 0]\n */\n center: [0, 0],\n /**\n * Fit the map to a geometry object consisting of individual points or\n * polygons. This is practical for responsive maps where we want to\n * focus on a specific area regardless of map size - unlike setting\n * `center` and `zoom`, where the view doesn't scale with different map\n * sizes.\n *\n * The geometry can be combined with the [padding](#mapView.padding)\n * option to avoid touching the edges of the chart.\n *\n * @sample maps/mapview/fittogeometry\n * Fitting the view to geometries\n *\n * @type {object}\n * @since 10.3.3\n */\n fitToGeometry: void 0,\n /**\n * Prevents the end user from zooming too far in on the map. See\n * [zoom](#mapView.zoom).\n *\n * @sample {highmaps} maps/mapview/maxzoom\n * Prevent zooming in too far\n *\n * @type {number|undefined}\n */\n maxZoom: void 0,\n /**\n * The padding inside the plot area when auto fitting to the map bounds.\n * A number signifies pixels, and a percentage is relative to the plot\n * area size.\n *\n * An array sets individual padding for the sides in the order [top,\n * right, bottom, left].\n *\n * @sample {highmaps} maps/chart/plotbackgroundcolor-color\n * Visible plot area and percentage padding\n * @sample {highmaps} maps/demo/mappoint-mapmarker\n * Padding for individual sides\n *\n * @type {number|string|Array}\n */\n padding: 0,\n /**\n * The projection options allow applying client side projection to a map\n * given in geographic coordinates, typically from TopoJSON or GeoJSON.\n *\n * @sample maps/demo/projection-explorer\n * Projection explorer\n * @sample maps/demo/topojson-projection\n * Orthographic projection\n * @sample maps/mapview/projection-custom-proj4js\n * Custom UTM projection definition\n * @sample maps/mapview/projection-custom-d3geo\n * Custom Robinson projection definition\n *\n * @type {object}\n */\n projection: {\n /**\n * Projection name. Built-in projections are `EqualEarth`,\n * `LambertConformalConic`, `Miller`, `Orthographic` and `WebMercator`.\n *\n * @sample maps/demo/projection-explorer\n * Projection explorer\n * @sample maps/mapview/projection-custom-proj4js\n * Custom UTM projection definition\n * @sample maps/mapview/projection-custom-d3geo\n * Custom Robinson projection definition\n * @sample maps/demo/topojson-projection\n * Orthographic projection\n *\n * @type {string}\n */\n name: void 0,\n /**\n * The two standard parallels that define the map layout in conic\n * projections, like the LambertConformalConic projection. If only\n * one number is given, the second parallel will be the same as the\n * first.\n *\n * @sample maps/mapview/projection-parallels\n * LCC projection with parallels\n * @sample maps/demo/projection-explorer\n * Projection explorer\n *\n * @type {Array}\n */\n parallels: void 0,\n /**\n * Rotation of the projection in terms of degrees `[lambda, phi,\n * gamma]`. When given, a three-axis spherical rotation is be applied\n * to the globe prior to the projection.\n *\n * * `lambda` shifts the longitudes by the given value.\n * * `phi` shifts the latitudes by the given value. Can be omitted.\n * * `gamma` applies a _roll_. Can be omitted.\n *\n * @sample maps/demo/projection-explorer\n * Projection explorer\n * @sample maps/mapview/projection-america-centric\n * America-centric world map\n */\n rotation: void 0\n },\n /**\n * The zoom level of a map. Higher zoom levels means more zoomed in. An\n * increase of 1 zooms in to a quarter of the viewed area (half the\n * width and height). Defaults to fitting to the map bounds.\n *\n * In a `WebMercator` projection, a zoom level of 0 represents\n * the world in a 256x256 pixel square. This is a common concept for WMS\n * tiling software.\n *\n * @sample {highmaps} maps/mapview/center-zoom\n * Custom view of a world map\n * @sample {highmaps} maps/mapview/get-view\n * Report the current view of a preprojected map\n *\n * @type {number}\n */\n zoom: void 0,\n /**\n * Generic options for the placement and appearance of map insets like\n * non-contiguous territories.\n *\n * @since 10.0.0\n * @product highmaps\n * @optionparent mapView.insetOptions\n */\n insetOptions: {\n /**\n * The border color of the insets.\n *\n * @sample maps/mapview/insetoptions-border\n * Inset border options\n *\n * @type {Highcharts.ColorType}\n */\n borderColor: \"#cccccc\" /* Palette.neutralColor20 */,\n /**\n * The pixel border width of the insets.\n *\n * @sample maps/mapview/insetoptions-border\n * Inset border options\n */\n borderWidth: 1,\n /**\n * The padding of the insets. Can be either a number of pixels, a\n * percentage string, or an array of either. If an array is given, it\n * sets the top, right, bottom, left paddings respectively.\n *\n * @type {number|string|Array}\n */\n padding: '10%',\n /**\n * What coordinate system the `field` and `borderPath` should relate to.\n * If `plotBox`, they will be fixed to the plot box and responsively\n * move in relation to the main map. If `mapBoundingBox`, they will be\n * fixed to the map bounding box, which is constant and centered in\n * different chart sizes and ratios.\n *\n * @validvalue [\"plotBox\", \"mapBoundingBox\"]\n */\n relativeTo: 'mapBoundingBox',\n /**\n * The individual MapView insets, typically used for non-contiguous\n * areas of a country. Each item inherits from the generic\n * `insetOptions`.\n *\n * Some of the TopoJSON files of the [Highcharts Map\n * Collection](https://code.highcharts.com/mapdata/) include a property\n * called `hc-recommended-mapview`, and some of these include insets. In\n * order to override the recommended inset options, an inset option with\n * a matching id can be applied, and it will be merged into the embedded\n * settings.\n *\n * @sample maps/mapview/insets-extended\n * Extending the embedded insets\n * @sample maps/mapview/insets-complete\n * Complete inset config from scratch\n *\n * @extends mapView.insetOptions\n * @type Array\n * @product highmaps\n * @apioption mapView.insets\n */\n /**\n * A geometry object of type `MultiLineString` defining the border path\n * of the inset in terms of `units`. If undefined, a border is rendered\n * around the `field` geometry. It is recommended that the `borderPath`\n * partly follows the outline of the `field` in order to make pointer\n * positioning consistent.\n *\n * @sample maps/mapview/insets-complete\n * Complete inset config with `borderPath`\n *\n * @product highmaps\n * @type {Object|undefined}\n * @apioption mapView.insets.borderPath\n */\n /**\n * A geometry object of type `Polygon` defining where in the chart the\n * inset should be rendered, in terms of `units` and relative to the\n * `relativeTo` setting. If a `borderPath` is omitted, a border is\n * rendered around the field. If undefined, the inset is rendered in the\n * full plot area.\n *\n * @sample maps/mapview/insets-extended\n * Border path emitted, field is rendered\n *\n * @product highmaps\n * @type {object|undefined}\n * @apioption mapView.insets.field\n */\n /**\n * A geometry object of type `Polygon` encircling the shapes that should\n * be rendered in the inset, in terms of geographic coordinates.\n * Geometries within this geometry are removed from the default map view\n * and rendered in the inset.\n *\n * @sample maps/mapview/insets-complete\n * Complete inset config with `geoBounds`\n *\n * @product highmaps\n * @type {object}\n * @apioption mapView.insets.geoBounds\n */\n /**\n * The id of the inset, used for internal reference.\n *\n * @sample maps/mapview/insets-extended\n * Extending recommended insets by id\n *\n * @product highmaps\n * @type {string}\n * @apioption mapView.insets.id\n */\n /**\n * The projection options for the inset.\n *\n * @product highmaps\n * @type {Object}\n * @extends mapView.projection\n * @apioption mapView.insets.projection\n */\n /**\n * What units to use for the `field` and `borderPath` geometries. If\n * `percent` (default), they relate to the box given in `relativeTo`. If\n * `pixels`, they are absolute values.\n *\n * @validvalue [\"percent\", \"pixels\"]\n */\n units: 'percent'\n }\n};\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Maps_MapViewDefaults = (MapViewDefaults);\n\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"Templating\"],\"commonjs\":[\"highcharts\",\"Templating\"],\"commonjs2\":[\"highcharts\",\"Templating\"],\"root\":[\"Highcharts\",\"Templating\"]}\nvar highcharts_Templating_commonjs_highcharts_Templating_commonjs2_highcharts_Templating_root_Highcharts_Templating_ = __webpack_require__(984);\nvar highcharts_Templating_commonjs_highcharts_Templating_commonjs2_highcharts_Templating_root_Highcharts_Templating_default = /*#__PURE__*/__webpack_require__.n(highcharts_Templating_commonjs_highcharts_Templating_commonjs2_highcharts_Templating_root_Highcharts_Templating_);\n;// ./code/es-modules/Maps/GeoJSONComposition.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { win } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\nconst { format } = (highcharts_Templating_commonjs_highcharts_Templating_commonjs2_highcharts_Templating_root_Highcharts_Templating_default());\n\nconst { error, extend: GeoJSONComposition_extend, merge: GeoJSONComposition_merge, wrap: GeoJSONComposition_wrap } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Composition\n *\n * */\nvar GeoJSONComposition;\n(function (GeoJSONComposition) {\n /* *\n *\n * Functions\n *\n * */\n /**\n * Deprecated. Use `MapView.lonLatToProjectedUnits` instead.\n *\n * @deprecated\n *\n * @requires modules/map\n *\n * @function Highcharts.Chart#fromLatLonToPoint\n *\n * @param {Highcharts.MapLonLatObject} lonLat\n * Coordinates.\n *\n * @return {Highcharts.ProjectedXY}\n * X and Y coordinates in terms of projected values\n */\n function chartFromLatLonToPoint(lonLat) {\n return this.mapView && this.mapView.lonLatToProjectedUnits(lonLat);\n }\n /**\n * Deprecated. Use `MapView.projectedUnitsToLonLat` instead.\n *\n * @deprecated\n *\n * @requires modules/map\n *\n * @function Highcharts.Chart#fromPointToLatLon\n *\n * @param {Highcharts.Point|Highcharts.ProjectedXY} point\n * A `Point` instance or anything containing `x` and `y` properties\n * with numeric values.\n *\n * @return {Highcharts.MapLonLatObject|undefined}\n * An object with `lat` and `lon` properties.\n */\n function chartFromPointToLatLon(point) {\n return this.mapView && this.mapView.projectedUnitsToLonLat(point);\n }\n /**\n * Highcharts Maps only. Get point from latitude and longitude using\n * specified transform definition.\n *\n * @requires modules/map\n *\n * @sample maps/series/latlon-transform/\n * Use specific transformation for lat/lon\n *\n * @function Highcharts.Chart#transformFromLatLon\n *\n * @param {Highcharts.MapLonLatObject} latLon\n * A latitude/longitude object.\n *\n * @param {*} transform\n * The transform definition to use as explained in the\n * {@link https://www.highcharts.com/docs/maps/latlon|documentation}.\n *\n * @return {ProjectedXY}\n * An object with `x` and `y` properties.\n */\n function chartTransformFromLatLon(latLon, transform) {\n /**\n * Allows to manually load the proj4 library from Highcharts options\n * instead of the `window`.\n * In case of loading the library from a `script` tag,\n * this option is not needed, it will be loaded from there by default.\n *\n * @type {Function}\n * @product highmaps\n * @apioption chart.proj4\n */\n const proj4 = this.options.chart.proj4 || win.proj4;\n if (!proj4) {\n error(21, false, this);\n return;\n }\n const { jsonmarginX = 0, jsonmarginY = 0, jsonres = 1, scale = 1, xoffset = 0, xpan = 0, yoffset = 0, ypan = 0 } = transform;\n const projected = proj4(transform.crs, [latLon.lon, latLon.lat]), cosAngle = transform.cosAngle ||\n (transform.rotation && Math.cos(transform.rotation)), sinAngle = transform.sinAngle ||\n (transform.rotation && Math.sin(transform.rotation)), rotated = transform.rotation ? [\n projected[0] * cosAngle + projected[1] * sinAngle,\n -projected[0] * sinAngle + projected[1] * cosAngle\n ] : projected;\n return {\n x: ((rotated[0] - xoffset) * scale + xpan) * jsonres + jsonmarginX,\n y: -(((yoffset - rotated[1]) * scale + ypan) * jsonres - jsonmarginY)\n };\n }\n /**\n * Highcharts Maps only. Get latLon from point using specified transform\n * definition. The method returns an object with the numeric properties\n * `lat` and `lon`.\n *\n * @requires modules/map\n *\n * @sample maps/series/latlon-transform/\n * Use specific transformation for lat/lon\n *\n * @function Highcharts.Chart#transformToLatLon\n *\n * @param {Highcharts.Point|Highcharts.ProjectedXY} point\n * A `Point` instance, or any object containing the properties `x`\n * and `y` with numeric values.\n *\n * @param {*} transform\n * The transform definition to use as explained in the\n * {@link https://www.highcharts.com/docs/maps/latlon|documentation}.\n *\n * @return {Highcharts.MapLonLatObject|undefined}\n * An object with `lat` and `lon` properties.\n */\n function chartTransformToLatLon(point, transform) {\n const proj4 = this.options.chart.proj4 || win.proj4;\n if (!proj4) {\n error(21, false, this);\n return;\n }\n if (point.y === null) {\n return;\n }\n const { jsonmarginX = 0, jsonmarginY = 0, jsonres = 1, scale = 1, xoffset = 0, xpan = 0, yoffset = 0, ypan = 0 } = transform;\n const normalized = {\n x: ((point.x - jsonmarginX) / jsonres - xpan) / scale + xoffset,\n y: ((point.y - jsonmarginY) / jsonres + ypan) / scale + yoffset\n }, cosAngle = transform.cosAngle ||\n (transform.rotation && Math.cos(transform.rotation)), sinAngle = transform.sinAngle ||\n (transform.rotation && Math.sin(transform.rotation)), \n // Note: Inverted sinAngle to reverse rotation direction\n projected = proj4(transform.crs, 'WGS84', transform.rotation ? {\n x: normalized.x * cosAngle + normalized.y * -sinAngle,\n y: normalized.x * sinAngle + normalized.y * cosAngle\n } : normalized);\n return { lat: projected.y, lon: projected.x };\n }\n /** @private */\n function compose(ChartClass) {\n const chartProto = ChartClass.prototype;\n if (!chartProto.transformFromLatLon) {\n chartProto.fromLatLonToPoint = chartFromLatLonToPoint;\n chartProto.fromPointToLatLon = chartFromPointToLatLon;\n chartProto.transformFromLatLon = chartTransformFromLatLon;\n chartProto.transformToLatLon = chartTransformToLatLon;\n GeoJSONComposition_wrap(chartProto, 'addCredits', wrapChartAddCredit);\n }\n }\n GeoJSONComposition.compose = compose;\n /**\n * Highcharts Maps only. Restructure a GeoJSON or TopoJSON object in\n * preparation to be read directly by the\n * {@link https://api.highcharts.com/highmaps/plotOptions.series.mapData|series.mapData}\n * option. The object will be broken down to fit a specific Highcharts type,\n * either `map`, `mapline` or `mappoint`. Meta data in GeoJSON's properties\n * object will be copied directly over to {@link Point.properties} in\n * Highcharts Maps.\n *\n * @requires modules/map\n *\n * @sample maps/demo/geojson/ Simple areas\n * @sample maps/demo/mapline-mappoint/ Multiple types\n * @sample maps/series/mapdata-multiple/ Multiple map sources\n *\n * @function Highcharts.geojson\n *\n * @param {Highcharts.GeoJSON|Highcharts.TopoJSON} json\n * The GeoJSON or TopoJSON structure to parse, represented as a\n * JavaScript object.\n *\n * @param {string} [hType=map]\n * The Highcharts Maps series type to prepare for. Setting \"map\" will\n * return GeoJSON polygons and multipolygons. Setting \"mapline\" will\n * return GeoJSON linestrings and multilinestrings. Setting\n * \"mappoint\" will return GeoJSON points and multipoints.\n *\n *\n * @return {Array<*>} An object ready for the `mapData` option.\n */\n function geojson(json, hType = 'map', series) {\n const mapData = [];\n const geojson = json.type === 'Topology' ? topo2geo(json) : json, features = geojson.features;\n for (let i = 0, iEnd = features.length; i < iEnd; ++i) {\n const feature = features[i], geometry = feature.geometry || {}, type = geometry.type, coordinates = geometry.coordinates, properties = feature.properties;\n let pointOptions;\n if ((hType === 'map' || hType === 'mapbubble') &&\n (type === 'Polygon' || type === 'MultiPolygon')) {\n if (coordinates.length) {\n pointOptions = { geometry: { coordinates, type } };\n }\n }\n else if (hType === 'mapline' &&\n (type === 'LineString' ||\n type === 'MultiLineString')) {\n if (coordinates.length) {\n pointOptions = { geometry: { coordinates, type } };\n }\n }\n else if (hType === 'mappoint' && type === 'Point') {\n if (coordinates.length) {\n pointOptions = { geometry: { coordinates, type } };\n }\n }\n if (pointOptions) {\n const name = properties && (properties.name || properties.NAME), lon = properties && properties.lon, lat = properties && properties.lat;\n mapData.push(GeoJSONComposition_extend(pointOptions, {\n lat: typeof lat === 'number' ? lat : void 0,\n lon: typeof lon === 'number' ? lon : void 0,\n name: typeof name === 'string' ? name : void 0,\n /**\n * In Highcharts Maps, when data is loaded from GeoJSON, the\n * GeoJSON item's properies are copied over here.\n *\n * @requires modules/map\n * @name Highcharts.Point#properties\n * @type {*}\n */\n properties\n }));\n }\n }\n // Create a credits text that includes map source, to be picked up in\n // Chart.addCredits\n if (series && geojson.copyrightShort) {\n series.chart.mapCredits = format(series.chart.options.credits?.mapText, { geojson: geojson });\n series.chart.mapCreditsFull = format(series.chart.options.credits?.mapTextFull, { geojson: geojson });\n }\n return mapData;\n }\n GeoJSONComposition.geojson = geojson;\n /**\n * Convert a TopoJSON topology to GeoJSON. By default the first object is\n * handled.\n * Based on https://github.com/topojson/topojson-specification\n */\n function topo2geo(topology, objectName) {\n // Decode first object/feature as default\n if (!objectName) {\n objectName = Object.keys(topology.objects)[0];\n }\n const obj = topology.objects[objectName];\n // Already decoded with the same title => return cache\n if (obj['hc-decoded-geojson'] &&\n obj['hc-decoded-geojson'].title === topology.title) {\n return obj['hc-decoded-geojson'];\n }\n // Do the initial transform\n let arcsArray = topology.arcs;\n if (topology.transform) {\n const arcs = topology.arcs, { scale, translate } = topology.transform;\n let positionArray, x, y;\n arcsArray = [];\n for (let i = 0, iEnd = arcs.length; i < iEnd; ++i) {\n const positions = arcs[i];\n arcsArray.push(positionArray = []);\n x = 0;\n y = 0;\n for (let j = 0, jEnd = positions.length; j < jEnd; ++j) {\n positionArray.push([\n (x += positions[j][0]) * scale[0] + translate[0],\n (y += positions[j][1]) * scale[1] + translate[1]\n ]);\n }\n }\n }\n // Recurse down any depth of multi-dimensional arrays of arcs and insert\n // the coordinates\n const arcsToCoordinates = (arcs) => {\n if (typeof arcs[0] === 'number') {\n return arcs.reduce((coordinates, arcNo, i) => {\n let arc = arcNo < 0 ? arcsArray[~arcNo] : arcsArray[arcNo];\n // The first point of an arc is always identical to the last\n // point of the previes arc, so slice it off to save further\n // processing.\n if (arcNo < 0) {\n arc = arc.slice(0, i === 0 ? arc.length : arc.length - 1);\n arc.reverse();\n }\n else if (i) {\n arc = arc.slice(1);\n }\n return coordinates.concat(arc);\n }, []);\n }\n return arcs.map(arcsToCoordinates);\n };\n const geometries = obj.geometries, features = [];\n for (let i = 0, iEnd = geometries.length; i < iEnd; ++i) {\n features.push({\n type: 'Feature',\n properties: geometries[i].properties,\n geometry: {\n type: geometries[i].type,\n coordinates: geometries[i].coordinates ||\n arcsToCoordinates(geometries[i].arcs)\n }\n });\n }\n const geojson = {\n type: 'FeatureCollection',\n copyright: topology.copyright,\n copyrightShort: topology.copyrightShort,\n copyrightUrl: topology.copyrightUrl,\n features,\n 'hc-recommended-mapview': obj['hc-recommended-mapview'],\n bbox: topology.bbox,\n title: topology.title\n };\n obj['hc-decoded-geojson'] = geojson;\n return geojson;\n }\n GeoJSONComposition.topo2geo = topo2geo;\n /**\n * Override addCredits to include map source by default.\n * @private\n */\n function wrapChartAddCredit(proceed, credits) {\n credits = GeoJSONComposition_merge(true, this.options.credits, credits);\n proceed.call(this, credits);\n // Add full map credits to hover\n if (this.credits && this.mapCreditsFull) {\n this.credits.attr({\n title: this.mapCreditsFull\n });\n }\n }\n})(GeoJSONComposition || (GeoJSONComposition = {}));\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Maps_GeoJSONComposition = (GeoJSONComposition);\n/* *\n *\n * API Declarations\n *\n * */\n/**\n * Represents the loose structure of a geographic JSON file.\n *\n * @interface Highcharts.GeoJSON\n */ /**\n* Full copyright note of the geographic data.\n* @name Highcharts.GeoJSON#copyright\n* @type {string|undefined}\n*/ /**\n* Short copyright note of the geographic data suitable for watermarks.\n* @name Highcharts.GeoJSON#copyrightShort\n* @type {string|undefined}\n*/ /**\n* Additional meta information based on the coordinate reference system.\n* @name Highcharts.GeoJSON#crs\n* @type {Highcharts.Dictionary|undefined}\n*/ /**\n* Data sets of geographic features.\n* @name Highcharts.GeoJSON#features\n* @type {Array}\n*/ /**\n* Map projections and transformations to be used when calculating between\n* lat/lon and chart values. Required for lat/lon support on maps. Allows\n* resizing, rotating, and moving portions of a map within its projected\n* coordinate system while still retaining lat/lon support. If using lat/lon\n* on a portion of the map that does not match a `hitZone`, the definition with\n* the key `default` is used.\n* @name Highcharts.GeoJSON#hc-transform\n* @type {Highcharts.Dictionary|undefined}\n*/ /**\n* Title of the geographic data.\n* @name Highcharts.GeoJSON#title\n* @type {string|undefined}\n*/ /**\n* Type of the geographic data. Type of an optimized map collection is\n* `FeatureCollection`.\n* @name Highcharts.GeoJSON#type\n* @type {string|undefined}\n*/ /**\n* Version of the geographic data.\n* @name Highcharts.GeoJSON#version\n* @type {string|undefined}\n*/\n/**\n * Data set of a geographic feature.\n * @interface Highcharts.GeoJSONFeature\n * @extends Highcharts.Dictionary<*>\n */ /**\n* Data type of the geographic feature.\n* @name Highcharts.GeoJSONFeature#type\n* @type {string}\n*/\n/**\n * Describes the map projection and transformations applied to a portion of\n * a map.\n * @interface Highcharts.GeoJSONTranslation\n */ /**\n* The coordinate reference system used to generate this portion of the map.\n* @name Highcharts.GeoJSONTranslation#crs\n* @type {string}\n*/ /**\n* Define the portion of the map that this definition applies to. Defined as a\n* GeoJSON polygon feature object, with `type` and `coordinates` properties.\n* @name Highcharts.GeoJSONTranslation#hitZone\n* @type {Highcharts.Dictionary<*>|undefined}\n*/ /**\n* Property for internal use for maps generated by Highsoft.\n* @name Highcharts.GeoJSONTranslation#jsonmarginX\n* @type {number|undefined}\n*/ /**\n* Property for internal use for maps generated by Highsoft.\n* @name Highcharts.GeoJSONTranslation#jsonmarginY\n* @type {number|undefined}\n*/ /**\n* Property for internal use for maps generated by Highsoft.\n* @name Highcharts.GeoJSONTranslation#jsonres\n* @type {number|undefined}\n*/ /**\n* Specifies clockwise rotation of the coordinates after the projection, but\n* before scaling and panning. Defined in radians, relative to the coordinate\n* system origin.\n* @name Highcharts.GeoJSONTranslation#rotation\n* @type {number|undefined}\n*/ /**\n* The scaling factor applied to the projected coordinates.\n* @name Highcharts.GeoJSONTranslation#scale\n* @type {number|undefined}\n*/ /**\n* Property for internal use for maps generated by Highsoft.\n* @name Highcharts.GeoJSONTranslation#xoffset\n* @type {number|undefined}\n*/ /**\n* X offset of projected coordinates after scaling.\n* @name Highcharts.GeoJSONTranslation#xpan\n* @type {number|undefined}\n*/ /**\n* Property for internal use for maps generated by Highsoft.\n* @name Highcharts.GeoJSONTranslation#yoffset\n* @type {number|undefined}\n*/ /**\n* Y offset of projected coordinates after scaling.\n* @name Highcharts.GeoJSONTranslation#ypan\n* @type {number|undefined}\n*/\n/**\n * Result object of a map transformation.\n *\n * @interface Highcharts.ProjectedXY\n */ /**\n* X coordinate in projected units.\n* @name Highcharts.ProjectedXY#x\n* @type {number}\n*/ /**\n* Y coordinate in projected units\n* @name Highcharts.ProjectedXY#y\n* @type {number}\n*/\n/**\n * A latitude/longitude object.\n *\n * @interface Highcharts.MapLonLatObject\n */ /**\n* The latitude.\n* @name Highcharts.MapLonLatObject#lat\n* @type {number}\n*/ /**\n* The longitude.\n* @name Highcharts.MapLonLatObject#lon\n* @type {number}\n*/\n/**\n * An array of longitude, latitude.\n *\n * @typedef {Array} Highcharts.LonLatArray\n */\n/**\n * An array of GeoJSON or TopoJSON objects or strings used as map data for\n * series.\n *\n * @typedef {Array<*>|GeoJSON|TopoJSON|string} Highcharts.MapDataType\n */\n/**\n * A TopoJSON object, see description on the\n * [project's GitHub page](https://github.com/topojson/topojson).\n *\n * @typedef {Object} Highcharts.TopoJSON\n */\n''; // Detach doclets above\n\n;// ./code/es-modules/Core/Geometry/GeometryUtilities.js\n/* *\n *\n * (c) 2010-2024 Highsoft AS\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * Namespace\n *\n * */\nvar GeometryUtilities;\n(function (GeometryUtilities) {\n /* *\n *\n * Functions\n *\n * */\n /**\n * Calculates the center between a list of points.\n *\n * @private\n *\n * @param {Array} points\n * A list of points to calculate the center of.\n *\n * @return {Highcharts.PositionObject}\n * Calculated center\n */\n function getCenterOfPoints(points) {\n const sum = points.reduce((sum, point) => {\n sum.x += point.x;\n sum.y += point.y;\n return sum;\n }, { x: 0, y: 0 });\n return {\n x: sum.x / points.length,\n y: sum.y / points.length\n };\n }\n GeometryUtilities.getCenterOfPoints = getCenterOfPoints;\n /**\n * Calculates the distance between two points based on their x and y\n * coordinates.\n *\n * @private\n *\n * @param {Highcharts.PositionObject} p1\n * The x and y coordinates of the first point.\n *\n * @param {Highcharts.PositionObject} p2\n * The x and y coordinates of the second point.\n *\n * @return {number}\n * Returns the distance between the points.\n */\n function getDistanceBetweenPoints(p1, p2) {\n return Math.sqrt(Math.pow(p2.x - p1.x, 2) + Math.pow(p2.y - p1.y, 2));\n }\n GeometryUtilities.getDistanceBetweenPoints = getDistanceBetweenPoints;\n /**\n * Calculates the angle between two points.\n * @todo add unit tests.\n * @private\n * @param {Highcharts.PositionObject} p1 The first point.\n * @param {Highcharts.PositionObject} p2 The second point.\n * @return {number} Returns the angle in radians.\n */\n function getAngleBetweenPoints(p1, p2) {\n return Math.atan2(p2.x - p1.x, p2.y - p1.y);\n }\n GeometryUtilities.getAngleBetweenPoints = getAngleBetweenPoints;\n /**\n * Test for point in polygon. Polygon defined as array of [x,y] points.\n * @private\n * @param {PositionObject} point The point potentially within a polygon.\n * @param {Array>} polygon The polygon potentially containing the point.\n */\n function pointInPolygon({ x, y }, polygon) {\n const len = polygon.length;\n let i, j, inside = false;\n for (i = 0, j = len - 1; i < len; j = i++) {\n const [x1, y1] = polygon[i], [x2, y2] = polygon[j];\n if (y1 > y !== y2 > y &&\n (x < (x2 - x1) *\n (y - y1) /\n (y2 - y1) +\n x1)) {\n inside = !inside;\n }\n }\n return inside;\n }\n GeometryUtilities.pointInPolygon = pointInPolygon;\n})(GeometryUtilities || (GeometryUtilities = {}));\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Geometry_GeometryUtilities = (GeometryUtilities);\n\n;// ./code/es-modules/Core/Geometry/PolygonClip.js\n/* *\n *\n * (c) 2010-2024 Highsoft AS\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * Functions\n *\n * */\n/**\n * Simple line string clipping. Clip to bounds and insert intersection points.\n * @private\n */\nfunction clipLineString(line, boundsPolygon) {\n const ret = [], l = clipPolygon(line, boundsPolygon, false);\n for (let i = 1; i < l.length; i++) {\n // Insert gap where two intersections follow each other\n if (l[i].isIntersection && l[i - 1].isIntersection) {\n ret.push(l.splice(0, i));\n i = 0;\n }\n // Push the rest\n if (i === l.length - 1) {\n ret.push(l);\n }\n }\n return ret;\n}\n/**\n * Clip a polygon to another polygon using the Sutherland/Hodgman algorithm.\n * @private\n */\nfunction clipPolygon(subjectPolygon, boundsPolygon, closed = true) {\n let clipEdge1 = boundsPolygon[boundsPolygon.length - 1], clipEdge2, prevPoint, currentPoint, outputList = subjectPolygon;\n for (let j = 0; j < boundsPolygon.length; j++) {\n const inputList = outputList;\n clipEdge2 = boundsPolygon[j];\n outputList = [];\n prevPoint = closed ?\n // Polygon, wrap around\n inputList[inputList.length - 1] :\n // Open line string, don't wrap\n inputList[0];\n for (let i = 0; i < inputList.length; i++) {\n currentPoint = inputList[i];\n if (isInside(clipEdge1, clipEdge2, currentPoint)) {\n if (!isInside(clipEdge1, clipEdge2, prevPoint)) {\n outputList.push(intersection(clipEdge1, clipEdge2, prevPoint, currentPoint));\n }\n outputList.push(currentPoint);\n }\n else if (isInside(clipEdge1, clipEdge2, prevPoint)) {\n outputList.push(intersection(clipEdge1, clipEdge2, prevPoint, currentPoint));\n }\n prevPoint = currentPoint;\n }\n clipEdge1 = clipEdge2;\n }\n return outputList;\n}\n/** @private */\nfunction isInside(clipEdge1, clipEdge2, p) {\n return ((clipEdge2[0] - clipEdge1[0]) * (p[1] - clipEdge1[1]) >\n (clipEdge2[1] - clipEdge1[1]) * (p[0] - clipEdge1[0]));\n}\n/** @private */\nfunction intersection(clipEdge1, clipEdge2, prevPoint, currentPoint) {\n const dc = [\n clipEdge1[0] - clipEdge2[0],\n clipEdge1[1] - clipEdge2[1]\n ], dp = [\n prevPoint[0] - currentPoint[0],\n prevPoint[1] - currentPoint[1]\n ], n1 = clipEdge1[0] * clipEdge2[1] - clipEdge1[1] * clipEdge2[0], n2 = prevPoint[0] * currentPoint[1] - prevPoint[1] * currentPoint[0], n3 = 1 / (dc[0] * dp[1] - dc[1] * dp[0]), intersection = [\n (n1 * dp[0] - n2 * dc[0]) * n3,\n (n1 * dp[1] - n2 * dc[1]) * n3\n ];\n intersection.isIntersection = true;\n return intersection;\n}\n/* *\n *\n * Default Export\n *\n * */\nconst PolygonClip = {\n clipLineString,\n clipPolygon\n};\n/* harmony default export */ const Geometry_PolygonClip = (PolygonClip);\n\n;// ./code/es-modules/Maps/Projections/LambertConformalConic.js\n/* *\n * Lambert Conformal Conic projection\n * */\n\n/* *\n *\n * Constants\n *\n * */\nconst sign = Math.sign ||\n ((n) => (n === 0 ? 0 : n > 0 ? 1 : -1)), scale = 63.78137, LambertConformalConic_deg2rad = Math.PI / 180, halfPI = Math.PI / 2, eps10 = 1e-6, tany = (y) => Math.tan((halfPI + y) / 2);\n/* *\n *\n * Class\n *\n * */\nclass LambertConformalConic {\n /* *\n *\n * Constructor\n *\n * */\n constructor(options) {\n const parallels = (options.parallels || [])\n .map((n) => n * LambertConformalConic_deg2rad), lat1 = parallels[0] || 0, lat2 = parallels[1] ?? lat1, cosLat1 = Math.cos(lat1);\n if (typeof options.projectedBounds === 'object') {\n this.projectedBounds = options.projectedBounds;\n }\n // Apply the global variables\n let n = lat1 === lat2 ?\n Math.sin(lat1) :\n Math.log(cosLat1 / Math.cos(lat2)) / Math.log(tany(lat2) / tany(lat1));\n if (Math.abs(n) < 1e-10) {\n n = (sign(n) || 1) * 1e-10;\n }\n this.n = n;\n this.c = cosLat1 * Math.pow(tany(lat1), n) / n;\n }\n /* *\n *\n * Functions\n *\n * */\n forward(lonLat) {\n const { c, n, projectedBounds } = this, lon = lonLat[0] * LambertConformalConic_deg2rad;\n let lat = lonLat[1] * LambertConformalConic_deg2rad;\n if (c > 0) {\n if (lat < -halfPI + eps10) {\n lat = -halfPI + eps10;\n }\n }\n else {\n if (lat > halfPI - eps10) {\n lat = halfPI - eps10;\n }\n }\n const r = c / Math.pow(tany(lat), n), x = r * Math.sin(n * lon) * scale, y = (c - r * Math.cos(n * lon)) * scale, xy = [x, y];\n if (projectedBounds && (x < projectedBounds.x1 ||\n x > projectedBounds.x2 ||\n y < projectedBounds.y1 ||\n y > projectedBounds.y2)) {\n xy.outside = true;\n }\n return xy;\n }\n inverse(xy) {\n const { c, n } = this, x = xy[0] / scale, y = xy[1] / scale, cy = c - y, rho = sign(n) * Math.sqrt(x * x + cy * cy);\n let l = Math.atan2(x, Math.abs(cy)) * sign(cy);\n if (cy * n < 0) {\n l -= Math.PI * sign(x) * sign(cy);\n }\n return [\n (l / n) / LambertConformalConic_deg2rad,\n (2 * Math.atan(Math.pow(c / rho, 1 / n)) - halfPI) / LambertConformalConic_deg2rad\n ];\n }\n}\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Projections_LambertConformalConic = (LambertConformalConic);\n\n;// ./code/es-modules/Maps/Projections/EqualEarth.js\n/* *\n *\n * Equal Earth projection, an equal-area projection designed to minimize\n * distortion and remain pleasing to the eye.\n *\n * Invented by Bojan Šavrič, Bernhard Jenny, and Tom Patterson in 2018. It is\n * inspired by the widely used Robinson projection.\n *\n * */\n\n/* *\n *\n * Constants\n *\n * */\nconst A1 = 1.340264, A2 = -0.081106, A3 = 0.000893, A4 = 0.003796, M = Math.sqrt(3) / 2.0, EqualEarth_scale = 74.03120656864502;\n/* *\n *\n * Class\n *\n * */\nclass EqualEarth {\n constructor() {\n /* *\n *\n * Properties\n *\n * */\n this.bounds = {\n x1: -200.37508342789243,\n x2: 200.37508342789243,\n y1: -97.52595454902263,\n y2: 97.52595454902263\n };\n }\n /* *\n *\n * Functions\n *\n * */\n forward(lonLat) {\n const d = Math.PI / 180, paramLat = Math.asin(M * Math.sin(lonLat[1] * d)), paramLatSq = paramLat * paramLat, paramLatPow6 = paramLatSq * paramLatSq * paramLatSq;\n const x = lonLat[0] * d * Math.cos(paramLat) * EqualEarth_scale /\n (M * (A1 +\n 3 * A2 * paramLatSq +\n paramLatPow6 * (7 * A3 + 9 * A4 * paramLatSq))), y = paramLat * EqualEarth_scale * (A1 + A2 * paramLatSq + paramLatPow6 * (A3 + A4 * paramLatSq));\n return [x, y];\n }\n inverse(xy) {\n const x = xy[0] / EqualEarth_scale, y = xy[1] / EqualEarth_scale, d = 180 / Math.PI, epsilon = 1e-9;\n let paramLat = y, paramLatSq, paramLatPow6, fy, fpy, dlat;\n for (let i = 0; i < 12; ++i) {\n paramLatSq = paramLat * paramLat;\n paramLatPow6 = paramLatSq * paramLatSq * paramLatSq;\n fy = paramLat * (A1 + A2 * paramLatSq + paramLatPow6 * (A3 + A4 * paramLatSq)) - y;\n fpy = A1 + 3 * A2 * paramLatSq + paramLatPow6 * (7 * A3 + 9 * A4 * paramLatSq);\n paramLat -= dlat = fy / fpy;\n if (Math.abs(dlat) < epsilon) {\n break;\n }\n }\n paramLatSq = paramLat * paramLat;\n paramLatPow6 = paramLatSq * paramLatSq * paramLatSq;\n const lon = d * M * x * (A1 + 3 * A2 * paramLatSq + paramLatPow6 *\n (7 * A3 + 9 * A4 * paramLatSq)) / Math.cos(paramLat), lat = d * Math.asin(Math.sin(paramLat) / M);\n // If lons are beyond the border of a map -> resolve via break\n if (Math.abs(lon) > 180) {\n return [NaN, NaN];\n }\n return [lon, lat];\n }\n}\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Projections_EqualEarth = (EqualEarth);\n\n;// ./code/es-modules/Maps/Projections/Miller.js\n/* *\n * Miller projection\n * */\n\n/* *\n *\n * Constants\n *\n * */\nconst quarterPI = Math.PI / 4, Miller_deg2rad = Math.PI / 180, Miller_scale = 63.78137;\n/* *\n *\n * Class\n *\n * */\nclass Miller {\n constructor() {\n /* *\n *\n * Properties\n *\n * */\n this.bounds = {\n x1: -200.37508342789243,\n x2: 200.37508342789243,\n y1: -146.91480769173063,\n y2: 146.91480769173063\n };\n }\n /* *\n *\n * Functions\n *\n * */\n forward(lonLat) {\n return [\n lonLat[0] * Miller_deg2rad * Miller_scale,\n 1.25 * Miller_scale * Math.log(Math.tan(quarterPI + 0.4 * lonLat[1] * Miller_deg2rad))\n ];\n }\n inverse(xy) {\n return [\n (xy[0] / Miller_scale) / Miller_deg2rad,\n 2.5 * (Math.atan(Math.exp(0.8 * (xy[1] / Miller_scale))) - quarterPI) / Miller_deg2rad\n ];\n }\n}\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Projections_Miller = (Miller);\n\n;// ./code/es-modules/Maps/Projections/Orthographic.js\n/* *\n * Orthographic projection\n * */\n\n/* *\n *\n * Constants\n *\n * */\nconst Orthographic_deg2rad = Math.PI / 180, Orthographic_scale = 63.78460826781007;\n/* *\n *\n * Class\n *\n * */\nclass Orthographic {\n constructor() {\n /* *\n *\n * Properties\n *\n * */\n this.antimeridianCutting = false;\n this.bounds = {\n x1: -Orthographic_scale,\n x2: Orthographic_scale,\n y1: -Orthographic_scale,\n y2: Orthographic_scale\n };\n }\n /* *\n *\n * Functions\n *\n * */\n forward(lonLat) {\n const lonDeg = lonLat[0], latDeg = lonLat[1], lat = latDeg * Orthographic_deg2rad, xy = [\n Math.cos(lat) * Math.sin(lonDeg * Orthographic_deg2rad) * Orthographic_scale,\n Math.sin(lat) * Orthographic_scale\n ];\n if (lonDeg < -90 || lonDeg > 90) {\n xy.outside = true;\n }\n return xy;\n }\n inverse(xy) {\n const x = xy[0] / Orthographic_scale, y = xy[1] / Orthographic_scale, z = Math.sqrt(x * x + y * y), c = Math.asin(z), cSin = Math.sin(c), cCos = Math.cos(c);\n return [\n Math.atan2(x * cSin, z * cCos) / Orthographic_deg2rad,\n Math.asin(z && y * cSin / z) / Orthographic_deg2rad\n ];\n }\n}\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Projections_Orthographic = (Orthographic);\n\n;// ./code/es-modules/Maps/Projections/WebMercator.js\n/* *\n * Web Mercator projection, used for most online map tile services\n * */\n\n/* *\n *\n * Constants\n *\n * */\nconst r = 63.78137, WebMercator_deg2rad = Math.PI / 180;\n/* *\n *\n * Class\n *\n * */\nclass WebMercator {\n constructor() {\n /* *\n *\n * Properties\n *\n * */\n this.bounds = {\n x1: -200.37508342789243,\n x2: 200.37508342789243,\n y1: -200.3750834278071,\n y2: 200.3750834278071\n };\n this.maxLatitude = 85.0511287798; // The latitude that defines a square\n }\n /* *\n *\n * Functions\n *\n * */\n forward(lonLat) {\n const sinLat = Math.sin(lonLat[1] * WebMercator_deg2rad), xy = [\n r * lonLat[0] * WebMercator_deg2rad,\n r * Math.log((1 + sinLat) / (1 - sinLat)) / 2\n ];\n if (Math.abs(lonLat[1]) > this.maxLatitude) {\n xy.outside = true;\n }\n return xy;\n }\n inverse(xy) {\n return [\n xy[0] / (r * WebMercator_deg2rad),\n (2 * Math.atan(Math.exp(xy[1] / r)) - (Math.PI / 2)) / WebMercator_deg2rad\n ];\n }\n}\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Projections_WebMercator = (WebMercator);\n\n;// ./code/es-modules/Maps/Projections/ProjectionRegistry.js\n/* *\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * Imports\n *\n * */\n\n\n\n\n\n/* *\n *\n * Constants\n *\n * */\nconst projectionRegistry = {\n EqualEarth: Projections_EqualEarth,\n LambertConformalConic: Projections_LambertConformalConic,\n Miller: Projections_Miller,\n Orthographic: Projections_Orthographic,\n WebMercator: Projections_WebMercator\n};\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const ProjectionRegistry = (projectionRegistry);\n\n;// ./code/es-modules/Maps/Projection.js\n/* *\n *\n * (c) 2021 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { clipLineString: Projection_clipLineString, clipPolygon: Projection_clipPolygon } = Geometry_PolygonClip;\n\n\nconst { clamp, erase } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Constants\n *\n * */\nconst Projection_deg2rad = Math.PI * 2 / 360, \n// Safe padding on either side of the antimeridian to avoid points being\n// projected to the wrong side of the plane\nfloatCorrection = 0.000001;\n/* *\n *\n * Functions\n *\n * */\n/**\n * Keep longitude within -180 and 180. This is faster than using the modulo\n * operator, and preserves the distinction between -180 and 180.\n * @private\n */\nconst wrapLon = (lon) => {\n // Replacing the if's with while would increase the range, but make it prone\n // to crashes on bad data\n if (lon < -180) {\n lon += 360;\n }\n if (lon > 180) {\n lon -= 360;\n }\n return lon;\n};\n/**\n * Calculate the haversine of an angle.\n * @private\n */\nconst hav = (radians) => (1 - Math.cos(radians)) / 2;\n/**\n* Calculate the haversine of an angle from two coordinates.\n* @private\n*/\nconst havFromCoords = (point1, point2) => {\n const cos = Math.cos, lat1 = point1[1] * Projection_deg2rad, lon1 = point1[0] * Projection_deg2rad, lat2 = point2[1] * Projection_deg2rad, lon2 = point2[0] * Projection_deg2rad, deltaLat = lat2 - lat1, deltaLon = lon2 - lon1, havFromCoords = hav(deltaLat) + cos(lat1) * cos(lat2) * hav(deltaLon);\n return havFromCoords;\n};\n/* *\n *\n * Class\n *\n * */\nclass Projection {\n /* *\n *\n * Static Functions\n *\n * */\n /**\n * Add a projection definition to the registry, accessible by its `name`.\n * @private\n */\n static add(name, definition) {\n Projection.registry[name] = definition;\n }\n /**\n * Calculate the distance in meters between two given coordinates.\n * @private\n */\n static distance(point1, point2) {\n const { atan2, sqrt } = Math, hav = havFromCoords(point1, point2), angularDistance = 2 * atan2(sqrt(hav), sqrt(1 - hav)), distance = angularDistance * 6371e3;\n return distance;\n }\n /**\n * Calculate the geodesic line string between two given coordinates.\n * @private\n */\n static geodesic(point1, point2, inclusive, stepDistance = 500000) {\n const { atan2, cos, sin, sqrt } = Math, distance = Projection.distance, lat1 = point1[1] * Projection_deg2rad, lon1 = point1[0] * Projection_deg2rad, lat2 = point2[1] * Projection_deg2rad, lon2 = point2[0] * Projection_deg2rad, cosLat1CosLon1 = cos(lat1) * cos(lon1), cosLat2CosLon2 = cos(lat2) * cos(lon2), cosLat1SinLon1 = cos(lat1) * sin(lon1), cosLat2SinLon2 = cos(lat2) * sin(lon2), sinLat1 = sin(lat1), sinLat2 = sin(lat2), pointDistance = distance(point1, point2), angDistance = pointDistance / 6371e3, sinAng = sin(angDistance), jumps = Math.round(pointDistance / stepDistance), lineString = [];\n if (inclusive) {\n lineString.push(point1);\n }\n if (jumps > 1) {\n const step = 1 / jumps;\n for (let fraction = step; fraction < 0.999; // Account for float errors\n fraction += step) {\n // Add intermediate point to lineString\n const A = sin((1 - fraction) * angDistance) / sinAng, B = sin(fraction * angDistance) / sinAng, x = A * cosLat1CosLon1 + B * cosLat2CosLon2, y = A * cosLat1SinLon1 + B * cosLat2SinLon2, z = A * sinLat1 + B * sinLat2, lat3 = atan2(z, sqrt(x * x + y * y)), lon3 = atan2(y, x);\n lineString.push([lon3 / Projection_deg2rad, lat3 / Projection_deg2rad]);\n }\n }\n if (inclusive) {\n lineString.push(point2);\n }\n return lineString;\n }\n static insertGeodesics(poly) {\n let i = poly.length - 1;\n while (i--) {\n // Distance in degrees, either in lon or lat. Avoid heavy\n // calculation of true distance.\n const roughDistance = Math.max(Math.abs(poly[i][0] - poly[i + 1][0]), Math.abs(poly[i][1] - poly[i + 1][1]));\n if (roughDistance > 10) {\n const geodesic = Projection.geodesic(poly[i], poly[i + 1]);\n if (geodesic.length) {\n poly.splice(i + 1, 0, ...geodesic);\n }\n }\n }\n }\n static toString(options) {\n const { name, rotation } = options || {};\n return [name, rotation && rotation.join(',')].join(';');\n }\n /* *\n *\n * Constructor\n *\n * */\n constructor(options = {}) {\n // Whether the chart has points, lines or polygons given as coordinates\n // with positive up, as opposed to paths in the SVG plane with positive\n // down.\n this.hasCoordinates = false;\n // Whether the chart has true projection as opposed to pre-projected geojson\n // as in the legacy map collection.\n this.hasGeoProjection = false;\n this.maxLatitude = 90;\n this.options = options;\n const { name, projectedBounds, rotation } = options;\n this.rotator = rotation ? this.getRotator(rotation) : void 0;\n const ProjectionDefinition = name ? Projection.registry[name] : void 0;\n if (ProjectionDefinition) {\n this.def = new ProjectionDefinition(options);\n }\n const { def, rotator } = this;\n if (def) {\n this.maxLatitude = def.maxLatitude || 90;\n this.hasGeoProjection = true;\n }\n if (rotator && def) {\n this.forward = (lonLat) => def.forward(rotator.forward(lonLat));\n this.inverse = (xy) => rotator.inverse(def.inverse(xy));\n }\n else if (def) {\n this.forward = (lonLat) => def.forward(lonLat);\n this.inverse = (xy) => def.inverse(xy);\n }\n else if (rotator) {\n this.forward = rotator.forward;\n this.inverse = rotator.inverse;\n }\n // Projected bounds/clipping\n this.bounds = projectedBounds === 'world' ?\n def && def.bounds :\n projectedBounds;\n }\n /* *\n *\n * Functions\n *\n * */\n lineIntersectsBounds(line) {\n const { x1, x2, y1, y2 } = this.bounds || {};\n const getIntersect = (line, dim, val) => {\n const [p1, p2] = line, otherDim = dim ? 0 : 1;\n // Check if points are on either side of the line\n if (typeof val === 'number' && p1[dim] >= val !== p2[dim] >= val) {\n const fraction = ((val - p1[dim]) / (p2[dim] - p1[dim])), crossingVal = p1[otherDim] +\n fraction * (p2[otherDim] - p1[otherDim]);\n return dim ? [crossingVal, val] : [val, crossingVal];\n }\n };\n let intersection, ret = line[0];\n if ((intersection = getIntersect(line, 0, x1))) {\n ret = intersection;\n // Assuming line[1] was originally outside, replace it with the\n // intersection point so that the horizontal intersection will\n // be correct.\n line[1] = intersection;\n }\n else if ((intersection = getIntersect(line, 0, x2))) {\n ret = intersection;\n line[1] = intersection;\n }\n if ((intersection = getIntersect(line, 1, y1))) {\n ret = intersection;\n }\n else if ((intersection = getIntersect(line, 1, y2))) {\n ret = intersection;\n }\n return ret;\n }\n /**\n * Take the rotation options and returns the appropriate projection\n * functions.\n * @private\n */\n getRotator(rotation) {\n const deltaLambda = rotation[0] * Projection_deg2rad, deltaPhi = (rotation[1] || 0) * Projection_deg2rad, deltaGamma = (rotation[2] || 0) * Projection_deg2rad;\n const cosDeltaPhi = Math.cos(deltaPhi), sinDeltaPhi = Math.sin(deltaPhi), cosDeltaGamma = Math.cos(deltaGamma), sinDeltaGamma = Math.sin(deltaGamma);\n if (deltaLambda === 0 && deltaPhi === 0 && deltaGamma === 0) {\n // Don't waste processing time\n return;\n }\n return {\n forward: (lonLat) => {\n // Lambda (lon) rotation\n const lon = lonLat[0] * Projection_deg2rad + deltaLambda;\n // Phi (lat) and gamma rotation\n const lat = lonLat[1] * Projection_deg2rad, cosLat = Math.cos(lat), x = Math.cos(lon) * cosLat, y = Math.sin(lon) * cosLat, sinLat = Math.sin(lat), k = sinLat * cosDeltaPhi + x * sinDeltaPhi;\n return [\n Math.atan2(y * cosDeltaGamma - k * sinDeltaGamma, x * cosDeltaPhi - sinLat * sinDeltaPhi) / Projection_deg2rad,\n Math.asin(k * cosDeltaGamma + y * sinDeltaGamma) / Projection_deg2rad\n ];\n },\n inverse: (rLonLat) => {\n // Lambda (lon) unrotation\n const lon = rLonLat[0] * Projection_deg2rad;\n // Phi (lat) and gamma unrotation\n const lat = rLonLat[1] * Projection_deg2rad, cosLat = Math.cos(lat), x = Math.cos(lon) * cosLat, y = Math.sin(lon) * cosLat, sinLat = Math.sin(lat), k = sinLat * cosDeltaGamma - y * sinDeltaGamma;\n return [\n (Math.atan2(y * cosDeltaGamma + sinLat * sinDeltaGamma, x * cosDeltaPhi + k * sinDeltaPhi) - deltaLambda) / Projection_deg2rad,\n Math.asin(k * cosDeltaPhi - x * sinDeltaPhi) / Projection_deg2rad\n ];\n }\n };\n }\n /**\n * Project a lonlat coordinate position to xy. Dynamically overridden when\n * projection is set.\n * @private\n */\n forward(lonLat) {\n return lonLat;\n }\n /**\n * Unproject an xy chart coordinate position to lonlat. Dynamically\n * overridden when projection is set.\n * @private\n */\n inverse(xy) {\n return xy;\n }\n cutOnAntimeridian(poly, isPolygon) {\n const antimeridian = 180, intersections = [];\n const polygons = [poly];\n for (let i = 0, iEnd = poly.length; i < iEnd; ++i) {\n const lonLat = poly[i];\n let previousLonLat = poly[i - 1];\n if (!i) {\n if (!isPolygon) {\n continue;\n }\n // Else, wrap to beginning\n previousLonLat = poly[poly.length - 1];\n }\n const lon1 = previousLonLat[0], lon2 = lonLat[0];\n if (\n // Both points, after rotating for antimeridian, are on the far\n // side of the Earth\n (lon1 < -90 || lon1 > 90) &&\n (lon2 < -90 || lon2 > 90) &&\n // ... and on either side of the plane\n (lon1 > 0) !== (lon2 > 0)) {\n // Interpolate to the intersection latitude\n const fraction = clamp((antimeridian - (lon1 + 360) % 360) /\n ((lon2 + 360) % 360 - (lon1 + 360) % 360), 0, 1), lat = (previousLonLat[1] +\n fraction * (lonLat[1] - previousLonLat[1]));\n intersections.push({\n i,\n lat,\n direction: lon1 < 0 ? 1 : -1,\n previousLonLat,\n lonLat\n });\n }\n }\n let polarIntersection;\n if (intersections.length) {\n if (isPolygon) {\n // Simplified use of the even-odd rule, if there is an odd\n // amount of intersections between the polygon and the\n // antimeridian, the pole is inside the polygon. Applies\n // primarily to Antarctica.\n if (intersections.length % 2 === 1) {\n polarIntersection = intersections.slice().sort((a, b) => Math.abs(b.lat) - Math.abs(a.lat))[0];\n erase(intersections, polarIntersection);\n }\n // Pull out slices of the polygon that is on the opposite side\n // of the antimeridian compared to the starting point\n let i = intersections.length - 2;\n while (i >= 0) {\n const index = intersections[i].i;\n const lonPlus = wrapLon(antimeridian +\n intersections[i].direction * floatCorrection);\n const lonMinus = wrapLon(antimeridian -\n intersections[i].direction * floatCorrection);\n const slice = poly.splice(index, intersections[i + 1].i - index, \n // Add interpolated points close to the cut\n ...Projection.geodesic([lonPlus, intersections[i].lat], [lonPlus, intersections[i + 1].lat], true));\n // Add interpolated points close to the cut\n slice.push(...Projection.geodesic([lonMinus, intersections[i + 1].lat], [lonMinus, intersections[i].lat], true));\n polygons.push(slice);\n i -= 2;\n }\n // Insert dummy points close to the pole\n if (polarIntersection) {\n for (let i = 0; i < polygons.length; i++) {\n const { direction, lat } = polarIntersection, poly = polygons[i], indexOf = poly.indexOf(polarIntersection.lonLat);\n if (indexOf > -1) {\n const polarLatitude = (lat < 0 ? -1 : 1) *\n this.maxLatitude;\n const lon1 = wrapLon(antimeridian +\n direction * floatCorrection);\n const lon2 = wrapLon(antimeridian -\n direction * floatCorrection);\n const polarSegment = Projection.geodesic([lon1, lat], [lon1, polarLatitude], true);\n // Circle around the pole point in order to make\n // polygon clipping right. Without this, Antarctica\n // would wrap the wrong way in an LLC projection\n // with parallels [30, 40].\n for (let lon = lon1 + 120 * direction; lon > -180 && lon < 180; lon += 120 * direction) {\n polarSegment.push([lon, polarLatitude]);\n }\n polarSegment.push(...Projection.geodesic([lon2, polarLatitude], [lon2, polarIntersection.lat], true));\n poly.splice(indexOf, 0, ...polarSegment);\n break;\n }\n }\n }\n // Map lines, not closed\n }\n else {\n let i = intersections.length;\n while (i--) {\n const index = intersections[i].i;\n const slice = poly.splice(index, poly.length, \n // Add interpolated point close to the cut\n [\n wrapLon(antimeridian +\n intersections[i].direction * floatCorrection),\n intersections[i].lat\n ]);\n // Add interpolated point close to the cut\n slice.unshift([\n wrapLon(antimeridian -\n intersections[i].direction * floatCorrection),\n intersections[i].lat\n ]);\n polygons.push(slice);\n }\n }\n }\n return polygons;\n }\n /**\n * Take a GeoJSON geometry and return a translated SVGPath.\n * @private\n */\n path(geometry) {\n const { bounds, def, rotator } = this;\n const antimeridian = 180;\n const path = [];\n const isPolygon = geometry.type === 'Polygon' ||\n geometry.type === 'MultiPolygon';\n // @todo: It doesn't really have to do with whether north is\n // positive. It depends on whether the coordinates are\n // pre-projected.\n const hasGeoProjection = this.hasGeoProjection;\n // Detect whether we need to do antimeridian cutting and clipping to\n // bounds. The alternative (currently for Orthographic) is to apply a\n // clip angle.\n const projectingToPlane = !def || def.antimeridianCutting !== false;\n // We need to rotate in a separate step before applying antimeridian\n // cutting\n const preclip = projectingToPlane ? rotator : void 0;\n const postclip = projectingToPlane ? (def || this) : this;\n let boundsPolygon;\n if (bounds) {\n boundsPolygon = [\n [bounds.x1, bounds.y1],\n [bounds.x2, bounds.y1],\n [bounds.x2, bounds.y2],\n [bounds.x1, bounds.y2]\n ];\n }\n const addToPath = (polygon) => {\n // Create a copy of the original coordinates. The copy applies a\n // correction of points close to the antimeridian in order to\n // prevent the points to be projected to the wrong side of the\n // plane. Float errors in topojson or in the projection may cause\n // that.\n const poly = polygon.map((lonLat) => {\n if (projectingToPlane) {\n if (preclip) {\n lonLat = preclip.forward(lonLat);\n }\n let lon = lonLat[0];\n if (Math.abs(lon - antimeridian) < floatCorrection) {\n if (lon < antimeridian) {\n lon = antimeridian - floatCorrection;\n }\n else {\n lon = antimeridian + floatCorrection;\n }\n }\n lonLat = [lon, lonLat[1]];\n }\n return lonLat;\n });\n let polygons = [poly];\n if (hasGeoProjection) {\n // Insert great circles into long straight lines\n Projection.insertGeodesics(poly);\n if (projectingToPlane) {\n polygons = this.cutOnAntimeridian(poly, isPolygon);\n }\n }\n polygons.forEach((poly) => {\n if (poly.length < 2) {\n return;\n }\n let movedTo = false;\n let firstValidLonLat;\n let lastValidLonLat;\n let gap = false;\n const pushToPath = (point) => {\n if (!movedTo) {\n path.push(['M', point[0], point[1]]);\n movedTo = true;\n }\n else {\n path.push(['L', point[0], point[1]]);\n }\n };\n let someOutside = false, someInside = false;\n let points = poly.map((lonLat) => {\n const xy = postclip.forward(lonLat);\n if (xy.outside) {\n someOutside = true;\n }\n else {\n someInside = true;\n }\n // Mercator projects pole points to Infinity, and\n // clipPolygon is not able to handle it.\n if (xy[1] === Infinity) {\n xy[1] = 10e9;\n }\n else if (xy[1] === -Infinity) {\n xy[1] = -10e9;\n }\n return xy;\n });\n if (projectingToPlane) {\n // Wrap around in order for pointInPolygon to work\n if (isPolygon) {\n points.push(points[0]);\n }\n if (someOutside) {\n // All points are outside\n if (!someInside) {\n return;\n }\n // Some inside, some outside. Clip to the bounds.\n if (boundsPolygon) {\n // Polygons\n if (isPolygon) {\n points = Projection_clipPolygon(points, boundsPolygon);\n // Linestrings\n }\n else if (bounds) {\n Projection_clipLineString(points, boundsPolygon)\n .forEach((points) => {\n movedTo = false;\n points.forEach(pushToPath);\n });\n return;\n }\n }\n }\n points.forEach(pushToPath);\n // For orthographic projection, or when a clipAngle applies\n }\n else {\n for (let i = 0; i < points.length; i++) {\n const lonLat = poly[i], point = points[i];\n if (!point.outside) {\n // In order to be able to interpolate if the first\n // or last point is invalid (on the far side of the\n // globe in an orthographic projection), we need to\n // push the first valid point to the end of the\n // polygon.\n if (isPolygon && !firstValidLonLat) {\n firstValidLonLat = lonLat;\n poly.push(lonLat);\n points.push(point);\n }\n // When entering the first valid point after a gap\n // of invalid points, typically on the far side of\n // the globe in an orthographic projection.\n if (gap && lastValidLonLat) {\n // For areas, in an orthographic projection, the\n // great circle between two visible points will\n // be close to the horizon. A possible exception\n // may be when the two points are on opposite\n // sides of the globe. It that poses a problem,\n // we may have to rewrite this to use the small\n // circle related to the current lon0 and lat0.\n if (isPolygon && hasGeoProjection) {\n const geodesic = Projection.geodesic(lastValidLonLat, lonLat);\n geodesic.forEach((lonLat) => pushToPath(postclip.forward(lonLat)));\n // For lines, just jump over the gap\n }\n else {\n movedTo = false;\n }\n }\n pushToPath(point);\n lastValidLonLat = lonLat;\n gap = false;\n }\n else {\n gap = true;\n }\n }\n }\n });\n };\n if (geometry.type === 'LineString') {\n addToPath(geometry.coordinates);\n }\n else if (geometry.type === 'MultiLineString') {\n geometry.coordinates.forEach((c) => addToPath(c));\n }\n else if (geometry.type === 'Polygon') {\n geometry.coordinates.forEach((c) => addToPath(c));\n if (path.length) {\n path.push(['Z']);\n }\n }\n else if (geometry.type === 'MultiPolygon') {\n geometry.coordinates.forEach((polygons) => {\n polygons.forEach((c) => addToPath(c));\n });\n if (path.length) {\n path.push(['Z']);\n }\n }\n return path;\n }\n}\n/* *\n *\n * Static Properties\n *\n * */\nProjection.registry = ProjectionRegistry;\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Maps_Projection = (Projection);\n\n;// ./code/es-modules/Maps/MapView.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { composed: MapView_composed } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\n\n\nconst { pointInPolygon } = Geometry_GeometryUtilities;\nconst { topo2geo } = Maps_GeoJSONComposition;\n\nconst { boundsFromPath: MapView_boundsFromPath } = Maps_MapUtilities;\n\n\nconst { addEvent: MapView_addEvent, clamp: MapView_clamp, crisp, fireEvent: MapView_fireEvent, isArray: MapView_isArray, isNumber: MapView_isNumber, isObject, isString, merge: MapView_merge, pick: MapView_pick, pushUnique: MapView_pushUnique, relativeLength: MapView_relativeLength } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Constants\n *\n * */\nconst tileSize = 256;\n/**\n * The world size in terms of 10k meters in the Web Mercator projection, to\n * match a 256 square tile to zoom level 0.\n * @private\n */\nconst worldSize = 400.979322;\n/* *\n *\n * Variables\n *\n * */\nlet maps = {};\n/* *\n *\n * Functions\n *\n * */\n/**\n * Compute the zoom from given bounds and the size of the playing field. Used in\n * two places, hence the local function.\n * @private\n */\nfunction zoomFromBounds(b, playingField) {\n const { width, height } = playingField, scaleToField = Math.max((b.x2 - b.x1) / (width / tileSize), (b.y2 - b.y1) / (height / tileSize));\n return Math.log(worldSize / scaleToField) / Math.log(2);\n}\n/**\n * Calculate and set the recommended map view drilldown or drillup if mapData\n * is set for the series.\n * @private\n */\nfunction recommendedMapViewAfterDrill(e) {\n if (e.seriesOptions.mapData) {\n this.mapView?.recommendMapView(this, [\n this.options.chart.map,\n e.seriesOptions.mapData\n ], this.options.drilldown?.mapZooming);\n }\n}\n/*\nConst mergeCollections = <\n T extends Array\n>(a: T, b: T): T => {\n b.forEach((newer, i): void => {\n // Only merge by id supported for now. We may consider later to support\n // more complex rules like those of `Chart.update` with `oneToOne`, but\n // it is probably not needed. Existing insets can be disabled by\n // overwriting the `geoBounds` with empty data.\n if (newer && isString(newer.id)) {\n const older = U.find(\n a,\n (aItem): boolean => (aItem && aItem.id) === newer.id\n );\n if (older) {\n const aIndex = a.indexOf(older);\n a[aIndex] = merge(older, newer);\n }\n }\n });\n return a;\n};\n*/\n/* *\n *\n * Classes\n *\n * */\n/**\n * The map view handles zooming and centering on the map, and various\n * client-side projection capabilities.\n *\n * On a chart instance of `MapChart`, the map view is available as `chart.mapView`.\n *\n * @class\n * @name Highcharts.MapView\n *\n * @param {Highcharts.MapChart} chart\n * The MapChart instance\n * @param {Highcharts.MapViewOptions} options\n * MapView options\n */\nclass MapView {\n /* *\n *\n * Static Functions\n *\n * */\n static compose(MapChartClass) {\n if (MapView_pushUnique(MapView_composed, 'MapView')) {\n maps = MapChartClass.maps;\n // Initialize MapView after initialization, but before firstRender\n MapView_addEvent(MapChartClass, 'afterInit', function () {\n /**\n * The map view handles zooming and centering on the map, and\n * various client-side projection capabilities.\n *\n * @name Highcharts.MapChart#mapView\n * @type {Highcharts.MapView|undefined}\n */\n this.mapView = new MapView(this, this.options.mapView);\n }, { order: 0 });\n MapView_addEvent(MapChartClass, 'addSeriesAsDrilldown', recommendedMapViewAfterDrill);\n MapView_addEvent(MapChartClass, 'afterDrillUp', recommendedMapViewAfterDrill);\n }\n }\n /**\n * Return the composite bounding box of a collection of bounding boxes\n * @private\n */\n static compositeBounds(arrayOfBounds) {\n if (arrayOfBounds.length) {\n return arrayOfBounds\n .slice(1)\n .reduce((acc, cur) => {\n acc.x1 = Math.min(acc.x1, cur.x1);\n acc.y1 = Math.min(acc.y1, cur.y1);\n acc.x2 = Math.max(acc.x2, cur.x2);\n acc.y2 = Math.max(acc.y2, cur.y2);\n return acc;\n }, MapView_merge(arrayOfBounds[0]));\n }\n return;\n }\n /**\n * Merge two collections of insets by the id.\n * @private\n */\n static mergeInsets(a, b) {\n const toObject = (insets) => {\n const ob = {};\n insets.forEach((inset, i) => {\n ob[inset && inset.id || `i${i}`] = inset;\n });\n return ob;\n };\n const insetsObj = MapView_merge(toObject(a), toObject(b)), insets = Object\n .keys(insetsObj)\n .map((key) => insetsObj[key]);\n return insets;\n }\n /* *\n *\n * Constructor\n *\n * */\n constructor(chart, options) {\n /* *\n *\n * Properties\n *\n * */\n this.allowTransformAnimation = true;\n this.eventsToUnbind = [];\n this.insets = [];\n this.padding = [0, 0, 0, 0];\n this.recommendedMapView = {};\n if (!(this instanceof MapViewInset)) {\n this.recommendMapView(chart, [\n chart.options.chart.map,\n ...(chart.options.series || []).map((s) => s.mapData)\n ]);\n }\n this.userOptions = options || {};\n const o = MapView_merge(Maps_MapViewDefaults, this.recommendedMapView, options);\n // Merge the inset collections by id, or index if id missing\n const recInsets = this.recommendedMapView?.insets, optInsets = options && options.insets;\n if (recInsets && optInsets) {\n o.insets = MapView.mergeInsets(recInsets, optInsets);\n }\n this.chart = chart;\n /**\n * The current center of the view in terms of `[longitude, latitude]`.\n * @name Highcharts.MapView#center\n * @readonly\n * @type {LonLatArray}\n */\n this.center = o.center;\n this.options = o;\n this.projection = new Maps_Projection(o.projection);\n // Initialize with full plot box so we don't have to check for undefined\n // every time we use it\n this.playingField = chart.plotBox;\n /**\n * The current zoom level of the view.\n * @name Highcharts.MapView#zoom\n * @readonly\n * @type {number}\n */\n this.zoom = o.zoom || 0;\n this.minZoom = o.minZoom;\n // Create the insets\n this.createInsets();\n // Initialize and respond to chart size changes\n this.eventsToUnbind.push(MapView_addEvent(chart, 'afterSetChartSize', () => {\n this.playingField = this.getField();\n if (this.minZoom === void 0 || // When initializing the chart\n this.minZoom === this.zoom // When resizing the chart\n ) {\n this.fitToBounds(void 0, void 0, false);\n if (\n // Set zoom only when initializing the chart\n // (do not overwrite when zooming in/out, #17082)\n !this.chart.hasRendered &&\n MapView_isNumber(this.userOptions.zoom)) {\n this.zoom = this.userOptions.zoom;\n }\n if (this.userOptions.center) {\n MapView_merge(true, this.center, this.userOptions.center);\n }\n }\n }));\n this.setUpEvents();\n }\n /* *\n *\n * Functions\n *\n * */\n /**\n * Create MapViewInset instances from insets options\n * @private\n */\n createInsets() {\n const options = this.options, insets = options.insets;\n if (insets) {\n insets.forEach((item) => {\n const inset = new MapViewInset(this, MapView_merge(options.insetOptions, item));\n this.insets.push(inset);\n });\n }\n }\n /**\n * Fit the view to given bounds\n *\n * @function Highcharts.MapView#fitToBounds\n * @param {Object} bounds\n * Bounds in terms of projected units given as `{ x1, y1, x2, y2 }`.\n * If not set, fit to the bounds of the current data set\n * @param {number|string} [padding=0]\n * Padding inside the bounds. A number signifies pixels, while a\n * percentage string (like `5%`) can be used as a fraction of the\n * plot area size.\n * @param {boolean} [redraw=true]\n * Whether to redraw the chart immediately\n * @param {boolean|Partial} [animation]\n * What animation to use for redraw\n */\n fitToBounds(bounds, padding, redraw = true, animation) {\n const b = bounds || this.getProjectedBounds();\n if (b) {\n const pad = MapView_pick(padding, bounds ? 0 : this.options.padding), fullField = this.getField(false), padArr = MapView_isArray(pad) ? pad : [pad, pad, pad, pad];\n this.padding = [\n MapView_relativeLength(padArr[0], fullField.height),\n MapView_relativeLength(padArr[1], fullField.width),\n MapView_relativeLength(padArr[2], fullField.height),\n MapView_relativeLength(padArr[3], fullField.width)\n ];\n // Apply the playing field, corrected with padding\n this.playingField = this.getField();\n const zoom = zoomFromBounds(b, this.playingField);\n // Reset minZoom when fitting to natural bounds\n if (!bounds) {\n this.minZoom = zoom;\n }\n const center = this.projection.inverse([\n (b.x2 + b.x1) / 2,\n (b.y2 + b.y1) / 2\n ]);\n this.setView(center, zoom, redraw, animation);\n }\n }\n getField(padded = true) {\n const padding = padded ? this.padding : [0, 0, 0, 0];\n return {\n x: padding[3],\n y: padding[0],\n width: this.chart.plotWidth - padding[1] - padding[3],\n height: this.chart.plotHeight - padding[0] - padding[2]\n };\n }\n getGeoMap(map) {\n if (isString(map)) {\n if (maps[map] && maps[map].type === 'Topology') {\n return topo2geo(maps[map]);\n }\n return maps[map];\n }\n if (isObject(map, true)) {\n if (map.type === 'FeatureCollection') {\n return map;\n }\n if (map.type === 'Topology') {\n return topo2geo(map);\n }\n }\n }\n getMapBBox() {\n const bounds = this.getProjectedBounds(), scale = this.getScale();\n if (bounds) {\n const padding = this.padding, p1 = this.projectedUnitsToPixels({\n x: bounds.x1,\n y: bounds.y2\n }), width = ((bounds.x2 - bounds.x1) * scale +\n padding[1] + padding[3]), height = ((bounds.y2 - bounds.y1) * scale +\n padding[0] + padding[2]);\n return {\n width,\n height,\n x: p1.x - padding[3],\n y: p1.y - padding[0]\n };\n }\n }\n getProjectedBounds() {\n const projection = this.projection;\n const allBounds = this.chart.series.reduce((acc, s) => {\n const bounds = s.getProjectedBounds && s.getProjectedBounds();\n if (bounds &&\n s.options.affectsMapView !== false) {\n acc.push(bounds);\n }\n return acc;\n }, []);\n // The bounds option\n const fitToGeometry = this.options.fitToGeometry;\n if (fitToGeometry) {\n if (!this.fitToGeometryCache) {\n if (fitToGeometry.type === 'MultiPoint') {\n const positions = fitToGeometry.coordinates\n .map((lonLat) => projection.forward(lonLat)), xs = positions.map((pos) => pos[0]), ys = positions.map((pos) => pos[1]);\n this.fitToGeometryCache = {\n x1: Math.min.apply(0, xs),\n x2: Math.max.apply(0, xs),\n y1: Math.min.apply(0, ys),\n y2: Math.max.apply(0, ys)\n };\n }\n else {\n this.fitToGeometryCache = MapView_boundsFromPath(projection.path(fitToGeometry));\n }\n }\n return this.fitToGeometryCache;\n }\n return this.projection.bounds || MapView.compositeBounds(allBounds);\n }\n getScale() {\n // A zoom of 0 means the world (360x360 degrees) fits in a 256x256 px\n // tile\n return (tileSize / worldSize) * Math.pow(2, this.zoom);\n }\n // Calculate the SVG transform to be applied to series groups\n getSVGTransform() {\n const { x, y, width, height } = this.playingField, projectedCenter = this.projection.forward(this.center), flipFactor = this.projection.hasCoordinates ? -1 : 1, scaleX = this.getScale(), scaleY = scaleX * flipFactor, translateX = x + width / 2 - projectedCenter[0] * scaleX, translateY = y + height / 2 - projectedCenter[1] * scaleY;\n return { scaleX, scaleY, translateX, translateY };\n }\n /**\n * Convert map coordinates in longitude/latitude to pixels\n *\n * @function Highcharts.MapView#lonLatToPixels\n * @since 10.0.0\n * @param {Highcharts.MapLonLatObject} lonLat\n * The map coordinates\n * @return {Highcharts.PositionObject|undefined}\n * The pixel position\n */\n lonLatToPixels(lonLat) {\n const pos = this.lonLatToProjectedUnits(lonLat);\n if (pos) {\n return this.projectedUnitsToPixels(pos);\n }\n }\n /**\n * Get projected units from longitude/latitude. Insets are accounted for.\n * Returns an object with x and y values corresponding to positions on the\n * projected plane.\n *\n * @requires modules/map\n *\n * @function Highcharts.MapView#lonLatToProjectedUnits\n *\n * @since 10.0.0\n * @sample maps/series/latlon-to-point/ Find a point from lon/lat\n *\n * @param {Highcharts.MapLonLatObject} lonLat Coordinates.\n *\n * @return {Highcharts.ProjectedXY} X and Y coordinates in terms of\n * projected values\n */\n lonLatToProjectedUnits(lonLat) {\n const chart = this.chart, mapTransforms = chart.mapTransforms;\n // Legacy, built-in transforms\n if (mapTransforms) {\n for (const transform in mapTransforms) {\n if (Object.hasOwnProperty.call(mapTransforms, transform) &&\n mapTransforms[transform].hitZone) {\n const coords = chart.transformFromLatLon(lonLat, mapTransforms[transform]);\n if (coords && pointInPolygon(coords, mapTransforms[transform].hitZone.coordinates[0])) {\n return coords;\n }\n }\n }\n return chart.transformFromLatLon(lonLat, mapTransforms['default'] // eslint-disable-line dot-notation\n );\n }\n // Handle insets\n for (const inset of this.insets) {\n if (inset.options.geoBounds &&\n pointInPolygon({ x: lonLat.lon, y: lonLat.lat }, inset.options.geoBounds.coordinates[0])) {\n const insetProjectedPoint = inset.projection.forward([lonLat.lon, lonLat.lat]), pxPoint = inset.projectedUnitsToPixels({ x: insetProjectedPoint[0], y: insetProjectedPoint[1] });\n return this.pixelsToProjectedUnits(pxPoint);\n }\n }\n const point = this.projection.forward([lonLat.lon, lonLat.lat]);\n if (!point.outside) {\n return { x: point[0], y: point[1] };\n }\n }\n /**\n * Calculate longitude/latitude values for a point or position. Returns an\n * object with the numeric properties `lon` and `lat`.\n *\n * @requires modules/map\n *\n * @function Highcharts.MapView#projectedUnitsToLonLat\n *\n * @since 10.0.0\n *\n * @sample maps/demo/latlon-advanced/ Advanced lat/lon demo\n *\n * @param {Highcharts.Point|Highcharts.ProjectedXY} point\n * A `Point` instance or anything containing `x` and `y` properties\n * with numeric values.\n *\n * @return {Highcharts.MapLonLatObject|undefined} An object with `lat` and\n * `lon` properties.\n */\n projectedUnitsToLonLat(point) {\n const chart = this.chart, mapTransforms = chart.mapTransforms;\n // Legacy, built-in transforms\n if (mapTransforms) {\n for (const transform in mapTransforms) {\n if (Object.hasOwnProperty.call(mapTransforms, transform) &&\n mapTransforms[transform].hitZone &&\n pointInPolygon(point, mapTransforms[transform].hitZone.coordinates[0])) {\n return chart.transformToLatLon(point, mapTransforms[transform]);\n }\n }\n return chart.transformToLatLon(point, mapTransforms['default'] // eslint-disable-line dot-notation\n );\n }\n const pxPoint = this.projectedUnitsToPixels(point);\n for (const inset of this.insets) {\n if (inset.hitZone &&\n pointInPolygon(pxPoint, inset.hitZone.coordinates[0])) {\n const insetProjectedPoint = inset\n .pixelsToProjectedUnits(pxPoint), coordinates = inset.projection.inverse([insetProjectedPoint.x, insetProjectedPoint.y]);\n return { lon: coordinates[0], lat: coordinates[1] };\n }\n }\n const coordinates = this.projection.inverse([point.x, point.y]);\n return { lon: coordinates[0], lat: coordinates[1] };\n }\n /**\n * Calculate and set the recommended map view based on provided map data\n * from series.\n *\n * @requires modules/map\n *\n * @function Highcharts.MapView#recommendMapView\n *\n * @since 11.4.0\n *\n * @param {Highcharts.Chart} chart\n * Chart object\n *\n * @param {Array} mapDataArray\n * Array of map data from all series.\n *\n * @param {boolean} [update=false]\n * Whether to update the chart with recommended map view.\n *\n * @return {Highcharts.MapViewOptions|undefined} Best suitable map view.\n */\n recommendMapView(chart, mapDataArray, update = false) {\n // Reset recommended map view\n this.recommendedMapView = {};\n // Handle the global map and series-level mapData\n const geoMaps = mapDataArray.map((mapData) => this.getGeoMap(mapData));\n const allGeoBounds = [];\n geoMaps.forEach((geoMap) => {\n if (geoMap) {\n // Use the first geo map as main\n if (!Object.keys(this.recommendedMapView).length) {\n this.recommendedMapView =\n geoMap['hc-recommended-mapview'] || {};\n }\n // Combine the bounding boxes of all loaded maps\n if (geoMap.bbox) {\n const [x1, y1, x2, y2] = geoMap.bbox;\n allGeoBounds.push({ x1, y1, x2, y2 });\n }\n }\n });\n // Get the composite bounds\n const geoBounds = (allGeoBounds.length &&\n MapView.compositeBounds(allGeoBounds));\n // Provide a best-guess recommended projection if not set in\n // the map or in user options\n MapView_fireEvent(this, 'onRecommendMapView', {\n geoBounds,\n chart\n }, function () {\n if (geoBounds &&\n this.recommendedMapView) {\n if (!this.recommendedMapView.projection) {\n const { x1, y1, x2, y2 } = geoBounds;\n this.recommendedMapView.projection =\n (x2 - x1 > 180 && y2 - y1 > 90) ?\n // Wide angle, go for the world view\n {\n name: 'EqualEarth',\n parallels: [0, 0],\n rotation: [0]\n } :\n // Narrower angle, use a projection better\n // suited for local view\n {\n name: 'LambertConformalConic',\n parallels: [y1, y2],\n rotation: [-(x1 + x2) / 2]\n };\n }\n if (!this.recommendedMapView.insets) {\n this.recommendedMapView.insets = void 0; // Reset insets\n }\n }\n });\n // Register the main geo map (from options.chart.map) if set\n this.geoMap = geoMaps[0];\n if (update &&\n chart.hasRendered &&\n !chart.userOptions.mapView?.projection &&\n this.recommendedMapView) {\n this.update(this.recommendedMapView);\n }\n }\n redraw(animation) {\n this.chart.series.forEach((s) => {\n if (s.useMapGeometry) {\n s.isDirty = true;\n }\n });\n this.chart.redraw(animation);\n }\n /**\n * Set the view to given center and zoom values.\n * @function Highcharts.MapView#setView\n * @param {Highcharts.LonLatArray|undefined} center\n * The center point\n * @param {number} zoom\n * The zoom level\n * @param {boolean} [redraw=true]\n * Whether to redraw immediately\n * @param {boolean|Partial} [animation]\n * Animation options for the redraw\n *\n * @sample maps/mapview/setview\n * Set the view programmatically\n */\n setView(center, zoom, redraw = true, animation) {\n if (center) {\n this.center = center;\n }\n if (typeof zoom === 'number') {\n if (typeof this.minZoom === 'number') {\n zoom = Math.max(zoom, this.minZoom);\n }\n if (typeof this.options.maxZoom === 'number') {\n zoom = Math.min(zoom, this.options.maxZoom);\n }\n // Use isNumber to prevent Infinity (#17205)\n if (MapView_isNumber(zoom)) {\n this.zoom = zoom;\n }\n }\n const bounds = this.getProjectedBounds();\n if (bounds) {\n const projectedCenter = this.projection.forward(this.center), { x, y, width, height } = this.playingField, scale = this.getScale(), bottomLeft = this.projectedUnitsToPixels({\n x: bounds.x1,\n y: bounds.y1\n }), topRight = this.projectedUnitsToPixels({\n x: bounds.x2,\n y: bounds.y2\n }), boundsCenterProjected = [\n (bounds.x1 + bounds.x2) / 2,\n (bounds.y1 + bounds.y2) / 2\n ], isDrilling = this.chart.series.some((series) => series.isDrilling);\n if (!isDrilling) {\n // Constrain to data bounds\n // Pixel coordinate system is reversed vs projected\n const x1 = bottomLeft.x, y1 = topRight.y, x2 = topRight.x, y2 = bottomLeft.y;\n // Map smaller than plot area, center it\n if (x2 - x1 < width) {\n projectedCenter[0] = boundsCenterProjected[0];\n // Off west\n }\n else if (x1 < x && x2 < x + width) {\n // Adjust eastwards\n projectedCenter[0] +=\n Math.max(x1 - x, x2 - width - x) / scale;\n // Off east\n }\n else if (x2 > x + width && x1 > x) {\n // Adjust westwards\n projectedCenter[0] +=\n Math.min(x2 - width - x, x1 - x) / scale;\n }\n // Map smaller than plot area, center it\n if (y2 - y1 < height) {\n projectedCenter[1] = boundsCenterProjected[1];\n // Off north\n }\n else if (y1 < y && y2 < y + height) {\n // Adjust southwards\n projectedCenter[1] -=\n Math.max(y1 - y, y2 - height - y) / scale;\n // Off south\n }\n else if (y2 > y + height && y1 > y) {\n // Adjust northwards\n projectedCenter[1] -=\n Math.min(y2 - height - y, y1 - y) / scale;\n }\n this.center = this.projection.inverse(projectedCenter);\n }\n this.insets.forEach((inset) => {\n if (inset.options.field) {\n inset.hitZone = inset.getHitZone();\n inset.playingField = inset.getField();\n }\n });\n this.render();\n }\n MapView_fireEvent(this, 'afterSetView');\n if (redraw) {\n this.redraw(animation);\n }\n }\n /**\n * Convert projected units to pixel position\n *\n * @function Highcharts.MapView#projectedUnitsToPixels\n * @param {Highcharts.PositionObject} pos\n * The position in projected units\n * @return {Highcharts.PositionObject} The position in pixels\n */\n projectedUnitsToPixels(pos) {\n const scale = this.getScale(), projectedCenter = this.projection.forward(this.center), field = this.playingField, centerPxX = field.x + field.width / 2, centerPxY = field.y + field.height / 2;\n const x = centerPxX - scale * (projectedCenter[0] - pos.x);\n const y = centerPxY + scale * (projectedCenter[1] - pos.y);\n return { x, y };\n }\n /**\n * Convert pixel position to longitude and latitude.\n *\n * @function Highcharts.MapView#pixelsToLonLat\n * @since 10.0.0\n * @param {Highcharts.PositionObject} pos\n * The position in pixels\n * @return {Highcharts.MapLonLatObject|undefined}\n * The map coordinates\n */\n pixelsToLonLat(pos) {\n return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(pos));\n }\n /**\n * Convert pixel position to projected units\n *\n * @function Highcharts.MapView#pixelsToProjectedUnits\n * @param {Highcharts.PositionObject} pos\n * The position in pixels\n * @return {Highcharts.PositionObject} The position in projected units\n */\n pixelsToProjectedUnits(pos) {\n const { x, y } = pos, scale = this.getScale(), projectedCenter = this.projection.forward(this.center), field = this.playingField, centerPxX = field.x + field.width / 2, centerPxY = field.y + field.height / 2;\n const projectedX = projectedCenter[0] + (x - centerPxX) / scale;\n const projectedY = projectedCenter[1] - (y - centerPxY) / scale;\n return { x: projectedX, y: projectedY };\n }\n setUpEvents() {\n const { chart } = this;\n // Set up panning and touch zoom for maps. In orthographic projections\n // the globe will rotate, otherwise adjust the map center and zoom.\n let mouseDownCenterProjected, mouseDownKey, mouseDownRotation;\n const onPan = (e) => {\n const { lastTouches, pinchDown } = chart.pointer, projection = this.projection, touches = e.touches;\n let { mouseDownX, mouseDownY } = chart, howMuch = 0;\n if (pinchDown?.length === 1) {\n mouseDownX = pinchDown[0].chartX;\n mouseDownY = pinchDown[0].chartY;\n }\n else if (pinchDown?.length === 2) {\n mouseDownX = (pinchDown[0].chartX + pinchDown[1].chartX) / 2;\n mouseDownY = (pinchDown[0].chartY + pinchDown[1].chartY) / 2;\n }\n // How much has the distance between the fingers changed?\n if (touches?.length === 2 && lastTouches) {\n const startDistance = Math.sqrt(Math.pow(lastTouches[0].chartX - lastTouches[1].chartX, 2) +\n Math.pow(lastTouches[0].chartY - lastTouches[1].chartY, 2)), endDistance = Math.sqrt(Math.pow(touches[0].chartX - touches[1].chartX, 2) +\n Math.pow(touches[0].chartY - touches[1].chartY, 2));\n howMuch = Math.log(startDistance / endDistance) / Math.log(0.5);\n }\n if (MapView_isNumber(mouseDownX) && MapView_isNumber(mouseDownY)) {\n const key = `${mouseDownX},${mouseDownY}`;\n let { chartX, chartY } = e.originalEvent;\n if (touches?.length === 2) {\n chartX = (touches[0].chartX + touches[1].chartX) / 2;\n chartY = (touches[0].chartY + touches[1].chartY) / 2;\n }\n // Reset starting position\n if (key !== mouseDownKey) {\n mouseDownKey = key;\n mouseDownCenterProjected = this.projection\n .forward(this.center);\n mouseDownRotation = (this.projection.options.rotation || [0, 0]).slice();\n }\n // Get the natural zoom level of the projection itself when\n // zoomed to view the full world\n const worldBounds = projection.def && projection.def.bounds, worldZoom = (worldBounds &&\n zoomFromBounds(worldBounds, this.playingField)) || -Infinity;\n // Panning rotates the globe\n if (projection.options.name === 'Orthographic' &&\n (touches?.length || 0) < 2 &&\n // ... but don't rotate if we're loading only a part of the\n // world\n (this.minZoom || Infinity) < worldZoom * 1.3) {\n // Empirical ratio where the globe rotates roughly the same\n // speed as moving the pointer across the center of the\n // projection\n const ratio = 440 / (this.getScale() * Math.min(chart.plotWidth, chart.plotHeight));\n if (mouseDownRotation) {\n const lon = (mouseDownX - chartX) * ratio -\n mouseDownRotation[0], lat = MapView_clamp(-mouseDownRotation[1] -\n (mouseDownY - chartY) * ratio, -80, 80), zoom = this.zoom;\n this.update({\n projection: {\n rotation: [-lon, -lat]\n }\n }, false);\n this.fitToBounds(void 0, void 0, false);\n this.zoom = zoom;\n chart.redraw(false);\n }\n // #17925 Skip NaN values\n }\n else if (MapView_isNumber(chartX) && MapView_isNumber(chartY)) {\n // #17238\n const scale = this.getScale(), flipFactor = this.projection.hasCoordinates ? 1 : -1;\n const newCenter = this.projection.inverse([\n mouseDownCenterProjected[0] +\n (mouseDownX - chartX) / scale,\n mouseDownCenterProjected[1] -\n (mouseDownY - chartY) / scale * flipFactor\n ]);\n // #19190 Skip NaN coords\n if (!isNaN(newCenter[0] + newCenter[1])) {\n this.zoomBy(howMuch, newCenter, void 0, false);\n }\n }\n e.preventDefault();\n }\n };\n MapView_addEvent(chart, 'pan', onPan);\n MapView_addEvent(chart, 'touchpan', onPan);\n // Perform the map zoom by selection\n MapView_addEvent(chart, 'selection', (evt) => {\n // Zoom in\n if (!evt.resetSelection) {\n const x = evt.x - chart.plotLeft;\n const y = evt.y - chart.plotTop;\n const { y: y1, x: x1 } = this.pixelsToProjectedUnits({ x, y });\n const { y: y2, x: x2 } = this.pixelsToProjectedUnits({ x: x + evt.width, y: y + evt.height });\n this.fitToBounds({ x1, y1, x2, y2 }, void 0, true, evt.originalEvent.touches ?\n // On touch zoom, don't animate, since we're already in\n // transformed zoom preview\n false :\n // On mouse zoom, obey the chart-level animation\n void 0);\n // Only for mouse. Touch users can pinch out.\n if (!/^touch/.test((evt.originalEvent.type))) {\n chart.showResetZoom();\n }\n evt.preventDefault();\n // Reset zoom\n }\n else {\n this.zoomBy();\n }\n });\n }\n render() {\n // We need a group for the insets\n if (!this.group) {\n this.group = this.chart.renderer.g('map-view')\n .attr({ zIndex: 4 })\n .add();\n }\n }\n /**\n * Update the view with given options\n *\n * @function Highcharts.MapView#update\n *\n * @param {Partial} options\n * The new map view options to apply\n * @param {boolean} [redraw=true]\n * Whether to redraw immediately\n * @param {boolean|Partial} [animation]\n * The animation to apply to a the redraw\n */\n update(options, redraw = true, animation) {\n const newProjection = options.projection, isDirtyProjection = newProjection && ((Maps_Projection.toString(newProjection) !==\n Maps_Projection.toString(this.options.projection)));\n let isDirtyInsets = false;\n MapView_merge(true, this.userOptions, options);\n MapView_merge(true, this.options, options);\n // If anything changed with the insets, destroy them all and create\n // again below\n if ('insets' in options) {\n this.insets.forEach((inset) => inset.destroy());\n this.insets.length = 0;\n isDirtyInsets = true;\n }\n if (isDirtyProjection || 'fitToGeometry' in options) {\n delete this.fitToGeometryCache;\n }\n if (isDirtyProjection || isDirtyInsets) {\n this.chart.series.forEach((series) => {\n const groups = series.transformGroups;\n if (series.clearBounds) {\n series.clearBounds();\n }\n series.isDirty = true;\n series.isDirtyData = true;\n // Destroy inset transform groups\n if (isDirtyInsets && groups) {\n while (groups.length > 1) {\n const group = groups.pop();\n if (group) {\n group.destroy();\n }\n }\n }\n });\n if (isDirtyProjection) {\n this.projection = new Maps_Projection(this.options.projection);\n }\n // Create new insets\n if (isDirtyInsets) {\n this.createInsets();\n }\n // Fit to natural bounds if center/zoom are not explicitly given\n if (!options.center &&\n // Do not fire fitToBounds if user don't want to set zoom\n Object.hasOwnProperty.call(options, 'zoom') &&\n !MapView_isNumber(options.zoom)) {\n this.fitToBounds(void 0, void 0, false);\n }\n }\n if (options.center || MapView_isNumber(options.zoom)) {\n this.setView(this.options.center, options.zoom, false);\n }\n else if ('fitToGeometry' in options) {\n this.fitToBounds(void 0, void 0, false);\n }\n if (redraw) {\n this.chart.redraw(animation);\n }\n }\n /**\n * Zoom the map view by a given number\n *\n * @function Highcharts.MapView#zoomBy\n *\n * @param {number|undefined} [howMuch]\n * The amount of zoom to apply. 1 zooms in on half the current view,\n * -1 zooms out. Pass `undefined` to zoom to the full bounds of the\n * map.\n * @param {Highcharts.LonLatArray} [coords]\n * Optional map coordinates to keep fixed\n * @param {Array} [chartCoords]\n * Optional chart coordinates to keep fixed, in pixels\n * @param {boolean|Partial} [animation]\n * The animation to apply to a the redraw\n */\n zoomBy(howMuch, coords, chartCoords, animation) {\n const chart = this.chart, projectedCenter = this.projection.forward(this.center);\n if (typeof howMuch === 'number') {\n const zoom = this.zoom + howMuch;\n let center, x, y;\n // Keep chartX and chartY stationary - convert to lat and lng\n if (chartCoords) {\n const [chartX, chartY] = chartCoords;\n const scale = this.getScale();\n const offsetX = chartX - chart.plotLeft - chart.plotWidth / 2;\n const offsetY = chartY - chart.plotTop - chart.plotHeight / 2;\n x = projectedCenter[0] + offsetX / scale;\n y = projectedCenter[1] + offsetY / scale;\n }\n // Keep lon and lat stationary by adjusting the center\n if (typeof x === 'number' && typeof y === 'number') {\n const scale = 1 - Math.pow(2, this.zoom) / Math.pow(2, zoom);\n const offsetX = projectedCenter[0] - x;\n const offsetY = projectedCenter[1] - y;\n projectedCenter[0] -= offsetX * scale;\n projectedCenter[1] += offsetY * scale;\n center = this.projection.inverse(projectedCenter);\n }\n this.setView(coords || center, zoom, void 0, animation);\n // Undefined howMuch => reset zoom\n }\n else {\n this.fitToBounds(void 0, void 0, void 0, animation);\n }\n }\n}\n// Putting this in the same file due to circular dependency with MapView\nclass MapViewInset extends MapView {\n /* *\n *\n * Constructor\n *\n * */\n constructor(mapView, options) {\n super(mapView.chart, options);\n this.id = options.id;\n this.mapView = mapView;\n this.options = MapView_merge({ center: [0, 0] }, mapView.options.insetOptions, options);\n this.allBounds = [];\n if (this.options.geoBounds) {\n // The path in projected units in the map view's main projection.\n // This is used for hit testing where the points should render.\n const path = mapView.projection.path(this.options.geoBounds);\n this.geoBoundsProjectedBox = MapView_boundsFromPath(path);\n this.geoBoundsProjectedPolygon = path.map((segment) => [\n segment[1] || 0,\n segment[2] || 0\n ]);\n }\n }\n /* *\n *\n * Functions\n *\n * */\n /**\n * Get the playing field in pixels\n * @private\n */\n getField(padded = true) {\n const hitZone = this.hitZone;\n if (hitZone) {\n const padding = padded ? this.padding : [0, 0, 0, 0], polygon = hitZone.coordinates[0], xs = polygon.map((xy) => xy[0]), ys = polygon.map((xy) => xy[1]), x = Math.min.apply(0, xs) + padding[3], x2 = Math.max.apply(0, xs) - padding[1], y = Math.min.apply(0, ys) + padding[0], y2 = Math.max.apply(0, ys) - padding[2];\n if (MapView_isNumber(x) && MapView_isNumber(y)) {\n return {\n x,\n y,\n width: x2 - x,\n height: y2 - y\n };\n }\n }\n // Fall back to plot area\n return super.getField.call(this, padded);\n }\n /**\n * Get the hit zone in pixels.\n * @private\n */\n getHitZone() {\n const { chart, mapView, options } = this, { coordinates } = options.field || {};\n if (coordinates) {\n let polygon = coordinates[0];\n if (options.units === 'percent') {\n const relativeTo = options.relativeTo === 'mapBoundingBox' &&\n mapView.getMapBBox() ||\n MapView_merge(chart.plotBox, { x: 0, y: 0 });\n polygon = polygon.map((xy) => [\n MapView_relativeLength(`${xy[0]}%`, relativeTo.width, relativeTo.x),\n MapView_relativeLength(`${xy[1]}%`, relativeTo.height, relativeTo.y)\n ]);\n }\n return {\n type: 'Polygon',\n coordinates: [polygon]\n };\n }\n }\n getProjectedBounds() {\n return MapView.compositeBounds(this.allBounds);\n }\n /**\n * Determine whether a point on the main projected plane is inside the\n * geoBounds of the inset.\n * @private\n */\n isInside(point) {\n const { geoBoundsProjectedBox, geoBoundsProjectedPolygon } = this;\n return Boolean(\n // First we do a pre-pass to check whether the test point is inside\n // the rectangular bounding box of the polygon. This is less\n // expensive and will rule out most cases.\n geoBoundsProjectedBox &&\n point.x >= geoBoundsProjectedBox.x1 &&\n point.x <= geoBoundsProjectedBox.x2 &&\n point.y >= geoBoundsProjectedBox.y1 &&\n point.y <= geoBoundsProjectedBox.y2 &&\n // Next, do the more expensive check whether the point is inside the\n // polygon itself.\n geoBoundsProjectedPolygon &&\n pointInPolygon(point, geoBoundsProjectedPolygon));\n }\n /**\n * Render the map view inset with the border path\n * @private\n */\n render() {\n const { chart, mapView, options } = this, borderPath = options.borderPath || options.field;\n if (borderPath && mapView.group) {\n let animate = true;\n if (!this.border) {\n this.border = chart.renderer\n .path()\n .addClass('highcharts-mapview-inset-border')\n .add(mapView.group);\n animate = false;\n }\n if (!chart.styledMode) {\n this.border.attr({\n stroke: options.borderColor,\n 'stroke-width': options.borderWidth\n });\n }\n const strokeWidth = this.border.strokeWidth(), field = (options.relativeTo === 'mapBoundingBox' &&\n mapView.getMapBBox()) || mapView.playingField;\n const d = (borderPath.coordinates || []).reduce((d, lineString) => lineString.reduce((d, point, i) => {\n let [x, y] = point;\n if (options.units === 'percent') {\n x = chart.plotLeft + MapView_relativeLength(`${x}%`, field.width, field.x);\n y = chart.plotTop + MapView_relativeLength(`${y}%`, field.height, field.y);\n }\n x = crisp(x, strokeWidth);\n y = crisp(y, strokeWidth);\n d.push(i === 0 ? ['M', x, y] : ['L', x, y]);\n return d;\n }, d), []);\n // Apply the border path\n this.border[animate ? 'animate' : 'attr']({ d });\n }\n }\n destroy() {\n if (this.border) {\n this.border = this.border.destroy();\n }\n this.eventsToUnbind.forEach((f) => f());\n }\n /**\n * No chart-level events for insets\n * @private\n */\n setUpEvents() { }\n}\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Maps_MapView = (MapView);\n\n;// ./code/es-modules/Series/Map/MapSeries.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { animObject, stop } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\n\n\nconst { noop } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\nconst { splitPath } = Chart_MapChart;\n\n\n\n\nconst { \n// Indirect dependency to keep product size low\ncolumn: ColumnSeries, scatter: ScatterSeries } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default()).seriesTypes;\n\nconst { extend: MapSeries_extend, find, fireEvent: MapSeries_fireEvent, getNestedProperty, isArray: MapSeries_isArray, defined: MapSeries_defined, isNumber: MapSeries_isNumber, isObject: MapSeries_isObject, merge: MapSeries_merge, objectEach: MapSeries_objectEach, pick: MapSeries_pick, splat: MapSeries_splat } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Class\n *\n * */\n/**\n * @private\n * @class\n * @name Highcharts.seriesTypes.map\n *\n * @augments Highcharts.Series\n */\nclass MapSeries extends ScatterSeries {\n constructor() {\n /* *\n *\n * Static Properties\n *\n * */\n super(...arguments);\n this.processedData = [];\n }\n /* *\n *\n * Functions\n *\n * */\n /**\n * The initial animation for the map series. By default, animation is\n * disabled.\n * @private\n */\n animate(init) {\n const { chart, group } = this, animation = animObject(this.options.animation);\n // Initialize the animation\n if (init) {\n // Scale down the group and place it in the center\n group.attr({\n translateX: chart.plotLeft + chart.plotWidth / 2,\n translateY: chart.plotTop + chart.plotHeight / 2,\n scaleX: 0.001, // #1499\n scaleY: 0.001\n });\n // Run the animation\n }\n else {\n group.animate({\n translateX: chart.plotLeft,\n translateY: chart.plotTop,\n scaleX: 1,\n scaleY: 1\n }, animation);\n }\n }\n clearBounds() {\n this.points.forEach((point) => {\n delete point.bounds;\n delete point.insetIndex;\n delete point.projectedPath;\n });\n delete this.bounds;\n }\n /**\n * Allow a quick redraw by just translating the area group. Used for zooming\n * and panning in capable browsers.\n * @private\n */\n doFullTranslate() {\n return Boolean(this.isDirtyData ||\n this.chart.isResizing ||\n !this.hasRendered);\n }\n /**\n * Draw the data labels. Special for maps is the time that the data labels\n * are drawn (after points), and the clipping of the dataLabelsGroup.\n * @private\n */\n drawMapDataLabels() {\n super.drawDataLabels();\n if (this.dataLabelsGroup) {\n this.dataLabelsGroup.clip(this.chart.clipRect);\n }\n }\n /**\n * Use the drawPoints method of column, that is able to handle simple\n * shapeArgs. Extend it by assigning the tooltip position.\n * @private\n */\n drawPoints() {\n const series = this, { chart, group, transformGroups = [] } = this, { mapView, renderer } = chart;\n if (!mapView) {\n return;\n }\n // Set groups that handle transform during zooming and panning in order\n // to preserve clipping on series.group\n this.transformGroups = transformGroups;\n if (!transformGroups[0]) {\n transformGroups[0] = renderer.g().add(group);\n }\n for (let i = 0, iEnd = mapView.insets.length; i < iEnd; ++i) {\n if (!transformGroups[i + 1]) {\n transformGroups.push(renderer.g().add(group));\n }\n }\n // Draw the shapes again\n if (this.doFullTranslate()) {\n // Individual point actions.\n this.points.forEach((point) => {\n const { graphic } = point;\n // Points should be added in the corresponding transform group\n point.group = transformGroups[typeof point.insetIndex === 'number' ?\n point.insetIndex + 1 :\n 0];\n // When the point has been moved between insets after\n // MapView.update\n if (graphic && graphic.parentGroup !== point.group) {\n graphic.add(point.group);\n }\n });\n // Draw the points\n ColumnSeries.prototype.drawPoints.apply(this);\n // Add class names\n this.points.forEach((point) => {\n const graphic = point.graphic;\n if (graphic) {\n const animate = graphic.animate;\n let className = '';\n if (point.name) {\n className +=\n 'highcharts-name-' +\n point.name.replace(/ /g, '-').toLowerCase();\n }\n if (point.properties && point.properties['hc-key']) {\n className +=\n ' highcharts-key-' +\n point.properties['hc-key'].toString().toLowerCase();\n }\n if (className) {\n graphic.addClass(className);\n }\n // In styled mode, apply point colors by CSS\n if (chart.styledMode) {\n graphic.css(this.pointAttribs(point, point.selected && 'select' || void 0));\n }\n // If the map point is not visible and is not null (e.g.\n // hidden by data classes), then the point should be\n // visible, but without value\n graphic.attr({\n visibility: (point.visible ||\n (!point.visible && !point.isNull)) ? 'inherit' : 'hidden'\n });\n graphic.animate = function (params, options, complete) {\n const animateIn = (MapSeries_isNumber(params['stroke-width']) &&\n !MapSeries_isNumber(graphic['stroke-width'])), animateOut = (MapSeries_isNumber(graphic['stroke-width']) &&\n !MapSeries_isNumber(params['stroke-width']));\n // When strokeWidth is animating\n if (animateIn || animateOut) {\n const strokeWidth = MapSeries_pick(series.getStrokeWidth(series.options), 1 // Styled mode\n ), inheritedStrokeWidth = (strokeWidth /\n (chart.mapView &&\n chart.mapView.getScale() ||\n 1));\n // For animating from undefined, .attr() reads the\n // property as the starting point\n if (animateIn) {\n graphic['stroke-width'] = inheritedStrokeWidth;\n }\n // For animating to undefined\n if (animateOut) {\n params['stroke-width'] = inheritedStrokeWidth;\n }\n }\n const ret = animate.call(graphic, params, options, animateOut ? function () {\n // Remove the attribute after finished animation\n graphic.element.removeAttribute('stroke-width');\n delete graphic['stroke-width'];\n // Proceed\n if (complete) {\n complete.apply(this, arguments);\n }\n } : complete);\n return ret;\n };\n }\n });\n }\n // Apply the SVG transform\n transformGroups.forEach((transformGroup, i) => {\n const view = i === 0 ? mapView : mapView.insets[i - 1], svgTransform = view.getSVGTransform(), strokeWidth = MapSeries_pick(this.getStrokeWidth(this.options), 1 // Styled mode\n );\n /*\n Animate or move to the new zoom level. In order to prevent\n flickering as the different transform components are set out of sync\n (#5991), we run a fake animator attribute and set scale and\n translation synchronously in the same step.\n\n A possible improvement to the API would be to handle this in the\n renderer or animation engine itself, to ensure that when we are\n animating multiple properties, we make sure that each step for each\n property is performed in the same step. Also, for symbols and for\n transform properties, it should induce a single updateTransform and\n symbolAttr call.\n */\n const scale = svgTransform.scaleX, flipFactor = svgTransform.scaleY > 0 ? 1 : -1;\n const animatePoints = (scale) => {\n (series.points || []).forEach((point) => {\n const graphic = point.graphic;\n let strokeWidth;\n if (graphic &&\n graphic['stroke-width'] &&\n (strokeWidth = this.getStrokeWidth(point.options))) {\n graphic.attr({\n 'stroke-width': strokeWidth / scale\n });\n }\n });\n };\n if (renderer.globalAnimation &&\n chart.hasRendered &&\n mapView.allowTransformAnimation) {\n const startTranslateX = Number(transformGroup.attr('translateX'));\n const startTranslateY = Number(transformGroup.attr('translateY'));\n const startScale = Number(transformGroup.attr('scaleX'));\n const step = (now, fx) => {\n const scaleStep = startScale +\n (scale - startScale) * fx.pos;\n transformGroup.attr({\n translateX: (startTranslateX + (svgTransform.translateX - startTranslateX) * fx.pos),\n translateY: (startTranslateY + (svgTransform.translateY - startTranslateY) * fx.pos),\n scaleX: scaleStep,\n scaleY: scaleStep * flipFactor,\n 'stroke-width': strokeWidth / scaleStep\n });\n animatePoints(scaleStep); // #18166\n };\n const animOptions = MapSeries_merge(animObject(renderer.globalAnimation)), userStep = animOptions.step;\n animOptions.step = function () {\n if (userStep) {\n userStep.apply(this, arguments);\n }\n step.apply(this, arguments);\n };\n transformGroup\n .attr({ animator: 0 })\n .animate({ animator: 1 }, animOptions, function () {\n if (typeof renderer.globalAnimation !== 'boolean' &&\n renderer.globalAnimation.complete) {\n // Fire complete only from this place\n renderer.globalAnimation.complete({\n applyDrilldown: true\n });\n }\n MapSeries_fireEvent(this, 'mapZoomComplete');\n }.bind(this));\n // When dragging or first rendering, animation is off\n }\n else {\n stop(transformGroup);\n transformGroup.attr(MapSeries_merge(svgTransform, { 'stroke-width': strokeWidth / scale }));\n animatePoints(scale); // #18166\n }\n });\n if (!this.isDrilling) {\n this.drawMapDataLabels();\n }\n }\n /**\n * Get the bounding box of all paths in the map combined.\n *\n */\n getProjectedBounds() {\n if (!this.bounds && this.chart.mapView) {\n const { insets, projection } = this.chart.mapView, allBounds = [];\n // Find the bounding box of each point\n (this.points || []).forEach((point) => {\n if (point.path || point.geometry) {\n // @todo Try to put these two conversions in\n // MapPoint.applyOptions\n if (typeof point.path === 'string') {\n point.path = splitPath(point.path);\n // Legacy one-dimensional array\n }\n else if (MapSeries_isArray(point.path) &&\n point.path[0] === 'M') {\n point.path = this.chart.renderer\n .pathToSegments(point.path);\n }\n // The first time a map point is used, analyze its box\n if (!point.bounds) {\n let bounds = point.getProjectedBounds(projection);\n if (bounds) {\n point.labelrank = MapSeries_pick(point.labelrank, \n // Bigger shape, higher rank\n ((bounds.x2 - bounds.x1) *\n (bounds.y2 - bounds.y1)));\n const { midX, midY } = bounds;\n if (insets && MapSeries_isNumber(midX) && MapSeries_isNumber(midY)) {\n const inset = find(insets, (inset) => inset.isInside({\n x: midX, y: midY\n }));\n if (inset) {\n // Project again, but with the inset\n // projection\n delete point.projectedPath;\n bounds = point.getProjectedBounds(inset.projection);\n if (bounds) {\n inset.allBounds.push(bounds);\n }\n point.insetIndex = insets.indexOf(inset);\n }\n }\n point.bounds = bounds;\n }\n }\n if (point.bounds && point.insetIndex === void 0) {\n allBounds.push(point.bounds);\n }\n }\n });\n this.bounds = Maps_MapView.compositeBounds(allBounds);\n }\n return this.bounds;\n }\n /**\n * Return the stroke-width either from a series options or point options\n * object. This function is used by both the map series where the\n * `borderWidth` sets the stroke-width, and the mapline series where the\n * `lineWidth` sets the stroke-width.\n * @private\n */\n getStrokeWidth(options) {\n const pointAttrToOptions = this.pointAttrToOptions;\n return options[pointAttrToOptions &&\n pointAttrToOptions['stroke-width'] || 'borderWidth'];\n }\n /**\n * Define hasData function for non-cartesian series. Returns true if the\n * series has points at all.\n * @private\n */\n hasData() {\n return !!this.dataTable.rowCount;\n }\n /**\n * Get presentational attributes. In the maps series this runs in both\n * styled and non-styled mode, because colors hold data when a colorAxis is\n * used.\n * @private\n */\n pointAttribs(point, state) {\n const { mapView, styledMode } = point.series.chart;\n const attr = styledMode ?\n this.colorAttribs(point) :\n ColumnSeries.prototype.pointAttribs.call(this, point, state);\n // Individual stroke width\n let pointStrokeWidth = this.getStrokeWidth(point.options);\n // Handle state specific border or line width\n if (state) {\n const stateOptions = MapSeries_merge(this.options.states &&\n this.options.states[state], point.options.states &&\n point.options.states[state] ||\n {}), stateStrokeWidth = this.getStrokeWidth(stateOptions);\n if (MapSeries_defined(stateStrokeWidth)) {\n pointStrokeWidth = stateStrokeWidth;\n }\n attr.stroke = stateOptions.borderColor ?? point.color;\n }\n if (pointStrokeWidth && mapView) {\n pointStrokeWidth /= mapView.getScale();\n }\n // In order for dash style to avoid being scaled, set the transformed\n // stroke width on the item\n const seriesStrokeWidth = this.getStrokeWidth(this.options);\n if (attr.dashstyle &&\n mapView &&\n MapSeries_isNumber(seriesStrokeWidth)) {\n pointStrokeWidth = seriesStrokeWidth / mapView.getScale();\n }\n // Invisible map points means that the data value is removed from the\n // map, but not the map area shape itself. Instead it is rendered like a\n // null point. To fully remove a map area, it should be removed from the\n // mapData.\n if (!point.visible) {\n attr.fill = this.options.nullColor;\n }\n if (MapSeries_defined(pointStrokeWidth)) {\n attr['stroke-width'] = pointStrokeWidth;\n }\n else {\n delete attr['stroke-width'];\n }\n attr['stroke-linecap'] = attr['stroke-linejoin'] = this.options.linecap;\n return attr;\n }\n updateData() {\n // #16782\n if (this.processedData) {\n return false;\n }\n return super.updateData.apply(this, arguments);\n }\n /**\n * Extend setData to call processData and generatePoints immediately.\n * @private\n */\n setData(data, redraw = true, animation, updatePoints) {\n delete this.bounds;\n super.setData(data, false, void 0, updatePoints);\n this.processData();\n this.generatePoints();\n if (redraw) {\n this.chart.redraw(animation);\n }\n }\n dataColumnKeys() {\n // No x data for maps\n return this.pointArrayMap;\n }\n /**\n * Extend processData to join in mapData. If the allAreas option is true,\n * all areas from the mapData are used, and those that don't correspond to a\n * data value are given null values. The results are stored in\n * `processedData` in order to avoid mutating `data`.\n * @private\n */\n processData() {\n const options = this.options, data = options.data, chart = this.chart, chartOptions = chart.options.chart, joinBy = this.joinBy, pointArrayMap = options.keys || this.pointArrayMap, dataUsed = [], mapMap = {}, mapView = this.chart.mapView, mapDataObject = mapView && (\n // Get map either from series or global\n MapSeries_isObject(options.mapData, true) ?\n mapView.getGeoMap(options.mapData) : mapView.geoMap), \n // Pick up transform definitions for chart\n mapTransforms = chart.mapTransforms =\n chartOptions.mapTransforms ||\n mapDataObject && mapDataObject['hc-transform'] ||\n chart.mapTransforms;\n let mapPoint, props;\n // Cache cos/sin of transform rotation angle\n if (mapTransforms) {\n MapSeries_objectEach(mapTransforms, (transform) => {\n if (transform.rotation) {\n transform.cosAngle = Math.cos(transform.rotation);\n transform.sinAngle = Math.sin(transform.rotation);\n }\n });\n }\n let mapData;\n if (MapSeries_isArray(options.mapData)) {\n mapData = options.mapData;\n }\n else if (mapDataObject && mapDataObject.type === 'FeatureCollection') {\n this.mapTitle = mapDataObject.title;\n mapData = highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default().geojson(mapDataObject, this.type, this);\n }\n // Reset processedData\n this.processedData = [];\n const processedData = this.processedData;\n // Pick up numeric values, add index. Convert Array point definitions to\n // objects using pointArrayMap.\n if (data) {\n let val;\n for (let i = 0, iEnd = data.length; i < iEnd; ++i) {\n val = data[i];\n if (MapSeries_isNumber(val)) {\n processedData[i] = {\n value: val\n };\n }\n else if (MapSeries_isArray(val)) {\n let ix = 0;\n processedData[i] = {};\n // Automatically copy first item to hc-key if there is\n // an extra leading string\n if (!options.keys &&\n val.length > pointArrayMap.length &&\n typeof val[0] === 'string') {\n processedData[i]['hc-key'] = val[0];\n ++ix;\n }\n // Run through pointArrayMap and what's left of the\n // point data array in parallel, copying over the values\n for (let j = 0; j < pointArrayMap.length; ++j, ++ix) {\n if (pointArrayMap[j] &&\n typeof val[ix] !== 'undefined') {\n if (pointArrayMap[j].indexOf('.') > 0) {\n Map_MapPoint.prototype.setNestedProperty(processedData[i], val[ix], pointArrayMap[j]);\n }\n else {\n processedData[i][pointArrayMap[j]] = val[ix];\n }\n }\n }\n }\n else {\n processedData[i] = data[i];\n }\n if (joinBy &&\n joinBy[0] === '_i') {\n processedData[i]._i = i;\n }\n }\n }\n if (mapData) {\n this.mapData = mapData;\n this.mapMap = {};\n for (let i = 0; i < mapData.length; i++) {\n mapPoint = mapData[i];\n props = mapPoint.properties;\n mapPoint._i = i;\n // Copy the property over to root for faster access\n if (joinBy[0] && props && props[joinBy[0]]) {\n mapPoint[joinBy[0]] = props[joinBy[0]];\n }\n mapMap[mapPoint[joinBy[0]]] = mapPoint;\n }\n this.mapMap = mapMap;\n // Registered the point codes that actually hold data\n if (joinBy[1]) {\n const joinKey = joinBy[1];\n processedData.forEach((pointOptions) => {\n const mapKey = getNestedProperty(joinKey, pointOptions);\n if (mapMap[mapKey]) {\n dataUsed.push(mapMap[mapKey]);\n }\n });\n }\n if (options.allAreas) {\n // Register the point codes that actually hold data\n if (joinBy[1]) {\n const joinKey = joinBy[1];\n processedData.forEach((pointOptions) => {\n dataUsed.push(getNestedProperty(joinKey, pointOptions));\n });\n }\n // Add those map points that don't correspond to data, which\n // will be drawn as null points. Searching a string is faster\n // than Array.indexOf\n const dataUsedString = ('|' +\n dataUsed\n .map(function (point) {\n return point && point[joinBy[0]];\n })\n .join('|') +\n '|');\n mapData.forEach((mapPoint) => {\n if (!joinBy[0] ||\n dataUsedString.indexOf('|' +\n mapPoint[joinBy[0]] +\n '|') === -1) {\n processedData.push(MapSeries_merge(mapPoint, { value: null }));\n }\n });\n }\n }\n // The processedXData array is used by general chart logic for checking\n // data length in various scanarios.\n this.dataTable.rowCount = processedData.length;\n return void 0;\n }\n /**\n * Extend setOptions by picking up the joinBy option and applying it to a\n * series property.\n * @private\n */\n setOptions(itemOptions) {\n const options = super.setOptions(itemOptions);\n let joinBy = options.joinBy;\n if (options.joinBy === null) {\n joinBy = '_i';\n }\n if (joinBy) {\n this.joinBy = MapSeries_splat(joinBy);\n if (!this.joinBy[1]) {\n this.joinBy[1] = this.joinBy[0];\n }\n }\n return options;\n }\n /**\n * Add the path option for data points. Find the max value for color\n * calculation.\n * @private\n */\n translate() {\n const series = this, doFullTranslate = series.doFullTranslate(), mapView = this.chart.mapView, projection = mapView && mapView.projection;\n // Recalculate box on updated data\n if (this.chart.hasRendered && (this.isDirtyData || !this.hasRendered)) {\n this.processData();\n this.generatePoints();\n delete this.bounds;\n if (mapView &&\n !mapView.userOptions.center &&\n !MapSeries_isNumber(mapView.userOptions.zoom) &&\n mapView.zoom === mapView.minZoom // #18542 don't zoom out if\n // map is zoomed\n ) {\n // Not only recalculate bounds but also fit view\n mapView.fitToBounds(void 0, void 0, false); // #17012\n }\n else {\n // If center and zoom is defined in user options, get bounds but\n // don't change view\n this.getProjectedBounds();\n }\n }\n if (mapView) {\n const mainSvgTransform = mapView.getSVGTransform();\n series.points.forEach((point) => {\n const svgTransform = (MapSeries_isNumber(point.insetIndex) &&\n mapView.insets[point.insetIndex].getSVGTransform()) || mainSvgTransform;\n // Record the middle point (loosely based on centroid),\n // determined by the middleX and middleY options.\n if (svgTransform &&\n point.bounds &&\n MapSeries_isNumber(point.bounds.midX) &&\n MapSeries_isNumber(point.bounds.midY)) {\n point.plotX = point.bounds.midX * svgTransform.scaleX +\n svgTransform.translateX;\n point.plotY = point.bounds.midY * svgTransform.scaleY +\n svgTransform.translateY;\n }\n if (doFullTranslate) {\n point.shapeType = 'path';\n point.shapeArgs = {\n d: Map_MapPoint.getProjectedPath(point, projection)\n };\n }\n if (!point.hiddenInDataClass) { // #20441\n if (point.projectedPath && !point.projectedPath.length) {\n point.setVisible(false);\n }\n else if (!point.visible) {\n point.setVisible(true);\n }\n }\n });\n }\n MapSeries_fireEvent(series, 'afterTranslate');\n }\n update(options) {\n // Calculate and set the recommended map view after every series update\n // if new mapData is set\n if (options.mapData) {\n this.chart.mapView?.recommendMapView(this.chart, [\n this.chart.options.chart.map,\n ...(this.chart.options.series || []).map((s, i) => {\n if (i === this._i) {\n return options.mapData;\n }\n return s.mapData;\n })\n ], true);\n }\n super.update.apply(this, arguments);\n }\n}\nMapSeries.defaultOptions = MapSeries_merge(ScatterSeries.defaultOptions, Map_MapSeriesDefaults);\nMapSeries_extend(MapSeries.prototype, {\n type: 'map',\n axisTypes: Series_ColorMapComposition.seriesMembers.axisTypes,\n colorAttribs: Series_ColorMapComposition.seriesMembers.colorAttribs,\n colorKey: Series_ColorMapComposition.seriesMembers.colorKey,\n // When tooltip is not shared, this series (and derivatives) requires\n // direct touch/hover. KD-tree does not apply.\n directTouch: true,\n // We need the points' bounding boxes in order to draw the data labels,\n // so we skip it now and call it from drawPoints instead.\n drawDataLabels: noop,\n // No graph for the map series\n drawGraph: noop,\n forceDL: true,\n getCenter: Series_CenteredUtilities.getCenter,\n getExtremesFromAll: true,\n getSymbol: noop,\n isCartesian: false,\n parallelArrays: Series_ColorMapComposition.seriesMembers.parallelArrays,\n pointArrayMap: Series_ColorMapComposition.seriesMembers.pointArrayMap,\n pointClass: Map_MapPoint,\n // X axis and Y axis must have same translation slope\n preserveAspectRatio: true,\n searchPoint: noop,\n trackerGroups: Series_ColorMapComposition.seriesMembers.trackerGroups,\n // Get axis extremes from paths, not values\n useMapGeometry: true\n});\nSeries_ColorMapComposition.compose(MapSeries);\nhighcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default().registerSeriesType('map', MapSeries);\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Map_MapSeries = (MapSeries);\n\n;// ./code/es-modules/Series/MapLine/MapLineSeriesDefaults.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * API Options\n *\n * */\n/**\n * A mapline series is a special case of the map series where the value\n * colors are applied to the strokes rather than the fills. It can also be\n * used for freeform drawing, like dividers, in the map.\n *\n * @sample maps/demo/mapline-mappoint/\n * Mapline and map-point chart\n * @sample maps/demo/animated-mapline/\n * Mapline with CSS keyframe animation\n * @sample maps/demo/flight-routes\n * Flight routes\n *\n * @extends plotOptions.map\n * @excluding dragDrop\n * @product highmaps\n * @optionparent plotOptions.mapline\n */\nconst MapLineSeriesDefaults = {\n /**\n * Pixel width of the mapline line.\n *\n * @type {number}\n * @since 10.3.3\n * @product highmaps\n * @default 1\n * @apioption plotOptions.mapline.lineWidth\n */\n lineWidth: 1,\n /**\n * Fill color for the map line shapes\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n fillColor: 'none',\n legendSymbol: 'lineMarker'\n};\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const MapLine_MapLineSeriesDefaults = (MapLineSeriesDefaults);\n/**\n * A `mapline` series. If the [type](#series.mapline.type) option is\n * not specified, it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.mapline\n * @excluding dataParser, dataURL, dragDrop, marker\n * @product highmaps\n * @apioption series.mapline\n */\n/**\n * An array of data points for the series. For the `mapline` series type,\n * points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values\n * will be interpreted as `value` options. Example:\n *\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond\n * to `[hc-key, value]`. Example:\n *\n * ```js\n * data: [\n * ['us-ny', 0],\n * ['us-mi', 5],\n * ['us-tx', 3],\n * ['us-ak', 5]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of data\n * points exceeds the series' [turboThreshold](#series.map.turboThreshold),\n * this option is not available.\n *\n * ```js\n * data: [{\n * value: 6,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * value: 6,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @type {Array|null|*>}\n * @extends series.map.data\n * @excluding drilldown\n * @product highmaps\n * @apioption series.mapline.data\n */\n/**\n * Pixel width of the mapline line.\n *\n * @type {number}\n * @since 10.2.0\n * @product highmaps\n * @apioption plotOptions.mapline.states.hover.lineWidth\n */\n/**\n * Pixel width of the mapline line.\n *\n * @type {number|undefined}\n * @since 10.3.3\n * @product highmaps\n * @apioption series.mapline.data.lineWidth\n */\n/**\n *\n * @type {number}\n * @product highmaps\n * @excluding borderWidth\n * @apioption plotOptions.mapline.states.hover\n */\n(''); // Keeps doclets above in JS file\n\n;// ./code/es-modules/Series/MapLine/MapLineSeries.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\n\n\n\nconst { extend: MapLineSeries_extend, merge: MapLineSeries_merge } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Class\n *\n * */\n/**\n * @private\n * @class\n * @name Highcharts.seriesTypes.mapline\n *\n * @augments Highcharts.Series\n */\nclass MapLineSeries extends Map_MapSeries {\n /* *\n *\n * Functions\n *\n * */\n /**\n * Get presentational attributes\n * @private\n * @function Highcharts.seriesTypes.mapline#pointAttribs\n */\n pointAttribs(point, state) {\n const attr = super.pointAttribs(point, state);\n // The difference from a map series is that the stroke takes the\n // point color\n attr.fill = this.options.fillColor;\n return attr;\n }\n}\n/* *\n *\n * Static Properties\n *\n * */\nMapLineSeries.defaultOptions = MapLineSeries_merge(Map_MapSeries.defaultOptions, MapLine_MapLineSeriesDefaults);\nMapLineSeries_extend(MapLineSeries.prototype, {\n type: 'mapline',\n colorProp: 'stroke',\n pointAttrToOptions: {\n 'stroke': 'color',\n 'stroke-width': 'lineWidth'\n }\n});\nhighcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default().registerSeriesType('mapline', MapLineSeries);\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const MapLine_MapLineSeries = ((/* unused pure expression or super */ null && (MapLineSeries)));\n\n;// ./code/es-modules/Series/MapPoint/MapPointPoint.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { scatter: MapPointPoint_ScatterSeries } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default()).seriesTypes;\n\nconst { isNumber: MapPointPoint_isNumber } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Class\n *\n * */\nclass MapPointPoint extends MapPointPoint_ScatterSeries.prototype.pointClass {\n /* *\n *\n * Functions\n *\n * */\n isValid() {\n return Boolean(this.options.geometry ||\n (MapPointPoint_isNumber(this.x) && MapPointPoint_isNumber(this.y)) ||\n (MapPointPoint_isNumber(this.options.lon) && MapPointPoint_isNumber(this.options.lat)));\n }\n}\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const MapPoint_MapPointPoint = (MapPointPoint);\n\n;// ./code/es-modules/Series/MapPoint/MapPointSeriesDefaults.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * API Options\n *\n * */\n/**\n * A mappoint series is a special form of scatter series where the points\n * can be laid out in map coordinates on top of a map.\n *\n * @sample maps/demo/mapline-mappoint/\n * Map-line and map-point series.\n * @sample maps/demo/mappoint-mapmarker\n * Using the mapmarker symbol for points\n * @sample maps/demo/mappoint-datalabels-mapmarker\n * Using the mapmarker shape for data labels\n *\n * @extends plotOptions.scatter\n * @product highmaps\n * @optionparent plotOptions.mappoint\n */\nconst MapPointSeriesDefaults = {\n dataLabels: {\n crop: false,\n defer: false,\n enabled: true,\n formatter: function () {\n return this.point.name;\n },\n overflow: false,\n style: {\n /** @internal */\n color: \"#000000\" /* Palette.neutralColor100 */\n }\n },\n legendSymbol: 'lineMarker'\n};\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const MapPoint_MapPointSeriesDefaults = (MapPointSeriesDefaults);\n/* *\n *\n * API Options\n *\n * */\n/**\n * A `mappoint` series. If the [type](#series.mappoint.type) option\n * is not specified, it is inherited from [chart.type](#chart.type).\n *\n *\n * @extends series,plotOptions.mappoint\n * @excluding dataParser, dataURL\n * @product highmaps\n * @apioption series.mappoint\n */\n/**\n * An array of data points for the series. For the `mappoint` series\n * type, points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values will be\n * interpreted as `y` options. The `x` values will be automatically\n * calculated, either starting at 0 and incremented by 1, or from\n * `pointStart` and `pointInterval` given in the series options. If the axis\n * has categories, these will be used. Example:\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of arrays with 2 values. In this case, the values correspond\n * to `[hc-key, value]`. Example:\n *\n * ```js\n * data: [\n * ['us-ny', 0],\n * ['us-mi', 5],\n * ['us-tx', 3],\n * ['us-ak', 5]\n * ]\n * ```\n *\n * 3. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.mappoint.turboThreshold),\n * this option is not available.\n * ```js\n * data: [{\n * x: 1,\n * y: 7,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 4,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @type {Array|null|*>}\n * @extends series.map.data\n * @excluding labelrank, middleX, middleY, path, value\n * @product highmaps\n * @apioption series.mappoint.data\n */\n/**\n * The geometry of a point.\n *\n * To achieve a better separation between the structure and the data,\n * it is recommended to use `mapData` to define the geometry instead\n * of defining it on the data points themselves.\n *\n * The geometry object is compatible to that of a `feature` in geoJSON, so\n * features of geoJSON can be passed directly into the `data`, optionally\n * after first filtering and processing it.\n *\n * @sample maps/series/mappoint-line-geometry/\n * Map point and line geometry\n *\n * @type {Object}\n * @since 9.3.0\n * @product highmaps\n * @apioption series.mappoint.data.geometry\n */\n/**\n * The geometry type, which in case of the `mappoint` series is always `Point`.\n *\n * @type {string}\n * @since 9.3.0\n * @product highmaps\n * @validvalue [\"Point\"]\n * @apioption series.mappoint.data.geometry.type\n */\n/**\n * The geometry coordinates in terms of `[longitude, latitude]`.\n *\n * @type {Highcharts.LonLatArray}\n * @since 9.3.0\n * @product highmaps\n * @apioption series.mappoint.data.geometry.coordinates\n */\n/**\n * The latitude of the point. Must be combined with the `lon` option\n * to work. Overrides `x` and `y` values.\n *\n * @sample {highmaps} maps/demo/mappoint-latlon/\n * Point position by lat/lon\n *\n * @type {number}\n * @since 1.1.0\n * @product highmaps\n * @apioption series.mappoint.data.lat\n */\n/**\n * The longitude of the point. Must be combined with the `lon` option\n * to work. Overrides `x` and `y` values.\n *\n * @sample {highmaps} maps/demo/mappoint-latlon/\n * Point position by lat/lon\n *\n * @type {number}\n * @since 1.1.0\n * @product highmaps\n * @apioption series.mappoint.data.lon\n */\n/**\n * The x coordinate of the point in terms of projected units.\n *\n * @sample {highmaps} maps/series/mapline-mappoint-path-xy/\n * Map point demo\n *\n * @type {number}\n * @product highmaps\n * @apioption series.mappoint.data.x\n */\n/**\n * The x coordinate of the point in terms of projected units.\n *\n * @sample {highmaps} maps/series/mapline-mappoint-path-xy/\n * Map point demo\n *\n * @type {number|null}\n * @product highmaps\n * @apioption series.mappoint.data.y\n */\n/**\n * @type {number}\n * @product highmaps\n * @excluding borderColor, borderWidth\n * @apioption plotOptions.mappoint\n */\n(''); // Keeps doclets above in JS file\n\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"Series\",\"types\",\"scatter\"],\"commonjs\":[\"highcharts\",\"Series\",\"types\",\"scatter\"],\"commonjs2\":[\"highcharts\",\"Series\",\"types\",\"scatter\"],\"root\":[\"Highcharts\",\"Series\",\"types\",\"scatter\"]}\nvar highcharts_Series_types_scatter_commonjs_highcharts_Series_types_scatter_commonjs2_highcharts_Series_types_scatter_root_Highcharts_Series_types_scatter_ = __webpack_require__(632);\n;// ./code/es-modules/Series/MapPoint/MapPointSeries.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { noop: MapPointSeries_noop } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\n\n\nconst { map: MapPointSeries_MapSeries, scatter: MapPointSeries_ScatterSeries } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default()).seriesTypes;\n\n\nconst { extend: MapPointSeries_extend, fireEvent: MapPointSeries_fireEvent, isNumber: MapPointSeries_isNumber, merge: MapPointSeries_merge } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\n\n/* *\n *\n * Class\n *\n * */\n/**\n * @private\n * @class\n * @name Highcharts.seriesTypes.mappoint\n *\n * @augments Highcharts.Series\n */\nclass MapPointSeries extends MapPointSeries_ScatterSeries {\n constructor() {\n /* *\n *\n * Static Properties\n *\n * */\n super(...arguments);\n this.clearBounds = MapPointSeries_MapSeries.prototype.clearBounds;\n /* eslint-enable valid-jsdoc */\n }\n /* *\n *\n * Functions\n *\n * */\n /* eslint-disable valid-jsdoc */\n drawDataLabels() {\n super.drawDataLabels();\n if (this.dataLabelsGroup) {\n this.dataLabelsGroup.clip(this.chart.clipRect);\n }\n }\n /**\n * Resolve `lon`, `lat` or `geometry` options and project the resulted\n * coordinates.\n *\n * @private\n */\n projectPoint(pointOptions) {\n const mapView = this.chart.mapView;\n if (mapView) {\n const { geometry, lon, lat } = pointOptions;\n let coordinates = (geometry &&\n geometry.type === 'Point' &&\n geometry.coordinates);\n if (MapPointSeries_isNumber(lon) && MapPointSeries_isNumber(lat)) {\n coordinates = [lon, lat];\n }\n if (coordinates) {\n return mapView.lonLatToProjectedUnits({\n lon: coordinates[0],\n lat: coordinates[1]\n });\n }\n }\n }\n translate() {\n const mapView = this.chart.mapView;\n this.generatePoints();\n if (this.getProjectedBounds && this.isDirtyData) {\n delete this.bounds;\n this.getProjectedBounds(); // Added point needs bounds(#16598)\n }\n // Create map based translation\n if (mapView) {\n const mainSvgTransform = mapView.getSVGTransform(), { hasCoordinates } = mapView.projection;\n this.points.forEach((p) => {\n let { x = void 0, y = void 0 } = p;\n const svgTransform = (MapPointSeries_isNumber(p.insetIndex) &&\n mapView.insets[p.insetIndex].getSVGTransform()) || mainSvgTransform;\n const xy = (this.projectPoint(p.options) ||\n (p.properties &&\n this.projectPoint(p.properties)));\n let didBounds;\n if (xy) {\n x = xy.x;\n y = xy.y;\n // Map bubbles getting geometry from shape\n }\n else if (p.bounds) {\n x = p.bounds.midX;\n y = p.bounds.midY;\n if (svgTransform && MapPointSeries_isNumber(x) && MapPointSeries_isNumber(y)) {\n p.plotX = x * svgTransform.scaleX +\n svgTransform.translateX;\n p.plotY = y * svgTransform.scaleY +\n svgTransform.translateY;\n didBounds = true;\n }\n }\n if (MapPointSeries_isNumber(x) && MapPointSeries_isNumber(y)) {\n // Establish plotX and plotY\n if (!didBounds) {\n const plotCoords = mapView.projectedUnitsToPixels({ x, y });\n p.plotX = plotCoords.x;\n p.plotY = hasCoordinates ?\n plotCoords.y :\n this.chart.plotHeight - plotCoords.y;\n }\n }\n else {\n p.y = p.plotX = p.plotY = void 0;\n }\n p.isInside = this.isPointInside(p);\n // Find point zone\n p.zone = this.zones.length ? p.getZone() : void 0;\n });\n }\n MapPointSeries_fireEvent(this, 'afterTranslate');\n }\n}\nMapPointSeries.defaultOptions = MapPointSeries_merge(MapPointSeries_ScatterSeries.defaultOptions, MapPoint_MapPointSeriesDefaults);\n/* *\n *\n * Extra\n *\n * */\n/* *\n * The mapmarker symbol\n */\nconst mapmarker = (x, y, w, h, options) => {\n const isLegendSymbol = options && options.context === 'legend';\n let anchorX, anchorY;\n if (isLegendSymbol) {\n anchorX = x + w / 2;\n anchorY = y + h;\n // Put the pin in the anchor position (dataLabel.shape)\n }\n else if (options &&\n typeof options.anchorX === 'number' &&\n typeof options.anchorY === 'number') {\n anchorX = options.anchorX;\n anchorY = options.anchorY;\n // Put the pin in the center and shift upwards (point.marker.symbol)\n }\n else {\n anchorX = x + w / 2;\n anchorY = y + h / 2;\n y -= h;\n }\n const r = isLegendSymbol ? h / 3 : h / 2;\n return [\n ['M', anchorX, anchorY],\n ['C', anchorX, anchorY, anchorX - r, y + r * 1.5, anchorX - r, y + r],\n // A rx ry x-axis-rotation large-arc-flag sweep-flag x y\n ['A', r, r, 1, 1, 1, anchorX + r, y + r],\n ['C', anchorX + r, y + r * 1.5, anchorX, anchorY, anchorX, anchorY],\n ['Z']\n ];\n};\n(highcharts_SVGRenderer_commonjs_highcharts_SVGRenderer_commonjs2_highcharts_SVGRenderer_root_Highcharts_SVGRenderer_default()).prototype.symbols.mapmarker = mapmarker;\nMapPointSeries_extend(MapPointSeries.prototype, {\n type: 'mappoint',\n axisTypes: ['colorAxis'],\n forceDL: true,\n isCartesian: false,\n pointClass: MapPoint_MapPointPoint,\n searchPoint: MapPointSeries_noop,\n useMapGeometry: true // #16534\n});\nhighcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default().registerSeriesType('mappoint', MapPointSeries);\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const MapPoint_MapPointSeries = ((/* unused pure expression or super */ null && (MapPointSeries)));\n/* *\n *\n * API Options\n *\n * */\n''; // Adds doclets above to transpiled file\n\n;// ./code/es-modules/Series/Bubble/BubbleLegendDefaults.js\n/* *\n *\n * (c) 2010-2024 Highsoft AS\n *\n * Author: Paweł Potaczek\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * Constants\n *\n * */\n/**\n * The bubble legend is an additional element in legend which\n * presents the scale of the bubble series. Individual bubble ranges\n * can be defined by user or calculated from series. In the case of\n * automatically calculated ranges, a 1px margin of error is\n * permitted.\n *\n * @since 7.0.0\n * @product highcharts highstock highmaps\n * @requires highcharts-more\n * @optionparent legend.bubbleLegend\n */\nconst BubbleLegendDefaults = {\n /**\n * The color of the ranges borders, can be also defined for an\n * individual range.\n *\n * @sample highcharts/bubble-legend/similartoseries/\n * Similar look to the bubble series\n * @sample highcharts/bubble-legend/bordercolor/\n * Individual bubble border color\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n borderColor: void 0,\n /**\n * The width of the ranges borders in pixels, can be also\n * defined for an individual range.\n */\n borderWidth: 2,\n /**\n * An additional class name to apply to the bubble legend'\n * circle graphical elements. This option does not replace\n * default class names of the graphical element.\n *\n * @sample {highcharts} highcharts/css/bubble-legend/\n * Styling by CSS\n *\n * @type {string}\n */\n className: void 0,\n /**\n * The main color of the bubble legend. Applies to ranges, if\n * individual color is not defined.\n *\n * @sample highcharts/bubble-legend/similartoseries/\n * Similar look to the bubble series\n * @sample highcharts/bubble-legend/color/\n * Individual bubble color\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n color: void 0,\n /**\n * An additional class name to apply to the bubble legend's\n * connector graphical elements. This option does not replace\n * default class names of the graphical element.\n *\n * @sample {highcharts} highcharts/css/bubble-legend/\n * Styling by CSS\n *\n * @type {string}\n */\n connectorClassName: void 0,\n /**\n * The color of the connector, can be also defined\n * for an individual range.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n connectorColor: void 0,\n /**\n * The length of the connectors in pixels. If labels are\n * centered, the distance is reduced to 0.\n *\n * @sample highcharts/bubble-legend/connectorandlabels/\n * Increased connector length\n */\n connectorDistance: 60,\n /**\n * The width of the connectors in pixels.\n *\n * @sample highcharts/bubble-legend/connectorandlabels/\n * Increased connector width\n */\n connectorWidth: 1,\n /**\n * Enable or disable the bubble legend.\n */\n enabled: false,\n /**\n * Options for the bubble legend labels.\n */\n labels: {\n /**\n * An additional class name to apply to the bubble legend\n * label graphical elements. This option does not replace\n * default class names of the graphical element.\n *\n * @sample {highcharts} highcharts/css/bubble-legend/\n * Styling by CSS\n *\n * @type {string}\n */\n className: void 0,\n /**\n * Whether to allow data labels to overlap.\n */\n allowOverlap: false,\n /**\n * A format string for the bubble legend labels. Available\n * variables are the same as for `formatter`.\n *\n * @sample highcharts/bubble-legend/format/\n * Add a unit\n *\n * @type {string}\n */\n format: '',\n /**\n * Available `this` properties are:\n *\n * - `this.value`: The bubble value.\n *\n * - `this.radius`: The radius of the bubble range.\n *\n * - `this.center`: The center y position of the range.\n *\n * @type {Highcharts.FormatterCallbackFunction}\n */\n formatter: void 0,\n /**\n * The alignment of the labels compared to the bubble\n * legend. Can be one of `left`, `center` or `right`.\n *\n * @sample highcharts/bubble-legend/connectorandlabels/\n * Labels on left\n *\n * @type {Highcharts.AlignValue}\n */\n align: 'right',\n /**\n * CSS styles for the labels.\n *\n * @type {Highcharts.CSSObject}\n */\n style: {\n /** @ignore-option */\n fontSize: '0.9em',\n /** @ignore-option */\n color: \"#000000\" /* Palette.neutralColor100 */\n },\n /**\n * The x position offset of the label relative to the\n * connector.\n */\n x: 0,\n /**\n * The y position offset of the label relative to the\n * connector.\n */\n y: 0\n },\n /**\n * Maximum bubble legend range size. If values for ranges are\n * not specified, the `minSize` and the `maxSize` are calculated\n * from bubble series.\n */\n maxSize: 60, // Number\n /**\n * Minimum bubble legend range size. If values for ranges are\n * not specified, the `minSize` and the `maxSize` are calculated\n * from bubble series.\n */\n minSize: 10, // Number\n /**\n * The position of the bubble legend in the legend.\n * @sample highcharts/bubble-legend/connectorandlabels/\n * Bubble legend as last item in legend\n */\n legendIndex: 0, // Number\n /**\n * Options for specific range. One range consists of bubble,\n * label and connector.\n *\n * @sample highcharts/bubble-legend/ranges/\n * Manually defined ranges\n * @sample highcharts/bubble-legend/autoranges/\n * Auto calculated ranges\n *\n * @type {Array<*>}\n */\n ranges: {\n /**\n * Range size value, similar to bubble Z data.\n * @type {number}\n */\n value: void 0,\n /**\n * The color of the border for individual range.\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n borderColor: void 0,\n /**\n * The color of the bubble for individual range.\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n color: void 0,\n /**\n * The color of the connector for individual range.\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n connectorColor: void 0\n },\n /**\n * Whether the bubble legend range value should be represented\n * by the area or the width of the bubble. The default, area,\n * corresponds best to the human perception of the size of each\n * bubble.\n *\n * @sample highcharts/bubble-legend/ranges/\n * Size by width\n *\n * @type {Highcharts.BubbleSizeByValue}\n */\n sizeBy: 'area',\n /**\n * When this is true, the absolute value of z determines the\n * size of the bubble. This means that with the default\n * zThreshold of 0, a bubble of value -1 will have the same size\n * as a bubble of value 1, while a bubble of value 0 will have a\n * smaller size according to minSize.\n */\n sizeByAbsoluteValue: false,\n /**\n * Define the visual z index of the bubble legend.\n */\n zIndex: 1,\n /**\n * Ranges with lower value than zThreshold are skipped.\n */\n zThreshold: 0\n};\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Bubble_BubbleLegendDefaults = (BubbleLegendDefaults);\n\n;// ./code/es-modules/Series/Bubble/BubbleLegendItem.js\n/* *\n *\n * (c) 2010-2024 Highsoft AS\n *\n * Author: Paweł Potaczek\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { parse: BubbleLegendItem_color } = (highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_default());\n\n\nconst { noop: BubbleLegendItem_noop } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\nconst { arrayMax, arrayMin, isNumber: BubbleLegendItem_isNumber, merge: BubbleLegendItem_merge, pick: BubbleLegendItem_pick, stableSort } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Class\n *\n * */\n/**\n * BubbleLegend class.\n *\n * @private\n * @class\n * @name Highcharts.BubbleLegend\n * @param {Highcharts.LegendBubbleLegendOptions} options\n * Options of BubbleLegendItem.\n *\n * @param {Highcharts.Legend} legend\n * Legend of item.\n */\nclass BubbleLegendItem {\n /* *\n *\n * Constructor\n *\n * */\n constructor(options, legend) {\n this.setState = BubbleLegendItem_noop;\n this.init(options, legend);\n }\n /* *\n *\n * Functions\n *\n * */\n /**\n * Create basic bubbleLegend properties similar to item in legend.\n * @private\n */\n init(options, legend) {\n this.options = options;\n this.visible = true;\n this.chart = legend.chart;\n this.legend = legend;\n }\n /**\n * Depending on the position option, add bubbleLegend to legend items.\n *\n * @private\n *\n * @param {Array<(Highcharts.Point|Highcharts.Series)>} items\n * All legend items\n */\n addToLegend(items) {\n // Insert bubbleLegend into legend items\n items.splice(this.options.legendIndex, 0, this);\n }\n /**\n * Calculate ranges, sizes and call the next steps of bubbleLegend\n * creation.\n *\n * @private\n *\n * @param {Highcharts.Legend} legend\n * Legend instance\n */\n drawLegendSymbol(legend) {\n const itemDistance = BubbleLegendItem_pick(legend.options.itemDistance, 20), legendItem = this.legendItem || {}, options = this.options, ranges = options.ranges, connectorDistance = options.connectorDistance;\n let connectorSpace;\n // Do not create bubbleLegend now if ranges or ranges values are not\n // specified or if are empty array.\n if (!ranges || !ranges.length || !BubbleLegendItem_isNumber(ranges[0].value)) {\n legend.options.bubbleLegend.autoRanges = true;\n return;\n }\n // Sort ranges to right render order\n stableSort(ranges, function (a, b) {\n return b.value - a.value;\n });\n this.ranges = ranges;\n this.setOptions();\n this.render();\n // Get max label size\n const maxLabel = this.getMaxLabelSize(), radius = this.ranges[0].radius, size = radius * 2;\n // Space for connectors and labels.\n connectorSpace =\n connectorDistance - radius + maxLabel.width;\n connectorSpace = connectorSpace > 0 ? connectorSpace : 0;\n this.maxLabel = maxLabel;\n this.movementX = options.labels.align === 'left' ?\n connectorSpace : 0;\n legendItem.labelWidth = size + connectorSpace + itemDistance;\n legendItem.labelHeight = size + maxLabel.height / 2;\n }\n /**\n * Set style options for each bubbleLegend range.\n * @private\n */\n setOptions() {\n const ranges = this.ranges, options = this.options, series = this.chart.series[options.seriesIndex], baseline = this.legend.baseline, bubbleAttribs = {\n zIndex: options.zIndex,\n 'stroke-width': options.borderWidth\n }, connectorAttribs = {\n zIndex: options.zIndex,\n 'stroke-width': options.connectorWidth\n }, labelAttribs = {\n align: (this.legend.options.rtl ||\n options.labels.align === 'left') ? 'right' : 'left',\n zIndex: options.zIndex\n }, fillOpacity = series.options.marker.fillOpacity, styledMode = this.chart.styledMode;\n // Allow to parts of styles be used individually for range\n ranges.forEach(function (range, i) {\n if (!styledMode) {\n bubbleAttribs.stroke = BubbleLegendItem_pick(range.borderColor, options.borderColor, series.color);\n bubbleAttribs.fill = BubbleLegendItem_pick(range.color, options.color, fillOpacity !== 1 ?\n BubbleLegendItem_color(series.color).setOpacity(fillOpacity)\n .get('rgba') :\n series.color);\n connectorAttribs.stroke = BubbleLegendItem_pick(range.connectorColor, options.connectorColor, series.color);\n }\n // Set options needed for rendering each range\n ranges[i].radius = this.getRangeRadius(range.value);\n ranges[i] = BubbleLegendItem_merge(ranges[i], {\n center: (ranges[0].radius - ranges[i].radius +\n baseline)\n });\n if (!styledMode) {\n BubbleLegendItem_merge(true, ranges[i], {\n bubbleAttribs: BubbleLegendItem_merge(bubbleAttribs),\n connectorAttribs: BubbleLegendItem_merge(connectorAttribs),\n labelAttribs: labelAttribs\n });\n }\n }, this);\n }\n /**\n * Calculate radius for each bubble range,\n * used code from BubbleSeries.js 'getRadius' method.\n *\n * @private\n *\n * @param {number} value\n * Range value\n *\n * @return {number|null}\n * Radius for one range\n */\n getRangeRadius(value) {\n const options = this.options, seriesIndex = this.options.seriesIndex, bubbleSeries = this.chart.series[seriesIndex], zMax = options.ranges[0].value, zMin = options.ranges[options.ranges.length - 1].value, minSize = options.minSize, maxSize = options.maxSize;\n return bubbleSeries.getRadius.call(this, zMin, zMax, minSize, maxSize, value);\n }\n /**\n * Render the legendItem group.\n * @private\n */\n render() {\n const legendItem = this.legendItem || {}, renderer = this.chart.renderer, zThreshold = this.options.zThreshold;\n if (!this.symbols) {\n this.symbols = {\n connectors: [],\n bubbleItems: [],\n labels: []\n };\n }\n // Nesting SVG groups to enable handleOverflow\n legendItem.symbol = renderer.g('bubble-legend');\n legendItem.label = renderer.g('bubble-legend-item')\n .css(this.legend.itemStyle || {});\n // To enable default 'hideOverlappingLabels' method\n legendItem.symbol.translateX = 0;\n legendItem.symbol.translateY = 0;\n // To use handleOverflow method\n legendItem.symbol.add(legendItem.label);\n legendItem.label.add(legendItem.group);\n for (const range of this.ranges) {\n if (range.value >= zThreshold) {\n this.renderRange(range);\n }\n }\n this.hideOverlappingLabels();\n }\n /**\n * Render one range, consisting of bubble symbol, connector and label.\n *\n * @private\n *\n * @param {Highcharts.LegendBubbleLegendRangesOptions} range\n * Range options\n */\n renderRange(range) {\n const mainRange = this.ranges[0], legend = this.legend, options = this.options, labelsOptions = options.labels, chart = this.chart, bubbleSeries = chart.series[options.seriesIndex], renderer = chart.renderer, symbols = this.symbols, labels = symbols.labels, elementCenter = range.center, absoluteRadius = Math.abs(range.radius), connectorDistance = options.connectorDistance || 0, labelsAlign = labelsOptions.align, rtl = legend.options.rtl, borderWidth = options.borderWidth, connectorWidth = options.connectorWidth, posX = mainRange.radius || 0, posY = elementCenter - absoluteRadius -\n borderWidth / 2 + connectorWidth / 2, crispMovement = (posY % 1 ? 1 : 0.5) -\n (connectorWidth % 2 ? 0 : 0.5), styledMode = renderer.styledMode;\n let connectorLength = rtl || labelsAlign === 'left' ?\n -connectorDistance : connectorDistance;\n // Set options for centered labels\n if (labelsAlign === 'center') {\n connectorLength = 0; // Do not use connector\n options.connectorDistance = 0;\n range.labelAttribs.align = 'center';\n }\n // Render bubble symbol\n symbols.bubbleItems.push(renderer\n .circle(posX, elementCenter + crispMovement, absoluteRadius)\n .attr(styledMode ? {} : range.bubbleAttribs)\n .addClass((styledMode ?\n 'highcharts-color-' +\n bubbleSeries.colorIndex + ' ' :\n '') +\n 'highcharts-bubble-legend-symbol ' +\n (options.className || '')).add(this.legendItem.symbol));\n // Render connector\n symbols.connectors.push(renderer\n .path(renderer.crispLine([\n ['M', posX, posY],\n ['L', posX + connectorLength, posY]\n ], options.connectorWidth))\n .attr((styledMode ? {} : range.connectorAttribs))\n .addClass((styledMode ?\n 'highcharts-color-' +\n this.options.seriesIndex + ' ' : '') +\n 'highcharts-bubble-legend-connectors ' +\n (options.connectorClassName || '')).add(this.legendItem.symbol));\n // Render label\n const label = renderer\n .text(this.formatLabel(range))\n .attr((styledMode ? {} : range.labelAttribs))\n .css(styledMode ? {} : labelsOptions.style)\n .addClass('highcharts-bubble-legend-labels ' +\n (options.labels.className || '')).add(this.legendItem.symbol);\n // Now that the label is added we can read the bounding box and\n // vertically align\n const position = {\n x: posX + connectorLength + options.labels.x,\n y: posY + options.labels.y + label.getBBox().height * 0.4\n };\n label.attr(position);\n labels.push(label);\n // To enable default 'hideOverlappingLabels' method\n label.placed = true;\n label.alignAttr = position;\n }\n /**\n * Get the label which takes up the most space.\n * @private\n */\n getMaxLabelSize() {\n const labels = this.symbols.labels;\n let maxLabel, labelSize;\n labels.forEach(function (label) {\n labelSize = label.getBBox(true);\n if (maxLabel) {\n maxLabel = labelSize.width > maxLabel.width ?\n labelSize : maxLabel;\n }\n else {\n maxLabel = labelSize;\n }\n });\n return maxLabel || {};\n }\n /**\n * Get formatted label for range.\n *\n * @private\n *\n * @param {Highcharts.LegendBubbleLegendRangesOptions} range\n * Range options\n *\n * @return {string}\n * Range label text\n */\n formatLabel(range) {\n const options = this.options, formatter = options.labels.formatter, format = options.labels.format;\n const { numberFormatter } = this.chart;\n return format ? highcharts_Templating_commonjs_highcharts_Templating_commonjs2_highcharts_Templating_root_Highcharts_Templating_default().format(format, range, this.chart) :\n formatter ? formatter.call(range) :\n numberFormatter(range.value, 1);\n }\n /**\n * By using default chart 'hideOverlappingLabels' method, hide or show\n * labels and connectors.\n * @private\n */\n hideOverlappingLabels() {\n const chart = this.chart, allowOverlap = this.options.labels.allowOverlap, symbols = this.symbols;\n if (!allowOverlap && symbols) {\n chart.hideOverlappingLabels(symbols.labels);\n // Hide or show connectors\n symbols.labels.forEach(function (label, index) {\n if (!label.newOpacity) {\n symbols.connectors[index].hide();\n }\n else if (label.newOpacity !== label.oldOpacity) {\n symbols.connectors[index].show();\n }\n });\n }\n }\n /**\n * Calculate ranges from created series.\n *\n * @private\n *\n * @return {Array}\n * Array of range objects\n */\n getRanges() {\n const bubbleLegend = this.legend.bubbleLegend, series = bubbleLegend.chart.series, rangesOptions = bubbleLegend.options.ranges;\n let ranges, zData, minZ = Number.MAX_VALUE, maxZ = -Number.MAX_VALUE;\n series.forEach(function (s) {\n // Find the min and max Z, like in bubble series\n if (s.isBubble && !s.ignoreSeries) {\n zData = s.getColumn('z').filter(BubbleLegendItem_isNumber);\n if (zData.length) {\n minZ = BubbleLegendItem_pick(s.options.zMin, Math.min(minZ, Math.max(arrayMin(zData), s.options.displayNegative === false ?\n s.options.zThreshold :\n -Number.MAX_VALUE)));\n maxZ = BubbleLegendItem_pick(s.options.zMax, Math.max(maxZ, arrayMax(zData)));\n }\n }\n });\n // Set values for ranges\n if (minZ === maxZ) {\n // Only one range if min and max values are the same.\n ranges = [{ value: maxZ }];\n }\n else {\n ranges = [\n { value: minZ },\n { value: (minZ + maxZ) / 2 },\n { value: maxZ, autoRanges: true }\n ];\n }\n // Prevent reverse order of ranges after redraw\n if (rangesOptions.length && rangesOptions[0].radius) {\n ranges.reverse();\n }\n // Merge ranges values with user options\n ranges.forEach(function (range, i) {\n if (rangesOptions && rangesOptions[i]) {\n ranges[i] = BubbleLegendItem_merge(rangesOptions[i], range);\n }\n });\n return ranges;\n }\n /**\n * Calculate bubble legend sizes from rendered series.\n *\n * @private\n *\n * @return {Array}\n * Calculated min and max bubble sizes\n */\n predictBubbleSizes() {\n const chart = this.chart, legendOptions = chart.legend.options, floating = legendOptions.floating, horizontal = legendOptions.layout === 'horizontal', lastLineHeight = horizontal ? chart.legend.lastLineHeight : 0, plotSizeX = chart.plotSizeX, plotSizeY = chart.plotSizeY, bubbleSeries = chart.series[this.options.seriesIndex], pxSizes = bubbleSeries.getPxExtremes(), minSize = Math.ceil(pxSizes.minPxSize), maxPxSize = Math.ceil(pxSizes.maxPxSize), plotSize = Math.min(plotSizeY, plotSizeX);\n let calculatedSize, maxSize = bubbleSeries.options.maxSize;\n // Calculate predicted max size of bubble\n if (floating || !(/%$/.test(maxSize))) {\n calculatedSize = maxPxSize;\n }\n else {\n maxSize = parseFloat(maxSize);\n calculatedSize = ((plotSize + lastLineHeight) * maxSize / 100) /\n (maxSize / 100 + 1);\n // Get maxPxSize from bubble series if calculated bubble legend\n // size will not affect to bubbles series.\n if ((horizontal && plotSizeY - calculatedSize >=\n plotSizeX) || (!horizontal && plotSizeX -\n calculatedSize >= plotSizeY)) {\n calculatedSize = maxPxSize;\n }\n }\n return [minSize, Math.ceil(calculatedSize)];\n }\n /**\n * Correct ranges with calculated sizes.\n * @private\n */\n updateRanges(min, max) {\n const bubbleLegendOptions = this.legend.options.bubbleLegend;\n bubbleLegendOptions.minSize = min;\n bubbleLegendOptions.maxSize = max;\n bubbleLegendOptions.ranges = this.getRanges();\n }\n /**\n * Because of the possibility of creating another legend line, predicted\n * bubble legend sizes may differ by a few pixels, so it is necessary to\n * correct them.\n * @private\n */\n correctSizes() {\n const legend = this.legend, chart = this.chart, bubbleSeries = chart.series[this.options.seriesIndex], pxSizes = bubbleSeries.getPxExtremes(), bubbleSeriesSize = pxSizes.maxPxSize, bubbleLegendSize = this.options.maxSize;\n if (Math.abs(Math.ceil(bubbleSeriesSize) - bubbleLegendSize) >\n 1) {\n this.updateRanges(this.options.minSize, pxSizes.maxPxSize);\n legend.render();\n }\n }\n}\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Bubble_BubbleLegendItem = (BubbleLegendItem);\n/* *\n *\n * API Declarations\n *\n * */\n/**\n * @interface Highcharts.BubbleLegendFormatterContextObject\n */ /**\n* The center y position of the range.\n* @name Highcharts.BubbleLegendFormatterContextObject#center\n* @type {number}\n*/ /**\n* The radius of the bubble range.\n* @name Highcharts.BubbleLegendFormatterContextObject#radius\n* @type {number}\n*/ /**\n* The bubble value.\n* @name Highcharts.BubbleLegendFormatterContextObject#value\n* @type {number}\n*/\n''; // Detach doclets above\n\n;// ./code/es-modules/Series/Bubble/BubbleLegendComposition.js\n/* *\n *\n * (c) 2010-2024 Highsoft AS\n *\n * Author: Paweł Potaczek\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\n\n\nconst { setOptions: BubbleLegendComposition_setOptions } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\nconst { composed: BubbleLegendComposition_composed } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\nconst { addEvent: BubbleLegendComposition_addEvent, objectEach: BubbleLegendComposition_objectEach, pushUnique: BubbleLegendComposition_pushUnique, wrap: BubbleLegendComposition_wrap } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Functions\n *\n * */\n/**\n * If ranges are not specified, determine ranges from rendered bubble series\n * and render legend again.\n */\nfunction chartDrawChartBox(proceed, options, callback) {\n const chart = this, legend = chart.legend, bubbleSeries = getVisibleBubbleSeriesIndex(chart) >= 0;\n let bubbleLegendOptions, bubbleSizes, legendItem;\n if (legend && legend.options.enabled && legend.bubbleLegend &&\n legend.options.bubbleLegend.autoRanges && bubbleSeries) {\n bubbleLegendOptions = legend.bubbleLegend.options;\n bubbleSizes = legend.bubbleLegend.predictBubbleSizes();\n legend.bubbleLegend.updateRanges(bubbleSizes[0], bubbleSizes[1]);\n // Disable animation on init\n if (!bubbleLegendOptions.placed) {\n legend.group.placed = false;\n legend.allItems.forEach((item) => {\n legendItem = item.legendItem || {};\n if (legendItem.group) {\n legendItem.group.translateY = void 0;\n }\n });\n }\n // Create legend with bubbleLegend\n legend.render();\n // Calculate margins after first rendering the bubble legend\n if (!bubbleLegendOptions.placed) {\n chart.getMargins();\n chart.axes.forEach((axis) => {\n axis.setScale();\n axis.updateNames();\n // Disable axis animation on init\n BubbleLegendComposition_objectEach(axis.ticks, function (tick) {\n tick.isNew = true;\n tick.isNewLabel = true;\n });\n });\n chart.getMargins();\n }\n bubbleLegendOptions.placed = true;\n // Call default 'drawChartBox' method.\n proceed.call(chart, options, callback);\n // Check bubble legend sizes and correct them if necessary.\n legend.bubbleLegend.correctSizes();\n // Correct items positions with different dimensions in legend.\n retranslateItems(legend, getLinesHeights(legend));\n }\n else {\n proceed.call(chart, options, callback);\n // Allow color change on static bubble legend after click on legend\n if (legend && legend.options.enabled && legend.bubbleLegend) {\n legend.render();\n retranslateItems(legend, getLinesHeights(legend));\n }\n }\n}\n/**\n * Compose classes for use with Bubble series.\n * @private\n *\n * @param {Highcharts.Chart} ChartClass\n * Core chart class to use with Bubble series.\n *\n * @param {Highcharts.Legend} LegendClass\n * Core legend class to use with Bubble series.\n */\nfunction BubbleLegendComposition_compose(ChartClass, LegendClass) {\n if (BubbleLegendComposition_pushUnique(BubbleLegendComposition_composed, 'Series.BubbleLegend')) {\n BubbleLegendComposition_setOptions({\n // Set default bubble legend options\n legend: {\n bubbleLegend: Bubble_BubbleLegendDefaults\n }\n });\n BubbleLegendComposition_wrap(ChartClass.prototype, 'drawChartBox', chartDrawChartBox);\n BubbleLegendComposition_addEvent(LegendClass, 'afterGetAllItems', onLegendAfterGetAllItems);\n BubbleLegendComposition_addEvent(LegendClass, 'itemClick', onLegendItemClick);\n }\n}\n/**\n * Check if there is at least one visible bubble series.\n *\n * @private\n * @function getVisibleBubbleSeriesIndex\n * @param {Highcharts.Chart} chart\n * Chart to check.\n * @return {number}\n * First visible bubble series index\n */\nfunction getVisibleBubbleSeriesIndex(chart) {\n const series = chart.series;\n let i = 0;\n while (i < series.length) {\n if (series[i] &&\n series[i].isBubble &&\n series[i].visible &&\n series[i].dataTable.rowCount) {\n return i;\n }\n i++;\n }\n return -1;\n}\n/**\n * Calculate height for each row in legend.\n *\n * @private\n * @function getLinesHeights\n *\n * @param {Highcharts.Legend} legend\n * Legend to calculate from.\n *\n * @return {Array>}\n * Informations about line height and items amount\n */\nfunction getLinesHeights(legend) {\n const items = legend.allItems, lines = [], length = items.length;\n let lastLine, legendItem, legendItem2, i = 0, j = 0;\n for (i = 0; i < length; i++) {\n legendItem = items[i].legendItem || {};\n legendItem2 = (items[i + 1] || {}).legendItem || {};\n if (legendItem.labelHeight) {\n // For bubbleLegend\n items[i].itemHeight = legendItem.labelHeight;\n }\n if ( // Line break\n items[i] === items[length - 1] ||\n legendItem.y !== legendItem2.y) {\n lines.push({ height: 0 });\n lastLine = lines[lines.length - 1];\n // Find the highest item in line\n for (j; j <= i; j++) {\n if (items[j].itemHeight > lastLine.height) {\n lastLine.height = items[j].itemHeight;\n }\n }\n lastLine.step = i;\n }\n }\n return lines;\n}\n/**\n * Start the bubble legend creation process.\n */\nfunction onLegendAfterGetAllItems(e) {\n const legend = this, bubbleLegend = legend.bubbleLegend, legendOptions = legend.options, options = legendOptions.bubbleLegend, bubbleSeriesIndex = getVisibleBubbleSeriesIndex(legend.chart);\n // Remove unnecessary element\n if (bubbleLegend && bubbleLegend.ranges && bubbleLegend.ranges.length) {\n // Allow change the way of calculating ranges in update\n if (options.ranges.length) {\n options.autoRanges =\n !!options.ranges[0].autoRanges;\n }\n // Update bubbleLegend dimensions in each redraw\n legend.destroyItem(bubbleLegend);\n }\n // Create bubble legend\n if (bubbleSeriesIndex >= 0 &&\n legendOptions.enabled &&\n options.enabled) {\n options.seriesIndex = bubbleSeriesIndex;\n legend.bubbleLegend = new Bubble_BubbleLegendItem(options, legend);\n legend.bubbleLegend.addToLegend(e.allItems);\n }\n}\n/**\n * Toggle bubble legend depending on the visible status of bubble series.\n */\nfunction onLegendItemClick(e) {\n // #14080 don't fire this code if click function is prevented\n if (e.defaultPrevented) {\n return false;\n }\n const legend = this, series = e.legendItem, chart = legend.chart, visible = series.visible;\n let status;\n if (legend && legend.bubbleLegend) {\n // Temporary correct 'visible' property\n series.visible = !visible;\n // Save future status for getRanges method\n series.ignoreSeries = visible;\n // Check if at lest one bubble series is visible\n status = getVisibleBubbleSeriesIndex(chart) >= 0;\n // Hide bubble legend if all bubble series are disabled\n if (legend.bubbleLegend.visible !== status) {\n // Show or hide bubble legend\n legend.update({\n bubbleLegend: { enabled: status }\n });\n legend.bubbleLegend.visible = status; // Restore default status\n }\n series.visible = visible;\n }\n}\n/**\n * Correct legend items translation in case of different elements heights.\n *\n * @private\n * @function Highcharts.Legend#retranslateItems\n *\n * @param {Highcharts.Legend} legend\n * Legend to translate in.\n *\n * @param {Array>} lines\n * Informations about line height and items amount\n */\nfunction retranslateItems(legend, lines) {\n const items = legend.allItems, rtl = legend.options.rtl;\n let orgTranslateX, orgTranslateY, movementX, legendItem, actualLine = 0;\n items.forEach((item, index) => {\n legendItem = item.legendItem || {};\n if (!legendItem.group) {\n return;\n }\n orgTranslateX = legendItem.group.translateX || 0;\n orgTranslateY = legendItem.y || 0;\n movementX = item.movementX;\n if (movementX || (rtl && item.ranges)) {\n movementX = rtl ?\n orgTranslateX - item.options.maxSize / 2 :\n orgTranslateX + movementX;\n legendItem.group.attr({ translateX: movementX });\n }\n if (index > lines[actualLine].step) {\n actualLine++;\n }\n legendItem.group.attr({\n translateY: Math.round(orgTranslateY + lines[actualLine].height / 2)\n });\n legendItem.y = orgTranslateY + lines[actualLine].height / 2;\n });\n}\n/* *\n *\n * Default Export\n *\n * */\nconst BubbleLegendComposition = {\n compose: BubbleLegendComposition_compose\n};\n/* harmony default export */ const Bubble_BubbleLegendComposition = (BubbleLegendComposition);\n\n// EXTERNAL MODULE: external {\"amd\":[\"highcharts/highcharts\",\"Point\"],\"commonjs\":[\"highcharts\",\"Point\"],\"commonjs2\":[\"highcharts\",\"Point\"],\"root\":[\"Highcharts\",\"Point\"]}\nvar highcharts_Point_commonjs_highcharts_Point_commonjs2_highcharts_Point_root_Highcharts_Point_ = __webpack_require__(260);\nvar highcharts_Point_commonjs_highcharts_Point_commonjs2_highcharts_Point_root_Highcharts_Point_default = /*#__PURE__*/__webpack_require__.n(highcharts_Point_commonjs_highcharts_Point_commonjs2_highcharts_Point_root_Highcharts_Point_);\n;// ./code/es-modules/Series/Bubble/BubblePoint.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\n\nconst { seriesTypes: { scatter: { prototype: { pointClass: BubblePoint_ScatterPoint } } } } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default());\n\nconst { extend: BubblePoint_extend } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Class\n *\n * */\nclass BubblePoint extends BubblePoint_ScatterPoint {\n /* *\n *\n * Functions\n *\n * */\n /* eslint-disable valid-jsdoc */\n /**\n * @private\n */\n haloPath(size) {\n const computedSize = (size && this.marker ?\n this.marker.radius ||\n 0 :\n 0) + size;\n if (this.series.chart.inverted) {\n const pos = this.pos() || [0, 0], { xAxis, yAxis, chart } = this.series;\n return chart.renderer.symbols.circle(xAxis.len - pos[1] - computedSize, yAxis.len - pos[0] - computedSize, computedSize * 2, computedSize * 2);\n }\n return highcharts_Point_commonjs_highcharts_Point_commonjs2_highcharts_Point_root_Highcharts_Point_default().prototype.haloPath.call(this, \n // #6067\n computedSize);\n }\n}\n/* *\n *\n * Class Prototype\n *\n * */\nBubblePoint_extend(BubblePoint.prototype, {\n ttBelow: false\n});\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Bubble_BubblePoint = (BubblePoint);\n\n;// ./code/es-modules/Series/Bubble/BubbleSeries.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\n\n\nconst { parse: BubbleSeries_color } = (highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_default());\n\nconst { composed: BubbleSeries_composed, noop: BubbleSeries_noop } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\nconst { series: BubbleSeries_Series, seriesTypes: { column: { prototype: BubbleSeries_columnProto }, scatter: BubbleSeries_ScatterSeries } } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default());\n\nconst { addEvent: BubbleSeries_addEvent, arrayMax: BubbleSeries_arrayMax, arrayMin: BubbleSeries_arrayMin, clamp: BubbleSeries_clamp, extend: BubbleSeries_extend, isNumber: BubbleSeries_isNumber, merge: BubbleSeries_merge, pick: BubbleSeries_pick, pushUnique: BubbleSeries_pushUnique } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Functions\n *\n * */\n/**\n * Add logic to pad each axis with the amount of pixels necessary to avoid the\n * bubbles to overflow.\n */\nfunction onAxisFoundExtremes() {\n const axisLength = this.len, { coll, isXAxis, min } = this, range = (this.max || 0) - (min || 0);\n let pxMin = 0, pxMax = axisLength, transA = axisLength / range, hasActiveSeries;\n if (coll !== 'xAxis' && coll !== 'yAxis') {\n return;\n }\n // Handle padding on the second pass, or on redraw\n this.series.forEach((series) => {\n if (series.bubblePadding && series.reserveSpace()) {\n // Correction for #1673\n this.allowZoomOutside = true;\n hasActiveSeries = true;\n const data = series.getColumn(isXAxis ? 'x' : 'y');\n if (isXAxis) {\n (series.onPoint || series).getRadii(0, 0, series);\n if (series.onPoint) {\n series.radii = series.onPoint.radii;\n }\n }\n if (range > 0) {\n let i = data.length;\n while (i--) {\n if (BubbleSeries_isNumber(data[i]) &&\n this.dataMin <= data[i] &&\n data[i] <= this.max) {\n const radius = series.radii && series.radii[i] || 0;\n pxMin = Math.min(((data[i] - min) * transA) - radius, pxMin);\n pxMax = Math.max(((data[i] - min) * transA) + radius, pxMax);\n }\n }\n }\n }\n });\n // Apply the padding to the min and max properties\n if (hasActiveSeries && range > 0 && !this.logarithmic) {\n pxMax -= axisLength;\n transA *= (axisLength +\n Math.max(0, pxMin) - // #8901\n Math.min(pxMax, axisLength)) / axisLength;\n [\n ['min', 'userMin', pxMin],\n ['max', 'userMax', pxMax]\n ].forEach((keys) => {\n if (typeof BubbleSeries_pick(this.options[keys[0]], this[keys[1]]) === 'undefined') {\n this[keys[0]] += keys[2] / transA;\n }\n });\n }\n}\n/**\n * If a user has defined categories, it is necessary to retroactively hide any\n * ticks added by the 'onAxisFoundExtremes' function above (#21672).\n *\n * Otherwise they can show up on the axis, alongside user-defined categories.\n */\nfunction onAxisAfterRender() {\n const { ticks, tickPositions, dataMin = 0, dataMax = 0, categories } = this, type = this.options.type;\n if ((categories?.length || type === 'category') &&\n this.series.find((s) => s.bubblePadding)) {\n let tickCount = tickPositions.length;\n while (tickCount--) {\n const tick = ticks[tickPositions[tickCount]], pos = tick.pos || 0;\n if (pos > dataMax || pos < dataMin) {\n tick.label?.hide();\n }\n }\n }\n}\n/* *\n *\n * Class\n *\n * */\nclass BubbleSeries extends BubbleSeries_ScatterSeries {\n /* *\n *\n * Static Functions\n *\n * */\n static compose(AxisClass, ChartClass, LegendClass) {\n Bubble_BubbleLegendComposition.compose(ChartClass, LegendClass);\n if (BubbleSeries_pushUnique(BubbleSeries_composed, 'Series.Bubble')) {\n BubbleSeries_addEvent(AxisClass, 'foundExtremes', onAxisFoundExtremes);\n BubbleSeries_addEvent(AxisClass, 'afterRender', onAxisAfterRender);\n }\n }\n /* *\n *\n * Functions\n *\n * */\n /**\n * Perform animation on the bubbles\n * @private\n */\n animate(init) {\n if (!init &&\n this.points.length < this.options.animationLimit // #8099\n ) {\n this.points.forEach(function (point) {\n const { graphic, plotX = 0, plotY = 0 } = point;\n if (graphic && graphic.width) { // URL symbols don't have width\n // Start values\n if (!this.hasRendered) {\n graphic.attr({\n x: plotX,\n y: plotY,\n width: 1,\n height: 1\n });\n }\n graphic.animate(this.markerAttribs(point), this.options.animation);\n }\n }, this);\n }\n }\n /**\n * Get the radius for each point based on the minSize, maxSize and each\n * point's Z value. This must be done prior to Series.translate because\n * the axis needs to add padding in accordance with the point sizes.\n * @private\n */\n getRadii() {\n const zData = this.getColumn('z'), yData = this.getColumn('y'), radii = [];\n let len, i, value, zExtremes = this.chart.bubbleZExtremes;\n const { minPxSize, maxPxSize } = this.getPxExtremes();\n // Get the collective Z extremes of all bubblish series. The chart-level\n // `bubbleZExtremes` are only computed once, and reset on `updatedData`\n // in any member series.\n if (!zExtremes) {\n let zMin = Number.MAX_VALUE;\n let zMax = -Number.MAX_VALUE;\n let valid;\n this.chart.series.forEach((otherSeries) => {\n if (otherSeries.bubblePadding && otherSeries.reserveSpace()) {\n const zExtremes = (otherSeries.onPoint || otherSeries).getZExtremes();\n if (zExtremes) {\n // Changed '||' to 'pick' because min or max can be 0.\n // #17280\n zMin = Math.min(BubbleSeries_pick(zMin, zExtremes.zMin), zExtremes.zMin);\n zMax = Math.max(BubbleSeries_pick(zMax, zExtremes.zMax), zExtremes.zMax);\n valid = true;\n }\n }\n });\n if (valid) {\n zExtremes = { zMin, zMax };\n this.chart.bubbleZExtremes = zExtremes;\n }\n else {\n zExtremes = { zMin: 0, zMax: 0 };\n }\n }\n // Set the shape type and arguments to be picked up in drawPoints\n for (i = 0, len = zData.length; i < len; i++) {\n value = zData[i];\n // Separate method to get individual radius for bubbleLegend\n radii.push(this.getRadius(zExtremes.zMin, zExtremes.zMax, minPxSize, maxPxSize, value, yData && yData[i]));\n }\n this.radii = radii;\n }\n /**\n * Get the individual radius for one point.\n * @private\n */\n getRadius(zMin, zMax, minSize, maxSize, value, yValue) {\n const options = this.options, sizeByArea = options.sizeBy !== 'width', zThreshold = options.zThreshold;\n let zRange = zMax - zMin, pos = 0.5;\n // #8608 - bubble should be visible when z is undefined\n if (yValue === null || value === null) {\n return null;\n }\n if (BubbleSeries_isNumber(value)) {\n // When sizing by threshold, the absolute value of z determines\n // the size of the bubble.\n if (options.sizeByAbsoluteValue) {\n value = Math.abs(value - zThreshold);\n zMax = zRange = Math.max(zMax - zThreshold, Math.abs(zMin - zThreshold));\n zMin = 0;\n }\n // Issue #4419 - if value is less than zMin, push a radius that's\n // always smaller than the minimum size\n if (value < zMin) {\n return minSize / 2 - 1;\n }\n // Relative size, a number between 0 and 1\n if (zRange > 0) {\n pos = (value - zMin) / zRange;\n }\n }\n if (sizeByArea && pos >= 0) {\n pos = Math.sqrt(pos);\n }\n return Math.ceil(minSize + pos * (maxSize - minSize)) / 2;\n }\n /**\n * Define hasData function for non-cartesian series.\n * Returns true if the series has points at all.\n * @private\n */\n hasData() {\n return !!this.dataTable.rowCount;\n }\n /**\n * @private\n */\n markerAttribs(point, state) {\n const attr = super.markerAttribs(point, state), { height = 0, width = 0 } = attr;\n // Bubble needs a specific `markerAttribs` override because the markers\n // are rendered into the potentially inverted `series.group`. Unlike\n // regular markers, which are rendered into the `markerGroup` (#21125).\n return this.chart.inverted ? BubbleSeries_extend(attr, {\n x: (point.plotX || 0) - width / 2,\n y: (point.plotY || 0) - height / 2\n }) : attr;\n }\n /**\n * @private\n */\n pointAttribs(point, state) {\n const markerOptions = this.options.marker, fillOpacity = markerOptions.fillOpacity, attr = BubbleSeries_Series.prototype.pointAttribs.call(this, point, state);\n if (fillOpacity !== 1) {\n attr.fill = BubbleSeries_color(attr.fill)\n .setOpacity(fillOpacity)\n .get('rgba');\n }\n return attr;\n }\n /**\n * Extend the base translate method to handle bubble size\n * @private\n */\n translate() {\n // Run the parent method\n super.translate.call(this);\n this.getRadii();\n this.translateBubble();\n }\n translateBubble() {\n const { data, options, radii } = this, { minPxSize } = this.getPxExtremes();\n // Set the shape type and arguments to be picked up in drawPoints\n let i = data.length;\n while (i--) {\n const point = data[i], radius = radii ? radii[i] : 0; // #1737\n // Negative points means negative z values (#9728)\n if (this.zoneAxis === 'z') {\n point.negative = (point.z || 0) < (options.zThreshold || 0);\n }\n if (BubbleSeries_isNumber(radius) && radius >= minPxSize / 2) {\n // Shape arguments\n point.marker = BubbleSeries_extend(point.marker, {\n radius,\n width: 2 * radius,\n height: 2 * radius\n });\n // Alignment box for the data label\n point.dlBox = {\n x: point.plotX - radius,\n y: point.plotY - radius,\n width: 2 * radius,\n height: 2 * radius\n };\n }\n else { // Below zThreshold\n // #1691\n point.shapeArgs = point.plotY = point.dlBox = void 0;\n point.isInside = false; // #17281\n }\n }\n }\n getPxExtremes() {\n const smallestSize = Math.min(this.chart.plotWidth, this.chart.plotHeight);\n const getPxSize = (length) => {\n let isPercent;\n if (typeof length === 'string') {\n isPercent = /%$/.test(length);\n length = parseInt(length, 10);\n }\n return isPercent ? smallestSize * length / 100 : length;\n };\n const minPxSize = getPxSize(BubbleSeries_pick(this.options.minSize, 8));\n // Prioritize min size if conflict to make sure bubbles are\n // always visible. #5873\n const maxPxSize = Math.max(getPxSize(BubbleSeries_pick(this.options.maxSize, '20%')), minPxSize);\n return { minPxSize, maxPxSize };\n }\n getZExtremes() {\n const options = this.options, zData = this.getColumn('z').filter(BubbleSeries_isNumber);\n if (zData.length) {\n const zMin = BubbleSeries_pick(options.zMin, BubbleSeries_clamp(BubbleSeries_arrayMin(zData), options.displayNegative === false ?\n (options.zThreshold || 0) :\n -Number.MAX_VALUE, Number.MAX_VALUE));\n const zMax = BubbleSeries_pick(options.zMax, BubbleSeries_arrayMax(zData));\n if (BubbleSeries_isNumber(zMin) && BubbleSeries_isNumber(zMax)) {\n return { zMin, zMax };\n }\n }\n }\n /**\n * @private\n * @function Highcharts.Series#searchKDTree\n */\n searchKDTree(point, compareX, e, suppliedPointEvaluator = BubbleSeries_noop, suppliedBSideCheckEvaluator = BubbleSeries_noop) {\n suppliedPointEvaluator = (p1, p2, comparisonProp) => {\n const p1Dist = p1[comparisonProp] || 0;\n const p2Dist = p2[comparisonProp] || 0;\n let ret, flip = false;\n if (p1Dist < 0 && p2Dist < 0) {\n ret = (p1Dist - (p1.marker?.radius || 0) >=\n p2Dist - (p2.marker?.radius || 0)) ?\n p1 :\n p2;\n flip = true;\n }\n else {\n ret = p1Dist < p2Dist ? p1 : p2;\n }\n return [ret, flip];\n };\n suppliedBSideCheckEvaluator = (a, b, flip) => !flip && (a > b) || (a < b);\n return super.searchKDTree(point, compareX, e, suppliedPointEvaluator, suppliedBSideCheckEvaluator);\n }\n}\n/* *\n *\n * Static Properties\n *\n * */\n/**\n * A bubble series is a three dimensional series type where each point\n * renders an X, Y and Z value. Each points is drawn as a bubble where the\n * position along the X and Y axes mark the X and Y values, and the size of\n * the bubble relates to the Z value.\n *\n * @sample {highcharts} highcharts/demo/bubble/\n * Bubble chart\n *\n * @extends plotOptions.scatter\n * @excluding cluster\n * @product highcharts highstock\n * @requires highcharts-more\n * @optionparent plotOptions.bubble\n */\nBubbleSeries.defaultOptions = BubbleSeries_merge(BubbleSeries_ScatterSeries.defaultOptions, {\n dataLabels: {\n formatter: function () {\n const { numberFormatter } = this.series.chart;\n const { z } = this.point;\n return BubbleSeries_isNumber(z) ? numberFormatter(z, -1) : '';\n },\n inside: true,\n verticalAlign: 'middle'\n },\n /**\n * If there are more points in the series than the `animationLimit`, the\n * animation won't run. Animation affects overall performance and\n * doesn't work well with heavy data series.\n *\n * @since 6.1.0\n */\n animationLimit: 250,\n /**\n * Whether to display negative sized bubbles. The threshold is given\n * by the [zThreshold](#plotOptions.bubble.zThreshold) option, and negative\n * bubbles can be visualized by setting\n * [negativeColor](#plotOptions.bubble.negativeColor).\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-negative/\n * Negative bubbles\n *\n * @type {boolean}\n * @default true\n * @since 3.0\n * @apioption plotOptions.bubble.displayNegative\n */\n /**\n * @extends plotOptions.series.marker\n * @excluding enabled, enabledThreshold, height, radius, width\n */\n marker: {\n lineColor: null, // Inherit from series.color\n lineWidth: 1,\n /**\n * The fill opacity of the bubble markers.\n */\n fillOpacity: 0.5,\n /**\n * In bubble charts, the radius is overridden and determined based\n * on the point's data value.\n *\n * @ignore-option\n */\n radius: null,\n states: {\n hover: {\n radiusPlus: 0\n }\n },\n /**\n * A predefined shape or symbol for the marker. Possible values are\n * \"circle\", \"square\", \"diamond\", \"triangle\" and \"triangle-down\".\n *\n * Additionally, the URL to a graphic can be given on the form\n * `url(graphic.png)`. Note that for the image to be applied to\n * exported charts, its URL needs to be accessible by the export\n * server.\n *\n * Custom callbacks for symbol path generation can also be added to\n * `Highcharts.SVGRenderer.prototype.symbols`. The callback is then\n * used by its method name, as shown in the demo.\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-symbol/\n * Bubble chart with various symbols\n * @sample {highcharts} highcharts/plotoptions/series-marker-symbol/\n * General chart with predefined, graphic and custom markers\n *\n * @type {Highcharts.SymbolKeyValue|string}\n * @since 5.0.11\n */\n symbol: 'circle'\n },\n /**\n * Minimum bubble size. Bubbles will automatically size between the\n * `minSize` and `maxSize` to reflect the `z` value of each bubble.\n * Can be either pixels (when no unit is given), or a percentage of\n * the smallest one of the plot width and height.\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-size/\n * Bubble size\n *\n * @type {number|string}\n * @since 3.0\n * @product highcharts highstock\n */\n minSize: 8,\n /**\n * Maximum bubble size. Bubbles will automatically size between the\n * `minSize` and `maxSize` to reflect the `z` value of each bubble.\n * Can be either pixels (when no unit is given), or a percentage of\n * the smallest one of the plot width and height.\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-size/\n * Bubble size\n *\n * @type {number|string}\n * @since 3.0\n * @product highcharts highstock\n */\n maxSize: '20%',\n /**\n * When a point's Z value is below the\n * [zThreshold](#plotOptions.bubble.zThreshold)\n * setting, this color is used.\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-negative/\n * Negative bubbles\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 3.0\n * @product highcharts\n * @apioption plotOptions.bubble.negativeColor\n */\n /**\n * Whether the bubble's value should be represented by the area or the\n * width of the bubble. The default, `area`, corresponds best to the\n * human perception of the size of each bubble.\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-sizeby/\n * Comparison of area and size\n *\n * @type {Highcharts.BubbleSizeByValue}\n * @default area\n * @since 3.0.7\n * @apioption plotOptions.bubble.sizeBy\n */\n /**\n * When this is true, the absolute value of z determines the size of\n * the bubble. This means that with the default `zThreshold` of 0, a\n * bubble of value -1 will have the same size as a bubble of value 1,\n * while a bubble of value 0 will have a smaller size according to\n * `minSize`.\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-sizebyabsolutevalue/\n * Size by absolute value, various thresholds\n *\n * @type {boolean}\n * @default false\n * @since 4.1.9\n * @product highcharts\n * @apioption plotOptions.bubble.sizeByAbsoluteValue\n */\n /**\n * When this is true, the series will not cause the Y axis to cross\n * the zero plane (or [threshold](#plotOptions.series.threshold) option)\n * unless the data actually crosses the plane.\n *\n * For example, if `softThreshold` is `false`, a series of 0, 1, 2,\n * 3 will make the Y axis show negative values according to the\n * `minPadding` option. If `softThreshold` is `true`, the Y axis starts\n * at 0.\n *\n * @since 4.1.9\n * @product highcharts\n */\n softThreshold: false,\n states: {\n hover: {\n halo: {\n size: 5\n }\n }\n },\n tooltip: {\n pointFormat: '({point.x}, {point.y}), Size: {point.z}'\n },\n turboThreshold: 0,\n /**\n * The minimum for the Z value range. Defaults to the highest Z value\n * in the data.\n *\n * @see [zMin](#plotOptions.bubble.zMin)\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-zmin-zmax/\n * Z has a possible range of 0-100\n *\n * @type {number}\n * @since 4.0.3\n * @product highcharts\n * @apioption plotOptions.bubble.zMax\n */\n /**\n * @default z\n * @apioption plotOptions.bubble.colorKey\n */\n /**\n * The minimum for the Z value range. Defaults to the lowest Z value\n * in the data.\n *\n * @see [zMax](#plotOptions.bubble.zMax)\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-zmin-zmax/\n * Z has a possible range of 0-100\n *\n * @type {number}\n * @since 4.0.3\n * @product highcharts\n * @apioption plotOptions.bubble.zMin\n */\n /**\n * When [displayNegative](#plotOptions.bubble.displayNegative) is `false`,\n * bubbles with lower Z values are skipped. When `displayNegative`\n * is `true` and a [negativeColor](#plotOptions.bubble.negativeColor)\n * is given, points with lower Z is colored.\n *\n * @sample {highcharts} highcharts/plotoptions/bubble-negative/\n * Negative bubbles\n *\n * @since 3.0\n * @product highcharts\n */\n zThreshold: 0,\n zoneAxis: 'z'\n});\nBubbleSeries_extend(BubbleSeries.prototype, {\n alignDataLabel: BubbleSeries_columnProto.alignDataLabel,\n applyZones: BubbleSeries_noop,\n bubblePadding: true,\n isBubble: true,\n keysAffectYAxis: ['y'],\n pointArrayMap: ['y', 'z'],\n pointClass: Bubble_BubblePoint,\n parallelArrays: ['x', 'y', 'z'],\n trackerGroups: ['group', 'dataLabelsGroup'],\n specialGroup: 'group', // To allow clipping (#6296)\n zoneAxis: 'z'\n});\n// On updated data in any series, delete the chart-level Z extremes cache\nBubbleSeries_addEvent(BubbleSeries, 'updatedData', (e) => {\n delete e.target.chart.bubbleZExtremes;\n});\n// After removing series, delete the chart-level Z extremes cache, #17502.\nBubbleSeries_addEvent(BubbleSeries, 'remove', (e) => {\n delete e.target.chart.bubbleZExtremes;\n});\nhighcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default().registerSeriesType('bubble', BubbleSeries);\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Bubble_BubbleSeries = (BubbleSeries);\n/* *\n *\n * API Declarations\n *\n * */\n/**\n * @typedef {\"area\"|\"width\"} Highcharts.BubbleSizeByValue\n */\n''; // Detach doclets above\n/* *\n *\n * API Options\n *\n * */\n/**\n * A `bubble` series. If the [type](#series.bubble.type) option is\n * not specified, it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.bubble\n * @excluding dataParser, dataURL, legendSymbolColor, stack\n * @product highcharts highstock\n * @requires highcharts-more\n * @apioption series.bubble\n */\n/**\n * An array of data points for the series. For the `bubble` series type,\n * points can be given in the following ways:\n *\n * 1. An array of arrays with 3 or 2 values. In this case, the values correspond\n * to `x,y,z`. If the first value is a string, it is applied as the name of\n * the point, and the `x` value is inferred. The `x` value can also be\n * omitted, in which case the inner arrays should be of length 2\\. Then the\n * `x` value is automatically calculated, either starting at 0 and\n * incremented by 1, or from `pointStart` and `pointInterval` given in the\n * series options.\n * ```js\n * data: [\n * [0, 1, 2],\n * [1, 5, 5],\n * [2, 0, 2]\n * ]\n * ```\n *\n * 2. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.bubble.turboThreshold), this option is not\n * available.\n * ```js\n * data: [{\n * x: 1,\n * y: 1,\n * z: 1,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 5,\n * z: 4,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|Array<(number|string),number,number>|*>}\n * @extends series.line.data\n * @product highcharts\n * @apioption series.bubble.data\n */\n/**\n * @extends series.line.data.marker\n * @excluding enabledThreshold, height, radius, width\n * @product highcharts\n * @apioption series.bubble.data.marker\n */\n/**\n * The size value for each bubble. The bubbles' diameters are computed\n * based on the `z`, and controlled by series options like `minSize`,\n * `maxSize`, `sizeBy`, `zMin` and `zMax`.\n *\n * @type {number|null}\n * @product highcharts\n * @apioption series.bubble.data.z\n */\n/**\n * @excluding enabled, enabledThreshold, height, radius, width\n * @apioption series.bubble.marker\n */\n''; // Adds doclets above to transpiled file\n\n;// ./code/es-modules/Series/MapBubble/MapBubblePoint.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n/* *\n *\n * Imports\n *\n * */\n\n\nconst { seriesTypes: { map: { prototype: { pointClass: { prototype: mapPointProto } } } } } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default());\n\nconst { extend: MapBubblePoint_extend } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Class\n *\n * */\nclass MapBubblePoint extends Bubble_BubblePoint {\n /* *\n *\n * Functions\n *\n * */\n isValid() {\n return typeof this.z === 'number';\n }\n}\nMapBubblePoint_extend(MapBubblePoint.prototype, {\n applyOptions: mapPointProto.applyOptions,\n getProjectedBounds: mapPointProto.getProjectedBounds\n});\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const MapBubble_MapBubblePoint = (MapBubblePoint);\n\n;// ./code/es-modules/Series/MapBubble/MapBubbleSeries.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\n\n\nconst { seriesTypes: { map: { prototype: mapProto }, mappoint: { prototype: MapBubbleSeries_mapPointProto } } } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default());\n\nconst { extend: MapBubbleSeries_extend, merge: MapBubbleSeries_merge } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Class\n *\n * */\n/**\n * @private\n * @class\n * @name Highcharts.seriesTypes.mapbubble\n *\n * @augments Highcharts.Series\n *\n * @requires BubbleSeries\n * @requires MapPointSeries\n */\nclass MapBubbleSeries extends Bubble_BubbleSeries {\n constructor() {\n /* *\n *\n * Static Properties\n *\n * */\n super(...arguments);\n this.clearBounds = mapProto.clearBounds;\n }\n searchPoint(e, compareX) {\n return this.searchKDTree({\n plotX: e.chartX - this.chart.plotLeft,\n plotY: e.chartY - this.chart.plotTop\n }, compareX, e);\n }\n translate() {\n MapBubbleSeries_mapPointProto.translate.call(this);\n this.getRadii();\n this.translateBubble();\n }\n}\n/**\n * A map bubble series is a bubble series laid out on top of a map\n * series, where each bubble is tied to a specific map area.\n *\n * @sample maps/demo/map-bubble/\n * Map bubble chart\n *\n * @extends plotOptions.bubble\n * @product highmaps\n * @optionparent plotOptions.mapbubble\n */\nMapBubbleSeries.defaultOptions = MapBubbleSeries_merge(Bubble_BubbleSeries.defaultOptions, {\n /**\n * The main color of the series. This color affects both the fill\n * and the stroke of the bubble. For enhanced control, use `marker`\n * options.\n *\n * @sample {highmaps} maps/plotoptions/mapbubble-color/\n * Pink bubbles\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption plotOptions.mapbubble.color\n */\n /**\n * Whether to display negative sized bubbles. The threshold is\n * given by the [zThreshold](#plotOptions.mapbubble.zThreshold)\n * option, and negative bubbles can be visualized by setting\n * [negativeColor](#plotOptions.bubble.negativeColor).\n *\n * @type {boolean}\n * @default true\n * @apioption plotOptions.mapbubble.displayNegative\n */\n /**\n * Color of the line connecting bubbles. The default value is the same\n * as series' color.\n *\n * In styled mode, the color can be defined by the\n * [colorIndex](#plotOptions.series.colorIndex) option. Also, the series\n * color can be set with the `.highcharts-series`,\n * `.highcharts-color-{n}`, `.highcharts-{type}-series` or\n * `.highcharts-series-{n}` class, or individual classes given by the\n * `className` option.\n *\n *\n * @sample {highmaps} maps/demo/spider-map/\n * Spider map\n * @sample {highmaps} maps/plotoptions/spider-map-line-color/\n * Different line color\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption plotOptions.mapbubble.lineColor\n */\n /**\n * Pixel width of the line connecting bubbles.\n *\n * @sample {highmaps} maps/demo/spider-map/\n * Spider map\n *\n * @product highmaps\n * @apioption plotOptions.mapbubble.lineWidth\n */\n lineWidth: 0,\n /**\n * Maximum bubble size. Bubbles will automatically size between the\n * `minSize` and `maxSize` to reflect the `z` value of each bubble.\n * Can be either pixels (when no unit is given), or a percentage of\n * the smallest one of the plot width and height.\n *\n * @sample {highmaps} highcharts/plotoptions/bubble-size/\n * Bubble size\n * @sample {highmaps} maps/demo/spider-map/\n * Spider map\n *\n * @product highmaps\n * @apioption plotOptions.mapbubble.maxSize\n */\n /**\n * Minimum bubble size. Bubbles will automatically size between the\n * `minSize` and `maxSize` to reflect the `z` value of each bubble.\n * Can be either pixels (when no unit is given), or a percentage of\n * the smallest one of the plot width and height.\n *\n * @sample {highmaps} maps/demo/map-bubble/\n * Bubble size\n * @sample {highmaps} maps/demo/spider-map/\n * Spider map\n *\n * @product highmaps\n * @apioption plotOptions.mapbubble.minSize\n */\n /**\n * When a point's Z value is below the\n * [zThreshold](#plotOptions.mapbubble.zThreshold) setting, this\n * color is used.\n *\n * @sample {highmaps} maps/plotoptions/mapbubble-negativecolor/\n * Negative color below a threshold\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @apioption plotOptions.mapbubble.negativeColor\n */\n /**\n * Whether the bubble's value should be represented by the area or\n * the width of the bubble. The default, `area`, corresponds best to\n * the human perception of the size of each bubble.\n *\n * @type {Highcharts.BubbleSizeByValue}\n * @default area\n * @apioption plotOptions.mapbubble.sizeBy\n */\n /**\n * When this is true, the absolute value of z determines the size\n * of the bubble. This means that with the default `zThreshold` of\n * 0, a bubble of value -1 will have the same size as a bubble of\n * value 1, while a bubble of value 0 will have a smaller size\n * according to `minSize`.\n *\n * @sample {highmaps} highcharts/plotoptions/bubble-sizebyabsolutevalue/\n * Size by absolute value, various thresholds\n *\n * @type {boolean}\n * @default false\n * @since 1.1.9\n * @apioption plotOptions.mapbubble.sizeByAbsoluteValue\n */\n /**\n * The maximum for the Z value range. Defaults to the highest Z value in\n * the data.\n *\n * @see [zMin](#plotOptions.mapbubble.zMin)\n *\n * @sample {highmaps} highcharts/plotoptions/bubble-zmin-zmax/\n * Z has a possible range of 0-100\n *\n * @type {number}\n * @since 1.0.3\n * @apioption plotOptions.mapbubble.zMax\n */\n /**\n * The minimum for the Z value range. Defaults to the lowest Z value\n * in the data.\n *\n * @see [zMax](#plotOptions.mapbubble.zMax)\n *\n * @sample {highmaps} highcharts/plotoptions/bubble-zmin-zmax/\n * Z has a possible range of 0-100\n *\n * @type {number}\n * @since 1.0.3\n * @apioption plotOptions.mapbubble.zMin\n */\n /**\n * When [displayNegative](#plotOptions.mapbubble.displayNegative)\n * is `false`, bubbles with lower Z values are skipped. When\n * `displayNegative` is `true` and a\n * [negativeColor](#plotOptions.mapbubble.negativeColor) is given,\n * points with lower Z is colored.\n *\n * @sample {highmaps} maps/plotoptions/mapbubble-negativecolor/\n * Negative color below a threshold\n *\n * @type {number}\n * @default 0\n * @apioption plotOptions.mapbubble.zThreshold\n */\n /**\n * @default 500\n */\n animationLimit: 500,\n /**\n * @type {string|Array}\n */\n joinBy: 'hc-key',\n tooltip: {\n pointFormat: '{point.name}: {point.z}'\n }\n});\nMapBubbleSeries_extend(MapBubbleSeries.prototype, {\n type: 'mapbubble',\n axisTypes: ['colorAxis'],\n getProjectedBounds: mapProto.getProjectedBounds,\n isCartesian: false,\n // If one single value is passed, it is interpreted as z\n pointArrayMap: ['z'],\n pointClass: MapBubble_MapBubblePoint,\n processData: mapProto.processData,\n projectPoint: MapBubbleSeries_mapPointProto.projectPoint,\n kdAxisArray: ['plotX', 'plotY'],\n setData: mapProto.setData,\n setOptions: mapProto.setOptions,\n updateData: mapProto.updateData,\n useMapGeometry: true,\n xyFromShape: true\n});\nhighcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default().registerSeriesType('mapbubble', MapBubbleSeries);\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const MapBubble_MapBubbleSeries = (MapBubbleSeries);\n/* *\n *\n * API Options\n *\n * */\n/**\n * A `mapbubble` series. If the [type](#series.mapbubble.type) option\n * is not specified, it is inherited from [chart.type](#chart.type).\n *\n * @extends series,plotOptions.mapbubble\n * @excluding dataParser, dataURL\n * @product highmaps\n * @apioption series.mapbubble\n */\n/**\n * An array of data points for the series. For the `mapbubble` series\n * type, points can be given in the following ways:\n *\n * 1. An array of numerical values. In this case, the numerical values\n * will be interpreted as `z` options. Example:\n *\n * ```js\n * data: [0, 5, 3, 5]\n * ```\n *\n * 2. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of\n * data points exceeds the series'\n * [turboThreshold](#series.mapbubble.turboThreshold),\n * this option is not available.\n *\n * ```js\n * data: [{\n * z: 9,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * z: 10,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @type {Array}\n * @extends series.mappoint.data\n * @excluding labelrank, middleX, middleY, path, value, x, y, lat, lon\n * @product highmaps\n * @apioption series.mapbubble.data\n */\n/**\n * While the `x` and `y` values of the bubble are determined by the\n * underlying map, the `z` indicates the actual value that gives the\n * size of the bubble.\n *\n * @sample {highmaps} maps/demo/map-bubble/\n * Bubble\n *\n * @type {number|null}\n * @product highmaps\n * @apioption series.mapbubble.data.z\n */\n/**\n * @excluding enabled, enabledThreshold, height, radius, width\n * @sample {highmaps} maps/plotoptions/mapbubble-symbol\n * Map bubble with mapmarker symbol\n * @apioption series.mapbubble.marker\n */\n''; // Adds doclets above to transpiled file\n\n;// ./code/es-modules/Series/Heatmap/HeatmapPoint.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { scatter: { prototype: { pointClass: HeatmapPoint_ScatterPoint } } } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default()).seriesTypes;\n\nconst { clamp: HeatmapPoint_clamp, defined: HeatmapPoint_defined, extend: HeatmapPoint_extend, pick: HeatmapPoint_pick } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Class\n *\n * */\nclass HeatmapPoint extends HeatmapPoint_ScatterPoint {\n /* *\n *\n * Functions\n *\n * */\n /** @private */\n applyOptions(options, x) {\n // #17970, if point is null remove its color, because it may be updated\n if (this.isNull || this.value === null) {\n delete this.color;\n }\n super.applyOptions(options, x);\n this.formatPrefix = this.isNull || this.value === null ?\n 'null' : 'point';\n return this;\n }\n /** @private */\n getCellAttributes() {\n const point = this, series = point.series, seriesOptions = series.options, xPad = (seriesOptions.colsize || 1) / 2, yPad = (seriesOptions.rowsize || 1) / 2, xAxis = series.xAxis, yAxis = series.yAxis, markerOptions = point.options.marker || series.options.marker, pointPlacement = series.pointPlacementToXValue(), // #7860\n pointPadding = HeatmapPoint_pick(point.pointPadding, seriesOptions.pointPadding, 0), cellAttr = {\n x1: HeatmapPoint_clamp(Math.round(xAxis.len -\n xAxis.translate(point.x - xPad, false, true, false, true, -pointPlacement)), -xAxis.len, 2 * xAxis.len),\n x2: HeatmapPoint_clamp(Math.round(xAxis.len -\n xAxis.translate(point.x + xPad, false, true, false, true, -pointPlacement)), -xAxis.len, 2 * xAxis.len),\n y1: HeatmapPoint_clamp(Math.round(yAxis.translate(point.y - yPad, false, true, false, true)), -yAxis.len, 2 * yAxis.len),\n y2: HeatmapPoint_clamp(Math.round(yAxis.translate(point.y + yPad, false, true, false, true)), -yAxis.len, 2 * yAxis.len)\n };\n const dimensions = [['width', 'x'], ['height', 'y']];\n // Handle marker's fixed width, and height values including border\n // and pointPadding while calculating cell attributes.\n for (const dimension of dimensions) {\n const prop = dimension[0], direction = dimension[1];\n let start = direction + '1', end = direction + '2';\n const side = Math.abs(cellAttr[start] - cellAttr[end]), borderWidth = markerOptions &&\n markerOptions.lineWidth || 0, plotPos = Math.abs(cellAttr[start] + cellAttr[end]) / 2, widthOrHeight = markerOptions && markerOptions[prop];\n if (HeatmapPoint_defined(widthOrHeight) && widthOrHeight < side) {\n const halfCellSize = widthOrHeight / 2 + borderWidth / 2;\n cellAttr[start] = plotPos - halfCellSize;\n cellAttr[end] = plotPos + halfCellSize;\n }\n // Handle pointPadding\n if (pointPadding) {\n if ((direction === 'x' && xAxis.reversed) ||\n (direction === 'y' && !yAxis.reversed)) {\n start = end;\n end = direction + '1';\n }\n cellAttr[start] += pointPadding;\n cellAttr[end] -= pointPadding;\n }\n }\n return cellAttr;\n }\n /**\n * @private\n */\n haloPath(size) {\n if (!size) {\n return [];\n }\n const { x = 0, y = 0, width = 0, height = 0 } = this.shapeArgs || {};\n return [\n ['M', x - size, y - size],\n ['L', x - size, y + height + size],\n ['L', x + width + size, y + height + size],\n ['L', x + width + size, y - size],\n ['Z']\n ];\n }\n /**\n * Color points have a value option that determines whether or not it is\n * a null point\n * @private\n */\n isValid() {\n // Undefined is allowed\n return (this.value !== Infinity &&\n this.value !== -Infinity);\n }\n}\nHeatmapPoint_extend(HeatmapPoint.prototype, {\n dataLabelOnNull: true,\n moveToTopOnHover: true,\n ttBelow: false\n});\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Heatmap_HeatmapPoint = (HeatmapPoint);\n\n;// ./code/es-modules/Series/Heatmap/HeatmapSeriesDefaults.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { isNumber: HeatmapSeriesDefaults_isNumber } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * API Options\n *\n * */\n/**\n * A heatmap is a graphical representation of data where the individual\n * values contained in a matrix are represented as colors.\n *\n * @productdesc {highcharts}\n * Requires `modules/heatmap`.\n *\n * @sample highcharts/demo/heatmap/\n * Simple heatmap\n * @sample highcharts/demo/heatmap-canvas/\n * Heavy heatmap\n *\n * @extends plotOptions.scatter\n * @excluding animationLimit, cluster, connectEnds, connectNulls,\n * cropThreshold, dashStyle, dragDrop, findNearestPointBy,\n * getExtremesFromAll, jitter, legendSymbolColor, linecap,\n * lineWidth, pointInterval, pointIntervalUnit, pointRange,\n * pointStart, shadow, softThreshold, stacking, step, threshold\n * @product highcharts highmaps\n * @optionparent plotOptions.heatmap\n */\nconst HeatmapSeriesDefaults = {\n /**\n * Animation is disabled by default on the heatmap series.\n */\n animation: false,\n /**\n * The border radius for each heatmap item. The border's color and\n * width can be set in marker options.\n *\n * @see [lineColor](#plotOptions.heatmap.marker.lineColor)\n * @see [lineWidth](#plotOptions.heatmap.marker.lineWidth)\n */\n borderRadius: 0,\n /**\n * The border width for each heatmap item.\n */\n borderWidth: 0,\n /**\n * Padding between the points in the heatmap.\n *\n * @type {number}\n * @default 0\n * @since 6.0\n * @apioption plotOptions.heatmap.pointPadding\n */\n /**\n * @default value\n * @apioption plotOptions.heatmap.colorKey\n */\n /**\n * The main color of the series. In heat maps this color is rarely used,\n * as we mostly use the color to denote the value of each point. Unless\n * options are set in the [colorAxis](#colorAxis), the default value\n * is pulled from the [options.colors](#colors) array.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @since 4.0\n * @product highcharts\n * @apioption plotOptions.heatmap.color\n */\n /**\n * The column size - how many X axis units each column in the heatmap\n * should span.\n *\n * @sample {highcharts} maps/demo/heatmap/\n * One day\n * @sample {highmaps} maps/demo/heatmap/\n * One day\n *\n * @type {number}\n * @default 1\n * @since 4.0\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.colsize\n */\n /**\n * The row size - how many Y axis units each heatmap row should span.\n *\n * @sample {highcharts} maps/demo/heatmap/\n * 1 by default\n * @sample {highmaps} maps/demo/heatmap/\n * 1 by default\n *\n * @type {number}\n * @default 1\n * @since 4.0\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.rowsize\n */\n /**\n * Make the heatmap render its data points as an interpolated image.\n *\n * @sample highcharts/demo/heatmap-interpolation\n * Interpolated heatmap image displaying user activity on a website\n * @sample highcharts/series-heatmap/interpolation\n * Interpolated heatmap toggle\n *\n */\n interpolation: false,\n /**\n * The color applied to null points. In styled mode, a general CSS class\n * is applied instead.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n */\n nullColor: \"#f7f7f7\" /* Palette.neutralColor3 */,\n dataLabels: {\n formatter: function () {\n const { numberFormatter } = this.series.chart;\n const { value } = this.point;\n return HeatmapSeriesDefaults_isNumber(value) ? numberFormatter(value, -1) : '';\n },\n inside: true,\n verticalAlign: 'middle',\n crop: false,\n /**\n * @ignore-option\n */\n overflow: 'allow',\n padding: 0 // #3837\n },\n /**\n * @excluding radius, enabledThreshold\n * @since 8.1\n */\n marker: {\n /**\n * A predefined shape or symbol for the marker. When undefined, the\n * symbol is pulled from options.symbols. Other possible values are\n * `'circle'`, `'square'`,`'diamond'`, `'triangle'`,\n * `'triangle-down'`, `'rect'`, and `'ellipse'`.\n *\n * Additionally, the URL to a graphic can be given on this form:\n * `'url(graphic.png)'`. Note that for the image to be applied to\n * exported charts, its URL needs to be accessible by the export\n * server.\n *\n * Custom callbacks for symbol path generation can also be added to\n * `Highcharts.SVGRenderer.prototype.symbols`. The callback is then\n * used by its method name, as shown in the demo.\n *\n * @sample {highcharts} highcharts/plotoptions/series-marker-symbol/\n * Predefined, graphic and custom markers\n * @sample {highstock} highcharts/plotoptions/series-marker-symbol/\n * Predefined, graphic and custom markers\n */\n symbol: 'rect',\n /** @ignore-option */\n radius: 0,\n lineColor: void 0,\n states: {\n /**\n * @excluding radius, radiusPlus\n */\n hover: {\n /**\n * Set the marker's fixed width on hover state.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n * 70px fixed marker's width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.marker.states.hover.width\n */\n /**\n * Set the marker's fixed height on hover state.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n * 70px fixed marker's width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.marker.states.hover.height\n */\n /**\n * The number of pixels to increase the width of the\n * selected point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * 20px greater width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.marker.states.hover.widthPlus\n */\n /**\n * The number of pixels to increase the height of the\n * selected point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * 20px greater width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.marker.states.hover.heightPlus\n */\n /**\n * The additional line width for a hovered point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-linewidthplus\n * 5 pixels wider lineWidth on hover\n * @sample {highmaps} maps/plotoptions/heatmap-marker-states-hover-linewidthplus\n * 5 pixels wider lineWidth on hover\n */\n lineWidthPlus: 0\n },\n /**\n * @excluding radius\n */\n select: {\n /**\n * Set the marker's fixed width on select state.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n * 70px fixed marker's width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.marker.states.select.width\n */\n /**\n * Set the marker's fixed height on select state.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n * 70px fixed marker's width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.marker.states.select.height\n */\n /**\n * The number of pixels to increase the width of the\n * selected point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * 20px greater width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.marker.states.select.widthPlus\n */\n /**\n * The number of pixels to increase the height of the\n * selected point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * 20px greater width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption plotOptions.heatmap.marker.states.select.heightPlus\n */\n }\n }\n },\n clip: true,\n /** @ignore-option */\n pointRange: null, // Dynamically set to colsize by default\n tooltip: {\n pointFormat: '{point.x}, {point.y}: {point.value}
'\n },\n states: {\n hover: {\n /** @ignore-option */\n halo: false, // #3406, halo is disabled on heatmaps by default\n /**\n * How much to brighten the point on interaction. Requires the\n * main color to be defined in hex or rgb(a) format.\n *\n * In styled mode, the hover brightening is by default replaced\n * with a fill-opacity set in the `.highcharts-point:hover`\n * rule.\n */\n brightness: 0.2\n }\n },\n legendSymbol: 'rectangle'\n};\n/**\n * A `heatmap` series. If the [type](#series.heatmap.type) option is\n * not specified, it is inherited from [chart.type](#chart.type).\n *\n * @productdesc {highcharts}\n * Requires `modules/heatmap`.\n *\n * @extends series,plotOptions.heatmap\n * @excluding cropThreshold, dataParser, dataURL, dragDrop ,pointRange, stack,\n * @product highcharts highmaps\n * @apioption series.heatmap\n */\n/**\n * An array of data points for the series. For the `heatmap` series\n * type, points can be given in the following ways:\n *\n * 1. An array of arrays with 3 or 2 values. In this case, the values\n * correspond to `x,y,value`. If the first value is a string, it is\n * applied as the name of the point, and the `x` value is inferred.\n * The `x` value can also be omitted, in which case the inner arrays\n * should be of length 2\\. Then the `x` value is automatically calculated,\n * either starting at 0 and incremented by 1, or from `pointStart`\n * and `pointInterval` given in the series options.\n *\n * ```js\n * data: [\n * [0, 9, 7],\n * [1, 10, 4],\n * [2, 6, 3]\n * ]\n * ```\n *\n * 2. An array of objects with named values. The following snippet shows only a\n * few settings, see the complete options set below. If the total number of data\n * points exceeds the series' [turboThreshold](#series.heatmap.turboThreshold),\n * this option is not available.\n *\n * ```js\n * data: [{\n * x: 1,\n * y: 3,\n * value: 10,\n * name: \"Point2\",\n * color: \"#00FF00\"\n * }, {\n * x: 1,\n * y: 7,\n * value: 10,\n * name: \"Point1\",\n * color: \"#FF00FF\"\n * }]\n * ```\n *\n * @sample {highcharts} highcharts/chart/reflow-true/\n * Numerical values\n * @sample {highcharts} highcharts/series/data-array-of-arrays/\n * Arrays of numeric x and y\n * @sample {highcharts} highcharts/series/data-array-of-arrays-datetime/\n * Arrays of datetime x and y\n * @sample {highcharts} highcharts/series/data-array-of-name-value/\n * Arrays of point.name and y\n * @sample {highcharts} highcharts/series/data-array-of-objects/\n * Config objects\n *\n * @type {Array|*>}\n * @extends series.line.data\n * @product highcharts highmaps\n * @apioption series.heatmap.data\n */\n/**\n * The color of the point. In heat maps the point color is rarely set\n * explicitly, as we use the color to denote the `value`. Options for\n * this are set in the [colorAxis](#colorAxis) configuration.\n *\n * @type {Highcharts.ColorString|Highcharts.GradientColorObject|Highcharts.PatternObject}\n * @product highcharts highmaps\n * @apioption series.heatmap.data.color\n */\n/**\n * The value of the point, resulting in a color controlled by options\n * as set in the [colorAxis](#colorAxis) configuration.\n *\n * @type {number}\n * @product highcharts highmaps\n * @apioption series.heatmap.data.value\n */\n/**\n * The x value of the point. For datetime axes,\n * the X value is the timestamp in milliseconds since 1970.\n *\n * @type {number}\n * @product highcharts highmaps\n * @apioption series.heatmap.data.x\n */\n/**\n * The y value of the point.\n *\n * @type {number}\n * @product highcharts highmaps\n * @apioption series.heatmap.data.y\n */\n/**\n * Point padding for a single point.\n *\n * @sample maps/plotoptions/tilemap-pointpadding\n * Point padding on tiles\n *\n * @type {number}\n * @product highcharts highmaps\n * @apioption series.heatmap.data.pointPadding\n */\n/**\n * @excluding radius, enabledThreshold\n * @product highcharts highmaps\n * @since 8.1\n * @apioption series.heatmap.data.marker\n */\n/**\n * @excluding radius, enabledThreshold\n * @product highcharts highmaps\n * @since 8.1\n * @apioption series.heatmap.marker\n */\n/**\n * @excluding radius, radiusPlus\n * @product highcharts highmaps\n * @apioption series.heatmap.marker.states.hover\n */\n/**\n * @excluding radius\n * @product highcharts highmaps\n * @apioption series.heatmap.marker.states.select\n */\n/**\n * @excluding radius, radiusPlus\n * @product highcharts highmaps\n * @apioption series.heatmap.data.marker.states.hover\n */\n/**\n * @excluding radius\n * @product highcharts highmaps\n * @apioption series.heatmap.data.marker.states.select\n */\n/**\n* Set the marker's fixed width on hover state.\n*\n* @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-linewidthplus\n* 5 pixels wider lineWidth on hover\n*\n* @type {number|undefined}\n* @default 0\n* @product highcharts highmaps\n* @apioption series.heatmap.marker.states.hover.lineWidthPlus\n*/\n/**\n* Set the marker's fixed width on hover state.\n*\n* @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n* 70px fixed marker's width and height on hover\n*\n* @type {number|undefined}\n* @default undefined\n* @product highcharts highmaps\n* @apioption series.heatmap.marker.states.hover.width\n*/\n/**\n * Set the marker's fixed height on hover state.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n * 70px fixed marker's width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption series.heatmap.marker.states.hover.height\n */\n/**\n* The number of pixels to increase the width of the\n* hovered point.\n*\n* @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n* One day\n*\n* @type {number|undefined}\n* @default undefined\n* @product highcharts highmaps\n* @apioption series.heatmap.marker.states.hover.widthPlus\n*/\n/**\n * The number of pixels to increase the height of the\n * hovered point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * One day\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption series.heatmap.marker.states.hover.heightPlus\n */\n/**\n * The number of pixels to increase the width of the\n * hovered point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * One day\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption series.heatmap.marker.states.select.widthPlus\n */\n/**\n * The number of pixels to increase the height of the\n * hovered point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * One day\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption series.heatmap.marker.states.select.heightPlus\n */\n/**\n* Set the marker's fixed width on hover state.\n*\n* @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-linewidthplus\n* 5 pixels wider lineWidth on hover\n*\n* @type {number|undefined}\n* @default 0\n* @product highcharts highmaps\n* @apioption series.heatmap.data.marker.states.hover.lineWidthPlus\n*/\n/**\n * Set the marker's fixed width on hover state.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n * 70px fixed marker's width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption series.heatmap.data.marker.states.hover.width\n */\n/**\n * Set the marker's fixed height on hover state.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n * 70px fixed marker's width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption series.heatmap.data.marker.states.hover.height\n */\n/**\n * The number of pixels to increase the width of the\n * hovered point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * One day\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highstock\n * @apioption series.heatmap.data.marker.states.hover.widthPlus\n */\n/**\n * The number of pixels to increase the height of the\n * hovered point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * One day\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highstock\n * @apioption series.heatmap.data.marker.states.hover.heightPlus\n */\n/**\n* Set the marker's fixed width on select state.\n*\n* @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n* 70px fixed marker's width and height on hover\n*\n* @type {number|undefined}\n* @default undefined\n* @product highcharts highmaps\n* @apioption series.heatmap.data.marker.states.select.width\n*/\n/**\n * Set the marker's fixed height on select state.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-width\n * 70px fixed marker's width and height on hover\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highmaps\n * @apioption series.heatmap.data.marker.states.select.height\n */\n/**\n * The number of pixels to increase the width of the\n * hovered point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * One day\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highstock\n * @apioption series.heatmap.data.marker.states.select.widthPlus\n */\n/**\n * The number of pixels to increase the height of the\n * hovered point.\n *\n * @sample {highcharts} maps/plotoptions/heatmap-marker-states-hover-widthplus\n * One day\n *\n * @type {number|undefined}\n * @default undefined\n * @product highcharts highstock\n * @apioption series.heatmap.data.marker.states.select.heightPlus\n */\n''; // Keeps doclets above separate\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Heatmap_HeatmapSeriesDefaults = (HeatmapSeriesDefaults);\n\n;// ./code/es-modules/Series/InterpolationUtilities.js\n/* *\n *\n * (c) 2010-2024 Hubert Kozik\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\nconst { doc } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\nconst { defined: InterpolationUtilities_defined, pick: InterpolationUtilities_pick } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n/* *\n *\n * Functions\n *\n * */\n/**\n * Find color of point based on color axis.\n *\n * @function Highcharts.colorFromPoint\n *\n * @param {number | null} value\n * Value to find corresponding color on the color axis.\n *\n * @param {Highcharts.Point} point\n * Point to find it's color from color axis.\n *\n * @return {number[]}\n * Color in RGBa array.\n */\nfunction colorFromPoint(value, point) {\n const colorAxis = point.series.colorAxis;\n if (colorAxis) {\n const rgba = (colorAxis.toColor(value || 0, point)\n .split(')')[0]\n .split('(')[1]\n .split(',')\n .map((s) => InterpolationUtilities_pick(parseFloat(s), parseInt(s, 10))));\n rgba[3] = InterpolationUtilities_pick(rgba[3], 1.0) * 255;\n if (!InterpolationUtilities_defined(value) || !point.visible) {\n rgba[3] = 0;\n }\n return rgba;\n }\n return [0, 0, 0, 0];\n}\n/**\n * Method responsible for creating a canvas for interpolation image.\n * @private\n */\nfunction getContext(series) {\n const { canvas, context } = series;\n if (canvas && context) {\n context.clearRect(0, 0, canvas.width, canvas.height);\n }\n else {\n series.canvas = doc.createElement('canvas');\n series.context = series.canvas.getContext('2d', {\n willReadFrequently: true\n }) || void 0;\n return series.context;\n }\n return context;\n}\nconst InterpolationUtilities = {\n colorFromPoint,\n getContext\n};\n/* harmony default export */ const Series_InterpolationUtilities = (InterpolationUtilities);\n\n;// ./code/es-modules/Series/Heatmap/HeatmapSeries.js\n/* *\n *\n * (c) 2010-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n *\n * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!\n *\n * */\n\n\n\n\n\n\nconst { series: HeatmapSeries_Series, seriesTypes: { column: HeatmapSeries_ColumnSeries, scatter: HeatmapSeries_ScatterSeries } } = (highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default());\n\nconst { prototype: { symbols: HeatmapSeries_symbols } } = (highcharts_SVGRenderer_commonjs_highcharts_SVGRenderer_commonjs2_highcharts_SVGRenderer_root_Highcharts_SVGRenderer_default());\n\nconst { addEvent: HeatmapSeries_addEvent, extend: HeatmapSeries_extend, fireEvent: HeatmapSeries_fireEvent, isNumber: HeatmapSeries_isNumber, merge: HeatmapSeries_merge, pick: HeatmapSeries_pick } = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n\nconst { colorFromPoint: HeatmapSeries_colorFromPoint, getContext: HeatmapSeries_getContext } = Series_InterpolationUtilities;\n/* *\n *\n * Class\n *\n * */\n/**\n * @private\n * @class\n * @name Highcharts.seriesTypes.heatmap\n *\n * @augments Highcharts.Series\n */\nclass HeatmapSeries extends HeatmapSeries_ScatterSeries {\n constructor() {\n /* *\n *\n * Static Properties\n *\n * */\n super(...arguments);\n this.valueMax = NaN;\n this.valueMin = NaN;\n this.isDirtyCanvas = true;\n /* eslint-enable valid-jsdoc */\n }\n /* *\n *\n * Functions\n *\n * */\n /**\n * @private\n */\n drawPoints() {\n const series = this, seriesOptions = series.options, interpolation = seriesOptions.interpolation, seriesMarkerOptions = seriesOptions.marker || {};\n if (interpolation) {\n const { image, chart, xAxis, yAxis } = series, { reversed: xRev = false, len: width } = xAxis, { reversed: yRev = false, len: height } = yAxis, dimensions = { width, height };\n if (!image || series.isDirtyData || series.isDirtyCanvas) {\n const ctx = HeatmapSeries_getContext(series), { canvas, options: { colsize = 1, rowsize = 1 }, points, points: { length } } = series, pointsLen = length - 1, colorAxis = (chart.colorAxis && chart.colorAxis[0]);\n if (canvas && ctx && colorAxis) {\n const { min: xMin, max: xMax } = xAxis.getExtremes(), { min: yMin, max: yMax } = yAxis.getExtremes(), xDelta = xMax - xMin, yDelta = yMax - yMin, imgMultiple = 8.0, lastX = Math.round(imgMultiple * ((xDelta / colsize) / imgMultiple)), lastY = Math.round(imgMultiple * ((yDelta / rowsize) / imgMultiple)), [transformX, transformY] = [\n [lastX, lastX / xDelta, xRev, 'ceil'],\n [lastY, lastY / yDelta, !yRev, 'floor']\n ].map(([last, scale, rev, rounding]) => (rev ?\n (v) => (Math[rounding](last -\n (scale * (v)))) :\n (v) => (Math[rounding](scale * v)))), canvasWidth = canvas.width = lastX + 1, canvasHeight = canvas.height = lastY + 1, canvasArea = canvasWidth * canvasHeight, pixelToPointScale = pointsLen / canvasArea, pixelData = new Uint8ClampedArray(canvasArea * 4), pointInPixels = (x, y) => (Math.ceil((canvasWidth * transformY(y - yMin)) +\n transformX(x - xMin)) * 4);\n series.buildKDTree();\n for (let i = 0; i < canvasArea; i++) {\n const point = points[Math.ceil(pixelToPointScale * i)], { x, y } = point;\n pixelData.set(HeatmapSeries_colorFromPoint(point.value, point), pointInPixels(x, y));\n }\n ctx.putImageData(new ImageData(pixelData, canvasWidth), 0, 0);\n if (image) {\n image.attr({\n ...dimensions,\n href: canvas.toDataURL('image/png', 1)\n });\n }\n else {\n series.directTouch = false;\n series.image = chart.renderer.image(canvas.toDataURL('image/png', 1))\n .attr(dimensions)\n .add(series.group);\n }\n }\n series.isDirtyCanvas = false;\n }\n else if (image.width !== width || image.height !== height) {\n image.attr(dimensions);\n }\n }\n else if (seriesMarkerOptions.enabled || series._hasPointMarkers) {\n HeatmapSeries_Series.prototype.drawPoints.call(series);\n series.points.forEach((point) => {\n if (point.graphic) {\n // In styled mode, use CSS, otherwise the fill used in\n // the style sheet will take precedence over\n // the fill attribute.\n point.graphic[series.chart.styledMode ? 'css' : 'animate'](series.colorAttribs(point));\n if (point.value === null) { // #15708\n point.graphic.addClass('highcharts-null-point');\n }\n }\n });\n }\n }\n /**\n * @private\n */\n getExtremes() {\n // Get the extremes from the value data\n const { dataMin, dataMax } = HeatmapSeries_Series.prototype.getExtremes\n .call(this, this.getColumn('value'));\n if (HeatmapSeries_isNumber(dataMin)) {\n this.valueMin = dataMin;\n }\n if (HeatmapSeries_isNumber(dataMax)) {\n this.valueMax = dataMax;\n }\n // Get the extremes from the y data\n return HeatmapSeries_Series.prototype.getExtremes.call(this);\n }\n /**\n * Override to also allow null points, used when building the k-d-tree for\n * tooltips in boost mode.\n * @private\n */\n getValidPoints(points, insideOnly) {\n return HeatmapSeries_Series.prototype.getValidPoints.call(this, points, insideOnly, true);\n }\n /**\n * Define hasData function for non-cartesian series. Returns true if the\n * series has points at all.\n * @private\n */\n hasData() {\n return !!this.dataTable.rowCount;\n }\n /**\n * Override the init method to add point ranges on both axes.\n * @private\n */\n init() {\n super.init.apply(this, arguments);\n const options = this.options;\n // #3758, prevent resetting in setData\n options.pointRange = HeatmapSeries_pick(options.pointRange, options.colsize || 1);\n // General point range\n this.yAxis.axisPointRange = options.rowsize || 1;\n // Bind new symbol names\n HeatmapSeries_symbols.ellipse = HeatmapSeries_symbols.circle;\n // @todo\n //\n // Setting the border radius here is a workaround. It should be set in\n // the shapeArgs or returned from `markerAttribs`. However,\n // Series.drawPoints does not pick up markerAttribs to be passed over to\n // `renderer.symbol`. Also, image symbols are not positioned by their\n // top left corner like other symbols are. This should be refactored,\n // then we could save ourselves some tests for .hasImage etc. And the\n // evaluation of borderRadius would be moved to `markerAttribs`.\n if (options.marker && HeatmapSeries_isNumber(options.borderRadius)) {\n options.marker.r = options.borderRadius;\n }\n }\n /**\n * @private\n */\n markerAttribs(point, state) {\n const shapeArgs = point.shapeArgs || {};\n if (point.hasImage) {\n return {\n x: point.plotX,\n y: point.plotY\n };\n }\n // Setting width and height attributes on image does not affect on its\n // dimensions.\n if (state && state !== 'normal') {\n const pointMarkerOptions = point.options.marker || {}, seriesMarkerOptions = this.options.marker || {}, seriesStateOptions = (seriesMarkerOptions.states &&\n seriesMarkerOptions.states[state]) || {}, pointStateOptions = (pointMarkerOptions.states &&\n pointMarkerOptions.states[state]) || {};\n // Set new width and height basing on state options.\n const width = (pointStateOptions.width ||\n seriesStateOptions.width ||\n shapeArgs.width ||\n 0) + (pointStateOptions.widthPlus ||\n seriesStateOptions.widthPlus ||\n 0);\n const height = (pointStateOptions.height ||\n seriesStateOptions.height ||\n shapeArgs.height ||\n 0) + (pointStateOptions.heightPlus ||\n seriesStateOptions.heightPlus ||\n 0);\n // Align marker by the new size.\n const x = (shapeArgs.x || 0) + ((shapeArgs.width || 0) - width) / 2, y = (shapeArgs.y || 0) + ((shapeArgs.height || 0) - height) / 2;\n return { x, y, width, height };\n }\n return shapeArgs;\n }\n /**\n * @private\n */\n pointAttribs(point, state) {\n const series = this, attr = HeatmapSeries_Series.prototype.pointAttribs.call(series, point, state), seriesOptions = series.options || {}, plotOptions = series.chart.options.plotOptions || {}, seriesPlotOptions = plotOptions.series || {}, heatmapPlotOptions = plotOptions.heatmap || {}, \n // Get old properties in order to keep backward compatibility\n borderColor = (point && point.options.borderColor) ||\n seriesOptions.borderColor ||\n heatmapPlotOptions.borderColor ||\n seriesPlotOptions.borderColor, borderWidth = (point && point.options.borderWidth) ||\n seriesOptions.borderWidth ||\n heatmapPlotOptions.borderWidth ||\n seriesPlotOptions.borderWidth ||\n attr['stroke-width'];\n // Apply lineColor, or set it to default series color.\n attr.stroke = ((point && point.marker && point.marker.lineColor) ||\n (seriesOptions.marker && seriesOptions.marker.lineColor) ||\n borderColor ||\n this.color);\n // Apply old borderWidth property if exists.\n attr['stroke-width'] = borderWidth;\n if (state && state !== 'normal') {\n const stateOptions = HeatmapSeries_merge((seriesOptions.states &&\n seriesOptions.states[state]), (seriesOptions.marker &&\n seriesOptions.marker.states &&\n seriesOptions.marker.states[state]), (point &&\n point.options.states &&\n point.options.states[state] || {}));\n attr.fill =\n stateOptions.color ||\n highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_default().parse(attr.fill).brighten(stateOptions.brightness || 0).get();\n attr.stroke = (stateOptions.lineColor || attr.stroke); // #17896\n }\n return attr;\n }\n /**\n * @private\n */\n translate() {\n const series = this, options = series.options, { borderRadius, marker } = options, symbol = marker && marker.symbol || 'rect', shape = HeatmapSeries_symbols[symbol] ? symbol : 'rect', hasRegularShape = ['circle', 'square'].indexOf(shape) !== -1;\n series.generatePoints();\n for (const point of series.points) {\n const cellAttr = point.getCellAttributes();\n let x = Math.min(cellAttr.x1, cellAttr.x2), y = Math.min(cellAttr.y1, cellAttr.y2), width = Math.max(Math.abs(cellAttr.x2 - cellAttr.x1), 0), height = Math.max(Math.abs(cellAttr.y2 - cellAttr.y1), 0);\n point.hasImage = (point.marker && point.marker.symbol || symbol || '').indexOf('url') === 0;\n // If marker shape is regular (square), find the shorter cell's\n // side.\n if (hasRegularShape) {\n const sizeDiff = Math.abs(width - height);\n x = Math.min(cellAttr.x1, cellAttr.x2) +\n (width < height ? 0 : sizeDiff / 2);\n y = Math.min(cellAttr.y1, cellAttr.y2) +\n (width < height ? sizeDiff / 2 : 0);\n width = height = Math.min(width, height);\n }\n if (point.hasImage) {\n point.marker = { width, height };\n }\n point.plotX = point.clientX = (cellAttr.x1 + cellAttr.x2) / 2;\n point.plotY = (cellAttr.y1 + cellAttr.y2) / 2;\n point.shapeType = 'path';\n point.shapeArgs = HeatmapSeries_merge(true, { x, y, width, height }, {\n d: HeatmapSeries_symbols[shape](x, y, width, height, { r: HeatmapSeries_isNumber(borderRadius) ? borderRadius : 0 })\n });\n }\n HeatmapSeries_fireEvent(series, 'afterTranslate');\n }\n}\nHeatmapSeries.defaultOptions = HeatmapSeries_merge(HeatmapSeries_ScatterSeries.defaultOptions, Heatmap_HeatmapSeriesDefaults);\nHeatmapSeries_addEvent(HeatmapSeries, 'afterDataClassLegendClick', function () {\n this.isDirtyCanvas = true;\n this.drawPoints();\n});\nHeatmapSeries_extend(HeatmapSeries.prototype, {\n axisTypes: Series_ColorMapComposition.seriesMembers.axisTypes,\n colorKey: Series_ColorMapComposition.seriesMembers.colorKey,\n directTouch: true,\n getExtremesFromAll: true,\n keysAffectYAxis: ['y'],\n parallelArrays: Series_ColorMapComposition.seriesMembers.parallelArrays,\n pointArrayMap: ['y', 'value'],\n pointClass: Heatmap_HeatmapPoint,\n specialGroup: 'group',\n trackerGroups: Series_ColorMapComposition.seriesMembers.trackerGroups,\n /**\n * @private\n */\n alignDataLabel: HeatmapSeries_ColumnSeries.prototype.alignDataLabel,\n colorAttribs: Series_ColorMapComposition.seriesMembers.colorAttribs,\n getSymbol: HeatmapSeries_Series.prototype.getSymbol\n});\nSeries_ColorMapComposition.compose(HeatmapSeries);\nhighcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default().registerSeriesType('heatmap', HeatmapSeries);\n/* *\n *\n * Default Export\n *\n * */\n/* harmony default export */ const Heatmap_HeatmapSeries = ((/* unused pure expression or super */ null && (HeatmapSeries)));\n/* *\n *\n * API Declarations\n *\n * */\n/**\n * Heatmap series only. Padding between the points in the heatmap.\n * @name Highcharts.Point#pointPadding\n * @type {number|undefined}\n */\n/**\n * Heatmap series only. The value of the point, resulting in a color\n * controlled by options as set in the colorAxis configuration.\n * @name Highcharts.Point#value\n * @type {number|null|undefined}\n */\n/* *\n * @interface Highcharts.PointOptionsObject in parts/Point.ts\n */ /**\n* Heatmap series only. Point padding for a single point.\n* @name Highcharts.PointOptionsObject#pointPadding\n* @type {number|undefined}\n*/ /**\n* Heatmap series only. The value of the point, resulting in a color controlled\n* by options as set in the colorAxis configuration.\n* @name Highcharts.PointOptionsObject#value\n* @type {number|null|undefined}\n*/\n''; // Detach doclets above\n\n;// ./code/es-modules/masters/modules/map.src.js\n/**\n * @license Highmaps JS v12.1.2 (2024-12-21)\n * @module highcharts/modules/map\n * @requires highcharts\n *\n * Highmaps as a plugin for Highcharts or Highcharts Stock.\n *\n * (c) 2011-2024 Torstein Honsi\n *\n * License: www.highcharts.com/license\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst map_src_G = (highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default());\n// Classes\nmap_src_G.ColorMapComposition = Series_ColorMapComposition;\nmap_src_G.MapChart = map_src_G.MapChart || Chart_MapChart;\nmap_src_G.MapNavigation = map_src_G.MapNavigation || Maps_MapNavigation;\nmap_src_G.MapView = map_src_G.MapView || Maps_MapView;\nmap_src_G.Projection = map_src_G.Projection || Maps_Projection;\n// Functions\nmap_src_G.mapChart = map_src_G.Map = map_src_G.MapChart.mapChart;\nmap_src_G.maps = map_src_G.MapChart.maps;\nmap_src_G.geojson = Maps_GeoJSONComposition.geojson;\nmap_src_G.topo2geo = Maps_GeoJSONComposition.topo2geo;\n// Compositions\nMaps_GeoJSONComposition.compose(map_src_G.Chart);\nMapBubble_MapBubbleSeries.compose(map_src_G.Axis, map_src_G.Chart, map_src_G.Legend);\nMaps_MapNavigation.compose(Chart_MapChart, map_src_G.Pointer, map_src_G.SVGRenderer);\nMaps_MapView.compose(Chart_MapChart);\n// Default Export\n/* harmony default export */ const map_src = ((highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default()));\n\n__webpack_exports__ = __webpack_exports__[\"default\"];\n/******/ \treturn __webpack_exports__;\n/******/ })()\n;\n});"],"names":["root","factory","exports","module","define","amd","amd1","window","__WEBPACK_EXTERNAL_MODULE__944__","__WEBPACK_EXTERNAL_MODULE__532__","__WEBPACK_EXTERNAL_MODULE__620__","__WEBPACK_EXTERNAL_MODULE__500__","__WEBPACK_EXTERNAL_MODULE__512__","__WEBPACK_EXTERNAL_MODULE__28__","__WEBPACK_EXTERNAL_MODULE__820__","__WEBPACK_EXTERNAL_MODULE__960__","__WEBPACK_EXTERNAL_MODULE__540__","__WEBPACK_EXTERNAL_MODULE__984__","__WEBPACK_EXTERNAL_MODULE__632__","__WEBPACK_EXTERNAL_MODULE__260__","symbols","ColorAxisComposition","ColorAxisLike","MapPointer","ColorMapComposition","CenteredUtilities","GeoJSONComposition","GeometryUtilities","__webpack_modules__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","__webpack_exports__","map_src","highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_","highcharts_commonjs_highcharts_commonjs2_highcharts_root_Highcharts_default","highcharts_Axis_commonjs_highcharts_Axis_commonjs2_highcharts_Axis_root_Highcharts_Axis_","highcharts_Axis_commonjs_highcharts_Axis_commonjs2_highcharts_Axis_root_Highcharts_Axis_default","highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_","highcharts_Color_commonjs_highcharts_Color_commonjs2_highcharts_Color_root_Highcharts_Color_default","parse","color","addEvent","extend","merge","pick","splat","ColorAxisConstructor","onChartAfterCreateAxes","userOptions","colorAxis","map","axisOptions","onLegendAfterGetAllItems","e","colorAxes","chart","destroyItem","item","i","allItems","indexOf","splice","colorAxisItems","options","forEach","showInLegend","dataClasses","visible","concat","getDataClassLegendSymbols","push","series","legendType","points","point","length","unshift","onLegendAfterColorizeItem","legendColor","legendItem","symbol","attr","fill","onLegendAfterUpdate","update","redraw","onSeriesAfterTranslate","colorAttribs","translateColors","onSeriesBindAxes","axisTypes","pointSetVisible","vis","method","Boolean","buildKDTree","seriesTranslateColors","getPointsCollection","nullColor","colorKey","value","getNestedProperty","isNull","toColor","label","legend","colorizeItem","wrapFxFillSetter","elem","start","tweenTo","end","pos","wrapFxStrokeSetter","compose","ColorAxisClass","ChartClass","FxClass","LegendClass","SeriesClass","chartProto","fxProto","seriesProto","collectionsWithUpdate","includes","collectionsWithInit","addColorAxis","wrapChartCreateAxis","superCreateAxis","createAxis","type","apply","arguments","axis","index","isX","isDirtyLegend","axes","bindAxes","isDirtyData","animation","fillSetter","strokeSetter","optionalAxis","pointClass","setVisible","order","Color_ColorAxisComposition","ColorAxisLike_color","ColorAxisLike_merge","initDataClasses","userDataClasses","dataClass","colorCount","colorCounter","colors","labels","iEnd","styledMode","dataClassColor","colorIndex","minColor","maxColor","initStops","stops","normalizedValue","max","min","logarithmic","log2lin","from","to","Color_ColorAxisLike","highcharts_LegendSymbol_commonjs_highcharts_LegendSymbol_commonjs2_highcharts_LegendSymbol_root_Highcharts_LegendSymbol_","highcharts_LegendSymbol_commonjs_highcharts_LegendSymbol_commonjs2_highcharts_LegendSymbol_root_Highcharts_LegendSymbol_default","highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_","highcharts_SeriesRegistry_commonjs_highcharts_SeriesRegistry_commonjs2_highcharts_SeriesRegistry_root_Highcharts_SeriesRegistry_default","defaultOptions","Series","defined","ColorAxis_extend","fireEvent","isArray","isNumber","ColorAxis_merge","ColorAxis_pick","relativeLength","xAxis","lineWidth","minPadding","maxPadding","gridLineColor","gridLineWidth","tickPixelInterval","startOnTick","endOnTick","offset","marker","duration","width","distance","overflow","rotation","tickLength","ColorAxis","constructor","coll","init","horiz","layout","side","reversed","opposite","zoomEnabled","hasData","tickPositions","setTickPositions","setOptions","showEmpty","title","enabled","crosshair","setAxisSize","height","getSize","left","top","right","chartWidth","bottom","chartHeight","len","defaultLegendLength","getOffset","group","sideOffset","axisOffset","axisParent","drawLegendSymbol","render","getMargins","some","isDrilling","isDirty","added","labelLeft","labelRight","setLegendColor","one","zero","grad","linearGradient","x1","y1","x2","y2","padding","legendOptions","labelOptions","itemDistance","labelPadding","renderer","r","symbolRadius","zIndex","add","x","y","baseline","labelWidth","maxLabelLength","labelHeight","setState","state","getSeriesExtremes","colorValArray","calculatedExtremes","cSeries","dataMin","Infinity","dataMax","pointValKey","zoneAxis","getColumn","minColorValue","maxColorValue","cExtremes","getExtremes","Math","applyExtremes","drawCrosshair","crossPos","plotX","plotY","axisPos","axisLen","toPixels","cross","addedToColorAxis","addClass","getPlotLinePath","translatedValue","newOptions","destroyItems","destroy","slice","remove","name","legendItems","valueDecimals","valueSuffix","getPointsInDataClass","reduce","s","filter","numberFormatter","rectangle","isDataClass","affectedSeries","hiddenInDataClass","colorAxisHeight","colorAxisWidth","symbolWidth","symbolHeight","keepProps","Array","G","Chart","Fx","Legend","MapNavigationDefaults","lang","zoomIn","zoomOut","mapNavigation","buttonOptions","alignTo","align","verticalAlign","style","fontSize","fontWeight","theme","stroke","buttons","onclick","mapZoom","text","mouseWheelSensitivity","MapPointer_defined","MapPointer_extend","MapPointer_pick","wrap","totalWheelDeltaTimer","totalWheelDelta","onContainerDblClick","normalize","enableDoubleClickZoomTo","pointer","inClass","target","hoverPoint","zoomTo","isInsidePlot","chartX","plotLeft","chartY","plotTop","onContainerMouseWheel","delta","wheelDelta","deltaY","detail","abs","clearTimeout","setTimeout","mapView","zoomBy","wrapNormalize","proceed","chartPosition","lonLat","pixelsToLonLat","wrapZoomOption","enableTouchZoom","zooming","pinchType","PointerClass","pointerProto","Maps_MapPointer","bottomButton","w","h","brBoxY","brBoxHeight","roundedRect","topButton","Maps_MapSymbols","SVGRendererClass","bottombutton","topbutton","composed","MapNavigation_addEvent","MapNavigation_extend","MapNavigation_merge","objectEach","MapNavigation_pick","pushUnique","stopEvent","preventDefault","stopPropagation","cancelBubble","MapNavigation","MapChartClass","navButtons","mapNav","outerHandler","handler","navOptions","pop","forExport","enableButtons","navButtonsGroup","g","button","path","element","hasLoaded","unbind","isIntersectRect","box1","box2","expBtnBBox","exportingGroup","getBBox","navBtnsBBox","aboveExpBtn","belowExpBtn","mapNavVerticalAlign","translateY","updateEvents","enableDoubleClickZoom","unbindDblClick","container","enableMouseWheelZoom","unbindMouseWheel","initialZoom","zoom","highcharts_SVGElement_commonjs_highcharts_SVGElement_commonjs2_highcharts_SVGElement_root_Highcharts_SVGElement_","highcharts_SVGElement_commonjs_highcharts_SVGElement_commonjs2_highcharts_SVGElement_root_Highcharts_SVGElement_default","column","columnProto","seriesTypes","ColorMapComposition_addEvent","ColorMapComposition_defined","onPointAfterSetState","moveToTopOnHover","graphic","stateMarkerGraphic","css","pointerEvents","parentGroup","id","href","url","visibility","pointMembers","dataLabelOnNull","isValid","isNaN","seriesMembers","parallelArrays","pointArrayMap","trackerGroups","ret","colorProp","pointAttribs","Series_ColorMapComposition","highcharts_Series_commonjs_highcharts_Series_commonjs2_highcharts_Series_root_Highcharts_Series_","highcharts_Series_commonjs_highcharts_Series_commonjs2_highcharts_Series_root_Highcharts_Series_default","deg2rad","CenteredUtilities_fireEvent","CenteredUtilities_isNumber","CenteredUtilities_pick","CenteredUtilities_relativeLength","getCenter","slicingRoom","slicedOffset","plotWidth","plotHeight","centerOption","center","smallestSize","thickness","handleSlicingRoom","size","innerSize","parseFloat","positions","angular","test","getStartAndEndRadians","startAngle","endAngle","Series_CenteredUtilities","highcharts_Chart_commonjs_highcharts_Chart_commonjs2_highcharts_Chart_root_Highcharts_Chart_","highcharts_Chart_commonjs_highcharts_Chart_commonjs2_highcharts_Chart_root_Highcharts_Chart_default","highcharts_SVGRenderer_commonjs_highcharts_SVGRenderer_commonjs2_highcharts_SVGRenderer_root_Highcharts_SVGRenderer_","highcharts_SVGRenderer_commonjs_highcharts_SVGRenderer_commonjs2_highcharts_SVGRenderer_root_Highcharts_SVGRenderer_default","getOptions","MapChart_isNumber","MapChart_merge","MapChart_pick","MapChart","callback","defaultCreditsOptions","credits","panning","mapText","mapTextFull","tooltip","followTouchMove","howMuch","xProjected","yProjected","log","projection","inverse","recommendMapView","mapData","maps","mapChart","b","c","splitPath","arr","split","replace","pathToSegments","Chart_MapChart","Maps_MapUtilities","boundsFromPath","Number","MAX_VALUE","validBounds","seg","MapPoint_boundsFromPath","ScatterPoint","scatter","MapPoint_extend","MapPoint_isNumber","MapPoint_pick","MapPoint","getProjectedPath","projectedPath","geometry","hasCoordinates","applyOptions","joinBy","mapMap","joinKey","mapKey","mapPoint","getProjectedBounds","bounds","properties","propMiddleLon","propMiddleLat","projectedPoint","forward","midX","midY","propMiddleX","propMiddleY","middleX","middleYFraction","middleY","onMouseOver","colorInterval","nullInteraction","onMouseOut","dataLabel","animOptions","inset","insetIndex","insets","px1","projectedUnitsToPixels","px2","proj1","pixelsToProjectedUnits","proj2","fitToBounds","MapSeriesDefaults_isNumber","Maps_MapViewDefaults","fitToGeometry","maxZoom","parallels","insetOptions","borderColor","borderWidth","relativeTo","units","highcharts_Templating_commonjs_highcharts_Templating_commonjs2_highcharts_Templating_root_Highcharts_Templating_","highcharts_Templating_commonjs_highcharts_Templating_commonjs2_highcharts_Templating_root_Highcharts_Templating_default","win","format","error","GeoJSONComposition_extend","GeoJSONComposition_merge","GeoJSONComposition_wrap","chartFromLatLonToPoint","lonLatToProjectedUnits","chartFromPointToLatLon","projectedUnitsToLonLat","chartTransformFromLatLon","latLon","transform","proj4","jsonmarginX","jsonmarginY","jsonres","scale","xoffset","xpan","yoffset","ypan","projected","crs","lon","lat","cosAngle","cos","sinAngle","sin","rotated","chartTransformToLatLon","normalized","topo2geo","topology","objectName","keys","objects","arcsArray","arcs","positionArray","translate","j","jEnd","arcsToCoordinates","coordinates","arcNo","arc","reverse","geometries","features","geojson","copyright","copyrightShort","copyrightUrl","bbox","wrapChartAddCredit","mapCreditsFull","transformFromLatLon","fromLatLonToPoint","fromPointToLatLon","transformToLatLon","json","hType","pointOptions","feature","NAME","mapCredits","Maps_GeoJSONComposition","getCenterOfPoints","sum","getDistanceBetweenPoints","p1","p2","sqrt","pow","getAngleBetweenPoints","atan2","pointInPolygon","polygon","inside","Geometry_GeometryUtilities","clipPolygon","subjectPolygon","boundsPolygon","closed","clipEdge1","clipEdge2","prevPoint","currentPoint","outputList","inputList","isInside","intersection","p","dc","dp","n1","n2","n3","isIntersection","sign","LambertConformalConic_deg2rad","PI","halfPI","tany","tan","Projections_LambertConformalConic","lat1","lat2","cosLat1","projectedBounds","xy","outside","cy","rho","l","atan","M","Projections_EqualEarth","paramLat","asin","paramLatSq","paramLatPow6","A1","A2","A3","A4","fy","dlat","NaN","quarterPI","Miller_deg2rad","Projections_Miller","exp","Orthographic_deg2rad","Projections_Orthographic","antimeridianCutting","lonDeg","latDeg","z","cSin","WebMercator_deg2rad","Projections_WebMercator","maxLatitude","sinLat","clipLineString","Projection_clipLineString","Projection_clipPolygon","line","clamp","erase","Projection_deg2rad","wrapLon","hav","radians","havFromCoords","point1","point2","lon1","lon2","Projection","registry","angularDistance","geodesic","inclusive","stepDistance","cosLat1CosLon1","cosLat2CosLon2","cosLat1SinLon1","cosLat2SinLon2","sinLat1","sinLat2","pointDistance","angDistance","sinAng","jumps","round","lineString","step","fraction","A","B","lat3","lon3","insertGeodesics","poly","roughDistance","toString","join","hasGeoProjection","rotator","getRotator","ProjectionDefinition","def","lineIntersectsBounds","getIntersect","dim","val","otherDim","crossingVal","deltaLambda","deltaPhi","deltaGamma","cosDeltaPhi","sinDeltaPhi","cosDeltaGamma","sinDeltaGamma","cosLat","k","rLonLat","cutOnAntimeridian","isPolygon","polarIntersection","intersections","polygons","previousLonLat","antimeridian","direction","sort","lonPlus","lonMinus","polarLatitude","polarSegment","projectingToPlane","preclip","postclip","addToPath","firstValidLonLat","lastValidLonLat","movedTo","gap","pushToPath","someOutside","someInside","EqualEarth","LambertConformalConic","Miller","Orthographic","WebMercator","MapView_composed","MapView_boundsFromPath","MapView_addEvent","MapView_clamp","crisp","MapView_fireEvent","MapView_isArray","MapView_isNumber","isObject","isString","MapView_merge","MapView_pick","MapView_pushUnique","MapView_relativeLength","zoomFromBounds","playingField","worldSize","recommendedMapViewAfterDrill","seriesOptions","drilldown","mapZooming","MapView","compositeBounds","arrayOfBounds","acc","cur","mergeInsets","toObject","ob","insetsObj","allowTransformAnimation","eventsToUnbind","recommendedMapView","MapViewInset","recInsets","optInsets","plotBox","minZoom","createInsets","getField","hasRendered","setUpEvents","pad","fullField","padArr","setView","padded","getGeoMap","getMapBBox","getScale","allBounds","affectsMapView","fitToGeometryCache","xs","ys","getSVGTransform","projectedCenter","flipFactor","scaleX","scaleY","translateX","lonLatToPixels","mapTransforms","hitZone","coords","geoBounds","insetProjectedPoint","pxPoint","mapDataArray","geoMaps","allGeoBounds","geoMap","useMapGeometry","bottomLeft","topRight","boundsCenterProjected","field","getHitZone","centerPxX","centerPxY","mouseDownCenterProjected","mouseDownKey","mouseDownRotation","onPan","lastTouches","pinchDown","touches","mouseDownX","mouseDownY","startDistance","originalEvent","worldBounds","worldZoom","ratio","newCenter","evt","resetSelection","showResetZoom","newProjection","isDirtyProjection","Maps_Projection","isDirtyInsets","groups","transformGroups","clearBounds","chartCoords","offsetX","offsetY","geoBoundsProjectedBox","geoBoundsProjectedPolygon","segment","borderPath","animate","border","strokeWidth","f","animObject","stop","noop","ColumnSeries","ScatterSeries","MapSeries_extend","find","MapSeries_fireEvent","MapSeries_isArray","MapSeries_defined","MapSeries_isNumber","MapSeries_isObject","MapSeries_merge","MapSeries_objectEach","MapSeries_pick","MapSeries_splat","MapSeries","processedData","doFullTranslate","isResizing","drawMapDataLabels","drawDataLabels","dataLabelsGroup","clip","clipRect","drawPoints","className","toLowerCase","selected","params","complete","animateIn","animateOut","inheritedStrokeWidth","getStrokeWidth","removeAttribute","transformGroup","svgTransform","view","animatePoints","globalAnimation","startTranslateX","startTranslateY","startScale","now","fx","scaleStep","userStep","animator","applyDrilldown","bind","labelrank","Maps_MapView","pointAttrToOptions","dataTable","rowCount","pointStrokeWidth","stateOptions","states","stateStrokeWidth","seriesStrokeWidth","dashstyle","linecap","updateData","setData","data","updatePoints","processData","generatePoints","dataColumnKeys","props","chartOptions","dataUsed","mapDataObject","mapTitle","ix","Map_MapPoint","setNestedProperty","_i","allAreas","dataUsedString","itemOptions","mainSvgTransform","shapeType","shapeArgs","dataLabels","crop","formatter","stickyTracking","followPointer","pointFormat","turboThreshold","hover","halo","normal","select","legendSymbol","directTouch","drawGraph","forceDL","getExtremesFromAll","getSymbol","isCartesian","preserveAspectRatio","searchPoint","registerSeriesType","Map_MapSeries","MapLineSeries_extend","MapLineSeries_merge","MapLineSeries","fillColor","MapPointPoint_ScatterSeries","MapPointPoint_isNumber","MapPointPoint","MapPointSeries_noop","MapPointSeries_MapSeries","MapPointSeries_ScatterSeries","MapPointSeries_extend","MapPointSeries_fireEvent","MapPointSeries_isNumber","MapPointSeries_merge","MapPointSeries","projectPoint","didBounds","plotCoords","isPointInside","zone","zones","getZone","defer","mapmarker","anchorX","anchorY","isLegendSymbol","context","Bubble_BubbleLegendDefaults","connectorClassName","connectorColor","connectorDistance","connectorWidth","allowOverlap","maxSize","minSize","legendIndex","ranges","sizeBy","sizeByAbsoluteValue","zThreshold","BubbleLegendItem_color","BubbleLegendItem_noop","arrayMax","arrayMin","BubbleLegendItem_isNumber","BubbleLegendItem_merge","BubbleLegendItem_pick","stableSort","Bubble_BubbleLegendItem","addToLegend","items","connectorSpace","bubbleLegend","autoRanges","maxLabel","getMaxLabelSize","radius","movementX","seriesIndex","bubbleAttribs","connectorAttribs","labelAttribs","rtl","fillOpacity","range","setOpacity","getRangeRadius","bubbleSeries","zMax","zMin","getRadius","connectors","bubbleItems","itemStyle","renderRange","hideOverlappingLabels","mainRange","labelsOptions","elementCenter","absoluteRadius","labelsAlign","posX","posY","crispMovement","connectorLength","circle","crispLine","formatLabel","position","placed","alignAttr","labelSize","newOpacity","oldOpacity","show","hide","getRanges","rangesOptions","zData","minZ","maxZ","isBubble","ignoreSeries","displayNegative","predictBubbleSizes","floating","horizontal","lastLineHeight","plotSizeX","plotSizeY","pxSizes","getPxExtremes","ceil","minPxSize","maxPxSize","plotSize","calculatedSize","updateRanges","bubbleLegendOptions","correctSizes","BubbleLegendComposition_setOptions","BubbleLegendComposition_composed","BubbleLegendComposition_addEvent","BubbleLegendComposition_objectEach","BubbleLegendComposition_pushUnique","BubbleLegendComposition_wrap","chartDrawChartBox","bubbleSizes","getVisibleBubbleSeriesIndex","setScale","updateNames","ticks","tick","isNew","isNewLabel","retranslateItems","getLinesHeights","lines","lastLine","legendItem2","itemHeight","bubbleSeriesIndex","onLegendItemClick","status","defaultPrevented","orgTranslateX","orgTranslateY","actualLine","Bubble_BubbleLegendComposition","highcharts_Point_commonjs_highcharts_Point_commonjs2_highcharts_Point_root_Highcharts_Point_","highcharts_Point_commonjs_highcharts_Point_commonjs2_highcharts_Point_root_Highcharts_Point_default","BubblePoint_ScatterPoint","BubblePoint_extend","BubblePoint","haloPath","computedSize","inverted","yAxis","ttBelow","Bubble_BubblePoint","BubbleSeries_color","BubbleSeries_composed","BubbleSeries_noop","BubbleSeries_Series","BubbleSeries_columnProto","BubbleSeries_ScatterSeries","BubbleSeries_addEvent","BubbleSeries_arrayMax","BubbleSeries_arrayMin","BubbleSeries_clamp","BubbleSeries_extend","BubbleSeries_isNumber","BubbleSeries_merge","BubbleSeries_pick","BubbleSeries_pushUnique","onAxisFoundExtremes","axisLength","isXAxis","pxMin","pxMax","transA","hasActiveSeries","bubblePadding","reserveSpace","allowZoomOutside","onPoint","getRadii","radii","onAxisAfterRender","categories","tickCount","BubbleSeries","AxisClass","animationLimit","markerAttribs","yData","zExtremes","bubbleZExtremes","valid","otherSeries","getZExtremes","yValue","sizeByArea","zRange","markerOptions","translateBubble","negative","dlBox","getPxSize","isPercent","parseInt","searchKDTree","compareX","suppliedPointEvaluator","suppliedBSideCheckEvaluator","comparisonProp","p1Dist","p2Dist","flip","lineColor","radiusPlus","softThreshold","alignDataLabel","applyZones","keysAffectYAxis","specialGroup","Bubble_BubbleSeries","mapPointProto","MapBubblePoint_extend","MapBubblePoint","mapProto","mappoint","MapBubbleSeries_mapPointProto","MapBubbleSeries_extend","MapBubbleSeries_merge","MapBubbleSeries","kdAxisArray","xyFromShape","HeatmapPoint_ScatterPoint","HeatmapPoint_clamp","HeatmapPoint_defined","HeatmapPoint_extend","HeatmapPoint_pick","HeatmapPoint","formatPrefix","getCellAttributes","xPad","colsize","yPad","rowsize","pointPlacement","pointPlacementToXValue","pointPadding","cellAttr","dimension","plotPos","widthOrHeight","halfCellSize","HeatmapSeriesDefaults_isNumber","doc","InterpolationUtilities_defined","InterpolationUtilities_pick","HeatmapSeries_Series","HeatmapSeries_ColumnSeries","HeatmapSeries_ScatterSeries","HeatmapSeries_symbols","HeatmapSeries_addEvent","HeatmapSeries_extend","HeatmapSeries_fireEvent","HeatmapSeries_isNumber","HeatmapSeries_merge","HeatmapSeries_pick","colorFromPoint","HeatmapSeries_colorFromPoint","getContext","HeatmapSeries_getContext","rgba","canvas","clearRect","createElement","willReadFrequently","HeatmapSeries","valueMax","valueMin","isDirtyCanvas","interpolation","seriesMarkerOptions","image","xRev","yRev","dimensions","ctx","xMin","xMax","yMin","yMax","xDelta","yDelta","lastX","imgMultiple","lastY","transformX","transformY","last","rev","rounding","v","canvasWidth","canvasArea","pixelToPointScale","pointsLen","pixelData","Uint8ClampedArray","pointInPixels","set","putImageData","ImageData","toDataURL","_hasPointMarkers","getValidPoints","insideOnly","pointRange","axisPointRange","ellipse","borderRadius","hasImage","pointMarkerOptions","seriesStateOptions","pointStateOptions","widthPlus","heightPlus","plotOptions","seriesPlotOptions","heatmapPlotOptions","heatmap","brighten","brightness","shape","hasRegularShape","sizeDiff","clientX","lineWidthPlus","map_src_G","Map","MapBubble_MapBubbleSeries","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