File: /var/www/quadcode/frontend/dist/schedule.55d75f8595c54f0f1066.js
(()=>{var t={4814:(t,e,i)=>{var o,s,r;r=function(t){function e(t,e,i,o){t.hasOwnProperty(e)||(t[e]=o.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}e(t=t?t._modules:{},"Extensions/Pane.js",[t["Core/Chart/Chart.js"],t["Series/CenteredUtilities.js"],t["Core/Globals.js"],t["Core/Pointer.js"],t["Core/Utilities.js"]],(function(t,e,i,o,s){function r(t,e,i,o,s){var r=!0,n=i[0],l=i[1],p=Math.sqrt(Math.pow(t-n,2)+Math.pow(e-l,2));return h(o)&&h(s)&&(t=Math.atan2(a(e-l,8),a(t-n,8)),s!==o&&(r=o>s?t>=o&&t<=Math.PI||t<=s&&t>=-Math.PI:t>=o&&t<=a(s,8))),p<=Math.ceil(i[2]/2)&&r}var n=s.addEvent,a=s.correctFloat,h=s.defined,l=s.extend,p=s.merge,c=s.pick,d=s.splat;return t.prototype.collectionsWithUpdate.push("pane"),s=function(){function t(t,e){this.options=this.chart=this.center=this.background=void 0,this.coll="pane",this.defaultOptions={center:["50%","50%"],size:"85%",innerSize:"0%",startAngle:0},this.defaultBackgroundOptions={shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},this.init(t,e)}return t.prototype.init=function(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)},t.prototype.setOptions=function(t){this.options=p(this.defaultOptions,this.chart.angular?{background:{}}:void 0,t)},t.prototype.render=function(){var t=this.options,e=this.options.background,i=this.chart.renderer;if(this.group||(this.group=i.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter(),e)for(e=d(e),t=Math.max(e.length,this.background.length||0),i=0;i<t;i++)e[i]&&this.axis?this.renderBackground(p(this.defaultBackgroundOptions,e[i]),i):this.background[i]&&(this.background[i]=this.background[i].destroy(),this.background.splice(i,1))},t.prototype.renderBackground=function(t,e){var i="animate",o={class:"highcharts-pane "+(t.className||"")};this.chart.styledMode||l(o,{fill:t.backgroundColor,stroke:t.borderColor,"stroke-width":t.borderWidth}),this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),i="attr"),this.background[e][i]({d:this.axis.getPlotBandPath(t.from,t.to,t)}).attr(o)},t.prototype.updateCenter=function(t){this.center=(t||this.axis||{}).center=e.getCenter.call(this)},t.prototype.update=function(t,e){p(!0,this.options,t),this.setOptions(this.options),this.render(),this.chart.axes.forEach((function(t){t.pane===this&&(t.pane=null,t.update({},e))}),this)},t}(),t.prototype.getHoverPane=function(t){var e,i=this;return t&&i.pane.forEach((function(o){r(t.chartX-i.plotLeft,t.chartY-i.plotTop,o.center)&&(e=o)})),e},n(t,"afterIsInsidePlot",(function(t){if(this.polar){if(t.options.inverted){var e=[t.y,t.x];t.x=e[0],t.y=e[1]}t.isInsidePlot=this.pane.some((function(e){return r(t.x,t.y,e.center,e.axis&&e.axis.normalizedStartAngleRad,e.axis&&e.axis.normalizedEndAngleRad)}))}})),n(o,"beforeGetHoverData",(function(t){var e=this.chart;e.polar?(e.hoverPane=e.getHoverPane(t),t.filter=function(i){return i.visible&&!(!t.shared&&i.directTouch)&&c(i.options.enableMouseTracking,!0)&&(!e.hoverPane||i.xAxis.pane===e.hoverPane)}):e.hoverPane=void 0})),n(o,"afterGetHoverData",(function(t){var e=this.chart;t.hoverPoint&&t.hoverPoint.plotX&&t.hoverPoint.plotY&&e.hoverPane&&!r(t.hoverPoint.plotX,t.hoverPoint.plotY,e.hoverPane.center)&&(t.hoverPoint=void 0)})),i.Pane=s,i.Pane})),e(t,"Series/AreaRange/AreaRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=(t=t.seriesTypes.area.prototype).pointClass.prototype,s=e.defined,r=e.isNumber;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.high=void 0,e.low=void 0,e.options=void 0,e.plotX=void 0,e.series=void 0,e}return i(e,t),e.prototype.setState=function(){var t=this.state,e=this.series,i=e.chart.polar;s(this.plotHigh)||(this.plotHigh=e.yAxis.toPixels(this.high,!0)),s(this.plotLow)||(this.plotLow=this.plotY=e.yAxis.toPixels(this.low,!0)),e.stateMarkerGraphic&&(e.lowerStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,i&&r(this.plotHighX)&&(this.plotX=this.plotHighX),o.setState.apply(this,arguments),this.state=t,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],i&&r(this.plotLowX)&&(this.plotX=this.plotLowX),e.stateMarkerGraphic&&(e.upperStateMarkerGraphic=e.stateMarkerGraphic,e.stateMarkerGraphic=e.lowerStateMarkerGraphic,e.lowerStateMarkerGraphic=void 0),o.setState.apply(this,arguments)},e.prototype.haloPath=function(){var t=this.series.chart.polar,e=[];return this.plotY=this.plotLow,t&&r(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(e=o.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,t&&r(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(e=e.concat(o.haloPath.apply(this,arguments))),e},e.prototype.isValid=function(){return r(this.low)&&r(this.high)},e}(t.pointClass)})),e(t,"Series/AreaRange/AreaRangeSeries.js",[t["Series/AreaRange/AreaRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i,o){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();e=e.noop;var r=i.seriesTypes,n=r.area,a=r.area.prototype,h=r.column.prototype;r=o.addEvent;var l=o.defined,p=o.extend,c=o.isArray,d=o.isNumber,u=o.pick,f=o.merge,g={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:void 0,verticalAlign:void 0,xLow:0,xHigh:0,yLow:0,yHigh:0}};return o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e.lowerStateMarkerGraphic=void 0,e.xAxis=void 0,e}return s(e,t),e.prototype.toYData=function(t){return[t.low,t.high]},e.prototype.highToXY=function(t){var e=this.chart,i=this.xAxis.postTranslate(t.rectPlotX||0,this.yAxis.len-(t.plotHigh||0));t.plotHighX=i.x-e.plotLeft,t.plotHigh=i.y-e.plotTop,t.plotLowX=t.plotX},e.prototype.getGraphPath=function(t){var e,i=[],o=[],s=a.getGraphPath,r=this.options,n=this.chart.polar,h=n&&!1!==r.connectEnds,l=r.connectNulls,p=r.step;for(e=(t=t||this.points).length;e--;){var c=t[e],d=n?{plotX:c.rectPlotX,plotY:c.yBottom,doCurve:!1}:{plotX:c.plotX,plotY:c.plotY,doCurve:!1};c.isNull||h||l||t[e+1]&&!t[e+1].isNull||o.push(d);var f={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,yBottom:c.yBottom,plotX:u(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull};o.push(f),i.push(f),c.isNull||h||l||t[e-1]&&!t[e-1].isNull||o.push(d)}return t=s.call(this,t),p&&(!0===p&&(p="left"),r.step={left:"right",center:"center",right:"left"}[p]),i=s.call(this,i),o=s.call(this,o),r.step=p,r=[].concat(t,i),!this.chart.polar&&o[0]&&"M"===o[0][0]&&(o[0]=["L",o[0][1],o[0][2]]),this.graphPath=r,this.areaPath=t.concat(o),r.isArea=!0,r.xMap=t.xMap,this.areaPath.xMap=t.xMap,r},e.prototype.drawDataLabels=function(){var t,e,i=this.points,o=i.length,s=[],r=this.options.dataLabels,n=this.chart.inverted;if(r){if(c(r))var h=r[0]||{enabled:!1},l=r[1]||{enabled:!1};else(h=p({},r)).x=r.xHigh,h.y=r.yHigh,(l=p({},r)).x=r.xLow,l.y=r.yLow;if(h.enabled||this._hasPointLabels){for(t=o;t--;)if(e=i[t]){var d=e.plotHigh;d=void 0===d?0:d;var u=e.plotLow;u=void 0===u?0:u,u=h.inside?d<u:d>u,e.y=e.high,e._plotY=e.plotY,e.plotY=d,s[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=u,n?h.align||(h.align=u?"right":"left"):h.verticalAlign||(h.verticalAlign=u?"top":"bottom")}for(this.options.dataLabels=h,a.drawDataLabels&&a.drawDataLabels.apply(this,arguments),t=o;t--;)(e=i[t])&&(e.dataLabelUpper=e.dataLabel,e.dataLabel=s[t],delete e.dataLabels,e.y=e.low,e.plotY=e._plotY)}if(l.enabled||this._hasPointLabels){for(t=o;t--;)(e=i[t])&&(d=void 0===(s=e.plotHigh)?0:s,u=void 0===(s=e.plotLow)?0:s,u=l.inside?d<u:d>u,e.below=!u,n?l.align||(l.align=u?"left":"right"):l.verticalAlign||(l.verticalAlign=u?"bottom":"top"));this.options.dataLabels=l,a.drawDataLabels&&a.drawDataLabels.apply(this,arguments)}if(h.enabled)for(t=o;t--;)(e=i[t])&&(e.dataLabels=[e.dataLabelUpper,e.dataLabel].filter((function(t){return!!t})));this.options.dataLabels=r}},e.prototype.alignDataLabel=function(){h.alignDataLabel.apply(this,arguments)},e.prototype.drawPoints=function(){var t,e=this.points.length;for(a.drawPoints.apply(this,arguments),t=0;t<e;){var i=this.points[t];i.graphics=i.graphics||[],i.origProps={plotY:i.plotY,plotX:i.plotX,isInside:i.isInside,negative:i.negative,zone:i.zone,y:i.y},(i.graphic||i.graphics[0])&&(i.graphics[0]=i.graphic),i.graphic=i.graphics[1],i.plotY=i.plotHigh,l(i.plotHighX)&&(i.plotX=i.plotHighX),i.y=u(i.high,i.origProps.y),i.negative=i.y<(this.options.threshold||0),this.zones.length&&(i.zone=i.getZone()),this.chart.polar||(i.isInside=i.isTopInside=void 0!==i.plotY&&0<=i.plotY&&i.plotY<=this.yAxis.len&&0<=i.plotX&&i.plotX<=this.xAxis.len),t++}for(a.drawPoints.apply(this,arguments),t=0;t<e;)(i=this.points[t]).graphics=i.graphics||[],(i.graphic||i.graphics[1])&&(i.graphics[1]=i.graphic),i.graphic=i.graphics[0],i.origProps&&(p(i,i.origProps),delete i.origProps),t++},e.defaultOptions=f(n.defaultOptions,g),e}(n),r(o,"afterTranslate",(function(){var t=this;"low,high"===this.pointArrayMap.join(",")&&this.points.forEach((function(e){var i=e.high,o=e.plotY;e.isNull?e.plotY=void 0:(e.plotLow=o,e.plotHigh=d(i)?t.yAxis.translate(t.dataModify?t.dataModify.modifyValue(i):i,!1,!0,void 0,!0):void 0,t.dataModify&&(e.yBottom=e.plotHigh))}))}),{order:0}),r(o,"afterTranslate",(function(){var t=this;this.points.forEach((function(e){if(t.chart.polar)t.highToXY(e),e.plotLow=e.plotY,e.tooltipPos=[((e.plotHighX||0)+(e.plotLowX||0))/2,((e.plotHigh||0)+(e.plotLow||0))/2];else{var i=e.pos(!1,e.plotLow),o=e.pos(!1,e.plotHigh);i&&o&&(i[0]=(i[0]+o[0])/2,i[1]=(i[1]+o[1])/2),e.tooltipPos=i}}))}),{order:3}),p(o.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:t,pointValKey:"low",setStackedPoints:e}),i.registerSeriesType("arearange",o),o})),e(t,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[t["Series/AreaRange/AreaRangeSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=e.seriesTypes.spline.prototype,r=i.merge;i=i.extend;var n=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.data=void 0,t.points=void 0,t}return o(i,e),i.defaultOptions=r(t.defaultOptions),i}(t);return i(n.prototype,{getPointSpline:s.getPointSpline}),e.registerSeriesType("areasplinerange",n),n})),e(t,"Series/BoxPlot/BoxPlotSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i,o){var s=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();e=e.noop;var r=o.extend,n=o.merge,a=o.pick;return o=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return s(i,e),i.prototype.pointAttribs=function(){return{}},i.prototype.translate=function(){var t=this.yAxis,i=this.pointArrayMap;e.prototype.translate.apply(this),this.points.forEach((function(e){i.forEach((function(i){null!==e[i]&&(e[i+"Plot"]=t.translate(e[i],0,1,0,1))})),e.plotHigh=e.highPlot}))},i.prototype.drawPoints=function(){var t,e,i,o,s,r,n,h,l,p,c,d=this,u=d.options,f=d.chart,g=f.renderer,m=0,y=!1!==d.doQuartiles,v=d.options.whiskerLength;d.points.forEach((function(x){var b=x.graphic,S=b?"animate":"attr",k=x.shapeArgs,M={},C={},w={},P={},A=x.color||d.color;void 0!==x.plotY&&(n=Math.round(k.width),h=Math.floor(k.x),l=h+n,p=Math.round(n/2),t=Math.floor(y?x.q1Plot:x.lowPlot),e=Math.floor(y?x.q3Plot:x.lowPlot),i=Math.floor(x.highPlot),o=Math.floor(x.lowPlot),b||(x.graphic=b=g.g("point").add(d.group),x.stem=g.path().addClass("highcharts-boxplot-stem").add(b),v&&(x.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(b)),y&&(x.box=g.path(void 0).addClass("highcharts-boxplot-box").add(b)),x.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(b)),f.styledMode||(C.stroke=x.stemColor||u.stemColor||A,C["stroke-width"]=a(x.stemWidth,u.stemWidth,u.lineWidth),C.dashstyle=x.stemDashStyle||u.stemDashStyle||u.dashStyle,x.stem.attr(C),v&&(w.stroke=x.whiskerColor||u.whiskerColor||A,w["stroke-width"]=a(x.whiskerWidth,u.whiskerWidth,u.lineWidth),w.dashstyle=x.whiskerDashStyle||u.whiskerDashStyle||u.dashStyle,x.whiskers.attr(w)),y&&(M.fill=x.fillColor||u.fillColor||A,M.stroke=u.lineColor||A,M["stroke-width"]=u.lineWidth||0,M.dashstyle=x.boxDashStyle||u.boxDashStyle||u.dashStyle,x.box.attr(M)),P.stroke=x.medianColor||u.medianColor||A,P["stroke-width"]=a(x.medianWidth,u.medianWidth,u.lineWidth),P.dashstyle=x.medianDashStyle||u.medianDashStyle||u.dashStyle,x.medianShape.attr(P)),r=x.stem.strokeWidth()%2/2,b=[["M",m=h+p+r,e],["L",m,i],["M",m,t],["L",m,o]],x.stem[S]({d:b}),y&&(r=x.box.strokeWidth()%2/2,t=Math.floor(t)+r,e=Math.floor(e)+r,b=[["M",h+=r,e],["L",h,t],["L",l+=r,t],["L",l,e],["L",h,e],["Z"]],x.box[S]({d:b})),v&&(r=x.whiskers.strokeWidth()%2/2,i+=r,o+=r,c=/%$/.test(v)?p*parseFloat(v)/100:v/2,b=[["M",m-c,i],["L",m+c,i],["M",m-c,o],["L",m+c,o]],x.whiskers[S]({d:b})),s=Math.round(x.medianPlot),r=x.medianShape.strokeWidth()%2/2,b=[["M",h,s+=r],["L",l,s]],x.medianShape[S]({d:b}))}))},i.prototype.toYData=function(t){return[t.low,t.q1,t.median,t.q3,t.high]},i.defaultOptions=n(t.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b>{series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2}),i}(t),r(o.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:e,setStackedPoints:e}),i.registerSeriesType("boxplot",o),o})),e(t,"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}})),e(t,"Series/Bubble/BubbleLegendItem.js",[t["Core/Color/Color.js"],t["Core/FormatUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e,i,o){var s=t.parse,r=i.noop,n=o.arrayMax,a=o.arrayMin,h=o.isNumber,l=o.merge,p=o.pick,c=o.stableSort;return t=function(){function t(t,e){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0,this.setState=r,this.init(t,e)}return t.prototype.init=function(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e},t.prototype.addToLegend=function(t){t.splice(this.options.legendIndex,0,this)},t.prototype.drawLegendSymbol=function(t){var e=this.chart,i=p(t.options.itemDistance,20),o=this.legendItem||{},s=this.options,r=s.ranges,n=s.connectorDistance;this.fontMetrics=e.renderer.fontMetrics(s.labels.style.fontSize),r&&r.length&&h(r[0].value)?(c(r,(function(t,e){return e.value-t.value})),this.ranges=r,this.setOptions(),this.render(),t=this.getMaxLabelSize(),e=2*(r=this.ranges[0].radius),n=0<(n=n-r+t.width)?n:0,this.maxLabel=t,this.movementX="left"===s.labels.align?n:0,o.labelWidth=e+n+i,o.labelHeight=e+this.fontMetrics.h/2):t.options.bubbleLegend.autoRanges=!0},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,i=this.chart.series[e.seriesIndex],o=this.legend.baseline,r={zIndex:e.zIndex,"stroke-width":e.borderWidth},n={zIndex:e.zIndex,"stroke-width":e.connectorWidth},a={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},h=i.options.marker.fillOpacity,c=this.chart.styledMode;t.forEach((function(d,u){c||(r.stroke=p(d.borderColor,e.borderColor,i.color),r.fill=p(d.color,e.color,1!==h?s(i.color).setOpacity(h).get("rgba"):i.color),n.stroke=p(d.connectorColor,e.connectorColor,i.color)),t[u].radius=this.getRangeRadius(d.value),t[u]=l(t[u],{center:t[0].radius-t[u].radius+o}),c||l(!0,t[u],{bubbleAttribs:l(r),connectorAttribs:l(n),labelAttribs:a})}),this)},t.prototype.getRangeRadius=function(t){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,t)},t.prototype.render=function(){var t=this.legendItem||{},e=this.chart.renderer,i=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),t.symbol=e.g("bubble-legend"),t.label=e.g("bubble-legend-item"),t.symbol.translateX=0,e=t.symbol.translateY=0;for(var o=this.ranges;e<o.length;e++){var s=o[e];s.value>=i&&this.renderRange(s)}t.symbol.add(t.label),t.label.add(t.group),this.hideOverlappingLabels()},t.prototype.renderRange=function(t){var e=this.options,i=e.labels,o=this.chart,s=o.series[e.seriesIndex],r=o.renderer,n=this.symbols;o=n.labels;var a=t.center,h=Math.abs(t.radius),l=e.connectorDistance||0,p=i.align,c=e.connectorWidth,d=this.ranges[0].radius||0,u=a-h-e.borderWidth/2+c/2,f=this.fontMetrics;f=f.f/2-(f.h-f.f)/2;var g=r.styledMode;l=this.legend.options.rtl||"left"===p?-l:l,"center"===p&&(l=0,e.connectorDistance=0,t.labelAttribs.align="center"),p=u+e.labels.y;var m=d+l+e.labels.x;n.bubbleItems.push(r.circle(d,a+((u%1?1:.5)-(c%2?0:.5)),h).attr(g?{}:t.bubbleAttribs).addClass((g?"highcharts-color-"+s.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendItem.symbol)),n.connectors.push(r.path(r.crispLine([["M",d,u],["L",d+l,u]],e.connectorWidth)).attr(g?{}:t.connectorAttribs).addClass((g?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendItem.symbol)),t=r.text(this.formatLabel(t),m,p+f).attr(g?{}:t.labelAttribs).css(g?{}:i.style).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendItem.symbol),o.push(t),t.placed=!0,t.alignAttr={x:m,y:p+f}},t.prototype.getMaxLabelSize=function(){var t,e;return this.symbols.labels.forEach((function(i){e=i.getBBox(!0),t=t?e.width>t.width?e:t:e})),t||{}},t.prototype.formatLabel=function(t){var i=this.options,o=i.labels.formatter;i=i.labels.format;var s=this.chart.numberFormatter;return i?e.format(i,t):o?o.call(t):s(t.value,1)},t.prototype.hideOverlappingLabels=function(){var t=this.chart,e=this.symbols;!this.options.labels.allowOverlap&&e&&(t.hideOverlappingLabels(e.labels),e.labels.forEach((function(t,i){t.newOpacity?t.newOpacity!==t.oldOpacity&&e.connectors[i].show():e.connectors[i].hide()})))},t.prototype.getRanges=function(){var t,e=this.legend.bubbleLegend,i=e.options.ranges,o=Number.MAX_VALUE,s=-Number.MAX_VALUE;e.chart.series.forEach((function(e){e.isBubble&&!e.ignoreSeries&&(t=e.zData.filter(h)).length&&(o=p(e.options.zMin,Math.min(o,Math.max(a(t),!1===e.options.displayNegative?e.options.zThreshold:-Number.MAX_VALUE))),s=p(e.options.zMax,Math.max(s,n(t))))}));var r=o===s?[{value:s}]:[{value:o},{value:(o+s)/2},{value:s,autoRanges:!0}];return i.length&&i[0].radius&&r.reverse(),r.forEach((function(t,e){i&&i[e]&&(r[e]=l(i[e],t))})),r},t.prototype.predictBubbleSizes=function(){var t=this.chart,e=this.fontMetrics,i=t.legend.options,o=i.floating,s=(i="horizontal"===i.layout)?t.legend.lastLineHeight:0,r=t.plotSizeX,n=t.plotSizeY,a=t.series[this.options.seriesIndex],h=a.getPxExtremes();t=Math.ceil(h.minPxSize),h=Math.ceil(h.maxPxSize);var l=Math.min(n,r);return a=a.options.maxSize,o||!/%$/.test(a)?e=h:(a=parseFloat(a),e=(l+s-e.h/2)*a/100/(a/100+1),(i&&n-e>=r||!i&&r-e>=n)&&(e=h)),[t,Math.ceil(e)]},t.prototype.updateRanges=function(t,e){var i=this.legend.options.bubbleLegend;i.minSize=t,i.maxSize=e,i.ranges=this.getRanges()},t.prototype.correctSizes=function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(e.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,e.maxPxSize),t.render())},t}(),t})),e(t,"Series/Bubble/BubbleLegendComposition.js",[t["Series/Bubble/BubbleLegendDefaults.js"],t["Series/Bubble/BubbleLegendItem.js"],t["Core/Defaults.js"],t["Core/Utilities.js"]],(function(t,e,i,o){function s(t,e,i){var o,s=this.legend,a=0<=r(this);if(s&&s.options.enabled&&s.bubbleLegend&&s.options.bubbleLegend.autoRanges&&a){var h=s.bubbleLegend.options;a=s.bubbleLegend.predictBubbleSizes(),s.bubbleLegend.updateRanges(a[0],a[1]),h.placed||(s.group.placed=!1,s.allItems.forEach((function(t){(o=t.legendItem||{}).group&&(o.group.translateY=null)}))),s.render(),this.getMargins(),this.axes.forEach((function(t){t.visible&&t.render(),h.placed||(t.setScale(),t.updateNames(),d(t.ticks,(function(t){t.isNew=!0,t.isNewLabel=!0})))})),h.placed=!0,this.getMargins(),t.call(this,e,i),s.bubbleLegend.correctSizes(),l(s,n(s))}else t.call(this,e,i),s&&s.options.enabled&&s.bubbleLegend&&(s.render(),l(s,n(s)))}function r(t){t=t.series;for(var e=0;e<t.length;){if(t[e]&&t[e].isBubble&&t[e].visible&&t[e].zData.length)return e;e++}return-1}function n(t){var e,i=[],o=(t=t.allItems).length,s=0;for(e=0;e<o;e++){var r=t[e].legendItem||{},n=(t[e+1]||{}).legendItem||{};if(r.labelHeight&&(t[e].itemHeight=r.labelHeight),t[e]===t[o-1]||r.y!==n.y){for(i.push({height:0}),r=i[i.length-1];s<=e;s++)t[s].itemHeight>r.height&&(r.height=t[s].itemHeight);r.step=e}}return i}function a(t){var i=this.bubbleLegend,o=this.options,s=o.bubbleLegend,n=r(this.chart);i&&i.ranges&&i.ranges.length&&(s.ranges.length&&(s.autoRanges=!!s.ranges[0].autoRanges),this.destroyItem(i)),0<=n&&o.enabled&&s.enabled&&(s.seriesIndex=n,this.bubbleLegend=new e(s,this),this.bubbleLegend.addToLegend(t.allItems))}function h(){var t=this.chart,e=this.visible,i=this.chart.legend;i&&i.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,t=0<=r(t),i.bubbleLegend.visible!==t&&(i.update({bubbleLegend:{enabled:t}}),i.bubbleLegend.visible=t),this.visible=e)}function l(t,e){var i,o,s,r,n=t.options.rtl,a=0;t.allItems.forEach((function(t,h){(r=t.legendItem||{}).group&&(i=r.group.translateX||0,o=r.y||0,((s=t.movementX)||n&&t.ranges)&&(s=n?i-t.options.maxSize/2:i+s,r.group.attr({translateX:s})),h>e[a].step&&a++,r.group.attr({translateY:Math.round(o+e[a].height/2)}),r.y=o+e[a].height/2)}))}var p=i.setOptions,c=o.addEvent,d=o.objectEach,u=o.wrap,f=[];return{compose:function(e,i,o){-1===f.indexOf(e)&&(f.push(e),p({legend:{bubbleLegend:t}}),u(e.prototype,"drawChartBox",s)),-1===f.indexOf(i)&&(f.push(i),c(i,"afterGetAllItems",a)),-1===f.indexOf(o)&&(f.push(o),c(o,"legendItemClick",h))}}})),e(t,"Series/Bubble/BubblePoint.js",[t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();return i=i.extend,e=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return o(i,e),i.prototype.haloPath=function(e){return t.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},i}(e.seriesTypes.scatter.prototype.pointClass),i(e.prototype,{ttBelow:!1}),e})),e(t,"Series/Bubble/BubbleSeries.js",[t["Series/Bubble/BubbleLegendComposition.js"],t["Series/Bubble/BubblePoint.js"],t["Core/Color/Color.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i,o,s,r){function n(){var t,e=this,i=this.len,o=this.chart,s=this.isXAxis,r=s?"xData":"yData",n=this.min,a=this.max-n,h=0,l=i,p=i/a;this.series.forEach((function(i){if(i.bubblePadding&&(i.visible||!o.options.chart.ignoreHiddenSeries)){t=e.allowZoomOutside=!0;var c=i[r];if(s&&((i.onPoint||i).getRadii(0,0,i),i.onPoint&&(i.radii=i.onPoint.radii)),0<a)for(var d=c.length;d--;)if(m(c[d])&&e.dataMin<=c[d]&&c[d]<=e.max){var u=i.radii&&i.radii[d]||0;h=Math.min((c[d]-n)*p-u,h),l=Math.max((c[d]-n)*p+u,l)}}})),t&&0<a&&!this.logarithmic&&(l-=i,p*=(i+Math.max(0,h)-Math.min(l,i))/i,[["min","userMin",h],["max","userMax",l]].forEach((function(t){void 0===v(e.options[t[0]],e[t[1]])&&(e[t[0]]+=t[2]/p)})))}var a=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),h=i.parse;i=o.noop;var l=s.series,p=s.seriesTypes;o=p.column.prototype;var c=p.scatter;p=r.addEvent;var d=r.arrayMax,u=r.arrayMin,f=r.clamp,g=r.extend,m=r.isNumber,y=r.merge,v=r.pick,x=[];return r=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.maxPxSize=void 0,t.minPxSize=void 0,t.options=void 0,t.points=void 0,t.radii=void 0,t.yData=void 0,t.zData=void 0,t}return a(i,e),i.compose=function(e,i,o,s){t.compose(i,o,s),-1===x.indexOf(e)&&(x.push(e),e.prototype.beforePadding=n)},i.prototype.animate=function(t){!t&&this.points.length<this.options.animationLimit&&this.points.forEach((function(t){var e=t.graphic;e&&e.width&&(this.hasRendered||e.attr({x:t.plotX,y:t.plotY,width:1,height:1}),e.animate(this.markerAttribs(t),this.options.animation))}),this)},i.prototype.getRadii=function(){var t=this,e=this.zData,i=this.yData,o=[],s=this.chart.bubbleZExtremes,r=this.getPxExtremes(),n=r.minPxSize,a=r.maxPxSize;if(!s){var h,l=Number.MAX_VALUE,p=-Number.MAX_VALUE;this.chart.series.forEach((function(e){e.bubblePadding&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&(e=(e.onPoint||e).getZExtremes())&&(l=Math.min(l||e.zMin,e.zMin),p=Math.max(p||e.zMax,e.zMax),h=!0)})),h?(s={zMin:l,zMax:p},this.chart.bubbleZExtremes=s):s={zMin:0,zMax:0}}var c=0;for(r=e.length;c<r;c++){var d=e[c];o.push(this.getRadius(s.zMin,s.zMax,n,a,d,i&&i[c]))}this.radii=o},i.prototype.getRadius=function(t,e,i,o,s,r){var n=this.options,a="width"!==n.sizeBy,h=n.zThreshold,l=e-t,p=.5;if(null===r||null===s)return null;if(m(s)){if(n.sizeByAbsoluteValue&&(s=Math.abs(s-h),l=Math.max(e-h,Math.abs(t-h)),t=0),s<t)return i/2-1;0<l&&(p=(s-t)/l)}return a&&0<=p&&(p=Math.sqrt(p)),Math.ceil(i+p*(o-i))/2},i.prototype.hasData=function(){return!!this.processedXData.length},i.prototype.pointAttribs=function(t,e){var i=this.options.marker.fillOpacity;return t=l.prototype.pointAttribs.call(this,t,e),1!==i&&(t.fill=h(t.fill).setOpacity(i).get("rgba")),t},i.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},i.prototype.translateBubble=function(){for(var t=this.data,e=this.radii,i=this.getPxExtremes().minPxSize,o=t.length;o--;){var s=t[o],r=e?e[o]:0;m(r)&&r>=i/2?(s.marker=g(s.marker,{radius:r,width:2*r,height:2*r}),s.dlBox={x:s.plotX-r,y:s.plotY-r,width:2*r,height:2*r}):(s.shapeArgs=s.plotY=s.dlBox=void 0,s.isInside=!1)}},i.prototype.getPxExtremes=function(){var t=Math.min(this.chart.plotWidth,this.chart.plotHeight),e=function(e){if("string"==typeof e){var i=/%$/.test(e);e=parseInt(e,10)}return i?t*e/100:e},i=e(v(this.options.minSize,8));return{minPxSize:i,maxPxSize:e=Math.max(e(v(this.options.maxSize,"20%")),i)}},i.prototype.getZExtremes=function(){var t=this.options,e=(this.zData||[]).filter(m);if(e.length){var i=v(t.zMin,f(u(e),!1===t.displayNegative?t.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));if(t=v(t.zMax,d(e)),m(i)&&m(t))return{zMin:i,zMax:t}}},i.defaultOptions=y(c.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return m(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),i}(c),g(r.prototype,{alignDataLabel:o.alignDataLabel,applyZones:i,bubblePadding:!0,buildKDTree:i,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:e,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),p(r,"updatedData",(function(t){delete t.target.chart.bubbleZExtremes})),p(r,"remove",(function(t){delete t.target.chart.bubbleZExtremes})),s.registerSeriesType("bubble",r),r})),e(t,"Series/ColumnRange/ColumnRangePoint.js",[t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=t.seriesTypes;t=o.column.prototype.pointClass.prototype;var s=e.extend,r=e.isNumber;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return i(e,t),e.prototype.isValid=function(){return r(this.low)},e}(o.arearange.prototype.pointClass),s(e.prototype,{setState:t.setState}),e})),e(t,"Series/ColumnRange/ColumnRangeSeries.js",[t["Series/ColumnRange/ColumnRangePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i,o){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();e=e.noop;var r=i.seriesTypes,n=r.arearange,a=r.column,h=r.column.prototype,l=o.clamp;r=o.extend;var p=o.isNumber,c=o.merge,d=o.pick,u={pointRange:null,marker:null,states:{hover:{halo:!1}}};return o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setOptions=function(){return c(!0,arguments[0],{stacking:void 0}),n.prototype.setOptions.apply(this,arguments)},e.prototype.translate=function(){var t,e,i,o,s=this,r=this.yAxis,n=this.xAxis,a=n.startAngleRad,c=this.chart,u=this.xAxis.isRadial,f=Math.max(c.chartWidth,c.chartHeight)+999;h.translate.apply(this),this.points.forEach((function(h){var g=h.shapeArgs||{},m=s.options.minPointLength,y=h.plotY,v=r.translate(h.high,0,1,0,1);p(v)&&p(y)&&(h.plotHigh=l(v,-f,f),h.plotLow=l(y,-f,f),o=h.plotHigh,t=d(h.rectPlotY,h.plotY)-h.plotHigh,Math.abs(t)<m?(t+=e=m-t,o-=e/2):0>t&&(o-=t*=-1),u&&s.polar?(i=h.barX+a,h.shapeType="arc",h.shapeArgs=s.polar.arc(o+t,o,i,i+h.pointWidth)):(g.height=t,g.y=o,m=void 0===(m=g.x)?0:m,g=void 0===(g=g.width)?0:g,h.tooltipPos=c.inverted?[r.len+r.pos-c.plotLeft-o-t/2,n.len+n.pos-c.plotTop-m-g/2,t]:[n.left-c.plotLeft+m+g/2,r.pos-c.plotTop+o+t/2,t]))}))},e.prototype.pointAttribs=function(){return h.pointAttribs.apply(this,arguments)},e.prototype.translate3dPoints=function(){return h.translate3dPoints.apply(this,arguments)},e.prototype.translate3dShapes=function(){return h.translate3dShapes.apply(this,arguments)},e.defaultOptions=c(a.defaultOptions,n.defaultOptions,u),e}(n),r(o.prototype,{directTouch:!0,pointClass:t,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:h.adjustForMissingColumns,animate:h.animate,crispCol:h.crispCol,drawGraph:e,drawPoints:h.drawPoints,getSymbol:e,drawTracker:h.drawTracker,getColumnMetrics:h.getColumnMetrics}),i.registerSeriesType("columnrange",o),o})),e(t,"Series/ColumnPyramid/ColumnPyramidSeries.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=t.prototype,r=i.clamp,n=i.merge,a=i.pick;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.prototype.translate=function(){var t=this,e=t.chart,i=t.options,o=t.dense=2>t.closestPointRange*t.xAxis.transA;o=t.borderWidth=a(i.borderWidth,o?0:1);var n=t.yAxis,h=i.threshold,l=t.translatedThreshold=n.getThreshold(h),p=a(i.minPointLength,5),c=t.getColumnMetrics(),d=c.width,u=t.barW=Math.max(d,1+2*o),f=t.pointXOffset=c.offset;e.inverted&&(l-=.5),i.pointPadding&&(u=Math.ceil(u)),s.translate.apply(t),t.points.forEach((function(o){var s=a(o.yBottom,l),c=999+Math.abs(s),g=r(o.plotY,-c,n.len+c);c=o.plotX+f;var m,y=u/2,v=Math.min(g,s);s=Math.max(g,s)-v,o.barX=c,o.pointWidth=d,o.tooltipPos=e.inverted?[n.len+n.pos-e.plotLeft-g,t.xAxis.len-c-y,s]:[c+y,g+n.pos-e.plotTop,s],g=h+(o.total||o.y),"percent"===i.stacking&&(g=h+(0>o.y)?-100:100),g=n.toPixels(g,!0);var x=(m=e.plotHeight-g-(e.plotHeight-l))?y*(v-g)/m:0,b=m?y*(v+s-g)/m:0;m=c-x+y,x=c+x+y;var S=c+b+y;b=c-b+y;var k=v-p,M=v+s;0>o.y&&(k=v,M=v+s+p),e.inverted&&(b=y*(g-((S=n.width-v)-s))/(m=g-(n.width-l)),x=(m=c+y+(x=y*(g-S)/m))-2*x,S=c-b+y,b=c+b+y,k=v,M=v+s-p,0>o.y&&(M=v+s+p)),o.shapeType="path",o.shapeArgs={x:m,y:k,width:x-m,height:s,d:[["M",m,k],["L",x,k],["L",S,M],["L",b,M],["Z"]]}}))},i.defaultOptions=n(t.defaultOptions,{}),i}(t),e.registerSeriesType("columnpyramid",i),i})),e(t,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],(function(){return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}})),e(t,"Series/ErrorBar/ErrorBarSeries.js",[t["Series/BoxPlot/BoxPlotSeries.js"],t["Series/Column/ColumnSeries.js"],t["Series/ErrorBar/ErrorBarSeriesDefaults.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i,o,s){var r=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),n=o.seriesTypes.arearange,a=s.addEvent,h=s.merge;s=s.extend;var l=function(o){function s(){var t=null!==o&&o.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(s,o),s.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||e.prototype.getColumnMetrics.call(this)},s.prototype.drawDataLabels=function(){var t=this.pointValKey;n&&(n.prototype.drawDataLabels.call(this),this.data.forEach((function(e){e.y=e[t]})))},s.prototype.toYData=function(t){return[t.low,t.high]},s.defaultOptions=h(t.defaultOptions,i),s}(t);return a(l,"afterTranslate",(function(){this.points.forEach((function(t){t.plotLow=t.plotY}))}),{order:0}),s(l.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),o.registerSeriesType("errorbar",l),l})),e(t,"Series/Gauge/GaugePoint.js",[t["Core/Series/SeriesRegistry.js"]],(function(t){var e=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();return function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e.shapeArgs=void 0,e}return e(i,t),i.prototype.setState=function(t){this.state=t},i}(t.series.prototype.pointClass)})),e(t,"Series/Gauge/GaugeSeries.js",[t["Series/Gauge/GaugePoint.js"],t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i,o){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();e=e.noop;var r=i.series,n=i.seriesTypes.column,a=o.clamp,h=o.isNumber,l=o.extend,p=o.merge,c=o.pick,d=o.pInt;return o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.points=void 0,e.options=void 0,e.yAxis=void 0,e}return s(e,t),e.prototype.translate=function(){var t=this.yAxis,e=this.options,i=t.center;this.generatePoints(),this.points.forEach((function(o){var s=p(e.dial,o.dial),r=d(s.radius)*i[2]/200,n=d(s.baseLength)*r/100,l=d(s.rearLength)*r/100,c=s.baseWidth,u=s.topWidth,f=e.overshoot,g=t.startAngleRad+t.translate(o.y,void 0,void 0,void 0,!0);(h(f)||!1===e.wrap)&&(f=h(f)?f/180*Math.PI:0,g=a(g,t.startAngleRad-f,t.endAngleRad+f)),g=180*g/Math.PI,o.shapeType="path",o.shapeArgs={d:s.path||[["M",-l,-c/2],["L",n,-c/2],["L",r,-u/2],["L",r,u/2],["L",n,c/2],["L",-l,c/2],["Z"]],translateX:i[0],translateY:i[1],rotation:g},o.plotX=i[0],o.plotY=i[1]}))},e.prototype.drawPoints=function(){var t=this,e=t.chart,i=t.yAxis.center,o=t.pivot,s=t.options,r=s.pivot,n=e.renderer;t.points.forEach((function(i){var o=i.graphic,r=i.shapeArgs,a=r.d,h=p(s.dial,i.dial);o?(o.animate(r),r.d=a):i.graphic=n[i.shapeType](r).attr({rotation:r.rotation,zIndex:1}).addClass("highcharts-dial").add(t.group),e.styledMode||i.graphic[o?"animate":"attr"]({stroke:h.borderColor,"stroke-width":h.borderWidth,fill:h.backgroundColor})})),o?o.animate({translateX:i[0],translateY:i[1]}):r&&(t.pivot=n.circle(0,0,r.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(i[0],i[1]).add(t.group),e.styledMode||t.pivot.attr({fill:r.backgroundColor,stroke:r.borderColor,"stroke-width":r.borderWidth}))},e.prototype.animate=function(t){var e=this;t||e.points.forEach((function(t){var i=t.graphic;i&&(i.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),i.animate({rotation:t.shapeArgs.rotation},e.options.animation))}))},e.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),r.prototype.render.call(this),this.group.clip(this.chart.clipRect)},e.prototype.setData=function(t,e){r.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),c(e,!0)&&this.chart.redraw()},e.prototype.hasData=function(){return!!this.points.length},e.defaultOptions=p(r.defaultOptions,{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{backgroundColor:"#000000",baseLength:"70%",baseWidth:3,borderColor:"#cccccc",borderWidth:0,radius:"80%",rearLength:"10%",topWidth:1},pivot:{radius:5,borderWidth:0,borderColor:"#cccccc",backgroundColor:"#000000"},tooltip:{headerFormat:""},showInLegend:!1}),e}(r),l(o.prototype,{angular:!0,directTouch:!0,drawGraph:e,drawTracker:n.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:t,trackerGroups:["group","dataLabelsGroup"]}),i.registerSeriesType("gauge",o),o})),e(t,"Series/DragNodesComposition.js",[t["Core/Utilities.js"]],(function(t){function e(){var t,e,o,s=this;s.container&&(t=i(s.container,"mousedown",(function(t){var r=s.hoverPoint;r&&r.series&&r.series.hasDraggableNodes&&r.series.options.draggable&&(r.series.onMouseDown(r,t),e=i(s.container,"mousemove",(function(t){return r&&r.series&&r.series.onMouseMove(r,t)})),o=i(s.container.ownerDocument,"mouseup",(function(t){return e(),o(),r&&r.series&&r.series.onMouseUp(r,t)})))}))),i(s,"destroy",(function(){t()}))}var i=t.addEvent,o=[];return{compose:function(t){-1===o.indexOf(t)&&(o.push(t),i(t,"load",e))},onMouseDown:function(t,e){e=this.chart.pointer.normalize(e),t.fixedPosition={chartX:e.chartX,chartY:e.chartY,plotX:t.plotX,plotY:t.plotY},t.inDragMode=!0},onMouseMove:function(t,e){if(t.fixedPosition&&t.inDragMode){var i=this.chart,o=i.pointer.normalize(e);e=t.fixedPosition.chartX-o.chartX,o=t.fixedPosition.chartY-o.chartY;var s=i.graphLayoutsLookup,r=void 0,n=void 0;(5<Math.abs(e)||5<Math.abs(o))&&(r=t.fixedPosition.plotX-e,n=t.fixedPosition.plotY-o,i.isInsidePlot(r,n)&&(t.plotX=r,t.plotY=n,t.hasDragged=!0,this.redrawHalo(t),s.forEach((function(t){t.restartSimulation()}))))}},onMouseUp:function(t,e){t.fixedPosition&&(t.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),t.inDragMode=t.hasDragged=!1,this.options.fixedDraggable||delete t.fixedPosition)},redrawHalo:function(t){t&&this.halo&&this.halo.attr({d:t.haloPath(this.options.states.hover.halo.size)})}}})),e(t,"Series/GraphLayoutComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Utilities.js"]],(function(t,e){function i(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach((function(t){t.updateSimulation()})),this.redraw())}function o(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach((function(t){t.updateSimulation(!1)})),this.redraw())}function s(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach((function(t){t.stop()}))}function r(){var t=!1,e=function(e){e.maxIterations--&&isFinite(e.temperature)&&!e.isStable()&&!e.enableSimulation&&(e.beforeStep&&e.beforeStep(),e.step(),i=!1,t=!0)};if(this.graphLayoutsLookup){for(n(!1,this),this.graphLayoutsLookup.forEach((function(t){return t.start()}));!i;){var i=!0;this.graphLayoutsLookup.forEach(e)}t&&this.series.forEach((function(t){t&&t.layout&&t.render()}))}}var n=t.setAnimation,a=e.addEvent,h=[];return{compose:function(t){h.indexOf(t)&&(h.push(t),a(t,"afterPrint",i),a(t,"beforePrint",o),a(t,"predraw",s),a(t,"render",r))},integrations:{},layouts:{}}})),e(t,"Series/PackedBubble/PackedBubblePoint.js",[t["Core/Chart/Chart.js"],t["Core/Series/Point.js"],t["Core/Series/SeriesRegistry.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();return function(i){function s(){var t=null!==i&&i.apply(this,arguments)||this;return t.degree=NaN,t.mass=NaN,t.radius=NaN,t.options=void 0,t.series=void 0,t.value=null,t}return o(s,i),s.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),e.prototype.destroy.apply(this,arguments)},s.prototype.firePointEvent=function(){var t=this.series.options;if(this.isParentNode&&t.parentNode){var i=t.allowPointSelect;t.allowPointSelect=t.parentNode.allowPointSelect,e.prototype.firePointEvent.apply(this,arguments),t.allowPointSelect=i}else e.prototype.firePointEvent.apply(this,arguments)},s.prototype.select=function(){var i=this.series.chart;this.isParentNode?(i.getSelectedPoints=i.getSelectedParentNodes,e.prototype.select.apply(this,arguments),i.getSelectedPoints=t.prototype.getSelectedPoints):e.prototype.select.apply(this,arguments)},s}(i.seriesTypes.bubble.prototype.pointClass)})),e(t,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[t["Core/Utilities.js"]],(function(t){var e=t.isNumber;return{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",crisp:!1,tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,parentNode:{allowPointSelect:!1},dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,i=this.point.value;return e(i)?t(i,-1):""},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0,style:{transition:"opacity 2000ms"}},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:null,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1e3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}}})),e(t,"Series/Networkgraph/VerletIntegration.js",[],(function(){return{attractive:function(t,e,i){var o=t.getMass(),s=-i.x*e*this.diffTemperature;e=-i.y*e*this.diffTemperature,t.fromNode.fixedPosition||(t.fromNode.plotX-=s*o.fromNode/t.fromNode.degree,t.fromNode.plotY-=e*o.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.plotX+=s*o.toNode/t.toNode.degree,t.toNode.plotY+=e*o.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return(e-t)/t},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,i=this.barycenter.yFactor;e=(e-(this.box.left+this.box.width)/2)*t,i=(i-(this.box.top+this.box.height)/2)*t,this.nodes.forEach((function(t){t.fixedPosition||(t.plotX-=e/t.mass/t.degree,t.plotY-=i/t.mass/t.degree)}))},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.5)},integrate:function(t,e){var i=-t.options.friction,o=t.options.maxSpeed,s=(e.plotX+e.dispX-e.prevX)*i;i*=e.plotY+e.dispY-e.prevY;var r=Math.abs,n=r(s)/(s||1);r=r(i)/(i||1),s=n*Math.min(o,Math.abs(s)),i=r*Math.min(o,Math.abs(i)),e.prevX=e.plotX+e.dispX,e.prevY=e.plotY+e.dispY,e.plotX+=s,e.plotY+=i,e.temperature=t.vectorLength({x:s,y:i})},repulsive:function(t,e,i){e=e*this.diffTemperature/t.mass/t.degree,t.fixedPosition||(t.plotX+=i.x*e,t.plotY+=i.y*e)},repulsiveForceFunction:function(t,e){return(e-t)/t*(e>t?1:0)}}})),e(t,"Series/PackedBubble/PackedBubbleIntegration.js",[t["Core/Globals.js"],t["Series/Networkgraph/VerletIntegration.js"]],(function(t,e){return{barycenter:function(){for(var t,e,i=this.options.gravitationalConstant,o=this.box,s=this.nodes,r=0;r<s.length;r++){var n=s[r];this.options.splitSeries&&!n.isParentNode?(t=n.series.parentNode.plotX,e=n.series.parentNode.plotY):(t=o.width/2,e=o.height/2),n.fixedPosition||(n.plotX-=(n.plotX-t)*i/(n.mass*Math.sqrt(s.length)),n.plotY-=(n.plotY-e)*i/(n.mass*Math.sqrt(s.length)))}},getK:t.noop,integrate:e.integrate,repulsive:function(t,e,i,o){var s=e*this.diffTemperature/t.mass/t.degree;e=i.x*s,i=i.y*s,t.fixedPosition||(t.plotX+=e,t.plotY+=i),o.fixedPosition||(o.plotX-=e,o.plotY-=i)},repulsiveForceFunction:function(t,e,i,o){return Math.min(t,(i.marker.radius+o.marker.radius)/2)}}})),e(t,"Series/Networkgraph/EulerIntegration.js",[],(function(){return{attractive:function(t,e,i,o){var s=t.getMass(),r=i.x/o*e;e*=i.y/o,t.fromNode.fixedPosition||(t.fromNode.dispX-=r*s.fromNode/t.fromNode.degree,t.fromNode.dispY-=e*s.fromNode/t.fromNode.degree),t.toNode.fixedPosition||(t.toNode.dispX+=r*s.toNode/t.toNode.degree,t.toNode.dispY+=e*s.toNode/t.toNode.degree)},attractiveForceFunction:function(t,e){return t*t/e},barycenter:function(){var t=this.options.gravitationalConstant,e=this.barycenter.xFactor,i=this.barycenter.yFactor;this.nodes.forEach((function(o){if(!o.fixedPosition){var s=o.getDegree();s*=1+s/2,o.dispX+=(e-o.plotX)*t*s/o.degree,o.dispY+=(i-o.plotY)*t*s/o.degree}}))},getK:function(t){return Math.pow(t.box.width*t.box.height/t.nodes.length,.3)},integrate:function(t,e){e.dispX+=e.dispX*t.options.friction,e.dispY+=e.dispY*t.options.friction;var i=e.temperature=t.vectorLength({x:e.dispX,y:e.dispY});0!==i&&(e.plotX+=e.dispX/i*Math.min(Math.abs(e.dispX),t.temperature),e.plotY+=e.dispY/i*Math.min(Math.abs(e.dispY),t.temperature))},repulsive:function(t,e,i,o){t.dispX+=i.x/o*e/t.degree,t.dispY+=i.y/o*e/t.degree},repulsiveForceFunction:function(t,e){return e*e/t}}})),e(t,"Series/Networkgraph/QuadTreeNode.js",[],(function(){return function(){function t(t){this.isInternal=this.isEmpty=this.body=!1,this.nodes=[],this.box=t,this.boxSize=Math.min(t.width,t.height)}return t.prototype.divideBox=function(){var e=this.box.width/2,i=this.box.height/2;this.nodes[0]=new t({left:this.box.left,top:this.box.top,width:e,height:i}),this.nodes[1]=new t({left:this.box.left+e,top:this.box.top,width:e,height:i}),this.nodes[2]=new t({left:this.box.left+e,top:this.box.top+i,width:e,height:i}),this.nodes[3]=new t({left:this.box.left,top:this.box.top+i,width:e,height:i})},t.prototype.getBoxPosition=function(t){var e=t.plotY<this.box.top+this.box.height/2;return t.plotX<this.box.left+this.box.width/2?e?0:3:e?1:2},t.prototype.insert=function(e,i){this.isInternal?this.nodes[this.getBoxPosition(e)].insert(e,i-1):(this.isEmpty=!1,this.body?i?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,i-1),this.body=!0),this.nodes[this.getBoxPosition(e)].insert(e,i-1)):((i=new t({top:e.plotX||NaN,left:e.plotY||NaN,width:.1,height:.1})).body=e,i.isInternal=!1,this.nodes.push(i)):(this.isInternal=!1,this.body=e))},t.prototype.updateMassAndCenter=function(){var t=0,e=0,i=0;if(this.isInternal){for(var o=0,s=this.nodes;o<s.length;o++){var r=s[o];r.isEmpty||(t+=r.mass,e+=r.plotX*r.mass,i+=r.plotY*r.mass)}e/=t,i/=t}else this.body&&(t=this.body.mass,e=this.body.plotX,i=this.body.plotY);this.mass=t,this.plotX=e,this.plotY=i},t}()})),e(t,"Series/Networkgraph/QuadTree.js",[t["Series/Networkgraph/QuadTreeNode.js"]],(function(t){return function(){function e(e,i,o,s){this.box={left:e,top:i,width:o,height:s},this.maxDepth=25,this.root=new t(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return e.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,(function(t){t.updateMassAndCenter()}))},e.prototype.insertNodes=function(t){for(var e=0;e<t.length;e++)this.root.insert(t[e],this.maxDepth)},e.prototype.visitNodeRecursive=function(t,e,i){var o;if(t||(t=this.root),t===this.root&&e&&(o=e(t)),!1!==o){for(var s=0,r=t.nodes;s<r.length;s++){var n=r[s];if(n.isInternal){if(e&&(o=e(n)),!1===o)continue;this.visitNodeRecursive(n,e,i)}else n.body&&e&&e(n.body);i&&i(n)}t===this.root&&i&&i(t)}},e}()})),e(t,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[t["Series/Networkgraph/EulerIntegration.js"],t["Core/Globals.js"],t["Series/GraphLayoutComposition.js"],t["Series/Networkgraph/QuadTree.js"],t["Core/Utilities.js"],t["Series/Networkgraph/VerletIntegration.js"]],(function(t,e,i,o,s,r){var n=e.win,a=s.clamp,h=s.defined,l=s.isFunction,p=s.pick;return function(){function e(){this.attractiveForce=void 0,this.box={},this.currentStep=0,this.initialRendering=!0,this.integration=void 0,this.links=[],this.nodes=[],this.repulsiveForce=this.quadTree=this.options=void 0,this.series=[],this.simulation=!1}return e.compose=function(o){i.compose(o),i.integrations.euler=t,i.integrations.verlet=r,i.layouts["reingold-fruchterman"]=e},e.prototype.init=function(t){this.options=t,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=i.integrations[t.integration],this.enableSimulation=t.enableSimulation,this.attractiveForce=p(t.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=p(t.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=t.approximation},e.prototype.updateSimulation=function(t){this.enableSimulation=p(t,this.options.enableSimulation)},e.prototype.start=function(){var t=this.series,e=this.options;this.currentStep=0,this.forces=t[0]&&t[0].forces||[],this.chart=t[0]&&t[0].chart,this.initialRendering&&(this.initPositions(),t.forEach((function(t){t.finishedAnimating=!0,t.render()}))),this.setK(),this.resetSimulation(e),this.enableSimulation&&this.step()},e.prototype.step=function(){var t=this,e=this.series;this.currentStep++,"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var i=0,o=this.forces||[];i<o.length;i++)this[o[i]+"Forces"](this.temperature);if(this.applyLimits(),this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep),this.prevSystemTemperature=this.systemTemperature,this.systemTemperature=this.getSystemTemperature(),this.enableSimulation){for(i=0;i<e.length;i++)(o=e[i]).chart&&o.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&n.cancelAnimationFrame(this.simulation),this.simulation=n.requestAnimationFrame((function(){return t.step()}))):this.simulation=!1}},e.prototype.stop=function(){this.simulation&&n.cancelAnimationFrame(this.simulation)},e.prototype.setArea=function(t,e,i,o){this.box={left:t,top:e,width:i,height:o}},e.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},e.prototype.addElementsToCollection=function(t,e){for(var i=0;i<t.length;i++){var o=t[i];-1===e.indexOf(o)&&e.push(o)}},e.prototype.removeElementFromCollection=function(t,e){-1!==(t=e.indexOf(t))&&e.splice(t,1)},e.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},e.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},e.prototype.restartSimulation=function(){this.simulation?this.resetSimulation():(this.setInitialRendering(!1),this.enableSimulation?this.start():this.setMaxIterations(1),this.chart&&this.chart.redraw(),this.setInitialRendering(!0))},e.prototype.setMaxIterations=function(t){this.maxIterations=p(t,this.options.maxIterations)},e.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},e.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},e.prototype.setInitialRendering=function(t){this.initialRendering=t},e.prototype.createQuadTree=function(){this.quadTree=new o(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},e.prototype.initPositions=function(){var t=this.options.initialPositions;if(l(t)){t.call(this),t=0;for(var e=this.nodes;t<e.length;t++){var i=e[t];h(i.prevX)||(i.prevX=i.plotX),h(i.prevY)||(i.prevY=i.plotY),i.dispX=0,i.dispY=0}}else"circle"===t?this.setCircularPositions():this.setRandomPositions()},e.prototype.setCircularPositions=function(){for(var t=this.box,e=this.nodes,i=2*Math.PI/(e.length+1),o=e.filter((function(t){return 0===t.linksTo.length})),s={},r=this.options.initialPositionRadius,n=function(t){var e=0;for(t=t.linksFrom||[];e<t.length;e++){var i=t[e];s[i.toNode.id]||(s[i.toNode.id]=!0,a.push(i.toNode),n(i.toNode))}},a=[],h=0;h<o.length;h++){var l=o[h];a.push(l),n(l)}if(a.length)for(o=0;o<e.length;o++)h=e[o],-1===a.indexOf(h)&&a.push(h);else a=e;for(o=0,h=a.length;o<h;++o)(e=a[o]).plotX=e.prevX=p(e.plotX,t.width/2+r*Math.cos(o*i)),e.plotY=e.prevY=p(e.plotY,t.height/2+r*Math.sin(o*i)),e.dispX=0,e.dispY=0},e.prototype.setRandomPositions=function(){for(var t,e=this.box,i=this.nodes,o=i.length+1,s=function(t){return(t=t*t/Math.PI)-Math.floor(t)},r=0,n=i.length;r<n;++r)(t=i[r]).plotX=t.prevX=p(t.plotX,e.width*s(r)),t.plotY=t.prevY=p(t.plotY,e.height*s(o+r)),t.dispX=0,t.dispY=0},e.prototype.force=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];this.integration[t].apply(this,e)},e.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},e.prototype.getBarycenter=function(){for(var t=0,e=0,i=0,o=0,s=this.nodes;o<s.length;o++){var r=s[o];e+=r.plotX*r.mass,i+=r.plotY*r.mass,t+=r.mass}return this.barycenter={x:e,y:i,xFactor:e/t,yFactor:i/t}},e.prototype.barnesHutApproximation=function(t,e){var i=this.getDistXY(t,e),o=this.vectorLength(i);if(t!==e&&0!==o)if(e.isInternal)if(e.boxSize/o<this.options.theta&&0!==o){var s=this.repulsiveForce(o,this.k);this.force("repulsive",t,s*e.mass,i,o);var r=!1}else r=!0;else s=this.repulsiveForce(o,this.k),this.force("repulsive",t,s*e.mass,i,o);return r},e.prototype.repulsiveForces=function(){var t=this;if("barnes-hut"===this.approximation)for(var e=function(e){i.quadTree.visitNodeRecursive(null,(function(i){return t.barnesHutApproximation(e,i)}))},i=this,o=0,s=this.nodes;o<s.length;o++){var r=s[o];e(r)}else{s=o=e=void 0;for(var n=0,a=this.nodes;n<a.length;n++){r=a[n];for(var h=0,l=this.nodes;h<l.length;h++){var p=l[h];r===p||r.fixedPosition||(s=this.getDistXY(r,p),0!==(o=this.vectorLength(s))&&(e=this.repulsiveForce(o,this.k),this.force("repulsive",r,e*p.mass,s,o)))}}}},e.prototype.attractiveForces=function(){for(var t,e,i,o=0,s=this.links;o<s.length;o++){var r=s[o];r.fromNode&&r.toNode&&(t=this.getDistXY(r.fromNode,r.toNode),0!==(e=this.vectorLength(t))&&(i=this.attractiveForce(e,this.k),this.force("attractive",r,i,t,e)))}},e.prototype.applyLimits=function(){for(var t=0,e=this.nodes;t<e.length;t++){var i=e[t];if(i.fixedPosition)break;this.integration.integrate(this,i),this.applyLimitBox(i,this.box),i.dispX=0,i.dispY=0}},e.prototype.applyLimitBox=function(t,e){var i=t.radius;t.plotX=a(t.plotX,e.left+i,e.width-i),t.plotY=a(t.plotY,e.top+i,e.height-i)},e.prototype.coolDown=function(t,e,i){return t-e*i},e.prototype.isStable=function(){return 1e-5>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature},e.prototype.getSystemTemperature=function(){for(var t=0,e=0,i=this.nodes;e<i.length;e++)t+=i[e].temperature;return t},e.prototype.vectorLength=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.prototype.getDistR=function(t,e){return t=this.getDistXY(t,e),this.vectorLength(t)},e.prototype.getDistXY=function(t,e){var i=t.plotX-e.plotX;return{x:i,y:t=t.plotY-e.plotY,absX:Math.abs(i),absY:Math.abs(t)}},e}()})),e(t,"Series/PackedBubble/PackedBubbleLayout.js",[t["Series/GraphLayoutComposition.js"],t["Series/PackedBubble/PackedBubbleIntegration.js"],t["Series/Networkgraph/ReingoldFruchtermanLayout.js"],t["Core/Utilities.js"]],(function(t,e,i,o){function s(){var t=[];return this.series.forEach((function(e){e.parentNode&&e.parentNode.selected&&t.push(e.parentNode)})),t}function r(){this.allDataPoints&&delete this.allDataPoints}var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),a=o.addEvent,h=o.pick,l=[];return o=function(o){function p(){var t=null!==o&&o.apply(this,arguments)||this;return t.index=NaN,t.nodes=[],t.options=void 0,t.series=[],t}return n(p,o),p.compose=function(o){i.compose(o),t.integrations.packedbubble=e,t.layouts.packedbubble=p,-1===l.indexOf(o)&&(l.push(o),a(o,"beforeRedraw",r),o.prototype.getSelectedParentNodes=s)},p.prototype.beforeStep=function(){this.options.marker&&this.series.forEach((function(t){t&&t.calculateParentRadius()}))},p.prototype.isStable=function(){var t=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&1e-5>t||0>=this.temperature},p.prototype.setCircularPositions=function(){for(var t,e,i=this.box,o=this.nodes,s=2*Math.PI/(o.length+1),r=this.options.initialPositionRadius,n=0,a=0;a<o.length;a++){var l=o[a];this.options.splitSeries&&!l.isParentNode?(t=l.series.parentNode.plotX,e=l.series.parentNode.plotY):(t=i.width/2,e=i.height/2),l.plotX=l.prevX=h(l.plotX,t+r*Math.cos(l.index||n*s)),l.plotY=l.prevY=h(l.plotY,e+r*Math.sin(l.index||n*s)),l.dispX=0,l.dispY=0,n++}},p.prototype.repulsiveForces=function(){var t,e,i,o=this,s=o.options.bubblePadding;o.nodes.forEach((function(r){r.degree=r.mass,r.neighbours=0,o.nodes.forEach((function(n){t=0,r===n||r.fixedPosition||!o.options.seriesInteraction&&r.series!==n.series||(i=o.getDistXY(r,n),0>(e=o.vectorLength(i)-(r.marker.radius+n.marker.radius+s))&&(r.degree+=.01,r.neighbours++,t=o.repulsiveForce(-e/Math.sqrt(r.neighbours),o.k,r,n)),o.force("repulsive",r,t*n.mass,i,n,e))}))}))},p.prototype.applyLimitBox=function(t,e){if(this.options.splitSeries&&!t.isParentNode&&this.options.parentNodeLimit){var i=this.getDistXY(t,t.series.parentNode),s=t.series.parentNodeRadius-t.marker.radius-this.vectorLength(i);0>s&&s>-2*t.marker.radius&&(t.plotX-=.01*i.x,t.plotY-=.01*i.y)}o.prototype.applyLimitBox.call(this,t,e)},p}(i),t.layouts.packedbubble=o})),e(t,"Series/PackedBubble/PackedBubbleSeries.js",[t["Core/Color/Color.js"],t["Series/DragNodesComposition.js"],t["Series/GraphLayoutComposition.js"],t["Core/Globals.js"],t["Series/PackedBubble/PackedBubblePoint.js"],t["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],t["Series/PackedBubble/PackedBubbleLayout.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a,h){var l=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),p=t.parse;t=o.noop;var c=a.series.prototype,d=a.seriesTypes.bubble,u=h.addEvent,f=h.clamp,g=h.defined,m=h.extend,y=h.fireEvent,v=h.isArray,x=h.isNumber,b=h.merge,S=h.pick;return h=function(t){function o(){var e=null!==t&&t.apply(this,arguments)||this;return e.chart=void 0,e.data=void 0,e.layout=void 0,e.options=void 0,e.parentNodeMass=0,e.points=void 0,e.xData=void 0,e}return l(o,t),o.compose=function(t,i,o,s){d.compose(t,i,o,s),e.compose(i),n.compose(i)},o.prototype.accumulateAllPoints=function(){for(var t,e=this.chart,i=[],o=0,s=e.series;o<s.length;o++){var r=s[o];if(r.is("packedbubble")&&r.visible||!e.options.chart.ignoreHiddenSeries){t=r.yData||[];for(var n=0;n<t.length;n++)i.push([null,null,t[n],r.index,n,{id:n,marker:{radius:0}}])}}return i},o.prototype.addLayout=function(){var t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",o=this.chart.options.chart,s=this.chart.graphLayoutsStorage,r=this.chart.graphLayoutsLookup;s||(this.chart.graphLayoutsStorage=s={},this.chart.graphLayoutsLookup=r=[]);var n=s[e];n||(t.enableSimulation=g(o.forExport)?!o.forExport:t.enableSimulation,s[e]=n=new i.layouts[e],n.init(t),r.splice(n.index,0,n)),this.layout=n,this.points.forEach((function(t){t.mass=2,t.degree=1,t.collisionNmb=1})),n.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),n.addElementsToCollection([this],n.series),n.addElementsToCollection(this.points,n.nodes)},o.prototype.addSeriesLayout=function(){var t=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},e=t.type||"packedbubble",o=this.chart.graphLayoutsStorage,s=this.chart.graphLayoutsLookup;t=b(t,t.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});var r=o[e+"-series"];r||(o[e+"-series"]=r=new i.layouts[e],r.init(t),s.splice(r.index,0,r)),this.parentNodeLayout=r,this.createParentNodes()},o.prototype.calculateParentRadius=function(){var t=this.seriesBox();this.parentNodeRadius=f(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,t?Math.max(Math.sqrt(Math.pow(t.width,2)+Math.pow(t.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},o.prototype.calculateZExtremes=function(){var t=this.options.zMin,e=this.options.zMax,i=1/0,o=-1/0;return t&&e?[t,e]:(this.chart.series.forEach((function(t){t.yData.forEach((function(t){g(t)&&(t>o&&(o=t),t<i&&(i=t))}))})),[t=S(t,i),e=S(e,o)])},o.prototype.checkOverlap=function(t,e){var i=t[0]-e[0],o=t[1]-e[1];return-.001>Math.sqrt(i*i+o*o)-Math.abs(t[2]+e[2])},o.prototype.createParentNodes=function(){var t,e=this,i=this.pointClass,o=this.chart,s=this.parentNodeLayout,r=this.layout.options,n=this.parentNode,a={radius:this.parentNodeRadius,lineColor:this.color,fillColor:p(this.color).brighten(.4).get()};r.parentNodeOptions&&(a=b(r.parentNodeOptions.marker||{},a)),this.parentNodeMass=0,this.points.forEach((function(t){e.parentNodeMass+=Math.PI*Math.pow(t.marker.radius,2)})),this.calculateParentRadius(),s.nodes.forEach((function(i){i.seriesIndex===e.index&&(t=!0)})),s.setArea(0,0,o.plotWidth,o.plotHeight),t||(n||(n=(new i).init(this,{mass:this.parentNodeRadius/2,marker:a,dataLabels:{inside:!1},states:{normal:{marker:a},hover:{marker:a}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(n.plotX=this.parentNode.plotX,n.plotY=this.parentNode.plotY),this.parentNode=n,s.addElementsToCollection([this],s.series),s.addElementsToCollection([n],s.nodes))},o.prototype.deferLayout=function(){var t=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),t.splitSeries&&this.addSeriesLayout())},o.prototype.destroy=function(){var t=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach((function(e){e.removeElementFromCollection(t,e.series)}),this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),c.destroy.apply(this,arguments)},o.prototype.drawDataLabels=function(){c.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",c.drawDataLabels.call(this,[this.parentNode]))},o.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var t=this.chart,e=this.layout.options.parentNodeOptions.marker;e={fill:e.fillColor||p(this.color).brighten(.4).get(),opacity:e.fillOpacity,stroke:e.lineColor||this.color,"stroke-width":S(e.lineWidth,this.options.lineWidth)},this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,t.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius();var i=b({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},e);this.parentNode.graphic||(this.graph=this.parentNode.graphic=t.renderer.symbol(e.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(i)}},o.prototype.drawTracker=function(){var e=this.parentNode;if(t.prototype.drawTracker.call(this),e){var i=v(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[];e.graphic&&(e.graphic.element.point=e),i.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))}},o.prototype.getPointRadius=function(){var t,e,i,o,s=this,r=this.chart,n=this.options,a=n.useSimulation,h=Math.min(r.plotWidth,r.plotHeight),l={},p=[],c=r.allDataPoints||[],d=c.length;["minSize","maxSize"].forEach((function(t){var e=parseInt(n[t],10),i=/%$/.test(n[t]);l[t]=i?h*e/100:e*Math.sqrt(d)})),r.minRadius=t=l.minSize/Math.sqrt(d),r.maxRadius=e=l.maxSize/Math.sqrt(d);var u=a?this.calculateZExtremes():[t,e];c.forEach((function(r,n){i=a?f(r[2],u[0],u[1]):r[2],0===(o=s.getRadius(u[0],u[1],t,e,i))&&(o=null),c[n][2]=o,p.push(o)})),this.radii=p},o.prototype.init=function(){return c.init.apply(this,arguments),this.eventsToUnbind.push(u(this,"updatedData",(function(){var t=this;this.chart.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)}),this)}))),this},o.prototype.onMouseUp=function(t){var i=t;if(i.fixedPosition&&!i.removed){var o,s=this.layout,r=this.parentNodeLayout;r&&s.options.dragBetweenSeries&&r.nodes.forEach((function(t){i&&i.marker&&t!==i.series.parentNode&&(o=s.getDistXY(i,t),0>s.vectorLength(o)-t.marker.radius-i.marker.radius&&(t.series.addPoint(b(i.options,{plotX:i.plotX,plotY:i.plotY}),!1),s.removeElementFromCollection(i,s.nodes),i.remove()))})),e.onMouseUp.apply(this,arguments)}},o.prototype.placeBubbles=function(t){var e,i=this.checkOverlap,o=this.positionBubble,s=[],r=1,n=0,a=0,h=[];if(t=t.sort((function(t,e){return e[2]-t[2]})),t.length){if(s.push([[0,0,t[0][2],t[0][3],t[0][4]]]),1<t.length)for(s.push([[0,0-t[1][2]-t[0][2],t[1][2],t[1][3],t[1][4]]]),e=2;e<t.length;e++)t[e][2]=t[e][2]||1,i(h=o(s[r][n],s[r-1][a],t[e]),s[r][0])?(s.push([]),a=0,s[r+1].push(o(s[r][n],s[r][0],t[e])),r++,n=0):1<r&&s[r-1][a+1]&&i(h,s[r-1][a+1])?(a++,s[r].push(o(s[r][n],s[r-1][a],t[e])),n++):(n++,s[r].push(h));this.chart.stages=s,this.chart.rawPositions=[].concat.apply([],s),this.resizeRadius(),h=this.chart.rawPositions}return h},o.prototype.pointAttribs=function(t,e){var i=this.options,o=i.marker;return t&&t.isParentNode&&i.layoutAlgorithm&&i.layoutAlgorithm.parentNodeOptions&&(o=i.layoutAlgorithm.parentNodeOptions.marker),i=o.fillOpacity,t=c.pointAttribs.call(this,t,e),1!==i&&(t["fill-opacity"]=i),t},o.prototype.positionBubble=function(t,e,i){var o=Math.sqrt,s=Math.asin,r=Math.acos,n=Math.pow,a=Math.abs;return o=o(n(t[0]-e[0],2)+n(t[1]-e[1],2)),r=r((n(o,2)+n(i[2]+e[2],2)-n(i[2]+t[2],2))/(2*(i[2]+e[2])*o)),s=s(a(t[0]-e[0])/o),t=(0>t[1]-e[1]?0:Math.PI)+r+s*(0>(t[0]-e[0])*(t[1]-e[1])?1:-1),[e[0]+(e[2]+i[2])*Math.sin(t),e[1]-(e[2]+i[2])*Math.cos(t),i[2],i[3],i[4]]},o.prototype.render=function(){var t=[];c.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach((function(e){v(e.dataLabels)&&e.dataLabels.forEach((function(e){t.push(e)}))})),this.options.useSimulation&&this.chart.hideOverlappingLabels(t))},o.prototype.resizeRadius=function(){for(var t,e,i=this.chart,o=i.rawPositions,s=Math.min,r=Math.max,n=i.plotLeft,a=i.plotTop,h=i.plotHeight,l=i.plotWidth,p=t=Number.POSITIVE_INFINITY,c=e=Number.NEGATIVE_INFINITY,d=0;d<o.length;d++){var u=o[d],f=u[2];p=s(p,u[0]-f),c=r(c,u[0]+f),t=s(t,u[1]-f),e=r(e,u[1]+f)}if(u=[c-p,e-t],s=s.apply([],[(l-n)/u[0],(h-a)/u[1]]),1e-10<Math.abs(s-1)){for(i=0;i<o.length;i++)(u=o[i])[2]*=s;this.placeBubbles(o)}else i.diffY=h/2+a-t-(e-t)/2,i.diffX=l/2+n-p-(c-p)/2},o.prototype.seriesBox=function(){var t,e=this.chart,i=Math.max,o=Math.min,s=[e.plotLeft,e.plotLeft+e.plotWidth,e.plotTop,e.plotTop+e.plotHeight];return this.data.forEach((function(e){g(e.plotX)&&g(e.plotY)&&e.marker.radius&&(t=e.marker.radius,s[0]=o(s[0],e.plotX-t),s[1]=i(s[1],e.plotX+t),s[2]=o(s[2],e.plotY-t),s[3]=i(s[3],e.plotY+t))})),x(s.width/s.height)?s:null},o.prototype.setVisible=function(){var t=this;c.setVisible.apply(t,arguments),t.parentNodeLayout&&t.graph?t.visible?(t.graph.show(),t.parentNode.dataLabel&&t.parentNode.dataLabel.show()):(t.graph.hide(),t.parentNodeLayout.removeElementFromCollection(t.parentNode,t.parentNodeLayout.nodes),t.parentNode.dataLabel&&t.parentNode.dataLabel.hide()):t.layout&&(t.visible?t.layout.addElementsToCollection(t.points,t.layout.nodes):t.points.forEach((function(e){t.layout.removeElementFromCollection(e,t.layout.nodes)})))},o.prototype.translate=function(){var t=this.chart,e=this.data,i=this.index,o=this.options.useSimulation;if(this.processedXData=this.xData,this.generatePoints(),g(t.allDataPoints)||(t.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),o)var s=t.allDataPoints;else s=this.placeBubbles(t.allDataPoints),this.options.draggable=!1;for(var r=0,n=s;r<n.length;r++){var a=n[r];if(a[3]===i){s=e[a[4]];var h=S(a[2],void 0);o||(s.plotX=a[0]-t.plotLeft+t.diffX,s.plotY=a[1]-t.plotTop+t.diffY),x(h)&&(s.marker=m(s.marker,{radius:h,width:2*h,height:2*h}),s.radius=h)}}o&&this.deferLayout(),y(this,"afterTranslate")},o.defaultOptions=b(d.defaultOptions,r),o}(d),m(h.prototype,{pointClass:s,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:c.alignDataLabel,indexateNodes:t,onMouseDown:e.onMouseDown,onMouseMove:e.onMouseMove,redrawHalo:e.redrawHalo,searchPoint:t}),a.registerSeriesType("packedbubble",h),h})),e(t,"Series/Polygon/PolygonSeries.js",[t["Core/Globals.js"],t["Core/Legend/LegendSymbol.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"]],(function(t,e,i,o){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}();t=t.noop;var r=i.series,n=i.seriesTypes,a=n.area,h=n.line,l=n.scatter;n=o.extend;var p=o.merge;return o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return s(e,t),e.prototype.getGraphPath=function(){for(var t=h.prototype.getGraphPath.call(this),e=t.length+1;e--;)(e===t.length||"M"===t[e][0])&&0<e&&t.splice(e,0,["Z"]);return this.areaPath=t},e.prototype.drawGraph=function(){this.options.fillColor=this.color,a.prototype.drawGraph.call(this)},e.defaultOptions=p(l.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),e}(l),n(o.prototype,{type:"polygon",drawLegendSymbol:e.drawRectangle,drawTracker:r.prototype.drawTracker,setStackedPoints:t}),i.registerSeriesType("polygon",o),o})),e(t,"Core/Axis/WaterfallAxis.js",[t["Core/Axis/Stacking/StackItem.js"],t["Core/Utilities.js"]],(function(t,e){var i,o=e.addEvent,s=e.objectEach;return function(e){function i(){var t=this.waterfall.stacks;t&&(t.changed=!1,delete t.alreadyChanged)}function r(){var t=this.options.stackLabels;t&&t.enabled&&this.waterfall.stacks&&this.waterfall.renderStackTotals()}function n(){for(var t=this.axes,e=this.series,i=e.length;i--;)e[i].options.stacking&&(t.forEach((function(t){t.isXAxis||(t.waterfall.stacks.changed=!0)})),i=0)}function a(){this.waterfall||(this.waterfall=new h(this))}var h=function(){function e(t){this.axis=t,this.stacks={changed:!1}}return e.prototype.renderStackTotals=function(){var e=this.axis,i=e.waterfall.stacks,o=e.stacking&&e.stacking.stackTotalGroup,r=new t(e,e.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=r,o&&s(i,(function(e){s(e,(function(e,i){r.total=e.stackTotal,r.x=+i,e.label&&(r.label=e.label),t.prototype.render.call(r,o),e.label=r.label,delete r.label}))})),r.total=null},e}();e.Composition=h,e.compose=function(t,e){o(t,"init",a),o(t,"afterBuildStacks",i),o(t,"afterRender",r),o(e,"beforeRedraw",n)}}(i||(i={})),i})),e(t,"Series/Waterfall/WaterfallPoint.js",[t["Series/Column/ColumnSeries.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=i.isNumber;return function(t){function i(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return o(i,t),i.prototype.getClassName=function(){var t=e.prototype.getClassName.call(this);return this.isSum?t+=" highcharts-sum":this.isIntermediateSum&&(t+=" highcharts-intermediate-sum"),t},i.prototype.isValid=function(){return s(this.y)||this.isSum||!!this.isIntermediateSum},i}(t.prototype.pointClass)})),e(t,"Series/Waterfall/WaterfallSeries.js",[t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Series/SeriesRegistry.js"],t["Core/Utilities.js"],t["Core/Axis/WaterfallAxis.js"],t["Series/Waterfall/WaterfallPoint.js"]],(function(t,e,i,o,s,r){var n=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),a=i.seriesTypes,h=a.column,l=a.line,p=o.arrayMax,c=o.arrayMin,d=o.correctFloat;a=o.extend;var u=o.isNumber,f=o.merge,g=o.objectEach,m=o.pick;return o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.chart=void 0,e.data=void 0,e.options=void 0,e.points=void 0,e.stackedYNeg=void 0,e.stackedYPos=void 0,e.stackKey=void 0,e.xData=void 0,e.yAxis=void 0,e.yData=void 0,e}return n(e,t),e.prototype.generatePoints=function(){h.prototype.generatePoints.apply(this);for(var t=0,e=this.points.length;t<e;t++){var i=this.points[t],o=this.processedYData[t];u(o)&&(i.isIntermediateSum||i.isSum)&&(i.y=d(o))}},e.prototype.translate=function(){var t=this.options,e=this.yAxis,i=m(t.minPointLength,5),o=i/2,s=t.threshold||0;t=t.stacking;var r=e.waterfall.stacks[this.stackKey],n=s,a=s;h.prototype.translate.apply(this);for(var l=this.points,p=0;p<l.length;p++){var c=l[p],d=this.processedYData[p],f=c.shapeArgs;if(f&&u(d)){var g=[0,d],y=c.y;if(t){if(r){if(g=r[p],"overlap"===t){var v=g.stackState[g.stateIndex--];v=0<=y?v:v-y,Object.hasOwnProperty.call(g,"absolutePos")&&delete g.absolutePos,Object.hasOwnProperty.call(g,"absoluteNeg")&&delete g.absoluteNeg}else 0<=y?(v=g.threshold+g.posTotal,g.posTotal-=y):(v=g.threshold+g.negTotal,g.negTotal-=y,v-=y),!g.posTotal&&u(g.absolutePos)&&Object.hasOwnProperty.call(g,"absolutePos")&&(g.posTotal=g.absolutePos,delete g.absolutePos),!g.negTotal&&u(g.absoluteNeg)&&Object.hasOwnProperty.call(g,"absoluteNeg")&&(g.negTotal=g.absoluteNeg,delete g.absoluteNeg);c.isSum||(g.connectorThreshold=g.threshold+g.stackTotal),e.reversed?(d=0<=y?v-y:v+y,y=v):(d=v,y=v-y),c.below=d<=s,f.y=e.translate(d,!1,!0,!1,!0),f.height=Math.abs(f.y-e.translate(y,!1,!0,!1,!0)),(y=e.waterfall.dummyStackItem)&&(y.x=p,y.label=r[p].label,y.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[p],this.stackedYPos[p],void 0,this.xAxis))}}else v=Math.max(a,a+y)+g[0],f.y=e.translate(v,!1,!0,!1,!0),c.isSum?(f.y=e.translate(g[1],!1,!0,!1,!0),f.height=Math.min(e.translate(g[0],!1,!0,!1,!0),e.len)-f.y,c.below=g[1]<=s):c.isIntermediateSum?(0<=y?(d=g[1]+n,y=n):(d=n,y=g[1]+n),e.reversed&&(d^=y,d^=y^=d),f.y=e.translate(d,!1,!0,!1,!0),f.height=Math.abs(f.y-Math.min(e.translate(y,!1,!0,!1,!0),e.len)),n+=g[1],c.below=d<=s):(f.height=0<d?e.translate(a,!1,!0,!1,!0)-f.y:e.translate(a,!1,!0,!1,!0)-e.translate(a-d,!1,!0,!1,!0),a+=d,c.below=a<s),0>f.height&&(f.y+=f.height,f.height*=-1);c.plotY=f.y=Math.round(f.y||0)-this.borderWidth%2/2,f.height=Math.max(Math.round(f.height||0),.001),c.yBottom=f.y+f.height,f.height<=i&&!c.isNull?(f.height=i,f.y-=o,c.plotY=f.y,c.minPointLengthOffset=0>c.y?-o:o):(c.isNull&&(f.width=0),c.minPointLengthOffset=0),y=c.plotY+(c.negative?f.height:0),c.below&&(c.plotY+=f.height),c.tooltipPos&&(this.chart.inverted?c.tooltipPos[0]=e.len-y:c.tooltipPos[1]=y),c.isInside=this.isPointInside(c)}}},e.prototype.processData=function(e){var i,o,s,r,n,a=this.options,h=this.yData,l=a.data,p=h.length,c=a.threshold||0;for(n=o=i=s=r=0;n<p;n++){var u=h[n],f=l&&l[n]?l[n]:{};"sum"===u||f.isSum?h[n]=d(o):"intermediateSum"===u||f.isIntermediateSum?(h[n]=d(i),i=0):(o+=u,i+=u),s=Math.min(o,s),r=Math.max(o,r)}t.prototype.processData.call(this,e),a.stacking||(this.dataMin=s+c,this.dataMax=r)},e.prototype.toYData=function(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":t.y},e.prototype.updateParallelArrays=function(e,i){t.prototype.updateParallelArrays.call(this,e,i),"sum"!==this.yData[0]&&"intermediateSum"!==this.yData[0]||(this.yData[0]=null)},e.prototype.pointAttribs=function(t,e){var i=this.options.upColor;return i&&!t.options.color&&(t.color=0<t.y?i:void 0),delete(t=h.prototype.pointAttribs.call(this,t,e)).dashstyle,t},e.prototype.getGraphPath=function(){return[["M",0,0]]},e.prototype.getCrispPath=function(){var t,e=this.data,i=this.yAxis,o=e.length,s=Math.round(this.graph.strokeWidth())%2/2,r=Math.round(this.borderWidth)%2/2,n=this.xAxis.reversed,a=this.yAxis.reversed,h=this.options.stacking,l=[];for(t=1;t<o;t++){var p=e[t].shapeArgs,c=e[t-1],d=e[t-1].shapeArgs,u=i.waterfall.stacks[this.stackKey],f=0<c.y?-d.height:0;u&&d&&p&&(u=u[t-1],h?(u=u.connectorThreshold,f=Math.round(i.translate(u,!1,!0,!1,!0)+(a?f:0))-s):f=d.y+c.minPointLengthOffset+r-s,l.push(["M",(d.x||0)+(n?0:d.width||0),f],["L",(p.x||0)+(n&&p.width||0),f])),d&&l.length&&(!h&&0>c.y&&!a||0<c.y&&a)&&((c=l[l.length-2])&&"number"==typeof c[2]&&(c[2]+=d.height||0),(c=l[l.length-1])&&"number"==typeof c[2]&&(c[2]+=d.height||0))}return l},e.prototype.drawGraph=function(){l.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},e.prototype.setStackedPoints=function(){function t(t,e,i,o){if(m){if(b)for(;i<b;i++)m.stackState[i]+=o;else m.stackState[0]=t,b=m.stackState.length;m.stackState.push(m.stackState[b-1]+e)}}var e,i,o,s=this.options,r=this.yAxis.waterfall.stacks,n=s.threshold||0,a=n,h=a,l=this.stackKey,p=this.xData,c=p.length;this.yAxis.stacking.usePercentage=!1;var d=e=i=a;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var u=r.changed;if((o=r.alreadyChanged)&&0>o.indexOf(l)&&(u=!0),r[l]||(r[l]={}),o=r[l])for(var f=0;f<c;f++){var g=p[f];o[g]&&!u||(o[g]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:u&&o[g]?o[g].label:void 0});var m=o[g],y=this.yData[f];0<=y?m.posTotal+=y:m.negTotal+=y;var v=s.data[f];g=m.absolutePos=m.posTotal;var x=m.absoluteNeg=m.negTotal;m.stackTotal=g+x;var b=m.stackState.length;v&&v.isIntermediateSum?(t(i,e,0,i),i=e,e=n,a^=h,a^=h^=a):v&&v.isSum?(t(n,d,b,0),a=n):(t(a,y,0,d),v&&(d+=y,e+=y)),m.stateIndex++,m.threshold=a,a+=m.stackTotal}r.changed=!1,r.alreadyChanged||(r.alreadyChanged=[]),r.alreadyChanged.push(l)}},e.prototype.getExtremes=function(){var t=this.options.stacking;if(t){var e=this.yAxis;e=e.waterfall.stacks;var i=this.stackedYNeg=[],o=this.stackedYPos=[];return g(e[this.stackKey],"overlap"===t?function(t){i.push(c(t.stackState)),o.push(p(t.stackState))}:function(t){i.push(t.negTotal+t.threshold),o.push(t.posTotal+t.threshold)}),{dataMin:c(i),dataMax:p(o)}}return{dataMin:this.dataMin,dataMax:this.dataMax}},e.defaultOptions=f(h.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),e}(h),a(o.prototype,{getZonesGraphs:l.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:r}),i.registerSeriesType("waterfall",o),s.compose(t,e),o})),e(t,"Core/Axis/RadialAxis.js",[t["Core/Axis/AxisDefaults.js"],t["Core/Defaults.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e,i,o){var s,r=e.defaultOptions,n=i.noop,a=o.addEvent,h=o.correctFloat,l=o.defined,p=o.extend,c=o.fireEvent,d=o.merge,u=o.pick,f=o.relativeLength,g=o.wrap;return function(e){function i(){this.autoConnect=this.isCircular&&void 0===u(this.userMax,this.options.max)&&h(this.endAngleRad-this.startAngleRad)===h(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function o(){var t=this;return function(){if(t.isRadial&&t.tickPositions&&t.options.labels&&!0!==t.options.labels.allowOverlap)return t.tickPositions.map((function(e){return t.ticks[e]&&t.ticks[e].label})).filter((function(t){return!!t}))}}function s(){return n}function m(t,e,i){var o=this.pane.center,s=t.value;if(this.isCircular){if(l(s))t.point&&(r=t.point.shapeArgs||{}).start&&(s=this.chart.inverted?this.translate(t.point.rectPlotY,!0):t.point.x);else{var r=t.chartX||0,n=t.chartY||0;s=this.translate(Math.atan2(n-i,r-e)-this.startAngleRad,!0)}r=(t=this.getPosition(s)).x,n=t.y}else l(s)||(r=t.chartX,n=t.chartY),l(r)&&l(n)&&(i=o[1]+this.chart.plotTop,s=this.translate(Math.min(Math.sqrt(Math.pow(r-e,2)+Math.pow(n-i,2)),o[2]/2)-o[3]/2,!0));return[s,r||0,n||0]}function y(t,e,i){t=this.pane.center;var o=this.chart,s=this.left||0,r=this.top||0,n=u(e,t[2]/2-this.offset);return void 0===i&&(i=this.horiz?0:this.center&&-this.center[3]/2),i&&(n+=i),this.isCircular||void 0!==e?((e=this.chart.renderer.symbols.arc(s+t[0],r+t[1],n,n,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[s+t[0]],e.yBounds=[r+t[1]-n]):(e=this.postTranslate(this.angleRad,n),e=[["M",this.center[0]+o.plotLeft,this.center[1]+o.plotTop],["L",e.x,e.y]]),e}function v(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function x(t,e,i){var o=this.chart,s=function(t){if("string"==typeof t){var e=parseInt(t,10);return c.test(t)&&(e=e*a/100),e}return t},r=this.center,n=this.startAngleRad,a=r[2]/2,h=Math.min(this.offset,0),l=this.left||0,p=this.top||0,c=/%$/,d=this.isCircular,f=u(s(i.outerRadius),a),g=s(i.innerRadius);if(s=u(s(i.thickness),10),"polygon"===this.options.gridLineInterpolation)h=this.getPlotLinePath({value:t}).concat(this.getPlotLinePath({value:e,reverse:!0}));else{if(t=Math.max(t,this.min),e=Math.min(e,this.max),t=this.translate(t),e=this.translate(e),d||(f=t||0,g=e||0),"circle"!==i.shape&&d)i=n+(t||0),n+=e||0;else{i=-Math.PI/2,n=1.5*Math.PI;var m=!0}f-=h,h=o.renderer.symbols.arc(l+r[0],p+r[1],f,f,{start:Math.min(i,n),end:Math.max(i,n),innerR:u(g,f-(s-h)),open:m}),d&&(d=(n+i)/2,l=l+r[0]+r[2]/2*Math.cos(d),h.xBounds=d>-Math.PI/2&&d<Math.PI/2?[l,o.plotWidth]:[0,l],h.yBounds=[p+r[1]+r[2]/2*Math.sin(d)],h.yBounds[0]+=d>-Math.PI&&0>d||d>Math.PI?-10:10)}return h}function b(t){var e=this,i=this.pane.center,o=this.chart,s=o.inverted,r=t.reverse,n=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},a=n.innerRadius||"0%",h=n.outerRadius||"100%",l=i[0]+o.plotLeft,p=i[1]+o.plotTop,c=this.height,d=t.isCrosshair;n=i[3]/2;var u,g=t.value,m=this.getPosition(g),y=m.x;if(m=m.y,d&&(g=(m=this.getCrosshairPosition(t,l,p))[0],y=m[1],m=m[2]),this.isCircular)g=Math.sqrt(Math.pow(y-l,2)+Math.pow(m-p,2)),r="string"==typeof a?f(a,1):a/g,o="string"==typeof h?f(h,1):h/g,i&&n&&(r<(n/=g)&&(r=n),o<n&&(o=n)),i=[["M",l+r*(y-l),p-r*(p-m)],["L",y-(1-o)*(y-l),m+(1-o)*(p-m)]];else if((g=this.translate(g))&&(0>g||g>c)&&(g=0),"circle"===this.options.gridLineInterpolation)i=this.getLinePath(0,g,n);else if(i=[],o[s?"yAxis":"xAxis"].forEach((function(t){t.pane===e.pane&&(u=t)})),u)for(l=u.tickPositions,u.autoConnect&&(l=l.concat([l[0]])),r&&(l=l.slice().reverse()),g&&(g+=n),p=0;p<l.length;p++)n=u.getPosition(l[p],g),i.push(p?["L",n.x,n.y]:["M",n.x,n.y]);return i}function S(t,e){return t=this.translate(t),this.postTranslate(this.isCircular?t:this.angleRad,u(this.isCircular?e:0>t?0:t,this.center[2]/2)-this.offset)}function k(){var t=this.center,e=this.chart,i=this.options.title;return{x:e.plotLeft+t[0]+(i.x||0),y:e.plotTop+t[1]-{high:.5,middle:.25,low:0}[i.align]*t[2]+(i.y||0)}}function M(t){t.beforeSetTickPositions=i,t.createLabelCollector=o,t.getCrosshairPosition=m,t.getLinePath=y,t.getOffset=v,t.getPlotBandPath=x,t.getPlotLinePath=b,t.getPosition=S,t.getTitlePosition=k,t.postTranslate=E,t.setAxisSize=D,t.setAxisTranslation=I,t.setOptions=N}function C(){var t=this.chart,e=this.options,i=this.pane,o=i&&i.options;t.angular&&this.isXAxis||!i||!t.angular&&!t.polar||(t=2*Math.PI,i=(u(o.startAngle,0)-90)*Math.PI/180,o=(u(o.endAngle,u(o.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(e.angle||0)*Math.PI/180,this.startAngleRad=i,this.endAngleRad=o,this.offset=e.offset||0,o=(o%t+t)%t,(e=(i%t+t)%t)>Math.PI&&(e-=t),o>Math.PI&&(o-=t),this.normalizedStartAngleRad=e,this.normalizedEndAngleRad=o)}function w(t){this.isRadial&&(t.align=void 0,t.preventDefault())}function P(){if(this.chart&&this.chart.labelCollectors){var t=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=t&&this.chart.labelCollectors.splice(t,1)}}function A(e){var i,o=this.chart,r=o.inverted,a=o.angular,h=o.polar,l=this.isXAxis,p=this.coll,c=a&&l;e=e.userOptions.pane||0,e=this.pane=o.pane&&o.pane[e],"colorAxis"===p?this.isRadial=!1:(a?(c?(this.isHidden=!0,this.createLabelCollector=s,this.getOffset=n,this.render=this.redraw=j,this.setTitle=this.setCategories=this.setScale=n):M(this),(i=!l)&&(this.defaultPolarOptions=X)):h&&(M(this),this.defaultPolarOptions=(i=this.horiz)?z:d("xAxis"===p?t.defaultXAxisOptions:t.defaultYAxisOptions,_),r&&"yAxis"===p&&(this.defaultPolarOptions.stackLabels=t.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),a||h?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&o.labelCollectors.push(this.labelCollector)):this.isRadial=!1,e&&i&&(e.axis=this),this.isCircular=i)}function L(){this.isRadial&&this.beforeSetTickPositions()}function T(t){var e=this.label;if(e){var i=this.axis,o=e.getBBox(),s=i.options.labels,r=(i.translate(this.pos)+i.startAngleRad+Math.PI/2)/Math.PI*180%360,n=Math.round(r),a=l(s.y)?0:.3*-o.height,h=s.y,p=20,c=s.align,d="end",g=0>n?n+360:n,m=g,y=0,v=0;if(i.isRadial){var x=i.getPosition(this.pos,i.center[2]/2+f(u(s.distance,-25),i.center[2]/2,-i.center[2]/2));"auto"===s.rotation?e.attr({rotation:r}):l(h)||(h=i.chart.renderer.fontMetrics(e.styles&&e.styles.fontSize).b-o.height/2),l(c)||(i.isCircular?(o.width>i.len*i.tickInterval/(i.max-i.min)&&(p=0),c=r>p&&r<180-p?"left":r>180+p&&r<360-p?"right":"center"):c="center",e.attr({align:c})),"auto"===c&&2===i.tickPositions.length&&i.isCircular&&(90<g&&180>g?g=180-g:270<g&&360>=g&&(g=540-g),180<m&&360>=m&&(m=360-m),i.pane.options.startAngle!==n&&i.pane.options.startAngle!==n+360&&i.pane.options.startAngle!==n-360||(d="start"),c=-90<=n&&90>=n||-360<=n&&-270>=n||270<=n&&360>=n?"start"===d?"right":"left":"start"===d?"left":"right",70<m&&110>m&&(c="center"),15>g||180<=g&&195>g?y=.3*o.height:15<=g&&35>=g?y="start"===d?0:.75*o.height:195<=g&&215>=g?y="start"===d?.75*o.height:0:35<g&&90>=g?y="start"===d?.25*-o.height:o.height:215<g&&270>=g&&(y="start"===d?o.height:.25*-o.height),15>m?v="start"===d?.15*-o.height:.15*o.height:165<m&&180>=m&&(v="start"===d?.15*o.height:.15*-o.height),e.attr({align:c}),e.translate(v,y+a)),t.pos.x=x.x+(s.x||0),t.pos.y=x.y+(h||0)}}}function O(t){this.axis.getPosition&&p(t.pos,this.axis.getPosition(this.pos))}function E(t,e){var i=this.chart,o=this.center;return t=this.startAngleRad+t,{x:i.plotLeft+o[0]+Math.cos(t)*e,y:i.plotTop+o[1]+Math.sin(t)*e}}function j(){this.isDirty=!1}function D(){if(this.constructor.prototype.setAxisSize.call(this),this.isRadial){this.pane.updateCenter(this);var t=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var e=this.postTranslate(this.angleRad,t[3]/2);t[0]=e.x-this.chart.plotLeft,t[1]=e.y-this.chart.plotTop}this.len=this.width=this.height=(t[2]-t[3])*u(this.sector,1)/2}}function I(){this.constructor.prototype.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):(this.center[2]-this.center[3])/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)}function N(t){(t=this.options=d(this.constructor.defaultOptions,this.defaultPolarOptions,r[this.coll],t)).plotBands||(t.plotBands=[]),c(this,"afterSetOptions")}function R(t,e,i,o,s,r,n){var a=this.axis;return a.isRadial?["M",e,i,"L",(t=a.getPosition(this.pos,a.center[2]/2+o)).x,t.y]:t.call(this,e,i,o,s,r,n)}var B=[],z={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},X={labels:{align:"center",x:0,y:void 0},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},_={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};e.compose=function(t,e){return-1===B.indexOf(t)&&(B.push(t),a(t,"afterInit",C),a(t,"autoLabelAlign",w),a(t,"destroy",P),a(t,"init",A),a(t,"initialAxisTranslation",L)),-1===B.indexOf(e)&&(B.push(e),a(e,"afterGetLabelPosition",T),a(e,"afterGetPosition",O),g(e.prototype,"getMarkPath",R)),t}}(s||(s={})),s})),e(t,"Series/PolarComposition.js",[t["Core/Animation/AnimationUtilities.js"],t["Core/Globals.js"],t["Extensions/Pane.js"],t["Core/Axis/RadialAxis.js"],t["Core/Utilities.js"]],(function(t,e,i,o,s){function r(t,e,i,o){var s=o?1:0,n=0<=e&&e<=t.length-1?e:0>e?t.length-1+e:0,a=t[e=0>n-1?t.length-(1+s):n-1];s=t[n+1>t.length-1?s:n+1];var h=a.plotY,l=s.plotX,p=s.plotY;s=t[n].plotX,n=t[n].plotY,a=(1.5*s+a.plotX)/2.5,h=(1.5*n+h)/2.5,l=(1.5*s+l)/2.5;var c=(1.5*n+p)/2.5;p=Math.sqrt(Math.pow(a-s,2)+Math.pow(h-n,2));var d=Math.sqrt(Math.pow(l-s,2)+Math.pow(c-n,2));return a=Math.atan2(h-n,a-s),c=Math.PI/2+(a+Math.atan2(c-n,l-s))/2,Math.abs(a-c)>Math.PI/2&&(c-=Math.PI),a=s+Math.cos(c)*p,h=n+Math.sin(c)*p,s={rightContX:l=s+Math.cos(Math.PI+c)*d,rightContY:c=n+Math.sin(Math.PI+c)*d,leftContX:a,leftContY:h,plotX:s,plotY:n},i&&(s.prevPointCont=r(t,e,!1,o)),s}function n(){(this.pane||[]).forEach((function(t){t.render()}))}function a(t){var e=t.args[0].xAxis,i=t.args[0].yAxis;t=t.args[0].chart,e&&i&&("polygon"===i.gridLineInterpolation?(e.startOnTick=!0,e.endOnTick=!0):"polygon"===e.gridLineInterpolation&&t.inverted&&(i.startOnTick=!0,i.endOnTick=!0))}function h(){var t=this;this.pane||(this.pane=[]),this.options.pane=O(this.options.pane),this.options.pane.forEach((function(e){new i(e,t)}),this)}function l(t){var e=t.args.marker,i=this.chart.xAxis[0],o=this.chart.yAxis[0],s=this.chart.inverted,r=s?o:i;if(i=s?i:o,this.chart.polar){t.preventDefault(),o=(e.attr?e.attr("start"):e.start)-r.startAngleRad,s=e.attr?e.attr("r"):e.r;var n=(e.attr?e.attr("end"):e.end)-r.startAngleRad;e=e.attr?e.attr("innerR"):e.innerR,t.result.x=o+r.pos,t.result.width=n-o,t.result.y=i.len+i.pos-e,t.result.height=e-s}}function p(t){var e=this.chart;if(e.polar&&e.hoverPane&&e.hoverPane.axis){t.preventDefault();var i=e.hoverPane.center,o=this.mouseDownX||0,s=this.mouseDownY||0,r=t.args.chartY,n=t.args.chartX,a=2*Math.PI,h=e.hoverPane.axis.startAngleRad,l=e.hoverPane.axis.endAngleRad,p=e.inverted?e.xAxis[0]:e.yAxis[0],c={},d="arc";if(c.x=i[0]+e.plotLeft,c.y=i[1]+e.plotTop,this.zoomHor){var u=0<h?l-h:Math.abs(h)+Math.abs(l),g=Math.atan2(s-e.plotTop-i[1],o-e.plotLeft-i[0])-h,m=Math.atan2(r-e.plotTop-i[1],n-e.plotLeft-i[0])-h;c.r=i[2]/2,c.innerR=i[3]/2,0>=g&&(g+=a),0>=m&&(m+=a),m<g&&(m=[g,g=m][0]),u<a&&h+m>l+(a-u)/2&&(m=g,g=0>=h?h:0),a=c.start=Math.max(g+h,h),g=c.end=Math.min(m+h,l),"polygon"===p.options.gridLineInterpolation&&(u=a-(m=e.hoverPane.axis).startAngleRad+m.pos,g-=a,d=p.getPlotLinePath({value:p.max}),a=m.toValue(u),u=m.toValue(u+g),a<m.getExtremes().min&&(a=(g=m.getExtremes()).max-(g.min-a)),u<m.getExtremes().min&&(u=(g=m.getExtremes()).max-(g.min-u)),u<a&&(u=[a,a=u][0]),(d=f(d,a,u,m)).push(["L",i[0]+e.plotLeft,e.plotTop+i[1]]),c.d=d,d="path")}this.zoomVert&&(m=e.inverted?e.xAxis[0]:e.yAxis[0],o=Math.sqrt(Math.pow(o-e.plotLeft-i[0],2)+Math.pow(s-e.plotTop-i[1],2)),(r=Math.sqrt(Math.pow(n-e.plotLeft-i[0],2)+Math.pow(r-e.plotTop-i[1],2)))<o&&(o=[r,r=o][0]),r>i[2]/2&&(r=i[2]/2),o<i[3]/2&&(o=i[3]/2),this.zoomHor||(c.start=h,c.end=l),c.r=r,c.innerR=o,"polygon"===m.options.gridLineInterpolation&&(g=m.toValue(m.len+m.pos-o),a=m.toValue(m.len+m.pos-r),d=m.getPlotLinePath({value:a}).concat(m.getPlotLinePath({value:g,reverse:!0})),c.d=d,d="path")),this.zoomHor&&this.zoomVert&&"polygon"===p.options.gridLineInterpolation&&(m=e.hoverPane.axis,a=c.start||0,g=c.end||0,u=a-m.startAngleRad+m.pos,g-=a,a=m.toValue(u),u=m.toValue(u+g),c.d instanceof Array&&(i=c.d.slice(0,c.d.length/2),h=c.d.slice(c.d.length/2,c.d.length),h=M([],h,!0).reverse(),i=f(i,a,u,e=e.hoverPane.axis),(h=f(h,a,u,e))&&(h[0][0]="L"),h=M([],h,!0).reverse(),c.d=i.concat(h),d="path")),t.attrs=c,t.shapeType=d}}function c(){var t=this.chart;t.polar&&(this.polar=new I(this),t.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function d(){if(this.chart.polar&&this.xAxis){var t=this.chart;(this.kdByAngle=t.tooltip&&t.tooltip.shared)?this.searchPoint=u:this.options.findNearestPointBy="xy";for(var i=this.points,o=i.length;o--;)this.preventPostTranslate||this.polar.toXY(i[o]),t.hasParallelCoordinates||this.yAxis.reversed||(T(i[o].y,Number.MIN_VALUE)<this.yAxis.min||i[o].x<this.xAxis.min||i[o].x>this.xAxis.max?(i[o].isNull=!0,i[o].plotY=NaN):i[o].isNull=i[o].isValid&&!i[o].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(w(this,"afterRender",(function(){if(t.polar){var i=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:i[0],y:i[1],r:i[2]/2,innerR:i[3]/2});else{var o=t.renderer,s=i[0],r=i[1],n=i[2]/2,a=i[3]/2;i=E();var h=o.createElement("clipPath").attr({id:i}).add(o.defs);(o=a?o.arc(s,r,n,a,0,2*Math.PI).add(h):o.circle(s,r,n).add(h)).id=i,o.clipPath=h,this.clipCircle=o}this.group.clip(this.clipCircle),this.setClip=e.noop}}))))}}function u(t){var e=this.chart,i=this.xAxis;return i=i.pane&&i.pane.center,this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(t.chartX-(i&&i[0]||0)-e.plotLeft,t.chartY-(i&&i[1]||0)-e.plotTop)})}function f(t,e,i,o){var s=o.tickInterval;o=o.tickPositions;var r=A(o,(function(t){return t>=i})),n=A(M([],o,!0).reverse(),(function(t){return t<=e}));return P(r)||(r=o[o.length-1]),P(n)||(n=o[0],r+=s,t[0][0]="L",t.unshift(t[t.length-3])),(t=t.slice(o.indexOf(n),o.indexOf(r)+1))[0][0]="M",t}function g(t,e){return A(this.pane||[],(function(t){return t.options.id===e}))||t.call(this,e)}function m(t,e,i,o,s,r){var n=this.chart,a=T(o.inside,!!this.options.stacking);n.polar?(t=e.rectPlotX/Math.PI*180,n.inverted?(this.forceDL=n.isInsidePlot(e.plotX,e.plotY),a&&e.shapeArgs?(s=e.shapeArgs,s={x:(s=this.yAxis.postTranslate(((s.start||0)+(s.end||0))/2-this.xAxis.startAngleRad,e.barX+e.pointWidth/2)).x-n.plotLeft,y:s.y-n.plotTop}):e.tooltipPos&&(s={x:e.tooltipPos[0],y:e.tooltipPos[1]}),o.align=T(o.align,"center"),o.verticalAlign=T(o.verticalAlign,"middle")):(null===o.align&&(o.align=20<t&&160>t?"left":200<t&&340>t?"right":"center"),null===o.verticalAlign&&(o.verticalAlign=45>t||315<t?"bottom":135<t&&225>t?"top":"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,e,i,o,s,r),this.isRadialBar&&e.shapeArgs&&e.shapeArgs.start===e.shapeArgs.end?i.hide():i.show()):t.call(this,e,i,o,s,r)}function y(t){var e=this.options,i=e.stacking,o=this.chart,r=this.xAxis,n=this.yAxis,a=n.reversed,h=n.center,l=r.startAngleRad,p=r.endAngleRad-l,c=0,d=0,u=0;if(this.preventPostTranslate=!0,t.call(this),r.isRadial){r=(t=this.points).length;var f=n.translate(n.min),g=n.translate(n.max);for(e=e.threshold||0,o.inverted&&L(e)&&(c=n.translate(e),P(c)&&(0>c?c=0:c>p&&(c=p),this.translatedThreshold=c+l));r--;){var m=(e=t[r]).barX,y=e.x,v=e.y;e.shapeType="arc",o.inverted?(e.plotY=n.translate(v),i&&n.stacking?(v=n.stacking.stacks[(0>v?"-":"")+this.stackKey],this.visible&&v&&v[y]&&!e.isNull&&(u=v[y].points[this.getStackIndicator(void 0,y,this.index).key],d=n.translate(u[0]),u=n.translate(u[1]),P(d)&&(d=s.clamp(d,0,p)))):(d=c,u=e.plotY),d>u&&(u=[d,d=u][0]),a?u>f?u=f:d<g?d=g:(d>f||u<g)&&(d=u=p):d<f?d=f:u>g?u=g:(u<f||d>g)&&(d=u=0),n.min>n.max&&(d=u=a?p:0),d+=l,u+=l,h&&(e.barX=m+=h[3]/2),y=Math.max(m,0),v=Math.max(m+e.pointWidth,0),e.shapeArgs={x:h&&h[0],y:h&&h[1],r:v,innerR:y,start:d,end:u},e.opacity=d===u?0:void 0,e.plotY=(P(this.translatedThreshold)&&(d<this.translatedThreshold?d:u))-l):(d=m+l,e.shapeArgs=this.polar.arc(e.yBottom,e.plotY,d,d+e.pointWidth)),this.polar.toXY(e),o.inverted?(m=n.postTranslate(e.rectPlotY,m+e.pointWidth/2),e.tooltipPos=[m.x-o.plotLeft,m.y-o.plotTop]):e.tooltipPos=[e.plotX,e.plotY],h&&(e.ttBelow=e.plotY>h[1])}}}function v(t,e){var i=this;if(this.chart.polar){e=e||this.points;for(var o=0;o<e.length;o++)if(!e[o].isNull){var s=o;break}if(!1!==this.options.connectEnds&&void 0!==s){this.connectEnds=!0,e.splice(e.length,0,e[s]);var r=!0}e.forEach((function(t){void 0===t.polarPlotY&&i.polar.toXY(t)}))}return s=t.apply(this,[].slice.call(arguments,1)),r&&e.pop(),s}function x(t,e){var i=this.chart,o={xAxis:[],yAxis:[]};return i.polar?i.axes.forEach((function(t){if("colorAxis"!==t.coll){var s=t.isXAxis,r=t.center,n=e.chartX-r[0]-i.plotLeft;r=e.chartY-r[1]-i.plotTop,o[s?"xAxis":"yAxis"].push({axis:t,value:t.translate(s?Math.PI-Math.atan2(n,r):Math.sqrt(Math.pow(n,2)+Math.pow(r,2)),!0)})}})):o=t.call(this,e),o}function b(t,e){this.chart.polar||t.call(this,e)}function S(t,i){var o,s,r,n,a=this,h=this.chart,l=this.group,p=this.markerGroup,c=this.xAxis&&this.xAxis.center,d=h.plotLeft,u=h.plotTop,f=this.options.animation;if(h.polar){if(a.isRadialBar)i||(a.startAngleRad=T(a.translatedThreshold,a.xAxis.startAngleRad),e.seriesTypes.pie.prototype.animate.call(a,i));else if(h.renderer.isSVG)if(f=C(f),a.is("column")){if(!i){var g=c[3]/2;a.points.forEach((function(t){o=t.graphic,r=(s=t.shapeArgs)&&s.r,n=s&&s.innerR,o&&s&&(o.attr({r:g,innerR:g}),o.animate({r,innerR:n},a.options.animation))}))}}else i?(t={translateX:c[0]+d,translateY:c[1]+u,scaleX:.001,scaleY:.001},l.attr(t),p&&p.attr(t)):(t={translateX:d,translateY:u,scaleX:1,scaleY:1},l.animate(t,f),p&&p.animate(t,f))}else t.call(this,i)}function k(t,e,i,o){return this.chart.polar?o?(e=(t=r(e,o,!0,this.connectEnds)).prevPointCont&&t.prevPointCont.rightContX,i=t.prevPointCont&&t.prevPointCont.rightContY,t=["C",L(e)?e:t.plotX,L(i)?i:t.plotY,L(t.leftContX)?t.leftContX:t.plotX,L(t.leftContY)?t.leftContY:t.plotY,t.plotX,t.plotY]):t=["M",i.plotX,i.plotY]:t=t.call(this,e,i,o),t}var M=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var o,s=0,r=e.length;s<r;s++)!o&&s in e||(o||(o=Array.prototype.slice.call(e,0,s)),o[s]=e[s]);return t.concat(o||Array.prototype.slice.call(e))},C=t.animObject,w=s.addEvent,P=s.defined,A=s.find,L=s.isNumber,T=s.pick,O=s.splat,E=s.uniqueKey,j=s.wrap,D=[],I=function(){function t(t){this.series=t}return t.compose=function(t,e,i,s,r,u,f,M,C){o.compose(t,r),-1===D.indexOf(e)&&(D.push(e),w(e,"afterDrawChartBox",n),w(e,"getAxes",h),w(e,"init",a),j(e.prototype,"get",g)),-1===D.indexOf(i)&&(D.push(i),t=i.prototype,j(t,"getCoordinates",x),j(t,"pinch",b),w(i,"getSelectionMarkerAttrs",p),w(i,"getSelectionBox",l)),-1===D.indexOf(s)&&(D.push(s),w(s,"afterInit",c),w(s,"afterTranslate",d,{order:2}),j(s.prototype,"animate",S)),f&&-1===D.indexOf(f)&&(D.push(f),i=f.prototype,j(i,"alignDataLabel",m),j(i,"animate",S),j(i,"translate",y)),M&&-1===D.indexOf(M)&&(D.push(M),j(M.prototype,"getGraphPath",v)),C&&-1===D.indexOf(C)&&(D.push(C),M=C.prototype,j(M,"getPointSpline",k),u&&-1===D.indexOf(u)&&(D.push(u),u.prototype.getPointSpline=M.getPointSpline))},t.prototype.arc=function(t,e,i,o){var s=this.series,r=s.xAxis.center,n=s.yAxis.len,a=r[3]/2;return e=n-e+a,t=n-T(t,n)+a,s.yAxis.reversed&&(0>e&&(e=a),0>t&&(t=a)),{x:r[0],y:r[1],r:e,innerR:t,start:i,end:o}},t.prototype.toXY=function(t){var e=this.series,i=e.chart,o=e.xAxis,s=e.yAxis,r=t.plotX,n=i.inverted,a=t.y,h=t.plotY,l=n?r:s.len-h;n&&e&&!e.isRadialBar&&(t.plotY=h=L(a)?s.translate(a):0),t.rectPlotX=r,t.rectPlotY=h,s.center&&(l+=s.center[3]/2),L(h)&&(s=n?s.postTranslate(h,l):o.postTranslate(r,l),t.plotX=t.polarPlotX=s.x-i.plotLeft,t.plotY=t.polarPlotY=s.y-i.plotTop),e.kdByAngle?(0>(e=(r/Math.PI*180+o.pane.options.startAngle)%360)&&(e+=360),t.clientX=e):t.clientX=t.plotX},t}();return I})),e(t,"masters/highcharts-more.src.js",[t["Core/Globals.js"],t["Core/Series/SeriesRegistry.js"],t["Series/Bubble/BubbleSeries.js"],t["Series/PackedBubble/PackedBubbleSeries.js"],t["Series/PolarComposition.js"]],(function(t,e,i,o,s){i.compose(t.Axis,t.Chart,t.Legend,t.Series),o.compose(t.Axis,t.Chart,t.Legend,t.Series),s.compose(t.Axis,t.Chart,t.Pointer,t.Series,t.Tick,e.seriesTypes.areasplinerange,e.seriesTypes.column,e.seriesTypes.line,e.seriesTypes.spline)}))},t.exports?(r.default=r,t.exports=r):(o=[i(8840)],void 0===(s=function(t){return r(t),r.Highcharts=t,r}.apply(e,o))||(t.exports=s))},8840:function(t,e,i){var o,s,r;s="undefined"!=typeof window?window:this,r=function(t){function e(e,i,o,s){e.hasOwnProperty(i)||(e[i]=s.apply(null,o),"function"==typeof CustomEvent&&t.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:i,module:e[i]}})))}var i={};return e(i,"Core/Globals.js",[],(function(){var e;return function(e){e.SVG_NS="http://www.w3.org/2000/svg",e.product="Highcharts",e.version="10.3.3",e.win=void 0!==t?t:{},e.doc=e.win.document,e.svg=e.doc&&e.doc.createElementNS&&!!e.doc.createElementNS(e.SVG_NS,"svg").createSVGRect,e.userAgent=e.win.navigator&&e.win.navigator.userAgent||"",e.isChrome=-1!==e.userAgent.indexOf("Chrome"),e.isFirefox=-1!==e.userAgent.indexOf("Firefox"),e.isMS=/(edge|msie|trident)/i.test(e.userAgent)&&!e.win.opera,e.isSafari=!e.isChrome&&-1!==e.userAgent.indexOf("Safari"),e.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(e.userAgent),e.isWebKit=-1!==e.userAgent.indexOf("AppleWebKit"),e.deg2rad=2*Math.PI/360,e.hasBidiBug=e.isFirefox&&4>parseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,i),e.win.removeEventListener("testPassive",e.noop,i))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e})),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],(function(t){function e(i,o,s,r){var n=o?"Highcharts error":"Highcharts warning";32===i&&(i=n+": Deprecated member");var a=h(i),l=a?n+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(void 0!==r){var p="";a&&(l+="?"),m(r,(function(t,e){p+="\n - ".concat(e,": ").concat(t),a&&(l+=encodeURI(e)+"="+encodeURI(t))})),l+=p}v(t,"displayError",{chart:s,code:i,message:l,params:r},(function(){if(o)throw Error(l);S.console&&-1===e.messages.indexOf(l)&&console.warn(l)})),e.messages.push(l)}function i(t,e){return parseInt(t,e||10)}function o(t){return"string"==typeof t}function s(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function r(t,e){return!(!t||"object"!=typeof t||e&&s(t))}function n(t){return r(t)&&"number"==typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!r(t,!0)||n(t)||!e||!e.name||"Object"===e.name)}function h(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return null!=t}function p(t,e,i){var s,r=o(e)&&!l(i),n=function(e,i){l(e)?t.setAttribute(i,e):r?(s=t.getAttribute(i))||"class"!==i||(s=t.getAttribute(i+"Name")):t.removeAttribute(i)};return o(e)?n(i,e):m(e,n),s}function c(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function d(){for(var t=arguments,e=t.length,i=0;i<e;i++){var o=t[i];if(null!=o)return o}}function u(e,i){t.isMS&&!t.svg&&i&&l(i.opacity)&&(i.filter="alpha(opacity=".concat(100*i.opacity,")")),c(e.style,i)}function f(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function g(t,e){return 1e14<t?t:parseFloat(t.toPrecision(e||14))}function m(t,e,i){for(var o in t)Object.hasOwnProperty.call(t,o)&&e.call(i||t[o],t[o],o,t)}function y(e,i,o){function s(i,o){var s=e.removeEventListener||t.removeEventListenerPolyfill;s&&s.call(e,i,o,!1)}function r(t){var o;if(e.nodeName){if(i){var r={};r[i]=!0}else r=t;m(r,(function(e,i){if(t[i])for(o=t[i].length;o--;)s(i,t[i][o].fn)}))}}var n="function"==typeof e&&e.prototype||e;if(Object.hasOwnProperty.call(n,"hcEvents")){var a=n.hcEvents;i?(n=a[i]||[],o?(a[i]=n.filter((function(t){return o!==t.fn})),s(i,o)):(r(a),a[i]=[])):(r(a),delete n.hcEvents)}}function v(e,i,o,s){if(o=o||{},b.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==t)){var r=b.createEvent("Events");r.initEvent(i,!0,!0),o=c(r,o),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent(i,o)}else if(e.hcEvents){o.target||c(o,{preventDefault:function(){o.defaultPrevented=!0},target:e,type:i}),r=[];for(var n=e,a=!1;n.hcEvents;)Object.hasOwnProperty.call(n,"hcEvents")&&n.hcEvents[i]&&(r.length&&(a=!0),r.unshift.apply(r,n.hcEvents[i])),n=Object.getPrototypeOf(n);a&&r.sort((function(t,e){return t.order-e.order})),r.forEach((function(t){!1===t.fn.call(e,o)&&o.preventDefault()}))}s&&!o.defaultPrevented&&s.call(e,o)}var x=t.charts,b=t.doc,S=t.win;(e||(e={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var k=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,o=t.length;for(i=0;i<o;i++)if(e(t[i],i))return t[i]};m({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(i,o){t[o]=function(t){var s;return e(32,!1,void 0,((s={})["Highcharts.".concat(o)]="use Array.".concat(i),s)),Array.prototype[i].apply(t,[].slice.call(arguments,1))}}));var M,C=function(){var t=Math.random().toString(36).substring(2,9)+"-",e=0;return function(){return"highcharts-"+(M?"":t)+e++}}();return S.jQuery&&(S.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[o(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):x[p(this[0],"data-highcharts-chart")]}),k={addEvent:function(e,i,o,s){void 0===s&&(s={});var r="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={}),r=r.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var n=e.addEventListener||t.addEventListenerPolyfill;return n&&n.call(e,i,o,!!t.supportsPassiveEvents&&{passive:void 0===s.passive?-1!==i.indexOf("touch"):s.passive,capture:!1}),r[i]||(r[i]=[]),r[i].push({fn:o,order:"number"==typeof s.order?s.order:1/0}),r[i].sort((function(t,e){return t.order-e.order})),function(){y(e,i,o)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:p,clamp:function(t,e,i){return t>e?t<i?t:i:e},cleanRecursively:function t(e,i){var o={};return m(e,(function(s,n){r(e[n],!0)&&!e.nodeType&&i[n]?(s=t(e[n],i[n]),Object.keys(s).length&&(o[n]=s)):(r(e[n])||e[n]!==i[n]||n in e&&!(n in i))&&(o[n]=e[n])})),o},clearTimeout:function(t){l(t)&&clearTimeout(t)},correctFloat:g,createElement:function(t,e,i,o,s){return t=b.createElement(t),e&&c(t,e),s&&u(t,{padding:"0",border:"none",margin:"0"}),i&&u(t,i),o&&o.appendChild(t),t},css:u,defined:l,destroyObjectProperties:function(t,e){m(t,(function(i,o){i&&i!==e&&i.destroy&&i.destroy(),delete t[o]}))},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},error:e,extend:c,extendClass:function(t,e){var i=function(){};return c(i.prototype=new t,e),i},find:k,fireEvent:v,getMagnitude:f,getNestedProperty:function(t,e){for(t=t.split(".");t.length&&l(e);){var i=t.shift();if(void 0===i||"__proto__"===i)return;if(!l(e=e[i])||"function"==typeof e||"number"==typeof e.nodeType||e===S)return}return e},getStyle:function o(s,r,n){var a=t.getStyle||o;if("width"===r)return r=Math.min(s.offsetWidth,s.scrollWidth),(n=s.getBoundingClientRect&&s.getBoundingClientRect().width)<r&&n>=r-1&&(r=Math.floor(n)),Math.max(0,r-(a(s,"padding-left",!0)||0)-(a(s,"padding-right",!0)||0));if("height"===r)return Math.max(0,Math.min(s.offsetHeight,s.scrollHeight)-(a(s,"padding-top",!0)||0)-(a(s,"padding-bottom",!0)||0));if(S.getComputedStyle||e(27,!0),s=S.getComputedStyle(s,void 0)){var h=s.getPropertyValue(r);d(n,"opacity"!==r)&&(h=i(h))}return h},inArray:function(t,i,o){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,o)},isArray:s,isClass:a,isDOMElement:n,isFunction:function(t){return"function"==typeof t},isNumber:h,isObject:r,isString:o,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,i={},o=function(t,e){return"object"!=typeof t&&(t={}),m(e,(function(i,s){"__proto__"!==s&&"constructor"!==s&&(!r(i,!0)||a(i)||n(i)?t[s]=e[s]:t[s]=o(t[s]||{},i))})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var s=e.length;for(t=0;t<s;t++)i=o(i,e[t]);return i},normalizeTickInterval:function(t,e,i,o,s){var r=t,n=t/(i=d(i,f(t)));for(e||(e=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===o&&(1===i?e=e.filter((function(t){return 0==t%1})):.1>=i&&(e=[1/i]))),o=0;o<e.length&&(r=e[o],!(s&&r*i>=t||!s&&n<=(e[o]+(e[o+1]||e[o]))/2));o++);return g(r*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:m,offset:function(t){var e=b.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(S.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(S.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:d,pInt:i,relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:y,splat:function(t){return s(t)?t:[t]},stableSort:function(t,e){var i,o,s=t.length;for(o=0;o<s;o++)t[o].safeI=o;for(t.sort((function(t,o){return 0===(i=e(t,o))?t.safeI-o.safeI:i})),o=0;o<s;o++)delete t[o].safeI},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:C,useSerialIds:function(t){return M=d(t,M)},wrap:function(t,e,i){var o=t[e];t[e]=function(){var t=arguments,e=this;return i.apply(this,[function(){return o.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}},k})),e(i,"Core/Chart/ChartDefaults.js",[],(function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},zoomBySingleTouch:!1,zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"}})),e(i,"Core/Color/Color.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.isNumber,o=e.merge,s=e.pInt;return e=function(){function e(i){this.rgba=[NaN,NaN,NaN,NaN],this.input=i;var o=t.Color;return o&&o!==e?new o(i):this instanceof e?void this.init(i):new e(i)}return e.parse=function(t){return t?new e(t):e.None},e.prototype.init=function(t){var i;if("object"==typeof t&&void 0!==t.stops)this.stops=t.stops.map((function(t){return new e(t[1])}));else if("string"==typeof t){if(this.input=t=e.names[t.toLowerCase()]||t,"#"===t.charAt(0)){var o=t.length,s=parseInt(t.substr(1),16);7===o?i=[(16711680&s)>>16,(65280&s)>>8,255&s,1]:4===o&&(i=[(3840&s)>>4|(3840&s)>>8,(240&s)>>4|240&s,(15&s)<<4|15&s,1])}if(!i)for(s=e.parsers.length;s--&&!i;){var r=e.parsers[s];(o=r.regex.exec(t))&&(i=r.parse(o))}}i&&(this.rgba=i)},e.prototype.get=function(t){var e=this.input,s=this.rgba;if("object"==typeof e&&void 0!==this.stops){var r=o(e);return r.stops=[].slice.call(r.stops),this.stops.forEach((function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]})),r}return s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?"".concat(s[3]):"rgba("+s.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(var o=0;3>o;o++)e[o]+=s(255*t),0>e[o]&&(e[o]=0),255<e[o]&&(e[o]=255);return this},e.prototype.setOpacity=function(t){return this.rgba[3]=t,this},e.prototype.tweenTo=function(t,e){var o=this.rgba,s=t.rgba;return i(o[0])&&i(s[0])?((t=1!==s[3]||1!==o[3])?"rgba(":"rgb(")+Math.round(s[0]+(o[0]-s[0])*(1-e))+","+Math.round(s[1]+(o[1]-s[1])*(1-e))+","+Math.round(s[2]+(o[2]-s[2])*(1-e))+(t?","+(s[3]+(o[3]-s[3])*(1-e)):"")+")":t.input||"none"},e.names={white:"#ffffff",black:"#000000"},e.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[s(t[1]),s(t[2]),s(t[3]),1]}}],e.None=new e(""),e}(),e})),e(i,"Core/Color/Palettes.js",[],(function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}})),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=t.win,o=e.defined,s=e.error,r=e.extend,n=e.isObject,a=e.merge,h=e.objectEach,l=e.pad,p=e.pick,c=e.splat,d=e.timeUnits,u=t.isSafari&&i.Intl&&i.Intl.DateTimeFormat.prototype.formatRange,f=t.isSafari&&i.Intl&&!i.Intl.DateTimeFormat.prototype.formatRange;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=i.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),o=i-this.getTimezoneOffset(e);return e.setTime(o),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==this.getTimezoneOffset(e)%36e5)return e["setUTC"+t](i);var o=this.getTimezoneOffset(e);return o=e.getTime()-o,e.setTime(o),e["setUTC"+t](i),t=this.getTimezoneOffset(e),o=e.getTime()+t,e.setTime(o)}return this.useUTC||u&&"FullYear"===t?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){void 0===t&&(t={});var e=p(t.useUTC,!0);this.options=t=a(!0,this.options,t),this.Date=t.Date||i.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(t,e,i,o,s,r){if(this.useUTC){var n=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(n);n+=a;var h=this.getTimezoneOffset(n);a!==h?n+=h-a:a-36e5!==this.getTimezoneOffset(n-36e5)||f||(n-=36e5)}else n=new this.Date(t,e,p(i,1),p(o,0),p(s,0),p(r,0)).getTime();return n},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,o=e.getTimezoneOffset,r=e.moment||i.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(r)return function(t){return 6e4*-r.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&o?function(t){return 6e4*o(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,i,s){if(!o(i)||isNaN(i))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=p(e,"%Y-%m-%d %H:%M:%S");var n=this,a=new this.Date(i),c=this.get("Hours",a),d=this.get("Day",a),u=this.get("Date",a),f=this.get("Month",a),g=this.get("FullYear",a),m=t.defaultOptions.lang,y=m&&m.weekdays,v=m&&m.shortWeekdays;return a=r({a:v?v[d]:y[d].substr(0,3),A:y[d],d:l(u),e:l(u,2," "),w:d,b:m.shortMonths[f],B:m.months[f],m:l(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:l(c),k:c,I:l(c%12||12),l:c%12||12,M:l(this.get("Minutes",a)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:l(a.getSeconds()),L:l(Math.floor(i%1e3),3)},t.dateFormats),h(a,(function(t,o){for(;-1!==e.indexOf("%"+o);)e=e.replace("%"+o,"function"==typeof t?t.call(n,i):t)})),s?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return n(t,!0)?t:{main:(t=c(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,i,s){var n,a=this,h=[],l={},c=new a.Date(e),u=t.unitRange,f=t.count||1;if(s=p(s,1),o(e)){if(a.set("Milliseconds",c,u>=d.second?0:f*Math.floor(a.get("Milliseconds",c)/f)),u>=d.second&&a.set("Seconds",c,u>=d.minute?0:f*Math.floor(a.get("Seconds",c)/f)),u>=d.minute&&a.set("Minutes",c,u>=d.hour?0:f*Math.floor(a.get("Minutes",c)/f)),u>=d.hour&&a.set("Hours",c,u>=d.day?0:f*Math.floor(a.get("Hours",c)/f)),u>=d.day&&a.set("Date",c,u>=d.month?1:Math.max(1,f*Math.floor(a.get("Date",c)/f))),u>=d.month){a.set("Month",c,u>=d.year?0:f*Math.floor(a.get("Month",c)/f));var g=a.get("FullYear",c)}u>=d.year&&a.set("FullYear",c,g-g%f),u===d.week&&(g=a.get("Day",c),a.set("Date",c,a.get("Date",c)-g+s+(g<s?-7:0))),g=a.get("FullYear",c),s=a.get("Month",c);var m=a.get("Date",c),y=a.get("Hours",c);for(e=c.getTime(),!a.variableTimezone&&a.useUTC||!o(i)||(n=i-e>4*d.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(i)),e=c.getTime(),c=1;e<i;)h.push(e),e=u===d.year?a.makeTime(g+c*f,0):u===d.month?a.makeTime(g,s+c*f):!n||u!==d.day&&u!==d.week?n&&u===d.hour&&1<f?a.makeTime(g,s,m,y+c*f):e+u*f:a.makeTime(g,s,m+c*f*(u===d.day?1:7)),c++;h.push(e),u<=d.hour&&1e4>h.length&&h.forEach((function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")}))}return h.info=r(t,{higherRanks:l,totalRange:u*f}),h},e.prototype.getDateFormat=function(t,e,i,o){var s=this.dateFormat("%m-%d %H:%M:%S.%L",e),r={millisecond:15,second:12,minute:9,hour:6,day:3},n="millisecond";for(a in d){if(t===d.week&&+this.dateFormat("%w",e)===i&&"00:00:00.000"===s.substr(6)){var a="week";break}if(d[a]>t){a=n;break}if(r[a]&&s.substr(r[a])!=="01-01 00:00:00.000".substr(r[a]))break;"week"!==a&&(n=a)}return this.resolveDTLFormat(o[a]).main},e}(),e})),e(i,"Core/Defaults.js",[i["Core/Chart/ChartDefaults.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palettes.js"],i["Core/Time.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r){e=e.parse;var n=r.merge,a={colors:o.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:i.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:i.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};a.chart.styledMode=!1;var h=new s(n(a.global,a.time));return{defaultOptions:a,defaultTime:h,getOptions:function(){return a},setOptions:function(t){return n(!0,a,t),(t.time||t.global)&&(i.time?i.time.update(n(a.global,a.time,t.global,t.time)):i.time=h),a}}})),e(i,"Core/Animation/Fx.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=t.parse,s=e.win,r=i.isNumber,n=i.objectEach;return function(){function t(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var i=this.now||0,o=[];if(1!==i&&e&&t)if(e.length===t.length&&1>i)for(var s=0;s<t.length;s++){for(var n=e[s],a=t[s],h=[],l=0;l<a.length;l++){var p=n[l],c=a[l];r(p)&&r(c)&&("A"!==a[0]||4!==l&&5!==l)?h[l]=p+i*(c-p):h[l]=c}o.push(h)}else o=t;else o=this.toD||[];this.elem.attr("d",o,void 0,!0)},t.prototype.update=function(){var t=this.elem,e=this.prop,i=this.now,o=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,o&&o.call(t,i,this)},t.prototype.run=function(e,i,o){var r=this,n=r.options,a=function(t){return!a.stopped&&r.step(t)},h=s.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&h(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=o,this.now=this.start,this.pos=0,a.elem=this.elem,a.prop=this.prop,a()&&1===t.timers.push(a)&&h(l)):(delete n.curAnim[this.prop],n.complete&&0===Object.keys(n.curAnim).length&&n.complete.call(this.elem))},t.prototype.step=function(t){var e=+new Date,i=this.options,o=this.elem,s=i.complete,r=i.duration,a=i.curAnim;if(o.attr&&!o.element)t=!1;else if(t||e>=r+this.startTime){this.now=this.end,this.pos=1,this.update();var h=a[this.prop]=!0;n(a,(function(t){!0!==t&&(h=!1)})),h&&s&&s.call(o),t=!1}else this.pos=i.easing((e-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,i){function o(t,e){for(;t.length<d;){var i=t[0],o=e[d-t.length];o&&"M"===i[0]&&(t[0]="C"===o[0]?["C",i[1],i[2],i[1],i[2],i[1],i[2]]:["L",i[1],i[2]]),t.unshift(i),h&&(i=t.pop(),t.push(t[t.length-1],i))}}function s(t,e){for(;t.length<d;)if("C"===(e=t[Math.floor(t.length/l)-1].slice())[0]&&(e[1]=e[5],e[2]=e[6]),h){var i=t[Math.floor(t.length/l)].slice();t.splice(t.length/2,0,e,i)}else t.push(e)}var n=t.startX,a=t.endX;i=i.slice();var h=t.isArea,l=h?2:1;if(!(e=e&&e.slice()))return[i,i];if(n&&a&&a.length){for(t=0;t<n.length;t++){if(n[t]===a[0]){var p=t;break}if(n[0]===a[a.length-n.length+t]){p=t;var c=!0;break}if(n[n.length-1]===a[a.length-n.length+t]){p=n.length-t;break}}void 0===p&&(e=[])}if(e.length&&r(p)){var d=i.length+p*l;c?(o(e,i),s(i,e)):(o(i,e),s(e,i))}return[e,i]},t.prototype.fillSetter=function(){t.prototype.strokeSetter.apply(this,arguments)},t.prototype.strokeSetter=function(){this.elem.attr(this.prop,o(this.start).tweenTo(o(this.end),this.pos),void 0,!0)},t.timers=[],t}()})),e(i,"Core/Animation/AnimationUtilities.js",[i["Core/Animation/Fx.js"],i["Core/Utilities.js"]],(function(t,e){function i(t){return h(t)?l({duration:500,defer:0},t):{duration:t?500:0,defer:0}}function o(e,i){for(var o=t.timers.length;o--;)t.timers[o].elem!==e||i&&i!==t.timers[o].prop||(t.timers[o].stopped=!0)}var s=e.defined,r=e.getStyle,n=e.isArray,a=e.isNumber,h=e.isObject,l=e.merge,p=e.objectEach,c=e.pick;return{animate:function(e,i,s){var c,d,u,f="";if(!h(s)){var g=arguments;s={duration:g[2],easing:g[3],complete:g[4]}}a(s.duration)||(s.duration=400),s.easing="function"==typeof s.easing?s.easing:Math[s.easing]||Math.easeInOutSine,s.curAnim=l(i),p(i,(function(a,h){o(e,h),u=new t(e,s,h),d=void 0,"d"===h&&n(i.d)?(u.paths=u.initPath(e,e.pathArray,i.d),u.toD=i.d,c=0,d=1):e.attr?c=e.attr(h):(c=parseFloat(r(e,h))||0,"opacity"!==h&&(f="px")),d||(d=a),"string"==typeof d&&d.match("px")&&(d=d.replace(/px/g,"")),u.run(c,d,f)}))},animObject:i,getDeferredAnimation:function(t,e,o){var r=i(e),n=0,a=0;return(o?[o]:t.series).forEach((function(t){t=i(t.options.animation),n=e&&s(e.defer)?r.defer:Math.max(n,t.duration+t.defer),a=Math.min(r.duration,t.duration)})),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-a),duration:Math.min(n,a)}},setAnimation:function(t,e){e.renderer.globalAnimation=c(t,e.options.chart.animation,!0)},stop:o}})),e(i,"Core/Renderer/HTML/AST.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=t.SVG_NS,o=e.attr,s=e.createElement,r=e.css,n=e.error,a=e.isFunction,h=e.isString,l=e.objectEach,p=e.splat,c=(e=t.win.trustedTypes)&&a(e.createPolicy)&&e.createPolicy("highcharts",{createHTML:function(t){return t}}),d=c?c.createHTML(""):"";try{var u=!!(new DOMParser).parseFromString(d,"text/html")}catch(t){u=!1}return a=function(){function e(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}return e.filterUserAttributes=function(t){return l(t,(function(i,o){var s=!0;-1===e.allowedAttributes.indexOf(o)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(o)&&(s=h(i)&&e.allowedReferences.some((function(t){return 0===i.indexOf(t)}))),s||(n(33,!1,void 0,{"Invalid attribute in config":"".concat(o)}),delete t[o]),h(i)&&t[o]&&(t[o]=i.replace(/</g,"<"))})),t},e.parseStyle=function(t){return t.split(";").reduce((function(t,e){e=e.split(":").map((function(t){return t.trim()}));var i=e.shift();return i&&e.length&&(t[i.replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}))]=e.join(":")),t}),{})},e.setElementHTML=function(t,i){t.innerHTML=e.emptyHTML,i&&new e(i).addToDOM(t)},e.prototype.addToDOM=function(s){return function s(a,h){var c;return p(a).forEach((function(a){var p=a.tagName,d=a.textContent?t.doc.createTextNode(a.textContent):void 0,u=e.bypassHTMLFiltering;if(p)if("#text"===p)var f=d;else if(-1!==e.allowedTags.indexOf(p)||u){p=t.doc.createElementNS("svg"===p?i:h.namespaceURI||i,p);var g=a.attributes||{};l(a,(function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(g[e]=t)})),o(p,u?g:e.filterUserAttributes(g)),a.style&&r(p,a.style),d&&p.appendChild(d),s(a.children||[],p),f=p}else n(33,!1,void 0,{"Invalid tagName in config":p});f&&h.appendChild(f),c=f})),c}(this.nodes,s)},e.prototype.parseMarkup=function(t){var i=[];if(t=t.trim().replace(/ style=(["'])/g," data-style=$1"),u)t=(new DOMParser).parseFromString(c?c.createHTML(t):t,"text/html");else{var o=s("div");o.innerHTML=t,t={body:o}}var r=function(t,i){var o=t.nodeName.toLowerCase(),s={tagName:o};if("#text"===o&&(s.textContent=t.textContent||""),o=t.attributes){var n={};[].forEach.call(o,(function(t){"data-style"===t.name?s.style=e.parseStyle(t.value):n[t.name]=t.value})),s.attributes=n}if(t.childNodes.length){var a=[];[].forEach.call(t.childNodes,(function(t){r(t,a)})),a.length&&(s.children=a)}i.push(s)};return[].forEach.call(t.body.childNodes,(function(t){return r(t,i)})),i},e.allowedAttributes="aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),e.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),e.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),e.emptyHTML=d,e.bypassHTMLFiltering=!1,e}(),a})),e(i,"Core/FormatUtilities.js",[i["Core/Defaults.js"],i["Core/Utilities.js"]],(function(t,e){function i(t,e,i,s){t=+t||0,e=+e;var r=o.lang,l=(t.toString().split(".")[1]||"").split("e")[0].length,p=t.toString().split("e"),c=e;if(-1===e)e=Math.min(l,20);else if(n(e)){if(e&&p[1]&&0>p[1]){var d=e+ +p[1];0<=d?(p[0]=(+p[0]).toExponential(d).split("e")[0],e=d):(p[0]=p[0].split(".")[0]||0,t=20>e?(p[0]*Math.pow(10,p[1])).toFixed(e):0,p[1]=0)}}else e=2;d=(Math.abs(p[1]?p[0]:t)+Math.pow(10,-Math.max(e,l)-1)).toFixed(e);var u=3<(l=String(h(d))).length?l.length%3:0;return i=a(i,r.decimalPoint),s=a(s,r.thousandsSep),t=(0>t?"-":"")+(u?l.substr(0,u)+s:""),t=0>+p[1]&&!c?"0":t+l.substr(u).replace(/(\d{3})(?=\d)/g,"$1"+s),e&&(t+=i+d.slice(-e)),p[1]&&0!=+t&&(t+="e"+p[1]),t}var o=t.defaultOptions,s=t.defaultTime,r=e.getNestedProperty,n=e.isNumber,a=e.pick,h=e.pInt;return{dateFormat:function(t,e,i){return s.dateFormat(t,e,i)},format:function(t,e,n){var a="{",h=!1,l=/f$/,p=/\.([0-9])/,c=o.lang,d=n&&n.time||s;n=n&&n.numberFormatter||i;for(var u=[];t;){var f=t.indexOf(a);if(-1===f)break;var g=t.slice(0,f);if(h){if(g=g.split(":"),a=r(g.shift()||"",e),g.length&&"number"==typeof a)if(g=g.join(":"),l.test(g)){var m=parseInt((g.match(p)||["","-1"])[1],10);null!==a&&(a=n(a,m,c.decimalPoint,-1<g.indexOf(",")?c.thousandsSep:""))}else a=d.dateFormat(g,a);u.push(a)}else u.push(g);t=t.slice(f+1),a=(h=!h)?"}":"{"}return u.push(t),u.join("")},numberFormat:i}})),e(i,"Core/Renderer/RendererUtilities.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.clamp,o=t.pick,s=t.stableSort;return function(t){t.distribute=function t(e,r,n){var a,h=e,l=h.reducedLen||r,p=function(t,e){return(e.rank||0)-(t.rank||0)},c=function(t,e){return t.target-e.target},d=!0,u=[],f=0;for(a=e.length;a--;)f+=e[a].size;if(f>l){for(s(e,p),f=a=0;f<=l;)f+=e[a].size,a++;u=e.splice(a-1,e.length)}for(s(e,c),e=e.map((function(t){return{size:t.size,targets:[t.target],align:o(t.align,.5)}}));d;){for(a=e.length;a--;)l=e[a],p=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=i(p-l.size*l.align,0,r-l.size);for(a=e.length,d=!1;a--;)0<a&&e[a-1].pos+e[a-1].size>e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>r&&(e[a-1].pos=r-e[a-1].size),e.splice(a,1),d=!0)}return h.push.apply(h,u),a=0,e.some((function(e){var i=0;return(e.targets||[]).some((function(){return h[a].pos=e.pos+i,void 0!==n&&Math.abs(h[a].pos-h[a].target)>n?(h.slice(0,a+1).forEach((function(t){return delete t.pos})),h.reducedLen=(h.reducedLen||r)-.1*r,h.reducedLen>.1*r&&t(h,r,n),!0):(i+=h[a].size,a++,!1)}))})),s(h,c),h}}(e||(e={})),e})),e(i,"Core/Renderer/SVG/SVGElement.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s=t.animate,r=t.animObject,n=t.stop,a=i.deg2rad,h=i.doc,l=i.svg,p=i.SVG_NS,c=i.win,d=o.addEvent,u=o.attr,f=o.createElement,g=o.css,m=o.defined,y=o.erase,v=o.extend,x=o.fireEvent,b=o.isArray,S=o.isFunction,k=o.isString,M=o.merge,C=o.objectEach,w=o.pick,P=o.pInt,A=o.syncTimeout,L=o.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=p,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=w(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,i){i.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),void 0!==this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var o=this.zIndexSetter();return o||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var i=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce((function(t,e){return-1===i.indexOf(e)&&t.push(e),t}),i?[i]:[]).join(" "),t!==i&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,i){var o,s,r,n={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||k(i))&&(this.alignTo=o=i||"renderer",y(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,o=this.alignTo),i=w(i,a[o],"scrollablePlotBox"===o?a.plotBox:void 0,a),o=t.align;var l=t.verticalAlign;return a=(i.x||0)+(t.x||0),h=(i.y||0)+(t.y||0),"right"===o?s=1:"center"===o&&(s=2),s&&(a+=(i.width-(t.width||0))/s),n[e?"translateX":"x"]=Math.round(a),"bottom"===l?r=1:"middle"===l&&(r=2),r&&(h+=(i.height-(t.height||0))/r),n[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](n),this.placed=!0,this.alignAttr=n,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,i){var o=this,n=r(w(e,this.renderer.globalAnimation,!0));return e=n.defer,w(h.hidden,h.msHidden,h.webkitHidden,!1)&&(n.duration=0),0!==n.duration?(i&&(n.complete=i),A((function(){o.element&&s(o,t,n)}),e)):(this.attr(t,void 0,i||n.complete),C(t,(function(t,e){n.step&&n.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var o=t.split(" ");if(t=o[o.length-1],(o=o[0])&&"none"!==o&&i.svg){this.fakeTS=!0,o=o.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,i){return 2*Number(e)+i})),this.removeTextOutline();var s=h.createElementNS(p,"tspan");u(s,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":o,"stroke-linejoin":"round"}),t=e.querySelector("textPath")||e,[].forEach.call(t.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),s.appendChild(e)}));var r=0;[].forEach.call(t.querySelectorAll("text tspan"),(function(t){r+=Number(t.getAttribute("dy"))})),(o=h.createElementNS(p,"tspan")).textContent="",u(o,{x:Number(e.getAttribute("x")),dy:-r}),s.appendChild(o),t.insertBefore(s,t.firstChild)}},t.prototype.attr=function(t,e,i,o){var s,r,a,h=this.element,l=this.symbolCustomAttribs,p=this;if("string"==typeof t&&void 0!==e){var c=t;(t={})[c]=e}return"string"==typeof t?p=(this[t+"Getter"]||this._defaultGetter).call(this,t,h):(C(t,(function(e,i){r=!1,o||n(this,i),this.symbolName&&-1!==l.indexOf(i)&&(s||(this.symbolAttr(t),s=!0),r=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),r||((a=this[i+"Setter"]||this._defaultSetter).call(this,e,i,h),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,e,a))}),this),this.afterSetters()),i&&i.call(this),p},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),m(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,i,o){var s,r,n,a,h,l,p,c,d,u,f,g=this.renderer,y=[];x(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],h=g.gradients,l=t.stops,d=o.radialReference,b(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&d&&!m(n.gradientUnits)&&(a=n,n=M(n,g.getRadialAttr(d,a),{gradientUnits:"userSpaceOnUse"})),C(n,(function(t,e){"id"!==e&&y.push(e,t)})),C(l,(function(t){y.push(t)})),y=y.join(","),h[y])u=h[y].attr("id");else{n.id=u=L();var v=h[y]=g.createElement(r).attr(n).add(g.defs);v.radAttr=a,v.stops=[],l.forEach((function(t){0===t[1].indexOf("rgba")?(s=e.parse(t[1]),p=s.get("rgb"),c=s.get("a")):(p=t[1],c=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":p,"stop-opacity":c}).add(v),v.stops.push(t)}))}f="url("+g.url+"#"+u+")",o.setAttribute(i,f),o.gradient=y,t.toString=function(){return f}}}))},t.prototype.css=function(t){var e=this.styles,i={},o=this.element,s=!e;if(t.color&&(t.fill=t.color),e&&C(t,(function(t,o){e&&e[o]!==t&&(i[o]=t,s=!0)})),s){if(e&&(t=v(e,i)),null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===o.nodeName.toLowerCase()&&t.width)var r=this.textWidth=P(t.width);this.styles=t,r&&!l&&this.renderer.forExport&&delete t.width;var n=M(t);o.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach((function(t){return n&&delete n[t]})),g(o,n),this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var i=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=i.length;t--;)i[t]=""+P(i[t])*w(e,NaN);t=i.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},i=t.renderer,o=e.ownerSVGElement,s=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,n(t),t.clipPath&&o){var r=t.clipPath;[].forEach.call(o.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1<t.getAttribute("clip-path").indexOf(r.element.id)&&t.removeAttribute("clip-path")})),t.clipPath=r.destroy()}if(t.stops){for(o=0;o<t.stops.length;o++)t.stops[o].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();s&&s.div&&0===s.div.childNodes.length;)e=s.parentGroup,t.safeRemoveChild(s.div),delete s.div,s=e;t.alignTo&&y(i.alignedObjects,t),C(t,(function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]}))},t.prototype.destroyShadows=function(){(this.shadows||[]).forEach((function(t){this.safeRemoveChild(t)}),this),this.shadows=void 0},t.prototype.dSetter=function(t,e,i){b(t)&&("string"==typeof t[0]&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((function(t,e,i){return e&&e.join?(i?t+" ":"")+e.join(" "):(e||"").toString()}),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},t.prototype.fadeOut=function(t){var e=this;e.animate({opacity:0},{duration:w(t,150),complete:function(){e.hide()}})},t.prototype.fillSetter=function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},t.prototype.getBBox=function(e,i){var o=this.alignValue,s=this.element,r=this.renderer,n=this.styles,h=this.textStr,l=r.cache,p=r.cacheKeys,c=s.namespaceURI===this.SVG_NS;i=w(i,this.rotation,0);var d,u=r.styledMode?s&&t.prototype.getStyle.call(s,"font-size"):n&&n.fontSize;if(m(h)){var f=h.toString();-1===f.indexOf("<")&&(f=f.replace(/[0-9]/g,"0")),f+=["",i,u,this.textWidth,o,n&&n.textOverflow,n&&n.fontWeight].join()}if(f&&!e&&(d=l[f]),!d){if(c||r.forExport){try{var y=this.fakeTS&&function(t){var e=s.querySelector(".highcharts-text-outline");e&&g(e,{display:t})};S(y)&&y("none"),d=s.getBBox?v({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight,x:0,y:0},S(y)&&y("")}catch(t){}(!d||0>d.width)&&(d={x:0,y:0,width:0,height:0})}else d=this.htmlGetBBox();if(r.isSVG&&(r=d.width,e=d.height,c&&(d.height=e={"11px,17":14,"13px,20":16}[""+(u||"")+",".concat(Math.round(e))]||e),i)){c=Number(s.getAttribute("y")||0)-d.y,o={right:1,center:.5}[o||0]||0,n=i*a,u=(i-90)*a;var x=r*Math.cos(n);i=r*Math.sin(n),y=Math.cos(u),n=Math.sin(u),x=(y=(u=(r=d.x+o*(r-x)+c*y)+x)-e*y)-x,i=(e=(o=(c=d.y+c-o*i+c*n)+i)-e*n)-i,d.x=Math.min(r,u,y,x),d.y=Math.min(c,o,e,i),d.width=Math.max(r,u,y,x)-d.x,d.height=Math.max(c,o,e,i)-d.y}if(f&&(""===h||0<d.height)){for(;250<p.length;)delete l[p.shift()];l[f]||p.push(f),l[f]=d}}return d},t.prototype.getStyle=function(t){return c.getComputedStyle(this.element||this,"").getPropertyValue(t)},t.prototype.hasClass=function(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)},t.prototype.hide=function(){return this.attr({visibility:"hidden"})},t.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},t.prototype.init=function(t,e){this.element="span"===e?f(e):h.createElementNS(this.SVG_NS,e),this.renderer=t,x(this,"afterInit")},t.prototype.on=function(t,e){var i=this.onEvents;return i[t]&&i[t](),i[t]=d(this.element,t,e),this},t.prototype.opacitySetter=function(t,e,i){this.opacity=t=Number(Number(t).toFixed(3)),i.setAttribute(e,t)},t.prototype.removeClass=function(t){return this.attr("class",(""+this.attr("class")).replace(k(t)?new RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())},t.prototype.removeTextOutline=function(){var t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)},t.prototype.safeRemoveChild=function(t){var e=t.parentNode;e&&e.removeChild(t)},t.prototype.setRadialReference=function(t){var e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},t.prototype.setTextPath=function(t,e){var i=this;e=M(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);var o=this.renderer.url,s=this.text||this,r=s.textPath,n=e.attributes,a=e.enabled;return t=t||r&&r.path,r&&r.undo(),t&&a?(e=d(s,"afterModifyTree",(function(e){if(t&&a){var r=t.attr("id");r||t.attr("id",r=L());var h={x:0,y:0};m(n.dx)&&(h.dx=n.dx,delete n.dx),m(n.dy)&&(h.dy=n.dy,delete n.dy),s.attr(h),i.attr({transform:""}),i.box&&(i.box=i.box.destroy()),h=e.nodes.slice(0),e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:v(n,{"text-anchor":n.textAnchor,href:""+o+"#".concat(r)}),children:h}}})),s.textPath={path:t,undo:e}):(s.attr({dx:0,dy:0}),delete s.textPath),this.added&&(s.textCache="",this.renderer.buildText(s)),this},t.prototype.shadow=function(t,e,i){var o=[],s=this.element,r=this.oldShadowOptions,n=this.parentGroup,a=n&&90===n.rotation;n={color:"#000000",offsetX:a?-1:1,offsetY:a?-1:1,opacity:.15,width:3};var h,l=!1;if(!0===t?h=n:"object"==typeof t&&(h=v(n,t)),h&&(h&&r&&C(h,(function(t,e){t!==r[e]&&(l=!0)})),l&&this.destroyShadows(),this.oldShadowOptions=h),h){if(!this.shadows){n=h.opacity/h.width;var p=a?"translate(".concat(h.offsetY,", ").concat(h.offsetX,")"):"translate(".concat(h.offsetX,", ").concat(h.offsetY,")");for(a=1;a<=h.width;a++){var c=s.cloneNode(!1),d=2*h.width+1-2*a;u(c,{stroke:t.color||"#000000","stroke-opacity":n*a,"stroke-width":d,transform:p,fill:"none"}),c.setAttribute("class",(c.getAttribute("class")||"")+" highcharts-shadow"),i&&(u(c,"height",Math.max(u(c,"height")-d,0)),c.cutHeight=d),e?e.element.appendChild(c):s.parentNode&&s.parentNode.insertBefore(c,s),o.push(c)}this.shadows=o}}else this.destroyShadows();return this},t.prototype.show=function(t){return void 0===t&&(t=!0),this.attr({visibility:t?"inherit":"visible"})},t.prototype["stroke-widthSetter"]=function(t,e,i){this[e]=t,i.setAttribute(e,t)},t.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width"),e=0;if(t.indexOf("px")===t.length-2)e=P(t);else if(""!==t){var i=h.createElementNS(p,"rect");u(i,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)}return e},t.prototype.symbolAttr=function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach((function(i){e[i]=w(t[i],e[i])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},t.prototype.textSetter=function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},t.prototype.titleSetter=function(t){var e=this.element,i=e.getElementsByTagName("title")[0]||h.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(w(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,i){var o=this.shadows;if(o)for(var s=o.length;s--;)i.call(o[s],"height"===t?Math.max(e-(o[s].cutHeight||0),0):"d"===t?this.d:e,t,o[s])},t.prototype.updateTransform=function(){var t=this.element,e=this.matrix,i=this.rotation;i=void 0===i?0:i;var o=this.scaleX,s=this.scaleY,r=this.translateX,n=this.translateY;r=["translate("+(void 0===r?0:r)+","+(void 0===n?0:n)+")"],m(e)&&r.push("matrix("+e.join(",")+")"),i&&r.push("rotate("+i+" "+w(this.rotationOriginX,t.getAttribute("x"),0)+" "+w(this.rotationOriginY,t.getAttribute("y")||0)+")"),(m(o)||m(s))&&r.push("scale("+w(o,1)+" "+w(s,1)+")"),r.length&&!(this.text||this).textPath&&t.setAttribute("transform",r.join(" "))},t.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var i=this.renderer,o=this.parentGroup,s=(o||i).element||i.box,r=this.element;i=s===i.box;var n,a=!1,h=this.added;if(m(t)?(r.setAttribute("data-z-index",t),t=+t,this[e]===t&&(h=!1)):m(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,h){for((t=this.zIndex)&&o&&(o.handleZ=!0),n=(e=s.childNodes).length-1;0<=n&&!a;n--){h=(o=e[n]).getAttribute("data-z-index");var l=!m(h);o!==r&&(0>t&&l&&!i&&!n?(s.insertBefore(r,e[n]),a=!0):(P(h)<=t||l&&(!m(t)||0<=t))&&(s.insertBefore(r,e[n+1]||null),a=!0))}a||(s.insertBefore(r,e[i?3:0]||null),a=!0)}return a},t}(),t.prototype.strokeSetter=t.prototype.fillSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t})),e(i,"Core/Renderer/RendererRegistry.js",[i["Core/Globals.js"]],(function(t){var e;return function(e){var i;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=i),e.rendererTypes[t]||e.rendererTypes[i]},e.registerRendererType=function(o,s,r){e.rendererTypes[o]=s,i&&!r||(i=o,t.Renderer=s)}}(e||(e={})),e})),e(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=e.defined,s=e.extend,r=e.isNumber,n=e.merge,a=e.pick,h=e.removeEvent;return function(e){function l(t,i,o,s,r,n,a,h,p,c){var d,u=e.call(this)||this;return u.paddingLeftSetter=u.paddingSetter,u.paddingRightSetter=u.paddingSetter,u.init(t,"g"),u.textStr=i,u.x=o,u.y=s,u.anchorX=n,u.anchorY=a,u.baseline=p,u.className=c,u.addClass("button"===c?"highcharts-no-tooltip":"highcharts-label"),c&&u.addClass("highcharts-"+c),u.text=t.text(void 0,0,0,h).attr({zIndex:1}),"string"==typeof r&&((d=/^url\((.*?)\)$/.test(r))||u.renderer.symbols[r])&&(u.symbolKey=r),u.bBox=l.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=t.styledMode||d,u.deferredAttr={},u.alignFactor=0,u}return i(l,e),l.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var i={};e=n(e),l.textProps.forEach((function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])})),this.text.css(i),"fontSize"in i||"fontWeight"in i?this.updateTextPadding():("width"in i||"textOverflow"in i)&&this.updateBoxSize()}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){h(this.element,"mouseenter"),h(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=a(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.onAdd=function(){this.text.add(this),this.attr({text:a(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&o(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t,e){r(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text,e=t.element.style,i={},n=this.padding,a=this.bBox=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!o(t.textStr)?l.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n,e=this.renderer.fontMetrics(e&&e.fontSize,t),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||e).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-e.h)/2),this.needsBox&&!t.textPath&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)),t=this.getCrispAdjust(),i.x=t,i.y=(this.baseline?-this.baselineOffset:0)+t,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(s(i,this.deferredAttr)),this.deferredAttr={})},l.prototype.updateTextPadding=function(){var t=this.text;if(!t.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,i=a(this.paddingLeft,this.padding);o(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(i+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),i===t.x&&e===t.y||(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e}},l.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},l.prototype.getPaddedWidth=function(){var t=this.padding,e=a(this.paddingLeft,t);return t=a(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},l.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)})),e(i,"Core/Renderer/SVG/Symbols.js",[i["Core/Utilities.js"]],(function(t){function e(t,e,i,o,r){var a=[];if(r){var h=r.start||0,l=n(r.r,i);i=n(r.r,o||i);var p=(r.end||0)-.001;o=r.innerR;var c=n(r.open,.001>Math.abs((r.end||0)-h-2*Math.PI)),d=Math.cos(h),u=Math.sin(h),f=Math.cos(p),g=Math.sin(p);h=n(r.longArc,.001>p-h-Math.PI?0:1),a.push(["M",t+l*d,e+i*u],["A",l,i,0,h,n(r.clockwise,1),t+l*f,e+i*g]),s(o)&&a.push(c?["M",t+o*f,e+o*g]:["L",t+o*f,e+o*g],["A",o,o,0,h,s(r.clockwise)?1-r.clockwise:0,t+o*d,e+o*u]),c||a.push(["Z"])}return a}function i(t,e,i,s,r){return r&&r.r?o(t,e,i,s,r):[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]}function o(t,e,i,o,s){return[["M",t+(s=s&&s.r||0),e],["L",t+i-s,e],["C",t+i,e,t+i,e,t+i,e+s],["L",t+i,e+o-s],["C",t+i,e+o,t+i,e+o,t+i-s,e+o],["L",t+s,e+o],["C",t,e+o,t,e+o,t,e+o-s],["L",t,e+s],["C",t,e,t,e,t+s,e]]}var s=t.defined,r=t.isNumber,n=t.pick;return{arc:e,callout:function(t,e,i,s,n){var a=Math.min(n&&n.r||0,i,s),h=a+6,l=n&&n.anchorX;n=n&&n.anchorY||0;var p=o(t,e,i,s,{r:a});return r(l)?(t+l>=i?n>e+h&&n<e+s-h?p.splice(3,1,["L",t+i,n-6],["L",t+i+6,n],["L",t+i,n+6],["L",t+i,e+s-a]):p.splice(3,1,["L",t+i,s/2],["L",l,n],["L",t+i,s/2],["L",t+i,e+s-a]):0>=t+l?n>e+h&&n<e+s-h?p.splice(7,1,["L",t,n+6],["L",t-6,n],["L",t,n-6],["L",t,e+a]):p.splice(7,1,["L",t,s/2],["L",l,n],["L",t,s/2],["L",t,e+a]):n&&n>s&&l>t+h&&l<t+i-h?p.splice(5,1,["L",l+6,e+s],["L",l,e+s+6],["L",l-6,e+s],["L",t+a,e+s]):n&&0>n&&l>t+h&&l<t+i-h&&p.splice(1,1,["L",l-6,e],["L",l,e-6],["L",l+6,e],["L",i-a,e]),p):p},circle:function(t,i,o,s){return e(t+o/2,i+s/2,o/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o/2],["L",t+i/2,e+o],["L",t,e+o/2],["Z"]]},rect:i,roundedRect:o,square:i,triangle:function(t,e,i,o){return[["M",t+i/2,e],["L",t+i,e+o],["L",t,e+o],["Z"]]},"triangle-down":function(t,e,i,o){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+o],["Z"]]}}})),e(i,"Core/Renderer/SVG/TextBuilder.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=e.doc,s=e.SVG_NS,r=e.win,n=i.attr,a=i.extend,h=i.fireEvent,l=i.isString,p=i.objectEach,c=i.pick;return function(){function e(t){var e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace),this.fontSize=e&&e.fontSize}return e.prototype.buildSVG=function(){var e=this.svgElement,i=e.element,s=e.renderer,r=c(e.textStr,"").toString(),n=-1!==r.indexOf("<"),a=i.childNodes;s=this.width&&!e.added&&s.box;var h=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(h!==e.textCache){for(e.textCache=h,delete e.actualWidth,h=a.length;h--;)i.removeChild(a[h]);n||this.ellipsis||this.width||e.textPath||-1!==r.indexOf(" ")&&(!this.noWrap||/<br.*?>/g.test(r))?""!==r&&(s&&s.appendChild(i),r=new t(r),this.modifyTree(r.nodes),r.addToDOM(i),this.modifyDOM(),this.ellipsis&&-1!==(i.textContent||"").indexOf("…")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),s&&s.removeChild(i)):i.appendChild(o.createTextNode(this.unescapeEntities(r))),l(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,i=this.svgElement,a=n(i.element,"x");for(i.firstLineMetrics=void 0;(t=i.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)i.element.removeChild(t);[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),(function(t,o){t.nextSibling&&t.previousSibling&&(0===o&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(void 0,t.previousSibling)),n(t,{dy:e.getLineHeight(t.nextSibling),x:a}))}));var h=this.width||0;if(h){var l=function(t,r){var l=t.textContent||"",p=l.replace(/([^\^])-/g,"$1- ").split(" "),c=!e.noWrap&&(1<p.length||1<i.element.childNodes.length),d=e.getLineHeight(r),u=0,f=i.actualWidth;if(e.ellipsis)l&&e.truncate(t,l,void 0,0,Math.max(0,h-parseInt(e.fontSize||12,10)),(function(t,e){return t.substring(0,e)+"…"}));else if(c){for(l=[],c=[];r.firstChild&&r.firstChild!==t;)c.push(r.firstChild),r.removeChild(r.firstChild);for(;p.length;)p.length&&!e.noWrap&&0<u&&(l.push(t.textContent||""),t.textContent=p.join(" ").replace(/- /g,"-")),e.truncate(t,void 0,p,0===u&&f||0,h,(function(t,e){return p.slice(0,e).join(" ").replace(/- /g,"-")})),f=i.actualWidth,u++;c.forEach((function(e){r.insertBefore(e,t)})),l.forEach((function(e){r.insertBefore(o.createTextNode(e),t),(e=o.createElementNS(s,"tspan")).textContent="",n(e,{dy:d,x:a}),r.insertBefore(e,t)}))}},p=function(t){[].slice.call(t.childNodes).forEach((function(e){e.nodeType===r.Node.TEXT_NODE?l(e,t):(-1!==e.className.baseVal.indexOf("highcharts-br")&&(i.actualWidth=0),p(e))}))};p(i.element)}},e.prototype.getLineHeight=function(t){var e;return t=t.nodeType===r.Node.TEXT_NODE?t.parentElement:t,this.renderer.styledMode||(e=t&&/(px|em)$/.test(t.style.fontSize)?t.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e,t||this.svgElement.element).h},e.prototype.modifyTree=function(t){var e=this,i=function(o,s){var r=o.attributes;r=void 0===r?{}:r;var n=o.children,h=o.style;h=void 0===h?{}:h;var l=o.tagName,p=e.renderer.styledMode;"b"===l||"strong"===l?p?r.class="highcharts-strong":h.fontWeight="bold":"i"!==l&&"em"!==l||(p?r.class="highcharts-emphasized":h.fontStyle="italic"),h&&h.color&&(h.fill=h.color),"br"===l?(r.class="highcharts-br",o.textContent="",(s=t[s+1])&&s.textContent&&(s.textContent=s.textContent.replace(/^ +/gm,""))):"a"===l&&n&&n.some((function(t){return"#text"===t.tagName}))&&(o.children=[{children:n,tagName:"tspan"}]),"#text"!==l&&"a"!==l&&(o.tagName="tspan"),a(o,{attributes:r,style:h}),n&&n.filter((function(t){return"#text"!==t.tagName})).forEach(i)};t.forEach(i),h(this.svgElement,"afterModifyTree",{nodes:t})},e.prototype.truncate=function(t,e,i,o,s,r){var n,a=this.svgElement,h=a.renderer,l=a.rotation,p=[],c=i?1:0,d=(e||i||"").length,u=d,f=function(s,n){n=n||s;var l=t.parentNode;if(l&&void 0===p[n])if(l.getSubStringLength)try{p[n]=o+l.getSubStringLength(0,i?n+1:n)}catch(t){}else h.getSpanWidth&&(t.textContent=r(e||i,s),p[n]=o+h.getSpanWidth(a,t));return p[n]};a.rotation=0;var g=f(t.textContent.length);if(o+g>s){for(;c<=d;)u=Math.ceil((c+d)/2),i&&(n=r(i,u)),g=f(u,n&&n.length-1),c===d?c=d+1:g>s?d=u-1:c=u;0===d?t.textContent="":e&&d===e.length-1||(t.textContent=n||r(e||i,u))}i&&i.splice(0,u),a.actualWidth=g,a.rotation=l},e.prototype.unescapeEntities=function(t,e){return p(this.renderer.escapes,(function(i,o){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),o))})),t},e}()})),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Renderer/SVG/TextBuilder.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a,h){var l,p=i.charts,c=i.deg2rad,d=i.doc,u=i.isFirefox,f=i.isMS,g=i.isWebKit,m=i.noop,y=i.SVG_NS,v=i.symbolSizes,x=i.win,b=h.addEvent,S=h.attr,k=h.createElement,M=h.css,C=h.defined,w=h.destroyObjectProperties,P=h.extend,A=h.isArray,L=h.isNumber,T=h.isObject,O=h.isString,E=h.merge,j=h.pick,D=h.pInt,I=h.uniqueKey;return i=function(){function i(t,e,i,o,s,r,n){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,i,o,s,r,n)}return i.prototype.init=function(t,e,i,o,s,r,n){var a,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=h.element;n||h.css(this.getStyle(o)),t.appendChild(l),S(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&S(l,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=l,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=s,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),u&&t.getBoundingClientRect&&((e=function(){M(t,{left:0,top:0}),a=t.getBoundingClientRect(),M(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=b(x,"resize",e))},i.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},i.prototype.getReferenceURL=function(){if((u||g)&&d.getElementsByTagName("base").length){if(!C(l)){var e=I();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(e,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(d.body),M(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=d.elementFromPoint(6,6);l="hitme"===(i&&i.id),d.body.removeChild(e)}if(l)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},i.prototype.getStyle=function(t){return this.style=P({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},i.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},i.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},i.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),w(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},i.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},i.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},i.prototype.buildText=function(t){new a(t).buildSVG()},i.prototype.getContrast=function(t){return 1.05/(.05+(t=.2126*(t=e.parse(t).rgba.map((function(t){return.03928>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)})))[0]+.7152*t[1]+.0722*t[2]))>(t+.05)/.05?"#FFFFFF":"#000000"},i.prototype.button=function(e,i,o,s,r,n,a,h,l,p){void 0===r&&(r={});var c=this.label(e,i,o,l,void 0,void 0,p,void 0,"button"),d=this.styledMode;e=r.states||{};var u=0;delete(r=E(r)).states;var g=E({color:"#333333",cursor:"pointer",fontWeight:"normal"},r.style);delete r.style;var m=t.filterUserAttributes(r);if(c.attr(E({padding:8,r:2},m)),!d){m=E({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},m);var y=(n=E(m,{fill:"#e6e6e6"},t.filterUserAttributes(n||e.hover||{}))).style;delete n.style;var v=(a=E(m,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{}))).style;delete a.style;var x=(h=E(m,{style:{color:"#cccccc"}},t.filterUserAttributes(h||e.disabled||{}))).style;delete h.style}return b(c.element,f?"mouseover":"mouseenter",(function(){3!==u&&c.setState(1)})),b(c.element,f?"mouseout":"mouseleave",(function(){3!==u&&c.setState(u)})),c.setState=function(t){1!==t&&(c.state=u=t),c.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),d||(c.attr([m,n,a,h][t||0]),T(t=[g,y,v,x][t||0])&&c.css(t))},d||(c.attr(m).css(P({cursor:"default"},g)),p&&c.text.css({pointerEvents:"none"})),c.on("touchstart",(function(t){return t.stopPropagation()})).on("click",(function(t){3!==u&&s.call(c,t)}))},i.prototype.crispLine=function(t,e,i){void 0===i&&(i="round");var o=t[0],s=t[1];return C(o[1])&&o[1]===s[1]&&(o[1]=s[1]=Math[i](o[1])-e%2/2),C(o[2])&&o[2]===s[2]&&(o[2]=s[2]=Math[i](o[2])+e%2/2),t},i.prototype.path=function(t){var e=this.styledMode?{}:{fill:"none"};return A(t)?e.d=t:T(t)&&P(e,t),this.createElement("path").attr(e)},i.prototype.circle=function(t,e,i){return t=T(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},i.prototype.arc=function(t,e,i,o,s,r){return T(t)?(e=(o=t).y,i=o.r,t=o.x):o={innerR:o,start:s,end:r},(t=this.symbol("arc",t,e,i,i,o)).r=i,t},i.prototype.rect=function(t,e,i,o,s,r){s=T(t)?t.r:s;var n=this.createElement("rect");return t=T(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(o,0)},this.styledMode||(void 0!==r&&(t["stroke-width"]=r,t=n.crisp(t)),t.fill="none"),s&&(t.r=s),n.rSetter=function(t,e,i){n.r=t,S(i,{rx:t,ry:t})},n.rGetter=function(){return n.r||0},n.attr(t)},i.prototype.setSize=function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:j(i,!0)?void 0:0}),this.alignElements()},i.prototype.g=function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},i.prototype.image=function(t,e,i,o,s,r){var n={preserveAspectRatio:"none"},a=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};L(e)&&(n.x=e),L(i)&&(n.y=i),L(o)&&(n.width=o),L(s)&&(n.height=s);var h=this.createElement("image").attr(n);return e=function(e){a(h.element,t),r.call(h,e)},r?(a(h.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),i=new x.Image,b(i,"load",e),i.src=t,i.complete&&e({})):a(h.element,t),h},i.prototype.symbol=function(t,e,i,o,s,r){var n,a=this,h=/^url\((.*?)\)$/,l=h.test(t),c=!l&&(this.symbols[t]?t:"circle"),u=c&&this.symbols[c];if(u){"number"==typeof e&&(n=u.call(this.symbols,Math.round(e||0),Math.round(i||0),o||0,s||0,r));var f=this.path(n);a.styledMode||f.attr("fill","none"),P(f,{symbolName:c||void 0,x:e,y:i,width:o,height:s}),r&&P(f,r)}else if(l){var g=t.match(h)[1],m=f=this.image(g);m.imgwidth=j(v[g]&&v[g].width,r&&r.width),m.imgheight=j(v[g]&&v[g].height,r&&r.height);var y=function(t){return t.attr({width:t.width,height:t.height})};["width","height"].forEach((function(t){m[t+"Setter"]=function(t,e){this[e]=t,t=this.alignByTranslate;var i=this.element,o=this.width,s=this.height,n=this.imgwidth,a=this.imgheight,h=this["img"+e];if(C(h)){var l=1;r&&"within"===r.backgroundSize&&o&&s?(l=Math.min(o/n,s/a),h=Math.round(h*l),S(i,{width:Math.round(n*l),height:Math.round(a*l)})):i&&i.setAttribute(e,h),t||this.translate(((o||0)-h*l)/2,((s||0)-h*l)/2)}}})),C(e)&&m.attr({x:e,y:i}),m.isImg=!0,C(m.imgwidth)&&C(m.imgheight)?y(m):(m.attr({width:0,height:0}),k("img",{onload:function(){var t=p[a.chartIndex];0===this.width&&(M(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this)),v[g]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&y(m),this.parentNode&&this.parentNode.removeChild(this),a.imgCount--,a.imgCount||!t||t.hasLoaded||t.onload()},src:g}),this.imgCount++)}return f},i.prototype.clipRect=function(t,e,i,o){var s=I()+"-",r=this.createElement("clipPath").attr({id:s}).add(this.defs);return(t=this.rect(t,e,i,o,0).add(r)).id=s,t.clipPath=r,t.count=0,t},i.prototype.text=function(t,e,i,o){var s={};return!o||!this.allowHTML&&this.forExport?(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),C(t)&&(s.text=t),t=this.createElement("text").attr(s),(!o||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,i){for(var o,s=i.getElementsByTagName("tspan"),r=i.getAttribute(e),n=0;n<s.length;n++)(o=s[n]).getAttribute(e)===r&&o.setAttribute(e,t);i.setAttribute(e,t)}),t):this.html(t,e,i)},i.prototype.fontMetrics=function(t,e){return t=!this.styledMode&&/px/.test(t)||!x.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&s.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?D(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},i.prototype.rotCorr=function(t,e,i){var o=t;return e&&i&&(o=Math.max(o*Math.cos(e*c),4)),{x:-t/3*Math.sin(e*c),y:o}},i.prototype.pathToSegments=function(t){for(var e=[],i=[],o={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},s=0;s<t.length;s++)O(i[0])&&L(t[s])&&i.length===o[i[0].toUpperCase()]&&t.splice(s,0,i[0].replace("M","L").replace("m","l")),"string"==typeof t[s]&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[s]);return e.push(i.slice(0)),e},i.prototype.label=function(t,e,i,o,s,n,a,h,l){return new r(this,t,e,i,o,s,n,a,h,l)},i.prototype.alignElements=function(){this.alignedObjects.forEach((function(t){return t.align()}))},i}(),P(i.prototype,{Element:s,SVG_NS:y,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:n,draw:m}),o.registerRendererType("svg",i,!0),i})),e(i,"Core/Renderer/HTML/HTMLElement.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=t.isFirefox,r=t.isMS,n=t.isWebKit,a=t.win,h=i.css,l=i.defined,p=i.extend,c=i.pick,d=i.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var i=e.prototype,o=t.prototype;o.getSpanCorrection=i.getSpanCorrection,o.htmlCss=i.htmlCss,o.htmlGetBBox=i.htmlGetBBox,o.htmlUpdateTransform=i.htmlUpdateTransform,o.setSpanRotation=i.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,i){this.xCorr=-t*i,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=c(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var o=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=p(this.styles,t),h(this.element,t),o&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,o=this.translateY||0,s=this.x||0,r=this.y||0,n=this.textAlign||"left",a={left:0,center:.5,right:1}[n],p=this.styles;if(p=p&&p.whiteSpace,h(e,{marginLeft:i,marginTop:o}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){h(t,{marginLeft:i+1,marginTop:o+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(i){t.invertChild(i,e)})),"SPAN"===e.tagName){var c=this.rotation,u=this.textWidth&&d(this.textWidth),f=[c,n,e.innerHTML,this.textWidth,this.textAlign].join(),g=void 0;if(g=!1,u!==this.oldTextWidth){if(this.textPxLength)var m=this.textPxLength;else h(e,{width:"",whiteSpace:p||"nowrap"}),m=e.offsetWidth;(u>this.oldTextWidth||m>u)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(h(e,{width:m>u||c?u+"px":"auto",display:"block",whiteSpace:p||"normal"}),this.oldTextWidth=u,g=!0)}this.hasBoxWidthChanged=g,f!==this.cTT&&(g=t.fontMetrics(e.style.fontSize,e).b,!l(c)||c===(this.oldRotation||0)&&n===this.oldAlign||this.setSpanRotation(c,a,g),this.getSpanCorrection(!l(c)&&this.textPxLength||e.offsetWidth,g,a,c,n)),h(e,{left:s+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=f,this.oldRotation=c,this.oldAlign=n}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,i){var o={},l=r&&!/Edge/.test(a.navigator.userAgent)?"-ms-transform":n?"-webkit-transform":s?"MozTransform":a.opera?"-o-transform":void 0;l&&(o[l]=o.transform="rotate("+t+"deg)",o[l+(s?"Origin":"-origin")]=o.transformOrigin=100*e+"% "+i+"px",h(this.element,o))},e.composedClasses=[],e}(e)})),e(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=o.attr,n=o.createElement,a=o.extend,h=o.pick;return function(i){function o(){return null!==i&&i.apply(this,arguments)||this}return s(o,i),o.compose=function(t){return-1===o.composedClasses.indexOf(t)&&(o.composedClasses.push(t),t.prototype.html=o.prototype.html),t},o.prototype.html=function(i,o,s){var l=this.createElement("span"),p=l.element,c=l.renderer,d=c.isSVG,u=function(t,i){["opacity","visibility"].forEach((function(o){t[o+"Setter"]=function(s,r,n){var a=t.div?t.div.style:i;e.prototype[o+"Setter"].call(this,s,r,n),a&&(a[r]=s)}})),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,h(e,"")),this.textStr=e,l.doTransform=!0)},d&&u(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(t,e){"align"===e?l.alignValue=l.textAlign=t:l[e]=t,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:i,x:Math.round(o),y:Math.round(s)}).css({position:"absolute"}),c.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),p.style.whiteSpace="nowrap",l.css=l.htmlCss,d&&(l.add=function(t){var e=c.box.parentNode,i=[];if(this.parentGroup=t){var o=t.div;if(!o){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach((function(t){function s(e,i){t[i]=e,"translateX"===i?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var h=r(t.element,"class"),p=t.styles||{},c=(o=t.div=t.div||n("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:p.cursor,pointerEvents:p.pointerEvents,visibility:t.visibility},o||e)).style;a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(o),on:function(){return i[0].div&&l.on.apply({element:i[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:s,translateYSetter:s}),t.addedSetters||u(t)}))}}else o=e;return o.appendChild(p),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l}),l},o.composedClasses=[],o}(i)})),e(i,"Core/Axis/AxisDefaults.js",[],(function(){var t;return function(t){t.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#ccd6eb"},t.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},t.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(t||(t={})),t})),e(i,"Core/Foundation.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.addEvent,o=t.isFunction,s=t.objectEach,r=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},s(e.events,(function(e,s){t.eventOptions[s]!==e&&(t.eventOptions[s]&&(r(t,s,t.eventOptions[s]),delete t.eventOptions[s]),o(e)&&(t.eventOptions[s]=e,i(t,s,e)))}))}}(e||(e={})),e})),e(i,"Core/Axis/Tick.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=e.deg2rad,s=i.clamp,r=i.correctFloat,n=i.defined,a=i.destroyObjectProperties,h=i.extend,l=i.fireEvent,p=i.isNumber,c=i.merge,d=i.objectEach,u=i.pick;return e=function(){function e(t,e,i,o,s){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),i||o||this.addLabel()}return e.prototype.addLabel=function(){var e=this,i=e.axis,o=i.options,s=i.chart,a=i.categories,c=i.logarithmic,d=i.names,f=e.pos,g=u(e.options&&e.options.labels,o.labels),m=i.tickPositions,y=f===m[0],v=f===m[m.length-1],x=(!g.step||1===g.step)&&1===i.tickInterval;m=m.info;var b,S=e.label;if(a=this.parameters.category||(a?u(a[f],d[f],f):f),c&&p(a)&&(a=r(c.lin2log(a))),i.dateTime)if(m)var k=s.time.resolveDTLFormat(o.dateTimeLabelFormats[!o.grid&&m.higherRanks[f]||m.unitName]),M=k.main;else p(a)&&(M=i.dateTime.getXDateFormat(a,o.dateTimeLabelFormats||{}));e.isFirst=y,e.isLast=v;var C={axis:i,chart:s,dateTimeLabelFormat:M,isFirst:y,isLast:v,pos:f,tick:e,tickPositionInfo:m,value:a};l(this,"labelFormat",C);var w=function(e){return g.formatter?g.formatter.call(e,e):g.format?(e.text=i.defaultLabelFormatter.call(e,e),t.format(g.format,e,s)):i.defaultLabelFormatter.call(e,e)};o=w.call(C,C);var P=k&&k.list;e.shortenLabel=P?function(){for(b=0;b<P.length;b++)if(h(C,{dateTimeLabelFormat:P[b]}),S.attr({text:w.call(C,C)}),S.getBBox().width<i.getSlotWidth(e)-2*g.padding)return;S.attr({text:""})}:void 0,x&&i._addedPlotLB&&e.moveLabel(o,g),n(S)||e.movedLabel?S&&S.textStr!==o&&!x&&(!S.textWidth||g.style.width||S.styles.width||S.css({width:null}),S.attr({text:o}),S.textPxLength=S.getBBox().width):(e.label=S=e.createLabel({x:0,y:0},o,g),e.rotation=0)},e.prototype.createLabel=function(t,e,i){var o=this.axis,s=o.chart;return(t=n(e)&&i.enabled?s.renderer.text(e,t.x,t.y,i.useHTML).add(o.labelGroup):null)&&(s.styledMode||t.css(c(i.style)),t.textPxLength=t.getBBox().width),t},e.prototype.destroy=function(){a(this,this.axis)},e.prototype.getPosition=function(t,e,i,o){var n=this.axis,a=n.chart,h=o&&a.oldChartHeight||a.chartHeight;return(t={x:t?r(n.translate(e+i,void 0,void 0,o)+n.transB):n.left+n.offset+(n.opposite?(o&&a.oldChartWidth||a.chartWidth)-n.right-n.left:0),y:t?h-n.bottom+n.offset-(n.opposite?n.height:0):r(h-n.translate(e+i,void 0,void 0,o)-n.transB)}).y=s(t.y,-1e5,1e5),l(this,"afterGetPosition",{pos:t}),t},e.prototype.getLabelPosition=function(t,e,i,s,r,a,h,p){var c=this.axis,d=c.transA,u=c.isLinked&&c.linkedParent?c.linkedParent.reversed:c.reversed,f=c.staggerLines,g=c.tickRotCorr||{x:0,y:0},m=s||c.reserveSpaceDefault?0:-c.labelOffset*("center"===c.labelAlign?.5:1),y={};return i=0===c.side?i.rotation?-8:-i.getBBox().height:2===c.side?g.y+8:Math.cos(i.rotation*o)*(g.y-i.getBBox(!1,0).height/2),n(r.y)&&(i=0===c.side&&c.horiz?r.y+i:r.y),t=t+r.x+m+g.x-(a&&s?a*d*(u?-1:1):0),e=e+i-(a&&!s?a*d*(u?1:-1):0),f&&(s=h/(p||1)%f,c.opposite&&(s=f-s-1),e+=c.labelOffset/f*s),y.x=t,y.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:a,index:h}),y},e.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},e.prototype.getMarkPath=function(t,e,i,o,s,r){return r.crispLine([["M",t,e],["L",t+(s?0:-i),e+(s?i:0)]],o)},e.prototype.handleOverflow=function(t){var e=this.axis,i=e.options.labels,s=t.x,r=e.chart.chartWidth,n=e.chart.spacing,a=u(e.labelLeft,Math.min(e.pos,n[3]));n=u(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,r-n[1]));var h,l=this.label,p=this.rotation,c={left:0,center:.5,right:1}[e.labelAlign||l.attr("align")],d=l.getBBox().width,f=e.getSlotWidth(this),g={},m=f,y=1;p||"justify"!==i.overflow?0>p&&s-c*d<a?h=Math.round(s/Math.cos(p*o)-a):0<p&&s+c*d>n&&(h=Math.round((r-s)/Math.cos(p*o))):(r=s+(1-c)*d,s-c*d<a?m=t.x+m*(1-c)-a:r>n&&(m=n-t.x+m*c,y=-1),(m=Math.min(f,m))<f&&"center"===e.labelAlign&&(t.x+=y*(f-m-c*(f-Math.min(d,m)))),(d>m||e.autoRotation&&(l.styles||{}).width)&&(h=m)),h&&(this.shortenLabel?this.shortenLabel():(g.width=Math.floor(h)+"px",(i.style||{}).textOverflow||(g.textOverflow="ellipsis"),l.css(g)))},e.prototype.moveLabel=function(t,e){var i=this,o=i.label,s=i.axis,r=s.reversed,n=!1;if(o&&o.textStr===t?(i.movedLabel=o,n=!0,delete i.label):d(s.ticks,(function(e){n||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,n=!0,e.labelPos=i.movedLabel.xy,delete e.label)})),!n&&(i.labelPos||o)){var a=i.labelPos||o.xy;o=s.horiz?r?0:s.width+s.left:a.x,s=s.horiz?a.y:r?s.width+s.left:0,i.movedLabel=i.createLabel({x:o,y:s},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,i){var o=this.axis,s=o.horiz,r=this.pos,n=u(this.tickmarkOffset,o.tickmarkOffset);n=(r=this.getPosition(s,r,n,e)).x;var a=r.y;o=s&&n===o.pos+o.len||!s&&a===o.pos?-1:1,s=u(i,this.label&&this.label.newOpacity,1),i=u(i,1),this.isActive=!0,this.renderGridLine(e,i,o),this.renderMark(r,i,o),this.renderLabel(r,e,s,t),this.isNew=!1,l(this,"afterRender")},e.prototype.renderGridLine=function(t,e,i){var o=this.axis,s=o.options,r={},n=this.pos,a=this.type,h=u(this.tickmarkOffset,o.tickmarkOffset),l=o.chart.renderer,p=this.gridLine,c=s.gridLineWidth,d=s.gridLineColor,f=s.gridLineDashStyle;"minor"===this.type&&(c=s.minorGridLineWidth,d=s.minorGridLineColor,f=s.minorGridLineDashStyle),p||(o.chart.styledMode||(r.stroke=d,r["stroke-width"]=c||0,r.dashstyle=f),a||(r.zIndex=1),t&&(e=0),this.gridLine=p=l.path().attr(r).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(o.gridGroup)),p&&(i=o.getPlotLinePath({value:n+h,lineWidth:p.strokeWidth()*i,force:"pass",old:t,acrossPanes:!1}))&&p[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},e.prototype.renderMark=function(t,e,i){var o=this.axis,s=o.options,r=o.chart.renderer,n=this.type,a=o.tickSize(n?n+"Tick":"tick"),h=t.x;t=t.y;var l=u(s["minor"!==n?"tickWidth":"minorTickWidth"],!n&&o.isXAxis?1:0);s=s["minor"!==n?"tickColor":"minorTickColor"];var p=this.mark,c=!p;a&&(o.opposite&&(a[0]=-a[0]),p||(this.mark=p=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(o.axisGroup),o.chart.styledMode||p.attr({stroke:s,"stroke-width":l})),p[c?"attr":"animate"]({d:this.getMarkPath(h,t,a[0],p.strokeWidth()*i,o.horiz,r),opacity:e}))},e.prototype.renderLabel=function(t,e,i,o){var s=this.axis,r=s.horiz,n=s.options,a=this.label,h=n.labels,l=h.step;s=u(this.tickmarkOffset,s.tickmarkOffset);var c=t.x;t=t.y;var d=!0;a&&p(c)&&(a.xy=t=this.getLabelPosition(c,t,a,r,h,s,o,l),this.isFirst&&!this.isLast&&!n.showFirstLabel||this.isLast&&!this.isFirst&&!n.showLastLabel?d=!1:!r||h.step||h.rotation||e||0===i||this.handleOverflow(t),l&&o%l&&(d=!1),d&&p(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;if(t&&!this.isNew){var o=e.horiz?i?e.left:e.width+e.left:t.xy.x;i=e.horiz?t.xy.y:i?e.width+e.top:e.top,t.animate({x:o,y:i,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e})),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/AxisDefaults.js"],i["Core/Color/Color.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a){var h=t.animObject,l=o.defaultOptions,p=s.registerEventOptions,c=r.deg2rad,d=a.arrayMax,u=a.arrayMin,f=a.clamp,g=a.correctFloat,m=a.defined,y=a.destroyObjectProperties,v=a.erase,x=a.error,b=a.extend,S=a.fireEvent,k=a.isArray,M=a.isNumber,C=a.isString,w=a.merge,P=a.normalizeTickInterval,A=a.objectEach,L=a.pick,T=a.relativeLength,O=a.removeEvent,E=a.splat,j=a.syncTimeout,D=function(t,e){return P(e,void 0,void 0,L(t.options.allowDecimals,.5>e||void 0!==t.tickAmount),!!t.tickAmount)};return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var i=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!i:i,this.isXAxis=i,this.coll=this.coll||(i?"xAxis":"yAxis"),S(this,"init",{userOptions:e}),this.opposite=L(e.opposite,this.opposite),this.side=L(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var o=this.options,s=o.labels,r=o.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=L(o.reversed,this.reversed),this.visible=o.visible,this.zoomEnabled=o.zoomEnabled,this.hasNames="category"===r||!0===o.categories,this.categories=o.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=m(o.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=o.minRange||o.maxZoom,this.range=o.range,this.offset=o.offset||0,this.min=this.max=null,e=L(o.crosshair,E(t.options.tooltip.crosshairs)[i?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(i?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&i&&void 0===this.reversed&&(this.reversed=!0),this.labelRotation=M(s.rotation)?s.rotation:void 0,p(this,o),S(this,"afterInit")},t.prototype.setOptions=function(t){this.options=w(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],w(l[this.coll],t)),S(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var i=M(this.value)?this.value:NaN,o=e.chart.time,s=this.dateTimeLabelFormat,r=l.lang,n=r.numericSymbols;r=r.numericSymbolMagnitude||1e3;var a=e.logarithmic?Math.abs(i):e.tickInterval,h=n&&n.length;if(e.categories)var p="".concat(this.value);else if(s)p=o.dateFormat(s,i);else if(h&&1e3<=a)for(;h--&&void 0===p;)a>=(e=Math.pow(r,h+1))&&0==10*i%e&&null!==n[h]&&0!==i&&(p=t(i/e,-1)+n[h]);return void 0===p&&(p=1e4<=Math.abs(i)?t(i,-1):t(i,-1,void 0,"")),p},t.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;S(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach((function(o){if(o.visible||!i.options.chart.ignoreHiddenSeries){var s=o.options,r=s.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((s=o.xData).length){s=e.logarithmic?s.filter(e.validatePositiveValue):s;var n=(t=o.getXExtremes(s)).min,a=t.max;M(n)||n instanceof Date||(s=s.filter(M),n=(t=o.getXExtremes(s)).min,a=t.max),s.length&&(e.dataMin=Math.min(L(e.dataMin,n),n),e.dataMax=Math.max(L(e.dataMax,a),a))}}else o=o.applyExtremes(),M(o.dataMin)&&(n=o.dataMin,e.dataMin=Math.min(L(e.dataMin,n),n)),M(o.dataMax)&&(a=o.dataMax,e.dataMax=Math.max(L(e.dataMax,a),a)),m(r)&&(e.threshold=r),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),S(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,i,o,s,r){var n=this.linkedParent||this,a=o&&n.old?n.old.min:n.min;if(!M(a))return NaN;var h=n.minPixelPadding;s=(n.isOrdinal||n.brokenAxis&&n.brokenAxis.hasBreaks||n.logarithmic&&s)&&n.lin2val;var l=1,p=0;return(o=o&&n.old?n.old.transA:n.transA)||(o=n.transA),i&&(l*=-1,p=n.len),n.reversed&&(p-=(l*=-1)*(n.sector||n.len)),e?(r=(t*l+p-h)/o+a,s&&(r=n.lin2val(r))):(s&&(t=n.val2lin(t)),t=l*(t-a)*o,r=(n.isRadial?t:g(t))+p+l*h+(M(r)?o*r:0)),r},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,i){return"pass"!==x&&(t<e||t>i)&&(x?t=f(t,e,i):n=!0),t}var i,o,s,r,n,a=this,h=a.chart,l=a.left,p=a.top,c=t.old,d=t.value,u=t.lineWidth,g=c&&h.oldChartHeight||h.chartHeight,m=c&&h.oldChartWidth||h.chartWidth,y=a.transB,v=t.translatedValue,x=t.force;return t={value:d,lineWidth:u,old:c,force:x,acrossPanes:t.acrossPanes,translatedValue:v},S(this,"getPlotLinePath",t,(function(t){v=L(v,a.translate(d,void 0,void 0,c)),v=f(v,-1e5,1e5),i=s=Math.round(v+y),o=r=Math.round(g-v-y),M(v)?a.horiz?(o=p,r=g-a.bottom,i=s=e(i,l,l+a.width)):(i=l,s=m-a.right,o=r=e(o,p,p+a.height)):(n=!0,x=!1),t.path=n&&!x?null:h.renderer.crispLine([["M",i,o],["L",s,r]],u||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,i){var o=g(Math.floor(e/t)*t);i=g(Math.ceil(i/t)*t);var s,r=[];if(g(o+t)===o&&(s=20),this.single)return[e];for(e=o;e<=i&&(r.push(e),(e=g(e+t,s))!==n);)var n=e;return r},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?L(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,o=this.pointRangePadding||0,s=this.min-o,r=(o=this.max+o)-s,n=[];if(r&&r/i<this.len/3){var a=this.logarithmic;if(a)this.paddedTicks.forEach((function(t,e,o){e&&n.push.apply(n,a.getLogTickPositions(i,o[e-1],o[e],!0))}));else if(this.dateTime&&"auto"===this.getMinorTickInterval())n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),s,o,t.startOfWeek));else for(t=s+(e[0]-s)%i;t<=o&&t!==n[0];t+=i)n.push(t)}return 0!==n.length&&this.trimTicks(n),n},t.prototype.adjustForMinRange=function(){var t,e,i,o,s=this.options,r=this.logarithmic,n=this.min,a=this.max,h=0;if(this.isXAxis&&void 0===this.minRange&&!r&&(m(s.min)||m(s.max)||m(s.floor)||m(s.ceiling)?this.minRange=null:(this.series.forEach((function(s){if(i=s.xData,o=s.xIncrement?1:i.length-1,1<i.length)for(t=o;0<t;t--)e=i[t]-i[t-1],(!h||e<h)&&(h=e)})),this.minRange=Math.min(5*h,this.dataMax-this.dataMin))),a-n<this.minRange){var l=this.dataMax-this.dataMin>=this.minRange,p=this.minRange,c=(p-a+n)/2;c=[n-c,L(s.min,n-c)],l&&(c[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),a=[(n=d(c))+p,L(s.max,n+p)],l&&(a[2]=r?r.log2lin(this.dataMax):this.dataMax),(a=u(a))-n<p&&(c[0]=a-p,c[1]=L(s.min,a-p),n=d(c))}this.min=n,this.max=a},t.prototype.getClosest=function(){var t;return this.categories?t=1:this.series.forEach((function(e){var i=e.closestPointRange,o=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&m(i)&&o&&(t=m(t)?Math.min(t,i):i)})),t},t.prototype.nameToX=function(t){var e=k(this.options.categories),i=e?this.categories:this.names,o=t.options.x;if(t.series.requireSorting=!1,m(o)||(o=this.options.uniqueNames&&i?e?i.indexOf(t.name):L(i.keys[t.name],-1):t.series.autoIncrement()),-1===o){if(!e&&i)var s=i.length}else s=o;return void 0!==s?(this.names[s]=t.name,this.names.keys[t.name]=s):t.x&&(s=t.x),s},t.prototype.updateNames=function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(i,o){if(i&&i.options&&void 0!==i.name){var s=t.nameToX(i);void 0!==s&&s!==i.x&&(i.x=s,e.xData[o]=s)}}))})))},t.prototype.setAxisTranslation=function(){var t=this,e=t.max-t.min,i=t.linkedParent,o=!!t.categories,s=t.isXAxis,r=t.axisPointRange||0,n=0,a=0,h=t.transA;if(s||o||r){var l=t.getClosest();i?(n=i.minPointOffset,a=i.pointRangePadding):t.series.forEach((function(e){var i=o?1:s?L(e.options.pointRange,l,0):t.axisPointRange||0,h=e.options.pointPlacement;r=Math.max(r,i),t.single&&!o||(e=e.is("xrange")?!s:s,n=Math.max(n,e&&C(h)?0:i/2),a=Math.max(a,e&&"on"===h?0:i))})),i=t.ordinal&&t.ordinal.slope&&l?t.ordinal.slope/l:1,t.minPointOffset=n*=i,t.pointRangePadding=a*=i,t.pointRange=Math.min(r,t.single&&o?1:e),s&&(t.closestPointRange=l)}t.translationSlope=t.transA=h=t.staticScale||t.len/(e+a||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=h*n,S(this,"afterSetAxisTranslation")},t.prototype.minFromRange=function(){return this.max-this.range},t.prototype.setTickInterval=function(t){var e=this.chart,i=this.logarithmic,o=this.options,s=this.isXAxis,r=this.isLinked,n=o.tickPixelInterval,a=this.categories,h=this.softThreshold,l=o.maxPadding,p=o.minPadding,c=M(o.tickInterval)&&0<=o.tickInterval?o.tickInterval:void 0,d=M(this.threshold)?this.threshold:null;this.dateTime||a||r||this.getTickAmount();var u=L(this.userMin,o.min),f=L(this.userMax,o.max);if(r){this.linkedParent=e[this.coll][o.linkedTo];var y=this.linkedParent.getExtremes();this.min=L(y.min,y.dataMin),this.max=L(y.max,y.dataMax),o.type!==this.linkedParent.options.type&&x(11,1,e)}else{if(h&&m(d))if(this.dataMin>=d)y=d,p=0;else if(this.dataMax<=d){var v=d;l=0}this.min=L(u,y,this.dataMin),this.max=L(f,v,this.dataMax)}if(i&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,L(this.dataMin,this.min))&&x(10,1,e),this.min=g(i.log2lin(this.min),16),this.max=g(i.log2lin(this.max),16)),this.range&&m(this.max)&&(this.userMin=this.min=u=Math.max(this.dataMin,this.minFromRange()),this.userMax=f=this.max,this.range=null),S(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(a||this.axisPointRange||this.stacking&&this.stacking.usePercentage||r)&&m(this.min)&&m(this.max)&&(e=this.max-this.min)&&(!m(u)&&p&&(this.min-=e*p),!m(f)&&l&&(this.max+=e*l)),M(this.userMin)||(M(o.softMin)&&o.softMin<this.min&&(this.min=u=o.softMin),M(o.floor)&&(this.min=Math.max(this.min,o.floor))),M(this.userMax)||(M(o.softMax)&&o.softMax>this.max&&(this.max=f=o.softMax),M(o.ceiling)&&(this.max=Math.min(this.max,o.ceiling))),h&&m(this.dataMin)&&(d=d||0,!m(u)&&this.min<d&&this.dataMin>=d?this.min=this.options.minRange?Math.min(d,this.max-this.minRange):d:!m(f)&&this.max>d&&this.dataMax<=d&&(this.max=this.options.minRange?Math.max(d,this.min+this.minRange):d)),M(this.min)&&M(this.max)&&!this.chart.polar&&this.min>this.max&&(m(this.options.min)?this.max=this.min:m(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||void 0===this.min||void 0===this.max?1:r&&this.linkedParent&&!c&&n===this.linkedParent.options.tickPixelInterval?c=this.linkedParent.tickInterval:L(c,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,a?1:(this.max-this.min)*n/Math.max(this.len,n)),s&&!t){var b=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(b)})),S(this,"postProcessData",{hasExtremesChanged:b})}this.setAxisTranslation(),S(this,"initialAxisTranslation"),this.pointRange&&!c&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=L(o.minTickInterval,this.dateTime&&!this.series.some((function(t){return t.noSharedTooltip}))?this.closestPointRange:0),!c&&this.tickInterval<t&&(this.tickInterval=t),this.dateTime||this.logarithmic||c||(this.tickInterval=D(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t,e=this.options,i=e.tickPositions,o=e.tickPositioner,s=this.getMinorTickInterval(),r=this.hasVerticalPanning(),n="colorAxis"===this.coll,a=(n||!r)&&e.startOnTick;if(r=(n||!r)&&e.endOnTick,n=[],this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===s&&this.tickInterval?this.tickInterval/5:s,this.single=this.min===this.max&&m(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),i)n=i.slice();else if(M(this.min)&&M(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(s=e=this.tickInterval;s<=2*e&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=D(this,s*=1.1);else n=[this.min,this.max],x(19,!1,this.chart);n.length>this.len&&(n=[n[0],n[n.length-1]])[0]===n[1]&&(n.length=1),o&&(this.tickPositions=n,(t=o.apply(this,[this.min,this.max]))&&(n=t))}this.tickPositions=n,this.paddedTicks=n.slice(0),this.trimTicks(n,a,r),!this.isLinked&&M(this.min)&&M(this.max)&&(this.single&&2>n.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),i||t||this.adjustTickAmount()),S(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,i){var o=t[0],s=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(S(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==o)this.min=o;else for(;this.min-r>t[0];)t.shift();if(i)this.max=s;else for(;this.max+r<t[t.length-1];)t.pop();0===t.length&&m(o)&&!this.options.tickPositions&&t.push((s+o)/2)}},t.prototype.alignToOthers=function(){var t,e=this,i=[this],o=e.options,s="yAxis"===this.coll&&this.chart.options.chart.alignThresholds,r=[];if(e.thresholdAlignment=void 0,(!1!==this.chart.options.chart.alignTicks&&o.alignTicks||s)&&!1!==o.startOnTick&&!1!==o.endOnTick&&!e.logarithmic){var n=function(t){var e=t.options;return[t.horiz?e.left:e.top,e.width,e.height,e.pane].join()},a=n(this);this.chart[this.coll].forEach((function(o){var s=o.series;s.length&&s.some((function(t){return t.visible}))&&o!==e&&n(o)===a&&(t=!0,i.push(o))}))}if(t&&s){i.forEach((function(t){t=t.getThresholdAlignment(e),M(t)&&r.push(t)}));var h=1<r.length?r.reduce((function(t,e){return t+e}),0)/r.length:void 0;i.forEach((function(t){t.thresholdAlignment=h}))}return t},t.prototype.getThresholdAlignment=function(t){if((!M(this.dataMin)||this!==t&&this.series.some((function(t){return t.isDirty||t.isDirtyData})))&&this.getSeriesExtremes(),M(this.threshold))return t=f((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(t=1-t),t},t.prototype.getTickAmount=function(){var t=this.options,e=t.tickPixelInterval,i=t.tickAmount;!m(t.tickInterval)&&!i&&this.len<e&&!this.isRadial&&!this.logarithmic&&t.startOnTick&&t.endOnTick&&(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),4>i&&(this.finalTickAmt=i,i=5),this.tickAmount=i},t.prototype.adjustTickAmount=function(){var t=this,e=t.finalTickAmt,i=t.max,o=t.min,s=t.options,r=t.tickPositions,n=t.tickAmount,a=t.thresholdAlignment,h=r&&r.length,l=L(t.threshold,t.softThreshold?0:null),p=t.tickInterval;if(M(a)){var c=.5>a?Math.ceil(a*(n-1)):Math.floor(a*(n-1));s.reversed&&(c=n-1-c)}if(t.hasData()&&M(o)&&M(i)){if(a=function(){t.transA*=(h-1)/(n-1),t.min=s.startOnTick?r[0]:Math.min(o,r[0]),t.max=s.endOnTick?r[r.length-1]:Math.max(i,r[r.length-1])},M(c)&&M(t.threshold)){for(;r[c]!==l||r.length!==n||r[0]>o||r[r.length-1]<i;){for(r.length=0,r.push(t.threshold);r.length<n;)void 0===r[c]||r[c]>t.threshold?r.unshift(g(r[0]-p)):r.push(g(r[r.length-1]+p));if(p>8*t.tickInterval)break;p*=2}a()}else if(h<n){for(;r.length<n;)r.length%2||o===l?r.push(g(r[r.length-1]+p)):r.unshift(g(r[0]-p));a()}if(m(e)){for(p=l=r.length;p--;)(3===e&&1==p%2||2>=e&&0<p&&p<l-1)&&r.splice(p,1);t.finalTickAmt=void 0}}},t.prototype.setScale=function(){var t=!1,e=!1;this.series.forEach((function(i){t=t||i.isDirtyData||i.isDirty,e=e||i.xAxis&&i.xAxis.isDirty||!1})),this.setAxisSize();var i=this.len!==(this.old&&this.old.len);i||t||e||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=i||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),t&&this.panningState&&(this.panningState.isDirty=!0),S(this,"afterSetScale")},t.prototype.setExtremes=function(t,e,i,o,s){var r=this,n=r.chart;i=L(i,!0),r.series.forEach((function(t){delete t.kdTree})),s=b(s,{min:t,max:e}),S(r,"setExtremes",s,(function(){r.userMin=t,r.userMax=e,r.eventArgs=s,i&&n.redraw(o)}))},t.prototype.zoom=function(t,e){var i=this,o=this.dataMin,s=this.dataMax,r=this.options,n=Math.min(o,L(r.min,o)),a=Math.max(s,L(r.max,s));return S(this,"zoom",t={newMin:t,newMax:e},(function(t){var e=t.newMin,r=t.newMax;e===i.min&&r===i.max||(i.allowZoomOutside||(m(o)&&(e<n&&(e=n),e>a&&(e=a)),m(s)&&(r<n&&(r=n),r>a&&(r=a))),i.displayBtn=void 0!==e||void 0!==r,i.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],o=this.horiz,s=this.width=Math.round(T(L(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(T(L(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),n=this.top=Math.round(T(L(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(T(L(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-n,this.right=t.chartWidth-s-e,this.len=Math.max(o?s:r,0),this.pos=o?e:n},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},t.prototype.autoLabelAlign=function(t){var e=(L(t,0)-90*this.side+720)%360;return S(this,"autoLabelAlign",t={align:"center"},(function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,i=L(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),o=e["tick"===t?"tickLength":"minorTickLength"];if(i&&o){"inside"===e[t+"Position"]&&(o=-o);var s=[o,i]}return S(this,"afterTickSize",t={tickSize:s}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t=this.options.labels,e=this.horiz,i=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/i),s=t.rotation,r=this.labelMetrics(),n=Math.max(this.max-this.min,0),a=function(t){var e=t/(o||1);return(e=1<e?Math.ceil(e):1)*i>n&&1/0!==t&&1/0!==o&&n&&(e=Math.ceil(n/i)),g(e*i)},h=i,l=Number.MAX_VALUE;if(e){if(!t.staggerLines)if(M(s))var p=[s];else o<t.autoRotationLimit&&(p=t.autoRotation);if(p)for(var d=e=void 0,u=0,f=p;u<f.length;u++){var m=f[u];if((m===s||m&&-90<=m&&90>=m)&&(d=(e=a(Math.abs(r.h/Math.sin(c*m))))+Math.abs(m/360))<l){l=d;var y=m;h=e}}}else h=a(r.h);return this.autoRotation=p,this.labelRotation=L(y,M(s)?s:0),t.step?i:h},t.prototype.getSlotWidth=function(t){var e=this.chart,i=this.horiz,o=this.options.labels,s=Math.max(this.tickPositions.length-(this.categories?0:1),1),r=e.margin[3];if(t&&M(t.slotWidth))return t.slotWidth;if(i&&2>o.step)return o.rotation?0:(this.staggerLines||1)*this.len/s;if(!i){if(void 0!==(t=o.style.width))return parseInt(String(t),10);if(r)return r-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,o=this.ticks,s=this.options.labels,r=s.style,n=this.horiz,a=this.getSlotWidth(),h=Math.max(1,Math.round(a-2*s.padding)),l={},p=this.labelMetrics(),c=r.textOverflow,d=0;if(C(s.rotation)||(l.rotation=s.rotation||0),i.forEach((function(t){(t=o[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>d&&(d=t.label.textPxLength)})),this.maxLabelLength=d,this.autoRotation)d>h&&d>p.h?l.rotation=this.labelRotation:this.labelRotation=0;else if(a){var u=h;if(!c){var f="clip";for(h=i.length;!n&&h--;){var g=i[h];(g=o[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(p.h-p.f)&&(g.specificTextOverflow="ellipsis"))}}}l.rotation&&(u=d>.5*t.chartHeight?.33*t.chartHeight:d,c||(f="ellipsis")),(this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation))&&(l.align=this.labelAlign),i.forEach((function(t){var e=(t=o[t])&&t.label,i=r.width,s={};e&&(e.attr(l),t.shortenLabel?t.shortenLabel():u&&!i&&"nowrap"!==r.whiteSpace&&(u<e.textPxLength||"SPAN"===e.element.tagName)?(s.width=u+"px",c||(s.textOverflow=e.specificTextOverflow||f),e.css(s)):e.styles&&e.styles.width&&!s.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=l.rotation)}),this),this.tickRotCorr=e.rotCorr(p.b,this.labelRotation||0,0!==this.side)},t.prototype.hasData=function(){return this.series.some((function(t){return t.hasData()}))||this.options.showEmpty&&m(this.min)&&m(this.max)},t.prototype.addTitle=function(t){var e,i=this.chart.renderer,o=this.horiz,s=this.opposite,r=this.options.title,n=this.chart.styledMode;this.axisTitle||((e=r.textAlign)||(e=(o?{low:"left",middle:"center",high:"right"}:{low:s?"right":"left",middle:"center",high:s?"left":"right"})[r.align]),this.axisTitle=i.text(r.text||"",0,0,r.useHTML).attr({zIndex:7,rotation:r.rotation,align:e}).addClass("highcharts-axis-title"),n||this.axisTitle.css(w(r.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),n||r.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)},t.prototype.generateTick=function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new n(this,t)},t.prototype.getOffset=function(){var t=this,e=this,i=e.chart,o=e.horiz,s=e.options,r=e.side,n=e.ticks,a=e.tickPositions,h=e.coll,l=e.axisParent,p=i.renderer,c=i.inverted&&!e.isZAxis?[1,0,3,2][r]:r,d=e.hasData(),u=s.title,f=s.labels,g=i.axisOffset;i=i.clipOffset;var y,v=[-1,1,1,-1][r],x=s.className,b=0,k=0,M=0;if(e.showAxis=y=d||s.showEmpty,e.staggerLines=e.horiz&&f.staggerLines||void 0,!e.axisGroup){var C=function(e,i,o){return p.g(e).attr({zIndex:o}).addClass("highcharts-".concat(h.toLowerCase()).concat(i," ")+(t.isRadial?"highcharts-radial-axis".concat(i," "):"")+(x||"")).add(l)};e.gridGroup=C("grid","-grid",s.gridZIndex),e.axisGroup=C("axis","",s.zIndex),e.labelGroup=C("axis-labels","-labels",f.zIndex)}if(d||e.isLinked?(a.forEach((function(t){e.generateTick(t)})),e.renderUnsquish(),e.reserveSpaceDefault=0===r||2===r||{1:"left",3:"right"}[r]===e.labelAlign,L(f.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&a.forEach((function(t){M=Math.max(n[t].getLabelSize(),M)})),e.staggerLines&&(M*=e.staggerLines),e.labelOffset=M*(e.opposite?-1:1)):A(n,(function(t,e){t.destroy(),delete n[e]})),u&&u.text&&!1!==u.enabled&&(e.addTitle(y),y&&!1!==u.reserveSpace)){e.titleOffset=b=e.axisTitle.getBBox()[o?"height":"width"];var w=u.offset;k=m(w)?0:L(u.margin,o?5:10)}e.renderLine(),e.offset=v*L(s.offset,g[r]?g[r]+(s.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},u=0===r?-e.labelMetrics().h:2===r?e.tickRotCorr.y:0,d=Math.abs(M)+k,M&&(d=d-u+v*(o?L(f.y,e.tickRotCorr.y+8*v):f.x)),e.axisTitleMargin=L(w,d),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(n,a)),"colorAxis"!==h&&(o=this.tickSize("tick"),g[r]=Math.max(g[r],(e.axisTitleMargin||0)+b+v*e.offset,d,a&&a.length&&o?o[0]+v*e.offset:0),s=!e.axisLine||s.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[c]=Math.max(i[c],s)),S(this,"afterGetOffset")},t.prototype.getLinePath=function(t){var e=this.chart,i=this.opposite,o=this.offset,s=this.horiz,r=this.left+(i?this.width:0)+o;return o=e.chartHeight-this.bottom-(i?this.height:0)+o,i&&(t*=-1),e.renderer.crispLine([["M",s?this.left:r,s?o:this.top],["L",s?e.chartWidth-this.right:r,s?o:e.chartHeight-this.bottom]],t)},t.prototype.renderLine=function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},t.prototype.getTitlePosition=function(){var t=this.horiz,e=this.left,i=this.top,o=this.len,s=this.options.title,r=t?e:i,n=this.opposite,a=this.offset,h=s.x,l=s.y,p=this.axisTitle,c=this.chart.renderer.fontMetrics(s.style.fontSize,p);return p=p?Math.max(p.getBBox(!1,0).height-c.h-1,0):0,o={low:r+(t?0:o),middle:r+o/2,high:r+(t?o:0)}[s.align],e=(t?i+this.height:e)+(t?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+[-p,p,c.f,-p][this.side],t={x:t?o+h:e+(n?this.width:0)+a+h,y:t?e+l-(n?this.height:0)+a:o+l},S(this,"afterGetTitlePosition",{titlePosition:t}),t},t.prototype.renderMinorTick=function(t,e){var i=this.minorTicks;i[t]||(i[t]=new n(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},t.prototype.renderTick=function(t,e,i){var o=this.ticks;(!this.isLinked||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(o[t]||(o[t]=new n(this,t)),i&&o[t].isNew&&o[t].render(e,!0,-1),o[t].render(e))},t.prototype.render=function(){var t,e,i=this,o=i.chart,s=i.logarithmic,a=i.options,l=i.isLinked,p=i.tickPositions,c=i.axisTitle,d=i.ticks,u=i.minorTicks,f=i.alternateBands,g=a.stackLabels,m=a.alternateGridColor,y=i.tickmarkOffset,v=i.axisLine,x=i.showAxis,b=h(o.renderer.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,u,f].forEach((function(t){A(t,(function(t){t.isActive=!1}))})),i.hasData()||l){var k=i.chart.hasRendered&&i.old&&M(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach((function(t){i.renderMinorTick(t,k)})),p.length&&(p.forEach((function(t,e){i.renderTick(t,e,k)})),y&&(0===i.min||i.single)&&(d[-1]||(d[-1]=new n(i,-1,null,!0)),d[-1].render(-1))),m&&p.forEach((function(n,a){e=void 0!==p[a+1]?p[a+1]+y:i.max-y,0==a%2&&n<i.max&&e<=i.max+(o.polar?-y:y)&&(f[n]||(f[n]=new r.PlotLineOrBand(i)),t=n+y,f[n].options={from:s?s.lin2log(t):t,to:s?s.lin2log(e):e,color:m,className:"highcharts-alternate-grid"},f[n].render(),f[n].isActive=!0)})),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach((function(t){i.addPlotBandOrLine(t)})))}[d,u,f].forEach((function(t){var e=[],i=b.duration;A(t,(function(t,i){t.isActive||(t.render(i,!1,0),t.isActive=!1,e.push(i))})),j((function(){for(var i=e.length;i--;)t[e[i]]&&!t[e[i]].isActive&&(t[e[i]].destroy(),delete t[e[i]])}),t!==f&&o.hasRendered&&i?i:0)})),v&&(v[v.isPlaced?"animate":"attr"]({d:this.getLinePath(v.strokeWidth())}),v.isPlaced=!0,v[x?"show":"hide"](x)),c&&x&&(a=i.getTitlePosition(),c[c.isNew?"attr":"animate"](a),c.isNew=!1),g&&g.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,S(this,"afterRender")},t.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach((function(t){t.render()}))),this.series.forEach((function(t){t.isDirty=!0}))},t.prototype.getKeepProps=function(){return this.keepProps||t.keepProps},t.prototype.destroy=function(t){var e=this,i=e.plotLinesAndBands,o=this.eventOptions;if(S(this,"destroy",{keepEvents:t}),t||O(e),[e.ticks,e.minorTicks,e.alternateBands].forEach((function(t){y(t)})),i)for(t=i.length;t--;)i[t].destroy();for(var s in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach((function(t){e[t]&&(e[t]=e[t].destroy())})),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[s]=e.plotLinesAndBandsGroups[s].destroy();A(e,(function(t,i){-1===e.getKeepProps().indexOf(i)&&delete e[i]})),this.eventOptions=o},t.prototype.drawCrosshair=function(t,e){var o,s=this.crosshair,r=L(s&&s.snap,!0),n=this.chart,a=this.cross;if(S(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),s&&!1!==(m(e)||!r)){if(r?m(e)&&(o=L("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):o=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),m(o)){var h={value:e&&(this.isXAxis?e.x:L(e.stackY,e.y)),translatedValue:o};n.polar&&b(h,{isCrosshair:!0,chartX:t&&t.chartX,chartY:t&&t.chartY,point:e}),h=this.getPlotLinePath(h)||null}if(!m(h))return void this.hideCrosshair();r=this.categories&&!this.isRadial,a||(this.cross=a=n.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(r?"category ":"thin ")+(s.className||"")).attr({zIndex:L(s.zIndex,2)}).add(),n.styledMode||(a.attr({stroke:s.color||(r?i.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":L(s.width,1)}).css({"pointer-events":"none"}),s.dashStyle&&a.attr({dashstyle:s.dashStyle}))),a.show().attr({d:h}),r&&!s.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();S(this,"afterDrawCrosshair",{e:t,point:e})},t.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),S(this,"afterHideCrosshair")},t.prototype.hasVerticalPanning=function(){var t=this.chart.options.chart.panning;return!!(t&&t.enabled&&/y/.test(t.type))},t.prototype.validatePositiveValue=function(t){return M(t)&&0<t},t.prototype.update=function(t,e){var i=this.chart;t=w(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,L(e,!0)&&i.redraw()},t.prototype.remove=function(t){for(var e=this.chart,i=this.coll,o=this.series,s=o.length;s--;)o[s]&&o[s].remove(!1);v(e.axes,this),v(e[i],this),e[i].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,L(t,!0)&&e.redraw()},t.prototype.setTitle=function(t,e){this.update({title:t},e)},t.prototype.setCategories=function(t,e){this.update({categories:t},e)},t.defaultOptions=e.defaultXAxisOptions,t.keepProps="extKey hcEvents names series userMax userMin".split(" "),t}(),t})),e(i,"Core/Axis/DateTimeAxis.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.addEvent,o=t.getMagnitude,s=t.normalizeTickInterval,r=t.timeUnits;return function(t){function e(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function n(t){"datetime"!==t.userOptions.type?this.dateTime=void 0:this.dateTime||(this.dateTime=new h(this))}var a=[];t.compose=function(t){return-1===a.indexOf(t)&&(a.push(t),t.keepProps.push("dateTime"),t.prototype.getTimeTicks=e,i(t,"init",n)),t};var h=function(){function t(t){this.axis=t}return t.prototype.normalizeTimeTickInterval=function(t,e){var i=e||[["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]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=i[i.length-1];var n,a=r[e[0]],h=e[1];for(n=0;n<i.length&&(e=i[n],a=r[e[0]],h=e[1],!(i[n+1]&&t<=(a*h[h.length-1]+r[i[n+1][0]])/2));n++);return a===r.year&&t<5*a&&(h=[1,2,5]),{unitRange:a,count:t=s(t/a,h,"year"===e[0]?Math.max(o(t/a),1):1),unitName:e[0]}},t.prototype.getXDateFormat=function(t,e){var i=this.axis,o=i.chart.time;return i.closestPointRange?o.getDateFormat(i.closestPointRange,t,i.options.startOfWeek,e)||o.resolveDTLFormat(e.year).main:o.resolveDTLFormat(e.day).main},t}();t.Additions=h}(e||(e={})),e})),e(i,"Core/Axis/LogarithmicAxis.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.addEvent,o=t.normalizeTickInterval,s=t.pick;return function(t){function e(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:e||(this.logarithmic=new a(this))}function r(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}var n=[];t.compose=function(t){return-1===n.indexOf(t)&&(n.push(t),t.keepProps.push("logarithmic"),i(t,"init",e),i(t,"afterInit",r)),t};var a=function(){function t(t){this.axis=t}return t.prototype.getLogTickPositions=function(t,e,i,r){var n=this.axis,a=n.len,h=n.options,l=[];if(r||(this.minorAutoInterval=void 0),.5<=t)t=Math.round(t),l=n.getLinearTickPositions(t,e,i);else if(.08<=t){var p,c=Math.floor(e),d=h=void 0;for(a=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];c<i+1&&!d;c++){var u=a.length;for(p=0;p<u&&!d;p++){var f=this.log2lin(this.lin2log(c)*a[p]);f>e&&(!r||h<=i)&&void 0!==h&&l.push(h),h>i&&(d=!0),h=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=r?n.getMinorTickInterval():h.tickInterval,t=s("auto"===t?null:t,this.minorAutoInterval,h.tickPixelInterval/(r?5:1)*(i-e)/((r?a/n.tickPositions.length:a)||1)),t=o(t),l=n.getLinearTickPositions(t,e,i).map(this.log2lin),r||(this.minorAutoInterval=t/5);return r||(n.tickInterval=t),l},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=a}(e||(e={})),e})),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.erase,o=t.extend,s=t.isNumber;return function(t){var e,r=[];t.compose=function(t,i){return e||(e=t),-1===r.indexOf(i)&&(r.push(i),o(i.prototype,n.prototype)),i};var n=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,i){void 0===i&&(i=this.options);var o=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),r=[],n=this.horiz;if(e=!s(this.min)||!s(this.max)||t<this.min&&e<this.min||t>this.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),i=1,t&&o){if(e){var a=t.toString()===o.toString();i=0}for(e=0;e<t.length;e+=2){var h=t[e],l=t[e+1],p=o[e],c=o[e+1];"M"!==h[0]&&"L"!==h[0]||"M"!==l[0]&&"L"!==l[0]||"M"!==p[0]&&"L"!==p[0]||"M"!==c[0]&&"L"!==c[0]||(n&&p[1]===h[1]?(p[1]+=i,c[1]+=i):n||p[2]!==h[2]||(p[2]+=i,c[2]+=i),r.push(["M",h[1],h[2]],["L",l[1],l[2]],["L",c[1],c[2]],["L",p[1],p[2]],["Z"])),r.isFlat=a}}return r},t.prototype.addPlotBand=function(t){return this.addPlotBandOrLine(t,"plotBands")},t.prototype.addPlotLine=function(t){return this.addPlotBandOrLine(t,"plotLines")},t.prototype.addPlotBandOrLine=function(t,i){var o=this,s=this.userOptions,r=new e(this,t);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach((function(t){o.addPlotBandOrLine(t)}))),i){var n=s[i]||[];n.push(t),s[i]=n}this.plotLinesAndBands.push(r)}return r},t.prototype.removePlotBandOrLine=function(t){var e=this.plotLinesAndBands,o=this.options,s=this.userOptions;if(e){for(var r=e.length;r--;)e[r].id===t&&e[r].destroy();[o.plotLines||[],s.plotLines||[],o.plotBands||[],s.plotBands||[]].forEach((function(e){for(r=e.length;r--;)(e[r]||{}).id===t&&i(e,e[r])}))}},t.prototype.removePlotBand=function(t){this.removePlotBandOrLine(t)},t.prototype.removePlotLine=function(t){this.removePlotBandOrLine(t)},t}()}(e||(e={})),e})),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[i["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.arrayMax,o=e.arrayMin,s=e.defined,r=e.destroyObjectProperties,n=e.erase,a=e.fireEvent,h=e.merge,l=e.objectEach,p=e.pick;return e=function(){function e(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return e.compose=function(i){return t.compose(e,i)},e.prototype.render=function(){a(this,"render");var t=this,e=t.axis,i=e.horiz,o=e.logarithmic,r=t.options,n=r.color,c=p(r.zIndex,0),d=r.events,u={},f=e.chart.renderer,g=r.label,m=t.label,y=r.to,v=r.from,x=r.value,b=t.svgElem,S=[],k=s(v)&&s(y);S=s(x);var M=!b,C={class:"highcharts-plot-"+(k?"band ":"line ")+(r.className||"")},w=k?"bands":"lines";if(o&&(v=o.log2lin(v),y=o.log2lin(y),x=o.log2lin(x)),e.chart.styledMode||(S?(C.stroke=n||"#999999",C["stroke-width"]=p(r.width,1),r.dashStyle&&(C.dashstyle=r.dashStyle)):k&&(C.fill=n||"#e6ebf5",r.borderWidth&&(C.stroke=r.borderColor,C["stroke-width"]=r.borderWidth))),u.zIndex=c,w+="-"+c,(o=e.plotLinesAndBandsGroups[w])||(e.plotLinesAndBandsGroups[w]=o=f.g("plot-"+w).attr(u).add()),M&&(t.svgElem=b=f.path().attr(C).add(o)),S)S=e.getPlotLinePath({value:x,lineWidth:b.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!k)return;S=e.getPlotBandPath(v,y,r)}return!t.eventsAdded&&d&&(l(d,(function(e,i){b.on(i,(function(e){d[i].apply(t,[e])}))})),t.eventsAdded=!0),(M||!b.d)&&S&&S.length?b.attr({d:S}):b&&(S?(b.show(),b.animate({d:S})):b.d&&(b.hide(),m&&(t.label=m=m.destroy()))),g&&(s(g.text)||s(g.formatter))&&S&&S.length&&0<e.width&&0<e.height&&!S.isFlat?(g=h({align:i&&k&&"center",x:i?!k&&4:10,verticalAlign:!i&&k&&"middle",y:i?k?16:10:k?6:-4,rotation:i&&!k&&90},g),this.renderLabel(g,S,k,c)):m&&m.hide(),t},e.prototype.renderLabel=function(t,e,s,r){var n=this.axis,a=n.chart.renderer,l=this.label;l||(this.label=l=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(s?"band":"line")+"-label "+(t.className||""),zIndex:r}).add(),n.chart.styledMode||l.css(h({textOverflow:"ellipsis"},t.style))),r=e.xBounds||[e[0][1],e[1][1],s?e[2][1]:e[0][1]],e=e.yBounds||[e[0][2],e[1][2],s?e[2][2]:e[0][2]],s=o(r),a=o(e),l.align(t,!1,{x:s,y:a,width:i(r)-s,height:i(e)-a}),l.alignValue&&"left"!==l.alignValue||(t=t.clip?n.width:n.chart.chartWidth,l.css({width:(90===l.rotation?n.height-(l.alignAttr.y-n.top):t-(l.alignAttr.x-n.left))+"px"})),l.show(!0)},e.prototype.getLabelText=function(t){return s(t.formatter)?t.formatter.call(this):t.text},e.prototype.destroy=function(){n(this.axis.plotLinesAndBands,this),delete this.axis,r(this)},e}(),e})),e(i,"Core/Tooltip.js",[i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s){var r=t.format,n=e.doc,a=i.distribute,h=s.clamp,l=s.css,p=s.discardElement,c=s.extend,d=s.fireEvent,u=s.isArray,f=s.isNumber,g=s.isString,m=s.merge,y=s.pick,v=s.splat,x=s.syncTimeout;return t=function(){function t(t,e){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}return t.prototype.applyFilter=function(){var t=this.chart;t.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+t.index,opacity:.5},children:[{tagName:"feGaussianBlur",attributes:{in:"SourceAlpha",stdDeviation:1}},{tagName:"feOffset",attributes:{dx:1,dy:1}},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",attributes:{type:"linear",slope:.3}}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",attributes:{in:"SourceGraphic"}}]}]})},t.prototype.bodyFormatter=function(t){return t.map((function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))},t.prototype.cleanSplit=function(t){this.chart.series.forEach((function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)}))},t.prototype.defaultFormatter=function(t){var e=this.points||v(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},t.prototype.destroy=function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),p(this.container)),s.clearTimeout(this.hideTimer),s.clearTimeout(this.tooltipTimeout)},t.prototype.getAnchor=function(t,e){var i=this.chart,o=i.pointer,s=i.inverted,r=i.plotTop;if(i=i.plotLeft,(t=v(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=o.normalize(e)),t=[e.chartX-i,e.chartY-r];else if(t[0].tooltipPos)t=t[0].tooltipPos;else{var n=0,a=0;t.forEach((function(t){(t=t.pos(!0))&&(n+=t[0],a+=t[1])})),n/=t.length,a/=t.length,this.shared&&1<t.length&&e&&(s?n=e.chartX:a=e.chartY),t=[n-i,a-r]}return t.map(Math.round)},t.prototype.getClassName=function(t,e,i){var o=t.series,s=o.options;return[this.options.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+y(t.colorIndex,o.colorIndex),s&&s.className].filter(g).join(" ")},t.prototype.getLabel=function(){var t,i=this,s=this.chart.styledMode,r=this.options,n=this.split&&this.allowShared,a=r.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),h=this.chart.renderer;if(i.label){var p=!i.label.hasClass("highcharts-label");(n&&!p||!n&&p)&&i.destroy()}if(!this.label){if(this.outside){p=this.chart.options.chart.style;var c=o.getRendererType();this.container=t=e.doc.createElement("div"),t.className="highcharts-tooltip-container",l(t,{position:"absolute",top:"1px",pointerEvents:a,zIndex:Math.max(this.options.style.zIndex||0,(p&&p.zIndex||0)+3)}),e.doc.body.appendChild(t),this.renderer=h=new c(t,0,0,p,void 0,void 0,h.styledMode)}if(n?this.label=h.g("tooltip"):(this.label=h.label("",0,0,r.shape,void 0,void 0,r.useHTML,void 0,"tooltip").attr({padding:r.padding,r:r.borderRadius}),s||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth}).css(r.style).css({pointerEvents:a}).shadow(r.shadow)),s&&r.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),i.outside&&!i.split){var d=this.label,u=d.xSetter,f=d.ySetter;d.xSetter=function(e){u.call(d,i.distance),t.style.left=e+"px"},d.ySetter=function(e){f.call(d,i.distance),t.style.top=e+"px"}}this.label.attr({zIndex:8}).add()}return this.label},t.prototype.getPosition=function(t,e,i){var o,s=this.chart,r=this.distance,a={},h=s.inverted&&i.h||0,l=this.outside,p=l?n.documentElement.clientWidth-2*r:s.chartWidth,c=l?Math.max(n.body.scrollHeight,n.documentElement.scrollHeight,n.body.offsetHeight,n.documentElement.offsetHeight,n.documentElement.clientHeight):s.chartHeight,d=s.pointer.getChartPosition(),u=function(o){var n="x"===o;return[o,n?p:c,n?t:e].concat(l?[n?t*d.scaleX:e*d.scaleY,n?d.left-r+(i.plotX+s.plotLeft)*d.scaleX:d.top-r+(i.plotY+s.plotTop)*d.scaleY,0,n?p:c]:[n?t:e,n?i.plotX+s.plotLeft:i.plotY+s.plotTop,n?s.plotLeft:s.plotTop,n?s.plotLeft+s.plotWidth:s.plotTop+s.plotHeight])},f=u("y"),g=u("x");u=!!i.negative,!s.polar&&s.hoverSeries&&s.hoverSeries.yAxis&&s.hoverSeries.yAxis.reversed&&(u=!u);var m=!this.followPointer&&y(i.ttBelow,!s.inverted===u),v=function(t,e,i,o,s,n,p){var c=l?"y"===t?r*d.scaleY:r*d.scaleX:r,u=(i-o)/2,f=o<s-r,g=s+r+o<e,y=s-c-i+u;if(s=s+c-u,m&&g)a[t]=s;else if(!m&&f)a[t]=y;else if(f)a[t]=Math.min(p-o,0>y-h?y:y-h);else{if(!g)return!1;a[t]=Math.max(n,s+h+i>e?s:s+h)}},x=function(t,e,i,o,s){var n;return s<r||s>e-r?n=!1:a[t]=s<i/2?1:s>e-o/2?e-o-2:s-i/2,n},b=function(t){var e=f;f=g,g=e,o=t},S=function(){!1!==v.apply(0,f)?!1!==x.apply(0,g)||o||(b(!0),S()):o?a.x=a.y=0:(b(!0),S())};return(s.inverted||1<this.len)&&b(),S(),a},t.prototype.hide=function(t){var e=this;s.clearTimeout(this.hideTimer),t=y(t,this.options.hideDelay),this.isHidden||(this.hideTimer=x((function(){e.getLabel().fadeOut(t?void 0:t),e.isHidden=!0}),t))},t.prototype.init=function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=y(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},t.prototype.shouldStickOnContact=function(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.chart.pointer.inClass(t.target,"highcharts-tooltip"))},t.prototype.move=function(t,e,i,o){var r=this,n=r.now,a=!1!==r.options.animation&&!r.isHidden&&(1<Math.abs(t-n.x)||1<Math.abs(e-n.y)),h=r.followPointer||1<r.len;c(n,{x:a?(2*n.x+t)/3:t,y:a?(n.y+e)/2:e,anchorX:h?void 0:a?(2*n.anchorX+i)/3:i,anchorY:h?void 0:a?(n.anchorY+o)/2:o}),r.getLabel().attr(n),r.drawTracker(),a&&(s.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){r&&r.move(t,e,i,o)}),32))},t.prototype.refresh=function(t,e){var i=this.chart,o=this.options,r=i.pointer,n=v(t),a=n[0],h=[],l=o.formatter||this.defaultFormatter,p=this.shared,c=i.styledMode,f={};if(o.enabled&&a.series){s.clearTimeout(this.hideTimer),this.allowShared=!(!u(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&a.series.tooltipOptions.followPointer;var g=(t=this.getAnchor(t,e))[0],m=t[1];if(p&&this.allowShared?(r.applyInactiveState(n),n.forEach((function(t){t.setState("hover"),h.push(t.getLabelConfig())})),(f={x:a.category,y:a.y}).points=h):f=a.getLabelConfig(),this.len=h.length,l=l.call(f,this),p=a.series,this.distance=y(p.tooltipOptions.distance,16),!1===l)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(l,n);else{var x=g,b=m;if(e&&r.isDirectTouch&&(x=e.chartX-i.plotLeft,b=e.chartY-i.plotTop),!i.polar&&!1!==p.options.clip&&!n.some((function(t){return r.isDirectTouch||t.series.shouldShowTooltip(x,b)})))return void this.hide();e=this.getLabel(),o.style.width&&!c||e.css({width:i.spacingBox.width+"px"}),e.attr({text:l&&l.join?l.join(""):l}),e.addClass(this.getClassName(a),!0),c||e.attr({stroke:o.borderColor||a.color||p.color||"#666666"}),this.updatePosition({plotX:g,plotY:m,negative:a.negative,ttBelow:a.ttBelow,h:t[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}d(this,"refresh")}},t.prototype.renderSplit=function(t,e){function i(t,e,i,s,r){return void 0===r&&(r=!0),i?(e=T?0:D,t=h(t-s/2,P.left,P.right-s-(o.outside?O:0))):(e-=E,t=h(t=r?t-s-M:t+M,r?t:P.left,P.right)),{x:t,y:e}}var o=this,s=o.chart,r=o.chart,l=r.chartWidth,p=r.chartHeight,d=r.plotHeight,u=r.plotLeft,f=r.plotTop,m=r.pointer,v=r.scrollablePixelsY;v=void 0===v?0:v;var x=r.scrollablePixelsX,b=r.scrollingContainer,S=(b=void 0===b?{scrollLeft:0,scrollTop:0}:b).scrollLeft;b=b.scrollTop;var k=r.styledMode,M=o.distance,C=o.options,w=o.options.positioner,P=o.outside&&"number"!=typeof x?n.documentElement.getBoundingClientRect():{left:S,right:S+l,top:b,bottom:b+p},A=o.getLabel(),L=this.renderer||s.renderer,T=!(!s.xAxis[0]||!s.xAxis[0].opposite),O=(s=m.getChartPosition()).left;s=s.top;var E=f+b,j=0,D=d-v;g(t)&&(t=[!1,t]),t=t.slice(0,e.length+1).reduce((function(t,s,r){if(!1!==s&&""!==s){var n=(r=e[r-1]||{isHeader:!0,plotX:e[0].plotX,plotY:d,series:{}}).isHeader,a=n?o:r.series;s=s.toString();var l=a.tt,p=r.isHeader,c=r.series;l||(l={padding:C.padding,r:C.borderRadius},k||(l.fill=C.backgroundColor,l["stroke-width"]=C.borderWidth),l=L.label("",0,0,C[p?"headerShape":"shape"],void 0,void 0,C.useHTML).addClass(o.getClassName(r,!0,p)).attr(l).add(A)),l.isActive=!0,l.attr({text:s}),k||l.css(C.style).shadow(C.shadow).attr({stroke:C.borderColor||r.color||c.color||"#333333"}),s=(p=(a=a.tt=l).getBBox()).width+a.strokeWidth(),n&&(j=p.height,D+=j,T&&(E-=j)),c=void 0===(c=r.plotX)?0:c,l=void 0===(l=r.plotY)?0:l;var g=r.series;if(r.isHeader){c=u+c;var m=f+d/2}else{var v=g.xAxis,x=g.yAxis;c=v.pos+h(c,-M,v.len+M),g.shouldShowTooltip(0,x.pos-f+l,{ignoreX:!0})&&(m=x.pos+l)}c=h(c,P.left-M,P.right+M),"number"==typeof m?(p=p.height+1,l=w?w.call(o,s,p,r):i(c,m,n,s),t.push({align:w?0:void 0,anchorX:c,anchorY:m,boxWidth:s,point:r,rank:y(l.rank,n?1:0),size:p,target:l.y,tt:a,x:l.x})):a.isActive=!1}return t}),[]),!w&&t.some((function(t){var e=(o.outside?O:0)+t.anchorX;return e<P.left&&e+t.boxWidth<P.right||e<O-P.left+t.boxWidth&&P.right-e>e}))&&(t=t.map((function(t){var e=i(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return c(t,{target:e.y,x:e.x})}))),o.cleanSplit(),a(t,D);var I=O,N=O;t.forEach((function(t){var e=t.x,i=t.boxWidth;(t=t.isHeader)||(o.outside&&O+e<I&&(I=O+e),!t&&o.outside&&I+i>N&&(N=O+e))})),t.forEach((function(t){var e=t.x,i=t.anchorX,s=t.pos,r=t.point.isHeader;if(s={visibility:void 0===s?"hidden":"inherit",x:e,y:(s||0)+E,anchorX:i,anchorY:t.anchorY},o.outside&&e<i){var n=O-I;0<n&&(r||(s.x=e+n,s.anchorX=i+n),r&&(s.x=(N-I)/2,s.anchorX=i+n))}t.tt.attr(s)})),t=o.container,v=o.renderer,o.outside&&t&&v&&(r=A.getBBox(),v.setSize(r.width+r.x,r.height+r.y,!1),t.style.left=I+"px",t.style.top=s+"px")},t.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(e&&i){var o={x:0,y:0,width:0,height:0};i=this.getAnchor(i);var s=e.getBBox();i[0]+=t.plotLeft-e.translateX,i[1]+=t.plotTop-e.translateY,o.x=Math.min(0,i[0]),o.y=Math.min(0,i[1]),o.width=0>i[0]?Math.max(Math.abs(i[0]),s.width-i[0]):Math.max(Math.abs(i[0]),s.width),o.height=0>i[1]?Math.max(Math.abs(i[1]),s.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),s.height),this.tracker?this.tracker.attr(o):(this.tracker=e.renderer.rect(o).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=t.series,o=i.tooltipOptions,s=i.xAxis,n=s&&s.dateTime;s={isFooter:e,labelConfig:t};var a=o.xDateFormat,h=o[e?"footerFormat":"headerFormat"];return d(this,"headerFormatter",s,(function(e){n&&!a&&f(t.key)&&(a=n.getXDateFormat(t.key,o.dateTimeLabelFormats)),n&&a&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){h=h.replace("{point."+t+"}","{point."+t+":"+a+"}")})),i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=r(h,{point:t,series:i},this.chart)})),s.text},t.prototype.update=function(t){this.destroy(),m(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,m(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,i=this.distance,o=this.options,s=e.pointer,r=this.getLabel(),n=s.getChartPosition();s=n.left;var a=n.top,h=n.scaleX;n=n.scaleY;var p=(o.positioner||this.getPosition).call(this,r.width,r.height,t),c=(t.plotX||0)+e.plotLeft;t=(t.plotY||0)+e.plotTop,this.outside&&(o.positioner&&(p.x+=s-i,p.y+=a-i),i=o.borderWidth+2*i,this.renderer.setSize(r.width+i,r.height+i,!1),1===h&&1===n||(l(this.container,{transform:"scale(".concat(h,", ").concat(n,")")}),c*=h,t*=n),c+=s-p.x,t+=a-p.y),this.move(Math.round(p.x),Math.round(p.y||0),c,t)},t}(),t})),e(i,"Core/Series/Point.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s){var r=e.animObject,n=i.defaultOptions,a=o.format,h=s.addEvent,l=s.defined,p=s.erase,c=s.extend,d=s.fireEvent,u=s.getNestedProperty,f=s.isArray,g=s.isFunction,m=s.isNumber,y=s.isObject,v=s.merge,x=s.objectEach,b=s.pick,S=s.syncTimeout,k=s.removeEvent,M=s.uniqueKey;return e=function(){function e(){this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach((function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)})),i.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(c({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,i){var o=this.series,s=o.options.pointValKey||o.pointValKey;return t=e.prototype.optionsToObject.call(this,t),c(this,t),this.options=this.options?c(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=e.prototype.getNestedProperty.call(this,s)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===i&&o.xAxis&&o.xAxis.hasNames&&(this.x=o.xAxis.nameToX(this)),void 0===this.x&&o?this.x=void 0===i?o.autoIncrement():i:m(t.x)&&o.options.relativeXValue&&(this.x=o.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(s in(e.graphic||e.graphics||e.dataLabel||e.dataLabels)&&(k(e),e.destroyElements()),e)e[s]=null}var e=this,i=e.series,o=i.chart;i=i.options.dataSorting;var s,n=o.hoverPoints,a=r(e.series.chart.renderer.globalAnimation);e.legendItem&&o.legend.destroyItem(e),n&&(e.setState(),p(n,e),n.length||(o.hoverPoints=null)),e===o.hoverPoint&&e.onMouseOut(),i&&i.enabled?(this.animateBeforeDestroy(),S(t,a.duration)):t(),o.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t&&t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,i){var o=this,s=this.series.options;(s.point.events[t]||o.options&&o.options.events&&o.options.events[t])&&o.importEvents(),"click"===t&&s.allowPointSelect&&(i=function(t){o.select&&o.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),d(o,t,e,i)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,i=this,o=[],s={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","shadowGroup"),t.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),e=o.length;e--;){var r=o[e];i[r]&&s.singular.push(r)}return["graphic","dataLabel","connector"].forEach((function(e){var o=e+"s";t[e]&&i[o]&&s.plural.push(o)})),s},e.prototype.getLabelConfig=function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?u(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,o=0;for(i=e[o];this[t]>=i.value;)i=e[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=l(this.id)?this.id:M(),this.resolveColor(),t.chart.pointCount++,d(this,"afterInit"),this},e.prototype.isValid=function(){return null!==this.x&&m(this.y)},e.prototype.optionsToObject=function(t){var i=this.series,o=i.options.keys,s=o||i.pointArrayMap||["y"],r=s.length,n={},a=0,h=0;if(m(t)||null===t)n[s[0]]=t;else if(f(t))for(!o&&t.length>r&&("string"==(i=typeof t[0])?n.name=t[0]:"number"===i&&(n.x=t[0]),a++);h<r;)o&&void 0===t[a]||(0<s[h].indexOf(".")?e.prototype.setNestedProperty(n,t[a],s[h]):n[s[h]]=t[a]),a++,h++;else"object"==typeof t&&(n=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return n},e.prototype.pos=function(t,e){void 0===e&&(e=this.plotY);var i=this.plotX,o=this.series,s=o.chart,r=o.xAxis;o=o.yAxis;var n=0,a=0;if(m(i)&&m(e))return t&&(n=r?r.pos:s.plotLeft,a=o?o.pos:s.plotTop),s.inverted&&r&&o?[o.len-e+a,r.len-i+n]:[i+n,e+a]},e.prototype.resolveColor=function(){var t=this.series,e=t.chart.styledMode,i=t.chart.options.chart.colorCount;if(delete this.nonZonedColor,t.options.colorByPoint){if(!e){var o=(i=t.options.colors||t.chart.options.colors)[t.colorCounter];i=i.length}e=t.colorCounter,t.colorCounter++,t.colorCounter===i&&(t.colorCounter=0)}else e||(o=t.color),e=t.colorIndex;this.colorIndex=b(this.options.colorIndex,e),this.color=b(this.options.color,o)},e.prototype.setNestedProperty=function(t,e,i){return i.split(".").reduce((function(t,i,o,s){return t[i]=s.length-1===o?e:y(t[i],!0)?t[i]:{},t[i]}),t),t},e.prototype.shouldDraw=function(){return!this.isNull},e.prototype.tooltipFormatter=function(t){var e=this.series,i=e.tooltipOptions,o=b(i.valueDecimals,""),s=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach((function(e){e="{point."+e,(s||r)&&(t=t.replace(RegExp(e+"}","g"),s+e+"}"+r)),t=t.replace(RegExp(e+"}","g"),e+":,."+o+"f}")})),a(t,{point:this,series:this.series},e.chart)},e.prototype.update=function(t,e,i,o){function s(){n.applyOptions(t);var o=h&&n.hasMockGraphic;o=null===n.y?!o:o,h&&o&&(n.graphic=h.destroy(),delete n.hasMockGraphic),y(t,!0)&&(h&&h.element&&t&&t.marker&&void 0!==t.marker.symbol&&(n.graphic=h.destroy()),t&&t.dataLabels&&n.dataLabel&&(n.dataLabel=n.dataLabel.destroy()),n.connector&&(n.connector=n.connector.destroy())),r=n.index,a.updateParallelArrays(n,r),p.data[r]=y(p.data[r],!0)||y(t,!0)?n.options:b(t,p.data[r]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===p.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}var r,n=this,a=n.series,h=n.graphic,l=a.chart,p=a.options;e=b(e,!0),!1===o?s():n.firePointEvent("update",{options:t},s)},e.prototype.remove=function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)},e.prototype.select=function(t,e){var i=this,o=i.series,s=o.chart;this.selectedStaging=t=b(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){i.selected=i.options.selected=t,o.options.data[o.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||s.getSelectedPoints().forEach((function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(s.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},e.prototype.onMouseOver=function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},e.prototype.onMouseOut=function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},e.prototype.importEvents=function(){if(!this.hasImportedEvents){var t=this,e=v(t.series.options.point,t.options).events;t.events=e,x(e,(function(e,i){g(e)&&h(t,i,e)})),this.hasImportedEvents=!0}},e.prototype.setState=function(e,i){var o,s=this.series,r=this.state,a=s.options.states[e||"normal"]||{},h=n.plotOptions[s.type].marker&&s.options.marker,l=h&&!1===h.enabled,p=h&&h.states&&h.states[e||"normal"]||{},u=!1===p.enabled,f=this.marker||{},g=s.chart,y=h&&s.markerAttribs,v=s.halo,x=s.stateMarkerGraphic;if(!((e=e||"")===this.state&&!i||this.selected&&"select"!==e||!1===a.enabled||e&&(u||l&&!1===p.enabled)||e&&f.states&&f.states[e]&&!1===f.states[e].enabled)){if(this.state=e,y&&(o=s.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(r&&this.graphic.removeClass("highcharts-point-"+r),e&&this.graphic.addClass("highcharts-point-"+e),!g.styledMode){r=s.pointAttribs(this,e);var S=b(g.options.chart.animation,a.animation),k=r.opacity;s.options.inactiveOtherPoints&&m(k)&&((this.dataLabels||[]).forEach((function(t){t&&!t.hasClass("highcharts-data-label-hidden")&&t.animate({opacity:k},S)})),this.connector&&this.connector.animate({opacity:k},S)),this.graphic.animate(r,S)}o&&this.graphic.animate(o,b(g.options.chart.animation,p.animation,h.animation)),x&&x.hide()}else e&&p&&(h=f.symbol||s.symbol,x&&x.currentSymbol!==h&&(x=x.destroy()),o&&(x?x[i?"animate":"attr"]({x:o.x,y:o.y}):h&&(s.stateMarkerGraphic=x=g.renderer.symbol(h,o.x,o.y,o.width,o.height).add(s.markerGroup),x.currentSymbol=h)),!g.styledMode&&x&&"inactive"!==this.state&&x.attr(s.pointAttribs(this,e))),x&&(x[e&&this.isInside?"show":"hide"](),x.element.point=this,x.addClass(this.getClassName(),!0));a=a.halo,o=(x=this.graphic||x)&&x.visibility||"inherit",a&&a.size&&x&&"hidden"!==o&&!this.isCluster?(v||(s.halo=v=g.renderer.path().add(x.parentGroup)),v.show()[i?"animate":"attr"]({d:this.haloPath(a.size)}),v.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:o,zIndex:-1}),v.point=this,g.styledMode||v.attr(c({fill:this.color||s.color,"fill-opacity":a.opacity},t.filterUserAttributes(a.attributes||{})))):v&&v.point&&v.point.haloPath&&v.animate({d:v.point.haloPath(0)},null,v.hide),d(this,"afterSetState",{state:e})}},e.prototype.haloPath=function(t){var e=this.pos();return e?this.series.chart.renderer.symbols.circle(Math.floor(e[0])-t,e[1]-t,2*t,2*t):[]},e}(),e})),e(i,"Core/Pointer.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Tooltip.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s=t.parse,r=e.charts,n=e.noop,a=o.addEvent,h=o.attr,l=o.css,p=o.defined,c=o.extend,d=o.find,u=o.fireEvent,f=o.isNumber,g=o.isObject,m=o.objectEach,y=o.offset,v=o.pick,x=o.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=t,this.hasDragged=!1,this.options=e,this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach((function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},t.prototype.destroy=function(){var i=this;this.eventsToUnbind.forEach((function(t){return t()})),this.eventsToUnbind=[],e.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(i.tooltipTimeout),m(i,(function(t,e){i[e]=void 0}))},t.prototype.getSelectionMarkerAttrs=function(t,e){var i=this,o={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return u(this,"getSelectionMarkerAttrs",o,(function(o){var s=i.chart,r=i.mouseDownX;r=void 0===r?0:r;var n=i.mouseDownY;n=void 0===n?0:n;var a=i.zoomHor,h=i.zoomVert;(o=o.attrs).x=s.plotLeft,o.y=s.plotTop,o.width=a?1:s.plotWidth,o.height=h?1:s.plotHeight,a&&(s=t-r,o.width=Math.abs(s),o.x=(0<s?0:s)+r),h&&(s=e-n,o.height=Math.abs(s),o.y=(0<s?0:s)+n)})),o},t.prototype.drag=function(t){var e=this.chart,i=e.options.chart,o=e.plotLeft,r=e.plotTop,n=e.plotWidth,a=e.plotHeight,h=this.mouseDownX||0,l=this.mouseDownY||0,p=g(i.panning)?i.panning&&i.panning.enabled:i.panning,c=i.panKey&&t[i.panKey+"Key"],d=t.chartX,u=t.chartY,f=this.selectionMarker;f&&f.touch||(d<o?d=o:d>o+n&&(d=o+n),u<r?u=r:u>r+a&&(u=r+a),this.hasDragged=Math.sqrt(Math.pow(h-d,2)+Math.pow(l-u,2)),10<this.hasDragged&&(o=e.isInsidePlot(h-o,l-r,{visiblePlotOnly:!0}),d=(u=this.getSelectionMarkerAttrs(d,u)).shapeType,u=u.attrs,!e.hasCartesianSeries&&!e.mapView||!this.zoomX&&!this.zoomY||!o||c||f||(this.selectionMarker=f=e.renderer[d](),f.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||f.attr({fill:i.selectionMarkerFill||s("#335cad").setOpacity(.25).get()})),f&&f.attr(u),o&&!f&&p&&e.pan(t,i.panning)))},t.prototype.dragStart=function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},t.prototype.getSelectionBox=function(t){var e={args:{marker:t},result:{}};return u(this,"getSelectionBox",e,(function(e){e.result={x:t.attr?+t.attr("x"):t.x,y:t.attr?+t.attr("y"):t.y,width:t.attr?t.attr("width"):t.width,height:t.attr?t.attr("height"):t.height}})),e.result},t.prototype.drop=function(t){var e=this,i=this.chart,o=this.hasPinched;if(this.selectionMarker){var s=this.getSelectionBox(this.selectionMarker),r=s.x,n=s.y,a=s.width,h=s.height,d={originalEvent:t,xAxis:[],yAxis:[],x:r,y:n,width:a,height:h},g=!!i.mapView;(this.hasDragged||o)&&(i.axes.forEach((function(i){if(i.zoomEnabled&&p(i.min)&&(o||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])&&f(r)&&f(n)&&f(a)&&f(h)){var s=i.horiz,l="touchend"===t.type?i.minPixelPadding:0,c=i.toValue((s?r:n)+l);s=i.toValue((s?r+a:n+h)-l),d[i.coll].push({axis:i,min:Math.min(c,s),max:Math.max(c,s)}),g=!0}})),g&&u(i,"selection",d,(function(t){i.zoom(c(t,o?{animation:!1}:null))}))),f(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),o&&this.scaleGroups()}i&&f(i.index)&&(l(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},t.prototype.findNearestKDPoint=function(t,e,i){var o;return t.forEach((function(t){var s=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,s),(s=g(t,!0)&&t.series)&&!(s=!g(o,!0))){s=o.distX-t.distX;var r=o.dist-t.dist,n=(t.series.group&&t.series.group.zIndex)-(o.series.group&&o.series.group.zIndex);s=0<(0!==s&&e?s:0!==r?r:0!==n?n:o.series.index>t.series.index?-1:1)}s&&(o=t)})),o},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,o=i.xAxis;i=i.yAxis;var s=t.shapeArgs;if(o&&i){var r=v(t.clientX,t.plotX),n=t.plotY||0;return t.isNode&&s&&f(s.x)&&f(s.y)&&(r=s.x,n=s.y),e?{chartX:i.len+i.pos-n,chartY:o.len+o.pos-r}:{chartX:r+o.pos,chartY:n+i.pos}}if(s&&s.x&&s.y)return{chartX:s.x,chartY:s.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=y(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var i=t.offsetWidth;return t=t.offsetHeight,2<i&&2<t&&(this.chartPosition.scaleX=e.width/i,this.chartPosition.scaleY=e.height/t),this.chartPosition},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})})),e},t.prototype.getHoverData=function(t,e,i,o,s,r){var n=[];o=!(!o||!t);var a=function(t){return t.visible&&!(!s&&t.directTouch)&&v(t.options.enableMouseTracking,!0)},h={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:s};u(this,"beforeGetHoverData",h);var l=e&&!e.stickyTracking?[e]:i.filter((function(t){return t.stickyTracking&&(h.filter||a)(t)})),p=o||!r?t:this.findNearestKDPoint(l,s,r);return e=p&&p.series,p&&(s&&!e.noSharedTooltip?(l=i.filter((function(t){return h.filter?h.filter(t):a(t)&&!t.noSharedTooltip})),l.forEach((function(t){var e=d(t.points,(function(t){return t.x===p.x&&!t.isNull}));g(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),n.push(e))}))):n.push(p)),u(this,"afterGetHoverData",h={hoverPoint:p}),{hoverPoint:h.hoverPoint,hoverSeries:e,hoverPoints:n}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var i;t;){if(i=h(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentElement}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=!(!e.chart.events||!e.chart.events.click),this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,o=i?i.length?i.item(0):v(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=o.pageX-e.left,o=o.pageY-e.top,i/=e.scaleX,o/=e.scaleY,c(t,{chartX:Math.round(i),chartY:Math.round(o)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var o=e.plotLeft,s=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(u(i.series,"click",c(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(c(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-o,t.chartY-s,{visiblePlotOnly:!0})&&u(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(e){var i=r[v(t.hoverChartIndex,-1)],o=this.chart.tooltip;e=this.normalize(e),i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),o&&!o.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart,i=e.tooltip;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),("mousedown"===e.mouseIsDown||this.touchSelect(t))&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(t)||(this.inClass(t.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(t))},t.prototype.onDocumentTouchEnd=function(e){var i=r[v(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},t.prototype.onContainerTouchMove=function(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=e.tooltip,o=this.chartPosition;t=this.normalize(t,o),!o||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(t)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(e){var i=r[v(t.hoverChartIndex,-1)];i&&i.pointer.drop(e)},t.prototype.pinch=function(t){var e=this,i=e.chart,o=e.pinchDown,s=t.touches||[],r=s.length,a=e.lastValidTouch,h=e.hasZoom,l={},p=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),d={},f=e.chart.tooltip;f=1===r&&v(f&&f.options.followTouchMove,!0);var g=e.selectionMarker;1<r?e.initiated=!0:f&&(e.initiated=!1),h&&e.initiated&&!p&&!1!==t.cancelable&&t.preventDefault(),[].map.call(s,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(s,(function(t,e){o[e]={chartX:t.chartX,chartY:t.chartY}})),a.x=[o[0].chartX,o[1]&&o[1].chartX],a.y=[o[0].chartY,o[1]&&o[1].chartY],i.axes.forEach((function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],o=t.minPixelPadding,s=t.toPixels(Math.min(v(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(v(t.options.max,t.dataMax),t.dataMax)),n=Math.max(s,r);e.min=Math.min(t.pos,Math.min(s,r)-o),e.max=Math.max(t.pos+t.len,n+o)}})),e.res=!0):f?this.runPointActions(e.normalize(t)):o.length&&(u(i,"touchpan",{originalEvent:t},(function(){g||(e.selectionMarker=g=c({destroy:n,touch:!0},i.plotBox)),e.pinchTranslate(o,s,l,g,d,a),e.hasPinched=h,e.scaleGroups(l,d)})),e.res&&(e.res=!1,this.reset(!1,0)))},t.prototype.pinchTranslate=function(t,e,i,o,s,r){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,o,s,r),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,o,s,r)},t.prototype.pinchTranslateDirection=function(t,e,i,o,s,r,n,a){var h=this.chart,l=t?"x":"y",p=t?"X":"Y",c="chart"+p,d=t?"width":"height",u=h["plot"+(t?"Left":"Top")],f=h.inverted,g=h.bounds[t?"h":"v"],m=1===e.length,y=e[0][c],v=!m&&e[1][c];e=function(){"number"==typeof M&&20<Math.abs(y-v)&&(S=a||Math.abs(k-M)/Math.abs(y-v)),b=(u-k)/S+y,x=h["plot"+(t?"Width":"Height")]/S};var x,b,S=a||1,k=i[0][c],M=!m&&i[1][c];if(e(),(i=b)<g.min){i=g.min;var C=!0}else i+x>g.max&&(i=g.max-x,C=!0);C?(k-=.8*(k-n[l][0]),"number"==typeof M&&(M-=.8*(M-n[l][1])),e()):n[l]=[k,M],f||(r[l]=b-u,r[d]=x),r=f?1/S:S,s[d]=x,s[l]=i,o[f?t?"scaleY":"scaleX":"scale"+p]=S,o["translate"+p]=r*u+(k-r*y)},t.prototype.reset=function(t,e){var i=this.chart,o=i.hoverSeries,s=i.hoverPoint,r=i.hoverPoints,n=i.tooltip,a=n&&n.shared?r:s;t&&a&&x(a).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?n&&a&&x(a).length&&(n.refresh(a),n.shared&&r?r.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):s&&(s.setState(s.state,!0),i.axes.forEach((function(t){t.crosshair&&s.series[t.coll]===t&&t.drawCrosshair(null,s)})))):(s&&s.onMouseOut(),r&&r.forEach((function(t){t.setState()})),o&&o.onMouseOut(),n&&n.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)},t.prototype.runPointActions=function(e,i,o){var s=this.chart,n=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,h=!!n&&n.shared,l=i||s.hoverPoint,p=l&&l.series||s.hoverSeries;i=this.getHoverData(l,p,s.series,(!e||"touchmove"!==e.type)&&(!!i||p&&p.directTouch&&this.isDirectTouch),h,e),l=i.hoverPoint,p=i.hoverSeries;var c=i.hoverPoints;i=p&&p.tooltipOptions.followPointer&&!p.tooltipOptions.split;var u=h&&p&&!p.noSharedTooltip;if(l&&(o||l!==s.hoverPoint||n&&n.isHidden)){if((s.hoverPoints||[]).forEach((function(t){-1===c.indexOf(t)&&t.setState()})),s.hoverSeries!==p&&p.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach((function(t){t.setState("hover")})),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!l.series)return;s.hoverPoints=c,s.hoverPoint=l,l.firePointEvent("mouseOver",void 0,(function(){n&&l&&n.refresh(u?c:l,e)}))}else i&&n&&!n.isHidden&&(o=n.getAnchor([{}],e),s.isInsidePlot(o[0],o[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:o[0],plotY:o[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(s.container.ownerDocument,"mousemove",(function(e){var i=r[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach((function(t){var i,o=v((t.crosshair||{}).snap,!0);o&&((i=s.hoverPoint)&&i.series[t.coll]===t||(i=d(c,(function(e){return e.series&&e.series[t.coll]===t})))),i||!o?t.drawCrosshair(e,i):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var i=this.chart;i.series.forEach((function(o){var s=t||o.getPlotBox();o.group&&(o.xAxis&&o.xAxis.zoomEnabled||i.mapView)&&(o.group.attr(s),o.markerGroup&&(o.markerGroup.attr(s),o.markerGroup.clip(e?i.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(s))})),i.clipRect.attr(e||i.clipBox)},t.prototype.setDOMEvents=function(){var i=this,o=this.chart.container,s=o.ownerDocument;o.onmousedown=this.onContainerMouseDown.bind(this),o.onmousemove=this.onContainerMouseMove.bind(this),o.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(a(o,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(a(o,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=a(s,"mouseup",this.onDocumentMouseUp.bind(this)));for(var r=this.chart.renderTo.parentElement;r&&"BODY"!==r.tagName;)this.eventsToUnbind.push(a(r,"scroll",(function(){delete i.chartPosition}))),r=r.parentElement;e.hasTouch&&(this.eventsToUnbind.push(a(o,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(a(o,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=a(s,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var i=this.chart,o=e.charts[v(t.hoverChartIndex,-1)];o&&o!==i&&o.pointer.onContainerMouseLeave({relatedTarget:i.container}),o&&o.mouseIsDown||(t.hoverChartIndex=i.index)},t.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop,{visiblePlotOnly:!0})&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var o=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));v(o,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart;e=e.inverted;var o=i.zooming.type||"";/touch/.test(t.type)&&(o=v(i.zooming.pinchType,o)),this.zoomX=t=/x/.test(o),this.zoomY=i=/y/.test(o),this.zoomHor=t&&!e||i&&e,this.zoomVert=i&&!e||t&&e,this.hasZoom=t||i},t}(),t})),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],(function(t,e,i){function o(){var t=[];return t.item=function(t){return this[t]},d(g,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function s(t,i,s,r){var a=n[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!a||(a=a.pointer,r(t),a[i]({type:s,target:t.currentTarget,preventDefault:h,touches:o()}))}var r=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),n=t.charts,a=t.doc,h=t.noop,l=t.win,p=i.addEvent,c=i.css,d=i.objectEach,u=i.pick,f=i.removeEvent,g={},m=!!l.PointerEvent;return function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return r(i,e),i.isRequired=function(){return!(t.hasTouch||!l.PointerEvent&&!l.MSPointerEvent)},i.prototype.batchMSEvents=function(t){t(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},i.prototype.destroy=function(){this.batchMSEvents(f),e.prototype.destroy.call(this)},i.prototype.init=function(t,i){e.prototype.init.call(this,t,i),this.hasZoom&&c(t.container,{"-ms-touch-action":"none","touch-action":"none"})},i.prototype.onContainerPointerDown=function(t){s(t,"onContainerTouchStart","touchstart",(function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},i.prototype.onContainerPointerMove=function(t){s(t,"onContainerTouchMove","touchmove",(function(t){g[t.pointerId]={pageX:t.pageX,pageY:t.pageY},g[t.pointerId].target||(g[t.pointerId].target=t.currentTarget)}))},i.prototype.onDocumentPointerUp=function(t){s(t,"onDocumentTouchEnd","touchend",(function(t){delete g[t.pointerId]}))},i.prototype.setDOMEvents=function(){var t=this.chart.tooltip;e.prototype.setDOMEvents.call(this),(this.hasZoom||u(t&&t.options.followTouchMove,!0))&&this.batchMSEvents(p)},i}(e)})),e(i,"Core/Legend/Legend.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r){var n=t.animObject,a=t.setAnimation,h=e.format,l=i.marginNames,p=s.distribute,c=r.addEvent,d=r.createElement,u=r.css,f=r.defined,g=r.discardElement,m=r.find,y=r.fireEvent,v=r.isNumber,x=r.merge,b=r.pick,S=r.relativeLength,k=r.stableSort,M=r.syncTimeout;return t=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),c(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=c(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=b(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=x(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=b(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var i=this.chart;this.setOptions(x(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,b(e,!0)&&i.redraw(),y(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){var i=t.legendItem||{},o=i.group,s=i.label,r=i.line;if(i=i.symbol,o&&o[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options;o=this.itemHiddenStyle.color,n=e?n.itemStyle.color:o;var a=e&&t.color||o,h=t.options&&t.options.marker,l={fill:a};s&&s.css({fill:n,color:n}),r&&r.attr({stroke:a}),i&&(h&&i.isMarker&&(l=t.pointAttribs(),e||(l.stroke=l.fill=o)),i.attr(l))}y(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,i=t.legendItem||{},o=i.group,s=i.x;s=void 0===s?0:s,i=void 0===(i=i.y)?0:i;var r=this.options,n=r.symbolPadding,a=!r.rtl;r=t.checkbox,o&&o.element&&(n={translateX:a?s:this.legendWidth-s-2*n-4,translateY:i},o[f(o.translateY)?"animate":"attr"](n,void 0,(function(){y(e,"afterPositionItem",{item:t})}))),r&&(r.x=s,r.y=i)},t.prototype.destroyItem=function(t){for(var e=t.checkbox,i=t.legendItem||{},o=0,s=["group","label","line","symbol"];o<s.length;o++){var r=s[o];i[r]&&(i[r]=i[r].destroy())}e&&g(e),t.legendItem=void 0},t.prototype.destroy=function(){for(var t=0,e=this.getAllItems();t<e.length;t++)this.destroyItem(e[t]);for(t=0,e="clipRect up down pager nav box title group".split(" ");t<e.length;t++){var i=e[t];this[i]&&(this[i]=this[i].destroy())}this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var o=t.translateY;this.allItems.forEach((function(s){var r=s.checkbox;if(r){var n=o+i+r.y+(this.scrollOffset||0)+3;u(r,{left:t.translateX+s.checkboxOffset+r.x-20+"px",top:n+"px",display:this.proximate||n>o-6&&n<o+e-6?"":"none"})}}),this)}},t.prototype.renderTitle=function(){var t=this.options,e=this.padding,i=t.title,o=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),o=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:o})),this.titleHeight=o},t.prototype.setText=function(t){var e=this.options;t.legendItem.label.attr({text:e.labelFormat?h(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})},t.prototype.renderItem=function(t){var e=t.legendItem=t.legendItem||{},i=this.chart,o=i.renderer,s=this.options,r=this.symbolWidth,n=s.symbolPadding||0,a=this.itemStyle,h=this.itemHiddenStyle,l="horizontal"===s.layout?b(s.itemDistance,20):0,p=!s.rtl,c=!t.series,d=!c&&t.series.drawLegendSymbol?t.series:t,u=d.options,f=this.createCheckboxForItem&&u&&u.showCheckbox,g=s.useHTML,m=t.options.className,y=e.label;u=r+n+l+(f?20:0),y||(e.group=o.g("legend-item").addClass("highcharts-"+d.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(c?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=y=o.text("",p?r+n:-n,this.baseline||0,g),i.styledMode||y.css(x(t.visible?a:h)),y.attr({align:p?"left":"right",zIndex:2}).add(e.group),this.baseline||(this.fontMetrics=o.fontMetrics(i.styledMode?12:a.fontSize,y),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,y.attr("y",this.baseline),this.symbolHeight=s.symbolHeight||this.fontMetrics.f,s.squareSymbol&&(this.symbolWidth=b(s.symbolWidth,Math.max(this.symbolHeight,16)),u=this.symbolWidth+n+l+(f?20:0),p&&y.attr("x",this.symbolWidth+n))),d.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,g)),f&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!i.styledMode&&a.width||y.css({width:(s.itemWidth||this.widthOption||i.spacingBox.width)-u+"px"}),this.setText(t),i=y.getBBox(),o=this.fontMetrics&&this.fontMetrics.h||0,t.itemWidth=t.checkboxOffset=s.itemWidth||e.labelWidth||i.width+u,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(i.height>1.5*o?i.height:o))},t.prototype.layoutItem=function(t){var e=this.options,i=this.padding,o="horizontal"===e.layout,s=t.itemHeight,r=this.itemMarginBottom,n=this.itemMarginTop,a=o?b(e.itemDistance,20):0,h=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth;var l=t.legendItem||{};o&&this.itemX-i+e>h&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=n+this.itemY+r,this.lastLineHeight=Math.max(s,this.lastLineHeight),l.x=this.itemX,l.y=this.itemY,o?this.itemX+=e:(this.itemY+=n+s+r,this.lastLineHeight=s),this.offsetWidth=this.widthOption||Math.max((o?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var i=e&&e.options;e&&b(i.showInLegend,!f(i.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===i.legendType?e.data:e)))})),y(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var i=this.chart,o=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(r,n){r.test(s)&&!f(t[n])&&(i[l[n]]=Math.max(i[l[n]],i.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*o[n%2?"x":"y"]+b(o.margin,12)+e[n]+(i.titleOffset[n]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],i="left"===this.options.align;this.allItems.forEach((function(o){var s,r=i;if(o.yAxis){o.xAxis.options.reversed&&(r=!r),o.points&&(s=m(r?o.points:o.points.slice(0).reverse(),(function(t){return v(t.plotY)}))),r=this.itemMarginTop+o.legendItem.label.getBBox().height+this.itemMarginBottom;var n=o.yAxis.top-t.plotTop;o.visible?(s=s?s.plotY:o.yAxis.height,s+=n-.3*r):s=n+o.yAxis.height,e.push({target:s,size:r,item:o})}}),this);for(var o,s=0,r=p(e,t.plotHeight);s<r.length;s++){var n=r[s];o=n.item.legendItem||{},v(n.pos)&&(o.y=t.plotTop-t.spacing[0]+n.pos)}},t.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.options,o=this.padding,s=this.getAllItems(),r=this.group,n=this.box;this.itemX=o,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=S(i.width,t.spacingBox.width-o);var a=t.spacingBox.width-2*o-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(a/=2),this.maxLegendWidth=this.widthOption||a,r||(this.group=r=e.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(r),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),k(s,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),i.reversed&&s.reverse(),this.allItems=s,this.display=a=!!s.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,s.forEach(this.renderItem,this),s.forEach(this.layoutItem,this),s=(this.widthOption||this.offsetWidth)+o;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=o,n||(this.box=n=e.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),t.styledMode||n.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<s&&0<h&&n[n.placed?"animate":"attr"](n.crisp.call({},{x:0,y:0,width:s,height:h},n.strokeWidth())),r[a?"show":"hide"](),t.styledMode&&"none"===r.getStyle("display")&&(s=h=0),this.legendWidth=s,this.legendHeight=h,a&&this.align(),this.proximate||this.positionItems(),y(this,"afterRender")},t.prototype.align=function(t){void 0===t&&(t=this.chart.spacingBox);var e=this.chart,i=this.options,o=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<e.titleOffset[0]?o+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<e.titleOffset[2]&&(o-=e.titleOffset[2]),o!==t.y&&(t=x(t,{y:o})),e.hasRendered||(this.group.placed=!1),this.group.align(x(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)},t.prototype.handleOverflow=function(t){var e,i,o,s=this,r=this.chart,n=r.renderer,a=this.options,h=a.y,l="top"===a.verticalAlign,p=this.padding,c=a.maxHeight,d=a.navigation,u=b(d.animation,!0),f=d.arrowSize||12,g=this.pages,m=this.allItems,y=function(t){"number"==typeof t?S.attr({height:t}):S&&(s.clipRect=S.destroy(),s.contentGroup.clip()),s.contentGroup.div&&(s.contentGroup.div.style.clip=t?"rect("+p+"px,9999px,"+(p+t)+"px,0)":"auto")},v=function(t){return s[t]=n.circle(0,0,1.3*f).translate(f/2,f/2).add(x),r.styledMode||s[t].attr("fill","rgba(0,0,0,0.0001)"),s[t]};h=r.spacingBox.height+(l?-h:h)-p;var x=this.nav,S=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(h/=2),c&&(h=Math.min(h,c)),g.length=0,t&&0<h&&t>h&&!1!==d.enabled?(this.clipHeight=e=Math.max(h-20-this.titleHeight-p,0),this.currentPage=b(this.currentPage,1),this.fullHeight=t,m.forEach((function(t,s){t=(o=t.legendItem||{}).y||0;var r=Math.round(o.label.getBBox().height),n=g.length;(!n||t-g[n-1]>e&&(i||t)!==g[n-1])&&(g.push(i||t),n++),o.pageIx=n-1,i&&((m[s-1].legendItem||{}).pageIx=n-1),s===m.length-1&&t+r-g[n-1]>e&&r<=e&&(g.push(t),o.pageIx=n),t!==i&&(i=t)})),S||(S=s.clipRect=n.clipRect(0,p,9999,0),s.contentGroup.clip(S)),y(e),x||(this.nav=x=n.g().attr({zIndex:1}).add(this.group),this.up=n.symbol("triangle",0,0,f,f).add(x),v("upTracker").on("click",(function(){s.scroll(-1,u)})),this.pager=n.text("",15,10).addClass("highcharts-legend-navigation"),!r.styledMode&&d.style&&this.pager.css(d.style),this.pager.add(x),this.down=n.symbol("triangle-down",0,0,f,f).add(x),v("downTracker").on("click",(function(){s.scroll(1,u)}))),s.scroll(0),t=h):x&&(y(),this.nav=x.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var i=this,o=this.chart,s=this.pages,r=s.length,h=this.clipHeight,l=this.options.navigation,p=this.pager,c=this.padding,d=this.currentPage+t;d>r&&(d=r),0<d&&(void 0!==e&&a(e,o),this.nav.attr({translateX:c,translateY:h+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===d?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),p.attr({text:d+"/"+r}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:d===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),o.styledMode||(this.up.attr({fill:1===d?l.inactiveColor:l.activeColor}),this.upTracker.css({cursor:1===d?"default":"pointer"}),this.down.attr({fill:d===r?l.inactiveColor:l.activeColor}),this.downTracker.css({cursor:d===r?"default":"pointer"})),this.scrollOffset=-s[d-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=d,this.positionCheckboxes(),t=n(b(e,o.renderer.globalAnimation,!0)),M((function(){y(i,"afterScroll",{currentPage:d})}),t.duration))},t.prototype.setItemEvents=function(t,e,i){var s=this,r=t.legendItem||{},n=s.chart.renderer.boxWrapper,a=t instanceof o,h="highcharts-legend-"+(a?"point":"series")+"-active",l=s.chart.styledMode,p=function(e){s.allItems.forEach((function(i){t!==i&&[i].concat(i.linkedSeries||[]).forEach((function(t){t.setState(e,!a)}))}))},c=0;for(i=i?[e,r.symbol]:[r.group];c<i.length;c++)(r=i[c])&&r.on("mouseover",(function(){t.visible&&p("inactive"),t.setState("hover"),t.visible&&n.addClass(h),l||e.css(s.options.itemHoverStyle)})).on("mouseout",(function(){s.chart.styledMode||e.css(x(t.visible?s.itemStyle:s.itemHiddenStyle)),p(""),n.removeClass(h),t.setState()})).on("click",(function(e){var i=function(){t.setVisible&&t.setVisible(),p(t.visible?"inactive":"")};n.removeClass(h),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):y(t,"legendItemClick",e,i)}))},t.prototype.createCheckboxForItem=function(t){t.checkbox=d("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),c(t.checkbox,"click",(function(e){y(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},(function(){t.select()}))}))},t}(),t})),e(i,"Core/Series/SeriesRegistry.js",[i["Core/Globals.js"],i["Core/Defaults.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s,r=e.defaultOptions,n=o.extendClass,a=o.merge;return function(e){function o(t,o){var s=r.plotOptions||{},n=o.defaultOptions,a=o.prototype;a.type=t,a.pointClass||(a.pointClass=i),n&&(s[t]=n),e.seriesTypes[t]=o}e.seriesTypes=t.seriesTypes,e.registerSeriesType=o,e.seriesType=function(t,s,h,l,p){var c=r.plotOptions||{};return s=s||"",c[t]=a(c[s],h),o(t,n(e.seriesTypes[s]||function(){},l)),e.seriesTypes[t].prototype.type=t,p&&(e.seriesTypes[t].prototype.pointClass=n(i,p)),e.seriesTypes[t]}}(s||(s={})),s})),e(i,"Core/Chart/Chart.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Defaults.js"],i["Core/FormatUtilities.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/Legend.js"],i["Core/MSPointer.js"],i["Core/Pointer.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Time.js"],i["Core/Utilities.js"],i["Core/Renderer/HTML/AST.js"]],(function(t,e,i,o,s,r,n,a,h,l,p,c,d,u,f){var g=t.animate,m=t.animObject,y=t.setAnimation,v=i.defaultOptions,x=i.defaultTime,b=o.numberFormat,S=s.registerEventOptions,k=r.charts,M=r.doc,C=r.marginNames,w=r.svg,P=r.win,A=p.seriesTypes,L=u.addEvent,T=u.attr,O=u.cleanRecursively,E=u.createElement,j=u.css,D=u.defined,I=u.discardElement,N=u.erase,R=u.error,B=u.extend,z=u.find,X=u.fireEvent,_=u.getStyle,Y=u.isArray,W=u.isNumber,G=u.isObject,H=u.isString,F=u.merge,U=u.objectEach,V=u.pick,q=u.pInt,K=u.relativeLength,Z=u.removeEvent,$=u.splat,Q=u.syncTimeout,J=u.uniqueKey;return t=function(){function t(t,e,i){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.legend=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(t,e,i)}return t.chart=function(e,i,o){return new t(e,i,o)},t.prototype.getArgs=function(t,e,i){H(t)||t.nodeName?(this.renderTo=t,this.init(e,i)):this.init(t,e)},t.prototype.init=function(t,e){var i=t.plotOptions||{};X(this,"init",{args:arguments},(function(){var o=F(v,t),s=o.chart;U(o.plotOptions,(function(t,e){G(t)&&(t.tooltip=i[e]&&F(i[e].tooltip)||void 0)})),o.tooltip.userOptions=t.chart&&t.chart.forExport&&t.tooltip.userOptions||t.tooltip,this.userOptions=t,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0;var n=s.zooming=s.zooming||{};t.chart&&!t.chart.zooming&&(n.resetButton=s.resetZoomButton),n.key=V(n.key,s.zoomKey),n.pinchType=V(n.pinchType,s.pinchType),n.singleTouch=V(n.singleTouch,s.zoomBySingleTouch),n.type=V(n.type,s.zoomType),this.options=o,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new d(t.time):r.time,this.numberFormatter=s.numberFormatter||b,this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=k.length,k.push(this),r.chartCount++,S(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,X(this,"afterInit"),this.firstRender()}))},t.prototype.initSeries=function(t){var e=this.options.chart;e=t.type||e.type||e.defaultSeriesType;var i=A[e];return i||R(17,!0,this,{missingModuleFor:e}),"function"==typeof(e=new i).init&&e.init(this,t),e},t.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach((function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)}))},t.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort((function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}))},t.prototype.orderSeries=function(t){var e=this.series;t=t||0;for(var i=e.length;t<i;++t)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},t.prototype.isInsidePlot=function(t,e,i){void 0===i&&(i={});var o=this.inverted,s=this.plotBox,r=this.plotLeft,n=this.plotTop,a=this.scrollablePlotBox,h=0,l=0;i.visiblePlotOnly&&this.scrollingContainer&&(h=(l=this.scrollingContainer).scrollLeft,l=l.scrollTop);var p=i.series;if(s=i.visiblePlotOnly&&a||s,t={x:a=i.inverted?e:t,y:e=i.inverted?t:e,isInsidePlot:!0,options:i},!i.ignoreX){var c=p&&(o&&!this.polar?p.yAxis:p.xAxis)||{pos:r,len:1/0};(a=i.paneCoordinates?c.pos+a:r+a)>=Math.max(h+r,c.pos)&&a<=Math.min(h+r+s.width,c.pos+c.len)||(t.isInsidePlot=!1)}return!i.ignoreY&&t.isInsidePlot&&(o=i.axis&&!i.axis.isXAxis&&i.axis||p&&(o?p.xAxis:p.yAxis)||{pos:n,len:1/0},(i=i.paneCoordinates?o.pos+e:n+e)>=Math.max(l+n,o.pos)&&i<=Math.min(l+n+s.height,o.pos+o.len)||(t.isInsidePlot=!1)),X(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){X(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,o=this.pointer,s=this.legend,r=this.userOptions.legend,n=this.renderer,a=n.isHidden(),h=[],l=this.isDirtyBox,p=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&t,this),a&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var c=i[t];if(c.options.stacking||c.options.centerInCategory){var d=!0;if(c.isDirty){var u=!0;break}}}if(u)for(t=i.length;t--;)(c=i[t]).options.stacking&&(c.isDirty=!0);i.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),p=!0):r&&(r.labelFormatter||r.labelFormat)&&(p=!0)),t.isDirtyData&&X(t,"updatedData")})),p&&s&&s.options.enabled&&(s.render(),this.isDirtyLegend=!1),d&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(l=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,h.push((function(){X(t,"afterSetExtremes",B(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(l||d)&&t.redraw()})),l&&this.drawChartBox(),X(this,"predraw"),i.forEach((function(t){(l||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),o&&o.reset(!0),n.draw(),X(this,"redraw"),X(this,"render"),a&&this.temporaryDisplay(!0),h.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var i=this.series,o=z(this.axes,e)||z(this.series,e),s=0;!o&&s<i.length;s++)o=z(i[s].points||[],e);return o},t.prototype.getAxes=function(){var t=this,i=this.options,o=i.xAxis=$(i.xAxis||{});i=i.yAxis=$(i.yAxis||{}),X(this,"getAxes"),o.forEach((function(t,e){t.index=e,t.isX=!0})),i.forEach((function(t,e){t.index=e})),o.concat(i).forEach((function(i){new e(t,i)})),X(this,"afterGetAxes")},t.prototype.getSelectedPoints=function(){return this.series.reduce((function(t,e){return e.getPointsCollection().forEach((function(e){V(e.selectedStaging,e.selected)&&t.push(e)})),t}),[])},t.prototype.getSelectedSeries=function(){return this.series.filter((function(t){return t.selected}))},t.prototype.setTitle=function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},t.prototype.applyDescription=function(t,e){var i=this,o="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};o=this.options[t]=F(!this.styledMode&&{style:o},this.options[t],e);var s=this[t];s&&e&&(this[t]=s=s.destroy()),o&&!s&&((s=this.renderer.text(o.text,0,0,o.useHTML).attr({align:o.align,class:"highcharts-"+t,zIndex:o.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||s.css(o.style),this[t]=s)},t.prototype.layOutTitles=function(t){var e=[0,0,0],i=this.renderer,o=this.spacingBox;["title","subtitle","caption"].forEach((function(t){var s,r=this[t],n=this.options[t],a=n.verticalAlign||"top";if(t="title"===t?"top"===a?-3:0:"top"===a?e[0]+2:0,r){this.styledMode||(s=n.style&&n.style.fontSize),s=i.fontMetrics(s,r).b,r.css({width:(n.width||o.width+(n.widthAdjust||0))+"px"});var h=Math.round(r.getBBox(n.useHTML).height);r.align(B({y:"bottom"===a?s:t+s,height:h},n),!1,"spacingBox"),n.floating||("top"===a?e[0]=Math.ceil(e[0]+h):"bottom"===a&&(e[2]=Math.ceil(e[2]+h)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var s=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,X(this,"afterLayOutTitles"),!this.isDirtyBox&&s&&(this.isDirtyBox=this.isDirtyLegend=s,this.hasRendered&&V(t,!0)&&this.isDirtyBox&&this.redraw())},t.prototype.getChartSize=function(){var t=this.options.chart,e=t.width;t=t.height;var i=this.renderTo;D(e)||(this.containerWidth=_(i,"width")),D(t)||(this.containerHeight=_(i,"height")),this.chartWidth=Math.max(0,e||this.containerWidth||600),this.chartHeight=Math.max(0,K(t,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},t.prototype.temporaryDisplay=function(t){var e=this.renderTo;if(t)for(;e&&e.style;)e.hcOrigStyle&&(j(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(M.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e&&e.style&&(M.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,M.body.appendChild(e)),("none"===_(e,"display",!1)||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},t={display:"block",overflow:"hidden"},e!==this.renderTo&&(t.height=0),j(e,t),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==M.body););},t.prototype.setClassName=function(t){this.container.className="highcharts-container "+(t||"")},t.prototype.getContainer=function(){var t,e=this.options,i=e.chart,o=J(),s=this.renderTo;s||(this.renderTo=s=i.renderTo),H(s)&&(this.renderTo=s=M.getElementById(s)),s||R(13,!0,this);var r=q(T(s,"data-highcharts-chart"));W(r)&&k[r]&&k[r].hasRendered&&k[r].destroy(),T(s,"data-highcharts-chart",this.index),s.innerHTML=f.emptyHTML,i.skipClone||s.offsetWidth||this.temporaryDisplay(),this.getChartSize(),r=this.chartWidth;var n=this.chartHeight;if(j(s,{overflow:"hidden"}),this.styledMode||(t=B({position:"relative",overflow:"hidden",width:r+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},i.style||{})),this.container=o=E("div",{id:o},t,s),this._cursor=o.style.cursor,this.renderer=new(i.renderer||!w?l.getRendererType(i.renderer):c)(o,r,n,void 0,i.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),y(void 0,this),this.setClassName(i.className),this.styledMode)for(var a in e.defs)this.renderer.definition(e.defs[a]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,X(this,"afterGetContainer")},t.prototype.getMargins=function(t){var e=this.spacing,i=this.margin,o=this.titleOffset;this.resetMargins(),o[0]&&!D(i[0])&&(this.plotTop=Math.max(this.plotTop,o[0]+e[0])),o[2]&&!D(i[2])&&(this.marginBottom=Math.max(this.marginBottom,o[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),X(this,"getMargins"),t||this.getAxisMargins()},t.prototype.getAxisMargins=function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,o=t.margin,s=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?s(t.axes):i&&i.length&&s(i),C.forEach((function(i,s){D(o[s])||(t[i]+=e[s])})),t.setChartSize()},t.prototype.reflow=function(t){var e=this,i=e.options.chart,o=e.renderTo,s=D(i.width)&&D(i.height),r=i.width||_(o,"width");i=i.height||_(o,"height"),o=t?t.target:P,delete e.pointer.chartPosition,s||e.isPrinting||!r||!i||o!==P&&o!==M||(r===e.containerWidth&&i===e.containerHeight||(u.clearTimeout(e.reflowTimeout),e.reflowTimeout=Q((function(){e.container&&e.setSize(void 0,void 0,!1)}),t?100:0)),e.containerWidth=r,e.containerHeight=i)},t.prototype.setReflow=function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=L(P,"resize",(function(t){e.options&&e.reflow(t)})),L(this,"destroy",this.unbindReflow))},t.prototype.setSize=function(t,e,i){var o=this,s=o.renderer;o.isResizing+=1,y(i,o),i=s.globalAnimation,o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,void 0!==t&&(o.options.chart.width=t),void 0!==e&&(o.options.chart.height=e),o.getChartSize(),o.styledMode||(i?g:j)(o.container,{width:o.chartWidth+"px",height:o.chartHeight+"px"},i),o.setChartSize(!0),s.setSize(o.chartWidth,o.chartHeight,i),o.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(i),o.oldChartHeight=null,X(o,"resize"),Q((function(){o&&X(o,"endResize",null,(function(){--o.isResizing}))}),m(i).duration)},t.prototype.setChartSize=function(t){var e,i,o,s,r=this.inverted,n=this.renderer,a=this.chartWidth,h=this.chartHeight,l=this.options.chart,p=this.spacing,c=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=o=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=s=Math.max(0,Math.round(h-i-this.marginBottom)),this.plotSizeX=r?s:o,this.plotSizeY=r?o:s,this.plotBorderWidth=l.plotBorderWidth||0,this.spacingBox=n.spacingBox={x:p[3],y:p[0],width:a-p[3]-p[1],height:h-p[0]-p[2]},this.plotBox=n.plotBox={x:e,y:i,width:o,height:s},r=2*Math.floor(this.plotBorderWidth/2),a=Math.ceil(Math.max(r,c[3])/2),h=Math.ceil(Math.max(r,c[0])/2),this.clipBox={x:a,y:h,width:Math.floor(this.plotSizeX-Math.max(r,c[1])/2-a),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(r,c[2])/2-h))},t||(this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),n.alignElements()),X(this,"afterSetChartSize",{skipAxes:t})},t.prototype.resetMargins=function(){X(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach((function(i){var o=e[i],s=G(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach((function(o,r){t[i][r]=V(e[i+o],s[r])}))})),C.forEach((function(e,i){t[e]=V(t.margin[i],t.spacing[i])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},t.prototype.drawChartBox=function(){var t,e=this.options.chart,i=this.renderer,o=this.chartWidth,s=this.chartHeight,r=this.styledMode,n=this.plotBGImage,a=e.backgroundColor,h=e.plotBackgroundColor,l=e.plotBackgroundImage,p=this.plotLeft,c=this.plotTop,d=this.plotWidth,u=this.plotHeight,f=this.plotBox,g=this.clipRect,m=this.clipBox,y=this.chartBackground,v=this.plotBackground,x=this.plotBorder,b="animate";if(y||(this.chartBackground=y=i.rect().addClass("highcharts-background").add(),b="attr"),r)var S=t=y.strokeWidth();else t=(S=e.borderWidth||0)+(e.shadow?8:0),a={fill:a||"none"},(S||y["stroke-width"])&&(a.stroke=e.borderColor,a["stroke-width"]=S),y.attr(a).shadow(e.shadow);y[b]({x:t/2,y:t/2,width:o-t-S%2,height:s-t-S%2,r:e.borderRadius}),b="animate",v||(b="attr",this.plotBackground=v=i.rect().addClass("highcharts-plot-background").add()),v[b](f),r||(v.attr({fill:h||"none"}).shadow(e.plotShadow),l&&(n?(l!==n.attr("href")&&n.attr("href",l),n.animate(f)):this.plotBGImage=i.image(l,p,c,d,u).add())),g?g.animate({width:m.width,height:m.height}):this.clipRect=i.clipRect(m),b="animate",x||(b="attr",this.plotBorder=x=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),r||x.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),x[b](x.crisp({x:p,y:c,width:d,height:u},-x.strokeWidth())),this.isDirtyBox=!1,X(this,"afterDrawChartBox")},t.prototype.propFromSeries=function(){var t,e,i,o=this,s=o.options.chart,r=o.options.series;["inverted","angular","polar"].forEach((function(n){for(e=A[s.type||s.defaultSeriesType],i=s[n]||e&&e.prototype[n],t=r&&r.length;!i&&t--;)(e=A[r[t].type])&&e.prototype[n]&&(i=!0);o[n]=i}))},t.prototype.linkSeries=function(){var t=this,e=t.series;e.forEach((function(t){t.linkedSeries.length=0})),e.forEach((function(e){var i=e.options.linkedTo;H(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,i.enabledDataSorting&&e.setDataSortingOptions(),e.visible=V(e.options.visible,i.options.visible,e.visible))})),X(this,"afterLinkSeries")},t.prototype.renderSeries=function(){this.series.forEach((function(t){t.translate(),t.render()}))},t.prototype.renderLabels=function(){var t=this,e=t.options.labels;e.items&&e.items.forEach((function(i){var o=B(e.style,i.style),s=q(o.left)+t.plotLeft,r=q(o.top)+t.plotTop+12;delete o.left,delete o.top,t.renderer.text(i.html,s,r).attr({zIndex:2}).css(o).add()}))},t.prototype.render=function(){var t=this.axes,e=this.colorAxis,i=this.renderer,o=this.options,s=function(t){t.forEach((function(t){t.visible&&t.render()}))},r=0;this.setTitle(),this.legend=new n(this,o.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),o=this.plotWidth,t.some((function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return r=21,!0}));var a=this.plotHeight=Math.max(this.plotHeight-r,0);t.forEach((function(t){t.setScale()})),this.getAxisMargins();var h=1.1<o/this.plotWidth,l=1.05<a/this.plotHeight;(h||l)&&(t.forEach((function(t){(t.horiz&&h||!t.horiz&&l)&&t.setTickInterval(!0)})),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?s(t):e&&e.length&&s(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},t.prototype.addCredits=function(t){var e=this,i=F(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){i.href&&(P.location.href=i.href)})).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},t.prototype.destroy=function(){var t,e=this,i=e.axes,o=e.series,s=e.container,n=s&&s.parentNode;for(X(e,"destroy"),e.renderer.forExport?N(k,e):k[e.index]=void 0,r.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),Z(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=o.length;t--;)o[t]=o[t].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach((function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())})),s&&(s.innerHTML=f.emptyHTML,Z(s),n&&I(s)),U(e,(function(t,i){delete e[i]}))},t.prototype.firstRender=function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(Y(e.series)?e.series:[]).forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSeriesData(),X(t,"beforeRender"),h&&(a.isRequired()?t.pointer=new a(t,e):t.pointer=new h(t,e)),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0))},t.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),X(this,"load"),X(this,"render"),D(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},t.prototype.warnIfA11yModuleNotLoaded=function(){var t=this.options,e=this.title;t&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/</g,"<")}),t.accessibility&&!1===t.accessibility.enabled||R('Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.',!1,this))},t.prototype.addSeries=function(t,e,i){var o,s=this;return t&&(e=V(e,!0),X(s,"addSeries",{options:t},(function(){o=s.initSeries(t),s.isDirtyLegend=!0,s.linkSeries(),o.enabledDataSorting&&o.setData(t.data,!1),X(s,"afterAddSeries",{series:o}),e&&s.redraw(i)}))),o},t.prototype.addAxis=function(t,e,i,o){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:o})},t.prototype.addColorAxis=function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},t.prototype.createAxis=function(t,i){return t=new e(this,F(i.axis,{index:this[t].length,isX:"xAxis"===t})),V(i.redraw,!0)&&this.redraw(i.animation),t},t.prototype.showLoading=function(t){var e=this,i=e.options,o=i.loading,s=function(){r&&j(r,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},r=e.loadingDiv,n=e.loadingSpan;r||(e.loadingDiv=r=E("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),n||(e.loadingSpan=n=E("span",{className:"highcharts-loading-inner"},null,r),L(e,"redraw",s)),r.className="highcharts-loading",f.setElementHTML(n,V(t,i.lang.loading,"")),e.styledMode||(j(r,B(o.style,{zIndex:10})),j(n,o.labelStyle),e.loadingShown||(j(r,{opacity:0,display:""}),g(r,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,s()},t.prototype.hideLoading=function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||g(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){j(e,{display:"none"})}})),this.loadingShown=!1},t.prototype.update=function(t,e,i,o){var s,r,n=this,a={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},h=t.isResponsiveOptions,l=[];X(n,"update",{options:t}),h||n.setResponsive(!1,!0),t=O(t,n.options),n.userOptions=F(n.userOptions,t);var p=t.chart;if(p){if(F(!0,n.options.chart,p),"className"in p&&n.setClassName(p.className),"reflow"in p&&n.setReflow(p.reflow),"inverted"in p||"polar"in p||"type"in p){n.propFromSeries();var c=!0}"alignTicks"in p&&(c=!0),"events"in p&&S(this,p),U(p,(function(t,e){-1!==n.propsRequireUpdateSeries.indexOf("chart."+e)&&(s=!0),-1!==n.propsRequireDirtyBox.indexOf(e)&&(n.isDirtyBox=!0),-1!==n.propsRequireReflow.indexOf(e)&&(h?n.isDirtyBox=!0:r=!0)})),!n.styledMode&&p.style&&n.renderer.setStyle(n.options.chart.style||{})}!n.styledMode&&t.colors&&(this.options.colors=t.colors),t.time&&(this.time===x&&(this.time=new d(t.time)),F(!0,n.options.time,t.time)),U(t,(function(e,i){n[i]&&"function"==typeof n[i].update?n[i].update(e,!1):"function"==typeof n[a[i]]?n[a[i]](e):"colors"!==i&&-1===n.collectionsWithUpdate.indexOf(i)&&F(!0,n.options[i],t[i]),"chart"!==i&&-1!==n.propsRequireUpdateSeries.indexOf(i)&&(s=!0)})),this.collectionsWithUpdate.forEach((function(e){if(t[e]){var o=[];n[e].forEach((function(t,e){t.options.isInternal||o.push(V(t.options.index,e))})),$(t[e]).forEach((function(t,s){var r,a=D(t.id);a&&(r=n.get(t.id)),!r&&n[e]&&(r=n[e][o?o[s]:s])&&a&&D(r.options.id)&&(r=void 0),r&&r.coll===e&&(r.update(t,!1),i&&(r.touched=!0)),!r&&i&&n.collectionsWithInit[e]&&(n.collectionsWithInit[e][0].apply(n,[t].concat(n.collectionsWithInit[e][1]||[]).concat([!1])).touched=!0)})),i&&n[e].forEach((function(t){t.touched||t.options.isInternal?delete t.touched:l.push(t)}))}})),l.forEach((function(t){t.chart&&t.remove&&t.remove(!1)})),c&&n.axes.forEach((function(t){t.update({},!1)})),s&&n.getSeriesOrderByLinks().forEach((function(t){t.chart&&t.update({},!1)}),this),c=p&&p.width,p=p&&(H(p.height)?K(p.height,c||n.chartWidth):p.height),r||W(c)&&c!==n.chartWidth||W(p)&&p!==n.chartHeight?n.setSize(c,p,o):V(e,!0)&&n.redraw(o),X(n,"afterUpdate",{options:t,redraw:e,animation:o})},t.prototype.setSubtitle=function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},t.prototype.setCaption=function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)},t.prototype.showResetZoom=function(){function t(){e.zoomOut()}var e=this,i=v.lang,o=e.options.chart.zooming.resetButton,s=o.theme,r="chart"===o.relativeTo||"spacingBox"===o.relativeTo?null:"scrollablePlotBox";X(this,"beforeShowResetZoom",null,(function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,s).attr({align:o.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(o.position,!1,r)})),X(this,"afterShowResetZoom")},t.prototype.zoomOut=function(){X(this,"selection",{resetSelection:!0},this.zoom)},t.prototype.zoom=function(t){var e,i=this,o=i.pointer,s=!1;!t||t.resetSelection?(i.axes.forEach((function(t){e=t.zoom()})),o.initiated=!1):t.xAxis.concat(t.yAxis).forEach((function(t){var r=t.axis;(o[r.isXAxis?"zoomX":"zoomY"]&&D(o.mouseDownX)&&D(o.mouseDownY)&&i.isInsidePlot(o.mouseDownX-i.plotLeft,o.mouseDownY-i.plotTop,{axis:r})||!D(i.inverted?o.mouseDownX:o.mouseDownY))&&(e=r.zoom(t.min,t.max),r.displayBtn&&(s=!0))}));var r=i.resetZoomButton;s&&!r?i.showResetZoom():!s&&G(r)&&(i.resetZoomButton=r.destroy()),e&&i.redraw(V(i.options.chart.animation,t&&t.animation,100>i.pointCount))},t.prototype.pan=function(t,e){var i=this,o=i.hoverPoints;e="object"==typeof e?e:{enabled:e,type:"x"};var s=i.options.chart;s&&s.panning&&(s.panning=e);var r,n=e.type;X(this,"pan",{originalEvent:t},(function(){o&&o.forEach((function(t){t.setState()}));var e=i.xAxis;"xy"===n?e=e.concat(i.yAxis):"y"===n&&(e=i.yAxis);var s={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var o=e.horiz,a=t[o?"chartX":"chartY"],h=i[o=o?"mouseDownX":"mouseDownY"],l=e.minPointOffset||0,p=e.reversed&&!i.inverted||!e.reversed&&i.inverted?-1:1,c=e.getExtremes(),d=e.toValue(h-a,!0)+l*p,u=e.toValue(h+e.len-a,!0)-(l*p||e.isXAxis&&e.pointRangePadding||0),f=u<d;p=e.hasVerticalPanning(),h=f?u:d,d=f?d:u;var g=e.panningState;!p||e.isXAxis||g&&!g.isDirty||e.series.forEach((function(t){var e=t.getProcessedData(!0);e=t.getExtremes(e.yData,!0),g||(g={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),W(e.dataMin)&&W(e.dataMax)&&(g.startMin=Math.min(V(t.options.threshold,1/0),e.dataMin,g.startMin),g.startMax=Math.max(V(t.options.threshold,-1/0),e.dataMax,g.startMax))})),p=Math.min(V(g&&g.startMin,c.dataMin),l?c.min:e.toValue(e.toPixels(c.min)-e.minPixelPadding)),u=Math.max(V(g&&g.startMax,c.dataMax),l?c.max:e.toValue(e.toPixels(c.max)+e.minPixelPadding)),e.panningState=g,e.isOrdinal||(0<(l=p-h)&&(d+=l,h=p),0<(l=d-u)&&(d=u,h-=l),e.series.length&&h!==c.min&&d!==c.max&&h>=p&&d<=u&&(e.setExtremes(h,d,!1,!1,{trigger:"pan"}),!i.resetZoomButton&&h!==p&&d!==u&&n.match("y")&&(i.showResetZoom(),e.displayBtn=!1),r=!0),s[o]=a)}})),U(s,(function(t,e){i[e]=t})),r&&i.redraw(!1),j(i.container,{cursor:"move"})}))},t}(),B(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t})),e(i,"Core/Legend/LegendSymbol.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.extend,o=t.merge,s=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.legendItem=this.legendItem||{},r=this.options,n=t.symbolWidth,a=t.symbolHeight,h=a/2,l=this.chart.renderer,p=e.group;t=t.baseline-Math.round(.3*t.fontMetrics.b);var c={},d=r.marker,u=0;this.chart.styledMode||(c={"stroke-width":Math.min(r.lineWidth||0,24)},r.dashStyle?c.dashstyle=r.dashStyle:"square"!==r.linecap&&(c["stroke-linecap"]="round")),e.line=l.path().addClass("highcharts-graph").attr(c).add(p),c["stroke-linecap"]&&(u=Math.min(e.line.strokeWidth(),n)/2),e.line.attr({d:[["M",u,t],["L",n-u,t]]}),d&&!1!==d.enabled&&n&&(r=Math.min(s(d.radius,h),h),0===this.symbol.indexOf("url")&&(d=o(d,{width:a,height:a}),r=0),e.symbol=e=l.symbol(this.symbol,n/2-r,t-r,2*r,2*r,i({context:"legend"},d)).addClass("highcharts-point").add(p),e.isMarker=!0)},t.drawRectangle=function(t,e){e=e.legendItem||{};var i=t.symbolHeight,o=t.options.squareSymbol;e.symbol=this.chart.renderer.rect(o?(t.symbolWidth-i)/2:0,t.baseline-i+1,o?i:t.symbolWidth,i,s(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.group)}}(e||(e={})),e})),e(i,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!=typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(i,"Core/Series/Series.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Point.js"],i["Core/Series/SeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a,h,l){var p=t.animObject,c=t.setAnimation,d=e.defaultOptions,u=i.registerEventOptions,f=o.hasTouch,g=o.svg,m=o.win,y=a.seriesTypes,v=l.arrayMax,x=l.arrayMin,b=l.clamp,S=l.cleanRecursively,k=l.correctFloat,M=l.defined,C=l.erase,w=l.error,P=l.extend,A=l.find,L=l.fireEvent,T=l.getNestedProperty,O=l.isArray,E=l.isNumber,j=l.isString,D=l.merge,I=l.objectEach,N=l.pick,R=l.removeEvent,B=l.splat,z=l.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){L(this,"init",{options:e});var i=this,o=t.series;this.eventsToUnbind=[],i.chart=t,i.options=i.setOptions(e),e=i.options,i.linkedSeries=[],i.bindAxes(),P(i,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),u(this,e);var s,r=e.events;(r&&r.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),i.getColor(),i.getSymbol(),i.parallelArrays.forEach((function(t){i[t+"Data"]||(i[t+"Data"]=[])})),i.isCartesian&&(t.hasCartesianSeries=!0),o.length&&(s=o[o.length-1]),i._i=N(s&&s._i,-1)+1,i.opacity=i.options.opacity,t.orderSeries(this.insert(o)),e.dataSorting&&e.dataSorting.enabled?i.setDataSortingOptions():i.points||i.data||i.setData(e.data,!1),L(this,"afterInit")},t.prototype.is=function(t){return y[t]&&this instanceof y[t]},t.prototype.insert=function(t){var e,i=this.options.index;if(E(i)){for(e=t.length;e--;)if(i>=N(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return N(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,i=e.options,o=e.chart;L(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(s){var r=0;o[s].forEach((function(o){t=o.options,(i[s]===r&&!t.isInternal||void 0!==i[s]&&i[s]===t.id||void 0===i[s]&&0===t.index)&&(e.insert(o.series),e[s]=o,o.isDirty=!0),t.isInternal||r++})),e[s]||e.optionalAxis===s||w(18,!0,o)}))})),L(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var i=t.series,o=arguments,s=E(e)?function(o){var s="y"===o&&i.toYData?i.toYData(t):t[o];i[o+"Data"][e]=s}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(o,2))};i.parallelArrays.forEach(s)},t.prototype.hasData=function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},t.prototype.autoIncrement=function(t){var e,i=this.options,o=i.pointIntervalUnit,s=i.relativeXValue,r=this.chart.time,n=this.xIncrement;return n=N(n,i.pointStart,0),this.pointInterval=e=N(this.pointInterval,i.pointInterval,1),s&&E(t)&&(e*=t),o&&(i=new r.Date(n),"day"===o?r.set("Date",i,r.get("Date",i)+e):"month"===o?r.set("Month",i,r.get("Month",i)+e):"year"===o&&r.set("FullYear",i,r.get("FullYear",i)+e),e=i.getTime()-n),s&&E(t)?n+e:(this.xIncrement=n+e,n)},t.prototype.setDataSortingOptions=function(){var t=this.options;P(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),M(t.pointRange)||(t.pointRange=1)},t.prototype.setOptions=function(t){var e=this.chart,i=e.options,o=i.plotOptions,s=e.userOptions||{};t=D(t),e=e.styledMode;var r={plotOptions:o,userOptions:t};L(this,"setOptions",r);var n=r.plotOptions[this.type],a=s.plotOptions||{};return this.userOptions=r.userOptions,s=D(n,o.series,s.plotOptions&&s.plotOptions[this.type],t),this.tooltipOptions=D(d.tooltip,d.plotOptions.series&&d.plotOptions.series.tooltip,d.plotOptions[this.type].tooltip,i.tooltip.userOptions,o.series&&o.series.tooltip,o[this.type].tooltip,t.tooltip),this.stickyTracking=N(t.stickyTracking,a[this.type]&&a[this.type].stickyTracking,a.series&&a.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||s.stickyTracking),null===n.marker&&delete s.marker,this.zoneAxis=s.zoneAxis,o=this.zones=(s.zones||[]).slice(),!s.negativeColor&&!s.negativeFillColor||s.zones||(i={value:s[this.zoneAxis+"Threshold"]||s.threshold||0,className:"highcharts-negative"},e||(i.color=s.negativeColor,i.fillColor=s.negativeFillColor),o.push(i)),o.length&&M(o[o.length-1].value)&&o.push(e?{}:{color:this.color,fillColor:this.fillColor}),L(this,"afterSetOptions",{options:s}),s},t.prototype.getName=function(){return N(this.options.name,"Series "+(this.index+1))},t.prototype.getCyclic=function(t,e,i){var o=this.chart,s=this.userOptions,r=t+"Index",n=t+"Counter",a=i?i.length:N(o.options.chart[t+"Count"],o[t+"Count"]);if(!e){var h=N(s[r],s["_"+r]);M(h)||(o.series.length||(o[n]=0),s["_"+r]=h=o[n]%a,o[n]+=1),i&&(e=i[h])}void 0!==h&&(this[r]=h),this[t]=e},t.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)},t.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},t.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},t.prototype.findPointIndex=function(t,e){var i,o,s=t.id,n=t.x,a=this.points,h=this.options.dataSorting;if(s)(h=this.chart.get(s))instanceof r&&(i=h);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(i=function(e){return!e.touched&&e.index===t.index},h&&h.matchByName?i=function(e){return!e.touched&&e.name===t.name}:this.options.relativeXValue&&(i=function(e){return!e.touched&&e.options.x===t.x}),!(i=A(a,i))))return;if(i){var l=i&&i.index;void 0!==l&&(o=!0)}return void 0===l&&E(n)&&(l=this.xData.indexOf(n,e)),-1!==l&&void 0!==l&&this.cropped&&(l=l>=this.cropStart?l-this.cropStart:l),!o&&E(l)&&a[l]&&a[l].touched&&(l=void 0),l},t.prototype.updateData=function(t,e){var i,o,s,r=this.options,n=r.dataSorting,a=this.points,h=[],l=this.requireSorting,p=t.length===a.length,c=!0;if(this.xIncrement=null,t.forEach((function(t,e){var o=M(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},c=o.x;o.id||E(c)?(-1===(o=this.findPointIndex(o,s))||void 0===o?h.push(t):a[o]&&t!==r.data[o]?(a[o].update(t,!1,null,!1),a[o].touched=!0,l&&(s=o+1)):a[o]&&(a[o].touched=!0),(!p||e!==o||n&&n.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)}),this),i)for(t=a.length;t--;)(o=a[t])&&!o.touched&&o.remove&&o.remove(!1,e);else!p||n&&n.enabled?c=!1:(t.forEach((function(t,e){t!==a[e].y&&a[e].update&&a[e].update(t,!1,null,!1)})),h.length=0);return a.forEach((function(t){t&&(t.touched=!1)})),!!c&&(h.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=v(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,i,o){void 0===e&&(e=!0);var s=this,r=s.points,n=r&&r.length||0,a=s.options,h=s.chart,l=a.dataSorting,p=s.xAxis,c=a.turboThreshold,d=this.xData,u=this.yData,f=s.pointArrayMap;f=f&&f.length;var g,m=a.keys,y=0,v=1,x=null;if(!h.options.chart.allowMutatingData){a.data&&delete s.options.data,s.userOptions.data&&delete s.userOptions.data;var b=D(!0,t)}if(b=(t=b||t||[]).length,l&&l.enabled&&(t=this.sortData(t)),h.options.chart.allowMutatingData&&!1!==o&&b&&n&&!s.cropped&&!s.hasGroupedData&&s.visible&&!s.boosted&&(g=this.updateData(t,i)),!g){if(s.xIncrement=null,s.colorCounter=0,this.parallelArrays.forEach((function(t){s[t+"Data"].length=0})),c&&b>c)if(x=s.getFirstValidPoint(t),E(x))for(i=0;i<b;i++)d[i]=this.autoIncrement(),u[i]=t[i];else if(O(x))if(f)if(x.length===f)for(i=0;i<b;i++)d[i]=this.autoIncrement(),u[i]=t[i];else for(i=0;i<b;i++)o=t[i],d[i]=o[0],u[i]=o.slice(1,f+1);else if(m&&(y=0<=(y=m.indexOf("x"))?y:0,v=0<=(v=m.indexOf("y"))?v:1),1===x.length&&(v=0),y===v)for(i=0;i<b;i++)d[i]=this.autoIncrement(),u[i]=t[i][v];else for(i=0;i<b;i++)o=t[i],d[i]=o[y],u[i]=o[v];else w(12,!1,h);else for(i=0;i<b;i++)void 0!==t[i]&&(o={series:s},s.pointClass.prototype.applyOptions.apply(o,[t[i]]),s.updateParallelArrays(o,i));for(u&&j(u[0])&&w(14,!0,h),s.data=[],s.options.data=s.userOptions.data=t,i=n;i--;)r[i]&&r[i].destroy&&r[i].destroy();p&&(p.minRange=p.userMinRange),s.isDirty=h.isDirtyBox=!0,s.isDirtyData=!!r,i=!1}"point"===a.legendType&&(this.processData(),this.generatePoints()),e&&h.redraw(i)},t.prototype.sortData=function(t){var e=this,i=e.options.dataSorting.sortKey||"y",o=function(t,e){return M(e)&&t.pointClass.prototype.optionsToObject.call({series:t},e)||{}};return t.forEach((function(i,s){t[s]=o(e,i),t[s].index=s}),this),t.concat().sort((function(t,e){return t=T(i,t),(e=T(i,e))<t?-1:e>t?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var i=e.options,s=i.data;i.dataSorting&&i.dataSorting.enabled||!s||(s.forEach((function(i,r){s[r]=o(e,i),t[r]&&(s[r].x=t[r].x,s[r].index=r)})),e.setData(s,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,i=this.options,o=i.cropThreshold,s=t||this.getExtremesFromAll||i.getExtremesFromAll,r=this.isCartesian;t=e&&e.val2lin,i=!(!e||!e.logarithmic);var n=0,a=this.xData,h=this.yData,l=this.requireSorting,p=!1,c=a.length;if(e){var d=(p=e.getExtremes()).min,u=p.max;p=!(!e.categories||e.names.length)}if(r&&this.sorted&&!s&&(!o||c>o||this.forceCrop))if(a[c-1]<d||a[0]>u)a=[],h=[];else if(this.yData&&(a[0]<d||a[c-1]>u)){var f=this.cropData(this.xData,this.yData,d,u);a=f.xData,h=f.yData,n=f.start,f=!0}for(o=a.length||1;--o;)if(0<(e=i?t(a[o])-t(a[o-1]):a[o]-a[o-1])&&(void 0===g||e<g))var g=e;else 0>e&&l&&!p&&(w(15,!1,this.chart),l=!1);return{xData:a,yData:h,cropped:f,cropStart:n,closestPointRange:g}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange,L(this,"afterProcessData")},t.prototype.cropData=function(t,e,i,o,s){var r,n=t.length,a=0,h=n;for(s=N(s,this.cropShoulder),r=0;r<n;r++)if(t[r]>=i){a=Math.max(0,r-s);break}for(i=r;i<n;i++)if(t[i]>o){h=i+s;break}return{xData:t.slice(a,h),yData:e.slice(a,h),start:a,end:h}},t.prototype.generatePoints=function(){var t=this.options,e=this.processedData||t.data,i=this.processedXData,o=this.processedYData,s=this.pointClass,r=i.length,n=this.cropStart||0,a=this.hasGroupedData,h=t.keys,l=[];t=t.dataGrouping&&t.dataGrouping.groupAll?n:0;var p,c,d=this.data;if(!d&&!a){var u=[];u.length=e.length,d=this.data=u}for(h&&a&&(this.options.keys=!1),c=0;c<r;c++){if(u=n+c,a){var f=(new s).init(this,[i[c]].concat(B(o[c])));f.dataGroup=this.groupMap[t+c],f.dataGroup.options&&(f.options=f.dataGroup.options,P(f,f.dataGroup.options),delete f.dataLabels)}else(f=d[u])||void 0===e[u]||(d[u]=f=(new s).init(this,e[u],i[c]));f&&(f.index=a?t+c:u,l[c]=f)}if(this.options.keys=h,d&&(r!==(p=d.length)||a))for(c=0;c<p;c++)c!==n||a||(c+=r),d[c]&&(d[c].destroyElements(),d[c].plotX=void 0);this.data=d,this.points=l,L(this,"afterGeneratePoints")},t.prototype.getXExtremes=function(t){return{min:x(t),max:v(t)}},t.prototype.getExtremes=function(t,e){var i=this.xAxis,o=this.yAxis,s=this.processedXData||this.xData,r=[],n=this.requireSorting?this.cropShoulder:0;o=!!o&&o.positiveValuesOnly;var a,h=0,l=0,p=0,c=(t=t||this.stackedYData||this.processedYData||[]).length;if(i){var d=i.getExtremes();h=d.min,l=d.max}for(a=0;a<c;a++){var u=s[a];d=t[a];var f=(E(d)||O(d))&&(d.length||0<d||!o);if(u=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!i||(s[a+n]||u)>=h&&(s[a-n]||u)<=l,f&&u)if(f=d.length)for(;f--;)E(d[f])&&(r[p++]=d[f]);else r[p++]=d}return t={activeYData:r,dataMin:x(r),dataMax:v(r)},L(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,i=0,o=null;null===o&&i<e;)o=t[i],i++;return o},t.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,o=i.stacking,s=this.xAxis,r=s.categories,n=this.enabledDataSorting,a=this.yAxis,h=this.points,l=h.length,p=this.pointPlacementToXValue(),c=!!p,d=i.threshold,u=i.startFromThreshold?d:0,f=this.zoneAxis||"y",g=Number.MAX_VALUE;for(t=0;t<l;t++){var m=h[t],y=m.x,v=void 0,x=void 0,S=m.y,C=m.low,w=o&&a.stacking&&a.stacking.stacks[(this.negStacks&&S<(u?0:d)?"-":"")+this.stackKey];if((a.positiveValuesOnly&&!a.validatePositiveValue(S)||s.positiveValuesOnly&&!s.validatePositiveValue(y))&&(m.isNull=!0),m.plotX=e=k(b(s.translate(y,0,0,0,1,p,"flags"===this.type),-1e5,1e5)),o&&this.visible&&w&&w[y]){var P=this.getStackIndicator(P,y,this.index);!m.isNull&&P.key&&(x=(v=w[y]).points[P.key]),v&&O(x)&&(C=x[0],S=x[1],C===u&&P.key===w[y].base&&(C=N(E(d)?d:a.min)),a.positiveValuesOnly&&M(C)&&0>=C&&(C=void 0),m.total=m.stackTotal=N(v.total),m.percentage=M(m.y)&&v.total?m.y/v.total*100:void 0,m.stackY=S,this.irregularWidths||v.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(m.yBottom=M(C)?b(a.translate(C,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(S=this.dataModify.modifyValue(S,t)),m.plotY=void 0,E(S)&&void 0!==(v=a.translate(S,!1,!0,!1,!0))&&(m.plotY=b(v,-1e5,1e5)),m.isInside=this.isPointInside(m),m.clientX=c?k(s.translate(y,0,0,0,1,p)):e,m.negative=m[f]<(i[f+"Threshold"]||d||0),m.category=N(r&&r[m.x],m.x),!m.isNull&&!1!==m.visible){void 0!==A&&(g=Math.min(g,Math.abs(e-A)));var A=e}m.zone=this.zones.length?m.getZone():void 0,!m.graphic&&this.group&&n&&(m.isNew=!0)}this.closestPointRangePx=g,L(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,i){var o=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!o.isInsidePlot(t.plotX,t.plotY,{inverted:o.inverted}))&&!1!==t.visible&&(i||!t.isNull)}))},t.prototype.getClipBox=function(){var t=this.chart,e=this.xAxis,i=this.yAxis,o=D(t.clipBox);return e&&e.len!==t.plotSizeX&&(o.width=e.len),i&&i.len!==t.plotSizeY&&(o.height=i.len),o},t.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},t.prototype.setClip=function(){var t=this.chart,e=this.group,i=this.markerGroup,o=t.sharedClips;t=t.renderer;var s=this.getClipBox(),r=this.getSharedClipKey(),n=o[r];n?n.animate(s):o[r]=n=t.clipRect(s),e&&e.clip(!1===this.options.clip?void 0:n),i&&i.clip()},t.prototype.animate=function(t){var e=this.chart,i=this.group,o=this.markerGroup,s=e.inverted,r=p(this.options.animation),n=[this.getSharedClipKey(),r.duration,r.easing,r.defer].join(),a=e.sharedClips[n],h=e.sharedClips[n+"m"];if(t&&i)r=this.getClipBox(),a?a.attr("height",r.height):(r.width=0,s&&(r.x=e.plotHeight),a=e.renderer.clipRect(r),e.sharedClips[n]=a,h=e.renderer.clipRect({x:-99,y:-99,width:s?e.plotWidth+199:99,height:s?99:e.plotHeight+199}),e.sharedClips[n+"m"]=h),i.clip(a),o&&o.clip(h);else if(a&&!a.hasClass("highcharts-animating")){e=this.getClipBox();var l=r.step;o&&o.element.childNodes.length&&(r.step=function(t,e){l&&l.apply(e,arguments),"width"===e.prop&&h&&h.element&&h.attr(s?"height":"width",t+99)}),a.addClass("highcharts-animating").animate(e,r)}},t.prototype.afterAnimate=function(){var t=this;this.setClip(),I(this.chart.sharedClips,(function(e,i,o){e&&!t.chart.container.querySelector('[clip-path="url(#'.concat(e.id,')"]'))&&(e.destroy(),delete o[i])})),this.finishedAnimating=!0,L(this,"afterAnimate")},t.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i,o=this.chart,s=o.styledMode,r=this.colorAxis,n=this.options.marker,a=this[this.specialGroup||"markerGroup"],h=this.xAxis,l=N(n.enabled,!(h&&!h.isRadial)||null,this.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(e=0;e<t.length;e++){var p=t[e],c=(i=p.graphic)?"animate":"attr",d=p.marker||{},u=!!p.marker;if((l&&void 0===d.enabled||d.enabled)&&!p.isNull&&!1!==p.visible){var f=N(d.symbol,this.symbol,"rect"),g=this.markerAttribs(p,p.selected&&"select");this.enabledDataSorting&&(p.startXPos=h.reversed?-(g.width||0):h.width);var m=!1!==p.isInside;!i&&m&&(0<(g.width||0)||p.hasImage)&&(p.graphic=i=o.renderer.symbol(f,g.x,g.y,g.width,g.height,u?d:n).add(a),this.enabledDataSorting&&o.hasRendered&&(i.attr({x:p.startXPos}),c="animate")),i&&"animate"===c&&i[m?"show":"hide"](m).animate(g),i&&(d=this.pointAttribs(p,s||!p.selected?void 0:"select"),s?r&&i.css({fill:d.fill}):i[c](d)),i&&i.addClass(p.getClassName(),!0)}else i&&(p.graphic=i.destroy())}},t.prototype.markerAttribs=function(t,e){var i=this.options,o=i.marker,s=t.marker||{},r=s.symbol||o.symbol,n={},a=N(s.radius,o&&o.radius);return e&&(o=o.states[e],e=s.states&&s.states[e],a=N(e&&e.radius,o&&o.radius,a&&a+(o&&o.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(a=0),t=t.pos(),E(a)&&t&&(n.x=t[0]-a,n.y=t[1]-a,i.crisp&&(n.x=Math.floor(n.x))),a&&(n.width=n.height=2*a),n},t.prototype.pointAttribs=function(t,e){var i=this.options.marker,o=t&&t.options,s=o&&o.marker||{},r=o&&o.color,n=t&&t.color,a=t&&t.zone&&t.zone.color,h=this.color;return t=N(s.lineWidth,i.lineWidth),o=1,h=r||a||n||h,r=s.fillColor||i.fillColor||h,n=s.lineColor||i.lineColor||h,e=e||"normal",i=i.states[e]||{},e=s.states&&s.states[e]||{},t=N(e.lineWidth,i.lineWidth,t+N(e.lineWidthPlus,i.lineWidthPlus,0)),r=e.fillColor||i.fillColor||r,{stroke:n=e.lineColor||i.lineColor||n,"stroke-width":t,fill:r,opacity:o=N(e.opacity,i.opacity,o)}},t.prototype.destroy=function(t){var e,i,o,s=this,r=s.chart,n=/AppleWebKit\/533/.test(m.navigator.userAgent),a=s.data||[];for(L(s,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(s.axisTypes||[]).forEach((function(t){(o=s[t])&&o.series&&(C(o.series,s),o.isDirty=o.forceRedraw=!0)})),s.legendItem&&s.chart.legend.destroyItem(s),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();s.clips&&s.clips.forEach((function(t){return t.destroy()})),l.clearTimeout(s.animationTimeout),I(s,(function(t,e){t instanceof h&&!t.survive&&t[n&&"group"===e?"hide":"destroy"]()})),r.hoverSeries===s&&(r.hoverSeries=void 0),C(r.series,s),r.orderSeries(),I(s,(function(e,i){t&&"hcEvents"===i||delete s[i]}))},t.prototype.applyZones=function(){var t,e,i,o,s,r,n,a,h=this,l=this.chart,p=l.renderer,c=this.zones,d=this.clips||[],u=this.graph,f=this.area,g=Math.max(l.plotWidth,l.plotHeight),m=this[(this.zoneAxis||"y")+"Axis"],y=l.inverted,v=!1;if(c.length&&(u||f)&&m&&void 0!==m.min){var x=m.reversed,S=m.horiz;u&&!this.showLine&&u.hide(),f&&f.hide();var k=m.getExtremes();c.forEach((function(c,M){t=x?S?l.plotWidth:0:S?0:m.toPixels(k.min)||0,t=b(N(e,t),0,g),e=b(Math.round(m.toPixels(N(c.value,k.max),!0)||0),0,g),v&&(t=e=m.toPixels(k.max)),o=Math.abs(t-e),s=Math.min(t,e),r=Math.max(t,e),m.isXAxis?(i={x:y?r:s,y:0,width:o,height:g},S||(i.x=l.plotHeight-i.x)):(i={x:0,y:y?r:s,width:g,height:o},S&&(i.y=l.plotWidth-i.y)),y&&p.isVML&&(i=m.isXAxis?{x:0,y:x?s:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}),d[M]?d[M].animate(i):d[M]=p.clipRect(i),n=h["zone-area-"+M],a=h["zone-graph-"+M],u&&a&&a.clip(d[M]),f&&n&&n.clip(d[M]),v=c.value>k.max,h.resetZones&&0===e&&(e=void 0)})),this.clips=d}else h.visible&&(u&&u.show(),f&&f.show())},t.prototype.plotGroup=function(t,e,i,o,s){var r=this[t],n=!r;return i={visibility:i,zIndex:o||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),n&&(this[t]=r=this.chart.renderer.g().add(s)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(M(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[n?"attr":"animate"](this.getPlotBox(e)),r},t.prototype.getPlotBox=function(t){var e=this.xAxis,i=this.yAxis,o=this.chart;return t=o.inverted&&!o.polar&&e&&!1!==this.invertible&&"series"===t,o.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:o.plotLeft,translateY:i?i.top:o.plotTop,rotation:t?90:0,rotationOriginX:t?(e.len-i.len)/2:0,rotationOriginY:t?(e.len+i.len)/2:0,scaleX:t?-1:1,scaleY:1}},t.prototype.removeEvents=function(t){t||R(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,i=t.options,o=p(i.animation),s=t.visible?"inherit":"hidden",r=i.zIndex,n=t.hasRendered,a=e.seriesGroup;e=!t.finishedAnimating&&e.renderer.isSVG?o.duration:0,L(this,"render"),t.plotGroup("group","series",s,r,a),t.markerGroup=t.plotGroup("markerGroup","markers",s,r,a),!1!==i.clip&&t.setClip(),t.animate&&e&&t.animate(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.animate&&e&&t.animate(),n||(e&&o.defer&&(e+=o.defer),t.animationTimeout=z((function(){t.afterAnimate()}),e||0)),t.isDirty=!1,t.hasRendered=!0,L(t,"afterRender")},t.prototype.redraw=function(){var t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var i=this.xAxis,o=this.yAxis,s=this.chart.inverted;return this.searchKDTree({clientX:s?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:s?o.len-t.chartX+o.pos:t.chartY-o.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,o,s){var r=t&&t.length;if(r){var n=i.kdAxisArray[o%s];return t.sort((function(t,e){return t[n]-e[n]})),{point:t[r=Math.floor(r/2)],left:e(t.slice(0,r),o+1,s),right:e(t.slice(r+1),o+1,s)}}}this.buildingKdTree=!0;var i=this,o=-1<i.options.findNearestPointBy.indexOf("y")?2:1;delete i.kdTree,z((function(){i.kdTree=e(i.getValidPoints(null,!i.directTouch),o,o),i.buildingKdTree=!1}),i.options.kdNow||t&&"touchstart"===t.type?0:1)},t.prototype.searchKDTree=function(t,e,i){var o=this,s=this.kdAxisArray[0],r=this.kdAxisArray[1],n=e?"distX":"dist";if(e=-1<o.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,a,h){var l=i.point,p=o.kdAxisArray[a%h],c=l,d=M(e[s])&&M(l[s])?Math.pow(e[s]-l[s],2):null,u=M(e[r])&&M(l[r])?Math.pow(e[r]-l[r],2):null;return u=(d||0)+(u||0),l.dist=M(u)?Math.sqrt(u):Number.MAX_VALUE,l.distX=M(d)?Math.sqrt(d):Number.MAX_VALUE,d=0>(p=e[p]-l[p])?"right":"left",i[u=0>p?"left":"right"]&&(c=(u=t(e,i[u],a+1,h))[n]<c[n]?u:l),i[d]&&Math.sqrt(p*p)<c[n]&&(c=(e=t(e,i[d],a+1,h))[n]<c[n]?e:c),c}(t,this.kdTree,e,e)},t.prototype.pointPlacementToXValue=function(){var t=this.options,e=t.pointRange,i=this.xAxis;return"between"===(t=t.pointPlacement)&&(t=i.reversed?-.5:.5),E(t)?t*(e||i.pointRange):0},t.prototype.isPointInside=function(t){var e=this.chart,i=this.xAxis,o=this.yAxis;return void 0!==t.plotY&&void 0!==t.plotX&&0<=t.plotY&&t.plotY<=(o?o.len:e.plotHeight)&&0<=t.plotX&&t.plotX<=(i?i.len:e.plotWidth)},t.prototype.drawTracker=function(){var t=this,e=t.options,i=e.trackByArea,o=[].concat(i?t.areaPath:t.graphPath),s=t.chart,r=s.pointer,n=s.renderer,a=s.options.tooltip.snap,h=t.tracker,l=function(e){s.hoverSeries!==t&&t.onMouseOver()},p="rgba(192,192,192,"+(g?1e-4:.002)+")";h?h.attr({d:o}):t.graph&&(t.tracker=n.path(o).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),s.styledMode||t.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:p,fill:i?p:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*a)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach((function(t){t&&(t.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",(function(t){r.onTrackerMouseOut(t)})),e.cursor&&!s.styledMode&&t.css({cursor:e.cursor}),f)&&t.on("touchstart",l)}))),L(this,"afterDrawTracker")},t.prototype.addPoint=function(t,e,i,o,s){var r=this.options,n=this.data,a=this.chart,h=this.xAxis;h=h&&h.hasNames&&h.names;var l,p=r.data,c=this.xData;e=N(e,!0);var d={series:this};this.pointClass.prototype.applyOptions.apply(d,[t]);var u=d.x,f=c.length;if(this.requireSorting&&u<c[f-1])for(l=!0;f&&c[f-1]>u;)f--;this.updateParallelArrays(d,"splice",f,0,0),this.updateParallelArrays(d,f),h&&d.name&&(h[u]=d.name),p.splice(f,0,t),(l||this.processedData)&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(n[0]&&n[0].remove?n[0].remove(!1):(n.shift(),this.updateParallelArrays(d,"shift"),p.shift())),!1!==s&&L(this,"addPoint",{point:d}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(o)},t.prototype.removePoint=function(t,e,i){var o=this,s=o.data,r=s[t],n=o.points,a=o.chart,h=function(){n&&n.length===s.length&&n.splice(t,1),s.splice(t,1),o.options.data.splice(t,1),o.updateParallelArrays(r||{series:o},"splice",t,1),r&&r.destroy(),o.isDirty=!0,o.isDirtyData=!0,e&&a.redraw()};c(i,a),e=N(e,!0),r?r.firePointEvent("remove",null,h):h()},t.prototype.remove=function(t,e,i,o){function s(){r.destroy(o),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),N(t,!0)&&n.redraw(e)}var r=this,n=r.chart;!1!==i?L(r,"remove",null,s):s()},t.prototype.update=function(t,e){t=S(t,this.userOptions),L(this,"update",{options:t});var i=this,o=i.chart,s=i.userOptions,r=i.initialType||i.type,n=o.options.plotOptions,a=y[r].prototype,h=i.finishedAnimating&&{animation:!1},l={},p=["eventOptions","navigatorSeries","baseSeries"],c=t.type||s.type||o.options.chart.type,d=!(this.hasDerivedData||c&&c!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||i.hasOptionChanged("dataGrouping")||i.hasOptionChanged("pointStart")||i.hasOptionChanged("pointInterval")||i.hasOptionChanged("pointIntervalUnit")||i.hasOptionChanged("keys"));if(c=c||r,d&&(p.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&p.push("area","graph"),i.parallelArrays.forEach((function(t){p.push(t+"Data")})),t.data&&(t.dataSorting&&P(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=D(s,h,{index:void 0===s.index?i.index:s.index,pointStart:N(n&&n.series&&n.series.pointStart,s.pointStart,i.xData[0])},!d&&{data:i.options.data},t),d&&t.data&&(t.data=i.options.data),(p=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(p)).forEach((function(t){p[t]=i[t],delete i[t]})),n=!1,y[c]){if(n=c!==i.type,i.remove(!1,!1,!1,!0),n)if(Object.setPrototypeOf)Object.setPrototypeOf(i,y[c].prototype);else{for(u in h=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents,a)i[u]=void 0;P(i,y[c].prototype),h?i.hcEvents=h:delete i.hcEvents}}else w(17,!0,o,{missingModuleFor:c});if(p.forEach((function(t){i[t]=p[t]})),i.init(o,t),d&&this.points){if(!1===(t=i.options).visible)l.graphic=1,l.dataLabel=1;else if(!i._hasPointLabels){a=t.marker;var u=t.dataLabels;s=s.marker||{},!a||!1!==a.enabled&&s.symbol===a.symbol&&s.height===a.height&&s.width===a.width||(l.graphic=1),u&&!1===u.enabled&&(l.dataLabel=1)}for(s=0,a=this.points;s<a.length;s++)(u=a[s])&&u.series&&(u.resolveColor(),Object.keys(l).length&&u.destroyElements(l),!1===t.showInLegend&&u.legendItem&&o.legend.destroyItem(u))}i.initialType=r,o.linkSeries(),n&&i.linkedSeries.length&&(i.isDirtyData=!0),L(this,"afterUpdate"),N(e,!0)&&o.redraw(!!d&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],i=this.chart.options.plotOptions,o=this.userOptions[t];return o?e!==o:e!==N(i&&i[this.type]&&i[this.type][t],i&&i.series&&i.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&L(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,i=e.tooltip,o=e.hoverPoint;e.hoverSeries=null,o&&o.onMouseOut(),this&&t.events.mouseOut&&L(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var i=this,o=i.options,s=i.graph,r=o.inactiveOtherPoints,n=o.states,a=N(n[t||"normal"]&&n[t||"normal"].animation,i.chart.options.chart.animation),h=o.lineWidth,l=0,p=o.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach((function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))})),i.state=t,!i.chart.styledMode)){if(n[t]&&!1===n[t].enabled)return;if(t&&(h=n[t].lineWidth||h+(n[t].lineWidthPlus||0),p=N(n[t].opacity,p)),s&&!s.dashstyle&&E(h))for(o={"stroke-width":h},s.animate(o,a);i["zone-graph-"+l];)i["zone-graph-"+l].animate(o,a),l+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:p},a)}))}e&&r&&i.points&&i.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var i=this,o=i.chart,s=o.options.chart.ignoreHiddenSeries,r=i.visible,n=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!r:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){i[t]&&i[t][n]()})),o.hoverSeries!==i&&(o.hoverPoint&&o.hoverPoint.series)!==i||i.onMouseOut(),i.legendItem&&o.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&o.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),i.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),s&&(o.isDirtyBox=!0),L(i,n),!1!==e&&o.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),L(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,i){return void 0===i&&(i={}),i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)},t.defaultOptions=n,t.types=a.seriesTypes,t.registerType=a.registerSeriesType,t}(),P(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:s.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:r,requireSorting:!0,sorted:!0}),a.series=t,t})),e(i,"Extensions/ScrollablePlotArea.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Series/Series.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r){var n=t.stop,a=r.addEvent,h=r.createElement,l=r.defined,p=r.merge,c=r.pick;a(i,"afterSetChartSize",(function(t){var i=this.options.chart.scrollablePlotArea,o=i&&i.minWidth;if(i=i&&i.minHeight,!this.renderer.forExport){if(o){if(this.scrollablePixelsX=o=Math.max(0,o-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=p(this.plotBox),this.plotBox.width=this.plotWidth+=o,this.inverted?this.clipBox.height+=o:this.clipBox.width+=o;var s={1:{name:"right",value:o}}}}else i&&(this.scrollablePixelsY=o=Math.max(0,i-this.chartHeight),l(o)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=p(this.plotBox),this.plotBox.height=this.plotHeight+=o,this.inverted?this.clipBox.width+=o:this.clipBox.height+=o,s={2:{name:"bottom",value:o}}));s&&!t.skipAxes&&this.axes.forEach((function(t){s[t.side]?t.getPlotLinePath=function(){var i=s[t.side].name,o=this[i];this[i]=o-s[t.side].value;var r=e.prototype.getPlotLinePath.apply(this,arguments);return this[i]=o,r}:(t.setAxisSize(),t.setAxisTranslation())}))}})),a(i,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),i.prototype.setUpScrolling=function(){var t,e=this,i={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(i.overflowX="auto"),this.scrollablePixelsY&&(i.overflowY="auto"),this.scrollingParent=h("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=h("div",{className:"highcharts-scrolling"},i,this.scrollingParent),a(this.scrollingContainer,"scroll",(function(){e.pointer&&(delete e.pointer.chartPosition,e.hoverPoint&&(t=e.hoverPoint),e.pointer.runPointActions(void 0,t,!0))})),this.innerContainer=h("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},i.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,o=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&o.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),o.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},i.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,i=e.scrollablePlotArea,o=s.getRendererType();t?(this.fixedDiv=h("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new o(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(i.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),a(this,"afterShowResetZoom",this.moveFixedElements),a(this,"afterApplyDrilldown",this.moveFixedElements),a(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),o=this.chartHeight+(this.scrollablePixelsY||0),n(this.container),this.container.style.width=e+"px",this.container.style.height=o+"px",this.renderer.boxWrapper.attr({width:e,height:o,viewBox:[0,0,e,o].join(" ")}),this.chartBackground.attr({width:e,height:o}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(i.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*i.scrollPositionX),i.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*i.scrollPositionY)),o=this.axisOffset,t=this.plotTop-o[0]-1,i=this.plotLeft-o[3]-1,e=this.plotTop+this.plotHeight+o[2]+1,o=this.plotLeft+this.plotWidth+o[1]+1;var r=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",r,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",r,e],["Z"]]:this.scrollablePixelsY?[["M",i,0],["L",i,this.plotTop-1],["L",o,this.plotTop-1],["L",o,0],["Z"],["M",i,l],["L",i,this.chartHeight],["L",o,this.chartHeight],["L",o,l],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},a(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),a(o,"show",(function(){this.chart.scrollableDirty=!0}))})),e(i,"Core/Axis/Stacking/StackItem.js",[i["Core/FormatUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=t.format,s=e.series,r=i.destroyObjectProperties,n=i.pick,a=i.isNumber;return t=function(){function t(t,e,i,o,s){var r=t.chart.inverted,n=t.reversed;this.axis=t,t=this.isNegative=!!i!=!!n,this.options=e=e||{},this.x=o,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(r?t?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":t?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?t?"right":"left":"center")}return t.prototype.destroy=function(){r(this,this.axis)},t.prototype.render=function(t){var e=this.axis.chart,i=this.options,s=i.format;s=s?o(s,this,e):i.formatter.call(this),this.label?this.label.attr({text:s,visibility:"hidden"}):(this.label=e.renderer.label(s,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels"),s={r:i.borderRadius||0,text:s,padding:n(i.padding,5),visibility:"hidden"},e.styledMode||(s.fill=i.backgroundColor,s.stroke=i.borderColor,s["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(s),this.label.added||this.label.add(t)),this.label.labelrank=e.plotSizeY},t.prototype.setOffset=function(t,e,i,o,r,h){var l=this.alignOptions,p=this.axis,c=this.label,d=this.options,u=this.textAlign,f=p.chart;t=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:o,defaultX:r,xAxis:h}),r=l.verticalAlign,c&&t&&(e=c.getBBox(),i=c.padding,o="justify"===n(d.overflow,"justify"),l.x=d.x||0,l.y=d.y||0,u=(r=this.adjustStackPosition({labelBox:e,verticalAlign:r,textAlign:u})).x,r=r.y,t.x-=u,t.y-=r,c.align(l,!1,t),(u=f.isInsidePlot(c.alignAttr.x+l.x+u,c.alignAttr.y+l.y+r))||(o=!1),o&&s.prototype.justifyDataLabel.call(p,c,l,c.alignAttr,e,t),c.attr({x:c.alignAttr.x,y:c.alignAttr.y,rotation:d.rotation,rotationOriginX:e.width/2,rotationOriginY:e.height/2}),n(!o&&d.crop,!0)&&(u=a(c.x)&&a(c.y)&&f.isInsidePlot(c.x-i+c.width,c.y)&&f.isInsidePlot(c.x+i,c.y)),c[u?"show":"hide"]())},t.prototype.adjustStackPosition=function(t){var e=t.labelBox,i={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:e.width/2+e.width/2*i[t.textAlign],y:e.height/2*i[t.verticalAlign]}},t.prototype.getStackBox=function(t){var e=this.axis,i=e.chart,o=t.boxTop,s=t.defaultX,r=t.xOffset,a=t.width,h=t.boxBottom;return o=e.stacking.usePercentage?100:n(o,this.total,0),o=e.toPixels(o),t=n(s,(t.xAxis||i.xAxis[0]).toPixels(this.x))+r,e=e.toPixels(h||0),e=Math.abs(o-e),h=this.isNegative,i.inverted?{x:(h?o:o-e)-i.plotLeft,y:t-i.plotTop,width:e,height:a}:{x:t-i.plotLeft,y:(h?o-e:o)-i.plotTop,width:a,height:e}},t}(),t})),e(i,"Core/Axis/Stacking/StackingAxis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/Axis.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Axis/Stacking/StackItem.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s){function r(){var t=this,e=t.inverted;t.yAxis.forEach((function(t){t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)})),t.series.forEach((function(i){var o=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,C(i.options.stack,""),e?o.top:o.left,e?o.height:o.width].join())}))}function n(){var t=this.stacking;if(t){var e=t.stacks;M(e,(function(t,i){x(t),e[i]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function a(){"yAxis"!==this.coll||this.stacking||(this.stacking=new w(this))}function h(t,e,i,o){return!v(t)||t.x!==e||o&&t.stackKey!==o?t={x:e,index:0,key:o,stackKey:o}:t.index++,t.key=[i,e,t.index].join(),t}function l(){var t,e=this,i=e.stackKey,o=e.yAxis.stacking.stacks,s=e.processedXData,r=e[e.options.stacking+"Stacker"];r&&[i,"-"+i].forEach((function(i){for(var n,a,h=s.length;h--;)n=s[h],t=e.getStackIndicator(t,n,e.index,i),(a=(n=o[i]&&o[i][n])&&n.points[t.key])&&r.call(e,a,n,h)}))}function p(t,e,i){e=e.total?100/e.total:0,t[0]=y(t[0]*e),t[1]=y(t[1]*e),this.stackedYData[i]=t[1]}function c(){var t=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?g.setStackedPoints.call(this,"group"):t&&M(t.stacks,(function(e,i){"group"===i.slice(-5)&&(M(e,(function(t){return t.destroy()})),delete t.stacks[i])}))}function d(t){var e=this.chart,i=t||this.options.stacking;if(i&&(!0===this.visible||!1===e.options.chart.ignoreHiddenSeries)){var s=this.processedXData,r=this.processedYData,n=[],a=r.length,h=this.options,l=h.threshold,p=C(h.startFromThreshold&&l,0);h=h.stack;var c,d,u="-"+(t=t?""+this.type+",".concat(i):this.stackKey),f=this.negStacks,g=(e="group"===i?e.yAxis[0]:this.yAxis).stacking.stacks,m=e.stacking.oldStacks;for(e.stacking.stacksTouched+=1,d=0;d<a;d++){var x=s[d],b=r[d],k=this.getStackIndicator(k,x,this.index),M=k.key,w=(c=f&&b<(p?0:l))?u:t;g[w]||(g[w]={}),g[w][x]||(m[w]&&m[w][x]?(g[w][x]=m[w][x],g[w][x].total=null):g[w][x]=new o(e,e.options.stackLabels,!!c,x,h)),w=g[w][x],null!==b?(w.points[M]=w.points[this.index]=[C(w.cumulative,p)],v(w.cumulative)||(w.base=M),w.touched=e.stacking.stacksTouched,0<k.index&&!1===this.singleStacks&&(w.points[M][0]=w.points[this.index+","+x+",0"][0])):w.points[M]=w.points[this.index]=null,"percent"===i?(c=c?t:u,f&&g[c]&&g[c][x]?(c=g[c][x],w.total=c.total=Math.max(c.total,w.total)+Math.abs(b)||0):w.total=y(w.total+(Math.abs(b)||0))):"group"===i?(S(b)&&(b=b[0]),null!==b&&(w.total=(w.total||0)+1)):w.total=y(w.total+(b||0)),w.cumulative="group"===i?(w.total||1)-1:C(w.cumulative,p)+(b||0),null!==b&&(w.points[M].push(w.cumulative),n[d]=w.cumulative,w.hasValidPoints=!0)}"percent"===i&&(e.stacking.usePercentage=!0),"group"!==i&&(this.stackedYData=n),e.stacking.oldStacks={}}}var u,f=t.getDeferredAnimation,g=i.series.prototype,m=s.addEvent,y=s.correctFloat,v=s.defined,x=s.destroyObjectProperties,b=s.fireEvent,S=s.isArray,k=s.isNumber,M=s.objectEach,C=s.pick,w=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,i=e.series,o=e.options.reversedStacks,s=i.length;for(this.usePercentage=!1,t=s;t--;){var r=i[o?t:s-t-1];r.setStackedPoints(),r.setGroupedPoints()}for(t=0;t<s;t++)i[t].modifyStacks();b(e,"afterBuildStacks")},t.prototype.cleanStacks=function(){if(this.oldStacks)var t=this.stacks=this.oldStacks;M(t,(function(t){M(t,(function(t){t.cumulative=t.total}))}))},t.prototype.resetStacks=function(){var t=this;M(this.stacks,(function(e){M(e,(function(i,o){k(i.touched)&&i.touched<t.stacksTouched?(i.destroy(),delete e[o]):(i.total=null,i.cumulative=null)}))}))},t.prototype.renderStackTotals=function(){var t=this.axis,e=t.chart,i=e.renderer,o=this.stacks;t=f(e,t.options.stackLabels&&t.options.stackLabels.animation||!1);var s=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(e.plotLeft,e.plotTop),M(o,(function(t){M(t,(function(t){t.render(s)}))})),s.animate({opacity:1},t)},t}();return function(t){var e=[];t.compose=function(t,i,o){-1===e.indexOf(t)&&(e.push(t),m(t,"init",a),m(t,"destroy",n)),-1===e.indexOf(i)&&(e.push(i),i.prototype.getStacks=r),-1===e.indexOf(o)&&(e.push(o),(t=o.prototype).getStackIndicator=h,t.modifyStacks=l,t.percentStacker=p,t.setGroupedPoints=c,t.setStackedPoints=d)}}(u||(u={})),u})),e(i,"Series/Line/LineSeries.js",[i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=i.defined,r=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.prototype.drawGraph=function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),o=this.chart.styledMode,s=[["graph","highcharts-graph"]];o||s[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(s=t.getZonesGraphs(s)).forEach((function(s,r){var n=s[0],a=t[n],h=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(t[n]=a=t.chart.renderer.path(i).addClass(s[1]).attr({zIndex:1}).add(t.group)),a&&!o&&(n={stroke:s[2],"stroke-width":e.lineWidth||0,fill:t.fillGraph&&t.color||"none"},s[3]?n.dashstyle=s[3]:"square"!==e.linecap&&(n["stroke-linecap"]=n["stroke-linejoin"]="round"),a[h](n).shadow(2>r&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)}))},i.prototype.getGraphPath=function(t,e,i){var o,r=this,n=r.options,a=[],h=[],l=n.step,p=(t=t||r.points).reversed;return p&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&p&&(l=4-l),(t=this.getValidPoints(t,!1,!(n.connectNulls&&!e&&!i))).forEach((function(p,c){var d=p.plotX,u=p.plotY,f=t[c-1];(p.leftCliff||f&&f.rightCliff)&&!i&&(o=!0),p.isNull&&!s(e)&&0<c?o=!n.connectNulls:p.isNull&&!e?o=!0:(0===c||o?c=[["M",p.plotX,p.plotY]]:r.getPointSpline?c=[r.getPointSpline(t,p,c)]:l?(c=1===l?[["L",f.plotX,u]]:2===l?[["L",(f.plotX+d)/2,f.plotY],["L",(f.plotX+d)/2,u]]:[["L",d,f.plotY]]).push(["L",d,u]):c=[["L",d,u]],h.push(p.x),l&&(h.push(p.x),2===l&&h.push(p.x)),a.push.apply(a,c),o=!1)})),a.xMap=h,r.graphPath=a},i.prototype.getZonesGraphs=function(t){return this.zones.forEach((function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)}),this),t},i.defaultOptions=r(t.defaultOptions,{}),i}(t),e.registerSeriesType("line",i),i})),e(i,"Series/Area/AreaSeries.js",[i["Core/Color/Color.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=t.parse,n=i.seriesTypes.line;t=o.extend;var a=o.merge,h=o.objectEach,l=o.pick;return o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return s(e,t),e.prototype.drawGraph=function(){this.areaPath=[],t.prototype.drawGraph.apply(this);var e=this,i=this.areaPath,o=this.options,s=[["area","highcharts-area",this.color,o.fillColor]];this.zones.forEach((function(t,i){s.push(["zone-area-"+i,"highcharts-area highcharts-zone-area-"+i+" "+t.className,t.color||e.color,t.fillColor||o.fillColor])})),s.forEach((function(t){var s=t[0],n={},a=e[s],h=a?"animate":"attr";a?(a.endX=e.preventGraphAnimation?null:i.xMap,a.animate({d:i})):(n.zIndex=0,(a=e[s]=e.chart.renderer.path(i).addClass(t[1]).add(e.group)).isArea=!0),e.chart.styledMode||(n.fill=l(t[3],r(t[2]).setOpacity(l(o.fillOpacity,.75)).get())),a[h](n),a.startX=i.xMap,a.shiftUnit=o.step?2:1}))},e.prototype.getGraphPath=function(t){var e=n.prototype.getGraphPath,i=this.options,o=i.stacking,s=this.yAxis,r=[],a=[],h=this.index,p=s.stacking.stacks[this.stackKey],c=i.threshold,d=Math.round(s.getThreshold(i.threshold));i=l(i.connectNulls,"percent"===o);var u=function(e,i,n){var l=t[e];e=o&&p[l.x].points[h];var u=l[n+"Null"]||0;if(n=l[n+"Cliff"]||0,l=!0,n||u){var f=(u?e[0]:e[1])+n,g=e[0]+n;l=!!u}else!o&&t[i]&&t[i].isNull&&(f=g=c);void 0!==f&&(a.push({plotX:y,plotY:null===f?d:s.getThreshold(f),isNull:l,isCliff:!0}),r.push({plotX:y,plotY:null===g?d:s.getThreshold(g),doCurve:!1}))};t=t||this.points,o&&(t=this.getStackPoints(t));for(var f=0,g=t.length;f<g;++f){o||(t[f].leftCliff=t[f].rightCliff=t[f].leftNull=t[f].rightNull=void 0);var m=t[f].isNull,y=l(t[f].rectPlotX,t[f].plotX),v=o?l(t[f].yBottom,d):d;m&&!i||(i||u(f,f-1,"left"),m&&!o&&i||(a.push(t[f]),r.push({x:f,plotX:y,plotY:v})),i||u(f,f+1,"right"))}return u=e.call(this,a,!0,!0),r.reversed=!0,(v=(m=e.call(this,r,!0,!0))[0])&&"M"===v[0]&&(m[0]=["L",v[1],v[2]]),(m=u.concat(m)).length&&m.push(["Z"]),e=e.call(this,a,!1,i),m.xMap=u.xMap,this.areaPath=m,e},e.prototype.getStackPoints=function(t){var e=this,i=[],o=[],s=this.xAxis,r=this.yAxis,n=r.stacking.stacks[this.stackKey],a={},p=r.series,c=p.length,d=r.options.reversedStacks?1:-1,u=p.indexOf(e);if(t=t||this.points,this.options.stacking){for(var f=0;f<t.length;f++)t[f].leftNull=t[f].rightNull=void 0,a[t[f].x]=t[f];h(n,(function(t,e){null!==t.total&&o.push(e)})),o.sort((function(t,e){return t-e}));var g=p.map((function(t){return t.visible}));o.forEach((function(t,h){var f,m,y=0;if(a[t]&&!a[t].isNull)i.push(a[t]),[-1,1].forEach((function(i){var s=1===i?"rightNull":"leftNull",r=n[o[h+i]],l=0;if(r)for(var y=u;0<=y&&y<c;){var v=p[y].index;(f=r.points[v])||(v===e.index?a[t][s]=!0:g[y]&&(m=n[t].points[v])&&(l-=m[1]-m[0])),y+=d}a[t][1===i?"rightCliff":"leftCliff"]=l}));else{for(var v=u;0<=v&&v<c;){if(f=n[t].points[p[v].index]){y=f[1];break}v+=d}y=l(y,0),y=r.translate(y,0,1,0,1),i.push({isNull:!0,plotX:s.translate(t,0,0,0,1),x:t,plotY:y,yBottom:y})}}))}return i},e.defaultOptions=a(n.defaultOptions,{threshold:0}),e}(n),t(o.prototype,{singleStacks:!1,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType("area",o),o})),e(i,"Series/Spline/SplineSeries.js",[i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),o=t.seriesTypes.line,s=e.merge,r=e.pick;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return i(e,t),e.prototype.getPointSpline=function(t,e,i){var o=e.plotX||0,s=e.plotY||0,n=t[i-1];if(i=t[i+1],n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff&&i&&!i.isNull&&!1!==i.doCurve&&!e.isCliff){t=n.plotY||0;var a=i.plotX||0;i=i.plotY||0;var h=0,l=(1.5*o+(n.plotX||0))/2.5,p=(1.5*s+t)/2.5,c=(1.5*s+i)/2.5;(a=(1.5*o+a)/2.5)!==l&&(h=(c-p)*(a-o)/(a-l)+s-c),c+=h,(p+=h)>t&&p>s?c=2*s-(p=Math.max(t,s)):p<t&&p<s&&(c=2*s-(p=Math.min(t,s))),c>i&&c>s?p=2*s-(c=Math.max(i,s)):c<i&&c<s&&(p=2*s-(c=Math.min(i,s))),e.rightContX=a,e.rightContY=c}return e=["C",r(n.rightContX,n.plotX,0),r(n.rightContY,n.plotY,0),r(l,o,0),r(p,s,0),o,s],n.rightContX=n.rightContY=void 0,e},e.defaultOptions=s(o.defaultOptions),e}(o),t.registerSeriesType("spline",e),e})),e(i,"Series/AreaSpline/AreaSplineSeries.js",[i["Series/Spline/SplineSeries.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o){var s=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),r=i.seriesTypes,n=r.area;r=r.area.prototype;var a=o.extend,h=o.merge;return o=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.points=void 0,t.options=void 0,t}return s(i,e),i.defaultOptions=h(t.defaultOptions,n.defaultOptions),i}(t),a(o.prototype,{getGraphPath:r.getGraphPath,getStackPoints:r.getStackPoints,drawGraph:r.drawGraph,drawLegendSymbol:e.drawRectangle}),i.registerSeriesType("areaspline",o),o})),e(i,"Series/Column/ColumnSeriesDefaults.js",[],(function(){return{borderRadius:0,centerInCategory:!1,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:void 0,verticalAlign:void 0,y:void 0},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"}})),e(i,"Series/Column/ColumnSeries.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Series/Column/ColumnSeriesDefaults.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a){var h=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),l=t.animObject,p=e.parse,c=o.hasTouch;t=o.noop;var d=a.clamp,u=a.defined,f=a.extend,g=a.fireEvent,m=a.isArray,y=a.isNumber,v=a.merge,x=a.pick,b=a.objectEach;return a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.borderWidth=void 0,e.data=void 0,e.group=void 0,e.options=void 0,e.points=void 0,e}return h(e,t),e.prototype.animate=function(t){var e=this,i=this.yAxis,o=e.options,s=this.chart.inverted,r={},n=s?"translateX":"translateY";if(t)r.scaleY=.001,t=d(i.toPixels(o.threshold),i.pos,i.pos+i.len),s?r.translateX=t-i.len:r.translateY=t,e.clipBox&&e.setClip(),e.group.attr(r);else{var a=Number(e.group.attr(n));e.group.animate({scaleY:1},f(l(e.options.animation),{step:function(t,o){e.group&&(r[n]=a+o.pos*(i.pos-a),e.group.attr(r))}}))}},e.prototype.init=function(e,i){t.prototype.init.apply(this,arguments);var o=this;(e=o.chart).hasRendered&&e.series.forEach((function(t){t.type===o.type&&(t.isDirty=!0)}))},e.prototype.getColumnMetrics=function(){var t=this,e=t.options,i=t.xAxis,o=t.yAxis,s=i.options.reversedStacks;s=i.reversed&&!s||!i.reversed&&s;var r,n={},a=0;!1===e.grouping?a=1:t.chart.series.forEach((function(e){var i=e.yAxis,s=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&o.len===i.len&&o.pos===i.pos){if(s.stacking&&"group"!==s.stacking){r=e.stackKey,void 0===n[r]&&(n[r]=a++);var h=n[r]}else!1!==s.grouping&&(h=a++);e.columnIndex=h}}));var h=Math.min(Math.abs(i.transA)*(i.ordinal&&i.ordinal.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),l=h*e.groupPadding,p=(h-2*l)/(a||1);return e=Math.min(e.maxPointWidth||i.len,x(e.pointWidth,p*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(p-e)/2+(l+((t.columnIndex||0)+(s?1:0))*p-h/2)*(s?-1:1),paddedWidth:p,columnCount:a},t.columnMetrics},e.prototype.crispCol=function(t,e,i,o){var s=this.chart,r=this.borderWidth,n=-(r%2?.5:0);return r=r%2?.5:1,s.inverted&&s.renderer.isVML&&(r+=1),this.options.crisp&&(i=Math.round(t+i)+n,i-=t=Math.round(t)+n),o=Math.round(e+o)+r,n=.5>=Math.abs(e)&&.5<o,o-=e=Math.round(e)+r,n&&o&&(--e,o+=1),{x:t,y:e,width:i,height:o}},e.prototype.adjustForMissingColumns=function(t,e,i,o){var s=this,r=this.options.stacking;if(!i.isNull&&1<o.columnCount){var n=this.yAxis.options.reversedStacks,a=0,h=n?0:-o.columnCount;b(this.yAxis.stacking&&this.yAxis.stacking.stacks,(function(t){if("number"==typeof i.x){var e=t[i.x.toString()];e&&(t=e.points[s.index],r?(t&&(a=h),e.hasValidPoints&&(n?h++:h--)):m(t)&&(t=Object.keys(e.points).filter((function(t){return!t.match(",")&&e.points[t]&&1<e.points[t].length})).map(parseFloat).sort((function(t,e){return e-t})),a=t.indexOf(s.index),h=t.length))}})),t=(i.plotX||0)+((h-1)*o.paddedWidth+e)/2-e-a*o.paddedWidth}return t},e.prototype.translate=function(){var t=this,e=t.chart,i=t.options,o=t.dense=2>t.closestPointRange*t.xAxis.transA;o=t.borderWidth=x(i.borderWidth,o?0:1);var s=t.xAxis,n=t.yAxis,a=i.threshold,h=t.translatedThreshold=n.getThreshold(a),l=x(i.minPointLength,5),p=t.getColumnMetrics(),c=p.width,f=t.pointXOffset=p.offset,g=t.dataMin,m=t.dataMax,v=t.barW=Math.max(c,1+2*o);e.inverted&&(h-=.5),i.pointPadding&&(v=Math.ceil(v)),r.prototype.translate.apply(t),t.points.forEach((function(o){var r=x(o.yBottom,h),b=999+Math.abs(r),S=o.plotX||0;b=d(o.plotY,-b,n.len+b);var k=Math.min(b,r),M=Math.max(b,r)-k,C=c,w=S+f,P=v;l&&Math.abs(M)<l&&(M=l,S=!n.reversed&&!o.negative||n.reversed&&o.negative,y(a)&&y(m)&&o.y===a&&m<=a&&(n.min||0)<a&&(g!==m||(n.max||0)<=a)&&(S=!S),k=Math.abs(k-h)>l?r-l:h-(S?l:0)),u(o.options.pointWidth)&&(C=P=Math.ceil(o.options.pointWidth),w-=Math.round((C-c)/2)),i.centerInCategory&&(w=t.adjustForMissingColumns(w,C,o,p)),o.barX=w,o.pointWidth=C,o.tooltipPos=e.inverted?[d(n.len+n.pos-e.plotLeft-b,n.pos-e.plotLeft,n.len+n.pos-e.plotLeft),s.len+s.pos-e.plotTop-w-P/2,M]:[s.left-e.plotLeft+w+P/2,d(b+n.pos-e.plotTop,n.pos-e.plotTop,n.len+n.pos-e.plotTop),M],o.shapeType=t.pointClass.prototype.shapeType||"rect",o.shapeArgs=t.crispCol.apply(t,o.isNull?[w,h,P,0]:[w,k,P,M])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var i=this.options,o=this.pointAttrToOptions||{},s=o.stroke||"borderColor",r=o["stroke-width"]||"borderWidth",n=t&&t.color||this.color,a=t&&t[s]||i[s]||n;o=t&&t.options.dashStyle||i.dashStyle;var h=t&&t[r]||i[r]||this[r]||0,l=x(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var c=t.getZone();n=t.options.color||c&&(c.color||t.nonZonedColor)||this.color,c&&(a=c.borderColor||a,o=c.dashStyle||o,h=c.borderWidth||h)}return e&&t&&(e=(t=v(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,n=t.color||void 0!==e&&p(n).brighten(t.brightness).get()||n,a=t[s]||a,h=t[r]||h,o=t.dashStyle||o,l=x(t.opacity,l)),s={fill:n,stroke:a,"stroke-width":h,opacity:l},o&&(s.dashstyle=o),s},e.prototype.drawPoints=function(t){void 0===t&&(t=this.points);var e,i=this,o=this.chart,s=i.options,r=o.renderer,n=s.animationLimit||250;t.forEach((function(t){var a=t.graphic,h=!!a,l=a&&o.pointCount<n?"animate":"attr";y(t.plotY)&&null!==t.y?(e=t.shapeArgs,a&&t.hasNewShapeType()&&(a=a.destroy()),i.enabledDataSorting&&(t.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),a||(t.graphic=a=r[t.shapeType](e).add(t.group||i.group))&&i.enabledDataSorting&&o.hasRendered&&o.pointCount<n&&(a.attr({x:t.startXPos}),h=!0,l="animate"),a&&h&&a[l](v(e)),s.borderRadius&&a[l]({r:s.borderRadius}),o.styledMode||a[l](i.pointAttribs(t,t.selected&&"select")).shadow(!1!==t.allowShadow&&s.shadow,null,s.stacking&&!s.borderRadius),a&&(a.addClass(t.getClassName(),!0),a.attr({visibility:t.visible?"inherit":"hidden"}))):a&&(t.graphic=a.destroy())}))},e.prototype.drawTracker=function(t){void 0===t&&(t=this.points);var e,i=this,o=i.chart,s=o.pointer,r=function(t){var e=s.getPointFromEvent(t);void 0!==e&&(s.isDirectTouch=!0,e.onMouseOver(t))};t.forEach((function(t){e=m(t.dataLabels)?t.dataLabels:t.dataLabel?[t.dataLabel]:[],t.graphic&&(t.graphic.element.point=t),e.forEach((function(e){e.div?e.div.point=t:e.element.point=t}))})),i._hasTracking||(i.trackerGroups.forEach((function(t){i[t]&&(i[t].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",(function(t){s.onTrackerMouseOut(t)})),c&&i[t].on("touchstart",r),!o.styledMode&&i.options.cursor&&i[t].css({cursor:i.options.cursor}))})),i._hasTracking=!0),g(this,"afterDrawTracker")},e.prototype.remove=function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),r.prototype.remove.apply(t,arguments)},e.defaultOptions=v(r.defaultOptions,i),e}(r),f(a.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:s.drawRectangle,getSymbol:t,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),n.registerSeriesType("column",a),a})),e(i,"Core/Series/DataLabel.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/FormatUtilities.js"],i["Core/Utilities.js"]],(function(t,e,i){var o,s=t.getDeferredAnimation,r=e.format,n=i.defined,a=i.extend,h=i.fireEvent,l=i.isArray,p=i.isString,c=i.merge,d=i.objectEach,u=i.pick,f=i.splat;return function(t){function e(t,e,i,o,s){var r=this,h=this.chart,l=this.isCartesian&&h.inverted,p=this.enabledDataSorting,c=t.plotX,d=t.plotY,f=i.rotation,g=i.align,m=n(c)&&n(d)&&h.isInsidePlot(c,Math.round(d),{inverted:l,paneCoordinates:!0,series:r});d=function(i){p&&r.xAxis&&!y&&r.setDataLabelStartPos(t,e,s,m,i)};var y="justify"===u(i.overflow,p?"none":"justify");if(c=this.visible&&!1!==t.visible&&n(c)&&(t.series.forceDL||p&&!y||m||u(i.inside,!!this.options.stacking)&&o&&h.isInsidePlot(c,l?o.x+1:o.y+o.height-1,{inverted:l,paneCoordinates:!0,series:r})),l=t.pos(),c&&l){f&&e.attr({align:g}),g=e.getBBox(!0);var v=[0,0],x=h.renderer.fontMetrics(h.styledMode?void 0:i.style.fontSize,e).b;o=a({x:l[0],y:Math.round(l[1]),width:0,height:0},o),a(i,{width:g.width,height:g.height}),f?(y=!1,v=h.renderer.rotCorr(x,f),x={x:o.x+(i.x||0)+o.width/2+v.x,y:o.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*o.height},v=[g.x-Number(e.attr("x")),g.y-Number(e.attr("y"))],d(x),e[s?"attr":"animate"](x)):(d(o),e.align(i,void 0,o),x=e.alignAttr),y&&0<=o.height?this.justifyDataLabel(e,i,x,g,o,s):u(i.crop,!0)&&(o=x.x,d=x.y,o+=v[0],d+=v[1],c=h.isInsidePlot(o,d,{paneCoordinates:!0,series:r})&&h.isInsidePlot(o+g.width,d+g.height,{paneCoordinates:!0,series:r})),i.shape&&!f&&e[s?"attr":"animate"]({anchorX:l[0],anchorY:l[1]})}s&&p&&(e.placed=!1),c||p&&!y?e.show():(e.hide(),e.placed=!1)}function i(t){void 0===t&&(t=this.points);var e=this,i=e.chart,o=e.options,a=e.hasRendered||0,c=i.renderer,m=i.options.chart,y=m.backgroundColor;m=m.plotBackgroundColor;var v=c.getContrast(p(m)&&m||p(y)&&y||"#000000"),x=o.dataLabels;if(y=x.animation,y=x.defer?s(i,y,e):{defer:0,duration:0},x=g(g(i.options.plotOptions&&i.options.plotOptions.series&&i.options.plotOptions.series.dataLabels,i.options.plotOptions&&i.options.plotOptions[e.type]&&i.options.plotOptions[e.type].dataLabels),x),h(this,"drawDataLabels"),l(x)||x.enabled||e._hasPointLabels){var b=e.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",x.zIndex||6);b.attr({opacity:+a}),!a&&(a=e.dataLabelsGroup)&&(e.visible&&b.show(),a[o.animation?"animate":"attr"]({opacity:1},y)),t.forEach((function(t){f(g(x,t.dlOptions||t.options&&t.options.dataLabels)).forEach((function(s,a){var h=s.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t<i||">="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(t,s),l=t.connectors?t.connectors[a]:t.connector,p=t.dataLabels?t.dataLabels[a]:t.dataLabel,f=!p,g=u(s.distance,t.labelDistance);if(h){var m=t.getLabelConfig(),y=u(s[t.formatPrefix+"Format"],s.format);m=n(y)?r(y,m,i):(s[t.formatPrefix+"Formatter"]||s.formatter).call(m,s),y=s.style;var x=s.rotation;i.styledMode||(y.color=u(s.color,y.color,e.color,"#000000"),"contrast"===y.color?(t.contrastColor=c.getContrast(t.color||e.color),y.color=!n(g)&&s.inside||0>g||o.stacking?t.contrastColor:v):delete t.contrastColor,o.cursor&&(y.cursor=o.cursor));var S={r:s.borderRadius||0,rotation:x,padding:s.padding,zIndex:1};if(!i.styledMode){g=s.backgroundColor;var k=s.borderColor;S.fill="auto"===g?t.color:g,S.stroke="auto"===k?t.color:k,S["stroke-width"]=s.borderWidth}d(S,(function(t,e){void 0===t&&delete S[e]}))}!p||h&&n(m)&&!!p.div==!!s.useHTML&&(p.rotation&&s.rotation||p.rotation===s.rotation)||(f=!0,t.dataLabel=p=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[a]),a||delete t.dataLabel,l&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[a]))),h&&n(m)?(p?S.text=m:(t.dataLabels=t.dataLabels||[],p=t.dataLabels[a]=x?c.text(m,0,0,s.useHTML).addClass("highcharts-data-label"):c.label(m,0,0,s.shape,null,null,s.useHTML,null,"data-label"),a||(t.dataLabel=p),p.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(s.className||"")+(s.useHTML?" highcharts-tracker":""))),p.options=s,p.attr(S),i.styledMode||p.css(y).shadow(s.shadow),(a=s[t.formatPrefix+"TextPath"]||s.textPath)&&!s.useHTML&&(p.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(p)||t.graphic,a),t.dataLabelPath&&!a.enabled&&(t.dataLabelPath=t.dataLabelPath.destroy())),p.added||p.add(b),e.alignDataLabel(t,p,s,null,f)):p&&p.hide()}))}))}h(this,"afterDrawDataLabels")}function o(t,e,i,o,s,r){var n=this.chart,a=e.align,h=e.verticalAlign,l=t.box?0:t.padding||0,p=e.x;p=void 0===p?0:p;var c=e.y;c=void 0===c?0:c;var d=(i.x||0)+l;if(0>d){"right"===a&&0<=p?(e.align="left",e.inside=!0):p-=d;var u=!0}return(d=(i.x||0)+o.width-l)>n.plotWidth&&("left"===a&&0>=p?(e.align="right",e.inside=!0):p+=n.plotWidth-d,u=!0),0>(d=i.y+l)&&("bottom"===h&&0<=c?(e.verticalAlign="top",e.inside=!0):c-=d,u=!0),(d=(i.y||0)+o.height-l)>n.plotHeight&&("top"===h&&0>=c?(e.verticalAlign="bottom",e.inside=!0):c+=n.plotHeight-d,u=!0),u&&(e.x=p,e.y=c,t.placed=!r,t.align(e,void 0,s)),u}function g(t,e){var i,o=[];if(l(t)&&!l(e))o=t.map((function(t){return c(t,e)}));else if(l(e)&&!l(t))o=e.map((function(e){return c(t,e)}));else if(l(t)||l(e))for(i=Math.max(t.length,e.length);i--;)o[i]=c(t[i],e[i]);else o=c(t,e);return o}function m(t,e,i,o,s){var r=this.chart,n=r.inverted,a=this.xAxis,h=a.reversed,l=n?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=n?s.x:h?-l-t:a.width-l+t,e.startYPos=n?h?this.yAxis.height-l+t:-l-t:s.y,o?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var y=[];t.compose=function(t){if(-1===y.indexOf(t)){var s=t.prototype;y.push(t),s.alignDataLabel=e,s.drawDataLabels=i,s.justifyDataLabel=o,s.setDataLabelStartPos=m}}}(o||(o={})),o})),e(i,"Series/Column/ColumnDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o,s=e.series,r=i.merge,n=i.pick;return function(e){function i(t,e,i,o,a){var h=this.chart.inverted,l=t.series,p=(l.xAxis?l.xAxis.len:this.chart.plotSizeX)||0;l=(l.yAxis?l.yAxis.len:this.chart.plotSizeY)||0;var c=t.dlBox||t.shapeArgs,d=n(t.below,t.plotY>n(this.translatedThreshold,l)),u=n(i.inside,!!this.options.stacking);c&&(0>(o=r(c)).y&&(o.height+=o.y,o.y=0),0<(c=o.y+o.height-l)&&c<o.height&&(o.height-=c),h&&(o={x:l-o.y-o.height,y:p-o.x-o.width,width:o.height,height:o.width}),u||(h?(o.x+=d?0:o.width,o.width=0):(o.y+=d?o.height:0,o.height=0))),i.align=n(i.align,!h||u?"center":d?"right":"left"),i.verticalAlign=n(i.verticalAlign,h||u?"middle":d?"top":"bottom"),s.prototype.alignDataLabel.call(this,t,e,i,o,a),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})}var o=[];e.compose=function(e){t.compose(s),-1===o.indexOf(e)&&(o.push(e),e.prototype.alignDataLabel=i)}}(o||(o={})),o})),e(i,"Series/Bar/BarSeries.js",[i["Series/Column/ColumnSeries.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=i.extend,r=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.defaultOptions=r(t.defaultOptions,{}),i}(t),s(i.prototype,{inverted:!0}),e.registerSeriesType("bar",i),i})),e(i,"Series/Scatter/ScatterSeriesDefaults.js",[],(function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}})),e(i,"Series/Scatter/ScatterSeries.js",[i["Series/Scatter/ScatterSeriesDefaults.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=e.seriesTypes,r=s.column,n=s.line;s=i.addEvent;var a=i.extend,h=i.merge;return i=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return o(i,e),i.prototype.applyJitter=function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(o,s){["x","y"].forEach((function(r,n){var a="plot"+r.toUpperCase();if(e[r]&&!o.isNull){var h=t[r+"Axis"],l=e[r]*h.transA;if(h&&!h.isLog){var p=Math.max(0,o[a]-l);h=Math.min(h.len,o[a]+l),n=1e4*Math.sin(s+n*i),o[a]=p+(h-p)*(n-Math.floor(n)),"x"===r&&(o.clientX=o.plotX)}}}))}))},i.prototype.drawGraph=function(){this.options.lineWidth?e.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},i.defaultOptions=h(n.defaultOptions,t),i}(n),a(i.prototype,{drawTracker:r.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),s(i,"afterTranslate",(function(){this.applyJitter()})),e.registerSeriesType("scatter",i),i})),e(i,"Series/CenteredUtilities.js",[i["Core/Globals.js"],i["Core/Series/Series.js"],i["Core/Utilities.js"]],(function(t,e,i){var o,s=t.deg2rad,r=i.fireEvent,n=i.isNumber,a=i.pick,h=i.relativeLength;return function(t){t.getCenter=function(){var t=this.options,i=this.chart,o=2*(t.slicedOffset||0),s=i.plotWidth-2*o,l=i.plotHeight-2*o,p=t.center,c=Math.min(s,l),d=t.thickness,u=t.size,f=t.innerSize||0;for("string"==typeof u&&(u=parseFloat(u)),"string"==typeof f&&(f=parseFloat(f)),t=[a(p[0],"50%"),a(p[1],"50%"),a(u&&0>u?void 0:t.size,"100%"),a(f&&0>f?void 0:t.innerSize||0,"0%")],!i.angular||this instanceof e||(t[3]=0),p=0;4>p;++p)u=t[p],i=2>p||2===p&&/%$/.test(u),t[p]=h(u,[s,l,c,t[2]][p])+(i?o:0);return t[3]>t[2]&&(t[3]=t[2]),n(d)&&2*d<t[2]&&0<d&&(t[3]=t[2]-2*d),r(this,"afterGetCenter",{positions:t}),t},t.getStartAndEndRadians=function(t,e){return t=n(t)?t:0,e=n(e)&&e>t&&360>e-t?e:t+360,{start:s*(t+-90),end:s*(e+-90)}}}(o||(o={})),o})),e(i,"Series/Pie/PiePoint.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],(function(t,e,i){var o=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),s=t.setAnimation,r=i.addEvent,n=i.defined;t=i.extend;var a=i.isNumber,h=i.pick,l=i.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return o(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=this.connectorShapes,o=e.connectorShape;return i[o]&&(o=i[o]),o.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.haloPath=function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=h(this.name,"Slice");var i=function(t){e.slice("select"===t.type)};return r(this,"select",i),r(this,"unselect",i),this},e.prototype.isValid=function(){return a(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var i=this,o=this.series,s=o.chart,r=o.options.ignoreHiddenPoint;e=h(e,r),t!==this.visible&&(this.visible=this.options.visible=t=void 0===t?!this.visible:t,o.options.data[o.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](t)})),this.legendItem&&s.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),r&&(o.isDirty=!0),e&&s.redraw())},e.prototype.slice=function(t,e,i){var o=this.series;s(i,o.chart),h(e,!0),this.sliced=this.options.sliced=n(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,i){var o=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*o.x-e.x,2*o.y-e.y,o.x,o.y]:["L",o.x,o.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var o=this.series,s=o.center[0],r=o.chart.plotWidth,n=o.chart.plotLeft;o=t.alignment;var a=this.shapeArgs.r;return i=l(i.crookDistance,1),i=["L",r="left"===o?s+a+(r+n-s-a)*(1-i):n+(s-a)*i,t.y],s=!0,("left"===o?r>t.x||r<e.x:r<t.x||r>e.x)&&(s=!1),t=[["M",t.x,t.y]],s&&t.push(i),t.push(["L",e.x,e.y]),t}}}),e})),e(i,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}})),e(i,"Series/Pie/PieSeries.js",[i["Series/CenteredUtilities.js"],i["Series/Column/ColumnSeries.js"],i["Core/Globals.js"],i["Core/Legend/LegendSymbol.js"],i["Series/Pie/PiePoint.js"],i["Series/Pie/PieSeriesDefaults.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s,r,n,a,h,l){var p=this&&this.__extends||function(){var t=function(e,i){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])},t(e,i)};return function(e,i){function o(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),c=t.getStartAndEndRadians;i=i.noop;var d=l.clamp,u=l.extend,f=l.fireEvent,g=l.merge,m=l.pick,y=l.relativeLength;return l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return p(e,t),e.prototype.animate=function(t){var e=this,i=e.points,o=e.startAngleRad;t||i.forEach((function(t){var i=t.graphic,s=t.shapeArgs;i&&s&&(i.attr({r:m(t.startR,e.center&&e.center[3]/2),start:o,end:o}),i.animate({r:s.r,start:s.start,end:s.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,i=this.options;if(0===this.total&&this.center){var o=this.center[0],s=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(o,s,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:h.arc(o,s,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":i.borderWidth,fill:i.fillColor||"none",stroke:i.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,i){var o=this.center,s=this.radii?this.radii[i.index]||0:o[2]/2;return t=Math.asin(d((t-o[1])/(s+i.labelDistance),-1,1)),o[0]+(e?-1:1)*Math.cos(t)*(s+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},e.prototype.hasData=function(){return!!this.processedXData.length},e.prototype.redrawPoints=function(){var t,e,i,o,s=this,r=s.chart,n=r.renderer,a=s.options.shadow;this.drawEmpty(),!a||s.shadowGroup||r.styledMode||(s.shadowGroup=n.g("shadow").attr({zIndex:-1}).add(s.group)),s.points.forEach((function(h){var l={};if(e=h.graphic,!h.isNull&&e){var p=void 0;o=h.shapeArgs,t=h.getTranslate(),r.styledMode||(p=h.shadowGroup,a&&!p&&(p=h.shadowGroup=n.g("shadow").add(s.shadowGroup)),p&&p.attr(t),i=s.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(e.setRadialReference(s.center).attr(o).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,p),h.delayedRendering=!1):(e.setRadialReference(s.center),r.styledMode||g(!0,l,i),g(!0,l,o,t),e.animate(l)),e.attr({visibility:h.visible?"inherit":"hidden"}),e.addClass(h.getClassName(),!0)}else e&&(h.graphic=e.destroy())}))},e.prototype.sortByAngle=function(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))},e.prototype.translate=function(t){f(this,"translate"),this.generatePoints();var e=this.options,i=e.slicedOffset,o=i+(e.borderWidth||0),s=c(e.startAngle,e.endAngle),r=this.startAngleRad=s.start;s=(this.endAngleRad=s.end)-r;var n=this.points,a=e.dataLabels.distance;e=e.ignoreHiddenPoint;var h,l=n.length,p=0;for(t||(this.center=t=this.getCenter()),h=0;h<l;h++){var d=n[h],u=r+p*s;!d.isValid()||e&&!d.visible||(p+=d.percentage/100);var g=r+p*s,v={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*u)/1e3,end:Math.round(1e3*g)/1e3};d.shapeType="arc",d.shapeArgs=v,d.labelDistance=m(d.options.dataLabels&&d.options.dataLabels.distance,a),d.labelDistance=y(d.labelDistance,v.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,d.labelDistance),(g=(g+u)/2)>1.5*Math.PI?g-=2*Math.PI:g<-Math.PI/2&&(g+=2*Math.PI),d.slicedTranslation={translateX:Math.round(Math.cos(g)*i),translateY:Math.round(Math.sin(g)*i)},v=Math.cos(g)*t[2]/2;var x=Math.sin(g)*t[2]/2;d.tooltipPos=[t[0]+.7*v,t[1]+.7*x],d.half=g<-Math.PI/2||g>Math.PI/2?1:0,d.angle=g,u=Math.min(o,d.labelDistance/5),d.labelPosition={natural:{x:t[0]+v+Math.cos(g)*d.labelDistance,y:t[1]+x+Math.sin(g)*d.labelDistance},final:{},alignment:0>d.labelDistance?"center":d.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+v+Math.cos(g)*u,y:t[1]+x+Math.sin(g)*u},touchingSliceAt:{x:t[0]+v,y:t[1]+x}}}}f(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,i=e.length,o=this.options.ignoreHiddenPoint,s=0;for(t=0;t<i;t++){var r=e[t];!r.isValid()||o&&!r.visible||(s+=r.y)}for(this.total=s,t=0;t<i;t++)(r=e[t]).percentage=0<s&&(r.visible||!o)?r.y/s*100:0,r.total=s},e.defaultOptions=g(n.defaultOptions,r),e}(n),u(l.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:o.drawRectangle,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:i,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:s,requireSorting:!1,searchPoint:i,trackerGroups:["group","dataLabelsGroup"]}),a.registerSeriesType("pie",l),l})),e(i,"Series/Pie/PieDataLabel.js",[i["Core/Series/DataLabel.js"],i["Core/Globals.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Series/SeriesRegistry.js"],i["Core/Utilities.js"]],(function(t,e,i,o,s){var r,n=e.noop,a=i.distribute,h=o.series,l=s.arrayMax,p=s.clamp,c=s.defined,d=s.merge,u=s.pick,f=s.relativeLength;return function(e){function i(){var t,e,i,o,s,r,n,p,f,g,m,y,v=this,x=v.data,b=v.chart,S=v.options.dataLabels||{},k=S.connectorPadding,M=b.plotWidth,C=b.plotHeight,w=b.plotLeft,P=Math.round(b.chartWidth/3),A=v.center,L=A[2]/2,T=A[1],O=[[],[]],E=[0,0,0,0],j=v.dataLabelPositioners;v.visible&&(S.enabled||v._hasPointLabels)&&(x.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),h.prototype.drawDataLabels.apply(v),x.forEach((function(t){t.dataLabel&&(t.visible?(O[t.half].push(t),t.dataLabel._pos=null,!c(S.style.width)&&!c(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>P&&(t.dataLabel.css({width:Math.round(.7*P)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),O.forEach((function(e,i){var h,l=e.length,d=[];if(l){if(v.sortByAngle(e,i-.5),0<v.maxLabelDistance){var x=Math.max(0,T-L-v.maxLabelDistance),P=Math.min(T+L+v.maxLabelDistance,b.plotHeight);e.forEach((function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,T-L-t.labelDistance),t.bottom=Math.min(T+L+t.labelDistance,b.plotHeight),h=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+h/2,size:h,rank:t.y},d.push(t.distributeBox))})),a(d,x=P+h-x,x/5)}for(m=0;m<l;m++){if(t=e[m],r=t.labelPosition,o=t.dataLabel,g=!1===t.visible?"hidden":"inherit",f=x=r.natural.y,d&&c(t.distributeBox)&&(void 0===t.distributeBox.pos?g="hidden":(n=t.distributeBox.size,f=j.radialDistributionY(t))),delete t.positionIndex,S.justify)p=j.justify(t,L,A);else switch(S.alignTo){case"connectors":p=j.alignToConnectors(e,i,M,w);break;case"plotEdges":p=j.alignToPlotEdges(o,i,M,w);break;default:p=j.radialDistributionX(v,t,f,x)}o._attr={visibility:g,align:r.alignment},y=t.options.dataLabels||{},o._pos={x:p+u(y.x,S.x)+({left:k,right:-k}[r.alignment]||0),y:f+u(y.y,S.y)-10},r.final.x=p,r.final.y=f,u(S.crop,!0)&&(s=o.getBBox().width,x=null,p-s<k&&1===i?(x=Math.round(s-p+k),E[3]=Math.max(x,E[3])):p+s>M-k&&0===i&&(x=Math.round(p+s-M+k),E[1]=Math.max(x,E[1])),0>f-n/2?E[0]=Math.max(Math.round(n/2-f),E[0]):f+n/2>C&&(E[2]=Math.max(Math.round(f+n/2-C),E[2])),o.sideOverflow=x)}}})),0===l(E)||this.verifyDataLabelOverflow(E))&&(this.placeDataLabels(),this.points.forEach((function(t){var s;y=d(S,t.options.dataLabels),(e=u(y.connectorWidth,1))&&(i=t.connector,(o=t.dataLabel)&&o._pos&&t.visible&&0<t.labelDistance?(g=o._attr.visibility,(s=!i)&&(t.connector=i=b.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(v.dataLabelsGroup),b.styledMode||i.attr({"stroke-width":e,stroke:y.connectorColor||t.color||"#666666"})),i[s?"attr":"animate"]({d:t.getConnectorPath()}),i.attr("visibility",g)):i&&(t.connector=i.destroy()))})))}function o(){this.points.forEach((function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox}),this)}function s(t){var e=this.center,i=this.options,o=i.center,s=i.minSize||80,r=null!==i.size;if(!r){if(null!==o[0])var n=Math.max(e[2]-Math.max(t[1],t[3]),s);else n=Math.max(e[2]-t[1]-t[3],s),e[0]+=(t[3]-t[1])/2;null!==o[1]?n=p(n,s,e[2]-Math.max(t[0],t[2])):(n=p(n,s,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),n<e[2]?(e[2]=n,e[3]=Math.min(i.thickness?Math.max(0,n-2*i.thickness):Math.max(0,f(i.innerSize||0,n)),n),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}var r=[],g={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,o){return t.getX(i<e.top+2||i>e.bottom-2?o:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,o){return t=t.getBBox().width,e?t+o:i-t-o},alignToConnectors:function(t,e,i,o){var s,r=0;return t.forEach((function(t){(s=t.dataLabel.getBBox().width)>r&&(r=s)})),e?r+o:i-r-o}};e.compose=function(e){t.compose(h),-1===r.indexOf(e)&&(r.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=n,e.drawDataLabels=i,e.placeDataLabels=o,e.verifyDataLabelOverflow=s)}}(r||(r={})),r})),e(i,"Extensions/OverlappingDataLabels.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],(function(t,e){function i(t,e){var i=!1;if(t){var o=t.newOpacity;t.oldOpacity!==o&&(t.alignAttr&&t.placed?(t[o?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,t.alignAttr.opacity=o,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:o?"auto":"none"})})),s(e,"afterHideOverlappingLabel")):t.attr({opacity:o})),t.isOld=!0}return i}var o=e.addEvent,s=e.fireEvent,r=e.isArray,n=e.isNumber,a=e.objectEach,h=e.pick;o(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&a(t.stacking.stacks,(function(t){a(t,(function(t){t.label&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(o){var s=o.options.dataLabels;o.visible&&(!1!==s.enabled||o._hasPointLabels)&&(s=function(o){return o.forEach((function(o){o.visible&&(r(o.dataLabels)?o.dataLabels:o.dataLabel?[o.dataLabel]:[]).forEach((function(s){var r=s.options;s.labelrank=h(r.labelrank,o.labelrank,o.shapeArgs&&o.shapeArgs.height),r.allowOverlap?(s.oldOpacity=s.opacity,s.newOpacity=1,i(s,t)):e.push(s)}))}))},s(o.nodes||[]),s(o.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,o,r,a=this,h=t.length,l=a.renderer,p=!1,c=function(t){var e,i,o=t.box?0:t.padding||0,s=e=0;if(t&&(!t.alignAttr||t.placed)){var r=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},a=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=l.fontMetrics(null,t.element).h);var h=t.width-2*o;return(i={left:"0",center:"0.5",right:"1"}[t.alignValue])?s=+i*h:n(t.x)&&Math.round(t.x)!==t.translateX&&(s=t.x-t.translateX),{x:r.x+(a.translateX||0)+o-(s||0),y:r.y+(a.translateY||0)+o-e,width:t.width-2*o,height:t.height-2*o}}};for(o=0;o<h;o++)(e=t[o])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=c(e));for(t.sort((function(t,e){return(e.labelrank||0)-(t.labelrank||0)})),o=0;o<h;o++){var d=(c=t[o])&&c.absoluteBox;for(e=o+1;e<h;++e){var u=(r=t[e])&&r.absoluteBox;!d||!u||c===r||0===c.newOpacity||0===r.newOpacity||"hidden"===c.visibility||"hidden"===r.visibility||u.x>=d.x+d.width||u.x+u.width<=d.x||u.y>=d.y+d.height||u.y+u.height<=d.y||((c.labelrank<r.labelrank?c:r).newOpacity=0)}}t.forEach((function(t){i(t,a)&&(p=!0)})),p&&s(a,"afterHideAllOverlappingLabels")}})),e(i,"Core/Responsive.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.extend,o=t.find,s=t.isArray,r=t.isObject,n=t.merge,a=t.objectEach,h=t.pick,l=t.splat,p=t.uniqueKey;return function(t){var e=[];t.compose=function(t){return-1===e.indexOf(t)&&(e.push(t),i(t.prototype,c.prototype)),t};var c=function(){function t(){}return t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,o,n,h){var p;a(i,(function(i,a){if(!h&&-1<e.collectionsWithUpdate.indexOf(a)&&o[a])for(i=l(i),n[a]=[],p=0;p<Math.max(i.length,o[a].length);p++)o[a][p]&&(void 0===i[p]?n[a][p]=o[a][p]:(n[a][p]={},t(i[p],o[a][p],n[a][p],h+1)));else r(i)?(n[a]=s(i)?[]:{},t(i,o[a]||{},n[a],h+1)):n[a]=void 0===o[a]?null:o[a]}))}(t,this.options,i,0),i},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=h(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=h(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=h(i.minWidth,0)&&this.chartHeight>=h(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var i=this,s=this.options.responsive,r=this.currentResponsive,a=[];!e&&s&&s.rules&&s.rules.forEach((function(t){void 0===t._id&&(t._id=p()),i.matchResponsiveRule(t,a)}),this),e=n.apply(void 0,a.map((function(t){return o((s||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions}))),e.isResponsiveOptions=!0,(a=a.toString()||void 0)!==(r&&r.ruleIds)&&(r&&this.update(r.undoOptions,t,!0),a?((r=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:e,undoOptions:r},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(i,"masters/highcharts.src.js",[i["Core/Globals.js"],i["Core/Utilities.js"],i["Core/Defaults.js"],i["Core/Animation/Fx.js"],i["Core/Animation/AnimationUtilities.js"],i["Core/Renderer/HTML/AST.js"],i["Core/FormatUtilities.js"],i["Core/Renderer/RendererUtilities.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Renderer/HTML/HTMLElement.js"],i["Core/Renderer/HTML/HTMLRenderer.js"],i["Core/Axis/Axis.js"],i["Core/Axis/DateTimeAxis.js"],i["Core/Axis/LogarithmicAxis.js"],i["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],i["Core/Axis/Tick.js"],i["Core/Tooltip.js"],i["Core/Series/Point.js"],i["Core/Pointer.js"],i["Core/MSPointer.js"],i["Core/Legend/Legend.js"],i["Core/Chart/Chart.js"],i["Core/Axis/Stacking/StackingAxis.js"],i["Core/Axis/Stacking/StackItem.js"],i["Core/Series/Series.js"],i["Core/Series/SeriesRegistry.js"],i["Series/Column/ColumnSeries.js"],i["Series/Column/ColumnDataLabel.js"],i["Series/Pie/PieSeries.js"],i["Series/Pie/PieDataLabel.js"],i["Core/Series/DataLabel.js"],i["Core/Responsive.js"],i["Core/Color/Color.js"],i["Core/Time.js"]],(function(t,e,i,o,s,r,n,a,h,l,p,c,d,u,f,g,m,y,v,x,b,S,k,M,C,w,P,A,L,T,O,E,j,D,I){return t.animate=s.animate,t.animObject=s.animObject,t.getDeferredAnimation=s.getDeferredAnimation,t.setAnimation=s.setAnimation,t.stop=s.stop,t.timers=o.timers,t.AST=r,t.Axis=d,t.Chart=k,t.chart=k.chart,t.Fx=o,t.Legend=S,t.PlotLineOrBand=g,t.Point=v,t.Pointer=b.isRequired()?b:x,t.Series=w,t.StackItem=C,t.SVGElement=h,t.SVGRenderer=l,t.Tick=m,t.Time=I,t.Tooltip=y,t.Color=D,t.color=D.parse,c.compose(l),p.compose(h),t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,t.dateFormat=n.dateFormat,t.format=n.format,t.numberFormat=n.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=a.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=P.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,L.compose(A),E.compose(w),u.compose(d),f.compose(d),O.compose(T),g.compose(d),j.compose(k),M.compose(d,k,w),t})),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]},t.exports?(r.default=r,t.exports=s.document?r(s):r):void 0===(o=function(){return r(s)}.call(e,i,e,t))||(t.exports=o)}},e={};function i(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o].call(r.exports,r,r.exports,i),r.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=i(8840),e=i.n(t),o=i(4814);i.n(o)()(e());window.addEventListener("load",(()=>{new(e().chart)("first-schedule",{chart:{type:"column"},title:{text:"MAU (Monthly Active Users)"},yAxis:[{title:{text:""},type:"linear",crosshair:!0}],xAxis:[{categories:[2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],crosshair:!0}],series:[{name:"Active users",data:[647,14636,79025,109993,162449,171776,216910,534747,573258,408822],color:"#A7B6C8",borderWidth:0}]}),new(e().chart)("two-schedule",{chart:{type:"column"},title:{text:"DAU (Daily Active Users)"},yAxis:[{title:{text:""},type:"linear",crosshair:!0}],xAxis:[{categories:[2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],crosshair:!0}],series:[{name:"Active users",data:[197,1917,10872,18991,33234,39011,46072,159227,157684,88906],color:"#A7B6C8",borderWidth:0}]}),new(e().chart)("three-schedule",{chart:{type:"waterfall"},title:{text:"Number of installs (Android + iOS)"},yAxis:[{title:{text:""},type:"linear",crosshair:!0}],xAxis:[{categories:[2015,2016,2017,2018,2019,2020,2021,2022,"Total"],crosshair:!0}],series:[{name:"install",data:[{y:152797},{y:6387744},{y:33722140},{y:47558052},{y:30854205},{y:40726440},{y:61708204},{y:37818181},{isSum:!0}],color:"#A7B6C8",borderWidth:0}]}),new(e().chart)("line-schedule",{chart:{type:"spline"},title:{text:"Number of clients registrations"},yAxis:[{title:{text:""},type:"linear",crosshair:!0}],xAxis:[{categories:[2013,2014,2015,2016,2017,2018,2019,2020,2021,2022],crosshair:!0}],series:[{name:"Registration",data:[14813,965649,7599117,14514307,27486103,41883228,55144281,88179881,115961718,142775267],color:"#566E8A"}]}),((t,e,i={})=>{const o=document.querySelector(`[data-widget="${t}"]`),s=o?.querySelector(".modal__content")||o?.querySelector(".modal-once__content"),r=document.querySelectorAll(`[data-role="${t}"]`),n=document.querySelectorAll(`[data-role="${t}-close"]`);if(0===r.length&&!o)return!1;const a=()=>{var e;return["contacts","saas","saas2"].includes(t)&&(e={event:"saas_form_opening"},window.dataLayer?(console.log("event data sent",e),window.dataLayer.push(e)):console.error("no dataLayer")),document.body.style.overflow="hidden",o.classList.add("active")},h=()=>{i.onClose&&i.onClose(),o.classList.contains("active")&&(document.body.style.overflow=null),o.classList.remove("active")};r.forEach((t=>{t.addEventListener("click",(()=>{a()}),!1)})),e&&(i.timeout?setTimeout(a,i.timeout):a()),i.clickOutside&&function(t,e,i=!0){let o=!1;const s=i=>{t.contains(i.target)||e&&e(i)};i&&(document.addEventListener("click",s,!0),o=!0)}(s,h),n&&n.length>0&&n.forEach((t=>{t.addEventListener("click",h,!1)}))})("once",!1,{onClose:()=>{localStorage.setItem("form_once_opened","true")}}),(()=>{const t=document.querySelector('[data-widget="once"]'),e=localStorage.getItem("form_once_opened");t&&!e&&setTimeout((()=>{t.classList.add("active")}),15e3)})()}))})()})();