!/**
 * Highmaps JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/map
 * @requires highcharts
 *
 * Highmaps as a plugin for Highcharts or Highcharts Stock.
 *
 * (c) 2011-2026 Highsoft AS
 * Author: Torstein Hønsi
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(t._Highcharts,t._Highcharts.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry,t._Highcharts.SVGElement,t._Highcharts.Chart,t._Highcharts.SVGRenderer,t._Highcharts.Templating,t._Highcharts.Series.types.scatter,t._Highcharts.Point):"function"==typeof define&&define.amd?define("highcharts/modules/map",["highcharts/highcharts"],function(t){return e(t,t.Axis,t.Color,t.SeriesRegistry,t.SVGElement,t.Chart,t.SVGRenderer,t.Templating,t.Series,["types"],["scatter"],t.Point)}):"object"==typeof exports?exports["highcharts/modules/map"]=e(t._Highcharts,t._Highcharts.Axis,t._Highcharts.Color,t._Highcharts.SeriesRegistry,t._Highcharts.SVGElement,t._Highcharts.Chart,t._Highcharts.SVGRenderer,t._Highcharts.Templating,t._Highcharts.Series.types.scatter,t._Highcharts.Point):t.Highcharts=e(t.Highcharts,t.Highcharts.Axis,t.Highcharts.Color,t.Highcharts.SeriesRegistry,t.Highcharts.SVGElement,t.Highcharts.Chart,t.Highcharts.SVGRenderer,t.Highcharts.Templating,t.Highcharts.Series.types.scatter,t.Highcharts.Point)}("u"<typeof window?this:window,function(t,e,o,i,r,n,s,a,l,h){return function(){"use strict";var p,c,u,d,f,m,y,g,v,b,x,M,w,C,P,T,j,A,k,O,L,E,z,S,_,I,B={28:function(t){t.exports=r},260:function(t){t.exports=h},512:function(t){t.exports=i},532:function(t){t.exports=e},540:function(t){t.exports=s},620:function(t){t.exports=o},632:function(t){t.exports=l},944:function(e){e.exports=t},960:function(t){t.exports=n},984:function(t){t.exports=a}},N={};function D(t){var e=N[t];if(void 0!==e)return e.exports;var o=N[t]={exports:{}};return B[t](o,o.exports,D),o.exports}D.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return D.d(e,{a:e}),e},D.d=function(t,e){for(var o in e)D.o(e,o)&&!D.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},D.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var V={};D.d(V,{default:function(){return oM}});var R=D(944),X=D.n(R),G=D(532),Y=D.n(G),W=D(620),H=D.n(W),U=H().parse;(p=k||(k={})).initDataClasses=function(t){var e,o,i,r=this.chart,n=this.legendItem=this.legendItem||{},s=this.options,a=t.dataClasses||[],l=r.options.chart.colorCount,h=0;this.dataClasses=o=[],n.labels=[];for(var p=0,c=a.length;p<c;++p)e=a[p],e=(0,R.merge)(e),o.push(e),(r.styledMode||!e.color)&&("category"===s.dataClassColor?(r.styledMode||(l=(i=r.options.colors||[]).length,e.color=i[h]),e.colorIndex=h,++h===l&&(h=0)):e.color=U(s.minColor).tweenTo(U(s.maxColor),c<2?.5:p/(c-1)))},p.initStops=function(){for(var t=this.options,e=this.stops=t.stops||[[0,t.minColor||""],[1,t.maxColor||""]],o=0,i=e.length;o<i;++o)e[o].color=U(e[o][1])},p.normalizedValue=function(t){var e=this.max||0,o=this.min||0;return this.logarithmic&&(t=this.logarithmic.log2lin(t)),1-(e-t)/(e-o||1)},p.toColor=function(t,e){var o,i,r,n,s,a,l=this.dataClasses,h=this.stops;if(l){for(a=l.length;a--;)if(i=(s=l[a]).from,r=s.to,(void 0===i||t>=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=h.length;a--&&!(o>h[a][0]););i=h[a]||h[a+1],o=1-((r=h[a+1]||i)[0]-o)/(r[0]-i[0]||1),n=i.color.tweenTo(r.color,o)}return n};var F=k,Z=H().parse;!function(t){var e;function o(){var t=this,o=this.userOptions;this.colorAxis=[],o.colorAxis&&(o.colorAxis=(0,R.splat)(o.colorAxis),o.colorAxis.map(function(o){return new e(t,o)}))}function i(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){(null==(e=t.options)?void 0: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 r(t){t.visible&&t.item.legendColor&&t.item.legendItem.symbol.attr({fill:t.item.legendColor})}function n(t){var e;null==(e=this.chart.colorAxis)||e.forEach(function(e){e.update({},t.redraw)})}function s(){var t;((null==(t=this.chart.colorAxis)?void 0:t.length)||this.colorAttribs)&&this.translateColors()}function a(){var t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function l(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 h(){var t=this,e=this.getPointsCollection(),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 p(){this.elem.attr("fill",Z(this.start).tweenTo(Z(this.end),this.pos),void 0,!0)}function c(){this.elem.attr("stroke",Z(this.start).tweenTo(Z(this.end),this.pos),void 0,!0)}t.compose=function(t,u,d,f,m){var y,g,v=u.prototype,b=d.prototype,x=m.prototype;v.collectionsWithUpdate.includes("colorAxis")||(e=t,v.collectionsWithUpdate.push("colorAxis"),v.collectionsWithInit.colorAxis=[v.addColorAxis],(0,R.addEvent)(u,"afterCreateAxes",o),g=(y=u).prototype.createAxis,y.prototype.createAxis=function(t,o){if("colorAxis"!==t)return g.apply(this,arguments);var i=new e(this,(0,R.merge)(o.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}),(0,R.pick)(o.redraw,!0)&&this.redraw(o.animation),i},b.fillSetter=p,b.strokeSetter=c,(0,R.addEvent)(f,"afterGetAllItems",i),(0,R.addEvent)(f,"afterColorizeItem",r),(0,R.addEvent)(f,"afterUpdate",n),(0,R.extend)(x,{optionalAxis:"colorAxis",translateColors:h}),(0,R.extend)(x.pointClass.prototype,{setVisible:l}),(0,R.addEvent)(m,"afterTranslate",s,{order:1}),(0,R.addEvent)(m,"bindAxes",a))},t.pointSetVisible=l}(O||(O={}));var K=O,q=D(512),$=D.n(q),J=(c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),Q=X().defaultOptions,tt=$().series;Q.colorAxis=(0,R.merge)(Q.xAxis,{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"var(--highcharts-background-color)",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},clip:!1,lineColor:"var(--highcharts-neutral-color-40)",lineWidth:0,color:"var(--highcharts-neutral-color-40)",width:.01},labels:{distance:8,overflow:"justify",rotation:0},minColor:"var(--highcharts-highlight-color-10)",maxColor:"var(--highcharts-highlight-color-100)",tickLength:5,title:{margin:5},showInLegend:!0});var te=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.clippable=!1,i.coll="colorAxis",i.visible=!0,i.init(e,o),i}return J(e,t),e.compose=function(t,o,i,r){K.compose(e,t,o,i,r)},e.prototype.init=function(e,o){var i=e.options.legend||{},r=o.layout?"vertical"!==o.layout:"vertical"!==i.layout;this.side=o.side||r?2:1,this.reversed=o.reversed,this.opposite=!r,t.prototype.init.call(this,e,o,"colorAxis"),this.userOptions=o,(0,R.isArray)(e.userOptions.colorAxis)&&(e.userOptions.colorAxis[this.index]=o),o.dataClasses&&this.initDataClasses(o),this.initStops(),this.horiz=r,this.zoomEnabled=!1},e.prototype.hasData=function(){return!!(this.tickPositions||[]).length},e.prototype.setTickPositions=function(){if(!this.dataClasses)return t.prototype.setTickPositions.call(this)},e.prototype.setOptions=function(e){var o=this.chart.options.legend||{},i=Q.colorAxis,r=e.layout||o.layout||i.layout,n=(0,R.merge)("vertical"!==r?{title:{rotation:0}}:{title:{rotation:90,margin:10}},i,e,{showEmpty:!1,visible:this.chart.options.legend.enabled&&!1!==e.visible});t.prototype.setOptions.call(this,n),this.options.crosshair=this.options.marker},e.prototype.setAxisSize=function(){var t,o=this.chart,i=null==(t=this.legendItem)?void 0:t.symbol,r=this.getSize(),n=r.width,s=r.height;i&&(this.left=+i.attr("x"),this.top=+i.attr("y"),this.width=n=+i.attr("width"),this.height=s=+i.attr("height"),this.right=o.chartWidth-this.left-n,this.bottom=o.chartHeight-this.top-s,this.pos=this.horiz?this.left:this.top),this.len=(this.horiz?n:s)||e.defaultLegendLength},e.prototype.getOffset=function(){var o,i=this.chart,r=null==(o=this.legendItem)?void 0:o.group,n=i.axisOffset[this.side],s=i.clipOffset,a=i.legend;r&&(this.axisParent=r,t.prototype.getOffset.call(this),a.allItems.forEach(function(t){t instanceof e&&t.drawLegendSymbol(a,t)}),a.render(),i.getMargins(!0),this.added||(this.added=!0),this.labelLeft=0,this.labelRight=this.width,i.axisOffset[this.side]=n,i.clipOffset=s)},e.prototype.setLegendColor=function(){var t=this.horiz,e=this.reversed,o=+!!e,i=+!e,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}},e.prototype.drawLegendSymbol=function(t,e){var o,i,r,n,s,a=e.legendItem||{},l=t.padding,h=t.options,p=this.options.labels,c=(0,R.pick)(h.itemDistance,10),u=this.horiz,d=this.getSize(),f=d.width,m=d.height,y=(0,R.pick)(h.labelPadding,u?16:30);this.setLegendColor();var g=0,v=0;if((null==(o=this.options.title)?void 0:o.text)&&!this.axisTitle){this.axisGroup||(this.axisParent=a.group,this.createGroups());var b=this.len,x=this.top,M=this.left,w=this.width;this.len=u?f:m,this.top=0,this.left=0,this.width=f,this.addTitle(!0),this.len=b,this.top=x,this.left=M,this.width=w}if(this.axisTitle){var C=this.axisTitle.getBBox();g=C.height,v=C.width}var P=this.options.title||{},T=this.axisTitle&&null!=(i=P.margin)?i:0,j=u?g+T:0;a.symbol||(a.symbol=this.chart.renderer.symbol("roundedRect").attr({r:null!=(r=h.symbolRadius)?r:3,zIndex:1}).add(a.group)),a.symbol.attr({x:0,y:(t.baseline||0)-11+j,width:f,height:m}),u?(a.labelWidth=Math.max(f+l+c,v||0),a.labelHeight=m+l+y+g+T):(a.labelWidth=f+l+(null!=(s=null!=(n=p.x)?n:p.distance)?s:0)+(this.maxLabelLength||0)+(v||0)+T,a.labelHeight=Math.max(m+l,g||0))},e.prototype.getTitlePosition=function(e){var o,i,r,n,s=t.prototype.getTitlePosition.call(this,e),a=null!=(i=null==(o=this.options.title)?void 0:o.margin)?i:0;if(this.horiz&&e)s.y=this.top-a;else if(!this.horiz&&e){var l=this.options.labels||{},h=null!=(n=null!=(r=l.x)?r:l.distance)?n:0;s.x=this.left+this.width+h+(this.maxLabelLength||0)+a}return s},e.prototype.setState=function(t){this.series.forEach(function(e){e.setState(t)})},e.prototype.setVisible=function(){},e.prototype.getSeriesExtremes=function(){var t,e,o,i,r=this.series,n=r.length;for(this.dataMin=1/0,this.dataMax=-1/0;n--;){e=(i=r[n]).colorKey=(0,R.pick)(i.options.colorKey,i.colorKey,i.pointValKey,i.zoneAxis,"y"),o=i[e+"Min"]&&i[e+"Max"];for(var s=0,a=[e,"value","y"];s<a.length;s++){var l=a[s];if((t=i.getColumn(l)).length)break}if(o)i.minColorValue=i[e+"Min"],i.maxColorValue=i[e+"Max"];else{var h=tt.prototype.getExtremes.call(i,t);i.minColorValue=h.dataMin,i.maxColorValue=h.dataMax}(0,R.defined)(i.minColorValue)&&(0,R.defined)(i.maxColorValue)&&(this.dataMin=Math.min(this.dataMin,i.minColorValue),this.dataMax=Math.max(this.dataMax,i.maxColorValue)),o||tt.prototype.applyExtremes.call(i)}},e.prototype.drawCrosshair=function(e,o){var i,r=this.legendItem||{},n=null==o?void 0:o.plotX,s=null==o?void 0:o.plotY,a=this.pos,l=this.len,h=this.options.marker||{};o&&((i=this.toPixels(o.getNestedProperty(o.series.colorKey)))<a?i=a-2:i>a+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:h.color,stroke:h.lineColor,"stroke-width":h.lineWidth})))},e.prototype.getPlotLinePath=function(e){var o=this.left,i=e.translatedValue,r=(this.options.marker||{}).symbol,n=this.top;if((0,R.isNumber)(i)){var s=this.width,a=i-s/2;return r?this.chart.renderer.symbols[r](o,a,s,s):this.horiz?[["M",i-4,n-6],["L",i+4,n-6],["L",i,n],["Z"]]:[["M",o,i],["L",o-6,i+6],["L",o-6,i-6],["Z"]]}return t.prototype.getPlotLinePath.call(this,e)},e.prototype.update=function(e,o){var i,r=this.chart.legend;this.series.forEach(function(t){t.isDirtyData=!0}),(e.dataClasses&&r.allItems||this.dataClasses)&&this.destroyItems(),t.prototype.update.call(this,e,o),(null==(i=this.legendItem)?void 0:i.label)&&(this.setLegendColor(),r.colorizeItem(this,!0))},e.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<i.length;o++){var r=i[o];t.legend.destroyItem(r)}t.isDirtyLegend=!0},e.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),t.prototype.destroy.apply(this,[].slice.call(arguments))},e.prototype.remove=function(e){this.destroyItems(),t.prototype.remove.call(this,e)},e.prototype.getDataClassLegendSymbols=function(){var t,e=this,o=e.chart,i=e.legendItem&&e.legendItem.labels||[],r=o.options.legend,n=(0,R.pick)(r.valueDecimals,-1),s=(0,R.pick)(r.valueSuffix,""),a=function(t){return e.series.reduce(function(e,o){return e.push.apply(e,o.points.filter(function(e){return e.dataClass===t})),e},[])};return i.length||e.dataClasses.forEach(function(r,l){var h=r.from,p=r.to,c=o.numberFormatter,u=!0;t="",void 0===h?t="< ":void 0===p&&(t="> "),void 0!==h&&(t+=c(h,n)+s),void 0!==h&&void 0!==p&&(t+=" - "),void 0!==p&&(t+=c(p,n)+s),i.push((0,R.extend)({chart:o,name:t,options:{},drawLegendSymbol:tt.prototype.drawLegendSymbol,visible:!0,isDataClass:!0,setState:function(t){for(var e=0,o=a(l);e<o.length;e++)o[e].setState(t)},setVisible:function(){this.visible=u=e.visible=!u;for(var t=[],i=0,r=a(l);i<r.length;i++){var n=r[i];n.setVisible(u),n.hiddenInDataClass=!u,-1===t.indexOf(n.series)&&t.push(n.series)}o.legend.colorizeItem(this,u),t.forEach(function(t){(0,R.fireEvent)(t,"afterDataClassLegendClick")})}},r))}),i},e.prototype.getSize=function(){var t=this.chart,o=this.horiz,i=this.options,r=i.height,n=i.width,s=t.options.legend;return{width:(0,R.pick)((0,R.defined)(n)?(0,R.relativeLength)(n,t.chartWidth):void 0,null==s?void 0:s.symbolWidth,o?e.defaultLegendLength:12),height:(0,R.pick)((0,R.defined)(r)?(0,R.relativeLength)(r,t.chartHeight):void 0,null==s?void 0:s.symbolHeight,o?12:e.defaultLegendLength)}},e.defaultLegendLength=200,e.keepProps=["legendItem"],e}(Y());(0,R.extend)(te.prototype,F),Array.prototype.push.apply(Y().keepProps,te.keepProps);/**
 * @license Highcharts JS v13.0.0 (2026-06-11)
 * @module highcharts/modules/color-axis
 * @requires highcharts
 *
 * ColorAxis module
 *
 * (c) 2012-2026 Highsoft AS
 * Author: Paweł Potaczek
 *
 * A commercial license may be required depending on use,
 * see www.highcharts.com/license
 */var to=X();to.ColorAxis=to.ColorAxis||te,to.ColorAxis.compose(to.Chart,to.Fx,to.Legend,to.Series);var ti={lang:{zoomIn:"Zoom in",zoomOut:"Zoom out"},mapNavigation:{buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{color:"var(--highcharts-neutral-color-60)",fontSize:"1em",fontWeight:"bold"},theme:{fill:"var(--highcharts-background-color)",stroke:"var(--highcharts-neutral-color-10)","stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1}};!function(t){var e,o=0;function i(t){var e=this.chart;t=this.normalize(t),e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(t.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&e.mapZoom(.5,void 0,void 0,t.chartX,t.chartY)}function r(t){var i=this.chart;t=this.normalize(t);var r=(0,R.defined)(t.wheelDelta)&&-t.wheelDelta/120||t.deltaY||t.detail;Math.abs(r)>=1&&(o+=Math.abs(r),e&&(0,R.internalClearTimeout)(e),e=setTimeout(function(){o=0},50)),o<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 n(t,e,o){var i=this.chart;if(e=t.call(this,e,o),i&&i.mapView){var r=i.mapView.pixelsToLonLat({x:e.chartX-i.plotLeft,y:e.chartY-i.plotTop});r&&(0,R.extend)(e,r)}return e}function s(t){var e=this.chart.options.mapNavigation;e&&(0,R.pick)(e.enableTouchZoom,e.enabled)&&(this.chart.zooming.pinchType="xy"),t.apply(this,[].slice.call(arguments,1))}t.compose=function(t){var e=t.prototype;e.onContainerDblClick||((0,R.extend)(e,{onContainerDblClick:i,onContainerMouseWheel:r}),(0,R.wrap)(e,"normalize",n),(0,R.wrap)(e,"zoomOption",s))}}(L||(L={}));var tr=L;function tn(t,e,o,i,r){if(r){var n=(null==r?void 0:r.r)||0;r.brBoxY=e-n,r.brBoxHeight=i+n}return E.roundedRect(t,e,o,i,r)}function ts(t,e,o,i,r){if(r){var n=(null==r?void 0:r.r)||0;r.brBoxHeight=i+n}return E.roundedRect(t,e,o,i,r)}var ta=function(t){(E=t.prototype.symbols).bottombutton=tn,E.topbutton=ts},tl=X().setOptions,th=X().composed;function tp(t){var e,o;t&&(null==(e=t.preventDefault)||e.call(t),null==(o=t.stopPropagation)||o.call(t),t.cancelBubble=!0)}var tc=function(){function t(t){this.chart=t,this.navButtons=[]}return t.compose=function(e,o,i){tr.compose(o),ta(i),(0,R.pushUnique)(th,"Map.Navigation")&&((0,R.addEvent)(e,"beforeRender",function(){this.mapNavigation=new t(this),this.mapNavigation.update()}),tl(ti))},t.prototype.update=function(t){var e,o=this,i=o.chart,r=o.navButtons,n=function(t){this.handler.call(i,t),tp(t)},s=i.options.mapNavigation;for(t&&(s=i.options.mapNavigation=(0,R.merge)(i.options.mapNavigation,t));r.length;)null==(e=r.pop())||e.destroy();!i.renderer.forExport&&(0,R.pick)(s.enableButtons,s.enabled)&&(o.navButtonsGroup||(o.navButtonsGroup=i.renderer.g().attr({zIndex:7}).add()),(0,R.objectEach)(s.buttons,function(t,e){var a,l={padding:(t=(0,R.merge)(s.buttonOptions,t)).padding};!i.styledMode&&t.theme&&((0,R.extend)(l,t.theme),l.style=(0,R.merge)(t.theme.style,t.style));var h=t.text,p=t.width,c=void 0===p?0:p,u=t.height,d=void 0===u?0:u,f=t.padding,m=void 0===f?0:f,y=i.renderer.button("+"!==h&&"-"!==h&&h||"",0,0,n,l,void 0,void 0,void 0,"zoomIn"===e?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+({zoomIn:"zoom-in",zoomOut:"zoom-out"})[e]).attr({width:c,height:d,title:i.options.lang[e],zIndex:5}).add(o.navButtonsGroup);if("+"===h||"-"===h){var g=c+1,v=[["M",m+3,m+d/2],["L",m+g-3,m+d/2]];"+"===h&&v.push(["M",m+g/2,m+3],["L",m+g/2,m+d-3]),i.renderer.path(v).addClass("highcharts-button-symbol").attr(i.styledMode?{}:{stroke:null==(a=t.style)?void 0:a.color,"stroke-width":3,"stroke-linecap":"round"}).add(y)}if(y.handler=t.onclick,(0,R.addEvent)(y.element,"dblclick",tp),r.push(y),(0,R.extend)(t,{width:y.width,height:2*(y.height||0)}),i.hasLoaded)y.align(t,!1,t.alignTo);else var b=(0,R.addEvent)(i,"load",function(){y.element&&y.align(t,!1,t.alignTo),b()})}),i.hasLoaded||(0,R.addEvent)(i,"render",function(){var t,e,r=null==(e=null==(t=i.exporting)?void 0:t.group)?void 0:e.getBBox();if(r){var n=o.navButtonsGroup.getBBox();if(!(n.x>=r.x+r.width||n.x+n.width<=r.x||n.y>=r.y+r.height||n.y+n.height<=r.y)){var a=-n.y-n.height+r.y-5,l=r.y+r.height-n.y+5,h=s.buttonOptions&&s.buttonOptions.verticalAlign;o.navButtonsGroup.attr({translateY:"bottom"===h?a:l})}}})),this.updateEvents(s)},t.prototype.updateEvents=function(t){var e=this.chart;(0,R.pick)(t.enableDoubleClickZoom,t.enabled)||t.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||(0,R.addEvent)(e.container,"dblclick",function(t){e.pointer.onContainerDblClick(t)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),(0,R.pick)(t.enableMouseWheelZoom,t.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||(0,R.addEvent)(e.container,"wheel",function(t){var o,i;if(!e.pointer.inClass(t.target,"highcharts-no-mousewheel")){var r=null==(o=e.mapView)?void 0:o.zoom;e.pointer.onContainerMouseWheel(t),r!==(null==(i=e.mapView)?void 0:i.zoom)&&tp(t)}return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},t}(),tu=D(28),td=D.n(tu),tf=$().seriesTypes.column.prototype,tm=z||(z={});function ty(t){var e=this.series,o=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(td())(o,"use").css({pointerEvents:"none"}).add(this.graphic.parentGroup)),(null==t?void 0:t.state)==="hover"?(this.graphic.attr({id:this.id}),e.stateMarkerGraphic.attr({href:""+o.url+"#".concat(this.id),visibility:"visible"})):e.stateMarkerGraphic.attr({href:""}))}tm.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))}},tm.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){var e={};return(0,R.defined)(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:tf.pointAttribs},tm.compose=function(t){var e=t.prototype.pointClass;return(0,R.addEvent)(e,"afterSetState",ty),t};var tg=z,tv=X().deg2rad;(u=S||(S={})).getCenter=function(){var t,e,o,i=this.options,r=this.chart,n=2*(i.slicedOffset||0),s=r.plotWidth-2*n,a=r.plotHeight-2*n,l=i.center,h=Math.min(s,a),p=i.thickness,c=i.size,u=i.innerSize||0;"string"==typeof c&&(c=parseFloat(c)),"string"==typeof u&&(u=parseFloat(u));var d=[(0,R.pick)(null==l?void 0:l[0],"50%"),(0,R.pick)(null==l?void 0:l[1],"50%"),(0,R.pick)(c&&c<0?void 0:i.size,"100%"),(0,R.pick)(u&&u<0?void 0:i.innerSize||0,"0%")];for(e=0;e<4;++e)o=d[e],t=e<2||2===e&&/%$/.test(o),d[e]=(0,R.relativeLength)(o,[s,a,h,d[2]][e])+(t?n:0);return d[3]>d[2]&&(d[3]=d[2]),(0,R.isNumber)(p)&&2*p<d[2]&&p>0&&(d[3]=d[2]-2*p),(0,R.fireEvent)(this,"afterGetCenter",{positions:d}),d},u.getStartAndEndRadians=function(t,e){var o=(0,R.isNumber)(t)?t:0,i=(0,R.isNumber)(e)&&e>o&&e-o<360?e:o+360;return{start:tv*(o+-90),end:tv*(i+-90)}};var tb=S,tx=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},tM=function(t,e,o,i,r){if(void 0===r&&(r=[]),Array.isArray(t))return Array.isArray(r)||(r=Array.from(r)),{removed:t.splice.apply(t,tx([e,o],r,!1)),array:t};var n=Object.getPrototypeOf(t).constructor,s=t[i?"subarray":"slice"](e,e+o),a=new n(t.length-o+r.length);return a.set(t.subarray(0,e),0),a.set(r,e),a.set(t.subarray(e+o),e+r.length),{removed:s,array:a}},tw=function(){function t(t){void 0===t&&(t={});var e=this;this.isDataTable=!0,this.autoId=!t.id,this.columns={},this.id=t.id||(0,R.uniqueKey)(),this.rowCount=0,this.versionTag=(0,R.uniqueKey)();var o=0;(0,R.objectEach)(t.columns||{},function(t,i){e.columns[i]=t.slice(),o=Math.max(o,t.length)}),this.applyRowCount(o)}return t.prototype.applyRowCount=function(t){var e=this;this.rowCount=t,(0,R.objectEach)(this.columns,function(o,i){var r,n;o.length!==t&&(e.columns[i]=(r=o,n=t,Array.isArray(r)?(r.length=n,r):r.slice(0,n)))})},t.prototype.deleteRows=function(t,e){var o=this;if(void 0===e&&(e=1),e>0&&t<this.rowCount){var i=0;(0,R.objectEach)(this.columns,function(r,n){o.columns[n]=tM(r,t,e).array,i=r.length}),this.rowCount=i}(0,R.fireEvent)(this,"afterDeleteRows",{rowIndex:t,rowCount:e}),this.versionTag=(0,R.uniqueKey)()},t.prototype.getColumn=function(t,e){return this.columns[t]},t.prototype.getColumns=function(t,e){var o=this;return(t||Object.keys(this.columns)).reduce(function(t,e){return t[e]=o.columns[e],t},{})},t.prototype.getRowObject=function(t,e){var o,i={},r=this.columns;null!=e||(e=Object.keys(this.columns));for(var n=0,s=e;n<s.length;n++){var a=s[n];i[a]=null==(o=r[a])?void 0:o[t]}return i},t.prototype.setColumn=function(t,e,o,i){var r;void 0===e&&(e=[]),void 0===o&&(o=0),this.setColumns(((r={})[t]=e,r),o,i)},t.prototype.setColumns=function(t,e,o){var i=this,r=this.rowCount;(0,R.objectEach)(t,function(t,e){i.columns[e]=t.slice(),r=t.length}),this.applyRowCount(r),(null==o?void 0:o.silent)||((0,R.fireEvent)(this,"afterSetColumns"),this.versionTag=(0,R.uniqueKey)())},t.prototype.setRow=function(t,e,o,i){void 0===e&&(e=this.rowCount);var r,n=this.columns,s=o?this.rowCount+1:e+1,a=Object.keys(t);if((null==i?void 0:i.addColumns)!==!1)for(var l=0,h=a.length;l<h;l++)n[r=a[l]]||(n[r]=Array(this.rowCount));(0,R.objectEach)(n,function(i,r){i&&(o?i=tM(i,e,0,!0,[t[r]]).array:i[e]=r in t?t[r]:i[e],n[r]=i)}),this.applyRowCount(Math.max(s,this.rowCount)),(null==i?void 0:i.silent)||((0,R.fireEvent)(this,"afterSetRows",{rowIndex:e}),this.versionTag=(0,R.uniqueKey)())},t.prototype.getModified=function(){return this.modified||this},t}(),tC=D(960),tP=D.n(tC),tT=D(540),tj=D.n(tT),tA=(d=function(t,e){return(d=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}d(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),tk=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},tO=X().getOptions,tL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tA(e,t),e.prototype.init=function(e,o){var i=tO().credits,r=(0,R.merge)({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:(0,R.pick)(i.mapText,' \xa9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:(0,R.pick)(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&&((0,R.isNumber)(t)&&(t=Math.log(t)/Math.log(.5)),this.mapView.zoomBy(t,(0,R.isNumber)(e)&&(0,R.isNumber)(o)?this.mapView.projection.inverse([e,o]):void 0,(0,R.isNumber)(i)&&(0,R.isNumber)(r)?[i,r]:void 0))},e.prototype.update=function(e){var o;e.chart&&"map"in e.chart&&(null==(o=this.mapView)||o.recommendMapView(this,tk([e.chart.map],(this.options.series||[]).map(function(t){return t.mapData}),!0),!0)),t.prototype.update.apply(this,arguments)},e}(tP());(f=tL||(tL={})).maps={},f.mapChart=function(t,e,o){var i=new f(t,e,o);return i.promise||i},f.splitPath=function(t){var e;return e="string"==typeof t?(t=t.replace(/([A-Z])/gi," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(t){return/[A-Z]/i.test(t)?t:parseFloat(t)}):t,tj().prototype.pathToSegments(e)};var tE=tL,tz=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}},tS=(m=function(t,e){return(m=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}m(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),t_=function(){return(t_=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},tI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return tS(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,i){var r,n=this.series,s=t.prototype.applyOptions.call(this,e,o,i),a=n.joinBy;if(n.mapData&&n.mapMap){var l=a[1],h=t.prototype.getNestedProperty.call(this,l),p=void 0!==h&&n.mapMap[h];p?(0,R.extend)(s,t_(t_({},p),{name:null!=(r=s.name)?r:p.name})):-1!==n.pointArrayMap.indexOf("value")&&(s.value=s.value||null)}return s},e.prototype.getProjectedBounds=function(t){var o=tz(e.getProjectedPath(this,t)),i=this.properties,r=this.series.chart.mapView;if(o){var n=null==i?void 0:i["hc-middle-lon"],s=null==i?void 0:i["hc-middle-lat"];if(r&&(0,R.isNumber)(n)&&(0,R.isNumber)(s)){var a=t.forward([n,s]);o.midX=a[0],o.midY=a[1]}else{var l=null==i?void 0:i["hc-middle-x"],h=null==i?void 0:i["hc-middle-y"];o.midX=o.x1+(o.x2-o.x1)*(0,R.pick)(this.middleX,(0,R.isNumber)(l)?l:.5);var p=(0,R.pick)(this.middleY,(0,R.isNumber)(h)?h:.5);this.geometry||(p=1-p),o.midY=o.y2-(o.y2-o.y1)*p}return o}},e.prototype.onMouseOver=function(e){(0,R.internalClearTimeout)(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=(0,R.isNumber)(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}($().seriesTypes.scatter.prototype.pointClass);(0,R.extend)(tI.prototype,{dataLabelOnNull:tg.pointMembers.dataLabelOnNull,moveToTopOnHover:tg.pointMembers.moveToTopOnHover,isValid:tg.pointMembers.isValid});var tB={affectsMapView:!0,animation:!1,dataLabels:{crop:!1,distance:0,formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.value;return(0,R.isNumber)(e)?t(e,-1):this.point.name||""},inside:!0,overflow:!1,padding:[0,2],verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"var(--highcharts-neutral-color-3)",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"var(--highcharts-neutral-color-20)",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"var(--highcharts-neutral-color-60)",borderWidth:2},normal:{animation:!0},select:{color:"var(--highcharts-neutral-color-20)"}},legendSymbol:"rectangle"},tN={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:"var(--highcharts-neutral-color-20)",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}},tD=D(984),tV=D.n(tD),tR=X().win,tX=tV().format;!function(t){function e(t){var e;return null==(e=this.mapView)?void 0:e.lonLatToProjectedUnits(t)}function o(t){var e;return null==(e=this.mapView)?void 0:e.projectedUnitsToLonLat(t)}function i(t,e){var o=this.options.chart.proj4||tR.proj4;if(!o)return void(0,R.error)(21,!1,this);var i=e.jsonmarginX,r=e.jsonmarginY,n=e.jsonres,s=void 0===n?1:n,a=e.scale,l=void 0===a?1:a,h=e.xoffset,p=e.xpan,c=e.yoffset,u=e.ypan,d=o(e.crs,[t.lon,t.lat]),f=e.cosAngle||e.rotation&&Math.cos(e.rotation),m=e.sinAngle||e.rotation&&Math.sin(e.rotation),y=e.rotation?[d[0]*f+d[1]*m,-d[0]*m+d[1]*f]:d;return{x:((y[0]-(void 0===h?0:h))*l+(void 0===p?0:p))*s+(void 0===i?0:i),y:-((((void 0===c?0:c)-y[1])*l+(void 0===u?0:u))*s-(void 0===r?0:r))}}function r(t,e){var o=this.options.chart.proj4||tR.proj4;if(!o)return void(0,R.error)(21,!1,this);if(null!==t.y){var i=e.jsonmarginX,r=e.jsonmarginY,n=e.jsonres,s=void 0===n?1:n,a=e.scale,l=void 0===a?1:a,h=e.xoffset,p=e.xpan,c=e.yoffset,u=e.ypan,d={x:((t.x-(void 0===i?0:i))/s-(void 0===p?0:p))/l+(void 0===h?0:h),y:((t.y-(void 0===r?0:r))/s+(void 0===u?0:u))/l+(void 0===c?0:c)},f=e.cosAngle||e.rotation&&Math.cos(e.rotation),m=e.sinAngle||e.rotation&&Math.sin(e.rotation),y=o(e.crs,"WGS84",e.rotation?{x:d.x*f+-(d.y*m),y:d.x*m+d.y*f}:d);return{lat:y.y,lon:y.x}}}function n(t,e){e||(e=Object.keys(t.objects)[0]);var o=t.objects[e];if(o["hc-decoded-geojson"]&&o["hc-decoded-geojson"].title===t.title)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,h=void 0,p=void 0;i=[];for(var c=0,u=r.length;c<u;++c){var d=r[c];i.push(l=[]),h=0,p=0;for(var f=0,m=d.length;f<m;++f)l.push([(h+=d[f][0])*s[0]+a[0],(p+=d[f][1])*s[1]+a[1]])}}for(var y=function(t){return"number"==typeof t[0]?t.reduce(function(t,e,o){var r=e<0?i[~e]:i[e];return e<0?(r=r.slice(0,0===o?r.length:r.length-1)).reverse():o&&(r=r.slice(1)),t.concat(r)},[]):t.map(y)},g=o.geometries,v=[],c=0,u=g.length;c<u;++c)v.push({type:"Feature",properties:g[c].properties,geometry:{type:g[c].type,coordinates:g[c].coordinates||y(g[c].arcs)}});var b={type:"FeatureCollection",copyright:t.copyright,copyrightShort:t.copyrightShort,copyrightUrl:t.copyrightUrl,features:v,"hc-recommended-mapview":o["hc-recommended-mapview"],bbox:t.bbox,title:t.title};return o["hc-decoded-geojson"]=b,b}function s(t,e){e=(0,R.merge)(!0,this.options.credits,e),t.call(this,e),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}t.compose=function(t){var n=t.prototype;n.transformFromLatLon||(n.fromLatLonToPoint=e,n.fromPointToLatLon=o,n.transformFromLatLon=i,n.transformToLatLon=r,(0,R.wrap)(n,"addCredits",s))},t.geojson=function(t,e,o){void 0===e&&(e="map");for(var i,r,s=[],a="Topology"===t.type?n(t):t,l=a.features,h=0,p=l.length;h<p;++h){var c=l[h],u=c.geometry||{},d=u.type,f=u.coordinates,m=c.properties,y=void 0;if(("map"===e||"mapbubble"===e)&&("Polygon"===d||"MultiPolygon"===d)||"mapline"===e&&("LineString"===d||"MultiLineString"===d)?f.length&&(y={geometry:{coordinates:f,type:d}}):"mappoint"===e&&"Point"===d&&f.length&&(y={geometry:{coordinates:f,type:d}}),y){var g=m&&(m.name||m.NAME),v=m&&m.lon,b=m&&m.lat;s.push((0,R.extend)(y,{lat:"number"==typeof b?b:void 0,lon:"number"==typeof v?v:void 0,name:"string"==typeof g?g:void 0,properties:m}))}}return o&&a.copyrightShort&&(o.chart.mapCredits=tX(null==(i=o.chart.options.credits)?void 0:i.mapText,{geojson:a}),o.chart.mapCreditsFull=tX(null==(r=o.chart.options.credits)?void 0:r.mapTextFull,{geojson:a})),s},t.topo2geo=n}(_||(_={}));var tG=_;(y=I||(I={})).getCenterOfPoints=function(t){var e=t.reduce(function(t,e){return t.x+=e.x,t.y+=e.y,t},{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},y.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},y.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},y.pointInPolygon=function(t,e){var o,i,r=t.x,n=t.y,s=e.length,a=!1;for(o=0,i=s-1;o<s;i=o++){var l=e[o],h=l[0],p=l[1],c=e[i],u=c[0],d=c[1];p>n!=d>n&&r<(u-h)*(n-p)/(d-p)+h&&(a=!a)}return a};var tY=I;function tW(t,e,o){void 0===o&&(o=!0);for(var i,r,n,s=e[e.length-1],a=t,l=0;l<e.length;l++){var h=a;i=e[l],a=[],r=o?h[h.length-1]:h[0];for(var p=0;p<h.length;p++)tH(s,i,n=h[p])?(tH(s,i,r)||a.push(tU(s,i,r,n)),a.push(n)):tH(s,i,r)&&a.push(tU(s,i,r,n)),r=n;s=i}return a}function tH(t,e,o){return(e[0]-t[0])*(o[1]-t[1])>(e[1]-t[1])*(o[0]-t[0])}function tU(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]),h=[(s*n[0]-a*r[0])*l,(s*n[1]-a*r[1])*l];return h.isIntersection=!0,h}var tF=function(t,e){for(var o=[],i=tW(t,e,!1),r=1;r<i.length;r++)i[r].isIntersection&&i[r-1].isIntersection&&(o.push(i.splice(0,r)),r=0),r===i.length-1&&o.push(i);return o},tZ=Math.sign||function(t){return 0===t?0:t>0?1:-1},tK=Math.PI/180,tq=Math.PI/2,t$=function(t){return Math.tan((tq+t)/2)},tJ=function(){function t(t){var e,o=(t.parallels||[]).map(function(t){return t*tK}),i=o[0]||0,r=null!=(e=o[1])?e:i,n=Math.cos(i);"object"==typeof t.projectedBounds&&(this.projectedBounds=t.projectedBounds);var s=i===r?Math.sin(i):Math.log(n/Math.cos(r))/Math.log(t$(r)/t$(i));1e-10>Math.abs(s)&&(s=1e-10*(tZ(s)||1)),this.n=s,this.c=n*Math.pow(t$(i),s)/s}return t.prototype.forward=function(t){var e=this.c,o=this.n,i=this.projectedBounds,r=t[0]*tK,n=t[1]*tK;e>0?n<-tq+1e-6&&(n=-tq+1e-6):n>tq-1e-6&&(n=tq-1e-6);var s=e/Math.pow(t$(n),o),a=s*Math.sin(o*r)*63.78137,l=(e-s*Math.cos(o*r))*63.78137,h=[a,l];return i&&(a<i.x1||a>i.x2||l<i.y1||l>i.y2)&&(h.outside=!0),h},t.prototype.inverse=function(t){var e=this.c,o=this.n,i=t[0]/63.78137,r=e-t[1]/63.78137,n=tZ(o)*Math.sqrt(i*i+r*r),s=Math.atan2(i,Math.abs(r))*tZ(r);return r*o<0&&(s-=Math.PI*tZ(i)*tZ(r)),[s/o/tK,(2*Math.atan(Math.pow(e/n,1/o))-tq)/tK]},t}(),tQ=Math.sqrt(3)/2,t0=function(){function t(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return t.prototype.forward=function(t){var e=Math.PI/180,o=Math.asin(tQ*Math.sin(t[1]*e)),i=o*o,r=i*i*i;return[t[0]*e*Math.cos(o)*74.03120656864502/(tQ*(1.340264+-.24331799999999998*i+r*(.0062510000000000005+.034164*i))),74.03120656864502*o*(1.340264+-.081106*i+r*(893e-6+.003796*i))]},t.prototype.inverse=function(t){for(var e,o,i,r,n=t[0]/74.03120656864502,s=t[1]/74.03120656864502,a=180/Math.PI,l=s,h=0;h<12&&(o=(e=l*l)*e*e,i=l*(1.340264+-.081106*e+o*(893e-6+.003796*e))-s,l-=r=i/(1.340264+-.24331799999999998*e+o*(.0062510000000000005+.034164*e)),!(1e-9>Math.abs(r)));++h);o=(e=l*l)*e*e;var p=a*tQ*n*(1.340264+-.24331799999999998*e+o*(.0062510000000000005+.034164*e))/Math.cos(l),c=a*Math.asin(Math.sin(l)/tQ);return Math.abs(p)>180?[NaN,NaN]:[p,c]},t}(),t1=Math.PI/4,t2=Math.PI/180,t3=function(){function t(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return t.prototype.forward=function(t){return[t[0]*t2*63.78137,79.7267125*Math.log(Math.tan(t1+.4*t[1]*t2))]},t.prototype.inverse=function(t){return[t[0]/63.78137/t2,2.5*(Math.atan(Math.exp(.8*(t[1]/63.78137)))-t1)/t2]},t}(),t6=Math.PI/180,t8=function(){function t(){this.antimeridianCutting=!1,this.bounds={x1:-63.78460826781007,x2:63.78460826781007,y1:-63.78460826781007,y2:63.78460826781007}}return t.prototype.forward=function(t){var e=t[0],o=t[1]*t6,i=[Math.cos(o)*Math.sin(e*t6)*63.78460826781007,63.78460826781007*Math.sin(o)];return(e<-90||e>90)&&(i.outside=!0),i},t.prototype.inverse=function(t){var e=t[0]/63.78460826781007,o=t[1]/63.78460826781007,i=Math.sqrt(e*e+o*o),r=Math.asin(i),n=Math.sin(r);return[Math.atan2(e*n,i*Math.cos(r))/t6,Math.asin(i&&o*n/i)/t6]},t}(),t7=Math.PI/180,t9={EqualEarth:t0,LambertConformalConic:tJ,Miller:t3,Orthographic:t8,WebMercator:function(){function t(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=85.0511287798}return t.prototype.forward=function(t){var e=Math.sin(t[1]*t7),o=[63.78137*t[0]*t7,63.78137*Math.log((1+e)/(1-e))/2];return Math.abs(t[1])>this.maxLatitude&&(o.outside=!0),o},t.prototype.inverse=function(t){return[t[0]/(63.78137*t7),(2*Math.atan(Math.exp(t[1]/63.78137))-Math.PI/2)/t7]},t}()},t4=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},t5=2*Math.PI/360,et=function(t){return t<-180&&(t+=360),t>180&&(t-=360),t},ee=function(t){return(1-Math.cos(t))/2},eo=function(t,e){var o=Math.cos,i=t[1]*t5,r=t[0]*t5,n=e[1]*t5,s=e[0]*t5;return ee(n-i)+o(i)*o(n)*ee(s-r)},ei=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.distance=function(t,e){var o=Math.atan2,i=Math.sqrt,r=eo(t,e);return 6371e3*(2*o(i(r),i(1-r)))},t.geodesic=function(e,o,i,r){void 0===r&&(r=5e5);var n=Math.atan2,s=Math.cos,a=Math.sin,l=Math.sqrt,h=t.distance,p=e[1]*t5,c=e[0]*t5,u=o[1]*t5,d=o[0]*t5,f=s(p)*s(c),m=s(u)*s(d),y=s(p)*a(c),g=s(u)*a(d),v=a(p),b=a(u),x=h(e,o),M=x/6371e3,w=a(M),C=Math.round(x/r),P=[];if(i&&P.push(e),C>1)for(var T=1/C,j=T;j<.999;j+=T){var A=a((1-j)*M)/w,k=a(j*M)/w,O=A*f+k*m,L=A*y+k*g,E=n(A*v+k*b,l(O*O+L*L)),z=n(L,O);P.push([z/t5,E/t5])}return i&&P.push(o),P},t.insertGeodesics=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 i=t.geodesic(e[o],e[o+1]);i.length&&e.splice.apply(e,t4([o+1,0],i,!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;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]*t5,o=(t[1]||0)*t5,i=(t[2]||0)*t5,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]*t5+e,i=t[1]*t5,l=Math.cos(i),h=Math.cos(o)*l,p=Math.sin(o)*l,c=Math.sin(i),u=c*r+h*n;return[Math.atan2(p*s-u*a,h*r-c*n)/t5,Math.asin(u*s+p*a)/t5]},inverse:function(t){var o=t[0]*t5,i=t[1]*t5,l=Math.cos(i),h=Math.cos(o)*l,p=Math.sin(o)*l,c=Math.sin(i),u=c*s-p*a;return[(Math.atan2(p*s+c*a,h*r+u*n)-e)/t5,Math.asin(u*r-h*n)/t5]}}},t.prototype.forward=function(t){return t},t.prototype.inverse=function(t){return t},t.prototype.cutOnAntimeridian=function(e,o){for(var i,r=[],n=[e],s=0,a=e.length;s<a;++s){var l=e[s],h=e[s-1];if(!s){if(!o)continue;h=e[e.length-1]}var p=h[0],c=l[0];if((p<-90||p>90)&&(c<-90||c>90)&&p>0!=c>0){var u=(0,R.clamp)((180-(p+360)%360)/((c+360)%360-(p+360)%360),0,1),d=h[1]+u*(l[1]-h[1]);r.push({i:s,lat:d,direction:p<0?1:-1,previousLonLat:h,lonLat:l})}}if(r.length)if(o){r.length%2==1&&(i=r.slice().sort(function(t,e){return Math.abs(e.lat)-Math.abs(t.lat)})[0],(0,R.erase)(r,i));for(var s=r.length-2;s>=0;){var f=r[s].i,m=et(180+1e-6*r[s].direction),y=et(180-1e-6*r[s].direction),g=e.splice.apply(e,t4([f,r[s+1].i-f],t.geodesic([m,r[s].lat],[m,r[s+1].lat],!0),!1));g.push.apply(g,t.geodesic([y,r[s+1].lat],[y,r[s].lat],!0)),n.push(g),s-=2}if(i)for(var v=0;v<n.length;v++){var b=i.direction,d=i.lat,x=n[v],M=x.indexOf(i.lonLat);if(M>-1){for(var w=(d<0?-1:1)*this.maxLatitude,p=et(180+1e-6*b),c=et(180-1e-6*b),C=t.geodesic([p,d],[p,w],!0),P=p+120*b;P>-180&&P<180;P+=120*b)C.push([P,w]);C.push.apply(C,t.geodesic([c,w],[c,i.lat],!0)),x.splice.apply(x,t4([M,0],C,!1));break}}}else for(var s=r.length;s--;){var f=r[s].i,g=e.splice(f,e.length,[et(180+1e-6*r[s].direction),r[s].lat]);g.unshift([et(180-1e-6*r[s].direction),r[s].lat]),n.push(g)}return n},t.prototype.path=function(e){var o,i=this,r=this.bounds,n=this.def,s=this.rotator,a=[],l="Polygon"===e.type||"MultiPolygon"===e.type,h=this.hasGeoProjection,p=!n||!1!==n.antimeridianCutting,c=p?s:void 0,u=p&&n||this;r&&(o=[[r.x1,r.y1],[r.x2,r.y1],[r.x2,r.y2],[r.x1,r.y2]]);var d=function(e){var n=e.map(function(t){if(p){c&&(t=c.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}),s=[n];h&&(t.insertGeodesics(n),p&&(s=i.cutOnAntimeridian(n,l))),s.forEach(function(e){if(!(e.length<2)){var i,n,s=!1,c=!1,d=function(t){s?a.push(["L",t[0],t[1]]):(a.push(["M",t[0],t[1]]),s=!0)},f=!1,m=!1,y=e.map(function(t){var e=u.forward(t);return e.outside?f=!0:m=!0,e[1]===1/0?e[1]=1e10:e[1]===-1/0&&(e[1]=-1e10),e});if(p){if(l&&y.push(y[0]),f){if(!m)return;if(o){if(l)y=tW(y,o);else if(r)return void tF(y,o).forEach(function(t){s=!1,t.forEach(d)})}}y.forEach(d)}else for(var g=0;g<y.length;g++){var v=e[g],b=y[g];b.outside?c=!0:(l&&!i&&(i=v,e.push(v),y.push(b)),c&&n&&(l&&h?t.geodesic(n,v).forEach(function(t){return d(u.forward(t))}):s=!1),d(b),n=v,c=!1)}}})};return"LineString"===e.type?d(e.coordinates):"MultiLineString"===e.type?e.coordinates.forEach(function(t){return d(t)}):"Polygon"===e.type?(e.coordinates.forEach(function(t){return d(t)}),a.length&&a.push(["Z"])):"MultiPolygon"===e.type&&(e.coordinates.forEach(function(t){t.forEach(function(t){return d(t)})}),a.length&&a.push(["Z"])),a},t.registry=t9,t}(),er=(g=function(t,e){return(g=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}g(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),en=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},es=X().composed,ea=tY.pointInPolygon,el=tG.topo2geo,eh={};function ep(t,e){var o=e.width,i=e.height;return Math.log(400.979322/Math.max((t.x2-t.x1)/(o/256),(t.y2-t.y1)/(i/256)))/Math.log(2)}function ec(t){var e,o;t.seriesOptions.mapData&&(null==(e=this.mapView)||e.recommendMapView(this,[this.options.chart.map,t.seriesOptions.mapData],null==(o=this.options.drilldown)?void 0:o.mapZooming))}var eu=function(){function t(e,o){var i,r=this;this.allowTransformAnimation=!0,this.eventsToUnbind=[],this.insets=[],this.padding=[0,0,0,0],this.recommendedMapView={},this instanceof ed||this.recommendMapView(e,en([e.options.chart.map],(e.options.series||[]).map(function(t){return t.mapData}),!0)),this.userOptions=o||{};var n=(0,R.merge)(tN,this.recommendedMapView,o),s=null==(i=this.recommendedMapView)?void 0:i.insets,a=o&&o.insets;s&&a&&(n.insets=t.mergeInsets(s,a)),this.chart=e,this.center=n.center,this.options=n,this.projection=new ei(n.projection),this.playingField=e.plotBox,this.zoom=n.zoom||0,this.minZoom=n.minZoom,this.createInsets(),this.eventsToUnbind.push((0,R.addEvent)(e,"afterSetChartSize",function(){r.playingField=r.getField(),(void 0===r.minZoom||r.minZoom===r.zoom)&&(r.fitToBounds(void 0,void 0,!1),!r.chart.hasRendered&&(0,R.isNumber)(r.userOptions.zoom)&&(r.zoom=r.userOptions.zoom),r.userOptions.center&&(0,R.merge)(!0,r.center,r.userOptions.center))})),this.setUpEvents()}return t.compose=function(e){(0,R.pushUnique)(es,"MapView")&&(eh=e.maps,(0,R.addEvent)(e,"afterInit",function(){this.mapView=new t(this,this.options.mapView)},{order:0}),(0,R.addEvent)(e,"addSeriesAsDrilldown",ec),(0,R.addEvent)(e,"afterDrillUp",ec))},t.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},(0,R.merge)(t[0]))},t.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=(0,R.merge)(o(t),o(e));return Object.keys(i).map(function(t){return i[t]})},t.prototype.createInsets=function(){var t=this,e=this.options,o=e.insets;o&&o.forEach(function(o){var i=new ed(t,(0,R.merge)(e.insetOptions,o));t.insets.push(i)})},t.prototype.fitToBounds=function(t,e,o,i){void 0===o&&(o=!0);var r=t||this.getProjectedBounds();if(r){var n=(0,R.pick)(e,t?0:this.options.padding),s=this.getField(!1),a=(0,R.isArray)(n)?n:[n,n,n,n];this.padding=[(0,R.relativeLength)(a[0],s.height),(0,R.relativeLength)(a[1],s.width),(0,R.relativeLength)(a[2],s.height),(0,R.relativeLength)(a[3],s.width)],this.playingField=this.getField();var l=ep(r,this.playingField);t||(this.minZoom=l);var h=this.projection.inverse([(r.x2+r.x1)/2,(r.y2+r.y1)/2]);this.setView(h,l,o,i)}},t.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]}},t.prototype.getGeoMap=function(t){if((0,R.isString)(t))return eh[t]&&"Topology"===eh[t].type?el(eh[t]):eh[t];if((0,R.isObject)(t,!0)){if("FeatureCollection"===t.type)return t;if("Topology"===t.type)return el(t)}},t.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]}}},t.prototype.getProjectedBounds=function(){var e=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(t){return e.forward(t)}),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=tz(e.path(i));return this.fitToGeometryCache}return this.projection.bounds||t.compositeBounds(o)},t.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)},t.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,h=e+i/2-n[0]*a,p=o+r/2-n[1]*l;return{scaleX:a,scaleY:l,translateX:h,translateY:p}},t.prototype.lonLatToPixels=function(t){var e=this.lonLatToProjectedUnits(t);if(e)return this.projectedUnitsToPixels(e)},t.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&&ea(r,o[i].hitZone.coordinates[0]))return r}return e.transformFromLatLon(t,o.default)}for(var n=0,s=this.insets;n<s.length;n++){var a=s[n];if(a.options.geoBounds&&ea({x:t.lon,y:t.lat},a.options.geoBounds.coordinates[0])){var l=a.projection.forward([t.lon,t.lat]),h=a.projectedUnitsToPixels({x:l[0],y:l[1]});return this.pixelsToProjectedUnits(h)}}var p=this.projection.forward([t.lon,t.lat]);if(!p.outside)return{x:p[0],y:p[1]}},t.prototype.pixelsToLonLat=function(t){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(t))},t.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}},t.prototype.projectedUnitsToLonLat=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&&ea(t,o[i].hitZone.coordinates[0]))return e.transformToLatLon(t,o[i]);return e.transformToLatLon(t,o.default)}for(var r=this.projectedUnitsToPixels(t),n=0,s=this.insets;n<s.length;n++){var a=s[n];if(a.hitZone&&ea(r,a.hitZone.coordinates[0])){var l=a.pixelsToProjectedUnits(r),h=a.projection.inverse([l.x,l.y]);return{lon:h[0],lat:h[1]}}}var p=this.projection.inverse([t.x,t.y]);return{lon:p[0],lat:p[1]}},t.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)}},t.prototype.recommendMapView=function(e,o,i){var r,n=this;void 0===i&&(i=!1),this.recommendedMapView={};var s=o.map(function(t){return n.getGeoMap(t)}),a=[];s.forEach(function(t){if(t&&(Object.keys(n.recommendedMapView).length||(n.recommendedMapView=t["hc-recommended-mapview"]||{}),t.bbox)){var e=t.bbox,o=e[0],i=e[1],r=e[2],s=e[3];a.push({x1:o,y1:i,x2:r,y2:s})}});var l=a.length&&t.compositeBounds(a);(0,R.fireEvent)(this,"onRecommendMapView",{geoBounds:l,chart:e},function(){if(l&&this.recommendedMapView){if(!this.recommendedMapView.projection){var t=l.x1,e=l.y1,o=l.x2,i=l.y2;this.recommendedMapView.projection=o-t>180&&i-e>90?{name:"EqualEarth",parallels:[0,0],rotation:[0]}:{name:"LambertConformalConic",parallels:[e,i],rotation:[-(t+o)/2]}}this.recommendedMapView.insets||(this.recommendedMapView.insets=void 0)}}),this.geoMap=s[0],i&&e.hasRendered&&!(null==(r=e.userOptions.mapView)?void 0:r.projection)&&this.recommendedMapView&&this.update(this.recommendedMapView)},t.prototype.redraw=function(t){this.chart.series.forEach(function(t){t.useMapGeometry&&(t.isDirty=!0)}),this.chart.redraw(t)},t.prototype.setView=function(t,e,o,i){void 0===o&&(o=!0),t&&(this.center=t),"number"==typeof e&&("number"==typeof this.minZoom&&(e=Math.max(e,this.minZoom)),"number"==typeof this.options.maxZoom&&(e=Math.min(e,this.options.maxZoom)),(0,R.isNumber)(e)&&(this.zoom=e));var r=this.getProjectedBounds();if(r){var n=this.projection.forward(this.center),s=this.playingField,a=s.x,l=s.y,h=s.width,p=s.height,c=this.getScale(),u=this.projectedUnitsToPixels({x:r.x1,y:r.y1}),d=this.projectedUnitsToPixels({x:r.x2,y:r.y2}),f=[(r.x1+r.x2)/2,(r.y1+r.y2)/2];if(!this.chart.series.some(function(t){return t.isDrilling})){var m=u.x,y=d.y,g=d.x,v=u.y;g-m<h?n[0]=f[0]:m<a&&g<a+h?n[0]+=Math.max(m-a,g-h-a)/c:g>a+h&&m>a&&(n[0]+=Math.min(g-h-a,m-a)/c),v-y<p?n[1]=f[1]:y<l&&v<l+p?n[1]-=Math.max(y-l,v-p-l)/c:v>l+p&&y>l&&(n[1]-=Math.min(v-p-l,y-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()}(0,R.fireEvent)(this,"afterSetView"),o&&this.redraw(i)},t.prototype.setUpEvents=function(){var t,e,o,i=this,r=this.chart,n=function(n){var s=r.pointer,a=s.lastTouches,l=s.pinchDown,h=i.projection,p=n.touches,c=r.mouseDownX,u=r.mouseDownY,d=0;if((null==l?void 0:l.length)===1?(c=l[0].chartX,u=l[0].chartY):(null==l?void 0:l.length)===2&&(c=(l[0].chartX+l[1].chartX)/2,u=(l[0].chartY+l[1].chartY)/2),(null==p?void 0:p.length)===2&&a&&(d=Math.log(Math.sqrt(Math.pow(a[0].chartX-a[1].chartX,2)+Math.pow(a[0].chartY-a[1].chartY,2))/Math.sqrt(Math.pow(p[0].chartX-p[1].chartX,2)+Math.pow(p[0].chartY-p[1].chartY,2)))/Math.log(.5)),(0,R.isNumber)(c)&&(0,R.isNumber)(u)){var f=""+c+",".concat(u),m=n.originalEvent,y=m.chartX,g=m.chartY;(null==p?void 0:p.length)===2&&(y=(p[0].chartX+p[1].chartX)/2,g=(p[0].chartY+p[1].chartY)/2),f!==e&&(e=f,t=i.projection.forward(i.center),o=(i.projection.options.rotation||[0,0]).slice());var v=h.def&&h.def.bounds,b=v&&ep(v,i.playingField)||-1/0;if("Orthographic"===h.options.name&&2>((null==p?void 0:p.length)||0)&&(i.minZoom||1/0)<1.3*b){var x=440/(i.getScale()*Math.min(r.plotWidth,r.plotHeight));if(o){var M=(c-y)*x-o[0],w=(0,R.clamp)(-o[1]-(u-g)*x,-80,80),C=i.zoom;i.update({projection:{rotation:[-M,-w]}},!1),i.fitToBounds(void 0,void 0,!1),i.zoom=C,r.redraw(!1)}}else if((0,R.isNumber)(y)&&(0,R.isNumber)(g)){var P=i.getScale(),T=i.projection.hasCoordinates?1:-1,j=i.projection.inverse([t[0]+(c-y)/P,t[1]-(u-g)/P*T]);isNaN(j[0]+j[1])||i.zoomBy(d,j,void 0,!1)}n.preventDefault()}};(0,R.addEvent)(r,"pan",n),(0,R.addEvent)(r,"touchpan",n),(0,R.addEvent)(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}),h=l.y,p=l.x;i.fitToBounds({x1:a,y1:s,x2:p,y2:h},void 0,!0,!t.originalEvent.touches&&void 0),/^touch/.test(t.originalEvent.type)||r.showResetZoom(),t.preventDefault()}})},t.prototype.render=function(){var t=this.chart;this.group?this.groupClipRect&&this.groupClipRect.animate(t.plotBox):(this.groupClipRect=t.renderer.clipRect(t.plotBox),this.group=t.renderer.g("map-view").attr({zIndex:4}).clip(this.groupClipRect).add())},t.prototype.update=function(t,e,o){void 0===e&&(e=!0);var i=t.projection,r=i&&ei.toString(i)!==ei.toString(this.options.projection),n=!1;(0,R.merge)(!0,this.userOptions,t),(0,R.merge)(!0,this.options,t),"insets"in t&&(this.insets.forEach(function(t){return t.destroy()}),this.insets.length=0,n=!0),(r||"fitToGeometry"in t)&&delete this.fitToGeometryCache,(r||n)&&(this.chart.series.forEach(function(t){var e=t.transformGroups;if(t.clearBounds&&t.clearBounds(),t.isDirty=!0,t.isDirtyData=!0,n&&e)for(;e.length>1;){var o=e.pop();o&&o.destroy()}}),r&&(this.projection=new ei(this.options.projection)),n&&this.createInsets(),!t.center&&Object.hasOwnProperty.call(t,"zoom")&&!(0,R.isNumber)(t.zoom)&&this.fitToBounds(void 0,void 0,!1)),t.center||(0,R.isNumber)(t.zoom)?this.setView(this.options.center,t.zoom,!1):"fitToGeometry"in t&&this.fitToBounds(void 0,void 0,!1),e&&this.redraw(o)},t.prototype.zoomBy=function(t,e,o,i){var r=this.chart,n=this.projection.forward(this.center);if("number"==typeof t){var s=this.zoom+t,a=void 0,l=void 0,h=void 0;if(o){var p=o[0],c=o[1],u=this.getScale(),d=p-r.plotLeft-r.plotWidth/2,f=c-r.plotTop-r.plotHeight/2;l=n[0]+d/u,h=n[1]+f/u}if("number"==typeof l&&"number"==typeof h){var u=1-Math.pow(2,this.zoom)/Math.pow(2,s),d=n[0]-l,f=n[1]-h;n[0]-=d*u,n[1]+=f*u,a=this.projection.inverse(n)}this.setView(e||a,s,void 0,i)}else this.fitToBounds(void 0,void 0,void 0,i)},t}(),ed=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=(0,R.merge)({center:[0,0]},e.options.insetOptions,o),i.allBounds=[],i.options.geoBounds){var r=e.projection.path(i.options.geoBounds);i.geoBoundsProjectedBox=tz(r),i.geoBoundsProjectedPolygon=r.map(function(t){return[t[1]||0,t[2]||0]})}return i}return er(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],h=Math.min.apply(0,s)+i[0],p=Math.max.apply(0,s)-i[2];if((0,R.isNumber)(a)&&(0,R.isNumber)(h))return{x:a,y:h,width:l-a,height:p-h}}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()||(0,R.merge)(t.plotBox,{x:0,y:0});r=r.map(function(t){return[(0,R.relativeLength)(""+t[0]+"%",n.width,n.x),(0,R.relativeLength)(""+t[1]+"%",n.height,n.y)]})}return{type:"Polygon",coordinates:[r]}}},e.prototype.getProjectedBounds=function(){return eu.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&&ea(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=this.border.strokeWidth(),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+(0,R.relativeLength)(""+a+"%",s.width,s.x),l=t.plotTop+(0,R.relativeLength)(""+l+"%",s.height,s.y)),a=(0,R.crisp)(a,n),l=(0,R.crisp)(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}(eu),ef=(v=function(t,e){return(v=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}v(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),em=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},ey=X().animObject,eg=X().stop,ev=X().noop,eb=tE.splitPath,ex=$().seriesTypes,eM=ex.column,ew=ex.scatter,eC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.tupleKey="hc-key",e}return ef(e,t),e.prototype.animate=function(t){var e=this.chart,o=this.group,i=ey(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(){var e,o=this;t.prototype.drawDataLabels.call(this),null==(e=this.dataLabelsGroups)||e.forEach(function(t){return null==t?void 0:t.clip(o.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,h=s.insets.length;l<h;++l)n[l+1]||n.push(a.g().add(i));this.doFullTranslate()&&(this.points.forEach(function(t){var e=t.graphic;t.group=n["number"==typeof t.insetIndex?t.insetIndex+1:0],e&&e.parentGroup!==t.group&&e.add(t.group)}),eM.prototype.drawPoints.apply(this),this.points.forEach(function(i){var r,n=i.graphic;if(n){var s=n.animate,a="";i.name&&(a+="highcharts-name-"+i.name.replace(/ /g,"-").toLowerCase()),(null==(r=i.properties)?void 0:r["hc-key"])&&(a+=" highcharts-key-"+i.properties["hc-key"].toString().toLowerCase()),a&&n.addClass(a),o.styledMode&&n.css(t.pointAttribs(i,i.selected&&"select"||void 0)),n.attr({visibility:!i.visible&&(i.visible||i.isNull)?"hidden":"inherit"}),n.animate=function(t,i,r){var a,l=(0,R.isNumber)(t["stroke-width"])&&!(0,R.isNumber)(n["stroke-width"]),h=(0,R.isNumber)(n["stroke-width"])&&!(0,R.isNumber)(t["stroke-width"]);if(l||h){var p=(0,R.pick)(e.getStrokeWidth(e.options),1)/((null==(a=o.mapView)?void 0:a.getScale())||1);l&&(n["stroke-width"]=p),h&&(t["stroke-width"]=p)}return s.call(n,t,i,h?function(){n.element.removeAttribute("stroke-width"),delete n["stroke-width"],r&&r.apply(this,arguments)}:r)}}})),n.forEach(function(i,r){var n=(0===r?s:s.insets[r-1]).getSVGTransform(),l=(0,R.pick)(t.getStrokeWidth(t.options),1),h=n.scaleX,p=n.scaleY>0?1:-1,c=function(o){(e.points||[]).forEach(function(e){var i,r=e.graphic;(null==r?void 0:r["stroke-width"])&&(i=t.getStrokeWidth(e.options))&&r.attr({"stroke-width":i/o})})};if(a.globalAnimation&&o.hasRendered&&s.allowTransformAnimation){var u=Number(i.attr("translateX")),d=Number(i.attr("translateY")),f=Number(i.attr("scaleX")),m=function(t,e){var o=f+(h-f)*e.pos;i.attr({translateX:u+(n.translateX-u)*e.pos,translateY:d+(n.translateY-d)*e.pos,scaleX:o,scaleY:o*p,"stroke-width":l/o}),c(o)},y=(0,R.merge)(ey(a.globalAnimation)),g=y.step;y.step=function(){g&&g.apply(this,arguments),m.apply(this,arguments)},i.attr({animator:0}).animate({animator:1},y,(function(){"boolean"!=typeof a.globalAnimation&&a.globalAnimation.complete&&a.globalAnimation.complete({applyDrilldown:!0}),(0,R.fireEvent)(this,"mapZoomComplete")}).bind(t))}else eg(i),i.attr((0,R.merge)(n,{"stroke-width":l/h})),c(h)}),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=eb(e.path):(0,R.isArray)(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=(0,R.pick)(e.labelrank,(n.x2-n.x1)*(n.y2-n.y1));var s=n.midX,a=n.midY;if(o&&(0,R.isNumber)(s)&&(0,R.isNumber)(a)){var l=(0,R.find)(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=eu.compositeBounds(r)}return this.bounds},e.prototype.getStrokeWidth=function(t){var e=this.pointAttrToOptions;return t[(null==e?void 0:e["stroke-width"])||"borderWidth"]},e.prototype.hasData=function(){return!!this.dataTable.getModified().rowCount},e.prototype.pointAttribs=function(t,e){var o,i,r,n=((null==t?void 0:t.series)||this).chart,s=n.mapView,a=n.styledMode&&t?this.colorAttribs(t):eM.prototype.pointAttribs.call(this,t,e),l=this.getStrokeWidth((null==t?void 0:t.options)||{});if(e){var h=(0,R.merge)(null==(o=this.options.states)?void 0:o[e],(null==(i=null==t?void 0:t.options.states)?void 0:i[e])||{}),p=this.getStrokeWidth(h);(0,R.defined)(p)&&(l=p),a.stroke=null!=(r=h.borderColor)?r:null==t?void 0:t.color}l&&s&&(l/=s.getScale());var c=this.getStrokeWidth(this.options);return a.dashstyle&&s&&(0,R.isNumber)(c)&&(l=c/s.getScale()),(null==t?void 0:t.visible)===!1&&(a.fill=this.options.nullColor),(null==t?void 0:t.isNull)&&this.options.nullInteraction&&(a.opacity=1),(0,R.defined)(l)?a["stroke-width"]=l:delete a["stroke-width"],a["stroke-linecap"]=a["stroke-linejoin"]=this.options.linecap,a},e.prototype.matchPoints=function(){return!this.hasProcessedDataTable&&t.prototype.matchPoints.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.getDataColumnKeys=function(){return this.pointArrayMap},e.prototype.processData=function(){var t,e,o,i=this.options,r=this.dataTable,n=this.chart,s=n.options.chart,a=this.joinBy,l=[],h={},p=this.chart.mapView,c=p&&((0,R.isObject)(i.mapData,!0)?p.getGeoMap(i.mapData):p.geoMap),u=n.mapTransforms=s.mapTransforms||(null==c?void 0:c["hc-transform"])||n.mapTransforms,d=new tw;if(this.hasProcessedDataTable=!0,u&&(0,R.objectEach)(u,function(t){t.rotation&&(t.cosAngle=Math.cos(t.rotation),t.sinAngle=Math.sin(t.rotation))}),(0,R.isArray)(i.mapData)?o=i.mapData:(null==c?void 0:c.type)==="FeatureCollection"&&(this.mapTitle=c.title,o=X().geojson(c,this.type,this)),Object.entries(r.columns).forEach(function(t){var e=t[0],o=t[1];d.setColumn(e,o)}),"_i"===a[0]&&d.setColumn("_i",Array.from({length:d.rowCount},function(t,e){return e})),o){this.mapData=o,this.mapMap={};for(var f=0;f<o.length;f++)e=(t=o[f]).properties,t._i=f,a[0]&&e&&e[a[0]]&&(t[a[0]]=e[a[0]]),h[t[a[0]]]=t;if(this.mapMap=h,a[1])for(var m=a[1],f=0;f<d.rowCount;f++){var y="_i"===m?f:(0,R.getNestedProperty)(m,d.getRowObject(f));h[y]&&l.push(h[y])}if(i.allAreas){var g="|"+l.map(function(t){return t&&t[a[0]]}).join("|")+"|";o.forEach(function(t){a[0]&&-1!==g.indexOf("|"+t[a[0]]+"|")||d.setRow((0,R.merge)(t,{value:null}))})}}this.dataTable.modified=d},e.prototype.setOptions=function(e){var o=t.prototype.setOptions.call(this,e),i=o.joinBy;return null===o.joinBy&&(i="_i"),i&&(this.joinBy=(0,R.splat)(i),this.joinBy[1]||(this.joinBy[1]=this.joinBy[0])),o},e.prototype.translate=function(){var t=this.doFullTranslate(),e=this.chart.mapView,o=null==e?void 0:e.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!e||e.userOptions.center||(0,R.isNumber)(e.userOptions.zoom)||e.zoom!==e.minZoom?this.getProjectedBounds():e.fitToBounds(void 0,void 0,!1)),e){var i=e.getSVGTransform();this.points.forEach(function(r){var n=(0,R.isNumber)(r.insetIndex)&&e.insets[r.insetIndex].getSVGTransform()||i;n&&r.bounds&&(0,R.isNumber)(r.bounds.midX)&&(0,R.isNumber)(r.bounds.midY)&&(r.plotX=r.bounds.midX*n.scaleX+n.translateX,r.plotY=r.bounds.midY*n.scaleY+n.translateY),t&&(r.shapeType="path",r.shapeArgs={d:tI.getProjectedPath(r,o)}),!r.hiddenInDataClass&&(r.projectedPath&&!r.projectedPath.length?r.setVisible(!1):r.visible||r.setVisible(!0))})}(0,R.fireEvent)(this,"afterTranslate")},e.prototype.update=function(e){var o,i=this;e.mapData&&(null==(o=this.chart.mapView)||o.recommendMapView(this.chart,em([this.chart.options.chart.map],(this.chart.options.series||[]).map(function(t,o){return o===i._i?e.mapData:t.mapData}),!0),!0)),t.prototype.update.apply(this,arguments)},e.defaultOptions=(0,R.merge)(ew.defaultOptions,tB),e}(ew);(0,R.extend)(eC.prototype,{type:"map",axisTypes:tg.seriesMembers.axisTypes,colorAttribs:tg.seriesMembers.colorAttribs,colorKey:tg.seriesMembers.colorKey,directTouch:!0,drawDataLabels:ev,drawGraph:ev,forceDL:!0,getCenter:tb.getCenter,getExtremesFromAll:!0,getSymbol:ev,isCartesian:!1,parallelArrays:tg.seriesMembers.parallelArrays,pointArrayMap:tg.seriesMembers.pointArrayMap,pointClass:tI,preserveAspectRatio:!0,searchPoint:ev,trackerGroups:tg.seriesMembers.trackerGroups,useMapGeometry:!0}),tg.compose(eC),$().registerSeriesType("map",eC);var eP={lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"},eT=(b=function(t,e){return(b=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}b(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ej=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eT(e,t),e.prototype.pointAttribs=function(e,o){var i=t.prototype.pointAttribs.call(this,e,o);return i.fill=this.options.fillColor,i},e.defaultOptions=(0,R.merge)(eC.defaultOptions,eP),e}(eC);(0,R.extend)(ej.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),$().registerSeriesType("mapline",ej);var eA=(x=function(t,e){return(x=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}x(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),ek=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eA(e,t),e.prototype.isValid=function(){return!!(this.options.geometry||(0,R.isNumber)(this.x)&&(0,R.isNumber)(this.y)||(0,R.isNumber)(this.options.lon)&&(0,R.isNumber)(this.options.lat))},e}($().seriesTypes.scatter.prototype.pointClass),eO={dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"var(--highcharts-neutral-color-100)"}},legendSymbol:"lineMarker",stickyTracking:!0,tooltip:{pointFormat:"{#if point.name}{point.name}{else}Lat: {point.lat}, Lon: {point.lon}{/if}"}};D(632);var eL=(M=function(t,e){return(M=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}M(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),eE=X().noop,ez=$().seriesTypes,eS=ez.map,e_=ez.scatter,eI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearBounds=eS.prototype.clearBounds,e}return eL(e,t),e.prototype.drawDataLabels=function(){var e,o=this;t.prototype.drawDataLabels.call(this),null==(e=this.dataLabelsGroups)||e.forEach(function(t){null==t||t.clip(o.chart.clipRect)})},e.prototype.projectPoint=function(t){var e=this.chart.mapView;if(e){var o=t.geometry,i=t.lon,r=t.lat,n=o&&"Point"===o.type&&o.coordinates;if((0,R.isNumber)(i)&&(0,R.isNumber)(r)&&(n=[i,r]),n)return e.lonLatToProjectedUnits({lon:n[0],lat:n[1]})}},e.prototype.translate=function(){var t=this,e=this.chart.mapView;if(this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),e){var o=e.getSVGTransform(),i=e.projection.hasCoordinates;this.points.forEach(function(r){var n,s=r.x,a=void 0===s?void 0:s,l=r.y,h=void 0===l?void 0:l,p=(0,R.isNumber)(r.insetIndex)&&e.insets[r.insetIndex].getSVGTransform()||o,c=t.projectPoint(r.options)||r.properties&&t.projectPoint(r.properties);if(c?(a=c.x,h=c.y):r.bounds&&(a=r.bounds.midX,h=r.bounds.midY,p&&(0,R.isNumber)(a)&&(0,R.isNumber)(h)&&(r.plotX=a*p.scaleX+p.translateX,r.plotY=h*p.scaleY+p.translateY,n=!0)),(0,R.isNumber)(a)&&(0,R.isNumber)(h)){if(!n){var u=e.projectedUnitsToPixels({x:a,y:h});r.plotX=u.x,r.plotY=i?u.y:t.chart.plotHeight-u.y}}else r.y=r.plotX=r.plotY=void 0;r.isInside=t.isPointInside(r),r.zone=t.zones.length?r.getZone():void 0})}(0,R.fireEvent)(this,"afterTranslate")},e.defaultOptions=(0,R.merge)(e_.defaultOptions,eO),e}(e_);tj().prototype.symbols.mapmarker=function(t,e,o,i,r){var n,s,a=r&&"legend"===r.context;a?(n=t+o/2,s=e+i):r&&"number"==typeof r.anchorX&&"number"==typeof r.anchorY?(n=r.anchorX,s=r.anchorY):(n=t+o/2,s=e+i/2,e-=i);var l=a?i/3:i/2;return[["M",n,s],["C",n,s,n-l,e+1.5*l,n-l,e+l],["A",l,l,1,1,1,n+l,e+l],["C",n+l,e+1.5*l,n,s,n,s],["Z"]]},(0,R.extend)(eI.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:ek,searchPoint:eE,useMapGeometry:!0}),$().registerSeriesType("mappoint",eI);var eB={borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"0.9em",color:"var(--highcharts-neutral-color-100)"},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0},eN=X().noop,eD=function(){function t(t,e){this.setState=eN,this.init(t,e)}return t.prototype.init=function(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e},t.prototype.addToLegend=function(t){t.splice(this.options.legendIndex,0,this)},t.prototype.drawLegendSymbol=function(t){var e,o=(0,R.pick)(t.options.itemDistance,20),i=this.legendItem||{},r=this.options,n=r.ranges,s=r.connectorDistance;if(!n||!n.length||!(0,R.isNumber)(n[0].value)){t.options.bubbleLegend.autoRanges=!0;return}(0,R.stableSort)(n,function(t,e){return e.value-t.value}),this.ranges=n,this.setOptions(),this.render();var a=this.getMaxLabelSize(),l=this.ranges[0].radius,h=2*l;e=(e=s-l+a.width)>0?e:0,this.maxLabel=a,this.movementX="left"===r.labels.align?e:0,i.labelWidth=h+e+o,i.labelHeight=h+a.height/2},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,o=this.chart.series[e.seriesIndex],i=this.legend.baseline,r={zIndex:e.zIndex,"stroke-width":e.borderWidth},n={zIndex:e.zIndex,"stroke-width":e.connectorWidth},s={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},a=o.options.marker.fillOpacity,l=this.chart.styledMode;t.forEach(function(h,p){l||(r.stroke=(0,R.pick)(h.borderColor,e.borderColor,o.color),r.fill=h.color||e.color,r.fill||(r.fill=o.color,r["fill-opacity"]=null!=a?a:1),n.stroke=(0,R.pick)(h.connectorColor,e.connectorColor,o.color)),t[p].radius=this.getRangeRadius(h.value),t[p]=(0,R.merge)(t[p],{center:t[0].radius-t[p].radius+i}),l||(0,R.merge)(!0,t[p],{bubbleAttribs:(0,R.merge)(r),connectorAttribs:(0,R.merge)(n),labelAttribs:s})},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<r.length;i++){var n=r[i];n.value>=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,h=l.labels,p=t.center,c=Math.abs(t.radius),u=i.connectorDistance||0,d=r.align,f=o.options.rtl,m=i.borderWidth,y=i.connectorWidth,g=e.radius||0,v=p-c-m/2+y/2,b=(v%1?1:.5)-(y%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,p+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 w=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*w.getBBox().height};w.attr(C),h.push(w),w.placed=!0,w.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 e=this.options,o=e.labels.formatter,i=e.labels.format,r=this.chart.numberFormatter;return i?tV().format(i,t,this.chart):o?o.call(t,t):r(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,s=-Number.MAX_VALUE;return i.forEach(function(t){t.isBubble&&!t.ignoreSeries&&(e=t.getColumn("z").filter(R.isNumber)).length&&(n=(0,R.pick)(t.options.zMin,Math.min(n,Math.max((0,R.arrayMin)(e),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),s=(0,R.pick)(t.options.zMax,Math.max(s,(0,R.arrayMax)(e))))}),t=n===s?[{value:s}]:[{value:n},{value:(n+s)/2},{value:s,autoRanges:!0}],r.length&&r[0].radius&&t.reverse(),t.forEach(function(e,o){r&&r[o]&&(t[o]=(0,R.merge)(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],h=l.getPxExtremes(),p=Math.ceil(h.minPxSize),c=Math.ceil(h.maxPxSize),u=Math.min(a,s),d=l.options.maxSize;return i||!/%$/.test(d)?t=c:(t=(u+n)*(d=parseFloat(d))/100/(d/100+1),(r&&a-t>=s||!r&&s-t>=a)&&(t=c)),[p,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}(),eV=X().setOptions,eR=X().composed;function eX(t,e,o){var i,r,n,s=this.legend,a=eG(this)>=0;s&&s.options.enabled&&s.bubbleLegend&&s.options.bubbleLegend.autoRanges&&a?(i=s.bubbleLegend.options,r=s.bubbleLegend.predictBubbleSizes(),s.bubbleLegend.updateRanges(r[0],r[1]),i.placed||(s.group.placed=!1,s.allItems.forEach(function(t){(n=t.legendItem||{}).group&&(n.group.translateY=void 0)})),s.render(),i.placed||(this.getMargins(),this.axes.forEach(function(t){t.setScale(),t.updateNames(),(0,R.objectEach)(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0})}),this.getMargins()),i.placed=!0,t.call(this,e,o),s.bubbleLegend.correctSizes()):(t.call(this,e,o),s&&s.options.enabled&&s.bubbleLegend&&s.render())}function eG(t){for(var e=t.series,o=0;o<e.length;){if(e[o]&&e[o].isBubble&&e[o].visible&&e[o].dataTable.rowCount)return o;o++}return -1}function eY(t){var e=this.bubbleLegend,o=this.options,i=o.bubbleLegend,r=eG(this.chart);e&&e.ranges&&e.ranges.length&&(i.ranges.length&&(i.autoRanges=!!i.ranges[0].autoRanges),this.destroyItem(e)),r>=0&&o.enabled&&i.enabled&&(i.seriesIndex=r,this.bubbleLegend=new eD(i,this),this.bubbleLegend.addToLegend(t.allItems))}function eW(){if(this.bubbleLegend){var t,e,o,i,r=this.allItems,n=this.options.rtl,s=function(t){var e,o,i,r=t.allItems,n=[],s=r.length,a=0,l=0;for(a=0;a<s;a++)if(o=r[a].legendItem||{},i=(r[a+1]||{}).legendItem||{},o.labelHeight&&(r[a].itemHeight=o.labelHeight),r[a]===r[s-1]||o.y!==i.y){for(n.push({height:0}),e=n[n.length-1];l<=a;l++)r[l].itemHeight>e.height&&(e.height=r[l].itemHeight);e.step=a}return n}(this),a=0;r.forEach(function(r,l){(i=r.legendItem||{}).group&&(t=i.group.translateX||0,e=i.y||0,((o=r.movementX)||n&&r.ranges)&&(o=n?t-r.options.maxSize/2:t+o,i.group.attr({translateX:o})),l>s[a].step&&a++,i.group.attr({translateY:Math.round(e+s[a].height/2)}),i.y=e+s[a].height/2)})}}function eH(t){if(t.defaultPrevented)return!1;var e,o=t.legendItem,i=this.chart,r=o.visible;this&&this.bubbleLegend&&(o.visible=!r,o.ignoreSeries=r,e=eG(i)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),o.visible=r)}var eU=function(t,e){(0,R.pushUnique)(eR,"Series.BubbleLegend")&&(eV({legend:{bubbleLegend:eB}}),(0,R.wrap)(t.prototype,"drawChartBox",eX),(0,R.addEvent)(e,"afterGetAllItems",eY),(0,R.addEvent)(e,"afterRender",eW),(0,R.addEvent)(e,"itemClick",eH))},eF=D(260),eZ=D.n(eF),eK=(w=function(t,e){return(w=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}w(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),eq=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return eK(e,t),e.prototype.haloPath=function(t){var e=(t&&this.marker&&this.marker.radius||0)+t;if(this.series.chart.inverted){var o=this.pos()||[0,0],i=this.series,r=i.xAxis,n=i.yAxis,s=i.chart,a=2*e;return s.renderer.symbols.circle(((null==r?void 0:r.len)||0)-o[1]-e,((null==n?void 0:n.len)||0)-o[0]-e,a,a)}return eZ().prototype.haloPath.call(this,e)},e}($().seriesTypes.scatter.prototype.pointClass);(0,R.extend)(eq.prototype,{ttBelow:!1});var e$=(C=function(t,e){return(C=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}C(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),eJ=function(t,e,o){if(o||2==arguments.length)for(var i,r=0,n=e.length;r<n;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))},eQ=X().composed,e0=X().noop,e1=$().series,e2=$().seriesTypes,e3=e2.column.prototype,e6=e2.scatter;function e8(){var t,e=this,o=this.len,i=this.coll,r=this.isXAxis,n=this.min,s=(this.max||0)-(n||0),a=0,l=o,h=o/s;("xAxis"===i||"yAxis"===i)&&(this.series.forEach(function(o){if(o.bubblePadding&&o.reserveSpace()){e.allowZoomOutside=!0,t=!0;var i=o.getColumn(r?"x":"y");if(r&&((o.onPoint||o).getRadii(0,0,o),o.onPoint&&(o.radii=o.onPoint.radii)),s>0){for(var p=i.length;p--;)if((0,R.isNumber)(i[p])&&e.dataMin<=i[p]&&i[p]<=e.max){var c=o.radii&&o.radii[p]||0;a=Math.min((i[p]-n)*h-c,a),l=Math.max((i[p]-n)*h+c,l)}}}}),t&&s>0&&!this.logarithmic&&(l-=o,h*=(o+Math.max(0,a)-Math.min(l,o))/o,[["min","userMin",a],["max","userMax",l]].forEach(function(t){void 0===(0,R.pick)(e.options[t[0]],e[t[1]])&&(e[t[0]]+=t[2]/h)})))}function e7(){var t,e=this.ticks,o=this.tickPositions,i=this.dataMin,r=void 0===i?0:i,n=this.dataMax,s=void 0===n?0:n,a=this.categories,l=this.options.type;if(((null==a?void 0:a.length)||"category"===l)&&this.series.find(function(t){return t.bubblePadding}))for(var h=o.length;h--;){var p=e[o[h]],c=p.pos||0;(c>s||c<r)&&(null==(t=p.label)||t.hide())}}var e9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return e$(e,t),e.compose=function(t,e,o){eU(e,o),(0,R.pushUnique)(eQ,"Series.Bubble")&&((0,R.addEvent)(t,"foundExtremes",e8),(0,R.addEvent)(t,"afterRender",e7))},e.prototype.animate=function(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach(function(t){var e=t.graphic,o=t.plotX,i=t.plotY;e&&e.width&&(this.hasRendered||e.attr({x:void 0===o?0:o,y:void 0===i?0:i,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))},this)},e.prototype.getRadii=function(){var t,e,o,i=eJ([],this.getColumn("z",!1,!0),!0),r=this.getColumn("y"),n=[],s=this.chart.bubbleZExtremes,a=this.getPxExtremes(),l=a.minPxSize,h=a.maxPxSize;if(!s){var p,c=Number.MAX_VALUE,u=-Number.MAX_VALUE;this.chart.series.forEach(function(t){if(t.bubblePadding&&t.reserveSpace()){var e=(t.onPoint||t).getZExtremes();e&&(c=Math.min((0,R.pick)(c,e.zMin),e.zMin),u=Math.max((0,R.pick)(u,e.zMax),e.zMax),p=!0)}}),p?(s={zMin:c,zMax:u},this.chart.bubbleZExtremes=s):s={zMin:0,zMax:0}}for(e=0,t=i.length;e<t;e++)o=i[e],n.push(this.getRadius(s.zMin,s.zMax,l,h,o,r&&r[e]));this.radii=n},e.prototype.getRadius=function(t,e,o,i,r,n){var s=this.options,a="width"!==s.sizeBy,l=s.zThreshold,h=e-t,p=.5;if(null===n||null===r)return null;if((0,R.isNumber)(r)){if(s.sizeByAbsoluteValue&&(r=Math.abs(r-l),e=h=Math.max(e-l,Math.abs(t-l)),t=0),r<t)return o/2-1;h>0&&(p=(r-t)/h)}return a&&p>=0&&(p=Math.sqrt(p)),Math.ceil(o+p*(i-o))/2},e.prototype.hasData=function(){return!!this.dataTable.rowCount},e.prototype.markerAttribs=function(e,o){var i=t.prototype.markerAttribs.call(this,e,o),r=i.height,n=i.width;return this.chart.inverted?(0,R.extend)(i,{x:(e.plotX||0)-(void 0===n?0:n)/2,y:(e.plotY||0)-(void 0===r?0:r)/2}):i},e.prototype.pointAttribs=function(t,e){var o=this.options.marker,i=null==o?void 0:o.fillOpacity,r=e1.prototype.pointAttribs.call(this,t,e);return r["fill-opacity"]=null!=i?i:1,r},e.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},e.prototype.translateBubble=function(){var t=this,e=this.options,o=this.radii,i=this.getPxExtremes().minPxSize;this.data.concat(this.condemnedPoints).forEach(function(r,n){var s,a=r.plotX,l=r.plotY,h=r.condemned?(null==(s=r.marker)?void 0:s.radius)||0:o?o[n]:0;"z"===t.zoneAxis&&(r.negative=(r.z||0)<(e.zThreshold||0)),(0,R.isNumber)(h)&&(r.marker=(0,R.extend)(r.marker,{radius:h,width:2*h,height:2*h})),(0,R.isNumber)(h)&&h>=i/2?r.dlBox={x:(void 0===a?0:a)-h,y:(void 0===l?0:l)-h,width:2*h,height:2*h}:(r.shapeArgs=r.plotY=r.dlBox=void 0,r.isInside=!1)})},e.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((0,R.pick)(this.options.minSize,8)),i=Math.max(e((0,R.pick)(this.options.maxSize,"20%")),o);return{minPxSize:o,maxPxSize:i}},e.prototype.getZExtremes=function(){var t=this.options,e=this.getColumn("z").filter(R.isNumber);if(e.length){var o=(0,R.pick)(t.zMin,(0,R.clamp)((0,R.arrayMin)(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),i=(0,R.pick)(t.zMax,(0,R.arrayMax)(e));if((0,R.isNumber)(o)&&(0,R.isNumber)(i))return{zMin:o,zMax:i}}},e.prototype.searchKDTree=function(e,o,i,r,n){return void 0===r&&(r=e0),void 0===n&&(n=e0),r=function(t,e,o){var i,r,n,s=t[o]||0,a=e[o]||0,l=!1;return s===a?n=t.index>e.index?t:e:s<0&&a<0?(n=s-((null==(i=t.marker)?void 0:i.radius)||0)>=a-((null==(r=e.marker)?void 0:r.radius)||0)?t:e,l=!0):n=s<a?t:e,[n,l]},n=function(t,e,o){return!o&&t>e||t<e},t.prototype.searchKDTree.call(this,e,o,i,r,n)},e.defaultOptions=(0,R.merge)(e6.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return(0,R.isNumber)(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"}),e}(e6);(0,R.extend)(e9.prototype,{alignDataLabel:e3.alignDataLabel,applyZones:e0,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:eq,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),(0,R.addEvent)(e9,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),(0,R.addEvent)(e9,"remove",function(t){delete t.target.chart.bubbleZExtremes}),(0,R.addEvent)(e9,"update",function(t){var e=t.target.options;((0,R.defined)(e.zMin)||(0,R.defined)(e.zMax))&&delete t.target.chart.bubbleZExtremes}),$().registerSeriesType("bubble",e9);var e4=(P=function(t,e){return(P=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}P(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),e5=$().seriesTypes.map.prototype.pointClass.prototype,ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return e4(e,t),e.prototype.isValid=function(){return"number"==typeof this.z},e}(eq);(0,R.extend)(ot.prototype,{applyOptions:e5.applyOptions,getProjectedBounds:e5.getProjectedBounds});var oe=(T=function(t,e){return(T=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}T(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),oo=$().seriesTypes,oi=oo.map.prototype,or=oo.mappoint.prototype,on=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearBounds=oi.clearBounds,e}return oe(e,t),e.prototype.searchPoint=function(t,e){return this.searchKDTree({plotX:t.chartX-this.chart.plotLeft,plotY:t.chartY-this.chart.plotTop},e,t)},e.prototype.translate=function(){or.translate.call(this),this.getRadii(),this.translateBubble()},e.defaultOptions=(0,R.merge)(e9.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"},stickyTracking:!0}),e}(e9);(0,R.extend)(on.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:oi.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:ot,processData:oi.processData,projectPoint:or.projectPoint,kdAxisArray:["plotX","plotY"],setData:oi.setData,setOptions:oi.setOptions,useMapGeometry:!0,xyFromShape:!0}),$().registerSeriesType("mapbubble",on);var os=(j=function(t,e){return(j=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}j(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),oa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return os(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,n=t.yAxis,s=this.options.marker||t.options.marker,a=t.pointPlacementToXValue(),l=(0,R.pick)(this.pointPadding,e.pointPadding,0),h={x1:(0,R.clamp)(Math.round(r.len-r.translate(this.x-o,!1,!0,!1,!0,-a)),-r.len,2*r.len),x2:(0,R.clamp)(Math.round(r.len-r.translate(this.x+o,!1,!0,!1,!0,-a)),-r.len,2*r.len),y1:(0,R.clamp)(Math.round(n.translate(this.y-i,!1,!0,!1,!0)),-n.len,2*n.len),y2:(0,R.clamp)(Math.round(n.translate(this.y+i,!1,!0,!1,!0)),-n.len,2*n.len)},p=0,c=[["width","x"],["height","y"]];p<c.length;p++){var u=c[p],d=u[0],f=u[1],m=f+"1",y=f+"2",g=Math.abs(h[m]-h[y]),v=s&&s.lineWidth||0,b=Math.abs(h[m]+h[y])/2,x=s&&s[d];if((0,R.defined)(x)&&x<g){var M=x/2+v/2;h[m]=b-M,h[y]=b+M}l&&(("x"===f&&r.reversed||"y"===f&&!n.reversed)&&(m=y,y=f+"1"),h[m]+=l,h[y]-=l)}return h},e.prototype.haloPath=function(t){if(!t)return[];var e=this.shapeArgs||{},o=e.x,i=void 0===o?0:o,r=e.y,n=void 0===r?0:r,s=e.width,a=void 0===s?0:s,l=e.height,h=void 0===l?0:l;return[["M",i-t,n-t],["L",i-t,n+h+t],["L",i+a+t,n+h+t],["L",i+a+t,n-t],["Z"]]},e.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},e}($().seriesTypes.scatter.prototype.pointClass);(0,R.extend)(oa.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});var ol={animation:!1,borderRadius:0,borderWidth:0,interpolation:!1,nullColor:"var(--highcharts-neutral-color-3)",dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.value;return(0,R.isNumber)(e)?t(e,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{radius:0,lineColor:void 0,states:{hover:{lineWidthPlus:0},select:{}}},clip:!0,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}},legendSymbol:"rectangle"},oh=X().doc,op=function(t){var e=t.canvas,o=t.context;return e&&null!=o&&o.clearRect?(o.clearRect(0,0,e.width,e.height),o):(t.canvas=oh.createElement("canvas"),t.context=t.canvas.getContext("2d",{willReadFrequently:!0})||void 0,t.context)},oc=(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)}),ou=function(){return(ou=Object.assign||function(t){for(var e,o=1,i=arguments.length;o<i;o++)for(var r in e=arguments[o])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},od=$().series,of=$().seriesTypes,om=of.column,oy=of.scatter,og=tj().prototype.symbols,ov=function(t,e){var o=e.series.colorAxis;if(o){var i=o.toColor(t||0,e).split(")")[0].split("(")[1].split(",").map(function(t){return(0,R.pick)(parseFloat(t),parseInt(t,10))});return i[3]=255*(0,R.pick)(i[3],1),(0,R.defined)(t)&&e.visible||(i[3]=0),i}return[0,0,0,0]},ob=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueMax=NaN,e.valueMin=NaN,e.isDirtyCanvas=!0,e}return oc(e,t),e.prototype.drawPoints=function(){var t=this,e=t.options,o=e.interpolation,i=e.marker||{};if(o){var r=t.image,n=t.chart,s=t.xAxis,a=t.yAxis,l=s.reversed,h=s.len,p=a.reversed,c=a.len,u={width:h,height:c};if(!r||t.isDirtyData||t.isDirtyCanvas){var d=op(t),f=t.canvas,m=t.options,y=m.colsize,g=m.rowsize,v=t.points,b=t.points.length,x=n.colorAxis&&n.colorAxis[0];if(f&&d&&x){var M=s.getExtremes(),w=M.min,C=M.max,P=a.getExtremes(),T=P.min,j=P.max,A=C-w,k=j-T,O=Math.round(A/(void 0===y?1:y)/8*8),L=Math.round(k/(void 0===g?1:g)/8*8),E=[[O,O/A,void 0!==l&&l,"ceil"],[L,L/k,!(void 0!==p&&p),"floor"]].map(function(t){var e=t[0],o=t[1],i=t[2],r=t[3];return i?function(t){return Math[r](e-o*t)}:function(t){return Math[r](o*t)}}),z=E[0],S=E[1],_=f.width=O+1,I=_*(f.height=L+1),B=(b-1)/I,N=new Uint8ClampedArray(4*I);t.buildKDTree();for(var D=0;D<I;D++){var V=v[Math.ceil(B*D)],R=V.x,X=V.y;N.set(ov(V.value,V),4*Math.ceil(_*S(X-T)+z(R-w)))}d.putImageData(new ImageData(N,_),0,0),r?r.attr(ou(ou({},u),{href:f.toDataURL("image/png",1)})):(t.directTouch=!1,t.image=n.renderer.image(f.toDataURL("image/png",1)).attr(u).add(t.group))}t.isDirtyCanvas=!1}else(r.width!==h||r.height!==c)&&r.attr(u)}else(i.enabled||t._hasPointMarkers)&&(od.prototype.drawPoints.call(t),t.points.forEach(function(e){e.graphic&&(e.graphic[t.chart.styledMode?"css":"animate"](t.colorAttribs(e)),null===e.value&&e.graphic.addClass("highcharts-null-point"))}))},e.prototype.getSymbol=function(){var t;this.symbol=(null==(t=this.options.marker)?void 0:t.symbol)||"rect"},e.prototype.getExtremes=function(){var t=od.prototype.getExtremes.call(this,this.getColumn("value")),e=t.dataMin,o=t.dataMax;return(0,R.isNumber)(e)&&(this.valueMin=e),(0,R.isNumber)(o)&&(this.valueMax=o),od.prototype.getExtremes.call(this)},e.prototype.getValidPoints=function(t,e){return od.prototype.getValidPoints.call(this,t,e,!0)},e.prototype.hasData=function(){return!!this.dataTable.rowCount},e.prototype.init=function(){t.prototype.init.apply(this,arguments);var e=this.options;e.pointRange=(0,R.pick)(e.pointRange,e.colsize||1),this.yAxis.axisPointRange=e.rowsize||1,og.ellipse=og.circle,e.marker&&(0,R.isNumber)(e.borderRadius)&&(e.marker.r=e.borderRadius);var o=this.canvas=document.createElement("canvas");o&&(this.context=null==o?void 0:o.getContext("webgpu"))},e.prototype.markerAttribs=function(t,e){var o,i,r=t.shapeArgs||{};if(t.hasImage)return{x:t.plotX,y:t.plotY};if(e&&"normal"!==e){var n=t.options.marker||{},s=(null==(o=(this.options.marker||{}).states)?void 0:o[e])||{},a=(null==(i=n.states)?void 0:i[e])||{},l=(a.width||s.width||r.width||0)+(a.widthPlus||s.widthPlus||0),h=(a.height||s.height||r.height||0)+(a.heightPlus||s.heightPlus||0);return{x:(r.x||0)+((r.width||0)-l)/2,y:(r.y||0)+((r.height||0)-h)/2,width:l,height:h}}return r},e.prototype.pointAttribs=function(t,e){var o,i,r,n,s,a,l,h=od.prototype.pointAttribs.call(this,t,e),p=this.options||{},c=this.chart.options.plotOptions||{},u=c.series||{},d=c.heatmap||{},f=(null==t?void 0:t.options.borderColor)||p.borderColor||d.borderColor||u.borderColor,m=(null==t?void 0:t.options.borderWidth)||p.borderWidth||d.borderWidth||u.borderWidth||h["stroke-width"];if(h.stroke=(null==(o=null==t?void 0:t.marker)?void 0:o.lineColor)||(null==(i=p.marker)?void 0:i.lineColor)||f||this.color,h["stroke-width"]=m,e&&"normal"!==e){var y=(0,R.merge)(null==(r=p.states)?void 0:r[e],null==(s=null==(n=p.marker)?void 0:n.states)?void 0:s[e],(null==(l=null==(a=null==t?void 0:t.options.marker)?void 0:a.states)?void 0:l[e])||{});h.fill=y.color||H().parse(h.fill).brighten(y.brightness||0).get(),h.stroke=y.lineColor||h.stroke}return h},e.prototype.translate=function(){var t,e=this.options,o=e.borderRadius,i=e.marker,r=(null==i?void 0:i.symbol)||"rect",n=og[r]?r:"rect",s=-1!==["circle","square"].indexOf(n);this.generatePoints();for(var a=0,l=this.points;a<l.length;a++){var h=l[a],p=h.getCellAttributes(),c=Math.min(p.x1,p.x2),u=Math.min(p.y1,p.y2),d=Math.max(Math.abs(p.x2-p.x1),0),f=Math.max(Math.abs(p.y2-p.y1),0);if(h.hasImage=0===((null==(t=h.marker)?void 0:t.symbol)||r||"").indexOf("url"),s){var m=Math.abs(d-f);c=Math.min(p.x1,p.x2)+(d<f?0:m/2),u=Math.min(p.y1,p.y2)+(d<f?m/2:0),d=f=Math.min(d,f)}h.hasImage&&(h.marker={width:d,height:f}),h.plotX=h.clientX=(p.x1+p.x2)/2,h.plotY=(p.y1+p.y2)/2,h.shapeType="path",h.shapeArgs=(0,R.merge)(!0,{x:c,y:u,width:d,height:f},{d:og[n](c,u,d,f,{r:(0,R.isNumber)(o)?o:0})})}(0,R.fireEvent)(this,"afterTranslate")},e.defaultOptions=(0,R.merge)(oy.defaultOptions,ol),e}(oy);(0,R.addEvent)(ob,"afterDataClassLegendClick",function(){this.isDirtyCanvas=!0,this.drawPoints(),this.options.enableMouseTracking&&this.drawTracker()}),(0,R.extend)(ob.prototype,{axisTypes:tg.seriesMembers.axisTypes,colorKey:tg.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:tg.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:oa,specialGroup:"group",trackerGroups:tg.seriesMembers.trackerGroups,alignDataLabel:om.prototype.alignDataLabel,colorAttribs:tg.seriesMembers.colorAttribs}),tg.compose(ob),$().registerSeriesType("heatmap",ob);var ox=X();ox.ColorMapComposition=tg,ox.MapChart=ox.MapChart||tE,ox.MapNavigation=ox.MapNavigation||tc,ox.MapView=ox.MapView||eu,ox.Projection=ox.Projection||ei,ox.mapChart=ox.Map=ox.MapChart.mapChart,ox.maps=ox.MapChart.maps,ox.geojson=tG.geojson,ox.topo2geo=tG.topo2geo,tG.compose(ox.Chart),on.compose(ox.Axis,ox.Chart,ox.Legend),tc.compose(tE,ox.Pointer,ox.SVGRenderer),eu.compose(tE);var oM=X();return V.default}()});