Update Highcharts to 9.3.1 and remove ordinal: false workaround

Removed stock.js module and included highstock.js as highcharts.js instead.

Affects issues:
- Close #2149
This commit is contained in:
Risto Lahtela 2021-11-26 19:24:09 +02:00
parent 9cfee54eca
commit 2a1107cc36
12 changed files with 964 additions and 983 deletions

View File

@ -179,7 +179,6 @@ public class NetworkPageExporter extends FileExporter {
"./css/style.css",
"./vendor/datatables/datatables.min.js",
"./vendor/datatables/datatables.min.css",
"./vendor/highcharts/modules/stock.js",
"./vendor/highcharts/modules/map.js",
"./vendor/highcharts/mapdata/world.js",
"./vendor/highcharts/modules/drilldown.js",

View File

@ -145,7 +145,6 @@ public class PlayerPageExporter extends FileExporter {
"../css/style.css",
"../vendor/datatables/datatables.min.js",
"../vendor/datatables/datatables.min.css",
"../vendor/highcharts/modules/stock.js",
"../vendor/highcharts/modules/map.js",
"../vendor/highcharts/mapdata/world.js",
"../vendor/highcharts/modules/drilldown.js",

View File

@ -203,7 +203,6 @@ public class ServerPageExporter extends FileExporter {
"../css/style.css",
"../vendor/datatables/datatables.min.js",
"../vendor/datatables/datatables.min.css",
"../vendor/highcharts/modules/stock.js",
"../vendor/highcharts/modules/map.js",
"../vendor/highcharts/mapdata/world.js",
"../vendor/highcharts/modules/drilldown.js",

View File

@ -63,9 +63,6 @@ function diskChart(id, series) {
softMax: 2,
softMin: 0
},
xAxis: {
ordinal: false
},
title: {text: ''},
legend: {
enabled: true
@ -86,8 +83,7 @@ function horizontalBarChart(id, categories, series, text) {
categories: categories,
title: {
text: null
},
ordinal: false
}
},
yAxis: {
min: 0,
@ -126,9 +122,6 @@ function lineChart(id, series) {
softMax: 2,
softMin: 0
},
xAxis: {
ordinal: false
},
title: {text: ''},
legend: {
enabled: true
@ -147,9 +140,6 @@ function dayByDay(id, series) {
softMax: 2,
softMin: 0
},
xAxis: {
ordinal: false
},
title: {text: ''},
legend: {
enabled: true
@ -276,9 +266,6 @@ function performanceChart(id, playersOnlineSeries, tpsSeries, cpuSeries, ramSeri
}
}
}],
xAxis: {
ordinal: false
},
legend: {
enabled: true
},
@ -386,9 +373,6 @@ function playersChart(id, playersOnlineSeries, sel) {
softMax: 2,
softMin: 0
},
xAxis: {
ordinal: false
},
/* Average online players graph Disabled
xAxis: {
events: {
@ -419,9 +403,6 @@ function playersChartNoNav(id, playersOnlineSeries) {
softMax: 2,
softMin: 0
},
xAxis: {
ordinal: false
},
title: {text: ''},
plotOptions: {
areaspline: {
@ -445,8 +426,7 @@ function punchCard(id, punchcardSeries) {
hour: '%I %P',
day: '%I %P'
},
tickInterval: 3600000,
ordinal: false
tickInterval: 3600000
},
time: {
timezoneOffset: 0
@ -500,9 +480,6 @@ function resourceChart(id, cpuSeries, ramSeries, playersOnlineSeries) {
}
}
}],
xAxis: {
ordinal: false
},
legend: {
enabled: true
},
@ -713,9 +690,6 @@ function tpsChart(id, tpsSeries, playersOnlineSeries) {
}
}
}],
xAxis: {
ordinal: false
},
legend: {
enabled: true
},
@ -758,9 +732,6 @@ function worldChart(id, entitySeries, chunkSeries, playersOnlineSeries) {
}
}
}],
xAxis: {
ordinal: false
},
legend: {
enabled: true
},

View File

@ -92,7 +92,6 @@ function loadView(json) {
},
series: [playersOnlineSeries],
xAxis: {
ordinal: false,
events: {
afterSetExtremes: function (event) {
if (this) {

View File

@ -1055,7 +1055,6 @@
<script src="./vendor/datatables/datatables.min.js?v=${version}"></script>
<link href='./vendor/datatables/datatables.min.css?v=${version}' rel='stylesheet'/>
<script src="./vendor/highcharts/highcharts.js?v=${version}"></script>
<script src="./vendor/highcharts/modules/stock.js?v=${version}"></script>
<script src="./vendor/highcharts/modules/map.js?v=${version}"></script>
<script src="./vendor/highcharts/mapdata/world.js?v=${version}"></script>
<script src="./vendor/highcharts/modules/drilldown.js?v=${version}"></script>

View File

@ -326,7 +326,6 @@
<script src="./vendor/datatables/datatables.min.js?v=${version}"></script>
<link href='./vendor/datatables/datatables.min.css?v=${version}' rel='stylesheet'/>
<script src="./vendor/highcharts/highcharts.js?v=${version}"></script>
<script src="./vendor/highcharts/modules/stock.js?v=${version}"></script>
<script src="./vendor/highcharts/modules/map.js?v=${version}"></script>
<script src="./vendor/highcharts/modules/no-data-to-display.js?v=${version}"></script>
<script src="./vendor/highcharts/mapdata/world.js?v=${version}"></script>

View File

@ -1,5 +1,5 @@
/*
Highcharts JS v9.2.2 (2021-08-24)
Highcharts JS v9.3.1 (2021-11-05)
Highcharts Drilldown module
@ -8,27 +8,27 @@
*/
'use strict';(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/drilldown",["highcharts"],function(n){c(n);c.Highcharts=n;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function n(c,n,k,z){c.hasOwnProperty(n)||(c[n]=z.apply(null,k))}c=c?c._modules:{};n(c,"Extensions/Drilldown.js",[c["Core/Animation/AnimationUtilities.js"],c["Core/Axis/Axis.js"],c["Core/Chart/Chart.js"],
c["Core/Color/Color.js"],c["Series/Column/ColumnSeries.js"],c["Core/FormatUtilities.js"],c["Core/Globals.js"],c["Core/DefaultOptions.js"],c["Core/Color/Palette.js"],c["Core/Series/Point.js"],c["Core/Series/Series.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Axis/Tick.js"],c["Core/Utilities.js"]],function(c,n,k,z,r,H,I,J,B,t,C,w,K,D,p){var E=c.animObject,L=H.format,M=I.noop;c=J.defaultOptions;var m=p.addEvent,N=p.removeEvent,q=p.extend,x=p.fireEvent,u=p.merge,
O=p.objectEach,v=p.pick,P=p.syncTimeout;w=w.seriesTypes.pie;var F=1;q(c.lang,{drillUpText:"\u25c1 Back to {series.name}"});c.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:B.highlightColor100,fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:B.highlightColor100,fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}};K.prototype.Element.prototype.fadeIn=function(a){this.attr({opacity:.1,
visibility:"inherit"}).animate({opacity:v(this.newOpacity,1)},a||{duration:250})};k.prototype.addSeriesAsDrilldown=function(a,b){this.addSingleSeriesAsDrilldown(a,b);this.applyDrilldown()};k.prototype.addSingleSeriesAsDrilldown=function(a,b){var d=a.series,g=d.xAxis,f=d.yAxis,e=[],c=[],h;var l=this.styledMode?{colorIndex:v(a.colorIndex,d.colorIndex)}:{color:a.color||d.color};this.drilldownLevels||(this.drilldownLevels=[]);var y=d.options._levelNumber||0;(h=this.drilldownLevels[this.drilldownLevels.length-
1])&&h.levelNumber!==y&&(h=void 0);b=q(q({_ddSeriesId:F++},l),b);var k=d.points.indexOf(a);d.chart.series.forEach(function(a){a.xAxis!==g||a.isDrilling||(a.options._ddSeriesId=a.options._ddSeriesId||F++,a.options._colorIndex=a.userOptions._colorIndex,a.options._levelNumber=a.options._levelNumber||y,h?(e=h.levelSeries,c=h.levelSeriesOptions):(e.push(a),a.purgedOptions=u({_ddSeriesId:a.options._ddSeriesId,_levelNumber:a.options._levelNumber,selected:a.options.selected},a.userOptions),c.push(a.purgedOptions)))});
a=q({levelNumber:y,seriesOptions:d.options,seriesPurgedOptions:d.purgedOptions,levelSeriesOptions:c,levelSeries:e,shapeArgs:a.shapeArgs,bBox:a.graphic?a.graphic.getBBox():{},color:a.isNull?z.parse(l.color).setOpacity(0).get():l.color,lowerSeriesOptions:b,pointOptions:d.options.data[k],pointIndex:k,oldExtremes:{xMin:g&&g.userMin,xMax:g&&g.userMax,yMin:f&&f.userMin,yMax:f&&f.userMax},resetZoomButton:this.resetZoomButton},l);this.drilldownLevels.push(a);g&&g.names&&(g.names.length=0);b=a.lowerSeries=
this.addSeries(b,!1);b.options._levelNumber=y+1;g&&(g.oldPos=g.pos,g.userMin=g.userMax=null,f.userMin=f.userMax=null);d.type===b.type&&(b.animate=b.animateDrilldown||M,b.options.animation=!0)};k.prototype.applyDrilldown=function(){var a=this.drilldownLevels;if(a&&0<a.length){var b=a[a.length-1].levelNumber;this.drilldownLevels.forEach(function(a){a.levelNumber===b&&a.levelSeries.forEach(function(a){a.options&&a.options._levelNumber===b&&a.remove(!1)})})}this.resetZoomButton&&(this.resetZoomButton.hide(),
delete this.resetZoomButton);this.pointer.reset();this.redraw();this.showDrillUpButton();x(this,"afterDrilldown")};k.prototype.getDrilldownBackText=function(){var a=this.drilldownLevels;if(a&&0<a.length)return a=a[a.length-1],a.series=a.seriesOptions,L(this.options.lang.drillUpText||"",a)};k.prototype.showDrillUpButton=function(){var a=this,b=this.getDrilldownBackText(),d=a.options.drilldown.drillUpButton,g,f="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";if(this.drillUpButton)this.drillUpButton.attr({text:b}).align();
else{var e=(g=d.theme)&&g.states;this.drillUpButton=this.renderer.button(b,null,null,function(){a.drillUp()},g,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:d.position.align,zIndex:7}).add().align(d.position,!1,f)}};k.prototype.drillUp=function(){if(this.drilldownLevels&&0!==this.drilldownLevels.length){for(var a=this,b=a.drilldownLevels,d=b[b.length-1].levelNumber,g=b.length,f=a.series,e,c,h,l,k=function(b){f.forEach(function(a){a.options._ddSeriesId===b._ddSeriesId&&
(d=a)});var d=d||a.addSeries(b,!1);d.type===h.type&&d.animateDrillupTo&&(d.animate=d.animateDrillupTo);b===c.seriesPurgedOptions&&(l=d)};g--;)if(c=b[g],c.levelNumber===d){b.pop();h=c.lowerSeries;if(!h.chart)for(e=f.length;e--;)if(f[e].options.id===c.lowerSeriesOptions.id&&f[e].options._levelNumber===d+1){h=f[e];break}h.xData=[];c.levelSeriesOptions.forEach(k);x(a,"drillup",{seriesOptions:c.seriesPurgedOptions||c.seriesOptions});this.resetZoomButton&&this.resetZoomButton.destroy();l.type===h.type&&
(l.drilldownLevel=c,l.options.animation=a.options.drilldown.animation,h.animateDrillupFrom&&h.chart&&h.animateDrillupFrom(c));l.options._levelNumber=d;h.remove(!1);l.xAxis&&(e=c.oldExtremes,l.xAxis.setExtremes(e.xMin,e.xMax,!1),l.yAxis.setExtremes(e.yMin,e.yMax,!1));c.resetZoomButton&&(a.resetZoomButton=c.resetZoomButton,a.resetZoomButton.show())}this.redraw();0===this.drilldownLevels.length?this.drillUpButton=this.drillUpButton.destroy():this.drillUpButton.attr({text:this.getDrilldownBackText()}).align();
this.ddDupes.length=[];x(a,"drillupall")}};m(k,"afterInit",function(){var a=this;a.drilldown={update:function(b,d){u(!0,a.options.drilldown,b);v(d,!0)&&a.redraw()}}});m(k,"afterShowResetZoom",function(){var a=this.resetZoomButton&&this.resetZoomButton.getBBox(),b=this.options.drilldown&&this.options.drilldown.drillUpButton;this.drillUpButton&&a&&b&&b.position&&b.position.x&&this.drillUpButton.align({x:b.position.x-a.width-10,y:b.position.y,align:b.position.align},!1,b.relativeTo||"plotBox")});m(k,
"render",function(){(this.xAxis||[]).forEach(function(a){a.ddPoints={};a.series.forEach(function(b){var d,g=b.xData||[],f=b.points;for(d=0;d<g.length;d++){var e=b.options.data[d];"number"!==typeof e&&(e=b.pointClass.prototype.optionsToObject.call({series:b},e),e.drilldown&&(a.ddPoints[g[d]]||(a.ddPoints[g[d]]=[]),e=d-(b.cropStart||0),a.ddPoints[g[d]].push(f&&0<=e&&e<f.length?f[e]:!0)))}});O(a.ticks,D.prototype.drillable)})});r.prototype.animateDrillupTo=function(a){if(!a){var b=this,d=b.drilldownLevel;
this.points.forEach(function(a){var b=a.dataLabel;a.graphic&&a.graphic.hide();b&&(b.hidden="hidden"===b.attr("visibility"),b.hidden||(b.hide(),a.connector&&a.connector.hide()))});P(function(){if(b.points){var a=[];b.data.forEach(function(b){a.push(b)});b.nodes&&(a=a.concat(b.nodes));a.forEach(function(a,b){b=b===(d&&d.pointIndex)?"show":"fadeIn";var g="show"===b?!0:void 0,c=a.dataLabel;if(a.graphic)a.graphic[b](g);c&&!c.hidden&&(c.fadeIn(),a.connector&&a.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-
50,0));delete this.animate}};r.prototype.animateDrilldown=function(a){var b=this,d=this.chart,c=d.drilldownLevels,f,e=E(d.options.drilldown.animation),k=this.xAxis,h=d.styledMode;a||(c.forEach(function(a){b.options._ddSeriesId===a.lowerSeriesOptions._ddSeriesId&&(f=a.shapeArgs,h||(f.fill=a.color))}),f.x+=v(k.oldPos,k.pos)-k.pos,this.points.forEach(function(a){var d=a.shapeArgs;h||(d.fill=a.color);a.graphic&&a.graphic.attr(f).animate(q(a.shapeArgs,{fill:a.color||b.color}),e);a.dataLabel&&a.dataLabel.fadeIn(e)}),
delete this.animate)};r.prototype.animateDrillupFrom=function(a){var b=E(this.chart.options.drilldown.animation),d=this.group,c=d!==this.chart.columnGroup,f=this;f.trackerGroups.forEach(function(a){if(f[a])f[a].on("mouseover")});c&&delete this.group;this.points.forEach(function(g){var e=g.graphic,h=a.shapeArgs,l=function(){e.destroy();d&&c&&(d=d.destroy())};e&&h&&(delete g.graphic,f.chart.styledMode||(h.fill=a.color),b.duration?e.animate(h,u(b,{complete:l})):(e.attr(h),l()))})};w&&q(w.prototype,{animateDrillupTo:r.prototype.animateDrillupTo,
animateDrillupFrom:r.prototype.animateDrillupFrom,animateDrilldown:function(a){var b=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=this.chart.options.drilldown.animation;this.is("item")&&(d.duration=0);if(this.center){var c=b.shapeArgs,f=c.start,e=(c.end-f)/this.points.length,k=this.chart.styledMode;a||(this.points.forEach(function(a,g){var h=a.shapeArgs;k||(c.fill=b.color,h.fill=a.color);if(a.graphic)a.graphic.attr(u(c,{start:f+g*e,end:f+(g+1)*e}))[d?"animate":"attr"](h,d)}),
delete this.animate)}}});t.prototype.doDrilldown=function(){this.runDrilldown()};t.prototype.runDrilldown=function(a,b,d){var c=this.series.chart,f=c.options.drilldown,e=(f.series||[]).length;c.ddDupes||(c.ddDupes=[]);for(;e--&&!k;)if(f.series[e].id===this.drilldown&&-1===c.ddDupes.indexOf(this.drilldown)){var k=f.series[e];c.ddDupes.push(this.drilldown)}x(c,"drilldown",{point:this,seriesOptions:k,category:b,originalEvent:d,points:"undefined"!==typeof b&&this.series.xAxis.getDDPoints(b).slice(0)},
function(b){var d=b.point.series&&b.point.series.chart,c=b.seriesOptions;d&&c&&(a?d.addSingleSeriesAsDrilldown(b.point,c):d.addSeriesAsDrilldown(b.point,c))})};n.prototype.drilldownCategory=function(a,b){this.getDDPoints(a).forEach(function(d){d&&d.series&&d.series.visible&&d.runDrilldown&&d.runDrilldown(!0,a,b)});this.chart.applyDrilldown()};n.prototype.getDDPoints=function(a){return this.ddPoints&&this.ddPoints[a]||[]};D.prototype.drillable=function(){var a=this.pos,b=this.label,d=this.axis,c="xAxis"===
d.coll&&d.getDDPoints,f=c&&d.getDDPoints(a),e=d.chart.styledMode;c&&(b&&f&&f.length?(b.drillable=!0,b.basicStyles||e||(b.basicStyles=u(b.styles)),b.addClass("highcharts-drilldown-axis-label"),b.removeOnDrillableClick&&N(b.element,"click"),b.removeOnDrillableClick=m(b.element,"click",function(b){b.preventDefault();d.drilldownCategory(a,b)}),e||b.css(d.chart.options.drilldown.activeAxisLabelStyle)):b&&b.drillable&&b.removeOnDrillableClick&&(e||(b.styles={},b.css(b.basicStyles)),b.removeOnDrillableClick(),
b.removeClass("highcharts-drilldown-axis-label")))};m(t,"afterInit",function(){this.drilldown&&!this.unbindDrilldownClick&&(this.unbindDrilldownClick=m(this,"click",G));return this});m(t,"update",function(a){a=a.options||{};a.drilldown&&!this.unbindDrilldownClick?this.unbindDrilldownClick=m(this,"click",G):!a.drilldown&&void 0!==a.drilldown&&this.unbindDrilldownClick&&(this.unbindDrilldownClick=this.unbindDrilldownClick())});var G=function(a){var b=this.series;b.xAxis&&!1===b.chart.options.drilldown.allowPointDrilldown?
b.xAxis.drilldownCategory(this.x,a):this.runDrilldown(void 0,void 0,a)};m(C,"afterDrawDataLabels",function(){var a=this.chart.options.drilldown.activeDataLabelStyle,b=this.chart.renderer,c=this.chart.styledMode;this.points.forEach(function(d){var f=d.options.dataLabels,e=v(d.dlOptions,f&&f.style,{});d.drilldown&&d.dataLabel&&("contrast"!==a.color||c||(e.color=b.getContrast(d.color||this.color)),f&&f.color&&(e.color=f.color),d.dataLabel.addClass("highcharts-drilldown-data-label"),c||d.dataLabel.css(a).css(e))},
this)});var A=function(a,b,d,c){a[d?"addClass":"removeClass"]("highcharts-drilldown-point");c||a.css({cursor:b})};m(C,"afterDrawTracker",function(){var a=this.chart.styledMode;this.points.forEach(function(b){b.drilldown&&b.graphic&&A(b.graphic,"pointer",!0,a)})});m(t,"afterSetState",function(){var a=this.series.chart.styledMode;this.drilldown&&this.series.halo&&"hover"===this.state?A(this.series.halo,"pointer",!0,a):this.series.halo&&A(this.series.halo,"auto",!1,a)});m(k,"selection",function(a){!0===
a.resetSelection&&this.drillUpButton&&(a=this.options.drilldown&&this.options.drilldown.drillUpButton)&&a.position&&this.drillUpButton.align({x:a.position.x,y:a.position.y,align:a.position.align},!1,a.relativeTo||"plotBox")});m(k,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())})});n(c,"masters/modules/drilldown.src.js",[],function(){})});
c["Core/Color/Color.js"],c["Series/Column/ColumnSeries.js"],c["Core/FormatUtilities.js"],c["Core/Globals.js"],c["Core/DefaultOptions.js"],c["Core/Series/Point.js"],c["Core/Series/Series.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Axis/Tick.js"],c["Core/Utilities.js"]],function(c,n,k,z,t,G,H,I,u,B,x,J,C,p){var D=c.animObject,K=G.format,L=H.noop;c=I.defaultOptions;var m=p.addEvent,M=p.removeEvent,r=p.extend,y=p.fireEvent,v=p.merge,N=p.objectEach,w=p.pick,O=
p.syncTimeout;x=x.seriesTypes.pie;var E=1;r(c.lang,{drillUpText:"\u25c1 Back to {series.name}"});c.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#003399",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}};J.prototype.Element.prototype.fadeIn=function(a){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:w(this.newOpacity,
1)},a||{duration:250})};k.prototype.addSeriesAsDrilldown=function(a,b){this.addSingleSeriesAsDrilldown(a,b);this.applyDrilldown()};k.prototype.addSingleSeriesAsDrilldown=function(a,b){var d=a.series,g=d.xAxis,f=d.yAxis,e=[],q=[],h;var l=this.styledMode?{colorIndex:w(a.colorIndex,d.colorIndex)}:{color:a.color||d.color};this.drilldownLevels||(this.drilldownLevels=[]);var c=d.options._levelNumber||0;(h=this.drilldownLevels[this.drilldownLevels.length-1])&&h.levelNumber!==c&&(h=void 0);b=r(r({_ddSeriesId:E++},
l),b);var k=d.points.indexOf(a);d.chart.series.forEach(function(a){a.xAxis!==g||a.isDrilling||(a.options._ddSeriesId=a.options._ddSeriesId||E++,a.options._colorIndex=a.userOptions._colorIndex,a.options._levelNumber=a.options._levelNumber||c,h?(e=h.levelSeries,q=h.levelSeriesOptions):(e.push(a),a.purgedOptions=v({_ddSeriesId:a.options._ddSeriesId,_levelNumber:a.options._levelNumber,selected:a.options.selected},a.userOptions),q.push(a.purgedOptions)))});a=r({levelNumber:c,seriesOptions:d.options,seriesPurgedOptions:d.purgedOptions,
levelSeriesOptions:q,levelSeries:e,shapeArgs:a.shapeArgs,bBox:a.graphic?a.graphic.getBBox():{},color:a.isNull?z.parse(l.color).setOpacity(0).get():l.color,lowerSeriesOptions:b,pointOptions:d.options.data[k],pointIndex:k,oldExtremes:{xMin:g&&g.userMin,xMax:g&&g.userMax,yMin:f&&f.userMin,yMax:f&&f.userMax},resetZoomButton:this.resetZoomButton},l);this.drilldownLevels.push(a);g&&g.names&&(g.names.length=0);b=a.lowerSeries=this.addSeries(b,!1);b.options._levelNumber=c+1;g&&(g.oldPos=g.pos,g.userMin=g.userMax=
null,f.userMin=f.userMax=null);d.type===b.type&&(b.animate=b.animateDrilldown||L,b.options.animation=!0)};k.prototype.applyDrilldown=function(){var a=this.drilldownLevels;if(a&&0<a.length){var b=a[a.length-1].levelNumber;this.drilldownLevels.forEach(function(a){a.levelNumber===b&&a.levelSeries.forEach(function(a){a.options&&a.options._levelNumber===b&&a.remove(!1)})})}this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton);this.pointer.reset();this.redraw();this.showDrillUpButton();
y(this,"afterDrilldown")};k.prototype.getDrilldownBackText=function(){var a=this.drilldownLevels;if(a&&0<a.length)return a=a[a.length-1],a.series=a.seriesOptions,K(this.options.lang.drillUpText||"",a)};k.prototype.showDrillUpButton=function(){var a=this,b=this.getDrilldownBackText(),d=a.options.drilldown.drillUpButton,g,f="chart"===d.relativeTo||"spacingBox"===d.relativeTo?null:"scrollablePlotBox";if(this.drillUpButton)this.drillUpButton.attr({text:b}).align();else{var e=(g=d.theme)&&g.states;this.drillUpButton=
this.renderer.button(b,null,null,function(){a.drillUp()},g,e&&e.hover,e&&e.select).addClass("highcharts-drillup-button").attr({align:d.position.align,zIndex:7}).add().align(d.position,!1,f)}};k.prototype.drillUp=function(){if(this.drilldownLevels&&0!==this.drilldownLevels.length){for(var a=this,b=a.drilldownLevels,d=b[b.length-1].levelNumber,g=b.length,f=a.series,e,c,h,l,k=function(b){f.forEach(function(a){a.options._ddSeriesId===b._ddSeriesId&&(d=a)});var d=d||a.addSeries(b,!1);d.type===h.type&&
d.animateDrillupTo&&(d.animate=d.animateDrillupTo);b===c.seriesPurgedOptions&&(l=d)};g--;)if(c=b[g],c.levelNumber===d){b.pop();h=c.lowerSeries;if(!h.chart)for(e=f.length;e--;)if(f[e].options.id===c.lowerSeriesOptions.id&&f[e].options._levelNumber===d+1){h=f[e];break}h.xData=[];c.levelSeriesOptions.forEach(k);y(a,"drillup",{seriesOptions:c.seriesPurgedOptions||c.seriesOptions});this.resetZoomButton&&this.resetZoomButton.destroy();l.type===h.type&&(l.drilldownLevel=c,l.options.animation=a.options.drilldown.animation,
h.animateDrillupFrom&&h.chart&&h.animateDrillupFrom(c));l.options._levelNumber=d;h.remove(!1);l.xAxis&&(e=c.oldExtremes,l.xAxis.setExtremes(e.xMin,e.xMax,!1),l.yAxis.setExtremes(e.yMin,e.yMax,!1));c.resetZoomButton&&(a.resetZoomButton=c.resetZoomButton,a.resetZoomButton.show())}this.redraw();0===this.drilldownLevels.length?this.drillUpButton=this.drillUpButton.destroy():this.drillUpButton.attr({text:this.getDrilldownBackText()}).align();this.ddDupes.length=[];y(a,"drillupall")}};m(k,"afterInit",function(){var a=
this;a.drilldown={update:function(b,d){v(!0,a.options.drilldown,b);w(d,!0)&&a.redraw()}}});m(k,"afterShowResetZoom",function(){var a=this.resetZoomButton&&this.resetZoomButton.getBBox(),b=this.options.drilldown&&this.options.drilldown.drillUpButton;this.drillUpButton&&a&&b&&b.position&&b.position.x&&this.drillUpButton.align({x:b.position.x-a.width-10,y:b.position.y,align:b.position.align},!1,b.relativeTo||"plotBox")});m(k,"render",function(){(this.xAxis||[]).forEach(function(a){a.ddPoints={};a.series.forEach(function(b){var d,
g=b.xData||[],f=b.points;for(d=0;d<g.length;d++){var e=b.options.data[d];"number"!==typeof e&&(e=b.pointClass.prototype.optionsToObject.call({series:b},e),e.drilldown&&(a.ddPoints[g[d]]||(a.ddPoints[g[d]]=[]),e=d-(b.cropStart||0),a.ddPoints[g[d]].push(f&&0<=e&&e<f.length?f[e]:!0)))}});N(a.ticks,C.prototype.drillable)})});t.prototype.animateDrillupTo=function(a){if(!a){var b=this,d=b.drilldownLevel;this.points.forEach(function(a){var b=a.dataLabel;a.graphic&&a.graphic.hide();b&&(b.hidden="hidden"===
b.attr("visibility"),b.hidden||(b.hide(),a.connector&&a.connector.hide()))});O(function(){if(b.points){var a=[];b.data.forEach(function(b){a.push(b)});b.nodes&&(a=a.concat(b.nodes));a.forEach(function(a,b){b=b===(d&&d.pointIndex)?"show":"fadeIn";var g="show"===b?!0:void 0,c=a.dataLabel;if(a.graphic)a.graphic[b](g);c&&!c.hidden&&(c.fadeIn(),a.connector&&a.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0));delete this.animate}};t.prototype.animateDrilldown=function(a){var b=
this,d=this.chart,c=d.drilldownLevels,f,e=D(d.options.drilldown.animation),q=this.xAxis,h=d.styledMode;a||(c.forEach(function(a){b.options._ddSeriesId===a.lowerSeriesOptions._ddSeriesId&&(f=a.shapeArgs,h||(f.fill=a.color))}),f.x+=w(q.oldPos,q.pos)-q.pos,this.points.forEach(function(a){var d=a.shapeArgs;h||(d.fill=a.color);a.graphic&&a.graphic.attr(f).animate(r(a.shapeArgs,{fill:a.color||b.color}),e);a.dataLabel&&a.dataLabel.fadeIn(e)}),delete this.animate)};t.prototype.animateDrillupFrom=function(a){var b=
D(this.chart.options.drilldown.animation),d=this.group,c=d!==this.chart.columnGroup,f=this;f.trackerGroups.forEach(function(a){if(f[a])f[a].on("mouseover")});c&&delete this.group;this.points.forEach(function(g){var e=g.graphic,h=a.shapeArgs,l=function(){e.destroy();d&&c&&(d=d.destroy())};e&&h&&(delete g.graphic,f.chart.styledMode||(h.fill=a.color),b.duration?e.animate(h,v(b,{complete:l})):(e.attr(h),l()))})};x&&r(x.prototype,{animateDrillupTo:t.prototype.animateDrillupTo,animateDrillupFrom:t.prototype.animateDrillupFrom,
animateDrilldown:function(a){var b=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=this.chart.options.drilldown.animation;this.is("item")&&(d.duration=0);if(this.center){var c=b.shapeArgs,f=c.start,e=(c.end-f)/this.points.length,k=this.chart.styledMode;a||(this.points.forEach(function(a,g){var h=a.shapeArgs;k||(c.fill=b.color,h.fill=a.color);if(a.graphic)a.graphic.attr(v(c,{start:f+g*e,end:f+(g+1)*e}))[d?"animate":"attr"](h,d)}),delete this.animate)}}});u.prototype.doDrilldown=function(){this.runDrilldown()};
u.prototype.runDrilldown=function(a,b,d){var c=this.series.chart,f=c.options.drilldown,e=(f.series||[]).length;c.ddDupes||(c.ddDupes=[]);for(;e--&&!k;)if(f.series[e].id===this.drilldown&&-1===c.ddDupes.indexOf(this.drilldown)){var k=f.series[e];c.ddDupes.push(this.drilldown)}y(c,"drilldown",{point:this,seriesOptions:k,category:b,originalEvent:d,points:"undefined"!==typeof b&&this.series.xAxis.getDDPoints(b).slice(0)},function(b){var d=b.point.series&&b.point.series.chart,c=b.seriesOptions;d&&c&&(a?
d.addSingleSeriesAsDrilldown(b.point,c):d.addSeriesAsDrilldown(b.point,c))})};n.prototype.drilldownCategory=function(a,b){this.getDDPoints(a).forEach(function(d){d&&d.series&&d.series.visible&&d.runDrilldown&&d.runDrilldown(!0,a,b)});this.chart.applyDrilldown()};n.prototype.getDDPoints=function(a){return this.ddPoints&&this.ddPoints[a]||[]};C.prototype.drillable=function(){var a=this.pos,b=this.label,d=this.axis,c="xAxis"===d.coll&&d.getDDPoints,f=c&&d.getDDPoints(a),e=d.chart.styledMode;c&&(b&&f&&
f.length?(b.drillable=!0,b.basicStyles||e||(b.basicStyles=v(b.styles)),b.addClass("highcharts-drilldown-axis-label"),b.removeOnDrillableClick&&M(b.element,"click"),b.removeOnDrillableClick=m(b.element,"click",function(b){b.preventDefault();d.drilldownCategory(a,b)}),e||b.css(d.chart.options.drilldown.activeAxisLabelStyle)):b&&b.drillable&&b.removeOnDrillableClick&&(e||(b.styles={},b.css(b.basicStyles)),b.removeOnDrillableClick(),b.removeClass("highcharts-drilldown-axis-label")))};m(u,"afterInit",
function(){this.drilldown&&!this.unbindDrilldownClick&&(this.unbindDrilldownClick=m(this,"click",F));return this});m(u,"update",function(a){a=a.options||{};a.drilldown&&!this.unbindDrilldownClick?this.unbindDrilldownClick=m(this,"click",F):!a.drilldown&&void 0!==a.drilldown&&this.unbindDrilldownClick&&(this.unbindDrilldownClick=this.unbindDrilldownClick())});var F=function(a){var b=this.series;b.xAxis&&!1===b.chart.options.drilldown.allowPointDrilldown?b.xAxis.drilldownCategory(this.x,a):this.runDrilldown(void 0,
void 0,a)};m(B,"afterDrawDataLabels",function(){var a=this.chart.options.drilldown.activeDataLabelStyle,b=this.chart.renderer,c=this.chart.styledMode;this.points.forEach(function(d){var f=d.options.dataLabels,e=w(d.dlOptions,f&&f.style,{});d.drilldown&&d.dataLabel&&("contrast"!==a.color||c||(e.color=b.getContrast(d.color||this.color)),f&&f.color&&(e.color=f.color),d.dataLabel.addClass("highcharts-drilldown-data-label"),c||d.dataLabel.css(a).css(e))},this)});var A=function(a,b,d,c){a[d?"addClass":
"removeClass"]("highcharts-drilldown-point");c||a.css({cursor:b})};m(B,"afterDrawTracker",function(){var a=this.chart.styledMode;this.points.forEach(function(b){b.drilldown&&b.graphic&&A(b.graphic,"pointer",!0,a)})});m(u,"afterSetState",function(){var a=this.series.chart.styledMode;this.drilldown&&this.series.halo&&"hover"===this.state?A(this.series.halo,"pointer",!0,a):this.series.halo&&A(this.series.halo,"auto",!1,a)});m(k,"selection",function(a){!0===a.resetSelection&&this.drillUpButton&&(a=this.options.drilldown&&
this.options.drilldown.drillUpButton)&&a.position&&this.drillUpButton.align({x:a.position.x,y:a.position.y,align:a.position.align},!1,a.relativeTo||"plotBox")});m(k,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())})});n(c,"masters/modules/drilldown.src.js",[],function(){})});
//# sourceMappingURL=drilldown.js.map

View File

@ -1,5 +1,5 @@
/*
Highmaps JS v9.2.2 (2021-08-24)
Highmaps JS v9.3.1 (2021-11-05)
Highmaps as a plugin for Highcharts or Highcharts Stock.
@ -7,125 +7,147 @@
License: www.highcharts.com/license
*/
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/map",["highcharts"],function(x){a(x);a.Highcharts=x;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function x(a,k,q,n){a.hasOwnProperty(k)||(a[k]=n.apply(null,q))}a=a?a._modules:{};x(a,"Core/Axis/MapAxis.js",[a["Core/Axis/Axis.js"],a["Core/Utilities.js"]],function(a,k){var f=k.addEvent,n=k.pick,v=function(){return function(a){this.axis=
a}}();k=function(){function a(){}a.compose=function(h){h.keepProps.push("mapAxis");f(h,"init",function(){this.mapAxis||(this.mapAxis=new v(this))});f(h,"getSeriesExtremes",function(){if(this.mapAxis){var d=[];this.isXAxis&&(this.series.forEach(function(g,c){g.useMapGeometry&&(d[c]=g.xData,g.xData=[])}),this.mapAxis.seriesXData=d)}});f(h,"afterGetSeriesExtremes",function(){if(this.mapAxis){var d=this.mapAxis.seriesXData||[],g;if(this.isXAxis){var c=n(this.dataMin,Number.MAX_VALUE);var l=n(this.dataMax,
-Number.MAX_VALUE);this.series.forEach(function(b,h){b.useMapGeometry&&(c=Math.min(c,n(b.minX,c)),l=Math.max(l,n(b.maxX,l)),b.xData=d[h],g=!0)});g&&(this.dataMin=c,this.dataMax=l);this.mapAxis.seriesXData=void 0}}});f(h,"afterSetAxisTranslation",function(){if(this.mapAxis){var d=this.chart,g=d.plotWidth/d.plotHeight;d=d.xAxis[0];var c;"yAxis"===this.coll&&"undefined"!==typeof d.transA&&this.series.forEach(function(d){d.preserveAspectRatio&&(c=!0)});if(c&&(this.transA=d.transA=Math.min(this.transA,
d.transA),g/=(d.max-d.min)/(this.max-this.min),g=1>g?this:d,d=(g.max-g.min)*g.transA,g.mapAxis.pixelPadding=g.len-d,g.minPixelPadding=g.mapAxis.pixelPadding/2,d=g.mapAxis.fixTo)){d=d[1]-g.toValue(d[0],!0);d*=g.transA;if(Math.abs(d)>g.minPixelPadding||g.min===g.dataMin&&g.max===g.dataMax)d=0;g.minPixelPadding-=d}}});f(h,"render",function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)})};return a}();k.compose(a);return k});x(a,"Mixins/ColorSeries.js",[],function(){return{colorPointMixin:{setVisible:function(a){var f=
this,q=a?"show":"hide";f.visible=f.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(f[a])f[a][q]()});this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis",translateColors:function(){var a=this,k=this.options.nullColor,q=this.colorAxis,n=this.colorKey;(this.data.length?this.data:this.points).forEach(function(f){var p=f.getNestedProperty(n);(p=f.options.color||(f.isNull||null===f.value?k:q&&"undefined"!==typeof p?q.toColor(p,f):f.color||a.color))&&f.color!==p&&(f.color=
p,"point"===a.options.legendType&&f.legendItem&&a.chart.legend.colorizeItem(f,f.visible))})}}}});x(a,"Core/Axis/Color/ColorAxisComposition.js",[a["Core/Color/Color.js"],a["Mixins/ColorSeries.js"],a["Core/Utilities.js"]],function(a,k,q){var f=a.parse,v=k.colorPointMixin,p=k.colorSeriesMixin,h=q.addEvent,d=q.extend,g=q.merge,c=q.pick,l=q.splat,b;(function(b){function a(){var m=this,e=this.options;this.colorAxis=[];e.colorAxis&&(e.colorAxis=l(e.colorAxis),e.colorAxis.forEach(function(e,b){e.index=b;
new B(m,e)}))}function w(e){var m=this,b=function(c){c=e.allItems.indexOf(c);-1!==c&&(m.destroyItem(e.allItems[c]),e.allItems.splice(c,1))},c=[],t,u;(this.chart.colorAxis||[]).forEach(function(e){(t=e.options)&&t.showInLegend&&(t.dataClasses&&t.visible?c=c.concat(e.getDataClassLegendSymbols()):t.visible&&c.push(e),e.series.forEach(function(e){if(!e.options.showInLegend||t.dataClasses)"point"===e.options.legendType?e.points.forEach(function(e){b(e)}):b(e)}))});for(u=c.length;u--;)e.allItems.unshift(c[u])}
function A(e){e.visible&&e.item.legendColor&&e.item.legendSymbol.attr({fill:e.item.legendColor})}function n(){var e=this.chart.colorAxis;e&&e.forEach(function(e,m,c){e.update({},c)})}function y(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function t(){var e=this.axisTypes;e?-1===e.indexOf("colorAxis")&&e.push("colorAxis"):this.axisTypes=["colorAxis"]}function D(e){var m=e.prototype.createAxis;e.prototype.createAxis=function(e,b){if("colorAxis"!==
e)return m.apply(this,arguments);var t=new B(this,g(b.axis,{index:this[e].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(e){e.series=[]});this.series.forEach(function(e){e.bindAxes();e.isDirtyData=!0});c(b.redraw,!0)&&this.redraw(b.animation);return t}}function e(){this.elem.attr("fill",f(this.start).tweenTo(f(this.end),this.pos),void 0,!0)}function m(){this.elem.attr("stroke",f(this.start).tweenTo(f(this.end),this.pos),void 0,!0)}var u=[],B;b.compose=function(c,b,z,l,g){B||(B=
c);-1===u.indexOf(b)&&(u.push(b),c=b.prototype,c.collectionsWithUpdate.push("colorAxis"),c.collectionsWithInit.colorAxis=[c.addColorAxis],h(b,"afterGetAxes",a),D(b));-1===u.indexOf(z)&&(u.push(z),b=z.prototype,b.fillSetter=e,b.strokeSetter=m);-1===u.indexOf(l)&&(u.push(l),h(l,"afterGetAllItems",w),h(l,"afterColorizeItem",A),h(l,"afterUpdate",n));-1===u.indexOf(g)&&(u.push(g),d(g.prototype,p),d(g.prototype.pointClass.prototype,v),h(g,"afterTranslate",y),h(g,"bindAxes",t))}})(b||(b={}));return b});
x(a,"Core/Axis/Color/ColorAxisDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:a.neutralColor40},labels:{overflow:"justify",rotation:0},minColor:a.highlightColor10,maxColor:a.highlightColor100,tickLength:5,showInLegend:!0}});x(a,"Core/Axis/Color/ColorAxis.js",[a["Core/Axis/Axis.js"],a["Core/Color/Color.js"],a["Core/Axis/Color/ColorAxisComposition.js"],
a["Core/Axis/Color/ColorAxisDefaults.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k,q,n,v,p,h,d){var g=this&&this.__extends||function(){var c=function(b,t){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,e){c.__proto__=e}||function(c,e){for(var m in e)e.hasOwnProperty(m)&&(c[m]=e[m])};return c(b,t)};return function(b,t){function d(){this.constructor=b}c(b,t);b.prototype=null===t?Object.create(t):
(d.prototype=t.prototype,new d)}}(),c=k.parse,l=v.noop,b=h.series,A=d.extend,r=d.isNumber,w=d.merge,f=d.pick;k=function(d){function a(c,b){var e=d.call(this,c,b)||this;e.beforePadding=!1;e.chart=void 0;e.coll="colorAxis";e.dataClasses=void 0;e.legendItem=void 0;e.legendItems=void 0;e.name="";e.options=void 0;e.stops=void 0;e.visible=!0;e.init(c,b);return e}g(a,d);a.compose=function(c,b,e,m){q.compose(a,c,b,e,m)};a.prototype.init=function(c,b){var e=c.options.legend||{},m=b.layout?"vertical"!==b.layout:
"vertical"!==e.layout,u=b.visible;e=w(a.defaultColorAxisOptions,b,{showEmpty:!1,title:null,visible:e.enabled&&!1!==u});this.coll="colorAxis";this.side=b.side||m?2:1;this.reversed=b.reversed||!m;this.opposite=!m;d.prototype.init.call(this,c,e);this.userOptions.visible=u;b.dataClasses&&this.initDataClasses(b);this.initStops();this.horiz=m;this.zoomEnabled=!1};a.prototype.initDataClasses=function(b){var a=this.chart,e=this.options,m=b.dataClasses.length,d,t=0,l=a.options.chart.colorCount;this.dataClasses=
d=[];this.legendItems=[];(b.dataClasses||[]).forEach(function(b,u){b=w(b);d.push(b);if(a.styledMode||!b.color)"category"===e.dataClassColor?(a.styledMode||(u=a.options.colors,l=u.length,b.color=u[t]),b.colorIndex=t,t++,t===l&&(t=0)):b.color=c(e.minColor).tweenTo(c(e.maxColor),2>m?.5:u/(m-1))})};a.prototype.hasData=function(){return!!(this.tickPositions||[]).length};a.prototype.setTickPositions=function(){if(!this.dataClasses)return d.prototype.setTickPositions.call(this)};a.prototype.initStops=function(){this.stops=
this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(b){b.color=c(b[1])})};a.prototype.setOptions=function(b){d.prototype.setOptions.call(this,b);this.options.crosshair=this.options.marker};a.prototype.setAxisSize=function(){var b=this.legendSymbol,c=this.chart,e=c.options.legend||{},m,d;b?(this.left=e=b.attr("x"),this.top=m=b.attr("y"),this.width=d=b.attr("width"),this.height=b=b.attr("height"),this.right=c.chartWidth-e-d,this.bottom=c.chartHeight-
m-b,this.len=this.horiz?d:b,this.pos=this.horiz?e:m):this.len=(this.horiz?e.symbolWidth:e.symbolHeight)||a.defaultLegendLength};a.prototype.normalizedValue=function(b){this.logarithmic&&(b=this.logarithmic.log2lin(b));return 1-(this.max-b)/(this.max-this.min||1)};a.prototype.toColor=function(b,c){var e=this.dataClasses,m=this.stops,a;if(e)for(a=e.length;a--;){var d=e[a];var l=d.from;m=d.to;if(("undefined"===typeof l||b>=l)&&("undefined"===typeof m||b<=m)){var g=d.color;c&&(c.dataClass=a,c.colorIndex=
d.colorIndex);break}}else{b=this.normalizedValue(b);for(a=m.length;a--&&!(b>m[a][0]););l=m[a]||m[a+1];m=m[a+1]||l;b=1-(m[0]-b)/(m[0]-l[0]||1);g=l.color.tweenTo(m.color,b)}return g};a.prototype.getOffset=function(){var b=this.legendGroup,c=this.chart.axisOffset[this.side];b&&(this.axisParent=b,d.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)};a.prototype.setLegendColor=function(){var b=this.reversed,c=b?1:0;
b=b?0:1;c=this.horiz?[c,0,b,0]:[0,b,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}};a.prototype.drawLegendSymbol=function(b,c){var e=b.padding,m=b.options,d=this.horiz,l=f(m.symbolWidth,d?a.defaultLegendLength:12),g=f(m.symbolHeight,d?12:a.defaultLegendLength),h=f(m.labelPadding,d?16:30);m=f(m.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,b.baseline-11,l,g).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=l+e+(d?
m:h);this.legendItemHeight=g+e+(d?h:0)};a.prototype.setState=function(b){this.series.forEach(function(c){c.setState(b)})};a.prototype.setVisible=function(){};a.prototype.getSeriesExtremes=function(){var c=this.series,a=c.length,e;this.dataMin=Infinity;for(this.dataMax=-Infinity;a--;){var m=c[a];var d=m.colorKey=f(m.options.colorKey,m.colorKey,m.pointValKey,m.zoneAxis,"y");var l=m.pointArrayMap;var g=m[d+"Min"]&&m[d+"Max"];if(m[d+"Data"])var h=m[d+"Data"];else if(l){h=[];l=l.indexOf(d);var z=m.yData;
if(0<=l&&z)for(e=0;e<z.length;e++)h.push(f(z[e][l],z[e]))}else h=m.yData;g?(m.minColorValue=m[d+"Min"],m.maxColorValue=m[d+"Max"]):(h=b.prototype.getExtremes.call(m,h),m.minColorValue=h.dataMin,m.maxColorValue=h.dataMax);"undefined"!==typeof m.minColorValue&&(this.dataMin=Math.min(this.dataMin,m.minColorValue),this.dataMax=Math.max(this.dataMax,m.maxColorValue));g||b.prototype.applyExtremes.call(m)}};a.prototype.drawCrosshair=function(b,c){var e=c&&c.plotX,a=c&&c.plotY,l=this.pos,g=this.len;if(c){var h=
this.toPixels(c.getNestedProperty(c.series.colorKey));h<l?h=l-2:h>l+g&&(h=l+g+2);c.plotX=h;c.plotY=this.len-h;d.prototype.drawCrosshair.call(this,b,c);c.plotX=e;c.plotY=a;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};a.prototype.getPlotLinePath=function(b){var c=this.left,e=b.translatedValue,
a=this.top;return r(e)?this.horiz?[["M",e-4,a-6],["L",e+4,a-6],["L",e,a],["Z"]]:[["M",c,e],["L",c-6,e+6],["L",c-6,e-6],["Z"]]:d.prototype.getPlotLinePath.call(this,b)};a.prototype.update=function(b,c){var e=this.chart.legend;this.series.forEach(function(b){b.isDirtyData=!0});(b.dataClasses&&e.allItems||this.dataClasses)&&this.destroyItems();d.prototype.update.call(this,b,c);this.legendItem&&(this.setLegendColor(),e.colorizeItem(this,!0))};a.prototype.destroyItems=function(){var b=this.chart;this.legendItem?
b.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(c){b.legend.destroyItem(c)});b.isDirtyLegend=!0};a.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();d.prototype.destroy.apply(this,[].slice.call(arguments))};a.prototype.remove=function(b){this.destroyItems();d.prototype.remove.call(this,b)};a.prototype.getDataClassLegendSymbols=function(){var b=this,c=b.chart,e=b.legendItems,a=c.options.legend,d=a.valueDecimals,g=a.valueSuffix||"",h;e.length||
b.dataClasses.forEach(function(a,m){var z=a.from,u=a.to,r=c.numberFormatter,w=!0;h="";"undefined"===typeof z?h="< ":"undefined"===typeof u&&(h="> ");"undefined"!==typeof z&&(h+=r(z,d)+g);"undefined"!==typeof z&&"undefined"!==typeof u&&(h+=" - ");"undefined"!==typeof u&&(h+=r(u,d)+g);e.push(A({chart:c,name:h,options:{},drawLegendSymbol:p.drawRectangle,visible:!0,setState:l,isDataClass:!0,setVisible:function(){w=b.visible=!w;b.series.forEach(function(b){b.points.forEach(function(b){b.dataClass===m&&
b.setVisible(w)})});c.legend.colorizeItem(this,w)}},a))});return e};a.defaultColorAxisOptions=n;a.defaultLegendLength=200;a.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return a}(a);Array.prototype.push.apply(a.keepProps,k.keepProps);"";return k});x(a,"Mixins/ColorMapSeries.js",[a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Utilities.js"]],function(a,k,q){var f=q.defined;q=q.addEvent;var v=a.noop;a=a.seriesTypes;q(k,"afterSetState",function(a){this.moveToTopOnHover&&
this.graphic&&this.graphic.attr({zIndex:a&&"hover"===a.state?1:0})});return{colorMapPointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:v,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:a.column.prototype.pointAttribs,colorAttribs:function(a){var h=
{};!f(a.color)||a.state&&"normal"!==a.state||(h[this.colorProp||"fill"]=a.color);return h}}}});x(a,"Maps/MapNavigationOptionsDefault.js",[a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,k){k=k.extend;var f={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"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};k(a.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});return a.defaultOptions.mapNavigation=f});x(a,"Maps/MapNavigation.js",[a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,k,q){function f(b){b&&(b.preventDefault&&b.preventDefault(),b.stopPropagation&&b.stopPropagation(),b.cancelBubble=!0)}function v(b){this.init(b)}var p=k.doc,h=q.addEvent,d=q.extend,g=q.merge,c=q.objectEach,l=q.pick;v.prototype.init=function(b){this.chart=
b;b.mapNavButtons=[]};v.prototype.update=function(b){var a=this.chart,r=a.options.mapNavigation,w,n,q,y,t=function(b){this.handler.call(a,b);f(b)},k=a.mapNavButtons;b&&(r=a.options.mapNavigation=g(a.options.mapNavigation,b));for(;k.length;)k.pop().destroy();l(r.enableButtons,r.enabled)&&!a.renderer.forExport&&c(r.buttons,function(b,c){b=g(r.buttonOptions,b);!a.styledMode&&b.theme&&(w=b.theme,w.style=g(b.theme.style,b.style),q=(n=w.states)&&n.hover,y=n&&n.select,delete w.states);var e=a.renderer.button(b.text||
"",0,0,t,w,q,y,void 0,"zoomIn"===c?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[c]).attr({width:b.width,height:b.height,title:a.options.lang[c],padding:b.padding,zIndex:5}).add();e.handler=b.onclick;h(e.element,"dblclick",f);k.push(e);d(b,{width:e.width,height:2*e.height});if(a.hasLoaded)e.align(b,!1,b.alignTo);else var m=h(a,"load",function(){e.element&&e.align(b,!1,b.alignTo);m()})});this.updateEvents(r)};v.prototype.updateEvents=
function(b){var c=this.chart;l(b.enableDoubleClickZoom,b.enabled)||b.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||h(c.container,"dblclick",function(b){c.pointer.onContainerDblClick(b)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());l(b.enableMouseWheelZoom,b.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||h(c.container,void 0!==p.onwheel?"wheel":void 0!==p.onmousewheel?"mousewheel":"DOMMouseScroll",function(b){c.pointer.inClass(b.target,"highcharts-no-mousewheel")||
(c.pointer.onContainerMouseWheel(b),f(b));return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};d(a.prototype,{fitToBox:function(b,c){[["x","width"],["y","height"]].forEach(function(a){var d=a[0];a=a[1];b[d]+b[a]>c[d]+c[a]&&(b[a]>c[a]?(b[a]=c[a],b[d]=c[d]):b[d]=c[d]+c[a]-b[a]);b[a]>c[a]&&(b[a]=c[a]);b[d]<c[d]&&(b[d]=c[d])});return b},mapZoom:function(b,c,a,d,h,g){var r=this.xAxis[0],t=r.max-r.min,f=l(c,r.min+t/2),e=t*b;t=this.yAxis[0];var m=t.max-t.min,u=l(a,t.min+m/2);
m*=b;f=this.fitToBox({x:f-e*(d?(d-r.pos)/r.len:.5),y:u-m*(h?(h-t.pos)/t.len:.5),width:e,height:m},{x:r.dataMin,y:t.dataMin,width:r.dataMax-r.dataMin,height:t.dataMax-t.dataMin});e=f.x<=r.dataMin&&f.width>=r.dataMax-r.dataMin&&f.y<=t.dataMin&&f.height>=t.dataMax-t.dataMin;d&&r.mapAxis&&(r.mapAxis.fixTo=[d-r.pos,c]);h&&t.mapAxis&&(t.mapAxis.fixTo=[h-t.pos,a]);"undefined"===typeof b||e?(r.setExtremes(void 0,void 0,!1),t.setExtremes(void 0,void 0,!1)):(r.setExtremes(f.x,f.x+f.width,!1),t.setExtremes(f.y,
f.y+f.height,!1));this.redraw(g)}});h(a,"beforeRender",function(){this.mapNavigation=new v(this);this.mapNavigation.update()});k.MapNavigation=v});x(a,"Maps/MapPointer.js",[a["Core/Pointer.js"],a["Core/Utilities.js"]],function(a,k){var f=k.extend,n=k.pick;k=k.wrap;var v=0,p;f(a.prototype,{onContainerDblClick:function(a){var d=this.chart;a=this.normalize(a);d.options.mapNavigation.enableDoubleClickZoomTo?d.pointer.inClass(a.target,"highcharts-tracker")&&d.hoverPoint&&d.hoverPoint.zoomTo():d.isInsidePlot(a.chartX-
d.plotLeft,a.chartY-d.plotTop)&&d.mapZoom(.5,d.xAxis[0].toValue(a.chartX),d.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var d=this.chart;a=this.normalize(a);var g=a.deltaY||a.detail||-(a.wheelDelta/120);1<=Math.abs(g)&&(v+=Math.abs(g),p&&clearTimeout(p),p=setTimeout(function(){v=0},50));10>v&&d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop)&&d.mapZoom(Math.pow(d.options.mapNavigation.mouseWheelSensitivity,g),d.xAxis[0].toValue(a.chartX),d.yAxis[0].toValue(a.chartY),
a.chartX,a.chartY,1>Math.abs(g)?!1:void 0)}});k(a.prototype,"zoomOption",function(a){var d=this.chart.options.mapNavigation;n(d.enableTouchZoom,d.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});k(a.prototype,"pinchTranslate",function(a,d,g,c,l,b,f){a.call(this,d,g,c,l,b,f);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=c.scaleX>c.scaleY,this.pinchTranslateDirection(!a,d,g,c,l,b,f,a?c.scaleX:c.scaleY))})});x(a,"Maps/MapSymbols.js",[a["Core/Renderer/SVG/SVGRenderer.js"]],
function(a){function f(a,f,k,p,h,d,g,c){return[["M",a+h,f],["L",a+k-d,f],["C",a+k-d/2,f,a+k,f+d/2,a+k,f+d],["L",a+k,f+p-g],["C",a+k,f+p-g/2,a+k-g/2,f+p,a+k-g,f+p],["L",a+c,f+p],["C",a+c/2,f+p,a,f+p-c/2,a,f+p-c],["L",a,f+h],["C",a,f+h/2,a+h/2,f,a+h,f],["Z"]]}a=a.prototype.symbols;a.bottombutton=function(a,k,v,p,h){h=h&&h.r||0;return f(a-1,k-1,v,p,0,0,h,h)};a.topbutton=function(a,k,v,p,h){h=h&&h.r||0;return f(a-1,k-1,v,p,h,h,0,0)};return a});x(a,"Core/Chart/MapChart.js",[a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],
a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,k,q,n){var f=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,d)};return function(c,d){function b(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),p=k.getOptions,h=n.merge,d=n.pick;a=function(a){function c(){return null!==
a&&a.apply(this,arguments)||this}f(c,a);c.prototype.init=function(c,b){var l={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},g=p().credits;c=h({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:d(g.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:d(g.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:l,yAxis:h(l,{reversed:!0})},c,{chart:{inverted:!1,alignTicks:!1}});a.prototype.init.call(this,c,b)};
return c}(a);(function(a){a.maps={};a.mapChart=function(c,d,b){return new a(c,d,b)};a.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?a:parseFloat(a)}));return q.prototype.pathToSegments(a)}})(a||(a={}));return a});x(a,"Series/Map/MapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k,q){var f=this&&this.__extends||
function(){var a=function(h,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var d in c)c.hasOwnProperty(d)&&(a[d]=c[d])};return a(h,d)};return function(h,d){function g(){this.constructor=h}a(h,d);h.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}();a=a.colorMapPointMixin;var v=q.extend;k=function(a){function h(){var d=null!==a&&a.apply(this,arguments)||this;d.options=void 0;d.path=void 0;d.series=void 0;return d}f(h,
a);h.prototype.applyOptions=function(d,g){var c=this.series;d=a.prototype.applyOptions.call(this,d,g);g=c.joinBy;c.mapData&&c.mapMap&&(g=a.prototype.getNestedProperty.call(d,g[1]),(g="undefined"!==typeof g&&c.mapMap[g])?(c.xyFromShape&&(d.x=g._midX,d.y=g._midY),v(d,g)):d.value=d.value||null);return d};h.prototype.onMouseOver=function(d){q.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)a.prototype.onMouseOver.call(this,d);else this.series.onMouseOut(d)};
h.prototype.zoomTo=function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()};return h}(k.seriesTypes.scatter.prototype.pointClass);v(k.prototype,{dataLabelOnNull:a.dataLabelOnNull,isValid:a.isValid,moveToTopOnHover:a.moveToTopOnHover});return k});x(a,"Series/Map/MapSeries.js",[a["Mixins/ColorMapSeries.js"],a["Core/Globals.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Chart/MapChart.js"],a["Series/Map/MapPoint.js"],a["Core/Color/Palette.js"],
a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,k,q,n,v,p,h,d,g,c){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,
new d)}}();a=a.colorMapSeriesMixin;var b=k.noop,f=n.maps,r=n.splitPath;n=d.seriesTypes;var w=n.column,E=n.scatter;n=c.extend;var C=c.fireEvent,y=c.getNestedProperty,t=c.isArray,D=c.isNumber,e=c.merge,m=c.objectEach,u=c.pick,B=c.splat;c=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.baseTrans=void 0;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.transformGroup=void 0;return b}l(b,a);b.prototype.animate=function(a){var b=this.options.animation,
c=this.group,d=this.xAxis,e=this.yAxis,m=d.pos,l=e.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?c.attr({translateX:m+d.len/2,translateY:l+e.len/2,scaleX:.001,scaleY:.001}):c.animate({translateX:m,translateY:l,scaleX:1,scaleY:1},b))};b.prototype.animateDrilldown=function(a){var b=this.chart.plotBox,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],d=c.bBox,e=this.chart.options.drilldown.animation;a||(a=Math.min(d.width/b.width,d.height/b.height),c.shapeArgs={scaleX:a,
scaleY:a,translateX:d.x,translateY:d.y},this.points.forEach(function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},e)}))};b.prototype.animateDrillupFrom=function(a){w.prototype.animateDrillupFrom.call(this,a)};b.prototype.animateDrillupTo=function(a){w.prototype.animateDrillupTo.call(this,a)};b.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans};b.prototype.drawMapDataLabels=
function(){h.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};b.prototype.drawPoints=function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,e=a.chart,m=e.renderer,l=this.baseTrans;a.transformGroup||(a.transformGroup=m.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);if(a.doFullTranslate())e.hasRendered&&!e.styledMode&&a.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,
w.prototype.drawPoints.apply(a),a.group=d,a.points.forEach(function(b){if(b.graphic){var c="";b.name&&(c+="highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase());b.properties&&b.properties["hc-key"]&&(c+=" highcharts-key-"+b.properties["hc-key"].toLowerCase());c&&b.graphic.addClass(c);e.styledMode&&b.graphic.css(a.pointAttribs(b,b.selected&&"select"||void 0))}}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,
transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1});else{var g=b.transA/l.transAX;var h=c.transA/l.transAY;var f=b.toPixels(l.originX,!0);var r=c.toPixels(l.originY,!0);.99<g&&1.01>g&&.99<h&&1.01>h&&(h=g=1,f=Math.round(f),r=Math.round(r));var t=this.transformGroup;if(e.renderer.globalAnimation){var k=t.attr("translateX");var y=t.attr("translateY");var B=t.attr("scaleX");var A=t.attr("scaleY");t.attr({animator:0}).animate({animator:1},{step:function(a,b){t.attr({translateX:k+
(f-k)*b.pos,translateY:y+(r-y)*b.pos,scaleX:B+(g-B)*b.pos,scaleY:A+(h-A)*b.pos})}})}else t.attr({translateX:f,translateY:r,scaleX:g,scaleY:h})}e.styledMode||d.element.setAttribute("stroke-width",u(a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(g||1));this.drawMapDataLabels()};b.prototype.getBox=function(a){var b=Number.MAX_VALUE,c=-b,d=b,e=-b,m=b,l=b,h=this.xAxis,f=this.yAxis,t;(a||[]).forEach(function(a){if(a.path){"string"===typeof a.path?a.path=r(a.path):
"M"===a.path[0]&&(a.path=g.prototype.pathToSegments(a.path));var h=a.path||[],f=-b,w=b,z=-b,k=b,y=a.properties;a._foundBox||(h.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(w=Math.min(w,b),f=Math.max(f,b),k=Math.min(k,a),z=Math.max(z,a))}),a._midX=w+(f-w)*u(a.middleX,y&&y["hc-middle-x"],.5),a._midY=k+(z-k)*u(a.middleY,y&&y["hc-middle-y"],.5),a._maxX=f,a._minX=w,a._maxY=z,a._minY=k,a.labelrank=u(a.labelrank,(f-w)*(z-k)),a._foundBox=!0);c=Math.max(c,
a._maxX);d=Math.min(d,a._minX);e=Math.max(e,a._maxY);m=Math.min(m,a._minY);l=Math.min(a._maxX-a._minX,a._maxY-a._minY,l);t=!0}});t&&(this.minY=Math.min(m,u(this.minY,b)),this.maxY=Math.max(e,u(this.maxY,-b)),this.minX=Math.min(d,u(this.minX,b)),this.maxX=Math.max(c,u(this.maxX,-b)),h&&"undefined"===typeof h.options.minRange&&(h.minRange=Math.min(5*l,(this.maxX-this.minX)/5,h.minRange||b)),f&&"undefined"===typeof f.options.minRange&&(f.minRange=Math.min(5*l,(this.maxY-this.minY)/5,f.minRange||b)))};
b.prototype.getExtremes=function(){var a=h.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);D(b)&&(this.valueMin=b);D(a)&&(this.valueMax=a);return{dataMin:this.minY,dataMax:this.maxY}};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(a,b){b=a.series.chart.styledMode?this.colorAttribs(a):w.prototype.pointAttribs.call(this,a,b);b["stroke-width"]=u(a.options[this.pointAttrToOptions&&
this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit");return b};b.prototype.render=function(){var a=this,b=h.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)};b.prototype.setData=function(a,b,c,d){var l=this.options,g=this.chart.options.chart,u=g&&g.map,r=l.mapData,w=this.joinBy,z=l.keys||this.pointArrayMap,B=[],A={},p=this.chart.mapTransforms;!r&&u&&(r="string"===typeof u?f[u]:u);a&&a.forEach(function(b,c){var d=0;if(D(b))a[c]={value:b};
else if(t(b)){a[c]={};!l.keys&&b.length>z.length&&"string"===typeof b[0]&&(a[c]["hc-key"]=b[0],++d);for(var e=0;e<z.length;++e,++d)z[e]&&"undefined"!==typeof b[d]&&(0<z[e].indexOf(".")?v.prototype.setNestedProperty(a[c],b[d],z[e]):a[c][z[e]]=b[d])}w&&"_i"===w[0]&&(a[c]._i=c)});this.getBox(a);(this.chart.mapTransforms=p=g.mapTransforms||r&&r["hc-transform"]||p)&&m(p,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(r){"FeatureCollection"===r.type&&(this.mapTitle=
r.title,r=k.geojson(r,this.type,this));this.mapData=r;this.mapMap={};for(p=0;p<r.length;p++)g=r[p],u=g.properties,g._i=p,w[0]&&u&&u[w[0]]&&(g[w[0]]=u[w[0]]),A[g[w[0]]]=g;this.mapMap=A;if(a&&w[1]){var n=w[1];a.forEach(function(a){a=y(n,a);A[a]&&B.push(A[a])})}if(l.allAreas){this.getBox(r);a=a||[];if(w[1]){var q=w[1];a.forEach(function(a){B.push(y(q,a))})}B="|"+B.map(function(a){return a&&a[w[0]]}).join("|")+"|";r.forEach(function(b){w[0]&&-1!==B.indexOf("|"+b[w[0]]+"|")||(a.push(e(b,{value:null})),
d=!1)})}else this.getBox(B)}h.prototype.setData.call(this,a,b,c,d)};b.prototype.setOptions=function(a){a=h.prototype.setOptions.call(this,a);var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=B(b);b[1]||(b[1]=b[0]);return a};b.prototype.translate=function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.doFullTranslate();a.generatePoints();a.data.forEach(function(e){D(e._midX)&&D(e._midY)&&(e.plotX=b.toPixels(e._midX,!0),e.plotY=c.toPixels(e._midY,!0));d&&(e.shapeType="path",e.shapeArgs={d:a.translatePath(e.path)})});
C(a,"afterTranslate")};b.prototype.translatePath=function(a){var b=this.xAxis,c=this.yAxis,d=b.min,e=b.transA,m=b.minPixelPadding,l=c.min,g=c.transA,h=c.minPixelPadding,u=[];a&&a.forEach(function(a){"M"===a[0]?u.push(["M",(a[1]-(d||0))*e+m,(a[2]-(l||0))*g+h]):"L"===a[0]?u.push(["L",(a[1]-(d||0))*e+m,(a[2]-(l||0))*g+h]):"C"===a[0]?u.push(["C",(a[1]-(d||0))*e+m,(a[2]-(l||0))*g+h,(a[3]-(d||0))*e+m,(a[4]-(l||0))*g+h,(a[5]-(d||0))*e+m,(a[6]-(l||0))*g+h]):"Q"===a[0]?u.push(["Q",(a[1]-(d||0))*e+m,(a[2]-
(l||0))*g+h,(a[3]-(d||0))*e+m,(a[4]-(l||0))*g+h]):"Z"===a[0]&&u.push(["Z"])});return u};b.defaultOptions=e(E.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return D(b)?a(b,-1):""},inside:!0,overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:p.neutralColor3,stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:p.neutralColor20,
borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:p.neutralColor20},inactive:{opacity:1}}});return b}(E);n(c.prototype,{type:"map",axisTypes:a.axisTypes,colorAttribs:a.colorAttribs,colorKey:a.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:q.drawRectangle,forceDL:!0,getExtremesFromAll:!0,getSymbol:a.getSymbol,parallelArrays:a.parallelArrays,pointArrayMap:a.pointArrayMap,pointClass:v,preserveAspectRatio:!0,searchPoint:b,
trackerGroups:a.trackerGroups,useMapGeometry:!0});d.registerSeriesType("map",c);"";return c});x(a,"Series/MapLine/MapLineSeries.js",[a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k,q){var f=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(d,c)};return function(d,c){function l(){this.constructor=
d}a(d,c);d.prototype=null===c?Object.create(c):(l.prototype=c.prototype,new l)}}(),v=k.series,p=q.extend,h=q.merge;q=function(d){function g(){var a=null!==d&&d.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}f(g,d);g.prototype.pointAttribs=function(c,d){c=a.prototype.pointAttribs.call(this,c,d);c.fill=this.options.fillColor;return c};g.defaultOptions=h(a.defaultOptions,{lineWidth:1,fillColor:"none"});return g}(a);p(q.prototype,{type:"mapline",colorProp:"stroke",
drawLegendSymbol:v.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});k.registerSeriesType("mapline",q);"";return q});x(a,"Series/MapPoint/MapPointPoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k){var f=this&&this.__extends||function(){var a=function(f,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var c in g)g.hasOwnProperty(c)&&(a[c]=g[c])};return a(f,h)};return function(f,
h){function d(){this.constructor=f}a(f,h);f.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}(),n=k.merge;return function(a){function k(){var h=null!==a&&a.apply(this,arguments)||this;h.options=void 0;h.series=void 0;return h}f(k,a);k.prototype.applyOptions=function(h,d){h="undefined"!==typeof h.lat&&"undefined"!==typeof h.lon?n(h,this.series.chart.fromLatLonToPoint(h)):h;return a.prototype.applyOptions.call(this,h,d)};return k}(a.seriesTypes.scatter.prototype.pointClass)});x(a,
"Series/MapPoint/MapPointSeries.js",[a["Series/MapPoint/MapPointPoint.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k,q,n){var f=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,d)};return function(c,d){function b(){this.constructor=c}a(c,d);c.prototype=null===d?Object.create(d):
(b.prototype=d.prototype,new b)}}(),p=q.seriesTypes.scatter,h=n.extend,d=n.merge;n=function(a){function c(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;c.points=void 0;return c}f(c,a);c.prototype.drawDataLabels=function(){a.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};c.defaultOptions=d(p.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:k.neutralColor100}}});
return c}(p);h(n.prototype,{type:"mappoint",forceDL:!0,pointClass:a});q.registerSeriesType("mappoint",n);"";return n});x(a,"Series/Bubble/BubbleLegendDefaults.js",[a["Core/Color/Palette.js"]],function(a){return{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:"10px",color:a.neutralColor100},
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}});x(a,"Series/Bubble/BubbleLegendItem.js",[a["Core/Color/Color.js"],a["Core/FormatUtilities.js"],a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,k,q,n){var f=a.parse,p=q.noop,h=n.arrayMax,d=n.arrayMin,g=n.isNumber,c=n.merge,l=n.pick,b=n.stableSort;"";return function(){function a(a,b){this.options=this.symbols=this.visible=
this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=p;this.init(a,b)}a.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};a.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};a.prototype.drawLegendSymbol=function(a){var c=this.chart,d=this.options,h=l(a.options.itemDistance,
20),f=d.ranges,r=d.connectorDistance;this.fontMetrics=c.renderer.fontMetrics(d.labels.style.fontSize);f&&f.length&&g(f[0].value)?(b(f,function(a,b){return b.value-a.value}),this.ranges=f,this.setOptions(),this.render(),a=this.getMaxLabelSize(),f=this.ranges[0].radius,c=2*f,r=r-f+a.width,r=0<r?r:0,this.maxLabel=a,this.movementX="left"===d.labels.align?r:0,this.legendItemWidth=c+r+h,this.legendItemHeight=c+this.fontMetrics.h/2):a.options.bubbleLegend.autoRanges=!0};a.prototype.setOptions=function(){var a=
this.ranges,b=this.options,d=this.chart.series[b.seriesIndex],h=this.legend.baseline,g={zIndex:b.zIndex,"stroke-width":b.borderWidth},t={zIndex:b.zIndex,"stroke-width":b.connectorWidth},k={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},e=d.options.marker.fillOpacity,m=this.chart.styledMode;a.forEach(function(u,r){m||(g.stroke=l(u.borderColor,b.borderColor,d.color),g.fill=l(u.color,b.color,1!==e?f(d.color).setOpacity(e).get("rgba"):d.color),t.stroke=l(u.connectorColor,
b.connectorColor,d.color));a[r].radius=this.getRangeRadius(u.value);a[r]=c(a[r],{center:a[0].radius-a[r].radius+h});m||c(!0,a[r],{bubbleAttribs:c(g),connectorAttribs:c(t),labelAttribs:k})},this)};a.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};a.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols=
{connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};a.prototype.renderRange=function(a){var b=this.options,c=b.labels,d=this.chart,h=d.series[b.seriesIndex],l=d.renderer,g=this.symbols;d=g.labels;
var e=a.center,m=Math.abs(a.radius),u=b.connectorDistance||0,f=c.align,r=b.connectorWidth,k=this.ranges[0].radius||0,z=e-m-b.borderWidth/2+r/2,p=this.fontMetrics;p=p.f/2-(p.h-p.f)/2;var n=l.styledMode;u=this.legend.options.rtl||"left"===f?-u:u;"center"===f&&(u=0,b.connectorDistance=0,a.labelAttribs.align="center");f=z+b.labels.y;var q=k+u+b.labels.x;g.bubbleItems.push(l.circle(k,e+((z%1?1:.5)-(r%2?0:.5)),m).attr(n?{}:a.bubbleAttribs).addClass((n?"highcharts-color-"+h.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+
(b.className||"")).add(this.legendSymbol));g.connectors.push(l.path(l.crispLine([["M",k,z],["L",k+u,z]],b.connectorWidth)).attr(n?{}:a.connectorAttribs).addClass((n?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=l.text(this.formatLabel(a),q,f+p).attr(n?{}:a.labelAttribs).css(n?{}:c.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);d.push(a);a.placed=
!0;a.alignAttr={x:q,y:f+p}};a.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(c){b=c.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};a.prototype.formatLabel=function(a){var b=this.options,c=b.labels.formatter;b=b.labels.format;var d=this.chart.numberFormatter;return b?k.format(b,a):c?c.call(a):d(a.value,1)};a.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),b.labels.forEach(function(a,
c){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[c].show():b.connectors[c].hide()}))};a.prototype.getRanges=function(){var a=this.legend.bubbleLegend,b=a.options.ranges,f,k=Number.MAX_VALUE,y=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(f=a.zData.filter(g),f.length&&(k=l(a.options.zMin,Math.min(k,Math.max(d(f),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),y=l(a.options.zMax,Math.max(y,h(f)))))});var t=k===y?[{value:y}]:[{value:k},
{value:(k+y)/2},{value:y,autoRanges:!0}];b.length&&b[0].radius&&t.reverse();t.forEach(function(a,d){b&&b[d]&&(t[d]=c(b[d],a))});return t};a.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,c=a.legend.options,d="horizontal"===c.layout,l=d?a.legend.lastLineHeight:0,h=a.plotSizeX,g=a.plotSizeY,e=a.series[this.options.seriesIndex];a=Math.ceil(e.minPxSize);var m=Math.ceil(e.maxPxSize),f=Math.min(g,h);e=e.options.maxSize;if(c.floating||!/%$/.test(e))b=m;else if(e=parseFloat(e),
b=(f+l-b.h/2)*e/100/(e/100+1),d&&g-b>=h||!d&&h-b>=g)b=m;return[a,Math.ceil(b)]};a.prototype.updateRanges=function(a,b){var c=this.legend.options.bubbleLegend;c.minSize=a;c.maxSize=b;c.ranges=this.getRanges()};a.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return a}()});x(a,"Series/Bubble/BubbleLegendComposition.js",[a["Series/Bubble/BubbleLegendDefaults.js"],
a["Series/Bubble/BubbleLegendItem.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,k,q,n){var f=q.setOptions,p=n.addEvent,h=n.objectEach,d=n.wrap,g;(function(c){function l(a,c,d){var e=this.legend,m=0<=b(this);if(e&&e.options.enabled&&e.bubbleLegend&&e.options.bubbleLegend.autoRanges&&m){var l=e.bubbleLegend.options;m=e.bubbleLegend.predictBubbleSizes();e.bubbleLegend.updateRanges(m[0],m[1]);l.placed||(e.group.placed=!1,e.allItems.forEach(function(a){a.legendGroup.translateY=null}));
e.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();l.placed||(a.setScale(),a.updateNames(),h(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});l.placed=!0;this.getMargins();a.call(this,c,d);e.bubbleLegend.correctSizes();q(e,g(e))}else a.call(this,c,d),e&&e.options.enabled&&e.bubbleLegend&&(e.render(),q(e,g(e)))}function b(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&a[b].visible&&a[b].zData.length)return b;b++}return-1}function g(a){a=a.allItems;var b=
[],c=a.length,d,m=0;for(d=0;d<c;d++)if(a[d].legendItemHeight&&(a[d].itemHeight=a[d].legendItemHeight),a[d]===a[c-1]||a[d+1]&&a[d]._legendItemPos[1]!==a[d+1]._legendItemPos[1]){b.push({height:0});var l=b[b.length-1];for(m;m<=d;m++)a[m].itemHeight>l.height&&(l.height=a[m].itemHeight);l.step=d}return b}function r(a){var c=this.bubbleLegend,d=this.options,e=d.bubbleLegend,m=b(this.chart);c&&c.ranges&&c.ranges.length&&(e.ranges.length&&(e.autoRanges=!!e.ranges[0].autoRanges),this.destroyItem(c));0<=m&&
d.enabled&&e.enabled&&(e.seriesIndex=m,this.bubbleLegend=new k(e,this),this.bubbleLegend.addToLegend(a.allItems))}function n(){var a=this.chart,c=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!c,this.ignoreSeries=c,a=0<=b(a),d.bubbleLegend.visible!==a&&(d.update({bubbleLegend:{enabled:a}}),d.bubbleLegend.visible=a),this.visible=c)}function q(a,b){var c=a.options.rtl,d,m,l,g=0;a.allItems.forEach(function(a,e){d=a.legendGroup.translateX;m=a._legendItemPos[1];if((l=a.movementX)||
c&&a.ranges)l=c?d-a.options.maxSize/2:d+l,a.legendGroup.attr({translateX:l});e>b[g].step&&g++;a.legendGroup.attr({translateY:Math.round(m+b[g].height/2)});a._legendItemPos[1]=m+b[g].height/2})}var v=[];c.compose=function(b,c,g){-1===v.indexOf(b)&&(v.push(b),f({legend:{bubbleLegend:a}}),d(b.prototype,"drawChartBox",l));-1===v.indexOf(c)&&(v.push(c),p(c,"afterGetAllItems",r));-1===v.indexOf(g)&&(v.push(g),p(g,"legendItemClick",n))}})(g||(g={}));return g});x(a,"Series/Bubble/BubblePoint.js",[a["Core/Series/Point.js"],
a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k,q){var f=this&&this.__extends||function(){var a=function(f,h){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,g){a.__proto__=g}||function(a,g){for(var c in g)g.hasOwnProperty(c)&&(a[c]=g[c])};return a(f,h)};return function(f,h){function d(){this.constructor=f}a(f,h);f.prototype=null===h?Object.create(h):(d.prototype=h.prototype,new d)}}();q=q.extend;k=function(k){function n(){var a=null!==k&&k.apply(this,arguments)||
this;a.options=void 0;a.series=void 0;return a}f(n,k);n.prototype.haloPath=function(h){return a.prototype.haloPath.call(this,0===h?0:(this.marker?this.marker.radius||0:0)+h)};return n}(k.seriesTypes.scatter.prototype.pointClass);q(k.prototype,{ttBelow:!1});return k});x(a,"Series/Bubble/BubbleSeries.js",[a["Core/Axis/Axis.js"],a["Series/Bubble/BubbleLegendComposition.js"],a["Series/Bubble/BubblePoint.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],
a["Core/Utilities.js"]],function(a,k,q,n,v,p,h,d){var g=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),c=n.parse;n=v.noop;var l=h.seriesTypes;v=l.column;var b=l.scatter,f=d.arrayMax,r=d.arrayMin,w=
d.clamp,x=d.extend,C=d.isNumber,y=d.merge,t=d.pick,D=d.pInt;d=function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.maxPxSize=void 0;b.minPxSize=void 0;b.options=void 0;b.points=void 0;b.radii=void 0;b.yData=void 0;b.zData=void 0;return b}g(d,a);d.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),
this.options.animation))},this)};d.prototype.getRadii=function(a,b,c){var d=this.zData,e=this.yData,l=c.minPxSize,g=c.maxPxSize,m=[];var h=0;for(c=d.length;h<c;h++){var f=d[h];m.push(this.getRadius(a,b,l,g,f,e[h]))}this.radii=m};d.prototype.getRadius=function(a,b,c,d,e,l){var g=this.options,m="width"!==g.sizeBy,h=g.zThreshold,f=b-a,k=.5;if(null===l||null===e)return null;if(C(e)){g.sizeByAbsoluteValue&&(e=Math.abs(e-h),f=Math.max(b-h,Math.abs(a-h)),a=0);if(e<a)return c/2-1;0<f&&(k=(e-a)/f)}m&&0<=k&&
(k=Math.sqrt(k));return Math.ceil(c+k*(d-c))/2};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.pointAttribs=function(a,b){var d=this.options.marker.fillOpacity;a=p.prototype.pointAttribs.call(this,a,b);1!==d&&(a.fill=c(a.fill).setOpacity(d).get("rgba"));return a};d.prototype.translate=function(){var b,c=this.data,d=this.radii;a.prototype.translate.call(this);for(b=c.length;b--;){var e=c[b];var l=d?d[b]:0;C(l)&&l>=this.minPxSize/2?(e.marker=x(e.marker,{radius:l,width:2*
l,height:2*l}),e.dlBox={x:e.plotX-l,y:e.plotY-l,width:2*l,height:2*l}):e.shapeArgs=e.plotY=e.dlBox=void 0}};d.compose=k.compose;d.defaultOptions=y(b.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return C(b)?a(b,-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"});return d}(b);x(d.prototype,{alignDataLabel:v.prototype.alignDataLabel,applyZones:n,bubblePadding:!0,buildKDTree:n,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:q,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});a.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,l=b,g=this.isXAxis,h=g?"xData":
"yData",k=this.min,n={},q=Math.min(c.plotWidth,c.plotHeight),p=Number.MAX_VALUE,A=-Number.MAX_VALUE,v=this.max-k,y=b/v,x=[];this.series.forEach(function(b){var d=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,x.push(b),g&&(["minSize","maxSize"].forEach(function(a){var b=d[a],c=/%$/.test(b);b=D(b);n[a]=c?q*b/100:b}),b.minPxSize=n.minSize,b.maxPxSize=Math.max(n.maxSize,n.minSize),b=b.zData.filter(C),b.length&&(p=t(d.zMin,w(r(b),!1===d.displayNegative?
d.zThreshold:-Number.MAX_VALUE,p)),A=t(d.zMax,Math.max(A,f(b))))))});x.forEach(function(b){var c=b[h],e=c.length;g&&b.getRadii(p,A,b);if(0<v)for(;e--;)if(C(c[e])&&a.dataMin<=c[e]&&c[e]<=a.max){var m=b.radii?b.radii[e]:0;d=Math.min((c[e]-k)*y-m,d);l=Math.max((c[e]-k)*y+m,l)}});x.length&&0<v&&!this.logarithmic&&(l-=b,y*=(b+Math.max(0,d)-Math.min(l,b))/b,[["min","userMin",d],["max","userMax",l]].forEach(function(b){"undefined"===typeof t(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/y)}))};h.registerSeriesType("bubble",
d);"";"";return d});x(a,"Series/MapBubble/MapBubblePoint.js",[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k){var f=this&&this.__extends||function(){var a=function(d,g){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(d,g)};return function(d,g){function c(){this.constructor=d}a(d,g);d.prototype=null===g?Object.create(g):(c.prototype=g.prototype,new c)}}(),n=a.seriesTypes,
v=n.map;a=k.extend;var p=k.merge;k=function(a){function d(){return null!==a&&a.apply(this,arguments)||this}f(d,a);d.prototype.applyOptions=function(d,c){return d&&"undefined"!==typeof d.lat&&"undefined"!==typeof d.lon?a.prototype.applyOptions.call(this,p(d,this.series.chart.fromLatLonToPoint(d)),c):v.prototype.pointClass.prototype.applyOptions.call(this,d,c)};d.prototype.isValid=function(){return"number"===typeof this.z};return d}(n.bubble.prototype.pointClass);a(k.prototype,{ttBelow:!1});return k});
x(a,"Series/MapBubble/MapBubbleSeries.js",[a["Series/Bubble/BubbleSeries.js"],a["Series/MapBubble/MapBubblePoint.js"],a["Series/Map/MapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k,q,n,v){var f=this&&this.__extends||function(){var a=function(c,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)c.hasOwnProperty(b)&&(a[b]=c[b])};return a(c,d)};return function(c,d){function b(){this.constructor=
c}a(c,d);c.prototype=null===d?Object.create(d):(b.prototype=d.prototype,new b)}}(),h=v.extend,d=v.merge;v=function(g){function c(){var a=null!==g&&g.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}f(c,g);c.compose=a.compose;c.defaultOptions=d(a.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return c}(a);h(v.prototype,{type:"mapbubble",getBox:q.prototype.getBox,pointArrayMap:["z"],pointClass:k,setData:q.prototype.setData,setOptions:q.prototype.setOptions,
xyFromShape:!0});n.registerSeriesType("mapbubble",v);"";return v});x(a,"Series/Heatmap/HeatmapPoint.js",[a["Mixins/ColorMapSeries.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,k,q){var f=this&&this.__extends||function(){var a=function(d,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(d,c)};return function(d,c){function l(){this.constructor=d}a(d,c);d.prototype=
null===c?Object.create(c):(l.prototype=c.prototype,new l)}}();a=a.colorMapPointMixin;var v=q.clamp,p=q.extend,h=q.pick;k=function(a){function d(){var c=null!==a&&a.apply(this,arguments)||this;c.options=void 0;c.series=void 0;c.value=void 0;c.x=void 0;c.y=void 0;return c}f(d,a);d.prototype.applyOptions=function(c,d){c=a.prototype.applyOptions.call(this,c,d);c.formatPrefix=c.isNull||null===c.value?"null":"point";return c};d.prototype.getCellAttributes=function(){var a=this.series,d=a.options,b=(d.colsize||
1)/2,g=(d.rowsize||1)/2,f=a.xAxis,k=a.yAxis,n=this.options.marker||a.options.marker;a=a.pointPlacementToXValue();var q=h(this.pointPadding,d.pointPadding,0),p={x1:v(Math.round(f.len-(f.translate(this.x-b,!1,!0,!1,!0,-a)||0)),-f.len,2*f.len),x2:v(Math.round(f.len-(f.translate(this.x+b,!1,!0,!1,!0,-a)||0)),-f.len,2*f.len),y1:v(Math.round(k.translate(this.y-g,!1,!0,!1,!0)||0),-k.len,2*k.len),y2:v(Math.round(k.translate(this.y+g,!1,!0,!1,!0)||0),-k.len,2*k.len)};[["width","x"],["height","y"]].forEach(function(a){var b=
a[0];a=a[1];var c=a+"1",d=a+"2",l=Math.abs(p[c]-p[d]),g=n&&n.lineWidth||0,f=Math.abs(p[c]+p[d])/2;n[b]&&n[b]<l&&(p[c]=f-n[b]/2-g/2,p[d]=f+n[b]/2+g/2);q&&("y"===a&&(c=d,d=a+"1"),p[c]+=q,p[d]-=q)});return p};d.prototype.haloPath=function(a){if(!a)return[];var c=this.shapeArgs;return["M",c.x-a,c.y-a,"L",c.x-a,c.y+c.height+a,c.x+c.width+a,c.y+c.height+a,c.x+c.width+a,c.y-a,"Z"]};d.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return d}(k.seriesTypes.scatter.prototype.pointClass);
p(k.prototype,{dataLabelOnNull:a.dataLabelOnNull,moveToTopOnHover:a.moveToTopOnHover});return k});x(a,"Series/Heatmap/HeatmapSeries.js",[a["Core/Color/Color.js"],a["Mixins/ColorMapSeries.js"],a["Series/Heatmap/HeatmapPoint.js"],a["Core/Legend/LegendSymbol.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,k,q,n,v,p,h,d){var g=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();k=k.colorMapSeriesMixin;var c=p.series,f=p.seriesTypes,b=f.column,A=f.scatter,r=h.prototype.symbols,w=d.extend,x=d.fireEvent,C=d.isNumber,y=d.merge,t=d.pick;h=function(b){function d(){var a=null!==b&&b.apply(this,arguments)||this;a.colorAxis=void 0;a.data=
void 0;a.options=void 0;a.points=void 0;a.valueMax=NaN;a.valueMin=NaN;return a}g(d,b);d.prototype.drawPoints=function(){var a=this;if((this.options.marker||{}).enabled||this._hasPointMarkers)c.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),null===b.value&&b.graphic.addClass("highcharts-null-point"))})};d.prototype.getExtremes=function(){var a=
c.prototype.getExtremes.call(this,this.valueData),b=a.dataMin;a=a.dataMax;C(b)&&(this.valueMin=b);C(a)&&(this.valueMax=a);return c.prototype.getExtremes.call(this)};d.prototype.getValidPoints=function(a,b){return c.prototype.getValidPoints.call(this,a,b,!0)};d.prototype.hasData=function(){return!!this.processedXData.length};d.prototype.init=function(){c.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=t(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;r.ellipse=
r.circle};d.prototype.markerAttribs=function(a,b){var c=a.marker||{},d=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var g=d.states[b]||{};var h=c.states&&c.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(h[a[0]]||g[a[0]]||e[a[0]])+(h[a[0]+"Plus"]||g[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};d.prototype.pointAttribs=function(b,d){var e=c.prototype.pointAttribs.call(this,b,d),f=this.options||{},g=
this.chart.options.plotOptions||{},h=g.series||{},l=g.heatmap||{};g=b&&b.options.borderColor||f.borderColor||l.borderColor||h.borderColor;h=b&&b.options.borderWidth||f.borderWidth||l.borderWidth||h.borderWidth||e["stroke-width"];e.stroke=b&&b.marker&&b.marker.lineColor||f.marker&&f.marker.lineColor||g||this.color;e["stroke-width"]=h;d&&(b=y(f.states[d],f.marker&&f.marker.states[d],b&&b.options.states&&b.options.states[d]||{}),d=b.brightness,e.fill=b.color||a.parse(e.fill).brighten(d||0).get(),e.stroke=
b.lineColor);return e};d.prototype.setClip=function(a){var b=this.chart;c.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};d.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||"rect",c=r[b]?b:"rect",d=-1!==["circle","square"].indexOf(c);this.generatePoints();this.points.forEach(function(a){var e=a.getCellAttributes(),f={};f.x=Math.min(e.x1,e.x2);
f.y=Math.min(e.y1,e.y2);f.width=Math.max(Math.abs(e.x2-e.x1),0);f.height=Math.max(Math.abs(e.y2-e.y1),0);var g=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(d){var h=Math.abs(f.width-f.height);f.x=Math.min(e.x1,e.x2)+(f.width<f.height?0:h/2);f.y=Math.min(e.y1,e.y2)+(f.width<f.height?h/2:0);f.width=f.height=Math.min(f.width,f.height)}h={plotX:(e.x1+e.x2)/2,plotY:(e.y1+e.y2)/2,clientX:(e.x1+e.x2)/2,shapeType:"path",shapeArgs:y(!0,f,{d:r[c](f.x,f.y,f.width,f.height)})};g&&(a.marker=
{width:f.width,height:f.height});w(a,h)});x(this,"afterTranslate")};d.defaultOptions=y(A.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:v.neutralColor3,dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return C(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,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}}});return d}(A);w(h.prototype,{alignDataLabel:b.prototype.alignDataLabel,axisTypes:k.axisTypes,colorAttribs:k.colorAttribs,colorKey:k.colorKey,directTouch:!0,drawLegendSymbol:n.drawRectangle,getExtremesFromAll:!0,getSymbol:c.prototype.getSymbol,parallelArrays:k.parallelArrays,pointArrayMap:["y","value"],pointClass:q,trackerGroups:k.trackerGroups});p.registerSeriesType("heatmap",h);"";"";return h});x(a,"Extensions/GeoJSON.js",[a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],
a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,k,q,n){function f(a,b){var c,d=!1,f=a.x,g=a.y;a=0;for(c=b.length-1;a<b.length;c=a++){var h=b[a][1]>g;var l=b[c][1]>g;h!==l&&f<(b[c][0]-b[a][0])*(g-b[a][1])/(b[c][1]-b[a][1])+b[a][0]&&(d=!d)}return d}var p=k.format,h=q.win,d=n.error,g=n.extend,c=n.merge;k=n.wrap;"";a.prototype.transformFromLatLon=function(a,b){var c=this.userOptions.chart&&this.userOptions.chart.proj4||h.proj4;if(!c)return d(21,!1,this),{x:0,y:null};a=c(b.crs,[a.lon,a.lat]);c=
b.cosAngle||b.rotation&&Math.cos(b.rotation);var f=b.sinAngle||b.rotation&&Math.sin(b.rotation);a=b.rotation?[a[0]*c+a[1]*f,-a[0]*f+a[1]*c]:a;return{x:((a[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-a[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};a.prototype.transformToLatLon=function(a,b){if("undefined"===typeof h.proj4)d(21,!1,this);else{a={x:((a.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),
y:((-a.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var c=b.cosAngle||b.rotation&&Math.cos(b.rotation),f=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=h.proj4(b.crs,"WGS84",b.rotation?{x:a.x*c+a.y*-f,y:a.x*f+a.y*c}:a);return{lat:b.y,lon:b.x}}};a.prototype.fromPointToLatLon=function(a){var b=this.mapTransforms,c;if(b){for(c in b)if(Object.hasOwnProperty.call(b,c)&&b[c].hitZone&&f({x:a.x,y:-a.y},b[c].hitZone.coordinates[0]))return this.transformToLatLon(a,b[c]);return this.transformToLatLon(a,
b["default"])}d(22,!1,this)};a.prototype.fromLatLonToPoint=function(a){var b=this.mapTransforms,c;if(!b)return d(22,!1,this),{x:0,y:null};for(c in b)if(Object.hasOwnProperty.call(b,c)&&b[c].hitZone){var g=this.transformFromLatLon(a,b[c]);if(f({x:g.x,y:-g.y},b[c].hitZone.coordinates[0]))return g}return this.transformFromLatLon(a,b["default"])};q.geojson=function(a,b,c){var d=[],f=[],h=function(a){a.forEach(function(a,b){0===b?f.push(["M",a[0],-a[1]]):f.push(["L",a[0],-a[1]])})};b=b||"map";a.features.forEach(function(a){var c=
a.geometry,k=c.type;c=c.coordinates;a=a.properties;var l;f=[];"map"===b||"mapbubble"===b?("Polygon"===k?(c.forEach(h),f.push(["Z"])):"MultiPolygon"===k&&(c.forEach(function(a){a.forEach(h)}),f.push(["Z"])),f.length&&(l={path:f})):"mapline"===b?("LineString"===k?h(c):"MultiLineString"===k&&c.forEach(h),f.length&&(l={path:f})):"mappoint"===b&&"Point"===k&&(l={x:c[0],y:-c[1]});l&&d.push(g(l,{name:a.name||a.NAME,properties:a}))});c&&a.copyrightShort&&(c.chart.mapCredits=p(c.chart.options.credits.mapText,
{geojson:a}),c.chart.mapCreditsFull=p(c.chart.options.credits.mapTextFull,{geojson:a}));return d};k(a.prototype,"addCredits",function(a,b){b=c(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});x(a,"masters/modules/map.src.js",[a["Core/Globals.js"],a["Core/Axis/Color/ColorAxis.js"],a["Series/MapBubble/MapBubbleSeries.js"],a["Core/Chart/MapChart.js"]],function(a,k,q,n){a.ColorAxis=k;a.MapChart=
n;a.mapChart=a.Map=n.mapChart;a.maps=n.maps;k.compose(a.Chart,a.Fx,a.Legend,a.Series);q.compose(a.Chart,a.Legend,a.Series)})});
'use strict';(function(c){"object"===typeof module&&module.exports?(c["default"]=c,module.exports=c):"function"===typeof define&&define.amd?define("highcharts/modules/map",["highcharts"],function(x){c(x);c.Highcharts=x;return c}):c("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(c){function x(c,p,q,l){c.hasOwnProperty(p)||(c[p]=l.apply(null,q))}c=c?c._modules:{};x(c,"Core/Axis/Color/ColorAxisComposition.js",[c["Core/Color/Color.js"],c["Core/Utilities.js"]],function(c,p){var q=c.parse,
l=p.addEvent,n=p.extend,h=p.merge,b=p.pick,e=p.splat,g;(function(g){function k(){var a=this,d=this.options;this.colorAxis=[];d.colorAxis&&(d.colorAxis=e(d.colorAxis),d.colorAxis.forEach(function(d,m){d.index=m;new A(a,d)}))}function a(a){var d=this,m=function(m){m=a.allItems.indexOf(m);-1!==m&&(d.destroyItem(a.allItems[m]),a.allItems.splice(m,1))},w=[],f,v;(this.chart.colorAxis||[]).forEach(function(a){(f=a.options)&&f.showInLegend&&(f.dataClasses&&f.visible?w=w.concat(a.getDataClassLegendSymbols()):
f.visible&&w.push(a),a.series.forEach(function(a){if(!a.options.showInLegend||f.dataClasses)"point"===a.options.legendType?a.points.forEach(function(a){m(a)}):m(a)}))});for(v=w.length;v--;)a.allItems.unshift(w[v])}function d(a){a.visible&&a.item.legendColor&&a.item.legendSymbol.attr({fill:a.item.legendColor})}function f(){var a=this.chart.colorAxis;a&&a.forEach(function(a,d,m){a.update({},m)})}function r(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}
function y(){var a=this.axisTypes;a?-1===a.indexOf("colorAxis")&&a.push("colorAxis"):this.axisTypes=["colorAxis"]}function t(a){var m=this,d=a?"show":"hide";m.visible=m.options.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(m[a])m[a][d]()});this.series.buildKDTree()}function u(){var a=this,m=this.options.nullColor,d=this.colorAxis,w=this.colorKey;(this.data.length?this.data:this.points).forEach(function(f){var v=f.getNestedProperty(w);(v=f.options.color||(f.isNull||null===f.value?m:d&&
"undefined"!==typeof v?d.toColor(v,f):f.color||a.color))&&f.color!==v&&(f.color=v,"point"===a.options.legendType&&f.legendItem&&a.chart.legend.colorizeItem(f,f.visible))})}function v(a){var m=a.prototype.createAxis;a.prototype.createAxis=function(a,d){if("colorAxis"!==a)return m.apply(this,arguments);var f=new A(this,h(d.axis,{index:this[a].length,isX:!1}));this.isDirtyLegend=!0;this.axes.forEach(function(a){a.series=[]});this.series.forEach(function(a){a.bindAxes();a.isDirtyData=!0});b(d.redraw,
!0)&&this.redraw(d.animation);return f}}function B(){this.elem.attr("fill",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}function w(){this.elem.attr("stroke",q(this.start).tweenTo(q(this.end),this.pos),void 0,!0)}var m=[],A;g.compose=function(e,b,g,h,z){A||(A=e);-1===m.indexOf(b)&&(m.push(b),e=b.prototype,e.collectionsWithUpdate.push("colorAxis"),e.collectionsWithInit.colorAxis=[e.addColorAxis],l(b,"afterGetAxes",k),v(b));-1===m.indexOf(g)&&(m.push(g),b=g.prototype,b.fillSetter=B,b.strokeSetter=
w);-1===m.indexOf(h)&&(m.push(h),l(h,"afterGetAllItems",a),l(h,"afterColorizeItem",d),l(h,"afterUpdate",f));-1===m.indexOf(z)&&(m.push(z),n(z.prototype,{optionalAxis:"colorAxis",translateColors:u}),n(z.prototype.pointClass.prototype,{setVisible:t}),l(z,"afterTranslate",r),l(z,"bindAxes",y))};g.pointSetVisible=t})(g||(g={}));return g});x(c,"Core/Axis/Color/ColorAxisDefaults.js",[],function(){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,
offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0}});x(c,"Core/Axis/Color/ColorAxis.js",[c["Core/Axis/Axis.js"],c["Core/Color/Color.js"],c["Core/Axis/Color/ColorAxisComposition.js"],c["Core/Axis/Color/ColorAxisDefaults.js"],c["Core/Globals.js"],c["Core/Legend/LegendSymbol.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p,q,l,n,h,b,e){var g=this&&this.__extends||
function(){var a=function(d,f){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var m in d)d.hasOwnProperty(m)&&(a[m]=d[m])};return a(d,f)};return function(d,f){function v(){this.constructor=d}a(d,f);d.prototype=null===f?Object.create(f):(v.prototype=f.prototype,new v)}}(),t=p.parse,k=n.noop,a=b.series,d=e.extend,f=e.isNumber,r=e.merge,y=e.pick;p=function(e){function b(a,d){var f=e.call(this,a,d)||this;f.beforePadding=!1;f.chart=void 0;f.coll=
"colorAxis";f.dataClasses=void 0;f.legendItem=void 0;f.legendItems=void 0;f.name="";f.options=void 0;f.stops=void 0;f.visible=!0;f.init(a,d);return f}g(b,e);b.compose=function(a,d,f,m){q.compose(b,a,d,f,m)};b.prototype.init=function(a,d){var f=a.options.legend||{},m=d.layout?"vertical"!==d.layout:"vertical"!==f.layout,v=d.visible;f=r(b.defaultColorAxisOptions,d,{showEmpty:!1,title:null,visible:f.enabled&&!1!==v});this.coll="colorAxis";this.side=d.side||m?2:1;this.reversed=d.reversed||!m;this.opposite=
!m;e.prototype.init.call(this,a,f);this.userOptions.visible=v;d.dataClasses&&this.initDataClasses(d);this.initStops();this.horiz=m;this.zoomEnabled=!1};b.prototype.initDataClasses=function(a){var d=this.chart,f=this.options,m=a.dataClasses.length,e,b=0,v=d.options.chart.colorCount;this.dataClasses=e=[];this.legendItems=[];(a.dataClasses||[]).forEach(function(a,w){a=r(a);e.push(a);if(d.styledMode||!a.color)"category"===f.dataClassColor?(d.styledMode||(w=d.options.colors,v=w.length,a.color=w[b]),a.colorIndex=
b,b++,b===v&&(b=0)):a.color=t(f.minColor).tweenTo(t(f.maxColor),2>m?.5:w/(m-1))})};b.prototype.hasData=function(){return!!(this.tickPositions||[]).length};b.prototype.setTickPositions=function(){if(!this.dataClasses)return e.prototype.setTickPositions.call(this)};b.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(a){a.color=t(a[1])})};b.prototype.setOptions=function(a){e.prototype.setOptions.call(this,a);
this.options.crosshair=this.options.marker};b.prototype.setAxisSize=function(){var a=this.legendSymbol,d=this.chart,f=d.options.legend||{},m,e;a?(this.left=f=a.attr("x"),this.top=m=a.attr("y"),this.width=e=a.attr("width"),this.height=a=a.attr("height"),this.right=d.chartWidth-f-e,this.bottom=d.chartHeight-m-a,this.len=this.horiz?e:a,this.pos=this.horiz?f:m):this.len=(this.horiz?f.symbolWidth:f.symbolHeight)||b.defaultLegendLength};b.prototype.normalizedValue=function(a){this.logarithmic&&(a=this.logarithmic.log2lin(a));
return 1-(this.max-a)/(this.max-this.min||1)};b.prototype.toColor=function(a,d){var f=this.dataClasses,m=this.stops,e;if(f)for(e=f.length;e--;){var b=f[e];var v=b.from;m=b.to;if(("undefined"===typeof v||a>=v)&&("undefined"===typeof m||a<=m)){var r=b.color;d&&(d.dataClass=e,d.colorIndex=b.colorIndex);break}}else{a=this.normalizedValue(a);for(e=m.length;e--&&!(a>m[e][0]););v=m[e]||m[e+1];m=m[e+1]||v;a=1-(m[0]-a)/(m[0]-v[0]||1);r=v.color.tweenTo(m.color,a)}return r};b.prototype.getOffset=function(){var a=
this.legendGroup,d=this.chart.axisOffset[this.side];a&&(this.axisParent=a,e.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=d)};b.prototype.setLegendColor=function(){var a=this.reversed,d=a?1:0;a=a?0:1;d=this.horiz?[d,0,a,0]:[0,a,0,d];this.legendColor={linearGradient:{x1:d[0],y1:d[1],x2:d[2],y2:d[3]},stops:this.stops}};b.prototype.drawLegendSymbol=function(a,d){var f=a.padding,m=a.options,e=this.horiz,r=y(m.symbolWidth,
e?b.defaultLegendLength:12),v=y(m.symbolHeight,e?12:b.defaultLegendLength),g=y(m.labelPadding,e?16:30);m=y(m.itemDistance,10);this.setLegendColor();d.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,r,v).attr({zIndex:1}).add(d.legendGroup);this.legendItemWidth=r+f+(e?m:g);this.legendItemHeight=v+f+(e?g:0)};b.prototype.setState=function(a){this.series.forEach(function(d){d.setState(a)})};b.prototype.setVisible=function(){};b.prototype.getSeriesExtremes=function(){var d=this.series,f=d.length,
e;this.dataMin=Infinity;for(this.dataMax=-Infinity;f--;){var m=d[f];var b=m.colorKey=y(m.options.colorKey,m.colorKey,m.pointValKey,m.zoneAxis,"y");var r=m.pointArrayMap;var g=m[b+"Min"]&&m[b+"Max"];if(m[b+"Data"])var k=m[b+"Data"];else if(r){k=[];r=r.indexOf(b);var u=m.yData;if(0<=r&&u)for(e=0;e<u.length;e++)k.push(y(u[e][r],u[e]))}else k=m.yData;g?(m.minColorValue=m[b+"Min"],m.maxColorValue=m[b+"Max"]):(k=a.prototype.getExtremes.call(m,k),m.minColorValue=k.dataMin,m.maxColorValue=k.dataMax);"undefined"!==
typeof m.minColorValue&&(this.dataMin=Math.min(this.dataMin,m.minColorValue),this.dataMax=Math.max(this.dataMax,m.maxColorValue));g||a.prototype.applyExtremes.call(m)}};b.prototype.drawCrosshair=function(a,d){var f=d&&d.plotX,m=d&&d.plotY,b=this.pos,r=this.len;if(d){var g=this.toPixels(d.getNestedProperty(d.series.colorKey));g<b?g=b-2:g>b+r&&(g=b+r+2);d.plotX=g;d.plotY=this.len-g;e.prototype.drawCrosshair.call(this,a,d);d.plotX=f;d.plotY=m;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&
(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}};b.prototype.getPlotLinePath=function(a){var d=this.left,b=a.translatedValue,m=this.top;return f(b)?this.horiz?[["M",b-4,m-6],["L",b+4,m-6],["L",b,m],["Z"]]:[["M",d,b],["L",d-6,b+6],["L",d-6,b-6],["Z"]]:e.prototype.getPlotLinePath.call(this,a)};b.prototype.update=function(a,d){var f=this.chart.legend;
this.series.forEach(function(a){a.isDirtyData=!0});(a.dataClasses&&f.allItems||this.dataClasses)&&this.destroyItems();e.prototype.update.call(this,a,d);this.legendItem&&(this.setLegendColor(),f.colorizeItem(this,!0))};b.prototype.destroyItems=function(){var a=this.chart;this.legendItem?a.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(d){a.legend.destroyItem(d)});a.isDirtyLegend=!0};b.prototype.destroy=function(){this.chart.isDirtyLegend=!0;this.destroyItems();e.prototype.destroy.apply(this,
[].slice.call(arguments))};b.prototype.remove=function(a){this.destroyItems();e.prototype.remove.call(this,a)};b.prototype.getDataClassLegendSymbols=function(){var a=this,f=a.chart,e=a.legendItems,m=f.options.legend,b=m.valueDecimals,r=m.valueSuffix||"",g;e.length||a.dataClasses.forEach(function(m,w){var v=m.from,u=m.to,y=f.numberFormatter,t=!0;g="";"undefined"===typeof v?g="< ":"undefined"===typeof u&&(g="> ");"undefined"!==typeof v&&(g+=y(v,b)+r);"undefined"!==typeof v&&"undefined"!==typeof u&&
(g+=" - ");"undefined"!==typeof u&&(g+=y(u,b)+r);e.push(d({chart:f,name:g,options:{},drawLegendSymbol:h.drawRectangle,visible:!0,setState:k,isDataClass:!0,setVisible:function(){t=a.visible=!t;a.series.forEach(function(a){a.points.forEach(function(a){a.dataClass===w&&a.setVisible(t)})});f.legend.colorizeItem(this,t)}},m))});return e};b.defaultColorAxisOptions=l;b.defaultLegendLength=200;b.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"];return b}(c);Array.prototype.push.apply(c.keepProps,
p.keepProps);"";return p});x(c,"Maps/MapNavigationOptionsDefault.js",[c["Core/DefaultOptions.js"],c["Core/Utilities.js"]],function(c,p){p=p.extend;var q={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"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};p(c.defaultOptions.lang,
{zoomIn:"Zoom in",zoomOut:"Zoom out"});return c.defaultOptions.mapNavigation=q});x(c,"Maps/MapNavigation.js",[c["Core/Chart/Chart.js"],c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,p,q){function l(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function n(a){this.init(a)}var h=p.doc,b=q.addEvent,e=q.extend,g=q.merge,t=q.objectEach,k=q.pick;n.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};n.prototype.update=function(a){var d=
this.chart,f=d.options.mapNavigation,r,y,h,u,v=function(a){this.handler.call(d,a);l(a)},c=d.mapNavButtons;a&&(f=d.options.mapNavigation=g(d.options.mapNavigation,a));for(;c.length;)c.pop().destroy();k(f.enableButtons,f.enabled)&&!d.renderer.forExport&&t(f.buttons,function(a,m){a=g(f.buttonOptions,a);!d.styledMode&&a.theme&&(r=a.theme,r.style=g(a.theme.style,a.style),h=(y=r.states)&&y.hover,u=y&&y.select,delete r.states);var k=d.renderer.button(a.text||"",0,0,v,r,h,u,void 0,"zoomIn"===m?"topbutton":
"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[m]).attr({width:a.width,height:a.height,title:d.options.lang[m],padding:a.padding,zIndex:5}).add();k.handler=a.onclick;b(k.element,"dblclick",l);c.push(k);e(a,{width:k.width,height:2*k.height});if(d.hasLoaded)k.align(a,!1,a.alignTo);else var w=b(d,"load",function(){k.element&&k.align(a,!1,a.alignTo);w()})});this.updateEvents(f)};n.prototype.updateEvents=function(a){var d=this.chart;k(a.enableDoubleClickZoom,
a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||b(d.container,"dblclick",function(a){d.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());k(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||b(d.container,void 0!==h.onwheel?"wheel":void 0!==h.onmousewheel?"mousewheel":"DOMMouseScroll",function(a){d.pointer.inClass(a.target,"highcharts-no-mousewheel")||(d.pointer.onContainerMouseWheel(a),l(a));
return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};e(c.prototype,{fitToBox:function(a,d){[["x","width"],["y","height"]].forEach(function(f){var e=f[0];f=f[1];a[e]+a[f]>d[e]+d[f]&&(a[f]>d[f]?(a[f]=d[f],a[e]=d[e]):a[e]=d[e]+d[f]-a[f]);a[f]>d[f]&&(a[f]=d[f]);a[e]<d[e]&&(a[e]=d[e])});return a},mapZoom:function(a,d,f,e,b){this.mapView&&("number"===typeof a&&(a=Math.log(a)/Math.log(.5)),this.mapView.zoomBy(a,"number"===typeof d&&"number"===typeof f?this.mapView.projection.inverse([d,
f]):void 0,"number"===typeof e&&"number"===typeof b?[e,b]:void 0))}});b(c,"beforeRender",function(){this.mapNavigation=new n(this);this.mapNavigation.update()});p.MapNavigation=n});x(c,"Maps/MapPointer.js",[c["Core/Pointer.js"],c["Core/Utilities.js"]],function(c,p){var q=p.defined,l=p.extend,n=p.pick;p=p.wrap;var h=0,b;l(c.prototype,{onContainerDblClick:function(e){var b=this.chart;e=this.normalize(e);b.options.mapNavigation.enableDoubleClickZoomTo?b.pointer.inClass(e.target,"highcharts-tracker")&&
b.hoverPoint&&b.hoverPoint.zoomTo():b.isInsidePlot(e.chartX-b.plotLeft,e.chartY-b.plotTop)&&b.mapZoom(.5,void 0,void 0,e.chartX,e.chartY)},onContainerMouseWheel:function(e){var g=this.chart;e=this.normalize(e);var t=q(e.wheelDelta)&&-e.wheelDelta/120||e.deltaY||e.detail;1<=Math.abs(t)&&(h+=Math.abs(t),b&&clearTimeout(b),b=setTimeout(function(){h=0},50));10>h&&g.isInsidePlot(e.chartX-g.plotLeft,e.chartY-g.plotTop)&&g.mapView&&g.mapView.zoomBy((g.options.mapNavigation.mouseWheelSensitivity-1)*-t,void 0,
[e.chartX,e.chartY],1>Math.abs(t)?!1:void 0)}});p(c.prototype,"zoomOption",function(e){var b=this.chart.options.mapNavigation;n(b.enableTouchZoom,b.enabled)&&(this.chart.options.chart.pinchType="xy");e.apply(this,[].slice.call(arguments,1))});p(c.prototype,"pinchTranslate",function(e,b,t,k,a,d,f){e.call(this,b,t,k,a,d,f);"map"===this.chart.options.chart.type&&this.hasZoom&&(e=k.scaleX>k.scaleY,this.pinchTranslateDirection(!e,b,t,k,a,d,f,e?k.scaleX:k.scaleY))})});x(c,"Series/ColorMapComposition.js",
[c["Core/Utilities.js"]],function(c){var p=c.defined,q=c.wrap,l={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],parallelArrays:["x","y","value"],colorKey:"value"},n;(function(c){function b(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value}function e(b){var a={};!p(b.color)||b.state&&"normal"!==b.state||(a[this.colorProp||"fill"]=b.color);return a}function g(b,a,d){b=b.call(this,a,d);a.moveToTopOnHover&&
(b.zIndex="hover"===d?1:0);return b}c.colorMapSeriesMixin=l;var t=[];c.compose=function(k,a){a&&-1===t.indexOf(a)&&(t.push(a),a=a.prototype,a.dataLabelOnNull=!0,a.moveToTopOnHover=!0,a.isValid=b);-1===t.indexOf(k)&&(t.push(k),a=k.prototype,a.colorAttribs=e,q(a,"pointAttribs",g));return k};c.seriesColorAttribs=e})(n||(n={}));return n});x(c,"Maps/MapViewOptionsDefault.js",[],function(){return{center:[0,0],maxZoom:void 0,padding:0,projection:void 0,zoom:void 0}});x(c,"Maps/Projections/LambertConformalConic.js",
[],function(){var c=Math.sign||function(c){return 0===c?0:0<c?1:-1},p=Math.PI/180,q=Math.PI/2,l=0,n=0;return{init:function(h){var b=(h.parallels||[]).map(function(b){return b*p});h=b[0]||0;b=b[1]||h;var e=Math.cos(h);l=h===b?Math.sin(h):Math.log(e/Math.cos(b))/Math.log(Math.tan((q+b)/2)/Math.tan((q+h)/2));1e-10>Math.abs(l)&&(l=1e-10*(c(l)||1));n=e*Math.pow(Math.tan((q+h)/2),l)/l},forward:function(c){var b=c[0]*p;c=c[1]*p;0<n?c<-q+.000001&&(c=-q+.000001):c>q-.000001&&(c=q-.000001);c=n/Math.pow(Math.tan((q+
c)/2),l);return[c*Math.sin(l*b)*63.78137,63.78137*(n-c*Math.cos(l*b))]},inverse:function(h){var b=h[0]/63.78137;h=n-h[1]/63.78137;var e=c(l)*Math.sqrt(b*b+h*h),g=Math.atan2(b,Math.abs(h))*c(h);0>h*l&&(g-=Math.PI*c(b)*c(h));return[g/l/p,(2*Math.atan(Math.pow(n/e,1/l))-q)/p]}}});x(c,"Maps/Projections/EqualEarth.js",[],function(){var c=Math.sqrt(3)/2;return{forward:function(p){var q=Math.PI/180,l=Math.asin(c*Math.sin(p[1]*q)),n=l*l,h=n*n*n;return[p[0]*q*Math.cos(l)*74.03120656864502/(c*(1.340264+3*-.081106*
n+h*(7*.000893+.034164*n))),74.03120656864502*l*(1.340264+-.081106*n+h*(.000893+.003796*n))]},inverse:function(p){var q=p[0]/74.03120656864502;p=p[1]/74.03120656864502;var l=180/Math.PI,n=p,h;for(h=0;12>h;++h){var b=n*n;var e=b*b*b;var g=n*(1.340264+-.081106*b+e*(.000893+.003796*b))-p;b=1.340264+3*-.081106*b+e*(7*.000893+.034164*b);n-=g/=b;if(1e-9>Math.abs(g))break}b=n*n;return[l*c*q*(1.340264+3*-.081106*b+b*b*b*(7*.000893+.034164*b))/Math.cos(n),l*Math.asin(Math.sin(n)/c)]}}});x(c,"Maps/Projections/Miller.js",
[],function(){var c=Math.PI/4,p=Math.PI/180;return{forward:function(q){return[q[0]*p*63.78137,79.7267125*Math.log(Math.tan(c+.4*q[1]*p))]},inverse:function(q){return[q[0]/63.78137/p,2.5*(Math.atan(Math.exp(q[1]/63.78137*.8))-c)/p]}}});x(c,"Maps/Projections/Orthographic.js",[],function(){var c=Math.PI/180;return{forward:function(p){var q=p[0];if(-90>q||90<q)return[NaN,NaN];p=p[1]*c;return[Math.cos(p)*Math.sin(q*c)*63.78460826781007,63.78460826781007*Math.sin(p)]},inverse:function(p){var q=p[0]/63.78460826781007;
p=p[1]/63.78460826781007;var l=Math.sqrt(q*q+p*p),n=Math.asin(l),h=Math.sin(n);return[Math.atan2(q*h,l*Math.cos(n))/c,Math.asin(l&&p*h/l)/c]}}});x(c,"Maps/Projections/WebMercator.js",[],function(){var c=Math.PI/180;return{forward:function(p){if(85.0511287798<Math.abs(p[1]))return[NaN,NaN];var q=Math.sin(p[1]*c);return[63.78137*p[0]*c,63.78137*Math.log((1+q)/(1-q))/2]},inverse:function(p){return[p[0]/(63.78137*c),(2*Math.atan(Math.exp(p[1]/63.78137))-Math.PI/2)/c]},maxLatitude:85.0511287798}});x(c,
"Maps/Projections/ProjectionRegistry.js",[c["Maps/Projections/LambertConformalConic.js"],c["Maps/Projections/EqualEarth.js"],c["Maps/Projections/Miller.js"],c["Maps/Projections/Orthographic.js"],c["Maps/Projections/WebMercator.js"]],function(c,p,q,l,n){return{EqualEarth:p,LambertConformalConic:c,Miller:q,Orthographic:l,WebMercator:n}});x(c,"Maps/Projection.js",[c["Maps/Projections/ProjectionRegistry.js"],c["Core/Utilities.js"]],function(c,p){var q=this&&this.__spreadArrays||function(){for(var b=0,
e=0,c=arguments.length;e<c;e++)b+=arguments[e].length;b=Array(b);var t=0;for(e=0;e<c;e++)for(var k=arguments[e],a=0,d=k.length;a<d;a++,t++)b[t]=k[a];return b},l=p.erase,n=2*Math.PI/360,h=function(b){-180>b&&(b+=360);180<b&&(b-=360);return b};return function(){function b(e){void 0===e&&(e={});this.hasGeoProjection=this.hasCoordinates=!1;this.maxLatitude=90;this.options=e;var c=e.name,t=e.rotation;this.rotator=t?this.getRotator(t):void 0;var k=this.def=c?b.registry[c]:void 0,a=this.rotator;k&&(k.init&&
k.init(e),this.maxLatitude=k.maxLatitude||90,this.hasGeoProjection=!0);a&&k?(this.forward=function(d){d=a.forward(d);return k.forward(d)},this.inverse=function(d){d=k.inverse(d);return a.inverse(d)}):k?(this.forward=k.forward,this.inverse=k.inverse):a&&(this.forward=a.forward,this.inverse=a.inverse)}b.add=function(e,c){b.registry[e]=c};b.greatCircle=function(b,c,t){var e=Math.atan2,a=Math.cos,d=Math.sin,f=Math.sqrt,r=b[1]*n,g=b[0]*n,h=c[1]*n,u=c[0]*n,v=h-r,B=u-g;v=d(v/2)*d(v/2)+a(r)*a(h)*d(B/2)*d(B/
2);v=2*e(f(v),f(1-v));var w=Math.round(6371E3*v/5E5);B=[];t&&B.push(b);if(1<w)for(w=b=1/w;.999>w;w+=b){var m=d((1-w)*v)/d(v),A=d(w*v)/d(v),l=m*a(r)*a(g)+A*a(h)*a(u),q=m*a(r)*d(g)+A*a(h)*d(u);m=m*d(r)+A*d(h);m=e(m,f(l*l+q*q));l=e(q,l);B.push([l/n,m/n])}t&&B.push(c);return B};b.insertGreatCircles=function(e){for(var c=e.length-1;c--;)if(10<Math.max(Math.abs(e[c][0]-e[c+1][0]),Math.abs(e[c][1]-e[c+1][1]))){var t=b.greatCircle(e[c],e[c+1]);t.length&&e.splice.apply(e,q([c+1,0],t))}};b.toString=function(b){b=
b||{};var e=b.rotation;return[b.name,e&&e.join(",")].join(";")};b.prototype.getRotator=function(b){var e=b[0]*n,c=(b[1]||0)*n;b=(b[2]||0)*n;var k=Math.cos(c),a=Math.sin(c),d=Math.cos(b),f=Math.sin(b);if(0!==e||0!==c||0!==b)return{forward:function(b){var c=b[0]*n+e,r=b[1]*n,u=Math.cos(r);b=Math.cos(c)*u;c=Math.sin(c)*u;r=Math.sin(r);u=r*k+b*a;return[Math.atan2(c*d-u*f,b*k-r*a)/n,Math.asin(u*d+c*f)/n]},inverse:function(b){var c=b[0]*n,r=b[1]*n,u=Math.cos(r);b=Math.cos(c)*u;c=Math.sin(c)*u;r=Math.sin(r);
u=r*d-c*f;return[(Math.atan2(c*d+r*f,b*k+u*a)-e)/n,Math.asin(u*k-b*a)/n]}}};b.prototype.forward=function(b){return b};b.prototype.inverse=function(b){return b};b.prototype.clipOnAntimeridian=function(e,c){var g=[],k=[e];e.forEach(function(a,d){var b=e[d-1];if(!d){if(!c)return;b=e[e.length-1]}var f=b[0],m=a[0];(-90>f||90<f)&&(-90>m||90<m)&&0<f!==0<m&&g.push({i:d,lat:b[1]+(180-b[0])/(a[0]-b[0])*(a[1]-b[1]),direction:0>f?1:-1,previousLonLat:b,lonLat:a})});if(g.length)if(c){if(1===g.length%2){var a=g.slice().sort(function(a,
d){return Math.abs(d.lat)-Math.abs(a.lat)})[0];l(g,a)}for(var d=g.length-2;0<=d;){var f=g[d].i,r=h(180+.000001*g[d].direction),y=h(180-.000001*g[d].direction);f=e.splice.apply(e,q([f,g[d+1].i-f],b.greatCircle([r,g[d].lat],[r,g[d+1].lat],!0)));f.push.apply(f,b.greatCircle([y,g[d+1].lat],[y,g[d].lat],!0));k.push(f);d-=2}if(a)for(f=0;f<k.length;f++)if(d=k[f],y=d.indexOf(a.lonLat),-1<y){f=(0>a.lat?-1:1)*this.maxLatitude;r=h(180+.000001*a.direction);var n=h(180-.000001*a.direction);a=b.greatCircle([r,
a.lat],[r,f],!0).concat(b.greatCircle([n,f],[n,a.lat],!0));d.splice.apply(d,q([y,0],a));break}}else for(d=g.length;d--;)f=g[d].i,f=e.splice(f,e.length,[h(180+.000001*g[d].direction),g[d].lat]),f.unshift([h(180-.000001*g[d].direction),g[d].lat]),k.push(f);return k};b.prototype.path=function(e){var c=this,h=this.def,k=this.rotator,a=[],d="Polygon"===e.type||"MultiPolygon"===e.type,f=this.hasGeoProjection,r="Orthographic"!==this.options.name,y=r?k:void 0,l=r?h||this:this,u=function(e){e=e.map(function(a){if(r){y&&
(a=y.forward(a));var d=a[0];.000001>Math.abs(d-180)&&(d=180>d?179.999999:180.000001);a=[d,a[1]]}return a});var k=[e];f&&(b.insertGreatCircles(e),r&&(k=c.clipOnAntimeridian(e,d)));k.forEach(function(e){if(!(2>e.length))for(var m=!1,r,k,g=!1,v=function(d){m?a.push(["L",d[0],d[1]]):(a.push(["M",d[0],d[1]]),m=!0)},u=0;u<e.length;u++){var w=e[u],y=l.forward(w);isNaN(y[0])||isNaN(y[1])||f&&!(w[1]<=c.maxLatitude&&w[1]>=-c.maxLatitude)?g=!0:(d&&!r&&(r=w,e.push(w)),g&&k&&(d&&f?b.greatCircle(k,w).forEach(function(a){return v(l.forward(a))}):
m=!1),v(y),k=w,g=!1)}})};"LineString"===e.type?u(e.coordinates):"MultiLineString"===e.type?e.coordinates.forEach(function(a){return u(a)}):"Polygon"===e.type?(e.coordinates.forEach(function(a){return u(a)}),a.length&&a.push(["Z"])):"MultiPolygon"===e.type&&(e.coordinates.forEach(function(a){a.forEach(function(a){return u(a)})}),a.length&&a.push(["Z"]));return a};b.registry=c;return b}()});x(c,"Maps/MapView.js",[c["Maps/MapViewOptionsDefault.js"],c["Maps/Projection.js"],c["Core/Utilities.js"]],function(c,
p,q){var l=q.addEvent,n=q.clamp,h=q.fireEvent,b=q.isNumber,e=q.merge,g=q.pick,t=q.relativeLength;return function(){function k(a,d){var f=this;this.userOptions=d||{};d=e(c,d);this.chart=a;this.center=d.center;this.options=d;this.projection=new p(d.projection);this.zoom=d.zoom||0;l(a,"afterSetChartSize",function(){if(void 0===f.minZoom||f.minZoom===f.zoom)f.fitToBounds(void 0,void 0,!1),b(f.userOptions.zoom)&&(f.zoom=f.userOptions.zoom),f.userOptions.center&&e(!0,f.center,f.userOptions.center)});var r,
k,g;d=function(d){var b=a.pointer.pinchDown,e=a.mouseDownX,c=a.mouseDownY;1===b.length&&(e=b[0].chartX,c=b[0].chartY);if("number"===typeof e&&"number"===typeof c){var m=e+","+c,u=d.originalEvent;b=u.chartX;u=u.chartY;m!==k&&(k=m,r=f.projection.forward(f.center),g=(f.projection.options.rotation||[0,0]).slice());"Orthographic"===f.projection.options.name&&3>(f.minZoom||Infinity)?(m=440/(f.getScale()*Math.min(a.plotWidth,a.plotHeight)),g&&(e=(e-b)*m-g[0],c=n(-g[1]-(c-u)*m,-80,80),f.update({projection:{rotation:[-e,
-c]},center:[e,c],zoom:f.zoom},!0,!1))):(m=f.getScale(),c=f.projection.inverse([r[0]+(e-b)/m,r[1]-(c-u)/m]),f.setView(c,void 0,!0,!1));d.preventDefault()}};l(a,"pan",d);l(a,"touchpan",d);l(a,"selection",function(d){if(d.resetSelection)f.zoomBy();else{var b=d.x-a.plotLeft,e=d.y-a.plotTop,c=f.pixelsToProjectedUnits({x:b,y:e}),m=c.y;c=c.x;b=f.pixelsToProjectedUnits({x:b+d.width,y:e+d.height});f.fitToBounds({x1:c,y1:m,x2:b.x,y2:b.y},void 0,!0,d.originalEvent.touches?!1:void 0);/^touch/.test(d.originalEvent.type)||
a.showResetZoom();d.preventDefault()}})}k.prototype.fitToBounds=function(a,d,b,e){void 0===b&&(b=!0);var f=a||this.getProjectedBounds();if(f){var c=this.chart,r=c.plotWidth;c=c.plotHeight;var k=g(d,a?0:this.options.padding);d=t(k,r);k=t(k,c);r=Math.log(400.979322/Math.max((f.x2-f.x1)/((r-d)/256),(f.y2-f.y1)/((c-k)/256)))/Math.log(2);a||(this.minZoom=r);a=this.projection.inverse([(f.x2+f.x1)/2,(f.y2+f.y1)/2]);this.setView(a,r,b,e)}};k.prototype.getProjectedBounds=function(){var a=this.chart.series.reduce(function(a,
b){(b=b.getProjectedBounds&&b.getProjectedBounds())&&a.push(b);return a},[]);return k.compositeBounds(a)};k.prototype.getScale=function(){return 256/400.979322*Math.pow(2,this.zoom)};k.prototype.redraw=function(a){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)});this.chart.redraw(a)};k.prototype.setView=function(a,d,b,e){void 0===b&&(b=!0);var f=!1;a&&(this.center=a);"number"===typeof d&&("number"===typeof this.minZoom&&(d=Math.max(d,this.minZoom)),"number"===typeof this.options.maxZoom&&
(d=Math.min(d,this.options.maxZoom)),f=d>this.zoom,this.zoom=d);var c=this.getProjectedBounds();if(c&&!f){f=this.projection.forward(this.center);d=this.chart;a=d.plotWidth;d=d.plotHeight;var r=this.getScale(),k=this.projectedUnitsToPixels({x:c.x1,y:c.y1}),g=this.projectedUnitsToPixels({x:c.x2,y:c.y2});c=[(c.x1+c.x2)/2,(c.y1+c.y2)/2];var w=k.x,m=g.y;g=g.x;k=k.y;g-w<a?f[0]=c[0]:0>w&&g<a?f[0]+=Math.max(w,g-a)/r:g>a&&0<w&&(f[0]+=Math.min(g-a,w)/r);k-m<d?f[1]=c[1]:0>m&&k<d?f[1]-=Math.max(m,k-d)/r:k>d&&
0<m&&(f[1]-=Math.min(k-d,m)/r);this.center=this.projection.inverse(f)}h(this,"afterSetView");b&&this.redraw(e)};k.prototype.projectedUnitsToPixels=function(a){var d=this.getScale(),b=this.projection.forward(this.center);return{x:this.chart.plotWidth/2-d*(b[0]-a.x),y:this.chart.plotHeight/2+d*(b[1]-a.y)}};k.prototype.pixelsToProjectedUnits=function(a){var d=a.x;a=a.y;var b=this.getScale(),e=this.projection.forward(this.center);return{x:e[0]+(d-this.chart.plotWidth/2)/b,y:e[1]-(a-this.chart.plotHeight/
2)/b}};k.prototype.update=function(a,d,f){void 0===d&&(d=!0);var c=a.projection;c=c&&p.toString(c)!==p.toString(this.options.projection);e(!0,this.userOptions,a);e(!0,this.options,a);c&&(this.chart.series.forEach(function(a){a.clearBounds&&a.clearBounds();a.isDirty=!0;a.isDirtyData=!0}),this.projection=new p(this.options.projection),a.center||b(a.zoom)||this.fitToBounds(void 0,void 0,!1));(a.center||b(a.zoom))&&this.setView(this.options.center,a.zoom,!1);d&&this.chart.redraw(f)};k.prototype.zoomBy=
function(a,d,b,e){var f=this.chart,c=this.projection.forward(this.center);d=d?this.projection.forward(d):[];var k=d[0],g=d[1];"number"===typeof a?(a=this.zoom+a,d=void 0,b&&(k=b[0],g=b[1],b=this.getScale(),k=k-f.plotLeft-f.plotWidth/2,f=g-f.plotTop-f.plotHeight/2,k=c[0]+k/b,g=c[1]+f/b),"number"===typeof k&&"number"===typeof g&&(b=1-Math.pow(2,this.zoom)/Math.pow(2,a),k=c[0]-k,f=c[1]-g,c[0]-=k*b,c[1]+=f*b,d=this.projection.inverse(c)),this.setView(d,a,void 0,e)):this.fitToBounds(void 0,void 0,void 0,
e)};k.compositeBounds=function(a){if(a.length)return a.slice(1).reduce(function(a,b){a.x1=Math.min(a.x1,b.x1);a.y1=Math.min(a.y1,b.y1);a.x2=Math.max(a.x2,b.x2);a.y2=Math.max(a.y2,b.y2);return a},e(a[0]))};return k}()});x(c,"Maps/MapSymbols.js",[c["Core/Renderer/SVG/SVGRenderer.js"]],function(c){function p(c,l,n,h,b,e,g,t){return[["M",c+b,l],["L",c+n-e,l],["C",c+n-e/2,l,c+n,l+e/2,c+n,l+e],["L",c+n,l+h-g],["C",c+n,l+h-g/2,c+n-g/2,l+h,c+n-g,l+h],["L",c+t,l+h],["C",c+t/2,l+h,c,l+h-t/2,c,l+h-t],["L",c,
l+b],["C",c,l+b/2,c+b/2,l,c+b,l],["Z"]]}c=c.prototype.symbols;c.bottombutton=function(c,l,n,h,b){b=b&&b.r||0;return p(c-1,l-1,n,h,0,0,b,b)};c.topbutton=function(c,l,n,h,b){b=b&&b.r||0;return p(c-1,l-1,n,h,b,b,0,0)};return c});x(c,"Core/Chart/MapChart.js",[c["Core/Chart/Chart.js"],c["Core/DefaultOptions.js"],c["Maps/MapView.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Utilities.js"]],function(c,p,q,l,n){var h=this&&this.__extends||function(){var b=function(a,d){b=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d])};return b(a,d)};return function(a,d){function c(){this.constructor=a}b(a,d);a.prototype=null===d?Object.create(d):(c.prototype=d.prototype,new c)}}(),b=p.getOptions,e=n.addEvent,g=n.merge,t=n.pick;c=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}h(a,c);a.prototype.init=function(a,f){e(this,"afterInit",function(){this.mapView=new q(this,this.options.mapView)});var d=b().credits;
a=g({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:t(d.mapText,' \u00a9 <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:t(d.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},a);c.prototype.init.call(this,a,f)};return a}(c);(function(b){b.maps={};b.mapChart=function(a,d,c){return new b(a,d,c)};b.splitPath=function(a){"string"===typeof a&&(a=a.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,""),a=a.split(/[ ,;]+/).map(function(a){return/[A-za-z]/.test(a)?
a:parseFloat(a)}));return l.prototype.pathToSegments(a)}})(c||(c={}));return c});x(c,"Series/Map/MapPoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p){var q=this&&this.__extends||function(){var c=function(h,b){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var e in c)c.hasOwnProperty(e)&&(b[e]=c[e])};return c(h,b)};return function(h,b){function e(){this.constructor=h}c(h,b);h.prototype=null===b?Object.create(b):
(e.prototype=b.prototype,new e)}}(),l=p.extend;return function(c){function h(){var b=null!==c&&c.apply(this,arguments)||this;b.options=void 0;b.path=void 0;b.series=void 0;return b}q(h,c);h.getProjectedPath=function(b,c){b.projectedPath||(c&&b.geometry?(c.hasCoordinates=!0,b.projectedPath=c.path(b.geometry)):b.projectedPath=b.path);return b.projectedPath||[]};h.prototype.applyOptions=function(b,e){var g=this.series;b=c.prototype.applyOptions.call(this,b,e);e=g.joinBy;g.mapData&&g.mapMap&&(e=c.prototype.getNestedProperty.call(b,
e[1]),(g="undefined"!==typeof e&&g.mapMap[e])?l(b,g):b.value=b.value||null);return b};h.prototype.onMouseOver=function(b){p.clearTimeout(this.colorInterval);if(null!==this.value||this.series.options.nullInteraction)c.prototype.onMouseOver.call(this,b);else this.series.onMouseOut(b)};h.prototype.zoomTo=function(){var b=this.series.chart;b.mapView&&this.bounds&&(b.mapView.fitToBounds(this.bounds,void 0,!1),this.series.isDirty=!0,b.redraw())};return h}(c.seriesTypes.scatter.prototype.pointClass)});x(c,
"Series/Map/MapSeries.js",[c["Core/Animation/AnimationUtilities.js"],c["Series/ColorMapComposition.js"],c["Series/CenteredUtilities.js"],c["Core/Globals.js"],c["Core/Legend/LegendSymbol.js"],c["Core/Chart/MapChart.js"],c["Series/Map/MapPoint.js"],c["Maps/MapView.js"],c["Core/Series/Series.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Utilities.js"]],function(c,p,q,l,n,h,b,e,g,t,k,a){var d=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),f=c.animObject;c=p.colorMapSeriesMixin;var r=l.noop,y=h.maps,z=h.splitPath;h=t.seriesTypes;var u=h.column,v=h.scatter;h=a.extend;var B=a.fireEvent,w=a.getNestedProperty,m=a.isArray,A=a.isNumber,E=a.merge,F=a.objectEach,D=a.pick,
G=a.splat;a=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.group=void 0;b.joinBy=void 0;b.options=void 0;b.points=void 0;b.transformGroup=void 0;return b}d(c,a);c.prototype.animate=function(a){var b=this.chart,c=this.group,d=f(this.options.animation);b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.001,scaleY:.001}):c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1},
d))};c.prototype.animateDrilldown=function(a){var b=this.chart,c=this.group;b.renderer.isSVG&&(a?c.attr({translateX:b.plotLeft+b.plotWidth/2,translateY:b.plotTop+b.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):c.animate({translateX:b.plotLeft,translateY:b.plotTop,scaleX:1,scaleY:1,opacity:1}))};c.prototype.animateDrillupFrom=function(){var a=this.chart;a.renderer.isSVG&&this.group.animate({translateX:a.plotLeft+a.plotWidth/2,translateY:a.plotTop+a.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})};
c.prototype.animateDrillupTo=function(a){u.prototype.animateDrillupTo.call(this,a)};c.prototype.clearBounds=function(){this.points.forEach(function(a){delete a.bounds;delete a.projectedPath});delete this.bounds};c.prototype.doFullTranslate=function(){return!(!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML)&&this.hasRendered)};c.prototype.drawMapDataLabels=function(){g.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};c.prototype.drawPoints=
function(){var a=this,b=this.chart,c=this.group,d=this.svgTransform,f=b.mapView,e=b.renderer;this.transformGroup||(this.transformGroup=e.g().add(c),this.transformGroup.survive=!0);this.doFullTranslate()&&(b.hasRendered&&!b.styledMode&&this.points.forEach(function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),this.group=this.transformGroup,u.prototype.drawPoints.apply(this),this.group=c,this.points.forEach(function(c){if(c.graphic){var d="";c.name&&(d+="highcharts-name-"+c.name.replace(/ /g,
"-").toLowerCase());c.properties&&c.properties["hc-key"]&&(d+=" highcharts-key-"+c.properties["hc-key"].toLowerCase());d&&c.graphic.addClass(d);b.styledMode&&c.graphic.css(a.pointAttribs(c,c.selected&&"select"||void 0))}}));if(f&&d){var m=D(this.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],1),k=d.scaleX,g=0<d.scaleY?1:-1,r=this.transformGroup;if(e.globalAnimation&&b.hasRendered){var w=Number(r.attr("translateX")),h=Number(r.attr("translateY")),v=Number(r.attr("scaleX"));
r.attr({animator:0}).animate({animator:1},{step:function(a,b){a=v+(k-v)*b.pos;r.attr({translateX:w+(d.translateX-w)*b.pos,translateY:h+(d.translateY-h)*b.pos,scaleX:a,scaleY:a*g});c.element.setAttribute("stroke-width",m/a)}})}else r.attr(d),c.element.setAttribute("stroke-width",m/k)}this.drawMapDataLabels()};c.prototype.getProjectedBounds=function(){if(!this.bounds){var a=Number.MAX_VALUE,c=this.chart.mapView&&this.chart.mapView.projection,d=[];(this.points||[]).forEach(function(f){if(f.path||f.geometry){"string"===
typeof f.path?f.path=z(f.path):m(f.path)&&"M"===f.path[0]&&(f.path=k.prototype.pathToSegments(f.path));if(!f.bounds){var e=b.getProjectedPath(f,c),g=f.properties,r=-a,w=a,h=-a,u=a,v;e.forEach(function(a){var b=a[a.length-2];a=a[a.length-1];"number"===typeof b&&"number"===typeof a&&(w=Math.min(w,b),r=Math.max(r,b),u=Math.min(u,a),h=Math.max(h,a),v=!0)});v&&(e=g&&g["hc-middle-x"],e=w+(r-w)*D(f.middleX,A(e)?e:.5),g=g&&g["hc-middle-y"],g=D(f.middleY,A(g)?g:.5),f.geometry||(g=1-g),f.bounds={midX:e,midY:h-
(h-u)*g,x1:w,y1:u,x2:r,y2:h},f.labelrank=D(f.labelrank,(r-w)*(h-u)))}f.bounds&&d.push(f.bounds)}});this.bounds=e.compositeBounds(d)}return this.bounds};c.prototype.hasData=function(){return!!this.processedXData.length};c.prototype.pointAttribs=function(a,b){var c=a.series.chart,d=c.mapView;b=c.styledMode?this.colorAttribs(a):u.prototype.pointAttribs.call(this,a,b);(a=a.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"])&&d&&(a/=d.getScale());b.dashstyle&&d&&this.options.borderWidth&&
(a=this.options.borderWidth/d.getScale());b["stroke-width"]=D(a,"inherit");return b};c.prototype.setData=function(a,c,d,f){var e=this.options,k=this.chart.options.chart,r=k&&k.map,h=e.mapData,u=this.joinBy,v=e.keys||this.pointArrayMap,t=[],p={},n=this.chart.mapTransforms;!h&&r&&(h="string"===typeof r?y[r]:r);a&&a.forEach(function(c,d){var f=0;if(A(c))a[d]={value:c};else if(m(c)){a[d]={};!e.keys&&c.length>v.length&&"string"===typeof c[0]&&(a[d]["hc-key"]=c[0],++f);for(var k=0;k<v.length;++k,++f)v[k]&&
"undefined"!==typeof c[f]&&(0<v[k].indexOf(".")?b.prototype.setNestedProperty(a[d],c[f],v[k]):a[d][v[k]]=c[f])}u&&"_i"===u[0]&&(a[d]._i=d)});(this.chart.mapTransforms=n=k.mapTransforms||h&&h["hc-transform"]||n)&&F(n,function(a){a.rotation&&(a.cosAngle=Math.cos(a.rotation),a.sinAngle=Math.sin(a.rotation))});if(h){"FeatureCollection"===h.type&&(this.mapTitle=h.title,h=l.geojson(h,this.type,this));this.mapData=h;this.mapMap={};for(n=0;n<h.length;n++)k=h[n],r=k.properties,k._i=n,u[0]&&r&&r[u[0]]&&(k[u[0]]=
r[u[0]]),p[k[u[0]]]=k;this.mapMap=p;if(a&&u[1]){var q=u[1];a.forEach(function(a){a=w(q,a);p[a]&&t.push(p[a])})}if(e.allAreas){a=a||[];if(u[1]){var B=u[1];a.forEach(function(a){t.push(w(B,a))})}t="|"+t.map(function(a){return a&&a[u[0]]}).join("|")+"|";h.forEach(function(b){u[0]&&-1!==t.indexOf("|"+b[u[0]]+"|")||(a.push(E(b,{value:null})),f=!1)})}}g.prototype.setData.call(this,a,c,d,f);this.processData();this.generatePoints()};c.prototype.setOptions=function(a){a=g.prototype.setOptions.call(this,a);
var b=a.joinBy;null===b&&(b="_i");b=this.joinBy=G(b);b[1]||(b[1]=b[0]);return a};c.prototype.translate=function(){var a=this.doFullTranslate(),c=this.chart.mapView,d=c&&c.projection;!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,this.getProjectedBounds());var f;if(c){var e=c.getScale(),m=c.projection.forward(c.center);c=c.projection.hasCoordinates?-1:1;this.svgTransform=f={scaleX:e,scaleY:e*c,translateX:this.chart.plotWidth/
2-m[0]*e,translateY:this.chart.plotHeight/2-m[1]*e*c}}this.points.forEach(function(c){f&&c.bounds&&A(c.bounds.midX)&&A(c.bounds.midY)&&(c.plotX=c.bounds.midX*f.scaleX+f.translateX,c.plotY=c.bounds.midY*f.scaleY+f.translateY);a&&(c.shapeType="path",c.shapeArgs={d:b.getProjectedPath(c,d)})});B(this,"afterTranslate")};c.defaultOptions=E(v.defaultOptions,{animation:!1,dataLabels:{crop:!1,formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return A(b)?a(b,-1):""},inside:!0,
overflow:!1,padding:0,verticalAlign:"middle"},marker:null,nullColor:"#f7f7f7",stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},turboThreshold:0,allAreas:!0,borderColor:"#cccccc",borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:"#cccccc"},inactive:{opacity:1}}});return c}(v);h(a.prototype,{type:"map",axisTypes:["colorAxis"],colorKey:"value",directTouch:!0,drawDataLabels:r,drawGraph:r,drawLegendSymbol:n.drawRectangle,
forceDL:!0,getCenter:q.getCenter,getExtremesFromAll:!0,getSymbol:r,isCartesian:!1,parallelArrays:c.parallelArrays,pointArrayMap:c.pointArrayMap,pointClass:b,preserveAspectRatio:!0,searchPoint:r,trackerGroups:c.trackerGroups,useMapGeometry:!0});p.compose(a,b);t.registerSeriesType("map",a);"";return a});x(c,"Series/MapLine/MapLineSeries.js",[c["Series/Map/MapSeries.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p,q){var l=this&&this.__extends||function(){var b=function(c,
e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return b(c,e)};return function(c,e){function k(){this.constructor=c}b(c,e);c.prototype=null===e?Object.create(e):(k.prototype=e.prototype,new k)}}(),n=p.series,h=q.extend,b=q.merge;q=function(e){function g(){var b=null!==e&&e.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}l(g,e);g.prototype.pointAttribs=function(b,
e){b=c.prototype.pointAttribs.call(this,b,e);b.fill=this.options.fillColor;return b};g.defaultOptions=b(c.defaultOptions,{lineWidth:1,fillColor:"none"});return g}(c);h(q.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:n.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}});p.registerSeriesType("mapline",q);"";return q});x(c,"Series/MapPoint/MapPointPoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p){var q=this&&this.__extends||
function(){var c=function(b,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var e in c)c.hasOwnProperty(e)&&(b[e]=c[e])};return c(b,e)};return function(b,e){function g(){this.constructor=b}c(b,e);b.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}(),l=p.isNumber,n=p.merge;return function(c){function b(){var b=null!==c&&c.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}q(b,c);b.prototype.applyOptions=
function(b,g){b="undefined"!==typeof b.lat&&"undefined"!==typeof b.lon?n(b,this.series.chart.fromLatLonToPoint(b)):b;return c.prototype.applyOptions.call(this,b,g)};b.prototype.isValid=function(){return!!(this.options.geometry||l(this.x)&&l(this.y))};return b}(c.seriesTypes.scatter.prototype.pointClass)});x(c,"Series/MapPoint/MapPointSeries.js",[c["Core/Globals.js"],c["Series/MapPoint/MapPointPoint.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p,q,l){var n=this&&this.__extends||
function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(a,c)};return function(a,c){function d(){this.constructor=a}b(a,c);a.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();c=c.noop;var h=q.seriesTypes.scatter,b=l.extend,e=l.fireEvent,g=l.isNumber,t=l.merge;l=function(b){function a(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;
a.options=void 0;a.points=void 0;return a}n(a,b);a.prototype.drawDataLabels=function(){b.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)};a.prototype.translate=function(){var a=this,b=this.chart.mapView;this.processedXData||this.processData();this.generatePoints();if(b){var c=b.projection,k=c.forward,h=c.hasCoordinates;this.points.forEach(function(c){var d=c.x;d=void 0===d?void 0:d;var f=c.y;f=void 0===f?void 0:f;var e=c.options.geometry;(e=
e&&"Point"===e.type&&e.coordinates)?(f=k(e),d=f[0],f=f[1]):c.bounds&&(d=c.bounds.midX,f=c.bounds.midY);g(d)&&g(f)?(d=b.projectedUnitsToPixels({x:d,y:f}),c.plotX=d.x,c.plotY=h?d.y:a.chart.plotHeight-d.y):(c.plotX=void 0,c.plotY=void 0);c.isInside=a.isPointInside(c);c.zone=a.zones.length?c.getZone():void 0})}e(this,"afterTranslate")};a.defaultOptions=t(h.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}});return a}(h);
b(l.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:p,searchPoint:c,useMapGeometry:!0});q.registerSeriesType("mappoint",l);"";return l});x(c,"Series/Bubble/BubbleLegendDefaults.js",[],function(){return{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:"10px",
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}});x(c,"Series/Bubble/BubbleLegendItem.js",[c["Core/Color/Color.js"],c["Core/FormatUtilities.js"],c["Core/Globals.js"],c["Core/Utilities.js"]],function(c,p,q,l){var n=c.parse,h=q.noop,b=l.arrayMax,e=l.arrayMin,g=l.isNumber,t=l.merge,k=l.pick,a=l.stableSort;"";return function(){function c(a,b){this.options=
this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0;this.setState=h;this.init(a,b)}c.prototype.init=function(a,b){this.options=a;this.visible=!0;this.chart=b.chart;this.legend=b};c.prototype.addToLegend=function(a){a.splice(this.options.legendIndex,0,this)};c.prototype.drawLegendSymbol=function(b){var c=this.chart,d=this.options,
f=k(b.options.itemDistance,20),e=d.ranges,h=d.connectorDistance;this.fontMetrics=c.renderer.fontMetrics(d.labels.style.fontSize);e&&e.length&&g(e[0].value)?(a(e,function(a,b){return b.value-a.value}),this.ranges=e,this.setOptions(),this.render(),b=this.getMaxLabelSize(),e=this.ranges[0].radius,c=2*e,h=h-e+b.width,h=0<h?h:0,this.maxLabel=b,this.movementX="left"===d.labels.align?h:0,this.legendItemWidth=c+h+f,this.legendItemHeight=c+this.fontMetrics.h/2):b.options.bubbleLegend.autoRanges=!0};c.prototype.setOptions=
function(){var a=this.ranges,b=this.options,c=this.chart.series[b.seriesIndex],d=this.legend.baseline,e={zIndex:b.zIndex,"stroke-width":b.borderWidth},g={zIndex:b.zIndex,"stroke-width":b.connectorWidth},h={align:this.legend.options.rtl||"left"===b.labels.align?"right":"left",zIndex:b.zIndex},w=c.options.marker.fillOpacity,m=this.chart.styledMode;a.forEach(function(f,r){m||(e.stroke=k(f.borderColor,b.borderColor,c.color),e.fill=k(f.color,b.color,1!==w?n(c.color).setOpacity(w).get("rgba"):c.color),
g.stroke=k(f.connectorColor,b.connectorColor,c.color));a[r].radius=this.getRangeRadius(f.value);a[r]=t(a[r],{center:a[0].radius-a[r].radius+d});m||t(!0,a[r],{bubbleAttribs:t(e),connectorAttribs:t(g),labelAttribs:h})},this)};c.prototype.getRangeRadius=function(a){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,a)};c.prototype.render=function(){var a=this.chart.renderer,b=this.options.zThreshold;
this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=a.g("bubble-legend");this.legendItem=a.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(a){a.value>=b&&this.renderRange(a)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()};c.prototype.renderRange=function(a){var b=this.options,c=b.labels,d=this.chart,e=d.series[b.seriesIndex],f=d.renderer,
g=this.symbols;d=g.labels;var k=a.center,m=Math.abs(a.radius),h=b.connectorDistance||0,l=c.align,n=b.connectorWidth,p=this.ranges[0].radius||0,t=k-m-b.borderWidth/2+n/2,q=this.fontMetrics;q=q.f/2-(q.h-q.f)/2;var C=f.styledMode;h=this.legend.options.rtl||"left"===l?-h:h;"center"===l&&(h=0,b.connectorDistance=0,a.labelAttribs.align="center");l=t+b.labels.y;var x=p+h+b.labels.x;g.bubbleItems.push(f.circle(p,k+((t%1?1:.5)-(n%2?0:.5)),m).attr(C?{}:a.bubbleAttribs).addClass((C?"highcharts-color-"+e.colorIndex+
" ":"")+"highcharts-bubble-legend-symbol "+(b.className||"")).add(this.legendSymbol));g.connectors.push(f.path(f.crispLine([["M",p,t],["L",p+h,t]],b.connectorWidth)).attr(C?{}:a.connectorAttribs).addClass((C?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));a=f.text(this.formatLabel(a),x,l+q).attr(C?{}:a.labelAttribs).css(C?{}:c.style).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);
d.push(a);a.placed=!0;a.alignAttr={x:x,y:l+q}};c.prototype.getMaxLabelSize=function(){var a,b;this.symbols.labels.forEach(function(c){b=c.getBBox(!0);a=a?b.width>a.width?b:a:b});return a||{}};c.prototype.formatLabel=function(a){var b=this.options,c=b.labels.formatter;b=b.labels.format;var d=this.chart.numberFormatter;return b?p.format(b,a):c?c.call(a):d(a.value,1)};c.prototype.hideOverlappingLabels=function(){var a=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(a.hideOverlappingLabels(b.labels),
b.labels.forEach(function(a,c){a.newOpacity?a.newOpacity!==a.oldOpacity&&b.connectors[c].show():b.connectors[c].hide()}))};c.prototype.getRanges=function(){var a=this.legend.bubbleLegend,c=a.options.ranges,d,h=Number.MAX_VALUE,l=-Number.MAX_VALUE;a.chart.series.forEach(function(a){a.isBubble&&!a.ignoreSeries&&(d=a.zData.filter(g),d.length&&(h=k(a.options.zMin,Math.min(h,Math.max(e(d),!1===a.options.displayNegative?a.options.zThreshold:-Number.MAX_VALUE))),l=k(a.options.zMax,Math.max(l,b(d)))))});
var n=h===l?[{value:l}]:[{value:h},{value:(h+l)/2},{value:l,autoRanges:!0}];c.length&&c[0].radius&&n.reverse();n.forEach(function(a,b){c&&c[b]&&(n[b]=t(c[b],a))});return n};c.prototype.predictBubbleSizes=function(){var a=this.chart,b=this.fontMetrics,c=a.legend.options,d=c.floating,e=(c="horizontal"===c.layout)?a.legend.lastLineHeight:0,g=a.plotSizeX,k=a.plotSizeY,h=a.series[this.options.seriesIndex],m=h.getPxExtremes();a=Math.ceil(m.minPxSize);m=Math.ceil(m.maxPxSize);var l=Math.min(k,g);h=h.options.maxSize;
if(d||!/%$/.test(h))b=m;else if(h=parseFloat(h),b=(l+e-b.h/2)*h/100/(h/100+1),c&&k-b>=g||!c&&g-b>=k)b=m;return[a,Math.ceil(b)]};c.prototype.updateRanges=function(a,b){var c=this.legend.options.bubbleLegend;c.minSize=a;c.maxSize=b;c.ranges=this.getRanges()};c.prototype.correctSizes=function(){var a=this.legend,b=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),a.render())};return c}()});
x(c,"Series/Bubble/BubbleLegendComposition.js",[c["Series/Bubble/BubbleLegendDefaults.js"],c["Series/Bubble/BubbleLegendItem.js"],c["Core/DefaultOptions.js"],c["Core/Utilities.js"]],function(c,p,q,l){var n=q.setOptions,h=l.addEvent,b=l.objectEach,e=l.wrap,g;(function(g){function k(c,e,f){var g=this.legend,m=0<=a(this);if(g&&g.options.enabled&&g.bubbleLegend&&g.options.bubbleLegend.autoRanges&&m){var k=g.bubbleLegend.options;m=g.bubbleLegend.predictBubbleSizes();g.bubbleLegend.updateRanges(m[0],m[1]);
k.placed||(g.group.placed=!1,g.allItems.forEach(function(a){a.legendGroup.translateY=null}));g.render();this.getMargins();this.axes.forEach(function(a){a.visible&&a.render();k.placed||(a.setScale(),a.updateNames(),b(a.ticks,function(a){a.isNew=!0;a.isNewLabel=!0}))});k.placed=!0;this.getMargins();c.call(this,e,f);g.bubbleLegend.correctSizes();t(g,d(g))}else c.call(this,e,f),g&&g.options.enabled&&g.bubbleLegend&&(g.render(),t(g,d(g)))}function a(a){a=a.series;for(var b=0;b<a.length;){if(a[b]&&a[b].isBubble&&
a[b].visible&&a[b].zData.length)return b;b++}return-1}function d(a){a=a.allItems;var b=[],c=a.length,d,e=0;for(d=0;d<c;d++)if(a[d].legendItemHeight&&(a[d].itemHeight=a[d].legendItemHeight),a[d]===a[c-1]||a[d+1]&&a[d]._legendItemPos[1]!==a[d+1]._legendItemPos[1]){b.push({height:0});var f=b[b.length-1];for(e;e<=d;e++)a[e].itemHeight>f.height&&(f.height=a[e].itemHeight);f.step=d}return b}function f(b){var c=this.bubbleLegend,d=this.options,e=d.bubbleLegend,f=a(this.chart);c&&c.ranges&&c.ranges.length&&
(e.ranges.length&&(e.autoRanges=!!e.ranges[0].autoRanges),this.destroyItem(c));0<=f&&d.enabled&&e.enabled&&(e.seriesIndex=f,this.bubbleLegend=new p(e,this),this.bubbleLegend.addToLegend(b.allItems))}function l(){var b=this.chart,c=this.visible,d=this.chart.legend;d&&d.bubbleLegend&&(this.visible=!c,this.ignoreSeries=c,b=0<=a(b),d.bubbleLegend.visible!==b&&(d.update({bubbleLegend:{enabled:b}}),d.bubbleLegend.visible=b),this.visible=c)}function t(a,b){var c=a.options.rtl,d,e,f,g=0;a.allItems.forEach(function(a,
m){d=a.legendGroup.translateX;e=a._legendItemPos[1];if((f=a.movementX)||c&&a.ranges)f=c?d-a.options.maxSize/2:d+f,a.legendGroup.attr({translateX:f});m>b[g].step&&g++;a.legendGroup.attr({translateY:Math.round(e+b[g].height/2)});a._legendItemPos[1]=e+b[g].height/2})}var q=[];g.compose=function(a,b,d){-1===q.indexOf(a)&&(q.push(a),n({legend:{bubbleLegend:c}}),e(a.prototype,"drawChartBox",k));-1===q.indexOf(b)&&(q.push(b),h(b,"afterGetAllItems",f));-1===q.indexOf(d)&&(q.push(d),h(d,"legendItemClick",
l))}})(g||(g={}));return g});x(c,"Series/Bubble/BubblePoint.js",[c["Core/Series/Point.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p,q){var l=this&&this.__extends||function(){var c=function(h,b){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var e in c)c.hasOwnProperty(e)&&(b[e]=c[e])};return c(h,b)};return function(h,b){function e(){this.constructor=h}c(h,b);h.prototype=null===b?Object.create(b):(e.prototype=
b.prototype,new e)}}();q=q.extend;p=function(n){function h(){var b=null!==n&&n.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}l(h,n);h.prototype.haloPath=function(b){return c.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)};return h}(p.seriesTypes.scatter.prototype.pointClass);q(p.prototype,{ttBelow:!1});return p});x(c,"Series/Bubble/BubbleSeries.js",[c["Core/Axis/Axis.js"],c["Series/Bubble/BubbleLegendComposition.js"],c["Series/Bubble/BubblePoint.js"],
c["Core/Color/Color.js"],c["Core/Globals.js"],c["Core/Series/Series.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p,q,l,n,h,b,e){var g=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,
new d)}}(),t=l.parse;l=n.noop;var k=b.seriesTypes;n=k.column;var a=k.scatter;k=e.addEvent;var d=e.arrayMax,f=e.arrayMin,r=e.clamp,y=e.extend,z=e.isNumber,u=e.merge,v=e.pick;e=function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.maxPxSize=void 0;a.minPxSize=void 0;a.options=void 0;a.points=void 0;a.radii=void 0;a.yData=void 0;a.zData=void 0;return a}g(c,b);c.prototype.animate=function(a){!a&&this.points.length<this.options.animationLimit&&this.points.forEach(function(a){var b=
a.graphic;b&&b.width&&(this.hasRendered||b.attr({x:a.plotX,y:a.plotY,width:1,height:1}),b.animate(this.markerAttribs(a),this.options.animation))},this)};c.prototype.getRadii=function(){var a=this,b=this.zData,c=this.yData,d=[],e=this.chart.bubbleZExtremes;var f=this.getPxExtremes();var g=f.minPxSize,k=f.maxPxSize;if(!e){var h=Number.MAX_VALUE,l=-Number.MAX_VALUE,r;this.chart.series.forEach(function(b){b.bubblePadding&&(b.visible||!a.chart.options.chart.ignoreHiddenSeries)&&(b=b.getZExtremes())&&(h=
Math.min(h||b.zMin,b.zMin),l=Math.max(l||b.zMax,b.zMax),r=!0)});r?(e={zMin:h,zMax:l},this.chart.bubbleZExtremes=e):e={zMin:0,zMax:0}}var n=0;for(f=b.length;n<f;n++){var p=b[n];d.push(this.getRadius(e.zMin,e.zMax,g,k,p,c[n]))}this.radii=d};c.prototype.getRadius=function(a,b,c,d,e,f){var m=this.options,g="width"!==m.sizeBy,k=m.zThreshold,h=b-a,l=.5;if(null===f||null===e)return null;if(z(e)){m.sizeByAbsoluteValue&&(e=Math.abs(e-k),h=Math.max(b-k,Math.abs(a-k)),a=0);if(e<a)return c/2-1;0<h&&(l=(e-a)/
h)}g&&0<=l&&(l=Math.sqrt(l));return Math.ceil(c+l*(d-c))/2};c.prototype.hasData=function(){return!!this.processedXData.length};c.prototype.pointAttribs=function(a,b){var c=this.options.marker.fillOpacity;a=h.prototype.pointAttribs.call(this,a,b);1!==c&&(a.fill=t(a.fill).setOpacity(c).get("rgba"));return a};c.prototype.translate=function(){b.prototype.translate.call(this);this.getRadii();this.translateBubble()};c.prototype.translateBubble=function(){for(var a=this.data,b=this.radii,c=this.getPxExtremes().minPxSize,
d=a.length;d--;){var e=a[d],f=b?b[d]:0;z(f)&&f>=c/2?(e.marker=y(e.marker,{radius:f,width:2*f,height:2*f}),e.dlBox={x:e.plotX-f,y:e.plotY-f,width:2*f,height:2*f}):e.shapeArgs=e.plotY=e.dlBox=void 0}};c.prototype.getPxExtremes=function(){var a=Math.min(this.chart.plotWidth,this.chart.plotHeight),b=function(b){if("string"===typeof b){var c=/%$/.test(b);b=parseInt(b,10)}return c?a*b/100:b},c=b(v(this.options.minSize,8));b=Math.max(b(v(this.options.maxSize,"20%")),c);return{minPxSize:c,maxPxSize:b}};c.prototype.getZExtremes=
function(){var a=this.options,b=(this.zData||[]).filter(z);if(b.length){var c=v(a.zMin,r(f(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=v(a.zMax,d(b));if(z(c)&&z(a))return{zMin:c,zMax:a}}};c.compose=p.compose;c.defaultOptions=u(a.defaultOptions,{dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.z;return z(b)?a(b,-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"});return c}(a);y(e.prototype,{alignDataLabel:n.prototype.alignDataLabel,applyZones:l,bubblePadding:!0,buildKDTree:l,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:q,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"});
k(e,"updatedData",function(a){delete a.target.chart.bubbleZExtremes});c.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,d=0,e=b,f=this.isXAxis,g=f?"xData":"yData",k=this.min,h=this.max-k,l=b/h,r;this.series.forEach(function(b){if(b.bubblePadding&&(b.visible||!c.options.chart.ignoreHiddenSeries)){r=a.allowZoomOutside=!0;var m=b[g];f&&b.getRadii(0,0,b);if(0<h)for(var n=m.length;n--;)if(z(m[n])&&a.dataMin<=m[n]&&m[n]<=a.max){var p=b.radii&&b.radii[n]||0;d=Math.min((m[n]-k)*l-p,
d);e=Math.max((m[n]-k)*l+p,e)}}});r&&0<h&&!this.logarithmic&&(e-=b,l*=(b+Math.max(0,d)-Math.min(e,b))/b,[["min","userMin",d],["max","userMax",e]].forEach(function(b){"undefined"===typeof v(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/l)}))};b.registerSeriesType("bubble",e);"";"";return e});x(c,"Series/MapBubble/MapBubblePoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p){var q=this&&this.__extends||function(){var c=function(b,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(b,c){b.__proto__=c}||function(b,c){for(var e in c)c.hasOwnProperty(e)&&(b[e]=c[e])};return c(b,e)};return function(b,e){function g(){this.constructor=b}c(b,e);b.prototype=null===e?Object.create(e):(g.prototype=e.prototype,new g)}}();c=c.seriesTypes;var l=c.map,n=p.merge;return function(c){function b(){return null!==c&&c.apply(this,arguments)||this}q(b,c);b.prototype.applyOptions=function(b,g){return b&&"undefined"!==typeof b.lat&&"undefined"!==typeof b.lon?c.prototype.applyOptions.call(this,
n(b,this.series.chart.fromLatLonToPoint(b)),g):l.prototype.pointClass.prototype.applyOptions.call(this,b,g)};b.prototype.isValid=function(){return"number"===typeof this.z};return b}(c.bubble.prototype.pointClass)});x(c,"Series/MapBubble/MapBubbleSeries.js",[c["Series/Bubble/BubbleSeries.js"],c["Series/MapBubble/MapBubblePoint.js"],c["Series/Map/MapSeries.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p,q,l,n){var h=this&&this.__extends||function(){var b=function(c,a){b=
Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return b(c,a)};return function(c,a){function d(){this.constructor=c}b(c,a);c.prototype=null===a?Object.create(a):(d.prototype=a.prototype,new d)}}(),b=l.seriesTypes.mappoint,e=n.extend,g=n.merge;n=function(e){function k(){var a=null!==e&&e.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}h(k,e);k.prototype.translate=
function(){b.prototype.translate.call(this);this.getRadii();this.translateBubble()};k.compose=c.compose;k.defaultOptions=g(c.defaultOptions,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}});return k}(c);e(n.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:q.prototype.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:p,setData:q.prototype.setData,setOptions:q.prototype.setOptions,useMapGeometry:!0,xyFromShape:!0});l.registerSeriesType("mapbubble",
n);"";return n});x(c,"Series/Heatmap/HeatmapPoint.js",[c["Core/Series/SeriesRegistry.js"],c["Core/Utilities.js"]],function(c,p){var q=this&&this.__extends||function(){var b=function(c,g){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,c){b.__proto__=c}||function(b,c){for(var a in c)c.hasOwnProperty(a)&&(b[a]=c[a])};return b(c,g)};return function(c,g){function e(){this.constructor=c}b(c,g);c.prototype=null===g?Object.create(g):(e.prototype=g.prototype,new e)}}(),l=p.clamp,n=p.extend,
h=p.pick;c=function(b){function c(){var c=null!==b&&b.apply(this,arguments)||this;c.options=void 0;c.series=void 0;c.value=void 0;c.x=void 0;c.y=void 0;return c}q(c,b);c.prototype.applyOptions=function(c,e){c=b.prototype.applyOptions.call(this,c,e);c.formatPrefix=c.isNull||null===c.value?"null":"point";return c};c.prototype.getCellAttributes=function(){var b=this.series,c=b.options,e=(c.colsize||1)/2,a=(c.rowsize||1)/2,d=b.xAxis,f=b.yAxis,n=this.options.marker||b.options.marker;b=b.pointPlacementToXValue();
var p=h(this.pointPadding,c.pointPadding,0),q={x1:l(Math.round(d.len-(d.translate(this.x-e,!1,!0,!1,!0,-b)||0)),-d.len,2*d.len),x2:l(Math.round(d.len-(d.translate(this.x+e,!1,!0,!1,!0,-b)||0)),-d.len,2*d.len),y1:l(Math.round(f.translate(this.y-a,!1,!0,!1,!0)||0),-f.len,2*f.len),y2:l(Math.round(f.translate(this.y+a,!1,!0,!1,!0)||0),-f.len,2*f.len)};[["width","x"],["height","y"]].forEach(function(a){var b=a[0];a=a[1];var c=a+"1",d=a+"2",e=Math.abs(q[c]-q[d]),f=n&&n.lineWidth||0,g=Math.abs(q[c]+q[d])/
2;n[b]&&n[b]<e&&(q[c]=g-n[b]/2-f/2,q[d]=g+n[b]/2+f/2);p&&("y"===a&&(c=d,d=a+"1"),q[c]+=p,q[d]-=p)});return q};c.prototype.haloPath=function(b){if(!b)return[];var c=this.shapeArgs;return["M",c.x-b,c.y-b,"L",c.x-b,c.y+c.height+b,c.x+c.width+b,c.y+c.height+b,c.x+c.width+b,c.y-b,"Z"]};c.prototype.isValid=function(){return Infinity!==this.value&&-Infinity!==this.value};return c}(c.seriesTypes.scatter.prototype.pointClass);n(c.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1});return c});x(c,
"Series/Heatmap/HeatmapSeries.js",[c["Core/Color/Color.js"],c["Series/ColorMapComposition.js"],c["Series/Heatmap/HeatmapPoint.js"],c["Core/Legend/LegendSymbol.js"],c["Core/Series/SeriesRegistry.js"],c["Core/Renderer/SVG/SVGRenderer.js"],c["Core/Utilities.js"]],function(c,p,q,l,n,h,b){var e=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,
c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),g=p.colorMapSeriesMixin,t=n.series,k=n.seriesTypes,a=k.column,d=k.scatter,f=h.prototype.symbols,r=b.extend,y=b.fireEvent,x=b.isNumber,u=b.merge,v=b.pick;h=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.colorAxis=void 0;b.data=void 0;b.options=void 0;b.points=void 0;b.valueMax=NaN;b.valueMin=NaN;return b}e(b,a);b.prototype.drawPoints=function(){var a=
this;if((this.options.marker||{}).enabled||this._hasPointMarkers)t.prototype.drawPoints.call(this),this.points.forEach(function(b){b.graphic&&(b.graphic[a.chart.styledMode?"css":"animate"](a.colorAttribs(b)),a.options.borderRadius&&b.graphic.attr({r:a.options.borderRadius}),(b.shapeArgs||{}).r=a.options.borderRadius,(b.shapeArgs||{}).d=b.graphic.pathArray,null===b.value&&b.graphic.addClass("highcharts-null-point"))})};b.prototype.getExtremes=function(){var a=t.prototype.getExtremes.call(this,this.valueData),
b=a.dataMin;a=a.dataMax;x(b)&&(this.valueMin=b);x(a)&&(this.valueMax=a);return t.prototype.getExtremes.call(this)};b.prototype.getValidPoints=function(a,b){return t.prototype.getValidPoints.call(this,a,b,!0)};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.init=function(){t.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=v(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1;f.ellipse=f.circle};b.prototype.markerAttribs=function(a,b){var c=
a.marker||{},d=this.options.marker||{},e=a.shapeArgs||{},f={};if(a.hasImage)return{x:a.plotX,y:a.plotY};if(b){var g=d.states[b]||{};var k=c.states&&c.states[b]||{};[["width","x"],["height","y"]].forEach(function(a){f[a[0]]=(k[a[0]]||g[a[0]]||e[a[0]])+(k[a[0]+"Plus"]||g[a[0]+"Plus"]||0);f[a[1]]=e[a[1]]+(e[a[0]]-f[a[0]])/2})}return b?f:e};b.prototype.pointAttribs=function(a,b){var d=t.prototype.pointAttribs.call(this,a,b),e=this.options||{},f=this.chart.options.plotOptions||{},g=f.series||{},k=f.heatmap||
{};f=a&&a.options.borderColor||e.borderColor||k.borderColor||g.borderColor;g=a&&a.options.borderWidth||e.borderWidth||k.borderWidth||g.borderWidth||d["stroke-width"];d.stroke=a&&a.marker&&a.marker.lineColor||e.marker&&e.marker.lineColor||f||this.color;d["stroke-width"]=g;b&&(a=u(e.states[b],e.marker&&e.marker.states[b],a&&a.options.states&&a.options.states[b]||{}),b=a.brightness,d.fill=a.color||c.parse(d.fill).brighten(b||0).get(),d.stroke=a.lineColor);return d};b.prototype.setClip=function(a){var b=
this.chart;t.prototype.setClip.apply(this,arguments);(!1!==this.options.clip||a)&&this.markerGroup.clip((a||this.clipBox)&&this.sharedClipKey?b.sharedClips[this.sharedClipKey]:b.clipRect)};b.prototype.translate=function(){var a=this.options,b=a.marker&&a.marker.symbol||"rect",c=f[b]?b:"rect",d=-1!==["circle","square"].indexOf(c);this.generatePoints();this.points.forEach(function(a){var e=a.getCellAttributes(),g={};g.x=Math.min(e.x1,e.x2);g.y=Math.min(e.y1,e.y2);g.width=Math.max(Math.abs(e.x2-e.x1),
0);g.height=Math.max(Math.abs(e.y2-e.y1),0);var k=a.hasImage=0===(a.marker&&a.marker.symbol||b||"").indexOf("url");if(d){var h=Math.abs(g.width-g.height);g.x=Math.min(e.x1,e.x2)+(g.width<g.height?0:h/2);g.y=Math.min(e.y1,e.y2)+(g.width<g.height?h/2:0);g.width=g.height=Math.min(g.width,g.height)}h={plotX:(e.x1+e.x2)/2,plotY:(e.y1+e.y2)/2,clientX:(e.x1+e.x2)/2,shapeType:"path",shapeArgs:u(!0,g,{d:f[c](g.x,g.y,g.width,g.height)})};k&&(a.marker={width:g.width,height:g.height});r(a,h)});y(this,"afterTranslate")};
b.defaultOptions=u(d.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var a=this.series.chart.numberFormatter,b=this.point.value;return x(b)?a(b,-1):""},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,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}}});
return b}(d);r(h.prototype,{alignDataLabel:a.prototype.alignDataLabel,axisTypes:g.axisTypes,colorKey:"value",directTouch:!0,drawLegendSymbol:l.drawRectangle,getExtremesFromAll:!0,getSymbol:t.prototype.getSymbol,parallelArrays:g.parallelArrays,pointArrayMap:["y","value"],pointClass:q,trackerGroups:g.trackerGroups});p.compose(h);n.registerSeriesType("heatmap",h);"";"";return h});x(c,"Extensions/GeoJSON.js",[c["Core/Chart/Chart.js"],c["Core/FormatUtilities.js"],c["Core/Globals.js"],c["Core/Utilities.js"]],
function(c,p,q,l){function n(b,a){var c,e=!1,g=b.x,k=b.y;b=0;for(c=a.length-1;b<a.length;c=b++){var h=a[b][1]>k;var l=a[c][1]>k;h!==l&&g<(a[c][0]-a[b][0])*(k-a[b][1])/(a[c][1]-a[b][1])+a[b][0]&&(e=!e)}return e}var h=p.format,b=q.win,e=l.error,g=l.extend,t=l.merge;p=l.wrap;"";c.prototype.transformFromLatLon=function(c,a){var d=this.options.chart.proj4||b.proj4;if(!d)return e(21,!1,this),{x:0,y:null};var f=a.jsonmarginX;f=void 0===f?0:f;var g=a.jsonmarginY;g=void 0===g?0:g;var k=a.jsonres;k=void 0===
k?1:k;var h=a.scale;h=void 0===h?1:h;var l=a.xoffset;l=void 0===l?0:l;var n=a.xpan;n=void 0===n?0:n;var p=a.yoffset;p=void 0===p?0:p;var q=a.ypan;q=void 0===q?0:q;c=d(a.crs,[c.lon,c.lat]);d=a.cosAngle||a.rotation&&Math.cos(a.rotation);var m=a.sinAngle||a.rotation&&Math.sin(a.rotation);a=a.rotation?[c[0]*d+c[1]*m,-c[0]*m+c[1]*d]:c;return{x:((a[0]-l)*h+n)*k+f,y:-(((p-a[1])*h+q)*k-g)}};c.prototype.transformToLatLon=function(c,a){if(!this.options.chart.proj4&&!b.proj4)e(21,!1,this);else if(null!==c.y){var d=
a.jsonmarginX,f=a.jsonmarginY,g=a.jsonres;g=void 0===g?1:g;var h=a.scale;h=void 0===h?1:h;var k=a.xoffset,l=a.xpan,n=a.yoffset,p=a.ypan;c={x:((c.x-(void 0===d?0:d))/g-(void 0===l?0:l))/h+(void 0===k?0:k),y:((c.y-(void 0===f?0:f))/g+(void 0===p?0:p))/h+(void 0===n?0:n)};d=a.cosAngle||a.rotation&&Math.cos(a.rotation);f=a.sinAngle||a.rotation&&Math.sin(a.rotation);a=b.proj4(a.crs,"WGS84",a.rotation?{x:c.x*d+c.y*-f,y:c.x*f+c.y*d}:c);return{lat:a.y,lon:a.x}}};c.prototype.fromPointToLatLon=function(b){var a=
this.mapTransforms;if(a){for(var c in a)if(Object.hasOwnProperty.call(a,c)&&a[c].hitZone&&n(b,a[c].hitZone.coordinates[0]))return this.transformToLatLon(b,a[c]);return this.transformToLatLon(b,a["default"])}e(22,!1,this)};c.prototype.fromLatLonToPoint=function(b){var a=this.mapTransforms,c;if(!a)return e(22,!1,this),{x:0,y:null};for(c in a)if(Object.hasOwnProperty.call(a,c)&&a[c].hitZone){var f=this.transformFromLatLon(b,a[c]);if(n(f,a[c].hitZone.coordinates[0]))return f}return this.transformFromLatLon(b,
a["default"])};q.geojson=function(b,a,c){void 0===a&&(a="map");var d=[];b.features.forEach(function(b){var c=b.geometry||{},e=c.type;c=c.coordinates;b=b.properties;var f;"map"!==a&&"mapbubble"!==a||"Polygon"!==e&&"MultiPolygon"!==e?"mapline"!==a||"LineString"!==e&&"MultiLineString"!==e?"mappoint"===a&&"Point"===e&&c.length&&(f={geometry:{coordinates:c,type:e}}):c.length&&(f={geometry:{coordinates:c,type:e}}):c.length&&(f={geometry:{coordinates:c,type:e}});f&&d.push(g(f,{name:b.name||b.NAME,properties:b}))});
c&&b.copyrightShort&&(c.chart.mapCredits=h(c.chart.options.credits.mapText,{geojson:b}),c.chart.mapCreditsFull=h(c.chart.options.credits.mapTextFull,{geojson:b}));return d};p(c.prototype,"addCredits",function(b,a){a=t(!0,this.options.credits,a);this.mapCredits&&(a.href=null);b.call(this,a);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})});x(c,"masters/modules/map.src.js",[c["Core/Globals.js"],c["Core/Axis/Color/ColorAxis.js"],c["Series/MapBubble/MapBubbleSeries.js"],
c["Core/Chart/MapChart.js"]],function(c,p,q,l){c.ColorAxis=p;c.MapChart=l;c.mapChart=c.Map=l.mapChart;c.maps=l.maps;p.compose(c.Chart,c.Fx,c.Legend,c.Series);q.compose(c.Chart,c.Legend,c.Series)})});
//# sourceMappingURL=map.js.map

View File

@ -1,5 +1,5 @@
/*
Highcharts JS v9.2.2 (2021-08-24)
Highcharts JS v9.3.1 (2021-11-05)
Plugin for displaying a message when there is no data visible in chart.
@ -8,8 +8,8 @@
License: www.highcharts.com/license
*/
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/no-data-to-display",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,b,e,g){a.hasOwnProperty(b)||(a[b]=g.apply(null,e))}a=a?a._modules:{};b(a,"Extensions/NoDataToDisplay.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],
a["Core/Color/Palette.js"],a["Core/Utilities.js"]],function(a,b,e,g,d){var f=e.getOptions;e=d.addEvent;var h=d.extend;d=b.prototype;f=f();h(f.lang,{noData:"No data to display"});f.noData={attr:{zIndex:1},position:{x:0,y:0,align:"center",verticalAlign:"middle"},style:{fontWeight:"bold",fontSize:"12px",color:g.neutralColor60}};d.showNoData=function(b){var c=this.options;b=b||c&&c.lang.noData||"";c=c&&(c.noData||{});this.renderer&&(this.noDataLabel||(this.noDataLabel=this.renderer.label(b,0,0,void 0,
void 0,void 0,c.useHTML,void 0,"no-data").add()),this.styledMode||this.noDataLabel.attr(a.filterUserAttributes(c.attr||{})).css(c.style||{}),this.noDataLabel.align(h(this.noDataLabel.getBBox(),c.position||{}),!1,"plotBox"))};d.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())};d.hasData=function(){for(var a=this.series||[],b=a.length;b--;)if(a[b].hasData()&&!a[b].options.isInternal)return!0;return this.loadingShown};e(b,"render",function(){this.hasData()?this.hideNoData():
this.showNoData()})});b(a,"masters/modules/no-data-to-display.src.js",[],function(){})});
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/no-data-to-display",["highcharts"],function(b){a(b);a.Highcharts=b;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function b(a,b,e,d){a.hasOwnProperty(b)||(a[b]=d.apply(null,e))}a=a?a._modules:{};b(a,"Extensions/NoDataToDisplay.js",[a["Core/Renderer/HTML/AST.js"],a["Core/Chart/Chart.js"],a["Core/DefaultOptions.js"],
a["Core/Utilities.js"]],function(a,b,e,d){var f=e.getOptions;e=d.addEvent;var g=d.extend;d=b.prototype;f=f();g(f.lang,{noData:"No data to display"});f.noData={attr:{zIndex:1},position:{x:0,y:0,align:"center",verticalAlign:"middle"},style:{fontWeight:"bold",fontSize:"12px",color:"#666666"}};d.showNoData=function(b){var c=this.options;b=b||c&&c.lang.noData||"";c=c&&(c.noData||{});this.renderer&&(this.noDataLabel||(this.noDataLabel=this.renderer.label(b,0,0,void 0,void 0,void 0,c.useHTML,void 0,"no-data").add()),
this.styledMode||this.noDataLabel.attr(a.filterUserAttributes(c.attr||{})).css(c.style||{}),this.noDataLabel.align(g(this.noDataLabel.getBBox(),c.position||{}),!1,"plotBox"))};d.hideNoData=function(){this.noDataLabel&&(this.noDataLabel=this.noDataLabel.destroy())};d.hasData=function(){for(var a=this.series||[],b=a.length;b--;)if(a[b].hasData()&&!a[b].options.isInternal)return!0;return this.loadingShown};e(b,"render",function(){this.hasData()?this.hideNoData():this.showNoData()})});b(a,"masters/modules/no-data-to-display.src.js",
[],function(){})});
//# sourceMappingURL=no-data-to-display.js.map

View File

@ -1,205 +0,0 @@
/*
Highstock JS v9.2.2 (2021-08-24)
Highcharts Stock as a plugin for Highcharts
(c) 2010-2021 Torstein Honsi
License: www.highcharts.com/license
*/
'use strict';(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/stock",["highcharts"],function(K){a(K);a.Highcharts=K;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function K(a,m,u,y){a.hasOwnProperty(m)||(a[m]=y.apply(null,u))}a=a?a._modules:{};K(a,"Core/Axis/OrdinalAxis.js",[a["Core/Axis/Axis.js"],a["Core/Globals.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],
function(a,m,u,y){var n=y.addEvent,G=y.correctFloat,E=y.css,q=y.defined,d=y.error,b=y.pick,J=y.timeUnits,k=[],t;(function(a){function t(g,w,l,f,h,p,c){void 0===h&&(h=[]);void 0===p&&(p=0);var v={},A=this.options.tickPixelInterval,F=this.chart.time,H=[],x,C,z=0,e=[],b=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!h||3>h.length||"undefined"===typeof w)return F.getTimeTicks.apply(F,arguments);var B=h.length;for(x=0;x<B;x++){var k=x&&h[x-1]>l;h[x]<w&&(z=x);if(x===B-1||h[x+1]-h[x]>
5*p||k){if(h[x]>b){for(C=F.getTimeTicks(g,h[z],h[x],f);C.length&&C[0]<=b;)C.shift();C.length&&(b=C[C.length-1]);H.push(e.length);e=e.concat(C)}z=x+1}if(k)break}if(C){C=C.info;if(c&&C.unitRange<=J.hour){x=e.length-1;for(z=1;z<x;z++)if(F.dateFormat("%d",e[z])!==F.dateFormat("%d",e[z-1])){v[e[z]]="day";var r=!0}r&&(v[e[0]]="day");C.higherRanks=v}C.segmentStarts=H;e.info=C}else d(12,!1,this.chart);if(c&&q(A)){C=e.length;F=[];z=[];x=void 0;for(r=C;r--;)H=this.translate(e[r]),x&&(z[r]=x-H),F[r]=x=H;z.sort();
z=z[Math.floor(z.length/2)];z<.6*A&&(z=null);r=e[C-1]>l?C-1:C;for(x=void 0;r--;)H=F[r],C=Math.abs(x-H),x&&C<.8*A&&(null===z||C<.8*z)?(v[e[r]]&&!v[e[r+1]]?(C=r+1,x=H):C=r,e.splice(C,1)):x=H}return e}function e(g){var w=this.ordinal.positions;if(!w)return g;var l=w.length-1;if(0>g)g=w[0];else if(g>l)g=w[l];else{l=Math.floor(g);var f=g-l}return"undefined"!==typeof f&&"undefined"!==typeof w[l]?w[l]+(f?f*(w[l+1]-w[l]):0):g}function O(g){var w=this.ordinal,l=w.positions;if(!l)return g;var f=(g-(this.old?
this.old.min:this.min))*(this.old?this.old.transA:this.transA)+this.minPixelPadding;0<f&&f<this.left+this.len||(w.extendedOrdinalPositions||(w.extendedOrdinalPositions=w.getExtendedPositions()),l=w.extendedOrdinalPositions);if(l&&l.length){g=w.getIndexOfPoint(f,l);w=G(g%1);if(0<=g&&g<l.length)return l[Math.floor(g)]+w*(l[Math.ceil(g)]-l[Math.floor(g)]);w=l.length;f=l[0];l=l[w-1];var h=(l-f)/(w-1);return 0>g?f+h*g:l+h*(g-w)}return g}function r(g,w){var l=a.Additions.findIndexOf(g,w,!0);return g[l]===
w?l:l+(w-g[l])/(g[l+1]-g[l])}function S(){this.ordinal||(this.ordinal=new a.Additions(this))}function D(){this.isXAxis&&q(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&q(this.userMin)&&(this.min+=this.options.overscroll))}function B(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)}
function T(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))}function M(g){var w=this.xAxis[0],l=w.options.overscroll,f=g.originalEvent.chartX,h=this.options.chart.panning,p=!1;if(h&&"y"!==h.type&&w.options.ordinal&&w.series.length){var c=this.mouseDownX,v=w.getExtremes(),A=v.dataMax,F=v.min,H=v.max,x=this.hoverPoints,C=w.closestPointRange||w.ordinal&&w.ordinal.overscrollPointsRange;c=(c-f)/(w.translationSlope*(w.ordinal.slope||
C));C={ordinal:{positions:w.ordinal.getExtendedPositions()}};var z=w.index2val,e=w.val2lin,b=void 0,B=b=void 0,r=void 0;C.ordinal.positions?1<Math.abs(c)&&(x&&x.forEach(function(c){c.setState()}),0>c?(B=C,r=w.ordinal.positions?w:C):(B=w.ordinal.positions?w:C,r=C),b=r.ordinal.positions,A>b[b.length-1]&&b.push(A),this.fixedRange=H-F,b=w.navigatorAxis.toFixedRange(null,null,z.apply(B,[e.apply(B,[F,!0])+c]),z.apply(r,[e.apply(r,[H,!0])+c])),b.min>=Math.min(v.dataMin,F)&&b.max<=Math.max(A,H)+l&&w.setExtremes(b.min,
b.max,!0,!1,{trigger:"pan"}),this.mouseDownX=f,E(this.container,{cursor:"move"})):p=!0}else p=!0;p||h&&/y/.test(h.type)?l&&(w.max=w.dataMax+l):g.preventDefault()}function N(){var g=this.xAxis;g&&g.options.ordinal&&(delete g.ordinal.index,delete g.ordinal.extendedOrdinalPositions)}function P(g,w){var l=this.ordinal,f=l.positions,h=l.slope,p=l.extendedOrdinalPositions;if(!f)return g;var c=f.length;if(f[0]<=g&&f[c-1]>=g)g=r(f,g);else{p||(p=l.getExtendedPositions&&l.getExtendedPositions(),l.extendedOrdinalPositions=
p);if(!p||!p.length)return g;c=p.length;h||(h=(p[c-1]-p[0])/c);f=r(p,f[0]);g>=p[0]&&g<=p[c-1]?g=r(p,g)-f:g<p[0]?(g=p[0]-g,g=-f-g/h):(g-=p[c-1],g=g/h+c-f)}return w?g:h*(g||0)+l.offset}a.compose=function(g,w,l){if(-1===k.indexOf(g)){k.push(g);var f=g.prototype;f.getTimeTicks=t;f.index2val=e;f.lin2val=O;f.val2lin=P;f.ordinal2lin=f.val2lin;n(g,"afterInit",S);n(g,"foundExtremes",D);n(g,"afterSetScale",B);n(g,"initialAxisTranslation",T)}-1===k.indexOf(l)&&(k.push(l),n(l,"pan",M));-1===k.indexOf(w)&&(k.push(w),
n(w,"updatedData",N));return g};var L=function(){function g(g){this.index={};this.axis=g}g.prototype.beforeSetTickPositions=function(){var g=this.axis,l=g.ordinal,f=g.getExtremes(),h=f.min,p=f.max,c=g.isXAxis&&!!g.options.breaks;f=g.options.ordinal;var v=g.chart.options.chart.ignoreHiddenSeries,A,F,H,x=[],C=Number.MAX_VALUE,z=!1;if(f||c){g.series.forEach(function(p,f){A=[];if(!(v&&!1===p.visible||!1===p.takeOrdinalPosition&&!c)&&(x=x.concat(p.processedXData),e=x.length,x.sort(function(c,v){return c-
v}),C=Math.min(C,b(p.closestPointRange,C)),e)){for(f=0;f<e-1;)x[f]!==x[f+1]&&A.push(x[f+1]),f++;A[0]!==x[0]&&A.unshift(x[0]);x=A}p.isSeriesBoosting&&(H=!0)});H&&(x.length=0);var e=x.length;if(2<e){var B=x[1]-x[0];for(F=e-1;F--&&!z;)x[F+1]-x[F]!==B&&(z=!0);!g.options.keepOrdinalPadding&&(x[0]-h>B||p-x[x.length-1]>B)&&(z=!0)}else g.options.overscroll&&(2===e?C=x[1]-x[0]:1===e?(C=g.options.overscroll,x=[x[0],x[0]+C]):C=l.overscrollPointsRange);z||g.forceOrdinal?(g.options.overscroll&&(l.overscrollPointsRange=
C,x=x.concat(l.getOverscrollPositions())),l.positions=x,B=g.ordinal2lin(Math.max(h,x[0]),!0),F=Math.max(g.ordinal2lin(Math.min(p,x[x.length-1]),!0),1),l.slope=p=(p-h)/(F-B),l.offset=h-B*p):(l.overscrollPointsRange=b(g.closestPointRange,l.overscrollPointsRange),l.positions=g.ordinal.slope=l.offset=void 0)}g.isOrdinal=f&&z;l.groupIntervalFactor=null};g.findIndexOf=function(g,l,f){for(var h=0,p=g.length-1,c;h<p;)c=Math.ceil((h+p)/2),g[c]<=l?h=c:p=c-1;return g[h]===l?h:f?h:-1};g.prototype.getExtendedPositions=
function(){var g=this,l=g.axis,f=l.constructor.prototype,h=l.chart,p=l.series[0].currentDataGrouping,c=p?p.count+p.unitName:"raw",v=l.options.overscroll,A=l.getExtremes(),F=void 0,H=g.index;H||(H=g.index={});if(!H[c]){var x={series:[],chart:h,forceOrdinal:!1,getExtremes:function(){return{min:A.dataMin,max:A.dataMax+v}},getGroupPixelWidth:f.getGroupPixelWidth,getTimeTicks:f.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:f.ordinal2lin,getIndexOfPoint:f.getIndexOfPoint,
val2lin:f.val2lin};x.ordinal.axis=x;l.series.forEach(function(c){F={xAxis:x,xData:c.xData.slice(),chart:h,destroyGroupedData:m.noop,getProcessedData:u.prototype.getProcessedData,applyGrouping:u.prototype.applyGrouping};F.xData=F.xData.concat(g.getOverscrollPositions());F.options={dataGrouping:p?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[p.unitName,[p.count]]]}:{enabled:!1}};x.series.push(F);c.processData.apply(F)});l.applyGrouping.call(x);
F.closestPointRange!==F.basePointRange&&F.currentDataGrouping&&(x.forceOrdinal=!0);l.ordinal.beforeSetTickPositions.apply({axis:x});H[c]=x.ordinal.positions}return H[c]};g.prototype.getGroupIntervalFactor=function(g,l,f){f=f.processedXData;var h=f.length,p=[];var c=this.groupIntervalFactor;if(!c){for(c=0;c<h-1;c++)p[c]=f[c+1]-f[c];p.sort(function(c,p){return c-p});p=p[Math.floor(h/2)];g=Math.max(g,f[0]);l=Math.min(l,f[h-1]);this.groupIntervalFactor=c=h*p/(l-g)}return c};g.prototype.getIndexOfPoint=
function(e,l){var f=this.axis,h=this.positions?this.positions[0]:0,p=f.series[0].points&&f.series[0].points[0]&&f.series[0].points[0].plotX||f.minPixelPadding;1<f.series.length&&f.series.forEach(function(c){q(c.points[0])&&q(c.points[0].plotX)&&c.points[0].plotX<p&&(p=c.points[0].plotX)});e=(e-p)/(f.translationSlope*(this.slope||f.closestPointRange||this.overscrollPointsRange));return g.findIndexOf(l,h)+e};g.prototype.getOverscrollPositions=function(){var g=this.axis,l=g.options.overscroll,f=this.overscrollPointsRange,
h=[],p=g.dataMax;if(q(f))for(;p<=g.dataMax+l;)p+=f,h.push(p);return h};g.prototype.postProcessTickInterval=function(g){var l=this.axis,f=this.slope;return f?l.options.breaks?l.closestPointRange||g:g/(f/l.closestPointRange):g};return g}();a.Additions=L})(t||(t={}));return t});K(a,"Core/Axis/BrokenAxis.js",[a["Extensions/Stacking.js"],a["Core/Utilities.js"]],function(a,m){var u=m.addEvent,y=m.find,n=m.fireEvent,G=m.isArray,E=m.isNumber,q=m.pick,d;(function(b){function d(){"undefined"!==typeof this.brokenAxis&&
this.brokenAxis.setBreaks(this.options.breaks,!1)}function k(){this.brokenAxis&&this.brokenAxis.hasBreaks&&(this.options.ordinal=!1)}function t(){var e=this.brokenAxis;if(e&&e.hasBreaks){for(var b=this.tickPositions,r=this.tickPositions.info,d=[],k=0;k<b.length;k++)e.isInAnyBreak(b[k])||d.push(b[k]);this.tickPositions=d;this.tickPositions.info=r}}function S(){this.brokenAxis||(this.brokenAxis=new D(this))}function Q(){var e=this.options.connectNulls,b=this.points,r=this.xAxis,d=this.yAxis;if(this.isDirty)for(var k=
b.length;k--;){var a=b[k],g=!(null===a.y&&!1===e)&&(r&&r.brokenAxis&&r.brokenAxis.isInAnyBreak(a.x,!0)||d&&d.brokenAxis&&d.brokenAxis.isInAnyBreak(a.y,!0));a.visible=g?!1:!1!==a.options.visible}}function e(){this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,["y"]))}function O(e,b){var r=this,B=r.points,d,k,g,w;if(e&&e.brokenAxis&&e.brokenAxis.hasBreaks){var l=e.brokenAxis;b.forEach(function(f){d=l&&l.breakArray||[];k=e.isXAxis?e.min:q(r.options.threshold,e.min);B.forEach(function(h){w=
q(h["stack"+f.toUpperCase()],h[f]);d.forEach(function(p){if(E(k)&&E(w)){g=!1;if(k<p.from&&w>p.to||k>p.from&&w<p.from)g="pointBreak";else if(k<p.from&&w>p.from&&w<p.to||k>p.from&&w>p.to&&w<p.from)g="pointInBreak";g&&n(e,g,{point:h,brk:p})}})})})}}function r(){var e=this.currentDataGrouping,b=e&&e.gapSize;e=this.points.slice();var r=this.yAxis,d=this.options.gapSize,k=e.length-1,t;if(d&&0<k)for("value"!==this.options.gapUnit&&(d*=this.basePointRange),b&&b>d&&b>=this.basePointRange&&(d=b),t=void 0;k--;)t&&
!1!==t.visible||(t=e[k+1]),b=e[k],!1!==t.visible&&!1!==b.visible&&(t.x-b.x>d&&(t=(b.x+t.x)/2,e.splice(k+1,0,{isNull:!0,x:t}),r.stacking&&this.options.stacking&&(t=r.stacking.stacks[this.stackKey][t]=new a(r,r.options.stackLabels,!1,t,this.stack),t.total=0)),t=b);return this.getGraphPath(e)}var I=[];b.compose=function(b,a){-1===I.indexOf(b)&&(I.push(b),b.keepProps.push("brokenAxis"),u(b,"init",S),u(b,"afterInit",d),u(b,"afterSetTickPositions",t),u(b,"afterSetOptions",k));if(-1===I.indexOf(a)){I.push(a);
var B=a.prototype;B.drawBreaks=O;B.gappedPath=r;u(a,"afterGeneratePoints",Q);u(a,"afterRender",e)}return b};var D=function(){function e(e){this.hasBreaks=!1;this.axis=e}e.isInBreak=function(e,b){var r=e.repeat||Infinity,d=e.from,k=e.to-e.from;b=b>=d?(b-d)%r:r-(d-b)%r;return e.inclusive?b<=k:b<k&&0!==b};e.lin2Val=function(b){var r=this.brokenAxis;r=r&&r.breakArray;if(!r||!E(b))return b;var d;for(d=0;d<r.length;d++){var k=r[d];if(k.from>=b)break;else k.to<b?b+=k.len:e.isInBreak(k,b)&&(b+=k.len)}return b};
e.val2Lin=function(b){var r=this.brokenAxis;r=r&&r.breakArray;if(!r||!E(b))return b;var d=b,k;for(k=0;k<r.length;k++){var a=r[k];if(a.to<=b)d-=a.len;else if(a.from>=b)break;else if(e.isInBreak(a,b)){d-=b-a.from;break}}return d};e.prototype.findBreakAt=function(e,b){return y(b,function(b){return b.from<e&&e<b.to})};e.prototype.isInAnyBreak=function(b,r){var d=this.axis,k=d.options.breaks||[],a=k.length,g;if(a&&E(b)){for(;a--;)if(e.isInBreak(k[a],b)){var w=!0;g||(g=q(k[a].showPoints,!d.isXAxis))}var l=
w&&r?w&&!g:w}return l};e.prototype.setBreaks=function(b,r){var k=this,d=k.axis,a=G(b)&&!!b.length;d.isDirty=k.hasBreaks!==a;k.hasBreaks=a;d.options.breaks=d.userOptions.breaks=b;d.forceRedraw=!0;d.series.forEach(function(g){g.isDirty=!0});a||d.val2lin!==e.val2Lin||(delete d.val2lin,delete d.lin2val);a&&(d.userOptions.ordinal=!1,d.lin2val=e.lin2Val,d.val2lin=e.val2Lin,d.setExtremes=function(g,e,l,f,h){if(k.hasBreaks){for(var p=this.options.breaks||[],c;c=k.findBreakAt(g,p);)g=c.to;for(;c=k.findBreakAt(e,
p);)e=c.from;e<g&&(e=g)}d.constructor.prototype.setExtremes.call(this,g,e,l,f,h)},d.setAxisTranslation=function(){d.constructor.prototype.setAxisTranslation.call(this);k.unitLength=void 0;if(k.hasBreaks){var g=d.options.breaks||[],b=[],l=[],f=q(d.pointRangePadding,0),h=0,p,c=d.userMin||d.min,v=d.userMax||d.max,A;g.forEach(function(f){p=f.repeat||Infinity;E(c)&&E(v)&&(e.isInBreak(f,c)&&(c+=f.to%p-c%p),e.isInBreak(f,v)&&(v-=v%p-f.from%p))});g.forEach(function(f){H=f.from;p=f.repeat||Infinity;if(E(c)&&
E(v)){for(;H-p>c;)H-=p;for(;H<c;)H+=p;for(A=H;A<v;A+=p)b.push({value:A,move:"in"}),b.push({value:A+f.to-f.from,move:"out",size:f.breakSize})}});b.sort(function(c,v){return c.value===v.value?("in"===c.move?0:1)-("in"===v.move?0:1):c.value-v.value});var F=0;var H=c;b.forEach(function(c){F+="in"===c.move?1:-1;1===F&&"in"===c.move&&(H=c.value);0===F&&E(H)&&(l.push({from:H,to:c.value,len:c.value-H-(c.size||0)}),h+=c.value-H-(c.size||0))});k.breakArray=l;E(c)&&E(v)&&E(d.min)&&(k.unitLength=v-c-h+f,n(d,
"afterBreaks"),d.staticScale?d.transA=d.staticScale:k.unitLength&&(d.transA*=(v-d.min+f)/k.unitLength),f&&(d.minPixelPadding=d.transA*(d.minPointOffset||0)),d.min=c,d.max=v)}});q(r,!0)&&d.chart.redraw()};return e}();b.Additions=D})(d||(d={}));return d});K(a,"masters/modules/broken-axis.src.js",[a["Core/Globals.js"],a["Core/Axis/BrokenAxis.js"]],function(a,m){m.compose(a.Axis,a.Series)});K(a,"Extensions/DataGrouping.js",[a["Core/Axis/Axis.js"],a["Core/Axis/DateTimeAxis.js"],a["Core/FormatUtilities.js"],
a["Core/Globals.js"],a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Tooltip.js"],a["Core/DefaultOptions.js"],a["Core/Utilities.js"]],function(a,m,u,y,n,R,E,q,d){var b=u.format,J=R.prototype;u=d.addEvent;var k=d.arrayMax,t=d.arrayMin,S=d.correctFloat,Q=d.defined,e=d.error,O=d.extend,r=d.isNumber,I=d.merge,D=d.pick;"";var B=y.approximations={sum:function(g){var e=g.length;if(!e&&g.hasNulls)var l=null;else if(e)for(l=0;e--;)l+=g[e];return l},average:function(g){var e=g.length;g=B.sum(g);
r(g)&&e&&(g=S(g/e));return g},averages:function(){var g=[];[].forEach.call(arguments,function(e){g.push(B.average(e))});return"undefined"===typeof g[0]?void 0:g},open:function(g){return g.length?g[0]:g.hasNulls?null:void 0},high:function(g){return g.length?k(g):g.hasNulls?null:void 0},low:function(g){return g.length?t(g):g.hasNulls?null:void 0},close:function(g){return g.length?g[g.length-1]:g.hasNulls?null:void 0},ohlc:function(g,e,l,f){g=B.open(g);e=B.high(e);l=B.low(l);f=B.close(f);if(r(g)||r(e)||
r(l)||r(f))return[g,e,l,f]},range:function(g,e){g=B.low(g);e=B.high(e);if(r(g)||r(e))return[g,e];if(null===g&&null===e)return null}};d=function(e,b,l,f){var h=this,p=h.data,c=h.options&&h.options.data,v=[],A=[],g=[],d=e.length,x=!!b,C=[],z=h.pointArrayMap,k=z&&z.length,a=["x"].concat(z||["y"]),w=this.options.dataGrouping&&this.options.dataGrouping.groupAll,t=0,J=0,D;f="function"===typeof f?f:B[f]?B[f]:B[h.getDGApproximation&&h.getDGApproximation()||"average"];k?z.forEach(function(){C.push([])}):C.push([]);
var O=k||1;for(D=0;D<=d&&!(e[D]>=l[0]);D++);for(D;D<=d;D++){for(;"undefined"!==typeof l[t+1]&&e[D]>=l[t+1]||D===d;){var q=l[t];h.dataGroupInfo={start:w?J:h.cropStart+J,length:C[0].length};var S=f.apply(h,C);h.pointClass&&!Q(h.dataGroupInfo.options)&&(h.dataGroupInfo.options=I(h.pointClass.prototype.optionsToObject.call({series:h},h.options.data[h.cropStart+J])),a.forEach(function(c){delete h.dataGroupInfo.options[c]}));"undefined"!==typeof S&&(v.push(q),A.push(S),g.push(h.dataGroupInfo));J=D;for(q=
0;q<O;q++)C[q].length=0,C[q].hasNulls=!1;t+=1;if(D===d)break}if(D===d)break;if(z){q=h.options.dataGrouping&&h.options.dataGrouping.groupAll?D:h.cropStart+D;S=p&&p[q]||h.pointClass.prototype.applyOptions.apply({series:h},[c[q]]);var n=void 0;for(q=0;q<k;q++)n=S[z[q]],r(n)?C[q].push(n):null===n&&(C[q].hasNulls=!0)}else q=x?b[D]:null,r(q)?C[0].push(q):null===q&&(C[0].hasNulls=!0)}return{groupedXData:v,groupedYData:A,groupMap:g}};var G={approximations:B,groupData:d},M=J.generatePoints,N={groupPixelWidth:2,
dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},P={line:{},spline:{},area:{},areaspline:{},arearange:{},column:{groupPixelWidth:10},
columnrange:{groupPixelWidth:10},candlestick:{groupPixelWidth:10},ohlc:{groupPixelWidth:5},heikinashi:{groupPixelWidth:10}},L=y.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]];J.getDGApproximation=function(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("column")?"sum":"average"};J.groupData=d;J.applyGrouping=function(){var g=
this.chart,b=this.options.dataGrouping,l=!1!==this.allowDG&&b&&D(b.enabled,g.options.isStock),f=this.visible||!g.options.chart.ignoreHiddenSeries,h,p=this.currentDataGrouping,c=!1;l&&!this.requireSorting&&(this.requireSorting=c=!0);var v=!this.isCartesian||this.isDirty||this.xAxis.isDirty||this.yAxis.isDirty?void 0:!1;c&&(this.requireSorting=!1);if(!v&&l){this.destroyGroupedData();v=b.groupAll?this.xData:this.processedXData;var A=b.groupAll?this.yData:this.processedYData;c=g.plotSizeX;l=this.xAxis;
var F=l.options.ordinal,d=this.groupPixelWidth;if(d&&v&&v.length){this.isDirty=h=!0;this.points=null;var x=l.getExtremes();var C=x.min;x=x.max;F=F&&l.ordinal&&l.ordinal.getGroupIntervalFactor(C,x,this)||1;c=l.getTimeTicks(m.Additions.prototype.normalizeTimeTickInterval(d*(x-C)/c*F,b.units||L),Math.min(C,v[0]),Math.max(x,v[v.length-1]),l.options.startOfWeek,v,this.closestPointRange);d=J.groupData.apply(this,[v,A,c,b.approximation]);v=d.groupedXData;A=d.groupedYData;F=0;b&&b.smoothed&&v.length&&(b.firstAnchor=
"firstPoint",b.anchor="middle",b.lastAnchor="lastPoint",e(32,!1,g,{"dataGrouping.smoothed":"use dataGrouping.anchor"}));g=v;var z=this.options.dataGrouping;C=this.currentDataGrouping&&this.currentDataGrouping.gapSize;if(z&&this.xData&&C&&this.groupMap){var k=g.length-1;var a=z.anchor;var t=D(z.firstAnchor,a);z=D(z.lastAnchor,a);if(a&&"start"!==a){var B=C*{middle:.5,end:1}[a];for(a=g.length-1;a--&&0<a;)g[a]+=B}if(t&&"start"!==t&&this.xData[0]>=g[0]){a=this.groupMap[0].start;B=this.groupMap[0].length;
var q=void 0;r(a)&&r(B)&&(q=a+(B-1));g[0]={middle:g[0]+.5*C,end:g[0]+C,firstPoint:this.xData[0],lastPoint:q&&this.xData[q]}[t]}z&&"start"!==z&&C&&g[k]>=x-C&&(x=this.groupMap[this.groupMap.length-1].start,g[k]={middle:g[k]+.5*C,end:g[k]+C,firstPoint:x&&this.xData[x],lastPoint:this.xData[this.xData.length-1]}[z])}for(x=1;x<c.length;x++)c.info.segmentStarts&&-1!==c.info.segmentStarts.indexOf(x)||(F=Math.max(c[x]-c[x-1],F));x=c.info;x.gapSize=F;this.closestPointRange=c.info.totalRange;this.groupMap=d.groupMap;
if(f){f=v;if(Q(f[0])&&r(l.min)&&r(l.dataMin)&&f[0]<l.min){if(!Q(l.options.min)&&l.min<=l.dataMin||l.min===l.dataMin)l.min=Math.min(f[0],l.min);l.dataMin=Math.min(f[0],l.dataMin)}if(Q(f[f.length-1])&&r(l.max)&&r(l.dataMax)&&f[f.length-1]>l.max){if(!Q(l.options.max)&&r(l.dataMax)&&l.max>=l.dataMax||l.max===l.dataMax)l.max=Math.max(f[f.length-1],l.max);l.dataMax=Math.max(f[f.length-1],l.dataMax)}}b.groupAll&&(this.allGroupedData=A,b=this.cropData(v,A,l.min,l.max,1),v=b.xData,A=b.yData,this.cropStart=
b.start);this.processedXData=v;this.processedYData=A}else this.groupMap=null;this.hasGroupedData=h;this.currentDataGrouping=x;this.preventGraphAnimation=(p&&p.totalRange)!==(x&&x.totalRange)}};J.destroyGroupedData=function(){this.groupedData&&(this.groupedData.forEach(function(e,b){e&&(this.groupedData[b]=e.destroy?e.destroy():null)},this),this.groupedData.length=0)};J.generatePoints=function(){M.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};a.prototype.applyGrouping=
function(){var e=this;e.series.forEach(function(g){g.groupPixelWidth=void 0;g.groupPixelWidth=e.getGroupPixelWidth&&e.getGroupPixelWidth();g.groupPixelWidth&&(g.hasProcessed=!0);g.applyGrouping()})};a.prototype.getGroupPixelWidth=function(){var e=this.series,b=e.length,l,f=0,h=!1,p;for(l=b;l--;)(p=e[l].options.dataGrouping)&&(f=Math.max(f,D(p.groupPixelWidth,N.groupPixelWidth)));for(l=b;l--;)if(p=e[l].options.dataGrouping)if(b=(e[l].processedXData||e[l].data).length,e[l].groupPixelWidth||b>this.chart.plotSizeX/
f||b&&p.forced)h=!0;return h?f:0};a.prototype.setDataGrouping=function(e,b){var l;b=D(b,!0);e||(e={forced:!1,units:null});if(this instanceof a)for(l=this.series.length;l--;)this.series[l].update({dataGrouping:e},!1);else this.chart.options.series.forEach(function(f){f.dataGrouping=e},!1);this.ordinal&&(this.ordinal.slope=void 0);b&&this.chart.redraw()};u(a,"postProcessData",a.prototype.applyGrouping);u(n,"update",function(){if(this.dataGroup)return e(24,!1,this.series.chart),!1});u(E,"headerFormatter",
function(e){var g=this.chart,l=g.time,f=e.labelConfig,h=f.series,p=h.tooltipOptions,c=h.options.dataGrouping,v=p.xDateFormat,A=h.xAxis,F=p[e.isFooter?"footerFormat":"headerFormat"];if(A&&"datetime"===A.options.type&&c&&r(f.key)){var d=h.currentDataGrouping;c=c.dateTimeLabelFormats||N.dateTimeLabelFormats;if(d)if(p=c[d.unitName],1===d.count)v=p[0];else{v=p[1];var x=p[2]}else!v&&c&&A.dateTime&&(v=A.dateTime.getXDateFormat(f.x,p.dateTimeLabelFormats));v=l.dateFormat(v,f.key);x&&(v+=l.dateFormat(x,f.key+
d.totalRange-1));h.chart.styledMode&&(F=this.styledModeFormat(F));e.text=b(F,{point:O(f.point,{key:v}),series:h},g);e.preventDefault()}});u(R,"destroy",J.destroyGroupedData);u(R,"afterSetOptions",function(e){e=e.options;var b=this.type,l=this.chart.options.plotOptions,f=q.defaultOptions.plotOptions[b].dataGrouping,h=this.useCommonDataGrouping&&N;if(P[b]||h){f||(f=I(N,P[b]));var p=this.chart.rangeSelector;e.dataGrouping=I(h,f,l.series&&l.series.dataGrouping,l[b].dataGrouping,this.userOptions.dataGrouping,
!e.isInternal&&p&&r(p.selected)&&p.buttonOptions[p.selected].dataGrouping)}});u(a,"afterSetScale",function(){this.series.forEach(function(e){e.hasProcessed=!1})});y.dataGrouping=G;"";return G});K(a,"Series/OHLC/OHLCPoint.js",[a["Core/Series/SeriesRegistry.js"]],function(a){var m=this&&this.__extends||function(){var a=function(m,n){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var q in n)n.hasOwnProperty(q)&&(a[q]=n[q])};return a(m,n)};return function(m,
n){function u(){this.constructor=m}a(m,n);m.prototype=null===n?Object.create(n):(u.prototype=n.prototype,new u)}}();return function(a){function u(){var n=null!==a&&a.apply(this,arguments)||this;n.close=void 0;n.high=void 0;n.low=void 0;n.open=void 0;n.options=void 0;n.plotClose=void 0;n.plotOpen=void 0;n.series=void 0;return n}m(u,a);u.prototype.getClassName=function(){return a.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")};u.prototype.resolveUpColor=
function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)};u.prototype.resolveColor=function(){a.prototype.resolveColor.call(this);this.resolveUpColor()};u.prototype.getZone=function(){var n=a.prototype.getZone.call(this);this.resolveUpColor();return n};u.prototype.applyOptions=function(){a.prototype.applyOptions.apply(this,arguments);this.resolveColor&&this.resolveColor();return this};return u}(a.seriesTypes.column.prototype.pointClass)});
K(a,"Series/OHLC/OHLCSeries.js",[a["Series/OHLC/OHLCPoint.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,m,u){var G=this&&this.__extends||function(){var a=function(d,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,d){b.__proto__=d}||function(b,d){for(var a in d)d.hasOwnProperty(a)&&(b[a]=d[a])};return a(d,b)};return function(d,b){function q(){this.constructor=d}a(d,b);d.prototype=null===b?Object.create(b):(q.prototype=b.prototype,new q)}}(),n=m.seriesTypes.column,
R=u.extend,E=u.merge;u=function(a){function d(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;b.yData=void 0;return b}G(d,a);d.prototype.drawPoints=function(){var b=this,d=b.chart,a=function(b,d,a){var e=b[0];b=b[1];"number"===typeof e[2]&&(e[2]=Math.max(a+d,e[2]));"number"===typeof b[2]&&(b[2]=Math.min(a-d,b[2]))};b.points.forEach(function(k){var q=k.graphic,t=!q;if("undefined"!==typeof k.plotY){q||(k.graphic=q=d.renderer.path().add(b.group));d.styledMode||
q.attr(b.pointAttribs(k,k.selected&&"select"));var e=q.strokeWidth();var J=e%2/2;var r=Math.round(k.plotX)-J;var n=Math.round(k.shapeArgs.width/2);var D=[["M",r,Math.round(k.yBottom)],["L",r,Math.round(k.plotHigh)]];if(null!==k.open){var B=Math.round(k.plotOpen)+J;D.push(["M",r,B],["L",r-n,B]);a(D,e/2,B)}null!==k.close&&(B=Math.round(k.plotClose)+J,D.push(["M",r,B],["L",r+n,B]),a(D,e/2,B));q[t?"attr":"animate"]({d:D}).addClass(k.getClassName(),!0)}})};d.prototype.init=function(){a.prototype.init.apply(this,
arguments);this.options.stacking=void 0};d.prototype.pointAttribs=function(b,d){d=a.prototype.pointAttribs.call(this,b,d);var k=this.options;delete d.fill;!b.options.color&&k.upColor&&b.open<b.close&&(d.stroke=k.upColor);return d};d.prototype.toYData=function(b){return[b.open,b.high,b.low,b.close]};d.prototype.translate=function(){var b=this,d=b.yAxis,k=!!b.modifyValue,q=["plotOpen","plotHigh","plotLow","plotClose","yBottom"];a.prototype.translate.apply(b);b.points.forEach(function(a){[a.open,a.high,
a.low,a.close,a.low].forEach(function(t,e){null!==t&&(k&&(t=b.modifyValue(t)),a[q[e]]=d.toPixels(t,!0))});a.tooltipPos[1]=a.plotHigh+d.pos-b.chart.plotTop})};d.defaultOptions=E(n.defaultOptions,{lineWidth:1,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Open: {point.open}<br/>High: {point.high}<br/>Low: {point.low}<br/>Close: {point.close}<br/>'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0});return d}(n);R(u.prototype,{animate:null,
directTouch:!1,pointArrayMap:["open","high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"});u.prototype.pointClass=a;m.registerSeriesType("ohlc",u);"";return u});K(a,"Series/Candlestick/CandlestickSeries.js",[a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,m,u,y){var n=this&&this.__extends||function(){var b=function(d,a){b=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(b,d){b.__proto__=d}||function(b,d){for(var a in d)d.hasOwnProperty(a)&&(b[a]=d[a])};return b(d,a)};return function(d,a){function k(){this.constructor=d}b(d,a);d.prototype=null===a?Object.create(a):(k.prototype=a.prototype,new k)}}(),G=a.defaultOptions;a=u.seriesTypes;var E=a.column,q=a.ohlc,d=y.merge;y=function(b){function a(){var d=null!==b&&b.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}n(a,b);a.prototype.pointAttribs=function(b,d){var a=E.prototype.pointAttribs.call(this,
b,d),k=this.options,e=b.open<b.close,q=k.lineColor||this.color,r=b.color||this.color;a["stroke-width"]=k.lineWidth;a.fill=b.options.color||(e?k.upColor||r:r);a.stroke=b.options.lineColor||(e?k.upLineColor||q:q);d&&(b=k.states[d],a.fill=b.color||a.fill,a.stroke=b.lineColor||a.stroke,a["stroke-width"]=b.lineWidth||a["stroke-width"]);return a};a.prototype.drawPoints=function(){var b=this,d=b.chart,a=b.yAxis.reversed;b.points.forEach(function(k){var e=k.graphic,q=!e;if("undefined"!==typeof k.plotY){e||
(k.graphic=e=d.renderer.path().add(b.group));b.chart.styledMode||e.attr(b.pointAttribs(k,k.selected&&"select")).shadow(b.options.shadow);var r=e.strokeWidth()%2/2;var t=Math.round(k.plotX)-r;var D=k.plotOpen;var B=k.plotClose;var n=Math.min(D,B);D=Math.max(D,B);var m=Math.round(k.shapeArgs.width/2);B=a?D!==k.yBottom:Math.round(n)!==Math.round(k.plotHigh);var J=a?Math.round(n)!==Math.round(k.plotHigh):D!==k.yBottom;n=Math.round(n)+r;D=Math.round(D)+r;r=[];r.push(["M",t-m,D],["L",t-m,n],["L",t+m,n],
["L",t+m,D],["Z"],["M",t,n],["L",t,B?Math.round(a?k.yBottom:k.plotHigh):n],["M",t,D],["L",t,J?Math.round(a?k.plotHigh:k.yBottom):D]);e[q?"attr":"animate"]({d:r}).addClass(k.getClassName(),!0)}})};a.defaultOptions=d(q.defaultOptions,G.plotOptions,{states:{hover:{lineWidth:2}},tooltip:G.plotOptions.ohlc.tooltip,threshold:null,lineColor:m.neutralColor100,lineWidth:1,upColor:m.backgroundColor,stickyTracking:!0});return a}(q);u.registerSeriesType("candlestick",y);"";return y});K(a,"Series/Flags/FlagsPoint.js",
[a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,m){var u=this&&this.__extends||function(){var a=function(n,m){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)d.hasOwnProperty(b)&&(a[b]=d[b])};return a(n,m)};return function(n,m){function q(){this.constructor=n}a(n,m);n.prototype=null===m?Object.create(m):(q.prototype=m.prototype,new q)}}(),G=m.isNumber;return function(a){function n(){var n=null!==a&&a.apply(this,
arguments)||this;n.options=void 0;n.series=void 0;return n}u(n,a);n.prototype.isValid=function(){return G(this.y)||"undefined"===typeof this.y};n.prototype.hasNewShapeType=function(){var a=this.options.shape||this.series.options.shape;return this.graphic&&a&&a!==this.graphic.symbolKey};return n}(a.seriesTypes.column.prototype.pointClass)});K(a,"Mixins/OnSeries.js",[a["Series/Column/ColumnSeries.js"],a["Core/Series/Series.js"],a["Core/Utilities.js"]],function(a,m,u){var G=a.prototype,n=m.prototype,
R=u.defined,E=u.stableSort;return{getPlotBox:function(){return n.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this)},translate:function(){G.translate.apply(this);var a=this,d=a.options,b=a.chart,n=a.points,k=n.length-1,t,m=d.onSeries;m=m&&b.get(m);d=d.onKey||"y";var u=m&&m.options.step,e=m&&m.points,O=e&&e.length,r=b.inverted,I=a.xAxis,D=a.yAxis,B=0,y;if(m&&m.visible&&O){B=(m.pointXOffset||0)+(m.barW||0)/2;b=m.currentDataGrouping;var M=e[O-1].x+(b?b.totalRange:0);
E(n,function(b,e){return b.x-e.x});for(d="plot"+d[0].toUpperCase()+d.substr(1);O--&&n[k];){var N=e[O];b=n[k];b.y=N.y;if(N.x<=b.x&&"undefined"!==typeof N[d]){if(b.x<=M&&(b.plotY=N[d],N.x<b.x&&!u&&(y=e[O+1])&&"undefined"!==typeof y[d])){var P=(b.x-N.x)/(y.x-N.x);b.plotY+=P*(y[d]-N[d]);b.y+=P*(y.y-N.y)}k--;O++;if(0>k)break}}}n.forEach(function(b,e){b.plotX+=B;if("undefined"===typeof b.plotY||r)0<=b.plotX&&b.plotX<=I.len?r?(b.plotY=I.translate(b.x,0,1,0,1),b.plotX=R(b.y)?D.translate(b.y,0,0,0,1):0):b.plotY=
(I.opposite?0:a.yAxis.len)+I.offset:b.shapeArgs={};if((t=n[e-1])&&t.plotX===b.plotX){"undefined"===typeof t.stackIndex&&(t.stackIndex=0);var d=t.stackIndex+1}b.stackIndex=d});this.onSeries=m}}});K(a,"Series/Flags/FlagsSymbols.js",[a["Core/Renderer/RendererRegistry.js"],a["Core/Renderer/SVG/SVGRenderer.js"]],function(a,m){function u(a){y[a+"pin"]=function(n,m,q,d,b){var u=b&&b.anchorX;b=b&&b.anchorY;"circle"===a&&d>q&&(n-=Math.round((d-q)/2),q=d);var k=y[a](n,m,q,d);if(u&&b){var t=u;"circle"===a?t=
n+q/2:(n=k[0],q=k[1],"M"===n[0]&&"L"===q[0]&&(t=(n[1]+q[1])/2));k.push(["M",t,m>b?m:m+d],["L",u,b]);k=k.concat(y.circle(u-1,b-1,2,2))}return k}}var y=m.prototype.symbols;y.flag=function(a,m,u,q,d){var b=d&&d.anchorX||a;d=d&&d.anchorY||m;var n=y.circle(b-1,d-1,2,2);n.push(["M",b,d],["L",a,m+q],["L",a,m],["L",a+u,m],["L",a+u,m+q],["L",a,m+q],["Z"]);return n};u("circle");u("square");a=a.getRendererType();a!==m&&(a.prototype.symbols.circlepin=y.circlepin,a.prototype.symbols.flag=y.flag,a.prototype.symbols.squarepin=
y.squarepin);return y});K(a,"Series/Flags/FlagsSeries.js",[a["Series/Flags/FlagsPoint.js"],a["Core/Globals.js"],a["Mixins/OnSeries.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererUtilities.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,m,u,y,n,R,E,q){var d=this&&this.__extends||function(){var b=function(a,e){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var e in a)a.hasOwnProperty(e)&&
(b[e]=a[e])};return b(a,e)};return function(a,e){function d(){this.constructor=a}b(a,e);a.prototype=null===e?Object.create(e):(d.prototype=e.prototype,new d)}}();m=m.noop;var b=n.distribute,J=R.series,k=R.seriesTypes.column,t=q.addEvent,G=q.defined;n=q.extend;var Q=q.merge,e=q.objectEach,O=q.wrap;q=function(a){function r(){var b=null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}d(r,a);r.prototype.animate=function(b){b&&this.setClip()};r.prototype.drawPoints=
function(){var a=this.points,d=this.chart,k=d.renderer,r=d.inverted,m=this.options,n=m.y,q,g=this.yAxis,t={},l=[];for(q=a.length;q--;){var f=a[q];var h=(r?f.plotY:f.plotX)>this.xAxis.len;var p=f.plotX;var c=f.stackIndex;var v=f.options.shape||m.shape;var A=f.plotY;"undefined"!==typeof A&&(A=f.plotY+n-("undefined"!==typeof c&&c*m.stackDistance));f.anchorX=c?void 0:f.plotX;var F=c?void 0:f.plotY;var H="flag"!==v;c=f.graphic;"undefined"!==typeof A&&0<=p&&!h?(c&&f.hasNewShapeType()&&(c=c.destroy()),c||
(c=f.graphic=k.label("",null,null,v,null,null,m.useHTML).addClass("highcharts-point").add(this.markerGroup),f.graphic.div&&(f.graphic.div.point=f),c.isNew=!0),c.attr({align:H?"center":"left",width:m.width,height:m.height,"text-align":m.textAlign}),d.styledMode||c.attr(this.pointAttribs(f)).css(Q(m.style,f.style)).shadow(m.shadow),0<p&&(p-=c.strokeWidth()%2),v={y:A,anchorY:F},m.allowOverlapX&&(v.x=p,v.anchorX=f.anchorX),c.attr({text:f.options.title||m.title||"A"})[c.isNew?"attr":"animate"](v),m.allowOverlapX||
(t[f.plotX]?t[f.plotX].size=Math.max(t[f.plotX].size,c.width):t[f.plotX]={align:H?.5:0,size:c.width,target:p,anchorX:p}),f.tooltipPos=[p,A+g.pos-d.plotTop]):c&&(f.graphic=c.destroy())}m.allowOverlapX||(e(t,function(c){c.plotX=c.anchorX;l.push(c)}),b(l,r?g.len:this.xAxis.len,100),a.forEach(function(c){var v=c.graphic&&t[c.plotX];v&&(c.graphic[c.graphic.isNew?"attr":"animate"]({x:v.pos+v.align*v.size,anchorX:c.anchorX}),G(v.pos)?c.graphic.isNew=!1:(c.graphic.attr({x:-9999,anchorX:-9999}),c.graphic.isNew=
!0))}));m.useHTML&&O(this.markerGroup,"on",function(c){return E.prototype.on.apply(c.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})};r.prototype.drawTracker=function(){var b=this.points;a.prototype.drawTracker.call(this);b.forEach(function(a){var e=a.graphic;e&&(a.unbindMouseOver&&a.unbindMouseOver(),a.unbindMouseOver=t(e.element,"mouseover",function(){0<a.stackIndex&&!a.raised&&(a._y=e.y,e.attr({y:a._y-8}),a.raised=!0);b.forEach(function(b){b!==a&&b.raised&&b.graphic&&(b.graphic.attr({y:b._y}),
b.raised=!1)})}))})};r.prototype.pointAttribs=function(b,a){var e=this.options,d=b&&b.color||this.color,k=e.lineColor,r=b&&b.lineWidth;b=b&&b.fillColor||e.fillColor;a&&(b=e.states[a].fillColor,k=e.states[a].lineColor,r=e.states[a].lineWidth);return{fill:b||d,stroke:k||d,"stroke-width":r||e.lineWidth||0}};r.prototype.setClip=function(){J.prototype.setClip.apply(this,arguments);!1!==this.options.clip&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])};
r.defaultOptions=Q(k.defaultOptions,{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}"},threshold:null,y:-30,fillColor:y.backgroundColor,lineWidth:1,states:{hover:{lineColor:y.neutralColor100,fillColor:y.highlightColor20}},style:{fontSize:"11px",fontWeight:"bold"}});return r}(k);n(q.prototype,{allowDG:!1,buildKDTree:m,forceCrop:!0,getPlotBox:u.getPlotBox,init:J.prototype.init,invertGroups:m,invertible:!1,noSharedTooltip:!0,pointClass:a,
sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],translate:u.translate});R.registerSeriesType("flags",q);"";"";return q});K(a,"Core/Axis/ScrollbarAxis.js",[a["Core/Utilities.js"]],function(a){var m=a.addEvent,u=a.defined,y=a.pick;return function(){function a(){}a.compose=function(n,E){if(-1===a.composed.indexOf(n))a.composed.push(n);else return n;var q=function(a){var b=y(a.options&&a.options.min,a.min),d=y(a.options&&a.options.max,a.max);return{axisMin:b,axisMax:d,scrollMin:u(a.dataMin)?
Math.min(b,a.min,a.dataMin,y(a.threshold,Infinity)):b,scrollMax:u(a.dataMax)?Math.max(d,a.max,a.dataMax,y(a.threshold,-Infinity)):d}};m(n,"afterInit",function(){var a=this;a.options&&a.options.scrollbar&&a.options.scrollbar.enabled&&(a.options.scrollbar.vertical=!a.horiz,a.options.startOnTick=a.options.endOnTick=!1,a.scrollbar=new E(a.chart.renderer,a.options.scrollbar,a.chart),m(a.scrollbar,"changed",function(b){var d=q(a),k=d.axisMax,m=d.scrollMin,n=d.scrollMax-m;u(d.axisMin)&&u(k)&&(a.horiz&&!a.reversed||
!a.horiz&&a.reversed?(d=m+n*this.to,m+=n*this.from):(d=m+n*(1-this.from),m+=n*(1-this.to)),this.shouldUpdateExtremes(b.DOMType)?a.setExtremes(m,d,!0,"mousemove"!==b.DOMType&&"touchmove"!==b.DOMType,b):this.setRange(this.from,this.to))}))});m(n,"afterRender",function(){var a=q(this),b=a.scrollMin,m=a.scrollMax;a=this.scrollbar;var k=this.axisTitleMargin+(this.titleOffset||0),n=this.chart.scrollbarsOffsets,y=this.options.margin||0;a&&(this.horiz?(this.opposite||(n[1]+=k),a.position(this.left,this.top+
this.height+2+n[1]-(this.opposite?y:0),this.width,this.height),this.opposite||(n[1]+=y),k=1):(this.opposite&&(n[0]+=k),a.position(this.left+this.width+2+n[0]-(this.opposite?0:y),this.top,this.width,this.height),this.opposite&&(n[0]+=y),k=0),n[k]+=a.size+a.options.margin,isNaN(b)||isNaN(m)||!u(this.min)||!u(this.max)||this.min===this.max?a.setRange(0,1):(n=(this.min-b)/(m-b),b=(this.max-b)/(m-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?a.setRange(n,b):a.setRange(1-b,1-n)))});m(n,"afterGetOffset",
function(){var a=this.horiz?2:1,b=this.scrollbar;b&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[a]+=b.size+b.options.margin)});return n};a.composed=[];return a}()});K(a,"Core/ScrollbarDefaults.js",[a["Core/Globals.js"],a["Core/Color/Palette.js"]],function(a,m){return{height:a.isTouchDevice?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:m.neutralColor20,barBorderWidth:1,barBorderColor:m.neutralColor20,buttonArrowColor:m.neutralColor80,
buttonBackgroundColor:m.neutralColor10,buttonBorderColor:m.neutralColor20,buttonBorderWidth:1,rifleColor:m.neutralColor80,trackBackgroundColor:m.neutralColor5,trackBorderColor:m.neutralColor5,trackBorderWidth:1}});K(a,"Core/Scrollbar.js",[a["Core/DefaultOptions.js"],a["Core/Globals.js"],a["Core/Axis/ScrollbarAxis.js"],a["Core/ScrollbarDefaults.js"],a["Core/Utilities.js"]],function(a,m,u,y,n){var G=a.defaultOptions,E=n.addEvent,q=n.correctFloat,d=n.defined,b=n.destroyObjectProperties,J=n.fireEvent,
k=n.merge,t=n.pick,S=n.removeEvent;a=function(){function a(a,b,d){this._events=[];this.chart=void 0;this.from=this.chartY=this.chartX=0;this.scrollbar=this.renderer=this.options=this.group=void 0;this.scrollbarButtons=[];this.scrollbarGroup=void 0;this.scrollbarLeft=0;this.scrollbarRifles=void 0;this.scrollbarStrokeWidth=1;this.to=this.size=this.scrollbarTop=0;this.track=void 0;this.trackBorderWidth=1;this.userOptions=void 0;this.y=this.x=0;this.init(a,b,d)}a.compose=function(b){u.compose(b,a)};a.swapXY=
function(a,b){b&&a.forEach(function(a){for(var b=a.length,e,d=0;d<b;d+=2)e=a[d+1],"number"===typeof e&&(a[d+1]=a[d+2],a[d+2]=e)});return a};a.prototype.addEvents=function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,d=this.scrollbarGroup.element,k=this.track.element,n=this.mouseDownHandler.bind(this),q=this.mouseMoveHandler.bind(this),t=this.mouseUpHandler.bind(this);a=[[b[a[0]].element,"click",this.buttonToMinClick.bind(this)],[b[a[1]].element,"click",this.buttonToMaxClick.bind(this)],
[k,"click",this.trackClick.bind(this)],[d,"mousedown",n],[d.ownerDocument,"mousemove",q],[d.ownerDocument,"mouseup",t]];m.hasTouch&&a.push([d,"touchstart",n],[d.ownerDocument,"touchmove",q],[d.ownerDocument,"touchend",t]);a.forEach(function(a){E.apply(null,a)});this._events=a};a.prototype.buttonToMaxClick=function(a){var b=(this.to-this.from)*t(this.options.step,.2);this.updatePosition(this.from+b,this.to+b);J(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.buttonToMinClick=
function(a){var b=q(this.to-this.from)*t(this.options.step,.2);this.updatePosition(q(this.from-b),q(this.to-b));J(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.cursorToScrollbarPosition=function(a){var b=this.options;b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}};a.prototype.destroy=function(){var a=this,d=a.chart.scroller;a.removeEvents();
["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(b){a[b]&&a[b].destroy&&(a[b]=a[b].destroy())});d&&a===d.scrollbar&&(d.scrollbar=null,b(d.scrollbarButtons))};a.prototype.drawScrollbarButton=function(b){var e=this.renderer,d=this.scrollbarButtons,k=this.options,m=this.size,n=e.g().add(this.group);d.push(n);n=e.rect().addClass("highcharts-scrollbar-button").add(n);this.chart.styledMode||n.attr({stroke:k.buttonBorderColor,"stroke-width":k.buttonBorderWidth,fill:k.buttonBackgroundColor});
n.attr(n.crisp({x:-.5,y:-.5,width:m+1,height:m+1,r:k.buttonBorderRadius},n.strokeWidth()));n=e.path(a.swapXY([["M",m/2+(b?-1:1),m/2-3],["L",m/2+(b?-1:1),m/2+3],["L",m/2+(b?2:-2),m/2]],k.vertical)).addClass("highcharts-scrollbar-arrow").add(d[b]);this.chart.styledMode||n.attr({fill:k.buttonArrowColor})};a.prototype.init=function(a,b,d){this.scrollbarButtons=[];this.renderer=a;this.userOptions=b;this.options=k(y,G.scrollbar,b);this.chart=d;this.size=t(this.options.size,this.options.height);b.enabled&&
(this.render(),this.addEvents())};a.prototype.mouseDownHandler=function(a){a=this.chart.pointer.normalize(a);a=this.cursorToScrollbarPosition(a);this.chartX=a.chartX;this.chartY=a.chartY;this.initPositions=[this.from,this.to];this.grabbedCenter=!0};a.prototype.mouseMoveHandler=function(a){var b=this.chart.pointer.normalize(a),e=this.options.vertical?"chartY":"chartX",d=this.initPositions||[];!this.grabbedCenter||a.touches&&0===a.touches[0][e]||(b=this.cursorToScrollbarPosition(b)[e],e=this[e],e=b-
e,this.hasDragged=!0,this.updatePosition(d[0]+e,d[1]+e),this.hasDragged&&J(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a}))};a.prototype.mouseUpHandler=function(a){this.hasDragged&&J(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:a.type,DOMEvent:a});this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null};a.prototype.position=function(a,b,d,k){var e=this.options.vertical,m=this.rendered?"animate":"attr",n=0;this.x=a;this.y=b+
this.trackBorderWidth;this.width=d;this.xOffset=this.height=k;this.yOffset=n;e?(this.width=this.yOffset=d=n=this.size,this.xOffset=b=0,this.barWidth=k-2*d,this.x=a+=this.options.margin):(this.height=this.xOffset=k=b=this.size,this.barWidth=d-2*k,this.y+=this.options.margin);this.group[m]({translateX:a,translateY:this.y});this.track[m]({width:d,height:k});this.scrollbarButtons[1][m]({translateX:e?0:d-b,translateY:e?k-n:0})};a.prototype.removeEvents=function(){this._events.forEach(function(a){S.apply(null,
a)});this._events.length=0};a.prototype.render=function(){var b=this.renderer,d=this.options,k=this.size,m=this.chart.styledMode,n=b.g("scrollbar").attr({zIndex:d.zIndex,translateY:-99999}).add();this.group=n;this.track=b.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:d.trackBorderRadius||0,height:k,width:k}).add(n);m||this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%
2/2});this.scrollbarGroup=b.g().add(n);this.scrollbar=b.rect().addClass("highcharts-scrollbar-thumb").attr({height:k,width:k,r:d.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=b.path(a.swapXY([["M",-3,k/4],["L",-3,2*k/3],["M",0,k/4],["L",0,2*k/3],["M",3,k/4],["L",3,2*k/3]],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);m||(this.scrollbar.attr({fill:d.barBackgroundColor,stroke:d.barBorderColor,"stroke-width":d.barBorderWidth}),this.scrollbarRifles.attr({stroke:d.rifleColor,
"stroke-width":1}));this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)};a.prototype.setRange=function(a,b){var e=this.options,k=e.vertical,m=e.minWidth,n=this.barWidth,t=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(d(n)){var u=n*Math.min(b,1);a=Math.max(a,0);var y=Math.ceil(n*a);this.calculatedWidth=
u=q(u-y);u<m&&(y=(n-m+u)*a,u=m);m=Math.floor(y+this.xOffset+this.yOffset);n=u/2-.5;this.from=a;this.to=b;k?(this.scrollbarGroup[t]({translateY:m}),this.scrollbar[t]({height:u}),this.scrollbarRifles[t]({translateY:n}),this.scrollbarTop=m,this.scrollbarLeft=0):(this.scrollbarGroup[t]({translateX:m}),this.scrollbar[t]({width:u}),this.scrollbarRifles[t]({translateX:n}),this.scrollbarLeft=m,this.scrollbarTop=0);12>=u?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0);!1===e.showFull&&(0>=a&&1<=
b?this.group.hide():this.group.show());this.rendered=!0}};a.prototype.shouldUpdateExtremes=function(a){return t(this.options.liveRedraw,m.svg&&!m.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===a||"touchend"===a||!d(a)};a.prototype.trackClick=function(a){var b=this.chart.pointer.normalize(a),d=this.to-this.from,e=this.y+this.scrollbarTop,k=this.x+this.scrollbarLeft;this.options.vertical&&b.chartY>e||!this.options.vertical&&b.chartX>k?this.updatePosition(this.from+d,this.to+d):this.updatePosition(this.from-
d,this.to-d);J(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:a})};a.prototype.update=function(a){this.destroy();this.init(this.chart.renderer,k(!0,this.options,a),this.chart)};a.prototype.updatePosition=function(a,b){1<b&&(a=q(1-q(b-a)),b=1);0>a&&(b=q(b-a),a=0);this.from=a;this.to=b};a.defaultOptions=y;return a}();G.scrollbar=k(!0,a.defaultOptions,G.scrollbar);return a});K(a,"Core/Axis/NavigatorAxis.js",[a["Core/Globals.js"],a["Core/Utilities.js"]],function(a,m){var u=a.isTouchDevice,
y=m.addEvent,n=m.correctFloat,G=m.defined,E=m.isNumber,q=m.pick,d=function(){function a(a){this.axis=a}a.prototype.destroy=function(){this.axis=void 0};a.prototype.toFixedRange=function(a,b,d,m){var k=this.axis,e=k.chart;e=e&&e.fixedRange;var t=(k.pointRange||0)/2;a=q(d,k.translate(a,!0,!k.horiz));b=q(m,k.translate(b,!0,!k.horiz));k=e&&(b-a)/e;G(d)||(a=n(a+t));G(m)||(b=n(b-t));.7<k&&1.3>k&&(m?a=b-e:b=a+e);E(a)&&E(b)||(a=b=void 0);return{min:a,max:b}};return a}();return function(){function a(){}a.compose=
function(a){a.keepProps.push("navigatorAxis");y(a,"init",function(){this.navigatorAxis||(this.navigatorAxis=new d(this))});y(a,"zoom",function(a){var b=this.chart.options,d=b.navigator,k=this.navigatorAxis,e=b.chart.pinchType,m=b.rangeSelector;b=b.chart.zoomType;this.isXAxis&&(d&&d.enabled||m&&m.enabled)&&("y"===b?a.zoomed=!1:(!u&&"xy"===b||u&&"xy"===e)&&this.options.range&&(d=k.previousZoom,G(a.newMin)?k.previousZoom=[this.min,this.max]:d&&(a.newMin=d[0],a.newMax=d[1],k.previousZoom=void 0)));"undefined"!==
typeof a.zoomed&&a.preventDefault()})};a.AdditionsClass=d;return a}()});K(a,"Core/Navigator.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Color/Color.js"],a["Core/Globals.js"],a["Core/Axis/NavigatorAxis.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Renderer/RendererRegistry.js"],a["Core/Scrollbar.js"],a["Core/Series/Series.js"],a["Core/Series/SeriesRegistry.js"],a["Core/Utilities.js"]],function(a,m,u,y,n,K,E,q,d,b,J,k){u=u.parse;var t=y.hasTouch,G=y.isTouchDevice,
Q=K.defaultOptions,e=k.addEvent,O=k.clamp,r=k.correctFloat,I=k.defined,D=k.destroyObjectProperties,B=k.erase,R=k.extend,M=k.find,N=k.isArray,P=k.isNumber,L=k.merge,g=k.pick,w=k.removeEvent,l=k.splat,f=function(a){for(var c=[],b=1;b<arguments.length;b++)c[b-1]=arguments[b];c=[].filter.call(c,P);if(c.length)return Math[a].apply(0,c)};K="undefined"===typeof J.seriesTypes.areaspline?"line":"areaspline";R(Q,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle",
"navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:E.neutralColor5,borderColor:E.neutralColor40},maskFill:u(E.highlightColor60).setOpacity(.3).get(),outlineColor:E.neutralColor20,outlineWidth:1,series:{type:K,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",units:[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",
[1,2,3,4,6,8,12]],["day",[1,2,3,4]],["week",[1,2,3]],["month",[1,3,6]],["year",null]]},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:E.neutralColor10,gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:E.neutralColor40},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",
gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});q.getRendererType().prototype.symbols["navigator-handle"]=function(a,c,b,f,h){a=(h&&h.width||0)/2;c=Math.round(a/3)+.5;h=h&&h.height||0;return[["M",-a-1,.5],["L",a,.5],["L",a,h+.5],["L",-a-1,h+.5],["L",-a-1,.5],["M",-c,4],["L",-c,h-3],["M",c-1,4],["L",c-1,h-3]]};var h=function(){function b(c){this.zoomedMin=this.zoomedMax=this.yAxis=this.xAxis=this.top=
this.size=this.shades=this.rendered=this.range=this.outlineHeight=this.outline=this.opposite=this.navigatorSize=this.navigatorSeries=this.navigatorOptions=this.navigatorGroup=this.navigatorEnabled=this.left=this.height=this.handles=this.chart=this.baseSeries=void 0;this.init(c)}b.prototype.drawHandle=function(c,a,b,f){var v=this.navigatorOptions.handles.height;this.handles[a][f](b?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(c,10)+.5-v)}:{translateX:Math.round(this.left+
parseInt(c,10)),translateY:Math.round(this.top+this.height/2-v/2-1)})};b.prototype.drawOutline=function(c,a,b,f){var v=this.navigatorOptions.maskInside,h=this.outline.strokeWidth(),p=h/2,A=h%2/2;h=this.outlineHeight;var d=this.scrollbarHeight||0,l=this.size,e=this.left-d,g=this.top;b?(e-=p,b=g+a+A,a=g+c+A,A=[["M",e+h,g-d-A],["L",e+h,b],["L",e,b],["L",e,a],["L",e+h,a],["L",e+h,g+l+d]],v&&A.push(["M",e+h,b-p],["L",e+h,a+p])):(c+=e+d-A,a+=e+d-A,g+=p,A=[["M",e,g],["L",c,g],["L",c,g+h],["L",a,g+h],["L",
a,g],["L",e+l+2*d,g]],v&&A.push(["M",c-p,g],["L",a+p,g]));this.outline[f]({d:A})};b.prototype.drawMasks=function(c,a,b,f){var v=this.left,h=this.top,p=this.height;if(b){var A=[v,v,v];var d=[h,h+c,h+a];var e=[p,p,p];var l=[c,a-c,this.size-a]}else A=[v,v+c,v+a],d=[h,h,h],e=[c,a-c,this.size-a],l=[p,p,p];this.shades.forEach(function(c,a){c[f]({x:A[a],y:d[a],width:e[a],height:l[a]})})};b.prototype.renderElements=function(){var c=this,a=c.navigatorOptions,b=a.maskInside,f=c.chart,h=f.renderer,p,d={cursor:f.inverted?
"ns-resize":"ew-resize"};c.navigatorGroup=p=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();[!b,b,!b].forEach(function(b,v){c.shades[v]=h.rect().addClass("highcharts-navigator-mask"+(1===v?"-inside":"-outside")).add(p);f.styledMode||c.shades[v].attr({fill:b?a.maskFill:"rgba(0,0,0,0)"}).css(1===v&&d)});c.outline=h.path().addClass("highcharts-navigator-outline").add(p);f.styledMode||c.outline.attr({"stroke-width":a.outlineWidth,stroke:a.outlineColor});a.handles.enabled&&[0,1].forEach(function(b){a.handles.inverted=
f.inverted;c.handles[b]=h.symbol(a.handles.symbols[b],-a.handles.width/2-1,0,a.handles.width,a.handles.height,a.handles);c.handles[b].attr({zIndex:7-b}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][b]).add(p);if(!f.styledMode){var v=a.handles;c.handles[b].attr({fill:v.backgroundColor,stroke:v.borderColor,"stroke-width":v.lineWidth}).css(d)}})};b.prototype.update=function(a){(this.series||[]).forEach(function(a){a.baseSeries&&delete a.baseSeries.navigatorSeries});
this.destroy();L(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)};b.prototype.render=function(a,b,f,h){var c=this.chart,v=this.scrollbarHeight,p,d=this.xAxis,A=d.pointRange||0;var e=d.navigatorAxis.fake?c.xAxis[0]:d;var l=this.navigatorEnabled,k,F=this.rendered;var m=c.inverted;var n=c.xAxis[0].minRange,q=c.xAxis[0].options.maxRange;if(!this.hasDragged||I(f)){a=r(a-A/2);b=r(b+A/2);if(!P(a)||!P(b))if(F)f=0,h=g(d.width,e.width);else return;this.left=g(d.left,c.plotLeft+v+(m?c.plotWidth:
0));this.size=k=p=g(d.len,(m?c.plotHeight:c.plotWidth)-2*v);c=m?v:p+2*v;f=g(f,d.toPixels(a,!0));h=g(h,d.toPixels(b,!0));P(f)&&Infinity!==Math.abs(f)||(f=0,h=c);a=d.toValue(f,!0);b=d.toValue(h,!0);var u=Math.abs(r(b-a));u<n?this.grabbedLeft?f=d.toPixels(b-n-A,!0):this.grabbedRight&&(h=d.toPixels(a+n+A,!0)):I(q)&&r(u-A)>q&&(this.grabbedLeft?f=d.toPixels(b-q-A,!0):this.grabbedRight&&(h=d.toPixels(a+q+A,!0)));this.zoomedMax=O(Math.max(f,h),0,k);this.zoomedMin=O(this.fixedWidth?this.zoomedMax-this.fixedWidth:
Math.min(f,h),0,k);this.range=this.zoomedMax-this.zoomedMin;k=Math.round(this.zoomedMax);f=Math.round(this.zoomedMin);l&&(this.navigatorGroup.attr({visibility:"visible"}),F=F&&!this.hasDragged?"animate":"attr",this.drawMasks(f,k,m,F),this.drawOutline(f,k,m,F),this.navigatorOptions.handles.enabled&&(this.drawHandle(f,0,m,F),this.drawHandle(k,1,m,F)));this.scrollbar&&(m?(m=this.top-v,e=this.left-v+(l||!e.opposite?0:(e.titleOffset||0)+e.axisTitleMargin),v=p+2*v):(m=this.top+(l?this.height:-v),e=this.left-
v),this.scrollbar.position(e,m,c,v),this.scrollbar.setRange(this.zoomedMin/(p||1),this.zoomedMax/(p||1)));this.rendered=!0}};b.prototype.addMouseEvents=function(){var a=this,b=a.chart,f=b.container,h=[],p,d;a.mouseMoveHandler=p=function(c){a.onMouseMove(c)};a.mouseUpHandler=d=function(c){a.onMouseUp(c)};h=a.getPartsEvents("mousedown");h.push(e(b.renderTo,"mousemove",p),e(f.ownerDocument,"mouseup",d));t&&(h.push(e(b.renderTo,"touchmove",p),e(f.ownerDocument,"touchend",d)),h.concat(a.getPartsEvents("touchstart")));
a.eventsToUnbind=h;a.series&&a.series[0]&&h.push(e(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))};b.prototype.getPartsEvents=function(a){var c=this,b=[];["shades","handles"].forEach(function(f){c[f].forEach(function(v,h){b.push(e(v.element,a,function(a){c[f+"Mousedown"](a,h)}))})});return b};b.prototype.shadesMousedown=function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,f=this.xAxis,h=this.zoomedMin,v=this.left,p=this.size,d=this.range,e=a.chartX;
c.inverted&&(e=a.chartY,v=this.top);if(1===b)this.grabbedCenter=e,this.fixedWidth=d,this.dragOffset=e-h;else{a=e-v-d/2;if(0===b)a=Math.max(0,a);else if(2===b&&a+d>=p)if(a=p-d,this.reversedExtremes){a-=d;var l=this.getUnionExtremes().dataMin}else var g=this.getUnionExtremes().dataMax;a!==h&&(this.fixedWidth=d,b=f.navigatorAxis.toFixedRange(a,a+d,l,g),I(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"}))}};b.prototype.handlesMousedown=function(a,
b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],f=this.reversedExtremes;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=f?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=f?c.max:c.min);a.fixedRange=null};b.prototype.onMouseMove=function(a){var c=this,b=c.chart,f=c.left,h=c.navigatorSize,p=c.range,d=c.dragOffset,e=b.inverted;a.touches&&0===a.touches[0].pageX||(a=b.pointer.normalize(a),b=a.chartX,e&&(f=c.top,b=
a.chartY),c.grabbedLeft?(c.hasDragged=!0,c.render(0,0,b-f,c.otherHandlePos)):c.grabbedRight?(c.hasDragged=!0,c.render(0,0,c.otherHandlePos,b-f)):c.grabbedCenter&&(c.hasDragged=!0,b<d?b=d:b>h+d-p&&(b=h+d-p),c.render(0,0,b-d,b-d+p)),c.hasDragged&&c.scrollbar&&g(c.scrollbar.options.liveRedraw,y.svg&&!G&&!this.chart.isBoosting)&&(a.DOMType=a.type,setTimeout(function(){c.onMouseUp(a)},0)))};b.prototype.onMouseUp=function(a){var c=this.chart,b=this.xAxis,f=this.scrollbar,h=a.DOMEvent||a,p=c.inverted,d=
this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!f||!f.hasDragged)||"scrollbar"===a.trigger){f=this.getUnionExtremes();if(this.zoomedMin===this.otherHandlePos)var e=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var l=this.fixedExtreme;this.zoomedMax===this.size&&(l=this.reversedExtremes?f.dataMin:f.dataMax);0===this.zoomedMin&&(e=this.reversedExtremes?f.dataMax:f.dataMin);b=b.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,e,l);I(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,
b.max),Math.max(b.min,b.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:h})}"mousemove"!==a.DOMType&&"touchmove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null);this.navigatorEnabled&&P(this.zoomedMin)&&P(this.zoomedMax)&&(c=Math.round(this.zoomedMin),a=Math.round(this.zoomedMax),this.shades&&this.drawMasks(c,a,p,d),this.outline&&this.drawOutline(c,
a,p,d),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(c,0,p,d),this.drawHandle(a,1,p,d)))};b.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()};b.prototype.removeBaseSeriesEvents=function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&a.forEach(function(a){w(a,"updatedData",
this.updatedDataHandler)},this),a[0].xAxis&&w(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))};b.prototype.init=function(c){var b=c.options,h=b.navigator,p=h.enabled,l=b.scrollbar,k=l.enabled;b=p?h.height:0;var m=k?l.height:0;this.handles=[];this.shades=[];this.chart=c;this.setBaseSeries();this.height=b;this.scrollbarHeight=m;this.scrollbarEnabled=k;this.navigatorEnabled=p;this.navigatorOptions=h;this.scrollbarOptions=l;this.outlineHeight=b+m;this.opposite=g(h.opposite,!(p||!c.inverted));
var z=this;p=z.baseSeries;l=c.xAxis.length;k=c.yAxis.length;var q=p&&p[0]&&p[0].xAxis||c.xAxis[0]||{options:{}};c.isDirtyBox=!0;z.navigatorEnabled?(z.xAxis=new a(c,L({breaks:q.options.breaks,ordinal:q.options.ordinal},h.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:l,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},c.inverted?{offsets:[m,0,-m,0],width:b}:{offsets:[0,-m,0,m],height:b})),z.yAxis=new a(c,
L(h.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:k,isInternal:!0,reversed:g(h.yAxis&&h.yAxis.reversed,c.yAxis[0]&&c.yAxis[0].reversed,!1),zoomEnabled:!1},c.inverted?{width:b}:{height:b})),p||h.series.data?z.updateNavigatorSeries(!1):0===c.series.length&&(z.unbindRedraw=e(c,"beforeRedraw",function(){0<c.series.length&&!z.series&&(z.setBaseSeries(),z.unbindRedraw())})),z.reversedExtremes=c.inverted&&!z.xAxis.reversed||!c.inverted&&z.xAxis.reversed,z.renderElements(),z.addMouseEvents()):
(z.xAxis={chart:c,navigatorAxis:{fake:!0},translate:function(a,b){var h=c.xAxis[0],p=h.getExtremes(),d=h.len-2*m,v=f("min",h.options.min,p.dataMin);h=f("max",h.options.max,p.dataMax)-v;return b?a*h/d+v:d*(a-v)/h},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)}},z.xAxis.navigatorAxis.axis=z.xAxis,z.xAxis.navigatorAxis.toFixedRange=n.AdditionsClass.prototype.toFixedRange.bind(z.xAxis.navigatorAxis));c.options.scrollbar.enabled&&(c.scrollbar=z.scrollbar=
new d(c.renderer,L(c.options.scrollbar,{margin:z.navigatorEnabled?0:10,vertical:c.inverted}),c),e(z.scrollbar,"changed",function(a){var c=z.size,b=c*this.to;c*=this.from;z.hasDragged=z.scrollbar.hasDragged;z.render(0,0,c,b);this.shouldUpdateExtremes(a.DOMType)&&setTimeout(function(){z.onMouseUp(a)})}));z.addBaseSeriesEvents();z.addChartEvents()};b.prototype.getUnionExtremes=function(a){var c=this.chart.xAxis[0],b=this.xAxis,h=b.options,p=c.options,d;a&&null===c.dataMin||(d={dataMin:g(h&&h.min,f("min",
p.min,c.dataMin,b.dataMin,b.min)),dataMax:g(h&&h.max,f("max",p.max,c.dataMax,b.dataMax,b.max))});return d};b.prototype.setBaseSeries=function(a,b){var c=this.chart,f=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||(c.series.length?M(c.series,function(a){return!a.options.isInternal}).index:0);(c.series||[]).forEach(function(c,b){c.options.isInternal||!c.options.showInNavigator&&(b!==a&&c.options.id!==a||!1===c.options.showInNavigator)||f.push(c)});this.xAxis&&!this.xAxis.navigatorAxis.fake&&
this.updateNavigatorSeries(!0,b)};b.prototype.updateNavigatorSeries=function(a,b){var c=this,f=c.chart,h=c.baseSeries,p,d,v=c.navigatorOptions.series,e,k={enableMouseTracking:!1,index:null,linkedTo:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:void 0,isInternal:!0,states:{inactive:{opacity:1}}},m=c.series=(c.series||[]).filter(function(a){var b=a.baseSeries;return 0>h.indexOf(b)?(b&&(w(b,"updatedData",c.updatedDataHandler),delete b.navigatorSeries),
a.chart&&a.destroy(),!1):!0});h&&h.length&&h.forEach(function(a){var A=a.navigatorSeries,n=R({color:a.color,visible:a.visible},N(v)?Q.navigator.series:v);A&&!1===c.navigatorOptions.adaptToUpdatedData||(k.name="Navigator "+h.length,p=a.options||{},e=p.navigatorOptions||{},n.dataLabels=l(n.dataLabels),d=L(p,k,n,e),d.pointRange=g(n.pointRange,e.pointRange,Q.plotOptions[d.type||"line"].pointRange),n=e.data||n.data,c.hasNavigatorData=c.hasNavigatorData||!!n,d.data=n||p.data&&p.data.slice(0),A&&A.options?
A.update(d,b):(a.navigatorSeries=f.initSeries(d),a.navigatorSeries.baseSeries=a,m.push(a.navigatorSeries)))});if(v.data&&(!h||!h.length)||N(v))c.hasNavigatorData=!1,v=l(v),v.forEach(function(a,b){k.name="Navigator "+(m.length+1);d=L(Q.navigator.series,{color:f.series[b]&&!f.series[b].options.isInternal&&f.series[b].color||f.options.colors[b]||f.options.colors[0]},k,a);d.data=a.data;d.data&&(c.hasNavigatorData=!0,m.push(f.initSeries(d)))});a&&this.addBaseSeriesEvents()};b.prototype.addBaseSeriesEvents=
function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&b[0].eventsToUnbind.push(e(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes));b.forEach(function(c){c.eventsToUnbind.push(e(c,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}));c.eventsToUnbind.push(e(c,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}));!1!==this.navigatorOptions.adaptToUpdatedData&&c.xAxis&&c.eventsToUnbind.push(e(c,"updatedData",this.updatedDataHandler));
c.eventsToUnbind.push(e(c,"remove",function(){this.navigatorSeries&&(B(a.series,this.navigatorSeries),I(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))},this)};b.prototype.getBaseSeriesMin=function(a){return this.baseSeries.reduce(function(a,c){return Math.min(a,c.xData?c.xData[0]:a)},a)};b.prototype.modifyNavigatorAxisExtremes=function(){var a=this.xAxis,b;"undefined"!==typeof a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===
a.max||(a.min=b.dataMin,a.max=b.dataMax))};b.prototype.modifyBaseAxisExtremes=function(){var a=this.chart.navigator,b=this.getExtremes(),f=b.dataMin,h=b.dataMax;b=b.max-b.min;var p=a.stickToMin,d=a.stickToMax,e=g(this.options.overscroll,0),l=a.series&&a.series[0],k=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(p){var m=f;var n=m+b}d&&(n=h+e,p||(m=Math.max(f,n-b,a.getBaseSeriesMin(l&&l.xData?l.xData[0]:-Number.MAX_VALUE))));k&&(p||d)&&P(m)&&(this.min=this.userMin=
m,this.max=this.userMax=n)}a.stickToMin=a.stickToMax=null};b.prototype.updatedDataHandler=function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMax=a.reversedExtremes?0===Math.round(a.zoomedMin):Math.round(a.zoomedMax)>=Math.round(a.size);a.stickToMin=a.shouldStickToMin(this,a);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))};b.prototype.shouldStickToMin=function(a,b){b=b.getBaseSeriesMin(a.xData[0]);var c=a.xAxis;a=c.max;var f=
c.min;c=c.options.range;return P(a)&&P(f)?c&&0<a-b?a-b<c&&!this.chart.fixedRange:f<=b:!1};b.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]);this.eventsToUnbind.push(e(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||this.xAxis[0]);b&&a.render(b.min,b.max)}),e(this.chart,"getMargins",function(){var a=this.navigator,b=a.opposite?"plotTop":"marginBottom";this.inverted&&(b=a.opposite?"marginRight":"plotLeft");
this[b]=(this[b]||0)+(a.navigatorEnabled||!this.inverted?a.outlineHeight:0)+a.navigatorOptions.margin}))};b.prototype.destroy=function(){this.removeEvents();this.xAxis&&(B(this.chart.xAxis,this.xAxis),B(this.chart.axes,this.xAxis));this.yAxis&&(B(this.chart.yAxis,this.yAxis),B(this.chart.axes,this.yAxis));(this.series||[]).forEach(function(a){a.destroy&&a.destroy()});"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach(function(a){this[a]&&
this[a].destroy&&this[a].destroy();this[a]=null},this);[this.handles].forEach(function(a){D(a)},this)};return b}();y.Navigator||(y.Navigator=h,n.compose(a),e(m,"beforeShowResetZoom",function(){var a=this.options,b=a.navigator,f=a.rangeSelector;if((b&&b.enabled||f&&f.enabled)&&(!G&&"x"===a.chart.zoomType||G&&"x"===a.chart.pinchType))return!1}),e(m,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new h(this)}),e(m,"afterSetChartSize",
function(){var a=this.legend,b=this.navigator;if(b){var f=a&&a.options;var h=b.xAxis;var d=b.yAxis;var e=b.scrollbarHeight;this.inverted?(b.left=b.opposite?this.chartWidth-e-b.height:this.spacing[3]+e,b.top=this.plotTop+e):(b.left=g(h.left,this.plotLeft+e),b.top=b.navigatorOptions.top||this.chartHeight-b.height-e-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(f&&"bottom"===f.verticalAlign&&"proximate"!==f.layout&&f.enabled&&!f.floating?a.legendHeight+
g(f.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0));h&&d&&(this.inverted?h.options.left=d.options.left=b.left:h.options.top=d.options.top=b.top,h.setAxisSize(),d.setAxisSize())}}),e(m,"update",function(a){var b=a.options.navigator||{},f=a.options.scrollbar||{};this.navigator||this.scroller||!b.enabled&&!f.enabled||(L(!0,this.options.navigator,b),L(!0,this.options.scrollbar,f),delete a.options.navigator,delete a.options.scrollbar)}),e(m,"afterUpdate",function(a){this.navigator||this.scroller||
!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new h(this),g(a.redraw,!0)&&this.redraw(a.animation))}),e(m,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),e(b,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),m.prototype.callbacks.push(function(a){var b=a.navigator;b&&a.xAxis[0]&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))}));y.Navigator=
h;return y.Navigator});K(a,"Extensions/RangeSelector.js",[a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/Globals.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Renderer/SVG/SVGElement.js"],a["Core/Utilities.js"]],function(a,m,u,y,n,K,E){function q(a){if(-1!==a.indexOf("%L"))return"text";var b="aAdewbBmoyY".split("").some(function(b){return-1!==a.indexOf("%"+b)}),h="HkIlMS".split("").some(function(b){return-1!==a.indexOf("%"+b)});return b&&h?"datetime-local":b?"date":
h?"time":"text"}var d=y.defaultOptions,b=E.addEvent,G=E.createElement,k=E.css,t=E.defined,R=E.destroyObjectProperties,Q=E.discardElement,e=E.extend,O=E.find,r=E.fireEvent,I=E.isNumber,D=E.merge,B=E.objectEach,T=E.pad,M=E.pick,N=E.pInt,P=E.splat;e(d,{rangeSelector:{allButtonsEnabled:!1,buttons:void 0,buttonSpacing:5,dropdown:"responsive",enabled:void 0,verticalAlign:"top",buttonTheme:{width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputBoxBorderColor:"none",inputBoxHeight:17,
inputBoxWidth:void 0,inputDateFormat:"%b %e, %Y",inputDateParser:void 0,inputEditDateFormat:"%Y-%m-%d",inputEnabled:!0,inputPosition:{align:"right",x:0,y:0},inputSpacing:5,selected:void 0,buttonPosition:{align:"left",x:0,y:0},inputStyle:{color:n.highlightColor80,cursor:"pointer"},labelStyle:{color:n.neutralColor60}}});e(d.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"",rangeSelectorTo:"\u2192"});var L=function(){function l(a){this.buttons=void 0;this.buttonOptions=l.prototype.defaultButtons;this.initialButtonGroupWidth=
0;this.options=void 0;this.chart=a;this.init(a)}l.prototype.clickButton=function(f,h){var d=this.chart,c=this.buttonOptions[f],e=d.xAxis[0],l=d.scroller&&d.scroller.getUnionExtremes()||e||{},g=l.dataMin,k=l.dataMax,m=e&&Math.round(Math.min(e.max,M(k,e.max))),n=c.type;l=c._range;var z,q=c.dataGrouping;if(null!==g&&null!==k){d.fixedRange=l;this.setSelected(f);q&&(this.forcedDataGrouping=!0,a.prototype.setDataGrouping.call(e||{chart:this.chart},q,!1),this.frozenStates=c.preserveDataGrouping);if("month"===
n||"year"===n)if(e){n={range:c,max:m,chart:d,dataMin:g,dataMax:k};var u=e.minFromRange.call(n);I(n.newMax)&&(m=n.newMax)}else l=c;else if(l)u=Math.max(m-l,g),m=Math.min(u+l,k);else if("ytd"===n)if(e)"undefined"===typeof k&&(g=Number.MAX_VALUE,k=Number.MIN_VALUE,d.series.forEach(function(a){a=a.xData;g=Math.min(a[0],g);k=Math.max(a[a.length-1],k)}),h=!1),m=this.getYTDExtremes(k,g,d.time.useUTC),u=z=m.min,m=m.max;else{this.deferredYTDClick=f;return}else"all"===n&&e&&(d.navigator&&d.navigator.baseSeries[0]&&
(d.navigator.baseSeries[0].xAxis.options.range=void 0),u=g,m=k);t(u)&&(u+=c._offsetMin);t(m)&&(m+=c._offsetMax);this.dropdown&&(this.dropdown.selectedIndex=f+1);if(e)e.setExtremes(u,m,M(h,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:c});else{var w=P(d.options.xAxis)[0];var y=w.range;w.range=l;var B=w.min;w.min=z;b(d,"load",function(){w.range=y;w.min=B})}r(this,"afterBtnClick")}};l.prototype.setSelected=function(a){this.selected=this.options.selected=a};l.prototype.init=function(a){var h=
this,f=a.options.rangeSelector,c=f.buttons||h.defaultButtons.slice(),d=f.selected,e=function(){var a=h.minInput,b=h.maxInput;a&&a.blur&&r(a,"blur");b&&b.blur&&r(b,"blur")};h.chart=a;h.options=f;h.buttons=[];h.buttonOptions=c;this.eventsToUnbind=[];this.eventsToUnbind.push(b(a.container,"mousedown",e));this.eventsToUnbind.push(b(a,"resize",e));c.forEach(h.computeButtonRange);"undefined"!==typeof d&&c[d]&&this.clickButton(d,!1);this.eventsToUnbind.push(b(a,"load",function(){a.xAxis&&a.xAxis[0]&&b(a.xAxis[0],
"setExtremes",function(b){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!==b.trigger&&h.forcedDataGrouping&&!h.frozenStates&&this.setDataGrouping(!1,!1)})}))};l.prototype.updateButtonStates=function(){var a=this,b=this.chart,d=this.dropdown,c=b.xAxis[0],e=Math.round(c.max-c.min),l=!c.hasVisibleSeries,g=b.scroller&&b.scroller.getUnionExtremes()||c,k=g.dataMin,m=g.dataMax;b=a.getYTDExtremes(m,k,b.time.useUTC);var n=b.min,z=b.max,q=a.selected,r=I(q),u=a.options.allButtonsEnabled,
t=a.buttons;a.buttonOptions.forEach(function(b,f){var h=b._range,p=b.type,v=b.count||1,g=t[f],A=0,x=b._offsetMax-b._offsetMin;b=f===q;var F=h>m-k,C=h<c.minRange,w=!1,H=!1;h=h===e;("month"===p||"year"===p)&&e+36E5>=864E5*{month:28,year:365}[p]*v-x&&e-36E5<=864E5*{month:31,year:366}[p]*v+x?h=!0:"ytd"===p?(h=z-n+x===e,w=!b):"all"===p&&(h=c.max-c.min>=m-k,H=!b&&r&&h);p=!u&&(F||C||H||l);v=b&&h||h&&!r&&!w||b&&a.frozenStates;p?A=3:v&&(r=!0,A=2);g.state!==A&&(g.setState(A),d&&(d.options[f+1].disabled=p,2===
A&&(d.selectedIndex=f+1)),0===A&&q===f&&a.setSelected())})};l.prototype.computeButtonRange=function(a){var b=a.type,f=a.count||1,c={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(c[b])a._range=c[b]*f;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*f;a._offsetMin=M(a.offsetMin,0);a._offsetMax=M(a.offsetMax,0);a._range+=a._offsetMax-a._offsetMin};l.prototype.getInputValue=function(a){a="min"===a?this.minInput:this.maxInput;var b=this.chart.options.rangeSelector,
f=this.chart.time;return a?("text"===a.type&&b.inputDateParser||this.defaultInputDateParser)(a.value,f.useUTC,f):0};l.prototype.setInputValue=function(a,b){var h=this.options,c=this.chart.time,f="min"===a?this.minInput:this.maxInput;a="min"===a?this.minDateBox:this.maxDateBox;if(f){var d=f.getAttribute("data-hc-time");d=t(d)?Number(d):void 0;t(b)&&(t(d)&&f.setAttribute("data-hc-time-previous",d),f.setAttribute("data-hc-time",b),d=b);f.value=c.dateFormat(this.inputTypeFormats[f.type]||h.inputEditDateFormat,
d);a&&a.attr({text:c.dateFormat(h.inputDateFormat,d)})}};l.prototype.setInputExtremes=function(a,b,d){if(a="min"===a?this.minInput:this.maxInput){var c=this.inputTypeFormats[a.type],h=this.chart.time;c&&(b=h.dateFormat(c,b),a.min!==b&&(a.min=b),d=h.dateFormat(c,d),a.max!==d&&(a.max=d))}};l.prototype.showInput=function(a){var b="min"===a?this.minDateBox:this.maxDateBox;if((a="min"===a?this.minInput:this.maxInput)&&b&&this.inputGroup){var d="text"===a.type,c=this.inputGroup,f=c.translateX;c=c.translateY;
var e=this.options.inputBoxWidth;k(a,{width:d?b.width+(e?-2:20)+"px":"auto",height:d?b.height-2+"px":"auto",border:"2px solid silver"});d&&e?k(a,{left:f+b.x+"px",top:c+"px"}):k(a,{left:Math.min(Math.round(b.x+f-(a.offsetWidth-b.width)/2),this.chart.chartWidth-a.offsetWidth)+"px",top:c-(a.offsetHeight-b.height)/2+"px"})}};l.prototype.hideInput=function(a){(a="min"===a?this.minInput:this.maxInput)&&k(a,{top:"-9999em",border:0,width:"1px",height:"1px"})};l.prototype.defaultInputDateParser=function(a,
b,d){var c=a.split("/").join("-").split(" ").join("T");-1===c.indexOf("T")&&(c+="T00:00");if(b)c+="Z";else{var h;if(h=u.isSafari)h=c,h=!(6<h.length&&(h.lastIndexOf("-")===h.length-6||h.lastIndexOf("+")===h.length-6));h&&(h=(new Date(c)).getTimezoneOffset()/60,c+=0>=h?"+"+T(-h)+":00":"-"+T(h)+":00")}c=Date.parse(c);I(c)||(a=a.split("-"),c=Date.UTC(N(a[0]),N(a[1])-1,N(a[2])));d&&b&&I(c)&&(c+=d.getTimezoneOffset(c));return c};l.prototype.drawInput=function(a){function b(){var b=g.getInputValue(a),c=
f.xAxis[0],h=f.scroller&&f.scroller.xAxis?f.scroller.xAxis:c,d=h.dataMin;h=h.dataMax;var e=g.maxInput,p=g.minInput;b!==Number(t.getAttribute("data-hc-time-previous"))&&I(b)&&(t.setAttribute("data-hc-time-previous",b),C&&e&&I(d)?b>Number(e.getAttribute("data-hc-time"))?b=void 0:b<d&&(b=d):p&&I(h)&&(b<Number(p.getAttribute("data-hc-time"))?b=void 0:b>h&&(b=h)),"undefined"!==typeof b&&c.setExtremes(C?b:c.min,C?c.max:b,void 0,void 0,{trigger:"rangeSelectorInput"}))}var f=this.chart,c=this.div,l=this.inputGroup,
g=this,m=f.renderer.style||{},r=f.renderer,x=f.options.rangeSelector,C="min"===a,z=d.lang[C?"rangeSelectorFrom":"rangeSelectorTo"]||"";z=r.label(z,0).addClass("highcharts-range-label").attr({padding:z?2:0,height:z?x.inputBoxHeight:0}).add(l);r=r.label("",0).addClass("highcharts-range-input").attr({padding:2,width:x.inputBoxWidth,height:x.inputBoxHeight,"text-align":"center"}).on("click",function(){g.showInput(a);g[a+"Input"].focus()});f.styledMode||r.attr({stroke:x.inputBoxBorderColor,"stroke-width":1});
r.add(l);var t=G("input",{name:a,className:"highcharts-range-selector"},void 0,c);t.setAttribute("type",q(x.inputDateFormat||"%b %e, %Y"));f.styledMode||(z.css(D(m,x.labelStyle)),r.css(D({color:n.neutralColor80},m,x.inputStyle)),k(t,e({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:m.fontSize,fontFamily:m.fontFamily,top:"-9999em"},x.inputStyle)));t.onfocus=function(){g.showInput(a)};t.onblur=function(){t===u.doc.activeElement&&
b();g.hideInput(a);g.setInputValue(a);t.blur()};var w=!1;t.onchange=function(){w||(b(),g.hideInput(a),t.blur())};t.onkeypress=function(a){13===a.keyCode&&b()};t.onkeydown=function(a){w=!0;38!==a.keyCode&&40!==a.keyCode||b()};t.onkeyup=function(){w=!1};return{dateBox:r,input:t,label:z}};l.prototype.getPosition=function(){var a=this.chart,b=a.options.rangeSelector;a="top"===b.verticalAlign?a.plotTop-a.axisOffset[0]:0;return{buttonTop:a+b.buttonPosition.y,inputTop:a+b.inputPosition.y-10}};l.prototype.getYTDExtremes=
function(a,b,d){var c=this.chart.time,h=new c.Date(a),f=c.get("FullYear",h);d=d?c.Date.UTC(f,0,1):+new c.Date(f,0,1);b=Math.max(b,d);h=h.getTime();return{max:Math.min(a||h,h),min:b}};l.prototype.render=function(a,b){var h=this.chart,c=h.renderer,d=h.container,f=h.options,e=f.rangeSelector,l=M(f.chart.style&&f.chart.style.zIndex,0)+1;f=e.inputEnabled;if(!1!==e.enabled){this.rendered||(this.group=c.g("range-selector-group").attr({zIndex:7}).add(),this.div=G("div",void 0,{position:"relative",height:0,
zIndex:l}),this.buttonOptions.length&&this.renderButtons(),d.parentNode&&d.parentNode.insertBefore(this.div,d),f&&(this.inputGroup=c.g("input-group").add(this.group),c=this.drawInput("min"),this.minDateBox=c.dateBox,this.minLabel=c.label,this.minInput=c.input,c=this.drawInput("max"),this.maxDateBox=c.dateBox,this.maxLabel=c.label,this.maxInput=c.input));if(f&&(this.setInputValue("min",a),this.setInputValue("max",b),a=h.scroller&&h.scroller.getUnionExtremes()||h.xAxis[0]||{},t(a.dataMin)&&t(a.dataMax)&&
(h=h.xAxis[0].minRange||0,this.setInputExtremes("min",a.dataMin,Math.min(a.dataMax,this.getInputValue("max"))-h),this.setInputExtremes("max",Math.max(a.dataMin,this.getInputValue("min"))+h,a.dataMax)),this.inputGroup)){var g=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(a){if(a){var b=a.getBBox().width;b&&(a.attr({x:g}),g+=b+e.inputSpacing)}})}this.alignElements();this.rendered=!0}};l.prototype.renderButtons=function(){var a=this,h=this.buttons,e=this.options,c=
d.lang,l=this.chart.renderer,g=D(e.buttonTheme),k=g&&g.states,m=g.width||28;delete g.width;delete g.states;this.buttonGroup=l.g("range-selector-buttons").add(this.group);var n=this.dropdown=G("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:.0001},this.div);b(n,"touchstart",function(){n.style.fontSize="16px"});[[u.isMS?"mouseover":"mouseenter"],[u.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(c){var d=c[0],
f=c[1];b(n,d,function(){var b=h[a.currentButtonIndex()];b&&r(b.element,f||d)})});this.zoomText=l.label(c&&c.rangeSelectorZoom||"",0).attr({padding:e.buttonTheme.padding,height:e.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup);this.chart.styledMode||(this.zoomText.css(e.labelStyle),g["stroke-width"]=M(g["stroke-width"],0));G("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,n);this.buttonOptions.forEach(function(b,c){G("option",{textContent:b.title||b.text},void 0,
n);h[c]=l.button(b.text,0,0,function(h){var d=b.events&&b.events.click,f;d&&(f=d.call(b,h));!1!==f&&a.clickButton(c);a.isActive=!0},g,k&&k.hover,k&&k.select,k&&k.disabled).attr({"text-align":"center",width:m}).add(a.buttonGroup);b.title&&h[c].attr("title",b.title)})};l.prototype.alignElements=function(){var a=this,b=this.buttonGroup,d=this.buttons,c=this.chart,e=this.group,l=this.inputGroup,g=this.options,k=this.zoomText,m=c.options,n=m.exporting&&!1!==m.exporting.enabled&&m.navigation&&m.navigation.buttonOptions;
m=g.buttonPosition;var q=g.inputPosition,r=g.verticalAlign,t=function(b,d){return n&&a.titleCollision(c)&&"top"===r&&"right"===d.align&&d.y-b.getBBox().height-12<(n.y||0)+(n.height||0)+c.spacing[0]?-40:0},u=c.plotLeft;if(e&&m&&q){var w=m.x-c.spacing[3];if(b){this.positionButtons();if(!this.initialButtonGroupWidth){var y=0;k&&(y+=k.getBBox().width+5);d.forEach(function(a,b){y+=a.width;b!==d.length-1&&(y+=g.buttonSpacing)});this.initialButtonGroupWidth=y}u-=c.spacing[3];this.updateButtonStates();k=
t(b,m);this.alignButtonGroup(k);e.placed=b.placed=c.hasLoaded}b=0;l&&(b=t(l,q),"left"===q.align?w=u:"right"===q.align&&(w=-Math.max(c.axisOffset[1],-b)),l.align({y:q.y,width:l.getBBox().width,align:q.align,x:q.x+w-2},!0,c.spacingBox),l.placed=c.hasLoaded);this.handleCollision(b);e.align({verticalAlign:r},!0,c.spacingBox);l=e.alignAttr.translateY;b=e.getBBox().height+20;t=0;"bottom"===r&&(t=(t=c.legend&&c.legend.options)&&"bottom"===t.verticalAlign&&t.enabled&&!t.floating?c.legend.legendHeight+M(t.margin,
10):0,b=b+t-20,t=l-b-(g.floating?0:g.y)-(c.titleOffset?c.titleOffset[2]:0)-10);if("top"===r)g.floating&&(t=0),c.titleOffset&&c.titleOffset[0]&&(t=c.titleOffset[0]),t+=c.margin[0]-c.spacing[0]||0;else if("middle"===r)if(q.y===m.y)t=l;else if(q.y||m.y)t=0>q.y||0>m.y?t-Math.min(q.y,m.y):l-b;e.translate(g.x,g.y+Math.floor(t));m=this.minInput;q=this.maxInput;l=this.dropdown;g.inputEnabled&&m&&q&&(m.style.marginTop=e.translateY+"px",q.style.marginTop=e.translateY+"px");l&&(l.style.marginTop=e.translateY+
"px")}};l.prototype.alignButtonGroup=function(a,b){var d=this.chart,c=this.buttonGroup,h=this.options.buttonPosition,f=d.plotLeft-d.spacing[3],e=h.x-d.spacing[3];"right"===h.align?e+=a-f:"center"===h.align&&(e-=f/2);c&&c.align({y:h.y,width:M(b,this.initialButtonGroupWidth),align:h.align,x:e},!0,d.spacingBox)};l.prototype.positionButtons=function(){var a=this.buttons,b=this.chart,d=this.options,c=this.zoomText,e=b.hasLoaded?"animate":"attr",l=d.buttonPosition,g=b.plotLeft,k=g;c&&"hidden"!==c.visibility&&
(c[e]({x:M(g+l.x,g)}),k+=l.x+c.getBBox().width+5);this.buttonOptions.forEach(function(b,c){if("hidden"!==a[c].visibility)a[c][e]({x:k}),k+=a[c].width+d.buttonSpacing;else a[c][e]({x:g})})};l.prototype.handleCollision=function(a){var b=this,d=this.chart,c=this.buttonGroup,f=this.inputGroup,e=this.options,l=e.buttonPosition,g=e.dropdown,k=e.inputPosition;e=function(){var a=0;b.buttons.forEach(function(b){b=b.getBBox();b.width>a&&(a=b.width)});return a};var m=function(b){if(f&&c){var d=f.alignAttr.translateX+
f.alignOptions.x-a+f.getBBox().x+2,h=f.alignOptions.width,e=c.alignAttr.translateX+c.getBBox().x;return e+b>d&&d+h>e&&l.y<k.y+f.getBBox().height}return!1},n=function(){f&&c&&f.attr({translateX:f.alignAttr.translateX+(d.axisOffset[1]>=-a?0:-a),translateY:f.alignAttr.translateY+c.getBBox().height+10})};if(c){if("always"===g){this.collapseButtons(a);m(e())&&n();return}"never"===g&&this.expandButtons()}f&&c?k.align===l.align||m(this.initialButtonGroupWidth+20)?"responsive"===g?(this.collapseButtons(a),
m(e())&&n()):n():"responsive"===g&&this.expandButtons():c&&"responsive"===g&&(this.initialButtonGroupWidth>d.plotWidth?this.collapseButtons(a):this.expandButtons())};l.prototype.collapseButtons=function(a){var b=this.buttons,d=this.buttonOptions,c=this.chart,f=this.dropdown,e=this.options,l=this.zoomText,g=c.userOptions.rangeSelector&&c.userOptions.rangeSelector.buttonTheme||{},k=function(a){return{text:a?a+" \u25be":"\u25be",width:"auto",paddingLeft:M(e.buttonTheme.paddingLeft,g.padding,8),paddingRight:M(e.buttonTheme.paddingRight,
g.padding,8)}};l&&l.hide();var m=!1;d.forEach(function(a,c){c=b[c];2!==c.state?c.hide():(c.show(),c.attr(k(a.text)),m=!0)});m||(f&&(f.selectedIndex=0),b[0].show(),b[0].attr(k(this.zoomText&&this.zoomText.textStr)));d=e.buttonPosition.align;this.positionButtons();"right"!==d&&"center"!==d||this.alignButtonGroup(a,b[this.currentButtonIndex()].getBBox().width);this.showDropdown()};l.prototype.expandButtons=function(){var a=this.buttons,b=this.buttonOptions,d=this.options,c=this.zoomText;this.hideDropdown();
c&&c.show();b.forEach(function(b,c){c=a[c];c.show();c.attr({text:b.text,width:d.buttonTheme.width||28,paddingLeft:M(d.buttonTheme.paddingLeft,"unset"),paddingRight:M(d.buttonTheme.paddingRight,"unset")});2>c.state&&c.setState(0)});this.positionButtons()};l.prototype.currentButtonIndex=function(){var a=this.dropdown;return a&&0<a.selectedIndex?a.selectedIndex-1:0};l.prototype.showDropdown=function(){var a=this.buttonGroup,b=this.buttons,d=this.chart,c=this.dropdown;if(a&&c){var e=a.translateX;a=a.translateY;
b=b[this.currentButtonIndex()].getBBox();k(c,{left:d.plotLeft+e+"px",top:a+.5+"px",width:b.width+"px",height:b.height+"px"});this.hasVisibleDropdown=!0}};l.prototype.hideDropdown=function(){var a=this.dropdown;a&&(k(a,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)};l.prototype.getHeight=function(){var a=this.options,b=this.group,d=a.y,c=a.buttonPosition.y,e=a.inputPosition.y;if(a.height)return a.height;this.alignElements();a=b?b.getBBox(!0).height+13+d:0;b=Math.min(e,c);if(0>
e&&0>c||0<e&&0<c)a+=Math.abs(b);return a};l.prototype.titleCollision=function(a){return!(a.options.title.text||a.options.subtitle.text)};l.prototype.update=function(a){var b=this.chart;D(!0,b.options.rangeSelector,a);this.destroy();this.init(b);this.render()};l.prototype.destroy=function(){var a=this,b=a.minInput,d=a.maxInput;a.eventsToUnbind&&(a.eventsToUnbind.forEach(function(a){return a()}),a.eventsToUnbind=void 0);R(a.buttons);b&&(b.onfocus=b.onblur=b.onchange=null);d&&(d.onfocus=d.onblur=d.onchange=
null);B(a,function(b,d){b&&"chart"!==d&&(b instanceof K?b.destroy():b instanceof window.HTMLElement&&Q(b));b!==l.prototype[d]&&(a[d]=null)},this)};return l}();L.prototype.defaultButtons=[{type:"month",count:1,text:"1m",title:"View 1 month"},{type:"month",count:3,text:"3m",title:"View 3 months"},{type:"month",count:6,text:"6m",title:"View 6 months"},{type:"ytd",text:"YTD",title:"View year to date"},{type:"year",count:1,text:"1y",title:"View 1 year"},{type:"all",text:"All",title:"View all"}];L.prototype.inputTypeFormats=
{"datetime-local":"%Y-%m-%dT%H:%M:%S",date:"%Y-%m-%d",time:"%H:%M:%S"};a.prototype.minFromRange=function(){var a=this.range,b=a.type,d=this.max,e=this.chart.time,c=function(a,c){var d="year"===b?"FullYear":"Month",h=new e.Date(a),f=e.get(d,h);e.set(d,h,f+c);f===e.get(d,h)&&e.set("Date",h,0);return h.getTime()-a};if(I(a)){var g=d-a;var k=a}else g=d+c(d,-a.count),this.chart&&(this.chart.fixedRange=d-g);var m=M(this.dataMin,Number.MIN_VALUE);I(g)||(g=m);g<=m&&(g=m,"undefined"===typeof k&&(k=c(g,a.count)),
this.newMax=Math.min(g+k,this.dataMax));I(d)||(g=void 0);return g};if(!u.RangeSelector){var g=[],w=function(a){function d(){e&&(h=a.xAxis[0].getExtremes(),c=a.legend,k=e&&e.options.verticalAlign,I(h.min)&&e.render(h.min,h.max),c.display&&"top"===k&&k===c.options.verticalAlign&&(l=D(a.spacingBox),l.y="vertical"===c.options.layout?a.plotTop:l.y+e.getHeight(),c.group.placed=!1,c.align(l)))}var h,e=a.rangeSelector,c,l,k;e&&(O(g,function(b){return b[0]===a})||g.push([a,[b(a.xAxis[0],"afterSetExtremes",
function(a){e&&e.render(a.min,a.max)}),b(a,"redraw",d)]]),d())};b(m,"afterGetContainer",function(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new L(this))});b(m,"beforeRender",function(){var a=this.axes,b=this.rangeSelector;b&&(I(b.deferredYTDClick)&&(b.clickButton(b.deferredYTDClick),delete b.deferredYTDClick),a.forEach(function(a){a.updateNames();a.setScale()}),this.getAxisMargins(),b.render(),a=b.options.verticalAlign,b.options.floating||("bottom"===a?this.extraBottomMargin=
!0:"middle"!==a&&(this.extraTopMargin=!0)))});b(m,"update",function(a){var b=a.options.rangeSelector;a=this.rangeSelector;var d=this.extraBottomMargin,e=this.extraTopMargin;b&&b.enabled&&!t(a)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=a=new L(this));this.extraTopMargin=this.extraBottomMargin=!1;a&&(w(this),b=b&&b.verticalAlign||a.options&&a.options.verticalAlign,a.options.floating||("bottom"===b?this.extraBottomMargin=!0:"middle"!==b&&(this.extraTopMargin=
!0)),this.extraBottomMargin!==d||this.extraTopMargin!==e)&&(this.isDirtyBox=!0)});b(m,"render",function(){var a=this.rangeSelector;a&&!a.options.floating&&(a.render(),a=a.options.verticalAlign,"bottom"===a?this.extraBottomMargin=!0:"middle"!==a&&(this.extraTopMargin=!0))});b(m,"getMargins",function(){var a=this.rangeSelector;a&&(a=a.getHeight(),this.extraTopMargin&&(this.plotTop+=a),this.extraBottomMargin&&(this.marginBottom+=a))});m.prototype.callbacks.push(w);b(m,"destroy",function(){for(var a=
0;a<g.length;a++){var b=g[a];if(b[0]===this){b[1].forEach(function(a){return a()});g.splice(a,1);break}}});u.RangeSelector=L}return L});K(a,"Core/Chart/StockChart.js",[a["Core/Animation/AnimationUtilities.js"],a["Core/Axis/Axis.js"],a["Core/Chart/Chart.js"],a["Core/FormatUtilities.js"],a["Core/DefaultOptions.js"],a["Core/Color/Palette.js"],a["Core/Series/Point.js"],a["Core/Series/Series.js"],a["Core/Renderer/SVG/SVGRenderer.js"],a["Core/Utilities.js"]],function(a,m,u,y,n,K,E,q,d,b){function G(a,b){return"xAxis"===
a?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:"yAxis"===a?{labels:{y:-2},opposite:l(b.opposite,!0),showLastLabel:!(!b.categories&&"category"!==b.type),title:{text:null}}:{}}function k(a,b){if("xAxis"===a){a=e();var c={type:"datetime",categories:void 0};l(b.navigator&&b.navigator.enabled,a.navigator.enabled,!0)&&(c.startOnTick=!1,c.endOnTick=!1);return c}return{}}var t=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),R=a.animObject,Q=y.format,e=n.getOptions,O=E.prototype.tooltipFormatter;a=q.prototype;var r=a.init,I=a.processData;a=b.addEvent;var D=b.arrayMax,B=b.arrayMin,T=b.clamp,M=b.defined,N=b.extend,P=b.find,L=b.isNumber,g=b.isString,w=
b.merge,l=b.pick,f=b.splat;b=function(a){function b(){return null!==a&&a.apply(this,arguments)||this}t(b,a);b.prototype.init=function(b,d){var c=e(),h=b.xAxis,g=b.yAxis,m=l(b.navigator&&b.navigator.enabled,c.navigator.enabled,!0);b.xAxis=b.yAxis=void 0;m=w({chart:{panning:{enabled:!0,type:"x"},pinchType:"x"},navigator:{enabled:m},scrollbar:{enabled:l(c.scrollbar&&c.scrollbar.enabled,!0)},rangeSelector:{enabled:l(c.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:l(c.tooltip.split,!0),crosshairs:!0},
legend:{enabled:!1}},b,{isStock:!0});b.xAxis=h;b.yAxis=g;m.xAxis=f(b.xAxis||{}).map(function(a,d){return w(G("xAxis",a),c.xAxis,c.xAxis&&c.xAxis[d],a,k("xAxis",b))});m.yAxis=f(b.yAxis||{}).map(function(a,b){return w(G("yAxis",a),c.yAxis,c.yAxis&&c.yAxis[b],a)});a.prototype.init.call(this,m,d)};b.prototype.createAxis=function(b,d){d.axis=w(G(b,d.axis),d.axis,k(b,this.userOptions));return a.prototype.createAxis.call(this,b,d)};return b}(u);(function(a){a.stockChart=function(b,c,d){return new a(b,c,
d)}})(b||(b={}));a(q,"setOptions",function(a){var b;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?b={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(b={marker:{enabled:!1,radius:2}}),b&&(a.plotOptions[this.type]=w(a.plotOptions[this.type],b)))});a(m,"autoLabelAlign",function(a){var b=this.chart,c=this.options;b=b._labelPanes=b._labelPanes||{};var d=this.options.labels;this.chart.options.isStock&&"yAxis"===this.coll&&(c=c.top+","+c.height,!b[c]&&d.enabled&&(15===
d.x&&(d.x=0),"undefined"===typeof d.align&&(d.align="right"),b[c]=this,a.align="right",a.preventDefault()))});a(m,"destroy",function(){var a=this.chart,b=this.options&&this.options.top+","+this.options.height;b&&a._labelPanes&&a._labelPanes[b]===this&&delete a._labelPanes[b]});a(m,"getPlotLinePath",function(a){function b(a){var b="xAxis"===a?"yAxis":"xAxis";a=c.options[b];return L(a)?[e[b][a]]:g(a)?[e.get(a)]:d.map(function(a){return a[b]})}var c=this,d=this.isLinked&&!this.series?this.linkedParent.series:
this.series,e=c.chart,h=e.renderer,f=c.left,k=c.top,m,n,q,r,t=[],u=[],w=a.translatedValue,y=a.value,B=a.force;if(e.options.isStock&&!1!==a.acrossPanes&&"xAxis"===c.coll||"yAxis"===c.coll){a.preventDefault();u=b(c.coll);var E=c.isXAxis?e.yAxis:e.xAxis;E.forEach(function(a){if(M(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis";b=M(a.options[b])?e[b][a.options[b]]:e[b][0];c===b&&u.push(a)}});var D=u.length?[]:[c.isXAxis?e.yAxis[0]:e.xAxis[0]];u.forEach(function(a){-1!==
D.indexOf(a)||P(D,function(b){return b.pos===a.pos&&b.len===a.len})||D.push(a)});var G=l(w,c.translate(y,null,null,a.old));L(G)&&(c.horiz?D.forEach(function(a){var b;n=a.pos;r=n+a.len;m=q=Math.round(G+c.transB);"pass"!==B&&(m<f||m>f+c.width)&&(B?m=q=T(m,f,f+c.width):b=!0);b||t.push(["M",m,n],["L",q,r])}):D.forEach(function(a){var b;m=a.pos;q=m+a.len;n=r=Math.round(k+c.height-G);"pass"!==B&&(n<k||n>k+c.height)&&(B?n=r=T(n,k,k+c.height):b=!0);b||t.push(["M",m,n],["L",q,r])}));a.path=0<t.length?h.crispPolyLine(t,
a.lineWidth||1):null}});d.prototype.crispPolyLine=function(a,b){for(var c=0;c<a.length;c+=2){var d=a[c],e=a[c+1];d[1]===e[1]&&(d[1]=e[1]=Math.round(d[1])-b%2/2);d[2]===e[2]&&(d[2]=e[2]=Math.round(d[2])+b%2/2)}return a};a(m,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});a(m,"afterDrawCrosshair",function(a){var b,c;if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&L(this.min)&&L(this.max)){var d=this.chart,e=this.logarithmic,
h=this.crosshair.label,f=this.horiz,g=this.opposite,k=this.left,m=this.top,n=this.crossLabel,q=h.format,r="",t="inside"===this.options.tickPosition,u=!1!==this.crosshair.snap,w=0,y=a.e||this.cross&&this.cross.e;a=a.point;var B=this.min,D=this.max;e&&(B=e.lin2log(B),D=e.lin2log(D));e=f?"center":g?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";n||(n=this.crossLabel=d.renderer.label("",0,void 0,h.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+
(a?a.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:h.align||e,padding:l(h.padding,8),r:l(h.borderRadius,3),zIndex:2}).add(this.labelGroup),d.styledMode||n.attr({fill:h.backgroundColor||a&&a.series&&a.series.color||K.neutralColor60,stroke:h.borderColor||"","stroke-width":h.borderWidth||0}).css(N({color:K.backgroundColor,fontWeight:"normal",fontSize:"11px",textAlign:"center"},h.style||{})));f?(e=u?(a.plotX||0)+k:y.chartX,m+=g?0:this.height):(e=g?this.width+k:0,m=u?(a.plotY||
0)+m:y.chartY);q||h.formatter||(this.dateTime&&(r="%b %d, %Y"),q="{value"+(r?":"+r:"")+"}");r=u?this.isXAxis?a.x:a.y:this.toValue(f?y.chartX:y.chartY);u=a?a.series.isPointInside(a):L(r)&&r>B&&r<D;y="";q?y=Q(q,{value:r},d):h.formatter&&L(r)&&(y=h.formatter.call(this,r));n.attr({text:y,x:e,y:m,visibility:u?"visible":"hidden"});h=n.getBBox();if(L(n.y))if(f){if(t&&!g||!t&&g)m=n.y-h.height}else m=n.y-h.height/2;f?(b=k-h.x,c=k+this.width-h.x):(b="left"===this.labelAlign?k:0,c="right"===this.labelAlign?
k+this.width:d.chartWidth);n.translateX<b&&(w=b-n.translateX);n.translateX+h.width>=c&&(w=-(n.translateX+h.width-c));n.attr({x:e+w,y:m,anchorX:f?e:this.opposite?0:d.chartWidth,anchorY:f?this.opposite?d.chartHeight:0:m+h.height/2})}});q.prototype.init=function(){r.apply(this,arguments);this.initCompare(this.options.compare)};q.prototype.setCompare=function(a){this.initCompare(a);this.userOptions.compare=a};q.prototype.initCompare=function(a){this.modifyValue="value"===a||"percent"===a?function(b,c){var d=
this.compareValue;return"undefined"!==typeof b&&"undefined"!==typeof d?(b="value"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b):0}:null;this.chart.hasRendered&&(this.isDirty=!0)};q.prototype.forceCropping=function(){var a=this.chart,b=this.options.dataGrouping;return!1!==this.allowDG&&b&&l(b.enabled,a.options.isStock)};q.prototype.processData=function(a){var b,c=-1,d=!0===this.options.compareStart?0:1;I.apply(this,arguments);if(this.xAxis&&this.processedYData){var e=this.processedXData;
var h=this.processedYData;var f=h.length;this.pointArrayMap&&(c=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y"));for(b=0;b<f-d;b++){var g=h[b]&&-1<c?h[b][c]:h[b];if(L(g)&&e[b+d]>=this.xAxis.min&&0!==g){this.compareValue=g;break}}}};a(q,"afterGetExtremes",function(a){a=a.dataExtremes;if(this.modifyValue&&a){var b=[this.modifyValue(a.dataMin),this.modifyValue(a.dataMax)];a.dataMin=B(b);a.dataMax=D(b)}});m.prototype.setCompare=function(a,b){this.isXAxis||(this.series.forEach(function(b){b.setCompare(a)}),
l(b,!0)&&this.chart.redraw())};E.prototype.tooltipFormatter=function(a){var b=this.series.chart.numberFormatter;a=a.replace("{point.change}",(0<this.change?"+":"")+b(this.change,l(this.series.tooltipOptions.changeDecimals,2)));return O.apply(this,[a])};a(q,"render",function(){var a=this.chart;if(!(a.is3d&&a.is3d()||a.polar)&&this.xAxis&&!this.xAxis.isRadial&&!1!==this.options.clip){var b=this.yAxis.len;if(this.xAxis.axisLine){var c=a.plotTop+a.plotHeight-this.yAxis.pos-this.yAxis.len,d=Math.floor(this.xAxis.axisLine.strokeWidth()/
2);0<=c&&(b-=Math.max(d-c,0))}if(!a.hasLoaded||!this.clipBox&&this.isDirty&&!this.isDirtyData)this.clipBox=this.clipBox||w(a.clipBox),this.clipBox.width=this.xAxis.len,this.clipBox.height=b;a.hasRendered&&(c=R(this.options.animation),c=this.getSharedClipKey(c),d=a.sharedClips[c])&&(d.animate({width:this.xAxis.len,height:b}),(a=a.sharedClips[c+"m"])&&a.animate({width:this.xAxis.len}))}});a(u,"update",function(a){a=a.options;"scrollbar"in a&&this.navigator&&(w(!0,this.options.scrollbar,a.scrollbar),
this.navigator.update({},!1),delete a.scrollbar)});"";return b});K(a,"masters/modules/stock.src.js",[a["Core/Globals.js"],a["Core/Axis/OrdinalAxis.js"],a["Core/Scrollbar.js"],a["Core/Chart/StockChart.js"]],function(a,m,u,y){a.Scrollbar=u;a.StockChart=a.stockChart=y.stockChart;u.compose(a.Axis);m.compose(a.Axis,a.Series,a.Chart)})});
//# sourceMappingURL=stock.js.map