/* Highcharts JS v6.0.4 (2017-12-15) Boost module (c) 2010-2017 Highsoft AS Author: Torstein Honsi License: www.highcharts.com/license */ (function(v){"object"===typeof module&&module.exports?module.exports=v:v(Highcharts)})(function(v){(function(l){function v(){var a=Array.prototype.slice.call(arguments),c=-Number.MAX_VALUE;y(a,function(a){if("undefined"!==typeof a&&null!==a&&"undefined"!==typeof a.length&&0=(b.options.boostThreshold||Number.MAX_VALUE)&&++c;a.boostForceChartBoost=f&&d===a.series.length&&0f||0>c)c=0;if(!d||d>f)d=f;a.drawArrays(a[(e||"points").toUpperCase()],c/l,(d-c)/l);return!0},allocate:function(a){g=-1;n=new Float32Array(4*a)},push:function(a,b,c,d){n&&(n[++g]=a,n[++g]=b,n[++g]=c,n[++g]=d)}}}function la(a){function c(a){var b,c;return a.isSeriesBoosting?(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:N[a.type]&&(b*=2),b):0}function d(){e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}function f(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,f){c(f);q.usePreallocated?A.push(a,b,d?1:0,e||1):(E.push(a),E.push(b),E.push(d?1:0),E.push(e||1))}function e(a,b,e,f,r){c(r);d(a+e,b);c(r);d(a, b);c(r);d(a,b+f);c(r);d(a,b+f);c(r);d(a+e,b+f);c(r);d(a+e,b)}function f(a){q.useGPUTranslations||(b.skipTranslation=!0,a.x=H.toPixels(a.x,!0),a.y=J.toPixels(a.y,!0));d(a.x,a.y,0,2)}var ma=a.pointArrayMap&&"low,high"===a.pointArrayMap.join(","),h=a.chart,r=a.options,m=!!r.stacking,g=r.data,n=a.xAxis.getExtremes(),k=n.min,n=n.max,w=a.yAxis.getExtremes(),z=w.min,w=w.max,p=a.xData||r.xData||a.processedXData,D=a.yData||r.yData||a.processedYData,v=a.zData||r.zData||a.processedZData,J=a.yAxis,H=a.xAxis, Z=a.chart.plotHeight,T=!p||0===p.length,t=a.points||!1,F=!1,C=!1,x,Q,R,g=m?a.data:p||g,p={x:Number.MIN_VALUE,y:0},P={x:Number.MIN_VALUE,y:0},M=0,u,S,B=-1,I=!1,G=!1,Y="undefined"===typeof h.index,O=!1,U=!1,K=N[a.type],L=!1,aa=!0;if(!(r.boostData&&0b.node.levelDynamic)return 1;if(a.node.levelDynamic< b.node.levelDynamic)return-1}return 0}),y(t,function(b){var c=b.plotY,d;"undefined"===typeof c||isNaN(c)||null===b.y||(c=b.shapeArgs,d=b.series.pointAttribs(b),b=d["stroke-width"]||0,Q=l.color(d.fill).rgba,Q[0]/=255,Q[1]/=255,Q[2]/=255,"treemap"===a.type&&(b=b||1,R=l.color(d.stroke).rgba,R[0]/=255,R[1]/=255,R[2]/=255,e(c.x,c.y,c.width,c.height,R),b/=2),"heatmap"===a.type&&h.inverted&&(c.x=H.len-c.x,c.y=J.len-c.y,c.width=-c.width,c.height=-c.height),e(c.x+b,c.y+b,c.width-2*b,c.height-2*b,Q))});else{for(;B< g.length-1;){x=g[++B];if(Y)break;T?(t=x[0],u=x[1],g[B+1]&&(G=g[B+1][0]),g[B-1]&&(I=g[B-1][0]),3<=x.length&&(S=x[2],x[2]>b.zMax&&(b.zMax=x[2]),x[2]b.zMax&&(b.zMax=v[B]),v[B]=k&&G<=n&&(O=!0);I&&I>=k&&I<=n&&(U=!0);ma?(T&&(u=x.slice(1,3)),u=u[1]):m&&(t=x.x,u=x.stackY);a.requireSorting||(aa=u>=z&&u<=w);t>n&&P.x= k&&t<=n&&(L=!0),L||O||U)q.useGPUTranslations||(b.skipTranslation=!0,t=H.toPixels(t,!0),u=J.toPixels(u,!0),u>Z&&(u=Z)),K&&(x=0,0>u&&(x=u,u=0),q.useGPUTranslations||(x=J.toPixels(x,!0)),d(t,x,0,0,!1)),b.hasMarkers&&!1!==F&&(a.closestPointRangePx=Math.min(a.closestPointRangePx,Math.abs(t-F))),!q.useGPUTranslations&&!q.usePreallocated&&F&&1>t-F&&C&&1>Math.abs(u-C)?q.debug.showSkipSummary&&++M:(r.step&&d(t,C,0,2,!1),d(t,u,0,"bubble"===a.type?S||1:2,!1),F=t,C=u)}q.debug.showSkipSummary&&console.log("skipped points:", M);F||(f(p),f(P))}}function b(){w=[];P.data=E=[];T=[];A&&A.destroy()}function m(a){h&&(h.setUniform("xAxisTrans",a.transA),h.setUniform("xAxisMin",a.min),h.setUniform("xAxisMinPad",a.minPixelPadding),h.setUniform("xAxisPointRange",a.pointRange),h.setUniform("xAxisLen",a.len),h.setUniform("xAxisPos",a.pos),h.setUniform("xAxisCVSCoord",!a.horiz))}function g(a){h&&(h.setUniform("yAxisTrans",a.transA),h.setUniform("yAxisMin",a.min),h.setUniform("yAxisMinPad",a.minPixelPadding),h.setUniform("yAxisPointRange", a.pointRange),h.setUniform("yAxisLen",a.len),h.setUniform("yAxisPos",a.pos),h.setUniform("yAxisCVSCoord",!a.horiz))}function n(a,b){h.setUniform("hasThreshold",a);h.setUniform("translatedThreshold",b)}function k(c){if(c)z=c.chartWidth||800,J=c.chartHeight||400;else return!1;if(!e||!z||!J)return!1;q.debug.timeRendering&&console.time("gl rendering");e.canvas.width=z;e.canvas.height=J;h.bind();e.viewport(0,0,z,J);h.setPMatrix([2/z,0,0,0,0,-(2/J),0,0,0,0,-2,0,-1,1,-1,1]);h.setPlotHeight(c.plotHeight); 12*((c.marker?c.marker.radius:10)||10)),k=a.series.pointAttribs&&a.series.pointAttribs().fill||a.series.color;a.series.fillOpacity&&c.fillOpacity&& (k=(new ca(k)).setOpacity(C(c.fillOpacity,1)).get());c.colorByPoint&&(k=a.series.chart.options.colors[b]);k=l.color(k).rgba;q.useAlpha||(k[3]=1);"lines"===a.drawMode&&q.useAlpha&&1>k[3]&&(k[3]/=10);"add"===c.boostBlending?(e.blendFunc(e.SRC_ALPHA,e.ONE),e.blendEquation(e.FUNC_ADD)):"mult"===c.boostBlending?e.blendFunc(e.DST_COLOR,e.ZERO):"darken"===c.boostBlending?(e.blendFunc(e.ONE,e.ONE),e.blendEquation(e.FUNC_MIN)):e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA); h.reset();0=(d.options.boostThreshold||Number.MAX_VALUE)}var d=this,f=this.options.data;c(f)&&"heatmap"!==this.type&&"treemap"!==this.type&& !this.options.stacking&&this.hasExtremes&&this.hasExtremes(!0)||(a.apply(this,Array.prototype.slice.call(arguments,1)),f=this.processedXData);(this.isSeriesBoosting=c(f))?this.enterBoost():this.exitBoost&&this.exitBoost()});k(p.prototype,"setVisible",function(a,c,d){a.call(this,c,d);!1===this.visible&&this.canvas&&this.renderTarget&&(this.ogl&&this.ogl.clear(),this.boostClear())});p.prototype.enterBoost=function(){this.alteredByBoost=[];y(["allowDG","directTouch","stickyTracking"],function(a){this.alteredByBoost.push({prop:a, val:this[a],own:this.hasOwnProperty(a)})},this);this.directTouch=this.allowDG=!1;this.stickyTracking=!0;this.animate=null;this.labelBySeries&&(this.labelBySeries=this.labelBySeries.destroy())};p.prototype.exitBoost=function(){y(this.alteredByBoost||[],function(a){a.own?this[a.prop]=a.val:delete this[a.prop]},this);this.boostClear&&this.boostClear()};p.prototype.hasExtremes=function(a){var c=this.options,d=this.xAxis&&this.xAxis.options,f=this.yAxis&&this.yAxis.options;return c.data.length>(c.boostThreshold|| Number.MAX_VALUE)&&I(f.min)&&I(f.max)&&(!a||I(d.min)&&I(d.max))};p.prototype.destroyGraphics=function(){var a=this,c=this.points,d,f;if(c)for(f=0;f=z&&d<=y),null!==d&&c>=A&&c<=e&&l))if(a=Math.ceil(k.toPixels(c,!0)),I){if(void 0===r||a===C){F||(f=d);if(void 0===K||d>L)L=d,K=b;if(void 0===r||f