HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/quadcode/frontend/node_modules/highcharts/es5/highcharts-more.js
/*
 Highcharts JS v10.3.3 (2023-01-20)

 (c) 2009-2021 Torstein Honsi

 License: www.highcharts.com/license
*/
(function(e){"object"===typeof module&&module.exports?(e["default"]=e,module.exports=e):"function"===typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(B){e(B);e.Highcharts=B;return e}):e("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(e){function B(c,b,l,a){c.hasOwnProperty(b)||(c[b]=a.apply(null,l),"function"===typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:b,module:c[b]}})))}e=e?e._modules:{};B(e,
"Extensions/Pane.js",[e["Core/Chart/Chart.js"],e["Series/CenteredUtilities.js"],e["Core/Globals.js"],e["Core/Pointer.js"],e["Core/Utilities.js"]],function(c,b,l,a,f){function r(g,k,d,a,C){var h=!0,L=d[0],G=d[1],F=Math.sqrt(Math.pow(g-L,2)+Math.pow(k-G,2));p(a)&&p(C)&&(g=Math.atan2(e(k-G,8),e(g-L,8)),C!==a&&(h=a>C?g>=a&&g<=Math.PI||g<=C&&g>=-Math.PI:g>=a&&g<=e(C,8)));return F<=Math.ceil(d[2]/2)&&h}var m=f.addEvent,e=f.correctFloat,p=f.defined,E=f.extend,u=f.merge,n=f.pick,d=f.splat;c.prototype.collectionsWithUpdate.push("pane");
f=function(){function g(k,g){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(k,g)}g.prototype.init=function(k,g){this.chart=g;this.background=
[];g.pane.push(this);this.setOptions(k)};g.prototype.setOptions=function(g){this.options=u(this.defaultOptions,this.chart.angular?{background:{}}:void 0,g)};g.prototype.render=function(){var g=this.options,h=this.options.background,a=this.chart.renderer;this.group||(this.group=a.g("pane-group").attr({zIndex:g.zIndex||0}).add());this.updateCenter();if(h)for(h=d(h),g=Math.max(h.length,this.background.length||0),a=0;a<g;a++)h[a]&&this.axis?this.renderBackground(u(this.defaultBackgroundOptions,h[a]),
a):this.background[a]&&(this.background[a]=this.background[a].destroy(),this.background.splice(a,1))};g.prototype.renderBackground=function(g,d){var k="animate",h={"class":"highcharts-pane "+(g.className||"")};this.chart.styledMode||E(h,{fill:g.backgroundColor,stroke:g.borderColor,"stroke-width":g.borderWidth});this.background[d]||(this.background[d]=this.chart.renderer.path().add(this.group),k="attr");this.background[d][k]({d:this.axis.getPlotBandPath(g.from,g.to,g)}).attr(h)};g.prototype.updateCenter=
function(g){this.center=(g||this.axis||{}).center=b.getCenter.call(this)};g.prototype.update=function(g,d){u(!0,this.options,g);this.setOptions(this.options);this.render();this.chart.axes.forEach(function(g){g.pane===this&&(g.pane=null,g.update({},d))},this)};return g}();c.prototype.getHoverPane=function(g){var d=this,h;g&&d.pane.forEach(function(k){r(g.chartX-d.plotLeft,g.chartY-d.plotTop,k.center)&&(h=k)});return h};m(c,"afterIsInsidePlot",function(g){if(this.polar){if(g.options.inverted){var d=
[g.y,g.x];g.x=d[0];g.y=d[1]}g.isInsidePlot=this.pane.some(function(d){return r(g.x,g.y,d.center,d.axis&&d.axis.normalizedStartAngleRad,d.axis&&d.axis.normalizedEndAngleRad)})}});m(a,"beforeGetHoverData",function(g){var d=this.chart;d.polar?(d.hoverPane=d.getHoverPane(g),g.filter=function(k){return k.visible&&!(!g.shared&&k.directTouch)&&n(k.options.enableMouseTracking,!0)&&(!d.hoverPane||k.xAxis.pane===d.hoverPane)}):d.hoverPane=void 0});m(a,"afterGetHoverData",function(g){var d=this.chart;g.hoverPoint&&
g.hoverPoint.plotX&&g.hoverPoint.plotY&&d.hoverPane&&!r(g.hoverPoint.plotX,g.hoverPoint.plotY,d.hoverPane.center)&&(g.hoverPoint=void 0)});l.Pane=f;return l.Pane});B(e,"Series/AreaRange/AreaRangePoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=
b[c])};return a(b,c)};return function(b,c){function f(){this.constructor=b}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();c=c.seriesTypes.area.prototype;var a=c.pointClass.prototype,f=b.defined,e=b.isNumber;return function(b){function c(){var a=null!==b&&b.apply(this,arguments)||this;a.high=void 0;a.low=void 0;a.options=void 0;a.plotX=void 0;a.series=
void 0;return a}l(c,b);c.prototype.setState=function(){var b=this.state,c=this.series,l=c.chart.polar;f(this.plotHigh)||(this.plotHigh=c.yAxis.toPixels(this.high,!0));f(this.plotLow)||(this.plotLow=this.plotY=c.yAxis.toPixels(this.low,!0));c.stateMarkerGraphic&&(c.lowerStateMarkerGraphic=c.stateMarkerGraphic,c.stateMarkerGraphic=c.upperStateMarkerGraphic);this.graphic=this.graphics&&this.graphics[1];this.plotY=this.plotHigh;l&&e(this.plotHighX)&&(this.plotX=this.plotHighX);a.setState.apply(this,arguments);
this.state=b;this.plotY=this.plotLow;this.graphic=this.graphics&&this.graphics[0];l&&e(this.plotLowX)&&(this.plotX=this.plotLowX);c.stateMarkerGraphic&&(c.upperStateMarkerGraphic=c.stateMarkerGraphic,c.stateMarkerGraphic=c.lowerStateMarkerGraphic,c.lowerStateMarkerGraphic=void 0);a.setState.apply(this,arguments)};c.prototype.haloPath=function(){var c=this.series.chart.polar,b=[];this.plotY=this.plotLow;c&&e(this.plotLowX)&&(this.plotX=this.plotLowX);this.isInside&&(b=a.haloPath.apply(this,arguments));
this.plotY=this.plotHigh;c&&e(this.plotHighX)&&(this.plotX=this.plotHighX);this.isTopInside&&(b=b.concat(a.haloPath.apply(this,arguments)));return b};c.prototype.isValid=function(){return e(this.low)&&e(this.high)};return c}(c.pointClass)});B(e,"Series/AreaRange/AreaRangeSeries.js",[e["Series/AreaRange/AreaRangePoint.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,l,a){var f=this&&this.__extends||function(){var g=function(d,k){g=Object.setPrototypeOf||
{__proto__:[]}instanceof Array&&function(g,d){g.__proto__=d}||function(g,d){for(var k in d)Object.prototype.hasOwnProperty.call(d,k)&&(g[k]=d[k])};return g(d,k)};return function(d,k){function h(){this.constructor=d}if("function"!==typeof k&&null!==k)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");g(d,k);d.prototype=null===k?Object.create(k):(h.prototype=k.prototype,new h)}}();b=b.noop;var e=l.seriesTypes,m=e.area,t=e.area.prototype,p=e.column.prototype;e=a.addEvent;
var E=a.defined,u=a.extend,n=a.isArray,d=a.isNumber,g=a.pick,k=a.merge,h={lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</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}};a=function(d){function a(){var g=null!==d&&d.apply(this,arguments)||this;g.data=void 0;g.options=void 0;g.points=void 0;g.lowerStateMarkerGraphic=void 0;g.xAxis=void 0;return g}
f(a,d);a.prototype.toYData=function(d){return[d.low,d.high]};a.prototype.highToXY=function(d){var g=this.chart,k=this.xAxis.postTranslate(d.rectPlotX||0,this.yAxis.len-(d.plotHigh||0));d.plotHighX=k.x-g.plotLeft;d.plotHigh=k.y-g.plotTop;d.plotLowX=d.plotX};a.prototype.getGraphPath=function(d){var k=[],h=[],a=t.getGraphPath,c=this.options,b=this.chart.polar,w=b&&!1!==c.connectEnds,x=c.connectNulls,y,f=c.step;d=d||this.points;for(y=d.length;y--;){var q=d[y];var C=b?{plotX:q.rectPlotX,plotY:q.yBottom,
doCurve:!1}:{plotX:q.plotX,plotY:q.plotY,doCurve:!1};q.isNull||w||x||d[y+1]&&!d[y+1].isNull||h.push(C);var n={polarPlotY:q.polarPlotY,rectPlotX:q.rectPlotX,yBottom:q.yBottom,plotX:g(q.plotHighX,q.plotX),plotY:q.plotHigh,isNull:q.isNull};h.push(n);k.push(n);q.isNull||w||x||d[y-1]&&!d[y-1].isNull||h.push(C)}d=a.call(this,d);f&&(!0===f&&(f="left"),c.step={left:"right",center:"center",right:"left"}[f]);k=a.call(this,k);h=a.call(this,h);c.step=f;c=[].concat(d,k);!this.chart.polar&&h[0]&&"M"===h[0][0]&&
(h[0]=["L",h[0][1],h[0][2]]);this.graphPath=c;this.areaPath=d.concat(h);c.isArea=!0;c.xMap=d.xMap;this.areaPath.xMap=d.xMap;return c};a.prototype.drawDataLabels=function(){var d=this.points,g=d.length,k=[],h=this.options.dataLabels,a=this.chart.inverted,c,w;if(h){if(n(h)){var b=h[0]||{enabled:!1};var y=h[1]||{enabled:!1}}else b=u({},h),b.x=h.xHigh,b.y=h.yHigh,y=u({},h),y.x=h.xLow,y.y=h.yLow;if(b.enabled||this._hasPointLabels){for(c=g;c--;)if(w=d[c]){var f=w.plotHigh;f=void 0===f?0:f;var q=w.plotLow;
q=void 0===q?0:q;q=b.inside?f<q:f>q;w.y=w.high;w._plotY=w.plotY;w.plotY=f;k[c]=w.dataLabel;w.dataLabel=w.dataLabelUpper;w.below=q;a?b.align||(b.align=q?"right":"left"):b.verticalAlign||(b.verticalAlign=q?"top":"bottom")}this.options.dataLabels=b;t.drawDataLabels&&t.drawDataLabels.apply(this,arguments);for(c=g;c--;)if(w=d[c])w.dataLabelUpper=w.dataLabel,w.dataLabel=k[c],delete w.dataLabels,w.y=w.low,w.plotY=w._plotY}if(y.enabled||this._hasPointLabels){for(c=g;c--;)if(w=d[c])k=w.plotHigh,f=void 0===
k?0:k,k=w.plotLow,q=void 0===k?0:k,q=y.inside?f<q:f>q,w.below=!q,a?y.align||(y.align=q?"left":"right"):y.verticalAlign||(y.verticalAlign=q?"bottom":"top");this.options.dataLabels=y;t.drawDataLabels&&t.drawDataLabels.apply(this,arguments)}if(b.enabled)for(c=g;c--;)if(w=d[c])w.dataLabels=[w.dataLabelUpper,w.dataLabel].filter(function(d){return!!d});this.options.dataLabels=h}};a.prototype.alignDataLabel=function(){p.alignDataLabel.apply(this,arguments)};a.prototype.drawPoints=function(){var d=this.points.length,
k;t.drawPoints.apply(this,arguments);for(k=0;k<d;){var h=this.points[k];h.graphics=h.graphics||[];h.origProps={plotY:h.plotY,plotX:h.plotX,isInside:h.isInside,negative:h.negative,zone:h.zone,y:h.y};if(h.graphic||h.graphics[0])h.graphics[0]=h.graphic;h.graphic=h.graphics[1];h.plotY=h.plotHigh;E(h.plotHighX)&&(h.plotX=h.plotHighX);h.y=g(h.high,h.origProps.y);h.negative=h.y<(this.options.threshold||0);this.zones.length&&(h.zone=h.getZone());this.chart.polar||(h.isInside=h.isTopInside="undefined"!==typeof h.plotY&&
0<=h.plotY&&h.plotY<=this.yAxis.len&&0<=h.plotX&&h.plotX<=this.xAxis.len);k++}t.drawPoints.apply(this,arguments);for(k=0;k<d;){h=this.points[k];h.graphics=h.graphics||[];if(h.graphic||h.graphics[1])h.graphics[1]=h.graphic;h.graphic=h.graphics[0];h.origProps&&(u(h,h.origProps),delete h.origProps);k++}};a.defaultOptions=k(m.defaultOptions,h);return a}(m);e(a,"afterTranslate",function(){var g=this;"low,high"===this.pointArrayMap.join(",")&&this.points.forEach(function(h){var k=h.high,a=h.plotY;h.isNull?
h.plotY=void 0:(h.plotLow=a,h.plotHigh=d(k)?g.yAxis.translate(g.dataModify?g.dataModify.modifyValue(k):k,!1,!0,void 0,!0):void 0,g.dataModify&&(h.yBottom=h.plotHigh))})},{order:0});e(a,"afterTranslate",function(){var d=this;this.points.forEach(function(g){if(d.chart.polar)d.highToXY(g),g.plotLow=g.plotY,g.tooltipPos=[((g.plotHighX||0)+(g.plotLowX||0))/2,((g.plotHigh||0)+(g.plotLow||0))/2];else{var h=g.pos(!1,g.plotLow),k=g.pos(!1,g.plotHigh);h&&k&&(h[0]=(h[0]+k[0])/2,h[1]=(h[1]+k[1])/2);g.tooltipPos=
h}})},{order:3});u(a.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:c,pointValKey:"low",setStackedPoints:b});l.registerSeriesType("arearange",a);"";return a});B(e,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[e["Series/AreaRange/AreaRangeSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,l){var a=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||
function(a,c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])};return a(c,b)};return function(c,b){function f(){this.constructor=c}if("function"!==typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");a(c,b);c.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}(),f=b.seriesTypes.spline.prototype,e=l.merge;l=l.extend;var m=function(b){function f(){var c=null!==b&&b.apply(this,arguments)||this;c.options=void 0;
c.data=void 0;c.points=void 0;return c}a(f,b);f.defaultOptions=e(c.defaultOptions);return f}(c);l(m.prototype,{getPointSpline:f.getPointSpline});b.registerSeriesType("areasplinerange",m);"";return m});B(e,"Series/BoxPlot/BoxPlotSeries.js",[e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,l,a){var f=this&&this.__extends||function(){var c=function(a,b){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,d){c.__proto__=
d}||function(c,d){for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&(c[g]=d[g])};return c(a,b)};return function(a,b){function f(){this.constructor=a}if("function"!==typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");c(a,b);a.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}();b=b.noop;var e=a.extend,m=a.merge,t=a.pick;a=function(a){function b(){var c=null!==a&&a.apply(this,arguments)||this;c.data=void 0;c.options=void 0;
c.points=void 0;return c}f(b,a);b.prototype.pointAttribs=function(){return{}};b.prototype.translate=function(){var c=this.yAxis,b=this.pointArrayMap;a.prototype.translate.apply(this);this.points.forEach(function(d){b.forEach(function(g){null!==d[g]&&(d[g+"Plot"]=c.translate(d[g],0,1,0,1))});d.plotHigh=d.highPlot})};b.prototype.drawPoints=function(){var c=this,a=c.options,d=c.chart,g=d.renderer,k,h,b,f,l,e,G=0,m,J,H,w,x=!1!==c.doQuartiles,y,I=c.options.whiskerLength;c.points.forEach(function(q){var C=
q.graphic,F=C?"animate":"attr",L=q.shapeArgs,K={},n={},r={},v={},D=q.color||c.color;"undefined"!==typeof q.plotY&&(m=Math.round(L.width),J=Math.floor(L.x),H=J+m,w=Math.round(m/2),k=Math.floor(x?q.q1Plot:q.lowPlot),h=Math.floor(x?q.q3Plot:q.lowPlot),b=Math.floor(q.highPlot),f=Math.floor(q.lowPlot),C||(q.graphic=C=g.g("point").add(c.group),q.stem=g.path().addClass("highcharts-boxplot-stem").add(C),I&&(q.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(C)),x&&(q.box=g.path(void 0).addClass("highcharts-boxplot-box").add(C)),
q.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(C)),d.styledMode||(n.stroke=q.stemColor||a.stemColor||D,n["stroke-width"]=t(q.stemWidth,a.stemWidth,a.lineWidth),n.dashstyle=q.stemDashStyle||a.stemDashStyle||a.dashStyle,q.stem.attr(n),I&&(r.stroke=q.whiskerColor||a.whiskerColor||D,r["stroke-width"]=t(q.whiskerWidth,a.whiskerWidth,a.lineWidth),r.dashstyle=q.whiskerDashStyle||a.whiskerDashStyle||a.dashStyle,q.whiskers.attr(r)),x&&(K.fill=q.fillColor||a.fillColor||D,K.stroke=a.lineColor||
D,K["stroke-width"]=a.lineWidth||0,K.dashstyle=q.boxDashStyle||a.boxDashStyle||a.dashStyle,q.box.attr(K)),v.stroke=q.medianColor||a.medianColor||D,v["stroke-width"]=t(q.medianWidth,a.medianWidth,a.lineWidth),v.dashstyle=q.medianDashStyle||a.medianDashStyle||a.dashStyle,q.medianShape.attr(v)),e=q.stem.strokeWidth()%2/2,G=J+w+e,C=[["M",G,h],["L",G,b],["M",G,k],["L",G,f]],q.stem[F]({d:C}),x&&(e=q.box.strokeWidth()%2/2,k=Math.floor(k)+e,h=Math.floor(h)+e,J+=e,H+=e,C=[["M",J,h],["L",J,k],["L",H,k],["L",
H,h],["L",J,h],["Z"]],q.box[F]({d:C})),I&&(e=q.whiskers.strokeWidth()%2/2,b+=e,f+=e,y=/%$/.test(I)?w*parseFloat(I)/100:I/2,C=[["M",G-y,b],["L",G+y,b],["M",G-y,f],["L",G+y,f]],q.whiskers[F]({d:C})),l=Math.round(q.medianPlot),e=q.medianShape.strokeWidth()%2/2,l+=e,C=[["M",J,l],["L",H,l]],q.medianShape[F]({d:C}))})};b.prototype.toYData=function(a){return[a.low,a.q1,a.median,a.q3,a.high]};b.defaultOptions=m(c.defaultOptions,{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</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});return b}(c);e(a.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:b,setStackedPoints:b});l.registerSeriesType("boxplot",a);"";return a});B(e,"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}});B(e,"Series/Bubble/BubbleLegendItem.js",[e["Core/Color/Color.js"],e["Core/FormatUtilities.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(c,b,e,a){var f=c.parse,l=e.noop,m=a.arrayMax,t=a.arrayMin,p=a.isNumber,E=
a.merge,u=a.pick,n=a.stableSort;c=function(){function d(d,k){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legend=this.fontMetrics=this.chart=void 0;this.setState=l;this.init(d,k)}d.prototype.init=function(d,k){this.options=d;this.visible=!0;this.chart=k.chart;this.legend=k};d.prototype.addToLegend=function(d){d.splice(this.options.legendIndex,0,this)};d.prototype.drawLegendSymbol=function(d){var g=this.chart,h=u(d.options.itemDistance,20),a=this.legendItem||
{},c=this.options,b=c.ranges,f=c.connectorDistance;this.fontMetrics=g.renderer.fontMetrics(c.labels.style.fontSize);b&&b.length&&p(b[0].value)?(n(b,function(d,g){return g.value-d.value}),this.ranges=b,this.setOptions(),this.render(),d=this.getMaxLabelSize(),b=this.ranges[0].radius,g=2*b,f=f-b+d.width,f=0<f?f:0,this.maxLabel=d,this.movementX="left"===c.labels.align?f:0,a.labelWidth=g+f+h,a.labelHeight=g+this.fontMetrics.h/2):d.options.bubbleLegend.autoRanges=!0};d.prototype.setOptions=function(){var d=
this.ranges,k=this.options,h=this.chart.series[k.seriesIndex],a=this.legend.baseline,c={zIndex:k.zIndex,"stroke-width":k.borderWidth},b={zIndex:k.zIndex,"stroke-width":k.connectorWidth},e={align:this.legend.options.rtl||"left"===k.labels.align?"right":"left",zIndex:k.zIndex},l=h.options.marker.fillOpacity,m=this.chart.styledMode;d.forEach(function(g,H){m||(c.stroke=u(g.borderColor,k.borderColor,h.color),c.fill=u(g.color,k.color,1!==l?f(h.color).setOpacity(l).get("rgba"):h.color),b.stroke=u(g.connectorColor,
k.connectorColor,h.color));d[H].radius=this.getRangeRadius(g.value);d[H]=E(d[H],{center:d[0].radius-d[H].radius+a});m||E(!0,d[H],{bubbleAttribs:E(c),connectorAttribs:E(b),labelAttribs:e})},this)};d.prototype.getRangeRadius=function(d){var g=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,g.ranges[g.ranges.length-1].value,g.ranges[0].value,g.minSize,g.maxSize,d)};d.prototype.render=function(){var d=this.legendItem||{},a=this.chart.renderer,h=this.options.zThreshold;
this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});d.symbol=a.g("bubble-legend");d.label=a.g("bubble-legend-item");d.symbol.translateX=0;a=d.symbol.translateY=0;for(var c=this.ranges;a<c.length;a++){var b=c[a];b.value>=h&&this.renderRange(b)}d.symbol.add(d.label);d.label.add(d.group);this.hideOverlappingLabels()};d.prototype.renderRange=function(d){var g=this.options,h=g.labels,a=this.chart,c=a.series[g.seriesIndex],b=a.renderer,f=this.symbols;a=f.labels;var e=d.center,l=Math.abs(d.radius),
J=g.connectorDistance||0,H=h.align,w=g.connectorWidth,x=this.ranges[0].radius||0,y=e-l-g.borderWidth/2+w/2,I=this.fontMetrics;I=I.f/2-(I.h-I.f)/2;var q=b.styledMode;J=this.legend.options.rtl||"left"===H?-J:J;"center"===H&&(J=0,g.connectorDistance=0,d.labelAttribs.align="center");H=y+g.labels.y;var m=x+J+g.labels.x;f.bubbleItems.push(b.circle(x,e+((y%1?1:.5)-(w%2?0:.5)),l).attr(q?{}:d.bubbleAttribs).addClass((q?"highcharts-color-"+c.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(g.className||
"")).add(this.legendItem.symbol));f.connectors.push(b.path(b.crispLine([["M",x,y],["L",x+J,y]],g.connectorWidth)).attr(q?{}:d.connectorAttribs).addClass((q?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(g.connectorClassName||"")).add(this.legendItem.symbol));d=b.text(this.formatLabel(d),m,H+I).attr(q?{}:d.labelAttribs).css(q?{}:h.style).addClass("highcharts-bubble-legend-labels "+(g.labels.className||"")).add(this.legendItem.symbol);a.push(d);d.placed=
!0;d.alignAttr={x:m,y:H+I}};d.prototype.getMaxLabelSize=function(){var d,a;this.symbols.labels.forEach(function(h){a=h.getBBox(!0);d=d?a.width>d.width?a:d:a});return d||{}};d.prototype.formatLabel=function(d){var g=this.options,h=g.labels.formatter;g=g.labels.format;var a=this.chart.numberFormatter;return g?b.format(g,d):h?h.call(d):a(d.value,1)};d.prototype.hideOverlappingLabels=function(){var d=this.chart,a=this.symbols;!this.options.labels.allowOverlap&&a&&(d.hideOverlappingLabels(a.labels),a.labels.forEach(function(d,
g){d.newOpacity?d.newOpacity!==d.oldOpacity&&a.connectors[g].show():a.connectors[g].hide()}))};d.prototype.getRanges=function(){var d=this.legend.bubbleLegend,a=d.options.ranges,h,c=Number.MAX_VALUE,b=-Number.MAX_VALUE;d.chart.series.forEach(function(d){d.isBubble&&!d.ignoreSeries&&(h=d.zData.filter(p),h.length&&(c=u(d.options.zMin,Math.min(c,Math.max(t(h),!1===d.options.displayNegative?d.options.zThreshold:-Number.MAX_VALUE))),b=u(d.options.zMax,Math.max(b,m(h)))))});var f=c===b?[{value:b}]:[{value:c},
{value:(c+b)/2},{value:b,autoRanges:!0}];a.length&&a[0].radius&&f.reverse();f.forEach(function(d,h){a&&a[h]&&(f[h]=E(a[h],d))});return f};d.prototype.predictBubbleSizes=function(){var d=this.chart,a=this.fontMetrics,h=d.legend.options,c=h.floating,b=(h="horizontal"===h.layout)?d.legend.lastLineHeight:0,f=d.plotSizeX,e=d.plotSizeY,l=d.series[this.options.seriesIndex],m=l.getPxExtremes();d=Math.ceil(m.minPxSize);m=Math.ceil(m.maxPxSize);var J=Math.min(e,f);l=l.options.maxSize;if(c||!/%$/.test(l))a=
m;else if(l=parseFloat(l),a=(J+b-a.h/2)*l/100/(l/100+1),h&&e-a>=f||!h&&f-a>=e)a=m;return[d,Math.ceil(a)]};d.prototype.updateRanges=function(d,a){var h=this.legend.options.bubbleLegend;h.minSize=d;h.maxSize=a;h.ranges=this.getRanges()};d.prototype.correctSizes=function(){var d=this.legend,a=this.chart.series[this.options.seriesIndex].getPxExtremes();1<Math.abs(Math.ceil(a.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,a.maxPxSize),d.render())};return d}();"";return c});B(e,
"Series/Bubble/BubbleLegendComposition.js",[e["Series/Bubble/BubbleLegendDefaults.js"],e["Series/Bubble/BubbleLegendItem.js"],e["Core/Defaults.js"],e["Core/Utilities.js"]],function(c,b,l,a){function f(a,g,c){var h=this.legend,b=0<=e(this),k;if(h&&h.options.enabled&&h.bubbleLegend&&h.options.bubbleLegend.autoRanges&&b){var f=h.bubbleLegend.options;b=h.bubbleLegend.predictBubbleSizes();h.bubbleLegend.updateRanges(b[0],b[1]);f.placed||(h.group.placed=!1,h.allItems.forEach(function(d){k=d.legendItem||
{};k.group&&(k.group.translateY=null)}));h.render();this.getMargins();this.axes.forEach(function(h){h.visible&&h.render();f.placed||(h.setScale(),h.updateNames(),d(h.ticks,function(d){d.isNew=!0;d.isNewLabel=!0}))});f.placed=!0;this.getMargins();a.call(this,g,c);h.bubbleLegend.correctSizes();E(h,m(h))}else a.call(this,g,c),h&&h.options.enabled&&h.bubbleLegend&&(h.render(),E(h,m(h)))}function e(d){d=d.series;for(var h=0;h<d.length;){if(d[h]&&d[h].isBubble&&d[h].visible&&d[h].zData.length)return h;
h++}return-1}function m(d){d=d.allItems;var h=[],a=d.length,g,c=0;for(g=0;g<a;g++){var b=d[g].legendItem||{};var k=(d[g+1]||{}).legendItem||{};b.labelHeight&&(d[g].itemHeight=b.labelHeight);if(d[g]===d[a-1]||b.y!==k.y){h.push({height:0});b=h[h.length-1];for(c;c<=g;c++)d[c].itemHeight>b.height&&(b.height=d[c].itemHeight);b.step=g}}return h}function t(d){var h=this.bubbleLegend,a=this.options,g=a.bubbleLegend,c=e(this.chart);h&&h.ranges&&h.ranges.length&&(g.ranges.length&&(g.autoRanges=!!g.ranges[0].autoRanges),
this.destroyItem(h));0<=c&&a.enabled&&g.enabled&&(g.seriesIndex=c,this.bubbleLegend=new b(g,this),this.bubbleLegend.addToLegend(d.allItems))}function p(){var d=this.chart,a=this.visible,g=this.chart.legend;g&&g.bubbleLegend&&(this.visible=!a,this.ignoreSeries=a,d=0<=e(d),g.bubbleLegend.visible!==d&&(g.update({bubbleLegend:{enabled:d}}),g.bubbleLegend.visible=d),this.visible=a)}function E(d,a){var h=d.options.rtl,g,c,b,k,f=0;d.allItems.forEach(function(d,w){k=d.legendItem||{};if(k.group){g=k.group.translateX||
0;c=k.y||0;if((b=d.movementX)||h&&d.ranges)b=h?g-d.options.maxSize/2:g+b,k.group.attr({translateX:b});w>a[f].step&&f++;k.group.attr({translateY:Math.round(c+a[f].height/2)});k.y=c+a[f].height/2}})}var u=l.setOptions,n=a.addEvent,d=a.objectEach,g=a.wrap,k=[];return{compose:function(d,a,b){-1===k.indexOf(d)&&(k.push(d),u({legend:{bubbleLegend:c}}),g(d.prototype,"drawChartBox",f));-1===k.indexOf(a)&&(k.push(a),n(a,"afterGetAllItems",t));-1===k.indexOf(b)&&(k.push(b),n(b,"legendItemClick",p))}}});B(e,
"Series/Bubble/BubblePoint.js",[e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,e){var a=this&&this.__extends||function(){var a=function(c,b){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,c){a.__proto__=c}||function(a,c){for(var b in c)Object.prototype.hasOwnProperty.call(c,b)&&(a[b]=c[b])};return a(c,b)};return function(c,b){function f(){this.constructor=c}if("function"!==typeof b&&null!==b)throw new TypeError("Class extends value "+
String(b)+" is not a constructor or null");a(c,b);c.prototype=null===b?Object.create(b):(f.prototype=b.prototype,new f)}}();e=e.extend;b=function(b){function f(){var a=null!==b&&b.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}a(f,b);f.prototype.haloPath=function(a){return c.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)};return f}(b.seriesTypes.scatter.prototype.pointClass);e(b.prototype,{ttBelow:!1});return b});B(e,"Series/Bubble/BubbleSeries.js",
[e["Series/Bubble/BubbleLegendComposition.js"],e["Series/Bubble/BubblePoint.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,e,a,f,r){function l(){var d=this,a=this.len,g=this.chart,h=this.isXAxis,b=h?"xData":"yData",c=this.min,k=this.max-c,f=0,e=a,l=a/k,n;this.series.forEach(function(a){if(a.bubblePadding&&(a.visible||!g.options.chart.ignoreHiddenSeries)){n=d.allowZoomOutside=!0;var w=a[b];h&&((a.onPoint||a).getRadii(0,0,a),
a.onPoint&&(a.radii=a.onPoint.radii));if(0<k)for(var q=w.length;q--;)if(F(w[q])&&d.dataMin<=w[q]&&w[q]<=d.max){var x=a.radii&&a.radii[q]||0;f=Math.min((w[q]-c)*l-x,f);e=Math.max((w[q]-c)*l+x,e)}}});n&&0<k&&!this.logarithmic&&(e-=a,l*=(a+Math.max(0,f)-Math.min(e,a))/a,[["min","userMin",f],["max","userMax",e]].forEach(function(a){"undefined"===typeof K(d.options[a[0]],d[a[1]])&&(d[a[0]]+=a[2]/l)}))}var t=this&&this.__extends||function(){var d=function(a,g){d=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(d,a){d.__proto__=a}||function(d,a){for(var g in a)Object.prototype.hasOwnProperty.call(a,g)&&(d[g]=a[g])};return d(a,g)};return function(a,g){function h(){this.constructor=a}if("function"!==typeof g&&null!==g)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");d(a,g);a.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)}}(),p=e.parse;e=a.noop;var E=f.series,u=f.seriesTypes;a=u.column.prototype;var n=u.scatter;u=r.addEvent;var d=r.arrayMax,
g=r.arrayMin,k=r.clamp,h=r.extend,F=r.isNumber,C=r.merge,K=r.pick,L=[];r=function(a){function b(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.maxPxSize=void 0;d.minPxSize=void 0;d.options=void 0;d.points=void 0;d.radii=void 0;d.yData=void 0;d.zData=void 0;return d}t(b,a);b.compose=function(d,a,g,b){c.compose(a,g,b);-1===L.indexOf(d)&&(L.push(d),d.prototype.beforePadding=l)};b.prototype.animate=function(d){!d&&this.points.length<this.options.animationLimit&&this.points.forEach(function(d){var a=
d.graphic;a&&a.width&&(this.hasRendered||a.attr({x:d.plotX,y:d.plotY,width:1,height:1}),a.animate(this.markerAttribs(d),this.options.animation))},this)};b.prototype.getRadii=function(){var d=this,a=this.zData,g=this.yData,b=[],h=this.chart.bubbleZExtremes;var c=this.getPxExtremes();var k=c.minPxSize,f=c.maxPxSize;if(!h){var e=Number.MAX_VALUE,l=-Number.MAX_VALUE,n;this.chart.series.forEach(function(a){a.bubblePadding&&(a.visible||!d.chart.options.chart.ignoreHiddenSeries)&&(a=(a.onPoint||a).getZExtremes())&&
(e=Math.min(e||a.zMin,a.zMin),l=Math.max(l||a.zMax,a.zMax),n=!0)});n?(h={zMin:e,zMax:l},this.chart.bubbleZExtremes=h):h={zMin:0,zMax:0}}var m=0;for(c=a.length;m<c;m++){var C=a[m];b.push(this.getRadius(h.zMin,h.zMax,k,f,C,g&&g[m]))}this.radii=b};b.prototype.getRadius=function(d,a,g,h,b,c){var w=this.options,k="width"!==w.sizeBy,f=w.zThreshold,e=a-d,l=.5;if(null===c||null===b)return null;if(F(b)){w.sizeByAbsoluteValue&&(b=Math.abs(b-f),e=Math.max(a-f,Math.abs(d-f)),d=0);if(b<d)return g/2-1;0<e&&(l=
(b-d)/e)}k&&0<=l&&(l=Math.sqrt(l));return Math.ceil(g+l*(h-g))/2};b.prototype.hasData=function(){return!!this.processedXData.length};b.prototype.pointAttribs=function(d,a){var g=this.options.marker.fillOpacity;d=E.prototype.pointAttribs.call(this,d,a);1!==g&&(d.fill=p(d.fill).setOpacity(g).get("rgba"));return d};b.prototype.translate=function(){a.prototype.translate.call(this);this.getRadii();this.translateBubble()};b.prototype.translateBubble=function(){for(var d=this.data,a=this.radii,g=this.getPxExtremes().minPxSize,
b=d.length;b--;){var c=d[b],k=a?a[b]:0;F(k)&&k>=g/2?(c.marker=h(c.marker,{radius:k,width:2*k,height:2*k}),c.dlBox={x:c.plotX-k,y:c.plotY-k,width:2*k,height:2*k}):(c.shapeArgs=c.plotY=c.dlBox=void 0,c.isInside=!1)}};b.prototype.getPxExtremes=function(){var d=Math.min(this.chart.plotWidth,this.chart.plotHeight),a=function(a){if("string"===typeof a){var g=/%$/.test(a);a=parseInt(a,10)}return g?d*a/100:a},g=a(K(this.options.minSize,8));a=Math.max(a(K(this.options.maxSize,"20%")),g);return{minPxSize:g,
maxPxSize:a}};b.prototype.getZExtremes=function(){var a=this.options,b=(this.zData||[]).filter(F);if(b.length){var h=K(a.zMin,k(g(b),!1===a.displayNegative?a.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE));a=K(a.zMax,d(b));if(F(h)&&F(a))return{zMin:h,zMax:a}}};b.defaultOptions=C(n.defaultOptions,{dataLabels:{formatter:function(){var d=this.series.chart.numberFormatter,a=this.point.z;return F(a)?d(a,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,
fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"});return b}(n);h(r.prototype,{alignDataLabel:a.alignDataLabel,applyZones:e,bubblePadding:!0,buildKDTree:e,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:b,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",
zoneAxis:"z"});u(r,"updatedData",function(d){delete d.target.chart.bubbleZExtremes});u(r,"remove",function(d){delete d.target.chart.bubbleZExtremes});f.registerSeriesType("bubble",r);"";"";return r});B(e,"Series/ColumnRange/ColumnRangePoint.js",[e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b){var e=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function f(){this.constructor=b}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),a=c.seriesTypes;c=a.column.prototype.pointClass.prototype;var f=b.extend,r=b.isNumber;b=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.options=void 0;b.series=void 0;return b}e(b,a);b.prototype.isValid=
function(){return r(this.low)};return b}(a.arearange.prototype.pointClass);f(b.prototype,{setState:c.setState});return b});B(e,"Series/ColumnRange/ColumnRangeSeries.js",[e["Series/ColumnRange/ColumnRangePoint.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,e,a){var f=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var b in a)Object.prototype.hasOwnProperty.call(a,
b)&&(d[b]=a[b])};return d(a,b)};return function(a,b){function g(){this.constructor=a}if("function"!==typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");d(a,b);a.prototype=null===b?Object.create(b):(g.prototype=b.prototype,new g)}}();b=b.noop;var l=e.seriesTypes,m=l.arearange,t=l.column,p=l.column.prototype,E=a.clamp;l=a.extend;var u=a.isNumber,n=a.merge,d=a.pick,g={pointRange:null,marker:null,states:{hover:{halo:!1}}};a=function(a){function b(){return null!==
a&&a.apply(this,arguments)||this}f(b,a);b.prototype.setOptions=function(){n(!0,arguments[0],{stacking:void 0});return m.prototype.setOptions.apply(this,arguments)};b.prototype.translate=function(){var a=this,b=this.yAxis,g=this.xAxis,c=g.startAngleRad,h=this.chart,k=this.xAxis.isRadial,f=Math.max(h.chartWidth,h.chartHeight)+999,e,w,l,y;p.translate.apply(this);this.points.forEach(function(x){var q=x.shapeArgs||{},n=a.options.minPointLength,m=x.plotY,I=b.translate(x.high,0,1,0,1);u(I)&&u(m)&&(x.plotHigh=
E(I,-f,f),x.plotLow=E(m,-f,f),y=x.plotHigh,e=d(x.rectPlotY,x.plotY)-x.plotHigh,Math.abs(e)<n?(w=n-e,e+=w,y-=w/2):0>e&&(e*=-1,y-=e),k&&a.polar?(l=x.barX+c,x.shapeType="arc",x.shapeArgs=a.polar.arc(y+e,y,l,l+x.pointWidth)):(q.height=e,q.y=y,n=q.x,n=void 0===n?0:n,q=q.width,q=void 0===q?0:q,x.tooltipPos=h.inverted?[b.len+b.pos-h.plotLeft-y-e/2,g.len+g.pos-h.plotTop-n-q/2,e]:[g.left-h.plotLeft+n+q/2,b.pos-h.plotTop+y+e/2,e]))})};b.prototype.pointAttribs=function(){return p.pointAttribs.apply(this,arguments)};
b.prototype.translate3dPoints=function(){return p.translate3dPoints.apply(this,arguments)};b.prototype.translate3dShapes=function(){return p.translate3dShapes.apply(this,arguments)};b.defaultOptions=n(t.defaultOptions,m.defaultOptions,g);return b}(m);l(a.prototype,{directTouch:!0,pointClass:c,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:p.adjustForMissingColumns,animate:p.animate,crispCol:p.crispCol,drawGraph:b,drawPoints:p.drawPoints,getSymbol:b,drawTracker:p.drawTracker,getColumnMetrics:p.getColumnMetrics});
e.registerSeriesType("columnrange",a);"";return a});B(e,"Series/ColumnPyramid/ColumnPyramidSeries.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,e){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,d){a.__proto__=d}||function(a,d){for(var b in d)Object.prototype.hasOwnProperty.call(d,b)&&(a[b]=d[b])};return a(b,c)};return function(b,c){function f(){this.constructor=
b}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(b,c);b.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}(),f=c.prototype,l=e.clamp,m=e.merge,t=e.pick;e=function(b){function e(){var a=null!==b&&b.apply(this,arguments)||this;a.data=void 0;a.options=void 0;a.points=void 0;return a}a(e,b);e.prototype.translate=function(){var a=this,b=a.chart,d=a.options,g=a.dense=2>a.closestPointRange*a.xAxis.transA;g=a.borderWidth=
t(d.borderWidth,g?0:1);var c=a.yAxis,h=d.threshold,e=a.translatedThreshold=c.getThreshold(h),m=t(d.minPointLength,5),r=a.getColumnMetrics(),L=r.width,G=a.barW=Math.max(L,1+2*g),p=a.pointXOffset=r.offset;b.inverted&&(e-=.5);d.pointPadding&&(G=Math.ceil(G));f.translate.apply(a);a.points.forEach(function(g){var f=t(g.yBottom,e),k=999+Math.abs(f),x=l(g.plotY,-k,c.len+k);k=g.plotX+p;var y=G/2,n=Math.min(x,f);f=Math.max(x,f)-n;var q;g.barX=k;g.pointWidth=L;g.tooltipPos=b.inverted?[c.len+c.pos-b.plotLeft-
x,a.xAxis.len-k-y,f]:[k+y,x+c.pos-b.plotTop,f];x=h+(g.total||g.y);"percent"===d.stacking&&(x=h+(0>g.y)?-100:100);x=c.toPixels(x,!0);var r=(q=b.plotHeight-x-(b.plotHeight-e))?y*(n-x)/q:0;var C=q?y*(n+f-x)/q:0;q=k-r+y;r=k+r+y;var u=k+C+y;C=k-C+y;var A=n-m;var F=n+f;0>g.y&&(A=n,F=n+f+m);b.inverted&&(u=c.width-n,q=x-(c.width-e),r=y*(x-u)/q,C=y*(x-(u-f))/q,q=k+y+r,r=q-2*r,u=k-C+y,C=k+C+y,A=n,F=n+f-m,0>g.y&&(F=n+f+m));g.shapeType="path";g.shapeArgs={x:q,y:A,width:r-q,height:f,d:[["M",q,A],["L",r,A],["L",
u,F],["L",C,F],["Z"]]}})};e.defaultOptions=m(c.defaultOptions,{});return e}(c);b.registerSeriesType("columnpyramid",e);"";return e});B(e,"Series/ErrorBar/ErrorBarSeriesDefaults.js",[],function(){"";return{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}});B(e,"Series/ErrorBar/ErrorBarSeries.js",[e["Series/BoxPlot/BoxPlotSeries.js"],e["Series/Column/ColumnSeries.js"],
e["Series/ErrorBar/ErrorBarSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,e,a,f){var l=this&&this.__extends||function(){var a=function(b,d){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=a}||function(d,a){for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&(d[b]=a[b])};return a(b,d)};return function(b,d){function g(){this.constructor=b}if("function"!==typeof d&&null!==d)throw new TypeError("Class extends value "+
String(d)+" is not a constructor or null");a(b,d);b.prototype=null===d?Object.create(d):(g.prototype=d.prototype,new g)}}(),m=a.seriesTypes.arearange,t=f.addEvent,p=f.merge;f=f.extend;var E=function(a){function f(){var d=null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.options=void 0;d.points=void 0;return d}l(f,a);f.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||b.prototype.getColumnMetrics.call(this)};f.prototype.drawDataLabels=function(){var d=
this.pointValKey;m&&(m.prototype.drawDataLabels.call(this),this.data.forEach(function(a){a.y=a[d]}))};f.prototype.toYData=function(d){return[d.low,d.high]};f.defaultOptions=p(c.defaultOptions,e);return f}(c);t(E,"afterTranslate",function(){this.points.forEach(function(a){a.plotLow=a.plotY})},{order:0});f(E.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1});a.registerSeriesType("errorbar",E);return E});B(e,"Series/Gauge/GaugePoint.js",[e["Core/Series/SeriesRegistry.js"]],function(c){var b=
this&&this.__extends||function(){var b=function(a,c){b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return b(a,c)};return function(a,c){function f(){this.constructor=a}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");b(a,c);a.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)}}();return function(c){function a(){var a=
null!==c&&c.apply(this,arguments)||this;a.options=void 0;a.series=void 0;a.shapeArgs=void 0;return a}b(a,c);a.prototype.setState=function(a){this.state=a};return a}(c.series.prototype.pointClass)});B(e,"Series/Gauge/GaugeSeries.js",[e["Series/Gauge/GaugePoint.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,e,a){var f=this&&this.__extends||function(){var d=function(a,b){d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,a){d.__proto__=
a}||function(d,a){for(var b in a)Object.prototype.hasOwnProperty.call(a,b)&&(d[b]=a[b])};return d(a,b)};return function(a,b){function c(){this.constructor=a}if("function"!==typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");d(a,b);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)}}();b=b.noop;var l=e.series,m=e.seriesTypes.column,t=a.clamp,p=a.isNumber,E=a.extend,u=a.merge,n=a.pick,d=a.pInt;a=function(a){function b(){var d=
null!==a&&a.apply(this,arguments)||this;d.data=void 0;d.points=void 0;d.options=void 0;d.yAxis=void 0;return d}f(b,a);b.prototype.translate=function(){var a=this.yAxis,b=this.options,c=a.center;this.generatePoints();this.points.forEach(function(g){var h=u(b.dial,g.dial),f=d(h.radius)*c[2]/200,e=d(h.baseLength)*f/100,k=d(h.rearLength)*f/100,l=h.baseWidth,w=h.topWidth,x=b.overshoot,y=a.startAngleRad+a.translate(g.y,void 0,void 0,void 0,!0);if(p(x)||!1===b.wrap)x=p(x)?x/180*Math.PI:0,y=t(y,a.startAngleRad-
x,a.endAngleRad+x);y=180*y/Math.PI;g.shapeType="path";g.shapeArgs={d:h.path||[["M",-k,-l/2],["L",e,-l/2],["L",f,-w/2],["L",f,w/2],["L",e,l/2],["L",-k,l/2],["Z"]],translateX:c[0],translateY:c[1],rotation:y};g.plotX=c[0];g.plotY=c[1]})};b.prototype.drawPoints=function(){var a=this,d=a.chart,b=a.yAxis.center,c=a.pivot,g=a.options,f=g.pivot,e=d.renderer;a.points.forEach(function(b){var c=b.graphic,h=b.shapeArgs,f=h.d,k=u(g.dial,b.dial);c?(c.animate(h),h.d=f):b.graphic=e[b.shapeType](h).attr({rotation:h.rotation,
zIndex:1}).addClass("highcharts-dial").add(a.group);if(!d.styledMode)b.graphic[c?"animate":"attr"]({stroke:k.borderColor,"stroke-width":k.borderWidth,fill:k.backgroundColor})});c?c.animate({translateX:b[0],translateY:b[1]}):f&&(a.pivot=e.circle(0,0,f.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(b[0],b[1]).add(a.group),d.styledMode||a.pivot.attr({fill:f.backgroundColor,stroke:f.borderColor,"stroke-width":f.borderWidth}))};b.prototype.animate=function(a){var d=this;a||d.points.forEach(function(a){var b=
a.graphic;b&&(b.attr({rotation:180*d.yAxis.startAngleRad/Math.PI}),b.animate({rotation:a.shapeArgs.rotation},d.options.animation))})};b.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup);l.prototype.render.call(this);this.group.clip(this.chart.clipRect)};b.prototype.setData=function(a,d){l.prototype.setData.call(this,a,!1);this.processData();this.generatePoints();n(d,!0)&&this.chart.redraw()};b.prototype.hasData=
function(){return!!this.points.length};b.defaultOptions=u(l.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});return b}(l);E(a.prototype,{angular:!0,
directTouch:!0,drawGraph:b,drawTracker:m.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:c,trackerGroups:["group","dataLabelsGroup"]});e.registerSeriesType("gauge",a);"";return a});B(e,"Series/DragNodesComposition.js",[e["Core/Utilities.js"]],function(c){function b(){var a=this,b,c,l;a.container&&(b=e(a.container,"mousedown",function(b){var f=a.hoverPoint;f&&f.series&&f.series.hasDraggableNodes&&f.series.options.draggable&&(f.series.onMouseDown(f,b),c=e(a.container,"mousemove",
function(a){return f&&f.series&&f.series.onMouseMove(f,a)}),l=e(a.container.ownerDocument,"mouseup",function(a){c();l();return f&&f.series&&f.series.onMouseUp(f,a)}))}));e(a,"destroy",function(){b()})}var e=c.addEvent,a=[];return{compose:function(c){-1===a.indexOf(c)&&(a.push(c),e(c,"load",b))},onMouseDown:function(a,b){b=this.chart.pointer.normalize(b);a.fixedPosition={chartX:b.chartX,chartY:b.chartY,plotX:a.plotX,plotY:a.plotY};a.inDragMode=!0},onMouseMove:function(a,b){if(a.fixedPosition&&a.inDragMode){var c=
this.chart,e=c.pointer.normalize(b);b=a.fixedPosition.chartX-e.chartX;e=a.fixedPosition.chartY-e.chartY;var f=c.graphLayoutsLookup,l=void 0,r=void 0;if(5<Math.abs(b)||5<Math.abs(e))l=a.fixedPosition.plotX-b,r=a.fixedPosition.plotY-e,c.isInsidePlot(l,r)&&(a.plotX=l,a.plotY=r,a.hasDragged=!0,this.redrawHalo(a),f.forEach(function(a){a.restartSimulation()}))}},onMouseUp:function(a,b){a.fixedPosition&&(a.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),a.inDragMode=a.hasDragged=
!1,this.options.fixedDraggable||delete a.fixedPosition)},redrawHalo:function(a){a&&this.halo&&this.halo.attr({d:a.haloPath(this.options.states.hover.halo.size)})}}});B(e,"Series/GraphLayoutComposition.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Utilities.js"]],function(c,b){function e(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(a){a.updateSimulation()}),this.redraw())}function a(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(a){a.updateSimulation(!1)}),
this.redraw())}function f(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(a){a.stop()})}function r(){var a=!1,b=function(d){d.maxIterations--&&isFinite(d.temperature)&&!d.isStable()&&!d.enableSimulation&&(d.beforeStep&&d.beforeStep(),d.step(),c=!1,a=!0)};if(this.graphLayoutsLookup){m(!1,this);for(this.graphLayoutsLookup.forEach(function(a){return a.start()});!c;){var c=!0;this.graphLayoutsLookup.forEach(b)}a&&this.series.forEach(function(a){a&&a.layout&&a.render()})}}var m=c.setAnimation,
t=b.addEvent,p=[];return{compose:function(b){p.indexOf(b)&&(p.push(b),t(b,"afterPrint",e),t(b,"beforePrint",a),t(b,"predraw",f),t(b,"render",r))},integrations:{},layouts:{}}});B(e,"Series/PackedBubble/PackedBubblePoint.js",[e["Core/Chart/Chart.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesRegistry.js"]],function(c,b,e){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,
c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}();return function(e){function f(){var a=null!==e&&e.apply(this,arguments)||this;a.degree=NaN;a.mass=NaN;a.radius=NaN;a.options=void 0;a.series=void 0;a.value=null;return a}a(f,e);f.prototype.destroy=function(){this.series.layout&&
this.series.layout.removeElementFromCollection(this,this.series.layout.nodes);return b.prototype.destroy.apply(this,arguments)};f.prototype.firePointEvent=function(){var a=this.series.options;if(this.isParentNode&&a.parentNode){var c=a.allowPointSelect;a.allowPointSelect=a.parentNode.allowPointSelect;b.prototype.firePointEvent.apply(this,arguments);a.allowPointSelect=c}else b.prototype.firePointEvent.apply(this,arguments)};f.prototype.select=function(){var a=this.series.chart;this.isParentNode?(a.getSelectedPoints=
a.getSelectedParentNodes,b.prototype.select.apply(this,arguments),a.getSelectedPoints=c.prototype.getSelectedPoints):b.prototype.select.apply(this,arguments)};return f}(e.seriesTypes.bubble.prototype.pointClass)});B(e,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[e["Core/Utilities.js"]],function(c){var b=c.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 c=this.series.chart.numberFormatter,a=this.point.value;return b(a)?c(a,-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}}});B(e,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(c,b,e){var a=c.getMass(),f=-e.x*b*this.diffTemperature;b=-e.y*b*this.diffTemperature;c.fromNode.fixedPosition||(c.fromNode.plotX-=f*a.fromNode/c.fromNode.degree,c.fromNode.plotY-=
b*a.fromNode/c.fromNode.degree);c.toNode.fixedPosition||(c.toNode.plotX+=f*a.toNode/c.toNode.degree,c.toNode.plotY+=b*a.toNode/c.toNode.degree)},attractiveForceFunction:function(c,b){return(b-c)/c},barycenter:function(){var c=this.options.gravitationalConstant,b=this.barycenter.xFactor,e=this.barycenter.yFactor;b=(b-(this.box.left+this.box.width)/2)*c;e=(e-(this.box.top+this.box.height)/2)*c;this.nodes.forEach(function(a){a.fixedPosition||(a.plotX-=b/a.mass/a.degree,a.plotY-=e/a.mass/a.degree)})},
getK:function(c){return Math.pow(c.box.width*c.box.height/c.nodes.length,.5)},integrate:function(c,b){var e=-c.options.friction,a=c.options.maxSpeed,f=(b.plotX+b.dispX-b.prevX)*e;e*=b.plotY+b.dispY-b.prevY;var r=Math.abs,m=r(f)/(f||1);r=r(e)/(e||1);f=m*Math.min(a,Math.abs(f));e=r*Math.min(a,Math.abs(e));b.prevX=b.plotX+b.dispX;b.prevY=b.plotY+b.dispY;b.plotX+=f;b.plotY+=e;b.temperature=c.vectorLength({x:f,y:e})},repulsive:function(c,b,e){b=b*this.diffTemperature/c.mass/c.degree;c.fixedPosition||(c.plotX+=
e.x*b,c.plotY+=e.y*b)},repulsiveForceFunction:function(c,b){return(b-c)/c*(b>c?1:0)}}});B(e,"Series/PackedBubble/PackedBubbleIntegration.js",[e["Core/Globals.js"],e["Series/Networkgraph/VerletIntegration.js"]],function(c,b){return{barycenter:function(){for(var b=this.options.gravitationalConstant,a=this.box,c=this.nodes,e,m,t=0;t<c.length;t++){var p=c[t];this.options.splitSeries&&!p.isParentNode?(e=p.series.parentNode.plotX,m=p.series.parentNode.plotY):(e=a.width/2,m=a.height/2);p.fixedPosition||
(p.plotX-=(p.plotX-e)*b/(p.mass*Math.sqrt(c.length)),p.plotY-=(p.plotY-m)*b/(p.mass*Math.sqrt(c.length)))}},getK:c.noop,integrate:b.integrate,repulsive:function(b,a,c,e){var f=a*this.diffTemperature/b.mass/b.degree;a=c.x*f;c=c.y*f;b.fixedPosition||(b.plotX+=a,b.plotY+=c);e.fixedPosition||(e.plotX-=a,e.plotY-=c)},repulsiveForceFunction:function(b,a,c,e){return Math.min(b,(c.marker.radius+e.marker.radius)/2)}}});B(e,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(c,
b,e,a){var f=c.getMass(),l=e.x/a*b;b*=e.y/a;c.fromNode.fixedPosition||(c.fromNode.dispX-=l*f.fromNode/c.fromNode.degree,c.fromNode.dispY-=b*f.fromNode/c.fromNode.degree);c.toNode.fixedPosition||(c.toNode.dispX+=l*f.toNode/c.toNode.degree,c.toNode.dispY+=b*f.toNode/c.toNode.degree)},attractiveForceFunction:function(c,b){return c*c/b},barycenter:function(){var c=this.options.gravitationalConstant,b=this.barycenter.xFactor,e=this.barycenter.yFactor;this.nodes.forEach(function(a){if(!a.fixedPosition){var f=
a.getDegree();f*=1+f/2;a.dispX+=(b-a.plotX)*c*f/a.degree;a.dispY+=(e-a.plotY)*c*f/a.degree}})},getK:function(c){return Math.pow(c.box.width*c.box.height/c.nodes.length,.3)},integrate:function(c,b){b.dispX+=b.dispX*c.options.friction;b.dispY+=b.dispY*c.options.friction;var e=b.temperature=c.vectorLength({x:b.dispX,y:b.dispY});0!==e&&(b.plotX+=b.dispX/e*Math.min(Math.abs(b.dispX),c.temperature),b.plotY+=b.dispY/e*Math.min(Math.abs(b.dispY),c.temperature))},repulsive:function(c,b,e,a){c.dispX+=e.x/a*
b/c.degree;c.dispY+=e.y/a*b/c.degree},repulsiveForceFunction:function(c,b){return b*b/c}}});B(e,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function c(b){this.isInternal=this.isEmpty=this.body=!1;this.nodes=[];this.box=b;this.boxSize=Math.min(b.width,b.height)}c.prototype.divideBox=function(){var b=this.box.width/2,e=this.box.height/2;this.nodes[0]=new c({left:this.box.left,top:this.box.top,width:b,height:e});this.nodes[1]=new c({left:this.box.left+b,top:this.box.top,width:b,
height:e});this.nodes[2]=new c({left:this.box.left+b,top:this.box.top+e,width:b,height:e});this.nodes[3]=new c({left:this.box.left,top:this.box.top+e,width:b,height:e})};c.prototype.getBoxPosition=function(b){var c=b.plotY<this.box.top+this.box.height/2;return b.plotX<this.box.left+this.box.width/2?c?0:3:c?1:2};c.prototype.insert=function(b,e){this.isInternal?this.nodes[this.getBoxPosition(b)].insert(b,e-1):(this.isEmpty=!1,this.body?e?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,
e-1),this.body=!0),this.nodes[this.getBoxPosition(b)].insert(b,e-1)):(e=new c({top:b.plotX||NaN,left:b.plotY||NaN,width:.1,height:.1}),e.body=b,e.isInternal=!1,this.nodes.push(e)):(this.isInternal=!1,this.body=b))};c.prototype.updateMassAndCenter=function(){var b=0,c=0,a=0;if(this.isInternal){for(var e=0,r=this.nodes;e<r.length;e++){var m=r[e];m.isEmpty||(b+=m.mass,c+=m.plotX*m.mass,a+=m.plotY*m.mass)}c/=b;a/=b}else this.body&&(b=this.body.mass,c=this.body.plotX,a=this.body.plotY);this.mass=b;this.plotX=
c;this.plotY=a};return c}()});B(e,"Series/Networkgraph/QuadTree.js",[e["Series/Networkgraph/QuadTreeNode.js"]],function(c){return function(){function b(b,a,e,r){this.box={left:b,top:a,width:e,height:r};this.maxDepth=25;this.root=new c(this.box);this.root.isInternal=!0;this.root.isRoot=!0;this.root.divideBox()}b.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(b){b.updateMassAndCenter()})};b.prototype.insertNodes=function(b){for(var a=0;a<b.length;a++)this.root.insert(b[a],
this.maxDepth)};b.prototype.visitNodeRecursive=function(b,a,c){var e;b||(b=this.root);b===this.root&&a&&(e=a(b));if(!1!==e){for(var f=0,l=b.nodes;f<l.length;f++){var p=l[f];if(p.isInternal){a&&(e=a(p));if(!1===e)continue;this.visitNodeRecursive(p,a,c)}else p.body&&a&&a(p.body);c&&c(p)}b===this.root&&c&&c(b)}};return b}()});B(e,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[e["Series/Networkgraph/EulerIntegration.js"],e["Core/Globals.js"],e["Series/GraphLayoutComposition.js"],e["Series/Networkgraph/QuadTree.js"],
e["Core/Utilities.js"],e["Series/Networkgraph/VerletIntegration.js"]],function(c,b,e,a,f,r){var l=b.win,t=f.clamp,p=f.defined,E=f.isFunction,u=f.pick;return function(){function b(){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}b.compose=function(a){e.compose(a);e.integrations.euler=c;e.integrations.verlet=r;e.layouts["reingold-fruchterman"]=
b};b.prototype.init=function(a){this.options=a;this.nodes=[];this.links=[];this.series=[];this.box={x:0,y:0,width:0,height:0};this.setInitialRendering(!0);this.integration=e.integrations[a.integration];this.enableSimulation=a.enableSimulation;this.attractiveForce=u(a.attractiveForce,this.integration.attractiveForceFunction);this.repulsiveForce=u(a.repulsiveForce,this.integration.repulsiveForceFunction);this.approximation=a.approximation};b.prototype.updateSimulation=function(a){this.enableSimulation=
u(a,this.options.enableSimulation)};b.prototype.start=function(){var a=this.series,b=this.options;this.currentStep=0;this.forces=a[0]&&a[0].forces||[];this.chart=a[0]&&a[0].chart;this.initialRendering&&(this.initPositions(),a.forEach(function(a){a.finishedAnimating=!0;a.render()}));this.setK();this.resetSimulation(b);this.enableSimulation&&this.step()};b.prototype.step=function(){var a=this,b=this.series;this.currentStep++;"barnes-hut"===this.approximation&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());
for(var c=0,e=this.forces||[];c<e.length;c++)this[e[c]+"Forces"](this.temperature);this.applyLimits();this.temperature=this.coolDown(this.startTemperature,this.diffTemperature,this.currentStep);this.prevSystemTemperature=this.systemTemperature;this.systemTemperature=this.getSystemTemperature();if(this.enableSimulation){for(c=0;c<b.length;c++)e=b[c],e.chart&&e.render();this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&l.cancelAnimationFrame(this.simulation),this.simulation=
l.requestAnimationFrame(function(){return a.step()})):this.simulation=!1}};b.prototype.stop=function(){this.simulation&&l.cancelAnimationFrame(this.simulation)};b.prototype.setArea=function(a,b,c,e){this.box={left:a,top:b,width:c,height:e}};b.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)};b.prototype.addElementsToCollection=function(a,b){for(var d=0;d<a.length;d++){var c=a[d];-1===b.indexOf(c)&&b.push(c)}};b.prototype.removeElementFromCollection=function(a,
b){a=b.indexOf(a);-1!==a&&b.splice(a,1)};b.prototype.clear=function(){this.nodes.length=0;this.links.length=0;this.series.length=0;this.resetSimulation()};b.prototype.resetSimulation=function(){this.forcedStop=!1;this.systemTemperature=0;this.setMaxIterations();this.setTemperature();this.setDiffTemperature()};b.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))};b.prototype.setMaxIterations=function(a){this.maxIterations=u(a,this.options.maxIterations)};b.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)};b.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)};b.prototype.setInitialRendering=function(a){this.initialRendering=a};b.prototype.createQuadTree=function(){this.quadTree=new a(this.box.left,this.box.top,
this.box.width,this.box.height);this.quadTree.insertNodes(this.nodes)};b.prototype.initPositions=function(){var a=this.options.initialPositions;if(E(a)){a.call(this);a=0;for(var b=this.nodes;a<b.length;a++){var c=b[a];p(c.prevX)||(c.prevX=c.plotX);p(c.prevY)||(c.prevY=c.plotY);c.dispX=0;c.dispY=0}}else"circle"===a?this.setCircularPositions():this.setRandomPositions()};b.prototype.setCircularPositions=function(){for(var a=this.box,b=this.nodes,c=2*Math.PI/(b.length+1),e=b.filter(function(a){return 0===
a.linksTo.length}),f={},l=this.options.initialPositionRadius,n=function(a){var b=0;for(a=a.linksFrom||[];b<a.length;b++){var d=a[b];f[d.toNode.id]||(f[d.toNode.id]=!0,m.push(d.toNode),n(d.toNode))}},m=[],p=0;p<e.length;p++){var r=e[p];m.push(r);n(r)}if(m.length)for(e=0;e<b.length;e++)p=b[e],-1===m.indexOf(p)&&m.push(p);else m=b;e=0;for(p=m.length;e<p;++e)b=m[e],b.plotX=b.prevX=u(b.plotX,a.width/2+l*Math.cos(e*c)),b.plotY=b.prevY=u(b.plotY,a.height/2+l*Math.sin(e*c)),b.dispX=0,b.dispY=0};b.prototype.setRandomPositions=
function(){for(var a=this.box,b=this.nodes,c=b.length+1,e=function(a){a=a*a/Math.PI;return a-=Math.floor(a)},f,l=0,m=b.length;l<m;++l)f=b[l],f.plotX=f.prevX=u(f.plotX,a.width*e(l)),f.plotY=f.prevY=u(f.plotY,a.height*e(c+l)),f.dispX=0,f.dispY=0};b.prototype.force=function(a){for(var b=[],d=1;d<arguments.length;d++)b[d-1]=arguments[d];this.integration[a].apply(this,b)};b.prototype.barycenterForces=function(){this.getBarycenter();this.force("barycenter")};b.prototype.getBarycenter=function(){for(var a=
0,b=0,c=0,e=0,f=this.nodes;e<f.length;e++){var l=f[e];b+=l.plotX*l.mass;c+=l.plotY*l.mass;a+=l.mass}return this.barycenter={x:b,y:c,xFactor:b/a,yFactor:c/a}};b.prototype.barnesHutApproximation=function(a,b){var d=this.getDistXY(a,b),c=this.vectorLength(d);if(a!==b&&0!==c)if(b.isInternal)if(b.boxSize/c<this.options.theta&&0!==c){var e=this.repulsiveForce(c,this.k);this.force("repulsive",a,e*b.mass,d,c);var g=!1}else g=!0;else e=this.repulsiveForce(c,this.k),this.force("repulsive",a,e*b.mass,d,c);return g};
b.prototype.repulsiveForces=function(){var a=this;if("barnes-hut"===this.approximation)for(var b=function(b){c.quadTree.visitNodeRecursive(null,function(d){return a.barnesHutApproximation(b,d)})},c=this,e=0,f=this.nodes;e<f.length;e++){var l=f[e];b(l)}else{f=e=b=void 0;for(var m=0,n=this.nodes;m<n.length;m++){l=n[m];for(var p=0,r=this.nodes;p<r.length;p++){var t=r[p];l===t||l.fixedPosition||(f=this.getDistXY(l,t),e=this.vectorLength(f),0!==e&&(b=this.repulsiveForce(e,this.k),this.force("repulsive",
l,b*t.mass,f,e)))}}}};b.prototype.attractiveForces=function(){for(var a,b,c,e=0,f=this.links;e<f.length;e++){var l=f[e];l.fromNode&&l.toNode&&(a=this.getDistXY(l.fromNode,l.toNode),b=this.vectorLength(a),0!==b&&(c=this.attractiveForce(b,this.k),this.force("attractive",l,c,a,b)))}};b.prototype.applyLimits=function(){for(var a=0,b=this.nodes;a<b.length;a++){var c=b[a];if(c.fixedPosition)break;this.integration.integrate(this,c);this.applyLimitBox(c,this.box);c.dispX=0;c.dispY=0}};b.prototype.applyLimitBox=
function(a,b){var c=a.radius;a.plotX=t(a.plotX,b.left+c,b.width-c);a.plotY=t(a.plotY,b.top+c,b.height-c)};b.prototype.coolDown=function(a,b,c){return a-b*c};b.prototype.isStable=function(){return.00001>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature};b.prototype.getSystemTemperature=function(){for(var a=0,b=0,c=this.nodes;b<c.length;b++)a+=c[b].temperature;return a};b.prototype.vectorLength=function(a){return Math.sqrt(a.x*a.x+a.y*a.y)};b.prototype.getDistR=function(a,
b){a=this.getDistXY(a,b);return this.vectorLength(a)};b.prototype.getDistXY=function(a,b){var c=a.plotX-b.plotX;a=a.plotY-b.plotY;return{x:c,y:a,absX:Math.abs(c),absY:Math.abs(a)}};return b}()});B(e,"Series/PackedBubble/PackedBubbleLayout.js",[e["Series/GraphLayoutComposition.js"],e["Series/PackedBubble/PackedBubbleIntegration.js"],e["Series/Networkgraph/ReingoldFruchtermanLayout.js"],e["Core/Utilities.js"]],function(c,b,e,a){function f(){var a=[];this.series.forEach(function(b){b.parentNode&&b.parentNode.selected&&
a.push(b.parentNode)});return a}function l(){this.allDataPoints&&delete this.allDataPoints}var m=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");
a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),t=a.addEvent,p=a.pick,E=[];a=function(a){function n(){var b=null!==a&&a.apply(this,arguments)||this;b.index=NaN;b.nodes=[];b.options=void 0;b.series=[];return b}m(n,a);n.compose=function(a){e.compose(a);c.integrations.packedbubble=b;c.layouts.packedbubble=n;-1===E.indexOf(a)&&(E.push(a),t(a,"beforeRedraw",l),a.prototype.getSelectedParentNodes=f)};n.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(a){a&&
a.calculateParentRadius()})};n.prototype.isStable=function(){var a=Math.abs(this.prevSystemTemperature-this.systemTemperature);return 1>Math.abs(10*this.systemTemperature/Math.sqrt(this.nodes.length))&&.00001>a||0>=this.temperature};n.prototype.setCircularPositions=function(){for(var a=this.box,b=this.nodes,c=2*Math.PI/(b.length+1),e=this.options.initialPositionRadius,f,l,m=0,n=0;n<b.length;n++){var r=b[n];this.options.splitSeries&&!r.isParentNode?(f=r.series.parentNode.plotX,l=r.series.parentNode.plotY):
(f=a.width/2,l=a.height/2);r.plotX=r.prevX=p(r.plotX,f+e*Math.cos(r.index||m*c));r.plotY=r.prevY=p(r.plotY,l+e*Math.sin(r.index||m*c));r.dispX=0;r.dispY=0;m++}};n.prototype.repulsiveForces=function(){var a=this,b=a.options.bubblePadding,c,e,f;a.nodes.forEach(function(d){d.degree=d.mass;d.neighbours=0;a.nodes.forEach(function(g){c=0;d===g||d.fixedPosition||!a.options.seriesInteraction&&d.series!==g.series||(f=a.getDistXY(d,g),e=a.vectorLength(f)-(d.marker.radius+g.marker.radius+b),0>e&&(d.degree+=
.01,d.neighbours++,c=a.repulsiveForce(-e/Math.sqrt(d.neighbours),a.k,d,g)),a.force("repulsive",d,c*g.mass,f,g,e))})})};n.prototype.applyLimitBox=function(b,c){if(this.options.splitSeries&&!b.isParentNode&&this.options.parentNodeLimit){var d=this.getDistXY(b,b.series.parentNode);var e=b.series.parentNodeRadius-b.marker.radius-this.vectorLength(d);0>e&&e>-2*b.marker.radius&&(b.plotX-=.01*d.x,b.plotY-=.01*d.y)}a.prototype.applyLimitBox.call(this,b,c)};return n}(e);return c.layouts.packedbubble=a});B(e,
"Series/PackedBubble/PackedBubbleSeries.js",[e["Core/Color/Color.js"],e["Series/DragNodesComposition.js"],e["Series/GraphLayoutComposition.js"],e["Core/Globals.js"],e["Series/PackedBubble/PackedBubblePoint.js"],e["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],e["Series/PackedBubble/PackedBubbleLayout.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,e,a,f,r,m,t,p){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof
Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),u=c.parse;c=a.noop;var n=t.series.prototype,d=t.seriesTypes.bubble,g=p.addEvent,k=p.clamp,h=p.defined,B=p.extend,
C=p.fireEvent,K=p.isArray,L=p.isNumber,G=p.merge,O=p.pick;p=function(a){function c(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.layout=void 0;b.options=void 0;b.parentNodeMass=0;b.points=void 0;b.xData=void 0;return b}l(c,a);c.compose=function(a,c,e,g){d.compose(a,c,e,g);b.compose(c);m.compose(c)};c.prototype.accumulateAllPoints=function(){for(var a=this.chart,b=[],c,d=0,e=a.series;d<e.length;d++){var g=e[d];if(g.is("packedbubble")&&g.visible||!a.options.chart.ignoreHiddenSeries){c=
g.yData||[];for(var f=0;f<c.length;f++)b.push([null,null,c[f],g.index,f,{id:f,marker:{radius:0}}])}}return b};c.prototype.addLayout=function(){var a=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},b=a.type||"packedbubble",c=this.chart.options.chart,d=this.chart.graphLayoutsStorage,g=this.chart.graphLayoutsLookup;d||(this.chart.graphLayoutsStorage=d={},this.chart.graphLayoutsLookup=g=[]);var f=d[b];f||(a.enableSimulation=h(c.forExport)?!c.forExport:a.enableSimulation,d[b]=f=new e.layouts[b],
f.init(a),g.splice(f.index,0,f));this.layout=f;this.points.forEach(function(a){a.mass=2;a.degree=1;a.collisionNmb=1});f.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight);f.addElementsToCollection([this],f.series);f.addElementsToCollection(this.points,f.nodes)};c.prototype.addSeriesLayout=function(){var a=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},b=a.type||"packedbubble",c=this.chart.graphLayoutsStorage,d=this.chart.graphLayoutsLookup;a=G(a,a.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});
var g=c[b+"-series"];g||(c[b+"-series"]=g=new e.layouts[b],g.init(a),d.splice(g.index,0,g));this.parentNodeLayout=g;this.createParentNodes()};c.prototype.calculateParentRadius=function(){var a=this.seriesBox();this.parentNodeRadius=k(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,a?Math.max(Math.sqrt(Math.pow(a.width,2)+Math.pow(a.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20);this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)};c.prototype.calculateZExtremes=
function(){var a=this.options.zMin,b=this.options.zMax,c=Infinity,d=-Infinity;if(a&&b)return[a,b];this.chart.series.forEach(function(a){a.yData.forEach(function(a){h(a)&&(a>d&&(d=a),a<c&&(c=a))})});a=O(a,c);b=O(b,d);return[a,b]};c.prototype.checkOverlap=function(a,b){var c=a[0]-b[0],d=a[1]-b[1];return-.001>Math.sqrt(c*c+d*d)-Math.abs(a[2]+b[2])};c.prototype.createParentNodes=function(){var a=this,b=this.pointClass,c=this.chart,d=this.parentNodeLayout,e=this.layout.options,g,f=this.parentNode,h={radius:this.parentNodeRadius,
lineColor:this.color,fillColor:u(this.color).brighten(.4).get()};e.parentNodeOptions&&(h=G(e.parentNodeOptions.marker||{},h));this.parentNodeMass=0;this.points.forEach(function(b){a.parentNodeMass+=Math.PI*Math.pow(b.marker.radius,2)});this.calculateParentRadius();d.nodes.forEach(function(b){b.seriesIndex===a.index&&(g=!0)});d.setArea(0,0,c.plotWidth,c.plotHeight);g||(f||(f=(new b).init(this,{mass:this.parentNodeRadius/2,marker:h,dataLabels:{inside:!1},states:{normal:{marker:h},hover:{marker:h}},
dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(f.plotX=this.parentNode.plotX,f.plotY=this.parentNode.plotY),this.parentNode=f,d.addElementsToCollection([this],d.series),d.addElementsToCollection([f],d.nodes))};c.prototype.deferLayout=function(){var a=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),a.splitSeries&&this.addSeriesLayout())};c.prototype.destroy=function(){var a=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(b){b.removeElementFromCollection(a,
b.series)},this);this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy()));n.destroy.apply(this,arguments)};c.prototype.drawDataLabels=function(){n.drawDataLabels.call(this,this.points);this.parentNode&&(this.parentNode.formatPrefix="parentNode",n.drawDataLabels.call(this,[this.parentNode]))};c.prototype.drawGraph=function(){if(this.layout&&
this.layout.options.splitSeries){var a=this.chart,b=this.layout.options.parentNodeOptions.marker;b={fill:b.fillColor||u(this.color).brighten(.4).get(),opacity:b.fillOpacity,stroke:b.lineColor||this.color,"stroke-width":O(b.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,a.seriesGroup),this.group.attr({zIndex:2}));this.calculateParentRadius();var c=G({x:this.parentNode.plotX-this.parentNodeRadius,
y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},b);this.parentNode.graphic||(this.graph=this.parentNode.graphic=a.renderer.symbol(b.symbol).add(this.parentNodesGroup));this.parentNode.graphic.attr(c)}};c.prototype.drawTracker=function(){var b=this.parentNode;a.prototype.drawTracker.call(this);if(b){var c=K(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[];b.graphic&&(b.graphic.element.point=b);c.forEach(function(a){a.div?a.div.point=
b:a.element.point=b})}};c.prototype.getPointRadius=function(){var a=this,b=this.chart,c=this.options,d=c.useSimulation,e=Math.min(b.plotWidth,b.plotHeight),g={},f=[],h=b.allDataPoints||[],l=h.length,m,p,v,D;["minSize","maxSize"].forEach(function(a){var b=parseInt(c[a],10),d=/%$/.test(c[a]);g[a]=d?e*b/100:b*Math.sqrt(l)});b.minRadius=m=g.minSize/Math.sqrt(l);b.maxRadius=p=g.maxSize/Math.sqrt(l);var z=d?this.calculateZExtremes():[m,p];h.forEach(function(b,c){v=d?k(b[2],z[0],z[1]):b[2];D=a.getRadius(z[0],
z[1],m,p,v);0===D&&(D=null);h[c][2]=D;f.push(D)});this.radii=f};c.prototype.init=function(){n.init.apply(this,arguments);this.eventsToUnbind.push(g(this,"updatedData",function(){var a=this;this.chart.series.forEach(function(b){b.type===a.type&&(b.isDirty=!0)},this)}));return this};c.prototype.onMouseUp=function(a){var c=a;if(c.fixedPosition&&!c.removed){var d=this.layout,e=this.parentNodeLayout,g,f;e&&d.options.dragBetweenSeries&&e.nodes.forEach(function(a){c&&c.marker&&a!==c.series.parentNode&&(g=
d.getDistXY(c,a),f=d.vectorLength(g)-a.marker.radius-c.marker.radius,0>f&&(a.series.addPoint(G(c.options,{plotX:c.plotX,plotY:c.plotY}),!1),d.removeElementFromCollection(c,d.nodes),c.remove()))});b.onMouseUp.apply(this,arguments)}};c.prototype.placeBubbles=function(a){var b=this.checkOverlap,c=this.positionBubble,d=[],e=1,g=0,f=0;var h=[];var k;a=a.sort(function(a,b){return b[2]-a[2]});if(a.length){d.push([[0,0,a[0][2],a[0][3],a[0][4]]]);if(1<a.length)for(d.push([[0,0-a[1][2]-a[0][2],a[1][2],a[1][3],
a[1][4]]]),k=2;k<a.length;k++)a[k][2]=a[k][2]||1,h=c(d[e][g],d[e-1][f],a[k]),b(h,d[e][0])?(d.push([]),f=0,d[e+1].push(c(d[e][g],d[e][0],a[k])),e++,g=0):1<e&&d[e-1][f+1]&&b(h,d[e-1][f+1])?(f++,d[e].push(c(d[e][g],d[e-1][f],a[k])),g++):(g++,d[e].push(h));this.chart.stages=d;this.chart.rawPositions=[].concat.apply([],d);this.resizeRadius();h=this.chart.rawPositions}return h};c.prototype.pointAttribs=function(a,b){var c=this.options,d=c.marker;a&&a.isParentNode&&c.layoutAlgorithm&&c.layoutAlgorithm.parentNodeOptions&&
(d=c.layoutAlgorithm.parentNodeOptions.marker);c=d.fillOpacity;a=n.pointAttribs.call(this,a,b);1!==c&&(a["fill-opacity"]=c);return a};c.prototype.positionBubble=function(a,b,c){var d=Math.sqrt,e=Math.asin,g=Math.acos,f=Math.pow,h=Math.abs;d=d(f(a[0]-b[0],2)+f(a[1]-b[1],2));g=g((f(d,2)+f(c[2]+b[2],2)-f(c[2]+a[2],2))/(2*(c[2]+b[2])*d));e=e(h(a[0]-b[0])/d);a=(0>a[1]-b[1]?0:Math.PI)+g+e*(0>(a[0]-b[0])*(a[1]-b[1])?1:-1);return[b[0]+(b[2]+c[2])*Math.sin(a),b[1]-(b[2]+c[2])*Math.cos(a),c[2],c[3],c[4]]};
c.prototype.render=function(){var a=[];n.render.apply(this,arguments);this.options.dataLabels.allowOverlap||(this.data.forEach(function(b){K(b.dataLabels)&&b.dataLabels.forEach(function(b){a.push(b)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(a))};c.prototype.resizeRadius=function(){var a=this.chart,b=a.rawPositions,c=Math.min,d=Math.max,e=a.plotLeft,g=a.plotTop,f=a.plotHeight,h=a.plotWidth,k,l;var m=k=Number.POSITIVE_INFINITY;var v=l=Number.NEGATIVE_INFINITY;for(var D=0;D<b.length;D++){var z=
b[D];var p=z[2];m=c(m,z[0]-p);v=d(v,z[0]+p);k=c(k,z[1]-p);l=d(l,z[1]+p)}z=[v-m,l-k];c=c.apply([],[(h-e)/z[0],(f-g)/z[1]]);if(1e-10<Math.abs(c-1)){for(a=0;a<b.length;a++)z=b[a],z[2]*=c;this.placeBubbles(b)}else a.diffY=f/2+g-k-(l-k)/2,a.diffX=h/2+e-m-(v-m)/2};c.prototype.seriesBox=function(){var a=this.chart,b=Math.max,c=Math.min,d=[a.plotLeft,a.plotLeft+a.plotWidth,a.plotTop,a.plotTop+a.plotHeight],e;this.data.forEach(function(a){h(a.plotX)&&h(a.plotY)&&a.marker.radius&&(e=a.marker.radius,d[0]=c(d[0],
a.plotX-e),d[1]=b(d[1],a.plotX+e),d[2]=c(d[2],a.plotY-e),d[3]=b(d[3],a.plotY+e))});return L(d.width/d.height)?d:null};c.prototype.setVisible=function(){var a=this;n.setVisible.apply(a,arguments);a.parentNodeLayout&&a.graph?a.visible?(a.graph.show(),a.parentNode.dataLabel&&a.parentNode.dataLabel.show()):(a.graph.hide(),a.parentNodeLayout.removeElementFromCollection(a.parentNode,a.parentNodeLayout.nodes),a.parentNode.dataLabel&&a.parentNode.dataLabel.hide()):a.layout&&(a.visible?a.layout.addElementsToCollection(a.points,
a.layout.nodes):a.points.forEach(function(b){a.layout.removeElementFromCollection(b,a.layout.nodes)}))};c.prototype.translate=function(){var a=this.chart,b=this.data,c=this.index,d=this.options.useSimulation;this.processedXData=this.xData;this.generatePoints();h(a.allDataPoints)||(a.allDataPoints=this.accumulateAllPoints(),this.getPointRadius());if(d)var e=a.allDataPoints;else e=this.placeBubbles(a.allDataPoints),this.options.draggable=!1;for(var g=0,f=e;g<f.length;g++){var k=f[g];if(k[3]===c){e=
b[k[4]];var l=O(k[2],void 0);d||(e.plotX=k[0]-a.plotLeft+a.diffX,e.plotY=k[1]-a.plotTop+a.diffY);L(l)&&(e.marker=B(e.marker,{radius:l,width:2*l,height:2*l}),e.radius=l)}}d&&this.deferLayout();C(this,"afterTranslate")};c.defaultOptions=G(d.defaultOptions,r);return c}(d);B(p.prototype,{pointClass:f,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup",
"parentNodesGroup"],alignDataLabel:n.alignDataLabel,indexateNodes:c,onMouseDown:b.onMouseDown,onMouseMove:b.onMouseMove,redrawHalo:b.redrawHalo,searchPoint:c});t.registerSeriesType("packedbubble",p);"";return p});B(e,"Series/Polygon/PolygonSeries.js",[e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],function(c,b,e,a){var f=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,
b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}();c=c.noop;var l=e.series,m=e.seriesTypes,t=m.area,p=m.line,E=m.scatter;m=a.extend;var u=a.merge;a=function(a){function b(){var b=
null!==a&&a.apply(this,arguments)||this;b.data=void 0;b.options=void 0;b.points=void 0;return b}f(b,a);b.prototype.getGraphPath=function(){for(var a=p.prototype.getGraphPath.call(this),b=a.length+1;b--;)(b===a.length||"M"===a[b][0])&&0<b&&a.splice(b,0,["Z"]);return this.areaPath=a};b.prototype.drawGraph=function(){this.options.fillColor=this.color;t.prototype.drawGraph.call(this)};b.defaultOptions=u(E.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,
pointFormat:""},trackByArea:!0});return b}(E);m(a.prototype,{type:"polygon",drawLegendSymbol:b.drawRectangle,drawTracker:l.prototype.drawTracker,setStackedPoints:c});e.registerSeriesType("polygon",a);"";return a});B(e,"Core/Axis/WaterfallAxis.js",[e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],function(c,b){var e=b.addEvent,a=b.objectEach,f;(function(b){function f(){var a=this.waterfall.stacks;a&&(a.changed=!1,delete a.alreadyChanged)}function l(){var a=this.options.stackLabels;a&&a.enabled&&
this.waterfall.stacks&&this.waterfall.renderStackTotals()}function p(){for(var a=this.axes,b=this.series,c=b.length;c--;)b[c].options.stacking&&(a.forEach(function(a){a.isXAxis||(a.waterfall.stacks.changed=!0)}),c=0)}function r(){this.waterfall||(this.waterfall=new u(this))}var u=function(){function b(a){this.axis=a;this.stacks={changed:!1}}b.prototype.renderStackTotals=function(){var b=this.axis,e=b.waterfall.stacks,f=b.stacking&&b.stacking.stackTotalGroup,h=new c(b,b.options.stackLabels||{},!1,
0,void 0);this.dummyStackItem=h;f&&a(e,function(b){a(b,function(a,b){h.total=a.stackTotal;h.x=+b;a.label&&(h.label=a.label);c.prototype.render.call(h,f);a.label=h.label;delete h.label})});h.total=null};return b}();b.Composition=u;b.compose=function(a,b){e(a,"init",r);e(a,"afterBuildStacks",f);e(a,"afterRender",l);e(b,"beforeRedraw",p)}})(f||(f={}));return f});B(e,"Series/Waterfall/WaterfallPoint.js",[e["Series/Column/ColumnSeries.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],function(c,b,
e){var a=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function e(){this.constructor=b}if("function"!==typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(b,c);b.prototype=null===c?Object.create(c):(e.prototype=c.prototype,new e)}}(),
f=e.isNumber;return function(c){function e(){var a=null!==c&&c.apply(this,arguments)||this;a.options=void 0;a.series=void 0;return a}a(e,c);e.prototype.getClassName=function(){var a=b.prototype.getClassName.call(this);this.isSum?a+=" highcharts-sum":this.isIntermediateSum&&(a+=" highcharts-intermediate-sum");return a};e.prototype.isValid=function(){return f(this.y)||this.isSum||!!this.isIntermediateSum};return e}(c.prototype.pointClass)});B(e,"Series/Waterfall/WaterfallSeries.js",[e["Core/Axis/Axis.js"],
e["Core/Chart/Chart.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"],e["Core/Axis/WaterfallAxis.js"],e["Series/Waterfall/WaterfallPoint.js"]],function(c,b,e,a,f,r){var l=this&&this.__extends||function(){var a=function(b,c){a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return a(b,c)};return function(b,c){function d(){this.constructor=b}if("function"!==typeof c&&
null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");a(b,c);b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),t=e.seriesTypes,p=t.column,B=t.line,u=a.arrayMax,n=a.arrayMin,d=a.correctFloat;t=a.extend;var g=a.isNumber,k=a.merge,h=a.objectEach,F=a.pick;a=function(a){function b(){var b=null!==a&&a.apply(this,arguments)||this;b.chart=void 0;b.data=void 0;b.options=void 0;b.points=void 0;b.stackedYNeg=void 0;b.stackedYPos=void 0;b.stackKey=
void 0;b.xData=void 0;b.yAxis=void 0;b.yData=void 0;return b}l(b,a);b.prototype.generatePoints=function(){p.prototype.generatePoints.apply(this);for(var a=0,b=this.points.length;a<b;a++){var c=this.points[a],e=this.processedYData[a];g(e)&&(c.isIntermediateSum||c.isSum)&&(c.y=d(e))}};b.prototype.translate=function(){var a=this.options,b=this.yAxis,c=F(a.minPointLength,5),d=c/2,e=a.threshold||0;a=a.stacking;var f=b.waterfall.stacks[this.stackKey],h=e,k=e;p.prototype.translate.apply(this);for(var l=
this.points,q=0;q<l.length;q++){var m=l[q];var r=this.processedYData[q];var n=m.shapeArgs;if(n&&g(r)){var A=[0,r];var t=m.y;if(a){if(f){A=f[q];if("overlap"===a){var u=A.stackState[A.stateIndex--];u=0<=t?u:u-t;Object.hasOwnProperty.call(A,"absolutePos")&&delete A.absolutePos;Object.hasOwnProperty.call(A,"absoluteNeg")&&delete A.absoluteNeg}else 0<=t?(u=A.threshold+A.posTotal,A.posTotal-=t):(u=A.threshold+A.negTotal,A.negTotal-=t,u-=t),!A.posTotal&&g(A.absolutePos)&&Object.hasOwnProperty.call(A,"absolutePos")&&
(A.posTotal=A.absolutePos,delete A.absolutePos),!A.negTotal&&g(A.absoluteNeg)&&Object.hasOwnProperty.call(A,"absoluteNeg")&&(A.negTotal=A.absoluteNeg,delete A.absoluteNeg);m.isSum||(A.connectorThreshold=A.threshold+A.stackTotal);b.reversed?(r=0<=t?u-t:u+t,t=u):(r=u,t=u-t);m.below=r<=e;n.y=b.translate(r,!1,!0,!1,!0);n.height=Math.abs(n.y-b.translate(t,!1,!0,!1,!0));if(t=b.waterfall.dummyStackItem)t.x=q,t.label=f[q].label,t.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[q],this.stackedYPos[q],
void 0,this.xAxis)}}else u=Math.max(k,k+t)+A[0],n.y=b.translate(u,!1,!0,!1,!0),m.isSum?(n.y=b.translate(A[1],!1,!0,!1,!0),n.height=Math.min(b.translate(A[0],!1,!0,!1,!0),b.len)-n.y,m.below=A[1]<=e):m.isIntermediateSum?(0<=t?(r=A[1]+h,t=h):(r=h,t=A[1]+h),b.reversed&&(r^=t,t^=r,r^=t),n.y=b.translate(r,!1,!0,!1,!0),n.height=Math.abs(n.y-Math.min(b.translate(t,!1,!0,!1,!0),b.len)),h+=A[1],m.below=r<=e):(n.height=0<r?b.translate(k,!1,!0,!1,!0)-n.y:b.translate(k,!1,!0,!1,!0)-b.translate(k-r,!1,!0,!1,!0),
k+=r,m.below=k<e),0>n.height&&(n.y+=n.height,n.height*=-1);m.plotY=n.y=Math.round(n.y||0)-this.borderWidth%2/2;n.height=Math.max(Math.round(n.height||0),.001);m.yBottom=n.y+n.height;n.height<=c&&!m.isNull?(n.height=c,n.y-=d,m.plotY=n.y,m.minPointLengthOffset=0>m.y?-d:d):(m.isNull&&(n.width=0),m.minPointLengthOffset=0);t=m.plotY+(m.negative?n.height:0);m.below&&(m.plotY+=n.height);m.tooltipPos&&(this.chart.inverted?m.tooltipPos[0]=b.len-t:m.tooltipPos[1]=t);m.isInside=this.isPointInside(m)}}};b.prototype.processData=
function(b){var c=this.options,e=this.yData,f=c.data,g=e.length,h=c.threshold||0,k,l,m,q,n;for(n=l=k=m=q=0;n<g;n++){var p=e[n];var r=f&&f[n]?f[n]:{};"sum"===p||r.isSum?e[n]=d(l):"intermediateSum"===p||r.isIntermediateSum?(e[n]=d(k),k=0):(l+=p,k+=p);m=Math.min(l,m);q=Math.max(l,q)}a.prototype.processData.call(this,b);c.stacking||(this.dataMin=m+h,this.dataMax=q)};b.prototype.toYData=function(a){return a.isSum?"sum":a.isIntermediateSum?"intermediateSum":a.y};b.prototype.updateParallelArrays=function(b,
c){a.prototype.updateParallelArrays.call(this,b,c);if("sum"===this.yData[0]||"intermediateSum"===this.yData[0])this.yData[0]=null};b.prototype.pointAttribs=function(a,b){var c=this.options.upColor;c&&!a.options.color&&(a.color=0<a.y?c:void 0);a=p.prototype.pointAttribs.call(this,a,b);delete a.dashstyle;return a};b.prototype.getGraphPath=function(){return[["M",0,0]]};b.prototype.getCrispPath=function(){var a=this.data,b=this.yAxis,c=a.length,d=Math.round(this.graph.strokeWidth())%2/2,e=Math.round(this.borderWidth)%
2/2,f=this.xAxis.reversed,g=this.yAxis.reversed,h=this.options.stacking,k=[],l;for(l=1;l<c;l++){var m=a[l].shapeArgs;var n=a[l-1];var p=a[l-1].shapeArgs;var r=b.waterfall.stacks[this.stackKey];var t=0<n.y?-p.height:0;r&&p&&m&&(r=r[l-1],h?(r=r.connectorThreshold,t=Math.round(b.translate(r,!1,!0,!1,!0)+(g?t:0))-d):t=p.y+n.minPointLengthOffset+e-d,k.push(["M",(p.x||0)+(f?0:p.width||0),t],["L",(m.x||0)+(f?m.width||0:0),t]));p&&k.length&&(!h&&0>n.y&&!g||0<n.y&&g)&&((n=k[k.length-2])&&"number"===typeof n[2]&&
(n[2]+=p.height||0),(n=k[k.length-1])&&"number"===typeof n[2]&&(n[2]+=p.height||0))}return k};b.prototype.drawGraph=function(){B.prototype.drawGraph.call(this);this.graph&&this.graph.attr({d:this.getCrispPath()})};b.prototype.setStackedPoints=function(){function a(a,b,c,d){if(v){if(Q)for(c;c<Q;c++)v.stackState[c]+=d;else v.stackState[0]=a,Q=v.stackState.length;v.stackState.push(v.stackState[Q-1]+b)}}var b=this.options,c=this.yAxis.waterfall.stacks,d=b.threshold||0,e=d,f=e,g=this.stackKey,h=this.xData,
k=h.length,l,m,n;this.yAxis.stacking.usePercentage=!1;var p=l=m=e;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){var r=c.changed;(n=c.alreadyChanged)&&0>n.indexOf(g)&&(r=!0);c[g]||(c[g]={});if(n=c[g])for(var t=0;t<k;t++){var u=h[t];if(!n[u]||r)n[u]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:r&&n[u]?n[u].label:void 0};var v=n[u];var D=this.yData[t];0<=D?v.posTotal+=D:v.negTotal+=D;var z=b.data[t];u=v.absolutePos=v.posTotal;var P=v.absoluteNeg=v.negTotal;
v.stackTotal=u+P;var Q=v.stackState.length;z&&z.isIntermediateSum?(a(m,l,0,m),m=l,l=d,e^=f,f^=e,e^=f):z&&z.isSum?(a(d,p,Q,0),e=d):(a(e,D,0,p),z&&(p+=D,l+=D));v.stateIndex++;v.threshold=e;e+=v.stackTotal}c.changed=!1;c.alreadyChanged||(c.alreadyChanged=[]);c.alreadyChanged.push(g)}};b.prototype.getExtremes=function(){var a=this.options.stacking;if(a){var b=this.yAxis;b=b.waterfall.stacks;var c=this.stackedYNeg=[];var d=this.stackedYPos=[];"overlap"===a?h(b[this.stackKey],function(a){c.push(n(a.stackState));
d.push(u(a.stackState))}):h(b[this.stackKey],function(a){c.push(a.negTotal+a.threshold);d.push(a.posTotal+a.threshold)});return{dataMin:n(c),dataMax:u(d)}}return{dataMin:this.dataMin,dataMax:this.dataMax}};b.defaultOptions=k(p.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}});return b}(p);t(a.prototype,{getZonesGraphs:B.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:r});e.registerSeriesType("waterfall",
a);f.compose(c,b);"";return a});B(e,"Core/Axis/RadialAxis.js",[e["Core/Axis/AxisDefaults.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],function(c,b,e,a){var f=b.defaultOptions,l=e.noop,m=a.addEvent,t=a.correctFloat,p=a.defined,B=a.extend,u=a.fireEvent,n=a.merge,d=a.pick,g=a.relativeLength,k=a.wrap,h;(function(a){function b(){this.autoConnect=this.isCircular&&"undefined"===typeof d(this.userMax,this.options.max)&&t(this.endAngleRad-this.startAngleRad)===t(2*Math.PI);!this.isCircular&&
this.chart.inverted&&this.max++;this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)}function e(){var a=this;return function(){if(a.isRadial&&a.tickPositions&&a.options.labels&&!0!==a.options.labels.allowOverlap)return a.tickPositions.map(function(b){return a.ticks[b]&&a.ticks[b].label}).filter(function(a){return!!a})}}function h(){return l}function r(a,b,c){var d=this.pane.center,e=a.value;if(this.isCircular){if(p(e))a.point&&(f=a.point.shapeArgs||{},f.start&&
(e=this.chart.inverted?this.translate(a.point.rectPlotY,!0):a.point.x));else{var f=a.chartX||0;var g=a.chartY||0;e=this.translate(Math.atan2(g-c,f-b)-this.startAngleRad,!0)}a=this.getPosition(e);f=a.x;g=a.y}else p(e)||(f=a.chartX,g=a.chartY),p(f)&&p(g)&&(c=d[1]+this.chart.plotTop,e=this.translate(Math.min(Math.sqrt(Math.pow(f-b,2)+Math.pow(g-c,2)),d[2]/2)-d[3]/2,!0));return[e,f||0,g||0]}function E(a,b,c){a=this.pane.center;var e=this.chart,f=this.left||0,g=this.top||0,h=d(b,a[2]/2-this.offset);"undefined"===
typeof c&&(c=this.horiz?0:this.center&&-this.center[3]/2);c&&(h+=c);this.isCircular||"undefined"!==typeof b?(b=this.chart.renderer.symbols.arc(f+a[0],g+a[1],h,h,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}),b.xBounds=[f+a[0]],b.yBounds=[g+a[1]-h]):(b=this.postTranslate(this.angleRad,h),b=[["M",this.center[0]+e.plotLeft,this.center[1]+e.plotTop],["L",b.x,b.y]]);return b}function F(){this.constructor.prototype.getOffset.call(this);this.chart.axisOffset[this.side]=0}function H(a,
b,c){var e=this.chart,f=function(a){if("string"===typeof a){var b=parseInt(a,10);n.test(a)&&(b=b*D/100);return b}return a},g=this.center,h=this.startAngleRad,D=g[2]/2,k=Math.min(this.offset,0),l=this.left||0,m=this.top||0,n=/%$/,v=this.isCircular,z=d(f(c.outerRadius),D),q=f(c.innerRadius);f=d(f(c.thickness),10);if("polygon"===this.options.gridLineInterpolation)k=this.getPlotLinePath({value:a}).concat(this.getPlotLinePath({value:b,reverse:!0}));else{a=Math.max(a,this.min);b=Math.min(b,this.max);a=
this.translate(a);b=this.translate(b);v||(z=a||0,q=b||0);if("circle"!==c.shape&&v)c=h+(a||0),h+=b||0;else{c=-Math.PI/2;h=1.5*Math.PI;var p=!0}z-=k;k=e.renderer.symbols.arc(l+g[0],m+g[1],z,z,{start:Math.min(c,h),end:Math.max(c,h),innerR:d(q,z-(f-k)),open:p});v&&(v=(h+c)/2,l=l+g[0]+g[2]/2*Math.cos(v),k.xBounds=v>-Math.PI/2&&v<Math.PI/2?[l,e.plotWidth]:[0,l],k.yBounds=[m+g[1]+g[2]/2*Math.sin(v)],k.yBounds[0]+=v>-Math.PI&&0>v||v>Math.PI?-10:10)}return k}function w(a){var b=this,c=this.pane.center,d=this.chart,
e=d.inverted,f=a.reverse,h=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},k=h.innerRadius||"0%",D=h.outerRadius||"100%",l=c[0]+d.plotLeft,m=c[1]+d.plotTop,v=this.height,n=a.isCrosshair;h=c[3]/2;var z=a.value,q;var p=this.getPosition(z);var R=p.x;p=p.y;n&&(p=this.getCrosshairPosition(a,l,m),z=p[0],R=p[1],p=p[2]);if(this.isCircular)z=Math.sqrt(Math.pow(R-l,2)+Math.pow(p-m,2)),f="string"===typeof k?g(k,1):k/z,d="string"===typeof D?g(D,1):D/z,c&&h&&(h/=z,
f<h&&(f=h),d<h&&(d=h)),c=[["M",l+f*(R-l),m-f*(m-p)],["L",R-(1-d)*(R-l),p+(1-d)*(m-p)]];else if((z=this.translate(z))&&(0>z||z>v)&&(z=0),"circle"===this.options.gridLineInterpolation)c=this.getLinePath(0,z,h);else if(c=[],d[e?"yAxis":"xAxis"].forEach(function(a){a.pane===b.pane&&(q=a)}),q)for(l=q.tickPositions,q.autoConnect&&(l=l.concat([l[0]])),f&&(l=l.slice().reverse()),z&&(z+=h),m=0;m<l.length;m++)h=q.getPosition(l[m],z),c.push(m?["L",h.x,h.y]:["M",h.x,h.y]);return c}function x(a,b){a=this.translate(a);
return this.postTranslate(this.isCircular?a:this.angleRad,d(this.isCircular?b:0>a?0:a,this.center[2]/2)-this.offset)}function y(){var a=this.center,b=this.chart,c=this.options.title;return{x:b.plotLeft+a[0]+(c.x||0),y:b.plotTop+a[1]-{high:.5,middle:.25,low:0}[c.align]*a[2]+(c.y||0)}}function I(a){a.beforeSetTickPositions=b;a.createLabelCollector=e;a.getCrosshairPosition=r;a.getLinePath=E;a.getOffset=F;a.getPlotBandPath=H;a.getPlotLinePath=w;a.getPosition=x;a.getTitlePosition=y;a.postTranslate=v;a.setAxisSize=
z;a.setAxisTranslation=P;a.setOptions=Q}function q(){var a=this.chart,b=this.options,c=this.pane,e=c&&c.options;a.angular&&this.isXAxis||!c||!a.angular&&!a.polar||(a=2*Math.PI,c=(d(e.startAngle,0)-90)*Math.PI/180,e=(d(e.endAngle,d(e.startAngle,0)+360)-90)*Math.PI/180,this.angleRad=(b.angle||0)*Math.PI/180,this.startAngleRad=c,this.endAngleRad=e,this.offset=b.offset||0,b=(c%a+a)%a,e=(e%a+a)%a,b>Math.PI&&(b-=a),e>Math.PI&&(e-=a),this.normalizedStartAngleRad=b,this.normalizedEndAngleRad=e)}function N(a){this.isRadial&&
(a.align=void 0,a.preventDefault())}function U(){if(this.chart&&this.chart.labelCollectors){var a=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;0<=a&&this.chart.labelCollectors.splice(a,1)}}function V(a){var b=this.chart,d=b.inverted,e=b.angular,f=b.polar,g=this.isXAxis,k=this.coll,m=e&&g;a=a.userOptions.pane||0;a=this.pane=b.pane&&b.pane[a];var v;if("colorAxis"===k)this.isRadial=!1;else{if(e){if(m?(this.isHidden=!0,this.createLabelCollector=h,this.getOffset=l,this.render=
this.redraw=D,this.setTitle=this.setCategories=this.setScale=l):I(this),v=!g)this.defaultPolarOptions=Y}else f&&(I(this),this.defaultPolarOptions=(v=this.horiz)?X:n("xAxis"===k?c.defaultXAxisOptions:c.defaultYAxisOptions,Z),d&&"yAxis"===k&&(this.defaultPolarOptions.stackLabels=c.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0));e||f?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&b.labelCollectors.push(this.labelCollector)):
this.isRadial=!1;a&&v&&(a.axis=this);this.isCircular=v}}function A(){this.isRadial&&this.beforeSetTickPositions()}function M(a){var b=this.label;if(b){var c=this.axis,e=b.getBBox(),f=c.options.labels,h=(c.translate(this.pos)+c.startAngleRad+Math.PI/2)/Math.PI*180%360,k=Math.round(h),D=p(f.y)?0:.3*-e.height,l=f.y,m=20,v=f.align,z="end",n=0>k?k+360:k,q=n,r=0,P=0;if(c.isRadial){var t=c.getPosition(this.pos,c.center[2]/2+g(d(f.distance,-25),c.center[2]/2,-c.center[2]/2));"auto"===f.rotation?b.attr({rotation:h}):
p(l)||(l=c.chart.renderer.fontMetrics(b.styles&&b.styles.fontSize).b-e.height/2);p(v)||(c.isCircular?(e.width>c.len*c.tickInterval/(c.max-c.min)&&(m=0),v=h>m&&h<180-m?"left":h>180+m&&h<360-m?"right":"center"):v="center",b.attr({align:v}));if("auto"===v&&2===c.tickPositions.length&&c.isCircular){90<n&&180>n?n=180-n:270<n&&360>=n&&(n=540-n);180<q&&360>=q&&(q=360-q);if(c.pane.options.startAngle===k||c.pane.options.startAngle===k+360||c.pane.options.startAngle===k-360)z="start";v=-90<=k&&90>=k||-360<=
k&&-270>=k||270<=k&&360>=k?"start"===z?"right":"left":"start"===z?"left":"right";70<q&&110>q&&(v="center");15>n||180<=n&&195>n?r=.3*e.height:15<=n&&35>=n?r="start"===z?0:.75*e.height:195<=n&&215>=n?r="start"===z?.75*e.height:0:35<n&&90>=n?r="start"===z?.25*-e.height:e.height:215<n&&270>=n&&(r="start"===z?e.height:.25*-e.height);15>q?P="start"===z?.15*-e.height:.15*e.height:165<q&&180>=q&&(P="start"===z?.15*e.height:.15*-e.height);b.attr({align:v});b.translate(P,r+D)}a.pos.x=t.x+(f.x||0);a.pos.y=t.y+
(l||0)}}}function S(a){this.axis.getPosition&&B(a.pos,this.axis.getPosition(this.pos))}function v(a,b){var c=this.chart,e=this.center;a=this.startAngleRad+a;return{x:c.plotLeft+e[0]+Math.cos(a)*b,y:c.plotTop+e[1]+Math.sin(a)*b}}function D(){this.isDirty=!1}function z(){this.constructor.prototype.setAxisSize.call(this);if(this.isRadial){this.pane.updateCenter(this);var a=this.center=this.pane.center.slice();if(this.isCircular)this.sector=this.endAngleRad-this.startAngleRad;else{var b=this.postTranslate(this.angleRad,
a[3]/2);a[0]=b.x-this.chart.plotLeft;a[1]=b.y-this.chart.plotTop}this.len=this.width=this.height=(a[2]-a[3])*d(this.sector,1)/2}}function P(){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 Q(a){a=this.options=n(this.constructor.defaultOptions,this.defaultPolarOptions,
f[this.coll],a);a.plotBands||(a.plotBands=[]);u(this,"afterSetOptions")}function W(a,b,c,e,d,f,g){var h=this.axis;h.isRadial?(a=h.getPosition(this.pos,h.center[2]/2+e),b=["M",b,c,"L",a.x,a.y]):b=a.call(this,b,c,e,d,f,g);return b}var T=[],X={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},Y={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},Z={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};a.compose=function(a,b){-1===T.indexOf(a)&&(T.push(a),m(a,"afterInit",q),m(a,"autoLabelAlign",N),m(a,"destroy",U),m(a,"init",V),m(a,"initialAxisTranslation",A));-1===T.indexOf(b)&&(T.push(b),m(b,"afterGetLabelPosition",M),m(b,"afterGetPosition",S),k(b.prototype,"getMarkPath",
W));return a}})(h||(h={}));return h});B(e,"Series/PolarComposition.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Extensions/Pane.js"],e["Core/Axis/RadialAxis.js"],e["Core/Utilities.js"]],function(c,b,e,a,f){function l(a,b,c,e){var d=e?1:0;var f=0<=b&&b<=a.length-1?b:0>b?a.length-1+b:0;b=0>f-1?a.length-(1+d):f-1;var g=a[b];d=a[f+1>a.length-1?d:f+1];var h=g.plotY;var k=d.plotX;var D=d.plotY;d=a[f].plotX;f=a[f].plotY;g=(1.5*d+g.plotX)/2.5;h=(1.5*f+h)/2.5;k=(1.5*d+k)/2.5;var m=
(1.5*f+D)/2.5;D=Math.sqrt(Math.pow(g-d,2)+Math.pow(h-f,2));var n=Math.sqrt(Math.pow(k-d,2)+Math.pow(m-f,2));g=Math.atan2(h-f,g-d);m=Math.PI/2+(g+Math.atan2(m-f,k-d))/2;Math.abs(g-m)>Math.PI/2&&(m-=Math.PI);g=d+Math.cos(m)*D;h=f+Math.sin(m)*D;k=d+Math.cos(Math.PI+m)*n;m=f+Math.sin(Math.PI+m)*n;d={rightContX:k,rightContY:m,leftContX:g,leftContY:h,plotX:d,plotY:f};c&&(d.prevPointCont=l(a,b,!1,e));return d}function m(){(this.pane||[]).forEach(function(a){a.render()})}function t(a){var b=a.args[0].xAxis,
c=a.args[0].yAxis;a=a.args[0].chart;b&&c&&("polygon"===c.gridLineInterpolation?(b.startOnTick=!0,b.endOnTick=!0):"polygon"===b.gridLineInterpolation&&a.inverted&&(c.startOnTick=!0,c.endOnTick=!0))}function p(){var a=this;this.pane||(this.pane=[]);this.options.pane=U(this.options.pane);this.options.pane.forEach(function(b){new e(b,a)},this)}function B(a){var b=a.args.marker,c=this.chart.xAxis[0],d=this.chart.yAxis[0],e=this.chart.inverted,f=e?d:c;c=e?c:d;if(this.chart.polar){a.preventDefault();d=(b.attr?
b.attr("start"):b.start)-f.startAngleRad;e=b.attr?b.attr("r"):b.r;var g=(b.attr?b.attr("end"):b.end)-f.startAngleRad;b=b.attr?b.attr("innerR"):b.innerR;a.result.x=d+f.pos;a.result.width=g-d;a.result.y=c.len+c.pos-b;a.result.height=b-e}}function u(a){var b=this.chart;if(b.polar&&b.hoverPane&&b.hoverPane.axis){a.preventDefault();var c=b.hoverPane.center,d=this.mouseDownX||0,e=this.mouseDownY||0,f=a.args.chartY,g=a.args.chartX,h=2*Math.PI,l=b.hoverPane.axis.startAngleRad,m=b.hoverPane.axis.endAngleRad,
n=b.inverted?b.xAxis[0]:b.yAxis[0],q={},p="arc";q.x=c[0]+b.plotLeft;q.y=c[1]+b.plotTop;if(this.zoomHor){var v=0<l?m-l:Math.abs(l)+Math.abs(m),r=Math.atan2(e-b.plotTop-c[1],d-b.plotLeft-c[0])-l,t=Math.atan2(f-b.plotTop-c[1],g-b.plotLeft-c[0])-l;q.r=c[2]/2;q.innerR=c[3]/2;0>=r&&(r+=h);0>=t&&(t+=h);t<r&&(t=[r,r=t][0]);v<h&&l+t>m+(h-v)/2&&(t=r,r=0>=l?l:0);h=q.start=Math.max(r+l,l);r=q.end=Math.min(t+l,m);"polygon"===n.options.gridLineInterpolation&&(t=b.hoverPane.axis,v=h-t.startAngleRad+t.pos,r-=h,p=
n.getPlotLinePath({value:n.max}),h=t.toValue(v),v=t.toValue(v+r),h<t.getExtremes().min&&(r=t.getExtremes(),h=r.max-(r.min-h)),v<t.getExtremes().min&&(r=t.getExtremes(),v=r.max-(r.min-v)),v<h&&(v=[h,h=v][0]),p=k(p,h,v,t),p.push(["L",c[0]+b.plotLeft,b.plotTop+c[1]]),q.d=p,p="path")}this.zoomVert&&(t=b.inverted?b.xAxis[0]:b.yAxis[0],d=Math.sqrt(Math.pow(d-b.plotLeft-c[0],2)+Math.pow(e-b.plotTop-c[1],2)),f=Math.sqrt(Math.pow(g-b.plotLeft-c[0],2)+Math.pow(f-b.plotTop-c[1],2)),f<d&&(d=[f,f=d][0]),f>c[2]/
2&&(f=c[2]/2),d<c[3]/2&&(d=c[3]/2),this.zoomHor||(q.start=l,q.end=m),q.r=f,q.innerR=d,"polygon"===t.options.gridLineInterpolation&&(r=t.toValue(t.len+t.pos-d),h=t.toValue(t.len+t.pos-f),p=t.getPlotLinePath({value:h}).concat(t.getPlotLinePath({value:r,reverse:!0})),q.d=p,p="path"));this.zoomHor&&this.zoomVert&&"polygon"===n.options.gridLineInterpolation&&(t=b.hoverPane.axis,h=q.start||0,r=q.end||0,v=h-t.startAngleRad+t.pos,r-=h,h=t.toValue(v),v=t.toValue(v+r),q.d instanceof Array&&(c=q.d.slice(0,q.d.length/
2),l=q.d.slice(q.d.length/2,q.d.length),l=H([],l,!0).reverse(),b=b.hoverPane.axis,c=k(c,h,v,b),(l=k(l,h,v,b))&&(l[0][0]="L"),l=H([],l,!0).reverse(),q.d=c.concat(l),p="path"));a.attrs=q;a.shapeType=p}}function n(){var a=this.chart;a.polar&&(this.polar=new S(this),a.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function d(){if(this.chart.polar&&this.xAxis){var a=this.chart;(this.kdByAngle=a.tooltip&&a.tooltip.shared)?this.searchPoint=g:this.options.findNearestPointBy=
"xy";for(var c=this.points,d=c.length;d--;)this.preventPostTranslate||this.polar.toXY(c[d]),a.hasParallelCoordinates||this.yAxis.reversed||(N(c[d].y,Number.MIN_VALUE)<this.yAxis.min||c[d].x<this.xAxis.min||c[d].x>this.xAxis.max?(c[d].isNull=!0,c[d].plotY=NaN):c[d].isNull=c[d].isValid&&!c[d].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!this.eventsToUnbind.push(x(this,"afterRender",function(){if(a.polar){var c=this.yAxis.pane.center;if(this.clipCircle)this.clipCircle.animate({x:c[0],
y:c[1],r:c[2]/2,innerR:c[3]/2});else{var d=a.renderer,e=c[0],f=c[1],g=c[2]/2,h=c[3]/2;c=V();var k=d.createElement("clipPath").attr({id:c}).add(d.defs);d=h?d.arc(e,f,g,h,0,2*Math.PI).add(k):d.circle(e,f,g).add(k);d.id=c;d.clipPath=k;this.clipCircle=d}this.group.clip(this.clipCircle);this.setClip=b.noop}})))}}function g(a){var b=this.chart,c=this.xAxis;c=c.pane&&c.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(a.chartX-(c&&c[0]||0)-b.plotLeft,a.chartY-(c&&c[1]||0)-b.plotTop)})}
function k(a,b,c,d){var e=d.tickInterval;d=d.tickPositions;var f=I(d,function(a){return a>=c}),g=I(H([],d,!0).reverse(),function(a){return a<=b});y(f)||(f=d[d.length-1]);y(g)||(g=d[0],f+=e,a[0][0]="L",a.unshift(a[a.length-3]));a=a.slice(d.indexOf(g),d.indexOf(f)+1);a[0][0]="M";return a}function h(a,b){return I(this.pane||[],function(a){return a.options.id===b})||a.call(this,b)}function F(a,b,c,d,e,f){var g=this.chart,h=N(d.inside,!!this.options.stacking);g.polar?(a=b.rectPlotX/Math.PI*180,g.inverted?
(this.forceDL=g.isInsidePlot(b.plotX,b.plotY),h&&b.shapeArgs?(e=b.shapeArgs,e=this.yAxis.postTranslate(((e.start||0)+(e.end||0))/2-this.xAxis.startAngleRad,b.barX+b.pointWidth/2),e={x:e.x-g.plotLeft,y:e.y-g.plotTop}):b.tooltipPos&&(e={x:b.tooltipPos[0],y:b.tooltipPos[1]}),d.align=N(d.align,"center"),d.verticalAlign=N(d.verticalAlign,"middle")):(null===d.align&&(d.align=20<a&&160>a?"left":200<a&&340>a?"right":"center"),null===d.verticalAlign&&(d.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":
"middle")),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,b,c,d,e,f),this.isRadialBar&&b.shapeArgs&&b.shapeArgs.start===b.shapeArgs.end?c.hide():c.show()):a.call(this,b,c,d,e,f)}function C(a){var b=this.options,c=b.stacking,d=this.chart,e=this.xAxis,g=this.yAxis,h=g.reversed,k=g.center,l=e.startAngleRad,m=e.endAngleRad-l,n=0,p=0,r=0;this.preventPostTranslate=!0;a.call(this);if(e.isRadial){a=this.points;e=a.length;var t=g.translate(g.min);var v=g.translate(g.max);b=b.threshold||
0;d.inverted&&q(b)&&(n=g.translate(b),y(n)&&(0>n?n=0:n>m&&(n=m),this.translatedThreshold=n+l));for(;e--;){b=a[e];var u=b.barX;var x=b.x;var w=b.y;b.shapeType="arc";if(d.inverted){b.plotY=g.translate(w);c&&g.stacking?(w=g.stacking.stacks[(0>w?"-":"")+this.stackKey],this.visible&&w&&w[x]&&!b.isNull&&(r=w[x].points[this.getStackIndicator(void 0,x,this.index).key],p=g.translate(r[0]),r=g.translate(r[1]),y(p)&&(p=f.clamp(p,0,m)))):(p=n,r=b.plotY);p>r&&(r=[p,p=r][0]);if(!h)if(p<t)p=t;else if(r>v)r=v;else{if(r<
t||p>v)p=r=0}else if(r>t)r=t;else if(p<v)p=v;else if(p>t||r<v)p=r=m;g.min>g.max&&(p=r=h?m:0);p+=l;r+=l;k&&(b.barX=u+=k[3]/2);x=Math.max(u,0);w=Math.max(u+b.pointWidth,0);b.shapeArgs={x:k&&k[0],y:k&&k[1],r:w,innerR:x,start:p,end:r};b.opacity=p===r?0:void 0;b.plotY=(y(this.translatedThreshold)&&(p<this.translatedThreshold?p:r))-l}else p=u+l,b.shapeArgs=this.polar.arc(b.yBottom,b.plotY,p,p+b.pointWidth);this.polar.toXY(b);d.inverted?(u=g.postTranslate(b.rectPlotY,u+b.pointWidth/2),b.tooltipPos=[u.x-
d.plotLeft,u.y-d.plotTop]):b.tooltipPos=[b.plotX,b.plotY];k&&(b.ttBelow=b.plotY>k[1])}}}function K(a,b){var c=this;if(this.chart.polar){b=b||this.points;for(var d=0;d<b.length;d++)if(!b[d].isNull){var e=d;break}if(!1!==this.options.connectEnds&&"undefined"!==typeof e){this.connectEnds=!0;b.splice(b.length,0,b[e]);var f=!0}b.forEach(function(a){"undefined"===typeof a.polarPlotY&&c.polar.toXY(a)})}e=a.apply(this,[].slice.call(arguments,1));f&&b.pop();return e}function L(a,b){var c=this.chart,d={xAxis:[],
yAxis:[]};c.polar?c.axes.forEach(function(a){if("colorAxis"!==a.coll){var e=a.isXAxis,f=a.center,g=b.chartX-f[0]-c.plotLeft;f=b.chartY-f[1]-c.plotTop;d[e?"xAxis":"yAxis"].push({axis:a,value:a.translate(e?Math.PI-Math.atan2(g,f):Math.sqrt(Math.pow(g,2)+Math.pow(f,2)),!0)})}}):d=a.call(this,b);return d}function G(a,b){this.chart.polar||a.call(this,b)}function O(a,c){var d=this,e=this.chart,f=this.group,g=this.markerGroup,h=this.xAxis&&this.xAxis.center,k=e.plotLeft,l=e.plotTop,m=this.options.animation,
n,p,q,r;if(e.polar)if(d.isRadialBar)c||(d.startAngleRad=N(d.translatedThreshold,d.xAxis.startAngleRad),b.seriesTypes.pie.prototype.animate.call(d,c));else{if(e.renderer.isSVG)if(m=w(m),d.is("column")){if(!c){var t=h[3]/2;d.points.forEach(function(a){n=a.graphic;q=(p=a.shapeArgs)&&p.r;r=p&&p.innerR;n&&p&&(n.attr({r:t,innerR:t}),n.animate({r:q,innerR:r},d.options.animation))})}}else c?(a={translateX:h[0]+k,translateY:h[1]+l,scaleX:.001,scaleY:.001},f.attr(a),g&&g.attr(a)):(a={translateX:k,translateY:l,
scaleX:1,scaleY:1},f.animate(a,m),g&&g.animate(a,m))}else a.call(this,c)}function J(a,b,c,d){this.chart.polar?d?(a=l(b,d,!0,this.connectEnds),b=a.prevPointCont&&a.prevPointCont.rightContX,c=a.prevPointCont&&a.prevPointCont.rightContY,a=["C",q(b)?b:a.plotX,q(c)?c:a.plotY,q(a.leftContX)?a.leftContX:a.plotX,q(a.leftContY)?a.leftContY:a.plotY,a.plotX,a.plotY]):a=["M",c.plotX,c.plotY]:a=a.call(this,b,c,d);return a}var H=this&&this.__spreadArray||function(a,b,c){if(c||2===arguments.length)for(var d=0,e=
b.length,f;d<e;d++)!f&&d in b||(f||(f=Array.prototype.slice.call(b,0,d)),f[d]=b[d]);return a.concat(f||Array.prototype.slice.call(b))},w=c.animObject,x=f.addEvent,y=f.defined,I=f.find,q=f.isNumber,N=f.pick,U=f.splat,V=f.uniqueKey,A=f.wrap,M=[],S=function(){function b(a){this.series=a}b.compose=function(b,c,e,f,g,k,l,q,r){a.compose(b,g);-1===M.indexOf(c)&&(M.push(c),x(c,"afterDrawChartBox",m),x(c,"getAxes",p),x(c,"init",t),A(c.prototype,"get",h));-1===M.indexOf(e)&&(M.push(e),b=e.prototype,A(b,"getCoordinates",
L),A(b,"pinch",G),x(e,"getSelectionMarkerAttrs",u),x(e,"getSelectionBox",B));-1===M.indexOf(f)&&(M.push(f),x(f,"afterInit",n),x(f,"afterTranslate",d,{order:2}),A(f.prototype,"animate",O));l&&-1===M.indexOf(l)&&(M.push(l),e=l.prototype,A(e,"alignDataLabel",F),A(e,"animate",O),A(e,"translate",C));q&&-1===M.indexOf(q)&&(M.push(q),A(q.prototype,"getGraphPath",K));r&&-1===M.indexOf(r)&&(M.push(r),q=r.prototype,A(q,"getPointSpline",J),k&&-1===M.indexOf(k)&&(M.push(k),k.prototype.getPointSpline=q.getPointSpline))};
b.prototype.arc=function(a,b,c,d){var e=this.series,f=e.xAxis.center,g=e.yAxis.len,h=f[3]/2;b=g-b+h;a=g-N(a,g)+h;e.yAxis.reversed&&(0>b&&(b=h),0>a&&(a=h));return{x:f[0],y:f[1],r:b,innerR:a,start:c,end:d}};b.prototype.toXY=function(a){var b=this.series,c=b.chart,d=b.xAxis,e=b.yAxis,f=a.plotX,g=c.inverted,h=a.y,k=a.plotY,l=g?f:e.len-k;g&&b&&!b.isRadialBar&&(a.plotY=k=q(h)?e.translate(h):0);a.rectPlotX=f;a.rectPlotY=k;e.center&&(l+=e.center[3]/2);q(k)&&(e=g?e.postTranslate(k,l):d.postTranslate(f,l),
a.plotX=a.polarPlotX=e.x-c.plotLeft,a.plotY=a.polarPlotY=e.y-c.plotTop);b.kdByAngle?(b=(f/Math.PI*180+d.pane.options.startAngle)%360,0>b&&(b+=360),a.clientX=b):a.clientX=a.plotX};return b}();return S});B(e,"masters/highcharts-more.src.js",[e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Bubble/BubbleSeries.js"],e["Series/PackedBubble/PackedBubbleSeries.js"],e["Series/PolarComposition.js"]],function(c,b,e,a,f){e.compose(c.Axis,c.Chart,c.Legend,c.Series);a.compose(c.Axis,c.Chart,c.Legend,
c.Series);f.compose(c.Axis,c.Chart,c.Pointer,c.Series,c.Tick,b.seriesTypes.areasplinerange,b.seriesTypes.column,b.seriesTypes.line,b.seriesTypes.spline)})});
//# sourceMappingURL=highcharts-more.js.map