highcharts
Advanced tools
Comparing version 5.0.7 to 5.0.8
{ | ||
"name": "highcharts", | ||
"version": "v5.0.7", | ||
"version": "v5.0.8", | ||
"main": "highcharts.js" | ||
} |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -13,40 +13,40 @@ 3D features for Highcharts JS | ||
c.attr({"stroke-linejoin":"round"});c.front=this.path(b[0]).attr({"class":"highcharts-3d-front",zIndex:b[3]}).add(c);c.top=this.path(b[1]).attr({"class":"highcharts-3d-top",zIndex:b[4]}).add(c);c.side=this.path(b[2]).attr({"class":"highcharts-3d-side",zIndex:b[5]}).add(c);c.fillSetter=function(b){this.front.attr({fill:b});this.top.attr({fill:q(b).brighten(.1).get()});this.side.attr({fill:q(b).brighten(-.1).get()});this.color=b;return this};c.opacitySetter=function(b){this.front.attr({opacity:b}); | ||
this.top.attr({opacity:b});this.side.attr({opacity:b});return this};c.attr=function(b){if(b.shapeArgs||d(b.x))b=this.renderer.cuboidPath(b.shapeArgs||b),this.front.attr({d:b[0],zIndex:b[3]}),this.top.attr({d:b[1],zIndex:b[4]}),this.side.attr({d:b[2],zIndex:b[5]});else return a.SVGElement.prototype.attr.call(this,b);return this};c.animate=function(b,c,a){d(b.x)&&d(b.y)?(b=this.renderer.cuboidPath(b),this.front.attr({zIndex:b[3]}).animate({d:b[0]},c,a),this.top.attr({zIndex:b[4]}).animate({d:b[1]}, | ||
c,a),this.side.attr({zIndex:b[5]}).animate({d:b[2]},c,a),this.attr({zIndex:-b[6]})):b.opacity?(this.front.animate(b,c,a),this.top.animate(b,c,a),this.side.animate(b,c,a)):B.prototype.animate.call(this,b,c,a);return this};c.destroy=function(){this.front.destroy();this.top.destroy();this.side.destroy();return h.call(this)};c.attr({zIndex:-b[6]});return c};H.prototype.cuboidPath=function(b){function c(b){return q[b]}var a=b.x,h=b.y,d=b.z,e=b.height,D=b.width,f=b.depth,q=[{x:a,y:h,z:d},{x:a+D,y:h,z:d}, | ||
{x:a+D,y:h+e,z:d},{x:a,y:h+e,z:d},{x:a,y:h+e,z:d+f},{x:a+D,y:h+e,z:d+f},{x:a+D,y:h,z:d+f},{x:a,y:h,z:d+f}],q=z(q,g[this.chartIndex],b.insidePlotArea),d=function(b,a){var h=[];b=w(b,c);a=w(a,c);0>r(b)?h=b:0>r(a)&&(h=a);return h};b=d([3,2,1,0],[7,6,5,4]);a=[4,5,2,3];h=d([1,6,7,0],a);d=d([1,2,5,6],[0,7,4,3]);return[this.toLinePath(b,!0),this.toLinePath(h,!0),this.toLinePath(d,!0),k(b),k(h),k(d),9E9*k(w(a,c))]};a.SVGRenderer.prototype.arc3d=function(a){function d(b){var a=!1,c={},d;for(d in b)-1!==h(d, | ||
p)&&(c[d]=b[d],delete b[d],a=!0);return a?c:!1}var l=this.g(),x=l.renderer,p="x y r innerR start end".split(" ");a=y(a);a.alpha*=e;a.beta*=e;l.top=x.path();l.side1=x.path();l.side2=x.path();l.inn=x.path();l.out=x.path();l.onAdd=function(){var b=l.parentGroup,a=l.attr("class");l.top.add(l);c(["out","inn","side1","side2"],function(c){l[c].addClass(a+" highcharts-3d-side").add(b)})};l.setPaths=function(b){var a=l.renderer.arc3dPath(b),c=100*a.zTop;l.attribs=b;l.top.attr({d:a.top,zIndex:a.zTop});l.inn.attr({d:a.inn, | ||
zIndex:a.zInn});l.out.attr({d:a.out,zIndex:a.zOut});l.side1.attr({d:a.side1,zIndex:a.zSide1});l.side2.attr({d:a.side2,zIndex:a.zSide2});l.zIndex=c;l.attr({zIndex:c});b.center&&(l.top.setRadialReference(b.center),delete b.center)};l.setPaths(a);l.fillSetter=function(b){var a=q(b).brighten(-.1).get();this.fill=b;this.side1.attr({fill:a});this.side2.attr({fill:a});this.inn.attr({fill:a});this.out.attr({fill:a});this.top.attr({fill:b});return this};c(["opacity","translateX","translateY","visibility"], | ||
function(b){l[b+"Setter"]=function(b,a){l[a]=b;c(["out","inn","side1","side2","top"],function(c){l[c].attr(a,b)})}});C(l,"attr",function(a,c){var h;"object"===typeof c&&(h=d(c))&&(b(l.attribs,h),l.setPaths(l.attribs));return a.apply(this,[].slice.call(arguments,1))});C(l,"animate",function(b,a,c,h){var l,e=this.attribs,q;delete a.center;delete a.z;delete a.depth;delete a.alpha;delete a.beta;q=f(G(c,this.renderer.globalAnimation));q.duration&&(a=y(a),l=d(a),a.dummy=1,l&&(q.step=function(b,a){function c(b){return e[b]+ | ||
(G(l[b],e[b])-e[b])*a.pos}"dummy"===a.prop&&a.elem.setPaths(y(e,{x:c("x"),y:c("y"),r:c("r"),innerR:c("innerR"),start:c("start"),end:c("end")}))}),c=q);return b.call(this,a,c,h)});l.destroy=function(){this.top.destroy();this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();B.prototype.destroy.call(this)};l.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};l.show=function(){this.top.show();this.out.show();this.inn.show();this.side1.show(); | ||
this.side2.show()};return l};H.prototype.arc3dPath=function(b){function a(b){b%=2*Math.PI;b>Math.PI&&(b=2*Math.PI-b);return b}var c=b.x,h=b.y,d=b.start,e=b.end-.00001,f=b.r,q=b.innerR,w=b.depth,g=b.alpha,k=b.beta,y=Math.cos(d),r=Math.sin(d);b=Math.cos(e);var z=Math.sin(e),v=f*Math.cos(k),f=f*Math.cos(g),t=q*Math.cos(k),C=q*Math.cos(g),q=w*Math.sin(k),A=w*Math.sin(g),w=["M",c+v*y,h+f*r],w=w.concat(n(c,h,v,f,d,e,0,0)),w=w.concat(["L",c+t*b,h+C*z]),w=w.concat(n(c,h,t,C,e,d,0,0)),w=w.concat(["Z"]),G= | ||
0<k?Math.PI/2:0,k=0<g?0:Math.PI/2,G=d>-G?d:e>-G?-G:d,E=e<u-k?e:d<u-k?u-k:e,B=2*u-k,g=["M",c+v*m(G),h+f*p(G)],g=g.concat(n(c,h,v,f,G,E,0,0));e>B&&d<B?(g=g.concat(["L",c+v*m(E)+q,h+f*p(E)+A]),g=g.concat(n(c,h,v,f,E,B,q,A)),g=g.concat(["L",c+v*m(B),h+f*p(B)]),g=g.concat(n(c,h,v,f,B,e,0,0)),g=g.concat(["L",c+v*m(e)+q,h+f*p(e)+A]),g=g.concat(n(c,h,v,f,e,B,q,A)),g=g.concat(["L",c+v*m(B),h+f*p(B)]),g=g.concat(n(c,h,v,f,B,E,0,0))):e>u-k&&d<u-k&&(g=g.concat(["L",c+v*Math.cos(E)+q,h+f*Math.sin(E)+A]),g=g.concat(n(c, | ||
h,v,f,E,e,q,A)),g=g.concat(["L",c+v*Math.cos(e),h+f*Math.sin(e)]),g=g.concat(n(c,h,v,f,e,E,0,0)));g=g.concat(["L",c+v*Math.cos(E)+q,h+f*Math.sin(E)+A]);g=g.concat(n(c,h,v,f,E,G,q,A));g=g.concat(["Z"]);k=["M",c+t*y,h+C*r];k=k.concat(n(c,h,t,C,d,e,0,0));k=k.concat(["L",c+t*Math.cos(e)+q,h+C*Math.sin(e)+A]);k=k.concat(n(c,h,t,C,e,d,q,A));k=k.concat(["Z"]);y=["M",c+v*y,h+f*r,"L",c+v*y+q,h+f*r+A,"L",c+t*y+q,h+C*r+A,"L",c+t*y,h+C*r,"Z"];c=["M",c+v*b,h+f*z,"L",c+v*b+q,h+f*z+A,"L",c+t*b+q,h+C*z+A,"L",c+t* | ||
b,h+C*z,"Z"];z=Math.atan2(A,-q);h=Math.abs(e+z);b=Math.abs(d+z);d=Math.abs((d+e)/2+z);h=a(h);b=a(b);d=a(d);d*=1E5;e=1E5*b;h*=1E5;return{top:w,zTop:1E5*Math.PI+1,out:g,zOut:Math.max(d,e,h),inn:k,zInn:Math.max(d,e,h),side1:y,zSide1:.99*h,side2:c,zSide2:.99*e}}})(F);(function(a){function r(a,d){var e=a.plotLeft,c=a.plotWidth+e,b=a.plotTop,h=a.plotHeight+b,f=e+a.plotWidth/2,g=b+a.plotHeight/2,q=Number.MAX_VALUE,k=-Number.MAX_VALUE,p=Number.MAX_VALUE,m=-Number.MAX_VALUE,r,t=1;r=[{x:e,y:b,z:0},{x:e,y:b, | ||
z:d}];n([0,1],function(b){r.push({x:c,y:r[b].y,z:r[b].z})});n([0,1,2,3],function(b){r.push({x:r[b].x,y:h,z:r[b].z})});r=u(r,a,!1);n(r,function(b){q=Math.min(q,b.x);k=Math.max(k,b.x);p=Math.min(p,b.y);m=Math.max(m,b.y)});e>q&&(t=Math.min(t,1-Math.abs((e+f)/(q+f))%1));c<k&&(t=Math.min(t,(c-f)/(k-f)));b>p&&(t=0>p?Math.min(t,(b+g)/(-p+b+g)):Math.min(t,1-(b+g)/(p+g)%1));h<m&&(t=Math.min(t,Math.abs((h-g)/(m-g))));return t}var k=a.Chart,n=a.each,m=a.merge,u=a.perspective,p=a.pick,f=a.wrap;k.prototype.is3d= | ||
function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled};k.prototype.propsRequireDirtyBox.push("chart.options3d");k.prototype.propsRequireUpdateSeries.push("chart.options3d");a.wrap(a.Chart.prototype,"isInsidePlot",function(a){return this.is3d()||a.apply(this,[].slice.call(arguments,1))});var g=a.getOptions();m(!0,g,{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,frame:{bottom:{size:1},side:{size:1},back:{size:1}}}}});f(k.prototype, | ||
"setClassName",function(a){a.apply(this,[].slice.call(arguments,1));this.is3d()&&(this.container.className+=" highcharts-3d-chart")});a.wrap(a.Chart.prototype,"setChartSize",function(a){var d=this.options.chart.options3d;a.apply(this,[].slice.call(arguments,1));if(this.is3d()){var e=this.inverted,c=this.clipBox,b=this.margin;c[e?"y":"x"]=-(b[3]||0);c[e?"x":"y"]=-(b[0]||0);c[e?"height":"width"]=this.chartWidth+(b[3]||0)+(b[1]||0);c[e?"width":"height"]=this.chartHeight+(b[0]||0)+(b[2]||0);this.scale3d= | ||
1;!0===d.fitToPlot&&(this.scale3d=r(this,d.depth))}});f(k.prototype,"redraw",function(a){this.is3d()&&(this.isDirtyBox=!0);a.apply(this,[].slice.call(arguments,1))});f(k.prototype,"renderSeries",function(a){var d=this.series.length;if(this.is3d())for(;d--;)a=this.series[d],a.translate(),a.render();else a.call(this)});k.prototype.retrieveStacks=function(a){var d=this.series,e={},c,b=1;n(this.series,function(h){c=p(h.options.stack,a?0:d.length-1-h.index);e[c]?e[c].series.push(h):(e[c]={series:[h],position:b}, | ||
b++)});e.totalStacks=b+1;return e}})(F);(function(a){var r,k=a.Axis,n=a.Chart,m=a.each,u=a.extend,p=a.merge,f=a.perspective,g=a.pick,q=a.splat,d=a.Tick,e=a.wrap;e(k.prototype,"setOptions",function(a,b){a.call(this,b);this.chart.is3d()&&(a=this.options,a.tickWidth=g(a.tickWidth,0),a.gridLineWidth=g(a.gridLineWidth,1))});e(k.prototype,"render",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var b=this.chart,c=b.renderer,d=b.options.chart.options3d,e=d.frame,f=e.bottom,g=e.back, | ||
e=e.side,k=d.depth,q=this.height,p=this.width,m=this.left,n=this.top;this.isZAxis||(this.horiz?(g={x:m,y:n+(b.xAxis[0].opposite?-f.size:q),z:0,width:p,height:f.size,depth:k,insidePlotArea:!1},this.bottomFrame?this.bottomFrame.animate(g):(this.bottomFrame=c.cuboid(g).attr({"class":"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:b.yAxis[0].reversed&&0<d.alpha?4:-1}).add(),this.bottomFrame.attr({fill:f.color||"none",stroke:f.color||"none"}))):(d={x:m+(b.yAxis[0].opposite?0:-e.size),y:n+(b.xAxis[0].opposite? | ||
-f.size:0),z:k,width:p+e.size,height:q+f.size,depth:g.size,insidePlotArea:!1},this.backFrame?this.backFrame.animate(d):(this.backFrame=c.cuboid(d).attr({"class":"highcharts-3d-frame highcharts-3d-frame-back",zIndex:-3}).add(),this.backFrame.attr({fill:g.color||"none",stroke:g.color||"none"})),b={x:m+(b.yAxis[0].opposite?p:-e.size),y:n+(b.xAxis[0].opposite?-f.size:0),z:0,width:e.size,height:q+f.size,depth:k,insidePlotArea:!1},this.sideFrame?this.sideFrame.animate(b):(this.sideFrame=c.cuboid(b).attr({"class":"highcharts-3d-frame highcharts-3d-frame-side", | ||
zIndex:-2}).add(),this.sideFrame.attr({fill:e.color||"none",stroke:e.color||"none"}))))}});e(k.prototype,"getPlotLinePath",function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||null===b)return b;var c=this.chart,d=c.options.chart.options3d,c=this.isZAxis?c.plotWidth:d.depth,d=this.opposite;this.horiz&&(d=!d);b=[this.swapZ({x:b[1],y:b[2],z:d?c:0}),this.swapZ({x:b[1],y:b[2],z:c}),this.swapZ({x:b[4],y:b[5],z:c}),this.swapZ({x:b[4],y:b[5],z:d?0:c})];b=f(b,this.chart,!1);return b= | ||
this.chart.renderer.toLinePath(b,!1)});e(k.prototype,"getLinePath",function(a){return this.chart.is3d()?[]:a.apply(this,[].slice.call(arguments,1))});e(k.prototype,"getPlotBandPath",function(a){if(!this.chart.is3d())return a.apply(this,[].slice.call(arguments,1));var b=arguments,c=b[1],b=this.getPlotLinePath(b[2]);(c=this.getPlotLinePath(c))&&b?c.push("L",b[10],b[11],"L",b[7],b[8],"L",b[4],b[5],"L",b[1],b[2]):c=null;return c});e(d.prototype,"getMarkPath",function(a){var b=a.apply(this,[].slice.call(arguments, | ||
1));if(!this.axis.chart.is3d())return b;b=[this.axis.swapZ({x:b[1],y:b[2],z:0}),this.axis.swapZ({x:b[4],y:b[5],z:0})];b=f(b,this.axis.chart,!1);return b=["M",b[0].x,b[0].y,"L",b[1].x,b[1].y]});e(d.prototype,"getLabelPosition",function(a){var b=a.apply(this,[].slice.call(arguments,1));this.axis.chart.is3d()&&(b=f([this.axis.swapZ({x:b.x,y:b.y,z:0})],this.axis.chart,!1)[0]);return b});a.wrap(k.prototype,"getTitlePosition",function(a){var b=this.chart.is3d(),c,d;b&&(d=this.axisTitleMargin,this.axisTitleMargin= | ||
0);c=a.apply(this,[].slice.call(arguments,1));b&&(c=f([this.swapZ({x:c.x,y:c.y,z:0})],this.chart,!1)[0],c[this.horiz?"y":"x"]+=(this.horiz?1:-1)*(this.opposite?-1:1)*d,this.axisTitleMargin=d);return c});e(k.prototype,"drawCrosshair",function(a){var b=arguments;this.chart.is3d()&&b[2]&&(b[2]={plotX:b[2].plotXold||b[2].plotX,plotY:b[2].plotYold||b[2].plotY});a.apply(this,[].slice.call(b,1))});e(k.prototype,"destroy",function(a){m(["backFrame","bottomFrame","sideFrame"],function(b){this[b]&&(this[b]= | ||
this[b].destroy())},this);a.apply(this,[].slice.call(arguments,1))});k.prototype.swapZ=function(a,b){if(this.isZAxis){b=b?0:this.chart.plotLeft;var c=this.chart;return{x:b+(c.yAxis[0].opposite?a.z:c.xAxis[0].width-a.z),y:a.y,z:a.x-b}}return a};r=a.ZAxis=function(){this.isZAxis=!0;this.init.apply(this,arguments)};u(r.prototype,k.prototype);u(r.prototype,{setOptions:function(a){a=p({offset:0,lineWidth:0},a);k.prototype.setOptions.call(this,a);this.coll="zAxis"},setAxisSize:function(){k.prototype.setAxisSize.call(this); | ||
this.width=this.len=this.chart.options.chart.options3d.depth;this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null;a.buildStacks&&a.buildStacks();m(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries)a.hasVisibleSeries=!0,c=c.zData,c.length&&(a.dataMin=Math.min(g(a.dataMin,c[0]),Math.min.apply(null,c)),a.dataMax=Math.max(g(a.dataMax,c[0]),Math.max.apply(null, | ||
c)))})}});e(n.prototype,"getAxes",function(a){var b=this,c=this.options,c=c.zAxis=q(c.zAxis||{});a.call(this);b.is3d()&&(this.zAxis=[],m(c,function(a,c){a.index=c;a.isX=!0;(new r(b,a)).setScale()}))})})(F);(function(a){function r(a){var d=a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&(d.stroke=this.options.edgeColor||d.fill,d["stroke-width"]=u(this.options.edgeWidth,1));return d}function k(a){if(this.chart.is3d()){var d=this.chart.options.plotOptions.column.grouping;void 0===d||d||void 0=== | ||
this.group.zIndex||this.zIndexSet||(this.group.attr({zIndex:10*this.group.zIndex}),this.zIndexSet=!0)}a.apply(this,[].slice.call(arguments,1))}var n=a.each,m=a.perspective,u=a.pick,p=a.Series,f=a.seriesTypes,g=a.svg;a=a.wrap;a(f.column.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var d=this.chart,e=this.options,c=e.depth||25,b=(e.stacking?e.stack||0:this._i)*(c+(e.groupZPadding||1));!1!==e.grouping&&(b=0);b+=e.groupZPadding||1;n(this.data,function(a){if(null!== | ||
a.y){var e=a.shapeArgs,h=a.tooltipPos;a.shapeType="cuboid";e.z=b;e.depth=c;e.insidePlotArea=!0;h=m([{x:h[0],y:h[1],z:b}],d,!0)[0];a.tooltipPos=[h.x,h.y]}});this.z=b}});a(f.column.prototype,"animate",function(a){if(this.chart.is3d()){var d=arguments[1],e=this.yAxis,c=this,b=this.yAxis.reversed;g&&(d?n(c.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,b||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}): | ||
(n(c.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,c.options.animation))}),this.drawDataLabels(),c.animate=null))}else a.apply(this,[].slice.call(arguments,1))});a(f.column.prototype,"init",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var d=this.options,e=d.grouping,c=d.stacking,b=u(this.yAxis.options.reversedStacks,!0),f=0;if(void 0===e||e){e=this.chart.retrieveStacks(c);f=d.stack||0;for(c=0;c< | ||
e[f].series.length&&e[f].series[c]!==this;c++);f=10*(e.totalStacks-e[f].position)+(b?c:-c);this.xAxis.reversed||(f=10*e.totalStacks-f)}d.zIndex=f}});a(f.column.prototype,"pointAttribs",r);f.columnrange&&a(f.columnrange.prototype,"pointAttribs",r);a(p.prototype,"alignDataLabel",function(a){if(this.chart.is3d()&&("column"===this.type||"columnrange"===this.type)){var d=arguments[4],e={x:d.x,y:d.y,z:this.z},e=m([e],this.chart,!0)[0];d.x=e.x;d.y=e.y}a.apply(this,[].slice.call(arguments,1))});f.columnrange&& | ||
a(f.columnrange.prototype,"drawPoints",k);a(f.column.prototype,"drawPoints",k)})(F);(function(a){var r=a.deg2rad,k=a.each,n=a.pick,m=a.seriesTypes,u=a.svg;a=a.wrap;a(m.pie.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var f=this,g=f.options,p=g.depth||0,d=f.chart.options.chart.options3d,e=d.alpha,c=d.beta,b=g.stacking?(g.stack||0)*p:f._i*p,b=b+p/2;!1!==g.grouping&&(b=0);k(f.data,function(a){var d=a.shapeArgs;a.shapeType="arc3d";d.z=b;d.depth=.75* | ||
p;d.alpha=e;d.beta=c;d.center=f.center;d=(d.end+d.start)/2;a.slicedTranslation={translateX:Math.round(Math.cos(d)*g.slicedOffset*Math.cos(e*r)),translateY:Math.round(Math.sin(d)*g.slicedOffset*Math.cos(e*r))}})}});a(m.pie.prototype.pointClass.prototype,"haloPath",function(a){var f=arguments;return this.series.chart.is3d()?[]:a.call(this,f[1])});a(m.pie.prototype,"pointAttribs",function(a,f,g){a=a.call(this,f,g);g=this.options;this.chart.is3d()&&(a.stroke=g.edgeColor||f.color||this.color,a["stroke-width"]= | ||
n(g.edgeWidth,1));return a});a(m.pie.prototype,"drawPoints",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&k(this.points,function(a){var f=a.graphic;if(f)f[a.y&&a.visible?"show":"hide"]()})});a(m.pie.prototype,"drawDataLabels",function(a){if(this.chart.is3d()){var f=this.chart.options.chart.options3d;k(this.data,function(a){var g=a.shapeArgs,d=g.r,e=(g.start+g.end)/2,c=a.labelPos,b=-d*(1-Math.cos((g.alpha||f.alpha)*r))*Math.sin(e),h=d*(Math.cos((g.beta||f.beta)*r)-1)*Math.cos(e); | ||
k([0,2,4],function(a){c[a]+=h;c[a+1]+=b})})}a.apply(this,[].slice.call(arguments,1))});a(m.pie.prototype,"addPoint",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});a(m.pie.prototype,"animate",function(a){if(this.chart.is3d()){var f=arguments[1],g=this.options.animation,k=this.center,d=this.group,e=this.markerGroup;u&&(!0===g&&(g={}),f?(d.oldtranslateX=d.translateX,d.oldtranslateY=d.translateY,f={translateX:k[0],translateY:k[1],scaleX:.001, | ||
scaleY:.001},d.attr(f),e&&(e.attrSetters=d.attrSetters,e.attr(f))):(f={translateX:d.oldtranslateX,translateY:d.oldtranslateY,scaleX:1,scaleY:1},d.animate(f,g),e&&e.animate(f,g),this.animate=null))}else a.apply(this,[].slice.call(arguments,1))})})(F);(function(a){var r=a.perspective,k=a.pick,n=a.Point,m=a.seriesTypes,u=a.wrap;u(m.scatter.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var f=this.chart,g=k(this.zAxis,f.options.zAxis[0]),m=[],d,e,c;for(c= | ||
0;c<this.data.length;c++)d=this.data[c],e=g.isLog&&g.val2lin?g.val2lin(d.z):d.z,d.plotZ=g.translate(e),d.isInside=d.isInside?e>=g.min&&e<=g.max:!1,m.push({x:d.plotX,y:d.plotY,z:d.plotZ});f=r(m,f,!0);for(c=0;c<this.data.length;c++)d=this.data[c],g=f[c],d.plotXold=d.plotX,d.plotYold=d.plotY,d.plotZold=d.plotZ,d.plotX=g.x,d.plotY=g.y,d.plotZ=g.z}});u(m.scatter.prototype,"init",function(a,f,g){f.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"],this.pointArrayMap=["x","y","z"],this.parallelArrays=["x", | ||
"y","z"],this.directTouch=!0);a=a.apply(this,[f,g]);this.chart.is3d()&&(this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e":"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e");return a});u(m.scatter.prototype,"pointAttribs",function(k,f){var g=k.apply(this, | ||
[].slice.call(arguments,1));this.chart.is3d()&&f&&(g.zIndex=a.pointCameraDistance(f,this.chart));return g});u(n.prototype,"applyOptions",function(a){var f=a.apply(this,[].slice.call(arguments,1));this.series.chart.is3d()&&void 0===f.z&&(f.z=0);return f})})(F);(function(a){var r=a.Axis,k=a.SVGRenderer,n=a.VMLRenderer;n&&(a.setOptions({animate:!1}),n.prototype.cuboid=k.prototype.cuboid,n.prototype.cuboidPath=k.prototype.cuboidPath,n.prototype.toLinePath=k.prototype.toLinePath,n.prototype.createElement3D= | ||
k.prototype.createElement3D,n.prototype.arc3d=function(a){a=k.prototype.arc3d.call(this,a);a.css({zIndex:a.zIndex});return a},a.VMLRenderer.prototype.arc3dPath=a.SVGRenderer.prototype.arc3dPath,a.wrap(r.prototype,"render",function(a){a.apply(this,[].slice.call(arguments,1));this.sideFrame&&(this.sideFrame.css({zIndex:0}),this.sideFrame.front.attr({fill:this.sideFrame.color}));this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color}));this.backFrame&& | ||
(this.backFrame.css({zIndex:0}),this.backFrame.front.attr({fill:this.backFrame.color}))}))})(F)}); | ||
this.top.attr({opacity:b});this.side.attr({opacity:b});return this};c.attr=function(b,c){"string"===typeof b&&void 0!==c&&(b={},b[b]=c);if(b.shapeArgs||d(b.x))b=this.renderer.cuboidPath(b.shapeArgs||b),this.front.attr({d:b[0],zIndex:b[3]}),this.top.attr({d:b[1],zIndex:b[4]}),this.side.attr({d:b[2],zIndex:b[5]});else return a.SVGElement.prototype.attr.call(this,b);return this};c.animate=function(b,c,a){d(b.x)&&d(b.y)?(b=this.renderer.cuboidPath(b),this.front.attr({zIndex:b[3]}).animate({d:b[0]},c, | ||
a),this.top.attr({zIndex:b[4]}).animate({d:b[1]},c,a),this.side.attr({zIndex:b[5]}).animate({d:b[2]},c,a),this.attr({zIndex:-b[6]})):b.opacity?(this.front.animate(b,c,a),this.top.animate(b,c,a),this.side.animate(b,c,a)):B.prototype.animate.call(this,b,c,a);return this};c.destroy=function(){this.front.destroy();this.top.destroy();this.side.destroy();return h.call(this)};c.attr({zIndex:-b[6]});return c};H.prototype.cuboidPath=function(b){function c(b){return q[b]}var a=b.x,h=b.y,d=b.z,e=b.height,D= | ||
b.width,f=b.depth,q=[{x:a,y:h,z:d},{x:a+D,y:h,z:d},{x:a+D,y:h+e,z:d},{x:a,y:h+e,z:d},{x:a,y:h+e,z:d+f},{x:a+D,y:h+e,z:d+f},{x:a+D,y:h,z:d+f},{x:a,y:h,z:d+f}],q=z(q,g[this.chartIndex],b.insidePlotArea),d=function(b,a){var h=[];b=w(b,c);a=w(a,c);0>r(b)?h=b:0>r(a)&&(h=a);return h};b=d([3,2,1,0],[7,6,5,4]);a=[4,5,2,3];h=d([1,6,7,0],a);d=d([1,2,5,6],[0,7,4,3]);return[this.toLinePath(b,!0),this.toLinePath(h,!0),this.toLinePath(d,!0),k(b),k(h),k(d),9E9*k(w(a,c))]};a.SVGRenderer.prototype.arc3d=function(a){function d(b){var a= | ||
!1,c={},d;for(d in b)-1!==h(d,p)&&(c[d]=b[d],delete b[d],a=!0);return a?c:!1}var l=this.g(),x=l.renderer,p="x y r innerR start end".split(" ");a=y(a);a.alpha*=e;a.beta*=e;l.top=x.path();l.side1=x.path();l.side2=x.path();l.inn=x.path();l.out=x.path();l.onAdd=function(){var b=l.parentGroup,a=l.attr("class");l.top.add(l);c(["out","inn","side1","side2"],function(c){l[c].addClass(a+" highcharts-3d-side").add(b)})};l.setPaths=function(b){var a=l.renderer.arc3dPath(b),c=100*a.zTop;l.attribs=b;l.top.attr({d:a.top, | ||
zIndex:a.zTop});l.inn.attr({d:a.inn,zIndex:a.zInn});l.out.attr({d:a.out,zIndex:a.zOut});l.side1.attr({d:a.side1,zIndex:a.zSide1});l.side2.attr({d:a.side2,zIndex:a.zSide2});l.zIndex=c;l.attr({zIndex:c});b.center&&(l.top.setRadialReference(b.center),delete b.center)};l.setPaths(a);l.fillSetter=function(b){var a=q(b).brighten(-.1).get();this.fill=b;this.side1.attr({fill:a});this.side2.attr({fill:a});this.inn.attr({fill:a});this.out.attr({fill:a});this.top.attr({fill:b});return this};c(["opacity","translateX", | ||
"translateY","visibility"],function(b){l[b+"Setter"]=function(b,a){l[a]=b;c(["out","inn","side1","side2","top"],function(c){l[c].attr(a,b)})}});C(l,"attr",function(a,c){var h;"object"===typeof c&&(h=d(c))&&(b(l.attribs,h),l.setPaths(l.attribs));return a.apply(this,[].slice.call(arguments,1))});C(l,"animate",function(b,a,c,h){var l,e=this.attribs,q;delete a.center;delete a.z;delete a.depth;delete a.alpha;delete a.beta;q=f(G(c,this.renderer.globalAnimation));q.duration&&(a=y(a),l=d(a),a.dummy=1,l&& | ||
(q.step=function(b,a){function c(b){return e[b]+(G(l[b],e[b])-e[b])*a.pos}"dummy"===a.prop&&a.elem.setPaths(y(e,{x:c("x"),y:c("y"),r:c("r"),innerR:c("innerR"),start:c("start"),end:c("end")}))}),c=q);return b.call(this,a,c,h)});l.destroy=function(){this.top.destroy();this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();B.prototype.destroy.call(this)};l.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};l.show=function(){this.top.show(); | ||
this.out.show();this.inn.show();this.side1.show();this.side2.show()};return l};H.prototype.arc3dPath=function(b){function a(b){b%=2*Math.PI;b>Math.PI&&(b=2*Math.PI-b);return b}var c=b.x,h=b.y,d=b.start,e=b.end-.00001,f=b.r,q=b.innerR,w=b.depth,g=b.alpha,k=b.beta,y=Math.cos(d),r=Math.sin(d);b=Math.cos(e);var z=Math.sin(e),v=f*Math.cos(k),f=f*Math.cos(g),t=q*Math.cos(k),C=q*Math.cos(g),q=w*Math.sin(k),A=w*Math.sin(g),w=["M",c+v*y,h+f*r],w=w.concat(n(c,h,v,f,d,e,0,0)),w=w.concat(["L",c+t*b,h+C*z]),w= | ||
w.concat(n(c,h,t,C,e,d,0,0)),w=w.concat(["Z"]),G=0<k?Math.PI/2:0,k=0<g?0:Math.PI/2,G=d>-G?d:e>-G?-G:d,E=e<u-k?e:d<u-k?u-k:e,B=2*u-k,g=["M",c+v*m(G),h+f*p(G)],g=g.concat(n(c,h,v,f,G,E,0,0));e>B&&d<B?(g=g.concat(["L",c+v*m(E)+q,h+f*p(E)+A]),g=g.concat(n(c,h,v,f,E,B,q,A)),g=g.concat(["L",c+v*m(B),h+f*p(B)]),g=g.concat(n(c,h,v,f,B,e,0,0)),g=g.concat(["L",c+v*m(e)+q,h+f*p(e)+A]),g=g.concat(n(c,h,v,f,e,B,q,A)),g=g.concat(["L",c+v*m(B),h+f*p(B)]),g=g.concat(n(c,h,v,f,B,E,0,0))):e>u-k&&d<u-k&&(g=g.concat(["L", | ||
c+v*Math.cos(E)+q,h+f*Math.sin(E)+A]),g=g.concat(n(c,h,v,f,E,e,q,A)),g=g.concat(["L",c+v*Math.cos(e),h+f*Math.sin(e)]),g=g.concat(n(c,h,v,f,e,E,0,0)));g=g.concat(["L",c+v*Math.cos(E)+q,h+f*Math.sin(E)+A]);g=g.concat(n(c,h,v,f,E,G,q,A));g=g.concat(["Z"]);k=["M",c+t*y,h+C*r];k=k.concat(n(c,h,t,C,d,e,0,0));k=k.concat(["L",c+t*Math.cos(e)+q,h+C*Math.sin(e)+A]);k=k.concat(n(c,h,t,C,e,d,q,A));k=k.concat(["Z"]);y=["M",c+v*y,h+f*r,"L",c+v*y+q,h+f*r+A,"L",c+t*y+q,h+C*r+A,"L",c+t*y,h+C*r,"Z"];c=["M",c+v*b, | ||
h+f*z,"L",c+v*b+q,h+f*z+A,"L",c+t*b+q,h+C*z+A,"L",c+t*b,h+C*z,"Z"];z=Math.atan2(A,-q);h=Math.abs(e+z);b=Math.abs(d+z);d=Math.abs((d+e)/2+z);h=a(h);b=a(b);d=a(d);d*=1E5;e=1E5*b;h*=1E5;return{top:w,zTop:1E5*Math.PI+1,out:g,zOut:Math.max(d,e,h),inn:k,zInn:Math.max(d,e,h),side1:y,zSide1:.99*h,side2:c,zSide2:.99*e}}})(F);(function(a){function r(a,d){var e=a.plotLeft,c=a.plotWidth+e,b=a.plotTop,h=a.plotHeight+b,f=e+a.plotWidth/2,g=b+a.plotHeight/2,q=Number.MAX_VALUE,k=-Number.MAX_VALUE,p=Number.MAX_VALUE, | ||
m=-Number.MAX_VALUE,r,t=1;r=[{x:e,y:b,z:0},{x:e,y:b,z:d}];n([0,1],function(b){r.push({x:c,y:r[b].y,z:r[b].z})});n([0,1,2,3],function(b){r.push({x:r[b].x,y:h,z:r[b].z})});r=u(r,a,!1);n(r,function(b){q=Math.min(q,b.x);k=Math.max(k,b.x);p=Math.min(p,b.y);m=Math.max(m,b.y)});e>q&&(t=Math.min(t,1-Math.abs((e+f)/(q+f))%1));c<k&&(t=Math.min(t,(c-f)/(k-f)));b>p&&(t=0>p?Math.min(t,(b+g)/(-p+b+g)):Math.min(t,1-(b+g)/(p+g)%1));h<m&&(t=Math.min(t,Math.abs((h-g)/(m-g))));return t}var k=a.Chart,n=a.each,m=a.merge, | ||
u=a.perspective,p=a.pick,f=a.wrap;k.prototype.is3d=function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled};k.prototype.propsRequireDirtyBox.push("chart.options3d");k.prototype.propsRequireUpdateSeries.push("chart.options3d");a.wrap(a.Chart.prototype,"isInsidePlot",function(a){return this.is3d()||a.apply(this,[].slice.call(arguments,1))});var g=a.getOptions();m(!0,g,{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,frame:{bottom:{size:1}, | ||
side:{size:1},back:{size:1}}}}});f(k.prototype,"setClassName",function(a){a.apply(this,[].slice.call(arguments,1));this.is3d()&&(this.container.className+=" highcharts-3d-chart")});a.wrap(a.Chart.prototype,"setChartSize",function(a){var d=this.options.chart.options3d;a.apply(this,[].slice.call(arguments,1));if(this.is3d()){var e=this.inverted,c=this.clipBox,b=this.margin;c[e?"y":"x"]=-(b[3]||0);c[e?"x":"y"]=-(b[0]||0);c[e?"height":"width"]=this.chartWidth+(b[3]||0)+(b[1]||0);c[e?"width":"height"]= | ||
this.chartHeight+(b[0]||0)+(b[2]||0);this.scale3d=1;!0===d.fitToPlot&&(this.scale3d=r(this,d.depth))}});f(k.prototype,"redraw",function(a){this.is3d()&&(this.isDirtyBox=!0);a.apply(this,[].slice.call(arguments,1))});f(k.prototype,"renderSeries",function(a){var d=this.series.length;if(this.is3d())for(;d--;)a=this.series[d],a.translate(),a.render();else a.call(this)});k.prototype.retrieveStacks=function(a){var d=this.series,e={},c,b=1;n(this.series,function(h){c=p(h.options.stack,a?0:d.length-1-h.index); | ||
e[c]?e[c].series.push(h):(e[c]={series:[h],position:b},b++)});e.totalStacks=b+1;return e}})(F);(function(a){var r,k=a.Axis,n=a.Chart,m=a.each,u=a.extend,p=a.merge,f=a.perspective,g=a.pick,q=a.splat,d=a.Tick,e=a.wrap;e(k.prototype,"setOptions",function(a,b){a.call(this,b);this.chart.is3d()&&"colorAxis"!==this.coll&&(a=this.options,a.tickWidth=g(a.tickWidth,0),a.gridLineWidth=g(a.gridLineWidth,1))});e(k.prototype,"render",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()&&"colorAxis"!== | ||
this.coll){var b=this.chart,c=b.renderer,d=b.options.chart.options3d,e=d.frame,f=e.bottom,g=e.back,e=e.side,k=d.depth,q=this.height,p=this.width,m=this.left,n=this.top;this.isZAxis||(this.horiz?(g={x:m,y:n+(b.xAxis[0].opposite?-f.size:q),z:0,width:p,height:f.size,depth:k,insidePlotArea:!1},this.bottomFrame?this.bottomFrame.animate(g):(this.bottomFrame=c.cuboid(g).attr({"class":"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:b.yAxis[0].reversed&&0<d.alpha?4:-1}).add(),this.bottomFrame.attr({fill:f.color|| | ||
"none",stroke:f.color||"none"}))):(d={x:m+(b.yAxis[0].opposite?0:-e.size),y:n+(b.xAxis[0].opposite?-f.size:0),z:k,width:p+e.size,height:q+f.size,depth:g.size,insidePlotArea:!1},this.backFrame?this.backFrame.animate(d):(this.backFrame=c.cuboid(d).attr({"class":"highcharts-3d-frame highcharts-3d-frame-back",zIndex:-3}).add(),this.backFrame.attr({fill:g.color||"none",stroke:g.color||"none"})),b={x:m+(b.yAxis[0].opposite?p:-e.size),y:n+(b.xAxis[0].opposite?-f.size:0),z:0,width:e.size,height:q+f.size, | ||
depth:k,insidePlotArea:!1},this.sideFrame?this.sideFrame.animate(b):(this.sideFrame=c.cuboid(b).attr({"class":"highcharts-3d-frame highcharts-3d-frame-side",zIndex:-2}).add(),this.sideFrame.attr({fill:e.color||"none",stroke:e.color||"none"}))))}});e(k.prototype,"getPlotLinePath",function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||"colorAxis"===this.coll||null===b)return b;var c=this.chart,d=c.options.chart.options3d,c=this.isZAxis?c.plotWidth:d.depth,d=this.opposite; | ||
this.horiz&&(d=!d);b=[this.swapZ({x:b[1],y:b[2],z:d?c:0}),this.swapZ({x:b[1],y:b[2],z:c}),this.swapZ({x:b[4],y:b[5],z:c}),this.swapZ({x:b[4],y:b[5],z:d?0:c})];b=f(b,this.chart,!1);return b=this.chart.renderer.toLinePath(b,!1)});e(k.prototype,"getLinePath",function(a){return this.chart.is3d()?[]:a.apply(this,[].slice.call(arguments,1))});e(k.prototype,"getPlotBandPath",function(a){if(!this.chart.is3d()||"colorAxis"===this.coll)return a.apply(this,[].slice.call(arguments,1));var b=arguments,c=b[1], | ||
b=this.getPlotLinePath(b[2]);(c=this.getPlotLinePath(c))&&b?c.push("L",b[10],b[11],"L",b[7],b[8],"L",b[4],b[5],"L",b[1],b[2]):c=null;return c});e(d.prototype,"getMarkPath",function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.axis.chart.is3d()||"colorAxis"===this.coll)return b;b=[this.axis.swapZ({x:b[1],y:b[2],z:0}),this.axis.swapZ({x:b[4],y:b[5],z:0})];b=f(b,this.axis.chart,!1);return b=["M",b[0].x,b[0].y,"L",b[1].x,b[1].y]});e(d.prototype,"getLabelPosition",function(a){var b=a.apply(this, | ||
[].slice.call(arguments,1));this.axis.chart.is3d()&&"colorAxis"!==this.coll&&(b=f([this.axis.swapZ({x:b.x,y:b.y,z:0})],this.axis.chart,!1)[0]);return b});a.wrap(k.prototype,"getTitlePosition",function(a){var b=this.chart.is3d()&&"colorAxis"!==this.coll,c,d;b&&(d=this.axisTitleMargin,this.axisTitleMargin=0);c=a.apply(this,[].slice.call(arguments,1));b&&(c=f([this.swapZ({x:c.x,y:c.y,z:0})],this.chart,!1)[0],c[this.horiz?"y":"x"]+=(this.horiz?1:-1)*(this.opposite?-1:1)*d,this.axisTitleMargin=d);return c}); | ||
e(k.prototype,"drawCrosshair",function(a){var b=arguments;this.chart.is3d()&&b[2]&&(b[2]={plotX:b[2].plotXold||b[2].plotX,plotY:b[2].plotYold||b[2].plotY});a.apply(this,[].slice.call(b,1))});e(k.prototype,"destroy",function(a){m(["backFrame","bottomFrame","sideFrame"],function(b){this[b]&&(this[b]=this[b].destroy())},this);a.apply(this,[].slice.call(arguments,1))});k.prototype.swapZ=function(a,b){if(this.isZAxis){b=b?0:this.chart.plotLeft;var c=this.chart;return{x:b+(c.yAxis[0].opposite?a.z:c.xAxis[0].width- | ||
a.z),y:a.y,z:a.x-b}}return a};r=a.ZAxis=function(){this.init.apply(this,arguments)};u(r.prototype,k.prototype);u(r.prototype,{isZAxis:!0,setOptions:function(a){a=p({offset:0,lineWidth:0},a);k.prototype.setOptions.call(this,a);this.coll="zAxis"},setAxisSize:function(){k.prototype.setAxisSize.call(this);this.width=this.len=this.chart.options.chart.options3d.depth;this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin= | ||
a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null;a.buildStacks&&a.buildStacks();m(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries)a.hasVisibleSeries=!0,c=c.zData,c.length&&(a.dataMin=Math.min(g(a.dataMin,c[0]),Math.min.apply(null,c)),a.dataMax=Math.max(g(a.dataMax,c[0]),Math.max.apply(null,c)))})}});e(n.prototype,"getAxes",function(a){var b=this,c=this.options,c=c.zAxis=q(c.zAxis||{});a.call(this);b.is3d()&&(this.zAxis=[],m(c,function(a,c){a.index=c;a.isX=!0;(new r(b,a)).setScale()}))})})(F); | ||
(function(a){function r(a){var d=a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&(d.stroke=this.options.edgeColor||d.fill,d["stroke-width"]=u(this.options.edgeWidth,1));return d}function k(a){if(this.chart.is3d()){var d=this.chart.options.plotOptions.column.grouping;void 0===d||d||void 0===this.group.zIndex||this.zIndexSet||(this.group.attr({zIndex:10*this.group.zIndex}),this.zIndexSet=!0)}a.apply(this,[].slice.call(arguments,1))}var n=a.each,m=a.perspective,u=a.pick,p=a.Series,f=a.seriesTypes, | ||
g=a.svg;a=a.wrap;a(f.column.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var d=this.chart,e=this.options,c=e.depth||25,b=(e.stacking?e.stack||0:this._i)*(c+(e.groupZPadding||1));!1!==e.grouping&&(b=0);b+=e.groupZPadding||1;n(this.data,function(a){if(null!==a.y){var e=a.shapeArgs,h=a.tooltipPos;a.shapeType="cuboid";e.z=b;e.depth=c;e.insidePlotArea=!0;h=m([{x:h[0],y:h[1],z:b}],d,!0)[0];a.tooltipPos=[h.x,h.y]}});this.z=b}});a(f.column.prototype,"animate", | ||
function(a){if(this.chart.is3d()){var d=arguments[1],e=this.yAxis,c=this,b=this.yAxis.reversed;g&&(d?n(c.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,b||(a.shapeArgs.y=a.stackY?a.plotY+e.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(n(c.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs,c.options.animation))}),this.drawDataLabels(),c.animate=null))}else a.apply(this, | ||
[].slice.call(arguments,1))});a(f.column.prototype,"init",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var d=this.options,e=d.grouping,c=d.stacking,b=u(this.yAxis.options.reversedStacks,!0),f=0;if(void 0===e||e){e=this.chart.retrieveStacks(c);f=d.stack||0;for(c=0;c<e[f].series.length&&e[f].series[c]!==this;c++);f=10*(e.totalStacks-e[f].position)+(b?c:-c);this.xAxis.reversed||(f=10*e.totalStacks-f)}d.zIndex=f}});a(f.column.prototype,"pointAttribs",r);f.columnrange&&a(f.columnrange.prototype, | ||
"pointAttribs",r);a(p.prototype,"alignDataLabel",function(a){if(this.chart.is3d()&&("column"===this.type||"columnrange"===this.type)){var d=arguments[4],e={x:d.x,y:d.y,z:this.z},e=m([e],this.chart,!0)[0];d.x=e.x;d.y=e.y}a.apply(this,[].slice.call(arguments,1))});f.columnrange&&a(f.columnrange.prototype,"drawPoints",k);a(f.column.prototype,"drawPoints",k)})(F);(function(a){var r=a.deg2rad,k=a.each,n=a.pick,m=a.seriesTypes,u=a.svg;a=a.wrap;a(m.pie.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments, | ||
1));if(this.chart.is3d()){var f=this,g=f.options,p=g.depth||0,d=f.chart.options.chart.options3d,e=d.alpha,c=d.beta,b=g.stacking?(g.stack||0)*p:f._i*p,b=b+p/2;!1!==g.grouping&&(b=0);k(f.data,function(a){var d=a.shapeArgs;a.shapeType="arc3d";d.z=b;d.depth=.75*p;d.alpha=e;d.beta=c;d.center=f.center;d=(d.end+d.start)/2;a.slicedTranslation={translateX:Math.round(Math.cos(d)*g.slicedOffset*Math.cos(e*r)),translateY:Math.round(Math.sin(d)*g.slicedOffset*Math.cos(e*r))}})}});a(m.pie.prototype.pointClass.prototype, | ||
"haloPath",function(a){var f=arguments;return this.series.chart.is3d()?[]:a.call(this,f[1])});a(m.pie.prototype,"pointAttribs",function(a,f,g){a=a.call(this,f,g);g=this.options;this.chart.is3d()&&(a.stroke=g.edgeColor||f.color||this.color,a["stroke-width"]=n(g.edgeWidth,1));return a});a(m.pie.prototype,"drawPoints",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&k(this.points,function(a){var f=a.graphic;if(f)f[a.y&&a.visible?"show":"hide"]()})});a(m.pie.prototype,"drawDataLabels", | ||
function(a){if(this.chart.is3d()){var f=this.chart.options.chart.options3d;k(this.data,function(a){var g=a.shapeArgs,d=g.r,e=(g.start+g.end)/2,c=a.labelPos,b=-d*(1-Math.cos((g.alpha||f.alpha)*r))*Math.sin(e),h=d*(Math.cos((g.beta||f.beta)*r)-1)*Math.cos(e);k([0,2,4],function(a){c[a]+=h;c[a+1]+=b})})}a.apply(this,[].slice.call(arguments,1))});a(m.pie.prototype,"addPoint",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});a(m.pie.prototype,"animate", | ||
function(a){if(this.chart.is3d()){var f=arguments[1],g=this.options.animation,k=this.center,d=this.group,e=this.markerGroup;u&&(!0===g&&(g={}),f?(d.oldtranslateX=d.translateX,d.oldtranslateY=d.translateY,f={translateX:k[0],translateY:k[1],scaleX:.001,scaleY:.001},d.attr(f),e&&(e.attrSetters=d.attrSetters,e.attr(f))):(f={translateX:d.oldtranslateX,translateY:d.oldtranslateY,scaleX:1,scaleY:1},d.animate(f,g),e&&e.animate(f,g),this.animate=null))}else a.apply(this,[].slice.call(arguments,1))})})(F); | ||
(function(a){var r=a.perspective,k=a.pick,n=a.Point,m=a.seriesTypes,u=a.wrap;u(m.scatter.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var f=this.chart,g=k(this.zAxis,f.options.zAxis[0]),m=[],d,e,c;for(c=0;c<this.data.length;c++)d=this.data[c],e=g.isLog&&g.val2lin?g.val2lin(d.z):d.z,d.plotZ=g.translate(e),d.isInside=d.isInside?e>=g.min&&e<=g.max:!1,m.push({x:d.plotX,y:d.plotY,z:d.plotZ});f=r(m,f,!0);for(c=0;c<this.data.length;c++)d=this.data[c],g= | ||
f[c],d.plotXold=d.plotX,d.plotYold=d.plotY,d.plotZold=d.plotZ,d.plotX=g.x,d.plotY=g.y,d.plotZ=g.z}});u(m.scatter.prototype,"init",function(a,f,g){f.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"],this.pointArrayMap=["x","y","z"],this.parallelArrays=["x","y","z"],this.directTouch=!0);a=a.apply(this,[f,g]);this.chart.is3d()&&(this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e": | ||
"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e");return a});u(m.scatter.prototype,"pointAttribs",function(k,f){var g=k.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&f&&(g.zIndex=a.pointCameraDistance(f,this.chart));return g});u(n.prototype,"applyOptions",function(a){var f=a.apply(this,[].slice.call(arguments,1));this.series.chart.is3d()&&void 0===f.z&&(f.z=0);return f})})(F);(function(a){var r=a.Axis,k=a.SVGRenderer, | ||
n=a.VMLRenderer;n&&(a.setOptions({animate:!1}),n.prototype.cuboid=k.prototype.cuboid,n.prototype.cuboidPath=k.prototype.cuboidPath,n.prototype.toLinePath=k.prototype.toLinePath,n.prototype.createElement3D=k.prototype.createElement3D,n.prototype.arc3d=function(a){a=k.prototype.arc3d.call(this,a);a.css({zIndex:a.zIndex});return a},a.VMLRenderer.prototype.arc3dPath=a.SVGRenderer.prototype.arc3dPath,a.wrap(r.prototype,"render",function(a){a.apply(this,[].slice.call(arguments,1));this.sideFrame&&(this.sideFrame.css({zIndex:0}), | ||
this.sideFrame.front.attr({fill:this.sideFrame.color}));this.bottomFrame&&(this.bottomFrame.css({zIndex:1}),this.bottomFrame.front.attr({fill:this.bottomFrame.color}));this.backFrame&&(this.backFrame.css({zIndex:0}),this.backFrame.front.attr({fill:this.backFrame.color}))}))})(F)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -8,54 +8,54 @@ (c) 2009-2016 Torstein Honsi | ||
*/ | ||
(function(u){"object"===typeof module&&module.exports?module.exports=u:u(Highcharts)})(function(u){(function(a){function p(a,b,d){this.init(a,b,d)}var v=a.each,w=a.extend,l=a.merge,q=a.splat;w(p.prototype,{init:function(a,b,d){var k=this,m=k.defaultOptions;k.chart=b;k.options=a=l(m,b.angular?{background:{}}:void 0,a);(a=a.background)&&v([].concat(q(a)).reverse(),function(b){var c,m=d.userOptions;c=l(k.defaultBackgroundOptions,b);b.backgroundColor&&(c.backgroundColor=b.backgroundColor);c.color=c.backgroundColor; | ||
d.options.plotBands.unshift(c);m.plotBands=m.plotBands||[];m.plotBands!==d.options.plotBands&&m.plotBands.unshift(c)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{className:"highcharts-pane",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%"}});a.Pane=p})(u);(function(a){var p=a.CenteredSeriesMixin, | ||
v=a.each,w=a.extend,l=a.map,q=a.merge,f=a.noop,b=a.Pane,d=a.pick,k=a.pInt,m=a.splat,n=a.wrap,c,g,h=a.Axis.prototype;a=a.Tick.prototype;c={getOffset:f,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:f,setCategories:f,setTitle:f};g={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(b){b=this.options=q(this.defaultOptions,this.defaultRadialOptions,b);b.plotBands||(b.plotBands=[])},getOffset:function(){h.getOffset.call(this);this.chart.axisOffset[this.side]=0;this.center=this.pane.center= | ||
p.getCenter.call(this.pane)},getLinePath:function(b,e){b=this.center;var c=this.chart,k=d(e,b[2]/2-this.offset);this.isCircular||void 0!==e?e=this.chart.renderer.symbols.arc(this.left+b[0],this.top+b[1],k,k,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}):(e=this.postTranslate(this.angleRad,k),e=["M",b[0]+c.plotLeft,b[1]+c.plotTop,"L",e.x,e.y]);return e},setAxisTranslation:function(){h.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/ | ||
(function(w){"object"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){function p(a,b,d){this.init(a,b,d)}var u=a.each,v=a.extend,l=a.merge,r=a.splat;v(p.prototype,{init:function(a,b,d){var g=this,m=g.defaultOptions;g.chart=b;g.options=a=l(m,b.angular?{background:{}}:void 0,a);(a=a.background)&&u([].concat(r(a)).reverse(),function(b){var c,m=d.userOptions;c=l(g.defaultBackgroundOptions,b);b.backgroundColor&&(c.backgroundColor=b.backgroundColor);c.color=c.backgroundColor; | ||
d.options.plotBands.unshift(c);m.plotBands=m.plotBands||[];m.plotBands!==d.options.plotBands&&m.plotBands.unshift(c)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{className:"highcharts-pane",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%"}});a.Pane=p})(w);(function(a){var p=a.CenteredSeriesMixin, | ||
u=a.each,v=a.extend,l=a.map,r=a.merge,e=a.noop,b=a.Pane,d=a.pick,g=a.pInt,m=a.splat,n=a.wrap,c,k,h=a.Axis.prototype;a=a.Tick.prototype;c={getOffset:e,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:e,setCategories:e,setTitle:e};k={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(d){d=this.options=r(this.defaultOptions,this.defaultRadialOptions,d);d.plotBands||(d.plotBands=[])},getOffset:function(){h.getOffset.call(this);this.chart.axisOffset[this.side]=0;this.center=this.pane.center= | ||
p.getCenter.call(this.pane)},getLinePath:function(b,f){b=this.center;var c=this.chart,g=d(f,b[2]/2-this.offset);this.isCircular||void 0!==f?f=this.chart.renderer.symbols.arc(this.left+b[0],this.top+b[1],g,g,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}):(f=this.postTranslate(this.angleRad,g),f=["M",b[0]+c.plotLeft,b[1]+c.plotTop,"L",f.x,f.y]);return f},setAxisTranslation:function(){h.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(){if(this.autoConnect=this.isCircular&&void 0===d(this.userMax,this.options.max)&&this.endAngleRad-this.startAngleRad===2*Math.PI)this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){h.setAxisSize.call(this);this.isRadial&&(this.center=this.pane.center=p.getCenter.call(this.pane),this.isCircular&& | ||
(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*d(this.sector,1)/2)},getPosition:function(b,e){return this.postTranslate(this.isCircular?this.translate(b):this.angleRad,d(this.isCircular?e:this.translate(b),this.center[2]/2)-this.offset)},postTranslate:function(b,e){var d=this.chart,c=this.center;b=this.startAngleRad+b;return{x:d.plotLeft+c[0]+Math.cos(b)*e,y:d.plotTop+c[1]+Math.sin(b)*e}},getPlotBandPath:function(b,e,c){var m=this.center,t=this.startAngleRad, | ||
h=m[2]/2,a=[d(c.outerRadius,"100%"),c.innerRadius,d(c.thickness,10)],r=Math.min(this.offset,0),g=/%$/,n,f=this.isCircular;"polygon"===this.options.gridLineInterpolation?m=this.getPlotLinePath(b).concat(this.getPlotLinePath(e,!0)):(b=Math.max(b,this.min),e=Math.min(e,this.max),f||(a[0]=this.translate(b),a[1]=this.translate(e)),a=l(a,function(b){g.test(b)&&(b=k(b,10)*h/100);return b}),"circle"!==c.shape&&f?(b=t+this.translate(b),e=t+this.translate(e)):(b=-Math.PI/2,e=1.5*Math.PI,n=!0),a[0]-=r,a[2]-= | ||
r,m=this.chart.renderer.symbols.arc(this.left+m[0],this.top+m[1],a[0],a[0],{start:Math.min(b,e),end:Math.max(b,e),innerR:d(a[1],a[0]-a[2]),open:n}));return m},getPlotLinePath:function(b,e){var c=this,d=c.center,k=c.chart,m=c.getPosition(b),a,h,g;c.isCircular?g=["M",d[0]+k.plotLeft,d[1]+k.plotTop,"L",m.x,m.y]:"circle"===c.options.gridLineInterpolation?(b=c.translate(b))&&(g=c.getLinePath(0,b)):(v(k.xAxis,function(b){b.pane===c.pane&&(a=b)}),g=[],b=c.translate(b),d=a.tickPositions,a.autoConnect&&(d= | ||
d.concat([d[0]])),e&&(d=[].concat(d).reverse()),v(d,function(c,d){h=a.getPosition(c,b);g.push(d?"L":"M",h.x,h.y)}));return g},getTitlePosition:function(){var b=this.center,c=this.chart,d=this.options.title;return{x:c.plotLeft+b[0]+(d.x||0),y:c.plotTop+b[1]-{high:.5,middle:.25,low:0}[d.align]*b[2]+(d.y||0)}}};n(h,"init",function(k,e,a){var h=e.angular,n=e.polar,t=a.isX,r=h&&t,f,x=e.options,l=a.pane||0;if(h){if(w(this,r?c:g),f=!t)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else n&&(w(this, | ||
g),this.defaultRadialOptions=(f=t)?this.defaultRadialXOptions:q(this.defaultYAxisOptions,this.defaultRadialYOptions));h||n?(this.isRadial=!0,e.inverted=!1,x.chart.zoomType=null):this.isRadial=!1;k.call(this,e,a);r||!h&&!n||(k=this.options,e.panes||(e.panes=[]),this.pane=e=e.panes[l]=e.panes[l]||new b(m(x.pane)[l],e,this),e=e.options,this.angleRad=(k.angle||0)*Math.PI/180,this.startAngleRad=(e.startAngle-90)*Math.PI/180,this.endAngleRad=(d(e.endAngle,e.startAngle+360)-90)*Math.PI/180,this.offset=k.offset|| | ||
0,this.isCircular=f)});n(h,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments,1))});n(a,"getPosition",function(b,c,d,k,a){var e=this.axis;return e.getPosition?e.getPosition(d):b.call(this,c,d,k,a)});n(a,"getLabelPosition",function(b,c,k,a,m,h,g,n,f){var e=this.axis,t=h.y,r=20,z=h.align,x=(e.translate(this.pos)+e.startAngleRad+Math.PI/2)/Math.PI*180%360;e.isRadial?(b=e.getPosition(this.pos,e.center[2]/2+d(h.distance,-25)),"auto"===h.rotation?a.attr({rotation:x}): | ||
null===t&&(t=e.chart.renderer.fontMetrics(a.styles.fontSize).b-a.getBBox().height/2),null===z&&(e.isCircular?(this.label.getBBox().width>e.len*e.tickInterval/(e.max-e.min)&&(r=0),z=x>r&&x<180-r?"left":x>180+r&&x<360-r?"right":"center"):z="center",a.attr({align:z})),b.x+=h.x,b.y+=t):b=b.call(this,c,k,a,m,h,g,n,f);return b});n(a,"getMarkPath",function(b,c,d,k,a,m,h){var e=this.axis;e.isRadial?(b=e.getPosition(this.pos,e.center[2]/2+k),c=["M",c,d,"L",b.x,b.y]):c=b.call(this,c,d,k,a,m,h);return c})})(u); | ||
(function(a){var p=a.each,v=a.noop,w=a.pick,l=a.Series,q=a.seriesType,f=a.seriesTypes;q("arearange","area",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\x3cspan style\x3d"color:{series.color}"\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},states:{hover:{halo:!1}}},{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel", | ||
"dataLabelUpper"],toYData:function(b){return[b.low,b.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(b){var d=this.chart,k=this.xAxis.postTranslate(b.rectPlotX,this.yAxis.len-b.plotHigh);b.plotHighX=k.x-d.plotLeft;b.plotHigh=k.y-d.plotTop},translate:function(){var b=this,d=b.yAxis,k=!!b.modifyValue;f.area.prototype.translate.apply(b);p(b.points,function(a){var m=a.low,c=a.high,g=a.plotY;null===c||null===m?a.isNull=!0:(a.plotLow=g,a.plotHigh=d.translate(k?b.modifyValue(c,a):c,0,1, | ||
0,1),k&&(a.yBottom=a.plotHigh))});this.chart.polar&&p(this.points,function(d){b.highToXY(d)})},getGraphPath:function(b){var d=[],k=[],a,n=f.area.prototype.getGraphPath,c,g,h;h=this.options;var r=this.chart.polar&&!1!==h.connectEnds,e=h.step;b=b||this.points;for(a=b.length;a--;)c=b[a],c.isNull||r||b[a+1]&&!b[a+1].isNull||k.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),g={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,yBottom:c.yBottom,plotX:w(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull}, | ||
k.push(g),d.push(g),c.isNull||r||b[a-1]&&!b[a-1].isNull||k.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});b=n.call(this,b);e&&(!0===e&&(e="left"),h.step={left:"right",center:"center",right:"left"}[e]);d=n.call(this,d);k=n.call(this,k);h.step=e;h=[].concat(b,d);this.chart.polar||"M"!==k[0]||(k[0]="L");this.graphPath=h;this.areaPath=this.areaPath.concat(b,k);h.isArea=!0;h.xMap=b.xMap;this.areaPath.xMap=b.xMap;return h},drawDataLabels:function(){var b=this.data,d=b.length,a,m=[],n=l.prototype,c=this.options.dataLabels, | ||
g=c.align,h=c.verticalAlign,r=c.inside,e,t,f=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(a=d;a--;)if(e=b[a])t=r?e.plotHigh<e.plotLow:e.plotHigh>e.plotLow,e.y=e.high,e._plotY=e.plotY,e.plotY=e.plotHigh,m[a]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=t,f?g||(c.align=t?"right":"left"):h||(c.verticalAlign=t?"top":"bottom"),c.x=c.xHigh,c.y=c.yHigh;n.drawDataLabels&&n.drawDataLabels.apply(this,arguments);for(a=d;a--;)if(e=b[a])t=r?e.plotHigh<e.plotLow:e.plotHigh>e.plotLow,e.dataLabelUpper= | ||
e.dataLabel,e.dataLabel=m[a],e.y=e.low,e.plotY=e._plotY,e.below=!t,f?g||(c.align=t?"left":"right"):h||(c.verticalAlign=t?"bottom":"top"),c.x=c.xLow,c.y=c.yLow;n.drawDataLabels&&n.drawDataLabels.apply(this,arguments)}c.align=g;c.verticalAlign=h},alignDataLabel:function(){f.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:v,getSymbol:v,drawPoints:v})})(u);(function(a){var p=a.seriesType;p("areasplinerange","arearange",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(u); | ||
(function(a){var p=a.defaultPlotOptions,v=a.each,w=a.merge,l=a.noop,q=a.pick,f=a.seriesType,b=a.seriesTypes.column.prototype;f("columnrange","arearange",w(p.column,p.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var d=this,a=d.yAxis,m=d.xAxis,n=m.startAngleRad,c,g=d.chart,h=d.xAxis.isRadial,r;b.translate.apply(d);v(d.points,function(b){var e=b.shapeArgs,k=d.options.minPointLength,f,l;b.plotHigh=r=a.translate(b.high,0,1,0,1);b.plotLow=b.plotY;l=r;f=q(b.rectPlotY,b.plotY)-r;Math.abs(f)< | ||
k?(k-=f,f+=k,l-=k/2):0>f&&(f*=-1,l-=f);h?(c=b.barX+n,b.shapeType="path",b.shapeArgs={d:d.polarArc(l+f,l,c,c+b.pointWidth)}):(e.height=f,e.y=l,b.tooltipPos=g.inverted?[a.len+a.pos-g.plotLeft-l-f/2,m.len+m.pos-g.plotTop-e.x-e.width/2,f]:[m.left-g.plotLeft+e.x+e.width/2,a.pos-g.plotTop+l+f/2,f])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:l,crispCol:b.crispCol,drawPoints:b.drawPoints,drawTracker:b.drawTracker,getColumnMetrics:b.getColumnMetrics,animate:function(){return b.animate.apply(this, | ||
arguments)},polarArc:function(){return b.polarArc.apply(this,arguments)},pointAttribs:b.pointAttribs})})(u);(function(a){var p=a.each,v=a.isNumber,w=a.merge,l=a.pick,q=a.pInt,f=a.Series,b=a.seriesType,d=a.TrackerMixin;b("gauge","line",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2,borderWidth:1,borderColor:"#cccccc"},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0, | ||
trackerGroups:["group","dataLabelsGroup"],translate:function(){var b=this.yAxis,a=this.options,d=b.center;this.generatePoints();p(this.points,function(c){var k=w(a.dial,c.dial),h=q(l(k.radius,80))*d[2]/200,m=q(l(k.baseLength,70))*h/100,e=q(l(k.rearLength,10))*h/100,n=k.baseWidth||3,f=k.topWidth||1,p=a.overshoot,y=b.startAngleRad+b.translate(c.y,null,null,null,!0);v(p)?(p=p/180*Math.PI,y=Math.max(b.startAngleRad-p,Math.min(b.endAngleRad+p,y))):!1===a.wrap&&(y=Math.max(b.startAngleRad,Math.min(b.endAngleRad, | ||
y)));y=180*y/Math.PI;c.shapeType="path";c.shapeArgs={d:k.path||["M",-e,-n/2,"L",m,-n/2,h,-f/2,h,f/2,m,n/2,-e,n/2,"z"],translateX:d[0],translateY:d[1],rotation:y};c.plotX=d[0];c.plotY=d[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,d=b.pivot,c=b.options,g=c.pivot,h=b.chart.renderer;p(b.points,function(a){var d=a.graphic,k=a.shapeArgs,g=k.d,m=w(c.dial,a.dial);d?(d.animate(k),k.d=g):(a.graphic=h[a.shapeType](k).attr({rotation:k.rotation,zIndex:1}).addClass("highcharts-dial").add(b.group),a.graphic.attr({stroke:m.borderColor|| | ||
"none","stroke-width":m.borderWidth||0,fill:m.backgroundColor||"#000000"}))});d?d.animate({translateX:a[0],translateY:a[1]}):(b.pivot=h.circle(0,0,l(g.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(a[0],a[1]).add(b.group),b.pivot.attr({"stroke-width":g.borderWidth||0,stroke:g.borderColor||"#cccccc",fill:g.backgroundColor||"#000000"}))},animate:function(b){var a=this;b||(p(a.points,function(b){var d=b.graphic;d&&(d.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),d.animate({rotation:b.shapeArgs.rotation}, | ||
a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){f.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();l(a,!0)&&this.chart.redraw()},drawTracker:d&&d.drawTrackerPoint},{setState:function(b){this.state=b}})})(u);(function(a){var p=a.each,v=a.noop,w=a.pick,l=a.seriesType, | ||
q=a.seriesTypes;l("boxplot","column",{threshold:null,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\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%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:["low","q1","median", | ||
"q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",pointAttribs:function(a){var b=this.options,d=a&&a.color||this.color;return{fill:a.fillColor||b.fillColor||d,stroke:b.lineColor||d,"stroke-width":b.lineWidth||0}},drawDataLabels:v,translate:function(){var a=this.yAxis,b=this.pointArrayMap;q.column.prototype.translate.apply(this);p(this.points,function(d){p(b,function(b){null!==d[b]&&(d[b+"Plot"]=a.translate(d[b],0,1,0,1))})})},drawPoints:function(){var a= | ||
this,b=a.options,d=a.chart.renderer,k,m,n,c,g,h,r=0,e,t,l,q,y=!1!==a.doQuartiles,v,B=a.options.whiskerLength;p(a.points,function(f){var p=f.graphic,z=p?"animate":"attr",x=f.shapeArgs,u={},D={},H={},I=f.color||a.color;void 0!==f.plotY&&(e=x.width,t=Math.floor(x.x),l=t+e,q=Math.round(e/2),k=Math.floor(y?f.q1Plot:f.lowPlot),m=Math.floor(y?f.q3Plot:f.lowPlot),n=Math.floor(f.highPlot),c=Math.floor(f.lowPlot),p||(f.graphic=p=d.g("point").add(a.group),f.stem=d.path().addClass("highcharts-boxplot-stem").add(p), | ||
B&&(f.whiskers=d.path().addClass("highcharts-boxplot-whisker").add(p)),y&&(f.box=d.path(void 0).addClass("highcharts-boxplot-box").add(p)),f.medianShape=d.path(void 0).addClass("highcharts-boxplot-median").add(p),u.stroke=f.stemColor||b.stemColor||I,u["stroke-width"]=w(f.stemWidth,b.stemWidth,b.lineWidth),u.dashstyle=f.stemDashStyle||b.stemDashStyle,f.stem.attr(u),B&&(D.stroke=f.whiskerColor||b.whiskerColor||I,D["stroke-width"]=w(f.whiskerWidth,b.whiskerWidth,b.lineWidth),f.whiskers.attr(D)),y&&(p= | ||
a.pointAttribs(f),f.box.attr(p)),H.stroke=f.medianColor||b.medianColor||I,H["stroke-width"]=w(f.medianWidth,b.medianWidth,b.lineWidth),f.medianShape.attr(H)),h=f.stem.strokeWidth()%2/2,r=t+q+h,f.stem[z]({d:["M",r,m,"L",r,n,"M",r,k,"L",r,c]}),y&&(h=f.box.strokeWidth()%2/2,k=Math.floor(k)+h,m=Math.floor(m)+h,t+=h,l+=h,f.box[z]({d:["M",t,m,"L",t,k,"L",l,k,"L",l,m,"L",t,m,"z"]})),B&&(h=f.whiskers.strokeWidth()%2/2,n+=h,c+=h,v=/%$/.test(B)?q*parseFloat(B)/100:B/2,f.whiskers[z]({d:["M",r-v,n,"L",r+v,n, | ||
"M",r-v,c,"L",r+v,c]})),g=Math.round(f.medianPlot),h=f.medianShape.strokeWidth()%2/2,g+=h,f.medianShape[z]({d:["M",t,g,"L",l,g]}))})},setStackedPoints:v})})(u);(function(a){var p=a.each,v=a.noop,w=a.seriesType,l=a.seriesTypes;w("errorbar","boxplot",{color:"#000000",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(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:l.arearange?function(){var a=this.pointValKey;l.arearange.prototype.drawDataLabels.call(this);p(this.data,function(f){f.y=f[a]})}:v,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||l.column.prototype.getColumnMetrics.call(this)}})})(u);(function(a){var p=a.correctFloat,v=a.isNumber,w=a.pick,l=a.Point,q=a.Series,f=a.seriesType,b=a.seriesTypes; | ||
f("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",translate:function(){var a=this.options,k=this.yAxis,m,f,c,g,h,r,e,t,l,q=w(a.minPointLength,5),y=a.threshold,v=a.stacking,u=0,x=0,A;b.column.prototype.translate.apply(this);e=t=y;f=this.points;m=0;for(a=f.length;m<a;m++)c=f[m],r=this.processedYData[m],g=c.shapeArgs,h=v&&k.stacks[(this.negStacks&&r<y?"-":"")+this.stackKey],A=this.getStackIndicator(A, | ||
c.x),l=h?h[c.x].points[this.index+","+m+","+A.index]:[0,r],c.isSum?c.y=p(r):c.isIntermediateSum&&(c.y=p(r-t)),h=Math.max(e,e+c.y)+l[0],g.y=k.toPixels(h,!0),c.isSum?(g.y=k.toPixels(l[1],!0),g.height=Math.min(k.toPixels(l[0],!0),k.len)-g.y+u+x):c.isIntermediateSum?(g.y=k.toPixels(l[1],!0),g.height=Math.min(k.toPixels(t,!0),k.len)-g.y+u+x,t=l[1]):(g.height=0<r?k.toPixels(e,!0)-g.y:k.toPixels(e,!0)-k.toPixels(e-r,!0),e+=r),0>g.height&&(g.y+=g.height,g.height*=-1),c.plotY=g.y=Math.round(g.y)-this.borderWidth% | ||
2/2,g.height=Math.max(Math.round(g.height),.001),c.yBottom=g.y+g.height,g.y-=x,g.height<=q&&!c.isNull&&(g.height=q,0>c.y?x-=q:u+=q),g.y-=u,g=c.plotY-x-u+(c.negative&&0<=x?g.height:0),this.chart.inverted?c.tooltipPos[0]=k.len-g:c.tooltipPos[1]=g},processData:function(b){var a=this.yData,d=this.options.data,f,c=a.length,g,h,r,e,t,l;h=g=r=e=this.options.threshold||0;for(l=0;l<c;l++)t=a[l],f=d&&d[l]?d[l]:{},"sum"===t||f.isSum?a[l]=p(h):"intermediateSum"===t||f.isIntermediateSum?a[l]=p(g):(h+=t,g+=t), | ||
r=Math.min(h,r),e=Math.max(h,e);q.prototype.processData.call(this,b);this.dataMin=r;this.dataMax=e},toYData:function(b){return b.isSum?0===b.x?null:"sum":b.isIntermediateSum?0===b.x?null:"intermediateSum":b.y},pointAttribs:function(a,k){var d=this.options.upColor;d&&!a.options.color&&(a.color=0<a.y?d:null);a=b.column.prototype.pointAttribs.call(this,a,k);delete a.dashstyle;return a},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var b=this.data,a=b.length,f=this.graph.strokeWidth()+ | ||
this.borderWidth,f=Math.round(f)%2/2,n=[],c,g,h;for(h=1;h<a;h++)g=b[h].shapeArgs,c=b[h-1].shapeArgs,g=["M",c.x+c.width,c.y+f,"L",g.x,c.y+f],0>b[h-1].y&&(g[2]+=c.height,g[5]+=c.height),n=n.concat(g);return n},drawGraph:function(){q.prototype.drawGraph.call(this);this.graph.attr({d:this.getCrispPath()})},getExtremes:a.noop},{getClassName:function(){var b=l.prototype.getClassName.call(this);this.isSum?b+=" highcharts-sum":this.isIntermediateSum&&(b+=" highcharts-intermediate-sum");return b},isValid:function(){return v(this.y, | ||
!0)||this.isSum||this.isIntermediateSum}})})(u);(function(a){var p=a.Series,v=a.seriesType,u=a.seriesTypes;v("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=p.prototype.getGraphPath.call(this),q=a.length+1;q--;)(q===a.length||"M"===a[q])&&0<q&&a.splice(q,0,"z");return this.areaPath=a},drawGraph:function(){this.options.fillColor=this.color;u.area.prototype.drawGraph.call(this)}, | ||
drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawTracker:p.prototype.drawTracker,setStackedPoints:a.noop})})(u);(function(a){var p=a.arrayMax,v=a.arrayMin,u=a.Axis,l=a.color,q=a.each,f=a.isNumber,b=a.noop,d=a.pick,k=a.pInt,m=a.Point,n=a.Series,c=a.seriesType,g=a.seriesTypes;c("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1,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"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["markerGroup","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",pointAttribs:function(b,a){var c=d(this.options.marker.fillOpacity,.5);b=n.prototype.pointAttribs.call(this,b,a);1!==c&&(b.fill=l(b.fill).setOpacity(c).get("rgba"));return b},getRadii:function(b,a,c,d){var e,k,h,g= | ||
this.zData,f=[],m=this.options,n="width"!==m.sizeBy,t=m.zThreshold,l=a-b;k=0;for(e=g.length;k<e;k++)h=g[k],m.sizeByAbsoluteValue&&null!==h&&(h=Math.abs(h-t),a=Math.max(a-t,Math.abs(b-t)),b=0),null===h?h=null:h<b?h=c/2-1:(h=0<l?(h-b)/l:.5,n&&0<=h&&(h=Math.sqrt(h)),h=Math.ceil(c+h*(d-c))/2),f.push(h);this.radii=f},animate:function(b){var a=this.options.animation;b||(q(this.points,function(b){var c=b.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:b.plotX,y:b.plotY,width:1, | ||
height:1}),c.animate(d,a))}),this.animate=null)},translate:function(){var b,a=this.data,c,d,k=this.radii;g.scatter.prototype.translate.call(this);for(b=a.length;b--;)c=a[b],d=k?k[b]:0,f(d)&&d>=this.minPxSize/2?(c.marker={radius:d,width:2*d,height:2*d},c.dlBox={x:c.plotX-d,y:c.plotY-d,width:2*d,height:2*d}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:g.column.prototype.alignDataLabel,buildKDTree:b,applyZones:b},{haloPath:function(b){return m.prototype.haloPath.call(this,0===b?0:this.marker.radius+ | ||
b)},ttBelow:!1});u.prototype.beforePadding=function(){var b=this,a=this.len,c=this.chart,g=0,m=a,n=this.isXAxis,l=n?"xData":"yData",u=this.min,w={},x=Math.min(c.plotWidth,c.plotHeight),A=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-u,C=a/F,G=[];q(this.series,function(a){var e=a.options;!a.bubblePadding||!a.visible&&c.options.chart.ignoreHiddenSeries||(b.allowZoomOutside=!0,G.push(a),n&&(q(["minSize","maxSize"],function(b){var a=e[b],c=/%$/.test(a),a=k(a);w[b]=c?x*a/100:a}),a.minPxSize=w.minSize, | ||
a.maxPxSize=Math.max(w.maxSize,w.minSize),a=a.zData,a.length&&(A=d(e.zMin,Math.min(A,Math.max(v(a),!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE))),E=d(e.zMax,Math.max(E,p(a))))))});q(G,function(a){var c=a[l],d=c.length,e;n&&a.getRadii(A,E,a.minPxSize,a.maxPxSize);if(0<F)for(;d--;)f(c[d])&&b.dataMin<=c[d]&&c[d]<=b.dataMax&&(e=a.radii[d],g=Math.min((c[d]-u)*C-e,g),m=Math.max((c[d]-u)*C+e,m))});G.length&&0<F&&!this.isLog&&(m-=a,C*=(a+g-m)/a,q([["min","userMin",g],["max","userMax",m]],function(a){void 0=== | ||
d(b.options[a[0]],b[a[1]])&&(b[a[0]]+=a[2]/C)}))}})(u);(function(a){function p(b,a){var d=this.chart,f=this.options.animation,n=this.group,c=this.markerGroup,g=this.xAxis.center,h=d.plotLeft,l=d.plotTop;d.polar?d.renderer.isSVG&&(!0===f&&(f={}),a?(b={translateX:g[0]+h,translateY:g[1]+l,scaleX:.001,scaleY:.001},n.attr(b),c&&c.attr(b)):(b={translateX:h,translateY:l,scaleX:1,scaleY:1},n.animate(b,f),c&&c.animate(b,f),this.animate=null)):b.call(this,a)}var u=a.each,w=a.pick,l=a.seriesTypes,q=a.wrap,f= | ||
a.Series.prototype;a=a.Pointer.prototype;f.searchPointByAngle=function(b){var a=this.chart,k=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(b.chartX-k[0]-a.plotLeft,b.chartY-k[1]-a.plotTop)})};q(f,"buildKDTree",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.kdDimensions=2);b.apply(this)});f.toXY=function(b){var a,k=this.chart,f=b.plotX;a=b.plotY;b.rectPlotX=f;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len- | ||
a);b.plotX=b.polarPlotX=a.x-k.plotLeft;b.plotY=b.polarPlotY=a.y-k.plotTop;this.kdByAngle?(k=(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>k&&(k+=360),b.clientX=k):b.clientX=b.plotX};l.spline&&q(l.spline.prototype,"getPointSpline",function(b,a,k,f){var d,c,g,h,m,e,l;this.chart.polar?(d=k.plotX,c=k.plotY,b=a[f-1],g=a[f+1],this.connectEnds&&(b||(b=a[a.length-2]),g||(g=a[1])),b&&g&&(h=b.plotX,m=b.plotY,a=g.plotX,e=g.plotY,h=(1.5*d+h)/2.5,m=(1.5*c+m)/2.5,g=(1.5*d+a)/2.5,l=(1.5*c+e)/2.5,a=Math.sqrt(Math.pow(h- | ||
d,2)+Math.pow(m-c,2)),e=Math.sqrt(Math.pow(g-d,2)+Math.pow(l-c,2)),h=Math.atan2(m-c,h-d),m=Math.atan2(l-c,g-d),l=Math.PI/2+(h+m)/2,Math.abs(h-l)>Math.PI/2&&(l-=Math.PI),h=d+Math.cos(l)*a,m=c+Math.sin(l)*a,g=d+Math.cos(Math.PI+l)*e,l=c+Math.sin(Math.PI+l)*e,k.rightContX=g,k.rightContY=l),f?(k=["C",b.rightContX||b.plotX,b.rightContY||b.plotY,h||d,m||c,d,c],b.rightContX=b.rightContY=null):k=["M",d,c]):k=b.call(this,a,k,f);return k});q(f,"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])});q(f,"getGraphPath",function(a,d){var b=this,f,l;if(this.chart.polar){d=d||this.points;for(f=0;f<d.length;f++)if(!d[f].isNull){l=f;break}!1!==this.options.connectEnds&&void 0!==l&&(this.connectEnds=!0,d.splice(d.length,0,d[l]));u(d,function(a){void 0===a.polarPlotY&&b.toXY(a)})}return a.apply(this,[].slice.call(arguments,1))});q(f,"animate",p);l.column&&(l=l.column.prototype, | ||
l.polarArc=function(a,d,f,l){var b=this.xAxis.center,c=this.yAxis.len;return this.chart.renderer.symbols.arc(b[0],b[1],c-d,null,{start:f,end:l,innerR:c-w(a,c)})},q(l,"animate",p),q(l,"translate",function(a){var b=this.xAxis,f=b.startAngleRad,l,n,c;this.preventPostTranslate=!0;a.call(this);if(b.isRadial)for(l=this.points,c=l.length;c--;)n=l[c],a=n.barX+f,n.shapeType="path",n.shapeArgs={d:this.polarArc(n.yBottom,n.plotY,a,a+n.pointWidth)},this.toXY(n),n.tooltipPos=[n.plotX,n.plotY],n.ttBelow=n.plotY> | ||
b.center[1]}),q(l,"alignDataLabel",function(a,d,k,l,n,c){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===l.align&&(l.align=20<a&&160>a?"left":200<a&&340>a?"right":"center"),null===l.verticalAlign&&(l.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),f.alignDataLabel.call(this,d,k,l,n,c)):a.call(this,d,k,l,n,c)}));q(a,"getCoordinates",function(a,d){var b=this.chart,f={xAxis:[],yAxis:[]};b.polar?u(b.axes,function(a){var c=a.isXAxis,g=a.center,h=d.chartX-g[0]-b.plotLeft,g=d.chartY-g[1]- | ||
b.plotTop;f[c?"xAxis":"yAxis"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,g):Math.sqrt(Math.pow(h,2)+Math.pow(g,2)),!0)})}):f=a.call(this,d);return f})})(u)}); | ||
(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*d(this.sector,1)/2)},getPosition:function(b,f){return this.postTranslate(this.isCircular?this.translate(b):this.angleRad,d(this.isCircular?f:this.translate(b),this.center[2]/2)-this.offset)},postTranslate:function(b,f){var d=this.chart,c=this.center;b=this.startAngleRad+b;return{x:d.plotLeft+c[0]+Math.cos(b)*f,y:d.plotTop+c[1]+Math.sin(b)*f}},getPlotBandPath:function(b,f,c){var m=this.center,t=this.startAngleRad, | ||
h=m[2]/2,a=[d(c.outerRadius,"100%"),c.innerRadius,d(c.thickness,10)],q=Math.min(this.offset,0),k=/%$/,n,e=this.isCircular;"polygon"===this.options.gridLineInterpolation?m=this.getPlotLinePath(b).concat(this.getPlotLinePath(f,!0)):(b=Math.max(b,this.min),f=Math.min(f,this.max),e||(a[0]=this.translate(b),a[1]=this.translate(f)),a=l(a,function(b){k.test(b)&&(b=g(b,10)*h/100);return b}),"circle"!==c.shape&&e?(b=t+this.translate(b),f=t+this.translate(f)):(b=-Math.PI/2,f=1.5*Math.PI,n=!0),a[0]-=q,a[2]-= | ||
q,m=this.chart.renderer.symbols.arc(this.left+m[0],this.top+m[1],a[0],a[0],{start:Math.min(b,f),end:Math.max(b,f),innerR:d(a[1],a[0]-a[2]),open:n}));return m},getPlotLinePath:function(b,f){var d=this,c=d.center,g=d.chart,m=d.getPosition(b),a,h,k;d.isCircular?k=["M",c[0]+g.plotLeft,c[1]+g.plotTop,"L",m.x,m.y]:"circle"===d.options.gridLineInterpolation?(b=d.translate(b))&&(k=d.getLinePath(0,b)):(u(g.xAxis,function(b){b.pane===d.pane&&(a=b)}),k=[],b=d.translate(b),c=a.tickPositions,a.autoConnect&&(c= | ||
c.concat([c[0]])),f&&(c=[].concat(c).reverse()),u(c,function(d,c){h=a.getPosition(d,b);k.push(c?"L":"M",h.x,h.y)}));return k},getTitlePosition:function(){var b=this.center,d=this.chart,c=this.options.title;return{x:d.plotLeft+b[0]+(c.x||0),y:d.plotTop+b[1]-{high:.5,middle:.25,low:0}[c.align]*b[2]+(c.y||0)}}};n(h,"init",function(g,f,a){var h=f.angular,n=f.polar,t=a.isX,q=h&&t,e,y=f.options,l=a.pane||0;if(h){if(v(this,q?c:k),e=!t)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else n&&(v(this, | ||
k),this.defaultRadialOptions=(e=t)?this.defaultRadialXOptions:r(this.defaultYAxisOptions,this.defaultRadialYOptions));h||n?(this.isRadial=!0,f.inverted=!1,y.chart.zoomType=null):this.isRadial=!1;g.call(this,f,a);q||!h&&!n||(g=this.options,f.panes||(f.panes=[]),this.pane=f=f.panes[l]=f.panes[l]||new b(m(y.pane)[l],f,this),f=f.options,this.angleRad=(g.angle||0)*Math.PI/180,this.startAngleRad=(f.startAngle-90)*Math.PI/180,this.endAngleRad=(d(f.endAngle,f.startAngle+360)-90)*Math.PI/180,this.offset=g.offset|| | ||
0,this.isCircular=e)});n(h,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments,1))});n(a,"getPosition",function(b,d,c,g,a){var f=this.axis;return f.getPosition?f.getPosition(c):b.call(this,d,c,g,a)});n(a,"getLabelPosition",function(b,c,g,a,m,h,k,n,e){var f=this.axis,t=h.y,q=20,z=h.align,y=(f.translate(this.pos)+f.startAngleRad+Math.PI/2)/Math.PI*180%360;f.isRadial?(b=f.getPosition(this.pos,f.center[2]/2+d(h.distance,-25)),"auto"===h.rotation?a.attr({rotation:y}): | ||
null===t&&(t=f.chart.renderer.fontMetrics(a.styles.fontSize).b-a.getBBox().height/2),null===z&&(f.isCircular?(this.label.getBBox().width>f.len*f.tickInterval/(f.max-f.min)&&(q=0),z=y>q&&y<180-q?"left":y>180+q&&y<360-q?"right":"center"):z="center",a.attr({align:z})),b.x+=h.x,b.y+=t):b=b.call(this,c,g,a,m,h,k,n,e);return b});n(a,"getMarkPath",function(b,c,d,g,a,m,h){var f=this.axis;f.isRadial?(b=f.getPosition(this.pos,f.center[2]/2+g),c=["M",c,d,"L",b.x,b.y]):c=b.call(this,c,d,g,a,m,h);return c})})(w); | ||
(function(a){var p=a.each,u=a.noop,v=a.pick,l=a.Series,r=a.seriesType,e=a.seriesTypes;r("arearange","area",{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'\x3cspan style\x3d"color:{series.color}"\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},states:{hover:{halo:!1}}},{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel", | ||
"dataLabelUpper"],toYData:function(b){return[b.low,b.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(b){var d=this.chart,g=this.xAxis.postTranslate(b.rectPlotX,this.yAxis.len-b.plotHigh);b.plotHighX=g.x-d.plotLeft;b.plotHigh=g.y-d.plotTop},translate:function(){var b=this,d=b.yAxis,g=!!b.modifyValue;e.area.prototype.translate.apply(b);p(b.points,function(a){var m=a.low,c=a.high,k=a.plotY;null===c||null===m?a.isNull=!0:(a.plotLow=k,a.plotHigh=d.translate(g?b.modifyValue(c,a):c,0,1, | ||
0,1),g&&(a.yBottom=a.plotHigh))});this.chart.polar&&p(this.points,function(d){b.highToXY(d)})},getGraphPath:function(b){var d=[],g=[],a,n=e.area.prototype.getGraphPath,c,k,h;h=this.options;var q=this.chart.polar&&!1!==h.connectEnds,f=h.step;b=b||this.points;for(a=b.length;a--;)c=b[a],c.isNull||q||b[a+1]&&!b[a+1].isNull||g.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1}),k={polarPlotY:c.polarPlotY,rectPlotX:c.rectPlotX,yBottom:c.yBottom,plotX:v(c.plotHighX,c.plotX),plotY:c.plotHigh,isNull:c.isNull}, | ||
g.push(k),d.push(k),c.isNull||q||b[a-1]&&!b[a-1].isNull||g.push({plotX:c.plotX,plotY:c.plotY,doCurve:!1});b=n.call(this,b);f&&(!0===f&&(f="left"),h.step={left:"right",center:"center",right:"left"}[f]);d=n.call(this,d);g=n.call(this,g);h.step=f;h=[].concat(b,d);this.chart.polar||"M"!==g[0]||(g[0]="L");this.graphPath=h;this.areaPath=this.areaPath.concat(b,g);h.isArea=!0;h.xMap=b.xMap;this.areaPath.xMap=b.xMap;return h},drawDataLabels:function(){var b=this.data,d=b.length,a,m=[],n=l.prototype,c=this.options.dataLabels, | ||
k=c.align,h=c.verticalAlign,q=c.inside,f,t,e=this.chart.inverted;if(c.enabled||this._hasPointLabels){for(a=d;a--;)if(f=b[a])t=q?f.plotHigh<f.plotLow:f.plotHigh>f.plotLow,f.y=f.high,f._plotY=f.plotY,f.plotY=f.plotHigh,m[a]=f.dataLabel,f.dataLabel=f.dataLabelUpper,f.below=t,e?k||(c.align=t?"right":"left"):h||(c.verticalAlign=t?"top":"bottom"),c.x=c.xHigh,c.y=c.yHigh;n.drawDataLabels&&n.drawDataLabels.apply(this,arguments);for(a=d;a--;)if(f=b[a])t=q?f.plotHigh<f.plotLow:f.plotHigh>f.plotLow,f.dataLabelUpper= | ||
f.dataLabel,f.dataLabel=m[a],f.y=f.low,f.plotY=f._plotY,f.below=!t,e?k||(c.align=t?"left":"right"):h||(c.verticalAlign=t?"bottom":"top"),c.x=c.xLow,c.y=c.yLow;n.drawDataLabels&&n.drawDataLabels.apply(this,arguments)}c.align=k;c.verticalAlign=h},alignDataLabel:function(){e.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:u,getSymbol:u,drawPoints:u})})(w);(function(a){var p=a.seriesType;p("areasplinerange","arearange",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(w); | ||
(function(a){var p=a.defaultPlotOptions,u=a.each,v=a.merge,l=a.noop,r=a.pick,e=a.seriesType,b=a.seriesTypes.column.prototype;e("columnrange","arearange",v(p.column,p.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var d=this,a=d.yAxis,m=d.xAxis,n=m.startAngleRad,c,k=d.chart,h=d.xAxis.isRadial,q;b.translate.apply(d);u(d.points,function(b){var f=b.shapeArgs,g=d.options.minPointLength,e,x;b.plotHigh=q=a.translate(b.high,0,1,0,1);b.plotLow=b.plotY;x=q;e=r(b.rectPlotY,b.plotY)-q;Math.abs(e)< | ||
g?(g-=e,e+=g,x-=g/2):0>e&&(e*=-1,x-=e);h?(c=b.barX+n,b.shapeType="path",b.shapeArgs={d:d.polarArc(x+e,x,c,c+b.pointWidth)}):(f.height=e,f.y=x,b.tooltipPos=k.inverted?[a.len+a.pos-k.plotLeft-x-e/2,m.len+m.pos-k.plotTop-f.x-f.width/2,e]:[m.left-k.plotLeft+f.x+f.width/2,a.pos-k.plotTop+x+e/2,e])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:l,crispCol:b.crispCol,drawPoints:b.drawPoints,drawTracker:b.drawTracker,getColumnMetrics:b.getColumnMetrics,animate:function(){return b.animate.apply(this, | ||
arguments)},polarArc:function(){return b.polarArc.apply(this,arguments)},pointAttribs:b.pointAttribs})})(w);(function(a){var p=a.each,u=a.isNumber,v=a.merge,l=a.pick,r=a.pInt,e=a.Series,b=a.seriesType,d=a.TrackerMixin;b("gauge","line",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2,borderWidth:1,borderColor:"#cccccc"},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0, | ||
trackerGroups:["group","dataLabelsGroup"],translate:function(){var b=this.yAxis,d=this.options,a=b.center;this.generatePoints();p(this.points,function(c){var g=v(d.dial,c.dial),h=r(l(g.radius,80))*a[2]/200,m=r(l(g.baseLength,70))*h/100,f=r(l(g.rearLength,10))*h/100,n=g.baseWidth||3,e=g.topWidth||1,p=d.overshoot,x=b.startAngleRad+b.translate(c.y,null,null,null,!0);u(p)?(p=p/180*Math.PI,x=Math.max(b.startAngleRad-p,Math.min(b.endAngleRad+p,x))):!1===d.wrap&&(x=Math.max(b.startAngleRad,Math.min(b.endAngleRad, | ||
x)));x=180*x/Math.PI;c.shapeType="path";c.shapeArgs={d:g.path||["M",-f,-n/2,"L",m,-n/2,h,-e/2,h,e/2,m,n/2,-f,n/2,"z"],translateX:a[0],translateY:a[1],rotation:x};c.plotX=a[0];c.plotY=a[1]})},drawPoints:function(){var b=this,a=b.yAxis.center,d=b.pivot,c=b.options,k=c.pivot,h=b.chart.renderer;p(b.points,function(a){var d=a.graphic,g=a.shapeArgs,k=g.d,m=v(c.dial,a.dial);d?(d.animate(g),g.d=k):(a.graphic=h[a.shapeType](g).attr({rotation:g.rotation,zIndex:1}).addClass("highcharts-dial").add(b.group),a.graphic.attr({stroke:m.borderColor|| | ||
"none","stroke-width":m.borderWidth||0,fill:m.backgroundColor||"#000000"}))});d?d.animate({translateX:a[0],translateY:a[1]}):(b.pivot=h.circle(0,0,l(k.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(a[0],a[1]).add(b.group),b.pivot.attr({"stroke-width":k.borderWidth||0,stroke:k.borderColor||"#cccccc",fill:k.backgroundColor||"#000000"}))},animate:function(b){var a=this;b||(p(a.points,function(b){var d=b.graphic;d&&(d.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),d.animate({rotation:b.shapeArgs.rotation}, | ||
a.options.animation))}),a.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);e.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(b,a){e.prototype.setData.call(this,b,!1);this.processData();this.generatePoints();l(a,!0)&&this.chart.redraw()},drawTracker:d&&d.drawTrackerPoint},{setState:function(b){this.state=b}})})(w);(function(a){var p=a.each,u=a.noop,v=a.pick,l=a.seriesType, | ||
r=a.seriesTypes;l("boxplot","column",{threshold:null,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\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%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:["low","q1","median", | ||
"q3","high"],toYData:function(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",pointAttribs:function(a){var b=this.options,d=a&&a.color||this.color;return{fill:a.fillColor||b.fillColor||d,stroke:b.lineColor||d,"stroke-width":b.lineWidth||0}},drawDataLabels:u,translate:function(){var a=this.yAxis,b=this.pointArrayMap;r.column.prototype.translate.apply(this);p(this.points,function(d){p(b,function(b){null!==d[b]&&(d[b+"Plot"]=a.translate(d[b],0,1,0,1))})})},drawPoints:function(){var a= | ||
this,b=a.options,d=a.chart.renderer,g,m,n,c,k,h,q=0,f,t,l,r,x=!1!==a.doQuartiles,u,A=a.options.whiskerLength;p(a.points,function(e){var p=e.graphic,z=p?"animate":"attr",y=e.shapeArgs,w={},C={},H={},I=e.color||a.color;void 0!==e.plotY&&(f=y.width,t=Math.floor(y.x),l=t+f,r=Math.round(f/2),g=Math.floor(x?e.q1Plot:e.lowPlot),m=Math.floor(x?e.q3Plot:e.lowPlot),n=Math.floor(e.highPlot),c=Math.floor(e.lowPlot),p||(e.graphic=p=d.g("point").add(a.group),e.stem=d.path().addClass("highcharts-boxplot-stem").add(p), | ||
A&&(e.whiskers=d.path().addClass("highcharts-boxplot-whisker").add(p)),x&&(e.box=d.path(void 0).addClass("highcharts-boxplot-box").add(p)),e.medianShape=d.path(void 0).addClass("highcharts-boxplot-median").add(p),w.stroke=e.stemColor||b.stemColor||I,w["stroke-width"]=v(e.stemWidth,b.stemWidth,b.lineWidth),w.dashstyle=e.stemDashStyle||b.stemDashStyle,e.stem.attr(w),A&&(C.stroke=e.whiskerColor||b.whiskerColor||I,C["stroke-width"]=v(e.whiskerWidth,b.whiskerWidth,b.lineWidth),e.whiskers.attr(C)),x&&(p= | ||
a.pointAttribs(e),e.box.attr(p)),H.stroke=e.medianColor||b.medianColor||I,H["stroke-width"]=v(e.medianWidth,b.medianWidth,b.lineWidth),e.medianShape.attr(H)),h=e.stem.strokeWidth()%2/2,q=t+r+h,e.stem[z]({d:["M",q,m,"L",q,n,"M",q,g,"L",q,c]}),x&&(h=e.box.strokeWidth()%2/2,g=Math.floor(g)+h,m=Math.floor(m)+h,t+=h,l+=h,e.box[z]({d:["M",t,m,"L",t,g,"L",l,g,"L",l,m,"L",t,m,"z"]})),A&&(h=e.whiskers.strokeWidth()%2/2,n+=h,c+=h,u=/%$/.test(A)?r*parseFloat(A)/100:A/2,e.whiskers[z]({d:["M",q-u,n,"L",q+u,n, | ||
"M",q-u,c,"L",q+u,c]})),k=Math.round(e.medianPlot),h=e.medianShape.strokeWidth()%2/2,k+=h,e.medianShape[z]({d:["M",t,k,"L",l,k]}))})},setStackedPoints:u})})(w);(function(a){var p=a.each,u=a.noop,v=a.seriesType,l=a.seriesTypes;v("errorbar","boxplot",{color:"#000000",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(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:l.arearange?function(){var a=this.pointValKey;l.arearange.prototype.drawDataLabels.call(this);p(this.data,function(e){e.y=e[a]})}:u,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||l.column.prototype.getColumnMetrics.call(this)}})})(w);(function(a){var p=a.correctFloat,u=a.isNumber,v=a.pick,l=a.Point,r=a.Series,e=a.seriesType,b=a.seriesTypes; | ||
e("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",translate:function(){var a=this.options,g=this.yAxis,m,e,c,k,h,q,f,t,l,r=v(a.minPointLength,5),x=r/2,u=a.threshold,w=a.stacking,y;b.column.prototype.translate.apply(this);f=t=u;e=this.points;m=0;for(a=e.length;m<a;m++)c=e[m],q=this.processedYData[m],k=c.shapeArgs,h=w&&g.stacks[(this.negStacks&&q<u?"-":"")+this.stackKey],y=this.getStackIndicator(y, | ||
c.x),l=h?h[c.x].points[this.index+","+m+","+y.index]:[0,q],c.isSum?c.y=p(q):c.isIntermediateSum&&(c.y=p(q-t)),h=Math.max(f,f+c.y)+l[0],k.y=g.toPixels(h,!0),c.isSum?(k.y=g.toPixels(l[1],!0),k.height=Math.min(g.toPixels(l[0],!0),g.len)-k.y):c.isIntermediateSum?(k.y=g.toPixels(l[1],!0),k.height=Math.min(g.toPixels(t,!0),g.len)-k.y,t=l[1]):(k.height=0<q?g.toPixels(f,!0)-k.y:g.toPixels(f,!0)-g.toPixels(f-q,!0),f+=q),0>k.height&&(k.y+=k.height,k.height*=-1),c.plotY=k.y=Math.round(k.y)-this.borderWidth% | ||
2/2,k.height=Math.max(Math.round(k.height),.001),c.yBottom=k.y+k.height,k.height<=r&&!c.isNull?(k.height=r,k.y-=x,c.plotY=k.y,c.minPointLengthOffset=0>c.y?-x:x):c.minPointLengthOffset=0,k=c.plotY+(c.negative?k.height:0),this.chart.inverted?c.tooltipPos[0]=g.len-k:c.tooltipPos[1]=k},processData:function(b){var a=this.yData,d=this.options.data,e,c=a.length,k,h,q,f,t,l;h=k=q=f=this.options.threshold||0;for(l=0;l<c;l++)t=a[l],e=d&&d[l]?d[l]:{},"sum"===t||e.isSum?a[l]=p(h):"intermediateSum"===t||e.isIntermediateSum? | ||
a[l]=p(k):(h+=t,k+=t),q=Math.min(h,q),f=Math.max(h,f);r.prototype.processData.call(this,b);this.dataMin=q;this.dataMax=f},toYData:function(b){return b.isSum?0===b.x?null:"sum":b.isIntermediateSum?0===b.x?null:"intermediateSum":b.y},pointAttribs:function(a,g){var d=this.options.upColor;d&&!a.options.color&&(a.color=0<a.y?d:null);a=b.column.prototype.pointAttribs.call(this,a,g);delete a.dashstyle;return a},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var b=this.data,a=b.length,e= | ||
this.graph.strokeWidth()+this.borderWidth,e=Math.round(e)%2/2,n=[],c,k,h;for(h=1;h<a;h++)k=b[h].shapeArgs,c=b[h-1].shapeArgs,k=["M",c.x+c.width,c.y+b[h-1].minPointLengthOffset+e,"L",k.x,c.y+b[h-1].minPointLengthOffset+e],0>b[h-1].y&&(k[2]+=c.height,k[5]+=c.height),n=n.concat(k);return n},drawGraph:function(){r.prototype.drawGraph.call(this);this.graph.attr({d:this.getCrispPath()})},getExtremes:a.noop},{getClassName:function(){var b=l.prototype.getClassName.call(this);this.isSum?b+=" highcharts-sum": | ||
this.isIntermediateSum&&(b+=" highcharts-intermediate-sum");return b},isValid:function(){return u(this.y,!0)||this.isSum||this.isIntermediateSum}})})(w);(function(a){var p=a.Series,u=a.seriesType,v=a.seriesTypes;u("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=p.prototype.getGraphPath.call(this),r=a.length+1;r--;)(r===a.length||"M"===a[r])&&0<r&&a.splice(r, | ||
0,"z");return this.areaPath=a},drawGraph:function(){this.options.fillColor=this.color;v.area.prototype.drawGraph.call(this)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawTracker:p.prototype.drawTracker,setStackedPoints:a.noop})})(w);(function(a){var p=a.arrayMax,u=a.arrayMin,v=a.Axis,l=a.color,r=a.each,e=a.isNumber,b=a.noop,d=a.pick,g=a.pInt,m=a.Point,n=a.Series,c=a.seriesType,k=a.seriesTypes;c("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"}, | ||
marker:{lineColor:null,lineWidth:1,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"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["markerGroup","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",pointAttribs:function(b,a){var c=d(this.options.marker.fillOpacity,.5);b=n.prototype.pointAttribs.call(this, | ||
b,a);1!==c&&(b.fill=l(b.fill).setOpacity(c).get("rgba"));return b},getRadii:function(b,a,c,d){var f,g,h,k=this.zData,e=[],m=this.options,n="width"!==m.sizeBy,t=m.zThreshold,q=a-b;g=0;for(f=k.length;g<f;g++)h=k[g],m.sizeByAbsoluteValue&&null!==h&&(h=Math.abs(h-t),a=Math.max(a-t,Math.abs(b-t)),b=0),null===h?h=null:h<b?h=c/2-1:(h=0<q?(h-b)/q:.5,n&&0<=h&&(h=Math.sqrt(h)),h=Math.ceil(c+h*(d-c))/2),e.push(h);this.radii=e},animate:function(b){var a=this.options.animation;b||(r(this.points,function(b){var c= | ||
b.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:b.plotX,y:b.plotY,width:1,height:1}),c.animate(d,a))}),this.animate=null)},translate:function(){var b,c=this.data,d,g,m=this.radii;k.scatter.prototype.translate.call(this);for(b=c.length;b--;)d=c[b],g=m?m[b]:0,e(g)&&g>=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:g,width:2*g,height:2*g}),d.dlBox={x:d.plotX-g,y:d.plotY-g,width:2*g,height:2*g}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:k.column.prototype.alignDataLabel, | ||
buildKDTree:b,applyZones:b},{haloPath:function(b){return m.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});v.prototype.beforePadding=function(){var b=this,a=this.len,c=this.chart,k=0,m=a,n=this.isXAxis,l=n?"xData":"yData",v=this.min,w={},y=Math.min(c.plotWidth,c.plotHeight),D=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-v,B=a/F,G=[];r(this.series,function(a){var f=a.options;!a.bubblePadding||!a.visible&&c.options.chart.ignoreHiddenSeries||(b.allowZoomOutside= | ||
!0,G.push(a),n&&(r(["minSize","maxSize"],function(b){var a=f[b],c=/%$/.test(a),a=g(a);w[b]=c?y*a/100:a}),a.minPxSize=w.minSize,a.maxPxSize=Math.max(w.maxSize,w.minSize),a=a.zData,a.length&&(D=d(f.zMin,Math.min(D,Math.max(u(a),!1===f.displayNegative?f.zThreshold:-Number.MAX_VALUE))),E=d(f.zMax,Math.max(E,p(a))))))});r(G,function(a){var c=a[l],d=c.length,g;n&&a.getRadii(D,E,a.minPxSize,a.maxPxSize);if(0<F)for(;d--;)e(c[d])&&b.dataMin<=c[d]&&c[d]<=b.dataMax&&(g=a.radii[d],k=Math.min((c[d]-v)*B-g,k), | ||
m=Math.max((c[d]-v)*B+g,m))});G.length&&0<F&&!this.isLog&&(m-=a,B*=(a+k-m)/a,r([["min","userMin",k],["max","userMax",m]],function(a){void 0===d(b.options[a[0]],b[a[1]])&&(b[a[0]]+=a[2]/B)}))}})(w);(function(a){function p(b,a){var d=this.chart,e=this.options.animation,n=this.group,c=this.markerGroup,k=this.xAxis.center,h=d.plotLeft,l=d.plotTop;d.polar?d.renderer.isSVG&&(!0===e&&(e={}),a?(b={translateX:k[0]+h,translateY:k[1]+l,scaleX:.001,scaleY:.001},n.attr(b),c&&c.attr(b)):(b={translateX:h,translateY:l, | ||
scaleX:1,scaleY:1},n.animate(b,e),c&&c.animate(b,e),this.animate=null)):b.call(this,a)}var u=a.each,v=a.pick,l=a.seriesTypes,r=a.wrap,e=a.Series.prototype;a=a.Pointer.prototype;e.searchPointByAngle=function(b){var a=this.chart,g=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(b.chartX-g[0]-a.plotLeft,b.chartY-g[1]-a.plotTop)})};r(e,"buildKDTree",function(b){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.kdDimensions=2);b.apply(this)}); | ||
e.toXY=function(b){var a,g=this.chart,e=b.plotX;a=b.plotY;b.rectPlotX=e;b.rectPlotY=a;a=this.xAxis.postTranslate(b.plotX,this.yAxis.len-a);b.plotX=b.polarPlotX=a.x-g.plotLeft;b.plotY=b.polarPlotY=a.y-g.plotTop;this.kdByAngle?(g=(e/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>g&&(g+=360),b.clientX=g):b.clientX=b.plotX};l.spline&&r(l.spline.prototype,"getPointSpline",function(a,d,g,e){var b,c,k,h,m,f,l;this.chart.polar?(b=g.plotX,c=g.plotY,a=d[e-1],k=d[e+1],this.connectEnds&&(a||(a=d[d.length- | ||
2]),k||(k=d[1])),a&&k&&(h=a.plotX,m=a.plotY,d=k.plotX,f=k.plotY,h=(1.5*b+h)/2.5,m=(1.5*c+m)/2.5,k=(1.5*b+d)/2.5,l=(1.5*c+f)/2.5,d=Math.sqrt(Math.pow(h-b,2)+Math.pow(m-c,2)),f=Math.sqrt(Math.pow(k-b,2)+Math.pow(l-c,2)),h=Math.atan2(m-c,h-b),m=Math.atan2(l-c,k-b),l=Math.PI/2+(h+m)/2,Math.abs(h-l)>Math.PI/2&&(l-=Math.PI),h=b+Math.cos(l)*d,m=c+Math.sin(l)*d,k=b+Math.cos(Math.PI+l)*f,l=c+Math.sin(Math.PI+l)*f,g.rightContX=k,g.rightContY=l),e?(g=["C",a.rightContX||a.plotX,a.rightContY||a.plotY,h||b,m|| | ||
c,b,c],a.rightContX=a.rightContY=null):g=["M",b,c]):g=a.call(this,d,g,e);return g});r(e,"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])});r(e,"getGraphPath",function(a,d){var b=this,e,n;if(this.chart.polar){d=d||this.points;for(e=0;e<d.length;e++)if(!d[e].isNull){n=e;break}!1!==this.options.connectEnds&&void 0!==n&&(this.connectEnds=!0,d.splice(d.length,0,d[n])); | ||
u(d,function(a){void 0===a.polarPlotY&&b.toXY(a)})}return a.apply(this,[].slice.call(arguments,1))});r(e,"animate",p);l.column&&(l=l.column.prototype,l.polarArc=function(a,d,g,e){var b=this.xAxis.center,c=this.yAxis.len;return this.chart.renderer.symbols.arc(b[0],b[1],c-d,null,{start:g,end:e,innerR:c-v(a,c)})},r(l,"animate",p),r(l,"translate",function(a){var b=this.xAxis,g=b.startAngleRad,e,l,c;this.preventPostTranslate=!0;a.call(this);if(b.isRadial)for(e=this.points,c=e.length;c--;)l=e[c],a=l.barX+ | ||
g,l.shapeType="path",l.shapeArgs={d:this.polarArc(l.yBottom,l.plotY,a,a+l.pointWidth)},this.toXY(l),l.tooltipPos=[l.plotX,l.plotY],l.ttBelow=l.plotY>b.center[1]}),r(l,"alignDataLabel",function(a,d,g,l,n,c){this.chart.polar?(a=d.rectPlotX/Math.PI*180,null===l.align&&(l.align=20<a&&160>a?"left":200<a&&340>a?"right":"center"),null===l.verticalAlign&&(l.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),e.alignDataLabel.call(this,d,g,l,n,c)):a.call(this,d,g,l,n,c)}));r(a,"getCoordinates", | ||
function(a,d){var b=this.chart,e={xAxis:[],yAxis:[]};b.polar?u(b.axes,function(a){var c=a.isXAxis,g=a.center,h=d.chartX-g[0]-b.plotLeft,g=d.chartY-g[1]-b.plotTop;e[c?"xAxis":"yAxis"].push({axis:a,value:a.translate(c?Math.PI-Math.atan2(h,g):Math.sqrt(Math.pow(h,2)+Math.pow(g,2)),!0)})}):e=a.call(this,d);return e})})(w)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -8,43 +8,43 @@ 3D features for Highcharts JS | ||
*/ | ||
(function(t){"object"===typeof module&&module.exports?module.exports=t:t(Highcharts)})(function(t){(function(a){var r=a.deg2rad,d=a.pick;a.perspective=function(p,q,y){var k=q.options.chart.options3d,m=y?q.inverted:!1,l=q.plotWidth/2,e=q.plotHeight/2,f=k.depth/2,n=d(k.depth,1)*d(k.viewDistance,0),c=q.scale3d||1,b=r*k.beta*(m?-1:1),k=r*k.alpha*(m?-1:1),h=Math.cos(k),u=Math.cos(-b),z=Math.sin(k),A=Math.sin(-b);y||(l+=q.plotLeft,e+=q.plotTop);return a.map(p,function(b){var a,k;k=(m?b.y:b.x)-l;var d=(m? | ||
b.x:b.y)-e,p=(b.z||0)-f;a=u*k-A*p;b=-z*A*k+h*d-u*z*p;k=h*A*k+z*d+h*u*p;d=0<n&&n<Number.POSITIVE_INFINITY?n/(k+f+n):1;a=a*d*c+l;b=b*d*c+e;return{x:m?b:a,y:m?a:b,z:k*c+f}})};a.pointCameraDistance=function(a,q){var p=q.options.chart.options3d,k=q.plotWidth/2;q=q.plotHeight/2;p=d(p.depth,1)*d(p.viewDistance,0)+p.depth;return Math.sqrt(Math.pow(k-a.plotX,2)+Math.pow(q-a.plotY,2)+Math.pow(p-a.plotZ,2))}})(t);(function(a){function r(b){var c=0,g,D;for(g=0;g<b.length;g++)D=(g+1)%b.length,c+=b[g].x*b[D].y- | ||
b[D].x*b[g].y;return c/2}function d(b){var c=0,g;for(g=0;g<b.length;g++)c+=b[g].z;return b.length?c/b.length:0}function p(b,c,g,D,a,h,F,f){var e=[],k=h-a;return h>a&&h-a>Math.PI/2+.0001?(e=e.concat(p(b,c,g,D,a,a+Math.PI/2,F,f)),e=e.concat(p(b,c,g,D,a+Math.PI/2,h,F,f))):h<a&&a-h>Math.PI/2+.0001?(e=e.concat(p(b,c,g,D,a,a-Math.PI/2,F,f)),e=e.concat(p(b,c,g,D,a-Math.PI/2,h,F,f))):["C",b+g*Math.cos(a)-g*v*k*Math.sin(a)+F,c+D*Math.sin(a)+D*v*k*Math.cos(a)+f,b+g*Math.cos(h)+g*v*k*Math.sin(h)+F,c+D*Math.sin(h)- | ||
D*v*k*Math.cos(h)+f,b+g*Math.cos(h)+F,c+D*Math.sin(h)+f]}var q=Math.cos,y=Math.PI,k=Math.sin,m=a.animObject,l=a.charts,e=a.color,f=a.defined,n=a.deg2rad,c=a.each,b=a.extend,h=a.inArray,u=a.map,z=a.merge,A=a.perspective,t=a.pick,G=a.SVGElement,C=a.SVGRenderer,w=a.wrap,v=4*(Math.sqrt(2)-1)/3/(y/2);w(C.prototype,"init",function(b){b.apply(this,[].slice.call(arguments,1));c([{name:"darker",slope:.6},{name:"brighter",slope:1.4}],function(b){this.definition({tagName:"filter",id:"highcharts-"+b.name,children:[{tagName:"feComponentTransfer", | ||
children:[{tagName:"feFuncR",type:"linear",slope:b.slope},{tagName:"feFuncG",type:"linear",slope:b.slope},{tagName:"feFuncB",type:"linear",slope:b.slope}]}]})},this)});C.prototype.toLinePath=function(b,a){var g=[];c(b,function(b){g.push("L",b.x,b.y)});b.length&&(g[0]="M",a&&g.push("Z"));return g};C.prototype.cuboid=function(b){var c=this.g(),g=c.destroy;b=this.cuboidPath(b);c.front=this.path(b[0]).attr({"class":"highcharts-3d-front",zIndex:b[3]}).add(c);c.top=this.path(b[1]).attr({"class":"highcharts-3d-top", | ||
zIndex:b[4]}).add(c);c.side=this.path(b[2]).attr({"class":"highcharts-3d-side",zIndex:b[5]}).add(c);c.fillSetter=function(b){this.front.attr({fill:b});this.top.attr({fill:e(b).brighten(.1).get()});this.side.attr({fill:e(b).brighten(-.1).get()});this.color=b;return this};c.opacitySetter=function(b){this.front.attr({opacity:b});this.top.attr({opacity:b});this.side.attr({opacity:b});return this};c.attr=function(b){if(b.shapeArgs||f(b.x))b=this.renderer.cuboidPath(b.shapeArgs||b),this.front.attr({d:b[0], | ||
zIndex:b[3]}),this.top.attr({d:b[1],zIndex:b[4]}),this.side.attr({d:b[2],zIndex:b[5]});else return a.SVGElement.prototype.attr.call(this,b);return this};c.animate=function(b,c,g){f(b.x)&&f(b.y)?(b=this.renderer.cuboidPath(b),this.front.attr({zIndex:b[3]}).animate({d:b[0]},c,g),this.top.attr({zIndex:b[4]}).animate({d:b[1]},c,g),this.side.attr({zIndex:b[5]}).animate({d:b[2]},c,g),this.attr({zIndex:-b[6]})):b.opacity?(this.front.animate(b,c,g),this.top.animate(b,c,g),this.side.animate(b,c,g)):G.prototype.animate.call(this, | ||
b,c,g);return this};c.destroy=function(){this.front.destroy();this.top.destroy();this.side.destroy();return g.call(this)};c.attr({zIndex:-b[6]});return c};C.prototype.cuboidPath=function(b){function c(b){return n[b]}var g=b.x,a=b.y,h=b.z,f=b.height,e=b.width,k=b.depth,n=[{x:g,y:a,z:h},{x:g+e,y:a,z:h},{x:g+e,y:a+f,z:h},{x:g,y:a+f,z:h},{x:g,y:a+f,z:h+k},{x:g+e,y:a+f,z:h+k},{x:g+e,y:a,z:h+k},{x:g,y:a,z:h+k}],n=A(n,l[this.chartIndex],b.insidePlotArea),h=function(b,a){var g=[];b=u(b,c);a=u(a,c);0>r(b)? | ||
g=b:0>r(a)&&(g=a);return g};b=h([3,2,1,0],[7,6,5,4]);g=[4,5,2,3];a=h([1,6,7,0],g);h=h([1,2,5,6],[0,7,4,3]);return[this.toLinePath(b,!0),this.toLinePath(a,!0),this.toLinePath(h,!0),d(b),d(a),d(h),9E9*d(u(g,c))]};a.SVGRenderer.prototype.arc3d=function(a){function f(b){var c=!1,a={},g;for(g in b)-1!==h(g,l)&&(a[g]=b[g],delete b[g],c=!0);return c?a:!1}var g=this.g(),k=g.renderer,l="x y r innerR start end".split(" ");a=z(a);a.alpha*=n;a.beta*=n;g.top=k.path();g.side1=k.path();g.side2=k.path();g.inn=k.path(); | ||
g.out=k.path();g.onAdd=function(){var b=g.parentGroup,a=g.attr("class");g.top.add(g);c(["out","inn","side1","side2"],function(c){g[c].addClass(a+" highcharts-3d-side").add(b)})};g.setPaths=function(b){var c=g.renderer.arc3dPath(b),a=100*c.zTop;g.attribs=b;g.top.attr({d:c.top,zIndex:c.zTop});g.inn.attr({d:c.inn,zIndex:c.zInn});g.out.attr({d:c.out,zIndex:c.zOut});g.side1.attr({d:c.side1,zIndex:c.zSide1});g.side2.attr({d:c.side2,zIndex:c.zSide2});g.zIndex=a;g.attr({zIndex:a});b.center&&(g.top.setRadialReference(b.center), | ||
delete b.center)};g.setPaths(a);g.fillSetter=function(b){var c=e(b).brighten(-.1).get();this.fill=b;this.side1.attr({fill:c});this.side2.attr({fill:c});this.inn.attr({fill:c});this.out.attr({fill:c});this.top.attr({fill:b});return this};c(["opacity","translateX","translateY","visibility"],function(b){g[b+"Setter"]=function(b,a){g[a]=b;c(["out","inn","side1","side2","top"],function(c){g[c].attr(a,b)})}});w(g,"attr",function(c,a){var h;"object"===typeof a&&(h=f(a))&&(b(g.attribs,h),g.setPaths(g.attribs)); | ||
return c.apply(this,[].slice.call(arguments,1))});w(g,"animate",function(b,c,a,g){var h,k=this.attribs,e;delete c.center;delete c.z;delete c.depth;delete c.alpha;delete c.beta;e=m(t(a,this.renderer.globalAnimation));e.duration&&(c=z(c),h=f(c),c.dummy=1,h&&(e.step=function(b,c){function a(b){return k[b]+(t(h[b],k[b])-k[b])*c.pos}"dummy"===c.prop&&c.elem.setPaths(z(k,{x:a("x"),y:a("y"),r:a("r"),innerR:a("innerR"),start:a("start"),end:a("end")}))}),a=e);return b.call(this,c,a,g)});g.destroy=function(){this.top.destroy(); | ||
this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();G.prototype.destroy.call(this)};g.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};g.show=function(){this.top.show();this.out.show();this.inn.show();this.side1.show();this.side2.show()};return g};C.prototype.arc3dPath=function(b){function c(b){b%=2*Math.PI;b>Math.PI&&(b=2*Math.PI-b);return b}var a=b.x,h=b.y,f=b.start,e=b.end-.00001,n=b.r,l=b.innerR,m=b.depth,d=b.alpha, | ||
u=b.beta,z=Math.cos(f),r=Math.sin(f);b=Math.cos(e);var A=Math.sin(e),x=n*Math.cos(u),n=n*Math.cos(d),v=l*Math.cos(u),w=l*Math.cos(d),l=m*Math.sin(u),B=m*Math.sin(d),m=["M",a+x*z,h+n*r],m=m.concat(p(a,h,x,n,f,e,0,0)),m=m.concat(["L",a+v*b,h+w*A]),m=m.concat(p(a,h,v,w,e,f,0,0)),m=m.concat(["Z"]),C=0<u?Math.PI/2:0,u=0<d?0:Math.PI/2,C=f>-C?f:e>-C?-C:f,E=e<y-u?e:f<y-u?y-u:e,t=2*y-u,d=["M",a+x*q(C),h+n*k(C)],d=d.concat(p(a,h,x,n,C,E,0,0));e>t&&f<t?(d=d.concat(["L",a+x*q(E)+l,h+n*k(E)+B]),d=d.concat(p(a, | ||
h,x,n,E,t,l,B)),d=d.concat(["L",a+x*q(t),h+n*k(t)]),d=d.concat(p(a,h,x,n,t,e,0,0)),d=d.concat(["L",a+x*q(e)+l,h+n*k(e)+B]),d=d.concat(p(a,h,x,n,e,t,l,B)),d=d.concat(["L",a+x*q(t),h+n*k(t)]),d=d.concat(p(a,h,x,n,t,E,0,0))):e>y-u&&f<y-u&&(d=d.concat(["L",a+x*Math.cos(E)+l,h+n*Math.sin(E)+B]),d=d.concat(p(a,h,x,n,E,e,l,B)),d=d.concat(["L",a+x*Math.cos(e),h+n*Math.sin(e)]),d=d.concat(p(a,h,x,n,e,E,0,0)));d=d.concat(["L",a+x*Math.cos(E)+l,h+n*Math.sin(E)+B]);d=d.concat(p(a,h,x,n,E,C,l,B));d=d.concat(["Z"]); | ||
u=["M",a+v*z,h+w*r];u=u.concat(p(a,h,v,w,f,e,0,0));u=u.concat(["L",a+v*Math.cos(e)+l,h+w*Math.sin(e)+B]);u=u.concat(p(a,h,v,w,e,f,l,B));u=u.concat(["Z"]);z=["M",a+x*z,h+n*r,"L",a+x*z+l,h+n*r+B,"L",a+v*z+l,h+w*r+B,"L",a+v*z,h+w*r,"Z"];a=["M",a+x*b,h+n*A,"L",a+x*b+l,h+n*A+B,"L",a+v*b+l,h+w*A+B,"L",a+v*b,h+w*A,"Z"];A=Math.atan2(B,-l);h=Math.abs(e+A);b=Math.abs(f+A);f=Math.abs((f+e)/2+A);h=c(h);b=c(b);f=c(f);f*=1E5;e=1E5*b;h*=1E5;return{top:m,zTop:1E5*Math.PI+1,out:d,zOut:Math.max(f,e,h),inn:u,zInn:Math.max(f, | ||
e,h),side1:z,zSide1:.99*h,side2:a,zSide2:.99*e}}})(t);(function(a){function r(a,f){var e=a.plotLeft,c=a.plotWidth+e,b=a.plotTop,h=a.plotHeight+b,k=e+a.plotWidth/2,d=b+a.plotHeight/2,l=Number.MAX_VALUE,m=-Number.MAX_VALUE,q=Number.MAX_VALUE,r=-Number.MAX_VALUE,w,v=1;w=[{x:e,y:b,z:0},{x:e,y:b,z:f}];p([0,1],function(b){w.push({x:c,y:w[b].y,z:w[b].z})});p([0,1,2,3],function(b){w.push({x:w[b].x,y:h,z:w[b].z})});w=y(w,a,!1);p(w,function(b){l=Math.min(l,b.x);m=Math.max(m,b.x);q=Math.min(q,b.y);r=Math.max(r, | ||
b.y)});e>l&&(v=Math.min(v,1-Math.abs((e+k)/(l+k))%1));c<m&&(v=Math.min(v,(c-k)/(m-k)));b>q&&(v=0>q?Math.min(v,(b+d)/(-q+b+d)):Math.min(v,1-(b+d)/(q+d)%1));h<r&&(v=Math.min(v,Math.abs((h-d)/(r-d))));return v}var d=a.Chart,p=a.each,q=a.merge,y=a.perspective,k=a.pick,m=a.wrap;d.prototype.is3d=function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled};d.prototype.propsRequireDirtyBox.push("chart.options3d");d.prototype.propsRequireUpdateSeries.push("chart.options3d");a.wrap(a.Chart.prototype, | ||
"isInsidePlot",function(a){return this.is3d()||a.apply(this,[].slice.call(arguments,1))});var l=a.getOptions();q(!0,l,{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,frame:{bottom:{size:1},side:{size:1},back:{size:1}}}}});m(d.prototype,"getContainer",function(a){a.apply(this,[].slice.call(arguments,1));this.renderer.definition({tagName:"style",textContent:".highcharts-3d-top{filter: url(#highcharts-brighter)}\n.highcharts-3d-side{filter: url(#highcharts-darker)}\n"})}); | ||
m(d.prototype,"setClassName",function(a){a.apply(this,[].slice.call(arguments,1));this.is3d()&&(this.container.className+=" highcharts-3d-chart")});a.wrap(a.Chart.prototype,"setChartSize",function(a){var f=this.options.chart.options3d;a.apply(this,[].slice.call(arguments,1));if(this.is3d()){var e=this.inverted,c=this.clipBox,b=this.margin;c[e?"y":"x"]=-(b[3]||0);c[e?"x":"y"]=-(b[0]||0);c[e?"height":"width"]=this.chartWidth+(b[3]||0)+(b[1]||0);c[e?"width":"height"]=this.chartHeight+(b[0]||0)+(b[2]|| | ||
0);this.scale3d=1;!0===f.fitToPlot&&(this.scale3d=r(this,f.depth))}});m(d.prototype,"redraw",function(a){this.is3d()&&(this.isDirtyBox=!0);a.apply(this,[].slice.call(arguments,1))});m(d.prototype,"renderSeries",function(a){var f=this.series.length;if(this.is3d())for(;f--;)a=this.series[f],a.translate(),a.render();else a.call(this)});d.prototype.retrieveStacks=function(a){var f=this.series,e={},c,b=1;p(this.series,function(h){c=k(h.options.stack,a?0:f.length-1-h.index);e[c]?e[c].series.push(h):(e[c]= | ||
{series:[h],position:b},b++)});e.totalStacks=b+1;return e}})(t);(function(a){var r,d=a.Axis,p=a.Chart,q=a.each,y=a.extend,k=a.merge,m=a.perspective,l=a.pick,e=a.splat,f=a.Tick,n=a.wrap;n(d.prototype,"setOptions",function(a,b){a.call(this,b);this.chart.is3d()&&(a=this.options,a.tickWidth=l(a.tickWidth,0),a.gridLineWidth=l(a.gridLineWidth,1))});n(d.prototype,"render",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var b=this.chart,c=b.renderer,f=b.options.chart.options3d, | ||
e=f.frame,d=e.bottom,k=e.back,e=e.side,l=f.depth,n=this.height,m=this.width,p=this.left,q=this.top;this.isZAxis||(this.horiz?(d={x:p,y:q+(b.xAxis[0].opposite?-d.size:n),z:0,width:m,height:d.size,depth:l,insidePlotArea:!1},this.bottomFrame?this.bottomFrame.animate(d):this.bottomFrame=c.cuboid(d).attr({"class":"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:b.yAxis[0].reversed&&0<f.alpha?4:-1}).add()):(f={x:p+(b.yAxis[0].opposite?0:-e.size),y:q+(b.xAxis[0].opposite?-d.size:0),z:l,width:m+e.size, | ||
height:n+d.size,depth:k.size,insidePlotArea:!1},this.backFrame?this.backFrame.animate(f):this.backFrame=c.cuboid(f).attr({"class":"highcharts-3d-frame highcharts-3d-frame-back",zIndex:-3}).add(),b={x:p+(b.yAxis[0].opposite?m:-e.size),y:q+(b.xAxis[0].opposite?-d.size:0),z:0,width:e.size,height:n+d.size,depth:l,insidePlotArea:!1},this.sideFrame?this.sideFrame.animate(b):this.sideFrame=c.cuboid(b).attr({"class":"highcharts-3d-frame highcharts-3d-frame-side",zIndex:-2}).add()))}});n(d.prototype,"getPlotLinePath", | ||
function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||null===b)return b;var c=this.chart,e=c.options.chart.options3d,c=this.isZAxis?c.plotWidth:e.depth,e=this.opposite;this.horiz&&(e=!e);b=[this.swapZ({x:b[1],y:b[2],z:e?c:0}),this.swapZ({x:b[1],y:b[2],z:c}),this.swapZ({x:b[4],y:b[5],z:c}),this.swapZ({x:b[4],y:b[5],z:e?0:c})];b=m(b,this.chart,!1);return b=this.chart.renderer.toLinePath(b,!1)});n(d.prototype,"getLinePath",function(a){return this.chart.is3d()?[]:a.apply(this, | ||
[].slice.call(arguments,1))});n(d.prototype,"getPlotBandPath",function(a){if(!this.chart.is3d())return a.apply(this,[].slice.call(arguments,1));var b=arguments,c=b[1],b=this.getPlotLinePath(b[2]);(c=this.getPlotLinePath(c))&&b?c.push("L",b[10],b[11],"L",b[7],b[8],"L",b[4],b[5],"L",b[1],b[2]):c=null;return c});n(f.prototype,"getMarkPath",function(a){var b=a.apply(this,[].slice.call(arguments,1));if(!this.axis.chart.is3d())return b;b=[this.axis.swapZ({x:b[1],y:b[2],z:0}),this.axis.swapZ({x:b[4],y:b[5], | ||
z:0})];b=m(b,this.axis.chart,!1);return b=["M",b[0].x,b[0].y,"L",b[1].x,b[1].y]});n(f.prototype,"getLabelPosition",function(a){var b=a.apply(this,[].slice.call(arguments,1));this.axis.chart.is3d()&&(b=m([this.axis.swapZ({x:b.x,y:b.y,z:0})],this.axis.chart,!1)[0]);return b});a.wrap(d.prototype,"getTitlePosition",function(a){var b=this.chart.is3d(),c,e;b&&(e=this.axisTitleMargin,this.axisTitleMargin=0);c=a.apply(this,[].slice.call(arguments,1));b&&(c=m([this.swapZ({x:c.x,y:c.y,z:0})],this.chart,!1)[0], | ||
c[this.horiz?"y":"x"]+=(this.horiz?1:-1)*(this.opposite?-1:1)*e,this.axisTitleMargin=e);return c});n(d.prototype,"drawCrosshair",function(a){var b=arguments;this.chart.is3d()&&b[2]&&(b[2]={plotX:b[2].plotXold||b[2].plotX,plotY:b[2].plotYold||b[2].plotY});a.apply(this,[].slice.call(b,1))});n(d.prototype,"destroy",function(a){q(["backFrame","bottomFrame","sideFrame"],function(b){this[b]&&(this[b]=this[b].destroy())},this);a.apply(this,[].slice.call(arguments,1))});d.prototype.swapZ=function(a,b){if(this.isZAxis){b= | ||
b?0:this.chart.plotLeft;var c=this.chart;return{x:b+(c.yAxis[0].opposite?a.z:c.xAxis[0].width-a.z),y:a.y,z:a.x-b}}return a};r=a.ZAxis=function(){this.isZAxis=!0;this.init.apply(this,arguments)};y(r.prototype,d.prototype);y(r.prototype,{setOptions:function(a){a=k({offset:0,lineWidth:0},a);d.prototype.setOptions.call(this,a);this.coll="zAxis"},setAxisSize:function(){d.prototype.setAxisSize.call(this);this.width=this.len=this.chart.options.chart.options3d.depth;this.right=this.chart.chartWidth-this.width- | ||
this.left},getSeriesExtremes:function(){var a=this,b=a.chart;a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.ignoreMinPadding=a.ignoreMaxPadding=null;a.buildStacks&&a.buildStacks();q(a.series,function(c){if(c.visible||!b.options.chart.ignoreHiddenSeries)a.hasVisibleSeries=!0,c=c.zData,c.length&&(a.dataMin=Math.min(l(a.dataMin,c[0]),Math.min.apply(null,c)),a.dataMax=Math.max(l(a.dataMax,c[0]),Math.max.apply(null,c)))})}});n(p.prototype,"getAxes",function(a){var b=this,c=this.options,c=c.zAxis=e(c.zAxis|| | ||
{});a.call(this);b.is3d()&&(this.zAxis=[],q(c,function(a,c){a.index=c;a.isX=!0;(new r(b,a)).setScale()}))})})(t);(function(a){function r(a){if(this.chart.is3d()){var e=this.chart.options.plotOptions.column.grouping;void 0===e||e||void 0===this.group.zIndex||this.zIndexSet||(this.group.attr({zIndex:10*this.group.zIndex}),this.zIndexSet=!0)}a.apply(this,[].slice.call(arguments,1))}var d=a.each,p=a.perspective,q=a.pick,y=a.Series,k=a.seriesTypes,m=a.svg;a=a.wrap;a(k.column.prototype,"translate",function(a){a.apply(this, | ||
[].slice.call(arguments,1));if(this.chart.is3d()){var e=this.chart,f=this.options,k=f.depth||25,c=(f.stacking?f.stack||0:this._i)*(k+(f.groupZPadding||1));!1!==f.grouping&&(c=0);c+=f.groupZPadding||1;d(this.data,function(b){if(null!==b.y){var a=b.shapeArgs,f=b.tooltipPos;b.shapeType="cuboid";a.z=c;a.depth=k;a.insidePlotArea=!0;f=p([{x:f[0],y:f[1],z:c}],e,!0)[0];b.tooltipPos=[f.x,f.y]}});this.z=c}});a(k.column.prototype,"animate",function(a){if(this.chart.is3d()){var e=arguments[1],f=this.yAxis,k= | ||
this,c=this.yAxis.reversed;m&&(e?d(k.data,function(b){null!==b.y&&(b.height=b.shapeArgs.height,b.shapey=b.shapeArgs.y,b.shapeArgs.height=1,c||(b.shapeArgs.y=b.stackY?b.plotY+f.translate(b.stackY):b.plotY+(b.negative?-b.height:b.height)))}):(d(k.data,function(b){null!==b.y&&(b.shapeArgs.height=b.height,b.shapeArgs.y=b.shapey,b.graphic&&b.graphic.animate(b.shapeArgs,k.options.animation))}),this.drawDataLabels(),k.animate=null))}else a.apply(this,[].slice.call(arguments,1))});a(k.column.prototype,"init", | ||
function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var e=this.options,f=e.grouping,d=e.stacking,c=q(this.yAxis.options.reversedStacks,!0),b=0;if(void 0===f||f){f=this.chart.retrieveStacks(d);b=e.stack||0;for(d=0;d<f[b].series.length&&f[b].series[d]!==this;d++);b=10*(f.totalStacks-f[b].position)+(c?d:-d);this.xAxis.reversed||(b=10*f.totalStacks-b)}e.zIndex=b}});a(y.prototype,"alignDataLabel",function(a){if(this.chart.is3d()&&("column"===this.type||"columnrange"===this.type)){var e= | ||
arguments[4],f={x:e.x,y:e.y,z:this.z},f=p([f],this.chart,!0)[0];e.x=f.x;e.y=f.y}a.apply(this,[].slice.call(arguments,1))});k.columnrange&&a(k.columnrange.prototype,"drawPoints",r);a(k.column.prototype,"drawPoints",r)})(t);(function(a){var r=a.deg2rad,d=a.each,p=a.seriesTypes,q=a.svg;a=a.wrap;a(p.pie.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var k=this,m=k.options,l=m.depth||0,e=k.chart.options.chart.options3d,f=e.alpha,n=e.beta,c=m.stacking?(m.stack|| | ||
0)*l:k._i*l,c=c+l/2;!1!==m.grouping&&(c=0);d(k.data,function(b){var a=b.shapeArgs;b.shapeType="arc3d";a.z=c;a.depth=.75*l;a.alpha=f;a.beta=n;a.center=k.center;a=(a.end+a.start)/2;b.slicedTranslation={translateX:Math.round(Math.cos(a)*m.slicedOffset*Math.cos(f*r)),translateY:Math.round(Math.sin(a)*m.slicedOffset*Math.cos(f*r))}})}});a(p.pie.prototype.pointClass.prototype,"haloPath",function(a){var d=arguments;return this.series.chart.is3d()?[]:a.call(this,d[1])});a(p.pie.prototype,"drawPoints",function(a){a.apply(this, | ||
[].slice.call(arguments,1));this.chart.is3d()&&d(this.points,function(a){var d=a.graphic;if(d)d[a.y&&a.visible?"show":"hide"]()})});a(p.pie.prototype,"drawDataLabels",function(a){if(this.chart.is3d()){var k=this.chart.options.chart.options3d;d(this.data,function(a){var l=a.shapeArgs,e=l.r,f=(l.start+l.end)/2,m=a.labelPos,c=-e*(1-Math.cos((l.alpha||k.alpha)*r))*Math.sin(f),b=e*(Math.cos((l.beta||k.beta)*r)-1)*Math.cos(f);d([0,2,4],function(a){m[a]+=b;m[a+1]+=c})})}a.apply(this,[].slice.call(arguments, | ||
1))});a(p.pie.prototype,"addPoint",function(a){a.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});a(p.pie.prototype,"animate",function(a){if(this.chart.is3d()){var d=arguments[1],m=this.options.animation,l=this.center,e=this.group,f=this.markerGroup;q&&(!0===m&&(m={}),d?(e.oldtranslateX=e.translateX,e.oldtranslateY=e.translateY,d={translateX:l[0],translateY:l[1],scaleX:.001,scaleY:.001},e.attr(d),f&&(f.attrSetters=e.attrSetters,f.attr(d))):(d={translateX:e.oldtranslateX, | ||
translateY:e.oldtranslateY,scaleX:1,scaleY:1},e.animate(d,m),f&&f.animate(d,m),this.animate=null))}else a.apply(this,[].slice.call(arguments,1))})})(t);(function(a){var r=a.perspective,d=a.pick,p=a.Point,q=a.seriesTypes,t=a.wrap;t(q.scatter.prototype,"translate",function(a){a.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var k=this.chart,l=d(this.zAxis,k.options.zAxis[0]),e=[],f,n,c;for(c=0;c<this.data.length;c++)f=this.data[c],n=l.isLog&&l.val2lin?l.val2lin(f.z):f.z,f.plotZ=l.translate(n), | ||
f.isInside=f.isInside?n>=l.min&&n<=l.max:!1,e.push({x:f.plotX,y:f.plotY,z:f.plotZ});k=r(e,k,!0);for(c=0;c<this.data.length;c++)f=this.data[c],l=k[c],f.plotXold=f.plotX,f.plotYold=f.plotY,f.plotZold=f.plotZ,f.plotX=l.x,f.plotY=l.y,f.plotZ=l.z}});t(q.scatter.prototype,"init",function(a,d,l){d.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"],this.pointArrayMap=["x","y","z"],this.parallelArrays=["x","y","z"],this.directTouch=!0);a=a.apply(this,[d,l]);this.chart.is3d()&&(this.tooltipOptions.pointFormat= | ||
this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e":"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e");return a});t(q.scatter.prototype,"pointAttribs",function(d,m){var k=d.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&m&&(k.zIndex=a.pointCameraDistance(m,this.chart));return k}); | ||
t(p.prototype,"applyOptions",function(a){var d=a.apply(this,[].slice.call(arguments,1));this.series.chart.is3d()&&void 0===d.z&&(d.z=0);return d})})(t)}); | ||
(function(t){"object"===typeof module&&module.exports?module.exports=t:t(Highcharts)})(function(t){(function(b){var r=b.deg2rad,d=b.pick;b.perspective=function(p,q,y){var k=q.options.chart.options3d,m=y?q.inverted:!1,l=q.plotWidth/2,e=q.plotHeight/2,f=k.depth/2,n=d(k.depth,1)*d(k.viewDistance,0),c=q.scale3d||1,a=r*k.beta*(m?-1:1),k=r*k.alpha*(m?-1:1),h=Math.cos(k),u=Math.cos(-a),z=Math.sin(k),A=Math.sin(-a);y||(l+=q.plotLeft,e+=q.plotTop);return b.map(p,function(a){var b,k;k=(m?a.y:a.x)-l;var d=(m? | ||
a.x:a.y)-e,p=(a.z||0)-f;b=u*k-A*p;a=-z*A*k+h*d-u*z*p;k=h*A*k+z*d+h*u*p;d=0<n&&n<Number.POSITIVE_INFINITY?n/(k+f+n):1;b=b*d*c+l;a=a*d*c+e;return{x:m?a:b,y:m?b:a,z:k*c+f}})};b.pointCameraDistance=function(b,q){var p=q.options.chart.options3d,k=q.plotWidth/2;q=q.plotHeight/2;p=d(p.depth,1)*d(p.viewDistance,0)+p.depth;return Math.sqrt(Math.pow(k-b.plotX,2)+Math.pow(q-b.plotY,2)+Math.pow(p-b.plotZ,2))}})(t);(function(b){function r(a){var c=0,g,D;for(g=0;g<a.length;g++)D=(g+1)%a.length,c+=a[g].x*a[D].y- | ||
a[D].x*a[g].y;return c/2}function d(a){var c=0,g;for(g=0;g<a.length;g++)c+=a[g].z;return a.length?c/a.length:0}function p(a,c,g,D,b,h,F,f){var e=[],k=h-b;return h>b&&h-b>Math.PI/2+.0001?(e=e.concat(p(a,c,g,D,b,b+Math.PI/2,F,f)),e=e.concat(p(a,c,g,D,b+Math.PI/2,h,F,f))):h<b&&b-h>Math.PI/2+.0001?(e=e.concat(p(a,c,g,D,b,b-Math.PI/2,F,f)),e=e.concat(p(a,c,g,D,b-Math.PI/2,h,F,f))):["C",a+g*Math.cos(b)-g*v*k*Math.sin(b)+F,c+D*Math.sin(b)+D*v*k*Math.cos(b)+f,a+g*Math.cos(h)+g*v*k*Math.sin(h)+F,c+D*Math.sin(h)- | ||
D*v*k*Math.cos(h)+f,a+g*Math.cos(h)+F,c+D*Math.sin(h)+f]}var q=Math.cos,y=Math.PI,k=Math.sin,m=b.animObject,l=b.charts,e=b.color,f=b.defined,n=b.deg2rad,c=b.each,a=b.extend,h=b.inArray,u=b.map,z=b.merge,A=b.perspective,t=b.pick,G=b.SVGElement,C=b.SVGRenderer,w=b.wrap,v=4*(Math.sqrt(2)-1)/3/(y/2);w(C.prototype,"init",function(a){a.apply(this,[].slice.call(arguments,1));c([{name:"darker",slope:.6},{name:"brighter",slope:1.4}],function(a){this.definition({tagName:"filter",id:"highcharts-"+a.name,children:[{tagName:"feComponentTransfer", | ||
children:[{tagName:"feFuncR",type:"linear",slope:a.slope},{tagName:"feFuncG",type:"linear",slope:a.slope},{tagName:"feFuncB",type:"linear",slope:a.slope}]}]})},this)});C.prototype.toLinePath=function(a,b){var g=[];c(a,function(a){g.push("L",a.x,a.y)});a.length&&(g[0]="M",b&&g.push("Z"));return g};C.prototype.cuboid=function(a){var c=this.g(),g=c.destroy;a=this.cuboidPath(a);c.front=this.path(a[0]).attr({"class":"highcharts-3d-front",zIndex:a[3]}).add(c);c.top=this.path(a[1]).attr({"class":"highcharts-3d-top", | ||
zIndex:a[4]}).add(c);c.side=this.path(a[2]).attr({"class":"highcharts-3d-side",zIndex:a[5]}).add(c);c.fillSetter=function(a){this.front.attr({fill:a});this.top.attr({fill:e(a).brighten(.1).get()});this.side.attr({fill:e(a).brighten(-.1).get()});this.color=a;return this};c.opacitySetter=function(a){this.front.attr({opacity:a});this.top.attr({opacity:a});this.side.attr({opacity:a});return this};c.attr=function(a,c){"string"===typeof a&&void 0!==c&&(a={},a[a]=c);if(a.shapeArgs||f(a.x))a=this.renderer.cuboidPath(a.shapeArgs|| | ||
a),this.front.attr({d:a[0],zIndex:a[3]}),this.top.attr({d:a[1],zIndex:a[4]}),this.side.attr({d:a[2],zIndex:a[5]});else return b.SVGElement.prototype.attr.call(this,a);return this};c.animate=function(a,c,g){f(a.x)&&f(a.y)?(a=this.renderer.cuboidPath(a),this.front.attr({zIndex:a[3]}).animate({d:a[0]},c,g),this.top.attr({zIndex:a[4]}).animate({d:a[1]},c,g),this.side.attr({zIndex:a[5]}).animate({d:a[2]},c,g),this.attr({zIndex:-a[6]})):a.opacity?(this.front.animate(a,c,g),this.top.animate(a,c,g),this.side.animate(a, | ||
c,g)):G.prototype.animate.call(this,a,c,g);return this};c.destroy=function(){this.front.destroy();this.top.destroy();this.side.destroy();return g.call(this)};c.attr({zIndex:-a[6]});return c};C.prototype.cuboidPath=function(a){function c(a){return n[a]}var g=a.x,b=a.y,h=a.z,f=a.height,e=a.width,k=a.depth,n=[{x:g,y:b,z:h},{x:g+e,y:b,z:h},{x:g+e,y:b+f,z:h},{x:g,y:b+f,z:h},{x:g,y:b+f,z:h+k},{x:g+e,y:b+f,z:h+k},{x:g+e,y:b,z:h+k},{x:g,y:b,z:h+k}],n=A(n,l[this.chartIndex],a.insidePlotArea),h=function(a, | ||
b){var g=[];a=u(a,c);b=u(b,c);0>r(a)?g=a:0>r(b)&&(g=b);return g};a=h([3,2,1,0],[7,6,5,4]);g=[4,5,2,3];b=h([1,6,7,0],g);h=h([1,2,5,6],[0,7,4,3]);return[this.toLinePath(a,!0),this.toLinePath(b,!0),this.toLinePath(h,!0),d(a),d(b),d(h),9E9*d(u(g,c))]};b.SVGRenderer.prototype.arc3d=function(b){function f(a){var c=!1,b={},g;for(g in a)-1!==h(g,l)&&(b[g]=a[g],delete a[g],c=!0);return c?b:!1}var g=this.g(),k=g.renderer,l="x y r innerR start end".split(" ");b=z(b);b.alpha*=n;b.beta*=n;g.top=k.path();g.side1= | ||
k.path();g.side2=k.path();g.inn=k.path();g.out=k.path();g.onAdd=function(){var a=g.parentGroup,b=g.attr("class");g.top.add(g);c(["out","inn","side1","side2"],function(c){g[c].addClass(b+" highcharts-3d-side").add(a)})};g.setPaths=function(a){var c=g.renderer.arc3dPath(a),b=100*c.zTop;g.attribs=a;g.top.attr({d:c.top,zIndex:c.zTop});g.inn.attr({d:c.inn,zIndex:c.zInn});g.out.attr({d:c.out,zIndex:c.zOut});g.side1.attr({d:c.side1,zIndex:c.zSide1});g.side2.attr({d:c.side2,zIndex:c.zSide2});g.zIndex=b;g.attr({zIndex:b}); | ||
a.center&&(g.top.setRadialReference(a.center),delete a.center)};g.setPaths(b);g.fillSetter=function(a){var c=e(a).brighten(-.1).get();this.fill=a;this.side1.attr({fill:c});this.side2.attr({fill:c});this.inn.attr({fill:c});this.out.attr({fill:c});this.top.attr({fill:a});return this};c(["opacity","translateX","translateY","visibility"],function(a){g[a+"Setter"]=function(a,b){g[b]=a;c(["out","inn","side1","side2","top"],function(c){g[c].attr(b,a)})}});w(g,"attr",function(c,b){var h;"object"===typeof b&& | ||
(h=f(b))&&(a(g.attribs,h),g.setPaths(g.attribs));return c.apply(this,[].slice.call(arguments,1))});w(g,"animate",function(a,c,b,g){var h,k=this.attribs,e;delete c.center;delete c.z;delete c.depth;delete c.alpha;delete c.beta;e=m(t(b,this.renderer.globalAnimation));e.duration&&(c=z(c),h=f(c),c.dummy=1,h&&(e.step=function(a,c){function b(a){return k[a]+(t(h[a],k[a])-k[a])*c.pos}"dummy"===c.prop&&c.elem.setPaths(z(k,{x:b("x"),y:b("y"),r:b("r"),innerR:b("innerR"),start:b("start"),end:b("end")}))}),b= | ||
e);return a.call(this,c,b,g)});g.destroy=function(){this.top.destroy();this.out.destroy();this.inn.destroy();this.side1.destroy();this.side2.destroy();G.prototype.destroy.call(this)};g.hide=function(){this.top.hide();this.out.hide();this.inn.hide();this.side1.hide();this.side2.hide()};g.show=function(){this.top.show();this.out.show();this.inn.show();this.side1.show();this.side2.show()};return g};C.prototype.arc3dPath=function(a){function c(a){a%=2*Math.PI;a>Math.PI&&(a=2*Math.PI-a);return a}var b= | ||
a.x,h=a.y,f=a.start,e=a.end-.00001,n=a.r,l=a.innerR,m=a.depth,d=a.alpha,u=a.beta,z=Math.cos(f),r=Math.sin(f);a=Math.cos(e);var A=Math.sin(e),x=n*Math.cos(u),n=n*Math.cos(d),v=l*Math.cos(u),w=l*Math.cos(d),l=m*Math.sin(u),B=m*Math.sin(d),m=["M",b+x*z,h+n*r],m=m.concat(p(b,h,x,n,f,e,0,0)),m=m.concat(["L",b+v*a,h+w*A]),m=m.concat(p(b,h,v,w,e,f,0,0)),m=m.concat(["Z"]),C=0<u?Math.PI/2:0,u=0<d?0:Math.PI/2,C=f>-C?f:e>-C?-C:f,E=e<y-u?e:f<y-u?y-u:e,t=2*y-u,d=["M",b+x*q(C),h+n*k(C)],d=d.concat(p(b,h,x,n,C, | ||
E,0,0));e>t&&f<t?(d=d.concat(["L",b+x*q(E)+l,h+n*k(E)+B]),d=d.concat(p(b,h,x,n,E,t,l,B)),d=d.concat(["L",b+x*q(t),h+n*k(t)]),d=d.concat(p(b,h,x,n,t,e,0,0)),d=d.concat(["L",b+x*q(e)+l,h+n*k(e)+B]),d=d.concat(p(b,h,x,n,e,t,l,B)),d=d.concat(["L",b+x*q(t),h+n*k(t)]),d=d.concat(p(b,h,x,n,t,E,0,0))):e>y-u&&f<y-u&&(d=d.concat(["L",b+x*Math.cos(E)+l,h+n*Math.sin(E)+B]),d=d.concat(p(b,h,x,n,E,e,l,B)),d=d.concat(["L",b+x*Math.cos(e),h+n*Math.sin(e)]),d=d.concat(p(b,h,x,n,e,E,0,0)));d=d.concat(["L",b+x*Math.cos(E)+ | ||
l,h+n*Math.sin(E)+B]);d=d.concat(p(b,h,x,n,E,C,l,B));d=d.concat(["Z"]);u=["M",b+v*z,h+w*r];u=u.concat(p(b,h,v,w,f,e,0,0));u=u.concat(["L",b+v*Math.cos(e)+l,h+w*Math.sin(e)+B]);u=u.concat(p(b,h,v,w,e,f,l,B));u=u.concat(["Z"]);z=["M",b+x*z,h+n*r,"L",b+x*z+l,h+n*r+B,"L",b+v*z+l,h+w*r+B,"L",b+v*z,h+w*r,"Z"];b=["M",b+x*a,h+n*A,"L",b+x*a+l,h+n*A+B,"L",b+v*a+l,h+w*A+B,"L",b+v*a,h+w*A,"Z"];A=Math.atan2(B,-l);h=Math.abs(e+A);a=Math.abs(f+A);f=Math.abs((f+e)/2+A);h=c(h);a=c(a);f=c(f);f*=1E5;e=1E5*a;h*=1E5; | ||
return{top:m,zTop:1E5*Math.PI+1,out:d,zOut:Math.max(f,e,h),inn:u,zInn:Math.max(f,e,h),side1:z,zSide1:.99*h,side2:b,zSide2:.99*e}}})(t);(function(b){function r(b,f){var e=b.plotLeft,c=b.plotWidth+e,a=b.plotTop,h=b.plotHeight+a,k=e+b.plotWidth/2,d=a+b.plotHeight/2,l=Number.MAX_VALUE,m=-Number.MAX_VALUE,q=Number.MAX_VALUE,r=-Number.MAX_VALUE,w,v=1;w=[{x:e,y:a,z:0},{x:e,y:a,z:f}];p([0,1],function(a){w.push({x:c,y:w[a].y,z:w[a].z})});p([0,1,2,3],function(a){w.push({x:w[a].x,y:h,z:w[a].z})});w=y(w,b,!1); | ||
p(w,function(a){l=Math.min(l,a.x);m=Math.max(m,a.x);q=Math.min(q,a.y);r=Math.max(r,a.y)});e>l&&(v=Math.min(v,1-Math.abs((e+k)/(l+k))%1));c<m&&(v=Math.min(v,(c-k)/(m-k)));a>q&&(v=0>q?Math.min(v,(a+d)/(-q+a+d)):Math.min(v,1-(a+d)/(q+d)%1));h<r&&(v=Math.min(v,Math.abs((h-d)/(r-d))));return v}var d=b.Chart,p=b.each,q=b.merge,y=b.perspective,k=b.pick,m=b.wrap;d.prototype.is3d=function(){return this.options.chart.options3d&&this.options.chart.options3d.enabled};d.prototype.propsRequireDirtyBox.push("chart.options3d"); | ||
d.prototype.propsRequireUpdateSeries.push("chart.options3d");b.wrap(b.Chart.prototype,"isInsidePlot",function(b){return this.is3d()||b.apply(this,[].slice.call(arguments,1))});var l=b.getOptions();q(!0,l,{chart:{options3d:{enabled:!1,alpha:0,beta:0,depth:100,fitToPlot:!0,viewDistance:25,frame:{bottom:{size:1},side:{size:1},back:{size:1}}}}});m(d.prototype,"getContainer",function(b){b.apply(this,[].slice.call(arguments,1));this.renderer.definition({tagName:"style",textContent:".highcharts-3d-top{filter: url(#highcharts-brighter)}\n.highcharts-3d-side{filter: url(#highcharts-darker)}\n"})}); | ||
m(d.prototype,"setClassName",function(b){b.apply(this,[].slice.call(arguments,1));this.is3d()&&(this.container.className+=" highcharts-3d-chart")});b.wrap(b.Chart.prototype,"setChartSize",function(b){var f=this.options.chart.options3d;b.apply(this,[].slice.call(arguments,1));if(this.is3d()){var e=this.inverted,c=this.clipBox,a=this.margin;c[e?"y":"x"]=-(a[3]||0);c[e?"x":"y"]=-(a[0]||0);c[e?"height":"width"]=this.chartWidth+(a[3]||0)+(a[1]||0);c[e?"width":"height"]=this.chartHeight+(a[0]||0)+(a[2]|| | ||
0);this.scale3d=1;!0===f.fitToPlot&&(this.scale3d=r(this,f.depth))}});m(d.prototype,"redraw",function(b){this.is3d()&&(this.isDirtyBox=!0);b.apply(this,[].slice.call(arguments,1))});m(d.prototype,"renderSeries",function(b){var f=this.series.length;if(this.is3d())for(;f--;)b=this.series[f],b.translate(),b.render();else b.call(this)});d.prototype.retrieveStacks=function(b){var f=this.series,e={},c,a=1;p(this.series,function(h){c=k(h.options.stack,b?0:f.length-1-h.index);e[c]?e[c].series.push(h):(e[c]= | ||
{series:[h],position:a},a++)});e.totalStacks=a+1;return e}})(t);(function(b){var r,d=b.Axis,p=b.Chart,q=b.each,y=b.extend,k=b.merge,m=b.perspective,l=b.pick,e=b.splat,f=b.Tick,n=b.wrap;n(d.prototype,"setOptions",function(b,a){b.call(this,a);this.chart.is3d()&&"colorAxis"!==this.coll&&(b=this.options,b.tickWidth=l(b.tickWidth,0),b.gridLineWidth=l(b.gridLineWidth,1))});n(d.prototype,"render",function(b){b.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()&&"colorAxis"!==this.coll){var a=this.chart, | ||
c=a.renderer,f=a.options.chart.options3d,e=f.frame,d=e.bottom,k=e.back,e=e.side,l=f.depth,n=this.height,m=this.width,p=this.left,q=this.top;this.isZAxis||(this.horiz?(d={x:p,y:q+(a.xAxis[0].opposite?-d.size:n),z:0,width:m,height:d.size,depth:l,insidePlotArea:!1},this.bottomFrame?this.bottomFrame.animate(d):this.bottomFrame=c.cuboid(d).attr({"class":"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:a.yAxis[0].reversed&&0<f.alpha?4:-1}).add()):(f={x:p+(a.yAxis[0].opposite?0:-e.size),y:q+(a.xAxis[0].opposite? | ||
-d.size:0),z:l,width:m+e.size,height:n+d.size,depth:k.size,insidePlotArea:!1},this.backFrame?this.backFrame.animate(f):this.backFrame=c.cuboid(f).attr({"class":"highcharts-3d-frame highcharts-3d-frame-back",zIndex:-3}).add(),a={x:p+(a.yAxis[0].opposite?m:-e.size),y:q+(a.xAxis[0].opposite?-d.size:0),z:0,width:e.size,height:n+d.size,depth:l,insidePlotArea:!1},this.sideFrame?this.sideFrame.animate(a):this.sideFrame=c.cuboid(a).attr({"class":"highcharts-3d-frame highcharts-3d-frame-side",zIndex:-2}).add()))}}); | ||
n(d.prototype,"getPlotLinePath",function(b){var a=b.apply(this,[].slice.call(arguments,1));if(!this.chart.is3d()||"colorAxis"===this.coll||null===a)return a;var c=this.chart,e=c.options.chart.options3d,c=this.isZAxis?c.plotWidth:e.depth,e=this.opposite;this.horiz&&(e=!e);a=[this.swapZ({x:a[1],y:a[2],z:e?c:0}),this.swapZ({x:a[1],y:a[2],z:c}),this.swapZ({x:a[4],y:a[5],z:c}),this.swapZ({x:a[4],y:a[5],z:e?0:c})];a=m(a,this.chart,!1);return a=this.chart.renderer.toLinePath(a,!1)});n(d.prototype,"getLinePath", | ||
function(b){return this.chart.is3d()?[]:b.apply(this,[].slice.call(arguments,1))});n(d.prototype,"getPlotBandPath",function(b){if(!this.chart.is3d()||"colorAxis"===this.coll)return b.apply(this,[].slice.call(arguments,1));var a=arguments,c=a[1],a=this.getPlotLinePath(a[2]);(c=this.getPlotLinePath(c))&&a?c.push("L",a[10],a[11],"L",a[7],a[8],"L",a[4],a[5],"L",a[1],a[2]):c=null;return c});n(f.prototype,"getMarkPath",function(b){var a=b.apply(this,[].slice.call(arguments,1));if(!this.axis.chart.is3d()|| | ||
"colorAxis"===this.coll)return a;a=[this.axis.swapZ({x:a[1],y:a[2],z:0}),this.axis.swapZ({x:a[4],y:a[5],z:0})];a=m(a,this.axis.chart,!1);return a=["M",a[0].x,a[0].y,"L",a[1].x,a[1].y]});n(f.prototype,"getLabelPosition",function(b){var a=b.apply(this,[].slice.call(arguments,1));this.axis.chart.is3d()&&"colorAxis"!==this.coll&&(a=m([this.axis.swapZ({x:a.x,y:a.y,z:0})],this.axis.chart,!1)[0]);return a});b.wrap(d.prototype,"getTitlePosition",function(b){var a=this.chart.is3d()&&"colorAxis"!==this.coll, | ||
c,e;a&&(e=this.axisTitleMargin,this.axisTitleMargin=0);c=b.apply(this,[].slice.call(arguments,1));a&&(c=m([this.swapZ({x:c.x,y:c.y,z:0})],this.chart,!1)[0],c[this.horiz?"y":"x"]+=(this.horiz?1:-1)*(this.opposite?-1:1)*e,this.axisTitleMargin=e);return c});n(d.prototype,"drawCrosshair",function(b){var a=arguments;this.chart.is3d()&&a[2]&&(a[2]={plotX:a[2].plotXold||a[2].plotX,plotY:a[2].plotYold||a[2].plotY});b.apply(this,[].slice.call(a,1))});n(d.prototype,"destroy",function(b){q(["backFrame","bottomFrame", | ||
"sideFrame"],function(a){this[a]&&(this[a]=this[a].destroy())},this);b.apply(this,[].slice.call(arguments,1))});d.prototype.swapZ=function(b,a){if(this.isZAxis){a=a?0:this.chart.plotLeft;var c=this.chart;return{x:a+(c.yAxis[0].opposite?b.z:c.xAxis[0].width-b.z),y:b.y,z:b.x-a}}return b};r=b.ZAxis=function(){this.init.apply(this,arguments)};y(r.prototype,d.prototype);y(r.prototype,{isZAxis:!0,setOptions:function(b){b=k({offset:0,lineWidth:0},b);d.prototype.setOptions.call(this,b);this.coll="zAxis"}, | ||
setAxisSize:function(){d.prototype.setAxisSize.call(this);this.width=this.len=this.chart.options.chart.options3d.depth;this.right=this.chart.chartWidth-this.width-this.left},getSeriesExtremes:function(){var b=this,a=b.chart;b.hasVisibleSeries=!1;b.dataMin=b.dataMax=b.ignoreMinPadding=b.ignoreMaxPadding=null;b.buildStacks&&b.buildStacks();q(b.series,function(c){if(c.visible||!a.options.chart.ignoreHiddenSeries)b.hasVisibleSeries=!0,c=c.zData,c.length&&(b.dataMin=Math.min(l(b.dataMin,c[0]),Math.min.apply(null, | ||
c)),b.dataMax=Math.max(l(b.dataMax,c[0]),Math.max.apply(null,c)))})}});n(p.prototype,"getAxes",function(b){var a=this,c=this.options,c=c.zAxis=e(c.zAxis||{});b.call(this);a.is3d()&&(this.zAxis=[],q(c,function(b,c){b.index=c;b.isX=!0;(new r(a,b)).setScale()}))})})(t);(function(b){function r(b){if(this.chart.is3d()){var e=this.chart.options.plotOptions.column.grouping;void 0===e||e||void 0===this.group.zIndex||this.zIndexSet||(this.group.attr({zIndex:10*this.group.zIndex}),this.zIndexSet=!0)}b.apply(this, | ||
[].slice.call(arguments,1))}var d=b.each,p=b.perspective,q=b.pick,y=b.Series,k=b.seriesTypes,m=b.svg;b=b.wrap;b(k.column.prototype,"translate",function(b){b.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var e=this.chart,f=this.options,k=f.depth||25,c=(f.stacking?f.stack||0:this._i)*(k+(f.groupZPadding||1));!1!==f.grouping&&(c=0);c+=f.groupZPadding||1;d(this.data,function(a){if(null!==a.y){var b=a.shapeArgs,f=a.tooltipPos;a.shapeType="cuboid";b.z=c;b.depth=k;b.insidePlotArea=!0;f=p([{x:f[0], | ||
y:f[1],z:c}],e,!0)[0];a.tooltipPos=[f.x,f.y]}});this.z=c}});b(k.column.prototype,"animate",function(b){if(this.chart.is3d()){var e=arguments[1],f=this.yAxis,k=this,c=this.yAxis.reversed;m&&(e?d(k.data,function(a){null!==a.y&&(a.height=a.shapeArgs.height,a.shapey=a.shapeArgs.y,a.shapeArgs.height=1,c||(a.shapeArgs.y=a.stackY?a.plotY+f.translate(a.stackY):a.plotY+(a.negative?-a.height:a.height)))}):(d(k.data,function(a){null!==a.y&&(a.shapeArgs.height=a.height,a.shapeArgs.y=a.shapey,a.graphic&&a.graphic.animate(a.shapeArgs, | ||
k.options.animation))}),this.drawDataLabels(),k.animate=null))}else b.apply(this,[].slice.call(arguments,1))});b(k.column.prototype,"init",function(b){b.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var e=this.options,f=e.grouping,d=e.stacking,c=q(this.yAxis.options.reversedStacks,!0),a=0;if(void 0===f||f){f=this.chart.retrieveStacks(d);a=e.stack||0;for(d=0;d<f[a].series.length&&f[a].series[d]!==this;d++);a=10*(f.totalStacks-f[a].position)+(c?d:-d);this.xAxis.reversed||(a=10*f.totalStacks- | ||
a)}e.zIndex=a}});b(y.prototype,"alignDataLabel",function(b){if(this.chart.is3d()&&("column"===this.type||"columnrange"===this.type)){var e=arguments[4],f={x:e.x,y:e.y,z:this.z},f=p([f],this.chart,!0)[0];e.x=f.x;e.y=f.y}b.apply(this,[].slice.call(arguments,1))});k.columnrange&&b(k.columnrange.prototype,"drawPoints",r);b(k.column.prototype,"drawPoints",r)})(t);(function(b){var r=b.deg2rad,d=b.each,p=b.seriesTypes,q=b.svg;b=b.wrap;b(p.pie.prototype,"translate",function(b){b.apply(this,[].slice.call(arguments, | ||
1));if(this.chart.is3d()){var k=this,m=k.options,l=m.depth||0,e=k.chart.options.chart.options3d,f=e.alpha,n=e.beta,c=m.stacking?(m.stack||0)*l:k._i*l,c=c+l/2;!1!==m.grouping&&(c=0);d(k.data,function(a){var b=a.shapeArgs;a.shapeType="arc3d";b.z=c;b.depth=.75*l;b.alpha=f;b.beta=n;b.center=k.center;b=(b.end+b.start)/2;a.slicedTranslation={translateX:Math.round(Math.cos(b)*m.slicedOffset*Math.cos(f*r)),translateY:Math.round(Math.sin(b)*m.slicedOffset*Math.cos(f*r))}})}});b(p.pie.prototype.pointClass.prototype, | ||
"haloPath",function(b){var d=arguments;return this.series.chart.is3d()?[]:b.call(this,d[1])});b(p.pie.prototype,"drawPoints",function(b){b.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&d(this.points,function(b){var d=b.graphic;if(d)d[b.y&&b.visible?"show":"hide"]()})});b(p.pie.prototype,"drawDataLabels",function(b){if(this.chart.is3d()){var k=this.chart.options.chart.options3d;d(this.data,function(b){var l=b.shapeArgs,e=l.r,f=(l.start+l.end)/2,m=b.labelPos,c=-e*(1-Math.cos((l.alpha||k.alpha)* | ||
r))*Math.sin(f),a=e*(Math.cos((l.beta||k.beta)*r)-1)*Math.cos(f);d([0,2,4],function(b){m[b]+=a;m[b+1]+=c})})}b.apply(this,[].slice.call(arguments,1))});b(p.pie.prototype,"addPoint",function(b){b.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&this.update(this.userOptions,!0)});b(p.pie.prototype,"animate",function(b){if(this.chart.is3d()){var d=arguments[1],m=this.options.animation,l=this.center,e=this.group,f=this.markerGroup;q&&(!0===m&&(m={}),d?(e.oldtranslateX=e.translateX,e.oldtranslateY= | ||
e.translateY,d={translateX:l[0],translateY:l[1],scaleX:.001,scaleY:.001},e.attr(d),f&&(f.attrSetters=e.attrSetters,f.attr(d))):(d={translateX:e.oldtranslateX,translateY:e.oldtranslateY,scaleX:1,scaleY:1},e.animate(d,m),f&&f.animate(d,m),this.animate=null))}else b.apply(this,[].slice.call(arguments,1))})})(t);(function(b){var r=b.perspective,d=b.pick,p=b.Point,q=b.seriesTypes,t=b.wrap;t(q.scatter.prototype,"translate",function(b){b.apply(this,[].slice.call(arguments,1));if(this.chart.is3d()){var k= | ||
this.chart,l=d(this.zAxis,k.options.zAxis[0]),e=[],f,n,c;for(c=0;c<this.data.length;c++)f=this.data[c],n=l.isLog&&l.val2lin?l.val2lin(f.z):f.z,f.plotZ=l.translate(n),f.isInside=f.isInside?n>=l.min&&n<=l.max:!1,e.push({x:f.plotX,y:f.plotY,z:f.plotZ});k=r(e,k,!0);for(c=0;c<this.data.length;c++)f=this.data[c],l=k[c],f.plotXold=f.plotX,f.plotYold=f.plotY,f.plotZold=f.plotZ,f.plotX=l.x,f.plotY=l.y,f.plotZ=l.z}});t(q.scatter.prototype,"init",function(b,d,l){d.is3d()&&(this.axisTypes=["xAxis","yAxis","zAxis"], | ||
this.pointArrayMap=["x","y","z"],this.parallelArrays=["x","y","z"],this.directTouch=!0);b=b.apply(this,[d,l]);this.chart.is3d()&&(this.tooltipOptions.pointFormat=this.userOptions.tooltip?this.userOptions.tooltip.pointFormat||"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e":"x: \x3cb\x3e{point.x}\x3c/b\x3e\x3cbr/\x3ey: \x3cb\x3e{point.y}\x3c/b\x3e\x3cbr/\x3ez: \x3cb\x3e{point.z}\x3c/b\x3e\x3cbr/\x3e");return b});t(q.scatter.prototype, | ||
"pointAttribs",function(d,m){var k=d.apply(this,[].slice.call(arguments,1));this.chart.is3d()&&m&&(k.zIndex=b.pointCameraDistance(m,this.chart));return k});t(p.prototype,"applyOptions",function(b){var d=b.apply(this,[].slice.call(arguments,1));this.series.chart.is3d()&&void 0===d.z&&(d.z=0);return d})})(t)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -8,50 +8,50 @@ (c) 2009-2016 Torstein Honsi | ||
*/ | ||
(function(w){"object"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){function k(a,c,e){this.init(a,c,e)}var t=a.each,u=a.extend,g=a.merge,m=a.splat;u(k.prototype,{init:function(a,c,e){var h=this,l=h.defaultOptions;h.chart=c;h.options=a=g(l,c.angular?{background:{}}:void 0,a);(a=a.background)&&t([].concat(m(a)).reverse(),function(c){var b=e.userOptions;c=g(h.defaultBackgroundOptions,c);e.options.plotBands.unshift(c);b.plotBands=b.plotBands||[];b.plotBands!== | ||
e.options.plotBands&&b.plotBands.unshift(c)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{className:"highcharts-pane",shape:"circle",from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});a.Pane=k})(w);(function(a){var k=a.CenteredSeriesMixin,t=a.each,u=a.extend,g=a.map,m=a.merge,q=a.noop,c=a.Pane,e=a.pick,h=a.pInt,l=a.splat,n=a.wrap,b,f,p=a.Axis.prototype;a=a.Tick.prototype;b={getOffset:q,redraw:function(){this.isDirty=!1},render:function(){this.isDirty= | ||
!1},setScale:q,setCategories:q,setTitle:q};f={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(b){b=this.options=m(this.defaultOptions,this.defaultRadialOptions,b);b.plotBands||(b.plotBands=[])},getOffset:function(){p.getOffset.call(this);this.chart.axisOffset[this.side]=0;this.center=this.pane.center=k.getCenter.call(this.pane)},getLinePath:function(b,d){b=this.center;var c=this.chart,r=e(d,b[2]/2-this.offset);this.isCircular||void 0!==d?d=this.chart.renderer.symbols.arc(this.left+b[0],this.top+b[1],r,r,{start:this.startAngleRad, | ||
end:this.endAngleRad,open:!0,innerR:0}):(d=this.postTranslate(this.angleRad,r),d=["M",b[0]+c.plotLeft,b[1]+c.plotTop,"L",d.x,d.y]);return d},setAxisTranslation:function(){p.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(){if(this.autoConnect=this.isCircular&&void 0===e(this.userMax, | ||
this.options.max)&&this.endAngleRad-this.startAngleRad===2*Math.PI)this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){p.setAxisSize.call(this);this.isRadial&&(this.center=this.pane.center=k.getCenter.call(this.pane),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*e(this.sector,1)/2)},getPosition:function(b,d){return this.postTranslate(this.isCircular?this.translate(b):this.angleRad,e(this.isCircular? | ||
d:this.translate(b),this.center[2]/2)-this.offset)},postTranslate:function(b,d){var c=this.chart,e=this.center;b=this.startAngleRad+b;return{x:c.plotLeft+e[0]+Math.cos(b)*d,y:c.plotTop+e[1]+Math.sin(b)*d}},getPlotBandPath:function(b,d,c){var f=this.center,r=this.startAngleRad,l=f[2]/2,a=[e(c.outerRadius,"100%"),c.innerRadius,e(c.thickness,10)],n=Math.min(this.offset,0),p=/%$/,v,m=this.isCircular;"polygon"===this.options.gridLineInterpolation?f=this.getPlotLinePath(b).concat(this.getPlotLinePath(d, | ||
!0)):(b=Math.max(b,this.min),d=Math.min(d,this.max),m||(a[0]=this.translate(b),a[1]=this.translate(d)),a=g(a,function(b){p.test(b)&&(b=h(b,10)*l/100);return b}),"circle"!==c.shape&&m?(b=r+this.translate(b),d=r+this.translate(d)):(b=-Math.PI/2,d=1.5*Math.PI,v=!0),a[0]-=n,a[2]-=n,f=this.chart.renderer.symbols.arc(this.left+f[0],this.top+f[1],a[0],a[0],{start:Math.min(b,d),end:Math.max(b,d),innerR:e(a[1],a[0]-a[2]),open:v}));return f},getPlotLinePath:function(b,c){var d=this,e=d.center,f=d.chart,h=d.getPosition(b), | ||
a,r,l;d.isCircular?l=["M",e[0]+f.plotLeft,e[1]+f.plotTop,"L",h.x,h.y]:"circle"===d.options.gridLineInterpolation?(b=d.translate(b))&&(l=d.getLinePath(0,b)):(t(f.xAxis,function(b){b.pane===d.pane&&(a=b)}),l=[],b=d.translate(b),e=a.tickPositions,a.autoConnect&&(e=e.concat([e[0]])),c&&(e=[].concat(e).reverse()),t(e,function(d,c){r=a.getPosition(d,b);l.push(c?"L":"M",r.x,r.y)}));return l},getTitlePosition:function(){var b=this.center,d=this.chart,c=this.options.title;return{x:d.plotLeft+b[0]+(c.x||0), | ||
y:d.plotTop+b[1]-{high:.5,middle:.25,low:0}[c.align]*b[2]+(c.y||0)}}};n(p,"init",function(h,d,a){var r=d.angular,n=d.polar,p=a.isX,v=r&&p,g,q=d.options,k=a.pane||0;if(r){if(u(this,v?b:f),g=!p)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else n&&(u(this,f),this.defaultRadialOptions=(g=p)?this.defaultRadialXOptions:m(this.defaultYAxisOptions,this.defaultRadialYOptions));r||n?(this.isRadial=!0,d.inverted=!1,q.chart.zoomType=null):this.isRadial=!1;h.call(this,d,a);v||!r&&!n||(h=this.options, | ||
d.panes||(d.panes=[]),this.pane=d=d.panes[k]=d.panes[k]||new c(l(q.pane)[k],d,this),d=d.options,this.angleRad=(h.angle||0)*Math.PI/180,this.startAngleRad=(d.startAngle-90)*Math.PI/180,this.endAngleRad=(e(d.endAngle,d.startAngle+360)-90)*Math.PI/180,this.offset=h.offset||0,this.isCircular=g)});n(p,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments,1))});n(a,"getPosition",function(b,c,e,h,f){var d=this.axis;return d.getPosition?d.getPosition(e):b.call(this,c, | ||
e,h,f)});n(a,"getLabelPosition",function(b,c,h,f,a,l,n,p,m){var d=this.axis,r=l.y,v=20,z=l.align,g=(d.translate(this.pos)+d.startAngleRad+Math.PI/2)/Math.PI*180%360;d.isRadial?(b=d.getPosition(this.pos,d.center[2]/2+e(l.distance,-25)),"auto"===l.rotation?f.attr({rotation:g}):null===r&&(r=d.chart.renderer.fontMetrics(f.styles.fontSize).b-f.getBBox().height/2),null===z&&(d.isCircular?(this.label.getBBox().width>d.len*d.tickInterval/(d.max-d.min)&&(v=0),z=g>v&&g<180-v?"left":g>180+v&&g<360-v?"right": | ||
"center"):z="center",f.attr({align:z})),b.x+=l.x,b.y+=r):b=b.call(this,c,h,f,a,l,n,p,m);return b});n(a,"getMarkPath",function(b,d,c,e,f,h,a){var l=this.axis;l.isRadial?(b=l.getPosition(this.pos,l.center[2]/2+e),d=["M",d,c,"L",b.x,b.y]):d=b.call(this,d,c,e,f,h,a);return d})})(w);(function(a){var k=a.each,t=a.noop,u=a.pick,g=a.Series,m=a.seriesType,q=a.seriesTypes;m("arearange","area",{marker:null,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},states:{hover:{halo:!1}}},{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(c){return[c.low,c.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(c){var e=this.chart,h=this.xAxis.postTranslate(c.rectPlotX,this.yAxis.len-c.plotHigh);c.plotHighX=h.x-e.plotLeft;c.plotHigh=h.y-e.plotTop},translate:function(){var c=this,e=c.yAxis,h=!!c.modifyValue;q.area.prototype.translate.apply(c); | ||
k(c.points,function(a){var l=a.low,b=a.high,f=a.plotY;null===b||null===l?a.isNull=!0:(a.plotLow=f,a.plotHigh=e.translate(h?c.modifyValue(b,a):b,0,1,0,1),h&&(a.yBottom=a.plotHigh))});this.chart.polar&&k(this.points,function(e){c.highToXY(e)})},getGraphPath:function(c){var e=[],a=[],l,n=q.area.prototype.getGraphPath,b,f,p;p=this.options;var r=this.chart.polar&&!1!==p.connectEnds,d=p.step;c=c||this.points;for(l=c.length;l--;)b=c[l],b.isNull||r||c[l+1]&&!c[l+1].isNull||a.push({plotX:b.plotX,plotY:b.plotY, | ||
doCurve:!1}),f={polarPlotY:b.polarPlotY,rectPlotX:b.rectPlotX,yBottom:b.yBottom,plotX:u(b.plotHighX,b.plotX),plotY:b.plotHigh,isNull:b.isNull},a.push(f),e.push(f),b.isNull||r||c[l-1]&&!c[l-1].isNull||a.push({plotX:b.plotX,plotY:b.plotY,doCurve:!1});c=n.call(this,c);d&&(!0===d&&(d="left"),p.step={left:"right",center:"center",right:"left"}[d]);e=n.call(this,e);a=n.call(this,a);p.step=d;p=[].concat(c,e);this.chart.polar||"M"!==a[0]||(a[0]="L");this.graphPath=p;this.areaPath=this.areaPath.concat(c,a); | ||
p.isArea=!0;p.xMap=c.xMap;this.areaPath.xMap=c.xMap;return p},drawDataLabels:function(){var c=this.data,e=c.length,a,l=[],n=g.prototype,b=this.options.dataLabels,f=b.align,p=b.verticalAlign,r=b.inside,d,v,m=this.chart.inverted;if(b.enabled||this._hasPointLabels){for(a=e;a--;)if(d=c[a])v=r?d.plotHigh<d.plotLow:d.plotHigh>d.plotLow,d.y=d.high,d._plotY=d.plotY,d.plotY=d.plotHigh,l[a]=d.dataLabel,d.dataLabel=d.dataLabelUpper,d.below=v,m?f||(b.align=v?"right":"left"):p||(b.verticalAlign=v?"top":"bottom"), | ||
b.x=b.xHigh,b.y=b.yHigh;n.drawDataLabels&&n.drawDataLabels.apply(this,arguments);for(a=e;a--;)if(d=c[a])v=r?d.plotHigh<d.plotLow:d.plotHigh>d.plotLow,d.dataLabelUpper=d.dataLabel,d.dataLabel=l[a],d.y=d.low,d.plotY=d._plotY,d.below=!v,m?f||(b.align=v?"left":"right"):p||(b.verticalAlign=v?"bottom":"top"),b.x=b.xLow,b.y=b.yLow;n.drawDataLabels&&n.drawDataLabels.apply(this,arguments)}b.align=f;b.verticalAlign=p},alignDataLabel:function(){q.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t, | ||
getSymbol:t,drawPoints:t})})(w);(function(a){var k=a.seriesType;k("areasplinerange","arearange",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(w);(function(a){var k=a.defaultPlotOptions,t=a.each,u=a.merge,g=a.noop,m=a.pick,q=a.seriesType,c=a.seriesTypes.column.prototype;q("columnrange","arearange",u(k.column,k.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var a=this,h=a.yAxis,l=a.xAxis,n=l.startAngleRad,b,f=a.chart,p=a.xAxis.isRadial,r;c.translate.apply(a); | ||
t(a.points,function(d){var c=d.shapeArgs,e=a.options.minPointLength,g,k;d.plotHigh=r=h.translate(d.high,0,1,0,1);d.plotLow=d.plotY;k=r;g=m(d.rectPlotY,d.plotY)-r;Math.abs(g)<e?(e-=g,g+=e,k-=e/2):0>g&&(g*=-1,k-=g);p?(b=d.barX+n,d.shapeType="path",d.shapeArgs={d:a.polarArc(k+g,k,b,b+d.pointWidth)}):(c.height=g,c.y=k,d.tooltipPos=f.inverted?[h.len+h.pos-f.plotLeft-k-g/2,l.len+l.pos-f.plotTop-c.x-c.width/2,g]:[l.left-f.plotLeft+c.x+c.width/2,h.pos-f.plotTop+k+g/2,g])})},directTouch:!0,trackerGroups:["group", | ||
(function(w){"object"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){function k(a,c,e){this.init(a,c,e)}var t=a.each,u=a.extend,g=a.merge,m=a.splat;u(k.prototype,{init:function(a,c,e){var l=this,f=l.defaultOptions;l.chart=c;l.options=a=g(f,c.angular?{background:{}}:void 0,a);(a=a.background)&&t([].concat(m(a)).reverse(),function(c){var b=e.userOptions;c=g(l.defaultBackgroundOptions,c);e.options.plotBands.unshift(c);b.plotBands=b.plotBands||[];b.plotBands!== | ||
e.options.plotBands&&b.plotBands.unshift(c)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{className:"highcharts-pane",shape:"circle",from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});a.Pane=k})(w);(function(a){var k=a.CenteredSeriesMixin,t=a.each,u=a.extend,g=a.map,m=a.merge,q=a.noop,c=a.Pane,e=a.pick,l=a.pInt,f=a.splat,p=a.wrap,b,h,n=a.Axis.prototype;a=a.Tick.prototype;b={getOffset:q,redraw:function(){this.isDirty=!1},render:function(){this.isDirty= | ||
!1},setScale:q,setCategories:q,setTitle:q};h={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(b){b=this.options=m(this.defaultOptions,this.defaultRadialOptions,b);b.plotBands||(b.plotBands=[])},getOffset:function(){n.getOffset.call(this);this.chart.axisOffset[this.side]=0;this.center=this.pane.center=k.getCenter.call(this.pane)},getLinePath:function(b,d){b=this.center;var c=this.chart,r=e(d,b[2]/2-this.offset);this.isCircular||void 0!==d?d=this.chart.renderer.symbols.arc(this.left+b[0],this.top+b[1],r,r,{start:this.startAngleRad, | ||
end:this.endAngleRad,open:!0,innerR:0}):(d=this.postTranslate(this.angleRad,r),d=["M",b[0]+c.plotLeft,b[1]+c.plotTop,"L",d.x,d.y]);return d},setAxisTranslation:function(){n.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(){if(this.autoConnect=this.isCircular&&void 0===e(this.userMax, | ||
this.options.max)&&this.endAngleRad-this.startAngleRad===2*Math.PI)this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){n.setAxisSize.call(this);this.isRadial&&(this.center=this.pane.center=k.getCenter.call(this.pane),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*e(this.sector,1)/2)},getPosition:function(b,d){return this.postTranslate(this.isCircular?this.translate(b):this.angleRad,e(this.isCircular? | ||
d:this.translate(b),this.center[2]/2)-this.offset)},postTranslate:function(b,d){var c=this.chart,e=this.center;b=this.startAngleRad+b;return{x:c.plotLeft+e[0]+Math.cos(b)*d,y:c.plotTop+e[1]+Math.sin(b)*d}},getPlotBandPath:function(b,d,c){var r=this.center,h=this.startAngleRad,f=r[2]/2,a=[e(c.outerRadius,"100%"),c.innerRadius,e(c.thickness,10)],p=Math.min(this.offset,0),n=/%$/,v,m=this.isCircular;"polygon"===this.options.gridLineInterpolation?r=this.getPlotLinePath(b).concat(this.getPlotLinePath(d, | ||
!0)):(b=Math.max(b,this.min),d=Math.min(d,this.max),m||(a[0]=this.translate(b),a[1]=this.translate(d)),a=g(a,function(b){n.test(b)&&(b=l(b,10)*f/100);return b}),"circle"!==c.shape&&m?(b=h+this.translate(b),d=h+this.translate(d)):(b=-Math.PI/2,d=1.5*Math.PI,v=!0),a[0]-=p,a[2]-=p,r=this.chart.renderer.symbols.arc(this.left+r[0],this.top+r[1],a[0],a[0],{start:Math.min(b,d),end:Math.max(b,d),innerR:e(a[1],a[0]-a[2]),open:v}));return r},getPlotLinePath:function(b,c){var d=this,e=d.center,l=d.chart,h=d.getPosition(b), | ||
a,r,f;d.isCircular?f=["M",e[0]+l.plotLeft,e[1]+l.plotTop,"L",h.x,h.y]:"circle"===d.options.gridLineInterpolation?(b=d.translate(b))&&(f=d.getLinePath(0,b)):(t(l.xAxis,function(b){b.pane===d.pane&&(a=b)}),f=[],b=d.translate(b),e=a.tickPositions,a.autoConnect&&(e=e.concat([e[0]])),c&&(e=[].concat(e).reverse()),t(e,function(d,c){r=a.getPosition(d,b);f.push(c?"L":"M",r.x,r.y)}));return f},getTitlePosition:function(){var b=this.center,d=this.chart,c=this.options.title;return{x:d.plotLeft+b[0]+(c.x||0), | ||
y:d.plotTop+b[1]-{high:.5,middle:.25,low:0}[c.align]*b[2]+(c.y||0)}}};p(n,"init",function(l,d,a){var r=d.angular,p=d.polar,n=a.isX,v=r&&n,g,q=d.options,k=a.pane||0;if(r){if(u(this,v?b:h),g=!n)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else p&&(u(this,h),this.defaultRadialOptions=(g=n)?this.defaultRadialXOptions:m(this.defaultYAxisOptions,this.defaultRadialYOptions));r||p?(this.isRadial=!0,d.inverted=!1,q.chart.zoomType=null):this.isRadial=!1;l.call(this,d,a);v||!r&&!p||(l=this.options, | ||
d.panes||(d.panes=[]),this.pane=d=d.panes[k]=d.panes[k]||new c(f(q.pane)[k],d,this),d=d.options,this.angleRad=(l.angle||0)*Math.PI/180,this.startAngleRad=(d.startAngle-90)*Math.PI/180,this.endAngleRad=(e(d.endAngle,d.startAngle+360)-90)*Math.PI/180,this.offset=l.offset||0,this.isCircular=g)});p(n,"autoLabelAlign",function(b){if(!this.isRadial)return b.apply(this,[].slice.call(arguments,1))});p(a,"getPosition",function(b,c,e,l,a){var d=this.axis;return d.getPosition?d.getPosition(e):b.call(this,c, | ||
e,l,a)});p(a,"getLabelPosition",function(b,c,l,a,h,f,p,n,m){var d=this.axis,r=f.y,v=20,y=f.align,g=(d.translate(this.pos)+d.startAngleRad+Math.PI/2)/Math.PI*180%360;d.isRadial?(b=d.getPosition(this.pos,d.center[2]/2+e(f.distance,-25)),"auto"===f.rotation?a.attr({rotation:g}):null===r&&(r=d.chart.renderer.fontMetrics(a.styles.fontSize).b-a.getBBox().height/2),null===y&&(d.isCircular?(this.label.getBBox().width>d.len*d.tickInterval/(d.max-d.min)&&(v=0),y=g>v&&g<180-v?"left":g>180+v&&g<360-v?"right": | ||
"center"):y="center",a.attr({align:y})),b.x+=f.x,b.y+=r):b=b.call(this,c,l,a,h,f,p,n,m);return b});p(a,"getMarkPath",function(b,d,c,e,l,a,h){var f=this.axis;f.isRadial?(b=f.getPosition(this.pos,f.center[2]/2+e),d=["M",d,c,"L",b.x,b.y]):d=b.call(this,d,c,e,l,a,h);return d})})(w);(function(a){var k=a.each,t=a.noop,u=a.pick,g=a.Series,m=a.seriesType,q=a.seriesTypes;m("arearange","area",{marker:null,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},states:{hover:{halo:!1}}},{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(c){return[c.low,c.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(c){var e=this.chart,l=this.xAxis.postTranslate(c.rectPlotX,this.yAxis.len-c.plotHigh);c.plotHighX=l.x-e.plotLeft;c.plotHigh=l.y-e.plotTop},translate:function(){var c=this,e=c.yAxis,l=!!c.modifyValue;q.area.prototype.translate.apply(c); | ||
k(c.points,function(a){var f=a.low,b=a.high,h=a.plotY;null===b||null===f?a.isNull=!0:(a.plotLow=h,a.plotHigh=e.translate(l?c.modifyValue(b,a):b,0,1,0,1),l&&(a.yBottom=a.plotHigh))});this.chart.polar&&k(this.points,function(e){c.highToXY(e)})},getGraphPath:function(c){var e=[],a=[],f,p=q.area.prototype.getGraphPath,b,h,n;n=this.options;var r=this.chart.polar&&!1!==n.connectEnds,d=n.step;c=c||this.points;for(f=c.length;f--;)b=c[f],b.isNull||r||c[f+1]&&!c[f+1].isNull||a.push({plotX:b.plotX,plotY:b.plotY, | ||
doCurve:!1}),h={polarPlotY:b.polarPlotY,rectPlotX:b.rectPlotX,yBottom:b.yBottom,plotX:u(b.plotHighX,b.plotX),plotY:b.plotHigh,isNull:b.isNull},a.push(h),e.push(h),b.isNull||r||c[f-1]&&!c[f-1].isNull||a.push({plotX:b.plotX,plotY:b.plotY,doCurve:!1});c=p.call(this,c);d&&(!0===d&&(d="left"),n.step={left:"right",center:"center",right:"left"}[d]);e=p.call(this,e);a=p.call(this,a);n.step=d;n=[].concat(c,e);this.chart.polar||"M"!==a[0]||(a[0]="L");this.graphPath=n;this.areaPath=this.areaPath.concat(c,a); | ||
n.isArea=!0;n.xMap=c.xMap;this.areaPath.xMap=c.xMap;return n},drawDataLabels:function(){var c=this.data,a=c.length,l,f=[],p=g.prototype,b=this.options.dataLabels,h=b.align,n=b.verticalAlign,r=b.inside,d,v,m=this.chart.inverted;if(b.enabled||this._hasPointLabels){for(l=a;l--;)if(d=c[l])v=r?d.plotHigh<d.plotLow:d.plotHigh>d.plotLow,d.y=d.high,d._plotY=d.plotY,d.plotY=d.plotHigh,f[l]=d.dataLabel,d.dataLabel=d.dataLabelUpper,d.below=v,m?h||(b.align=v?"right":"left"):n||(b.verticalAlign=v?"top":"bottom"), | ||
b.x=b.xHigh,b.y=b.yHigh;p.drawDataLabels&&p.drawDataLabels.apply(this,arguments);for(l=a;l--;)if(d=c[l])v=r?d.plotHigh<d.plotLow:d.plotHigh>d.plotLow,d.dataLabelUpper=d.dataLabel,d.dataLabel=f[l],d.y=d.low,d.plotY=d._plotY,d.below=!v,m?h||(b.align=v?"left":"right"):n||(b.verticalAlign=v?"bottom":"top"),b.x=b.xLow,b.y=b.yLow;p.drawDataLabels&&p.drawDataLabels.apply(this,arguments)}b.align=h;b.verticalAlign=n},alignDataLabel:function(){q.column.prototype.alignDataLabel.apply(this,arguments)},setStackedPoints:t, | ||
getSymbol:t,drawPoints:t})})(w);(function(a){var k=a.seriesType;k("areasplinerange","arearange",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline})})(w);(function(a){var k=a.defaultPlotOptions,t=a.each,u=a.merge,g=a.noop,m=a.pick,q=a.seriesType,c=a.seriesTypes.column.prototype;q("columnrange","arearange",u(k.column,k.arearange,{lineWidth:1,pointRange:null}),{translate:function(){var a=this,l=a.yAxis,f=a.xAxis,p=f.startAngleRad,b,h=a.chart,n=a.xAxis.isRadial,r;c.translate.apply(a); | ||
t(a.points,function(d){var c=d.shapeArgs,e=a.options.minPointLength,g,k;d.plotHigh=r=l.translate(d.high,0,1,0,1);d.plotLow=d.plotY;k=r;g=m(d.rectPlotY,d.plotY)-r;Math.abs(g)<e?(e-=g,g+=e,k-=e/2):0>g&&(g*=-1,k-=g);n?(b=d.barX+p,d.shapeType="path",d.shapeArgs={d:a.polarArc(k+g,k,b,b+d.pointWidth)}):(c.height=g,c.y=k,d.tooltipPos=h.inverted?[l.len+l.pos-h.plotLeft-k-g/2,f.len+f.pos-h.plotTop-c.x-c.width/2,g]:[f.left-h.plotLeft+c.x+c.width/2,l.pos-h.plotTop+k+g/2,g])})},directTouch:!0,trackerGroups:["group", | ||
"dataLabelsGroup"],drawGraph:g,crispCol:c.crispCol,drawPoints:c.drawPoints,drawTracker:c.drawTracker,getColumnMetrics:c.getColumnMetrics,animate:function(){return c.animate.apply(this,arguments)},polarArc:function(){return c.polarArc.apply(this,arguments)},pointAttribs:c.pointAttribs})})(w);(function(a){var k=a.each,t=a.isNumber,u=a.merge,g=a.pick,m=a.pInt,q=a.Series,c=a.seriesType,e=a.TrackerMixin;c("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:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var c=this.yAxis,a=this.options,e=c.center;this.generatePoints();k(this.points,function(b){var f=u(a.dial,b.dial),h=m(g(f.radius,80))*e[2]/200,l=m(g(f.baseLength,70))*h/100,d=m(g(f.rearLength,10))*h/100,n=f.baseWidth||3,k=f.topWidth||1,q=a.overshoot,x=c.startAngleRad+c.translate(b.y,null,null, | ||
null,!0);t(q)?(q=q/180*Math.PI,x=Math.max(c.startAngleRad-q,Math.min(c.endAngleRad+q,x))):!1===a.wrap&&(x=Math.max(c.startAngleRad,Math.min(c.endAngleRad,x)));x=180*x/Math.PI;b.shapeType="path";b.shapeArgs={d:f.path||["M",-d,-n/2,"L",l,-n/2,h,-k/2,h,k/2,l,n/2,-d,n/2,"z"],translateX:e[0],translateY:e[1],rotation:x};b.plotX=e[0];b.plotY=e[1]})},drawPoints:function(){var c=this,a=c.yAxis.center,e=c.pivot,b=c.options,f=b.pivot,p=c.chart.renderer;k(c.points,function(a){var d=a.graphic,e=a.shapeArgs,f= | ||
e.d;u(b.dial,a.dial);d?(d.animate(e),e.d=f):a.graphic=p[a.shapeType](e).attr({rotation:e.rotation,zIndex:1}).addClass("highcharts-dial").add(c.group)});e?e.animate({translateX:a[0],translateY:a[1]}):c.pivot=p.circle(0,0,g(f.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(a[0],a[1]).add(c.group)},animate:function(c){var a=this;c||(k(a.points,function(c){var b=c.graphic;b&&(b.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),b.animate({rotation:c.shapeArgs.rotation},a.options.animation))}), | ||
dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var c=this.yAxis,a=this.options,e=c.center;this.generatePoints();k(this.points,function(b){var h=u(a.dial,b.dial),l=m(g(h.radius,80))*e[2]/200,f=m(g(h.baseLength,70))*l/100,d=m(g(h.rearLength,10))*l/100,p=h.baseWidth||3,k=h.topWidth||1,q=a.overshoot,x=c.startAngleRad+c.translate(b.y,null,null, | ||
null,!0);t(q)?(q=q/180*Math.PI,x=Math.max(c.startAngleRad-q,Math.min(c.endAngleRad+q,x))):!1===a.wrap&&(x=Math.max(c.startAngleRad,Math.min(c.endAngleRad,x)));x=180*x/Math.PI;b.shapeType="path";b.shapeArgs={d:h.path||["M",-d,-p/2,"L",f,-p/2,l,-k/2,l,k/2,f,p/2,-d,p/2,"z"],translateX:e[0],translateY:e[1],rotation:x};b.plotX=e[0];b.plotY=e[1]})},drawPoints:function(){var c=this,a=c.yAxis.center,e=c.pivot,b=c.options,h=b.pivot,n=c.chart.renderer;k(c.points,function(a){var d=a.graphic,e=a.shapeArgs,h= | ||
e.d;u(b.dial,a.dial);d?(d.animate(e),e.d=h):a.graphic=n[a.shapeType](e).attr({rotation:e.rotation,zIndex:1}).addClass("highcharts-dial").add(c.group)});e?e.animate({translateX:a[0],translateY:a[1]}):c.pivot=n.circle(0,0,g(h.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(a[0],a[1]).add(c.group)},animate:function(c){var a=this;c||(k(a.points,function(c){var b=c.graphic;b&&(b.attr({rotation:180*a.yAxis.startAngleRad/Math.PI}),b.animate({rotation:c.shapeArgs.rotation},a.options.animation))}), | ||
a.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);q.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(c,a){q.prototype.setData.call(this,c,!1);this.processData();this.generatePoints();g(a,!0)&&this.chart.redraw()},drawTracker:e&&e.drawTrackerPoint},{setState:function(c){this.state=c}})})(w);(function(a){var k=a.each,t=a.noop,u=a.seriesType,g=a.seriesTypes;u("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(a){return[a.low,a.q1,a.median,a.q3,a.high]},pointValKey:"high",drawDataLabels:t, | ||
translate:function(){var a=this.yAxis,q=this.pointArrayMap;g.column.prototype.translate.apply(this);k(this.points,function(c){k(q,function(e){null!==c[e]&&(c[e+"Plot"]=a.translate(c[e],0,1,0,1))})})},drawPoints:function(){var a=this,g=a.chart.renderer,c,e,h,l,n,b,f=0,p,r,d,v,z=!1!==a.doQuartiles,t,x=a.options.whiskerLength;k(a.points,function(k){var m=k.graphic,q=m?"animate":"attr",u=k.shapeArgs;void 0!==k.plotY&&(p=u.width,r=Math.floor(u.x),d=r+p,v=Math.round(p/2),c=Math.floor(z?k.q1Plot:k.lowPlot), | ||
e=Math.floor(z?k.q3Plot:k.lowPlot),h=Math.floor(k.highPlot),l=Math.floor(k.lowPlot),m||(k.graphic=m=g.g("point").add(a.group),k.stem=g.path().addClass("highcharts-boxplot-stem").add(m),x&&(k.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(m)),z&&(k.box=g.path(void 0).addClass("highcharts-boxplot-box").add(m)),k.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(m)),b=k.stem.strokeWidth()%2/2,f=r+v+b,k.stem[q]({d:["M",f,e,"L",f,h,"M",f,c,"L",f,l]}),z&&(b=k.box.strokeWidth()% | ||
2/2,c=Math.floor(c)+b,e=Math.floor(e)+b,r+=b,d+=b,k.box[q]({d:["M",r,e,"L",r,c,"L",d,c,"L",d,e,"L",r,e,"z"]})),x&&(b=k.whiskers.strokeWidth()%2/2,h+=b,l+=b,t=/%$/.test(x)?v*parseFloat(x)/100:x/2,k.whiskers[q]({d:["M",f-t,h,"L",f+t,h,"M",f-t,l,"L",f+t,l]})),n=Math.round(k.medianPlot),b=k.medianShape.strokeWidth()%2/2,n+=b,k.medianShape[q]({d:["M",r,n,"L",d,n]}))})},setStackedPoints:t})})(w);(function(a){var k=a.each,t=a.noop,u=a.seriesType,g=a.seriesTypes;u("errorbar","boxplot",{grouping:!1,linkedTo:":previous", | ||
translate:function(){var a=this.yAxis,q=this.pointArrayMap;g.column.prototype.translate.apply(this);k(this.points,function(c){k(q,function(e){null!==c[e]&&(c[e+"Plot"]=a.translate(c[e],0,1,0,1))})})},drawPoints:function(){var a=this,g=a.chart.renderer,c,e,l,f,p,b,h=0,n,r,d,v,y=!1!==a.doQuartiles,t,x=a.options.whiskerLength;k(a.points,function(k){var m=k.graphic,q=m?"animate":"attr",u=k.shapeArgs;void 0!==k.plotY&&(n=u.width,r=Math.floor(u.x),d=r+n,v=Math.round(n/2),c=Math.floor(y?k.q1Plot:k.lowPlot), | ||
e=Math.floor(y?k.q3Plot:k.lowPlot),l=Math.floor(k.highPlot),f=Math.floor(k.lowPlot),m||(k.graphic=m=g.g("point").add(a.group),k.stem=g.path().addClass("highcharts-boxplot-stem").add(m),x&&(k.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(m)),y&&(k.box=g.path(void 0).addClass("highcharts-boxplot-box").add(m)),k.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(m)),b=k.stem.strokeWidth()%2/2,h=r+v+b,k.stem[q]({d:["M",h,e,"L",h,l,"M",h,c,"L",h,f]}),y&&(b=k.box.strokeWidth()% | ||
2/2,c=Math.floor(c)+b,e=Math.floor(e)+b,r+=b,d+=b,k.box[q]({d:["M",r,e,"L",r,c,"L",d,c,"L",d,e,"L",r,e,"z"]})),x&&(b=k.whiskers.strokeWidth()%2/2,l+=b,f+=b,t=/%$/.test(x)?v*parseFloat(x)/100:x/2,k.whiskers[q]({d:["M",h-t,l,"L",h+t,l,"M",h-t,f,"L",h+t,f]})),p=Math.round(k.medianPlot),b=k.medianShape.strokeWidth()%2/2,p+=b,k.medianShape[q]({d:["M",r,p,"L",d,p]}))})},setStackedPoints:t})})(w);(function(a){var k=a.each,t=a.noop,u=a.seriesType,g=a.seriesTypes;u("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(a){return[a.low,a.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:g.arearange?function(){var a=this.pointValKey;g.arearange.prototype.drawDataLabels.call(this);k(this.data,function(k){k.y=k[a]})}:t,getColumnMetrics:function(){return this.linkedParent&& | ||
this.linkedParent.columnMetrics||g.column.prototype.getColumnMetrics.call(this)}})})(w);(function(a){var k=a.correctFloat,t=a.isNumber,u=a.pick,g=a.Point,m=a.Series,q=a.seriesType,c=a.seriesTypes;q("waterfall","column",{dataLabels:{inside:!0}},{pointValKey:"y",translate:function(){var a=this.options,h=this.yAxis,l,n,b,f,p,r,d,g,m,q=u(a.minPointLength,5),t=a.threshold,w=a.stacking,A=0,y=0,B;c.column.prototype.translate.apply(this);d=g=t;n=this.points;l=0;for(a=n.length;l<a;l++)b=n[l],r=this.processedYData[l], | ||
f=b.shapeArgs,p=w&&h.stacks[(this.negStacks&&r<t?"-":"")+this.stackKey],B=this.getStackIndicator(B,b.x),m=p?p[b.x].points[this.index+","+l+","+B.index]:[0,r],b.isSum?b.y=k(r):b.isIntermediateSum&&(b.y=k(r-g)),p=Math.max(d,d+b.y)+m[0],f.y=h.toPixels(p,!0),b.isSum?(f.y=h.toPixels(m[1],!0),f.height=Math.min(h.toPixels(m[0],!0),h.len)-f.y+A+y):b.isIntermediateSum?(f.y=h.toPixels(m[1],!0),f.height=Math.min(h.toPixels(g,!0),h.len)-f.y+A+y,g=m[1]):(f.height=0<r?h.toPixels(d,!0)-f.y:h.toPixels(d,!0)-h.toPixels(d- | ||
r,!0),d+=r),0>f.height&&(f.y+=f.height,f.height*=-1),b.plotY=f.y=Math.round(f.y)-this.borderWidth%2/2,f.height=Math.max(Math.round(f.height),.001),b.yBottom=f.y+f.height,f.y-=y,f.height<=q&&!b.isNull&&(f.height=q,0>b.y?y-=q:A+=q),f.y-=A,f=b.plotY-y-A+(b.negative&&0<=y?f.height:0),this.chart.inverted?b.tooltipPos[0]=h.len-f:b.tooltipPos[1]=f},processData:function(a){var c=this.yData,e=this.options.data,n,b=c.length,f,p,r,d,g,q;p=f=r=d=this.options.threshold||0;for(q=0;q<b;q++)g=c[q],n=e&&e[q]?e[q]: | ||
{},"sum"===g||n.isSum?c[q]=k(p):"intermediateSum"===g||n.isIntermediateSum?c[q]=k(f):(p+=g,f+=g),r=Math.min(p,r),d=Math.max(p,d);m.prototype.processData.call(this,a);this.dataMin=r;this.dataMax=d},toYData:function(a){return a.isSum?0===a.x?null:"sum":a.isIntermediateSum?0===a.x?null:"intermediateSum":a.y},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var a=this.data,c=a.length,l=this.graph.strokeWidth()+this.borderWidth,l=Math.round(l)%2/2,n=[],b,f,p;for(p=1;p<c;p++)f=a[p].shapeArgs, | ||
b=a[p-1].shapeArgs,f=["M",b.x+b.width,b.y+l,"L",f.x,b.y+l],0>a[p-1].y&&(f[2]+=b.height,f[5]+=b.height),n=n.concat(f);return n},drawGraph:function(){m.prototype.drawGraph.call(this);this.graph.attr({d:this.getCrispPath()})},getExtremes:a.noop},{getClassName:function(){var a=g.prototype.getClassName.call(this);this.isSum?a+=" highcharts-sum":this.isIntermediateSum&&(a+=" highcharts-intermediate-sum");return a},isValid:function(){return t(this.y,!0)||this.isSum||this.isIntermediateSum}})})(w);(function(a){var k= | ||
a.Series,t=a.seriesType,u=a.seriesTypes;t("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=k.prototype.getGraphPath.call(this),m=a.length+1;m--;)(m===a.length||"M"===a[m])&&0<m&&a.splice(m,0,"z");return this.areaPath=a},drawGraph:function(){u.area.prototype.drawGraph.call(this)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawTracker:k.prototype.drawTracker, | ||
setStackedPoints:a.noop})})(w);(function(a){var k=a.arrayMax,t=a.arrayMin,u=a.Axis,g=a.each,m=a.isNumber,q=a.noop,c=a.pick,e=a.pInt,h=a.Point,l=a.seriesType,n=a.seriesTypes;l("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{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"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["markerGroup","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",getRadii:function(a,c,e,l){var b,f,h,n=this.zData,p=[],r=this.options,k="width"!==r.sizeBy,g=r.zThreshold,m=c-a;f=0;for(b=n.length;f<b;f++)h=n[f],r.sizeByAbsoluteValue&&null!==h&&(h=Math.abs(h-g),c=Math.max(c-g,Math.abs(a-g)),a=0),null===h?h=null:h<a?h=e/2-1:(h=0<m?(h-a)/m:.5,k&&0<=h&&(h=Math.sqrt(h)),h=Math.ceil(e+h*(l-e))/2),p.push(h);this.radii= | ||
p},animate:function(a){var b=this.options.animation;a||(g(this.points,function(a){var c=a.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(d,b))}),this.animate=null)},translate:function(){var a,c=this.data,e,h,d=this.radii;n.scatter.prototype.translate.call(this);for(a=c.length;a--;)e=c[a],h=d?d[a]:0,m(h)&&h>=this.minPxSize/2?(e.marker={radius:h,width:2*h,height:2*h},e.dlBox={x:e.plotX-h,y:e.plotY-h,width:2*h,height:2*h}): | ||
e.shapeArgs=e.plotY=e.dlBox=void 0},alignDataLabel:n.column.prototype.alignDataLabel,buildKDTree:q,applyZones:q},{haloPath:function(a){return h.prototype.haloPath.call(this,0===a?0:this.marker.radius+a)},ttBelow:!1});u.prototype.beforePadding=function(){var a=this,f=this.len,h=this.chart,l=0,d=f,n=this.isXAxis,q=n?"xData":"yData",u=this.min,x={},w=Math.min(h.plotWidth,h.plotHeight),A=Number.MAX_VALUE,y=-Number.MAX_VALUE,B=this.max-u,C=f/B,D=[];g(this.series,function(b){var d=b.options;!b.bubblePadding|| | ||
!b.visible&&h.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,D.push(b),n&&(g(["minSize","maxSize"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);x[a]=c?w*b/100:b}),b.minPxSize=x.minSize,b.maxPxSize=Math.max(x.maxSize,x.minSize),b=b.zData,b.length&&(A=c(d.zMin,Math.min(A,Math.max(t(b),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),y=c(d.zMax,Math.max(y,k(b))))))});g(D,function(b){var c=b[q],e=c.length,f;n&&b.getRadii(A,y,b.minPxSize,b.maxPxSize);if(0<B)for(;e--;)m(c[e])&&a.dataMin<= | ||
c[e]&&c[e]<=a.dataMax&&(f=b.radii[e],l=Math.min((c[e]-u)*C-f,l),d=Math.max((c[e]-u)*C+f,d))});D.length&&0<B&&!this.isLog&&(d-=f,C*=(f+l-d)/f,g([["min","userMin",l],["max","userMax",d]],function(b){void 0===c(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/C)}))}})(w);(function(a){function k(a,e){var c=this.chart,l=this.options.animation,n=this.group,b=this.markerGroup,f=this.xAxis.center,g=c.plotLeft,k=c.plotTop;c.polar?c.renderer.isSVG&&(!0===l&&(l={}),e?(a={translateX:f[0]+g,translateY:f[1]+k,scaleX:.001, | ||
scaleY:.001},n.attr(a),b&&b.attr(a)):(a={translateX:g,translateY:k,scaleX:1,scaleY:1},n.animate(a,l),b&&b.animate(a,l),this.animate=null)):a.call(this,e)}var t=a.each,u=a.pick,g=a.seriesTypes,m=a.wrap,q=a.Series.prototype;a=a.Pointer.prototype;q.searchPointByAngle=function(a){var c=this.chart,h=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(a.chartX-h[0]-c.plotLeft,a.chartY-h[1]-c.plotTop)})};m(q,"buildKDTree",function(a){this.chart.polar&&(this.kdByAngle?this.searchPoint= | ||
this.searchPointByAngle:this.kdDimensions=2);a.apply(this)});q.toXY=function(a){var c,h=this.chart,l=a.plotX;c=a.plotY;a.rectPlotX=l;a.rectPlotY=c;c=this.xAxis.postTranslate(a.plotX,this.yAxis.len-c);a.plotX=a.polarPlotX=c.x-h.plotLeft;a.plotY=a.polarPlotY=c.y-h.plotTop;this.kdByAngle?(h=(l/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>h&&(h+=360),a.clientX=h):a.clientX=a.plotX};g.spline&&m(g.spline.prototype,"getPointSpline",function(a,e,h,l){var c,b,f,g,k,d,m;this.chart.polar?(c=h.plotX, | ||
b=h.plotY,a=e[l-1],f=e[l+1],this.connectEnds&&(a||(a=e[e.length-2]),f||(f=e[1])),a&&f&&(g=a.plotX,k=a.plotY,e=f.plotX,d=f.plotY,g=(1.5*c+g)/2.5,k=(1.5*b+k)/2.5,f=(1.5*c+e)/2.5,m=(1.5*b+d)/2.5,e=Math.sqrt(Math.pow(g-c,2)+Math.pow(k-b,2)),d=Math.sqrt(Math.pow(f-c,2)+Math.pow(m-b,2)),g=Math.atan2(k-b,g-c),k=Math.atan2(m-b,f-c),m=Math.PI/2+(g+k)/2,Math.abs(g-m)>Math.PI/2&&(m-=Math.PI),g=c+Math.cos(m)*e,k=b+Math.sin(m)*e,f=c+Math.cos(Math.PI+m)*d,m=b+Math.sin(Math.PI+m)*d,h.rightContX=f,h.rightContY=m), | ||
l?(h=["C",a.rightContX||a.plotX,a.rightContY||a.plotY,g||c,k||b,c,b],a.rightContX=a.rightContY=null):h=["M",c,b]):h=a.call(this,e,h,l);return h});m(q,"translate",function(a){var c=this.chart;a.call(this);if(c.polar&&(this.kdByAngle=c.tooltip&&c.tooltip.shared,!this.preventPostTranslate))for(a=this.points,c=a.length;c--;)this.toXY(a[c])});m(q,"getGraphPath",function(a,e){var c=this,l,g;if(this.chart.polar){e=e||this.points;for(l=0;l<e.length;l++)if(!e[l].isNull){g=l;break}!1!==this.options.connectEnds&& | ||
void 0!==g&&(this.connectEnds=!0,e.splice(e.length,0,e[g]));t(e,function(a){void 0===a.polarPlotY&&c.toXY(a)})}return a.apply(this,[].slice.call(arguments,1))});m(q,"animate",k);g.column&&(g=g.column.prototype,g.polarArc=function(a,e,h,l){var c=this.xAxis.center,b=this.yAxis.len;return this.chart.renderer.symbols.arc(c[0],c[1],b-e,null,{start:h,end:l,innerR:b-u(a,b)})},m(g,"animate",k),m(g,"translate",function(a){var c=this.xAxis,h=c.startAngleRad,l,g,b;this.preventPostTranslate=!0;a.call(this);if(c.isRadial)for(l= | ||
this.points,b=l.length;b--;)g=l[b],a=g.barX+h,g.shapeType="path",g.shapeArgs={d:this.polarArc(g.yBottom,g.plotY,a,a+g.pointWidth)},this.toXY(g),g.tooltipPos=[g.plotX,g.plotY],g.ttBelow=g.plotY>c.center[1]}),m(g,"alignDataLabel",function(a,e,h,g,k,b){this.chart.polar?(a=e.rectPlotX/Math.PI*180,null===g.align&&(g.align=20<a&&160>a?"left":200<a&&340>a?"right":"center"),null===g.verticalAlign&&(g.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),q.alignDataLabel.call(this,e,h,g,k,b)):a.call(this, | ||
e,h,g,k,b)}));m(a,"getCoordinates",function(a,e){var c=this.chart,g={xAxis:[],yAxis:[]};c.polar?t(c.axes,function(a){var b=a.isXAxis,f=a.center,h=e.chartX-f[0]-c.plotLeft,f=e.chartY-f[1]-c.plotTop;g[b?"xAxis":"yAxis"].push({axis:a,value:a.translate(b?Math.PI-Math.atan2(h,f):Math.sqrt(Math.pow(h,2)+Math.pow(f,2)),!0)})}):g=a.call(this,e);return g})})(w)}); | ||
this.linkedParent.columnMetrics||g.column.prototype.getColumnMetrics.call(this)}})})(w);(function(a){var k=a.correctFloat,t=a.isNumber,u=a.pick,g=a.Point,m=a.Series,q=a.seriesType,c=a.seriesTypes;q("waterfall","column",{dataLabels:{inside:!0}},{pointValKey:"y",translate:function(){var a=this.options,l=this.yAxis,f,p,b,h,n,r,d,g,m,q=u(a.minPointLength,5),t=q/2,w=a.threshold,A=a.stacking,z;c.column.prototype.translate.apply(this);d=g=w;p=this.points;f=0;for(a=p.length;f<a;f++)b=p[f],r=this.processedYData[f], | ||
h=b.shapeArgs,n=A&&l.stacks[(this.negStacks&&r<w?"-":"")+this.stackKey],z=this.getStackIndicator(z,b.x),m=n?n[b.x].points[this.index+","+f+","+z.index]:[0,r],b.isSum?b.y=k(r):b.isIntermediateSum&&(b.y=k(r-g)),n=Math.max(d,d+b.y)+m[0],h.y=l.toPixels(n,!0),b.isSum?(h.y=l.toPixels(m[1],!0),h.height=Math.min(l.toPixels(m[0],!0),l.len)-h.y):b.isIntermediateSum?(h.y=l.toPixels(m[1],!0),h.height=Math.min(l.toPixels(g,!0),l.len)-h.y,g=m[1]):(h.height=0<r?l.toPixels(d,!0)-h.y:l.toPixels(d,!0)-l.toPixels(d- | ||
r,!0),d+=r),0>h.height&&(h.y+=h.height,h.height*=-1),b.plotY=h.y=Math.round(h.y)-this.borderWidth%2/2,h.height=Math.max(Math.round(h.height),.001),b.yBottom=h.y+h.height,h.height<=q&&!b.isNull?(h.height=q,h.y-=t,b.plotY=h.y,b.minPointLengthOffset=0>b.y?-t:t):b.minPointLengthOffset=0,h=b.plotY+(b.negative?h.height:0),this.chart.inverted?b.tooltipPos[0]=l.len-h:b.tooltipPos[1]=h},processData:function(a){var c=this.yData,e=this.options.data,p,b=c.length,h,n,r,d,g,q;n=h=r=d=this.options.threshold||0; | ||
for(q=0;q<b;q++)g=c[q],p=e&&e[q]?e[q]:{},"sum"===g||p.isSum?c[q]=k(n):"intermediateSum"===g||p.isIntermediateSum?c[q]=k(h):(n+=g,h+=g),r=Math.min(n,r),d=Math.max(n,d);m.prototype.processData.call(this,a);this.dataMin=r;this.dataMax=d},toYData:function(a){return a.isSum?0===a.x?null:"sum":a.isIntermediateSum?0===a.x?null:"intermediateSum":a.y},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var a=this.data,c=a.length,f=this.graph.strokeWidth()+this.borderWidth,f=Math.round(f)%2/2, | ||
p=[],b,h,n;for(n=1;n<c;n++)h=a[n].shapeArgs,b=a[n-1].shapeArgs,h=["M",b.x+b.width,b.y+a[n-1].minPointLengthOffset+f,"L",h.x,b.y+a[n-1].minPointLengthOffset+f],0>a[n-1].y&&(h[2]+=b.height,h[5]+=b.height),p=p.concat(h);return p},drawGraph:function(){m.prototype.drawGraph.call(this);this.graph.attr({d:this.getCrispPath()})},getExtremes:a.noop},{getClassName:function(){var a=g.prototype.getClassName.call(this);this.isSum?a+=" highcharts-sum":this.isIntermediateSum&&(a+=" highcharts-intermediate-sum"); | ||
return a},isValid:function(){return t(this.y,!0)||this.isSum||this.isIntermediateSum}})})(w);(function(a){var k=a.Series,t=a.seriesType,u=a.seriesTypes;t("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=k.prototype.getGraphPath.call(this),m=a.length+1;m--;)(m===a.length||"M"===a[m])&&0<m&&a.splice(m,0,"z");return this.areaPath=a},drawGraph:function(){u.area.prototype.drawGraph.call(this)}, | ||
drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawTracker:k.prototype.drawTracker,setStackedPoints:a.noop})})(w);(function(a){var k=a.arrayMax,t=a.arrayMin,u=a.Axis,g=a.each,m=a.isNumber,q=a.noop,c=a.pick,e=a.pInt,l=a.Point,f=a.seriesType,p=a.seriesTypes;f("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{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"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["markerGroup","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",getRadii:function(a,c,e,l){var b,h,f,p=this.zData,r=[],n=this.options,k="width"!==n.sizeBy,g=n.zThreshold,m=c-a;h=0;for(b=p.length;h<b;h++)f=p[h],n.sizeByAbsoluteValue&&null!==f&&(f=Math.abs(f-g),c=Math.max(c-g,Math.abs(a-g)),a=0),null===f?f=null:f<a?f=e/2-1:(f= | ||
0<m?(f-a)/m:.5,k&&0<=f&&(f=Math.sqrt(f)),f=Math.ceil(e+f*(l-e))/2),r.push(f);this.radii=r},animate:function(a){var b=this.options.animation;a||(g(this.points,function(a){var c=a.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(d,b))}),this.animate=null)},translate:function(){var b,c=this.data,e,f,d=this.radii;p.scatter.prototype.translate.call(this);for(b=c.length;b--;)e=c[b],f=d?d[b]:0,m(f)&&f>=this.minPxSize/2?(e.marker= | ||
a.extend(e.marker,{radius:f,width:2*f,height:2*f}),e.dlBox={x:e.plotX-f,y:e.plotY-f,width:2*f,height:2*f}):e.shapeArgs=e.plotY=e.dlBox=void 0},alignDataLabel:p.column.prototype.alignDataLabel,buildKDTree:q,applyZones:q},{haloPath:function(a){return l.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});u.prototype.beforePadding=function(){var a=this,f=this.len,l=this.chart,p=0,d=f,q=this.isXAxis,u=q?"xData":"yData",w=this.min,x={},E=Math.min(l.plotWidth,l.plotHeight), | ||
A=Number.MAX_VALUE,z=-Number.MAX_VALUE,C=this.max-w,B=f/C,D=[];g(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&l.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,D.push(b),q&&(g(["minSize","maxSize"],function(a){var b=d[a],c=/%$/.test(b),b=e(b);x[a]=c?E*b/100:b}),b.minPxSize=x.minSize,b.maxPxSize=Math.max(x.maxSize,x.minSize),b=b.zData,b.length&&(A=c(d.zMin,Math.min(A,Math.max(t(b),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),z=c(d.zMax,Math.max(z,k(b))))))}); | ||
g(D,function(b){var c=b[u],e=c.length,f;q&&b.getRadii(A,z,b.minPxSize,b.maxPxSize);if(0<C)for(;e--;)m(c[e])&&a.dataMin<=c[e]&&c[e]<=a.dataMax&&(f=b.radii[e],p=Math.min((c[e]-w)*B-f,p),d=Math.max((c[e]-w)*B+f,d))});D.length&&0<C&&!this.isLog&&(d-=f,B*=(f+p-d)/f,g([["min","userMin",p],["max","userMax",d]],function(b){void 0===c(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/B)}))}})(w);(function(a){function k(a,e){var c=this.chart,f=this.options.animation,p=this.group,b=this.markerGroup,h=this.xAxis.center, | ||
g=c.plotLeft,k=c.plotTop;c.polar?c.renderer.isSVG&&(!0===f&&(f={}),e?(a={translateX:h[0]+g,translateY:h[1]+k,scaleX:.001,scaleY:.001},p.attr(a),b&&b.attr(a)):(a={translateX:g,translateY:k,scaleX:1,scaleY:1},p.animate(a,f),b&&b.animate(a,f),this.animate=null)):a.call(this,e)}var t=a.each,u=a.pick,g=a.seriesTypes,m=a.wrap,q=a.Series.prototype;a=a.Pointer.prototype;q.searchPointByAngle=function(a){var c=this.chart,l=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(a.chartX- | ||
l[0]-c.plotLeft,a.chartY-l[1]-c.plotTop)})};m(q,"buildKDTree",function(a){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.kdDimensions=2);a.apply(this)});q.toXY=function(a){var c,l=this.chart,f=a.plotX;c=a.plotY;a.rectPlotX=f;a.rectPlotY=c;c=this.xAxis.postTranslate(a.plotX,this.yAxis.len-c);a.plotX=a.polarPlotX=c.x-l.plotLeft;a.plotY=a.polarPlotY=c.y-l.plotTop;this.kdByAngle?(l=(f/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>l&&(l+=360),a.clientX=l):a.clientX= | ||
a.plotX};g.spline&&m(g.spline.prototype,"getPointSpline",function(a,e,l,f){var c,b,h,g,k,d,m;this.chart.polar?(c=l.plotX,b=l.plotY,a=e[f-1],h=e[f+1],this.connectEnds&&(a||(a=e[e.length-2]),h||(h=e[1])),a&&h&&(g=a.plotX,k=a.plotY,e=h.plotX,d=h.plotY,g=(1.5*c+g)/2.5,k=(1.5*b+k)/2.5,h=(1.5*c+e)/2.5,m=(1.5*b+d)/2.5,e=Math.sqrt(Math.pow(g-c,2)+Math.pow(k-b,2)),d=Math.sqrt(Math.pow(h-c,2)+Math.pow(m-b,2)),g=Math.atan2(k-b,g-c),k=Math.atan2(m-b,h-c),m=Math.PI/2+(g+k)/2,Math.abs(g-m)>Math.PI/2&&(m-=Math.PI), | ||
g=c+Math.cos(m)*e,k=b+Math.sin(m)*e,h=c+Math.cos(Math.PI+m)*d,m=b+Math.sin(Math.PI+m)*d,l.rightContX=h,l.rightContY=m),f?(l=["C",a.rightContX||a.plotX,a.rightContY||a.plotY,g||c,k||b,c,b],a.rightContX=a.rightContY=null):l=["M",c,b]):l=a.call(this,e,l,f);return l});m(q,"translate",function(a){var c=this.chart;a.call(this);if(c.polar&&(this.kdByAngle=c.tooltip&&c.tooltip.shared,!this.preventPostTranslate))for(a=this.points,c=a.length;c--;)this.toXY(a[c])});m(q,"getGraphPath",function(a,e){var c=this, | ||
f,g;if(this.chart.polar){e=e||this.points;for(f=0;f<e.length;f++)if(!e[f].isNull){g=f;break}!1!==this.options.connectEnds&&void 0!==g&&(this.connectEnds=!0,e.splice(e.length,0,e[g]));t(e,function(a){void 0===a.polarPlotY&&c.toXY(a)})}return a.apply(this,[].slice.call(arguments,1))});m(q,"animate",k);g.column&&(g=g.column.prototype,g.polarArc=function(a,e,l,f){var c=this.xAxis.center,b=this.yAxis.len;return this.chart.renderer.symbols.arc(c[0],c[1],b-e,null,{start:l,end:f,innerR:b-u(a,b)})},m(g,"animate", | ||
k),m(g,"translate",function(a){var c=this.xAxis,l=c.startAngleRad,f,g,b;this.preventPostTranslate=!0;a.call(this);if(c.isRadial)for(f=this.points,b=f.length;b--;)g=f[b],a=g.barX+l,g.shapeType="path",g.shapeArgs={d:this.polarArc(g.yBottom,g.plotY,a,a+g.pointWidth)},this.toXY(g),g.tooltipPos=[g.plotX,g.plotY],g.ttBelow=g.plotY>c.center[1]}),m(g,"alignDataLabel",function(a,e,g,f,k,b){this.chart.polar?(a=e.rectPlotX/Math.PI*180,null===f.align&&(f.align=20<a&&160>a?"left":200<a&&340>a?"right":"center"), | ||
null===f.verticalAlign&&(f.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),q.alignDataLabel.call(this,e,g,f,k,b)):a.call(this,e,g,f,k,b)}));m(a,"getCoordinates",function(a,e){var c=this.chart,f={xAxis:[],yAxis:[]};c.polar?t(c.axes,function(a){var b=a.isXAxis,h=a.center,g=e.chartX-h[0]-c.plotLeft,h=e.chartY-h[1]-c.plotTop;f[b?"xAxis":"yAxis"].push({axis:a,value:a.translate(b?Math.PI-Math.atan2(g,h):Math.sqrt(Math.pow(g,2)+Math.pow(h,2)),!0)})}):f=a.call(this,e);return f})})(w)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Accessibility module | ||
@@ -10,38 +10,39 @@ | ||
*/ | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(e){function n(a){return a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#x27;").replace(/\//g,"\x26#x2F;")}function A(a){for(var b=a.childNodes.length;b--;)a.appendChild(a.childNodes[b])}function k(a){var b;a&&a.onclick&&(b=l.createEvent("Events"),b.initEvent("click",!0,!1),a.onclick(b))}var y=e.win,l=y.document,g=e.each, | ||
B=e.erase,u=e.addEvent,C=e.removeEvent,w=e.fireEvent,D=e.dateFormat,v=e.merge,r={"default":["series","data point","data points"],line:["line","data point","data points"],spline:["line","data point","data points"],area:["line","data point","data points"],areaspline:["line","data point","data points"],pie:["pie","slice","slices"],column:["column series","column","columns"],bar:["bar series","bar","bars"],scatter:["scatter series","data point","data points"],boxplot:["boxplot series","box","boxes"], | ||
arearange:["arearange series","data point","data points"],areasplinerange:["areasplinerange series","data point","data points"],bubble:["bubble series","bubble","bubbles"],columnrange:["columnrange series","column","columns"],errorbar:["errorbar series","errorbar","errorbars"],funnel:["funnel","data point","data points"],pyramid:["pyramid","data point","data points"],waterfall:["waterfall series","column","columns"],map:["map","area","areas"],mapline:["line","data point","data points"],mappoint:["point series", | ||
"data point","data points"],mapbubble:["bubble series","bubble","bubbles"]},E={boxplot:" Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile and maximum. ",arearange:" Arearange charts are line charts displaying a range between a lower and higher value for each point. ",areasplinerange:" These charts are line charts displaying a range between a lower and higher value for each point. ", | ||
bubble:" Bubble charts are scatter charts where each data point also has a size value. ",columnrange:" Columnrange charts are column charts displaying a range between a lower and higher value for each point. ",errorbar:" Errorbar series are used to display the variability of the data. ",funnel:" Funnel charts are used to display reduction of data in stages. ",pyramid:" Pyramid charts consist of a single pyramid with item heights corresponding to each point value. ",waterfall:" A waterfall chart is a column chart where each column contributes towards a total end value. "}, | ||
F="name id category x value y".split(" "),z="z open high q3 median q1 low close".split(" ");e.setOptions({accessibility:{enabled:!0,pointDescriptionThreshold:30,keyboardNavigation:{enabled:!0}}});e.wrap(e.Series.prototype,"render",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));this.chart.options.accessibility.enabled&&this.setA11yDescription()});e.Series.prototype.setA11yDescription=function(){var a=this.chart.options.accessibility,b=this.points&&this.points.length&&this.points[0].graphic&& | ||
this.points[0].graphic.element,d=b&&b.parentNode||this.graph&&this.graph.element||this.group&&this.group.element;d&&(d.lastChild===b&&A(d),this.points&&(this.points.length<a.pointDescriptionThreshold||!1===a.pointDescriptionThreshold)&&g(this.points,function(c){c.graphic&&(c.graphic.element.setAttribute("role","img"),c.graphic.element.setAttribute("tabindex","-1"),c.graphic.element.setAttribute("aria-label",a.pointDescriptionFormatter&&a.pointDescriptionFormatter(c)||c.buildPointInfoString()))}), | ||
1<this.chart.series.length||a.describeSingleSeries)&&(d.setAttribute("role","region"),d.setAttribute("tabindex","-1"),d.setAttribute("aria-label",a.seriesDescriptionFormatter&&a.seriesDescriptionFormatter(this)||this.buildSeriesInfoString()))};e.Series.prototype.buildSeriesInfoString=function(){var a=r[this.type]||r.default,b=this.description||this.options.description;return(this.name?this.name+", ":"")+(1===this.chart.types.length?a[0]:"series")+" "+(this.index+1)+" of "+this.chart.series.length+ | ||
(1===this.chart.types.length?" with ":". "+a[0]+" with ")+(this.points.length+" "+(1===this.points.length?a[1]:a[2]))+(b?". "+b:"")+(1<this.chart.yAxis.length&&this.yAxis?". Y axis, "+this.yAxis.getDescription():"")+(1<this.chart.xAxis.length&&this.xAxis?". X axis, "+this.xAxis.getDescription():"")};e.Point.prototype.buildPointInfoString=function(){var a=this,b=a.series,d=b.chart.options.accessibility,c="",f=!1,x=b.xAxis&&b.xAxis.isDatetimeAxis,b=x&&D(d.pointDateFormatter&&d.pointDateFormatter(a)|| | ||
d.pointDateFormat||e.Tooltip.prototype.getXDateFormat(a,b.chart.options.tooltip,b.xAxis),a.x);g(z,function(c){void 0!==a[c]&&(f=!0)});f?(x&&(c=b),g(F.concat(z),function(b){void 0===a[b]||x&&"x"===b||(c+=(c?". ":"")+b+", "+this[b])})):c=(this.name||b||this.category||this.id||"x, "+this.x)+", "+(void 0!==this.value?this.value:this.y);return this.index+1+". "+c+"."+(this.description?" "+this.description:"")};e.Axis.prototype.getDescription=function(){return this.userOptions&&this.userOptions.description|| | ||
this.axisTitle&&this.axisTitle.textStr||this.options.id||this.categories&&"categories"||"values"};e.Axis.prototype.panStep=function(a,b){var d=b||3;b=this.getExtremes();var c=(b.max-b.min)/d*a,d=b.max+c,c=b.min+c,f=d-c;0>a&&c<b.dataMin?(c=b.dataMin,d=c+f):0<a&&d>b.dataMax&&(d=b.dataMax,c=d-f);this.setExtremes(c,d)};e.wrap(e.Series.prototype,"init",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));var b=this.chart;b.options.accessibility.enabled&&(b.types=b.types||[],0>b.types.indexOf(this.type)&& | ||
b.types.push(this.type),u(this,"remove",function(){var a=this,c=!1;g(b.series,function(f){f!==a&&0>b.types.indexOf(a.type)&&(c=!0)});c||B(b.types,a.type)}))});e.Chart.prototype.getTypeDescription=function(){var a=this.types&&this.types[0],b=this.series[0]&&this.series[0].mapTitle;if(a){if("map"===a)return b?"Map of "+b:"Map of unspecified region.";if(1<this.types.length)return"Combination chart.";if(-1<["spline","area","areaspline"].indexOf(a))return"Line chart."}else return"Empty chart.";return a+ | ||
" chart."+(E[a]||"")};e.Chart.prototype.getAxesDescription=function(){var a=this.xAxis.length,b=this.yAxis.length,d={},c;if(a)if(d.xAxis="The chart has "+a+(1<a?" X axes":" X axis")+" displaying ",2>a)d.xAxis+=this.xAxis[0].getDescription()+".";else{for(c=0;c<a-1;++c)d.xAxis+=(c?", ":"")+this.xAxis[c].getDescription();d.xAxis+=" and "+this.xAxis[c].getDescription()+"."}if(b)if(d.yAxis="The chart has "+b+(1<b?" Y axes":" Y axis")+" displaying ",2>b)d.yAxis+=this.yAxis[0].getDescription()+".";else{for(c= | ||
0;c<b-1;++c)d.yAxis+=(c?", ":"")+this.yAxis[c].getDescription();d.yAxis+=" and "+this.yAxis[c].getDescription()+"."}return d};e.Chart.prototype.addAccessibleContextMenuAttribs=function(){var a=this.exportDivElements;a&&(g(a,function(b){"DIV"!==b.tagName||b.children&&b.children.length||(b.setAttribute("role","menuitem"),b.setAttribute("tabindex",-1))}),a[0].parentNode.setAttribute("role","menu"),a[0].parentNode.setAttribute("aria-label","Chart export"))};e.Point.prototype.highlight=function(){var a= | ||
this.series.chart;this.graphic&&this.graphic.element.focus&&this.graphic.element.focus();this.isNull?a.tooltip.hide(0):(this.onMouseOver(),a.tooltip.refresh(a.tooltip.shared?[this]:this));a.highlightedPoint=this;return this};e.Chart.prototype.highlightAdjacentPoint=function(a){var b=this.series,d=this.highlightedPoint,c=d&&d.index||0;if(!b[0]||!b[0].points)return!1;if(!d)return b[0].points[0].highlight();if(d.series.points[c]!==d)for(var f=0;f<d.series.points.length;++f)if(d.series.points[f]===d){c= | ||
f;break}b=b[d.series.index+(a?1:-1)];d=d.series.points[c+(a?1:-1)]||b&&b.points[a?0:b.points.length-1];return void 0===d?!1:d.isNull&&this.options.accessibility.keyboardNavigation&&this.options.accessibility.keyboardNavigation.skipNullPoints?(this.highlightedPoint=d,this.highlightAdjacentPoint(a)):d.highlight()};e.Chart.prototype.showExportMenu=function(){this.exportSVGElements&&this.exportSVGElements[0]&&(this.exportSVGElements[0].element.onclick(),this.highlightExportItem(0))};e.Chart.prototype.highlightExportItem= | ||
function(a){var b=this.exportDivElements&&this.exportDivElements[a],d=this.exportDivElements&&this.exportDivElements[this.highlightedExportItem];if(b&&"DIV"===b.tagName&&(!b.children||!b.children.length)){b.focus&&b.focus();if(d&&d.onmouseout)d.onmouseout();if(b.onmouseover)b.onmouseover();this.highlightedExportItem=a;return!0}};e.Chart.prototype.highlightRangeSelectorButton=function(a){var b=this.rangeSelector.buttons;b[this.highlightedRangeSelectorItemIx]&&b[this.highlightedRangeSelectorItemIx].setState(this.oldRangeSelectorItemState|| | ||
0);this.highlightedRangeSelectorItemIx=a;return b[a]?(b[a].element.focus&&b[a].element.focus(),this.oldRangeSelectorItemState=b[a].state,b[a].setState(2),!0):!1};e.Chart.prototype.highlightLegendItem=function(a){var b=this.legend.allItems;b[this.highlightedLegendItemIx]&&w(b[this.highlightedLegendItemIx].legendGroup.element,"mouseout");this.highlightedLegendItemIx=a;return b[a]?(b[a].legendGroup.element.focus&&b[a].legendGroup.element.focus(),w(b[a].legendGroup.element,"mouseover"),!0):!1};e.Chart.prototype.hideExportMenu= | ||
function(){var a=this.exportDivElements;if(a){g(a,function(b){w(b,"mouseleave")});if(a[this.highlightedExportItem]&&a[this.highlightedExportItem].onmouseout)a[this.highlightedExportItem].onmouseout();this.highlightedExportItem=0;this.renderTo.focus()}};e.Chart.prototype.addKeyboardNavEvents=function(){function a(c){this.keyCodeMap=c.keyCodeMap;this.move=c.move;this.validate=c.validate;this.init=c.init;this.transformTabs=!1!==c.transformTabs}function b(b,d){return new a(v({keyCodeMap:b,move:function(b){c.keyboardNavigationModuleIndex+= | ||
b;var a=c.keyboardNavigationModules[c.keyboardNavigationModuleIndex];if(a){if(a.validate&&!a.validate())return this.move(b);if(a.init)return a.init(b),!0}c.keyboardNavigationModuleIndex=0;c.slipNextTab=!0;return!1}},d))}function d(b){b=b||y.event;var a=c.keyboardNavigationModules[c.keyboardNavigationModuleIndex];9===(b.which||b.keyCode)&&c.slipNextTab?c.slipNextTab=!1:(c.slipNextTab=!1,a&&a.run(b)&&b.preventDefault())}var c=this;a.prototype={run:function(c){var b=this,a=c.which||c.keyCode,f=!1,a= | ||
this.transformTabs&&9===a?c.shiftKey?37:39:a;g(this.keyCodeMap,function(d){-1<d[0].indexOf(a)&&(f=!1===d[1].call(b,a,c)?!1:!0)});return f}};c.keyboardNavigationModules=[b([[[37,39],function(b){if(!c.highlightAdjacentPoint(39===b))return this.move(39===b?1:-1)}],[[38,40],function(b){var a;if(c.highlightedPoint)if((a=c.series[c.highlightedPoint.series.index+(38===b?-1:1)])&&a.points[0])a.points[0].highlight();else return this.move(40===b?1:-1)}],[[13,32],function(){c.highlightedPoint&&c.highlightedPoint.firePointEvent("click")}]], | ||
{init:function(b){var a=c.series&&c.series[c.series.length-1],a=a&&a.points&&a.points[a.points.length-1];0>b&&a&&a.highlight()}}),b([[[37,38],function(){for(var a=c.highlightedExportItem||0,b=!0,d=c.series;a--;)if(c.highlightExportItem(a)){b=!1;break}if(b)return c.hideExportMenu(),d&&d.length&&(a=d[d.length-1],a.points.length&&a.points[a.points.length-1].highlight()),this.move(-1)}],[[39,40],function(){for(var a=!0,b=(c.highlightedExportItem||0)+1;b<c.exportDivElements.length;++b)if(c.highlightExportItem(b)){a= | ||
!1;break}if(a)return c.hideExportMenu(),this.move(1)}],[[13,32],function(){k(c.exportDivElements[c.highlightedExportItem])}]],{validate:function(){return c.exportChart&&!(c.options.exporting&&!1===c.options.exporting.enabled)},init:function(a){c.highlightedPoint=null;c.showExportMenu();if(0>a&&c.exportDivElements)for(a=c.exportDivElements.length;-1<a&&!c.highlightExportItem(a);--a);}}),b([[[38,40,37,39],function(a){c[38===a||40===a?"yAxis":"xAxis"][0].panStep(39>a?-1:1)}],[[9],function(a,b){c.mapNavButtons[c.focusedMapNavButtonIx].setState(0); | ||
if(b.shiftKey&&!c.focusedMapNavButtonIx||!b.shiftKey&&c.focusedMapNavButtonIx)return c.mapZoom(),this.move(b.shiftKey?-1:1);c.focusedMapNavButtonIx+=b.shiftKey?-1:1;a=c.mapNavButtons[c.focusedMapNavButtonIx];a.element.focus&&a.element.focus();a.setState(2)}],[[13,32],function(){k(c.mapNavButtons[c.focusedMapNavButtonIx].element)}]],{validate:function(){return c.mapZoom&&c.mapNavButtons&&2===c.mapNavButtons.length},transformTabs:!1,init:function(a){var b=c.mapNavButtons[0],d=c.mapNavButtons[1],b=0< | ||
a?b:d;g(c.mapNavButtons,function(a,c){a.element.setAttribute("tabindex",-1);a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Zoom "+(c?"out":"")+"chart")});b.element.focus&&b.element.focus();b.setState(2);c.focusedMapNavButtonIx=0<a?0:1}}),b([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!c.highlightRangeSelectorButton(c.highlightedRangeSelectorItemIx+a))return this.move(a)}],[[13,32],function(){3!==c.oldRangeSelectorItemState&&k(c.rangeSelector.buttons[c.highlightedRangeSelectorItemIx].element)}]], | ||
{validate:function(){return c.rangeSelector&&c.rangeSelector.buttons&&c.rangeSelector.buttons.length},init:function(a){g(c.rangeSelector.buttons,function(a){a.element.setAttribute("tabindex","-1");a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Select range "+(a.text&&a.text.textStr))});c.highlightRangeSelectorButton(0<a?0:c.rangeSelector.buttons.length-1)}}),b([[[9,38,40],function(a,b){a=9===a&&b.shiftKey||38===a?-1:1;b=c.highlightedInputRangeIx+=a;if(1<b||0>b)return this.move(a); | ||
c.rangeSelector[b?"maxInput":"minInput"].focus()}]],{validate:function(){return c.rangeSelector&&c.rangeSelector.inputGroup&&"hidden"!==c.rangeSelector.inputGroup.element.getAttribute("visibility")&&!1!==c.options.rangeSelector.inputEnabled&&c.rangeSelector.minInput&&c.rangeSelector.maxInput},transformTabs:!1,init:function(a){c.highlightedInputRangeIx=0<a?0:1;c.rangeSelector[c.highlightedInputRangeIx?"maxInput":"minInput"].focus()}}),b([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!c.highlightLegendItem(c.highlightedLegendItemIx+ | ||
a))return this.move(a)}],[[13,32],function(){k(c.legend.allItems[c.highlightedLegendItemIx].legendItem.element.parentNode)}]],{validate:function(){return c.legend&&c.legend.allItems&&!c.colorAxis},init:function(a){g(c.legend.allItems,function(a){a.legendGroup.element.setAttribute("tabindex","-1");a.legendGroup.element.setAttribute("role","button");a.legendGroup.element.setAttribute("aria-label","Toggle visibility of series "+a.name)});c.highlightLegendItem(0<a?0:c.legend.allItems.length-1)}})];c.keyboardNavigationModuleIndex= | ||
0;c.renderTo.tabIndex||c.renderTo.setAttribute("tabindex","0");u(c.renderTo,"keydown",d);u(c,"destroy",function(){C(c.renderTo,"keydown",d)})};e.Chart.prototype.addScreenReaderRegion=function(a){var b=this,d=b.series,c=b.options,e=c.accessibility,g=b.screenReaderRegion=l.createElement("div"),k=l.createElement("h3"),p=l.createElement("a"),q=l.createElement("h3"),t={position:"absolute",left:"-9999px",top:"auto",width:"1px",height:"1px",overflow:"hidden"},h=b.types||[],h=(1===h.length&&"pie"===h[0]|| | ||
"map"===h[0])&&{}||b.getAxesDescription(),m=d[0]&&r[d[0].type]||r.default;g.setAttribute("role","region");g.setAttribute("aria-label","Chart screen reader information.");g.innerHTML=e.screenReaderSectionFormatter&&e.screenReaderSectionFormatter(b)||'\x3cdiv tabindex\x3d"0"\x3eUse regions/landmarks to skip ahead to chart'+(1<d.length?" and navigate between data series":"")+".\x3c/div\x3e\x3ch3\x3eSummary.\x3c/h3\x3e\x3cdiv\x3e"+(c.title.text?n(c.title.text):"Chart")+(c.subtitle&&c.subtitle.text?". "+ | ||
n(c.subtitle.text):"")+"\x3c/div\x3e\x3ch3\x3eLong description.\x3c/h3\x3e\x3cdiv\x3e"+(c.chart.description||"No description available.")+"\x3c/div\x3e\x3ch3\x3eStructure.\x3c/h3\x3e\x3cdiv\x3eChart type: "+(c.chart.typeDescription||b.getTypeDescription())+"\x3c/div\x3e"+(1===d.length?"\x3cdiv\x3e"+m[0]+" with "+d[0].points.length+" "+(1===d[0].points.length?m[1]:m[2])+".\x3c/div\x3e":"")+(h.xAxis?"\x3cdiv\x3e"+h.xAxis+"\x3c/div\x3e":"")+(h.yAxis?"\x3cdiv\x3e"+h.yAxis+"\x3c/div\x3e":"");b.getCSV&& | ||
(p.innerHTML="View as data table.",p.href="#"+a,p.setAttribute("tabindex","-1"),p.onclick=e.onTableAnchorClick||function(){b.viewData();l.getElementById(a).focus()},k.appendChild(p),g.appendChild(k));q.innerHTML="Chart graphic.";b.renderTo.insertBefore(q,b.renderTo.firstChild);b.renderTo.insertBefore(g,b.renderTo.firstChild);v(!0,q.style,t);v(!0,g.style,t)};e.Chart.prototype.callbacks.push(function(a){var b=a.options,d=b.accessibility;if(d.enabled){var c=l.createElementNS("http://www.w3.org/2000/svg", | ||
"title"),f=l.createElementNS("http://www.w3.org/2000/svg","g"),k=a.container.getElementsByTagName("desc")[0],r=a.container.getElementsByTagName("text"),p="highcharts-title-"+a.index,q="highcharts-data-table-"+a.index,t=b.title.text||"Chart",h=b.exporting&&b.exporting.csv&&b.exporting.csv.columnHeaderFormatter,m=[];c.textContent=n(t);c.id=p;k.parentNode.insertBefore(c,k);a.renderTo.setAttribute("role","region");a.renderTo.setAttribute("aria-label",t+". Use up and down arrows to navigate.");if(a.exportSVGElements&& | ||
a.exportSVGElements[0]&&a.exportSVGElements[0].element){var u=a.exportSVGElements[0].element.onclick,c=a.exportSVGElements[0].element.parentNode;a.exportSVGElements[0].element.onclick=function(){u.apply(this,Array.prototype.slice.call(arguments));a.addAccessibleContextMenuAttribs();a.highlightExportItem(0)};a.exportSVGElements[0].element.setAttribute("role","button");a.exportSVGElements[0].element.setAttribute("aria-label","View export menu");f.appendChild(a.exportSVGElements[0].element);f.setAttribute("role", | ||
"region");f.setAttribute("aria-label","Chart export menu");c.appendChild(f)}a.rangeSelector&&g(["minInput","maxInput"],function(b,c){a.rangeSelector[b]&&(a.rangeSelector[b].setAttribute("tabindex","-1"),a.rangeSelector[b].setAttribute("role","textbox"),a.rangeSelector[b].setAttribute("aria-label","Select "+(c?"end":"start")+" date."))});g(r,function(a){a.setAttribute("aria-hidden","true")});a.addScreenReaderRegion(q);d.keyboardNavigation&&a.addKeyboardNavEvents();v(!0,b.exporting,{csv:{columnHeaderFormatter:function(a, | ||
b,c){var d=m[m.length-1];1<c&&(d&&d.text)!==a.name&&m.push({text:a.name,span:c});return h?h.call(this,a,b,c):1<c?b:a.name}}});e.wrap(a,"getTable",function(a){return a.apply(this,Array.prototype.slice.call(arguments,1)).replace("\x3ctable\x3e",'\x3ctable id\x3d"'+q+'" summary\x3d"Table representation of chart"\x3e\x3ccaption\x3e'+t+"\x3c/caption\x3e")});e.wrap(a,"viewData",function(a){if(!this.insertedTable){a.apply(this,Array.prototype.slice.call(arguments,1));var b=l.getElementById(q),c=b.getElementsByTagName("tbody")[0], | ||
d=c.firstChild.children,e="\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e",f,h;b.setAttribute("tabindex","-1");g(c.children,function(a){f=a.firstChild;h=l.createElement("th");h.setAttribute("scope","row");h.innerHTML=f.innerHTML;f.parentNode.replaceChild(h,f)});g(d,function(a){"TH"===a.tagName&&a.setAttribute("scope","col")});m.length&&(g(m,function(a){e+='\x3cth scope\x3d"col" colspan\x3d"'+a.span+'"\x3e'+a.text+"\x3c/th\x3e"}),c.insertAdjacentHTML("afterbegin",e))}})}})})(n)}); | ||
(function(q){"object"===typeof module&&module.exports?module.exports=q:q(Highcharts)})(function(q){(function(e){function q(a){return a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#x27;").replace(/\//g,"\x26#x2F;")}function z(a){for(var c=a.childNodes.length;c--;)a.appendChild(a.childNodes[c])}function l(a){var c;a&&a.onclick&&k.createEvent&&(c=k.createEvent("Events"),c.initEvent("click",!0,!1),a.onclick(c))}var y=e.win,k=y.document, | ||
g=e.each,A=e.erase,v=e.addEvent,B=e.removeEvent,x=e.fireEvent,C=e.dateFormat,w=e.merge,r={"default":["series","data point","data points"],line:["line","data point","data points"],spline:["line","data point","data points"],area:["line","data point","data points"],areaspline:["line","data point","data points"],pie:["pie","slice","slices"],column:["column series","column","columns"],bar:["bar series","bar","bars"],scatter:["scatter series","data point","data points"],boxplot:["boxplot series","box", | ||
"boxes"],arearange:["arearange series","data point","data points"],areasplinerange:["areasplinerange series","data point","data points"],bubble:["bubble series","bubble","bubbles"],columnrange:["columnrange series","column","columns"],errorbar:["errorbar series","errorbar","errorbars"],funnel:["funnel","data point","data points"],pyramid:["pyramid","data point","data points"],waterfall:["waterfall series","column","columns"],map:["map","area","areas"],mapline:["line","data point","data points"],mappoint:["point series", | ||
"data point","data points"],mapbubble:["bubble series","bubble","bubbles"]},D={boxplot:" Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile and maximum. ",arearange:" Arearange charts are line charts displaying a range between a lower and higher value for each point. ",areasplinerange:" These charts are line charts displaying a range between a lower and higher value for each point. ", | ||
bubble:" Bubble charts are scatter charts where each data point also has a size value. ",columnrange:" Columnrange charts are column charts displaying a range between a lower and higher value for each point. ",errorbar:" Errorbar series are used to display the variability of the data. ",funnel:" Funnel charts are used to display reduction of data in stages. ",pyramid:" Pyramid charts consist of a single pyramid with item heights corresponding to each point value. ",waterfall:" A waterfall chart is a column chart where each column contributes towards a total end value. "}; | ||
e.Series.prototype.commonKeys="name id category x value y".split(" ");e.Series.prototype.specialKeys="z open high q3 median q1 low close".split(" ");e.seriesTypes.pie&&(e.seriesTypes.pie.prototype.specialKeys=[]);e.setOptions({accessibility:{enabled:!0,pointDescriptionThreshold:30,keyboardNavigation:{enabled:!0}}});e.wrap(e.Series.prototype,"render",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));this.chart.options.accessibility.enabled&&this.setA11yDescription()});e.Series.prototype.setA11yDescription= | ||
function(){var a=this.chart.options.accessibility,c=this.points&&this.points.length&&this.points[0].graphic&&this.points[0].graphic.element,d=c&&c.parentNode||this.graph&&this.graph.element||this.group&&this.group.element;d&&(d.lastChild===c&&z(d),this.points&&(this.points.length<a.pointDescriptionThreshold||!1===a.pointDescriptionThreshold)&&g(this.points,function(b){b.graphic&&(b.graphic.element.setAttribute("role","img"),b.graphic.element.setAttribute("tabindex","-1"),b.graphic.element.setAttribute("aria-label", | ||
a.pointDescriptionFormatter&&a.pointDescriptionFormatter(b)||b.buildPointInfoString()))}),1<this.chart.series.length||a.describeSingleSeries)&&(d.setAttribute("role","region"),d.setAttribute("tabindex","-1"),d.setAttribute("aria-label",a.seriesDescriptionFormatter&&a.seriesDescriptionFormatter(this)||this.buildSeriesInfoString()))};e.Series.prototype.buildSeriesInfoString=function(){var a=r[this.type]||r["default"],c=this.description||this.options.description;return(this.name?this.name+", ":"")+(1=== | ||
this.chart.types.length?a[0]:"series")+" "+(this.index+1)+" of "+this.chart.series.length+(1===this.chart.types.length?" with ":". "+a[0]+" with ")+(this.points.length+" "+(1===this.points.length?a[1]:a[2]))+(c?". "+c:"")+(1<this.chart.yAxis.length&&this.yAxis?". Y axis, "+this.yAxis.getDescription():"")+(1<this.chart.xAxis.length&&this.xAxis?". X axis, "+this.xAxis.getDescription():"")};e.Point.prototype.buildPointInfoString=function(){var a=this,c=a.series,d=c.chart.options.accessibility,b="",f= | ||
c.xAxis&&c.xAxis.isDatetimeAxis,d=f&&C(d.pointDateFormatter&&d.pointDateFormatter(a)||d.pointDateFormat||e.Tooltip.prototype.getXDateFormat(a,c.chart.options.tooltip,c.xAxis),a.x);e.find(c.specialKeys,function(b){return void 0!==a[b]})?(f&&(b=d),g(c.commonKeys.concat(c.specialKeys),function(c){void 0===a[c]||f&&"x"===c||(b+=(b?". ":"")+c+", "+a[c])})):b=(this.name||d||this.category||this.id||"x, "+this.x)+", "+(void 0!==this.value?this.value:this.y);return this.index+1+". "+b+"."+(this.description? | ||
" "+this.description:"")};e.Axis.prototype.getDescription=function(){return this.userOptions&&this.userOptions.description||this.axisTitle&&this.axisTitle.textStr||this.options.id||this.categories&&"categories"||"values"};e.Axis.prototype.panStep=function(a,c){var d=c||3;c=this.getExtremes();var b=(c.max-c.min)/d*a,d=c.max+b,b=c.min+b,f=d-b;0>a&&b<c.dataMin?(b=c.dataMin,d=b+f):0<a&&d>c.dataMax&&(d=c.dataMax,b=d-f);this.setExtremes(b,d)};e.wrap(e.Series.prototype,"init",function(a){a.apply(this,Array.prototype.slice.call(arguments, | ||
1));var c=this.chart;c.options.accessibility.enabled&&(c.types=c.types||[],0>c.types.indexOf(this.type)&&c.types.push(this.type),v(this,"remove",function(){var a=this,b=!1;g(c.series,function(f){f!==a&&0>c.types.indexOf(a.type)&&(b=!0)});b||A(c.types,a.type)}))});e.Chart.prototype.getTypeDescription=function(){var a=this.types&&this.types[0],c=this.series[0]&&this.series[0].mapTitle;if(a){if("map"===a)return c?"Map of "+c:"Map of unspecified region.";if(1<this.types.length)return"Combination chart."; | ||
if(-1<["spline","area","areaspline"].indexOf(a))return"Line chart."}else return"Empty chart.";return a+" chart."+(D[a]||"")};e.Chart.prototype.getAxesDescription=function(){var a=this.xAxis.length,c=this.yAxis.length,d={},b;if(a)if(d.xAxis="The chart has "+a+(1<a?" X axes":" X axis")+" displaying ",2>a)d.xAxis+=this.xAxis[0].getDescription()+".";else{for(b=0;b<a-1;++b)d.xAxis+=(b?", ":"")+this.xAxis[b].getDescription();d.xAxis+=" and "+this.xAxis[b].getDescription()+"."}if(c)if(d.yAxis="The chart has "+ | ||
c+(1<c?" Y axes":" Y axis")+" displaying ",2>c)d.yAxis+=this.yAxis[0].getDescription()+".";else{for(b=0;b<c-1;++b)d.yAxis+=(b?", ":"")+this.yAxis[b].getDescription();d.yAxis+=" and "+this.yAxis[b].getDescription()+"."}return d};e.Chart.prototype.addAccessibleContextMenuAttribs=function(){var a=this.exportDivElements;a&&(g(a,function(a){"DIV"!==a.tagName||a.children&&a.children.length||(a.setAttribute("role","menuitem"),a.setAttribute("tabindex",-1))}),a[0].parentNode.setAttribute("role","menu"),a[0].parentNode.setAttribute("aria-label", | ||
"Chart export"))};e.Point.prototype.highlight=function(){var a=this.series.chart;this.graphic&&this.graphic.element.focus&&this.graphic.element.focus();this.isNull?a.tooltip&&a.tooltip.hide(0):(this.onMouseOver(),a.tooltip&&a.tooltip.refresh(a.tooltip.shared?[this]:this));a.highlightedPoint=this;return this};e.Chart.prototype.highlightAdjacentPoint=function(a){var c=this.series,d=this.highlightedPoint,b=d&&d.index||0,f=d&&d.series.points,E=d&&d.series.connectEnds&&b>f.length-3?2:1;if(!c[0]||!c[0].points)return!1; | ||
if(!d)return c[0].points[0].highlight();if(f[b]!==d)for(var e=0;e<f.length;++e)if(f[e]===d){b=e;break}c=c[d.series.index+(a?1:-1)];b=f[b+(a?E:-1)]||c&&c.points[a?0:c.points.length-(c.connectEnds?2:1)];return void 0===b?!1:b.isNull&&this.options.accessibility.keyboardNavigation&&this.options.accessibility.keyboardNavigation.skipNullPoints?(this.highlightedPoint=b,this.highlightAdjacentPoint(a)):b.highlight()};e.Chart.prototype.showExportMenu=function(){this.exportSVGElements&&this.exportSVGElements[0]&& | ||
(this.exportSVGElements[0].element.onclick(),this.highlightExportItem(0))};e.Chart.prototype.highlightExportItem=function(a){var c=this.exportDivElements&&this.exportDivElements[a],d=this.exportDivElements&&this.exportDivElements[this.highlightedExportItem];if(c&&"DIV"===c.tagName&&(!c.children||!c.children.length)){c.focus&&c.focus();if(d&&d.onmouseout)d.onmouseout();if(c.onmouseover)c.onmouseover();this.highlightedExportItem=a;return!0}};e.Chart.prototype.highlightRangeSelectorButton=function(a){var c= | ||
this.rangeSelector.buttons;c[this.highlightedRangeSelectorItemIx]&&c[this.highlightedRangeSelectorItemIx].setState(this.oldRangeSelectorItemState||0);this.highlightedRangeSelectorItemIx=a;return c[a]?(c[a].element.focus&&c[a].element.focus(),this.oldRangeSelectorItemState=c[a].state,c[a].setState(2),!0):!1};e.Chart.prototype.highlightLegendItem=function(a){var c=this.legend.allItems;c[this.highlightedLegendItemIx]&&x(c[this.highlightedLegendItemIx].legendGroup.element,"mouseout");this.highlightedLegendItemIx= | ||
a;return c[a]?(c[a].legendGroup.element.focus&&c[a].legendGroup.element.focus(),x(c[a].legendGroup.element,"mouseover"),!0):!1};e.Chart.prototype.hideExportMenu=function(){var a=this.exportDivElements;if(a){g(a,function(a){x(a,"mouseleave")});if(a[this.highlightedExportItem]&&a[this.highlightedExportItem].onmouseout)a[this.highlightedExportItem].onmouseout();this.highlightedExportItem=0;this.renderTo.focus()}};e.Chart.prototype.addKeyboardNavEvents=function(){function a(b){this.keyCodeMap=b.keyCodeMap; | ||
this.move=b.move;this.validate=b.validate;this.init=b.init;this.transformTabs=!1!==b.transformTabs}function c(c,d){return new a(w({keyCodeMap:c,move:function(a){b.keyboardNavigationModuleIndex+=a;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex];if(c){if(c.validate&&!c.validate())return this.move(a);if(c.init)return c.init(a),!0}b.keyboardNavigationModuleIndex=0;b.slipNextTab=!0;return!1}},d))}function d(a){a=a||y.event;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex]; | ||
9===(a.which||a.keyCode)&&b.slipNextTab?b.slipNextTab=!1:(b.slipNextTab=!1,c&&c.run(a)&&a.preventDefault())}var b=this;a.prototype={run:function(b){var a=this,c=b.which||b.keyCode,f=!1,c=this.transformTabs&&9===c?b.shiftKey?37:39:c;g(this.keyCodeMap,function(d){-1<d[0].indexOf(c)&&(f=!1===d[1].call(a,c,b)?!1:!0)});return f}};b.keyboardNavigationModules=[c([[[37,39],function(a){if(!b.highlightAdjacentPoint(39===a))return this.move(39===a?1:-1)}],[[38,40],function(a){var c;if(b.highlightedPoint)if((c= | ||
b.series[b.highlightedPoint.series.index+(38===a?-1:1)])&&c.points[0])c.points[0].highlight();else return this.move(40===a?1:-1)}],[[13,32],function(){b.highlightedPoint&&b.highlightedPoint.firePointEvent("click")}]],{init:function(a){var c=b.series&&b.series[b.series.length-1],c=c&&c.points&&c.points[c.points.length-1];0>a&&c&&c.highlight()}}),c([[[37,38],function(){for(var a=b.highlightedExportItem||0,c=!0,d=b.series;a--;)if(b.highlightExportItem(a)){c=!1;break}if(c)return b.hideExportMenu(),d&& | ||
d.length&&(a=d[d.length-1],a.points.length&&a.points[a.points.length-1].highlight()),this.move(-1)}],[[39,40],function(){for(var a=!0,c=(b.highlightedExportItem||0)+1;c<b.exportDivElements.length;++c)if(b.highlightExportItem(c)){a=!1;break}if(a)return b.hideExportMenu(),this.move(1)}],[[13,32],function(){l(b.exportDivElements[b.highlightedExportItem])}]],{validate:function(){return b.exportChart&&!(b.options.exporting&&!1===b.options.exporting.enabled)},init:function(a){b.highlightedPoint=null;b.showExportMenu(); | ||
if(0>a&&b.exportDivElements)for(a=b.exportDivElements.length;-1<a&&!b.highlightExportItem(a);--a);}}),c([[[38,40,37,39],function(a){b[38===a||40===a?"yAxis":"xAxis"][0].panStep(39>a?-1:1)}],[[9],function(a,c){b.mapNavButtons[b.focusedMapNavButtonIx].setState(0);if(c.shiftKey&&!b.focusedMapNavButtonIx||!c.shiftKey&&b.focusedMapNavButtonIx)return b.mapZoom(),this.move(c.shiftKey?-1:1);b.focusedMapNavButtonIx+=c.shiftKey?-1:1;a=b.mapNavButtons[b.focusedMapNavButtonIx];a.element.focus&&a.element.focus(); | ||
a.setState(2)}],[[13,32],function(){l(b.mapNavButtons[b.focusedMapNavButtonIx].element)}]],{validate:function(){return b.mapZoom&&b.mapNavButtons&&2===b.mapNavButtons.length},transformTabs:!1,init:function(a){var c=b.mapNavButtons[0],d=b.mapNavButtons[1],c=0<a?c:d;g(b.mapNavButtons,function(a,b){a.element.setAttribute("tabindex",-1);a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Zoom "+(b?"out":"")+"chart")});c.element.focus&&c.element.focus();c.setState(2);b.focusedMapNavButtonIx= | ||
0<a?0:1}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightRangeSelectorButton(b.highlightedRangeSelectorItemIx+a))return this.move(a)}],[[13,32],function(){3!==b.oldRangeSelectorItemState&&l(b.rangeSelector.buttons[b.highlightedRangeSelectorItemIx].element)}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.buttons&&b.rangeSelector.buttons.length},init:function(a){g(b.rangeSelector.buttons,function(a){a.element.setAttribute("tabindex","-1");a.element.setAttribute("role", | ||
"button");a.element.setAttribute("aria-label","Select range "+(a.text&&a.text.textStr))});b.highlightRangeSelectorButton(0<a?0:b.rangeSelector.buttons.length-1)}}),c([[[9,38,40],function(a,c){a=9===a&&c.shiftKey||38===a?-1:1;c=b.highlightedInputRangeIx+=a;if(1<c||0>c)return this.move(a);b.rangeSelector[c?"maxInput":"minInput"].focus()}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.inputGroup&&"hidden"!==b.rangeSelector.inputGroup.element.getAttribute("visibility")&&!1!==b.options.rangeSelector.inputEnabled&& | ||
b.rangeSelector.minInput&&b.rangeSelector.maxInput},transformTabs:!1,init:function(a){b.highlightedInputRangeIx=0<a?0:1;b.rangeSelector[b.highlightedInputRangeIx?"maxInput":"minInput"].focus()}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightLegendItem(b.highlightedLegendItemIx+a))return this.move(a)}],[[13,32],function(){l(b.legend.allItems[b.highlightedLegendItemIx].legendItem.element.parentNode)}]],{validate:function(){return b.legend&&b.legend.allItems&&!b.colorAxis},init:function(a){g(b.legend.allItems, | ||
function(a){a.legendGroup.element.setAttribute("tabindex","-1");a.legendGroup.element.setAttribute("role","button");a.legendGroup.element.setAttribute("aria-label","Toggle visibility of series "+a.name)});b.highlightLegendItem(0<a?0:b.legend.allItems.length-1)}})];b.keyboardNavigationModuleIndex=0;b.container.hasAttribute&&!b.container.hasAttribute("tabIndex")&&b.container.setAttribute("tabindex","0");v(b.renderTo,"keydown",d);v(b,"destroy",function(){B(b.renderTo,"keydown",d)})};e.Chart.prototype.addScreenReaderRegion= | ||
function(a,c){var d=this,b=d.series,e=d.options,g=e.accessibility,m=d.screenReaderRegion=k.createElement("div"),l=k.createElement("h4"),n=k.createElement("a"),t=k.createElement("h4"),u={position:"absolute",left:"-9999px",top:"auto",width:"1px",height:"1px",overflow:"hidden"},h=d.types||[],h=(1===h.length&&"pie"===h[0]||"map"===h[0])&&{}||d.getAxesDescription(),p=b[0]&&r[b[0].type]||r["default"];m.setAttribute("id",a);m.setAttribute("role","region");m.setAttribute("aria-label","Chart screen reader information."); | ||
m.innerHTML=g.screenReaderSectionFormatter&&g.screenReaderSectionFormatter(d)||"\x3cdiv\x3eUse regions/landmarks to skip ahead to chart"+(1<b.length?" and navigate between data series":"")+".\x3c/div\x3e\x3ch3\x3e"+(e.title.text?q(e.title.text):"Chart")+(e.subtitle&&e.subtitle.text?". "+q(e.subtitle.text):"")+"\x3c/h3\x3e\x3ch4\x3eLong description.\x3c/h4\x3e\x3cdiv\x3e"+(e.chart.description||"No description available.")+"\x3c/div\x3e\x3ch4\x3eStructure.\x3c/h4\x3e\x3cdiv\x3eChart type: "+(e.chart.typeDescription|| | ||
d.getTypeDescription())+"\x3c/div\x3e"+(1===b.length?"\x3cdiv\x3e"+p[0]+" with "+b[0].points.length+" "+(1===b[0].points.length?p[1]:p[2])+".\x3c/div\x3e":"")+(h.xAxis?"\x3cdiv\x3e"+h.xAxis+"\x3c/div\x3e":"")+(h.yAxis?"\x3cdiv\x3e"+h.yAxis+"\x3c/div\x3e":"");d.getCSV&&(n.innerHTML="View as data table.",n.href="#"+c,n.setAttribute("tabindex","-1"),n.onclick=g.onTableAnchorClick||function(){d.viewData();k.getElementById(c).focus()},l.appendChild(n),m.appendChild(l));t.innerHTML="Chart graphic.";d.renderTo.insertBefore(t, | ||
d.renderTo.firstChild);d.renderTo.insertBefore(m,d.renderTo.firstChild);w(!0,t.style,u);w(!0,m.style,u)};e.Chart.prototype.callbacks.push(function(a){var c=a.options,d=c.accessibility;if(d.enabled){var b=k.createElementNS("http://www.w3.org/2000/svg","title"),f=k.createElementNS("http://www.w3.org/2000/svg","g"),l=a.container.getElementsByTagName("desc")[0],m=a.container.getElementsByTagName("text"),r="highcharts-title-"+a.index,n="highcharts-data-table-"+a.index,t="highcharts-information-region-"+ | ||
a.index,u=c.title.text||"Chart",h=c.exporting&&c.exporting.csv&&c.exporting.csv.columnHeaderFormatter,p=[];b.textContent=q(u);b.id=r;l.parentNode.insertBefore(b,l);a.renderTo.setAttribute("role","region");a.container.setAttribute("aria-details",t);a.renderTo.setAttribute("aria-label","Interactive chart. "+u+". Use up and down arrows to navigate with most screen readers.");if(a.exportSVGElements&&a.exportSVGElements[0]&&a.exportSVGElements[0].element){var v=a.exportSVGElements[0].element.onclick,b= | ||
a.exportSVGElements[0].element.parentNode;a.exportSVGElements[0].element.onclick=function(){v.apply(this,Array.prototype.slice.call(arguments));a.addAccessibleContextMenuAttribs();a.highlightExportItem(0)};a.exportSVGElements[0].element.setAttribute("role","button");a.exportSVGElements[0].element.setAttribute("aria-label","View export menu");f.appendChild(a.exportSVGElements[0].element);f.setAttribute("role","region");f.setAttribute("aria-label","Chart export menu");b.appendChild(f)}a.rangeSelector&& | ||
g(["minInput","maxInput"],function(b,c){a.rangeSelector[b]&&(a.rangeSelector[b].setAttribute("tabindex","-1"),a.rangeSelector[b].setAttribute("role","textbox"),a.rangeSelector[b].setAttribute("aria-label","Select "+(c?"end":"start")+" date."))});g(m,function(a){a.setAttribute("aria-hidden","true")});a.addScreenReaderRegion(t,n);d.keyboardNavigation&&a.addKeyboardNavEvents();w(!0,c.exporting,{csv:{columnHeaderFormatter:function(a,b,c){var d=p[p.length-1];1<c&&(d&&d.text)!==a.name&&p.push({text:a.name, | ||
span:c});return h?h.call(this,a,b,c):1<c?b:a.name}}});e.wrap(a,"getTable",function(a){return a.apply(this,Array.prototype.slice.call(arguments,1)).replace("\x3ctable\x3e",'\x3ctable id\x3d"'+n+'" summary\x3d"Table representation of chart"\x3e\x3ccaption\x3e'+u+"\x3c/caption\x3e")});e.wrap(a,"viewData",function(a){if(!this.insertedTable){a.apply(this,Array.prototype.slice.call(arguments,1));var b=k.getElementById(n),c=b.getElementsByTagName("tbody")[0],d=c.firstChild.children,e="\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e", | ||
f,h;b.setAttribute("tabindex","-1");g(c.children,function(a){f=a.firstChild;h=k.createElement("th");h.setAttribute("scope","row");h.innerHTML=f.innerHTML;f.parentNode.replaceChild(h,f)});g(d,function(a){"TH"===a.tagName&&a.setAttribute("scope","col")});p.length&&(g(p,function(a){e+='\x3cth scope\x3d"col" colspan\x3d"'+a.span+'"\x3e'+a.text+"\x3c/th\x3e"}),c.insertAdjacentHTML("afterbegin",e))}})}})})(q)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Accessibility module | ||
@@ -10,2 +10,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -27,3 +28,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -76,6 +76,17 @@ var win = H.win, | ||
waterfall: ' A waterfall chart is a column chart where each column contributes towards a total end value. ' | ||
}, | ||
commonKeys = ['name', 'id', 'category', 'x', 'value', 'y'], | ||
specialKeys = ['z', 'open', 'high', 'q3', 'median', 'q1', 'low', 'close']; // Tell user about all properties if points have one of these defined | ||
}; | ||
// If a point has one of the special keys defined, we expose all keys to the | ||
// screen reader. | ||
H.Series.prototype.commonKeys = ['name', 'id', 'category', 'x', 'value', 'y']; | ||
H.Series.prototype.specialKeys = [ | ||
'z', 'open', 'high', 'q3', 'median', 'q1', 'low', 'close' | ||
]; | ||
// A pie is always simple. Don't quote me on that. | ||
if (H.seriesTypes.pie) { | ||
H.seriesTypes.pie.prototype.specialKeys = []; | ||
} | ||
// Default a11y options | ||
@@ -88,3 +99,3 @@ H.setOptions({ | ||
enabled: true | ||
// skipNullPoints: false | ||
// skipNullPoints: false | ||
} | ||
@@ -121,3 +132,3 @@ // describeSingleSeries: false | ||
var fakeEvent; | ||
if (element && element.onclick) { | ||
if (element && element.onclick && doc.createEvent) { | ||
fakeEvent = doc.createEvent('Events'); | ||
@@ -172,3 +183,3 @@ fakeEvent.initEvent('click', true, false); | ||
H.Series.prototype.buildSeriesInfoString = function() { | ||
var typeInfo = typeToSeriesMap[this.type] || typeToSeriesMap.default, | ||
var typeInfo = typeToSeriesMap[this.type] || typeToSeriesMap['default'], // eslint-disable-line dot-notation | ||
description = this.description || this.options.description; | ||
@@ -190,13 +201,9 @@ return (this.name ? this.name + ', ' : '') + | ||
infoString = '', | ||
hasSpecialKey = false, | ||
dateTimePoint = series.xAxis && series.xAxis.isDatetimeAxis, | ||
timeDesc = dateTimePoint && dateFormat(a11yOptions.pointDateFormatter && a11yOptions.pointDateFormatter(point) || a11yOptions.pointDateFormat || | ||
H.Tooltip.prototype.getXDateFormat(point, series.chart.options.tooltip, series.xAxis), point.x); | ||
H.Tooltip.prototype.getXDateFormat(point, series.chart.options.tooltip, series.xAxis), point.x), | ||
hasSpecialKey = H.find(series.specialKeys, function(key) { | ||
return point[key] !== undefined; | ||
}); | ||
each(specialKeys, function(key) { | ||
if (point[key] !== undefined) { | ||
hasSpecialKey = true; | ||
} | ||
}); | ||
// If the point has one of the less common properties defined, display all that are defined | ||
@@ -207,5 +214,5 @@ if (hasSpecialKey) { | ||
} | ||
each(commonKeys.concat(specialKeys), function(key) { | ||
each(series.commonKeys.concat(series.specialKeys), function(key) { | ||
if (point[key] !== undefined && !(dateTimePoint && key === 'x')) { | ||
infoString += (infoString ? '. ' : '') + key + ', ' + this[key]; | ||
infoString += (infoString ? '. ' : '') + key + ', ' + point[key]; | ||
} | ||
@@ -352,5 +359,10 @@ }); | ||
this.onMouseOver(); // Show the hover marker | ||
chart.tooltip.refresh(chart.tooltip.shared ? [this] : this); // Show the tooltip | ||
// Show the tooltip | ||
if (chart.tooltip) { | ||
chart.tooltip.refresh(chart.tooltip.shared ? [this] : this); | ||
} | ||
} else { | ||
chart.tooltip.hide(0); | ||
if (chart.tooltip) { | ||
chart.tooltip.hide(0); | ||
} | ||
// Don't call blur on the element, as it messes up the chart div's focus | ||
@@ -368,4 +380,9 @@ } | ||
curPointIndex = curPoint && curPoint.index || 0, | ||
curPoints = curPoint && curPoint.series.points, | ||
newSeries, | ||
newPoint; | ||
newPoint, | ||
// Handle connecting ends - where the points array has an extra last | ||
// point that is a reference to the first one. We skip this. | ||
forwardSkipAmount = curPoint && curPoint.series.connectEnds && | ||
curPointIndex > curPoints.length - 3 ? 2 : 1; | ||
@@ -383,5 +400,5 @@ // If no points, return false | ||
// Find index of current point in series.points array. Necessary for dataGrouping (and maybe zoom?) | ||
if (curPoint.series.points[curPointIndex] !== curPoint) { | ||
for (var i = 0; i < curPoint.series.points.length; ++i) { | ||
if (curPoint.series.points[i] === curPoint) { | ||
if (curPoints[curPointIndex] !== curPoint) { | ||
for (var i = 0; i < curPoints.length; ++i) { | ||
if (curPoints[i] === curPoint) { | ||
curPointIndex = i; | ||
@@ -393,5 +410,10 @@ break; | ||
// Try to grab next/prev point | ||
// Grab next/prev point & series | ||
newSeries = series[curPoint.series.index + (next ? 1 : -1)]; | ||
newPoint = curPoint.series.points[curPointIndex + (next ? 1 : -1)] || newSeries && newSeries.points[next ? 0 : newSeries.points.length - 1]; | ||
newPoint = curPoints[curPointIndex + (next ? forwardSkipAmount : -1)] || | ||
// Done with this series, try next one | ||
newSeries && | ||
newSeries.points[next ? 0 : newSeries.points.length - ( | ||
newSeries.connectEnds ? 2 : 1 | ||
)]; | ||
@@ -884,4 +906,7 @@ // If there is no adjacent point, we return false | ||
// Make chart reachable by tab | ||
if (!chart.renderTo.tabIndex) { | ||
chart.renderTo.setAttribute('tabindex', '0'); | ||
if ( | ||
chart.container.hasAttribute && | ||
!chart.container.hasAttribute('tabIndex') | ||
) { | ||
chart.container.setAttribute('tabindex', '0'); | ||
} | ||
@@ -898,3 +923,3 @@ | ||
// tableId is the HTML id of the table to focus when clicking the table anchor in the screen reader region. | ||
H.Chart.prototype.addScreenReaderRegion = function(tableId) { | ||
H.Chart.prototype.addScreenReaderRegion = function(id, tableId) { | ||
var chart = this, | ||
@@ -905,5 +930,5 @@ series = chart.series, | ||
hiddenSection = chart.screenReaderRegion = doc.createElement('div'), | ||
tableShortcut = doc.createElement('h3'), | ||
tableShortcut = doc.createElement('h4'), | ||
tableShortcutAnchor = doc.createElement('a'), | ||
chartHeading = doc.createElement('h3'), | ||
chartHeading = doc.createElement('h4'), | ||
hiddenStyle = { // CSS style to hide element from visual users while still exposing it to screen readers | ||
@@ -920,4 +945,5 @@ position: 'absolute', | ||
axesDesc = (chartTypes.length === 1 && chartTypes[0] === 'pie' || chartTypes[0] === 'map') && {} || chart.getAxesDescription(), | ||
chartTypeInfo = series[0] && typeToSeriesMap[series[0].type] || typeToSeriesMap.default; | ||
chartTypeInfo = series[0] && typeToSeriesMap[series[0].type] || typeToSeriesMap['default']; // eslint-disable-line dot-notation | ||
hiddenSection.setAttribute('id', id); | ||
hiddenSection.setAttribute('role', 'region'); | ||
@@ -927,8 +953,8 @@ hiddenSection.setAttribute('aria-label', 'Chart screen reader information.'); | ||
hiddenSection.innerHTML = a11yOptions.screenReaderSectionFormatter && a11yOptions.screenReaderSectionFormatter(chart) || | ||
'<div tabindex="0">Use regions/landmarks to skip ahead to chart' + | ||
'<div>Use regions/landmarks to skip ahead to chart' + | ||
(series.length > 1 ? ' and navigate between data series' : '') + | ||
'.</div><h3>Summary.</h3><div>' + (options.title.text ? htmlencode(options.title.text) : 'Chart') + | ||
'.</div><h3>' + (options.title.text ? htmlencode(options.title.text) : 'Chart') + | ||
(options.subtitle && options.subtitle.text ? '. ' + htmlencode(options.subtitle.text) : '') + | ||
'</div><h3>Long description.</h3><div>' + (options.chart.description || 'No description available.') + | ||
'</div><h3>Structure.</h3><div>Chart type: ' + (options.chart.typeDescription || chart.getTypeDescription()) + '</div>' + | ||
'</h3><h4>Long description.</h4><div>' + (options.chart.description || 'No description available.') + | ||
'</div><h4>Structure.</h4><div>Chart type: ' + (options.chart.typeDescription || chart.getTypeDescription()) + '</div>' + | ||
(series.length === 1 ? '<div>' + chartTypeInfo[0] + ' with ' + series[0].points.length + ' ' + | ||
@@ -949,6 +975,7 @@ (series[0].points.length === 1 ? chartTypeInfo[1] : chartTypeInfo[2]) + '.</div>' : '') + | ||
tableShortcut.appendChild(tableShortcutAnchor); | ||
hiddenSection.appendChild(tableShortcut); | ||
} | ||
// Note: JAWS seems to refuse to read aria-label on the container, so add an | ||
// h4 element as title for the chart. | ||
chartHeading.innerHTML = 'Chart graphic.'; | ||
@@ -979,2 +1006,3 @@ chart.renderTo.insertBefore(chartHeading, chart.renderTo.firstChild); | ||
tableId = 'highcharts-data-table-' + chart.index, | ||
hiddenSectionId = 'highcharts-information-region-' + chart.index, | ||
chartTitle = options.title.text || 'Chart', | ||
@@ -989,3 +1017,5 @@ oldColumnHeaderFormatter = options.exporting && options.exporting.csv && options.exporting.csv.columnHeaderFormatter, | ||
chart.renderTo.setAttribute('role', 'region'); | ||
chart.renderTo.setAttribute('aria-label', chartTitle + '. Use up and down arrows to navigate.'); | ||
chart.container.setAttribute('aria-details', hiddenSectionId); | ||
chart.renderTo.setAttribute('aria-label', 'Interactive chart. ' + chartTitle + | ||
'. Use up and down arrows to navigate with most screen readers.'); | ||
@@ -1027,3 +1057,3 @@ // Set screen reader properties on export menu | ||
// Add top-secret screen reader region | ||
chart.addScreenReaderRegion(tableId); | ||
chart.addScreenReaderRegion(hiddenSectionId, tableId); | ||
@@ -1030,0 +1060,0 @@ // Enable keyboard navigation |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -4,0 +4,0 @@ (c) 2009-2016 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -22,3 +23,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -25,0 +25,0 @@ var defined = H.defined, |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Boost module | ||
@@ -10,14 +10,43 @@ | ||
*/ | ||
(function(q){"object"===typeof module&&module.exports?module.exports=q:q(Highcharts)})(function(q){(function(f){function q(a,b,c,e,g){g=g||0;e=e||5E4;for(var k=g+e,f=!0;f&&g<k&&g<a.length;)f=b(a[g],g),g+=1;f&&(g<a.length?setTimeout(function(){q(a,b,c,e,g)}):c&&c())}var x=f.win.document,U=function(){},V=f.Color,l=f.Series,d=f.seriesTypes,p=f.each,y=f.extend,W=f.addEvent,X=f.fireEvent,z=f.grep,u=f.isNumber,Y=f.merge,Z=f.pick,n=f.wrap,v=f.getOptions().plotOptions,G;p("area arearange bubble column line scatter".split(" "), | ||
function(a){v[a]&&(v[a].boostThreshold=5E3)});p(["translate","generatePoints","drawTracker","drawPoints","render"],function(a){function b(c){var b=this.options.stacking&&("translate"===a||"generatePoints"===a);if((this.processedXData||this.options.data).length<(this.options.boostThreshold||Number.MAX_VALUE)||b)"render"===a&&this.image&&(this.image.attr({href:""}),this.animate=null),c.call(this);else if(this[a+"Canvas"])this[a+"Canvas"]()}n(l.prototype,a,b);"translate"===a&&p(["arearange","bubble", | ||
"column"],function(c){d[c]&&n(d[c].prototype,a,b)})});n(l.prototype,"getExtremes",function(a){this.hasExtremes()||a.apply(this,Array.prototype.slice.call(arguments,1))});n(l.prototype,"setData",function(a){this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))});n(l.prototype,"processData",function(a){this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))});f.extend(l.prototype,{pointRange:0,allowDG:!1,hasExtremes:function(a){var b=this.options,c=this.xAxis&& | ||
this.xAxis.options,e=this.yAxis&&this.yAxis.options;return b.data.length>(b.boostThreshold||Number.MAX_VALUE)&&u(e.min)&&u(e.max)&&(!a||u(c.min)&&u(c.max))},destroyGraphics:function(){var a=this,b=this.points,c,e;if(b)for(e=0;e<b.length;e+=1)(c=b[e])&&c.graphic&&(c.graphic=c.graphic.destroy());p(["graph","area","tracker"],function(b){a[b]&&(a[b]=a[b].destroy())})},getContext:function(){var a=this.chart,b=a.plotWidth,c=a.plotHeight,e=this.ctx,g=function(a,b,c,e,g,f,d){a.call(this,c,b,e,g,f,d)};this.canvas? | ||
e.clearRect(0,0,b,c):(this.canvas=x.createElement("canvas"),this.image=a.renderer.image("",0,0,b,c).add(this.group),this.ctx=e=this.canvas.getContext("2d"),a.inverted&&p(["moveTo","lineTo","rect","arc"],function(a){n(e,a,g)}));this.canvas.width=b;this.canvas.height=c;this.image.attr({width:b,height:c});return e},canvasToSVG:function(){this.image.attr({href:this.canvas.toDataURL("image/png")})},cvsLineTo:function(a,b,c){a.lineTo(b,c)},renderCanvas:function(){var a=this,b=a.options,c=a.chart,e=this.xAxis, | ||
g=this.yAxis,k,d=0,l=a.processedXData,n=a.processedYData,p=b.data,m=e.getExtremes(),v=m.min,x=m.max,m=g.getExtremes(),z=m.min,aa=m.max,H={},A,ba=!!a.sampling,I,B=b.marker&&b.marker.radius,J=this.cvsDrawPoint,C=b.lineWidth?this.cvsLineTo:!1,K=B&&1>=B?this.cvsMarkerSquare:this.cvsMarkerCircle,ca=this.cvsStrokeBatch||1E3,da=!1!==b.enableMouseTracking,L,m=b.threshold,r=g.getThreshold(m),M=u(m),N=r,ea=this.fill,O=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),P=!!b.stacking,fa=a.cropStart||0, | ||
m=c.options.loading,ga=a.requireSorting,Q,ha=b.connectNulls,R=!l,D,E,t,w,ia=a.fillOpacity?(new V(a.color)).setOpacity(Z(b.fillOpacity,.75)).get():a.color,S=function(){ea?(k.fillStyle=ia,k.fill()):(k.strokeStyle=a.color,k.lineWidth=b.lineWidth,k.stroke())},T=function(b,c,e,g){0===d&&(k.beginPath(),C&&(k.lineJoin="round"));Q?k.moveTo(b,c):J?J(k,b,c,e,L):C?C(k,b,c):K&&K.call(a,k,b,c,B,g);d+=1;d===ca&&(S(),d=0);L={clientX:b,plotY:c,yBottom:e}},F=function(a,b,f){da&&!H[a+","+b]&&(H[a+","+b]=!0,c.inverted&& | ||
(a=e.len-a,b=g.len-b),I.push({clientX:a,plotX:a,plotY:b,i:fa+f}))};(this.points||this.graph)&&this.destroyGraphics();a.plotGroup("group","series",a.visible?"visible":"hidden",b.zIndex,c.seriesGroup);a.markerGroup=a.group;W(a,"destroy",function(){a.markerGroup=null});I=this.points=[];k=this.getContext();a.buildKDTree=U;99999<p.length&&(c.options.loading=Y(m,{labelStyle:{backgroundColor:f.color("#ffffff").setOpacity(.75).get(),padding:"1em",borderRadius:"0.5em"},style:{backgroundColor:"none",opacity:1}}), | ||
clearTimeout(G),c.showLoading("Drawing..."),c.options.loading=m);q(P?a.data:l||p,function(b,f){var d,h,k,l="undefined"===typeof c.index,m=!0;if(!l){R?(d=b[0],h=b[1]):(d=b,h=n[f]);O?(R&&(h=b.slice(1,3)),k=h[0],h=h[1]):P&&(d=b.x,h=b.stackY,k=h-b.y);b=null===h;ga||(m=h>=z&&h<=aa);if(!b&&d>=v&&d<=x&&m)if(d=Math.round(e.toPixels(d,!0)),ba){if(void 0===t||d===A){O||(k=h);if(void 0===w||h>E)E=h,w=f;if(void 0===t||k<D)D=k,t=f}d!==A&&(void 0!==t&&(h=g.toPixels(E,!0),r=g.toPixels(D,!0),T(d,M?Math.min(h,N): | ||
h,M?Math.max(r,N):r,f),F(d,h,w),r!==h&&F(d,r,t)),t=w=void 0,A=d)}else h=Math.round(g.toPixels(h,!0)),T(d,h,r,f),F(d,h,f);Q=b&&!ha;0===f%5E4&&a.canvasToSVG()}return!l},function(){var b=c.loadingDiv,e=c.loadingShown;S();a.canvasToSVG();X(a,"renderedCanvas");e&&(y(b.style,{transition:"opacity 250ms",opacity:0}),c.loadingShown=!1,G=setTimeout(function(){b.parentNode&&b.parentNode.removeChild(b);c.loadingDiv=c.loadingSpan=null},250));a.directTouch=!1;a.options.stickyTracking=!0;delete a.buildKDTree;a.buildKDTree()}, | ||
c.renderer.forExport?Number.MAX_VALUE:void 0)}});d.scatter.prototype.cvsMarkerCircle=function(a,b,c,e){a.moveTo(b,c);a.arc(b,c,e,0,2*Math.PI,!1)};d.scatter.prototype.cvsMarkerSquare=function(a,b,c,e){a.rect(b-e,c-e,2*e,2*e)};d.scatter.prototype.fill=!0;d.bubble&&(d.bubble.prototype.cvsMarkerCircle=function(a,b,c,e,d){a.moveTo(b,c);a.arc(b,c,this.radii&&this.radii[d],0,2*Math.PI,!1)},d.bubble.prototype.cvsStrokeBatch=1);y(d.area.prototype,{cvsDrawPoint:function(a,b,c,e,d){d&&b!==d.clientX&&(a.moveTo(d.clientX, | ||
d.yBottom),a.lineTo(d.clientX,d.plotY),a.lineTo(b,c),a.lineTo(b,e))},fill:!0,fillOpacity:!0,sampling:!0});y(d.column.prototype,{cvsDrawPoint:function(a,b,c,d){a.rect(b-1,c,1,d-c)},fill:!0,sampling:!0});l.prototype.getPoint=function(a){var b=a,c=this.xData||this.options.xData||this.processedXData||!1;!a||a instanceof this.pointClass||(b=(new this.pointClass).init(this,this.options.data[a.i],c?c[a.i]:void 0),b.category=b.x,b.dist=a.dist,b.distX=a.distX,b.plotX=a.plotX,b.plotY=a.plotY);return b};n(l.prototype, | ||
"destroy",function(a){var b=this,c=b.chart;c.hoverPoints&&(c.hoverPoints=z(c.hoverPoints,function(a){return a.series===b}));c.hoverPoint&&c.hoverPoint.series===b&&(c.hoverPoint=null);a.call(this)});n(l.prototype,"searchPoint",function(a){return this.getPoint(a.apply(this,[].slice.call(arguments,1)))})})(q)}); | ||
(function(H){"object"===typeof module&&module.exports?module.exports=H:H(Highcharts)})(function(H){(function(h){function w(a){return a.series.length>=D(a.options.boost&&a.options.boost.seriesThreshold,10)}function x(a){function c(){var a=Array.prototype.slice.call(arguments),c=-Number.MAX_VALUE;y(a,function(a){if("undefined"!==typeof a&&"undefined"!==typeof a.length&&0<a.length)return c=a.length,!0});return c}return w(a.chart)||c(a.processedXData,a.options.data,a.points)>=(a.options.boostThreshold|| | ||
Number.MAX_VALUE)}function H(a){function c(b,c){c=a.createShader("vertex"===c?a.VERTEX_SHADER:a.FRAGMENT_SHADER);a.shaderSource(c,b);a.compileShader(c);return a.getShaderParameter(c,a.COMPILE_STATUS)?c:!1}function d(){function d(b){return a.getUniformLocation(l,b)}var e=c("#version 100\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value \x3d aVertexPosition.w;\nfloat zMax \x3d bubbleZMax;\nfloat zMin \x3d bubbleZMin;\nfloat radius \x3d 0.0;\nfloat pos \x3d 0.0;\nfloat zRange \x3d zMax - zMin;\nif (bubbleSizeAbs){\nvalue \x3d value - bubbleZThreshold;\nzMax \x3d max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin \x3d 0.0;\n}\nif (value \x3c zMin){\nradius \x3d bubbleZMin / 2.0 - 1.0;\n} else {\npos \x3d zRange \x3e 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea \x26\x26 pos \x3e 0.0){\npos \x3d sqrt(pos);\n}\nradius \x3d ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord\n){\nfloat sign \x3d 1.0;\nfloat cvsOffset \x3d 0.0;\nif (cvsCoord) {\nsign *\x3d -1.0;\ncvsOffset \x3d len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value){\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold){\nfloat v;\nif (skipTranslation){\nv \x3d value;// + yAxisPos;\n} else {\nv \x3d translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord);// + yAxisPos;\n}\nif (checkTreshold \x3e 0.0 \x26\x26 hasThreshold) {\nv \x3d min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize \x3d bubbleRadius();\n} else {\ngl_PointSize \x3d pSize;\n}\nvColor \x3d aColor;\nif (isInverted) {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.y) + yAxisPos, yToPixels(aVertexPosition.x, aVertexPosition.z) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}", | ||
"vertex"),k=c("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col \x3d fillColor;\nif (hasColor) {\ncol \x3d vColor;\n}\nif (isCircle) {\ngl_FragColor \x3d col * texture2D(uSampler, gl_PointCoord.st);\n} else {\ngl_FragColor \x3d col;\n}\n}","fragment");if(!e||!k)return l=!1;l=a.createProgram();a.attachShader(l,e);a.attachShader(l,k);a.linkProgram(l); | ||
a.useProgram(l);a.bindAttribLocation(l,0,"aVertexPosition");h=d("uPMatrix");v=d("pSize");E=d("fillColor");F=d("isBubble");f=d("bubbleSizeAbs");r=d("bubbleSizeByArea");z=d("uSampler");b=d("skipTranslation");n=d("isCircle");g=d("isInverted");return!0}function k(b,c){b=e[b]=e[b]||a.getUniformLocation(l,b);a.uniform1f(b,c)}var e={},l,h,v,E,F,f,r,b,n,g,z;a&&d();return{psUniform:function(){return v},pUniform:function(){return h},fillColorUniform:function(){return E},setBubbleUniforms:function(b,c,d){var e= | ||
b.options,l=Number.MAX_VALUE,h=-Number.MAX_VALUE;"bubble"===b.type&&(l=D(e.zMin,Math.min(l,Math.max(c,!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE))),h=D(e.zMax,Math.max(h,d)),a.uniform1i(F,1),a.uniform1i(n,1),a.uniform1i(r,"width"!==b.options.sizeBy),a.uniform1i(f,b.options.sizeByAbsoluteValue),k("bubbleZMin",l),k("bubbleZMax",h),k("bubbleZThreshold",b.options.zThreshold),k("bubbleMinSize",b.minPxSize),k("bubbleMaxSize",b.maxPxSize))},bind:function(){a.useProgram(l)},program:function(){return l}, | ||
create:d,setUniform:k,setPMatrix:function(b){a.uniformMatrix4fv(h,!1,b)},setColor:function(b){a.uniform4f(E,b[0]/255,b[1]/255,b[2]/255,b[3])},setPointSize:function(b){a.uniform1f(v,b)},setSkipTranslation:function(c){a.uniform1i(b,!0===c?1:0)},setTexture:function(){a.uniform1i(z,0)},setDrawAsCircle:function(b){a.uniform1i(n,b?1:0)},reset:function(){a.uniform1i(F,0);a.uniform1i(n,0)},setInverted:function(b){a.uniform1i(g,b)},destroy:function(){a&&l&&a.deleteProgram(l)}}}function X(a,c,d){var k=!1,e= | ||
!1,l=d||2,h=!1,v=0,g;return{destroy:function(){k&&a.deleteBuffer(k)},bind:function(){if(!k)return!1;a.vertexAttribPointer(e,l,a.FLOAT,!1,0,0)},data:g,build:function(d,f,r){g=d||[];if(!(g&&0!==g.length||h))return k=!1;l=r||l;k&&a.deleteBuffer(k);k=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,k);a.bufferData(a.ARRAY_BUFFER,h||new Float32Array(g),a.STATIC_DRAW);e=a.getAttribLocation(c.program(),f);a.enableVertexAttribArray(e);return!0},render:function(c,d,e){var b=h?h.length:g.length;if(!k||!b)return!1; | ||
if(!c||c>b||0>c)c=0;if(!d||d>b)d=b;a.drawArrays(a[(e||"points").toUpperCase()],c/l,(d-c)/l);return!0},allocate:function(a){v=-1;h=new Float32Array(4*a)},push:function(a,c,d,b){h&&(h[++v]=a,h[++v]=c,h[++v]=d,h[++v]=b)}}}function ga(a){function c(a){var b,c;return x(a)?(b=!!a.options.stacking,c=a.xData||a.options.xData||a.processedXData,b=(b?a.data:c||a.options.data).length,"treemap"===a.type?b*=12:"heatmap"===a.type?b*=6:O[a.type]&&(b*=2),b):0}function d(){b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT)} | ||
function k(a,b){function c(a){a&&(b.colorData.push(a[0]),b.colorData.push(a[1]),b.colorData.push(a[2]),b.colorData.push(a[3]))}function d(a,b,d,e,k){c(k);p.usePreallocated?r.push(a,b,d?1:0,e||1):(z.push(a),z.push(b),z.push(d?1:0),z.push(e||1))}function e(a,b,e,k,f){c(f);d(a+e,b);c(f);d(a,b);c(f);d(a,b+k);c(f);d(a,b+k);c(f);d(a+e,b+k);c(f);d(a+e,b)}var k=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),B=a.chart,f=a.options,N=!!f.stacking,l=f.data,g=a.xAxis.getExtremes(),v=g.min,n=g.max,g=a.yAxis.getExtremes(), | ||
u=g.min,q=g.max,g=a.xData||f.xData||a.processedXData,w=a.yData||f.yData||a.processedYData,m=a.zData||f.zData||a.processedZData,F=a.yAxis,A=a.xAxis,x=!g||0===g.length,t=a.points||!1,C=!1,E,I,J,G=N?a.data:g||l;f.boostData&&0<f.boostData.length||(a.closestPointRangePx=Number.MAX_VALUE,t&&0<t.length?(b.skipTranslation=!0,b.drawMode="triangles",t[0].node&&t[0].node.levelDynamic&&t.sort(function(a,b){if(a.node){if(a.node.levelDynamic>b.node.levelDynamic)return 1;if(a.node.levelDynamic<b.node.levelDynamic)return-1}return 0}), | ||
y(t,function(b){var c=b.plotY,d;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,d=b.pointAttr&&b.pointAttr[""]||b.series.pointAttribs(b),b=d["stroke-width"],I=h.color(d.fill).rgba,I[0]/=255,I[1]/=255,I[2]/=255,"treemap"===a.type&&(b=b||1,J=h.color(d.stroke).rgba,J[0]/=255,J[1]/=255,J[2]/=255,e(c.x,c.y,c.width,c.height,J),b/=2),e(c.x+b,c.y+b,c.width-2*b,c.height-2*b,I))})):y(G,function(c,e){var f,h,l,g=!1,K=!1,Y=!1,Z=!1,r=O[a.type],t=!1,T=!0;if("undefined"===typeof B.index)return!1;x?(f=c[0],h=c[1], | ||
G[e+1]&&(K=G[e+1][0]),G[e-1]&&(g=G[e-1][0]),3<=c.length&&(l=c[2],c[2]>b.zMax&&(b.zMax=c[2]),c[2]<b.zMin&&(b.zMin=c[2]))):(f=c,h=w[e],G[e+1]&&(K=G[e+1]),G[e-1]&&(g=G[e-1]),m&&m.length&&(l=m[e],m[e]>b.zMax&&(b.zMax=m[e]),m[e]<b.zMin&&(b.zMin=m[e])));K&&K>=v&&K<=n&&(Y=!0);g&&g>=v&&g<=n&&(Z=!0);k?(x&&(h=c.slice(1,3)),h=h[1]):N&&(f=c.x,h=c.stackY);a.requireSorting||(T=h>=u&&h<=q);h&&T&&(f>=v&&f<=n&&(t=!0),t||Y||Z)&&(p.useGPUTranslations||(b.skipTranslation=!0,f=A.toPixels(f,!0),h=F.toPixels(h,!0)),r&& | ||
(E=0,0>h&&(E=h,h=0),p.useGPUTranslations||(E=F.toPixels(E,!0)),d(f,E,0,0,!1)),b.hasMarkers&&!1!==C&&(a.closestPointRangePx=Math.min(a.closestPointRangePx,Math.abs(f-C))),d(f,h,0,"bubble"===a.type?l||1:2,!1),C=f)}))}function e(){u=[];C.data=z=[];w=[]}function l(a){f&&(f.setUniform("xAxisTrans",a.transA),f.setUniform("xAxisMin",a.min),f.setUniform("xAxisMinPad",a.minPixelPadding),f.setUniform("xAxisPointRange",a.pointRange),f.setUniform("xAxisLen",a.len),f.setUniform("xAxisPos",a.pos),f.setUniform("xAxisCVSCoord", | ||
!a.horiz))}function g(a){f&&(f.setUniform("yAxisTrans",a.transA),f.setUniform("yAxisMin",a.min),f.setUniform("yAxisMinPad",a.minPixelPadding),f.setUniform("yAxisPointRange",a.pointRange),f.setUniform("yAxisLen",a.len),f.setUniform("yAxisPos",a.pos),f.setUniform("yAxisCVSCoord",!a.horiz))}function v(a,b){f.setUniform("hasThreshold",a);f.setUniform("translatedThreshold",b)}function q(c){if(c)n=c.chartWidth||800,A=c.chartHeight||400;else return!1;if(!b||!n||!A)return!1;p.timeRendering&&console.time("gl rendering"); | ||
f.bind();b.viewport(0,0,n,A);f.setPMatrix([2/n,0,0,0,0,-(2/A),0,0,0,0,-2,0,-1,1,-1,1]);b.lineWidth(p.lineWidth);r.build(C.data,"aVertexPosition",4);r.bind();m&&(b.bindTexture(b.TEXTURE_2D,L),f.setTexture(L));f.setInverted(c.options.chart?c.options.chart.inverted:!1);y(u,function(a,c){var d=a.series.options,e=d.threshold,k=P(e),e=a.series.yAxis.getThreshold(e),K=D(d.marker?d.marker.enabled:null,a.series.xAxis.isRadial?!0:null,a.series.closestPointRangePx>2*((d.marker?d.marker.radius:10)||10)),B=a.series.fillOpacity? | ||
(new aa(a.series.color)).setOpacity(D(d.fillOpacity,.85)).get():a.series.color;r.bind();d.colorByPoint&&(B=a.series.chart.options.colors[c]);B=h.color(B).rgba;p.useAlpha||(B[3]=1);"add"===d.boostBlending?(b.blendFunc(b.SRC_ALPHA,b.ONE),b.blendEquation(b.FUNC_ADD)):"mult"===d.boostBlending?b.blendFunc(b.DST_COLOR,b.ZERO):"darken"===d.boostBlending?(b.blendFunc(b.ONE,b.ONE),b.blendEquation(b.FUNC_MIN)):(b.blendFunc(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA),b.blendEquation(b.FUNC_ADD));f.reset();0<a.colorData.length&& | ||
(f.setUniform("hasColor",1),c=X(b,f),c.build(a.colorData,"aColor",4),c.bind());f.setColor(B);l(a.series.xAxis);g(a.series.yAxis);v(k,e);"points"===a.drawMode&&(d.marker&&d.marker.radius?f.setPointSize(2*d.marker.radius):f.setPointSize(1));f.setSkipTranslation(a.skipTranslation);"bubble"===a.series.type&&f.setBubbleUniforms(a.series,a.zMin,a.zMax);f.setDrawAsCircle(ha[a.series.type]&&m||!1);r.render(a.from,a.to,a.drawMode);a.hasMarkers&&K&&(d.marker&&d.marker.radius?f.setPointSize(2*d.marker.radius): | ||
f.setPointSize(10),f.setDrawAsCircle(!0),r.render(a.from,a.to,"POINTS"))});r.destroy();p.timeRendering&&console.timeEnd("gl rendering");e();a&&a()}function F(a){d();if(a.renderer.forExport)return q(a);t?q(a):setTimeout(function(){F(a)},1)}var f=!1,r=!1,b=!1,n=0,A=0,z=!1,w=!1,m=!1,C={},t=!1,u=[],M=U.createElement("canvas"),Q=M.getContext("2d"),L,O={column:!0,area:!0},ha={scatter:!0,bubble:!0},p={pointSize:1,lineWidth:3,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,timeRendering:!1, | ||
timeSeriesProcessing:!1,timeSetup:!1};return C={allocateBufferForSingleSeries:function(a){var b=0;p.usePreallocated&&(x(a)&&(b=c(a)),r.allocate(b))},pushSeries:function(a){0<u.length&&(u[u.length-1].to=z.length,u[u.length-1].hasMarkers&&(u[u.length-1].markerTo=w.length));p.timeSeriesProcessing&&console.time("building "+a.type+" series");u.push({from:z.length,markerFrom:w.length,colorData:[],series:a,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:a.options.marker?!1!==a.options.marker.enabled: | ||
!1,showMarksers:!0,drawMode:{area:"lines",arearange:"lines",areaspline:"line_strip",column:"lines",line:"line_strip",scatter:"points",heatmap:"triangles",treemap:"triangles",bubble:"points"}[a.type]||"line_strip"});k(a,u[u.length-1]);p.timeSeriesProcessing&&console.timeEnd("building "+a.type+" series")},setSize:function(a,b){if(n!==a||b!==b)n=a,A=b,f.bind(),f.setPMatrix([2/n,0,0,0,0,-(2/A),0,0,0,0,-2,0,-1,1,-1,1])},inited:function(){return t},setThreshold:v,init:function(a,c){var d=0,k=["webgl","experimental-webgl", | ||
"moz-webgl","webkit-3d"];t=!1;if(!a)return!1;for(p.timeSetup&&console.time("gl setup");d<k.length&&!(b=a.getContext(k[d]));d++);if(b)c||e();else return!1;b.enable(b.BLEND);b.blendFunc(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);b.disable(b.DEPTH_TEST);b.depthMask(b.FALSE);f=H(b);r=X(b,f);m=!1;L=b.createTexture();M.width=512;M.height=512;Q.fillStyle="#FFF";Q.beginPath();Q.arc(256,256,256,0,2*Math.PI);Q.fill();try{b.bindTexture(b.TEXTURE_2D,L),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,M),b.texParameteri(b.TEXTURE_2D, | ||
b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR_MIPMAP_LINEAR),b.generateMipmap(b.TEXTURE_2D),b.bindTexture(b.TEXTURE_2D,null),m=!0}catch(T){}t=!0;p.timeSetup&&console.timeEnd("gl setup");return!0},render:F,settings:p,valid:function(){return!1!==b},clear:d,flush:e,setXAxis:l,setYAxis:g,data:z,gl:function(){return b},allocateBuffer:function(a){var b= | ||
0;p.usePreallocated&&(y(a.series,function(a){x(a)&&(b+=c(a))}),r.allocate(b))},destroy:function(){r.destroy();f.destroy()},setOptions:function(a){ia(!0,p,a)}}}function ba(a,c){var d=a.chartWidth,k=a.chartHeight,e=a,g=a.seriesGroup||c.group,m=function(a,d,e,f,k,b,h){a.call(c,e,d,f,k,b,h)},e=w(a)?a:c;e.image||(e.canvas=U.createElement("canvas"),e.image=a.renderer.image("",0,0,d,k).add(g),e.boostClipRect=a.renderer.clipRect(a.plotLeft,a.plotTop,a.plotWidth,a.chartHeight),e.image.clip(e.boostClipRect), | ||
e.inverted&&y(["moveTo","lineTo","rect","arc"],function(a){q(!1,a,m)}),e instanceof h.Chart&&(e.markerGroup=e.renderer.g().add(g),e.markerGroup.translateX=c.xAxis.pos,e.markerGroup.translateY=c.yAxis.pos,e.markerGroup.updateTransform()));e.canvas.width=d;e.canvas.height=k;e.image.attr({x:0,y:0,width:d,height:k,style:"pointer-events: none"});e.boostClipRect.attr({x:a.plotLeft,y:a.plotTop,width:a.plotWidth,height:a.chartHeight});e.ogl||(e.ogl=ga(function(){e.image.attr({href:e.canvas.toDataURL("image/png")})}), | ||
e.ogl.init(e.canvas),e.ogl.setOptions(a.options.boost||{}),e instanceof h.Chart&&e.ogl.allocateBuffer(a));e.ogl.setSize(d,k);return e.ogl}function ca(a,c,d){a&&c.image&&c.canvas&&!w(d||c.chart)&&a.render(d||c.chart)}function da(a,c){a&&c.image&&c.canvas&&!w(c.chart)&&a.allocateBufferForSingleSeries(c)}function R(a,c,d,k,e,h){e=e||0;k=k||5E4;for(var g=e+k,l=!0;l&&e<g&&e<a.length;)l=c(a[e],e),++e;l&&(e<a.length?h?R(a,c,d,k,e,h):S.requestAnimationFrame?S.requestAnimationFrame(function(){R(a,c,d,k,e)}): | ||
setTimeout(function(){R(a,c,d,k,e)}):d&&d())}function ja(a){if(!x(this))return a.call(this);if(a=ba(this.chart,this))da(a,this),a.pushSeries(this);ca(a,this)}var S=h.win,U=S.document,ka=function(){},aa=h.Color,m=h.Series,g=h.seriesTypes,y=h.each,ea=h.extend,fa=h.addEvent,la=h.fireEvent,ma=h.grep,P=h.isNumber,ia=h.merge,D=h.pick,q=h.wrap,V=h.getOptions().plotOptions,W;aa.prototype.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc", | ||
bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000", | ||
darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c", | ||
indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6", | ||
magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa", | ||
palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c", | ||
teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};m.prototype.getPoint=function(a){var c=a,d=this.xData||this.options.xData||this.processedXData||!1;!a||a instanceof this.pointClass||(c=(new this.pointClass).init(this,this.options.data[a.i],d?d[a.i]:void 0),c.category=c.x,c.dist=a.dist,c.distX=a.distX,c.plotX=a.plotX,c.plotY=a.plotY,c.index=a.i);return c}; | ||
q(m.prototype,"searchPoint",function(a){return this.getPoint(a.apply(this,[].slice.call(arguments,1)))});q(m.prototype,"destroy",function(a){var c=this,d=c.chart;d.markerGroup===c.markerGroup&&(c.markerGroup=null);d.hoverPoints&&(d.hoverPoints=ma(d.hoverPoints,function(a){return a.series===c}));d.hoverPoint&&d.hoverPoint.series===c&&(d.hoverPoint=null);a.call(this)});q(m.prototype,"getExtremes",function(a){if(!x(this)||!this.hasExtremes||!this.hasExtremes())return a.apply(this,Array.prototype.slice.call(arguments, | ||
1))});y("area arearange column line scatter heatmap bubble treemap heatmap".split(" "),function(a){V[a]&&(V[a].boostThreshold=5E3,V[a].boostData=[])});y(["translate","generatePoints","drawTracker","drawPoints","render"],function(a){function c(c){var d=this.options.stacking&&("translate"===a||"generatePoints"===a);if(!x(this)||d||"heatmap"===this.type||"treemap"===this.type)"render"===a&&this.image&&!w(this.chart)&&(this.image.attr({href:""}),this.animate=null),c.call(this);else if(this[a+"Canvas"])this[a+ | ||
"Canvas"]()}q(m.prototype,a,c);"translate"===a&&(g.column&&q(g.column.prototype,a,c),g.arearange&&q(g.arearange.prototype,a,c),g.treemap&&q(g.treemap.prototype,a,c))});(function(){var a=0,c,d=["webgl","experimental-webgl","moz-webgl","webkit-3d"],k=!1;if("undefined"!==typeof S.WebGLRenderingContext)for(c=U.createElement("canvas");a<d.length;a++)try{if(k=c.getContext(d[a]),"undefined"!==typeof k&&null!==k)return!0}catch(e){}return!1})()?(q(m.prototype,"processData",function(a){x(this)&&"heatmap"!== | ||
this.type&&"treemap"!==this.type||a.apply(this,Array.prototype.slice.call(arguments,1));this.hasExtremes&&this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))}),h.extend(m.prototype,{pointRange:0,directTouch:!1,allowDG:!1,hasExtremes:function(a){var c=this.options,d=this.xAxis&&this.xAxis.options,k=this.yAxis&&this.yAxis.options;return c.data.length>(c.boostThreshold||Number.MAX_VALUE)&&P(k.min)&&P(k.max)&&(!a||P(d.min)&&P(d.max))},destroyGraphics:function(){var a=this,c=this.points, | ||
d,k;if(c)for(k=0;k<c.length;k+=1)(d=c[k])&&d.graphic&&(d.graphic=d.graphic.destroy());y(["graph","area","tracker"],function(c){a[c]&&(a[c]=a[c].destroy())})},renderCanvas:function(){var a=this,c=a.options||{},d=!1,k=a.chart,e=this.xAxis,h=this.yAxis,g=c.xData||a.processedXData,m=c.yData||a.processedYData,q=c.data,d=e.getExtremes(),x=d.min,f=d.max,d=h.getExtremes(),r=d.min,b=d.max,n={},A,z=!!a.sampling,y,H=!1!==c.enableMouseTracking,d=c.threshold,C=h.getThreshold(d);P(d);var t=a.pointArrayMap&&"low,high"=== | ||
a.pointArrayMap.join(","),u=!!c.stacking,M=a.cropStart||0,Q=a.requireSorting,L=!g,O,D,p,B,N=function(a,b,c){W=a+","+b;H&&!n[W]&&(n[W]=!0,k.inverted&&(a=e.len-a,b=h.len-b),y.push({clientX:a,plotX:a,plotY:b,i:M+c}))},d=ba(k,a);this.visible?((this.points||this.graph)&&this.destroyGraphics(),w(k)?this.markerGroup=k.markerGroup:this.markerGroup=a.plotGroup("markerGroup","markers",!0,1,k.seriesGroup),y=this.points=[],a.buildKDTree=ka,d&&(da(d,this),d.pushSeries(a),ca(d,this,k)),R(u?a.data:g||q,function(a, | ||
c){var d,g,l,n="undefined"===typeof k.index,q=!0;if(!n&&(L?(d=a[0],g=a[1]):(d=a,g=m[c]),t?(L&&(g=a.slice(1,3)),l=g[0],g=g[1]):u&&(d=a.x,g=a.stackY,l=g-a.y),Q||(q=g>=r&&g<=b),null!==g&&d>=x&&d<=f&&q))if(a=Math.ceil(e.toPixels(d,!0)),z){if(void 0===p||a===A){t||(l=g);if(void 0===B||g>D)D=g,B=c;if(void 0===p||l<O)O=l,p=c}a!==A&&(void 0!==p&&(g=h.toPixels(D,!0),C=h.toPixels(O,!0),N(a,g,B),C!==g&&N(a,C,p)),p=B=void 0,A=a)}else g=Math.ceil(h.toPixels(g,!0)),N(a,g,c);return!n},function(){la(a,"renderedCanvas"); | ||
a.directTouch=!1;a.options.stickyTracking=!0;delete a.buildKDTree;a.buildKDTree()},k.renderer.forExport?Number.MAX_VALUE:void 0)):!w(k)&&d&&(d.clear(),this.image.attr({href:""}))}}),y(["heatmap","treemap"],function(a){g[a]&&(q(g[a].prototype,"drawPoints",ja),g[a].prototype.directTouch=!1)}),g.bubble&&(delete g.bubble.prototype.buildKDTree,g.bubble.prototype.directTouch=!1,q(g.bubble.prototype,"markerAttribs",function(a){return x(this)?!1:a.apply(this,[].slice.call(arguments,1))})),g.scatter.prototype.fill= | ||
!0,ea(g.area.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),ea(g.column.prototype,{fill:!0,sampling:!0}),q(m.prototype,"setVisible",function(a,c){a.call(this,c,!1);!1===this.visible&&this.ogl&&this.canvas&&this.image?(this.ogl.clear(),this.image.attr({href:""})):this.chart.redraw()}),h.Chart.prototype.callbacks.push(function(a){fa(a,"predraw",function(){a.canvas&&a.ogl&&w(a)&&a.ogl.allocateBuffer(a)});fa(a,"render",function(){a.ogl&&w(a)&&a.ogl.render(a)})})):"undefined"!==typeof h.initCanvasBoost? | ||
h.initCanvasBoost():h.error(26)})(H)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -8,8 +8,8 @@ (c) 2009-2016 Torstein Honsi | ||
*/ | ||
(function(h){"object"===typeof module&&module.exports?module.exports=h:h(Highcharts)})(function(h){(function(e){function h(){return Array.prototype.slice.call(arguments,1)}function v(c){c.apply(this);this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,t(this.pointArrayMap,["y"]))}var t=e.pick,q=e.wrap,u=e.each,y=e.extend,z=e.isArray,w=e.fireEvent,r=e.Axis,A=e.Series;y(r.prototype,{isInBreak:function(c,d){var f=c.repeat||Infinity,b=c.from,a=c.to-c.from;d=d>=b?(d-b)%f:f-(b-d)%f;return c.inclusive? | ||
d<=a:d<a&&0!==d},isInAnyBreak:function(c,d){var f=this.options.breaks,b=f&&f.length,a,g,n;if(b){for(;b--;)this.isInBreak(f[b],c)&&(a=!0,g||(g=t(f[b].showPoints,this.isXAxis?!1:!0)));n=a&&d?a&&!g:a}return n}});q(r.prototype,"setTickPositions",function(c){c.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var d=this.tickPositions,f=this.tickPositions.info,b=[],a;for(a=0;a<d.length;a++)this.isInAnyBreak(d[a])||b.push(d[a]);this.tickPositions=b;this.tickPositions.info=f}}); | ||
q(r.prototype,"init",function(c,d,f){var b=this;f.breaks&&f.breaks.length&&(f.ordinal=!1);c.call(this,d,f);c=this.options.breaks;b.isBroken=z(c)&&!!c.length;b.isBroken&&(b.val2lin=function(a){var g=a,n,c;for(c=0;c<b.breakArray.length;c++)if(n=b.breakArray[c],n.to<=a)g-=n.len;else if(n.from>=a)break;else if(b.isInBreak(n,a)){g-=a-n.from;break}return g},b.lin2val=function(a){var g,c;for(c=0;c<b.breakArray.length&&!(g=b.breakArray[c],g.from>=a);c++)g.to<a?a+=g.len:b.isInBreak(g,a)&&(a+=g.len);return a}, | ||
b.setExtremes=function(a,b,c,f,d){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(b);)b-=this.closestPointRange;r.prototype.setExtremes.call(this,a,b,c,f,d)},b.setAxisTranslation=function(a){r.prototype.setAxisTranslation.call(this,a);var c=b.options.breaks;a=[];var f=[],d=0,m,k,p=b.userMin||b.min,e=b.userMax||b.max,l,h;for(h in c)k=c[h],m=k.repeat||Infinity,b.isInBreak(k,p)&&(p+=k.to%m-p%m),b.isInBreak(k,e)&&(e-=e%m-k.from%m);for(h in c){k=c[h];l=k.from;for(m=k.repeat|| | ||
Infinity;l-m>p;)l-=m;for(;l<p;)l+=m;for(;l<e;l+=m)a.push({value:l,move:"in"}),a.push({value:l+(k.to-k.from),move:"out",size:k.breakSize})}a.sort(function(b,c){return b.value===c.value?("in"===b.move?0:1)-("in"===c.move?0:1):b.value-c.value});c=0;l=p;for(h in a)k=a[h],c+="in"===k.move?1:-1,1===c&&"in"===k.move&&(l=k.value),0===c&&(f.push({from:l,to:k.value,len:k.value-l-(k.size||0)}),d+=k.value-l-(k.size||0));b.breakArray=f;w(b,"afterBreaks");b.transA*=(e-b.min)/(e-p-d);b.min=p;b.max=e})});q(A.prototype, | ||
"generatePoints",function(c){c.apply(this,h(arguments));var d=this.xAxis,f=this.yAxis,b=this.points,a,g=b.length,e=this.options.connectNulls,x;if(d&&f&&(d.options.breaks||f.options.breaks))for(;g--;)a=b[g],x=null===a.y&&!1===e,x||!d.isInAnyBreak(a.x,!0)&&!f.isInAnyBreak(a.y,!0)||(b.splice(g,1),this.data[g]&&this.data[g].destroyElements())});e.Series.prototype.drawBreaks=function(c,d){var f=this,b=f.points,a,g,e,h;c&&u(d,function(d){a=c.breakArray||[];g=c.isXAxis?c.min:t(f.options.threshold,c.min); | ||
u(b,function(b){h=t(b["stack"+d.toUpperCase()],b[d]);u(a,function(a){e=!1;if(g<a.from&&h>a.to||g>a.from&&h<a.from)e="pointBreak";else if(g<a.from&&h>a.from&&h<a.to||g>a.from&&h>a.to&&h<a.from)e="pointInBreak";e&&w(c,e,{point:b,brk:a})})})})};q(e.seriesTypes.column.prototype,"drawPoints",v);q(e.Series.prototype,"drawPoints",v)})(h)}); | ||
(function(k){"object"===typeof module&&module.exports?module.exports=k:k(Highcharts)})(function(k){(function(f){function k(){return Array.prototype.slice.call(arguments,1)}function v(c){c.apply(this);this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,["y"]))}var q=f.pick,r=f.wrap,u=f.each,y=f.extend,z=f.isArray,w=f.fireEvent,t=f.Axis,A=f.Series;y(t.prototype,{isInBreak:function(c,e){var g=c.repeat||Infinity,a=c.from,b=c.to-c.from;e=e>=a?(e-a)%g:g-(a-e)%g;return c.inclusive? | ||
e<=b:e<b&&0!==e},isInAnyBreak:function(c,e){var g=this.options.breaks,a=g&&g.length,b,d,m;if(a){for(;a--;)this.isInBreak(g[a],c)&&(b=!0,d||(d=q(g[a].showPoints,this.isXAxis?!1:!0)));m=b&&e?b&&!d:b}return m}});r(t.prototype,"setTickPositions",function(c){c.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var e=this.tickPositions,g=this.tickPositions.info,a=[],b;for(b=0;b<e.length;b++)this.isInAnyBreak(e[b])||a.push(e[b]);this.tickPositions=a;this.tickPositions.info=g}}); | ||
r(t.prototype,"init",function(c,e,g){var a=this;g.breaks&&g.breaks.length&&(g.ordinal=!1);c.call(this,e,g);c=this.options.breaks;a.isBroken=z(c)&&!!c.length;a.isBroken&&(a.val2lin=function(b){var d=b,m,c;for(c=0;c<a.breakArray.length;c++)if(m=a.breakArray[c],m.to<=b)d-=m.len;else if(m.from>=b)break;else if(a.isInBreak(m,b)){d-=b-m.from;break}return d},a.lin2val=function(b){var d,c;for(c=0;c<a.breakArray.length&&!(d=a.breakArray[c],d.from>=b);c++)d.to<b?b+=d.len:a.isInBreak(d,b)&&(b+=d.len);return b}, | ||
a.setExtremes=function(a,d,c,g,e){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(d);)d-=this.closestPointRange;t.prototype.setExtremes.call(this,a,d,c,g,e)},a.setAxisTranslation=function(b){t.prototype.setAxisTranslation.call(this,b);var d=a.options.breaks;b=[];var c=[],g=0,e,h,n=a.userMin||a.min,f=a.userMax||a.max,k=q(a.pointRangePadding,0),l,p;for(p in d)h=d[p],e=h.repeat||Infinity,a.isInBreak(h,n)&&(n+=h.to%e-n%e),a.isInBreak(h,f)&&(f-=f%e-h.from%e);for(p in d){h=d[p]; | ||
l=h.from;for(e=h.repeat||Infinity;l-e>n;)l-=e;for(;l<n;)l+=e;for(;l<f;l+=e)b.push({value:l,move:"in"}),b.push({value:l+(h.to-h.from),move:"out",size:h.breakSize})}b.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});d=0;l=n;for(p in b)h=b[p],d+="in"===h.move?1:-1,1===d&&"in"===h.move&&(l=h.value),0===d&&(c.push({from:l,to:h.value,len:h.value-l-(h.size||0)}),g+=h.value-l-(h.size||0));a.breakArray=c;a.unitLength=f-n-g+k;w(a,"afterBreaks");a.transA= | ||
a.options.staticScale?a.options.staticScale:(f-a.min+k)/a.unitLength*a.transA;k&&(a.minPixelPadding=a.transA*a.minPointOffset);a.min=n;a.max=f})});r(A.prototype,"generatePoints",function(c){c.apply(this,k(arguments));var e=this.xAxis,g=this.yAxis,a=this.points,b,d=a.length,f=this.options.connectNulls,x;if(e&&g&&(e.options.breaks||g.options.breaks))for(;d--;)b=a[d],x=null===b.y&&!1===f,x||!e.isInAnyBreak(b.x,!0)&&!g.isInAnyBreak(b.y,!0)||(a.splice(d,1),this.data[d]&&this.data[d].destroyElements())}); | ||
f.Series.prototype.drawBreaks=function(c,e){var g=this,a=g.points,b,d,f,k;c&&u(e,function(e){b=c.breakArray||[];d=c.isXAxis?c.min:q(g.options.threshold,c.min);u(a,function(a){k=q(a["stack"+e.toUpperCase()],a[e]);u(b,function(b){f=!1;if(d<b.from&&k>b.to||d>b.from&&k<b.from)f="pointBreak";else if(d<b.from&&k>b.from&&k<b.to||d>b.from&&k>b.to&&k<b.from)f="pointInBreak";f&&w(c,f,{point:a,brk:b})})})})};r(f.seriesTypes.column.prototype,"drawPoints",v);r(f.Series.prototype,"drawPoints",v)})(k)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -22,3 +23,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -177,2 +177,3 @@ var pick = H.pick, | ||
max = axis.userMax || axis.max, | ||
pointRangePadding = pick(axis.pointRangePadding, 0), | ||
start, | ||
@@ -253,6 +254,19 @@ i, | ||
// Used with staticScale, and below, the actual axis length when | ||
// breaks are substracted. | ||
axis.unitLength = max - min - length + pointRangePadding; | ||
fireEvent(axis, 'afterBreaks'); | ||
axis.transA *= ((max - axis.min) / (max - min - length)); | ||
if (axis.options.staticScale) { | ||
axis.transA = axis.options.staticScale; | ||
} else { | ||
axis.transA *= (max - axis.min + pointRangePadding) / | ||
axis.unitLength; | ||
} | ||
if (pointRangePadding) { | ||
axis.minPixelPadding = axis.transA * axis.minPointOffset; | ||
} | ||
axis.min = min; | ||
@@ -259,0 +273,0 @@ axis.max = max; |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Data module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Data module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -27,3 +28,2 @@ if (typeof module === 'object' && module.exports) { | ||
/* global jQuery */ | ||
'use strict'; | ||
@@ -30,0 +30,0 @@ // Utilities |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Highcharts Drilldown module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Highcharts Drilldown module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
@@ -673,5 +673,5 @@ var noop = H.noop, | ||
.on('click', function(e) { | ||
axis.drilldownCategory(pos, e); | ||
}); | ||
.on('click', function(e) { | ||
axis.drilldownCategory(pos, e); | ||
}); | ||
@@ -678,0 +678,0 @@ } else if (label && label.drillable) { |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Exporting module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Exporting module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -27,3 +28,2 @@ if (typeof module === 'object' && module.exports) { | ||
/* eslint indent:0 */ | ||
'use strict'; | ||
@@ -219,4 +219,4 @@ // create shortcuts | ||
// Replace HTML entities, issue #347 | ||
.replace(/ /g, '\u00A0') // no-break space | ||
// Replace HTML entities, issue #347 | ||
.replace(/ /g, '\u00A0') // no-break space | ||
.replace(/­/g, '\u00AD'); // soft hyphen | ||
@@ -223,0 +223,0 @@ |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Highcharts funnel module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Highcharts funnel module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
/* eslint indent:0 */ | ||
'use strict'; | ||
@@ -59,3 +59,3 @@ // create shortcuts | ||
var | ||
// Get positions - either an integer or a percentage string must be given | ||
// Get positions - either an integer or a percentage string must be given | ||
getLength = function(length, relativeTo) { | ||
@@ -62,0 +62,0 @@ return (/%$/).test(length) ? |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Gantt series | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Gantt series | ||
@@ -11,2 +11,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -173,5 +173,5 @@ var dateFormat = H.dateFormat, | ||
// Add to axisParent instead of axisGroup, to ignore the space | ||
// it takes | ||
.add(axisParent); | ||
// Add to axisParent instead of axisGroup, to ignore the space | ||
// it takes | ||
.add(axisParent); | ||
axis.axisTitle.isNew = true; | ||
@@ -555,3 +555,2 @@ } | ||
*/ | ||
'use strict'; | ||
@@ -796,5 +795,4 @@ var defaultPlotOptions = H.getOptions().plotOptions, | ||
*/ | ||
'use strict'; | ||
// | ||
}(Highcharts)); | ||
})); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
GridAxis | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* GridAxis | ||
@@ -11,2 +11,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -173,5 +173,5 @@ var dateFormat = H.dateFormat, | ||
// Add to axisParent instead of axisGroup, to ignore the space | ||
// it takes | ||
.add(axisParent); | ||
// Add to axisParent instead of axisGroup, to ignore the space | ||
// it takes | ||
.add(axisParent); | ||
axis.axisTitle.isNew = true; | ||
@@ -178,0 +178,0 @@ } |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -9,18 +9,18 @@ (c) 2009-2016 Torstein Honsi | ||
(function(m){"object"===typeof module&&module.exports?module.exports=m:m(Highcharts)})(function(m){(function(c){var k=c.Axis,r=c.Chart,h=c.color,g,e=c.each,w=c.extend,x=c.isNumber,p=c.Legend,t=c.LegendSymbolMixin,y=c.noop,q=c.merge,v=c.pick,u=c.wrap;g=c.ColorAxis=function(){this.init.apply(this,arguments)};w(g.prototype,k.prototype);w(g.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50}, | ||
width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItem","legendSymbol"].concat(k.prototype.keepProps),init:function(a,b){var d="vertical"!==a.options.legend.layout,f;this.coll="colorAxis";f=q(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},b,{opposite:!d,showEmpty:!1,title:null});k.prototype.init.call(this,a,f);b.dataClasses&&this.initDataClasses(b);this.initStops(b);this.horiz=d;this.zoomEnabled= | ||
!1;this.defaultLegendLength=200},tweenColors:function(a,b,d){var f;b.rgba.length&&a.rgba.length?(a=a.rgba,b=b.rgba,f=1!==b[3]||1!==a[3],a=(f?"rgba(":"rgb(")+Math.round(b[0]+(a[0]-b[0])*(1-d))+","+Math.round(b[1]+(a[1]-b[1])*(1-d))+","+Math.round(b[2]+(a[2]-b[2])*(1-d))+(f?","+(b[3]+(a[3]-b[3])*(1-d)):"")+")"):a=b.input||"none";return a},initDataClasses:function(a){var b=this,d,f=0,n=this.chart.options.chart.colorCount,c=this.options,l=a.dataClasses.length;this.dataClasses=d=[];this.legendItems=[]; | ||
e(a.dataClasses,function(a,e){a=q(a);d.push(a);a.color||("category"===c.dataClassColor?(a.colorIndex=f,f++,f===n&&(f=0)):a.color=b.tweenColors(h(c.minColor),h(c.maxColor),2>l?.5:e/(l-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];e(this.stops,function(a){a.color=h(a[1])})},setOptions:function(a){k.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend|| | ||
{},f,n;a?(this.left=d=a.attr("x"),this.top=f=a.attr("y"),this.width=n=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-n,this.bottom=b.chartHeight-f-a,this.len=this.horiz?n:a,this.pos=this.horiz?d:f):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,b){var d=this.stops,f,n,c=this.dataClasses,l,e;if(c)for(e=c.length;e--;){if(l=c[e],f=l.from,d=l.to,(void 0===f||a>=f)&&(void 0===d||a<=d)){n=l.color;b&&(b.dataClass=e,b.colorIndex= | ||
l.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(e=d.length;e--&&!(a>d[e][0]););f=d[e]||d[e+1];d=d[e+1]||f;a=1-(d[0]-a)/(d[0]-f[0]||1);n=this.tweenColors(f.color,d.color,a)}return n},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,k.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a, | ||
b=this.options,d=this.reversed;a=d?1:0;d=d?0:1;a=this.horiz?[a,0,d,0]:[0,d,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var d=a.padding,f=a.options,c=this.horiz,e=v(f.symbolWidth,c?this.defaultLegendLength:12),l=v(f.symbolHeight,c?12:this.defaultLegendLength),g=v(f.labelPadding,c?16:30),f=v(f.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,e,l).attr({zIndex:1}).add(b.legendGroup); | ||
this.legendItemWidth=e+d+(c?f:g);this.legendItemHeight=l+d+(c?g:0)},setState:y,visible:!0,setVisible:y,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var d=b&&b.plotX,c=b&&b.plotY,e,g=this.pos,l=this.len;b&&(e=this.toPixels(b[b.series.colorKey]),e<g?e=g-2:e>g+l&&(e=g+l+2),b.plotX= | ||
e,b.plotY=this.len-e,k.prototype.drawCrosshair.call(this,a,b),b.plotX=d,b.plotY=c,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,b,d,c,e){return x(e)?this.horiz?["M",e-4,this.top-6,"L",e+4,this.top-6,e,this.top,"Z"]:["M",this.left,e,"L",this.left-6,e+6,this.left-6,e-6,"Z"]:k.prototype.getPlotLinePath.call(this,a,b,d,c)},update:function(a,b){var d=this.chart,c=d.legend;e(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&c.allItems&& | ||
(e(c.allItems,function(a){a.isDataClass&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=q(this.userOptions,a);k.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),c.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var a=this,b=this.chart,d=this.legendItems,f=b.options.legend,g=f.valueDecimals,u=f.valueSuffix||"",l;d.length||e(this.dataClasses,function(f,p){var k=!0,q=f.from,h=f.to;l="";void 0===q?l="\x3c ":void 0===h&&(l="\x3e ");void 0!==q&&(l+= | ||
c.numberFormat(q,g)+u);void 0!==q&&void 0!==h&&(l+=" - ");void 0!==h&&(l+=c.numberFormat(h,g)+u);d.push(w({chart:b,name:l,options:{},drawLegendSymbol:t.drawRectangle,visible:!0,setState:y,isDataClass:!0,setVisible:function(){k=this.visible=!k;e(a.series,function(a){e(a.points,function(a){a.dataClass===p&&a.setVisible(k)})});b.legend.colorizeItem(this,k)}},f))});return d},name:""});e(["fill","stroke"],function(a){c.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,g.prototype.tweenColors(h(this.start), | ||
h(this.end),this.pos),null,!0)}});u(r.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new g(this,b)});u(p.prototype,"getAllItems",function(a){var b=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses?b=b.concat(d.getDataClassLegendSymbols()):b.push(d)),e(d.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});u(p.prototype,"colorizeItem",function(a,b,d){a.call(this,b,d);d&&b.legendColor&& | ||
b.legendSymbol.attr({fill:b.legendColor})})})(m);(function(c){var k=c.defined,r=c.each,h=c.noop;c.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(c){var e=this,g=c?"show":"hide";r(["graphic","dataLabel"],function(c){if(e[c])e[c][g]()})},setState:function(g){c.Point.prototype.setState.call(this,g);this.graphic&&this.graphic.attr({zIndex:"hover"===g?1:0})}};c.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis", | ||
trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:h,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var c=this,e=this.options.nullColor,k=this.colorAxis,h=this.colorKey;r(this.data,function(g){var t=g[h];if(t=g.options.color||(g.isNull?e:k&&void 0!==t?k.toColor(t,g):g.color||c.color))g.color=t})},colorAttribs:function(c){var e={};k(c.color)&&(e[this.colorProp||"fill"]=c.color);return e}}})(m);(function(c){var k=c.colorPointMixin,r=c.each,h=c.merge,g=c.noop, | ||
e=c.pick,m=c.Series,x=c.seriesType,p=c.seriesTypes;x("heatmap","scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},h(c.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0, | ||
directTouch:!0,init:function(){var c;p.scatter.prototype.init.apply(this,arguments);c=this.options;c.pointRange=e(c.pointRange,c.colsize||1);this.yAxis.axisPointRange=c.rowsize||1},translate:function(){var c=this.options,e=this.xAxis,g=this.yAxis,k=function(c,a,b){return Math.min(Math.max(a,c),b)};this.generatePoints();r(this.points,function(h){var a=(c.colsize||1)/2,b=(c.rowsize||1)/2,d=k(Math.round(e.len-e.translate(h.x-a,0,1,0,1)),-e.len,2*e.len),a=k(Math.round(e.len-e.translate(h.x+a,0,1,0,1)), | ||
-e.len,2*e.len),f=k(Math.round(g.translate(h.y-b,0,1,0,1)),-g.len,2*g.len),b=k(Math.round(g.translate(h.y+b,0,1,0,1)),-g.len,2*g.len);h.plotX=h.clientX=(d+a)/2;h.plotY=(f+b)/2;h.shapeType="rect";h.shapeArgs={x:Math.min(d,a),y:Math.min(f,b),width:Math.abs(a-d),height:Math.abs(b-f)}});this.translateColors()},drawPoints:function(){p.column.prototype.drawPoints.call(this);r(this.points,function(c){c.graphic.css(this.colorAttribs(c))},this)},animate:g,getBox:g,drawLegendSymbol:c.LegendSymbolMixin.drawRectangle, | ||
width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(k.prototype.keepProps),init:function(a,b){var d="vertical"!==a.options.legend.layout,f;this.coll="colorAxis";f=q(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},b,{opposite:!d,showEmpty:!1,title:null});k.prototype.init.call(this,a,f);b.dataClasses&&this.initDataClasses(b);this.initStops(b); | ||
this.horiz=d;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,b,d){var f;b.rgba.length&&a.rgba.length?(a=a.rgba,b=b.rgba,f=1!==b[3]||1!==a[3],a=(f?"rgba(":"rgb(")+Math.round(b[0]+(a[0]-b[0])*(1-d))+","+Math.round(b[1]+(a[1]-b[1])*(1-d))+","+Math.round(b[2]+(a[2]-b[2])*(1-d))+(f?","+(b[3]+(a[3]-b[3])*(1-d)):"")+")"):a=b.input||"none";return a},initDataClasses:function(a){var b=this,d,f=0,n=this.chart.options.chart.colorCount,c=this.options,l=a.dataClasses.length;this.dataClasses= | ||
d=[];this.legendItems=[];e(a.dataClasses,function(a,e){a=q(a);d.push(a);a.color||("category"===c.dataClassColor?(a.colorIndex=f,f++,f===n&&(f=0)):a.color=b.tweenColors(h(c.minColor),h(c.maxColor),2>l?.5:e/(l-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];e(this.stops,function(a){a.color=h(a[1])})},setOptions:function(a){k.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol, | ||
b=this.chart,d=b.options.legend||{},f,n;a?(this.left=d=a.attr("x"),this.top=f=a.attr("y"),this.width=n=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-n,this.bottom=b.chartHeight-f-a,this.len=this.horiz?n:a,this.pos=this.horiz?d:f):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,b){var d=this.stops,f,n,c=this.dataClasses,l,e;if(c)for(e=c.length;e--;){if(l=c[e],f=l.from,d=l.to,(void 0===f||a>=f)&&(void 0===d||a<=d)){n=l.color; | ||
b&&(b.dataClass=e,b.colorIndex=l.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(e=d.length;e--&&!(a>d[e][0]););f=d[e]||d[e+1];d=d[e+1]||f;a=1-(d[0]-a)/(d[0]-f[0]||1);n=this.tweenColors(f.color,d.color,a)}return n},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,k.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]= | ||
b)},setLegendColor:function(){var a,b=this.options,d=this.reversed;a=d?1:0;d=d?0:1;a=this.horiz?[a,0,d,0]:[0,d,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var d=a.padding,f=a.options,c=this.horiz,e=v(f.symbolWidth,c?this.defaultLegendLength:12),l=v(f.symbolHeight,c?12:this.defaultLegendLength),g=v(f.labelPadding,c?16:30),f=v(f.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0, | ||
a.baseline-11,e,l).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=e+d+(c?f:g);this.legendItemHeight=l+d+(c?g:0)},setState:y,visible:!0,setVisible:y,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var d=b&&b.plotX,c=b&&b.plotY,e,g=this.pos,l=this.len;b&&(e=this.toPixels(b[b.series.colorKey]), | ||
e<g?e=g-2:e>g+l&&(e=g+l+2),b.plotX=e,b.plotY=this.len-e,k.prototype.drawCrosshair.call(this,a,b),b.plotX=d,b.plotY=c,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,b,d,c,e){return x(e)?this.horiz?["M",e-4,this.top-6,"L",e+4,this.top-6,e,this.top,"Z"]:["M",this.left,e,"L",this.left-6,e+6,this.left-6,e-6,"Z"]:k.prototype.getPlotLinePath.call(this,a,b,d,c)},update:function(a,b){var d=this.chart,c=d.legend;e(this.series,function(a){a.isDirtyData= | ||
!0});a.dataClasses&&c.allItems&&(e(c.allItems,function(a){a.isDataClass&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=q(this.userOptions,a);k.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),c.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var a=this,b=this.chart,d=this.legendItems,f=b.options.legend,g=f.valueDecimals,u=f.valueSuffix||"",l;d.length||e(this.dataClasses,function(f,p){var k=!0,q=f.from,h=f.to;l="";void 0===q?l="\x3c ":void 0=== | ||
h&&(l="\x3e ");void 0!==q&&(l+=c.numberFormat(q,g)+u);void 0!==q&&void 0!==h&&(l+=" - ");void 0!==h&&(l+=c.numberFormat(h,g)+u);d.push(w({chart:b,name:l,options:{},drawLegendSymbol:t.drawRectangle,visible:!0,setState:y,isDataClass:!0,setVisible:function(){k=this.visible=!k;e(a.series,function(a){e(a.points,function(a){a.dataClass===p&&a.setVisible(k)})});b.legend.colorizeItem(this,k)}},f))});return d},name:""});e(["fill","stroke"],function(a){c.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a, | ||
g.prototype.tweenColors(h(this.start),h(this.end),this.pos),null,!0)}});u(r.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new g(this,b)});u(p.prototype,"getAllItems",function(a){var b=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses?b=b.concat(d.getDataClassLegendSymbols()):b.push(d)),e(d.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});u(p.prototype,"colorizeItem",function(a, | ||
b,d){a.call(this,b,d);d&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(m);(function(c){var k=c.defined,r=c.each,h=c.noop;c.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(c){var e=this,g=c?"show":"hide";r(["graphic","dataLabel"],function(c){if(e[c])e[c][g]()})},setState:function(g){c.Point.prototype.setState.call(this,g);this.graphic&&this.graphic.attr({zIndex:"hover"===g?1:0})}};c.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis", | ||
"colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:h,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var c=this,e=this.options.nullColor,k=this.colorAxis,h=this.colorKey;r(this.data,function(g){var t=g[h];if(t=g.options.color||(g.isNull?e:k&&void 0!==t?k.toColor(t,g):g.color||c.color))g.color=t})},colorAttribs:function(c){var e={};k(c.color)&&(e[this.colorProp||"fill"]=c.color);return e}}})(m);(function(c){var k=c.colorPointMixin, | ||
r=c.each,h=c.merge,g=c.noop,e=c.pick,m=c.Series,x=c.seriesType,p=c.seriesTypes;x("heatmap","scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},h(c.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0, | ||
getExtremesFromAll:!0,directTouch:!0,init:function(){var c;p.scatter.prototype.init.apply(this,arguments);c=this.options;c.pointRange=e(c.pointRange,c.colsize||1);this.yAxis.axisPointRange=c.rowsize||1},translate:function(){var c=this.options,e=this.xAxis,g=this.yAxis,k=function(c,a,b){return Math.min(Math.max(a,c),b)};this.generatePoints();r(this.points,function(h){var a=(c.colsize||1)/2,b=(c.rowsize||1)/2,d=k(Math.round(e.len-e.translate(h.x-a,0,1,0,1)),-e.len,2*e.len),a=k(Math.round(e.len-e.translate(h.x+ | ||
a,0,1,0,1)),-e.len,2*e.len),f=k(Math.round(g.translate(h.y-b,0,1,0,1)),-g.len,2*g.len),b=k(Math.round(g.translate(h.y+b,0,1,0,1)),-g.len,2*g.len);h.plotX=h.clientX=(d+a)/2;h.plotY=(f+b)/2;h.shapeType="rect";h.shapeArgs={x:Math.min(d,a),y:Math.min(f,b),width:Math.abs(a-d),height:Math.abs(b-f)}});this.translateColors()},drawPoints:function(){p.column.prototype.drawPoints.call(this);r(this.points,function(c){c.graphic.css(this.colorAttribs(c))},this)},animate:g,getBox:g,drawLegendSymbol:c.LegendSymbolMixin.drawRectangle, | ||
alignDataLabel:p.column.prototype.alignDataLabel,getExtremes:function(){m.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;m.prototype.getExtremes.call(this)}}),k)})(m)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -22,3 +23,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
var Axis = H.Axis, | ||
@@ -72,5 +72,10 @@ Chart = H.Chart, | ||
// Properties to preserve after destroy, for Axis.update (#5881) | ||
keepProps: ['legendGroup', 'legendItem', 'legendSymbol'] | ||
.concat(Axis.prototype.keepProps), | ||
// Properties to preserve after destroy, for Axis.update (#5881, #6025) | ||
keepProps: [ | ||
'legendGroup', | ||
'legendItemHeight', | ||
'legendItemWidth', | ||
'legendItem', | ||
'legendSymbol' | ||
].concat(Axis.prototype.keepProps), | ||
@@ -592,3 +597,2 @@ /** | ||
*/ | ||
'use strict'; | ||
var defined = H.defined, | ||
@@ -686,3 +690,2 @@ each = H.each, | ||
*/ | ||
'use strict'; | ||
var colorPointMixin = H.colorPointMixin, | ||
@@ -689,0 +692,0 @@ colorSeriesMixin = H.colorSeriesMixin, |
/* | ||
Highmaps JS v5.0.7 (2017-01-17) | ||
Highmaps JS v5.0.8 (2017-03-08) | ||
Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file) | ||
@@ -9,59 +9,59 @@ | ||
*/ | ||
(function(w){"object"===typeof module&&module.exports?module.exports=w:w(Highcharts)})(function(w){(function(a){var k=a.Axis,n=a.each,g=a.pick;a=a.wrap;a(k.prototype,"getSeriesExtremes",function(a){var e=this.isXAxis,p,u,r=[],l;e&&n(this.series,function(b,a){b.useMapGeometry&&(r[a]=b.xData,b.xData=[])});a.call(this);e&&(p=g(this.dataMin,Number.MAX_VALUE),u=g(this.dataMax,-Number.MAX_VALUE),n(this.series,function(a,f){a.useMapGeometry&&(p=Math.min(p,g(a.minX,p)),u=Math.max(u,g(a.maxX,p)),a.xData=r[f], | ||
l=!0)}),l&&(this.dataMin=p,this.dataMax=u))});a(k.prototype,"setAxisTranslation",function(a){var e=this.chart,p=e.plotWidth/e.plotHeight,e=e.xAxis[0],g;a.call(this);"yAxis"===this.coll&&void 0!==e.transA&&n(this.series,function(a){a.preserveAspectRatio&&(g=!0)});if(g&&(this.transA=e.transA=Math.min(this.transA,e.transA),a=p/((e.max-e.min)/(this.max-this.min)),a=1>a?this:e,p=(a.max-a.min)*a.transA,a.pixelPadding=a.len-p,a.minPixelPadding=a.pixelPadding/2,p=a.fixTo)){p=p[1]-a.toValue(p[0],!0);p*=a.transA; | ||
if(Math.abs(p)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)p=0;a.minPixelPadding-=p}});a(k.prototype,"render",function(a){a.call(this);this.fixTo=null})})(w);(function(a){var k=a.Axis,n=a.Chart,g=a.color,e,t=a.each,p=a.extend,u=a.isNumber,r=a.Legend,l=a.LegendSymbolMixin,b=a.noop,f=a.merge,h=a.pick,q=a.wrap;e=a.ColorAxis=function(){this.init.apply(this,arguments)};p(e.prototype,k.prototype);p(e.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, | ||
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItem","legendSymbol"].concat(k.prototype.keepProps),init:function(a,c){var d="vertical"!==a.options.legend.layout,m;this.coll="colorAxis";m=f(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},c,{opposite:!d,showEmpty:!1,title:null});k.prototype.init.call(this,a,m);c.dataClasses&& | ||
this.initDataClasses(c);this.initStops(c);this.horiz=d;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,c,d){var m;c.rgba.length&&a.rgba.length?(a=a.rgba,c=c.rgba,m=1!==c[3]||1!==a[3],a=(m?"rgba(":"rgb(")+Math.round(c[0]+(a[0]-c[0])*(1-d))+","+Math.round(c[1]+(a[1]-c[1])*(1-d))+","+Math.round(c[2]+(a[2]-c[2])*(1-d))+(m?","+(c[3]+(a[3]-c[3])*(1-d)):"")+")"):a=c.input||"none";return a},initDataClasses:function(a){var c=this,d,m=0,b=this.chart.options.chart.colorCount,l=this.options, | ||
h=a.dataClasses.length;this.dataClasses=d=[];this.legendItems=[];t(a.dataClasses,function(a,x){a=f(a);d.push(a);a.color||("category"===l.dataClassColor?(a.colorIndex=m,m++,m===b&&(m=0)):a.color=c.tweenColors(g(l.minColor),g(l.maxColor),2>h?.5:x/(h-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];t(this.stops,function(a){a.color=g(a[1])})},setOptions:function(a){k.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a= | ||
this.legendSymbol,c=this.chart,d=c.options.legend||{},b,f;a?(this.left=d=a.attr("x"),this.top=b=a.attr("y"),this.width=f=a.attr("width"),this.height=a=a.attr("height"),this.right=c.chartWidth-d-f,this.bottom=c.chartHeight-b-a,this.len=this.horiz?f:a,this.pos=this.horiz?d:b):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,c){var d=this.stops,b,m,f=this.dataClasses,l,h;if(f)for(h=f.length;h--;){if(l=f[h],b=l.from,d=l.to,(void 0===b||a>=b)&&(void 0=== | ||
d||a<=d)){m=l.color;c&&(c.dataClass=h,c.colorIndex=l.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(h=d.length;h--&&!(a>d[h][0]););b=d[h]||d[h+1];d=d[h+1]||b;a=1-(d[0]-a)/(d[0]-b[0]||1);m=this.tweenColors(b.color,d.color,a)}return m},getOffset:function(){var a=this.legendGroup,c=this.chart.axisOffset[this.side];a&&(this.axisParent=a,k.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]= | ||
c)},setLegendColor:function(){var a,c=this.options,d=this.reversed;a=d?1:0;d=d?0:1;a=this.horiz?[a,0,d,0]:[0,d,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:c.stops||[[0,c.minColor],[1,c.maxColor]]}},drawLegendSymbol:function(a,c){var d=a.padding,b=a.options,f=this.horiz,l=h(b.symbolWidth,f?this.defaultLegendLength:12),m=h(b.symbolHeight,f?12:this.defaultLegendLength),e=h(b.labelPadding,f?16:30),b=h(b.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0, | ||
a.baseline-11,l,m).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=l+d+(f?b:e);this.legendItemHeight=m+d+(f?e:0)},setState:b,visible:!0,setVisible:b,getSeriesExtremes:function(){var a=this.series,c=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;)void 0!==a[c].valueMin&&(this.dataMin=Math.min(this.dataMin,a[c].valueMin),this.dataMax=Math.max(this.dataMax,a[c].valueMax))},drawCrosshair:function(a,c){var d=c&&c.plotX,b=c&&c.plotY,f,l=this.pos,h=this.len;c&&(f=this.toPixels(c[c.series.colorKey]), | ||
f<l?f=l-2:f>l+h&&(f=l+h+2),c.plotX=f,c.plotY=this.len-f,k.prototype.drawCrosshair.call(this,a,c),c.plotX=d,c.plotY=b,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,c,d,b,f){return u(f)?this.horiz?["M",f-4,this.top-6,"L",f+4,this.top-6,f,this.top,"Z"]:["M",this.left,f,"L",this.left-6,f+6,this.left-6,f-6,"Z"]:k.prototype.getPlotLinePath.call(this,a,c,d,b)},update:function(a,c){var d=this.chart,b=d.legend;t(this.series,function(a){a.isDirtyData= | ||
!0});a.dataClasses&&b.allItems&&(t(b.allItems,function(a){a.isDataClass&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=f(this.userOptions,a);k.prototype.update.call(this,a,c);this.legendItem&&(this.setLegendColor(),b.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var f=this,c=this.chart,d=this.legendItems,h=c.options.legend,e=h.valueDecimals,q=h.valueSuffix||"",g;d.length||t(this.dataClasses,function(h,m){var x=!0,v=h.from,n=h.to;g="";void 0===v?g="\x3c ":void 0=== | ||
n&&(g="\x3e ");void 0!==v&&(g+=a.numberFormat(v,e)+q);void 0!==v&&void 0!==n&&(g+=" - ");void 0!==n&&(g+=a.numberFormat(n,e)+q);d.push(p({chart:c,name:g,options:{},drawLegendSymbol:l.drawRectangle,visible:!0,setState:b,isDataClass:!0,setVisible:function(){x=this.visible=!x;t(f.series,function(a){t(a.points,function(a){a.dataClass===m&&a.setVisible(x)})});c.legend.colorizeItem(this,x)}},h))});return d},name:""});t(["fill","stroke"],function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b, | ||
e.prototype.tweenColors(g(this.start),g(this.end),this.pos),null,!0)}});q(n.prototype,"getAxes",function(a){var c=this.options.colorAxis;a.call(this);this.colorAxis=[];c&&new e(this,c)});q(r.prototype,"getAllItems",function(a){var c=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses?c=c.concat(d.getDataClassLegendSymbols()):c.push(d)),t(d.series,function(a){a.options.showInLegend=!1}));return c.concat(a.call(this))});q(r.prototype,"colorizeItem",function(a, | ||
c,d){a.call(this,c,d);d&&c.legendColor&&c.legendSymbol.attr({fill:c.legendColor})})})(w);(function(a){var k=a.defined,n=a.each,g=a.noop;a.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(a){var e=this,g=a?"show":"hide";n(["graphic","dataLabel"],function(a){if(e[a])e[a][g]()})},setState:function(e){a.Point.prototype.setState.call(this,e);this.graphic&&this.graphic.attr({zIndex:"hover"===e?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis", | ||
"colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:g,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var a=this,t=this.options.nullColor,g=this.colorAxis,k=this.colorKey;n(this.data,function(e){var l=e[k];if(l=e.options.color||(e.isNull?t:g&&void 0!==l?g.toColor(l,e):e.color||a.color))e.color=l})},colorAttribs:function(a){var e={};k(a.color)&&(e[this.colorProp||"fill"]=a.color);return e}}})(w);(function(a){function k(a){a&& | ||
(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}var n=a.addEvent,g=a.Chart,e=a.doc,t=a.each,p=a.extend,u=a.merge,r=a.pick;a=a.wrap;p(g.prototype,{renderMapNavigation:function(){var a=this,b=this.options.mapNavigation,f=b.buttons,h,e,m,c=function(d){this.handler.call(a,d);k(d)};if(r(b.enableButtons,b.enabled)&&!a.renderer.forExport)for(h in a.mapNavButtons=[],f)f.hasOwnProperty(h)&&(m=u(b.buttonOptions,f[h]),e=a.renderer.button(m.text,0,0,c,void 0,void 0, | ||
void 0,0,"zoomIn"===h?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:m.width,height:m.height,title:a.options.lang[h],padding:m.padding,zIndex:5}).add(),e.handler=m.onclick,e.align(p(m,{width:e.width,height:2*e.height}),null,m.alignTo),n(e.element,"dblclick",k),a.mapNavButtons.push(e))},fitToBox:function(a,b){t([["x","width"],["y","height"]],function(f){var h=f[0];f=f[1];a[h]+a[f]>b[h]+b[f]&&(a[f]>b[f]?(a[f]=b[f],a[h]=b[h]):a[h]=b[h]+b[f]-a[f]);a[f]>b[f]&&(a[f]=b[f]); | ||
a[h]<b[h]&&(a[h]=b[h])});return a},mapZoom:function(a,b,f,h,e){var m=this.xAxis[0],c=m.max-m.min,d=r(b,m.min+c/2),l=c*a,c=this.yAxis[0],v=c.max-c.min,q=r(f,c.min+v/2),v=v*a,d=this.fitToBox({x:d-l*(h?(h-m.pos)/m.len:.5),y:q-v*(e?(e-c.pos)/c.len:.5),width:l,height:v},{x:m.dataMin,y:c.dataMin,width:m.dataMax-m.dataMin,height:c.dataMax-c.dataMin}),l=d.x<=m.dataMin&&d.width>=m.dataMax-m.dataMin&&d.y<=c.dataMin&&d.height>=c.dataMax-c.dataMin;h&&(m.fixTo=[h-m.pos,b]);e&&(c.fixTo=[e-c.pos,f]);void 0===a|| | ||
l?(m.setExtremes(void 0,void 0,!1),c.setExtremes(void 0,void 0,!1)):(m.setExtremes(d.x,d.x+d.width,!1),c.setExtremes(d.y,d.y+d.height,!1));this.redraw()}});a(g.prototype,"render",function(a){var b=this,f=b.options.mapNavigation;b.renderMapNavigation();a.call(b);(r(f.enableDoubleClickZoom,f.enabled)||f.enableDoubleClickZoomTo)&&n(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)});r(f.enableMouseWheelZoom,f.enabled)&&n(b.container,void 0===e.onmousewheel?"DOMMouseScroll":"mousewheel", | ||
function(a){b.pointer.onContainerMouseWheel(a);k(a);return!1})})})(w);(function(a){var k=a.extend,n=a.pick,g=a.Pointer;a=a.wrap;k(g.prototype,{onContainerDblClick:function(a){var e=this.chart;a=this.normalize(a);e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(a.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(a.chartX-e.plotLeft,a.chartY-e.plotTop)&&e.mapZoom(.5,e.xAxis[0].toValue(a.chartX),e.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var e= | ||
this.chart,g;a=this.normalize(a);g=a.detail||-(a.wheelDelta/120);e.isInsidePlot(a.chartX-e.plotLeft,a.chartY-e.plotTop)&&e.mapZoom(Math.pow(e.options.mapNavigation.mouseWheelSensitivity,g),e.xAxis[0].toValue(a.chartX),e.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(g.prototype,"zoomOption",function(a){var e=this.chart.options.mapNavigation;n(e.enableTouchZoom,e.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(g.prototype,"pinchTranslate",function(a, | ||
g,n,k,r,l,b){a.call(this,g,n,k,r,l,b);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,g,n,k,r,l,b,a?k.scaleX:k.scaleY))})})(w);(function(a){var k=a.colorPointMixin,n=a.each,g=a.extend,e=a.isNumber,t=a.map,p=a.merge,u=a.noop,r=a.pick,l=a.isArray,b=a.Point,f=a.Series,h=a.seriesType,q=a.seriesTypes,m=a.splat,c=void 0!==a.doc.documentElement.style.vectorEffect;h("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc", | ||
borderWidth:1,marker:null,stickyTracking:!1,joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},p(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0, | ||
preserveAspectRatio:!0,pointArrayMap:["value"],getBox:function(d){var c=Number.MAX_VALUE,b=-c,f=c,h=-c,l=c,m=c,q=this.xAxis,g=this.yAxis,k;n(d||[],function(d){if(d.path){"string"===typeof d.path&&(d.path=a.splitPath(d.path));var v=d.path||[],q=v.length,x=!1,g=-c,n=c,p=-c,A=c,t=d.properties;if(!d._foundBox){for(;q--;)e(v[q])&&(x?(g=Math.max(g,v[q]),n=Math.min(n,v[q])):(p=Math.max(p,v[q]),A=Math.min(A,v[q])),x=!x);d._midX=n+(g-n)*(d.middleX||t&&t["hc-middle-x"]||.5);d._midY=A+(p-A)*(d.middleY||t&&t["hc-middle-y"]|| | ||
.5);d._maxX=g;d._minX=n;d._maxY=p;d._minY=A;d.labelrank=r(d.labelrank,(g-n)*(p-A));d._foundBox=!0}b=Math.max(b,d._maxX);f=Math.min(f,d._minX);h=Math.max(h,d._maxY);l=Math.min(l,d._minY);m=Math.min(d._maxX-d._minX,d._maxY-d._minY,m);k=!0}});k&&(this.minY=Math.min(l,r(this.minY,c)),this.maxY=Math.max(h,r(this.maxY,-c)),this.minX=Math.min(f,r(this.minX,c)),this.maxX=Math.max(b,r(this.maxX,-c)),q&&void 0===q.options.minRange&&(q.minRange=Math.min(5*m,(this.maxX-this.minX)/5,q.minRange||c)),g&&void 0=== | ||
g.options.minRange&&(g.minRange=Math.min(5*m,(this.maxY-this.minY)/5,g.minRange||c)))},getExtremes:function(){f.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var d=!1,c=this.xAxis,b=this.yAxis,f=c.min,h=c.transA,c=c.minPixelPadding,m=b.min,l=b.transA,b=b.minPixelPadding,q,g=[];if(a)for(q=a.length;q--;)e(a[q])? | ||
(g[q]=d?(a[q]-f)*h+c:(a[q]-m)*l+b,d=!d):g[q]=a[q];return g},setData:function(d,c,b,h){var q=this.options,g=this.chart.options.chart,v=g&&g.map,x=q.mapData,k=q.joinBy,r=null===k,u=q.keys||this.pointArrayMap,y=[],C={},z,B=this.chart.mapTransforms;!x&&v&&(x="string"===typeof v?a.maps[v]:v);r&&(k="_i");k=this.joinBy=m(k);k[1]||(k[1]=k[0]);d&&n(d,function(a,c){var b=0;if(e(a))d[c]={value:a};else if(l(a)){d[c]={};!q.keys&&a.length>u.length&&"string"===typeof a[0]&&(d[c]["hc-key"]=a[0],++b);for(var f=0;f< | ||
u.length;++f,++b)u[f]&&(d[c][u[f]]=a[b])}r&&(d[c]._i=c)});this.getBox(d);if(this.chart.mapTransforms=B=g&&g.mapTransforms||x&&x["hc-transform"]||B)for(z in B)B.hasOwnProperty(z)&&z.rotation&&(z.cosAngle=Math.cos(z.rotation),z.sinAngle=Math.sin(z.rotation));if(x){"FeatureCollection"===x.type&&(this.mapTitle=x.title,x=a.geojson(x,this.type,this));this.mapData=x;this.mapMap={};for(z=0;z<x.length;z++)g=x[z],v=g.properties,g._i=z,k[0]&&v&&v[k[0]]&&(g[k[0]]=v[k[0]]),C[g[k[0]]]=g;this.mapMap=C;d&&k[1]&& | ||
n(d,function(a){C[a[k[1]]]&&y.push(C[a[k[1]]])});q.allAreas?(this.getBox(x),d=d||[],k[1]&&n(d,function(a){y.push(a[k[1]])}),y="|"+t(y,function(a){return a&&a[k[0]]}).join("|")+"|",n(x,function(a){k[0]&&-1!==y.indexOf("|"+a[k[0]]+"|")||(d.push(p(a,{value:null})),h=!1)})):this.getBox(y)}f.prototype.setData.call(this,d,c,b,h)},drawGraph:u,drawDataLabels:u,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a= | ||
this,c=a.xAxis,b=a.yAxis,f=a.doFullTranslate();a.generatePoints();n(a.data,function(d){d.plotX=c.toPixels(d._midX,!0);d.plotY=b.toPixels(d._midY,!0);f&&(d.shapeType="path",d.shapeArgs={d:a.translatePath(d.path)})});a.translateColors()},pointAttribs:function(a,b){b=this.colorAttribs(a);a.isFading&&delete b.fill;c?b["vector-effect"]="non-scaling-stroke":b["stroke-width"]="inherit";return b},drawPoints:function(){var a=this,b=a.xAxis,f=a.yAxis,h=a.group,m=a.chart,l=m.renderer,e,g,k,p,t=this.baseTrans, | ||
y,r,u,B,w;a.transformGroup||(a.transformGroup=l.g().attr({scaleX:1,scaleY:1}).add(h),a.transformGroup.survive=!0);a.doFullTranslate()?(a.group=a.transformGroup,q.column.prototype.drawPoints.apply(a),a.group=h,n(a.points,function(d){d.graphic&&(d.name&&d.graphic.addClass("highcharts-name-"+d.name.replace(/ /g,"-").toLowerCase()),d.properties&&d.properties["hc-key"]&&d.graphic.addClass("highcharts-key-"+d.properties["hc-key"].toLowerCase()),d.graphic.css(a.pointAttribs(d,d.selected&&"select")))}),this.baseTrans= | ||
{originX:b.min-b.minPixelPadding/b.transA,originY:f.min-f.minPixelPadding/f.transA+(f.reversed?0:f.len/f.transA),transAX:b.transA,transAY:f.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(e=b.transA/t.transAX,g=f.transA/t.transAY,k=b.toPixels(t.originX,!0),p=f.toPixels(t.originY,!0),.99<e&&1.01>e&&.99<g&&1.01>g&&(g=e=1,k=Math.round(k),p=Math.round(p)),y=this.transformGroup,m.renderer.globalAnimation?(r=y.attr("translateX"),u=y.attr("translateY"),B=y.attr("scaleX"), | ||
w=y.attr("scaleY"),y.attr({animator:0}).animate({animator:1},{step:function(a,d){y.attr({translateX:r+(k-r)*d.pos,translateY:u+(p-u)*d.pos,scaleX:B+(e-B)*d.pos,scaleY:w+(g-w)*d.pos})}})):y.attr({translateX:k,translateY:p,scaleX:e,scaleY:g}));c||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(e||1));this.drawMapDataLabels()},drawMapDataLabels:function(){f.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)}, | ||
render:function(){var a=this,c=f.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){c.call(a)}):c.call(a)},animate:function(a){var d=this.options.animation,c=this.group,b=this.xAxis,f=this.yAxis,h=b.pos,m=f.pos;this.chart.renderer.isSVG&&(!0===d&&(d={duration:1E3}),a?c.attr({translateX:h+b.len/2,translateY:m+f.len/2,scaleX:.001,scaleY:.001}):(c.animate({translateX:h,translateY:m,scaleX:1,scaleY:1},d),this.animate=null))},animateDrilldown:function(a){var d=this.chart.plotBox, | ||
c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],b=c.bBox,f=this.chart.options.drilldown.animation;a||(a=Math.min(b.width/d.width,b.height/d.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:b.x,translateY:b.y},n(this.points,function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},f)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){q.column.prototype.animateDrillupFrom.call(this, | ||
a)},animateDrillupTo:function(a){q.column.prototype.animateDrillupTo.call(this,a)}}),g({applyOptions:function(a,c){a=b.prototype.applyOptions.call(this,a,c);c=this.series;var d=c.joinBy;c.mapData&&((d=void 0!==a[d[1]]&&c.mapMap[a[d[1]]])?(c.xyFromShape&&(a.x=d._midX,a.y=d._midY),g(a,d)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value)b.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)},zoomTo:function(){var a=this.series; | ||
a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()}},k))})(w);(function(a){var k=a.seriesType;k("mapline","map",{},{type:"mapline",colorProp:"stroke",drawLegendSymbol:a.seriesTypes.line.prototype.drawLegendSymbol})})(w);(function(a){var k=a.merge,n=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name},crop:!1,defer:!1,overflow:!1,style:{color:"#000000"}}},{type:"mappoint",forceDL:!0}, | ||
{applyOptions:function(a,e){a=void 0!==a.lat&&void 0!==a.lon?k(a,this.series.chart.fromLatLonToPoint(a)):a;return n.prototype.applyOptions.call(this,a,e)}})})(w);(function(a){var k=a.arrayMax,n=a.arrayMin,g=a.Axis,e=a.each,t=a.isNumber,p=a.noop,u=a.pick,r=a.pInt,l=a.Point,b=a.seriesType,f=a.seriesTypes;b("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{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"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["markerGroup","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",getRadii:function(a,b,f,c){var d,h,e,m=this.zData,l=[],g=this.options,q="width"!==g.sizeBy,k=g.zThreshold,n=b-a;h=0;for(d=m.length;h<d;h++)e=m[h],g.sizeByAbsoluteValue&&null!==e&&(e=Math.abs(e-k),b=Math.max(b-k,Math.abs(a- | ||
k)),a=0),null===e?e=null:e<a?e=f/2-1:(e=0<n?(e-a)/n:.5,q&&0<=e&&(e=Math.sqrt(e)),e=Math.ceil(f+e*(c-f))/2),l.push(e);this.radii=l},animate:function(a){var b=this.options.animation;a||(e(this.points,function(a){var c=a.graphic,d;c&&c.width&&(d={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(d,b))}),this.animate=null)},translate:function(){var a,b=this.data,e,c,d=this.radii;f.scatter.prototype.translate.call(this);for(a=b.length;a--;)e=b[a],c=d?d[a]: | ||
0,t(c)&&c>=this.minPxSize/2?(e.marker={radius:c,width:2*c,height:2*c},e.dlBox={x:e.plotX-c,y:e.plotY-c,width:2*c,height:2*c}):e.shapeArgs=e.plotY=e.dlBox=void 0},alignDataLabel:f.column.prototype.alignDataLabel,buildKDTree:p,applyZones:p},{haloPath:function(a){return l.prototype.haloPath.call(this,0===a?0:this.marker.radius+a)},ttBelow:!1});g.prototype.beforePadding=function(){var a=this,b=this.len,f=this.chart,c=0,d=b,l=this.isXAxis,g=l?"xData":"yData",p=this.min,w={},H=Math.min(f.plotWidth,f.plotHeight), | ||
E=Number.MAX_VALUE,F=-Number.MAX_VALUE,A=this.max-p,D=b/A,G=[];e(this.series,function(b){var c=b.options;!b.bubblePadding||!b.visible&&f.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(b),l&&(e(["minSize","maxSize"],function(a){var b=c[a],d=/%$/.test(b),b=r(b);w[a]=d?H*b/100:b}),b.minPxSize=w.minSize,b.maxPxSize=Math.max(w.maxSize,w.minSize),b=b.zData,b.length&&(E=u(c.zMin,Math.min(E,Math.max(n(b),!1===c.displayNegative?c.zThreshold:-Number.MAX_VALUE))),F=u(c.zMax,Math.max(F,k(b))))))}); | ||
e(G,function(b){var f=b[g],e=f.length,h;l&&b.getRadii(E,F,b.minPxSize,b.maxPxSize);if(0<A)for(;e--;)t(f[e])&&a.dataMin<=f[e]&&f[e]<=a.dataMax&&(h=b.radii[e],c=Math.min((f[e]-p)*D-h,c),d=Math.max((f[e]-p)*D+h,d))});G.length&&0<A&&!this.isLog&&(d-=b,D*=(b+c-d)/b,e([["min","userMin",c],["max","userMax",d]],function(b){void 0===u(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/D)}))}})(w);(function(a){var k=a.merge,n=a.Point,g=a.seriesType,e=a.seriesTypes;e.bubble&&g("mapbubble","bubble",{animationLimit:500, | ||
tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:e.map.prototype.getMapData,getBox:e.map.prototype.getBox,setData:e.map.prototype.setData},{applyOptions:function(a,g){return a&&void 0!==a.lat&&void 0!==a.lon?n.prototype.applyOptions.call(this,k(a,this.series.chart.fromLatLonToPoint(a)),g):e.map.prototype.pointClass.prototype.applyOptions.call(this,a,g)},ttBelow:!1})})(w);(function(a){var k=a.colorPointMixin,n=a.each,g=a.merge,e=a.noop, | ||
t=a.pick,p=a.Series,u=a.seriesType,r=a.seriesTypes;u("heatmap","scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},g(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0, | ||
directTouch:!0,init:function(){var a;r.scatter.prototype.init.apply(this,arguments);a=this.options;a.pointRange=t(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options,b=this.xAxis,f=this.yAxis,e=function(a,b,c){return Math.min(Math.max(b,a),c)};this.generatePoints();n(this.points,function(h){var l=(a.colsize||1)/2,c=(a.rowsize||1)/2,d=e(Math.round(b.len-b.translate(h.x-l,0,1,0,1)),-b.len,2*b.len),l=e(Math.round(b.len-b.translate(h.x+l,0,1,0,1)), | ||
-b.len,2*b.len),g=e(Math.round(f.translate(h.y-c,0,1,0,1)),-f.len,2*f.len),c=e(Math.round(f.translate(h.y+c,0,1,0,1)),-f.len,2*f.len);h.plotX=h.clientX=(d+l)/2;h.plotY=(g+c)/2;h.shapeType="rect";h.shapeArgs={x:Math.min(d,l),y:Math.min(g,c),width:Math.abs(l-d),height:Math.abs(c-g)}});this.translateColors()},drawPoints:function(){r.column.prototype.drawPoints.call(this);n(this.points,function(a){a.graphic.css(this.colorAttribs(a))},this)},animate:e,getBox:e,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle, | ||
alignDataLabel:r.column.prototype.alignDataLabel,getExtremes:function(){p.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;p.prototype.getExtremes.call(this)}}),k)})(w);(function(a){function k(a,b){var f,e,g,l=!1,c=a.x,d=a.y;a=0;for(f=b.length-1;a<b.length;f=a++)e=b[a][1]>d,g=b[f][1]>d,e!==g&&c<(b[f][0]-b[a][0])*(d-b[a][1])/(b[f][1]-b[a][1])+b[a][0]&&(l=!l);return l}var n=a.Chart,g=a.each,e=a.extend,t=a.format,p=a.merge,u=a.win,r=a.wrap;n.prototype.transformFromLatLon= | ||
function(e,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};e=u.proj4(b.crs,[e.lon,e.lat]);var f=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);e=b.rotation?[e[0]*f+e[1]*h,-e[0]*h+e[1]*f]:e;return{x:((e[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-e[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};n.prototype.transformToLatLon=function(e,b){if(void 0===u.proj4)a.error(21);else{e= | ||
{x:((e.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-e.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var f=b.cosAngle||b.rotation&&Math.cos(b.rotation),h=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,"WGS84",b.rotation?{x:e.x*f+e.y*-h,y:e.x*h+e.y*f}:e);return{lat:b.y,lon:b.x}}};n.prototype.fromPointToLatLon=function(e){var b=this.mapTransforms,f;if(b){for(f in b)if(b.hasOwnProperty(f)&&b[f].hitZone&&k({x:e.x,y:-e.y}, | ||
b[f].hitZone.coordinates[0]))return this.transformToLatLon(e,b[f]);return this.transformToLatLon(e,b["default"])}a.error(22)};n.prototype.fromLatLonToPoint=function(e){var b=this.mapTransforms,f,h;if(!b)return a.error(22),{x:0,y:null};for(f in b)if(b.hasOwnProperty(f)&&b[f].hitZone&&(h=this.transformFromLatLon(e,b[f]),k({x:h.x,y:-h.y},b[f].hitZone.coordinates[0])))return h;return this.transformFromLatLon(e,b["default"])};a.geojson=function(a,b,f){var h=[],k=[],m=function(a){var b,c=a.length;k.push("M"); | ||
for(b=0;b<c;b++)1===b&&k.push("L"),k.push(a[b][0],-a[b][1])};b=b||"map";g(a.features,function(a){var c=a.geometry,f=c.type,c=c.coordinates;a=a.properties;var l;k=[];"map"===b||"mapbubble"===b?("Polygon"===f?(g(c,m),k.push("Z")):"MultiPolygon"===f&&(g(c,function(a){g(a,m)}),k.push("Z")),k.length&&(l={path:k})):"mapline"===b?("LineString"===f?m(c):"MultiLineString"===f&&g(c,m),k.length&&(l={path:k})):"mappoint"===b&&"Point"===f&&(l={x:c[0],y:-c[1]});l&&h.push(e(l,{name:a.name||a.NAME,properties:a}))}); | ||
f&&a.copyrightShort&&(f.chart.mapCredits=t(f.chart.options.credits.mapText,{geojson:a}),f.chart.mapCreditsFull=t(f.chart.options.credits.mapTextFull,{geojson:a}));return h};r(n.prototype,"addCredits",function(a,b){b=p(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(w);(function(a){function k(a,b,e,g,c,d,k,l){return["M",a+c,b,"L",a+e-d,b,"C",a+e-d/2,b,a+e,b+d/2,a+e,b+d,"L",a+e,b+g-k,"C",a+ | ||
e,b+g-k/2,a+e-k/2,b+g,a+e-k,b+g,"L",a+l,b+g,"C",a+l/2,b+g,a,b+g-l/2,a,b+g-l,"L",a,b+c,"C",a,b+c/2,a+c/2,b,a+c,b,"Z"]}var n=a.Chart,g=a.defaultOptions,e=a.each,t=a.extend,p=a.merge,u=a.pick,r=a.Renderer,l=a.SVGRenderer,b=a.VMLRenderer;t(g.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});g.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)}, | ||
text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var b;a=a.replace(/([A-Za-z])/g," $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/);for(b=0;b<a.length;b++)/[a-zA-Z]/.test(a[b])||(a[b]=parseFloat(a[b]));return a};a.maps={};l.prototype.symbols.topbutton=function(a,b,e,g,c){return k(a-1,b-1,e,g,c.r,c.r,0,0)};l.prototype.symbols.bottombutton=function(a,b,e,g,c){return k(a-1,b-1,e,g,0,0,c.r,c.r)};r===b&&e(["topbutton","bottombutton"],function(a){b.prototype.symbols[a]= | ||
l.prototype.symbols[a]});a.Map=a.mapChart=function(b,e,g){var f="string"===typeof b||b.nodeName,c=arguments[f?1:0],d={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},h,k=a.getOptions().credits;h=c.series;c.series=null;c=p({chart:{panning:"xy",type:"map"},credits:{mapText:u(k.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),mapTextFull:u(k.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:d,yAxis:p(d,{reversed:!0})}, | ||
c,{chart:{inverted:!1,alignTicks:!1}});c.series=h;return f?new n(b,c,g):new n(c,e)}})(w)}); | ||
(function(x){"object"===typeof module&&module.exports?module.exports=x:x(Highcharts)})(function(x){(function(a){var k=a.Axis,m=a.each,h=a.pick;a=a.wrap;a(k.prototype,"getSeriesExtremes",function(a){var c=this.isXAxis,n,u,k=[],l;c&&m(this.series,function(b,a){b.useMapGeometry&&(k[a]=b.xData,b.xData=[])});a.call(this);c&&(n=h(this.dataMin,Number.MAX_VALUE),u=h(this.dataMax,-Number.MAX_VALUE),m(this.series,function(b,a){b.useMapGeometry&&(n=Math.min(n,h(b.minX,n)),u=Math.max(u,h(b.maxX,n)),b.xData=k[a], | ||
l=!0)}),l&&(this.dataMin=n,this.dataMax=u))});a(k.prototype,"setAxisTranslation",function(a){var c=this.chart,n=c.plotWidth/c.plotHeight,c=c.xAxis[0],h;a.call(this);"yAxis"===this.coll&&void 0!==c.transA&&m(this.series,function(a){a.preserveAspectRatio&&(h=!0)});if(h&&(this.transA=c.transA=Math.min(this.transA,c.transA),a=n/((c.max-c.min)/(this.max-this.min)),a=1>a?this:c,n=(a.max-a.min)*a.transA,a.pixelPadding=a.len-n,a.minPixelPadding=a.pixelPadding/2,n=a.fixTo)){n=n[1]-a.toValue(n[0],!0);n*=a.transA; | ||
if(Math.abs(n)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)n=0;a.minPixelPadding-=n}});a(k.prototype,"render",function(a){a.call(this);this.fixTo=null})})(x);(function(a){var k=a.Axis,m=a.Chart,h=a.color,c,t=a.each,n=a.extend,u=a.isNumber,v=a.Legend,l=a.LegendSymbolMixin,b=a.noop,f=a.merge,e=a.pick,q=a.wrap;c=a.ColorAxis=function(){this.init.apply(this,arguments)};n(c.prototype,k.prototype);n(c.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, | ||
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(k.prototype.keepProps),init:function(a,g){var d="vertical"!==a.options.legend.layout,b;this.coll="colorAxis";b=f(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},g,{opposite:!d,showEmpty:!1,title:null});k.prototype.init.call(this, | ||
a,b);g.dataClasses&&this.initDataClasses(g);this.initStops(g);this.horiz=d;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,g,d){var b;g.rgba.length&&a.rgba.length?(a=a.rgba,g=g.rgba,b=1!==g[3]||1!==a[3],a=(b?"rgba(":"rgb(")+Math.round(g[0]+(a[0]-g[0])*(1-d))+","+Math.round(g[1]+(a[1]-g[1])*(1-d))+","+Math.round(g[2]+(a[2]-g[2])*(1-d))+(b?","+(g[3]+(a[3]-g[3])*(1-d)):"")+")"):a=g.input||"none";return a},initDataClasses:function(a){var g=this,d,b=0,p=this.chart.options.chart.colorCount, | ||
e=this.options,c=a.dataClasses.length;this.dataClasses=d=[];this.legendItems=[];t(a.dataClasses,function(a,r){a=f(a);d.push(a);a.color||("category"===e.dataClassColor?(a.colorIndex=b,b++,b===p&&(b=0)):a.color=g.tweenColors(h(e.minColor),h(e.maxColor),2>c?.5:r/(c-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];t(this.stops,function(a){a.color=h(a[1])})},setOptions:function(a){k.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker}, | ||
setAxisSize:function(){var a=this.legendSymbol,g=this.chart,d=g.options.legend||{},b,f;a?(this.left=d=a.attr("x"),this.top=b=a.attr("y"),this.width=f=a.attr("width"),this.height=a=a.attr("height"),this.right=g.chartWidth-d-f,this.bottom=g.chartHeight-b-a,this.len=this.horiz?f:a,this.pos=this.horiz?d:b):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,g){var d=this.stops,b,f,e=this.dataClasses,p,c;if(e)for(c=e.length;c--;){if(p=e[c],b=p.from,d=p.to,(void 0=== | ||
b||a>=b)&&(void 0===d||a<=d)){f=p.color;g&&(g.dataClass=c,g.colorIndex=p.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(c=d.length;c--&&!(a>d[c][0]););b=d[c]||d[c+1];d=d[c+1]||b;a=1-(d[0]-a)/(d[0]-b[0]||1);f=this.tweenColors(b.color,d.color,a)}return f},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,k.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight= | ||
this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.options,d=this.reversed;a=d?1:0;d=d?0:1;a=this.horiz?[a,0,d,0]:[0,d,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var d=a.padding,g=a.options,f=this.horiz,p=e(g.symbolWidth,f?this.defaultLegendLength:12),c=e(g.symbolHeight,f?12:this.defaultLegendLength),l=e(g.labelPadding,f?16:30),g=e(g.itemDistance,10);this.setLegendColor(); | ||
b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,p,c).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=p+d+(f?g:l);this.legendItemHeight=c+d+(f?l:0)},setState:b,visible:!0,setVisible:b,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var d=b&&b.plotX,g=b&&b.plotY,f,e= | ||
this.pos,c=this.len;b&&(f=this.toPixels(b[b.series.colorKey]),f<e?f=e-2:f>e+c&&(f=e+c+2),b.plotX=f,b.plotY=this.len-f,k.prototype.drawCrosshair.call(this,a,b),b.plotX=d,b.plotY=g,this.cross&&this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup))},getPlotLinePath:function(a,b,d,f,e){return u(e)?this.horiz?["M",e-4,this.top-6,"L",e+4,this.top-6,e,this.top,"Z"]:["M",this.left,e,"L",this.left-6,e+6,this.left-6,e-6,"Z"]:k.prototype.getPlotLinePath.call(this,a,b,d,f)},update:function(a, | ||
b){var d=this.chart,g=d.legend;t(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&g.allItems&&(t(g.allItems,function(a){a.isDataClass&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=f(this.userOptions,a);k.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),g.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var f=this,g=this.chart,d=this.legendItems,e=g.options.legend,c=e.valueDecimals,q=e.valueSuffix||"",h;d.length||t(this.dataClasses, | ||
function(e,r){var p=!0,w=e.from,m=e.to;h="";void 0===w?h="\x3c ":void 0===m&&(h="\x3e ");void 0!==w&&(h+=a.numberFormat(w,c)+q);void 0!==w&&void 0!==m&&(h+=" - ");void 0!==m&&(h+=a.numberFormat(m,c)+q);d.push(n({chart:g,name:h,options:{},drawLegendSymbol:l.drawRectangle,visible:!0,setState:b,isDataClass:!0,setVisible:function(){p=this.visible=!p;t(f.series,function(a){t(a.points,function(a){a.dataClass===r&&a.setVisible(p)})});g.legend.colorizeItem(this,p)}},e))});return d},name:""});t(["fill","stroke"], | ||
function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b,c.prototype.tweenColors(h(this.start),h(this.end),this.pos),null,!0)}});q(m.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new c(this,b)});q(v.prototype,"getAllItems",function(a){var b=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses?b=b.concat(d.getDataClassLegendSymbols()):b.push(d)),t(d.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))}); | ||
q(v.prototype,"colorizeItem",function(a,b,d){a.call(this,b,d);d&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(x);(function(a){var k=a.defined,m=a.each,h=a.noop;a.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(a){var c=this,h=a?"show":"hide";m(["graphic","dataLabel"],function(a){if(c[a])c[a][h]()})},setState:function(c){a.Point.prototype.setState.call(this,c);this.graphic&&this.graphic.attr({zIndex:"hover"===c?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"], | ||
axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:h,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var a=this,t=this.options.nullColor,h=this.colorAxis,k=this.colorKey;m(this.data,function(c){var l=c[k];if(l=c.options.color||(c.isNull?t:h&&void 0!==l?h.toColor(l,c):c.color||a.color))c.color=l})},colorAttribs:function(a){var c={};k(a.color)&&(c[this.colorProp||"fill"]=a.color);return c}}})(x); | ||
(function(a){function k(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function m(a){this.init(a)}var h=a.addEvent,c=a.Chart,t=a.doc,n=a.each,u=a.extend,v=a.merge,l=a.pick;a=a.wrap;m.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};m.prototype.update=function(a){var b=this.chart,e=b.options.mapNavigation,c,p,g,d=function(a){this.handler.call(b,a);k(a)},r=b.mapNavButtons;a&&(e=b.options.mapNavigation=v(b.options.mapNavigation,a));for(;r.length;)r.pop().destroy(); | ||
if(l(e.enableButtons,e.enabled)&&!b.renderer.forExport)for(c in a=e.buttons,a)a.hasOwnProperty(c)&&(g=v(e.buttonOptions,a[c]),p=b.renderer.button(g.text,0,0,d,void 0,void 0,void 0,0,"zoomIn"===c?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:g.width,height:g.height,title:b.options.lang[c],padding:g.padding,zIndex:5}).add(),p.handler=g.onclick,p.align(u(g,{width:p.width,height:2*p.height}),null,g.alignTo),h(p.element,"dblclick",k),r.push(p));this.updateEvents(e)};m.prototype.updateEvents= | ||
function(a){var b=this.chart;l(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||h(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick());l(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||h(b.container,void 0===t.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){b.pointer.onContainerMouseWheel(a);k(a);return!1}):this.unbindMouseWheel&& | ||
(this.unbindMouseWheel=this.unbindMouseWheel())};u(c.prototype,{fitToBox:function(a,f){n([["x","width"],["y","height"]],function(b){var e=b[0];b=b[1];a[e]+a[b]>f[e]+f[b]&&(a[b]>f[b]?(a[b]=f[b],a[e]=f[e]):a[e]=f[e]+f[b]-a[b]);a[b]>f[b]&&(a[b]=f[b]);a[e]<f[e]&&(a[e]=f[e])});return a},mapZoom:function(a,f,e,c,p){var b=this.xAxis[0],d=b.max-b.min,r=l(f,b.min+d/2),w=d*a,d=this.yAxis[0],q=d.max-d.min,h=l(e,d.min+q/2),q=q*a,r=this.fitToBox({x:r-w*(c?(c-b.pos)/b.len:.5),y:h-q*(p?(p-d.pos)/d.len:.5),width:w, | ||
height:q},{x:b.dataMin,y:d.dataMin,width:b.dataMax-b.dataMin,height:d.dataMax-d.dataMin}),w=r.x<=b.dataMin&&r.width>=b.dataMax-b.dataMin&&r.y<=d.dataMin&&r.height>=d.dataMax-d.dataMin;c&&(b.fixTo=[c-b.pos,f]);p&&(d.fixTo=[p-d.pos,e]);void 0===a||w?(b.setExtremes(void 0,void 0,!1),d.setExtremes(void 0,void 0,!1)):(b.setExtremes(r.x,r.x+r.width,!1),d.setExtremes(r.y,r.y+r.height,!1));this.redraw()}});a(c.prototype,"render",function(a){this.mapNavigation=new m(this);this.mapNavigation.update();a.call(this)})})(x); | ||
(function(a){var k=a.extend,m=a.pick,h=a.Pointer;a=a.wrap;k(h.prototype,{onContainerDblClick:function(a){var c=this.chart;a=this.normalize(a);c.options.mapNavigation.enableDoubleClickZoomTo?c.pointer.inClass(a.target,"highcharts-tracker")&&c.hoverPoint&&c.hoverPoint.zoomTo():c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop)&&c.mapZoom(.5,c.xAxis[0].toValue(a.chartX),c.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var c=this.chart,h;a=this.normalize(a);h=a.detail|| | ||
-(a.wheelDelta/120);c.isInsidePlot(a.chartX-c.plotLeft,a.chartY-c.plotTop)&&c.mapZoom(Math.pow(c.options.mapNavigation.mouseWheelSensitivity,h),c.xAxis[0].toValue(a.chartX),c.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(h.prototype,"zoomOption",function(a){var c=this.chart.options.mapNavigation;m(c.enableTouchZoom,c.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(h.prototype,"pinchTranslate",function(a,h,m,k,v,l,b){a.call(this,h,m,k,v,l,b);"map"=== | ||
this.chart.options.chart.type&&this.hasZoom&&(a=k.scaleX>k.scaleY,this.pinchTranslateDirection(!a,h,m,k,v,l,b,a?k.scaleX:k.scaleY))})})(x);(function(a){var k=a.colorPointMixin,m=a.each,h=a.extend,c=a.isNumber,t=a.map,n=a.merge,u=a.noop,v=a.pick,l=a.isArray,b=a.Point,f=a.Series,e=a.seriesType,q=a.seriesTypes,p=a.splat,g=void 0!==a.doc.documentElement.style.vectorEffect;e("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc",borderWidth:1,marker:null,stickyTracking:!1, | ||
joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},n(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:u,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"], | ||
getBox:function(b){var d=Number.MAX_VALUE,e=-d,f=d,g=-d,l=d,p=d,q=this.xAxis,h=this.yAxis,k;m(b||[],function(b){if(b.path){"string"===typeof b.path&&(b.path=a.splitPath(b.path));var r=b.path||[],q=r.length,w=!1,h=-d,m=d,A=-d,n=d,t=b.properties;if(!b._foundBox){for(;q--;)c(r[q])&&(w?(h=Math.max(h,r[q]),m=Math.min(m,r[q])):(A=Math.max(A,r[q]),n=Math.min(n,r[q])),w=!w);b._midX=m+(h-m)*(b.middleX||t&&t["hc-middle-x"]||.5);b._midY=n+(A-n)*(b.middleY||t&&t["hc-middle-y"]||.5);b._maxX=h;b._minX=m;b._maxY= | ||
A;b._minY=n;b.labelrank=v(b.labelrank,(h-m)*(A-n));b._foundBox=!0}e=Math.max(e,b._maxX);f=Math.min(f,b._minX);g=Math.max(g,b._maxY);l=Math.min(l,b._minY);p=Math.min(b._maxX-b._minX,b._maxY-b._minY,p);k=!0}});k&&(this.minY=Math.min(l,v(this.minY,d)),this.maxY=Math.max(g,v(this.maxY,-d)),this.minX=Math.min(f,v(this.minX,d)),this.maxX=Math.max(e,v(this.maxX,-d)),q&&void 0===q.options.minRange&&(q.minRange=Math.min(5*p,(this.maxX-this.minX)/5,q.minRange||d)),h&&void 0===h.options.minRange&&(h.minRange= | ||
Math.min(5*p,(this.maxY-this.minY)/5,h.minRange||d)))},getExtremes:function(){f.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var b=!1,d=this.xAxis,e=this.yAxis,f=d.min,g=d.transA,d=d.minPixelPadding,l=e.min,p=e.transA,e=e.minPixelPadding,q,h=[];if(a)for(q=a.length;q--;)c(a[q])?(h[q]=b?(a[q]-f)*g+d: | ||
(a[q]-l)*p+e,b=!b):h[q]=a[q];return h},setData:function(b,e,g,q){var d=this.options,r=this.chart.options.chart,h=r&&r.map,w=d.mapData,k=d.joinBy,u=null===k,v=d.keys||this.pointArrayMap,y=[],C={},z,B=this.chart.mapTransforms;!w&&h&&(w="string"===typeof h?a.maps[h]:h);u&&(k="_i");k=this.joinBy=p(k);k[1]||(k[1]=k[0]);b&&m(b,function(a,e){var f=0;if(c(a))b[e]={value:a};else if(l(a)){b[e]={};!d.keys&&a.length>v.length&&"string"===typeof a[0]&&(b[e]["hc-key"]=a[0],++f);for(var g=0;g<v.length;++g,++f)v[g]&& | ||
(b[e][v[g]]=a[f])}u&&(b[e]._i=e)});this.getBox(b);if(this.chart.mapTransforms=B=r&&r.mapTransforms||w&&w["hc-transform"]||B)for(z in B)B.hasOwnProperty(z)&&z.rotation&&(z.cosAngle=Math.cos(z.rotation),z.sinAngle=Math.sin(z.rotation));if(w){"FeatureCollection"===w.type&&(this.mapTitle=w.title,w=a.geojson(w,this.type,this));this.mapData=w;this.mapMap={};for(z=0;z<w.length;z++)r=w[z],h=r.properties,r._i=z,k[0]&&h&&h[k[0]]&&(r[k[0]]=h[k[0]]),C[r[k[0]]]=r;this.mapMap=C;b&&k[1]&&m(b,function(a){C[a[k[1]]]&& | ||
y.push(C[a[k[1]]])});d.allAreas?(this.getBox(w),b=b||[],k[1]&&m(b,function(a){y.push(a[k[1]])}),y="|"+t(y,function(a){return a&&a[k[0]]}).join("|")+"|",m(w,function(a){k[0]&&-1!==y.indexOf("|"+a[k[0]]+"|")||(b.push(n(a,{value:null})),q=!1)})):this.getBox(y)}f.prototype.setData.call(this,b,e,g,q)},drawGraph:u,drawDataLabels:u,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a=this,b=a.xAxis,e=a.yAxis,f=a.doFullTranslate(); | ||
a.generatePoints();m(a.data,function(d){d.plotX=b.toPixels(d._midX,!0);d.plotY=e.toPixels(d._midY,!0);f&&(d.shapeType="path",d.shapeArgs={d:a.translatePath(d.path)})});a.translateColors()},pointAttribs:function(a,b){b=this.colorAttribs(a);a.isFading&&delete b.fill;g?b["vector-effect"]="non-scaling-stroke":b["stroke-width"]="inherit";return b},drawPoints:function(){var a=this,b=a.xAxis,e=a.yAxis,f=a.group,c=a.chart,h=c.renderer,l,p,k,n,t=this.baseTrans,y,u,v,B,x;a.transformGroup||(a.transformGroup= | ||
h.g().attr({scaleX:1,scaleY:1}).add(f),a.transformGroup.survive=!0);a.doFullTranslate()?(a.group=a.transformGroup,q.column.prototype.drawPoints.apply(a),a.group=f,m(a.points,function(b){b.graphic&&(b.name&&b.graphic.addClass("highcharts-name-"+b.name.replace(/ /g,"-").toLowerCase()),b.properties&&b.properties["hc-key"]&&b.graphic.addClass("highcharts-key-"+b.properties["hc-key"].toLowerCase()),b.graphic.css(a.pointAttribs(b,b.selected&&"select")))}),this.baseTrans={originX:b.min-b.minPixelPadding/ | ||
b.transA,originY:e.min-e.minPixelPadding/e.transA+(e.reversed?0:e.len/e.transA),transAX:b.transA,transAY:e.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(l=b.transA/t.transAX,p=e.transA/t.transAY,k=b.toPixels(t.originX,!0),n=e.toPixels(t.originY,!0),.99<l&&1.01>l&&.99<p&&1.01>p&&(p=l=1,k=Math.round(k),n=Math.round(n)),y=this.transformGroup,c.renderer.globalAnimation?(u=y.attr("translateX"),v=y.attr("translateY"),B=y.attr("scaleX"),x=y.attr("scaleY"),y.attr({animator:0}).animate({animator:1}, | ||
{step:function(a,b){y.attr({translateX:u+(k-u)*b.pos,translateY:v+(n-v)*b.pos,scaleX:B+(l-B)*b.pos,scaleY:x+(p-x)*b.pos})}})):y.attr({translateX:k,translateY:n,scaleX:l,scaleY:p}));g||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(l||1));this.drawMapDataLabels()},drawMapDataLabels:function(){f.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a= | ||
this,b=f.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)},animate:function(a){var b=this.options.animation,d=this.group,e=this.xAxis,f=this.yAxis,g=e.pos,c=f.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?d.attr({translateX:g+e.len/2,translateY:c+f.len/2,scaleX:.001,scaleY:.001}):(d.animate({translateX:g,translateY:c,scaleX:1,scaleY:1},b),this.animate=null))},animateDrilldown:function(a){var b=this.chart.plotBox,d=this.chart.drilldownLevels[this.chart.drilldownLevels.length- | ||
1],e=d.bBox,f=this.chart.options.drilldown.animation;a||(a=Math.min(e.width/b.width,e.height/b.height),d.shapeArgs={scaleX:a,scaleY:a,translateX:e.x,translateY:e.y},m(this.points,function(a){a.graphic&&a.graphic.attr(d.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},f)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){q.column.prototype.animateDrillupFrom.call(this,a)},animateDrillupTo:function(a){q.column.prototype.animateDrillupTo.call(this, | ||
a)}}),h({applyOptions:function(a,e){a=b.prototype.applyOptions.call(this,a,e);e=this.series;var d=e.joinBy;e.mapData&&((d=void 0!==a[d[1]]&&e.mapMap[a[d[1]]])?(e.xyFromShape&&(a.x=d._midX,a.y=d._midY),h(a,d)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value)b.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)},zoomTo:function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY, | ||
this._maxY,!1);a.chart.redraw()}},k))})(x);(function(a){var k=a.seriesType;k("mapline","map",{},{type:"mapline",colorProp:"stroke",drawLegendSymbol:a.seriesTypes.line.prototype.drawLegendSymbol})})(x);(function(a){var k=a.merge,m=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name},crop:!1,defer:!1,overflow:!1,style:{color:"#000000"}}},{type:"mappoint",forceDL:!0},{applyOptions:function(a,c){a=void 0!==a.lat&&void 0!==a.lon?k(a,this.series.chart.fromLatLonToPoint(a)): | ||
a;return m.prototype.applyOptions.call(this,a,c)}})})(x);(function(a){var k=a.arrayMax,m=a.arrayMin,h=a.Axis,c=a.each,t=a.isNumber,n=a.noop,u=a.pick,v=a.pInt,l=a.Point,b=a.seriesType,f=a.seriesTypes;b("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{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"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["markerGroup","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",getRadii:function(a,b,f,g){var d,e,c,l=this.zData,p=[],q=this.options,h="width"!==q.sizeBy,k=q.zThreshold,m=b-a;e=0;for(d=l.length;e<d;e++)c=l[e],q.sizeByAbsoluteValue&&null!==c&&(c=Math.abs(c-k),b=Math.max(b-k,Math.abs(a-k)),a=0),null===c?c=null:c<a?c=f/2-1:(c=0<m?(c-a)/m:.5,h&&0<=c&&(c=Math.sqrt(c)),c=Math.ceil(f+c*(g-f))/ | ||
2),p.push(c);this.radii=p},animate:function(a){var b=this.options.animation;a||(c(this.points,function(a){var e=a.graphic,d;e&&e.width&&(d={x:e.x,y:e.y,width:e.width,height:e.height},e.attr({x:a.plotX,y:a.plotY,width:1,height:1}),e.animate(d,b))}),this.animate=null)},translate:function(){var b,c=this.data,l,g,d=this.radii;f.scatter.prototype.translate.call(this);for(b=c.length;b--;)l=c[b],g=d?d[b]:0,t(g)&&g>=this.minPxSize/2?(l.marker=a.extend(l.marker,{radius:g,width:2*g,height:2*g}),l.dlBox={x:l.plotX- | ||
g,y:l.plotY-g,width:2*g,height:2*g}):l.shapeArgs=l.plotY=l.dlBox=void 0},alignDataLabel:f.column.prototype.alignDataLabel,buildKDTree:n,applyZones:n},{haloPath:function(a){return l.prototype.haloPath.call(this,0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});h.prototype.beforePadding=function(){var a=this,b=this.len,f=this.chart,g=0,d=b,l=this.isXAxis,h=l?"xData":"yData",n=this.min,x={},H=Math.min(f.plotWidth,f.plotHeight),E=Number.MAX_VALUE,F=-Number.MAX_VALUE,A=this.max-n,D=b/A,G= | ||
[];c(this.series,function(b){var d=b.options;!b.bubblePadding||!b.visible&&f.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(b),l&&(c(["minSize","maxSize"],function(a){var b=d[a],e=/%$/.test(b),b=v(b);x[a]=e?H*b/100:b}),b.minPxSize=x.minSize,b.maxPxSize=Math.max(x.maxSize,x.minSize),b=b.zData,b.length&&(E=u(d.zMin,Math.min(E,Math.max(m(b),!1===d.displayNegative?d.zThreshold:-Number.MAX_VALUE))),F=u(d.zMax,Math.max(F,k(b))))))});c(G,function(b){var e=b[h],f=e.length,c;l&&b.getRadii(E, | ||
F,b.minPxSize,b.maxPxSize);if(0<A)for(;f--;)t(e[f])&&a.dataMin<=e[f]&&e[f]<=a.dataMax&&(c=b.radii[f],g=Math.min((e[f]-n)*D-c,g),d=Math.max((e[f]-n)*D+c,d))});G.length&&0<A&&!this.isLog&&(d-=b,D*=(b+g-d)/b,c([["min","userMin",g],["max","userMax",d]],function(b){void 0===u(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/D)}))}})(x);(function(a){var k=a.merge,m=a.Point,h=a.seriesType,c=a.seriesTypes;c.bubble&&h("mapbubble","bubble",{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0, | ||
type:"mapbubble",pointArrayMap:["z"],getMapData:c.map.prototype.getMapData,getBox:c.map.prototype.getBox,setData:c.map.prototype.setData},{applyOptions:function(a,h){return a&&void 0!==a.lat&&void 0!==a.lon?m.prototype.applyOptions.call(this,k(a,this.series.chart.fromLatLonToPoint(a)),h):c.map.prototype.pointClass.prototype.applyOptions.call(this,a,h)},ttBelow:!1})})(x);(function(a){var k=a.colorPointMixin,m=a.each,h=a.merge,c=a.noop,t=a.pick,n=a.Series,u=a.seriesType,v=a.seriesTypes;u("heatmap", | ||
"scatter",{animation:!1,borderWidth:0,dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},h(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var a;v.scatter.prototype.init.apply(this, | ||
arguments);a=this.options;a.pointRange=t(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options,b=this.xAxis,f=this.yAxis,e=function(a,b,e){return Math.min(Math.max(b,a),e)};this.generatePoints();m(this.points,function(c){var l=(a.colsize||1)/2,g=(a.rowsize||1)/2,d=e(Math.round(b.len-b.translate(c.x-l,0,1,0,1)),-b.len,2*b.len),l=e(Math.round(b.len-b.translate(c.x+l,0,1,0,1)),-b.len,2*b.len),h=e(Math.round(f.translate(c.y-g,0,1,0,1)),-f.len,2*f.len), | ||
g=e(Math.round(f.translate(c.y+g,0,1,0,1)),-f.len,2*f.len);c.plotX=c.clientX=(d+l)/2;c.plotY=(h+g)/2;c.shapeType="rect";c.shapeArgs={x:Math.min(d,l),y:Math.min(h,g),width:Math.abs(l-d),height:Math.abs(g-h)}});this.translateColors()},drawPoints:function(){v.column.prototype.drawPoints.call(this);m(this.points,function(a){a.graphic.css(this.colorAttribs(a))},this)},animate:c,getBox:c,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,alignDataLabel:v.column.prototype.alignDataLabel,getExtremes:function(){n.prototype.getExtremes.call(this, | ||
this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;n.prototype.getExtremes.call(this)}}),k)})(x);(function(a){function k(a,b){var f,e,c,l=!1,g=a.x,d=a.y;a=0;for(f=b.length-1;a<b.length;f=a++)e=b[a][1]>d,c=b[f][1]>d,e!==c&&g<(b[f][0]-b[a][0])*(d-b[a][1])/(b[f][1]-b[a][1])+b[a][0]&&(l=!l);return l}var m=a.Chart,h=a.each,c=a.extend,t=a.format,n=a.merge,u=a.win,v=a.wrap;m.prototype.transformFromLatLon=function(c,b){if(void 0===u.proj4)return a.error(21),{x:0,y:null};c=u.proj4(b.crs, | ||
[c.lon,c.lat]);var f=b.cosAngle||b.rotation&&Math.cos(b.rotation),e=b.sinAngle||b.rotation&&Math.sin(b.rotation);c=b.rotation?[c[0]*f+c[1]*e,-c[0]*e+c[1]*f]:c;return{x:((c[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-c[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};m.prototype.transformToLatLon=function(c,b){if(void 0===u.proj4)a.error(21);else{c={x:((c.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset|| | ||
0),y:((-c.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var f=b.cosAngle||b.rotation&&Math.cos(b.rotation),e=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=u.proj4(b.crs,"WGS84",b.rotation?{x:c.x*f+c.y*-e,y:c.x*e+c.y*f}:c);return{lat:b.y,lon:b.x}}};m.prototype.fromPointToLatLon=function(c){var b=this.mapTransforms,f;if(b){for(f in b)if(b.hasOwnProperty(f)&&b[f].hitZone&&k({x:c.x,y:-c.y},b[f].hitZone.coordinates[0]))return this.transformToLatLon(c,b[f]);return this.transformToLatLon(c, | ||
b["default"])}a.error(22)};m.prototype.fromLatLonToPoint=function(c){var b=this.mapTransforms,f,e;if(!b)return a.error(22),{x:0,y:null};for(f in b)if(b.hasOwnProperty(f)&&b[f].hitZone&&(e=this.transformFromLatLon(c,b[f]),k({x:e.x,y:-e.y},b[f].hitZone.coordinates[0])))return e;return this.transformFromLatLon(c,b["default"])};a.geojson=function(a,b,f){var e=[],k=[],l=function(a){var b,c=a.length;k.push("M");for(b=0;b<c;b++)1===b&&k.push("L"),k.push(a[b][0],-a[b][1])};b=b||"map";h(a.features,function(a){var d= | ||
a.geometry,f=d.type,d=d.coordinates;a=a.properties;var g;k=[];"map"===b||"mapbubble"===b?("Polygon"===f?(h(d,l),k.push("Z")):"MultiPolygon"===f&&(h(d,function(a){h(a,l)}),k.push("Z")),k.length&&(g={path:k})):"mapline"===b?("LineString"===f?l(d):"MultiLineString"===f&&h(d,l),k.length&&(g={path:k})):"mappoint"===b&&"Point"===f&&(g={x:d[0],y:-d[1]});g&&e.push(c(g,{name:a.name||a.NAME,properties:a}))});f&&a.copyrightShort&&(f.chart.mapCredits=t(f.chart.options.credits.mapText,{geojson:a}),f.chart.mapCreditsFull= | ||
t(f.chart.options.credits.mapTextFull,{geojson:a}));return e};v(m.prototype,"addCredits",function(a,b){b=n(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(x);(function(a){function k(a,b,c,h,g,d,k,l){return["M",a+g,b,"L",a+c-d,b,"C",a+c-d/2,b,a+c,b+d/2,a+c,b+d,"L",a+c,b+h-k,"C",a+c,b+h-k/2,a+c-k/2,b+h,a+c-k,b+h,"L",a+l,b+h,"C",a+l/2,b+h,a,b+h-l/2,a,b+h-l,"L",a,b+g,"C",a,b+g/2,a+g/2,b,a+g, | ||
b,"Z"]}var m=a.Chart,h=a.defaultOptions,c=a.each,t=a.extend,n=a.merge,u=a.pick,v=a.Renderer,l=a.SVGRenderer,b=a.VMLRenderer;t(h.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});h.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var b;a=a.replace(/([A-Za-z])/g, | ||
" $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/);for(b=0;b<a.length;b++)/[a-zA-Z]/.test(a[b])||(a[b]=parseFloat(a[b]));return a};a.maps={};l.prototype.symbols.topbutton=function(a,b,c,h,g){return k(a-1,b-1,c,h,g.r,g.r,0,0)};l.prototype.symbols.bottombutton=function(a,b,c,h,g){return k(a-1,b-1,c,h,0,0,g.r,g.r)};v===b&&c(["topbutton","bottombutton"],function(a){b.prototype.symbols[a]=l.prototype.symbols[a]});a.Map=a.mapChart=function(b,c,h){var e="string"===typeof b||b.nodeName, | ||
f=arguments[e?1:0],d={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},k,l=a.getOptions().credits;k=f.series;f.series=null;f=n({chart:{panning:"xy",type:"map"},credits:{mapText:u(l.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),mapTextFull:u(l.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:d,yAxis:n(d,{reversed:!0})},f,{chart:{inverted:!1,alignTicks:!1}});f.series=k;return e?new m(b,f,h):new m(f,c)}})(x)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Plugin for displaying a message when there is no data visible in chart. | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Plugin for displaying a message when there is no data visible in chart. | ||
@@ -10,2 +10,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -27,3 +28,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -30,0 +30,0 @@ var seriesTypes = H.seriesTypes, |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Client side exporting module | ||
@@ -19,2 +19,2 @@ | ||
function(){if(!1===b.fallbackToExportServer)if(b.error)b.error(b);else throw"Fallback to export server disabled";else c.exportChart(b)};B&&("application/pdf"===b.type||c.container.getElementsByTagName("image").length&&"image/svg+xml"!==b.type)||D&&"image/svg+xml"!==b.type||"application/pdf"===b.type&&c.container.getElementsByTagName("image").length?f():c.getSVGForLocalExport(b,e,f,function(a){-1<a.indexOf("\x3cforeignObject")&&"image/svg+xml"!==b.type?f():d.downloadSVGLocal(a,b,f)})};C(!0,d.getOptions().exporting, | ||
{libURL:"https://code.highcharts.com/5.0.7/lib/",buttons:{contextButton:{menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},{textKey:"downloadSVG",onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}]}}})})(n)}); | ||
{libURL:"https://code.highcharts.com/5.0.8/lib/",buttons:{contextButton:{menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},{textKey:"downloadSVG",onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}]}}})})(n)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Client side exporting module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
/*global MSBlobBuilder */ | ||
@@ -505,3 +505,3 @@ | ||
merge(true, Highcharts.getOptions().exporting, { | ||
libURL: 'https://code.highcharts.com/5.0.7/lib/', | ||
libURL: 'https://code.highcharts.com/5.0.8/lib/', | ||
buttons: { | ||
@@ -508,0 +508,0 @@ contextButton: { |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -8,4 +8,4 @@ (c) 2009-2016 Torstein Honsi | ||
*/ | ||
(function(a){"object"===typeof module&&module.exports?module.exports=a:a(Highcharts)})(function(a){(function(a){var h=a.Chart,k=a.each,q=a.pick,r=a.addEvent;h.prototype.callbacks.push(function(f){function a(){var a=[];k(f.series,function(b){var c=b.options.dataLabels,d=b.dataLabelCollections||["dataLabel"];(c.enabled||b._hasPointLabels)&&!c.allowOverlap&&b.visible&&k(d,function(c){k(b.points,function(b){b[c]&&(b[c].labelrank=q(b.labelrank,b.shapeArgs&&b.shapeArgs.height),a.push(b[c]))})})});f.hideOverlappingLabels(a)} | ||
(function(a){"object"===typeof module&&module.exports?module.exports=a:a(Highcharts)})(function(a){(function(a){var h=a.Chart,k=a.each,q=a.pick,r=a.addEvent;h.prototype.callbacks.push(function(f){function a(){var a=[];k(f.series||[],function(b){var c=b.options.dataLabels,d=b.dataLabelCollections||["dataLabel"];(c.enabled||b._hasPointLabels)&&!c.allowOverlap&&b.visible&&k(d,function(c){k(b.points,function(b){b[c]&&(b[c].labelrank=q(b.labelrank,b.shapeArgs&&b.shapeArgs.height),a.push(b[c]))})})});f.hideOverlappingLabels(a)} | ||
a();r(f,"redraw",a)});h.prototype.hideOverlappingLabels=function(a){var f=a.length,e,b,c,d,l,m,n,p,g,h=function(a,b,c,d,e,f,g,h){return!(e>a+c||e+g<a||f>b+d||f+h<b)};for(b=0;b<f;b++)if(e=a[b])e.oldOpacity=e.opacity,e.newOpacity=1;a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(b=0;b<f;b++)for(c=a[b],e=b+1;e<f;++e)if(d=a[e],c&&d&&c.placed&&d.placed&&0!==c.newOpacity&&0!==d.newOpacity&&(l=c.alignAttr,m=d.alignAttr,n=c.parentGroup,p=d.parentGroup,g=2*(c.box?0:c.padding),l=h(l.x+n.translateX, | ||
l.y+n.translateY,c.width-g,c.height-g,m.x+p.translateX,m.y+p.translateY,d.width-g,d.height-g)))(c.labelrank<d.labelrank?c:d).newOpacity=0;k(a,function(a){var b,c;a&&(c=a.newOpacity,a.oldOpacity!==c&&a.placed&&(c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b)),a.isOld=!0)})}})(a)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -22,3 +23,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
/** | ||
@@ -38,3 +38,3 @@ * Highcharts module to hide overlapping data labels. This module is included in Highcharts. | ||
each(chart.series, function(series) { | ||
each(chart.series || [], function(series) { | ||
var dlOptions = series.options.dataLabels, | ||
@@ -41,0 +41,0 @@ collections = series.dataLabelCollections || ['dataLabel']; // Range series have two collections |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -4,0 +4,0 @@ (c) 2009-2016 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -37,3 +38,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
@@ -40,0 +40,0 @@ var labelDistance = 3, |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Solid angular gauge module | ||
@@ -9,7 +9,8 @@ | ||
*/ | ||
(function(l){"object"===typeof module&&module.exports?module.exports=l:l(Highcharts)})(function(l){(function(e){var l=e.pInt,t=e.pick,m=e.each,v=e.isNumber,n;n={initDataClasses:function(a){var c=this,d=this.chart,f,u=0,h=this.options;this.dataClasses=f=[];m(a.dataClasses,function(g,b){g=e.merge(g);f.push(g);g.color||("category"===h.dataClassColor?(b=d.options.colors,g.color=b[u++],u===b.length&&(u=0)):g.color=c.tweenColors(e.color(h.minColor),e.color(h.maxColor),b/(a.dataClasses.length-1)))})},initStops:function(a){this.stops= | ||
a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];m(this.stops,function(a){a.color=e.color(a[1])})},toColor:function(a,c){var d=this.stops,f,e,h=this.dataClasses,g,b;if(h)for(b=h.length;b--;){if(g=h[b],f=g.from,d=g.to,(void 0===f||a>=f)&&(void 0===d||a<=d)){e=g.color;c&&(c.dataClass=b);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min);for(b=d.length;b--&&!(a>d[b][0]););f=d[b]||d[b+1];d=d[b+1]||f;a=1-(d[0]-a)/(d[0]-f[0]||1);e=this.tweenColors(f.color,d.color, | ||
a)}return e},tweenColors:function(a,c,d){var f;c.rgba.length&&a.rgba.length?(a=a.rgba,c=c.rgba,f=1!==c[3]||1!==a[3],a=(f?"rgba(":"rgb(")+Math.round(c[0]+(a[0]-c[0])*(1-d))+","+Math.round(c[1]+(a[1]-c[1])*(1-d))+","+Math.round(c[2]+(a[2]-c[2])*(1-d))+(f?","+(c[3]+(a[3]-c[3])*(1-d)):"")+")"):a=c.input||"none";return a}};m(["fill","stroke"],function(a){e.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,n.tweenColors(e.color(this.start),e.color(this.end),this.pos),null,!0)}});e.seriesType("solidgauge", | ||
"gauge",{colorByPoint:!0},{translate:function(){var a=this.yAxis;e.extend(a,n);!a.dataClasses&&a.options.dataClasses&&a.initDataClasses(a.options);a.initStops(a.options);e.seriesTypes.gauge.prototype.translate.call(this)},drawPoints:function(){var a=this,c=a.yAxis,d=c.center,f=a.options,e=a.chart.renderer,h=f.overshoot,g=v(h)?h/180*Math.PI:0,b;v(f.threshold)&&(b=c.startAngleRad+c.translate(f.threshold,null,null,null,!0));this.thresholdAngleRad=t(b,c.startAngleRad);m(a.points,function(b){var h=b.graphic, | ||
k=c.startAngleRad+c.translate(b.y,null,null,null,!0),m=l(t(b.options.radius,f.radius,100))*d[2]/200,p=l(t(b.options.innerRadius,f.innerRadius,60))*d[2]/200,q=c.toColor(b.y,b),r=Math.min(c.startAngleRad,c.endAngleRad),n=Math.max(c.startAngleRad,c.endAngleRad);"none"===q&&(q=b.color||a.color||"none");"none"!==q&&(b.color=q);k=Math.max(r-g,Math.min(n+g,k));!1===f.wrap&&(k=Math.max(r,Math.min(n,k)));r=Math.min(k,a.thresholdAngleRad);k=Math.max(k,a.thresholdAngleRad);k-r>2*Math.PI&&(k=r+2*Math.PI);b.shapeArgs= | ||
p={x:d[0],y:d[1],r:m,innerR:p,start:r,end:k,fill:q};b.startR=m;h?(b=p.d,h.animate(p),b&&(p.d=b)):b.graphic=e.arc(p).addClass("highcharts-point").attr({fill:q,"sweep-flag":0}).add(a.group)})},animate:function(a){a||(this.startAngleRad=this.thresholdAngleRad,e.seriesTypes.pie.prototype.animate.call(this,a))}})})(l)}); | ||
(function(l){"object"===typeof module&&module.exports?module.exports=l:l(Highcharts)})(function(l){(function(f){var l=f.pInt,u=f.pick,m=f.each,v=f.isNumber,w=f.wrap,n;w(f.Renderer.prototype.symbols,"arc",function(a,c,e,d,f,g){a=a(c,e,d,f,g);g.rounded&&(d=((g.r||d)-g.innerR)/2,g=["A",d,d,0,1,1,a[12],a[13]],a.splice.apply(a,[a.length-1,0].concat(["A",d,d,0,1,1,a[1],a[2]])),a.splice.apply(a,[11,3].concat(g)));return a});n={initDataClasses:function(a){var c=this,e=this.chart,d,t=0,g=this.options;this.dataClasses= | ||
d=[];m(a.dataClasses,function(h,b){h=f.merge(h);d.push(h);h.color||("category"===g.dataClassColor?(b=e.options.colors,h.color=b[t++],t===b.length&&(t=0)):h.color=c.tweenColors(f.color(g.minColor),f.color(g.maxColor),b/(a.dataClasses.length-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];m(this.stops,function(a){a.color=f.color(a[1])})},toColor:function(a,c){var e=this.stops,d,f,g=this.dataClasses,h,b;if(g)for(b=g.length;b--;){if(h=g[b],d=h.from, | ||
e=h.to,(void 0===d||a>=d)&&(void 0===e||a<=e)){f=h.color;c&&(c.dataClass=b);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min);for(b=e.length;b--&&!(a>e[b][0]););d=e[b]||e[b+1];e=e[b+1]||d;a=1-(e[0]-a)/(e[0]-d[0]||1);f=this.tweenColors(d.color,e.color,a)}return f},tweenColors:function(a,c,e){var d;c.rgba.length&&a.rgba.length?(a=a.rgba,c=c.rgba,d=1!==c[3]||1!==a[3],a=(d?"rgba(":"rgb(")+Math.round(c[0]+(a[0]-c[0])*(1-e))+","+Math.round(c[1]+(a[1]-c[1])*(1-e))+","+Math.round(c[2]+ | ||
(a[2]-c[2])*(1-e))+(d?","+(c[3]+(a[3]-c[3])*(1-e)):"")+")"):a=c.input||"none";return a}};m(["fill","stroke"],function(a){f.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,n.tweenColors(f.color(this.start),f.color(this.end),this.pos),null,!0)}});f.seriesType("solidgauge","gauge",{colorByPoint:!0},{translate:function(){var a=this.yAxis;f.extend(a,n);!a.dataClasses&&a.options.dataClasses&&a.initDataClasses(a.options);a.initStops(a.options);f.seriesTypes.gauge.prototype.translate.call(this)},drawPoints:function(){var a= | ||
this,c=a.yAxis,e=c.center,d=a.options,t=a.chart.renderer,g=d.overshoot,h=v(g)?g/180*Math.PI:0,b;v(d.threshold)&&(b=c.startAngleRad+c.translate(d.threshold,null,null,null,!0));this.thresholdAngleRad=u(b,c.startAngleRad);m(a.points,function(b){var g=b.graphic,k=c.startAngleRad+c.translate(b.y,null,null,null,!0),m=l(u(b.options.radius,d.radius,100))*e[2]/200,p=l(u(b.options.innerRadius,d.innerRadius,60))*e[2]/200,q=c.toColor(b.y,b),r=Math.min(c.startAngleRad,c.endAngleRad),n=Math.max(c.startAngleRad, | ||
c.endAngleRad);"none"===q&&(q=b.color||a.color||"none");"none"!==q&&(b.color=q);k=Math.max(r-h,Math.min(n+h,k));!1===d.wrap&&(k=Math.max(r,Math.min(n,k)));r=Math.min(k,a.thresholdAngleRad);k=Math.max(k,a.thresholdAngleRad);k-r>2*Math.PI&&(k=r+2*Math.PI);b.shapeArgs=p={x:e[0],y:e[1],r:m,innerR:p,start:r,end:k,rounded:d.rounded};b.startR=m;g?(b=p.d,g.animate(f.extend({fill:q},p)),b&&(p.d=b)):b.graphic=t.arc(p).addClass("highcharts-point").attr({fill:q,"sweep-flag":0}).add(a.group)})},animate:function(a){a|| | ||
(this.startAngleRad=this.thresholdAngleRad,f.seriesTypes.pie.prototype.animate.call(this,a))}})})(l)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Solid angular gauge module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
@@ -33,4 +33,38 @@ var pInt = H.pInt, | ||
isNumber = H.isNumber, | ||
wrap = H.wrap, | ||
Renderer = H.Renderer, | ||
colorAxisMethods; | ||
/** | ||
* Symbol definition of an arc with round edges. | ||
* | ||
* @param {Number} x - The X coordinate for the top left position. | ||
* @param {Number} y - The Y coordinate for the top left position. | ||
* @param {Number} w - The pixel width. | ||
* @param {Number} h - The pixel height. | ||
* @param {Object} [options] - Additional options, depending on the actual | ||
* symbol drawn. | ||
* @param {boolean} [options.rounded] - Whether to draw rounded edges. | ||
* @return {Array} Path of the created arc. | ||
*/ | ||
wrap(Renderer.prototype.symbols, 'arc', function(proceed, x, y, w, h, options) { | ||
var arc = proceed, | ||
path = arc(x, y, w, h, options); | ||
if (options.rounded) { | ||
var r = options.r || w, | ||
smallR = (r - options.innerR) / 2, | ||
x1 = path[1], | ||
y1 = path[2], | ||
x2 = path[12], | ||
y2 = path[13], | ||
roundStart = ['A', smallR, smallR, 0, 1, 1, x1, y1], | ||
roundEnd = ['A', smallR, smallR, 0, 1, 1, x2, y2]; | ||
// Insert rounded edge on end, and remove line. | ||
path.splice.apply(path, [path.length - 1, 0].concat(roundStart)); | ||
// Insert rounded edge on end, and remove line. | ||
path.splice.apply(path, [11, 3].concat(roundEnd)); | ||
} | ||
return path; | ||
}); | ||
// These methods are defined in the ColorAxis object, and copied here. | ||
@@ -271,3 +305,3 @@ // If we implement an AMD system we should make ColorAxis a dependency. | ||
end: maxAngle, | ||
fill: toColor | ||
rounded: options.rounded | ||
}; | ||
@@ -278,3 +312,5 @@ point.startR = radius; // For PieSeries.animate | ||
d = shapeArgs.d; | ||
graphic.animate(shapeArgs); | ||
graphic.animate(H.extend({ | ||
fill: toColor | ||
}, shapeArgs)); | ||
if (d) { | ||
@@ -281,0 +317,0 @@ shapeArgs.d = d; // animate alters it |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Highstock as a plugin for Highcharts | ||
@@ -9,112 +9,113 @@ | ||
*/ | ||
(function(I){"object"===typeof module&&module.exports?module.exports=I:I(Highcharts)})(function(I){(function(a){var D=a.addEvent,u=a.Axis,w=a.Chart,B=a.css,H=a.dateFormat,G=a.defined,A=a.each,x=a.extend,k=a.noop,p=a.Series,n=a.timeUnits;a=a.wrap;a(p.prototype,"init",function(a){var b;a.apply(this,Array.prototype.slice.call(arguments,1));(b=this.xAxis)&&b.options.ordinal&&D(this,"updatedData",function(){delete b.ordinalIndex})});a(u.prototype,"getTimeTicks",function(a,b,f,q,r,m,k,e){var g=0,d,z,c= | ||
{},h,l,F,t=[],y=-Number.MAX_VALUE,v=this.options.tickPixelInterval;if(!this.options.ordinal&&!this.options.breaks||!m||3>m.length||void 0===f)return a.call(this,b,f,q,r);l=m.length;for(d=0;d<l;d++){F=d&&m[d-1]>q;m[d]<f&&(g=d);if(d===l-1||m[d+1]-m[d]>5*k||F){if(m[d]>y){for(z=a.call(this,b,m[g],m[d],r);z.length&&z[0]<=y;)z.shift();z.length&&(y=z[z.length-1]);t=t.concat(z)}g=d+1}if(F)break}a=z.info;if(e&&a.unitRange<=n.hour){d=t.length-1;for(g=1;g<d;g++)H("%d",t[g])!==H("%d",t[g-1])&&(c[t[g]]="day", | ||
h=!0);h&&(c[t[0]]="day");a.higherRanks=c}t.info=a;if(e&&G(v)){e=a=t.length;d=[];var K;for(h=[];e--;)g=this.translate(t[e]),K&&(h[e]=K-g),d[e]=K=g;h.sort();h=h[Math.floor(h.length/2)];h<.6*v&&(h=null);e=t[a-1]>q?a-1:a;for(K=void 0;e--;)g=d[e],q=Math.abs(K-g),K&&q<.8*v&&(null===h||q<.8*h)?(c[t[e]]&&!c[t[e+1]]?(q=e+1,K=g):q=e,t.splice(q,1)):K=g}return t});x(u.prototype,{beforeSetTickPositions:function(){var a,b=[],f=!1,q,r=this.getExtremes(),m=r.min,k=r.max,e,g=this.isXAxis&&!!this.options.breaks,r= | ||
this.options.ordinal,C=this.chart.options.chart.ignoreHiddenSeries;if(r||g){A(this.series,function(e,c){if(!(C&&!1===e.visible||!1===e.takeOrdinalPosition&&!g)&&(b=b.concat(e.processedXData),a=b.length,b.sort(function(c,l){return c-l}),a))for(c=a-1;c--;)b[c]===b[c+1]&&b.splice(c,1)});a=b.length;if(2<a){q=b[1]-b[0];for(e=a-1;e--&&!f;)b[e+1]-b[e]!==q&&(f=!0);!this.options.keepOrdinalPadding&&(b[0]-m>q||k-b[b.length-1]>q)&&(f=!0)}f?(this.ordinalPositions=b,q=this.ordinal2lin(Math.max(m,b[0]),!0),e=Math.max(this.ordinal2lin(Math.min(k, | ||
b[b.length-1]),!0),1),this.ordinalSlope=k=(k-m)/(e-q),this.ordinalOffset=m-q*k):this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0}this.isOrdinal=r&&f;this.groupIntervalFactor=null},val2lin:function(a,b){var f=this.ordinalPositions;if(f){var d=f.length,r,m;for(r=d;r--;)if(f[r]===a){m=r;break}for(r=d-1;r--;)if(a>f[r]||0===r){a=(a-f[r])/(f[r+1]-f[r]);m=r+a;break}b=b?m:this.ordinalSlope*(m||0)+this.ordinalOffset}else b=a;return b},lin2val:function(a,b){var f=this.ordinalPositions;if(f){var d= | ||
this.ordinalSlope,r=this.ordinalOffset,m=f.length-1,k;if(b)0>a?a=f[0]:a>m?a=f[m]:(m=Math.floor(a),k=a-m);else for(;m--;)if(b=d*m+r,a>=b){d=d*(m+1)+r;k=(a-b)/(d-b);break}return void 0!==k&&void 0!==f[m]?f[m]+(k?k*(f[m+1]-f[m]):0):a}return a},getExtendedPositions:function(){var a=this.chart,b=this.series[0].currentDataGrouping,f=this.ordinalIndex,q=b?b.count+b.unitName:"raw",r=this.getExtremes(),m,n;f||(f=this.ordinalIndex={});f[q]||(m={series:[],chart:a,getExtremes:function(){return{min:r.dataMin, | ||
max:r.dataMax}},options:{ordinal:!0},val2lin:u.prototype.val2lin},A(this.series,function(e){n={xAxis:m,xData:e.xData,chart:a,destroyGroupedData:k};n.options={dataGrouping:b?{enabled:!0,forced:!0,approximation:"open",units:[[b.unitName,[b.count]]]}:{enabled:!1}};e.processData.apply(n);m.series.push(n)}),this.beforeSetTickPositions.apply(m),f[q]=m.ordinalPositions);return f[q]},getGroupIntervalFactor:function(a,b,f){var d;f=f.processedXData;var k=f.length,m=[];d=this.groupIntervalFactor;if(!d){for(d= | ||
0;d<k-1;d++)m[d]=f[d+1]-f[d];m.sort(function(a,e){return a-e});m=m[Math.floor(k/2)];a=Math.max(a,f[0]);b=Math.min(b,f[k-1]);this.groupIntervalFactor=d=k*m/(b-a)}return d},postProcessTickInterval:function(a){var b=this.ordinalSlope;return b?this.options.breaks?this.closestPointRange:a/(b/this.closestPointRange):a}});u.prototype.ordinal2lin=u.prototype.val2lin;a(w.prototype,"pan",function(a,b){var f=this.xAxis[0],d=b.chartX,k=!1;if(f.options.ordinal&&f.series.length){var m=this.mouseDownX,n=f.getExtremes(), | ||
e=n.dataMax,g=n.min,C=n.max,z=this.hoverPoints,c=f.closestPointRange,m=(m-d)/(f.translationSlope*(f.ordinalSlope||c)),h={ordinalPositions:f.getExtendedPositions()},c=f.lin2val,l=f.val2lin,F;h.ordinalPositions?1<Math.abs(m)&&(z&&A(z,function(c){c.setState()}),0>m?(z=h,F=f.ordinalPositions?f:h):(z=f.ordinalPositions?f:h,F=h),h=F.ordinalPositions,e>h[h.length-1]&&h.push(e),this.fixedRange=C-g,m=f.toFixedRange(null,null,c.apply(z,[l.apply(z,[g,!0])+m,!0]),c.apply(F,[l.apply(F,[C,!0])+m,!0])),m.min>=Math.min(n.dataMin, | ||
g)&&m.max<=Math.max(e,C)&&f.setExtremes(m.min,m.max,!0,!1,{trigger:"pan"}),this.mouseDownX=d,B(this.container,{cursor:"move"})):k=!0}else k=!0;k&&a.apply(this,Array.prototype.slice.call(arguments,1))});p.prototype.gappedPath=function(){var a=this.options.gapSize,b=this.points.slice(),f=b.length-1;if(a&&0<f)for(;f--;)b[f+1].x-b[f].x>this.closestPointRange*a&&b.splice(f+1,0,{isNull:!0});return this.getGraphPath(b)}})(I);(function(a){function D(){return Array.prototype.slice.call(arguments,1)}function u(a){a.apply(this); | ||
this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,w(this.pointArrayMap,["y"]))}var w=a.pick,B=a.wrap,H=a.each,G=a.extend,A=a.isArray,x=a.fireEvent,k=a.Axis,p=a.Series;G(k.prototype,{isInBreak:function(a,d){var b=a.repeat||Infinity,f=a.from,k=a.to-a.from;d=d>=f?(d-f)%b:b-(f-d)%b;return a.inclusive?d<=k:d<k&&0!==d},isInAnyBreak:function(a,d){var b=this.options.breaks,f=b&&b.length,k,r,m;if(f){for(;f--;)this.isInBreak(b[f],a)&&(k=!0,r||(r=w(b[f].showPoints,this.isXAxis?!1:!0)));m=k&&d?k&& | ||
!r:k}return m}});B(k.prototype,"setTickPositions",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var d=this.tickPositions,b=this.tickPositions.info,f=[],k;for(k=0;k<d.length;k++)this.isInAnyBreak(d[k])||f.push(d[k]);this.tickPositions=f;this.tickPositions.info=b}});B(k.prototype,"init",function(a,d,b){var f=this;b.breaks&&b.breaks.length&&(b.ordinal=!1);a.call(this,d,b);a=this.options.breaks;f.isBroken=A(a)&&!!a.length;f.isBroken&&(f.val2lin=function(a){var b= | ||
a,d,k;for(k=0;k<f.breakArray.length;k++)if(d=f.breakArray[k],d.to<=a)b-=d.len;else if(d.from>=a)break;else if(f.isInBreak(d,a)){b-=a-d.from;break}return b},f.lin2val=function(a){var b,d;for(d=0;d<f.breakArray.length&&!(b=f.breakArray[d],b.from>=a);d++)b.to<a?a+=b.len:f.isInBreak(b,a)&&(a+=b.len);return a},f.setExtremes=function(a,b,f,d,e){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(b);)b-=this.closestPointRange;k.prototype.setExtremes.call(this,a,b,f,d,e)},f.setAxisTranslation= | ||
function(a){k.prototype.setAxisTranslation.call(this,a);var b=f.options.breaks;a=[];var d=[],n=0,e,g,C=f.userMin||f.min,z=f.userMax||f.max,c,h;for(h in b)g=b[h],e=g.repeat||Infinity,f.isInBreak(g,C)&&(C+=g.to%e-C%e),f.isInBreak(g,z)&&(z-=z%e-g.from%e);for(h in b){g=b[h];c=g.from;for(e=g.repeat||Infinity;c-e>C;)c-=e;for(;c<C;)c+=e;for(;c<z;c+=e)a.push({value:c,move:"in"}),a.push({value:c+(g.to-g.from),move:"out",size:g.breakSize})}a.sort(function(c,h){return c.value===h.value?("in"===c.move?0:1)-("in"=== | ||
h.move?0:1):c.value-h.value});b=0;c=C;for(h in a)g=a[h],b+="in"===g.move?1:-1,1===b&&"in"===g.move&&(c=g.value),0===b&&(d.push({from:c,to:g.value,len:g.value-c-(g.size||0)}),n+=g.value-c-(g.size||0));f.breakArray=d;x(f,"afterBreaks");f.transA*=(z-f.min)/(z-C-n);f.min=C;f.max=z})});B(p.prototype,"generatePoints",function(a){a.apply(this,D(arguments));var d=this.xAxis,b=this.yAxis,f=this.points,k,x=f.length,m=this.options.connectNulls,n;if(d&&b&&(d.options.breaks||b.options.breaks))for(;x--;)k=f[x], | ||
n=null===k.y&&!1===m,n||!d.isInAnyBreak(k.x,!0)&&!b.isInAnyBreak(k.y,!0)||(f.splice(x,1),this.data[x]&&this.data[x].destroyElements())});a.Series.prototype.drawBreaks=function(a,d){var b=this,f=b.points,k,n,m,p;a&&H(d,function(e){k=a.breakArray||[];n=a.isXAxis?a.min:w(b.options.threshold,a.min);H(f,function(g){p=w(g["stack"+e.toUpperCase()],g[e]);H(k,function(e){m=!1;if(n<e.from&&p>e.to||n>e.from&&p<e.from)m="pointBreak";else if(n<e.from&&p>e.from&&p<e.to||n>e.from&&p>e.to&&p<e.from)m="pointInBreak"; | ||
m&&x(a,m,{point:g,brk:e})})})})};B(a.seriesTypes.column.prototype,"drawPoints",u);B(a.Series.prototype,"drawPoints",u)})(I);(function(a){var D=a.arrayMax,u=a.arrayMin,w=a.Axis,B=a.defaultPlotOptions,H=a.defined,G=a.each,A=a.extend,x=a.format,k=a.isNumber,p=a.merge,n=a.pick,d=a.Point,b=a.Tooltip,f=a.wrap,q=a.Series.prototype,r=q.processData,m=q.generatePoints,E=q.destroy,e={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L", | ||
"-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},g={line:{},spline:{},area:{},areaspline:{},column:{approximation:"sum",groupPixelWidth:10},arearange:{approximation:"range"},areasplinerange:{approximation:"range"}, | ||
columnrange:{approximation:"range",groupPixelWidth:10},candlestick:{approximation:"ohlc",groupPixelWidth:10},ohlc:{approximation:"ohlc",groupPixelWidth:5}},C=a.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]],z={sum:function(c){var a=c.length,e;if(!a&&c.hasNulls)e=null;else if(a)for(e=0;a--;)e+=c[a];return e},average:function(c){var a= | ||
c.length;c=z.sum(c);k(c)&&a&&(c/=a);return c},open:function(c){return c.length?c[0]:c.hasNulls?null:void 0},high:function(c){return c.length?D(c):c.hasNulls?null:void 0},low:function(c){return c.length?u(c):c.hasNulls?null:void 0},close:function(c){return c.length?c[c.length-1]:c.hasNulls?null:void 0},ohlc:function(c,a,e,g){c=z.open(c);a=z.high(a);e=z.low(e);g=z.close(g);if(k(c)||k(a)||k(e)||k(g))return[c,a,e,g]},range:function(c,a){c=z.low(c);a=z.high(a);if(k(c)||k(a))return[c,a]}};q.groupData=function(c, | ||
a,e,g){var t=this.data,h=this.options.data,v=[],l=[],b=[],F=c.length,d,f,m=!!a,J=[[],[],[],[]];g="function"===typeof g?g:z[g];var C=this.pointArrayMap,x=C&&C.length,n,p=0;for(n=f=0;n<=F&&!(c[n]>=e[0]);n++);for(n;n<=F;n++){for(;(void 0!==e[p+1]&&c[n]>=e[p+1]||n===F)&&(d=e[p],this.dataGroupInfo={start:f,length:J[0].length},f=g.apply(this,J),void 0!==f&&(v.push(d),l.push(f),b.push(this.dataGroupInfo)),f=n,J[0]=[],J[1]=[],J[2]=[],J[3]=[],p+=1,n!==F););if(n===F)break;if(C){d=this.cropStart+n;d=t&&t[d]|| | ||
this.pointClass.prototype.applyOptions.apply({series:this},[h[d]]);var q,r;for(q=0;q<x;q++)r=d[C[q]],k(r)?J[q].push(r):null===r&&(J[q].hasNulls=!0)}else d=m?a[n]:null,k(d)?J[0].push(d):null===d&&(J[0].hasNulls=!0)}return[v,l,b]};q.processData=function(){var c=this.chart,a=this.options.dataGrouping,e=!1!==this.allowDG&&a&&n(a.enabled,c.options.isStock),g=this.visible||!c.options.chart.ignoreHiddenSeries,t;this.forceCrop=e;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==r.apply(this,arguments)&& | ||
e&&g){this.destroyGroupedData();var y=this.processedXData,v=this.processedYData,b=c.plotSizeX,c=this.xAxis,d=c.options.ordinal,f=this.groupPixelWidth=c.getGroupPixelWidth&&c.getGroupPixelWidth();if(f){this.isDirty=t=!0;g=c.getExtremes();e=g.min;g=g.max;d=d&&c.getGroupIntervalFactor(e,g,this)||1;b=f*(g-e)/b*d;f=c.getTimeTicks(c.normalizeTimeTickInterval(b,a.units||C),Math.min(e,y[0]),Math.max(g,y[y.length-1]),c.options.startOfWeek,y,this.closestPointRange);y=q.groupData.apply(this,[y,v,f,a.approximation]); | ||
v=y[0];d=y[1];if(a.smoothed){a=v.length-1;for(v[a]=Math.min(v[a],g);a--&&0<a;)v[a]+=b/2;v[0]=Math.max(v[0],e)}this.currentDataGrouping=f.info;this.closestPointRange=f.info.totalRange;this.groupMap=y[2];H(v[0])&&v[0]<c.dataMin&&(c.min===c.dataMin&&(c.min=v[0]),c.dataMin=v[0]);this.processedXData=v;this.processedYData=d}else this.currentDataGrouping=this.groupMap=null;this.hasGroupedData=t}};q.destroyGroupedData=function(){var c=this.groupedData;G(c||[],function(a,e){a&&(c[e]=a.destroy?a.destroy(): | ||
null)});this.groupedData=null};q.generatePoints=function(){m.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};f(d.prototype,"update",function(c){this.dataGroup?a.error(24):c.apply(this,[].slice.call(arguments,1))});f(b.prototype,"tooltipFooterHeaderFormatter",function(c,e,g){var h=e.series,t=h.tooltipOptions,y=h.options.dataGrouping,v=t.xDateFormat,l,b=h.xAxis,d=a.dateFormat;return b&&"datetime"===b.options.type&&y&&k(e.key)?(c=h.currentDataGrouping,y=y.dateTimeLabelFormats, | ||
c?(b=y[c.unitName],1===c.count?v=b[0]:(v=b[1],l=b[2])):!v&&y&&(v=this.getXDateFormat(e,t,b)),v=d(v,e.key),l&&(v+=d(l,e.key+c.totalRange-1)),x(t[(g?"footer":"header")+"Format"],{point:A(e.point,{key:v}),series:h})):c.call(this,e,g)});q.destroy=function(){for(var c=this.groupedData||[],a=c.length;a--;)c[a]&&c[a].destroy();E.apply(this)};f(q,"setOptions",function(c,a){c=c.call(this,a);var h=this.type,b=this.chart.options.plotOptions,t=B[h].dataGrouping;g[h]&&(t||(t=p(e,g[h])),c.dataGrouping=p(t,b.series&& | ||
b.series.dataGrouping,b[h].dataGrouping,a.dataGrouping));this.chart.options.isStock&&(this.requireSorting=!0);return c});f(w.prototype,"setScale",function(c){c.call(this);G(this.series,function(c){c.hasProcessed=!1})});w.prototype.getGroupPixelWidth=function(){var c=this.series,a=c.length,e,g=0,t=!1,y;for(e=a;e--;)(y=c[e].options.dataGrouping)&&(g=Math.max(g,y.groupPixelWidth));for(e=a;e--;)(y=c[e].options.dataGrouping)&&c[e].hasProcessed&&(a=(c[e].processedXData||c[e].data).length,c[e].groupPixelWidth|| | ||
a>this.chart.plotSizeX/g||a&&y.forced)&&(t=!0);return t?g:0};w.prototype.setDataGrouping=function(c,a){var e;a=n(a,!0);c||(c={forced:!1,units:null});if(this instanceof w)for(e=this.series.length;e--;)this.series[e].update({dataGrouping:c},!1);else G(this.chart.options.series,function(a){a.dataGrouping=c},!1);a&&this.chart.redraw()}})(I);(function(a){var D=a.each,u=a.Point,w=a.seriesType,B=a.seriesTypes;w("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'}, | ||
threshold:null},{pointArrayMap:["open","high","low","close"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:"high",translate:function(){var a=this,u=a.yAxis,A=!!a.modifyValue,x=["plotOpen","yBottom","plotClose"];B.column.prototype.translate.apply(a);D(a.points,function(k){D([k.open,k.low,k.close],function(p,n){null!==p&&(A&&(p=a.modifyValue(p)),k[x[n]]=u.toPixels(p,!0))})})},drawPoints:function(){var a=this,u=a.chart;D(a.points,function(A){var x,k,p,n,d=A.graphic,b,f=!d;void 0!== | ||
A.plotY&&(d||(A.graphic=d=u.renderer.path().add(a.group)),k=d.strokeWidth()%2/2,b=Math.round(A.plotX)-k,p=Math.round(A.shapeArgs.width/2),n=["M",b,Math.round(A.yBottom),"L",b,Math.round(A.plotY)],null!==A.open&&(x=Math.round(A.plotOpen)+k,n.push("M",b,x,"L",b-p,x)),null!==A.close&&(x=Math.round(A.plotClose)+k,n.push("M",b,x,"L",b+p,x)),d[f?"attr":"animate"]({d:n}).addClass(A.getClassName(),!0))})},animate:null},{getClassName:function(){return u.prototype.getClassName.call(this)+(this.open<this.close? | ||
" highcharts-point-up":" highcharts-point-down")}})})(I);(function(a){var D=a.defaultPlotOptions,u=a.each,w=a.merge;a=a.seriesType;a("candlestick","ohlc",w(D.column,{states:{hover:{lineWidth:2}},tooltip:D.ohlc.tooltip,threshold:null}),{drawPoints:function(){var a=this,w=a.chart;u(a.points,function(u){var A=u.graphic,x,k,p,n,d,b,f,q=!A;void 0!==u.plotY&&(A||(u.graphic=A=w.renderer.path().add(a.group)),d=A.strokeWidth()%2/2,b=Math.round(u.plotX)-d,x=u.plotOpen,k=u.plotClose,p=Math.min(x,k),x=Math.max(x, | ||
k),f=Math.round(u.shapeArgs.width/2),k=Math.round(p)!==Math.round(u.plotY),n=x!==u.yBottom,p=Math.round(p)+d,x=Math.round(x)+d,d=[],d.push("M",b-f,x,"L",b-f,p,"L",b+f,p,"L",b+f,x,"Z","M",b,p,"L",b,k?Math.round(u.plotY):p,"M",b,x,"L",b,n?Math.round(u.yBottom):x),A[q?"attr":"animate"]({d:d}).addClass(u.getClassName(),!0))})}})})(I);(function(a){var D=a.addEvent,u=a.each,w=a.noop,B=a.seriesType,H=a.seriesTypes,G=a.TrackerMixin,A=a.SVGRenderer.prototype.symbols;B("flags","column",{pointRange:0,shape:"flag", | ||
stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}\x3cbr/\x3e"},threshold:null,y:-30},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:a.Series.prototype.init,translate:function(){H.column.prototype.translate.apply(this);var a=this.options,k=this.chart,p=this.points,n=p.length-1,d,b,f=a.onSeries;d=f&&k.get(f);var a=a.onKey||"y",f=d&&d.options.step,q=d&&d.points,r=q&&q.length,m=this.xAxis,w=m.getExtremes(),e=0,g,C,z; | ||
if(d&&d.visible&&r)for(e=(d.pointXOffset||0)+(d.barW||0)/2,d=d.currentDataGrouping,C=q[r-1].x+(d?d.totalRange:0),p.sort(function(c,a){return c.x-a.x}),a="plot"+a[0].toUpperCase()+a.substr(1);r--&&p[n]&&!(d=p[n],g=q[r],g.x<=d.x&&void 0!==g[a]&&(d.x<=C&&(d.plotY=g[a],g.x<d.x&&!f&&(z=q[r+1])&&void 0!==z[a]&&(d.plotY+=(d.x-g.x)/(z.x-g.x)*(z[a]-g[a]))),n--,r++,0>n)););u(p,function(a,g){var c;void 0===a.plotY&&(a.x>=w.min&&a.x<=w.max?a.plotY=k.chartHeight-m.bottom-(m.opposite?m.height:0)+m.offset-k.plotTop: | ||
a.shapeArgs={});a.plotX+=e;(b=p[g-1])&&b.plotX===a.plotX&&(void 0===b.stackIndex&&(b.stackIndex=0),c=b.stackIndex+1);a.stackIndex=c})},drawPoints:function(){var a=this.points,k=this.chart,p=k.renderer,n,d,b=this.options,f=b.y,q,u,m,w,e,g,C,z=this.yAxis;for(u=a.length;u--;)m=a[u],C=m.plotX>this.xAxis.len,n=m.plotX,w=m.stackIndex,q=m.options.shape||b.shape,d=m.plotY,void 0!==d&&(d=m.plotY+f-(void 0!==w&&w*b.stackDistance)),e=w?void 0:m.plotX,g=w?void 0:m.plotY,w=m.graphic,void 0!==d&&0<=n&&!C?(w||(w= | ||
m.graphic=p.label("",null,null,q,null,null,b.useHTML).attr({align:"flag"===q?"left":"center",width:b.width,height:b.height,"text-align":b.textAlign}).addClass("highcharts-point").add(this.markerGroup)),0<n&&(n-=w.strokeWidth()%2),w.attr({text:m.options.title||b.title||"A",x:n,y:d,anchorX:e,anchorY:g}),m.tooltipPos=k.inverted?[z.len+z.pos-k.plotLeft-d,this.xAxis.len-n]:[n,d]):w&&(m.graphic=w.destroy())},drawTracker:function(){var a=this.points;G.drawTrackerPoint.apply(this);u(a,function(k){var p=k.graphic; | ||
p&&D(p.element,"mouseover",function(){0<k.stackIndex&&!k.raised&&(k._y=p.y,p.attr({y:k._y-8}),k.raised=!0);u(a,function(a){a!==k&&a.raised&&a.graphic&&(a.graphic.attr({y:a._y}),a.raised=!1)})})})},animate:w,buildKDTree:w,setClip:w});A.flag=function(a,k,p,n,d){return["M",d&&d.anchorX||a,d&&d.anchorY||k,"L",a,k+n,a,k,a+p,k,a+p,k+n,a,k+n,"Z"]};u(["circle","square"],function(a){A[a+"pin"]=function(k,p,n,d,b){var f=b&&b.anchorX;b=b&&b.anchorY;"circle"===a&&d>n&&(k-=Math.round((d-n)/2),n=d);k=A[a](k,p, | ||
n,d);f&&b&&k.push("M",f,p>b?p:p+d,"L",f,b);return k}})})(I);(function(a){function D(a,g,b){this.init(a,g,b)}var u=a.addEvent,w=a.Axis,B=a.correctFloat,H=a.defaultOptions,G=a.defined,A=a.destroyObjectProperties,x=a.doc,k=a.each,p=a.fireEvent,n=a.hasTouch,d=a.isTouchDevice,b=a.merge,f=a.pick,q=a.removeEvent,r=a.wrap,m,E={height:d?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:a.svg&&!d,margin:10,minWidth:6,step:.2,zIndex:3};H.scrollbar=b(!0,E,H.scrollbar);a.swapXY=m=function(a,g){var e=a.length, | ||
b;if(g)for(g=0;g<e;g+=3)b=a[g+1],a[g+1]=a[g+2],a[g+2]=b;return a};D.prototype={init:function(a,g,d){this.scrollbarButtons=[];this.renderer=a;this.userOptions=g;this.options=b(E,g);this.chart=d;this.size=f(this.options.size,this.options.height);g.enabled&&(this.render(),this.initEvents(),this.addEvents())},render:function(){var a=this.renderer,g=this.options,b=this.size,d;this.group=d=a.g("scrollbar").attr({zIndex:g.zIndex,translateY:-99999}).add();this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0, | ||
r:g.trackBorderRadius||0,height:b,width:b}).add(d);this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(d);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:b,width:b,r:g.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a.path(m(["M",-3,b/4,"L",-3,2*b/3,"M",0,b/4,"L",0,2*b/3,"M",3,b/4,"L",3,2*b/3],g.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);this.scrollbarStrokeWidth= | ||
this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0);this.drawScrollbarButton(1)},position:function(a,g,b,d){var c=this.options.vertical,e=0,l=this.rendered?"animate":"attr";this.x=a;this.y=g+this.trackBorderWidth;this.width=b;this.xOffset=this.height=d;this.yOffset=e;c?(this.width=this.yOffset=b=e=this.size,this.xOffset=g=0,this.barWidth=d-2*b,this.x=a+=this.options.margin):(this.height=this.xOffset= | ||
d=g=this.size,this.barWidth=b-2*d,this.y+=this.options.margin);this.group[l]({translateX:a,translateY:this.y});this.track[l]({width:b,height:d});this.scrollbarButtons[1][l]({translateX:c?0:b-g,translateY:c?d-e:0})},drawScrollbarButton:function(a){var e=this.renderer,b=this.scrollbarButtons,d=this.options,c=this.size,h;h=e.g().add(this.group);b.push(h);h=e.rect().addClass("highcharts-scrollbar-button").add(h);h.attr(h.crisp({x:-.5,y:-.5,width:c+1,height:c+1,r:d.buttonBorderRadius},h.strokeWidth())); | ||
e.path(m(["M",c/2+(a?-1:1),c/2-3,"L",c/2+(a?-1:1),c/2+3,"L",c/2+(a?2:-2),c/2],d.vertical)).addClass("highcharts-scrollbar-arrow").add(b[a])},setRange:function(a,b){var e=this.options,g=e.vertical,c=e.minWidth,h=this.barWidth,d,f,t=this.rendered&&!this.hasDragged?"animate":"attr";G(h)&&(a=Math.max(a,0),d=h*a,this.calculatedWidth=f=B(h*Math.min(b,1)-d),f<c&&(d=(h-c+f)*a,f=c),c=Math.floor(d+this.xOffset+this.yOffset),h=f/2-.5,this.from=a,this.to=b,g?(this.scrollbarGroup[t]({translateY:c}),this.scrollbar[t]({height:f}), | ||
this.scrollbarRifles[t]({translateY:h}),this.scrollbarTop=c,this.scrollbarLeft=0):(this.scrollbarGroup[t]({translateX:c}),this.scrollbar[t]({width:f}),this.scrollbarRifles[t]({translateX:h}),this.scrollbarLeft=c,this.scrollbarTop=0),12>=f?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===e.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var g=a.chart.pointer.normalize(b),d=a.options.vertical? | ||
"chartY":"chartX",c=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][d]||(g=a.cursorToScrollbarPosition(g)[d],d=a[d],d=g-d,a.hasDragged=!0,a.updatePosition(c[0]+d,c[1]+d),a.hasDragged&&p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b); | ||
b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var d=B(a.to-a.from)*a.options.step;a.updatePosition(B(a.from-d),B(a.to-d));p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.buttonToMaxClick=function(b){var d=(a.to-a.from)*a.options.step;a.updatePosition(a.from+d,a.to+d);p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.trackClick=function(b){var d=a.chart.pointer.normalize(b), | ||
g=a.to-a.from,c=a.y+a.scrollbarTop,h=a.x+a.scrollbarLeft;a.options.vertical&&d.chartY>c||!a.options.vertical&&d.chartX>h?a.updatePosition(a.from+g,a.to+g):a.updatePosition(a.from-g,a.to-g);p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a, | ||
b){1<b&&(a=B(1-B(b-a)),b=1);0>a&&(b=B(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,d=this.scrollbarGroup.element,f=this.mouseDownHandler,c=this.mouseMoveHandler,h=this.mouseUpHandler,a=[[b[a[0]].element,"click",this.buttonToMinClick],[b[a[1]].element,"click",this.buttonToMaxClick],[this.track.element,"click",this.trackClick],[d, | ||
"mousedown",f],[x,"mousemove",c],[x,"mouseup",h]];n&&a.push([d,"touchstart",f],[x,"touchmove",c],[x,"touchend",h]);k(a,function(a){u.apply(null,a)});this._events=a},removeEvents:function(){k(this._events,function(a){q.apply(null,a)});this._events=void 0},destroy:function(){var a=this.chart.scroller;this.removeEvents();k(["track","scrollbarRifles","scrollbar","scrollbarGroup","group"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&(a.scrollbar=null,A(a.scrollbarButtons))}}; | ||
r(w.prototype,"init",function(a){var b=this;a.apply(b,[].slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick=b.options.endOnTick=!1,b.scrollbar=new D(b.chart.renderer,b.options.scrollbar,b.chart),u(b.scrollbar,"changed",function(a){var d=Math.min(f(b.options.min,b.min),b.min,b.dataMin),c=Math.max(f(b.options.max,b.max),b.max,b.dataMax)-d,h;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(h=d+c*this.to,d+=c*this.from):(h= | ||
d+c*(1-this.from),d+=c*(1-this.to));b.setExtremes(d,h,!0,!1,a)}))});r(w.prototype,"render",function(a){var b=Math.min(f(this.options.min,this.min),this.min,this.dataMin),d=Math.max(f(this.options.max,this.max),this.max,this.dataMax),e=this.scrollbar,c;a.apply(this,[].slice.call(arguments,1));e&&(this.horiz?e.position(this.left,this.top+this.height+this.offset+2+(this.opposite?0:this.axisTitleMargin),this.width,this.height):e.position(this.left+this.width+2+this.offset+(this.opposite?this.axisTitleMargin: | ||
0),this.top,this.width,this.height),isNaN(b)||isNaN(d)||!G(this.min)||!G(this.max)?e.setRange(0,0):(c=(this.min-b)/(d-b),b=(this.max-b)/(d-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?e.setRange(c,b):e.setRange(1-b,1-c)))});r(w.prototype,"getOffset",function(a){var b=this.horiz?2:1,d=this.scrollbar;a.apply(this,[].slice.call(arguments,1));d&&(this.chart.axisOffset[b]+=d.size+d.options.margin)});r(w.prototype,"destroy",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy()); | ||
a.apply(this,[].slice.call(arguments,1))});a.Scrollbar=D})(I);(function(a){function D(a){this.init(a)}var u=a.addEvent,w=a.Axis,B=a.Chart,H=a.defaultOptions,G=a.defined,A=a.destroyObjectProperties,x=a.doc,k=a.each,p=a.erase,n=a.error,d=a.extend,b=a.grep,f=a.hasTouch,q=a.isNumber,r=a.isObject,m=a.merge,E=a.pick,e=a.removeEvent,g=a.Scrollbar,C=a.Series,z=a.seriesTypes,c=a.wrap,h=a.swapXY,l=[].concat(a.defaultDataGroupingUnits),F=function(a){var c=b(arguments,q);if(c.length)return Math[a].apply(0,c)}; | ||
l[4]=["day",[1,2,3,4]];l[5]=["week",[1,2,3]];d(H,{navigator:{height:40,margin:25,maskInside:!0,series:{type:void 0===z.areaspline?"line":"areaspline",compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:l},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},pointRange:0,shadow:!1,threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,tickPixelInterval:200, | ||
labels:{align:"left",x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});D.prototype={drawHandle:function(a,c,b,d){this.handles[c][d](b?{translateX:Math.round(this.left+this.height/2-8),translateY:Math.round(this.top+parseInt(a,10)+.5)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-8)})},getHandlePath:function(a){return h(["M", | ||
-4.5,.5,"L",3.5,.5,"L",3.5,15.5,"L",-4.5,15.5,"L",-4.5,.5,"M",-1.5,4,"L",-1.5,12,"M",.5,4,"L",.5,12],a)},drawOutline:function(a,c,b,d){var t=this.navigatorOptions.maskInside,v=this.outline.strokeWidth()/2,h=this.outlineHeight,y=this.scrollbarHeight,f=this.size,l=this.left-y,e=this.top;b?(l-=v,b=e+c+v,c=e+a+v,a=["M",l+h,e-y-v,"L",l+h,b,"L",l,b,"L",l,c,"L",l+h,c,"L",l+h,e+f+y].concat(t?["M",l+h,b-v,"L",l+h,c+v]:[])):(a+=l+y-v,c+=l+y-v,e+=v,a=["M",l,e,"L",a,e,"L",a,e+h,"L",c,e+h,"L",c,e,"L",l+f+2*y, | ||
e].concat(t?["M",a-v,e,"L",c+v,e]:[]));this.outline[d]({d:a})},drawMasks:function(a,c,b,d){var t=this.left,v=this.top,h=this.height,y,f,l,e;b?(l=[t,t,t],e=[v,v+a,v+c],f=[h,h,h],y=[a,c-a,this.size-c]):(l=[t,t+a,t+c],e=[v,v,v],f=[a,c-a,this.size-c],y=[h,h,h]);k(this.shades,function(a,c){a[d]({x:l[c],y:e[c],width:f[c],height:y[c]})})},renderElements:function(){var a=this,c=a.navigatorOptions.maskInside,b=a.chart,d=b.inverted,h=b.renderer,f;a.navigatorGroup=f=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add(); | ||
k([!c,c,!c],function(c,b){a.shades[b]=h.rect().addClass("highcharts-navigator-mask"+(1===b?"-inside":"-outside")).add(f)});a.outline=h.path().addClass("highcharts-navigator-outline").add(f);k([0,1],function(c){a.handles[c]=h.path(a.getHandlePath(d)).attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(f)})},update:function(a){this.destroy();m(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(a,c,b,d){var t= | ||
this.chart,h,v,y=this.scrollbarHeight,f,l=this.xAxis;h=this.navigatorEnabled;var e,k=this.rendered;v=t.inverted;var g=t.xAxis[0].minRange;if(!this.hasDragged||G(b)){if(!q(a)||!q(c))if(k)b=0,d=l.width;else return;this.left=E(l.left,t.plotLeft+y);v?(this.size=e=f=E(l.len,t.plotHeight-2*y),t=y):(this.size=e=f=E(l.len,t.plotWidth-2*y),t=f+2*y);b=E(b,l.toPixels(a,!0));d=E(d,l.toPixels(c,!0));q(b)&&Infinity!==Math.abs(b)||(b=0,d=t);a=l.toValue(b,!0);c=l.toValue(d,!0);if(Math.abs(c-a)<g)if(this.grabbedLeft)b= | ||
l.toPixels(c-g,!0);else if(this.grabbedRight)d=l.toPixels(a+g,!0);else return;this.zoomedMax=Math.min(Math.max(b,d,0),e);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(b,d),0),e);this.range=this.zoomedMax-this.zoomedMin;e=Math.round(this.zoomedMax);b=Math.round(this.zoomedMin);h&&(this.navigatorGroup.attr({visibility:"visible"}),k=k&&!this.hasDragged?"animate":"attr",this.drawMasks(b,e,v,k),this.drawOutline(b,e,v,k),this.drawHandle(b,0,v,k),this.drawHandle(e, | ||
1,v,k));this.scrollbar&&(v?(v=this.top-y,h=this.left-y+(h?0:this.height),y=f+2*y):(v=this.top+(h?this.height:-y),h=this.left-y),this.scrollbar.position(h,v,t,y),this.scrollbar.setRange(b/f,e/f));this.rendered=!0}},addMouseEvents:function(){var a=this,c=a.chart,b=c.container,d=[],h,l;a.mouseMoveHandler=h=function(c){a.onMouseMove(c)};a.mouseUpHandler=l=function(c){a.onMouseUp(c)};d=a.getPartsEvents("mousedown");d.push(u(b,"mousemove",h),u(x,"mouseup",l));f&&(d.push(u(b,"touchmove",h),u(x,"touchend", | ||
l)),d.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(u(a.series[0].xAxis,"foundExtremes",function(){c.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var c=this,b=[];k(["shades","handles"],function(t){k(c[t],function(d,h){b.push(u(d.element,a,function(a){c[t+"Mousedown"](a,h)}))})});return b},shadesMousedown:function(a,c){a=this.chart.pointer.normalize(a);var b=this.chart,t=this.xAxis,d=this.zoomedMin,h=this.left,y=this.size,l=this.range, | ||
f=a.chartX,e;b.inverted&&(f=a.chartY,h=this.top);1===c?(this.grabbedCenter=f,this.fixedWidth=l,this.dragOffset=f-d):(a=f-h-l/2,0===c?a=Math.max(0,a):2===c&&a+l>=y&&(a=y-l,e=this.getUnionExtremes().dataMax),a!==d&&(this.fixedWidth=l,c=t.toFixedRange(a,a+l,null,e),b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,c){this.chart.pointer.normalize(a);a=this.chart;var b=a.xAxis[0],t=a.inverted&&!b.reversed||!a.inverted&&b.reversed; | ||
0===c?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=t?b.min:b.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=t?b.max:b.min);a.fixedRange=null},onMouseMove:function(a){var c=this,b=c.chart,d=c.left,t=c.navigatorSize,h=c.range,l=c.dragOffset,f=b.inverted;a.touches&&0===a.touches[0].pageX||(a=b.pointer.normalize(a),b=a.chartX,f&&(d=c.top,b=a.chartY),c.grabbedLeft?(c.hasDragged=!0,c.render(0,0,b-d,c.otherHandlePos)):c.grabbedRight?(c.hasDragged= | ||
!0,c.render(0,0,c.otherHandlePos,b-d)):c.grabbedCenter&&(c.hasDragged=!0,b<l?b=l:b>t+l-h&&(b=t+l-h),c.render(0,0,b-l,b-l+h)),c.hasDragged&&c.scrollbar&&c.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){c.onMouseUp(a)},0)))},onMouseUp:function(a){var c=this.chart,b=this.xAxis,d,t,h=a.DOMEvent||a;if(this.hasDragged||"scrollbar"===a.trigger)this.zoomedMin===this.otherHandlePos?d=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(t=this.fixedExtreme),this.zoomedMax===this.navigatorSize&& | ||
(t=this.getUnionExtremes().dataMax),b=b.toFixedRange(this.zoomedMin,this.zoomedMax,d,t),G(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:h});"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(k(this.eventsToUnbind,function(a){a()}), | ||
this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&!1!==this.navigatorOptions.adaptToUpdatedData&&(k(a,function(a){e(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&e(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,h=d.enabled,t=b.scrollbar,l=t.enabled,b=h?d.height:0,f=l?t.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries(); | ||
this.height=b;this.scrollbarHeight=f;this.scrollbarEnabled=l;this.navigatorEnabled=h;this.navigatorOptions=d;this.scrollbarOptions=t;this.outlineHeight=b+f;var e=this,h=e.baseSeries,t=a.xAxis.length,l=a.yAxis.length,k=h&&h[0]&&h[0].xAxis||a.xAxis[0];a.extraMargin={type:d.opposite?"plotTop":"marginBottom",value:e.outlineHeight+d.margin};a.inverted&&(a.extraMargin.type=d.opposite?"marginRight":"plotLeft");a.isDirtyBox=!0;e.navigatorEnabled?(e.xAxis=new w(a,m({breaks:k.options.breaks,ordinal:k.options.ordinal}, | ||
d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:t,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[f,0,-f,0],width:b}:{offsets:[0,-f,0,f],height:b})),e.yAxis=new w(a,m(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:l,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),h||d.series.data?e.addBaseSeries():0===a.series.length&&c(a,"redraw",function(c,b){0<a.series.length&&!e.series&& | ||
(e.setBaseSeries(),a.redraw=c);c.call(a,b)}),e.renderElements(),e.addMouseEvents()):e.xAxis={translate:function(c,b){var d=a.xAxis[0],h=d.getExtremes(),t=a.plotWidth-2*f,l=F("min",d.options.min,h.dataMin),d=F("max",d.options.max,h.dataMax)-l;return b?c*d/t+l:t*(c-l)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)},toFixedRange:w.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=e.scrollbar=new g(a.renderer,m(a.options.scrollbar, | ||
{margin:e.navigatorEnabled?0:10,vertical:a.inverted}),a),u(e.scrollbar,"changed",function(c){var b=e.size,d=b*this.to,b=b*this.from;e.hasDragged=e.scrollbar.hasDragged;e.render(0,0,b,d);(a.options.scrollbar.liveRedraw||"mousemove"!==c.DOMType)&&setTimeout(function(){e.onMouseUp(c)})}));e.addBaseSeriesEvents();e.addChartEvents()},getUnionExtremes:function(a){var c=this.chart.xAxis[0],b=this.xAxis,d=b.options,h=c.options,t;a&&null===c.dataMin||(t={dataMin:E(d&&d.min,F("min",h.min,c.dataMin,b.dataMin, | ||
b.min)),dataMax:E(d&&d.max,F("max",h.max,c.dataMax,b.dataMax,b.max))});return t},setBaseSeries:function(a){var c=this.chart,b=this.baseSeries=[];a=a||c.options&&c.options.navigator.baseSeries||0;this.series&&(this.removeBaseSeriesEvents(),k(this.series,function(a){a.destroy()}));k(c.series||[],function(c,d){(c.options.showInNavigator||(d===a||c.options.id===a)&&!1!==c.options.showInNavigator)&&b.push(c)});this.xAxis&&!this.xAxis.fake&&this.addBaseSeries()},addBaseSeries:function(){var a=this,c=a.chart, | ||
b=a.series=[],d=a.baseSeries,h,l,e=a.navigatorOptions.series,f,g={enableMouseTracking:!1,index:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0};d?k(d,function(d,t){g.name="Navigator "+(t+1);h=d.options||{};f=h.navigatorOptions||{};l=m(h,g,e,f);t=f.data||e.data;a.hasNavigatorData=a.hasNavigatorData||!!t;l.data=t||h.data&&h.data.slice(0);d.navigatorSeries=c.initSeries(l);b.push(d.navigatorSeries)}):(l=m(e,g),l.data= | ||
e.data,a.hasNavigatorData=!!l.data,b.push(c.initSeries(l)));this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,c=a.baseSeries||[];c[0]&&c[0].xAxis&&u(c[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes);!1!==this.navigatorOptions.adaptToUpdatedData&&k(c,function(c){c.xAxis&&(u(c,"updatedData",this.updatedDataHandler),c.userOptions.events=d(c.userOptions.event,{updatedData:this.updatedDataHandler}));u(c,"remove",function(){this.navigatorSeries&&(p(a.series,this.navigatorSeries), | ||
this.navigatorSeries.remove(),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,c;a.getExtremes&&(!(c=this.getUnionExtremes(!0))||c.dataMin===a.min&&c.dataMax===a.max||(a.min=c.dataMin,a.max=c.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,c=this.getExtremes(),b=c.dataMin,d=c.dataMax,c=c.max-c.min,h=a.stickToMin,l=a.stickToMax,e,f,k=a.series&&a.series[0],g=!!this.setExtremes;this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger|| | ||
(h&&(f=b,e=f+c),l&&(e=d,h||(f=Math.max(e-c,k&&k.xData?k.xData[0]:-Number.MAX_VALUE))),g&&(h||l)&&q(f)&&(this.min=this.userMin=f,this.max=this.userMax=e));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMin=q(this.xAxis.min)&&this.xAxis.min<=this.xData[0];a.stickToMax=Math.round(a.zoomedMax)>=Math.round(a.size);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){u(this.chart, | ||
"redraw",function(){var a=this.navigator,c=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);c&&a.render(c.min,c.max)})},destroy:function(){this.removeEvents();this.xAxis&&(p(this.chart.xAxis,this.xAxis),p(this.chart.axes,this.xAxis));this.yAxis&&(p(this.chart.yAxis,this.yAxis),p(this.chart.axes,this.yAxis));k(this.series||[],function(a){a.destroy&&a.destroy()});k("series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" "), | ||
function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);k([this.handles],function(a){A(a)},this)}};a.Navigator=D;c(w.prototype,"zoom",function(a,c,b){var d=this.chart,h=d.options,l=h.chart.zoomType,e=h.navigator,h=h.rangeSelector,f;this.isXAxis&&(e&&e.enabled||h&&h.enabled)&&("x"===l?d.resetZoomButton="blocked":"y"===l?f=!1:"xy"===l&&(d=this.previousZoom,G(c)?this.previousZoom=[this.min,this.max]:d&&(c=d[0],b=d[1],delete this.previousZoom)));return void 0!==f?f:a.call(this,c,b)}); | ||
c(B.prototype,"init",function(a,c,b){u(this,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new D(this)});a.call(this,c,b)});c(B.prototype,"setChartSize",function(a){var c=this.legend,b=this.navigator,d,h,l,e;a.apply(this,[].slice.call(arguments,1));b&&(h=c.options,l=b.xAxis,e=b.yAxis,d=b.scrollbarHeight,this.inverted?(b.left=b.navigatorOptions.opposite?this.chartWidth-d-b.height:this.spacing[3]+d,b.top=this.plotTop+d):(b.left= | ||
this.plotLeft+d,b.top=b.navigatorOptions.top||this.chartHeight-b.height-d-this.spacing[2]-("bottom"===h.verticalAlign&&h.enabled&&!h.floating?c.legendHeight+E(h.margin,10):0)),l&&e&&(this.inverted?l.options.left=e.options.left=b.left:l.options.top=e.options.top=b.top,l.setAxisSize(),e.setAxisSize()))});c(C.prototype,"addPoint",function(a,c,b,d,h){var l=this.options.turboThreshold;l&&this.xData.length>l&&r(c,!0)&&this.chart.navigator&&n(20,!0);a.call(this,c,b,d,h)});c(B.prototype,"addSeries",function(a, | ||
c,b,d){a=a.call(this,c,!1,d);this.navigator&&this.navigator.setBaseSeries();E(b,!0)&&this.redraw();return a});c(C.prototype,"update",function(a,c,b){a.call(this,c,!1);this.chart.navigator&&this.chart.navigator.setBaseSeries();E(b,!0)&&this.chart.redraw()});B.prototype.callbacks.push(function(a){var c=a.navigator;c&&(a=a.xAxis[0].getExtremes(),c.render(a.min,a.max))})})(I);(function(a){function D(a){this.init(a)}var u=a.addEvent,w=a.Axis,B=a.Chart,H=a.css,G=a.createElement,A=a.dateFormat,x=a.defaultOptions, | ||
k=x.global.useUTC,p=a.defined,n=a.destroyObjectProperties,d=a.discardElement,b=a.each,f=a.extend,q=a.fireEvent,r=a.Date,m=a.isNumber,E=a.merge,e=a.pick,g=a.pInt,C=a.splat,z=a.wrap;f(x,{rangeSelector:{buttonTheme:{"stroke-width":0,width:28,height:18,padding:2,zIndex:7},height:35,inputPosition:{align:"right"}}});x.lang=E(x.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"});D.prototype={clickButton:function(a,d){var c=this,h=c.chart,f=c.buttonOptions[a],g=h.xAxis[0],v=h.scroller&& | ||
h.scroller.getUnionExtremes()||g||{},n=v.dataMin,p=v.dataMax,q,r=g&&Math.round(Math.min(g.max,e(p,g.max))),x=f.type,L,v=f._range,z,A,B,D=f.dataGrouping;if(null!==n&&null!==p){h.fixedRange=v;D&&(this.forcedDataGrouping=!0,w.prototype.setDataGrouping.call(g||{chart:this.chart},D,!1));if("month"===x||"year"===x)g?(x={range:f,max:r,dataMin:n,dataMax:p},q=g.minFromRange.call(x),m(x.newMax)&&(r=x.newMax)):v=f;else if(v)q=Math.max(r-v,n),r=Math.min(q+v,p);else if("ytd"===x)if(g)void 0===p&&(n=Number.MAX_VALUE, | ||
p=Number.MIN_VALUE,b(h.series,function(a){a=a.xData;n=Math.min(a[0],n);p=Math.max(a[a.length-1],p)}),d=!1),r=c.getYTDExtremes(p,n,k),q=z=r.min,r=r.max;else{u(h,"beforeRender",function(){c.clickButton(a)});return}else"all"===x&&g&&(q=n,r=p);c.setSelected(a);g?g.setExtremes(q,r,e(d,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:f}):(L=C(h.options.xAxis)[0],B=L.range,L.range=v,A=L.min,L.min=z,u(h,"load",function(){L.range=B;L.min=A}))}},setSelected:function(a){this.selected=this.options.selected= | ||
a},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(a){var c=this,d=a.options.rangeSelector,e=d.buttons||[].concat(c.defaultButtons),f=d.selected,g=function(){var a=c.minInput,b=c.maxInput;a&&a.blur&&q(a,"blur");b&&b.blur&&q(b,"blur")};c.chart=a;c.options=d;c.buttons=[];a.extraTopMargin=d.height;c.buttonOptions=e;this.unMouseDown=u(a.container, | ||
"mousedown",g);this.unResize=u(a,"resize",g);b(e,c.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);u(a,"load",function(){u(a.xAxis[0],"setExtremes",function(b){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!==b.trigger&&c.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,d=a.xAxis[0],e=Math.round(d.max-d.min),f=!d.hasVisibleSeries,a=a.scroller&&a.scroller.getUnionExtremes()||d,g=a.dataMin,n=a.dataMax, | ||
a=this.getYTDExtremes(n,g,k),v=a.min,p=a.max,q=this.selected,r=m(q),u=this.options.allButtonsEnabled,x=this.buttons;b(this.buttonOptions,function(a,c){var b=a._range,h=a.type,l=a.count||1;a=x[c];var k=0;c=c===q;var t=b>n-g,m=b<d.minRange,F=!1,y=!1,b=b===e;("month"===h||"year"===h)&&e>=864E5*{month:28,year:365}[h]*l&&e<=864E5*{month:31,year:366}[h]*l?b=!0:"ytd"===h?(b=p-v===e,F=!c):"all"===h&&(b=d.max-d.min>=n-g,y=!c&&r&&b);h=!u&&(t||m||y||f);b=c&&b||b&&!r&&!F;h?k=3:b&&(r=!0,k=2);a.state!==k&&a.setState(k)})}, | ||
computeButtonRange:function(a){var c=a.type,b=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[c])a._range=d[c]*b;else if("month"===c||"year"===c)a._range=864E5*{month:30,year:365}[c]*b},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this[a+"Input"];p(b)&&(d.previousValue=d.HCTime,d.HCTime=b);d.value=A(c.inputEditDateFormat||"%Y-%m-%d",d.HCTime);this[a+"DateBox"].attr({text:A(c.inputDateFormat||"%b %e, %Y",d.HCTime)})},showInput:function(a){var c= | ||
this.inputGroup,b=this[a+"DateBox"];H(this[a+"Input"],{left:c.translateX+b.x+"px",top:c.translateY+"px",width:b.width-2+"px",height:b.height-2+"px",border:"2px solid silver"})},hideInput:function(a){H(this[a+"Input"],{border:0,width:"1px",height:"1px"});this.setInputValue(a)},drawInput:function(a){function c(){var a=p.value,c=(f.inputDateParser||Date.parse)(a),h=d.xAxis[0],e=d.scroller&&d.scroller.xAxis?d.scroller.xAxis:h,l=e.dataMin,e=e.dataMax;c!==p.previousValue&&(p.previousValue=c,m(c)||(c=a.split("-"), | ||
c=Date.UTC(g(c[0]),g(c[1])-1,g(c[2]))),m(c)&&(k||(c+=6E4*(new Date).getTimezoneOffset()),n?c>b.maxInput.HCTime?c=void 0:c<l&&(c=l):c<b.minInput.HCTime?c=void 0:c>e&&(c=e),void 0!==c&&h.setExtremes(n?c:h.min,n?h.max:c,void 0,void 0,{trigger:"rangeSelectorInput"})))}var b=this,d=b.chart,e=d.renderer,f=d.options.rangeSelector,v=b.div,n="min"===a,p,q,r=this.inputGroup;this[a+"Label"]=q=e.label(x.lang[n?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(r); | ||
r.offset+=q.width+5;this[a+"DateBox"]=e=e.label("",r.offset).addClass("highcharts-range-input").attr({padding:2,width:f.inputBoxWidth||90,height:f.inputBoxHeight||17,stroke:f.inputBoxBorderColor||"#cccccc","stroke-width":1,"text-align":"center"}).on("click",function(){b.showInput(a);b[a+"Input"].focus()}).add(r);r.offset+=e.width+(n?10:0);this[a+"Input"]=p=G("input",{name:a,className:"highcharts-range-selector",type:"text"},{top:d.plotTop+"px"},v);p.onfocus=function(){b.showInput(a)};p.onblur=function(){b.hideInput(a)}; | ||
p.onchange=c;p.onkeypress=function(a){13===a.keyCode&&c()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=e((b.buttonPosition||{}).y,a.plotTop-a.axisOffset[0]-b.height);return{buttonTop:a,inputTop:a-10}},getYTDExtremes:function(a,b,d){var c=new r(a),h=c[r.hcGetFullYear]();d=d?r.UTC(h,0,1):+new r(h,0,1);b=Math.max(b||0,d);c=c.getTime();return{max:Math.min(a||c,c),min:b}},render:function(a,d){var c=this,h=c.chart,g=h.renderer,k=h.container,v=h.options,m=v.exporting&&!1!==v.exporting.enabled&& | ||
v.navigation&&v.navigation.buttonOptions,n=v.rangeSelector,r=c.buttons,v=x.lang,q=c.div,q=c.inputGroup,u=n.buttonTheme,w=n.buttonPosition||{},z=n.inputEnabled,A=u&&u.states,B=h.plotLeft,C,D=this.getPosition(),E=c.group,H=c.rendered;!1!==n.enabled&&(H||(c.group=E=g.g("range-selector-buttons").add(),c.zoomText=g.text(v.rangeSelectorZoom,e(w.x,B),15).css(n.labelStyle).add(E),C=e(w.x,B)+c.zoomText.getBBox().width+5,b(c.buttonOptions,function(a,b){r[b]=g.button(a.text,C,0,function(){c.clickButton(b);c.isActive= | ||
!0},u,A&&A.hover,A&&A.select,A&&A.disabled).attr({"text-align":"center"}).add(E);C+=r[b].width+e(n.buttonSpacing,5)}),!1!==z&&(c.div=q=G("div",null,{position:"relative",height:0,zIndex:1}),k.parentNode.insertBefore(q,k),c.inputGroup=q=g.g("input-group").add(),q.offset=0,c.drawInput("min"),c.drawInput("max"))),c.updateButtonStates(),E[H?"animate":"attr"]({translateY:D.buttonTop}),!1!==z&&(q.align(f({y:D.inputTop,width:q.offset,x:m&&D.inputTop<(m.y||0)+m.height-h.spacing[0]?-40:0},n.inputPosition), | ||
!0,h.spacingBox),p(z)||(h=E.getBBox(),q[q.alignAttr.translateX<h.x+h.width+10?"hide":"show"]()),c.setInputValue("min",a),c.setInputValue("max",d)),c.rendered=!0)},update:function(a){var c=this.chart;E(!0,c.options.rangeSelector,a);this.destroy();this.init(c)},destroy:function(){var a=this.minInput,b=this.maxInput,e;this.unMouseDown();this.unResize();n(this.buttons);a&&(a.onfocus=a.onblur=a.onchange=null);b&&(b.onfocus=b.onblur=b.onchange=null);for(e in this)this[e]&&"chart"!==e&&(this[e].destroy? | ||
this[e].destroy():this[e].nodeType&&d(this[e])),this[e]!==D.prototype[e]&&(this[e]=null)}};w.prototype.toFixedRange=function(a,b,d,f){var c=this.chart&&this.chart.fixedRange;a=e(d,this.translate(a,!0,!this.horiz));b=e(f,this.translate(b,!0,!this.horiz));d=c&&(b-a)/c;.7<d&&1.3>d&&(f?a=b-c:b=a+c);m(a)||(a=b=void 0);return{min:a,max:b}};w.prototype.minFromRange=function(){var a=this.range,b={month:"Month",year:"FullYear"}[a.type],d,f=this.max,g,k,v=function(a,c){var d=new Date(a);d["set"+b](d["get"+ | ||
b]()+c);return d.getTime()-a};m(a)?(d=f-a,k=a):(d=f+v(f,-a.count),this.chart&&(this.chart.fixedRange=f-d));g=e(this.dataMin,Number.MIN_VALUE);m(d)||(d=g);d<=g&&(d=g,void 0===k&&(k=v(d,a.count)),this.newMax=Math.min(d+k,this.dataMax));m(f)||(d=void 0);return d};z(B.prototype,"init",function(a,b,d){u(this,"init",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new D(this))});a.call(this,b,d)});B.prototype.callbacks.push(function(a){function c(){b=a.xAxis[0].getExtremes();m(b.min)&& | ||
d.render(b.min,b.max)}var b,d=a.rangeSelector,e,f;d&&(f=u(a.xAxis[0],"afterSetExtremes",function(a){d.render(a.min,a.max)}),e=u(a,"redraw",c),c());u(a,"destroy",function(){d&&(e(),f())})});a.RangeSelector=D})(I);(function(a){var D=a.arrayMax,u=a.arrayMin,w=a.Axis,B=a.Chart,H=a.defined,G=a.each,A=a.format,x=a.inArray,k=a.isNumber,p=a.isString,n=a.map,d=a.merge,b=a.pick,f=a.Point,q=a.Series,r=a.splat,m=a.SVGRenderer,E=a.wrap,e=q.prototype,g=e.init,C=e.processData,z=f.prototype.tooltipFormatter;a.StockChart= | ||
a.stockChart=function(c,e,f){var h=p(c)||c.nodeName,g=arguments[h?1:0],k=g.series,l=a.getOptions(),m,q=b(g.navigator&&g.navigator.enabled,l.navigator.enabled,!0),u=q?{startOnTick:!1,endOnTick:!1}:null,x={marker:{enabled:!1,radius:2}},w={shadow:!1,borderWidth:0};g.xAxis=n(r(g.xAxis||{}),function(a){return d({minPadding:0,maxPadding:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},l.xAxis,a,{type:"datetime",categories:null},u)});g.yAxis=n(r(g.yAxis||{}),function(a){m=b(a.opposite, | ||
!0);return d({labels:{y:-2},opposite:m,showLastLabel:!1,title:{text:null}},l.yAxis,a)});g.series=null;g=d({chart:{panning:!0,pinchType:"x"},navigator:{enabled:q},scrollbar:{enabled:b(l.scrollbar.enabled,!0)},rangeSelector:{enabled:b(l.rangeSelector.enabled,!0)},title:{text:null},tooltip:{shared:!0,crosshairs:!0},legend:{enabled:!1},plotOptions:{line:x,spline:x,area:x,areaspline:x,arearange:x,areasplinerange:x,column:w,columnrange:w,candlestick:w,ohlc:w}},g,{isStock:!0});g.series=k;return h?new B(c, | ||
g,f):new B(g,e)};E(w.prototype,"autoLabelAlign",function(a){var c=this.chart,b=this.options,c=c._labelPanes=c._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&"yAxis"===this.coll&&(b=b.top+","+b.height,!c[b]&&d.enabled)?(15===d.x&&(d.x=0),void 0===d.align&&(d.align="right"),c[b]=1,"right"):a.call(this,[].slice.call(arguments,1))});E(w.prototype,"getPlotLinePath",function(a,d,e,f,g,m){var c=this,h=this.isLinked&&!this.series?this.linkedParent.series:this.series,l=c.chart,t= | ||
l.renderer,q=c.left,r=c.top,u,y,w,F,z=[],A=[],B,C;if("colorAxis"===c.coll)return a.apply(this,[].slice.call(arguments,1));A=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=c.options[b];return k(a)?[l[b][a]]:p(a)?[l.get(a)]:n(h,function(a){return a[b]})}(c.coll);G(c.isXAxis?l.yAxis:l.xAxis,function(a){if(H(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=H(a.options[b])?l[b][a.options[b]]:l[b][0];c===b&&A.push(a)}});B=A.length?[]:[c.isXAxis?l.yAxis[0]:l.xAxis[0]]; | ||
G(A,function(a){-1===x(a,B)&&B.push(a)});C=b(m,c.translate(d,null,null,f));k(C)&&(c.horiz?G(B,function(a){var b;y=a.pos;F=y+a.len;u=w=Math.round(C+c.transB);if(u<q||u>q+c.width)g?u=w=Math.min(Math.max(q,u),q+c.width):b=!0;b||z.push("M",u,y,"L",w,F)}):G(B,function(a){var b;u=a.pos;w=u+a.len;y=F=Math.round(r+c.height-C);if(y<r||y>r+c.height)g?y=F=Math.min(Math.max(r,y),c.top+c.height):b=!0;b||z.push("M",u,y,"L",w,F)}));return 0<z.length?t.crispPolyLine(z,e||1):null});w.prototype.getPlotBandPath=function(a, | ||
b){b=this.getPlotLinePath(b,null,null,!0);a=this.getPlotLinePath(a,null,null,!0);var c=[],d;if(a&&b)if(a.toString()===b.toString())c=a,c.flat=!0;else for(d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],b[d+4],b[d+5],b[d+1],b[d+2],"z");else c=null;return c};m.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/2);return a};E(w.prototype,"hideCrosshair",function(a, | ||
b){a.call(this,b);this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});E(w.prototype,"drawCrosshair",function(a,d,e){var c,f;a.call(this,d,e);if(H(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){a=this.chart;var h=this.options.crosshair.label,g=this.horiz;c=this.opposite;f=this.left;var k=this.top,l=this.crossLabel,m,n=h.format,p="",q="inside"===this.options.tickPosition,r=!1!==this.crosshair.snap,u=0;d||(d=this.cross&&this.cross.e);m=g?"center":c?"right"===this.labelAlign? | ||
"right":"left":"left"===this.labelAlign?"left":"center";l||(l=this.crossLabel=a.renderer.label(null,null,null,h.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+this.series[0].colorIndex)).attr({align:h.align||m,padding:b(h.padding,8),r:b(h.borderRadius,3),zIndex:2}).add(this.labelGroup));g?(m=r?e.plotX+f:d.chartX,k+=c?0:this.height):(m=c?this.width+f:0,k=r?e.plotY+k:d.chartY);n||h.formatter||(this.isDatetimeAxis&&(p="%b %d, %Y"),n="{value"+(p?":"+p:"")+ | ||
"}");d=r?e[this.isXAxis?"x":"y"]:this.toValue(g?d.chartX:d.chartY);l.attr({text:n?A(n,{value:d}):h.formatter.call(this,d),x:m,y:k,visibility:"visible"});d=l.getBBox();if(g){if(q&&!c||!q&&c)k=l.y-d.height}else k=l.y-d.height/2;g?(c=f-d.x,f=f+this.width-d.x):(c="left"===this.labelAlign?f:0,f="right"===this.labelAlign?f+this.width:a.chartWidth);l.translateX<c&&(u=c-l.translateX);l.translateX+d.width>=f&&(u=-(l.translateX+d.width-f));l.attr({x:m+u,y:k,anchorX:g?m:this.opposite?0:a.chartWidth,anchorY:g? | ||
this.opposite?a.chartHeight:0:k+d.height/2})}});e.init=function(){g.apply(this,arguments);this.setCompare(this.options.compare)};e.setCompare=function(a){this.modifyValue="value"===a||"percent"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b="value"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};e.processData=function(){var a,b=-1,d,e,f,g;C.apply(this,arguments);if(this.xAxis&& | ||
this.processedYData)for(d=this.processedXData,e=this.processedYData,f=e.length,this.pointArrayMap&&(b=x("close",this.pointArrayMap),-1===b&&(b=x(this.pointValKey||"y",this.pointArrayMap))),a=0;a<f-1;a++)if(g=-1<b?e[a][b]:e[a],k(g)&&d[a+1]>=this.xAxis.min&&0!==g){this.compareValue=g;break}};E(e,"getExtremes",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=u(b),this.dataMax=D(b))});w.prototype.setCompare= | ||
function(a,d){this.isXAxis||(G(this.series,function(b){b.setCompare(a)}),b(d,!0)&&this.chart.redraw())};f.prototype.tooltipFormatter=function(c){c=c.replace("{point.change}",(0<this.change?"+":"")+a.numberFormat(this.change,b(this.series.tooltipOptions.changeDecimals,2)));return z.apply(this,[c])};E(q.prototype,"render",function(a){this.chart.is3d&&this.chart.is3d()||this.chart.polar||!this.xAxis||this.xAxis.isRadial||(!this.clipBox&&this.animate?(this.clipBox=d(this.chart.clipBox),this.clipBox.width= | ||
this.xAxis.len,this.clipBox.height=this.yAxis.len):this.chart[this.sharedClipKey]?this.chart[this.sharedClipKey].attr({width:this.xAxis.len,height:this.yAxis.len}):this.clipBox&&(this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len));a.call(this)})})(I)}); | ||
(function(I){"object"===typeof module&&module.exports?module.exports=I:I(Highcharts)})(function(I){(function(a){var C=a.addEvent,u=a.Axis,v=a.Chart,B=a.css,F=a.dateFormat,G=a.defined,H=a.each,x=a.extend,f=a.noop,p=a.Series,m=a.timeUnits;a=a.wrap;a(p.prototype,"init",function(a){var b;a.apply(this,Array.prototype.slice.call(arguments,1));(b=this.xAxis)&&b.options.ordinal&&C(this,"updatedData",function(){delete b.ordinalIndex})});a(u.prototype,"getTimeTicks",function(a,b,e,q,t,l,f,g){var k=0,d,y,c= | ||
{},h,n,D,r=[],z=-Number.MAX_VALUE,w=this.options.tickPixelInterval;if(!this.options.ordinal&&!this.options.breaks||!l||3>l.length||void 0===e)return a.call(this,b,e,q,t);n=l.length;for(d=0;d<n;d++){D=d&&l[d-1]>q;l[d]<e&&(k=d);if(d===n-1||l[d+1]-l[d]>5*f||D){if(l[d]>z){for(y=a.call(this,b,l[k],l[d],t);y.length&&y[0]<=z;)y.shift();y.length&&(z=y[y.length-1]);r=r.concat(y)}k=d+1}if(D)break}a=y.info;if(g&&a.unitRange<=m.hour){d=r.length-1;for(k=1;k<d;k++)F("%d",r[k])!==F("%d",r[k-1])&&(c[r[k]]="day", | ||
h=!0);h&&(c[r[0]]="day");a.higherRanks=c}r.info=a;if(g&&G(w)){g=a=r.length;d=[];var J;for(h=[];g--;)k=this.translate(r[g]),J&&(h[g]=J-k),d[g]=J=k;h.sort();h=h[Math.floor(h.length/2)];h<.6*w&&(h=null);g=r[a-1]>q?a-1:a;for(J=void 0;g--;)k=d[g],q=Math.abs(J-k),J&&q<.8*w&&(null===h||q<.8*h)?(c[r[g]]&&!c[r[g+1]]?(q=g+1,J=k):q=g,r.splice(q,1)):J=k}return r});x(u.prototype,{beforeSetTickPositions:function(){var a,b=[],e=!1,q,t=this.getExtremes(),l=t.min,f=t.max,g,k=this.isXAxis&&!!this.options.breaks,t= | ||
this.options.ordinal,A=this.chart.options.chart.ignoreHiddenSeries;if(t||k){H(this.series,function(g,c){if(!(A&&!1===g.visible||!1===g.takeOrdinalPosition&&!k)&&(b=b.concat(g.processedXData),a=b.length,b.sort(function(c,n){return c-n}),a))for(c=a-1;c--;)b[c]===b[c+1]&&b.splice(c,1)});a=b.length;if(2<a){q=b[1]-b[0];for(g=a-1;g--&&!e;)b[g+1]-b[g]!==q&&(e=!0);!this.options.keepOrdinalPadding&&(b[0]-l>q||f-b[b.length-1]>q)&&(e=!0)}e?(this.ordinalPositions=b,q=this.ordinal2lin(Math.max(l,b[0]),!0),g=Math.max(this.ordinal2lin(Math.min(f, | ||
b[b.length-1]),!0),1),this.ordinalSlope=f=(f-l)/(g-q),this.ordinalOffset=l-q*f):this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0}this.isOrdinal=t&&e;this.groupIntervalFactor=null},val2lin:function(a,b){var e=this.ordinalPositions;if(e){var d=e.length,t,l;for(t=d;t--;)if(e[t]===a){l=t;break}for(t=d-1;t--;)if(a>e[t]||0===t){a=(a-e[t])/(e[t+1]-e[t]);l=t+a;break}b=b?l:this.ordinalSlope*(l||0)+this.ordinalOffset}else b=a;return b},lin2val:function(a,b){var e=this.ordinalPositions;if(e){var d= | ||
this.ordinalSlope,t=this.ordinalOffset,l=e.length-1,f;if(b)0>a?a=e[0]:a>l?a=e[l]:(l=Math.floor(a),f=a-l);else for(;l--;)if(b=d*l+t,a>=b){d=d*(l+1)+t;f=(a-b)/(d-b);break}return void 0!==f&&void 0!==e[l]?e[l]+(f?f*(e[l+1]-e[l]):0):a}return a},getExtendedPositions:function(){var a=this.chart,b=this.series[0].currentDataGrouping,e=this.ordinalIndex,q=b?b.count+b.unitName:"raw",t=this.getExtremes(),l,m;e||(e=this.ordinalIndex={});e[q]||(l={series:[],chart:a,getExtremes:function(){return{min:t.dataMin, | ||
max:t.dataMax}},options:{ordinal:!0},val2lin:u.prototype.val2lin,ordinal2lin:u.prototype.ordinal2lin},H(this.series,function(g){m={xAxis:l,xData:g.xData,chart:a,destroyGroupedData:f};m.options={dataGrouping:b?{enabled:!0,forced:!0,approximation:"open",units:[[b.unitName,[b.count]]]}:{enabled:!1}};g.processData.apply(m);l.series.push(m)}),this.beforeSetTickPositions.apply(l),e[q]=l.ordinalPositions);return e[q]},getGroupIntervalFactor:function(a,b,e){var d;e=e.processedXData;var f=e.length,l=[];d= | ||
this.groupIntervalFactor;if(!d){for(d=0;d<f-1;d++)l[d]=e[d+1]-e[d];l.sort(function(a,g){return a-g});l=l[Math.floor(f/2)];a=Math.max(a,e[0]);b=Math.min(b,e[f-1]);this.groupIntervalFactor=d=f*l/(b-a)}return d},postProcessTickInterval:function(a){var b=this.ordinalSlope;return b?this.options.breaks?this.closestPointRange:a/(b/this.closestPointRange):a}});u.prototype.ordinal2lin=u.prototype.val2lin;a(v.prototype,"pan",function(a,b){var e=this.xAxis[0],d=b.chartX,f=!1;if(e.options.ordinal&&e.series.length){var l= | ||
this.mouseDownX,m=e.getExtremes(),g=m.dataMax,k=m.min,A=m.max,y=this.hoverPoints,c=e.closestPointRange,l=(l-d)/(e.translationSlope*(e.ordinalSlope||c)),h={ordinalPositions:e.getExtendedPositions()},c=e.lin2val,n=e.val2lin,D;h.ordinalPositions?1<Math.abs(l)&&(y&&H(y,function(c){c.setState()}),0>l?(y=h,D=e.ordinalPositions?e:h):(y=e.ordinalPositions?e:h,D=h),h=D.ordinalPositions,g>h[h.length-1]&&h.push(g),this.fixedRange=A-k,l=e.toFixedRange(null,null,c.apply(y,[n.apply(y,[k,!0])+l,!0]),c.apply(D,[n.apply(D, | ||
[A,!0])+l,!0])),l.min>=Math.min(m.dataMin,k)&&l.max<=Math.max(g,A)&&e.setExtremes(l.min,l.max,!0,!1,{trigger:"pan"}),this.mouseDownX=d,B(this.container,{cursor:"move"})):f=!0}else f=!0;f&&a.apply(this,Array.prototype.slice.call(arguments,1))});p.prototype.gappedPath=function(){var a=this.options.gapSize,b=this.points.slice(),e=b.length-1;if(a&&0<e)for(;e--;)b[e+1].x-b[e].x>this.closestPointRange*a&&b.splice(e+1,0,{isNull:!0});return this.getGraphPath(b)}})(I);(function(a){function C(){return Array.prototype.slice.call(arguments, | ||
1)}function u(a){a.apply(this);this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,v(this.pointArrayMap,["y"]))}var v=a.pick,B=a.wrap,F=a.each,G=a.extend,H=a.isArray,x=a.fireEvent,f=a.Axis,p=a.Series;G(f.prototype,{isInBreak:function(a,d){var b=a.repeat||Infinity,e=a.from,f=a.to-a.from;d=d>=e?(d-e)%b:b-(e-d)%b;return a.inclusive?d<=f:d<f&&0!==d},isInAnyBreak:function(a,d){var b=this.options.breaks,e=b&&b.length,f,t,l;if(e){for(;e--;)this.isInBreak(b[e],a)&&(f=!0,t||(t=v(b[e].showPoints,this.isXAxis? | ||
!1:!0)));l=f&&d?f&&!t:f}return l}});B(f.prototype,"setTickPositions",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var d=this.tickPositions,b=this.tickPositions.info,e=[],f;for(f=0;f<d.length;f++)this.isInAnyBreak(d[f])||e.push(d[f]);this.tickPositions=e;this.tickPositions.info=b}});B(f.prototype,"init",function(a,d,b){var e=this;b.breaks&&b.breaks.length&&(b.ordinal=!1);a.call(this,d,b);a=this.options.breaks;e.isBroken=H(a)&&!!a.length;e.isBroken&&(e.val2lin= | ||
function(a){var b=a,d,f;for(f=0;f<e.breakArray.length;f++)if(d=e.breakArray[f],d.to<=a)b-=d.len;else if(d.from>=a)break;else if(e.isInBreak(d,a)){b-=a-d.from;break}return b},e.lin2val=function(a){var b,d;for(d=0;d<e.breakArray.length&&!(b=e.breakArray[d],b.from>=a);d++)b.to<a?a+=b.len:e.isInBreak(b,a)&&(a+=b.len);return a},e.setExtremes=function(a,b,e,d,g){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(b);)b-=this.closestPointRange;f.prototype.setExtremes.call(this,a, | ||
b,e,d,g)},e.setAxisTranslation=function(a){f.prototype.setAxisTranslation.call(this,a);var b=e.options.breaks;a=[];var d=[],m=0,g,k,A=e.userMin||e.min,y=e.userMax||e.max,c=v(e.pointRangePadding,0),h,n;for(n in b)k=b[n],g=k.repeat||Infinity,e.isInBreak(k,A)&&(A+=k.to%g-A%g),e.isInBreak(k,y)&&(y-=y%g-k.from%g);for(n in b){k=b[n];h=k.from;for(g=k.repeat||Infinity;h-g>A;)h-=g;for(;h<A;)h+=g;for(;h<y;h+=g)a.push({value:h,move:"in"}),a.push({value:h+(k.to-k.from),move:"out",size:k.breakSize})}a.sort(function(c, | ||
r){return c.value===r.value?("in"===c.move?0:1)-("in"===r.move?0:1):c.value-r.value});b=0;h=A;for(n in a)k=a[n],b+="in"===k.move?1:-1,1===b&&"in"===k.move&&(h=k.value),0===b&&(d.push({from:h,to:k.value,len:k.value-h-(k.size||0)}),m+=k.value-h-(k.size||0));e.breakArray=d;e.unitLength=y-A-m+c;x(e,"afterBreaks");e.transA=e.options.staticScale?e.options.staticScale:(y-e.min+c)/e.unitLength*e.transA;c&&(e.minPixelPadding=e.transA*e.minPointOffset);e.min=A;e.max=y})});B(p.prototype,"generatePoints",function(a){a.apply(this, | ||
C(arguments));var d=this.xAxis,b=this.yAxis,e=this.points,f,x=e.length,l=this.options.connectNulls,m;if(d&&b&&(d.options.breaks||b.options.breaks))for(;x--;)f=e[x],m=null===f.y&&!1===l,m||!d.isInAnyBreak(f.x,!0)&&!b.isInAnyBreak(f.y,!0)||(e.splice(x,1),this.data[x]&&this.data[x].destroyElements())});a.Series.prototype.drawBreaks=function(a,d){var b=this,e=b.points,f,m,l,p;a&&F(d,function(g){f=a.breakArray||[];m=a.isXAxis?a.min:v(b.options.threshold,a.min);F(e,function(k){p=v(k["stack"+g.toUpperCase()], | ||
k[g]);F(f,function(g){l=!1;if(m<g.from&&p>g.to||m>g.from&&p<g.from)l="pointBreak";else if(m<g.from&&p>g.from&&p<g.to||m>g.from&&p>g.to&&p<g.from)l="pointInBreak";l&&x(a,l,{point:k,brk:g})})})})};B(a.seriesTypes.column.prototype,"drawPoints",u);B(a.Series.prototype,"drawPoints",u)})(I);(function(a){var C=a.arrayMax,u=a.arrayMin,v=a.Axis,B=a.defaultPlotOptions,F=a.defined,G=a.each,H=a.extend,x=a.format,f=a.isNumber,p=a.merge,m=a.pick,d=a.Point,b=a.Tooltip,e=a.wrap,q=a.Series.prototype,t=q.processData, | ||
l=q.generatePoints,E=q.destroy,g={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y", | ||
"%Y","-%Y"]}},k={line:{},spline:{},area:{},areaspline:{},column:{approximation:"sum",groupPixelWidth:10},arearange:{approximation:"range"},areasplinerange:{approximation:"range"},columnrange:{approximation:"range",groupPixelWidth:10},candlestick:{approximation:"ohlc",groupPixelWidth:10},ohlc:{approximation:"ohlc",groupPixelWidth:5}},A=a.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day", | ||
[1]],["week",[1]],["month",[1,3,6]],["year",null]],y={sum:function(c){var h=c.length,a;if(!h&&c.hasNulls)a=null;else if(h)for(a=0;h--;)a+=c[h];return a},average:function(c){var h=c.length;c=y.sum(c);f(c)&&h&&(c/=h);return c},open:function(c){return c.length?c[0]:c.hasNulls?null:void 0},high:function(c){return c.length?C(c):c.hasNulls?null:void 0},low:function(c){return c.length?u(c):c.hasNulls?null:void 0},close:function(c){return c.length?c[c.length-1]:c.hasNulls?null:void 0},ohlc:function(c,h,a, | ||
g){c=y.open(c);h=y.high(h);a=y.low(a);g=y.close(g);if(f(c)||f(h)||f(a)||f(g))return[c,h,a,g]},range:function(c,a){c=y.low(c);a=y.high(a);if(f(c)||f(a))return[c,a]}};q.groupData=function(c,a,g,k){var r=this.data,h=this.options.data,w=[],n=[],b=[],e=c.length,d,D,l=!!a,A=[[],[],[],[]];k="function"===typeof k?k:y[k];var L=this.pointArrayMap,x=L&&L.length,m,p=0;for(m=D=0;m<=e&&!(c[m]>=g[0]);m++);for(m;m<=e;m++){for(;(void 0!==g[p+1]&&c[m]>=g[p+1]||m===e)&&(d=g[p],this.dataGroupInfo={start:D,length:A[0].length}, | ||
D=k.apply(this,A),void 0!==D&&(w.push(d),n.push(D),b.push(this.dataGroupInfo)),D=m,A[0]=[],A[1]=[],A[2]=[],A[3]=[],p+=1,m!==e););if(m===e)break;if(L){d=this.cropStart+m;d=r&&r[d]||this.pointClass.prototype.applyOptions.apply({series:this},[h[d]]);var q,t;for(q=0;q<x;q++)t=d[L[q]],f(t)?A[q].push(t):null===t&&(A[q].hasNulls=!0)}else d=l?a[m]:null,f(d)?A[0].push(d):null===d&&(A[0].hasNulls=!0)}return[w,n,b]};q.processData=function(){var c=this.chart,a=this.options.dataGrouping,g=!1!==this.allowDG&&a&& | ||
m(a.enabled,c.options.isStock),k=this.visible||!c.options.chart.ignoreHiddenSeries,r;this.forceCrop=g;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==t.apply(this,arguments)&&g){this.destroyGroupedData();var z=this.processedXData,w=this.processedYData,b=c.plotSizeX,c=this.xAxis,e=c.options.ordinal,d=this.groupPixelWidth=c.getGroupPixelWidth&&c.getGroupPixelWidth();if(d){this.isDirty=r=!0;var f=c.getExtremes(),g=f.min,f=f.max,e=e&&c.getGroupIntervalFactor(g,f,this)||1,b=d*(f-g)/b*e,d=c.getTimeTicks(c.normalizeTimeTickInterval(b, | ||
a.units||A),Math.min(g,z[0]),Math.max(f,z[z.length-1]),c.options.startOfWeek,z,this.closestPointRange),z=q.groupData.apply(this,[z,w,d,a.approximation]),w=z[0],e=z[1];if(a.smoothed){a=w.length-1;for(w[a]=Math.min(w[a],f);a--&&0<a;)w[a]+=b/2;w[0]=Math.max(w[0],g)}this.currentDataGrouping=d.info;this.closestPointRange=d.info.totalRange;this.groupMap=z[2];F(w[0])&&w[0]<c.dataMin&&k&&(c.min===c.dataMin&&(c.min=w[0]),c.dataMin=w[0]);this.processedXData=w;this.processedYData=e}else this.currentDataGrouping= | ||
this.groupMap=null;this.hasGroupedData=r}};q.destroyGroupedData=function(){var c=this.groupedData;G(c||[],function(a,g){a&&(c[g]=a.destroy?a.destroy():null)});this.groupedData=null};q.generatePoints=function(){l.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};e(d.prototype,"update",function(c){this.dataGroup?a.error(24):c.apply(this,[].slice.call(arguments,1))});e(b.prototype,"tooltipFooterHeaderFormatter",function(c,h,g){var n=h.series,r=n.tooltipOptions, | ||
z=n.options.dataGrouping,w=r.xDateFormat,k,b=n.xAxis,d=a.dateFormat;return b&&"datetime"===b.options.type&&z&&f(h.key)?(c=n.currentDataGrouping,z=z.dateTimeLabelFormats,c?(b=z[c.unitName],1===c.count?w=b[0]:(w=b[1],k=b[2])):!w&&z&&(w=this.getXDateFormat(h,r,b)),w=d(w,h.key),k&&(w+=d(k,h.key+c.totalRange-1)),x(r[(g?"footer":"header")+"Format"],{point:H(h.point,{key:w}),series:n})):c.call(this,h,g)});q.destroy=function(){for(var c=this.groupedData||[],a=c.length;a--;)c[a]&&c[a].destroy();E.apply(this)}; | ||
e(q,"setOptions",function(c,a){c=c.call(this,a);var h=this.type,b=this.chart.options.plotOptions,r=B[h].dataGrouping;k[h]&&(r||(r=p(g,k[h])),c.dataGrouping=p(r,b.series&&b.series.dataGrouping,b[h].dataGrouping,a.dataGrouping));this.chart.options.isStock&&(this.requireSorting=!0);return c});e(v.prototype,"setScale",function(c){c.call(this);G(this.series,function(c){c.hasProcessed=!1})});v.prototype.getGroupPixelWidth=function(){var c=this.series,a=c.length,g,k=0,r=!1,z;for(g=a;g--;)(z=c[g].options.dataGrouping)&& | ||
(k=Math.max(k,z.groupPixelWidth));for(g=a;g--;)(z=c[g].options.dataGrouping)&&c[g].hasProcessed&&(a=(c[g].processedXData||c[g].data).length,c[g].groupPixelWidth||a>this.chart.plotSizeX/k||a&&z.forced)&&(r=!0);return r?k:0};v.prototype.setDataGrouping=function(c,a){var g;a=m(a,!0);c||(c={forced:!1,units:null});if(this instanceof v)for(g=this.series.length;g--;)this.series[g].update({dataGrouping:c},!1);else G(this.chart.options.series,function(a){a.dataGrouping=c},!1);a&&this.chart.redraw()}})(I); | ||
(function(a){var C=a.each,u=a.Point,v=a.seriesType,B=a.seriesTypes;v("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan class\x3d"highcharts-color-{point.colorIndex}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'},threshold:null},{pointArrayMap:["open","high","low","close"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:"high",translate:function(){var a= | ||
this,u=a.yAxis,v=!!a.modifyValue,x=["plotOpen","yBottom","plotClose"];B.column.prototype.translate.apply(a);C(a.points,function(f){C([f.open,f.low,f.close],function(p,m){null!==p&&(v&&(p=a.modifyValue(p)),f[x[m]]=u.toPixels(p,!0))})})},drawPoints:function(){var a=this,u=a.chart;C(a.points,function(v){var x,f,p,m,d=v.graphic,b,e=!d;void 0!==v.plotY&&(d||(v.graphic=d=u.renderer.path().add(a.group)),f=d.strokeWidth()%2/2,b=Math.round(v.plotX)-f,p=Math.round(v.shapeArgs.width/2),m=["M",b,Math.round(v.yBottom), | ||
"L",b,Math.round(v.plotY)],null!==v.open&&(x=Math.round(v.plotOpen)+f,m.push("M",b,x,"L",b-p,x)),null!==v.close&&(x=Math.round(v.plotClose)+f,m.push("M",b,x,"L",b+p,x)),d[e?"attr":"animate"]({d:m}).addClass(v.getClassName(),!0))})},animate:null},{getClassName:function(){return u.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}})})(I);(function(a){var C=a.defaultPlotOptions,u=a.each,v=a.merge;a=a.seriesType;a("candlestick","ohlc",v(C.column, | ||
{states:{hover:{lineWidth:2}},tooltip:C.ohlc.tooltip,threshold:null}),{drawPoints:function(){var a=this,v=a.chart;u(a.points,function(u){var B=u.graphic,x,f,p,m,d,b,e,q=!B;void 0!==u.plotY&&(B||(u.graphic=B=v.renderer.path().add(a.group)),d=B.strokeWidth()%2/2,b=Math.round(u.plotX)-d,x=u.plotOpen,f=u.plotClose,p=Math.min(x,f),x=Math.max(x,f),e=Math.round(u.shapeArgs.width/2),f=Math.round(p)!==Math.round(u.plotY),m=x!==u.yBottom,p=Math.round(p)+d,x=Math.round(x)+d,d=[],d.push("M",b-e,x,"L",b-e,p,"L", | ||
b+e,p,"L",b+e,x,"Z","M",b,p,"L",b,f?Math.round(u.plotY):p,"M",b,x,"L",b,m?Math.round(u.yBottom):x),B[q?"attr":"animate"]({d:d}).addClass(u.getClassName(),!0))})}})})(I);(function(a){var C=a.addEvent,u=a.each,v=a.noop,B=a.seriesType,F=a.seriesTypes,G=a.TrackerMixin,H=a.SVGRenderer.prototype.symbols;B("flags","column",{pointRange:0,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}\x3cbr/\x3e"},threshold:null,y:-30},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1, | ||
trackerGroups:["markerGroup"],forceCrop:!0,init:a.Series.prototype.init,translate:function(){F.column.prototype.translate.apply(this);var a=this.options,f=this.chart,p=this.points,m=p.length-1,d,b,e=a.onSeries;d=e&&f.get(e);var a=a.onKey||"y",e=d&&d.options.step,q=d&&d.points,t=q&&q.length,l=this.xAxis,v=l.getExtremes(),g=0,k,A,y;if(d&&d.visible&&t)for(g=(d.pointXOffset||0)+(d.barW||0)/2,d=d.currentDataGrouping,A=q[t-1].x+(d?d.totalRange:0),p.sort(function(a,g){return a.x-g.x}),a="plot"+a[0].toUpperCase()+ | ||
a.substr(1);t--&&p[m]&&!(d=p[m],k=q[t],k.x<=d.x&&void 0!==k[a]&&(d.x<=A&&(d.plotY=k[a],k.x<d.x&&!e&&(y=q[t+1])&&void 0!==y[a]&&(d.plotY+=(d.x-k.x)/(y.x-k.x)*(y[a]-k[a]))),m--,t++,0>m)););u(p,function(a,h){var c;void 0===a.plotY&&(a.x>=v.min&&a.x<=v.max?a.plotY=f.chartHeight-l.bottom-(l.opposite?l.height:0)+l.offset-f.plotTop:a.shapeArgs={});a.plotX+=g;(b=p[h-1])&&b.plotX===a.plotX&&(void 0===b.stackIndex&&(b.stackIndex=0),c=b.stackIndex+1);a.stackIndex=c})},drawPoints:function(){var a=this.points, | ||
f=this.chart,p=f.renderer,m,d,b=this.options,e=b.y,q,u,l,v,g,k,A,y=this.yAxis;for(u=a.length;u--;)l=a[u],A=l.plotX>this.xAxis.len,m=l.plotX,v=l.stackIndex,q=l.options.shape||b.shape,d=l.plotY,void 0!==d&&(d=l.plotY+e-(void 0!==v&&v*b.stackDistance)),g=v?void 0:l.plotX,k=v?void 0:l.plotY,v=l.graphic,void 0!==d&&0<=m&&!A?(v||(v=l.graphic=p.label("",null,null,q,null,null,b.useHTML).attr({align:"flag"===q?"left":"center",width:b.width,height:b.height,"text-align":b.textAlign}).addClass("highcharts-point").add(this.markerGroup)), | ||
0<m&&(m-=v.strokeWidth()%2),v.attr({text:l.options.title||b.title||"A",x:m,y:d,anchorX:g,anchorY:k}),l.tooltipPos=f.inverted?[y.len+y.pos-f.plotLeft-d,this.xAxis.len-m]:[m,d+y.pos-f.plotTop]):v&&(l.graphic=v.destroy())},drawTracker:function(){var a=this.points;G.drawTrackerPoint.apply(this);u(a,function(f){var p=f.graphic;p&&C(p.element,"mouseover",function(){0<f.stackIndex&&!f.raised&&(f._y=p.y,p.attr({y:f._y-8}),f.raised=!0);u(a,function(a){a!==f&&a.raised&&a.graphic&&(a.graphic.attr({y:a._y}), | ||
a.raised=!1)})})})},animate:v,buildKDTree:v,setClip:v});H.flag=function(a,f,p,m,d){return["M",d&&d.anchorX||a,d&&d.anchorY||f,"L",a,f+m,a,f,a+p,f,a+p,f+m,a,f+m,"Z"]};u(["circle","square"],function(a){H[a+"pin"]=function(f,p,m,d,b){var e=b&&b.anchorX;b=b&&b.anchorY;"circle"===a&&d>m&&(f-=Math.round((d-m)/2),m=d);f=H[a](f,p,m,d);e&&b&&f.push("M",e,p>b?p:p+d,"L",e,b);return f}})})(I);(function(a){function C(a,k,b){this.init(a,k,b)}var u=a.addEvent,v=a.Axis,B=a.correctFloat,F=a.defaultOptions,G=a.defined, | ||
H=a.destroyObjectProperties,x=a.doc,f=a.each,p=a.fireEvent,m=a.hasTouch,d=a.isTouchDevice,b=a.merge,e=a.pick,q=a.removeEvent,t=a.wrap,l,E={height:d?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:a.svg&&!d,margin:10,minWidth:6,step:.2,zIndex:3};F.scrollbar=b(!0,E,F.scrollbar);a.swapXY=l=function(a,k){var g=a.length,b;if(k)for(k=0;k<g;k+=3)b=a[k+1],a[k+1]=a[k+2],a[k+2]=b;return a};C.prototype={init:function(a,k,d){this.scrollbarButtons=[];this.renderer=a;this.userOptions=k;this.options=b(E, | ||
k);this.chart=d;this.size=e(this.options.size,this.options.height);k.enabled&&(this.render(),this.initEvents(),this.addEvents())},render:function(){var a=this.renderer,k=this.options,b=this.size,d;this.group=d=a.g("scrollbar").attr({zIndex:k.zIndex,translateY:-99999}).add();this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:k.trackBorderRadius||0,height:b,width:b}).add(d);this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup= | ||
a.g().add(d);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:b,width:b,r:k.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles=a.path(l(["M",-3,b/4,"L",-3,2*b/3,"M",0,b/4,"L",0,2*b/3,"M",3,b/4,"L",3,2*b/3],k.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0); | ||
this.drawScrollbarButton(1)},position:function(a,b,d,e){var c=this.options.vertical,g=0,k=this.rendered?"animate":"attr";this.x=a;this.y=b+this.trackBorderWidth;this.width=d;this.xOffset=this.height=e;this.yOffset=g;c?(this.width=this.yOffset=d=g=this.size,this.xOffset=b=0,this.barWidth=e-2*d,this.x=a+=this.options.margin):(this.height=this.xOffset=e=b=this.size,this.barWidth=d-2*e,this.y+=this.options.margin);this.group[k]({translateX:a,translateY:this.y});this.track[k]({width:d,height:e});this.scrollbarButtons[1][k]({translateX:c? | ||
0:d-b,translateY:c?e-g:0})},drawScrollbarButton:function(a){var g=this.renderer,b=this.scrollbarButtons,d=this.options,c=this.size,h;h=g.g().add(this.group);b.push(h);h=g.rect().addClass("highcharts-scrollbar-button").add(h);h.attr(h.crisp({x:-.5,y:-.5,width:c+1,height:c+1,r:d.buttonBorderRadius},h.strokeWidth()));g.path(l(["M",c/2+(a?-1:1),c/2-3,"L",c/2+(a?-1:1),c/2+3,"L",c/2+(a?2:-2),c/2],d.vertical)).addClass("highcharts-scrollbar-arrow").add(b[a])},setRange:function(a,b){var g=this.options,k= | ||
g.vertical,c=g.minWidth,h=this.barWidth,d,e,r=this.rendered&&!this.hasDragged?"animate":"attr";G(h)&&(a=Math.max(a,0),d=h*a,this.calculatedWidth=e=B(h*Math.min(b,1)-d),e<c&&(d=(h-c+e)*a,e=c),c=Math.floor(d+this.xOffset+this.yOffset),h=e/2-.5,this.from=a,this.to=b,k?(this.scrollbarGroup[r]({translateY:c}),this.scrollbar[r]({height:e}),this.scrollbarRifles[r]({translateY:h}),this.scrollbarTop=c,this.scrollbarLeft=0):(this.scrollbarGroup[r]({translateX:c}),this.scrollbar[r]({width:e}),this.scrollbarRifles[r]({translateX:h}), | ||
this.scrollbarLeft=c,this.scrollbarTop=0),12>=e?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===g.showFull&&(0>=a&&1<=b?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(b){var d=a.chart.pointer.normalize(b),k=a.options.vertical?"chartY":"chartX",c=a.initPositions;!a.grabbedCenter||b.touches&&0===b.touches[0][k]||(d=a.cursorToScrollbarPosition(d)[k],k=a[k],k=d-k,a.hasDragged=!0,a.updatePosition(c[0]+k,c[1]+k),a.hasDragged&& | ||
p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b}))};a.mouseUpHandler=function(b){a.hasDragged&&p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:b.type,DOMEvent:b});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(b){b=a.chart.pointer.normalize(b);b=a.cursorToScrollbarPosition(b);a.chartX=b.chartX;a.chartY=b.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter=!0};a.buttonToMinClick=function(b){var d=B(a.to-a.from)*a.options.step; | ||
a.updatePosition(B(a.from-d),B(a.to-d));p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.buttonToMaxClick=function(b){var d=(a.to-a.from)*a.options.step;a.updatePosition(a.from+d,a.to+d);p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})};a.trackClick=function(b){var d=a.chart.pointer.normalize(b),e=a.to-a.from,c=a.y+a.scrollbarTop,h=a.x+a.scrollbarLeft;a.options.vertical&&d.chartY>c||!a.options.vertical&&d.chartX>h?a.updatePosition(a.from+e,a.to+e):a.updatePosition(a.from- | ||
e,a.to-e);p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:b})}},cursorToScrollbarPosition:function(a){var b=this.options,b=b.minWidth>this.calculatedWidth?b.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-b),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-b)}},updatePosition:function(a,b){1<b&&(a=B(1-B(b-a)),b=1);0>a&&(b=B(b-a),a=0);this.from=a;this.to=b},update:function(a){this.destroy();this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a= | ||
this.options.inverted?[1,0]:[0,1],b=this.scrollbarButtons,d=this.scrollbarGroup.element,e=this.mouseDownHandler,c=this.mouseMoveHandler,h=this.mouseUpHandler,a=[[b[a[0]].element,"click",this.buttonToMinClick],[b[a[1]].element,"click",this.buttonToMaxClick],[this.track.element,"click",this.trackClick],[d,"mousedown",e],[x,"mousemove",c],[x,"mouseup",h]];m&&a.push([d,"touchstart",e],[x,"touchmove",c],[x,"touchend",h]);f(a,function(a){u.apply(null,a)});this._events=a},removeEvents:function(){f(this._events, | ||
function(a){q.apply(null,a)});this._events=void 0},destroy:function(){var a=this.chart.scroller;this.removeEvents();f(["track","scrollbarRifles","scrollbar","scrollbarGroup","group"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,H(a.scrollbarButtons))}};t(v.prototype,"init",function(a){var b=this;a.apply(b,[].slice.call(arguments,1));b.options.scrollbar&&b.options.scrollbar.enabled&&(b.options.scrollbar.vertical=!b.horiz,b.options.startOnTick= | ||
b.options.endOnTick=!1,b.scrollbar=new C(b.chart.renderer,b.options.scrollbar,b.chart),u(b.scrollbar,"changed",function(a){var d=Math.min(e(b.options.min,b.min),b.min,b.dataMin),c=Math.max(e(b.options.max,b.max),b.max,b.dataMax)-d,h;b.horiz&&!b.reversed||!b.horiz&&b.reversed?(h=d+c*this.to,d+=c*this.from):(h=d+c*(1-this.from),d+=c*(1-this.to));b.setExtremes(d,h,!0,!1,a)}))});t(v.prototype,"render",function(a){var b=Math.min(e(this.options.min,this.min),this.min,this.dataMin),d=Math.max(e(this.options.max, | ||
this.max),this.max,this.dataMax),f=this.scrollbar,c;a.apply(this,[].slice.call(arguments,1));f&&(this.horiz?f.position(this.left,this.top+this.height+this.offset+2+(this.opposite?0:this.axisTitleMargin),this.width,this.height):f.position(this.left+this.width+2+this.offset+(this.opposite?this.axisTitleMargin:0),this.top,this.width,this.height),isNaN(b)||isNaN(d)||!G(this.min)||!G(this.max)?f.setRange(0,0):(c=(this.min-b)/(d-b),b=(this.max-b)/(d-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed? | ||
f.setRange(c,b):f.setRange(1-b,1-c)))});t(v.prototype,"getOffset",function(a){var b=this.horiz?2:1,d=this.scrollbar;a.apply(this,[].slice.call(arguments,1));d&&(this.chart.axisOffset[b]+=d.size+d.options.margin)});t(v.prototype,"destroy",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,[].slice.call(arguments,1))});a.Scrollbar=C})(I);(function(a){function C(a){this.init(a)}var u=a.addEvent,v=a.Axis,B=a.Chart,F=a.defaultOptions,G=a.defined,H=a.destroyObjectProperties, | ||
x=a.doc,f=a.each,p=a.erase,m=a.error,d=a.extend,b=a.grep,e=a.hasTouch,q=a.isNumber,t=a.isObject,l=a.merge,E=a.pick,g=a.removeEvent,k=a.Scrollbar,A=a.Series,y=a.seriesTypes,c=a.wrap,h=a.swapXY,n=[].concat(a.defaultDataGroupingUnits),D=function(a){var c=b(arguments,q);if(c.length)return Math[a].apply(0,c)};n[4]=["day",[1,2,3,4]];n[5]=["week",[1,2,3]];d(F,{navigator:{height:40,margin:25,maskInside:!0,series:{type:void 0===y.areaspline?"line":"areaspline",compare:null,dataGrouping:{approximation:"average", | ||
enabled:!0,groupPixelWidth:2,smoothed:!0,units:n},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},pointRange:0,shadow:!1,threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,tickPixelInterval:200,labels:{align:"left",x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null}, | ||
tickLength:0,tickWidth:0}}});C.prototype={drawHandle:function(a,c,b,h){this.handles[c][h](b?{translateX:Math.round(this.left+this.height/2-8),translateY:Math.round(this.top+parseInt(a,10)+.5)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-8)})},getHandlePath:function(a){return h(["M",-4.5,.5,"L",3.5,.5,"L",3.5,15.5,"L",-4.5,15.5,"L",-4.5,.5,"M",-1.5,4,"L",-1.5,12,"M",.5,4,"L",.5,12],a)},drawOutline:function(a,c,b,h){var r=this.navigatorOptions.maskInside, | ||
d=this.outline.strokeWidth(),w=d/2,d=d%2/2,z=this.outlineHeight,e=this.scrollbarHeight,n=this.size,f=this.left-e,g=this.top;b?(f-=w,b=g+c+d,c=g+a+d,a=["M",f+z,g-e-d,"L",f+z,b,"L",f,b,"L",f,c,"L",f+z,c,"L",f+z,g+n+e].concat(r?["M",f+z,b-w,"L",f+z,c+w]:[])):(a+=f+e-d,c+=f+e-d,g+=w,a=["M",f,g,"L",a,g,"L",a,g+z,"L",c,g+z,"L",c,g,"L",f+n+2*e,g].concat(r?["M",a-w,g,"L",c+w,g]:[]));this.outline[h]({d:a})},drawMasks:function(a,c,b,h){var r=this.left,d=this.top,w=this.height,z,e,n,g;b?(n=[r,r,r],g=[d,d+a, | ||
d+c],e=[w,w,w],z=[a,c-a,this.size-c]):(n=[r,r+a,r+c],g=[d,d,d],e=[a,c-a,this.size-c],z=[w,w,w]);f(this.shades,function(a,c){a[h]({x:n[c],y:g[c],width:e[c],height:z[c]})})},renderElements:function(){var a=this,c=a.navigatorOptions.maskInside,b=a.chart,d=b.inverted,h=b.renderer,e;a.navigatorGroup=e=h.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();f([!c,c,!c],function(c,b){a.shades[b]=h.rect().addClass("highcharts-navigator-mask"+(1===b?"-inside":"-outside")).add(e)});a.outline=h.path().addClass("highcharts-navigator-outline").add(e); | ||
f([0,1],function(c){a.handles[c]=h.path(a.getHandlePath(d)).attr({zIndex:7-c}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][c]).add(e)})},update:function(a){this.destroy();l(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(a,c,b,d){var r=this.chart,h,e,w=this.scrollbarHeight,z,n=this.xAxis;h=this.navigatorEnabled;var f,g=this.rendered;e=r.inverted;var D=r.xAxis[0].minRange;if(!this.hasDragged||G(b)){if(!q(a)||!q(c))if(g)b= | ||
0,d=n.width;else return;this.left=E(n.left,r.plotLeft+w+(e?r.plotWidth:0));this.size=f=z=E(n.len,(e?r.plotHeight:r.plotWidth)-2*w);r=e?w:z+2*w;b=E(b,n.toPixels(a,!0));d=E(d,n.toPixels(c,!0));q(b)&&Infinity!==Math.abs(b)||(b=0,d=r);a=n.toValue(b,!0);c=n.toValue(d,!0);if(Math.abs(c-a)<D)if(this.grabbedLeft)b=n.toPixels(c-D,!0);else if(this.grabbedRight)d=n.toPixels(a+D,!0);else return;this.zoomedMax=Math.min(Math.max(b,d,0),f);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth: | ||
Math.min(b,d),0),f);this.range=this.zoomedMax-this.zoomedMin;f=Math.round(this.zoomedMax);b=Math.round(this.zoomedMin);h&&(this.navigatorGroup.attr({visibility:"visible"}),g=g&&!this.hasDragged?"animate":"attr",this.drawMasks(b,f,e,g),this.drawOutline(b,f,e,g),this.drawHandle(b,0,e,g),this.drawHandle(f,1,e,g));this.scrollbar&&(e?(e=this.top-w,h=this.left-w+(h?0:this.height),w=z+2*w):(e=this.top+(h?this.height:-w),h=this.left-w),this.scrollbar.position(h,e,r,w),this.scrollbar.setRange(b/z,f/z));this.rendered= | ||
!0}},addMouseEvents:function(){var a=this,c=a.chart,b=c.container,d=[],h,n,f=e?["touchstart","touchmove","touchend"]:["mousedown","mousemove","mouseup"];a.mouseMoveHandler=h=function(c){a.onMouseMove(c)};a.mouseUpHandler=n=function(c){a.onMouseUp(c)};d=a.getPartsEvents(f[0]);d.push(u(b,f[1],h),u(x,f[2],n));a.eventsToUnbind=d;a.series&&a.series[0]&&d.push(u(a.series[0].xAxis,"foundExtremes",function(){c.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var c=this,b=[];f(["shades", | ||
"handles"],function(r){f(c[r],function(d,h){b.push(u(d.element,a,function(a){c[r+"Mousedown"](a,h)}))})});return b},shadesMousedown:function(a,c){a=this.chart.pointer.normalize(a);var b=this.chart,r=this.xAxis,d=this.zoomedMin,h=this.left,e=this.size,z=this.range,n=a.chartX,f;b.inverted&&(n=a.chartY,h=this.top);1===c?(this.grabbedCenter=n,this.fixedWidth=z,this.dragOffset=n-d):(a=n-h-z/2,0===c?a=Math.max(0,a):2===c&&a+z>=e&&(a=e-z,f=this.getUnionExtremes().dataMax),a!==d&&(this.fixedWidth=z,c=r.toFixedRange(a, | ||
a+z,null,f),b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,c){this.chart.pointer.normalize(a);a=this.chart;var b=a.xAxis[0],r=a.inverted&&!b.reversed||!a.inverted&&b.reversed;0===c?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=r?b.min:b.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=r?b.max:b.min);a.fixedRange=null},onMouseMove:function(a){var c=this,b=c.chart, | ||
d=c.left,r=c.navigatorSize,h=c.range,e=c.dragOffset,n=b.inverted;a.touches&&0===a.touches[0].pageX||(a=b.pointer.normalize(a),b=a.chartX,n&&(d=c.top,b=a.chartY),c.grabbedLeft?(c.hasDragged=!0,c.render(0,0,b-d,c.otherHandlePos)):c.grabbedRight?(c.hasDragged=!0,c.render(0,0,c.otherHandlePos,b-d)):c.grabbedCenter&&(c.hasDragged=!0,b<e?b=e:b>r+e-h&&(b=r+e-h),c.render(0,0,b-e,b-e+h)),c.hasDragged&&c.scrollbar&&c.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){c.onMouseUp(a)},0)))}, | ||
onMouseUp:function(a){var c=this.chart,b=this.xAxis,d=this.scrollbar,h,r,e=a.DOMEvent||a;(!this.hasDragged||d&&d.hasDragged)&&"scrollbar"!==a.trigger||(this.zoomedMin===this.otherHandlePos?h=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(r=this.fixedExtreme),this.zoomedMax===this.size&&(r=this.getUnionExtremes().dataMax),b=b.toFixedRange(this.zoomedMin,this.zoomedMax,h,r),G(b.min)&&c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,this.hasDragged?!1:null,{trigger:"navigator", | ||
triggerOp:"navigator-drag",DOMEvent:e}));"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(f(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&!1!==this.navigatorOptions.adaptToUpdatedData&&(f(a,function(a){g(a, | ||
"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&g(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,d=b.navigator,h=d.enabled,e=b.scrollbar,r=e.enabled,b=h?d.height:0,n=r?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=n;this.scrollbarEnabled=r;this.navigatorEnabled=h;this.navigatorOptions=d;this.scrollbarOptions=e;this.outlineHeight=b+n;this.opposite=E(d.opposite,!h&&a.inverted);var f= | ||
this,e=f.baseSeries,r=a.xAxis.length,g=a.yAxis.length,m=e&&e[0]&&e[0].xAxis||a.xAxis[0];a.extraMargin={type:f.opposite?"plotTop":"marginBottom",value:(h||!a.inverted?f.outlineHeight:0)+d.margin};a.inverted&&(a.extraMargin.type=f.opposite?"marginRight":"plotLeft");a.isDirtyBox=!0;f.navigatorEnabled?(f.xAxis=new v(a,l({breaks:m.options.breaks,ordinal:m.options.ordinal},d.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:r,offset:0,keepOrdinalPadding:!0,startOnTick:!1, | ||
endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[n,0,-n,0],width:b}:{offsets:[0,-n,0,n],height:b})),f.yAxis=new v(a,l(d.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:g,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||d.series.data?f.addBaseSeries():0===a.series.length&&c(a,"redraw",function(c,b){0<a.series.length&&!f.series&&(f.setBaseSeries(),a.redraw=c);c.call(a,b)}),f.renderElements(),f.addMouseEvents()):f.xAxis={translate:function(c,b){var d=a.xAxis[0], | ||
h=d.getExtremes(),e=d.len-2*n,r=D("min",d.options.min,h.dataMin),d=D("max",d.options.max,h.dataMax)-r;return b?c*d/e+r:e*(c-r)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)},toFixedRange:v.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=f.scrollbar=new k(a.renderer,l(a.options.scrollbar,{margin:f.navigatorEnabled?0:10,vertical:a.inverted}),a),u(f.scrollbar,"changed",function(c){var b=f.size,d=b*this.to,b=b*this.from;f.hasDragged= | ||
f.scrollbar.hasDragged;f.render(0,0,b,d);(a.options.scrollbar.liveRedraw||"mousemove"!==c.DOMType)&&setTimeout(function(){f.onMouseUp(c)})}));f.addBaseSeriesEvents();f.addChartEvents()},getUnionExtremes:function(a){var c=this.chart.xAxis[0],b=this.xAxis,d=b.options,h=c.options,e;a&&null===c.dataMin||(e={dataMin:E(d&&d.min,D("min",h.min,c.dataMin,b.dataMin,b.min)),dataMax:E(d&&d.max,D("max",h.max,c.dataMax,b.dataMax,b.max))});return e},setBaseSeries:function(a){var c=this.chart,b;a=a||c.options&&c.options.navigator.baseSeries|| | ||
0;this.series&&(this.removeBaseSeriesEvents(),f(this.series,function(a){a.destroy()}));b=this.baseSeries=[];f(c.series||[],function(c,d){(c.options.showInNavigator||(d===a||c.options.id===a)&&!1!==c.options.showInNavigator)&&b.push(c)});this.xAxis&&!this.xAxis.fake&&this.addBaseSeries()},addBaseSeries:function(){var a=this,c=a.chart,b=a.series=[],d=a.baseSeries,h,e,n=a.navigatorOptions.series,g,D={enableMouseTracking:!1,index:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis", | ||
showInLegend:!1,stacking:!1,isInternal:!0,visible:!0};d?f(d,function(d,r){D.name="Navigator "+(r+1);h=d.options||{};g=h.navigatorOptions||{};e=l(h,D,n,g);r=g.data||n.data;a.hasNavigatorData=a.hasNavigatorData||!!r;e.data=r||h.data&&h.data.slice(0);d.navigatorSeries=c.initSeries(e);b.push(d.navigatorSeries)}):(e=l(n,D),e.data=n.data,a.hasNavigatorData=!!e.data,b.push(c.initSeries(e)));this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,c=a.baseSeries||[];c[0]&&c[0].xAxis&&u(c[0].xAxis, | ||
"foundExtremes",this.modifyBaseAxisExtremes);!1!==this.navigatorOptions.adaptToUpdatedData&&f(c,function(c){c.xAxis&&u(c,"updatedData",this.updatedDataHandler);u(c,"remove",function(){this.navigatorSeries&&(p(a.series,this.navigatorSeries),this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a=this.xAxis,c;a.getExtremes&&(!(c=this.getUnionExtremes(!0))||c.dataMin===a.min&&c.dataMax===a.max||(a.min=c.dataMin,a.max=c.dataMax))},modifyBaseAxisExtremes:function(){var a= | ||
this.chart.navigator,c=this.getExtremes(),b=c.dataMin,d=c.dataMax,c=c.max-c.min,h=a.stickToMin,e=a.stickToMax,f,n,g=a.series&&a.series[0],D=!!this.setExtremes;this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger||(h&&(n=b,f=n+c),e&&(f=d,h||(n=Math.max(f-c,g&&g.xData?g.xData[0]:-Number.MAX_VALUE))),D&&(h||e)&&q(n)&&(this.min=this.userMin=n,this.max=this.userMax=f));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,c=this.navigatorSeries;a.stickToMin= | ||
q(this.xAxis.min)&&this.xAxis.min<=this.xData[0];a.stickToMax=Math.round(a.zoomedMax)>=Math.round(a.size);c&&!a.hasNavigatorData&&(c.options.pointStart=this.xData[0],c.setData(this.options.data,!1,null,!1))},addChartEvents:function(){u(this.chart,"redraw",function(){var a=this.navigator,c=a&&(a.baseSeries&&a.baseSeries[0]&&a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);c&&a.render(c.min,c.max)})},destroy:function(){this.removeEvents();this.xAxis&&(p(this.chart.xAxis,this.xAxis),p(this.chart.axes, | ||
this.xAxis));this.yAxis&&(p(this.chart.yAxis,this.yAxis),p(this.chart.axes,this.yAxis));f(this.series||[],function(a){a.destroy&&a.destroy()});f("series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" "),function(a){this[a]&&this[a].destroy&&this[a].destroy();this[a]=null},this);f([this.handles],function(a){H(a)},this)}};a.Navigator=C;c(v.prototype,"zoom",function(a,c,b){var d=this.chart,h=d.options,e=h.chart.zoomType,n=h.navigator, | ||
h=h.rangeSelector,f;this.isXAxis&&(n&&n.enabled||h&&h.enabled)&&("x"===e?d.resetZoomButton="blocked":"y"===e?f=!1:"xy"===e&&(d=this.previousZoom,G(c)?this.previousZoom=[this.min,this.max]:d&&(c=d[0],b=d[1],delete this.previousZoom)));return void 0!==f?f:a.call(this,c,b)});c(B.prototype,"init",function(a,c,b){u(this,"beforeRender",function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new C(this)});a.call(this,c,b)});c(B.prototype,"setChartSize",function(a){var c= | ||
this.legend,b=this.navigator,d,h,e,f;a.apply(this,[].slice.call(arguments,1));b&&(h=c.options,e=b.xAxis,f=b.yAxis,d=b.scrollbarHeight,this.inverted?(b.left=b.opposite?this.chartWidth-d-b.height:this.spacing[3]+d,b.top=this.plotTop+d):(b.left=this.plotLeft+d,b.top=b.navigatorOptions.top||this.chartHeight-b.height-d-this.spacing[2]-("bottom"===h.verticalAlign&&h.enabled&&!h.floating?c.legendHeight+E(h.margin,10):0)),e&&f&&(this.inverted?e.options.left=f.options.left=b.left:e.options.top=f.options.top= | ||
b.top,e.setAxisSize(),f.setAxisSize()))});c(A.prototype,"addPoint",function(a,c,b,d,h){var e=this.options.turboThreshold;e&&this.xData.length>e&&t(c,!0)&&this.chart.navigator&&m(20,!0);a.call(this,c,b,d,h)});c(B.prototype,"addSeries",function(a,c,b,d){a=a.call(this,c,!1,d);this.navigator&&this.navigator.setBaseSeries();E(b,!0)&&this.redraw();return a});c(A.prototype,"update",function(a,c,b){a.call(this,c,!1);this.chart.navigator&&this.chart.navigator.setBaseSeries();E(b,!0)&&this.chart.redraw()}); | ||
B.prototype.callbacks.push(function(a){var c=a.navigator;c&&(a=a.xAxis[0].getExtremes(),c.render(a.min,a.max))})})(I);(function(a){function C(a){this.init(a)}var u=a.addEvent,v=a.Axis,B=a.Chart,F=a.css,G=a.createElement,H=a.dateFormat,x=a.defaultOptions,f=x.global.useUTC,p=a.defined,m=a.destroyObjectProperties,d=a.discardElement,b=a.each,e=a.extend,q=a.fireEvent,t=a.Date,l=a.isNumber,E=a.merge,g=a.pick,k=a.pInt,A=a.splat,y=a.wrap;e(x,{rangeSelector:{buttonTheme:{"stroke-width":0,width:28,height:18, | ||
padding:2,zIndex:7},height:35,inputPosition:{align:"right"}}});x.lang=E(x.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"});C.prototype={clickButton:function(a,d){var c=this,h=c.chart,e=c.buttonOptions[a],k=h.xAxis[0],w=h.scroller&&h.scroller.getUnionExtremes()||k||{},m=w.dataMin,p=w.dataMax,q,t=k&&Math.round(Math.min(k.max,g(p,k.max))),x=e.type,K,w=e._range,y,L,B,C=e.dataGrouping;if(null!==m&&null!==p){h.fixedRange=w;C&&(this.forcedDataGrouping=!0,v.prototype.setDataGrouping.call(k|| | ||
{chart:this.chart},C,!1));if("month"===x||"year"===x)k?(x={range:e,max:t,dataMin:m,dataMax:p},q=k.minFromRange.call(x),l(x.newMax)&&(t=x.newMax)):w=e;else if(w)q=Math.max(t-w,m),t=Math.min(q+w,p);else if("ytd"===x)if(k)void 0===p&&(m=Number.MAX_VALUE,p=Number.MIN_VALUE,b(h.series,function(a){a=a.xData;m=Math.min(a[0],m);p=Math.max(a[a.length-1],p)}),d=!1),t=c.getYTDExtremes(p,m,f),q=y=t.min,t=t.max;else{u(h,"beforeRender",function(){c.clickButton(a)});return}else"all"===x&&k&&(q=m,t=p);c.setSelected(a); | ||
k?k.setExtremes(q,t,g(d,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:e}):(K=A(h.options.xAxis)[0],B=K.range,K.range=w,L=K.min,K.min=y,u(h,"load",function(){K.range=B;K.min=L}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(a){var c=this,d=a.options.rangeSelector, | ||
e=d.buttons||[].concat(c.defaultButtons),f=d.selected,g=function(){var a=c.minInput,b=c.maxInput;a&&a.blur&&q(a,"blur");b&&b.blur&&q(b,"blur")};c.chart=a;c.options=d;c.buttons=[];a.extraTopMargin=d.height;c.buttonOptions=e;this.unMouseDown=u(a.container,"mousedown",g);this.unResize=u(a,"resize",g);b(e,c.computeButtonRange);void 0!==f&&e[f]&&this.clickButton(f,!1);u(a,"load",function(){u(a.xAxis[0],"setExtremes",function(b){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!== | ||
b.trigger&&c.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,d=a.xAxis[0],e=Math.round(d.max-d.min),g=!d.hasVisibleSeries,a=a.scroller&&a.scroller.getUnionExtremes()||d,r=a.dataMin,k=a.dataMax,a=this.getYTDExtremes(k,r,f),w=a.min,m=a.max,p=this.selected,v=l(p),q=this.options.allButtonsEnabled,t=this.buttons;b(this.buttonOptions,function(a,c){var b=a._range,h=a.type,f=a.count||1;a=t[c];var n=0;c=c===p;var D=b>k-r,l=b<d.minRange,z=!1,u=!1,b=b===e; | ||
("month"===h||"year"===h)&&e>=864E5*{month:28,year:365}[h]*f&&e<=864E5*{month:31,year:366}[h]*f?b=!0:"ytd"===h?(b=m-w===e,z=!c):"all"===h&&(b=d.max-d.min>=k-r,u=!c&&v&&b);h=!q&&(D||l||u||g);b=c&&b||b&&!v&&!z;h?n=3:b&&(v=!0,n=2);a.state!==n&&a.setState(n)})},computeButtonRange:function(a){var c=a.type,b=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[c])a._range=d[c]*b;else if("month"===c||"year"===c)a._range=864E5*{month:30,year:365}[c]*b},setInputValue:function(a, | ||
b){var c=this.chart.options.rangeSelector,d=this[a+"Input"];p(b)&&(d.previousValue=d.HCTime,d.HCTime=b);d.value=H(c.inputEditDateFormat||"%Y-%m-%d",d.HCTime);this[a+"DateBox"].attr({text:H(c.inputDateFormat||"%b %e, %Y",d.HCTime)})},showInput:function(a){var c=this.inputGroup,b=this[a+"DateBox"];F(this[a+"Input"],{left:c.translateX+b.x+"px",top:c.translateY+"px",width:b.width-2+"px",height:b.height-2+"px",border:"2px solid silver"})},hideInput:function(a){F(this[a+"Input"],{border:0,width:"1px",height:"1px"}); | ||
this.setInputValue(a)},drawInput:function(a){function c(){var a=p.value,c=(g.inputDateParser||Date.parse)(a),e=d.xAxis[0],h=d.scroller&&d.scroller.xAxis?d.scroller.xAxis:e,n=h.dataMin,h=h.dataMax;c!==p.previousValue&&(p.previousValue=c,l(c)||(c=a.split("-"),c=Date.UTC(k(c[0]),k(c[1])-1,k(c[2]))),l(c)&&(f||(c+=6E4*(new Date).getTimezoneOffset()),m?c>b.maxInput.HCTime?c=void 0:c<n&&(c=n):c<b.minInput.HCTime?c=void 0:c>h&&(c=h),void 0!==c&&e.setExtremes(m?c:e.min,m?e.max:c,void 0,void 0,{trigger:"rangeSelectorInput"})))} | ||
var b=this,d=b.chart,e=d.renderer,g=d.options.rangeSelector,w=b.div,m="min"===a,p,v,q=this.inputGroup;this[a+"Label"]=v=e.label(x.lang[m?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(q);q.offset+=v.width+5;this[a+"DateBox"]=e=e.label("",q.offset).addClass("highcharts-range-input").attr({padding:2,width:g.inputBoxWidth||90,height:g.inputBoxHeight||17,stroke:g.inputBoxBorderColor||"#cccccc","stroke-width":1,"text-align":"center"}).on("click", | ||
function(){b.showInput(a);b[a+"Input"].focus()}).add(q);q.offset+=e.width+(m?10:0);this[a+"Input"]=p=G("input",{name:a,className:"highcharts-range-selector",type:"text"},{top:d.plotTop+"px"},w);p.onfocus=function(){b.showInput(a)};p.onblur=function(){b.hideInput(a)};p.onchange=c;p.onkeypress=function(a){13===a.keyCode&&c()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=g((b.buttonPosition||{}).y,a.plotTop-a.axisOffset[0]-b.height);return{buttonTop:a,inputTop:a-10}},getYTDExtremes:function(a, | ||
b,d){var c=new t(a),e=c[t.hcGetFullYear]();d=d?t.UTC(e,0,1):+new t(e,0,1);b=Math.max(b||0,d);c=c.getTime();return{max:Math.min(a||c,c),min:b}},render:function(a,d){var c=this,h=c.chart,f=h.renderer,k=h.container,l=h.options,m=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions,q=l.rangeSelector,v=c.buttons,l=x.lang,t=c.div,t=c.inputGroup,u=q.buttonTheme,y=q.buttonPosition||{},B=q.inputEnabled,A=u&&u.states,C=h.plotLeft,E,F=this.getPosition(),H=c.group,I=c.rendered;!1!== | ||
q.enabled&&(I||(c.group=H=f.g("range-selector-buttons").add(),c.zoomText=f.text(l.rangeSelectorZoom,g(y.x,C),15).css(q.labelStyle).add(H),E=g(y.x,C)+c.zoomText.getBBox().width+5,b(c.buttonOptions,function(a,b){v[b]=f.button(a.text,E,0,function(){c.clickButton(b);c.isActive=!0},u,A&&A.hover,A&&A.select,A&&A.disabled).attr({"text-align":"center"}).add(H);E+=v[b].width+g(q.buttonSpacing,5)}),!1!==B&&(c.div=t=G("div",null,{position:"relative",height:0,zIndex:1}),k.parentNode.insertBefore(t,k),c.inputGroup= | ||
t=f.g("input-group").add(),t.offset=0,c.drawInput("min"),c.drawInput("max"))),c.updateButtonStates(),H[I?"animate":"attr"]({translateY:F.buttonTop}),!1!==B&&(t.align(e({y:F.inputTop,width:t.offset,x:m&&F.inputTop<(m.y||0)+m.height-h.spacing[0]?-40:0},q.inputPosition),!0,h.spacingBox),p(B)||(h=H.getBBox(),t[t.alignAttr.translateX<h.x+h.width+10?"hide":"show"]()),c.setInputValue("min",a),c.setInputValue("max",d)),c.rendered=!0)},update:function(a){var c=this.chart;E(!0,c.options.rangeSelector,a);this.destroy(); | ||
this.init(c)},destroy:function(){var a=this.minInput,b=this.maxInput,e;this.unMouseDown();this.unResize();m(this.buttons);a&&(a.onfocus=a.onblur=a.onchange=null);b&&(b.onfocus=b.onblur=b.onchange=null);for(e in this)this[e]&&"chart"!==e&&(this[e].destroy?this[e].destroy():this[e].nodeType&&d(this[e])),this[e]!==C.prototype[e]&&(this[e]=null)}};v.prototype.toFixedRange=function(a,b,d,e){var c=this.chart&&this.chart.fixedRange;a=g(d,this.translate(a,!0,!this.horiz));b=g(e,this.translate(b,!0,!this.horiz)); | ||
d=c&&(b-a)/c;.7<d&&1.3>d&&(e?a=b-c:b=a+c);l(a)||(a=b=void 0);return{min:a,max:b}};v.prototype.minFromRange=function(){var a=this.range,b={month:"Month",year:"FullYear"}[a.type],d,e=this.max,f,k,w=function(a,c){var d=new Date(a);d["set"+b](d["get"+b]()+c);return d.getTime()-a};l(a)?(d=e-a,k=a):(d=e+w(e,-a.count),this.chart&&(this.chart.fixedRange=e-d));f=g(this.dataMin,Number.MIN_VALUE);l(d)||(d=f);d<=f&&(d=f,void 0===k&&(k=w(d,a.count)),this.newMax=Math.min(d+k,this.dataMax));l(e)||(d=void 0);return d}; | ||
y(B.prototype,"init",function(a,b,d){u(this,"init",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new C(this))});a.call(this,b,d)});B.prototype.callbacks.push(function(a){function c(){b=a.xAxis[0].getExtremes();l(b.min)&&d.render(b.min,b.max)}var b,d=a.rangeSelector,e,f;d&&(f=u(a.xAxis[0],"afterSetExtremes",function(a){d.render(a.min,a.max)}),e=u(a,"redraw",c),c());u(a,"destroy",function(){d&&(e(),f())})});a.RangeSelector=C})(I);(function(a){var C=a.arrayMax,u=a.arrayMin,v=a.Axis, | ||
B=a.Chart,F=a.defined,G=a.each,H=a.format,x=a.inArray,f=a.isNumber,p=a.isString,m=a.map,d=a.merge,b=a.pick,e=a.Point,q=a.Series,t=a.splat,l=a.SVGRenderer,E=a.wrap,g=q.prototype,k=g.init,A=g.processData,y=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(c,e,f){var h=p(c)||c.nodeName,g=arguments[h?1:0],k=g.series,n=a.getOptions(),l,q=b(g.navigator&&g.navigator.enabled,n.navigator.enabled,!0),v=q?{startOnTick:!1,endOnTick:!1}:null,u={marker:{enabled:!1,radius:2}},x={shadow:!1,borderWidth:0}; | ||
g.xAxis=m(t(g.xAxis||{}),function(a){return d({minPadding:0,maxPadding:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},n.xAxis,a,{type:"datetime",categories:null},v)});g.yAxis=m(t(g.yAxis||{}),function(a){l=b(a.opposite,!0);return d({labels:{y:-2},opposite:l,showLastLabel:!1,title:{text:null}},n.yAxis,a)});g.series=null;g=d({chart:{panning:!0,pinchType:"x"},navigator:{enabled:q},scrollbar:{enabled:b(n.scrollbar.enabled,!0)},rangeSelector:{enabled:b(n.rangeSelector.enabled, | ||
!0)},title:{text:null},tooltip:{shared:!0,crosshairs:!0},legend:{enabled:!1},plotOptions:{line:u,spline:u,area:u,areaspline:u,arearange:u,areasplinerange:u,column:x,columnrange:x,candlestick:x,ohlc:x}},g,{isStock:!0});g.series=k;return h?new B(c,g,f):new B(g,e)};E(v.prototype,"autoLabelAlign",function(a){var c=this.chart,b=this.options,c=c._labelPanes=c._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&"yAxis"===this.coll&&(b=b.top+","+b.height,!c[b]&&d.enabled)?(15===d.x&& | ||
(d.x=0),void 0===d.align&&(d.align="right"),c[b]=this,"right"):a.call(this,[].slice.call(arguments,1))});E(v.prototype,"destroy",function(a){var c=this.chart,b=this.options&&this.options.top+","+this.options.height;b&&c._labelPanes&&c._labelPanes[b]===this&&delete c._labelPanes[b];return a.call(this,Array.prototype.slice.call(arguments,1))});E(v.prototype,"getPlotLinePath",function(a,d,e,g,k,l){var c=this,h=this.isLinked&&!this.series?this.linkedParent.series:this.series,n=c.chart,r=n.renderer,q= | ||
c.left,v=c.top,t,u,z,D,y=[],A=[],B,C;if("colorAxis"===c.coll)return a.apply(this,[].slice.call(arguments,1));A=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=c.options[b];return f(a)?[n[b][a]]:p(a)?[n.get(a)]:m(h,function(a){return a[b]})}(c.coll);G(c.isXAxis?n.yAxis:n.xAxis,function(a){if(F(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=F(a.options[b])?n[b][a.options[b]]:n[b][0];c===b&&A.push(a)}});B=A.length?[]:[c.isXAxis?n.yAxis[0]:n.xAxis[0]];G(A,function(a){-1=== | ||
x(a,B)&&B.push(a)});C=b(l,c.translate(d,null,null,g));f(C)&&(c.horiz?G(B,function(a){var b;u=a.pos;D=u+a.len;t=z=Math.round(C+c.transB);if(t<q||t>q+c.width)k?t=z=Math.min(Math.max(q,t),q+c.width):b=!0;b||y.push("M",t,u,"L",z,D)}):G(B,function(a){var b;t=a.pos;z=t+a.len;u=D=Math.round(v+c.height-C);if(u<v||u>v+c.height)k?u=D=Math.min(Math.max(v,u),c.top+c.height):b=!0;b||y.push("M",t,u,"L",z,D)}));return 0<y.length?r.crispPolyLine(y,e||1):null});v.prototype.getPlotBandPath=function(a,b){b=this.getPlotLinePath(b, | ||
null,null,!0);a=this.getPlotLinePath(a,null,null,!0);var c=[],d;if(a&&b)if(a.toString()===b.toString())c=a,c.flat=!0;else for(d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],b[d+4],b[d+5],b[d+1],b[d+2],"z");else c=null;return c};l.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/2);return a};E(v.prototype,"hideCrosshair",function(a,b){a.call(this,b);this.crossLabel&& | ||
(this.crossLabel=this.crossLabel.hide())});E(v.prototype,"drawCrosshair",function(a,d,e){var c,f;a.call(this,d,e);if(F(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){a=this.chart;var h=this.options.crosshair.label,g=this.horiz;c=this.opposite;f=this.left;var k=this.top,l=this.crossLabel,n,m=h.format,p="",q="inside"===this.options.tickPosition,t=!1!==this.crosshair.snap,u=0;d||(d=this.cross&&this.cross.e);n=g?"center":c?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign? | ||
"left":"center";l||(l=this.crossLabel=a.renderer.label(null,null,null,h.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+this.series[0].colorIndex)).attr({align:h.align||n,padding:b(h.padding,8),r:b(h.borderRadius,3),zIndex:2}).add(this.labelGroup));g?(n=t?e.plotX+f:d.chartX,k+=c?0:this.height):(n=c?this.width+f:0,k=t?e.plotY+k:d.chartY);m||h.formatter||(this.isDatetimeAxis&&(p="%b %d, %Y"),m="{value"+(p?":"+p:"")+"}");d=t?e[this.isXAxis?"x":"y"]:this.toValue(g? | ||
d.chartX:d.chartY);l.attr({text:m?H(m,{value:d}):h.formatter.call(this,d),x:n,y:k,visibility:"visible"});d=l.getBBox();if(g){if(q&&!c||!q&&c)k=l.y-d.height}else k=l.y-d.height/2;g?(c=f-d.x,f=f+this.width-d.x):(c="left"===this.labelAlign?f:0,f="right"===this.labelAlign?f+this.width:a.chartWidth);l.translateX<c&&(u=c-l.translateX);l.translateX+d.width>=f&&(u=-(l.translateX+d.width-f));l.attr({x:n+u,y:k,anchorX:g?n:this.opposite?0:a.chartWidth,anchorY:g?this.opposite?a.chartHeight:0:k+d.height/2})}}); | ||
g.init=function(){k.apply(this,arguments);this.setCompare(this.options.compare)};g.setCompare=function(a){this.modifyValue="value"===a||"percent"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b="value"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};g.processData=function(){var a,b=-1,d,e,g,k;A.apply(this,arguments);if(this.xAxis&&this.processedYData)for(d=this.processedXData, | ||
e=this.processedYData,g=e.length,this.pointArrayMap&&(b=x("close",this.pointArrayMap),-1===b&&(b=x(this.pointValKey||"y",this.pointArrayMap))),a=0;a<g-1;a++)if(k=-1<b?e[a][b]:e[a],f(k)&&d[a+1]>=this.xAxis.min&&0!==k){this.compareValue=k;break}};E(g,"getExtremes",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=u(b),this.dataMax=C(b))});v.prototype.setCompare=function(a,d){this.isXAxis||(G(this.series, | ||
function(b){b.setCompare(a)}),b(d,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(c){c=c.replace("{point.change}",(0<this.change?"+":"")+a.numberFormat(this.change,b(this.series.tooltipOptions.changeDecimals,2)));return y.apply(this,[c])};E(q.prototype,"render",function(a){this.chart.is3d&&this.chart.is3d()||this.chart.polar||!this.xAxis||this.xAxis.isRadial||(!this.clipBox&&this.animate?(this.clipBox=d(this.chart.clipBox),this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len): | ||
this.chart[this.sharedClipKey]?this.chart[this.sharedClipKey].attr({width:this.xAxis.len,height:this.yAxis.len}):this.clipBox&&(this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len));a.call(this)})})(I)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -9,22 +9,22 @@ (c) 2014 Highsoft AS | ||
*/ | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(g){var n=g.seriesType,q=g.seriesTypes,E=g.map,w=g.merge,z=g.extend,A=g.noop,m=g.each,y=g.grep,F=g.isNumber,B=g.isString,k=g.pick,v=g.Series,G=g.stableSort,H=function(a,b,c){var e;c=c||this;for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)},C=function(a,b,c,e){e=e||this;a=a||[];m(a,function(d,f){c=b.call(e,c,d,f,a)});return c},x=function(a,b,c){c=c||this;a=b.call(c,a);!1!==a&&x(a,b,c)};n("treemap", | ||
"scatter",{showInLegend:!1,marker:!1,dataLabels:{enabled:!0,defer:!1,verticalAlign:"middle",formatter:function(){return this.point.name||this.point.id},inside:!0},tooltip:{headerFormat:"",pointFormat:"\x3cb\x3e{point.name}\x3c/b\x3e: {point.value}\x3c/b\x3e\x3cbr/\x3e"},layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}}},{pointArrayMap:["value"],axisTypes:q.heatmap?["xAxis","yAxis", | ||
"colorAxis"]:["xAxis","yAxis"],optionalAxis:"colorAxis",getSymbol:A,parallelArrays:["x","y","value","colorValue"],colorKey:"colorValue",translateColors:q.heatmap&&q.heatmap.prototype.translateColors,trackerGroups:["group","dataLabelsGroup"],getListOfParents:function(a,b){a=C(a,function(a,b,d){b=k(b.parent,"");void 0===a[b]&&(a[b]=[]);a[b].push(d);return a},{});H(a,function(a,e,d){""!==e&&-1===g.inArray(e,b)&&(m(a,function(a){d[""].push(a)}),delete d[e])});return a},getTree:function(){var a=E(this.data, | ||
function(a){return a.id}),a=this.getListOfParents(this.data,a);this.nodeMap=[];return this.buildNode("",-1,0,a,null)},init:function(a,b){v.prototype.init.call(this,a,b);this.options.allowDrillToNode&&g.addEvent(this,"click",this.onClickDrillToNode)},buildNode:function(a,b,c,e,d){var f=this,h=[],r=f.points[b],D;m(e[a]||[],function(b){D=f.buildNode(f.points[b].id,b,c+1,e,a);h.push(D)});b={id:a,i:b,children:h,level:c,parent:d,visible:!1};f.nodeMap[b.id]=b;r&&(r.node=b);return b},setTreeValues:function(a){var b= | ||
this,c=b.options,e=0,d=[],f,h=b.points[a.i];x(b.nodeMap[b.rootNode],function(a){var c=!1,d=a.parent;a.visible=!0;if(d||""===d)c=b.nodeMap[d];return c});x(b.nodeMap[b.rootNode].children,function(a){var b=!1;m(a,function(a){a.visible=!0;a.children.length&&(b=(b||[]).concat(a.children))});return b});m(a.children,function(a){a=b.setTreeValues(a);d.push(a);a.ignore?x(a.children,function(a){var b=!1;m(a,function(a){z(a,{ignore:!0,isLeaf:!1,visible:!1});a.children.length&&(b=(b||[]).concat(a.children))}); | ||
return b}):e+=a.val});G(d,function(a,b){return a.sortIndex-b.sortIndex});f=k(h&&h.options.value,e);h&&(h.value=f);z(a,{children:d,childrenTotal:e,ignore:!(k(h&&h.visible,!0)&&0<f),isLeaf:a.visible&&!e,levelDynamic:c.levelIsConstant?a.level:a.level-b.nodeMap[b.rootNode].level,name:k(h&&h.name,""),sortIndex:k(h&&h.sortIndex,-f),val:f});return a},calculateChildrenAreas:function(a,b){var c=this,e=c.options,d=this.levelMap[a.levelDynamic+1],f=k(c[d&&d.layoutAlgorithm]&&d.layoutAlgorithm,e.layoutAlgorithm), | ||
h=e.alternateStartingDirection,r=[];a=y(a.children,function(a){return!a.ignore});d&&d.layoutStartingDirection&&(b.direction="vertical"===d.layoutStartingDirection?0:1);r=c[f](b,a);m(a,function(a,d){d=r[d];a.values=w(d,{val:a.childrenTotal,direction:h?1-b.direction:b.direction});a.pointValues=w(d,{x:d.x/c.axisRatio,width:d.width/c.axisRatio});a.children.length&&c.calculateChildrenAreas(a,a.values)})},setPointValues:function(){var a=this,b=a.xAxis,c=a.yAxis;m(a.points,function(e){var d=e.node,f=d.pointValues, | ||
h,r,g=(a.pointAttribs(e)["stroke-width"]||0)%2/2;f&&d.visible?(d=Math.round(b.translate(f.x,0,0,0,1))-g,h=Math.round(b.translate(f.x+f.width,0,0,0,1))-g,r=Math.round(c.translate(f.y,0,0,0,1))-g,f=Math.round(c.translate(f.y+f.height,0,0,0,1))-g,e.shapeType="rect",e.shapeArgs={x:Math.min(d,h),y:Math.min(r,f),width:Math.abs(h-d),height:Math.abs(f-r)},e.plotX=e.shapeArgs.x+e.shapeArgs.width/2,e.plotY=e.shapeArgs.y+e.shapeArgs.height/2):(delete e.plotX,delete e.plotY)})},setColorRecursive:function(a,b, | ||
c){var e=this,d,f;a&&(d=e.points[a.i],f=e.levelMap[a.levelDynamic],b=k(d&&d.options.color,f&&f.color,b),c=k(d&&d.options.colorIndex,f&&f.colorIndex,c),d&&(d.color=b,d.colorIndex=c),a.children.length&&m(a.children,function(a){e.setColorRecursive(a,b,c)}))},algorithmGroup:function(a,b,c,e){this.height=a;this.width=b;this.plot=e;this.startDirection=this.direction=c;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,b){return Math.max(a/ | ||
b,b/a)}};this.addElement=function(a){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR= | ||
this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)};this.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0}},algorithmCalcPoints:function(a,b,c,e){var d,f,h,g,k=c.lW,p=c.lH,l=c.plot,n,t=0,u=c.elArr.length-1;b?(k=c.nW,p=c.nH):n=c.elArr[c.elArr.length-1];m(c.elArr,function(a){if(b||t<u)0===c.direction?(d=l.x,f=l.y,h=k,g=a/h):(d=l.x,f=l.y,g=p,h=a/g),e.push({x:d,y:f,width:h,height:g}),0===c.direction?l.y+=g:l.x+=h;t+=1});c.reset();0===c.direction?c.width-=k:c.height-=p;l.y=l.parent.y+ | ||
(l.parent.height-c.height);l.x=l.parent.x+(l.parent.width-c.width);a&&(c.direction=1-c.direction);b||c.addElement(n)},algorithmLowAspectRatio:function(a,b,c){var e=[],d=this,f,h={x:b.x,y:b.y,parent:b},g=0,k=c.length-1,p=new this.algorithmGroup(b.height,b.width,b.direction,h);m(c,function(c){f=c.val/b.val*b.height*b.width;p.addElement(f);p.lP.nR>p.lP.lR&&d.algorithmCalcPoints(a,!1,p,e,h);g===k&&d.algorithmCalcPoints(a,!0,p,e,h);g+=1});return e},algorithmFill:function(a,b,c){var e=[],d,f=b.direction, | ||
g=b.x,k=b.y,n=b.width,p=b.height,l,q,t,u;m(c,function(c){d=c.val/b.val*b.height*b.width;l=g;q=k;0===f?(u=p,t=d/u,n-=t,g+=t):(t=n,u=d/t,p-=u,k+=u);e.push({x:l,y:q,width:t,height:u});a&&(f=1-f)});return e},strip:function(a,b){return this.algorithmLowAspectRatio(!1,a,b)},squarified:function(a,b){return this.algorithmLowAspectRatio(!0,a,b)},sliceAndDice:function(a,b){return this.algorithmFill(!0,a,b)},stripes:function(a,b){return this.algorithmFill(!1,a,b)},translate:function(){var a=this.rootNode=k(this.rootNode, | ||
this.options.rootId,""),b,c;v.prototype.translate.call(this);this.levelMap=C(this.options.levels,function(a,b){a[b.level]=b;return a},{});c=this.tree=this.getTree();b=this.nodeMap[a];""===a||b&&b.children.length||(this.drillToNode("",!1),a=this.rootNode,b=this.nodeMap[a]);this.setTreeValues(c);this.axisRatio=this.xAxis.len/this.yAxis.len;this.nodeMap[""].pointValues=a={x:0,y:0,width:100,height:100};this.nodeMap[""].values=a=w(a,{width:a.width*this.axisRatio,direction:"vertical"===this.options.layoutStartingDirection? | ||
0:1,val:c.val});this.calculateChildrenAreas(c,a);this.colorAxis?this.translateColors():this.options.colorByPoint||this.setColorRecursive(this.tree);this.options.allowDrillToNode&&(b=b.pointValues,this.xAxis.setExtremes(b.x,b.x+b.width,!1),this.yAxis.setExtremes(b.y,b.y+b.height,!1),this.xAxis.setScale(),this.yAxis.setScale());this.setPointValues()},drawDataLabels:function(){var a=this,b=y(a.points,function(a){return a.node.visible}),c,e;m(b,function(b){e=a.levelMap[b.node.levelDynamic];c={style:{}}; | ||
b.node.isLeaf||(c.enabled=!1);e&&e.dataLabels&&(c=w(c,e.dataLabels),a._hasPointLabels=!0);b.shapeArgs&&(c.style.width=b.shapeArgs.width,b.dataLabel&&b.dataLabel.css({width:b.shapeArgs.width+"px"}));b.dlOptions=w(c,b.options.dataLabels)});v.prototype.drawDataLabels.call(this)},alignDataLabel:function(a){q.column.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:a.node.zIndex+1})},drawPoints:function(){var a=this,b=y(a.points,function(a){return a.node.visible});m(b, | ||
function(b){var c="levelGroup-"+b.node.levelDynamic;a[c]||(a[c]=a.chart.renderer.g(c).attr({zIndex:1E3-b.node.levelDynamic}).add(a.group));b.group=a[c]});q.column.prototype.drawPoints.call(this);a.options.allowDrillToNode&&m(b,function(b){b.graphic&&(b.drillId=a.options.interactByLeaf?a.drillToByLeaf(b):a.drillToByGroup(b))})},onClickDrillToNode:function(a){var b=(a=a.point)&&a.drillId;B(b)&&(a.setState(""),this.drillToNode(b))},drillToByGroup:function(a){var b=!1;1!==a.node.level-this.nodeMap[this.rootNode].level|| | ||
a.node.isLeaf||(b=a.id);return b},drillToByLeaf:function(a){var b=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!b;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(b=a.id);return b},drillUp:function(){var a=this.nodeMap[this.rootNode];a&&B(a.parent)&&this.drillToNode(a.parent)},drillToNode:function(a,b){var c=this.nodeMap[a];this.rootNode=a;""===a?this.drillUpButton=this.drillUpButton.destroy():this.showDrillUpButton(c&&c.name||a);this.isDirty=!0;k(b,!0)&&this.chart.redraw()}, | ||
showDrillUpButton:function(a){var b=this;a=a||"\x3c Back";var c=b.options.drillUpButton,e,d;c.text&&(a=c.text);this.drillUpButton?this.drillUpButton.attr({text:a}).align():(d=(e=c.theme)&&e.states,this.drillUpButton=this.chart.renderer.button(a,null,null,function(){b.drillUp()},e,d&&d.hover,d&&d.select).attr({align:c.position.align,zIndex:7}).add().align(c.position,!1,c.relativeTo||"plotBox"))},buildKDTree:A,drawLegendSymbol:g.LegendSymbolMixin.drawRectangle,getExtremes:function(){v.prototype.getExtremes.call(this, | ||
this.colorValueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;v.prototype.getExtremes.call(this)},getExtremesFromAll:!0,bindAxes:function(){var a={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};v.prototype.bindAxes.call(this);g.extend(this.yAxis.options,a);g.extend(this.xAxis.options,a)}},{getClassName:function(){var a=g.Point.prototype.getClassName.call(this),b=this.series,c=b.options; | ||
this.node.level<=b.nodeMap[b.rootNode].level?a+=" highcharts-above-level":this.node.isLeaf||k(c.interactByLeaf,!c.allowDrillToNode)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";return a},isValid:function(){return F(this.value)},setState:function(a){g.Point.prototype.setState.call(this,a);this.graphic.attr({zIndex:"hover"===a?1:0})},setVisible:q.pie.prototype.pointClass.prototype.setVisible})})(n)}); | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(f){var n=f.seriesType,q=f.seriesTypes,E=f.map,v=f.merge,y=f.extend,z=f.noop,m=f.each,x=f.grep,F=f.isNumber,A=f.isString,k=f.pick,u=f.Series,G=f.stableSort,H=function(a,b,c){var e;c=c||this;for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)},B=function(a,b,c,e){e=e||this;a=a||[];m(a,function(d,g){c=b.call(e,c,d,g,a)});return c},w=function(a,b,c){c=c||this;a=b.call(c,a);!1!==a&&w(a,b,c)};n("treemap", | ||
"scatter",{showInLegend:!1,marker:!1,dataLabels:{enabled:!0,defer:!1,verticalAlign:"middle",formatter:function(){return this.point.name||this.point.id},inside:!0},tooltip:{headerFormat:"",pointFormat:"\x3cb\x3e{point.name}\x3c/b\x3e: {point.value}\x3c/b\x3e\x3cbr/\x3e"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}}},{pointArrayMap:["value"],axisTypes:q.heatmap? | ||
["xAxis","yAxis","colorAxis"]:["xAxis","yAxis"],optionalAxis:"colorAxis",getSymbol:z,parallelArrays:["x","y","value","colorValue"],colorKey:"colorValue",translateColors:q.heatmap&&q.heatmap.prototype.translateColors,trackerGroups:["group","dataLabelsGroup"],getListOfParents:function(a,b){a=B(a,function(a,b,d){b=k(b.parent,"");void 0===a[b]&&(a[b]=[]);a[b].push(d);return a},{});H(a,function(a,e,d){""!==e&&-1===f.inArray(e,b)&&(m(a,function(a){d[""].push(a)}),delete d[e])});return a},getTree:function(){var a= | ||
E(this.data,function(a){return a.id}),a=this.getListOfParents(this.data,a);this.nodeMap=[];return this.buildNode("",-1,0,a,null)},init:function(a,b){u.prototype.init.call(this,a,b);this.options.allowDrillToNode&&f.addEvent(this,"click",this.onClickDrillToNode)},buildNode:function(a,b,c,e,d){var g=this,h=[],C=g.points[b],D;m(e[a]||[],function(b){D=g.buildNode(g.points[b].id,b,c+1,e,a);h.push(D)});b={id:a,i:b,children:h,level:c,parent:d,visible:!1};g.nodeMap[b.id]=b;C&&(C.node=b);return b},setTreeValues:function(a){var b= | ||
this,c=b.options,e=0,d=[],g,h=b.points[a.i];w(b.nodeMap[b.rootNode],function(a){var c=!1,d=a.parent;a.visible=!0;if(d||""===d)c=b.nodeMap[d];return c});w(b.nodeMap[b.rootNode].children,function(a){var b=!1;m(a,function(a){a.visible=!0;a.children.length&&(b=(b||[]).concat(a.children))});return b});m(a.children,function(a){a=b.setTreeValues(a);d.push(a);a.ignore?w(a.children,function(a){var b=!1;m(a,function(a){y(a,{ignore:!0,isLeaf:!1,visible:!1});a.children.length&&(b=(b||[]).concat(a.children))}); | ||
return b}):e+=a.val});G(d,function(a,b){return a.sortIndex-b.sortIndex});g=k(h&&h.options.value,e);h&&(h.value=g);y(a,{children:d,childrenTotal:e,ignore:!(k(h&&h.visible,!0)&&0<g),isLeaf:a.visible&&!e,levelDynamic:c.levelIsConstant?a.level:a.level-b.nodeMap[b.rootNode].level,name:k(h&&h.name,""),sortIndex:k(h&&h.sortIndex,-g),val:g});return a},calculateChildrenAreas:function(a,b){var c=this,e=c.options,d=this.levelMap[a.levelDynamic+1],g=k(c[d&&d.layoutAlgorithm]&&d.layoutAlgorithm,e.layoutAlgorithm), | ||
h=e.alternateStartingDirection,f=[];a=x(a.children,function(a){return!a.ignore});d&&d.layoutStartingDirection&&(b.direction="vertical"===d.layoutStartingDirection?0:1);f=c[g](b,a);m(a,function(a,d){d=f[d];a.values=v(d,{val:a.childrenTotal,direction:h?1-b.direction:b.direction});a.pointValues=v(d,{x:d.x/c.axisRatio,width:d.width/c.axisRatio});a.children.length&&c.calculateChildrenAreas(a,a.values)})},setPointValues:function(){var a=this.xAxis,b=this.yAxis;m(this.points,function(c){var e=c.node,d=e.pointValues, | ||
g,h;d&&e.visible?(e=Math.round(a.translate(d.x,0,0,0,1))-0,g=Math.round(a.translate(d.x+d.width,0,0,0,1))-0,h=Math.round(b.translate(d.y,0,0,0,1))-0,d=Math.round(b.translate(d.y+d.height,0,0,0,1))-0,c.shapeType="rect",c.shapeArgs={x:Math.min(e,g),y:Math.min(h,d),width:Math.abs(g-e),height:Math.abs(d-h)},c.plotX=c.shapeArgs.x+c.shapeArgs.width/2,c.plotY=c.shapeArgs.y+c.shapeArgs.height/2):(delete c.plotX,delete c.plotY)})},setColorRecursive:function(a,b,c){var e=this,d,g;a&&(d=e.points[a.i],g=e.levelMap[a.levelDynamic], | ||
b=k(d&&d.options.color,g&&g.color,b,e.color),c=k(d&&d.options.colorIndex,g&&g.colorIndex,c,e.colorIndex),d&&(d.color=b,d.colorIndex=c),a.children.length&&m(a.children,function(a){e.setColorRecursive(a,b,c)}))},algorithmGroup:function(a,b,c,e){this.height=a;this.width=b;this.plot=e;this.startDirection=this.direction=c;this.lH=this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,b){return Math.max(a/b,b/a)}};this.addElement=function(a){this.lP.total= | ||
this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)}; | ||
this.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0}},algorithmCalcPoints:function(a,b,c,e){var d,g,h,f,k=c.lW,p=c.lH,l=c.plot,n,r=0,t=c.elArr.length-1;b?(k=c.nW,p=c.nH):n=c.elArr[c.elArr.length-1];m(c.elArr,function(a){if(b||r<t)0===c.direction?(d=l.x,g=l.y,h=k,f=a/h):(d=l.x,g=l.y,f=p,h=a/f),e.push({x:d,y:g,width:h,height:f}),0===c.direction?l.y+=f:l.x+=h;r+=1});c.reset();0===c.direction?c.width-=k:c.height-=p;l.y=l.parent.y+(l.parent.height-c.height);l.x=l.parent.x+(l.parent.width- | ||
c.width);a&&(c.direction=1-c.direction);b||c.addElement(n)},algorithmLowAspectRatio:function(a,b,c){var e=[],d=this,g,h={x:b.x,y:b.y,parent:b},f=0,k=c.length-1,p=new this.algorithmGroup(b.height,b.width,b.direction,h);m(c,function(c){g=c.val/b.val*b.height*b.width;p.addElement(g);p.lP.nR>p.lP.lR&&d.algorithmCalcPoints(a,!1,p,e,h);f===k&&d.algorithmCalcPoints(a,!0,p,e,h);f+=1});return e},algorithmFill:function(a,b,c){var e=[],d,g=b.direction,f=b.x,k=b.y,n=b.width,p=b.height,l,q,r,t;m(c,function(c){d= | ||
c.val/b.val*b.height*b.width;l=f;q=k;0===g?(t=p,r=d/t,n-=r,f+=r):(r=n,t=d/r,p-=t,k+=t);e.push({x:l,y:q,width:r,height:t});a&&(g=1-g)});return e},strip:function(a,b){return this.algorithmLowAspectRatio(!1,a,b)},squarified:function(a,b){return this.algorithmLowAspectRatio(!0,a,b)},sliceAndDice:function(a,b){return this.algorithmFill(!0,a,b)},stripes:function(a,b){return this.algorithmFill(!1,a,b)},translate:function(){var a=this.rootNode=k(this.rootNode,this.options.rootId,""),b,c;u.prototype.translate.call(this); | ||
this.levelMap=B(this.options.levels,function(a,b){a[b.level]=b;return a},{});c=this.tree=this.getTree();b=this.nodeMap[a];""===a||b&&b.children.length||(this.drillToNode("",!1),a=this.rootNode,b=this.nodeMap[a]);this.setTreeValues(c);this.axisRatio=this.xAxis.len/this.yAxis.len;this.nodeMap[""].pointValues=a={x:0,y:0,width:100,height:100};this.nodeMap[""].values=a=v(a,{width:a.width*this.axisRatio,direction:"vertical"===this.options.layoutStartingDirection?0:1,val:c.val});this.calculateChildrenAreas(c, | ||
a);this.colorAxis?this.translateColors():this.options.colorByPoint||this.setColorRecursive(this.tree);this.options.allowDrillToNode&&(b=b.pointValues,this.xAxis.setExtremes(b.x,b.x+b.width,!1),this.yAxis.setExtremes(b.y,b.y+b.height,!1),this.xAxis.setScale(),this.yAxis.setScale());this.setPointValues()},drawDataLabels:function(){var a=this,b=x(a.points,function(a){return a.node.visible}),c,e;m(b,function(b){e=a.levelMap[b.node.levelDynamic];c={style:{}};b.node.isLeaf||(c.enabled=!1);e&&e.dataLabels&& | ||
(c=v(c,e.dataLabels),a._hasPointLabels=!0);b.shapeArgs&&(c.style.width=b.shapeArgs.width,b.dataLabel&&b.dataLabel.css({width:b.shapeArgs.width+"px"}));b.dlOptions=v(c,b.options.dataLabels)});u.prototype.drawDataLabels.call(this)},alignDataLabel:function(a){q.column.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:a.node.zIndex+1})},drawPoints:function(){var a=this,b=x(a.points,function(a){return a.node.visible});m(b,function(b){var c="levelGroup-"+b.node.levelDynamic; | ||
a[c]||(a[c]=a.chart.renderer.g(c).attr({zIndex:1E3-b.node.levelDynamic}).add(a.group));b.group=a[c]});q.column.prototype.drawPoints.call(this);a.options.allowDrillToNode&&m(b,function(b){b.graphic&&(b.drillId=a.options.interactByLeaf?a.drillToByLeaf(b):a.drillToByGroup(b))})},onClickDrillToNode:function(a){var b=(a=a.point)&&a.drillId;A(b)&&(a.setState(""),this.drillToNode(b))},drillToByGroup:function(a){var b=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(b=a.id);return b}, | ||
drillToByLeaf:function(a){var b=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!b;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(b=a.id);return b},drillUp:function(){var a=this.nodeMap[this.rootNode];a&&A(a.parent)&&this.drillToNode(a.parent)},drillToNode:function(a,b){var c=this.nodeMap[a];this.rootNode=a;""===a?this.drillUpButton=this.drillUpButton.destroy():this.showDrillUpButton(c&&c.name||a);this.isDirty=!0;k(b,!0)&&this.chart.redraw()},showDrillUpButton:function(a){var b= | ||
this;a=a||"\x3c Back";var c=b.options.drillUpButton,e,d;c.text&&(a=c.text);this.drillUpButton?this.drillUpButton.attr({text:a}).align():(d=(e=c.theme)&&e.states,this.drillUpButton=this.chart.renderer.button(a,null,null,function(){b.drillUp()},e,d&&d.hover,d&&d.select).attr({align:c.position.align,zIndex:7}).add().align(c.position,!1,c.relativeTo||"plotBox"))},buildKDTree:z,drawLegendSymbol:f.LegendSymbolMixin.drawRectangle,getExtremes:function(){u.prototype.getExtremes.call(this,this.colorValueData); | ||
this.valueMin=this.dataMin;this.valueMax=this.dataMax;u.prototype.getExtremes.call(this)},getExtremesFromAll:!0,bindAxes:function(){var a={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};u.prototype.bindAxes.call(this);f.extend(this.yAxis.options,a);f.extend(this.xAxis.options,a)}},{getClassName:function(){var a=f.Point.prototype.getClassName.call(this),b=this.series,c=b.options;this.node.level<=b.nodeMap[b.rootNode].level? | ||
a+=" highcharts-above-level":this.node.isLeaf||k(c.interactByLeaf,!c.allowDrillToNode)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";return a},isValid:function(){return F(this.value)},setState:function(a){f.Point.prototype.setState.call(this,a);this.graphic&&this.graphic.attr({zIndex:"hover"===a?1:0})},setVisible:q.pie.prototype.pointClass.prototype.setVisible})})(n)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -9,2 +9,3 @@ * (c) 2014 Highsoft AS | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -24,3 +25,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -86,2 +86,3 @@ var seriesType = H.seriesType, | ||
}, | ||
ignoreHiddenPoint: true, | ||
layoutAlgorithm: 'sliceAndDice', | ||
@@ -310,5 +311,6 @@ layoutStartingDirection: 'vertical', | ||
y2, | ||
strokeWidth = series.pointAttribs(point)['stroke-width'] || 0, | ||
crispCorr = (strokeWidth % 2) / 2; | ||
crispCorr = 0; | ||
// Points which is ignored, have no values. | ||
@@ -345,4 +347,15 @@ if (values && node.visible) { | ||
// Select either point color, level color or inherited color. | ||
color = pick(point && point.options.color, level && level.color, color); | ||
colorIndex = pick(point && point.options.colorIndex, level && level.colorIndex, colorIndex); | ||
color = pick( | ||
point && point.options.color, | ||
level && level.color, | ||
color, | ||
series.color | ||
); | ||
colorIndex = pick( | ||
point && point.options.colorIndex, | ||
level && level.colorIndex, | ||
colorIndex, | ||
series.colorIndex | ||
); | ||
if (point) { | ||
@@ -876,5 +889,9 @@ point.color = color; | ||
H.Point.prototype.setState.call(this, state); | ||
this.graphic.attr({ | ||
zIndex: state === 'hover' ? 1 : 0 | ||
}); | ||
// Graphic does not exist when point is not visible. | ||
if (this.graphic) { | ||
this.graphic.attr({ | ||
zIndex: state === 'hover' ? 1 : 0 | ||
}); | ||
} | ||
}, | ||
@@ -881,0 +898,0 @@ setVisible: seriesTypes.pie.prototype.pointClass.prototype.setVisible |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
X-range series | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* X-range series | ||
@@ -11,2 +11,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -29,0 +29,0 @@ var defaultPlotOptions = H.getOptions().plotOptions, |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -25,3 +26,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -28,0 +28,0 @@ colors: ['#DDDF0D', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee', |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -29,0 +29,0 @@ colors: ['#DDDF0D', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee', |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
/* global document */ | ||
@@ -29,0 +29,0 @@ // Load the fonts |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -29,0 +29,0 @@ colors: ['#DDDF0D', '#7798BF', '#55BF3B', '#DF5353', '#aaeeee', '#ff0066', '#eeaaee', |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
/* global document */ | ||
@@ -29,0 +29,0 @@ // Load the fonts |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -29,0 +29,0 @@ colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'], |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
/* global document */ | ||
@@ -29,0 +29,0 @@ // Load the fonts |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -29,0 +29,0 @@ colors: ['#514F78', '#42A07B', '#9B5E4A', '#72727F', '#1F949A', '#82914E', '#86777F', '#42A07B'], |
@@ -0,2 +1,28 @@ | ||
/** | ||
svg2pdf.js | ||
The MIT License (MIT) | ||
Copyright (c) 2015-2016 yWorks GmbH | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
*/ | ||
/** | ||
* RGBColor.js: A class to parse color values | ||
* @author Stoyan Stefanov <sstoo@gmail.com> | ||
* @link http://www.phpied.com/rgb-color-parser-in-javascript/ | ||
* @license Use it if you like it | ||
*/ | ||
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.svg2pdf=t()}}(function(){var t;return function t(e,r,a){function i(s,o){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!o&&u)return u(s,!0);if(n)return n(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var h=r[s]={exports:{}};e[s][0].call(h.exports,function(t){var r=e[s][1][t];return i(r?r:t)},h,h.exports,t,e,r,a)}return r[s].exports}for(var n="function"==typeof require&&require,s=0;s<a.length;s++)i(a[s]);return i}({1:[function(t,e,r){"use strict";e.exports=t("./lib/svgpath")},{"./lib/svgpath":6}],2:[function(t,e,r){"use strict";function a(t,e,r,a){var i=t*a-e*r<0?-1:1,n=Math.sqrt(t*t+e*e),s=Math.sqrt(t*t+e*e),o=t*r+e*a,u=o/(n*s);return u>1&&(u=1),u<-1&&(u=-1),i*Math.acos(u)}function i(t,e,r,i,n,o,u,c,h,f){var l=f*(t-r)/2+h*(e-i)/2,d=-h*(t-r)/2+f*(e-i)/2,g=u*u,p=c*c,b=l*l,x=d*d,m=g*p-g*x-p*b;m<0&&(m=0),m/=g*x+p*b,m=Math.sqrt(m)*(n===o?-1:1);var v=m*u/c*d,y=m*-c/u*l,A=f*v-h*y+(t+r)/2,k=h*v+f*y+(e+i)/2,w=(l-v)/u,M=(d-y)/c,F=(-l-v)/u,C=(-d-y)/c,S=a(1,0,w,M),I=a(w,M,F,C);return 0===o&&I>0&&(I-=s),1===o&&I<0&&(I+=s),[A,k,S,I]}function n(t,e){var r=4/3*Math.tan(e/4),a=Math.cos(t),i=Math.sin(t),n=Math.cos(t+e),s=Math.sin(t+e);return[a,i,a-i*r,i+a*r,n+s*r,s-n*r,n,s]}var s=2*Math.PI;e.exports=function(t,e,r,a,o,u,c,h,f){var l=Math.sin(f*s/360),d=Math.cos(f*s/360),g=d*(t-r)/2+l*(e-a)/2,p=-l*(t-r)/2+d*(e-a)/2;if(0===g&&0===p)return[];if(0===c||0===h)return[];c=Math.abs(c),h=Math.abs(h);var b=g*g/(c*c)+p*p/(h*h);b>1&&(c*=Math.sqrt(b),h*=Math.sqrt(b));var x=i(t,e,r,a,o,u,c,h,l,d),m=[],v=x[2],y=x[3],A=Math.max(Math.ceil(Math.abs(y)/(s/4)),1);y/=A;for(var k=0;k<A;k++)m.push(n(v,y)),v+=y;return m.map(function(t){for(var e=0;e<t.length;e+=2){var r=t[e+0],a=t[e+1];r*=c,a*=h;var i=d*r-l*a,n=l*r+d*a;t[e+0]=i+x[0],t[e+1]=n+x[1]}return t})}},{}],3:[function(t,e,r){"use strict";function a(t,e,r){return this instanceof a?(this.rx=t,this.ry=e,void(this.ax=r)):new a(t,e,r)}var i=1e-10,n=Math.PI/180;a.prototype.transform=function(t){var e=Math.cos(this.ax*n),r=Math.sin(this.ax*n),a=[this.rx*(t[0]*e+t[2]*r),this.rx*(t[1]*e+t[3]*r),this.ry*(-t[0]*r+t[2]*e),this.ry*(-t[1]*r+t[3]*e)],s=a[0]*a[0]+a[2]*a[2],o=a[1]*a[1]+a[3]*a[3],u=((a[0]-a[3])*(a[0]-a[3])+(a[2]+a[1])*(a[2]+a[1]))*((a[0]+a[3])*(a[0]+a[3])+(a[2]-a[1])*(a[2]-a[1])),c=(s+o)/2;if(u<i*c)return this.rx=this.ry=Math.sqrt(c),this.ax=0,this;var h=a[0]*a[1]+a[2]*a[3];u=Math.sqrt(u);var f=c+u/2,l=c-u/2;return this.ax=Math.abs(h)<i&&Math.abs(f-o)<i?90:180*Math.atan(Math.abs(h)>Math.abs(f-o)?(f-s)/h:h/(f-o))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(f),this.ry=Math.sqrt(l)):(this.ax+=90,this.rx=Math.sqrt(l),this.ry=Math.sqrt(f)),this},a.prototype.isDegenerate=function(){return this.rx<i*this.ry||this.ry<i*this.rx},e.exports=a},{}],4:[function(t,e,r){"use strict";function a(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}function i(){return this instanceof i?(this.queue=[],void(this.cache=null)):new i}i.prototype.matrix=function(t){return 1===t[0]&&0===t[1]&&0===t[2]&&1===t[3]&&0===t[4]&&0===t[5]?this:(this.cache=null,this.queue.push(t),this)},i.prototype.translate=function(t,e){return 0===t&&0===e||(this.cache=null,this.queue.push([1,0,0,1,t,e])),this},i.prototype.scale=function(t,e){return 1===t&&1===e||(this.cache=null,this.queue.push([t,0,0,e,0,0])),this},i.prototype.rotate=function(t,e,r){var a,i,n;return 0!==t&&(this.translate(e,r),a=t*Math.PI/180,i=Math.cos(a),n=Math.sin(a),this.queue.push([i,n,-n,i,0,0]),this.cache=null,this.translate(-e,-r)),this},i.prototype.skewX=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,0,Math.tan(t*Math.PI/180),1,0,0])),this},i.prototype.skewY=function(t){return 0!==t&&(this.cache=null,this.queue.push([1,Math.tan(t*Math.PI/180),0,1,0,0])),this},i.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],1===this.queue.length)return this.cache;for(var t=1;t<this.queue.length;t++)this.cache=a(this.cache,this.queue[t]);return this.cache},i.prototype.calc=function(t,e,r){var a;return this.queue.length?(this.cache||(this.cache=this.toArray()),a=this.cache,[t*a[0]+e*a[2]+(r?0:a[4]),t*a[1]+e*a[3]+(r?0:a[5])]):[t,e]},e.exports=i},{}],5:[function(t,e,r){"use strict";function a(t){return 10===t||13===t||8232===t||8233===t||32===t||9===t||11===t||12===t||160===t||t>=5760&&d.indexOf(t)>=0}function i(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function n(t){return t>=48&&t<=57}function s(t){return t>=48&&t<=57||43===t||45===t||46===t}function o(t){this.index=0,this.path=t,this.max=t.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function u(t){for(;t.index<t.max&&a(t.path.charCodeAt(t.index));)t.index++}function c(t){var e,r=t.index,a=r,i=t.max,s=!1,o=!1,u=!1,c=!1;if(a>=i)return void(t.err="SvgPath: missed param (at pos "+a+")");if(e=t.path.charCodeAt(a),43!==e&&45!==e||(a++,e=a<i?t.path.charCodeAt(a):0),!n(e)&&46!==e)return void(t.err="SvgPath: param should start with 0..9 or `.` (at pos "+a+")");if(46!==e){if(s=48===e,a++,e=a<i?t.path.charCodeAt(a):0,s&&a<i&&e&&n(e))return void(t.err="SvgPath: numbers started with `0` such as `09` are ilegal (at pos "+r+")");for(;a<i&&n(t.path.charCodeAt(a));)a++,o=!0;e=a<i?t.path.charCodeAt(a):0}if(46===e){for(c=!0,a++;n(t.path.charCodeAt(a));)a++,u=!0;e=a<i?t.path.charCodeAt(a):0}if(101===e||69===e){if(c&&!o&&!u)return void(t.err="SvgPath: invalid float exponent (at pos "+a+")");if(a++,e=a<i?t.path.charCodeAt(a):0,43!==e&&45!==e||a++,!(a<i&&n(t.path.charCodeAt(a))))return void(t.err="SvgPath: invalid float exponent (at pos "+a+")");for(;a<i&&n(t.path.charCodeAt(a));)a++}t.index=a,t.param=parseFloat(t.path.slice(r,a))+0}function h(t){var e,r;e=t.path[t.segmentStart],r=e.toLowerCase();var a=t.data;if("m"===r&&a.length>2&&(t.result.push([e,a[0],a[1]]),a=a.slice(2),r="l",e="m"===e?"l":"L"),"r"===r)t.result.push([e].concat(a));else for(;a.length>=l[r]&&(t.result.push([e].concat(a.splice(0,l[r]))),l[r]););}function f(t){var e,r,a,n,o=t.max;if(t.segmentStart=t.index,e=t.path.charCodeAt(t.index),!i(e))return void(t.err="SvgPath: bad command "+t.path[t.index]+" (at pos "+t.index+")");if(a=l[t.path[t.index].toLowerCase()],t.index++,u(t),t.data=[],!a)return void h(t);for(r=!1;;){for(n=a;n>0;n--){if(c(t),t.err.length)return;t.data.push(t.param),u(t),r=!1,t.index<o&&44===t.path.charCodeAt(t.index)&&(t.index++,u(t),r=!0)}if(!r){if(t.index>=t.max)break;if(!s(t.path.charCodeAt(t.index)))break}}h(t)}var l={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},d=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];e.exports=function(t){var e=new o(t),r=e.max;for(u(e);e.index<r&&!e.err.length;)f(e);return e.err.length?e.result=[]:e.result.length&&("mM".indexOf(e.result[0][0])<0?(e.err="SvgPath: string should start with `M` or `m`",e.result=[]):e.result[0][0]="M"),{err:e.err,segments:e.result}}},{}],6:[function(t,e,r){"use strict";function a(t){if(!(this instanceof a))return new a(t);var e=i(t);this.segments=e.segments,this.err=e.err,this.__stack=[]}var i=t("./path_parse"),n=t("./transform_parse"),s=t("./matrix"),o=t("./a2c"),u=t("./ellipse");a.prototype.__matrix=function(t){var e,r=this;t.queue.length&&this.iterate(function(a,i,n,s){var o,c,h,f;switch(a[0]){case"v":o=t.calc(0,a[1],!0),c=0===o[0]?["v",o[1]]:["l",o[0],o[1]];break;case"V":o=t.calc(n,a[1],!1),c=o[0]===t.calc(n,s,!1)[0]?["V",o[1]]:["L",o[0],o[1]];break;case"h":o=t.calc(a[1],0,!0),c=0===o[1]?["h",o[0]]:["l",o[0],o[1]];break;case"H":o=t.calc(a[1],s,!1),c=o[1]===t.calc(n,s,!1)[1]?["H",o[0]]:["L",o[0],o[1]];break;case"a":case"A":var l=t.toArray(),d=u(a[1],a[2],a[3]).transform(l);if(l[0]*l[3]-l[1]*l[2]<0&&(a[5]=a[5]?"0":"1"),o=t.calc(a[6],a[7],"a"===a[0]),"A"===a[0]&&a[6]===n&&a[7]===s||"a"===a[0]&&0===a[6]&&0===a[7]){c=["a"===a[0]?"l":"L",o[0],o[1]];break}c=d.isDegenerate()?["a"===a[0]?"l":"L",o[0],o[1]]:[a[0],d.rx,d.ry,d.ax,a[4],a[5],o[0],o[1]];break;case"m":f=i>0,o=t.calc(a[1],a[2],f),c=["m",o[0],o[1]];break;default:for(h=a[0],c=[h],f=h.toLowerCase()===h,e=1;e<a.length;e+=2)o=t.calc(a[e],a[e+1],f),c.push(o[0],o[1])}r.segments[i]=c},!0)},a.prototype.__evaluateStack=function(){var t,e;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(t=s(),e=this.__stack.length;--e>=0;)t.matrix(this.__stack[e].toArray());this.__matrix(t),this.__stack=[]}},a.prototype.toString=function(){var t,e,r=[];this.__evaluateStack();for(var a=0;a<this.segments.length;a++)e=this.segments[a][0],t=a>0&&"m"!==e&&"M"!==e&&e===this.segments[a-1][0],r=r.concat(t?this.segments[a].slice(1):this.segments[a]);return r.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},a.prototype.translate=function(t,e){return this.__stack.push(s().translate(t,e||0)),this},a.prototype.scale=function(t,e){return this.__stack.push(s().scale(t,e||0===e?e:t)),this},a.prototype.rotate=function(t,e,r){return this.__stack.push(s().rotate(t,e||0,r||0)),this},a.prototype.skewX=function(t){return this.__stack.push(s().skewX(t)),this},a.prototype.skewY=function(t){return this.__stack.push(s().skewY(t)),this},a.prototype.matrix=function(t){return this.__stack.push(s().matrix(t)),this},a.prototype.transform=function(t){return t.trim()?(this.__stack.push(n(t)),this):this},a.prototype.round=function(t){var e,r=0,a=0,i=0,n=0;return t=t||0,this.__evaluateStack(),this.segments.forEach(function(s){var o=s[0].toLowerCase()===s[0];switch(s[0]){case"H":case"h":return o&&(s[1]+=i),i=s[1]-s[1].toFixed(t),void(s[1]=+s[1].toFixed(t));case"V":case"v":return o&&(s[1]+=n),n=s[1]-s[1].toFixed(t),void(s[1]=+s[1].toFixed(t));case"Z":case"z":return i=r,void(n=a);case"M":case"m":return o&&(s[1]+=i,s[2]+=n),i=s[1]-s[1].toFixed(t),n=s[2]-s[2].toFixed(t),r=i,a=n,s[1]=+s[1].toFixed(t),void(s[2]=+s[2].toFixed(t));case"A":case"a":return o&&(s[6]+=i,s[7]+=n),i=s[6]-s[6].toFixed(t),n=s[7]-s[7].toFixed(t),s[1]=+s[1].toFixed(t),s[2]=+s[2].toFixed(t),s[3]=+s[3].toFixed(t+2),s[6]=+s[6].toFixed(t),void(s[7]=+s[7].toFixed(t));default:return e=s.length,o&&(s[e-2]+=i,s[e-1]+=n),i=s[e-2]-s[e-2].toFixed(t),n=s[e-1]-s[e-1].toFixed(t),void s.forEach(function(e,r){r&&(s[r]=+s[r].toFixed(t))})}}),this},a.prototype.iterate=function(t,e){var r,a,i,n=this.segments,s={},o=!1,u=0,c=0,h=0,f=0;if(e||this.__evaluateStack(),n.forEach(function(e,r){var a=t(e,r,u,c);Array.isArray(a)&&(s[r]=a,o=!0);var i=e[0]===e[0].toLowerCase();switch(e[0]){case"m":case"M":return u=e[1]+(i?u:0),c=e[2]+(i?c:0),h=u,void(f=c);case"h":case"H":return void(u=e[1]+(i?u:0));case"v":case"V":return void(c=e[1]+(i?c:0));case"z":case"Z":return u=h,void(c=f);default:u=e[e.length-2]+(i?u:0),c=e[e.length-1]+(i?c:0)}}),!o)return this;for(i=[],r=0;r<n.length;r++)if("undefined"!=typeof s[r])for(a=0;a<s[r].length;a++)i.push(s[r][a]);else i.push(n[r]);return this.segments=i,this},a.prototype.abs=function(){return this.iterate(function(t,e,r,a){var i,n=t[0],s=n.toUpperCase();if(n!==s)switch(t[0]=s,n){case"v":return void(t[1]+=a);case"a":return t[6]+=r,void(t[7]+=a);default:for(i=1;i<t.length;i++)t[i]+=i%2?r:a}},!0),this},a.prototype.rel=function(){return this.iterate(function(t,e,r,a){var i,n=t[0],s=n.toLowerCase();if(n!==s&&(0!==e||"M"!==n))switch(t[0]=s,n){case"V":return void(t[1]-=a);case"A":return t[6]-=r,void(t[7]-=a);default:for(i=1;i<t.length;i++)t[i]-=i%2?r:a}},!0),this},a.prototype.unarc=function(){return this.iterate(function(t,e,r,a){var i,n,s,u=[],c=t[0];return"A"!==c&&"a"!==c?null:("a"===c?(n=r+t[6],s=a+t[7]):(n=t[6],s=t[7]),i=o(r,a,n,s,t[4],t[5],t[1],t[2],t[3]),0===i.length?[["a"===t[0]?"l":"L",t[6],t[7]]]:(i.forEach(function(t){u.push(["C",t[2],t[3],t[4],t[5],t[6],t[7]])}),u))}),this},a.prototype.unshort=function(){var t,e,r,a,i,n=this.segments;return this.iterate(function(s,o,u,c){var h,f=s[0],l=f.toUpperCase();o&&("T"===l?(h="t"===f,r=n[o-1],"Q"===r[0]?(t=r[1]-u,e=r[2]-c):"q"===r[0]?(t=r[1]-r[3],e=r[2]-r[4]):(t=0,e=0),a=-t,i=-e,h||(a+=u,i+=c),n[o]=[h?"q":"Q",a,i,s[1],s[2]]):"S"===l&&(h="s"===f,r=n[o-1],"C"===r[0]?(t=r[3]-u,e=r[4]-c):"c"===r[0]?(t=r[3]-r[5],e=r[4]-r[6]):(t=0,e=0),a=-t,i=-e,h||(a+=u,i+=c),n[o]=[h?"c":"C",a,i,s[1],s[2],s[3],s[4]]))}),this},e.exports=a},{"./a2c":2,"./ellipse":3,"./matrix":4,"./path_parse":5,"./transform_parse":7}],7:[function(t,e,r){"use strict";var a=t("./matrix"),i={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},n=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,s=/[\s,]+/;e.exports=function(t){var e,r,o=new a;return t.split(n).forEach(function(t){if(t.length){if("undefined"!=typeof i[t])return void(e=t);switch(r=t.split(s).map(function(t){return+t||0}),e){case"matrix":return void(6===r.length&&o.matrix(r));case"scale":return void(1===r.length?o.scale(r[0],r[0]):2===r.length&&o.scale(r[0],r[1]));case"rotate":return void(1===r.length?o.rotate(r[0],0,0):3===r.length&&o.rotate(r[0],r[1],r[2]));case"translate":return void(1===r.length?o.translate(r[0],0):2===r.length&&o.translate(r[0],r[1]));case"skewX":return void(1===r.length&&o.skewX(r[0]));case"skewY":return void(1===r.length&&o.skewY(r[0]))}}}),o}},{"./matrix":4}],8:[function(e,r,a){!function(e){function a(t){this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=t.replace(/ /g,""),t=t.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};for(var r in e)t==r&&(t=e[r]);for(var i=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n<i.length;n++){var s=i[n].re,o=i[n].process,u=s.exec(t);if(u){var c=o(u);this.r=c[0],this.g=c[1],this.b=c[2],this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r},this.getHelpXML=function(){for(var t=new Array,r=0;r<i.length;r++)for(var n=i[r].example,s=0;s<n.length;s++)t[t.length]=n[s];for(var o in e)t[t.length]=o;var u=document.createElement("ul");u.setAttribute("id","rgbcolor-examples");for(var r=0;r<t.length;r++)try{var c=document.createElement("li"),h=new a(t[r]),f=document.createElement("div");f.style.cssText="margin: 3px; border: 1px solid black; background:"+h.toHex()+"; color:"+h.toHex(),f.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[r]+" -> "+h.toRGB()+" -> "+h.toHex());c.appendChild(f),c.appendChild(l),u.appendChild(c)}catch(t){}return u}}return"function"==typeof t&&t.amd?t(function(){return a}):"undefined"!=typeof r&&r.exports?r.exports=a:e.RGBColor=a,a}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this)},{}],9:[function(e,r,a){!function(a){function i(t,e){var r=f(t,"font-family");r&&o.setFont(r),e&&e.ok&&o.setTextColor(e.r,e.g,e.b);var a,i=f(t,"font-weight");i&&"bold"===i&&(a="bold");var n=f(t,"font-style");n&&"italic"===n&&(a+="italic"),o.setFontType(a);var s=16,u=f(t,"font-size");u&&(s=parseFloat(u),o.setFontSize(s))}var n,s,o,u=2/3,c=/url\(#([^)]+)\)/,h=function(t){var e=t.pathSegList;if(e)return e;e=[];var r=t.getAttribute("d");s&&(r=s(r).unshort().unarc().abs().toString());for(var a,i=/([a-df-zA-DF-Z])([^a-df-zA-DF-Z]*)/g;a=i.exec(r);){var n=F(a[2]),o=a[1],u="zZ".indexOf(o)>=0?0:"hHvV".indexOf(o)>=0?1:"mMlLtT".indexOf(o)>=0?2:"sSqQ".indexOf(o)>=0?4:"aA".indexOf(o)>=0?7:"cC".indexOf(o)>=0?6:-1,c=0;do{var h={pathSegTypeAsLetter:o};switch(o){case"h":case"H":h.x=n[c];break;case"v":case"V":h.y=n[c];break;case"c":case"C":h.x1=n[c+u-6],h.y1=n[c+u-5];case"s":case"S":h.x2=n[c+u-4],h.y2=n[c+u-3];case"t":case"T":case"l":case"L":case"m":case"M":h.x=n[c+u-2],h.y=n[c+u-1];break;case"q":case"Q":h.x1=n[c],h.y1=n[c+1],h.x=n[c+2],h.y=n[c+3];break;case"a":case"A":throw new Error("Cannot convert Arcs without SvgPath package")}e.push(h),c+=u}while(c<n.length)}return e.getItem=function(t){return this[t]},e.numberOfItems=e.length,e},f=function(t,e,r){return r=r||e,t.getAttribute(e)||t.style[r]},l=function(t,e){return e.split(",").indexOf(t.tagName.toLowerCase())>=0},d=function(t,e){for(var r=[],a=0;a<t.childNodes.length;a++){var i=t.childNodes[a];"#"!==i.nodeName.charAt(0)&&r.push(i)}for(a=0;a<r.length;a++)e(a,r[a])},g=function(t,e){return Math.atan2(e[1]-t[1],e[0]-t[0])},p=function(t,e){var r=e[0]-t[0],a=e[1]-t[1];return[t[0]+2*r,t[1]+2*a]},b=function(t,e){return[u*(e[0]-t[0])+t[0],u*(e[1]-t[1])+t[1]]},x=function(t,e,r,a,i){var n,s=r.getItem(t-1);return n=t>0&&("C"===s.pathSegTypeAsLetter||"S"===s.pathSegTypeAsLetter)?p([s.x2,s.y2],e):t>0&&("c"===s.pathSegTypeAsLetter||"s"===s.pathSegTypeAsLetter)?p([s.x2+a,s.y2+i],e):[e[0],e[1]]},m=function(t){this.prefix=t,this.id=0,this.nextChild=function(){return new m("_"+this.id++ +"_"+this.get())},this.get=function(){return this.prefix}},v=function(t,e){for(var r=/_\d+_/;!e[t]&&r.exec(t);)t=t.replace(r,"");return e[t]},y=function(t){return t.replace(/[\n\s\r]+/," ").trim()},A=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e},k=function(t){var e,r,a,i,n,s,u,c,h=o.unitMatrix;if(l(t,"svg,g"))c=parseFloat(t.getAttribute("x"))||0,u=parseFloat(t.getAttribute("y"))||0,s=t.getAttribute("viewBox"),s?(n=F(s),i=n[2]-n[0],a=n[3]-n[1],r=parseFloat(t.getAttribute("width"))||i,e=parseFloat(t.getAttribute("height"))||a,h=new o.Matrix(r/i,0,0,e/a,c-n[0],u-n[1])):h=new o.Matrix(1,0,0,1,c,u);else if(l(t,"marker"))if(c=-parseFloat(t.getAttribute("refX"))||0,u=-parseFloat(t.getAttribute("refY"))||0,s=t.getAttribute("viewBox")){n=F(s),i=n[2]-n[0],a=n[3]-n[1],r=parseFloat(t.getAttribute("markerWidth"))||i,e=parseFloat(t.getAttribute("markerHeight"))||a;var f=new o.Matrix(r/i,0,0,e/a,0,0),d=new o.Matrix(1,0,0,1,c,u);h=o.matrixMult(d,f)}else h=new o.Matrix(1,0,0,1,c,u);var g=t.getAttribute("transform");return g?o.matrixMult(h,M(g)):h},w=function(t){for(var e=F(t),r=[],a=0;a<e.length-1;a+=2){var i=e[a],n=e[a+1];r.push([i,n])}return r},M=function(t){if(!t)return o.unitMatrix;for(var e,r=/^\s*matrix\(([^\)]+)\)\s*/,a=/^\s*translate\(([^\)]+)\)\s*/,i=/^\s*rotate\(([^\)]+)\)\s*/,n=/^\s*scale\(([^\)]+)\)\s*/,s=/^\s*skewX\(([^\)]+)\)\s*/,u=/^\s*skewY\(([^\)]+)\)\s*/,c=o.unitMatrix;t.length>0;){var h=r.exec(t);if(h&&(e=F(h[1]),c=o.matrixMult(new o.Matrix(e[0],e[1],e[2],e[3],e[4],e[5]),c),t=t.substr(h[0].length)),h=i.exec(t)){e=F(h[1]);var f=Math.PI*e[0]/180;if(c=o.matrixMult(new o.Matrix(Math.cos(f),Math.sin(f),-Math.sin(f),Math.cos(f),0,0),c),e[1]&&e[2]){var l=new o.Matrix(1,0,0,1,e[1],e[2]),d=new o.Matrix(1,0,0,1,-e[1],-e[2]);c=o.matrixMult(d,o.matrixMult(c,l))}t=t.substr(h[0].length)}h=a.exec(t),h&&(e=F(h[1]),c=o.matrixMult(new o.Matrix(1,0,0,1,e[0],e[1]||0),c),t=t.substr(h[0].length)),h=n.exec(t),h&&(e=F(h[1]),e[1]||(e[1]=e[0]),c=o.matrixMult(new o.Matrix(e[0],0,0,e[1],0,0),c),t=t.substr(h[0].length)),h=s.exec(t),h&&(e=parseFloat(h[1]),c=o.matrixMult(new o.Matrix(1,0,Math.tan(e),1,0,0),c),t=t.substr(h[0].length)),h=u.exec(t),h&&(e=parseFloat(h[1]),c=o.matrixMult(new o.Matrix(1,Math.tan(e),0,1,0,0),c),t=t.substr(h[0].length))}return c},F=function(t){for(var e,r=[],a=/[+-]?(?:(?:\d+\.?\d*)|(?:\d*\.?\d+))(?:[eE][+-]?\d+)?/g;e=a.exec(t);)r.push(parseFloat(e[0]));return r},C=function(t){var e=/\s*rgba\(((?:[^,\)]*,){3}[^,\)]*)\)\s*/.exec(t);if(e){var r=F(e[1]),a=new n("rgb("+r.slice(0,3).join(",")+")");return a.a=r[3],a}return new n(t)},S=function(t,e){var r=t[0],a=t[1];return[e.a*r+e.c*a+e.e,e.b*r+e.d*a+e.f]},I=function(t){var e,r,a,i,n,s,o,u,c=parseFloat;if(l(t,"polygon")){var g=w(t.getAttribute("points"));for(r=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,n=Number.NEGATIVE_INFINITY,e=0;e<g.length;e++){var p=g[e];r=Math.min(r,p[0]),i=Math.max(i,p[0]),a=Math.min(a,p[1]),n=Math.max(n,p[1])}u=[r,a,i-r,n-a]}else if(l(t,"path")){var m=h(t);r=Number.POSITIVE_INFINITY,a=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,n=Number.NEGATIVE_INFINITY;var v,y,A,k,M,C,S,_=0,T=0;for(e=0;e<m.numberOfItems;e++){var q=m.getItem(e),L=q.pathSegTypeAsLetter;switch(L){case"H":A=q.x,k=T;break;case"h":A=q.x+_,k=T;break;case"V":A=_,k=q.y;break;case"v":A=_,k=q.y+T;break;case"C":M=[q.x1,q.y1],C=[q.x2,q.y2],S=[q.x,q.y];break;case"c":M=[q.x1+_,q.y1+T],C=[q.x2+_,q.y2+T],S=[q.x+_,q.y+T];break;case"S":M=x(e,[_,T],m,v,y),C=[q.x2,q.y2],S=[q.x,q.y];break;case"s":M=x(e,[_,T],m,v,y),C=[q.x2+_,q.y2+T],S=[q.x+_,q.y+T];break;case"Q":c=[q.x1,q.y1],M=b([_,T],c),C=b([q.x,q.y],c),S=[q.x,q.y];break;case"q":c=[q.x1+_,q.y1+T],M=b([_,T],c),C=b([_+q.x,T+q.y],c),S=[q.x+_,q.y+T];break;case"T":M=x(e,[_,T],m,v,y),M=b([_,T],c),C=b([q.x,q.y],c),S=[q.x,q.y];break;case"t":c=x(e,[_,T],m,v,y),M=b([_,T],c),C=b([_+q.x,T+q.y],c),S=[q.x+_,q.y+T]}"sScCqQtT".indexOf(L)>=0&&(v=_,y=T),"MLCSQT".indexOf(L)>=0?(_=q.x,T=q.y):"mlcsqt".indexOf(L)>=0?(_=q.x+_,T=q.y+T):"zZ".indexOf(L)<0&&(_=A,T=k),"CSQTcsqt".indexOf(L)>=0?(r=Math.min(r,_,M[0],C[0],S[0]),i=Math.max(i,_,M[0],C[0],S[0]),a=Math.min(a,T,M[1],C[1],S[1]),n=Math.max(n,T,M[1],C[1],S[1])):(r=Math.min(r,_),i=Math.max(i,_),a=Math.min(a,T),n=Math.max(n,T))}u=[r,a,i-r,n-a]}else{if(l(t,"svg"))return s=t.getAttribute("viewBox"),s&&(o=F(s)),[c(t.getAttribute("x"))||o&&o[0]||0,c(t.getAttribute("y"))||o&&o[1]||0,c(t.getAttribute("width"))||o&&o[2]||0,c(t.getAttribute("height"))||o&&o[3]||0];if(l(t,"g"))u=[0,0,0,0],d(t,function(t,e){var r=I(e);u=[Math.min(u[0],r[0]),Math.min(u[1],r[1]),Math.max(u[0]+u[2],r[0]+r[2])-Math.min(u[0],r[0]),Math.max(u[1]+u[3],r[1]+r[3])-Math.min(u[1],r[1])]});else{if(l(t,"marker"))return s=t.getAttribute("viewBox"),s&&(o=F(s)),[o&&o[0]||0,o&&o[1]||0,o&&o[2]||c(t.getAttribute("marker-width"))||0,o&&o[3]||c(t.getAttribute("marker-height"))||0];if(l(t,"pattern"))return[c(t.getAttribute("x"))||0,c(t.getAttribute("y"))||0,c(t.getAttribute("width"))||0,c(t.getAttribute("height"))||0];var N=c(t.getAttribute("x1"))||c(t.getAttribute("x"))||c(t.getAttribute("cx")-c(t.getAttribute("r")))||0,O=c(t.getAttribute("x2"))||N+c(t.getAttribute("width"))||c(t.getAttribute("cx"))+c(t.getAttribute("r"))||0,P=c(t.getAttribute("y1"))||c(t.getAttribute("y"))||c(t.getAttribute("cy"))-c(t.getAttribute("r"))||0,E=c(t.getAttribute("y2"))||P+c(t.getAttribute("height"))||c(t.getAttribute("cy"))+c(t.getAttribute("r"))||0;u=[Math.min(N,O),Math.min(P,E),Math.max(N,O)-Math.min(N,O),Math.max(P,E)-Math.min(P,E)]}}if(!l(t,"marker,svg,g")){var G=f(t,"stroke-width")||1,j=f(t,"stroke-miterlimit");return j&&(G*=.5/Math.sin(Math.PI/12)),[u[0]-G,u[1]-G,u[2]+2*G,u[3]+2*G]}return u},_=function(t,e,r,a,i){for(var n=w(t.getAttribute("points")),s=[{op:"m",c:S(n[0],e)}],u=1;u<n.length;u++){var c=n[u],h=S(c,e);s.push({op:"l",c:h})}s.push({op:"h"}),o.path(s,r,a,i)},T=function(t){var e=t.getAttribute("xlink:href")||t.getAttribute("href"),r=new Image;r.src=e;var a=document.createElement("canvas"),i=parseFloat(t.getAttribute("width")),n=parseFloat(t.getAttribute("height")),s=parseFloat(t.getAttribute("x")||0),u=parseFloat(t.getAttribute("y")||0);a.width=i,a.height=n;var c=a.getContext("2d");c.fillStyle="#fff",c.fillRect(0,0,i,n),c.drawImage(r,0,0,i,n);var h=a.toDataURL("image/jpeg");o.addImage(h,"jpeg",s,u,i,n)},q=function(t,e,r,a,i,n){var s=h(t),u=t.getAttribute("marker-end"),f=t.getAttribute("marker-start"),l=t.getAttribute("marker-mid"),d=function(t,e){for(var r,a,i,n,c,h,d,p,m,v,y=0,A=0,k=y,w=A,M=[],F=[],C=0,I=function(t,r,a){var i,n=Math.cos(t),s=Math.sin(t);i=new o.Matrix(n,s,-s,n,r[0],r[1]),F.push({type:a,tf:o.matrixMult(i,e)})},_=0;_<s.numberOfItems;_++){var T=s.getItem(_),q=T.pathSegTypeAsLetter;switch(q){case"M":k=y,w=A,c=[T.x,T.y],m="m";break;case"m":k=y,w=A,c=[T.x+y,T.y+A],m="m";break;case"L":c=[T.x,T.y],m="l";break;case"l":c=[T.x+y,T.y+A],m="l";break;case"H":c=[T.x,A],m="l",i=T.x,n=A;break;case"h":c=[T.x+y,A],m="l",i=T.x+y,n=A;break;case"V":c=[y,T.y],m="l",i=y,n=T.y;break;case"v":c=[y,T.y+A],m="l",i=y,n=T.y+A;break;case"C":d=[T.x1,T.y1],p=[T.x2,T.y2],c=[T.x,T.y];break;case"c":d=[T.x1+y,T.y1+A],p=[T.x2+y,T.y2+A],c=[T.x+y,T.y+A];break;case"S":d=x(_,[y,A],s,r,a),p=[T.x2,T.y2],c=[T.x,T.y];break;case"s":d=x(_,[y,A],s,r,a),p=[T.x2+y,T.y2+A],c=[T.x+y,T.y+A];break;case"Q":h=[T.x1,T.y1],d=b([y,A],h),p=b([T.x,T.y],h),c=[T.x,T.y];break;case"q":h=[T.x1+y,T.y1+A],d=b([y,A],h),p=b([y+T.x,A+T.y],h),c=[T.x+y,T.y+A];break;case"T":d=x(_,[y,A],s,r,a),d=b([y,A],h),p=b([T.x,T.y],h),c=[T.x,T.y];break;case"t":h=x(_,[y,A],s,r,a),d=b([y,A],h),p=b([y+T.x,A+T.y],h),c=[T.x+y,T.y+A];break;case"Z":case"z":y=k,A=w,M.push({op:"h"})}var L=f&&(1===_||"mM".indexOf(q)<0&&"mM".indexOf(s.getItem(_-1).pathSegTypeAsLetter)>=0),N=u&&(_===s.numberOfItems-1||"mM".indexOf(q)<0&&"mM".indexOf(s.getItem(_+1).pathSegTypeAsLetter)>=0),O=l&&_>0&&!(1===_&&"mM".indexOf(s.getItem(_-1).pathSegTypeAsLetter)>=0);if("sScCqQtT".indexOf(q)>=0)L&&I(g([y,A],d),[y,A],"start"),N&&I(g(p,c),c,"end"),O&&(v=g([y,A],d),v="mM".indexOf(s.getItem(_-1).pathSegTypeAsLetter)>=0?v:.5*(C+v),I(v,[y,A],"mid")),C=g(p,c),r=y,a=A,d=S(d,e),p=S(p,e),h=S(c,e),M.push({op:"c",c:[d[0],d[1],p[0],p[1],h[0],h[1]]});else if("lLhHvVmM".indexOf(q)>=0){if(v=g([y,A],c),L&&I(v,[y,A],"start"),N&&I(v,c,"end"),O){var P="mM".indexOf(q)>=0?C:"mM".indexOf(s.getItem(_-1).pathSegTypeAsLetter)>=0?v:.5*(C+v);I(P,[y,A],"mid")}C=v,h=S(c,e),M.push({op:m,c:h})}"MLCSQT".indexOf(q)>=0?(y=T.x,A=T.y):"mlcsqt".indexOf(q)>=0?(y=T.x+y,A=T.y+A):"zZ".indexOf(q)<0&&(y=i,A=n)}return{lines:M,markers:F}},p=d(s,e);if(u||f||l)for(var m=0;m<p.markers.length;m++){var v,y=p.markers[m];switch(y.type){case"start":v=r.get()+c.exec(f)[1];break;case"end":v=r.get()+c.exec(u)[1];break;case"mid":v=r.get()+c.exec(l)[1]}o.doFormObject(v,y.tf)}p.lines.length>0&&o.path(p.lines,a,i,n)},L=function(t,e,r){var a=t.getAttribute("href")||t.getAttribute("xlink:href");if(a){var i=o.getFormObject(r.get()+a.substring(1)),n=t.getAttribute("x")||0,s=t.getAttribute("y")||0,u=t.getAttribute("width")||i.width,c=t.getAttribute("height")||i.height,h=new o.Matrix(u/i.width||0,0,0,c/i.height||0,n,s);h=o.matrixMult(h,e),o.doFormObject(r.get()+a.substring(1),h)}},N=function(t,e){var r=S([parseFloat(t.getAttribute("x1")),parseFloat(t.getAttribute("y1"))],e),a=S([parseFloat(t.getAttribute("x2")),parseFloat(t.getAttribute("y2"))],e);o.line(r[0],r[1],a[0],a[1])},O=function(t,e,r,a){o.roundedRect(parseFloat(t.getAttribute("x"))||0,parseFloat(t.getAttribute("y"))||0,parseFloat(t.getAttribute("width")),parseFloat(t.getAttribute("height")),parseFloat(t.getAttribute("rx"))||0,parseFloat(t.getAttribute("ry"))||0,e,r,a)},P=function(t,e,r,a){o.ellipse(parseFloat(t.getAttribute("cx"))||0,parseFloat(t.getAttribute("cy"))||0,parseFloat(t.getAttribute("rx")),parseFloat(t.getAttribute("ry")),e,r,a)},E=function(t,e,r,a){var i=parseFloat(t.getAttribute("r"))||0;o.ellipse(parseFloat(t.getAttribute("cx"))||0,parseFloat(t.getAttribute("cy"))||0,i,i,e,r,a)},G=function(t,e){var r=f(t,"text-transform");switch(r){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();default:return e}},j=function(t,e,r,a){o.saveGraphicsState(),i(t,a);var s=function(t,e){var r=0;switch(t){case"end":r=e;break;case"middle":r=e/2;break;case"start":}return r},u=function(t,e){var r;return(r=t&&t.toString().match(/^([\-0-9.]+)em$/))?parseFloat(r[1])*e:(r=t&&t.toString().match(/^([\-0-9.]+)(px|)$/),r?parseFloat(r[1]):0)},c=document.createElementNS("http://www.w3.org/2000/svg","svg");c.appendChild(t),c.setAttribute("visibility","hidden"),document.body.appendChild(c);var h,l,g=t.getBBox(),p=0,b=f(t,"text-anchor");b&&(p=s(b,g.width));var x=o.getFontSize(),m=u(t.getAttribute("x"),x),v=u(t.getAttribute("y"),x),A=o.matrixMult(new o.Matrix(1,0,0,1,m,v),e);h=u(t.getAttribute("dx"),x),l=u(t.getAttribute("dy"),x),0===t.childElementCount?o.text(h-p,l,G(t,y(t.textContent)),void 0,A):d(t,function(e,r){o.saveGraphicsState();var a=f(r,"fill");i(r,a&&new n(a));var s=r.getExtentOfChar(0);o.text(s.x-m,s.y+.7*s.height-v,G(t,y(r.textContent)),void 0,A),o.restoreGraphicsState()}),document.body.removeChild(c),o.restoreGraphicsState()},V=function(t,e,r,a,i){d(t,function(t,n){"defs"===n.tagName.toLowerCase()&&(U(n,e,r,a,i),n.parentNode.removeChild(n))})},Y=function(t,e,r,a,i){var n=a.nextChild(),s=A(r);V(t,e,s,n,i),z(t,e,s,n,i)},z=function(t,e,r,a,i){d(t,function(t,n){U(n,e,r,a,i)})},H=function(t,e,r,a,i){var s,u=[],c=0,h=!1;d(t,function(t,e){if("stop"===e.tagName.toLowerCase()){var r=new n(f(e,"stop-color"));u.push({offset:parseFloat(e.getAttribute("offset")),color:[r.r,r.g,r.b]});var a=f(e,"stop-opacity");a&&1!=a&&(c+=parseFloat(a), | ||
h=!0)}}),h&&(s=new o.GState({opacity:c/r.length}));var l=new o.ShadingPattern(e,r,u,s),g=i.get()+t.getAttribute("id");o.addShadingPattern(g,l),a[g]=t},B=function(t,e,r){var a=r.get()+t.getAttribute("id");e[a]=t;var i=I(t),n=new o.TilingPattern([i[0],i[1],i[0]+i[2],i[1]+i[3]],i[2],i[3],null,k(t));o.beginTilingPattern(n),z(t,o.unitMatrix,e,r,!1),o.endTilingPattern(a,n)},U=function(t,e,r,a,s){function u(){p=new n("rgb(0, 0, 0)"),g=!0,b="F"}var h,d,g=!1,p=null,b=null,x=null,m=null,y=s&&!l(t,"lineargradient,radialgradient,pattern");if(y?(h=k(t),d=I(t),o.beginFormObject(d[0],d[1],d[2],d[3],h),h=o.unitMatrix,s=!1):(h=o.matrixMult(k(t),e),o.saveGraphicsState()),l(t,"g,path,rect,text,ellipse,line,circle,polygon")){var A=f(t,"fill");if(A){var w=c.exec(A);if(w){x=a.get()+w[1];var S=v(x,r);if(S&&l(S,"lineargradient,radialgradient")){var G=h;if(!S.hasAttribute("gradientUnits")||"objectboundingbox"===S.getAttribute("gradientUnits").toLowerCase()){d||(d=I(t)),G=new o.Matrix(d[2],0,0,d[3],d[0],d[1]);var U=k(t);G=o.matrixMult(G,U)}var Q=M(S.getAttribute("gradientTransform"));m=o.matrixMult(Q,G)}else if(S&&l(S,"pattern")){var D,X,Z,R,$;m={};var W=o.unitMatrix;S.hasAttribute("patternUnits")&&"objectboundingbox"!==S.getAttribute("patternUnits").toLowerCase()||(d||(d=I(t)),W=new o.Matrix(1,0,0,1,d[0],d[1]),D=I(S),$=D[0]*d[0],X=D[1]*d[1],Z=D[2]*d[2],R=D[3]*d[3],m.boundingBox=[$,X,$+Z,X+R],m.xStep=Z,m.yStep=R);var J=o.unitMatrix;S.hasAttribute("patternContentUnits")&&"objectboundingbox"===S.getAttribute("patternContentUnits").toLowerCase()&&(d||(d=I(t)),J=new o.Matrix(d[2],0,0,d[3],0,0),D=m.boundingBox||I(S),$=D[0]/d[0],X=D[1]/d[1],Z=D[2]/d[2],R=D[3]/d[3],m.boundingBox=[$,X,$+Z,X+R],m.xStep=Z,m.yStep=R),m.matrix=o.matrixMult(o.matrixMult(J,W),h),b="F"}else x=S=null,u()}else p=C(A),p.ok?(g=!0,b="F"):b=null}else u();var K=1,tt=t.getAttribute("opacity")||t.getAttribute("fill-opacity");tt&&(K*=parseFloat(tt)),p&&"number"==typeof p.a&&(K*=p.a),o.setGState(new o.GState({opacity:K}))}if(l(t,"g,path,rect,ellipse,line,circle,polygon")){g&&o.setFillColor(p.r,p.g,p.b);var et=t.getAttribute("stroke");if(et){var rt;t.hasAttribute("stroke-width")&&(rt=Math.abs(parseFloat(t.getAttribute("stroke-width"))),o.setLineWidth(rt));var at=new n(et);at.ok&&(o.setDrawColor(at.r,at.g,at.b),0!==rt&&(b=(b||"")+"D")),t.hasAttribute("stroke-linecap")&&o.setLineCap(t.getAttribute("stroke-linecap")),t.hasAttribute("stroke-linejoin")&&o.setLineJoin(t.getAttribute("stroke-linejoin")),t.hasAttribute("stroke-dasharray")&&o.setLineDashPattern(F(t.getAttribute("stroke-dasharray")),parseInt(t.getAttribute("stroke-dashoffset"))||0),t.hasAttribute("stroke-miterlimit")&&o.setLineMiterLimit(parseFloat(t.getAttribute("stroke-miterlimit")))}}switch(i(t,p),t.tagName.toLowerCase()){case"svg":Y(t,h,r,a,s);break;case"g":V(t,h,r,a,s);case"a":case"marker":z(t,h,r,a,s);break;case"defs":z(t,h,r,a,!0);break;case"use":L(t,h,a);break;case"line":N(t,h);break;case"rect":o.setCurrentTransformationMatrix(h),O(t,b,x,m);break;case"ellipse":o.setCurrentTransformationMatrix(h),P(t,b,x,m);break;case"circle":o.setCurrentTransformationMatrix(h),E(t,b,x,m);break;case"text":j(t,h,g,p);break;case"path":q(t,h,a,b,x,m);break;case"polygon":_(t,h,b,x,m);break;case"image":o.setCurrentTransformationMatrix(h),T(t);break;case"lineargradient":H(t,"axial",[t.getAttribute("x1"),t.getAttribute("y1"),t.getAttribute("x2"),t.getAttribute("y2")],r,a);break;case"radialgradient":H(t,"radial",[t.getAttribute("fx")||t.getAttribute("cx"),t.getAttribute("fy")||t.getAttribute("cy"),0,t.getAttribute("cx")||0,t.getAttribute("cy")||0,t.getAttribute("r")||0],r,a);break;case"pattern":B(t,r,a)}y?o.endFormObject(a.get()+t.getAttribute("id")):o.restoreGraphicsState()},Q=function(t,e,r){o=e;var a=r.scale||1,i=r.xOffset||0,n=r.yOffset||0;return o.saveGraphicsState(),o.setCurrentTransformationMatrix(new o.Matrix(a,0,0,a,i,n)),U(t.cloneNode(!0),o.unitMatrix,{},new m(""),!1),o.restoreGraphicsState(),o};return"function"==typeof t&&t.amd?t(["./rgbcolor","./SvgPath"],function(t,e){return n=t,s=e,Q}):"undefined"!=typeof r&&r.exports?(n=e("./rgbcolor.js"),s=e("SvgPath"),r.exports=Q):(s=a.SvgPath,n=a.RGBColor,a.svg2pdf=Q,a.svgElementToPdf=Q),Q}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this)},{"./rgbcolor.js":8,SvgPath:1}]},{},[9])(9)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Accessibility module | ||
@@ -10,38 +10,39 @@ | ||
*/ | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(e){function n(a){return a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#x27;").replace(/\//g,"\x26#x2F;")}function A(a){for(var b=a.childNodes.length;b--;)a.appendChild(a.childNodes[b])}function k(a){var b;a&&a.onclick&&(b=l.createEvent("Events"),b.initEvent("click",!0,!1),a.onclick(b))}var y=e.win,l=y.document,g=e.each, | ||
B=e.erase,u=e.addEvent,C=e.removeEvent,w=e.fireEvent,D=e.dateFormat,v=e.merge,r={"default":["series","data point","data points"],line:["line","data point","data points"],spline:["line","data point","data points"],area:["line","data point","data points"],areaspline:["line","data point","data points"],pie:["pie","slice","slices"],column:["column series","column","columns"],bar:["bar series","bar","bars"],scatter:["scatter series","data point","data points"],boxplot:["boxplot series","box","boxes"], | ||
arearange:["arearange series","data point","data points"],areasplinerange:["areasplinerange series","data point","data points"],bubble:["bubble series","bubble","bubbles"],columnrange:["columnrange series","column","columns"],errorbar:["errorbar series","errorbar","errorbars"],funnel:["funnel","data point","data points"],pyramid:["pyramid","data point","data points"],waterfall:["waterfall series","column","columns"],map:["map","area","areas"],mapline:["line","data point","data points"],mappoint:["point series", | ||
"data point","data points"],mapbubble:["bubble series","bubble","bubbles"]},E={boxplot:" Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile and maximum. ",arearange:" Arearange charts are line charts displaying a range between a lower and higher value for each point. ",areasplinerange:" These charts are line charts displaying a range between a lower and higher value for each point. ", | ||
bubble:" Bubble charts are scatter charts where each data point also has a size value. ",columnrange:" Columnrange charts are column charts displaying a range between a lower and higher value for each point. ",errorbar:" Errorbar series are used to display the variability of the data. ",funnel:" Funnel charts are used to display reduction of data in stages. ",pyramid:" Pyramid charts consist of a single pyramid with item heights corresponding to each point value. ",waterfall:" A waterfall chart is a column chart where each column contributes towards a total end value. "}, | ||
F="name id category x value y".split(" "),z="z open high q3 median q1 low close".split(" ");e.setOptions({accessibility:{enabled:!0,pointDescriptionThreshold:30,keyboardNavigation:{enabled:!0}}});e.wrap(e.Series.prototype,"render",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));this.chart.options.accessibility.enabled&&this.setA11yDescription()});e.Series.prototype.setA11yDescription=function(){var a=this.chart.options.accessibility,b=this.points&&this.points.length&&this.points[0].graphic&& | ||
this.points[0].graphic.element,d=b&&b.parentNode||this.graph&&this.graph.element||this.group&&this.group.element;d&&(d.lastChild===b&&A(d),this.points&&(this.points.length<a.pointDescriptionThreshold||!1===a.pointDescriptionThreshold)&&g(this.points,function(c){c.graphic&&(c.graphic.element.setAttribute("role","img"),c.graphic.element.setAttribute("tabindex","-1"),c.graphic.element.setAttribute("aria-label",a.pointDescriptionFormatter&&a.pointDescriptionFormatter(c)||c.buildPointInfoString()))}), | ||
1<this.chart.series.length||a.describeSingleSeries)&&(d.setAttribute("role","region"),d.setAttribute("tabindex","-1"),d.setAttribute("aria-label",a.seriesDescriptionFormatter&&a.seriesDescriptionFormatter(this)||this.buildSeriesInfoString()))};e.Series.prototype.buildSeriesInfoString=function(){var a=r[this.type]||r.default,b=this.description||this.options.description;return(this.name?this.name+", ":"")+(1===this.chart.types.length?a[0]:"series")+" "+(this.index+1)+" of "+this.chart.series.length+ | ||
(1===this.chart.types.length?" with ":". "+a[0]+" with ")+(this.points.length+" "+(1===this.points.length?a[1]:a[2]))+(b?". "+b:"")+(1<this.chart.yAxis.length&&this.yAxis?". Y axis, "+this.yAxis.getDescription():"")+(1<this.chart.xAxis.length&&this.xAxis?". X axis, "+this.xAxis.getDescription():"")};e.Point.prototype.buildPointInfoString=function(){var a=this,b=a.series,d=b.chart.options.accessibility,c="",f=!1,x=b.xAxis&&b.xAxis.isDatetimeAxis,b=x&&D(d.pointDateFormatter&&d.pointDateFormatter(a)|| | ||
d.pointDateFormat||e.Tooltip.prototype.getXDateFormat(a,b.chart.options.tooltip,b.xAxis),a.x);g(z,function(c){void 0!==a[c]&&(f=!0)});f?(x&&(c=b),g(F.concat(z),function(b){void 0===a[b]||x&&"x"===b||(c+=(c?". ":"")+b+", "+this[b])})):c=(this.name||b||this.category||this.id||"x, "+this.x)+", "+(void 0!==this.value?this.value:this.y);return this.index+1+". "+c+"."+(this.description?" "+this.description:"")};e.Axis.prototype.getDescription=function(){return this.userOptions&&this.userOptions.description|| | ||
this.axisTitle&&this.axisTitle.textStr||this.options.id||this.categories&&"categories"||"values"};e.Axis.prototype.panStep=function(a,b){var d=b||3;b=this.getExtremes();var c=(b.max-b.min)/d*a,d=b.max+c,c=b.min+c,f=d-c;0>a&&c<b.dataMin?(c=b.dataMin,d=c+f):0<a&&d>b.dataMax&&(d=b.dataMax,c=d-f);this.setExtremes(c,d)};e.wrap(e.Series.prototype,"init",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));var b=this.chart;b.options.accessibility.enabled&&(b.types=b.types||[],0>b.types.indexOf(this.type)&& | ||
b.types.push(this.type),u(this,"remove",function(){var a=this,c=!1;g(b.series,function(f){f!==a&&0>b.types.indexOf(a.type)&&(c=!0)});c||B(b.types,a.type)}))});e.Chart.prototype.getTypeDescription=function(){var a=this.types&&this.types[0],b=this.series[0]&&this.series[0].mapTitle;if(a){if("map"===a)return b?"Map of "+b:"Map of unspecified region.";if(1<this.types.length)return"Combination chart.";if(-1<["spline","area","areaspline"].indexOf(a))return"Line chart."}else return"Empty chart.";return a+ | ||
" chart."+(E[a]||"")};e.Chart.prototype.getAxesDescription=function(){var a=this.xAxis.length,b=this.yAxis.length,d={},c;if(a)if(d.xAxis="The chart has "+a+(1<a?" X axes":" X axis")+" displaying ",2>a)d.xAxis+=this.xAxis[0].getDescription()+".";else{for(c=0;c<a-1;++c)d.xAxis+=(c?", ":"")+this.xAxis[c].getDescription();d.xAxis+=" and "+this.xAxis[c].getDescription()+"."}if(b)if(d.yAxis="The chart has "+b+(1<b?" Y axes":" Y axis")+" displaying ",2>b)d.yAxis+=this.yAxis[0].getDescription()+".";else{for(c= | ||
0;c<b-1;++c)d.yAxis+=(c?", ":"")+this.yAxis[c].getDescription();d.yAxis+=" and "+this.yAxis[c].getDescription()+"."}return d};e.Chart.prototype.addAccessibleContextMenuAttribs=function(){var a=this.exportDivElements;a&&(g(a,function(b){"DIV"!==b.tagName||b.children&&b.children.length||(b.setAttribute("role","menuitem"),b.setAttribute("tabindex",-1))}),a[0].parentNode.setAttribute("role","menu"),a[0].parentNode.setAttribute("aria-label","Chart export"))};e.Point.prototype.highlight=function(){var a= | ||
this.series.chart;this.graphic&&this.graphic.element.focus&&this.graphic.element.focus();this.isNull?a.tooltip.hide(0):(this.onMouseOver(),a.tooltip.refresh(a.tooltip.shared?[this]:this));a.highlightedPoint=this;return this};e.Chart.prototype.highlightAdjacentPoint=function(a){var b=this.series,d=this.highlightedPoint,c=d&&d.index||0;if(!b[0]||!b[0].points)return!1;if(!d)return b[0].points[0].highlight();if(d.series.points[c]!==d)for(var f=0;f<d.series.points.length;++f)if(d.series.points[f]===d){c= | ||
f;break}b=b[d.series.index+(a?1:-1)];d=d.series.points[c+(a?1:-1)]||b&&b.points[a?0:b.points.length-1];return void 0===d?!1:d.isNull&&this.options.accessibility.keyboardNavigation&&this.options.accessibility.keyboardNavigation.skipNullPoints?(this.highlightedPoint=d,this.highlightAdjacentPoint(a)):d.highlight()};e.Chart.prototype.showExportMenu=function(){this.exportSVGElements&&this.exportSVGElements[0]&&(this.exportSVGElements[0].element.onclick(),this.highlightExportItem(0))};e.Chart.prototype.highlightExportItem= | ||
function(a){var b=this.exportDivElements&&this.exportDivElements[a],d=this.exportDivElements&&this.exportDivElements[this.highlightedExportItem];if(b&&"DIV"===b.tagName&&(!b.children||!b.children.length)){b.focus&&b.focus();if(d&&d.onmouseout)d.onmouseout();if(b.onmouseover)b.onmouseover();this.highlightedExportItem=a;return!0}};e.Chart.prototype.highlightRangeSelectorButton=function(a){var b=this.rangeSelector.buttons;b[this.highlightedRangeSelectorItemIx]&&b[this.highlightedRangeSelectorItemIx].setState(this.oldRangeSelectorItemState|| | ||
0);this.highlightedRangeSelectorItemIx=a;return b[a]?(b[a].element.focus&&b[a].element.focus(),this.oldRangeSelectorItemState=b[a].state,b[a].setState(2),!0):!1};e.Chart.prototype.highlightLegendItem=function(a){var b=this.legend.allItems;b[this.highlightedLegendItemIx]&&w(b[this.highlightedLegendItemIx].legendGroup.element,"mouseout");this.highlightedLegendItemIx=a;return b[a]?(b[a].legendGroup.element.focus&&b[a].legendGroup.element.focus(),w(b[a].legendGroup.element,"mouseover"),!0):!1};e.Chart.prototype.hideExportMenu= | ||
function(){var a=this.exportDivElements;if(a){g(a,function(b){w(b,"mouseleave")});if(a[this.highlightedExportItem]&&a[this.highlightedExportItem].onmouseout)a[this.highlightedExportItem].onmouseout();this.highlightedExportItem=0;this.renderTo.focus()}};e.Chart.prototype.addKeyboardNavEvents=function(){function a(c){this.keyCodeMap=c.keyCodeMap;this.move=c.move;this.validate=c.validate;this.init=c.init;this.transformTabs=!1!==c.transformTabs}function b(b,d){return new a(v({keyCodeMap:b,move:function(b){c.keyboardNavigationModuleIndex+= | ||
b;var a=c.keyboardNavigationModules[c.keyboardNavigationModuleIndex];if(a){if(a.validate&&!a.validate())return this.move(b);if(a.init)return a.init(b),!0}c.keyboardNavigationModuleIndex=0;c.slipNextTab=!0;return!1}},d))}function d(b){b=b||y.event;var a=c.keyboardNavigationModules[c.keyboardNavigationModuleIndex];9===(b.which||b.keyCode)&&c.slipNextTab?c.slipNextTab=!1:(c.slipNextTab=!1,a&&a.run(b)&&b.preventDefault())}var c=this;a.prototype={run:function(c){var b=this,a=c.which||c.keyCode,f=!1,a= | ||
this.transformTabs&&9===a?c.shiftKey?37:39:a;g(this.keyCodeMap,function(d){-1<d[0].indexOf(a)&&(f=!1===d[1].call(b,a,c)?!1:!0)});return f}};c.keyboardNavigationModules=[b([[[37,39],function(b){if(!c.highlightAdjacentPoint(39===b))return this.move(39===b?1:-1)}],[[38,40],function(b){var a;if(c.highlightedPoint)if((a=c.series[c.highlightedPoint.series.index+(38===b?-1:1)])&&a.points[0])a.points[0].highlight();else return this.move(40===b?1:-1)}],[[13,32],function(){c.highlightedPoint&&c.highlightedPoint.firePointEvent("click")}]], | ||
{init:function(b){var a=c.series&&c.series[c.series.length-1],a=a&&a.points&&a.points[a.points.length-1];0>b&&a&&a.highlight()}}),b([[[37,38],function(){for(var a=c.highlightedExportItem||0,b=!0,d=c.series;a--;)if(c.highlightExportItem(a)){b=!1;break}if(b)return c.hideExportMenu(),d&&d.length&&(a=d[d.length-1],a.points.length&&a.points[a.points.length-1].highlight()),this.move(-1)}],[[39,40],function(){for(var a=!0,b=(c.highlightedExportItem||0)+1;b<c.exportDivElements.length;++b)if(c.highlightExportItem(b)){a= | ||
!1;break}if(a)return c.hideExportMenu(),this.move(1)}],[[13,32],function(){k(c.exportDivElements[c.highlightedExportItem])}]],{validate:function(){return c.exportChart&&!(c.options.exporting&&!1===c.options.exporting.enabled)},init:function(a){c.highlightedPoint=null;c.showExportMenu();if(0>a&&c.exportDivElements)for(a=c.exportDivElements.length;-1<a&&!c.highlightExportItem(a);--a);}}),b([[[38,40,37,39],function(a){c[38===a||40===a?"yAxis":"xAxis"][0].panStep(39>a?-1:1)}],[[9],function(a,b){c.mapNavButtons[c.focusedMapNavButtonIx].setState(0); | ||
if(b.shiftKey&&!c.focusedMapNavButtonIx||!b.shiftKey&&c.focusedMapNavButtonIx)return c.mapZoom(),this.move(b.shiftKey?-1:1);c.focusedMapNavButtonIx+=b.shiftKey?-1:1;a=c.mapNavButtons[c.focusedMapNavButtonIx];a.element.focus&&a.element.focus();a.setState(2)}],[[13,32],function(){k(c.mapNavButtons[c.focusedMapNavButtonIx].element)}]],{validate:function(){return c.mapZoom&&c.mapNavButtons&&2===c.mapNavButtons.length},transformTabs:!1,init:function(a){var b=c.mapNavButtons[0],d=c.mapNavButtons[1],b=0< | ||
a?b:d;g(c.mapNavButtons,function(a,c){a.element.setAttribute("tabindex",-1);a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Zoom "+(c?"out":"")+"chart")});b.element.focus&&b.element.focus();b.setState(2);c.focusedMapNavButtonIx=0<a?0:1}}),b([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!c.highlightRangeSelectorButton(c.highlightedRangeSelectorItemIx+a))return this.move(a)}],[[13,32],function(){3!==c.oldRangeSelectorItemState&&k(c.rangeSelector.buttons[c.highlightedRangeSelectorItemIx].element)}]], | ||
{validate:function(){return c.rangeSelector&&c.rangeSelector.buttons&&c.rangeSelector.buttons.length},init:function(a){g(c.rangeSelector.buttons,function(a){a.element.setAttribute("tabindex","-1");a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Select range "+(a.text&&a.text.textStr))});c.highlightRangeSelectorButton(0<a?0:c.rangeSelector.buttons.length-1)}}),b([[[9,38,40],function(a,b){a=9===a&&b.shiftKey||38===a?-1:1;b=c.highlightedInputRangeIx+=a;if(1<b||0>b)return this.move(a); | ||
c.rangeSelector[b?"maxInput":"minInput"].focus()}]],{validate:function(){return c.rangeSelector&&c.rangeSelector.inputGroup&&"hidden"!==c.rangeSelector.inputGroup.element.getAttribute("visibility")&&!1!==c.options.rangeSelector.inputEnabled&&c.rangeSelector.minInput&&c.rangeSelector.maxInput},transformTabs:!1,init:function(a){c.highlightedInputRangeIx=0<a?0:1;c.rangeSelector[c.highlightedInputRangeIx?"maxInput":"minInput"].focus()}}),b([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!c.highlightLegendItem(c.highlightedLegendItemIx+ | ||
a))return this.move(a)}],[[13,32],function(){k(c.legend.allItems[c.highlightedLegendItemIx].legendItem.element.parentNode)}]],{validate:function(){return c.legend&&c.legend.allItems&&!c.colorAxis},init:function(a){g(c.legend.allItems,function(a){a.legendGroup.element.setAttribute("tabindex","-1");a.legendGroup.element.setAttribute("role","button");a.legendGroup.element.setAttribute("aria-label","Toggle visibility of series "+a.name)});c.highlightLegendItem(0<a?0:c.legend.allItems.length-1)}})];c.keyboardNavigationModuleIndex= | ||
0;c.renderTo.tabIndex||c.renderTo.setAttribute("tabindex","0");u(c.renderTo,"keydown",d);u(c,"destroy",function(){C(c.renderTo,"keydown",d)})};e.Chart.prototype.addScreenReaderRegion=function(a){var b=this,d=b.series,c=b.options,e=c.accessibility,g=b.screenReaderRegion=l.createElement("div"),k=l.createElement("h3"),p=l.createElement("a"),q=l.createElement("h3"),t={position:"absolute",left:"-9999px",top:"auto",width:"1px",height:"1px",overflow:"hidden"},h=b.types||[],h=(1===h.length&&"pie"===h[0]|| | ||
"map"===h[0])&&{}||b.getAxesDescription(),m=d[0]&&r[d[0].type]||r.default;g.setAttribute("role","region");g.setAttribute("aria-label","Chart screen reader information.");g.innerHTML=e.screenReaderSectionFormatter&&e.screenReaderSectionFormatter(b)||'\x3cdiv tabindex\x3d"0"\x3eUse regions/landmarks to skip ahead to chart'+(1<d.length?" and navigate between data series":"")+".\x3c/div\x3e\x3ch3\x3eSummary.\x3c/h3\x3e\x3cdiv\x3e"+(c.title.text?n(c.title.text):"Chart")+(c.subtitle&&c.subtitle.text?". "+ | ||
n(c.subtitle.text):"")+"\x3c/div\x3e\x3ch3\x3eLong description.\x3c/h3\x3e\x3cdiv\x3e"+(c.chart.description||"No description available.")+"\x3c/div\x3e\x3ch3\x3eStructure.\x3c/h3\x3e\x3cdiv\x3eChart type: "+(c.chart.typeDescription||b.getTypeDescription())+"\x3c/div\x3e"+(1===d.length?"\x3cdiv\x3e"+m[0]+" with "+d[0].points.length+" "+(1===d[0].points.length?m[1]:m[2])+".\x3c/div\x3e":"")+(h.xAxis?"\x3cdiv\x3e"+h.xAxis+"\x3c/div\x3e":"")+(h.yAxis?"\x3cdiv\x3e"+h.yAxis+"\x3c/div\x3e":"");b.getCSV&& | ||
(p.innerHTML="View as data table.",p.href="#"+a,p.setAttribute("tabindex","-1"),p.onclick=e.onTableAnchorClick||function(){b.viewData();l.getElementById(a).focus()},k.appendChild(p),g.appendChild(k));q.innerHTML="Chart graphic.";b.renderTo.insertBefore(q,b.renderTo.firstChild);b.renderTo.insertBefore(g,b.renderTo.firstChild);v(!0,q.style,t);v(!0,g.style,t)};e.Chart.prototype.callbacks.push(function(a){var b=a.options,d=b.accessibility;if(d.enabled){var c=l.createElementNS("http://www.w3.org/2000/svg", | ||
"title"),f=l.createElementNS("http://www.w3.org/2000/svg","g"),k=a.container.getElementsByTagName("desc")[0],r=a.container.getElementsByTagName("text"),p="highcharts-title-"+a.index,q="highcharts-data-table-"+a.index,t=b.title.text||"Chart",h=b.exporting&&b.exporting.csv&&b.exporting.csv.columnHeaderFormatter,m=[];c.textContent=n(t);c.id=p;k.parentNode.insertBefore(c,k);a.renderTo.setAttribute("role","region");a.renderTo.setAttribute("aria-label",t+". Use up and down arrows to navigate.");if(a.exportSVGElements&& | ||
a.exportSVGElements[0]&&a.exportSVGElements[0].element){var u=a.exportSVGElements[0].element.onclick,c=a.exportSVGElements[0].element.parentNode;a.exportSVGElements[0].element.onclick=function(){u.apply(this,Array.prototype.slice.call(arguments));a.addAccessibleContextMenuAttribs();a.highlightExportItem(0)};a.exportSVGElements[0].element.setAttribute("role","button");a.exportSVGElements[0].element.setAttribute("aria-label","View export menu");f.appendChild(a.exportSVGElements[0].element);f.setAttribute("role", | ||
"region");f.setAttribute("aria-label","Chart export menu");c.appendChild(f)}a.rangeSelector&&g(["minInput","maxInput"],function(b,c){a.rangeSelector[b]&&(a.rangeSelector[b].setAttribute("tabindex","-1"),a.rangeSelector[b].setAttribute("role","textbox"),a.rangeSelector[b].setAttribute("aria-label","Select "+(c?"end":"start")+" date."))});g(r,function(a){a.setAttribute("aria-hidden","true")});a.addScreenReaderRegion(q);d.keyboardNavigation&&a.addKeyboardNavEvents();v(!0,b.exporting,{csv:{columnHeaderFormatter:function(a, | ||
b,c){var d=m[m.length-1];1<c&&(d&&d.text)!==a.name&&m.push({text:a.name,span:c});return h?h.call(this,a,b,c):1<c?b:a.name}}});e.wrap(a,"getTable",function(a){return a.apply(this,Array.prototype.slice.call(arguments,1)).replace("\x3ctable\x3e",'\x3ctable id\x3d"'+q+'" summary\x3d"Table representation of chart"\x3e\x3ccaption\x3e'+t+"\x3c/caption\x3e")});e.wrap(a,"viewData",function(a){if(!this.insertedTable){a.apply(this,Array.prototype.slice.call(arguments,1));var b=l.getElementById(q),c=b.getElementsByTagName("tbody")[0], | ||
d=c.firstChild.children,e="\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e",f,h;b.setAttribute("tabindex","-1");g(c.children,function(a){f=a.firstChild;h=l.createElement("th");h.setAttribute("scope","row");h.innerHTML=f.innerHTML;f.parentNode.replaceChild(h,f)});g(d,function(a){"TH"===a.tagName&&a.setAttribute("scope","col")});m.length&&(g(m,function(a){e+='\x3cth scope\x3d"col" colspan\x3d"'+a.span+'"\x3e'+a.text+"\x3c/th\x3e"}),c.insertAdjacentHTML("afterbegin",e))}})}})})(n)}); | ||
(function(q){"object"===typeof module&&module.exports?module.exports=q:q(Highcharts)})(function(q){(function(e){function q(a){return a.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#x27;").replace(/\//g,"\x26#x2F;")}function z(a){for(var c=a.childNodes.length;c--;)a.appendChild(a.childNodes[c])}function l(a){var c;a&&a.onclick&&k.createEvent&&(c=k.createEvent("Events"),c.initEvent("click",!0,!1),a.onclick(c))}var y=e.win,k=y.document, | ||
g=e.each,A=e.erase,v=e.addEvent,B=e.removeEvent,x=e.fireEvent,C=e.dateFormat,w=e.merge,r={"default":["series","data point","data points"],line:["line","data point","data points"],spline:["line","data point","data points"],area:["line","data point","data points"],areaspline:["line","data point","data points"],pie:["pie","slice","slices"],column:["column series","column","columns"],bar:["bar series","bar","bars"],scatter:["scatter series","data point","data points"],boxplot:["boxplot series","box", | ||
"boxes"],arearange:["arearange series","data point","data points"],areasplinerange:["areasplinerange series","data point","data points"],bubble:["bubble series","bubble","bubbles"],columnrange:["columnrange series","column","columns"],errorbar:["errorbar series","errorbar","errorbars"],funnel:["funnel","data point","data points"],pyramid:["pyramid","data point","data points"],waterfall:["waterfall series","column","columns"],map:["map","area","areas"],mapline:["line","data point","data points"],mappoint:["point series", | ||
"data point","data points"],mapbubble:["bubble series","bubble","bubbles"]},D={boxplot:" Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile and maximum. ",arearange:" Arearange charts are line charts displaying a range between a lower and higher value for each point. ",areasplinerange:" These charts are line charts displaying a range between a lower and higher value for each point. ", | ||
bubble:" Bubble charts are scatter charts where each data point also has a size value. ",columnrange:" Columnrange charts are column charts displaying a range between a lower and higher value for each point. ",errorbar:" Errorbar series are used to display the variability of the data. ",funnel:" Funnel charts are used to display reduction of data in stages. ",pyramid:" Pyramid charts consist of a single pyramid with item heights corresponding to each point value. ",waterfall:" A waterfall chart is a column chart where each column contributes towards a total end value. "}; | ||
e.Series.prototype.commonKeys="name id category x value y".split(" ");e.Series.prototype.specialKeys="z open high q3 median q1 low close".split(" ");e.seriesTypes.pie&&(e.seriesTypes.pie.prototype.specialKeys=[]);e.setOptions({accessibility:{enabled:!0,pointDescriptionThreshold:30,keyboardNavigation:{enabled:!0}}});e.wrap(e.Series.prototype,"render",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));this.chart.options.accessibility.enabled&&this.setA11yDescription()});e.Series.prototype.setA11yDescription= | ||
function(){var a=this.chart.options.accessibility,c=this.points&&this.points.length&&this.points[0].graphic&&this.points[0].graphic.element,d=c&&c.parentNode||this.graph&&this.graph.element||this.group&&this.group.element;d&&(d.lastChild===c&&z(d),this.points&&(this.points.length<a.pointDescriptionThreshold||!1===a.pointDescriptionThreshold)&&g(this.points,function(b){b.graphic&&(b.graphic.element.setAttribute("role","img"),b.graphic.element.setAttribute("tabindex","-1"),b.graphic.element.setAttribute("aria-label", | ||
a.pointDescriptionFormatter&&a.pointDescriptionFormatter(b)||b.buildPointInfoString()))}),1<this.chart.series.length||a.describeSingleSeries)&&(d.setAttribute("role","region"),d.setAttribute("tabindex","-1"),d.setAttribute("aria-label",a.seriesDescriptionFormatter&&a.seriesDescriptionFormatter(this)||this.buildSeriesInfoString()))};e.Series.prototype.buildSeriesInfoString=function(){var a=r[this.type]||r["default"],c=this.description||this.options.description;return(this.name?this.name+", ":"")+(1=== | ||
this.chart.types.length?a[0]:"series")+" "+(this.index+1)+" of "+this.chart.series.length+(1===this.chart.types.length?" with ":". "+a[0]+" with ")+(this.points.length+" "+(1===this.points.length?a[1]:a[2]))+(c?". "+c:"")+(1<this.chart.yAxis.length&&this.yAxis?". Y axis, "+this.yAxis.getDescription():"")+(1<this.chart.xAxis.length&&this.xAxis?". X axis, "+this.xAxis.getDescription():"")};e.Point.prototype.buildPointInfoString=function(){var a=this,c=a.series,d=c.chart.options.accessibility,b="",f= | ||
c.xAxis&&c.xAxis.isDatetimeAxis,d=f&&C(d.pointDateFormatter&&d.pointDateFormatter(a)||d.pointDateFormat||e.Tooltip.prototype.getXDateFormat(a,c.chart.options.tooltip,c.xAxis),a.x);e.find(c.specialKeys,function(b){return void 0!==a[b]})?(f&&(b=d),g(c.commonKeys.concat(c.specialKeys),function(c){void 0===a[c]||f&&"x"===c||(b+=(b?". ":"")+c+", "+a[c])})):b=(this.name||d||this.category||this.id||"x, "+this.x)+", "+(void 0!==this.value?this.value:this.y);return this.index+1+". "+b+"."+(this.description? | ||
" "+this.description:"")};e.Axis.prototype.getDescription=function(){return this.userOptions&&this.userOptions.description||this.axisTitle&&this.axisTitle.textStr||this.options.id||this.categories&&"categories"||"values"};e.Axis.prototype.panStep=function(a,c){var d=c||3;c=this.getExtremes();var b=(c.max-c.min)/d*a,d=c.max+b,b=c.min+b,f=d-b;0>a&&b<c.dataMin?(b=c.dataMin,d=b+f):0<a&&d>c.dataMax&&(d=c.dataMax,b=d-f);this.setExtremes(b,d)};e.wrap(e.Series.prototype,"init",function(a){a.apply(this,Array.prototype.slice.call(arguments, | ||
1));var c=this.chart;c.options.accessibility.enabled&&(c.types=c.types||[],0>c.types.indexOf(this.type)&&c.types.push(this.type),v(this,"remove",function(){var a=this,b=!1;g(c.series,function(f){f!==a&&0>c.types.indexOf(a.type)&&(b=!0)});b||A(c.types,a.type)}))});e.Chart.prototype.getTypeDescription=function(){var a=this.types&&this.types[0],c=this.series[0]&&this.series[0].mapTitle;if(a){if("map"===a)return c?"Map of "+c:"Map of unspecified region.";if(1<this.types.length)return"Combination chart."; | ||
if(-1<["spline","area","areaspline"].indexOf(a))return"Line chart."}else return"Empty chart.";return a+" chart."+(D[a]||"")};e.Chart.prototype.getAxesDescription=function(){var a=this.xAxis.length,c=this.yAxis.length,d={},b;if(a)if(d.xAxis="The chart has "+a+(1<a?" X axes":" X axis")+" displaying ",2>a)d.xAxis+=this.xAxis[0].getDescription()+".";else{for(b=0;b<a-1;++b)d.xAxis+=(b?", ":"")+this.xAxis[b].getDescription();d.xAxis+=" and "+this.xAxis[b].getDescription()+"."}if(c)if(d.yAxis="The chart has "+ | ||
c+(1<c?" Y axes":" Y axis")+" displaying ",2>c)d.yAxis+=this.yAxis[0].getDescription()+".";else{for(b=0;b<c-1;++b)d.yAxis+=(b?", ":"")+this.yAxis[b].getDescription();d.yAxis+=" and "+this.yAxis[b].getDescription()+"."}return d};e.Chart.prototype.addAccessibleContextMenuAttribs=function(){var a=this.exportDivElements;a&&(g(a,function(a){"DIV"!==a.tagName||a.children&&a.children.length||(a.setAttribute("role","menuitem"),a.setAttribute("tabindex",-1))}),a[0].parentNode.setAttribute("role","menu"),a[0].parentNode.setAttribute("aria-label", | ||
"Chart export"))};e.Point.prototype.highlight=function(){var a=this.series.chart;this.graphic&&this.graphic.element.focus&&this.graphic.element.focus();this.isNull?a.tooltip&&a.tooltip.hide(0):(this.onMouseOver(),a.tooltip&&a.tooltip.refresh(a.tooltip.shared?[this]:this));a.highlightedPoint=this;return this};e.Chart.prototype.highlightAdjacentPoint=function(a){var c=this.series,d=this.highlightedPoint,b=d&&d.index||0,f=d&&d.series.points,E=d&&d.series.connectEnds&&b>f.length-3?2:1;if(!c[0]||!c[0].points)return!1; | ||
if(!d)return c[0].points[0].highlight();if(f[b]!==d)for(var e=0;e<f.length;++e)if(f[e]===d){b=e;break}c=c[d.series.index+(a?1:-1)];b=f[b+(a?E:-1)]||c&&c.points[a?0:c.points.length-(c.connectEnds?2:1)];return void 0===b?!1:b.isNull&&this.options.accessibility.keyboardNavigation&&this.options.accessibility.keyboardNavigation.skipNullPoints?(this.highlightedPoint=b,this.highlightAdjacentPoint(a)):b.highlight()};e.Chart.prototype.showExportMenu=function(){this.exportSVGElements&&this.exportSVGElements[0]&& | ||
(this.exportSVGElements[0].element.onclick(),this.highlightExportItem(0))};e.Chart.prototype.highlightExportItem=function(a){var c=this.exportDivElements&&this.exportDivElements[a],d=this.exportDivElements&&this.exportDivElements[this.highlightedExportItem];if(c&&"DIV"===c.tagName&&(!c.children||!c.children.length)){c.focus&&c.focus();if(d&&d.onmouseout)d.onmouseout();if(c.onmouseover)c.onmouseover();this.highlightedExportItem=a;return!0}};e.Chart.prototype.highlightRangeSelectorButton=function(a){var c= | ||
this.rangeSelector.buttons;c[this.highlightedRangeSelectorItemIx]&&c[this.highlightedRangeSelectorItemIx].setState(this.oldRangeSelectorItemState||0);this.highlightedRangeSelectorItemIx=a;return c[a]?(c[a].element.focus&&c[a].element.focus(),this.oldRangeSelectorItemState=c[a].state,c[a].setState(2),!0):!1};e.Chart.prototype.highlightLegendItem=function(a){var c=this.legend.allItems;c[this.highlightedLegendItemIx]&&x(c[this.highlightedLegendItemIx].legendGroup.element,"mouseout");this.highlightedLegendItemIx= | ||
a;return c[a]?(c[a].legendGroup.element.focus&&c[a].legendGroup.element.focus(),x(c[a].legendGroup.element,"mouseover"),!0):!1};e.Chart.prototype.hideExportMenu=function(){var a=this.exportDivElements;if(a){g(a,function(a){x(a,"mouseleave")});if(a[this.highlightedExportItem]&&a[this.highlightedExportItem].onmouseout)a[this.highlightedExportItem].onmouseout();this.highlightedExportItem=0;this.renderTo.focus()}};e.Chart.prototype.addKeyboardNavEvents=function(){function a(b){this.keyCodeMap=b.keyCodeMap; | ||
this.move=b.move;this.validate=b.validate;this.init=b.init;this.transformTabs=!1!==b.transformTabs}function c(c,d){return new a(w({keyCodeMap:c,move:function(a){b.keyboardNavigationModuleIndex+=a;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex];if(c){if(c.validate&&!c.validate())return this.move(a);if(c.init)return c.init(a),!0}b.keyboardNavigationModuleIndex=0;b.slipNextTab=!0;return!1}},d))}function d(a){a=a||y.event;var c=b.keyboardNavigationModules[b.keyboardNavigationModuleIndex]; | ||
9===(a.which||a.keyCode)&&b.slipNextTab?b.slipNextTab=!1:(b.slipNextTab=!1,c&&c.run(a)&&a.preventDefault())}var b=this;a.prototype={run:function(b){var a=this,c=b.which||b.keyCode,f=!1,c=this.transformTabs&&9===c?b.shiftKey?37:39:c;g(this.keyCodeMap,function(d){-1<d[0].indexOf(c)&&(f=!1===d[1].call(a,c,b)?!1:!0)});return f}};b.keyboardNavigationModules=[c([[[37,39],function(a){if(!b.highlightAdjacentPoint(39===a))return this.move(39===a?1:-1)}],[[38,40],function(a){var c;if(b.highlightedPoint)if((c= | ||
b.series[b.highlightedPoint.series.index+(38===a?-1:1)])&&c.points[0])c.points[0].highlight();else return this.move(40===a?1:-1)}],[[13,32],function(){b.highlightedPoint&&b.highlightedPoint.firePointEvent("click")}]],{init:function(a){var c=b.series&&b.series[b.series.length-1],c=c&&c.points&&c.points[c.points.length-1];0>a&&c&&c.highlight()}}),c([[[37,38],function(){for(var a=b.highlightedExportItem||0,c=!0,d=b.series;a--;)if(b.highlightExportItem(a)){c=!1;break}if(c)return b.hideExportMenu(),d&& | ||
d.length&&(a=d[d.length-1],a.points.length&&a.points[a.points.length-1].highlight()),this.move(-1)}],[[39,40],function(){for(var a=!0,c=(b.highlightedExportItem||0)+1;c<b.exportDivElements.length;++c)if(b.highlightExportItem(c)){a=!1;break}if(a)return b.hideExportMenu(),this.move(1)}],[[13,32],function(){l(b.exportDivElements[b.highlightedExportItem])}]],{validate:function(){return b.exportChart&&!(b.options.exporting&&!1===b.options.exporting.enabled)},init:function(a){b.highlightedPoint=null;b.showExportMenu(); | ||
if(0>a&&b.exportDivElements)for(a=b.exportDivElements.length;-1<a&&!b.highlightExportItem(a);--a);}}),c([[[38,40,37,39],function(a){b[38===a||40===a?"yAxis":"xAxis"][0].panStep(39>a?-1:1)}],[[9],function(a,c){b.mapNavButtons[b.focusedMapNavButtonIx].setState(0);if(c.shiftKey&&!b.focusedMapNavButtonIx||!c.shiftKey&&b.focusedMapNavButtonIx)return b.mapZoom(),this.move(c.shiftKey?-1:1);b.focusedMapNavButtonIx+=c.shiftKey?-1:1;a=b.mapNavButtons[b.focusedMapNavButtonIx];a.element.focus&&a.element.focus(); | ||
a.setState(2)}],[[13,32],function(){l(b.mapNavButtons[b.focusedMapNavButtonIx].element)}]],{validate:function(){return b.mapZoom&&b.mapNavButtons&&2===b.mapNavButtons.length},transformTabs:!1,init:function(a){var c=b.mapNavButtons[0],d=b.mapNavButtons[1],c=0<a?c:d;g(b.mapNavButtons,function(a,b){a.element.setAttribute("tabindex",-1);a.element.setAttribute("role","button");a.element.setAttribute("aria-label","Zoom "+(b?"out":"")+"chart")});c.element.focus&&c.element.focus();c.setState(2);b.focusedMapNavButtonIx= | ||
0<a?0:1}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightRangeSelectorButton(b.highlightedRangeSelectorItemIx+a))return this.move(a)}],[[13,32],function(){3!==b.oldRangeSelectorItemState&&l(b.rangeSelector.buttons[b.highlightedRangeSelectorItemIx].element)}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.buttons&&b.rangeSelector.buttons.length},init:function(a){g(b.rangeSelector.buttons,function(a){a.element.setAttribute("tabindex","-1");a.element.setAttribute("role", | ||
"button");a.element.setAttribute("aria-label","Select range "+(a.text&&a.text.textStr))});b.highlightRangeSelectorButton(0<a?0:b.rangeSelector.buttons.length-1)}}),c([[[9,38,40],function(a,c){a=9===a&&c.shiftKey||38===a?-1:1;c=b.highlightedInputRangeIx+=a;if(1<c||0>c)return this.move(a);b.rangeSelector[c?"maxInput":"minInput"].focus()}]],{validate:function(){return b.rangeSelector&&b.rangeSelector.inputGroup&&"hidden"!==b.rangeSelector.inputGroup.element.getAttribute("visibility")&&!1!==b.options.rangeSelector.inputEnabled&& | ||
b.rangeSelector.minInput&&b.rangeSelector.maxInput},transformTabs:!1,init:function(a){b.highlightedInputRangeIx=0<a?0:1;b.rangeSelector[b.highlightedInputRangeIx?"maxInput":"minInput"].focus()}}),c([[[37,39,38,40],function(a){a=37===a||38===a?-1:1;if(!b.highlightLegendItem(b.highlightedLegendItemIx+a))return this.move(a)}],[[13,32],function(){l(b.legend.allItems[b.highlightedLegendItemIx].legendItem.element.parentNode)}]],{validate:function(){return b.legend&&b.legend.allItems&&!b.colorAxis},init:function(a){g(b.legend.allItems, | ||
function(a){a.legendGroup.element.setAttribute("tabindex","-1");a.legendGroup.element.setAttribute("role","button");a.legendGroup.element.setAttribute("aria-label","Toggle visibility of series "+a.name)});b.highlightLegendItem(0<a?0:b.legend.allItems.length-1)}})];b.keyboardNavigationModuleIndex=0;b.container.hasAttribute&&!b.container.hasAttribute("tabIndex")&&b.container.setAttribute("tabindex","0");v(b.renderTo,"keydown",d);v(b,"destroy",function(){B(b.renderTo,"keydown",d)})};e.Chart.prototype.addScreenReaderRegion= | ||
function(a,c){var d=this,b=d.series,e=d.options,g=e.accessibility,m=d.screenReaderRegion=k.createElement("div"),l=k.createElement("h4"),n=k.createElement("a"),t=k.createElement("h4"),u={position:"absolute",left:"-9999px",top:"auto",width:"1px",height:"1px",overflow:"hidden"},h=d.types||[],h=(1===h.length&&"pie"===h[0]||"map"===h[0])&&{}||d.getAxesDescription(),p=b[0]&&r[b[0].type]||r["default"];m.setAttribute("id",a);m.setAttribute("role","region");m.setAttribute("aria-label","Chart screen reader information."); | ||
m.innerHTML=g.screenReaderSectionFormatter&&g.screenReaderSectionFormatter(d)||"\x3cdiv\x3eUse regions/landmarks to skip ahead to chart"+(1<b.length?" and navigate between data series":"")+".\x3c/div\x3e\x3ch3\x3e"+(e.title.text?q(e.title.text):"Chart")+(e.subtitle&&e.subtitle.text?". "+q(e.subtitle.text):"")+"\x3c/h3\x3e\x3ch4\x3eLong description.\x3c/h4\x3e\x3cdiv\x3e"+(e.chart.description||"No description available.")+"\x3c/div\x3e\x3ch4\x3eStructure.\x3c/h4\x3e\x3cdiv\x3eChart type: "+(e.chart.typeDescription|| | ||
d.getTypeDescription())+"\x3c/div\x3e"+(1===b.length?"\x3cdiv\x3e"+p[0]+" with "+b[0].points.length+" "+(1===b[0].points.length?p[1]:p[2])+".\x3c/div\x3e":"")+(h.xAxis?"\x3cdiv\x3e"+h.xAxis+"\x3c/div\x3e":"")+(h.yAxis?"\x3cdiv\x3e"+h.yAxis+"\x3c/div\x3e":"");d.getCSV&&(n.innerHTML="View as data table.",n.href="#"+c,n.setAttribute("tabindex","-1"),n.onclick=g.onTableAnchorClick||function(){d.viewData();k.getElementById(c).focus()},l.appendChild(n),m.appendChild(l));t.innerHTML="Chart graphic.";d.renderTo.insertBefore(t, | ||
d.renderTo.firstChild);d.renderTo.insertBefore(m,d.renderTo.firstChild);w(!0,t.style,u);w(!0,m.style,u)};e.Chart.prototype.callbacks.push(function(a){var c=a.options,d=c.accessibility;if(d.enabled){var b=k.createElementNS("http://www.w3.org/2000/svg","title"),f=k.createElementNS("http://www.w3.org/2000/svg","g"),l=a.container.getElementsByTagName("desc")[0],m=a.container.getElementsByTagName("text"),r="highcharts-title-"+a.index,n="highcharts-data-table-"+a.index,t="highcharts-information-region-"+ | ||
a.index,u=c.title.text||"Chart",h=c.exporting&&c.exporting.csv&&c.exporting.csv.columnHeaderFormatter,p=[];b.textContent=q(u);b.id=r;l.parentNode.insertBefore(b,l);a.renderTo.setAttribute("role","region");a.container.setAttribute("aria-details",t);a.renderTo.setAttribute("aria-label","Interactive chart. "+u+". Use up and down arrows to navigate with most screen readers.");if(a.exportSVGElements&&a.exportSVGElements[0]&&a.exportSVGElements[0].element){var v=a.exportSVGElements[0].element.onclick,b= | ||
a.exportSVGElements[0].element.parentNode;a.exportSVGElements[0].element.onclick=function(){v.apply(this,Array.prototype.slice.call(arguments));a.addAccessibleContextMenuAttribs();a.highlightExportItem(0)};a.exportSVGElements[0].element.setAttribute("role","button");a.exportSVGElements[0].element.setAttribute("aria-label","View export menu");f.appendChild(a.exportSVGElements[0].element);f.setAttribute("role","region");f.setAttribute("aria-label","Chart export menu");b.appendChild(f)}a.rangeSelector&& | ||
g(["minInput","maxInput"],function(b,c){a.rangeSelector[b]&&(a.rangeSelector[b].setAttribute("tabindex","-1"),a.rangeSelector[b].setAttribute("role","textbox"),a.rangeSelector[b].setAttribute("aria-label","Select "+(c?"end":"start")+" date."))});g(m,function(a){a.setAttribute("aria-hidden","true")});a.addScreenReaderRegion(t,n);d.keyboardNavigation&&a.addKeyboardNavEvents();w(!0,c.exporting,{csv:{columnHeaderFormatter:function(a,b,c){var d=p[p.length-1];1<c&&(d&&d.text)!==a.name&&p.push({text:a.name, | ||
span:c});return h?h.call(this,a,b,c):1<c?b:a.name}}});e.wrap(a,"getTable",function(a){return a.apply(this,Array.prototype.slice.call(arguments,1)).replace("\x3ctable\x3e",'\x3ctable id\x3d"'+n+'" summary\x3d"Table representation of chart"\x3e\x3ccaption\x3e'+u+"\x3c/caption\x3e")});e.wrap(a,"viewData",function(a){if(!this.insertedTable){a.apply(this,Array.prototype.slice.call(arguments,1));var b=k.getElementById(n),c=b.getElementsByTagName("tbody")[0],d=c.firstChild.children,e="\x3ctr\x3e\x3ctd\x3e\x3c/td\x3e", | ||
f,h;b.setAttribute("tabindex","-1");g(c.children,function(a){f=a.firstChild;h=k.createElement("th");h.setAttribute("scope","row");h.innerHTML=f.innerHTML;f.parentNode.replaceChild(h,f)});g(d,function(a){"TH"===a.tagName&&a.setAttribute("scope","col")});p.length&&(g(p,function(a){e+='\x3cth scope\x3d"col" colspan\x3d"'+a.span+'"\x3e'+a.text+"\x3c/th\x3e"}),c.insertAdjacentHTML("afterbegin",e))}})}})})(q)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Accessibility module | ||
@@ -10,2 +10,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -27,3 +28,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -76,6 +76,17 @@ var win = H.win, | ||
waterfall: ' A waterfall chart is a column chart where each column contributes towards a total end value. ' | ||
}, | ||
commonKeys = ['name', 'id', 'category', 'x', 'value', 'y'], | ||
specialKeys = ['z', 'open', 'high', 'q3', 'median', 'q1', 'low', 'close']; // Tell user about all properties if points have one of these defined | ||
}; | ||
// If a point has one of the special keys defined, we expose all keys to the | ||
// screen reader. | ||
H.Series.prototype.commonKeys = ['name', 'id', 'category', 'x', 'value', 'y']; | ||
H.Series.prototype.specialKeys = [ | ||
'z', 'open', 'high', 'q3', 'median', 'q1', 'low', 'close' | ||
]; | ||
// A pie is always simple. Don't quote me on that. | ||
if (H.seriesTypes.pie) { | ||
H.seriesTypes.pie.prototype.specialKeys = []; | ||
} | ||
// Default a11y options | ||
@@ -88,3 +99,3 @@ H.setOptions({ | ||
enabled: true | ||
// skipNullPoints: false | ||
// skipNullPoints: false | ||
} | ||
@@ -121,3 +132,3 @@ // describeSingleSeries: false | ||
var fakeEvent; | ||
if (element && element.onclick) { | ||
if (element && element.onclick && doc.createEvent) { | ||
fakeEvent = doc.createEvent('Events'); | ||
@@ -172,3 +183,3 @@ fakeEvent.initEvent('click', true, false); | ||
H.Series.prototype.buildSeriesInfoString = function() { | ||
var typeInfo = typeToSeriesMap[this.type] || typeToSeriesMap.default, | ||
var typeInfo = typeToSeriesMap[this.type] || typeToSeriesMap['default'], // eslint-disable-line dot-notation | ||
description = this.description || this.options.description; | ||
@@ -190,13 +201,9 @@ return (this.name ? this.name + ', ' : '') + | ||
infoString = '', | ||
hasSpecialKey = false, | ||
dateTimePoint = series.xAxis && series.xAxis.isDatetimeAxis, | ||
timeDesc = dateTimePoint && dateFormat(a11yOptions.pointDateFormatter && a11yOptions.pointDateFormatter(point) || a11yOptions.pointDateFormat || | ||
H.Tooltip.prototype.getXDateFormat(point, series.chart.options.tooltip, series.xAxis), point.x); | ||
H.Tooltip.prototype.getXDateFormat(point, series.chart.options.tooltip, series.xAxis), point.x), | ||
hasSpecialKey = H.find(series.specialKeys, function(key) { | ||
return point[key] !== undefined; | ||
}); | ||
each(specialKeys, function(key) { | ||
if (point[key] !== undefined) { | ||
hasSpecialKey = true; | ||
} | ||
}); | ||
// If the point has one of the less common properties defined, display all that are defined | ||
@@ -207,5 +214,5 @@ if (hasSpecialKey) { | ||
} | ||
each(commonKeys.concat(specialKeys), function(key) { | ||
each(series.commonKeys.concat(series.specialKeys), function(key) { | ||
if (point[key] !== undefined && !(dateTimePoint && key === 'x')) { | ||
infoString += (infoString ? '. ' : '') + key + ', ' + this[key]; | ||
infoString += (infoString ? '. ' : '') + key + ', ' + point[key]; | ||
} | ||
@@ -352,5 +359,10 @@ }); | ||
this.onMouseOver(); // Show the hover marker | ||
chart.tooltip.refresh(chart.tooltip.shared ? [this] : this); // Show the tooltip | ||
// Show the tooltip | ||
if (chart.tooltip) { | ||
chart.tooltip.refresh(chart.tooltip.shared ? [this] : this); | ||
} | ||
} else { | ||
chart.tooltip.hide(0); | ||
if (chart.tooltip) { | ||
chart.tooltip.hide(0); | ||
} | ||
// Don't call blur on the element, as it messes up the chart div's focus | ||
@@ -368,4 +380,9 @@ } | ||
curPointIndex = curPoint && curPoint.index || 0, | ||
curPoints = curPoint && curPoint.series.points, | ||
newSeries, | ||
newPoint; | ||
newPoint, | ||
// Handle connecting ends - where the points array has an extra last | ||
// point that is a reference to the first one. We skip this. | ||
forwardSkipAmount = curPoint && curPoint.series.connectEnds && | ||
curPointIndex > curPoints.length - 3 ? 2 : 1; | ||
@@ -383,5 +400,5 @@ // If no points, return false | ||
// Find index of current point in series.points array. Necessary for dataGrouping (and maybe zoom?) | ||
if (curPoint.series.points[curPointIndex] !== curPoint) { | ||
for (var i = 0; i < curPoint.series.points.length; ++i) { | ||
if (curPoint.series.points[i] === curPoint) { | ||
if (curPoints[curPointIndex] !== curPoint) { | ||
for (var i = 0; i < curPoints.length; ++i) { | ||
if (curPoints[i] === curPoint) { | ||
curPointIndex = i; | ||
@@ -393,5 +410,10 @@ break; | ||
// Try to grab next/prev point | ||
// Grab next/prev point & series | ||
newSeries = series[curPoint.series.index + (next ? 1 : -1)]; | ||
newPoint = curPoint.series.points[curPointIndex + (next ? 1 : -1)] || newSeries && newSeries.points[next ? 0 : newSeries.points.length - 1]; | ||
newPoint = curPoints[curPointIndex + (next ? forwardSkipAmount : -1)] || | ||
// Done with this series, try next one | ||
newSeries && | ||
newSeries.points[next ? 0 : newSeries.points.length - ( | ||
newSeries.connectEnds ? 2 : 1 | ||
)]; | ||
@@ -884,4 +906,7 @@ // If there is no adjacent point, we return false | ||
// Make chart reachable by tab | ||
if (!chart.renderTo.tabIndex) { | ||
chart.renderTo.setAttribute('tabindex', '0'); | ||
if ( | ||
chart.container.hasAttribute && | ||
!chart.container.hasAttribute('tabIndex') | ||
) { | ||
chart.container.setAttribute('tabindex', '0'); | ||
} | ||
@@ -898,3 +923,3 @@ | ||
// tableId is the HTML id of the table to focus when clicking the table anchor in the screen reader region. | ||
H.Chart.prototype.addScreenReaderRegion = function(tableId) { | ||
H.Chart.prototype.addScreenReaderRegion = function(id, tableId) { | ||
var chart = this, | ||
@@ -905,5 +930,5 @@ series = chart.series, | ||
hiddenSection = chart.screenReaderRegion = doc.createElement('div'), | ||
tableShortcut = doc.createElement('h3'), | ||
tableShortcut = doc.createElement('h4'), | ||
tableShortcutAnchor = doc.createElement('a'), | ||
chartHeading = doc.createElement('h3'), | ||
chartHeading = doc.createElement('h4'), | ||
hiddenStyle = { // CSS style to hide element from visual users while still exposing it to screen readers | ||
@@ -920,4 +945,5 @@ position: 'absolute', | ||
axesDesc = (chartTypes.length === 1 && chartTypes[0] === 'pie' || chartTypes[0] === 'map') && {} || chart.getAxesDescription(), | ||
chartTypeInfo = series[0] && typeToSeriesMap[series[0].type] || typeToSeriesMap.default; | ||
chartTypeInfo = series[0] && typeToSeriesMap[series[0].type] || typeToSeriesMap['default']; // eslint-disable-line dot-notation | ||
hiddenSection.setAttribute('id', id); | ||
hiddenSection.setAttribute('role', 'region'); | ||
@@ -927,8 +953,8 @@ hiddenSection.setAttribute('aria-label', 'Chart screen reader information.'); | ||
hiddenSection.innerHTML = a11yOptions.screenReaderSectionFormatter && a11yOptions.screenReaderSectionFormatter(chart) || | ||
'<div tabindex="0">Use regions/landmarks to skip ahead to chart' + | ||
'<div>Use regions/landmarks to skip ahead to chart' + | ||
(series.length > 1 ? ' and navigate between data series' : '') + | ||
'.</div><h3>Summary.</h3><div>' + (options.title.text ? htmlencode(options.title.text) : 'Chart') + | ||
'.</div><h3>' + (options.title.text ? htmlencode(options.title.text) : 'Chart') + | ||
(options.subtitle && options.subtitle.text ? '. ' + htmlencode(options.subtitle.text) : '') + | ||
'</div><h3>Long description.</h3><div>' + (options.chart.description || 'No description available.') + | ||
'</div><h3>Structure.</h3><div>Chart type: ' + (options.chart.typeDescription || chart.getTypeDescription()) + '</div>' + | ||
'</h3><h4>Long description.</h4><div>' + (options.chart.description || 'No description available.') + | ||
'</div><h4>Structure.</h4><div>Chart type: ' + (options.chart.typeDescription || chart.getTypeDescription()) + '</div>' + | ||
(series.length === 1 ? '<div>' + chartTypeInfo[0] + ' with ' + series[0].points.length + ' ' + | ||
@@ -949,6 +975,7 @@ (series[0].points.length === 1 ? chartTypeInfo[1] : chartTypeInfo[2]) + '.</div>' : '') + | ||
tableShortcut.appendChild(tableShortcutAnchor); | ||
hiddenSection.appendChild(tableShortcut); | ||
} | ||
// Note: JAWS seems to refuse to read aria-label on the container, so add an | ||
// h4 element as title for the chart. | ||
chartHeading.innerHTML = 'Chart graphic.'; | ||
@@ -979,2 +1006,3 @@ chart.renderTo.insertBefore(chartHeading, chart.renderTo.firstChild); | ||
tableId = 'highcharts-data-table-' + chart.index, | ||
hiddenSectionId = 'highcharts-information-region-' + chart.index, | ||
chartTitle = options.title.text || 'Chart', | ||
@@ -989,3 +1017,5 @@ oldColumnHeaderFormatter = options.exporting && options.exporting.csv && options.exporting.csv.columnHeaderFormatter, | ||
chart.renderTo.setAttribute('role', 'region'); | ||
chart.renderTo.setAttribute('aria-label', chartTitle + '. Use up and down arrows to navigate.'); | ||
chart.container.setAttribute('aria-details', hiddenSectionId); | ||
chart.renderTo.setAttribute('aria-label', 'Interactive chart. ' + chartTitle + | ||
'. Use up and down arrows to navigate with most screen readers.'); | ||
@@ -1027,3 +1057,3 @@ // Set screen reader properties on export menu | ||
// Add top-secret screen reader region | ||
chart.addScreenReaderRegion(tableId); | ||
chart.addScreenReaderRegion(hiddenSectionId, tableId); | ||
@@ -1030,0 +1060,0 @@ // Enable keyboard navigation |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -4,0 +4,0 @@ (c) 2009-2016 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -22,3 +23,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -25,0 +25,0 @@ var defined = H.defined, |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Boost module | ||
@@ -10,14 +10,43 @@ | ||
*/ | ||
(function(q){"object"===typeof module&&module.exports?module.exports=q:q(Highcharts)})(function(q){(function(f){function q(a,b,c,e,g){g=g||0;e=e||5E4;for(var k=g+e,f=!0;f&&g<k&&g<a.length;)f=b(a[g],g),g+=1;f&&(g<a.length?setTimeout(function(){q(a,b,c,e,g)}):c&&c())}var x=f.win.document,U=function(){},V=f.Color,l=f.Series,d=f.seriesTypes,p=f.each,y=f.extend,W=f.addEvent,X=f.fireEvent,z=f.grep,u=f.isNumber,Y=f.merge,Z=f.pick,n=f.wrap,v=f.getOptions().plotOptions,G;p("area arearange bubble column line scatter".split(" "), | ||
function(a){v[a]&&(v[a].boostThreshold=5E3)});p(["translate","generatePoints","drawTracker","drawPoints","render"],function(a){function b(c){var b=this.options.stacking&&("translate"===a||"generatePoints"===a);if((this.processedXData||this.options.data).length<(this.options.boostThreshold||Number.MAX_VALUE)||b)"render"===a&&this.image&&(this.image.attr({href:""}),this.animate=null),c.call(this);else if(this[a+"Canvas"])this[a+"Canvas"]()}n(l.prototype,a,b);"translate"===a&&p(["arearange","bubble", | ||
"column"],function(c){d[c]&&n(d[c].prototype,a,b)})});n(l.prototype,"getExtremes",function(a){this.hasExtremes()||a.apply(this,Array.prototype.slice.call(arguments,1))});n(l.prototype,"setData",function(a){this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))});n(l.prototype,"processData",function(a){this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))});f.extend(l.prototype,{pointRange:0,allowDG:!1,hasExtremes:function(a){var b=this.options,c=this.xAxis&& | ||
this.xAxis.options,e=this.yAxis&&this.yAxis.options;return b.data.length>(b.boostThreshold||Number.MAX_VALUE)&&u(e.min)&&u(e.max)&&(!a||u(c.min)&&u(c.max))},destroyGraphics:function(){var a=this,b=this.points,c,e;if(b)for(e=0;e<b.length;e+=1)(c=b[e])&&c.graphic&&(c.graphic=c.graphic.destroy());p(["graph","area","tracker"],function(b){a[b]&&(a[b]=a[b].destroy())})},getContext:function(){var a=this.chart,b=a.plotWidth,c=a.plotHeight,e=this.ctx,g=function(a,b,c,e,g,f,d){a.call(this,c,b,e,g,f,d)};this.canvas? | ||
e.clearRect(0,0,b,c):(this.canvas=x.createElement("canvas"),this.image=a.renderer.image("",0,0,b,c).add(this.group),this.ctx=e=this.canvas.getContext("2d"),a.inverted&&p(["moveTo","lineTo","rect","arc"],function(a){n(e,a,g)}));this.canvas.width=b;this.canvas.height=c;this.image.attr({width:b,height:c});return e},canvasToSVG:function(){this.image.attr({href:this.canvas.toDataURL("image/png")})},cvsLineTo:function(a,b,c){a.lineTo(b,c)},renderCanvas:function(){var a=this,b=a.options,c=a.chart,e=this.xAxis, | ||
g=this.yAxis,k,d=0,l=a.processedXData,n=a.processedYData,p=b.data,m=e.getExtremes(),v=m.min,x=m.max,m=g.getExtremes(),z=m.min,aa=m.max,H={},A,ba=!!a.sampling,I,B=b.marker&&b.marker.radius,J=this.cvsDrawPoint,C=b.lineWidth?this.cvsLineTo:!1,K=B&&1>=B?this.cvsMarkerSquare:this.cvsMarkerCircle,ca=this.cvsStrokeBatch||1E3,da=!1!==b.enableMouseTracking,L,m=b.threshold,r=g.getThreshold(m),M=u(m),N=r,ea=this.fill,O=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),P=!!b.stacking,fa=a.cropStart||0, | ||
m=c.options.loading,ga=a.requireSorting,Q,ha=b.connectNulls,R=!l,D,E,t,w,ia=a.fillOpacity?(new V(a.color)).setOpacity(Z(b.fillOpacity,.75)).get():a.color,S=function(){ea?(k.fillStyle=ia,k.fill()):(k.strokeStyle=a.color,k.lineWidth=b.lineWidth,k.stroke())},T=function(b,c,e,g){0===d&&(k.beginPath(),C&&(k.lineJoin="round"));Q?k.moveTo(b,c):J?J(k,b,c,e,L):C?C(k,b,c):K&&K.call(a,k,b,c,B,g);d+=1;d===ca&&(S(),d=0);L={clientX:b,plotY:c,yBottom:e}},F=function(a,b,f){da&&!H[a+","+b]&&(H[a+","+b]=!0,c.inverted&& | ||
(a=e.len-a,b=g.len-b),I.push({clientX:a,plotX:a,plotY:b,i:fa+f}))};(this.points||this.graph)&&this.destroyGraphics();a.plotGroup("group","series",a.visible?"visible":"hidden",b.zIndex,c.seriesGroup);a.markerGroup=a.group;W(a,"destroy",function(){a.markerGroup=null});I=this.points=[];k=this.getContext();a.buildKDTree=U;99999<p.length&&(c.options.loading=Y(m,{labelStyle:{backgroundColor:f.color("#ffffff").setOpacity(.75).get(),padding:"1em",borderRadius:"0.5em"},style:{backgroundColor:"none",opacity:1}}), | ||
clearTimeout(G),c.showLoading("Drawing..."),c.options.loading=m);q(P?a.data:l||p,function(b,f){var d,h,k,l="undefined"===typeof c.index,m=!0;if(!l){R?(d=b[0],h=b[1]):(d=b,h=n[f]);O?(R&&(h=b.slice(1,3)),k=h[0],h=h[1]):P&&(d=b.x,h=b.stackY,k=h-b.y);b=null===h;ga||(m=h>=z&&h<=aa);if(!b&&d>=v&&d<=x&&m)if(d=Math.round(e.toPixels(d,!0)),ba){if(void 0===t||d===A){O||(k=h);if(void 0===w||h>E)E=h,w=f;if(void 0===t||k<D)D=k,t=f}d!==A&&(void 0!==t&&(h=g.toPixels(E,!0),r=g.toPixels(D,!0),T(d,M?Math.min(h,N): | ||
h,M?Math.max(r,N):r,f),F(d,h,w),r!==h&&F(d,r,t)),t=w=void 0,A=d)}else h=Math.round(g.toPixels(h,!0)),T(d,h,r,f),F(d,h,f);Q=b&&!ha;0===f%5E4&&a.canvasToSVG()}return!l},function(){var b=c.loadingDiv,e=c.loadingShown;S();a.canvasToSVG();X(a,"renderedCanvas");e&&(y(b.style,{transition:"opacity 250ms",opacity:0}),c.loadingShown=!1,G=setTimeout(function(){b.parentNode&&b.parentNode.removeChild(b);c.loadingDiv=c.loadingSpan=null},250));a.directTouch=!1;a.options.stickyTracking=!0;delete a.buildKDTree;a.buildKDTree()}, | ||
c.renderer.forExport?Number.MAX_VALUE:void 0)}});d.scatter.prototype.cvsMarkerCircle=function(a,b,c,e){a.moveTo(b,c);a.arc(b,c,e,0,2*Math.PI,!1)};d.scatter.prototype.cvsMarkerSquare=function(a,b,c,e){a.rect(b-e,c-e,2*e,2*e)};d.scatter.prototype.fill=!0;d.bubble&&(d.bubble.prototype.cvsMarkerCircle=function(a,b,c,e,d){a.moveTo(b,c);a.arc(b,c,this.radii&&this.radii[d],0,2*Math.PI,!1)},d.bubble.prototype.cvsStrokeBatch=1);y(d.area.prototype,{cvsDrawPoint:function(a,b,c,e,d){d&&b!==d.clientX&&(a.moveTo(d.clientX, | ||
d.yBottom),a.lineTo(d.clientX,d.plotY),a.lineTo(b,c),a.lineTo(b,e))},fill:!0,fillOpacity:!0,sampling:!0});y(d.column.prototype,{cvsDrawPoint:function(a,b,c,d){a.rect(b-1,c,1,d-c)},fill:!0,sampling:!0});l.prototype.getPoint=function(a){var b=a,c=this.xData||this.options.xData||this.processedXData||!1;!a||a instanceof this.pointClass||(b=(new this.pointClass).init(this,this.options.data[a.i],c?c[a.i]:void 0),b.category=b.x,b.dist=a.dist,b.distX=a.distX,b.plotX=a.plotX,b.plotY=a.plotY);return b};n(l.prototype, | ||
"destroy",function(a){var b=this,c=b.chart;c.hoverPoints&&(c.hoverPoints=z(c.hoverPoints,function(a){return a.series===b}));c.hoverPoint&&c.hoverPoint.series===b&&(c.hoverPoint=null);a.call(this)});n(l.prototype,"searchPoint",function(a){return this.getPoint(a.apply(this,[].slice.call(arguments,1)))})})(q)}); | ||
(function(H){"object"===typeof module&&module.exports?module.exports=H:H(Highcharts)})(function(H){(function(h){function w(a){return a.series.length>=D(a.options.boost&&a.options.boost.seriesThreshold,10)}function x(a){function c(){var a=Array.prototype.slice.call(arguments),c=-Number.MAX_VALUE;y(a,function(a){if("undefined"!==typeof a&&"undefined"!==typeof a.length&&0<a.length)return c=a.length,!0});return c}return w(a.chart)||c(a.processedXData,a.options.data,a.points)>=(a.options.boostThreshold|| | ||
Number.MAX_VALUE)}function H(a){function c(b,c){c=a.createShader("vertex"===c?a.VERTEX_SHADER:a.FRAGMENT_SHADER);a.shaderSource(c,b);a.compileShader(c);return a.getShaderParameter(c,a.COMPILE_STATUS)?c:!1}function d(){function d(b){return a.getUniformLocation(l,b)}var e=c("#version 100\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value \x3d aVertexPosition.w;\nfloat zMax \x3d bubbleZMax;\nfloat zMin \x3d bubbleZMin;\nfloat radius \x3d 0.0;\nfloat pos \x3d 0.0;\nfloat zRange \x3d zMax - zMin;\nif (bubbleSizeAbs){\nvalue \x3d value - bubbleZThreshold;\nzMax \x3d max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin \x3d 0.0;\n}\nif (value \x3c zMin){\nradius \x3d bubbleZMin / 2.0 - 1.0;\n} else {\npos \x3d zRange \x3e 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea \x26\x26 pos \x3e 0.0){\npos \x3d sqrt(pos);\n}\nradius \x3d ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord\n){\nfloat sign \x3d 1.0;\nfloat cvsOffset \x3d 0.0;\nif (cvsCoord) {\nsign *\x3d -1.0;\ncvsOffset \x3d len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value){\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold){\nfloat v;\nif (skipTranslation){\nv \x3d value;// + yAxisPos;\n} else {\nv \x3d translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord);// + yAxisPos;\n}\nif (checkTreshold \x3e 0.0 \x26\x26 hasThreshold) {\nv \x3d min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize \x3d bubbleRadius();\n} else {\ngl_PointSize \x3d pSize;\n}\nvColor \x3d aColor;\nif (isInverted) {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.y) + yAxisPos, yToPixels(aVertexPosition.x, aVertexPosition.z) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position \x3d uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}", | ||
"vertex"),k=c("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col \x3d fillColor;\nif (hasColor) {\ncol \x3d vColor;\n}\nif (isCircle) {\ngl_FragColor \x3d col * texture2D(uSampler, gl_PointCoord.st);\n} else {\ngl_FragColor \x3d col;\n}\n}","fragment");if(!e||!k)return l=!1;l=a.createProgram();a.attachShader(l,e);a.attachShader(l,k);a.linkProgram(l); | ||
a.useProgram(l);a.bindAttribLocation(l,0,"aVertexPosition");h=d("uPMatrix");v=d("pSize");E=d("fillColor");F=d("isBubble");f=d("bubbleSizeAbs");r=d("bubbleSizeByArea");z=d("uSampler");b=d("skipTranslation");n=d("isCircle");g=d("isInverted");return!0}function k(b,c){b=e[b]=e[b]||a.getUniformLocation(l,b);a.uniform1f(b,c)}var e={},l,h,v,E,F,f,r,b,n,g,z;a&&d();return{psUniform:function(){return v},pUniform:function(){return h},fillColorUniform:function(){return E},setBubbleUniforms:function(b,c,d){var e= | ||
b.options,l=Number.MAX_VALUE,h=-Number.MAX_VALUE;"bubble"===b.type&&(l=D(e.zMin,Math.min(l,Math.max(c,!1===e.displayNegative?e.zThreshold:-Number.MAX_VALUE))),h=D(e.zMax,Math.max(h,d)),a.uniform1i(F,1),a.uniform1i(n,1),a.uniform1i(r,"width"!==b.options.sizeBy),a.uniform1i(f,b.options.sizeByAbsoluteValue),k("bubbleZMin",l),k("bubbleZMax",h),k("bubbleZThreshold",b.options.zThreshold),k("bubbleMinSize",b.minPxSize),k("bubbleMaxSize",b.maxPxSize))},bind:function(){a.useProgram(l)},program:function(){return l}, | ||
create:d,setUniform:k,setPMatrix:function(b){a.uniformMatrix4fv(h,!1,b)},setColor:function(b){a.uniform4f(E,b[0]/255,b[1]/255,b[2]/255,b[3])},setPointSize:function(b){a.uniform1f(v,b)},setSkipTranslation:function(c){a.uniform1i(b,!0===c?1:0)},setTexture:function(){a.uniform1i(z,0)},setDrawAsCircle:function(b){a.uniform1i(n,b?1:0)},reset:function(){a.uniform1i(F,0);a.uniform1i(n,0)},setInverted:function(b){a.uniform1i(g,b)},destroy:function(){a&&l&&a.deleteProgram(l)}}}function X(a,c,d){var k=!1,e= | ||
!1,l=d||2,h=!1,v=0,g;return{destroy:function(){k&&a.deleteBuffer(k)},bind:function(){if(!k)return!1;a.vertexAttribPointer(e,l,a.FLOAT,!1,0,0)},data:g,build:function(d,f,r){g=d||[];if(!(g&&0!==g.length||h))return k=!1;l=r||l;k&&a.deleteBuffer(k);k=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,k);a.bufferData(a.ARRAY_BUFFER,h||new Float32Array(g),a.STATIC_DRAW);e=a.getAttribLocation(c.program(),f);a.enableVertexAttribArray(e);return!0},render:function(c,d,e){var b=h?h.length:g.length;if(!k||!b)return!1; | ||
if(!c||c>b||0>c)c=0;if(!d||d>b)d=b;a.drawArrays(a[(e||"points").toUpperCase()],c/l,(d-c)/l);return!0},allocate:function(a){v=-1;h=new Float32Array(4*a)},push:function(a,c,d,b){h&&(h[++v]=a,h[++v]=c,h[++v]=d,h[++v]=b)}}}function ga(a){function c(a){var b,c;return x(a)?(b=!!a.options.stacking,c=a.xData||a.options.xData||a.processedXData,b=(b?a.data:c||a.options.data).length,"treemap"===a.type?b*=12:"heatmap"===a.type?b*=6:O[a.type]&&(b*=2),b):0}function d(){b.clear(b.COLOR_BUFFER_BIT|b.DEPTH_BUFFER_BIT)} | ||
function k(a,b){function c(a){a&&(b.colorData.push(a[0]),b.colorData.push(a[1]),b.colorData.push(a[2]),b.colorData.push(a[3]))}function d(a,b,d,e,k){c(k);p.usePreallocated?r.push(a,b,d?1:0,e||1):(z.push(a),z.push(b),z.push(d?1:0),z.push(e||1))}function e(a,b,e,k,f){c(f);d(a+e,b);c(f);d(a,b);c(f);d(a,b+k);c(f);d(a,b+k);c(f);d(a+e,b+k);c(f);d(a+e,b)}var k=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),B=a.chart,f=a.options,N=!!f.stacking,l=f.data,g=a.xAxis.getExtremes(),v=g.min,n=g.max,g=a.yAxis.getExtremes(), | ||
u=g.min,q=g.max,g=a.xData||f.xData||a.processedXData,w=a.yData||f.yData||a.processedYData,m=a.zData||f.zData||a.processedZData,F=a.yAxis,A=a.xAxis,x=!g||0===g.length,t=a.points||!1,C=!1,E,I,J,G=N?a.data:g||l;f.boostData&&0<f.boostData.length||(a.closestPointRangePx=Number.MAX_VALUE,t&&0<t.length?(b.skipTranslation=!0,b.drawMode="triangles",t[0].node&&t[0].node.levelDynamic&&t.sort(function(a,b){if(a.node){if(a.node.levelDynamic>b.node.levelDynamic)return 1;if(a.node.levelDynamic<b.node.levelDynamic)return-1}return 0}), | ||
y(t,function(b){var c=b.plotY,d;void 0===c||isNaN(c)||null===b.y||(c=b.shapeArgs,d=b.pointAttr&&b.pointAttr[""]||b.series.pointAttribs(b),b=d["stroke-width"],I=h.color(d.fill).rgba,I[0]/=255,I[1]/=255,I[2]/=255,"treemap"===a.type&&(b=b||1,J=h.color(d.stroke).rgba,J[0]/=255,J[1]/=255,J[2]/=255,e(c.x,c.y,c.width,c.height,J),b/=2),e(c.x+b,c.y+b,c.width-2*b,c.height-2*b,I))})):y(G,function(c,e){var f,h,l,g=!1,K=!1,Y=!1,Z=!1,r=O[a.type],t=!1,T=!0;if("undefined"===typeof B.index)return!1;x?(f=c[0],h=c[1], | ||
G[e+1]&&(K=G[e+1][0]),G[e-1]&&(g=G[e-1][0]),3<=c.length&&(l=c[2],c[2]>b.zMax&&(b.zMax=c[2]),c[2]<b.zMin&&(b.zMin=c[2]))):(f=c,h=w[e],G[e+1]&&(K=G[e+1]),G[e-1]&&(g=G[e-1]),m&&m.length&&(l=m[e],m[e]>b.zMax&&(b.zMax=m[e]),m[e]<b.zMin&&(b.zMin=m[e])));K&&K>=v&&K<=n&&(Y=!0);g&&g>=v&&g<=n&&(Z=!0);k?(x&&(h=c.slice(1,3)),h=h[1]):N&&(f=c.x,h=c.stackY);a.requireSorting||(T=h>=u&&h<=q);h&&T&&(f>=v&&f<=n&&(t=!0),t||Y||Z)&&(p.useGPUTranslations||(b.skipTranslation=!0,f=A.toPixels(f,!0),h=F.toPixels(h,!0)),r&& | ||
(E=0,0>h&&(E=h,h=0),p.useGPUTranslations||(E=F.toPixels(E,!0)),d(f,E,0,0,!1)),b.hasMarkers&&!1!==C&&(a.closestPointRangePx=Math.min(a.closestPointRangePx,Math.abs(f-C))),d(f,h,0,"bubble"===a.type?l||1:2,!1),C=f)}))}function e(){u=[];C.data=z=[];w=[]}function l(a){f&&(f.setUniform("xAxisTrans",a.transA),f.setUniform("xAxisMin",a.min),f.setUniform("xAxisMinPad",a.minPixelPadding),f.setUniform("xAxisPointRange",a.pointRange),f.setUniform("xAxisLen",a.len),f.setUniform("xAxisPos",a.pos),f.setUniform("xAxisCVSCoord", | ||
!a.horiz))}function g(a){f&&(f.setUniform("yAxisTrans",a.transA),f.setUniform("yAxisMin",a.min),f.setUniform("yAxisMinPad",a.minPixelPadding),f.setUniform("yAxisPointRange",a.pointRange),f.setUniform("yAxisLen",a.len),f.setUniform("yAxisPos",a.pos),f.setUniform("yAxisCVSCoord",!a.horiz))}function v(a,b){f.setUniform("hasThreshold",a);f.setUniform("translatedThreshold",b)}function q(c){if(c)n=c.chartWidth||800,A=c.chartHeight||400;else return!1;if(!b||!n||!A)return!1;p.timeRendering&&console.time("gl rendering"); | ||
f.bind();b.viewport(0,0,n,A);f.setPMatrix([2/n,0,0,0,0,-(2/A),0,0,0,0,-2,0,-1,1,-1,1]);b.lineWidth(p.lineWidth);r.build(C.data,"aVertexPosition",4);r.bind();m&&(b.bindTexture(b.TEXTURE_2D,L),f.setTexture(L));f.setInverted(c.options.chart?c.options.chart.inverted:!1);y(u,function(a,c){var d=a.series.options,e=d.threshold,k=P(e),e=a.series.yAxis.getThreshold(e),K=D(d.marker?d.marker.enabled:null,a.series.xAxis.isRadial?!0:null,a.series.closestPointRangePx>2*((d.marker?d.marker.radius:10)||10)),B=a.series.fillOpacity? | ||
(new aa(a.series.color)).setOpacity(D(d.fillOpacity,.85)).get():a.series.color;r.bind();d.colorByPoint&&(B=a.series.chart.options.colors[c]);B=h.color(B).rgba;p.useAlpha||(B[3]=1);"add"===d.boostBlending?(b.blendFunc(b.SRC_ALPHA,b.ONE),b.blendEquation(b.FUNC_ADD)):"mult"===d.boostBlending?b.blendFunc(b.DST_COLOR,b.ZERO):"darken"===d.boostBlending?(b.blendFunc(b.ONE,b.ONE),b.blendEquation(b.FUNC_MIN)):(b.blendFunc(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA),b.blendEquation(b.FUNC_ADD));f.reset();0<a.colorData.length&& | ||
(f.setUniform("hasColor",1),c=X(b,f),c.build(a.colorData,"aColor",4),c.bind());f.setColor(B);l(a.series.xAxis);g(a.series.yAxis);v(k,e);"points"===a.drawMode&&(d.marker&&d.marker.radius?f.setPointSize(2*d.marker.radius):f.setPointSize(1));f.setSkipTranslation(a.skipTranslation);"bubble"===a.series.type&&f.setBubbleUniforms(a.series,a.zMin,a.zMax);f.setDrawAsCircle(ha[a.series.type]&&m||!1);r.render(a.from,a.to,a.drawMode);a.hasMarkers&&K&&(d.marker&&d.marker.radius?f.setPointSize(2*d.marker.radius): | ||
f.setPointSize(10),f.setDrawAsCircle(!0),r.render(a.from,a.to,"POINTS"))});r.destroy();p.timeRendering&&console.timeEnd("gl rendering");e();a&&a()}function F(a){d();if(a.renderer.forExport)return q(a);t?q(a):setTimeout(function(){F(a)},1)}var f=!1,r=!1,b=!1,n=0,A=0,z=!1,w=!1,m=!1,C={},t=!1,u=[],M=U.createElement("canvas"),Q=M.getContext("2d"),L,O={column:!0,area:!0},ha={scatter:!0,bubble:!0},p={pointSize:1,lineWidth:3,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,timeRendering:!1, | ||
timeSeriesProcessing:!1,timeSetup:!1};return C={allocateBufferForSingleSeries:function(a){var b=0;p.usePreallocated&&(x(a)&&(b=c(a)),r.allocate(b))},pushSeries:function(a){0<u.length&&(u[u.length-1].to=z.length,u[u.length-1].hasMarkers&&(u[u.length-1].markerTo=w.length));p.timeSeriesProcessing&&console.time("building "+a.type+" series");u.push({from:z.length,markerFrom:w.length,colorData:[],series:a,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:a.options.marker?!1!==a.options.marker.enabled: | ||
!1,showMarksers:!0,drawMode:{area:"lines",arearange:"lines",areaspline:"line_strip",column:"lines",line:"line_strip",scatter:"points",heatmap:"triangles",treemap:"triangles",bubble:"points"}[a.type]||"line_strip"});k(a,u[u.length-1]);p.timeSeriesProcessing&&console.timeEnd("building "+a.type+" series")},setSize:function(a,b){if(n!==a||b!==b)n=a,A=b,f.bind(),f.setPMatrix([2/n,0,0,0,0,-(2/A),0,0,0,0,-2,0,-1,1,-1,1])},inited:function(){return t},setThreshold:v,init:function(a,c){var d=0,k=["webgl","experimental-webgl", | ||
"moz-webgl","webkit-3d"];t=!1;if(!a)return!1;for(p.timeSetup&&console.time("gl setup");d<k.length&&!(b=a.getContext(k[d]));d++);if(b)c||e();else return!1;b.enable(b.BLEND);b.blendFunc(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA);b.disable(b.DEPTH_TEST);b.depthMask(b.FALSE);f=H(b);r=X(b,f);m=!1;L=b.createTexture();M.width=512;M.height=512;Q.fillStyle="#FFF";Q.beginPath();Q.arc(256,256,256,0,2*Math.PI);Q.fill();try{b.bindTexture(b.TEXTURE_2D,L),b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,M),b.texParameteri(b.TEXTURE_2D, | ||
b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR),b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR_MIPMAP_LINEAR),b.generateMipmap(b.TEXTURE_2D),b.bindTexture(b.TEXTURE_2D,null),m=!0}catch(T){}t=!0;p.timeSetup&&console.timeEnd("gl setup");return!0},render:F,settings:p,valid:function(){return!1!==b},clear:d,flush:e,setXAxis:l,setYAxis:g,data:z,gl:function(){return b},allocateBuffer:function(a){var b= | ||
0;p.usePreallocated&&(y(a.series,function(a){x(a)&&(b+=c(a))}),r.allocate(b))},destroy:function(){r.destroy();f.destroy()},setOptions:function(a){ia(!0,p,a)}}}function ba(a,c){var d=a.chartWidth,k=a.chartHeight,e=a,g=a.seriesGroup||c.group,m=function(a,d,e,f,k,b,h){a.call(c,e,d,f,k,b,h)},e=w(a)?a:c;e.image||(e.canvas=U.createElement("canvas"),e.image=a.renderer.image("",0,0,d,k).add(g),e.boostClipRect=a.renderer.clipRect(a.plotLeft,a.plotTop,a.plotWidth,a.chartHeight),e.image.clip(e.boostClipRect), | ||
e.inverted&&y(["moveTo","lineTo","rect","arc"],function(a){q(!1,a,m)}),e instanceof h.Chart&&(e.markerGroup=e.renderer.g().add(g),e.markerGroup.translateX=c.xAxis.pos,e.markerGroup.translateY=c.yAxis.pos,e.markerGroup.updateTransform()));e.canvas.width=d;e.canvas.height=k;e.image.attr({x:0,y:0,width:d,height:k,style:"pointer-events: none"});e.boostClipRect.attr({x:a.plotLeft,y:a.plotTop,width:a.plotWidth,height:a.chartHeight});e.ogl||(e.ogl=ga(function(){e.image.attr({href:e.canvas.toDataURL("image/png")})}), | ||
e.ogl.init(e.canvas),e.ogl.setOptions(a.options.boost||{}),e instanceof h.Chart&&e.ogl.allocateBuffer(a));e.ogl.setSize(d,k);return e.ogl}function ca(a,c,d){a&&c.image&&c.canvas&&!w(d||c.chart)&&a.render(d||c.chart)}function da(a,c){a&&c.image&&c.canvas&&!w(c.chart)&&a.allocateBufferForSingleSeries(c)}function R(a,c,d,k,e,h){e=e||0;k=k||5E4;for(var g=e+k,l=!0;l&&e<g&&e<a.length;)l=c(a[e],e),++e;l&&(e<a.length?h?R(a,c,d,k,e,h):S.requestAnimationFrame?S.requestAnimationFrame(function(){R(a,c,d,k,e)}): | ||
setTimeout(function(){R(a,c,d,k,e)}):d&&d())}function ja(a){if(!x(this))return a.call(this);if(a=ba(this.chart,this))da(a,this),a.pushSeries(this);ca(a,this)}var S=h.win,U=S.document,ka=function(){},aa=h.Color,m=h.Series,g=h.seriesTypes,y=h.each,ea=h.extend,fa=h.addEvent,la=h.fireEvent,ma=h.grep,P=h.isNumber,ia=h.merge,D=h.pick,q=h.wrap,V=h.getOptions().plotOptions,W;aa.prototype.names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc", | ||
bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000", | ||
darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c", | ||
indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6", | ||
magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa", | ||
palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c", | ||
teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};m.prototype.getPoint=function(a){var c=a,d=this.xData||this.options.xData||this.processedXData||!1;!a||a instanceof this.pointClass||(c=(new this.pointClass).init(this,this.options.data[a.i],d?d[a.i]:void 0),c.category=c.x,c.dist=a.dist,c.distX=a.distX,c.plotX=a.plotX,c.plotY=a.plotY,c.index=a.i);return c}; | ||
q(m.prototype,"searchPoint",function(a){return this.getPoint(a.apply(this,[].slice.call(arguments,1)))});q(m.prototype,"destroy",function(a){var c=this,d=c.chart;d.markerGroup===c.markerGroup&&(c.markerGroup=null);d.hoverPoints&&(d.hoverPoints=ma(d.hoverPoints,function(a){return a.series===c}));d.hoverPoint&&d.hoverPoint.series===c&&(d.hoverPoint=null);a.call(this)});q(m.prototype,"getExtremes",function(a){if(!x(this)||!this.hasExtremes||!this.hasExtremes())return a.apply(this,Array.prototype.slice.call(arguments, | ||
1))});y("area arearange column line scatter heatmap bubble treemap heatmap".split(" "),function(a){V[a]&&(V[a].boostThreshold=5E3,V[a].boostData=[])});y(["translate","generatePoints","drawTracker","drawPoints","render"],function(a){function c(c){var d=this.options.stacking&&("translate"===a||"generatePoints"===a);if(!x(this)||d||"heatmap"===this.type||"treemap"===this.type)"render"===a&&this.image&&!w(this.chart)&&(this.image.attr({href:""}),this.animate=null),c.call(this);else if(this[a+"Canvas"])this[a+ | ||
"Canvas"]()}q(m.prototype,a,c);"translate"===a&&(g.column&&q(g.column.prototype,a,c),g.arearange&&q(g.arearange.prototype,a,c),g.treemap&&q(g.treemap.prototype,a,c))});(function(){var a=0,c,d=["webgl","experimental-webgl","moz-webgl","webkit-3d"],k=!1;if("undefined"!==typeof S.WebGLRenderingContext)for(c=U.createElement("canvas");a<d.length;a++)try{if(k=c.getContext(d[a]),"undefined"!==typeof k&&null!==k)return!0}catch(e){}return!1})()?(q(m.prototype,"processData",function(a){x(this)&&"heatmap"!== | ||
this.type&&"treemap"!==this.type||a.apply(this,Array.prototype.slice.call(arguments,1));this.hasExtremes&&this.hasExtremes(!0)||a.apply(this,Array.prototype.slice.call(arguments,1))}),h.extend(m.prototype,{pointRange:0,directTouch:!1,allowDG:!1,hasExtremes:function(a){var c=this.options,d=this.xAxis&&this.xAxis.options,k=this.yAxis&&this.yAxis.options;return c.data.length>(c.boostThreshold||Number.MAX_VALUE)&&P(k.min)&&P(k.max)&&(!a||P(d.min)&&P(d.max))},destroyGraphics:function(){var a=this,c=this.points, | ||
d,k;if(c)for(k=0;k<c.length;k+=1)(d=c[k])&&d.graphic&&(d.graphic=d.graphic.destroy());y(["graph","area","tracker"],function(c){a[c]&&(a[c]=a[c].destroy())})},renderCanvas:function(){var a=this,c=a.options||{},d=!1,k=a.chart,e=this.xAxis,h=this.yAxis,g=c.xData||a.processedXData,m=c.yData||a.processedYData,q=c.data,d=e.getExtremes(),x=d.min,f=d.max,d=h.getExtremes(),r=d.min,b=d.max,n={},A,z=!!a.sampling,y,H=!1!==c.enableMouseTracking,d=c.threshold,C=h.getThreshold(d);P(d);var t=a.pointArrayMap&&"low,high"=== | ||
a.pointArrayMap.join(","),u=!!c.stacking,M=a.cropStart||0,Q=a.requireSorting,L=!g,O,D,p,B,N=function(a,b,c){W=a+","+b;H&&!n[W]&&(n[W]=!0,k.inverted&&(a=e.len-a,b=h.len-b),y.push({clientX:a,plotX:a,plotY:b,i:M+c}))},d=ba(k,a);this.visible?((this.points||this.graph)&&this.destroyGraphics(),w(k)?this.markerGroup=k.markerGroup:this.markerGroup=a.plotGroup("markerGroup","markers",!0,1,k.seriesGroup),y=this.points=[],a.buildKDTree=ka,d&&(da(d,this),d.pushSeries(a),ca(d,this,k)),R(u?a.data:g||q,function(a, | ||
c){var d,g,l,n="undefined"===typeof k.index,q=!0;if(!n&&(L?(d=a[0],g=a[1]):(d=a,g=m[c]),t?(L&&(g=a.slice(1,3)),l=g[0],g=g[1]):u&&(d=a.x,g=a.stackY,l=g-a.y),Q||(q=g>=r&&g<=b),null!==g&&d>=x&&d<=f&&q))if(a=Math.ceil(e.toPixels(d,!0)),z){if(void 0===p||a===A){t||(l=g);if(void 0===B||g>D)D=g,B=c;if(void 0===p||l<O)O=l,p=c}a!==A&&(void 0!==p&&(g=h.toPixels(D,!0),C=h.toPixels(O,!0),N(a,g,B),C!==g&&N(a,C,p)),p=B=void 0,A=a)}else g=Math.ceil(h.toPixels(g,!0)),N(a,g,c);return!n},function(){la(a,"renderedCanvas"); | ||
a.directTouch=!1;a.options.stickyTracking=!0;delete a.buildKDTree;a.buildKDTree()},k.renderer.forExport?Number.MAX_VALUE:void 0)):!w(k)&&d&&(d.clear(),this.image.attr({href:""}))}}),y(["heatmap","treemap"],function(a){g[a]&&(q(g[a].prototype,"drawPoints",ja),g[a].prototype.directTouch=!1)}),g.bubble&&(delete g.bubble.prototype.buildKDTree,g.bubble.prototype.directTouch=!1,q(g.bubble.prototype,"markerAttribs",function(a){return x(this)?!1:a.apply(this,[].slice.call(arguments,1))})),g.scatter.prototype.fill= | ||
!0,ea(g.area.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),ea(g.column.prototype,{fill:!0,sampling:!0}),q(m.prototype,"setVisible",function(a,c){a.call(this,c,!1);!1===this.visible&&this.ogl&&this.canvas&&this.image?(this.ogl.clear(),this.image.attr({href:""})):this.chart.redraw()}),h.Chart.prototype.callbacks.push(function(a){fa(a,"predraw",function(){a.canvas&&a.ogl&&w(a)&&a.ogl.allocateBuffer(a)});fa(a,"render",function(){a.ogl&&w(a)&&a.ogl.render(a)})})):"undefined"!==typeof h.initCanvasBoost? | ||
h.initCanvasBoost():h.error(26)})(H)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -8,8 +8,8 @@ (c) 2009-2016 Torstein Honsi | ||
*/ | ||
(function(h){"object"===typeof module&&module.exports?module.exports=h:h(Highcharts)})(function(h){(function(e){function h(){return Array.prototype.slice.call(arguments,1)}function v(c){c.apply(this);this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,t(this.pointArrayMap,["y"]))}var t=e.pick,q=e.wrap,u=e.each,y=e.extend,z=e.isArray,w=e.fireEvent,r=e.Axis,A=e.Series;y(r.prototype,{isInBreak:function(c,d){var f=c.repeat||Infinity,b=c.from,a=c.to-c.from;d=d>=b?(d-b)%f:f-(b-d)%f;return c.inclusive? | ||
d<=a:d<a&&0!==d},isInAnyBreak:function(c,d){var f=this.options.breaks,b=f&&f.length,a,g,n;if(b){for(;b--;)this.isInBreak(f[b],c)&&(a=!0,g||(g=t(f[b].showPoints,this.isXAxis?!1:!0)));n=a&&d?a&&!g:a}return n}});q(r.prototype,"setTickPositions",function(c){c.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var d=this.tickPositions,f=this.tickPositions.info,b=[],a;for(a=0;a<d.length;a++)this.isInAnyBreak(d[a])||b.push(d[a]);this.tickPositions=b;this.tickPositions.info=f}}); | ||
q(r.prototype,"init",function(c,d,f){var b=this;f.breaks&&f.breaks.length&&(f.ordinal=!1);c.call(this,d,f);c=this.options.breaks;b.isBroken=z(c)&&!!c.length;b.isBroken&&(b.val2lin=function(a){var g=a,n,c;for(c=0;c<b.breakArray.length;c++)if(n=b.breakArray[c],n.to<=a)g-=n.len;else if(n.from>=a)break;else if(b.isInBreak(n,a)){g-=a-n.from;break}return g},b.lin2val=function(a){var g,c;for(c=0;c<b.breakArray.length&&!(g=b.breakArray[c],g.from>=a);c++)g.to<a?a+=g.len:b.isInBreak(g,a)&&(a+=g.len);return a}, | ||
b.setExtremes=function(a,b,c,f,d){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(b);)b-=this.closestPointRange;r.prototype.setExtremes.call(this,a,b,c,f,d)},b.setAxisTranslation=function(a){r.prototype.setAxisTranslation.call(this,a);var c=b.options.breaks;a=[];var f=[],d=0,m,k,p=b.userMin||b.min,e=b.userMax||b.max,l,h;for(h in c)k=c[h],m=k.repeat||Infinity,b.isInBreak(k,p)&&(p+=k.to%m-p%m),b.isInBreak(k,e)&&(e-=e%m-k.from%m);for(h in c){k=c[h];l=k.from;for(m=k.repeat|| | ||
Infinity;l-m>p;)l-=m;for(;l<p;)l+=m;for(;l<e;l+=m)a.push({value:l,move:"in"}),a.push({value:l+(k.to-k.from),move:"out",size:k.breakSize})}a.sort(function(b,c){return b.value===c.value?("in"===b.move?0:1)-("in"===c.move?0:1):b.value-c.value});c=0;l=p;for(h in a)k=a[h],c+="in"===k.move?1:-1,1===c&&"in"===k.move&&(l=k.value),0===c&&(f.push({from:l,to:k.value,len:k.value-l-(k.size||0)}),d+=k.value-l-(k.size||0));b.breakArray=f;w(b,"afterBreaks");b.transA*=(e-b.min)/(e-p-d);b.min=p;b.max=e})});q(A.prototype, | ||
"generatePoints",function(c){c.apply(this,h(arguments));var d=this.xAxis,f=this.yAxis,b=this.points,a,g=b.length,e=this.options.connectNulls,x;if(d&&f&&(d.options.breaks||f.options.breaks))for(;g--;)a=b[g],x=null===a.y&&!1===e,x||!d.isInAnyBreak(a.x,!0)&&!f.isInAnyBreak(a.y,!0)||(b.splice(g,1),this.data[g]&&this.data[g].destroyElements())});e.Series.prototype.drawBreaks=function(c,d){var f=this,b=f.points,a,g,e,h;c&&u(d,function(d){a=c.breakArray||[];g=c.isXAxis?c.min:t(f.options.threshold,c.min); | ||
u(b,function(b){h=t(b["stack"+d.toUpperCase()],b[d]);u(a,function(a){e=!1;if(g<a.from&&h>a.to||g>a.from&&h<a.from)e="pointBreak";else if(g<a.from&&h>a.from&&h<a.to||g>a.from&&h>a.to&&h<a.from)e="pointInBreak";e&&w(c,e,{point:b,brk:a})})})})};q(e.seriesTypes.column.prototype,"drawPoints",v);q(e.Series.prototype,"drawPoints",v)})(h)}); | ||
(function(k){"object"===typeof module&&module.exports?module.exports=k:k(Highcharts)})(function(k){(function(f){function k(){return Array.prototype.slice.call(arguments,1)}function v(c){c.apply(this);this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,q(this.pointArrayMap,["y"]))}var q=f.pick,r=f.wrap,u=f.each,y=f.extend,z=f.isArray,w=f.fireEvent,t=f.Axis,A=f.Series;y(t.prototype,{isInBreak:function(c,e){var g=c.repeat||Infinity,a=c.from,b=c.to-c.from;e=e>=a?(e-a)%g:g-(a-e)%g;return c.inclusive? | ||
e<=b:e<b&&0!==e},isInAnyBreak:function(c,e){var g=this.options.breaks,a=g&&g.length,b,d,m;if(a){for(;a--;)this.isInBreak(g[a],c)&&(b=!0,d||(d=q(g[a].showPoints,this.isXAxis?!1:!0)));m=b&&e?b&&!d:b}return m}});r(t.prototype,"setTickPositions",function(c){c.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var e=this.tickPositions,g=this.tickPositions.info,a=[],b;for(b=0;b<e.length;b++)this.isInAnyBreak(e[b])||a.push(e[b]);this.tickPositions=a;this.tickPositions.info=g}}); | ||
r(t.prototype,"init",function(c,e,g){var a=this;g.breaks&&g.breaks.length&&(g.ordinal=!1);c.call(this,e,g);c=this.options.breaks;a.isBroken=z(c)&&!!c.length;a.isBroken&&(a.val2lin=function(b){var d=b,m,c;for(c=0;c<a.breakArray.length;c++)if(m=a.breakArray[c],m.to<=b)d-=m.len;else if(m.from>=b)break;else if(a.isInBreak(m,b)){d-=b-m.from;break}return d},a.lin2val=function(b){var d,c;for(c=0;c<a.breakArray.length&&!(d=a.breakArray[c],d.from>=b);c++)d.to<b?b+=d.len:a.isInBreak(d,b)&&(b+=d.len);return b}, | ||
a.setExtremes=function(a,d,c,g,e){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(d);)d-=this.closestPointRange;t.prototype.setExtremes.call(this,a,d,c,g,e)},a.setAxisTranslation=function(b){t.prototype.setAxisTranslation.call(this,b);var d=a.options.breaks;b=[];var c=[],g=0,e,h,n=a.userMin||a.min,f=a.userMax||a.max,k=q(a.pointRangePadding,0),l,p;for(p in d)h=d[p],e=h.repeat||Infinity,a.isInBreak(h,n)&&(n+=h.to%e-n%e),a.isInBreak(h,f)&&(f-=f%e-h.from%e);for(p in d){h=d[p]; | ||
l=h.from;for(e=h.repeat||Infinity;l-e>n;)l-=e;for(;l<n;)l+=e;for(;l<f;l+=e)b.push({value:l,move:"in"}),b.push({value:l+(h.to-h.from),move:"out",size:h.breakSize})}b.sort(function(a,b){return a.value===b.value?("in"===a.move?0:1)-("in"===b.move?0:1):a.value-b.value});d=0;l=n;for(p in b)h=b[p],d+="in"===h.move?1:-1,1===d&&"in"===h.move&&(l=h.value),0===d&&(c.push({from:l,to:h.value,len:h.value-l-(h.size||0)}),g+=h.value-l-(h.size||0));a.breakArray=c;a.unitLength=f-n-g+k;w(a,"afterBreaks");a.transA= | ||
a.options.staticScale?a.options.staticScale:(f-a.min+k)/a.unitLength*a.transA;k&&(a.minPixelPadding=a.transA*a.minPointOffset);a.min=n;a.max=f})});r(A.prototype,"generatePoints",function(c){c.apply(this,k(arguments));var e=this.xAxis,g=this.yAxis,a=this.points,b,d=a.length,f=this.options.connectNulls,x;if(e&&g&&(e.options.breaks||g.options.breaks))for(;d--;)b=a[d],x=null===b.y&&!1===f,x||!e.isInAnyBreak(b.x,!0)&&!g.isInAnyBreak(b.y,!0)||(a.splice(d,1),this.data[d]&&this.data[d].destroyElements())}); | ||
f.Series.prototype.drawBreaks=function(c,e){var g=this,a=g.points,b,d,f,k;c&&u(e,function(e){b=c.breakArray||[];d=c.isXAxis?c.min:q(g.options.threshold,c.min);u(a,function(a){k=q(a["stack"+e.toUpperCase()],a[e]);u(b,function(b){f=!1;if(d<b.from&&k>b.to||d>b.from&&k<b.from)f="pointBreak";else if(d<b.from&&k>b.from&&k<b.to||d>b.from&&k>b.to&&k<b.from)f="pointInBreak";f&&w(c,f,{point:a,brk:b})})})})};r(f.seriesTypes.column.prototype,"drawPoints",v);r(f.Series.prototype,"drawPoints",v)})(k)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -22,3 +23,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -177,2 +177,3 @@ var pick = H.pick, | ||
max = axis.userMax || axis.max, | ||
pointRangePadding = pick(axis.pointRangePadding, 0), | ||
start, | ||
@@ -253,6 +254,19 @@ i, | ||
// Used with staticScale, and below, the actual axis length when | ||
// breaks are substracted. | ||
axis.unitLength = max - min - length + pointRangePadding; | ||
fireEvent(axis, 'afterBreaks'); | ||
axis.transA *= ((max - axis.min) / (max - min - length)); | ||
if (axis.options.staticScale) { | ||
axis.transA = axis.options.staticScale; | ||
} else { | ||
axis.transA *= (max - axis.min + pointRangePadding) / | ||
axis.unitLength; | ||
} | ||
if (pointRangePadding) { | ||
axis.minPixelPadding = axis.transA * axis.minPointOffset; | ||
} | ||
axis.min = min; | ||
@@ -259,0 +273,0 @@ axis.max = max; |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Data module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Data module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -27,3 +28,2 @@ if (typeof module === 'object' && module.exports) { | ||
/* global jQuery */ | ||
'use strict'; | ||
@@ -30,0 +30,0 @@ // Utilities |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Highcharts Drilldown module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Highcharts Drilldown module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
@@ -701,7 +701,7 @@ var noop = H.noop, | ||
.css(axis.chart.options.drilldown.activeAxisLabelStyle) | ||
.css(axis.chart.options.drilldown.activeAxisLabelStyle) | ||
.on('click', function(e) { | ||
axis.drilldownCategory(pos, e); | ||
}); | ||
.on('click', function(e) { | ||
axis.drilldownCategory(pos, e); | ||
}); | ||
@@ -708,0 +708,0 @@ } else if (label && label.drillable) { |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Exporting module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Exporting module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -27,3 +28,2 @@ if (typeof module === 'object' && module.exports) { | ||
/* eslint indent:0 */ | ||
'use strict'; | ||
@@ -249,4 +249,4 @@ // create shortcuts | ||
// Replace HTML entities, issue #347 | ||
.replace(/ /g, '\u00A0') // no-break space | ||
// Replace HTML entities, issue #347 | ||
.replace(/ /g, '\u00A0') // no-break space | ||
.replace(/­/g, '\u00AD'); // soft hyphen | ||
@@ -253,0 +253,0 @@ |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Highcharts funnel module | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Highcharts funnel module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
/* eslint indent:0 */ | ||
'use strict'; | ||
@@ -51,3 +51,3 @@ // create shortcuts | ||
connectorWidth: 1 | ||
//connectorColor: null | ||
//connectorColor: null | ||
}, | ||
@@ -74,3 +74,3 @@ states: { | ||
var | ||
// Get positions - either an integer or a percentage string must be given | ||
// Get positions - either an integer or a percentage string must be given | ||
getLength = function(length, relativeTo) { | ||
@@ -77,0 +77,0 @@ return (/%$/).test(length) ? |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Gantt series | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Gantt series | ||
@@ -11,2 +11,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -173,7 +173,7 @@ var dateFormat = H.dateFormat, | ||
.css(axisTitleOptions.style) | ||
.css(axisTitleOptions.style) | ||
// Add to axisParent instead of axisGroup, to ignore the space | ||
// it takes | ||
.add(axisParent); | ||
// Add to axisParent instead of axisGroup, to ignore the space | ||
// it takes | ||
.add(axisParent); | ||
axis.axisTitle.isNew = true; | ||
@@ -557,3 +557,2 @@ } | ||
*/ | ||
'use strict'; | ||
@@ -820,5 +819,4 @@ var defaultPlotOptions = H.getOptions().plotOptions, | ||
*/ | ||
'use strict'; | ||
// | ||
}(Highcharts)); | ||
})); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
GridAxis | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* GridAxis | ||
@@ -11,2 +11,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -173,7 +173,7 @@ var dateFormat = H.dateFormat, | ||
.css(axisTitleOptions.style) | ||
.css(axisTitleOptions.style) | ||
// Add to axisParent instead of axisGroup, to ignore the space | ||
// it takes | ||
.add(axisParent); | ||
// Add to axisParent instead of axisGroup, to ignore the space | ||
// it takes | ||
.add(axisParent); | ||
axis.axisTitle.isNew = true; | ||
@@ -180,0 +180,0 @@ } |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -9,18 +9,18 @@ (c) 2009-2016 Torstein Honsi | ||
(function(n){"object"===typeof module&&module.exports?module.exports=n:n(Highcharts)})(function(n){(function(c){var k=c.Axis,r=c.Chart,m=c.color,l,e=c.each,v=c.extend,w=c.isNumber,p=c.Legend,f=c.LegendSymbolMixin,x=c.noop,q=c.merge,u=c.pick,t=c.wrap;l=c.ColorAxis=function(){this.init.apply(this,arguments)};v(l.prototype,k.prototype);v(l.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50}, | ||
width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItem","legendSymbol"].concat(k.prototype.keepProps),init:function(a,b){var d="vertical"!==a.options.legend.layout,g;this.coll="colorAxis";g=q(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},b,{opposite:!d,showEmpty:!1,title:null});k.prototype.init.call(this,a,g);b.dataClasses&&this.initDataClasses(b);this.initStops(b);this.horiz= | ||
d;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,b,d){var g;b.rgba.length&&a.rgba.length?(a=a.rgba,b=b.rgba,g=1!==b[3]||1!==a[3],a=(g?"rgba(":"rgb(")+Math.round(b[0]+(a[0]-b[0])*(1-d))+","+Math.round(b[1]+(a[1]-b[1])*(1-d))+","+Math.round(b[2]+(a[2]-b[2])*(1-d))+(g?","+(b[3]+(a[3]-b[3])*(1-d)):"")+")"):a=b.input||"none";return a},initDataClasses:function(a){var b=this,d=this.chart,g,h=0,c=d.options.chart.colorCount,y=this.options,f=a.dataClasses.length;this.dataClasses=g= | ||
[];this.legendItems=[];e(a.dataClasses,function(a,e){a=q(a);g.push(a);a.color||("category"===y.dataClassColor?(e=d.options.colors,c=e.length,a.color=e[h],a.colorIndex=h,h++,h===c&&(h=0)):a.color=b.tweenColors(m(y.minColor),m(y.maxColor),2>f?.5:e/(f-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];e(this.stops,function(a){a.color=m(a[1])})},setOptions:function(a){k.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a= | ||
this.legendSymbol,b=this.chart,d=b.options.legend||{},g,h;a?(this.left=d=a.attr("x"),this.top=g=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-h,this.bottom=b.chartHeight-g-a,this.len=this.horiz?h:a,this.pos=this.horiz?d:g):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,b){var d=this.stops,g,h,c=this.dataClasses,e,f;if(c)for(f=c.length;f--;){if(e=c[f],g=e.from,d=e.to,(void 0===g||a>=g)&&(void 0=== | ||
d||a<=d)){h=e.color;b&&(b.dataClass=f,b.colorIndex=e.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(f=d.length;f--&&!(a>d[f][0]););g=d[f]||d[f+1];d=d[f+1]||g;a=1-(d[0]-a)/(d[0]-g[0]||1);h=this.tweenColors(g.color,d.color,a)}return h},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,k.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]= | ||
b)},setLegendColor:function(){var a,b=this.options,d=this.reversed;a=d?1:0;d=d?0:1;a=this.horiz?[a,0,d,0]:[0,d,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var d=a.padding,g=a.options,h=this.horiz,c=u(g.symbolWidth,h?this.defaultLegendLength:12),f=u(g.symbolHeight,h?12:this.defaultLegendLength),e=u(g.labelPadding,h?16:30),g=u(g.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0, | ||
a.baseline-11,c,f).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=c+d+(h?g:e);this.legendItemHeight=f+d+(h?e:0)},setState:x,visible:!0,setVisible:x,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var d=b&&b.plotX,c=b&&b.plotY,h,f=this.pos,e=this.len;b&&(h=this.toPixels(b[b.series.colorKey]), | ||
h<f?h=f-2:h>f+e&&(h=f+e+2),b.plotX=h,b.plotY=this.len-h,k.prototype.drawCrosshair.call(this,a,b),b.plotX=d,b.plotY=c,this.cross&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,d,c,h){return w(h)?this.horiz?["M",h-4,this.top-6,"L",h+4,this.top-6,h,this.top,"Z"]:["M",this.left,h,"L",this.left-6,h+6,this.left-6,h-6,"Z"]:k.prototype.getPlotLinePath.call(this,a,b,d,c)},update:function(a,b){var d=this.chart, | ||
c=d.legend;e(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&c.allItems&&(e(c.allItems,function(a){a.isDataClass&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=q(this.userOptions,a);k.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),c.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var a=this,b=this.chart,d=this.legendItems,g=b.options.legend,h=g.valueDecimals,t=g.valueSuffix||"",k;d.length||e(this.dataClasses,function(g,p){var l= | ||
!0,q=g.from,m=g.to;k="";void 0===q?k="\x3c ":void 0===m&&(k="\x3e ");void 0!==q&&(k+=c.numberFormat(q,h)+t);void 0!==q&&void 0!==m&&(k+=" - ");void 0!==m&&(k+=c.numberFormat(m,h)+t);d.push(v({chart:b,name:k,options:{},drawLegendSymbol:f.drawRectangle,visible:!0,setState:x,isDataClass:!0,setVisible:function(){l=this.visible=!l;e(a.series,function(a){e(a.points,function(a){a.dataClass===p&&a.setVisible(l)})});b.legend.colorizeItem(this,l)}},g))});return d},name:""});e(["fill","stroke"],function(a){c.Fx.prototype[a+ | ||
"Setter"]=function(){this.elem.attr(a,l.prototype.tweenColors(m(this.start),m(this.end),this.pos),null,!0)}});t(r.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new l(this,b)});t(p.prototype,"getAllItems",function(a){var b=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses?b=b.concat(d.getDataClassLegendSymbols()):b.push(d)),e(d.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});t(p.prototype, | ||
"colorizeItem",function(a,b,d){a.call(this,b,d);d&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(n);(function(c){var k=c.defined,r=c.each,m=c.noop,l=c.seriesTypes;c.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(c){var e=this,k=c?"show":"hide";r(["graphic","dataLabel"],function(c){if(e[c])e[c][k]()})},setState:function(e){c.Point.prototype.setState.call(this,e);this.graphic&&this.graphic.attr({zIndex:"hover"===e?1:0})}};c.colorSeriesMixin={pointArrayMap:["value"], | ||
axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:m,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:l.column.prototype.pointAttribs,translateColors:function(){var c=this,k=this.options.nullColor,l=this.colorAxis,m=this.colorKey;r(this.data,function(f){var e=f[m];if(e=f.options.color||(f.isNull?k:l&&void 0!==e?l.toColor(e,f):f.color||c.color))f.color=e})},colorAttribs:function(c){var e={};k(c.color)&&(e[this.colorProp|| | ||
"fill"]=c.color);return e}}})(n);(function(c){var k=c.colorPointMixin,r=c.each,m=c.merge,l=c.noop,e=c.pick,n=c.Series,w=c.seriesType,p=c.seriesTypes;w("heatmap","scatter",{animation:!1,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}}, | ||
m(c.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var c;p.scatter.prototype.init.apply(this,arguments);c=this.options;c.pointRange=e(c.pointRange,c.colsize||1);this.yAxis.axisPointRange=c.rowsize||1},translate:function(){var c=this.options,e=this.xAxis,k=this.yAxis,l=function(c,a,b){return Math.min(Math.max(a,c),b)};this.generatePoints();r(this.points,function(f){var a=(c.colsize||1)/2,b=(c.rowsize|| | ||
1)/2,d=l(Math.round(e.len-e.translate(f.x-a,0,1,0,1)),-e.len,2*e.len),a=l(Math.round(e.len-e.translate(f.x+a,0,1,0,1)),-e.len,2*e.len),g=l(Math.round(k.translate(f.y-b,0,1,0,1)),-k.len,2*k.len),b=l(Math.round(k.translate(f.y+b,0,1,0,1)),-k.len,2*k.len);f.plotX=f.clientX=(d+a)/2;f.plotY=(g+b)/2;f.shapeType="rect";f.shapeArgs={x:Math.min(d,a),y:Math.min(g,b),width:Math.abs(a-d),height:Math.abs(b-g)}});this.translateColors()},drawPoints:function(){p.column.prototype.drawPoints.call(this);r(this.points, | ||
function(c){c.graphic.attr(this.colorAttribs(c))},this)},animate:l,getBox:l,drawLegendSymbol:c.LegendSymbolMixin.drawRectangle,alignDataLabel:p.column.prototype.alignDataLabel,getExtremes:function(){n.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;n.prototype.getExtremes.call(this)}}),k)})(n)}); | ||
width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(k.prototype.keepProps),init:function(a,b){var d="vertical"!==a.options.legend.layout,g;this.coll="colorAxis";g=q(this.defaultColorAxisOptions,{side:d?2:1,reversed:!d},b,{opposite:!d,showEmpty:!1,title:null});k.prototype.init.call(this,a,g);b.dataClasses&&this.initDataClasses(b); | ||
this.initStops(b);this.horiz=d;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,b,d){var g;b.rgba.length&&a.rgba.length?(a=a.rgba,b=b.rgba,g=1!==b[3]||1!==a[3],a=(g?"rgba(":"rgb(")+Math.round(b[0]+(a[0]-b[0])*(1-d))+","+Math.round(b[1]+(a[1]-b[1])*(1-d))+","+Math.round(b[2]+(a[2]-b[2])*(1-d))+(g?","+(b[3]+(a[3]-b[3])*(1-d)):"")+")"):a=b.input||"none";return a},initDataClasses:function(a){var b=this,d=this.chart,g,h=0,c=d.options.chart.colorCount,y=this.options,f=a.dataClasses.length; | ||
this.dataClasses=g=[];this.legendItems=[];e(a.dataClasses,function(a,e){a=q(a);g.push(a);a.color||("category"===y.dataClassColor?(e=d.options.colors,c=e.length,a.color=e[h],a.colorIndex=h,h++,h===c&&(h=0)):a.color=b.tweenColors(m(y.minColor),m(y.maxColor),2>f?.5:e/(f-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];e(this.stops,function(a){a.color=m(a[1])})},setOptions:function(a){k.prototype.setOptions.call(this,a);this.options.crosshair=this.options.marker}, | ||
setAxisSize:function(){var a=this.legendSymbol,b=this.chart,d=b.options.legend||{},g,h;a?(this.left=d=a.attr("x"),this.top=g=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-d-h,this.bottom=b.chartHeight-g-a,this.len=this.horiz?h:a,this.pos=this.horiz?d:g):this.len=(this.horiz?d.symbolWidth:d.symbolHeight)||this.defaultLegendLength},toColor:function(a,b){var d=this.stops,g,h,c=this.dataClasses,e,f;if(c)for(f=c.length;f--;){if(e=c[f],g=e.from,d=e.to,(void 0=== | ||
g||a>=g)&&(void 0===d||a<=d)){h=e.color;b&&(b.dataClass=f,b.colorIndex=e.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(f=d.length;f--&&!(a>d[f][0]););g=d[f]||d[f+1];d=d[f+1]||g;a=1-(d[0]-a)/(d[0]-g[0]||1);h=this.tweenColors(g.color,d.color,a)}return h},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,k.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight= | ||
this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.options,d=this.reversed;a=d?1:0;d=d?0:1;a=this.horiz?[a,0,d,0]:[0,d,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var d=a.padding,g=a.options,h=this.horiz,c=u(g.symbolWidth,h?this.defaultLegendLength:12),f=u(g.symbolHeight,h?12:this.defaultLegendLength),e=u(g.labelPadding,h?16:30),g=u(g.itemDistance,10);this.setLegendColor(); | ||
b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,f).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=c+d+(h?g:e);this.legendItemHeight=f+d+(h?e:0)},setState:x,visible:!0,setVisible:x,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a,b){var d=b&&b.plotX,c=b&&b.plotY,h,f= | ||
this.pos,e=this.len;b&&(h=this.toPixels(b[b.series.colorKey]),h<f?h=f-2:h>f+e&&(h=f+e+2),b.plotX=h,b.plotY=this.len-h,k.prototype.drawCrosshair.call(this,a,b),b.plotX=d,b.plotY=c,this.cross&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,d,c,h){return w(h)?this.horiz?["M",h-4,this.top-6,"L",h+4,this.top-6,h,this.top,"Z"]:["M",this.left,h,"L",this.left-6,h+6,this.left-6,h-6,"Z"]:k.prototype.getPlotLinePath.call(this, | ||
a,b,d,c)},update:function(a,b){var d=this.chart,c=d.legend;e(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&c.allItems&&(e(c.allItems,function(a){a.isDataClass&&a.legendGroup.destroy()}),d.isDirtyLegend=!0);d.options[this.coll]=q(this.userOptions,a);k.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),c.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var a=this,b=this.chart,d=this.legendItems,g=b.options.legend,h=g.valueDecimals,t=g.valueSuffix||"",k;d.length|| | ||
e(this.dataClasses,function(g,p){var l=!0,q=g.from,m=g.to;k="";void 0===q?k="\x3c ":void 0===m&&(k="\x3e ");void 0!==q&&(k+=c.numberFormat(q,h)+t);void 0!==q&&void 0!==m&&(k+=" - ");void 0!==m&&(k+=c.numberFormat(m,h)+t);d.push(v({chart:b,name:k,options:{},drawLegendSymbol:f.drawRectangle,visible:!0,setState:x,isDataClass:!0,setVisible:function(){l=this.visible=!l;e(a.series,function(a){e(a.points,function(a){a.dataClass===p&&a.setVisible(l)})});b.legend.colorizeItem(this,l)}},g))});return d},name:""}); | ||
e(["fill","stroke"],function(a){c.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,l.prototype.tweenColors(m(this.start),m(this.end),this.pos),null,!0)}});t(r.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new l(this,b)});t(p.prototype,"getAllItems",function(a){var b=[],d=this.chart.colorAxis[0];d&&d.options&&(d.options.showInLegend&&(d.options.dataClasses?b=b.concat(d.getDataClassLegendSymbols()):b.push(d)),e(d.series,function(a){a.options.showInLegend= | ||
!1}));return b.concat(a.call(this))});t(p.prototype,"colorizeItem",function(a,b,d){a.call(this,b,d);d&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(n);(function(c){var k=c.defined,r=c.each,m=c.noop,l=c.seriesTypes;c.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(c){var e=this,k=c?"show":"hide";r(["graphic","dataLabel"],function(c){if(e[c])e[c][k]()})},setState:function(e){c.Point.prototype.setState.call(this,e);this.graphic&&this.graphic.attr({zIndex:"hover"=== | ||
e?1:0})}};c.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:m,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:l.column.prototype.pointAttribs,translateColors:function(){var c=this,k=this.options.nullColor,l=this.colorAxis,m=this.colorKey;r(this.data,function(f){var e=f[m];if(e=f.options.color||(f.isNull?k:l&&void 0!==e?l.toColor(e,f):f.color||c.color))f.color= | ||
e})},colorAttribs:function(c){var e={};k(c.color)&&(e[this.colorProp||"fill"]=c.color);return e}}})(n);(function(c){var k=c.colorPointMixin,r=c.each,m=c.merge,l=c.noop,e=c.pick,n=c.Series,w=c.seriesType,p=c.seriesTypes;w("heatmap","scatter",{animation:!1,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"}, | ||
states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},m(c.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var c;p.scatter.prototype.init.apply(this,arguments);c=this.options;c.pointRange=e(c.pointRange,c.colsize||1);this.yAxis.axisPointRange=c.rowsize||1},translate:function(){var c=this.options,e=this.xAxis,k=this.yAxis,l=function(c,a,b){return Math.min(Math.max(a,c),b)};this.generatePoints(); | ||
r(this.points,function(f){var a=(c.colsize||1)/2,b=(c.rowsize||1)/2,d=l(Math.round(e.len-e.translate(f.x-a,0,1,0,1)),-e.len,2*e.len),a=l(Math.round(e.len-e.translate(f.x+a,0,1,0,1)),-e.len,2*e.len),g=l(Math.round(k.translate(f.y-b,0,1,0,1)),-k.len,2*k.len),b=l(Math.round(k.translate(f.y+b,0,1,0,1)),-k.len,2*k.len);f.plotX=f.clientX=(d+a)/2;f.plotY=(g+b)/2;f.shapeType="rect";f.shapeArgs={x:Math.min(d,a),y:Math.min(g,b),width:Math.abs(a-d),height:Math.abs(b-g)}});this.translateColors()},drawPoints:function(){p.column.prototype.drawPoints.call(this); | ||
r(this.points,function(c){c.graphic.attr(this.colorAttribs(c))},this)},animate:l,getBox:l,drawLegendSymbol:c.LegendSymbolMixin.drawRectangle,alignDataLabel:p.column.prototype.alignDataLabel,getExtremes:function(){n.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;n.prototype.getExtremes.call(this)}}),k)})(n)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -22,3 +23,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
var Axis = H.Axis, | ||
@@ -74,5 +74,10 @@ Chart = H.Chart, | ||
// Properties to preserve after destroy, for Axis.update (#5881) | ||
keepProps: ['legendGroup', 'legendItem', 'legendSymbol'] | ||
.concat(Axis.prototype.keepProps), | ||
// Properties to preserve after destroy, for Axis.update (#5881, #6025) | ||
keepProps: [ | ||
'legendGroup', | ||
'legendItemHeight', | ||
'legendItemWidth', | ||
'legendItem', | ||
'legendSymbol' | ||
].concat(Axis.prototype.keepProps), | ||
@@ -602,3 +607,2 @@ /** | ||
*/ | ||
'use strict'; | ||
var defined = H.defined, | ||
@@ -698,3 +702,2 @@ each = H.each, | ||
*/ | ||
'use strict'; | ||
var colorPointMixin = H.colorPointMixin, | ||
@@ -701,0 +704,0 @@ colorSeriesMixin = H.colorSeriesMixin, |
/* | ||
Highmaps JS v5.0.7 (2017-01-17) | ||
Highmaps JS v5.0.8 (2017-03-08) | ||
Highmaps as a plugin for Highcharts 4.1.x or Highstock 2.1.x (x being the patch version of this file) | ||
@@ -9,61 +9,62 @@ | ||
*/ | ||
(function(y){"object"===typeof module&&module.exports?module.exports=y:y(Highcharts)})(function(y){(function(a){var m=a.Axis,p=a.each,k=a.pick;a=a.wrap;a(m.prototype,"getSeriesExtremes",function(a){var d=this.isXAxis,u,m,r=[],c;d&&p(this.series,function(b,a){b.useMapGeometry&&(r[a]=b.xData,b.xData=[])});a.call(this);d&&(u=k(this.dataMin,Number.MAX_VALUE),m=k(this.dataMax,-Number.MAX_VALUE),p(this.series,function(b,a){b.useMapGeometry&&(u=Math.min(u,k(b.minX,u)),m=Math.max(m,k(b.maxX,u)),b.xData=r[a], | ||
c=!0)}),c&&(this.dataMin=u,this.dataMax=m))});a(m.prototype,"setAxisTranslation",function(a){var q=this.chart,d=q.plotWidth/q.plotHeight,q=q.xAxis[0],k;a.call(this);"yAxis"===this.coll&&void 0!==q.transA&&p(this.series,function(a){a.preserveAspectRatio&&(k=!0)});if(k&&(this.transA=q.transA=Math.min(this.transA,q.transA),a=d/((q.max-q.min)/(this.max-this.min)),a=1>a?this:q,d=(a.max-a.min)*a.transA,a.pixelPadding=a.len-d,a.minPixelPadding=a.pixelPadding/2,d=a.fixTo)){d=d[1]-a.toValue(d[0],!0);d*=a.transA; | ||
if(Math.abs(d)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)d=0;a.minPixelPadding-=d}});a(m.prototype,"render",function(a){a.call(this);this.fixTo=null})})(y);(function(a){var m=a.Axis,p=a.Chart,k=a.color,d,q=a.each,u=a.extend,w=a.isNumber,r=a.Legend,c=a.LegendSymbolMixin,b=a.noop,e=a.merge,g=a.pick,n=a.wrap;d=a.ColorAxis=function(){this.init.apply(this,arguments)};u(d.prototype,m.prototype);u(d.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, | ||
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItem","legendSymbol"].concat(m.prototype.keepProps),init:function(l,a){var f="vertical"!==l.options.legend.layout,b;this.coll="colorAxis";b=e(this.defaultColorAxisOptions,{side:f?2:1,reversed:!f},a,{opposite:!f,showEmpty:!1,title:null});m.prototype.init.call(this,l, | ||
b);a.dataClasses&&this.initDataClasses(a);this.initStops(a);this.horiz=f;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,f,b){var l;f.rgba.length&&a.rgba.length?(a=a.rgba,f=f.rgba,l=1!==f[3]||1!==a[3],a=(l?"rgba(":"rgb(")+Math.round(f[0]+(a[0]-f[0])*(1-b))+","+Math.round(f[1]+(a[1]-f[1])*(1-b))+","+Math.round(f[2]+(a[2]-f[2])*(1-b))+(l?","+(f[3]+(a[3]-f[3])*(1-b)):"")+")"):a=f.input||"none";return a},initDataClasses:function(a){var f=this,l=this.chart,b,h=0,c=l.options.chart.colorCount, | ||
g=this.options,d=a.dataClasses.length;this.dataClasses=b=[];this.legendItems=[];q(a.dataClasses,function(a,x){a=e(a);b.push(a);a.color||("category"===g.dataClassColor?(x=l.options.colors,c=x.length,a.color=x[h],a.colorIndex=h,h++,h===c&&(h=0)):a.color=f.tweenColors(k(g.minColor),k(g.maxColor),2>d?.5:x/(d-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];q(this.stops,function(a){a.color=k(a[1])})},setOptions:function(a){m.prototype.setOptions.call(this, | ||
a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,f=this.chart,b=f.options.legend||{},c,h;a?(this.left=b=a.attr("x"),this.top=c=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=f.chartWidth-b-h,this.bottom=f.chartHeight-c-a,this.len=this.horiz?h:a,this.pos=this.horiz?b:c):this.len=(this.horiz?b.symbolWidth:b.symbolHeight)||this.defaultLegendLength},toColor:function(a,f){var b=this.stops,l,h,c=this.dataClasses,e,g;if(c)for(g= | ||
c.length;g--;){if(e=c[g],l=e.from,b=e.to,(void 0===l||a>=l)&&(void 0===b||a<=b)){h=e.color;f&&(f.dataClass=g,f.colorIndex=e.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(g=b.length;g--&&!(a>b[g][0]););l=b[g]||b[g+1];b=b[g+1]||l;a=1-(b[0]-a)/(b[0]-l[0]||1);h=this.tweenColors(l.color,b.color,a)}return h},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,m.prototype.getOffset.call(this),this.added|| | ||
(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.options,c=this.reversed;a=c?1:0;c=c?0:1;a=this.horiz?[a,0,c,0]:[0,c,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var f=a.padding,l=a.options,h=this.horiz,c=g(l.symbolWidth,h?this.defaultLegendLength:12),e=g(l.symbolHeight,h?12:this.defaultLegendLength),d=g(l.labelPadding, | ||
h?16:30),l=g(l.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,e).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=c+f+(h?l:d);this.legendItemHeight=e+f+(h?d:0)},setState:b,visible:!0,setVisible:b,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a, | ||
b){var f=b&&b.plotX,c=b&&b.plotY,h,l=this.pos,e=this.len;b&&(h=this.toPixels(b[b.series.colorKey]),h<l?h=l-2:h>l+e&&(h=l+e+2),b.plotX=h,b.plotY=this.len-h,m.prototype.drawCrosshair.call(this,a,b),b.plotX=f,b.plotY=c,this.cross&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,e,h){return w(h)?this.horiz?["M",h-4,this.top-6,"L",h+4,this.top-6,h,this.top,"Z"]:["M",this.left,h,"L",this.left-6,h+6, | ||
this.left-6,h-6,"Z"]:m.prototype.getPlotLinePath.call(this,a,b,c,e)},update:function(a,b){var c=this.chart,f=c.legend;q(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&f.allItems&&(q(f.allItems,function(a){a.isDataClass&&a.legendGroup.destroy()}),c.isDirtyLegend=!0);c.options[this.coll]=e(this.userOptions,a);m.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),f.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var l=this,f=this.chart,e=this.legendItems,g= | ||
f.options.legend,h=g.valueDecimals,d=g.valueSuffix||"",n;e.length||q(this.dataClasses,function(g,x){var t=!0,z=g.from,v=g.to;n="";void 0===z?n="\x3c ":void 0===v&&(n="\x3e ");void 0!==z&&(n+=a.numberFormat(z,h)+d);void 0!==z&&void 0!==v&&(n+=" - ");void 0!==v&&(n+=a.numberFormat(v,h)+d);e.push(u({chart:f,name:n,options:{},drawLegendSymbol:c.drawRectangle,visible:!0,setState:b,isDataClass:!0,setVisible:function(){t=this.visible=!t;q(l.series,function(a){q(a.points,function(a){a.dataClass===x&&a.setVisible(t)})}); | ||
f.legend.colorizeItem(this,t)}},g))});return e},name:""});q(["fill","stroke"],function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b,d.prototype.tweenColors(k(this.start),k(this.end),this.pos),null,!0)}});n(p.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new d(this,b)});n(r.prototype,"getAllItems",function(a){var b=[],c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?b=b.concat(c.getDataClassLegendSymbols()): | ||
b.push(c)),q(c.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});n(r.prototype,"colorizeItem",function(a,b,c){a.call(this,b,c);c&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(y);(function(a){var m=a.defined,p=a.each,k=a.noop,d=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(a){var d=this,q=a?"show":"hide";p(["graphic","dataLabel"],function(a){if(d[a])d[a][q]()})},setState:function(d){a.Point.prototype.setState.call(this, | ||
d);this.graphic&&this.graphic.attr({zIndex:"hover"===d?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:k,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:d.column.prototype.pointAttribs,translateColors:function(){var a=this,d=this.options.nullColor,k=this.colorAxis,m=this.colorKey;p(this.data,function(c){var b=c[m];if(b=c.options.color||(c.isNull?d:k&& | ||
void 0!==b?k.toColor(b,c):c.color||a.color))c.color=b})},colorAttribs:function(a){var d={};m(a.color)&&(d[this.colorProp||"fill"]=a.color);return d}}})(y);(function(a){function m(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}var p=a.addEvent,k=a.Chart,d=a.doc,q=a.each,u=a.extend,w=a.merge,r=a.pick;a=a.wrap;u(k.prototype,{renderMapNavigation:function(){var a=this,b=this.options.mapNavigation,e=b.buttons,g,d,l,f,x,q=function(b){this.handler.call(a, | ||
b);m(b)};if(r(b.enableButtons,b.enabled)&&!a.renderer.forExport)for(g in a.mapNavButtons=[],e)e.hasOwnProperty(g)&&(l=w(b.buttonOptions,e[g]),d=l.theme,d.style=w(l.theme.style,l.style),x=(f=d.states)&&f.hover,f=f&&f.select,d=a.renderer.button(l.text,0,0,q,d,x,f,0,"zoomIn"===g?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:l.width,height:l.height,title:a.options.lang[g],padding:l.padding,zIndex:5}).add(),d.handler=l.onclick,d.align(u(l,{width:d.width,height:2*d.height}), | ||
null,l.alignTo),p(d.element,"dblclick",m),a.mapNavButtons.push(d))},fitToBox:function(a,b){q([["x","width"],["y","height"]],function(e){var c=e[0];e=e[1];a[c]+a[e]>b[c]+b[e]&&(a[e]>b[e]?(a[e]=b[e],a[c]=b[c]):a[c]=b[c]+b[e]-a[e]);a[e]>b[e]&&(a[e]=b[e]);a[c]<b[c]&&(a[c]=b[c])});return a},mapZoom:function(a,b,e,d,q){var c=this.xAxis[0],f=c.max-c.min,g=r(b,c.min+f/2),n=f*a,f=this.yAxis[0],h=f.max-f.min,t=r(e,f.min+h/2),h=h*a,g=this.fitToBox({x:g-n*(d?(d-c.pos)/c.len:.5),y:t-h*(q?(q-f.pos)/f.len:.5),width:n, | ||
height:h},{x:c.dataMin,y:f.dataMin,width:c.dataMax-c.dataMin,height:f.dataMax-f.dataMin}),n=g.x<=c.dataMin&&g.width>=c.dataMax-c.dataMin&&g.y<=f.dataMin&&g.height>=f.dataMax-f.dataMin;d&&(c.fixTo=[d-c.pos,b]);q&&(f.fixTo=[q-f.pos,e]);void 0===a||n?(c.setExtremes(void 0,void 0,!1),f.setExtremes(void 0,void 0,!1)):(c.setExtremes(g.x,g.x+g.width,!1),f.setExtremes(g.y,g.y+g.height,!1));this.redraw()}});a(k.prototype,"render",function(a){var b=this,c=b.options.mapNavigation;b.renderMapNavigation();a.call(b); | ||
(r(c.enableDoubleClickZoom,c.enabled)||c.enableDoubleClickZoomTo)&&p(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)});r(c.enableMouseWheelZoom,c.enabled)&&p(b.container,void 0===d.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1})})})(y);(function(a){var m=a.extend,p=a.pick,k=a.Pointer;a=a.wrap;m(k.prototype,{onContainerDblClick:function(a){var d=this.chart;a=this.normalize(a);d.options.mapNavigation.enableDoubleClickZoomTo? | ||
d.pointer.inClass(a.target,"highcharts-tracker")&&d.hoverPoint&&d.hoverPoint.zoomTo():d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop)&&d.mapZoom(.5,d.xAxis[0].toValue(a.chartX),d.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var d=this.chart,k;a=this.normalize(a);k=a.detail||-(a.wheelDelta/120);d.isInsidePlot(a.chartX-d.plotLeft,a.chartY-d.plotTop)&&d.mapZoom(Math.pow(d.options.mapNavigation.mouseWheelSensitivity,k),d.xAxis[0].toValue(a.chartX),d.yAxis[0].toValue(a.chartY), | ||
a.chartX,a.chartY)}});a(k.prototype,"zoomOption",function(a){var d=this.chart.options.mapNavigation;p(d.enableTouchZoom,d.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(k.prototype,"pinchTranslate",function(a,k,m,p,r,c,b){a.call(this,k,m,p,r,c,b);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=p.scaleX>p.scaleY,this.pinchTranslateDirection(!a,k,m,p,r,c,b,a?p.scaleX:p.scaleY))})})(y);(function(a){var m=a.color,p=a.ColorAxis,k=a.colorPointMixin, | ||
d=a.each,q=a.extend,u=a.isNumber,w=a.map,r=a.merge,c=a.noop,b=a.pick,e=a.isArray,g=a.Point,n=a.Series,l=a.seriesType,f=a.seriesTypes,x=a.splat,v=void 0!==a.doc.documentElement.style.vectorEffect;l("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc",borderWidth:1,marker:null,stickyTracking:!1,joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0, | ||
pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},r(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:c,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"],getBox:function(h){var c=Number.MAX_VALUE,f=-c,e=c,l=-c,g=c,x=c,n=this.xAxis,k=this.yAxis,q;d(h||[],function(h){if(h.path){"string"===typeof h.path&&(h.path=a.splitPath(h.path)); | ||
var d=h.path||[],n=d.length,k=!1,z=-c,t=c,v=-c,m=c,p=h.properties;if(!h._foundBox){for(;n--;)u(d[n])&&(k?(z=Math.max(z,d[n]),t=Math.min(t,d[n])):(v=Math.max(v,d[n]),m=Math.min(m,d[n])),k=!k);h._midX=t+(z-t)*(h.middleX||p&&p["hc-middle-x"]||.5);h._midY=m+(v-m)*(h.middleY||p&&p["hc-middle-y"]||.5);h._maxX=z;h._minX=t;h._maxY=v;h._minY=m;h.labelrank=b(h.labelrank,(z-t)*(v-m));h._foundBox=!0}f=Math.max(f,h._maxX);e=Math.min(e,h._minX);l=Math.max(l,h._maxY);g=Math.min(g,h._minY);x=Math.min(h._maxX-h._minX, | ||
h._maxY-h._minY,x);q=!0}});q&&(this.minY=Math.min(g,b(this.minY,c)),this.maxY=Math.max(l,b(this.maxY,-c)),this.minX=Math.min(e,b(this.minX,c)),this.maxX=Math.max(f,b(this.maxX,-c)),n&&void 0===n.options.minRange&&(n.minRange=Math.min(5*x,(this.maxX-this.minX)/5,n.minRange||c)),k&&void 0===k.options.minRange&&(k.minRange=Math.min(5*x,(this.maxY-this.minY)/5,k.minRange||c)))},getExtremes:function(){n.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data); | ||
this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax=this.maxY},translatePath:function(a){var b=!1,h=this.xAxis,c=this.yAxis,f=h.min,e=h.transA,h=h.minPixelPadding,d=c.min,l=c.transA,c=c.minPixelPadding,g,n=[];if(a)for(g=a.length;g--;)u(a[g])?(n[g]=b?(a[g]-f)*e+h:(a[g]-d)*l+c,b=!b):n[g]=a[g];return n},setData:function(b,c,f,g){var h=this.options,l=this.chart.options.chart,k=l&&l.map,v=h.mapData,t=h.joinBy,z=null===t,q=h.keys||this.pointArrayMap,m=[],p={},A,B=this.chart.mapTransforms; | ||
!v&&k&&(v="string"===typeof k?a.maps[k]:k);z&&(t="_i");t=this.joinBy=x(t);t[1]||(t[1]=t[0]);b&&d(b,function(a,c){var f=0;if(u(a))b[c]={value:a};else if(e(a)){b[c]={};!h.keys&&a.length>q.length&&"string"===typeof a[0]&&(b[c]["hc-key"]=a[0],++f);for(var l=0;l<q.length;++l,++f)q[l]&&(b[c][q[l]]=a[f])}z&&(b[c]._i=c)});this.getBox(b);if(this.chart.mapTransforms=B=l&&l.mapTransforms||v&&v["hc-transform"]||B)for(A in B)B.hasOwnProperty(A)&&A.rotation&&(A.cosAngle=Math.cos(A.rotation),A.sinAngle=Math.sin(A.rotation)); | ||
if(v){"FeatureCollection"===v.type&&(this.mapTitle=v.title,v=a.geojson(v,this.type,this));this.mapData=v;this.mapMap={};for(A=0;A<v.length;A++)l=v[A],k=l.properties,l._i=A,t[0]&&k&&k[t[0]]&&(l[t[0]]=k[t[0]]),p[l[t[0]]]=l;this.mapMap=p;b&&t[1]&&d(b,function(a){p[a[t[1]]]&&m.push(p[a[t[1]]])});h.allAreas?(this.getBox(v),b=b||[],t[1]&&d(b,function(a){m.push(a[t[1]])}),m="|"+w(m,function(a){return a&&a[t[0]]}).join("|")+"|",d(v,function(a){t[0]&&-1!==m.indexOf("|"+a[t[0]]+"|")||(b.push(r(a,{value:null})), | ||
g=!1)})):this.getBox(m)}n.prototype.setData.call(this,b,c,f,g)},drawGraph:c,drawDataLabels:c,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a=this,b=a.xAxis,c=a.yAxis,f=a.doFullTranslate();a.generatePoints();d(a.data,function(h){h.plotX=b.toPixels(h._midX,!0);h.plotY=c.toPixels(h._midY,!0);f&&(h.shapeType="path",h.shapeArgs={d:a.translatePath(h.path)})});a.translateColors()},pointAttribs:function(a,b){b= | ||
f.column.prototype.pointAttribs.call(this,a,b);a.isFading&&delete b.fill;v?b["vector-effect"]="non-scaling-stroke":b["stroke-width"]="inherit";return b},drawPoints:function(){var a=this,b=a.xAxis,c=a.yAxis,e=a.group,l=a.chart,g=l.renderer,n,k,x,m,q=this.baseTrans,p,u,r,w,y;a.transformGroup||(a.transformGroup=g.g().attr({scaleX:1,scaleY:1}).add(e),a.transformGroup.survive=!0);a.doFullTranslate()?(l.hasRendered&&d(a.points,function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}), | ||
a.group=a.transformGroup,f.column.prototype.drawPoints.apply(a),a.group=e,d(a.points,function(a){a.graphic&&(a.name&&a.graphic.addClass("highcharts-name-"+a.name.replace(/ /g,"-").toLowerCase()),a.properties&&a.properties["hc-key"]&&a.graphic.addClass("highcharts-key-"+a.properties["hc-key"].toLowerCase()))}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0, | ||
translateY:0,scaleX:1,scaleY:1})):(n=b.transA/q.transAX,k=c.transA/q.transAY,x=b.toPixels(q.originX,!0),m=c.toPixels(q.originY,!0),.99<n&&1.01>n&&.99<k&&1.01>k&&(k=n=1,x=Math.round(x),m=Math.round(m)),p=this.transformGroup,l.renderer.globalAnimation?(u=p.attr("translateX"),r=p.attr("translateY"),w=p.attr("scaleX"),y=p.attr("scaleY"),p.attr({animator:0}).animate({animator:1},{step:function(a,b){p.attr({translateX:u+(x-u)*b.pos,translateY:r+(m-r)*b.pos,scaleX:w+(n-w)*b.pos,scaleY:y+(k-y)*b.pos})}})): | ||
p.attr({translateX:x,translateY:m,scaleX:n,scaleY:k}));v||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(n||1));this.drawMapDataLabels()},drawMapDataLabels:function(){n.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=n.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)},animate:function(a){var b= | ||
this.options.animation,c=this.group,h=this.xAxis,f=this.yAxis,e=h.pos,l=f.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?c.attr({translateX:e+h.len/2,translateY:l+f.len/2,scaleX:.001,scaleY:.001}):(c.animate({translateX:e,translateY:l,scaleX:1,scaleY:1},b),this.animate=null))},animateDrilldown:function(a){var b=this.chart.plotBox,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],h=c.bBox,f=this.chart.options.drilldown.animation;a||(a=Math.min(h.width/b.width,h.height/ | ||
b.height),c.shapeArgs={scaleX:a,scaleY:a,translateX:h.x,translateY:h.y},d(this.points,function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},f)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){f.column.prototype.animateDrillupFrom.call(this,a)},animateDrillupTo:function(a){f.column.prototype.animateDrillupTo.call(this,a)}}),q({applyOptions:function(a,b){a=g.prototype.applyOptions.call(this,a,b); | ||
b=this.series;var c=b.joinBy;b.mapData&&((c=void 0!==a[c[1]]&&b.mapMap[a[c[1]]])?(b.xyFromShape&&(a.x=c._midX,a.y=c._midY),q(a,c)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value)g.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)},onMouseOut:function(){var a=this,b=+new Date,c=m(this.series.pointAttribs(a).fill),f=m(this.series.pointAttribs(a,"hover").fill),e=a.series.options.states.normal.animation,l=e&&(e.duration|| | ||
500);l&&4===c.rgba.length&&4===f.rgba.length&&"select"!==a.state&&(clearTimeout(a.colorInterval),a.colorInterval=setInterval(function(){var e=(new Date-b)/l,h=a.graphic;1<e&&(e=1);h&&h.attr("fill",p.prototype.tweenColors.call(0,f,c,e));1<=e&&clearTimeout(a.colorInterval)},13),a.isFading=!0);g.prototype.onMouseOut.call(a);a.isFading=null},zoomTo:function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()}},k))})(y);(function(a){var m= | ||
a.seriesType,p=a.seriesTypes;m("mapline","map",{lineWidth:1,fillColor:"none"},{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointAttribs:function(a,d){a=p.map.prototype.pointAttribs.call(this,a,d);a.fill=this.options.fillColor;return a},drawLegendSymbol:p.line.prototype.drawLegendSymbol})})(y);(function(a){var m=a.merge,p=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name},crop:!1,defer:!1, | ||
overflow:!1,style:{color:"#000000"}}},{type:"mappoint",forceDL:!0},{applyOptions:function(a,d){a=void 0!==a.lat&&void 0!==a.lon?m(a,this.series.chart.fromLatLonToPoint(a)):a;return p.prototype.applyOptions.call(this,a,d)}})})(y);(function(a){var m=a.arrayMax,p=a.arrayMin,k=a.Axis,d=a.color,q=a.each,u=a.isNumber,w=a.noop,r=a.pick,c=a.pInt,b=a.Point,e=a.Series,g=a.seriesType,n=a.seriesTypes;g("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"}, | ||
marker:{lineColor:null,lineWidth:1,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"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["markerGroup","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",pointAttribs:function(a,b){var c=r(this.options.marker.fillOpacity,.5);a=e.prototype.pointAttribs.call(this, | ||
a,b);1!==c&&(a.fill=d(a.fill).setOpacity(c).get("rgba"));return a},getRadii:function(a,b,c,e){var f,l,g,d=this.zData,n=[],k=this.options,v="width"!==k.sizeBy,x=k.zThreshold,m=b-a;l=0;for(f=d.length;l<f;l++)g=d[l],k.sizeByAbsoluteValue&&null!==g&&(g=Math.abs(g-x),b=Math.max(b-x,Math.abs(a-x)),a=0),null===g?g=null:g<a?g=c/2-1:(g=0<m?(g-a)/m:.5,v&&0<=g&&(g=Math.sqrt(g)),g=Math.ceil(c+g*(e-c))/2),n.push(g);this.radii=n},animate:function(a){var b=this.options.animation;a||(q(this.points,function(a){var c= | ||
a.graphic,e;c&&c.width&&(e={x:c.x,y:c.y,width:c.width,height:c.height},c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(e,b))}),this.animate=null)},translate:function(){var a,b=this.data,c,e,g=this.radii;n.scatter.prototype.translate.call(this);for(a=b.length;a--;)c=b[a],e=g?g[a]:0,u(e)&&e>=this.minPxSize/2?(c.marker={radius:e,width:2*e,height:2*e},c.dlBox={x:c.plotX-e,y:c.plotY-e,width:2*e,height:2*e}):c.shapeArgs=c.plotY=c.dlBox=void 0},alignDataLabel:n.column.prototype.alignDataLabel,buildKDTree:w, | ||
applyZones:w},{haloPath:function(a){return b.prototype.haloPath.call(this,0===a?0:this.marker.radius+a)},ttBelow:!1});k.prototype.beforePadding=function(){var a=this,b=this.len,e=this.chart,g=0,d=b,n=this.isXAxis,k=n?"xData":"yData",w=this.min,y={},H=Math.min(e.plotWidth,e.plotHeight),D=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-w,C=b/F,G=[];q(this.series,function(b){var g=b.options;!b.bubblePadding||!b.visible&&e.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(b),n&&(q(["minSize", | ||
"maxSize"],function(a){var b=g[a],e=/%$/.test(b),b=c(b);y[a]=e?H*b/100:b}),b.minPxSize=y.minSize,b.maxPxSize=Math.max(y.maxSize,y.minSize),b=b.zData,b.length&&(D=r(g.zMin,Math.min(D,Math.max(p(b),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=r(g.zMax,Math.max(E,m(b))))))});q(G,function(b){var c=b[k],e=c.length,f;n&&b.getRadii(D,E,b.minPxSize,b.maxPxSize);if(0<F)for(;e--;)u(c[e])&&a.dataMin<=c[e]&&c[e]<=a.dataMax&&(f=b.radii[e],g=Math.min((c[e]-w)*C-f,g),d=Math.max((c[e]-w)*C+f,d))}); | ||
G.length&&0<F&&!this.isLog&&(d-=b,C*=(b+g-d)/b,q([["min","userMin",g],["max","userMax",d]],function(b){void 0===r(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/C)}))}})(y);(function(a){var m=a.merge,p=a.Point,k=a.seriesType,d=a.seriesTypes;d.bubble&&k("mapbubble","bubble",{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:d.map.prototype.getMapData,getBox:d.map.prototype.getBox,setData:d.map.prototype.setData},{applyOptions:function(a, | ||
k){return a&&void 0!==a.lat&&void 0!==a.lon?p.prototype.applyOptions.call(this,m(a,this.series.chart.fromLatLonToPoint(a)),k):d.map.prototype.pointClass.prototype.applyOptions.call(this,a,k)},ttBelow:!1})})(y);(function(a){var m=a.colorPointMixin,p=a.each,k=a.merge,d=a.noop,q=a.pick,u=a.Series,w=a.seriesType,r=a.seriesTypes;w("heatmap","scatter",{animation:!1,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1, | ||
padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},k(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var a;r.scatter.prototype.init.apply(this,arguments);a=this.options;a.pointRange=q(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options, | ||
b=this.xAxis,e=this.yAxis,g=function(a,b,c){return Math.min(Math.max(b,a),c)};this.generatePoints();p(this.points,function(c){var d=(a.colsize||1)/2,f=(a.rowsize||1)/2,n=g(Math.round(b.len-b.translate(c.x-d,0,1,0,1)),-b.len,2*b.len),d=g(Math.round(b.len-b.translate(c.x+d,0,1,0,1)),-b.len,2*b.len),k=g(Math.round(e.translate(c.y-f,0,1,0,1)),-e.len,2*e.len),f=g(Math.round(e.translate(c.y+f,0,1,0,1)),-e.len,2*e.len);c.plotX=c.clientX=(n+d)/2;c.plotY=(k+f)/2;c.shapeType="rect";c.shapeArgs={x:Math.min(n, | ||
d),y:Math.min(k,f),width:Math.abs(d-n),height:Math.abs(f-k)}});this.translateColors()},drawPoints:function(){r.column.prototype.drawPoints.call(this);p(this.points,function(a){a.graphic.attr(this.colorAttribs(a))},this)},animate:d,getBox:d,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,alignDataLabel:r.column.prototype.alignDataLabel,getExtremes:function(){u.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;u.prototype.getExtremes.call(this)}}), | ||
m)})(y);(function(a){function m(a,b){var c,g,d,l=!1,f=a.x,k=a.y;a=0;for(c=b.length-1;a<b.length;c=a++)g=b[a][1]>k,d=b[c][1]>k,g!==d&&f<(b[c][0]-b[a][0])*(k-b[a][1])/(b[c][1]-b[a][1])+b[a][0]&&(l=!l);return l}var p=a.Chart,k=a.each,d=a.extend,q=a.format,u=a.merge,w=a.win,r=a.wrap;p.prototype.transformFromLatLon=function(c,b){if(void 0===w.proj4)return a.error(21),{x:0,y:null};c=w.proj4(b.crs,[c.lon,c.lat]);var e=b.cosAngle||b.rotation&&Math.cos(b.rotation),g=b.sinAngle||b.rotation&&Math.sin(b.rotation); | ||
c=b.rotation?[c[0]*e+c[1]*g,-c[0]*g+c[1]*e]:c;return{x:((c[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-c[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};p.prototype.transformToLatLon=function(c,b){if(void 0===w.proj4)a.error(21);else{c={x:((c.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-c.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var e=b.cosAngle||b.rotation&& | ||
Math.cos(b.rotation),g=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=w.proj4(b.crs,"WGS84",b.rotation?{x:c.x*e+c.y*-g,y:c.x*g+c.y*e}:c);return{lat:b.y,lon:b.x}}};p.prototype.fromPointToLatLon=function(c){var b=this.mapTransforms,e;if(b){for(e in b)if(b.hasOwnProperty(e)&&b[e].hitZone&&m({x:c.x,y:-c.y},b[e].hitZone.coordinates[0]))return this.transformToLatLon(c,b[e]);return this.transformToLatLon(c,b["default"])}a.error(22)};p.prototype.fromLatLonToPoint=function(c){var b=this.mapTransforms,e,g; | ||
if(!b)return a.error(22),{x:0,y:null};for(e in b)if(b.hasOwnProperty(e)&&b[e].hitZone&&(g=this.transformFromLatLon(c,b[e]),m({x:g.x,y:-g.y},b[e].hitZone.coordinates[0])))return g;return this.transformFromLatLon(c,b["default"])};a.geojson=function(a,b,e){var c=[],n=[],l=function(a){var b,c=a.length;n.push("M");for(b=0;b<c;b++)1===b&&n.push("L"),n.push(a[b][0],-a[b][1])};b=b||"map";k(a.features,function(a){var e=a.geometry,g=e.type,e=e.coordinates;a=a.properties;var f;n=[];"map"===b||"mapbubble"=== | ||
b?("Polygon"===g?(k(e,l),n.push("Z")):"MultiPolygon"===g&&(k(e,function(a){k(a,l)}),n.push("Z")),n.length&&(f={path:n})):"mapline"===b?("LineString"===g?l(e):"MultiLineString"===g&&k(e,l),n.length&&(f={path:n})):"mappoint"===b&&"Point"===g&&(f={x:e[0],y:-e[1]});f&&c.push(d(f,{name:a.name||a.NAME,properties:a}))});e&&a.copyrightShort&&(e.chart.mapCredits=q(e.chart.options.credits.mapText,{geojson:a}),e.chart.mapCreditsFull=q(e.chart.options.credits.mapTextFull,{geojson:a}));return c};r(p.prototype, | ||
"addCredits",function(a,b){b=u(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(y);(function(a){function m(a,b,c,d,f,k,m,h){return["M",a+f,b,"L",a+c-k,b,"C",a+c-k/2,b,a+c,b+k/2,a+c,b+k,"L",a+c,b+d-m,"C",a+c,b+d-m/2,a+c-m/2,b+d,a+c-m,b+d,"L",a+h,b+d,"C",a+h/2,b+d,a,b+d-h/2,a,b+d-h,"L",a,b+f,"C",a,b+f/2,a+f/2,b,a+f,b,"Z"]}var p=a.Chart,k=a.defaultOptions,d=a.each,q=a.extend,u=a.merge,w=a.pick, | ||
r=a.Renderer,c=a.SVGRenderer,b=a.VMLRenderer;q(k.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});k.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var b;a=a.replace(/([A-Za-z])/g, | ||
" $1 ");a=a.replace(/^\s*/,"").replace(/\s*$/,"");a=a.split(/[ ,]+/);for(b=0;b<a.length;b++)/[a-zA-Z]/.test(a[b])||(a[b]=parseFloat(a[b]));return a};a.maps={};c.prototype.symbols.topbutton=function(a,b,c,d,f){return m(a-1,b-1,c,d,f.r,f.r,0,0)};c.prototype.symbols.bottombutton=function(a,b,c,d,f){return m(a-1,b-1,c,d,0,0,f.r,f.r)};r===b&&d(["topbutton","bottombutton"],function(a){b.prototype.symbols[a]=c.prototype.symbols[a]});a.Map=a.mapChart=function(b,c,d){var e="string"===typeof b||b.nodeName, | ||
f=arguments[e?1:0],g={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},k,h=a.getOptions().credits;k=f.series;f.series=null;f=u({chart:{panning:"xy",type:"map"},credits:{mapText:w(h.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),mapTextFull:w(h.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:g,yAxis:u(g,{reversed:!0})},f,{chart:{inverted:!1,alignTicks:!1}});f.series=k;return e?new p(b,f,d):new p(f,c)}})(y)}); | ||
(function(y){"object"===typeof module&&module.exports?module.exports=y:y(Highcharts)})(function(y){(function(a){var m=a.Axis,p=a.each,l=a.pick;a=a.wrap;a(m.prototype,"getSeriesExtremes",function(a){var e=this.isXAxis,w,m,v=[],d;e&&p(this.series,function(b,a){b.useMapGeometry&&(v[a]=b.xData,b.xData=[])});a.call(this);e&&(w=l(this.dataMin,Number.MAX_VALUE),m=l(this.dataMax,-Number.MAX_VALUE),p(this.series,function(b,a){b.useMapGeometry&&(w=Math.min(w,l(b.minX,w)),m=Math.max(m,l(b.maxX,w)),b.xData=v[a], | ||
d=!0)}),d&&(this.dataMin=w,this.dataMax=m))});a(m.prototype,"setAxisTranslation",function(a){var q=this.chart,e=q.plotWidth/q.plotHeight,q=q.xAxis[0],l;a.call(this);"yAxis"===this.coll&&void 0!==q.transA&&p(this.series,function(a){a.preserveAspectRatio&&(l=!0)});if(l&&(this.transA=q.transA=Math.min(this.transA,q.transA),a=e/((q.max-q.min)/(this.max-this.min)),a=1>a?this:q,e=(a.max-a.min)*a.transA,a.pixelPadding=a.len-e,a.minPixelPadding=a.pixelPadding/2,e=a.fixTo)){e=e[1]-a.toValue(e[0],!0);e*=a.transA; | ||
if(Math.abs(e)>a.minPixelPadding||a.min===a.dataMin&&a.max===a.dataMax)e=0;a.minPixelPadding-=e}});a(m.prototype,"render",function(a){a.call(this);this.fixTo=null})})(y);(function(a){var m=a.Axis,p=a.Chart,l=a.color,e,q=a.each,w=a.extend,x=a.isNumber,v=a.Legend,d=a.LegendSymbolMixin,b=a.noop,c=a.merge,g=a.pick,t=a.wrap;e=a.ColorAxis=function(){this.init.apply(this,arguments)};w(e.prototype,m.prototype);w(e.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72, | ||
startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(m.prototype.keepProps),init:function(a,f){var b="vertical"!==a.options.legend.layout,k;this.coll="colorAxis";k=c(this.defaultColorAxisOptions,{side:b?2:1,reversed:!b},f,{opposite:!b,showEmpty:!1,title:null}); | ||
m.prototype.init.call(this,a,k);f.dataClasses&&this.initDataClasses(f);this.initStops(f);this.horiz=b;this.zoomEnabled=!1;this.defaultLegendLength=200},tweenColors:function(a,f,b){var k;f.rgba.length&&a.rgba.length?(a=a.rgba,f=f.rgba,k=1!==f[3]||1!==a[3],a=(k?"rgba(":"rgb(")+Math.round(f[0]+(a[0]-f[0])*(1-b))+","+Math.round(f[1]+(a[1]-f[1])*(1-b))+","+Math.round(f[2]+(a[2]-f[2])*(1-b))+(k?","+(f[3]+(a[3]-f[3])*(1-b)):"")+")"):a=f.input||"none";return a},initDataClasses:function(a){var b=this,k=this.chart, | ||
r,h=0,u=k.options.chart.colorCount,g=this.options,d=a.dataClasses.length;this.dataClasses=r=[];this.legendItems=[];q(a.dataClasses,function(a,f){a=c(a);r.push(a);a.color||("category"===g.dataClassColor?(f=k.options.colors,u=f.length,a.color=f[h],a.colorIndex=h,h++,h===u&&(h=0)):a.color=b.tweenColors(l(g.minColor),l(g.maxColor),2>d?.5:f/(d-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];q(this.stops,function(a){a.color=l(a[1])})},setOptions:function(a){m.prototype.setOptions.call(this, | ||
a);this.options.crosshair=this.options.marker},setAxisSize:function(){var a=this.legendSymbol,b=this.chart,n=b.options.legend||{},c,h;a?(this.left=n=a.attr("x"),this.top=c=a.attr("y"),this.width=h=a.attr("width"),this.height=a=a.attr("height"),this.right=b.chartWidth-n-h,this.bottom=b.chartHeight-c-a,this.len=this.horiz?h:a,this.pos=this.horiz?n:c):this.len=(this.horiz?n.symbolWidth:n.symbolHeight)||this.defaultLegendLength},toColor:function(a,b){var f=this.stops,k,h,c=this.dataClasses,g,d;if(c)for(d= | ||
c.length;d--;){if(g=c[d],k=g.from,f=g.to,(void 0===k||a>=k)&&(void 0===f||a<=f)){h=g.color;b&&(b.dataClass=d,b.colorIndex=g.colorIndex);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min||1);for(d=f.length;d--&&!(a>f[d][0]););k=f[d]||f[d+1];f=f[d+1]||k;a=1-(f[0]-a)/(f[0]-k[0]||1);h=this.tweenColors(k.color,f.color,a)}return h},getOffset:function(){var a=this.legendGroup,b=this.chart.axisOffset[this.side];a&&(this.axisParent=a,m.prototype.getOffset.call(this),this.added|| | ||
(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=b)},setLegendColor:function(){var a,b=this.options,n=this.reversed;a=n?1:0;n=n?0:1;a=this.horiz?[a,0,n,0]:[0,n,0,a];this.legendColor={linearGradient:{x1:a[0],y1:a[1],x2:a[2],y2:a[3]},stops:b.stops||[[0,b.minColor],[1,b.maxColor]]}},drawLegendSymbol:function(a,b){var f=a.padding,k=a.options,h=this.horiz,c=g(k.symbolWidth,h?this.defaultLegendLength:12),d=g(k.symbolHeight,h?12:this.defaultLegendLength),e=g(k.labelPadding, | ||
h?16:30),k=g(k.itemDistance,10);this.setLegendColor();b.legendSymbol=this.chart.renderer.rect(0,a.baseline-11,c,d).attr({zIndex:1}).add(b.legendGroup);this.legendItemWidth=c+f+(h?k:e);this.legendItemHeight=d+f+(h?e:0)},setState:b,visible:!0,setVisible:b,getSeriesExtremes:function(){var a=this.series,b=a.length;this.dataMin=Infinity;for(this.dataMax=-Infinity;b--;)void 0!==a[b].valueMin&&(this.dataMin=Math.min(this.dataMin,a[b].valueMin),this.dataMax=Math.max(this.dataMax,a[b].valueMax))},drawCrosshair:function(a, | ||
b){var f=b&&b.plotX,c=b&&b.plotY,h,k=this.pos,d=this.len;b&&(h=this.toPixels(b[b.series.colorKey]),h<k?h=k-2:h>k+d&&(h=k+d+2),b.plotX=h,b.plotY=this.len-h,m.prototype.drawCrosshair.call(this,a,b),b.plotX=f,b.plotY=c,this.cross&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(a,b,c,d,h){return x(h)?this.horiz?["M",h-4,this.top-6,"L",h+4,this.top-6,h,this.top,"Z"]:["M",this.left,h,"L",this.left-6,h+6, | ||
this.left-6,h-6,"Z"]:m.prototype.getPlotLinePath.call(this,a,b,c,d)},update:function(a,b){var f=this.chart,k=f.legend;q(this.series,function(a){a.isDirtyData=!0});a.dataClasses&&k.allItems&&(q(k.allItems,function(a){a.isDataClass&&a.legendGroup.destroy()}),f.isDirtyLegend=!0);f.options[this.coll]=c(this.userOptions,a);m.prototype.update.call(this,a,b);this.legendItem&&(this.setLegendColor(),k.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var c=this,f=this.chart,n=this.legendItems,g= | ||
f.options.legend,h=g.valueDecimals,e=g.valueSuffix||"",t;n.length||q(this.dataClasses,function(k,g){var u=!0,r=k.from,z=k.to;t="";void 0===r?t="\x3c ":void 0===z&&(t="\x3e ");void 0!==r&&(t+=a.numberFormat(r,h)+e);void 0!==r&&void 0!==z&&(t+=" - ");void 0!==z&&(t+=a.numberFormat(z,h)+e);n.push(w({chart:f,name:t,options:{},drawLegendSymbol:d.drawRectangle,visible:!0,setState:b,isDataClass:!0,setVisible:function(){u=this.visible=!u;q(c.series,function(a){q(a.points,function(a){a.dataClass===g&&a.setVisible(u)})}); | ||
f.legend.colorizeItem(this,u)}},k))});return n},name:""});q(["fill","stroke"],function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b,e.prototype.tweenColors(l(this.start),l(this.end),this.pos),null,!0)}});t(p.prototype,"getAxes",function(a){var b=this.options.colorAxis;a.call(this);this.colorAxis=[];b&&new e(this,b)});t(v.prototype,"getAllItems",function(a){var b=[],c=this.chart.colorAxis[0];c&&c.options&&(c.options.showInLegend&&(c.options.dataClasses?b=b.concat(c.getDataClassLegendSymbols()): | ||
b.push(c)),q(c.series,function(a){a.options.showInLegend=!1}));return b.concat(a.call(this))});t(v.prototype,"colorizeItem",function(a,b,c){a.call(this,b,c);c&&b.legendColor&&b.legendSymbol.attr({fill:b.legendColor})})})(y);(function(a){var m=a.defined,p=a.each,l=a.noop,e=a.seriesTypes;a.colorPointMixin={isValid:function(){return null!==this.value},setVisible:function(a){var e=this,q=a?"show":"hide";p(["graphic","dataLabel"],function(a){if(e[a])e[a][q]()})},setState:function(e){a.Point.prototype.setState.call(this, | ||
e);this.graphic&&this.graphic.attr({zIndex:"hover"===e?1:0})}};a.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:l,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:e.column.prototype.pointAttribs,translateColors:function(){var a=this,e=this.options.nullColor,l=this.colorAxis,m=this.colorKey;p(this.data,function(d){var b=d[m];if(b=d.options.color||(d.isNull?e:l&& | ||
void 0!==b?l.toColor(b,d):d.color||a.color))d.color=b})},colorAttribs:function(a){var e={};m(a.color)&&(e[this.colorProp||"fill"]=a.color);return e}}})(y);(function(a){function m(a){a&&(a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)}function p(a){this.init(a)}var l=a.addEvent,e=a.Chart,q=a.doc,w=a.each,x=a.extend,v=a.merge,d=a.pick;a=a.wrap;p.prototype.init=function(a){this.chart=a;a.mapNavButtons=[]};p.prototype.update=function(a){var b=this.chart, | ||
g=b.options.mapNavigation,e,k,f,n,r,h=function(a){this.handler.call(b,a);m(a)},u=b.mapNavButtons;a&&(g=b.options.mapNavigation=v(b.options.mapNavigation,a));for(;u.length;)u.pop().destroy();if(d(g.enableButtons,g.enabled)&&!b.renderer.forExport)for(e in a=g.buttons,a)a.hasOwnProperty(e)&&(f=v(g.buttonOptions,a[e]),k=f.theme,k.style=v(f.theme.style,f.style),r=(n=k.states)&&n.hover,n=n&&n.select,k=b.renderer.button(f.text,0,0,h,k,r,n,0,"zoomIn"===e?"topbutton":"bottombutton").addClass("highcharts-map-navigation").attr({width:f.width, | ||
height:f.height,title:b.options.lang[e],padding:f.padding,zIndex:5}).add(),k.handler=f.onclick,k.align(x(f,{width:k.width,height:2*k.height}),null,f.alignTo),l(k.element,"dblclick",m),u.push(k));this.updateEvents(g)};p.prototype.updateEvents=function(a){var b=this.chart;d(a.enableDoubleClickZoom,a.enabled)||a.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||l(b.container,"dblclick",function(a){b.pointer.onContainerDblClick(a)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()); | ||
d(a.enableMouseWheelZoom,a.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||l(b.container,void 0===q.onmousewheel?"DOMMouseScroll":"mousewheel",function(a){b.pointer.onContainerMouseWheel(a);m(a);return!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())};x(e.prototype,{fitToBox:function(a,c){w([["x","width"],["y","height"]],function(b){var d=b[0];b=b[1];a[d]+a[b]>c[d]+c[b]&&(a[b]>c[b]?(a[b]=c[b],a[d]=c[d]):a[d]=c[d]+c[b]-a[b]);a[b]>c[b]&&(a[b]=c[b]);a[d]<c[d]&&(a[d]=c[d])}); | ||
return a},mapZoom:function(a,c,e,q,k){var b=this.xAxis[0],n=b.max-b.min,g=d(c,b.min+n/2),h=n*a,n=this.yAxis[0],u=n.max-n.min,z=d(e,n.min+u/2),u=u*a,g=this.fitToBox({x:g-h*(q?(q-b.pos)/b.len:.5),y:z-u*(k?(k-n.pos)/n.len:.5),width:h,height:u},{x:b.dataMin,y:n.dataMin,width:b.dataMax-b.dataMin,height:n.dataMax-n.dataMin}),h=g.x<=b.dataMin&&g.width>=b.dataMax-b.dataMin&&g.y<=n.dataMin&&g.height>=n.dataMax-n.dataMin;q&&(b.fixTo=[q-b.pos,c]);k&&(n.fixTo=[k-n.pos,e]);void 0===a||h?(b.setExtremes(void 0, | ||
void 0,!1),n.setExtremes(void 0,void 0,!1)):(b.setExtremes(g.x,g.x+g.width,!1),n.setExtremes(g.y,g.y+g.height,!1));this.redraw()}});a(e.prototype,"render",function(a){this.mapNavigation=new p(this);this.mapNavigation.update();a.call(this)})})(y);(function(a){var m=a.extend,p=a.pick,l=a.Pointer;a=a.wrap;m(l.prototype,{onContainerDblClick:function(a){var e=this.chart;a=this.normalize(a);e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(a.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo(): | ||
e.isInsidePlot(a.chartX-e.plotLeft,a.chartY-e.plotTop)&&e.mapZoom(.5,e.xAxis[0].toValue(a.chartX),e.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)},onContainerMouseWheel:function(a){var e=this.chart,l;a=this.normalize(a);l=a.detail||-(a.wheelDelta/120);e.isInsidePlot(a.chartX-e.plotLeft,a.chartY-e.plotTop)&&e.mapZoom(Math.pow(e.options.mapNavigation.mouseWheelSensitivity,l),e.xAxis[0].toValue(a.chartX),e.yAxis[0].toValue(a.chartY),a.chartX,a.chartY)}});a(l.prototype,"zoomOption",function(a){var e= | ||
this.chart.options.mapNavigation;p(e.enableTouchZoom,e.enabled)&&(this.chart.options.chart.pinchType="xy");a.apply(this,[].slice.call(arguments,1))});a(l.prototype,"pinchTranslate",function(a,l,m,p,v,d,b){a.call(this,l,m,p,v,d,b);"map"===this.chart.options.chart.type&&this.hasZoom&&(a=p.scaleX>p.scaleY,this.pinchTranslateDirection(!a,l,m,p,v,d,b,a?p.scaleX:p.scaleY))})})(y);(function(a){var m=a.color,p=a.ColorAxis,l=a.colorPointMixin,e=a.each,q=a.extend,w=a.isNumber,x=a.map,v=a.merge,d=a.noop,b=a.pick, | ||
c=a.isArray,g=a.Point,t=a.Series,k=a.seriesType,f=a.seriesTypes,n=a.splat,r=void 0!==a.doc.documentElement.style.vectorEffect;k("map","scatter",{allAreas:!0,animation:!1,nullColor:"#f7f7f7",borderColor:"#cccccc",borderWidth:1,marker:null,stickyTracking:!1,joinBy:"hc-key",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0}, | ||
hover:{brightness:.2,halo:null},select:{color:"#cccccc"}}},v(a.colorSeriesMixin,{type:"map",supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,searchPoint:d,directTouch:!0,preserveAspectRatio:!0,pointArrayMap:["value"],getBox:function(h){var c=Number.MAX_VALUE,f=-c,d=c,k=-c,n=c,g=c,l=this.xAxis,t=this.yAxis,r;e(h||[],function(h){if(h.path){"string"===typeof h.path&&(h.path=a.splitPath(h.path));var e=h.path||[],u=e.length,l=!1,t=-c,z=c,q=-c,m=c,p=h.properties;if(!h._foundBox){for(;u--;)w(e[u])&& | ||
(l?(t=Math.max(t,e[u]),z=Math.min(z,e[u])):(q=Math.max(q,e[u]),m=Math.min(m,e[u])),l=!l);h._midX=z+(t-z)*(h.middleX||p&&p["hc-middle-x"]||.5);h._midY=m+(q-m)*(h.middleY||p&&p["hc-middle-y"]||.5);h._maxX=t;h._minX=z;h._maxY=q;h._minY=m;h.labelrank=b(h.labelrank,(t-z)*(q-m));h._foundBox=!0}f=Math.max(f,h._maxX);d=Math.min(d,h._minX);k=Math.max(k,h._maxY);n=Math.min(n,h._minY);g=Math.min(h._maxX-h._minX,h._maxY-h._minY,g);r=!0}});r&&(this.minY=Math.min(n,b(this.minY,c)),this.maxY=Math.max(k,b(this.maxY, | ||
-c)),this.minX=Math.min(d,b(this.minX,c)),this.maxX=Math.max(f,b(this.maxX,-c)),l&&void 0===l.options.minRange&&(l.minRange=Math.min(5*g,(this.maxX-this.minX)/5,l.minRange||c)),t&&void 0===t.options.minRange&&(t.minRange=Math.min(5*g,(this.maxY-this.minY)/5,t.minRange||c)))},getExtremes:function(){t.prototype.getExtremes.call(this,this.valueData);this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data);this.valueMin=this.dataMin;this.valueMax=this.dataMax;this.dataMin=this.minY;this.dataMax= | ||
this.maxY},translatePath:function(a){var b=!1,h=this.xAxis,c=this.yAxis,f=h.min,d=h.transA,h=h.minPixelPadding,k=c.min,e=c.transA,c=c.minPixelPadding,n,g=[];if(a)for(n=a.length;n--;)w(a[n])?(g[n]=b?(a[n]-f)*d+h:(a[n]-k)*e+c,b=!b):g[n]=a[n];return g},setData:function(b,f,d,k){var h=this.options,g=this.chart.options.chart,l=g&&g.map,u=h.mapData,r=h.joinBy,z=null===r,q=h.keys||this.pointArrayMap,m=[],p={},A,B=this.chart.mapTransforms;!u&&l&&(u="string"===typeof l?a.maps[l]:l);z&&(r="_i");r=this.joinBy= | ||
n(r);r[1]||(r[1]=r[0]);b&&e(b,function(a,f){var d=0;if(w(a))b[f]={value:a};else if(c(a)){b[f]={};!h.keys&&a.length>q.length&&"string"===typeof a[0]&&(b[f]["hc-key"]=a[0],++d);for(var k=0;k<q.length;++k,++d)q[k]&&(b[f][q[k]]=a[d])}z&&(b[f]._i=f)});this.getBox(b);if(this.chart.mapTransforms=B=g&&g.mapTransforms||u&&u["hc-transform"]||B)for(A in B)B.hasOwnProperty(A)&&A.rotation&&(A.cosAngle=Math.cos(A.rotation),A.sinAngle=Math.sin(A.rotation));if(u){"FeatureCollection"===u.type&&(this.mapTitle=u.title, | ||
u=a.geojson(u,this.type,this));this.mapData=u;this.mapMap={};for(A=0;A<u.length;A++)g=u[A],l=g.properties,g._i=A,r[0]&&l&&l[r[0]]&&(g[r[0]]=l[r[0]]),p[g[r[0]]]=g;this.mapMap=p;b&&r[1]&&e(b,function(a){p[a[r[1]]]&&m.push(p[a[r[1]]])});h.allAreas?(this.getBox(u),b=b||[],r[1]&&e(b,function(a){m.push(a[r[1]])}),m="|"+x(m,function(a){return a&&a[r[0]]}).join("|")+"|",e(u,function(a){r[0]&&-1!==m.indexOf("|"+a[r[0]]+"|")||(b.push(v(a,{value:null})),k=!1)})):this.getBox(m)}t.prototype.setData.call(this, | ||
b,f,d,k)},drawGraph:d,drawDataLabels:d,doFullTranslate:function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var a=this,b=a.xAxis,c=a.yAxis,f=a.doFullTranslate();a.generatePoints();e(a.data,function(h){h.plotX=b.toPixels(h._midX,!0);h.plotY=c.toPixels(h._midY,!0);f&&(h.shapeType="path",h.shapeArgs={d:a.translatePath(h.path)})});a.translateColors()},pointAttribs:function(a,b){b=f.column.prototype.pointAttribs.call(this,a,b);a.isFading&& | ||
delete b.fill;r?b["vector-effect"]="non-scaling-stroke":b["stroke-width"]="inherit";return b},drawPoints:function(){var a=this,b=a.xAxis,c=a.yAxis,d=a.group,k=a.chart,g=k.renderer,n,l,t,m,q=this.baseTrans,p,w,v,x,y;a.transformGroup||(a.transformGroup=g.g().attr({scaleX:1,scaleY:1}).add(d),a.transformGroup.survive=!0);a.doFullTranslate()?(k.hasRendered&&e(a.points,function(b){b.shapeArgs&&(b.shapeArgs.fill=a.pointAttribs(b,b.state).fill)}),a.group=a.transformGroup,f.column.prototype.drawPoints.apply(a), | ||
a.group=d,e(a.points,function(a){a.graphic&&(a.name&&a.graphic.addClass("highcharts-name-"+a.name.replace(/ /g,"-").toLowerCase()),a.properties&&a.properties["hc-key"]&&a.graphic.addClass("highcharts-key-"+a.properties["hc-key"].toLowerCase()))}),this.baseTrans={originX:b.min-b.minPixelPadding/b.transA,originY:c.min-c.minPixelPadding/c.transA+(c.reversed?0:c.len/c.transA),transAX:b.transA,transAY:c.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1})):(n=b.transA/q.transAX, | ||
l=c.transA/q.transAY,t=b.toPixels(q.originX,!0),m=c.toPixels(q.originY,!0),.99<n&&1.01>n&&.99<l&&1.01>l&&(l=n=1,t=Math.round(t),m=Math.round(m)),p=this.transformGroup,k.renderer.globalAnimation?(w=p.attr("translateX"),v=p.attr("translateY"),x=p.attr("scaleX"),y=p.attr("scaleY"),p.attr({animator:0}).animate({animator:1},{step:function(a,b){p.attr({translateX:w+(t-w)*b.pos,translateY:v+(m-v)*b.pos,scaleX:x+(n-x)*b.pos,scaleY:y+(l-y)*b.pos})}})):p.attr({translateX:t,translateY:m,scaleX:n,scaleY:l})); | ||
r||a.group.element.setAttribute("stroke-width",a.options[a.pointAttrToOptions&&a.pointAttrToOptions["stroke-width"]||"borderWidth"]/(n||1));this.drawMapDataLabels()},drawMapDataLabels:function(){t.prototype.drawDataLabels.call(this);this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},render:function(){var a=this,b=t.prototype.render;a.chart.renderer.isVML&&3E3<a.data.length?setTimeout(function(){b.call(a)}):b.call(a)},animate:function(a){var b=this.options.animation,c=this.group, | ||
h=this.xAxis,f=this.yAxis,k=h.pos,d=f.pos;this.chart.renderer.isSVG&&(!0===b&&(b={duration:1E3}),a?c.attr({translateX:k+h.len/2,translateY:d+f.len/2,scaleX:.001,scaleY:.001}):(c.animate({translateX:k,translateY:d,scaleX:1,scaleY:1},b),this.animate=null))},animateDrilldown:function(a){var b=this.chart.plotBox,c=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],h=c.bBox,f=this.chart.options.drilldown.animation;a||(a=Math.min(h.width/b.width,h.height/b.height),c.shapeArgs={scaleX:a,scaleY:a, | ||
translateX:h.x,translateY:h.y},e(this.points,function(a){a.graphic&&a.graphic.attr(c.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},f)}),this.animate=null)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,animateDrillupFrom:function(a){f.column.prototype.animateDrillupFrom.call(this,a)},animateDrillupTo:function(a){f.column.prototype.animateDrillupTo.call(this,a)}}),q({applyOptions:function(a,b){a=g.prototype.applyOptions.call(this,a,b);b=this.series;var c=b.joinBy;b.mapData&& | ||
((c=void 0!==a[c[1]]&&b.mapMap[a[c[1]]])?(b.xyFromShape&&(a.x=c._midX,a.y=c._midY),q(a,c)):a.value=a.value||null);return a},onMouseOver:function(a){clearTimeout(this.colorInterval);if(null!==this.value)g.prototype.onMouseOver.call(this,a);else this.series.onMouseOut(a)},onMouseOut:function(){var a=this,b=+new Date,c=m(this.series.pointAttribs(a).fill),f=m(this.series.pointAttribs(a,"hover").fill),k=a.series.options.states.normal.animation,d=k&&(k.duration||500);d&&4===c.rgba.length&&4===f.rgba.length&& | ||
"select"!==a.state&&(clearTimeout(a.colorInterval),a.colorInterval=setInterval(function(){var k=(new Date-b)/d,h=a.graphic;1<k&&(k=1);h&&h.attr("fill",p.prototype.tweenColors.call(0,f,c,k));1<=k&&clearTimeout(a.colorInterval)},13),a.isFading=!0);g.prototype.onMouseOut.call(a);a.isFading=null},zoomTo:function(){var a=this.series;a.xAxis.setExtremes(this._minX,this._maxX,!1);a.yAxis.setExtremes(this._minY,this._maxY,!1);a.chart.redraw()}},l))})(y);(function(a){var m=a.seriesType,p=a.seriesTypes;m("mapline", | ||
"map",{lineWidth:1,fillColor:"none"},{type:"mapline",colorProp:"stroke",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointAttribs:function(a,e){a=p.map.prototype.pointAttribs.call(this,a,e);a.fill=this.options.fillColor;return a},drawLegendSymbol:p.line.prototype.drawLegendSymbol})})(y);(function(a){var m=a.merge,p=a.Point;a=a.seriesType;a("mappoint","scatter",{dataLabels:{enabled:!0,formatter:function(){return this.point.name},crop:!1,defer:!1,overflow:!1,style:{color:"#000000"}}}, | ||
{type:"mappoint",forceDL:!0},{applyOptions:function(a,e){a=void 0!==a.lat&&void 0!==a.lon?m(a,this.series.chart.fromLatLonToPoint(a)):a;return p.prototype.applyOptions.call(this,a,e)}})})(y);(function(a){var m=a.arrayMax,p=a.arrayMin,l=a.Axis,e=a.color,q=a.each,w=a.isNumber,x=a.noop,v=a.pick,d=a.pInt,b=a.Point,c=a.Series,g=a.seriesType,t=a.seriesTypes;g("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1,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"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["markerGroup","dataLabelsGroup"],bubblePadding:!0,zoneAxis:"z",pointAttribs:function(a,b){var f=v(this.options.marker.fillOpacity,.5);a=c.prototype.pointAttribs.call(this,a,b);1!==f&&(a.fill=e(a.fill).setOpacity(f).get("rgba")); | ||
return a},getRadii:function(a,b,c,d){var f,k,g,n=this.zData,e=[],r=this.options,t="width"!==r.sizeBy,l=r.zThreshold,m=b-a;k=0;for(f=n.length;k<f;k++)g=n[k],r.sizeByAbsoluteValue&&null!==g&&(g=Math.abs(g-l),b=Math.max(b-l,Math.abs(a-l)),a=0),null===g?g=null:g<a?g=c/2-1:(g=0<m?(g-a)/m:.5,t&&0<=g&&(g=Math.sqrt(g)),g=Math.ceil(c+g*(d-c))/2),e.push(g);this.radii=e},animate:function(a){var b=this.options.animation;a||(q(this.points,function(a){var c=a.graphic,f;c&&c.width&&(f={x:c.x,y:c.y,width:c.width, | ||
height:c.height},c.attr({x:a.plotX,y:a.plotY,width:1,height:1}),c.animate(f,b))}),this.animate=null)},translate:function(){var b,c=this.data,d,g,h=this.radii;t.scatter.prototype.translate.call(this);for(b=c.length;b--;)d=c[b],g=h?h[b]:0,w(g)&&g>=this.minPxSize/2?(d.marker=a.extend(d.marker,{radius:g,width:2*g,height:2*g}),d.dlBox={x:d.plotX-g,y:d.plotY-g,width:2*g,height:2*g}):d.shapeArgs=d.plotY=d.dlBox=void 0},alignDataLabel:t.column.prototype.alignDataLabel,buildKDTree:x,applyZones:x},{haloPath:function(a){return b.prototype.haloPath.call(this, | ||
0===a?0:(this.marker?this.marker.radius||0:0)+a)},ttBelow:!1});l.prototype.beforePadding=function(){var a=this,b=this.len,c=this.chart,g=0,h=b,e=this.isXAxis,t=e?"xData":"yData",l=this.min,x={},y=Math.min(c.plotWidth,c.plotHeight),D=Number.MAX_VALUE,E=-Number.MAX_VALUE,F=this.max-l,C=b/F,G=[];q(this.series,function(b){var g=b.options;!b.bubblePadding||!b.visible&&c.options.chart.ignoreHiddenSeries||(a.allowZoomOutside=!0,G.push(b),e&&(q(["minSize","maxSize"],function(a){var b=g[a],c=/%$/.test(b), | ||
b=d(b);x[a]=c?y*b/100:b}),b.minPxSize=x.minSize,b.maxPxSize=Math.max(x.maxSize,x.minSize),b=b.zData,b.length&&(D=v(g.zMin,Math.min(D,Math.max(p(b),!1===g.displayNegative?g.zThreshold:-Number.MAX_VALUE))),E=v(g.zMax,Math.max(E,m(b))))))});q(G,function(b){var c=b[t],d=c.length,f;e&&b.getRadii(D,E,b.minPxSize,b.maxPxSize);if(0<F)for(;d--;)w(c[d])&&a.dataMin<=c[d]&&c[d]<=a.dataMax&&(f=b.radii[d],g=Math.min((c[d]-l)*C-f,g),h=Math.max((c[d]-l)*C+f,h))});G.length&&0<F&&!this.isLog&&(h-=b,C*=(b+g-h)/b,q([["min", | ||
"userMin",g],["max","userMax",h]],function(b){void 0===v(a.options[b[0]],a[b[1]])&&(a[b[0]]+=b[2]/C)}))}})(y);(function(a){var m=a.merge,p=a.Point,l=a.seriesType,e=a.seriesTypes;e.bubble&&l("mapbubble","bubble",{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}},{xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:e.map.prototype.getMapData,getBox:e.map.prototype.getBox,setData:e.map.prototype.setData},{applyOptions:function(a,l){return a&&void 0!==a.lat&&void 0!==a.lon? | ||
p.prototype.applyOptions.call(this,m(a,this.series.chart.fromLatLonToPoint(a)),l):e.map.prototype.pointClass.prototype.applyOptions.call(this,a,l)},ttBelow:!1})})(y);(function(a){var m=a.colorPointMixin,p=a.each,l=a.merge,e=a.noop,q=a.pick,w=a.Series,x=a.seriesType,v=a.seriesTypes;x("heatmap","scatter",{animation:!1,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null, | ||
tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}\x3cbr/\x3e"},states:{normal:{animation:!0},hover:{halo:!1,brightness:.2}}},l(a.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var a;v.scatter.prototype.init.apply(this,arguments);a=this.options;a.pointRange=q(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options,b=this.xAxis,c=this.yAxis,g= | ||
function(a,b,c){return Math.min(Math.max(b,a),c)};this.generatePoints();p(this.points,function(d){var k=(a.colsize||1)/2,f=(a.rowsize||1)/2,e=g(Math.round(b.len-b.translate(d.x-k,0,1,0,1)),-b.len,2*b.len),k=g(Math.round(b.len-b.translate(d.x+k,0,1,0,1)),-b.len,2*b.len),l=g(Math.round(c.translate(d.y-f,0,1,0,1)),-c.len,2*c.len),f=g(Math.round(c.translate(d.y+f,0,1,0,1)),-c.len,2*c.len);d.plotX=d.clientX=(e+k)/2;d.plotY=(l+f)/2;d.shapeType="rect";d.shapeArgs={x:Math.min(e,k),y:Math.min(l,f),width:Math.abs(k- | ||
e),height:Math.abs(f-l)}});this.translateColors()},drawPoints:function(){v.column.prototype.drawPoints.call(this);p(this.points,function(a){a.graphic.attr(this.colorAttribs(a))},this)},animate:e,getBox:e,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,alignDataLabel:v.column.prototype.alignDataLabel,getExtremes:function(){w.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;w.prototype.getExtremes.call(this)}}),m)})(y);(function(a){function m(a, | ||
b){var c,g,d,e=!1,f=a.x,n=a.y;a=0;for(c=b.length-1;a<b.length;c=a++)g=b[a][1]>n,d=b[c][1]>n,g!==d&&f<(b[c][0]-b[a][0])*(n-b[a][1])/(b[c][1]-b[a][1])+b[a][0]&&(e=!e);return e}var p=a.Chart,l=a.each,e=a.extend,q=a.format,w=a.merge,x=a.win,v=a.wrap;p.prototype.transformFromLatLon=function(d,b){if(void 0===x.proj4)return a.error(21),{x:0,y:null};d=x.proj4(b.crs,[d.lon,d.lat]);var c=b.cosAngle||b.rotation&&Math.cos(b.rotation),g=b.sinAngle||b.rotation&&Math.sin(b.rotation);d=b.rotation?[d[0]*c+d[1]*g, | ||
-d[0]*g+d[1]*c]:d;return{x:((d[0]-(b.xoffset||0))*(b.scale||1)+(b.xpan||0))*(b.jsonres||1)+(b.jsonmarginX||0),y:(((b.yoffset||0)-d[1])*(b.scale||1)+(b.ypan||0))*(b.jsonres||1)-(b.jsonmarginY||0)}};p.prototype.transformToLatLon=function(d,b){if(void 0===x.proj4)a.error(21);else{d={x:((d.x-(b.jsonmarginX||0))/(b.jsonres||1)-(b.xpan||0))/(b.scale||1)+(b.xoffset||0),y:((-d.y-(b.jsonmarginY||0))/(b.jsonres||1)+(b.ypan||0))/(b.scale||1)+(b.yoffset||0)};var c=b.cosAngle||b.rotation&&Math.cos(b.rotation), | ||
g=b.sinAngle||b.rotation&&Math.sin(b.rotation);b=x.proj4(b.crs,"WGS84",b.rotation?{x:d.x*c+d.y*-g,y:d.x*g+d.y*c}:d);return{lat:b.y,lon:b.x}}};p.prototype.fromPointToLatLon=function(d){var b=this.mapTransforms,c;if(b){for(c in b)if(b.hasOwnProperty(c)&&b[c].hitZone&&m({x:d.x,y:-d.y},b[c].hitZone.coordinates[0]))return this.transformToLatLon(d,b[c]);return this.transformToLatLon(d,b["default"])}a.error(22)};p.prototype.fromLatLonToPoint=function(d){var b=this.mapTransforms,c,g;if(!b)return a.error(22), | ||
{x:0,y:null};for(c in b)if(b.hasOwnProperty(c)&&b[c].hitZone&&(g=this.transformFromLatLon(d,b[c]),m({x:g.x,y:-g.y},b[c].hitZone.coordinates[0])))return g;return this.transformFromLatLon(d,b["default"])};a.geojson=function(a,b,c){var g=[],d=[],k=function(a){var b,c=a.length;d.push("M");for(b=0;b<c;b++)1===b&&d.push("L"),d.push(a[b][0],-a[b][1])};b=b||"map";l(a.features,function(a){var c=a.geometry,f=c.type,c=c.coordinates;a=a.properties;var h;d=[];"map"===b||"mapbubble"===b?("Polygon"===f?(l(c,k), | ||
d.push("Z")):"MultiPolygon"===f&&(l(c,function(a){l(a,k)}),d.push("Z")),d.length&&(h={path:d})):"mapline"===b?("LineString"===f?k(c):"MultiLineString"===f&&l(c,k),d.length&&(h={path:d})):"mappoint"===b&&"Point"===f&&(h={x:c[0],y:-c[1]});h&&g.push(e(h,{name:a.name||a.NAME,properties:a}))});c&&a.copyrightShort&&(c.chart.mapCredits=q(c.chart.options.credits.mapText,{geojson:a}),c.chart.mapCreditsFull=q(c.chart.options.credits.mapTextFull,{geojson:a}));return g};v(p.prototype,"addCredits",function(a, | ||
b){b=w(!0,this.options.credits,b);this.mapCredits&&(b.href=null);a.call(this,b);this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})})})(y);(function(a){function m(a,b,d,e,f,l,m,h){return["M",a+f,b,"L",a+d-l,b,"C",a+d-l/2,b,a+d,b+l/2,a+d,b+l,"L",a+d,b+e-m,"C",a+d,b+e-m/2,a+d-m/2,b+e,a+d-m,b+e,"L",a+h,b+e,"C",a+h/2,b+e,a,b+e-h/2,a,b+e-h,"L",a,b+f,"C",a,b+f/2,a+f/2,b,a+f,b,"Z"]}var p=a.Chart,l=a.defaultOptions,e=a.each,q=a.extend,w=a.merge,x=a.pick,v=a.Renderer,d=a.SVGRenderer, | ||
b=a.VMLRenderer;q(l.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"});l.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1};a.splitPath=function(a){var b;a=a.replace(/([A-Za-z])/g," $1 ");a=a.replace(/^\s*/, | ||
"").replace(/\s*$/,"");a=a.split(/[ ,]+/);for(b=0;b<a.length;b++)/[a-zA-Z]/.test(a[b])||(a[b]=parseFloat(a[b]));return a};a.maps={};d.prototype.symbols.topbutton=function(a,b,d,e,f){return m(a-1,b-1,d,e,f.r,f.r,0,0)};d.prototype.symbols.bottombutton=function(a,b,d,e,f){return m(a-1,b-1,d,e,0,0,f.r,f.r)};v===b&&e(["topbutton","bottombutton"],function(a){b.prototype.symbols[a]=d.prototype.symbols[a]});a.Map=a.mapChart=function(b,d,e){var c="string"===typeof b||b.nodeName,f=arguments[c?1:0],g={endOnTick:!1, | ||
visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},l,h=a.getOptions().credits;l=f.series;f.series=null;f=w({chart:{panning:"xy",type:"map"},credits:{mapText:x(h.mapText,' \u00a9 \x3ca href\x3d"{geojson.copyrightUrl}"\x3e{geojson.copyrightShort}\x3c/a\x3e'),mapTextFull:x(h.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:g,yAxis:w(g,{reversed:!0})},f,{chart:{inverted:!1,alignTicks:!1}});f.series=l;return c?new p(b,f,e):new p(f,d)}})(y)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Plugin for displaying a message when there is no data visible in chart. | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Plugin for displaying a message when there is no data visible in chart. | ||
@@ -10,2 +10,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -27,3 +28,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -30,0 +30,0 @@ var seriesTypes = H.seriesTypes, |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Client side exporting module | ||
@@ -19,2 +19,2 @@ | ||
function(){if(!1===b.fallbackToExportServer)if(b.error)b.error(b);else throw"Fallback to export server disabled";else c.exportChart(b)};B&&("application/pdf"===b.type||c.container.getElementsByTagName("image").length&&"image/svg+xml"!==b.type)||D&&"image/svg+xml"!==b.type||"application/pdf"===b.type&&c.container.getElementsByTagName("image").length?f():c.getSVGForLocalExport(b,e,f,function(a){-1<a.indexOf("\x3cforeignObject")&&"image/svg+xml"!==b.type?f():d.downloadSVGLocal(a,b,f)})};C(!0,d.getOptions().exporting, | ||
{libURL:"https://code.highcharts.com/5.0.7/lib/",buttons:{contextButton:{menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},{textKey:"downloadSVG",onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}]}}})})(n)}); | ||
{libURL:"https://code.highcharts.com/5.0.8/lib/",buttons:{contextButton:{menuItems:[{textKey:"printChart",onclick:function(){this.print()}},{separator:!0},{textKey:"downloadPNG",onclick:function(){this.exportChartLocal()}},{textKey:"downloadJPEG",onclick:function(){this.exportChartLocal({type:"image/jpeg"})}},{textKey:"downloadSVG",onclick:function(){this.exportChartLocal({type:"image/svg+xml"})}},{textKey:"downloadPDF",onclick:function(){this.exportChartLocal({type:"application/pdf"})}}]}}})})(n)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Client side exporting module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
/*global MSBlobBuilder */ | ||
@@ -505,3 +505,3 @@ | ||
merge(true, Highcharts.getOptions().exporting, { | ||
libURL: 'https://code.highcharts.com/5.0.7/lib/', | ||
libURL: 'https://code.highcharts.com/5.0.8/lib/', | ||
buttons: { | ||
@@ -508,0 +508,0 @@ contextButton: { |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -8,4 +8,4 @@ (c) 2009-2016 Torstein Honsi | ||
*/ | ||
(function(a){"object"===typeof module&&module.exports?module.exports=a:a(Highcharts)})(function(a){(function(a){var h=a.Chart,k=a.each,q=a.pick,r=a.addEvent;h.prototype.callbacks.push(function(f){function a(){var a=[];k(f.series,function(b){var c=b.options.dataLabels,d=b.dataLabelCollections||["dataLabel"];(c.enabled||b._hasPointLabels)&&!c.allowOverlap&&b.visible&&k(d,function(c){k(b.points,function(b){b[c]&&(b[c].labelrank=q(b.labelrank,b.shapeArgs&&b.shapeArgs.height),a.push(b[c]))})})});f.hideOverlappingLabels(a)} | ||
(function(a){"object"===typeof module&&module.exports?module.exports=a:a(Highcharts)})(function(a){(function(a){var h=a.Chart,k=a.each,q=a.pick,r=a.addEvent;h.prototype.callbacks.push(function(f){function a(){var a=[];k(f.series||[],function(b){var c=b.options.dataLabels,d=b.dataLabelCollections||["dataLabel"];(c.enabled||b._hasPointLabels)&&!c.allowOverlap&&b.visible&&k(d,function(c){k(b.points,function(b){b[c]&&(b[c].labelrank=q(b.labelrank,b.shapeArgs&&b.shapeArgs.height),a.push(b[c]))})})});f.hideOverlappingLabels(a)} | ||
a();r(f,"redraw",a)});h.prototype.hideOverlappingLabels=function(a){var f=a.length,e,b,c,d,l,m,n,p,g,h=function(a,b,c,d,e,f,g,h){return!(e>a+c||e+g<a||f>b+d||f+h<b)};for(b=0;b<f;b++)if(e=a[b])e.oldOpacity=e.opacity,e.newOpacity=1;a.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(b=0;b<f;b++)for(c=a[b],e=b+1;e<f;++e)if(d=a[e],c&&d&&c.placed&&d.placed&&0!==c.newOpacity&&0!==d.newOpacity&&(l=c.alignAttr,m=d.alignAttr,n=c.parentGroup,p=d.parentGroup,g=2*(c.box?0:c.padding),l=h(l.x+n.translateX, | ||
l.y+n.translateY,c.width-g,c.height-g,m.x+p.translateX,m.y+p.translateY,d.width-g,d.height-g)))(c.labelrank<d.labelrank?c:d).newOpacity=0;k(a,function(a){var b,c;a&&(c=a.newOpacity,a.oldOpacity!==c&&a.placed&&(c?a.show(!0):b=function(){a.hide()},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b)),a.isOld=!0)})}})(a)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -22,3 +23,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
/** | ||
@@ -38,3 +38,3 @@ * Highcharts module to hide overlapping data labels. This module is included in Highcharts. | ||
each(chart.series, function(series) { | ||
each(chart.series || [], function(series) { | ||
var dlOptions = series.options.dataLabels, | ||
@@ -41,0 +41,0 @@ collections = series.dataLabelCollections || ['dataLabel']; // Range series have two collections |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -4,0 +4,0 @@ (c) 2009-2016 Torstein Honsi |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -37,3 +38,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
@@ -40,0 +40,0 @@ var labelDistance = 3, |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Solid angular gauge module | ||
@@ -9,7 +9,8 @@ | ||
*/ | ||
(function(l){"object"===typeof module&&module.exports?module.exports=l:l(Highcharts)})(function(l){(function(f){var l=f.pInt,t=f.pick,m=f.each,v=f.isNumber,n;n={initDataClasses:function(a){var c=this,d=this.chart,e,u=0,h=this.options;this.dataClasses=e=[];m(a.dataClasses,function(g,b){g=f.merge(g);e.push(g);g.color||("category"===h.dataClassColor?(b=d.options.colors,g.color=b[u++],u===b.length&&(u=0)):g.color=c.tweenColors(f.color(h.minColor),f.color(h.maxColor),b/(a.dataClasses.length-1)))})},initStops:function(a){this.stops= | ||
a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];m(this.stops,function(a){a.color=f.color(a[1])})},toColor:function(a,c){var d=this.stops,e,f,h=this.dataClasses,g,b;if(h)for(b=h.length;b--;){if(g=h[b],e=g.from,d=g.to,(void 0===e||a>=e)&&(void 0===d||a<=d)){f=g.color;c&&(c.dataClass=b);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min);for(b=d.length;b--&&!(a>d[b][0]););e=d[b]||d[b+1];d=d[b+1]||e;a=1-(d[0]-a)/(d[0]-e[0]||1);f=this.tweenColors(e.color,d.color, | ||
a)}return f},tweenColors:function(a,c,d){var e;c.rgba.length&&a.rgba.length?(a=a.rgba,c=c.rgba,e=1!==c[3]||1!==a[3],a=(e?"rgba(":"rgb(")+Math.round(c[0]+(a[0]-c[0])*(1-d))+","+Math.round(c[1]+(a[1]-c[1])*(1-d))+","+Math.round(c[2]+(a[2]-c[2])*(1-d))+(e?","+(c[3]+(a[3]-c[3])*(1-d)):"")+")"):a=c.input||"none";return a}};m(["fill","stroke"],function(a){f.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,n.tweenColors(f.color(this.start),f.color(this.end),this.pos),null,!0)}});f.seriesType("solidgauge", | ||
"gauge",{colorByPoint:!0},{translate:function(){var a=this.yAxis;f.extend(a,n);!a.dataClasses&&a.options.dataClasses&&a.initDataClasses(a.options);a.initStops(a.options);f.seriesTypes.gauge.prototype.translate.call(this)},drawPoints:function(){var a=this,c=a.yAxis,d=c.center,e=a.options,f=a.chart.renderer,h=e.overshoot,g=v(h)?h/180*Math.PI:0,b;v(e.threshold)&&(b=c.startAngleRad+c.translate(e.threshold,null,null,null,!0));this.thresholdAngleRad=t(b,c.startAngleRad);m(a.points,function(b){var h=b.graphic, | ||
k=c.startAngleRad+c.translate(b.y,null,null,null,!0),m=l(t(b.options.radius,e.radius,100))*d[2]/200,p=l(t(b.options.innerRadius,e.innerRadius,60))*d[2]/200,q=c.toColor(b.y,b),r=Math.min(c.startAngleRad,c.endAngleRad),n=Math.max(c.startAngleRad,c.endAngleRad);"none"===q&&(q=b.color||a.color||"none");"none"!==q&&(b.color=q);k=Math.max(r-g,Math.min(n+g,k));!1===e.wrap&&(k=Math.max(r,Math.min(n,k)));r=Math.min(k,a.thresholdAngleRad);k=Math.max(k,a.thresholdAngleRad);k-r>2*Math.PI&&(k=r+2*Math.PI);b.shapeArgs= | ||
p={x:d[0],y:d[1],r:m,innerR:p,start:r,end:k,fill:q};b.startR=m;h?(b=p.d,h.animate(p),b&&(p.d=b)):(b.graphic=f.arc(p).addClass("highcharts-point").attr({fill:q,"sweep-flag":0}).add(a.group),"square"!==e.linecap&&b.graphic.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),b.graphic.attr({stroke:e.borderColor||"none","stroke-width":e.borderWidth||0}))})},animate:function(a){a||(this.startAngleRad=this.thresholdAngleRad,f.seriesTypes.pie.prototype.animate.call(this,a))}})})(l)}); | ||
(function(l){"object"===typeof module&&module.exports?module.exports=l:l(Highcharts)})(function(l){(function(f){var l=f.pInt,u=f.pick,m=f.each,v=f.isNumber,w=f.wrap,n;w(f.Renderer.prototype.symbols,"arc",function(a,d,e,c,f,g){a=a(d,e,c,f,g);g.rounded&&(c=((g.r||c)-g.innerR)/2,g=["A",c,c,0,1,1,a[12],a[13]],a.splice.apply(a,[a.length-1,0].concat(["A",c,c,0,1,1,a[1],a[2]])),a.splice.apply(a,[11,3].concat(g)));return a});n={initDataClasses:function(a){var d=this,e=this.chart,c,t=0,g=this.options;this.dataClasses= | ||
c=[];m(a.dataClasses,function(h,b){h=f.merge(h);c.push(h);h.color||("category"===g.dataClassColor?(b=e.options.colors,h.color=b[t++],t===b.length&&(t=0)):h.color=d.tweenColors(f.color(g.minColor),f.color(g.maxColor),b/(a.dataClasses.length-1)))})},initStops:function(a){this.stops=a.stops||[[0,this.options.minColor],[1,this.options.maxColor]];m(this.stops,function(a){a.color=f.color(a[1])})},toColor:function(a,d){var e=this.stops,c,f,g=this.dataClasses,h,b;if(g)for(b=g.length;b--;){if(h=g[b],c=h.from, | ||
e=h.to,(void 0===c||a>=c)&&(void 0===e||a<=e)){f=h.color;d&&(d.dataClass=b);break}}else{this.isLog&&(a=this.val2lin(a));a=1-(this.max-a)/(this.max-this.min);for(b=e.length;b--&&!(a>e[b][0]););c=e[b]||e[b+1];e=e[b+1]||c;a=1-(e[0]-a)/(e[0]-c[0]||1);f=this.tweenColors(c.color,e.color,a)}return f},tweenColors:function(a,d,e){var c;d.rgba.length&&a.rgba.length?(a=a.rgba,d=d.rgba,c=1!==d[3]||1!==a[3],a=(c?"rgba(":"rgb(")+Math.round(d[0]+(a[0]-d[0])*(1-e))+","+Math.round(d[1]+(a[1]-d[1])*(1-e))+","+Math.round(d[2]+ | ||
(a[2]-d[2])*(1-e))+(c?","+(d[3]+(a[3]-d[3])*(1-e)):"")+")"):a=d.input||"none";return a}};m(["fill","stroke"],function(a){f.Fx.prototype[a+"Setter"]=function(){this.elem.attr(a,n.tweenColors(f.color(this.start),f.color(this.end),this.pos),null,!0)}});f.seriesType("solidgauge","gauge",{colorByPoint:!0},{translate:function(){var a=this.yAxis;f.extend(a,n);!a.dataClasses&&a.options.dataClasses&&a.initDataClasses(a.options);a.initStops(a.options);f.seriesTypes.gauge.prototype.translate.call(this)},drawPoints:function(){var a= | ||
this,d=a.yAxis,e=d.center,c=a.options,t=a.chart.renderer,g=c.overshoot,h=v(g)?g/180*Math.PI:0,b;v(c.threshold)&&(b=d.startAngleRad+d.translate(c.threshold,null,null,null,!0));this.thresholdAngleRad=u(b,d.startAngleRad);m(a.points,function(b){var g=b.graphic,k=d.startAngleRad+d.translate(b.y,null,null,null,!0),m=l(u(b.options.radius,c.radius,100))*e[2]/200,p=l(u(b.options.innerRadius,c.innerRadius,60))*e[2]/200,q=d.toColor(b.y,b),r=Math.min(d.startAngleRad,d.endAngleRad),n=Math.max(d.startAngleRad, | ||
d.endAngleRad);"none"===q&&(q=b.color||a.color||"none");"none"!==q&&(b.color=q);k=Math.max(r-h,Math.min(n+h,k));!1===c.wrap&&(k=Math.max(r,Math.min(n,k)));r=Math.min(k,a.thresholdAngleRad);k=Math.max(k,a.thresholdAngleRad);k-r>2*Math.PI&&(k=r+2*Math.PI);b.shapeArgs=p={x:e[0],y:e[1],r:m,innerR:p,start:r,end:k,rounded:c.rounded};b.startR=m;g?(b=p.d,g.animate(f.extend({fill:q},p)),b&&(p.d=b)):(b.graphic=t.arc(p).addClass("highcharts-point").attr({fill:q,"sweep-flag":0}).add(a.group),"square"!==c.linecap&& | ||
b.graphic.attr({"stroke-linecap":"round","stroke-linejoin":"round"}),b.graphic.attr({stroke:c.borderColor||"none","stroke-width":c.borderWidth||0}))})},animate:function(a){a||(this.startAngleRad=this.thresholdAngleRad,f.seriesTypes.pie.prototype.animate.call(this,a))}})})(l)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* Solid angular gauge module | ||
@@ -9,2 +9,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
@@ -33,4 +33,38 @@ var pInt = H.pInt, | ||
isNumber = H.isNumber, | ||
wrap = H.wrap, | ||
Renderer = H.Renderer, | ||
colorAxisMethods; | ||
/** | ||
* Symbol definition of an arc with round edges. | ||
* | ||
* @param {Number} x - The X coordinate for the top left position. | ||
* @param {Number} y - The Y coordinate for the top left position. | ||
* @param {Number} w - The pixel width. | ||
* @param {Number} h - The pixel height. | ||
* @param {Object} [options] - Additional options, depending on the actual | ||
* symbol drawn. | ||
* @param {boolean} [options.rounded] - Whether to draw rounded edges. | ||
* @return {Array} Path of the created arc. | ||
*/ | ||
wrap(Renderer.prototype.symbols, 'arc', function(proceed, x, y, w, h, options) { | ||
var arc = proceed, | ||
path = arc(x, y, w, h, options); | ||
if (options.rounded) { | ||
var r = options.r || w, | ||
smallR = (r - options.innerR) / 2, | ||
x1 = path[1], | ||
y1 = path[2], | ||
x2 = path[12], | ||
y2 = path[13], | ||
roundStart = ['A', smallR, smallR, 0, 1, 1, x1, y1], | ||
roundEnd = ['A', smallR, smallR, 0, 1, 1, x2, y2]; | ||
// Insert rounded edge on end, and remove line. | ||
path.splice.apply(path, [path.length - 1, 0].concat(roundStart)); | ||
// Insert rounded edge on end, and remove line. | ||
path.splice.apply(path, [11, 3].concat(roundEnd)); | ||
} | ||
return path; | ||
}); | ||
// These methods are defined in the ColorAxis object, and copied here. | ||
@@ -271,3 +305,3 @@ // If we implement an AMD system we should make ColorAxis a dependency. | ||
end: maxAngle, | ||
fill: toColor | ||
rounded: options.rounded | ||
}; | ||
@@ -278,3 +312,5 @@ point.startR = radius; // For PieSeries.animate | ||
d = shapeArgs.d; | ||
graphic.animate(shapeArgs); | ||
graphic.animate(H.extend({ | ||
fill: toColor | ||
}, shapeArgs)); | ||
if (d) { | ||
@@ -281,0 +317,0 @@ shapeArgs.d = d; // animate alters it |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
Highstock as a plugin for Highcharts | ||
@@ -9,118 +9,119 @@ | ||
*/ | ||
(function(J){"object"===typeof module&&module.exports?module.exports=J:J(Highcharts)})(function(J){(function(a){var E=a.addEvent,q=a.Axis,z=a.Chart,y=a.css,F=a.dateFormat,C=a.defined,I=a.each,w=a.extend,v=a.noop,p=a.Series,k=a.timeUnits;a=a.wrap;a(p.prototype,"init",function(a){var b;a.apply(this,Array.prototype.slice.call(arguments,1));(b=this.xAxis)&&b.options.ordinal&&E(this,"updatedData",function(){delete b.ordinalIndex})});a(q.prototype,"getTimeTicks",function(a,b,c,f,l,B,H,g){var d=0,r,m,e= | ||
{},t,G,n,x=[],h=-Number.MAX_VALUE,u=this.options.tickPixelInterval;if(!this.options.ordinal&&!this.options.breaks||!B||3>B.length||void 0===c)return a.call(this,b,c,f,l);G=B.length;for(r=0;r<G;r++){n=r&&B[r-1]>f;B[r]<c&&(d=r);if(r===G-1||B[r+1]-B[r]>5*H||n){if(B[r]>h){for(m=a.call(this,b,B[d],B[r],l);m.length&&m[0]<=h;)m.shift();m.length&&(h=m[m.length-1]);x=x.concat(m)}d=r+1}if(n)break}a=m.info;if(g&&a.unitRange<=k.hour){r=x.length-1;for(d=1;d<r;d++)F("%d",x[d])!==F("%d",x[d-1])&&(e[x[d]]="day", | ||
t=!0);t&&(e[x[0]]="day");a.higherRanks=e}x.info=a;if(g&&C(u)){g=a=x.length;r=[];var A;for(t=[];g--;)d=this.translate(x[g]),A&&(t[g]=A-d),r[g]=A=d;t.sort();t=t[Math.floor(t.length/2)];t<.6*u&&(t=null);g=x[a-1]>f?a-1:a;for(A=void 0;g--;)d=r[g],f=Math.abs(A-d),A&&f<.8*u&&(null===t||f<.8*t)?(e[x[g]]&&!e[x[g+1]]?(f=g+1,A=d):f=g,x.splice(f,1)):A=d}return x});w(q.prototype,{beforeSetTickPositions:function(){var a,b=[],c=!1,f,l=this.getExtremes(),B=l.min,k=l.max,g,d=this.isXAxis&&!!this.options.breaks,l= | ||
this.options.ordinal,r=this.chart.options.chart.ignoreHiddenSeries;if(l||d){I(this.series,function(g,e){if(!(r&&!1===g.visible||!1===g.takeOrdinalPosition&&!d)&&(b=b.concat(g.processedXData),a=b.length,b.sort(function(e,g){return e-g}),a))for(e=a-1;e--;)b[e]===b[e+1]&&b.splice(e,1)});a=b.length;if(2<a){f=b[1]-b[0];for(g=a-1;g--&&!c;)b[g+1]-b[g]!==f&&(c=!0);!this.options.keepOrdinalPadding&&(b[0]-B>f||k-b[b.length-1]>f)&&(c=!0)}c?(this.ordinalPositions=b,f=this.ordinal2lin(Math.max(B,b[0]),!0),g=Math.max(this.ordinal2lin(Math.min(k, | ||
b[b.length-1]),!0),1),this.ordinalSlope=k=(k-B)/(g-f),this.ordinalOffset=B-f*k):this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0}this.isOrdinal=l&&c;this.groupIntervalFactor=null},val2lin:function(a,b){var c=this.ordinalPositions;if(c){var f=c.length,l,m;for(l=f;l--;)if(c[l]===a){m=l;break}for(l=f-1;l--;)if(a>c[l]||0===l){a=(a-c[l])/(c[l+1]-c[l]);m=l+a;break}b=b?m:this.ordinalSlope*(m||0)+this.ordinalOffset}else b=a;return b},lin2val:function(a,b){var c=this.ordinalPositions;if(c){var f= | ||
this.ordinalSlope,l=this.ordinalOffset,m=c.length-1,k;if(b)0>a?a=c[0]:a>m?a=c[m]:(m=Math.floor(a),k=a-m);else for(;m--;)if(b=f*m+l,a>=b){f=f*(m+1)+l;k=(a-b)/(f-b);break}return void 0!==k&&void 0!==c[m]?c[m]+(k?k*(c[m+1]-c[m]):0):a}return a},getExtendedPositions:function(){var a=this.chart,b=this.series[0].currentDataGrouping,c=this.ordinalIndex,f=b?b.count+b.unitName:"raw",l=this.getExtremes(),k,p;c||(c=this.ordinalIndex={});c[f]||(k={series:[],chart:a,getExtremes:function(){return{min:l.dataMin, | ||
max:l.dataMax}},options:{ordinal:!0},val2lin:q.prototype.val2lin},I(this.series,function(g){p={xAxis:k,xData:g.xData,chart:a,destroyGroupedData:v};p.options={dataGrouping:b?{enabled:!0,forced:!0,approximation:"open",units:[[b.unitName,[b.count]]]}:{enabled:!1}};g.processData.apply(p);k.series.push(p)}),this.beforeSetTickPositions.apply(k),c[f]=k.ordinalPositions);return c[f]},getGroupIntervalFactor:function(a,b,c){var f;c=c.processedXData;var l=c.length,k=[];f=this.groupIntervalFactor;if(!f){for(f= | ||
0;f<l-1;f++)k[f]=c[f+1]-c[f];k.sort(function(a,g){return a-g});k=k[Math.floor(l/2)];a=Math.max(a,c[0]);b=Math.min(b,c[l-1]);this.groupIntervalFactor=f=l*k/(b-a)}return f},postProcessTickInterval:function(a){var b=this.ordinalSlope;return b?this.options.breaks?this.closestPointRange:a/(b/this.closestPointRange):a}});q.prototype.ordinal2lin=q.prototype.val2lin;a(z.prototype,"pan",function(a,b){var c=this.xAxis[0],f=b.chartX,l=!1;if(c.options.ordinal&&c.series.length){var k=this.mouseDownX,m=c.getExtremes(), | ||
g=m.dataMax,d=m.min,r=m.max,D=this.hoverPoints,e=c.closestPointRange,k=(k-f)/(c.translationSlope*(c.ordinalSlope||e)),t={ordinalPositions:c.getExtendedPositions()},e=c.lin2val,G=c.val2lin,n;t.ordinalPositions?1<Math.abs(k)&&(D&&I(D,function(e){e.setState()}),0>k?(D=t,n=c.ordinalPositions?c:t):(D=c.ordinalPositions?c:t,n=t),t=n.ordinalPositions,g>t[t.length-1]&&t.push(g),this.fixedRange=r-d,k=c.toFixedRange(null,null,e.apply(D,[G.apply(D,[d,!0])+k,!0]),e.apply(n,[G.apply(n,[r,!0])+k,!0])),k.min>=Math.min(m.dataMin, | ||
d)&&k.max<=Math.max(g,r)&&c.setExtremes(k.min,k.max,!0,!1,{trigger:"pan"}),this.mouseDownX=f,y(this.container,{cursor:"move"})):l=!0}else l=!0;l&&a.apply(this,Array.prototype.slice.call(arguments,1))});p.prototype.gappedPath=function(){var a=this.options.gapSize,b=this.points.slice(),c=b.length-1;if(a&&0<c)for(;c--;)b[c+1].x-b[c].x>this.closestPointRange*a&&b.splice(c+1,0,{isNull:!0});return this.getGraphPath(b)}})(J);(function(a){function E(){return Array.prototype.slice.call(arguments,1)}function q(a){a.apply(this); | ||
this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,z(this.pointArrayMap,["y"]))}var z=a.pick,y=a.wrap,F=a.each,C=a.extend,I=a.isArray,w=a.fireEvent,v=a.Axis,p=a.Series;C(v.prototype,{isInBreak:function(a,m){var b=a.repeat||Infinity,c=a.from,f=a.to-a.from;m=m>=c?(m-c)%b:b-(c-m)%b;return a.inclusive?m<=f:m<f&&0!==m},isInAnyBreak:function(a,m){var b=this.options.breaks,c=b&&b.length,f,l,k;if(c){for(;c--;)this.isInBreak(b[c],a)&&(f=!0,l||(l=z(b[c].showPoints,this.isXAxis?!1:!0)));k=f&&m?f&& | ||
!l:f}return k}});y(v.prototype,"setTickPositions",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var k=this.tickPositions,b=this.tickPositions.info,c=[],f;for(f=0;f<k.length;f++)this.isInAnyBreak(k[f])||c.push(k[f]);this.tickPositions=c;this.tickPositions.info=b}});y(v.prototype,"init",function(a,m,b){var c=this;b.breaks&&b.breaks.length&&(b.ordinal=!1);a.call(this,m,b);a=this.options.breaks;c.isBroken=I(a)&&!!a.length;c.isBroken&&(c.val2lin=function(a){var f= | ||
a,b,k;for(k=0;k<c.breakArray.length;k++)if(b=c.breakArray[k],b.to<=a)f-=b.len;else if(b.from>=a)break;else if(c.isInBreak(b,a)){f-=a-b.from;break}return f},c.lin2val=function(a){var f,b;for(b=0;b<c.breakArray.length&&!(f=c.breakArray[b],f.from>=a);b++)f.to<a?a+=f.len:c.isInBreak(f,a)&&(a+=f.len);return a},c.setExtremes=function(a,c,b,k,g){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(c);)c-=this.closestPointRange;v.prototype.setExtremes.call(this,a,c,b,k,g)},c.setAxisTranslation= | ||
function(a){v.prototype.setAxisTranslation.call(this,a);var b=c.options.breaks;a=[];var f=[],k=0,g,d,r=c.userMin||c.min,m=c.userMax||c.max,e,t;for(t in b)d=b[t],g=d.repeat||Infinity,c.isInBreak(d,r)&&(r+=d.to%g-r%g),c.isInBreak(d,m)&&(m-=m%g-d.from%g);for(t in b){d=b[t];e=d.from;for(g=d.repeat||Infinity;e-g>r;)e-=g;for(;e<r;)e+=g;for(;e<m;e+=g)a.push({value:e,move:"in"}),a.push({value:e+(d.to-d.from),move:"out",size:d.breakSize})}a.sort(function(e,a){return e.value===a.value?("in"===e.move?0:1)-("in"=== | ||
a.move?0:1):e.value-a.value});b=0;e=r;for(t in a)d=a[t],b+="in"===d.move?1:-1,1===b&&"in"===d.move&&(e=d.value),0===b&&(f.push({from:e,to:d.value,len:d.value-e-(d.size||0)}),k+=d.value-e-(d.size||0));c.breakArray=f;w(c,"afterBreaks");c.transA*=(m-c.min)/(m-r-k);c.min=r;c.max=m})});y(p.prototype,"generatePoints",function(a){a.apply(this,E(arguments));var k=this.xAxis,b=this.yAxis,c=this.points,f,l=c.length,p=this.options.connectNulls,w;if(k&&b&&(k.options.breaks||b.options.breaks))for(;l--;)f=c[l], | ||
w=null===f.y&&!1===p,w||!k.isInAnyBreak(f.x,!0)&&!b.isInAnyBreak(f.y,!0)||(c.splice(l,1),this.data[l]&&this.data[l].destroyElements())});a.Series.prototype.drawBreaks=function(a,m){var b=this,c=b.points,f,k,p,v;a&&F(m,function(g){f=a.breakArray||[];k=a.isXAxis?a.min:z(b.options.threshold,a.min);F(c,function(d){v=z(d["stack"+g.toUpperCase()],d[g]);F(f,function(g){p=!1;if(k<g.from&&v>g.to||k>g.from&&v<g.from)p="pointBreak";else if(k<g.from&&v>g.from&&v<g.to||k>g.from&&v>g.to&&v<g.from)p="pointInBreak"; | ||
p&&w(a,p,{point:d,brk:g})})})})};y(a.seriesTypes.column.prototype,"drawPoints",q);y(a.Series.prototype,"drawPoints",q)})(J);(function(a){var E=a.arrayMax,q=a.arrayMin,z=a.Axis,y=a.defaultPlotOptions,F=a.defined,C=a.each,I=a.extend,w=a.format,v=a.isNumber,p=a.merge,k=a.pick,m=a.Point,b=a.Tooltip,c=a.wrap,f=a.Series.prototype,l=f.processData,B=f.generatePoints,H=f.destroy,g={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L", | ||
"-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},d={line:{},spline:{},area:{},areaspline:{},column:{approximation:"sum",groupPixelWidth:10},arearange:{approximation:"range"},areasplinerange:{approximation:"range"}, | ||
columnrange:{approximation:"range",groupPixelWidth:10},candlestick:{approximation:"ohlc",groupPixelWidth:10},ohlc:{approximation:"ohlc",groupPixelWidth:5}},r=a.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]],D={sum:function(e){var a=e.length,g;if(!a&&e.hasNulls)g=null;else if(a)for(g=0;a--;)g+=e[a];return g},average:function(e){var a= | ||
e.length;e=D.sum(e);v(e)&&a&&(e/=a);return e},open:function(e){return e.length?e[0]:e.hasNulls?null:void 0},high:function(e){return e.length?E(e):e.hasNulls?null:void 0},low:function(e){return e.length?q(e):e.hasNulls?null:void 0},close:function(e){return e.length?e[e.length-1]:e.hasNulls?null:void 0},ohlc:function(e,a,g,d){e=D.open(e);a=D.high(a);g=D.low(g);d=D.close(d);if(v(e)||v(a)||v(g)||v(d))return[e,a,g,d]},range:function(a,g){a=D.low(a);g=D.high(g);if(v(a)||v(g))return[a,g]}};f.groupData=function(a, | ||
g,d,n){var e=this.data,h=this.options.data,u=[],A=[],t=[],c=a.length,b,G,f=!!g,k=[[],[],[],[]];n="function"===typeof n?n:D[n];var r=this.pointArrayMap,m=r&&r.length,l,p=0;for(l=G=0;l<=c&&!(a[l]>=d[0]);l++);for(l;l<=c;l++){for(;(void 0!==d[p+1]&&a[l]>=d[p+1]||l===c)&&(b=d[p],this.dataGroupInfo={start:G,length:k[0].length},G=n.apply(this,k),void 0!==G&&(u.push(b),A.push(G),t.push(this.dataGroupInfo)),G=l,k[0]=[],k[1]=[],k[2]=[],k[3]=[],p+=1,l!==c););if(l===c)break;if(r){b=this.cropStart+l;b=e&&e[b]|| | ||
this.pointClass.prototype.applyOptions.apply({series:this},[h[b]]);var w,C;for(w=0;w<m;w++)C=b[r[w]],v(C)?k[w].push(C):null===C&&(k[w].hasNulls=!0)}else b=f?g[l]:null,v(b)?k[0].push(b):null===b&&(k[0].hasNulls=!0)}return[u,A,t]};f.processData=function(){var a=this.chart,g=this.options.dataGrouping,d=!1!==this.allowDG&&g&&k(g.enabled,a.options.isStock),n=this.visible||!a.options.chart.ignoreHiddenSeries,c;this.forceCrop=d;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==l.apply(this,arguments)&& | ||
d&&n){this.destroyGroupedData();var h=this.processedXData,u=this.processedYData,A=a.plotSizeX,a=this.xAxis,b=a.options.ordinal,K=this.groupPixelWidth=a.getGroupPixelWidth&&a.getGroupPixelWidth();if(K){this.isDirty=c=!0;n=a.getExtremes();d=n.min;n=n.max;b=b&&a.getGroupIntervalFactor(d,n,this)||1;A=K*(n-d)/A*b;K=a.getTimeTicks(a.normalizeTimeTickInterval(A,g.units||r),Math.min(d,h[0]),Math.max(n,h[h.length-1]),a.options.startOfWeek,h,this.closestPointRange);h=f.groupData.apply(this,[h,u,K,g.approximation]); | ||
u=h[0];b=h[1];if(g.smoothed){g=u.length-1;for(u[g]=Math.min(u[g],n);g--&&0<g;)u[g]+=A/2;u[0]=Math.max(u[0],d)}this.currentDataGrouping=K.info;this.closestPointRange=K.info.totalRange;this.groupMap=h[2];F(u[0])&&u[0]<a.dataMin&&(a.min===a.dataMin&&(a.min=u[0]),a.dataMin=u[0]);this.processedXData=u;this.processedYData=b}else this.currentDataGrouping=this.groupMap=null;this.hasGroupedData=c}};f.destroyGroupedData=function(){var a=this.groupedData;C(a||[],function(g,e){g&&(a[e]=g.destroy?g.destroy(): | ||
null)});this.groupedData=null};f.generatePoints=function(){B.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};c(m.prototype,"update",function(g){this.dataGroup?a.error(24):g.apply(this,[].slice.call(arguments,1))});c(b.prototype,"tooltipFooterHeaderFormatter",function(g,d,c){var e=d.series,b=e.tooltipOptions,h=e.options.dataGrouping,u=b.xDateFormat,A,t=e.xAxis,f=a.dateFormat;return t&&"datetime"===t.options.type&&h&&v(d.key)?(g=e.currentDataGrouping,h=h.dateTimeLabelFormats, | ||
g?(t=h[g.unitName],1===g.count?u=t[0]:(u=t[1],A=t[2])):!u&&h&&(u=this.getXDateFormat(d,b,t)),u=f(u,d.key),A&&(u+=f(A,d.key+g.totalRange-1)),w(b[(c?"footer":"header")+"Format"],{point:I(d.point,{key:u}),series:e})):g.call(this,d,c)});f.destroy=function(){for(var a=this.groupedData||[],g=a.length;g--;)a[g]&&a[g].destroy();H.apply(this)};c(f,"setOptions",function(a,c){a=a.call(this,c);var e=this.type,n=this.chart.options.plotOptions,b=y[e].dataGrouping;d[e]&&(b||(b=p(g,d[e])),a.dataGrouping=p(b,n.series&& | ||
n.series.dataGrouping,n[e].dataGrouping,c.dataGrouping));this.chart.options.isStock&&(this.requireSorting=!0);return a});c(z.prototype,"setScale",function(a){a.call(this);C(this.series,function(a){a.hasProcessed=!1})});z.prototype.getGroupPixelWidth=function(){var a=this.series,g=a.length,d,c=0,b=!1,h;for(d=g;d--;)(h=a[d].options.dataGrouping)&&(c=Math.max(c,h.groupPixelWidth));for(d=g;d--;)(h=a[d].options.dataGrouping)&&a[d].hasProcessed&&(g=(a[d].processedXData||a[d].data).length,a[d].groupPixelWidth|| | ||
g>this.chart.plotSizeX/c||g&&h.forced)&&(b=!0);return b?c:0};z.prototype.setDataGrouping=function(a,g){var d;g=k(g,!0);a||(a={forced:!1,units:null});if(this instanceof z)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else C(this.chart.options.series,function(g){g.dataGrouping=a},!1);g&&this.chart.redraw()}})(J);(function(a){var E=a.each,q=a.Point,z=a.seriesType,y=a.seriesTypes;z("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'}, | ||
threshold:null,states:{hover:{lineWidth:3}}},{pointArrayMap:["open","high","low","close"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:"high",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointAttribs:function(a,C){C=y.column.prototype.pointAttribs.call(this,a,C);var q=this.options;delete C.fill;!a.options.color&&q.upColor&&a.open<a.close&&(C.stroke=q.upColor);return C},translate:function(){var a=this,C=a.yAxis,q=!!a.modifyValue,w=["plotOpen","yBottom","plotClose"]; | ||
y.column.prototype.translate.apply(a);E(a.points,function(v){E([v.open,v.low,v.close],function(p,k){null!==p&&(q&&(p=a.modifyValue(p)),v[w[k]]=C.toPixels(p,!0))})})},drawPoints:function(){var a=this,C=a.chart;E(a.points,function(q){var w,v,p,k,m=q.graphic,b,c=!m;void 0!==q.plotY&&(m||(q.graphic=m=C.renderer.path().add(a.group)),m.attr(a.pointAttribs(q,q.selected&&"select")),v=m.strokeWidth()%2/2,b=Math.round(q.plotX)-v,p=Math.round(q.shapeArgs.width/2),k=["M",b,Math.round(q.yBottom),"L",b,Math.round(q.plotY)], | ||
null!==q.open&&(w=Math.round(q.plotOpen)+v,k.push("M",b,w,"L",b-p,w)),null!==q.close&&(w=Math.round(q.plotClose)+v,k.push("M",b,w,"L",b+p,w)),m[c?"attr":"animate"]({d:k}).addClass(q.getClassName(),!0))})},animate:null},{getClassName:function(){return q.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}})})(J);(function(a){var E=a.defaultPlotOptions,q=a.each,z=a.merge,y=a.seriesType,F=a.seriesTypes;y("candlestick","ohlc",z(E.column,{states:{hover:{lineWidth:2}}, | ||
tooltip:E.ohlc.tooltip,threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff"}),{pointAttribs:function(a,q){var w=F.column.prototype.pointAttribs.call(this,a,q),v=this.options,p=a.open<a.close,k=v.lineColor||this.color;w["stroke-width"]=v.lineWidth;w.fill=a.options.color||(p?v.upColor||this.color:this.color);w.stroke=a.lineColor||(p?v.upLineColor||k:k);q&&(a=v.states[q],w.fill=a.color||w.fill,w.stroke=a.lineColor||w.stroke,w["stroke-width"]=a.lineWidth||w["stroke-width"]);return w},drawPoints:function(){var a= | ||
this,z=a.chart;q(a.points,function(q){var v=q.graphic,p,k,m,b,c,f,l,w=!v;void 0!==q.plotY&&(v||(q.graphic=v=z.renderer.path().add(a.group)),v.attr(a.pointAttribs(q,q.selected&&"select")).shadow(a.options.shadow),c=v.strokeWidth()%2/2,f=Math.round(q.plotX)-c,p=q.plotOpen,k=q.plotClose,m=Math.min(p,k),p=Math.max(p,k),l=Math.round(q.shapeArgs.width/2),k=Math.round(m)!==Math.round(q.plotY),b=p!==q.yBottom,m=Math.round(m)+c,p=Math.round(p)+c,c=[],c.push("M",f-l,p,"L",f-l,m,"L",f+l,m,"L",f+l,p,"Z","M", | ||
f,m,"L",f,k?Math.round(q.plotY):m,"M",f,p,"L",f,b?Math.round(q.yBottom):p),v[w?"attr":"animate"]({d:c}).addClass(q.getClassName(),!0))})}})})(J);(function(a){var E=a.addEvent,q=a.each,z=a.merge,y=a.noop,F=a.Renderer,C=a.seriesType,I=a.seriesTypes,w=a.TrackerMixin,v=a.VMLRenderer,p=a.SVGRenderer.prototype.symbols;C("flags","column",{pointRange:0,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}\x3cbr/\x3e"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000", | ||
fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,m){var b=this.options,c=a&&a.color||this.color,f=b.lineColor,k=a&&a.lineWidth;a=a&&a.fillColor||b.fillColor;m&&(a=b.states[m].fillColor,f=b.states[m].lineColor,k=b.states[m].lineWidth);return{fill:a||c,stroke:f||c,"stroke-width":k||b.lineWidth||0}},translate:function(){I.column.prototype.translate.apply(this); | ||
var a=this.options,m=this.chart,b=this.points,c=b.length-1,f,l,p=a.onSeries;f=p&&m.get(p);var a=a.onKey||"y",p=f&&f.options.step,v=f&&f.points,g=v&&v.length,d=this.xAxis,r=d.getExtremes(),D=0,e,t,G;if(f&&f.visible&&g)for(D=(f.pointXOffset||0)+(f.barW||0)/2,f=f.currentDataGrouping,t=v[g-1].x+(f?f.totalRange:0),b.sort(function(a,g){return a.x-g.x}),a="plot"+a[0].toUpperCase()+a.substr(1);g--&&b[c]&&!(f=b[c],e=v[g],e.x<=f.x&&void 0!==e[a]&&(f.x<=t&&(f.plotY=e[a],e.x<f.x&&!p&&(G=v[g+1])&&void 0!==G[a]&& | ||
(f.plotY+=(f.x-e.x)/(G.x-e.x)*(G[a]-e[a]))),c--,g++,0>c)););q(b,function(a,g){var h;void 0===a.plotY&&(a.x>=r.min&&a.x<=r.max?a.plotY=m.chartHeight-d.bottom-(d.opposite?d.height:0)+d.offset-m.plotTop:a.shapeArgs={});a.plotX+=D;(l=b[g-1])&&l.plotX===a.plotX&&(void 0===l.stackIndex&&(l.stackIndex=0),h=l.stackIndex+1);a.stackIndex=h})},drawPoints:function(){var a=this.points,m=this.chart,b=m.renderer,c,f,l=this.options,q=l.y,p,g,d,r,D,e,t,G=this.yAxis;for(g=a.length;g--;)d=a[g],t=d.plotX>this.xAxis.len, | ||
c=d.plotX,r=d.stackIndex,p=d.options.shape||l.shape,f=d.plotY,void 0!==f&&(f=d.plotY+q-(void 0!==r&&r*l.stackDistance)),D=r?void 0:d.plotX,e=r?void 0:d.plotY,r=d.graphic,void 0!==f&&0<=c&&!t?(r||(r=d.graphic=b.label("",null,null,p,null,null,l.useHTML).attr(this.pointAttribs(d)).css(z(l.style,d.style)).attr({align:"flag"===p?"left":"center",width:l.width,height:l.height,"text-align":l.textAlign}).addClass("highcharts-point").add(this.markerGroup),r.shadow(l.shadow)),0<c&&(c-=r.strokeWidth()%2),r.attr({text:d.options.title|| | ||
l.title||"A",x:c,y:f,anchorX:D,anchorY:e}),d.tooltipPos=m.inverted?[G.len+G.pos-m.plotLeft-f,this.xAxis.len-c]:[c,f]):r&&(d.graphic=r.destroy())},drawTracker:function(){var a=this.points;w.drawTrackerPoint.apply(this);q(a,function(k){var b=k.graphic;b&&E(b.element,"mouseover",function(){0<k.stackIndex&&!k.raised&&(k._y=b.y,b.attr({y:k._y-8}),k.raised=!0);q(a,function(a){a!==k&&a.raised&&a.graphic&&(a.graphic.attr({y:a._y}),a.raised=!1)})})})},animate:y,buildKDTree:y,setClip:y});p.flag=function(a, | ||
m,b,c,f){return["M",f&&f.anchorX||a,f&&f.anchorY||m,"L",a,m+c,a,m,a+b,m,a+b,m+c,a,m+c,"Z"]};q(["circle","square"],function(a){p[a+"pin"]=function(k,b,c,f,l){var m=l&&l.anchorX;l=l&&l.anchorY;"circle"===a&&f>c&&(k-=Math.round((f-c)/2),c=f);k=p[a](k,b,c,f);m&&l&&k.push("M",m,b>l?b:b+f,"L",m,l);return k}});F===v&&q(["flag","circlepin","squarepin"],function(a){v.prototype.symbols[a]=p[a]})})(J);(function(a){function E(a,d,b){this.init(a,d,b)}var q=a.addEvent,z=a.Axis,y=a.correctFloat,F=a.defaultOptions, | ||
C=a.defined,I=a.destroyObjectProperties,w=a.doc,v=a.each,p=a.fireEvent,k=a.hasTouch,m=a.isTouchDevice,b=a.merge,c=a.pick,f=a.removeEvent,l=a.wrap,B,H={height:m?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:a.svg&&!m,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2", | ||
trackBorderWidth:1};F.scrollbar=b(!0,H,F.scrollbar);a.swapXY=B=function(a,d){var g=a.length,b;if(d)for(d=0;d<g;d+=3)b=a[d+1],a[d+1]=a[d+2],a[d+2]=b;return a};E.prototype={init:function(a,d,f){this.scrollbarButtons=[];this.renderer=a;this.userOptions=d;this.options=b(H,d);this.chart=f;this.size=c(this.options.size,this.options.height);d.enabled&&(this.render(),this.initEvents(),this.addEvents())},render:function(){var a=this.renderer,d=this.options,b=this.size,c;this.group=c=a.g("scrollbar").attr({zIndex:d.zIndex, | ||
translateY:-99999}).add();this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:d.trackBorderRadius||0,height:b,width:b}).add(c);this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(c);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:b,width:b,r:d.barBorderRadius||0}).add(this.scrollbarGroup); | ||
this.scrollbarRifles=a.path(B(["M",-3,b/4,"L",-3,2*b/3,"M",0,b/4,"L",0,2*b/3,"M",3,b/4,"L",3,2*b/3],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);this.scrollbar.attr({fill:d.barBackgroundColor,stroke:d.barBorderColor,"stroke-width":d.barBorderWidth});this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1});this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0); | ||
this.drawScrollbarButton(1)},position:function(a,d,b,c){var g=this.options.vertical,f=0,G=this.rendered?"animate":"attr";this.x=a;this.y=d+this.trackBorderWidth;this.width=b;this.xOffset=this.height=c;this.yOffset=f;g?(this.width=this.yOffset=b=f=this.size,this.xOffset=d=0,this.barWidth=c-2*b,this.x=a+=this.options.margin):(this.height=this.xOffset=c=d=this.size,this.barWidth=b-2*c,this.y+=this.options.margin);this.group[G]({translateX:a,translateY:this.y});this.track[G]({width:b,height:c});this.scrollbarButtons[1][G]({translateX:g? | ||
0:b-d,translateY:g?c-f:0})},drawScrollbarButton:function(a){var g=this.renderer,b=this.scrollbarButtons,c=this.options,e=this.size,f;f=g.g().add(this.group);b.push(f);f=g.rect().addClass("highcharts-scrollbar-button").add(f);f.attr({stroke:c.buttonBorderColor,"stroke-width":c.buttonBorderWidth,fill:c.buttonBackgroundColor});f.attr(f.crisp({x:-.5,y:-.5,width:e+1,height:e+1,r:c.buttonBorderRadius},f.strokeWidth()));f=g.path(B(["M",e/2+(a?-1:1),e/2-3,"L",e/2+(a?-1:1),e/2+3,"L",e/2+(a?2:-2),e/2],c.vertical)).addClass("highcharts-scrollbar-arrow").add(b[a]); | ||
f.attr({fill:c.buttonArrowColor})},setRange:function(a,d){var g=this.options,b=g.vertical,e=g.minWidth,c=this.barWidth,f,n,x=this.rendered&&!this.hasDragged?"animate":"attr";C(c)&&(a=Math.max(a,0),f=c*a,this.calculatedWidth=n=y(c*Math.min(d,1)-f),n<e&&(f=(c-e+n)*a,n=e),e=Math.floor(f+this.xOffset+this.yOffset),c=n/2-.5,this.from=a,this.to=d,b?(this.scrollbarGroup[x]({translateY:e}),this.scrollbar[x]({height:n}),this.scrollbarRifles[x]({translateY:c}),this.scrollbarTop=e,this.scrollbarLeft=0):(this.scrollbarGroup[x]({translateX:e}), | ||
this.scrollbar[x]({width:n}),this.scrollbarRifles[x]({translateX:c}),this.scrollbarLeft=e,this.scrollbarTop=0),12>=n?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===g.showFull&&(0>=a&&1<=d?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(d){var b=a.chart.pointer.normalize(d),c=a.options.vertical?"chartY":"chartX",e=a.initPositions;!a.grabbedCenter||d.touches&&0===d.touches[0][c]||(b=a.cursorToScrollbarPosition(b)[c], | ||
c=a[c],c=b-c,a.hasDragged=!0,a.updatePosition(e[0]+c,e[1]+c),a.hasDragged&&p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:d.type,DOMEvent:d}))};a.mouseUpHandler=function(d){a.hasDragged&&p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:d.type,DOMEvent:d});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(d){d=a.chart.pointer.normalize(d);d=a.cursorToScrollbarPosition(d);a.chartX=d.chartX;a.chartY=d.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter= | ||
!0};a.buttonToMinClick=function(d){var c=y(a.to-a.from)*a.options.step;a.updatePosition(y(a.from-c),y(a.to-c));p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:d})};a.buttonToMaxClick=function(d){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:d})};a.trackClick=function(d){var c=a.chart.pointer.normalize(d),b=a.to-a.from,e=a.y+a.scrollbarTop,g=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>e||!a.options.vertical&& | ||
c.chartX>g?a.updatePosition(a.from+b,a.to+b):a.updatePosition(a.from-b,a.to-b);p(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:d})}},cursorToScrollbarPosition:function(a){var d=this.options,d=d.minWidth>this.calculatedWidth?d.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-d),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-d)}},updatePosition:function(a,d){1<d&&(a=y(1-y(d-a)),d=1);0>a&&(d=y(d-a),a=0);this.from=a;this.to=d},update:function(a){this.destroy(); | ||
this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],d=this.scrollbarButtons,c=this.scrollbarGroup.element,b=this.mouseDownHandler,e=this.mouseMoveHandler,f=this.mouseUpHandler,a=[[d[a[0]].element,"click",this.buttonToMinClick],[d[a[1]].element,"click",this.buttonToMaxClick],[this.track.element,"click",this.trackClick],[c,"mousedown",b],[w,"mousemove",e],[w,"mouseup",f]];k&&a.push([c,"touchstart",b],[w,"touchmove",e],[w,"touchend", | ||
f]);v(a,function(a){q.apply(null,a)});this._events=a},removeEvents:function(){v(this._events,function(a){f.apply(null,a)});this._events=void 0},destroy:function(){var a=this.chart.scroller;this.removeEvents();v(["track","scrollbarRifles","scrollbar","scrollbarGroup","group"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&(a.scrollbar=null,I(a.scrollbarButtons))}};l(z.prototype,"init",function(a){var d=this;a.apply(d,[].slice.call(arguments,1));d.options.scrollbar&&d.options.scrollbar.enabled&& | ||
(d.options.scrollbar.vertical=!d.horiz,d.options.startOnTick=d.options.endOnTick=!1,d.scrollbar=new E(d.chart.renderer,d.options.scrollbar,d.chart),q(d.scrollbar,"changed",function(a){var b=Math.min(c(d.options.min,d.min),d.min,d.dataMin),e=Math.max(c(d.options.max,d.max),d.max,d.dataMax)-b,g;d.horiz&&!d.reversed||!d.horiz&&d.reversed?(g=b+e*this.to,b+=e*this.from):(g=b+e*(1-this.from),b+=e*(1-this.to));d.setExtremes(b,g,!0,!1,a)}))});l(z.prototype,"render",function(a){var b=Math.min(c(this.options.min, | ||
this.min),this.min,this.dataMin),g=Math.max(c(this.options.max,this.max),this.max,this.dataMax),f=this.scrollbar,e;a.apply(this,[].slice.call(arguments,1));f&&(this.horiz?f.position(this.left,this.top+this.height+this.offset+2+(this.opposite?0:this.axisTitleMargin),this.width,this.height):f.position(this.left+this.width+2+this.offset+(this.opposite?this.axisTitleMargin:0),this.top,this.width,this.height),isNaN(b)||isNaN(g)||!C(this.min)||!C(this.max)?f.setRange(0,0):(e=(this.min-b)/(g-b),b=(this.max- | ||
b)/(g-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(e,b):f.setRange(1-b,1-e)))});l(z.prototype,"getOffset",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,[].slice.call(arguments,1));c&&(this.chart.axisOffset[b]+=c.size+c.options.margin)});l(z.prototype,"destroy",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,[].slice.call(arguments,1))});a.Scrollbar=E})(J);(function(a){function E(a){this.init(a)}var q=a.addEvent,z=a.Axis,y= | ||
a.Chart,F=a.color,C=a.defaultOptions,I=a.defined,w=a.destroyObjectProperties,v=a.doc,p=a.each,k=a.erase,m=a.error,b=a.extend,c=a.grep,f=a.hasTouch,l=a.isNumber,B=a.isObject,H=a.merge,g=a.pick,d=a.removeEvent,r=a.Scrollbar,D=a.Series,e=a.seriesTypes,t=a.wrap,G=a.swapXY,n=[].concat(a.defaultDataGroupingUnits),x=function(a){var h=c(arguments,l);if(h.length)return Math[a].apply(0,h)};n[4]=["day",[1,2,3,4]];n[5]=["week",[1,2,3]];e=void 0===e.areaspline?"line":"areaspline";b(C,{navigator:{height:40,margin:25, | ||
maskInside:!0,handles:{backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:F("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:e,color:"#335cad",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:n},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},pointRange:0,shadow:!1,threshold:null},xAxis:{className:"highcharts-navigator-xaxis", | ||
tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});E.prototype={drawHandle:function(a,u,b,c){this.handles[u][c](b?{translateX:Math.round(this.left+this.height/2-8),translateY:Math.round(this.top+parseInt(a, | ||
10)+.5)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-8)})},getHandlePath:function(a){return G(["M",-4.5,.5,"L",3.5,.5,"L",3.5,15.5,"L",-4.5,15.5,"L",-4.5,.5,"M",-1.5,4,"L",-1.5,12,"M",.5,4,"L",.5,12],a)},drawOutline:function(a,u,b,c){var h=this.navigatorOptions.maskInside,e=this.outline.strokeWidth()/2,d=this.outlineHeight,f=this.scrollbarHeight,A=this.size,g=this.left-f,n=this.top;b?(g-=e,b=n+u+e,u=n+a+e,a=["M",g+d,n-f-e,"L",g+d,b,"L",g,b,"L",g,u, | ||
"L",g+d,u,"L",g+d,n+A+f].concat(h?["M",g+d,b-e,"L",g+d,u+e]:[])):(a+=g+f-e,u+=g+f-e,n+=e,a=["M",g,n,"L",a,n,"L",a,n+d,"L",u,n+d,"L",u,n,"L",g+A+2*f,n].concat(h?["M",a-e,n,"L",u+e,n]:[]));this.outline[c]({d:a})},drawMasks:function(a,b,c,e){var h=this.left,u=this.top,d=this.height,g,f,A,n;c?(A=[h,h,h],n=[u,u+a,u+b],f=[d,d,d],g=[a,b-a,this.size-b]):(A=[h,h+a,h+b],n=[u,u,u],f=[a,b-a,this.size-b],g=[d,d,d]);p(this.shades,function(a,h){a[e]({x:A[h],y:n[h],width:f[h],height:g[h]})})},renderElements:function(){var a= | ||
this,b=a.navigatorOptions,c=b.maskInside,e=a.chart,d=e.inverted,g=e.renderer,f;a.navigatorGroup=f=g.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();var n={cursor:d?"ns-resize":"ew-resize"};p([!c,c,!c],function(h,c){a.shades[c]=g.rect().addClass("highcharts-navigator-mask"+(1===c?"-inside":"-outside")).attr({fill:h?b.maskFill:"transparent"}).css(1===c&&n).add(f)});a.outline=g.path().addClass("highcharts-navigator-outline").attr({"stroke-width":b.outlineWidth,stroke:b.outlineColor}).add(f); | ||
p([0,1],function(h){a.handles[h]=g.path(a.getHandlePath(d)).attr({zIndex:7-h}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][h]).add(f);var c=b.handles;a.handles[h].attr({fill:c.backgroundColor,stroke:c.borderColor,"stroke-width":1}).css(n)})},update:function(a){this.destroy();H(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(a,b,c,e){var h=this.chart,d,u,f=this.scrollbarHeight,n,A=this.xAxis;d=this.navigatorEnabled;var x, | ||
t=this.rendered;u=h.inverted;var k=h.xAxis[0].minRange;if(!this.hasDragged||I(c)){if(!l(a)||!l(b))if(t)c=0,e=A.width;else return;this.left=g(A.left,h.plotLeft+f);u?(this.size=x=n=g(A.len,h.plotHeight-2*f),h=f):(this.size=x=n=g(A.len,h.plotWidth-2*f),h=n+2*f);c=g(c,A.toPixels(a,!0));e=g(e,A.toPixels(b,!0));l(c)&&Infinity!==Math.abs(c)||(c=0,e=h);a=A.toValue(c,!0);b=A.toValue(e,!0);if(Math.abs(b-a)<k)if(this.grabbedLeft)c=A.toPixels(b-k,!0);else if(this.grabbedRight)e=A.toPixels(a+k,!0);else return; | ||
this.zoomedMax=Math.min(Math.max(c,e,0),x);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,e),0),x);this.range=this.zoomedMax-this.zoomedMin;x=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);d&&(this.navigatorGroup.attr({visibility:"visible"}),t=t&&!this.hasDragged?"animate":"attr",this.drawMasks(c,x,u,t),this.drawOutline(c,x,u,t),this.drawHandle(c,0,u,t),this.drawHandle(x,1,u,t));this.scrollbar&&(u?(u=this.top-f,d=this.left-f+(d?0:this.height),f= | ||
n+2*f):(u=this.top+(d?this.height:-f),d=this.left-f),this.scrollbar.position(d,u,h,f),this.scrollbar.setRange(c/n,x/n));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,e=[],d,g;a.mouseMoveHandler=d=function(h){a.onMouseMove(h)};a.mouseUpHandler=g=function(h){a.onMouseUp(h)};e=a.getPartsEvents("mousedown");e.push(q(c,"mousemove",d),q(v,"mouseup",g));f&&(e.push(q(c,"touchmove",d),q(v,"touchend",g)),e.concat(a.getPartsEvents("touchstart")));a.eventsToUnbind=e;a.series&& | ||
a.series[0]&&e.push(q(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var h=this,b=[];p(["shades","handles"],function(c){p(h[c],function(e,d){b.push(q(e.element,a,function(a){h[c+"Mousedown"](a,d)}))})});return b},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,h=this.xAxis,e=this.zoomedMin,d=this.left,u=this.size,f=this.range,g=a.chartX,n;c.inverted&&(g=a.chartY,d=this.top);1===b?(this.grabbedCenter= | ||
g,this.fixedWidth=f,this.dragOffset=g-e):(a=g-d-f/2,0===b?a=Math.max(0,a):2===b&&a+f>=u&&(a=u-f,n=this.getUnionExtremes().dataMax),a!==e&&(this.fixedWidth=f,b=h.toFixedRange(a,a+f,null,n),c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],h=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme= | ||
h?c.min:c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=h?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,e=b.left,h=b.navigatorSize,d=b.range,f=b.dragOffset,g=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,g&&(e=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-e,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-e)):b.grabbedCenter&&(b.hasDragged=!0,c< | ||
f?c=f:c>h+f-d&&(c=h+f-d),b.render(0,0,c-f,c-f+d)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,e,d,h=a.DOMEvent||a;if(this.hasDragged||"scrollbar"===a.trigger)this.zoomedMin===this.otherHandlePos?e=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(d=this.fixedExtreme),this.zoomedMax===this.navigatorSize&&(d=this.getUnionExtremes().dataMax),c=c.toFixedRange(this.zoomedMin, | ||
this.zoomedMax,e,d),I(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:h});"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(p(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()}, | ||
removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&!1!==this.navigatorOptions.adaptToUpdatedData&&(p(a,function(a){d(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&d(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,e=c.enabled,d=b.scrollbar,f=d.enabled,b=e?c.height:0,h=f?d.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=h;this.scrollbarEnabled= | ||
f;this.navigatorEnabled=e;this.navigatorOptions=c;this.scrollbarOptions=d;this.outlineHeight=b+h;var g=this,e=g.baseSeries,d=a.xAxis.length,f=a.yAxis.length,n=e&&e[0]&&e[0].xAxis||a.xAxis[0];a.extraMargin={type:c.opposite?"plotTop":"marginBottom",value:g.outlineHeight+c.margin};a.inverted&&(a.extraMargin.type=c.opposite?"marginRight":"plotLeft");a.isDirtyBox=!0;g.navigatorEnabled?(g.xAxis=new z(a,H({breaks:n.options.breaks,ordinal:n.options.ordinal},c.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis", | ||
isX:!0,type:"datetime",index:d,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[h,0,-h,0],width:b}:{offsets:[0,-h,0,h],height:b})),g.yAxis=new z(a,H(c.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:f,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?g.addBaseSeries():0===a.series.length&&t(a,"redraw",function(b,c){0<a.series.length&&!g.series&&(g.setBaseSeries(),a.redraw=b);b.call(a,c)}),g.renderElements(), | ||
g.addMouseEvents()):g.xAxis={translate:function(b,c){var e=a.xAxis[0],d=e.getExtremes(),g=a.plotWidth-2*h,f=x("min",e.options.min,d.dataMin),e=x("max",e.options.max,d.dataMax)-f;return c?b*e/g+f:g*(b-f)/e},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)},toFixedRange:z.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=g.scrollbar=new r(a.renderer,H(a.options.scrollbar,{margin:g.navigatorEnabled?0:10,vertical:a.inverted}),a),q(g.scrollbar, | ||
"changed",function(b){var c=g.size,e=c*this.to,c=c*this.from;g.hasDragged=g.scrollbar.hasDragged;g.render(0,0,c,e);(a.options.scrollbar.liveRedraw||"mousemove"!==b.DOMType)&&setTimeout(function(){g.onMouseUp(b)})}));g.addBaseSeriesEvents();g.addChartEvents()},getUnionExtremes:function(a){var b=this.chart.xAxis[0],c=this.xAxis,e=c.options,d=b.options,f;a&&null===b.dataMin||(f={dataMin:g(e&&e.min,x("min",d.min,b.dataMin,c.dataMin,c.min)),dataMax:g(e&&e.max,x("max",d.max,b.dataMax,c.dataMax,c.max))}); | ||
return f},setBaseSeries:function(a){var b=this.chart,c=this.baseSeries=[];a=a||b.options&&b.options.navigator.baseSeries||0;this.series&&(this.removeBaseSeriesEvents(),p(this.series,function(a){a.destroy()}));p(b.series||[],function(b,e){(b.options.showInNavigator||(e===a||b.options.id===a)&&!1!==b.options.showInNavigator)&&c.push(b)});this.xAxis&&!this.xAxis.fake&&this.addBaseSeries()},addBaseSeries:function(){var a=this,b=a.chart,c=a.series=[],e=a.baseSeries,d,g,f=a.navigatorOptions.series,n,x= | ||
{enableMouseTracking:!1,index:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0};e?p(e,function(e,h){x.name="Navigator "+(h+1);d=e.options||{};n=d.navigatorOptions||{};g=H(d,x,f,n);h=n.data||f.data;a.hasNavigatorData=a.hasNavigatorData||!!h;g.data=h||d.data&&d.data.slice(0);e.navigatorSeries=b.initSeries(g);c.push(e.navigatorSeries)}):(g=H(f,x),g.data=f.data,a.hasNavigatorData=!!g.data,c.push(b.initSeries(g)));this.addBaseSeriesEvents()}, | ||
addBaseSeriesEvents:function(){var a=this,c=a.baseSeries||[];c[0]&&c[0].xAxis&&q(c[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes);!1!==this.navigatorOptions.adaptToUpdatedData&&p(c,function(c){c.xAxis&&(q(c,"updatedData",this.updatedDataHandler),c.userOptions.events=b(c.userOptions.event,{updatedData:this.updatedDataHandler}));q(c,"remove",function(){this.navigatorSeries&&(k(a.series,this.navigatorSeries),this.navigatorSeries.remove(),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a= | ||
this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,e=b.dataMax,b=b.max-b.min,d=a.stickToMin,g=a.stickToMax,f,n,x=a.series&&a.series[0],t=!!this.setExtremes;this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger||(d&&(n=c,f=n+b),g&&(f=e,d||(n=Math.max(f-b,x&&x.xData?x.xData[0]:-Number.MAX_VALUE))),t&&(d||g)&&l(n)&& | ||
(this.min=this.userMin=n,this.max=this.userMax=f));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMin=l(this.xAxis.min)&&this.xAxis.min<=this.xData[0];a.stickToMax=Math.round(a.zoomedMax)>=Math.round(a.size);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){q(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&& | ||
a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(k(this.chart.xAxis,this.xAxis),k(this.chart.axes,this.xAxis));this.yAxis&&(k(this.chart.yAxis,this.yAxis),k(this.chart.axes,this.yAxis));p(this.series||[],function(a){a.destroy&&a.destroy()});p("series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" "),function(a){this[a]&&this[a].destroy&&this[a].destroy(); | ||
this[a]=null},this);p([this.handles],function(a){w(a)},this)}};a.Navigator=E;t(z.prototype,"zoom",function(a,b,c){var e=this.chart,d=e.options,g=d.chart.zoomType,f=d.navigator,d=d.rangeSelector,n;this.isXAxis&&(f&&f.enabled||d&&d.enabled)&&("x"===g?e.resetZoomButton="blocked":"y"===g?n=!1:"xy"===g&&(e=this.previousZoom,I(b)?this.previousZoom=[this.min,this.max]:e&&(b=e[0],c=e[1],delete this.previousZoom)));return void 0!==n?n:a.call(this,b,c)});t(y.prototype,"init",function(a,b,c){q(this,"beforeRender", | ||
function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new E(this)});a.call(this,b,c)});t(y.prototype,"setChartSize",function(a){var b=this.legend,c=this.navigator,e,d,f,n;a.apply(this,[].slice.call(arguments,1));c&&(d=b.options,f=c.xAxis,n=c.yAxis,e=c.scrollbarHeight,this.inverted?(c.left=c.navigatorOptions.opposite?this.chartWidth-e-c.height:this.spacing[3]+e,c.top=this.plotTop+e):(c.left=this.plotLeft+e,c.top=c.navigatorOptions.top||this.chartHeight- | ||
c.height-e-this.spacing[2]-("bottom"===d.verticalAlign&&d.enabled&&!d.floating?b.legendHeight+g(d.margin,10):0)),f&&n&&(this.inverted?f.options.left=n.options.left=c.left:f.options.top=n.options.top=c.top,f.setAxisSize(),n.setAxisSize()))});t(D.prototype,"addPoint",function(a,b,c,e,d){var f=this.options.turboThreshold;f&&this.xData.length>f&&B(b,!0)&&this.chart.navigator&&m(20,!0);a.call(this,b,c,e,d)});t(y.prototype,"addSeries",function(a,b,c,e){a=a.call(this,b,!1,e);this.navigator&&this.navigator.setBaseSeries(); | ||
g(c,!0)&&this.redraw();return a});t(D.prototype,"update",function(a,b,c){a.call(this,b,!1);this.chart.navigator&&this.chart.navigator.setBaseSeries();g(c,!0)&&this.chart.redraw()});y.prototype.callbacks.push(function(a){var b=a.navigator;b&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(J);(function(a){function E(a){this.init(a)}var q=a.addEvent,z=a.Axis,y=a.Chart,F=a.css,C=a.createElement,I=a.dateFormat,w=a.defaultOptions,v=w.global.useUTC,p=a.defined,k=a.destroyObjectProperties,m=a.discardElement, | ||
b=a.each,c=a.extend,f=a.fireEvent,l=a.Date,B=a.isNumber,H=a.merge,g=a.pick,d=a.pInt,r=a.splat,D=a.wrap;c(w,{rangeSelector:{buttonTheme:{"stroke-width":0,width:28,height:18,padding:2,zIndex:7},height:35,inputPosition:{align:"right"},labelStyle:{color:"#666666"}}});w.lang=H(w.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"});E.prototype={clickButton:function(a,c){var e=this,d=e.chart,f=e.buttonOptions[a],h=d.xAxis[0],u=d.scroller&&d.scroller.getUnionExtremes()||h||{},t= | ||
u.dataMin,k=u.dataMax,l,m=h&&Math.round(Math.min(h.max,g(k,h.max))),p=f.type,w,u=f._range,L,M,C,y=f.dataGrouping;if(null!==t&&null!==k){d.fixedRange=u;y&&(this.forcedDataGrouping=!0,z.prototype.setDataGrouping.call(h||{chart:this.chart},y,!1));if("month"===p||"year"===p)h?(p={range:f,max:m,dataMin:t,dataMax:k},l=h.minFromRange.call(p),B(p.newMax)&&(m=p.newMax)):u=f;else if(u)l=Math.max(m-u,t),m=Math.min(l+u,k);else if("ytd"===p)if(h)void 0===k&&(t=Number.MAX_VALUE,k=Number.MIN_VALUE,b(d.series,function(a){a= | ||
a.xData;t=Math.min(a[0],t);k=Math.max(a[a.length-1],k)}),c=!1),m=e.getYTDExtremes(k,t,v),l=L=m.min,m=m.max;else{q(d,"beforeRender",function(){e.clickButton(a)});return}else"all"===p&&h&&(l=t,m=k);e.setSelected(a);h?h.setExtremes(l,m,g(c,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:f}):(w=r(d.options.xAxis)[0],C=w.range,w.range=u,M=w.min,w.min=L,q(d,"load",function(){w.range=C;w.min=M}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:"month",count:1, | ||
text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(a){var c=this,e=a.options.rangeSelector,d=e.buttons||[].concat(c.defaultButtons),g=e.selected,h=function(){var a=c.minInput,b=c.maxInput;a&&a.blur&&f(a,"blur");b&&b.blur&&f(b,"blur")};c.chart=a;c.options=e;c.buttons=[];a.extraTopMargin=e.height;c.buttonOptions=d;this.unMouseDown=q(a.container,"mousedown",h);this.unResize=q(a,"resize", | ||
h);b(d,c.computeButtonRange);void 0!==g&&d[g]&&this.clickButton(g,!1);q(a,"load",function(){q(a.xAxis[0],"setExtremes",function(b){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!==b.trigger&&c.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,c=a.xAxis[0],d=Math.round(c.max-c.min),f=!c.hasVisibleSeries,a=a.scroller&&a.scroller.getUnionExtremes()||c,g=a.dataMin,h=a.dataMax,a=this.getYTDExtremes(h,g,v),u=a.min,k=a.max, | ||
l=this.selected,m=B(l),p=this.options.allButtonsEnabled,q=this.buttons;b(this.buttonOptions,function(a,b){var e=a._range,n=a.type,x=a.count||1;a=q[b];var t=0;b=b===l;var G=e>h-g,A=e<c.minRange,v=!1,r=!1,e=e===d;("month"===n||"year"===n)&&d>=864E5*{month:28,year:365}[n]*x&&d<=864E5*{month:31,year:366}[n]*x?e=!0:"ytd"===n?(e=k-u===d,v=!b):"all"===n&&(e=c.max-c.min>=h-g,r=!b&&m&&e);n=!p&&(G||A||r||f);e=b&&e||e&&!m&&!v;n?t=3:e&&(m=!0,t=2);a.state!==t&&a.setState(t)})},computeButtonRange:function(a){var b= | ||
a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this[a+"Input"];p(b)&&(d.previousValue=d.HCTime,d.HCTime=b);d.value=I(c.inputEditDateFormat||"%Y-%m-%d",d.HCTime);this[a+"DateBox"].attr({text:I(c.inputDateFormat||"%b %e, %Y",d.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+"DateBox"]; | ||
F(this[a+"Input"],{left:b.translateX+c.x+"px",top:b.translateY+"px",width:c.width-2+"px",height:c.height-2+"px",border:"2px solid silver"})},hideInput:function(a){F(this[a+"Input"],{border:0,width:"1px",height:"1px"});this.setInputValue(a)},drawInput:function(a){function b(){var a=p.value,b=(k.inputDateParser||Date.parse)(a),c=f.xAxis[0],g=f.scroller&&f.scroller.xAxis?f.scroller.xAxis:c,n=g.dataMin,g=g.dataMax;b!==p.previousValue&&(p.previousValue=b,B(b)||(b=a.split("-"),b=Date.UTC(d(b[0]),d(b[1])- | ||
1,d(b[2]))),B(b)&&(v||(b+=6E4*(new Date).getTimezoneOffset()),m?b>e.maxInput.HCTime?b=void 0:b<n&&(b=n):b<e.minInput.HCTime?b=void 0:b>g&&(b=g),void 0!==b&&c.setExtremes(m?b:c.min,m?c.max:b,void 0,void 0,{trigger:"rangeSelectorInput"})))}var e=this,f=e.chart,g=f.renderer.style||{},h=f.renderer,k=f.options.rangeSelector,l=e.div,m="min"===a,p,q,r=this.inputGroup;this[a+"Label"]=q=h.label(w.lang[m?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(r); | ||
r.offset+=q.width+5;this[a+"DateBox"]=h=h.label("",r.offset).addClass("highcharts-range-input").attr({padding:2,width:k.inputBoxWidth||90,height:k.inputBoxHeight||17,stroke:k.inputBoxBorderColor||"#cccccc","stroke-width":1,"text-align":"center"}).on("click",function(){e.showInput(a);e[a+"Input"].focus()}).add(r);r.offset+=h.width+(m?10:0);this[a+"Input"]=p=C("input",{name:a,className:"highcharts-range-selector",type:"text"},{top:f.plotTop+"px"},l);q.css(H(g,k.labelStyle));h.css(H({color:"#333333"}, | ||
g,k.inputStyle));F(p,c({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:g.fontSize,fontFamily:g.fontFamily,left:"-9em"},k.inputStyle));p.onfocus=function(){e.showInput(a)};p.onblur=function(){e.hideInput(a)};p.onchange=b;p.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=g((b.buttonPosition||{}).y,a.plotTop-a.axisOffset[0]-b.height);return{buttonTop:a,inputTop:a-10}},getYTDExtremes:function(a, | ||
b,c){var d=new l(a),e=d[l.hcGetFullYear]();c=c?l.UTC(e,0,1):+new l(e,0,1);b=Math.max(b||0,c);d=d.getTime();return{max:Math.min(a||d,d),min:b}},render:function(a,d){var e=this,f=e.chart,k=f.renderer,h=f.container,u=f.options,m=u.exporting&&!1!==u.exporting.enabled&&u.navigation&&u.navigation.buttonOptions,l=u.rangeSelector,t=e.buttons,u=w.lang,q=e.div,q=e.inputGroup,r=l.buttonTheme,v=l.buttonPosition||{},z=l.inputEnabled,y=r&&r.states,B=f.plotLeft,D,E=this.getPosition(),F=e.group,H=e.rendered;!1!== | ||
l.enabled&&(H||(e.group=F=k.g("range-selector-buttons").add(),e.zoomText=k.text(u.rangeSelectorZoom,g(v.x,B),15).css(l.labelStyle).add(F),D=g(v.x,B)+e.zoomText.getBBox().width+5,b(e.buttonOptions,function(a,b){t[b]=k.button(a.text,D,0,function(){e.clickButton(b);e.isActive=!0},r,y&&y.hover,y&&y.select,y&&y.disabled).attr({"text-align":"center"}).add(F);D+=t[b].width+g(l.buttonSpacing,5)}),!1!==z&&(e.div=q=C("div",null,{position:"relative",height:0,zIndex:1}),h.parentNode.insertBefore(q,h),e.inputGroup= | ||
q=k.g("input-group").add(),q.offset=0,e.drawInput("min"),e.drawInput("max"))),e.updateButtonStates(),F[H?"animate":"attr"]({translateY:E.buttonTop}),!1!==z&&(q.align(c({y:E.inputTop,width:q.offset,x:m&&E.inputTop<(m.y||0)+m.height-f.spacing[0]?-40:0},l.inputPosition),!0,f.spacingBox),p(z)||(f=F.getBBox(),q[q.alignAttr.translateX<f.x+f.width+10?"hide":"show"]()),e.setInputValue("min",a),e.setInputValue("max",d)),e.rendered=!0)},update:function(a){var b=this.chart;H(!0,b.options.rangeSelector,a);this.destroy(); | ||
this.init(b)},destroy:function(){var a=this.minInput,b=this.maxInput,c;this.unMouseDown();this.unResize();k(this.buttons);a&&(a.onfocus=a.onblur=a.onchange=null);b&&(b.onfocus=b.onblur=b.onchange=null);for(c in this)this[c]&&"chart"!==c&&(this[c].destroy?this[c].destroy():this[c].nodeType&&m(this[c])),this[c]!==E.prototype[c]&&(this[c]=null)}};z.prototype.toFixedRange=function(a,b,c,d){var e=this.chart&&this.chart.fixedRange;a=g(c,this.translate(a,!0,!this.horiz));b=g(d,this.translate(b,!0,!this.horiz)); | ||
c=e&&(b-a)/e;.7<c&&1.3>c&&(d?a=b-e:b=a+e);B(a)||(a=b=void 0);return{min:a,max:b}};z.prototype.minFromRange=function(){var a=this.range,b={month:"Month",year:"FullYear"}[a.type],c,d=this.max,f,h,k=function(a,c){var d=new Date(a);d["set"+b](d["get"+b]()+c);return d.getTime()-a};B(a)?(c=d-a,h=a):(c=d+k(d,-a.count),this.chart&&(this.chart.fixedRange=d-c));f=g(this.dataMin,Number.MIN_VALUE);B(c)||(c=f);c<=f&&(c=f,void 0===h&&(h=k(c,a.count)),this.newMax=Math.min(c+h,this.dataMax));B(d)||(c=void 0);return c}; | ||
D(y.prototype,"init",function(a,b,c){q(this,"init",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new E(this))});a.call(this,b,c)});y.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();B(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,f,e;d&&(e=q(a.xAxis[0],"afterSetExtremes",function(a){d.render(a.min,a.max)}),f=q(a,"redraw",b),b());q(a,"destroy",function(){d&&(f(),e())})});a.RangeSelector=E})(J);(function(a){var E=a.arrayMax,q=a.arrayMin,z=a.Axis, | ||
y=a.Chart,F=a.defined,C=a.each,I=a.extend,w=a.format,v=a.inArray,p=a.isNumber,k=a.isString,m=a.map,b=a.merge,c=a.pick,f=a.Point,l=a.Renderer,B=a.Series,H=a.splat,g=a.SVGRenderer,d=a.VMLRenderer,r=a.wrap,D=B.prototype,e=D.init,t=D.processData,G=f.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(d,f,e){var g=k(d)||d.nodeName,h=arguments[g?1:0],n=h.series,l=a.getOptions(),p,x=c(h.navigator&&h.navigator.enabled,l.navigator.enabled,!0),q=x?{startOnTick:!1,endOnTick:!1}:null,r={marker:{enabled:!1, | ||
radius:2}},t={shadow:!1,borderWidth:0};h.xAxis=m(H(h.xAxis||{}),function(a){return b({minPadding:0,maxPadding:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},l.xAxis,a,{type:"datetime",categories:null},q)});h.yAxis=m(H(h.yAxis||{}),function(a){p=c(a.opposite,!0);return b({labels:{y:-2},opposite:p,showLastLabel:!1,title:{text:null}},l.yAxis,a)});h.series=null;h=b({chart:{panning:!0,pinchType:"x"},navigator:{enabled:x},scrollbar:{enabled:c(l.scrollbar.enabled,!0)},rangeSelector:{enabled:c(l.rangeSelector.enabled, | ||
!0)},title:{text:null},tooltip:{shared:!0,crosshairs:!0},legend:{enabled:!1},plotOptions:{line:r,spline:r,area:r,areaspline:r,arearange:r,areasplinerange:r,column:t,columnrange:t,candlestick:t,ohlc:t}},h,{isStock:!0});h.series=n;return g?new y(d,h,e):new y(h,f)};r(z.prototype,"autoLabelAlign",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&"yAxis"===this.coll&&(c=c.top+","+c.height,!b[c]&&d.enabled)?(15===d.x&& | ||
(d.x=0),void 0===d.align&&(d.align="right"),b[c]=1,"right"):a.call(this,[].slice.call(arguments,1))});r(z.prototype,"getPlotLinePath",function(a,b,d,f,e,g){var h=this,n=this.isLinked&&!this.series?this.linkedParent.series:this.series,l=h.chart,u=l.renderer,q=h.left,x=h.top,r,t,w,A,y=[],z=[],B,D;if("colorAxis"===h.coll)return a.apply(this,[].slice.call(arguments,1));z=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=h.options[b];return p(a)?[l[b][a]]:k(a)?[l.get(a)]:m(n,function(a){return a[b]})}(h.coll); | ||
C(h.isXAxis?l.yAxis:l.xAxis,function(a){if(F(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=F(a.options[b])?l[b][a.options[b]]:l[b][0];h===b&&z.push(a)}});B=z.length?[]:[h.isXAxis?l.yAxis[0]:l.xAxis[0]];C(z,function(a){-1===v(a,B)&&B.push(a)});D=c(g,h.translate(b,null,null,f));p(D)&&(h.horiz?C(B,function(a){var b;t=a.pos;A=t+a.len;r=w=Math.round(D+h.transB);if(r<q||r>q+h.width)e?r=w=Math.min(Math.max(q,r),q+h.width):b=!0;b||y.push("M",r,t,"L",w,A)}):C(B, | ||
function(a){var b;r=a.pos;w=r+a.len;t=A=Math.round(x+h.height-D);if(t<x||t>x+h.height)e?t=A=Math.min(Math.max(x,t),h.top+h.height):b=!0;b||y.push("M",r,t,"L",w,A)}));return 0<y.length?u.crispPolyLine(y,d||1):null});z.prototype.getPlotBandPath=function(a,b){b=this.getPlotLinePath(b,null,null,!0);a=this.getPlotLinePath(a,null,null,!0);var c=[],d;if(a&&b)if(a.toString()===b.toString())c=a,c.flat=!0;else for(d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],b[d+4],b[d+5],b[d+1],b[d+2],"z"); | ||
else c=null;return c};g.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/2);return a};l===d&&(d.prototype.crispPolyLine=g.prototype.crispPolyLine);r(z.prototype,"hideCrosshair",function(a,b){a.call(this,b);this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});r(z.prototype,"drawCrosshair",function(a,b,d){var f,e;a.call(this,b,d);if(F(this.crosshair.label)&&this.crosshair.label.enabled&& | ||
this.cross){a=this.chart;var g=this.options.crosshair.label,h=this.horiz;f=this.opposite;e=this.left;var k=this.top,l=this.crossLabel,n,m=g.format,p="",q="inside"===this.options.tickPosition,r=!1!==this.crosshair.snap,t=0;b||(b=this.cross&&this.cross.e);n=h?"center":f?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";l||(l=this.crossLabel=a.renderer.label(null,null,null,g.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+ | ||
this.series[0].colorIndex)).attr({align:g.align||n,padding:c(g.padding,8),r:c(g.borderRadius,3),zIndex:2}).add(this.labelGroup),l.attr({fill:g.backgroundColor||this.series[0]&&this.series[0].color||"#666666",stroke:g.borderColor||"","stroke-width":g.borderWidth||0}).css(I({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},g.style)));h?(n=r?d.plotX+e:b.chartX,k+=f?0:this.height):(n=f?this.width+e:0,k=r?d.plotY+k:b.chartY);m||g.formatter||(this.isDatetimeAxis&&(p="%b %d, %Y"), | ||
m="{value"+(p?":"+p:"")+"}");b=r?d[this.isXAxis?"x":"y"]:this.toValue(h?b.chartX:b.chartY);l.attr({text:m?w(m,{value:b}):g.formatter.call(this,b),x:n,y:k,visibility:"visible"});b=l.getBBox();if(h){if(q&&!f||!q&&f)k=l.y-b.height}else k=l.y-b.height/2;h?(f=e-b.x,e=e+this.width-b.x):(f="left"===this.labelAlign?e:0,e="right"===this.labelAlign?e+this.width:a.chartWidth);l.translateX<f&&(t=f-l.translateX);l.translateX+b.width>=e&&(t=-(l.translateX+b.width-e));l.attr({x:n+t,y:k,anchorX:h?n:this.opposite? | ||
0:a.chartWidth,anchorY:h?this.opposite?a.chartHeight:0:k+b.height/2})}});D.init=function(){e.apply(this,arguments);this.setCompare(this.options.compare)};D.setCompare=function(a){this.modifyValue="value"===a||"percent"===a?function(b,c){var d=this.compareValue;if(void 0!==b&&void 0!==d)return b="value"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};D.processData=function(){var a,b=-1,c,d,f,e;t.apply(this, | ||
arguments);if(this.xAxis&&this.processedYData)for(c=this.processedXData,d=this.processedYData,f=d.length,this.pointArrayMap&&(b=v("close",this.pointArrayMap),-1===b&&(b=v(this.pointValKey||"y",this.pointArrayMap))),a=0;a<f-1;a++)if(e=-1<b?d[a][b]:d[a],p(e)&&c[a+1]>=this.xAxis.min&&0!==e){this.compareValue=e;break}};r(D,"getExtremes",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=q(b),this.dataMax= | ||
E(b))});z.prototype.setCompare=function(a,b){this.isXAxis||(C(this.series,function(b){b.setCompare(a)}),c(b,!0)&&this.chart.redraw())};f.prototype.tooltipFormatter=function(b){b=b.replace("{point.change}",(0<this.change?"+":"")+a.numberFormat(this.change,c(this.series.tooltipOptions.changeDecimals,2)));return G.apply(this,[b])};r(B.prototype,"render",function(a){this.chart.is3d&&this.chart.is3d()||this.chart.polar||!this.xAxis||this.xAxis.isRadial||(!this.clipBox&&this.animate?(this.clipBox=b(this.chart.clipBox), | ||
this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len):this.chart[this.sharedClipKey]?this.chart[this.sharedClipKey].attr({width:this.xAxis.len,height:this.yAxis.len}):this.clipBox&&(this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len));a.call(this)})})(J)}); | ||
(function(J){"object"===typeof module&&module.exports?module.exports=J:J(Highcharts)})(function(J){(function(a){var F=a.addEvent,n=a.Axis,x=a.Chart,A=a.css,G=a.dateFormat,B=a.defined,I=a.each,w=a.extend,v=a.noop,l=a.Series,m=a.timeUnits;a=a.wrap;a(l.prototype,"init",function(a){var b;a.apply(this,Array.prototype.slice.call(arguments,1));(b=this.xAxis)&&b.options.ordinal&&F(this,"updatedData",function(){delete b.ordinalIndex})});a(n.prototype,"getTimeTicks",function(a,b,c,e,q,y,H,f){var d=0,t,g,h= | ||
{},u,E,k,z=[],p=-Number.MAX_VALUE,r=this.options.tickPixelInterval;if(!this.options.ordinal&&!this.options.breaks||!y||3>y.length||void 0===c)return a.call(this,b,c,e,q);E=y.length;for(t=0;t<E;t++){k=t&&y[t-1]>e;y[t]<c&&(d=t);if(t===E-1||y[t+1]-y[t]>5*H||k){if(y[t]>p){for(g=a.call(this,b,y[d],y[t],q);g.length&&g[0]<=p;)g.shift();g.length&&(p=g[g.length-1]);z=z.concat(g)}d=t+1}if(k)break}a=g.info;if(f&&a.unitRange<=m.hour){t=z.length-1;for(d=1;d<t;d++)G("%d",z[d])!==G("%d",z[d-1])&&(h[z[d]]="day", | ||
u=!0);u&&(h[z[0]]="day");a.higherRanks=h}z.info=a;if(f&&B(r)){f=a=z.length;t=[];var C;for(u=[];f--;)d=this.translate(z[f]),C&&(u[f]=C-d),t[f]=C=d;u.sort();u=u[Math.floor(u.length/2)];u<.6*r&&(u=null);f=z[a-1]>e?a-1:a;for(C=void 0;f--;)d=t[f],e=Math.abs(C-d),C&&e<.8*r&&(null===u||e<.8*u)?(h[z[f]]&&!h[z[f+1]]?(e=f+1,C=d):e=f,z.splice(e,1)):C=d}return z});w(n.prototype,{beforeSetTickPositions:function(){var a,b=[],c=!1,e,q=this.getExtremes(),y=q.min,m=q.max,f,d=this.isXAxis&&!!this.options.breaks,q= | ||
this.options.ordinal,t=this.chart.options.chart.ignoreHiddenSeries;if(q||d){I(this.series,function(f,h){if(!(t&&!1===f.visible||!1===f.takeOrdinalPosition&&!d)&&(b=b.concat(f.processedXData),a=b.length,b.sort(function(h,f){return h-f}),a))for(h=a-1;h--;)b[h]===b[h+1]&&b.splice(h,1)});a=b.length;if(2<a){e=b[1]-b[0];for(f=a-1;f--&&!c;)b[f+1]-b[f]!==e&&(c=!0);!this.options.keepOrdinalPadding&&(b[0]-y>e||m-b[b.length-1]>e)&&(c=!0)}c?(this.ordinalPositions=b,e=this.ordinal2lin(Math.max(y,b[0]),!0),f=Math.max(this.ordinal2lin(Math.min(m, | ||
b[b.length-1]),!0),1),this.ordinalSlope=m=(m-y)/(f-e),this.ordinalOffset=y-e*m):this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0}this.isOrdinal=q&&c;this.groupIntervalFactor=null},val2lin:function(a,b){var c=this.ordinalPositions;if(c){var e=c.length,q,g;for(q=e;q--;)if(c[q]===a){g=q;break}for(q=e-1;q--;)if(a>c[q]||0===q){a=(a-c[q])/(c[q+1]-c[q]);g=q+a;break}b=b?g:this.ordinalSlope*(g||0)+this.ordinalOffset}else b=a;return b},lin2val:function(a,b){var c=this.ordinalPositions;if(c){var e= | ||
this.ordinalSlope,q=this.ordinalOffset,g=c.length-1,m;if(b)0>a?a=c[0]:a>g?a=c[g]:(g=Math.floor(a),m=a-g);else for(;g--;)if(b=e*g+q,a>=b){e=e*(g+1)+q;m=(a-b)/(e-b);break}return void 0!==m&&void 0!==c[g]?c[g]+(m?m*(c[g+1]-c[g]):0):a}return a},getExtendedPositions:function(){var a=this.chart,b=this.series[0].currentDataGrouping,c=this.ordinalIndex,e=b?b.count+b.unitName:"raw",q=this.getExtremes(),m,l;c||(c=this.ordinalIndex={});c[e]||(m={series:[],chart:a,getExtremes:function(){return{min:q.dataMin, | ||
max:q.dataMax}},options:{ordinal:!0},val2lin:n.prototype.val2lin,ordinal2lin:n.prototype.ordinal2lin},I(this.series,function(f){l={xAxis:m,xData:f.xData,chart:a,destroyGroupedData:v};l.options={dataGrouping:b?{enabled:!0,forced:!0,approximation:"open",units:[[b.unitName,[b.count]]]}:{enabled:!1}};f.processData.apply(l);m.series.push(l)}),this.beforeSetTickPositions.apply(m),c[e]=m.ordinalPositions);return c[e]},getGroupIntervalFactor:function(a,b,c){var e;c=c.processedXData;var q=c.length,g=[];e= | ||
this.groupIntervalFactor;if(!e){for(e=0;e<q-1;e++)g[e]=c[e+1]-c[e];g.sort(function(a,f){return a-f});g=g[Math.floor(q/2)];a=Math.max(a,c[0]);b=Math.min(b,c[q-1]);this.groupIntervalFactor=e=q*g/(b-a)}return e},postProcessTickInterval:function(a){var b=this.ordinalSlope;return b?this.options.breaks?this.closestPointRange:a/(b/this.closestPointRange):a}});n.prototype.ordinal2lin=n.prototype.val2lin;a(x.prototype,"pan",function(a,b){var c=this.xAxis[0],e=b.chartX,q=!1;if(c.options.ordinal&&c.series.length){var g= | ||
this.mouseDownX,m=c.getExtremes(),f=m.dataMax,d=m.min,t=m.max,D=this.hoverPoints,h=c.closestPointRange,g=(g-e)/(c.translationSlope*(c.ordinalSlope||h)),u={ordinalPositions:c.getExtendedPositions()},h=c.lin2val,E=c.val2lin,k;u.ordinalPositions?1<Math.abs(g)&&(D&&I(D,function(h){h.setState()}),0>g?(D=u,k=c.ordinalPositions?c:u):(D=c.ordinalPositions?c:u,k=u),u=k.ordinalPositions,f>u[u.length-1]&&u.push(f),this.fixedRange=t-d,g=c.toFixedRange(null,null,h.apply(D,[E.apply(D,[d,!0])+g,!0]),h.apply(k,[E.apply(k, | ||
[t,!0])+g,!0])),g.min>=Math.min(m.dataMin,d)&&g.max<=Math.max(f,t)&&c.setExtremes(g.min,g.max,!0,!1,{trigger:"pan"}),this.mouseDownX=e,A(this.container,{cursor:"move"})):q=!0}else q=!0;q&&a.apply(this,Array.prototype.slice.call(arguments,1))});l.prototype.gappedPath=function(){var a=this.options.gapSize,b=this.points.slice(),c=b.length-1;if(a&&0<c)for(;c--;)b[c+1].x-b[c].x>this.closestPointRange*a&&b.splice(c+1,0,{isNull:!0});return this.getGraphPath(b)}})(J);(function(a){function F(){return Array.prototype.slice.call(arguments, | ||
1)}function n(a){a.apply(this);this.drawBreaks(this.xAxis,["x"]);this.drawBreaks(this.yAxis,x(this.pointArrayMap,["y"]))}var x=a.pick,A=a.wrap,G=a.each,B=a.extend,I=a.isArray,w=a.fireEvent,v=a.Axis,l=a.Series;B(v.prototype,{isInBreak:function(a,g){var b=a.repeat||Infinity,c=a.from,e=a.to-a.from;g=g>=c?(g-c)%b:b-(c-g)%b;return a.inclusive?g<=e:g<e&&0!==g},isInAnyBreak:function(a,g){var b=this.options.breaks,c=b&&b.length,e,q,m;if(c){for(;c--;)this.isInBreak(b[c],a)&&(e=!0,q||(q=x(b[c].showPoints,this.isXAxis? | ||
!1:!0)));m=e&&g?e&&!q:e}return m}});A(v.prototype,"setTickPositions",function(a){a.apply(this,Array.prototype.slice.call(arguments,1));if(this.options.breaks){var g=this.tickPositions,b=this.tickPositions.info,c=[],e;for(e=0;e<g.length;e++)this.isInAnyBreak(g[e])||c.push(g[e]);this.tickPositions=c;this.tickPositions.info=b}});A(v.prototype,"init",function(a,g,b){var c=this;b.breaks&&b.breaks.length&&(b.ordinal=!1);a.call(this,g,b);a=this.options.breaks;c.isBroken=I(a)&&!!a.length;c.isBroken&&(c.val2lin= | ||
function(a){var e=a,b,g;for(g=0;g<c.breakArray.length;g++)if(b=c.breakArray[g],b.to<=a)e-=b.len;else if(b.from>=a)break;else if(c.isInBreak(b,a)){e-=a-b.from;break}return e},c.lin2val=function(a){var e,b;for(b=0;b<c.breakArray.length&&!(e=c.breakArray[b],e.from>=a);b++)e.to<a?a+=e.len:c.isInBreak(e,a)&&(a+=e.len);return a},c.setExtremes=function(a,c,b,g,f){for(;this.isInAnyBreak(a);)a-=this.closestPointRange;for(;this.isInAnyBreak(c);)c-=this.closestPointRange;v.prototype.setExtremes.call(this,a, | ||
c,b,g,f)},c.setAxisTranslation=function(a){v.prototype.setAxisTranslation.call(this,a);var b=c.options.breaks;a=[];var e=[],g=0,f,d,t=c.userMin||c.min,m=c.userMax||c.max,h=x(c.pointRangePadding,0),u,E;for(E in b)d=b[E],f=d.repeat||Infinity,c.isInBreak(d,t)&&(t+=d.to%f-t%f),c.isInBreak(d,m)&&(m-=m%f-d.from%f);for(E in b){d=b[E];u=d.from;for(f=d.repeat||Infinity;u-f>t;)u-=f;for(;u<t;)u+=f;for(;u<m;u+=f)a.push({value:u,move:"in"}),a.push({value:u+(d.to-d.from),move:"out",size:d.breakSize})}a.sort(function(h, | ||
a){return h.value===a.value?("in"===h.move?0:1)-("in"===a.move?0:1):h.value-a.value});b=0;u=t;for(E in a)d=a[E],b+="in"===d.move?1:-1,1===b&&"in"===d.move&&(u=d.value),0===b&&(e.push({from:u,to:d.value,len:d.value-u-(d.size||0)}),g+=d.value-u-(d.size||0));c.breakArray=e;c.unitLength=m-t-g+h;w(c,"afterBreaks");c.transA=c.options.staticScale?c.options.staticScale:(m-c.min+h)/c.unitLength*c.transA;h&&(c.minPixelPadding=c.transA*c.minPointOffset);c.min=t;c.max=m})});A(l.prototype,"generatePoints",function(a){a.apply(this, | ||
F(arguments));var g=this.xAxis,b=this.yAxis,c=this.points,e,m=c.length,l=this.options.connectNulls,w;if(g&&b&&(g.options.breaks||b.options.breaks))for(;m--;)e=c[m],w=null===e.y&&!1===l,w||!g.isInAnyBreak(e.x,!0)&&!b.isInAnyBreak(e.y,!0)||(c.splice(m,1),this.data[m]&&this.data[m].destroyElements())});a.Series.prototype.drawBreaks=function(a,g){var b=this,c=b.points,e,m,l,v;a&&G(g,function(f){e=a.breakArray||[];m=a.isXAxis?a.min:x(b.options.threshold,a.min);G(c,function(d){v=x(d["stack"+f.toUpperCase()], | ||
d[f]);G(e,function(f){l=!1;if(m<f.from&&v>f.to||m>f.from&&v<f.from)l="pointBreak";else if(m<f.from&&v>f.from&&v<f.to||m>f.from&&v>f.to&&v<f.from)l="pointInBreak";l&&w(a,l,{point:d,brk:f})})})})};A(a.seriesTypes.column.prototype,"drawPoints",n);A(a.Series.prototype,"drawPoints",n)})(J);(function(a){var F=a.arrayMax,n=a.arrayMin,x=a.Axis,A=a.defaultPlotOptions,G=a.defined,B=a.each,I=a.extend,w=a.format,v=a.isNumber,l=a.merge,m=a.pick,g=a.Point,b=a.Tooltip,c=a.wrap,e=a.Series.prototype,q=e.processData, | ||
y=e.generatePoints,H=e.destroy,f={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y", | ||
"%Y","-%Y"]}},d={line:{},spline:{},area:{},areaspline:{},column:{approximation:"sum",groupPixelWidth:10},arearange:{approximation:"range"},areasplinerange:{approximation:"range"},columnrange:{approximation:"range",groupPixelWidth:10},candlestick:{approximation:"ohlc",groupPixelWidth:10},ohlc:{approximation:"ohlc",groupPixelWidth:5}},t=a.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day", | ||
[1]],["week",[1]],["month",[1,3,6]],["year",null]],D={sum:function(h){var a=h.length,f;if(!a&&h.hasNulls)f=null;else if(a)for(f=0;a--;)f+=h[a];return f},average:function(a){var h=a.length;a=D.sum(a);v(a)&&h&&(a/=h);return a},open:function(a){return a.length?a[0]:a.hasNulls?null:void 0},high:function(a){return a.length?F(a):a.hasNulls?null:void 0},low:function(a){return a.length?n(a):a.hasNulls?null:void 0},close:function(a){return a.length?a[a.length-1]:a.hasNulls?null:void 0},ohlc:function(a,f,d, | ||
k){a=D.open(a);f=D.high(f);d=D.low(d);k=D.close(k);if(v(a)||v(f)||v(d)||v(k))return[a,f,d,k]},range:function(a,f){a=D.low(a);f=D.high(f);if(v(a)||v(f))return[a,f]}};e.groupData=function(a,f,d,k){var h=this.data,p=this.options.data,r=[],u=[],c=[],E=a.length,b,e,g=!!f,m=[[],[],[],[]];k="function"===typeof k?k:D[k];var t=this.pointArrayMap,q=t&&t.length,l,w=0;for(l=e=0;l<=E&&!(a[l]>=d[0]);l++);for(l;l<=E;l++){for(;(void 0!==d[w+1]&&a[l]>=d[w+1]||l===E)&&(b=d[w],this.dataGroupInfo={start:e,length:m[0].length}, | ||
e=k.apply(this,m),void 0!==e&&(r.push(b),u.push(e),c.push(this.dataGroupInfo)),e=l,m[0]=[],m[1]=[],m[2]=[],m[3]=[],w+=1,l!==E););if(l===E)break;if(t){b=this.cropStart+l;b=h&&h[b]||this.pointClass.prototype.applyOptions.apply({series:this},[p[b]]);var B,y;for(B=0;B<q;B++)y=b[t[B]],v(y)?m[B].push(y):null===y&&(m[B].hasNulls=!0)}else b=g?f[l]:null,v(b)?m[0].push(b):null===b&&(m[0].hasNulls=!0)}return[r,u,c]};e.processData=function(){var a=this.chart,f=this.options.dataGrouping,d=!1!==this.allowDG&&f&& | ||
m(f.enabled,a.options.isStock),k=this.visible||!a.options.chart.ignoreHiddenSeries,c;this.forceCrop=d;this.groupPixelWidth=null;this.hasProcessed=!0;if(!1!==q.apply(this,arguments)&&d){this.destroyGroupedData();var p=this.processedXData,r=this.processedYData,C=a.plotSizeX,a=this.xAxis,b=a.options.ordinal,K=this.groupPixelWidth=a.getGroupPixelWidth&&a.getGroupPixelWidth();if(K){this.isDirty=c=!0;var g=a.getExtremes(),d=g.min,g=g.max,b=b&&a.getGroupIntervalFactor(d,g,this)||1,C=K*(g-d)/C*b,K=a.getTimeTicks(a.normalizeTimeTickInterval(C, | ||
f.units||t),Math.min(d,p[0]),Math.max(g,p[p.length-1]),a.options.startOfWeek,p,this.closestPointRange),p=e.groupData.apply(this,[p,r,K,f.approximation]),r=p[0],b=p[1];if(f.smoothed){f=r.length-1;for(r[f]=Math.min(r[f],g);f--&&0<f;)r[f]+=C/2;r[0]=Math.max(r[0],d)}this.currentDataGrouping=K.info;this.closestPointRange=K.info.totalRange;this.groupMap=p[2];G(r[0])&&r[0]<a.dataMin&&k&&(a.min===a.dataMin&&(a.min=r[0]),a.dataMin=r[0]);this.processedXData=r;this.processedYData=b}else this.currentDataGrouping= | ||
this.groupMap=null;this.hasGroupedData=c}};e.destroyGroupedData=function(){var a=this.groupedData;B(a||[],function(f,d){f&&(a[d]=f.destroy?f.destroy():null)});this.groupedData=null};e.generatePoints=function(){y.apply(this);this.destroyGroupedData();this.groupedData=this.hasGroupedData?this.points:null};c(g.prototype,"update",function(f){this.dataGroup?a.error(24):f.apply(this,[].slice.call(arguments,1))});c(b.prototype,"tooltipFooterHeaderFormatter",function(f,d,c){var h=d.series,b=h.tooltipOptions, | ||
p=h.options.dataGrouping,r=b.xDateFormat,C,u=h.xAxis,e=a.dateFormat;return u&&"datetime"===u.options.type&&p&&v(d.key)?(f=h.currentDataGrouping,p=p.dateTimeLabelFormats,f?(u=p[f.unitName],1===f.count?r=u[0]:(r=u[1],C=u[2])):!r&&p&&(r=this.getXDateFormat(d,b,u)),r=e(r,d.key),C&&(r+=e(C,d.key+f.totalRange-1)),w(b[(c?"footer":"header")+"Format"],{point:I(d.point,{key:r}),series:h})):f.call(this,d,c)});e.destroy=function(){for(var a=this.groupedData||[],f=a.length;f--;)a[f]&&a[f].destroy();H.apply(this)}; | ||
c(e,"setOptions",function(a,c){a=a.call(this,c);var h=this.type,k=this.chart.options.plotOptions,b=A[h].dataGrouping;d[h]&&(b||(b=l(f,d[h])),a.dataGrouping=l(b,k.series&&k.series.dataGrouping,k[h].dataGrouping,c.dataGrouping));this.chart.options.isStock&&(this.requireSorting=!0);return a});c(x.prototype,"setScale",function(a){a.call(this);B(this.series,function(a){a.hasProcessed=!1})});x.prototype.getGroupPixelWidth=function(){var a=this.series,f=a.length,d,c=0,b=!1,p;for(d=f;d--;)(p=a[d].options.dataGrouping)&& | ||
(c=Math.max(c,p.groupPixelWidth));for(d=f;d--;)(p=a[d].options.dataGrouping)&&a[d].hasProcessed&&(f=(a[d].processedXData||a[d].data).length,a[d].groupPixelWidth||f>this.chart.plotSizeX/c||f&&p.forced)&&(b=!0);return b?c:0};x.prototype.setDataGrouping=function(a,f){var d;f=m(f,!0);a||(a={forced:!1,units:null});if(this instanceof x)for(d=this.series.length;d--;)this.series[d].update({dataGrouping:a},!1);else B(this.chart.options.series,function(f){f.dataGrouping=a},!1);f&&this.chart.redraw()}})(J); | ||
(function(a){var F=a.each,n=a.Point,x=a.seriesType,A=a.seriesTypes;x("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\x3cspan style\x3d"color:{point.color}"\x3e\u25cf\x3c/span\x3e \x3cb\x3e {series.name}\x3c/b\x3e\x3cbr/\x3eOpen: {point.open}\x3cbr/\x3eHigh: {point.high}\x3cbr/\x3eLow: {point.low}\x3cbr/\x3eClose: {point.close}\x3cbr/\x3e'},threshold:null,states:{hover:{lineWidth:3}}},{pointArrayMap:["open","high","low","close"],toYData:function(a){return[a.open,a.high,a.low,a.close]},pointValKey:"high", | ||
pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointAttribs:function(a,B){B=A.column.prototype.pointAttribs.call(this,a,B);var n=this.options;delete B.fill;!a.options.color&&n.upColor&&a.open<a.close&&(B.stroke=n.upColor);return B},translate:function(){var a=this,B=a.yAxis,n=!!a.modifyValue,w=["plotOpen","yBottom","plotClose"];A.column.prototype.translate.apply(a);F(a.points,function(v){F([v.open,v.low,v.close],function(l,m){null!==l&&(n&&(l=a.modifyValue(l)),v[w[m]]=B.toPixels(l, | ||
!0))})})},drawPoints:function(){var a=this,B=a.chart;F(a.points,function(n){var w,v,l,m,g=n.graphic,b,c=!g;void 0!==n.plotY&&(g||(n.graphic=g=B.renderer.path().add(a.group)),g.attr(a.pointAttribs(n,n.selected&&"select")),v=g.strokeWidth()%2/2,b=Math.round(n.plotX)-v,l=Math.round(n.shapeArgs.width/2),m=["M",b,Math.round(n.yBottom),"L",b,Math.round(n.plotY)],null!==n.open&&(w=Math.round(n.plotOpen)+v,m.push("M",b,w,"L",b-l,w)),null!==n.close&&(w=Math.round(n.plotClose)+v,m.push("M",b,w,"L",b+l,w)), | ||
g[c?"attr":"animate"]({d:m}).addClass(n.getClassName(),!0))})},animate:null},{getClassName:function(){return n.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")}})})(J);(function(a){var F=a.defaultPlotOptions,n=a.each,x=a.merge,A=a.seriesType,G=a.seriesTypes;A("candlestick","ohlc",x(F.column,{states:{hover:{lineWidth:2}},tooltip:F.ohlc.tooltip,threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff"}),{pointAttribs:function(a,n){var w= | ||
G.column.prototype.pointAttribs.call(this,a,n),v=this.options,l=a.open<a.close,m=v.lineColor||this.color;w["stroke-width"]=v.lineWidth;w.fill=a.options.color||(l?v.upColor||this.color:this.color);w.stroke=a.lineColor||(l?v.upLineColor||m:m);n&&(a=v.states[n],w.fill=a.color||w.fill,w.stroke=a.lineColor||w.stroke,w["stroke-width"]=a.lineWidth||w["stroke-width"]);return w},drawPoints:function(){var a=this,x=a.chart;n(a.points,function(n){var v=n.graphic,l,m,g,b,c,e,q,y=!v;void 0!==n.plotY&&(v||(n.graphic= | ||
v=x.renderer.path().add(a.group)),v.attr(a.pointAttribs(n,n.selected&&"select")).shadow(a.options.shadow),c=v.strokeWidth()%2/2,e=Math.round(n.plotX)-c,l=n.plotOpen,m=n.plotClose,g=Math.min(l,m),l=Math.max(l,m),q=Math.round(n.shapeArgs.width/2),m=Math.round(g)!==Math.round(n.plotY),b=l!==n.yBottom,g=Math.round(g)+c,l=Math.round(l)+c,c=[],c.push("M",e-q,l,"L",e-q,g,"L",e+q,g,"L",e+q,l,"Z","M",e,g,"L",e,m?Math.round(n.plotY):g,"M",e,l,"L",e,b?Math.round(n.yBottom):l),v[y?"attr":"animate"]({d:c}).addClass(n.getClassName(), | ||
!0))})}})})(J);(function(a){var F=a.addEvent,n=a.each,x=a.merge,A=a.noop,G=a.Renderer,B=a.seriesType,I=a.seriesTypes,w=a.TrackerMixin,v=a.VMLRenderer,l=a.SVGRenderer.prototype.symbols;B("flags","column",{pointRange:0,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}\x3cbr/\x3e"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1, | ||
takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:a.Series.prototype.init,pointAttribs:function(a,g){var b=this.options,c=a&&a.color||this.color,e=b.lineColor,m=a&&a.lineWidth;a=a&&a.fillColor||b.fillColor;g&&(a=b.states[g].fillColor,e=b.states[g].lineColor,m=b.states[g].lineWidth);return{fill:a||c,stroke:e||c,"stroke-width":m||b.lineWidth||0}},translate:function(){I.column.prototype.translate.apply(this);var a=this.options,g=this.chart,b=this.points,c=b.length-1,e,q,l=a.onSeries; | ||
e=l&&g.get(l);var a=a.onKey||"y",l=e&&e.options.step,v=e&&e.points,f=v&&v.length,d=this.xAxis,t=d.getExtremes(),D=0,h,u,E;if(e&&e.visible&&f)for(D=(e.pointXOffset||0)+(e.barW||0)/2,e=e.currentDataGrouping,u=v[f-1].x+(e?e.totalRange:0),b.sort(function(a,f){return a.x-f.x}),a="plot"+a[0].toUpperCase()+a.substr(1);f--&&b[c]&&!(e=b[c],h=v[f],h.x<=e.x&&void 0!==h[a]&&(e.x<=u&&(e.plotY=h[a],h.x<e.x&&!l&&(E=v[f+1])&&void 0!==E[a]&&(e.plotY+=(e.x-h.x)/(E.x-h.x)*(E[a]-h[a]))),c--,f++,0>c)););n(b,function(a, | ||
f){var p;void 0===a.plotY&&(a.x>=t.min&&a.x<=t.max?a.plotY=g.chartHeight-d.bottom-(d.opposite?d.height:0)+d.offset-g.plotTop:a.shapeArgs={});a.plotX+=D;(q=b[f-1])&&q.plotX===a.plotX&&(void 0===q.stackIndex&&(q.stackIndex=0),p=q.stackIndex+1);a.stackIndex=p})},drawPoints:function(){var a=this.points,g=this.chart,b=g.renderer,c,e,l=this.options,n=l.y,v,f,d,t,D,h,u,E=this.yAxis;for(f=a.length;f--;)d=a[f],u=d.plotX>this.xAxis.len,c=d.plotX,t=d.stackIndex,v=d.options.shape||l.shape,e=d.plotY,void 0!== | ||
e&&(e=d.plotY+n-(void 0!==t&&t*l.stackDistance)),D=t?void 0:d.plotX,h=t?void 0:d.plotY,t=d.graphic,void 0!==e&&0<=c&&!u?(t||(t=d.graphic=b.label("",null,null,v,null,null,l.useHTML).attr(this.pointAttribs(d)).css(x(l.style,d.style)).attr({align:"flag"===v?"left":"center",width:l.width,height:l.height,"text-align":l.textAlign}).addClass("highcharts-point").add(this.markerGroup),t.shadow(l.shadow)),0<c&&(c-=t.strokeWidth()%2),t.attr({text:d.options.title||l.title||"A",x:c,y:e,anchorX:D,anchorY:h}),d.tooltipPos= | ||
g.inverted?[E.len+E.pos-g.plotLeft-e,this.xAxis.len-c]:[c,e+E.pos-g.plotTop]):t&&(d.graphic=t.destroy())},drawTracker:function(){var a=this.points;w.drawTrackerPoint.apply(this);n(a,function(g){var b=g.graphic;b&&F(b.element,"mouseover",function(){0<g.stackIndex&&!g.raised&&(g._y=b.y,b.attr({y:g._y-8}),g.raised=!0);n(a,function(a){a!==g&&a.raised&&a.graphic&&(a.graphic.attr({y:a._y}),a.raised=!1)})})})},animate:A,buildKDTree:A,setClip:A});l.flag=function(a,g,b,c,e){return["M",e&&e.anchorX||a,e&&e.anchorY|| | ||
g,"L",a,g+c,a,g,a+b,g,a+b,g+c,a,g+c,"Z"]};n(["circle","square"],function(a){l[a+"pin"]=function(g,b,c,e,m){var n=m&&m.anchorX;m=m&&m.anchorY;"circle"===a&&e>c&&(g-=Math.round((e-c)/2),c=e);g=l[a](g,b,c,e);n&&m&&g.push("M",n,b>m?b:b+e,"L",n,m);return g}});G===v&&n(["flag","circlepin","squarepin"],function(a){v.prototype.symbols[a]=l[a]})})(J);(function(a){function F(a,d,c){this.init(a,d,c)}var n=a.addEvent,x=a.Axis,A=a.correctFloat,G=a.defaultOptions,B=a.defined,I=a.destroyObjectProperties,w=a.doc, | ||
v=a.each,l=a.fireEvent,m=a.hasTouch,g=a.isTouchDevice,b=a.merge,c=a.pick,e=a.removeEvent,q=a.wrap,y,H={height:g?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:a.svg&&!g,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1};G.scrollbar= | ||
b(!0,H,G.scrollbar);a.swapXY=y=function(a,d){var f=a.length,c;if(d)for(d=0;d<f;d+=3)c=a[d+1],a[d+1]=a[d+2],a[d+2]=c;return a};F.prototype={init:function(a,d,e){this.scrollbarButtons=[];this.renderer=a;this.userOptions=d;this.options=b(H,d);this.chart=e;this.size=c(this.options.size,this.options.height);d.enabled&&(this.render(),this.initEvents(),this.addEvents())},render:function(){var a=this.renderer,d=this.options,c=this.size,b;this.group=b=a.g("scrollbar").attr({zIndex:d.zIndex,translateY:-99999}).add(); | ||
this.track=a.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:d.trackBorderRadius||0,height:c,width:c}).add(b);this.track.attr({fill:d.trackBackgroundColor,stroke:d.trackBorderColor,"stroke-width":d.trackBorderWidth});this.trackBorderWidth=this.track.strokeWidth();this.track.attr({y:-this.trackBorderWidth%2/2});this.scrollbarGroup=a.g().add(b);this.scrollbar=a.rect().addClass("highcharts-scrollbar-thumb").attr({height:c,width:c,r:d.barBorderRadius||0}).add(this.scrollbarGroup);this.scrollbarRifles= | ||
a.path(y(["M",-3,c/4,"L",-3,2*c/3,"M",0,c/4,"L",0,2*c/3,"M",3,c/4,"L",3,2*c/3],d.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup);this.scrollbar.attr({fill:d.barBackgroundColor,stroke:d.barBorderColor,"stroke-width":d.barBorderWidth});this.scrollbarRifles.attr({stroke:d.rifleColor,"stroke-width":1});this.scrollbarStrokeWidth=this.scrollbar.strokeWidth();this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2);this.drawScrollbarButton(0); | ||
this.drawScrollbarButton(1)},position:function(a,d,c,b){var f=this.options.vertical,e=0,g=this.rendered?"animate":"attr";this.x=a;this.y=d+this.trackBorderWidth;this.width=c;this.xOffset=this.height=b;this.yOffset=e;f?(this.width=this.yOffset=c=e=this.size,this.xOffset=d=0,this.barWidth=b-2*c,this.x=a+=this.options.margin):(this.height=this.xOffset=b=d=this.size,this.barWidth=c-2*b,this.y+=this.options.margin);this.group[g]({translateX:a,translateY:this.y});this.track[g]({width:c,height:b});this.scrollbarButtons[1][g]({translateX:f? | ||
0:c-d,translateY:f?b-e:0})},drawScrollbarButton:function(a){var f=this.renderer,c=this.scrollbarButtons,b=this.options,h=this.size,e;e=f.g().add(this.group);c.push(e);e=f.rect().addClass("highcharts-scrollbar-button").add(e);e.attr({stroke:b.buttonBorderColor,"stroke-width":b.buttonBorderWidth,fill:b.buttonBackgroundColor});e.attr(e.crisp({x:-.5,y:-.5,width:h+1,height:h+1,r:b.buttonBorderRadius},e.strokeWidth()));e=f.path(y(["M",h/2+(a?-1:1),h/2-3,"L",h/2+(a?-1:1),h/2+3,"L",h/2+(a?2:-2),h/2],b.vertical)).addClass("highcharts-scrollbar-arrow").add(c[a]); | ||
e.attr({fill:b.buttonArrowColor})},setRange:function(a,d){var f=this.options,c=f.vertical,b=f.minWidth,e=this.barWidth,g,k,z=this.rendered&&!this.hasDragged?"animate":"attr";B(e)&&(a=Math.max(a,0),g=e*a,this.calculatedWidth=k=A(e*Math.min(d,1)-g),k<b&&(g=(e-b+k)*a,k=b),b=Math.floor(g+this.xOffset+this.yOffset),e=k/2-.5,this.from=a,this.to=d,c?(this.scrollbarGroup[z]({translateY:b}),this.scrollbar[z]({height:k}),this.scrollbarRifles[z]({translateY:e}),this.scrollbarTop=b,this.scrollbarLeft=0):(this.scrollbarGroup[z]({translateX:b}), | ||
this.scrollbar[z]({width:k}),this.scrollbarRifles[z]({translateX:e}),this.scrollbarLeft=b,this.scrollbarTop=0),12>=k?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===f.showFull&&(0>=a&&1<=d?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var a=this;a.mouseMoveHandler=function(d){var c=a.chart.pointer.normalize(d),b=a.options.vertical?"chartY":"chartX",f=a.initPositions;!a.grabbedCenter||d.touches&&0===d.touches[0][b]||(c=a.cursorToScrollbarPosition(c)[b], | ||
b=a[b],b=c-b,a.hasDragged=!0,a.updatePosition(f[0]+b,f[1]+b),a.hasDragged&&l(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:d.type,DOMEvent:d}))};a.mouseUpHandler=function(d){a.hasDragged&&l(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMType:d.type,DOMEvent:d});a.grabbedCenter=a.hasDragged=a.chartX=a.chartY=null};a.mouseDownHandler=function(d){d=a.chart.pointer.normalize(d);d=a.cursorToScrollbarPosition(d);a.chartX=d.chartX;a.chartY=d.chartY;a.initPositions=[a.from,a.to];a.grabbedCenter= | ||
!0};a.buttonToMinClick=function(d){var c=A(a.to-a.from)*a.options.step;a.updatePosition(A(a.from-c),A(a.to-c));l(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:d})};a.buttonToMaxClick=function(d){var c=(a.to-a.from)*a.options.step;a.updatePosition(a.from+c,a.to+c);l(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:d})};a.trackClick=function(d){var c=a.chart.pointer.normalize(d),b=a.to-a.from,f=a.y+a.scrollbarTop,e=a.x+a.scrollbarLeft;a.options.vertical&&c.chartY>f||!a.options.vertical&& | ||
c.chartX>e?a.updatePosition(a.from+b,a.to+b):a.updatePosition(a.from-b,a.to-b);l(a,"changed",{from:a.from,to:a.to,trigger:"scrollbar",DOMEvent:d})}},cursorToScrollbarPosition:function(a){var d=this.options,d=d.minWidth>this.calculatedWidth?d.minWidth:0;return{chartX:(a.chartX-this.x-this.xOffset)/(this.barWidth-d),chartY:(a.chartY-this.y-this.yOffset)/(this.barWidth-d)}},updatePosition:function(a,d){1<d&&(a=A(1-A(d-a)),d=1);0>a&&(d=A(d-a),a=0);this.from=a;this.to=d},update:function(a){this.destroy(); | ||
this.init(this.chart.renderer,b(!0,this.options,a),this.chart)},addEvents:function(){var a=this.options.inverted?[1,0]:[0,1],d=this.scrollbarButtons,c=this.scrollbarGroup.element,b=this.mouseDownHandler,e=this.mouseMoveHandler,g=this.mouseUpHandler,a=[[d[a[0]].element,"click",this.buttonToMinClick],[d[a[1]].element,"click",this.buttonToMaxClick],[this.track.element,"click",this.trackClick],[c,"mousedown",b],[w,"mousemove",e],[w,"mouseup",g]];m&&a.push([c,"touchstart",b],[w,"touchmove",e],[w,"touchend", | ||
g]);v(a,function(a){n.apply(null,a)});this._events=a},removeEvents:function(){v(this._events,function(a){e.apply(null,a)});this._events=void 0},destroy:function(){var a=this.chart.scroller;this.removeEvents();v(["track","scrollbarRifles","scrollbar","scrollbarGroup","group"],function(a){this[a]&&this[a].destroy&&(this[a]=this[a].destroy())},this);a&&this===a.scrollbar&&(a.scrollbar=null,I(a.scrollbarButtons))}};q(x.prototype,"init",function(a){var d=this;a.apply(d,[].slice.call(arguments,1));d.options.scrollbar&& | ||
d.options.scrollbar.enabled&&(d.options.scrollbar.vertical=!d.horiz,d.options.startOnTick=d.options.endOnTick=!1,d.scrollbar=new F(d.chart.renderer,d.options.scrollbar,d.chart),n(d.scrollbar,"changed",function(a){var b=Math.min(c(d.options.min,d.min),d.min,d.dataMin),e=Math.max(c(d.options.max,d.max),d.max,d.dataMax)-b,f;d.horiz&&!d.reversed||!d.horiz&&d.reversed?(f=b+e*this.to,b+=e*this.from):(f=b+e*(1-this.from),b+=e*(1-this.to));d.setExtremes(b,f,!0,!1,a)}))});q(x.prototype,"render",function(a){var b= | ||
Math.min(c(this.options.min,this.min),this.min,this.dataMin),e=Math.max(c(this.options.max,this.max),this.max,this.dataMax),f=this.scrollbar,h;a.apply(this,[].slice.call(arguments,1));f&&(this.horiz?f.position(this.left,this.top+this.height+this.offset+2+(this.opposite?0:this.axisTitleMargin),this.width,this.height):f.position(this.left+this.width+2+this.offset+(this.opposite?this.axisTitleMargin:0),this.top,this.width,this.height),isNaN(b)||isNaN(e)||!B(this.min)||!B(this.max)?f.setRange(0,0):(h= | ||
(this.min-b)/(e-b),b=(this.max-b)/(e-b),this.horiz&&!this.reversed||!this.horiz&&this.reversed?f.setRange(h,b):f.setRange(1-b,1-h)))});q(x.prototype,"getOffset",function(a){var b=this.horiz?2:1,c=this.scrollbar;a.apply(this,[].slice.call(arguments,1));c&&(this.chart.axisOffset[b]+=c.size+c.options.margin)});q(x.prototype,"destroy",function(a){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy());a.apply(this,[].slice.call(arguments,1))});a.Scrollbar=F})(J);(function(a){function F(a){this.init(a)} | ||
var n=a.addEvent,x=a.Axis,A=a.Chart,G=a.color,B=a.defaultOptions,I=a.defined,w=a.destroyObjectProperties,v=a.doc,l=a.each,m=a.erase,g=a.error,b=a.extend,c=a.grep,e=a.hasTouch,q=a.isNumber,y=a.isObject,H=a.merge,f=a.pick,d=a.removeEvent,t=a.Scrollbar,D=a.Series,h=a.seriesTypes,u=a.wrap,E=a.swapXY,k=[].concat(a.defaultDataGroupingUnits),z=function(a){var p=c(arguments,q);if(p.length)return Math[a].apply(0,p)};k[4]=["day",[1,2,3,4]];k[5]=["week",[1,2,3]];h=void 0===h.areaspline?"line":"areaspline";b(B, | ||
{navigator:{height:40,margin:25,maskInside:!0,handles:{backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:G("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:h,color:"#335cad",fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:k},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},pointRange:0,shadow:!1, | ||
threshold:null},xAxis:{className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}});F.prototype={drawHandle:function(a,r,b,c){this.handles[r][c](b?{translateX:Math.round(this.left+ | ||
this.height/2-8),translateY:Math.round(this.top+parseInt(a,10)+.5)}:{translateX:Math.round(this.left+parseInt(a,10)),translateY:Math.round(this.top+this.height/2-8)})},getHandlePath:function(a){return E(["M",-4.5,.5,"L",3.5,.5,"L",3.5,15.5,"L",-4.5,15.5,"L",-4.5,.5,"M",-1.5,4,"L",-1.5,12,"M",.5,4,"L",.5,12],a)},drawOutline:function(a,b,c,d){var p=this.navigatorOptions.maskInside,r=this.outline.strokeWidth(),e=r/2,r=r%2/2,f=this.outlineHeight,C=this.scrollbarHeight,h=this.size,k=this.left-C,g=this.top; | ||
c?(k-=e,c=g+b+r,b=g+a+r,a=["M",k+f,g-C-r,"L",k+f,c,"L",k,c,"L",k,b,"L",k+f,b,"L",k+f,g+h+C].concat(p?["M",k+f,c-e,"L",k+f,b+e]:[])):(a+=k+C-r,b+=k+C-r,g+=e,a=["M",k,g,"L",a,g,"L",a,g+f,"L",b,g+f,"L",b,g,"L",k+h+2*C,g].concat(p?["M",a-e,g,"L",b+e,g]:[]));this.outline[d]({d:a})},drawMasks:function(a,b,c,d){var p=this.left,r=this.top,e=this.height,f,C,k,h;c?(k=[p,p,p],h=[r,r+a,r+b],C=[e,e,e],f=[a,b-a,this.size-b]):(k=[p,p+a,p+b],h=[r,r,r],C=[a,b-a,this.size-b],f=[e,e,e]);l(this.shades,function(a,p){a[d]({x:k[p], | ||
y:h[p],width:C[p],height:f[p]})})},renderElements:function(){var a=this,b=a.navigatorOptions,c=b.maskInside,d=a.chart,e=d.inverted,f=d.renderer,k;a.navigatorGroup=k=f.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();var h={cursor:e?"ns-resize":"ew-resize"};l([!c,c,!c],function(p,c){a.shades[c]=f.rect().addClass("highcharts-navigator-mask"+(1===c?"-inside":"-outside")).attr({fill:p?b.maskFill:"transparent"}).css(1===c&&h).add(k)});a.outline=f.path().addClass("highcharts-navigator-outline").attr({"stroke-width":b.outlineWidth, | ||
stroke:b.outlineColor}).add(k);l([0,1],function(p){a.handles[p]=f.path(a.getHandlePath(e)).attr({zIndex:7-p}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][p]).add(k);var c=b.handles;a.handles[p].attr({fill:c.backgroundColor,stroke:c.borderColor,"stroke-width":1}).css(h)})},update:function(a){this.destroy();H(!0,this.chart.options.navigator,this.options,a);this.init(this.chart)},render:function(a,b,c,d){var p=this.chart,r,e,k=this.scrollbarHeight,h,g=this.xAxis; | ||
r=this.navigatorEnabled;var C,z=this.rendered;e=p.inverted;var u=p.xAxis[0].minRange;if(!this.hasDragged||I(c)){if(!q(a)||!q(b))if(z)c=0,d=g.width;else return;this.left=f(g.left,p.plotLeft+k+(e?p.plotWidth:0));this.size=C=h=f(g.len,(e?p.plotHeight:p.plotWidth)-2*k);p=e?k:h+2*k;c=f(c,g.toPixels(a,!0));d=f(d,g.toPixels(b,!0));q(c)&&Infinity!==Math.abs(c)||(c=0,d=p);a=g.toValue(c,!0);b=g.toValue(d,!0);if(Math.abs(b-a)<u)if(this.grabbedLeft)c=g.toPixels(b-u,!0);else if(this.grabbedRight)d=g.toPixels(a+ | ||
u,!0);else return;this.zoomedMax=Math.min(Math.max(c,d,0),C);this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(c,d),0),C);this.range=this.zoomedMax-this.zoomedMin;C=Math.round(this.zoomedMax);c=Math.round(this.zoomedMin);r&&(this.navigatorGroup.attr({visibility:"visible"}),z=z&&!this.hasDragged?"animate":"attr",this.drawMasks(c,C,e,z),this.drawOutline(c,C,e,z),this.drawHandle(c,0,e,z),this.drawHandle(C,1,e,z));this.scrollbar&&(e?(e=this.top-k,r=this.left-k+(r? | ||
0:this.height),k=h+2*k):(e=this.top+(r?this.height:-k),r=this.left-k),this.scrollbar.position(r,e,p,k),this.scrollbar.setRange(c/h,C/h));this.rendered=!0}},addMouseEvents:function(){var a=this,b=a.chart,c=b.container,d=[],f,k,h=e?["touchstart","touchmove","touchend"]:["mousedown","mousemove","mouseup"];a.mouseMoveHandler=f=function(p){a.onMouseMove(p)};a.mouseUpHandler=k=function(p){a.onMouseUp(p)};d=a.getPartsEvents(h[0]);d.push(n(c,h[1],f),n(v,h[2],k));a.eventsToUnbind=d;a.series&&a.series[0]&& | ||
d.push(n(a.series[0].xAxis,"foundExtremes",function(){b.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(a){var p=this,b=[];l(["shades","handles"],function(c){l(p[c],function(d,r){b.push(n(d.element,a,function(a){p[c+"Mousedown"](a,r)}))})});return b},shadesMousedown:function(a,b){a=this.chart.pointer.normalize(a);var c=this.chart,p=this.xAxis,d=this.zoomedMin,r=this.left,e=this.size,f=this.range,k=a.chartX,h;c.inverted&&(k=a.chartY,r=this.top);1===b?(this.grabbedCenter=k,this.fixedWidth= | ||
f,this.dragOffset=k-d):(a=k-r-f/2,0===b?a=Math.max(0,a):2===b&&a+f>=e&&(a=e-f,h=this.getUnionExtremes().dataMax),a!==d&&(this.fixedWidth=f,b=p.toFixedRange(a,a+f,null,h),c.xAxis[0].setExtremes(Math.min(b.min,b.max),Math.max(b.min,b.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(a,b){this.chart.pointer.normalize(a);a=this.chart;var c=a.xAxis[0],p=a.inverted&&!c.reversed||!a.inverted&&c.reversed;0===b?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=p?c.min: | ||
c.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=p?c.max:c.min);a.fixedRange=null},onMouseMove:function(a){var b=this,c=b.chart,p=b.left,d=b.navigatorSize,e=b.range,f=b.dragOffset,k=c.inverted;a.touches&&0===a.touches[0].pageX||(a=c.pointer.normalize(a),c=a.chartX,k&&(p=b.top,c=a.chartY),b.grabbedLeft?(b.hasDragged=!0,b.render(0,0,c-p,b.otherHandlePos)):b.grabbedRight?(b.hasDragged=!0,b.render(0,0,b.otherHandlePos,c-p)):b.grabbedCenter&&(b.hasDragged=!0,c<f?c=f:c> | ||
d+f-e&&(c=d+f-e),b.render(0,0,c-f,c-f+e)),b.hasDragged&&b.scrollbar&&b.scrollbar.options.liveRedraw&&(a.DOMType=a.type,setTimeout(function(){b.onMouseUp(a)},0)))},onMouseUp:function(a){var b=this.chart,c=this.xAxis,p=this.scrollbar,d,e,f=a.DOMEvent||a;(!this.hasDragged||p&&p.hasDragged)&&"scrollbar"!==a.trigger||(this.zoomedMin===this.otherHandlePos?d=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(e=this.fixedExtreme),this.zoomedMax===this.size&&(e=this.getUnionExtremes().dataMax),c=c.toFixedRange(this.zoomedMin, | ||
this.zoomedMax,d,e),I(c.min)&&b.xAxis[0].setExtremes(Math.min(c.min,c.max),Math.max(c.min,c.max),!0,this.hasDragged?!1:null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:f}));"mousemove"!==a.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(l(this.eventsToUnbind,function(a){a()}),this.eventsToUnbind=void 0);this.removeBaseSeriesEvents()}, | ||
removeBaseSeriesEvents:function(){var a=this.baseSeries||[];this.navigatorEnabled&&a[0]&&!1!==this.navigatorOptions.adaptToUpdatedData&&(l(a,function(a){d(a,"updatedData",this.updatedDataHandler)},this),a[0].xAxis&&d(a[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(a){var b=a.options,c=b.navigator,d=c.enabled,e=b.scrollbar,p=e.enabled,b=d?c.height:0,k=p?e.height:0;this.handles=[];this.shades=[];this.chart=a;this.setBaseSeries();this.height=b;this.scrollbarHeight=k;this.scrollbarEnabled= | ||
p;this.navigatorEnabled=d;this.navigatorOptions=c;this.scrollbarOptions=e;this.outlineHeight=b+k;this.opposite=f(c.opposite,!d&&a.inverted);var h=this,e=h.baseSeries,p=a.xAxis.length,g=a.yAxis.length,E=e&&e[0]&&e[0].xAxis||a.xAxis[0];a.extraMargin={type:h.opposite?"plotTop":"marginBottom",value:(d||!a.inverted?h.outlineHeight:0)+c.margin};a.inverted&&(a.extraMargin.type=h.opposite?"marginRight":"plotLeft");a.isDirtyBox=!0;h.navigatorEnabled?(h.xAxis=new x(a,H({breaks:E.options.breaks,ordinal:E.options.ordinal}, | ||
c.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:p,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},a.inverted?{offsets:[k,0,-k,0],width:b}:{offsets:[0,-k,0,k],height:b})),h.yAxis=new x(a,H(c.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:g,zoomEnabled:!1},a.inverted?{width:b}:{height:b})),e||c.series.data?h.addBaseSeries():0===a.series.length&&u(a,"redraw",function(b,c){0<a.series.length&&!h.series&& | ||
(h.setBaseSeries(),a.redraw=b);b.call(a,c)}),h.renderElements(),h.addMouseEvents()):h.xAxis={translate:function(b,c){var d=a.xAxis[0],e=d.getExtremes(),p=d.len-2*k,f=z("min",d.options.min,e.dataMin),d=z("max",d.options.max,e.dataMax)-f;return c?b*d/p+f:p*(b-f)/d},toPixels:function(a){return this.translate(a)},toValue:function(a){return this.translate(a,!0)},toFixedRange:x.prototype.toFixedRange,fake:!0};a.options.scrollbar.enabled&&(a.scrollbar=h.scrollbar=new t(a.renderer,H(a.options.scrollbar,{margin:h.navigatorEnabled? | ||
0:10,vertical:a.inverted}),a),n(h.scrollbar,"changed",function(b){var c=h.size,d=c*this.to,c=c*this.from;h.hasDragged=h.scrollbar.hasDragged;h.render(0,0,c,d);(a.options.scrollbar.liveRedraw||"mousemove"!==b.DOMType)&&setTimeout(function(){h.onMouseUp(b)})}));h.addBaseSeriesEvents();h.addChartEvents()},getUnionExtremes:function(a){var b=this.chart.xAxis[0],c=this.xAxis,d=c.options,e=b.options,p;a&&null===b.dataMin||(p={dataMin:f(d&&d.min,z("min",e.min,b.dataMin,c.dataMin,c.min)),dataMax:f(d&&d.max, | ||
z("max",e.max,b.dataMax,c.dataMax,c.max))});return p},setBaseSeries:function(a){var b=this.chart,c;a=a||b.options&&b.options.navigator.baseSeries||0;this.series&&(this.removeBaseSeriesEvents(),l(this.series,function(a){a.destroy()}));c=this.baseSeries=[];l(b.series||[],function(b,d){(b.options.showInNavigator||(d===a||b.options.id===a)&&!1!==b.options.showInNavigator)&&c.push(b)});this.xAxis&&!this.xAxis.fake&&this.addBaseSeries()},addBaseSeries:function(){var a=this,b=a.chart,c=a.series=[],d=a.baseSeries, | ||
e,f,h=a.navigatorOptions.series,k,g={enableMouseTracking:!1,index:null,group:"nav",padXAxis:!1,xAxis:"navigator-x-axis",yAxis:"navigator-y-axis",showInLegend:!1,stacking:!1,isInternal:!0,visible:!0};d?l(d,function(d,p){g.name="Navigator "+(p+1);e=d.options||{};k=e.navigatorOptions||{};f=H(e,g,h,k);p=k.data||h.data;a.hasNavigatorData=a.hasNavigatorData||!!p;f.data=p||e.data&&e.data.slice(0);d.navigatorSeries=b.initSeries(f);c.push(d.navigatorSeries)}):(f=H(h,g),f.data=h.data,a.hasNavigatorData=!!f.data, | ||
c.push(b.initSeries(f)));this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var a=this,b=a.baseSeries||[];b[0]&&b[0].xAxis&&n(b[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes);!1!==this.navigatorOptions.adaptToUpdatedData&&l(b,function(b){b.xAxis&&n(b,"updatedData",this.updatedDataHandler);n(b,"remove",function(){this.navigatorSeries&&(m(a.series,this.navigatorSeries),this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var a= | ||
this.xAxis,b;a.getExtremes&&(!(b=this.getUnionExtremes(!0))||b.dataMin===a.min&&b.dataMax===a.max||(a.min=b.dataMin,a.max=b.dataMax))},modifyBaseAxisExtremes:function(){var a=this.chart.navigator,b=this.getExtremes(),c=b.dataMin,d=b.dataMax,b=b.max-b.min,e=a.stickToMin,f=a.stickToMax,h,k,g=a.series&&a.series[0],z=!!this.setExtremes;this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger||(e&&(k=c,h=k+b),f&&(h=d,e||(k=Math.max(h-b,g&&g.xData?g.xData[0]:-Number.MAX_VALUE))),z&&(e||f)&&q(k)&& | ||
(this.min=this.userMin=k,this.max=this.userMax=h));a.stickToMin=a.stickToMax=null},updatedDataHandler:function(){var a=this.chart.navigator,b=this.navigatorSeries;a.stickToMin=q(this.xAxis.min)&&this.xAxis.min<=this.xData[0];a.stickToMax=Math.round(a.zoomedMax)>=Math.round(a.size);b&&!a.hasNavigatorData&&(b.options.pointStart=this.xData[0],b.setData(this.options.data,!1,null,!1))},addChartEvents:function(){n(this.chart,"redraw",function(){var a=this.navigator,b=a&&(a.baseSeries&&a.baseSeries[0]&& | ||
a.baseSeries[0].xAxis||a.scrollbar&&this.xAxis[0]);b&&a.render(b.min,b.max)})},destroy:function(){this.removeEvents();this.xAxis&&(m(this.chart.xAxis,this.xAxis),m(this.chart.axes,this.xAxis));this.yAxis&&(m(this.chart.yAxis,this.yAxis),m(this.chart.axes,this.yAxis));l(this.series||[],function(a){a.destroy&&a.destroy()});l("series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" "),function(a){this[a]&&this[a].destroy&&this[a].destroy(); | ||
this[a]=null},this);l([this.handles],function(a){w(a)},this)}};a.Navigator=F;u(x.prototype,"zoom",function(a,b,c){var d=this.chart,e=d.options,f=e.chart.zoomType,h=e.navigator,e=e.rangeSelector,k;this.isXAxis&&(h&&h.enabled||e&&e.enabled)&&("x"===f?d.resetZoomButton="blocked":"y"===f?k=!1:"xy"===f&&(d=this.previousZoom,I(b)?this.previousZoom=[this.min,this.max]:d&&(b=d[0],c=d[1],delete this.previousZoom)));return void 0!==k?k:a.call(this,b,c)});u(A.prototype,"init",function(a,b,c){n(this,"beforeRender", | ||
function(){var a=this.options;if(a.navigator.enabled||a.scrollbar.enabled)this.scroller=this.navigator=new F(this)});a.call(this,b,c)});u(A.prototype,"setChartSize",function(a){var b=this.legend,c=this.navigator,d,e,k,h;a.apply(this,[].slice.call(arguments,1));c&&(e=b.options,k=c.xAxis,h=c.yAxis,d=c.scrollbarHeight,this.inverted?(c.left=c.opposite?this.chartWidth-d-c.height:this.spacing[3]+d,c.top=this.plotTop+d):(c.left=this.plotLeft+d,c.top=c.navigatorOptions.top||this.chartHeight-c.height-d-this.spacing[2]- | ||
("bottom"===e.verticalAlign&&e.enabled&&!e.floating?b.legendHeight+f(e.margin,10):0)),k&&h&&(this.inverted?k.options.left=h.options.left=c.left:k.options.top=h.options.top=c.top,k.setAxisSize(),h.setAxisSize()))});u(D.prototype,"addPoint",function(a,b,c,d,e){var f=this.options.turboThreshold;f&&this.xData.length>f&&y(b,!0)&&this.chart.navigator&&g(20,!0);a.call(this,b,c,d,e)});u(A.prototype,"addSeries",function(a,b,c,d){a=a.call(this,b,!1,d);this.navigator&&this.navigator.setBaseSeries();f(c,!0)&& | ||
this.redraw();return a});u(D.prototype,"update",function(a,b,c){a.call(this,b,!1);this.chart.navigator&&this.chart.navigator.setBaseSeries();f(c,!0)&&this.chart.redraw()});A.prototype.callbacks.push(function(a){var b=a.navigator;b&&(a=a.xAxis[0].getExtremes(),b.render(a.min,a.max))})})(J);(function(a){function F(a){this.init(a)}var n=a.addEvent,x=a.Axis,A=a.Chart,G=a.css,B=a.createElement,I=a.dateFormat,w=a.defaultOptions,v=w.global.useUTC,l=a.defined,m=a.destroyObjectProperties,g=a.discardElement, | ||
b=a.each,c=a.extend,e=a.fireEvent,q=a.Date,y=a.isNumber,H=a.merge,f=a.pick,d=a.pInt,t=a.splat,D=a.wrap;c(w,{rangeSelector:{buttonTheme:{"stroke-width":0,width:28,height:18,padding:2,zIndex:7},height:35,inputPosition:{align:"right"},labelStyle:{color:"#666666"}}});w.lang=H(w.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"});F.prototype={clickButton:function(a,c){var d=this,e=d.chart,h=d.buttonOptions[a],g=e.xAxis[0],r=e.scroller&&e.scroller.getUnionExtremes()||g||{},u= | ||
r.dataMin,l=r.dataMax,m,q=g&&Math.round(Math.min(g.max,f(l,g.max))),w=h.type,B,r=h._range,L,M,N,A=h.dataGrouping;if(null!==u&&null!==l){e.fixedRange=r;A&&(this.forcedDataGrouping=!0,x.prototype.setDataGrouping.call(g||{chart:this.chart},A,!1));if("month"===w||"year"===w)g?(w={range:h,max:q,dataMin:u,dataMax:l},m=g.minFromRange.call(w),y(w.newMax)&&(q=w.newMax)):r=h;else if(r)m=Math.max(q-r,u),q=Math.min(m+r,l);else if("ytd"===w)if(g)void 0===l&&(u=Number.MAX_VALUE,l=Number.MIN_VALUE,b(e.series,function(a){a= | ||
a.xData;u=Math.min(a[0],u);l=Math.max(a[a.length-1],l)}),c=!1),q=d.getYTDExtremes(l,u,v),m=L=q.min,q=q.max;else{n(e,"beforeRender",function(){d.clickButton(a)});return}else"all"===w&&g&&(m=u,q=l);d.setSelected(a);g?g.setExtremes(m,q,f(c,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:h}):(B=t(e.options.xAxis)[0],N=B.range,B.range=r,M=B.min,B.min=L,n(e,"load",function(){B.range=N;B.min=M}))}},setSelected:function(a){this.selected=this.options.selected=a},defaultButtons:[{type:"month",count:1, | ||
text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(a){var c=this,d=a.options.rangeSelector,f=d.buttons||[].concat(c.defaultButtons),h=d.selected,g=function(){var a=c.minInput,b=c.maxInput;a&&a.blur&&e(a,"blur");b&&b.blur&&e(b,"blur")};c.chart=a;c.options=d;c.buttons=[];a.extraTopMargin=d.height;c.buttonOptions=f;this.unMouseDown=n(a.container,"mousedown",g);this.unResize=n(a,"resize", | ||
g);b(f,c.computeButtonRange);void 0!==h&&f[h]&&this.clickButton(h,!1);n(a,"load",function(){n(a.xAxis[0],"setExtremes",function(b){this.max-this.min!==a.fixedRange&&"rangeSelectorButton"!==b.trigger&&"updatedData"!==b.trigger&&c.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var a=this.chart,c=a.xAxis[0],d=Math.round(c.max-c.min),e=!c.hasVisibleSeries,a=a.scroller&&a.scroller.getUnionExtremes()||c,f=a.dataMin,g=a.dataMax,a=this.getYTDExtremes(g,f,v),r=a.min,l=a.max, | ||
m=this.selected,n=y(m),q=this.options.allButtonsEnabled,t=this.buttons;b(this.buttonOptions,function(a,b){var k=a._range,h=a.type,p=a.count||1;a=t[b];var z=0;b=b===m;var u=k>g-f,E=k<c.minRange,C=!1,v=!1,k=k===d;("month"===h||"year"===h)&&d>=864E5*{month:28,year:365}[h]*p&&d<=864E5*{month:31,year:366}[h]*p?k=!0:"ytd"===h?(k=l-r===d,C=!b):"all"===h&&(k=c.max-c.min>=g-f,v=!b&&n&&k);h=!q&&(u||E||v||e);k=b&&k||k&&!n&&!C;h?z=3:k&&(n=!0,z=2);a.state!==z&&a.setState(z)})},computeButtonRange:function(a){var b= | ||
a.type,c=a.count||1,d={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5};if(d[b])a._range=d[b]*c;else if("month"===b||"year"===b)a._range=864E5*{month:30,year:365}[b]*c},setInputValue:function(a,b){var c=this.chart.options.rangeSelector,d=this[a+"Input"];l(b)&&(d.previousValue=d.HCTime,d.HCTime=b);d.value=I(c.inputEditDateFormat||"%Y-%m-%d",d.HCTime);this[a+"DateBox"].attr({text:I(c.inputDateFormat||"%b %e, %Y",d.HCTime)})},showInput:function(a){var b=this.inputGroup,c=this[a+"DateBox"]; | ||
G(this[a+"Input"],{left:b.translateX+c.x+"px",top:b.translateY+"px",width:c.width-2+"px",height:c.height-2+"px",border:"2px solid silver"})},hideInput:function(a){G(this[a+"Input"],{border:0,width:"1px",height:"1px"});this.setInputValue(a)},drawInput:function(a){function b(){var a=n.value,b=(r.inputDateParser||Date.parse)(a),c=f.xAxis[0],g=f.scroller&&f.scroller.xAxis?f.scroller.xAxis:c,k=g.dataMin,g=g.dataMax;b!==n.previousValue&&(n.previousValue=b,y(b)||(b=a.split("-"),b=Date.UTC(d(b[0]),d(b[1])- | ||
1,d(b[2]))),y(b)&&(v||(b+=6E4*(new Date).getTimezoneOffset()),m?b>e.maxInput.HCTime?b=void 0:b<k&&(b=k):b<e.minInput.HCTime?b=void 0:b>g&&(b=g),void 0!==b&&c.setExtremes(m?b:c.min,m?c.max:b,void 0,void 0,{trigger:"rangeSelectorInput"})))}var e=this,f=e.chart,g=f.renderer.style||{},h=f.renderer,r=f.options.rangeSelector,l=e.div,m="min"===a,n,q,t=this.inputGroup;this[a+"Label"]=q=h.label(w.lang[m?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(t); | ||
t.offset+=q.width+5;this[a+"DateBox"]=h=h.label("",t.offset).addClass("highcharts-range-input").attr({padding:2,width:r.inputBoxWidth||90,height:r.inputBoxHeight||17,stroke:r.inputBoxBorderColor||"#cccccc","stroke-width":1,"text-align":"center"}).on("click",function(){e.showInput(a);e[a+"Input"].focus()}).add(t);t.offset+=h.width+(m?10:0);this[a+"Input"]=n=B("input",{name:a,className:"highcharts-range-selector",type:"text"},{top:f.plotTop+"px"},l);q.css(H(g,r.labelStyle));h.css(H({color:"#333333"}, | ||
g,r.inputStyle));G(n,c({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:g.fontSize,fontFamily:g.fontFamily,left:"-9em"},r.inputStyle));n.onfocus=function(){e.showInput(a)};n.onblur=function(){e.hideInput(a)};n.onchange=b;n.onkeypress=function(a){13===a.keyCode&&b()}},getPosition:function(){var a=this.chart,b=a.options.rangeSelector,a=f((b.buttonPosition||{}).y,a.plotTop-a.axisOffset[0]-b.height);return{buttonTop:a,inputTop:a-10}},getYTDExtremes:function(a, | ||
b,c){var d=new q(a),e=d[q.hcGetFullYear]();c=c?q.UTC(e,0,1):+new q(e,0,1);b=Math.max(b||0,c);d=d.getTime();return{max:Math.min(a||d,d),min:b}},render:function(a,d){var e=this,g=e.chart,h=g.renderer,p=g.container,r=g.options,m=r.exporting&&!1!==r.exporting.enabled&&r.navigation&&r.navigation.buttonOptions,n=r.rangeSelector,u=e.buttons,r=w.lang,q=e.div,q=e.inputGroup,v=n.buttonTheme,t=n.buttonPosition||{},y=n.inputEnabled,x=v&&v.states,A=g.plotLeft,D,F=this.getPosition(),G=e.group,H=e.rendered;!1!== | ||
n.enabled&&(H||(e.group=G=h.g("range-selector-buttons").add(),e.zoomText=h.text(r.rangeSelectorZoom,f(t.x,A),15).css(n.labelStyle).add(G),D=f(t.x,A)+e.zoomText.getBBox().width+5,b(e.buttonOptions,function(a,b){u[b]=h.button(a.text,D,0,function(){e.clickButton(b);e.isActive=!0},v,x&&x.hover,x&&x.select,x&&x.disabled).attr({"text-align":"center"}).add(G);D+=u[b].width+f(n.buttonSpacing,5)}),!1!==y&&(e.div=q=B("div",null,{position:"relative",height:0,zIndex:1}),p.parentNode.insertBefore(q,p),e.inputGroup= | ||
q=h.g("input-group").add(),q.offset=0,e.drawInput("min"),e.drawInput("max"))),e.updateButtonStates(),G[H?"animate":"attr"]({translateY:F.buttonTop}),!1!==y&&(q.align(c({y:F.inputTop,width:q.offset,x:m&&F.inputTop<(m.y||0)+m.height-g.spacing[0]?-40:0},n.inputPosition),!0,g.spacingBox),l(y)||(g=G.getBBox(),q[q.alignAttr.translateX<g.x+g.width+10?"hide":"show"]()),e.setInputValue("min",a),e.setInputValue("max",d)),e.rendered=!0)},update:function(a){var b=this.chart;H(!0,b.options.rangeSelector,a);this.destroy(); | ||
this.init(b)},destroy:function(){var a=this.minInput,b=this.maxInput,c;this.unMouseDown();this.unResize();m(this.buttons);a&&(a.onfocus=a.onblur=a.onchange=null);b&&(b.onfocus=b.onblur=b.onchange=null);for(c in this)this[c]&&"chart"!==c&&(this[c].destroy?this[c].destroy():this[c].nodeType&&g(this[c])),this[c]!==F.prototype[c]&&(this[c]=null)}};x.prototype.toFixedRange=function(a,b,c,d){var e=this.chart&&this.chart.fixedRange;a=f(c,this.translate(a,!0,!this.horiz));b=f(d,this.translate(b,!0,!this.horiz)); | ||
c=e&&(b-a)/e;.7<c&&1.3>c&&(d?a=b-e:b=a+e);y(a)||(a=b=void 0);return{min:a,max:b}};x.prototype.minFromRange=function(){var a=this.range,b={month:"Month",year:"FullYear"}[a.type],c,d=this.max,e,g,r=function(a,c){var d=new Date(a);d["set"+b](d["get"+b]()+c);return d.getTime()-a};y(a)?(c=d-a,g=a):(c=d+r(d,-a.count),this.chart&&(this.chart.fixedRange=d-c));e=f(this.dataMin,Number.MIN_VALUE);y(c)||(c=e);c<=e&&(c=e,void 0===g&&(g=r(c,a.count)),this.newMax=Math.min(c+g,this.dataMax));y(d)||(c=void 0);return c}; | ||
D(A.prototype,"init",function(a,b,c){n(this,"init",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new F(this))});a.call(this,b,c)});A.prototype.callbacks.push(function(a){function b(){c=a.xAxis[0].getExtremes();y(c.min)&&d.render(c.min,c.max)}var c,d=a.rangeSelector,e,f;d&&(f=n(a.xAxis[0],"afterSetExtremes",function(a){d.render(a.min,a.max)}),e=n(a,"redraw",b),b());n(a,"destroy",function(){d&&(e(),f())})});a.RangeSelector=F})(J);(function(a){var F=a.arrayMax,n=a.arrayMin,x=a.Axis, | ||
A=a.Chart,G=a.defined,B=a.each,I=a.extend,w=a.format,v=a.inArray,l=a.isNumber,m=a.isString,g=a.map,b=a.merge,c=a.pick,e=a.Point,q=a.Renderer,y=a.Series,H=a.splat,f=a.SVGRenderer,d=a.VMLRenderer,t=a.wrap,D=y.prototype,h=D.init,u=D.processData,E=e.prototype.tooltipFormatter;a.StockChart=a.stockChart=function(d,e,f){var k=m(d)||d.nodeName,h=arguments[k?1:0],p=h.series,l=a.getOptions(),n,z=c(h.navigator&&h.navigator.enabled,l.navigator.enabled,!0),q=z?{startOnTick:!1,endOnTick:!1}:null,v={marker:{enabled:!1, | ||
radius:2}},t={shadow:!1,borderWidth:0};h.xAxis=g(H(h.xAxis||{}),function(a){return b({minPadding:0,maxPadding:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},l.xAxis,a,{type:"datetime",categories:null},q)});h.yAxis=g(H(h.yAxis||{}),function(a){n=c(a.opposite,!0);return b({labels:{y:-2},opposite:n,showLastLabel:!1,title:{text:null}},l.yAxis,a)});h.series=null;h=b({chart:{panning:!0,pinchType:"x"},navigator:{enabled:z},scrollbar:{enabled:c(l.scrollbar.enabled,!0)},rangeSelector:{enabled:c(l.rangeSelector.enabled, | ||
!0)},title:{text:null},tooltip:{shared:!0,crosshairs:!0},legend:{enabled:!1},plotOptions:{line:v,spline:v,area:v,areaspline:v,arearange:v,areasplinerange:v,column:t,columnrange:t,candlestick:t,ohlc:t}},h,{isStock:!0});h.series=p;return k?new A(d,h,f):new A(h,e)};t(x.prototype,"autoLabelAlign",function(a){var b=this.chart,c=this.options,b=b._labelPanes=b._labelPanes||{},d=this.options.labels;return this.chart.options.isStock&&"yAxis"===this.coll&&(c=c.top+","+c.height,!b[c]&&d.enabled)?(15===d.x&& | ||
(d.x=0),void 0===d.align&&(d.align="right"),b[c]=this,"right"):a.call(this,[].slice.call(arguments,1))});t(x.prototype,"destroy",function(a){var b=this.chart,c=this.options&&this.options.top+","+this.options.height;c&&b._labelPanes&&b._labelPanes[c]===this&&delete b._labelPanes[c];return a.call(this,Array.prototype.slice.call(arguments,1))});t(x.prototype,"getPlotLinePath",function(a,b,d,e,f,h){var k=this,p=this.isLinked&&!this.series?this.linkedParent.series:this.series,r=k.chart,n=r.renderer,q= | ||
k.left,z=k.top,t,u,w,C,x=[],y=[],A,D;if("colorAxis"===k.coll)return a.apply(this,[].slice.call(arguments,1));y=function(a){var b="xAxis"===a?"yAxis":"xAxis";a=k.options[b];return l(a)?[r[b][a]]:m(a)?[r.get(a)]:g(p,function(a){return a[b]})}(k.coll);B(k.isXAxis?r.yAxis:r.xAxis,function(a){if(G(a.options.id)?-1===a.options.id.indexOf("navigator"):1){var b=a.isXAxis?"yAxis":"xAxis",b=G(a.options[b])?r[b][a.options[b]]:r[b][0];k===b&&y.push(a)}});A=y.length?[]:[k.isXAxis?r.yAxis[0]:r.xAxis[0]];B(y,function(a){-1=== | ||
v(a,A)&&A.push(a)});D=c(h,k.translate(b,null,null,e));l(D)&&(k.horiz?B(A,function(a){var b;u=a.pos;C=u+a.len;t=w=Math.round(D+k.transB);if(t<q||t>q+k.width)f?t=w=Math.min(Math.max(q,t),q+k.width):b=!0;b||x.push("M",t,u,"L",w,C)}):B(A,function(a){var b;t=a.pos;w=t+a.len;u=C=Math.round(z+k.height-D);if(u<z||u>z+k.height)f?u=C=Math.min(Math.max(z,u),k.top+k.height):b=!0;b||x.push("M",t,u,"L",w,C)}));return 0<x.length?n.crispPolyLine(x,d||1):null});x.prototype.getPlotBandPath=function(a,b){b=this.getPlotLinePath(b, | ||
null,null,!0);a=this.getPlotLinePath(a,null,null,!0);var c=[],d;if(a&&b)if(a.toString()===b.toString())c=a,c.flat=!0;else for(d=0;d<a.length;d+=6)c.push("M",a[d+1],a[d+2],"L",a[d+4],a[d+5],b[d+4],b[d+5],b[d+1],b[d+2],"z");else c=null;return c};f.prototype.crispPolyLine=function(a,b){var c;for(c=0;c<a.length;c+=6)a[c+1]===a[c+4]&&(a[c+1]=a[c+4]=Math.round(a[c+1])-b%2/2),a[c+2]===a[c+5]&&(a[c+2]=a[c+5]=Math.round(a[c+2])+b%2/2);return a};q===d&&(d.prototype.crispPolyLine=f.prototype.crispPolyLine); | ||
t(x.prototype,"hideCrosshair",function(a,b){a.call(this,b);this.crossLabel&&(this.crossLabel=this.crossLabel.hide())});t(x.prototype,"drawCrosshair",function(a,b,d){var e,f;a.call(this,b,d);if(G(this.crosshair.label)&&this.crosshair.label.enabled&&this.cross){a=this.chart;var g=this.options.crosshair.label,h=this.horiz;e=this.opposite;f=this.left;var k=this.top,l=this.crossLabel,m,n=g.format,p="",q="inside"===this.options.tickPosition,t=!1!==this.crosshair.snap,u=0;b||(b=this.cross&&this.cross.e); | ||
m=h?"center":e?"right"===this.labelAlign?"right":"left":"left"===this.labelAlign?"left":"center";l||(l=this.crossLabel=a.renderer.label(null,null,null,g.shape||"callout").addClass("highcharts-crosshair-label"+(this.series[0]&&" highcharts-color-"+this.series[0].colorIndex)).attr({align:g.align||m,padding:c(g.padding,8),r:c(g.borderRadius,3),zIndex:2}).add(this.labelGroup),l.attr({fill:g.backgroundColor||this.series[0]&&this.series[0].color||"#666666",stroke:g.borderColor||"","stroke-width":g.borderWidth|| | ||
0}).css(I({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},g.style)));h?(m=t?d.plotX+f:b.chartX,k+=e?0:this.height):(m=e?this.width+f:0,k=t?d.plotY+k:b.chartY);n||g.formatter||(this.isDatetimeAxis&&(p="%b %d, %Y"),n="{value"+(p?":"+p:"")+"}");b=t?d[this.isXAxis?"x":"y"]:this.toValue(h?b.chartX:b.chartY);l.attr({text:n?w(n,{value:b}):g.formatter.call(this,b),x:m,y:k,visibility:"visible"});b=l.getBBox();if(h){if(q&&!e||!q&&e)k=l.y-b.height}else k=l.y-b.height/2;h?(e=f-b.x,f= | ||
f+this.width-b.x):(e="left"===this.labelAlign?f:0,f="right"===this.labelAlign?f+this.width:a.chartWidth);l.translateX<e&&(u=e-l.translateX);l.translateX+b.width>=f&&(u=-(l.translateX+b.width-f));l.attr({x:m+u,y:k,anchorX:h?m:this.opposite?0:a.chartWidth,anchorY:h?this.opposite?a.chartHeight:0:k+b.height/2})}});D.init=function(){h.apply(this,arguments);this.setCompare(this.options.compare)};D.setCompare=function(a){this.modifyValue="value"===a||"percent"===a?function(b,c){var d=this.compareValue;if(void 0!== | ||
b&&void 0!==d)return b="value"===a?b-d:b/d*100-(100===this.options.compareBase?0:100),c&&(c.change=b),b}:null;this.userOptions.compare=a;this.chart.hasRendered&&(this.isDirty=!0)};D.processData=function(){var a,b=-1,c,d,e,f;u.apply(this,arguments);if(this.xAxis&&this.processedYData)for(c=this.processedXData,d=this.processedYData,e=d.length,this.pointArrayMap&&(b=v("close",this.pointArrayMap),-1===b&&(b=v(this.pointValKey||"y",this.pointArrayMap))),a=0;a<e-1;a++)if(f=-1<b?d[a][b]:d[a],l(f)&&c[a+1]>= | ||
this.xAxis.min&&0!==f){this.compareValue=f;break}};t(D,"getExtremes",function(a){var b;a.apply(this,[].slice.call(arguments,1));this.modifyValue&&(b=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=n(b),this.dataMax=F(b))});x.prototype.setCompare=function(a,b){this.isXAxis||(B(this.series,function(b){b.setCompare(a)}),c(b,!0)&&this.chart.redraw())};e.prototype.tooltipFormatter=function(b){b=b.replace("{point.change}",(0<this.change?"+":"")+a.numberFormat(this.change,c(this.series.tooltipOptions.changeDecimals, | ||
2)));return E.apply(this,[b])};t(y.prototype,"render",function(a){this.chart.is3d&&this.chart.is3d()||this.chart.polar||!this.xAxis||this.xAxis.isRadial||(!this.clipBox&&this.animate?(this.clipBox=b(this.chart.clipBox),this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len):this.chart[this.sharedClipKey]?this.chart[this.sharedClipKey].attr({width:this.xAxis.len,height:this.yAxis.len}):this.clipBox&&(this.clipBox.width=this.xAxis.len,this.clipBox.height=this.yAxis.len));a.call(this)})})(J)}); |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
@@ -9,24 +9,24 @@ (c) 2014 Highsoft AS | ||
*/ | ||
(function(q){"object"===typeof module&&module.exports?module.exports=q:q(Highcharts)})(function(q){(function(g){var q=g.seriesType,l=g.seriesTypes,E=g.map,v=g.merge,y=g.extend,z=g.noop,n=g.each,x=g.grep,F=g.isNumber,A=g.isString,k=g.pick,r=g.Series,G=g.stableSort,B=g.Color,H=function(a,b,c){var e;c=c||this;for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)},C=function(a,b,c,e){e=e||this;a=a||[];n(a,function(d,f){c=b.call(e,c,d,f,a)});return c},w=function(a,b,c){c=c||this;a=b.call(c,a);!1!==a&&w(a, | ||
b,c)};q("treemap","scatter",{showInLegend:!1,marker:!1,dataLabels:{enabled:!0,defer:!1,verticalAlign:"middle",formatter:function(){return this.point.name||this.point.id},inside:!0},tooltip:{headerFormat:"",pointFormat:"\x3cb\x3e{point.name}\x3c/b\x3e: {point.value}\x3c/b\x3e\x3cbr/\x3e"},layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1,opacity:.15, | ||
states:{hover:{borderColor:"#999999",brightness:l.heatmap?0:.1,opacity:.75,shadow:!1}}},{pointArrayMap:["value"],axisTypes:l.heatmap?["xAxis","yAxis","colorAxis"]:["xAxis","yAxis"],optionalAxis:"colorAxis",getSymbol:z,parallelArrays:["x","y","value","colorValue"],colorKey:"colorValue",translateColors:l.heatmap&&l.heatmap.prototype.translateColors,trackerGroups:["group","dataLabelsGroup"],getListOfParents:function(a,b){a=C(a,function(a,b,d){b=k(b.parent,"");void 0===a[b]&&(a[b]=[]);a[b].push(d);return a}, | ||
{});H(a,function(a,e,d){""!==e&&-1===g.inArray(e,b)&&(n(a,function(a){d[""].push(a)}),delete d[e])});return a},getTree:function(){var a=E(this.data,function(a){return a.id}),a=this.getListOfParents(this.data,a);this.nodeMap=[];return this.buildNode("",-1,0,a,null)},init:function(a,b){r.prototype.init.call(this,a,b);this.options.allowDrillToNode&&g.addEvent(this,"click",this.onClickDrillToNode)},buildNode:function(a,b,c,e,d){var f=this,h=[],D=f.points[b],p;n(e[a]||[],function(b){p=f.buildNode(f.points[b].id, | ||
b,c+1,e,a);h.push(p)});b={id:a,i:b,children:h,level:c,parent:d,visible:!1};f.nodeMap[b.id]=b;D&&(D.node=b);return b},setTreeValues:function(a){var b=this,c=b.options,e=0,d=[],f,h=b.points[a.i];w(b.nodeMap[b.rootNode],function(a){var c=!1,d=a.parent;a.visible=!0;if(d||""===d)c=b.nodeMap[d];return c});w(b.nodeMap[b.rootNode].children,function(a){var b=!1;n(a,function(a){a.visible=!0;a.children.length&&(b=(b||[]).concat(a.children))});return b});n(a.children,function(a){a=b.setTreeValues(a);d.push(a); | ||
a.ignore?w(a.children,function(a){var b=!1;n(a,function(a){y(a,{ignore:!0,isLeaf:!1,visible:!1});a.children.length&&(b=(b||[]).concat(a.children))});return b}):e+=a.val});G(d,function(a,b){return a.sortIndex-b.sortIndex});f=k(h&&h.options.value,e);h&&(h.value=f);y(a,{children:d,childrenTotal:e,ignore:!(k(h&&h.visible,!0)&&0<f),isLeaf:a.visible&&!e,levelDynamic:c.levelIsConstant?a.level:a.level-b.nodeMap[b.rootNode].level,name:k(h&&h.name,""),sortIndex:k(h&&h.sortIndex,-f),val:f});return a},calculateChildrenAreas:function(a, | ||
b){var c=this,e=c.options,d=this.levelMap[a.levelDynamic+1],f=k(c[d&&d.layoutAlgorithm]&&d.layoutAlgorithm,e.layoutAlgorithm),h=e.alternateStartingDirection,g=[];a=x(a.children,function(a){return!a.ignore});d&&d.layoutStartingDirection&&(b.direction="vertical"===d.layoutStartingDirection?0:1);g=c[f](b,a);n(a,function(a,d){d=g[d];a.values=v(d,{val:a.childrenTotal,direction:h?1-b.direction:b.direction});a.pointValues=v(d,{x:d.x/c.axisRatio,width:d.width/c.axisRatio});a.children.length&&c.calculateChildrenAreas(a, | ||
a.values)})},setPointValues:function(){var a=this,b=a.xAxis,c=a.yAxis;n(a.points,function(e){var d=e.node,f=d.pointValues,h,g,p=(a.pointAttribs(e)["stroke-width"]||0)%2/2;f&&d.visible?(d=Math.round(b.translate(f.x,0,0,0,1))-p,h=Math.round(b.translate(f.x+f.width,0,0,0,1))-p,g=Math.round(c.translate(f.y,0,0,0,1))-p,f=Math.round(c.translate(f.y+f.height,0,0,0,1))-p,e.shapeType="rect",e.shapeArgs={x:Math.min(d,h),y:Math.min(g,f),width:Math.abs(h-d),height:Math.abs(f-g)},e.plotX=e.shapeArgs.x+e.shapeArgs.width/ | ||
2,e.plotY=e.shapeArgs.y+e.shapeArgs.height/2):(delete e.plotX,delete e.plotY)})},setColorRecursive:function(a,b,c){var e=this,d,f;a&&(d=e.points[a.i],f=e.levelMap[a.levelDynamic],b=k(d&&d.options.color,f&&f.color,b),c=k(d&&d.options.colorIndex,f&&f.colorIndex,c),d&&(d.color=b,d.colorIndex=c),a.children.length&&n(a.children,function(a){e.setColorRecursive(a,b,c)}))},algorithmGroup:function(a,b,c,e){this.height=a;this.width=b;this.plot=e;this.startDirection=this.direction=c;this.lH=this.nH=this.lW= | ||
this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,b){return Math.max(a/b,b/a)}};this.addElement=function(a){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW=this.lP.total/ | ||
this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)};this.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0}},algorithmCalcPoints:function(a,b,c,e){var d,f,h,g,p=c.lW,k=c.lH,m=c.plot,l,t=0,u=c.elArr.length-1;b?(p=c.nW,k=c.nH):l=c.elArr[c.elArr.length-1];n(c.elArr,function(a){if(b||t<u)0===c.direction?(d=m.x,f=m.y,h=p,g=a/h):(d=m.x,f=m.y,g=k,h=a/g), | ||
e.push({x:d,y:f,width:h,height:g}),0===c.direction?m.y+=g:m.x+=h;t+=1});c.reset();0===c.direction?c.width-=p:c.height-=k;m.y=m.parent.y+(m.parent.height-c.height);m.x=m.parent.x+(m.parent.width-c.width);a&&(c.direction=1-c.direction);b||c.addElement(l)},algorithmLowAspectRatio:function(a,b,c){var e=[],d=this,f,g={x:b.x,y:b.y,parent:b},k=0,p=c.length-1,l=new this.algorithmGroup(b.height,b.width,b.direction,g);n(c,function(c){f=c.val/b.val*b.height*b.width;l.addElement(f);l.lP.nR>l.lP.lR&&d.algorithmCalcPoints(a, | ||
!1,l,e,g);k===p&&d.algorithmCalcPoints(a,!0,l,e,g);k+=1});return e},algorithmFill:function(a,b,c){var e=[],d,f=b.direction,g=b.x,k=b.y,l=b.width,q=b.height,m,r,t,u;n(c,function(c){d=c.val/b.val*b.height*b.width;m=g;r=k;0===f?(u=q,t=d/u,l-=t,g+=t):(t=l,u=d/t,q-=u,k+=u);e.push({x:m,y:r,width:t,height:u});a&&(f=1-f)});return e},strip:function(a,b){return this.algorithmLowAspectRatio(!1,a,b)},squarified:function(a,b){return this.algorithmLowAspectRatio(!0,a,b)},sliceAndDice:function(a,b){return this.algorithmFill(!0, | ||
a,b)},stripes:function(a,b){return this.algorithmFill(!1,a,b)},translate:function(){var a=this.rootNode=k(this.rootNode,this.options.rootId,""),b,c;r.prototype.translate.call(this);this.levelMap=C(this.options.levels,function(a,b){a[b.level]=b;return a},{});c=this.tree=this.getTree();b=this.nodeMap[a];""===a||b&&b.children.length||(this.drillToNode("",!1),a=this.rootNode,b=this.nodeMap[a]);this.setTreeValues(c);this.axisRatio=this.xAxis.len/this.yAxis.len;this.nodeMap[""].pointValues=a={x:0,y:0,width:100, | ||
height:100};this.nodeMap[""].values=a=v(a,{width:a.width*this.axisRatio,direction:"vertical"===this.options.layoutStartingDirection?0:1,val:c.val});this.calculateChildrenAreas(c,a);this.colorAxis?this.translateColors():this.options.colorByPoint||this.setColorRecursive(this.tree);this.options.allowDrillToNode&&(b=b.pointValues,this.xAxis.setExtremes(b.x,b.x+b.width,!1),this.yAxis.setExtremes(b.y,b.y+b.height,!1),this.xAxis.setScale(),this.yAxis.setScale());this.setPointValues()},drawDataLabels:function(){var a= | ||
this,b=x(a.points,function(a){return a.node.visible}),c,e;n(b,function(b){e=a.levelMap[b.node.levelDynamic];c={style:{}};b.node.isLeaf||(c.enabled=!1);e&&e.dataLabels&&(c=v(c,e.dataLabels),a._hasPointLabels=!0);b.shapeArgs&&(c.style.width=b.shapeArgs.width,b.dataLabel&&b.dataLabel.css({width:b.shapeArgs.width+"px"}));b.dlOptions=v(c,b.options.dataLabels)});r.prototype.drawDataLabels.call(this)},alignDataLabel:function(a){l.column.prototype.alignDataLabel.apply(this,arguments);a.dataLabel&&a.dataLabel.attr({zIndex:a.node.zIndex+ | ||
1})},pointAttribs:function(a,b){var c=this.levelMap[a.node.levelDynamic]||{},e=this.options,d=b&&e.states[b]||{},f=a.getClassName();a={stroke:a.borderColor||c.borderColor||d.borderColor||e.borderColor,"stroke-width":k(a.borderWidth,c.borderWidth,d.borderWidth,e.borderWidth),dashstyle:a.borderDashStyle||c.borderDashStyle||d.borderDashStyle||e.borderDashStyle,fill:a.color||this.color};-1!==f.indexOf("highcharts-above-level")?(a.fill="none",a["stroke-width"]=0):-1!==f.indexOf("highcharts-internal-node-interactive")? | ||
(b=k(d.opacity,e.opacity),a.fill=B(a.fill).setOpacity(b).get(),a.cursor="pointer"):-1!==f.indexOf("highcharts-internal-node")?a.fill="none":b&&(a.fill=B(a.fill).brighten(d.brightness).get());return a},drawPoints:function(){var a=this,b=x(a.points,function(a){return a.node.visible});n(b,function(b){var c="levelGroup-"+b.node.levelDynamic;a[c]||(a[c]=a.chart.renderer.g(c).attr({zIndex:1E3-b.node.levelDynamic}).add(a.group));b.group=a[c]});l.column.prototype.drawPoints.call(this);a.options.allowDrillToNode&& | ||
n(b,function(b){b.graphic&&(b.drillId=a.options.interactByLeaf?a.drillToByLeaf(b):a.drillToByGroup(b))})},onClickDrillToNode:function(a){var b=(a=a.point)&&a.drillId;A(b)&&(a.setState(""),this.drillToNode(b))},drillToByGroup:function(a){var b=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(b=a.id);return b},drillToByLeaf:function(a){var b=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a=a.node;!b;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(b=a.id);return b}, | ||
drillUp:function(){var a=this.nodeMap[this.rootNode];a&&A(a.parent)&&this.drillToNode(a.parent)},drillToNode:function(a,b){var c=this.nodeMap[a];this.rootNode=a;""===a?this.drillUpButton=this.drillUpButton.destroy():this.showDrillUpButton(c&&c.name||a);this.isDirty=!0;k(b,!0)&&this.chart.redraw()},showDrillUpButton:function(a){var b=this;a=a||"\x3c Back";var c=b.options.drillUpButton,e,d;c.text&&(a=c.text);this.drillUpButton?this.drillUpButton.attr({text:a}).align():(d=(e=c.theme)&&e.states,this.drillUpButton= | ||
this.chart.renderer.button(a,null,null,function(){b.drillUp()},e,d&&d.hover,d&&d.select).attr({align:c.position.align,zIndex:7}).add().align(c.position,!1,c.relativeTo||"plotBox"))},buildKDTree:z,drawLegendSymbol:g.LegendSymbolMixin.drawRectangle,getExtremes:function(){r.prototype.getExtremes.call(this,this.colorValueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;r.prototype.getExtremes.call(this)},getExtremesFromAll:!0,bindAxes:function(){var a={endOnTick:!1,gridLineWidth:0,lineWidth:0, | ||
min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};r.prototype.bindAxes.call(this);g.extend(this.yAxis.options,a);g.extend(this.xAxis.options,a)}},{getClassName:function(){var a=g.Point.prototype.getClassName.call(this),b=this.series,c=b.options;this.node.level<=b.nodeMap[b.rootNode].level?a+=" highcharts-above-level":this.node.isLeaf||k(c.interactByLeaf,!c.allowDrillToNode)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive"; | ||
return a},isValid:function(){return F(this.value)},setState:function(a){g.Point.prototype.setState.call(this,a);this.graphic.attr({zIndex:"hover"===a?1:0})},setVisible:l.pie.prototype.pointClass.prototype.setVisible})})(q)}); | ||
(function(q){"object"===typeof module&&module.exports?module.exports=q:q(Highcharts)})(function(q){(function(g){var q=g.seriesType,l=g.seriesTypes,E=g.map,v=g.merge,y=g.extend,z=g.noop,p=g.each,x=g.grep,F=g.isNumber,A=g.isString,k=g.pick,u=g.Series,G=g.stableSort,B=g.Color,H=function(a,b,c){var d;c=c||this;for(d in a)a.hasOwnProperty(d)&&b.call(c,a[d],d,a)},C=function(a,b,c,d){d=d||this;a=a||[];p(a,function(e,f){c=b.call(d,c,e,f,a)});return c},w=function(a,b,c){c=c||this;a=b.call(c,a);!1!==a&&w(a, | ||
b,c)};q("treemap","scatter",{showInLegend:!1,marker:!1,dataLabels:{enabled:!0,defer:!1,verticalAlign:"middle",formatter:function(){return this.point.name||this.point.id},inside:!0},tooltip:{headerFormat:"",pointFormat:"\x3cb\x3e{point.name}\x3c/b\x3e: {point.value}\x3c/b\x3e\x3cbr/\x3e"},ignoreHiddenPoint:!0,layoutAlgorithm:"sliceAndDice",layoutStartingDirection:"vertical",alternateStartingDirection:!1,levelIsConstant:!0,drillUpButton:{position:{align:"right",x:-10,y:10}},borderColor:"#e6e6e6",borderWidth:1, | ||
opacity:.15,states:{hover:{borderColor:"#999999",brightness:l.heatmap?0:.1,opacity:.75,shadow:!1}}},{pointArrayMap:["value"],axisTypes:l.heatmap?["xAxis","yAxis","colorAxis"]:["xAxis","yAxis"],optionalAxis:"colorAxis",getSymbol:z,parallelArrays:["x","y","value","colorValue"],colorKey:"colorValue",translateColors:l.heatmap&&l.heatmap.prototype.translateColors,trackerGroups:["group","dataLabelsGroup"],getListOfParents:function(a,b){a=C(a,function(a,b,e){b=k(b.parent,"");void 0===a[b]&&(a[b]=[]);a[b].push(e); | ||
return a},{});H(a,function(a,d,e){""!==d&&-1===g.inArray(d,b)&&(p(a,function(a){e[""].push(a)}),delete e[d])});return a},getTree:function(){var a=E(this.data,function(a){return a.id}),a=this.getListOfParents(this.data,a);this.nodeMap=[];return this.buildNode("",-1,0,a,null)},init:function(a,b){u.prototype.init.call(this,a,b);this.options.allowDrillToNode&&g.addEvent(this,"click",this.onClickDrillToNode)},buildNode:function(a,b,c,d,e){var f=this,h=[],D=f.points[b],m;p(d[a]||[],function(b){m=f.buildNode(f.points[b].id, | ||
b,c+1,d,a);h.push(m)});b={id:a,i:b,children:h,level:c,parent:e,visible:!1};f.nodeMap[b.id]=b;D&&(D.node=b);return b},setTreeValues:function(a){var b=this,c=b.options,d=0,e=[],f,h=b.points[a.i];w(b.nodeMap[b.rootNode],function(a){var c=!1,e=a.parent;a.visible=!0;if(e||""===e)c=b.nodeMap[e];return c});w(b.nodeMap[b.rootNode].children,function(a){var b=!1;p(a,function(a){a.visible=!0;a.children.length&&(b=(b||[]).concat(a.children))});return b});p(a.children,function(a){a=b.setTreeValues(a);e.push(a); | ||
a.ignore?w(a.children,function(a){var b=!1;p(a,function(a){y(a,{ignore:!0,isLeaf:!1,visible:!1});a.children.length&&(b=(b||[]).concat(a.children))});return b}):d+=a.val});G(e,function(a,b){return a.sortIndex-b.sortIndex});f=k(h&&h.options.value,d);h&&(h.value=f);y(a,{children:e,childrenTotal:d,ignore:!(k(h&&h.visible,!0)&&0<f),isLeaf:a.visible&&!d,levelDynamic:c.levelIsConstant?a.level:a.level-b.nodeMap[b.rootNode].level,name:k(h&&h.name,""),sortIndex:k(h&&h.sortIndex,-f),val:f});return a},calculateChildrenAreas:function(a, | ||
b){var c=this,d=c.options,e=this.levelMap[a.levelDynamic+1],f=k(c[e&&e.layoutAlgorithm]&&e.layoutAlgorithm,d.layoutAlgorithm),h=d.alternateStartingDirection,g=[];a=x(a.children,function(a){return!a.ignore});e&&e.layoutStartingDirection&&(b.direction="vertical"===e.layoutStartingDirection?0:1);g=c[f](b,a);p(a,function(a,e){e=g[e];a.values=v(e,{val:a.childrenTotal,direction:h?1-b.direction:b.direction});a.pointValues=v(e,{x:e.x/c.axisRatio,width:e.width/c.axisRatio});a.children.length&&c.calculateChildrenAreas(a, | ||
a.values)})},setPointValues:function(){var a=this,b=a.xAxis,c=a.yAxis;p(a.points,function(d){var e=d.node,f=e.pointValues,h,g,m;m=(a.pointAttribs(d)["stroke-width"]||0)%2/2;f&&e.visible?(e=Math.round(b.translate(f.x,0,0,0,1))-m,h=Math.round(b.translate(f.x+f.width,0,0,0,1))-m,g=Math.round(c.translate(f.y,0,0,0,1))-m,f=Math.round(c.translate(f.y+f.height,0,0,0,1))-m,d.shapeType="rect",d.shapeArgs={x:Math.min(e,h),y:Math.min(g,f),width:Math.abs(h-e),height:Math.abs(f-g)},d.plotX=d.shapeArgs.x+d.shapeArgs.width/ | ||
2,d.plotY=d.shapeArgs.y+d.shapeArgs.height/2):(delete d.plotX,delete d.plotY)})},setColorRecursive:function(a,b,c){var d=this,e,f;a&&(e=d.points[a.i],f=d.levelMap[a.levelDynamic],b=k(e&&e.options.color,f&&f.color,b,d.color),c=k(e&&e.options.colorIndex,f&&f.colorIndex,c,d.colorIndex),e&&(e.color=b,e.colorIndex=c),a.children.length&&p(a.children,function(a){d.setColorRecursive(a,b,c)}))},algorithmGroup:function(a,b,c,d){this.height=a;this.width=b;this.plot=d;this.startDirection=this.direction=c;this.lH= | ||
this.nH=this.lW=this.nW=this.total=0;this.elArr=[];this.lP={total:0,lH:0,nH:0,lW:0,nW:0,nR:0,lR:0,aspectRatio:function(a,b){return Math.max(a/b,b/a)}};this.addElement=function(a){this.lP.total=this.elArr[this.elArr.length-1];this.total+=a;0===this.direction?(this.lW=this.nW,this.lP.lH=this.lP.total/this.lW,this.lP.lR=this.lP.aspectRatio(this.lW,this.lP.lH),this.nW=this.total/this.height,this.lP.nH=this.lP.total/this.nW,this.lP.nR=this.lP.aspectRatio(this.nW,this.lP.nH)):(this.lH=this.nH,this.lP.lW= | ||
this.lP.total/this.lH,this.lP.lR=this.lP.aspectRatio(this.lP.lW,this.lH),this.nH=this.total/this.width,this.lP.nW=this.lP.total/this.nH,this.lP.nR=this.lP.aspectRatio(this.lP.nW,this.nH));this.elArr.push(a)};this.reset=function(){this.lW=this.nW=0;this.elArr=[];this.total=0}},algorithmCalcPoints:function(a,b,c,d){var e,f,h,g,m=c.lW,k=c.lH,n=c.plot,l,r=0,t=c.elArr.length-1;b?(m=c.nW,k=c.nH):l=c.elArr[c.elArr.length-1];p(c.elArr,function(a){if(b||r<t)0===c.direction?(e=n.x,f=n.y,h=m,g=a/h):(e=n.x,f= | ||
n.y,g=k,h=a/g),d.push({x:e,y:f,width:h,height:g}),0===c.direction?n.y+=g:n.x+=h;r+=1});c.reset();0===c.direction?c.width-=m:c.height-=k;n.y=n.parent.y+(n.parent.height-c.height);n.x=n.parent.x+(n.parent.width-c.width);a&&(c.direction=1-c.direction);b||c.addElement(l)},algorithmLowAspectRatio:function(a,b,c){var d=[],e=this,f,g={x:b.x,y:b.y,parent:b},k=0,m=c.length-1,l=new this.algorithmGroup(b.height,b.width,b.direction,g);p(c,function(c){f=c.val/b.val*b.height*b.width;l.addElement(f);l.lP.nR>l.lP.lR&& | ||
e.algorithmCalcPoints(a,!1,l,d,g);k===m&&e.algorithmCalcPoints(a,!0,l,d,g);k+=1});return d},algorithmFill:function(a,b,c){var d=[],e,f=b.direction,g=b.x,k=b.y,m=b.width,l=b.height,n,q,r,t;p(c,function(c){e=c.val/b.val*b.height*b.width;n=g;q=k;0===f?(t=l,r=e/t,m-=r,g+=r):(r=m,t=e/r,l-=t,k+=t);d.push({x:n,y:q,width:r,height:t});a&&(f=1-f)});return d},strip:function(a,b){return this.algorithmLowAspectRatio(!1,a,b)},squarified:function(a,b){return this.algorithmLowAspectRatio(!0,a,b)},sliceAndDice:function(a, | ||
b){return this.algorithmFill(!0,a,b)},stripes:function(a,b){return this.algorithmFill(!1,a,b)},translate:function(){var a=this.rootNode=k(this.rootNode,this.options.rootId,""),b,c;u.prototype.translate.call(this);this.levelMap=C(this.options.levels,function(a,b){a[b.level]=b;return a},{});c=this.tree=this.getTree();b=this.nodeMap[a];""===a||b&&b.children.length||(this.drillToNode("",!1),a=this.rootNode,b=this.nodeMap[a]);this.setTreeValues(c);this.axisRatio=this.xAxis.len/this.yAxis.len;this.nodeMap[""].pointValues= | ||
a={x:0,y:0,width:100,height:100};this.nodeMap[""].values=a=v(a,{width:a.width*this.axisRatio,direction:"vertical"===this.options.layoutStartingDirection?0:1,val:c.val});this.calculateChildrenAreas(c,a);this.colorAxis?this.translateColors():this.options.colorByPoint||this.setColorRecursive(this.tree);this.options.allowDrillToNode&&(b=b.pointValues,this.xAxis.setExtremes(b.x,b.x+b.width,!1),this.yAxis.setExtremes(b.y,b.y+b.height,!1),this.xAxis.setScale(),this.yAxis.setScale());this.setPointValues()}, | ||
drawDataLabels:function(){var a=this,b=x(a.points,function(a){return a.node.visible}),c,d;p(b,function(b){d=a.levelMap[b.node.levelDynamic];c={style:{}};b.node.isLeaf||(c.enabled=!1);d&&d.dataLabels&&(c=v(c,d.dataLabels),a._hasPointLabels=!0);b.shapeArgs&&(c.style.width=b.shapeArgs.width,b.dataLabel&&b.dataLabel.css({width:b.shapeArgs.width+"px"}));b.dlOptions=v(c,b.options.dataLabels)});u.prototype.drawDataLabels.call(this)},alignDataLabel:function(a){l.column.prototype.alignDataLabel.apply(this, | ||
arguments);a.dataLabel&&a.dataLabel.attr({zIndex:a.node.zIndex+1})},pointAttribs:function(a,b){var c=this.levelMap[a.node.levelDynamic]||{},d=this.options,e=b&&d.states[b]||{},f=a.getClassName();a={stroke:a.borderColor||c.borderColor||e.borderColor||d.borderColor,"stroke-width":k(a.borderWidth,c.borderWidth,e.borderWidth,d.borderWidth),dashstyle:a.borderDashStyle||c.borderDashStyle||e.borderDashStyle||d.borderDashStyle,fill:a.color||this.color};-1!==f.indexOf("highcharts-above-level")?(a.fill="none", | ||
a["stroke-width"]=0):-1!==f.indexOf("highcharts-internal-node-interactive")?(b=k(e.opacity,d.opacity),a.fill=B(a.fill).setOpacity(b).get(),a.cursor="pointer"):-1!==f.indexOf("highcharts-internal-node")?a.fill="none":b&&(a.fill=B(a.fill).brighten(e.brightness).get());return a},drawPoints:function(){var a=this,b=x(a.points,function(a){return a.node.visible});p(b,function(b){var c="levelGroup-"+b.node.levelDynamic;a[c]||(a[c]=a.chart.renderer.g(c).attr({zIndex:1E3-b.node.levelDynamic}).add(a.group)); | ||
b.group=a[c]});l.column.prototype.drawPoints.call(this);a.options.allowDrillToNode&&p(b,function(b){b.graphic&&(b.drillId=a.options.interactByLeaf?a.drillToByLeaf(b):a.drillToByGroup(b))})},onClickDrillToNode:function(a){var b=(a=a.point)&&a.drillId;A(b)&&(a.setState(""),this.drillToNode(b))},drillToByGroup:function(a){var b=!1;1!==a.node.level-this.nodeMap[this.rootNode].level||a.node.isLeaf||(b=a.id);return b},drillToByLeaf:function(a){var b=!1;if(a.node.parent!==this.rootNode&&a.node.isLeaf)for(a= | ||
a.node;!b;)a=this.nodeMap[a.parent],a.parent===this.rootNode&&(b=a.id);return b},drillUp:function(){var a=this.nodeMap[this.rootNode];a&&A(a.parent)&&this.drillToNode(a.parent)},drillToNode:function(a,b){var c=this.nodeMap[a];this.rootNode=a;""===a?this.drillUpButton=this.drillUpButton.destroy():this.showDrillUpButton(c&&c.name||a);this.isDirty=!0;k(b,!0)&&this.chart.redraw()},showDrillUpButton:function(a){var b=this;a=a||"\x3c Back";var c=b.options.drillUpButton,d,e;c.text&&(a=c.text);this.drillUpButton? | ||
this.drillUpButton.attr({text:a}).align():(e=(d=c.theme)&&d.states,this.drillUpButton=this.chart.renderer.button(a,null,null,function(){b.drillUp()},d,e&&e.hover,e&&e.select).attr({align:c.position.align,zIndex:7}).add().align(c.position,!1,c.relativeTo||"plotBox"))},buildKDTree:z,drawLegendSymbol:g.LegendSymbolMixin.drawRectangle,getExtremes:function(){u.prototype.getExtremes.call(this,this.colorValueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;u.prototype.getExtremes.call(this)}, | ||
getExtremesFromAll:!0,bindAxes:function(){var a={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};u.prototype.bindAxes.call(this);g.extend(this.yAxis.options,a);g.extend(this.xAxis.options,a)}},{getClassName:function(){var a=g.Point.prototype.getClassName.call(this),b=this.series,c=b.options;this.node.level<=b.nodeMap[b.rootNode].level?a+=" highcharts-above-level":this.node.isLeaf||k(c.interactByLeaf, | ||
!c.allowDrillToNode)?this.node.isLeaf||(a+=" highcharts-internal-node"):a+=" highcharts-internal-node-interactive";return a},isValid:function(){return F(this.value)},setState:function(a){g.Point.prototype.setState.call(this,a);this.graphic&&this.graphic.attr({zIndex:"hover"===a?1:0})},setVisible:l.pie.prototype.pointClass.prototype.setVisible})})(q)}); |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -9,2 +9,3 @@ * (c) 2014 Highsoft AS | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -24,3 +25,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -86,2 +86,3 @@ var seriesType = H.seriesType, | ||
}, | ||
ignoreHiddenPoint: true, | ||
layoutAlgorithm: 'sliceAndDice', | ||
@@ -323,5 +324,16 @@ layoutStartingDirection: 'vertical', | ||
y2, | ||
strokeWidth = series.pointAttribs(point)['stroke-width'] || 0, | ||
crispCorr = (strokeWidth % 2) / 2; | ||
crispCorr = 0; | ||
// Get the crisp correction in classic mode. For this to work in | ||
// styled mode, we would need to first add the shape (without x, y, | ||
// width and height), then read the rendered stroke width using | ||
// point.graphic.strokeWidth(), then modify and apply the shapeArgs. | ||
// This applies also to column series, but the downside is | ||
// performance and code complexity. | ||
crispCorr = ( | ||
(series.pointAttribs(point)['stroke-width'] || 0) % 2 | ||
) / 2; | ||
// Points which is ignored, have no values. | ||
@@ -358,4 +370,15 @@ if (values && node.visible) { | ||
// Select either point color, level color or inherited color. | ||
color = pick(point && point.options.color, level && level.color, color); | ||
colorIndex = pick(point && point.options.colorIndex, level && level.colorIndex, colorIndex); | ||
color = pick( | ||
point && point.options.color, | ||
level && level.color, | ||
color, | ||
series.color | ||
); | ||
colorIndex = pick( | ||
point && point.options.colorIndex, | ||
level && level.colorIndex, | ||
colorIndex, | ||
series.colorIndex | ||
); | ||
if (point) { | ||
@@ -930,5 +953,9 @@ point.color = color; | ||
H.Point.prototype.setState.call(this, state); | ||
this.graphic.attr({ | ||
zIndex: state === 'hover' ? 1 : 0 | ||
}); | ||
// Graphic does not exist when point is not visible. | ||
if (this.graphic) { | ||
this.graphic.attr({ | ||
zIndex: state === 'hover' ? 1 : 0 | ||
}); | ||
} | ||
}, | ||
@@ -935,0 +962,0 @@ setVisible: seriesTypes.pie.prototype.pointClass.prototype.setVisible |
/* | ||
Highcharts JS v5.0.7 (2017-01-17) | ||
Highcharts JS v5.0.8 (2017-03-08) | ||
X-range series | ||
@@ -4,0 +4,0 @@ |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* X-range series | ||
@@ -11,2 +11,3 @@ * | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
@@ -29,0 +29,0 @@ var defaultPlotOptions = H.getOptions().plotOptions, |
@@ -5,3 +5,3 @@ { | ||
"homepage": "http://www.highcharts.com", | ||
"version": "v5.0.7", | ||
"version": "v5.0.8", | ||
"author": "Highsoft AS <support@highcharts.com> (http://www.highcharts.com/about)", | ||
@@ -8,0 +8,0 @@ "main": "highcharts.js", |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -25,3 +26,2 @@ if (typeof module === 'object' && module.exports) { | ||
*/ | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -28,0 +28,0 @@ colors: ['#DDDF0D', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee', |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -29,0 +29,0 @@ colors: ['#DDDF0D', '#55BF3B', '#DF5353', '#7798BF', '#aaeeee', '#ff0066', '#eeaaee', |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
/* global document */ | ||
@@ -29,0 +29,0 @@ // Load the fonts |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -29,0 +29,0 @@ colors: ['#DDDF0D', '#7798BF', '#55BF3B', '#DF5353', '#aaeeee', '#ff0066', '#eeaaee', |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
/* global document */ | ||
@@ -29,0 +29,0 @@ // Load the fonts |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -29,0 +29,0 @@ colors: ['#058DC7', '#50B432', '#ED561B', '#DDDF00', '#24CBE5', '#64E572', '#FF9655', '#FFF263', '#6AF9C4'], |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
/* global document */ | ||
@@ -29,0 +29,0 @@ // Load the fonts |
/** | ||
* @license Highcharts JS v5.0.7 (2017-01-17) | ||
* @license Highcharts JS v5.0.8 (2017-03-08) | ||
* | ||
@@ -8,2 +8,3 @@ * (c) 2009-2016 Torstein Honsi | ||
*/ | ||
'use strict'; | ||
(function(factory) { | ||
@@ -26,3 +27,2 @@ if (typeof module === 'object' && module.exports) { | ||
'use strict'; | ||
Highcharts.theme = { | ||
@@ -29,0 +29,0 @@ colors: ['#514F78', '#42A07B', '#9B5E4A', '#72727F', '#1F949A', '#82914E', '#86777F', '#42A07B'], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
10653101
141
202207