/* Highcharts JS v5.0.14 (2017-07-28) (c) 2009-2016 Torstein Honsi License: www.highcharts.com/license */ (function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(b){function t(b,a){this.init(b,a)}var u=b.CenteredSeriesMixin,v=b.each,g=b.extend,f=b.merge,k=b.splat;g(t.prototype,{coll:"pane",init:function(b,a){this.chart=a;this.background=[];a.pane.push(this);this.setOptions(b)},setOptions:function(b){this.options=f(this.defaultOptions,this.chart.angular?{background:{}}:void 0,b)},render:function(){var b=this.options,a=this.options.background,c=this.chart.renderer; this.group||(this.group=c.g("pane-group").attr({zIndex:b.zIndex||0}).add());this.updateCenter();if(a)for(a=k(a),b=Math.max(a.length,this.background.length||0),c=0;c d.len*d.tickInterval/(d.max-d.min)&&(n=0),r=m>n&&m<180-n?"left":m>180+n&&m<360-n?"right":"center"):r="center",b.attr({align:r})),a.x+=w.x,a.y+=e):a=a.call(this,c,h,b,l,w,p,f,g);return a});a(b,"getMarkPath",function(a,c,h,b,l,f,p){var d=this.axis;d.isRadial?(a=d.getPosition(this.pos,d.center[2]/2+b),c=["M",c,h,"L",a.x,a.y]):c=a.call(this,c,h,b,l,f,p);return c})})(x);(function(b){var t=b.each,u=b.pick,v=b.defined,g=b.seriesType,f=b.seriesTypes,k=b.Series.prototype,q=b.Point.prototype;g("arearange", "area",{threshold:null,tooltip:{pointFormat:'\x3cspan class\x3d"highcharts-color-{series.colorIndex}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.low}\x3c/b\x3e - \x3cb\x3e{point.high}\x3c/b\x3e\x3cbr/\x3e'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(a){return[a.low,a.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(a){var c=this.chart, h=this.xAxis.postTranslate(a.rectPlotX,this.yAxis.len-a.plotHigh);a.plotHighX=h.x-c.plotLeft;a.plotHigh=h.y-c.plotTop;a.plotLowX=a.plotX},translate:function(){var a=this,c=a.yAxis,h=!!a.modifyValue;f.area.prototype.translate.apply(a);t(a.points,function(b){var d=b.low,e=b.high,l=b.plotY;null===e||null===d?(b.isNull=!0,b.plotY=null):(b.plotLow=l,b.plotHigh=c.translate(h?a.modifyValue(e,b):e,0,1,0,1),h&&(b.yBottom=b.plotHigh))});this.chart.polar&&t(this.points,function(c){a.highToXY(c);c.tooltipPos= [(c.plotHighX+c.plotLowX)/2,(c.plotHigh+c.plotLow)/2]})},getGraphPath:function(a){var c=[],b=[],l,d=f.area.prototype.getGraphPath,e,n,r;r=this.options;var m=this.chart.polar&&!1!==r.connectEnds,w=r.connectNulls,p=r.step;a=a||this.points;for(l=a.length;l--;)e=a[l],e.isNull||m||w||a[l+1]&&!a[l+1].isNull||b.push({plotX:e.plotX,plotY:e.plotY,doCurve:!1}),n={polarPlotY:e.polarPlotY,rectPlotX:e.rectPlotX,yBottom:e.yBottom,plotX:u(e.plotHighX,e.plotX),plotY:e.plotHigh,isNull:e.isNull},b.push(n),c.push(n), e.isNull||m||w||a[l-1]&&!a[l-1].isNull||b.push({plotX:e.plotX,plotY:e.plotY,doCurve:!1});a=d.call(this,a);p&&(!0===p&&(p="left"),r.step={left:"right",center:"center",right:"left"}[p]);c=d.call(this,c);b=d.call(this,b);r.step=p;r=[].concat(a,c);this.chart.polar||"M"!==b[0]||(b[0]="L");this.graphPath=r;this.areaPath=this.areaPath.concat(a,b);r.isArea=!0;r.xMap=a.xMap;this.areaPath.xMap=a.xMap;return r},drawDataLabels:function(){var a=this.data,c=a.length,b,l=[],d=this.options.dataLabels,e=d.align,n= d.verticalAlign,r=d.inside,m,f,p=this.chart.inverted;if(d.enabled||this._hasPointLabels){for(b=c;b--;)if(m=a[b])f=r?m.plotHighm.plotLow,m.y=m.high,m._plotY=m.plotY,m.plotY=m.plotHigh,l[b]=m.dataLabel,m.dataLabel=m.dataLabelUpper,m.below=f,p?e||(d.align=f?"right":"left"):n||(d.verticalAlign=f?"top":"bottom"),d.x=d.xHigh,d.y=d.yHigh;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments);for(b=c;b--;)if(m=a[b])f=r?m.plotHighm.plotLow,m.dataLabelUpper=m.dataLabel, m.dataLabel=l[b],m.y=m.low,m.plotY=m._plotY,m.below=!f,p?e||(d.align=f?"left":"right"):n||(d.verticalAlign=f?"bottom":"top"),d.x=d.xLow,d.y=d.yLow;k.drawDataLabels&&k.drawDataLabels.apply(this,arguments)}d.align=e;d.verticalAlign=n},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},drawPoints:function(){var a=this.points.length,c,b;k.drawPoints.apply(this,arguments);for(b=0;bw&&(w*=-1,k-=w);n?(d=h.barX+l,h.shapeType="path",h.shapeArgs={d:a.polarArc(k+w,k,d,d+h.pointWidth)}):(p.height=w,p.y=k,h.tooltipPos=e.inverted?[c.len+c.pos-e.plotLeft-k-w/2,b.len+b.pos-e.plotTop-p.x-p.width/2,w]:[b.left-e.plotLeft+p.x+p.width/2,c.pos-e.plotTop+k+w/2,w])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:g,getSymbol:g,crispCol:q.crispCol,drawPoints:q.drawPoints,drawTracker:q.drawTracker, getColumnMetrics:q.getColumnMetrics,animate:function(){return q.animate.apply(this,arguments)},polarArc:function(){return q.polarArc.apply(this,arguments)},pointAttribs:q.pointAttribs},{setState:q.pointClass.prototype.setState})})(x);(function(b){var t=b.each,u=b.isNumber,v=b.merge,g=b.pick,f=b.pInt,k=b.Series,q=b.seriesType,a=b.TrackerMixin;q("gauge","line",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1}, {angular:!0,directTouch:!0,drawGraph:b.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var a=this.yAxis,b=this.options,l=a.center;this.generatePoints();t(this.points,function(d){var c=v(b.dial,d.dial),h=f(g(c.radius,80))*l[2]/200,r=f(g(c.baseLength,70))*h/100,m=f(g(c.rearLength,10))*h/100,w=c.baseWidth||3,p=c.topWidth||1,k=b.overshoot,q=a.startAngleRad+a.translate(d.y,null,null,null,!0);u(k)?(k=k/180*Math.PI,q=Math.max(a.startAngleRad- k,Math.min(a.endAngleRad+k,q))):!1===b.wrap&&(q=Math.max(a.startAngleRad,Math.min(a.endAngleRad,q)));q=180*q/Math.PI;d.shapeType="path";d.shapeArgs={d:c.path||["M",-m,-w/2,"L",r,-w/2,h,-p/2,h,p/2,r,w/2,-m,w/2,"z"],translateX:l[0],translateY:l[1],rotation:q};d.plotX=l[0];d.plotY=l[1]})},drawPoints:function(){var a=this,b=a.yAxis.center,l=a.pivot,d=a.options,e=d.pivot,n=a.chart.renderer;t(a.points,function(c){var b=c.graphic,e=c.shapeArgs,h=e.d;v(d.dial,c.dial);b?(b.animate(e),e.d=h):c.graphic=n[c.shapeType](e).attr({rotation:e.rotation, zIndex:1}).addClass("highcharts-dial").add(a.group)});l?l.animate({translateX:b[0],translateY:b[1]}):a.pivot=n.circle(0,0,g(e.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(b[0],b[1]).add(a.group)},animate:function(a){var c=this;a||(t(c.points,function(a){var d=a.graphic;d&&(d.attr({rotation:180*c.yAxis.startAngleRad/Math.PI}),d.animate({rotation:a.shapeArgs.rotation},c.options.animation))}),c.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible? "visible":"hidden",this.options.zIndex,this.chart.seriesGroup);k.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(a,b){k.prototype.setData.call(this,a,!1);this.processData();this.generatePoints();g(b,!0)&&this.chart.redraw()},drawTracker:a&&a.drawTrackerPoint},{setState:function(a){this.state=a}})})(x);(function(b){var t=b.each,u=b.noop,v=b.seriesType,g=b.seriesTypes;v("boxplot","column",{threshold:null,tooltip:{pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eMaximum: {point.high}\x3cbr/\x3eUpper quartile: {point.q3}\x3cbr/\x3eMedian: {point.median}\x3cbr/\x3eLower quartile: {point.q1}\x3cbr/\x3eMinimum: {point.low}\x3cbr/\x3e'}, whiskerLength:"50%"},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(b){return[b.low,b.q1,b.median,b.q3,b.high]},pointValKey:"high",drawDataLabels:u,translate:function(){var b=this.yAxis,k=this.pointArrayMap;g.column.prototype.translate.apply(this);t(this.points,function(f){t(k,function(a){null!==f[a]&&(f[a+"Plot"]=b.translate(f[a],0,1,0,1))})})},drawPoints:function(){var b=this,g=b.chart.renderer,q,a,c,h,l,d,e=0,n,r,m,w,p=!1!==b.doQuartiles,u,v=b.options.whiskerLength;t(b.points, function(f){var k=f.graphic,t=k?"animate":"attr",E=f.shapeArgs;void 0!==f.plotY&&(n=E.width,r=Math.floor(E.x),m=r+n,w=Math.round(n/2),q=Math.floor(p?f.q1Plot:f.lowPlot),a=Math.floor(p?f.q3Plot:f.lowPlot),c=Math.floor(f.highPlot),h=Math.floor(f.lowPlot),k||(f.graphic=k=g.g("point").add(b.group),f.stem=g.path().addClass("highcharts-boxplot-stem").add(k),v&&(f.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(k)),p&&(f.box=g.path(void 0).addClass("highcharts-boxplot-box").add(k)),f.medianShape= g.path(void 0).addClass("highcharts-boxplot-median").add(k)),d=f.stem.strokeWidth()%2/2,e=r+w+d,f.stem[t]({d:["M",e,a,"L",e,c,"M",e,q,"L",e,h]}),p&&(d=f.box.strokeWidth()%2/2,q=Math.floor(q)+d,a=Math.floor(a)+d,r+=d,m+=d,f.box[t]({d:["M",r,a,"L",r,q,"L",m,q,"L",m,a,"L",r,a,"z"]})),v&&(d=f.whiskers.strokeWidth()%2/2,c+=d,h+=d,u=/%$/.test(v)?w*parseFloat(v)/100:v/2,f.whiskers[t]({d:["M",e-u,c,"L",e+u,c,"M",e-u,h,"L",e+u,h]})),l=Math.round(f.medianPlot),d=f.medianShape.strokeWidth()%2/2,l+=d,f.medianShape[t]({d:["M", r,l,"L",m,l]}))})},setStackedPoints:u})})(x);(function(b){var t=b.each,u=b.noop,v=b.seriesType,g=b.seriesTypes;v("errorbar","boxplot",{grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e {series.name}: \x3cb\x3e{point.low}\x3c/b\x3e - \x3cb\x3e{point.high}\x3c/b\x3e\x3cbr/\x3e'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(b){return[b.low,b.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:g.arearange? function(){var b=this.pointValKey;g.arearange.prototype.drawDataLabels.call(this);t(this.data,function(f){f.y=f[b]})}:u,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||g.column.prototype.getColumnMetrics.call(this)}})})(x);(function(b){var t=b.correctFloat,u=b.isNumber,v=b.pick,g=b.Point,f=b.Series,k=b.seriesType,q=b.seriesTypes;k("waterfall","column",{dataLabels:{inside:!0}},{pointValKey:"y",translate:function(){var a=this.options,c=this.yAxis,b,l,d,e,n,f,m, g,p,k,u=v(a.minPointLength,5),x=u/2,A=a.threshold,B=a.stacking,z;q.column.prototype.translate.apply(this);g=p=A;l=this.points;b=0;for(a=l.length;be.height&&(e.y+=e.height,e.height*=-1),d.plotY=e.y=Math.round(e.y)-this.borderWidth%2/2,e.height=Math.max(Math.round(e.height),.001),d.yBottom=e.y+e.height,e.height<=u&&!d.isNull?(e.height=u,e.y-=x,d.plotY=e.y,d.minPointLengthOffset=0>d.y?-x:x):d.minPointLengthOffset= 0,e=d.plotY+(d.negative?e.height:0),this.chart.inverted?d.tooltipPos[0]=c.len-e:d.tooltipPos[1]=e},processData:function(a){var c=this.yData,b=this.options.data,l,d=c.length,e,n,r,m,g,p;n=e=r=m=this.options.threshold||0;for(p=0;pa[f-1].y&&!l||0=this.minPxSize/2?(h.marker=b.extend(h.marker,{radius:g,width:2*g,height:2*g}),h.dlBox={x:h.plotX-g,y:h.plotY-g,width:2*g,height:2*g}):h.shapeArgs=h.plotY=h.dlBox=void 0},alignDataLabel:l.column.prototype.alignDataLabel,buildKDTree:k,applyZones:k},{haloPath:function(a){return c.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});v.prototype.beforePadding=function(){var b= this,c=this.len,h=this.chart,l=0,m=c,k=this.isXAxis,p=k?"xData":"yData",v=this.min,x={},y=Math.min(h.plotWidth,h.plotHeight),A=Number.MAX_VALUE,B=-Number.MAX_VALUE,z=this.max-v,C=c/z,D=[];g(this.series,function(c){var d=c.options;!c.bubblePadding||!c.visible&&h.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,D.push(c),k&&(g(["minSize","maxSize"],function(c){var b=d[c],e=/%$/.test(b),b=a(b);x[c]=e?y*b/100:b}),c.minPxSize=x.minSize,c.maxPxSize=Math.max(x.maxSize,x.minSize),c=c.zData,c.length&& (A=q(d.zMin,Math.min(A,Math.max(u(c),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),B=q(d.zMax,Math.max(B,t(c))))))});g(D,function(a){var c=a[p],d=c.length,e;k&&a.getRadii(A,B,a.minPxSize,a.maxPxSize);if(0b?a.length-1+b:0;b=0>c-1?a.length-(1+e):c-1;e=c+1>a.length-1?e:c+1;l=a[b];e=a[e];g=l.plotX;l=l.plotY;m=e.plotX;k=e.plotY;e=a[c].plotX;c=a[c].plotY;g=(1.5*e+g)/2.5;l=(1.5*c+l)/2.5;m=(1.5*e+m)/2.5;p=(1.5*c+k)/2.5;k=Math.sqrt(Math.pow(g-e,2)+Math.pow(l- c,2));q=Math.sqrt(Math.pow(m-e,2)+Math.pow(p-c,2));g=Math.atan2(l-c,g-e);p=Math.PI/2+(g+Math.atan2(p-c,m-e))/2;Math.abs(g-p)>Math.PI/2&&(p-=Math.PI);g=e+Math.cos(p)*k;l=c+Math.sin(p)*k;m=e+Math.cos(Math.PI+p)*q;p=c+Math.sin(Math.PI+p)*q;e={rightContX:m,rightContY:p,leftContX:g,leftContY:l,plotX:e,plotY:c};h&&(e.prevPointCont=this.getConnectors(a,b,!1,f));return e};f(k,"buildKDTree",function(a){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy= "xy");a.apply(this)});k.toXY=function(a){var b,h=this.chart,f=a.plotX;b=a.plotY;a.rectPlotX=f;a.rectPlotY=b;b=this.xAxis.postTranslate(a.plotX,this.yAxis.len-b);a.plotX=a.polarPlotX=b.x-h.plotLeft;a.plotY=a.polarPlotY=b.y-h.plotTop;this.kdByAngle?(h=(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>h&&(h+=360),a.clientX=h):a.clientX=a.plotX};g.spline&&(f(g.spline.prototype,"getPointSpline",function(a,b,h,f){this.chart.polar?f?(a=this.getConnectors(b,f,!0,this.connectEnds),a=["C",a.prevPointCont.rightContX, a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=["M",h.plotX,h.plotY]:a=a.call(this,b,h,f);return a}),g.areasplinerange&&(g.areasplinerange.prototype.getPointSpline=g.spline.prototype.getPointSpline));f(k,"translate",function(a){var b=this.chart;a.call(this);if(b.polar&&(this.kdByAngle=b.tooltip&&b.tooltip.shared,!this.preventPostTranslate))for(a=this.points,b=a.length;b--;)this.toXY(a[b])});f(k,"getGraphPath",function(a,b){var c=this,f,d,e;if(this.chart.polar){b=b||this.points; for(f=0;fb.center[1]}),f(g,"alignDataLabel",function(a,b,f,g,d,e){this.chart.polar?(a=b.rectPlotX/Math.PI*180,null===g.align&&(g.align=20a?"left":200a?"right":"center"),null===g.verticalAlign&& (g.verticalAlign=45>a||315a?"top":"middle"),k.alignDataLabel.call(this,b,f,g,d,e)):a.call(this,b,f,g,d,e)}));f(q,"getCoordinates",function(a,b){var c=this.chart,f={xAxis:[],yAxis:[]};c.polar?u(c.axes,function(a){var d=a.isXAxis,g=a.center,h=b.chartX-g[0]-c.plotLeft,g=b.chartY-g[1]-c.plotTop;f[d?"xAxis":"yAxis"].push({axis:a,value:a.translate(d?Math.PI-Math.atan2(h,g):Math.sqrt(Math.pow(h,2)+Math.pow(g,2)),!0)})}):f=a.call(this,b);return f});f(b.Chart.prototype,"getAxes",function(a){this.pane|| (this.pane=[]);u(b.splat(this.options.pane),function(a){new b.Pane(a,this)},this);a.call(this)});f(b.Chart.prototype,"drawChartBox",function(a){a.call(this);u(this.pane,function(a){a.render()})});f(b.Chart.prototype,"get",function(a,c){return b.find(this.pane,function(a){return a.options.id===c})||a.call(this,c)})})(x)});