text: !function(t){"object"==typeof module&&module.exports?module.exports=t:t(Highcharts)}(function(t){function i(t,i,a){this.init(t,i,a)}var a=t.arrayMin,e=t.arrayMax,o=t.each,n=t.extend,r=t.merge,s=t.map,l=t.pick,h=t.pInt,p=t.getOptions().plotOptions,c=t.seriesTypes,d=t.extendClass,u=t.splat,g=t.wrap,f=t.Axis,m=t.Tick,y=t.Point,b=t.Pointer,x=t.CenteredSeriesMixin,P=t.TrackerMixin,A=t.Series,L=Math,w=L.round,v=L.floor,M=L.max,k=t.Color,C=function(){};n(i.prototype,{init:function(t,i,a){var e=this,n=e.defaultOptions;e.chart=i,e.options=t=r(n,i.angular?{background:{}}:void 0,t),(t=t.background)&&o([].concat(u(t)).reverse(),function(t){var i=t.backgroundColor,o=a.userOptions,t=r(e.defaultBackgroundOptions,t);i&&(t.backgroundColor=i),t.color=t.backgroundColor,a.options.plotBands.unshift(t),o.plotBands=o.plotBands||[],o.plotBands!==a.options.plotBands&&o.plotBands.unshift(t)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"silver",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#DDD"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});var S=f.prototype,m=m.prototype,T={getOffset:C,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:C,setCategories:C,setTitle:C},Y={isRadial:!0,defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(t){t=this.options=r(this.defaultOptions,this.defaultRadialOptions,t),t.plotBands||(t.plotBands=[])},getOffset:function(){S.getOffset.call(this),this.chart.axisOffset[this.side]=0,this.center=this.pane.center=x.getCenter.call(this.pane)},getLinePath:function(t,i){var a=this.center,i=l(i,a[2]/2-this.offset);return this.chart.renderer.symbols.arc(this.left+a[0],this.top+a[1],i,i,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})},setAxisTranslation:function(){S.setAxisTranslation.call(this),this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){this.autoConnect&&(this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0)},setAxisSize:function(){S.setAxisSize.call(this),this.isRadial&&(this.center=this.pane.center=t.CenteredSeriesMixin.getCenter.call(this.pane),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*l(this.sector,1)/2)},getPosition:function(t,i){return this.postTranslate(this.isCircular?this.translate(t):0,l(this.isCircular?i:this.translate(t),this.center[2]/2)-this.offset)},postTranslate:function(t,i){var a=this.chart,e=this.center,t=this.startAngleRad+t;return{x:a.plotLeft+e[0]+Math.cos(t)*i,y:a.plotTop+e[1]+Math.sin(t)*i}},getPlotBandPath:function(t,i,a){var e,o=this.center,n=this.startAngleRad,r=o[2]/2,p=[l(a.outerRadius,"100%"),a.innerRadius,l(a.thickness,10)],c=/%$/,d=this.isCircular;return"polygon"===this.options.gridLineInterpolation?o=this.getPlotLinePath(t).concat(this.getPlotLinePath(i,!0)):(t=Math.max(t,this.min),i=Math.min(i,this.max),d||(p[0]=this.translate(t),p[1]=this.translate(i)),p=s(p,function(t){return c.test(t)&&(t=h(t,10)*r/100),t}),"circle"!==a.shape&&d?(t=n+this.translate(t),i=n+this.translate(i)):(t=-Math.PI/2,i=1.5*Math.PI,e=!0),o=this.chart.renderer.symbols.arc(this.left+o[0],this.top+o[1],p[0],p[0],{start:Math.min(t,i),end:Math.max(t,i),innerR:l(p[1],p[0]-p[2]),open:e})),o},getPlotLinePath:function(t,i){var a,e,n,r=this,s=r.center,l=r.chart,h=r.getPosition(t);return r.isCircular?n=["M",s[0]+l.plotLeft,s[1]+l.plotTop,"L",h.x,h.y]:"circle"===r.options.gridLineInterpolation?(t=r.translate(t))&&(n=r.getLinePath(0,t)):(o(l.xAxis,function(t){t.pane===r.pane&&(a=t)}),n=[],t=r.translate(t),s=a.tickPositions,a.autoConnect&&(s=s.concat([s[0]])),i&&(s=[].concat(s).reverse()),o(s,function(i,o){e=a.getPosition(i,t),n.push(o?"L":"M",e.x,e.y)})),n},getTitlePosition:function(){var t=this.center,i=this.chart,a=this.options.title;return{x:i.plotLeft+t[0]+(a.x||0),y:i.plotTop+t[1]-{high:.5,middle:.25,low:0}[a.align]*t[2]+(a.y||0)}}};g(S,"init",function(t,a,e){var o,s,h,p=a.angular,c=a.polar,d=e.isX,g=p&&d;h=a.options;var f=e.pane||0;p?(n(this,g?T:Y),(s=!d)&&(this.defaultRadialOptions=this.defaultRadialGaugeOptions)):c&&(n(this,Y),this.defaultRadialOptions=(s=d)?this.defaultRadialXOptions:r(this.defaultYAxisOptions,this.defaultRadialYOptions)),t.call(this,a,e),g||!p&&!c||(t=this.options,a.panes||(a.panes=[]),this.pane=(o=a.panes[f]=a.panes[f]||new i(u(h.pane)[f],a,this),f=o),f=f.options,a.inverted=!1,h.chart.zoomType=null,this.startAngleRad=a=(f.startAngle-90)*Math.PI/180,this.endAngleRad=h=(l(f.endAngle,f.startAngle+360)-90)*Math.PI/180,this.offset=t.offset||0,(this.isCircular=s)&&void 0===e.max&&h-a===2*Math.PI&&(this.autoConnect=!0))}),g(m,"getPosition",function(t,i,a,e,o){var n=this.axis;return n.getPosition?n.getPosition(a):t.call(this,i,a,e,o)}),g(m,"getLabelPosition",function(t,i,a,e,o,n,r,s,h){var p=this.axis,c=n.y,d=20,u=n.align,g=(p.translate(this.pos)+p.startAngleRad+Math.PI/2)/Math.PI*180%360;return p.isRadial?(t=p.getPosition(this.pos,p.center[2]/2+l(n.distance,-25)),"auto"===n.rotation?e.attr({rotation:g}):null===c&&(c=p.chart.renderer.fontMetrics(e.styles.fontSize).b-e.getBBox().height/2),null===u&&(p.isCircular?(this.label.getBBox().width>p.len*p.tickInterval/(p.max-p.min)&&(d=0),u=g>d&&g<180-d?"left":g>180+d&&g<360-d?"right":"center"):u="center",e.attr({align:u})),t.x+=n.x,t.y+=c):t=t.call(this,i,a,e,o,n,r,s,h),t}),g(m,"getMarkPath",function(t,i,a,e,o,n,r){var s=this.axis;return s.isRadial?(t=s.getPosition(this.pos,s.center[2]/2+e),i=["M",i,a,"L",t.x,t.y]):i=t.call(this,i,a,e,o,n,r),i}),p.arearange=r(p.area,{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0},states:{hover:{halo:!1}}}),c.arearange=d(c.area,{type:"arearange",pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(t){return[t.low,t.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(t){var i=this.chart,a=this.xAxis.postTranslate(t.rectPlotX,this.yAxis.len-t.plotHigh);t.plotHighX=a.x-i.plotLeft,t.plotHigh=a.y-i.plotTop},getSegments:function(){var t=this;o(t.points,function(i){t.options.connectNulls||null!==i.low&&null!==i.high?null===i.low&&null!==i.high&&(i.y=i.high):i.y=null}),A.prototype.getSegments.call(this)},translate:function(){var t=this,i=t.yAxis;c.area.prototype.translate.apply(t),o(t.points,function(t){var a=t.low,e=t.high,o=t.plotY;null===e&&null===a?t.y=null:null===a?(t.plotLow=t.plotY=null,t.plotHigh=i.translate(e,0,1,0,1)):null===e?(t.plotLow=o,t.plotHigh=null):(t.plotLow=o,t.plotHigh=i.translate(e,0,1,0,1))}),this.chart.polar&&o(this.points,function(i){t.highToXY(i)})},getSegmentPath:function(i){var a,e,o,n=[],r=i.length,s=A.prototype.getSegmentPath;o=this.options;var l=o.step;for(a=t.grep(i,function(t){return null!==t.plotLow});r--;)e=i[r],null!==e.plotHigh&&n.push({plotX:e.plotHighX||e.plotX,plotY:e.plotHigh});return i=s.call(this,a),l&&(l===!0&&(l="left"),o.step={left:"right",center:"center",right:"left"}[l]),n=s.call(this,n),o.step=l,o=[].concat(i,n),this.chart.polar||(n[0]="L"),this.areaPath=this.areaPath.concat(i,n),o},drawDataLabels:function(){var t,i,a,e=this.data,o=e.length,n=[],r=A.prototype,s=this.options.dataLabels,l=s.align,h=s.verticalAlign,p=s.inside,c=this.chart.inverted;if(s.enabled||this._hasPointLabels){for(t=o;t--;)(i=e[t])&&(a=p?i.plotHigh<i.plotLow:i.plotHigh>i.plotLow,i.y=i.high,i._plotY=i.plotY,i.plotY=i.plotHigh,n[t]=i.dataLabel,i.dataLabel=i.dataLabelUpper,i.below=a,c?l||(s.align=a?"right":"left"):h||(s.verticalAlign=a?"top":"bottom"),s.x=s.xHigh,s.y=s.yHigh);for(r.drawDataLabels&&r.drawDataLabels.apply(this,arguments),t=o;t--;)(i=e[t])&&(a=p?i.plotHigh<i.plotLow:i.plotHigh>i.plotLow,i.dataLabelUpper=i.dataLabel,i.dataLabel=n[t],i.y=i.low,i.plotY=i._plotY,i.below=!a,c?l||(s.align=a?"left":"right"):h||(s.verticalAlign=a?"bottom":"top"),s.x=s.xLow,s.y=s.yLow);r.drawDataLabels&&r.drawDataLabels.apply(this,arguments)}s.align=l,s.verticalAlign=h},alignDataLabel:function(){c.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:C,getSymbol:C,drawPoints:C}),p.areasplinerange=r(p.arearange),c.areasplinerange=d(c.arearange,{type:"areasplinerange",getPointSpline:c.spline.prototype.getPointSpline}),function(){var t=c.column.prototype;p.columnrange=r(p.column,p.arearange,{lineWidth:1,pointRange:null}),c.columnrange=d(c.arearange,{type:"columnrange",translate:function(){var i,a=this,e=a.yAxis,n=a.xAxis,r=a.chart;t.translate.apply(a),o(a.points,function(t){var o,s,l=t.shapeArgs,h=a.options.minPointLength;t.plotHigh=i=e.translate(t.high,0,1,0,1),t.plotLow=t.plotY,s=i,o=t.plotY-i,Math.abs(o)<h?(h-=o,o+=h,s-=h/2):o<0&&(o*=-1,s-=o),l.height=o,l.y=s,t.tooltipPos=r.inverted?[e.len+e.pos-r.plotLeft-s-o/2,n.len+n.pos-r.plotTop-l.x-l.width/2,o]:[n.left-r.plotLeft+l.x+l.width/2,e.pos-r.plotTop+s+o/2,o]})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:C,crispCol:t.crispCol,pointAttrToOptions:t.pointAttrToOptions,drawPoints:t.drawPoints,drawTracker:t.drawTracker,animate:t.animate,getColumnMetrics:t.getColumnMetrics})}(),p.gauge=r(p.line,{dataLabels:{enabled:!0,defer:!1,y:15,borderWidth:1,borderColor:"silver",borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1}),P={type:"gauge",pointClass:d(y,{setState:function(t){this.state=t}}),angular:!0,drawGraph:C,fixedBox:!0,forceDL:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var t=this.yAxis,i=this.options,a=t.center;this.generatePoints(),o(this.points,function(e){var o=r(i.dial,e.dial),n=h(l(o.radius,80))*a[2]/200,s=h(l(o.baseLength,70))*n/100,p=h(l(o.rearLength,10))*n/100,c=o.baseWidth||3,d=o.topWidth||1,u=i.overshoot,g=t.startAngleRad+t.translate(e.y,null,null,null,!0);u&&"number"==typeof u?(u=u/180*Math.PI,g=Math.max(t.startAngleRad-u,Math.min(t.endAngleRad+u,g))):i.wrap===!1&&(g=Math.max(t.startAngleRad,Math.min(t.endAngleRad,g))),g=180*g/Math.PI,e.shapeType="path",e.shapeArgs={d:o.path||["M",-p,-c/2,"L",s,-c/2,n,-d/2,n,d/2,s,c/2,-p,c/2,"z"],translateX:a[0],translateY:a[1],rotation:g},e.plotX=a[0],e.plotY=a[1]})},drawPoints:function(){var t=this,i=t.yAxis.center,a=t.pivot,e=t.options,n=e.pivot,s=t.chart.renderer;o(t.points,function(i){var a=i.graphic,o=i.shapeArgs,n=o.d,l=r(e.dial,i.dial);a?(a.animate(o),o.d=n):i.graphic=s[i.shapeType](o).attr({stroke:l.borderColor||"none","stroke-width":l.borderWidth||0,fill:l.backgroundColor||"black",rotation:o.rotation,zIndex:1}).add(t.group)}),a?a.animate({translateX:i[0],translateY:i[1]}):t.pivot=s.circle(0,0,l(n.radius,5)).attr({"stroke-width":n.borderWidth||0,stroke:n.borderColor||"silver",fill:n.backgroundColor||"black",zIndex:2}).translate(i[0],i[1]).add(t.group)},animate:function(t){var i=this;t||(o(i.points,function(t){var a=t.graphic;a&&(a.attr({rotation:180*i.yAxis.startAngleRad/Math.PI}),a.animate({rotation:t.shapeArgs.rotation},i.options.animation))}),i.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),A.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:function(t,i){A.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),l(i,!0)&&this.chart.redraw()},drawTracker:P&&P.drawTrackerPoint},c.gauge=d(c.line,P),p.boxplot=r(p.column,{fillColor:"#FFFFFF",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">●</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",whiskerWidth:2}),c.boxplot=d(c.column,{type:"boxplot",pointArrayMap:["low","q1","median","q3","high"],toYData:function(t){return[t.low,t.q1,t.median,t.q3,t.high]},pointValKey:"high",pointAttrToOptions:{fill:"fillColor",stroke:"color","stroke-width":"lineWidth"},drawDataLabels:C,translate:function(){var t=this.yAxis,i=this.pointArrayMap;c.column.prototype.translate.apply(this),o(this.points,function(a){o(i,function(i){null!==a[i]&&(a[i+"Plot"]=t.translate(a[i],0,1,0,1))})})},drawPoints:function(){var t,i,a,e,n,r,s,h,p,c,d,u,g,f,m,y,b,x,P,A,L,M,k,C=this,S=C.options,T=C.chart.renderer,Y=C.doQuartiles!==!1,X=C.options.whiskerLength;o(C.points,function(o){p=o.graphic,L=o.shapeArgs,d={},f={},y={},M=o.color||C.color,void 0!==o.plotY&&(t=o.pointAttr[o.selected?"selected":""],b=L.width,x=v(L.x),P=x+b,A=w(b/2),i=v(Y?o.q1Plot:o.lowPlot),a=v(Y?o.q3Plot:o.lowPlot),e=v(o.highPlot),n=v(o.lowPlot),d.stroke=o.stemColor||S.stemColor||M,d["stroke-width"]=l(o.stemWidth,S.stemWidth,S.lineWidth),d.dashstyle=o.stemDashStyle||S.stemDashStyle,f.stroke=o.whiskerColor||S.whiskerColor||M,f["stroke-width"]=l(o.whiskerWidth,S.whiskerWidth,S.lineWidth),y.stroke=o.medianColor||S.medianColor||M,y["stroke-width"]=l(o.medianWidth,S.medianWidth,S.lineWidth),s=d["stroke-width"]%2/2,h=x+A+s,c=["M",h,a,"L",h,e,"M",h,i,"L",h,n],Y&&(s=t["stroke-width"]%2/2,h=v(h)+s,i=v(i)+s,a=v(a)+s,x+=s,P+=s,u=["M",x,a,"L",x,i,"L",P,i,"L",P,a,"L",x,a,"z"]),X&&(s=f["stroke-width"]%2/2,e+=s,n+=s,k=/%$/.test(X)?A*parseFloat(X)/100:X/2,g=["M",h-k,e,"L",h+k,e,"M",h-k,n,"L",h+k,n]),s=y["stroke-width"]%2/2,r=w(o.medianPlot)+s,m=["M",x,r,"L",P,r],p?(o.stem.animate({d:c}),X&&o.whiskers.animate({d:g}),Y&&o.box.animate({d:u}),o.medianShape.animate({d:m})):(o.graphic=p=T.g().add(C.group),o.stem=T.path(c).attr(d).add(p),X&&(o.whiskers=T.path(g).attr(f).add(p)),Y&&(o.box=T.path(u).attr(t).add(p)),o.medianShape=T.path(m).attr(y).add(p)))})},setStackedPoints:C}),p.errorbar=r(p.boxplot,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null}),c.errorbar=d(c.boxplot,{type:"errorbar",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:c.arearange?c.arearange.prototype.drawDataLabels:C,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||c.column.prototype.getColumnMetrics.call(this)}}),p.waterfall=r(p.column,{lineWidth:1,lineColor:"#333",dashStyle:"dot",borderColor:"#333",dataLabels:{inside:!0},states:{hover:{lineWidthPlus:0}}}),c.waterfall=d(c.column,{type:"waterfall",upColorProp:"fill",pointValKey:"y",translate:function(){var t,i,a,e,o,n,r,s,h,p=this.options,d=this.yAxis,u=l(p.minPointLength,5),g=p.threshold,f=p.stacking;for(c.column.prototype.translate.apply(this),this.minPointLengthOffset=0,r=s=g,i=this.points,t=0,p=i.length;t<p;t++)a=i[t],n=this.processedYData[t],e=a.shapeArgs,h=(o=f&&d.stacks[(this.negStacks&&n<g?"-":"")+this.stackKey])?o[a.x].points[this.index+","+t]:[0,n],a.isSum?a.y=n:a.isIntermediateSum&&(a.y=n-s),o=M(r,r+a.y)+h[0],e.y=d.translate(o,0,1),a.isSum?(e.y=d.translate(h[1],0,1),e.height=Math.min(d.translate(h[0],0,1),d.len)-e.y+this.minPointLengthOffset):a.isIntermediateSum?(e.y=d.translate(h[1],0,1),e.height=Math.min(d.translate(s,0,1),d.len)-e.y+this.minPointLengthOffset,s=h[1]):(0!==r&&(e.height=n>0?d.translate(r,0,1)-e.y:d.translate(r,0,1)-d.translate(r-n,0,1)),r+=n),e.height<0&&(e.y+=e.height,e.height*=-1),a.plotY=e.y=w(e.y)-this.borderWidth%2/2,e.height=M(w(e.height),.001),a.yBottom=e.y+e.height,e.height<=u&&(e.height=u,this.minPointLengthOffset+=u),e.y-=this.minPointLengthOffset,e=a.plotY+(a.negative?e.height:0)-this.minPointLengthOffset,this.chart.inverted?a.tooltipPos[0]=d.len-e:a.tooltipPos[1]=e},processData:function(t){var i,a,e,o,n,r,s,l=this.yData,h=this.options.data,p=l.length;for(e=a=o=n=this.options.threshold||0,s=0;s<p;s++)r=l[s],i=h&&h[s]?h[s]:{},"sum"===r||i.isSum?l[s]=e:"intermediateSum"===r||i.isIntermediateSum?l[s]=a:(e+=r,a+=r),o=Math.min(e,o),n=Math.max(e,n);A.prototype.processData.call(this,t),this.dataMin=o,this.dataMax=n},toYData:function(t){return t.isSum?0===t.x?null:"sum":t.isIntermediateSum?0===t.x?null:"intermediateSum":t.y},getAttribs:function(){c.column.prototype.getAttribs.apply(this,arguments);var i=this,a=i.options,e=a.states,n=a.upColor||i.color,a=t.Color(n).brighten(.1).get(),s=r(i.pointAttr),l=i.upColorProp;s[""][l]=n,s.hover[l]=e.hover.upColor||a,s.select[l]=e.select.upColor||n,o(i.points,function(t){t.options.color||(t.y>0?(t.pointAttr=s,t.color=n):t.pointAttr=i.pointAttr)})},getGraphPath:function(){var t,i,a,e=this.data,o=e.length,n=w(this.options.lineWidth+this.borderWidth)%2/2,r=[];for(a=1;a<o;a++)i=e[a].shapeArgs,t=e[a-1].shapeArgs,i=["M",t.x+t.width,t.y+n,"L",i.x,t.y+n],e[a-1].y<0&&(i[2]+=t.height,i[5]+=t.height),r=r.concat(i);return r},getExtremes:C,drawGraph:A.prototype.drawGraph}),p.polygon=r(p.scatter,{marker:{enabled:!1}}),c.polygon=d(c.scatter,{type:"polygon",fillGraph:!0,getSegmentPath:function(t){return A.prototype.getSegmentPath.call(this,t).concat("z")},drawGraph:A.prototype.drawGraph,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle}),p.bubble=r(p.scatter,{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1},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"}),P=d(y,{haloPath:function(){return y.prototype.haloPath.call(this,this.shapeArgs.r+this.series.options.states.hover.halo.size)},ttBelow:!1}),c.bubble=d(c.scatter,{type:"bubble",pointClass:P,pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor"},applyOpacity:function(t){var i=this.options.marker,a=l(i.fillOpacity,.5),t=t||i.fillColor||this.color;return 1!==a&&(t=k(t).setOpacity(a).get("rgba")),t},convertAttribs:function(){var t=A.prototype.convertAttribs.apply(this,arguments);return t.fill=this.applyOpacity(t.fill),t},getRadii:function(t,i,a,e){var o,n,r,s=this.zData,l=[],h=this.options,p="width"!==h.sizeBy,c=h.zThreshold,d=i-t;for(n=0,o=s.length;n<o;n++)r=s[n],h.sizeByAbsoluteValue&&null!==r&&(r=Math.abs(r-c),i=Math.max(i-c,Math.abs(t-c)),t=0),null===r?r=null:r<t?r=a/2-1:(r=d>0?(r-t)/d:.5,p&&r>=0&&(r=Math.sqrt(r)),r=L.ceil(a+r*(e-a))/2),l.push(r);this.radii=l},animate:function(t){var i=this.options.animation;t||(o(this.points,function(t){var a=t.graphic,t=t.shapeArgs;a&&t&&(a.attr("r",1),a.animate({r:t.r},i))}),this.animate=null)},translate:function(){var t,i,a,e=this.data,o=this.radii;for(c.scatter.prototype.translate.call(this),t=e.length;t--;)i=e[t],a=o?o[t]:0,"number"==typeof a&&a>=this.minPxSize/2?(i.shapeType="circle",i.shapeArgs={x:i.plotX,y:i.plotY,r:a},i.dlBox={x:i.plotX-a,y:i.plotY-a,width:2*a,height:2*a}):i.shapeArgs=i.plotY=i.dlBox=void 0},drawLegendSymbol:function(t,i){var a=this.chart.renderer,e=a.fontMetrics(t.itemStyle.fontSize).f/2;i.legendSymbol=a.circle(e,t.baseline-e,e).attr({zIndex:3}).add(i.legendGroup),i.legendSymbol.isMarker=!0},drawPoints:c.column.prototype.drawPoints,alignDataLabel:c.column.prototype.alignDataLabel,buildKDTree:C,applyZones:C}),f.prototype.beforePadding=function(){var t=this,i=this.len,n=this.chart,r=0,s=i,p=this.isXAxis,c=p?"xData":"yData",d=this.min,u={},g=L.min(n.plotWidth,n.plotHeight),f=Number.MAX_VALUE,m=-Number.MAX_VALUE,y=this.max-d,b=i/y,x=[];o(this.series,function(i){var r=i.options;!i.bubblePadding||!i.visible&&n.options.chart.ignoreHiddenSeries||(t.allowZoomOutside=!0,x.push(i),p&&(o(["minSize","maxSize"],function(t){var i=r[t],a=/%$/.test(i),i=h(i);u[t]=a?g*i/100:i}),i.minPxSize=u.minSize,i.maxPxSize=u.maxSize,i=i.zData,i.length&&(f=l(r.zMin,L.min(f,L.max(a(i),r.displayNegative===!1?r.zThreshold:-Number.MAX_VALUE))),m=l(r.zMax,L.max(m,e(i))))))}),o(x,function(t){var i,a=t[c],e=a.length;if(p&&t.getRadii(f,m,t.minPxSize,t.maxPxSize),y>0)for(;e--;)"number"==typeof a[e]&&(i=t.radii[e],r=Math.min((a[e]-d)*b-i,r),s=Math.max((a[e]-d)*b+i,s))}),x.length&&y>0&&!this.isLog&&(s-=i,b*=(i+r-s)/i,o([["min","userMin",r],["max","userMax",s]],function(i){void 0===l(t.options[i[0]],t[i[1]])&&(t[i[0]]+=i[2]/b)}))},function(){function t(t,i,a){t.call(this,i,a),this.chart.polar&&(this.closeSegment=function(t){var i=this.xAxis.center;t.push("L",i[0],i[1])},this.closedStacks=!0)}function i(t,i){var a=this.chart,e=this.options.animation,o=this.group,n=this.markerGroup,r=this.xAxis.center,s=a.plotLeft,l=a.plotTop;a.polar?a.renderer.isSVG&&(e===!0&&(e={}),i?(a={translateX:r[0]+s,translateY:r[1]+l,scaleX:.001,scaleY:.001},o.attr(a),n&&n.attr(a)):(a={translateX:s,translateY:l,scaleX:1,scaleY:1},o.animate(a,e),n&&n.animate(a,e),this.animate=null)):t.call(this,i)}var a,e=A.prototype,n=b.prototype;e.searchPointByAngle=function(t){var i=this.chart,a=this.xAxis.pane.center;return this.searchKDTree({clientX:180+Math.atan2(t.chartX-a[0]-i.plotLeft,t.chartY-a[1]-i.plotTop)*(-180/Math.PI)})},g(e,"buildKDTree",function(t){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.kdDimensions=2),t.apply(this)}),e.toXY=function(t){var i,a=this.chart,e=t.plotX;i=t.plotY,t.rectPlotX=e,t.rectPlotY=i,i=this.xAxis.postTranslate(t.plotX,this.yAxis.len-i),t.plotX=t.polarPlotX=i.x-a.plotLeft,t.plotY=t.polarPlotY=i.y-a.plotTop,this.kdByAngle?(a=(e/Math.PI*180+this.xAxis.pane.options.startAngle)%360,a<0&&(a+=360),t.clientX=a):t.clientX=t.plotX},c.area&&g(c.area.prototype,"init",t),c.areaspline&&g(c.areaspline.prototype,"init",t),c.spline&&g(c.spline.prototype,"getPointSpline",function(t,i,a,e){var o,n,r,s,l,h,p;return this.chart.polar?(o=a.plotX,n=a.plotY,t=i[e-1],r=i[e+1],this.connectEnds&&(t||(t=i[i.length-2]),r||(r=i[1])),t&&r&&(s=t.plotX,l=t.plotY,i=r.plotX,h=r.plotY,s=(1.5*o+s)/2.5,l=(1.5*n+l)/2.5,r=(1.5*o+i)/2.5,p=(1.5*n+h)/2.5,i=Math.sqrt(Math.pow(s-o,2)+Math.pow(l-n,2)),h=Math.sqrt(Math.pow(r-o,2)+Math.pow(p-n,2)),s=Math.atan2(l-n,s-o),l=Math.atan2(p-n,r-o),p=Math.PI/2+(s+l)/2,Math.abs(s-p)>Math.PI/2&&(p-=Math.PI),s=o+Math.cos(p)*i,l=n+Math.sin(p)*i,r=o+Math.cos(Math.PI+p)*h,p=n+Math.sin(Math.PI+p)*h,a.rightContX=r,a.rightContY=p),e?(a=["C",t.rightContX||t.plotX,t.rightContY||t.plotY,s||o,l||n,o,n],t.rightContX=t.rightContY=null):a=["M",o,n]):a=t.call(this,i,a,e),a}),g(e,"translate",function(t){var i=this.chart;if(t.call(this),i.polar&&(this.kdByAngle=i.tooltip&&i.tooltip.shared,!this.preventPostTranslate))for(t=this.points,i=t.length;i--;)this.toXY(t[i])}),g(e,"getSegmentPath",function(t,i){var a=this.points;return this.chart.polar&&this.options.connectEnds!==!1&&i[i.length-1]===a[a.length-1]&&null!==a[0].y&&(this.connectEnds=!0,i=[].concat(i,[a[0]])),t.call(this,i)}),g(e,"animate",i),c.column&&(a=c.column.prototype,g(a,"animate",i),g(a,"translate",function(t){var i,a,e=this.xAxis,o=this.yAxis.len,n=e.center,r=e.startAngleRad,s=this.chart.renderer;if(this.preventPostTranslate=!0,t.call(this),e.isRadial)for(e=this.points,a=e.length;a--;)i=e[a],t=i.barX+r,i.shapeType="path",i.shapeArgs={d:s.symbols.arc(n[0],n[1],o-i.plotY,null,{start:t,end:t+i.pointWidth,innerR:o-l(i.yBottom,o)})},this.toXY(i),i.tooltipPos=[i.plotX,i.plotY],i.ttBelow=i.plotY>n[1]}),g(a,"alignDataLabel",function(t,i,a,o,n,r){this.chart.polar?(t=i.rectPlotX/Math.PI*180,null===o.align&&(o.align=t>20&&t<160?"left":t>200&&t<340?"right":"center"),null===o.verticalAlign&&(o.verticalAlign=t<45||t>315?"bottom":t>135&&t<225?"top":"middle"),e.alignDataLabel.call(this,i,a,o,n,r)):t.call(this,i,a,o,n,r)})),g(n,"getCoordinates",function(t,i){var a=this.chart,e={xAxis:[],yAxis:[]};return a.polar?o(a.axes,function(t){var o=t.isXAxis,n=t.center,r=i.chartX-n[0]-a.plotLeft,n=i.chartY-n[1]-a.plotTop;e[o?"xAxis":"yAxis"].push({axis:t,value:t.translate(o?Math.PI-Math.atan2(r,n):Math.sqrt(Math.pow(r,2)+Math.pow(n,2)),!0)})}):e=t.call(this,i),e})}()});