!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["perspective-view-highcharts"]=e():t["perspective-view-highcharts"]=e()}(window,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=47)}([function(t,e,i){var n=i(13)("wks"),o=i(11),r=i(1).Symbol,s="function"==typeof r;(t.exports=function(t){return n[t]||(n[t]=s&&r[t]||(s?r:o)("Symbol."+t))}).store=n},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e,i){var n=i(8);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){var n=i(6),o=i(18);t.exports=i(4)?function(t,e,i){return n.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){t.exports=!i(5)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,i){var n=i(2),o=i(36),r=i(24),s=Object.defineProperty;e.f=i(4)?Object.defineProperty:function(t,e,i){if(n(t),e=r(e,!0),n(i),o)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,i){var n=i(1),o=i(3),r=i(7),s=i(11)("src"),a=i(58),l=(""+a).split("toString");i(14).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,i,a){var h="function"==typeof i;h&&(r(i,"name")||o(i,"name",e)),t[e]!==i&&(h&&(r(i,s)||o(i,s,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:a?t[e]?t[e]=i:o(t,e,i):(delete t[e],o(t,e,i)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[s]||a.call(this)}))},function(t,e,i){var n=i(63),o=i(17);t.exports=function(t){return n(o(t))}},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e,i){var n=i(14),o=i(1),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(15)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){var i=t.exports={version:"2.6.10"};"number"==typeof __e&&(__e=i)},function(t,e){t.exports=!1},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){var n=i(40),o=i(27);t.exports=Object.keys||function(t){return n(t,o)}},function(t,e,i){var n=i(16),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e,i){"use strict";var n,o,r=i(22),s=RegExp.prototype.exec,a=String.prototype.replace,l=s,h=(n=/a/,o=/b*/g,s.call(n,"a"),s.call(o,"a"),0!==n.lastIndex||0!==o.lastIndex),c=void 0!==/()??/.exec("")[1];(h||c)&&(l=function(t){var e,i,n,o,l=this;return c&&(i=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),h&&(e=l.lastIndex),n=s.call(l,t),h&&n&&(l.lastIndex=l.global?n.index+n[0].length:e),c&&n&&n.length>1&&a.call(n[0],i,(function(){for(o=1;o1||"".split(/.?/).length?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(o,t,e);for(var r,s,a,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,u=void 0===e?4294967295:e>>>0,f=new RegExp(t.source,c+"g");(r=h.call(f,o))&&!((s=f.lastIndex)>d&&(l.push(o.slice(d,r.index)),r.length>1&&r.index=u));)f.lastIndex===r.index&&f.lastIndex++;return d===o.length?!a&&f.test("")||l.push(""):l.push(o.slice(d)),l.length>u?l.slice(0,u):l}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var o=t(this),r=null==i?void 0:i[e];return void 0!==r?r.call(i,o,n):f.call(String(o),i,n)},function(t,e){var n=c(f,t,this,e,f!==i);if(n.done)return n.value;var h=o(t),p=String(this),g=r(h,RegExp),m=h.unicode,x=(h.ignoreCase?"i":"")+(h.multiline?"m":"")+(h.unicode?"u":"")+(u?"y":"g"),y=new g(u?h:"^(?:"+h.source+")",x),v=void 0===e?4294967295:e>>>0;if(0===v)return[];if(0===p.length)return null===l(y,p)?[p]:[];for(var b=0,w=0,k=[];w")})),d=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var p=a(t),u=!r((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),f=u?!r((function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[h]=function(){return i}),i[p](""),!e})):void 0;if(!u||!f||"replace"===t&&!c||"split"===t&&!d){var g=/./[p],m=i(s,p,""[t],(function(t,e,i,n,o){return e.exec===l?u&&!o?{done:!0,value:g.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}})),x=m[0],y=m[1];n(String.prototype,t,x),o(RegExp.prototype,p,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,i){t.exports=!i(4)&&!i(5)((function(){return 7!=Object.defineProperty(i(37)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,i){var n=i(8),o=i(1).document,r=n(o)&&n(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e,i){for(var n=i(60),o=i(19),r=i(9),s=i(1),a=i(3),l=i(25),h=i(0),c=h("iterator"),d=h("toStringTag"),p=l.Array,u={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=o(u),g=0;gdocument.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[r[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=n(t),i=new a,a.prototype=null,i[s]=t):i=l(),void 0===e?i:o(i,e)}},function(t,e,i){var n=i(7),o=i(10),r=i(67)(!1),s=i(26)("IE_PROTO");t.exports=function(t,e){var i,a=o(t),l=0,h=[];for(i in a)i!=s&&n(a,i)&&h.push(i);for(;e.length>l;)n(a,i=e[l++])&&(~r(h,i)||h.push(i));return h}},function(t,e,i){i(42)("asyncIterator")},function(t,e,i){var n=i(1),o=i(14),r=i(15),s=i(43),a=i(6).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=r?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,i){e.f=i(0)},function(t,e,i){"use strict";var n=i(1),o=i(7),r=i(4),s=i(23),a=i(9),l=i(72).KEY,h=i(5),c=i(13),d=i(28),p=i(11),u=i(0),f=i(43),g=i(42),m=i(73),x=i(74),y=i(2),v=i(8),b=i(29),w=i(10),k=i(24),A=i(18),M=i(39),S=i(75),T=i(76),P=i(45),C=i(6),L=i(19),O=T.f,I=C.f,D=S.f,z=n.Symbol,R=n.JSON,_=R&&R.stringify,E=u("_hidden"),B=u("toPrimitive"),N={}.propertyIsEnumerable,W=c("symbol-registry"),G=c("symbols"),X=c("op-symbols"),H=Object.prototype,Y="function"==typeof z&&!!P.f,j=n.QObject,F=!j||!j.prototype||!j.prototype.findChild,V=r&&h((function(){return 7!=M(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(t,e,i){var n=O(H,e);n&&delete H[e],I(t,e,i),n&&t!==H&&I(H,e,n)}:I,U=function(t){var e=G[t]=M(z.prototype);return e._k=t,e},K=Y&&"symbol"==typeof z.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof z},q=function(t,e,i){return t===H&&q(X,e,i),y(t),e=k(e,!0),y(i),o(G,e)?(i.enumerable?(o(t,E)&&t[E][e]&&(t[E][e]=!1),i=M(i,{enumerable:A(0,!1)})):(o(t,E)||I(t,E,A(1,{})),t[E][e]=!0),V(t,e,i)):I(t,e,i)},Z=function(t,e){y(t);for(var i,n=m(e=w(e)),o=0,r=n.length;r>o;)q(t,i=n[o++],e[i]);return t},$=function(t){var e=N.call(this,t=k(t,!0));return!(this===H&&o(G,t)&&!o(X,t))&&(!(e||!o(this,t)||!o(G,t)||o(this,E)&&this[E][t])||e)},J=function(t,e){if(t=w(t),e=k(e,!0),t!==H||!o(G,e)||o(X,e)){var i=O(t,e);return!i||!o(G,e)||o(t,E)&&t[E][e]||(i.enumerable=!0),i}},Q=function(t){for(var e,i=D(w(t)),n=[],r=0;i.length>r;)o(G,e=i[r++])||e==E||e==l||n.push(e);return n},tt=function(t){for(var e,i=t===H,n=D(i?X:w(t)),r=[],s=0;n.length>s;)!o(G,e=n[s++])||i&&!o(H,e)||r.push(G[e]);return r};Y||(a((z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(i){this===H&&e.call(X,i),o(this,E)&&o(this[E],t)&&(this[E][t]=!1),V(this,t,A(1,i))};return r&&F&&V(H,t,{configurable:!0,set:e}),U(t)}).prototype,"toString",(function(){return this._k})),T.f=J,C.f=q,i(46).f=S.f=Q,i(30).f=$,P.f=tt,r&&!i(15)&&a(H,"propertyIsEnumerable",$,!0),f.f=function(t){return U(u(t))}),s(s.G+s.W+s.F*!Y,{Symbol:z});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;et.length>it;)u(et[it++]);for(var nt=L(u.store),ot=0;nt.length>ot;)g(nt[ot++]);s(s.S+s.F*!Y,"Symbol",{for:function(t){return o(W,t+="")?W[t]:W[t]=z(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in W)if(W[e]===t)return e},useSetter:function(){F=!0},useSimple:function(){F=!1}}),s(s.S+s.F*!Y,"Object",{create:function(t,e){return void 0===e?M(t):Z(M(t),e)},defineProperty:q,defineProperties:Z,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var rt=h((function(){P.f(1)}));s(s.S+s.F*rt,"Object",{getOwnPropertySymbols:function(t){return P.f(b(t))}}),R&&s(s.S+s.F*(!Y||h((function(){var t=z();return"[null]"!=_([t])||"{}"!=_({a:t})||"{}"!=_(Object(t))}))),"JSON",{stringify:function(t){for(var e,i,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(i=e=n[1],(v(e)||void 0!==t)&&!K(t))return x(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!K(e))return e}),n[1]=e,_.apply(R,n)}}),z.prototype[B]||i(3)(z.prototype,B,z.prototype.valueOf),d(z,"Symbol"),d(Math,"Math",!0),d(n.JSON,"JSON",!0)},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(40),o=i(27).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},function(t,e,i){var n,o,r,s,a,l,h,c,d,p,u,f,g,m,x,y;window,t.exports=(n=i(48),o=i(49),r=i(38),s=i(31),a=i(41),l=i(44),h=i(77),c=i(78),d=i(79),p=i(80),u=i(81),f=i(82),g=i(83),m=i(84),x=i(87),y=i(88),function(t){var e={};function i(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=19)}([function(t,e,i){"use strict";i(3),i(5),i(6);var n=i(1),o=i.n(n),r=i(8),s=i.n(r),a=i(9),l=i.n(a),h=i(10),c=i.n(h),d=i(11),p=i.n(d),u=i(12),f=i.n(u),g=i(13),m=i.n(g),x=i(14),y=i.n(x),v=i(15),b=i.n(v);const w=o.a;let k=w.Axis.prototype,A=k.render;c()(o.a),p()(o.a),m()(o.a),y()(o.a),b()(o.a),f()(o.a);const M=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],S=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"];w.setOptions({colors:S}),function(t){t.wrap(t.seriesTypes.scatter.prototype,"translate",(function(t){t.apply(this,Array.prototype.slice.call(arguments,1)),"colored"===this.chart.userOptions.chart.type.slice(0,7)&&this.translateColors.call(this)}));var e=t.seriesTypes,i=t.merge,n=t.extendClass,o=t.getOptions().plotOptions,r={optionalAxis:"colorAxis",colorKey:"colorValue",translateColors:e.heatmap&&e.heatmap.prototype.translateColors};o.coloredColumn=i(o.column,{}),e.coloredColumn=n(e.column,i(r,{type:"coloredColumn",axisTypes:["xAxis","yAxis","colorAxis"]})),o.coloredScatter=i(o.scatter,{}),e.coloredScatter=n(e.scatter,i(r,{type:"coloredScatter",axisTypes:["xAxis","yAxis","colorAxis"]})),o.coloredBubble=i(o.bubble,{}),e.coloredBubble=n(e.bubble,i(r,{type:"coloredBubble",axisTypes:["xAxis","yAxis","colorAxis"]})),t.wrap(t.seriesTypes.sunburst.prototype,"translate",(function(t,e){t.call(this,e),this.translateColors()})),t.seriesTypes.sunburst.prototype.translateColors=function(){var e=this,i=this.options.nullColor,n=this.colorAxis,o=this.colorKey;t.each(this.data,(function(t){var r,s=t[o];(r=t.options.color||(t.value?n&&void 0!==s?n.toColor(s,t):t.color||e.color:i))&&(t.color=r)}))},t.seriesTypes.sunburst.prototype.colorKey="colorValue",k.render=function(){if(this.isGrouped&&(this.labelsGridPath=[]),void 0===this.originalTickLength&&(this.originalTickLength=this.options.tickLength),this.options.tickLength=this.isGrouped?.001:this.originalTickLength,A.call(this),!this.isGrouped)return this.labelsGrid&&this.labelsGrid.attr({visibility:"hidden"}),!1;var t=this,e=t.options,i=t.hasVisibleSeries||t.hasData,n=t.labelsGrid,o=t.labelsGridPath,r=t.tickWidth;return n||(n=t.labelsGrid=t.chart.renderer.path().attr({strokeWidth:r,"stroke-width":r,stroke:e.tickColor||""}).add(t.axisGroup),e.tickColor||n.addClass("highcharts-tick")),n.attr({d:o,visibility:i?"visible":"hidden"}),t.labelGroup.attr({visibility:i?"visible":"hidden"}),function t(e,i,n){for(var o,r=e.length;r--;)(o=e[r][i])&&t(o,i,n),n(e[r])}(t.categoriesTree,"categories",(function(e){var n=e.tick;return!!n&&(n.startAt+n.leaves-1t.max?(n.label.hide(),n.destroyed=0):n.label.attr({visibility:i?"visible":"hidden"}),!0)})),!0}}(w);var T=i(16);function P(t){let e;e=window.ShadyCSS?window.ShadyCSS.getComputedStyleValue(this,"--highcharts-".concat(t,"--gradient")):getComputedStyle(this).getPropertyValue("--highcharts-".concat(t,"--gradient"));const i=T.parse(e)[0].colorStops;return i.map((t,e)=>{let n;return n="rgb"===t.type?"rgb(".concat(t.value.join(","),")"):"#".concat(t.value),[Number.parseFloat(t.length?t.length.value/100:"".concat(e/(i.length-1))),n]})}const C=(()=>{let t;return function(e){if(e||void 0===t){t={};for(let e of["positive","negative","full"])t[e]=P.bind(this)(e)}return t}})();function L(t,e,i){let n,{positive:o,negative:r,full:s}=C.bind(this)(i);n=e[0]>=0?o:e[1]<=0?r:s,Object.assign(t,{colorAxis:{min:e[0],max:e[1],stops:n,reversed:!1,startOnTick:!1,endOnTick:!1}}),t.legend.reversed=!0,t.legend.floating=!1,t.legend.enabled=!0}i(4);const O="|";function I(t,e,i){let n,o=0;for(;o0&&i.length=this.depth&&(t.categories.push(z(i[i.length-1])),yield e)}}}class _{constructor(t,e){this.columns=t,this.depth=e,this.axis={name:"",depth:0,categories:[]},this.fill_axis()}add_label(t){let e={name:t[t.length-1],depth:t.length,categories:[]};for(var i=this.axis,n=0;n0&&e.length=this.depth){t.categories.push(z(e[e.length-1]));continue}}}class E{constructor(t){this.rows=t}*[Symbol.iterator](){for(let t of this.rows)void 0===this.columns&&(this.columns=Object.keys(t).filter(t=>"__ROW_PATH__"!==t),this.is_stacked=this.columns.map(t=>t.substr(t.lastIndexOf(O)+1,t.length)).filter((t,e,i)=>i.indexOf(t)===e).length>1),yield t}}class B{constructor(t,e){this.columns=t,this.column_names=Object.keys(this.columns).filter(t=>"__ROW_PATH__"!==t),this.is_stacked=this.column_names.map(t=>t.substr(t.lastIndexOf(O)+1,t.length)).filter((t,e,i)=>i.indexOf(t)===e).length>1,this.pivot_length=e}*[Symbol.iterator](){for(let t of this.column_names){let e=this.columns[t];if(this.columns.__ROW_PATH__){let t=[];for(let i=0;i1&&(n.y=t[e[1]],n.y=this.yaxis_clean.clean(n.y)),e.length>2){let o=t[e[2]];if("string"===this.schema[e[2]]){let t=this.color_clean.clean(o);n.marker={lineColor:t,fillColor:t}}else isNaN(o)||(i[0]=Math.min(i[0],o),i[1]=Math.max(i[1],o)),n.colorValue=o}return e.length>3&&(n.z=isNaN(t[e[3]])?1:t[e[3]]),"__ROW_PATH__"in t&&(n.name=t.__ROW_PATH__.join(", ")),n}}make_col(t,e,i,n,o,r){let s=[],a=t;if(0===t.length)return s;if(void 0===t.length){a=[];for(let i of e)a.push(t[i])}for(let t=0;t1&&(l.y=this.yaxis_clean.clean(a[1][t])),i>2){let i=a[2][t];if("string"===this.schema[e[2]]){let t=this.color_clean.clean(i);l.marker={lineColor:t,fillColor:t}}else isNaN(i)||(r[0]=Math.min(r[0],i),r[1]=Math.max(r[1],i)),l.colorValue=i}if(i>3){let e=a[3][t];l.z=isNaN(e)?1:e}s.push(l)}return s}}function G(t,e,i,n,o){const r=new B(t,n.length);let s=[],a=[1/0,-1/0],l=new W(e,r.column_names),h=r.columns.__ROW_PATH__;if(0===o.length){let t=D(l.make_col(r.columns,r.column_names,i.length,r.pivot_length,h,a)," ");s.push(t)}else{let t={};if(h){let t=[];for(let e=0;e0&&i.length=this.depth&&t.categories.push(z(i[i.length-1])),yield e}}}i(22);var H=i(2);function Y(t,e,i){const n=K(e,V(t,i));return"NaN"===n||null==n?"":"".concat(t,": ").concat(n,"
")}function j(t,e){if(e.length<=0)return"";let i=[];for(let n=0;n".concat(t[n],": ").concat(e[n],"
"));return i.join("")}function F(t){let e=[],i=t.parent;for(e.unshift(t.name);void 0!==i;)void 0!==i.name&&e.unshift(i.name),i=i.parent;return e}function V(t,e){return e[t]}function U(t){return void 0!==t&&" "!==t}function K(t,e){return"datetime"===e?new Date(t).toLocaleString("en-us",Object(H.get_type_config)("datetime").format):"date"===e?new Date(t).toLocaleString("en-us",Object(H.get_type_config)("date").format):"float"===e||"integer"===e?(i=t,"float"===e?Number.parseFloat(i).toLocaleString(Object(H.get_type_config)("float").format):Number.parseInt(i).toLocaleString(Object(H.get_type_config)("float").format)):t;var i}function q(t,e,...i){if((t.series[0].data?t.series[0].data.length*t.series.length:t.series.length)>5e3)return Object.assign(t,{boost:{useGPUTranslations:-1===i.indexOf("datetime")&&-1===i.indexOf("date"),usePreAllocated:-1===i.indexOf("datetime")&&-1===i.indexOf("date")}}),t.plotOptions.series.boostThreshold=1,t.plotOptions.series.turboThreshold=0,!0}function Z(t){let e=Math.min(6,Math.max(3,Math.floor((this.clientWidth+this.clientHeight)/Math.max(300,t.series[0].data.length/3))));t.plotOptions.coloredScatter={marker:{radius:e}},t.plotOptions.scatter={marker:{radius:e}}}function $(t,e,i,n,o,r){"string"===n?J(t,e,o,r):function(t,e,i,n){let o={type:["datetime","date"].indexOf(n)>-1?"datetime":void 0,startOnTick:!1,endOnTick:!1,title:{style:{color:"#666666",fontSize:"14px"},text:i}};"yAxis"===e&&Object.assign(o,{labels:{overflow:"justify"}}),Object.assign(t,{[e]:o})}(t,e,i,n)}function J(t,e,i,n){if("datetime"===i)Object.assign(t,{[e]:{categories:n.categories.map(t=>new Date(t).toLocaleString("en-us",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric"})),labels:{enabled:n.categories.length>0,autoRotation:[-5]}}});else if("date"===i)Object.assign(t,{[e]:{categories:n.categories.map(t=>new Date(t).toLocaleString("en-us",{year:"numeric",month:"numeric",day:"numeric"})),labels:{enabled:n.categories.length>0,autoRotation:[-5]}}});else{let i={categories:n.categories,labels:{enabled:n.categories.length>0,padding:0,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90]}};"yAxis"!==e||t.hasOwnProperty("boost")&&"heatmap"!==t.chart.type||Object.assign(i,{title:null,tickWidth:1,reversed:!0}),Object.assign(t,{[e]:i})}}function Q(t,e){let i="scatter",n="xy";"y_line"===e?(n="y",i="line"):"y_area"===e?(n="y",i="area"):"y_scatter"===e?(n="y",i="scatter"):e.indexOf("bar")>-1?(n="y",i="column"):"treemap"==e?(n="hierarchy",i="treemap"):"sunburst"==e?(n="hierarchy",i="sunburst"):"scatter"===e?(n="xy",i=t.length<=3?"scatter":"bubble"):"heatmap"===e&&(n="xyz",i="heatmap");const o=this,r=this._config,s=(a=r.aggregates,Object.keys(a));var a;const l={row:r.row_pivots,column:r.column_pivots};return{chart:{type:i,inverted:"x_"===e.slice(0,2),animation:!1,zoomType:"scatter"===e?"xy":"x",resetZoomButton:{position:{align:"left"}}},navigation:{buttonOptions:{enabled:!1}},credits:{enabled:!1},title:{text:null},legend:{align:"right",verticalAlign:"top",y:10,layout:"vertical",enabled:!1,itemStyle:{fontWeight:"normal"}},boost:{enabled:!1},plotOptions:{area:{stacking:"normal",marker:{enabled:!1,radius:0}},line:{marker:{enabled:!1,radius:0}},coloredScatter:{},scatter:{},column:{stacking:"normal",states:{hover:{brightness:-.1,borderColor:"#000000"}}},heatmap:{nullColor:"rgba(0,0,0,0)"},series:{animation:!1,nullColor:"rgba(0,0,0,0)",boostThreshold:0,turboThreshold:6e4,borderWidth:0,connectNulls:!0,lineWidth:-1===e.indexOf("line")?0:1.5,states:{hover:{lineWidthPlus:0}},point:{events:{click:async function(){let t=[],n=[];if("bubble"===i&&"scatter"===e||"scatter"===i&&"scatter"===e||"scatter"===i&&"line"===e)n=this.series.userOptions.name.split(", "),t=this.name?this.name.split(", "):[];else{if("column"!==i&&"line"!==i&&"scatter"!==i&&"area"!==i)return void console.log("Click dispatch for ".concat(e," ").concat(i," not supported."));n=this.series.userOptions.name.split(", "),t=F(this.category)}const a=r.row_pivots.map((e,i)=>[e,"==",t[i]]),l=r.column_pivots.map((t,e)=>[t,"==",n[e]]),h=r.filter.concat(a).concat(l).filter(t=>!!t[t.length-1]),c=this.index+1,d=c+1;let p=[];if("bubble"===i&&"scatter"===e||"scatter"===i&&"scatter"===e||"scatter"===i&&"line"===e)p=s;else{const t=this.series.userOptions?this.series.userOptions.stack:"",e=n[n.length-1];(t=>""==t.replace(/\s/g,""))(e)?p.push(t):p.push(e)}const u=await o._view.to_json({start_row:c,end_row:d});o.dispatchEvent(new CustomEvent("perspective-click",{bubbles:!0,composed:!0,detail:{column_names:p,config:{filters:h},row:u[0]}}))}}}}},tooltip:{animation:!1,backgroundColor:"#FFFFFF",borderColor:"#777777",followPointer:!1,valueDecimals:2,formatter:function(t){return o._view.schema(!1).then(e=>{let i=function(t,e,i,n,o){const r=o.row,s=o.column,a=r.length>0,l=s.length>0;if("y"===e){let e="",n="";a&&(e=j(r,F(t.key))),l&&(n=j(s,t.series.userOptions.name.split(", ")));const o=t.series.userOptions.stack,h=V(o,i);return"".concat(e,"\n ").concat(n,"\n ").concat(o,": ").concat(K(t.y,h),"")}if("xy"===e){const e=U(n[0]),o=U(n[1]),h=U(n[2]),c=U(n[3]);let d="",p="",u="",f="",g="",m="";return a&&(d=j(r,t.key.split(","))),l&&(p=j(s,t.point.series.name.split(","))),e&&(u=Y(n[0],t.x,i)),o&&(f=Y(n[1],t.y,i)),h&&(g=Y(n[2],t.point.colorValue,i)),c&&(m=Y(n[3],t.point.colorValue,i)),[d,p,u,f,g,m].join("")}if("xyz"===e)return"".concat(K(t.point.value),"");if("hierarchy"===e)return"".concat(t.point.id,": ").concat(K(t.x),"");let h;return h=t.x?t.x:t.y,h}(this,n,e,s,l);t.label.attr({text:i})}).catch(t=>console.error(t)),"Loading..."},positioner:function(t,e,i){let n,o,r=this.chart;return n=i.plotX+t>r.plotWidth?i.plotX+r.plotLeft-t-5:i.plotX+r.plotLeft,o=i.plotY+e>r.plotHeight?i.plotY+r.plotTop-e:i.plotY+r.plotTop,{x:n,y:o}}}}}var tt=i(17),et=i(18),it=i.n(et);function nt(){return Reflect.construct(HTMLElement,[],this.__proto__.constructor)}i.d(e,"a",(function(){return ot})),i.d(e,"b",(function(){return st})),Object.setPrototypeOf(nt.prototype,HTMLElement.prototype),Object.setPrototypeOf(nt,HTMLElement);const ot=Symbol("Highcharts private");function rt(t){let e;return this[ot]=this[ot]||{},e=this[ot].chart?this[ot].chart:this[ot].chart=document.createElement("perspective-highcharts"),document.body.contains(e)||(t.innerHTML="",t.appendChild(e)),e}const st=(t,e,i)=>(async function(n,o,r,s,a){if(e&&(this._config=await o.get_config(),r.cancelled))return;const l=await o.get_config(),h=l.row_pivots,c=l.column_pivots,d=l.columns,[p,u]=await Promise.all([o.schema(!1),this._table.schema(!1,!1)]);let f;if(r.cancelled)return;let g=[],m=d.length>0?d[0]:void 0,x=p[m],y=d.length>1?d[1]:void 0,v=p[y],b=u[h.length>0?h[h.length-1]:void 0],w=u[c.length>0?c[c.length-1]:void 0],k=d.length;try{if("scatter"===t){let e;e=s||a?await o.to_columns({end_col:s,end_row:a,leaves_only:!0}):await o.to_columns();const n=g[0]=Q.call(this,d,t),[r,l,u,f]=G(e,p,d,h,c);n.legend.floating=r.length<=20,n.legend.enabled=c.length>0,n.series=r,n.colors=r.length<=10?M:S,u[0]!==1/0&&(d.length<=3?n.chart.type="coloredScatter":n.chart.type="coloredBubble",L.call(this,n,u,i)),k<3&&q(n,0,v),$(n,"xAxis",m,x,x,l),$(n,"yAxis",y,v,v,f),Z.call(this,n)}else if("heatmap"===t){let e;e=s||a?await o.to_json({end_col:s,end_row:a,leaves_only:!1}):await o.to_json();let n=g[0]=Q.call(this,d,t),[r,l,c,p]=function(t,e,i){let[n,o]=function(t,e){let i=new R(e.length,t),n=new E(i);var o=[];for(let t of n)for(let e of n.columns){let i=e.split(O),r=i[i.length-1];i=n.is_stacked?i.join(", ")||r:i.slice(0,i.length-1).join(", ")||" ";let s=I(o,i,r),a=t[e];a=void 0===a||""===a?null:a,s.data.push(a)}return[o,i.top]}(t,e);"string"!==i&&void 0!==i&&(n=n.reverse());let r=[1/0,-1/0],s=function(t){let e=t.map(t=>t.name.split(",")),i={name:null,depth:0,categories:[]},n=e[0].length;for(let t=0;t0&&r.categories[i-1].name==e)r=r.categories[i-1];else{let i={name:e,depth:t+1,categories:[]};r.categories.push(i),r=i}}}}return i}(n),a=[];for(let t=0;tnull===t?"-":t),o=n.join(", "),a=n.slice(-1)[0],l=n.slice(0,-1).join(", ");for(let n=0;n1?t[r.columns[n+1]]:void 0,parent:l,leaf:t.__ROW_PATH__.length===e.length})}}let a=function(t,e){let i=[];for(let n of t){let t=n.name.split(O);i.push({layoutAlgorithm:"squarified",allowDrillToNode:!0,alternateStartingDirection:!0,data:n.data.slice(1),levels:e,title:t,stack:n.stack})}return i}(s,function(t){let e=[];for(let i=0;i=2){n=[1/0,-1/0];for(let t of e){let e=t.data;for(let t=1;t1&&(o.title.text=e.title),o.plotOptions.series.borderWidth=1,o.legend.floating=!1,r&&L.call(this,o,r,i),g.push(o)}}else if("line"===t){let e,i=g[0]=Q.call(this,d,t);if(0===c.length){let t;t=s||a?await o.to_columns({end_col:s,end_row:a,leaves_only:!0}):await o.to_columns(),e=await G(t,p,d,h,c)}else{let t;t=s||a?await o.to_json({end_col:s,end_row:a,leaves_only:!1}):await o.to_json(),e=await function(t,e,i,n,o){let r=new R(n.length,t),s=new E(r),a=[],l=[1/0,-1/0],h=new W(e,i);if(0===o.length){let t=I(a," ");for(let e of s){let n=h.make(e,i,l);n&&t.data.push(n)}}else{let e,i,n=[],o=Object.keys(t[0]).filter(t=>"__ROW_PATH__"!==t);for(let t of o){let o=t.split(O),r=o.slice(0,o.length-1).join(", ")||" ";if(void 0===e&&(e=r),i=I(a,e),e===r)n.push(t);else{for(let t of s){let e=h.make(t,n,l);e&&i.data.push(e)}e=r,n=[t]}}for(let t of s){let e=h.make(t,n,l);e&&i.data.push(e)}}return[a,{categories:h.xaxis_clean.names},l,{categories:h.yaxis_clean.names}]}(t,p,d,h,c)}const n=e[0],r=e[1],l=e[3],u=n.length<=10?M:S;i.legend.floating=n.length<=20,i.legend.enabled=c.length>0,i.series=n,i.plotOptions.scatter.marker={enabled:!1,radius:0},i.colors=u,q(i,0,v)&&delete i.chart.type,$(i,"xAxis",m,x,x,r),$(i,"yAxis",y,v,v,l)}else{let e,i=g[0]=Q.call(this,d,t);e=s||a?await o.to_columns({end_col:s,end_row:a,leaves_only:!1}):await o.to_columns();let[n,r]=function(t,e){let i=[],n=new _(t,e.length),o=new B(t,e.length);for(let t of o){let e=t.name.split(O),n=e[e.length-1];e=o.is_stacked?e.join(", ")||n:e.slice(0,e.length-1).join(", ")||" ";let r=D(t.data.map(t=>void 0===t||""===t?null:t),e,n);i.push(r)}return[i,n.axis]}(e,h);i.series=n,i.colors=n.length<=10?M:S,i.legend.enabled=c.length>0||n.length>1,i.legend.floating=n.length<=20,i.plotOptions.series.dataLabels={allowOverlap:!1,padding:10},(t.indexOf("scatter")>-1||t.indexOf("line")>-1)&&q(i,0,v),J(i,"xAxis",b,r),Object.assign(i,{yAxis:{startOnTick:!1,endOnTick:!1,title:{text:d.join(", "),style:{color:"#666666",fontSize:"14px"}},labels:{overflow:"justify"}}})}}finally{f=rt.call(this,n),(i||this.hasAttribute("updating"))&&f.delete()}f.render(t,g,this)});Object(tt.bindTemplate)(l.a,s.a)(class extends nt{constructor(){super(),this._charts=[]}connectedCallback(){this._container=this.shadowRoot.querySelector("#container")}render(t,e,i){if(this._charts.length>0&&this._charts.length===e.length){let n=0;for(let r=0;ro.a.chart(e,t))}for(let t=0;tthis._container.contains(t.renderTo))||(this.remove(),this._charts.map(t=>this._container.appendChild(t.renderTo))),e.length>1&&this.resize(),it()()&&setTimeout(()=>this.resize())}resize(){this._charts&&this._charts.length>0&&this._charts.map(t=>t.reflow())}remove(){this._charts=[];for(let t of Array.prototype.slice.call(this._container.children))"DIV"===t.tagName&&this._container.removeChild(t)}delete(){for(let t of this._charts)try{t.destroy()}catch(t){console.warn("Scatter plot destroy() call failed - this is probably leaking memory")}this.remove()}})},function(t,e){t.exports=n},function(t,e){t.exports=o},function(t,e){t.exports=r},function(t,e){t.exports=s},function(t,e){t.exports=a},function(t,e){t.exports=l},function(t,e,i){"use strict";(function(t){i(3);var n=i(0);function o(){this[n.a]&&this[n.a].chart.resize()}function r(){this[n.a]&&this[n.a].chart.delete()}const s={x_bar:{name:"X Bar Chart",create:Object(n.b)("x_bar",!0),update:Object(n.b)("x_bar",!1),resize:o,initial:{type:"number",count:1},selectMode:"select",delete:r,max_cells:25e3,max_columns:100},y_bar:{name:"Y Bar Chart",create:Object(n.b)("y_bar",!0),update:Object(n.b)("y_bar",!1),resize:o,initial:{type:"number",count:1},selectMode:"select",delete:r,max_cells:25e3,max_columns:100},y_line:{name:"Y Line Chart",create:Object(n.b)("y_line",!0),update:Object(n.b)("y_line",!1),resize:o,initial:{type:"number",count:1},selectMode:"select",delete:r,max_cells:25e3,max_columns:100},y_scatter:{name:"Y Scatter Chart",create:Object(n.b)("y_scatter",!0),update:Object(n.b)("y_scatter",!1),resize:o,initial:{type:"number",count:1},selectMode:"select",delete:r,max_cells:1e5,max_columns:100},y_area:{name:"Y Area Chart",create:Object(n.b)("y_area",!0),update:Object(n.b)("y_area",!1),resize:o,initial:{type:"number",count:1},selectMode:"select",delete:r,max_cells:25e3,max_columns:100},xy_line:{name:"X/Y Line Chart",create:Object(n.b)("line",!0),update:Object(n.b)("line",!1),resize:o,initial:{type:"number",count:2,names:["X Axis","Y Axis"]},selectMode:"toggle",delete:r,max_cells:1e5,max_columns:100},xy_scatter:{name:"X/Y Scatter Chart",create:Object(n.b)("scatter",!0),update:Object(n.b)("scatter",!1),resize:o,styleElement:Object(n.b)("scatter",!1,!0),initial:{type:"number",count:2,names:["X Axis","Y Axis","Color","Size"]},selectMode:"toggle",delete:r,max_cells:1e5,max_columns:100},treemap:{name:"Treemap",create:Object(n.b)("treemap",!0),update:Object(n.b)("treemap",!1),resize:o,styleElement:Object(n.b)("treemap",!1,!0),initial:{type:"number",count:2,names:["Size","Color"]},selectMode:"toggle",delete:function(){},max_cells:2500,max_columns:24},sunburst:{name:"Sunburst",create:Object(n.b)("sunburst",!0),update:Object(n.b)("sunburst",!1),styleElement:Object(n.b)("sunburst",!1,!0),resize:o,initial:{type:"number",count:2,names:["Size","Color"]},selectMode:"toggle",delete:function(){},max_cells:1e3,max_columns:24},heatmap:{name:"Heatmap",create:Object(n.b)("heatmap",!0),update:Object(n.b)("heatmap",!1),resize:o,initial:{type:"number",count:1},selectMode:"select",delete:r,max_cells:2e4,max_columns:24}};e.a=function(...e){e=e.length>0?e:Object.keys(s);for(const i of e)t.registerPlugin(i,s[i])}}).call(this,i(20))},function(t,e,i){(t.exports=i(21)(!1)).push([t.i,":host{background-color:var(--plugin--background,#fff)}:host #container{position:absolute;width:calc(100% - 30px);height:calc(100% - 30px);display:grid;margin:15px;justify-content:stretch;grid-template-rows:repeat(auto-fit,minmax(400px,1fr));grid-template-columns:repeat(auto-fit,minmax(400px,1fr));overflow-y:auto}:host .chart{position:relative;width:100%;height:100%;min-width:0;min-height:0}:host .chart:last-child:first-child{position:absolute;top:0;left:0;right:0;bottom:0}:host text,:host tspan{font-family:var(--interface--font-family,Arial,sans-serif);fill:var(--highcharts-label--fill,#666)!important}:host .highcharts-null-point{fill:none}:host .highcharts-background{display:none}:host .highcharts-label-box.highcharts-tooltip-box:not([isShadow]){fill:var(--highcharts-tooltip--background,#fff)}:host .highcharts-yaxis-grid path.highcharts-grid-line{stroke:var(--highcharts-grid-line--stroke,#e6e6e6)}:host .highcharts-sunburst-series path,:host .highcharts-treemap-series rect{stroke:var(--plugin--background,#fff)}:host rect,:host svg image{opacity:var(--highcharts-rect--opacity,.5)}:host circle,:host path{opacity:var(--highcharts-circle--opacity,.8)}",""])},function(t,e){t.exports=''},function(t,e){t.exports=h},function(t,e){t.exports=c},function(t,e){t.exports=d},function(t,e){t.exports=p},function(t,e){t.exports=u},function(t,e){t.exports=f},function(t,e){t.exports=g},function(t,e){t.exports=m},function(t,e){t.exports=x},function(t,e,i){"use strict";i.r(e);var n=i(7);Object(n.a)()},function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var i=function(t,e){var i,n=t[1]||"",o=t[3];if(!o)return n;if(e&&"function"==typeof btoa){var r=(i=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),s=o.sources.map((function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"}));return[n].concat(s).concat([r]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+i+"}":i})).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;oparseInt(n.split("Firefox/")[1],10),e.Highcharts?e.Highcharts.error(16,!0):{product:"Highcharts",version:"6.1.0",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:l,hasTouch:i&&void 0!==i.documentElement.ontouchstart,isMS:r,isWebKit:-1!==n.indexOf("AppleWebKit"),isFirefox:s,isChrome:a,isSafari:!a&&-1!==n.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(n),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:o,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]});!function(t){t.timers=[];var e=t.charts,i=t.doc,n=t.win;t.error=function(e,i){if(e=t.isNumber(e)?"Highcharts error #"+e+": www.highcharts.com/errors/"+e:e,i)throw Error(e);n.console&&console.log(e)},t.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},t.Fx.prototype={dSetter:function(){var t,e=this.paths[0],i=this.paths[1],n=[],o=this.now,r=e.length;if(1===o)n=this.toD;else if(r===i.length&&1>o)for(;r--;)t=parseFloat(e[r]),n[r]=isNaN(t)?i[r]:o*parseFloat(i[r]-t)+t;else n=i;this.elem.attr("d",n,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,n&&n.call(t,i,this)},run:function(e,i,o){var r=this,s=r.options,a=function(t){return!a.stopped&&r.step(t)},l=n.requestAnimationFrame||function(t){setTimeout(t,13)},h=function(){for(var e=0;e=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),i=l[this.prop]=!0,t.objectEach(l,(function(t){!0!==t&&(i=!1)})),i&&s&&s.call(r),e=!1):(this.pos=o.easing((n-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},initPath:function(e,i,n){function o(t){var e,i;for(c=t.length;c--;)e="M"===t[c]||"L"===t[c],i=/[a-zA-Z]/.test(t[c+3]),e&&i&&t.splice(c+1,0,t[c+1],t[c+2],t[c+1],t[c+2])}function r(t,e){for(;t.lengtht&&-1/0=n&&(i=[1/n]))),o=0;o=e||!r&&s<=(i[o]+(i[o+1]||i[o]))/2));o++);return t.correctFloat(a*n,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var i,n,o=t.length;for(n=0;ni&&(i=t[e]);return i},t.destroyObjectProperties=function(e,i){t.objectEach(e,(function(t,n){t&&t!==i&&t.destroy&&t.destroy(),delete e[n]}))},t.discardElement=function(e){var i=t.garbageBin;i||(i=t.createElement("div")),e&&i.appendChild(e),i.innerHTML=""},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.setAnimation=function(e,i){i.renderer.globalAnimation=t.pick(e,i.options.chart.animation,!0)},t.animObject=function(e){return t.isObject(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(e,i,n,o){e=+e||0,i=+i;var r,s,a=t.defaultOptions.lang,l=(e.toString().split(".")[1]||"").split("e")[0].length,h=e.toString().split("e");return-1===i?i=Math.min(l,20):t.isNumber(i)?i&&h[1]&&0>h[1]&&(0<=(r=i+ +h[1])?(h[0]=(+h[0]).toExponential(r).split("e")[0],i=r):(h[0]=h[0].split(".")[0]||0,e=20>i?(h[0]*Math.pow(10,h[1])).toFixed(i):0,h[1]=0)):i=2,s=(Math.abs(h[1]?h[0]:e)+Math.pow(10,-Math.max(i,l)-1)).toFixed(i),r=3<(l=String(t.pInt(s))).length?l.length%3:0,n=t.pick(n,a.decimalPoint),o=t.pick(o,a.thousandsSep),e=(0>e?"-":"")+(r?l.substr(0,r)+o:""),e+=l.substr(r).replace(/(\d{3})(?=\d)/g,"$1"+o),i&&(e+=n+s.slice(-i)),h[1]&&0!=+e&&(e+="e"+h[1]),e},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(e,i,o){return"width"===i?Math.min(e.offsetWidth,e.scrollWidth)-t.getStyle(e,"padding-left")-t.getStyle(e,"padding-right"):"height"===i?Math.min(e.offsetHeight,e.scrollHeight)-t.getStyle(e,"padding-top")-t.getStyle(e,"padding-bottom"):(n.getComputedStyle||t.error(27,!0),(e=n.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(i),t.pick(o,"opacity"!==i)&&(e=t.pInt(e))),e)},t.inArray=function(e,i,n){return(t.indexOfPolyfill||Array.prototype.indexOf).call(i,e,n)},t.grep=function(e,i){return(t.filterPolyfill||Array.prototype.filter).call(e,i)},t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,n=t.length;for(i=0;i>16,(65280&e)>>8,255&e,1]:4===i&&(o=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!o)for(r=this.parsers.length;r--&&!o;)(i=(s=this.parsers[r]).regex.exec(e))&&(o=s.parse(i));this.rgba=o||[]},get:function(t){var n,r=this.input,s=this.rgba;return this.stops?((n=o(r)).stops=[].concat(n.stops),e(this.stops,(function(e,i){n.stops[i]=[n.stops[i][0],e.get(t)]}))):n=s&&i(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?s[3]:"rgba("+s.join(",")+")":r,n},brighten:function(t){var n,o=this.rgba;if(this.stops)e(this.stops,(function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(n=0;3>n;n++)o[n]+=r(255*t),0>o[n]&&(o[n]=0),255i.width)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(a.isSVG&&(t=i.width,a=i.height,h&&"11px"===h.fontSize&&17===Math.round(a)&&(i.height=a=14),e&&(i.width=Math.abs(a*Math.sin(n))+Math.abs(t*Math.cos(n)),i.height=Math.abs(a*Math.cos(n))+Math.abs(t*Math.sin(n)))),s&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i,n,o,r,s=this.renderer,a=this.parentGroup,l=(a||s).element||s.box,h=this.element;s=l===s.box;if(i=this.added,c(t)&&(h.zIndex=t,t=+t,this[e]===t&&(i=!1),this[e]=t),i){for((t=this.zIndex)&&a&&(a.handleZ=!0),r=(e=l.childNodes).length-1;0<=r&&!n;r--)i=(a=e[r]).zIndex,o=!c(i),a!==h&&(0>t&&o&&!s&&!r?(l.insertBefore(h,e[r]),n=!0):(O(i)<=t||o&&(!c(t)||0<=t))&&(l.insertBefore(h,e[r+1]||null),n=!0));n||(l.insertBefore(h,e[s?3:0]||null),n=!0)}return n},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),e.prototype.yGetter=e.prototype.xGetter,e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.rotationSetter=e.prototype.verticalAlignSetter=e.prototype.rotationOriginXSetter=e.prototype.rotationOriginYSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=e.prototype.matrixSetter=function(t,e){this[e]=t,this.doTransform=!0},e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter=function(t,i,n){this[i]=t,this.stroke&&this["stroke-width"]?(e.prototype.fillSetter.call(this,this.stroke,"stroke",n),n.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===i&&0===t&&this.hasStroke&&(n.removeAttribute("stroke"),this.hasStroke=!1)},i=t.SVGRenderer=function(){this.init.apply(this,arguments)},g(i.prototype,{Element:e,SVG_NS:R,init:function(t,e,i,o,s,a){var h,c;h=(o=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(o))).element,t.appendChild(h),r(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&r(h,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=h,this.boxWrapper=o,this.alignedObjects=[],this.url=(w||S)&&u.getElementsByTagName("base").length?E.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(u.createTextNode("Created with Highcharts 6.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=s,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),w&&t.getBoundingClientRect&&((e=function(){l(t,{left:0,top:0}),c=t.getBoundingClientRect(),l(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})})(),this.unSubPixelFix=n(E,"resize",e))},getStyle:function(t){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),p(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:P,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},getSpanWidth:function(t){return t.getBBox(!0).width},applyEllipsis:function(t,e,i,n){var o,r,s=t.rotation,a=i,l=0,h=i.length,c=function(t){e.removeChild(e.firstChild),t&&e.appendChild(u.createTextNode(t))};if(t.rotation=0,r=(a=this.getSpanWidth(t,e))>n){for(;l<=h;)o=Math.ceil((l+h)/2),c(a=i.substring(0,o)+"\u2026"),a=this.getSpanWidth(t,e),l===h?l=h+1:a>n?h=o-1:l=o;0===h&&c("")}return t.rotation=s,r},escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},buildText:function(t){var e,i,n,o=t.element,s=this,a=s.forExport,h=L(t.textStr,"").toString(),c=-1!==h.indexOf("<"),d=o.childNodes,p=r(o,"x"),g=t.styles,m=t.textWidth,y=g&&g.lineHeight,b=g&&g.textOutline,w=g&&"ellipsis"===g.textOverflow,k=g&&"nowrap"===g.whiteSpace,A=g&&g.fontSize,M=d.length,S=(g=m&&!t.added&&this.box,function(t){var e;return e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:A||s.style.fontSize||12,y?O(y):s.fontMetrics(e,t.getAttribute("style")?t:o).h}),T=function(t,e){return C(s.escapes,(function(i,n){e&&-1!==v(i,e)||(t=t.toString().replace(new RegExp(i,"g"),n))})),t},P=function(t,e){var i;if(i=t.indexOf("<"),-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&(i=i+e.length+1,'"'===(e=t.charAt(i))||"'"===e))return(t=t.substring(i+1)).substring(0,t.indexOf(e))};if((i=[h,w,k,y,b,A,m].join())!==t.textCache){for(t.textCache=i;M--;)o.removeChild(d[M]);c||b||w||m||-1!==h.indexOf(" ")?(g&&g.appendChild(o),h=c?h.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(//g,"").split(//g):[h],h=x(h,(function(t){return""!==t})),f(h,(function(i,h){var c,d=0;i=i.replace(/^\s+|\s+$/g,"").replace(//g,"|||"),c=i.split("|||"),f(c,(function(i){if(""!==i||1===c.length){var f,g,x={},y=u.createElementNS(s.SVG_NS,"tspan");if((f=P(i,"class"))&&r(y,"class",f),(f=P(i,"style"))&&(f=f.replace(/(;| |^)color([ :])/,"$1fill$2"),r(y,"style",f)),(g=P(i,"href"))&&!a&&(r(y,"onclick",'location.href="'+g+'"'),r(y,"class","highcharts-anchor"),l(y,{cursor:"pointer"}))," "!==(i=T(i.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(y.appendChild(u.createTextNode(i)),d?x.dx=0:h&&null!==p&&(x.x=p),r(y,x),o.appendChild(y),!d&&n&&(!z&&a&&l(y,{display:"block"}),r(y,"dy",S(y))),m){x=i.replace(/([^\^])-/g,"$1- ").split(" "),g=1m,void 0===e&&(e=i),i&&1!==x.length?(y.removeChild(y.firstChild),b.unshift(x.pop())):(x=b,b=[],x.length&&!k&&(y=u.createElementNS(R,"tspan"),r(y,{dy:A,x:p}),f&&r(y,"style",f),o.appendChild(y)),v>m&&(m=v)),x.length&&y.appendChild(u.createTextNode(x.join(" ").replace(/- /g,"-")));t.rotation=M}d++}}})),n=n||o.childNodes.length})),e&&t.attr("title",T(t.textStr,["<",">"])),g&&g.removeChild(o),b&&t.applyTextOutline&&t.applyTextOutline(b)):o.appendChild(u.createTextNode(T(h)))}},getContrast:function(t){return 510<(t=a(t).rgba)[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,i,o,r,s,a,l,h){var c,d,p,u,f=this.label(t,e,i,h,null,null,null,null,"button"),m=0;return f.attr(T({padding:8,r:2},r)),r=T({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},r),c=r.style,delete r.style,s=T(r,{fill:"#e6e6e6"},s),d=s.style,delete s.style,a=T(r,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a),p=a.style,delete a.style,l=T(r,{style:{color:"#cccccc"}},l),u=l.style,delete l.style,n(f.element,k?"mouseover":"mouseenter",(function(){3!==m&&f.setState(1)})),n(f.element,k?"mouseout":"mouseleave",(function(){3!==m&&f.setState(m)})),f.setState=function(t){1!==t&&(f.state=m=t),f.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),f.attr([r,s,a,l][t||0]).css([c,d,p,u][t||0])},f.attr(r).css(g({cursor:"default"},c)),f.on("click",(function(t){3!==m&&o.call(f,t)}))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e={fill:"none"};return b(t)?e.d=t:A(t)&&g(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=A(t)?t:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,i,n,o,r){return A(t)?(e=(n=t).y,i=n.r,t=n.x):n={innerR:n,start:o,end:r},(t=this.symbol("arc",t,e,i,i,n)).r=i,t},rect:function(t,e,i,n,o,s){o=A(t)?t.r:o;var a=this.createElement("rect");return t=A(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(i,0),height:Math.max(n,0)},void 0!==s&&(t.strokeWidth=s,t=a.crisp(t)),t.fill="none",o&&(t.r=o),a.rSetter=function(t,e,i){r(i,{rx:t,ry:t})},a.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,o=n.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:L(i,!0)?void 0:0});o--;)n[o].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,i,o,r,s){var a,l={preserveAspectRatio:"none"},h=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};return 1Math.abs(o.end-o.start-2*Math.PI));var h=Math.cos(r),d=Math.sin(r),p=Math.cos(l);l=Math.sin(l);return s=["M",t+s*h,e+a*d,"A",s,a,0,o=.001>o.end-r-Math.PI?0:1,1,t+s*p,e+a*l],c(i)&&s.push(n?"M":"L",t+i*p,e+i*l,"A",i,i,0,o,0,t+i*h,e+i*d),s.push(n?"":"Z"),s},callout:function(t,e,i,n,o){var r,s=Math.min(o&&o.r||0,i,n),a=s+6,l=o&&o.anchorX;return o=o&&o.anchorY,r=["M",t+s,e,"L",t+i-s,e,"C",t+i,e,t+i,e,t+i,e+s,"L",t+i,e+n-s,"C",t+i,e+n,t+i,e+n,t+i-s,e+n,"L",t+s,e+n,"C",t,e+n,t,e+n,t,e+n-s,"L",t,e+s,"C",t,e,t,e,t+s,e],l&&l>i?o>e+a&&ol?o>e+a&&on&&l>t+a&&lo&&l>t+a&&l(t=/px/.test(t)?O(t):/em/.test(t)?parseFloat(t)*(e?this.fontMetrics(null,e.parentNode).f:16):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=Math.max(n*Math.cos(e*d),4)),{x:-t/3*Math.sin(e*d),y:n}},label:function(i,n,o,r,s,a,l,h,d){var p,u,m,x,y,v,b,w,k,A,M,S,P,C=this,L=C.g("button"!==d&&"label"),O=L.text=C.text("",0,0,l).attr({zIndex:1}),D=0,z=3,R=0,_={},E=/^url\((.*?)\)$/.test(r),B=E;d&&L.addClass("highcharts-"+d),B=E,A=function(){return(w||0)%2/2},M=function(){var t=O.element.style,e={};u=(void 0===m||void 0===x||b)&&c(O.textStr)&&O.getBBox(),L.width=(m||u.width||0)+2*z+R,L.height=(x||u.height||0)+2*z,k=z+C.fontMetrics(t&&t.fontSize,O).b,B&&(p||(L.box=p=C.symbols[r]||E?C.symbol(r):C.rect(),p.addClass(("button"===d?"":"highcharts-label-box")+(d?" highcharts-"+d+"-box":"")),p.add(L),t=A(),e.x=t,e.y=(h?-k:0)+t),e.width=Math.round(L.width),e.height=Math.round(L.height),p.attr(g(e,_)),_={})},S=function(){var t,e=R+z;t=h?0:k,c(m)&&u&&("center"===b||"right"===b)&&(e+={center:.5,right:1}[b]*(m-u.width)),e===O.x&&t===O.y||(O.attr("x",e),void 0!==t&&O.attr("y",t)),O.x=e,O.y=t},P=function(t,e){p?p.attr(t,e):_[t]=e},L.onAdd=function(){O.add(L),L.attr({text:i||0===i?i:"",x:n,y:o}),p&&c(s)&&L.attr({anchorX:s,anchorY:a})},L.widthSetter=function(e){m=t.isNumber(e)?e:null},L.heightSetter=function(t){x=t},L["text-alignSetter"]=function(t){b=t},L.paddingSetter=function(t){c(t)&&t!==z&&(z=L.padding=t,S())},L.paddingLeftSetter=function(t){c(t)&&t!==R&&(R=t,S())},L.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==D&&(D=t,u&&L.attr({x:y}))},L.textSetter=function(t){void 0!==t&&O.textSetter(t),M(),S()},L["stroke-widthSetter"]=function(t,e){t&&(B=!0),w=this["stroke-width"]=t,P(e,t)},L.strokeSetter=L.fillSetter=L.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(B=!0),L[e]=t),P(e,t)},L.anchorXSetter=function(t,e){s=L.anchorX=t,P(e,Math.round(t)-A()-y)},L.anchorYSetter=function(t,e){a=L.anchorY=t,P(e,t-v)},L.xSetter=function(t){L.x=t,D&&(t-=D*((m||u.width)+2*z),L["forceAnimate:x"]=!0),y=Math.round(t),L.attr("translateX",y)},L.ySetter=function(t){v=L.y=Math.round(t),L.attr("translateY",v)};var N=L.css;return g(L,{css:function(t){if(t){var e={};t=T(t),f(L.textProps,(function(i){void 0!==t[i]&&(e[i]=t[i],delete t[i])})),O.css(e),"width"in e&&M()}return N.call(L,t)},getBBox:function(){return{width:u.width+2*z,height:u.height+2*z,x:u.x-z,y:u.y-z}},shadow:function(t){return t&&(M(),p&&p.shadow(t)),L},destroy:function(){I(L.element,"mouseenter"),I(L.element,"mouseleave"),O&&(O=O.destroy()),p&&(p=p.destroy()),e.prototype.destroy.call(L),L=C=M=S=P=null}})}}),t.Renderer=i}(h),function(t){var e=t.attr,i=t.createElement,n=t.css,o=t.defined,r=t.each,s=t.extend,a=t.isFirefox,l=t.isMS,h=t.isWebKit,c=t.pick,d=t.pInt,p=t.SVGRenderer,u=t.win,f=t.wrap;s(t.SVGElement.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.htmlUpdateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=s(this.styles,t),n(this.element,t),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,s=this.translateY||0,a=this.x||0,l=this.y||0,h=this.textAlign||"left",c={left:0,center:.5,right:1}[h],p=(f=this.styles)&&f.whiteSpace;if(n(e,{marginLeft:i,marginTop:s}),this.shadows&&r(this.shadows,(function(t){n(t,{marginLeft:i+1,marginTop:s+1})})),this.inverted&&r(e.childNodes,(function(i){t.invertChild(i,e)})),"SPAN"===e.tagName){var u,f=this.rotation,g=this.textWidth&&d(this.textWidth),m=[f,h,e.innerHTML,this.textWidth,this.textAlign].join();(u=g!==this.oldTextWidth)&&!(u=g>this.oldTextWidth)&&((u=this.textPxLength)||(n(e,{width:"",whiteSpace:p||"nowrap"}),u=e.offsetWidth),u=u>g),u&&/[ \-]/.test(e.textContent||e.innerText)&&(n(e,{width:g+"px",display:"block",whiteSpace:p||"normal"}),this.oldTextWidth=g),m!==this.cTT&&(p=t.fontMetrics(e.style.fontSize).b,o(f)&&f!==(this.oldRotation||0)&&this.setSpanRotation(f,c,p),this.getSpanCorrection(!o(f)&&this.textPxLength||e.offsetWidth,p,c,f,h)),n(e,{left:a+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"}),this.cTT=m,this.oldRotation=f}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var o={},r=this.renderer.getTransformKey();o[r]=o.transform="rotate("+t+"deg)",o[r+(a?"Origin":"-origin")]=o.transformOrigin=100*e+"% "+i+"px",n(this.element,o)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),s(p.prototype,{getTransformKey:function(){return l&&!/Edge/.test(u.navigator.userAgent)?"-ms-transform":h?"-webkit-transform":a?"MozTransform":u.opera?"-o-transform":""},html:function(t,n,o){var a=this.createElement("span"),l=a.element,h=a.renderer,d=h.isSVG,p=function(t,e){r(["opacity","visibility"],(function(i){f(t,i+"Setter",(function(t,i,n,o){t.call(this,i,n,o),e[n]=i}))})),t.addedSetters=!0};return a.textSetter=function(t){t!==l.innerHTML&&delete this.bBox,this.textStr=t,l.innerHTML=c(t,""),a.doTransform=!0},d&&p(a,a.element.style),a.xSetter=a.ySetter=a.alignSetter=a.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),a[e]=t,a.doTransform=!0},a.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},a.attr({text:t,x:Math.round(n),y:Math.round(o)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),l.style.whiteSpace="nowrap",a.css=a.htmlCss,d&&(a.add=function(t){var n,o=h.box.parentNode,c=[];if(this.parentGroup=t){if(!(n=t.div)){for(;t;)c.push(t),t=t.parentGroup;r(c.reverse(),(function(t){function r(e,i){t[i]=e,"translateX"===i?l.left=e+"px":l.top=e+"px",t.doTransform=!0}var l,h=e(t.element,"class");h&&(h={className:h}),n=t.div=t.div||i("div",h,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},n||o),l=n.style,s(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(n),on:function(){return c[0].div&&a.on.apply({element:c[0].div},arguments),t},translateXSetter:r,translateYSetter:r}),t.addedSetters||p(t,l)}))}}else n=o;return n.appendChild(l),a.added=!0,a.alignOnAdd&&a.htmlUpdateTransform(),a}),a}})}(h),function(t){var e=t.defined,i=t.each,n=t.extend,o=t.merge,r=t.pick,s=t.timeUnits,a=t.win;t.Time=function(t){this.update(t,!1)},t.Time.prototype={defaultOptions:{},update:function(e){var i=r(e&&e.useUTC,!0),n=this;this.options=e=o(!0,this.options||{},e),this.Date=e.Date||a.Date,this.timezoneOffset=(this.useUTC=i)&&e.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(i&&!e.getTimezoneOffset&&!e.timezone))||this.timezoneOffset?(this.get=function(t,e){var i=e.getTime(),o=i-n.getTimezoneOffset(e);return e.setTime(o),t=e["getUTC"+t](),e.setTime(i),t},this.set=function(e,i,o){var r;-1!==t.inArray(e,["Milliseconds","Seconds","Minutes"])?i["set"+e](o):(r=n.getTimezoneOffset(i),r=i.getTime()-r,i.setTime(r),i["setUTC"+e](o),e=n.getTimezoneOffset(i),r=i.getTime()+e,i.setTime(r))}):i?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,i){return e["setUTC"+t](i)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,i){return e["set"+t](i)})},makeTime:function(e,i,n,o,s,a){var l,h,c;return this.useUTC?(l=this.Date.UTC.apply(0,arguments),l+=h=this.getTimezoneOffset(l),h!==(c=this.getTimezoneOffset(l))?l+=c-h:h-36e5!==this.getTimezoneOffset(l-36e5)||t.isSafari||(l-=36e5)):l=new this.Date(e,i,r(n,1),r(o,0),r(s,0),r(a,0)).getTime(),l},timezoneOffsetFunction:function(){var e=this,i=this.options,n=a.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(i.timezone){if(n)return function(t){return 6e4*-n.tz(t,i.timezone).utcOffset()};t.error(25)}return this.useUTC&&i.getTimezoneOffset?function(t){return 6e4*i.getTimezoneOffset(t)}:function(){return 6e4*(e.timezoneOffset||0)}},dateFormat:function(e,i,n){if(!t.defined(i)||isNaN(i))return t.defaultOptions.lang.invalidDate||"";e=t.pick(e,"%Y-%m-%d %H:%M:%S");var o=this,r=new this.Date(i),s=this.get("Hours",r),a=this.get("Day",r),l=this.get("Date",r),h=this.get("Month",r),c=this.get("FullYear",r),d=t.defaultOptions.lang,p=d.weekdays,u=d.shortWeekdays,f=t.pad;r=t.extend({a:u?u[a]:p[a].substr(0,3),A:p[a],d:f(l),e:f(l,2," "),w:a,b:d.shortMonths[h],B:d.months[h],m:f(h+1),y:c.toString().substr(2,2),Y:c,H:f(s),k:s,I:f(s%12||12),l:s%12||12,M:f(o.get("Minutes",r)),p:12>s?"AM":"PM",P:12>s?"am":"pm",S:f(r.getSeconds()),L:f(Math.round(i%1e3),3)},t.dateFormats);return t.objectEach(r,(function(t,n){for(;-1!==e.indexOf("%"+n);)e=e.replace("%"+n,"function"==typeof t?t.call(o,i):t)})),n?e.substr(0,1).toUpperCase()+e.substr(1):e},getTimeTicks:function(t,o,a,l){var h,c,d=this,p=[],u={},f=new d.Date(o),g=t.unitRange,m=t.count||1;if(e(o)){d.set("Milliseconds",f,g>=s.second?0:m*Math.floor(d.get("Milliseconds",f)/m)),g>=s.second&&d.set("Seconds",f,g>=s.minute?0:m*Math.floor(d.get("Seconds",f)/m)),g>=s.minute&&d.set("Minutes",f,g>=s.hour?0:m*Math.floor(d.get("Minutes",f)/m)),g>=s.hour&&d.set("Hours",f,g>=s.day?0:m*Math.floor(d.get("Hours",f)/m)),g>=s.day&&d.set("Date",f,g>=s.month?1:m*Math.floor(d.get("Date",f)/m)),g>=s.month&&(d.set("Month",f,g>=s.year?0:m*Math.floor(d.get("Month",f)/m)),h=d.get("FullYear",f)),g>=s.year&&d.set("FullYear",f,h-h%m),g===s.week&&d.set("Date",f,d.get("Date",f)-d.get("Day",f)+r(l,1)),h=d.get("FullYear",f),l=d.get("Month",f);var x=d.get("Date",f),y=d.get("Hours",f);for(o=f.getTime(),d.variableTimezone&&(c=a-o>4*s.month||d.getTimezoneOffset(o)!==d.getTimezoneOffset(a)),f=f.getTime(),o=1;fp.length&&i(p,(function(t){0==t%18e5&&"000000000"===d.dateFormat("%H%M%S%L",t)&&(u[t]="day")}))}return p.info=n(t,{higherRanks:u,totalRange:g*m}),p}}}(h),function(t){var e=t.color,i=t.merge;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:t.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=i(!0,t.defaultOptions,e),t.time.update(i(t.defaultOptions.global,t.defaultOptions.time),!1),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,t.time=new t.Time(i(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,n){return t.time.dateFormat(e,i,n)}}(h),function(t){var e=t.correctFloat,i=t.defined,n=t.destroyObjectProperties,o=t.fireEvent,r=t.isNumber,s=t.merge,a=t.pick,l=t.deg2rad;t.Tick=function(t,e,i,n){this.axis=t,this.pos=e,this.type=i||"",this.isNewLabel=this.isNew=!0,i||n||this.addLabel()},t.Tick.prototype={addLabel:function(){var t,n=this.axis,o=n.options,r=n.chart,l=n.categories,h=n.names,c=this.pos,d=o.labels,p=c===(f=n.tickPositions)[0],u=c===f[f.length-1],f=(h=l?a(l[c],h[c],c):c,l=this.label,f.info);n.isDatetimeAxis&&f&&(t=o.dateTimeLabelFormats[f.higherRanks[c]||f.unitName]),this.isFirst=p,this.isLast=u,o=n.labelFormatter.call({axis:n,chart:r,isFirst:p,isLast:u,dateTimeLabelFormat:t,value:n.isLog?e(n.lin2log(h)):h,pos:c}),i(l)?l&&l.attr({text:o}):((this.label=l=i(o)&&d.enabled?r.renderer.text(o,0,0,d.useHTML).css(s(d.style)).add(n.labelGroup):null)&&(l.textPxLength=l.getBBox().width),this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,i=this.axis,n=i.options.labels,o=t.x,r=i.chart.chartWidth,s=i.chart.spacing,h=a(i.labelLeft,Math.min(i.pos,s[3])),c=(s=a(i.labelRight,Math.max(i.isRadial?0:i.pos+i.len,r-s[1])),this.label),d=this.rotation,p={left:0,center:.5,right:1}[i.labelAlign||c.attr("align")],u=c.getBBox().width,f=i.getSlotWidth(),g=f,m=1,x={};d||!1===n.overflow?0>d&&o-p*us&&(e=Math.round((r-o)/Math.cos(d*l))):(r=o+(1-p)*u,o-p*us&&(g=s-t.x+g*p,m=-1),(g=Math.min(f,g))g||i.autoRotation&&(c.styles||{}).width)&&(e=g)),e&&(x.width=e,(n.style||{}).textOverflow||(x.textOverflow="ellipsis"),c.css(x))},getPosition:function(e,i,n,r){var s=this.axis,a=s.chart,l=r&&a.oldChartHeight||a.chartHeight;return e={x:e?t.correctFloat(s.translate(i+n,null,null,r)+s.transB):s.left+s.offset+(s.opposite?(r&&a.oldChartWidth||a.chartWidth)-s.right-s.left:0),y:e?l-s.bottom+s.offset-(s.opposite?s.height:0):t.correctFloat(l-s.translate(i+n,null,null,r)-s.transB)},o(this,"afterGetPosition",{pos:e}),e},getLabelPosition:function(t,e,n,r,s,a,h,c){var d=this.axis,p=d.transA,u=d.reversed,f=d.staggerLines,g=d.tickRotCorr||{x:0,y:0},m=s.y,x=r||d.reserveSpaceDefault?0:-d.labelOffset*("center"===d.labelAlign?.5:1),y={};return i(m)||(m=0===d.side?n.rotation?-8:-n.getBBox().height:2===d.side?g.y+8:Math.cos(n.rotation*l)*(g.y-n.getBBox(!1,0).height/2)),t=t+s.x+x+g.x-(a&&r?a*p*(u?-1:1):0),e=e+m-(a&&!r?a*p*(u?1:-1):0),f&&(n=h/(c||1)%f,d.opposite&&(n=f-n-1),e+=d.labelOffset/f*n),y.x=t,y.y=Math.round(e),o(this,"afterGetLabelPosition",{pos:y}),y},getMarkPath:function(t,e,i,n,o,r){return r.crispLine(["M",t,e,"L",t+(o?0:-i),e+(o?i:0)],n)},renderGridLine:function(t,e,i){var n=this.axis,o=n.options,r=this.gridLine,s={},a=this.pos,l=this.type,h=n.tickmarkOffset,c=n.chart.renderer,d=l?l+"Grid":"grid",p=o[d+"LineWidth"],u=o[d+"LineColor"];o=o[d+"LineDashStyle"];r||(s.stroke=u,s["stroke-width"]=p,o&&(s.dashstyle=o),l||(s.zIndex=1),t&&(s.opacity=0),this.gridLine=r=c.path().attr(s).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(n.gridGroup)),!t&&r&&(t=n.getPlotLinePath(a+h,r.strokeWidth()*i,t,!0))&&r[this.isNew?"attr":"animate"]({d:t,opacity:e})},renderMark:function(t,e,i){var n=this.axis,o=n.options,r=n.chart.renderer,s=this.type,l=s?s+"Tick":"tick",h=n.tickSize(l),c=this.mark,d=!c,p=t.x;t=t.y;var u=a(o[l+"Width"],!s&&n.isXAxis?1:0);o=o[l+"Color"];h&&(n.opposite&&(h[0]=-h[0]),d&&(this.mark=c=r.path().addClass("highcharts-"+(s?s+"-":"")+"tick").add(n.axisGroup),c.attr({stroke:o,"stroke-width":u})),c[d?"attr":"animate"]({d:this.getMarkPath(p,t,h[0],c.strokeWidth()*i,n.horiz,r),opacity:e}))},renderLabel:function(t,e,i,n){var o=(d=this.axis).horiz,s=d.options,l=this.label,h=s.labels,c=h.step,d=d.tickmarkOffset,p=!0,u=t.x;t=t.y,l&&r(u)&&(l.xy=t=this.getLabelPosition(u,t,l,o,h,d,n,c),this.isFirst&&!this.isLast&&!a(s.showFirstLabel,1)||this.isLast&&!this.isFirst&&!a(s.showLastLabel,1)?p=!1:!o||h.step||h.rotation||e||0===i||this.handleOverflow(t),c&&n%c&&(p=!1),p&&r(t.y)?(t.opacity=i,l[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(l.attr("y",-9999),this.isNewLabel=!0))},render:function(e,i,n){var o=(h=this.axis).horiz,r=this.getPosition(o,this.pos,h.tickmarkOffset,i),s=r.x,l=r.y,h=o&&s===h.pos+h.len||!o&&l===h.pos?-1:1;n=a(n,1),this.isActive=!0,this.renderGridLine(i,n,h),this.renderMark(r,n,h),this.renderLabel(r,i,n,e),this.isNew=!1,t.fireEvent(this,"afterRender")},destroy:function(){n(this,this.axis)}}}(h);var c=function(t){var e=t.addEvent,i=t.animObject,n=t.arrayMax,o=t.arrayMin,r=t.color,s=t.correctFloat,a=t.defaultOptions,l=t.defined,h=t.deg2rad,c=t.destroyObjectProperties,d=t.each,p=t.extend,u=t.fireEvent,f=t.format,g=t.getMagnitude,m=t.grep,x=t.inArray,y=t.isArray,v=t.isNumber,b=t.isString,w=t.merge,k=t.normalizeTickInterval,A=t.objectEach,M=t.pick,S=t.removeEvent,T=t.splat,P=t.syncTimeout,C=t.Tick,L=function(){this.init.apply(this,arguments)};return t.extend(L.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return t.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(t,i){var n=i.isX,o=this;o.chart=t,o.horiz=t.inverted&&!o.isZAxis?!n:n,o.isXAxis=n,o.coll=o.coll||(n?"xAxis":"yAxis"),u(this,"init",{userOptions:i}),o.opposite=i.opposite,o.side=i.side||(o.horiz?o.opposite?0:2:o.opposite?1:3),o.setOptions(i);var r=this.options,s=r.type;o.labelFormatter=r.labels.formatter||o.defaultLabelFormatter,o.userOptions=i,o.minPixelPadding=0,o.reversed=r.reversed,o.visible=!1!==r.visible,o.zoomEnabled=!1!==r.zoomEnabled,o.hasNames="category"===s||!0===r.categories,o.categories=r.categories||o.hasNames,o.names||(o.names=[],o.names.keys={}),o.plotLinesAndBandsGroups={},o.isLog="logarithmic"===s,o.isDatetimeAxis="datetime"===s,o.positiveValuesOnly=o.isLog&&!o.allowNegativeLog,o.isLinked=l(r.linkedTo),o.ticks={},o.labelEdge=[],o.minorTicks={},o.plotLinesAndBands=[],o.alternateBands={},o.len=0,o.minRange=o.userMinRange=r.minRange||r.maxZoom,o.range=r.range,o.offset=r.offset||0,o.stacks={},o.oldStacks={},o.stacksTouched=0,o.max=null,o.min=null,o.crosshair=M(r.crosshair,T(t.options.tooltip.crosshairs)[n?0:1],!1),i=o.options.events,-1===x(o,t.axes)&&(n?t.axes.splice(t.xAxis.length,0,o):t.axes.push(o),t[o.coll].push(o)),o.series=o.series||[],t.inverted&&!o.isZAxis&&n&&void 0===o.reversed&&(o.reversed=!0),A(i,(function(t,i){e(o,i,t)})),o.lin2log=r.linearToLogConverter||o.lin2log,o.isLog&&(o.val2lin=o.log2lin,o.lin2val=o.lin2log),u(this,"afterInit")},setOptions:function(t){this.options=w(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],w(a[this.coll],t)),u(this,"afterSetOptions",{userOptions:t})},defaultLabelFormatter:function(){var e,i=this.axis,n=this.value,o=i.chart.time,r=i.categories,s=this.dateTimeLabelFormat,l=(h=a.lang).numericSymbols,h=h.numericSymbolMagnitude||1e3,c=l&&l.length,d=i.options.labels.format;i=i.isLog?Math.abs(n):i.tickInterval;if(d)e=f(d,this,o);else if(r)e=n;else if(s)e=o.dateFormat(s,n);else if(c&&1e3<=i)for(;c--&&void 0===e;)i>=(o=Math.pow(h,c+1))&&0==10*n%o&&null!==l[c]&&0!==n&&(e=t.numberFormat(n/o,-1)+l[c]);return void 0===e&&(e=1e4<=Math.abs(n)?t.numberFormat(n,-1):t.numberFormat(n,-1,void 0,"")),e},getSeriesExtremes:function(){var t=this,e=t.chart;u(this,"getSeriesExtremes",null,(function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.buildStacks&&t.buildStacks(),d(t.series,(function(i){if(i.visible||!e.options.chart.ignoreHiddenSeries){var r,s=i.options,a=s.threshold;t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=a&&(a=null),t.isXAxis?(s=i.xData).length&&(i=o(s),r=n(s),v(i)||i instanceof Date||(s=m(s,v),i=o(s),r=n(s)),s.length&&(t.dataMin=Math.min(M(t.dataMin,s[0],i),i),t.dataMax=Math.max(M(t.dataMax,s[0],r),r))):(i.getExtremes(),r=i.dataMax,i=i.dataMin,l(i)&&l(r)&&(t.dataMin=Math.min(M(t.dataMin,i),i),t.dataMax=Math.max(M(t.dataMax,r),r)),l(a)&&(t.threshold=a),(!s.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1))}}))})),u(this,"afterGetSeriesExtremes")},translate:function(t,e,i,n,o,r){var s=this.linkedParent||this,a=1,l=0,h=n?s.oldTransA:s.transA;n=n?s.oldMin:s.min;var c=s.minPixelPadding;return o=(s.isOrdinal||s.isBroken||s.isLog&&o)&&s.lin2val,h||(h=s.transA),i&&(a*=-1,l=s.len),s.reversed&&(l-=(a*=-1)*(s.sector||s.len)),e?(t=(t*a+l-c)/h+n,o&&(t=s.lin2val(t))):(o&&(t=s.val2lin(t)),t=v(n)?a*(t-n)*h+l+a*c+(v(r)?h*r:0):void 0),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,i,n,o){var r,s,a,l=this.chart,h=this.left,c=this.top,d=i&&l.oldChartHeight||l.chartHeight,p=i&&l.oldChartWidth||l.chartWidth;r=this.transB;var u=function(t,e,i){return(ti)&&(n?t=Math.min(Math.max(e,t),i):a=!0),t};return o=M(o,this.translate(t,null,null,i)),o=Math.min(Math.max(-1e5,o),1e5),t=i=Math.round(o+r),r=s=Math.round(d-o-r),v(o)?this.horiz?(r=c,s=d-this.bottom,t=i=u(t,h,h+this.width)):(t=h,i=p-this.right,r=s=u(r,c,c+this.height)):(a=!0,n=!1),a&&!n?null:l.renderer.crispLine(["M",t,r,"L",i,s],e||1)},getLinearTickPositions:function(t,e,i){var n,o=s(Math.floor(e/t)*t);i=s(Math.ceil(i/t)*t);var r,a=[];if(s(o+t)===o&&(r=20),this.single)return[e];for(e=o;e<=i&&(a.push(e),(e=s(e+t,r))!==n);)n=e;return a},getMinorTickInterval:function(){var t=this.options;return!0===t.minorTicks?M(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},getMinorTickPositions:function(){var t=this,e=t.options,i=t.tickPositions,n=t.minorTickInterval,o=[],r=t.pointRangePadding||0,s=t.min-r,a=(r=t.max+r)-s;if(a&&a/n=this.minRange,t=[p-(t=((h=this.minRange)-u+p)/2),M(c.min,p-t)],e&&(t[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),u=[(p=n(t))+h,M(c.max,p+h)],e&&(u[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(u=o(u))-p=T?(i=T,b=0):a.dataMax<=T&&(n=T,y=0)),a.min=M(o,i,a.dataMin),a.max=M(r,n,a.dataMax)),p&&(a.positiveValuesOnly&&!e&&0>=Math.min(a.min,M(a.dataMin,a.min))&&t.error(10,1),a.min=s(a.log2lin(a.min),15),a.max=s(a.log2lin(a.max),15)),a.range&&l(a.max)&&(a.userMin=a.min=o=Math.max(a.dataMin,a.minFromRange()),a.userMax=r=a.max,a.range=null),u(a,"foundExtremes"),a.beforePadding&&a.beforePadding(),a.adjustForMinRange(),!(S||a.axisPointRange||a.usePercentage||x)&&l(a.min)&&l(a.max)&&(h=a.max-a.min)&&(!l(o)&&b&&(a.min-=h*b),!l(r)&&y&&(a.max+=h*y)),v(c.softMin)&&!v(a.userMin)&&(a.min=Math.min(a.min,c.softMin)),v(c.softMax)&&!v(a.userMax)&&(a.max=Math.max(a.max,c.softMax)),v(c.floor)&&(a.min=Math.max(a.min,c.floor)),v(c.ceiling)&&(a.max=Math.min(a.max,c.ceiling)),P&&l(a.dataMin)&&(T=T||0,!l(o)&&a.min=T?a.min=T:!l(r)&&a.max>T&&a.dataMax<=T&&(a.max=T)),a.tickInterval=a.min===a.max||void 0===a.min||void 0===a.max?1:x&&!w&&A===a.linkedParent.options.tickPixelInterval?w=a.linkedParent.tickInterval:M(w,this.tickAmount?(a.max-a.min)/Math.max(this.tickAmount-1,1):void 0,S?1:(a.max-a.min)*A/Math.max(a.len,A)),m&&!e&&d(a.series,(function(t){t.processData(a.min!==a.oldMin||a.max!==a.oldMax)})),a.setAxisTranslation(!0),a.beforeSetTickPositions&&a.beforeSetTickPositions(),a.postProcessTickInterval&&(a.tickInterval=a.postProcessTickInterval(a.tickInterval)),a.pointRange&&!w&&(a.tickInterval=Math.max(a.pointRange,a.tickInterval)),e=M(c.minTickInterval,a.isDatetimeAxis&&a.closestPointRange),!w&&a.tickIntervala.tickInterval&&1e3a.max)),!!this.tickAmount)),this.tickAmount||(a.tickInterval=a.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e=this.options,i=e.tickPositions;t=this.getMinorTickInterval();var n=e.tickPositioner,o=e.startOnTick,r=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===t&&this.tickInterval?this.tickInterval/5:t,this.single=this.min===this.max&&l(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=t=i&&i.slice(),!t&&((t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max)).length>this.len&&((t=[t[0],t.pop()])[0]===t[1]&&(t.length=1)),this.tickPositions=t,n&&(n=n.apply(this,[this.min,this.max])))&&(this.tickPositions=t=n),this.paddedTicks=t.slice(0),this.trimTicks(t,o,r),this.isLinked||(this.single&&2>t.length&&(this.min-=.5,this.max+=.5),i||n||this.adjustTickAmount()),u(this,"afterSetTickPositions")},trimTicks:function(t,e,i){var n=t[0],o=t[t.length-1],r=this.minPointOffset||0;if(!this.isLinked){if(e&&-1/0!==n)this.min=n;else for(;this.min-r>t[0];)t.shift();if(i)this.max=o;else for(;this.max+re&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,i=this.tickAmount,n=this.finalTickAmt,o=e&&e.length,r=M(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(oi&&(this.tickInterval*=2,this.setTickPositions());if(l(n)){for(t=i=e.length;t--;)(3===n&&1==t%2||2>=n&&0o&&(t=o)),l(n)&&(eo&&(e=o))),this.displayBtn=void 0!==t||void 0!==e,this.setExtremes(t,e,!1,void 0,{trigger:"zoom"})),!0},setAxisSize:function(){var e=this.chart,i=(a=this.options).offsets||[0,0,0,0],n=this.horiz,o=this.width=Math.round(t.relativeLength(M(a.width,e.plotWidth-i[3]+i[1]),e.plotWidth)),r=this.height=Math.round(t.relativeLength(M(a.height,e.plotHeight-i[0]+i[2]),e.plotHeight)),s=this.top=Math.round(t.relativeLength(M(a.top,e.plotTop+i[0]),e.plotHeight,e.plotTop)),a=this.left=Math.round(t.relativeLength(M(a.left,e.plotLeft+i[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-r-s,this.right=e.chartWidth-o-a,this.len=Math.max(n?o:r,0),this.pos=n?a:s},getExtremes:function(){var t=this.isLog;return{min:t?s(this.lin2log(this.min)):this.min,max:t?s(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=(i=this.isLog)?this.lin2log(this.min):this.min,i=i?this.lin2log(this.max):this.max;return null===t||-1/0===t?t=e:1/0===t?t=i:e>t?t=e:it?"right":195t?"left":"center"},tickSize:function(t){var e=this.options,i=e[t+"Length"],n=M(e[t+"Width"],"tick"===t&&this.isXAxis?1:0);if(n&&i)return"inside"===e[t+"Position"]&&(i=-i),[i,n]},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,i,n=this.options.labels,o=this.horiz,r=this.tickInterval,a=r,c=this.len/(((this.categories?1:0)+this.max-this.min)/r),p=n.rotation,u=this.labelMetrics(),f=Number.MAX_VALUE,g=function(t){return t=1<(t/=c||1)?Math.ceil(t):1,s(t*r)};return o?(i=!n.staggerLines&&!n.step&&(l(p)?[p]:c=i)&&((n=(e=g(Math.abs(u.h/Math.sin(h*i))))+Math.abs(i/360))(i.step||0)&&!i.rotation&&(this.staggerLines||1)*this.len/n||!e&&(i.style&&parseInt(i.style.width,10)||o&&o-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var t,e,i,n=this.chart,o=n.renderer,r=this.tickPositions,s=this.ticks,a=this.options.labels,l=this.horiz,h=this.getSlotWidth(),c=Math.max(1,Math.round(h-2*(a.padding||5))),p={},u=this.labelMetrics(),f=a.style&&a.style.textOverflow,g=0;if(b(a.rotation)||(p.rotation=a.rotation||0),d(r,(function(t){(t=s[t])&&t.label&&t.label.textPxLength>g&&(g=t.label.textPxLength)})),this.maxLabelLength=g,this.autoRotation)g>c&&g>u.h?p.rotation=this.labelRotation:this.labelRotation=0;else if(h&&(t=c,!f))for(e="clip",c=r.length;!l&&c--;)i=r[c],(i=s[i].label)&&(i.styles&&"ellipsis"===i.styles.textOverflow?i.css({textOverflow:"clip"}):i.textPxLength>h&&i.css({width:h+"px"}),i.getBBox().height>this.len/r.length-(u.h-u.f)&&(i.specificTextOverflow="ellipsis"));p.rotation&&(t=g>.5*n.chartHeight?.33*n.chartHeight:n.chartHeight,f||(e="ellipsis")),(this.labelAlign=a.align||this.autoLabelAlign(this.labelRotation))&&(p.align=this.labelAlign),d(r,(function(i){var n=(i=s[i])&&i.label,o={};n&&(n.attr(p),!t||a.style&&a.style.width||!(t=this.min&&t<=this.max)&&(n[t]||(n[t]=new C(this,t)),o&&n[t].isNew&&n[t].render(e,!0,.1),n[t].render(e))},render:function(){var e,n,o=this,r=o.chart,s=o.options,a=o.isLog,l=o.isLinked,h=o.tickPositions,c=o.axisTitle,p=o.ticks,f=o.minorTicks,g=o.alternateBands,m=s.stackLabels,x=s.alternateGridColor,y=o.tickmarkOffset,b=o.axisLine,w=o.showAxis,k=i(r.renderer.globalAnimation);o.labelEdge.length=0,o.overlap=!1,d([p,f,g],(function(t){A(t,(function(t){t.isActive=!1}))})),(o.hasData()||l)&&(o.minorTickInterval&&!o.categories&&d(o.getMinorTickPositions(),(function(t){o.renderMinorTick(t)})),h.length&&(d(h,(function(t,e){o.renderTick(t,e)})),y&&(0===o.min||o.single)&&(p[-1]||(p[-1]=new C(o,-1,null,!0)),p[-1].render(-1))),x&&d(h,(function(i,s){n=void 0!==h[s+1]?h[s+1]+y:o.max-y,0==s%2&&ie&&(!a||f<=s)&&void 0!==f&&c.push(f),f>s&&(g=!0),f=u}else e=this.lin2log(e),s=this.lin2log(s),t=a?this.getMinorTickInterval():l.tickInterval,t=r("auto"===t?null:t,this._minorAutoInterval,l.tickPixelInterval/(a?5:1)*(s-e)/((a?h/this.tickPositions.length:h)||1)),t=o(t,null,i(t)),c=n(this.getLinearTickPositions(t,e,s),this.log2lin),a||(this._minorAutoInterval=t/5);return a||(this.tickInterval=t),c},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}}(h),function(t,e){var i=t.arrayMax,n=t.arrayMin,o=t.defined,r=t.destroyObjectProperties,s=t.each,a=t.erase,l=t.merge,h=t.pick;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){var e=this,i=e.axis,n=i.horiz,r=e.options,s=r.label,a=e.label,c=r.to,d=r.from,p=r.value,u=o(d)&&o(c),f=o(p),g=e.svgElem,m=!g,x=[],y=r.color,v=h(r.zIndex,0),b=r.events,w=(x={class:"highcharts-plot-"+(u?"band ":"line ")+(r.className||"")},{}),k=i.chart.renderer,A=u?"bands":"lines";if(i.isLog&&(d=i.log2lin(d),c=i.log2lin(c),p=i.log2lin(p)),f?(x={stroke:y,"stroke-width":r.width},r.dashStyle&&(x.dashstyle=r.dashStyle)):u&&(y&&(x.fill=y),r.borderWidth&&(x.stroke=r.borderColor,x["stroke-width"]=r.borderWidth)),w.zIndex=v,A+="-"+v,(y=i.plotLinesAndBandsGroups[A])||(i.plotLinesAndBandsGroups[A]=y=k.g("plot-"+A).attr(w).add()),m&&(e.svgElem=g=k.path().attr(x).add(y)),f)x=i.getPlotLinePath(p,g.strokeWidth());else{if(!u)return;x=i.getPlotBandPath(d,c,r)}return m&&x&&x.length?(g.attr({d:x}),b&&t.objectEach(b,(function(t,i){g.on(i,(function(t){b[i].apply(e,[t])}))}))):g&&(x?(g.show(),g.animate({d:x})):(g.hide(),a&&(e.label=a=a.destroy()))),s&&o(s.text)&&x&&x.length&&0this.max&&e>this.max,o&&n)for(t&&(i=o.toString()===n.toString(),a=0),t=0;tp-l?p:p-l);else{if(!c)return!1;s[t]=Math.max(o,n+l+i>e?n:n+l)}},u=function(t,e,i,n){var o;return ne-r?o=!1:s[t]=ne-i/2?e-i-2:n-i/2,o},f=function(t){var e=h;h=c,c=e,n=t},g=function(){!1!==p.apply(0,h)?!1!==u.apply(0,c)||n||(f(!0),g()):n?s.x=s.y=0:(f(!0),g())};return(o.inverted||1f&&(h=!1),t=(e.series&&e.series.yAxis&&e.series.yAxis.pos)+(e.plotY||0),t-=s.plotTop,r.push({target:e.isHeader?s.plotHeight+d:t,rank:e.isHeader?1:0,size:i.tt.getBBox().height+1,point:e,x:f,tt:u})}})),this.cleanSplit(),t.distribute(r,s.plotHeight+d),e(r,(function(t){var e=t.point,i=e.series;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:h||e.isHeader?t.x:e.plotX+s.plotLeft+a(c.distance,16),y:t.pos+s.plotTop,anchorX:e.isHeader?e.plotX+s.plotLeft:e.plotX+i.xAxis.pos,anchorY:e.isHeader?t.pos+s.plotTop-15:e.plotY+i.yAxis.pos})}))},updatePosition:function(t){var e=this.chart,i=this.getLabel();i=(this.options.positioner||this.getPosition).call(this,i.width,i.height,t);this.move(Math.round(i.x),Math.round(i.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getDateFormat:function(t,e,i,n){var o,r,s=this.chart.time,a=s.dateFormat("%m-%d %H:%M:%S.%L",e),l={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond";for(r in c){if(t===c.week&&+s.dateFormat("%w",e)===i&&"00:00:00.000"===a.substr(6)){r="week";break}if(c[r]>t){r=h;break}if(l[r]&&a.substr(l[r])!=="01-01 00:00:00.000".substr(l[r]))break;"week"!==r&&(h=r)}return r&&(o=n[r]),o},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var n=i&&i.closestPointRange;return(n?this.getDateFormat(n,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(t,i){i=i?"footer":"header";var r=t.series,s=r.tooltipOptions,a=s.xDateFormat,l=r.xAxis,h=l&&"datetime"===l.options.type&&o(t.key),c=s[i+"Format"];return h&&!a&&(a=this.getXDateFormat(t,s,l)),h&&a&&e(t.point&&t.point.tooltipDateKeys||["key"],(function(t){c=c.replace("{point."+t+"}","{point."+t+":"+a+"}")})),n(c,{point:t,series:r},this.chart.time)},bodyFormatter:function(t){return r(t,(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"])}))}}}(h),function(t){var e=t.addEvent,i=t.attr,n=t.charts,o=t.color,r=t.css,s=t.defined,a=t.each,l=t.extend,h=t.find,c=t.fireEvent,d=t.isNumber,p=t.isObject,u=t.offset,f=t.pick,g=t.splat,m=t.Tooltip;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},m&&(t.tooltip=new m(t,e.tooltip),this.followTouchMove=f(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=(n=this.chart).options.chart,i=e.zoomType||"",n=n.inverted;/touch/.test(t.type)&&(i=f(e.pinchType,i)),this.zoomX=t=/x/.test(i),this.zoomY=i=/y/.test(i),this.zoomHor=t&&!n||i&&n,this.zoomVert=i&&!n||t&&n,this.hasZoom=t||i},normalize:function(t,e){var i;return i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=u(this.chart.container)),l(t,{chartX:Math.round(i.pageX-e.left),chartY:Math.round(i.pageY-e.top)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return a(this.chart.axes,(function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})})),e},findNearestKDPoint:function(t,e,i){var n;return a(t,(function(t){var o=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,o),(o=p(t,!0))&&!(o=!p(n,!0))){o=n.distX-t.distX;var r=n.dist-t.dist,s=(t.series.group&&t.series.group.zIndex)-(n.series.group&&n.series.group.zIndex);o=0<(0!==o&&e?o:0!==r?r:0!==s?s:n.series.index>t.series.index?-1:1)}o&&(n=t)})),n},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=(n=t.series).xAxis,n=n.yAxis,o=f(t.clientX,t.plotX),r=t.shapeArgs;return i&&n?e?{chartX:i.len+i.pos-o,chartY:n.len+n.pos-t.plotY}:{chartX:o+i.pos,chartY:t.plotY+n.pos}:r&&r.x&&r.y?{chartX:r.x,chartY:r.y}:void 0},getHoverData:function(e,i,n,o,r,s,l){var c,d=[],u=l&&l.isBoosting;return o=!(!o||!e),l=i&&!i.stickyTracking?[i]:t.grep(n,(function(t){return t.visible&&!(!r&&t.directTouch)&&f(t.options.enableMouseTracking,!0)&&t.stickyTracking})),i=(c=o?e:this.findNearestKDPoint(l,r,s))&&c.series,c&&(r&&!i.noSharedTooltip?(l=t.grep(n,(function(t){return t.visible&&!(!r&&t.directTouch)&&f(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})),a(l,(function(t){var e=h(t.points,(function(t){return t.x===c.x&&!t.isNull}));p(e)&&(u&&(e=t.getPoint(e)),d.push(e))}))):d.push(c)),{hoverPoint:c,hoverSeries:i,hoverPoints:d}},runPointActions:function(i,o){var r,s=this.chart,l=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,h=!!l&&l.shared,c=(d=o||s.hoverPoint)&&d.series||s.hoverSeries,d=(c=this.getHoverData(d,c,s.series,!!o||c&&c.directTouch&&this.isDirectTouch,h,i,{isBoosting:s.isBoosting})).hoverPoint;if(r=c.hoverPoints,o=(c=c.hoverSeries)&&c.tooltipOptions.followPointer,h=h&&c&&!c.noSharedTooltip,d&&(d!==s.hoverPoint||l&&l.isHidden)){if(a(s.hoverPoints||[],(function(e){-1===t.inArray(e,r)&&e.setState()})),a(r||[],(function(t){t.setState("hover")})),s.hoverSeries!==c&&c.onMouseOver(),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!d.series)return;d.firePointEvent("mouseOver"),s.hoverPoints=r,s.hoverPoint=d,l&&l.refresh(h?r:d,i)}else o&&l&&!l.isHidden&&(d=l.getAnchor([{}],i),l.updatePosition({plotX:d[0],plotY:d[1]}));this.unDocMouseMove||(this.unDocMouseMove=e(s.container.ownerDocument,"mousemove",(function(e){var i=n[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)}))),a(s.axes,(function(e){var n=f(e.crosshair.snap,!0),o=n?t.find(r,(function(t){return t.series[e.coll]===e})):void 0;o||!n?e.drawCrosshair(i,o):e.hideCrosshair()}))},reset:function(t,e){var i=this.chart,n=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,s=i.tooltip,l=s&&s.shared?r:o;t&&l&&a(g(l),(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?s&&l&&(s.refresh(l),o&&(o.setState(o.state,!0),a(i.axes,(function(t){t.crosshair&&t.drawCrosshair(null,o)})))):(o&&o.onMouseOut(),r&&a(r,(function(t){t.setState()})),n&&n.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),a(i.axes,(function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,n=this.chart;a(n.series,(function(o){i=t||o.getPlotBox(),o.xAxis&&o.xAxis.zoomEnabled&&o.group&&(o.group.attr(i),o.markerGroup&&(o.markerGroup.attr(i),o.markerGroup.clip(e?n.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(i))})),n.clipRect.attr(e||n.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,i=this.chart,n=i.options.chart,r=t.chartX,s=t.chartY,a=this.zoomHor,l=this.zoomVert,h=i.plotLeft,c=i.plotTop,d=i.plotWidth,p=i.plotHeight,u=this.selectionMarker,f=this.mouseDownX,g=this.mouseDownY,m=n.panKey&&t[n.panKey+"Key"];u&&u.touch||(rh+d&&(r=h+d),sc+p&&(s=c+p),this.hasDragged=Math.sqrt(Math.pow(f-r,2)+Math.pow(g-s,2)),10v.max&&(e=v.max-l,c=!0),c?(k-=.8*(k-s[p][0]),b||(M-=.8*(M-s[p][1])),i()):s[p]=[k,M],y||(r[p]=h-m,r[g]=l),r=y?1/x:x,o[g]=l,o[p]=e,n[y?t?"scaleY":"scaleX":"scale"+u]=x,n["translate"+u]=r*m+(k-r*w)},pinch:function(t){var e=this,a=e.chart,l=e.pinchDown,h=t.touches,c=h.length,d=e.lastValidTouch,p=e.hasZoom,u=e.selectionMarker,f={},g=1===c&&(e.inClass(t.target,"highcharts-tracker")&&a.runTrackerClick||e.runChartClick),m={};1t-6&&sh?this.maxItemWidth:t.itemWidth;n&&this.itemX-i+e>h&&(this.itemX=i,this.itemY+=s+this.lastLineHeight+r,this.lastLineHeight=0),this.lastItemY=s+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=e:(this.itemY+=s+o+r,this.lastLineHeight=o),this.offsetWidth=l||Math.max((n?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},getAllItems:function(){var t=[];return r(this.chart.series,(function(e){var i=e&&e.options;e&&c(i.showInLegend,!o(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))})),s(this,"afterGetAllItems",{allItems:t}),t},getAlignment:function(){var t=this.options;return t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},adjustMargins:function(t,e){var i=this.chart,n=this.options,s=this.getAlignment();s&&r([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],(function(r,a){r.test(s)&&!o(t[a])&&(i[l[a]]=Math.max(i[l[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*n[a%2?"x":"y"]+c(n.margin,12)+e[a]+(0===a&&void 0!==i.options.title.margin?i.titleOffset+i.options.title.margin:0)))}))},render:function(){var t,e,i,n,o=this.chart,s=o.renderer,a=this.group,l=this.box,c=this.options,d=this.padding;this.itemX=d,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,a||(this.group=a=s.g("legend").attr({zIndex:7}).add(),this.contentGroup=s.g().attr({zIndex:1}).add(a),this.scrollGroup=s.g().add(this.contentGroup)),this.renderTitle(),t=this.getAllItems(),p(t,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),c.reversed&&t.reverse(),this.allItems=t,this.display=e=!!t.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,r(t,this.renderItem,this),r(t,this.layoutItem,this),i=(c.width||this.offsetWidth)+d,n=this.lastItemY+this.lastLineHeight+this.titleHeight,n=this.handleOverflow(n),n+=d,l||(this.box=l=s.rect().addClass("highcharts-legend-box").attr({r:c.borderRadius}).add(a),l.isNew=!0),l.attr({stroke:c.borderColor,"stroke-width":c.borderWidth||0,fill:c.backgroundColor||"none"}).shadow(c.shadow),0h&&!1!==p.enabled?(this.clipHeight=e=Math.max(h-20-this.titleHeight-l,0),this.currentPage=c(this.currentPage,1),this.fullHeight=t,r(x,(function(t,n){var o=t._legendItemPos[1],r=Math.round(t.legendItem.getBBox().height),s=m.length;(!s||o-m[s-1]>e&&(i||o)!==m[s-1])&&(m.push(i||o),s++),t.pageIx=s-1,i&&(x[n-1].pageIx=s-1),n===x.length-1&&o+r-m[s-1]>e&&(m.push(o),t.pageIx=s),o!==i&&(i=o)})),d||(d=n.clipRect=o.clipRect(0,l,9999,0),n.contentGroup.clip(d)),y(e),g||(this.nav=g=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,f,f).on("click",(function(){n.scroll(-1,u)})).add(g),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation").css(p.style).add(g),this.down=o.symbol("triangle-down",0,0,f,f).on("click",(function(){n.scroll(1,u)})).add(g)),n.scroll(0),t=h):g&&(y(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,n=i.length;t=this.currentPage+t;var o=this.clipHeight,r=this.options.navigation,s=this.pager,a=this.padding;t>n&&(t=n),0s&&("string"===(n=typeof e[0])?i.name=e[0]:"number"===n&&(i.x=e[0]),h++);c=t.value;)t=e[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor,t},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;for(t in e.pointCount--,i&&(this.setState(),o(i,this),i.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(c(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this),this)this[t]=null},destroyElements:function(){for(var t,e=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],i=6;i--;)this[t=e[i]]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,n=e.tooltipOptions,o=h(n.valueDecimals,""),r=n.valuePrefix||"",a=n.valueSuffix||"";return i(e.pointArrayMap||["y"],(function(e){e="{point."+e,(r||a)&&(t=t.replace(RegExp(e+"}","g"),r+e+"}"+a)),t=t.replace(RegExp(e+"}","g"),e+":,."+o+"f}")})),s(t,{point:this,series:this.series},e.chart.time)},firePointEvent:function(t,e,i){var n=this,o=this.series.options;(o.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&o.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),r(this,t,e,i)},visible:!0}}(h),function(t){var e=t.addEvent,i=t.animObject,n=t.arrayMax,o=t.arrayMin,r=t.correctFloat,s=t.defaultOptions,a=t.defaultPlotOptions,l=t.defined,h=t.each,c=t.erase,d=t.extend,p=t.fireEvent,u=t.grep,f=t.isArray,g=t.isNumber,m=t.isString,x=t.merge,y=t.objectEach,v=t.pick,b=t.removeEvent,w=t.splat,k=t.SVGElement,A=t.syncTimeout,M=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:t.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(t,i){var n,o,r=this,s=t.series;r.chart=t,r.options=i=r.setOptions(i),r.linkedSeries=[],r.bindAxes(),d(r,{name:i.name,state:"",visible:!1!==i.visible,selected:!0===i.selected}),n=i.events,y(n,(function(t,i){e(r,i,t)})),(n&&n.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(t.runTrackerClick=!0),r.getColor(),r.getSymbol(),h(r.parallelArrays,(function(t){r[t+"Data"]=[]})),r.setData(i.data,!1),r.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(o=s[s.length-1]),r._i=v(o&&o._i,-1)+1,t.orderSeries(this.insert(s)),p(this,"afterInit")},insert:function(t){var e,i=this.options.index;if(g(i)){for(e=t.length;e--;)if(i>=v(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return v(e,t.length-1)},bindAxes:function(){var e,i=this,n=i.options,o=i.chart;h(i.axisTypes||[],(function(r){h(o[r],(function(t){e=t.options,(n[r]===e.index||void 0!==n[r]&&n[r]===e.id||void 0===n[r]&&0===e.index)&&(i.insert(t.series),i[r]=t,t.isDirty=!0)})),i[r]||i.optionalAxis===r||t.error(18,!0)}))},updateParallelArrays:function(t,e){var i=t.series,n=arguments,o=g(e)?function(n){var o="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=o}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};h(i.parallelArrays,o)},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,n=e.pointIntervalUnit,o=this.chart.time;i=v(i,e.pointStart,0);return this.pointInterval=t=v(this.pointInterval,e.pointInterval,1),n&&(e=new o.Date(i),"day"===n?o.set("Date",e,o.get("Date",e)+t):"month"===n?o.set("Month",e,o.get("Month",e)+t):"year"===n&&o.set("FullYear",e,o.get("FullYear",e)+t),t=e.getTime()-i),this.xIncrement=i+t,i},setOptions:function(t){var e=this.chart,i=e.options,n=i.plotOptions,o=(e.userOptions||{}).plotOptions||{},r=n[this.type];return this.userOptions=t,e=x(r,n.series,t),this.tooltipOptions=x(s.tooltip,s.plotOptions.series&&s.plotOptions.series.tooltip,s.plotOptions[this.type].tooltip,i.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,t.tooltip),this.stickyTracking=v(t.stickyTracking,o[this.type]&&o[this.type].stickyTracking,o.series&&o.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||e.stickyTracking),null===r.marker&&delete e.marker,this.zoneAxis=e.zoneAxis,t=this.zones=(e.zones||[]).slice(),!e.negativeColor&&!e.negativeFillColor||e.zones||t.push({value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative",color:e.negativeColor,fillColor:e.negativeFillColor}),t.length&&l(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),p(this,"afterSetOptions",{options:e}),e},getName:function(){return this.name||"Series "+(this.index+1)},getCyclic:function(t,e,i){var n,o=this.chart,r=this.userOptions,s=t+"Index",a=t+"Counter",h=i?i.length:v(o.options.chart[t+"Count"],o[t+"Count"]);e||(n=v(r[s],r["_"+s]),l(n)||(o.series.length||(o[a]=0),r["_"+s]=n=o[a]%h,o[a]+=1),i&&(e=i[n])),void 0!==n&&(this[s]=n),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||a[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,updateData:function(e){var i,n,o,r=this.options,s=this.points,a=[],l=this.requireSorting;if(h(e,(function(e){var n;n=t.defined(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e).x,g(n)&&(-1===(n=t.inArray(n,this.xData,o))?a.push(e):e!==r.data[n]?(s[n].update(e,!1,null,!1),s[n].touched=!0,l&&(o=n)):s[n]&&(s[n].touched=!0),i=!0)}),this),i)for(e=s.length;e--;)(n=s[e]).touched||n.remove(!1),n.touched=!1;else{if(e.length!==s.length)return!1;h(e,(function(t,e){s[e].update&&t!==r.data[e]&&s[e].update(t,!1,null,!1)}))}return h(a,(function(t){this.addPoint(t,!1)}),this),!0},setData:function(e,i,n,o){var r,s,a=this,l=a.points,c=l&&l.length||0,d=a.options,p=a.chart,u=null,x=a.xAxis,y=d.turboThreshold,b=this.xData,w=this.yData,k=(r=a.pointArrayMap)&&r.length;if(r=(e=e||[]).length,i=v(i,!0),!1!==o&&r&&c&&!a.cropped&&!a.hasGroupedData&&a.visible&&(s=this.updateData(e)),!s){if(a.xIncrement=null,a.colorCounter=0,h(this.parallelArrays,(function(t){a[t+"Data"].length=0})),y&&r>y){for(n=0;null===u&&nl||this.forceCrop)&&(n[r-1]d?(n=[],o=[]):(n[0]d)&&(n=(i=this.cropData(this.xData,this.yData,c,d)).xData,o=i.yData,i=i.start,s=!0)),l=n.length||1;--l;)0<(r=g?f(n[l])-f(n[l-1]):n[l]-n[l-1])&&(void 0===a||rr&&m&&(t.error(15),m=!1);this.cropped=s,this.cropStart=i,this.processedXData=n,this.processedYData=o,this.closestPointRange=a},cropData:function(t,e,i,n,o){var r,s=t.length,a=0,l=s;for(o=v(o,this.cropShoulder,1),r=0;r=i){a=Math.max(0,r-o);break}for(i=r;in){l=i+o;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}},generatePoints:function(){var t,e,i,n,o=(p=this.options).data,r=this.data,s=this.processedXData,a=this.processedYData,l=this.pointClass,h=s.length,c=this.cropStart||0,d=this.hasGroupedData,p=p.keys,u=[];for(r||d||((r=[]).length=o.length,r=this.data=r),p&&d&&(this.options.keys=!1),n=0;n=p&&(h[a-m]||r)<=u,i&&r)if(i=s.length)for(;i--;)"number"==typeof s[i]&&(c[d++]=s[i]);else c[d++]=s;this.dataMin=o(c),this.dataMax=n(c)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i,n,o=this.options,s=o.stacking,a=this.xAxis,h=a.categories,c=this.yAxis,d=this.points,u=d.length,f=!!this.modifyValue,m=o.pointPlacement,x="between"===m||g(m),y=o.threshold,b=o.startFromThreshold?y:0,w=Number.MAX_VALUE;for("between"===m&&(m=.5),g(m)&&(m*=v(o.pointRange||a.pointRange)),o=0;o=M&&(k.isNull=!0),k.plotX=t=r(Math.min(Math.max(-1e5,a.translate(A,0,0,0,1,m,"flags"===this.type)),1e5)),s&&this.visible&&!k.isNull&&T&&T[A]&&(n=this.getStackIndicator(n,A,this.index),e=(M=(S=T[A]).points[n.key])[0],M=M[1],e===b&&n.key===T[A].base&&(e=v(g(y)&&y,c.min)),c.positiveValuesOnly&&0>=e&&(e=null),k.total=k.stackTotal=S.total,k.percentage=S.total&&k.y/S.total*100,k.stackY=M,S.setOffset(this.pointXOffset||0,this.barW||0)),k.yBottom=l(e)?Math.min(Math.max(-1e5,c.translate(e,0,1,0,1)),1e5):null,f&&(M=this.modifyValue(M,k)),k.plotY=e="number"==typeof M&&1/0!==M?Math.min(Math.max(-1e5,c.translate(M,0,1,0,1)),1e5):void 0,k.isInside=void 0!==e&&0<=e&&e<=c.len&&0<=t&&t<=a.len,k.clientX=x?r(a.translate(A,0,0,0,1,m)):t,k.negative=k.y<(y||0),k.category=h&&void 0!==h[k.x]?h[k.x]:k.x,k.isNull||(void 0!==i&&(w=Math.min(w,Math.abs(t-i))),i=t),k.zone=this.zones.length&&k.getZone()}this.closestPointRangePx=w,p(this,"afterTranslate")},getValidPoints:function(t,e){var i=this.chart;return u(t||this.points||[],(function(t){return!(e&&!i.isInsidePlot(t.plotX,t.plotY,i.inverted))&&!t.isNull}))},setClip:function(t){var e=this.chart,i=this.options,n=e.renderer,o=e.inverted,r=this.clipBox,s=r||e.clipBox,a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,s.height,i.xAxis,i.yAxis].join(),l=e[a],h=e[a+"m"];l||(t&&(s.width=0,o&&(s.x=e.plotSizeX),e[a+"m"]=h=n.clipRect(o?e.plotSizeX+99:-99,o?-e.plotLeft:-e.plotTop,99,o?e.chartWidth:e.chartHeight)),e[a]=l=n.clipRect(s),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),!1!==i.clip&&(this.group.clip(t||r?l:e.clipRect),this.markerGroup.clip(h),this.sharedClipKey=a),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&a&&e[a]&&(r||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e,n=this.chart,o=i(this.options.animation);t?this.setClip(o):((t=n[e=this.sharedClipKey])&&t.animate({width:n.plotSizeX,x:0},o),n[e+"m"]&&n[e+"m"].animate({width:n.plotSizeX+99,x:0},o),this.animate=null)},afterAnimate:function(){this.setClip(),p(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i,n,o,r,s,a,l=this.points,h=this.chart,c=this.options.marker,d=this[this.specialGroup]||this.markerGroup,p=v(c.enabled,!!this.xAxis.isRadial||null,this.closestPointRangePx>=c.enabledThreshold*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(t=0;to&&e.shadow)),s&&(s.startX=i.xMap,s.isArea=i.isArea)}))},getZonesGraphs:function(t){return h(this.zones,(function(e,i){t.push(["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||""),e.color||this.color,e.dashStyle||this.options.dashStyle])}),this),t},applyZones:function(){var t,e,i,n,o,r,s,a,l,c=this,d=this.chart,p=d.renderer,u=this.zones,f=this.clips||[],g=this.graph,m=this.area,x=Math.max(d.chartWidth,d.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],b=d.inverted,w=!1;u.length&&(g||m)&&y&&void 0!==y.min&&(o=y.reversed,r=y.horiz,g&&!this.showLine&&g.hide(),m&&m.hide(),n=y.getExtremes(),h(u,(function(h,u){t=o?r?d.plotWidth:0:r?0:y.toPixels(n.min),t=Math.min(Math.max(v(e,t),0),x),e=Math.min(Math.max(Math.round(y.toPixels(v(h.value,n.max),!0)),0),x),w&&(t=e=y.toPixels(n.max)),s=Math.abs(t-e),a=Math.min(t,e),l=Math.max(t,e),y.isXAxis?(i={x:b?l:a,y:0,width:s,height:x},r||(i.x=d.plotHeight-i.x)):(i={x:0,y:b?l:a,width:x,height:s},r&&(i.y=d.plotWidth-i.y)),b&&p.isVML&&(i=y.isXAxis?{x:0,y:o?a:l,height:i.width,width:d.chartWidth}:{x:i.y-d.plotLeft-d.spacingBox.x,y:0,width:i.height,height:d.chartHeight}),f[u]?f[u].animate(i):(f[u]=p.clipRect(i),g&&c["zone-graph-"+u].clip(f[u]),m&&c["zone-area-"+u].clip(f[u])),w=h.value>n.max,c.resetZones&&0===e&&(e=void 0)})),this.clips=f)},invertGroups:function(t){function i(){h(["group","markerGroup"],(function(e){o[e]&&(r.renderer.isVML&&o[e].attr({width:o.yAxis.len,height:o.xAxis.len}),o[e].width=o.yAxis.len,o[e].height=o.xAxis.len,o[e].invert(t))}))}var n,o=this,r=o.chart;o.xAxis&&(n=e(r,"resize",i),e(o,"destroy",n),i(),o.invertGroups=i)},plotGroup:function(t,e,i,n,o){var r=this[t],s=!r;return s&&(this[t]=r=this.chart.renderer.g().attr({zIndex:n||.1}).add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr({visibility:i})[s?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,n=e.chart,o=e.options,r=!!e.animate&&n.renderer.isSVG&&i(o.animation).duration,s=e.visible?"inherit":"hidden",a=o.zIndex,l=e.hasRendered,h=n.seriesGroup,c=n.inverted;t=e.plotGroup("group","series",s,a,h),e.markerGroup=e.plotGroup("markerGroup","markers",s,a,h),r&&e.animate(!0),t.inverted=!!e.isCartesian&&c,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(c),!1===o.clip||e.sharedClipKey||l||t.clip(n.clipRect),r&&e.animate(),l||(e.animationTimeout=A((function(){e.afterAnimate()}),r)),e.isDirty=!1,e.hasRendered=!0,p(e,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,o=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:v(n&&n.left,t.plotLeft),translateY:v(o&&o.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?n.len-t.chartX+n.pos:t.chartY-n.pos},e)},buildKDTree:function(){this.buildingKdTree=!0;var t=this,e=-1(u=e[u]-p[u])?"right":"left",s[c=0>u?"left":"right"]&&(f=(c=t(e,s[c],a+1,h))[r]a;)s--;this.updateParallelArrays(o,"splice",s,0,0),this.updateParallelArrays(o,s),d&&o.name&&(d[a]=o.name),p.splice(s,0,t),r&&(this.data.splice(s,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),i&&(h[0]&&h[0].remove?h[0].remove(!1):(h.shift(),this.updateParallelArrays(o,"shift"),p.shift())),this.isDirtyData=this.isDirty=!0,e&&c.redraw(n)},removePoint:function(t,e,i){var n=this,o=n.data,r=o[t],s=n.points,a=n.chart,l=function(){s&&s.length===o.length&&s.splice(t,1),o.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(r||{series:n},"splice",t,1),r&&r.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};w(i,a),e=x(e,!0),r?r.firePointEvent("remove",null,l):l()},remove:function(t,e,i){function n(){o.destroy(),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(),x(t,!0)&&r.redraw(e)}var o=this,r=o.chart;!1!==i?c(o,"remove",null,n):n()},update:function(e,i){var n,o=this,r=o.chart,s=o.userOptions,l=o.oldType||o.type,p=e.type||s.type||r.options.chart.type,u=b[l].prototype,f=["group","markerGroup","dataLabelsGroup"],m=["navigatorSeries","baseSeries"],y=o.finishedAnimating&&{animation:!1},v=["data","name","turboThreshold"],w=t.keys(e),k=0t&&r>h?a=2*h-(r=Math.max(t,h)):rn&&a>h?r=2*h-(a=Math.max(n,h)):a=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA,r=(o=t.borderWidth=a(i.borderWidth,o?0:1),t.yAxis),s=i.threshold,h=t.translatedThreshold=r.getThreshold(s),c=a(i.minPointLength,5),d=t.getColumnMetrics(),p=d.width,u=t.barW=Math.max(p,1+2*o),f=t.pointXOffset=d.offset;e.inverted&&(h-=.5),i.pointPadding&&(u=Math.ceil(u)),l.prototype.translate.apply(t),n(t.points,(function(i){var n,o=a(i.yBottom,h),l=999+Math.abs(o),d=(l=Math.min(Math.max(-l,i.plotY),r.len+l),i.plotX+f),g=u,m=Math.min(l,o),x=Math.max(l,o)-m;c&&Math.abs(x)c?o-c:h-(n?c:0)),i.barX=d,i.pointWidth=p,i.tooltipPos=e.inverted?[r.len+r.pos-e.plotLeft-l,t.xAxis.len-d-g/2,x]:[d+g/2,l+r.pos-e.plotTop,x],i.shapeType="rect",i.shapeArgs=t.crispCol.apply(t,i.isNull?[d,h,g,0]:[d,m,g,x])}))},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var n,o=this.options;n=(c=this.pointAttrToOptions||{}).stroke||"borderColor";var r=c["stroke-width"]||"borderWidth",a=t&&t.color||this.color,l=t&&t[n]||o[n]||this.color||a,h=t&&t[r]||o[r]||this[r]||0,c=o.dashStyle;return t&&this.zones.length&&(a=t.getZone(),a=t.options.color||a&&a.color||this.color),e&&(e=(t=s(o.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&i(a).brighten(t.brightness).get()||a,l=t[n]||l,h=t[r]||h,c=t.dashStyle||c),n={fill:a,stroke:l,"stroke-width":h},c&&(n.dashstyle=c),n},drawPoints:function(){var t,e=this,i=this.chart,o=e.options,a=i.renderer,l=o.animationLimit||250;n(e.points,(function(n){var h=n.graphic,c=h&&i.pointCount\u25cf
{series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)}})}(h),function(t){var e=t.deg2rad,i=t.isNumber,n=t.pick,o=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t,e,i=this.options,r=this.chart,s=2*(i.slicedOffset||0),a=r.plotWidth-2*s,l=(r=r.plotHeight-2*s,i.center),h=(l=[n(l[0],"50%"),n(l[1],"50%"),i.size||"100%",i.innerSize||0],Math.min(a,r));for(t=0;4>t;++t)e=l[t],i=2>t||2===t&&/%$/.test(e),l[t]=o(e,[a,r,h,l[2]][t])+(i?s:0);return l[3]>l[2]&&(l[3]=l[2]),l},getStartAndEndRadians:function(t,n){return t=i(t)?t:0,n=i(n)&&n>t&&360>n-t?n:t+360,{start:e*(t+-90),end:e*(n+-90)}}}}(h),function(t){var e=t.addEvent,i=t.CenteredSeriesMixin,n=t.defined,o=t.each,r=t.extend,s=i.getStartAndEndRadians,a=t.inArray,l=t.noop,h=t.pick,c=t.Point,d=t.Series,p=t.seriesType,u=t.setAnimation;p("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,n=e.startAngleRad;t||(o(i,(function(t){var i=t.graphic,o=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:n,end:n}),i.animate({r:o.r,start:o.start,end:o.end},e.options.animation))})),e.animate=null)},updateTotals:function(){var t,e,i=0,n=this.points,o=n.length,r=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(n)*c),translateY:Math.round(Math.sin(n)*c)},i=Math.cos(n)*t[2]/2,o=Math.sin(n)*t[2]/2,a.tooltipPos=[t[0]+.7*i,t[1]+.7*o],a.half=n<-Math.PI/2||n>Math.PI/2?1:0,a.angle=n,e=Math.min(d,a.labelDistance/5),a.labelPos=[t[0]+i+Math.cos(n)*a.labelDistance,t[1]+o+Math.sin(n)*a.labelDistance,t[0]+i+Math.cos(n)*e,t[1]+o+Math.sin(n)*e,t[0]+i,t[1]+o,0>a.labelDistance?"center":a.half?"right":"left",n]},drawGraph:null,drawPoints:function(){var t,e,i,n,s=this,a=s.chart.renderer,l=s.options.shadow;l&&!s.shadowGroup&&(s.shadowGroup=a.g("shadow").add(s.group)),o(s.points,(function(o){if(e=o.graphic,o.isNull)e&&(o.graphic=e.destroy());else{n=o.shapeArgs,t=o.getTranslate();var h=o.shadowGroup;l&&!h&&(h=o.shadowGroup=a.g("shadow").add(s.shadowGroup)),h&&h.attr(t),i=s.pointAttribs(o,o.selected&&"select"),e?e.setRadialReference(s.center).attr(i).animate(r(n,t)):(o.graphic=e=a[o.shapeType](n).setRadialReference(s.center).attr(t).add(s.group),o.visible||e.attr({visibility:"hidden"}),e.attr(i).attr({"stroke-linejoin":"round"}).shadow(l,h)),e.addClass(o.getClassName())}}))},searchPoint:l,sortByAngle:function(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:i.getCenter,getSymbol:l},{init:function(){c.prototype.init.apply(this,arguments);var t,i=this;return i.name=h(i.name,"Slice"),t=function(t){i.slice("select"===t.type)},e(i,"select",t),e(i,"unselect",t),i},isValid:function(){return t.isNumber(this.y,!0)&&0<=this.y},setVisible:function(t,e){var i=this,n=i.series,r=n.chart,s=n.options.ignoreHiddenPoint;e=h(e,s),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,n.options.data[a(i,n.data)]=i.options,o(["graphic","dataLabel","connector","shadowGroup"],(function(e){i[e]&&i[e][t?"show":"hide"](!0)})),i.legendItem&&r.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),s&&(n.isDirty=!0),e&&r.redraw())},slice:function(t,e,i){var o=this.series;u(i,o.chart),h(e,!0),this.sliced=this.options.sliced=n(t)?t:!this.sliced,o.options.data[a(this,o.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r-1,start:e.start,end:e.end})}})}(h),function(t){var e=t.addEvent,i=t.arrayMax,n=t.defined,o=t.each,r=t.extend,s=t.format,a=t.map,l=t.merge,h=t.noop,c=t.pick,d=t.relativeLength,p=t.Series,u=t.seriesTypes,f=t.some,g=t.stableSort;t.distribute=function(e,i,n){function r(t,e){return t.target-e.target}var s,l,h=!0,d=e,p=[];l=0;var u=d.reducedLen||i;for(s=e.length;s--;)l+=e[s].size;if(l>u){for(g(e,(function(t,e){return(e.rank||0)-(t.rank||0)})),l=s=0;l<=u;)l+=e[s].size,s++;p=e.splice(s-1,e.length)}for(g(e,r),e=a(e,(function(t){return{size:t.size,targets:[t.target],align:c(t.align,.5)}}));h;){for(s=e.length;s--;)h=e[s],l=(Math.min.apply(0,h.targets)+Math.max.apply(0,h.targets))/2,h.pos=Math.min(Math.max(0,l-h.size*h.align),i-h.size);for(s=e.length,h=!1;s--;)0e[s].pos&&(e[s-1].size+=e[s].size,e[s-1].targets=e[s-1].targets.concat(e[s].targets),e[s-1].align=.5,e[s-1].pos+e[s-1].size>i&&(e[s-1].pos=i-e[s-1].size),e.splice(s,1),h=!0)}d.push.apply(d,p),s=0,f(e,(function(e){var r=0;if(f(e.targets,(function(){if(d[s].pos=e.pos+r,Math.abs(d[s].pos-d[s].target)>n)return o(d.slice(0,s+1),(function(t){delete t.pos})),d.reducedLen=(d.reducedLen||i)-.1*i,d.reducedLen>.1*i&&t.distribute(d,i,n),!0;r+=d[s].size,s++})))return!0})),g(d,r)},p.prototype.drawDataLabels=function(){var i,r,a,h,d=this,p=d.chart,u=d.options,f=u.dataLabels,g=d.points,m=d.hasRendered||0,x=c(f.defer,!!u.animation),y=p.renderer;(f.enabled||d._hasPointLabels)&&(d.dlProcessOptions&&d.dlProcessOptions(f),h=d.plotGroup("dataLabelsGroup","data-labels",x&&!m?"hidden":"visible",f.zIndex||6),x&&(h.attr({opacity:+m}),m||e(d,"afterAnimate",(function(){d.visible&&h.show(!0),h[u.animation?"animate":"attr"]({opacity:1},{duration:200})}))),r=f,o(g,(function(e){var o,g,m,x,v=e.dataLabel,b=e.connector,w=!v;i=e.dlOptions||e.options&&e.options.dataLabels,(o=c(i&&i.enabled,r.enabled)&&!e.isNull)&&(o=!0===function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(e,i||f)),o&&(f=l(r,i),g=e.getLabelConfig(),x=f[e.formatPrefix+"Format"]||f.format,a=n(x)?s(x,g,p.time):(f[e.formatPrefix+"Formatter"]||f.formatter).call(g,f),x=f.style,g=f.rotation,x.color=c(f.color,x.color,d.color,"#000000"),"contrast"===x.color&&(e.contrastColor=y.getContrast(e.color||d.color),x.color=f.inside||0>c(e.labelDistance,f.distance)||u.stacking?e.contrastColor:"#000000"),u.cursor&&(x.cursor=u.cursor),m={fill:f.backgroundColor,stroke:f.borderColor,"stroke-width":f.borderWidth,r:f.borderRadius||0,rotation:g,padding:f.padding,zIndex:1},t.objectEach(m,(function(t,e){void 0===t&&delete m[e]}))),!v||o&&n(a)?o&&n(a)&&(v?m.text=a:(v=e.dataLabel=g?y.text(a,0,-9999).addClass("highcharts-data-label"):y.label(a,0,-9999,f.shape,null,null,f.useHTML,null,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(f.className||"")+(f.useHTML?"highcharts-tracker":"")),v.attr(m),v.css(x).shadow(f.shadow),v.added||v.add(h),d.alignDataLabel(e,v,f,null,w)):(e.dataLabel=v=v.destroy(),b&&(e.connector=b.destroy()))}))),t.fireEvent(this,"afterDrawDataLabels")},p.prototype.alignDataLabel=function(t,e,i,n,o){var s,a=this.chart,l=a.inverted,h=c(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),d=c(t.plotY,-9999),p=e.getBBox(),u=i.rotation,f=i.align,g=this.visible&&(t.series.forceDL||a.isInsidePlot(h,Math.round(d),l)||n&&a.isInsidePlot(h,l?n.x+1:n.y+n.height-1,l)),m="justify"===c(i.overflow,"justify");g&&(s=i.style.fontSize,s=a.renderer.fontMetrics(s,e).b,n=r({x:l?this.yAxis.len-d:h,y:Math.round(l?this.xAxis.len-h:d),width:0,height:0},n),r(i,{width:p.width,height:p.height}),u?(m=!1,h=a.renderer.rotCorr(s,u),h={x:n.x+i.x+n.width/2+h.x,y:n.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height},e[o?"attr":"animate"](h).attr({align:f}),d=180<(d=(u+720)%360)&&360>d,"left"===f?h.y-=d?p.height:0:"center"===f?(h.x-=p.width/2,h.y-=p.height/2):"right"===f&&(h.x-=p.width,h.y-=d?0:p.height),e.placed=!0,e.alignAttr=h):(e.align(i,null,n),h=e.alignAttr),m?t.isLabelJustified=this.justifyDataLabel(e,i,h,p,n,o):c(i.crop,!0)&&(g=a.isInsidePlot(h.x,h.y)&&a.isInsidePlot(h.x+p.width,h.y+p.height)),i.shape&&!u)&&e[o?"attr":"animate"]({anchorX:l?a.plotWidth-t.plotY:t.plotX,anchorY:l?a.plotHeight-t.plotX:t.plotY}),g||(e.attr({y:-9999}),e.placed=!1)},p.prototype.justifyDataLabel=function(t,e,i,n,o,r){var s,a,l=this.chart,h=e.align,c=e.verticalAlign,d=t.box?0:t.padding||0;return 0>(s=i.x+d)&&("right"===h?e.align="left":e.x=-s,a=!0),(s=i.x+n.width-d)>l.plotWidth&&("left"===h?e.align="right":e.x=l.plotWidth-s,a=!0),0>(s=i.y+d)&&("bottom"===c?e.verticalAlign="top":e.y=-s,a=!0),(s=i.y+n.height-d)>l.plotHeight&&("top"===c?e.verticalAlign="bottom":e.y=l.plotHeight-s,a=!0),a&&(t.placed=!r,t.align(e,null,o)),a},u.pie&&(u.pie.prototype.drawDataLabels=function(){var e,r,s,a,l,h,d,u,f,g,m=this,x=m.data,y=m.chart,v=m.options.dataLabels,b=c(v.connectorPadding,10),w=c(v.connectorWidth,1),k=y.plotWidth,A=y.plotHeight,M=Math.round(y.chartWidth/3),S=m.center,T=S[2]/2,P=S[1],C=[[],[]],L=[0,0,0,0];m.visible&&(v.enabled||m._hasPointLabels)&&(o(x,(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),p.prototype.drawDataLabels.apply(m),o(x,(function(t){t.dataLabel&&t.visible&&(C[t.half].push(t),t.dataLabel._pos=null,!n(v.style.width)&&!n(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>M&&(t.dataLabel.css({width:.7*M}),t.dataLabel.shortened=!0))})),o(C,(function(i,r){var p,x,w,M=i.length,C=[];if(M)for(m.sortByAngle(i,r-.5),0e.bottom-2?p:u,r,e),s._attr={visibility:f,align:l[6]},s._pos={x:d+v.x+({left:b,right:-b}[l[6]]||0),y:u+v.y-10},l.x=d,l.y=u,c(v.crop,!0)&&(a=s.getBBox().width,p=null,d-ak-b&&0===r&&(p=Math.round(d+a-k+b),L[1]=Math.max(p,L[1])),0>u-h/2?L[0]=Math.max(Math.round(h/2-u),L[0]):u+h/2>A&&(L[2]=Math.max(Math.round(u+h/2-A),L[2])),s.sideOverflow=p)})),0===i(L)||this.verifyDataLabelOverflow(L))&&(this.placeDataLabels(),w&&o(this.points,(function(t){var e;r=t.connector,(s=t.dataLabel)&&s._pos&&t.visible&&0c(this.translatedThreshold,s.yAxis.len)),d=c(i.inside,!!this.options.stacking);a&&(0>(n=l(a)).y&&(n.height+=n.y,n.y=0),0<(a=n.y+n.height-s.yAxis.len)&&(n.height-=a),r&&(n={x:s.yAxis.len-n.y-n.height,y:s.xAxis.len-n.x-n.width,width:n.height,height:n.width}),d||(r?(n.x+=h?0:n.width,n.width=0):(n.y+=h?n.height:0,n.height=0))),i.align=c(i.align,!r||d?"center":h?"right":"left"),i.verticalAlign=c(i.verticalAlign,r||d?"middle":h?"top":"bottom"),p.prototype.alignDataLabel.call(this,t,e,i,n,o),t.isLabelJustified&&t.contrastColor&&t.dataLabel.css({color:t.contrastColor})})}(h),function(t){var e=t.Chart,i=t.each,n=t.objectEach,o=t.pick;(t=t.addEvent)(e,"render",(function(){var t=[];i(this.labelCollectors||[],(function(e){t=t.concat(e())})),i(this.yAxis||[],(function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&n(e.stacks,(function(e){n(e,(function(e){t.push(e.label)}))}))})),i(this.series||[],(function(e){var n=e.options.dataLabels,r=e.dataLabelCollections||["dataLabel"];(n.enabled||e._hasPointLabels)&&!n.allowOverlap&&e.visible&&i(r,(function(n){i(e.points,(function(e){e[n]&&(e[n].labelrank=o(e.labelrank,e.shapeArgs&&e.shapeArgs.height),t.push(e[n]))}))}))})),this.hideOverlappingLabels(t)})),e.prototype.hideOverlappingLabels=function(t){var e,n,o,r,s,a,l,h,c,d=t.length,p=function(t,e,i,n,o,r,s,a){return!(o>t+i||o+se+n||r+athis.pointCount))},pan:function(t,e){var i,n=this,o=n.hoverPoints;o&&l(o,(function(t){t.setState()})),l("xy"===e?[1,0]:[1],(function(e){var o,r=(e=n[e?"xAxis":"yAxis"][0]).horiz,s=t[r?"chartX":"chartY"],a=n[r=r?"mouseDownX":"mouseDownY"],l=(e.pointRange||0)/2,h=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,c=e.getExtremes(),d=e.toValue(a-s,!0)+l*h;a=(o=(h=e.toValue(a+e.len-s,!0)-l*h)=s(i.minWidth,0)&&this.chartHeight>=s(i.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(e){var i={};return function e(i,s,l,h){var c;t.objectEach(i,(function(t,i){if(!h&&-10;){for(const t of r){const e="".concat(s).concat(n.sep).concat(n.join(...a,t));if(o.existsSync(e)){if(!t.endsWith("json")){const t=i(e);return t.default||t}{const i=JSON.parse(o.readFileSync(e));if("package.json"!==t)return i;if(i.perspective)return i.perspective}}}a.pop()}}():{types:{float:{filter_operator:"==",aggregate:"sum",format:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},string:{filter_operator:"==",aggregate:"count"},integer:{filter_operator:"==",aggregate:"sum",format:{}},boolean:{filter_operator:"==",aggregate:"count"},datetime:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},null_value:-1},date:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric"},null_value:-1}}}||{})),n.__PERSPECTIVE_CONFIG__}}).call(this,i(50)(t),i(51),i(52))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){var i,n,o=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(i===setTimeout)return setTimeout(t,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:r}catch(t){i=r}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var l,h=[],c=!1,d=-1;function p(){c&&l&&(c=!1,l.length?h=l.concat(h):d=-1,h.length&&u())}function u(){if(!c){var t=a(p);c=!0;for(var e=h.length;e;){for(l=h,h=[];++d1)for(var i=1;i=h?t?"":void 0:(r=a.charCodeAt(l))<55296||r>56319||l+1===h||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):r:t?a.slice(l,l+2):s-56320+(r-55296<<10)+65536}}},function(t,e,i){var n=i(12),o=i(0)("toStringTag"),r="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?i:r?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,i){"use strict";var n=i(21);i(23)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(t,e,i){t.exports=i(13)("native-function-to-string",Function.toString)},function(t,e,i){var n=i(32);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,i){"use strict";var n=i(61),o=i(62),r=i(25),s=i(10);t.exports=i(64)(Array,"Array",(function(t,e){this._t=s(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])}),"values"),r.Arguments=r.Array,n("keys"),n("values"),n("entries")},function(t,e,i){var n=i(0)("unscopables"),o=Array.prototype;null==o[n]&&i(3)(o,n,{}),t.exports=function(t){o[n][t]=!0}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){var n=i(12);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e,i){"use strict";var n=i(15),o=i(23),r=i(9),s=i(3),a=i(25),l=i(65),h=i(28),c=i(70),d=i(0)("iterator"),p=!([].keys&&"next"in[].keys()),u=function(){return this};t.exports=function(t,e,i,f,g,m,x){l(i,e,f);var y,v,b,w=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},k=e+" Iterator",A="values"==g,M=!1,S=t.prototype,T=S[d]||S["@@iterator"]||g&&S[g],P=T||w(g),C=g?A?w("entries"):P:void 0,L="Array"==e&&S.entries||T;if(L&&(b=c(L.call(new t)))!==Object.prototype&&b.next&&(h(b,k,!0),n||"function"==typeof b[d]||s(b,d,u)),A&&T&&"values"!==T.name&&(M=!0,P=function(){return T.call(this)}),n&&!x||!p&&!M&&S[d]||s(S,d,P),a[e]=P,a[k]=u,g)if(y={values:A?P:w("values"),keys:m?P:w("keys"),entries:C},x)for(v in y)v in S||r(S,v,y[v]);else o(o.P+o.F*(p||M),e,y);return y}},function(t,e,i){"use strict";var n=i(39),o=i(18),r=i(28),s={};i(3)(s,i(0)("iterator"),(function(){return this})),t.exports=function(t,e,i){t.prototype=n(s,{next:o(1,i)}),r(t,e+" Iterator")}},function(t,e,i){var n=i(6),o=i(2),r=i(19);t.exports=i(4)?Object.defineProperties:function(t,e){o(t);for(var i,s=r(e),a=s.length,l=0;a>l;)n.f(t,i=s[l++],e[i]);return t}},function(t,e,i){var n=i(10),o=i(20),r=i(68);t.exports=function(t){return function(e,i,s){var a,l=n(e),h=o(l.length),c=r(s,h);if(t&&i!=i){for(;h>c;)if((a=l[c++])!=a)return!0}else for(;h>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}}},function(t,e,i){var n=i(16),o=Math.max,r=Math.min;t.exports=function(t,e){return(t=n(t))<0?o(t+e,0):r(t,e)}},function(t,e,i){var n=i(1).document;t.exports=n&&n.documentElement},function(t,e,i){var n=i(7),o=i(29),r=i(26)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,r)?t[r]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e){t.exports.default={types:{float:{filter_operator:"==",aggregate:"sum",format:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},string:{filter_operator:"==",aggregate:"count"},integer:{filter_operator:"==",aggregate:"sum",format:{}},boolean:{filter_operator:"==",aggregate:"count"},datetime:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},null_value:-1},date:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric"},null_value:-1}}}},function(t,e,i){var n=i(11)("meta"),o=i(8),r=i(7),s=i(6).f,a=0,l=Object.isExtensible||function(){return!0},h=!i(5)((function(){return l(Object.preventExtensions({}))})),c=function(t){s(t,n,{value:{i:"O"+ ++a,w:{}}})},d=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!r(t,n)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[n].i},getWeak:function(t,e){if(!r(t,n)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[n].w},onFreeze:function(t){return h&&d.NEED&&l(t)&&!r(t,n)&&c(t),t}}},function(t,e,i){var n=i(19),o=i(45),r=i(30);t.exports=function(t){var e=n(t),i=o.f;if(i)for(var s,a=i(t),l=r.f,h=0;a.length>h;)l.call(t,s=a[h++])&&e.push(s);return e}},function(t,e,i){var n=i(12);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(10),o=i(46).f,r={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==r.call(t)?function(t){try{return o(t)}catch(t){return s.slice()}}(t):o(n(t))}},function(t,e,i){var n=i(30),o=i(18),r=i(10),s=i(24),a=i(7),l=i(36),h=Object.getOwnPropertyDescriptor;e.f=i(4)?h:function(t,e){if(t=r(t),e=s(e,!0),l)try{return h(t,e)}catch(t){}if(a(t,e))return o(!n.f.call(t,e),t[e])}},function(t,e,i){!function(e){t.exports?t.exports=e:e(Highcharts)}((function(t){var e,i,n,o,r;i=(e=t).deg2rad,n=e.isNumber,o=e.pick,r=e.relativeLength,e.CenteredSeriesMixin={getCenter:function(){var t,e,i=this.options,n=this.chart,s=2*(i.slicedOffset||0),a=n.plotWidth-2*s,l=(n=n.plotHeight-2*s,i.center),h=(l=[o(l[0],"50%"),o(l[1],"50%"),i.size||"100%",i.innerSize||0],Math.min(a,n));for(t=0;4>t;++t)e=l[t],i=2>t||2===t&&/%$/.test(e),l[t]=r(e,[a,n,h,l[2]][t])+(i?s:0);return l[3]>l[2]&&(l[3]=l[2]),l},getStartAndEndRadians:function(t,e){return t=n(t)?t:0,e=n(e)&&e>t&&360>e-t?e:t+360,{start:i*(t+-90),end:i*(e+-90)}}},function(t){function e(t,e){this.init(t,e)}var i=t.CenteredSeriesMixin,n=t.each,o=t.extend,r=t.merge,s=t.splat;o(e.prototype,{coll:"pane",init:function(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)},setOptions:function(t){this.options=r(this.defaultOptions,this.chart.angular?{background:{}}:void 0,t)},render:function(){var t=this.options,e=this.options.background,i=this.chart.renderer;if(this.group||(this.group=i.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter(),e)for(e=s(e),t=Math.max(e.length,this.background.length||0),i=0;ic.len*c.tickInterval/(c.max-c.min)&&(p=0),u=f>p&&f<180-p?"left":f>180+p&&f<360-p?"right":"center"):u="center",n.attr({align:u})),t.x+=r.x,t.y+=d):t=t.call(this,e,i,n,o,r,s,a,h),t})),c(t,"getMarkPath",(function(t,e,i,n,o,r,s){var a=this.axis;return a.isRadial?e=["M",e,i,"L",(t=a.getPosition(this.pos,a.center[2]/2+n)).x,t.y]:e=t.call(this,e,i,n,o,r,s),e}))}(t),function(t){var e=t.each,i=t.pick,n=t.defined,o=t.seriesType,r=t.seriesTypes,s=t.Series.prototype,a=t.Point.prototype;o("arearange","area",{lineWidth:1,threshold:null,tooltip:{pointFormat:'\u25cf {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(t){return[t.low,t.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(t){var e=this.chart,i=this.xAxis.postTranslate(t.rectPlotX,this.yAxis.len-t.plotHigh);t.plotHighX=i.x-e.plotLeft,t.plotHigh=i.y-e.plotTop,t.plotLowX=t.plotX},translate:function(){var t=this,i=t.yAxis,n=!!t.modifyValue;r.area.prototype.translate.apply(t),e(t.points,(function(e){var o=e.low,r=e.high,s=e.plotY;null===r||null===o?(e.isNull=!0,e.plotY=null):(e.plotLow=s,e.plotHigh=i.translate(n?t.modifyValue(r,e):r,0,1,0,1),n&&(e.yBottom=e.plotHigh))})),this.chart.polar&&e(this.points,(function(e){t.highToXY(e),e.tooltipPos=[(e.plotHighX+e.plotLowX)/2,(e.plotHigh+e.plotLow)/2]}))},getGraphPath:function(t){var e,n,o,s,a=[],l=[],h=r.area.prototype.getGraphPath;s=this.options;var c=this.chart.polar&&!1!==s.connectEnds,d=s.connectNulls,p=s.step;for(e=(t=t||this.points).length;e--;)(n=t[e]).isNull||c||d||t[e+1]&&!t[e+1].isNull||l.push({plotX:n.plotX,plotY:n.plotY,doCurve:!1}),o={polarPlotY:n.polarPlotY,rectPlotX:n.rectPlotX,yBottom:n.yBottom,plotX:i(n.plotHighX,n.plotX),plotY:n.plotHigh,isNull:n.isNull},l.push(o),a.push(o),n.isNull||c||d||t[e-1]&&!t[e-1].isNull||l.push({plotX:n.plotX,plotY:n.plotY,doCurve:!1});return t=h.call(this,t),p&&(!0===p&&(p="left"),s.step={left:"right",center:"center",right:"left"}[p]),a=h.call(this,a),l=h.call(this,l),s.step=p,s=[].concat(t,a),this.chart.polar||"M"!==l[0]||(l[0]="L"),this.graphPath=s,this.areaPath=t.concat(l),s.isArea=!0,s.xMap=t.xMap,this.areaPath.xMap=t.xMap,s},drawDataLabels:function(){var t,e,i,n=this.data,o=n.length,r=[],a=this.options.dataLabels,l=a.align,h=a.verticalAlign,c=a.inside,d=this.chart.inverted;if(a.enabled||this._hasPointLabels){for(t=o;t--;)(e=n[t])&&(i=c?e.plotHighe.plotLow,e.y=e.high,e._plotY=e.plotY,e.plotY=e.plotHigh,r[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=i,d?l||(a.align=i?"right":"left"):h||(a.verticalAlign=i?"top":"bottom"),a.x=a.xHigh,a.y=a.yHigh);for(s.drawDataLabels&&s.drawDataLabels.apply(this,arguments),t=o;t--;)(e=n[t])&&(i=c?e.plotHighe.plotLow,e.dataLabelUpper=e.dataLabel,e.dataLabel=r[t],e.y=e.low,e.plotY=e._plotY,e.below=!i,d?l||(a.align=i?"left":"right"):h||(a.verticalAlign=i?"bottom":"top"),a.x=a.xLow,a.y=a.yLow);s.drawDataLabels&&s.drawDataLabels.apply(this,arguments)}a.align=l,a.verticalAlign=h},alignDataLabel:function(){r.column.prototype.alignDataLabel.apply(this,arguments)},drawPoints:function(){var t,e,i=this.points.length;for(s.drawPoints.apply(this,arguments),e=0;ea&&(p-=a*=-1),c?(t=i.barX+l,i.shapeType="path",i.shapeArgs={d:n.polarArc(p+a,p,t,t+i.pointWidth)}):(u.height=a,u.y=p,i.tooltipPos=h.inverted?[o.len+o.pos-h.plotLeft-p-a/2,s.len+s.pos-h.plotTop-u.x-u.width/2,a]:[s.left-h.plotLeft+u.x+u.width/2,o.pos-h.plotTop+p+a/2,a])}))},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:o,getSymbol:o,crispCol:a.crispCol,drawPoints:a.drawPoints,drawTracker:a.drawTracker,getColumnMetrics:a.getColumnMetrics,pointAttribs:a.pointAttribs,animate:function(){return a.animate.apply(this,arguments)},polarArc:function(){return a.polarArc.apply(this,arguments)},translate3dPoints:function(){return a.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return a.translate3dShapes.apply(this,arguments)}},{setState:a.pointClass.prototype.setState})}(t),function(t){var e=t.each,i=t.isNumber,n=t.merge,o=t.pick,r=t.pInt,s=t.Series,a=t.seriesType,l=t.TrackerMixin;a("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:t.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var t=this.yAxis,s=this.options,a=t.center;this.generatePoints(),e(this.points,(function(e){var l=n(s.dial,e.dial),h=r(o(l.radius,80))*a[2]/200,c=r(o(l.baseLength,70))*h/100,d=r(o(l.rearLength,10))*h/100,p=l.baseWidth||3,u=l.topWidth||1,f=s.overshoot,g=t.startAngleRad+t.translate(e.y,null,null,null,!0);i(f)?(f=f/180*Math.PI,g=Math.max(t.startAngleRad-f,Math.min(t.endAngleRad+f,g))):!1===s.wrap&&(g=Math.max(t.startAngleRad,Math.min(t.endAngleRad,g))),g=180*g/Math.PI,e.shapeType="path",e.shapeArgs={d:l.path||["M",-d,-p/2,"L",c,-p/2,h,-u/2,h,u/2,c,p/2,-d,p/2,"z"],translateX:a[0],translateY:a[1],rotation:g},e.plotX=a[0],e.plotY=a[1]}))},drawPoints:function(){var t=this,i=t.yAxis.center,r=t.pivot,s=t.options,a=s.pivot,l=t.chart.renderer;e(t.points,(function(e){var i=e.graphic,o=e.shapeArgs,r=o.d,a=n(s.dial,e.dial);i?(i.animate(o),o.d=r):(e.graphic=l[e.shapeType](o).attr({rotation:o.rotation,zIndex:1}).addClass("highcharts-dial").add(t.group),e.graphic.attr({stroke:a.borderColor||"none","stroke-width":a.borderWidth||0,fill:a.backgroundColor||"#000000"}))})),r?r.animate({translateX:i[0],translateY:i[1]}):(t.pivot=l.circle(0,0,o(a.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(i[0],i[1]).add(t.group),t.pivot.attr({"stroke-width":a.borderWidth||0,stroke:a.borderColor||"#cccccc",fill:a.backgroundColor||"#000000"}))},animate:function(t){var i=this;t||(e(i.points,(function(t){var e=t.graphic;e&&(e.attr({rotation:180*i.yAxis.startAngleRad/Math.PI}),e.animate({rotation:t.shapeArgs.rotation},i.options.animation))})),i.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),s.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:function(t,e){s.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),o(e,!0)&&this.chart.redraw()},drawTracker:l&&l.drawTrackerPoint},{setState:function(t){this.state=t}})}(t),function(t){var e=t.each,i=t.noop,n=t.pick,o=t.seriesType,r=t.seriesTypes;o("boxplot","column",{threshold:null,tooltip:{pointFormat:'\u25cf {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(t){return[t.low,t.q1,t.median,t.q3,t.high]},pointValKey:"high",pointAttribs:function(t){var e=this.options,i=t&&t.color||this.color;return{fill:t.fillColor||e.fillColor||i,stroke:e.lineColor||i,"stroke-width":e.lineWidth||0}},drawDataLabels:i,translate:function(){var t=this.yAxis,i=this.pointArrayMap;r.column.prototype.translate.apply(this),e(this.points,(function(n){e(i,(function(e){null!==n[e]&&(n[e+"Plot"]=t.translate(n[e],0,1,0,1))}))}))},drawPoints:function(){var t,i,o,r,s,a,l,h,c,d,p,u=this,f=u.options,g=u.chart.renderer,m=0,x=!1!==u.doQuartiles,y=u.options.whiskerLength;e(u.points,(function(e){var v=e.graphic,b=v?"animate":"attr",w=e.shapeArgs,k={},A={},M={},S=e.color||u.color;void 0!==e.plotY&&(l=w.width,h=Math.floor(w.x),c=h+l,d=Math.round(l/2),t=Math.floor(x?e.q1Plot:e.lowPlot),i=Math.floor(x?e.q3Plot:e.lowPlot),o=Math.floor(e.highPlot),r=Math.floor(e.lowPlot),v||(e.graphic=v=g.g("point").add(u.group),e.stem=g.path().addClass("highcharts-boxplot-stem").add(v),y&&(e.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(v)),x&&(e.box=g.path(void 0).addClass("highcharts-boxplot-box").add(v)),e.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(v)),k.stroke=e.stemColor||f.stemColor||S,k["stroke-width"]=n(e.stemWidth,f.stemWidth,f.lineWidth),k.dashstyle=e.stemDashStyle||f.stemDashStyle,e.stem.attr(k),y&&(A.stroke=e.whiskerColor||f.whiskerColor||S,A["stroke-width"]=n(e.whiskerWidth,f.whiskerWidth,f.lineWidth),e.whiskers.attr(A)),x&&(v=u.pointAttribs(e),e.box.attr(v)),M.stroke=e.medianColor||f.medianColor||S,M["stroke-width"]=n(e.medianWidth,f.medianWidth,f.lineWidth),e.medianShape.attr(M),a=e.stem.strokeWidth()%2/2,m=h+d+a,e.stem[b]({d:["M",m,i,"L",m,o,"M",m,t,"L",m,r]}),x&&(a=e.box.strokeWidth()%2/2,t=Math.floor(t)+a,i=Math.floor(i)+a,h+=a,c+=a,e.box[b]({d:["M",h,i,"L",h,t,"L",c,t,"L",c,i,"L",h,i,"z"]})),y&&(a=e.whiskers.strokeWidth()%2/2,o+=a,r+=a,p=/%$/.test(y)?d*parseFloat(y)/100:y/2,e.whiskers[b]({d:["M",m-p,o,"L",m+p,o,"M",m-p,r,"L",m+p,r]})),s=Math.round(e.medianPlot),a=e.medianShape.strokeWidth()%2/2,s+=a,e.medianShape[b]({d:["M",h,s,"L",c,s]}))}))},setStackedPoints:i})}(t),function(t){var e=t.each,i=t.noop,n=t.seriesType,o=t.seriesTypes;n("errorbar","boxplot",{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\u25cf {series.name}: {point.low} - {point.high}
'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:o.arearange?function(){var t=this.pointValKey;o.arearange.prototype.drawDataLabels.call(this),e(this.data,(function(e){e.y=e[t]}))}:i,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||o.column.prototype.getColumnMetrics.call(this)}})}(t),function(t){var e=t.correctFloat,i=t.isNumber,n=t.pick,o=t.Point,r=t.Series,s=t.seriesType,a=t.seriesTypes;s("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",translate:function(){var t,i,o,r,s,l,h,c,d,p,u,f=this.options,g=this.yAxis,m=n(f.minPointLength,5),x=m/2,y=f.threshold,v=f.stacking;for(a.column.prototype.translate.apply(this),c=d=y,t=0,f=(i=this.points).length;tr.height&&(r.y+=r.height,r.height*=-1),o.plotY=r.y=Math.round(r.y)-this.borderWidth%2/2,r.height=Math.max(Math.round(r.height),.001),o.yBottom=r.y+r.height,r.height<=m&&!o.isNull?(r.height=m,r.y-=x,o.plotY=r.y,o.minPointLengthOffset=0>o.y?-x:x):o.minPointLengthOffset=0,r=o.plotY+(o.negative?r.height:0),this.chart.inverted?o.tooltipPos[0]=g.len-r:o.tooltipPos[1]=r},processData:function(t){var i,n,o,s,a,l,h,c=this.yData,d=this.options.data,p=c.length;for(o=n=s=a=this.options.threshold||0,h=0;hn[i-1].y&&!s||0=this.minPxSize/2?(i.marker=t.extend(i.marker,{radius:n,width:2*n,height:2*n}),i.dlBox={x:i.plotX-n,y:i.plotY-n,width:2*n,height:2*n}):i.shapeArgs=i.plotY=i.dlBox=void 0},alignDataLabel:u.column.prototype.alignDataLabel,buildKDTree:a,applyZones:a},{haloPath:function(t){return c.prototype.haloPath.call(this,0===t?0:(this.marker&&this.marker.radius||0)+t)},ttBelow:!1}),n.prototype.beforePadding=function(){var t=this,n=this.len,o=this.chart,a=0,c=n,d=this.isXAxis,p=d?"xData":"yData",u=this.min,f={},g=Math.min(o.plotWidth,o.plotHeight),m=Number.MAX_VALUE,x=-Number.MAX_VALUE,y=this.max-u,v=n/y,b=[];r(this.series,(function(n){var s=n.options;!n.bubblePadding||!n.visible&&o.options.chart.ignoreHiddenSeries||(t.allowZoomOutside=!0,b.push(n),d&&(r(["minSize","maxSize"],(function(t){var e=s[t],i=/%$/.test(e);e=h(e);f[t]=i?g*e/100:e})),n.minPxSize=f.minSize,n.maxPxSize=Math.max(f.maxSize,f.minSize),(n=n.zData).length&&(m=l(s.zMin,Math.min(m,Math.max(i(n),!1===s.displayNegative?s.zThreshold:-Number.MAX_VALUE))),x=l(s.zMax,Math.max(x,e(n))))))})),r(b,(function(e){var i,n=e[p],o=n.length;if(d&&e.getRadii(m,x,e.minPxSize,e.maxPxSize),0(o=0<=e&&e<=t.length-1?e:0>e?t.length-1+e:0)-1?t.length-(1+r):o-1,r=o+1>t.length-1?r:o+1,s=t[e],r=t[r],a=s.plotX,s=s.plotY,l=r.plotX,h=r.plotY,a=(1.5*(r=t[o].plotX)+a)/2.5,s=(1.5*(o=t[o].plotY)+s)/2.5,l=(1.5*r+l)/2.5,c=(1.5*o+h)/2.5,h=Math.sqrt(Math.pow(a-r,2)+Math.pow(s-o,2)),d=Math.sqrt(Math.pow(l-r,2)+Math.pow(c-o,2)),a=Math.atan2(s-o,a-r),c=Math.PI/2+(a+Math.atan2(c-o,l-r))/2,Math.abs(a-c)>Math.PI/2&&(c-=Math.PI),a=r+Math.cos(c)*h,s=o+Math.sin(c)*h,r={rightContX:l=r+Math.cos(Math.PI+c)*d,rightContY:c=o+Math.sin(Math.PI+c)*d,leftContX:a,leftContY:s,plotX:r,plotY:o},i&&(r.prevPointCont=this.getConnectors(t,e,!1,n)),r},r(s,"buildKDTree",(function(t){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy"),t.apply(this)})),s.toXY=function(t){var e,i=this.chart,n=t.plotX;e=t.plotY,t.rectPlotX=n,t.rectPlotY=e,e=this.xAxis.postTranslate(t.plotX,this.yAxis.len-e),t.plotX=t.polarPlotX=e.x-i.plotLeft,t.plotY=t.polarPlotY=e.y-i.plotTop,this.kdByAngle?(0>(i=(n/Math.PI*180+this.xAxis.pane.options.startAngle)%360)&&(i+=360),t.clientX=i):t.clientX=t.plotX},o.spline&&(r(o.spline.prototype,"getPointSpline",(function(t,e,i,n){return this.chart.polar?n?t=["C",(t=this.getConnectors(e,n,!0,this.connectEnds)).prevPointCont.rightContX,t.prevPointCont.rightContY,t.leftContX,t.leftContY,t.plotX,t.plotY]:t=["M",i.plotX,i.plotY]:t=t.call(this,e,i,n),t})),o.areasplinerange&&(o.areasplinerange.prototype.getPointSpline=o.spline.prototype.getPointSpline)),r(s,"translate",(function(t){var e=this.chart;if(t.call(this),e.polar&&(this.kdByAngle=e.tooltip&&e.tooltip.shared,!this.preventPostTranslate))for(e=(t=this.points).length;e--;)this.toXY(t[e])})),r(s,"getGraphPath",(function(t,e){var n,o,r,s=this;if(this.chart.polar){for(e=e||this.points,n=0;no.center[1]})),r(o,"alignDataLabel",(function(t,e,i,n,o,r){this.chart.polar?(t=e.rectPlotX/Math.PI*180,null===n.align&&(n.align=20t?"left":200t?"right":"center"),null===n.verticalAlign&&(n.verticalAlign=45>t||315t?"top":"middle"),s.alignDataLabel.call(this,e,i,n,o,r)):t.call(this,e,i,n,o,r)}))),r(a,"getCoordinates",(function(t,e){var n=this.chart,o={xAxis:[],yAxis:[]};return n.polar?i(n.axes,(function(t){var i=t.isXAxis,r=t.center,s=e.chartX-r[0]-n.plotLeft;r=e.chartY-r[1]-n.plotTop;o[i?"xAxis":"yAxis"].push({axis:t,value:t.translate(i?Math.PI-Math.atan2(s,r):Math.sqrt(Math.pow(s,2)+Math.pow(r,2)),!0)})})):o=t.call(this,e),o})),r(t.Chart.prototype,"getAxes",(function(e){this.pane||(this.pane=[]),i(t.splat(this.options.pane),(function(e){new t.Pane(e,this)}),this),e.call(this)})),r(t.Chart.prototype,"drawChartBox",(function(t){t.call(this),i(this.pane,(function(t){t.render()}))})),r(t.Chart.prototype,"get",(function(e,i){return t.find(this.pane,(function(t){return t.options.id===i}))||e.call(this,i)}))}(t)}))},function(t,e,i){!function(e){t.exports?t.exports=e:e(Highcharts)}((function(t){!function(t){var e,i=t.addEvent,n=t.Axis,o=t.Chart,r=t.color,s=t.each,a=t.extend,l=t.isNumber,h=t.Legend,c=t.LegendSymbolMixin,d=t.noop,p=t.merge,u=t.pick;t.ColorAxis||(e=t.ColorAxis=function(){this.init.apply(this,arguments)},a(e.prototype,n.prototype),a(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(n.prototype.keepProps),init:function(t,e){var i,o="vertical"!==t.options.legend.layout;this.coll="colorAxis",i=p(this.defaultColorAxisOptions,{side:o?2:1,reversed:!o},e,{opposite:!o,showEmpty:!1,title:null,visible:t.options.legend.enabled}),n.prototype.init.call(this,t,i),e.dataClasses&&this.initDataClasses(e),this.initStops(),this.horiz=o,this.zoomEnabled=!1,this.defaultLegendLength=200},initDataClasses:function(t){var e,i=this.chart,n=0,o=i.options.chart.colorCount,a=this.options,l=t.dataClasses.length;this.dataClasses=e=[],this.legendItems=[],s(t.dataClasses,(function(t,s){t=p(t),e.push(t),t.color||("category"===a.dataClassColor?(s=i.options.colors,o=s.length,t.color=s[n],t.colorIndex=n,++n===o&&(n=0)):t.color=r(a.minColor).tweenTo(r(a.maxColor),2>l?.5:s/(l-1)))}))},setTickPositions:function(){if(!this.dataClasses)return n.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]],s(this.stops,(function(t){t.color=r(t[1])}))},setOptions:function(t){n.prototype.setOptions.call(this,t),this.options.crosshair=this.options.marker},setAxisSize:function(){var t,e,i=this.legendSymbol,n=this.chart,o=n.options.legend||{};i?(this.left=o=i.attr("x"),this.top=t=i.attr("y"),this.width=e=i.attr("width"),this.height=i=i.attr("height"),this.right=n.chartWidth-o-e,this.bottom=n.chartHeight-t-i,this.len=this.horiz?e:i,this.pos=this.horiz?o:t):this.len=(this.horiz?o.symbolWidth:o.symbolHeight)||this.defaultLegendLength},normalizedValue:function(t){return this.isLog&&(t=this.val2lin(t)),1-(this.max-t)/(this.max-this.min||1)},toColor:function(t,e){var i,n,o,r,s=this.stops,a=this.dataClasses;if(a){for(r=a.length;r--;)if(i=(o=a[r]).from,s=o.to,(void 0===i||t>=i)&&(void 0===s||t<=s)){n=o.color,e&&(e.dataClass=r,e.colorIndex=o.colorIndex);break}}else{for(t=this.normalizedValue(t),r=s.length;r--&&!(t>s[r][0]););i=s[r]||s[r+1],t=1-((s=s[r+1]||i)[0]-t)/(s[0]-i[0]||1),n=i.color.tweenTo(s.color,t)}return n},getOffset:function(){var t=this.legendGroup,e=this.chart.axisOffset[this.side];t&&(this.axisParent=t,n.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=e)},setLegendColor:function(){var t,e=this.reversed;t=e?1:0,e=e?0:1,t=this.horiz?[t,0,e,0]:[0,e,0,t],this.legendColor={linearGradient:{x1:t[0],y1:t[1],x2:t[2],y2:t[3]},stops:this.stops}},drawLegendSymbol:function(t,e){var i=t.padding,n=t.options,o=this.horiz,r=u(n.symbolWidth,o?this.defaultLegendLength:12),s=u(n.symbolHeight,o?12:this.defaultLegendLength),a=u(n.labelPadding,o?16:30);n=u(n.itemDistance,10);this.setLegendColor(),e.legendSymbol=this.chart.renderer.rect(0,t.baseline-11,r,s).attr({zIndex:1}).add(e.legendGroup),this.legendItemWidth=r+i+(o?n:a),this.legendItemHeight=s+i+(o?a:0)},setState:function(t){s(this.series,(function(e){e.setState(t)}))},visible:!0,setVisible:d,getSeriesExtremes:function(){var t=this.series,e=t.length;for(this.dataMin=1/0,this.dataMax=-1/0;e--;)void 0!==t[e].valueMin&&(this.dataMin=Math.min(this.dataMin,t[e].valueMin),this.dataMax=Math.max(this.dataMax,t[e].valueMax))},drawCrosshair:function(t,e){var i,o=e&&e.plotX,r=e&&e.plotY,s=this.pos,a=this.len;e&&((i=this.toPixels(e[e.series.colorKey]))s+a&&(i=s+a+2),e.plotX=i,e.plotY=this.len-i,n.prototype.drawCrosshair.call(this,t,e),e.plotX=o,e.plotY=r,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.cross.attr({fill:this.crosshair.color})))},getPlotLinePath:function(t,e,i,o,r){return l(r)?this.horiz?["M",r-4,this.top-6,"L",r+4,this.top-6,r,this.top,"Z"]:["M",this.left,r,"L",this.left-6,r+6,this.left-6,r-6,"Z"]:n.prototype.getPlotLinePath.call(this,t,e,i,o)},update:function(t,e){var i=this.chart,o=i.legend;s(this.series,(function(t){t.isDirtyData=!0})),t.dataClasses&&o.allItems&&(s(o.allItems,(function(t){t.isDataClass&&t.legendGroup&&t.legendGroup.destroy()})),i.isDirtyLegend=!0),i.options[this.coll]=p(this.userOptions,t),n.prototype.update.call(this,t,e),this.legendItem&&(this.setLegendColor(),o.colorizeItem(this,!0))},remove:function(){this.legendItem&&this.chart.legend.destroyItem(this),n.prototype.remove.call(this)},getDataClassLegendSymbols:function(){var e,i=this,n=this.chart,o=this.legendItems,r=n.options.legend,l=r.valueDecimals,h=r.valueSuffix||"";return o.length||s(this.dataClasses,(function(r,p){var u=!0,f=r.from,g=r.to;e="",void 0===f?e="< ":void 0===g&&(e="> "),void 0!==f&&(e+=t.numberFormat(f,l)+h),void 0!==f&&void 0!==g&&(e+=" - "),void 0!==g&&(e+=t.numberFormat(g,l)+h),o.push(a({chart:n,name:e,options:{},drawLegendSymbol:c.drawRectangle,visible:!0,setState:d,isDataClass:!0,setVisible:function(){u=this.visible=!u,s(i.series,(function(t){s(t.points,(function(t){t.dataClass===p&&t.setVisible(u)}))})),n.legend.colorizeItem(this,u)}},r))})),o},name:""}),s(["fill","stroke"],(function(e){t.Fx.prototype[e+"Setter"]=function(){this.elem.attr(e,r(this.start).tweenTo(r(this.end),this.pos),null,!0)}})),i(o,"afterGetAxes",(function(){var t=this.options.colorAxis;this.colorAxis=[],t&&new e(this,t)})),i(h,"afterGetAllItems",(function(e){var i=[],n=this.chart.colorAxis[0];for(n&&n.options&&(n.options.showInLegend&&(n.options.dataClasses?i=n.getDataClassLegendSymbols():i.push(n)),s(n.series,(function(i){t.erase(e.allItems,i)})));i.length;)e.allItems.unshift(i.pop())})),i(h,"afterColorizeItem",(function(t){t.visible&&t.item.legendColor&&t.item.legendSymbol.attr({fill:t.item.legendColor})})),i(h,"afterUpdate",(function(t,e,i){this.chart.colorAxis[0]&&this.chart.colorAxis[0].update({},i)})))}(t),function(t){var e=t.defined,i=t.each,n=t.noop,o=t.seriesTypes;t.colorPointMixin={isValid:function(){return null!==this.value&&1/0!==this.value&&-1/0!==this.value},setVisible:function(t){var e=this,n=t?"show":"hide";i(["graphic","dataLabel"],(function(t){e[t]&&e[t][n]()}))},setState:function(e){t.Point.prototype.setState.call(this,e),this.graphic&&this.graphic.attr({zIndex:"hover"===e?1:0})}},t.colorSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:n,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:o.column.prototype.pointAttribs,translateColors:function(){var t=this,e=this.options.nullColor,n=this.colorAxis,o=this.colorKey;i(this.data,(function(i){var r=i[o];(r=i.options.color||(i.isNull?e:n&&void 0!==r?n.toColor(r,i):i.color||t.color))&&(i.color=r)}))},colorAttribs:function(t){var i={};return e(t.color)&&(i[this.colorProp||"fill"]=t.color),i}}}(t),function(t){var e=t.colorPointMixin,i=t.each,n=t.merge,o=t.noop,r=t.pick,s=t.Series,a=t.seriesType,l=t.seriesTypes;a("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}
"},states:{hover:{halo:!1,brightness:.2}}},n(t.colorSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){var t;l.scatter.prototype.init.apply(this,arguments),(t=this.options).pointRange=r(t.pointRange,t.colsize||1),this.yAxis.axisPointRange=t.rowsize||1},translate:function(){var t=this.options,e=this.xAxis,n=this.yAxis,o=t.pointPadding||0,s=function(t,e,i){return Math.min(Math.max(e,t),i)};this.generatePoints(),i(this.points,(function(i){var a=(t.colsize||1)/2,l=(t.rowsize||1)/2,h=s(Math.round(e.len-e.translate(i.x-a,0,1,0,1)),-e.len,2*e.len),c=(a=s(Math.round(e.len-e.translate(i.x+a,0,1,0,1)),-e.len,2*e.len),s(Math.round(n.translate(i.y-l,0,1,0,1)),-n.len,2*n.len)),d=(l=s(Math.round(n.translate(i.y+l,0,1,0,1)),-n.len,2*n.len),r(i.pointPadding,o));i.plotX=i.clientX=(h+a)/2,i.plotY=(c+l)/2,i.shapeType="rect",i.shapeArgs={x:Math.min(h,a)+d,y:Math.min(c,l)+d,width:Math.abs(a-h)-2*d,height:Math.abs(l-c)-2*d}})),this.translateColors()},drawPoints:function(){l.column.prototype.drawPoints.call(this),i(this.points,(function(t){t.graphic.attr(this.colorAttribs(t))}),this)},animate:o,getBox:o,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,alignDataLabel:l.column.prototype.alignDataLabel,getExtremes:function(){s.prototype.getExtremes.call(this,this.valueData),this.valueMin=this.dataMin,this.valueMax=this.dataMax,s.prototype.getExtremes.call(this)}}),t.extend({haloPath:function(t){if(!t)return[];var e=this.shapeArgs;return["M",e.x-t,e.y-t,"L",e.x-t,e.y+e.height+t,e.x+e.width+t,e.y+e.height+t,e.x+e.width+t,e.y-t,"Z"]}},e))}(t)}))},function(t,e,i){!function(e){t.exports?t.exports=e:e(Highcharts)}((function(t){!function(t){function e(){var t=Array.prototype.slice.call(arguments),e=-Number.MAX_VALUE;return x(t,(function(t){if(null!=t&&void 0!==t.length&&0=(i.options.boostThreshold||Number.MAX_VALUE)&&++n;return t.boostForceChartBoost=r&&o===t.series.length&&0s||0>e)&&(e=0),(!i||i>s)&&(i=s),t.drawArrays(t[(n||"points").toUpperCase()],e/a,(i-e)/a),!0)},allocate:function(t){h=-1,l=new Float32Array(4*t)},push:function(t,e,i,n){l&&(l[++h]=t,l[++h]=e,l[++h]=i,l[++h]=n)}}}function o(e){function i(t){var e,i;return t.isSeriesBoosting?(e=!!t.options.stacking,i=t.xData||t.options.xData||t.processedXData,e=(e?t.data:i||t.options.data).length,"treemap"===t.type?e*=12:"heatmap"===t.type?e*=6:O[t.type]&&(e*=2),e):0}function o(){g.clear(g.COLOR_BUFFER_BIT|g.DEPTH_BUFFER_BIT)}function r(){P=[],S.data=v=[],b=[],u&&u.destroy()}function s(t){p&&(p.setUniform("xAxisTrans",t.transA),p.setUniform("xAxisMin",t.min),p.setUniform("xAxisMinPad",t.minPixelPadding),p.setUniform("xAxisPointRange",t.pointRange),p.setUniform("xAxisLen",t.len),p.setUniform("xAxisPos",t.pos),p.setUniform("xAxisCVSCoord",!t.horiz))}function a(t){p&&(p.setUniform("yAxisTrans",t.transA),p.setUniform("yAxisMin",t.min),p.setUniform("yAxisMinPad",t.minPixelPadding),p.setUniform("yAxisPointRange",t.pointRange),p.setUniform("yAxisLen",t.len),p.setUniform("yAxisPos",t.pos),p.setUniform("yAxisCVSCoord",!t.horiz))}function l(t,e){p.setUniform("hasThreshold",t),p.setUniform("translatedThreshold",e)}function h(i){return!!i&&(m=i.chartWidth||800,y=i.chartHeight||400,!!(g&&m&&y)&&(D.debug.timeRendering&&console.time("gl rendering"),g.canvas.width=m,g.canvas.height=y,p.bind(),g.viewport(0,0,m,y),p.setPMatrix([2/m,0,0,0,0,-2/y,0,0,0,0,-2,0,-1,1,-1,1]),p.setPlotHeight(i.plotHeight),12*((r.marker?r.marker.radius:10)||10));if(h=e.series.pointAttribs&&e.series.pointAttribs().fill||e.series.color,r.colorByPoint&&(h=e.series.chart.options.colors[i]),e.series.fillOpacity&&r.fillOpacity&&(h=new f(h).setOpacity(M(r.fillOpacity,1)).get()),h=t.color(h).rgba,D.useAlpha||(h[3]=1),"lines"===e.drawMode&&D.useAlpha&&1>h[3]&&(h[3]/=10),"add"===r.boostBlending?(g.blendFunc(g.SRC_ALPHA,g.ONE),g.blendEquation(g.FUNC_ADD)):"mult"===r.boostBlending?g.blendFunc(g.DST_COLOR,g.ZERO):"darken"===r.boostBlending?(g.blendFunc(g.ONE,g.ONE),g.blendEquation(g.FUNC_MIN)):g.blendFuncSeparate(g.SRC_ALPHA,g.ONE_MINUS_SRC_ALPHA,g.ONE,g.ONE_MINUS_SRC_ALPHA),p.reset(),0e.node.levelDynamic)return 1;if(t.node.levelDynamici.zMax&&(i.zMax=h[2]),h[2]i.zMax&&(i.zMax=L[Y]),L[Y]=A&&F<=M&&(U=!0),j&&j>=A&&j<=M&&(K=!0),m?(E&&(p=h.slice(1,3)),g=p[0],p=p[1]):w&&(N=h.x,g=(p=h.stackY)-h.y),null!=S&&null!=T&&($=p>=S&&p<=T),N>M&&X.x=A&&N<=M&&(Z=!0),(Z||U||K)&&(D.useGPUTranslations||(i.skipTranslation=!0,N=z.toPixels(N,!0),(p=I.toPixels(p,!0))>R&&(p=R),N>_&&(N=_)),q&&(h=g,!1!==g&&void 0!==g||(h=0>p?p:0),D.useGPUTranslations||(h=I.toPixels(h,!0)),o(N,h,0,0,!1)),i.hasMarkers&&!1!==W&&(e.closestPointRangePx=Math.min(e.closestPointRangePx,Math.abs(N-W))),!D.useGPUTranslations&&!D.usePreallocated&&W&&1>N-W&&G&&1>Math.abs(p-G)?D.debug.showSkipSummary&&++H:(b.step&&o(N,G,0,2,!1),o(N,p,0,"bubble"===e.type?f||1:2,!1),W=N,G=p))):s())):s();D.debug.showSkipSummary&&console.log("skipped points:",H),!W&&!1!==B&&P>-Number.MAX_VALUE&&X 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea && pos > 0.0){\npos = sqrt(pos);\n}\nradius = 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 = 1.0;\nfloat cvsOffset = 0.0;\nif (cvsCoord) {\nsign *= -1.0;\ncvsOffset = 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 = value;// + yAxisPos;\n} else {\nv = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord);// + yAxisPos;\nif (v > plotHeight) {\nv = plotHeight;\n}\n}\nif (checkTreshold > 0.0 && hasThreshold) {\nv = min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize = bubbleRadius();\n} else {\ngl_PointSize = pSize;\n}\nvColor = aColor;\nif (isInverted) {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.y) + yAxisPos, yToPixels(aVertexPosition.x, aVertexPosition.z) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}","vertex"),m=e("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 = fillColor;\nvec4 tcol;\nif (hasColor) {\ncol = vColor;\n}\nif (isCircle) {\ntcol = texture2D(uSampler, gl_PointCoord.st);\ncol *= tcol;\nif (tcol.r < 0.0) {\ndiscard;\n} else {\ngl_FragColor = col;\n}\n} else {\ngl_FragColor = col;\n}\n}","fragment");return n&&m?(o=t.createProgram(),t.attachShader(o,n),t.attachShader(o,m),t.linkProgram(o),t.useProgram(o),t.bindAttribLocation(o,0,"aVertexPosition"),r=i("uPMatrix"),s=i("pSize"),a=i("fillColor"),l=i("isBubble"),h=i("bubbleSizeAbs"),c=i("bubbleSizeByArea"),g=i("uSampler"),d=i("skipTranslation"),p=i("isCircle"),u=i("isInverted"),f=i("plotHeight"),!0):o=!1}function n(e,i){e=m[e]=m[e]||t.getUniformLocation(o,e),t.uniform1f(e,i)}var o,r,s,a,l,h,c,d,p,u,f,g,m={};return t&&i(),{psUniform:function(){return s},pUniform:function(){return r},fillColorUniform:function(){return a},setPlotHeight:function(e){t.uniform1f(f,e)},setBubbleUniforms:function(e,i,o){var r=e.options,s=Number.MAX_VALUE,a=-Number.MAX_VALUE;"bubble"===e.type&&(s=M(r.zMin,Math.min(s,Math.max(i,!1===r.displayNegative?r.zThreshold:-Number.MAX_VALUE))),a=M(r.zMax,Math.max(a,o)),t.uniform1i(l,1),t.uniform1i(p,1),t.uniform1i(c,"width"!==e.options.sizeBy),t.uniform1i(h,e.options.sizeByAbsoluteValue),n("bubbleZMin",s),n("bubbleZMax",a),n("bubbleZThreshold",e.options.zThreshold),n("bubbleMinSize",e.minPxSize),n("bubbleMaxSize",e.maxPxSize))},bind:function(){t.useProgram(o)},program:function(){return o},create:i,setUniform:n,setPMatrix:function(e){t.uniformMatrix4fv(r,!1,e)},setColor:function(e){t.uniform4f(a,e[0]/255,e[1]/255,e[2]/255,e[3])},setPointSize:function(e){t.uniform1f(s,e)},setSkipTranslation:function(e){t.uniform1i(d,!0===e?1:0)},setTexture:function(){t.uniform1i(g,0)},setDrawAsCircle:function(e){t.uniform1i(p,e?1:0)},reset:function(){t.uniform1i(l,0),t.uniform1i(p,0)},setInverted:function(e){t.uniform1i(u,e)},destroy:function(){t&&o&&(t.deleteProgram(o),o=!1)}}}(g),u=n(g,p),w=!1,c=g.createTexture(),C.width=512,C.height=512,L.mozImageSmoothingEnabled=!1,L.webkitImageSmoothingEnabled=!1,L.msImageSmoothingEnabled=!1,L.imageSmoothingEnabled=!1,L.strokeStyle="rgba(255, 255, 255, 0)",L.fillStyle="#FFF",L.beginPath(),L.arc(256,256,256,0,2*Math.PI),L.stroke(),L.fill();try{g.bindTexture(g.TEXTURE_2D,c),g.texImage2D(g.TEXTURE_2D,0,g.RGBA,g.RGBA,g.UNSIGNED_BYTE,C),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR),g.bindTexture(g.TEXTURE_2D,null),w=!0}catch(t){}return T=!0,D.debug.timeSetup&&console.timeEnd("gl setup"),!0},render:function t(e){if(o(),e.renderer.forExport)return h(e);T?h(e):setTimeout((function(){t(e)}),1)},settings:D,valid:function(){return!1!==g},clear:o,flush:r,setXAxis:s,setYAxis:a,data:v,gl:function(){return g},allocateBuffer:function(t){var e=0;D.usePreallocated&&(x(t.series,(function(t){t.isSeriesBoosting&&(e+=i(t))})),u.allocate(e))},destroy:function(){r(),u.destroy(),p.destroy(),g&&(c&&g.deleteTexture(c),g.canvas.width=1,g.canvas.height=1)},setOptions:function(t){A(!0,D,t)}}}function r(e,i){var n=e.chartWidth,r=e.chartHeight,s=e,a=e.seriesGroup||i.group;d.implementation.hasFeature("www.http://w3.org/TR/SVG11/feature#Extensibility","1.1");return(s=e.isChartSeriesBoosting()?e:i).renderTarget||(s.canvas=P,e.renderer.forExport,s.renderTarget=e.renderer.image("",0,0,n,r).addClass("highcharts-boost-canvas").add(a),s.boostClear=function(){s.renderTarget.attr({href:""})},s.boostCopy=function(){s.boostResizeTarget(),s.renderTarget.attr({href:s.canvas.toDataURL("image/png")})},s.boostResizeTarget=function(){n=e.chartWidth,r=e.chartHeight,(s.renderTargetFo||s.renderTarget).attr({x:0,y:0,width:n,height:r}).css({pointerEvents:"none",mixedBlendMode:"normal",opacity:1}),s instanceof t.Chart&&s.markerGroup.translate(e.plotLeft,e.plotTop)},s.boostClipRect=e.renderer.clipRect(),(s.renderTargetFo||s.renderTarget).clip(s.boostClipRect),s instanceof t.Chart&&(s.markerGroup=s.renderer.g().add(a),s.markerGroup.translate(i.xAxis.pos,i.yAxis.pos))),s.canvas.width=n,s.canvas.height=r,s.boostClipRect.attr(e.getBoostClipRect(s)),s.boostResizeTarget(),s.boostClear(),s.ogl||(s.ogl=o((function(){s.ogl.settings.debug.timeBufferCopy&&console.time("buffer copy"),s.boostCopy(),s.ogl.settings.debug.timeBufferCopy&&console.timeEnd("buffer copy")})),s.ogl.init(s.canvas),s.ogl.setOptions(e.options.boost||{}),s instanceof t.Chart&&s.ogl.allocateBuffer(e)),s.ogl.setSize(n,r),s.ogl}function s(t,e,i){t&&e.renderTarget&&e.canvas&&!(i||e.chart).isChartSeriesBoosting()&&t.render(i||e.chart)}function a(t,e){t&&e.renderTarget&&e.canvas&&!e.chart.isChartSeriesBoosting()&&t.allocateBufferForSingleSeries(e)}function l(t){var e=!0;if(this.chart.options&&this.chart.options.boost&&(e=void 0===this.chart.options.boost.enabled||this.chart.options.boost.enabled),!e||!this.isSeriesBoosting)return t.call(this);this.chart.isBoosting=!0,(t=r(this.chart,this))&&(a(t,this),t.pushSeries(this)),s(t,this)}var h,c=t.win,d=c.document,p=function(){},u=t.Chart,f=t.Color,g=t.Series,m=t.seriesTypes,x=t.each,y=t.extend,v=t.addEvent,b=t.fireEvent,w=t.grep,k=t.isNumber,A=t.merge,M=t.pick,S=t.wrap,T=t.getOptions().plotOptions,P=d.createElement("canvas"),C="area arearange column columnrange bar line scatter heatmap bubble treemap".split(" "),L={};x(C,(function(t){L[t]=1})),f.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"},u.prototype.isChartSeriesBoosting=function(){return M(this.options.boost&&this.options.boost.seriesThreshold,50)<=this.series.length||i(this)},u.prototype.getBoostClipRect=function(t){var e={x:this.plotLeft,y:this.plotTop,width:this.plotWidth,height:this.plotHeight};return t===this&&x(this.yAxis,(function(t){e.y=Math.min(t.pos,e.y),e.height=Math.max(t.pos-this.plotTop+t.len,e.height)}),this),e},t.eachAsync=function(e,i,n,o,r,s){for(var a=(r=r||0)+(o=o||3e4),l=!0;l&&r=(i.options.boostThreshold||Number.MAX_VALUE)}var i=this,n=this.options.data;L[this.type]?(e(n)&&"heatmap"!==this.type&&"treemap"!==this.type&&!this.options.stacking&&this.hasExtremes&&this.hasExtremes(!0)||(t.apply(this,Array.prototype.slice.call(arguments,1)),n=this.processedXData),(this.isSeriesBoosting=e(n))?this.enterBoost():this.exitBoost&&this.exitBoost()):t.apply(this,Array.prototype.slice.call(arguments,1))})),v(g,"hide",(function(){this.canvas&&this.renderTarget&&(this.ogl&&this.ogl.clear(),this.boostClear())})),g.prototype.enterBoost=function(){this.alteredByBoost=[],x(["allowDG","directTouch","stickyTracking"],(function(t){this.alteredByBoost.push({prop:t,val:this[t],own:this.hasOwnProperty(t)})}),this),this.directTouch=this.allowDG=!1,this.stickyTracking=!0,this.animate=null,this.labelBySeries&&(this.labelBySeries=this.labelBySeries.destroy())},g.prototype.exitBoost=function(){x(this.alteredByBoost||[],(function(t){t.own?this[t.prop]=t.val:delete this[t.prop]}),this),this.boostClear&&this.boostClear()},g.prototype.hasExtremes=function(t){var e=this.options,i=this.xAxis&&this.xAxis.options,n=this.yAxis&&this.yAxis.options;return e.data.length>(e.boostThreshold||Number.MAX_VALUE)&&k(n.min)&&k(n.max)&&(!t||k(i.min)&&k(i.max))},g.prototype.destroyGraphics=function(){var t,e,i=this,n=this.points;if(n)for(e=0;e=S&&s<=T),null!==s&&r>=A&&r<=M&&d)&&(t=Math.ceil(x.toPixels(r,!0)),C?(void 0!==l&&t!==e||(I||(a=s),(void 0===c||s>o)&&(o=s,c=i),(void 0===l||a{point.name}: {point.value}
"},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:n.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}}},{pointArrayMap:["value"],axisTypes:n.heatmap?["xAxis","yAxis","colorAxis"]:["xAxis","yAxis"],directTouch:!0,optionalAxis:"colorAxis",getSymbol:a,parallelArrays:["x","y","value","colorValue"],colorKey:"colorValue",translateColors:n.heatmap&&n.heatmap.prototype.translateColors,colorAttribs:n.heatmap&&n.heatmap.prototype.colorAttribs,trackerGroups:["group","dataLabelsGroup"],getListOfParents:function(e,i){return function(e,i,n){n=n||this,t.objectEach(e,(function(t,o){i.call(n,t,o,e)}))}(e=v(e||[],(function(t,e,i){return void 0===t[e=g(e.parent,"")]&&(t[e]=[]),t[e].push(i),t}),{}),(function(e,n,o){""!==n&&-1===t.inArray(n,i)&&(l(e,(function(t){o[""].push(t)})),delete o[n])})),e},getTree:function(){var t=o(this.data,(function(t){return t.id}));t=this.getListOfParents(this.data,t);return this.nodeMap=[],this.buildNode("",-1,0,t,null)},init:function(e,i){m.prototype.init.call(this,e,i),this.options.allowDrillToNode&&t.addEvent(this,"click",this.onClickDrillToNode)},buildNode:function(t,e,i,n,o){var r,s=this,a=[],h=s.points[e],c=0;return l(n[t]||[],(function(e){r=s.buildNode(s.points[e].id,e,i+1,n,t),c=Math.max(r.height+1,c),a.push(r)})),e={id:t,i:e,children:a,height:c,level:i,parent:o,visible:!1},s.nodeMap[e.id]=e,h&&(h.node=e),e},setTreeValues:function(t){var e,i=this,n=i.options,o=i.nodeMap[i.rootNode],r=(n="boolean"!=typeof n.levelIsConstant||n.levelIsConstant,0),a=[],h=i.points[t.i];return l(t.children,(function(t){t=i.setTreeValues(t),a.push(t),t.ignore||(r+=t.val)})),x(a,(function(t,e){return t.sortIndex-e.sortIndex})),e=g(h&&h.options.value,r),h&&(h.value=e),s(t,{children:a,childrenTotal:r,ignore:!(g(h&&h.visible,!0)&&0c.lP.lR&&r.algorithmCalcPoints(t,!1,c,o,s),a===h&&r.algorithmCalcPoints(t,!0,c,o,s),a+=1})),o},algorithmFill:function(t,e,i){var n,o,r,s,a,h=[],c=e.direction,d=e.x,p=e.y,u=e.width,f=e.height;return l(i,(function(i){n=i.val/e.val*e.height*e.width,o=d,r=p,0===c?(u-=s=n/(a=f),d+=s):(f-=a=n/(s=u),p+=a),h.push({x:o,y:r,width:s,height:a}),t&&(c=1-c)})),h},strip:function(t,e){return this.algorithmLowAspectRatio(!1,t,e)},squarified:function(t,e){return this.algorithmLowAspectRatio(!0,t,e)},sliceAndDice:function(t,e){return this.algorithmFill(!0,t,e)},stripes:function(t,e){return this.algorithmFill(!1,t,e)},translate:function(){var t,e,i=this,n=i.options,o=w(i);m.prototype.translate.call(i),e=i.tree=i.getTree(),t=i.nodeMap[o],i.mapOptionsToLevel=c({from:t.level+1,levels:n.levels,to:e.height,defaults:{levelIsConstant:i.options.levelIsConstant,colorByPoint:n.colorByPoint}}),""===o||t&&t.children.length||(i.drillToNode("",!1),o=i.rootNode,t=i.nodeMap[o]),b(i.nodeMap[i.rootNode],(function(t){var e=!1,n=t.parent;return t.visible=!0,(n||""===n)&&(e=i.nodeMap[n]),e})),b(i.nodeMap[i.rootNode].children,(function(t){var e=!1;return l(t,(function(t){t.visible=!0,t.children.length&&(e=(e||[]).concat(t.children))})),e})),i.setTreeValues(e),i.axisRatio=i.xAxis.len/i.yAxis.len,i.nodeMap[""].pointValues=o={x:0,y:0,width:100,height:100},i.nodeMap[""].values=o=r(o,{width:o.width*i.axisRatio,direction:"vertical"===n.layoutStartingDirection?0:1,val:e.val}),i.calculateChildrenAreas(e,o),i.colorAxis?i.translateColors():n.colorByPoint||i.setColorRecursive(i.tree),n.allowDrillToNode&&(n=t.pointValues,i.xAxis.setExtremes(n.x,n.x+n.width,!1),i.yAxis.setExtremes(n.y,n.y+n.height,!1),i.xAxis.setScale(),i.yAxis.setScale()),i.setPointValues()},drawDataLabels:function(){var t,e,i=this,n=i.mapOptionsToLevel,o=d(i.points,(function(t){return t.node.visible}));l(o,(function(o){e=n[o.node.level],t={style:{}},o.node.isLeaf||(t.enabled=!1),e&&e.dataLabels&&(t=r(t,e.dataLabels),i._hasPointLabels=!0),o.shapeArgs&&(t.style.width=o.shapeArgs.width,o.dataLabel&&o.dataLabel.css({width:o.shapeArgs.width+"px"})),o.dlOptions=r(t,o.options.dataLabels)})),m.prototype.drawDataLabels.call(this)},alignDataLabel:function(t){n.column.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})},pointAttribs:function(t,e){var i=u(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},n=t&&i[t.node.level]||{},o=(i=this.options,e&&i.states[e]||{}),r=t&&t.getClassName()||"";return t={stroke:t&&t.borderColor||n.borderColor||o.borderColor||i.borderColor,"stroke-width":g(t&&t.borderWidth,n.borderWidth,o.borderWidth,i.borderWidth),dashstyle:t&&t.borderDashStyle||n.borderDashStyle||o.borderDashStyle||i.borderDashStyle,fill:t&&t.color||this.color},-1!==r.indexOf("highcharts-above-level")?(t.fill="none",t["stroke-width"]=0):-1!==r.indexOf("highcharts-internal-node-interactive")?(e=g(o.opacity,i.opacity),t.fill=y(t.fill).setOpacity(e).get(),t.cursor="pointer"):-1!==r.indexOf("highcharts-internal-node")?t.fill="none":e&&(t.fill=y(t.fill).brighten(o.brightness).get()),t},drawPoints:function(){var t=this,e=d(t.points,(function(t){return t.node.visible}));l(e,(function(e){var i="level-group-"+e.node.levelDynamic;t[i]||(t[i]=t.chart.renderer.g(i).attr({zIndex:1e3-e.node.levelDynamic}).add(t.group)),e.group=t[i]})),n.column.prototype.drawPoints.call(this),t.options.allowDrillToNode&&l(e,(function(e){e.graphic&&(e.drillId=t.options.interactByLeaf?t.drillToByLeaf(e):t.drillToByGroup(e))}))},onClickDrillToNode:function(t){var e=(t=t.point)&&t.drillId;f(e)&&(t.setState(""),this.drillToNode(e))},drillToByGroup:function(t){var e=!1;return 1!=t.node.level-this.nodeMap[this.rootNode].level||t.node.isLeaf||(e=t.id),e},drillToByLeaf:function(t){var e=!1;if(t.node.parent!==this.rootNode&&t.node.isLeaf)for(t=t.node;!e;)(t=this.nodeMap[t.parent]).parent===this.rootNode&&(e=t.id);return e},drillUp:function(){var t=this.nodeMap[this.rootNode];t&&f(t.parent)&&this.drillToNode(t.parent)},drillToNode:function(t,e){var i=this.nodeMap[t];this.idPreviousRoot=this.rootNode,this.rootNode=t,""===t?this.drillUpButton=this.drillUpButton.destroy():this.showDrillUpButton(i&&i.name||t),this.isDirty=!0,g(e,!0)&&this.chart.redraw()},showDrillUpButton:function(t){var e=this;t=t||"< Back";var i,n,o=e.options.drillUpButton;o.text&&(t=o.text),this.drillUpButton?(this.drillUpButton.placed=!1,this.drillUpButton.attr({text:t}).align()):(n=(i=o.theme)&&i.states,this.drillUpButton=this.chart.renderer.button(t,null,null,(function(){e.drillUp()}),i,n&&n.hover,n&&n.select).addClass("highcharts-drillup-button").attr({align:o.position.align,zIndex:7}).add().align(o.position,!1,o.relativeTo||"plotBox"))},buildKDTree:a,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getExtremes:function(){m.prototype.getExtremes.call(this,this.colorValueData),this.valueMin=this.dataMin,this.valueMax=this.dataMax,m.prototype.getExtremes.call(this)},getExtremesFromAll:!0,bindAxes:function(){var e={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};m.prototype.bindAxes.call(this),t.extend(this.yAxis.options,e),t.extend(this.xAxis.options,e)},utils:{recursive:b,reduce:v}},{getClassName:function(){var e=t.Point.prototype.getClassName.call(this),i=this.series,n=i.options;return this.node.level<=i.nodeMap[i.rootNode].level?e+=" highcharts-above-level":this.node.isLeaf||g(n.interactByLeaf,!n.allowDrillToNode)?this.node.isLeaf||(e+=" highcharts-internal-node"):e+=" highcharts-internal-node-interactive",e},isValid:function(){return this.id||p(this.value)},setState:function(e){t.Point.prototype.setState.call(this,e),this.graphic&&this.graphic.attr({zIndex:"hover"===e?1:0})},setVisible:n.pie.prototype.pointClass.prototype.setVisible})}(t,e)}))},function(t,e,i){!function(e){t.exports?t.exports=e:e(Highcharts)}((function(t){var e,i,n,o,r,s,a,l,h,c=function(t){var e=this,i=e.graphic,n=t.animate,o=t.attr,r=t.onComplete,s=t.css,a=t.group,l=t.renderer,h=t.shapeArgs;t=t.shapeType,e.shouldDraw()?(i||(e.graphic=i=l[t](h).add(a)),i.css(s).attr(o).animate(n,void 0,r)):i&&i.animate(n,void 0,(function(){e.graphic=i=i.destroy(),"function"==typeof r&&r()})),i&&i.addClass(e.getClassName(),!0)},d=(i=(e=t).each,n=e.extend,o=e.isArray,r=e.isObject,s=e.isNumber,a=e.merge,l=e.pick,h=e.reduce,{getColor:function(t,i){var n,o,r,s,a=i.index,h=i.mapOptionsToLevel,c=i.parentColor,d=i.parentColorIndex,p=i.series,u=i.colors,f=i.siblings,g=p.points;return t&&(g=g[t.i],t=h[t.level]||{},(n=g&&t.colorByPoint)&&(r=g.index%(u?u.length:p.chart.options.chart.colorCount),o=u&&u[r]),u=g&&g.options.color,n=t&&t.color,(h=c)&&(h=(h=t&&t.colorVariation)&&"brightness"===h.key?e.color(c).brighten(a/f*h.to).get():c),n=l(u,n,o,h,p.color),s=l(g&&g.options.colorIndex,t&&t.colorIndex,r,d,i.colorIndex)),{color:n,colorIndex:s}},getLevelOptions:function(t){var e,i,l,c,d=null;if(r(t))for(d={},l=s(t.from)?t.from:1,c=t.levels,i={},e=r(t.defaults)?t.defaults:{},o(c)&&(i=h(c,(function(t,i){var o,h;return r(i)&&s(i.level)&&(o="boolean"==typeof(h=a({},i)).levelIsConstant?h.levelIsConstant:e.levelIsConstant,delete h.levelIsConstant,delete h.level,i=i.level+(o?0:l-1),r(t[i])?n(t[i],h):t[i]=h),t}),{})),c=s(t.to)?t.to:1,t=0;t<=c;t++)d[t]=a({},e,r(i[t])?i[t]:{});return d},setTreeValues:function t(e,o){var r=o.before,s=o.idRoot,a=o.mapIdToNode[s],h=o.points[e.i],c=h&&h.options||{},d=0,p=[];return n(e,{levelDynamic:e.level-("boolean"!=typeof o.levelIsConstant||o.levelIsConstant?0:a.level),name:l(h&&h.name,""),visible:s===e.id||"boolean"==typeof o.visible&&o.visible}),"function"==typeof r&&(e=r(e,o)),i(e.children,(function(i,r){var s=n({},o);n(s,{index:r,siblings:e.children.length,visible:e.visible}),i=t(i,s),p.push(i),i.visible&&(d+=i.val)})),e.visible=0{point.name}: {point.value}
"},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:n.heatmap?0:.1,halo:!1,opacity:.75,shadow:!1}}},{pointArrayMap:["value"],axisTypes:n.heatmap?["xAxis","yAxis","colorAxis"]:["xAxis","yAxis"],directTouch:!0,optionalAxis:"colorAxis",getSymbol:a,parallelArrays:["x","y","value","colorValue"],colorKey:"colorValue",translateColors:n.heatmap&&n.heatmap.prototype.translateColors,colorAttribs:n.heatmap&&n.heatmap.prototype.colorAttribs,trackerGroups:["group","dataLabelsGroup"],getListOfParents:function(e,i){return function(e,i,n){n=n||this,t.objectEach(e,(function(t,o){i.call(n,t,o,e)}))}(e=v(e||[],(function(t,e,i){return void 0===t[e=g(e.parent,"")]&&(t[e]=[]),t[e].push(i),t}),{}),(function(e,n,o){""!==n&&-1===t.inArray(n,i)&&(l(e,(function(t){o[""].push(t)})),delete o[n])})),e},getTree:function(){var t=o(this.data,(function(t){return t.id}));t=this.getListOfParents(this.data,t);return this.nodeMap=[],this.buildNode("",-1,0,t,null)},init:function(e,i){m.prototype.init.call(this,e,i),this.options.allowDrillToNode&&t.addEvent(this,"click",this.onClickDrillToNode)},buildNode:function(t,e,i,n,o){var r,s=this,a=[],h=s.points[e],c=0;return l(n[t]||[],(function(e){r=s.buildNode(s.points[e].id,e,i+1,n,t),c=Math.max(r.height+1,c),a.push(r)})),e={id:t,i:e,children:a,height:c,level:i,parent:o,visible:!1},s.nodeMap[e.id]=e,h&&(h.node=e),e},setTreeValues:function(t){var e,i=this,n=i.options,o=i.nodeMap[i.rootNode],r=(n="boolean"!=typeof n.levelIsConstant||n.levelIsConstant,0),a=[],h=i.points[t.i];return l(t.children,(function(t){t=i.setTreeValues(t),a.push(t),t.ignore||(r+=t.val)})),x(a,(function(t,e){return t.sortIndex-e.sortIndex})),e=g(h&&h.options.value,r),h&&(h.value=e),s(t,{children:a,childrenTotal:r,ignore:!(g(h&&h.visible,!0)&&0c.lP.lR&&r.algorithmCalcPoints(t,!1,c,o,s),a===h&&r.algorithmCalcPoints(t,!0,c,o,s),a+=1})),o},algorithmFill:function(t,e,i){var n,o,r,s,a,h=[],c=e.direction,d=e.x,p=e.y,u=e.width,f=e.height;return l(i,(function(i){n=i.val/e.val*e.height*e.width,o=d,r=p,0===c?(u-=s=n/(a=f),d+=s):(f-=a=n/(s=u),p+=a),h.push({x:o,y:r,width:s,height:a}),t&&(c=1-c)})),h},strip:function(t,e){return this.algorithmLowAspectRatio(!1,t,e)},squarified:function(t,e){return this.algorithmLowAspectRatio(!0,t,e)},sliceAndDice:function(t,e){return this.algorithmFill(!0,t,e)},stripes:function(t,e){return this.algorithmFill(!1,t,e)},translate:function(){var t,e,i=this,n=i.options,o=w(i);m.prototype.translate.call(i),e=i.tree=i.getTree(),t=i.nodeMap[o],i.mapOptionsToLevel=c({from:t.level+1,levels:n.levels,to:e.height,defaults:{levelIsConstant:i.options.levelIsConstant,colorByPoint:n.colorByPoint}}),""===o||t&&t.children.length||(i.drillToNode("",!1),o=i.rootNode,t=i.nodeMap[o]),b(i.nodeMap[i.rootNode],(function(t){var e=!1,n=t.parent;return t.visible=!0,(n||""===n)&&(e=i.nodeMap[n]),e})),b(i.nodeMap[i.rootNode].children,(function(t){var e=!1;return l(t,(function(t){t.visible=!0,t.children.length&&(e=(e||[]).concat(t.children))})),e})),i.setTreeValues(e),i.axisRatio=i.xAxis.len/i.yAxis.len,i.nodeMap[""].pointValues=o={x:0,y:0,width:100,height:100},i.nodeMap[""].values=o=r(o,{width:o.width*i.axisRatio,direction:"vertical"===n.layoutStartingDirection?0:1,val:e.val}),i.calculateChildrenAreas(e,o),i.colorAxis?i.translateColors():n.colorByPoint||i.setColorRecursive(i.tree),n.allowDrillToNode&&(n=t.pointValues,i.xAxis.setExtremes(n.x,n.x+n.width,!1),i.yAxis.setExtremes(n.y,n.y+n.height,!1),i.xAxis.setScale(),i.yAxis.setScale()),i.setPointValues()},drawDataLabels:function(){var t,e,i=this,n=i.mapOptionsToLevel,o=d(i.points,(function(t){return t.node.visible}));l(o,(function(o){e=n[o.node.level],t={style:{}},o.node.isLeaf||(t.enabled=!1),e&&e.dataLabels&&(t=r(t,e.dataLabels),i._hasPointLabels=!0),o.shapeArgs&&(t.style.width=o.shapeArgs.width,o.dataLabel&&o.dataLabel.css({width:o.shapeArgs.width+"px"})),o.dlOptions=r(t,o.options.dataLabels)})),m.prototype.drawDataLabels.call(this)},alignDataLabel:function(t){n.column.prototype.alignDataLabel.apply(this,arguments),t.dataLabel&&t.dataLabel.attr({zIndex:(t.node.zIndex||0)+1})},pointAttribs:function(t,e){var i=u(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},n=t&&i[t.node.level]||{},o=(i=this.options,e&&i.states[e]||{}),r=t&&t.getClassName()||"";return t={stroke:t&&t.borderColor||n.borderColor||o.borderColor||i.borderColor,"stroke-width":g(t&&t.borderWidth,n.borderWidth,o.borderWidth,i.borderWidth),dashstyle:t&&t.borderDashStyle||n.borderDashStyle||o.borderDashStyle||i.borderDashStyle,fill:t&&t.color||this.color},-1!==r.indexOf("highcharts-above-level")?(t.fill="none",t["stroke-width"]=0):-1!==r.indexOf("highcharts-internal-node-interactive")?(e=g(o.opacity,i.opacity),t.fill=y(t.fill).setOpacity(e).get(),t.cursor="pointer"):-1!==r.indexOf("highcharts-internal-node")?t.fill="none":e&&(t.fill=y(t.fill).brighten(o.brightness).get()),t},drawPoints:function(){var t=this,e=d(t.points,(function(t){return t.node.visible}));l(e,(function(e){var i="level-group-"+e.node.levelDynamic;t[i]||(t[i]=t.chart.renderer.g(i).attr({zIndex:1e3-e.node.levelDynamic}).add(t.group)),e.group=t[i]})),n.column.prototype.drawPoints.call(this),t.options.allowDrillToNode&&l(e,(function(e){e.graphic&&(e.drillId=t.options.interactByLeaf?t.drillToByLeaf(e):t.drillToByGroup(e))}))},onClickDrillToNode:function(t){var e=(t=t.point)&&t.drillId;f(e)&&(t.setState(""),this.drillToNode(e))},drillToByGroup:function(t){var e=!1;return 1!=t.node.level-this.nodeMap[this.rootNode].level||t.node.isLeaf||(e=t.id),e},drillToByLeaf:function(t){var e=!1;if(t.node.parent!==this.rootNode&&t.node.isLeaf)for(t=t.node;!e;)(t=this.nodeMap[t.parent]).parent===this.rootNode&&(e=t.id);return e},drillUp:function(){var t=this.nodeMap[this.rootNode];t&&f(t.parent)&&this.drillToNode(t.parent)},drillToNode:function(t,e){var i=this.nodeMap[t];this.idPreviousRoot=this.rootNode,this.rootNode=t,""===t?this.drillUpButton=this.drillUpButton.destroy():this.showDrillUpButton(i&&i.name||t),this.isDirty=!0,g(e,!0)&&this.chart.redraw()},showDrillUpButton:function(t){var e=this;t=t||"< Back";var i,n,o=e.options.drillUpButton;o.text&&(t=o.text),this.drillUpButton?(this.drillUpButton.placed=!1,this.drillUpButton.attr({text:t}).align()):(n=(i=o.theme)&&i.states,this.drillUpButton=this.chart.renderer.button(t,null,null,(function(){e.drillUp()}),i,n&&n.hover,n&&n.select).addClass("highcharts-drillup-button").attr({align:o.position.align,zIndex:7}).add().align(o.position,!1,o.relativeTo||"plotBox"))},buildKDTree:a,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getExtremes:function(){m.prototype.getExtremes.call(this,this.colorValueData),this.valueMin=this.dataMin,this.valueMax=this.dataMax,m.prototype.getExtremes.call(this)},getExtremesFromAll:!0,bindAxes:function(){var e={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,dataMin:0,minPadding:0,max:100,dataMax:100,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};m.prototype.bindAxes.call(this),t.extend(this.yAxis.options,e),t.extend(this.xAxis.options,e)},utils:{recursive:b,reduce:v}},{getClassName:function(){var e=t.Point.prototype.getClassName.call(this),i=this.series,n=i.options;return this.node.level<=i.nodeMap[i.rootNode].level?e+=" highcharts-above-level":this.node.isLeaf||g(n.interactByLeaf,!n.allowDrillToNode)?this.node.isLeaf||(e+=" highcharts-internal-node"):e+=" highcharts-internal-node-interactive",e},isValid:function(){return this.id||p(this.value)},setState:function(e){t.Point.prototype.setState.call(this,e),this.graphic&&this.graphic.attr({zIndex:"hover"===e?1:0})},setVisible:n.pie.prototype.pointClass.prototype.setVisible})}(t,d),function(t,e,i){var n=t.CenteredSeriesMixin,o=t.Series,r=t.each,s=t.extend,a=n.getCenter,l=i.getColor,h=i.getLevelOptions,c=n.getStartAndEndRadians,d=t.grep,p=t.inArray,u=t.isNumber,f=t.isObject,g=t.isString,m=t.keys,x=t.merge,y=180/Math.PI,v=(n=t.seriesType,i.setTreeValues),b=t.reduce,w=i.updateRootId,k=function(t,e){var i=[];if(u(t)&&u(e)&&t<=e)for(;t<=e;t++)i.push(t);return i},A=function(t,e){var i;e=f(e)?e:{};var n,o,s,a,l=0;return f(t)&&(i=x({},t),t=u(e.from)?e.from:0,a=u(e.to)?e.to:0,o=k(t,a),t=d(m(i),(function(t){return-1===p(+t,o)})),n=s=u(e.diffRadius)?e.diffRadius:0,r(o,(function(t){var e=(t=i[t]).levelSize.unit,o=t.levelSize.value;"weight"===e?l+=o:"percentage"===e?(t.levelSize={unit:"pixels",value:o/100*n},s-=t.levelSize.value):"pixels"===e&&(s-=o)})),r(o,(function(t){var e=i[t];"weight"===e.levelSize.unit&&(e=e.levelSize.value,i[t].levelSize={unit:"pixels",value:e/l*s})})),r(t,(function(t){i[t].levelSize={value:0,unit:"pixels"}}))),i},M=function(t,e){var i=e.mapIdToNode[t.parent],n=e.series,o=n.chart,r=n.points[t.i];i=l(t,{colors:o&&o.options&&o.options.colors,colorIndex:n.colorIndex,index:e.index,mapOptionsToLevel:e.mapOptionsToLevel,parentColor:i&&i.color,parentColorIndex:i&&i.colorIndex,series:e.series,siblings:e.siblings});return t.color=i.color,t.colorIndex=i.colorIndex,r&&(r.color=t.color,r.colorIndex=t.colorIndex,t.sliced=t.id!==e.idRoot&&r.sliced),t};n("sunburst","treemap",{center:["50%","50%"],colorByPoint:!1,dataLabels:{defer:!0,style:{textOverflow:"ellipsis"},rotationMode:"perpendicular"},rootId:void 0,levelIsConstant:!0,levelSize:{value:1,unit:"weight"},slicedOffset:10},{drawDataLabels:t.noop,drawPoints:function(){var t,e,i=this,n=i.mapOptionsToLevel,a=i.shapeRoot,l=i.group,h=i.hasRendered,c=i.rootId,d=i.idPreviousRoot,p=i.nodeMap,g=(m=p[d])&&m.shapeArgs,m=i.points,v=i.startAndEndRadians,b="boolean"!=typeof(t=(t=i.chart)&&t.options&&t.options.chart||{}).animation||t.animation,w=i.center[3]/2,k=i.chart.renderer,A=!1,M=!1;(t=!!(b&&h&&c!==d&&i.dataLabelsGroup))&&(i.dataLabelsGroup.attr({opacity:0}),e=function(){A=!0,i.dataLabelsGroup&&i.dataLabelsGroup.animate({opacity:1,visibility:"visible"})}),r(m,(function(t){var o,r,m=t.node,A=n[m.level];o=t.shapeExisting||{};var S,T=m.shapeArgs||{},P=!(!m.visible||!m.shapeArgs);if(h&&b){var C={};r={end:T.end,start:T.start,innerR:T.innerR,r:T.r,x:T.x,y:T.y},P?!t.graphic&&g&&((C=c===t.id?{start:v.start,end:v.end}:g.end<=T.start?{start:v.end,end:v.end}:{start:v.start,end:v.start}).innerR=C.r=w):t.graphic&&(d===t.id?r={innerR:w,r:w}:a&&(r=a.end<=o.start?{innerR:w,r:w,start:v.end,end:v.end}:{innerR:w,r:w,start:v.start,end:v.start})),o=C}else r=T,o={};var L;C=[T.plotX,T.plotY];t.node.isLeaf||(c===t.id?L=(L=p[c]).parent:L=t.id),s(t,{shapeExisting:T,tooltipPos:C,drillId:L,name:""+(t.name||t.id||t.index),plotX:T.plotX,plotY:T.plotY,value:m.val,isNull:!P}),L=t.options,m=f(T)?T:{},L=f(L)?L.dataLabels:{},A=f(A)?A.dataLabels:{},A=x({rotationMode:"perpendicular",style:{width:m.radius}},A,L),u(A.rotation)||(m=(m=m.end-(m.end-m.start)/2)*y%180,"parallel"===A.rotationMode&&(m-=90),90t.val?t.childrenTotal:t.val:t.childrenTotal;this.points[t.i]&&(this.points[t.i].innerArcLength=s*e.innerR,this.points[t.i].outerArcLength=s*e.r),t.shapeArgs=x(e,{plotX:o.x,plotY:o.y}),t.values=x(e,{val:r}),t.children.length&&this.setShapeArgs(t,t.values,i)}),this)},translate:function(){var t,e,i,n=this.options,r=this.center=a.call(this),s=this.startAndEndRadians=c(n.startAngle,n.endAngle),l=r[3]/2,d=r[2]/2-l,p=w(this),u=this.nodeMap,f=u&&u[p];this.shapeRoot=f&&f.shapeArgs,o.prototype.translate.call(this),i=this.tree=this.getTree(),f=(u=this.nodeMap)[p],e=u[t=g(f.parent)?f.parent:""],t=h({from:0t.max?(i.label.hide(),i.destroyed=0):i.label.attr({visibility:s?"visible":"hidden"}),!0)})),!0},l.setCategories=function(t,e){this.categories&&this.cleanGroups(),this.setupGroups({categories:t}),this.categories=this.userOptions.categories=t,p.call(this,this.categories,e)},l.cleanGroups=function(){var t,e=this.ticks;for(t in e)e[t].parent&&delete e[t].parent;A(this.categoriesTree,"categories",(function(t){var e=t.tick;return!!e&&(e.label.destroy(),s(e,(function(t,i){delete e[i]})),delete t.tick,!0)})),this.labelsGrid=null},l.groupSize=function(t,e){var i=this.labelsSizes,o=this.directionFactor,r=!!this.options.labels.groupedOptions&&this.options.labels.groupedOptions[t-1],s=0;return r&&(s=-1===o?r.x?r.x:0:r.y?r.y:0),void 0!==e&&(i[t]=n(i[t]||0,e+10+Math.abs(s))),!0===t?v(i)*o:i[t]?i[t]*o:0},h.addLabel=function(){var t;return f.call(this),!(!this.axis.categories||!(t=this.axis.categories[this.pos])||(this.label&&this.label.attr("text",this.axis.labelFormatter.call({axis:this.axis,chart:this.axis.chart,isFirst:this.isFirst,isLast:this.isLast,value:t.name})),this.axis.isGrouped&&this.axis.options.labels.enabled&&this.addGroupedLabels(t),0))},h.addGroupedLabels=function(t){for(var e,i=this,n=this.axis,r=n.chart,s=n.options.labels,a=s.useHTML,l=s.style,h=s.groupedOptions,c={align:"center",rotation:s.rotation,x:0,y:0},d=n.horiz?"height":"width",p=0;i;){if(p>0&&!t.tick){this.value=t.name;var u=s.formatter?s.formatter.call(this,t):t.name,f=h&&h[p-1],g=f?o(c,h[p-1]):c,m=f&&h[p-1].style?o(l,h[p-1].style):l;delete g.style,e=r.renderer.text(u,0,0,a).attr(g).css(m).add(n.labelGroup),i.startAt=this.pos,i.childCount=t.categories.length,i.leaves=t.leaves,i.visible=this.childCount,i.label=e,i.labelOffsets={x:g.x,y:g.y},t.tick=i}i&&n.groupSize(p,i.label.getBBox()[d]),i=(t=t.parent)?i.parent=t.tick||{}:null,p++}},h.render=function(t,e,o){m.call(this,t,e,o);var r=this.axis.categories[this.pos];if(this.axis.isGrouped&&r&&!(this.pos>this.axis.max)){var s,l,h,c,d,p,u,f=this,g=this.axis,x=this.pos,y=this.isFirst,v=g.max,b=g.min,A=g.horiz,M=g.labelsGridPath,S=g.groupSize(0),T=g.tickWidth,P=k(this,x),C=A?P.y:P.x,L=g.chart.renderer.fontMetrics(g.options.labels.style?g.options.labels.style.fontSize:0).b,O=1,I=A&&P.x===g.pos+g.len||!A&&P.y===g.pos?-1:0;for(y&&w(M,A?[g.left,P.y,g.left,P.y+g.groupSize(!0)]:g.isXAxis?[P.x,g.top,P.x+g.groupSize(!0),g.top]:[P.x,g.top+g.len,P.x+g.groupSize(!0),g.top+g.len],T),A&&g.left0&&i("Invalid input not EOF"),t}function o(){return r("linear-gradient",t.linearGradient,a)||r("repeating-linear-gradient",t.repeatingLinearGradient,a)||r("radial-gradient",t.radialGradient,l)||r("repeating-radial-gradient",t.repeatingRadialGradient,l)}function r(e,n,o){return s(n,(function(n){var r=o();return r&&(y(t.comma)||i("Missing comma before color stops")),{type:e,orientation:r,colorStops:p(u)}}))}function s(e,n){var o=y(e);if(o)return y(t.startCall)||i("Missing ("),result=n(o),y(t.endCall)||i("Missing )"),result}function a(){return x("directional",t.sideOrCorner,1)||x("angular",t.angleValue,1)}function l(){var i,n,o=h();return o&&((i=[]).push(o),n=e,y(t.comma)&&((o=h())?i.push(o):e=n)),i}function h(){var t=function(){var t=x("shape",/^(circle)/i,0);t&&(t.style=m()||c());return t}()||function(){var t=x("shape",/^(ellipse)/i,0);t&&(t.style=g()||c());return t}();if(t)t.at=function(){if(x("position",/^at/,0)){var t=d();return t||i("Missing positioning value"),t}}();else{var e=d();e&&(t={type:"default-radial",at:e})}return t}function c(){return x("extent-keyword",t.extentKeywords,1)}function d(){var t={x:g(),y:g()};if(t.x||t.y)return{type:"position",value:t}}function p(e){var n=e(),o=[];if(n)for(o.push(n);y(t.comma);)(n=e())?o.push(n):i("One extra comma");return o}function u(){var e=x("hex",t.hexColor,1)||s(t.rgbaColor,(function(){return{type:"rgba",value:p(f)}}))||s(t.rgbColor,(function(){return{type:"rgb",value:p(f)}}))||x("literal",t.literalColor,0);return e||i("Expected color definition"),e.length=g(),e}function f(){return y(t.number)[1]}function g(){return x("%",t.percentageValue,1)||x("position-keyword",t.positionKeywords,1)||m()}function m(){return x("px",t.pixelValue,1)||x("em",t.emValue,1)}function x(t,e,i){var n=y(e);if(n)return{type:t,value:n[i]}}function y(t){var i,n;return(n=/^[\n\r\t\s]+/.exec(e))&&v(n[0].length),(i=t.exec(e))&&v(i[0].length),i}function v(t){e=e.substr(t)}return function(t){return e=t.toString(),n()}}(),e.parse=(i||{}).parse},function(t,e,i){"use strict";i.r(e),i.d(e,"importTemplate",(function(){return n})),i.d(e,"registerElement",(function(){return o})),i.d(e,"bindTemplate",(function(){return r})),i.d(e,"copy_to_clipboard",(function(){return a})),i.d(e,"setPromise",(function(){return l})),i.d(e,"throttlePromise",(function(){return c})),i.d(e,"json_attribute",(function(){return d})),i.d(e,"array_attribute",(function(){return p}));i(41),i(44),i(85);function n(t){const e=document.createElement("div");return e.innerHTML=t,Array.prototype.slice.call(e.children)[0]}function o(t,e,i){const o=n(t);!function(t){if(t.content)return;let e;for(t.content=document.createDocumentFragment();e=t.firstChild;)Node.prototype.appendChild.call(t.content,e)}(o),e&&(o.innerHTML="")+o.innerHTML),o.innerHTML='')+o.innerHTML;for(let t of Object.getOwnPropertyNames(i.prototype)){let e=Object.getOwnPropertyDescriptor(i.prototype,t);if(e&&e.set){let n=e.set;e.set=function(e){this.hasAttribute(t)&&this.getAttribute(t)===e?(this._initializing||this._initialized)&&n.call(this,e):this.setAttribute(t,e)},Object.defineProperty(i.prototype,t,e)}}let r=o.getAttribute("id");console.log("Registered ".concat(r)),window.customElements.define(r,class extends i{attributeChangedCallback(t,e,i){null===i&&(i="null"),"_"!==t[0]&&e!=i&&(this[t]=i)}connectedCallback(){if(!this._initialized){for(this._initializing=!0,this._old_children=[];this.hasChildNodes();)1===this.lastChild.nodeType&&this._old_children.push(this.lastChild),this.removeChild(this.lastChild);this._old_children=this._old_children.reverse();var t=document.importNode(o.content,!0);this.attachShadow({mode:"open"}),this.shadowRoot.appendChild(t),super.connectedCallback&&super.connectedCallback();for(let t of Object.getOwnPropertyNames(i.prototype))"connectedCallback"!==t&&this.hasAttribute(t)&&"_"!==t[0]&&(this[t]=this.getAttribute(t));this._initializing=!1,this._initialized=!0}}static get observedAttributes(){return Object.getOwnPropertyNames(i.prototype)}})}function r(t,...e){const i=e.map(t=>t.toString()).join("\n");return function(e){return o(t,{toString:()=>i},e)}}function s(t){return function(e,i,n){const o=n.value;return n.set=function(e){let n=this.getAttribute(i);try{null!=e&&""!==e||(e=t()),"string"!=typeof e&&(e=JSON.stringify(e)),e!==n&&(n=e),n=JSON.parse(n)}catch(o){console.warn('Invalid value for attribute "'.concat(i,'": ').concat(e)),n=t()}o.call(this,n)},n.get=function(){return this.hasAttribute(i)?JSON.parse(this.getAttribute(i)):t()},delete n.value,delete n.writable,n}}function a(t){let e=document.createElement("textarea");document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),document.body.removeChild(e)}async function l(t=(async()=>{}),e=0){return await new Promise(t=>setTimeout(t,e)),await t()}const h=()=>{let t,e=new Promise(e=>{t=e});return e.resolve=t,e};function c(t,e,i){const n=Symbol("private lock"),o=i.value;return i.value=async function(...t){if(this[n]&&(await this[n],this[n]))return void await this[n];let e;this[n]=h();try{e=await o.call(this,...t)}catch(t){console.error(t)}finally{const t=this[n];return this[n]=void 0,t.resolve(),e}},i}const d=s(()=>({})),p=s(()=>[])},function(t,e,i){"use strict";i(86);var n=i(2),o=i(22),r=i(4),s=/./.toString,a=function(t){i(9)(RegExp.prototype,"toString",t,!0)};i(5)((function(){return"/a/b"!=s.call({source:"a",flags:"b"})}))?a((function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!r&&t instanceof RegExp?o.call(t):void 0)})):"toString"!=s.name&&a((function(){return s.call(this)}))},function(t,e,i){i(4)&&"g"!=/./g.flags&&i(6).f(RegExp.prototype,"flags",{configurable:!0,get:i(22)})},function(t,e){t.exports=function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("Trident/")>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)}var n=t.indexOf("Edge/");return n>0&&parseInt(t.substring(n+5,t.indexOf(".",n)),10)}},function(t,e,i){"use strict";var n=i(2),o=i(29),r=i(20),s=i(16),a=i(33),l=i(34),h=Math.max,c=Math.min,d=Math.floor,p=/\$([$&`']|\d\d?|<[^>]*>)/g,u=/\$([$&`']|\d\d?)/g;i(35)("replace",2,(function(t,e,i,f){return[function(n,o){var r=t(this),s=null==n?void 0:n[e];return void 0!==s?s.call(n,r,o):i.call(String(r),n,o)},function(t,e){var o=f(i,t,this,e);if(o.done)return o.value;var d=n(t),p=String(this),u="function"==typeof e;u||(e=String(e));var m=d.global;if(m){var x=d.unicode;d.lastIndex=0}for(var y=[];;){var v=l(d,p);if(null===v)break;if(y.push(v),!m)break;""===String(v[0])&&(d.lastIndex=a(p,r(d.lastIndex),x))}for(var b,w="",k=0,A=0;A=k&&(w+=p.slice(k,S)+O,k=S+M.length)}return w+p.slice(k)}];function g(t,e,n,r,s,a){var l=n+t.length,h=r.length,c=u;return void 0!==s&&(s=o(s),c=p),i.call(a,c,(function(i,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=s[o.slice(1,-1)];break;default:var c=+o;if(0===c)return i;if(c>h){var p=d(c/10);return 0===p?i:p<=h?void 0===r[p-1]?o.charAt(1):r[p-1]+o.charAt(1):i}a=r[c-1]}return void 0===a?"":a}))}}))}])})); //# sourceMappingURL=perspective-viewer-highcharts.js.map