/** * Highmaps JS v11.2.0 (2023-10-30) * * Highmaps as a plugin for Highcharts or Highcharts Stock. * * (c) 2011-2021 Torstein Honsi * * License: www.highcharts.com/license */!function(t){"object"==typeof module&&module.exports?(t.default=t,module.exports=t):"function"==typeof define&&define.amd?define("highcharts/modules/map",["highcharts"],function(e){return t(e),t.Highcharts=e,t}):t("undefined"!=typeof Highcharts?Highcharts:void 0)}(function(t){"use strict";var e=t?t._modules:{};function o(t,e,o,i){t.hasOwnProperty(e)||(t[e]=i.apply(null,o),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}o(e,"Core/Axis/Color/ColorAxisComposition.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(t,e){var o,i=t.parse,r=e.addEvent,n=e.extend,s=e.merge,a=e.pick,l=e.splat;return function(t){var o,p=[];function h(){var t=this,e=this.options;this.colorAxis=[],e.colorAxis&&(e.colorAxis=l(e.colorAxis),e.colorAxis.map(function(e){return new o(t,e)}))}function c(t){var e,o,i=this,r=this.chart.colorAxis||[],n=function(e){var o=t.allItems.indexOf(e);-1!==o&&(i.destroyItem(t.allItems[o]),t.allItems.splice(o,1))},s=[];for(r.forEach(function(t){(e=t.options)&&e.showInLegend&&(e.dataClasses&&e.visible?s=s.concat(t.getDataClassLegendSymbols()):e.visible&&s.push(t),t.series.forEach(function(t){(!t.options.showInLegend||e.dataClasses)&&("point"===t.options.legendType?t.points.forEach(function(t){n(t)}):n(t))}))}),o=s.length;o--;)t.allItems.unshift(s[o])}function u(t){t.visible&&t.item.legendColor&&t.item.legendItem.symbol.attr({fill:t.item.legendColor})}function d(t){var e;null===(e=this.chart.colorAxis)||void 0===e||e.forEach(function(e){e.update({},t.redraw)})}function f(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function y(){var t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function m(t){var e=this,o=t?"show":"hide";e.visible=e.options.visible=!!t,["graphic","dataLabel"].forEach(function(t){e[t]&&e[t][o]()}),this.series.buildKDTree()}function g(){var t=this,e=this.data.length?this.data:this.points,o=this.options.nullColor,i=this.colorAxis,r=this.colorKey;e.forEach(function(e){var n=e.getNestedProperty(r),s=e.options.color||(e.isNull||null===e.value?o:i&&void 0!==n?i.toColor(n,e):e.color||t.color);s&&e.color!==s&&(e.color=s,"point"===t.options.legendType&&e.legendItem&&e.legendItem.label&&t.chart.legend.colorizeItem(e,e.visible))})}function v(){this.elem.attr("fill",i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)}function b(){this.elem.attr("stroke",i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)}t.compose=function(t,i,l,x,M){if(o||(o=t),e.pushUnique(p,i)){var j,C=i.prototype;C.collectionsWithUpdate.push("colorAxis"),C.collectionsWithInit.colorAxis=[C.addColorAxis],r(i,"afterGetAxes",h),j=i.prototype.createAxis,i.prototype.createAxis=function(t,e){if("colorAxis"!==t)return j.apply(this,arguments);var i=new o(this,s(e.axis,{index:this[t].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0}),a(e.redraw,!0)&&this.redraw(e.animation),i}}if(e.pushUnique(p,l)){var w=l.prototype;w.fillSetter=v,w.strokeSetter=b}e.pushUnique(p,x)&&(r(x,"afterGetAllItems",c),r(x,"afterColorizeItem",u),r(x,"afterUpdate",d)),e.pushUnique(p,M)&&(n(M.prototype,{optionalAxis:"colorAxis",translateColors:g}),n(M.prototype.pointClass.prototype,{setVisible:m}),r(M,"afterTranslate",f,{order:1}),r(M,"bindAxes",y))},t.pointSetVisible=m}(o||(o={})),o}),o(e,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0}}),o(e,"Core/Axis/Color/ColorAxisLike.js",[e["Core/Color/Color.js"],e["Core/Utilities.js"]],function(t,e){var o,i,r=t.parse,n=e.merge;return(o=i||(i={})).initDataClasses=function(t){var e,o,i,s=this.chart,a=this.legendItem=this.legendItem||{},l=this.options,p=t.dataClasses||[],h=s.options.chart.colorCount,c=0;this.dataClasses=o=[],a.labels=[];for(var u=0,d=p.length;u=i)&&(void 0===r||t<=r)){n=s.color,e&&(e.dataClass=a,e.colorIndex=s.colorIndex);break}}else{for(o=this.normalizedValue(t),a=p.length;a--&&!(o>p[a][0]););i=p[a]||p[a+1],o=1-((r=p[a+1]||i)[0]-o)/(r[0]-i[0]||1),n=i.color.tweenTo(r.color,o)}return n},i}),o(e,"Core/Axis/Color/ColorAxis.js",[e["Core/Axis/Axis.js"],e["Core/Axis/Color/ColorAxisComposition.js"],e["Core/Axis/Color/ColorAxisDefaults.js"],e["Core/Axis/Color/ColorAxisLike.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o,i,r,n,s){var a,l=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),p=n.series,h=s.extend,c=s.fireEvent,u=s.isArray,d=s.isNumber,f=s.merge,y=s.pick,m=function(t){function i(e,o){var i=t.call(this,e,o)||this;return i.beforePadding=!1,i.chart=void 0,i.coll="colorAxis",i.dataClasses=void 0,i.options=void 0,i.stops=void 0,i.visible=!0,i.init(e,o),i}return l(i,t),i.compose=function(t,o,r,n){e.compose(i,t,o,r,n)},i.prototype.init=function(e,o){var r=e.options.legend||{},n=o.layout?"vertical"!==o.layout:"vertical"!==r.layout,s=o.visible,a=f(i.defaultColorAxisOptions,o,{showEmpty:!1,title:null,visible:r.enabled&&!1!==s});this.side=o.side||n?2:1,this.reversed=o.reversed||!n,this.opposite=!n,t.prototype.init.call(this,e,a,"colorAxis"),this.userOptions=o,u(e.userOptions.colorAxis)&&(e.userOptions.colorAxis[this.index]=o),o.dataClasses&&this.initDataClasses(o),this.initStops(),this.horiz=n,this.zoomEnabled=!1},i.prototype.hasData=function(){return!!(this.tickPositions||[]).length},i.prototype.setTickPositions=function(){if(!this.dataClasses)return t.prototype.setTickPositions.call(this)},i.prototype.setOptions=function(e){t.prototype.setOptions.call(this,e),this.options.crosshair=this.options.marker},i.prototype.setAxisSize=function(){var t,e,o,r,n=this.legendItem&&this.legendItem.symbol,s=this.chart,a=s.options.legend||{};n?(this.left=t=n.attr("x"),this.top=e=n.attr("y"),this.width=o=n.attr("width"),this.height=r=n.attr("height"),this.right=s.chartWidth-t-o,this.bottom=s.chartHeight-e-r,this.len=this.horiz?o:r,this.pos=this.horiz?t:e):this.len=(this.horiz?a.symbolWidth:a.symbolHeight)||i.defaultLegendLength},i.prototype.getOffset=function(){var e=this.legendItem&&this.legendItem.group,o=this.chart.axisOffset[this.side];if(e){this.axisParent=e,t.prototype.getOffset.call(this);var r=this.chart.legend;r.allItems.forEach(function(t){t instanceof i&&t.drawLegendSymbol(r,t)}),r.render(),this.chart.getMargins(!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=o}},i.prototype.setLegendColor=function(){var t=this.horiz,e=this.reversed,o=e?1:0,i=e?0:1,r=t?[o,0,i,0]:[0,i,0,o];this.legendColor={linearGradient:{x1:r[0],y1:r[1],x2:r[2],y2:r[3]},stops:this.stops}},i.prototype.drawLegendSymbol=function(t,e){var o,r=e.legendItem||{},n=t.padding,s=t.options,a=this.options.labels,l=y(s.itemDistance,10),p=this.horiz,h=y(s.symbolWidth,p?i.defaultLegendLength:12),c=y(s.symbolHeight,p?12:i.defaultLegendLength),u=y(s.labelPadding,p?16:30);this.setLegendColor(),r.symbol||(r.symbol=this.chart.renderer.symbol("roundedRect",0,t.baseline-11,h,c,{r:null!==(o=s.symbolRadius)&&void 0!==o?o:3}).attr({zIndex:1}).add(r.group)),r.labelWidth=h+n+(p?l:y(a.x,a.distance)+this.maxLabelLength),r.labelHeight=c+n+(p?u:0)},i.prototype.setState=function(t){this.series.forEach(function(e){e.setState(t)})},i.prototype.setVisible=function(){},i.prototype.getSeriesExtremes=function(){var t,e,o,i,r,n,s,a,l=this.series,h=l.length;for(this.dataMin=1/0,this.dataMax=-1/0;h--;){if(e=(n=l[h]).colorKey=y(n.options.colorKey,n.colorKey,n.pointValKey,n.zoneAxis,"y"),i=n.pointArrayMap,r=n[e+"Min"]&&n[e+"Max"],n[e+"Data"])t=n[e+"Data"];else if(i){if(t=[],o=i.indexOf(e),s=n.yData,o>=0&&s)for(a=0;aa+l&&(i=a+l+2),o.plotX=i,o.plotY=this.len-i,t.prototype.drawCrosshair.call(this,e,o),o.plotX=n,o.plotY=s,this.cross&&!this.cross.addedToColorAxis&&r.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(r.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color})))},i.prototype.getPlotLinePath=function(e){var o=this.left,i=e.translatedValue,r=this.top;return d(i)?this.horiz?[["M",i-4,r-6],["L",i+4,r-6],["L",i,r],["Z"]]:[["M",o,i],["L",o-6,i+6],["L",o-6,i-6],["Z"]]:t.prototype.getPlotLinePath.call(this,e)},i.prototype.update=function(e,o){var i=this.chart.legend;this.series.forEach(function(t){t.isDirtyData=!0}),(e.dataClasses&&i.allItems||this.dataClasses)&&this.destroyItems(),t.prototype.update.call(this,e,o),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),i.colorizeItem(this,!0))},i.prototype.destroyItems=function(){var t=this.chart,e=this.legendItem||{};if(e.label)t.legend.destroyItem(this);else if(e.labels)for(var o=0,i=e.labels;o "),void 0!==u&&(t+=f(u,s)+a),void 0!==u&&void 0!==d&&(t+=" - "),void 0!==d&&(t+=f(d,s)+a),i.push(h({chart:o,name:t,options:{},drawLegendSymbol:r.rectangle,visible:!0,isDataClass:!0,setState:function(t){for(var e=0,o=l(p);e=1&&(l+=Math.abs(r),e&&clearTimeout(e),e=setTimeout(function(){l=0},50)),l<10&&i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&i.mapView&&i.mapView.zoomBy(-((i.options.mapNavigation.mouseWheelSensitivity-1)*r),void 0,[t.chartX,t.chartY],!(1>Math.abs(r))&&void 0)}function c(t,e,o){var r=this.chart;if(e=t.call(this,e,o),r&&r.mapView){var n=r.mapView.pixelsToLonLat({x:e.chartX-r.plotLeft,y:e.chartY-r.plotTop});n&&i(e,n)}return e}function u(t,e,o,i,r,n,s){var a;t.call(this,e,o,i,r,n,s),"map"===this.chart.options.chart.type&&this.hasZoom&&(a=i.scaleX>i.scaleY,this.pinchTranslateDirection(!a,e,o,i,r,n,s,a?i.scaleX:i.scaleY))}function d(t){var e=this.chart.options.mapNavigation;e&&r(e.enableTouchZoom,e.enabled)&&(this.chart.zooming.pinchType="xy"),t.apply(this,[].slice.call(arguments,1))}t.compose=function(t){if(n(a,t)){var e=t.prototype;i(e,{onContainerDblClick:p,onContainerMouseWheel:h}),s(e,"normalize",c),s(e,"pinchTranslate",u),s(e,"zoomOption",d)}}}(e||(e={})),e}),o(e,"Maps/MapSymbols.js",[e["Core/Utilities.js"]],function(t){var e,o=t.pushUnique,i=[];function r(t,o,i,r,n){if(n){var s=(null==n?void 0:n.r)||0;n.brBoxY=o-s,n.brBoxHeight=r+s}return e.roundedRect(t,o,i,r,n)}function n(t,o,i,r,n){if(n){var s=(null==n?void 0:n.r)||0;n.brBoxHeight=r+s}return e.roundedRect(t,o,i,r,n)}return{compose:function(t){o(i,t)&&((e=t.prototype.symbols).bottombutton=r,e.topbutton=n)}}}),o(e,"Maps/MapNavigation.js",[e["Core/Defaults.js"],e["Maps/MapNavigationDefaults.js"],e["Maps/MapPointer.js"],e["Maps/MapSymbols.js"],e["Core/Utilities.js"]],function(t,e,o,i,r){var n=t.setOptions,s=r.addEvent,a=r.extend,l=r.merge,p=r.objectEach,h=r.pick,c=r.pushUnique,u=[];function d(t){t&&(t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)}return function(){function t(t){this.navButtonsGroup=void 0,this.chart=t,this.navButtons=[],this.init(t)}return t.compose=function(r,a,l){o.compose(a),i.compose(l),c(u,r)&&s(r,"beforeRender",function(){this.mapNavigation=new t(this),this.mapNavigation.update()}),c(u,n)&&n(e)},t.prototype.init=function(t){this.chart=t},t.prototype.update=function(t){var e,o=this,i=o.chart,r=o.navButtons,n=function(t){this.handler.call(i,t),d(t)},c=i.options.mapNavigation;for(t&&(c=i.options.mapNavigation=l(i.options.mapNavigation,t));r.length;)r.pop().destroy();!i.renderer.forExport&&h(c.enableButtons,c.enabled)&&(o.navButtonsGroup||(o.navButtonsGroup=i.renderer.g().attr({zIndex:4}).add()),p(c.buttons,function(t,p){t=l(c.buttonOptions,t),!i.styledMode&&t.theme&&((e=t.theme).style=l(t.theme.style,t.style));var h,u=t.text,f=t.width,y=void 0===f?0:f,m=t.height,g=void 0===m?0:m,v=t.padding,b=void 0===v?0:v,x=i.renderer.button("+"!==u&&"-"!==u&&u||"",0,0,n,e,void 0,void 0,void 0,"zoomIn"===p?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+({zoomIn:"zoom-in",zoomOut:"zoom-out"})[p]).attr({width:y,height:g,title:i.options.lang[p],padding:t.padding,zIndex:5}).add(o.navButtonsGroup);if("+"===u||"-"===u){var M=y+1,j=[["M",b+3,b+g/2],["L",b+M-3,b+g/2]];"+"===u&&j.push(["M",b+M/2,b+3],["L",b+M/2,b+g-3]),i.renderer.path(j).addClass("highcharts-button-symbol").attr(i.styledMode?{}:{stroke:null===(h=t.style)||void 0===h?void 0:h.color,"stroke-width":3,"stroke-linecap":"round"}).add(x)}if(x.handler=t.onclick,s(x.element,"dblclick",d),r.push(x),a(t,{width:x.width,height:2*(x.height||0)}),i.hasLoaded)x.align(t,!1,t.alignTo);else var C=s(i,"load",function(){x.element&&x.align(t,!1,t.alignTo),C()})}),i.hasLoaded||s(i,"render",function(){var t=i.exportingGroup&&i.exportingGroup.getBBox();if(t){var e=o.navButtonsGroup.getBBox();if(!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y)){var r=-e.y-e.height+t.y-5,n=t.y+t.height-e.y+5,s=c.buttonOptions&&c.buttonOptions.verticalAlign;o.navButtonsGroup.attr({translateY:"bottom"===s?r:n})}}})),this.updateEvents(c)},t.prototype.updateEvents=function(t){var e=this.chart;h(t.enableDoubleClickZoom,t.enabled)||t.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||s(e.container,"dblclick",function(t){e.pointer.onContainerDblClick(t)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),h(t.enableMouseWheelZoom,t.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||s(e.container,"wheel",function(t){return e.pointer.inClass(t.target,"highcharts-no-mousewheel")||(e.pointer.onContainerMouseWheel(t),d(t)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},t}()}),o(e,"Series/ColorMapComposition.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var o,i=t.seriesTypes.column.prototype,r=e.addEvent,n=e.defined;return function(t){var o=[];function s(t){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:t&&"hover"===t.state?1:0})}t.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},t.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){var e={};return n(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:i.pointAttribs},t.compose=function(t){var i=t.prototype.pointClass;return e.pushUnique(o,i)&&r(i,"afterSetState",s),t}}(o||(o={})),o}),o(e,"Core/Chart/MapChart.js",[e["Core/Chart/Chart.js"],e["Core/Defaults.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],function(t,e,o,i){var r,n,s=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),a=e.getOptions,l=i.isNumber,p=i.merge,h=i.pick,c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.init=function(e,o){var i=a().credits,r=p({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:h(i.mapText,' \xa9 {geojson.copyrightShort}'),mapTextFull:h(i.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},e);t.prototype.init.call(this,r,o)},e.prototype.mapZoom=function(t,e,o,i,r){this.mapView&&(l(t)&&(t=Math.log(t)/Math.log(.5)),this.mapView.zoomBy(t,l(e)&&l(o)?this.mapView.projection.inverse([e,o]):void 0,l(i)&&l(r)?[i,r]:void 0))},e}(t);return(n=c||(c={})).maps={},n.mapChart=function(t,e,o){return new n(t,e,o)},n.splitPath=function(t){var e;return e="string"==typeof t?(t=t.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(t){return/[A-za-z]/.test(t)?t:parseFloat(t)}):t,o.prototype.pathToSegments(e)},c}),o(e,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(t){var e,o=-Number.MAX_VALUE,i=Number.MAX_VALUE,r=-Number.MAX_VALUE,n=Number.MAX_VALUE;if(t.forEach(function(t){var s=t[t.length-2],a=t[t.length-1];"number"==typeof s&&"number"==typeof a&&(i=Math.min(i,s),o=Math.max(o,s),n=Math.min(n,a),r=Math.max(r,a),e=!0)}),e)return{x1:i,y1:n,x2:o,y2:r}},pointInPolygon:function(t,e){var o,i,r=!1,n=t.x,s=t.y;for(o=0,i=e.length-1;os!=e[i][1]>s&&n<(e[i][0]-e[o][0])*(s-e[o][1])/(e[i][1]-e[o][1])+e[o][0]&&(r=!r);return r}}}),o(e,"Series/Map/MapPoint.js",[e["Series/ColorMapComposition.js"],e["Maps/MapUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o,i){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=e.boundsFromPath,a=o.seriesTypes.scatter.prototype.pointClass,l=i.extend,p=i.isNumber,h=i.pick,c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.path=void 0,e.series=void 0,e}return n(e,t),e.getProjectedPath=function(t,e){return t.projectedPath||(e&&t.geometry?(e.hasCoordinates=!0,t.projectedPath=e.path(t.geometry)):t.projectedPath=t.path),t.projectedPath||[]},e.prototype.applyOptions=function(e,o){var i=this.series,r=t.prototype.applyOptions.call(this,e,o),n=i.joinBy;if(i.mapData&&i.mapMap){var s=n[1],a=t.prototype.getNestedProperty.call(this,s),p=void 0!==a&&i.mapMap[a];p?l(r,p):-1!==i.pointArrayMap.indexOf("value")&&(r.value=r.value||null)}return r},e.prototype.getProjectedBounds=function(t){var o=s(e.getProjectedPath(this,t)),i=this.properties,r=this.series.chart.mapView;if(o){var n=i&&i["hc-middle-lon"],a=i&&i["hc-middle-lat"];if(r&&p(n)&&p(a)){var l=t.forward([n,a]);o.midX=l[0],o.midY=l[1]}else{var c=i&&i["hc-middle-x"],u=i&&i["hc-middle-y"];o.midX=o.x1+(o.x2-o.x1)*h(this.middleX,p(c)?c:.5);var d=h(this.middleY,p(u)?u:.5);this.geometry||(d=1-d),o.midY=o.y2-(o.y2-o.y1)*d}return o}},e.prototype.onMouseOver=function(e){i.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?t.prototype.onMouseOver.call(this,e):this.series.onMouseOut()},e.prototype.setVisible=function(t){this.visible=this.options.visible=!!t,this.dataLabel&&this.dataLabel[t?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},e.prototype.zoomTo=function(t){var e=this.series.chart,o=e.mapView,i=this.bounds;if(o&&i){var r=p(this.insetIndex)&&o.insets[this.insetIndex];if(r){var n=r.projectedUnitsToPixels({x:i.x1,y:i.y1}),s=r.projectedUnitsToPixels({x:i.x2,y:i.y2}),a=o.pixelsToProjectedUnits({x:n.x,y:n.y}),l=o.pixelsToProjectedUnits({x:s.x,y:s.y});i={x1:a.x,y1:a.y,x2:l.x,y2:l.y}}o.fitToBounds(i,void 0,!1),this.series.isDirty=!0,e.redraw(t)}},e}(a);return l(c.prototype,{dataLabelOnNull:t.pointMembers.dataLabelOnNull,moveToTopOnHover:t.pointMembers.moveToTopOnHover,isValid:t.pointMembers.isValid}),c}),o(e,"Series/Map/MapSeriesDefaults.js",[e["Core/Utilities.js"]],function(t){var e=t.isNumber;return{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var t=this.series.chart.numberFormatter,o=this.point.value;return e(o)?t(o,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}
"},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"}}),o(e,"Maps/MapViewDefaults.js",[],function(){return{center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"#cccccc",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}}),o(e,"Maps/GeoJSONComposition.js",[e["Core/Globals.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],function(t,e,o){var i,r=t.win,n=e.format,s=o.error,a=o.extend,l=o.merge,p=o.pushUnique,h=o.wrap;return function(t){var e=[];function o(t){return this.mapView&&this.mapView.lonLatToProjectedUnits(t)}function i(t){return this.mapView&&this.mapView.projectedUnitsToLonLat(t)}function c(t,e){var o=this.options.chart.proj4||r.proj4;if(!o){s(21,!1,this);return}var i=e.jsonmarginX,n=e.jsonmarginY,a=e.jsonres,l=void 0===a?1:a,p=e.scale,h=void 0===p?1:p,c=e.xoffset,u=e.xpan,d=e.yoffset,f=e.ypan,y=o(e.crs,[t.lon,t.lat]),m=e.cosAngle||e.rotation&&Math.cos(e.rotation),g=e.sinAngle||e.rotation&&Math.sin(e.rotation),v=e.rotation?[y[0]*m+y[1]*g,-y[0]*g+y[1]*m]:y;return{x:((v[0]-(void 0===c?0:c))*h+(void 0===u?0:u))*l+(void 0===i?0:i),y:-((((void 0===d?0:d)-v[1])*h+(void 0===f?0:f))*l-(void 0===n?0:n))}}function u(t,e){var o=this.options.chart.proj4||r.proj4;if(!o){s(21,!1,this);return}if(null!==t.y){var i=e.jsonmarginX,n=e.jsonmarginY,a=e.jsonres,l=void 0===a?1:a,p=e.scale,h=void 0===p?1:p,c=e.xoffset,u=e.xpan,d=e.yoffset,f=e.ypan,y={x:((t.x-(void 0===i?0:i))/l-(void 0===u?0:u))/h+(void 0===c?0:c),y:((t.y-(void 0===n?0:n))/l+(void 0===f?0:f))/h+(void 0===d?0:d)},m=e.cosAngle||e.rotation&&Math.cos(e.rotation),g=e.sinAngle||e.rotation&&Math.sin(e.rotation),v=o(e.crs,"WGS84",e.rotation?{x:y.x*m+-(y.y*g),y:y.x*g+y.y*m}:y);return{lat:v.y,lon:v.x}}}function d(t,e){e||(e=Object.keys(t.objects)[0]);var o=t.objects[e];if(o["hc-decoded-geojson"])return o["hc-decoded-geojson"];var i=t.arcs;if(t.transform){var r=t.arcs,n=t.transform,s=n.scale,a=n.translate,l=void 0,p=void 0,h=void 0;i=[];for(var c=0,u=r.length;c(e[1]-t[1])*(o[0]-t[0])}function o(t,e,o,i){var r=[t[0]-e[0],t[1]-e[1]],n=[o[0]-i[0],o[1]-i[1]],s=t[0]*e[1]-t[1]*e[0],a=o[0]*i[1]-o[1]*i[0],l=1/(r[0]*n[1]-r[1]*n[0]),p=[(s*n[0]-a*r[0])*l,(s*n[1]-a*r[1])*l];return p.isIntersection=!0,p}return{clipLineString:function(e,o){for(var i=[],r=t(e,o,!1),n=1;n0?1:-1},e=Math.PI/180,o=Math.PI/2,i=function(t){return Math.tan((o+t)/2)};return function(){function r(o){var r,n=(o.parallels||[]).map(function(t){return t*e}),s=n[0]||0,a=null!==(r=n[1])&&void 0!==r?r:s,l=Math.cos(s);"object"==typeof o.projectedBounds&&(this.projectedBounds=o.projectedBounds);var p=s===a?Math.sin(s):Math.log(l/Math.cos(a))/Math.log(i(a)/i(s));1e-10>Math.abs(p)&&(p=1e-10*(t(p)||1)),this.n=p,this.c=l*Math.pow(i(s),p)/p}return r.prototype.forward=function(t){var r=this.c,n=this.n,s=this.projectedBounds,a=t[0]*e,l=t[1]*e;r>0?l<-o+1e-6&&(l=-o+1e-6):l>o-1e-6&&(l=o-1e-6);var p=r/Math.pow(i(l),n),h=p*Math.sin(n*a)*63.78137,c=(r-p*Math.cos(n*a))*63.78137,u=[h,c];return s&&(hs.x2||cs.y2)&&(u.outside=!0),u},r.prototype.inverse=function(i){var r=this.c,n=this.n,s=i[0]/63.78137,a=r-i[1]/63.78137,l=t(n)*Math.sqrt(s*s+a*a),p=Math.atan2(s,Math.abs(a))*t(a);return a*n<0&&(p-=Math.PI*t(s)*t(a)),[p/n/e,(2*Math.atan(Math.pow(r/l,1/n))-o)/e]},r}()}),o(e,"Maps/Projections/EqualEarth.js",[],function(){var t=Math.sqrt(3)/2;return function(){function e(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return e.prototype.forward=function(e){var o=Math.PI/180,i=Math.asin(t*Math.sin(e[1]*o)),r=i*i,n=r*r*r;return[e[0]*o*Math.cos(i)*74.03120656864502/(t*(1.340264+-.24331799999999998*r+n*(.0062510000000000005+.034164*r))),74.03120656864502*i*(1.340264+-.081106*r+n*(893e-6+.003796*r))]},e.prototype.inverse=function(e){for(var o,i,r,n,s=e[0]/74.03120656864502,a=e[1]/74.03120656864502,l=180/Math.PI,p=a,h=0;h<12&&(i=(o=p*p)*o*o,r=p*(1.340264+-.081106*o+i*(893e-6+.003796*o))-a,p-=n=r/(1.340264+-.24331799999999998*o+i*(.0062510000000000005+.034164*o)),!(1e-9>Math.abs(n)));++h);i=(o=p*p)*o*o;var c=l*t*s*(1.340264+-.24331799999999998*o+i*(.0062510000000000005+.034164*o))/Math.cos(p),u=l*Math.asin(Math.sin(p)/t);return Math.abs(c)>180?[NaN,NaN]:[c,u]},e}()}),o(e,"Maps/Projections/Miller.js",[],function(){var t=Math.PI/4,e=Math.PI/180;return function(){function o(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return o.prototype.forward=function(o){return[o[0]*e*63.78137,79.7267125*Math.log(Math.tan(t+.4*o[1]*e))]},o.prototype.inverse=function(o){return[o[0]/63.78137/e,2.5*(Math.atan(Math.exp(.8*(o[1]/63.78137)))-t)/e]},o}()}),o(e,"Maps/Projections/Orthographic.js",[],function(){var t=Math.PI/180;return function(){function e(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}return e.prototype.forward=function(e){var o=e[0],i=e[1]*t,r=[Math.cos(i)*Math.sin(o*t)*63.78460826781007,63.78460826781007*Math.sin(i)];return(o<-90||o>90)&&(r.outside=!0),r},e.prototype.inverse=function(e){var o=e[0]/63.78460826781007,i=e[1]/63.78460826781007,r=Math.sqrt(o*o+i*i),n=Math.asin(r),s=Math.sin(n);return[Math.atan2(o*s,r*Math.cos(n))/t,Math.asin(r&&i*s/r)/t]},e}()}),o(e,"Maps/Projections/WebMercator.js",[],function(){var t=Math.PI/180;return function(){function e(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}return e.prototype.forward=function(e){var o=Math.sin(e[1]*t),i=[63.78137*e[0]*t,63.78137*Math.log((1+o)/(1-o))/2];return Math.abs(e[1])>this.maxLatitude&&(i.outside=!0),i},e.prototype.inverse=function(e){return[e[0]/(63.78137*t),(2*Math.atan(Math.exp(e[1]/63.78137))-Math.PI/2)/t]},e}()}),o(e,"Maps/Projections/ProjectionRegistry.js",[e["Maps/Projections/LambertConformalConic.js"],e["Maps/Projections/EqualEarth.js"],e["Maps/Projections/Miller.js"],e["Maps/Projections/Orthographic.js"],e["Maps/Projections/WebMercator.js"]],function(t,e,o,i,r){return{EqualEarth:e,LambertConformalConic:t,Miller:o,Orthographic:i,WebMercator:r}}),o(e,"Maps/Projection.js",[e["Core/Geometry/PolygonClip.js"],e["Maps/Projections/ProjectionRegistry.js"],e["Core/Utilities.js"]],function(t,e,o){var i=this&&this.__spreadArray||function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r180&&(t-=360),t}return function(){function t(e){void 0===e&&(e={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=e;var o=e.name,i=e.projectedBounds,r=e.rotation;this.rotator=r?this.getRotator(r):void 0;var n=o?t.registry[o]:void 0;n&&(this.def=new n(e));var s=this.def,a=this.rotator;s&&(this.maxLatitude=s.maxLatitude||90,this.hasGeoProjection=!0),a&&s?(this.forward=function(t){return s.forward(a.forward(t))},this.inverse=function(t){return a.inverse(s.inverse(t))}):s?(this.forward=function(t){return s.forward(t)},this.inverse=function(t){return s.inverse(t)}):a&&(this.forward=a.forward,this.inverse=a.inverse),this.bounds="world"===i?s&&s.bounds:i}return t.add=function(e,o){t.registry[e]=o},t.greatCircle=function(t,e,o){var i=Math.atan2,r=Math.cos,n=Math.sin,s=Math.sqrt,a=t[1]*l,p=t[0]*l,h=e[1]*l,c=e[0]*l,u=h-a,d=c-p,f=n(u/2)*n(u/2)+r(a)*r(h)*n(d/2)*n(d/2),y=2*i(s(f),s(1-f)),m=Math.round(6371e3*y/5e5),g=[];if(o&&g.push(t),m>1)for(var v=1/m,b=v;b<.999;b+=v){var x=n((1-b)*y)/n(y),M=n(b*y)/n(y),j=x*r(a)*r(p)+M*r(h)*r(c),C=x*r(a)*n(p)+M*r(h)*n(c),w=i(x*n(a)+M*n(h),s(j*j+C*C)),P=i(C,j);g.push([P/l,w/l])}return o&&g.push(e),g},t.insertGreatCircles=function(e){for(var o=e.length-1;o--;)if(Math.max(Math.abs(e[o][0]-e[o+1][0]),Math.abs(e[o][1]-e[o+1][1]))>10){var r=t.greatCircle(e[o],e[o+1]);r.length&&e.splice.apply(e,i([o+1,0],r,!1))}},t.toString=function(t){var e=t||{},o=e.name,i=e.rotation;return[o,i&&i.join(",")].join(";")},t.prototype.lineIntersectsBounds=function(t){var e,o=this.bounds||{},i=o.x1,r=o.x2,n=o.y1,s=o.y2,a=function(t,e,o){var i=t[0],r=t[1],n=e?0:1;if("number"==typeof o&&i[e]>=o!=r[e]>=o){var s=(o-i[e])/(r[e]-i[e]),a=i[n]+s*(r[n]-i[n]);return e?[a,o]:[o,a]}},l=t[0];return(e=a(t,0,i))?(l=e,t[1]=e):(e=a(t,0,r))&&(l=e,t[1]=e),(e=a(t,1,n))?l=e:(e=a(t,1,s))&&(l=e),l},t.prototype.getRotator=function(t){var e=t[0]*l,o=(t[1]||0)*l,i=(t[2]||0)*l,r=Math.cos(o),n=Math.sin(o),s=Math.cos(i),a=Math.sin(i);if(0!==e||0!==o||0!==i)return{forward:function(t){var o=t[0]*l+e,i=t[1]*l,p=Math.cos(i),h=Math.cos(o)*p,c=Math.sin(o)*p,u=Math.sin(i),d=u*r+h*n;return[Math.atan2(c*s-d*a,h*r-u*n)/l,Math.asin(d*s+c*a)/l]},inverse:function(t){var o=t[0]*l,i=t[1]*l,p=Math.cos(i),h=Math.cos(o)*p,c=Math.sin(o)*p,u=Math.sin(i),d=u*s-c*a;return[(Math.atan2(c*s+u*a,h*r+d*n)-e)/l,Math.asin(d*r-h*n)/l]}}},t.prototype.forward=function(t){return t},t.prototype.inverse=function(t){return t},t.prototype.cutOnAntimeridian=function(e,o){for(var r,n=[],l=[e],h=0,c=e.length;h90)&&(y<-90||y>90)&&f>0!=y>0){var m=s((180-(f+360)%360)/((y+360)%360-(f+360)%360),0,1),g=d[1]+m*(u[1]-d[1]);n.push({i:h,lat:g,direction:f<0?1:-1,previousLonLat:d,lonLat:u})}}if(n.length){if(o){n.length%2==1&&(r=n.slice().sort(function(t,e){return Math.abs(e.lat)-Math.abs(t.lat)})[0],a(n,r));for(var h=n.length-2;h>=0;){var v=n[h].i,b=p(180+1e-6*n[h].direction),x=p(180-1e-6*n[h].direction),M=e.splice.apply(e,i([v,n[h+1].i-v],t.greatCircle([b,n[h].lat],[b,n[h+1].lat],!0),!1));M.push.apply(M,t.greatCircle([x,n[h+1].lat],[x,n[h].lat],!0)),l.push(M),h-=2}if(r)for(var j=0;j-1){for(var S=(g<0?-1:1)*this.maxLatitude,f=p(180+1e-6*C),y=p(180-1e-6*C),A=t.greatCircle([f,g],[f,S],!0),L=f+120*C;L>-180&&L<180;L+=120*C)A.push([L,S]);A.push.apply(A,t.greatCircle([y,S],[y,r.lat],!0)),w.splice.apply(w,i([P,0],A,!1));break}}}else for(var h=n.length;h--;){var v=n[h].i,M=e.splice(v,e.length,[p(180+1e-6*n[h].direction),n[h].lat]);M.unshift([p(180-1e-6*n[h].direction),n[h].lat]),l.push(M)}}return l},t.prototype.path=function(e){var o,i=this,s=this.bounds,a=this.def,l=this.rotator,p=[],h="Polygon"===e.type||"MultiPolygon"===e.type,c=this.hasGeoProjection,u=!a||!1!==a.antimeridianCutting,d=u?l:void 0,f=u&&a||this;s&&(o=[[s.x1,s.y1],[s.x2,s.y1],[s.x2,s.y2],[s.x1,s.y2]]);var y=function(e){var a=e.map(function(t){if(u){d&&(t=d.forward(t));var e=t[0];1e-6>Math.abs(e-180)&&(e=e<180?179.999999:180.000001),t=[e,t[1]]}return t}),l=[a];c&&(t.insertGreatCircles(a),u&&(l=i.cutOnAntimeridian(a,h))),l.forEach(function(e){if(!(e.length<2)){var i,a,l=!1,d=!1,y=function(t){l?p.push(["L",t[0],t[1]]):(p.push(["M",t[0],t[1]]),l=!0)},m=!1,g=!1,v=e.map(function(t){var e=f.forward(t);return e.outside?m=!0:g=!0,e[1]===1/0?e[1]=1e10:e[1]===-1/0&&(e[1]=-1e10),e});if(u){if(h&&v.push(v[0]),m){if(!g)return;if(o){if(h)v=n(v,o);else if(s){r(v,o).forEach(function(t){l=!1,t.forEach(y)});return}}}v.forEach(y)}else for(var b=0;b180&&i-e>90?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[e,i],rotation:[-(t+o)/2]}}}),this.geoMap=p[0]}this.userOptions=r||{},o.options.mapView&&o.options.mapView.recommendedMapView&&(n=o.options.mapView.recommendedMapView);var f=v(t,{projection:s},n,r),m=n&&n.insets,g=r&&r.insets;m&&g&&(f.insets=e.mergeInsets(m,g)),this.chart=o,this.center=f.center,this.options=f,this.projection=new i(f.projection),this.playingField=o.plotBox,this.zoom=f.zoom||0,this.minZoom=f.minZoom,this.createInsets(),this.eventsToUnbind.push(c(o,"afterSetChartSize",function(){l.playingField=l.getField(),(void 0===l.minZoom||l.minZoom===l.zoom)&&(l.fitToBounds(void 0,void 0,!1),!l.chart.hasRendered&&y(l.userOptions.zoom)&&(l.zoom=l.userOptions.zoom),l.userOptions.center&&v(!0,l.center,l.userOptions.center))})),this.setUpEvents()}return e.compose=function(t){x(j,t)&&(C=t.maps,c(t,"afterInit",function(){this.mapView=new e(this,this.options.mapView)},{order:0}))},e.compositeBounds=function(t){if(t.length)return t.slice(1).reduce(function(t,e){return t.x1=Math.min(t.x1,e.x1),t.y1=Math.min(t.y1,e.y1),t.x2=Math.max(t.x2,e.x2),t.y2=Math.max(t.y2,e.y2),t},v(t[0]))},e.mergeInsets=function(t,e){var o=function(t){var e={};return t.forEach(function(t,o){e[t&&t.id||"i".concat(o)]=t}),e},i=v(o(t),o(e));return Object.keys(i).map(function(t){return i[t]})},e.prototype.createInsets=function(){var t=this,e=this.options,o=e.insets;o&&o.forEach(function(o){var i=new S(t,v(e.insetOptions,o));t.insets.push(i)})},e.prototype.fitToBounds=function(t,e,o,i){void 0===o&&(o=!0);var r=t||this.getProjectedBounds();if(r){var n=b(e,t?0:this.options.padding),s=this.getField(!1),a=f(n)?n:[n,n,n,n];this.padding=[M(a[0],s.height),M(a[1],s.width),M(a[2],s.height),M(a[3],s.width)],this.playingField=this.getField();var l=w(r,this.playingField);t||(this.minZoom=l);var p=this.projection.inverse([(r.x2+r.x1)/2,(r.y2+r.y1)/2]);this.setView(p,l,o,i)}},e.prototype.getField=function(t){void 0===t&&(t=!0);var e=t?this.padding:[0,0,0,0];return{x:e[3],y:e[0],width:this.chart.plotWidth-e[1]-e[3],height:this.chart.plotHeight-e[0]-e[2]}},e.prototype.getGeoMap=function(t){if(g(t))return C[t]&&"Topology"===C[t].type?l(C[t]):C[t];if(m(t,!0)){if("FeatureCollection"===t.type)return t;if("Topology"===t.type)return l(t)}},e.prototype.getMapBBox=function(){var t=this.getProjectedBounds(),e=this.getScale();if(t){var o=this.padding,i=this.projectedUnitsToPixels({x:t.x1,y:t.y2});return{width:(t.x2-t.x1)*e+o[1]+o[3],height:(t.y2-t.y1)*e+o[0]+o[2],x:i.x-o[3],y:i.y-o[0]}}},e.prototype.getProjectedBounds=function(){var t=this.projection,o=this.chart.series.reduce(function(t,e){var o=e.getProjectedBounds&&e.getProjectedBounds();return o&&!1!==e.options.affectsMapView&&t.push(o),t},[]),i=this.options.fitToGeometry;if(i){if(!this.fitToGeometryCache){if("MultiPoint"===i.type){var r=i.coordinates.map(function(e){return t.forward(e)}),n=r.map(function(t){return t[0]}),s=r.map(function(t){return t[1]});this.fitToGeometryCache={x1:Math.min.apply(0,n),x2:Math.max.apply(0,n),y1:Math.min.apply(0,s),y2:Math.max.apply(0,s)}}else this.fitToGeometryCache=p(t.path(i))}return this.fitToGeometryCache}return this.projection.bounds||e.compositeBounds(o)},e.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)},e.prototype.getSVGTransform=function(){var t=this.playingField,e=t.x,o=t.y,i=t.width,r=t.height,n=this.projection.forward(this.center),s=this.projection.hasCoordinates?-1:1,a=this.getScale(),l=a*s,p=e+i/2-n[0]*a,h=o+r/2-n[1]*l;return{scaleX:a,scaleY:l,translateX:p,translateY:h}},e.prototype.lonLatToPixels=function(t){var e=this.lonLatToProjectedUnits(t);if(e)return this.projectedUnitsToPixels(e)},e.prototype.lonLatToProjectedUnits=function(t){var e=this.chart,o=e.mapTransforms;if(o){for(var i in o)if(Object.hasOwnProperty.call(o,i)&&o[i].hitZone){var r=e.transformFromLatLon(t,o[i]);if(r&&h(r,o[i].hitZone.coordinates[0]))return r}return e.transformFromLatLon(t,o.default)}for(var n=0,s=this.insets;na+p&&g>a&&(n[0]+=Math.min(b-p-a,g-a)/c),x-vl+h&&v>l&&(n[1]-=Math.min(x-h-l,v-l)/c),this.center=this.projection.inverse(n)}this.insets.forEach(function(t){t.options.field&&(t.hitZone=t.getHitZone(),t.playingField=t.getField())}),this.render()}d(this,"afterSetView"),o&&this.redraw(i)},e.prototype.projectedUnitsToPixels=function(t){var e=this.getScale(),o=this.projection.forward(this.center),i=this.playingField,r=i.x+i.width/2,n=i.y+i.height/2;return{x:r-e*(o[0]-t.x),y:n+e*(o[1]-t.y)}},e.prototype.pixelsToLonLat=function(t){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(t))},e.prototype.pixelsToProjectedUnits=function(t){var e=t.x,o=t.y,i=this.getScale(),r=this.projection.forward(this.center),n=this.playingField,s=n.x+n.width/2,a=n.y+n.height/2;return{x:r[0]+(e-s)/i,y:r[1]-(o-a)/i}},e.prototype.setUpEvents=function(){var t,e,o,i=this,r=this.chart,n=function(n){var s=r.pointer.pinchDown,a=i.projection,l=r.mouseDownX,p=r.mouseDownY;if(1===s.length&&(l=s[0].chartX,p=s[0].chartY),"number"==typeof l&&"number"==typeof p){var h="".concat(l,",").concat(p),c=n.originalEvent,d=c.chartX,f=c.chartY;h!==e&&(e=h,t=i.projection.forward(i.center),o=(i.projection.options.rotation||[0,0]).slice());var m=a.def&&a.def.bounds,g=m&&w(m,i.playingField)||-1/0;if("Orthographic"===a.options.name&&(i.minZoom||1/0)<1.3*g){var v=440/(i.getScale()*Math.min(r.plotWidth,r.plotHeight));if(o){var b=(l-d)*v-o[0],x=u(-o[1]-(p-f)*v,-80,80),M=i.zoom;i.update({projection:{rotation:[-b,-x]}},!1),i.fitToBounds(void 0,void 0,!1),i.zoom=M,r.redraw(!1)}}else if(y(d)&&y(f)){var j=i.getScale(),C=i.projection.hasCoordinates?1:-1,P=i.projection.inverse([t[0]+(l-d)/j,t[1]-(p-f)/j*C]);isNaN(P[0]+P[1])||i.setView(P,void 0,!0,!1)}n.preventDefault()}};c(r,"pan",n),c(r,"touchpan",n),c(r,"selection",function(t){if(t.resetSelection)i.zoomBy();else{var e=t.x-r.plotLeft,o=t.y-r.plotTop,n=i.pixelsToProjectedUnits({x:e,y:o}),s=n.y,a=n.x,l=i.pixelsToProjectedUnits({x:e+t.width,y:o+t.height}),p=l.y,h=l.x;i.fitToBounds({x1:a,y1:s,x2:h,y2:p},void 0,!0,!t.originalEvent.touches&&void 0),/^touch/.test(t.originalEvent.type)||r.showResetZoom(),t.preventDefault()}})},e.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},e.prototype.update=function(t,e,o){void 0===e&&(e=!0);var r=t.projection,n=r&&i.toString(r)!==i.toString(this.options.projection),s=!1;v(!0,this.userOptions,t),v(!0,this.options,t),"insets"in t&&(this.insets.forEach(function(t){return t.destroy()}),this.insets.length=0,s=!0),(n||"fitToGeometry"in t)&&delete this.fitToGeometryCache,(n||s)&&(this.chart.series.forEach(function(t){var e=t.transformGroups;if(t.clearBounds&&t.clearBounds(),t.isDirty=!0,t.isDirtyData=!0,s&&e)for(;e.length>1;){var o=e.pop();o&&o.destroy()}}),n&&(this.projection=new i(this.options.projection)),s&&this.createInsets(),!t.center&&Object.hasOwnProperty.call(t,"zoom")&&!y(t.zoom)&&this.fitToBounds(void 0,void 0,!1)),t.center||y(t.zoom)?this.setView(this.options.center,t.zoom,!1):"fitToGeometry"in t&&this.fitToBounds(void 0,void 0,!1),e&&this.chart.redraw(o)},e.prototype.zoomBy=function(t,e,o,i){var r=this.chart,n=this.projection.forward(this.center),s=e?this.projection.forward(e):[],a=s[0],l=s[1];if("number"==typeof t){var p=this.zoom+t,h=void 0;if(o){var c=o[0],u=o[1],d=this.getScale(),f=c-r.plotLeft-r.plotWidth/2,y=u-r.plotTop-r.plotHeight/2;a=n[0]+f/d,l=n[1]+y/d}if("number"==typeof a&&"number"==typeof l){var d=1-Math.pow(2,this.zoom)/Math.pow(2,p),f=n[0]-a,y=n[1]-l;n[0]-=f*d,n[1]+=y*d,h=this.projection.inverse(n)}this.setView(h,p,void 0,i)}else this.fitToBounds(void 0,void 0,void 0,i)},e}(),S=function(t){function e(e,o){var i=t.call(this,e.chart,o)||this;if(i.id=o.id,i.mapView=e,i.options=v({center:[0,0]},e.options.insetOptions,o),i.allBounds=[],i.options.geoBounds){var r=e.projection.path(i.options.geoBounds);i.geoBoundsProjectedBox=p(r),i.geoBoundsProjectedPolygon=r.map(function(t){return[t[1]||0,t[2]||0]})}return i}return s(e,t),e.prototype.getField=function(e){void 0===e&&(e=!0);var o=this.hitZone;if(o){var i=e?this.padding:[0,0,0,0],r=o.coordinates[0],n=r.map(function(t){return t[0]}),s=r.map(function(t){return t[1]}),a=Math.min.apply(0,n)+i[3],l=Math.max.apply(0,n)-i[1],p=Math.min.apply(0,s)+i[0],h=Math.max.apply(0,s)-i[2];if(y(a)&&y(p))return{x:a,y:p,width:l-a,height:h-p}}return t.prototype.getField.call(this,e)},e.prototype.getHitZone=function(){var t=this.chart,e=this.mapView,o=this.options,i=(o.field||{}).coordinates;if(i){var r=i[0];if("percent"===o.units){var n="mapBoundingBox"===o.relativeTo&&e.getMapBBox()||v(t.plotBox,{x:0,y:0});r=r.map(function(t){return[M("".concat(t[0],"%"),n.width,n.x),M("".concat(t[1],"%"),n.height,n.y)]})}return{type:"Polygon",coordinates:[r]}}},e.prototype.getProjectedBounds=function(){return P.compositeBounds(this.allBounds)},e.prototype.isInside=function(t){var e=this.geoBoundsProjectedBox,o=this.geoBoundsProjectedPolygon;return!!(e&&t.x>=e.x1&&t.x<=e.x2&&t.y>=e.y1&&t.y<=e.y2&&o&&h(t,o))},e.prototype.render=function(){var t=this.chart,e=this.mapView,o=this.options,i=o.borderPath||o.field;if(i&&e.group){var r=!0;this.border||(this.border=t.renderer.path().addClass("highcharts-mapview-inset-border").add(e.group),r=!1),t.styledMode||this.border.attr({stroke:o.borderColor,"stroke-width":o.borderWidth});var n=Math.round(this.border.strokeWidth())%2/2,s="mapBoundingBox"===o.relativeTo&&e.getMapBBox()||e.playingField,a=(i.coordinates||[]).reduce(function(e,i){return i.reduce(function(e,i,r){var a=i[0],l=i[1];return"percent"===o.units&&(a=t.plotLeft+M("".concat(a,"%"),s.width,s.x),l=t.plotTop+M("".concat(l,"%"),s.height,s.y)),a=Math.floor(a)+n,l=Math.floor(l)+n,e.push(0===r?["M",a,l]:["L",a,l]),e},e)},[]);this.border[r?"animate":"attr"]({d:a})}},e.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(t){return t()})},e.prototype.setUpEvents=function(){},e}(P);return P}),o(e,"Series/Map/MapSeries.js",[e["Core/Animation/AnimationUtilities.js"],e["Series/ColorMapComposition.js"],e["Series/CenteredUtilities.js"],e["Core/Globals.js"],e["Core/Chart/MapChart.js"],e["Series/Map/MapPoint.js"],e["Series/Map/MapSeriesDefaults.js"],e["Maps/MapView.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o,i,r,n,s,a,l,p){var h,c=this&&this.__extends||(h=function(t,e){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),u=t.animObject,d=t.stop,f=i.noop,y=r.splitPath,m=l.seriesTypes,g=m.column,v=m.scatter,b=p.extend,x=p.find,M=p.fireEvent,j=p.getNestedProperty,C=p.isArray,w=p.defined,P=p.isNumber,S=p.isObject,A=p.merge,L=p.objectEach,T=p.pick,O=p.splat,z=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.chart=void 0,e.data=void 0,e.group=void 0,e.joinBy=void 0,e.options=void 0,e.points=void 0,e.processedData=[],e}return c(e,t),e.prototype.animate=function(t){var e=this.chart,o=this.group,i=u(this.options.animation);t?o.attr({translateX:e.plotLeft+e.plotWidth/2,translateY:e.plotTop+e.plotHeight/2,scaleX:.001,scaleY:.001}):o.animate({translateX:e.plotLeft,translateY:e.plotTop,scaleX:1,scaleY:1},i)},e.prototype.clearBounds=function(){this.points.forEach(function(t){delete t.bounds,delete t.insetIndex,delete t.projectedPath}),delete this.bounds},e.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)},e.prototype.drawMapDataLabels=function(){t.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},e.prototype.drawPoints=function(){var t=this,e=this,o=this.chart,i=this.group,r=this.transformGroups,n=void 0===r?[]:r,s=o.mapView,a=o.renderer;if(s){this.transformGroups=n,n[0]||(n[0]=a.g().add(i));for(var l=0,p=s.insets.length;l0?1:-1,c=function(o){(e.points||[]).forEach(function(e){var i,r=e.graphic;r&&r["stroke-width"]&&(i=t.getStrokeWidth(e.options))&&r.attr({"stroke-width":i/o})})};if(a.globalAnimation&&o.hasRendered&&s.allowTransformAnimation){var f=Number(i.attr("translateX")),y=Number(i.attr("translateY")),m=Number(i.attr("scaleX")),g=function(t,e){var o=m+(p-m)*e.pos;i.attr({translateX:f+(n.translateX-f)*e.pos,translateY:y+(n.translateY-y)*e.pos,scaleX:o,scaleY:o*h,"stroke-width":l/o}),c(o)},v=A(u(a.globalAnimation)),b=v.step;v.step=function(){b&&b.apply(this,arguments),g.apply(this,arguments)},i.attr({animator:0}).animate({animator:1},v,function(){"boolean"!=typeof a.globalAnimation&&a.globalAnimation.complete&&a.globalAnimation.complete({applyDrilldown:!0})})}else d(i),i.attr(A(n,{"stroke-width":l/p})),c(p)}),this.isDrilling||this.drawMapDataLabels()}},e.prototype.getProjectedBounds=function(){var t=this;if(!this.bounds&&this.chart.mapView){var e=this.chart.mapView,o=e.insets,i=e.projection,r=[];(this.points||[]).forEach(function(e){if(e.path||e.geometry){if("string"==typeof e.path?e.path=y(e.path):C(e.path)&&"M"===e.path[0]&&(e.path=t.chart.renderer.pathToSegments(e.path)),!e.bounds){var n=e.getProjectedBounds(i);if(n){e.labelrank=T(e.labelrank,(n.x2-n.x1)*(n.y2-n.y1));var s=n.midX,a=n.midY;if(o&&P(s)&&P(a)){var l=x(o,function(t){return t.isInside({x:s,y:a})});l&&(delete e.projectedPath,(n=e.getProjectedBounds(l.projection))&&l.allBounds.push(n),e.insetIndex=o.indexOf(l))}e.bounds=n}}e.bounds&&void 0===e.insetIndex&&r.push(e.bounds)}}),this.bounds=a.compositeBounds(r)}return this.bounds},e.prototype.getStrokeWidth=function(t){var e=this.pointAttrToOptions;return t[e&&e["stroke-width"]||"borderWidth"]},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.pointAttribs=function(t,e){var o,i=t.series.chart,r=i.mapView,n=i.styledMode?this.colorAttribs(t):g.prototype.pointAttribs.call(this,t,e),s=this.getStrokeWidth(t.options);if(e){var a=A(this.options.states&&this.options.states[e],t.options.states&&t.options.states[e]||{}),l=this.getStrokeWidth(a);w(l)&&(s=l),n.stroke=null!==(o=a.borderColor)&&void 0!==o?o:t.color}s&&r&&(s/=r.getScale());var p=this.getStrokeWidth(this.options);return n.dashstyle&&r&&P(p)&&(s=p/r.getScale()),t.visible||(n.fill=this.options.nullColor),w(s)?n["stroke-width"]=s:delete n["stroke-width"],n["stroke-linecap"]=n["stroke-linejoin"]=this.options.linecap,n},e.prototype.updateData=function(){return!this.processedData&&t.prototype.updateData.apply(this,arguments)},e.prototype.setData=function(e,o,i,r){void 0===o&&(o=!0),delete this.bounds,t.prototype.setData.call(this,e,!1,void 0,r),this.processData(),this.generatePoints(),o&&this.chart.redraw(i)},e.prototype.processData=function(){var t,e,o,r=this.options,s=r.data,a=this.chart,l=a.options.chart,p=this.joinBy,h=r.keys||this.pointArrayMap,c=[],u={},d=this.chart.mapView,f=d&&(S(r.mapData,!0)?d.getGeoMap(r.mapData):d.geoMap),y=a.mapTransforms=l.mapTransforms||f&&f["hc-transform"]||a.mapTransforms;y&&L(y,function(t){t.rotation&&(t.cosAngle=Math.cos(t.rotation),t.sinAngle=Math.sin(t.rotation))}),C(r.mapData)?o=r.mapData:f&&"FeatureCollection"===f.type&&(this.mapTitle=f.title,o=i.geojson(f,this.type,this)),this.processedData=[];var m=this.processedData;if(s)for(var g=void 0,v=0,b=s.length;vh.length&&"string"==typeof g[0]&&(m[v]["hc-key"]=g[0],++x);for(var M=0;M0?n.prototype.setNestedProperty(m[v],g[x],h[M]):m[v][h[M]]=g[x])}else m[v]=s[v];p&&"_i"===p[0]&&(m[v]._i=v)}if(o){this.mapData=o,this.mapMap={};for(var v=0;v0?e:0,this.maxLabel=a,this.movementX="left"===r.labels.align?e:0,i.labelWidth=u+e+o,i.labelHeight=u+a.height/2},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,o=this.chart.series[e.seriesIndex],i=this.legend.baseline,n={zIndex:e.zIndex,"stroke-width":e.borderWidth},s={zIndex:e.zIndex,"stroke-width":e.connectorWidth},a={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},l=o.options.marker.fillOpacity,c=this.chart.styledMode;t.forEach(function(u,d){c||(n.stroke=h(u.borderColor,e.borderColor,o.color),n.fill=h(u.color,e.color,1!==l?r(o.color).setOpacity(l).get("rgba"):o.color),s.stroke=h(u.connectorColor,e.connectorColor,o.color)),t[d].radius=this.getRangeRadius(u.value),t[d]=p(t[d],{center:t[0].radius-t[d].radius+i}),c||p(!0,t[d],{bubbleAttribs:p(n),connectorAttribs:p(s),labelAttribs:a})},this)},t.prototype.getRangeRadius=function(t){var e=this.options,o=this.options.seriesIndex,i=this.chart.series[o],r=e.ranges[0].value,n=e.ranges[e.ranges.length-1].value,s=e.minSize,a=e.maxSize;return i.getRadius.call(this,n,r,s,a,t)},t.prototype.render=function(){var t=this.legendItem||{},e=this.chart.renderer,o=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item").css(this.legend.itemStyle||{}),t.symbol.translateX=0,t.symbol.translateY=0,t.symbol.add(t.label),t.label.add(t.group);for(var i=0,r=this.ranges;i=o&&this.renderRange(n)}this.hideOverlappingLabels()},t.prototype.renderRange=function(t){var e=this.ranges[0],o=this.legend,i=this.options,r=i.labels,n=this.chart,s=n.series[i.seriesIndex],a=n.renderer,l=this.symbols,p=l.labels,h=t.center,c=Math.abs(t.radius),u=i.connectorDistance||0,d=r.align,f=o.options.rtl,y=i.borderWidth,m=i.connectorWidth,g=e.radius||0,v=h-c-y/2+m/2,b=(v%1?1:.5)-(m%2?0:.5),x=a.styledMode,M=f||"left"===d?-u:u;"center"===d&&(M=0,i.connectorDistance=0,t.labelAttribs.align="center"),l.bubbleItems.push(a.circle(g,h+b,c).attr(x?{}:t.bubbleAttribs).addClass((x?"highcharts-color-"+s.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(i.className||"")).add(this.legendItem.symbol)),l.connectors.push(a.path(a.crispLine([["M",g,v],["L",g+M,v]],i.connectorWidth)).attr(x?{}:t.connectorAttribs).addClass((x?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(i.connectorClassName||"")).add(this.legendItem.symbol));var j=a.text(this.formatLabel(t)).attr(x?{}:t.labelAttribs).css(x?{}:r.style).addClass("highcharts-bubble-legend-labels "+(i.labels.className||"")).add(this.legendItem.symbol),C={x:g+M+i.labels.x,y:v+i.labels.y+.4*j.getBBox().height};j.attr(C),p.push(j),j.placed=!0,j.alignAttr=C},t.prototype.getMaxLabelSize=function(){var t,e;return this.symbols.labels.forEach(function(o){e=o.getBBox(!0),t=t?e.width>t.width?e:t:e}),t||{}},t.prototype.formatLabel=function(t){var o=this.options,i=o.labels.formatter,r=o.labels.format,n=this.chart.numberFormatter;return r?e.format(r,t):i?i.call(t):n(t.value,1)},t.prototype.hideOverlappingLabels=function(){var t=this.chart,e=this.options.labels.allowOverlap,o=this.symbols;!e&&o&&(t.hideOverlappingLabels(o.labels),o.labels.forEach(function(t,e){t.newOpacity?t.newOpacity!==t.oldOpacity&&o.connectors[e].show():o.connectors[e].hide()}))},t.prototype.getRanges=function(){var t,e,o=this.legend.bubbleLegend,i=o.chart.series,r=o.options.ranges,n=Number.MAX_VALUE,c=-Number.MAX_VALUE;return i.forEach(function(t){t.isBubble&&!t.ignoreSeries&&(e=t.zData.filter(l)).length&&(n=h(t.options.zMin,Math.min(n,Math.max(a(e),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),c=h(t.options.zMax,Math.max(c,s(e))))}),t=n===c?[{value:c}]:[{value:n},{value:(n+c)/2},{value:c,autoRanges:!0}],r.length&&r[0].radius&&t.reverse(),t.forEach(function(e,o){r&&r[o]&&(t[o]=p(r[o],e))}),t},t.prototype.predictBubbleSizes=function(){var t,e=this.chart,o=e.legend.options,i=o.floating,r="horizontal"===o.layout,n=r?e.legend.lastLineHeight:0,s=e.plotSizeX,a=e.plotSizeY,l=e.series[this.options.seriesIndex],p=l.getPxExtremes(),h=Math.ceil(p.minPxSize),c=Math.ceil(p.maxPxSize),u=l.options.maxSize;return i||!/%$/.test(u)?t=c:(t=(Math.min(a,s)+n)*(u=parseFloat(u))/100/(u/100+1),(r&&a-t>=s||!r&&s-t>=a)&&(t=c)),[h,Math.ceil(t)]},t.prototype.updateRanges=function(t,e){var o=this.legend.options.bubbleLegend;o.minSize=t,o.maxSize=e,o.ranges=this.getRanges()},t.prototype.correctSizes=function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)>1&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())},t}()}),o(e,"Series/Bubble/BubbleLegendComposition.js",[e["Series/Bubble/BubbleLegendDefaults.js"],e["Series/Bubble/BubbleLegendItem.js"],e["Core/Defaults.js"],e["Core/Utilities.js"]],function(t,e,o,i){var r=o.setOptions,n=i.addEvent,s=i.objectEach,a=i.wrap,l=[];function p(t,e,o){var i,r,n,a=this.legend,l=h(this)>=0;a&&a.options.enabled&&a.bubbleLegend&&a.options.bubbleLegend.autoRanges&&l?(i=a.bubbleLegend.options,r=a.bubbleLegend.predictBubbleSizes(),a.bubbleLegend.updateRanges(r[0],r[1]),i.placed||(a.group.placed=!1,a.allItems.forEach(function(t){(n=t.legendItem||{}).group&&(n.group.translateY=void 0)})),a.render(),this.getMargins(),this.axes.forEach(function(t){t.visible&&t.render(),i.placed||(t.setScale(),t.updateNames(),s(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0}))}),i.placed=!0,this.getMargins(),t.call(this,e,o),a.bubbleLegend.correctSizes(),f(a,c(a))):(t.call(this,e,o),a&&a.options.enabled&&a.bubbleLegend&&(a.render(),f(a,c(a))))}function h(t){for(var e=t.series,o=0;oe.height&&(e.height=r[l].itemHeight);e.step=a}return n}function u(t){var o=this.bubbleLegend,i=this.options,r=i.bubbleLegend,n=h(this.chart);o&&o.ranges&&o.ranges.length&&(r.ranges.length&&(r.autoRanges=!!r.ranges[0].autoRanges),this.destroyItem(o)),n>=0&&i.enabled&&r.enabled&&(r.seriesIndex=n,this.bubbleLegend=new e(r,this),this.bubbleLegend.addToLegend(t.allItems))}function d(t){if(t.defaultPrevented)return!1;var e,o=this.chart,i=this.visible,r=this.chart.legend;r&&r.bubbleLegend&&(this.visible=!i,this.ignoreSeries=i,e=h(o)>=0,r.bubbleLegend.visible!==e&&(r.update({bubbleLegend:{enabled:e}}),r.bubbleLegend.visible=e),this.visible=i)}function f(t,e){var o,i,r,n,s=t.allItems,a=t.options.rtl,l=0;s.forEach(function(t,s){(n=t.legendItem||{}).group&&(o=n.group.translateX||0,i=n.y||0,((r=t.movementX)||a&&t.ranges)&&(r=a?o-t.options.maxSize/2:o+r,n.group.attr({translateX:r})),s>e[l].step&&l++,n.group.attr({translateY:Math.round(i+e[l].height/2)}),n.y=i+e[l].height/2)})}return{compose:function(e,o,s){i.pushUnique(l,e)&&(r({legend:{bubbleLegend:t}}),a(e.prototype,"drawChartBox",p)),i.pushUnique(l,o)&&n(o,"afterGetAllItems",u),i.pushUnique(l,s)&&n(s,"legendItemClick",d)}}}),o(e,"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=e.seriesTypes.scatter.prototype.pointClass,s=o.extend,a=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return r(o,e),o.prototype.haloPath=function(e){return t.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},o}(n);return s(a.prototype,{ttBelow:!1}),a}),o(e,"Series/Bubble/BubbleSeries.js",[e["Series/Bubble/BubbleLegendComposition.js"],e["Series/Bubble/BubblePoint.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o,i,r,n){var s,a=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),l=o.parse,p=i.noop,h=r.series,c=r.seriesTypes,u=c.column.prototype,d=c.scatter,f=n.addEvent,y=n.arrayMax,m=n.arrayMin,g=n.clamp,v=n.extend,b=n.isNumber,x=n.merge,M=n.pick,j=[];function C(){var t,e=this,o=this.len,i=(this.chart,this.isXAxis),r=i?"xData":"yData",n=this.min,s=this.max-n,a=0,l=o,p=o/s;this.series.forEach(function(o){if(o.bubblePadding&&o.reserveSpace()){e.allowZoomOutside=!0,t=!0;var h=o[r];if(i&&((o.onPoint||o).getRadii(0,0,o),o.onPoint&&(o.radii=o.onPoint.radii)),s>0){for(var c=h.length;c--;)if(b(h[c])&&e.dataMin<=h[c]&&h[c]<=e.max){var u=o.radii&&o.radii[c]||0;a=Math.min((h[c]-n)*p-u,a),l=Math.max((h[c]-n)*p+u,l)}}}}),t&&s>0&&!this.logarithmic&&(l-=o,p*=(o+Math.max(0,a)-Math.min(l,o))/o,[["min","userMin",a],["max","userMax",l]].forEach(function(t){void 0===M(e.options[t[0]],e[t[1]])&&(e[t[0]]+=t[2]/p)}))}var w=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.maxPxSize=void 0,t.minPxSize=void 0,t.options=void 0,t.points=void 0,t.radii=void 0,t.yData=void 0,t.zData=void 0,t}return a(o,e),o.compose=function(e,o,i,r){t.compose(o,i,r),n.pushUnique(j,e)&&(e.prototype.beforePadding=C)},o.prototype.animate=function(t){!t&&this.points.length0&&(h=(r-t)/p)}return a&&h>=0&&(h=Math.sqrt(h)),Math.ceil(o+h*(i-o))/2},o.prototype.hasData=function(){return!!this.processedXData.length},o.prototype.pointAttribs=function(t,e){var o=this.options.marker.fillOpacity,i=h.prototype.pointAttribs.call(this,t,e);return 1!==o&&(i.fill=l(i.fill).setOpacity(o).get("rgba")),i},o.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},o.prototype.translateBubble=function(){for(var t=this.data,e=this.options,o=this.radii,i=this.getPxExtremes().minPxSize,r=t.length;r--;){var n=t[r],s=o?o[r]:0;"z"===this.zoneAxis&&(n.negative=(n.z||0)<(e.zThreshold||0)),b(s)&&s>=i/2?(n.marker=v(n.marker,{radius:s,width:2*s,height:2*s}),n.dlBox={x:n.plotX-s,y:n.plotY-s,width:2*s,height:2*s}):(n.shapeArgs=n.plotY=n.dlBox=void 0,n.isInside=!1)}},o.prototype.getPxExtremes=function(){var t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(e){var o;return"string"==typeof e&&(o=/%$/.test(e),e=parseInt(e,10)),o?t*e/100:e},o=e(M(this.options.minSize,8)),i=Math.max(e(M(this.options.maxSize,"20%")),o);return{minPxSize:o,maxPxSize:i}},o.prototype.getZExtremes=function(){var t=this.options,e=(this.zData||[]).filter(b);if(e.length){var o=M(t.zMin,g(m(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),i=M(t.zMax,y(e));if(b(o)&&b(i))return{zMin:o,zMax:i}}},o.defaultOptions=x(d.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return b(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),o}(d);return v(w.prototype,{alignDataLabel:u.alignDataLabel,applyZones:p,bubblePadding:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),f(w,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),f(w,"remove",function(t){delete t.target.chart.bubbleZExtremes}),r.registerSeriesType("bubble",w),w}),o(e,"Series/MapBubble/MapBubblePoint.js",[e["Series/Bubble/BubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o){var i,r=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),n=e.seriesTypes.map.prototype.pointClass.prototype,s=o.extend,a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.isValid=function(){return"number"==typeof this.z},e}(t);return s(a.prototype,{applyOptions:n.applyOptions,getProjectedBounds:n.getProjectedBounds}),a}),o(e,"Series/MapBubble/MapBubbleSeries.js",[e["Series/Bubble/BubbleSeries.js"],e["Series/MapBubble/MapBubblePoint.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e,o,i){var r,n=this&&this.__extends||(r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),s=o.seriesTypes,a=s.map.prototype,l=s.mappoint.prototype,p=i.extend,h=i.merge,c=function(e){function o(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t.clearBounds=a.clearBounds,t}return n(o,e),o.prototype.searchPoint=function(t,e){return this.searchKDTree({clientX:t.chartX-this.chart.plotLeft,plotY:t.chartY-this.chart.plotTop},e,t)},o.prototype.translate=function(){l.translate.call(this),this.getRadii(),this.translateBubble()},o.prototype.updateParallelArrays=function(t,o,i){e.prototype.updateParallelArrays.call(this,t,o,i);var r=this.processedXData,n=this.xData;r&&n&&(r.length=n.length)},o.defaultOptions=h(t.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),o}(t);return p(c.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:a.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:e,processData:a.processData,projectPoint:l.projectPoint,setData:a.setData,setOptions:a.setOptions,updateData:a.updateData,useMapGeometry:!0,xyFromShape:!0}),o.registerSeriesType("mapbubble",c),c}),o(e,"Series/Heatmap/HeatmapPoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(t,e){var o,i=this&&this.__extends||(o=function(t,e){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=t.seriesTypes.scatter.prototype.pointClass,n=e.clamp,s=e.defined,a=e.extend,l=e.pick,p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e.value=void 0,e.x=void 0,e.y=void 0,e}return i(e,t),e.prototype.applyOptions=function(e,o){return(this.isNull||null===this.value)&&delete this.color,t.prototype.applyOptions.call(this,e,o),this.formatPrefix=this.isNull||null===this.value?"null":"point",this},e.prototype.getCellAttributes=function(){for(var t=this.series,e=t.options,o=(e.colsize||1)/2,i=(e.rowsize||1)/2,r=t.xAxis,a=t.yAxis,p=this.options.marker||t.options.marker,h=t.pointPlacementToXValue(),c=l(this.pointPadding,e.pointPadding,0),u={x1:n(Math.round(r.len-r.translate(this.x-o,!1,!0,!1,!0,-h)),-r.len,2*r.len),x2:n(Math.round(r.len-r.translate(this.x+o,!1,!0,!1,!0,-h)),-r.len,2*r.len),y1:n(Math.round(a.translate(this.y-i,!1,!0,!1,!0)),-a.len,2*a.len),y2:n(Math.round(a.translate(this.y+i,!1,!0,!1,!0)),-a.len,2*a.len)},d=0,f=[["width","x"],["height","y"]];d"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"}}),o(e,"Series/InterpolationUtilities.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],function(t,e){var o=t.doc,i=e.defined,r=e.pick;return{colorFromPoint:function(t,e){var o=e.series.colorAxis;if(o){var n=o.toColor(t||0,e).split(")")[0].split("(")[1].split(",").map(function(t){return r(parseFloat(t),parseInt(t,10))});return n[3]=255*r(n[3],1),i(t)&&e.visible||(n[3]=0),n}return[0,0,0,0]},getContext:function(t){var e=t.canvas,i=t.context;return e&&i?(i.clearRect(0,0,e.width,e.height),i):(t.canvas=o.createElement("canvas"),t.context=t.canvas.getContext("2d",{willReadFrequently:!0})||void 0,t.context)}}}),o(e,"Series/Heatmap/HeatmapSeries.js",[e["Core/Color/Color.js"],e["Series/ColorMapComposition.js"],e["Series/Heatmap/HeatmapPoint.js"],e["Series/Heatmap/HeatmapSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"],e["Series/InterpolationUtilities.js"]],function(t,e,o,i,r,n,s,a){var l,p=this&&this.__extends||(l=function(t,e){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),h=this&&this.__assign||function(){return(h=Object.assign||function(t){for(var e,o=1,i=arguments.length;o