Hacked By AnonymousFox

Current Path : C:/AppServ/www/financial/stacked/code/es5/modules/
Upload File :
Current File : C:/AppServ/www/financial/stacked/code/es5/modules/map.js

!/**
 * Highcharts JS v12.1.2 (2025-01-09)
 * @module highcharts/modules/color-axis
 * @requires highcharts
 *
 * ColorAxis module
 *
 * (c) 2012-2024 Pawel Potaczek
 *
 * License: www.highcharts.com/license
 */function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("highcharts"),require("highcharts").Axis,require("highcharts").Color,require("highcharts").LegendSymbol,require("highcharts").SeriesRegistry,require("highcharts").SVGElement,require("highcharts").Series,require("highcharts").Chart,require("highcharts").SVGRenderer,require("highcharts").Templating,require("highcharts").Series.types.scatter,require("highcharts").Point):"function"==typeof define&&define.amd?define("highcharts/modules/map",[["highcharts/highcharts"],["highcharts/highcharts","Axis"],["highcharts/highcharts","Color"],["highcharts/highcharts","LegendSymbol"],["highcharts/highcharts","SeriesRegistry"],["highcharts/highcharts","SVGElement"],["highcharts/highcharts","Series"],["highcharts/highcharts","Chart"],["highcharts/highcharts","SVGRenderer"],["highcharts/highcharts","Templating"],["highcharts/highcharts","Series","types","scatter"],["highcharts/highcharts","Point"]],e):"object"==typeof exports?exports["highcharts/modules/map"]=e(require("highcharts"),require("highcharts").Axis,require("highcharts").Color,require("highcharts").LegendSymbol,require("highcharts").SeriesRegistry,require("highcharts").SVGElement,require("highcharts").Series,require("highcharts").Chart,require("highcharts").SVGRenderer,require("highcharts").Templating,require("highcharts").Series.types.scatter,require("highcharts").Point):t.Highcharts=e(t.Highcharts,t.Highcharts.Axis,t.Highcharts.Color,t.Highcharts.LegendSymbol,t.Highcharts.SeriesRegistry,t.Highcharts.SVGElement,t.Highcharts.Series,t.Highcharts.Chart,t.Highcharts.SVGRenderer,t.Highcharts.Templating,t.Highcharts.Series.types.scatter,t.Highcharts.Point)}(this,function(t,e,o,i,r,n,s,a,h,l,p,c){return function(){"use strict";var u,d,f,y,m,g,v,b,x,M,w,C,P,j,A,T,O,L,S,k,z,E,I,_,B,D,V={532:function(t){t.exports=e},960:function(t){t.exports=a},620:function(t){t.exports=o},500:function(t){t.exports=i},260:function(t){t.exports=c},28:function(t){t.exports=n},540:function(t){t.exports=h},632:function(t){t.exports=p},820:function(t){t.exports=s},512:function(t){t.exports=r},984:function(t){t.exports=l},944:function(e){e.exports=t}},X={};function N(t){var e=X[t];if(void 0!==e)return e.exports;var o=X[t]={exports:{}};return V[t](o,o.exports,N),o.exports}N.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return N.d(e,{a:e}),e},N.d=function(t,e){for(var o in e)N.o(e,o)&&!N.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},N.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var G={};N.d(G,{default:function(){return ru}});var R=N(944),Y=N.n(R),W=N(532),U=N.n(W),F=N(620),Z=N.n(F),q=Z().parse,H=Y().addEvent,K=Y().extend,$=Y().merge,J=Y().pick,Q=Y().splat;!function(t){var e;function o(){var t=this,o=this.userOptions;this.colorAxis=[],o.colorAxis&&(o.colorAxis=Q(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){(e=t.options)&&e.showInLegend&&(e.dataClasses&&e.visible?s=s.concat(t.getDataClassLegendSymbols()):e.visible&&s.push(t),t.series.forEach(function(t){(!t.options.showInLegend||e.dataClasses)&&("point"===t.options.legendType?t.points.forEach(function(t){n(t)}):n(t))}))}),o=s.length;o--;)t.allItems.unshift(s[o])}function 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)||void 0===e||e.forEach(function(e){e.update({},t.redraw)})}function s(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function a(){var t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function h(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 l(){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",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}function c(){this.elem.attr("stroke",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}t.compose=function(t,u,d,f,y){var m,g=u.prototype,v=d.prototype,b=y.prototype;g.collectionsWithUpdate.includes("colorAxis")||(e=t,g.collectionsWithUpdate.push("colorAxis"),g.collectionsWithInit.colorAxis=[g.addColorAxis],H(u,"afterCreateAxes",o),m=u.prototype.createAxis,u.prototype.createAxis=function(t,o){if("colorAxis"!==t)return m.apply(this,arguments);var i=new e(this,$(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}),J(o.redraw,!0)&&this.redraw(o.animation),i},v.fillSetter=p,v.strokeSetter=c,H(f,"afterGetAllItems",i),H(f,"afterColorizeItem",r),H(f,"afterUpdate",n),K(b,{optionalAxis:"colorAxis",translateColors:l}),K(b.pointClass.prototype,{setVisible:h}),H(y,"afterTranslate",s,{order:1}),H(y,"bindAxes",a))},t.pointSetVisible=h}(S||(S={}));var tt=S,te=Z().parse,to=Y().merge;(u=k||(k={})).initDataClasses=function(t){var e,o,i,r=this.chart,n=this.legendItem=this.legendItem||{},s=this.options,a=t.dataClasses||[],h=r.options.chart.colorCount,l=0;this.dataClasses=o=[],n.labels=[];for(var p=0,c=a.length;p<c;++p)e=to(e=a[p]),o.push(e),(r.styledMode||!e.color)&&("category"===s.dataClassColor?(r.styledMode||(h=(i=r.options.colors||[]).length,e.color=i[l]),e.colorIndex=l,++l===h&&(l=0)):e.color=te(s.minColor).tweenTo(te(s.maxColor),c<2?.5:p/(c-1)))},u.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=te(e[o][1])},u.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)},u.toColor=function(t,e){var o,i,r,n,s,a,h=this.dataClasses,l=this.stops;if(h){for(a=h.length;a--;)if(i=(s=h[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=l.length;a--&&!(o>l[a][0]););i=l[a]||l[a+1],o=1-((r=l[a+1]||i)[0]-o)/(r[0]-i[0]||1),n=i.color.tweenTo(r.color,o)}return n};var ti=k,tr=N(500),tn=N.n(tr),ts=N(512),ta=N.n(ts),th=(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)e.hasOwnProperty(o)&&(t[o]=e[o])})(t,e)},function(t,e){function o(){this.constructor=t}d(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),tl=Y().defaultOptions,tp=ta().series,tc=Y().defined,tu=Y().extend,td=Y().fireEvent,tf=Y().isArray,ty=Y().isNumber,tm=Y().merge,tg=Y().pick,tv=Y().relativeLength;tl.colorAxis=tm(tl.xAxis,{lineWidth:0,minPadding:0,maxPadding:0,gridLineColor:"#ffffff",gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{distance:8,overflow:"justify",rotation:0},minColor:"#e6e9ff",maxColor:"#0022ff",tickLength:5,showInLegend:!0});var tb=function(t){function e(e,o){var i=t.call(this,e,o)||this;return i.coll="colorAxis",i.visible=!0,i.init(e,o),i}return th(e,t),e.compose=function(t,o,i,r){tt.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||!r,this.opposite=!r,t.prototype.init.call(this,e,o,"colorAxis"),this.userOptions=o,tf(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=tm(tl.colorAxis,e,{showEmpty:!1,title:null,visible:this.chart.options.legend.enabled&&!1!==e.visible});t.prototype.setOptions.call(this,o),this.options.crosshair=this.options.marker},e.prototype.setAxisSize=function(){var t,o=this.chart,i=null===(t=this.legendItem)||void 0===t?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=null===(o=this.legendItem)||void 0===o?void 0:o.group,r=this.chart.axisOffset[this.side];if(i){this.axisParent=i,t.prototype.getOffset.call(this);var n=this.chart.legend;n.allItems.forEach(function(t){t instanceof e&&t.drawLegendSymbol(n,t)}),n.render(),this.chart.getMargins(!0),this.chart.series.some(function(t){return t.isDrilling})||(this.isDirty=!0),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=r}},e.prototype.setLegendColor=function(){var t=this.horiz,e=this.reversed,o=e?1:0,i=e?0:1,r=t?[o,0,i,0]:[0,i,0,o];this.legendColor={linearGradient:{x1:r[0],y1:r[1],x2:r[2],y2:r[3]},stops:this.stops}},e.prototype.drawLegendSymbol=function(t,e){var o,i=e.legendItem||{},r=t.padding,n=t.options,s=this.options.labels,a=tg(n.itemDistance,10),h=this.horiz,l=this.getSize(),p=l.width,c=l.height,u=tg(n.labelPadding,h?16:30);this.setLegendColor(),i.symbol||(i.symbol=this.chart.renderer.symbol("roundedRect").attr({r:null!==(o=n.symbolRadius)&&void 0!==o?o:3,zIndex:1}).add(i.group)),i.symbol.attr({x:0,y:(t.baseline||0)-11,width:p,height:c}),i.labelWidth=p+r+(h?a:tg(s.x,s.distance)+(this.maxLabelLength||0)),i.labelHeight=c+r+(h?u:0)},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=tg(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 h=a[s];if((t=i.getColumn(h)).length)break}if(o)i.minColorValue=i[e+"Min"],i.maxColorValue=i[e+"Max"];else{var l=tp.prototype.getExtremes.call(i,t);i.minColorValue=l.dataMin,i.maxColorValue=l.dataMax}tc(i.minColorValue)&&tc(i.maxColorValue)&&(this.dataMin=Math.min(this.dataMin,i.minColorValue),this.dataMax=Math.max(this.dataMax,i.maxColorValue)),o||tp.prototype.applyExtremes.call(i)}},e.prototype.drawCrosshair=function(e,o){var i,r=this.legendItem||{},n=o&&o.plotX,s=o&&o.plotY,a=this.pos,h=this.len;o&&((i=this.toPixels(o.getNestedProperty(o.series.colorKey)))<a?i=a-2:i>a+h&&(i=a+h+2),o.plotX=i,o.plotY=this.len-i,t.prototype.drawCrosshair.call(this,e,o),o.plotX=n,o.plotY=s,this.cross&&!this.cross.addedToColorAxis&&r.group&&(this.cross.addClass("highcharts-coloraxis-marker").add(r.group),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!=typeof this.crosshair||this.cross.attr({fill:this.crosshair.color})))},e.prototype.getPlotLinePath=function(e){var o=this.left,i=e.translatedValue,r=this.top;return ty(i)?this.horiz?[["M",i-4,r-6],["L",i+4,r-6],["L",i,r],["Z"]]:[["M",o,i],["L",o-6,i+6],["L",o-6,i-6],["Z"]]:t.prototype.getPlotLinePath.call(this,e)},e.prototype.update=function(e,o){var i=this.chart.legend;this.series.forEach(function(t){t.isDirtyData=!0}),(e.dataClasses&&i.allItems||this.dataClasses)&&this.destroyItems(),t.prototype.update.call(this,e,o),this.legendItem&&this.legendItem.label&&(this.setLegendColor(),i.colorizeItem(this,!0))},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=tg(r.valueDecimals,-1),s=tg(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,h){var l=r.from,p=r.to,c=o.numberFormatter,u=!0;t="",void 0===l?t="< ":void 0===p&&(t="> "),void 0!==l&&(t+=c(l,n)+s),void 0!==l&&void 0!==p&&(t+=" - "),void 0!==p&&(t+=c(p,n)+s),i.push(tu({chart:o,name:t,options:{},drawLegendSymbol:tn().rectangle,visible:!0,isDataClass:!0,setState:function(t){for(var e=0,o=a(h);e<o.length;e++)o[e].setState(t)},setVisible:function(){this.visible=u=e.visible=!u;for(var t=[],i=0,r=a(h);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){td(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:tg(tc(n)?tv(n,t.chartWidth):void 0,null==s?void 0:s.symbolWidth,o?e.defaultLegendLength:12),height:tg(tc(r)?tv(r,t.chartHeight):void 0,null==s?void 0:s.symbolHeight,o?12:e.defaultLegendLength)}},e.defaultLegendLength=200,e.keepProps=["legendItem"],e}(U());tu(tb.prototype,ti),Array.prototype.push.apply(U().keepProps,tb.keepProps);var tx=Y();tx.ColorAxis=tx.ColorAxis||tb,tx.ColorAxis.compose(tx.Chart,tx.Fx,tx.Legend,tx.Series);var tM={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:"#666666",fontSize:"1em",fontWeight:"bold"},theme:{fill:"#ffffff",stroke:"#e6e6e6","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}},tw=Y().defined,tC=Y().extend,tP=Y().pick,tj=Y().wrap;!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,r=tw((t=this.normalize(t)).wheelDelta)&&-t.wheelDelta/120||t.deltaY||t.detail;Math.abs(r)>=1&&(o+=Math.abs(r),e&&clearTimeout(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&&tC(e,r)}return e}function s(t){var e=this.chart.options.mapNavigation;e&&tP(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||(tC(e,{onContainerDblClick:i,onContainerMouseWheel:r}),tj(e,"normalize",n),tj(e,"zoomOption",s))}}(z||(z={}));var tA=z;function tT(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 tO(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 tL=function(t){(E=t.prototype.symbols).bottombutton=tT,E.topbutton=tO},tS=Y().setOptions,tk=Y().composed,tz=Y().addEvent,tE=Y().extend,tI=Y().merge,t_=Y().objectEach,tB=Y().pick,tD=Y().pushUnique;function tV(t){var e,o;t&&(null===(e=t.preventDefault)||void 0===e||e.call(t),null===(o=t.stopPropagation)||void 0===o||o.call(t),t.cancelBubble=!0)}var tX=function(){function t(t){this.chart=t,this.navButtons=[]}return t.compose=function(e,o,i){tA.compose(o),tL(i),tD(tk,"Map.Navigation")&&(tz(e,"beforeRender",function(){this.mapNavigation=new t(this),this.mapNavigation.update()}),tS(tM))},t.prototype.update=function(t){var e,o=this,i=o.chart,r=o.navButtons,n=function(t){this.handler.call(i,t),tV(t)},s=i.options.mapNavigation;for(t&&(s=i.options.mapNavigation=tI(i.options.mapNavigation,t));r.length;)null===(e=r.pop())||void 0===e||e.destroy();!i.renderer.forExport&&tB(s.enableButtons,s.enabled)&&(o.navButtonsGroup||(o.navButtonsGroup=i.renderer.g().attr({zIndex:7}).add()),t_(s.buttons,function(t,e){var a,h={padding:(t=tI(s.buttonOptions,t)).padding};!i.styledMode&&t.theme&&(tE(h,t.theme),h.style=tI(t.theme.style,t.style));var l=t.text,p=t.width,c=void 0===p?0:p,u=t.height,d=void 0===u?0:u,f=t.padding,y=void 0===f?0:f,m=i.renderer.button("+"!==l&&"-"!==l&&l||"",0,0,n,h,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("+"===l||"-"===l){var g=c+1,v=[["M",y+3,y+d/2],["L",y+g-3,y+d/2]];"+"===l&&v.push(["M",y+g/2,y+3],["L",y+g/2,y+d-3]),i.renderer.path(v).addClass("highcharts-button-symbol").attr(i.styledMode?{}:{stroke:null===(a=t.style)||void 0===a?void 0:a.color,"stroke-width":3,"stroke-linecap":"round"}).add(m)}if(m.handler=t.onclick,tz(m.element,"dblclick",tV),r.push(m),tE(t,{width:m.width,height:2*(m.height||0)}),i.hasLoaded)m.align(t,!1,t.alignTo);else var b=tz(i,"load",function(){m.element&&m.align(t,!1,t.alignTo),b()})}),i.hasLoaded||tz(i,"render",function(){var t,e=null===(t=i.exportingGroup)||void 0===t?void 0:t.getBBox();if(e){var r=o.navButtonsGroup.getBBox();if(!(r.x>=e.x+e.width||r.x+r.width<=e.x||r.y>=e.y+e.height||r.y+r.height<=e.y)){var n=-r.y-r.height+e.y-5,a=e.y+e.height-r.y+5,h=s.buttonOptions&&s.buttonOptions.verticalAlign;o.navButtonsGroup.attr({translateY:"bottom"===h?n:a})}}})),this.updateEvents(s)},t.prototype.updateEvents=function(t){var e=this.chart;tB(t.enableDoubleClickZoom,t.enabled)||t.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||tz(e.container,"dblclick",function(t){e.pointer.onContainerDblClick(t)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),tB(t.enableMouseWheelZoom,t.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||tz(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?void 0:o.zoom;e.pointer.onContainerMouseWheel(t),r!==(null===(i=e.mapView)||void 0===i?void 0:i.zoom)&&tV(t)}return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},t}(),tN=N(28),tG=N.n(tN),tR=ta().seriesTypes.column.prototype,tY=Y().addEvent,tW=Y().defined;!function(t){function e(t){var e=this.series,o=e.chart.renderer;this.moveToTopOnHover&&this.graphic&&(e.stateMarkerGraphic||(e.stateMarkerGraphic=new(tG())(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:""}))}t.pointMembers={dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&this.value!==1/0&&this.value!==-1/0&&(void 0===this.value||!isNaN(this.value))}},t.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(t){var e={};return tW(t.color)&&(!t.state||"normal"===t.state)&&(e[this.colorProp||"fill"]=t.color),e},pointAttribs:tR.pointAttribs},t.compose=function(t){return tY(t.prototype.pointClass,"afterSetState",e),t}}(I||(I={}));var tU=I,tF=N(820),tZ=N.n(tF),tq=Y().deg2rad,tH=Y().fireEvent,tK=Y().isNumber,t$=Y().pick,tJ=Y().relativeLength;(f=_||(_={})).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,h=i.center,l=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=[t$(null==h?void 0:h[0],"50%"),t$(null==h?void 0:h[1],"50%"),t$(c&&c<0?void 0:i.size,"100%"),t$(u&&u<0?void 0:i.innerSize||0,"0%")];for(!r.angular||this instanceof tZ()||(d[3]=0),e=0;e<4;++e)o=d[e],t=e<2||2===e&&/%$/.test(o),d[e]=tJ(o,[s,a,l,d[2]][e])+(t?n:0);return d[3]>d[2]&&(d[3]=d[2]),tK(p)&&2*p<d[2]&&p>0&&(d[3]=d[2]-2*p),tH(this,"afterGetCenter",{positions:d}),d},f.getStartAndEndRadians=function(t,e){var o=tK(t)?t:0,i=tK(e)&&e>o&&e-o<360?e:o+360;return{start:tq*(o+-90),end:tq*(i+-90)}};var tQ=_,t0=N(960),t1=N.n(t0),t2=N(540),t6=N.n(t2),t3=(y=function(t,e){return(y=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}y(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),t8=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))},t7=Y().getOptions,t9=Y().isNumber,t4=Y().merge,t5=Y().pick,et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return t3(e,t),e.prototype.init=function(e,o){var i=t7().credits,r=t4({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:t5(i.mapText,' \xa9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:t5(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&&(t9(t)&&(t=Math.log(t)/Math.log(.5)),this.mapView.zoomBy(t,t9(e)&&t9(o)?this.mapView.projection.inverse([e,o]):void 0,t9(i)&&t9(r)?[i,r]:void 0))},e.prototype.update=function(e){var o;e.chart&&"map"in e.chart&&(null===(o=this.mapView)||void 0===o||o.recommendMapView(this,t8([e.chart.map],(this.options.series||[]).map(function(t){return t.mapData}),!0),!0)),t.prototype.update.apply(this,arguments)},e}(t1());(m=et||(et={})).maps={},m.mapChart=function(t,e,o){return new m(t,e,o)},m.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,t6().prototype.pathToSegments(e)};var ee=et,eo=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}},ei=(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)}),er=function(){return(er=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)},en=ta().seriesTypes.scatter.prototype.pointClass,es=Y().extend,ea=Y().isNumber,eh=Y().pick,el=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ei(e,t),e.getProjectedPath=function(t,e){return t.projectedPath||(e&&t.geometry?(e.hasCoordinates=!0,t.projectedPath=e.path(t.geometry)):t.projectedPath=t.path),t.projectedPath||[]},e.prototype.applyOptions=function(e,o){var i,r=this.series,n=t.prototype.applyOptions.call(this,e,o),s=r.joinBy;if(r.mapData&&r.mapMap){var a=s[1],h=t.prototype.getNestedProperty.call(this,a),l=void 0!==h&&r.mapMap[h];l?es(n,er(er({},l),{name:null!==(i=n.name)&&void 0!==i?i:l.name})):-1!==r.pointArrayMap.indexOf("value")&&(n.value=n.value||null)}return n},e.prototype.getProjectedBounds=function(t){var o=eo(e.getProjectedPath(this,t)),i=this.properties,r=this.series.chart.mapView;if(o){var n=i&&i["hc-middle-lon"],s=i&&i["hc-middle-lat"];if(r&&ea(n)&&ea(s)){var a=t.forward([n,s]);o.midX=a[0],o.midY=a[1]}else{var h=i&&i["hc-middle-x"],l=i&&i["hc-middle-y"];o.midX=o.x1+(o.x2-o.x1)*eh(this.middleX,ea(h)?h:.5);var p=eh(this.middleY,ea(l)?l:.5);this.geometry||(p=1-p),o.midY=o.y2-(o.y2-o.y1)*p}return o}},e.prototype.onMouseOver=function(e){Y().clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?t.prototype.onMouseOver.call(this,e):this.series.onMouseOut()},e.prototype.setVisible=function(t){this.visible=this.options.visible=!!t,this.dataLabel&&this.dataLabel[t?"show":"hide"](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},e.prototype.zoomTo=function(t){var e=this.series.chart,o=e.mapView,i=this.bounds;if(o&&i){var r=ea(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}),h=o.pixelsToProjectedUnits({x:s.x,y:s.y});i={x1:a.x,y1:a.y,x2:h.x,y2:h.y}}o.fitToBounds(i,void 0,!1),this.series.isDirty=!0,e.redraw(t)}},e}(en);es(el.prototype,{dataLabelOnNull:tU.pointMembers.dataLabelOnNull,moveToTopOnHover:tU.pointMembers.moveToTopOnHover,isValid:tU.pointMembers.isValid});var ep=Y().isNumber,ec={affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.value;return ep(e)?t(e,-1):this.point.name||""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},linecap:"round",marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#e6e6e6",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:void 0,borderColor:"#666666",borderWidth:2},normal:{animation:!0},select:{color:"#cccccc"}},legendSymbol:"rectangle"},eu={center:[0,0],fitToGeometry:void 0,maxZoom:void 0,padding:0,projection:{name:void 0,parallels:void 0,rotation:void 0},zoom:void 0,insetOptions:{borderColor:"#cccccc",borderWidth:1,padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}},ed=N(984),ef=N.n(ed),ey=Y().win,em=ef().format,eg=Y().error,ev=Y().extend,eb=Y().merge,ex=Y().wrap;!function(t){function e(t){return this.mapView&&this.mapView.lonLatToProjectedUnits(t)}function o(t){return this.mapView&&this.mapView.projectedUnitsToLonLat(t)}function i(t,e){var o=this.options.chart.proj4||ey.proj4;if(!o){eg(21,!1,this);return}var i=e.jsonmarginX,r=e.jsonmarginY,n=e.jsonres,s=void 0===n?1:n,a=e.scale,h=void 0===a?1:a,l=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),y=e.sinAngle||e.rotation&&Math.sin(e.rotation),m=e.rotation?[d[0]*f+d[1]*y,-d[0]*y+d[1]*f]:d;return{x:((m[0]-(void 0===l?0:l))*h+(void 0===p?0:p))*s+(void 0===i?0:i),y:-((((void 0===c?0:c)-m[1])*h+(void 0===u?0:u))*s-(void 0===r?0:r))}}function r(t,e){var o=this.options.chart.proj4||ey.proj4;if(!o){eg(21,!1,this);return}if(null!==t.y){var i=e.jsonmarginX,r=e.jsonmarginY,n=e.jsonres,s=void 0===n?1:n,a=e.scale,h=void 0===a?1:a,l=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))/h+(void 0===l?0:l),y:((t.y-(void 0===r?0:r))/s+(void 0===u?0:u))/h+(void 0===c?0:c)},f=e.cosAngle||e.rotation&&Math.cos(e.rotation),y=e.sinAngle||e.rotation&&Math.sin(e.rotation),m=o(e.crs,"WGS84",e.rotation?{x:d.x*f+-(d.y*y),y:d.x*y+d.y*f}:d);return{lat:m.y,lon:m.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,h=void 0,l=void 0,p=void 0;i=[];for(var c=0,u=r.length;c<u;++c){var d=r[c];i.push(h=[]),l=0,p=0;for(var f=0,y=d.length;f<y;++f)h.push([(l+=d[f][0])*s[0]+a[0],(p+=d[f][1])*s[1]+a[1]])}}for(var m=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(m)},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||m(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=eb(!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,ex(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,h=a.features,l=0,p=h.length;l<p;++l){var c=h[l],u=c.geometry||{},d=u.type,f=u.coordinates,y=c.properties,m=void 0;if(("map"===e||"mapbubble"===e)&&("Polygon"===d||"MultiPolygon"===d)?f.length&&(m={geometry:{coordinates:f,type:d}}):"mapline"===e&&("LineString"===d||"MultiLineString"===d)?f.length&&(m={geometry:{coordinates:f,type:d}}):"mappoint"===e&&"Point"===d&&f.length&&(m={geometry:{coordinates:f,type:d}}),m){var g=y&&(y.name||y.NAME),v=y&&y.lon,b=y&&y.lat;s.push(ev(m,{lat:"number"==typeof b?b:void 0,lon:"number"==typeof v?v:void 0,name:"string"==typeof g?g:void 0,properties:y}))}}return o&&a.copyrightShort&&(o.chart.mapCredits=em(null===(i=o.chart.options.credits)||void 0===i?void 0:i.mapText,{geojson:a}),o.chart.mapCreditsFull=em(null===(r=o.chart.options.credits)||void 0===r?void 0:r.mapTextFull,{geojson:a})),s},t.topo2geo=n}(B||(B={}));var eM=B;(v=D||(D={})).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}},v.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},v.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},v.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 h=e[o],l=h[0],p=h[1],c=e[i],u=c[0],d=c[1];p>n!=d>n&&r<(u-l)*(n-p)/(d-p)+l&&(a=!a)}return a};var ew=D;function eC(t,e,o){void 0===o&&(o=!0);for(var i,r,n,s=e[e.length-1],a=t,h=0;h<e.length;h++){var l=a;i=e[h],a=[],r=o?l[l.length-1]:l[0];for(var p=0;p<l.length;p++)eP(s,i,n=l[p])?(eP(s,i,r)||a.push(ej(s,i,r,n)),a.push(n)):eP(s,i,r)&&a.push(ej(s,i,r,n)),r=n;s=i}return a}function eP(t,e,o){return(e[0]-t[0])*(o[1]-t[1])>(e[1]-t[1])*(o[0]-t[0])}function ej(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],h=1/(r[0]*n[1]-r[1]*n[0]),l=[(s*n[0]-a*r[0])*h,(s*n[1]-a*r[1])*h];return l.isIntersection=!0,l}var eA=function(t,e){for(var o=[],i=eC(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},eT=Math.sign||function(t){return 0===t?0:t>0?1:-1},eO=Math.PI/180,eL=Math.PI/2,eS=function(t){return Math.tan((eL+t)/2)},ek=function(){function t(t){var e,o=(t.parallels||[]).map(function(t){return t*eO}),i=o[0]||0,r=null!==(e=o[1])&&void 0!==e?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(eS(r)/eS(i));1e-10>Math.abs(s)&&(s=1e-10*(eT(s)||1)),this.n=s,this.c=n*Math.pow(eS(i),s)/s}return t.prototype.forward=function(t){var e=this.c,o=this.n,i=this.projectedBounds,r=t[0]*eO,n=t[1]*eO;e>0?n<-eL+1e-6&&(n=-eL+1e-6):n>eL-1e-6&&(n=eL-1e-6);var s=e/Math.pow(eS(n),o),a=s*Math.sin(o*r)*63.78137,h=(e-s*Math.cos(o*r))*63.78137,l=[a,h];return i&&(a<i.x1||a>i.x2||h<i.y1||h>i.y2)&&(l.outside=!0),l},t.prototype.inverse=function(t){var e=this.c,o=this.n,i=t[0]/63.78137,r=e-t[1]/63.78137,n=eT(o)*Math.sqrt(i*i+r*r),s=Math.atan2(i,Math.abs(r))*eT(r);return r*o<0&&(s-=Math.PI*eT(i)*eT(r)),[s/o/eO,(2*Math.atan(Math.pow(e/n,1/o))-eL)/eO]},t}(),ez=Math.sqrt(3)/2,eE=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(ez*Math.sin(t[1]*e)),i=o*o,r=i*i*i;return[t[0]*e*Math.cos(o)*74.03120656864502/(ez*(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,h=s,l=0;l<12&&(o=(e=h*h)*e*e,i=h*(1.340264+-.081106*e+o*(893e-6+.003796*e))-s,h-=r=i/(1.340264+-.24331799999999998*e+o*(.0062510000000000005+.034164*e)),!(1e-9>Math.abs(r)));++l);o=(e=h*h)*e*e;var p=a*ez*n*(1.340264+-.24331799999999998*e+o*(.0062510000000000005+.034164*e))/Math.cos(h),c=a*Math.asin(Math.sin(h)/ez);return Math.abs(p)>180?[NaN,NaN]:[p,c]},t}(),eI=Math.PI/4,e_=Math.PI/180,eB=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]*e_*63.78137,79.7267125*Math.log(Math.tan(eI+.4*t[1]*e_))]},t.prototype.inverse=function(t){return[t[0]/63.78137/e_,2.5*(Math.atan(Math.exp(.8*(t[1]/63.78137)))-eI)/e_]},t}(),eD=Math.PI/180,eV=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]*eD,i=[Math.cos(o)*Math.sin(e*eD)*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))/eD,Math.asin(i&&o*n/i)/eD]},t}(),eX=Math.PI/180,eN={EqualEarth:eE,LambertConformalConic:ek,Miller:eB,Orthographic:eV,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]*eX),o=[63.78137*t[0]*eX,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*eX),(2*Math.atan(Math.exp(t[1]/63.78137))-Math.PI/2)/eX]},t}()},eG=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))},eR=Y().clamp,eY=Y().erase,eW=2*Math.PI/360,eU=function(t){return t<-180&&(t+=360),t>180&&(t-=360),t},eF=function(t){return(1-Math.cos(t))/2},eZ=function(t,e){var o=Math.cos,i=t[1]*eW,r=t[0]*eW,n=e[1]*eW,s=e[0]*eW;return eF(n-i)+o(i)*o(n)*eF(s-r)},eq=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=eZ(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,h=Math.sqrt,l=t.distance,p=e[1]*eW,c=e[0]*eW,u=o[1]*eW,d=o[0]*eW,f=s(p)*s(c),y=s(u)*s(d),m=s(p)*a(c),g=s(u)*a(d),v=a(p),b=a(u),x=l(e,o),M=x/6371e3,w=a(M),C=Math.round(x/r),P=[];if(i&&P.push(e),C>1)for(var j=1/C,A=j;A<.999;A+=j){var T=a((1-A)*M)/w,O=a(A*M)/w,L=T*f+O*y,S=T*m+O*g,k=n(T*v+O*b,h(L*L+S*S)),z=n(S,L);P.push([z/eW,k/eW])}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,eG([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?0:1;if("number"==typeof o&&i[e]>=o!=r[e]>=o){var s=(o-i[e])/(r[e]-i[e]),a=i[n]+s*(r[n]-i[n]);return e?[a,o]:[o,a]}},h=t[0];return(e=a(t,0,i))?(h=e,t[1]=e):(e=a(t,0,r))&&(h=e,t[1]=e),(e=a(t,1,n))?h=e:(e=a(t,1,s))&&(h=e),h},t.prototype.getRotator=function(t){var e=t[0]*eW,o=(t[1]||0)*eW,i=(t[2]||0)*eW,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]*eW+e,i=t[1]*eW,h=Math.cos(i),l=Math.cos(o)*h,p=Math.sin(o)*h,c=Math.sin(i),u=c*r+l*n;return[Math.atan2(p*s-u*a,l*r-c*n)/eW,Math.asin(u*s+p*a)/eW]},inverse:function(t){var o=t[0]*eW,i=t[1]*eW,h=Math.cos(i),l=Math.cos(o)*h,p=Math.sin(o)*h,c=Math.sin(i),u=c*s-p*a;return[(Math.atan2(p*s+c*a,l*r+u*n)-e)/eW,Math.asin(u*r-l*n)/eW]}}},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 h=e[s],l=e[s-1];if(!s){if(!o)continue;l=e[e.length-1]}var p=l[0],c=h[0];if((p<-90||p>90)&&(c<-90||c>90)&&p>0!=c>0){var u=eR((180-(p+360)%360)/((c+360)%360-(p+360)%360),0,1),d=l[1]+u*(h[1]-l[1]);r.push({i:s,lat:d,direction:p<0?1:-1,previousLonLat:l,lonLat:h})}}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],eY(r,i));for(var s=r.length-2;s>=0;){var f=r[s].i,y=eU(180+1e-6*r[s].direction),m=eU(180-1e-6*r[s].direction),g=e.splice.apply(e,eG([f,r[s+1].i-f],t.geodesic([y,r[s].lat],[y,r[s+1].lat],!0),!1));g.push.apply(g,t.geodesic([m,r[s+1].lat],[m,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=eU(180+1e-6*b),c=eU(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,eG([M,0],C,!1));break}}}else for(var s=r.length;s--;){var f=r[s].i,g=e.splice(f,e.length,[eU(180+1e-6*r[s].direction),r[s].lat]);g.unshift([eU(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=[],h="Polygon"===e.type||"MultiPolygon"===e.type,l=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];l&&(t.insertGeodesics(n),p&&(s=i.cutOnAntimeridian(n,h))),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,y=!1,m=e.map(function(t){var e=u.forward(t);return e.outside?f=!0:y=!0,e[1]===1/0?e[1]=1e10:e[1]===-1/0&&(e[1]=-1e10),e});if(p){if(h&&m.push(m[0]),f){if(!y)return;if(o){if(h)m=eC(m,o);else if(r){eA(m,o).forEach(function(t){s=!1,t.forEach(d)});return}}}m.forEach(d)}else for(var g=0;g<m.length;g++){var v=e[g],b=m[g];b.outside?c=!0:(h&&!i&&(i=v,e.push(v),m.push(b)),c&&n&&(h&&l?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=eN,t}(),eH=(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)}),eK=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))},e$=Y().composed,eJ=ew.pointInPolygon,eQ=eM.topo2geo,e0=Y().addEvent,e1=Y().clamp,e2=Y().crisp,e6=Y().fireEvent,e3=Y().isArray,e8=Y().isNumber,e7=Y().isObject,e9=Y().isString,e4=Y().merge,e5=Y().pick,ot=Y().pushUnique,oe=Y().relativeLength,oo={};function oi(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 or(t){var e,o;t.seriesOptions.mapData&&(null===(e=this.mapView)||void 0===e||e.recommendMapView(this,[this.options.chart.map,t.seriesOptions.mapData],null===(o=this.options.drilldown)||void 0===o?void 0:o.mapZooming))}var on=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 os||this.recommendMapView(e,eK([e.options.chart.map],(e.options.series||[]).map(function(t){return t.mapData}),!0)),this.userOptions=o||{};var n=e4(eu,this.recommendedMapView,o),s=null===(i=this.recommendedMapView)||void 0===i?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 eq(n.projection),this.playingField=e.plotBox,this.zoom=n.zoom||0,this.minZoom=n.minZoom,this.createInsets(),this.eventsToUnbind.push(e0(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&&e8(r.userOptions.zoom)&&(r.zoom=r.userOptions.zoom),r.userOptions.center&&e4(!0,r.center,r.userOptions.center))})),this.setUpEvents()}return t.compose=function(e){ot(e$,"MapView")&&(oo=e.maps,e0(e,"afterInit",function(){this.mapView=new t(this,this.options.mapView)},{order:0}),e0(e,"addSeriesAsDrilldown",or),e0(e,"afterDrillUp",or))},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},e4(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=e4(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 os(t,e4(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=e5(e,t?0:this.options.padding),s=this.getField(!1),a=e3(n)?n:[n,n,n,n];this.padding=[oe(a[0],s.height),oe(a[1],s.width),oe(a[2],s.height),oe(a[3],s.width)],this.playingField=this.getField();var h=oi(r,this.playingField);t||(this.minZoom=h);var l=this.projection.inverse([(r.x2+r.x1)/2,(r.y2+r.y1)/2]);this.setView(l,h,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(e9(t))return oo[t]&&"Topology"===oo[t].type?eQ(oo[t]):oo[t];if(e7(t,!0)){if("FeatureCollection"===t.type)return t;if("Topology"===t.type)return eQ(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=eo(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(),h=a*s,l=e+i/2-n[0]*a,p=o+r/2-n[1]*h;return{scaleX:a,scaleY:h,translateX:l,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&&eJ(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&&eJ({x:t.lon,y:t.lat},a.options.geoBounds.coordinates[0])){var h=a.projection.forward([t.lon,t.lat]),l=a.projectedUnitsToPixels({x:h[0],y:h[1]});return this.pixelsToProjectedUnits(l)}}var p=this.projection.forward([t.lon,t.lat]);if(!p.outside)return{x:p[0],y:p[1]}},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&&eJ(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&&eJ(r,a.hitZone.coordinates[0])){var h=a.pixelsToProjectedUnits(r),l=a.projection.inverse([h.x,h.y]);return{lon:l[0],lat:l[1]}}}var p=this.projection.inverse([t.x,t.y]);return{lon:p[0],lat:p[1]}},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 h=a.length&&t.compositeBounds(a);e6(this,"onRecommendMapView",{geoBounds:h,chart:e},function(){if(h&&this.recommendedMapView){if(!this.recommendedMapView.projection){var t=h.x1,e=h.y1,o=h.x2,i=h.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?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)),e8(e)&&(this.zoom=e));var r=this.getProjectedBounds();if(r){var n=this.projection.forward(this.center),s=this.playingField,a=s.x,h=s.y,l=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 y=u.x,m=d.y,g=d.x,v=u.y;g-y<l?n[0]=f[0]:y<a&&g<a+l?n[0]+=Math.max(y-a,g-l-a)/c:g>a+l&&y>a&&(n[0]+=Math.min(g-l-a,y-a)/c),v-m<p?n[1]=f[1]:m<h&&v<h+p?n[1]-=Math.max(m-h,v-p-h)/c:v>h+p&&m>h&&(n[1]-=Math.min(v-p-h,m-h)/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()}e6(this,"afterSetView"),o&&this.redraw(i)},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.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.setUpEvents=function(){var t,e,o,i=this,r=this.chart,n=function(n){var s=r.pointer,a=s.lastTouches,h=s.pinchDown,l=i.projection,p=n.touches,c=r.mouseDownX,u=r.mouseDownY,d=0;if((null==h?void 0:h.length)===1?(c=h[0].chartX,u=h[0].chartY):(null==h?void 0:h.length)===2&&(c=(h[0].chartX+h[1].chartX)/2,u=(h[0].chartY+h[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)),e8(c)&&e8(u)){var f=""+c+",".concat(u),y=n.originalEvent,m=y.chartX,g=y.chartY;(null==p?void 0:p.length)===2&&(m=(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=l.def&&l.def.bounds,b=v&&oi(v,i.playingField)||-1/0;if("Orthographic"===l.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-m)*x-o[0],w=e1(-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(e8(m)&&e8(g)){var P=i.getScale(),j=i.projection.hasCoordinates?1:-1,A=i.projection.inverse([t[0]+(c-m)/P,t[1]-(u-g)/P*j]);isNaN(A[0]+A[1])||i.zoomBy(d,A,void 0,!1)}n.preventDefault()}};e0(r,"pan",n),e0(r,"touchpan",n),e0(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,h=i.pixelsToProjectedUnits({x:e+t.width,y:o+t.height}),l=h.y,p=h.x;i.fitToBounds({x1:a,y1:s,x2:p,y2:l},void 0,!0,!t.originalEvent.touches&&void 0),/^touch/.test(t.originalEvent.type)||r.showResetZoom(),t.preventDefault()}})},t.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},t.prototype.update=function(t,e,o){void 0===e&&(e=!0);var i=t.projection,r=i&&eq.toString(i)!==eq.toString(this.options.projection),n=!1;e4(!0,this.userOptions,t),e4(!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 eq(this.options.projection)),n&&this.createInsets(),!t.center&&Object.hasOwnProperty.call(t,"zoom")&&!e8(t.zoom)&&this.fitToBounds(void 0,void 0,!1)),t.center||e8(t.zoom)?this.setView(this.options.center,t.zoom,!1):"fitToGeometry"in t&&this.fitToBounds(void 0,void 0,!1),e&&this.chart.redraw(o)},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,h=void 0,l=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;h=n[0]+d/u,l=n[1]+f/u}if("number"==typeof h&&"number"==typeof l){var u=1-Math.pow(2,this.zoom)/Math.pow(2,s),d=n[0]-h,f=n[1]-l;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}(),os=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=e4({center:[0,0]},e.options.insetOptions,o),i.allBounds=[],i.options.geoBounds){var r=e.projection.path(i.options.geoBounds);i.geoBoundsProjectedBox=eo(r),i.geoBoundsProjectedPolygon=r.map(function(t){return[t[1]||0,t[2]||0]})}return i}return eH(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],h=Math.max.apply(0,n)-i[1],l=Math.min.apply(0,s)+i[0],p=Math.max.apply(0,s)-i[2];if(e8(a)&&e8(l))return{x:a,y:l,width:h-a,height:p-l}}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()||e4(t.plotBox,{x:0,y:0});r=r.map(function(t){return[oe(""+t[0]+"%",n.width,n.x),oe(""+t[1]+"%",n.height,n.y)]})}return{type:"Polygon",coordinates:[r]}}},e.prototype.getProjectedBounds=function(){return on.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&&eJ(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],h=i[1];return"percent"===o.units&&(a=t.plotLeft+oe(""+a+"%",s.width,s.x),h=t.plotTop+oe(""+h+"%",s.height,s.y)),a=e2(a,n),h=e2(h,n),e.push(0===r?["M",a,h]:["L",a,h]),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}(on),oa=(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)}),oh=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))},ol=Y().animObject,op=Y().stop,oc=Y().noop,ou=ee.splitPath,od=ta().seriesTypes,of=od.column,oy=od.scatter,om=Y().extend,og=Y().find,ov=Y().fireEvent,ob=Y().getNestedProperty,ox=Y().isArray,oM=Y().defined,ow=Y().isNumber,oC=Y().isObject,oP=Y().merge,oj=Y().objectEach,oA=Y().pick,oT=Y().splat,oO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.processedData=[],e}return oa(e,t),e.prototype.animate=function(t){var e=this.chart,o=this.group,i=ol(this.options.animation);t?o.attr({translateX:e.plotLeft+e.plotWidth/2,translateY:e.plotTop+e.plotHeight/2,scaleX:.001,scaleY:.001}):o.animate({translateX:e.plotLeft,translateY:e.plotTop,scaleX:1,scaleY:1},i)},e.prototype.clearBounds=function(){this.points.forEach(function(t){delete t.bounds,delete t.insetIndex,delete t.projectedPath}),delete this.bounds},e.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||!this.hasRendered)},e.prototype.drawMapDataLabels=function(){t.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},e.prototype.drawPoints=function(){var t=this,e=this,o=this.chart,i=this.group,r=this.transformGroups,n=void 0===r?[]:r,s=o.mapView,a=o.renderer;if(s){this.transformGroups=n,n[0]||(n[0]=a.g().add(i));for(var h=0,l=s.insets.length;h<l;++h)n[h+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)}),of.prototype.drawPoints.apply(this),this.points.forEach(function(i){var r=i.graphic;if(r){var n=r.animate,s="";i.name&&(s+="highcharts-name-"+i.name.replace(/ /g,"-").toLowerCase()),i.properties&&i.properties["hc-key"]&&(s+=" highcharts-key-"+i.properties["hc-key"].toString().toLowerCase()),s&&r.addClass(s),o.styledMode&&r.css(t.pointAttribs(i,i.selected&&"select"||void 0)),r.attr({visibility:!i.visible&&(i.visible||i.isNull)?"hidden":"inherit"}),r.animate=function(t,i,s){var a=ow(t["stroke-width"])&&!ow(r["stroke-width"]),h=ow(r["stroke-width"])&&!ow(t["stroke-width"]);if(a||h){var l=oA(e.getStrokeWidth(e.options),1)/(o.mapView&&o.mapView.getScale()||1);a&&(r["stroke-width"]=l),h&&(t["stroke-width"]=l)}return n.call(r,t,i,h?function(){r.element.removeAttribute("stroke-width"),delete r["stroke-width"],s&&s.apply(this,arguments)}:s)}}})),n.forEach(function(i,r){var n=(0===r?s:s.insets[r-1]).getSVGTransform(),h=oA(t.getStrokeWidth(t.options),1),l=n.scaleX,p=n.scaleY>0?1:-1,c=function(o){(e.points||[]).forEach(function(e){var i,r=e.graphic;r&&r["stroke-width"]&&(i=t.getStrokeWidth(e.options))&&r.attr({"stroke-width":i/o})})};if(a.globalAnimation&&o.hasRendered&&s.allowTransformAnimation){var u=Number(i.attr("translateX")),d=Number(i.attr("translateY")),f=Number(i.attr("scaleX")),y=function(t,e){var o=f+(l-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":h/o}),c(o)},m=oP(ol(a.globalAnimation)),g=m.step;m.step=function(){g&&g.apply(this,arguments),y.apply(this,arguments)},i.attr({animator:0}).animate({animator:1},m,(function(){"boolean"!=typeof a.globalAnimation&&a.globalAnimation.complete&&a.globalAnimation.complete({applyDrilldown:!0}),ov(this,"mapZoomComplete")}).bind(t))}else op(i),i.attr(oP(n,{"stroke-width":h/l})),c(l)}),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=ou(e.path):ox(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=oA(e.labelrank,(n.x2-n.x1)*(n.y2-n.y1));var s=n.midX,a=n.midY;if(o&&ow(s)&&ow(a)){var h=og(o,function(t){return t.isInside({x:s,y:a})});h&&(delete e.projectedPath,(n=e.getProjectedBounds(h.projection))&&h.allBounds.push(n),e.insetIndex=o.indexOf(h))}e.bounds=n}}e.bounds&&void 0===e.insetIndex&&r.push(e.bounds)}}),this.bounds=on.compositeBounds(r)}return this.bounds},e.prototype.getStrokeWidth=function(t){var e=this.pointAttrToOptions;return t[e&&e["stroke-width"]||"borderWidth"]},e.prototype.hasData=function(){return!!this.dataTable.rowCount},e.prototype.pointAttribs=function(t,e){var o,i=t.series.chart,r=i.mapView,n=i.styledMode?this.colorAttribs(t):of.prototype.pointAttribs.call(this,t,e),s=this.getStrokeWidth(t.options);if(e){var a=oP(this.options.states&&this.options.states[e],t.options.states&&t.options.states[e]||{}),h=this.getStrokeWidth(a);oM(h)&&(s=h),n.stroke=null!==(o=a.borderColor)&&void 0!==o?o:t.color}s&&r&&(s/=r.getScale());var l=this.getStrokeWidth(this.options);return n.dashstyle&&r&&ow(l)&&(s=l/r.getScale()),t.visible||(n.fill=this.options.nullColor),oM(s)?n["stroke-width"]=s:delete n["stroke-width"],n["stroke-linecap"]=n["stroke-linejoin"]=this.options.linecap,n},e.prototype.updateData=function(){return!this.processedData&&t.prototype.updateData.apply(this,arguments)},e.prototype.setData=function(e,o,i,r){void 0===o&&(o=!0),delete this.bounds,t.prototype.setData.call(this,e,!1,void 0,r),this.processData(),this.generatePoints(),o&&this.chart.redraw(i)},e.prototype.dataColumnKeys=function(){return this.pointArrayMap},e.prototype.processData=function(){var t,e,o,i=this.options,r=i.data,n=this.chart,s=n.options.chart,a=this.joinBy,h=i.keys||this.pointArrayMap,l=[],p={},c=this.chart.mapView,u=c&&(oC(i.mapData,!0)?c.getGeoMap(i.mapData):c.geoMap),d=n.mapTransforms=s.mapTransforms||u&&u["hc-transform"]||n.mapTransforms;d&&oj(d,function(t){t.rotation&&(t.cosAngle=Math.cos(t.rotation),t.sinAngle=Math.sin(t.rotation))}),ox(i.mapData)?o=i.mapData:u&&"FeatureCollection"===u.type&&(this.mapTitle=u.title,o=Y().geojson(u,this.type,this)),this.processedData=[];var f=this.processedData;if(r)for(var y=void 0,m=0,g=r.length;m<g;++m){if(ow(y=r[m]))f[m]={value:y};else if(ox(y)){var v=0;f[m]={},!i.keys&&y.length>h.length&&"string"==typeof y[0]&&(f[m]["hc-key"]=y[0],++v);for(var b=0;b<h.length;++b,++v)h[b]&&void 0!==y[v]&&(h[b].indexOf(".")>0?el.prototype.setNestedProperty(f[m],y[v],h[b]):f[m][h[b]]=y[v])}else f[m]=r[m];a&&"_i"===a[0]&&(f[m]._i=m)}if(o){this.mapData=o,this.mapMap={};for(var m=0;m<o.length;m++)e=(t=o[m]).properties,t._i=m,a[0]&&e&&e[a[0]]&&(t[a[0]]=e[a[0]]),p[t[a[0]]]=t;if(this.mapMap=p,a[1]){var x=a[1];f.forEach(function(t){var e=ob(x,t);p[e]&&l.push(p[e])})}if(i.allAreas){if(a[1]){var M=a[1];f.forEach(function(t){l.push(ob(M,t))})}var w="|"+l.map(function(t){return t&&t[a[0]]}).join("|")+"|";o.forEach(function(t){a[0]&&-1!==w.indexOf("|"+t[a[0]]+"|")||f.push(oP(t,{value:null}))})}}this.dataTable.rowCount=f.length},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=oT(i),this.joinBy[1]||(this.joinBy[1]=this.joinBy[0])),o},e.prototype.translate=function(){var t=this.doFullTranslate(),e=this.chart.mapView,o=e&&e.projection;if(this.chart.hasRendered&&(this.isDirtyData||!this.hasRendered)&&(this.processData(),this.generatePoints(),delete this.bounds,!e||e.userOptions.center||ow(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=ow(r.insetIndex)&&e.insets[r.insetIndex].getSVGTransform()||i;n&&r.bounds&&ow(r.bounds.midX)&&ow(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:el.getProjectedPath(r,o)}),r.hiddenInDataClass||(r.projectedPath&&!r.projectedPath.length?r.setVisible(!1):r.visible||r.setVisible(!0))})}ov(this,"afterTranslate")},e.prototype.update=function(e){var o,i=this;e.mapData&&(null===(o=this.chart.mapView)||void 0===o||o.recommendMapView(this.chart,oh([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=oP(oy.defaultOptions,ec),e}(oy);om(oO.prototype,{type:"map",axisTypes:tU.seriesMembers.axisTypes,colorAttribs:tU.seriesMembers.colorAttribs,colorKey:tU.seriesMembers.colorKey,directTouch:!0,drawDataLabels:oc,drawGraph:oc,forceDL:!0,getCenter:tQ.getCenter,getExtremesFromAll:!0,getSymbol:oc,isCartesian:!1,parallelArrays:tU.seriesMembers.parallelArrays,pointArrayMap:tU.seriesMembers.pointArrayMap,pointClass:el,preserveAspectRatio:!0,searchPoint:oc,trackerGroups:tU.seriesMembers.trackerGroups,useMapGeometry:!0}),tU.compose(oO),ta().registerSeriesType("map",oO);var oL={lineWidth:1,fillColor:"none",legendSymbol:"lineMarker"},oS=(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)}),ok=Y().extend,oz=Y().merge,oE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oS(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=oz(oO.defaultOptions,oL),e}(oO);ok(oE.prototype,{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),ta().registerSeriesType("mapline",oE);var oI=(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)}),o_=ta().seriesTypes.scatter,oB=Y().isNumber,oD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oI(e,t),e.prototype.isValid=function(){return!!(this.options.geometry||oB(this.x)&&oB(this.y)||oB(this.options.lon)&&oB(this.options.lat))},e}(o_.prototype.pointClass),oV={dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}},legendSymbol:"lineMarker"};N(632);var oX=(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)}),oN=Y().noop,oG=ta().seriesTypes,oR=oG.map,oY=oG.scatter,oW=Y().extend,oU=Y().fireEvent,oF=Y().isNumber,oZ=Y().merge,oq=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearBounds=oR.prototype.clearBounds,e}return oX(e,t),e.prototype.drawDataLabels=function(){t.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.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(oF(i)&&oF(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,h=r.y,l=void 0===h?void 0:h,p=oF(r.insetIndex)&&e.insets[r.insetIndex].getSVGTransform()||o,c=t.projectPoint(r.options)||r.properties&&t.projectPoint(r.properties);if(c?(a=c.x,l=c.y):r.bounds&&(a=r.bounds.midX,l=r.bounds.midY,p&&oF(a)&&oF(l)&&(r.plotX=a*p.scaleX+p.translateX,r.plotY=l*p.scaleY+p.translateY,n=!0)),oF(a)&&oF(l)){if(!n){var u=e.projectedUnitsToPixels({x:a,y:l});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})}oU(this,"afterTranslate")},e.defaultOptions=oZ(oY.defaultOptions,oV),e}(oY);t6().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 h=a?i/3:i/2;return[["M",n,s],["C",n,s,n-h,e+1.5*h,n-h,e+h],["A",h,h,1,1,1,n+h,e+h],["C",n+h,e+1.5*h,n,s,n,s],["Z"]]},oW(oq.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:oD,searchPoint:oN,useMapGeometry:!0}),ta().registerSeriesType("mappoint",oq);var oH={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:"#000000"},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},oK=Z().parse,o$=Y().noop,oJ=Y().arrayMax,oQ=Y().arrayMin,o0=Y().isNumber,o1=Y().merge,o2=Y().pick,o6=Y().stableSort,o3=function(){function t(t,e){this.setState=o$,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=o2(t.options.itemDistance,20),i=this.legendItem||{},r=this.options,n=r.ranges,s=r.connectorDistance;if(!n||!n.length||!o0(n[0].value)){t.options.bubbleLegend.autoRanges=!0;return}o6(n,function(t,e){return e.value-t.value}),this.ranges=n,this.setOptions(),this.render();var a=this.getMaxLabelSize(),h=this.ranges[0].radius,l=2*h;e=(e=s-h+a.width)>0?e:0,this.maxLabel=a,this.movementX="left"===r.labels.align?e:0,i.labelWidth=l+e+o,i.labelHeight=l+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,h=this.chart.styledMode;t.forEach(function(l,p){h||(r.stroke=o2(l.borderColor,e.borderColor,o.color),r.fill=o2(l.color,e.color,1!==a?oK(o.color).setOpacity(a).get("rgba"):o.color),n.stroke=o2(l.connectorColor,e.connectorColor,o.color)),t[p].radius=this.getRangeRadius(l.value),t[p]=o1(t[p],{center:t[0].radius-t[p].radius+i}),h||o1(!0,t[p],{bubbleAttribs:o1(r),connectorAttribs:o1(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,h=this.symbols,l=h.labels,p=t.center,c=Math.abs(t.radius),u=i.connectorDistance||0,d=r.align,f=o.options.rtl,y=i.borderWidth,m=i.connectorWidth,g=e.radius||0,v=p-c-y/2+m/2,b=(v%1?1:.5)-(m%2?0:.5),x=a.styledMode,M=f||"left"===d?-u:u;"center"===d&&(M=0,i.connectorDistance=0,t.labelAttribs.align="center"),h.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)),h.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),l.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?ef().format(i,t,this.chart):o?o.call(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(o0)).length&&(n=o2(t.options.zMin,Math.min(n,Math.max(oQ(e),!1===t.options.displayNegative?t.options.zThreshold:-Number.MAX_VALUE))),s=o2(t.options.zMax,Math.max(s,oJ(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]=o1(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,h=e.series[this.options.seriesIndex],l=h.getPxExtremes(),p=Math.ceil(l.minPxSize),c=Math.ceil(l.maxPxSize),u=Math.min(a,s),d=h.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}(),o8=Y().setOptions,o7=Y().composed,o9=Y().addEvent,o4=Y().objectEach,o5=Y().pushUnique,it=Y().wrap;function ie(t,e,o){var i,r,n,s=this.legend,a=io(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(),o4(t.ticks,function(t){t.isNew=!0,t.isNewLabel=!0})}),this.getMargins()),i.placed=!0,t.call(this,e,o),s.bubbleLegend.correctSizes(),ia(s,ii(s))):(t.call(this,e,o),s&&s.options.enabled&&s.bubbleLegend&&(s.render(),ia(s,ii(s))))}function io(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 ii(t){var e,o,i,r=t.allItems,n=[],s=r.length,a=0,h=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];h<=a;h++)r[h].itemHeight>e.height&&(e.height=r[h].itemHeight);e.step=a}return n}function ir(t){var e=this.bubbleLegend,o=this.options,i=o.bubbleLegend,r=io(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 o3(i,this),this.bubbleLegend.addToLegend(t.allItems))}function is(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=io(i)>=0,this.bubbleLegend.visible!==e&&(this.update({bubbleLegend:{enabled:e}}),this.bubbleLegend.visible=e),o.visible=r)}function ia(t,e){var o,i,r,n,s=t.allItems,a=t.options.rtl,h=0;s.forEach(function(t,s){(n=t.legendItem||{}).group&&(o=n.group.translateX||0,i=n.y||0,((r=t.movementX)||a&&t.ranges)&&(r=a?o-t.options.maxSize/2:o+r,n.group.attr({translateX:r})),s>e[h].step&&h++,n.group.attr({translateY:Math.round(i+e[h].height/2)}),n.y=i+e[h].height/2)})}var ih=function(t,e){o5(o7,"Series.BubbleLegend")&&(o8({legend:{bubbleLegend:oH}}),it(t.prototype,"drawChartBox",ie),o9(e,"afterGetAllItems",ir),o9(e,"itemClick",is))},il=N(260),ip=N.n(il),ic=(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)}),iu=ta().seriesTypes.scatter.prototype.pointClass,id=Y().extend,iy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ic(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;return i.chart.renderer.symbols.circle(r.len-o[1]-e,n.len-o[0]-e,2*e,2*e)}return ip().prototype.haloPath.call(this,e)},e}(iu);id(iy.prototype,{ttBelow:!1});var im=(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)}),ig=Z().parse,iv=Y().composed,ib=Y().noop,ix=ta().series,iM=ta().seriesTypes,iw=iM.column.prototype,iC=iM.scatter,iP=Y().addEvent,ij=Y().arrayMax,iA=Y().arrayMin,iT=Y().clamp,iO=Y().extend,iL=Y().isNumber,iS=Y().merge,ik=Y().pick,iz=Y().pushUnique;function iE(){var t,e=this,o=this.len,i=this.coll,r=this.isXAxis,n=this.min,s=(this.max||0)-(n||0),a=0,h=o,l=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(iL(i[p])&&e.dataMin<=i[p]&&i[p]<=e.max){var c=o.radii&&o.radii[p]||0;a=Math.min((i[p]-n)*l-c,a),h=Math.max((i[p]-n)*l+c,h)}}}}),t&&s>0&&!this.logarithmic&&(h-=o,l*=(o+Math.max(0,a)-Math.min(h,o))/o,[["min","userMin",a],["max","userMax",h]].forEach(function(t){void 0===ik(e.options[t[0]],e[t[1]])&&(e[t[0]]+=t[2]/l)})))}function iI(){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,h=this.options.type;if(((null==a?void 0:a.length)||"category"===h)&&this.series.find(function(t){return t.bubblePadding}))for(var l=o.length;l--;){var p=e[o[l]],c=p.pos||0;(c>s||c<r)&&(null===(t=p.label)||void 0===t||t.hide())}}var i_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return im(e,t),e.compose=function(t,e,o){ih(e,o),iz(iv,"Series.Bubble")&&(iP(t,"foundExtremes",iE),iP(t,"afterRender",iI))},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=this.getColumn("z"),r=this.getColumn("y"),n=[],s=this.chart.bubbleZExtremes,a=this.getPxExtremes(),h=a.minPxSize,l=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(ik(c,e.zMin),e.zMin),u=Math.max(ik(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,h,l,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,h=s.zThreshold,l=e-t,p=.5;if(null===n||null===r)return null;if(iL(r)){if(s.sizeByAbsoluteValue&&(r=Math.abs(r-h),e=l=Math.max(e-h,Math.abs(t-h)),t=0),r<t)return o/2-1;l>0&&(p=(r-t)/l)}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?iO(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.fillOpacity,i=ix.prototype.pointAttribs.call(this,t,e);return 1!==o&&(i.fill=ig(i.fill).setOpacity(o).get("rgba")),i},e.prototype.translate=function(){t.prototype.translate.call(this),this.getRadii(),this.translateBubble()},e.prototype.translateBubble=function(){for(var t=this.data,e=this.options,o=this.radii,i=this.getPxExtremes().minPxSize,r=t.length;r--;){var n=t[r],s=o?o[r]:0;"z"===this.zoneAxis&&(n.negative=(n.z||0)<(e.zThreshold||0)),iL(s)&&s>=i/2?(n.marker=iO(n.marker,{radius:s,width:2*s,height:2*s}),n.dlBox={x:n.plotX-s,y:n.plotY-s,width:2*s,height:2*s}):(n.shapeArgs=n.plotY=n.dlBox=void 0,n.isInside=!1)}},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(ik(this.options.minSize,8)),i=Math.max(e(ik(this.options.maxSize,"20%")),o);return{minPxSize:o,maxPxSize:i}},e.prototype.getZExtremes=function(){var t=this.options,e=this.getColumn("z").filter(iL);if(e.length){var o=ik(t.zMin,iT(iA(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),i=ik(t.zMax,ij(e));if(iL(o)&&iL(i))return{zMin:o,zMax:i}}},e.prototype.searchKDTree=function(e,o,i,r,n){return void 0===r&&(r=ib),void 0===n&&(n=ib),r=function(t,e,o){var i,r,n,s=t[o]||0,a=e[o]||0,h=!1;return s<0&&a<0?(n=s-((null===(i=t.marker)||void 0===i?void 0:i.radius)||0)>=a-((null===(r=e.marker)||void 0===r?void 0:r.radius)||0)?t:e,h=!0):n=s<a?t:e,[n,h]},n=function(t,e,o){return!o&&t>e||t<e},t.prototype.searchKDTree.call(this,e,o,i,r,n)},e.defaultOptions=iS(iC.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return iL(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}(iC);iO(i_.prototype,{alignDataLabel:iw.alignDataLabel,applyZones:ib,bubblePadding:!0,isBubble:!0,keysAffectYAxis:["y"],pointArrayMap:["y","z"],pointClass:iy,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),iP(i_,"updatedData",function(t){delete t.target.chart.bubbleZExtremes}),iP(i_,"remove",function(t){delete t.target.chart.bubbleZExtremes}),ta().registerSeriesType("bubble",i_);var iB=(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)}),iD=ta().seriesTypes.map.prototype.pointClass.prototype,iV=Y().extend,iX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iB(e,t),e.prototype.isValid=function(){return"number"==typeof this.z},e}(iy);iV(iX.prototype,{applyOptions:iD.applyOptions,getProjectedBounds:iD.getProjectedBounds});var iN=(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)}),iG=ta().seriesTypes,iR=iG.map.prototype,iY=iG.mappoint.prototype,iW=Y().extend,iU=Y().merge,iF=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearBounds=iR.clearBounds,e}return iN(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(){iY.translate.call(this),this.getRadii(),this.translateBubble()},e.defaultOptions=iU(i_.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),e}(i_);iW(iF.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:iR.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:iX,processData:iR.processData,projectPoint:iY.projectPoint,kdAxisArray:["plotX","plotY"],setData:iR.setData,setOptions:iR.setOptions,updateData:iR.updateData,useMapGeometry:!0,xyFromShape:!0}),ta().registerSeriesType("mapbubble",iF);var iZ=(O=function(t,e){return(O=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}O(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),iq=ta().seriesTypes.scatter.prototype.pointClass,iH=Y().clamp,iK=Y().defined,i$=Y().extend,iJ=Y().pick,iQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return iZ(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(),h=iJ(this.pointPadding,e.pointPadding,0),l={x1:iH(Math.round(r.len-r.translate(this.x-o,!1,!0,!1,!0,-a)),-r.len,2*r.len),x2:iH(Math.round(r.len-r.translate(this.x+o,!1,!0,!1,!0,-a)),-r.len,2*r.len),y1:iH(Math.round(n.translate(this.y-i,!1,!0,!1,!0)),-n.len,2*n.len),y2:iH(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],y=f+"1",m=f+"2",g=Math.abs(l[y]-l[m]),v=s&&s.lineWidth||0,b=Math.abs(l[y]+l[m])/2,x=s&&s[d];if(iK(x)&&x<g){var M=x/2+v/2;l[y]=b-M,l[m]=b+M}h&&(("x"===f&&r.reversed||"y"===f&&!n.reversed)&&(y=m,m=f+"1"),l[y]+=h,l[m]-=h)}return l},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,h=e.height,l=void 0===h?0:h;return[["M",i-t,n-t],["L",i-t,n+l+t],["L",i+a+t,n+l+t],["L",i+a+t,n-t],["Z"]]},e.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},e}(iq);i$(iQ.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});var i0=Y().isNumber,i1={animation:!1,borderRadius:0,borderWidth:0,interpolation:!1,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.value;return i0(e)?t(e,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:"allow",padding:0},marker:{symbol:"rect",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"},i2=Y().doc,i6=Y().defined,i3=Y().pick,i8=function(t){var e=t.canvas,o=t.context;return e&&o?(o.clearRect(0,0,e.width,e.height),o):(t.canvas=i2.createElement("canvas"),t.context=t.canvas.getContext("2d",{willReadFrequently:!0})||void 0,t.context)},i7=(L=function(t,e){return(L=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}L(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}),i9=function(){return(i9=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)},i4=ta().series,i5=ta().seriesTypes,rt=i5.column,re=i5.scatter,ro=t6().prototype.symbols,ri=Y().addEvent,rr=Y().extend,rn=Y().fireEvent,rs=Y().isNumber,ra=Y().merge,rh=Y().pick,rl=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 i3(parseFloat(t),parseInt(t,10))});return i[3]=255*i3(i[3],1),i6(t)&&e.visible||(i[3]=0),i}return[0,0,0,0]},rp=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 i7(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,h=s.reversed,l=s.len,p=a.reversed,c=a.len,u={width:l,height:c};if(!r||t.isDirtyData||t.isDirtyCanvas){var d=i8(t),f=t.canvas,y=t.options,m=y.colsize,g=y.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(),j=P.min,A=P.max,T=C-w,O=A-j,L=Math.round(T/(void 0===m?1:m)/8*8),S=Math.round(O/(void 0===g?1:g)/8*8),k=[[L,L/T,void 0!==h&&h,"ceil"],[S,S/O,!(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=k[0],E=k[1],I=f.width=L+1,_=I*(f.height=S+1),B=(b-1)/_,D=new Uint8ClampedArray(4*_);t.buildKDTree();for(var V=0;V<_;V++){var X=v[Math.ceil(B*V)],N=X.x,G=X.y;D.set(rl(X.value,X),4*Math.ceil(I*E(G-j)+z(N-w)))}d.putImageData(new ImageData(D,I),0,0),r?r.attr(i9(i9({},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!==l||r.height!==c)&&r.attr(u)}else(i.enabled||t._hasPointMarkers)&&(i4.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.getExtremes=function(){var t=i4.prototype.getExtremes.call(this,this.getColumn("value")),e=t.dataMin,o=t.dataMax;return rs(e)&&(this.valueMin=e),rs(o)&&(this.valueMax=o),i4.prototype.getExtremes.call(this)},e.prototype.getValidPoints=function(t,e){return i4.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=rh(e.pointRange,e.colsize||1),this.yAxis.axisPointRange=e.rowsize||1,ro.ellipse=ro.circle,e.marker&&rs(e.borderRadius)&&(e.marker.r=e.borderRadius)},e.prototype.markerAttribs=function(t,e){var o=t.shapeArgs||{};if(t.hasImage)return{x:t.plotX,y:t.plotY};if(e&&"normal"!==e){var i=t.options.marker||{},r=this.options.marker||{},n=r.states&&r.states[e]||{},s=i.states&&i.states[e]||{},a=(s.width||n.width||o.width||0)+(s.widthPlus||n.widthPlus||0),h=(s.height||n.height||o.height||0)+(s.heightPlus||n.heightPlus||0);return{x:(o.x||0)+((o.width||0)-a)/2,y:(o.y||0)+((o.height||0)-h)/2,width:a,height:h}}return o},e.prototype.pointAttribs=function(t,e){var o=i4.prototype.pointAttribs.call(this,t,e),i=this.options||{},r=this.chart.options.plotOptions||{},n=r.series||{},s=r.heatmap||{},a=t&&t.options.borderColor||i.borderColor||s.borderColor||n.borderColor,h=t&&t.options.borderWidth||i.borderWidth||s.borderWidth||n.borderWidth||o["stroke-width"];if(o.stroke=t&&t.marker&&t.marker.lineColor||i.marker&&i.marker.lineColor||a||this.color,o["stroke-width"]=h,e&&"normal"!==e){var l=ra(i.states&&i.states[e],i.marker&&i.marker.states&&i.marker.states[e],t&&t.options.states&&t.options.states[e]||{});o.fill=l.color||Z().parse(o.fill).brighten(l.brightness||0).get(),o.stroke=l.lineColor||o.stroke}return o},e.prototype.translate=function(){var t=this.options,e=t.borderRadius,o=t.marker,i=o&&o.symbol||"rect",r=ro[i]?i:"rect",n=-1!==["circle","square"].indexOf(r);this.generatePoints();for(var s=0,a=this.points;s<a.length;s++){var h=a[s],l=h.getCellAttributes(),p=Math.min(l.x1,l.x2),c=Math.min(l.y1,l.y2),u=Math.max(Math.abs(l.x2-l.x1),0),d=Math.max(Math.abs(l.y2-l.y1),0);if(h.hasImage=0===(h.marker&&h.marker.symbol||i||"").indexOf("url"),n){var f=Math.abs(u-d);p=Math.min(l.x1,l.x2)+(u<d?0:f/2),c=Math.min(l.y1,l.y2)+(u<d?f/2:0),u=d=Math.min(u,d)}h.hasImage&&(h.marker={width:u,height:d}),h.plotX=h.clientX=(l.x1+l.x2)/2,h.plotY=(l.y1+l.y2)/2,h.shapeType="path",h.shapeArgs=ra(!0,{x:p,y:c,width:u,height:d},{d:ro[r](p,c,u,d,{r:rs(e)?e:0})})}rn(this,"afterTranslate")},e.defaultOptions=ra(re.defaultOptions,i1),e}(re);ri(rp,"afterDataClassLegendClick",function(){this.isDirtyCanvas=!0,this.drawPoints()}),rr(rp.prototype,{axisTypes:tU.seriesMembers.axisTypes,colorKey:tU.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,keysAffectYAxis:["y"],parallelArrays:tU.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:iQ,specialGroup:"group",trackerGroups:tU.seriesMembers.trackerGroups,alignDataLabel:rt.prototype.alignDataLabel,colorAttribs:tU.seriesMembers.colorAttribs,getSymbol:i4.prototype.getSymbol}),tU.compose(rp),ta().registerSeriesType("heatmap",rp);/**
 * @license Highmaps JS v12.1.2 (2025-01-09)
 * @module highcharts/modules/map
 * @requires highcharts
 *
 * Highmaps as a plugin for Highcharts or Highcharts Stock.
 *
 * (c) 2011-2024 Torstein Honsi
 *
 * License: www.highcharts.com/license
 */var rc=Y();rc.ColorMapComposition=tU,rc.MapChart=rc.MapChart||ee,rc.MapNavigation=rc.MapNavigation||tX,rc.MapView=rc.MapView||on,rc.Projection=rc.Projection||eq,rc.mapChart=rc.Map=rc.MapChart.mapChart,rc.maps=rc.MapChart.maps,rc.geojson=eM.geojson,rc.topo2geo=eM.topo2geo,eM.compose(rc.Chart),iF.compose(rc.Axis,rc.Chart,rc.Legend),tX.compose(ee,rc.Pointer,rc.SVGRenderer),on.compose(ee);var ru=Y();return G.default}()});

Hacked By AnonymousFox1.0, Coded By AnonymousFox