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