From 103bb627aeea9b1e77943214b501fae5b4113e2d Mon Sep 17 00:00:00 2001 From: Chris Contolini Date: Mon, 6 Nov 2023 13:50:04 -0500 Subject: [PATCH] Update DateFilter test snapshot --- dist/ccdb5.js | 6 ++-- dist/ccdb5.js.map | 2 +- .../__snapshots__/DateFilter.spec.js.snap | 34 ++++++++++++++++++- 3 files changed, 37 insertions(+), 5 deletions(-) diff --git a/dist/ccdb5.js b/dist/ccdb5.js index ec8aa18ec..fda775f0f 100644 --- a/dist/ccdb5.js +++ b/dist/ccdb5.js @@ -1,3 +1,3 @@ -/*! For license information please see main.6a82e5ca.js.LICENSE.txt */ -!function(){var t={599:function(t,e,n){var r;window,t.exports=(r=n(9011),function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=88)}([function(t,e,n){"use strict";n.r(e);var r=function(t,e){return te?1:t>=e?0:NaN},i=function(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}},o=i(r),a=o.right,s=o.left,l=a,u=function(t,e){null==e&&(e=c);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);nt?1:e>=t?0:NaN},d=function(t){return null===t?NaN:+t},p=function(t,e){var n,r,i=t.length,o=0,a=-1,s=0,l=0;if(null==e)for(;++a1)return l/(o-1)},m=function(t,e){var n=p(t,e);return n?Math.sqrt(n):n},g=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=C?10:o>=_?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=C?10:o>=_?5:o>=k?2:1)}function T(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=C?i*=10:o>=_?i*=5:o>=k&&(i*=2),eh;)f.pop(),--d;var p,m=new Array(d+1);for(i=0;i<=d;++i)(p=m[i]=[]).x0=i>0?f[i-1]:c,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}},N=function(t,e,n){return t=b.call(t,d).sort(r),Math.ceil((n-e)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))},j=function(t,e,n){return Math.ceil((n-e)/(3.5*m(t)*Math.pow(t.length,-1/3)))},L=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r},D=function(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n},B=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r},F=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},z=function(t,e){if(n=t.length){var n,i,o=0,a=0,s=t[a];for(null==e&&(e=r);++o0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(s.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}},function(t,e,n){"use strict";n.r(e);var r=n(29),i=n(64),o=function(t){return Object(i.a)(Object(r.a)(t).call(document.documentElement))},a=0;function s(){return new l}function l(){this._="@"+(++a).toString(36)}l.prototype=s.prototype={constructor:l,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var u=n(66),c=n(84),h=n(44),f=n(32),d=n(30),p=n(23),m=function(t){return"string"==typeof t?new p.a([document.querySelectorAll(t)],[document.documentElement]):new p.a([null==t?[]:t],p.c)},g=n(43),v=n(65),y=n(67),b=n(85),x=n(46),w=function(t,e){null==e&&(e=Object(x.a)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.a)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):Object(r.a)(isNaN(t)?e:t)}},function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"k",(function(){return l})),n.d(e,"m",(function(){return u})),n.d(e,"i",(function(){return c})),n.d(e,"a",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"h",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"l",(function(){return m})),n.d(e,"n",(function(){return g})),n.d(e,"j",(function(){return v})),n.d(e,"b",(function(){return y})),n.d(e,"f",(function(){return b}));var r=n(1),i=n(3);function o(t){return Object(r.a)((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.e}))}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),h=o(5),f=o(6),d=a.range,p=s.range,m=l.range,g=u.range,v=c.range,y=h.range,b=f.range},function(t,e,n){"use strict";n.d(e,"g",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"k",(function(){return l})),n.d(e,"m",(function(){return u})),n.d(e,"i",(function(){return c})),n.d(e,"a",(function(){return h})),n.d(e,"e",(function(){return f})),n.d(e,"h",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"l",(function(){return m})),n.d(e,"n",(function(){return g})),n.d(e,"j",(function(){return v})),n.d(e,"b",(function(){return y})),n.d(e,"f",(function(){return b}));var r=n(1),i=n(3);function o(t){return Object(r.a)((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/i.e}))}var a=o(0),s=o(1),l=o(2),u=o(3),c=o(4),h=o(5),f=o(6),d=a.range,p=s.range,m=l.range,g=u.range,v=c.range,y=h.range,b=f.range},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"e",(function(){return x})),n.d(e,"h",(function(){return C})),n.d(e,"g",(function(){return _})),n.d(e,"b",(function(){return k})),n.d(e,"f",(function(){return P}));var r=n(15);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),m=new RegExp("^hsl\\("+[l,u,u]+"\\)$"),g=new RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),v={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function x(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new k(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new k(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new k(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new k(e[1],e[2],e[3],1):(e=f.exec(t))?new k(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?S(e[1],e[2],e[3],e[4]):(e=p.exec(t))?S(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=m.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=g.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):v.hasOwnProperty(t)?w(v[t]):"transparent"===t?new k(NaN,NaN,NaN,0):null}function w(t){return new k(t>>16&255,t>>8&255,255&t,1)}function S(t,e,n,r){return r<=0&&(t=e=n=NaN),new k(t,e,n,r)}function C(t){return t instanceof i||(t=x(t)),t?new k((t=t.rgb()).r,t.g,t.b,t.opacity):new k}function _(t,e,n,r){return 1===arguments.length?C(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return"#"+T(this.r)+T(this.g)+T(this.b)}function M(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function T(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function A(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new N(t,e,n,r)}function O(t){if(t instanceof N)return new N(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=x(t)),!t)return new N;if(t instanceof N)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=e===a?(n-r)/l+6*(n0&&u<1?0:s,new N(s,l,u,t.opacity)}function P(t,e,n,r){return 1===arguments.length?O(t):new N(t,e,n,null==r?1:r)}function N(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function j(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.a)(i,x,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return O(this).formatHsl()},formatRgb:b,toString:b}),Object(r.a)(k,_,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new k(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new k(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:M,toString:M})),Object(r.a)(N,P,Object(r.b)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new N(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new N(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new k(j(t>=240?t-240:t+120,i,r),j(t,i,r),j(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";n.r(e);var r,i,o=n(23),a=n(79),s=0,l=0,u=0,c=0,h=0,f=0,d="object"==typeof performance&&performance.now?performance:Date,p="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function m(){return h||(p(g),h=d.now()+f)}function g(){h=0}function v(){this._call=this._time=this._next=null}function y(t,e,n){var r=new v;return r.restart(t,e,n),r}function b(){h=(c=d.now())+f,s=l=0;try{!function(){m(),++s;for(var t,e=r;e;)(t=h-e._time)>=0&&e._call.call(null,t),e=e._next;--s}()}finally{s=0,function(){for(var t,e,n=r,o=1/0;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);i=t,w(o)}(),h=0}}function x(){var t=d.now(),e=t-c;e>1e3&&(f-=e,c=t)}function w(t){s||(l&&(l=clearTimeout(l)),t-h>24?(t<1/0&&(l=setTimeout(b,t-d.now()-f)),u&&(u=clearInterval(u))):(u||(c=d.now(),u=setInterval(x,1e3)),s=1,p(b)))}v.prototype=y.prototype={constructor:v,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?m():+n)+(null==e?0:+e),this._next||i===this||(i?i._next=this:r=this,i=this),this._call=t,this._time=n,w()},stop:function(){this._call&&(this._call=null,this._time=1/0,w())}};var S=function(t,e,n){var r=new v;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},C=Object(a.a)("start","end","cancel","interrupt"),_=[],k=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(l){var u,c,h,f;if(1!==n.state)return s();for(u in i)if((f=i[u]).name===n.name){if(3===f.state)return S(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+u0)throw new Error("too late; already scheduled");return n}function M(t,e){var n=T(t,e);if(n.state>3)throw new Error("too late; already running");return n}function T(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var A=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},O=n(77),P=n(44);function N(t,e){var n,r;return function(){var i=M(this,t),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?E:M;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var rt=n(43),it=n(65),ot=o.b.prototype.constructor,at=n(67);function st(t){return function(){this.style.removeProperty(t)}}function lt(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function ut(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&<(t,o,n)),r}return o._value=e,o}function ct(t){return function(e){this.textContent=t.call(this,e)}}function ht(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&ct(r)),e}return r._value=t,r}var ft=0;function dt(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function pt(t){return Object(o.b)().transition(t)}function mt(){return++ft}var gt=o.b.prototype;dt.prototype=pt.prototype={constructor:dt,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(rt.a)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a1&&n.name===e)return new dt([[t]],bt,e,+r);return null};n.d(e,"transition",(function(){return pt})),n.d(e,"active",(function(){return xt})),n.d(e,"interrupt",(function(){return A}))},function(t,e,n){"use strict";n.r(e);var r=n(56);n.d(e,"formatDefaultLocale",(function(){return r.a})),n.d(e,"format",(function(){return r.b})),n.d(e,"formatPrefix",(function(){return r.c}));var i=n(68);n.d(e,"formatLocale",(function(){return i.a}));var o=n(40);n.d(e,"formatSpecifier",(function(){return o.b})),n.d(e,"FormatSpecifier",(function(){return o.a}));var a=n(80);n.d(e,"precisionFixed",(function(){return a.a}));var s=n(81);n.d(e,"precisionPrefix",(function(){return s.a}));var l=n(82);n.d(e,"precisionRound",(function(){return l.a}))},function(t,e,n){"use strict";var r;void 0===(r=function(){return{colorSchemas:{britecharts:["#6aedc7","#39c2c9","#ffce00","#ffa71a","#f866b9","#998ce3"],grey:["#F8F8FA","#EFF2F5","#D2D6DF","#C3C6CF","#ADB0B6","#666A73","#45494E","#363A43","#282C35"],orange:["#fcc870","#ffa71a","#fb8825","#f6682f","#db5a2c","#bf4c28","#a43b1c","#892a10","#f9e9c5"],blueGreen:["#ccf7f6","#70e4e0","#00d8d2","#00acaf","#007f8c","#005e66","#003c3f","#002d2f","#0d2223"],teal:["#ccfffe","#94f7f4","#00fff8","#1de1e1","#39c2c9","#2e9a9d","#227270","#1a5957","#133f3e"],green:["#edfff7","#d7ffef","#c0ffe7","#95f5d7","#6aedc7","#59c3a3","#479980","#34816a","#206953"],yellow:["#f9f2b3","#fbe986","#fce05a","#fed72d","#ffce00","#fcc11c","#f9b438","#eda629","#e09819"],pink:["#fdd1ea","#fb9cd2","#f866b9","#fc40b6","#ff1ab3","#e3239d","#c62c86","#a62073","#85135f"],purple:["#ddd6fc","#bbb1f0","#998ce3","#8e6bc1","#824a9e","#77337f","#6b1c60","#591650","#470f3f"],red:["#ffd8d4","#ffb5b0","#ff938c","#ff766c","#ff584c","#f04b42","#e03d38","#be2e29","#9c1e19"]},colorSchemasHuman:{britecharts:"Britecharts Default",grey:"Britecharts Grey",orange:"Orange",blueGreen:"Blue",teal:"Light Blue",green:"Green",yellow:"Yellow",pink:"Pink",purple:"Purple",red:"Red"},colorGradients:{greenBlue:["#39C7EA","#4CDCBA"],orangePink:["#FBC670","#F766B8"],bluePurple:["#3DC3C9","#824a9e"]},colorGradientsHuman:{greenBlue:"Green to Blue",orangePink:"Orange to Pink",bluePurple:"Blue to Purple"},singleColors:{aloeGreen:["#7bdcc0"],greenColor:["#6aedc7"],blueColor:["#39c2c9"],yellowColor:["#ffce00"],orangeColor:["#ffa71a"],pinkColor:["#f866b9"],purpleColor:["#998ce3"]},singleColorsHuman:{aloeGreen:"Aloe Green",greenColor:"Green",blueColor:"Blue",yellowColor:"Yellow",orangeColor:"Orange",pinkColor:"Pink",purpleColor:"Purple"}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";function r(t){return+t}function i(t){return t*t}function o(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}n.r(e);var s=n(49),l=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),u=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),c=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),h=Math.PI,f=h/2;function d(t){return 1-Math.cos(t*f)}function p(t){return Math.sin(t*f)}function m(t){return(1-Math.cos(h*t))/2}function g(t){return Math.pow(2,10*t-10)}function v(t){return 1-Math.pow(2,-10*t)}function y(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}function b(t){return 1-Math.sqrt(1-t*t)}function x(t){return Math.sqrt(1- --t*t)}function w(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var S=7.5625;function C(t){return 1-_(1-t)}function _(t){return(t=+t)<4/11?S*t*t:t<8/11?S*(t-=6/11)*t+3/4:t<10/11?S*(t-=9/11)*t+15/16:S*(t-=21/22)*t+63/64}function k(t){return((t*=2)<=1?1-_(1-t):_(t-1)+1)/2}var E=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),M=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),T=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),A=2*Math.PI,O=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=A);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*A)},i.period=function(n){return t(e,n)},i}(1,.3),P=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=A);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*A)},i.period=function(n){return t(e,n)},i}(1,.3),N=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=A);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*A)},i.period=function(n){return t(e,n)},i}(1,.3);n.d(e,"easeLinear",(function(){return r})),n.d(e,"easeQuad",(function(){return a})),n.d(e,"easeQuadIn",(function(){return i})),n.d(e,"easeQuadOut",(function(){return o})),n.d(e,"easeQuadInOut",(function(){return a})),n.d(e,"easeCubic",(function(){return s.b})),n.d(e,"easeCubicIn",(function(){return s.a})),n.d(e,"easeCubicOut",(function(){return s.c})),n.d(e,"easeCubicInOut",(function(){return s.b})),n.d(e,"easePoly",(function(){return c})),n.d(e,"easePolyIn",(function(){return l})),n.d(e,"easePolyOut",(function(){return u})),n.d(e,"easePolyInOut",(function(){return c})),n.d(e,"easeSin",(function(){return m})),n.d(e,"easeSinIn",(function(){return d})),n.d(e,"easeSinOut",(function(){return p})),n.d(e,"easeSinInOut",(function(){return m})),n.d(e,"easeExp",(function(){return y})),n.d(e,"easeExpIn",(function(){return g})),n.d(e,"easeExpOut",(function(){return v})),n.d(e,"easeExpInOut",(function(){return y})),n.d(e,"easeCircle",(function(){return w})),n.d(e,"easeCircleIn",(function(){return b})),n.d(e,"easeCircleOut",(function(){return x})),n.d(e,"easeCircleInOut",(function(){return w})),n.d(e,"easeBounce",(function(){return _})),n.d(e,"easeBounceIn",(function(){return C})),n.d(e,"easeBounceOut",(function(){return _})),n.d(e,"easeBounceInOut",(function(){return k})),n.d(e,"easeBack",(function(){return T})),n.d(e,"easeBackIn",(function(){return E})),n.d(e,"easeBackOut",(function(){return M})),n.d(e,"easeBackInOut",(function(){return T})),n.d(e,"easeElastic",(function(){return P})),n.d(e,"easeElasticIn",(function(){return O})),n.d(e,"easeElasticOut",(function(){return P})),n.d(e,"easeElasticInOut",(function(){return N}))},function(t,e,n){"use strict";n.r(e);var r=n(0);function i(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function o(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t)}return this}var a=n(25),s=Array.prototype,l=s.map,u=s.slice,c={name:"implicit"};function h(){var t=Object(a.map)(),e=[],n=[],r=c;function o(i){var o=i+"",a=t.get(o);if(!a){if(r!==c)return r;t.set(o,a=e.push(i))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=Object(a.map)();for(var r,i,s=-1,l=n.length;++sr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function C(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?_:C,i=o=null,d}function d(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,c)))(t(h(e)))}return d.invert=function(n){return h(e((o||(o=r(s,a.map(t),g.a)))(n)))},d.domain=function(t){return arguments.length?(a=l.call(t,y),h===x||(h=S(a)),f()):a.slice()},d.range=function(t){return arguments.length?(s=u.call(t),f()):s.slice()},d.rangeRound=function(t){return s=u.call(t),c=v.a,f()},d.clamp=function(t){return arguments.length?(h=t?S(a):x,d):h!==x},d.interpolate=function(t){return arguments.length?(c=t,f()):c},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,f()}}function M(t,e){return E()(t,e)}var T=n(40),A=n(81),O=n(56),P=n(82),N=n(80),j=function(t,e,n,i){var o,a=Object(r.tickStep)(t,e,n);switch((i=Object(T.b)(null==i?",f":i)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(o=Object(A.a)(a,s))||(i.precision=o),Object(O.c)(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Object(P.a)(a,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Object(N.a)(a))||(i.precision=o-2*("%"===i.type))}return Object(O.b)(i)};function L(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(r.ticks)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return j(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,o=e(),a=0,s=o.length-1,l=o[a],u=o[s];return u0?(l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i,i=Object(r.tickIncrement)(l,u,n)):i<0&&(l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i,i=Object(r.tickIncrement)(l,u,n)),i>0?(o[a]=Math.floor(l/i)*i,o[s]=Math.ceil(u/i)*i,e(o)):i<0&&(o[a]=Math.ceil(l*i)/i,o[s]=Math.floor(u*i)/i,e(o)),t},t}function D(){var t=M(x,x);return t.copy=function(){return k(t,D())},i.apply(t,arguments),L(t)}function I(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=l.call(e,y),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return I(t).unknown(e)},t=arguments.length?l.call(t,y):[0,1],L(n)}var R=function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;du)break;g.push(f)}}else for(;d=1;--h)if(!((f=c*h)u)break;g.push(f)}}else g=Object(r.ticks)(d,p,Math.min(p-d,m)).map(n);return i?g.reverse():g},i.tickFormat=function(t,r){if(null==r&&(r=10===a?".0e":","),"function"!=typeof r&&(r=Object(O.b)(r)),t===1/0)return r;null==t&&(t=10);var o=Math.max(1,a*t/i.ticks().length);return function(t){var i=t/n(Math.round(e(t)));return i*a0?o[r-1]:e[0],r=o?[a[o-1],n]:[a[r-1],a[r]]},l.unknown=function(e){return arguments.length?(t=e,l):l},l.thresholds=function(){return a.slice()},l.copy=function(){return rt().domain([e,n]).range(s).unknown(t)},i.apply(L(l),arguments)}function it(){var t,e=[.5],n=[0,1],o=1;function a(i){return i<=i?n[Object(r.bisect)(e,i,0,o)]:t}return a.domain=function(t){return arguments.length?(e=u.call(t),o=Math.min(e.length,n.length-1),a):e.slice()},a.range=function(t){return arguments.length?(n=u.call(t),o=Math.min(e.length,n.length-1),a):n.slice()},a.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},a.unknown=function(e){return arguments.length?(t=e,a):t},a.copy=function(){return it().domain(e).range(n).unknown(t)},i.apply(a,arguments)}var ot=n(33),at=n(69),st=n(5),lt=n(53),ut=n(70),ct=n(71),ht=n(51),ft=n(52),dt=n(21);function pt(t){return new Date(t)}function mt(t){return t instanceof Date?+t:+new Date(+t)}function gt(t,e,n,i,o,a,s,u,c){var h=M(x,x),f=h.invert,d=h.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),b=c("%b %d"),w=c("%B"),S=c("%Y"),C=[[s,1,1e3],[s,5,5e3],[s,15,15e3],[s,30,3e4],[a,1,6e4],[a,5,3e5],[a,15,9e5],[a,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[i,1,864e5],[i,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function _(r){return(s(r)svg{background:"+this.chartBackground+";padding: 20px;}"}};function s(t,e){if(t){t.attr("version",1.1).attr("xmlns","http://www.w3.org/2000/svg");var n=i.initializeSerializer()(t.node());return n=function(t){return navigator.userAgent.search("FireFox")>-1?t.replace(/url.*"\)/,'url("linearGradient[id*="-gradient-"]");'):t}(n),function(t){return t.replace(">",">"+a.styleBackgroundString)}(n=h.call(this,n,e,parseInt(t.attr("width"),10)))}}function l(t){var e=new Image;return e.src=""+a.imageSourceBase+o(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)}))),e}function u(t,e){return e.getContext("2d").drawImage(t,0,0),e}function c(t,e,n){n.preventDefault(),function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.defaultFilename,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"image/png",r=t.toDataURL(n),i=document.createElement("a");i.href=r,i.download=e,document.body.appendChild(i),i.click(),document.body.removeChild(i)}(u(this,t),e)}function h(t,e,n){if(!e||!n)return t;var i=r.grey;return t.replace(/ '+e+" \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',donut:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',line:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',row:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',stackedArea:'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n '}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";n.r(e);var r=Array.prototype.slice,i=function(t){return t};function o(t){return"translate("+(t+.5)+",0)"}function a(t){return"translate(0,"+(t+.5)+")"}function s(t){return function(e){return+t(e)}}function l(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function u(){return!this.__axis}function c(t,e){var n=[],c=null,h=null,f=6,d=6,p=3,m=1===t||4===t?-1:1,g=4===t||2===t?"x":"y",v=1===t||3===t?o:a;function y(r){var o=null==c?e.ticks?e.ticks.apply(e,n):e.domain():c,a=null==h?e.tickFormat?e.tickFormat.apply(e,n):i:h,y=Math.max(f,0)+p,b=e.range(),x=+b[0]+.5,w=+b[b.length-1]+.5,S=(e.bandwidth?l:s)(e.copy()),C=r.selection?r.selection():r,_=C.selectAll(".domain").data([null]),k=C.selectAll(".tick").data(o,e).order(),E=k.exit(),M=k.enter().append("g").attr("class","tick"),T=k.select("line"),A=k.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(M),T=T.merge(M.append("line").attr("stroke","currentColor").attr(g+"2",m*f)),A=A.merge(M.append("text").attr("fill","currentColor").attr(g,m*y).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),r!==C&&(_=_.transition(r),k=k.transition(r),T=T.transition(r),A=A.transition(r),E=E.transition(r).attr("opacity",1e-6).attr("transform",(function(t){return isFinite(t=S(t))?v(t):this.getAttribute("transform")})),M.attr("opacity",1e-6).attr("transform",(function(t){var e=this.parentNode.__axis;return v(e&&isFinite(e=e(t))?e:S(t))}))),E.remove(),_.attr("d",4===t||2==t?d?"M"+m*d+","+x+"H0.5V"+w+"H"+m*d:"M0.5,"+x+"V"+w:d?"M"+x+","+m*d+"V0.5H"+w+"V"+m*d:"M"+x+",0.5H"+w),k.attr("opacity",1).attr("transform",(function(t){return v(S(t))})),T.attr(g+"2",m*f),A.attr(g,m*y).text(a),C.filter(u).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),C.each((function(){this.__axis=S}))}return y.scale=function(t){return arguments.length?(e=t,y):e},y.ticks=function(){return n=r.call(arguments),y},y.tickArguments=function(t){return arguments.length?(n=null==t?[]:r.call(t),y):n.slice()},y.tickValues=function(t){return arguments.length?(c=null==t?null:r.call(t),y):c&&c.slice()},y.tickFormat=function(t){return arguments.length?(h=t,y):h},y.tickSize=function(t){return arguments.length?(f=d=+t,y):f},y.tickSizeInner=function(t){return arguments.length?(f=+t,y):f},y.tickSizeOuter=function(t){return arguments.length?(d=+t,y):d},y.tickPadding=function(t){return arguments.length?(p=+t,y):p},y}function h(t){return c(1,t)}function f(t){return c(2,t)}function d(t){return c(3,t)}function p(t){return c(4,t)}n.d(e,"axisTop",(function(){return h})),n.d(e,"axisRight",(function(){return f})),n.d(e,"axisBottom",(function(){return d})),n.d(e,"axisLeft",(function(){return p}))},function(t,e,n){"use strict";n.r(e);var r=n(41),i=n(61),o=n(42),a=n(58),s=n(60),l=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}},u=n(4),c=function(t,e){var n=Object(u.c)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}},h=n(14),f=n(31),d=n(62),p=n(83),m=n(59),g=n(77),v=Math.SQRT2;function y(t){return((t=Math.exp(t))+1/t)/2}var b=function(t,e){var n,r,i=t[0],o=t[1],a=t[2],s=e[0],l=e[1],u=e[2],c=s-i,h=l-o,f=c*c+h*h;if(f<1e-12)r=Math.log(u/a)/v,n=function(t){return[i+t*c,o+t*h,a*Math.exp(v*t*r)]};else{var d=Math.sqrt(f),p=(u*u-a*a+4*f)/(2*a*2*d),m=(u*u-a*a-4*f)/(2*u*2*d),g=Math.log(Math.sqrt(p*p+1)-p),b=Math.log(Math.sqrt(m*m+1)-m);r=(b-g)/v,n=function(t){var e,n=t*r,s=y(g),l=a/(2*d)*(s*(e=v*n+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+l*c,o+l*h,a*s/y(v*n+g)]}}return n.duration=1e3*r,n},x=n(36),w=n(7);function S(t){return function(e,n){var r=t((e=Object(w.f)(e)).h,(n=Object(w.f)(n)).h),i=Object(u.a)(e.s,n.s),o=Object(u.a)(e.l,n.l),a=Object(u.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var C=S(u.c),_=S(u.a),k=n(50);function E(t,e){var n=Object(u.a)((t=Object(k.a)(t)).l,(e=Object(k.a)(e)).l),r=Object(u.a)(t.a,e.a),i=Object(u.a)(t.b,e.b),o=Object(u.a)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=i(e),t.opacity=o(e),t+""}}function M(t){return function(e,n){var r=t((e=Object(k.c)(e)).h,(n=Object(k.c)(n)).h),i=Object(u.a)(e.c,n.c),o=Object(u.a)(e.l,n.l),a=Object(u.a)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}var T=M(u.c),A=M(u.a),O=n(78);function P(t){return function e(n){function r(e,r){var i=t((e=Object(O.a)(e)).h,(r=Object(O.a)(r)).h),o=Object(u.a)(e.s,r.s),a=Object(u.a)(e.l,r.l),s=Object(u.a)(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}var N=P(u.c),j=P(u.a);function L(t,e){for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);ne?1:t>=e?0:NaN}s.prototype={constructor:s,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var h=n(44);function f(t){return function(){this.removeAttribute(t)}}function d(t){return function(){this.removeAttributeNS(t.space,t.local)}}function p(t,e){return function(){this.setAttribute(t,e)}}function m(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function g(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function v(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}var y=n(67);function b(t){return function(){delete this[t]}}function x(t,e){return function(){this[t]=e}}function w(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function S(t){return t.trim().split(/^|\s+/)}function C(t){return t.classList||new _(t)}function _(t){this._node=t,this._names=S(t.getAttribute("class")||"")}function k(t,e){for(var n=C(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var B=n(29);function F(){return null}function z(){var t=this.parentNode;t&&t.removeChild(this)}function H(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function U(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var G=n(37),W=n(45);function V(t,e,n){var r=Object(W.a)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function Y(t,e){return function(){return V(this,t,e)}}function X(t,e){return function(){return V(this,t,e.apply(this,arguments))}}n.d(e,"c",(function(){return q})),n.d(e,"a",(function(){return Z}));var q=[null];function Z(t,e){this._groups=t,this._parents=e}function $(){return new Z([[document.documentElement]],q)}Z.prototype=$.prototype={constructor:Z,select:function(t){"function"!=typeof t&&(t=Object(r.a)(t));for(var e=this._groups,n=e.length,i=new Array(n),o=0;o=C&&(C=S+1);!(w=b[C])&&++C=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=c);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?b:"function"==typeof e?w:x)(t,e)):this.node()[t]},classed:function(t,e){var n=S(t+"");if(arguments.length<2){for(var r=C(this.node()),i=-1,o=n.length;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var u,c,h,f=-1,d=n.length,p=r[i++],m=o(),g=s();++fr.length)return n;var a,s=i[o-1];return null!=e&&o>=r.length?a=n.entries():(a=[],n.each((function(e,n){a.push({key:n,values:t(e,o)})}))),null!=s?a.sort((function(t,e){return s(t.key,e.key)})):a}(a(t,0,u,c),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}};function s(){return{}}function l(t,e,n){t[e]=n}function u(){return o()}function c(t,e,n){t.set(e,n)}function h(){}var f=o.prototype;function d(t,e){var n=new h;if(t instanceof h)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r1&&void 0!==arguments[1]?arguments[1]:12,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Arial",r=document.createElement("canvas").getContext("2d");return r.font=e+"px "+n,r.measureText(t).width},wrapText:function(t,n,u,c){var h=e.select(c),f=h.text().split(/\s+/).reverse(),d=void 0,p=[],m=0,g=r*o,v=h.attr("y"),y=parseFloat(h.attr("dy")),b=n*a,x=h.text(null).append("tspan").attr("x",t).attr("y",v-5).attr("dy",y+"em").classed(s,!0).style("font-size",n+"px");for(x.text(f.pop()),x=h.append("tspan").classed(l,!0).attr("x",t).attr("y",v+i).attr("dy",++m*g+y+"em").style("font-size",b+"px");d=f.pop();)p.push(d),x.text(p.join(" ")),x.node()&&x.node().getComputedTextLength()>u-50&&(p.pop(),x.text(p.join(" ")),p=[d],x=h.append("tspan").classed(l,!0).attr("x",t).attr("y",v+i).attr("dy",++m*g+y+"em").text(d).style("font-size",b+"px"))},wrapTextWithEllipses:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1.2;t.each((function(){var a,s,l,u,c,h,f;for(a=(t=e.select(this)).text().split(/\s+/).reverse(),l=[],u=0,c=t.attr("y"),h=parseFloat(t.attr("dy")),f=t.text(null).append("tspan").attr("x",r).attr("y",c).attr("dy",h+"em");s=a.pop();)if(l.push(s),f.text(l.join(" ")),f.node()&&f.node().getComputedTextLength()>n){if(l.pop(),f.text(l.join(" ")),!(u1e-6)if(Math.abs(h*l-u*c)>1e-6&&o){var d=n-a,p=i-s,m=l*l+u*u,g=d*d+p*p,v=Math.sqrt(m),y=Math.sqrt(f),b=o*Math.tan((r-Math.acos((m+f-g)/(2*v*y)))/2),x=b/y,w=b/v;Math.abs(x-1)>1e-6&&(this._+="L"+(t+x*c)+","+(e+x*h)),this._+="A"+o+","+o+",0,0,"+ +(h*d>c*p)+","+(this._x1=t+w*l)+","+(this._y1=e+w*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,a,s,l){t=+t,e=+e,l=!!l;var u=(n=+n)*Math.cos(a),c=n*Math.sin(a),h=t+u,f=e+c,d=1^l,p=l?a-s:s-a;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+h+","+f:(Math.abs(this._x1-h)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+h+","+f),n&&(p<0&&(p=p%i+i),p>o?this._+="A"+n+","+n+",0,1,"+d+","+(t-u)+","+(e-c)+"A"+n+","+n+",0,1,"+d+","+(this._x1=h)+","+(this._y1=f):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=r)+","+d+","+(this._x1=t+n*Math.cos(s))+","+(this._y1=e+n*Math.sin(s))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var l=s,u=function(t){return function(){return t}},c=Math.abs,h=Math.atan2,f=Math.cos,d=Math.max,p=Math.min,m=Math.sin,g=Math.sqrt,v=Math.PI,y=v/2,b=2*v;function x(t){return t>1?0:t<-1?v:Math.acos(t)}function w(t){return t>=1?y:t<=-1?-y:Math.asin(t)}function S(t){return t.innerRadius}function C(t){return t.outerRadius}function _(t){return t.startAngle}function k(t){return t.endAngle}function E(t){return t&&t.padAngle}function M(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,h=s-o,f=h*l-c*u;if(!(f*f<1e-12))return[t+(f=(c*(e-o)-h*(t-i))/f)*l,e+f*u]}function T(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/g(s*s+l*l),c=u*l,h=-u*s,f=t+c,p=e+h,m=n+c,v=r+h,y=(f+m)/2,b=(p+v)/2,x=m-f,w=v-p,S=x*x+w*w,C=i-o,_=f*v-m*p,k=(w<0?-1:1)*g(d(0,C*C*S-_*_)),E=(_*w-x*k)/S,M=(-_*x-w*k)/S,T=(_*w+x*k)/S,A=(-_*x+w*k)/S,O=E-y,P=M-b,N=T-y,j=A-b;return O*O+P*P>N*N+j*j&&(E=T,M=A),{cx:E,cy:M,x01:-c,y01:-h,x11:E*(i/C-1),y11:M*(i/C-1)}}var A=function(){var t=S,e=C,n=u(0),r=null,i=_,o=k,a=E,s=null;function d(){var u,d,S=+t.apply(this,arguments),C=+e.apply(this,arguments),_=i.apply(this,arguments)-y,k=o.apply(this,arguments)-y,E=c(k-_),A=k>_;if(s||(s=u=l()),C1e-12)if(E>b-1e-12)s.moveTo(C*f(_),C*m(_)),s.arc(0,0,C,_,k,!A),S>1e-12&&(s.moveTo(S*f(k),S*m(k)),s.arc(0,0,S,k,_,A));else{var O,P,N=_,j=k,L=_,D=k,I=E,R=E,B=a.apply(this,arguments)/2,F=B>1e-12&&(r?+r.apply(this,arguments):g(S*S+C*C)),z=p(c(C-S)/2,+n.apply(this,arguments)),H=z,U=z;if(F>1e-12){var G=w(F/S*m(B)),W=w(F/C*m(B));(I-=2*G)>1e-12?(L+=G*=A?1:-1,D-=G):(I=0,L=D=(_+k)/2),(R-=2*W)>1e-12?(N+=W*=A?1:-1,j-=W):(R=0,N=j=(_+k)/2)}var V=C*f(N),Y=C*m(N),X=S*f(D),q=S*m(D);if(z>1e-12){var Z,$=C*f(j),K=C*m(j),Q=S*f(L),J=S*m(L);if(E1e-12?U>1e-12?(O=T(Q,J,V,Y,C,U,A),P=T($,K,X,q,C,U,A),s.moveTo(O.cx+O.x01,O.cy+O.y01),U1e-12&&I>1e-12?H>1e-12?(O=T(X,q,$,K,S,-H,A),P=T(V,Y,Q,J,S,-H,A),s.lineTo(O.cx+O.x01,O.cy+O.y01),H=h;--f)s.point(v[f],y[f]);s.lineEnd(),s.areaEnd()}g&&(v[c]=+t(d,c,u),y[c]=+n(d,c,u),s.point(e?+e(d,c,u):v[c],r?+r(d,c,u):y[c]))}if(p)return s=null,p+""||null}function h(){return L().defined(i).curve(a).context(o)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:u(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:u(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:u(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:u(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:u(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:u(+t),c):r},c.lineX0=c.lineY0=function(){return h().x(t).y(n)},c.lineY1=function(){return h().x(t).y(r)},c.lineX1=function(){return h().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:u(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c},I=function(t,e){return et?1:e>=t?0:NaN},R=function(t){return t},B=function(){var t=R,e=I,n=null,r=u(0),i=u(b),o=u(0);function a(a){var s,l,u,c,h,f=a.length,d=0,p=new Array(f),m=new Array(f),g=+r.apply(this,arguments),v=Math.min(b,Math.max(-b,i.apply(this,arguments)-g)),y=Math.min(Math.abs(v)/f,o.apply(this,arguments)),x=y*(v<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?p.sort((function(t,n){return e(m[t],m[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),s=0,u=d?(v-f*x)/d:0;s0?h*u:0)+x,m[l]={data:a[l],index:s,value:h,startAngle:g,endAngle:c,padAngle:y};return m}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:u(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:u(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:u(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:u(+t),a):o},a},F=H(P);function z(t){this._curve=t}function H(t){function e(e){return new z(t(e))}return e._curve=t,e}function U(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(H(t)):e()._curve},t}z.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var G=function(){return U(L().curve(F))},W=function(){var t=D().curve(F),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return U(n())},delete t.lineX0,t.lineEndAngle=function(){return U(r())},delete t.lineX1,t.lineInnerRadius=function(){return U(i())},delete t.lineY0,t.lineOuterRadius=function(){return U(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(H(t)):e()._curve},t},V=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]},Y=Array.prototype.slice;function X(t){return t.source}function q(t){return t.target}function Z(t){var e=X,n=q,r=N,i=j,o=null;function a(){var a,s=Y.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=l()),t(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"==typeof t?t:u(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:u(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function $(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function K(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Q(t,e,n,r,i){var o=V(e,n),a=V(e,n=(n+i)/2),s=V(r,n),l=V(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}function J(){return Z($)}function tt(){return Z(K)}function et(){var t=Z(Q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var nt={draw:function(t,e){var n=Math.sqrt(e/v);t.moveTo(n,0),t.arc(0,0,n,0,b)}},rt={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},it=Math.sqrt(1/3),ot=2*it,at={draw:function(t,e){var n=Math.sqrt(e/ot),r=n*it;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},st=Math.sin(v/10)/Math.sin(7*v/10),lt=Math.sin(b/10)*st,ut=-Math.cos(b/10)*st,ct={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=lt*n,i=ut*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=b*o/5,s=Math.cos(a),l=Math.sin(a);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*i,l*r+s*i)}t.closePath()}},ht={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},ft=Math.sqrt(3),dt={draw:function(t,e){var n=-Math.sqrt(e/(3*ft));t.moveTo(0,2*n),t.lineTo(-ft*n,-n),t.lineTo(ft*n,-n),t.closePath()}},pt=Math.sqrt(3)/2,mt=1/Math.sqrt(12),gt=3*(mt/2+1),vt={draw:function(t,e){var n=Math.sqrt(e/gt),r=n/2,i=n*mt,o=r,a=n*mt+n,s=-o,l=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(-.5*r-pt*i,pt*r+-.5*i),t.lineTo(-.5*o-pt*a,pt*o+-.5*a),t.lineTo(-.5*s-pt*l,pt*s+-.5*l),t.lineTo(-.5*r+pt*i,-.5*i-pt*r),t.lineTo(-.5*o+pt*a,-.5*a-pt*o),t.lineTo(-.5*s+pt*l,-.5*l-pt*s),t.closePath()}},yt=[nt,rt,at,ht,ct,dt,vt],bt=function(){var t=u(nt),e=u(64),n=null;function r(){var r;if(n||(n=r=l()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:u(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:u(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r},xt=function(){};function wt(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function St(t){this._context=t}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:wt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:wt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Ct=function(t){return new St(t)};function _t(t){this._context=t}_t.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:wt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var kt=function(t){return new _t(t)};function Et(t){this._context=t}Et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:wt(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Mt=function(t){return new Et(t)};function Tt(t,e){this._basis=new St(t),this._beta=e}Tt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*a),this._beta*e[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var At=function t(e){function n(t){return 1===e?new St(t):new Tt(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Ot(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Pt(t,e){this._context=t,this._k=(1-e)/6}Pt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ot(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Ot(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Nt=function t(e){function n(t){return new Pt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function jt(t,e){this._context=t,this._k=(1-e)/6}jt.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ot(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Lt=function t(e){function n(t){return new jt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Dt(t,e){this._context=t,this._k=(1-e)/6}Dt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ot(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var It=function t(e){function n(t){return new Dt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Rt(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>1e-12){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Bt(t,e){this._context=t,this._alpha=e}Bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Rt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ft=function t(e){function n(t){return e?new Bt(t,e):new Pt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function zt(t,e){this._context=t,this._alpha=e}zt.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Rt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Ht=function t(e){function n(t){return e?new zt(t,e):new jt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Ut(t,e){this._context=t,this._alpha=e}Ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Rt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Gt=function t(e){function n(t){return e?new Ut(t,e):new Dt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Wt(t){this._context=t}Wt.prototype={areaStart:xt,areaEnd:xt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var Vt=function(t){return new Wt(t)};function Yt(t){return t<0?-1:1}function Xt(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Yt(o)+Yt(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function qt(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Zt(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function $t(t){this._context=t}function Kt(t){this._context=new Qt(t)}function Qt(t){this._context=t}function Jt(t){return new $t(t)}function te(t){return new Kt(t)}function ee(t){this._context=t}function ne(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var oe=function(t){return new ie(t,.5)};function ae(t){return new ie(t,0)}function se(t){return new ie(t,1)}var le=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o=0;)n[e]=e;return n};function ce(t,e){return t[e]}var he=function(){var t=u([]),e=ue,n=le,r=ce;function i(i){var o,a,s=t.apply(this,arguments),l=i.length,u=s.length,c=new Array(u);for(o=0;o0){for(var n,r,i,o=0,a=t[0].length;o0)for(var n,r,i,o,a,s,l=0,u=t[e[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},pe=function(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=e,r=n);return r}var ye=function(t){var e=t.map(be);return ue(t).sort((function(t,n){return e[t]-e[n]}))};function be(t){for(var e,n=0,r=-1,i=t.length;++r0?Object(r.a)((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null},e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(1),i=Object(r.a)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Object(r.a)((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null},e.a=i;var o=i.range},function(t,e,n){"use strict";var r;void 0===(r=function(){var t=n(27),e=n(39);return{axisTimeCombinations:{MINUTE_HOUR:"minute-hour",HOUR_DAY:"hour-daymonth",DAY_MONTH:"day-month",MONTH_YEAR:"month-year",CUSTOM:"custom"},curveMap:{linear:t.curveLinear,basis:t.curveBasis,cardinal:t.curveCardinal,catmullRom:t.curveCatmullRom,monotoneX:t.curveMonotoneX,monotoneY:t.curveMonotoneY,natural:t.curveNatural,step:t.curveStep,stepAfter:t.curveStepAfter,stepBefore:t.curveStepBefore},emptyDonutData:[{quantity:1,percentage:100}],timeBenchmarks:{ONE_AND_A_HALF_YEARS:47304e6,ONE_YEAR:31536000365,ONE_DAY:86400001},lineGradientId:"lineGradientId",timeIntervals:{timeMillisecond:e.timeMillisecond,utcMillisecond:e.utcMillisecond,timeSecond:e.timeSecond,utcSecond:e.utcSecond,timeMinute:e.timeMinute,utcMinute:e.utcMinute,timeHour:e.timeHour,utcHour:e.utcHour,timeDay:e.timeDay,utcDay:e.utcDay,timeWeek:e.timeWeek,utcWeek:e.utcWeek,timeSunday:e.timeSunday,utcSunday:e.utcSunday,timeMonday:e.timeMonday,utcMonday:e.utcMonday,timeTuesday:e.timeTuesday,utcTuesday:e.utcTuesday,timeWednesday:e.timeWednesday,utcWednesday:e.utcWednesday,timeThursday:e.timeThursday,utcThursday:e.utcThursday,timeFriday:e.timeFriday,utcFriday:e.utcFriday,timeSaturday:e.timeSaturday,utcSaturday:e.utcSaturday,timeMonth:e.timeMonth,utcMonth:e.utcMonth,timeYear:e.timeYear,utcYear:e.utcYear},FORMAT_LOCALE_URL:"https://cdn.jsdelivr.net/npm/d3-format/locale"}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u}));var r=n(7),i=n(42),o=n(58),a=n(4);function s(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),l=new Array(o);for(n=0;n=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function l(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r1?r[0]+r.slice(2):r,+t.slice(n+1)]}},function(t,e,n){"use strict";n.r(e);var r=n(1);n.d(e,"timeInterval",(function(){return r.a}));var i=n(52);n.d(e,"timeMillisecond",(function(){return i.a})),n.d(e,"timeMilliseconds",(function(){return i.b})),n.d(e,"utcMillisecond",(function(){return i.a})),n.d(e,"utcMilliseconds",(function(){return i.b}));var o=n(51);n.d(e,"timeSecond",(function(){return o.a})),n.d(e,"timeSeconds",(function(){return o.b})),n.d(e,"utcSecond",(function(){return o.a})),n.d(e,"utcSeconds",(function(){return o.b}));var a=n(71);n.d(e,"timeMinute",(function(){return a.a})),n.d(e,"timeMinutes",(function(){return a.b}));var s=n(70);n.d(e,"timeHour",(function(){return s.a})),n.d(e,"timeHours",(function(){return s.b}));var l=n(53);n.d(e,"timeDay",(function(){return l.b})),n.d(e,"timeDays",(function(){return l.a}));var u=n(5);n.d(e,"timeWeek",(function(){return u.g})),n.d(e,"timeWeeks",(function(){return u.h})),n.d(e,"timeSunday",(function(){return u.g})),n.d(e,"timeSundays",(function(){return u.h})),n.d(e,"timeMonday",(function(){return u.c})),n.d(e,"timeMondays",(function(){return u.d})),n.d(e,"timeTuesday",(function(){return u.k})),n.d(e,"timeTuesdays",(function(){return u.l})),n.d(e,"timeWednesday",(function(){return u.m})),n.d(e,"timeWednesdays",(function(){return u.n})),n.d(e,"timeThursday",(function(){return u.i})),n.d(e,"timeThursdays",(function(){return u.j})),n.d(e,"timeFriday",(function(){return u.a})),n.d(e,"timeFridays",(function(){return u.b})),n.d(e,"timeSaturday",(function(){return u.e})),n.d(e,"timeSaturdays",(function(){return u.f}));var c=n(69);n.d(e,"timeMonth",(function(){return c.a})),n.d(e,"timeMonths",(function(){return c.b}));var h=n(33);n.d(e,"timeYear",(function(){return h.a})),n.d(e,"timeYears",(function(){return h.b}));var f=n(74);n.d(e,"utcMinute",(function(){return f.a})),n.d(e,"utcMinutes",(function(){return f.b}));var d=n(73);n.d(e,"utcHour",(function(){return d.a})),n.d(e,"utcHours",(function(){return d.b}));var p=n(54);n.d(e,"utcDay",(function(){return p.a})),n.d(e,"utcDays",(function(){return p.b}));var m=n(6);n.d(e,"utcWeek",(function(){return m.g})),n.d(e,"utcWeeks",(function(){return m.h})),n.d(e,"utcSunday",(function(){return m.g})),n.d(e,"utcSundays",(function(){return m.h})),n.d(e,"utcMonday",(function(){return m.c})),n.d(e,"utcMondays",(function(){return m.d})),n.d(e,"utcTuesday",(function(){return m.k})),n.d(e,"utcTuesdays",(function(){return m.l})),n.d(e,"utcWednesday",(function(){return m.m})),n.d(e,"utcWednesdays",(function(){return m.n})),n.d(e,"utcThursday",(function(){return m.i})),n.d(e,"utcThursdays",(function(){return m.j})),n.d(e,"utcFriday",(function(){return m.a})),n.d(e,"utcFridays",(function(){return m.b})),n.d(e,"utcSaturday",(function(){return m.e})),n.d(e,"utcSaturdays",(function(){return m.f}));var g=n(72);n.d(e,"utcMonth",(function(){return g.a})),n.d(e,"utcMonths",(function(){return g.b}));var v=n(34);n.d(e,"utcYear",(function(){return v.a})),n.d(e,"utcYears",(function(){return v.b}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(t,e,n){"use strict";var r=n(7),i=n(36),o=n(61),a=n(60),s=n(14),l=n(62),u=n(59),c=n(48),h=n(31);e.a=function(t,e){var n,f=typeof e;return null==e||"boolean"===f?Object(c.a)(e):("number"===f?s.a:"string"===f?(n=Object(r.e)(e))?(e=n,i.a):u.a:e instanceof r.e?i.a:e instanceof Date?a.a:Object(h.b)(e)?h.a:Array.isArray(e)?o.b:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?l.a:s.a)(t,e)}},function(t,e,n){"use strict";function r(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}n.d(e,"a",(function(){return r})),e.b=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";var r=n(37);e.a=function(){for(var t,e=r.c;t=e.sourceEvent;)e=t;return e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return v})),n.d(e,"c",(function(){return y}));var r=n(15),i=n(7),o=n(47),a=6/29,s=3*a*a;function l(t){if(t instanceof h)return new h(t.l,t.a,t.b,t.opacity);if(t instanceof b)return x(t);t instanceof i.b||(t=Object(i.h)(t));var e,n,r=m(t.r),o=m(t.g),a=m(t.b),s=f((.2225045*r+.7168786*o+.0606169*a)/1);return r===o&&o===a?e=n=s:(e=f((.4360747*r+.3850649*o+.1430804*a)/.96422),n=f((.0139322*r+.0971045*o+.7141733*a)/.82521)),new h(116*s-16,500*(e-s),200*(s-n),t.opacity)}function u(t,e){return new h(t,0,0,null==e?1:e)}function c(t,e,n,r){return 1===arguments.length?l(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function f(t){return t>.008856451679035631?Math.pow(t,1/3):t/s+4/29}function d(t){return t>a?t*t*t:s*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function m(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t){if(t instanceof b)return new b(t.h,t.c,t.l,t.opacity);if(t instanceof h||(t=l(t)),0===t.a&&0===t.b)return new b(NaN,00?t>1?Object(r.a)((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):i:null},e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.c)/i.a}),(function(t){return t.getDate()-1}));e.b=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/i.a}),(function(t){return t.getUTCDate()-1}));e.a=o;var a=o.range},,function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s}));var r,i,o,a=n(68);function s(t){return r=Object(a.a)(t),i=r.format,o=r.formatPrefix,r}s({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(t,e){var n=/^(?:0|[1-9]\d*)$/;function r(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var i,o,a=Object.prototype,s=a.hasOwnProperty,l=a.toString,u=a.propertyIsEnumerable,c=(i=Object.keys,o=Object,function(t){return i(o(t))}),h=Math.max,f=!u.call({valueOf:1},"valueOf");function d(t,e){var n=y(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&b(t)}(t)&&s.call(t,"callee")&&(!u.call(t,"callee")||"[object Arguments]"==l.call(t))}(t)?function(t,e){for(var n=-1,r=Array(t);++n-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}(t.length)&&!function(t){var e=x(t)?l.call(t):"";return"[object Function]"==e||"[object GeneratorFunction]"==e}(t)}function x(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var w,S=(w=function(t,e){if(f||g(e)||b(e))!function(t,e,n,r){n||(n={});for(var i=-1,o=e.length;++i1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(i=w.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(t,e,n){if(!x(n))return!1;var r=typeof e;return!!("number"==r?b(n)&&m(e,n.length):"string"==r&&e in n)&&v(n[e],t)}(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++nl&&(s=e.slice(l,s),c[u]?c[u]+=s:c[++u]=s),(n=n[0])===(a=a[0])?c[u]?c[u]+=a:c[++u]=a:(c[++u]=null,h.push({i:u,x:Object(r.a)(n,a)})),l=o.lastIndex;return l=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:St,s:Ct,S:Z,u:$,U:K,V:Q,w:J,W:tt,x:null,X:null,y:et,Y:nt,Z:rt,"%":wt},jt={a:function(t){return p[t.getUTCDay()]},A:function(t){return f[t.getUTCDay()]},b:function(t){return g[t.getUTCMonth()]},B:function(t){return m[t.getUTCMonth()]},c:null,d:it,e:it,f:ut,H:ot,I:at,j:st,L:lt,m:ct,M:ht,p:function(t){return l[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:St,s:Ct,S:ft,u:dt,U:pt,V:mt,w:gt,W:vt,x:null,X:null,y:yt,Y:bt,Z:xt,"%":wt},Lt={a:function(t,e,n){var r=Et.exec(e.slice(n));return r?(t.w=Mt[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=_t.exec(e.slice(n));return r?(t.w=kt[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=Ot.exec(e.slice(n));return r?(t.m=Pt[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=Tt.exec(e.slice(n));return r?(t.m=At[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return Rt(t,e,n,r)},d:P,e:P,f:R,H:j,I:j,j:N,L:I,m:O,M:L,p:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.p=y[r[0].toLowerCase()],n+r[0].length):-1},q:A,Q:F,s:z,S:D,u:S,U:C,V:_,w:w,W:k,x:function(t,e,r){return Rt(t,n,e,r)},X:function(t,e,n){return Rt(t,s,e,n)},y:M,Y:E,Z:T,"%":B};function Dt(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in f||(f.w=1),"Z"in f?(l=(s=c(h(f.y,0,1))).getUTCDay(),s=l>4||0===l?r.c.ceil(s):Object(r.c)(s),s=i.a.offset(s,7*(f.V-1)),f.y=s.getUTCFullYear(),f.m=s.getUTCMonth(),f.d=s.getUTCDate()+(f.w+6)%7):(l=(s=u(h(f.y,0,1))).getDay(),s=l>4||0===l?o.c.ceil(s):Object(o.c)(s),s=a.b.offset(s,7*(f.V-1)),f.y=s.getFullYear(),f.m=s.getMonth(),f.d=s.getDate()+(f.w+6)%7)}else("W"in f||"U"in f)&&("w"in f||(f.w="u"in f?f.u%7:"W"in f?1:0),l="Z"in f?c(h(f.y,0,1)).getUTCDay():u(h(f.y,0,1)).getDay(),f.m=0,f.d="W"in f?(f.w+6)%7+7*f.W-(l+5)%7:f.w+7*f.U-(l+6)%7);return"Z"in f?(f.H+=f.Z/100|0,f.M+=f.Z%100,c(f)):u(f)}}function Rt(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Lt[i in d?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Nt.x=Dt(n,Nt),Nt.X=Dt(s,Nt),Nt.c=Dt(e,Nt),jt.x=Dt(n,jt),jt.X=Dt(s,jt),jt.c=Dt(e,jt),{format:function(t){var e=Dt(t+="",Nt);return e.toString=function(){return t},e},parse:function(t){var e=It(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Dt(t+="",jt);return e.toString=function(){return t},e},utcParse:function(t){var e=It(t+="",!0);return e.toString=function(){return t},e}}}var d={"-":"",_:" ",0:"0"},p=/^\s*\d+/,m=/^%/,g=/[\\^$*+?|[\]().{}]/g;function v(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function T(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function A(t,e,n){var r=p.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function O(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function P(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function N(t,e,n){var r=p.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function j(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function L(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function D(t,e,n){var r=p.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function I(t,e,n){var r=p.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function R(t,e,n){var r=p.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function B(t,e,n){var r=m.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function F(t,e,n){var r=p.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function z(t,e,n){var r=p.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function H(t,e){return v(t.getDate(),e,2)}function U(t,e){return v(t.getHours(),e,2)}function G(t,e){return v(t.getHours()%12||12,e,2)}function W(t,e){return v(1+a.b.count(Object(s.a)(t),t),e,3)}function V(t,e){return v(t.getMilliseconds(),e,3)}function Y(t,e){return V(t,e)+"000"}function X(t,e){return v(t.getMonth()+1,e,2)}function q(t,e){return v(t.getMinutes(),e,2)}function Z(t,e){return v(t.getSeconds(),e,2)}function $(t){var e=t.getDay();return 0===e?7:e}function K(t,e){return v(o.g.count(Object(s.a)(t)-1,t),e,2)}function Q(t,e){var n=t.getDay();return t=n>=4||0===n?Object(o.i)(t):o.i.ceil(t),v(o.i.count(Object(s.a)(t),t)+(4===Object(s.a)(t).getDay()),e,2)}function J(t){return t.getDay()}function tt(t,e){return v(o.c.count(Object(s.a)(t)-1,t),e,2)}function et(t,e){return v(t.getFullYear()%100,e,2)}function nt(t,e){return v(t.getFullYear()%1e4,e,4)}function rt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+v(e/60|0,"0",2)+v(e%60,"0",2)}function it(t,e){return v(t.getUTCDate(),e,2)}function ot(t,e){return v(t.getUTCHours(),e,2)}function at(t,e){return v(t.getUTCHours()%12||12,e,2)}function st(t,e){return v(1+i.a.count(Object(l.a)(t),t),e,3)}function lt(t,e){return v(t.getUTCMilliseconds(),e,3)}function ut(t,e){return lt(t,e)+"000"}function ct(t,e){return v(t.getUTCMonth()+1,e,2)}function ht(t,e){return v(t.getUTCMinutes(),e,2)}function ft(t,e){return v(t.getUTCSeconds(),e,2)}function dt(t){var e=t.getUTCDay();return 0===e?7:e}function pt(t,e){return v(r.g.count(Object(l.a)(t)-1,t),e,2)}function mt(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(r.i)(t):r.i.ceil(t),v(r.i.count(Object(l.a)(t),t)+(4===Object(l.a)(t).getUTCDay()),e,2)}function gt(t){return t.getUTCDay()}function vt(t,e){return v(r.c.count(Object(l.a)(t)-1,t),e,2)}function yt(t,e){return v(t.getUTCFullYear()%100,e,2)}function bt(t,e){return v(t.getUTCFullYear()%1e4,e,4)}function xt(){return"+0000"}function wt(){return"%"}function St(t){return+t}function Ct(t){return Math.floor(+t/1e3)}},function(t,e,n){"use strict";var r=n(23);e.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return this.matches(t)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s}));var r=n(45);function i(t){return function(){this.style.removeProperty(t)}}function o(t,e,n){return function(){this.style.setProperty(t,e,n)}}function a(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function s(t,e){return t.style.getPropertyValue(e)||Object(r.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.a=function(t,e,n){return arguments.length>1?this.each((null==e?i:"function"==typeof e?a:o)(t,e,null==n?"":n)):s(this.node(),t)}},function(t,e,n){"use strict";var r,i=n(22),o=n(40),a=n(38),s=function(t,e){var n=Object(a.a)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},l={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=Object(a.a)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=i.length;return s===l?i:s>l?i+new Array(s-l+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+Object(a.a)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},u=function(t){return t},c=Array.prototype.map,h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?u:(e=c.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",f=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",p=void 0===t.numerals?u:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(c.call(t.numerals,String)),m=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function y(t){var e=(t=Object(o.b)(t)).fill,n=t.align,i=t.sign,u=t.symbol,c=t.zero,y=t.width,b=t.comma,x=t.precision,w=t.trim,S=t.type;"n"===S?(b=!0,S="g"):l[S]||(void 0===x&&(x=12),w=!0,S="g"),(c||"0"===e&&"="===n)&&(c=!0,e="0",n="=");var C="$"===u?s:"#"===u&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",_="$"===u?f:/[%p]/.test(S)?m:"",k=l[S],E=/[defgprs%]/.test(S);function M(t){var o,s,l,u=C,f=_;if("c"===S)f=k(t)+f,t="";else{var m=(t=+t)<0;if(t=isNaN(t)?v:k(Math.abs(t),x),w&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),m&&0==+t&&(m=!1),u=(m?"("===i?i:g:"-"===i||"("===i?"":i)+u,f=("s"===S?h[8+r/3]:"")+f+(m&&"("===i?")":""),E)for(o=-1,s=t.length;++o(l=t.charCodeAt(o))||l>57){f=(46===l?d+t.slice(o+1):t.slice(o))+f,t=t.slice(0,o);break}}b&&!c&&(t=a(t,1/0));var M=u.length+t.length+f.length,T=M>1)+u+t+f+T.slice(M);break;default:t=T+u+t+f}return p(t)}return x=void 0===x?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),M.toString=function(){return t+""},M}return{format:y,formatPrefix:function(t,e){var n=y(((t=Object(o.b)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(e)/3))),a=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(a*t)+s}}}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(1),i=Object(r.a)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.d-t.getMinutes()*i.c)}),(function(t,e){t.setTime(+t+e*i.b)}),(function(t,e){return(e-t)/i.b}),(function(t){return t.getHours()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.d)}),(function(t,e){t.setTime(+t+e*i.c)}),(function(t,e){return(e-t)/i.c}),(function(t){return t.getMinutes()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(1),i=Object(r.a)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));e.a=i;var o=i.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*i.b)}),(function(t,e){return(e-t)/i.b}),(function(t){return t.getUTCHours()}));e.a=o;var a=o.range},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var r=n(1),i=n(3),o=Object(r.a)((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*i.c)}),(function(t,e){return(e-t)/i.c}),(function(t){return t.getUTCMinutes()}));e.a=o;var a=o.range},function(t,e,n){"use strict";var r,i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}void 0===(r=function(t){var e,r=n(39),s=n(28),l=n(35),u=l.axisTimeCombinations,c=l.timeBenchmarks,h=n(87),f=h.convertMillisecondsToDays,d=h.getLocaleDateFormatter,p={minute:s.timeFormat("%M m"),hour:s.timeFormat("%H %p"),day:s.timeFormat("%e"),daymonth:s.timeFormat("%d %b"),month:s.timeFormat("%b"),year:s.timeFormat("%Y")},m=(a(e={},u.MINUTE_HOUR,r.timeHour.every(1)),a(e,u.HOUR_DAY,r.timeDay.every(1)),a(e,u.DAY_MONTH,r.timeMonth.every(1)),a(e,u.MONTH_YEAR,r.timeYear.every(1)),e),g=function(t){var e=c.ONE_YEAR;return t2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=new Date(t[0].date),s=new Date(t[t.length-1].date)-a;r&&("undefined"==typeof Intl||"object"===("undefined"==typeof Intl?"undefined":o(Intl))&&!Intl.DateTimeFormat)&&(r=null),n||(n=g(s));var l=n.split("-"),u=i(l,2),c=u[0],h=u[1],y=m[n],b=v(e,f(s));return{minor:{format:r?d(r,c):p[c],tick:b},major:{format:r?d(r,h):p[h],tick:y}}}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r;void 0===(r=function(t){n(2);var e="highlight-filter";return{bounceCircleHighlight:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2*n,i=100,o=50;t.transition().ease(e).duration(i).attr("r",r).transition().ease(e).delay(o).duration(i).attr("r",n)},createFilterContainer:function(t){return t.append("defs").append("filter").attr("id",e)},createGausianBlur:function(t){return t.append("feGaussianBlur").attr("stdDeviation",1).attr("result","coloredBlur"),e},createWhiteGlow:function(t){t.attr("x","-5000%").attr("y","-5000%").attr("width","10000%").attr("height","10000%"),t.append("feFlood").attr("result","flood").attr("flood-color","#ffffff").attr("flood-opacity","1"),t.append("feComposite").attr("result","mask").attr("in2","SourceGraphic").attr("operator","in").attr("in","flood"),t.append("feMorphology").attr("result","dilated").attr("operator","dilate").attr("radius","2").attr("in","mask"),t.append("feGaussianBlur").attr("result","blurred").attr("stdDeviation","5").attr("in","dilated");var n=t.append("feMerge");return n.append("feMergeNode").attr("in","blurred"),n.append("feMergeNode").attr("in","SourceGraphic"),e},createGlow:function(t){t.attr("x","-30%").attr("y","-30%").attr("width","160%").attr("height","160%"),t.append("feGaussianBlur").attr("stdDeviation","0.9 0.9").attr("result","glow");var n=t.append("feMerge");return n.append("feMergeNode").attr("in","glow"),n.append("feMergeNode").attr("in","glow"),n.append("feMergeNode").attr("in","glow"),e},createGlowWithMatrix:function(t){t.attr("x","-500%").attr("y","-500%").attr("width","1800%").attr("height","1800%"),t.append("feColorMatrix").attr("type","matrix").attr("values","0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"),t.append("feGaussianBlur").attr("stdDeviation","1").attr("result","coloredBlur").attr("in","SourceGraphic");var n=t.append("feMerge");return n.append("feMergeNode").attr("in","coloredBlur"),n.append("feMergeNode").attr("in","SourceGraphic"),e}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i,o,a,s=n(14),l=180/Math.PI,u={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},c=function(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(s.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,l,u),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(s.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,l,u),function(t,e,n,r,o,a){if(t!==n||e!==r){var l=o.push(i(o)+"scale(",null,",",null,")");a.push({i:l-4,x:Object(s.a)(t,n)},{i:l-2,x:Object(s.a)(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,l,u),o=a=null,function(t){for(var e,n=-1,r=u.length;++n=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function s(t,e){for(var n,r=0,i=t.length;r0)for(var n,r,i=new Array(n),o=0;o=0))throw S(x,new Error(t.tagName+"@"+n));for(var i=e.length-1;r"==t&&">")||"&"==t&&"&"||'"'==t&&"""||"&#"+t.charCodeAt()+";"}function j(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(j(t,e))return!0}while(t=t.nextSibling)}function L(){}function D(t,e,n,r){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function I(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n)r[r.length++]=n;else{for(var i=e.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function R(t,e){var n=e.previousSibling,r=e.nextSibling;return n?n.nextSibling=r:t.firstChild=r,r?r.previousSibling=n:t.lastChild=n,I(t.ownerDocument,t),e}function B(t,e,n){var r=e.parentNode;if(r&&r.removeChild(e),e.nodeType===m){var i=e.firstChild;if(null==i)return e;var o=e.lastChild}else i=o=e;var a=n?n.previousSibling:t.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:t.firstChild=i,null==n?t.lastChild=o:n.previousSibling=o;do{i.parentNode=t}while(i!==o&&(i=i.nextSibling));return I(t.ownerDocument||t,t),e.nodeType==m&&(e.firstChild=e.lastChild=null),e}function F(){this._nsMap={}}function z(){}function H(){}function U(){}function G(){}function W(){}function V(){}function Y(){}function X(){}function q(){}function Z(){}function $(){}function K(){}function Q(t,e){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return tt(this,n,t,e,a),n.join("")}function J(t,e,n){var r=t.prefix||"",i=t.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function tt(t,e,n,r,i){if(r){if(!(t=r(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case o:i||(i=[]),i.length;var c=t.attributes,g=c.length,v=t.firstChild,y=t.tagName;n="http://www.w3.org/1999/xhtml"===t.namespaceURI||n,e.push("<",y);for(var b=0;b"),n&&/^script$/i.test(y))for(;v;)v.data?e.push(v.data):tt(v,e,n,r,i),v=v.nextSibling;else for(;v;)tt(v,e,n,r,i),v=v.nextSibling;e.push("")}else e.push("/>");return;case d:case m:for(v=t.firstChild;v;)tt(v,e,n,r,i),v=v.nextSibling;return;case a:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,N),'"');case s:return e.push(t.data.replace(/[<&]/g,N));case l:return e.push("");case f:return e.push("\x3c!--",t.data,"--\x3e");case p:var _=t.publicId,k=t.systemId;if(e.push("');else if(k&&"."!=k)e.push(' SYSTEM "',k,'">');else{var E=t.internalSubset;E&&e.push(" [",E,"]"),e.push(">")}return;case h:return e.push("");case u:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function et(t,e,n){t[e]=n}v.INVALID_STATE_ERR=(y[11]="Invalid state",11),v.SYNTAX_ERR=(y[12]="Syntax error",12),v.INVALID_MODIFICATION_ERR=(y[13]="Invalid modification",13),v.NAMESPACE_ERR=(y[14]="Invalid namespace",14),v.INVALID_ACCESS_ERR=(y[15]="Invalid access",15),S.prototype=Error.prototype,n(v,S),C.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var n=[],r=0;r0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n)for(var r in n)if(n[r]==t)return r;e=e.nodeType==a?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&t in n)return n[t];e=e.nodeType==a?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},n(i,P),n(i,P.prototype),L.prototype={nodeName:"#document",nodeType:d,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==m){for(var n=t.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,e),n=r}return t}return null==this.documentElement&&t.nodeType==o&&(this.documentElement=t),B(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),R(this,t)},importNode:function(t,e){return function t(e,n,r){var i;switch(n.nodeType){case o:(i=n.cloneNode(!1)).ownerDocument=e;case m:break;case a:r=!0}if(i||(i=n.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,r)for(var s=n.firstChild;s;)i.appendChild(t(e,s,r)),s=s.nextSibling;return i}(this,t,e)},getElementById:function(t){var e=null;return j(this.documentElement,(function(n){if(n.nodeType==o&&n.getAttribute("id")==t)return e=n,!0})),e},createElement:function(t){var e=new F;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new C,(e.attributes=new E)._ownerElement=e,e},createDocumentFragment:function(){var t=new Z;return t.ownerDocument=this,t.childNodes=new C,t},createTextNode:function(t){var e=new U;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new G;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new W;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new $;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new z;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new q;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new F,r=e.split(":"),i=n.attributes=new E;return n.childNodes=new C,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,i._ownerElement=n,n},createAttributeNS:function(t,e){var n=new z,r=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=e,n}},r(L,P),F.prototype={nodeType:o,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===m?this.insertBefore(t,null):function(t,e){var n=e.parentNode;if(n){var r=t.lastChild;n.removeChild(e),r=t.lastChild}return r=t.lastChild,e.parentNode=t,e.previousSibling=r,e.nextSibling=null,r?r.nextSibling=e:t.firstChild=e,t.lastChild=e,I(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var r=this.ownerDocument.createAttributeNS(t,e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new _(this,(function(e){var n=[];return j(e,(function(r){r===e||r.nodeType!=o||"*"!==t&&r.tagName!=t||n.push(r)})),n}))},getElementsByTagNameNS:function(t,e){return new _(this,(function(n){var r=[];return j(n,(function(i){i===n||i.nodeType!==o||"*"!==t&&i.namespaceURI!==t||"*"!==e&&i.localName!=e||r.push(i)})),r}))}},L.prototype.getElementsByTagName=F.prototype.getElementsByTagName,L.prototype.getElementsByTagNameNS=F.prototype.getElementsByTagNameNS,r(F,P),z.prototype.nodeType=a,r(z,P),H.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(y[b])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){n=this.data.substring(0,t)+n+this.data.substring(t+e),this.nodeValue=this.data=n,this.length=n.length}},r(H,P),U.prototype={nodeName:"#text",nodeType:s,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(U,H),G.prototype={nodeName:"#comment",nodeType:f},r(G,H),W.prototype={nodeName:"#cdata-section",nodeType:l},r(W,H),V.prototype.nodeType=p,r(V,P),Y.prototype.nodeType=g,r(Y,P),X.prototype.nodeType=c,r(X,P),q.prototype.nodeType=u,r(q,P),Z.prototype.nodeName="#document-fragment",Z.prototype.nodeType=m,r(Z,P),$.prototype.nodeType=h,r($,P),K.prototype.serializeToString=function(t,e,n){return Q.call(t,e,n)},P.prototype.toString=Q;try{Object.defineProperty&&(Object.defineProperty(_.prototype,"length",{get:function(){return k(this),this.$$length}}),Object.defineProperty(P.prototype,"textContent",{get:function(){return function t(e){switch(e.nodeType){case o:case m:var n=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}}(this)},set:function(t){switch(this.nodeType){case o:case m:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),et=function(t,e,n){t["$$"+e]=n})}catch(t){}e.DOMImplementation=O,e.XMLSerializer=K},function(t,e,n){"use strict";var r;void 0===(r=function(t){return n(9),{addDays:function(t,e){var n=new Date(t);return n.setDate(n.getDate()+e),String(n)},convertMillisecondsToDays:function(t){return Math.ceil(t/864e5)},diffDays:function(t,e){return Math.ceil(Math.abs((new Date(t).getTime()-new Date(e).getTime())/864e5))},getLocaleDateFormatter:function(t){var e=localeTimeMap[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"day"],n=new Intl.DateTimeFormat(t,e);return function(t){return n.format(t)}}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.colors=e.bullet=e.brush=e.step=e.heatmap=e.stackedBar=e.groupedRow=e.groupedBar=e.scatterPlot=e.stackedArea=e.sparkline=e.row=e.miniTooltip=e.tooltip=e.loadingStates=e.line=e.legend=e.donut=e.bar=void 0;var r=S(n(90)),i=S(n(101)),o=S(n(102)),a=S(n(103)),s=S(n(18)),l=S(n(104)),u=S(n(106)),c=S(n(107)),h=S(n(108)),f=S(n(109)),d=S(n(110)),p=S(n(111)),m=S(n(112)),g=S(n(113)),v=S(n(114)),y=S(n(115)),b=S(n(116)),x=S(n(117)),w=S(n(10));function S(t){return t&&t.__esModule?t:{default:t}}e.bar=r.default,e.donut=i.default,e.legend=o.default,e.line=a.default,e.loadingStates=s.default,e.tooltip=u.default,e.miniTooltip=c.default,e.row=l.default,e.sparkline=h.default,e.stackedArea=f.default,e.scatterPlot=d.default,e.groupedBar=p.default,e.groupedRow=m.default,e.stackedBar=g.default,e.heatmap=v.default,e.step=y.default,e.brush=b.default,e.bullet=x.default,e.colors=w.default},,function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e]*>/,""),(e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t),e)},e.Property=function(t,e){this.name=t,this.value=e},e.Property.prototype.getValue=function(){return this.value},e.Property.prototype.hasValue=function(){return null!=this.value&&""!=this.value},e.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},e.Property.prototype.valueOrDefault=function(t){return this.hasValue()?this.value:t},e.Property.prototype.numValueOrDefault=function(t){return this.hasValue()?this.numValue():t},e.Property.prototype.addOpacity=function(t){var n=this.value;if(null!=t.value&&""!=t.value&&"string"==typeof this.value){var i=new r(this.value);i.ok&&(n="rgba("+i.r+", "+i.g+", "+i.b+", "+t.numValue()+")")}return new e.Property(this.name,n)},e.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=this.value),e.Definitions[t]},e.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},e.Property.prototype.getFillStyleDefinition=function(t,n){var r=this.getDefinition();if(null!=r&&r.createGradient)return r.createGradient(e.ctx,t,n);if(null!=r&&r.createPattern){if(r.getHrefAttribute().hasValue()){var i=r.attribute("patternTransform");r=r.getHrefAttribute().getDefinition(),i.hasValue()&&(r.attribute("patternTransform",!0).value=i.value)}return r.createPattern(e.ctx,t)}return null},e.Property.prototype.getDPI=function(t){return 96},e.Property.prototype.getEM=function(t){var n=12,r=new e.Property("fontSize",e.Font.Parse(e.ctx.font).fontSize);return r.hasValue()&&(n=r.toPixels(t)),n},e.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},e.Property.prototype.toPixels=function(t,n){if(!this.hasValue())return 0;var r=this.value+"";if(r.match(/em$/))return this.numValue()*this.getEM(t);if(r.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(r.match(/px$/))return this.numValue();if(r.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(r.match(/pc$/))return 15*this.numValue();if(r.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(r.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(r.match(/in$/))return this.numValue()*this.getDPI(t);if(r.match(/%$/))return this.numValue()*e.ViewPort.ComputeSize(t);var i=this.numValue();return n&&i<1?i*e.ViewPort.ComputeSize(t):i},e.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/s$/)?1e3*this.numValue():(t.match(/ms$/),this.numValue())},e.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/deg$/)?this.numValue()*(Math.PI/180):t.match(/grad$/)?this.numValue()*(Math.PI/200):t.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var s={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};return e.Property.prototype.toTextBaseline=function(){return this.hasValue()?s[this.value]:null},e.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(t,n,r,i,o,a){var s=null!=a?this.Parse(a):this.CreateFont("","","","","",e.ctx.font);return{fontFamily:o||s.fontFamily,fontSize:i||s.fontSize,fontStyle:t||s.fontStyle,fontWeight:r||s.fontWeight,fontVariant:n||s.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var t=this;this.Parse=function(n){for(var r={},i=e.trim(e.compressSpaces(n||"")).split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},a="",s=0;sthis.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),ethis.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,n,r,i,o){var a=t+2/3*(n-t),s=e+2/3*(r-e),l=a+1/3*(i-t),u=s+1/3*(o-e);this.addBezierCurve(t,e,a,l,s,u,i,o)},this.addBezierCurve=function(t,e,n,r,i,o,a,s){var l=[t,e],u=[n,r],c=[i,o],h=[a,s];this.addPoint(l[0],l[1]),this.addPoint(h[0],h[1]);for(var f=0;f<=1;f++){var d=function(t){return Math.pow(1-t,3)*l[f]+3*Math.pow(1-t,2)*t*u[f]+3*(1-t)*Math.pow(t,2)*c[f]+Math.pow(t,3)*h[f]},p=6*l[f]-12*u[f]+6*c[f],m=-3*l[f]+9*u[f]-9*c[f]+3*h[f],g=3*u[f]-3*l[f];if(0!=m){var v=Math.pow(p,2)-4*g*m;if(!(v<0)){var y=(-p+Math.sqrt(v))/(2*m);0=0;e--)this.transforms[e].unapply(t)},this.applyToPoint=function(t){for(var e=0;es&&(this.styles[a]=i[a],this.stylesSpecificity[a]=o)}}},null!=t&&1==t.nodeType){for(var r=0;r0&&t.push([this.points[this.points.length-1],t[t.length-1][1]]),t}},e.Element.polyline.prototype=new e.Element.PathElementBase,e.Element.polygon=function(t){this.base=e.Element.polyline,this.base(t),this.basePath=this.path,this.path=function(t){var e=this.basePath(t);return null!=t&&(t.lineTo(this.points[0].x,this.points[0].y),t.closePath()),e}},e.Element.polygon.prototype=new e.Element.polyline,e.Element.path=function(t){this.base=e.Element.PathElementBase,this.base(t);var n=this.attribute("d").value;n=n.replace(/,/gm," ");for(var r=0;r<2;r++)n=n.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");for(n=(n=n.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2"),r=0;r<2;r++)n=n.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");n=n.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),n=e.compressSpaces(n),n=e.trim(n),this.PathParser=new function(t){this.tokens=t.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new e.Point(0,0),this.control=new e.Point(0,0),this.current=new e.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var t=new e.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t,t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t,t},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new e.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x+=this.current.x,t.y+=this.current.y),t},this.addMarker=function(t,e,n){null!=n&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(n)),this.addMarkerAngle(t,null==e?null:e.angleTo(t))},this.addMarkerAngle=function(t,e){this.points.push(t),this.angles.push(e)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var t=0;t1&&(h*=Math.sqrt(v),f*=Math.sqrt(v));var y=(p==m?-1:1)*Math.sqrt((Math.pow(h,2)*Math.pow(f,2)-Math.pow(h,2)*Math.pow(g.y,2)-Math.pow(f,2)*Math.pow(g.x,2))/(Math.pow(h,2)*Math.pow(g.y,2)+Math.pow(f,2)*Math.pow(g.x,2)));isNaN(y)&&(y=0);var b=new e.Point(y*h*g.y/f,y*-f*g.x/h),x=new e.Point((s.x+c.x)/2+Math.cos(d)*b.x-Math.sin(d)*b.y,(s.y+c.y)/2+Math.sin(d)*b.x+Math.cos(d)*b.y),w=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},S=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(w(t)*w(e))},C=function(t,e){return(t[0]*e[1]=1&&(M=0);var T=1-m?1:-1,A=_+T*(M/2),O=new e.Point(x.x+h*Math.cos(A),x.y+f*Math.sin(A));if(n.addMarkerAngle(O,A-T*Math.PI/2),n.addMarkerAngle(c,A-T*Math.PI),r.addPoint(c.x,c.y),null!=t){S=h>f?h:f;var P=h>f?1:h/f,N=h>f?f/h:1;t.translate(x.x,x.y),t.rotate(d),t.scale(P,N),t.arc(0,0,S,_,_+M,1-m),t.scale(1/P,1/N),t.rotate(-d),t.translate(-x.x,-x.y)}}break;case"Z":case"z":null!=t&&t.closePath(),n.current=n.start}return r},this.getMarkers=function(){for(var t=this.PathParser.getMarkerPoints(),e=this.PathParser.getMarkerAngles(),n=[],r=0;r1&&(this.offset=1);var n=this.style("stop-color",!0);""==n.value&&(n.value="#000"),this.style("stop-opacity").hasValue()&&(n=n.addOpacity(this.style("stop-opacity"))),this.color=n.value},e.Element.stop.prototype=new e.Element.ElementBase,e.Element.AnimateBase=function(t){this.base=e.Element.ElementBase,this.base(t),e.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var t=this.attribute("attributeType").value,e=this.attribute("attributeName").value;return"CSS"==t?this.parent.style(e,!0):this.parent.attribute(e,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(t){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+t;var e=!1;if(this.beginn&&a.attribute("x").hasValue())break;i+=a.measureTextRecursive(t)}return-1*("end"==r?i:i/2)}return 0},this.renderChild=function(t,e,n,r){var i=n.children[r];for(i.attribute("x").hasValue()?(i.x=i.attribute("x").toPixels("x")+e.getAnchorDelta(t,n,r),i.attribute("dx").hasValue()&&(i.x+=i.attribute("dx").toPixels("x"))):(i.attribute("dx").hasValue()&&(e.x+=i.attribute("dx").toPixels("x")),i.x=e.x),e.x=i.x+i.measureText(t),i.attribute("y").hasValue()?(i.y=i.attribute("y").toPixels("y"),i.attribute("dy").hasValue()&&(i.y+=i.attribute("dy").toPixels("y"))):(i.attribute("dy").hasValue()&&(e.y+=i.attribute("dy").toPixels("y")),i.y=e.y),e.y=i.y,i.render(t),r=0;r0&&" "!=e[n-1]&&n0&&" "!=e[n-1]&&(n==e.length-1||" "==e[n+1])&&(o="initial"),void 0!==t.glyphs[r]&&null==(i=t.glyphs[r][o])&&"glyph"==t.glyphs[r].type&&(i=t.glyphs[r])}else i=t.glyphs[r];return null==i&&(i=t.missingGlyph),i},this.renderChildren=function(t){var n=this.parent.style("font-family").getDefinition();if(null==n)""!=t.fillStyle&&t.fillText(e.compressSpaces(this.getText()),this.x,this.y),""!=t.strokeStyle&&t.strokeText(e.compressSpaces(this.getText()),this.x,this.y);else{var r=this.parent.style("font-size").numValueOrDefault(e.Font.Parse(e.ctx.font).fontSize),i=this.parent.style("font-style").valueOrDefault(e.Font.Parse(e.ctx.font).fontStyle),o=this.getText();n.isRTL&&(o=o.split("").reverse().join(""));for(var a=e.ToNumberArray(this.parent.attribute("dx").value),s=0;s0?"":this.text}},e.Element.tspan.prototype=new e.Element.TextElementBase,e.Element.tref=function(t){this.base=e.Element.TextElementBase,this.base(t),this.getText=function(){var t=this.getHrefAttribute().getDefinition();if(null!=t)return t.children[0].getText()}},e.Element.tref.prototype=new e.Element.TextElementBase,e.Element.a=function(t){this.base=e.Element.TextElementBase,this.base(t),this.hasText=t.childNodes.length>0;for(var n=0;n0){var r=new e.Element.g;r.children=this.children,r.parent=this,r.render(t)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){e.ctx.canvas.style.cursor="pointer"}},e.Element.a.prototype=new e.Element.TextElementBase,e.Element.image=function(t){this.base=e.Element.RenderedElementBase,this.base(t);var n=this.getHrefAttribute().value;if(""!=n){var r=n.match(/\.svg$/);if(e.Images.push(this),this.loaded=!1,r)this.img=e.ajax(n),this.loaded=!0;else{this.img=document.createElement("img"),1==e.opts.useCORS&&(this.img.crossOrigin="Anonymous");var i=this;this.img.onload=function(){i.loaded=!0},this.img.onerror=function(){e.log('ERROR: image "'+n+'" not found'),i.loaded=!0},this.img.src=n}this.renderChildren=function(t){var n=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),o=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");0!=o&&0!=a&&(t.save(),r?t.drawSvg(this.img,n,i,o,a):(t.translate(n,i),e.AspectRatio(t,this.attribute("preserveAspectRatio").value,o,this.img.width,a,this.img.height,0,0),t.drawImage(this.img,0,0)),t.restore())},this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),r=this.attribute("width").toPixels("x"),i=this.attribute("height").toPixels("y");return new e.BoundingBox(t,n,t+r,n+i)}}},e.Element.image.prototype=new e.Element.RenderedElementBase,e.Element.g=function(t){this.base=e.Element.RenderedElementBase,this.base(t),this.getBoundingBox=function(){for(var t=new e.BoundingBox,n=0;n0)for(var b=v[y].indexOf("url"),x=v[y].indexOf(")",b),w=v[y].substr(b+5,x-b-6),S=e.parseXml(e.ajax(w)).getElementsByTagName("font"),C=0;C~\.\[:]+)/g,0),n(/(\.[^\s\+>~\.\[:]+)/g,1),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),n(/(:[\w-]+\([^\)]*\))/gi,1),n(/(:[^\s\+>~\.\[:]+)/g,1),t=(t=t.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),n(/([^\s\+>~\.\[:]+)/g,2),e.join("")}n(94),t.exports=o},function(t,e){t.exports=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=e[t]||t;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],r=0;r3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n},this.getHelpXML=function(){for(var t=new Array,r=0;r "+u.toRGB()+" -> "+u.toHex());l.appendChild(c),l.appendChild(h),s.appendChild(l)}catch(t){}return s}}},function(t,e){var n=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],r=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function i(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}t.exports=function(t,e,o,a){if(!(isNaN(a)||a<1)){var s,l,u,c,h,f,d,p,m,g,v,y,b,x,w,S,C,_,k,E,M,T,A,O,P=(a|=0)+a+1,N=e-1,j=o-1,L=a+1,D=L*(L+1)/2,I=new i,R=I;for(u=1;u>U,0!=A?(A=255/A,t[f]=(p*H>>U)*A,t[f+1]=(m*H>>U)*A,t[f+2]=(g*H>>U)*A):t[f]=t[f+1]=t[f+2]=0,p-=y,m-=b,g-=x,v-=w,y-=F.r,b-=F.g,x-=F.b,w-=F.a,c=d+((c=s+a+1)>U,A>0?(A=255/A,t[c]=(p*H>>U)*A,t[c+1]=(m*H>>U)*A,t[c+2]=(g*H>>U)*A):t[c]=t[c+1]=t[c+2]=0,p-=y,m-=b,g-=x,v-=w,y-=F.r,b-=F.g,x-=F.b,w-=F.a,c=s+((c=l+L)=e+n||e?new java.lang.String(t,e,n)+"":t}function l(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}r.prototype.parseFromString=function(t,e){var n=this.options,r=new u,o=n.domBuilder||new i,s=n.errorHandler,l=n.locator,c=n.xmlns||{},h={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&o.setDocumentLocator(l),r.errorHandler=function(t,e,n){if(!t){if(e instanceof i)return e;t=e}var r={},o=t instanceof Function;function s(e){var i=t[e];!i&&o&&(i=2==t.length?function(n){t(e,n)}:t),r[e]=i&&function(t){i("[xmldom "+e+"]\t"+t+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,o,l),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(e)&&(h.nbsp="\xa0",h.copy="\xa9",c[""]="http://www.w3.org/1999/xhtml"),c.xml=c.xml||"http://www.w3.org/XML/1998/namespace",t?r.parse(t,c,h):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new c).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,r){var i=this.doc,a=i.createElementNS(t,n||e),s=r.length;l(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var u=0;u":switch(l){case 0:n.setTagName(t.slice(e,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(c=t.slice(e,s)).slice(-1)&&(n.closed=!0,c=c.slice(0,-1));case 2:2===l&&(c=a),4==l?(o.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c.replace(/&#?\w+;/g,i),e)):("http://www.w3.org/1999/xhtml"===r[""]&&c.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),n.add(c,c,e));break;case 3:throw new Error("attribute value missed!!")}return s;case"\x80":u=" ";default:if(u<=" ")switch(l){case 0:n.setTagName(t.slice(e,s)),l=6;break;case 1:a=t.slice(e,s),l=2;break;case 4:var c=t.slice(e,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c,e);case 5:l=6}else switch(l){case 2:n.tagName,"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,e),e=s,l=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:l=1,e=s;break;case 3:l=4,e=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function l(t,e,n){for(var r=t.tagName,i=null,o=t.length;o--;){var a=t[o],s=a.qName,l=a.value;if((d=s.indexOf(":"))>0)var u=a.prefix=s.slice(0,d),c=s.slice(d+1),f="xmlns"===u&&c;else c=s,u=null,f="xmlns"===s&&"";a.localName=c,!1!==f&&(null==i&&(i={},h(n,n={})),n[f]=i[f]=l,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(f,l))}for(o=t.length;o--;)(u=(a=t[o]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]));var d;(d=r.indexOf(":"))>0?(u=t.prefix=r.slice(0,d),c=t.localName=r.slice(d+1)):(u=null,c=t.localName=r);var p=t.uri=n[u||""];if(e.startElement(p,c,r,t),!t.closed)return t.currentNSMap=n,t.localNSMap=i,!0;if(e.endElement(p,c,r),i)for(u in i)e.endPrefixMapping(u)}function u(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("",e),a=t.substring(e+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return e+1}function c(t,e,n,r){var i=r[n];return null==i&&((i=t.lastIndexOf(""))e?(n.comment(t,e+4,i-e-4),i+3):(r.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var i=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,i-e-9),n.endCDATA(),i+3}var o=function(t,e){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(i.lastIndex=e,i.exec(t);n=i.exec(t);)if(r.push(n),n[1])return r}(t,e),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=a>3&&/^public$/i.test(o[2][0])&&o[3][0],u=a>4&&o[4][0],c=o[a-1];return n.startDTD(s,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),c.index+c[0].length}return-1}function d(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return i?(i[0].length,n.processingInstruction(i[1],i[2]),r+2):-1}return-1}function p(t){}function m(t,e){return t.__proto__=e,t}o.prototype={parse:function(t,e,n){var r=this.domBuilder;r.startDocument(),h(e,e={}),function(t,e,n,r,i){function o(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?function(t){if(t>65535){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}(parseInt(e.substr(1).replace("x","0x"))):(i.error("entity not found:"+t),t)}function h(e){if(e>S){var n=t.substring(S,e).replace(/&#?\w+;/g,o);b&&m(S),r.characters(n,0,e-S),S=e}}function m(e,n){for(;e>=v&&(n=y.exec(t));)g=n.index,v=g+n[0].length,b.lineNumber++;b.columnNumber=e-g+1}for(var g=0,v=0,y=/.*(?:\r\n?|\n)|.*$/g,b=r.locator,x=[{currentNSMap:e}],w={},S=0;;){try{var C=t.indexOf("<",S);if(C<0){if(!t.substr(S).match(/^\s*$/)){var _=r.doc,k=_.createTextNode(t.substr(S));_.appendChild(k),r.currentElement=k}return}switch(C>S&&h(C),t.charAt(C+1)){case"/":var E=t.indexOf(">",C+3),M=t.substring(C+2,E),T=x.pop();E<0?(M=t.substring(C+2).replace(/[\s<].*/,""),i.error("end tag name: "+M+" is not complete:"+T.tagName),E=C+1+M.length):M.match(/\sS?S=E:h(Math.max(C,S)+1)}}(t,e,n,r,this.errorHandler),r.endDocument()}},p.prototype={setTagName:function(t){if(!i.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!i.test(t))throw new Error("invalid attribute:"+t);this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},m({},m.prototype)instanceof m||(m=function(t,e){function n(){}for(e in n.prototype=e,n=new n,t)n[e]=t[e];return n}),e.XMLReader=o},function(t,e,n){"use strict";var r,i,o;t.exports=(r={BASE:!0,HEAD:!0,HTML:!0,META:!0,NOFRAME:!0,NOSCRIPT:!0,PARAM:!0,SCRIPT:!0,STYLE:!0,TITLE:!0},i=["A","ABBR","ADDRESS","AREA","ARTICLE","ASIDE","AUDIO","B","BASE","BDI","BDO","BLOCKQUOTE","BODY","BR","BUTTON","CANVAS","CAPTION","CENTER","CITE","CODE","COL","COLGROUP","COMMAND","DATALIST","DD","DEL","DETAILS","DFN","DIV","DL","DT","EM","EMBED","FIELDSET","FIGCAPTION","FIGURE","FONT","FOOTER","FORM","H1","H2","H3","H4","H5","H6","HEAD","HEADER","HGROUP","HR","HTML","I","IFRAME","IMG","INPUT","INS","KBD","LABEL","LEGEND","LI","LINK","MAP","MARK","MATH","MENU","META","METER","NAV","NOBR","NOSCRIPT","OBJECT","OL","OPTION","OPTGROUP","OUTPUT","P","PARAM","PRE","PROGRESS","Q","RP","RT","RUBY","S","SAMP","SCRIPT","SECTION","SELECT","SMALL","SOURCE","SPAN","STRONG","STYLE","SUB","SUMMARY","SUP","SVG","TABLE","TBODY","TD","TEXTAREA","TFOOT","TH","THEAD","TIME","TITLE","TR","TRACK","U","UL","VAR","VIDEO","WBR"],o=function(t){var e={},n=document.body.appendChild(document.createElement(t)),r=window.getComputedStyle(n);return[].forEach.call(r,(function(t){e[t]=r[t]})),document.body.removeChild(n),e},{initializeSerializer:function(){var t={};return[].forEach.call(i,(function(e){r[e]||(t[e]=o(e))})),function(e){var n,i=[],a=void 0,s=void 0,l=void 0;if(e&&e.nodeType===Node.ELEMENT_NODE)return i=[],a=e.querySelectorAll("*"),[].forEach.call(a,(function(e,n){var a;r[e.tagName]||(s=window.getComputedStyle(e),a=(a=e.tagName).toUpperCase(),t[a]||(t[a]=o(a)),l=t[a],i[n]=e.style.cssText,[].forEach.call(s,(function(t){s[t]!==l[t]&&(e.style[t]=s[t])})))})),n=(new XMLSerializer).serializeToString(e),a=[].map.call(a,(function(t,e){return t.style.cssText=i[e],t})),n}}})},function(t,e,n){(function(t,r){var i;!function(o){var a=(t&&t.exports,"object"==typeof r&&r);a.global!==a&&a.window;var s=function(t){this.message=t};(s.prototype=new Error).name="InvalidCharacterError";var l=function(t){throw new s(t)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,h={encode:function(t){t=String(t),/[^\0-\xFF]/.test(t)&&l("The string to be encoded contains characters outside of the Latin1 range.");for(var e,n,r,i,o=t.length%3,a="",s=-1,c=t.length-o;++s>18&63)+u.charAt(i>>12&63)+u.charAt(i>>6&63)+u.charAt(63&i);return 2==o?(e=t.charCodeAt(s)<<8,n=t.charCodeAt(++s),a+=u.charAt((i=e+n)>>10)+u.charAt(i>>4&63)+u.charAt(i<<2&63)+"="):1==o&&(i=t.charCodeAt(s),a+=u.charAt(i>>2)+u.charAt(i<<4&63)+"=="),a},decode:function(t){var e=(t=String(t).replace(c,"")).length;e%4==0&&(e=(t=t.replace(/==?$/,"")).length),(e%4==1||/[^+a-zA-Z0-9/]/.test(t))&&l("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,i=0,o="",a=-1;++a>(-2*i&6)));return o},version:"0.1.0"};void 0===(i=function(){return h}.call(e,n,e,t))||(t.exports=i)}()}).call(this,n(98)(t),n(99))},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 n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};void 0===(r=function(t){var e=n(9).formatDefaultLocale,r=["decimal","thousands","grouping","currency"];return{setDefaultLocale:function(t){if(function(t){return"object"==(void 0===t?"undefined":i(t))&&r.every((function(e){return t.hasOwnProperty(e)}))}(t))return e(t);throw new Error("Please pass in a valid locale object definition")}}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:0;l.select(t).transition().delay(n).attrTween("d",(function(t){var n=o.interpolate(t.outerRadius,e);return function(e){return t.outerRadius=n(e),E(t)}}))}function rt(t){var e=void 0;return t.innerRadius=0,e=o.interpolate({startAngle:0,endAngle:0},t),function(t){return E(e(t))}}function it(t,e){var n=S/5;c.wrapText.call(null,0,n,e,t.node())}return Z.centeredTextFunction=function(t){return arguments.length?(U=t,this):U},Z.colorSchema=function(t){return arguments.length?(H=t,this):H},Z.emptyDataConfig=function(t){return arguments.length?(R=t,this):R},Z.exportChart=function(t,e){u.call(Z,T,t,e)},Z.externalRadius=function(t){return arguments.length?(S=t,this):S},Z.hasHoverAnimation=function(t){return arguments.length?(L=t,this):L},Z.hasFixedHighlightedSlice=function(t){return arguments.length?(j=t,this):j},Z.hasLastHoverSliceHighlighted=function(t){return arguments.length?(D=t,this):D},Z.height=function(t){return arguments.length?(m=t,this):m},Z.highlightSliceById=function(t){return arguments.length?(P=t,this):P},Z.internalRadius=function(t){return arguments.length?(C=t,this):C},Z.isAnimated=function(t){return arguments.length?(A=t,this):A},Z.loadingState=function(t){return arguments.length?(g=t,this):g},Z.margin=function(e){return arguments.length?(t=i({},t,e),this):t},Z.numberFormat=function(t){return arguments.length?(F=t,this):F},Z.on=function(){var t=q.on.apply(q,arguments);return t===q?Z:t},Z.orderingFunction=function(t){return arguments.length?(V=t,this):V},Z.percentageFormat=function(t){return arguments.length?(B=t,this):B},Z.radiusHoverOffset=function(t){return arguments.length?(y=t,this):y},Z.width=function(t){return arguments.length?(n=t,this):n},Z}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e0&&M.select("g.legend-container-group").attr("transform","translate("+j+",0)")):(M.select(".legend-group").selectAll("g").remove(),(C=M.select(".legend-group").selectAll("g.legend-line").data(E)).enter().append("g").classed("legend-line",!0).append("g").classed("legend-entry",!0).attr("data-item",y).attr("transform",(function(t,e){return"translate("+(u+P())+","+(e+1)*(k/(E.length+1))+")"})).merge(C).append("circle").classed("legend-circle",!0).attr("cx",u/2).attr("cy",-5).attr("r",u/2).style("fill",w).style("stroke-width",1),M.select(".legend-group").selectAll("g.legend-line").selectAll("g.legend-entry").append("text").classed("legend-entry-name",!0).text(b).attr("x",P()).style("font-size","12px").style("letter-spacing","0.5px"),m?M.select(".legend-group").selectAll("g.legend-line").selectAll("g.legend-entry").append("text").classed("legend-entry-value",!0).text(x).attr("x",_-40).style("font-size","12px").style("letter-spacing","0.8px").style("text-anchor","end").style("startOffset","100%"):function(){var t=M.select("g.legend-container-group").node().getBoundingClientRect().width,e=n-t,r=e/2-t/2;e>0&&M.select("g.legend-container-group").attr("transform","translate("+r+",0)")}(),M.select(".legend-group").selectAll("g.legend-line").exit().transition().style("opacity",0).remove()),p&&(A(),O(p))}))}function A(){M.select(".legend-group").selectAll("g.legend-entry").classed("is-faded",!1)}function O(t){var e=M.select('[data-item="'+t+'"]');e.nodes().length&&(M.select(".legend-group").selectAll("g.legend-entry").classed("is-faded",!0),e.classed("is-faded",!1))}function P(){return c*u}return T.clearHighlight=function(){A()},T.colorSchema=function(t){return arguments.length?(v=t,this):v},T.height=function(t){return arguments.length?(l=t,this):l},T.highlight=function(t){A(),O(t)},T.highlightEntryById=function(t){return arguments.length?(p=t,this):p},T.isHorizontal=function(t){return arguments.length?(d=t,this):d},T.margin=function(e){return arguments.length?(t=i({},t,e),this):t},T.marginRatio=function(t){return arguments.length?(c=t,this):c},T.markerSize=function(t){return arguments.length?(u=t,this):u},T.numberFormat=function(t){return arguments.length?(h=t,this):h},T.unit=function(t){return arguments.length?(f=t,this):f},T.width=function(t){return arguments.length?(n=t,this):n},T}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(e,["dates"]),i=n.map((function(t){return{date:new Date(t[st]),value:+t[lt]}}));return t.push(o({dates:i},r)),t}),[]),dataByDate:n,dataRange:r}}(l);it=u.dataByTopic,ot=u.dataByDate,at=u.dataRange;var c,m,g,v=J?300:0;L=n-t.left-t.right-v,D=x-t.top-t.bottom,function(){var t=e.min(it,(function(t){var n=t.dates;return e.min(n,Tt)})),n=e.max(it,(function(t){var n=t.dates;return e.max(n,Tt)})),r=e.max(it,(function(t){var n=t.dates;return e.max(n,At)})),i=e.min(it,(function(t){var n=t.dates;return e.min(n,At)})),o=i<0?i:0;I=h.scaleTime().domain([t,n]).rangeRound([0,L]),R=h.scaleLinear().domain([o,Math.abs(r)]).rangeRound([D,0]).nice();var a=(B=h.scaleOrdinal().range(G).domain(it.map(Ot))).range();W=B.domain().reduce((function(t,e,n){return t[e]=a[n],t}),{})}(),function(e){N||(N=d.select(e).append("svg").classed("britechart line-chart",!0),function(){var e=N.append("g").classed("container-group",!0).attr("transform","translate("+t.left+","+t.top+")");e.append("g").classed("x-axis-group",!0).append("g").classed("axis x",!0),e.selectAll(".x-axis-group").append("g").classed("month-axis",!0),e.append("g").classed("y-axis-group",!0).append("g").classed("axis y",!0),e.append("g").classed("grid-lines-group",!0),e.append("g").classed("chart-group",!0),J&&e.append("g").classed("legend-group",!0),e.append("g").classed("metadata-group",!0)}()),N.attr("width",n).attr("height",x)}(this),function(){var e=void 0,i=void 0;if("custom"===X&&"string"==typeof Z)e={tick:q,format:p.timeFormat(Z)},i=null;else{var o=b(ot,n,X,$);e=o.minor,i=o.major,z=r.axisBottom(I).ticks(i.tick).tickSize(0,0).tickFormat(i.format)}F=r.axisBottom(I).ticks(e.tick).tickSize(10,0).tickPadding(5).tickFormat(e.format),H=r.axisLeft(R).ticks(mt).tickSize([0]).tickPadding(5).tickFormat(Lt),function(e,n){N.select(".grid-lines-group").selectAll("line").remove(),("horizontal"===xt||"full"===xt)&&N.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(R.ticks(n)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-U-30).attr("x2",L).attr("y1",(function(t){return R(t)})).attr("y2",(function(t){return R(t)})),"vertical"!==xt&&"full"!==xt||N.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(I.ticks(e)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",D).attr("x1",(function(t){return I(t)})).attr("x2",(function(t){return I(t)})),N.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-U-30).attr("x2",L).attr("y1",x-t.bottom-t.top).attr("y2",x-t.bottom-t.top)}(e.tick,mt)}(),function(){if(N.select(".x-axis-group .axis.x").attr("transform","translate(0, "+D+")").call(F),"custom"!==X&&N.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(D+28)+")").call(z),ct){ht&&N.selectAll(".x-axis-label").remove();var t=L/2,e=D+28+36;ht=N.select(".x-axis-group").append("text").attr("x",t).attr("y",e).attr("text-anchor","middle").attr("class","x-axis-label").text(ct)}if(N.select(".y-axis-group .axis.y").attr("transform","translate("+-U+", 0)").call(H).call(jt),ft){dt&&N.selectAll(".y-axis-label").remove();var n=-pt-U,r=-D/2;dt=N.select(".y-axis-group").append("text").attr("x",r).attr("y",n).attr("text-anchor","middle").attr("transform","rotate(270)").attr("class","y-axis-label").text(ft)}}(),function(){if(at){var t=f.area().curve(S[rt]).x((function(t){var e=t.date;return I(e)})).y0((function(t){var e=t.min;return R(e)})).y1((function(t){var e=t.max;return R(e)}));N.select(".chart-group").append("g").attr("class","area").append("path").data([at]).attr("class","area").attr("d",t)}}(),c=void 0,m=void 0,m=f.line().curve(S[rt]).x((function(t){var e=t.date;return I(e)})).y((function(t){var e=t.value;return R(e)})),c=N.select(".chart-group").selectAll(".line").data(it,Ot),j=c.enter().append("g").attr("class","topic").append("path").attr("class","line").merge(c).attr("id",(function(t){return t.topic})).attr("d",(function(t){var e=t.dates;return m(e)})).style("stroke",(function(t){return e=t.topic,B(e);var e})).style("opacity",(function(t){return t.hasOwnProperty("show")?t.show?1:0:1})).style("stroke-dasharray",(function(t){return!!t.hasOwnProperty("show")&&!!t.dashed&&[.5,4]})),c.exit().remove(),function(){if(J){var e=Number.parseInt(L)+Number.parseInt(t.right);Ct=N.selectAll(".legend-group").append("g").attr("transform","translate("+e+", 0)").classed("tooltip-text",!0),kt=Ct.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),Ct.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),_t=Ct.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");var n=void 0;n=it[0].hasOwnProperty("show")?it.filter((function(t){return t.show})):it;for(var r=0;rP&&(gt||(gt=N.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",x).attr("height",D).attr("width",L).attr("fill","rgba(0, 0, 0, 0)").style("display","none")),vt||(vt=N.select(".metadata-group").append("g").attr("class","hover-marker vertical-marker-container").attr("transform","translate(9999, 0)"),yt=vt.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",D).attr("x2",0).attr("y2",0)),N.on("mouseover",(function(t){!function(t,e){gt.style("display","block"),yt.classed("bc-is-active",!0),Pt.call("customMouseOver",t,e,d.mouse(t))}(this,t)})).on("mouseout",(function(t){!function(t,e){gt.style("display","none"),yt.classed("bc-is-active",!1),Pt.call("customMouseOut",t,e,d.mouse(t))}(this,t)})).on("mousemove",(function(e){var n,r,o,a,s,l,u;n=this,r=d.mouse(n),a=(o=i(r,2))[0],s=o[1],u=void 0,(l=Rt(a+-t.left))&&(zt(u=I(new Date(l.date))),Ft(l),Pt.call("customMouseMove",n,l,W,u,s))}))),K&&function(){N.select(".chart-group").selectAll(".data-points-container").remove();var t=j.nodes().reduce((function(t,e){return t[e.id]=e,t}),{});ot.reduce((function(e,n){var r=n.topics.map((function(e){return{topic:e,node:t[e.name]}}));return[].concat(a(e),a(r))}),[])}(),N.on("touchmove",(function(t){!function(t,e){Pt.call("customTouchMove",t,e,d.touch(t))}(this,t)})),tt&&(g=Rt(L))&&(zt(I(new Date(g.date))),Ft(g))}))}function jt(t){t.selectAll(".tick text").attr("transform","translate(0, -7)")}function Lt(t){var e=void 0;return e=O(t)?T:A,bt&&(e=c.format(bt)),e(t)}function Dt(t){return new Date(t).toLocaleDateString()}function It(t){var e,n,r=void 0,i=void 0;e=t.topicName,n=t.sum.toLocaleString(),i=_t.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",Et).style("fill","#000000").style("font-size","12px").text(e).call(Bt,200,12,-25),r=_t.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",Et).style("fill","#000000").style("font-size","12px").text(n),Mt=i.node().getBBox().height?i.node().getBBox().height:Mt,St=r.node().getBBox().width?r.node().getBBox().width:St,r.attr("x",300-St-75),_t.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",Et+8).attr("r",5).style("fill",W[t.topic]).style("stroke-width",1),Et+=Mt+7}function Rt(t){var n,r,i,o=I.invert(t),a=(0,e.bisector(Tt).left)(ot,o,1),s=ot[a],l=ot[a-1],u=void 0;return l&&s?(n=o,r=s,i=l,u=new Date(n).getTime()-new Date(r.date).getTime()>new Date(i.date).getTime()-new Date(n).getTime()?r:i):u=s,u}function Bt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.each((function(){var i,o,a,s,l,u,c;for(i=(t=d.select(this)).text().split(/\s+/).reverse(),a=[],s=0,l=t.attr("y"),u=parseFloat(t.attr("dy")),c=t.text(null).append("tspan").attr("x",r).attr("y",l).attr("dy",u+"em");o=i.pop();)a.push(o),c.text(a.join(" ")),m.getTextWidth(a.join(" "),n,"Karla, sans-serif")>e&&(a.pop(),c.text(a.join(" ")),s<4&&(a=[o],c=t.append("tspan").attr("x",r).attr("y",l).attr("dy",1.2*++s+u+"em").text(o)))}))}function Ft(t){vt.selectAll(".circle-container").remove();var e=j.nodes().reduce((function(t,e){return t[e.id]=e,t}),{}),n=it.filter((function(t){return!t.show})).map((function(t){return t.topicName})),r=t.topics.map((function(t){return{topic:t,node:e[t.name]}})).filter((function(t){return!!t.topic})).sort((function(t,e){return W[t.topic.name]s.x+r;){var u=(o+a)/2;if(t<(s=e.getPointAtLength(u)).x?a=u:o=u,100<(l+=1))break}return wt[i]=s.y,wt[i]}(I(new Date(t.topics[i].date)),a,e.name);o.attr("transform","translate( -12, "+s+" )")}))}function zt(t){vt.attr("transform","translate("+t+",0)")}return Nt.aspectRatio=function(t){return arguments.length?(M=t,this):M},Nt.xAxisLabel=function(t){return arguments.length?(ct=t,this):ct},Nt.yAxisLabel=function(t){return arguments.length?(ft=t,this):ft},Nt.colorSchema=function(t){return arguments.length?(G=t,this):G},Nt.dateLabel=function(t){return arguments.length?(st=t,this):st},Nt.xAxisFormat=function(t){return arguments.length?(X=t,this):X},Nt.xAxisCustomFormat=function(t){return arguments.length?(Z=t,this):Z},Nt.xTicks=function(t){return arguments.length?(q=t,this):q},Nt.grid=function(t){return arguments.length?(xt=t,this):xt},Nt.height=function(t){return arguments.length?(M&&(n=Math.ceil(t/M)),x=t,this):x},Nt.initializeVerticalMarker=function(t){return arguments.length?(tt=t,this):tt},Nt.isAnimated=function(t){return arguments.length?(Q=t,this):Q},Nt.isPrintMode=function(t){return arguments.length?(J=t,this):J},Nt.loadingState=function(t){return arguments.length?(C=t,this):C},Nt.margin=function(e){return arguments.length?(t=o({},t,e),this):t},Nt.numberFormat=function(t){return arguments.length?(bt=t,this):bt},Nt.lineCurve=function(t){return arguments.length?(rt=t,this):rt},Nt.shouldShowAllDataPoints=function(t){return arguments.length?(K=t,this):K},Nt.tooltipThreshold=function(t){return arguments.length?(P=t,this):P},Nt.topicLabel=function(t){return arguments.length?(ut=t,this):ut},Nt.valueLabel=function(t){return arguments.length?(lt=t,this):lt},Nt.yAxisLabelPadding=function(t){return arguments.length?(pt=t,this):pt},Nt.yTicks=function(t){return arguments.length?(mt=t,this):mt},Nt.width=function(t){return arguments.length?(M&&(x=Math.ceil(t*M)),n=t,this):n},Nt.locale=function(t){return arguments.length?($=t,this):$},Nt.exportChart=function(t,e){g.call(Nt,N,t,e)},Nt.on=function(){var t=Pt.on.apply(Pt,arguments);return t===Pt?Nt:t},Nt.axisTimeCombinations=w,Nt}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e0?"+":"")+c.format(I)(e)+"%"},dt=function(t){var e=t.parentCount,n=t.value;return e?_(e)+D:_(n)+D},pt=function(t){var e=t.name;return k(e)+B*(3/8)};function mt(i){i.each((function(i){var a=t.left+t.right;S=v>600?v-a-1.2*Y-100:v-a,C=y-t.top-t.bottom;var l=function(t){var e=t.reduce((function(t,e){return e.name=String(e[at]),e.pctOfSet=+e.pctOfSet,e.pctChange=+e[st],e.value=+e[it],e.width=+e.width,[].concat(o(t),[e])}),[]),n=e.slice();return{data:e,dataZeroed:n}}(i);x=l.data,w=l.dataZeroed,function(){yt=function(t,n){var r=t.length,i=e.sum(t,n),o=xt(t),a=(C-(r-1)*H*C/r-2*G*C/r)/i;if(0===o.length)return a;var s=h.scalePow().exponent(1/o.length).domain([0,100]).range([0,10*o.length])(r);return a-(lt?2*s:s)}(x,gt),bt=function(n,r,i){var o=vt(n,r,i),a=n.length,s=function(t,e){var n=[];return t.forEach((function(t){var r=e.map((function(e,n){return e.name===t||e.parent===t?n:null})).filter((function(t){return t}));n.push(r)})),n}(xt(n),n);return function(l,u){var c=H*C/a,h=G*C/a+e.sum(n.slice(0,u),r)*i+u*c+o(u)/2;return s.forEach((function(t){t[0]>1&&u>=t[0]&&(h+=lt?20:U),u>t[t.length-1]&&(h+=lt?20:U)})),h+t.top}}(x,gt,yt),vt(x,gt,yt);var n=Math.min(P*r.max(x,ht));_=h.scaleLinear().domain([0,n]).rangeRound([0,S]);var i=x.map(bt);k=h.scaleOrdinal().domain(x.map(ct)).range(i),M=x.map((function(t){return t})).map((function(t,e){return{name:t.name,color:E[e%E.length]}})),T=function(t){return M.filter((function(e){return e.name===t}))[0].color}}(),W=s.axisBottom(_).ticks(O,N).tickSizeInner([-C]),V=s.axisLeft(k),function(e){n=e,q||((q=f.select(e).append("svg").classed("britechart row-chart",!0)).append("rect").classed("export-wrapper",!0).attr("width",v).attr("height",y).attr("fill","white"),function(){var e=q.append("g").classed("container-group",!0).attr("transform","translate("+(t.left+Y)+", "+t.top+")");e.append("g").classed("chart-group",!0),e.append("g").classed("title-group",!0),e.append("g").classed("x-axis-group axis",!0),e.append("g").attr("transform","translate("+-1*Y+", 0)").classed("y-axis-group axis",!0),e.append("g").classed("metadata-group",!0)}()),q.attr("width",v).attr("height",y)}(this),function(){if(x&&x[0]){var e=x[0].parentCount?_(x[0].parentCount):1;e=e>0?e:1;var n=x[0].parentCount;q.select(".title-group").selectAll("g").remove(),q.select(".title-group").selectAll("text").remove();var r=window.navigator.userAgent,i=r.indexOf("Edge")>-1||r.indexOf("MSIE")>-1;if(tt&&n){for(var o=tt+" "+n.toLocaleString(),a=d.getTextWidth(o,F,"sans-serif"),s=lt?100:40,l=t.left+e-s-0,u=!1;a>l;)u=!0,o=(tt=tt.slice(0,-1))+"... "+n.toLocaleString(),a=d.getTextWidth(o,F,"sans-serif");var c=q.select(".title-group").append("text").text(null).attr("y",10);tt=u?tt+"...":tt;var h=c.append("tspan").text(tt).attr("font-size",F);c.append("tspan").text(n.toLocaleString()).classed("count",!0).attr("dx",5).attr("font-size",F).attr("font-weight",600);var f=h.node().getBoundingClientRect().width+10;lt&&i&&(f+=40);var p=e-f-5;c.attr("x",p)}if(nt){var m=nt.toLocaleString(),g=et+" "+m,y=d.getTextWidth(g,F,"Karla, sans-serif"),b=lt&&i?10:0,w=i?5:0,C=q.select(".title-group").append("text").text(null).attr("x",S-y-b-10-w-5).attr("y",10);C.append("tspan").text(et).attr("font-size",F),C.append("tspan").text(m).classed("count",!0).attr("dx",5).attr("font-size",F).attr("font-weight",600);var k=v>600?S-C.node().getBoundingClientRect().width-10-b:S-C.node().getBoundingClientRect().width-10;C.attr("x",k)}rt&&v>600&&q.select(".title-group").append("text").text("Change in past "+rt).attr("font-size",F).attr("x",S+5).attr("y",10)}}(),function(){var e=void 0;Z?(Et(e=q.select(".chart-group").selectAll(".row").data(w)),x&&x[0]&&x[0].parentCount&&q.select(".chart-group").append("line").classed("focus-separator",!0).attr("y1",-10).attr("x1",_(x[0].parentCount)).attr("y2",C+t.top+t.bottom).attr("x2",_(x[0].parentCount)).style("stroke","#e7e8e9").style("stroke-width",1),q.select(".chart-group").append("line").classed("pct-separator",!0).attr("y1",-10).attr("x1",S).attr("y2",C).attr("x2",S).style("stroke","#000").style("stroke-width",1),function(t){t.attr("x",0).attr("y",(function(t,e){return k(t.name)-yt*t.width/2})).attr("height",(function(t){return yt*t.width})).attr("fill",(function(t){return T(t.name)})).attr("width",0).transition().duration(800).ease($).attr("width",(function(t){var e=t.value;return _(e)}))}(e=q.select(".chart-group").selectAll(".row rect.pct").data(x))):Et(e=q.select(".chart-group").selectAll("rect").data(x)),e.exit().transition().style("opacity",0).remove()}(),function(){var e=t.left;q.select(".x-axis-group.axis").attr("transform","translate(0, "+C+")").call(W),q.select(".y-axis-group.axis").call(V),lt||(q.selectAll(".y-axis-group.axis .tick").call(_t),e=t.left-Y-30),q.selectAll(".y-axis-group.axis .tick text").classed("child",(function(t){return x.find((function(e){return e.name===t})).parent})).classed("print-mode",lt).on("mouseover",Mt).on("mouseout",Tt).call(Ct,e).selectAll("tspan").attr("font-size",St),q.selectAll(".y-axis-group.axis .tick text").classed("hidden",(function(t){return x.find((function(e){return e.name===t})).splitterText})),lt||q.selectAll(".y-axis-group.axis .tick").classed("expandable",(function(t){return function(t,e){return t.find((function(t){return t.name===e})).hasChildren}(x,t)})).call(kt)}(),function(){var t=q.selectAll(".row-wrapper"),e=Number(t.size())-1,n=q.select(".row_"+e).select(".bg-hover");if(n._groups[0]&&n._groups[0][0]){var r=Number(n.attr("y"))+Number(n.attr("height"))+40;q.select("line.pct-separator").attr("y2",r),q.select(".export-wrapper").attr("height",r),q.attr("height",r)}}()}))}function gt(t){return+t.width}function vt(t,e,n){return function(r){return e(t[r])*n}}var yt=void 0,bt=void 0;function xt(t){return[].concat(o(new Set(t.filter((function(t){return t.parent&&!1===t.isParent})).map((function(t){return t.parent})))))}function wt(t){return x.find((function(e){return(e.name===t.name||e.name===t)&&e.isParent}))}function St(t){return wt(t)?B+"px":F+"px"}function Ct(t,e){if(ot){var n=X>1?.8:1.2;d.wrapTextWithEllipses(t,e,0,X,n)}}function _t(e){e.each((function(){var n=(e=f.select(this)).node().getBBox().height/2,r=e.append("svg").attr("class",(function(t){var e;return(e=t,x.find((function(t){return t.name===e}))).splitterText?"hidden":"visibility visibility-"+At(t)})).attr("x",30-t.left).attr("y",-n).attr("width","300").attr("height","300").attr("viewBox","0 0 600 600").attr("fill","none").attr("opacity",0);r.append("rect").attr("x",-10).attr("y",-10).attr("height","50").attr("width","50").attr("fill","#d6e8fa").on("mouseover",Mt).on("mouseout",Tt),r.append("path").attr("d","M 10,10 L 30,30 M 30,10 L 10,30").attr("stroke","#0072ce").attr("stroke-width","2")}))}function kt(t){t.each((function(){f.select(this).selectAll("polygon").remove(),(t=f.select(this)).append("polygon").attr("transform",(function(t){return x.find((function(e){return e.parent===t}))?"translate("+(Y-5)+", 2.5) rotate(180)":"translate("+(Y-15)+", -2.5)"})).attr("points",(function(t){return"0,0 10,0 5,5"})).style("fill",(function(t){return"#0072ce"})).style("fill-opacity",(function(t){return x.find((function(e){return e.name===t&&e.hasChildren}))?1:0}))}))}function Et(e){var n=e.enter().append("g").attr("class",(function(t,e){return"row_"+e+" row-wrapper"})),r=n.filter((function(t){return t.splitterText}));n.append("rect").attr("class","bg").on("click",(function(t){Ot(this,t,S,C)})).attr("x",0).attr("y",(function(t,e){return k(t.name)-yt*t.width/2})).attr("height",(function(t){return yt*t.width})).attr("width",S).attr("fill",(function(t){return t.splitterText?"#fff":K})),n.append("rect").attr("class","bg-hover").attr("x",-t.left).attr("y",(function(t,e){return k(t.name)-yt*t.width/2})).attr("width",v).attr("height",(function(t){return yt*t.width})).on("mouseover",Mt).on("mouseout",Tt).attr("fill-opacity",0).attr("fill",(function(t){return t.splitterText?"#fff":"#d6e8fa"})),n.append("rect").attr("class","focus-bar").attr("x",0).attr("y",(function(t,e){return k(t.name)-yt*t.width/2})).attr("height",(function(t){return yt*t.width})).attr("width",(function(t){var e=t.parentCount;return e?_(e):0})).attr("fill","#e7e8e9").attr("fill-opacity",(function(t){return t.parent?.5:1})),n.append("rect").attr("class","pct").on("mouseover",(function(t,e,n){!function(t,e,n,r,i){e.splitterText||(ut.call("customMouseOver",t,e,f.mouse(t),[r,i]),Mt(e),f.select(t).attr("fill",(function(t){var e=t.name;return e?l.color(T(e)).darker():""})))}(this,t,0,S,C)})).on("mousemove",(function(t){!function(t,e,n,r){e.splitterText||ut.call("customMouseMove",t,e,f.mouse(t),[n,r])}(this,t,S,C)})).on("mouseout",(function(t,e,n){!function(t,e,n,r,i){e.splitterText||(ut.call("customMouseOut",t,e,f.mouse(t),[r,i]),Tt(e),n.forEach((function(t){f.select(t).attr("fill",(function(t){var e=t.name;return e?T(e):""}))})))}(this,t,n,S,C)})).on("click",(function(t){Ot(this,t,S,C)})).attr("x",0).attr("y",(function(t,e){return k(t.name)-yt*t.width/2})).attr("height",(function(t){return yt*t.width})).attr("width",(function(t){var e=t.value;return _(e)})).attr("fill",(function(t){return T(t.name)})).attr("fill-opacity",(function(t){return t.parent?.5:1}));var i=f.select(".chart-group .bg");if(j&&i.node()){var o=i.node().getBBox().x||i.node().getBoundingClientRect().width;n.append("text").attr("class","percentage-label").classed("child",(function(t){return!wt(t)})).attr("x",dt).attr("y",pt).text((function(t){return function(t,e){var n=t.isNotFilter,r=t.pctOfSet,i=t.parent,o=t.value,a=t.isParent;if(!t.splitterText){var s="";if(n)return"";r&&!i&&v>600&&(s=" | "+r+"%"),1===Number(o)&&(R=R.replace(/s$/,""));var l=c.format(I)(o)+" "+R+s,u=a?B:F,h=d.getTextWidth(l,u,"sans-serif")+10,f=_(o);return h>f&&h>e-f?c.format(I)(o):l}}(t,o)})).attr("font-size",St).attr("fill",(function(t,e){var r=_(t.value),i=n.selectAll("text")._groups[e][0].getComputedTextLength()+10;return o>0&&o-r0&&o-r600){var s=n.append("g").attr("transform","translate("+(S+10)+", 0)").attr("class","change-label-group");s.append("text").attr("y",pt).attr("font-size",St).attr("font-weight","600").style("fill",(function(t){return 0===t.pctChange||isNaN(t.pctChange)?"#919395":t.pctChange>0?J:Q})).text(ft),s.append("polygon").attr("transform",(function(t){var e=pt(t);return wt(t)?t.pctChange<0?"translate(65, "+(e+5)+") rotate(180) scale(1.5)":"translate(50, "+(e-15)+") scale(1.5)":t.pctChange<0?"translate(50, "+(e+5)+") rotate(180)":"translate(40, "+(e-10)+")"})).attr("points",(function(t){return"2,8 2,13 8,13 8,8 10,8 5,0 0,8"})).style("fill",(function(t){return t.pctChange>0?J:Q})).attr("class",(function(t){return t.pctChange<0?"down":"up"})).attr("fill-opacity",(function(t){var e=t.pctChange;return isNaN(e)||0===e?0:1}))}}function Mt(t,e){if(!t.splitterText){var r=e;"string"!=typeof t.name&&"string"!=typeof t||(r=t.name?At(t.name):At(t)),f.select(n).select(".tick svg.visibility-"+r).attr("opacity",1),f.select(n).select("g.row_"+r+" .bg-hover").attr("fill-opacity",1)}}function Tt(t,e){if(!t.splitterText){var r=e;"string"!=typeof t.name&&"string"!=typeof t||(r=t.name?At(t.name):At(t)),f.select(n).select(".tick svg.visibility-"+r).attr("opacity",0),f.select(n).select("g.row_"+r+" .bg-hover").attr("fill-opacity",0)}}function At(t){return x.findIndex((function(e){return e.name===t}))}function Ot(t,e,n,r){ut.call("customClick",t,e,f.mouse(t),[n,r])}return mt.backgroundColor=function(t){return arguments.length?(K=t,this):K},mt.upArrowColor=function(t){return arguments.length?(J=t,this):J},mt.downArrowColor=function(t){return arguments.length?(Q=t,this):Q},mt.colorSchema=function(t){return arguments.length?(E=t,this):E},mt.enableLabels=function(t){return arguments.length?(j=t,this):j},mt.enableYAxisRight=function(t){return arguments.length?(L=t,this):L},mt.exportChart=function(t,e){p.call(mt,q,t,e)},mt.height=function(t){return arguments.length?(y=t,this):y},mt.isAnimated=function(t){return arguments.length?(Z=t,this):Z},mt.labelsMargin=function(t){return arguments.length?(D=t,this):D},mt.labelsNumberFormat=function(t){return arguments.length?(I=t,this):I},mt.labelsSuffix=function(t){return arguments.length?(R=t,this):R},mt.labelsSize=function(t){return arguments.length?(B=t,this):B},mt.labelsSizeChild=function(t){return arguments.length?(F=t,this):F},mt.pctChangeLabelSize=function(t){return arguments.length?(z=t,this):z},mt.loadingState=function(t){return arguments.length?(b=t,this):b},mt.margin=function(e){return arguments.length?(t=i({},t,e),this):t},mt.nameLabel=function(t){return arguments.length?(at=t,this):at},mt.numberFormat=function(t){return arguments.length?(N=t,this):N},mt.on=function(){var t=ut.on.apply(ut,arguments);return t===ut?mt:t},mt.percentageAxisToMaxRatio=function(t){return arguments.length?(P=t,this):P},mt.isPrintMode=function(t){return arguments.length?(lt=t,this):lt},mt.outerPadding=function(t){return arguments.length?(G=t,this):G},mt.padding=function(t){return arguments.length?(H=t,this):H},mt.paddingBetweenGroups=function(t){return arguments.length?(U=t,this):U},mt.pctChangeLabel=function(t){return arguments.length?(st=t,this):st},mt.yAxisLineWrapLimit=function(t){return arguments.length?(X=t,this):X},mt.labelsFocusTitle=function(t){return arguments.length?(tt=t,this):tt},mt.labelsTotalCount=function(t){return arguments.length?(nt=t,this):nt},mt.labelsTotalText=function(t){return arguments.length?(et=t,this):et},mt.labelsInterval=function(t){return arguments.length?(rt=t,this):rt},mt.valueLabel=function(t){return arguments.length?(it=t,this):it},mt.width=function(t){return arguments.length?(v=t,this):v},mt.xTicks=function(t){return arguments.length?(O=t,this):O},mt.yAxisPaddingBetweenChart=function(t){return arguments.length?(Y=t,this):Y},mt.yTicks=function(t){return arguments.length?(A=t,this):A},mt.wrapLabels=function(t){return arguments.length?(ot=t,this):ot},mt}}.call(e,n,e,t))||(t.exports=r)},function(t,e){t.exports=r},function(t,e,n){"use strict";var r,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};void 0===(r=function(t){var e=n(11),r=n(9),a=n(2),s=(n(8),n(28)),l=n(35).axisTimeCombinations,u=n(24),c=u.formatIntegerValue,h=u.formatDecimalValue,f=u.isInteger,d=n(26).getTextWidth;return function(){var t=2,n=2,u="Tooltip title",p=!0,m=void 0,g={y:-55,x:0},v=void 0,y=void 0,b=void 0,x=void 0,w=48,S=0,C=37,_=void 0,k=void 0,E=e.easeQuadInOut,M=void 0,T="date",A="value",O="name",P="topics",N=l.DAY_MONTH,j=null,L=null,D=[],I=null,R=null,B=s.timeFormat("%b %d, %Y"),F=s.timeFormat("%b %d, %I %p"),z=void 0,H=void 0;function U(e){e.each((function(e){!function(e){H||((H=a.select(e).append("g").classed("britechart britechart-tooltip",!0).style("visibility","hidden")).append("g").classed("tooltip-container-group select-disable",!0).attr("transform","translate( "+n+", "+t+")").append("g").classed("tooltip-group",!0),v=H.selectAll(".tooltip-group").append("g").classed("tooltip-text",!0),m=v.append("rect").classed("tooltip-text-container",!0).attr("x",-54.5).attr("y",0).attr("width",250).attr("height",w).attr("rx",3).attr("ry",3).style("fill","#FFFFFF").style("stroke","#D2D6DF").style("stroke-width",1),x=v.append("text").classed("tooltip-title",!0).attr("x",-46.5).attr("dy",".35em").attr("y",16).style("fill","#6D717A"),y=v.append("line").classed("tooltip-divider",!0).attr("x1",-46.5).attr("x2",265).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),b=v.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35")),H.transition().attr("width",250).attr("height",45),U.hide()}(this)}))}function G(t){var e=t[A];return t.missingValue?"-":function(t){if(null!==R)return R(t);var e=h;return t?(null!==I?e=r.format(I):f(t)&&(e=c),e(t)):0}(e).toString()}function W(t){var e,n,r=t[O],i=void 0,o=void 0;e=t.topicName||r,n=G(t),o=b.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",S).attr("y",C).style("fill","#000000").text(e).call(X,170,-25),i=b.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",S).attr("y",C).style("fill","#000000").text(n),_=o.node().getBBox().height?o.node().getBBox().height:_,w+=_+5,k=i.node().getBBox().width?i.node().getBBox().width:k,i.attr("x",250-k-10-62.5),b.append("circle").classed("tooltip-circle",!0).attr("cx",-39.5).attr("cy",C+8).attr("r",5).style("fill",M[r]).style("stroke-width",1),C+=_+7}function V(t,e,n){var r,i,a=(i=(r=o([e,n],2))[0],r[1],[i-250<0?65:-205,g.y]),s=o(a,2),l=s[0],u=s[1];m.attr("width",250).attr("height",w+10),v.transition().duration(100).ease(E).attr("transform","translate("+l+", "+u+")"),y.attr("x2",190)}function Y(t){var e=u,n=function(t){var e=j||N,n=null,r={month:"short",day:"numeric"};return e===l.DAY_MONTH||e===l.MONTH_YEAR?(n=B,r.year="numeric"):e===l.HOUR_DAY||e===l.MINUTE_HOUR?(n=F,r.hour="numeric"):e===l.CUSTOM&&"string"==typeof L&&(n=s.timeFormat(L)),z&&"undefined"!=typeof Intl&&"object"===("undefined"==typeof Intl?"undefined":i(Intl))&&Intl.DateTimeFormat?Intl.DateTimeFormat(z,r).format(t):n(t)}(new Date(t[T]));e.length?p&&(e=e+" - "+n):e=n,x.text(e)}function X(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t.each((function(){var r,i,o,s,l,u,c;for(r=(t=a.select(this)).text().split(/\s+/).reverse(),o=[],s=0,l=t.attr("y"),u=parseFloat(t.attr("dy")),c=t.text(null).append("tspan").attr("x",n).attr("y",l).attr("dy",u+"em");i=r.pop();)o.push(i),c.text(o.join(" ")),d(o.join(" "),16,"Karla, sans-serif")>e&&(o.pop(),c.text(o.join(" ")),s<2&&(o=[i],c=t.append("tspan").attr("x",n).attr("y",l).attr("dy",1.2*++s+u+"em").text(i)))}))}function q(t){var e=t[P];D.length?e=function(t){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:D).map((function(e){return t.filter((function(t){return t.name===e}))[0]}))}(e):e.length&&e[0].name&&(e=function(t){return t.map((function(t){return t})).sort((function(t,e){return t.name>e.name?1:t.name===e.name?0:-1}))}(e)),b.selectAll("text").remove(),b.selectAll("circle").remove(),Y(t),w=48,C=37,S=0,e.forEach(W)}function Z(t,e,n){q(t),V(0,e,n)}return U.axisTimeCombinations=l,U.dateFormat=function(t){return arguments.length?(j=t,this):j||N},U.dateCustomFormat=function(t){return arguments.length?(L=t,this):L},U.dateLabel=function(t){return arguments.length?(T=t,this):T},U.hide=function(){return H.style("visibility","hidden"),this},U.locale=function(t){return arguments.length?(z=t,this):z},U.nameLabel=function(t){return arguments.length?(O=t,this):O},U.numberFormat=function(t){return arguments.length?(I=t,this):I},U.valueFormatter=function(t){return arguments.length?(R=t,this):R},U.shouldShowDateInTitle=function(t){return arguments.length?(p=t,this):p},U.show=function(){return H.style("visibility","visible"),this},U.title=function(t){return arguments.length?(u=t,this):u},U.tooltipOffset=function(t){return arguments.length?(g=t,this):g},U.topicsOrder=function(t){return arguments.length?(D=t,this):D},U.topicLabel=function(t){return arguments.length?(P=t,this):P},U.update=function(t,e,n){return M=e,Z(t,n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null),this},U.valueLabel=function(t){return arguments.length?(A=t,this):A},U}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(i)throw o}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};void 0===(r=function(t){var e=n(0),r=n(11),o=n(9),a=n(2);return n(8),function(){var t=12,n=12,s=12,l=12,u="",c="value",h="name",f=r.easeQuadInOut,d=void 0,p=void 0,m=0,g=20,v=".2f",y=function(t){return o.format(v)(t)},b=void 0,x=void 0,w=void 0;function S(e){e.each((function(){b=100-l-n,x=100-t-s,function(e){w||(w=a.select(e).append("g").classed("britechart britechart-mini-tooltip",!0)).append("g").classed("tooltip-container-group",!0).attr("transform","translate( "+l+", "+t+")").append("g").classed("tooltip-group",!0),w.transition().attr("width",100).attr("height",100),S.hide()}(this),p=w.selectAll(".tooltip-group").append("g").classed("tooltip-text select-disable",!0),d=p.append("rect").classed("tooltip-background",!0).attr("width",100).attr("height",100).attr("rx",1).attr("ry",1).attr("y",-t).attr("x",-l).style("fill","#43484e").style("stroke","#43484e").style("stroke-width",1).style("pointer-events","none").style("opacity",.9)}))}function C(){for(var t=arguments.length,n=Array(t),r=0;r0}(h,a)?a+g:a-b-g-n,function(e,n){return e-t-s-x-n>0}(f,u)?u+m:u-x-m-s]}function k(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t[c]||"",n=t[h]||"",r=21,i=22*1.18,o="1em",a=0,s=void 0,l=void 0,f=void 0;p.selectAll("text").remove(),u&&(f=p.append("text").classed("mini-tooltip-title",!0).attr("dy",o).attr("y",0).style("fill","#43484e").style("font-size",14).text(u),a=r+a),n&&(l=p.append("text").classed("mini-tooltip-name",!0).attr("dy",o).attr("y",a||0).style("fill","#ffffff").style("font-size",14).text(n),a=r+a),e&&(s=p.append("text").classed("mini-tooltip-value",!0).attr("dy",o).attr("y",a||0).style("fill","#ffffff").style("font-size",22).style("font-weight",200).text(y(e)),a=i+a),b=C(l,f,s),x=a}function E(e,r,o){var a,u,c,h;k(e),a=_(r,o),c=(u=i(a,2))[0],h=u[1],w.transition().duration(100).ease(f).attr("height",x+t+s).attr("width",b+l+n).attr("transform","translate("+c+","+h+")"),d.attr("height",x+t+s).attr("width",b+l+n)}return S.hide=function(){return w.style("visibility","hidden"),this},S.nameLabel=function(t){return arguments.length?(h=t,this):h},S.numberFormat=function(t){return arguments.length?(v=t,this):v},S.valueFormatter=function(t){return arguments.length?(y=t,this):y},S.show=function(){var t;return k(t),w.style("visibility","visible"),this},S.title=function(t){return arguments.length?(u=t,this):u},S.update=function(t,e,n){return E(t,e,n),this},S.valueLabel=function(t){return arguments.length?(c=t,this):c},S}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;et[n]?-1:t[e]===t[n]?0:1})),n=e.indexOf("Other");if(n>=0){var r=e.splice(n,1);e=e.concat(r)}return e}(e);var n=f.stack().keys(K).order(f.stackOrderNone).offset(f.stackOffsetNone);at=n(kt),it=n(_t)}(),v=jt?Nt.maxY:(y=D(St.map((function(t){return t.name}))),e.max(_t,(function(t){var n=y.map((function(e){return t[e]}));return e.sum(n)}))),M=h.scaleTime().domain(e.extent(Ct,(function(t){return t.date}))).rangeRound([0,xt]),R=h.scaleLinear().domain([0,v]).rangeRound([wt,0]).nice(),Z=K.reduce((function(t,e,n){return m({},t,s({},e,W[n]))}),{}),w=D(St.map((function(t){return t.name}))),C={},w.forEach((function(t){var e=St.find((function(e){return e.name===t}));e.hasOwnProperty("show")?C[t]=e.show:C[t]=!0})),$=C,function(e){bt||((bt=d.select(e).append("svg").classed("britechart stacked-area",!0)).append("rect").classed("export-wrapper",!0).attr("width",n).attr("height",x).attr("fill","white"),function(){var e=bt.append("g").classed("container-group",!0).attr("transform","translate("+t.left+","+t.top+")");e.append("g").classed("x-axis-group",!0).append("g").classed("x axis",!0),e.selectAll(".x-axis-group").append("g").classed("month-axis",!0),e.append("g").classed("y-axis-group axis",!0),e.append("g").classed("grid-lines-group",!0),e.append("g").classed("y-axis-label",!0),e.append("g").classed("chart-group",!0),gt&&e.append("g").classed("legend-group",!0),e.append("g").classed("metadata-group",!0)}()),bt.attr("width",n).attr("height",x)}(this),function(){var e=void 0,i=void 0;if("custom"===J&&"string"==typeof et)e={tick:tt,format:p.timeFormat(et)},i=null;else{var o=b(Ct,n,J,nt);e=o.minor,i=o.major,I=r.axisBottom(M).ticks(i.tick).tickSize(0,0).tickFormat(i.format)}P=r.axisBottom(M).ticks(e.tick).tickSize(10,0).tickPadding(5).tickFormat(e.format),B=r.axisRight(R).ticks(z).tickSize([0]).tickPadding(5).tickFormat(Vt),function(e,n){bt.select(".grid-lines-group").selectAll("line").remove(),("horizontal"===Et||"full"===Et)&&bt.select(".grid-lines-group").selectAll("line.horizontal-grid-line").data(R.ticks(n)).enter().append("line").attr("class","horizontal-grid-line").attr("x1",-Tt-30).attr("x2",xt).attr("y1",(function(t){return R(t)})).attr("y2",(function(t){return R(t)})),"vertical"!==Et&&"full"!==Et||bt.select(".grid-lines-group").selectAll("line.vertical-grid-line").data(M.ticks(e)).enter().append("line").attr("class","vertical-grid-line").attr("y1",0).attr("y2",wt).attr("x1",(function(t){return M(t)})).attr("x2",(function(t){return M(t)})),bt.select(".grid-lines-group").selectAll("line.extended-x-line").data([0]).enter().append("line").attr("class","extended-x-line").attr("x1",-Tt-30).attr("x2",xt).attr("y1",x-t.bottom-t.top).attr("y2",x-t.bottom-t.top)}(e.tick,z)}(),bt.select(".x-axis-group .axis.x").attr("transform","translate( 0, "+wt+" )").call(P),"custom"!==J&&bt.select(".x-axis-group .month-axis").attr("transform","translate(0, "+(wt+30)+")").call(I),bt.select(".y-axis-group.axis").attr("transform","translate( "+-Tt+", 0)").call(B).call(Yt),H&&(U&&bt.selectAll(".y-axis-label-text").remove(),U=bt.select(".y-axis-label").append("text").classed("y-axis-label-text",!0).attr("x",-wt/2).attr("y",G).attr("text-anchor","middle").attr("transform","rotate(270 0 0)").text(H)),function(){if(ot&&(bt.selectAll(".layer-container").remove(),bt.selectAll(".layer").remove(),bt.selectAll(".area-outline").remove()),jt)return t=f.line().x((function(t){return M(t.date)})).y((function(){return R(0)-1})),(e=bt.select(".chart-group")).append("path").attr("class","empty-data-line").attr("d",t(_t)).style("stroke","url(#empty-data-line-gradient)"),void e.append("linearGradient").attr("id","empty-data-line-gradient").attr("gradientUnits","userSpaceOnUse").attr("x1",0).attr("x2",M(St[St.length-1].date)).attr("y1",0).attr("y2",0).selectAll("stop").data([{offset:"0%",color:V[0]},{offset:"100%",color:V[1]}]).enter().append("stop").attr("offset",(function(t){return t.offset})).attr("stop-color",(function(t){return t.color}));var t,e;st=f.area().curve(S[rt]).x((function(t){var e=t.data;return M(e.date)})).y0((function(t){return R(t[0])})).y1((function(t){return R(t[1])})),lt=f.line().curve(st.curve()).x((function(t){var e=t.data;return M(e.date)})).y((function(t){return R(t[1])})),mt?((ot=bt.select(".chart-group").selectAll(".layer").data(at,zt).enter().append("g").classed("layer-container",!0)).append("path").attr("class","layer").attr("d",st).style("opacity",(function(t){var e=t.key;return $[e]?q:0})).style("fill",(function(t){var e=t.key;return Z[e]})),ot.append("path").attr("class","area-outline").attr("d",lt).style("stroke",(function(t){var e=t.key;return Z[e]})).style("opacity",(function(t){var e=t.key;return $[e]?q:0})),bt.select(".chart-group").selectAll(".layer").data(it).transition().delay((function(t,e){return ut[e]})).duration(1e3).ease(vt).attr("d",st).style("opacity",(function(t){var e=t.key;return $[e]?q:0})).style("fill",(function(t){var e=t.key;return Z[e]})),bt.select(".chart-group").selectAll(".area-outline").data(it).transition().delay((function(t,e){return ut[e]})).duration(1e3).ease(vt).attr("d",lt).style("opacity",(function(t){var e=t.key;return $[e]?q:0}))):((ot=bt.select(".chart-group").selectAll(".layer").data(it).enter().append("g").classed("layer-container",!0)).append("path").attr("class","layer").attr("d",st).style("opacity",(function(t){var e=t.key;return $[e]?q:0})).style("fill",(function(t){var e=t.key;return Z[e]})),ot.append("path").attr("class","area-outline").attr("d",lt).style("stroke",(function(t){var e=t.key;return Z[e]})).style("opacity",(function(t){var e=t.key;return $[e]?q:0})),bt.select(".chart-group").selectAll(".layer").attr("d",st).style("opacity",(function(t){var e=t.key;return $[e]?q:0})).style("fill",(function(t){var e=t.key;return Z[e]})),bt.select(".chart-group").selectAll(".area-outline").attr("class","area-outline").attr("d",lt).style("stroke",(function(t){var e=t.key;return Z[e]})).style("opacity",(function(t){var e=t.key;return $[e]?q:0}))),yt||bt.select(".chart-group").selectAll(".area-outline").style("display","none"),ot.exit().transition().style("opacity",0).remove()}(),function(){if(gt){var e=Number.parseInt(xt)+Number.parseInt(t.right);Dt=bt.selectAll(".legend-group").append("g").attr("transform","translate("+e+", 0)").classed("tooltip-text",!0),Rt=Dt.append("text").classed("tooltip-title",!0).attr("x",-43).attr("dy",".35em").attr("y",16).style("fill","#282C35").style("font-size","12px"),Dt.append("line").classed("tooltip-divider",!0).attr("x1",-43).attr("x2",225).attr("y1",31).attr("y2",31).style("stroke","#D2D6DF"),It=Dt.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35");for(var n=[].concat(a(new Set(St.map((function(t){return t.name}))))),r=[],i=function(t){var e={},i=n[t];e.name=i,e.sum=St.filter((function(e){return e.name===n[t]})).reduce((function(t,e){return t+e.value}),0),r.push(e)},o=0;oMt&&!jt&&(ct&&bt.selectAll(".overlay").remove(),ct=bt.select(".metadata-group").append("rect").attr("class","overlay").attr("y1",0).attr("y2",wt).attr("height",wt).attr("width",xt).attr("fill","rgba(0, 0, 0, 0)").style("display","none"),ht&&bt.selectAll(".vertical-marker-container").remove(),ht=bt.select(".metadata-group").append("g").attr("class","vertical-marker-container").attr("transform","translate(9999, 0)"),ft=ht.selectAll("path").data([{x1:0,y1:0,x2:0,y2:0}]).enter().append("line").classed("vertical-marker",!0).attr("x1",0).attr("y1",wt).attr("x2",0).attr("y2",0),bt.on("mouseover",(function(t){!function(t,e){ct.style("display","block"),ft.classed("bc-is-active",!0),Ut.call("customMouseOver",t,e,d.mouse(t))}(this,t)})).on("mouseout",(function(t){!function(t,e){ct.style("display","none"),ft.classed("bc-is-active",!1),Ut.call("customMouseOut",t,e,d.mouse(t))}(this,t)})).on("mousemove",(function(e){!function(e){dt||Kt();var n=d.mouse(e),r=o(n,2),i=r[0],a=r[1],s=$t(i-t.left),l=void 0;s&&(Jt(l=M(new Date(s.key))),Qt(s),Ut.call("customMouseMove",e,s,Z,l,a))}(this)}))),pt&&function(){dt||Kt();var t=$t(xt);t&&(Jt(M(new Date(t.key))),Qt(t))}()}))}function Wt(){bt.on("touchmove",(function(t){!function(t,e){Ut.call("customTouchMove",t,e,d.touch(t))}(this,t)}))}function Vt(t){return(E(t)?_:k)(t)}function Yt(t){t.selectAll(".tick text").attr("transform","translate(-20, -8)")}function Xt(t){return new Date(t).toLocaleDateString()}function qt(t){var e,n,r=void 0,i=void 0;e=t.name,n=t.sum.toLocaleString(),i=It.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("x",-15).attr("y",Bt).style("fill","#000000").style("font-size","12px").text(e).call(Zt,200,12,-25),r=It.append("text").classed("tooltip-right-text",!0).attr("dy","1em").attr("x",-15).attr("y",Bt).style("fill","#000000").style("font-size","12px").text(n),Ft=i.node().getBBox().height?i.node().getBBox().height:Ft,Lt=r.node().getBBox().width?r.node().getBBox().width:Lt,r.attr("x",300-Lt-75),It.append("circle").classed("tooltip-circle",!0).attr("cx",-35).attr("cy",Bt+8).attr("r",5).style("fill",Z[t.name]).style("stroke-width",1),Bt+=Ft+7}function Zt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.each((function(){var i,o,a,s,l,u,c;for(i=(t=d.select(this)).text().split(/\s+/).reverse(),a=[],s=0,l=t.attr("y"),u=parseFloat(t.attr("dy")),c=t.text(null).append("tspan").attr("x",r).attr("y",l).attr("dy",u+"em");o=i.pop();)a.push(o),c.text(a.join(" ")),g.getTextWidth(a.join(" "),n,"Karla, sans-serif")>e&&(a.pop(),c.text(a.join(" ")),s<4&&(a=[o],c=t.append("tspan").attr("x",r).attr("y",l).attr("dy",1.2*++s+u+"em").text(o)))}))}function $t(t){var e=Ct.filter((function(e){var n=e.date;return Math.abs(M(n)-t)<=dt}));if(e.length)return e[0]}function Kt(){var t=Ct.map((function(t){return t.date}));dt=(M(t[1])-M(t[0]))/2}function Qt(t){var e=t.values,n=0;ht.selectAll(".circle-container").remove(),e=e.filter((function(t){return!!t}));var r=K.reduce((function(t,n){return[].concat(a(t),[e.find((function(t){return t.name===n}))])}),[]);r.forEach((function(t,e){var i=ht.append("g").classed("circle-container",!0).append("circle").classed("data-point-highlighter",!0).attr("cx",12).attr("cy",0).attr("r",5).style("stroke-width",1.2).style("stroke",Z[t.name]).style("opacity",(function(t){var e=t.key;return $[e]?q:0})).style("cursor","pointer").on("click",(function(){!function(t){Y||(Y=T(bt.select(".metadata-group")),X=A(Y));var e=d.select(t);e.style("stroke-width",5).style("stroke-opacity",.6).attr("filter","url(#"+X+")"),O(e,vt,7)}(this),function(t,e){Ut.call("customDataEntryClick",t,e,d.mouse(t))}(this,t)})).on("mouseout",(function(){var t;t=this,d.select(t).attr("filter","none")}));n+=r[e][Ot],i.attr("transform","translate( -12, "+R(n)+" )")}))}function Jt(t){ht.attr("transform","translate("+t+",0)")}return Gt.areaCurve=function(t){return arguments.length?(rt=t,this):rt},Gt.areaOpacity=function(t){return arguments.length?(q=t,this):q},Gt.aspectRatio=function(t){return arguments.length?(F=t,this):F},Gt.axisTimeCombinations=w,Gt.colorSchema=function(t){return arguments.length?(W=t,this):W},Gt.dateLabel=function(t){return arguments.length?(At=t,this):At},Gt.emptyDataConfig=function(t){return arguments.length?(Nt=t,this):Nt},Gt.grid=function(t){return arguments.length?(Et=t,this):Et},Gt.hasOutline=function(t){return arguments.length?(yt=t,this):yt},Gt.height=function(t){return arguments.length?(F&&(n=Math.ceil(t/F)),x=t,this):x},Gt.initializeVerticalMarker=function(t){return arguments.length?(pt=t,this):pt},Gt.isAnimated=function(t){return arguments.length?(mt=t,this):mt},Gt.isPrintMode=function(t){return arguments.length?(gt=t,this):gt},Gt.keyLabel=function(t){return arguments.length?(Pt=t,this):Pt},Gt.margin=function(e){return arguments.length?(t=i({},t,e),this):t},Gt.tooltipThreshold=function(t){return arguments.length?(Mt=t,this):Mt},Gt.topicsOrder=function(t){return arguments.length?(Q=t,this):Q},Gt.loadingState=function(t){return arguments.length?(C=t,this):C},Gt.locale=function(t){return arguments.length?(nt=t,this):nt},Gt.exportChart=function(t,e){v.call(Gt,bt,t,e)},Gt.on=function(){var t=Ut.on.apply(Ut,arguments);return t===Ut?Gt:t},Gt.valueLabel=function(t){return arguments.length?(Ot=t,this):Ot},Gt.width=function(t){return arguments.length?(F&&(x=Math.ceil(t*F)),n=t,this):n},Gt.xAxisCustomFormat=function(t){return arguments.length?(et=t,this):et},Gt.xAxisFormat=function(t){return arguments.length?(J=t,this):J},Gt.xTicks=function(t){return arguments.length?(tt=t,this):tt},Gt.yAxisLabel=function(t){return arguments.length?(H=t,this):H},Gt.yAxisLabelOffset=function(t){return arguments.length?(G=t,this):G},Gt.yTicks=function(t){return arguments.length?(z=t,this):z},Gt}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]&&arguments[0]?1:0;G.attr("opacity",t),W.attr("opacity",t)}return ut.aspectRatio=function(t){return arguments.length?(y=t,this):y},ut.circleOpacity=function(t){return arguments.length?(X=t,this):X},ut.colorSchema=function(t){return arguments.length?(K=t,this):K},ut.exportChart=function(t,e){f.call(ut,rt,t,e)},ut.grid=function(t){return arguments.length?(C=t,this):C},ut.hasCrossHairs=function(t){return arguments.length?(J=t,this):J},ut.hasHollowCircles=function(t){return arguments.length?(nt=t,this):nt},ut.hasTrendline=function(t){return arguments.length?(tt=t,this):tt},ut.height=function(t){return arguments.length?(y&&(n=Math.ceil(t/y)),p=t,this):p},ut.highlightTextLegendOffset=function(t){return arguments.length?(V=t,this):V},ut.isAnimated=function(t){return arguments.length?(Q=t,this):Q},ut.margin=function(e){return arguments.length?(t=i({},t,e),this):t},ut.maxCircleArea=function(t){return arguments.length?($=t,this):$},ut.on=function(){var t=at.on.apply(at,arguments);return t===at?ut:t},ut.width=function(t){return arguments.length?(y&&(p=Math.ceil(t*y)),n=t,this):n},ut.xAxisLabel=function(t){return arguments.length?(I=t,this):I},ut.xAxisLabelOffset=function(t){return arguments.length?(B=t,this):B},ut.xAxisFormat=function(t){return arguments.length?(E=t,this):E},ut.xTicks=function(t){return arguments.length?(w=t,this):w},ut.yAxisFormat=function(t){return arguments.length?(A=t,this):A},ut.yAxisLabel=function(t){return arguments.length?(j=t,this):j},ut.yAxisLabelOffset=function(t){return arguments.length?(D=t,this):D},ut.yTicks=function(t){return arguments.length?(S=t,this):S},ut}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;eU&&D.on("mouseover",(function(t){!function(t,e){it.call("customMouseOver",t,e,f.mouse(t))}(this,t)})).on("mouseout",(function(t){!function(t,e){D.select(".metadata-group").attr("transform","translate(9999, 0)"),it.call("customMouseOut",t,e,f.mouse(t))}(this,t)})).on("mousemove",(function(e){var n,r,i,a,s,l,u,c,h,f;r=st(n=this),a=(i=o(r,2))[0],s=i[1],u=void 0,c=void 0,(l=L?ut(s):lt(a))&&(L?(u=a-t.left,c=S(l.key)+S.bandwidth()/2):(u=b(l.key)+x(l[Q]),c=s-t.bottom),h=u,f=c,D.select(".metadata-group").attr("transform","translate("+h+","+f+")"),it.call("customMouseMove",n,l,P,u,c))})).on("click",(function(t){var e,n,r,i,a,s;n=st(e=this),i=(r=o(n,2))[0],a=r[1],s=L?ut(a):lt(i),it.call("customClick",e,s,f.mouse(e))})),D.selectAll(".bar").on("mouseover",(function(t){!function(t,e){f.select(t).attr("fill",(function(){return a.color(P[e.group]).darker()}))}(this,t)})).on("mouseout",(function(t){!function(t,e){f.select(t).attr("fill",(function(){return P[e.group]}))}(this,t)}))}))}function at(t){t.selectAll(".tick text").attr("transform","translate("+E.x+", "+E.y+")")}function st(t){return f.mouse(t)}function lt(e){var n=e-t.left,r=x.bandwidth(),i=[];return N.forEach((function(t){var e=t.values.find((function(t){return Math.abs(n>=b(t[$])+x(t[Q]))&&Math.abs(n-x(t[Q])-b(t[$])<=r)}));e&&(e.values=t.values,e.key=e.name,i.push(e))})),i.length?i[0]:void 0}function ut(e){var n=e-t.bottom,r=S.bandwidth(),i=[];return N.map((function(t){var e=t.values.find((function(t){return Math.abs(n>=S(t[$]))&&Math.abs(n-S(t[$])<=2*r)}));e&&(e.values=t.values,e.key=e.name,i.push(e))})),i.length?i[0]:void 0}function ct(t){var e=f.select(this),n=c.interpolateRound(0,b(et(t))),r=c.interpolateNumber(0,1);return function(t){e.attr("width",n(t)).style("opacity",r(t))}}function ht(t){var e=f.select(this),n=c.interpolateRound(0,R-S(et(t))),r=c.interpolateRound(R,S(et(t))),i=c.interpolateNumber(0,1);return function(t){e.attr("y",r(t)).attr("height",n(t)).style("opacity",i(t))}}return ot.aspectRatio=function(t){return arguments.length?(k=t,this):k},ot.colorSchema=function(t){return arguments.length?(A=t,this):A},ot.exportChart=function(t,e){p.call(ot,D,t,e)},ot.groupLabel=function(t){return arguments.length?(Q=t,this):Q},ot.grid=function(t){return arguments.length?(Z=t,this):Z},ot.height=function(t){return arguments.length?(k&&(n=Math.ceil(t/k)),v=t,this):v},ot.isHorizontal=function(t){return arguments.length?(L=t,this):L},ot.isAnimated=function(t){return arguments.length?(rt=t,this):rt},ot.loadingState=function(t){return arguments.length?(y=t,this):y},ot.margin=function(e){return arguments.length?(t=i({},t,e),this):t},ot.nameLabel=function(t){return arguments.length?($=t,this):$},ot.yTicks=function(t){return arguments.length?(M=t,this):M},ot.on=function(){var t=it.on.apply(it,arguments);return t===it?ot:t},ot.tooltipThreshold=function(t){return arguments.length?(U=t,this):U},ot.valueLabel=function(t){return arguments.length?(K=t,this):K},ot.valueLabelFormat=function(t){return arguments.length?(J=t,this):J},ot.width=function(t){return arguments.length?(k&&(v=Math.ceil(t*k)),n=t,this):n},ot.xTicks=function(t){return arguments.length?(T=t,this):T},ot.yAxisLabel=function(t){return arguments.length?(V=t,this):V},ot.yAxisLabelOffset=function(t){return arguments.length?(X=t,this):X},ot.yTickTextOffset=function(t){return arguments.length?(E=t,this):E},ot}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;eH?e-n-10:e})).attr("y",(function(t){return M(ct(t))+16})).text((function(t){return St(lt(t))+c(ut(t))+"%"})),s.enter().append("rect").classed("striped",!0).attr("x",1).attr("y",(function(t){return M(ct(t))})).attr("height",M.bandwidth()).attr("fill","url(#diagonalHatch)"));i.enter().append("rect").classed("bg-hover",!0).on("click",(function(t){Et(this,t)})).attr("x",-t.left).attr("y",(function(t){return M(ct(t))})).attr("height",M.bandwidth()*W.length+4*W.length).attr("width",H+t.left).attr("fill","#d6e8fa").attr("fill-opacity",0).on("mouseover",Mt).on("mouseout",Tt),ft?(u.style("opacity",.24).transition().delay((function(t,e){return tt[e]})).duration(1e3).ease(R).tween("attr.width",At),F&&l.style("opacity",.24).transition().delay((function(t,e){return tt[e]})).duration(1e3).ease(R).tween("attr.width",Ot),f.style("opacity",.24).transition().delay((function(t,e){return tt[e]})).duration(1e3).ease(R).tween("attr.width",At)):(u.attr("width",(function(t){return _(F?ht(t):ut(t))})),F&&l.attr("width",(function(t){return _(st(t))})),f.attr("width",(function(t){return _(F?ht(t):ut(t))})))}(n),n.exit().transition().style("opacity",0).remove()}(),z.select(".x-axis-group .axis.x").attr("transform","translate( 0, "+U+" )").call(k),z.select(".y-axis-group.axis").attr("transform","translate( "+-Z+", 0)").call(T),z.selectAll(".y-axis-group.axis .tick").call(Pt),z.selectAll(".y-axis-group.axis .tick text").on("mouseover",Mt).on("mouseout",Tt).call(xt,t.left-50).selectAll("tspan"),K&&(Q&&z.selectAll(".y-axis-label-text").remove(),Q=z.select(".y-axis-label").append("text").classed("y-axis-label-text",!0).attr("x",-U/2).attr("y",J).attr("text-anchor","middle").attr("transform","rotate(270 0 0)").text(K)),function(){if(dt){var e=Number.parseInt(H)+Number.parseInt(t.right);pt=z.selectAll(".legend-group").append("g").attr("transform","translate("+e+", -30)").classed("tooltip-text",!0),mt=pt.append("g").classed("tooltip-body",!0).style("transform","translateY(8px)").style("fill","#282C35"),[].concat(a(new Set(G.map((function(t){return t.group}))))).reverse().forEach(wt)}}(),w>q&&z.on("mouseover",(function(t){!function(t,e){yt.call("customMouseOver",t,e,p.mouse(t)),Mt(e)}(this,t)})).on("mouseout",(function(t){!function(t,e){z.select(".metadata-group").attr("transform","translate(9999, 0)"),yt.call("customMouseOut",t,e,p.mouse(t))}(this,t)})).on("mousemove",(function(e){var n,r,i,a,s,l,u,c,h;r=_t(n=this),a=(i=o(r,2))[0],l=void 0,u=void 0,(s=kt(i[1]))&&(c=l=a-t.left,h=u=E(s.key)+E.bandwidth()/2,z.select(".metadata-group").attr("transform","translate("+c+","+h+")"),yt.call("customMouseMove",n,s,D,l,u))})).on("click",(function(t){Et(this,t)})),z.selectAll(".row").on("mouseover",(function(t){!function(t,e){p.select(t).attr("fill",(function(){return s.color(D[e.group]).darker()}))}(this,t)})).on("mouseout",(function(t){!function(t,e){p.select(t).attr("fill",(function(){return D[e.group]}))}(this,t)}))}))}function xt(t,e){g.wrapTextWithEllipses(t,e,-10,2,.8)}function wt(t){var e,n=t,r=void 0;e=t,r=mt.append("text").classed("tooltip-left-text",!0).attr("dy","1em").attr("dx",0).attr("y",gt).style("fill","#000000").style("font-size","12px").text(e).call(Ct,200,12,-25),vt=r.node().getBBox().height?r.node().getBBox().height:vt,mt.append("circle").classed("tooltip-circle",!0).attr("cx",-39.5).attr("cy",gt+10).attr("r",5).style("fill",D[n]).style("stroke-width",1),gt+=vt+7}function St(t){return t?t+" | ":""}function Ct(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;t.each((function(){var i,o,a,s,l,u,c;for(i=(t=p.select(this)).text().split(/\s+/).reverse(),a=[],s=0,l=t.attr("y"),u=parseFloat(t.attr("dy")),c=t.text(null).append("tspan").attr("x",r).attr("y",l).attr("dy",u+"em");o=i.pop();)a.push(o),c.text(a.join(" ")),g.getTextWidth(a.join(" "),n,"Karla, sans-serif")>e&&(a.pop(),c.text(a.join(" ")),s<4&&(a=[o],c=t.append("tspan").attr("x",r).attr("y",l).attr("dy",1.2*++s+u+"em").text(o)))}))}function _t(t){return p.mouse(t)}function kt(e){var n=e-t.bottom,r=E.bandwidth(),i=[];return I.map((function(t){var e=t.values.find((function(t){return Math.abs(n>=E(t[nt]))&&Math.abs(n-E(t[nt])<=2*r)}));e&&(e.values=t.values,e.key=e.name,i.push(e))})),i.length?i[0]:void 0}function Et(t,e){var n=_t(t),r=o(n,2),i=(r[0],kt(r[1]));yt.call("customClick",t,i,p.mouse(t))}function Mt(t,e){var r=null;this&&(r=p.select(this.parentNode).attr("class").replace("layer layer-","")),"string"==typeof t&&(r=Nt(t)),parseInt(r)>-1&&(p.select(n).select(".tick svg.visibility-"+r).attr("opacity",1),p.select(n).select("g .layer-"+r+" .bg-hover").attr("fill-opacity",.3))}function Tt(t,e){var r=null;this&&(r=p.select(this.parentNode).attr("class").replace("layer layer-","")),"string"==typeof t&&(r=Nt(t)),parseInt(r)>-1&&(p.select(n).select(".tick svg.visibility-"+r).attr("opacity",0),p.select(n).select("g .layer-"+r+" .bg-hover").attr("fill-opacity",0))}function At(t){var e=p.select(this),n=f.interpolateNumber(0,1),r=F?f.interpolateRound(0,_(ht(t))):f.interpolateRound(0,_(ut(t)));return function(t){e.attr("width",r(t)).style("opacity",n(t))}}function Ot(t){var e=p.select(this),n=f.interpolateRound(0,_(st(t))),r=f.interpolateNumber(0,1);return function(t){e.attr("width",n(t)).style("opacity",r(t))}}function Pt(e){e.each((function(){var n=(e=p.select(this)).node().getBBox().height/2,r=e.append("svg").attr("class",(function(t){return"visibility visibility-"+Nt(t)})).attr("x",-(t.left-5)).attr("y",-n).attr("width","300").attr("height","300").attr("viewBox","0 0 600 600").attr("fill","none").attr("opacity",0);r.append("rect").attr("x",-10).attr("y",-10).attr("height","50").attr("width","50").attr("fill","#d6e8fa").on("mouseover",Mt).on("mouseout",Tt).attr("opacity",0),r.append("path").attr("d","M 10,10 L 30,30 M 30,10 L 10,30").attr("stroke","#0072ce").attr("stroke-width","2").on("mouseover",Mt).on("mouseout",Tt)}))}function Nt(t){return V.indexOf(t)}return bt.aspectRatio=function(t){return arguments.length?(A=t,this):A},bt.colorSchema=function(t){return arguments.length?(L=t,this):L},bt.exportChart=function(t,e){v.call(bt,z,t,e)},bt.groupLabel=function(t){return arguments.length?(it=t,this):it},bt.grid=function(t){return arguments.length?(et=t,this):et},bt.height=function(t){return arguments.length?(A&&(w=Math.ceil(t/A)),S=t,this):S},bt.isHorizontal=function(t){return arguments.length?(B=t,this):B},bt.isPrintMode=function(t){return arguments.length?(dt=t,this):dt},bt.isStacked=function(t){return arguments.length?(F=t,this):F},bt.isAnimated=function(t){return arguments.length?(ft=t,this):ft},bt.loadingState=function(t){return arguments.length?(C=t,this):C},bt.margin=function(e){return arguments.length?(t=i({},t,e),this):t},bt.nameLabel=function(t){return arguments.length?(nt=t,this):nt},bt.yTicks=function(t){return arguments.length?(P=t,this):P},bt.on=function(){var t=yt.on.apply(yt,arguments);return t===yt?bt:t},bt.percentageAxisToMaxRatio=function(t){return arguments.length?(j=t,this):j},bt.tooltipThreshold=function(t){return arguments.length?(q=t,this):q},bt.valueLabel=function(t){return arguments.length?(rt=t,this):rt},bt.valueLabelFormat=function(t){return arguments.length?(ot=t,this):ot},bt.width=function(t){return arguments.length?(A&&(S=Math.ceil(t*A)),w=t,this):w},bt.xTicks=function(t){return arguments.length?(N=t,this):N},bt.yAxisLabel=function(t){return arguments.length?(K=t,this):K},bt.yAxisLabelOffset=function(t){return arguments.length?(J=t,this):J},bt.yTickTextOffset=function(t){return arguments.length?(O=t,this):O},bt}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;eW&&I.on("mouseover",(function(t){!function(t,e){at.call("customMouseOver",t,e,d.mouse(t))}(this,t)})).on("mouseout",(function(t){!function(t,e){I.select(".metadata-group").attr("transform","translate(9999, 0)"),at.call("customMouseOut",t,e,d.mouse(t))}(this,t)})).on("mousemove",(function(e){var n,r,i,a,s,l,u,c,h,f;r=ct(n=this),a=(i=o(r,2))[0],s=i[1],u=void 0,c=void 0,(l=D?ft(s):ht(a))&&(D?(u=a-t.left,c=S(l.key)+S.bandwidth()/2):(u=x(l.key)+t.left,c=s-t.bottom),h=u,f=c,I.select(".metadata-group").attr("transform","translate("+h+","+f+")"),at.call("customMouseMove",n,l,N,u,c))})).on("click",(function(t){var e,n,r,i,a,s;n=ct(e=this),i=(r=o(n,2))[0],a=r[1],s=D?ft(a):ht(i),at.call("customClick",e,s,d.mouse(e))})),I.selectAll(".bar").on("mouseover",dt).on("mouseout",pt)}))}function lt(t){t.selectAll(".tick text").attr("transform","translate(-20, -8)")}function ut(t){return t.map((function(t){for(var e=0;e=r&&n=r&&n=t[1]&&(t[0]=v[F].floor(n[0]),t[1]=v[F].offset(t[0])),h.select(this).transition().call(h.event.target.move,t.map(E))}z.call("customBrushEnd",this,t)}}function Y(t,e){var n=null;null!==t&&(n=[E(new Date(t)),E(new Date(e))]),j.move(L,n)}return G.axisTimeCombinations=g,G.dateRange=function(t){return arguments.length?(C=t,Array.isArray(C)&&Y.apply(void 0,o(C)),this):C},G.gradient=function(t){return arguments.length?(R=t,this):R},G.height=function(t){return arguments.length?(m=t,this):m},G.loadingState=function(t){return arguments.length?(x=t,this):x},G.locale=function(t){return arguments.length?(N=t,this):N},G.margin=function(e){return arguments.length?(t=i({},t,e),this):t},G.on=function(){var t=z.on.apply(z,arguments);return t===z?G:t},G.width=function(t){return arguments.length?(n=t,this):n},G.xAxisCustomFormat=function(t){return arguments.length?(P=t,this):P},G.xAxisFormat=function(t){return arguments.length?(A=t,this):A},G.xTicks=function(t){return arguments.length?(O=t,this):O},G.roundingTimeInterval=function(t){return arguments.length?(F=t,this):F},G}}.call(e,n,e,t))||(t.exports=r)},function(t,e,n){"use strict";var r,i=Object.assign||function(t){for(var e=1;e0)){if(o/=f,f<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=r-l,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>c&&(c=o)}else if(f>0){if(o0)){if(o/=d,d<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=i-u,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>c&&(c=o)}else if(d>0){if(o0||h<1)||(c>0&&(t[0]=[l+c*f,u+c*d]),h<1&&(t[1]=[l+h*f,u+h*d]),!0)}}}}}function g(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,l=t[0],u=t.left,c=t.right,h=u[0],f=u[1],d=c[0],p=c[1],m=(h+d)/2,g=(f+p)/2;if(p===f){if(m=r)return;if(h>d){if(l){if(l[1]>=i)return}else l=[m,n];o=[m,i]}else{if(l){if(l[1]1)if(h>d){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]=r)return}else l=[e,a*e+s];o=[r,a*r+s]}else{if(l){if(l[0]=-B)){var d=l*l+u*u,p=c*c+h*h,m=(h*d-u*p)/f,g=(l*p-c*d)/f,v=w.pop()||new S;v.arc=t,v.site=i,v.x=m+a,v.y=(v.cy=g+s)+Math.sqrt(m*m+g*g),t.circle=v;for(var y=null,b=D._;b;)if(v.yR)s=s.L;else{if(!((i=o-N(s,a))>R)){r>-R?(e=s.P,n=s):i>-R?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){L[t.index]={site:t,halfedges:[]}}(t);var l=M(t);if(j.insert(e,l),e||n){if(e===n)return _(e),n=M(e.site),j.insert(l,n),l.edge=n.edge=f(e.site,l.site),C(e),void C(n);if(n){_(e),_(n);var u=e.site,c=u[0],h=u[1],d=t[0]-c,m=t[1]-h,g=n.site,v=g[0]-c,y=g[1]-h,b=2*(d*y-m*v),x=d*d+m*m,w=v*v+y*y,S=[(y*x-m*w)/b+c,(d*w-v*x)/b+h];p(n.edge,u,g,S),l.edge=f(u,t,null,S),n.edge=f(t,g,null,S),C(e),C(n)}else l.edge=f(e.site,l.site)}}function P(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],u=l-e;if(!u)return s;var c=s-r,h=1/o-1/u,f=c/u;return h?(-f+Math.sqrt(f*f-2*h*(c*c/(-2*u)-l+u/2+i-o/2)))/h+r:(r+s)/2}function N(t,e){var n=t.N;if(n)return P(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var j,L,D,I,R=1e-6,B=1e-12;function F(t,e){return e[1]-t[1]||e[0]-t[0]}function z(t,e){var n,r,i,o=t.sort(F).pop();for(I=[],L=new Array(t.length),j=new h,D=new h;;)if(i=x,o&&(!i||o[1]R||Math.abs(i[0][1]-i[1][1])>R)||delete I[o]}(a,s,l,u),function(t,e,n,r){var i,o,a,s,l,u,c,h,f,p,m,g,v=L.length,x=!0;for(i=0;iR||Math.abs(g-f)>R)&&(l.splice(s,0,I.push(d(a,p,Math.abs(m-t)R?[t,Math.abs(h-t)R?[Math.abs(f-r)R?[n,Math.abs(h-n)R?[Math.abs(f-e)=s)return null;var l=t-i.site[0],u=e-i.site[1],c=l*l+u*u;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],u=e-s[1],h=l*l+u*u;hMath.abs(t[1]-nt[1])?L=!0:j=!0),nt=t,N=!0,g(),lt()}function lt(){var t;switch(K=nt[0]-et[0],Q=nt[1]-et[1],F){case y:case v:U&&(K=Math.max(X-n,Math.min(Z-d,K)),r=n+K,p=d+K),G&&(Q=Math.max(q-u,Math.min($-S,Q)),c=u+Q,E=S+Q);break;case b:U<0?(K=Math.max(X-n,Math.min(Z-n,K)),r=n+K,p=d):U>0&&(K=Math.max(X-d,Math.min(Z-d,K)),r=n,p=d+K),G<0?(Q=Math.max(q-u,Math.min($-u,Q)),c=u+Q,E=S):G>0&&(Q=Math.max(q-S,Math.min($-S,Q)),c=u,E=S+Q);break;case x:U&&(r=Math.max(X,Math.min(Z,n-K*U)),p=Math.max(X,Math.min(Z,d+K*U))),G&&(c=Math.max(q,Math.min($,u-Q*G)),E=Math.max(q,Math.min($,S+Q*G)))}p0&&(n=r-K),G<0?S=E-Q:G>0&&(u=c-Q),F=y,ot.attr("cursor",M.selection),lt());break;default:return}g()}function ht(){switch(o.c.keyCode){case 16:J&&(j=L=J=!1,lt());break;case 18:F===x&&(U<0?d=p:U>0&&(n=r),G<0?S=E:G>0&&(u=c),F=b,lt());break;case 32:F===y&&(o.c.altKey?(U&&(d=p-K*U,n=r+K*U),G&&(S=E-Q*G,u=c+Q*G),F=x):(U<0?d=p:U>0&&(n=r),G<0?S=E:G>0&&(u=c),F=b),ot.attr("cursor",M[B]),lt());break;default:return}g()}}function W(){H(this,arguments).moved()}function V(){H(this,arguments).ended()}function Y(){var e=this.__brush||{selection:null};return e.extent=S(n.apply(this,arguments)),e.dim=t,e}return F.move=function(e,n){e.selection?e.on("start.brush",(function(){H(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){H(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=H(e,arguments),o=r.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,r.extent),s=Object(u.a)(o,a);function l(t){r.selection=1===t&&null===a?null:s(t),z.call(e),i.brush()}return null!==o&&null!==a?l:l(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"==typeof n?n.apply(e,r):n,i.extent),a=H(e,r).beforestart();Object(f.interrupt)(e),i.selection=null===o?null:o,z.call(e),a.start().brush().end()}))},F.clear=function(t){F.move(t,null)},U.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){Object(o.a)(new p(F,e,t.output(this.state.selection)),E.apply,E,[e,this.that,this.args])}},F.extent=function(t){return arguments.length?(n="function"==typeof t?t:d(S(t)),F):n},F.filter=function(t){return arguments.length?(a="function"==typeof t?t:d(!!t),F):a},F.touchable=function(t){return arguments.length?(c="function"==typeof t?t:d(!!t),F):c},F.handleSize=function(t){return arguments.length?(B=+t,F):B},F.keyModifiers=function(t){return arguments.length?(w=!!t,F):w},F.on=function(){var t=E.on.apply(E,arguments);return t===E?F:t},F}n.d(e,"brush",(function(){return H})),n.d(e,"brushX",(function(){return F})),n.d(e,"brushY",(function(){return z})),n.d(e,"brushSelection",(function(){return B}))}]))},3270:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;ee?1:t>=e?0:NaN}function i(t){var e;return 1===t.length&&(e=t,t=function(t,n){return r(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[o],n)>0?i=o:r=o+1}return r}}}n.d(e,{j2:function(){return r},b4:function(){return l},Nw:function(){return s},ml:function(){return a},YF:function(){return i},kC:function(){return h},$1:function(){return f},P3:function(){return m},We:function(){return g},KX:function(){return O},Fp:function(){return L},J6:function(){return D},C2:function(){return I},TS:function(){return R},VV:function(){return B},X:function(){return u},FO:function(){return F},VR:function(){return P},w6:function(){return S},Rp:function(){return z},TV:function(){return H},Sm:function(){return U},o6:function(){return N},FA:function(){return j},_X:function(){return A},G9:function(){return M},ly:function(){return T},sd:function(){return E},p4:function(){return G},CA:function(){return p},$R:function(){return V}});var o=i(r),a=o.right,s=o.left,l=a;function u(t,e){null==e&&(e=c);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);nt?1:e>=t?0:NaN}function d(t){return null===t?NaN:+t}function p(t,e){var n,r,i=t.length,o=0,a=-1,s=0,l=0;if(null==e)for(;++a1)return l/(o-1)}function m(t,e){var n=p(t,e);return n?Math.sqrt(n):n}function g(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++s=0?(o>=C?10:o>=_?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=C?10:o>=_?5:o>=k?2:1)}function T(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=C?i*=10:o>=_?i*=5:o>=k&&(i*=2),eh;)f.pop(),--d;var p,m=new Array(d+1);for(i=0;i<=d;++i)(p=m[i]=[]).x0=i>0?f[i-1]:c,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}function N(t,e,n){return t=b.call(t,d).sort(r),Math.ceil((n-e)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))}function j(t,e,n){return Math.ceil((n-e)/(3.5*m(t)*Math.pow(t.length,-1/3)))}function L(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r}function D(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o=0;)for(e=(r=t[i]).length;--e>=0;)n[--a]=r[e];return n}function B(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r}function F(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function z(t,e){if(n=t.length){var n,i,o=0,a=0,s=t[a];for(null==e&&(e=r);++o=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);for(;++a0)for(var n,r,i=new Array(n),o=0;oe?1:t>=e?0:NaN}var F="http://www.w3.org/1999/xhtml",z={svg:"http://www.w3.org/2000/svg",xhtml:F,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function H(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),z.hasOwnProperty(e)?{space:z[e],local:t}:t}function U(t){return function(){this.removeAttribute(t)}}function G(t){return function(){this.removeAttributeNS(t.space,t.local)}}function W(t,e){return function(){this.setAttribute(t,e)}}function V(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Y(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function X(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function q(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Z(t){return function(){this.style.removeProperty(t)}}function $(t,e,n){return function(){this.style.setProperty(t,e,n)}}function K(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Q(t,e){return t.style.getPropertyValue(e)||q(t).getComputedStyle(t,null).getPropertyValue(e)}function J(t){return function(){delete this[t]}}function tt(t,e){return function(){this[t]=e}}function et(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function nt(t){return t.trim().split(/^|\s+/)}function rt(t){return t.classList||new it(t)}function it(t){this._node=t,this._names=nt(t.getAttribute("class")||"")}function ot(t,e){for(var n=rt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var kt={},Et=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(kt={mouseenter:"mouseover",mouseleave:"mouseout"}));function Mt(t,e,n){return t=Tt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Tt(t,e,n){return function(r){var i=Et;Et=r;try{t.call(this,this.__data__,e,n)}finally{Et=i}}}function At(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r=x&&(x=b+1);!(y=g[x])&&++x=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=B);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==e?Z:"function"===typeof e?K:$)(t,e,null==n?"":n)):Q(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?J:"function"===typeof e?et:tt)(t,e)):this.node()[t]},classed:function(t,e){var n=nt(t+"");if(arguments.length<2){for(var r=rt(this.node()),i=-1,o=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Ot:At,null==n&&(n=!1),r=0;r>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ce(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ce(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Jt.exec(t))?new de(e[1],e[2],e[3],1):(e=te.exec(t))?new de(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ee.exec(t))?ce(e[1],e[2],e[3],e[4]):(e=ne.exec(t))?ce(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=re.exec(t))?ve(e[1],e[2]/100,e[3]/100,1):(e=ie.exec(t))?ve(e[1],e[2]/100,e[3]/100,e[4]):oe.hasOwnProperty(t)?ue(oe[t]):"transparent"===t?new de(NaN,NaN,NaN,0):null}function ue(t){return new de(t>>16&255,t>>8&255,255&t,1)}function ce(t,e,n,r){return r<=0&&(t=e=n=NaN),new de(t,e,n,r)}function he(t){return t instanceof Yt||(t=le(t)),t?new de((t=t.rgb()).r,t.g,t.b,t.opacity):new de}function fe(t,e,n,r){return 1===arguments.length?he(t):new de(t,e,n,null==r?1:r)}function de(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function pe(){return"#"+ge(this.r)+ge(this.g)+ge(this.b)}function me(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function ge(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function ve(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new xe(t,e,n,r)}function ye(t){if(t instanceof xe)return new xe(t.h,t.s,t.l,t.opacity);if(t instanceof Yt||(t=le(t)),!t)return new xe;if(t instanceof xe)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n0&&l<1?0:a,new xe(a,s,l,t.opacity)}function be(t,e,n,r){return 1===arguments.length?ye(t):new xe(t,e,n,null==r?1:r)}function xe(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function we(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Se(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function Ce(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r180||n<-180?n-360*Math.round(n/360):n):ke(isNaN(t)?e:t)}function Te(t){return 1===(t=+t)?Ae:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):ke(isNaN(e)?n:e)}}function Ae(t,e){var n=e-t;return n?Ee(t,n):ke(isNaN(t)?e:t)}Wt(Yt,le,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:ae,formatHex:ae,formatHsl:function(){return ye(this).formatHsl()},formatRgb:se,toString:se}),Wt(de,fe,Vt(Yt,{brighter:function(t){return t=null==t?qt:Math.pow(qt,t),new de(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Xt:Math.pow(Xt,t),new de(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pe,formatHex:pe,formatRgb:me,toString:me})),Wt(xe,be,Vt(Yt,{brighter:function(t){return t=null==t?qt:Math.pow(qt,t),new xe(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Xt:Math.pow(Xt,t),new xe(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new de(we(t>=240?t-240:t+120,i,r),we(t,i,r),we(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Oe=function t(e){var n=Te(e);function r(t,e){var r=n((t=fe(t)).r,(e=fe(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Ae(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Pe(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;no&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Fe(n,r)})),o=Ue.lastIndex;return o=0&&e._call.call(null,t),e=e._next;--Ke}function fn(){nn=(en=on.now())+rn,Ke=Qe=0;try{hn()}finally{Ke=0,function(){var t,e,n=Ze,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ze=e);$e=t,pn(r)}(),nn=0}}function dn(){var t=on.now(),e=t-en;e>tn&&(rn-=e,en=t)}function pn(t){Ke||(Qe&&(Qe=clearTimeout(Qe)),t-nn>24?(t<1/0&&(Qe=setTimeout(fn,t-on.now()-rn)),Je&&(Je=clearInterval(Je))):(Je||(en=on.now(),Je=setInterval(dn,tn)),Ke=1,an(fn)))}function mn(t,e,n){var r=new un;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}un.prototype=cn.prototype={constructor:un,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?sn():+n)+(null==e?0:+e),this._next||$e===this||($e?$e._next=this:Ze=this,$e=this),this._call=t,this._time=n,pn()},stop:function(){this._call&&(this._call=null,this._time=1/0,pn())}};var gn=M("start","end","cancel","interrupt"),vn=[],yn=0,bn=1,xn=2,wn=3,Sn=4,Cn=5,_n=6;function kn(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=bn,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var u,c,h,f;if(n.state!==bn)return l();for(u in i)if((f=i[u]).name===n.name){if(f.state===wn)return mn(a);f.state===Sn?(f.state=_n,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[u]):+uyn)throw new Error("too late; already scheduled");return n}function Mn(t,e){var n=Tn(t,e);if(n.state>wn)throw new Error("too late; already running");return n}function Tn(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function An(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>xn&&n.state180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Fe(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,s,l),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Fe(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,s,l),function(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Fe(t,n)},{i:s-2,x:Fe(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,l),o=a=null,function(t){for(var e,n=-1,r=l.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?En:Mn;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=H(t),r="transform"===n?Fn:Gn;return this.attrTween(t,"function"===typeof e?(n.local?Zn:qn)(n,r,Un(this,"attr."+t,e)):null==e?(n.local?Vn:Wn)(n):(n.local?Xn:Yn)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=H(t);return this.tween(n,(r.local?$n:Kn)(r,e))},style:function(t,e,n){var r="transform"===(t+="")?Bn:Gn;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Q(this,t),a=(this.style.removeProperty(t),Q(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,rr(t)):"function"===typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=Q(this,t),s=n(this),l=s+"";return null==s&&(this.style.removeProperty(t),l=s=Q(this,t)),a===l?null:a===r&&l===i?o:(i=l,o=e(r=a,s))}}(t,r,Un(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var l=Mn(this,t),u=l.on,c=null==l.value[a]?o||(o=rr(e)):void 0;u===n&&i===c||(r=(n=u).copy()).on(s,i=c),l.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=Q(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"===typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Un(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Tn(this.node(),n).tween,o=0,a=i.length;obn&&n.name===e)return new or([[t]],pr,e,+r);return null}function gr(t){return function(){return t}}function vr(t,e,n){this.target=t,this.type=e,this.selection=n}function yr(){Et.stopImmediatePropagation()}function br(){Et.preventDefault(),Et.stopImmediatePropagation()}var xr={name:"drag"},wr={name:"space"},Sr={name:"handle"},Cr={name:"center"};function _r(t){return[+t[0],+t[1]]}function kr(t){return[_r(t[0]),_r(t[1])]}var Er={name:"x",handles:["w","e"].map(Lr),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Mr={name:"y",handles:["n","s"].map(Lr),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Tr={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Lr),input:function(t){return null==t?null:kr(t)},output:function(t){return t}},Ar={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Or={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Pr={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Nr={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},jr={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Lr(t){return{type:t}}function Dr(){return!Et.ctrlKey&&!Et.button}function Ir(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function Rr(){return navigator.maxTouchPoints||"ontouchstart"in this}function Br(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Fr(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function zr(){return Gr(Er)}function Hr(){return Gr(Mr)}function Ur(){return Gr(Tr)}function Gr(t){var e,n=Ir,r=Dr,i=Rr,o=!0,a=M("start","brush","end"),s=6;function l(e){var n=e.property("__brush",m).selectAll(".overlay").data([Lr("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ar.overlay).merge(n).each((function(){var t=Br(this).extent;Ft(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([Lr("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ar.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return Ar[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function u(){var t=Ft(this),e=Br(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,e,n){var r=t.__brush.emitter;return!r||n&&r.clean?new h(t,e,n):r}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(){if((!e||Et.touches)&&r.apply(this,arguments)){var n,i,a,s,l,h,f,d,p,m,g,v,y=this,b=Et.target.__data__.type,x="selection"===(o&&Et.metaKey?b="overlay":b)?xr:o&&Et.altKey?Cr:Sr,w=t===Mr?null:Nr[b],S=t===Er?null:jr[b],C=Br(y),_=C.extent,k=C.selection,E=_[0][0],M=_[0][1],T=_[1][0],A=_[1][1],O=0,P=0,N=w&&S&&o&&Et.shiftKey,j=Et.touches?(v=Et.changedTouches[0].identifier,function(t){return Xe(t,Et.touches,v)}):qe,L=j(y),D=L,I=c(y,arguments,!0).beforestart();"overlay"===b?(k&&(p=!0),C.selection=k=[[n=t===Mr?E:L[0],a=t===Er?M:L[1]],[l=t===Mr?T:n,f=t===Er?A:a]]):(n=k[0][0],a=k[0][1],l=k[1][0],f=k[1][1]),i=n,s=a,h=l,d=f;var R=Ft(y).attr("pointer-events","none"),B=R.selectAll(".overlay").attr("cursor",Ar[b]);if(Et.touches)I.moved=z,I.ended=U;else{var F=Ft(Et.view).on("mousemove.brush",z,!0).on("mouseup.brush",U,!0);o&&F.on("keydown.brush",(function(){switch(Et.keyCode){case 16:N=w&&S;break;case 18:x===Sr&&(w&&(l=h-O*w,n=i+O*w),S&&(f=d-P*S,a=s+P*S),x=Cr,H());break;case 32:x!==Sr&&x!==Cr||(w<0?l=h-O:w>0&&(n=i-O),S<0?f=d-P:S>0&&(a=s-P),x=wr,B.attr("cursor",Ar.selection),H());break;default:return}br()}),!0).on("keyup.brush",(function(){switch(Et.keyCode){case 16:N&&(m=g=N=!1,H());break;case 18:x===Cr&&(w<0?l=h:w>0&&(n=i),S<0?f=d:S>0&&(a=s),x=Sr,H());break;case 32:x===wr&&(Et.altKey?(w&&(l=h-O*w,n=i+O*w),S&&(f=d-P*S,a=s+P*S),x=Cr):(w<0?l=h:w>0&&(n=i),S<0?f=d:S>0&&(a=s),x=Sr),B.attr("cursor",Ar[b]),H());break;default:return}br()}),!0),Ut(Et.view)}yr(),An(y),u.call(y),I.start()}function z(){var t=j(y);!N||m||g||(Math.abs(t[0]-D[0])>Math.abs(t[1]-D[1])?g=!0:m=!0),D=t,p=!0,br(),H()}function H(){var t;switch(O=D[0]-L[0],P=D[1]-L[1],x){case wr:case xr:w&&(O=Math.max(E-n,Math.min(T-l,O)),i=n+O,h=l+O),S&&(P=Math.max(M-a,Math.min(A-f,P)),s=a+P,d=f+P);break;case Sr:w<0?(O=Math.max(E-n,Math.min(T-n,O)),i=n+O,h=l):w>0&&(O=Math.max(E-l,Math.min(T-l,O)),i=n,h=l+O),S<0?(P=Math.max(M-a,Math.min(A-a,P)),s=a+P,d=f):S>0&&(P=Math.max(M-f,Math.min(A-f,P)),s=a,d=f+P);break;case Cr:w&&(i=Math.max(E,Math.min(T,n-O*w)),h=Math.max(E,Math.min(T,l+O*w))),S&&(s=Math.max(M,Math.min(A,a-P*S)),d=Math.max(M,Math.min(A,f+P*S)))}hei)if(Math.abs(c*s-l*u)>ei&&i){var f=n-o,d=r-a,p=s*s+l*l,m=f*f+d*d,g=Math.sqrt(p),v=Math.sqrt(h),y=i*Math.tan((Jr-Math.acos((p+h-m)/(2*g*v)))/2),b=y/v,x=y/g;Math.abs(b-1)>ei&&(this._+="L"+(t+b*u)+","+(e+b*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>u*d)+","+(this._x1=t+x*s)+","+(this._y1=e+x*l)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+a,u=e+s,c=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>ei||Math.abs(this._y1-u)>ei)&&(this._+="L"+l+","+u),n&&(h<0&&(h=h%ti+ti),h>ni?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):h>ei&&(this._+="A"+n+","+n+",0,"+ +(h>=Jr)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var oi=ii;function ai(t){return t.source}function si(t){return t.target}function li(t){return t.radius}function ui(t){return t.startAngle}function ci(t){return t.endAngle}function hi(){var t=ai,e=si,n=li,r=ui,i=ci,o=null;function a(){var a,s=Kr.call(arguments),l=t.apply(this,s),u=e.apply(this,s),c=+n.apply(this,(s[0]=l,s)),h=r.apply(this,s)-Xr,f=i.apply(this,s)-Xr,d=c*Wr(h),p=c*Vr(h),m=+n.apply(this,(s[0]=u,s)),g=r.apply(this,s)-Xr,v=i.apply(this,s)-Xr;if(o||(o=a=oi()),o.moveTo(d,p),o.arc(0,0,c,h,f),h===g&&f===v||(o.quadraticCurveTo(0,0,m*Wr(g),m*Vr(g)),o.arc(0,0,m,g,v)),o.quadraticCurveTo(0,0,d,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(t){return arguments.length?(n="function"===typeof t?t:Qr(+t),a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:Qr(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:Qr(+t),a):i},a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(t){return arguments.length?(e=t,a):e},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}var fi="$";function di(){}function pi(t,e){var n=new di;if(t instanceof di)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var l,u,c,h=-1,f=n.length,d=r[i++],p=mi(),m=a();++hr.length)return t;var o,s=i[n-1];return null!=e&&n>=r.length?o=t.entries():(o=[],t.each((function(t,e){o.push({key:e,values:a(t,n)})}))),null!=s?o.sort((function(t,e){return s(t.key,e.key)})):o}return n={object:function(t){return o(t,0,vi,yi)},map:function(t){return o(t,0,bi,xi)},entries:function(t){return a(o(t,0,bi,xi),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function vi(){return{}}function yi(t,e,n){t[e]=n}function bi(){return mi()}function xi(t,e,n){t.set(e,n)}function wi(){}var Si=mi.prototype;function Ci(t,e){var n=new wi;if(t instanceof wi)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++rIi?Math.pow(t,1/3):t/Di+ji}function Ui(t){return t>Li?t*t*t:Di*(t-ji)}function Gi(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Wi(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Vi(t){if(t instanceof qi)return new qi(t.h,t.c,t.l,t.opacity);if(t instanceof zi||(t=Ri(t)),0===t.a&&0===t.b)return new qi(NaN,0r!==d>r&&n<(f-u)*(r-c)/(d-c)+u&&(i=-i)}return i}function ho(t,e,n){var r,i,o,a;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])===(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],o=n[r],a=e[r],i<=o&&o<=a||a<=o&&o<=i)}function fo(){}var po=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function mo(){var t=1,e=1,n=i._X,r=l;function o(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(so);else{var r=(0,i.We)(t),o=r[0],s=r[1];e=(0,i.ly)(o,s,e),e=(0,i.w6)(Math.floor(o/e)*e,Math.floor(s/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var o=[],a=[];return function(n,r,i){var o,a,l,u,c,h,f=new Array,d=new Array;o=a=-1,u=n[0]>=r,po[u<<1].forEach(p);for(;++o=r,po[l|u<<1].forEach(p);po[u<<0].forEach(p);for(;++a=r,c=n[a*t]>=r,po[u<<1|c<<2].forEach(p);++o=r,h=c,c=n[a*t+o+1]>=r,po[l|u<<1|c<<2|h<<3].forEach(p);po[u|c<<3].forEach(p)}o=-1,c=n[a*t]>=r,po[c<<2].forEach(p);for(;++o=r,po[c<<2|h<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+o,t[0][1]+a],l=[t[1][0]+o,t[1][1]+a],u=s(r),c=s(l);(e=d[u])?(n=f[c])?(delete d[e.end],delete f[n.start],e===n?(e.ring.push(l),i(e.ring)):f[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(l),d[e.end=c]=e):(e=f[c])?(n=d[u])?(delete f[e.start],delete d[n.end],e===n?(e.ring.push(l),i(e.ring)):f[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete f[e.start],e.ring.unshift(r),f[e.start=u]=e):f[u]=d[c]={start:u,end:c,ring:[r,l]}}po[c<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e0?o.push([t]):a.push(t)})),a.forEach((function(t){for(var e,n=0,r=o.length;n0&&a0&&s0)||!(i>0))throw new Error("invalid size");return t=r,e=i,o},o.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?lo(ao.call(t)):lo(t),o):n},o.smooth=function(t){return arguments.length?(r=t?l:fo,o):r===l},o}function go(t,e,n){for(var r=t.width,i=t.height,o=1+(n<<1),a=0;a=n&&(s>=o&&(l-=t.data[s-o+a*r]),e.data[s-n+a*r]=l/Math.min(s+1,r-1+o-s,o))}function vo(t,e,n){for(var r=t.width,i=t.height,o=1+(n<<1),a=0;a=n&&(s>=o&&(l-=t.data[a+(s-o)*r]),e.data[a+(s-n)*r]=l/Math.min(s+1,i-1+o-s,o))}function yo(t){return t[0]}function bo(t){return t[1]}function xo(){return 1}function wo(){var t=yo,e=bo,n=xo,r=960,o=500,a=20,s=2,l=3*a,u=r+2*l>>s,c=o+2*l>>s,h=lo(20);function f(r){var o=new Float32Array(u*c),f=new Float32Array(u*c);r.forEach((function(r,i,a){var h=+t(r,i,a)+l>>s,f=+e(r,i,a)+l>>s,d=+n(r,i,a);h>=0&&h=0&&f>s),vo({width:u,height:c,data:f},{width:u,height:c,data:o},a>>s),go({width:u,height:c,data:o},{width:u,height:c,data:f},a>>s),vo({width:u,height:c,data:f},{width:u,height:c,data:o},a>>s),go({width:u,height:c,data:o},{width:u,height:c,data:f},a>>s),vo({width:u,height:c,data:f},{width:u,height:c,data:o},a>>s);var p=h(o);if(!Array.isArray(p)){var m=(0,i.Fp)(o);p=(0,i.ly)(0,m,p),(p=(0,i.w6)(0,Math.floor(m/p)*p,p)).shift()}return mo().thresholds(p).size([u,c])(o).map(d)}function d(t){return t.value*=Math.pow(2,-2*s),t.coordinates.forEach(p),t}function p(t){t.forEach(m)}function m(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,s)-l,t[1]=t[1]*Math.pow(2,s)-l}function v(){return u=r+2*(l=3*a)>>s,c=o+2*l>>s,f}return f.x=function(e){return arguments.length?(t="function"===typeof e?e:lo(+e),f):t},f.y=function(t){return arguments.length?(e="function"===typeof t?t:lo(+t),f):e},f.weight=function(t){return arguments.length?(n="function"===typeof t?t:lo(+t),f):n},f.size=function(t){if(!arguments.length)return[r,o];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0)&&!(e>=0))throw new Error("invalid size");return r=e,o=n,v()},f.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return s=Math.floor(Math.log(t)/Math.LN2),v()},f.thresholds=function(t){return arguments.length?(h="function"===typeof t?t:Array.isArray(t)?lo(ao.call(t)):lo(t),f):h},f.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),v()},f}function So(t){return function(){return t}}function Co(t,e,n,r,i,o,a,s,l,u){this.target=t,this.type=e,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=s,this.dy=l,this._=u}function _o(){return!Et.ctrlKey&&!Et.button}function ko(){return this.parentNode}function Eo(t){return null==t?{x:Et.x,y:Et.y}:t}function Mo(){return navigator.maxTouchPoints||"ontouchstart"in this}function To(){var t,e,n,r,i=_o,o=ko,a=Eo,s=Mo,l={},u=M("start","drag","end"),c=0,h=0;function f(t){t.on("mousedown.drag",d).filter(s).on("touchstart.drag",g).on("touchmove.drag",v).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(){if(!r&&i.apply(this,arguments)){var a=b("mouse",o.apply(this,arguments),qe,this,arguments);a&&(Ft(Et.view).on("mousemove.drag",p,!0).on("mouseup.drag",m,!0),Ut(Et.view),zt(),n=!1,t=Et.clientX,e=Et.clientY,a("start"))}}function p(){if(Ht(),!n){var r=Et.clientX-t,i=Et.clientY-e;n=r*r+i*i>h}l.mouse("drag")}function m(){Ft(Et.view).on("mousemove.drag mouseup.drag",null),Gt(Et.view,n),Ht(),l.mouse("end")}function g(){if(i.apply(this,arguments)){var t,e,n=Et.changedTouches,r=o.apply(this,arguments),a=n.length;for(t=0;t9999?"+"+Io(t,6):Io(t,4)}(t.getUTCFullYear())+"-"+Io(t.getUTCMonth()+1,2)+"-"+Io(t.getUTCDate(),2)+(i?"T"+Io(e,2)+":"+Io(n,2)+":"+Io(r,2)+"."+Io(i,3)+"Z":r?"T"+Io(e,2)+":"+Io(n,2)+":"+Io(r,2)+"Z":n||e?"T"+Io(e,2)+":"+Io(n,2)+"Z":"")}function Bo(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function r(t,e){var r,i=[],o=t.length,a=0,s=0,l=o<=0,u=!1;function c(){if(l)return Oo;if(u)return u=!1,Ao;var e,r,i=a;if(t.charCodeAt(i)===Po){for(;a++=o?l=!0:(r=t.charCodeAt(a++))===No?u=!0:r===jo&&(u=!0,t.charCodeAt(a)===No&&++a),t.slice(i+1,e-1).replace(/""/g,'"')}for(;a=(o=(m+v)/2))?m=o:v=o,(c=n>=(a=(g+y)/2))?g=a:y=a,i=d,!(d=d[h=c<<1|u]))return i[h]=p,t;if(s=+t._x.call(null,d.data),l=+t._y.call(null,d.data),e===s&&n===l)return p.next=d,i?i[h]=p:t._root=p,t;do{i=i?i[h]=new Array(4):t._root=new Array(4),(u=e>=(o=(m+v)/2))?m=o:v=o,(c=n>=(a=(g+y)/2))?g=a:y=a}while((h=c<<1|u)===(f=(l>=a)<<1|s>=o));return i[f]=d,i[h]=p,t}function cs(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function hs(t){return t[0]}function fs(t){return t[1]}function ds(t,e,n){var r=new ps(null==e?hs:e,null==n?fs:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function ps(t,e,n,r,i,o){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function ms(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var gs=ds.prototype=ps.prototype;function vs(t){return t.x+t.vx}function ys(t){return t.y+t.vy}function bs(t){var e,n,r=1,i=1;function o(){for(var t,o,s,l,u,c,h,f=e.length,d=0;dl+d||iu+d||os.index){var p=l-a.x-a.vx,m=u-a.y-a.vy,g=p*p+m*m;gt.r&&(t.r=t[e].r)}function s(){if(e){var r,i,o=e.length;for(n=new Array(o),r=0;rc&&(c=r),ih&&(h=i));if(l>c||u>h)return this;for(this.cover(l,u).cover(c,h),n=0;nt||t>=i||r>e||e>=o;)switch(s=(ef||(o=l.y0)>d||(a=l.x1)=v)<<1|t>=g)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-u],p[p.length-1-u]=l)}else{var y=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),x=y*y+b*b;if(x=(s=(p+g)/2))?p=s:g=s,(c=a>=(l=(m+v)/2))?m=l:v=l,e=d,!(d=d[h=c<<1|u]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):e?(i?e[h]=i:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=i,this)},gs.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?s.remove(t):s.set(t,d(n)),e):s.get(t)},find:function(e,n,r){var i,o,a,s,l,u=0,c=t.length;for(null==r?r=1/0:r*=r,u=0;u1?(u.on(t,n),e):u.on(t)}}}function Ts(){var t,e,n,r,i=ss(-30),o=1,a=1/0,s=.81;function l(r){var i,o=t.length,a=ds(t,Cs,_s).visitAfter(c);for(n=r,i=0;i=a)){(t.data!==e||t.next)&&(0===c&&(d+=(c=ls())*c),0===h&&(d+=(h=ls())*h),d1?r[0]+r.slice(2):r,+t.slice(n+1)]}function js(t){return(t=Ns(Math.abs(t)))?t[1]:NaN}var Ls,Ds=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Is(t){if(!(e=Ds.exec(t)))throw new Error("invalid format: "+t);var e;return new Rs({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function Rs(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function Bs(t,e){var n=Ns(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}Is.prototype=Rs.prototype,Rs.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Fs={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Bs(100*t,e)},r:Bs,s:function(t,e){var n=Ns(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Ls=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Ns(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function zs(t){return t}var Hs,Us,Gs,Ws=Array.prototype.map,Vs=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Ys(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?zs:(e=Ws.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?zs:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ws.call(t.numerals,String)),l=void 0===t.percent?"%":t.percent+"",u=void 0===t.minus?"-":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=Is(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,p=t.width,m=t.comma,g=t.precision,v=t.trim,y=t.type;"n"===y?(m=!0,y="g"):Fs[y]||(void 0===g&&(g=12),v=!0,y="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===f?i:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===f?o:/[%p]/.test(y)?l:"",w=Fs[y],S=/[defgprs%]/.test(y);function C(t){var i,o,l,f=b,C=x;if("c"===y)C=w(t)+C,t="";else{var _=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),g),v&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),_&&0===+t&&"+"!==h&&(_=!1),f=(_?"("===h?h:u:"-"===h||"("===h?"":h)+f,C=("s"===y?Vs[8+Ls/3]:"")+C+(_&&"("===h?")":""),S)for(i=-1,o=t.length;++i(l=t.charCodeAt(i))||l>57){C=(46===l?a+t.slice(i+1):t.slice(i))+C,t=t.slice(0,i);break}}m&&!d&&(t=r(t,1/0));var k=f.length+t.length+C.length,E=k>1)+f+t+C+E.slice(k);break;default:t=E+f+t+C}return s(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return t+""},C}return{format:h,formatPrefix:function(t,e){var n=h(((t=Is(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(js(e)/3))),i=Math.pow(10,-r),o=Vs[8+r/3];return function(t){return n(i*t)+o}}}}function Xs(t){return Hs=Ys(t),Us=Hs.format,Gs=Hs.formatPrefix,Hs}function qs(t){return Math.max(0,-js(Math.abs(t)))}function Zs(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(js(e)/3)))-js(Math.abs(t)))}function $s(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,js(e)-js(t))+1}function Ks(){return new Qs}function Qs(){this.reset()}Xs({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),Qs.prototype={constructor:Qs,reset:function(){this.s=this.t=0},add:function(t){tl(Js,t,this.t),tl(this,Js.s,this.s),this.s?this.t+=Js.t:this.s=Js.t},valueOf:function(){return this.s}};var Js=new Qs;function tl(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var el=1e-6,nl=1e-12,rl=Math.PI,il=rl/2,ol=rl/4,al=2*rl,sl=180/rl,ll=rl/180,ul=Math.abs,cl=Math.atan,hl=Math.atan2,fl=Math.cos,dl=Math.ceil,pl=Math.exp,ml=(Math.floor,Math.log),gl=Math.pow,vl=Math.sin,yl=Math.sign||function(t){return t>0?1:t<0?-1:0},bl=Math.sqrt,xl=Math.tan;function wl(t){return t>1?0:t<-1?rl:Math.acos(t)}function Sl(t){return t>1?il:t<-1?-il:Math.asin(t)}function Cl(t){return(t=vl(t/2))*t}function _l(){}function kl(t,e){t&&Ml.hasOwnProperty(t.type)&&Ml[t.type](t,e)}var El={Feature:function(t,e){kl(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,o=fl(e=(e*=ll)/2+ol),a=vl(e),s=Dl*a,l=Ll*o+s*fl(i),u=s*r*vl(i);Il.add(hl(u,l)),jl=t,Ll=o,Dl=a}function Gl(t){return Rl.reset(),Ol(t,Bl),2*Rl}function Wl(t){return[hl(t[1],t[0]),Sl(t[2])]}function Vl(t){var e=t[0],n=t[1],r=fl(n);return[r*fl(e),r*vl(e),vl(n)]}function Yl(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Xl(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ql(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Zl(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function $l(t){var e=bl(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var Kl,Ql,Jl,tu,eu,nu,ru,iu,ou,au,su,lu,uu,cu,hu,fu,du,pu,mu,gu,vu,yu,bu,xu,wu,Su,Cu=Ks(),_u={point:ku,lineStart:Mu,lineEnd:Tu,polygonStart:function(){_u.point=Au,_u.lineStart=Ou,_u.lineEnd=Pu,Cu.reset(),Bl.polygonStart()},polygonEnd:function(){Bl.polygonEnd(),_u.point=ku,_u.lineStart=Mu,_u.lineEnd=Tu,Il<0?(Kl=-(Jl=180),Ql=-(tu=90)):Cu>el?tu=90:Cu<-el&&(Ql=-90),au[0]=Kl,au[1]=Jl},sphere:function(){Kl=-(Jl=180),Ql=-(tu=90)}};function ku(t,e){ou.push(au=[Kl=t,Jl=t]),etu&&(tu=e)}function Eu(t,e){var n=Vl([t*ll,e*ll]);if(iu){var r=Xl(iu,n),i=Xl([r[1],-r[0],0],r);$l(i),i=Wl(i);var o,a=t-eu,s=a>0?1:-1,l=i[0]*sl*s,u=ul(a)>180;u^(s*eutu&&(tu=o):u^(s*eu<(l=(l+360)%360-180)&&ltu&&(tu=e)),u?tNu(Kl,Jl)&&(Jl=t):Nu(t,Jl)>Nu(Kl,Jl)&&(Kl=t):Jl>=Kl?(tJl&&(Jl=t)):t>eu?Nu(Kl,t)>Nu(Kl,Jl)&&(Jl=t):Nu(t,Jl)>Nu(Kl,Jl)&&(Kl=t)}else ou.push(au=[Kl=t,Jl=t]);etu&&(tu=e),iu=n,eu=t}function Mu(){_u.point=Eu}function Tu(){au[0]=Kl,au[1]=Jl,_u.point=ku,iu=null}function Au(t,e){if(iu){var n=t-eu;Cu.add(ul(n)>180?n+(n>0?360:-360):n)}else nu=t,ru=e;Bl.point(t,e),Eu(t,e)}function Ou(){Bl.lineStart()}function Pu(){Au(nu,ru),Bl.lineEnd(),ul(Cu)>el&&(Kl=-(Jl=180)),au[0]=Kl,au[1]=Jl,iu=null}function Nu(t,e){return(e-=t)<0?e+360:e}function ju(t,e){return t[0]-e[0]}function Lu(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eNu(r[0],r[1])&&(r[1]=i[1]),Nu(i[0],r[1])>Nu(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(s=Nu(r[1],i[0]))>a&&(a=s,Kl=i[0],Jl=r[1])}return ou=au=null,Kl===1/0||Ql===1/0?[[NaN,NaN],[NaN,NaN]]:[[Kl,Ql],[Jl,tu]]}var Iu={sphere:_l,point:Ru,lineStart:Fu,lineEnd:Uu,polygonStart:function(){Iu.lineStart=Gu,Iu.lineEnd=Wu},polygonEnd:function(){Iu.lineStart=Fu,Iu.lineEnd=Uu}};function Ru(t,e){t*=ll;var n=fl(e*=ll);Bu(n*fl(t),n*vl(t),vl(e))}function Bu(t,e,n){++su,uu+=(t-uu)/su,cu+=(e-cu)/su,hu+=(n-hu)/su}function Fu(){Iu.point=zu}function zu(t,e){t*=ll;var n=fl(e*=ll);xu=n*fl(t),wu=n*vl(t),Su=vl(e),Iu.point=Hu,Bu(xu,wu,Su)}function Hu(t,e){t*=ll;var n=fl(e*=ll),r=n*fl(t),i=n*vl(t),o=vl(e),a=hl(bl((a=wu*o-Su*i)*a+(a=Su*r-xu*o)*a+(a=xu*i-wu*r)*a),xu*r+wu*i+Su*o);lu+=a,fu+=a*(xu+(xu=r)),du+=a*(wu+(wu=i)),pu+=a*(Su+(Su=o)),Bu(xu,wu,Su)}function Uu(){Iu.point=Ru}function Gu(){Iu.point=Vu}function Wu(){Yu(yu,bu),Iu.point=Ru}function Vu(t,e){yu=t,bu=e,t*=ll,e*=ll,Iu.point=Yu;var n=fl(e);xu=n*fl(t),wu=n*vl(t),Su=vl(e),Bu(xu,wu,Su)}function Yu(t,e){t*=ll;var n=fl(e*=ll),r=n*fl(t),i=n*vl(t),o=vl(e),a=wu*o-Su*i,s=Su*r-xu*o,l=xu*i-wu*r,u=bl(a*a+s*s+l*l),c=Sl(u),h=u&&-c/u;mu+=h*a,gu+=h*s,vu+=h*l,lu+=c,fu+=c*(xu+(xu=r)),du+=c*(wu+(wu=i)),pu+=c*(Su+(Su=o)),Bu(xu,wu,Su)}function Xu(t){su=lu=uu=cu=hu=fu=du=pu=mu=gu=vu=0,Ol(t,Iu);var e=mu,n=gu,r=vu,i=e*e+n*n+r*r;return irl?t+Math.round(-t/al)*al:t,e]}function Ku(t,e,n){return(t%=al)?e||n?Zu(Ju(t),tc(e,n)):Ju(t):e||n?tc(e,n):$u}function Qu(t){return function(e,n){return[(e+=t)>rl?e-al:e<-rl?e+al:e,n]}}function Ju(t){var e=Qu(t);return e.invert=Qu(-t),e}function tc(t,e){var n=fl(t),r=vl(t),i=fl(e),o=vl(e);function a(t,e){var a=fl(e),s=fl(t)*a,l=vl(t)*a,u=vl(e),c=u*n+s*r;return[hl(l*i-c*o,s*n-u*r),Sl(c*i+l*o)]}return a.invert=function(t,e){var a=fl(e),s=fl(t)*a,l=vl(t)*a,u=vl(e),c=u*i-l*o;return[hl(l*i+u*o,s*n+c*r),Sl(c*n-s*r)]},a}function ec(t){function e(e){return(e=t(e[0]*ll,e[1]*ll))[0]*=sl,e[1]*=sl,e}return t=Ku(t[0]*ll,t[1]*ll,t.length>2?t[2]*ll:0),e.invert=function(e){return(e=t.invert(e[0]*ll,e[1]*ll))[0]*=sl,e[1]*=sl,e},e}function nc(t,e,n,r,i,o){if(n){var a=fl(e),s=vl(e),l=r*n;null==i?(i=e+r*al,o=e-l/2):(i=rc(a,i),o=rc(a,o),(r>0?io)&&(i+=r*al));for(var u,c=i;r>0?c>o:c1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function ac(t,e){return ul(t[0]-e[0])=0;--o)i.point((c=u[o])[0],c[1]);else r(f.x,f.p.x,-1,i);f=f.p}u=(f=f.o).z,d=!d}while(!f.v);i.lineEnd()}}}function uc(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,k=_*C,E=k>rl,M=m*w;if(cc.add(hl(M*_*vl(k),g*S+M*fl(k))),a+=E?C+_*al:C,E^d>=n^b>=n){var T=Xl(Vl(f),Vl(y));$l(T);var A=Xl(o,T);$l(A);var O=(E^C>=0?-1:1)*Sl(A[2]);(r>O||r===O&&(T[0]||T[1]))&&(s+=E^C>=0?1:-1)}}return(a<-el||a0){for(f||(o.polygonStart(),f=!0),o.lineStart(),t=0;t1&&2&i&&u.push(u.pop().concat(u.shift())),s.push(u.filter(pc))}return d}}function pc(t){return t.length>1}function mc(t,e){return((t=t.x)[0]<0?t[1]-il-el:il-t[1])-((e=e.x)[0]<0?e[1]-il-el:il-e[1])}var gc=dc((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?rl:-rl,l=ul(o-n);ul(l-rl)0?il:-il),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),t.point(o,r),e=0):i!==s&&l>=rl&&(ul(n-i)el?cl((vl(e)*(o=fl(r))*vl(n)-vl(r)*(i=fl(e))*vl(t))/(i*o*a)):(e+r)/2}(n,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(s,r),e=0),t.point(n=o,r=a),i=s},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*il,r.point(-rl,i),r.point(0,i),r.point(rl,i),r.point(rl,0),r.point(rl,-i),r.point(0,-i),r.point(-rl,-i),r.point(-rl,0),r.point(-rl,i);else if(ul(t[0]-e[0])>el){var o=t[0]0,i=ul(e)>el;function o(t,n){return fl(t)*fl(n)>e}function a(t,n,r){var i=[1,0,0],o=Xl(Vl(t),Vl(n)),a=Yl(o,o),s=o[0],l=a-s*s;if(!l)return!r&&t;var u=e*a/l,c=-e*s/l,h=Xl(i,o),f=Zl(i,u);ql(f,Zl(o,c));var d=h,p=Yl(f,d),m=Yl(d,d),g=p*p-m*(Yl(f,f)-1);if(!(g<0)){var v=bl(g),y=Zl(d,(-p-v)/m);if(ql(y,f),y=Wl(y),!r)return y;var b,x=t[0],w=n[0],S=t[1],C=n[1];w0^y[1]<(ul(y[0]-x)rl^(x<=y[0]&&y[0]<=w)){var E=Zl(d,(-p+v)/m);return ql(E,f),[y,Wl(E)]}}}function s(e,n){var i=r?t:rl-t,o=0;return e<-i?o|=1:e>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return dc(o,(function(t){var e,n,l,u,c;return{lineStart:function(){u=l=!1,c=1},point:function(h,f){var d,p=[h,f],m=o(h,f),g=r?m?0:s(h,f):m?s(h+(h<0?rl:-rl),f):0;if(!e&&(u=l=m)&&t.lineStart(),m!==l&&(!(d=a(e,p))||ac(e,d)||ac(p,d))&&(p[2]=1),m!==l)c=0,m?(t.lineStart(),d=a(p,e),t.point(d[0],d[1])):(d=a(e,p),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&&e&&r^m){var v;g&n||!(v=a(p,e,!0))||(c=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1],3)))}!m||e&&ac(e,p)||t.point(p[0],p[1]),e=p,l=m,n=g},lineEnd:function(){l&&t.lineEnd(),e=null},clean:function(){return c|(u&&l)<<1}}}),(function(e,r,i,o){nc(o,t,n,i,e,r)}),r?[0,-t]:[-rl,t-rl])}var yc=1e9,bc=-yc;function xc(t,e,n,r){function o(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function a(i,o,a,l){var c=0,h=0;if(null==i||(c=s(i,a))!==(h=s(o,a))||u(i,o)<0^a>0)do{l.point(0===c||3===c?t:n,c>1?r:e)}while((c=(c+a+4)%4)!==h);else l.point(o[0],o[1])}function s(r,i){return ul(r[0]-t)0?0:3:ul(r[0]-n)0?2:1:ul(r[1]-e)0?1:0:i>0?3:2}function l(t,e){return u(t.x,e.x)}function u(t,e){var n=s(t,1),r=s(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(s){var u,c,h,f,d,p,m,g,v,y,b,x=s,w=oc(),S={point:C,lineStart:function(){S.point=_,c&&c.push(h=[]);y=!0,v=!1,m=g=NaN},lineEnd:function(){u&&(_(f,d),p&&v&&w.rejoin(),u.push(w.result()));S.point=C,v&&x.lineEnd()},polygonStart:function(){x=w,u=[],c=[],b=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=c.length;nr&&(f-o)*(r-a)>(d-a)*(t-o)&&++e:d<=r&&(f-o)*(r-a)<(d-a)*(t-o)&&--e;return e}(),n=b&&e,o=(u=(0,i.TS)(u)).length;(n||o)&&(s.polygonStart(),n&&(s.lineStart(),a(null,null,1,s),s.lineEnd()),o&&lc(u,l,e,a,s),s.polygonEnd());x=s,u=c=h=null}};function C(t,e){o(t,e)&&x.point(t,e)}function _(i,a){var s=o(i,a);if(c&&h.push([i,a]),y)f=i,d=a,p=s,y=!1,s&&(x.lineStart(),x.point(i,a));else if(s&&v)x.point(i,a);else{var l=[m=Math.max(bc,Math.min(yc,m)),g=Math.max(bc,Math.min(yc,g))],u=[i=Math.max(bc,Math.min(yc,i)),a=Math.max(bc,Math.min(yc,a))];!function(t,e,n,r,i,o){var a,s=t[0],l=t[1],u=0,c=1,h=e[0]-s,f=e[1]-l;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>c)return;a>u&&(u=a)}if(a=i-s,h||!(a<0)){if(a/=h,h<0){if(a>c)return;a>u&&(u=a)}else if(h>0){if(a0)){if(a/=f,f<0){if(a0){if(a>c)return;a>u&&(u=a)}if(a=o-l,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>u&&(u=a)}else if(f>0){if(a0&&(t[0]=s+u*h,t[1]=l+u*f),c<1&&(e[0]=s+c*h,e[1]=l+c*f),!0}}}}}(l,u,t,e,n,r)?s&&(x.lineStart(),x.point(i,a),b=!1):(v||(x.lineStart(),x.point(l[0],l[1])),x.point(u[0],u[1]),s||x.lineEnd(),b=!1)}m=i,g=a,v=s}return S}}function wc(){var t,e,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=xc(r,i,o,a)(e=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[r,i],[o,a]]}}}var Sc,Cc,_c,kc=Ks(),Ec={sphere:_l,point:_l,lineStart:function(){Ec.point=Tc,Ec.lineEnd=Mc},lineEnd:_l,polygonStart:_l,polygonEnd:_l};function Mc(){Ec.point=Ec.lineEnd=_l}function Tc(t,e){Sc=t*=ll,Cc=vl(e*=ll),_c=fl(e),Ec.point=Ac}function Ac(t,e){t*=ll;var n=vl(e*=ll),r=fl(e),i=ul(t-Sc),o=fl(i),a=r*vl(i),s=_c*n-Cc*r*o,l=Cc*n+_c*r*o;kc.add(hl(bl(a*a+s*s),l)),Sc=t,Cc=n,_c=r}function Oc(t){return kc.reset(),Ol(t,Ec),+kc}var Pc=[null,null],Nc={type:"LineString",coordinates:Pc};function jc(t,e){return Pc[0]=t,Pc[1]=e,Oc(Nc)}var Lc={Feature:function(t,e){return Ic(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r0&&(i=jc(t[o],t[o-1]))>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))el})).map(u)).concat((0,i.w6)(dl(a/p)*p,o,p).filter((function(t){return ul(t%g)>el})).map(c))}return y.lines=function(){return b().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[h(r).concat(f(s).slice(1),h(n).reverse().slice(1),f(l).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],r>n&&(t=r,r=n,n=t),l>s&&(t=l,l=s,s=t),y.precision(v)):[[r,l],[n,s]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],o=+n[1][1],e>t&&(n=e,e=t,t=n),a>o&&(n=a,a=o,o=n),y.precision(v)):[[e,a],[t,o]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(m=+t[0],g=+t[1],y):[m,g]},y.stepMinor=function(t){return arguments.length?(d=+t[0],p=+t[1],y):[d,p]},y.precision=function(i){return arguments.length?(v=+i,u=Gc(a,o,90),c=Wc(e,t,v),h=Gc(l,s,90),f=Wc(r,n,v),y):v},y.extentMajor([[-180,-90+el],[180,90-el]]).extentMinor([[-180,-80-el],[180,80+el]])}function Yc(){return Vc()()}function Xc(t,e){var n=t[0]*ll,r=t[1]*ll,i=e[0]*ll,o=e[1]*ll,a=fl(r),s=vl(r),l=fl(o),u=vl(o),c=a*fl(n),h=a*vl(n),f=l*fl(i),d=l*vl(i),p=2*Sl(bl(Cl(o-r)+a*l*Cl(i-n))),m=vl(p),g=p?function(t){var e=vl(t*=p)/m,n=vl(p-t)/m,r=n*c+e*f,i=n*h+e*d,o=n*s+e*u;return[hl(i,r)*sl,hl(o,bl(r*r+i*i))*sl]}:function(){return[n*sl,r*sl]};return g.distance=p,g}function qc(t){return t}var Zc,$c,Kc,Qc,Jc=Ks(),th=Ks(),eh={point:_l,lineStart:_l,lineEnd:_l,polygonStart:function(){eh.lineStart=nh,eh.lineEnd=oh},polygonEnd:function(){eh.lineStart=eh.lineEnd=eh.point=_l,Jc.add(ul(th)),th.reset()},result:function(){var t=Jc/2;return Jc.reset(),t}};function nh(){eh.point=rh}function rh(t,e){eh.point=ih,Zc=Kc=t,$c=Qc=e}function ih(t,e){th.add(Qc*t-Kc*e),Kc=t,Qc=e}function oh(){ih(Zc,$c)}var ah=eh,sh=1/0,lh=sh,uh=-sh,ch=uh,hh={point:function(t,e){tuh&&(uh=t);ech&&(ch=e)},lineStart:_l,lineEnd:_l,polygonStart:_l,polygonEnd:_l,result:function(){var t=[[sh,lh],[uh,ch]];return uh=ch=-(lh=sh=1/0),t}};var fh,dh,ph,mh,gh=hh,vh=0,yh=0,bh=0,xh=0,wh=0,Sh=0,Ch=0,_h=0,kh=0,Eh={point:Mh,lineStart:Th,lineEnd:Ph,polygonStart:function(){Eh.lineStart=Nh,Eh.lineEnd=jh},polygonEnd:function(){Eh.point=Mh,Eh.lineStart=Th,Eh.lineEnd=Ph},result:function(){var t=kh?[Ch/kh,_h/kh]:Sh?[xh/Sh,wh/Sh]:bh?[vh/bh,yh/bh]:[NaN,NaN];return vh=yh=bh=xh=wh=Sh=Ch=_h=kh=0,t}};function Mh(t,e){vh+=t,yh+=e,++bh}function Th(){Eh.point=Ah}function Ah(t,e){Eh.point=Oh,Mh(ph=t,mh=e)}function Oh(t,e){var n=t-ph,r=e-mh,i=bl(n*n+r*r);xh+=i*(ph+t)/2,wh+=i*(mh+e)/2,Sh+=i,Mh(ph=t,mh=e)}function Ph(){Eh.point=Mh}function Nh(){Eh.point=Lh}function jh(){Dh(fh,dh)}function Lh(t,e){Eh.point=Dh,Mh(fh=ph=t,dh=mh=e)}function Dh(t,e){var n=t-ph,r=e-mh,i=bl(n*n+r*r);xh+=i*(ph+t)/2,wh+=i*(mh+e)/2,Sh+=i,Ch+=(i=mh*t-ph*e)*(ph+t),_h+=i*(mh+e),kh+=3*i,Mh(ph=t,mh=e)}var Ih=Eh;function Rh(t){this._context=t}Rh.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,al)}},result:_l};var Bh,Fh,zh,Hh,Uh,Gh=Ks(),Wh={point:_l,lineStart:function(){Wh.point=Vh},lineEnd:function(){Bh&&Yh(Fh,zh),Wh.point=_l},polygonStart:function(){Bh=!0},polygonEnd:function(){Bh=null},result:function(){var t=+Gh;return Gh.reset(),t}};function Vh(t,e){Wh.point=Yh,Fh=Hh=t,zh=Uh=e}function Yh(t,e){Hh-=t,Uh-=e,Gh.add(bl(Hh*Hh+Uh*Uh)),Hh=t,Uh=e}var Xh=Wh;function qh(){this._string=[]}function Zh(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function $h(t,e){var n,r,i=4.5;function o(t){return t&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),Ol(t,n(r))),r.result()}return o.area=function(t){return Ol(t,n(ah)),ah.result()},o.measure=function(t){return Ol(t,n(Xh)),Xh.result()},o.bounds=function(t){return Ol(t,n(gh)),gh.result()},o.centroid=function(t){return Ol(t,n(Ih)),Ih.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,qc):(t=e).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(e=null,new qh):new Rh(e=t),"function"!==typeof i&&r.pointRadius(i),o):e},o.pointRadius=function(t){return arguments.length?(i="function"===typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(e)}function Kh(t){return{stream:Qh(t)}}function Qh(t){return function(e){var n=new Jh;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Jh(){}function tf(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Ol(n,t.stream(gh)),e(gh.result()),null!=r&&t.clipExtent(r),t}function ef(t,e,n){return tf(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+e[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(i-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function nf(t,e,n){return ef(t,[[0,0],e],n)}function rf(t,e,n){return tf(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];t.scale(150*i).translate([o,a])}),n)}function of(t,e,n){return tf(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([o,a])}),n)}qh.prototype={_radius:4.5,_circle:Zh(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Zh(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Jh.prototype={constructor:Jh,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var af=16,sf=fl(30*ll);function lf(t,e){return+e?function(t,e){function n(r,i,o,a,s,l,u,c,h,f,d,p,m,g){var v=u-r,y=c-i,b=v*v+y*y;if(b>4*e&&m--){var x=a+f,w=s+d,S=l+p,C=bl(x*x+w*w+S*S),_=Sl(S/=C),k=ul(ul(S)-1)e||ul((v*A+y*O)/b-.5)>.3||a*f+s*d+l*p2?t[2]%360*ll:0,A()):[g*sl,v*sl,y*sl]},M.angle=function(t){return arguments.length?(b=t%360*ll,A()):b*sl},M.reflectX=function(t){return arguments.length?(x=t?-1:1,A()):x<0},M.reflectY=function(t){return arguments.length?(w=t?-1:1,A()):w<0},M.precision=function(t){return arguments.length?(a=lf(s,E=t*t),O()):bl(E)},M.fitExtent=function(t,e){return ef(M,t,e)},M.fitSize=function(t,e){return nf(M,t,e)},M.fitWidth=function(t,e){return rf(M,t,e)},M.fitHeight=function(t,e){return of(M,t,e)},function(){return e=t.apply(this,arguments),M.invert=e.invert&&T,A()}}function pf(t){var e=0,n=rl/3,r=df(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*ll,n=t[1]*ll):[e*sl,n*sl]},i}function mf(t,e){var n=vl(t),r=(n+vl(e))/2;if(ul(r)=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?l:a).invert(t)},c.stream=function(n){return t&&e===n?t:t=function(t){var e=t.length;return{point:function(n,r){for(var i=-1;++i0?e<-il+el&&(e=-il+el):e>il-el&&(e=il-el);var n=i/gl(Tf(e),r);return[n*vl(r*t),i-n*fl(r*t)]}return o.invert=function(t,e){var n=i-e,o=yl(r)*bl(t*t+n*n),a=hl(t,ul(n))*yl(n);return n*r<0&&(a-=rl*yl(t)*yl(n)),[a/r,2*cl(gl(i/o,1/r))-il]},o}function Of(){return pf(Af).scale(109.5).parallels([30,30])}function Pf(t,e){return[t,e]}function Nf(){return ff(Pf).scale(152.63)}function jf(t,e){var n=fl(t),r=t===e?vl(t):(n-fl(e))/(e-t),i=n/r+t;if(ul(r)2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function Jf(t,e){return t.parent===e.parent?1:2}function td(t,e){return t+e.x}function ed(t,e){return Math.max(t,e.y)}function nd(){var t=Jf,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(td,0)/t.length}(n),e.y=function(t){return 1+t.reduce(ed,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=function(t){for(var e;e=t.children;)t=e[0];return t}(i),l=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),u=s.x-t(s,l)/2,c=l.x+t(l,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-u)/(c-u)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function rd(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function id(t,e){var n,r,i,o,a,s=new ld(t),l=+t.value&&(s.value=t.value),u=[s];for(null==e&&(e=od);n=u.pop();)if(l&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)u.push(r=n.children[o]=new ld(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(sd)}function od(t){return t.children}function ad(t){t.data=t.data.data}function sd(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function ld(t){this.data=t,this.depth=this.height=0,this.parent=null}zf.invert=function(t,e){for(var n,r=e,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=n=(r*(Df+If*i+o*(Rf+Bf*i))-e)/(Df+3*If*i+o*(7*Rf+9*Bf*i)))*r)*i*i,!(ul(n)el&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Xf.invert=xf(Sl),Zf.invert=xf((function(t){return 2*cl(t)})),Kf.invert=function(t,e){return[-e,2*cl(pl(t))-il]},ld.prototype=id.prototype={constructor:ld,count:function(){return this.eachAfter(rd)},each:function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return id(this).eachBefore(ad)}};var ud=Array.prototype.slice;function cd(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(ud.call(t))).length,o=[];r0&&n*n>r*r+i*i}function pd(t,e){for(var n=0;n(a*=a)?(r=(u+a-i)/(2*u),o=Math.sqrt(Math.max(0,a/u-r*r)),n.x=t.x-r*s-o*l,n.y=t.y-r*l+o*s):(r=(u+i-a)/(2*u),o=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-o*l,n.y=e.y+r*l+o*s)):(n.x=e.x+n.r,n.y=e.y)}function bd(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function xd(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function wd(t){this._=t,this.next=null,this.previous=null}function Sd(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,s,l,u,c,h;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;yd(n,e,r=t[2]),e=new wd(e),n=new wd(n),r=new wd(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=_d(e),n):t},n.parentId=function(t){return arguments.length?(e=_d(t),n):e},n}function Hd(t,e){return t.parent===e.parent?1:2}function Ud(t){var e=t.children;return e?e[0]:t.t}function Gd(t){var e=t.children;return e?e[e.length-1]:t.t}function Wd(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Vd(t,e,n){return t.a.parent===e.parent?t.a:n}function Yd(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function Xd(){var t=Hd,e=1,n=1,r=null;function i(i){var l=function(t){for(var e,n,r,i,o,a=new Yd(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new Yd(r[i],i)),n.parent=e;return(a.parent=new Yd(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var u=i,c=i,h=i;i.eachBefore((function(t){t.xc.x&&(c=t),t.depth>h.depth&&(h=t)}));var f=u===c?1:t(u,c)/2,d=f-u.x,p=e/(c.x+f+d),m=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*m}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,l=o.parent.children[0],u=o.m,c=a.m,h=s.m,f=l.m;s=Gd(s),o=Ud(o),s&&o;)l=Ud(l),(a=Gd(a)).a=e,(i=s.z+h-o.z-u+t(s._,o._))>0&&(Wd(Vd(s,e,r),e,i),u+=i,c+=i),h+=s.m,u+=o.m,f+=l.m,c+=a.m;s&&!Gd(a)&&(a.t=s,a.m+=h-c),o&&!Ud(l)&&(l.t=o,l.m+=u-f,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function qd(t,e,n,r,i){for(var o,a=t.children,s=-1,l=a.length,u=t.value&&(i-n)/t.value;++sf&&(f=s),g=c*c*m,(d=Math.max(f/g,g/h))>p){c-=s;break}p=d}v.push(a={value:c,dice:l1?e:1)},n}(Zd);function Qd(){var t=Kd,e=!1,n=1,r=1,i=[0],o=kd,a=kd,s=kd,l=kd,u=kd;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(Nd),t}function h(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,h=e.x1-n,f=e.y1-n;h=n-1){var c=s[e];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=l)}var h=u[e],f=r/2+h,d=e+1,p=n-1;for(;d>>1;u[m]l-o){var y=(i*v+a*g)/r;t(e,d,g,i,o,y,l),t(d,n,v,y,o,a,l)}else{var b=(o*v+l*g)/r;t(e,d,g,i,o,a,b),t(d,n,v,i,b,a,l)}}(0,l,t.value,e,n,r,i)}function tp(t,e,n,r,i){(1&t.depth?qd:jd)(t,e,n,r,i)}var ep=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,l,u,c,h=-1,f=a.length,d=t.value;++h1?e:1)},n}(Zd);function np(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function rp(t,e){var n=Me(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}function ip(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var op=Math.SQRT2,ap=2,sp=4,lp=1e-12;function up(t){return((t=Math.exp(t))+1/t)/2}function cp(t,e){var n,r,i=t[0],o=t[1],a=t[2],s=e[0],l=e[1],u=e[2],c=s-i,h=l-o,f=c*c+h*h;if(f1&&kp(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Tp(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)u.push(t[r[o[e]][2]]);for(e=+s;es!==u>s&&a<(l-n)*(s-r)/(u-r)+n&&(c=!c),l=n,u=r;return c}function Op(t){for(var e,n,r=-1,i=t.length,o=t[i-1],a=o[0],s=o[1],l=0;++r1);return t+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(Pp),Lp=function t(e){function n(){var t=jp.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(Pp),Dp=function t(e){function n(t){return function(){for(var n=0,r=0;rr&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function Jp(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i2?tm:Jp,i=o=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(u(e)))}return h.invert=function(n){return u(e((o||(o=r(s,a.map(t),Fe)))(n)))},h.domain=function(t){return arguments.length?(a=Hp.call(t,qp),u===$p||(u=Qp(a)),c()):a.slice()},h.range=function(t){return arguments.length?(s=Up.call(t),c()):s.slice()},h.rangeRound=function(t){return s=Up.call(t),l=ip,c()},h.clamp=function(t){return arguments.length?(u=t?Qp(a):$p,h):u!==$p},h.interpolate=function(t){return arguments.length?(l=t,c()):l},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,c()}}function rm(t,e){return nm()(t,e)}function im(t,e,n,r){var o,a=(0,i.ly)(t,e,n);switch((r=Is(null==r?",f":r)).type){case"s":var s=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=Zs(a,s))||(r.precision=o),Gs(r,s);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=$s(a,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=qs(a))||(r.precision=o-2*("%"===r.type))}return Us(r)}function om(t){var e=t.domain;return t.ticks=function(t){var n=e();return(0,i.sd)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return im(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,o=e(),a=0,s=o.length-1,l=o[a],u=o[s];return u0?(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,r=(0,i.G9)(l,u,n)):r<0&&(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,r=(0,i.G9)(l,u,n)),r>0?(o[a]=Math.floor(l/r)*r,o[s]=Math.ceil(u/r)*r,e(o)):r<0&&(o[a]=Math.ceil(l*r)/r,o[s]=Math.floor(u*r)/r,e(o)),t},t}function am(){var t=rm($p,$p);return t.copy=function(){return em(t,am())},Bp.apply(t,arguments),om(t)}function sm(t){var e;function n(t){return isNaN(t=+t)?e:t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Hp.call(e,qp),n):t.slice()},n.unknown=function(t){return arguments.length?(e=t,n):e},n.copy=function(){return sm(t).unknown(e)},t=arguments.length?Hp.call(t,qp):[0,1],om(n)}function lm(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;du)break;g.push(f)}}else for(;d=1;--h)if(!((f=c*h)u)break;g.push(f)}}else g=(0,i.sd)(d,p,Math.min(p-d,m)).map(n);return r?g.reverse():g},r.tickFormat=function(t,i){if(null==i&&(i=10===a?".0e":","),"function"!==typeof i&&(i=Us(i)),t===1/0)return i;null==t&&(t=10);var o=Math.max(1,a*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*a0?r[i-1]:e[0],i=r?[o[r-1],n]:[o[i-1],o[i]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return Tm().domain([e,n]).range(a).unknown(t)},Bp.apply(om(s),arguments)}function Am(){var t,e=[.5],n=[0,1],r=1;function o(o){return o<=o?n[(0,i.b4)(e,o,0,r)]:t}return o.domain=function(t){return arguments.length?(e=Up.call(t),r=Math.min(e.length,n.length-1),o):e.slice()},o.range=function(t){return arguments.length?(n=Up.call(t),r=Math.min(e.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var r=n.indexOf(t);return[e[r-1],e[r]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return Am().domain(e).range(n).unknown(t)},Bp.apply(o,arguments)}var Om=new Date,Pm=new Date;function Nm(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return Om.setTime(+e),Pm.setTime(+r),t(Om),t(Pm),Math.floor(n(Om,Pm))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var jm=Nm((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));jm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Nm((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var Lm=jm,Dm=jm.range,Im=Nm((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),Rm=Im,Bm=Im.range,Fm=1e3,zm=6e4,Hm=36e5,Um=864e5,Gm=6048e5;function Wm(t){return Nm((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*zm)/Gm}))}var Vm=Wm(0),Ym=Wm(1),Xm=Wm(2),qm=Wm(3),Zm=Wm(4),$m=Wm(5),Km=Wm(6),Qm=Vm.range,Jm=Ym.range,tg=Xm.range,eg=qm.range,ng=Zm.range,rg=$m.range,ig=Km.range,og=Nm((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*zm)/Um}),(function(t){return t.getDate()-1})),ag=og,sg=og.range,lg=Nm((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fm-t.getMinutes()*zm)}),(function(t,e){t.setTime(+t+e*Hm)}),(function(t,e){return(e-t)/Hm}),(function(t){return t.getHours()})),ug=lg,cg=lg.range,hg=Nm((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Fm)}),(function(t,e){t.setTime(+t+e*zm)}),(function(t,e){return(e-t)/zm}),(function(t){return t.getMinutes()})),fg=hg,dg=hg.range,pg=Nm((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Fm)}),(function(t,e){return(e-t)/Fm}),(function(t){return t.getUTCSeconds()})),mg=pg,gg=pg.range,vg=Nm((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));vg.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Nm((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):vg:null};var yg=vg,bg=vg.range;function xg(t){return Nm((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Gm}))}var wg=xg(0),Sg=xg(1),Cg=xg(2),_g=xg(3),kg=xg(4),Eg=xg(5),Mg=xg(6),Tg=wg.range,Ag=Sg.range,Og=Cg.range,Pg=_g.range,Ng=kg.range,jg=Eg.range,Lg=Mg.range,Dg=Nm((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Um}),(function(t){return t.getUTCDate()-1})),Ig=Dg,Rg=Dg.range,Bg=Nm((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Bg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Nm((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var Fg=Bg,zg=Bg.range;function Hg(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Ug(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Gg(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Wg(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,l=t.shortMonths,u=nv(i),c=rv(i),h=nv(o),f=rv(o),d=nv(a),p=rv(a),m=nv(s),g=rv(s),v=nv(l),y=rv(l),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return l[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:_v,e:_v,f:Av,g:zv,G:Uv,H:kv,I:Ev,j:Mv,L:Tv,m:Ov,M:Pv,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:hy,s:fy,S:Nv,u:jv,U:Lv,V:Iv,w:Rv,W:Bv,x:null,X:null,y:Fv,Y:Hv,Z:Gv,"%":cy},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return l[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:Wv,e:Wv,f:Zv,g:ay,G:ly,H:Vv,I:Yv,j:Xv,L:qv,m:$v,M:Kv,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:hy,s:fy,S:Qv,u:Jv,U:ty,V:ny,w:ry,W:iy,x:null,X:null,y:oy,Y:sy,Z:uy,"%":cy},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return _(t,e,n,r)},d:pv,e:pv,f:xv,g:cv,G:uv,H:gv,I:gv,j:mv,L:bv,m:dv,M:vv,p:function(t,e,n){var r=u.exec(e.slice(n));return r?(t.p=c[r[0].toLowerCase()],n+r[0].length):-1},q:fv,Q:Sv,s:Cv,S:yv,u:ov,U:av,V:sv,w:iv,W:lv,x:function(t,e,r){return _(t,n,e,r)},X:function(t,e,n){return _(t,r,e,n)},y:cv,Y:uv,Z:hv,"%":wv};function S(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++s53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Ug(Gg(o.y,0,1))).getUTCDay(),r=i>4||0===i?Sg.ceil(r):Sg(r),r=Ig.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=Hg(Gg(o.y,0,1))).getDay(),r=i>4||0===i?Ym.ceil(r):Ym(r),r=ag.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Ug(Gg(o.y,0,1)).getUTCDay():Hg(Gg(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Ug(o)):Hg(o)}}function _(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=w[i in $g?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=S(n,b),b.X=S(r,b),b.c=S(e,b),x.x=S(n,x),x.X=S(r,x),x.c=S(e,x),{format:function(t){var e=S(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=C(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=S(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=C(t+="",!0);return e.toString=function(){return t},e}}}var Vg,Yg,Xg,qg,Zg,$g={"-":"",_:" ",0:"0"},Kg=/^\s*\d+/,Qg=/^%/,Jg=/[\\^$*+?|[\]().{}]/g;function tv(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),n+r[0].length):-1}function hv(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function fv(t,e,n){var r=Kg.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function dv(t,e,n){var r=Kg.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function pv(t,e,n){var r=Kg.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function mv(t,e,n){var r=Kg.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function gv(t,e,n){var r=Kg.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function vv(t,e,n){var r=Kg.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function yv(t,e,n){var r=Kg.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function bv(t,e,n){var r=Kg.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function xv(t,e,n){var r=Kg.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wv(t,e,n){var r=Qg.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Sv(t,e,n){var r=Kg.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Cv(t,e,n){var r=Kg.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function _v(t,e){return tv(t.getDate(),e,2)}function kv(t,e){return tv(t.getHours(),e,2)}function Ev(t,e){return tv(t.getHours()%12||12,e,2)}function Mv(t,e){return tv(1+ag.count(Lm(t),t),e,3)}function Tv(t,e){return tv(t.getMilliseconds(),e,3)}function Av(t,e){return Tv(t,e)+"000"}function Ov(t,e){return tv(t.getMonth()+1,e,2)}function Pv(t,e){return tv(t.getMinutes(),e,2)}function Nv(t,e){return tv(t.getSeconds(),e,2)}function jv(t){var e=t.getDay();return 0===e?7:e}function Lv(t,e){return tv(Vm.count(Lm(t)-1,t),e,2)}function Dv(t){var e=t.getDay();return e>=4||0===e?Zm(t):Zm.ceil(t)}function Iv(t,e){return t=Dv(t),tv(Zm.count(Lm(t),t)+(4===Lm(t).getDay()),e,2)}function Rv(t){return t.getDay()}function Bv(t,e){return tv(Ym.count(Lm(t)-1,t),e,2)}function Fv(t,e){return tv(t.getFullYear()%100,e,2)}function zv(t,e){return tv((t=Dv(t)).getFullYear()%100,e,2)}function Hv(t,e){return tv(t.getFullYear()%1e4,e,4)}function Uv(t,e){var n=t.getDay();return tv((t=n>=4||0===n?Zm(t):Zm.ceil(t)).getFullYear()%1e4,e,4)}function Gv(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+tv(e/60|0,"0",2)+tv(e%60,"0",2)}function Wv(t,e){return tv(t.getUTCDate(),e,2)}function Vv(t,e){return tv(t.getUTCHours(),e,2)}function Yv(t,e){return tv(t.getUTCHours()%12||12,e,2)}function Xv(t,e){return tv(1+Ig.count(Fg(t),t),e,3)}function qv(t,e){return tv(t.getUTCMilliseconds(),e,3)}function Zv(t,e){return qv(t,e)+"000"}function $v(t,e){return tv(t.getUTCMonth()+1,e,2)}function Kv(t,e){return tv(t.getUTCMinutes(),e,2)}function Qv(t,e){return tv(t.getUTCSeconds(),e,2)}function Jv(t){var e=t.getUTCDay();return 0===e?7:e}function ty(t,e){return tv(wg.count(Fg(t)-1,t),e,2)}function ey(t){var e=t.getUTCDay();return e>=4||0===e?kg(t):kg.ceil(t)}function ny(t,e){return t=ey(t),tv(kg.count(Fg(t),t)+(4===Fg(t).getUTCDay()),e,2)}function ry(t){return t.getUTCDay()}function iy(t,e){return tv(Sg.count(Fg(t)-1,t),e,2)}function oy(t,e){return tv(t.getUTCFullYear()%100,e,2)}function ay(t,e){return tv((t=ey(t)).getUTCFullYear()%100,e,2)}function sy(t,e){return tv(t.getUTCFullYear()%1e4,e,4)}function ly(t,e){var n=t.getUTCDay();return tv((t=n>=4||0===n?kg(t):kg.ceil(t)).getUTCFullYear()%1e4,e,4)}function uy(){return"+0000"}function cy(){return"%"}function hy(t){return+t}function fy(t){return Math.floor(+t/1e3)}function dy(t){return Vg=Wg(t),Yg=Vg.format,Xg=Vg.parse,qg=Vg.utcFormat,Zg=Vg.utcParse,Vg}dy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var py=1e3,my=60*py,gy=60*my,vy=24*gy,yy=7*vy,by=30*vy,xy=365*vy;function wy(t){return new Date(t)}function Sy(t){return t instanceof Date?+t:+new Date(+t)}function Cy(t,e,n,r,o,a,s,l,u){var c=rm($p,$p),h=c.invert,f=c.domain,d=u(".%L"),p=u(":%S"),m=u("%I:%M"),g=u("%I %p"),v=u("%a %d"),y=u("%b %d"),b=u("%B"),x=u("%Y"),w=[[s,1,py],[s,5,5*py],[s,15,15*py],[s,30,30*py],[a,1,my],[a,5,5*my],[a,15,15*my],[a,30,30*my],[o,1,gy],[o,3,3*gy],[o,6,6*gy],[o,12,12*gy],[r,1,vy],[r,2,2*vy],[n,1,yy],[e,1,by],[e,3,3*by],[t,1,xy]];function S(i){return(s(i)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return hx.h=360*t-100,hx.s=1.5-1.5*e,hx.l=.8-.9*e,hx+""}var dx=fe(),px=Math.PI/3,mx=2*Math.PI/3;function gx(t){var e;return t=(.5-t)*Math.PI,dx.r=255*(e=Math.sin(t))*e,dx.g=255*(e=Math.sin(t+px))*e,dx.b=255*(e=Math.sin(t+mx))*e,dx+""}function vx(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function yx(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}var bx=yx(Zy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),xx=yx(Zy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),wx=yx(Zy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Sx=yx(Zy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Cx(t){return Ft(xt(t).call(document.documentElement))}var _x=0;function kx(){return new Ex}function Ex(){this._="@"+(++_x).toString(36)}function Mx(t){return"string"===typeof t?new It([document.querySelectorAll(t)],[document.documentElement]):new It([null==t?[]:t],Dt)}function Tx(t,e){null==e&&(e=Ve().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n=1?Fx:t<=-1?-Fx:Math.asin(t)}function Ux(t){return t.innerRadius}function Gx(t){return t.outerRadius}function Wx(t){return t.startAngle}function Vx(t){return t.endAngle}function Yx(t){return t&&t.padAngle}function Xx(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/Ix(s*s+l*l),c=u*l,h=-u*s,f=t+c,d=e+h,p=n+c,m=r+h,g=(f+p)/2,v=(d+m)/2,y=p-f,b=m-d,x=y*y+b*b,w=i-o,S=f*m-p*d,C=(b<0?-1:1)*Ix(jx(0,w*w*x-S*S)),_=(S*b-y*C)/x,k=(-S*y-b*C)/x,E=(S*b+y*C)/x,M=(-S*y+b*C)/x,T=_-g,A=k-v,O=E-g,P=M-v;return T*T+A*A>O*O+P*P&&(_=E,k=M),{cx:_,cy:k,x01:-c,y01:-h,x11:_*(i/w-1),y11:k*(i/w-1)}}function qx(){var t=Ux,e=Gx,n=Ax(0),r=null,i=Wx,o=Vx,a=Yx,s=null;function l(){var l,u,c=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-Fx,d=o.apply(this,arguments)-Fx,p=Ox(d-f),m=d>f;if(s||(s=l=oi()),hRx)if(p>zx-Rx)s.moveTo(h*Nx(f),h*Dx(f)),s.arc(0,0,h,f,d,!m),c>Rx&&(s.moveTo(c*Nx(d),c*Dx(d)),s.arc(0,0,c,d,f,m));else{var g,v,y=f,b=d,x=f,w=d,S=p,C=p,_=a.apply(this,arguments)/2,k=_>Rx&&(r?+r.apply(this,arguments):Ix(c*c+h*h)),E=Lx(Ox(h-c)/2,+n.apply(this,arguments)),M=E,T=E;if(k>Rx){var A=Hx(k/c*Dx(_)),O=Hx(k/h*Dx(_));(S-=2*A)>Rx?(x+=A*=m?1:-1,w-=A):(S=0,x=w=(f+d)/2),(C-=2*O)>Rx?(y+=O*=m?1:-1,b-=O):(C=0,y=b=(f+d)/2)}var P=h*Nx(y),N=h*Dx(y),j=c*Nx(w),L=c*Dx(w);if(E>Rx){var D,I=h*Nx(b),R=h*Dx(b),B=c*Nx(x),F=c*Dx(x);if(p1?0:t<-1?Bx:Math.acos(t)}((z*U+H*G)/(Ix(z*z+H*H)*Ix(U*U+G*G)))/2),V=Ix(D[0]*D[0]+D[1]*D[1]);M=Lx(E,(c-V)/(W-1)),T=Lx(E,(h-V)/(W+1))}}C>Rx?T>Rx?(g=Xx(B,F,P,N,h,T,m),v=Xx(I,R,j,L,h,T,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),TRx&&S>Rx?M>Rx?(g=Xx(j,L,I,R,c,-M,m),v=Xx(P,N,B,F,c,-M,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),M=c;--h)s.point(g[h],v[h]);s.lineEnd(),s.areaEnd()}m&&(g[u]=+t(f,u,l),v[u]=+n(f,u,l),s.point(e?+e(f,u,l):g[u],r?+r(f,u,l):v[u]))}if(d)return s=null,d+""||null}function u(){return Jx().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(t="function"===typeof n?n:Ax(+n),e=null,l):t},l.x0=function(e){return arguments.length?(t="function"===typeof e?e:Ax(+e),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:Ax(+t),l):e},l.y=function(t){return arguments.length?(n="function"===typeof t?t:Ax(+t),r=null,l):n},l.y0=function(t){return arguments.length?(n="function"===typeof t?t:Ax(+t),l):n},l.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:Ax(+t),l):r},l.lineX0=l.lineY0=function(){return u().x(t).y(n)},l.lineY1=function(){return u().x(t).y(r)},l.lineX1=function(){return u().x(e).y(n)},l.defined=function(t){return arguments.length?(i="function"===typeof t?t:Ax(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),l):o},l}function ew(t,e){return et?1:e>=t?0:NaN}function nw(t){return t}function rw(){var t=nw,e=ew,n=null,r=Ax(0),i=Ax(zx),o=Ax(0);function a(a){var s,l,u,c,h,f=a.length,d=0,p=new Array(f),m=new Array(f),g=+r.apply(this,arguments),v=Math.min(zx,Math.max(-zx,i.apply(this,arguments)-g)),y=Math.min(Math.abs(v)/f,o.apply(this,arguments)),b=y*(v<0?-1:1);for(s=0;s0&&(d+=h);for(null!=e?p.sort((function(t,n){return e(m[t],m[n])})):null!=n&&p.sort((function(t,e){return n(a[t],a[e])})),s=0,u=d?(v-f*b)/d:0;s0?h*u:0)+b,m[l]={data:a[l],index:s,value:h,startAngle:g,endAngle:c,padAngle:y};return m}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:Ax(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:Ax(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:Ax(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:Ax(+t),a):o},a}Zx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var iw=aw($x);function ow(t){this._curve=t}function aw(t){function e(e){return new ow(t(e))}return e._curve=t,e}function sw(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(aw(t)):e()._curve},t}function lw(){return sw(Jx().curve(iw))}function uw(){var t=tw().curve(iw),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return sw(n())},delete t.lineX0,t.lineEndAngle=function(){return sw(r())},delete t.lineX1,t.lineInnerRadius=function(){return sw(i())},delete t.lineY0,t.lineOuterRadius=function(){return sw(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(aw(t)):e()._curve},t}function cw(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}ow.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var hw=Array.prototype.slice;function fw(t){return t.source}function dw(t){return t.target}function pw(t){var e=fw,n=dw,r=Kx,i=Qx,o=null;function a(){var a,s=hw.call(arguments),l=e.apply(this,s),u=n.apply(this,s);if(o||(o=a=oi()),t(o,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"===typeof t?t:Ax(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:Ax(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function mw(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function gw(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function vw(t,e,n,r,i){var o=cw(e,n),a=cw(e,n=(n+i)/2),s=cw(r,n),l=cw(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}function yw(){return pw(mw)}function bw(){return pw(gw)}function xw(){var t=pw(vw);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}var ww={draw:function(t,e){var n=Math.sqrt(e/Bx);t.moveTo(n,0),t.arc(0,0,n,0,zx)}},Sw={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Cw=Math.sqrt(1/3),_w=2*Cw,kw={draw:function(t,e){var n=Math.sqrt(e/_w),r=n*Cw;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Ew=Math.sin(Bx/10)/Math.sin(7*Bx/10),Mw=Math.sin(zx/10)*Ew,Tw=-Math.cos(zx/10)*Ew,Aw={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Mw*n,i=Tw*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=zx*o/5,s=Math.cos(a),l=Math.sin(a);t.lineTo(l*n,-s*n),t.lineTo(s*r-l*i,l*r+s*i)}t.closePath()}},Ow={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Pw=Math.sqrt(3),Nw={draw:function(t,e){var n=-Math.sqrt(e/(3*Pw));t.moveTo(0,2*n),t.lineTo(-Pw*n,-n),t.lineTo(Pw*n,-n),t.closePath()}},jw=-.5,Lw=Math.sqrt(3)/2,Dw=1/Math.sqrt(12),Iw=3*(Dw/2+1),Rw={draw:function(t,e){var n=Math.sqrt(e/Iw),r=n/2,i=n*Dw,o=r,a=n*Dw+n,s=-o,l=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(s,l),t.lineTo(jw*r-Lw*i,Lw*r+jw*i),t.lineTo(jw*o-Lw*a,Lw*o+jw*a),t.lineTo(jw*s-Lw*l,Lw*s+jw*l),t.lineTo(jw*r+Lw*i,jw*i-Lw*r),t.lineTo(jw*o+Lw*a,jw*a-Lw*o),t.lineTo(jw*s+Lw*l,jw*l-Lw*s),t.closePath()}},Bw=[ww,Sw,kw,Ow,Aw,Nw,Rw];function Fw(){var t=Ax(ww),e=Ax(64),n=null;function r(){var r;if(n||(n=r=oi()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"===typeof e?e:Ax(e),r):t},r.size=function(t){return arguments.length?(e="function"===typeof t?t:Ax(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function zw(){}function Hw(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Uw(t){this._context=t}function Gw(t){return new Uw(t)}function Ww(t){this._context=t}function Vw(t){return new Ww(t)}function Yw(t){this._context=t}function Xw(t){return new Yw(t)}function qw(t,e){this._basis=new Uw(t),this._beta=e}Uw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Hw(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Hw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Ww.prototype={areaStart:zw,areaEnd:zw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Hw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Yw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Hw(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},qw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,l=-1;++l<=n;)r=l/n,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+r*a),this._beta*e[l]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Zw=function t(e){function n(t){return 1===e?new Uw(t):new qw(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function $w(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Kw(t,e){this._context=t,this._k=(1-e)/6}Kw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:$w(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:$w(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Qw=function t(e){function n(t){return new Kw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Jw(t,e){this._context=t,this._k=(1-e)/6}Jw.prototype={areaStart:zw,areaEnd:zw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:$w(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var tS=function t(e){function n(t){return new Jw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function eS(t,e){this._context=t,this._k=(1-e)/6}eS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:$w(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var nS=function t(e){function n(t){return new eS(t,e)}return n.tension=function(e){return t(+e)},n}(0);function rS(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>Rx){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Rx){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function iS(t,e){this._context=t,this._alpha=e}iS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:rS(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var oS=function t(e){function n(t){return e?new iS(t,e):new Kw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function aS(t,e){this._context=t,this._alpha=e}aS.prototype={areaStart:zw,areaEnd:zw,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:rS(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var sS=function t(e){function n(t){return e?new aS(t,e):new Jw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function lS(t,e){this._context=t,this._alpha=e}lS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:rS(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var uS=function t(e){function n(t){return e?new lS(t,e):new eS(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function cS(t){this._context=t}function hS(t){return new cS(t)}function fS(t){return t<0?-1:1}function dS(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(fS(o)+fS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function pS(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function mS(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function gS(t){this._context=t}function vS(t){this._context=new yS(t)}function yS(t){this._context=t}function bS(t){return new gS(t)}function xS(t){return new vS(t)}function wS(t){this._context=t}function SS(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o=0;)n[e]=e;return n}function OS(t,e){return t[e]}function PS(){var t=Ax([]),e=AS,n=TS,r=OS;function i(i){var o,a,s=t.apply(this,arguments),l=i.length,u=s.length,c=new Array(u);for(o=0;o0){for(var n,r,i,o=0,a=t[0].length;o0)for(var n,r,i,o,a,s,l=0,u=t[e[0]].length;l0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)}function LS(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;ao&&(o=e,r=n);return r}function BS(t){var e=t.map(FS);return AS(t).sort((function(t,n){return e[t]-e[n]}))}function FS(t){for(var e,n=0,r=-1,i=t.length;++r=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var GS="%Y-%m-%dT%H:%M:%S.%LZ";var WS=Date.prototype.toISOString?function(t){return t.toISOString()}:qg(GS),VS=WS;var YS=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Zg(GS),XS=YS;function qS(t,e,n){var r=new un,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?sn():+n,r.restart((function o(a){a+=i,r.restart(o,i+=e,n),t(a)}),e,n),r)}function ZS(t){return function(){return t}}function $S(t){return t[0]}function KS(t){return t[1]}function QS(){this._=null}function JS(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function tC(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function eC(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function nC(t){for(;t.L;)t=t.L;return t}QS.prototype={constructor:QS,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=nC(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(tC(this,n),n=(t=n).U),n.C=!1,r.C=!0,eC(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(eC(this,n),n=(t=n).U),n.C=!1,r.C=!0,tC(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?nC(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=a,a.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,tC(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,eC(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,tC(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,eC(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,tC(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,eC(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};var rC=QS;function iC(t,e,n,r){var i=[null,null],o=TC.push(i)-1;return i.left=t,i.right=e,n&&aC(i,t,e,n),r&&aC(i,e,t,r),EC[t.index].halfedges.push(o),EC[e.index].halfedges.push(o),i}function oC(t,e,n){var r=[e,n];return r.left=t,r}function aC(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function sC(t,e,n,r,i){var o,a=t[0],s=t[1],l=a[0],u=a[1],c=0,h=1,f=s[0]-l,d=s[1]-u;if(o=e-l,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=r-l,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>c&&(c=o)}else if(f>0){if(o0)){if(o/=d,d<0){if(o0){if(o>h)return;o>c&&(c=o)}if(o=i-u,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>c&&(c=o)}else if(d>0){if(o0||h<1)||(c>0&&(t[0]=[l+c*f,u+c*d]),h<1&&(t[1]=[l+h*f,u+h*d]),!0)}}}}}function lC(t,e,n,r,i){var o=t[1];if(o)return!0;var a,s,l=t[0],u=t.left,c=t.right,h=u[0],f=u[1],d=c[0],p=c[1],m=(h+d)/2,g=(f+p)/2;if(p===f){if(m=r)return;if(h>d){if(l){if(l[1]>=i)return}else l=[m,n];o=[m,i]}else{if(l){if(l[1]1)if(h>d){if(l){if(l[1]>=i)return}else l=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(l){if(l[1]=r)return}else l=[e,a*e+s];o=[r,a*r+s]}else{if(l){if(l[0]=-OC)){var d=l*l+u*u,p=c*c+h*h,m=(h*d-u*p)/f,g=(l*p-c*d)/f,v=dC.pop()||new pC;v.arc=t,v.site=i,v.x=m+a,v.y=(v.cy=g+s)+Math.sqrt(m*m+g*g),t.circle=v;for(var y=null,b=MC._;b;)if(v.yAC)s=s.L;else{if(!((i=o-_C(s,a))>AC)){r>-AC?(e=s.P,n=s):i>-AC?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){EC[t.index]={site:t,halfedges:[]}}(t);var l=bC(t);if(kC.insert(e,l),e||n){if(e===n)return gC(e),n=bC(e.site),kC.insert(l,n),l.edge=n.edge=iC(e.site,l.site),mC(e),void mC(n);if(n){gC(e),gC(n);var u=e.site,c=u[0],h=u[1],f=t[0]-c,d=t[1]-h,p=n.site,m=p[0]-c,g=p[1]-h,v=2*(f*g-d*m),y=f*f+d*d,b=m*m+g*g,x=[(g*y-d*b)/v+c,(f*b-m*y)/v+h];aC(n.edge,u,p,x),l.edge=iC(u,t,null,x),n.edge=iC(t,p,null,x),mC(e),mC(n)}else l.edge=iC(e.site,l.site)}}function CC(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],l=n[1],u=l-e;if(!u)return s;var c=s-r,h=1/o-1/u,f=c/u;return h?(-f+Math.sqrt(f*f-2*h*(c*c/(-2*u)-l+u/2+i-o/2)))/h+r:(r+s)/2}function _C(t,e){var n=t.N;if(n)return CC(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var kC,EC,MC,TC,AC=1e-6,OC=1e-12;function PC(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function NC(t,e){return e[1]-t[1]||e[0]-t[0]}function jC(t,e){var n,r,i,o=t.sort(NC).pop();for(TC=[],EC=new Array(t.length),kC=new rC,MC=new rC;;)if(i=fC,o&&(!i||o[1]AC||Math.abs(i[0][1]-i[1][1])>AC)||delete TC[o]}(a,s,l,u),function(t,e,n,r){var i,o,a,s,l,u,c,h,f,d,p,m,g=EC.length,v=!0;for(i=0;iAC||Math.abs(m-f)>AC)&&(l.splice(s,0,TC.push(oC(a,d,Math.abs(p-t)AC?[t,Math.abs(h-t)AC?[Math.abs(f-r)AC?[n,Math.abs(h-n)AC?[Math.abs(f-e)=s)return null;var l=t-i.site[0],u=e-i.site[1],c=l*l+u*u;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var l=t-s[0],u=e-s[1],h=l*l+u*u;hr?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function qC(){var t,e,n=UC,r=GC,i=XC,o=VC,a=YC,s=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],u=250,c=cp,h=M("start","zoom","end"),f=500,d=150,p=0;function m(t){t.property("__zoom",WC).on("wheel.zoom",S).on("mousedown.zoom",C).on("dblclick.zoom",_).filter(a).on("touchstart.zoom",k).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(t,e){return(e=Math.max(s[0],Math.min(s[1],e)))===t.k?t:new RC(e,t.x,t.y)}function v(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new RC(t.k,r,i)}function y(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,e,n){t.on("start.zoom",(function(){x(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=x(t,i),a=r.apply(t,i),s=null==n?y(a):"function"===typeof n?n.apply(t,i):n,l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),u=t.__zoom,h="function"===typeof e?e.apply(t,i):e,f=c(u.invert(s).concat(l/u.k),h.invert(s).concat(l/h.k));return function(t){if(1===t)t=h;else{var e=f(t),n=l/e[2];t=new RC(n,s[0]-e[0]*n,s[1]-e[1]*n)}o.zoom(null,t)}}))}function x(t,e,n){return!n&&t.__zooming||new w(t,e)}function w(t,e){this.that=t,this.args=e,this.active=0,this.extent=r.apply(t,e),this.taps=0}function S(){if(n.apply(this,arguments)){var t=x(this,arguments),e=this.__zoom,r=Math.max(s[0],Math.min(s[1],e.k*Math.pow(2,o.apply(this,arguments)))),a=qe(this);if(t.wheel)t.mouse[0][0]===a[0]&&t.mouse[0][1]===a[1]||(t.mouse[1]=e.invert(t.mouse[0]=a)),clearTimeout(t.wheel);else{if(e.k===r)return;t.mouse=[a,e.invert(a)],An(this),t.start()}HC(),t.wheel=setTimeout((function(){t.wheel=null,t.end()}),d),t.zoom("mouse",i(v(g(e,r),t.mouse[0],t.mouse[1]),t.extent,l))}}function C(){if(!e&&n.apply(this,arguments)){var t=x(this,arguments,!0),r=Ft(Et.view).on("mousemove.zoom",(function(){if(HC(),!t.moved){var e=Et.clientX-a,n=Et.clientY-s;t.moved=e*e+n*n>p}t.zoom("mouse",i(v(t.that.__zoom,t.mouse[0]=qe(t.that),t.mouse[1]),t.extent,l))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Gt(Et.view,t.moved),HC(),t.end()}),!0),o=qe(this),a=Et.clientX,s=Et.clientY;Ut(Et.view),zC(),t.mouse=[o,this.__zoom.invert(o)],An(this),t.start()}}function _(){if(n.apply(this,arguments)){var t=this.__zoom,e=qe(this),o=t.invert(e),a=t.k*(Et.shiftKey?.5:2),s=i(v(g(t,a),e,o),r.apply(this,arguments),l);HC(),u>0?Ft(this).transition().duration(u).call(b,s,e):Ft(this).call(m.transform,s)}}function k(){if(n.apply(this,arguments)){var e,r,i,o,a=Et.touches,s=a.length,l=x(this,arguments,Et.changedTouches.length===s);for(zC(),r=0;r=e?t:""+Array(e+1-r.length).join(n)+t},y={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+v(r,2,"0")+":"+v(i,2,"0")},m:function t(e,n){if(e.date()1)return t(a[0])}else{var s=e.name;x[s]=e,i=s}return!r&&i&&(b=i),i||!r&&b},_=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},k=y;k.l=C,k.i=S,k.w=function(t,e){return _(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function g(t){this.$L=C(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[w]=!0}var v=g.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(k.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return k},v.isValid=function(){return!(this.$d.toString()===d)},v.isSame=function(t,e){var n=_(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return _(t)68?1900:2e3)},s=function(t){return function(e){this[t]=+e}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(t){(this.zone||(this.zone={})).offset=function(t){if(!t)return 0;if("Z"===t)return 0;var e=t.match(/([+-]|\d\d)/g),n=60*e[1]+(+e[2]||0);return 0===n?0:"+"===e[0]?-n:n}(t)}],u=function(t){var e=o[t];return e&&(e.indexOf?e:e.s.concat(e.f))},c=function(t,e){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(t.indexOf(r(i,0,e))>-1){n=i>12;break}}else n=t===(e?"pm":"PM");return n},h={A:[i,function(t){this.afternoon=c(t,!1)}],a:[i,function(t){this.afternoon=c(t,!0)}],S:[/\d/,function(t){this.milliseconds=100*+t}],SS:[n,function(t){this.milliseconds=10*+t}],SSS:[/\d{3}/,function(t){this.milliseconds=+t}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[i,function(t){var e=o.ordinal,n=t.match(/\d+/);if(this.day=n[0],e)for(var r=1;r<=31;r+=1)e(r).replace(/\[|\]/g,"")===t&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[i,function(t){var e=u("months"),n=(u("monthsShort")||e.map((function(t){return t.slice(0,3)}))).indexOf(t)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[i,function(t){var e=u("months").indexOf(t)+1;if(e<1)throw new Error;this.month=e%12||e}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(t){this.year=a(t)}],YYYY:[/\d{4}/,s("year")],Z:l,ZZ:l};function f(n){var r,i;r=n,i=o&&o.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,n,r){var o=r&&r.toUpperCase();return n||i[r]||t[r]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))).match(e),s=a.length,l=0;l-1)return new Date(("X"===e?1e3:1)*t);var r=f(e)(t),i=r.year,o=r.month,a=r.day,s=r.hours,l=r.minutes,u=r.seconds,c=r.milliseconds,h=r.zone,d=new Date,p=a||(i||o?1:d.getDate()),m=i||d.getFullYear(),g=0;i&&!o||(g=o>0?o-1:d.getMonth());var v=s||0,y=l||0,b=u||0,x=c||0;return h?new Date(Date.UTC(m,g,p,v,y,b,x+60*h.offset*1e3)):n?new Date(Date.UTC(m,g,p,v,y,b,x)):new Date(m,g,p,v,y,b,x)}catch(t){return new Date("")}}(e,s,r),this.init(),h&&!0!==h&&(this.$L=this.locale(h).$L),c&&e!=this.format(s)&&(this.$d=new Date("")),o={}}else if(s instanceof Array)for(var d=s.length,p=1;p<=d;p+=1){a[1]=s[p-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}p===d&&(this.$d=new Date(""))}else i.call(this,t)}}}()},388:function(t){t.exports=function(){"use strict";return function(t,e,n){e.prototype.isBetween=function(t,e,r,i){var o=n(t),a=n(e),s="("===(i=i||"()")[0],l=")"===i[1];return(s?this.isAfter(o,r):!this.isBefore(o,r))&&(l?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(o,r):!this.isAfter(o,r))&&(l?this.isAfter(a,r):!this.isBefore(a,r))}}}()},9748:function(t){t.exports=function(){"use strict";var t={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(e,n,r){var i=n.prototype,o=i.format;r.en.formats=t,i.format=function(e){void 0===e&&(e="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(e,n){return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(e,r,i){var o=i&&i.toUpperCase();return r||n[i]||t[i]||n[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(t,e,n){return e||n.slice(1)}))}))}(e,void 0===n?{}:n);return o.call(this,r)}}}()},1277:function(t){t.exports=function(){"use strict";var t="month",e="quarter";return function(n,r){var i=r.prototype;i.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var o=i.add;i.add=function(n,r){return n=Number(n),this.$utils().p(r)===e?this.add(3*n,t):o.bind(this)(n,r)};var a=i.startOf;i.startOf=function(n,r){var i=this.$utils(),o=!!i.u(r)||r;if(i.p(n)===e){var s=this.quarter()-1;return o?this.month(3*s).startOf(t).startOf("day"):this.month(3*s+2).endOf(t).endOf("day")}return a.bind(this)(n,r)}}}()},3540:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,i){var o,a=function(t,n,r){void 0===r&&(r={});var i=new Date(t),o=function(t,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=t+"|"+r,o=e[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),e[i]=o),o}(n,r);return o.formatToParts(i)},s=function(e,n){for(var r=a(e,n),o=[],s=0;s=0&&(o[h]=parseInt(c,10))}var f=o[3],d=24===f?0:f,p=o[0]+"-"+o[1]+"-"+o[2]+" "+d+":"+o[4]+":"+o[5]+":000",m=+e;return(i.utc(p).valueOf()-(m-=m%1e3))/6e4},l=r.prototype;l.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:t}),s=Math.round((r-new Date(a))/1e3/60),l=i(a,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-s,!0);if(e){var u=l.utcOffset();l=l.add(n-u,"minute")}return l.$x.$timezone=t,l},l.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var u=l.startOf;l.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return u.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,a=n||e||o,l=s(+i(),a);if("string"!=typeof t)return i(t).tz(a);var u=function(t,e,n){var r=t-60*e*1e3,i=s(r,n);if(e===i)return[r,e];var o=s(r-=60*(i-e)*1e3,n);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,r).valueOf(),l,a),c=u[0],h=u[1],f=i(c).utcOffset(h);return f.$x.$timezone=a,f},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}}}()},8272:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(t){return new i({date:t,utc:!0,args:arguments})},a.utc=function(e){var n=o(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var l=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else l.call(this)};var u=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,s=this;if(i)return s.$offset=a,s.$u=0===r,s;if(0!==r){var l=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+l,t)).$offset=a,s.$x.$localOffset=l}else s=this.utc();return s};var c=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return c.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var h=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():h.call(this)};var f=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return f.call(this,t,e,n);var r=this.local(),i=o(t).local();return f.call(r,i,e,n)}}}()},5364:function(t){"use strict";var e="%[a-f0-9]{2}",n=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function i(t,e){try{return[decodeURIComponent(t.join(""))]}catch(o){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],i(n),i(r))}function o(t){try{return decodeURIComponent(t)}catch(o){for(var e=t.match(n)||[],r=1;rparseInt(t.userAgent.split("Firefox/")[1],10),t.hasTouch=!!t.win.TouchEvent,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,n),t.win.removeEventListener("testPassive",t.noop,n))}return e}(),t.charts=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0}(e||(e={})),e})),e(n,"Core/Utilities.js",[n["Core/Globals.js"]],(function(t){function e(n,r,i,o){var a=r?"Highcharts error":"Highcharts warning";32===n&&(n=a+": Deprecated member");var s=l(n),u=s?a+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if("undefined"!==typeof o){var c="";s&&(u+="?"),g(o,(function(t,e){c+="\n - "+e+": "+t,s&&(u+=encodeURI(e)+"="+encodeURI(t))})),u+=c}y(t,"displayError",{chart:i,code:n,message:u,params:o},(function(){if(r)throw Error(u);S.console&&-1===e.messages.indexOf(u)&&console.warn(u)})),e.messages.push(u)}function n(t,e){return parseInt(t,e||10)}function r(t){return"string"===typeof t}function i(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function o(t,e){return!!t&&"object"===typeof t&&(!e||!i(t))}function a(t){return o(t)&&"number"===typeof t.nodeType}function s(t){var e=t&&t.constructor;return!(!o(t,!0)||a(t)||!e||!e.name||"Object"===e.name)}function l(t){return"number"===typeof t&&!isNaN(t)&&1/0>t&&-1/0n&&(n=t[e]);return n},arrayMin:function(t){for(var e=t.length,n=t[0];e--;)t[e]e?t=o-1&&(o=Math.floor(a)),Math.max(0,o-(s(i,"padding-left",!0)||0)-(s(i,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(s(i,"padding-top",!0)||0)-(s(i,"padding-bottom",!0)||0));if(S.getComputedStyle||e(27,!0),i=S.getComputedStyle(i,void 0)){var l=i.getPropertyValue(o);f(a,"opacity"!==o)&&(l=n(l))}return l},inArray:function(t,n,r){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(t,r)},isArray:i,isClass:s,isDOMElement:a,isFunction:function(t){return"function"===typeof t},isNumber:l,isObject:o,isString:r,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,n={},r=function t(e,n){return"object"!==typeof e&&(e={}),g(n,(function(r,i){"__proto__"!==i&&"constructor"!==i&&(!o(r,!0)||s(r)||a(r)?e[i]=n[i]:e[i]=t(e[i]||{},r))})),e};!0===e[0]&&(n=e[1],e=Array.prototype.slice.call(e,2));var i=e.length;for(t=0;t=n&&(e=[1/n]))),r=0;r=t||!i&&a<=(e[r]+(e[r+1]||e[r]))/2));r++);return m(o*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=w.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(S.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(S.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:f,pInt:n,relativeLength:function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:v,splat:function(t){return i(t)?t:[t]},stableSort:function(t,e){var n,r,i=t.length;for(r=0;r>16,(65280&i)>>8,255&i,1]:4===r&&(n=[(3840&i)>>4|(3840&i)>>8,(240&i)>>4|240&i,(15&i)<<4|15&i,1])}if(!n)for(i=e.parsers.length;i--&&!n;){var o=e.parsers[i];(r=o.regex.exec(t))&&(n=o.parse(r))}}n&&(this.rgba=n)},e.prototype.get=function(t){var e=this.input,i=this.rgba;if("object"===typeof e&&"undefined"!==typeof this.stops){var o=r(e);return o.stops=[].slice.call(o.stops),this.stops.forEach((function(e,n){o.stops[n]=[o.stops[n][0],e.get(t)]})),o}return i&&n(i[0])?"rgb"===t||!t&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===t?""+i[3]:"rgba("+i.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(n(t)&&0!==t)for(var r=0;3>r;r++)e[r]+=i(255*t),0>e[r]&&(e[r]=0),255h?"AM":"PM",P:12>h?"am":"pm",S:u(s.getSeconds()),L:u(Math.floor(n%1e3),3)},t.dateFormats),l(s,(function(t,r){for(;-1!==e.indexOf("%"+r);)e=e.replace("%"+r,"function"===typeof t?t.call(a,n):t)})),i?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return a(t,!0)?t:{main:(t=h(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,n,i){var a,s=this,l=[],u={},h=new s.Date(e),d=t.unitRange,p=t.count||1;if(i=c(i,1),r(e)){if(s.set("Milliseconds",h,d>=f.second?0:p*Math.floor(s.get("Milliseconds",h)/p)),d>=f.second&&s.set("Seconds",h,d>=f.minute?0:p*Math.floor(s.get("Seconds",h)/p)),d>=f.minute&&s.set("Minutes",h,d>=f.hour?0:p*Math.floor(s.get("Minutes",h)/p)),d>=f.hour&&s.set("Hours",h,d>=f.day?0:p*Math.floor(s.get("Hours",h)/p)),d>=f.day&&s.set("Date",h,d>=f.month?1:Math.max(1,p*Math.floor(s.get("Date",h)/p))),d>=f.month){s.set("Month",h,d>=f.year?0:p*Math.floor(s.get("Month",h)/p));var m=s.get("FullYear",h)}d>=f.year&&s.set("FullYear",h,m-m%p),d===f.week&&(m=s.get("Day",h),s.set("Date",h,s.get("Date",h)-m+i+(m4*f.month||s.getTimezoneOffset(e)!==s.getTimezoneOffset(n)),e=h.getTime(),h=1;el.length&&l.forEach((function(t){0===t%18e5&&"000000000"===s.dateFormat("%H%M%S%L",t)&&(u[t]="day")}))}return l.info=o(t,{higherRanks:u,totalRange:d*p}),l},e.prototype.getDateFormat=function(t,e,n,r){var i=this.dateFormat("%m-%d %H:%M:%S.%L",e),o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(s in f){if(t===f.week&&+this.dateFormat("%w",e)===n&&"00:00:00.000"===i.substr(6)){var s="week";break}if(f[s]>t){s=a;break}if(o[s]&&i.substr(o[s])!=="01-01 00:00:00.000".substr(o[s]))break;"week"!==s&&(a=s)}if(s)var l=this.resolveDTLFormat(r[s]).main;return l},e}(),e})),e(n,"Core/DefaultOptions.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palette.js"],n["Core/Time.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){e=e.parse;var a=o.merge,s={colors:r.colors,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:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:r.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:r.neutralColor40,borderRadius:0,navigation:{activeColor:r.highlightColor100,inactiveColor:r.neutralColor20},itemStyle:{color:r.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:r.neutralColor100},itemHiddenStyle:{color:r.neutralColor20},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:r.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n.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:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:n.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:e(r.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:r.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:r.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};s.chart.styledMode=!1;var l=new i(a(s.global,s.time));return t={defaultOptions:s,defaultTime:l,getOptions:function(){return s},setOptions:function(t){return a(!0,s,t),(t.time||t.global)&&(n.time?n.time.update(a(s.global,s.time,t.global,t.time)):n.time=l),s}}})),e(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=t.parse,i=e.win,o=n.isNumber,a=n.objectEach;return function(){function t(t,e,n){this.pos=NaN,this.options=e,this.elem=t,this.prop=n}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var n=this.now||0,r=[];if(1!==n&&e&&t)if(e.length===t.length&&1>n)for(var i=0;i=o+this.startTime){this.now=this.end,this.pos=1,this.update();var l=s[this.prop]=!0;a(s,(function(t){!0!==t&&(l=!1)})),l&&i&&i.call(r),t=!1}else this.pos=n.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,n){function r(t,e){for(;t.lengthc[1]){var f=e+ +c[1];0<=f?(c[0]=(+c[0]).toExponential(f).split("e")[0],e=f):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;f=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,u)-1)).toFixed(e);var d=3<(u=String(l(f))).length?u.length%3:0;return n=s(n,o.decimalPoint),i=s(i,o.thousandsSep),t=(0>t?"-":"")+(d?u.substr(0,d)+i:""),t=0>+c[1]&&!h?"0":t+u.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+i),e&&(t+=n+f.slice(-e)),c[1]&&0!==+t&&(t+="e"+c[1]),t}var r=t.defaultOptions,i=t.defaultTime,o=e.getNestedProperty,a=e.isNumber,s=e.pick,l=e.pInt;return{dateFormat:function(t,e,n){return i.dateFormat(t,e,n)},format:function(t,e,a){var s="{",l=!1,u=/f$/,c=/\.([0-9])/,h=r.lang,f=a&&a.time||i;a=a&&a.numberFormatter||n;for(var d=[];t;){var p=t.indexOf(s);if(-1===p)break;var m=t.slice(0,p);if(l){if(m=m.split(":"),s=o(m.shift()||"",e),m.length&&"number"===typeof s)if(m=m.join(":"),u.test(m)){var g=parseInt((m.match(c)||["","-1"])[1],10);null!==s&&(s=a(s,g,h.decimalPoint,-1u){for(i(e,c),p=s=0;p<=u;)p+=e[s].size,s++;d=e.splice(s-1,e.length)}for(i(e,h),e=e.map((function(t){return{size:t.size,targets:[t.target],align:r(t.align,.5)}}));f;){for(s=e.length;s--;)u=e[s],c=(Math.min.apply(0,u.targets)+Math.max.apply(0,u.targets))/2,u.pos=n(c-u.size*u.align,0,o-u.size);for(s=e.length,f=!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>o&&(e[s-1].pos=o-e[s-1].size),e.splice(s,1),f=!0)}return l.push.apply(l,d),s=0,e.some((function(e){var n=0;return(e.targets||[]).some((function(){return l[s].pos=e.pos+n,"undefined"!==typeof a&&Math.abs(l[s].pos-l[s].target)>a?(l.slice(0,s+1).forEach((function(t){return delete t.pos})),l.reducedLen=(l.reducedLen||o)-.1*o,l.reducedLen>.1*o&&t(l,o,a),!0):(n+=l[s].size,s++,!1)}))})),i(l,h),l}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palette.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){var a=t.animate,s=t.animObject,l=t.stop,u=r.deg2rad,c=r.doc,h=r.noop,f=r.svg,d=r.SVG_NS,p=r.win,m=o.addEvent,g=o.attr,v=o.createElement,y=o.css,b=o.defined,x=o.erase,w=o.extend,S=o.fireEvent,C=o.isArray,_=o.isFunction,k=o.isNumber,E=o.isString,M=o.merge,T=o.objectEach,A=o.pick,O=o.pInt,P=o.syncTimeout,N=o.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=d,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=A(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,n){n.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,n=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var r=this.zIndexSetter();return r||(t?t.element:e.box).appendChild(n),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var n=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce((function(t,e){return-1===n.indexOf(e)&&t.push(e),t}),n?[n]:[]).join(" "),t!==n&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,n){var r,i,o,a={},s=this.renderer,l=s.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!n||E(n))&&(this.alignTo=r=n||"renderer",x(l,this),l.push(this),n=void 0)):(t=this.alignOptions,e=this.alignByTranslate,r=this.alignTo),n=A(n,s[r],"scrollablePlotBox"===r?s.plotBox:void 0,s),r=t.align;var u=t.verticalAlign;return s=(n.x||0)+(t.x||0),l=(n.y||0)+(t.y||0),"right"===r?i=1:"center"===r&&(i=2),i&&(s+=(n.width-(t.width||0))/i),a[e?"translateX":"x"]=Math.round(s),"bottom"===u?o=1:"middle"===u&&(o=2),o&&(l+=(n.height-(t.height||0))/o),a[e?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,n){var r=this,i=s(A(e,this.renderer.globalAnimation,!0));return e=i.defer,A(c.hidden,c.msHidden,c.webkitHidden,!1)&&(i.duration=0),0!==i.duration?(n&&(i.complete=n),P((function(){r.element&&a(r,t,i)}),e)):(this.attr(t,void 0,n),T(t,(function(t,e){i.step&&i.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var n=t.split(" ");if(t=n[n.length-1],(n=n[0])&&"none"!==n&&r.svg){this.fakeTS=!0,this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,n){return 2*Number(e)+n})),this.removeTextOutline();var i=c.createElementNS(d,"tspan");g(i,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":n,"stroke-linejoin":"round"}),[].forEach.call(e.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),i.appendChild(e)}));var o=c.createElementNS(d,"tspan");o.textContent="\u200b",["x","y"].forEach((function(t){var n=e.getAttribute(t);n&&o.setAttribute(t,n)})),i.appendChild(o),e.insertBefore(i,e.firstChild)}},t.prototype.attr=function(t,e,n,r){var i,o,a,s=this.element,u=this.symbolCustomAttribs,c=this;if("string"===typeof t&&"undefined"!==typeof e){var h=t;(t={})[h]=e}return"string"===typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,s):(T(t,(function(e,n){o=!1,r||l(this,n),this.symbolName&&-1!==u.indexOf(n)&&(i||(this.symbolAttr(t),i=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||((a=this[n+"Setter"]||this._defaultSetter).call(this,e,n,s),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,a))}),this),this.afterSetters()),n&&n.call(this),c},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var n=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+n,t.y=Math.floor(t.y||this.y||0)+n,t.width=Math.floor((t.width||this.width||0)-2*n),t.height=Math.floor((t.height||this.height||0)-2*n),b(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,r){var i,o,a,s,l,u,c,h,f,d,p,m=this.renderer,g=[];S(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(a=t[o],l=m.gradients,u=t.stops,f=r.radialReference,C(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&f&&!b(a.gradientUnits)&&(s=a,a=M(a,m.getRadialAttr(f,s),{gradientUnits:"userSpaceOnUse"})),T(a,(function(t,e){"id"!==e&&g.push(e,t)})),T(u,(function(t){g.push(t)})),g=g.join(","),l[g])d=l[g].attr("id");else{a.id=d=N();var v=l[g]=m.createElement(o).attr(a).add(m.defs);v.radAttr=s,v.stops=[],u.forEach((function(t){0===t[1].indexOf("rgba")?(i=n.parse(t[1]),c=i.get("rgb"),h=i.get("a")):(c=t[1],h=1),t=m.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":h}).add(v),v.stops.push(t)}))}p="url("+m.url+"#"+d+")",r.setAttribute(e,p),r.gradient=g,t.toString=function(){return p}}}))},t.prototype.css=function(t){var e=this.styles,n={},r=this.element,i=["textOutline","textOverflow","width"],o="",a=!e;if(t&&t.color&&(t.fill=t.color),e&&T(t,(function(t,r){e&&e[r]!==t&&(n[r]=t,a=!0)})),a){if(e&&(t=w(e,n)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===r.nodeName.toLowerCase()&&t.width)var s=this.textWidth=O(t.width);if(this.styles=t,s&&!f&&this.renderer.forExport&&delete t.width,r.namespaceURI===this.SVG_NS){var l=function(t,e){return"-"+e.toLowerCase()};T(t,(function(t,e){-1===i.indexOf(e)&&(o+=e.replace(/([A-Z])/g,l)+":"+t+";")})),o&&g(r,"style",o)}else y(r,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var n=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=n.length;t--;)n[t]=""+O(n[t])*A(e,NaN);t=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},n=t.renderer,r=e.ownerSVGElement,i=n.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,l(t),t.clipPath&&r){var o=t.clipPath;[].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1h.width)&&(h={width:0,height:0})}else h=this.htmlGetBBox();if(r.isSVG&&(e=h.width,r=h.height,c&&(h.height=r={"11px,17":14,"13px,20":16}[o&&o.fontSize+","+Math.round(r)]||r),n&&(o=n*u,h.width=Math.abs(r*Math.sin(o))+Math.abs(e*Math.cos(o)),h.height=Math.abs(r*Math.cos(o))+Math.abs(e*Math.sin(o)))),d&&(""===a||0]*>/g,"").replace(/</g,"<").replace(/>/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,n){var r=this.shadows;if(r)for(var i=r.length;i--;)n.call(r[i],"height"===t?Math.max(e-(r[i].cutHeight||0),0):"d"===t?this.d:e,t,r[i])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,n=this.inverted,r=this.rotation,i=this.matrix,o=this.element,a=this.translateX||0,s=this.translateY||0;n&&(a+=this.width,s+=this.height),a=["translate("+a+","+s+")"],b(i)&&a.push("matrix("+i.join(",")+")"),n?a.push("rotate(90) scale(-1,1)"):r&&a.push("rotate("+r+" "+A(this.rotationOriginX,o.getAttribute("x"),0)+" "+A(this.rotationOriginY,o.getAttribute("y")||0)+")"),(b(t)||b(e))&&a.push("scale("+A(t,1)+" "+A(e,1)+")"),a.length&&o.setAttribute("transform",a.join(" "))},t.prototype.visibilitySetter=function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var n=this.renderer,r=this.parentGroup,i=(r||n).element||n.box,o=this.element;n=i===n.box;var a,s=!1,l=this.added;if(b(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(l=!1)):b(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&r&&(r.handleZ=!0),a=(e=i.childNodes).length-1;0<=a&&!s;a--){l=(r=e[a]).getAttribute("data-z-index");var u=!b(l);r!==o&&(0>t&&u&&!n&&!a?(i.insertBefore(o,e[a]),s=!0):(O(l)<=t||u&&(!b(t)||0<=t))&&(i.insertBefore(o,e[a+1]||null),s=!0))}s||(i.insertBefore(o,e[n?3:0]||null),s=!0)}return s},t}(),t.prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t})),e(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],(function(t){var e;return function(e){var n;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=n),e.rendererTypes[t]||e.rendererTypes[n]},e.registerRendererType=function(r,i,o){e.rendererTypes[r]=i,n&&!o||(n=r,t.Renderer=i)}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=e.defined,i=e.extend,o=e.isNumber,a=e.merge,s=e.pick,l=e.removeEvent;return function(e){function u(t,n,r,i,o,a,s,l,c,h){var f,d=e.call(this)||this;return d.paddingLeftSetter=d.paddingSetter,d.paddingRightSetter=d.paddingSetter,d.init(t,"g"),d.textStr=n,d.x=r,d.y=i,d.anchorX=a,d.anchorY=s,d.baseline=c,d.className=h,d.addClass("button"===h?"highcharts-no-tooltip":"highcharts-label"),h&&d.addClass("highcharts-"+h),d.text=t.text(void 0,0,0,l).attr({zIndex:1}),"string"===typeof o&&((f=/^url\((.*?)\)$/.test(o))||d.renderer.symbols[o])&&(d.symbolKey=o),d.bBox=u.emptyBBox,d.padding=3,d.baselineOffset=0,d.needsBox=t.styledMode||f,d.deferredAttr={},d.alignFactor=0,d}return n(u,e),u.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))},u.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},u.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},u.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},u.prototype.css=function(e){if(e){var n={};e=a(e),u.textProps.forEach((function(t){"undefined"!==typeof e[t]&&(n[t]=e[t],delete e[t])})),this.text.css(n);var r="width"in n;"fontSize"in n||"fontWeight"in n?this.updateTextPadding():r&&this.updateBoxSize()}return t.prototype.css.call(this,e)},u.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},u.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},u.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=s(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},u.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},u.prototype.heightSetter=function(t){this.heightSetting=t},u.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:r(t)?t:"",x:this.x,y:this.y}),this.box&&r(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},u.prototype.paddingSetter=function(t,e){o(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},u.prototype.rSetter=function(t,e){this.boxAttr(e,t)},u.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},u.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},u.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},u.prototype["text-alignSetter"]=function(t){this.textAlign=t},u.prototype.textSetter=function(t){"undefined"!==typeof t&&this.text.attr({text:t}),this.updateTextPadding()},u.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},n=this.padding,a=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!r(this.text.textStr)?u.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n,t=this.renderer.fontMetrics(t&&t.fontSize,this.text),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||t).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-t.h)/2),this.needsBox&&(this.box||((n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),n.add(this)),n=this.getCrispAdjust(),e.x=n,e.y=(this.baseline?-this.baselineOffset:0)+n,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(i(e,this.deferredAttr)),this.deferredAttr={})},u.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,n=s(this.paddingLeft,this.padding);r(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),n===t.x&&e===t.y||(t.attr("x",n),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),"undefined"!==typeof e&&t.attr("y",e)),t.x=n,t.y=e},u.prototype.widthSetter=function(t){this.widthSetting=o(t)?t:void 0},u.prototype.getPaddedWidth=function(){var t=this.padding,e=s(this.paddingLeft,t);return t=s(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},u.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},u.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},u.emptyBBox={width:0,height:0,x:0,y:0},u.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),u}(t)})),e(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],(function(t){function e(t,e,n,r,o){var s=[];if(o){var l=o.start||0,u=a(o.r,n);n=a(o.r,r||n);var c=(o.end||0)-.001;r=o.innerR;var h=a(o.open,.001>Math.abs((o.end||0)-l-2*Math.PI)),f=Math.cos(l),d=Math.sin(l),p=Math.cos(c),m=Math.sin(c);l=a(o.longArc,.001>c-l-Math.PI?0:1),s.push(["M",t+u*f,e+n*d],["A",u,n,0,l,a(o.clockwise,1),t+u*p,e+n*m]),i(r)&&s.push(h?["M",t+r*p,e+r*m]:["L",t+r*p,e+r*m],["A",r,r,0,l,i(o.clockwise)?1-o.clockwise:0,t+r*f,e+r*d]),h||s.push(["Z"])}return s}function n(t,e,n,i,o){return o&&o.r?r(t,e,n,i,o):[["M",t,e],["L",t+n,e],["L",t+n,e+i],["L",t,e+i],["Z"]]}function r(t,e,n,r,i){return[["M",t+(i=i&&i.r||0),e],["L",t+n-i,e],["C",t+n,e,t+n,e,t+n,e+i],["L",t+n,e+r-i],["C",t+n,e+r,t+n,e+r,t+n-i,e+r],["L",t+i,e+r],["C",t,e+r,t,e+r,t,e+r-i],["L",t,e+i],["C",t,e,t,e,t+i,e]]}var i=t.defined,o=t.isNumber,a=t.pick;return{arc:e,callout:function(t,e,n,i,a){var s=Math.min(a&&a.r||0,n,i),l=s+6,u=a&&a.anchorX;a=a&&a.anchorY||0;var c=r(t,e,n,i,{r:s});return o(u)?(t+u>=n?a>e+l&&a=t+u?a>e+l&&ai&&u>t+l&&ua&&u>t+l&&u/g.test(o))?""!==o&&(i&&i.appendChild(n),o=new t(o),this.modifyTree(o.nodes),o.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("\u2026")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),i&&i.removeChild(n)):n.appendChild(r.createTextNode(this.unescapeEntities(o))),a(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,n=this.svgElement,a=o(n.element,"x");for(n.firstLineMetrics=void 0;(t=n.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)n.element.removeChild(t);[].forEach.call(n.element.querySelectorAll("tspan.highcharts-br"),(function(t,r){t.nextSibling&&t.previousSibling&&(0===r&&1===t.previousSibling.nodeType&&(n.firstLineMetrics=n.renderer.fontMetrics(void 0,t.previousSibling)),o(t,{dy:e.getLineHeight(t.nextSibling),x:a}))}));var s=this.width||0;if(s){var l=function(t,l){var u=t.textContent||"",c=u.replace(/([^\^])-/g,"$1- ").split(" "),h=!e.noWrap&&(1i){for(;h<=f;)d=Math.ceil((h+f)/2),n&&(a=o(n,d)),m=p(d,a&&a.length-1),h===f?h=f+1:m>i?f=d-1:h=d;0===f?t.textContent="":e&&f===e.length-1||(t.textContent=a||o(e||n,d))}n&&n.splice(0,d),s.actualWidth=m,s.rotation=u},e.prototype.unescapeEntities=function(t,e){return s(this.renderer.escapes,(function(n,r){e&&-1!==e.indexOf(n)||(t=t.toString().replace(new RegExp(n,"g"),r))})),t},e}()})),e(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palette.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s,l,u){var c,h=n.charts,f=n.deg2rad,d=n.doc,p=n.isFirefox,m=n.isMS,g=n.isWebKit,v=n.noop,y=n.SVG_NS,b=n.symbolSizes,x=n.win,w=u.addEvent,S=u.attr,C=u.createElement,_=u.css,k=u.defined,E=u.destroyObjectProperties,M=u.extend,T=u.isArray,A=u.isNumber,O=u.isObject,P=u.isString,N=u.merge,j=u.pick,L=u.pInt,D=u.uniqueKey;return n=function(){function n(t,e,n,r,i,o,a){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,n,r,i,o,a)}return n.prototype.init=function(t,e,n,r,i,o,a){var s,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),u=l.element;a||l.css(this.getStyle(r)),t.appendChild(u),S(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&S(u,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=u,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 9.2.2")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=i,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),p&&t.getBoundingClientRect&&((e=function(){_(t,{left:0,top:0}),s=t.getBoundingClientRect(),_(t,{left:Math.ceil(s.left)-s.left+"px",top:Math.ceil(s.top)-s.top+"px"})})(),this.unSubPixelFix=w(x,"resize",e))},n.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((p||g)&&d.getElementsByTagName("base").length){if(!k(c)){var e=D();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(d.body),_(e,{position:"fixed",top:0,left:0,zIndex:9e5});var n=d.elementFromPoint(6,6);c="hitme"===(n&&n.id),d.body.removeChild(e)}if(c)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},n.prototype.getStyle=function(t){return this.style=M({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},n.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),E(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},n.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},n.prototype.buildText=function(t){new l(t).buildSVG()},n.prototype.getContrast=function(t){return(t=e.parse(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459(t=/px/.test(t)?L(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},n.prototype.rotCorr=function(t,e,n){var r=t;return e&&n&&(r=Math.max(r*Math.cos(e*f),4)),{x:-t/3*Math.sin(e*f),y:r}},n.prototype.pathToSegments=function(t){for(var e=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},i=0;i":">","'":"'",'"':"""},symbols:s,draw:v}),i.registerRendererType("svg",n,!0),n})),e(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.isFirefox,o=t.isMS,a=t.isWebKit,s=t.win,l=n.css,u=n.defined,c=n.extend,h=n.pick,f=n.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var n=e.prototype,r=t.prototype;r.getSpanCorrection=n.getSpanCorrection,r.htmlCss=n.htmlCss,r.htmlGetBBox=n.htmlGetBBox,r.htmlUpdateTransform=n.htmlUpdateTransform,r.setSpanRotation=n.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,n){this.xCorr=-t*n,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,n=h(e&&t.width,void 0);if(e){delete t.width,this.textWidth=n;var r=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=c(this.styles,t),l(this.element,t),r&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,r=this.translateY||0,i=this.x||0,o=this.y||0,a=this.textAlign||"left",s={left:0,center:.5,right:1}[a],c=this.styles;if(c=c&&c.whiteSpace,l(e,{marginLeft:n,marginTop:r}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){l(t,{marginLeft:n+1,marginTop:r+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(n){t.invertChild(n,e)})),"SPAN"===e.tagName){var h=this.rotation,d=this.textWidth&&f(this.textWidth),p=[h,a,e.innerHTML,this.textWidth,this.textAlign].join(),m=void 0;(m=d!==this.oldTextWidth)&&!(m=d>this.oldTextWidth)&&((m=this.textPxLength)||(l(e,{width:"",whiteSpace:c||"nowrap"}),m=e.offsetWidth),m=m>d),m&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(l(e,{width:d+"px",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=d,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,p!==this.cTT&&(m=t.fontMetrics(e.style.fontSize,e).b,!u(h)||h===(this.oldRotation||0)&&a===this.oldAlign||this.setSpanRotation(h,s,m),this.getSpanCorrection(!u(h)&&this.textPxLength||e.offsetWidth,m,s,h,a)),l(e,{left:i+(this.xCorr||0)+"px",top:o+(this.yCorr||0)+"px"}),this.cTT=p,this.oldRotation=h,this.oldAlign=a}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,n){var r={},u=o&&!/Edge/.test(s.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":i?"MozTransform":s.opera?"-o-transform":void 0;u&&(r[u]=r.transform="rotate("+t+"deg)",r[u+(i?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",l(this.element,r))},e.composedClasses=[],e}(e)})),e(n,"Core/Renderer/HTML/HTMLRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=r.attr,a=r.createElement,s=r.extend,l=r.pick;return function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.compose=function(t){return-1===r.composedClasses.indexOf(t)&&(r.composedClasses.push(t),t.prototype.html=r.prototype.html),t},r.prototype.html=function(n,r,i){var u=this.createElement("span"),c=u.element,h=u.renderer,f=h.isSVG,d=function(t,n){["opacity","visibility"].forEach((function(r){t[r+"Setter"]=function(i,o,a){var s=t.div?t.div.style:n;e.prototype[r+"Setter"].call(this,i,o,a),s&&(s[o]=i)}})),t.addedSetters=!0};return u.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,l(e,"")),this.textStr=e,u.doTransform=!0)},f&&d(u,u.element.style),u.xSetter=u.ySetter=u.alignSetter=u.rotationSetter=function(t,e){"align"===e?u.alignValue=u.textAlign=t:u[e]=t,u.doTransform=!0},u.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},u.attr({text:n,x:Math.round(r),y:Math.round(i)}).css({position:"absolute"}),h.styledMode||u.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",u.css=u.htmlCss,f&&(u.add=function(t){var e=h.box.parentNode,n=[];if(this.parentGroup=t){var r=t.div;if(!r){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach((function(t){function i(e,n){t[n]=e,"translateX"===n?h.left=e+"px":h.top=e+"px",t.doTransform=!0}var l=o(t.element,"class"),c=t.styles||{},h=(r=t.div=t.div||a("div",l?{className:l}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:t.visibility},r||e)).style;s(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(r),on:function(){return n[0].div&&u.on.apply({element:n[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:i,translateYSetter:i}),t.addedSetters||d(t)}))}}else r=e;return r.appendChild(c),u.added=!0,u.alignOnAdd&&u.htmlUpdateTransform(),u}),u},r.composedClasses=[],r}(n)})),e(n,"Core/Axis/AxisDefaults.js",[n["Core/Color/Palette.js"]],(function(t){var e;return function(e){e.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:t.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:t.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:t.neutralColor5,minorGridLineWidth:1,minorTickColor:t.neutralColor40,lineColor:t.highlightColor20,lineWidth:1,gridLineColor:t.neutralColor10,gridLineWidth:void 0,tickColor:t.highlightColor20},e.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:t.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},e.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},e.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},e.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},e.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(e||(e={})),e})),e(n,"Core/Foundation.js",[n["Core/Utilities.js"]],(function(t){var e=t.addEvent,n=t.isFunction,r=t.objectEach,i=t.removeEvent;return{registerEventOptions:function(t,o){t.eventOptions=t.eventOptions||{},r(o.events,(function(r,o){t.eventOptions[o]!==r&&(t.eventOptions[o]&&(i(t,o,t.eventOptions[o]),delete t.eventOptions[o]),n(r)&&(t.eventOptions[o]=r,e(t,o,r)))}))}}})),e(n,"Core/Axis/Tick.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=e.deg2rad,i=n.clamp,o=n.correctFloat,a=n.defined,s=n.destroyObjectProperties,l=n.extend,u=n.fireEvent,c=n.isNumber,h=n.merge,f=n.objectEach,d=n.pick;return e=function(){function e(t,e,n,r,i){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=n||"",this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,u(this,"init"),n||r||this.addLabel()}return e.prototype.addLabel=function(){var e=this,n=e.axis,r=n.options,i=n.chart,s=n.categories,h=n.logarithmic,f=n.names,p=e.pos,m=d(e.options&&e.options.labels,r.labels),g=n.tickPositions,v=p===g[0],y=p===g[g.length-1],b=(!m.step||1===m.step)&&1===n.tickInterval;g=g.info;var x,w=e.label;if(s=this.parameters.category||(s?d(s[p],f[p],p):p),h&&c(s)&&(s=o(h.lin2log(s))),n.dateTime)if(g)var S=i.time.resolveDTLFormat(r.dateTimeLabelFormats[!r.grid&&g.higherRanks[p]||g.unitName]),C=S.main;else c(s)&&(C=n.dateTime.getXDateFormat(s,r.dateTimeLabelFormats||{}));e.isFirst=v,e.isLast=y;var _={axis:n,chart:i,dateTimeLabelFormat:C,isFirst:v,isLast:y,pos:p,tick:e,tickPositionInfo:g,value:s};u(this,"labelFormat",_);var k=function(e){return m.formatter?m.formatter.call(e,e):m.format?(e.text=n.defaultLabelFormatter.call(e),t.format(m.format,e,i)):n.defaultLabelFormatter.call(e,e)};r=k.call(_,_);var E=S&&S.list;e.shortenLabel=E?function(){for(x=0;xc&&i-h*fa&&(l=Math.round((o-i)/Math.cos(c*r))):(o=i+(1-h)*f,i-h*fa&&(g=a-t.x+g*h,v=-1),(g=Math.min(p,g))g||e.autoRotation&&(u.styles||{}).width)&&(l=g)),l&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(l)+"px",(n.style||{}).textOverflow||(m.textOverflow="ellipsis"),u.css(m)))},e.prototype.moveLabel=function(t,e){var n=this,r=n.label,i=n.axis,o=i.reversed,a=!1;if(r&&r.textStr===t?(n.movedLabel=r,a=!0,delete n.label):f(i.ticks,(function(e){a||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,a=!0,e.labelPos=n.movedLabel.xy,delete e.label)})),!a&&(n.labelPos||r)){var s=n.labelPos||r.xy;r=i.horiz?o?0:i.width+i.left:s.x,i=i.horiz?s.y:o?i.width+i.left:0,n.movedLabel=n.createLabel({x:r,y:i},t,e),n.movedLabel&&n.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,n){var r=this.axis,i=r.horiz,o=this.pos,a=d(this.tickmarkOffset,r.tickmarkOffset);a=(o=this.getPosition(i,o,a,e)).x;var s=o.y;r=i&&a===r.pos+r.len||!i&&s===r.pos?-1:1,i=d(n,this.label&&this.label.newOpacity,1),n=d(n,1),this.isActive=!0,this.renderGridLine(e,n,r),this.renderMark(o,n,r),this.renderLabel(o,e,i,t),this.isNew=!1,u(this,"afterRender")},e.prototype.renderGridLine=function(t,e,n){var r=this.axis,i=r.options,o={},a=this.pos,s=this.type,l=d(this.tickmarkOffset,r.tickmarkOffset),u=r.chart.renderer,c=this.gridLine,h=i.gridLineWidth,f=i.gridLineColor,p=i.gridLineDashStyle;"minor"===this.type&&(h=i.minorGridLineWidth,f=i.minorGridLineColor,p=i.minorGridLineDashStyle),c||(r.chart.styledMode||(o.stroke=f,o["stroke-width"]=h||0,o.dashstyle=p),s||(o.zIndex=1),t&&(e=0),this.gridLine=c=u.path().attr(o).addClass("highcharts-"+(s?s+"-":"")+"grid-line").add(r.gridGroup)),c&&(n=r.getPlotLinePath({value:a+l,lineWidth:c.strokeWidth()*n,force:"pass",old:t}))&&c[t||this.isNew?"attr":"animate"]({d:n,opacity:e})},e.prototype.renderMark=function(t,e,n){var r=this.axis,i=r.options,o=r.chart.renderer,a=this.type,s=r.tickSize(a?a+"Tick":"tick"),l=t.x;t=t.y;var u=d(i["minor"!==a?"tickWidth":"minorTickWidth"],!a&&r.isXAxis?1:0);i=i["minor"!==a?"tickColor":"minorTickColor"];var c=this.mark,h=!c;s&&(r.opposite&&(s[0]=-s[0]),c||(this.mark=c=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(r.axisGroup),r.chart.styledMode||c.attr({stroke:i,"stroke-width":u})),c[h?"attr":"animate"]({d:this.getMarkPath(l,t,s[0],c.strokeWidth()*n,r.horiz,o),opacity:e}))},e.prototype.renderLabel=function(t,e,n,r){var i=this.axis,o=i.horiz,a=i.options,s=this.label,l=a.labels,u=l.step;i=d(this.tickmarkOffset,i.tickmarkOffset);var h=t.x;t=t.y;var f=!0;s&&c(h)&&(s.xy=t=this.getLabelPosition(h,t,s,o,l,i,r,u),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?f=!1:!o||l.step||l.rotation||e||0===n||this.handleOverflow(t),u&&r%u&&(f=!1),f&&c(t.y)?(t.opacity=n,s[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(s.attr("y",-9999),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,n=e.reversed;if(t&&!this.isNew){var r=e.horiz?n?e.left:e.width+e.left:t.xy.x;n=e.horiz?t.xy.y:n?e.width+e.top:e.top,t.animate({x:r,y:n,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e})),e(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/Color/Palette.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s,l){var u=t.animObject,c=i.defaultOptions,h=o.registerEventOptions,f=a.deg2rad,d=l.arrayMax,p=l.arrayMin,m=l.clamp,g=l.correctFloat,v=l.defined,y=l.destroyObjectProperties,b=l.erase,x=l.error,w=l.extend,S=l.fireEvent,C=l.getMagnitude,_=l.isArray,k=l.isNumber,E=l.isString,M=l.merge,T=l.normalizeTickInterval,A=l.objectEach,O=l.pick,P=l.relativeLength,N=l.removeEvent,j=l.splat,L=l.syncTimeout;return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var n=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?"xAxis":"yAxis"),S(this,"init",{userOptions:e}),this.opposite=O(e.opposite,this.opposite),this.side=O(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var r=this.options,i=r.labels,o=r.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=O(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames="category"===o||!0===r.categories,this.categories=r.categories||this.hasNames,this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=v(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.min=this.max=null,e=O(r.crosshair,j(t.options.tooltip.crosshairs)[n?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(n?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&n&&"undefined"===typeof this.reversed&&(this.reversed=!0),this.labelRotation=k(i.rotation)?i.rotation:void 0,h(this,r),S(this,"afterInit")},t.prototype.setOptions=function(t){this.options=M(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],M(c[this.coll],t)),S(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var n=k(this.value)?this.value:NaN,r=e.chart.time,i=this.dateTimeLabelFormat,o=c.lang,a=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var s=e.logarithmic?Math.abs(n):e.tickInterval,l=a&&a.length;if(e.categories)var u=""+this.value;else if(i)u=r.dateFormat(i,n);else if(l&&1e3<=s)for(;l--&&"undefined"===typeof u;)s>=(e=Math.pow(o,l+1))&&0===10*n%e&&null!==a[l]&&0!==n&&(u=t(n/e,-1)+a[l]);return"undefined"===typeof u&&(u=1e4<=Math.abs(n)?t(n,-1):t(n,-1,void 0,"")),u},t.prototype.getSeriesExtremes=function(){var t,e=this,n=e.chart;S(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((function(r){if(r.visible||!n.options.chart.ignoreHiddenSeries){var i=r.options,o=i.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((i=r.xData).length){i=e.logarithmic?i.filter(e.validatePositiveValue):i;var a=(t=r.getXExtremes(i)).min,s=t.max;k(a)||a instanceof Date||(i=i.filter(k),a=(t=r.getXExtremes(i)).min,s=t.max),i.length&&(e.dataMin=Math.min(O(e.dataMin,a),a),e.dataMax=Math.max(O(e.dataMax,s),s))}}else r=r.applyExtremes(),k(r.dataMin)&&(a=r.dataMin,e.dataMin=Math.min(O(e.dataMin,a),a)),k(r.dataMax)&&(s=r.dataMax,e.dataMax=Math.max(O(e.dataMax,s),s)),v(o)&&(e.threshold=o),(!i.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),S(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,n,r,i,o){var a=this.linkedParent||this,s=r&&a.old?a.old.min:a.min,l=a.minPixelPadding;i=(a.isOrdinal||a.brokenAxis&&a.brokenAxis.hasBreaks||a.logarithmic&&i)&&a.lin2val;var u=1,c=0;return(r=r&&a.old?a.old.transA:a.transA)||(r=a.transA),n&&(u*=-1,c=a.len),a.reversed&&(c-=(u*=-1)*(a.sector||a.len)),e?(t=(t*u+c-l)/r+s,i&&(t=a.lin2val(t))):(i&&(t=a.val2lin(t)),t=k(s)?u*(t-s)*r+c+u*l+(k(o)?r*o:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,n){return("pass"!==b&&tn)&&(b?t=m(t,e,n):a=!0),t}var n,r,i,o,a,s=this,l=s.chart,u=s.left,c=s.top,h=t.old,f=t.value,d=t.lineWidth,p=h&&l.oldChartHeight||l.chartHeight,g=h&&l.oldChartWidth||l.chartWidth,v=s.transB,y=t.translatedValue,b=t.force;return t={value:f,lineWidth:d,old:h,force:b,acrossPanes:t.acrossPanes,translatedValue:y},S(this,"getPlotLinePath",t,(function(t){y=O(y,s.translate(f,null,null,h)),y=m(y,-1e5,1e5),n=i=Math.round(y+v),r=o=Math.round(p-y-v),k(y)?s.horiz?(r=c,o=p-s.bottom,n=i=e(n,u,u+s.width)):(n=u,i=g-s.right,r=o=e(r,c,c+s.height)):(a=!0,b=!1),t.path=a&&!b?null:l.renderer.crispLine([["M",n,r],["L",i,o]],d||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,n){var r=g(Math.floor(e/t)*t);n=g(Math.ceil(n/t)*t);var i,o=[];if(g(r+t)===r&&(i=20),this.single)return[e];for(e=r;e<=n&&(o.push(e),(e=g(e+t,i))!==a);)var a=e;return o},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?O(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,i=this.min-r,o=(r=this.max+r)-i,a=[];if(o&&o/n=this.minRange,c=this.minRange,h=(c-s+a)/2;h=[a-h,O(i.min,a-h)],u&&(h[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),s=[(a=d(h))+c,O(i.max,a+c)],u&&(s[2]=o?o.log2lin(this.dataMax):this.dataMax),(s=p(s))-a=d)y=d,h=0;else if(e.dataMax<=d){var b=d;c=0}e.min=O(p,y,e.dataMin),e.max=O(m,b,e.dataMax)}r&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,O(e.dataMin,e.min))&&x(10,1,n),e.min=g(r.log2lin(e.min),16),e.max=g(r.log2lin(e.max),16)),e.range&&v(e.max)&&(e.userMin=e.min=p=Math.max(e.dataMin,e.minFromRange()),e.userMax=m=e.max,e.range=null),S(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(l||e.axisPointRange||e.stacking&&e.stacking.usePercentage||a)&&v(e.min)&&v(e.max)&&(n=e.max-e.min)&&(!v(p)&&h&&(e.min-=n*h),!v(m)&&c&&(e.max+=n*c)),k(e.userMin)||(k(i.softMin)&&i.softMine.max&&(e.max=m=i.softMax),k(i.ceiling)&&(e.max=Math.min(e.max,i.ceiling))),u&&v(e.dataMin)&&(d=d||0,!v(p)&&e.min=d?e.min=e.options.minRange?Math.min(d,e.max-e.minRange):d:!v(m)&&e.max>d&&e.dataMax<=d&&(e.max=e.options.minRange?Math.max(d,e.min+e.minRange):d)),k(e.min)&&k(e.max)&&!this.chart.polar&&e.min>e.max&&(v(e.options.min)?e.max=e.min:v(e.options.max)&&(e.min=e.max)),e.tickInterval=e.min===e.max||"undefined"===typeof e.min||"undefined"===typeof e.max?1:a&&e.linkedParent&&!f&&s===e.linkedParent.options.tickPixelInterval?f=e.linkedParent.tickInterval:O(f,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,l?1:(e.max-e.min)*s/Math.max(e.len,s)),o&&!t&&(e.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(e.min!==(e.old&&e.old.min)||e.max!==(e.old&&e.old.max))})),S(this,"postProcessData")),e.setAxisTranslation(),S(this,"initialAxisTranslation"),e.pointRange&&!f&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=O(i.minTickInterval,e.dateTime&&!e.series.some((function(t){return t.noSharedTooltip}))?e.closestPointRange:0),!f&&e.tickIntervale.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,n=this.getMinorTickInterval(),r=this.hasVerticalPanning(),i="colorAxis"===this.coll,o=(i||!r)&&t.startOnTick;r=(i||!r)&&t.endOnTick,i=t.tickPositioner,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&v(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=n=e&&e.slice(),!n&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?n=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(n=[this.min,this.max],x(19,!1,this.chart)),n.length>this.len&&(n=[n[0],n.pop()])[0]===n[1]&&(n.length=1),this.tickPositions=n,i&&(i=i.apply(this,[this.min,this.max])))&&(this.tickPositions=n=i),this.paddedTicks=n.slice(0),this.trimTicks(n,o,r),this.isLinked||(this.single&&2>n.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||i||this.adjustTickAmount()),S(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,n){var r=t[0],i=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(S(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==r)this.min=r;else for(;this.min-o>t[0];)t.shift();if(n)this.max=i;else for(;this.max+on&&(this.finalTickAmt=n,n=5),this.tickAmount=n},t.prototype.adjustTickAmount=function(){var t=this.options,e=this.tickInterval,n=this.tickPositions,r=this.tickAmount,i=this.finalTickAmt,o=n&&n.length,a=O(this.threshold,this.softThreshold?0:null);if(this.hasData()&&k(this.min)&&k(this.max)){if(or&&(this.tickInterval*=2,this.setTickPositions());if(v(i)){for(e=t=n.length;e--;)(3===i&&1===e%2||2>=i&&0s&&(e=s)),v(i)&&(os&&(o=s))),n.displayBtn="undefined"!==typeof e||"undefined"!==typeof o,n.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,n=e.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(P(O(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),o=this.height=Math.round(P(O(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),a=this.top=Math.round(P(O(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(P(O(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-a,this.right=t.chartWidth-i-e,this.len=Math.max(r?i:o,0),this.pos=r?e:a},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,n=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=n:1/0===t?t=e:n>t?t=n:ee?t.align="right":195e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,n=O(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=e["tick"===t?"tickLength":"minorTickLength"];if(n&&r){"inside"===e[t+"Position"]&&(r=-r);var i=[r,n]}return S(this,"afterTickSize",t={tickSize:i}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,n=this.options.labels,r=this.horiz,i=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/i),a=n.rotation,s=this.labelMetrics(),l=Math.max(this.max-this.min,0),u=function(t){var e=t/(o||1);return(e=1l&&1/0!==t&&1/0!==o&&l&&(e=Math.ceil(l/i)),g(e*i)},c=i,h=Number.MAX_VALUE;if(r){if(!n.staggerLines&&!n.step)if(k(a))var d=[a];else o=n){var r=(e=u(Math.abs(s.h/Math.sin(f*n))))+Math.abs(n/360);rr.step)return r.rotation?0:(this.staggerLines||1)*this.len/i;if(!n){if(void 0!==(t=r.style.width))return parseInt(String(t),10);if(o)return o-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,n=this.tickPositions,r=this.ticks,i=this.options.labels,o=i.style,a=this.horiz,s=this.getSlotWidth(),l=Math.max(1,Math.round(s-2*i.padding)),u={},c=this.labelMetrics(),h=o.textOverflow,f=0;if(E(i.rotation)||(u.rotation=i.rotation||0),n.forEach((function(t){(t=r[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>f&&(f=t.label.textPxLength)})),this.maxLabelLength=f,this.autoRotation)f>l&&f>c.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(s){var d=l;if(!h){var p="clip";for(l=n.length;!a&&l--;){var m=n[l];(m=r[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>s&&m.css({width:s+"px"}),m.getBBox().height>this.len/n.length-(c.h-c.f)&&(m.specificTextOverflow="ellipsis"))}}}u.rotation&&(d=f>.5*t.chartHeight?.33*t.chartHeight:f,h||(p="ellipsis")),(this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation))&&(u.align=this.labelAlign),n.forEach((function(t){var e=(t=r[t])&&t.label,n=o.width,i={};e&&(e.attr(u),t.shortenLabel?t.shortenLabel():d&&!n&&"nowrap"!==o.whiteSpace&&(d=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(r[t]||(r[t]=new s(this,t)),n&&r[t].isNew&&r[t].render(e,!0,-1),r[t].render(e))},t.prototype.render=function(){var t,e,n=this,r=n.chart,i=n.logarithmic,o=n.options,l=n.isLinked,c=n.tickPositions,h=n.axisTitle,f=n.ticks,d=n.minorTicks,p=n.alternateBands,m=o.stackLabels,g=o.alternateGridColor,v=n.tickmarkOffset,y=n.axisLine,b=n.showAxis,x=u(r.renderer.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[f,d,p].forEach((function(t){A(t,(function(t){t.isActive=!1}))})),n.hasData()||l){var w=n.chart.hasRendered&&n.old&&k(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(t){n.renderMinorTick(t,w)})),c.length&&(c.forEach((function(t,e){n.renderTick(t,e,w)})),v&&(0===n.min||n.single)&&(f[-1]||(f[-1]=new s(n,-1,null,!0)),f[-1].render(-1))),g&&c.forEach((function(o,s){e="undefined"!==typeof c[s+1]?c[s+1]+v:n.max-v,0===s%2&&oe&&(!a||u<=n)&&"undefined"!==typeof u&&c.push(u),u>n&&(d=!0),u=m}}}else e=this.lin2log(e),n=this.lin2log(n),t=a?s.getMinorTickInterval():u.tickInterval,t=o("auto"===t?null:t,this.minorAutoInterval,u.tickPixelInterval/(a?5:1)*(n-e)/((a?l/s.tickPositions.length:l)||1)),t=i(t,void 0,r(t)),c=s.getLinearTickPositions(t,e,n).map(this.log2lin),a||(this.minorAutoInterval=t/5);return a||(s.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=l}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.erase,r=t.extend,i=t.isNumber;return function(t){var e,o=[];t.compose=function(t,n){return e||(e=t),-1===o.indexOf(n)&&(o.push(n),r(n.prototype,a.prototype)),n};var a=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,n){void 0===n&&(n=this.options);var r=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),o=[],a=this.horiz;if(e=!i(this.min)||!i(this.max)||tthis.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),n=1,t&&r){if(e){var s=t.toString()===r.toString();n=0}for(e=0;ev-l?v:v-l);else{if(!m)return!1;a[t]=Math.max(s,i+l+n>e?i:i+l)}},y=function(t,e,n,r,i){var s;return ie-o?s=!1:a[t]=ie-r/2?e-r-2:i-n/2,s},b=function(t){var e=p;p=m,m=e,r=t};return(i.inverted||1e}))&&(t=t.map((function(t){var e=r(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return p(t,{target:e.y,x:e.x})}))),i.cleanSplit(),l(t,L);var D=P,I=P;t.forEach((function(t){var e=t.x,n=t.boxWidth;(t=t.isHeader)||(i.outside&&P+eI&&(I=P+e))})),t.forEach((function(t){var e=t.x,n=t.anchorX,r=t.pos,o=t.point.isHeader;if(r={visibility:"undefined"===typeof r?"hidden":"inherit",x:e,y:r+N,anchorX:n,anchorY:t.anchorY},i.outside&&en[0]?Math.max(Math.abs(n[0]),i.width-n[0]):Math.max(Math.abs(n[0]),i.width),r.height=0>n[1]?Math.max(Math.abs(n[1]),i.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),i.height),this.tracker?this.tracker.attr(r):(this.tracker=e.renderer.rect(r).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var n=t.series,r=n.tooltipOptions,i=n.xAxis,o=i&&i.dateTime;i={isFooter:e,labelConfig:t};var s=r.xDateFormat,l=r[e?"footerFormat":"headerFormat"];return m(this,"headerFormatter",i,(function(e){o&&!s&&v(t.key)&&(s=o.getXDateFormat(t.key,r.dateTimeLabelFormats)),o&&s&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){l=l.replace("{point."+t+"}","{point."+t+":"+s+"}")})),n.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=a(l,{point:t,series:n},this.chart)})),i.text},t.prototype.update=function(t){this.destroy(),b(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,b(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,n=this.options,r=e.pointer,i=this.getLabel();r=r.getChartPosition();var o=(n.positioner||this.getPosition).call(this,i.width,i.height,t),a=t.plotX+e.plotLeft;t=t.plotY+e.plotTop,this.outside&&(n=n.borderWidth+2*this.distance,this.renderer.setSize(i.width+n,i.height+n,!1),1===r.scaleX&&1===r.scaleY||(h(this.container,{transform:"scale("+r.scaleX+", "+r.scaleY+")"}),a*=r.scaleX,t*=r.scaleY),a+=r.left-o.x,t+=r.top-o.y),this.move(Math.round(o.x),Math.round(o.y||0),a,t)},t}(),t})),e(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i){var o=e.animObject,a=n.defaultOptions,s=r.format,l=i.addEvent,u=i.defined,c=i.erase,h=i.extend,f=i.fireEvent,d=i.getNestedProperty,p=i.isArray,m=i.isFunction,g=i.isNumber,v=i.isObject,y=i.merge,b=i.objectEach,x=i.pick,w=i.syncTimeout,S=i.removeEvent,C=i.uniqueKey;return e=function(){function e(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},n=t.getGraphicalProps();n.singular.forEach((function(n){t[n]=t[n].animate("dataLabel"===n?{x:t[n].startXPos,y:t[n].startYPos,opacity:0}:e)})),n.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(h({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,n){var r=this.series,i=r.options.pointValKey||r.pointValKey;return t=e.prototype.optionsToObject.call(this,t),h(this,t),this.options=this.options?h(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,i&&(this.y=e.prototype.getNestedProperty.call(this,i)),this.formatPrefix=(this.isNull=x(this.isValid&&!this.isValid(),null===this.x||!g(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&"undefined"===typeof n&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),"undefined"===typeof this.x&&r?this.x="undefined"===typeof n?r.autoIncrement():n:g(t.x)&&r.options.relativeXValue&&(this.x=r.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(i in(e.graphic||e.dataLabel||e.dataLabels)&&(S(e),e.destroyElements()),e)e[i]=null}var e=this,n=e.series,r=n.chart;n=n.options.dataSorting;var i,a=r.hoverPoints,s=o(e.series.chart.renderer.globalAnimation);e.legendItem&&r.legend.destroyItem(e),a&&(e.setState(),c(a,e),a.length||(r.hoverPoints=null)),e===r.hoverPoint&&e.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),w(t,s.duration)):t(),r.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,n){var r=this,i=this.series.options;(i.point.events[t]||r.options&&r.options.events&&r.options.events[t])&&r.importEvents(),"click"===t&&i.allowPointSelect&&(n=function(t){r.select&&r.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),f(r,t,e,n)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,n=this,r=[],i={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&r.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&r.push("dataLabel","dataLabelUpper","connector"),e=r.length;e--;){var o=r[e];n[o]&&i.singular.push(o)}return["dataLabel","connector"].forEach((function(e){var r=e+"s";t[e]&&n[r]&&i.plural.push(r)})),i},e.prototype.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}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?d(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var n,r=0;for(n=e[r];this[t]>=n.value;)n=e[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,n){return this.series=t,this.applyOptions(e,n),this.id=u(this.id)?this.id:C(),this.resolveColor(),t.chart.pointCount++,f(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var n=this.series,r=n.options.keys,i=r||n.pointArrayMap||["y"],o=i.length,a={},s=0,l=0;if(g(t)||null===t)a[i[0]]=t;else if(p(t))for(!r&&t.length>o&&("string"===(n=typeof t[0])?a.name=t[0]:"number"===n&&(a.x=t[0]),s++);ls+u&&(m=s+u),vl+c&&(v=l+c),this.hasDragged=Math.sqrt(Math.pow(h-m,2)+Math.pow(f-v,2)),10t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,i),(i=g(t,!0)&&t.series)&&!(i=!g(r,!0))){i=r.distX-t.distX;var o=r.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(r.series.group&&r.series.group.zIndex);i=0<(0!==i&&e?i:0!==o?o:0!==a?a:r.series.index>t.series.index?-1:1)}i&&(r=t)})),r)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var n=t.series,r=n.xAxis;n=n.yAxis;var i=t.shapeArgs;if(r&&n){var o=b(t.clientX,t.plotX),a=t.plotY||0;return t.isNode&&i&&m(i.x)&&m(i.y)&&(o=i.x,a=i.y),e?{chartX:n.len+n.pos-a,chartY:r.len+r.pos-o}:{chartX:o+r.pos,chartY:a+n.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=y(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var n=t.offsetWidth;return t=t.offsetHeight,2m.max&&(n=m.max-b,_=!0);_?(S-=.8*(S-a[u][0]),"number"===typeof C&&(C-=.8*(C-a[u][1])),e()):a[u]=[S,C],p||(o[u]=x-d,o[f]=b),o=p?1/w:w,i[f]=b,i[u]=n,r[p?t?"scaleY":"scaleX":"scale"+c]=w,r["translate"+c]=o*d+(S-o*v)},t.prototype.reset=function(t,e){var n=this.chart,r=n.hoverSeries,i=n.hoverPoint,o=n.hoverPoints,a=n.tooltip,s=a&&a.shared?o:i;t&&s&&x(s).forEach((function(e){e.series.isCartesian&&"undefined"===typeof e.plotX&&(t=!1)})),t?a&&s&&x(s).length&&(a.refresh(s),a.shared&&o?o.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):i&&(i.setState(i.state,!0),n.axes.forEach((function(t){t.crosshair&&i.series[t.coll]===t&&t.drawCrosshair(null,i)})))):(i&&i.onMouseOut(),o&&o.forEach((function(t){t.setState()})),r&&r.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=n.hoverPoints=n.hoverPoint=null)},t.prototype.runPointActions=function(e,n){var r=this.chart,i=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,o=!!i&&i.shared,s=n||r.hoverPoint,u=s&&s.series||r.hoverSeries;s=(n=this.getHoverData(s,u,r.series,(!e||"touchmove"!==e.type)&&(!!n||u&&u.directTouch&&this.isDirectTouch),o,e)).hoverPoint,u=n.hoverSeries;var c=n.hoverPoints;if(n=u&&u.tooltipOptions.followPointer&&!u.tooltipOptions.split,o=o&&u&&!u.noSharedTooltip,s&&(s!==r.hoverPoint||i&&i.isHidden)){if((r.hoverPoints||[]).forEach((function(t){-1===c.indexOf(t)&&t.setState()})),r.hoverSeries!==u&&u.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach((function(t){t.setState("hover")})),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!s.series)return;r.hoverPoints=c,r.hoverPoint=s,s.firePointEvent("mouseOver"),i&&i.refresh(o?c:s,e)}else n&&i&&!i.isHidden&&(s=i.getAnchor([{}],e),r.isInsidePlot(s[0],s[1],{visiblePlotOnly:!0})&&i.updatePosition({plotX:s[0],plotY:s[1]}));this.unDocMouseMove||(this.unDocMouseMove=l(r.container.ownerDocument,"mousemove",(function(e){var n=a[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach((function(t){var n,i=b((t.crosshair||{}).snap,!0);i&&((n=r.hoverPoint)&&n.series[t.coll]===t||(n=d(c,(function(e){return e.series[t.coll]===t})))),n||!i?t.drawCrosshair(e,n):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var n=this.chart;n.series.forEach((function(r){var i=t||r.getPlotBox();r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(e?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))})),n.clipRect.attr(e||n.clipBox)},t.prototype.setDOMEvents=function(){var n=this,r=this.chart.container,i=r.ownerDocument;r.onmousedown=this.onContainerMouseDown.bind(this),r.onmousemove=this.onContainerMouseMove.bind(this),r.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(l(r,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(l(r,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=l(i,"mouseup",this.onDocumentMouseUp.bind(this)));for(var o=this.chart.renderTo.parentElement;o&&"BODY"!==o.tagName;)this.eventsToUnbind.push(l(o,"scroll",(function(){delete n.chartPosition}))),o=o.parentElement;e.hasTouch&&(this.eventsToUnbind.push(l(r,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(l(r,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=l(i,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var n=this.chart,r=e.charts[b(t.hoverChartIndex,-1)];r&&r!==n&&r.pointer.onContainerMouseLeave({relatedTarget:!0}),r&&r.mouseIsDown||(t.hoverChartIndex=n.index)},t.prototype.touch=function(t,e){var n=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var r=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));b(r,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zoomBySingleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,n=e.options.chart;e=e.inverted;var r=n.zoomType||"";/touch/.test(t.type)&&(r=b(n.pinchType,r)),this.zoomX=t=/x/.test(r),this.zoomY=n=/y/.test(r),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},t}(),t})),e(n,"Core/MSPointer.js",[n["Core/Globals.js"],n["Core/Pointer.js"],n["Core/Utilities.js"]],(function(t,e,n){function r(){var t=[];return t.item=function(t){return this[t]},f(p,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function i(t,n,i,o){var s=a[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,o(t),s[n]({type:i,target:t.currentTarget,preventDefault:l,touches:r()}))}var o=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=t.charts,s=t.doc,l=t.noop,u=t.win,c=n.addEvent,h=n.css,f=n.objectEach,d=n.removeEvent,p={},m=!!u.PointerEvent;return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.isRequired=function(){return!(t.hasTouch||!u.PointerEvent&&!u.MSPointerEvent)},n.prototype.batchMSEvents=function(t){t(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(s,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},n.prototype.destroy=function(){this.batchMSEvents(d),e.prototype.destroy.call(this)},n.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this.hasZoom&&h(t.container,{"-ms-touch-action":"none","touch-action":"none"})},n.prototype.onContainerPointerDown=function(t){i(t,"onContainerTouchStart","touchstart",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},n.prototype.onContainerPointerMove=function(t){i(t,"onContainerTouchMove","touchmove",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY},p[t.pointerId].target||(p[t.pointerId].target=t.currentTarget)}))},n.prototype.onDocumentPointerUp=function(t){i(t,"onDocumentTouchEnd","touchend",(function(t){delete p[t.pointerId]}))},n.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(c)},n}(e)})),e(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){var a=t.animObject,s=t.setAnimation,l=e.format;t=n.isFirefox;var u=n.marginNames;n=n.win;var c=i.distribute,h=o.addEvent,f=o.createElement,d=o.css,p=o.defined,m=o.discardElement,g=o.find,v=o.fireEvent,y=o.isNumber,b=o.merge,x=o.pick,w=o.relativeLength,S=o.stableSort,C=o.syncTimeout;return i=o.wrap,o=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),h(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=h(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=b(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var n=this.chart;this.setOptions(b(!0,this.options,t)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,x(e,!0)&&n.redraw(),v(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options,r=t.legendItem,i=t.legendLine,o=t.legendSymbol,a=this.itemHiddenStyle.color;n=e?n.itemStyle.color:a;var s=e&&t.color||a,l=t.options&&t.options.marker,u={fill:s};r&&r.css({fill:n,color:n}),i&&i.attr({stroke:s}),o&&(l&&o.isMarker&&(u=t.pointAttribs(),e||(u.stroke=u.fill=a)),o.attr(u))}v(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,n=this.options,r=n.symbolPadding,i=!n.rtl,o=t._legendItemPos;n=o[0],o=o[1];var a=t.checkbox,s=t.legendGroup;s&&s.element&&(r={translateX:i?n:this.legendWidth-n-2*r-4,translateY:o},i=function(){v(e,"afterPositionItem",{item:t})},p(s.translateY)?s.animate(r,void 0,i):(s.attr(r),i())),a&&(a.x=n,a.y=o)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&m(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,n=this.titleHeight;if(t){var r=t.translateY;this.allItems.forEach((function(i){var o=i.checkbox;if(o){var a=r+n+o.y+(this.scrollOffset||0)+3;d(o,{left:t.translateX+i.checkboxOffset+o.x-20+"px",top:a+"px",display:this.proximate||a>r-6&&al?this.maxItemWidth:t.itemWidth,r&&this.itemX-n+e>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(i,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],r?this.itemX+=e:(this.itemY+=a+i+o,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(t.checkbox?0:s):e)+n,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var n=e&&e.options;e&&x(n.showInLegend,!p(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))})),v(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o,a){o.test(i)&&!p(t[a])&&(n[u[a]]=Math.max(n[u[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+x(r.margin,12)+e[a]+(n.titleOffset[a]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],n="left"===this.options.align;this.allItems.forEach((function(r){var i,o=n;if(r.yAxis){r.xAxis.options.reversed&&(o=!o),r.points&&(i=g(o?r.points:r.points.slice(0).reverse(),(function(t){return y(t.plotY)}))),o=this.itemMarginTop+r.legendItem.getBBox().height+this.itemMarginBottom;var a=r.yAxis.top-t.plotTop;r.visible?(i=i?i.plotY:r.yAxis.height,i+=a-.3*o):i=a+r.yAxis.height,e.push({target:i,size:o,item:r})}}),this),c(e,t.plotHeight).forEach((function(e){e.item._legendItemPos&&(e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos)}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,n=this.options,r=this.padding,i=this.getAllItems(),o=this.group,a=this.box;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=w(n.width,t.spacingBox.width-r);var s=t.spacingBox.width-2*r-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(s/=2),this.maxLegendWidth=this.widthOption||s,o||(this.group=o=e.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(o),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),S(i,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),n.reversed&&i.reverse(),this.allItems=i,this.display=s=!!i.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,i.forEach(this.renderItem,this),i.forEach(this.layoutItem,this),i=(this.widthOption||this.offsetWidth)+r;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l),l+=r,a||(this.box=a=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(o),a.isNew=!0),t.styledMode||a.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0s&&!1!==h.enabled?(this.clipHeight=e=Math.max(s-20-this.titleHeight-u,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,m.forEach((function(t,r){var i=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),a=p.length;(!a||i-p[a-1]>e&&(n||i)!==p[a-1])&&(p.push(n||i),a++),t.pageIx=a-1,n&&(m[r-1].pageIx=a-1),r===m.length-1&&i+o-p[a-1]>e&&i!==n&&(p.push(i),t.pageIx=a),i!==n&&(n=i)})),b||(b=r.clipRect=o.clipRect(0,u,9999,0),r.contentGroup.clip(b)),g(e),y||(this.nav=y=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,d,d).add(y),v("upTracker").on("click",(function(){r.scroll(-1,f)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(h.style),this.pager.add(y),this.down=o.symbol("triangle-down",0,0,d,d).add(y),v("downTracker").on("click",(function(){r.scroll(1,f)}))),r.scroll(0),t=s):y&&(g(),this.nav=y.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var n=this,r=this.chart,i=this.pages,o=i.length,l=this.clipHeight,u=this.options.navigation,c=this.pager,h=this.padding,f=this.currentPage+t;f>o&&(f=o),0=Math.max(l+o,h.pos)&&s<=Math.min(l+o+i.width,h.pos+h.len)||(t.isInsidePlot=!1)}return!n.ignoreY&&t.isInsidePlot&&(r=c&&(r?c.xAxis:c.yAxis)||{pos:a,len:1/0},(n=n.paneCoordinates?r.pos+e:a+e)>=Math.max(u+a,r.pos)&&n<=Math.min(u+a+i.height,r.pos+r.len)||(t.isInsidePlot=!1)),z(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){z(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,r=this.pointer,i=this.legend,o=this.userOptions.legend,a=this.renderer,s=a.isHidden(),l=[],u=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&t,this),s&&this.temporaryDisplay(),this.layOutTitles(),t=n.length;t--;){var h=n[t];if(h.options.stacking||h.options.centerInCategory){var f=!0;if(h.isDirty){var d=!0;break}}}if(d)for(t=n.length;t--;)(h=n[t]).options.stacking&&(h.isDirty=!0);n.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"===typeof t.updateTotals&&t.updateTotals(),c=!0):o&&(o.labelFormatter||o.labelFormat)&&(c=!0)),t.isDirtyData&&z(t,"updatedData")})),c&&i&&i.options.enabled&&(i.render(),this.isDirtyLegend=!1),f&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(u=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,l.push((function(){z(t,"afterSetExtremes",B(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(u||f)&&t.redraw()})),u&&this.drawChartBox(),z(this,"predraw"),n.forEach((function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),r&&r.reset(!0),a.draw(),z(this,"redraw"),z(this,"render"),s&&this.temporaryDisplay(!0),l.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var n=this.series,r=F(this.axes,e)||F(this.series,e),i=0;!r&&i=s&&i<=l||u||!L(i))&&(c=!0),r[u?"zoomX":"zoomY"]&&c&&(e=a.zoom(t.min,t.max),a.displayBtn&&(o=!0))}));var a=n.resetZoomButton;o&&!a?n.showResetZoom():!o&&W(a)&&(n.resetZoomButton=a.destroy()),e&&n.redraw(q(n.options.chart.animation,t&&t.animation,100>n.pointCount))},t.prototype.pan=function(t,e){var n=this,r=n.hoverPoints;e="object"===typeof e?e:{enabled:e,type:"x"};var i=n.options.chart,o=n.options.mapNavigation&&n.options.mapNavigation.enabled;i&&i.panning&&(i.panning=e);var a,s=e.type;z(this,"pan",{originalEvent:t},(function(){r&&r.forEach((function(t){t.setState()}));var e=n.xAxis;"xy"===s?e=e.concat(n.yAxis):"y"===s&&(e=n.yAxis);var i={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var r=e.horiz,l=t[r?"chartX":"chartY"],u=n[r=r?"mouseDownX":"mouseDownY"],c=e.minPointOffset||0,h=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,f=e.getExtremes(),d=e.toValue(u-l,!0)+c*h,p=e.toValue(u+e.len-l,!0)-(c*h||e.isXAxis&&e.pointRangePadding||0),m=p=h&&d<=p&&(e.setExtremes(u,d,!1,!1,{trigger:"pan"}),n.resetZoomButton||o||u===h||d===p||!s.match("y")||(n.showResetZoom(),e.displayBtn=!1),a=!0),i[r]=l)}})),X(i,(function(t,e){n[e]=t})),a&&n.redraw(!1),j(n.container,{cursor:"move"})}))},t}(),B(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t})),e(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.merge,r=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.options,i=t.symbolWidth,o=t.symbolHeight,a=o/2,s=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var u={},c=e.marker;this.chart.styledMode||(u={"stroke-width":e.lineWidth||0},e.dashStyle&&(u.dashstyle=e.dashStyle)),this.legendLine=s.path([["M",0,t],["L",i,t]]).addClass("highcharts-graph").attr(u).add(l),c&&!1!==c.enabled&&i&&(e=Math.min(r(c.radius,a),a),0===this.symbol.indexOf("url")&&(c=n(c,{width:o,height:o}),e=0),this.legendSymbol=i=s.symbol(this.symbol,i/2-e,t-e,2*e,2*e,c).addClass("highcharts-point").add(l),i.isMarker=!0)},t.drawRectangle=function(t,e){var n=t.symbolHeight,i=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(i?(t.symbolWidth-n)/2:0,t.baseline-n+1,i?n:t.symbolWidth,n,r(t.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}}(e||(e={})),e})),e(n,"Core/Series/SeriesDefaults.js",[n["Core/Color/Palette.js"]],(function(t){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:t.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:t.neutralColor20,lineColor:t.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Color/Palette.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s,l,u,c){var h=t.animObject,f=t.setAnimation,d=e.defaultOptions,p=n.registerEventOptions,m=r.hasTouch,g=r.svg,v=r.win,y=l.seriesTypes,b=c.addEvent,x=c.arrayMax,w=c.arrayMin,S=c.clamp,C=c.cleanRecursively,_=c.correctFloat,k=c.defined,E=c.erase,M=c.error,T=c.extend,A=c.find,O=c.fireEvent,P=c.getNestedProperty,N=c.isArray,j=c.isNumber,L=c.isString,D=c.merge,I=c.objectEach,R=c.pick,B=c.removeEvent,F=c.splat,z=c.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){O(this,"init",{options:e});var n=this,r=t.series;this.eventsToUnbind=[],n.chart=t,n.options=n.setOptions(e),e=n.options,n.linkedSeries=[],n.bindAxes(),T(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),p(this,e);var i,o=e.events;(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach((function(t){n[t+"Data"]||(n[t+"Data"]=[])})),n.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(i=r[r.length-1]),n._i=R(i&&i._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(r)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),O(this,"afterInit")},t.prototype.is=function(t){return y[t]&&this instanceof y[t]},t.prototype.insert=function(t){var e,n=this.options.index;if(j(n)){for(e=t.length;e--;)if(n>=R(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 R(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,n=e.options,r=e.chart;O(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(i){var o=0;r[i].forEach((function(r){t=r.options,(n[i]===o&&!t.isInternal||"undefined"!==typeof n[i]&&n[i]===t.id||"undefined"===typeof n[i]&&0===t.index)&&(e.insert(r.series),e[i]=r,r.isDirty=!0),t.isInternal||o++})),e[i]||e.optionalAxis===i||M(18,!0,r)}))})),O(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var n=t.series,r=arguments,i=j(e)?function(r){var i="y"===r&&n.toYData?n.toYData(t):t[r];n[r+"Data"][e]=i}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(r,2))};n.parallelArrays.forEach(i)},t.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?u-this.cropStart:u),!r&&j(u)&&s[u]&&s[u].touched&&(u=void 0),u},t.prototype.updateData=function(t,e){var n,r,i,o=this.options,a=o.dataSorting,s=this.points,l=[],u=this.requireSorting,c=t.length===s.length,h=!0;if(this.xIncrement=null,t.forEach((function(t,e){var r=k(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},h=r.x;r.id||j(h)?(-1===(r=this.findPointIndex(r,i))||"undefined"===typeof r?l.push(t):s[r]&&t!==o.data[r]?(s[r].update(t,!1,null,!1),s[r].touched=!0,u&&(i=r+1)):s[r]&&(s[r].touched=!0),(!c||e!==r||a&&a.enabled||this.hasDerivedData)&&(n=!0)):l.push(t)}),this),n)for(t=s.length;t--;)(r=s[t])&&!r.touched&&r.remove&&r.remove(!1,e);else!c||a&&a.enabled?h=!1:(t.forEach((function(t,e){t!==s[e].y&&s[e].update&&s[e].update(t,!1,null,!1)})),l.length=0);return s.forEach((function(t){t&&(t.touched=!1)})),!!h&&(l.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,n,r){var i=this,o=i.points,a=o&&o.length||0,s=i.options,l=i.chart,u=s.dataSorting,c=i.xAxis,h=s.turboThreshold,f=this.xData,d=this.yData,p=i.pointArrayMap;p=p&&p.length;var m,g=s.keys,v=0,y=1,b=null,x=(t=t||[]).length;if(e=R(e,!0),u&&u.enabled&&(t=this.sortData(t)),!1!==r&&x&&a&&!i.cropped&&!i.hasGroupedData&&i.visible&&!i.isSeriesBoosting&&(m=this.updateData(t,n)),!m){if(i.xIncrement=null,i.colorCounter=0,this.parallelArrays.forEach((function(t){i[t+"Data"].length=0})),h&&x>h)if(b=i.getFirstValidPoint(t),j(b))for(n=0;nt?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var n=e.options,i=n.data;n.dataSorting&&n.dataSorting.enabled||!i||(i.forEach((function(n,o){i[o]=r(e,n),t[o]&&(i[o].x=t[o].x,i[o].index=o)})),e.setData(i,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,n=this.options,r=n.cropThreshold,i=t||this.getExtremesFromAll||n.getExtremesFromAll,o=this.isCartesian;t=e&&e.val2lin,n=!(!e||!e.logarithmic);var a=0,s=this.xData,l=this.yData,u=this.requireSorting,c=!1,h=s.length;if(e){var f=(c=e.getExtremes()).min,d=c.max;c=e.categories&&!e.names.length}if(o&&this.sorted&&!i&&(!r||h>r||this.forceCrop))if(s[h-1]d)s=[],l=[];else if(this.yData&&(s[0]d)){var p=this.cropData(this.xData,this.yData,f,d);s=p.xData,l=p.yData,a=p.start,p=!0}for(r=s.length||1;--r;)if(0<(e=n?t(s[r])-t(s[r-1]):s[r]-s[r-1])&&("undefined"===typeof m||ee&&u&&!c&&(M(15,!1,this.chart),u=!1);return{xData:s,yData:l,cropped:p,cropStart:a,closestPointRange:m}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange},t.prototype.cropData=function(t,e,n,r,i){var o,a=t.length,s=0,l=a;for(i=R(i,this.cropShoulder),o=0;o=n){s=Math.max(0,o-i);break}for(n=o;nr){l=n+i;break}return{xData:t.slice(s,l),yData:e.slice(s,l),start:s,end:l}},t.prototype.generatePoints=function(){var t=this.options,e=t.data,n=this.processedXData,r=this.processedYData,i=this.pointClass,o=n.length,a=this.cropStart||0,s=this.hasGroupedData,l=t.keys,u=[];t=t.dataGrouping&&t.dataGrouping.groupAll?a:0;var c,h,f=this.data;if(!f&&!s){var d=[];d.length=e.length,f=this.data=d}for(l&&s&&(this.options.keys=!1),h=0;h=l&&(i[s-a]||d)<=u,p&&d)if(p=f.length)for(;p--;)j(f[p])&&(o[c++]=f[p]);else o[c++]=f}return t={dataMin:w(o),dataMax:x(o)},O(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,n=0,r=null;null===r&&n=C&&(C=null),v.total=v.stackTotal=b.total,v.percentage=b.total&&v.y/b.total*100,v.stackY=w,this.irregularWidths||b.setOffset(this.pointXOffset||0,this.barW||0)),v.yBottom=k(C)?S(s.translate(C,0,1,0,1),-1e5,1e5):null,c&&(w=this.modifyValue(w,v)),v.plotY=void 0,j(w)&&"undefined"!==typeof(b=s.translate(w,!1,!0,!1,!0))&&(v.plotY=S(b,-1e5,1e5)),v.isInside=this.isPointInside(v),v.clientX=f?_(i.translate(y,0,0,0,1,h)):e,v.negative=v[m]<(n[m+"Threshold"]||d||0),v.category=o&&"undefined"!==typeof o[v.x]?o[v.x]:v.x,!v.isNull&&!1!==v.visible){"undefined"!==typeof T&&(g=Math.min(g,Math.abs(e-T)));var T=e}v.zone=this.zones.length&&v.getZone(),!v.graphic&&this.group&&a&&(v.isNew=!0)}this.closestPointRangePx=g,O(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,n){var r=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!r.isInsidePlot(t.plotX,t.plotY,{inverted:r.inverted}))&&!1!==t.visible&&(n||!t.isNull)}))},t.prototype.getClipBox=function(t,e){var n=this.options,r=this.chart,i=r.inverted,o=this.xAxis,a=o&&this.yAxis,s=r.options.chart.scrollablePlotArea||{};return t&&!1===n.clip&&a?t=i?{y:-r.chartWidth+a.len+a.pos,height:r.chartWidth,width:r.chartHeight,x:-r.chartHeight+o.len+o.pos}:{y:-a.pos,height:r.chartHeight,width:r.chartWidth,x:-o.pos}:(t=this.clipBox||r.clipBox,e&&(t.width=r.plotSizeX,t.x=(r.scrollablePixelsX||0)*(s.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},t.prototype.getSharedClipKey=function(t){if(this.sharedClipKey)return this.sharedClipKey;var e=[t&&t.duration,t&&t.easing,t&&t.defer,this.getClipBox(t).height,this.options.xAxis,this.options.yAxis].join();return(!1!==this.options.clip||t)&&(this.sharedClipKey=e),e},t.prototype.setClip=function(t){var e=this.chart,n=this.options,r=e.renderer,i=e.inverted,o=this.clipBox,a=this.getClipBox(t),s=this.getSharedClipKey(t),l=e.sharedClips[s],u=e.sharedClips[s+"m"];t&&(a.width=0,i&&(a.x=e.plotHeight+(!1!==n.clip?0:e.plotTop))),l?e.hasLoaded||l.attr(a):(t&&(e.sharedClips[s+"m"]=u=r.clipRect(i?(e.plotSizeX||0)+99:-99,i?-e.plotLeft:-e.plotTop,99,i?e.chartWidth:e.chartHeight)),e.sharedClips[s]=l=r.clipRect(a),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),(!1!==n.clip||t)&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(u)),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&(o||(e.sharedClips[s]=l.destroy()),u&&(e.sharedClips[s+"m"]=u.destroy())))},t.prototype.animate=function(t){var e=this.chart,n=h(this.options.animation),r=this.sharedClipKey;if(t)this.setClip(n);else if(r){t=e.sharedClips[r],r=e.sharedClips[r+"m"];var i=this.getClipBox(n,!0);t&&t.animate(i,n),r&&r.animate({width:i.width+99,x:i.x-(e.inverted?0:99)},n)}},t.prototype.afterAnimate=function(){this.setClip(),O(this,"afterAnimate"),this.finishedAnimating=!0},t.prototype.drawPoints=function(){var t,e,n=this.points,r=this.chart,i=this.options.marker,o=this[this.specialGroup]||this.markerGroup,a=this.xAxis,s=R(i.enabled,!(a&&!a.isRadial)||null,this.closestPointRangePx>=i.enabledThreshold*i.radius);if(!1!==i.enabled||this._hasPointMarkers)for(t=0;tw.max,l.resetZones&&0===e&&(e=void 0)})),this.clips=f}else l.visible&&(d&&d.show(!0),p&&p.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach((function(e){n[e]&&(r.renderer.isVML&&n[e].attr({width:n.yAxis.len,height:n.xAxis.len}),n[e].width=n.yAxis.len,n[e].height=n.xAxis.len,n[e].invert(!n.isRadialSeries&&t))}))}var n=this,r=n.chart;n.xAxis&&(n.eventsToUnbind.push(b(r,"resize",e)),e(),n.invertGroups=e)},t.prototype.plotGroup=function(t,e,n,r,i){var o=this[t],a=!o;return n={visibility:n,zIndex:r||.1},"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(n.opacity=this.opacity),a&&(this[t]=o=this.chart.renderer.g().add(i)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(k(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(n)[a?"attr":"animate"](this.getPlotBox()),o},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||B(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,n=t.options,r=h(n.animation),i=t.visible?"inherit":"hidden",o=n.zIndex,a=t.hasRendered,s=e.seriesGroup,l=e.inverted,u=!t.finishedAnimating&&e.renderer.isSVG&&r.duration;O(this,"render");var c=t.plotGroup("group","series",i,o,s);t.markerGroup=t.plotGroup("markerGroup","markers",i,o,s),u&&t.animate&&t.animate(!0),c.inverted=!!R(t.invertible,t.isCartesian)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),!1===n.clip||t.sharedClipKey||a||c.clip(e.clipRect),u&&t.animate&&t.animate(),a||(u&&r.defer&&(u+=r.defer),t.animationTimeout=z((function(){t.afterAnimate()}),u||0)),t.isDirty=!1,t.hasRendered=!0,O(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,r=this.xAxis,i=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:R(r&&r.left,t.plotLeft),translateY:R(i&&i.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var n=this.xAxis,r=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:i?r.len-t.chartX+r.pos:t.chartY-r.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,r,i){var o=t&&t.length;if(o){var a=n.kdAxisArray[r%i];return t.sort((function(t,e){return t[a]-e[a]})),{point:t[o=Math.floor(o/2)],left:e(t.slice(0,o),r+1,i),right:e(t.slice(o+1),r+1,i)}}}this.buildingKdTree=!0;var n=this,r=-1(c=e[c]-u[c])?"right":"left",n[d=0>c?"left":"right"]&&(h=(d=t(e,n[d],s+1,l))[a]d;)p--;this.updateParallelArrays(f,"splice",p,0,0),this.updateParallelArrays(f,p),l&&f.name&&(l[d]=f.name),c.splice(p,0,t),u&&(this.data.splice(p,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),n&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(f,"shift"),c.shift())),!1!==i&&O(this,"addPoint",{point:f}),this.isDirtyData=this.isDirty=!0,e&&s.redraw(r)},t.prototype.removePoint=function(t,e,n){var r=this,i=r.data,o=i[t],a=r.points,s=r.chart,l=function(){a&&a.length===i.length&&a.splice(t,1),i.splice(t,1),r.options.data.splice(t,1),r.updateParallelArrays(o||{series:r},"splice",t,1),o&&o.destroy(),r.isDirty=!0,r.isDirtyData=!0,e&&s.redraw()};f(n,s),e=R(e,!0),o?o.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,n,r){function i(){o.destroy(r),a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),R(t,!0)&&a.redraw(e)}var o=this,a=o.chart;!1!==n?O(o,"remove",null,i):i()},t.prototype.update=function(t,e){t=C(t,this.userOptions),O(this,"update",{options:t});var n,r=this,i=r.chart,o=r.userOptions,a=r.initialType||r.type,s=i.options.plotOptions,l=y[a].prototype,u=r.finishedAnimating&&{animation:!1},c={},h=["eventOptions","navigatorSeries","baseSeries"],f=t.type||o.type||i.options.chart.type,d=!(this.hasDerivedData||f&&f!==this.type||"undefined"!==typeof t.pointStart||"undefined"!==typeof t.pointInterval||"undefined"!==typeof t.relativeXValue||r.hasOptionChanged("dataGrouping")||r.hasOptionChanged("pointStart")||r.hasOptionChanged("pointInterval")||r.hasOptionChanged("pointIntervalUnit")||r.hasOptionChanged("keys"));if(f=f||a,d&&(h.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&h.push("area","graph"),r.parallelArrays.forEach((function(t){h.push(t+"Data")})),t.data&&(t.dataSorting&&T(r.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=D(o,u,{index:"undefined"===typeof o.index?r.index:o.index,pointStart:R(s&&s.series&&s.series.pointStart,o.pointStart,r.xData[0])},!d&&{data:r.options.data},t),d&&t.data&&(t.data=r.options.data),(h=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(h)).forEach((function(t){h[t]=r[t],delete r[t]})),s=!1,y[f]){if(s=f!==r.type,r.remove(!1,!1,!1,!0),s)if(Object.setPrototypeOf)Object.setPrototypeOf(r,y[f].prototype);else{for(n in u=Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents,l)r[n]=void 0;T(r,y[f].prototype),u?r.hcEvents=u:delete r.hcEvents}}else M(17,!0,i,{missingModuleFor:f});if(h.forEach((function(t){r[t]=h[t]})),r.init(i,t),d&&this.points){var p=r.options;!1===p.visible?(c.graphic=1,c.dataLabel=1):r._hasPointLabels||(t=p.marker,l=p.dataLabels,!t||!1!==t.enabled&&(o.marker&&o.marker.symbol)===t.symbol||(c.graphic=1),l&&!1===l.enabled&&(c.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(c).length&&t.destroyElements(c),!1===p.showInLegend&&t.legendItem&&i.legend.destroyItem(t))}),this)}r.initialType=a,i.linkSeries(),s&&r.linkedSeries.length&&(r.isDirtyData=!0),O(this,"afterUpdate"),R(e,!0)&&i.redraw(!!d&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],n=this.chart.options.plotOptions,r=this.userOptions[t];return r?e!==r:e!==R(n&&n[this.type]&&n[this.type][t],n&&n.series&&n.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&O(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,n=e.tooltip,r=e.hoverPoint;e.hoverSeries=null,r&&r.onMouseOut(),this&&t.events.mouseOut&&O(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var n=this,r=n.options,i=n.graph,o=r.inactiveOtherPoints,a=r.states,s=R(a[t||"normal"]&&a[t||"normal"].animation,n.chart.options.chart.animation),l=r.lineWidth,u=0,c=r.opacity;if(t=t||"",n.state!==t&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach((function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))})),n.state=t,!n.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),c=R(a[t].opacity,c)),i&&!i.dashstyle)for(r={"stroke-width":l},i.animate(r,s);n["zone-graph-"+u];)n["zone-graph-"+u].animate(r,s),u+=1;o||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach((function(t){t&&t.animate({opacity:c},s)}))}e&&o&&n.points&&n.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var n=this,r=n.chart,i=n.legendItem,o=r.options.chart.ignoreHiddenSeries,a=n.visible,s=(n.visible=t=n.options.visible=n.userOptions.visible="undefined"===typeof t?!a:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){n[t]&&n[t][s]()})),r.hoverSeries!==n&&(r.hoverPoint&&r.hoverPoint.series)!==n||n.onMouseOut(),i&&r.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&r.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),n.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(r.isDirtyBox=!0),O(n,s),!1!==e&&r.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected="undefined"===typeof t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),O(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,n){return void 0===n&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,n)},t.defaultOptions=s,t}(),T(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:i.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:a,requireSorting:!0,sorted:!0}),l.series=t,t})),e(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){var a=t.stop,s=o.addEvent,l=o.createElement,u=o.merge,c=o.pick;s(n,"afterSetChartSize",(function(t){var n=this.options.chart.scrollablePlotArea,r=n&&n.minWidth;if(n=n&&n.minHeight,!this.renderer.forExport){if(r){if(this.scrollablePixelsX=r=Math.max(0,r-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=u(this.plotBox),this.plotBox.width=this.plotWidth+=r,this.inverted?this.clipBox.height+=r:this.clipBox.width+=r;var i={1:{name:"right",value:r}}}}else n&&(this.scrollablePixelsY=r=Math.max(0,n-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=u(this.plotBox),this.plotBox.height=this.plotHeight+=r,this.inverted?this.clipBox.width+=r:this.clipBox.height+=r,i={2:{name:"bottom",value:r}});i&&!t.skipAxes&&this.axes.forEach((function(t){i[t.side]?t.getPlotLinePath=function(){var n=i[t.side].name,r=this[n];this[n]=r-i[t.side].value;var o=e.prototype.getPlotLinePath.apply(this,arguments);return this[n]=r,o}:(t.setAxisSize(),t.setAxisTranslation())}))}})),s(n,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),n.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},e,this.scrollingParent),s(this.scrollingContainer,"scroll",(function(){t.pointer&&delete t.pointer.chartPosition})),this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var t,e=this.container,n=this.fixedRenderer,r=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&r.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),r.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},n.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,n=e.scrollablePlotArea,r=i.getRendererType();t?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new r(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(n.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),s(this,"afterShowResetZoom",this.moveFixedElements),s(this,"afterDrilldown",this.moveFixedElements),s(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),r=this.chartHeight+(this.scrollablePixelsY||0),a(this.container),this.container.style.width=e+"px",this.container.style.height=r+"px",this.renderer.boxWrapper.attr({width:e,height:r,viewBox:[0,0,e,r].join(" ")}),this.chartBackground.attr({width:e,height:r}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),r=this.axisOffset,t=this.plotTop-r[0]-1,n=this.plotLeft-r[3]-1,e=this.plotTop+this.plotHeight+r[2]+1,r=this.plotLeft+this.plotWidth+r[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),u=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",o,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",o,e],["Z"]]:this.scrollablePixelsY?[["M",n,0],["L",n,this.plotTop-1],["L",r,this.plotTop-1],["L",r,0],["Z"],["M",n,u],["L",n,this.chartHeight],["L",r,this.chartHeight],["L",r,u],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},s(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),s(r,"show",(function(){this.chart.scrollableDirty=!0}))})),e(n,"Core/Axis/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Utilities.js"]],(function(t,e,n){var r,i=t.getDeferredAnimation,o=n.addEvent,a=n.destroyObjectProperties,s=n.fireEvent,l=n.isNumber,u=n.objectEach;return function(t){function e(){var t=this.stacking;if(t){var e=t.stacks;u(e,(function(t,n){a(t),e[n]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function n(){this.stacking||(this.stacking=new c(this))}var r=[];t.compose=function(t){return-1===r.indexOf(t)&&(r.push(t),o(t,"init",n),o(t,"destroy",e)),t};var c=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,n=e.series,r=e.options.reversedStacks,i=n.length;if(!e.isXAxis){for(this.usePercentage=!1,t=i;t--;){var o=n[r?t:i-t-1];o.setStackedPoints(),o.setGroupedPoints()}for(t=0;to&&n.shadow)),s&&(s.startX=r.xMap,s.isArea=r.isArea)}))},r.prototype.getGraphPath=function(t,e,n){var r,i=this,a=i.options,s=[],l=[],u=a.step,c=(t=t||i.points).reversed;return c&&t.reverse(),(u={right:1,center:2}[u]||u&&3)&&c&&(u=4-u),(t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!n))).forEach((function(c,h){var f=c.plotX,d=c.plotY,p=t[h-1];(c.leftCliff||p&&p.rightCliff)&&!n&&(r=!0),c.isNull&&!o(e)&&0t&&c>i?h=2*i-(c=Math.max(t,i)):cn&&h>i?c=2*i-(h=Math.max(n,i)):h=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;r=t.borderWidth=x(n.borderWidth,r?0:1);var i=t.xAxis,a=t.yAxis,s=n.threshold,l=t.translatedThreshold=a.getThreshold(s),u=x(n.minPointLength,5),c=t.getColumnMetrics(),h=c.width,d=t.pointXOffset=c.offset,m=t.dataMin,g=t.dataMax,v=t.barW=Math.max(h,1+2*r);e.inverted&&(l-=.5),n.pointPadding&&(v=Math.ceil(v)),o.prototype.translate.apply(t),t.points.forEach((function(r){var o=x(r.yBottom,l),b=999+Math.abs(o),w=r.plotX||0;b=f(r.plotY,-b,a.len+b);var S=Math.min(b,o),C=Math.max(b,o)-S,_=h,k=w+d,E=v;u&&Math.abs(C)u?o-u:l-(w?u:0)),p(r.options.pointWidth)&&(_=E=Math.ceil(r.options.pointWidth),k-=Math.round((_-h)/2)),n.centerInCategory&&(k=t.adjustForMissingColumns(k,_,r,c)),r.barX=k,r.pointWidth=_,r.tooltipPos=e.inverted?[f(a.len+a.pos-e.plotLeft-b,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),i.len+i.pos-e.plotTop-k-E/2,C]:[i.left-e.plotLeft+k+E/2,f(b+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),C],r.shapeType=t.pointClass.prototype.shapeType||"rect",r.shapeArgs=t.crispCol.apply(t,r.isNull?[k,l,E,0]:[k,S,E,C])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var n=this.options,r=this.pointAttrToOptions||{},i=r.stroke||"borderColor",o=r["stroke-width"]||"borderWidth",a=t&&t.color||this.color,s=t&&t[i]||n[i]||a;r=t&&t.options.dashStyle||n.dashStyle;var l=t&&t[o]||n[o]||this[o]||0,u=x(t&&t.opacity,n.opacity,1);if(t&&this.zones.length){var h=t.getZone();a=t.options.color||h&&(h.color||t.nonZonedColor)||this.color,h&&(s=h.borderColor||s,r=h.dashStyle||r,l=h.borderWidth||l)}return e&&t&&(e=(t=b(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||"undefined"!==typeof e&&c(a).brighten(t.brightness).get()||a,s=t[i]||s,l=t[o]||l,r=t.dashStyle||r,u=x(t.opacity,u)),i={fill:a,stroke:s,"stroke-width":l,opacity:u},r&&(i.dashstyle=r),i},e.prototype.drawPoints=function(){var t,e=this,n=this.chart,r=e.options,i=n.renderer,o=r.animationLimit||250;e.points.forEach((function(a){var s=a.graphic,l=!!s,u=s&&n.pointCountv,"left"===m?c.y-=v?f.height:0:"center"===m?(c.x-=f.width/2,c.y-=f.height/2):"right"===m&&(c.x-=f.width,c.y-=v?0:f.height),e.placed=!0,e.alignAttr=c):(v(r),e.align(n,void 0,r),c=e.alignAttr),y&&0<=r.height?this.justifyDataLabel(e,n,c,f,r,i):d(n.crop,!0)&&(b=a.isInsidePlot(c.x,c.y,{paneCoordinates:!0,series:o})&&a.isInsidePlot(c.x+f.width,c.y+f.height,{paneCoordinates:!0,series:o})),n.shape&&!p&&e[i?"attr":"animate"]({anchorX:s?a.plotWidth-t.plotY:t.plotX,anchorY:s?a.plotHeight-t.plotX:t.plotY})}i&&u&&(e.placed=!1),b||u&&!y||(e.hide(!0),e.placed=!1)}function r(){var t=this,e=t.chart,r=t.options,i=t.points,l=t.hasRendered||0,h=e.renderer,g=r.dataLabels,v=g.animation;if(v=g.defer?o(e,v,t):{defer:0,duration:0},g=m(m(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[t.type]&&e.options.plotOptions[t.type].dataLabels),g),u(this,"drawDataLabels"),c(g)||g.enabled||t._hasPointLabels){var y=t.plotGroup("dataLabelsGroup","data-labels",l?"inherit":"hidden",g.zIndex||6);y.attr({opacity:+l}),!l&&(l=t.dataLabelsGroup)&&(t.visible&&y.show(!0),l[r.animation?"animate":"attr"]({opacity:1},v)),i.forEach((function(i){p(m(g,i.dlOptions||i.options&&i.options.dataLabels)).forEach((function(o,l){var u=o.enabled&&(!i.isNull||i.dataLabelOnNull)&&function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(i,o),c=i.connectors?i.connectors[l]:i.connector,p=i.dataLabels?i.dataLabels[l]:i.dataLabel,m=d(o.distance,i.labelDistance),g=!p;if(u){var v=i.getLabelConfig(),b=d(o[i.formatPrefix+"Format"],o.format);v=s(b)?a(b,v,e):(o[i.formatPrefix+"Formatter"]||o.formatter).call(v,o),b=o.style;var x=o.rotation;e.styledMode||(b.color=d(o.color,b.color,t.color,n.neutralColor100),"contrast"===b.color?(i.contrastColor=h.getContrast(i.color||t.color),b.color=!s(m)&&o.inside||0>m||r.stacking?i.contrastColor:n.neutralColor100):delete i.contrastColor,r.cursor&&(b.cursor=r.cursor));var w={r:o.borderRadius||0,rotation:x,padding:o.padding,zIndex:1};e.styledMode||(w.fill=o.backgroundColor,w.stroke=o.borderColor,w["stroke-width"]=o.borderWidth),f(w,(function(t,e){"undefined"===typeof t&&delete w[e]}))}!p||u&&s(v)?u&&s(v)&&(p?w.text=v:(i.dataLabels=i.dataLabels||[],p=i.dataLabels[l]=x?h.text(v,0,-9999,o.useHTML).addClass("highcharts-data-label"):h.label(v,0,-9999,o.shape,null,null,o.useHTML,null,"data-label"),l||(i.dataLabel=p),p.addClass(" highcharts-data-label-color-"+i.colorIndex+" "+(o.className||"")+(o.useHTML?" highcharts-tracker":""))),p.options=o,p.attr(w),e.styledMode||p.css(b).shadow(o.shadow),p.added||p.add(y),o.textPath&&!o.useHTML&&(p.setTextPath(i.getDataLabelPath&&i.getDataLabelPath(p)||i.graphic,o.textPath),i.dataLabelPath&&!o.textPath.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy())),t.alignDataLabel(i,p,o,null,g)):(i.dataLabel=i.dataLabel&&i.dataLabel.destroy(),i.dataLabels&&(1===i.dataLabels.length?delete i.dataLabels:delete i.dataLabels[l]),l||delete i.dataLabel,c&&(i.connector=i.connector.destroy(),i.connectors&&(1===i.connectors.length?delete i.connectors:delete i.connectors[l])))}))}))}u(this,"afterDrawDataLabels")}function i(t,e,n,r,i,o){var a=this.chart,s=e.align,l=e.verticalAlign,u=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var h=e.y;h=void 0===h?0:h;var f=(n.x||0)+u;if(0>f){"right"===s&&0<=c?(e.align="left",e.inside=!0):c-=f;var d=!0}return(f=(n.x||0)+r.width-u)>a.plotWidth&&("left"===s&&0>=c?(e.align="right",e.inside=!0):c+=a.plotWidth-f,d=!0),0>(f=n.y+u)&&("bottom"===l&&0<=h?(e.verticalAlign="top",e.inside=!0):h-=f,d=!0),(f=(n.y||0)+r.height-u)>a.plotHeight&&("top"===l&&0>=h?(e.verticalAlign="bottom",e.inside=!0):h+=a.plotHeight-f,d=!0),d&&(e.x=c,e.y=h,t.placed=!o,t.align(e,void 0,i)),d}function m(t,e){var n,r=[];if(c(t)&&!c(e))r=t.map((function(t){return h(t,e)}));else if(c(e)&&!c(t))r=e.map((function(e){return h(t,e)}));else if(c(t)||c(e))for(n=Math.max(t.length,e.length);n--;)r[n]=h(t[n],e[n]);else r=h(t,e);return r}function g(t,e,n,r,i){var o=this.chart,a=o.inverted,s=this.xAxis,l=s.reversed,u=a?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=a?i.x:l?-u-t:s.width-u+t,e.startYPos=a?l?this.yAxis.height-u+t:-u-t:i.y,r?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(n&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var v=[];t.compose=function(t){if(-1===v.indexOf(t)){var n=t.prototype;v.push(t),n.alignDataLabel=e,n.drawDataLabels=r,n.justifyDataLabel=i,n.setDataLabelStartPos=g}}}(i||(i={})),i})),e(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var r,i=e.series,o=n.merge,a=n.pick;return function(e){function n(t,e,n,r,s){var l=this.chart.inverted,u=t.series,c=t.dlBox||t.shapeArgs,h=a(t.below,t.plotY>a(this.translatedThreshold,u.yAxis.len)),f=a(n.inside,!!this.options.stacking);c&&(0>(r=o(c)).y&&(r.height+=r.y,r.y=0),0<(c=r.y+r.height-u.yAxis.len)&&c\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}),n}(e),a(r.prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),o(r,"afterTranslate",(function(){this.applyJitter()})),n.registerSeriesType("scatter",r),r})),e(n,"Mixins/CenteredSeries.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=n.isNumber,i=n.pick,o=n.relativeLength,a=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var t=this.options,n=this.chart,r=2*(t.slicedOffset||0),a=n.plotWidth-2*r,s=n.plotHeight-2*r,l=t.center,u=Math.min(a,s),c=t.size,h=t.innerSize||0;for("string"===typeof c&&(c=parseFloat(c)),"string"===typeof h&&(h=parseFloat(h)),t=[i(l[0],"50%"),i(l[1],"50%"),i(c&&0>c?void 0:t.size,"100%"),i(h&&0>h?void 0:t.innerSize||0,"0%")],!n.angular||this instanceof e||(t[3]=0),l=0;4>l;++l)c=t[l],n=2>l||2===l&&/%$/.test(c),t[l]=o(c,[a,s,u,t[2]][l])+(n?r:0);return t[3]>t[2]&&(t[3]=t[2]),t},getStartAndEndRadians:function(t,e){return t=r(t)?t:0,e=r(e)&&e>t&&360>e-t?e:t+360,{start:a*(t+-90),end:a*(e+-90)}}}})),e(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.setAnimation,o=n.addEvent,a=n.defined;t=n.extend;var s=n.isNumber,l=n.pick,u=n.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return r(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,n=this.connectorShapes,r=e.connectorShape;return n[r]&&(r=n[r]),r.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.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:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=l(this.name,"Slice");var n=function(t){e.slice("select"===t.type)};return o(this,"select",n),o(this,"unselect",n),this},e.prototype.isValid=function(){return s(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var n=this,r=this.series,i=r.chart,o=r.options.ignoreHiddenPoint;e=l(e,o),t!==this.visible&&(this.visible=this.options.visible=t="undefined"===typeof t?!this.visible:t,r.options.data[r.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){n[e]&&n[e][t?"show":"hide"](t)})),this.legendItem&&i.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),o&&(r.isDirty=!0),e&&i.redraw())},e.prototype.slice=function(t,e,n){var r=this.series;i(n,r.chart),l(e,!0),this.sliced=this.options.sliced=a(t)?t:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,n){var r=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*r.x-e.x,2*r.y-e.y,r.x,r.y]:["L",r.x,r.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,n){e=e.touchingSliceAt;var r=this.series,i=r.center[0],o=r.chart.plotWidth,a=r.chart.plotLeft;r=t.alignment;var s=this.shapeArgs.r;return n=u(n.crookDistance,1),n=["L",o="left"===r?i+s+(o+a-i-s)*(1-n):a+(i-s)*n,t.y],i=!0,("left"===r?o>t.x||oe.x)&&(i=!1),t=[["M",t.x,t.y]],i&&t.push(n),t.push(["L",e.x,e.y]),t}}}),e})),e(n,"Series/Pie/PieSeries.js",[n["Mixins/CenteredSeries.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Color/Palette.js"],n["Series/Pie/PiePoint.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s,l,u){var c=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=t.getStartAndEndRadians;n=n.noop;var f=u.clamp,d=u.extend,p=u.fireEvent,m=u.merge,g=u.pick,v=u.relativeLength;return u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,n=e.points,r=e.startAngleRad;t||n.forEach((function(t){var n=t.graphic,i=t.shapeArgs;n&&i&&(n.attr({r:g(t.startR,e.center&&e.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,n=this.options;if(0===this.total&&this.center){var r=this.center[0],o=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,o,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:l.arc(r,o,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||i.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,n){var r=this.center,i=this.radii?this.radii[n.index]||0:r[2]/2;return t=Math.asin(f((t-r[1])/(i+n.labelDistance),-1,1)),r[0]+(e?-1:1)*Math.cos(t)*(i+n.labelDistance)+(01.5*Math.PI?m-=2*Math.PI:m<-Math.PI/2&&(m+=2*Math.PI),f.slicedTranslation={translateX:Math.round(Math.cos(m)*n),translateY:Math.round(Math.sin(m)*n)},y=Math.cos(m)*t[2]/2;var b=Math.sin(m)*t[2]/2;f.tooltipPos=[t[0]+.7*y,t[1]+.7*b],f.half=m<-Math.PI/2||m>Math.PI/2?1:0,f.angle=m,d=Math.min(r,f.labelDistance/5),f.labelPosition={natural:{x:t[0]+y+Math.cos(m)*f.labelDistance,y:t[1]+b+Math.sin(m)*f.labelDistance},final:{},alignment:0>f.labelDistance?"center":f.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+y+Math.cos(m)*d,y:t[1]+b+Math.sin(m)*d},touchingSliceAt:{x:t[0]+y,y:t[1]+b}}}}p(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,n=e.length,r=this.options.ignoreHiddenPoint,i=0;for(t=0;tM&&(t.dataLabel.css({width:Math.round(.7*M)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),P.forEach((function(e,n){var r,u=e.length,c=[];if(u){if(b.sortByAngle(e,n-.5),0_-C&&0===n&&(d=Math.round(h+o-_+C),N[1]=Math.max(d,N[1])),0>m-s/2?N[0]=Math.max(Math.round(s/2-m),N[0]):m+s/2>k&&(N[2]=Math.max(Math.round(m+s/2-k),N[2])),i.sideOverflow=d)}}})),0===c(N)||this.verifyDataLabelOverflow(N))&&(this.placeDataLabels(),this.points.forEach((function(t){var o;y=d(S,t.options.dataLabels),(e=p(y.connectorWidth,1))&&(r=t.connector,(i=t.dataLabel)&&i._pos&&t.visible&&0e.bottom-2?r:n,e.half,e)},justify:function(t,e,n){return n[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,n,r){return t=t.getBBox().width,e?t+r:n-t-r},alignToConnectors:function(t,e,n,r){var i,o=0;return t.forEach((function(t){(i=t.dataLabel.getBBox().width)>o&&(o=i)})),e?o+r:n-o-r}};e.compose=function(e){t.compose(u),-1===a.indexOf(e)&&(a.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=s,e.drawDataLabels=r,e.placeDataLabels=i,e.verifyDataLabelOverflow=o)}}(a||(a={})),a})),e(n,"Extensions/OverlappingDataLabels.js",[n["Core/Chart/Chart.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e){var n=!1;if(t){var r=t.newOpacity;t.oldOpacity!==r&&(t.alignAttr&&t.placed?(t[r?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,t.alignAttr.opacity=r,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:r?"auto":"none"})})),i(e,"afterHideOverlappingLabel")):t.attr({opacity:r})),t.isOld=!0}return n}var r=e.addEvent,i=e.fireEvent,o=e.isArray,a=e.isNumber,s=e.objectEach,l=e.pick;r(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&s(t.stacking.stacks,(function(t){s(t,(function(t){t.label&&"hidden"!==t.label.visibility&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(r){var i=r.options.dataLabels;r.visible&&(!1!==i.enabled||r._hasPointLabels)&&(i=function(r){return r.forEach((function(r){r.visible&&(o(r.dataLabels)?r.dataLabels:r.dataLabel?[r.dataLabel]:[]).forEach((function(i){var o=i.options;i.labelrank=l(o.labelrank,r.labelrank,r.shapeArgs&&r.shapeArgs.height),o.allowOverlap?(i.oldOpacity=i.opacity,i.newOpacity=1,n(i,t)):e.push(i)}))}))},i(r.nodes||[]),i(r.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,r,o,s=this,l=t.length,u=s.renderer,c=!1,h=function(t){var e,n,r=t.box?0:t.padding||0,i=e=0;if(t&&(!t.alignAttr||t.placed)){var o=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},s=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=u.fontMetrics(null,t.element).h);var l=t.width-2*r;return(n={left:"0",center:"0.5",right:"1"}[t.alignValue])?i=+n*l:a(t.x)&&Math.round(t.x)!==t.translateX&&(i=t.x-t.translateX),{x:o.x+(s.translateX||0)+r-(i||0),y:o.y+(s.translateY||0)+r-e,width:t.width-2*r,height:t.height-2*r}}};for(r=0;r=f.x+f.width||d.x+d.width<=f.x||d.y>=f.y+f.height||d.y+d.height<=f.y||((h.labelrank=l(n.minWidth,0)&&this.chartHeight>=l(n.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var n=this,i=this.options.responsive,o=this.currentResponsive,s=[];!e&&i&&i.rules&&i.rules.forEach((function(t){"undefined"===typeof t._id&&(t._id=c()),n.matchResponsiveRule(t,s)}),this),e=a.apply(void 0,s.map((function(t){return r((i||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions}))),e.isResponsiveOptions=!0,(s=s.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),s?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/DefaultOptions.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/FormatUtilities.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Renderer/HTML/HTMLRenderer.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/MSPointer.js"],n["Core/Legend/Legend.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnSeries.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieSeries.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],(function(t,e,n,r,i,o,a,s,l,u,c,h,f,d,p,m,g,v,y,b,x,w,S,C,_,k,E,M,T,A,O,P,N){return t.animate=i.animate,t.animObject=i.animObject,t.getDeferredAnimation=i.getDeferredAnimation,t.setAnimation=i.setAnimation,t.stop=i.stop,t.timers=r.timers,t.AST=o,t.Axis=f,t.Chart=S,t.chart=S.chart,t.Fx=r,t.Legend=w,t.PlotLineOrBand=m,t.Point=y,t.Pointer=x.isRequired()?x:b,t.Series=C,t.SVGElement=l,t.SVGRenderer=u,t.Tick=g,t.Time=N,t.Tooltip=v,t.Color=P,t.color=P.parse,h.compose(u),c.compose(l),t.defaultOptions=n.defaultOptions,t.getOptions=n.getOptions,t.time=n.defaultTime,t.setOptions=n.setOptions,t.dateFormat=a.dateFormat,t.format=a.format,t.numberFormat=a.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=s.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=_.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,E.compose(k),A.compose(C),d.compose(f),p.compose(f),T.compose(M),m.compose(f),O.compose(S),t})),n["masters/highcharts.src.js"]._modules=n,n["masters/highcharts.src.js"]},t.exports?(o.default=o,t.exports=i.document?o(i):o):void 0===(r=function(){return o(i)}.call(e,n,e,t))||(t.exports=r)},116:function(t,e,n){"use strict";var r,i,o;i="undefined"!==typeof window?window:this,o=function(t){function e(t,e,n,r){t.hasOwnProperty(e)||(t[e]=r.apply(null,n))}var n={};return e(n,"Core/Globals.js",[],(function(){var e,n="undefined"!==typeof t?t:"undefined"!==typeof window?window:{};return function(t){t.SVG_NS="http://www.w3.org/2000/svg",t.product="Highcharts",t.version="9.2.2",t.win=n,t.doc=t.win.document,t.svg=t.doc&&t.doc.createElementNS&&!!t.doc.createElementNS(t.SVG_NS,"svg").createSVGRect,t.userAgent=t.win.navigator&&t.win.navigator.userAgent||"",t.isChrome=-1!==t.userAgent.indexOf("Chrome"),t.isFirefox=-1!==t.userAgent.indexOf("Firefox"),t.isMS=/(edge|msie|trident)/i.test(t.userAgent)&&!t.win.opera,t.isSafari=!t.isChrome&&-1!==t.userAgent.indexOf("Safari"),t.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(t.userAgent),t.isWebKit=-1!==t.userAgent.indexOf("AppleWebKit"),t.deg2rad=2*Math.PI/360,t.hasBidiBug=t.isFirefox&&4>parseInt(t.userAgent.split("Firefox/")[1],10),t.hasTouch=!!t.win.TouchEvent,t.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],t.noop=function(){},t.supportsPassiveEvents=function(){var e=!1;if(!t.isMS){var n=Object.defineProperty({},"passive",{get:function(){e=!0}});t.win.addEventListener&&t.win.removeEventListener&&(t.win.addEventListener("testPassive",t.noop,n),t.win.removeEventListener("testPassive",t.noop,n))}return e}(),t.charts=[],t.dateFormats={},t.seriesTypes={},t.symbolSizes={},t.chartCount=0}(e||(e={})),e})),e(n,"Core/Utilities.js",[n["Core/Globals.js"]],(function(t){function e(n,r,i,o){var a=r?"Highcharts error":"Highcharts warning";32===n&&(n=a+": Deprecated member");var s=l(n),u=s?a+" #"+n+": www.highcharts.com/errors/"+n+"/":n.toString();if("undefined"!==typeof o){var c="";s&&(u+="?"),g(o,(function(t,e){c+="\n - "+e+": "+t,s&&(u+=encodeURI(e)+"="+encodeURI(t))})),u+=c}y(t,"displayError",{chart:i,code:n,message:u,params:o},(function(){if(r)throw Error(u);S.console&&-1===e.messages.indexOf(u)&&console.warn(u)})),e.messages.push(u)}function n(t,e){return parseInt(t,e||10)}function r(t){return"string"===typeof t}function i(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function o(t,e){return!!t&&"object"===typeof t&&(!e||!i(t))}function a(t){return o(t)&&"number"===typeof t.nodeType}function s(t){var e=t&&t.constructor;return!(!o(t,!0)||a(t)||!e||!e.name||"Object"===e.name)}function l(t){return"number"===typeof t&&!isNaN(t)&&1/0>t&&-1/0n&&(n=t[e]);return n},arrayMin:function(t){for(var e=t.length,n=t[0];e--;)t[e]e?t=o-1&&(o=Math.floor(a)),Math.max(0,o-(s(i,"padding-left",!0)||0)-(s(i,"padding-right",!0)||0));if("height"===o)return Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-(s(i,"padding-top",!0)||0)-(s(i,"padding-bottom",!0)||0));if(S.getComputedStyle||e(27,!0),i=S.getComputedStyle(i,void 0)){var l=i.getPropertyValue(o);f(a,"opacity"!==o)&&(l=n(l))}return l},inArray:function(t,n,r){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),n.indexOf(t,r)},isArray:i,isClass:s,isDOMElement:a,isFunction:function(t){return"function"===typeof t},isNumber:l,isObject:o,isString:r,keys:function(t){return e(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){var t,e=arguments,n={},r=function t(e,n){return"object"!==typeof e&&(e={}),g(n,(function(r,i){"__proto__"!==i&&"constructor"!==i&&(!o(r,!0)||s(r)||a(r)?e[i]=n[i]:e[i]=t(e[i]||{},r))})),e};!0===e[0]&&(n=e[1],e=Array.prototype.slice.call(e,2));var i=e.length;for(t=0;t=n&&(e=[1/n]))),r=0;r=t||!i&&a<=(e[r]+(e[r+1]||e[r]))/2));r++);return m(o*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:g,offset:function(t){var e=w.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(S.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(S.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,n){return Array((e||2)+1-String(t).replace("-","").length).join(n||"0")+t},pick:f,pInt:n,relativeLength:function(t,e,n){return/%$/.test(t)?e*parseFloat(t)/100+(n||0):parseFloat(t)},removeEvent:v,splat:function(t){return i(t)?t:[t]},stableSort:function(t,e){var n,r,i=t.length;for(r=0;r>16,(65280&i)>>8,255&i,1]:4===r&&(n=[(3840&i)>>4|(3840&i)>>8,(240&i)>>4|240&i,(15&i)<<4|15&i,1])}if(!n)for(i=e.parsers.length;i--&&!n;){var o=e.parsers[i];(r=o.regex.exec(t))&&(n=o.parse(r))}}n&&(this.rgba=n)},e.prototype.get=function(t){var e=this.input,i=this.rgba;if("object"===typeof e&&"undefined"!==typeof this.stops){var o=r(e);return o.stops=[].slice.call(o.stops),this.stops.forEach((function(e,n){o.stops[n]=[o.stops[n][0],e.get(t)]})),o}return i&&n(i[0])?"rgb"===t||!t&&1===i[3]?"rgb("+i[0]+","+i[1]+","+i[2]+")":"a"===t?""+i[3]:"rgba("+i.join(",")+")":e},e.prototype.brighten=function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(n(t)&&0!==t)for(var r=0;3>r;r++)e[r]+=i(255*t),0>e[r]&&(e[r]=0),255h?"AM":"PM",P:12>h?"am":"pm",S:u(s.getSeconds()),L:u(Math.floor(n%1e3),3)},t.dateFormats),l(s,(function(t,r){for(;-1!==e.indexOf("%"+r);)e=e.replace("%"+r,"function"===typeof t?t.call(a,n):t)})),i?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return a(t,!0)?t:{main:(t=h(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,n,i){var a,s=this,l=[],u={},h=new s.Date(e),d=t.unitRange,p=t.count||1;if(i=c(i,1),r(e)){if(s.set("Milliseconds",h,d>=f.second?0:p*Math.floor(s.get("Milliseconds",h)/p)),d>=f.second&&s.set("Seconds",h,d>=f.minute?0:p*Math.floor(s.get("Seconds",h)/p)),d>=f.minute&&s.set("Minutes",h,d>=f.hour?0:p*Math.floor(s.get("Minutes",h)/p)),d>=f.hour&&s.set("Hours",h,d>=f.day?0:p*Math.floor(s.get("Hours",h)/p)),d>=f.day&&s.set("Date",h,d>=f.month?1:Math.max(1,p*Math.floor(s.get("Date",h)/p))),d>=f.month){s.set("Month",h,d>=f.year?0:p*Math.floor(s.get("Month",h)/p));var m=s.get("FullYear",h)}d>=f.year&&s.set("FullYear",h,m-m%p),d===f.week&&(m=s.get("Day",h),s.set("Date",h,s.get("Date",h)-m+i+(m4*f.month||s.getTimezoneOffset(e)!==s.getTimezoneOffset(n)),e=h.getTime(),h=1;el.length&&l.forEach((function(t){0===t%18e5&&"000000000"===s.dateFormat("%H%M%S%L",t)&&(u[t]="day")}))}return l.info=o(t,{higherRanks:u,totalRange:d*p}),l},e.prototype.getDateFormat=function(t,e,n,r){var i=this.dateFormat("%m-%d %H:%M:%S.%L",e),o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(s in f){if(t===f.week&&+this.dateFormat("%w",e)===n&&"00:00:00.000"===i.substr(6)){var s="week";break}if(f[s]>t){s=a;break}if(o[s]&&i.substr(o[s])!=="01-01 00:00:00.000".substr(o[s]))break;"week"!==s&&(a=s)}if(s)var l=this.resolveDTLFormat(r[s]).main;return l},e}(),e})),e(n,"Core/DefaultOptions.js",[n["Core/Chart/ChartDefaults.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palette.js"],n["Core/Time.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){e=e.parse;var a=o.merge,s={colors:r.colors,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:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:t,title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:r.neutralColor80}},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:r.neutralColor40,borderRadius:0,navigation:{activeColor:r.highlightColor100,inactiveColor:r.neutralColor20},itemStyle:{color:r.neutralColor80,cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:r.neutralColor100},itemHiddenStyle:{color:r.neutralColor20},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:r.backgroundColor,opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:n.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:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:n.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:e(r.neutralColor3).setOpacity(.85).get(),borderWidth:1,shadow:!0,stickOnContact:!1,style:{color:r.neutralColor80,cursor:"default",fontSize:"12px",whiteSpace:"nowrap"},useHTML:!1},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:r.neutralColor40,fontSize:"9px"},text:"Highcharts.com"}};s.chart.styledMode=!1;var l=new i(a(s.global,s.time));return t={defaultOptions:s,defaultTime:l,getOptions:function(){return s},setOptions:function(t){return a(!0,s,t),(t.time||t.global)&&(n.time?n.time.update(a(s.global,s.time,t.global,t.time)):n.time=l),s}}})),e(n,"Core/Animation/Fx.js",[n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=t.parse,i=e.win,o=n.isNumber,a=n.objectEach;return function(){function t(t,e,n){this.pos=NaN,this.options=e,this.elem=t,this.prop=n}return t.prototype.dSetter=function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var n=this.now||0,r=[];if(1!==n&&e&&t)if(e.length===t.length&&1>n)for(var i=0;i=o+this.startTime){this.now=this.end,this.pos=1,this.update();var l=s[this.prop]=!0;a(s,(function(t){!0!==t&&(l=!1)})),l&&i&&i.call(r),t=!1}else this.pos=n.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},t.prototype.initPath=function(t,e,n){function r(t,e){for(;t.lengthc[1]){var f=e+ +c[1];0<=f?(c[0]=(+c[0]).toExponential(f).split("e")[0],e=f):(c[0]=c[0].split(".")[0]||0,t=20>e?(c[0]*Math.pow(10,c[1])).toFixed(e):0,c[1]=0)}}else e=2;f=(Math.abs(c[1]?c[0]:t)+Math.pow(10,-Math.max(e,u)-1)).toFixed(e);var d=3<(u=String(l(f))).length?u.length%3:0;return n=s(n,o.decimalPoint),i=s(i,o.thousandsSep),t=(0>t?"-":"")+(d?u.substr(0,d)+i:""),t=0>+c[1]&&!h?"0":t+u.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+i),e&&(t+=n+f.slice(-e)),c[1]&&0!==+t&&(t+="e"+c[1]),t}var r=t.defaultOptions,i=t.defaultTime,o=e.getNestedProperty,a=e.isNumber,s=e.pick,l=e.pInt;return{dateFormat:function(t,e,n){return i.dateFormat(t,e,n)},format:function(t,e,a){var s="{",l=!1,u=/f$/,c=/\.([0-9])/,h=r.lang,f=a&&a.time||i;a=a&&a.numberFormatter||n;for(var d=[];t;){var p=t.indexOf(s);if(-1===p)break;var m=t.slice(0,p);if(l){if(m=m.split(":"),s=o(m.shift()||"",e),m.length&&"number"===typeof s)if(m=m.join(":"),u.test(m)){var g=parseInt((m.match(c)||["","-1"])[1],10);null!==s&&(s=a(s,g,h.decimalPoint,-1u){for(i(e,c),p=s=0;p<=u;)p+=e[s].size,s++;d=e.splice(s-1,e.length)}for(i(e,h),e=e.map((function(t){return{size:t.size,targets:[t.target],align:r(t.align,.5)}}));f;){for(s=e.length;s--;)u=e[s],c=(Math.min.apply(0,u.targets)+Math.max.apply(0,u.targets))/2,u.pos=n(c-u.size*u.align,0,o-u.size);for(s=e.length,f=!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>o&&(e[s-1].pos=o-e[s-1].size),e.splice(s,1),f=!0)}return l.push.apply(l,d),s=0,e.some((function(e){var n=0;return(e.targets||[]).some((function(){return l[s].pos=e.pos+n,"undefined"!==typeof a&&Math.abs(l[s].pos-l[s].target)>a?(l.slice(0,s+1).forEach((function(t){return delete t.pos})),l.reducedLen=(l.reducedLen||o)-.1*o,l.reducedLen>.1*o&&t(l,o,a),!0):(n+=l[s].size,s++,!1)}))})),i(l,h),l}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGElement.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palette.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){var a=t.animate,s=t.animObject,l=t.stop,u=r.deg2rad,c=r.doc,h=r.noop,f=r.svg,d=r.SVG_NS,p=r.win,m=o.addEvent,g=o.attr,v=o.createElement,y=o.css,b=o.defined,x=o.erase,w=o.extend,S=o.fireEvent,C=o.isArray,_=o.isFunction,k=o.isNumber,E=o.isString,M=o.merge,T=o.objectEach,A=o.pick,O=o.pInt,P=o.syncTimeout,N=o.uniqueKey;return t=function(){function t(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=d,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return t.prototype._defaultGetter=function(t){return t=A(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},t.prototype._defaultSetter=function(t,e,n){n.setAttribute(e,t)},t.prototype.add=function(t){var e=this.renderer,n=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var r=this.zIndexSetter();return r||(t?t.element:e.box).appendChild(n),this.onAdd&&this.onAdd(),this},t.prototype.addClass=function(t,e){var n=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce((function(t,e){return-1===n.indexOf(e)&&t.push(e),t}),n?[n]:[]).join(" "),t!==n&&this.attr("class",t),this},t.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},t.prototype.align=function(t,e,n){var r,i,o,a={},s=this.renderer,l=s.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!n||E(n))&&(this.alignTo=r=n||"renderer",x(l,this),l.push(this),n=void 0)):(t=this.alignOptions,e=this.alignByTranslate,r=this.alignTo),n=A(n,s[r],"scrollablePlotBox"===r?s.plotBox:void 0,s),r=t.align;var u=t.verticalAlign;return s=(n.x||0)+(t.x||0),l=(n.y||0)+(t.y||0),"right"===r?i=1:"center"===r&&(i=2),i&&(s+=(n.width-(t.width||0))/i),a[e?"translateX":"x"]=Math.round(s),"bottom"===u?o=1:"middle"===u&&(o=2),o&&(l+=(n.height-(t.height||0))/o),a[e?"translateY":"y"]=Math.round(l),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},t.prototype.alignSetter=function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},t.prototype.animate=function(t,e,n){var r=this,i=s(A(e,this.renderer.globalAnimation,!0));return e=i.defer,A(c.hidden,c.msHidden,c.webkitHidden,!1)&&(i.duration=0),0!==i.duration?(n&&(i.complete=n),P((function(){r.element&&a(r,t,i)}),e)):(this.attr(t,void 0,n),T(t,(function(t,e){i.step&&i.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this},t.prototype.applyTextOutline=function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var n=t.split(" ");if(t=n[n.length-1],(n=n[0])&&"none"!==n&&r.svg){this.fakeTS=!0,this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,n){return 2*Number(e)+n})),this.removeTextOutline();var i=c.createElementNS(d,"tspan");g(i,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":n,"stroke-linejoin":"round"}),[].forEach.call(e.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),i.appendChild(e)}));var o=c.createElementNS(d,"tspan");o.textContent="\u200b",["x","y"].forEach((function(t){var n=e.getAttribute(t);n&&o.setAttribute(t,n)})),i.appendChild(o),e.insertBefore(i,e.firstChild)}},t.prototype.attr=function(t,e,n,r){var i,o,a,s=this.element,u=this.symbolCustomAttribs,c=this;if("string"===typeof t&&"undefined"!==typeof e){var h=t;(t={})[h]=e}return"string"===typeof t?c=(this[t+"Getter"]||this._defaultGetter).call(this,t,s):(T(t,(function(e,n){o=!1,r||l(this,n),this.symbolName&&-1!==u.indexOf(n)&&(i||(this.symbolAttr(t),i=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||((a=this[n+"Setter"]||this._defaultSetter).call(this,e,n,s),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e,a))}),this),this.afterSetters()),n&&n.call(this),c},t.prototype.clip=function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},t.prototype.crisp=function(t,e){e=e||t.strokeWidth||0;var n=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+n,t.y=Math.floor(t.y||this.y||0)+n,t.width=Math.floor((t.width||this.width||0)-2*n),t.height=Math.floor((t.height||this.height||0)-2*n),b(t.strokeWidth)&&(t.strokeWidth=e),t},t.prototype.complexColor=function(t,e,r){var i,o,a,s,l,u,c,h,f,d,p,m=this.renderer,g=[];S(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(a=t[o],l=m.gradients,u=t.stops,f=r.radialReference,C(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&f&&!b(a.gradientUnits)&&(s=a,a=M(a,m.getRadialAttr(f,s),{gradientUnits:"userSpaceOnUse"})),T(a,(function(t,e){"id"!==e&&g.push(e,t)})),T(u,(function(t){g.push(t)})),g=g.join(","),l[g])d=l[g].attr("id");else{a.id=d=N();var v=l[g]=m.createElement(o).attr(a).add(m.defs);v.radAttr=s,v.stops=[],u.forEach((function(t){0===t[1].indexOf("rgba")?(i=n.parse(t[1]),c=i.get("rgb"),h=i.get("a")):(c=t[1],h=1),t=m.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":h}).add(v),v.stops.push(t)}))}p="url("+m.url+"#"+d+")",r.setAttribute(e,p),r.gradient=g,t.toString=function(){return p}}}))},t.prototype.css=function(t){var e=this.styles,n={},r=this.element,i=["textOutline","textOverflow","width"],o="",a=!e;if(t&&t.color&&(t.fill=t.color),e&&T(t,(function(t,r){e&&e[r]!==t&&(n[r]=t,a=!0)})),a){if(e&&(t=w(e,n)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===r.nodeName.toLowerCase()&&t.width)var s=this.textWidth=O(t.width);if(this.styles=t,s&&!f&&this.renderer.forExport&&delete t.width,r.namespaceURI===this.SVG_NS){var l=function(t,e){return"-"+e.toLowerCase()};T(t,(function(t,e){-1===i.indexOf(e)&&(o+=e.replace(/([A-Z])/g,l)+":"+t+";")})),o&&g(r,"style",o)}else y(r,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},t.prototype.dashstyleSetter=function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var n=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(t=n.length;t--;)n[t]=""+O(n[t])*A(e,NaN);t=n.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},t.prototype.destroy=function(){var t=this,e=t.element||{},n=t.renderer,r=e.ownerSVGElement,i=n.isSVG&&"SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,l(t),t.clipPath&&r){var o=t.clipPath;[].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1h.width)&&(h={width:0,height:0})}else h=this.htmlGetBBox();if(r.isSVG&&(e=h.width,r=h.height,c&&(h.height=r={"11px,17":14,"13px,20":16}[o&&o.fontSize+","+Math.round(r)]||r),n&&(o=n*u,h.width=Math.abs(r*Math.sin(o))+Math.abs(e*Math.cos(o)),h.height=Math.abs(r*Math.cos(o))+Math.abs(e*Math.sin(o)))),d&&(""===a||0]*>/g,"").replace(/</g,"<").replace(/>/g,">")},t.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},t.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},t.prototype.updateShadows=function(t,e,n){var r=this.shadows;if(r)for(var i=r.length;i--;)n.call(r[i],"height"===t?Math.max(e-(r[i].cutHeight||0),0):"d"===t?this.d:e,t,r[i])},t.prototype.updateTransform=function(){var t=this.scaleX,e=this.scaleY,n=this.inverted,r=this.rotation,i=this.matrix,o=this.element,a=this.translateX||0,s=this.translateY||0;n&&(a+=this.width,s+=this.height),a=["translate("+a+","+s+")"],b(i)&&a.push("matrix("+i.join(",")+")"),n?a.push("rotate(90) scale(-1,1)"):r&&a.push("rotate("+r+" "+A(this.rotationOriginX,o.getAttribute("x"),0)+" "+A(this.rotationOriginY,o.getAttribute("y")||0)+")"),(b(t)||b(e))&&a.push("scale("+A(t,1)+" "+A(e,1)+")"),a.length&&o.setAttribute("transform",a.join(" "))},t.prototype.visibilitySetter=function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},t.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},t.prototype.zIndexSetter=function(t,e){var n=this.renderer,r=this.parentGroup,i=(r||n).element||n.box,o=this.element;n=i===n.box;var a,s=!1,l=this.added;if(b(t)?(o.setAttribute("data-z-index",t),t=+t,this[e]===t&&(l=!1)):b(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&r&&(r.handleZ=!0),a=(e=i.childNodes).length-1;0<=a&&!s;a--){l=(r=e[a]).getAttribute("data-z-index");var u=!b(l);r!==o&&(0>t&&u&&!n&&!a?(i.insertBefore(o,e[a]),s=!0):(O(l)<=t||u&&(!b(t)||0<=t))&&(i.insertBefore(o,e[a+1]||null),s=!0))}s||(i.insertBefore(o,e[n?3:0]||null),s=!0)}return s},t}(),t.prototype["stroke-widthSetter"]=t.prototype.strokeSetter,t.prototype.yGetter=t.prototype.xGetter,t.prototype.matrixSetter=t.prototype.rotationOriginXSetter=t.prototype.rotationOriginYSetter=t.prototype.rotationSetter=t.prototype.scaleXSetter=t.prototype.scaleYSetter=t.prototype.translateXSetter=t.prototype.translateYSetter=t.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},t})),e(n,"Core/Renderer/RendererRegistry.js",[n["Core/Globals.js"]],(function(t){var e;return function(e){var n;e.rendererTypes={},e.getRendererType=function(t){return void 0===t&&(t=n),e.rendererTypes[t]||e.rendererTypes[n]},e.registerRendererType=function(r,i,o){e.rendererTypes[r]=i,n&&!o||(n=r,t.Renderer=i)}}(e||(e={})),e})),e(n,"Core/Renderer/SVG/SVGLabel.js",[n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=e.defined,i=e.extend,o=e.isNumber,a=e.merge,s=e.pick,l=e.removeEvent;return function(e){function u(t,n,r,i,o,a,s,l,c,h){var f,d=e.call(this)||this;return d.paddingLeftSetter=d.paddingSetter,d.paddingRightSetter=d.paddingSetter,d.init(t,"g"),d.textStr=n,d.x=r,d.y=i,d.anchorX=a,d.anchorY=s,d.baseline=c,d.className=h,d.addClass("button"===h?"highcharts-no-tooltip":"highcharts-label"),h&&d.addClass("highcharts-"+h),d.text=t.text(void 0,0,0,l).attr({zIndex:1}),"string"===typeof o&&((f=/^url\((.*?)\)$/.test(o))||d.renderer.symbols[o])&&(d.symbolKey=o),d.bBox=u.emptyBBox,d.padding=3,d.baselineOffset=0,d.needsBox=t.styledMode||f,d.deferredAttr={},d.alignFactor=0,d}return n(u,e),u.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))},u.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},u.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},u.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},u.prototype.css=function(e){if(e){var n={};e=a(e),u.textProps.forEach((function(t){"undefined"!==typeof e[t]&&(n[t]=e[t],delete e[t])})),this.text.css(n);var r="width"in n;"fontSize"in n||"fontWeight"in n?this.updateTextPadding():r&&this.updateBoxSize()}return t.prototype.css.call(this,e)},u.prototype.destroy=function(){l(this.element,"mouseenter"),l(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},u.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},u.prototype.getBBox=function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=s(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}},u.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},u.prototype.heightSetter=function(t){this.heightSetting=t},u.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:r(t)?t:"",x:this.x,y:this.y}),this.box&&r(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},u.prototype.paddingSetter=function(t,e){o(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0},u.prototype.rSetter=function(t,e){this.boxAttr(e,t)},u.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},u.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},u.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},u.prototype["text-alignSetter"]=function(t){this.textAlign=t},u.prototype.textSetter=function(t){"undefined"!==typeof t&&this.text.attr({text:t}),this.updateTextPadding()},u.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},n=this.padding,a=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!r(this.text.textStr)?u.emptyBBox:this.text.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n,t=this.renderer.fontMetrics(t&&t.fontSize,this.text),this.baselineOffset=n+Math.min((this.text.firstLineMetrics||t).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-t.h)/2),this.needsBox&&(this.box||((n=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),n.add(this)),n=this.getCrispAdjust(),e.x=n,e.y=(this.baseline?-this.baselineOffset:0)+n,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(i(e,this.deferredAttr)),this.deferredAttr={})},u.prototype.updateTextPadding=function(){var t=this.text;this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,n=s(this.paddingLeft,this.padding);r(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(n+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),n===t.x&&e===t.y||(t.attr("x",n),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),"undefined"!==typeof e&&t.attr("y",e)),t.x=n,t.y=e},u.prototype.widthSetter=function(t){this.widthSetting=o(t)?t:void 0},u.prototype.getPaddedWidth=function(){var t=this.padding,e=s(this.paddingLeft,t);return t=s(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t},u.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},u.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},u.emptyBBox={width:0,height:0,x:0,y:0},u.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),u}(t)})),e(n,"Core/Renderer/SVG/Symbols.js",[n["Core/Utilities.js"]],(function(t){function e(t,e,n,r,o){var s=[];if(o){var l=o.start||0,u=a(o.r,n);n=a(o.r,r||n);var c=(o.end||0)-.001;r=o.innerR;var h=a(o.open,.001>Math.abs((o.end||0)-l-2*Math.PI)),f=Math.cos(l),d=Math.sin(l),p=Math.cos(c),m=Math.sin(c);l=a(o.longArc,.001>c-l-Math.PI?0:1),s.push(["M",t+u*f,e+n*d],["A",u,n,0,l,a(o.clockwise,1),t+u*p,e+n*m]),i(r)&&s.push(h?["M",t+r*p,e+r*m]:["L",t+r*p,e+r*m],["A",r,r,0,l,i(o.clockwise)?1-o.clockwise:0,t+r*f,e+r*d]),h||s.push(["Z"])}return s}function n(t,e,n,i,o){return o&&o.r?r(t,e,n,i,o):[["M",t,e],["L",t+n,e],["L",t+n,e+i],["L",t,e+i],["Z"]]}function r(t,e,n,r,i){return[["M",t+(i=i&&i.r||0),e],["L",t+n-i,e],["C",t+n,e,t+n,e,t+n,e+i],["L",t+n,e+r-i],["C",t+n,e+r,t+n,e+r,t+n-i,e+r],["L",t+i,e+r],["C",t,e+r,t,e+r,t,e+r-i],["L",t,e+i],["C",t,e,t,e,t+i,e]]}var i=t.defined,o=t.isNumber,a=t.pick;return{arc:e,callout:function(t,e,n,i,a){var s=Math.min(a&&a.r||0,n,i),l=s+6,u=a&&a.anchorX;a=a&&a.anchorY||0;var c=r(t,e,n,i,{r:s});return o(u)?(t+u>=n?a>e+l&&a=t+u?a>e+l&&ai&&u>t+l&&ua&&u>t+l&&u/g.test(o))?""!==o&&(i&&i.appendChild(n),o=new t(o),this.modifyTree(o.nodes),o.addToDOM(e.element),this.modifyDOM(),this.ellipsis&&-1!==(n.textContent||"").indexOf("\u2026")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),i&&i.removeChild(n)):n.appendChild(r.createTextNode(this.unescapeEntities(o))),a(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}},e.prototype.modifyDOM=function(){var t,e=this,n=this.svgElement,a=o(n.element,"x");for(n.firstLineMetrics=void 0;(t=n.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)n.element.removeChild(t);[].forEach.call(n.element.querySelectorAll("tspan.highcharts-br"),(function(t,r){t.nextSibling&&t.previousSibling&&(0===r&&1===t.previousSibling.nodeType&&(n.firstLineMetrics=n.renderer.fontMetrics(void 0,t.previousSibling)),o(t,{dy:e.getLineHeight(t.nextSibling),x:a}))}));var s=this.width||0;if(s){var l=function(t,l){var u=t.textContent||"",c=u.replace(/([^\^])-/g,"$1- ").split(" "),h=!e.noWrap&&(1i){for(;h<=f;)d=Math.ceil((h+f)/2),n&&(a=o(n,d)),m=p(d,a&&a.length-1),h===f?h=f+1:m>i?f=d-1:h=d;0===f?t.textContent="":e&&f===e.length-1||(t.textContent=a||o(e||n,d))}n&&n.splice(0,d),s.actualWidth=m,s.rotation=u},e.prototype.unescapeEntities=function(t,e){return s(this.renderer.escapes,(function(n,r){e&&-1!==e.indexOf(n)||(t=t.toString().replace(new RegExp(n,"g"),r))})),t},e}()})),e(n,"Core/Renderer/SVG/SVGRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Color/Palette.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGLabel.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Renderer/SVG/TextBuilder.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s,l,u){var c,h=n.charts,f=n.deg2rad,d=n.doc,p=n.isFirefox,m=n.isMS,g=n.isWebKit,v=n.noop,y=n.SVG_NS,b=n.symbolSizes,x=n.win,w=u.addEvent,S=u.attr,C=u.createElement,_=u.css,k=u.defined,E=u.destroyObjectProperties,M=u.extend,T=u.isArray,A=u.isNumber,O=u.isObject,P=u.isString,N=u.merge,j=u.pick,L=u.pInt,D=u.uniqueKey;return n=function(){function n(t,e,n,r,i,o,a){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,n,r,i,o,a)}return n.prototype.init=function(t,e,n,r,i,o,a){var s,l=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),u=l.element;a||l.css(this.getStyle(r)),t.appendChild(u),S(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&S(u,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=u,this.boxWrapper=l,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 9.2.2")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=i,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),p&&t.getBoundingClientRect&&((e=function(){_(t,{left:0,top:0}),s=t.getBoundingClientRect(),_(t,{left:Math.ceil(s.left)-s.left+"px",top:Math.ceil(s.top)-s.top+"px"})})(),this.unSubPixelFix=w(x,"resize",e))},n.prototype.definition=function(e){return new t([e]).addToDOM(this.defs.element)},n.prototype.getReferenceURL=function(){if((p||g)&&d.getElementsByTagName("base").length){if(!k(c)){var e=D();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#"+e+")",fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(d.body),_(e,{position:"fixed",top:0,left:0,zIndex:9e5});var n=d.elementFromPoint(6,6);c="hitme"===(n&&n.id),d.body.removeChild(e)}if(c)return x.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},n.prototype.getStyle=function(t){return this.style=M({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},n.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},n.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},n.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),E(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},n.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},n.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}},n.prototype.buildText=function(t){new l(t).buildSVG()},n.prototype.getContrast=function(t){return(t=e.parse(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459(t=/px/.test(t)?L(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},n.prototype.rotCorr=function(t,e,n){var r=t;return e&&n&&(r=Math.max(r*Math.cos(e*f),4)),{x:-t/3*Math.sin(e*f),y:r}},n.prototype.pathToSegments=function(t){for(var e=[],n=[],r={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},i=0;i":">","'":"'",'"':"""},symbols:s,draw:v}),i.registerRendererType("svg",n,!0),n})),e(n,"Core/Renderer/HTML/HTMLElement.js",[n["Core/Globals.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.isFirefox,o=t.isMS,a=t.isWebKit,s=t.win,l=n.css,u=n.defined,c=n.extend,h=n.pick,f=n.pInt;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.compose=function(t){if(-1===e.composedClasses.indexOf(t)){e.composedClasses.push(t);var n=e.prototype,r=t.prototype;r.getSpanCorrection=n.getSpanCorrection,r.htmlCss=n.htmlCss,r.htmlGetBBox=n.htmlGetBBox,r.htmlUpdateTransform=n.htmlUpdateTransform,r.setSpanRotation=n.setSpanRotation}return t},e.prototype.getSpanCorrection=function(t,e,n){this.xCorr=-t*n,this.yCorr=-e},e.prototype.htmlCss=function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,n=h(e&&t.width,void 0);if(e){delete t.width,this.textWidth=n;var r=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=c(this.styles,t),l(this.element,t),r&&this.htmlUpdateTransform(),this},e.prototype.htmlGetBBox=function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},e.prototype.htmlUpdateTransform=function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,r=this.translateY||0,i=this.x||0,o=this.y||0,a=this.textAlign||"left",s={left:0,center:.5,right:1}[a],c=this.styles;if(c=c&&c.whiteSpace,l(e,{marginLeft:n,marginTop:r}),!t.styledMode&&this.shadows&&this.shadows.forEach((function(t){l(t,{marginLeft:n+1,marginTop:r+1})})),this.inverted&&[].forEach.call(e.childNodes,(function(n){t.invertChild(n,e)})),"SPAN"===e.tagName){var h=this.rotation,d=this.textWidth&&f(this.textWidth),p=[h,a,e.innerHTML,this.textWidth,this.textAlign].join(),m=void 0;(m=d!==this.oldTextWidth)&&!(m=d>this.oldTextWidth)&&((m=this.textPxLength)||(l(e,{width:"",whiteSpace:c||"nowrap"}),m=e.offsetWidth),m=m>d),m&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(l(e,{width:d+"px",display:"block",whiteSpace:c||"normal"}),this.oldTextWidth=d,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,p!==this.cTT&&(m=t.fontMetrics(e.style.fontSize,e).b,!u(h)||h===(this.oldRotation||0)&&a===this.oldAlign||this.setSpanRotation(h,s,m),this.getSpanCorrection(!u(h)&&this.textPxLength||e.offsetWidth,m,s,h,a)),l(e,{left:i+(this.xCorr||0)+"px",top:o+(this.yCorr||0)+"px"}),this.cTT=p,this.oldRotation=h,this.oldAlign=a}}else this.alignOnAdd=!0},e.prototype.setSpanRotation=function(t,e,n){var r={},u=o&&!/Edge/.test(s.navigator.userAgent)?"-ms-transform":a?"-webkit-transform":i?"MozTransform":s.opera?"-o-transform":void 0;u&&(r[u]=r.transform="rotate("+t+"deg)",r[u+(i?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",l(this.element,r))},e.composedClasses=[],e}(e)})),e(n,"Core/Renderer/HTML/HTMLRenderer.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=r.attr,a=r.createElement,s=r.extend,l=r.pick;return function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return i(r,n),r.compose=function(t){return-1===r.composedClasses.indexOf(t)&&(r.composedClasses.push(t),t.prototype.html=r.prototype.html),t},r.prototype.html=function(n,r,i){var u=this.createElement("span"),c=u.element,h=u.renderer,f=h.isSVG,d=function(t,n){["opacity","visibility"].forEach((function(r){t[r+"Setter"]=function(i,o,a){var s=t.div?t.div.style:n;e.prototype[r+"Setter"].call(this,i,o,a),s&&(s[o]=i)}})),t.addedSetters=!0};return u.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,l(e,"")),this.textStr=e,u.doTransform=!0)},f&&d(u,u.element.style),u.xSetter=u.ySetter=u.alignSetter=u.rotationSetter=function(t,e){"align"===e?u.alignValue=u.textAlign=t:u[e]=t,u.doTransform=!0},u.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},u.attr({text:n,x:Math.round(r),y:Math.round(i)}).css({position:"absolute"}),h.styledMode||u.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",u.css=u.htmlCss,f&&(u.add=function(t){var e=h.box.parentNode,n=[];if(this.parentGroup=t){var r=t.div;if(!r){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach((function(t){function i(e,n){t[n]=e,"translateX"===n?h.left=e+"px":h.top=e+"px",t.doTransform=!0}var l=o(t.element,"class"),c=t.styles||{},h=(r=t.div=t.div||a("div",l?{className:l}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:t.visibility},r||e)).style;s(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(r),on:function(){return n[0].div&&u.on.apply({element:n[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:i,translateYSetter:i}),t.addedSetters||d(t)}))}}else r=e;return r.appendChild(c),u.added=!0,u.alignOnAdd&&u.htmlUpdateTransform(),u}),u},r.composedClasses=[],r}(n)})),e(n,"Core/Axis/AxisDefaults.js",[n["Core/Color/Palette.js"]],(function(t){var e;return function(e){e.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:void 0,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,x:0,zIndex:7,style:{color:t.neutralColor60,cursor:"default",fontSize:"11px"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:t.neutralColor60}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:t.neutralColor5,minorGridLineWidth:1,minorTickColor:t.neutralColor40,lineColor:t.highlightColor20,lineWidth:1,gridLineColor:t.neutralColor10,gridLineWidth:void 0,tickColor:t.highlightColor20},e.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return(0,this.axis.chart.numberFormatter)(this.total,-1)},style:{color:t.neutralColor100,fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},e.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},e.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},e.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},e.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(e||(e={})),e})),e(n,"Core/Foundation.js",[n["Core/Utilities.js"]],(function(t){var e=t.addEvent,n=t.isFunction,r=t.objectEach,i=t.removeEvent;return{registerEventOptions:function(t,o){t.eventOptions=t.eventOptions||{},r(o.events,(function(r,o){t.eventOptions[o]!==r&&(t.eventOptions[o]&&(i(t,o,t.eventOptions[o]),delete t.eventOptions[o]),n(r)&&(t.eventOptions[o]=r,e(t,o,r)))}))}}})),e(n,"Core/Axis/Tick.js",[n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=e.deg2rad,i=n.clamp,o=n.correctFloat,a=n.defined,s=n.destroyObjectProperties,l=n.extend,u=n.fireEvent,c=n.isNumber,h=n.merge,f=n.objectEach,d=n.pick;return e=function(){function e(t,e,n,r,i){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=n||"",this.parameters=i||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,u(this,"init"),n||r||this.addLabel()}return e.prototype.addLabel=function(){var e=this,n=e.axis,r=n.options,i=n.chart,s=n.categories,h=n.logarithmic,f=n.names,p=e.pos,m=d(e.options&&e.options.labels,r.labels),g=n.tickPositions,v=p===g[0],y=p===g[g.length-1],b=(!m.step||1===m.step)&&1===n.tickInterval;g=g.info;var x,w=e.label;if(s=this.parameters.category||(s?d(s[p],f[p],p):p),h&&c(s)&&(s=o(h.lin2log(s))),n.dateTime)if(g)var S=i.time.resolveDTLFormat(r.dateTimeLabelFormats[!r.grid&&g.higherRanks[p]||g.unitName]),C=S.main;else c(s)&&(C=n.dateTime.getXDateFormat(s,r.dateTimeLabelFormats||{}));e.isFirst=v,e.isLast=y;var _={axis:n,chart:i,dateTimeLabelFormat:C,isFirst:v,isLast:y,pos:p,tick:e,tickPositionInfo:g,value:s};u(this,"labelFormat",_);var k=function(e){return m.formatter?m.formatter.call(e,e):m.format?(e.text=n.defaultLabelFormatter.call(e),t.format(m.format,e,i)):n.defaultLabelFormatter.call(e,e)};r=k.call(_,_);var E=S&&S.list;e.shortenLabel=E?function(){for(x=0;xc&&i-h*fa&&(l=Math.round((o-i)/Math.cos(c*r))):(o=i+(1-h)*f,i-h*fa&&(g=a-t.x+g*h,v=-1),(g=Math.min(p,g))g||e.autoRotation&&(u.styles||{}).width)&&(l=g)),l&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(l)+"px",(n.style||{}).textOverflow||(m.textOverflow="ellipsis"),u.css(m)))},e.prototype.moveLabel=function(t,e){var n=this,r=n.label,i=n.axis,o=i.reversed,a=!1;if(r&&r.textStr===t?(n.movedLabel=r,a=!0,delete n.label):f(i.ticks,(function(e){a||e.isNew||e===n||!e.label||e.label.textStr!==t||(n.movedLabel=e.label,a=!0,e.labelPos=n.movedLabel.xy,delete e.label)})),!a&&(n.labelPos||r)){var s=n.labelPos||r.xy;r=i.horiz?o?0:i.width+i.left:s.x,i=i.horiz?s.y:o?i.width+i.left:0,n.movedLabel=n.createLabel({x:r,y:i},t,e),n.movedLabel&&n.movedLabel.attr({opacity:0})}},e.prototype.render=function(t,e,n){var r=this.axis,i=r.horiz,o=this.pos,a=d(this.tickmarkOffset,r.tickmarkOffset);a=(o=this.getPosition(i,o,a,e)).x;var s=o.y;r=i&&a===r.pos+r.len||!i&&s===r.pos?-1:1,i=d(n,this.label&&this.label.newOpacity,1),n=d(n,1),this.isActive=!0,this.renderGridLine(e,n,r),this.renderMark(o,n,r),this.renderLabel(o,e,i,t),this.isNew=!1,u(this,"afterRender")},e.prototype.renderGridLine=function(t,e,n){var r=this.axis,i=r.options,o={},a=this.pos,s=this.type,l=d(this.tickmarkOffset,r.tickmarkOffset),u=r.chart.renderer,c=this.gridLine,h=i.gridLineWidth,f=i.gridLineColor,p=i.gridLineDashStyle;"minor"===this.type&&(h=i.minorGridLineWidth,f=i.minorGridLineColor,p=i.minorGridLineDashStyle),c||(r.chart.styledMode||(o.stroke=f,o["stroke-width"]=h||0,o.dashstyle=p),s||(o.zIndex=1),t&&(e=0),this.gridLine=c=u.path().attr(o).addClass("highcharts-"+(s?s+"-":"")+"grid-line").add(r.gridGroup)),c&&(n=r.getPlotLinePath({value:a+l,lineWidth:c.strokeWidth()*n,force:"pass",old:t}))&&c[t||this.isNew?"attr":"animate"]({d:n,opacity:e})},e.prototype.renderMark=function(t,e,n){var r=this.axis,i=r.options,o=r.chart.renderer,a=this.type,s=r.tickSize(a?a+"Tick":"tick"),l=t.x;t=t.y;var u=d(i["minor"!==a?"tickWidth":"minorTickWidth"],!a&&r.isXAxis?1:0);i=i["minor"!==a?"tickColor":"minorTickColor"];var c=this.mark,h=!c;s&&(r.opposite&&(s[0]=-s[0]),c||(this.mark=c=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(r.axisGroup),r.chart.styledMode||c.attr({stroke:i,"stroke-width":u})),c[h?"attr":"animate"]({d:this.getMarkPath(l,t,s[0],c.strokeWidth()*n,r.horiz,o),opacity:e}))},e.prototype.renderLabel=function(t,e,n,r){var i=this.axis,o=i.horiz,a=i.options,s=this.label,l=a.labels,u=l.step;i=d(this.tickmarkOffset,i.tickmarkOffset);var h=t.x;t=t.y;var f=!0;s&&c(h)&&(s.xy=t=this.getLabelPosition(h,t,s,o,l,i,r,u),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?f=!1:!o||l.step||l.rotation||e||0===n||this.handleOverflow(t),u&&r%u&&(f=!1),f&&c(t.y)?(t.opacity=n,s[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(s.attr("y",-9999),this.isNewLabel=!0))},e.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,n=e.reversed;if(t&&!this.isNew){var r=e.horiz?n?e.left:e.width+e.left:t.xy.x;n=e.horiz?t.xy.y:n?e.width+e.top:e.top,t.animate({x:r,y:n,opacity:0},void 0,t.destroy),delete this.label}e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},e}(),e})),e(n,"Core/Axis/Axis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/AxisDefaults.js"],n["Core/Color/Color.js"],n["Core/Color/Palette.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Axis/Tick.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s,l){var u=t.animObject,c=i.defaultOptions,h=o.registerEventOptions,f=a.deg2rad,d=l.arrayMax,p=l.arrayMin,m=l.clamp,g=l.correctFloat,v=l.defined,y=l.destroyObjectProperties,b=l.erase,x=l.error,w=l.extend,S=l.fireEvent,C=l.getMagnitude,_=l.isArray,k=l.isNumber,E=l.isString,M=l.merge,T=l.normalizeTickInterval,A=l.objectEach,O=l.pick,P=l.relativeLength,N=l.removeEvent,j=l.splat,L=l.syncTimeout;return t=function(){function t(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return t.prototype.init=function(t,e){var n=e.isX;this.chart=t,this.horiz=t.inverted&&!this.isZAxis?!n:n,this.isXAxis=n,this.coll=this.coll||(n?"xAxis":"yAxis"),S(this,"init",{userOptions:e}),this.opposite=O(e.opposite,this.opposite),this.side=O(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var r=this.options,i=r.labels,o=r.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=O(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames="category"===o||!0===r.categories,this.categories=r.categories||this.hasNames,this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=v(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.min=this.max=null,e=O(r.crosshair,j(t.options.tooltip.crosshairs)[n?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(n?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&!this.isZAxis&&n&&"undefined"===typeof this.reversed&&(this.reversed=!0),this.labelRotation=k(i.rotation)?i.rotation:void 0,h(this,r),S(this,"afterInit")},t.prototype.setOptions=function(t){this.options=M(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],M(c[this.coll],t)),S(this,"afterSetOptions",{userOptions:t})},t.prototype.defaultLabelFormatter=function(t){var e=this.axis;t=this.chart.numberFormatter;var n=k(this.value)?this.value:NaN,r=e.chart.time,i=this.dateTimeLabelFormat,o=c.lang,a=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;var s=e.logarithmic?Math.abs(n):e.tickInterval,l=a&&a.length;if(e.categories)var u=""+this.value;else if(i)u=r.dateFormat(i,n);else if(l&&1e3<=s)for(;l--&&"undefined"===typeof u;)s>=(e=Math.pow(o,l+1))&&0===10*n%e&&null!==a[l]&&0!==n&&(u=t(n/e,-1)+a[l]);return"undefined"===typeof u&&(u=1e4<=Math.abs(n)?t(n,-1):t(n,-1,void 0,"")),u},t.prototype.getSeriesExtremes=function(){var t,e=this,n=e.chart;S(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((function(r){if(r.visible||!n.options.chart.ignoreHiddenSeries){var i=r.options,o=i.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=o&&(o=null),e.isXAxis){if((i=r.xData).length){i=e.logarithmic?i.filter(e.validatePositiveValue):i;var a=(t=r.getXExtremes(i)).min,s=t.max;k(a)||a instanceof Date||(i=i.filter(k),a=(t=r.getXExtremes(i)).min,s=t.max),i.length&&(e.dataMin=Math.min(O(e.dataMin,a),a),e.dataMax=Math.max(O(e.dataMax,s),s))}}else r=r.applyExtremes(),k(r.dataMin)&&(a=r.dataMin,e.dataMin=Math.min(O(e.dataMin,a),a)),k(r.dataMax)&&(s=r.dataMax,e.dataMax=Math.max(O(e.dataMax,s),s)),v(o)&&(e.threshold=o),(!i.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),S(this,"afterGetSeriesExtremes")},t.prototype.translate=function(t,e,n,r,i,o){var a=this.linkedParent||this,s=r&&a.old?a.old.min:a.min,l=a.minPixelPadding;i=(a.isOrdinal||a.brokenAxis&&a.brokenAxis.hasBreaks||a.logarithmic&&i)&&a.lin2val;var u=1,c=0;return(r=r&&a.old?a.old.transA:a.transA)||(r=a.transA),n&&(u*=-1,c=a.len),a.reversed&&(c-=(u*=-1)*(a.sector||a.len)),e?(t=(t*u+c-l)/r+s,i&&(t=a.lin2val(t))):(i&&(t=a.val2lin(t)),t=k(s)?u*(t-s)*r+c+u*l+(k(o)?r*o:0):void 0),t},t.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},t.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},t.prototype.getPlotLinePath=function(t){function e(t,e,n){return("pass"!==b&&tn)&&(b?t=m(t,e,n):a=!0),t}var n,r,i,o,a,s=this,l=s.chart,u=s.left,c=s.top,h=t.old,f=t.value,d=t.lineWidth,p=h&&l.oldChartHeight||l.chartHeight,g=h&&l.oldChartWidth||l.chartWidth,v=s.transB,y=t.translatedValue,b=t.force;return t={value:f,lineWidth:d,old:h,force:b,acrossPanes:t.acrossPanes,translatedValue:y},S(this,"getPlotLinePath",t,(function(t){y=O(y,s.translate(f,null,null,h)),y=m(y,-1e5,1e5),n=i=Math.round(y+v),r=o=Math.round(p-y-v),k(y)?s.horiz?(r=c,o=p-s.bottom,n=i=e(n,u,u+s.width)):(n=u,i=g-s.right,r=o=e(r,c,c+s.height)):(a=!0,b=!1),t.path=a&&!b?null:l.renderer.crispLine([["M",n,r],["L",i,o]],d||1)})),t.path},t.prototype.getLinearTickPositions=function(t,e,n){var r=g(Math.floor(e/t)*t);n=g(Math.ceil(n/t)*t);var i,o=[];if(g(r+t)===r&&(i=20),this.single)return[e];for(e=r;e<=n&&(o.push(e),(e=g(e+t,i))!==a);)var a=e;return o},t.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?O(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},t.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,n=this.minorTickInterval,r=this.pointRangePadding||0,i=this.min-r,o=(r=this.max+r)-i,a=[];if(o&&o/n=this.minRange,c=this.minRange,h=(c-s+a)/2;h=[a-h,O(i.min,a-h)],u&&(h[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),s=[(a=d(h))+c,O(i.max,a+c)],u&&(s[2]=o?o.log2lin(this.dataMax):this.dataMax),(s=p(s))-a=d)y=d,h=0;else if(e.dataMax<=d){var b=d;c=0}e.min=O(p,y,e.dataMin),e.max=O(m,b,e.dataMax)}r&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,O(e.dataMin,e.min))&&x(10,1,n),e.min=g(r.log2lin(e.min),16),e.max=g(r.log2lin(e.max),16)),e.range&&v(e.max)&&(e.userMin=e.min=p=Math.max(e.dataMin,e.minFromRange()),e.userMax=m=e.max,e.range=null),S(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(l||e.axisPointRange||e.stacking&&e.stacking.usePercentage||a)&&v(e.min)&&v(e.max)&&(n=e.max-e.min)&&(!v(p)&&h&&(e.min-=n*h),!v(m)&&c&&(e.max+=n*c)),k(e.userMin)||(k(i.softMin)&&i.softMine.max&&(e.max=m=i.softMax),k(i.ceiling)&&(e.max=Math.min(e.max,i.ceiling))),u&&v(e.dataMin)&&(d=d||0,!v(p)&&e.min=d?e.min=e.options.minRange?Math.min(d,e.max-e.minRange):d:!v(m)&&e.max>d&&e.dataMax<=d&&(e.max=e.options.minRange?Math.max(d,e.min+e.minRange):d)),k(e.min)&&k(e.max)&&!this.chart.polar&&e.min>e.max&&(v(e.options.min)?e.max=e.min:v(e.options.max)&&(e.min=e.max)),e.tickInterval=e.min===e.max||"undefined"===typeof e.min||"undefined"===typeof e.max?1:a&&e.linkedParent&&!f&&s===e.linkedParent.options.tickPixelInterval?f=e.linkedParent.tickInterval:O(f,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,l?1:(e.max-e.min)*s/Math.max(e.len,s)),o&&!t&&(e.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(e.min!==(e.old&&e.old.min)||e.max!==(e.old&&e.old.max))})),S(this,"postProcessData")),e.setAxisTranslation(),S(this,"initialAxisTranslation"),e.pointRange&&!f&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=O(i.minTickInterval,e.dateTime&&!e.series.some((function(t){return t.noSharedTooltip}))?e.closestPointRange:0),!f&&e.tickIntervale.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},t.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,n=this.getMinorTickInterval(),r=this.hasVerticalPanning(),i="colorAxis"===this.coll,o=(i||!r)&&t.startOnTick;r=(i||!r)&&t.endOnTick,i=t.tickPositioner,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&v(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=n=e&&e.slice(),!n&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?n=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(n=[this.min,this.max],x(19,!1,this.chart)),n.length>this.len&&(n=[n[0],n.pop()])[0]===n[1]&&(n.length=1),this.tickPositions=n,i&&(i=i.apply(this,[this.min,this.max])))&&(this.tickPositions=n=i),this.paddedTicks=n.slice(0),this.trimTicks(n,o,r),this.isLinked||(this.single&&2>n.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||i||this.adjustTickAmount()),S(this,"afterSetTickPositions")},t.prototype.trimTicks=function(t,e,n){var r=t[0],i=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(S(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==r)this.min=r;else for(;this.min-o>t[0];)t.shift();if(n)this.max=i;else for(;this.max+on&&(this.finalTickAmt=n,n=5),this.tickAmount=n},t.prototype.adjustTickAmount=function(){var t=this.options,e=this.tickInterval,n=this.tickPositions,r=this.tickAmount,i=this.finalTickAmt,o=n&&n.length,a=O(this.threshold,this.softThreshold?0:null);if(this.hasData()&&k(this.min)&&k(this.max)){if(or&&(this.tickInterval*=2,this.setTickPositions());if(v(i)){for(e=t=n.length;e--;)(3===i&&1===e%2||2>=i&&0s&&(e=s)),v(i)&&(os&&(o=s))),n.displayBtn="undefined"!==typeof e||"undefined"!==typeof o,n.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},t.prototype.setAxisSize=function(){var t=this.chart,e=this.options,n=e.offsets||[0,0,0,0],r=this.horiz,i=this.width=Math.round(P(O(e.width,t.plotWidth-n[3]+n[1]),t.plotWidth)),o=this.height=Math.round(P(O(e.height,t.plotHeight-n[0]+n[2]),t.plotHeight)),a=this.top=Math.round(P(O(e.top,t.plotTop+n[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(P(O(e.left,t.plotLeft+n[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-o-a,this.right=t.chartWidth-i-e,this.len=Math.max(r?i:o,0),this.pos=r?e:a},t.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?g(t.lin2log(this.min)):this.min,max:t?g(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},t.prototype.getThreshold=function(t){var e=this.logarithmic,n=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=n:1/0===t?t=e:n>t?t=n:ee?t.align="right":195e&&(t.align="left")})),t.align},t.prototype.tickSize=function(t){var e=this.options,n=O(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=e["tick"===t?"tickLength":"minorTickLength"];if(n&&r){"inside"===e[t+"Position"]&&(r=-r);var i=[r,n]}return S(this,"afterTickSize",t={tickSize:i}),t.tickSize},t.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},t.prototype.unsquish=function(){var t,e,n=this.options.labels,r=this.horiz,i=this.tickInterval,o=this.len/(((this.categories?1:0)+this.max-this.min)/i),a=n.rotation,s=this.labelMetrics(),l=Math.max(this.max-this.min,0),u=function(t){var e=t/(o||1);return(e=1l&&1/0!==t&&1/0!==o&&l&&(e=Math.ceil(l/i)),g(e*i)},c=i,h=Number.MAX_VALUE;if(r){if(!n.staggerLines&&!n.step)if(k(a))var d=[a];else o=n){var r=(e=u(Math.abs(s.h/Math.sin(f*n))))+Math.abs(n/360);rr.step)return r.rotation?0:(this.staggerLines||1)*this.len/i;if(!n){if(void 0!==(t=r.style.width))return parseInt(String(t),10);if(o)return o-e.spacing[3]}return.33*e.chartWidth},t.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,n=this.tickPositions,r=this.ticks,i=this.options.labels,o=i.style,a=this.horiz,s=this.getSlotWidth(),l=Math.max(1,Math.round(s-2*i.padding)),u={},c=this.labelMetrics(),h=o.textOverflow,f=0;if(E(i.rotation)||(u.rotation=i.rotation||0),n.forEach((function(t){(t=r[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>f&&(f=t.label.textPxLength)})),this.maxLabelLength=f,this.autoRotation)f>l&&f>c.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(s){var d=l;if(!h){var p="clip";for(l=n.length;!a&&l--;){var m=n[l];(m=r[m].label)&&(m.styles&&"ellipsis"===m.styles.textOverflow?m.css({textOverflow:"clip"}):m.textPxLength>s&&m.css({width:s+"px"}),m.getBBox().height>this.len/n.length-(c.h-c.f)&&(m.specificTextOverflow="ellipsis"))}}}u.rotation&&(d=f>.5*t.chartHeight?.33*t.chartHeight:f,h||(p="ellipsis")),(this.labelAlign=i.align||this.autoLabelAlign(this.labelRotation))&&(u.align=this.labelAlign),n.forEach((function(t){var e=(t=r[t])&&t.label,n=o.width,i={};e&&(e.attr(u),t.shortenLabel?t.shortenLabel():d&&!n&&"nowrap"!==o.whiteSpace&&(d=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(r[t]||(r[t]=new s(this,t)),n&&r[t].isNew&&r[t].render(e,!0,-1),r[t].render(e))},t.prototype.render=function(){var t,e,n=this,r=n.chart,i=n.logarithmic,o=n.options,l=n.isLinked,c=n.tickPositions,h=n.axisTitle,f=n.ticks,d=n.minorTicks,p=n.alternateBands,m=o.stackLabels,g=o.alternateGridColor,v=n.tickmarkOffset,y=n.axisLine,b=n.showAxis,x=u(r.renderer.globalAnimation);if(n.labelEdge.length=0,n.overlap=!1,[f,d,p].forEach((function(t){A(t,(function(t){t.isActive=!1}))})),n.hasData()||l){var w=n.chart.hasRendered&&n.old&&k(n.old.min);n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(t){n.renderMinorTick(t,w)})),c.length&&(c.forEach((function(t,e){n.renderTick(t,e,w)})),v&&(0===n.min||n.single)&&(f[-1]||(f[-1]=new s(n,-1,null,!0)),f[-1].render(-1))),g&&c.forEach((function(o,s){e="undefined"!==typeof c[s+1]?c[s+1]+v:n.max-v,0===s%2&&oe&&(!a||u<=n)&&"undefined"!==typeof u&&c.push(u),u>n&&(d=!0),u=m}}}else e=this.lin2log(e),n=this.lin2log(n),t=a?s.getMinorTickInterval():u.tickInterval,t=o("auto"===t?null:t,this.minorAutoInterval,u.tickPixelInterval/(a?5:1)*(n-e)/((a?l/s.tickPositions.length:l)||1)),t=i(t,void 0,r(t)),c=s.getLinearTickPositions(t,e,n).map(this.log2lin),a||(this.minorAutoInterval=t/5);return a||(s.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();t.Additions=l}(e||(e={})),e})),e(n,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.erase,r=t.extend,i=t.isNumber;return function(t){var e,o=[];t.compose=function(t,n){return e||(e=t),-1===o.indexOf(n)&&(o.push(n),r(n.prototype,a.prototype)),n};var a=function(){function t(){}return t.prototype.getPlotBandPath=function(t,e,n){void 0===n&&(n=this.options);var r=this.getPlotLinePath({value:e,force:!0,acrossPanes:n.acrossPanes}),o=[],a=this.horiz;if(e=!i(this.min)||!i(this.max)||tthis.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:n.acrossPanes}),n=1,t&&r){if(e){var s=t.toString()===r.toString();n=0}for(e=0;ev-l?v:v-l);else{if(!m)return!1;a[t]=Math.max(s,i+l+n>e?i:i+l)}},y=function(t,e,n,r,i){var s;return ie-o?s=!1:a[t]=ie-r/2?e-r-2:i-n/2,s},b=function(t){var e=p;p=m,m=e,r=t};return(i.inverted||1e}))&&(t=t.map((function(t){var e=r(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return p(t,{target:e.y,x:e.x})}))),i.cleanSplit(),l(t,L);var D=P,I=P;t.forEach((function(t){var e=t.x,n=t.boxWidth;(t=t.isHeader)||(i.outside&&P+eI&&(I=P+e))})),t.forEach((function(t){var e=t.x,n=t.anchorX,r=t.pos,o=t.point.isHeader;if(r={visibility:"undefined"===typeof r?"hidden":"inherit",x:e,y:r+N,anchorX:n,anchorY:t.anchorY},i.outside&&en[0]?Math.max(Math.abs(n[0]),i.width-n[0]):Math.max(Math.abs(n[0]),i.width),r.height=0>n[1]?Math.max(Math.abs(n[1]),i.height-Math.abs(n[1])):Math.max(Math.abs(n[1]),i.height),this.tracker?this.tracker.attr(r):(this.tracker=e.renderer.rect(r).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},t.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},t.prototype.tooltipFooterHeaderFormatter=function(t,e){var n=t.series,r=n.tooltipOptions,i=n.xAxis,o=i&&i.dateTime;i={isFooter:e,labelConfig:t};var s=r.xDateFormat,l=r[e?"footerFormat":"headerFormat"];return m(this,"headerFormatter",i,(function(e){o&&!s&&v(t.key)&&(s=o.getXDateFormat(t.key,r.dateTimeLabelFormats)),o&&s&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){l=l.replace("{point."+t+"}","{point."+t+":"+s+"}")})),n.chart.styledMode&&(l=this.styledModeFormat(l)),e.text=a(l,{point:t,series:n},this.chart)})),i.text},t.prototype.update=function(t){this.destroy(),b(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,b(!0,this.options,t))},t.prototype.updatePosition=function(t){var e=this.chart,n=this.options,r=e.pointer,i=this.getLabel();r=r.getChartPosition();var o=(n.positioner||this.getPosition).call(this,i.width,i.height,t),a=t.plotX+e.plotLeft;t=t.plotY+e.plotTop,this.outside&&(n=n.borderWidth+2*this.distance,this.renderer.setSize(i.width+n,i.height+n,!1),1===r.scaleX&&1===r.scaleY||(h(this.container,{transform:"scale("+r.scaleX+", "+r.scaleY+")"}),a*=r.scaleX,t*=r.scaleY),a+=r.left-o.x,t+=r.top-o.y),this.move(Math.round(o.x),Math.round(o.y||0),a,t)},t}(),t})),e(n,"Core/Series/Point.js",[n["Core/Renderer/HTML/AST.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/FormatUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i){var o=e.animObject,a=n.defaultOptions,s=r.format,l=i.addEvent,u=i.defined,c=i.erase,h=i.extend,f=i.fireEvent,d=i.getNestedProperty,p=i.isArray,m=i.isFunction,g=i.isNumber,v=i.isObject,y=i.merge,b=i.objectEach,x=i.pick,w=i.syncTimeout,S=i.removeEvent,C=i.uniqueKey;return e=function(){function e(){this.colorIndex=this.category=void 0,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.series=void 0,this.visible=!0,this.x=void 0}return e.prototype.animateBeforeDestroy=function(){var t=this,e={x:t.startXPos,opacity:0},n=t.getGraphicalProps();n.singular.forEach((function(n){t[n]=t[n].animate("dataLabel"===n?{x:t[n].startXPos,y:t[n].startYPos,opacity:0}:e)})),n.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(h({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))},e.prototype.applyOptions=function(t,n){var r=this.series,i=r.options.pointValKey||r.pointValKey;return t=e.prototype.optionsToObject.call(this,t),h(this,t),this.options=this.options?h(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,i&&(this.y=e.prototype.getNestedProperty.call(this,i)),this.formatPrefix=(this.isNull=x(this.isValid&&!this.isValid(),null===this.x||!g(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&"undefined"===typeof n&&r.xAxis&&r.xAxis.hasNames&&(this.x=r.xAxis.nameToX(this)),"undefined"===typeof this.x&&r?this.x="undefined"===typeof n?r.autoIncrement():n:g(t.x)&&r.options.relativeXValue&&(this.x=r.autoIncrement(t.x)),this},e.prototype.destroy=function(){function t(){for(i in(e.graphic||e.dataLabel||e.dataLabels)&&(S(e),e.destroyElements()),e)e[i]=null}var e=this,n=e.series,r=n.chart;n=n.options.dataSorting;var i,a=r.hoverPoints,s=o(e.series.chart.renderer.globalAnimation);e.legendItem&&r.legend.destroyItem(e),a&&(e.setState(),c(a,e),a.length||(r.hoverPoints=null)),e===r.hoverPoint&&e.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),w(t,s.duration)):t(),r.pointCount--},e.prototype.destroyElements=function(t){var e=this;(t=e.getGraphicalProps(t)).singular.forEach((function(t){e[t]=e[t].destroy()})),t.plural.forEach((function(t){e[t].forEach((function(t){t.element&&t.destroy()})),delete e[t]}))},e.prototype.firePointEvent=function(t,e,n){var r=this,i=this.series.options;(i.point.events[t]||r.options&&r.options.events&&r.options.events[t])&&r.importEvents(),"click"===t&&i.allowPointSelect&&(n=function(t){r.select&&r.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),f(r,t,e,n)},e.prototype.getClassName=function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+("undefined"!==typeof this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},e.prototype.getGraphicalProps=function(t){var e,n=this,r=[],i={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&r.push("graphic","upperGraphic","shadowGroup"),t.dataLabel&&r.push("dataLabel","dataLabelUpper","connector"),e=r.length;e--;){var o=r[e];n[o]&&i.singular.push(o)}return["dataLabel","connector"].forEach((function(e){var r=e+"s";t[e]&&n[r]&&i.plural.push(r)})),i},e.prototype.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}},e.prototype.getNestedProperty=function(t){if(t)return 0===t.indexOf("custom.")?d(t,this.options):this[t]},e.prototype.getZone=function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var n,r=0;for(n=e[r];this[t]>=n.value;)n=e[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},e.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},e.prototype.init=function(t,e,n){return this.series=t,this.applyOptions(e,n),this.id=u(this.id)?this.id:C(),this.resolveColor(),t.chart.pointCount++,f(this,"afterInit"),this},e.prototype.optionsToObject=function(t){var n=this.series,r=n.options.keys,i=r||n.pointArrayMap||["y"],o=i.length,a={},s=0,l=0;if(g(t)||null===t)a[i[0]]=t;else if(p(t))for(!r&&t.length>o&&("string"===(n=typeof t[0])?a.name=t[0]:"number"===n&&(a.x=t[0]),s++);ls+u&&(m=s+u),vl+c&&(v=l+c),this.hasDragged=Math.sqrt(Math.pow(h-m,2)+Math.pow(f-v,2)),10t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,i),(i=g(t,!0)&&t.series)&&!(i=!g(r,!0))){i=r.distX-t.distX;var o=r.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(r.series.group&&r.series.group.zIndex);i=0<(0!==i&&e?i:0!==o?o:0!==a?a:r.series.index>t.series.index?-1:1)}i&&(r=t)})),r)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var n=t.series,r=n.xAxis;n=n.yAxis;var i=t.shapeArgs;if(r&&n){var o=b(t.clientX,t.plotX),a=t.plotY||0;return t.isNode&&i&&m(i.x)&&m(i.y)&&(o=i.x,a=i.y),e?{chartX:n.len+n.pos-a,chartY:r.len+r.pos-o}:{chartX:o+r.pos,chartY:a+n.pos}}if(i&&i.x&&i.y)return{chartX:i.x,chartY:i.y}},t.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var t=this.chart.container,e=y(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};var n=t.offsetWidth;return t=t.offsetHeight,2m.max&&(n=m.max-b,_=!0);_?(S-=.8*(S-a[u][0]),"number"===typeof C&&(C-=.8*(C-a[u][1])),e()):a[u]=[S,C],p||(o[u]=x-d,o[f]=b),o=p?1/w:w,i[f]=b,i[u]=n,r[p?t?"scaleY":"scaleX":"scale"+c]=w,r["translate"+c]=o*d+(S-o*v)},t.prototype.reset=function(t,e){var n=this.chart,r=n.hoverSeries,i=n.hoverPoint,o=n.hoverPoints,a=n.tooltip,s=a&&a.shared?o:i;t&&s&&x(s).forEach((function(e){e.series.isCartesian&&"undefined"===typeof e.plotX&&(t=!1)})),t?a&&s&&x(s).length&&(a.refresh(s),a.shared&&o?o.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):i&&(i.setState(i.state,!0),n.axes.forEach((function(t){t.crosshair&&i.series[t.coll]===t&&t.drawCrosshair(null,i)})))):(i&&i.onMouseOut(),o&&o.forEach((function(t){t.setState()})),r&&r.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),n.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=n.hoverPoints=n.hoverPoint=null)},t.prototype.runPointActions=function(e,n){var r=this.chart,i=r.tooltip&&r.tooltip.options.enabled?r.tooltip:void 0,o=!!i&&i.shared,s=n||r.hoverPoint,u=s&&s.series||r.hoverSeries;s=(n=this.getHoverData(s,u,r.series,(!e||"touchmove"!==e.type)&&(!!n||u&&u.directTouch&&this.isDirectTouch),o,e)).hoverPoint,u=n.hoverSeries;var c=n.hoverPoints;if(n=u&&u.tooltipOptions.followPointer&&!u.tooltipOptions.split,o=o&&u&&!u.noSharedTooltip,s&&(s!==r.hoverPoint||i&&i.isHidden)){if((r.hoverPoints||[]).forEach((function(t){-1===c.indexOf(t)&&t.setState()})),r.hoverSeries!==u&&u.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach((function(t){t.setState("hover")})),r.hoverPoint&&r.hoverPoint.firePointEvent("mouseOut"),!s.series)return;r.hoverPoints=c,r.hoverPoint=s,s.firePointEvent("mouseOver"),i&&i.refresh(o?c:s,e)}else n&&i&&!i.isHidden&&(s=i.getAnchor([{}],e),r.isInsidePlot(s[0],s[1],{visiblePlotOnly:!0})&&i.updatePosition({plotX:s[0],plotY:s[1]}));this.unDocMouseMove||(this.unDocMouseMove=l(r.container.ownerDocument,"mousemove",(function(e){var n=a[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),this.eventsToUnbind.push(this.unDocMouseMove)),r.axes.forEach((function(t){var n,i=b((t.crosshair||{}).snap,!0);i&&((n=r.hoverPoint)&&n.series[t.coll]===t||(n=d(c,(function(e){return e.series[t.coll]===t})))),n||!i?t.drawCrosshair(e,n):t.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var n=this.chart;n.series.forEach((function(r){var i=t||r.getPlotBox();r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(e?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))})),n.clipRect.attr(e||n.clipBox)},t.prototype.setDOMEvents=function(){var n=this,r=this.chart.container,i=r.ownerDocument;r.onmousedown=this.onContainerMouseDown.bind(this),r.onmousemove=this.onContainerMouseMove.bind(this),r.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(l(r,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(l(r,"mouseleave",this.onContainerMouseLeave.bind(this))),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=l(i,"mouseup",this.onDocumentMouseUp.bind(this)));for(var o=this.chart.renderTo.parentElement;o&&"BODY"!==o.tagName;)this.eventsToUnbind.push(l(o,"scroll",(function(){delete n.chartPosition}))),o=o.parentElement;e.hasTouch&&(this.eventsToUnbind.push(l(r,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(l(r,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=l(i,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},t.prototype.setHoverChartIndex=function(){var n=this.chart,r=e.charts[b(t.hoverChartIndex,-1)];r&&r!==n&&r.pointer.onContainerMouseLeave({relatedTarget:!0}),r&&r.mouseIsDown||(t.hoverChartIndex=n.index)},t.prototype.touch=function(t,e){var n=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),n.isInsidePlot(t.chartX-n.plotLeft,t.chartY-n.plotTop,{visiblePlotOnly:!0})&&!n.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var r=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));b(r,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.touchSelect=function(t){return!(!this.chart.options.chart.zoomBySingleTouch||!t.touches||1!==t.touches.length)},t.prototype.zoomOption=function(t){var e=this.chart,n=e.options.chart;e=e.inverted;var r=n.zoomType||"";/touch/.test(t.type)&&(r=b(n.pinchType,r)),this.zoomX=t=/x/.test(r),this.zoomY=n=/y/.test(r),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},t}(),t})),e(n,"Core/MSPointer.js",[n["Core/Globals.js"],n["Core/Pointer.js"],n["Core/Utilities.js"]],(function(t,e,n){function r(){var t=[];return t.item=function(t){return this[t]},f(p,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function i(t,n,i,o){var s=a[e.hoverChartIndex||NaN];"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!s||(s=s.pointer,o(t),s[n]({type:i,target:t.currentTarget,preventDefault:l,touches:r()}))}var o=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),a=t.charts,s=t.doc,l=t.noop,u=t.win,c=n.addEvent,h=n.css,f=n.objectEach,d=n.removeEvent,p={},m=!!u.PointerEvent;return function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return o(n,e),n.isRequired=function(){return!(t.hasTouch||!u.PointerEvent&&!u.MSPointerEvent)},n.prototype.batchMSEvents=function(t){t(this.chart.container,m?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,m?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(s,m?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},n.prototype.destroy=function(){this.batchMSEvents(d),e.prototype.destroy.call(this)},n.prototype.init=function(t,n){e.prototype.init.call(this,t,n),this.hasZoom&&h(t.container,{"-ms-touch-action":"none","touch-action":"none"})},n.prototype.onContainerPointerDown=function(t){i(t,"onContainerTouchStart","touchstart",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},n.prototype.onContainerPointerMove=function(t){i(t,"onContainerTouchMove","touchmove",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY},p[t.pointerId].target||(p[t.pointerId].target=t.currentTarget)}))},n.prototype.onDocumentPointerUp=function(t){i(t,"onDocumentTouchEnd","touchend",(function(t){delete p[t.pointerId]}))},n.prototype.setDOMEvents=function(){e.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(c)},n}(e)})),e(n,"Core/Legend/Legend.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Series/Point.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){var a=t.animObject,s=t.setAnimation,l=e.format;t=n.isFirefox;var u=n.marginNames;n=n.win;var c=i.distribute,h=o.addEvent,f=o.createElement,d=o.css,p=o.defined,m=o.discardElement,g=o.find,v=o.fireEvent,y=o.isNumber,b=o.merge,x=o.pick,w=o.relativeLength,S=o.stableSort,C=o.syncTimeout;return i=o.wrap,o=function(){function t(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return t.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),h(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=h(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},t.prototype.setOptions=function(t){var e=x(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=b(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=x(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},t.prototype.update=function(t,e){var n=this.chart;this.setOptions(b(!0,this.options,t)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,x(e,!0)&&n.redraw(),v(this,"afterUpdate")},t.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var n=this.options,r=t.legendItem,i=t.legendLine,o=t.legendSymbol,a=this.itemHiddenStyle.color;n=e?n.itemStyle.color:a;var s=e&&t.color||a,l=t.options&&t.options.marker,u={fill:s};r&&r.css({fill:n,color:n}),i&&i.attr({stroke:s}),o&&(l&&o.isMarker&&(u=t.pointAttribs(),e||(u.stroke=u.fill=a)),o.attr(u))}v(this,"afterColorizeItem",{item:t,visible:e})},t.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},t.prototype.positionItem=function(t){var e=this,n=this.options,r=n.symbolPadding,i=!n.rtl,o=t._legendItemPos;n=o[0],o=o[1];var a=t.checkbox,s=t.legendGroup;s&&s.element&&(r={translateX:i?n:this.legendWidth-n-2*r-4,translateY:o},i=function(){v(e,"afterPositionItem",{item:t})},p(s.translateY)?s.animate(r,void 0,i):(s.attr(r),i())),a&&(a.x=n,a.y=o)},t.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&m(t.checkbox)},t.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},t.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,n=this.titleHeight;if(t){var r=t.translateY;this.allItems.forEach((function(i){var o=i.checkbox;if(o){var a=r+n+o.y+(this.scrollOffset||0)+3;d(o,{left:t.translateX+i.checkboxOffset+o.x-20+"px",top:a+"px",display:this.proximate||a>r-6&&al?this.maxItemWidth:t.itemWidth,r&&this.itemX-n+e>l&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(i,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],r?this.itemX+=e:(this.itemY+=a+i+o,this.lastLineHeight=i),this.offsetWidth=this.widthOption||Math.max((r?this.itemX-n-(t.checkbox?0:s):e)+n,this.offsetWidth)},t.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var n=e&&e.options;e&&x(n.showInLegend,!p(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))})),v(this,"afterGetAllItems",{allItems:t}),t},t.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},t.prototype.adjustMargins=function(t,e){var n=this.chart,r=this.options,i=this.getAlignment();i&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o,a){o.test(i)&&!p(t[a])&&(n[u[a]]=Math.max(n[u[a]],n.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*r[a%2?"x":"y"]+x(r.margin,12)+e[a]+(n.titleOffset[a]||0)))}))},t.prototype.proximatePositions=function(){var t=this.chart,e=[],n="left"===this.options.align;this.allItems.forEach((function(r){var i,o=n;if(r.yAxis){r.xAxis.options.reversed&&(o=!o),r.points&&(i=g(o?r.points:r.points.slice(0).reverse(),(function(t){return y(t.plotY)}))),o=this.itemMarginTop+r.legendItem.getBBox().height+this.itemMarginBottom;var a=r.yAxis.top-t.plotTop;r.visible?(i=i?i.plotY:r.yAxis.height,i+=a-.3*o):i=a+r.yAxis.height,e.push({target:i,size:o,item:r})}}),this),c(e,t.plotHeight).forEach((function(e){e.item._legendItemPos&&(e.item._legendItemPos[1]=t.plotTop-t.spacing[0]+e.pos)}))},t.prototype.render=function(){var t=this.chart,e=t.renderer,n=this.options,r=this.padding,i=this.getAllItems(),o=this.group,a=this.box;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=w(n.width,t.spacingBox.width-r);var s=t.spacingBox.width-2*r-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(s/=2),this.maxLegendWidth=this.widthOption||s,o||(this.group=o=e.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(o),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),S(i,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),n.reversed&&i.reverse(),this.allItems=i,this.display=s=!!i.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,i.forEach(this.renderItem,this),i.forEach(this.layoutItem,this),i=(this.widthOption||this.offsetWidth)+r;var l=this.lastItemY+this.lastLineHeight+this.titleHeight;l=this.handleOverflow(l),l+=r,a||(this.box=a=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(o),a.isNew=!0),t.styledMode||a.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0s&&!1!==h.enabled?(this.clipHeight=e=Math.max(s-20-this.titleHeight-u,0),this.currentPage=x(this.currentPage,1),this.fullHeight=t,m.forEach((function(t,r){var i=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),a=p.length;(!a||i-p[a-1]>e&&(n||i)!==p[a-1])&&(p.push(n||i),a++),t.pageIx=a-1,n&&(m[r-1].pageIx=a-1),r===m.length-1&&i+o-p[a-1]>e&&i!==n&&(p.push(i),t.pageIx=a),i!==n&&(n=i)})),b||(b=r.clipRect=o.clipRect(0,u,9999,0),r.contentGroup.clip(b)),g(e),y||(this.nav=y=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,d,d).add(y),v("upTracker").on("click",(function(){r.scroll(-1,f)})),this.pager=o.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(h.style),this.pager.add(y),this.down=o.symbol("triangle-down",0,0,d,d).add(y),v("downTracker").on("click",(function(){r.scroll(1,f)}))),r.scroll(0),t=s):y&&(g(),this.nav=y.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},t.prototype.scroll=function(t,e){var n=this,r=this.chart,i=this.pages,o=i.length,l=this.clipHeight,u=this.options.navigation,c=this.pager,h=this.padding,f=this.currentPage+t;f>o&&(f=o),0=Math.max(l+o,h.pos)&&s<=Math.min(l+o+i.width,h.pos+h.len)||(t.isInsidePlot=!1)}return!n.ignoreY&&t.isInsidePlot&&(r=c&&(r?c.xAxis:c.yAxis)||{pos:a,len:1/0},(n=n.paneCoordinates?r.pos+e:a+e)>=Math.max(u+a,r.pos)&&n<=Math.min(u+a+i.height,r.pos+r.len)||(t.isInsidePlot=!1)),z(this,"afterIsInsidePlot",t),t.isInsidePlot},t.prototype.redraw=function(t){z(this,"beforeRedraw");var e=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,r=this.pointer,i=this.legend,o=this.userOptions.legend,a=this.renderer,s=a.isHidden(),l=[],u=this.isDirtyBox,c=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),y(!!this.hasRendered&&t,this),s&&this.temporaryDisplay(),this.layOutTitles(),t=n.length;t--;){var h=n[t];if(h.options.stacking||h.options.centerInCategory){var f=!0;if(h.isDirty){var d=!0;break}}}if(d)for(t=n.length;t--;)(h=n[t]).options.stacking&&(h.isDirty=!0);n.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"===typeof t.updateTotals&&t.updateTotals(),c=!0):o&&(o.labelFormatter||o.labelFormat)&&(c=!0)),t.isDirtyData&&z(t,"updatedData")})),c&&i&&i.options.enabled&&(i.render(),this.isDirtyLegend=!1),f&&this.getStacks(),e.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),e.forEach((function(t){t.isDirty&&(u=!0)})),e.forEach((function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,l.push((function(){z(t,"afterSetExtremes",B(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(u||f)&&t.redraw()})),u&&this.drawChartBox(),z(this,"predraw"),n.forEach((function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),r&&r.reset(!0),a.draw(),z(this,"redraw"),z(this,"render"),s&&this.temporaryDisplay(!0),l.forEach((function(t){t.call()}))},t.prototype.get=function(t){function e(e){return e.id===t||e.options&&e.options.id===t}for(var n=this.series,r=F(this.axes,e)||F(this.series,e),i=0;!r&&i=s&&i<=l||u||!L(i))&&(c=!0),r[u?"zoomX":"zoomY"]&&c&&(e=a.zoom(t.min,t.max),a.displayBtn&&(o=!0))}));var a=n.resetZoomButton;o&&!a?n.showResetZoom():!o&&W(a)&&(n.resetZoomButton=a.destroy()),e&&n.redraw(q(n.options.chart.animation,t&&t.animation,100>n.pointCount))},t.prototype.pan=function(t,e){var n=this,r=n.hoverPoints;e="object"===typeof e?e:{enabled:e,type:"x"};var i=n.options.chart,o=n.options.mapNavigation&&n.options.mapNavigation.enabled;i&&i.panning&&(i.panning=e);var a,s=e.type;z(this,"pan",{originalEvent:t},(function(){r&&r.forEach((function(t){t.setState()}));var e=n.xAxis;"xy"===s?e=e.concat(n.yAxis):"y"===s&&(e=n.yAxis);var i={};e.forEach((function(e){if(e.options.panningEnabled&&!e.options.isInternal){var r=e.horiz,l=t[r?"chartX":"chartY"],u=n[r=r?"mouseDownX":"mouseDownY"],c=e.minPointOffset||0,h=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,f=e.getExtremes(),d=e.toValue(u-l,!0)+c*h,p=e.toValue(u+e.len-l,!0)-(c*h||e.isXAxis&&e.pointRangePadding||0),m=p=h&&d<=p&&(e.setExtremes(u,d,!1,!1,{trigger:"pan"}),n.resetZoomButton||o||u===h||d===p||!s.match("y")||(n.showResetZoom(),e.displayBtn=!1),a=!0),i[r]=l)}})),X(i,(function(t,e){n[e]=t})),a&&n.redraw(!1),j(n.container,{cursor:"move"})}))},t}(),B(t.prototype,{callbacks:[],collectionsWithInit:{xAxis:[t.prototype.addAxis,[!0]],yAxis:[t.prototype.addAxis,[!1]],series:[t.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),t})),e(n,"Core/Legend/LegendSymbol.js",[n["Core/Utilities.js"]],(function(t){var e,n=t.merge,r=t.pick;return function(t){t.drawLineMarker=function(t){var e=this.options,i=t.symbolWidth,o=t.symbolHeight,a=o/2,s=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var u={},c=e.marker;this.chart.styledMode||(u={"stroke-width":e.lineWidth||0},e.dashStyle&&(u.dashstyle=e.dashStyle)),this.legendLine=s.path([["M",0,t],["L",i,t]]).addClass("highcharts-graph").attr(u).add(l),c&&!1!==c.enabled&&i&&(e=Math.min(r(c.radius,a),a),0===this.symbol.indexOf("url")&&(c=n(c,{width:o,height:o}),e=0),this.legendSymbol=i=s.symbol(this.symbol,i/2-e,t-e,2*e,2*e,c).addClass("highcharts-point").add(l),i.isMarker=!0)},t.drawRectangle=function(t,e){var n=t.symbolHeight,i=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(i?(t.symbolWidth-n)/2:0,t.baseline-n+1,i?n:t.symbolWidth,n,r(t.options.symbolRadius,n/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)}}(e||(e={})),e})),e(n,"Core/Series/SeriesDefaults.js",[n["Core/Color/Palette.js"]],(function(t){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{enabledThreshold:2,lineColor:t.backgroundColor,lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:t.neutralColor20,lineColor:t.neutralColor100,lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",defer:!0,formatter:function(){var t=this.series.chart.numberFormatter;return"number"!==typeof this.y?"":t(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"}})),e(n,"Core/Series/Series.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/DefaultOptions.js"],n["Core/Foundation.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Color/Palette.js"],n["Core/Series/Point.js"],n["Core/Series/SeriesDefaults.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s,l,u,c){var h=t.animObject,f=t.setAnimation,d=e.defaultOptions,p=n.registerEventOptions,m=r.hasTouch,g=r.svg,v=r.win,y=l.seriesTypes,b=c.addEvent,x=c.arrayMax,w=c.arrayMin,S=c.clamp,C=c.cleanRecursively,_=c.correctFloat,k=c.defined,E=c.erase,M=c.error,T=c.extend,A=c.find,O=c.fireEvent,P=c.getNestedProperty,N=c.isArray,j=c.isNumber,L=c.isString,D=c.merge,I=c.objectEach,R=c.pick,B=c.removeEvent,F=c.splat,z=c.syncTimeout;return t=function(){function t(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}return t.prototype.init=function(t,e){O(this,"init",{options:e});var n=this,r=t.series;this.eventsToUnbind=[],n.chart=t,n.options=n.setOptions(e),e=n.options,n.linkedSeries=[],n.bindAxes(),T(n,{name:e.name,state:"",visible:!1!==e.visible,selected:!0===e.selected}),p(this,e);var i,o=e.events;(o&&o.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),n.getColor(),n.getSymbol(),n.parallelArrays.forEach((function(t){n[t+"Data"]||(n[t+"Data"]=[])})),n.isCartesian&&(t.hasCartesianSeries=!0),r.length&&(i=r[r.length-1]),n._i=R(i&&i._i,-1)+1,n.opacity=n.options.opacity,t.orderSeries(this.insert(r)),e.dataSorting&&e.dataSorting.enabled?n.setDataSortingOptions():n.points||n.data||n.setData(e.data,!1),O(this,"afterInit")},t.prototype.is=function(t){return y[t]&&this instanceof y[t]},t.prototype.insert=function(t){var e,n=this.options.index;if(j(n)){for(e=t.length;e--;)if(n>=R(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 R(e,t.length-1)},t.prototype.bindAxes=function(){var t,e=this,n=e.options,r=e.chart;O(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(i){var o=0;r[i].forEach((function(r){t=r.options,(n[i]===o&&!t.isInternal||"undefined"!==typeof n[i]&&n[i]===t.id||"undefined"===typeof n[i]&&0===t.index)&&(e.insert(r.series),e[i]=r,r.isDirty=!0),t.isInternal||o++})),e[i]||e.optionalAxis===i||M(18,!0,r)}))})),O(this,"afterBindAxes")},t.prototype.updateParallelArrays=function(t,e){var n=t.series,r=arguments,i=j(e)?function(r){var i="y"===r&&n.toYData?n.toYData(t):t[r];n[r+"Data"][e]=i}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(r,2))};n.parallelArrays.forEach(i)},t.prototype.hasData=function(){return this.visible&&"undefined"!==typeof this.dataMax&&"undefined"!==typeof this.dataMin||this.visible&&this.yData&&0=this.cropStart?u-this.cropStart:u),!r&&j(u)&&s[u]&&s[u].touched&&(u=void 0),u},t.prototype.updateData=function(t,e){var n,r,i,o=this.options,a=o.dataSorting,s=this.points,l=[],u=this.requireSorting,c=t.length===s.length,h=!0;if(this.xIncrement=null,t.forEach((function(t,e){var r=k(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},h=r.x;r.id||j(h)?(-1===(r=this.findPointIndex(r,i))||"undefined"===typeof r?l.push(t):s[r]&&t!==o.data[r]?(s[r].update(t,!1,null,!1),s[r].touched=!0,u&&(i=r+1)):s[r]&&(s[r].touched=!0),(!c||e!==r||a&&a.enabled||this.hasDerivedData)&&(n=!0)):l.push(t)}),this),n)for(t=s.length;t--;)(r=s[t])&&!r.touched&&r.remove&&r.remove(!1,e);else!c||a&&a.enabled?h=!1:(t.forEach((function(t,e){t!==s[e].y&&s[e].update&&s[e].update(t,!1,null,!1)})),l.length=0);return s.forEach((function(t){t&&(t.touched=!1)})),!!h&&(l.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=x(this.xData),this.autoIncrement()),!0)},t.prototype.setData=function(t,e,n,r){var i=this,o=i.points,a=o&&o.length||0,s=i.options,l=i.chart,u=s.dataSorting,c=i.xAxis,h=s.turboThreshold,f=this.xData,d=this.yData,p=i.pointArrayMap;p=p&&p.length;var m,g=s.keys,v=0,y=1,b=null,x=(t=t||[]).length;if(e=R(e,!0),u&&u.enabled&&(t=this.sortData(t)),!1!==r&&x&&a&&!i.cropped&&!i.hasGroupedData&&i.visible&&!i.isSeriesBoosting&&(m=this.updateData(t,n)),!m){if(i.xIncrement=null,i.colorCounter=0,this.parallelArrays.forEach((function(t){i[t+"Data"].length=0})),h&&x>h)if(b=i.getFirstValidPoint(t),j(b))for(n=0;nt?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var n=e.options,i=n.data;n.dataSorting&&n.dataSorting.enabled||!i||(i.forEach((function(n,o){i[o]=r(e,n),t[o]&&(i[o].x=t[o].x,i[o].index=o)})),e.setData(i,!1))})),t},t.prototype.getProcessedData=function(t){var e=this.xAxis,n=this.options,r=n.cropThreshold,i=t||this.getExtremesFromAll||n.getExtremesFromAll,o=this.isCartesian;t=e&&e.val2lin,n=!(!e||!e.logarithmic);var a=0,s=this.xData,l=this.yData,u=this.requireSorting,c=!1,h=s.length;if(e){var f=(c=e.getExtremes()).min,d=c.max;c=e.categories&&!e.names.length}if(o&&this.sorted&&!i&&(!r||h>r||this.forceCrop))if(s[h-1]d)s=[],l=[];else if(this.yData&&(s[0]d)){var p=this.cropData(this.xData,this.yData,f,d);s=p.xData,l=p.yData,a=p.start,p=!0}for(r=s.length||1;--r;)if(0<(e=n?t(s[r])-t(s[r-1]):s[r]-s[r-1])&&("undefined"===typeof m||ee&&u&&!c&&(M(15,!1,this.chart),u=!1);return{xData:s,yData:l,cropped:p,cropStart:a,closestPointRange:m}},t.prototype.processData=function(t){var e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange},t.prototype.cropData=function(t,e,n,r,i){var o,a=t.length,s=0,l=a;for(i=R(i,this.cropShoulder),o=0;o=n){s=Math.max(0,o-i);break}for(n=o;nr){l=n+i;break}return{xData:t.slice(s,l),yData:e.slice(s,l),start:s,end:l}},t.prototype.generatePoints=function(){var t=this.options,e=t.data,n=this.processedXData,r=this.processedYData,i=this.pointClass,o=n.length,a=this.cropStart||0,s=this.hasGroupedData,l=t.keys,u=[];t=t.dataGrouping&&t.dataGrouping.groupAll?a:0;var c,h,f=this.data;if(!f&&!s){var d=[];d.length=e.length,f=this.data=d}for(l&&s&&(this.options.keys=!1),h=0;h=l&&(i[s-a]||d)<=u,p&&d)if(p=f.length)for(;p--;)j(f[p])&&(o[c++]=f[p]);else o[c++]=f}return t={dataMin:w(o),dataMax:x(o)},O(this,"afterGetExtremes",{dataExtremes:t}),t},t.prototype.applyExtremes=function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},t.prototype.getFirstValidPoint=function(t){for(var e=t.length,n=0,r=null;null===r&&n=C&&(C=null),v.total=v.stackTotal=b.total,v.percentage=b.total&&v.y/b.total*100,v.stackY=w,this.irregularWidths||b.setOffset(this.pointXOffset||0,this.barW||0)),v.yBottom=k(C)?S(s.translate(C,0,1,0,1),-1e5,1e5):null,c&&(w=this.modifyValue(w,v)),v.plotY=void 0,j(w)&&"undefined"!==typeof(b=s.translate(w,!1,!0,!1,!0))&&(v.plotY=S(b,-1e5,1e5)),v.isInside=this.isPointInside(v),v.clientX=f?_(i.translate(y,0,0,0,1,h)):e,v.negative=v[m]<(n[m+"Threshold"]||d||0),v.category=o&&"undefined"!==typeof o[v.x]?o[v.x]:v.x,!v.isNull&&!1!==v.visible){"undefined"!==typeof T&&(g=Math.min(g,Math.abs(e-T)));var T=e}v.zone=this.zones.length&&v.getZone(),!v.graphic&&this.group&&a&&(v.isNew=!0)}this.closestPointRangePx=g,O(this,"afterTranslate")},t.prototype.getValidPoints=function(t,e,n){var r=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!r.isInsidePlot(t.plotX,t.plotY,{inverted:r.inverted}))&&!1!==t.visible&&(n||!t.isNull)}))},t.prototype.getClipBox=function(t,e){var n=this.options,r=this.chart,i=r.inverted,o=this.xAxis,a=o&&this.yAxis,s=r.options.chart.scrollablePlotArea||{};return t&&!1===n.clip&&a?t=i?{y:-r.chartWidth+a.len+a.pos,height:r.chartWidth,width:r.chartHeight,x:-r.chartHeight+o.len+o.pos}:{y:-a.pos,height:r.chartHeight,width:r.chartWidth,x:-o.pos}:(t=this.clipBox||r.clipBox,e&&(t.width=r.plotSizeX,t.x=(r.scrollablePixelsX||0)*(s.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},t.prototype.getSharedClipKey=function(t){if(this.sharedClipKey)return this.sharedClipKey;var e=[t&&t.duration,t&&t.easing,t&&t.defer,this.getClipBox(t).height,this.options.xAxis,this.options.yAxis].join();return(!1!==this.options.clip||t)&&(this.sharedClipKey=e),e},t.prototype.setClip=function(t){var e=this.chart,n=this.options,r=e.renderer,i=e.inverted,o=this.clipBox,a=this.getClipBox(t),s=this.getSharedClipKey(t),l=e.sharedClips[s],u=e.sharedClips[s+"m"];t&&(a.width=0,i&&(a.x=e.plotHeight+(!1!==n.clip?0:e.plotTop))),l?e.hasLoaded||l.attr(a):(t&&(e.sharedClips[s+"m"]=u=r.clipRect(i?(e.plotSizeX||0)+99:-99,i?-e.plotLeft:-e.plotTop,99,i?e.chartWidth:e.chartHeight)),e.sharedClips[s]=l=r.clipRect(a),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),(!1!==n.clip||t)&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(u)),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&(o||(e.sharedClips[s]=l.destroy()),u&&(e.sharedClips[s+"m"]=u.destroy())))},t.prototype.animate=function(t){var e=this.chart,n=h(this.options.animation),r=this.sharedClipKey;if(t)this.setClip(n);else if(r){t=e.sharedClips[r],r=e.sharedClips[r+"m"];var i=this.getClipBox(n,!0);t&&t.animate(i,n),r&&r.animate({width:i.width+99,x:i.x-(e.inverted?0:99)},n)}},t.prototype.afterAnimate=function(){this.setClip(),O(this,"afterAnimate"),this.finishedAnimating=!0},t.prototype.drawPoints=function(){var t,e,n=this.points,r=this.chart,i=this.options.marker,o=this[this.specialGroup]||this.markerGroup,a=this.xAxis,s=R(i.enabled,!(a&&!a.isRadial)||null,this.closestPointRangePx>=i.enabledThreshold*i.radius);if(!1!==i.enabled||this._hasPointMarkers)for(t=0;tw.max,l.resetZones&&0===e&&(e=void 0)})),this.clips=f}else l.visible&&(d&&d.show(!0),p&&p.show(!0))},t.prototype.invertGroups=function(t){function e(){["group","markerGroup"].forEach((function(e){n[e]&&(r.renderer.isVML&&n[e].attr({width:n.yAxis.len,height:n.xAxis.len}),n[e].width=n.yAxis.len,n[e].height=n.xAxis.len,n[e].invert(!n.isRadialSeries&&t))}))}var n=this,r=n.chart;n.xAxis&&(n.eventsToUnbind.push(b(r,"resize",e)),e(),n.invertGroups=e)},t.prototype.plotGroup=function(t,e,n,r,i){var o=this[t],a=!o;return n={visibility:n,zIndex:r||.1},"undefined"===typeof this.opacity||this.chart.styledMode||"inactive"===this.state||(n.opacity=this.opacity),a&&(this[t]=o=this.chart.renderer.g().add(i)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(k(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(n)[a?"attr":"animate"](this.getPlotBox()),o},t.prototype.getPlotBox=function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},t.prototype.removeEvents=function(t){t||B(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0)},t.prototype.render=function(){var t=this,e=t.chart,n=t.options,r=h(n.animation),i=t.visible?"inherit":"hidden",o=n.zIndex,a=t.hasRendered,s=e.seriesGroup,l=e.inverted,u=!t.finishedAnimating&&e.renderer.isSVG&&r.duration;O(this,"render");var c=t.plotGroup("group","series",i,o,s);t.markerGroup=t.plotGroup("markerGroup","markers",i,o,s),u&&t.animate&&t.animate(!0),c.inverted=!!R(t.invertible,t.isCartesian)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),!1===n.clip||t.sharedClipKey||a||c.clip(e.clipRect),u&&t.animate&&t.animate(),a||(u&&r.defer&&(u+=r.defer),t.animationTimeout=z((function(){t.afterAnimate()}),u||0)),t.isDirty=!1,t.hasRendered=!0,O(t,"afterRender")},t.prototype.redraw=function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,r=this.xAxis,i=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:R(r&&r.left,t.plotLeft),translateY:R(i&&i.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},t.prototype.searchPoint=function(t,e){var n=this.xAxis,r=this.yAxis,i=this.chart.inverted;return this.searchKDTree({clientX:i?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:i?r.len-t.chartX+r.pos:t.chartY-r.pos},e,t)},t.prototype.buildKDTree=function(t){function e(t,r,i){var o=t&&t.length;if(o){var a=n.kdAxisArray[r%i];return t.sort((function(t,e){return t[a]-e[a]})),{point:t[o=Math.floor(o/2)],left:e(t.slice(0,o),r+1,i),right:e(t.slice(o+1),r+1,i)}}}this.buildingKdTree=!0;var n=this,r=-1(c=e[c]-u[c])?"right":"left",n[d=0>c?"left":"right"]&&(h=(d=t(e,n[d],s+1,l))[a]d;)p--;this.updateParallelArrays(f,"splice",p,0,0),this.updateParallelArrays(f,p),l&&f.name&&(l[d]=f.name),c.splice(p,0,t),u&&(this.data.splice(p,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),n&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),this.updateParallelArrays(f,"shift"),c.shift())),!1!==i&&O(this,"addPoint",{point:f}),this.isDirtyData=this.isDirty=!0,e&&s.redraw(r)},t.prototype.removePoint=function(t,e,n){var r=this,i=r.data,o=i[t],a=r.points,s=r.chart,l=function(){a&&a.length===i.length&&a.splice(t,1),i.splice(t,1),r.options.data.splice(t,1),r.updateParallelArrays(o||{series:r},"splice",t,1),o&&o.destroy(),r.isDirty=!0,r.isDirtyData=!0,e&&s.redraw()};f(n,s),e=R(e,!0),o?o.firePointEvent("remove",null,l):l()},t.prototype.remove=function(t,e,n,r){function i(){o.destroy(r),a.isDirtyLegend=a.isDirtyBox=!0,a.linkSeries(),R(t,!0)&&a.redraw(e)}var o=this,a=o.chart;!1!==n?O(o,"remove",null,i):i()},t.prototype.update=function(t,e){t=C(t,this.userOptions),O(this,"update",{options:t});var n,r=this,i=r.chart,o=r.userOptions,a=r.initialType||r.type,s=i.options.plotOptions,l=y[a].prototype,u=r.finishedAnimating&&{animation:!1},c={},h=["eventOptions","navigatorSeries","baseSeries"],f=t.type||o.type||i.options.chart.type,d=!(this.hasDerivedData||f&&f!==this.type||"undefined"!==typeof t.pointStart||"undefined"!==typeof t.pointInterval||"undefined"!==typeof t.relativeXValue||r.hasOptionChanged("dataGrouping")||r.hasOptionChanged("pointStart")||r.hasOptionChanged("pointInterval")||r.hasOptionChanged("pointIntervalUnit")||r.hasOptionChanged("keys"));if(f=f||a,d&&(h.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&h.push("area","graph"),r.parallelArrays.forEach((function(t){h.push(t+"Data")})),t.data&&(t.dataSorting&&T(r.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=D(o,u,{index:"undefined"===typeof o.index?r.index:o.index,pointStart:R(s&&s.series&&s.series.pointStart,o.pointStart,r.xData[0])},!d&&{data:r.options.data},t),d&&t.data&&(t.data=r.options.data),(h=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(h)).forEach((function(t){h[t]=r[t],delete r[t]})),s=!1,y[f]){if(s=f!==r.type,r.remove(!1,!1,!1,!0),s)if(Object.setPrototypeOf)Object.setPrototypeOf(r,y[f].prototype);else{for(n in u=Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents,l)r[n]=void 0;T(r,y[f].prototype),u?r.hcEvents=u:delete r.hcEvents}}else M(17,!0,i,{missingModuleFor:f});if(h.forEach((function(t){r[t]=h[t]})),r.init(i,t),d&&this.points){var p=r.options;!1===p.visible?(c.graphic=1,c.dataLabel=1):r._hasPointLabels||(t=p.marker,l=p.dataLabels,!t||!1!==t.enabled&&(o.marker&&o.marker.symbol)===t.symbol||(c.graphic=1),l&&!1===l.enabled&&(c.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(c).length&&t.destroyElements(c),!1===p.showInLegend&&t.legendItem&&i.legend.destroyItem(t))}),this)}r.initialType=a,i.linkSeries(),s&&r.linkedSeries.length&&(r.isDirtyData=!0),O(this,"afterUpdate"),R(e,!0)&&i.redraw(!!d&&void 0)},t.prototype.setName=function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0},t.prototype.hasOptionChanged=function(t){var e=this.options[t],n=this.chart.options.plotOptions,r=this.userOptions[t];return r?e!==r:e!==R(n&&n[this.type]&&n[this.type][t],n&&n.series&&n.series[t],e)},t.prototype.onMouseOver=function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&O(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},t.prototype.onMouseOut=function(){var t=this.options,e=this.chart,n=e.tooltip,r=e.hoverPoint;e.hoverSeries=null,r&&r.onMouseOut(),this&&t.events.mouseOut&&O(this,"mouseOut"),!n||this.stickyTracking||n.shared&&!this.noSharedTooltip||n.hide(),e.series.forEach((function(t){t.setState("",!0)}))},t.prototype.setState=function(t,e){var n=this,r=n.options,i=n.graph,o=r.inactiveOtherPoints,a=r.states,s=R(a[t||"normal"]&&a[t||"normal"].animation,n.chart.options.chart.animation),l=r.lineWidth,u=0,c=r.opacity;if(t=t||"",n.state!==t&&([n.group,n.markerGroup,n.dataLabelsGroup].forEach((function(e){e&&(n.state&&e.removeClass("highcharts-series-"+n.state),t&&e.addClass("highcharts-series-"+t))})),n.state=t,!n.chart.styledMode)){if(a[t]&&!1===a[t].enabled)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),c=R(a[t].opacity,c)),i&&!i.dashstyle)for(r={"stroke-width":l},i.animate(r,s);n["zone-graph-"+u];)n["zone-graph-"+u].animate(r,s),u+=1;o||[n.group,n.markerGroup,n.dataLabelsGroup,n.labelBySeries].forEach((function(t){t&&t.animate({opacity:c},s)}))}e&&o&&n.points&&n.setAllPointsToState(t||void 0)},t.prototype.setAllPointsToState=function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},t.prototype.setVisible=function(t,e){var n=this,r=n.chart,i=n.legendItem,o=r.options.chart.ignoreHiddenSeries,a=n.visible,s=(n.visible=t=n.options.visible=n.userOptions.visible="undefined"===typeof t?!a:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){n[t]&&n[t][s]()})),r.hoverSeries!==n&&(r.hoverPoint&&r.hoverPoint.series)!==n||n.onMouseOut(),i&&r.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&r.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),n.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),o&&(r.isDirtyBox=!0),O(n,s),!1!==e&&r.redraw()},t.prototype.show=function(){this.setVisible(!0)},t.prototype.hide=function(){this.setVisible(!1)},t.prototype.select=function(t){this.selected=t=this.options.selected="undefined"===typeof t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),O(this,t?"select":"unselect")},t.prototype.shouldShowTooltip=function(t,e,n){return void 0===n&&(n={}),n.series=this,n.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,n)},t.defaultOptions=s,t}(),T(t.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:i.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:a,requireSorting:!0,sorted:!0}),l.series=t,t})),e(n,"Extensions/ScrollablePlotArea.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Renderer/RendererRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o){var a=t.stop,s=o.addEvent,l=o.createElement,u=o.merge,c=o.pick;s(n,"afterSetChartSize",(function(t){var n=this.options.chart.scrollablePlotArea,r=n&&n.minWidth;if(n=n&&n.minHeight,!this.renderer.forExport){if(r){if(this.scrollablePixelsX=r=Math.max(0,r-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=u(this.plotBox),this.plotBox.width=this.plotWidth+=r,this.inverted?this.clipBox.height+=r:this.clipBox.width+=r;var i={1:{name:"right",value:r}}}}else n&&(this.scrollablePixelsY=r=Math.max(0,n-this.chartHeight))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=u(this.plotBox),this.plotBox.height=this.plotHeight+=r,this.inverted?this.clipBox.width+=r:this.clipBox.height+=r,i={2:{name:"bottom",value:r}});i&&!t.skipAxes&&this.axes.forEach((function(t){i[t.side]?t.getPlotLinePath=function(){var n=i[t.side].name,r=this[n];this[n]=r-i[t.side].value;var o=e.prototype.getPlotLinePath.apply(this,arguments);return this[n]=r,o}:(t.setAxisSize(),t.setAxisTranslation())}))}})),s(n,"render",(function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()})),n.prototype.setUpScrolling=function(){var t=this,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=l("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=l("div",{className:"highcharts-scrolling"},e,this.scrollingParent),s(this.scrollingContainer,"scroll",(function(){t.pointer&&delete t.pointer.chartPosition})),this.innerContainer=l("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},n.prototype.moveFixedElements=function(){var t,e=this.container,n=this.fixedRenderer,r=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&r.push(t+":not(.highcharts-radial-axis)",t+"-labels:not(.highcharts-radial-axis-labels)"),r.forEach((function(t){[].forEach.call(e.querySelectorAll(t),(function(t){(t.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}))},n.prototype.applyFixed=function(){var t=!this.fixedDiv,e=this.options.chart,n=e.scrollablePlotArea,r=i.getRendererType();t?(this.fixedDiv=l("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(e.style&&e.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new r(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=e.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":c(n.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),s(this,"afterShowResetZoom",this.moveFixedElements),s(this,"afterDrilldown",this.moveFixedElements),s(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||t)&&(this.scrollableDirty=!1,this.moveFixedElements()),e=this.chartWidth+(this.scrollablePixelsX||0),r=this.chartHeight+(this.scrollablePixelsY||0),a(this.container),this.container.style.width=e+"px",this.container.style.height=r+"px",this.renderer.boxWrapper.attr({width:e,height:r,viewBox:[0,0,e,r].join(" ")}),this.chartBackground.attr({width:e,height:r}),this.scrollingContainer.style.height=this.chartHeight+"px",t&&(n.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*n.scrollPositionX),n.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*n.scrollPositionY)),r=this.axisOffset,t=this.plotTop-r[0]-1,n=this.plotLeft-r[3]-1,e=this.plotTop+this.plotHeight+r[2]+1,r=this.plotLeft+this.plotWidth+r[1]+1;var o=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),u=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);t=this.scrollablePixelsX?[["M",0,t],["L",this.plotLeft-1,t],["L",this.plotLeft-1,e],["L",0,e],["Z"],["M",o,t],["L",this.chartWidth,t],["L",this.chartWidth,e],["L",o,e],["Z"]]:this.scrollablePixelsY?[["M",n,0],["L",n,this.plotTop-1],["L",r,this.plotTop-1],["L",r,0],["Z"],["M",n,u],["L",n,this.chartHeight],["L",r,this.chartHeight],["L",r,u],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:t})},s(e,"afterInit",(function(){this.chart.scrollableDirty=!0})),s(r,"show",(function(){this.chart.scrollableDirty=!0}))})),e(n,"Core/Axis/StackingAxis.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Axis/Axis.js"],n["Core/Utilities.js"]],(function(t,e,n){var r,i=t.getDeferredAnimation,o=n.addEvent,a=n.destroyObjectProperties,s=n.fireEvent,l=n.isNumber,u=n.objectEach;return function(t){function e(){var t=this.stacking;if(t){var e=t.stacks;u(e,(function(t,n){a(t),e[n]=null})),t&&t.stackTotalGroup&&t.stackTotalGroup.destroy()}}function n(){this.stacking||(this.stacking=new c(this))}var r=[];t.compose=function(t){return-1===r.indexOf(t)&&(r.push(t),o(t,"init",n),o(t,"destroy",e)),t};var c=function(){function t(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}return t.prototype.buildStacks=function(){var t,e=this.axis,n=e.series,r=e.options.reversedStacks,i=n.length;if(!e.isXAxis){for(this.usePercentage=!1,t=i;t--;){var o=n[r?t:i-t-1];o.setStackedPoints(),o.setGroupedPoints()}for(t=0;to&&n.shadow)),s&&(s.startX=r.xMap,s.isArea=r.isArea)}))},r.prototype.getGraphPath=function(t,e,n){var r,i=this,a=i.options,s=[],l=[],u=a.step,c=(t=t||i.points).reversed;return c&&t.reverse(),(u={right:1,center:2}[u]||u&&3)&&c&&(u=4-u),(t=this.getValidPoints(t,!1,!(a.connectNulls&&!e&&!n))).forEach((function(c,h){var f=c.plotX,d=c.plotY,p=t[h-1];(c.leftCliff||p&&p.rightCliff)&&!n&&(r=!0),c.isNull&&!o(e)&&0t&&c>i?h=2*i-(c=Math.max(t,i)):cn&&h>i?c=2*i-(h=Math.max(n,i)):h=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;r=t.borderWidth=x(n.borderWidth,r?0:1);var i=t.xAxis,a=t.yAxis,s=n.threshold,l=t.translatedThreshold=a.getThreshold(s),u=x(n.minPointLength,5),c=t.getColumnMetrics(),h=c.width,d=t.pointXOffset=c.offset,m=t.dataMin,g=t.dataMax,v=t.barW=Math.max(h,1+2*r);e.inverted&&(l-=.5),n.pointPadding&&(v=Math.ceil(v)),o.prototype.translate.apply(t),t.points.forEach((function(r){var o=x(r.yBottom,l),b=999+Math.abs(o),w=r.plotX||0;b=f(r.plotY,-b,a.len+b);var S=Math.min(b,o),C=Math.max(b,o)-S,_=h,k=w+d,E=v;u&&Math.abs(C)u?o-u:l-(w?u:0)),p(r.options.pointWidth)&&(_=E=Math.ceil(r.options.pointWidth),k-=Math.round((_-h)/2)),n.centerInCategory&&(k=t.adjustForMissingColumns(k,_,r,c)),r.barX=k,r.pointWidth=_,r.tooltipPos=e.inverted?[f(a.len+a.pos-e.plotLeft-b,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),i.len+i.pos-e.plotTop-k-E/2,C]:[i.left-e.plotLeft+k+E/2,f(b+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),C],r.shapeType=t.pointClass.prototype.shapeType||"rect",r.shapeArgs=t.crispCol.apply(t,r.isNull?[k,l,E,0]:[k,S,E,C])}))},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(t,e){var n=this.options,r=this.pointAttrToOptions||{},i=r.stroke||"borderColor",o=r["stroke-width"]||"borderWidth",a=t&&t.color||this.color,s=t&&t[i]||n[i]||a;r=t&&t.options.dashStyle||n.dashStyle;var l=t&&t[o]||n[o]||this[o]||0,u=x(t&&t.opacity,n.opacity,1);if(t&&this.zones.length){var h=t.getZone();a=t.options.color||h&&(h.color||t.nonZonedColor)||this.color,h&&(s=h.borderColor||s,r=h.dashStyle||r,l=h.borderWidth||l)}return e&&t&&(e=(t=b(n.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||"undefined"!==typeof e&&c(a).brighten(t.brightness).get()||a,s=t[i]||s,l=t[o]||l,r=t.dashStyle||r,u=x(t.opacity,u)),i={fill:a,stroke:s,"stroke-width":l,opacity:u},r&&(i.dashstyle=r),i},e.prototype.drawPoints=function(){var t,e=this,n=this.chart,r=e.options,i=n.renderer,o=r.animationLimit||250;e.points.forEach((function(a){var s=a.graphic,l=!!s,u=s&&n.pointCountv,"left"===m?c.y-=v?f.height:0:"center"===m?(c.x-=f.width/2,c.y-=f.height/2):"right"===m&&(c.x-=f.width,c.y-=v?0:f.height),e.placed=!0,e.alignAttr=c):(v(r),e.align(n,void 0,r),c=e.alignAttr),y&&0<=r.height?this.justifyDataLabel(e,n,c,f,r,i):d(n.crop,!0)&&(b=a.isInsidePlot(c.x,c.y,{paneCoordinates:!0,series:o})&&a.isInsidePlot(c.x+f.width,c.y+f.height,{paneCoordinates:!0,series:o})),n.shape&&!p&&e[i?"attr":"animate"]({anchorX:s?a.plotWidth-t.plotY:t.plotX,anchorY:s?a.plotHeight-t.plotX:t.plotY})}i&&u&&(e.placed=!1),b||u&&!y||(e.hide(!0),e.placed=!1)}function r(){var t=this,e=t.chart,r=t.options,i=t.points,l=t.hasRendered||0,h=e.renderer,g=r.dataLabels,v=g.animation;if(v=g.defer?o(e,v,t):{defer:0,duration:0},g=m(m(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[t.type]&&e.options.plotOptions[t.type].dataLabels),g),u(this,"drawDataLabels"),c(g)||g.enabled||t._hasPointLabels){var y=t.plotGroup("dataLabelsGroup","data-labels",l?"inherit":"hidden",g.zIndex||6);y.attr({opacity:+l}),!l&&(l=t.dataLabelsGroup)&&(t.visible&&y.show(!0),l[r.animation?"animate":"attr"]({opacity:1},v)),i.forEach((function(i){p(m(g,i.dlOptions||i.options&&i.options.dataLabels)).forEach((function(o,l){var u=o.enabled&&(!i.isNull||i.dataLabelOnNull)&&function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(i,o),c=i.connectors?i.connectors[l]:i.connector,p=i.dataLabels?i.dataLabels[l]:i.dataLabel,m=d(o.distance,i.labelDistance),g=!p;if(u){var v=i.getLabelConfig(),b=d(o[i.formatPrefix+"Format"],o.format);v=s(b)?a(b,v,e):(o[i.formatPrefix+"Formatter"]||o.formatter).call(v,o),b=o.style;var x=o.rotation;e.styledMode||(b.color=d(o.color,b.color,t.color,n.neutralColor100),"contrast"===b.color?(i.contrastColor=h.getContrast(i.color||t.color),b.color=!s(m)&&o.inside||0>m||r.stacking?i.contrastColor:n.neutralColor100):delete i.contrastColor,r.cursor&&(b.cursor=r.cursor));var w={r:o.borderRadius||0,rotation:x,padding:o.padding,zIndex:1};e.styledMode||(w.fill=o.backgroundColor,w.stroke=o.borderColor,w["stroke-width"]=o.borderWidth),f(w,(function(t,e){"undefined"===typeof t&&delete w[e]}))}!p||u&&s(v)?u&&s(v)&&(p?w.text=v:(i.dataLabels=i.dataLabels||[],p=i.dataLabels[l]=x?h.text(v,0,-9999,o.useHTML).addClass("highcharts-data-label"):h.label(v,0,-9999,o.shape,null,null,o.useHTML,null,"data-label"),l||(i.dataLabel=p),p.addClass(" highcharts-data-label-color-"+i.colorIndex+" "+(o.className||"")+(o.useHTML?" highcharts-tracker":""))),p.options=o,p.attr(w),e.styledMode||p.css(b).shadow(o.shadow),p.added||p.add(y),o.textPath&&!o.useHTML&&(p.setTextPath(i.getDataLabelPath&&i.getDataLabelPath(p)||i.graphic,o.textPath),i.dataLabelPath&&!o.textPath.enabled&&(i.dataLabelPath=i.dataLabelPath.destroy())),t.alignDataLabel(i,p,o,null,g)):(i.dataLabel=i.dataLabel&&i.dataLabel.destroy(),i.dataLabels&&(1===i.dataLabels.length?delete i.dataLabels:delete i.dataLabels[l]),l||delete i.dataLabel,c&&(i.connector=i.connector.destroy(),i.connectors&&(1===i.connectors.length?delete i.connectors:delete i.connectors[l])))}))}))}u(this,"afterDrawDataLabels")}function i(t,e,n,r,i,o){var a=this.chart,s=e.align,l=e.verticalAlign,u=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var h=e.y;h=void 0===h?0:h;var f=(n.x||0)+u;if(0>f){"right"===s&&0<=c?(e.align="left",e.inside=!0):c-=f;var d=!0}return(f=(n.x||0)+r.width-u)>a.plotWidth&&("left"===s&&0>=c?(e.align="right",e.inside=!0):c+=a.plotWidth-f,d=!0),0>(f=n.y+u)&&("bottom"===l&&0<=h?(e.verticalAlign="top",e.inside=!0):h-=f,d=!0),(f=(n.y||0)+r.height-u)>a.plotHeight&&("top"===l&&0>=h?(e.verticalAlign="bottom",e.inside=!0):h+=a.plotHeight-f,d=!0),d&&(e.x=c,e.y=h,t.placed=!o,t.align(e,void 0,i)),d}function m(t,e){var n,r=[];if(c(t)&&!c(e))r=t.map((function(t){return h(t,e)}));else if(c(e)&&!c(t))r=e.map((function(e){return h(t,e)}));else if(c(t)||c(e))for(n=Math.max(t.length,e.length);n--;)r[n]=h(t[n],e[n]);else r=h(t,e);return r}function g(t,e,n,r,i){var o=this.chart,a=o.inverted,s=this.xAxis,l=s.reversed,u=a?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,e.startXPos=a?i.x:l?-u-t:s.width-u+t,e.startYPos=a?l?this.yAxis.height-u+t:-u-t:i.y,r?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),o.hasRendered&&(n&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}var v=[];t.compose=function(t){if(-1===v.indexOf(t)){var n=t.prototype;v.push(t),n.alignDataLabel=e,n.drawDataLabels=r,n.justifyDataLabel=i,n.setDataLabelStartPos=g}}}(i||(i={})),i})),e(n,"Series/Column/ColumnDataLabel.js",[n["Core/Series/DataLabel.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var r,i=e.series,o=n.merge,a=n.pick;return function(e){function n(t,e,n,r,s){var l=this.chart.inverted,u=t.series,c=t.dlBox||t.shapeArgs,h=a(t.below,t.plotY>a(this.translatedThreshold,u.yAxis.len)),f=a(n.inside,!!this.options.stacking);c&&(0>(r=o(c)).y&&(r.height+=r.y,r.y=0),0<(c=r.y+r.height-u.yAxis.len)&&c\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}),n}(e),a(r.prototype,{drawTracker:t.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),o(r,"afterTranslate",(function(){this.applyJitter()})),n.registerSeriesType("scatter",r),r})),e(n,"Mixins/CenteredSeries.js",[n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=n.isNumber,i=n.pick,o=n.relativeLength,a=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var t=this.options,n=this.chart,r=2*(t.slicedOffset||0),a=n.plotWidth-2*r,s=n.plotHeight-2*r,l=t.center,u=Math.min(a,s),c=t.size,h=t.innerSize||0;for("string"===typeof c&&(c=parseFloat(c)),"string"===typeof h&&(h=parseFloat(h)),t=[i(l[0],"50%"),i(l[1],"50%"),i(c&&0>c?void 0:t.size,"100%"),i(h&&0>h?void 0:t.innerSize||0,"0%")],!n.angular||this instanceof e||(t[3]=0),l=0;4>l;++l)c=t[l],n=2>l||2===l&&/%$/.test(c),t[l]=o(c,[a,s,u,t[2]][l])+(n?r:0);return t[3]>t[2]&&(t[3]=t[2]),t},getStartAndEndRadians:function(t,e){return t=r(t)?t:0,e=r(e)&&e>t&&360>e-t?e:t+360,{start:a*(t+-90),end:a*(e+-90)}}}})),e(n,"Series/Pie/PiePoint.js",[n["Core/Animation/AnimationUtilities.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=t.setAnimation,o=n.addEvent,a=n.defined;t=n.extend;var s=n.isNumber,l=n.pick,u=n.relativeLength;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.labelDistance=void 0,e.options=void 0,e.series=void 0,e}return r(e,t),e.prototype.getConnectorPath=function(){var t=this.labelPosition,e=this.series.options.dataLabels,n=this.connectorShapes,r=e.connectorShape;return n[r]&&(r=n[r]),r.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)},e.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},e.prototype.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:e.r-1,start:e.start,end:e.end})},e.prototype.init=function(){var e=this;t.prototype.init.apply(this,arguments),this.name=l(this.name,"Slice");var n=function(t){e.slice("select"===t.type)};return o(this,"select",n),o(this,"unselect",n),this},e.prototype.isValid=function(){return s(this.y)&&0<=this.y},e.prototype.setVisible=function(t,e){var n=this,r=this.series,i=r.chart,o=r.options.ignoreHiddenPoint;e=l(e,o),t!==this.visible&&(this.visible=this.options.visible=t="undefined"===typeof t?!this.visible:t,r.options.data[r.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){n[e]&&n[e][t?"show":"hide"](t)})),this.legendItem&&i.legend.colorizeItem(this,t),t||"hover"!==this.state||this.setState(""),o&&(r.isDirty=!0),e&&i.redraw())},e.prototype.slice=function(t,e,n){var r=this.series;i(n,r.chart),l(e,!0),this.sliced=this.options.sliced=a(t)?t:!this.sliced,r.options.data[r.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},e}(e),t(e.prototype,{connectorShapes:{fixedOffset:function(t,e,n){var r=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],n.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*r.x-e.x,2*r.y-e.y,r.x,r.y]:["L",r.x,r.y],["L",e.x,e.y]]},straight:function(t,e){return e=e.touchingSliceAt,[["M",t.x,t.y],["L",e.x,e.y]]},crookedLine:function(t,e,n){e=e.touchingSliceAt;var r=this.series,i=r.center[0],o=r.chart.plotWidth,a=r.chart.plotLeft;r=t.alignment;var s=this.shapeArgs.r;return n=u(n.crookDistance,1),n=["L",o="left"===r?i+s+(o+a-i-s)*(1-n):a+(i-s)*n,t.y],i=!0,("left"===r?o>t.x||oe.x)&&(i=!1),t=[["M",t.x,t.y]],i&&t.push(n),t.push(["L",e.x,e.y]),t}}}),e})),e(n,"Series/Pie/PieSeries.js",[n["Mixins/CenteredSeries.js"],n["Series/Column/ColumnSeries.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Color/Palette.js"],n["Series/Pie/PiePoint.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/Symbols.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s,l,u){var c=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=t.getStartAndEndRadians;n=n.noop;var f=u.clamp,d=u.extend,p=u.fireEvent,m=u.merge,g=u.pick,v=u.relativeLength;return u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.center=void 0,e.data=void 0,e.maxLabelDistance=void 0,e.options=void 0,e.points=void 0,e}return c(e,t),e.prototype.animate=function(t){var e=this,n=e.points,r=e.startAngleRad;t||n.forEach((function(t){var n=t.graphic,i=t.shapeArgs;n&&i&&(n.attr({r:g(t.startR,e.center&&e.center[3]/2),start:r,end:r}),n.animate({r:i.r,start:i.start,end:i.end},e.options.animation))}))},e.prototype.drawEmpty=function(){var t=this.startAngleRad,e=this.endAngleRad,n=this.options;if(0===this.total&&this.center){var r=this.center[0],o=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(r,o,this.center[1]/2,0,t,e).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:l.arc(r,o,this.center[2]/2,0,{start:t,end:e,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||i.neutralColor20})}else this.graph&&(this.graph=this.graph.destroy())},e.prototype.drawPoints=function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},e.prototype.generatePoints=function(){t.prototype.generatePoints.call(this),this.updateTotals()},e.prototype.getX=function(t,e,n){var r=this.center,i=this.radii?this.radii[n.index]||0:r[2]/2;return t=Math.asin(f((t-r[1])/(i+n.labelDistance),-1,1)),r[0]+(e?-1:1)*Math.cos(t)*(i+n.labelDistance)+(01.5*Math.PI?m-=2*Math.PI:m<-Math.PI/2&&(m+=2*Math.PI),f.slicedTranslation={translateX:Math.round(Math.cos(m)*n),translateY:Math.round(Math.sin(m)*n)},y=Math.cos(m)*t[2]/2;var b=Math.sin(m)*t[2]/2;f.tooltipPos=[t[0]+.7*y,t[1]+.7*b],f.half=m<-Math.PI/2||m>Math.PI/2?1:0,f.angle=m,d=Math.min(r,f.labelDistance/5),f.labelPosition={natural:{x:t[0]+y+Math.cos(m)*f.labelDistance,y:t[1]+b+Math.sin(m)*f.labelDistance},final:{},alignment:0>f.labelDistance?"center":f.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+y+Math.cos(m)*d,y:t[1]+b+Math.sin(m)*d},touchingSliceAt:{x:t[0]+y,y:t[1]+b}}}}p(this,"afterTranslate")},e.prototype.updateTotals=function(){var t,e=this.points,n=e.length,r=this.options.ignoreHiddenPoint,i=0;for(t=0;tM&&(t.dataLabel.css({width:Math.round(.7*M)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),P.forEach((function(e,n){var r,u=e.length,c=[];if(u){if(b.sortByAngle(e,n-.5),0_-C&&0===n&&(d=Math.round(h+o-_+C),N[1]=Math.max(d,N[1])),0>m-s/2?N[0]=Math.max(Math.round(s/2-m),N[0]):m+s/2>k&&(N[2]=Math.max(Math.round(m+s/2-k),N[2])),i.sideOverflow=d)}}})),0===c(N)||this.verifyDataLabelOverflow(N))&&(this.placeDataLabels(),this.points.forEach((function(t){var o;y=d(S,t.options.dataLabels),(e=p(y.connectorWidth,1))&&(r=t.connector,(i=t.dataLabel)&&i._pos&&t.visible&&0e.bottom-2?r:n,e.half,e)},justify:function(t,e,n){return n[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,n,r){return t=t.getBBox().width,e?t+r:n-t-r},alignToConnectors:function(t,e,n,r){var i,o=0;return t.forEach((function(t){(i=t.dataLabel.getBBox().width)>o&&(o=i)})),e?o+r:n-o-r}};e.compose=function(e){t.compose(u),-1===a.indexOf(e)&&(a.push(e),(e=e.prototype).dataLabelPositioners=g,e.alignDataLabel=s,e.drawDataLabels=r,e.placeDataLabels=i,e.verifyDataLabelOverflow=o)}}(a||(a={})),a})),e(n,"Extensions/OverlappingDataLabels.js",[n["Core/Chart/Chart.js"],n["Core/Utilities.js"]],(function(t,e){function n(t,e){var n=!1;if(t){var r=t.newOpacity;t.oldOpacity!==r&&(t.alignAttr&&t.placed?(t[r?"removeClass":"addClass"]("highcharts-data-label-hidden"),n=!0,t.alignAttr.opacity=r,t[t.isOld?"animate":"attr"](t.alignAttr,null,(function(){e.styledMode||t.css({pointerEvents:r?"auto":"none"})})),i(e,"afterHideOverlappingLabel")):t.attr({opacity:r})),t.isOld=!0}return n}var r=e.addEvent,i=e.fireEvent,o=e.isArray,a=e.isNumber,s=e.objectEach,l=e.pick;r(t,"render",(function(){var t=this,e=[];(this.labelCollectors||[]).forEach((function(t){e=e.concat(t())})),(this.yAxis||[]).forEach((function(t){t.stacking&&t.options.stackLabels&&!t.options.stackLabels.allowOverlap&&s(t.stacking.stacks,(function(t){s(t,(function(t){t.label&&"hidden"!==t.label.visibility&&e.push(t.label)}))}))})),(this.series||[]).forEach((function(r){var i=r.options.dataLabels;r.visible&&(!1!==i.enabled||r._hasPointLabels)&&(i=function(r){return r.forEach((function(r){r.visible&&(o(r.dataLabels)?r.dataLabels:r.dataLabel?[r.dataLabel]:[]).forEach((function(i){var o=i.options;i.labelrank=l(o.labelrank,r.labelrank,r.shapeArgs&&r.shapeArgs.height),o.allowOverlap?(i.oldOpacity=i.opacity,i.newOpacity=1,n(i,t)):e.push(i)}))}))},i(r.nodes||[]),i(r.points))})),this.hideOverlappingLabels(e)})),t.prototype.hideOverlappingLabels=function(t){var e,r,o,s=this,l=t.length,u=s.renderer,c=!1,h=function(t){var e,n,r=t.box?0:t.padding||0,i=e=0;if(t&&(!t.alignAttr||t.placed)){var o=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},s=t.parentGroup;t.width||(e=t.getBBox(),t.width=e.width,t.height=e.height,e=u.fontMetrics(null,t.element).h);var l=t.width-2*r;return(n={left:"0",center:"0.5",right:"1"}[t.alignValue])?i=+n*l:a(t.x)&&Math.round(t.x)!==t.translateX&&(i=t.x-t.translateX),{x:o.x+(s.translateX||0)+r-(i||0),y:o.y+(s.translateY||0)+r-e,width:t.width-2*r,height:t.height-2*r}}};for(r=0;r=f.x+f.width||d.x+d.width<=f.x||d.y>=f.y+f.height||d.y+d.height<=f.y||((h.labelrank=l(n.minWidth,0)&&this.chartHeight>=l(n.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.setResponsive=function(t,e){var n=this,i=this.options.responsive,o=this.currentResponsive,s=[];!e&&i&&i.rules&&i.rules.forEach((function(t){"undefined"===typeof t._id&&(t._id=c()),n.matchResponsiveRule(t,s)}),this),e=a.apply(void 0,s.map((function(t){return r((i||{}).rules||[],(function(e){return e._id===t}))})).map((function(t){return t&&t.chartOptions}))),e.isResponsiveOptions=!0,(s=s.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),s?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:s,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t}()}(e||(e={})),e})),e(n,"masters/highcharts.src.js",[n["Core/Globals.js"],n["Core/Utilities.js"],n["Core/DefaultOptions.js"],n["Core/Animation/Fx.js"],n["Core/Animation/AnimationUtilities.js"],n["Core/Renderer/HTML/AST.js"],n["Core/FormatUtilities.js"],n["Core/Renderer/RendererUtilities.js"],n["Core/Renderer/SVG/SVGElement.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Renderer/HTML/HTMLElement.js"],n["Core/Renderer/HTML/HTMLRenderer.js"],n["Core/Axis/Axis.js"],n["Core/Axis/DateTimeAxis.js"],n["Core/Axis/LogarithmicAxis.js"],n["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],n["Core/Axis/Tick.js"],n["Core/Tooltip.js"],n["Core/Series/Point.js"],n["Core/Pointer.js"],n["Core/MSPointer.js"],n["Core/Legend/Legend.js"],n["Core/Chart/Chart.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Series/Column/ColumnSeries.js"],n["Series/Column/ColumnDataLabel.js"],n["Series/Pie/PieSeries.js"],n["Series/Pie/PieDataLabel.js"],n["Core/Series/DataLabel.js"],n["Core/Responsive.js"],n["Core/Color/Color.js"],n["Core/Time.js"]],(function(t,e,n,r,i,o,a,s,l,u,c,h,f,d,p,m,g,v,y,b,x,w,S,C,_,k,E,M,T,A,O,P,N){return t.animate=i.animate,t.animObject=i.animObject,t.getDeferredAnimation=i.getDeferredAnimation,t.setAnimation=i.setAnimation,t.stop=i.stop,t.timers=r.timers,t.AST=o,t.Axis=f,t.Chart=S,t.chart=S.chart,t.Fx=r,t.Legend=w,t.PlotLineOrBand=m,t.Point=y,t.Pointer=x.isRequired()?x:b,t.Series=C,t.SVGElement=l,t.SVGRenderer=u,t.Tick=g,t.Time=N,t.Tooltip=v,t.Color=P,t.color=P.parse,h.compose(u),c.compose(l),t.defaultOptions=n.defaultOptions,t.getOptions=n.getOptions,t.time=n.defaultTime,t.setOptions=n.setOptions,t.dateFormat=a.dateFormat,t.format=a.format,t.numberFormat=a.numberFormat,t.addEvent=e.addEvent,t.arrayMax=e.arrayMax,t.arrayMin=e.arrayMin,t.attr=e.attr,t.clearTimeout=e.clearTimeout,t.correctFloat=e.correctFloat,t.createElement=e.createElement,t.css=e.css,t.defined=e.defined,t.destroyObjectProperties=e.destroyObjectProperties,t.discardElement=e.discardElement,t.distribute=s.distribute,t.erase=e.erase,t.error=e.error,t.extend=e.extend,t.extendClass=e.extendClass,t.find=e.find,t.fireEvent=e.fireEvent,t.getMagnitude=e.getMagnitude,t.getStyle=e.getStyle,t.inArray=e.inArray,t.isArray=e.isArray,t.isClass=e.isClass,t.isDOMElement=e.isDOMElement,t.isFunction=e.isFunction,t.isNumber=e.isNumber,t.isObject=e.isObject,t.isString=e.isString,t.keys=e.keys,t.merge=e.merge,t.normalizeTickInterval=e.normalizeTickInterval,t.objectEach=e.objectEach,t.offset=e.offset,t.pad=e.pad,t.pick=e.pick,t.pInt=e.pInt,t.relativeLength=e.relativeLength,t.removeEvent=e.removeEvent,t.seriesType=_.seriesType,t.splat=e.splat,t.stableSort=e.stableSort,t.syncTimeout=e.syncTimeout,t.timeUnits=e.timeUnits,t.uniqueKey=e.uniqueKey,t.useSerialIds=e.useSerialIds,t.wrap=e.wrap,E.compose(k),A.compose(C),d.compose(f),p.compose(f),T.compose(M),m.compose(f),O.compose(S),t})),e(n,"Core/Axis/MapAxis.js",[n["Core/Axis/Axis.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.addEvent,r=e.pick,i=function(t){this.axis=t};return e=function(){function t(){}return t.compose=function(t){t.keepProps.push("mapAxis"),n(t,"init",(function(){this.mapAxis||(this.mapAxis=new i(this))})),n(t,"getSeriesExtremes",(function(){if(this.mapAxis){var t=[];this.isXAxis&&(this.series.forEach((function(e,n){e.useMapGeometry&&(t[n]=e.xData,e.xData=[])})),this.mapAxis.seriesXData=t)}})),n(t,"afterGetSeriesExtremes",(function(){if(this.mapAxis){var t,e=this.mapAxis.seriesXData||[];if(this.isXAxis){var n=r(this.dataMin,Number.MAX_VALUE),i=r(this.dataMax,-Number.MAX_VALUE);this.series.forEach((function(o,a){o.useMapGeometry&&(n=Math.min(n,r(o.minX,n)),i=Math.max(i,r(o.maxX,i)),o.xData=e[a],t=!0)})),t&&(this.dataMin=n,this.dataMax=i),this.mapAxis.seriesXData=void 0}}})),n(t,"afterSetAxisTranslation",(function(){if(this.mapAxis){var t,e=this.chart,n=e.plotWidth/e.plotHeight;e=e.xAxis[0],"yAxis"===this.coll&&"undefined"!==typeof e.transA&&this.series.forEach((function(e){e.preserveAspectRatio&&(t=!0)})),t&&(this.transA=e.transA=Math.min(this.transA,e.transA),e=((n=1>(n/=(e.max-e.min)/(this.max-this.min))?this:e).max-n.min)*n.transA,n.mapAxis.pixelPadding=n.len-e,n.minPixelPadding=n.mapAxis.pixelPadding/2,e=n.mapAxis.fixTo)&&(e=e[1]-n.toValue(e[0],!0),e*=n.transA,(Math.abs(e)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)&&(e=0),n.minPixelPadding-=e)}})),n(t,"render",(function(){this.mapAxis&&(this.mapAxis.fixTo=void 0)}))},t}(),e.compose(t),e})),e(n,"Mixins/ColorSeries.js",[],(function(){return{colorPointMixin:{setVisible:function(t){var e=this,n=t?"show":"hide";e.visible=e.options.visible=!!t,["graphic","dataLabel"].forEach((function(t){e[t]&&e[t][n]()})),this.series.buildKDTree()}},colorSeriesMixin:{optionalAxis:"colorAxis",translateColors:function(){var t=this,e=this.options.nullColor,n=this.colorAxis,r=this.colorKey;(this.data.length?this.data:this.points).forEach((function(i){var o=i.getNestedProperty(r);(o=i.options.color||(i.isNull||null===i.value?e:n&&"undefined"!==typeof o?n.toColor(o,i):i.color||t.color))&&i.color!==o&&(i.color=o,"point"===t.options.legendType&&i.legendItem&&t.chart.legend.colorizeItem(i,i.visible))}))}}}})),e(n,"Core/Axis/Color/ColorAxisComposition.js",[n["Core/Color/Color.js"],n["Mixins/ColorSeries.js"],n["Core/Utilities.js"]],(function(t,e,n){var r,i=t.parse,o=e.colorPointMixin,a=e.colorSeriesMixin,s=n.addEvent,l=n.extend,u=n.merge,c=n.pick,h=n.splat;return function(t){function e(){var t=this,e=this.options;this.colorAxis=[],e.colorAxis&&(e.colorAxis=h(e.colorAxis),e.colorAxis.forEach((function(e,n){e.index=n,new y(t,e)})))}function n(t){var e,n,r=this,i=function(e){-1!==(e=t.allItems.indexOf(e))&&(r.destroyItem(t.allItems[e]),t.allItems.splice(e,1))},o=[];for((this.chart.colorAxis||[]).forEach((function(t){(e=t.options)&&e.showInLegend&&(e.dataClasses&&e.visible?o=o.concat(t.getDataClassLegendSymbols()):e.visible&&o.push(t),t.series.forEach((function(t){t.options.showInLegend&&!e.dataClasses||("point"===t.options.legendType?t.points.forEach((function(t){i(t)})):i(t))})))})),n=o.length;n--;)t.allItems.unshift(o[n])}function r(t){t.visible&&t.item.legendColor&&t.item.legendSymbol.attr({fill:t.item.legendColor})}function f(){var t=this.chart.colorAxis;t&&t.forEach((function(t,e,n){t.update({},n)}))}function d(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function p(){var t=this.axisTypes;t?-1===t.indexOf("colorAxis")&&t.push("colorAxis"):this.axisTypes=["colorAxis"]}function m(t){var e=t.prototype.createAxis;t.prototype.createAxis=function(t,n){if("colorAxis"!==t)return e.apply(this,arguments);var r=new y(this,u(n.axis,{index:this[t].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach((function(t){t.series=[]})),this.series.forEach((function(t){t.bindAxes(),t.isDirtyData=!0})),c(n.redraw,!0)&&this.redraw(n.animation),r}}function g(){this.elem.attr("fill",i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)}function v(){this.elem.attr("stroke",i(this.start).tweenTo(i(this.end),this.pos),void 0,!0)}var y,b=[];t.compose=function(t,i,u,c,h){y||(y=t),-1===b.indexOf(i)&&(b.push(i),(t=i.prototype).collectionsWithUpdate.push("colorAxis"),t.collectionsWithInit.colorAxis=[t.addColorAxis],s(i,"afterGetAxes",e),m(i)),-1===b.indexOf(u)&&(b.push(u),(i=u.prototype).fillSetter=g,i.strokeSetter=v),-1===b.indexOf(c)&&(b.push(c),s(c,"afterGetAllItems",n),s(c,"afterColorizeItem",r),s(c,"afterUpdate",f)),-1===b.indexOf(h)&&(b.push(h),l(h.prototype,a),l(h.prototype.pointClass.prototype,o),s(h,"afterTranslate",d),s(h,"bindAxes",p))}}(r||(r={})),r})),e(n,"Core/Axis/Color/ColorAxisDefaults.js",[n["Core/Color/Palette.js"]],(function(t){return{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:t.neutralColor40},labels:{overflow:"justify",rotation:0},minColor:t.highlightColor10,maxColor:t.highlightColor100,tickLength:5,showInLegend:!0}})),e(n,"Core/Axis/Color/ColorAxis.js",[n["Core/Axis/Axis.js"],n["Core/Color/Color.js"],n["Core/Axis/Color/ColorAxisComposition.js"],n["Core/Axis/Color/ColorAxisDefaults.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s){var l=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=e.parse,c=i.noop,h=a.series,f=s.extend,d=s.isNumber,p=s.merge,m=s.pick;return e=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.beforePadding=!1,r.chart=void 0,r.coll="colorAxis",r.dataClasses=void 0,r.legendItem=void 0,r.legendItems=void 0,r.name="",r.options=void 0,r.stops=void 0,r.visible=!0,r.init(e,n),r}return l(e,t),e.compose=function(t,r,i,o){n.compose(e,t,r,i,o)},e.prototype.init=function(n,r){var i=n.options.legend||{},o=r.layout?"vertical"!==r.layout:"vertical"!==i.layout,a=r.visible;i=p(e.defaultColorAxisOptions,r,{showEmpty:!1,title:null,visible:i.enabled&&!1!==a}),this.coll="colorAxis",this.side=r.side||o?2:1,this.reversed=r.reversed||!o,this.opposite=!o,t.prototype.init.call(this,n,i),this.userOptions.visible=a,r.dataClasses&&this.initDataClasses(r),this.initStops(),this.horiz=o,this.zoomEnabled=!1},e.prototype.initDataClasses=function(t){var e,n=this.chart,r=this.options,i=t.dataClasses.length,o=0,a=n.options.chart.colorCount;this.dataClasses=e=[],this.legendItems=[],(t.dataClasses||[]).forEach((function(t,s){t=p(t),e.push(t),!n.styledMode&&t.color||("category"===r.dataClassColor?(n.styledMode||(s=n.options.colors,a=s.length,t.color=s[o]),t.colorIndex=o,++o===a&&(o=0)):t.color=u(r.minColor).tweenTo(u(r.maxColor),2>i?.5:s/(i-1)))}))},e.prototype.hasData=function(){return!!(this.tickPositions||[]).length},e.prototype.setTickPositions=function(){if(!this.dataClasses)return t.prototype.setTickPositions.call(this)},e.prototype.initStops=function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]],this.stops.forEach((function(t){t.color=u(t[1])}))},e.prototype.setOptions=function(e){t.prototype.setOptions.call(this,e),this.options.crosshair=this.options.marker},e.prototype.setAxisSize=function(){var t,n,r=this.legendSymbol,i=this.chart,o=i.options.legend||{};r?(this.left=o=r.attr("x"),this.top=t=r.attr("y"),this.width=n=r.attr("width"),this.height=r=r.attr("height"),this.right=i.chartWidth-o-n,this.bottom=i.chartHeight-t-r,this.len=this.horiz?n:r,this.pos=this.horiz?o:t):this.len=(this.horiz?o.symbolWidth:o.symbolHeight)||e.defaultLegendLength},e.prototype.normalizedValue=function(t){return this.logarithmic&&(t=this.logarithmic.log2lin(t)),1-(this.max-t)/(this.max-this.min||1)},e.prototype.toColor=function(t,e){var n,r=this.dataClasses,i=this.stops;if(r)for(n=r.length;n--;){var o=r[n],a=o.from;if(i=o.to,("undefined"===typeof a||t>=a)&&("undefined"===typeof i||t<=i)){var s=o.color;e&&(e.dataClass=n,e.colorIndex=o.colorIndex);break}}else{for(t=this.normalizedValue(t),n=i.length;n--&&!(t>i[n][0]););a=i[n]||i[n+1],t=1-((i=i[n+1]||a)[0]-t)/(i[0]-a[0]||1),s=a.color.tweenTo(i.color,t)}return s},e.prototype.getOffset=function(){var e=this.legendGroup,n=this.chart.axisOffset[this.side];e&&(this.axisParent=e,t.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=n)},e.prototype.setLegendColor=function(){var t=this.reversed,e=t?1:0;t=t?0:1,e=this.horiz?[e,0,t,0]:[0,t,0,e],this.legendColor={linearGradient:{x1:e[0],y1:e[1],x2:e[2],y2:e[3]},stops:this.stops}},e.prototype.drawLegendSymbol=function(t,n){var r=t.padding,i=t.options,o=this.horiz,a=m(i.symbolWidth,o?e.defaultLegendLength:12),s=m(i.symbolHeight,o?12:e.defaultLegendLength),l=m(i.labelPadding,o?16:30);i=m(i.itemDistance,10),this.setLegendColor(),n.legendSymbol=this.chart.renderer.rect(0,t.baseline-11,a,s).attr({zIndex:1}).add(n.legendGroup),this.legendItemWidth=a+r+(o?i:l),this.legendItemHeight=s+r+(o?l:0)},e.prototype.setState=function(t){this.series.forEach((function(e){e.setState(t)}))},e.prototype.setVisible=function(){},e.prototype.getSeriesExtremes=function(){var t,e=this.series,n=e.length;for(this.dataMin=1/0,this.dataMax=-1/0;n--;){var r=e[n],i=r.colorKey=m(r.options.colorKey,r.colorKey,r.pointValKey,r.zoneAxis,"y"),o=r.pointArrayMap,a=r[i+"Min"]&&r[i+"Max"];if(r[i+"Data"])var s=r[i+"Data"];else if(o){s=[],o=o.indexOf(i);var l=r.yData;if(0<=o&&l)for(t=0;to+a&&(s=o+a+2),n.plotX=s,n.plotY=this.len-s,t.prototype.drawCrosshair.call(this,e,n),n.plotX=r,n.plotY=i,this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||"object"!==typeof this.crosshair||this.cross.attr({fill:this.crosshair.color}))}},e.prototype.getPlotLinePath=function(e){var n=this.left,r=e.translatedValue,i=this.top;return d(r)?this.horiz?[["M",r-4,i-6],["L",r+4,i-6],["L",r,i],["Z"]]:[["M",n,r],["L",n-6,r+6],["L",n-6,r-6],["Z"]]:t.prototype.getPlotLinePath.call(this,e)},e.prototype.update=function(e,n){var r=this.chart.legend;this.series.forEach((function(t){t.isDirtyData=!0})),(e.dataClasses&&r.allItems||this.dataClasses)&&this.destroyItems(),t.prototype.update.call(this,e,n),this.legendItem&&(this.setLegendColor(),r.colorizeItem(this,!0))},e.prototype.destroyItems=function(){var t=this.chart;this.legendItem?t.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach((function(e){t.legend.destroyItem(e)})),t.isDirtyLegend=!0},e.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),t.prototype.destroy.apply(this,[].slice.call(arguments))},e.prototype.remove=function(e){this.destroyItems(),t.prototype.remove.call(this,e)},e.prototype.getDataClassLegendSymbols=function(){var t,e=this,n=e.chart,r=e.legendItems,i=n.options.legend,a=i.valueDecimals,s=i.valueSuffix||"";return r.length||e.dataClasses.forEach((function(i,l){var u=i.from,h=i.to,d=n.numberFormatter,p=!0;t="","undefined"===typeof u?t="< ":"undefined"===typeof h&&(t="> "),"undefined"!==typeof u&&(t+=d(u,a)+s),"undefined"!==typeof u&&"undefined"!==typeof h&&(t+=" - "),"undefined"!==typeof h&&(t+=d(h,a)+s),r.push(f({chart:n,name:t,options:{},drawLegendSymbol:o.drawRectangle,visible:!0,setState:c,isDataClass:!0,setVisible:function(){p=e.visible=!p,e.series.forEach((function(t){t.points.forEach((function(t){t.dataClass===l&&t.setVisible(p)}))})),n.legend.colorizeItem(this,p)}},i))})),r},e.defaultColorAxisOptions=r,e.defaultLegendLength=200,e.keepProps=["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"],e}(t),Array.prototype.push.apply(t.keepProps,e.keepProps),e})),e(n,"Mixins/ColorMapSeries.js",[n["Core/Globals.js"],n["Core/Series/Point.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=n.defined;n=n.addEvent;var i=t.noop;return t=t.seriesTypes,n(e,"afterSetState",(function(t){this.moveToTopOnHover&&this.graphic&&this.graphic.attr({zIndex:t&&"hover"===t.state?1:0})})),{colorMapPointMixin:{dataLabelOnNull:!0,moveToTopOnHover:!0,isValid:function(){return null!==this.value&&1/0!==this.value&&-1/0!==this.value}},colorMapSeriesMixin:{pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:i,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:t.column.prototype.pointAttribs,colorAttribs:function(t){var e={};return!r(t.color)||t.state&&"normal"!==t.state||(e[this.colorProp||"fill"]=t.color),e}}}})),e(n,"Maps/MapNavigationOptionsDefault.js",[n["Core/DefaultOptions.js"],n["Core/Utilities.js"]],(function(t,e){return(e=e.extend)(t.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),t.defaultOptions.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,padding:5,style:{fontSize:"15px",fontWeight:"bold"},theme:{"stroke-width":1,"text-align":"center"}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}},mouseWheelSensitivity:1.1}})),e(n,"Maps/MapNavigation.js",[n["Core/Chart/Chart.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n){function r(t){t&&(t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)}function i(t){this.init(t)}var o=e.doc,a=n.addEvent,s=n.extend,l=n.merge,u=n.objectEach,c=n.pick;i.prototype.init=function(t){this.chart=t,t.mapNavButtons=[]},i.prototype.update=function(t){var e,n,i,o,h=this.chart,f=h.options.mapNavigation,d=function(t){this.handler.call(h,t),r(t)},p=h.mapNavButtons;for(t&&(f=h.options.mapNavigation=l(h.options.mapNavigation,t));p.length;)p.pop().destroy();c(f.enableButtons,f.enabled)&&!h.renderer.forExport&&u(f.buttons,(function(t,u){t=l(f.buttonOptions,t),!h.styledMode&&t.theme&&((e=t.theme).style=l(t.theme.style,t.style),i=(n=e.states)&&n.hover,o=n&&n.select,delete e.states);var c=h.renderer.button(t.text||"",0,0,d,e,i,o,void 0,"zoomIn"===u?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[u]).attr({width:t.width,height:t.height,title:h.options.lang[u],padding:t.padding,zIndex:5}).add();if(c.handler=t.onclick,a(c.element,"dblclick",r),p.push(c),s(t,{width:c.width,height:2*c.height}),h.hasLoaded)c.align(t,!1,t.alignTo);else var m=a(h,"load",(function(){c.element&&c.align(t,!1,t.alignTo),m()}))})),this.updateEvents(f)},i.prototype.updateEvents=function(t){var e=this.chart;c(t.enableDoubleClickZoom,t.enabled)||t.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||a(e.container,"dblclick",(function(t){e.pointer.onContainerDblClick(t)})):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),c(t.enableMouseWheelZoom,t.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||a(e.container,void 0!==o.onwheel?"wheel":void 0!==o.onmousewheel?"mousewheel":"DOMMouseScroll",(function(t){return e.pointer.inClass(t.target,"highcharts-no-mousewheel")||(e.pointer.onContainerMouseWheel(t),r(t)),!1})):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},s(t.prototype,{fitToBox:function(t,e){return[["x","width"],["y","height"]].forEach((function(n){var r=n[0];n=n[1],t[r]+t[n]>e[r]+e[n]&&(t[n]>e[n]?(t[n]=e[n],t[r]=e[r]):t[r]=e[r]+e[n]-t[n]),t[n]>e[n]&&(t[n]=e[n]),t[r]=a.dataMax-a.dataMin&&l.y<=s.dataMin&&l.height>=s.dataMax-s.dataMin,r&&a.mapAxis&&(a.mapAxis.fixTo=[r-a.pos,e]),i&&s.mapAxis&&(s.mapAxis.fixTo=[i-s.pos,n]),"undefined"===typeof t||u?(a.setExtremes(void 0,void 0,!1),s.setExtremes(void 0,void 0,!1)):(a.setExtremes(l.x,l.x+l.width,!1),s.setExtremes(l.y,l.y+l.height,!1)),this.redraw(o)}}),a(t,"beforeRender",(function(){this.mapNavigation=new i(this),this.mapNavigation.update()})),e.MapNavigation=i})),e(n,"Maps/MapPointer.js",[n["Core/Pointer.js"],n["Core/Utilities.js"]],(function(t,e){var n=e.extend,r=e.pick;e=e.wrap;var i,o=0;n(t.prototype,{onContainerDblClick:function(t){var e=this.chart;t=this.normalize(t),e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(t.target,"highcharts-tracker")&&e.hoverPoint&&e.hoverPoint.zoomTo():e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&e.mapZoom(.5,e.xAxis[0].toValue(t.chartX),e.yAxis[0].toValue(t.chartY),t.chartX,t.chartY)},onContainerMouseWheel:function(t){var e=this.chart,n=(t=this.normalize(t)).deltaY||t.detail||-t.wheelDelta/120;1<=Math.abs(n)&&(o+=Math.abs(n),i&&clearTimeout(i),i=setTimeout((function(){o=0}),50)),10>o&&e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&e.mapZoom(Math.pow(e.options.mapNavigation.mouseWheelSensitivity,n),e.xAxis[0].toValue(t.chartX),e.yAxis[0].toValue(t.chartY),t.chartX,t.chartY,!(1>Math.abs(n))&&void 0)}}),e(t.prototype,"zoomOption",(function(t){var e=this.chart.options.mapNavigation;r(e.enableTouchZoom,e.enabled)&&(this.chart.options.chart.pinchType="xy"),t.apply(this,[].slice.call(arguments,1))})),e(t.prototype,"pinchTranslate",(function(t,e,n,r,i,o,a){t.call(this,e,n,r,i,o,a),"map"===this.chart.options.chart.type&&this.hasZoom&&(t=r.scaleX>r.scaleY,this.pinchTranslateDirection(!t,e,n,r,i,o,a,t?r.scaleX:r.scaleY))}))})),e(n,"Maps/MapSymbols.js",[n["Core/Renderer/SVG/SVGRenderer.js"]],(function(t){function e(t,e,n,r,i,o,a,s){return[["M",t+i,e],["L",t+n-o,e],["C",t+n-o/2,e,t+n,e+o/2,t+n,e+o],["L",t+n,e+r-a],["C",t+n,e+r-a/2,t+n-a/2,e+r,t+n-a,e+r],["L",t+s,e+r],["C",t+s/2,e+r,t,e+r-s/2,t,e+r-s],["L",t,e+i],["C",t,e+i/2,t+i/2,e,t+i,e],["Z"]]}return(t=t.prototype.symbols).bottombutton=function(t,n,r,i,o){return e(t-1,n-1,r,i,0,0,o=o&&o.r||0,o)},t.topbutton=function(t,n,r,i,o){return e(t-1,n-1,r,i,o=o&&o.r||0,o,0,0)},t})),e(n,"Core/Chart/MapChart.js",[n["Core/Chart/Chart.js"],n["Core/DefaultOptions.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=e.getOptions,a=r.merge,s=r.pick;return t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.init=function(e,n){var r={endOnTick:!1,visible:!1,minPadding:0,maxPadding:0,startOnTick:!1},i=o().credits;e=a({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:s(i.mapText,' \xa9 {geojson.copyrightShort}'),mapTextFull:s(i.mapTextFull,"{geojson.copyright}")},tooltip:{followTouchMove:!1},xAxis:r,yAxis:a(r,{reversed:!0})},e,{chart:{inverted:!1,alignTicks:!1}}),t.prototype.init.call(this,e,n)},e}(t),function(t){t.maps={},t.mapChart=function(e,n,r){return new t(e,n,r)},t.splitPath=function(t){return"string"===typeof t&&(t=(t=t.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map((function(t){return/[A-za-z]/.test(t)?t:parseFloat(t)}))),n.prototype.pathToSegments(t)}}(t||(t={})),t})),e(n,"Series/Map/MapPoint.js",[n["Mixins/ColorMapSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();t=t.colorMapPointMixin;var i=n.extend;return e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.path=void 0,e.series=void 0,e}return r(e,t),e.prototype.applyOptions=function(e,n){var r=this.series;return e=t.prototype.applyOptions.call(this,e,n),n=r.joinBy,r.mapData&&r.mapMap&&((n="undefined"!==typeof(n=t.prototype.getNestedProperty.call(e,n[1]))&&r.mapMap[n])?(r.xyFromShape&&(e.x=n._midX,e.y=n._midY),i(e,n)):e.value=e.value||null),e},e.prototype.onMouseOver=function(e){n.clearTimeout(this.colorInterval),null!==this.value||this.series.options.nullInteraction?t.prototype.onMouseOver.call(this,e):this.series.onMouseOut(e)},e.prototype.zoomTo=function(){var t=this.series;t.xAxis.setExtremes(this._minX,this._maxX,!1),t.yAxis.setExtremes(this._minY,this._maxY,!1),t.chart.redraw()},e}(e.seriesTypes.scatter.prototype.pointClass),i(e.prototype,{dataLabelOnNull:t.dataLabelOnNull,isValid:t.isValid,moveToTopOnHover:t.moveToTopOnHover}),e})),e(n,"Series/Map/MapSeries.js",[n["Mixins/ColorMapSeries.js"],n["Core/Globals.js"],n["Core/Legend/LegendSymbol.js"],n["Core/Chart/MapChart.js"],n["Series/Map/MapPoint.js"],n["Core/Color/Palette.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Renderer/SVG/SVGRenderer.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s,l,u){var c=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();t=t.colorMapSeriesMixin;var h=e.noop,f=r.maps,d=r.splitPath,p=(r=s.seriesTypes).column,m=r.scatter;r=u.extend;var g=u.fireEvent,v=u.getNestedProperty,y=u.isArray,b=u.isNumber,x=u.merge,w=u.objectEach,S=u.pick,C=u.splat;return u=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.baseTrans=void 0,e.chart=void 0,e.data=void 0,e.group=void 0,e.joinBy=void 0,e.options=void 0,e.points=void 0,e.transformGroup=void 0,e}return c(n,t),n.prototype.animate=function(t){var e=this.options.animation,n=this.group,r=this.xAxis,i=this.yAxis,o=r.pos,a=i.pos;this.chart.renderer.isSVG&&(!0===e&&(e={duration:1e3}),t?n.attr({translateX:o+r.len/2,translateY:a+i.len/2,scaleX:.001,scaleY:.001}):n.animate({translateX:o,translateY:a,scaleX:1,scaleY:1},e))},n.prototype.animateDrilldown=function(t){var e=this.chart.plotBox,n=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],r=n.bBox,i=this.chart.options.drilldown.animation;t||(t=Math.min(r.width/e.width,r.height/e.height),n.shapeArgs={scaleX:t,scaleY:t,translateX:r.x,translateY:r.y},this.points.forEach((function(t){t.graphic&&t.graphic.attr(n.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},i)})))},n.prototype.animateDrillupFrom=function(t){p.prototype.animateDrillupFrom.call(this,t)},n.prototype.animateDrillupTo=function(t){p.prototype.animateDrillupTo.call(this,t)},n.prototype.doFullTranslate=function(){return this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.baseTrans},n.prototype.drawMapDataLabels=function(){a.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},n.prototype.drawPoints=function(){var t=this,e=t.xAxis,n=t.yAxis,r=t.group,i=t.chart,o=i.renderer,a=this.baseTrans;if(t.transformGroup||(t.transformGroup=o.g().attr({scaleX:1,scaleY:1}).add(r),t.transformGroup.survive=!0),t.doFullTranslate())i.hasRendered&&!i.styledMode&&t.points.forEach((function(e){e.shapeArgs&&(e.shapeArgs.fill=t.pointAttribs(e,e.state).fill)})),t.group=t.transformGroup,p.prototype.drawPoints.apply(t),t.group=r,t.points.forEach((function(e){if(e.graphic){var n="";e.name&&(n+="highcharts-name-"+e.name.replace(/ /g,"-").toLowerCase()),e.properties&&e.properties["hc-key"]&&(n+=" highcharts-key-"+e.properties["hc-key"].toLowerCase()),n&&e.graphic.addClass(n),i.styledMode&&e.graphic.css(t.pointAttribs(e,e.selected?"select":void 0))}})),this.baseTrans={originX:e.min-e.minPixelPadding/e.transA,originY:n.min-n.minPixelPadding/n.transA+(n.reversed?0:n.len/n.transA),transAX:e.transA,transAY:n.transA},this.transformGroup.animate({translateX:0,translateY:0,scaleX:1,scaleY:1});else{var s=e.transA/a.transAX,l=n.transA/a.transAY,u=e.toPixels(a.originX,!0),c=n.toPixels(a.originY,!0);.99s&&.99l&&(l=s=1,u=Math.round(u),c=Math.round(c));var h=this.transformGroup;if(i.renderer.globalAnimation){var f=h.attr("translateX"),d=h.attr("translateY"),m=h.attr("scaleX"),g=h.attr("scaleY");h.attr({animator:0}).animate({animator:1},{step:function(t,e){h.attr({translateX:f+(u-f)*e.pos,translateY:d+(c-d)*e.pos,scaleX:m+(s-m)*e.pos,scaleY:g+(l-g)*e.pos})}})}else h.attr({translateX:u,translateY:c,scaleX:s,scaleY:l})}i.styledMode||r.element.setAttribute("stroke-width",S(t.options[t.pointAttrToOptions&&t.pointAttrToOptions["stroke-width"]||"borderWidth"],1)/(s||1)),this.drawMapDataLabels()},n.prototype.getBox=function(t){var e,n=Number.MAX_VALUE,r=-n,i=n,o=-n,a=n,s=n,u=this.xAxis,c=this.yAxis;(t||[]).forEach((function(t){if(t.path){"string"===typeof t.path?t.path=d(t.path):"M"===t.path[0]&&(t.path=l.prototype.pathToSegments(t.path));var u=t.path||[],c=-n,h=n,f=-n,p=n,m=t.properties;t._foundBox||(u.forEach((function(t){var e=t[t.length-2];t=t[t.length-1],"number"===typeof e&&"number"===typeof t&&(h=Math.min(h,e),c=Math.max(c,e),p=Math.min(p,t),f=Math.max(f,t))})),t._midX=h+(c-h)*S(t.middleX,m&&m["hc-middle-x"],.5),t._midY=p+(f-p)*S(t.middleY,m&&m["hc-middle-y"],.5),t._maxX=c,t._minX=h,t._maxY=f,t._minY=p,t.labelrank=S(t.labelrank,(c-h)*(f-p)),t._foundBox=!0),r=Math.max(r,t._maxX),i=Math.min(i,t._minX),o=Math.max(o,t._maxY),a=Math.min(a,t._minY),s=Math.min(t._maxX-t._minX,t._maxY-t._minY,s),e=!0}})),e&&(this.minY=Math.min(a,S(this.minY,n)),this.maxY=Math.max(o,S(this.maxY,-n)),this.minX=Math.min(i,S(this.minX,n)),this.maxX=Math.max(r,S(this.maxX,-n)),u&&"undefined"===typeof u.options.minRange&&(u.minRange=Math.min(5*s,(this.maxX-this.minX)/5,u.minRange||n)),c&&"undefined"===typeof c.options.minRange&&(c.minRange=Math.min(5*s,(this.maxY-this.minY)/5,c.minRange||n)))},n.prototype.getExtremes=function(){var t=a.prototype.getExtremes.call(this,this.valueData),e=t.dataMin;return t=t.dataMax,this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data),b(e)&&(this.valueMin=e),b(t)&&(this.valueMax=t),{dataMin:this.minY,dataMax:this.maxY}},n.prototype.hasData=function(){return!!this.processedXData.length},n.prototype.pointAttribs=function(t,e){return(e=t.series.chart.styledMode?this.colorAttribs(t):p.prototype.pointAttribs.call(this,t,e))["stroke-width"]=S(t.options[this.pointAttrToOptions&&this.pointAttrToOptions["stroke-width"]||"borderWidth"],"inherit"),e},n.prototype.render=function(){var t=this,e=a.prototype.render;t.chart.renderer.isVML&&3e3d.length&&"string"===typeof e[0]&&(t[n]["hc-key"]=e[0],++r);for(var o=0;o"},turboThreshold:0,allAreas:!0,borderColor:o.neutralColor20,borderWidth:1,joinBy:"hc-key",states:{hover:{halo:null,brightness:.2},normal:{animation:!0},select:{color:o.neutralColor20},inactive:{opacity:1}}}),n}(m),r(u.prototype,{type:"map",axisTypes:t.axisTypes,colorAttribs:t.colorAttribs,colorKey:t.colorKey,directTouch:!0,drawDataLabels:h,drawGraph:h,drawLegendSymbol:n.drawRectangle,forceDL:!0,getExtremesFromAll:!0,getSymbol:t.getSymbol,parallelArrays:t.parallelArrays,pointArrayMap:t.pointArrayMap,pointClass:i,preserveAspectRatio:!0,searchPoint:h,trackerGroups:t.trackerGroups,useMapGeometry:!0}),s.registerSeriesType("map",u),u})),e(n,"Series/MapLine/MapLineSeries.js",[n["Series/Map/MapSeries.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),i=e.series,o=n.extend,a=n.merge;return n=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.data=void 0,t.options=void 0,t.points=void 0,t}return r(n,e),n.prototype.pointAttribs=function(e,n){return(e=t.prototype.pointAttribs.call(this,e,n)).fill=this.options.fillColor,e},n.defaultOptions=a(t.defaultOptions,{lineWidth:1,fillColor:"none"}),n}(t),o(n.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:i.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),e.registerSeriesType("mapline",n),n})),e(n,"Series/MapPoint/MapPointPoint.js",[n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e){var n=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),r=e.merge;return function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.options=void 0,e.series=void 0,e}return n(e,t),e.prototype.applyOptions=function(e,n){return e="undefined"!==typeof e.lat&&"undefined"!==typeof e.lon?r(e,this.series.chart.fromLatLonToPoint(e)):e,t.prototype.applyOptions.call(this,e,n)},e}(t.seriesTypes.scatter.prototype.pointClass)})),e(n,"Series/MapPoint/MapPointSeries.js",[n["Series/MapPoint/MapPointPoint.js"],n["Core/Color/Palette.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),o=n.seriesTypes.scatter,a=r.extend,s=r.merge;return r=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.options=void 0,e.points=void 0,e}return i(n,t),n.prototype.drawDataLabels=function(){t.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},n.defaultOptions=s(o.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:e.neutralColor100}}}),n}(o),a(r.prototype,{type:"mappoint",forceDL:!0,pointClass:t}),n.registerSeriesType("mappoint",r),r})),e(n,"Series/Bubble/BubbleLegendDefaults.js",[n["Core/Color/Palette.js"]],(function(t){return{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:"10px",color:t.neutralColor100},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}})),e(n,"Series/Bubble/BubbleLegendItem.js",[n["Core/Color/Color.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n,r){var i=t.parse,o=n.noop,a=r.arrayMax,s=r.arrayMin,l=r.isNumber,u=r.merge,c=r.pick,h=r.stableSort;return function(){function t(t,e){this.options=this.symbols=this.visible=this.selected=this.ranges=this.movementX=this.maxLabel=this.legendSymbol=this.legendItemWidth=this.legendItemHeight=this.legendItem=this.legendGroup=this.legend=this.fontMetrics=this.chart=void 0,this.setState=o,this.init(t,e)}return t.prototype.init=function(t,e){this.options=t,this.visible=!0,this.chart=e.chart,this.legend=e},t.prototype.addToLegend=function(t){t.splice(this.options.legendIndex,0,this)},t.prototype.drawLegendSymbol=function(t){var e=this.chart,n=this.options,r=c(t.options.itemDistance,20),i=n.ranges,o=n.connectorDistance;this.fontMetrics=e.renderer.fontMetrics(n.labels.style.fontSize),i&&i.length&&l(i[0].value)?(h(i,(function(t,e){return e.value-t.value})),this.ranges=i,this.setOptions(),this.render(),t=this.getMaxLabelSize(),e=2*(i=this.ranges[0].radius),o=0<(o=o-i+t.width)?o:0,this.maxLabel=t,this.movementX="left"===n.labels.align?o:0,this.legendItemWidth=e+o+r,this.legendItemHeight=e+this.fontMetrics.h/2):t.options.bubbleLegend.autoRanges=!0},t.prototype.setOptions=function(){var t=this.ranges,e=this.options,n=this.chart.series[e.seriesIndex],r=this.legend.baseline,o={zIndex:e.zIndex,"stroke-width":e.borderWidth},a={zIndex:e.zIndex,"stroke-width":e.connectorWidth},s={align:this.legend.options.rtl||"left"===e.labels.align?"right":"left",zIndex:e.zIndex},l=n.options.marker.fillOpacity,h=this.chart.styledMode;t.forEach((function(f,d){h||(o.stroke=c(f.borderColor,e.borderColor,n.color),o.fill=c(f.color,e.color,1!==l?i(n.color).setOpacity(l).get("rgba"):n.color),a.stroke=c(f.connectorColor,e.connectorColor,n.color)),t[d].radius=this.getRangeRadius(f.value),t[d]=u(t[d],{center:t[0].radius-t[d].radius+r}),h||u(!0,t[d],{bubbleAttribs:u(o),connectorAttribs:u(a),labelAttribs:s})}),this)},t.prototype.getRangeRadius=function(t){var e=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,e.ranges[e.ranges.length-1].value,e.ranges[0].value,e.minSize,e.maxSize,t)},t.prototype.render=function(){var t=this.chart.renderer,e=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),this.legendSymbol=t.g("bubble-legend"),this.legendItem=t.g("bubble-legend-item"),this.legendSymbol.translateX=0,this.legendSymbol.translateY=0,this.ranges.forEach((function(t){t.value>=e&&this.renderRange(t)}),this),this.legendSymbol.add(this.legendItem),this.legendItem.add(this.legendGroup),this.hideOverlappingLabels()},t.prototype.renderRange=function(t){var e=this.options,n=e.labels,r=this.chart,i=r.series[e.seriesIndex],o=r.renderer,a=this.symbols;r=a.labels;var s=t.center,l=Math.abs(t.radius),u=e.connectorDistance||0,c=n.align,h=e.connectorWidth,f=this.ranges[0].radius||0,d=s-l-e.borderWidth/2+h/2,p=this.fontMetrics;p=p.f/2-(p.h-p.f)/2;var m=o.styledMode;u=this.legend.options.rtl||"left"===c?-u:u,"center"===c&&(u=0,e.connectorDistance=0,t.labelAttribs.align="center"),c=d+e.labels.y;var g=f+u+e.labels.x;a.bubbleItems.push(o.circle(f,s+((d%1?1:.5)-(h%2?0:.5)),l).attr(m?{}:t.bubbleAttribs).addClass((m?"highcharts-color-"+i.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(e.className||"")).add(this.legendSymbol)),a.connectors.push(o.path(o.crispLine([["M",f,d],["L",f+u,d]],e.connectorWidth)).attr(m?{}:t.connectorAttribs).addClass((m?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(e.connectorClassName||"")).add(this.legendSymbol)),t=o.text(this.formatLabel(t),g,c+p).attr(m?{}:t.labelAttribs).css(m?{}:n.style).addClass("highcharts-bubble-legend-labels "+(e.labels.className||"")).add(this.legendSymbol),r.push(t),t.placed=!0,t.alignAttr={x:g,y:c+p}},t.prototype.getMaxLabelSize=function(){var t,e;return this.symbols.labels.forEach((function(n){e=n.getBBox(!0),t=t?e.width>t.width?e:t:e})),t||{}},t.prototype.formatLabel=function(t){var n=this.options,r=n.labels.formatter;n=n.labels.format;var i=this.chart.numberFormatter;return n?e.format(n,t):r?r.call(t):i(t.value,1)},t.prototype.hideOverlappingLabels=function(){var t=this.chart,e=this.symbols;!this.options.labels.allowOverlap&&e&&(t.hideOverlappingLabels(e.labels),e.labels.forEach((function(t,n){t.newOpacity?t.newOpacity!==t.oldOpacity&&e.connectors[n].show():e.connectors[n].hide()})))},t.prototype.getRanges=function(){var t,e=this.legend.bubbleLegend,n=e.options.ranges,r=Number.MAX_VALUE,i=-Number.MAX_VALUE;e.chart.series.forEach((function(e){e.isBubble&&!e.ignoreSeries&&(t=e.zData.filter(l)).length&&(r=c(e.options.zMin,Math.min(r,Math.max(s(t),!1===e.options.displayNegative?e.options.zThreshold:-Number.MAX_VALUE))),i=c(e.options.zMax,Math.max(i,a(t))))}));var o=r===i?[{value:i}]:[{value:r},{value:(r+i)/2},{value:i,autoRanges:!0}];return n.length&&n[0].radius&&o.reverse(),o.forEach((function(t,e){n&&n[e]&&(o[e]=u(n[e],t))})),o},t.prototype.predictBubbleSizes=function(){var t=this.chart,e=this.fontMetrics,n=t.legend.options,r="horizontal"===n.layout,i=r?t.legend.lastLineHeight:0,o=t.plotSizeX,a=t.plotSizeY,s=t.series[this.options.seriesIndex];t=Math.ceil(s.minPxSize);var l=Math.ceil(s.maxPxSize),u=Math.min(a,o);return s=s.options.maxSize,n.floating||!/%$/.test(s)?e=l:(s=parseFloat(s),e=(u+i-e.h/2)*s/100/(s/100+1),(r&&a-e>=o||!r&&o-e>=a)&&(e=l)),[t,Math.ceil(e)]},t.prototype.updateRanges=function(t,e){var n=this.legend.options.bubbleLegend;n.minSize=t,n.maxSize=e,n.ranges=this.getRanges()},t.prototype.correctSizes=function(){var t=this.legend,e=this.chart.series[this.options.seriesIndex];1o.height&&(o.height=t[i].itemHeight);o.step=e}return n}function c(t){var n=this.bubbleLegend,r=this.options,o=r.bubbleLegend,a=i(this.chart);n&&n.ranges&&n.ranges.length&&(o.ranges.length&&(o.autoRanges=!!o.ranges[0].autoRanges),this.destroyItem(n)),0<=a&&r.enabled&&o.enabled&&(o.seriesIndex=a,this.bubbleLegend=new e(o,this),this.bubbleLegend.addToLegend(t.allItems))}function h(){var t=this.chart,e=this.visible,n=this.chart.legend;n&&n.bubbleLegend&&(this.visible=!e,this.ignoreSeries=e,t=0<=i(t),n.bubbleLegend.visible!==t&&(n.update({bubbleLegend:{enabled:t}}),n.bubbleLegend.visible=t),this.visible=e)}function f(t,e){var n,r,i,o=t.options.rtl,a=0;t.allItems.forEach((function(t,s){n=t.legendGroup.translateX,r=t._legendItemPos[1],((i=t.movementX)||o&&t.ranges)&&(i=o?n-t.options.maxSize/2:n+i,t.legendGroup.attr({translateX:i})),s>e[a].step&&a++,t.legendGroup.attr({translateY:Math.round(r+e[a].height/2)}),t._legendItemPos[1]=r+e[a].height/2}))}var d=[];n.compose=function(e,n,i){-1===d.indexOf(e)&&(d.push(e),o({legend:{bubbleLegend:t}}),l(e.prototype,"drawChartBox",r)),-1===d.indexOf(n)&&(d.push(n),a(n,"afterGetAllItems",c)),-1===d.indexOf(i)&&(d.push(i),a(i,"legendItemClick",h))}}(i||(i={})),i})),e(n,"Series/Bubble/BubblePoint.js",[n["Core/Series/Point.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n){var r=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();return n=n.extend,e=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.options=void 0,t.series=void 0,t}return r(n,e),n.prototype.haloPath=function(e){return t.prototype.haloPath.call(this,0===e?0:(this.marker&&this.marker.radius||0)+e)},n}(e.seriesTypes.scatter.prototype.pointClass),n(e.prototype,{ttBelow:!1}),e})),e(n,"Series/Bubble/BubbleSeries.js",[n["Core/Axis/Axis.js"],n["Series/Bubble/BubbleLegendComposition.js"],n["Series/Bubble/BubblePoint.js"],n["Core/Color/Color.js"],n["Core/Globals.js"],n["Core/Series/Series.js"],n["Core/Series/SeriesRegistry.js"],n["Core/Utilities.js"]],(function(t,e,n,r,i,o,a,s){var l=this&&this.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),u=r.parse;r=i.noop;var c=a.seriesTypes;i=c.column;var h=c.scatter,f=s.arrayMax,d=s.arrayMin,p=s.clamp,m=s.extend,g=s.isNumber,v=s.merge,y=s.pick,b=s.pInt;return s=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=void 0,e.maxPxSize=void 0,e.minPxSize=void 0,e.options=void 0,e.points=void 0,e.radii=void 0,e.yData=void 0,e.zData=void 0,e}return l(n,t),n.prototype.animate=function(t){!t&&this.points.length=this.minPxSize/2?(i.marker=m(i.marker,{radius:o,width:2*o,height:2*o}),i.dlBox={x:i.plotX-o,y:i.plotY-o,width:2*o,height:2*o}):i.shapeArgs=i.plotY=i.dlBox=void 0}},n.compose=e.compose,n.defaultOptions=v(h.defaultOptions,{dataLabels:{formatter:function(){var t=this.series.chart.numberFormatter,e=this.point.z;return g(e)?t(e,-1):""},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"}),n}(h),m(s.prototype,{alignDataLabel:i.prototype.alignDataLabel,applyZones:r,bubblePadding:!0,buildKDTree:r,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:n,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),t.prototype.beforePadding=function(){var t=this,e=this.len,n=this.chart,r=0,i=e,o=this.isXAxis,a=o?"xData":"yData",s=this.min,l={},u=Math.min(n.plotWidth,n.plotHeight),c=Number.MAX_VALUE,h=-Number.MAX_VALUE,m=this.max-s,v=e/m,x=[];this.series.forEach((function(e){var r=e.options;!e.bubblePadding||!e.visible&&n.options.chart.ignoreHiddenSeries||(t.allowZoomOutside=!0,x.push(e),o&&(["minSize","maxSize"].forEach((function(t){var e=r[t],n=/%$/.test(e);e=b(e),l[t]=n?u*e/100:e})),e.minPxSize=l.minSize,e.maxPxSize=Math.max(l.maxSize,l.minSize),(e=e.zData.filter(g)).length&&(c=y(r.zMin,p(d(e),!1===r.displayNegative?r.zThreshold:-Number.MAX_VALUE,c)),h=y(r.zMax,Math.max(h,f(e))))))})),x.forEach((function(e){var n=e[a],l=n.length;if(o&&e.getRadii(c,h,e),0"},states:{hover:{halo:!1,brightness:.2}}}),n}(f),p(a.prototype,{alignDataLabel:h.prototype.alignDataLabel,axisTypes:e.axisTypes,colorAttribs:e.colorAttribs,colorKey:e.colorKey,directTouch:!0,drawLegendSymbol:r.drawRectangle,getExtremesFromAll:!0,getSymbol:u.prototype.getSymbol,parallelArrays:e.parallelArrays,pointArrayMap:["y","value"],pointClass:n,trackerGroups:e.trackerGroups}),o.registerSeriesType("heatmap",a),a})),e(n,"Extensions/GeoJSON.js",[n["Core/Chart/Chart.js"],n["Core/FormatUtilities.js"],n["Core/Globals.js"],n["Core/Utilities.js"]],(function(t,e,n,r){function i(t,e){var n,r=!1,i=t.x,o=t.y;for(t=0,n=e.length-1;to!==e[n][1]>o&&i<(e[n][0]-e[t][0])*(o-e[t][1])/(e[n][1]-e[t][1])+e[t][0]&&(r=!r);return r}var o=e.format,a=n.win,s=r.error,l=r.extend,u=r.merge;e=r.wrap,t.prototype.transformFromLatLon=function(t,e){var n=this.userOptions.chart&&this.userOptions.chart.proj4||a.proj4;if(!n)return s(21,!1,this),{x:0,y:null};t=n(e.crs,[t.lon,t.lat]),n=e.cosAngle||e.rotation&&Math.cos(e.rotation);var r=e.sinAngle||e.rotation&&Math.sin(e.rotation);return{x:(((t=e.rotation?[t[0]*n+t[1]*r,-t[0]*r+t[1]*n]:t)[0]-(e.xoffset||0))*(e.scale||1)+(e.xpan||0))*(e.jsonres||1)+(e.jsonmarginX||0),y:(((e.yoffset||0)-t[1])*(e.scale||1)+(e.ypan||0))*(e.jsonres||1)-(e.jsonmarginY||0)}},t.prototype.transformToLatLon=function(t,e){if("undefined"!==typeof a.proj4){t={x:((t.x-(e.jsonmarginX||0))/(e.jsonres||1)-(e.xpan||0))/(e.scale||1)+(e.xoffset||0),y:((-t.y-(e.jsonmarginY||0))/(e.jsonres||1)+(e.ypan||0))/(e.scale||1)+(e.yoffset||0)};var n=e.cosAngle||e.rotation&&Math.cos(e.rotation),r=e.sinAngle||e.rotation&&Math.sin(e.rotation);return{lat:(e=a.proj4(e.crs,"WGS84",e.rotation?{x:t.x*n+t.y*-r,y:t.x*r+t.y*n}:t)).y,lon:e.x}}s(21,!1,this)},t.prototype.fromPointToLatLon=function(t){var e,n=this.mapTransforms;if(n){for(e in n)if(Object.hasOwnProperty.call(n,e)&&n[e].hitZone&&i({x:t.x,y:-t.y},n[e].hitZone.coordinates[0]))return this.transformToLatLon(t,n[e]);return this.transformToLatLon(t,n.default)}s(22,!1,this)},t.prototype.fromLatLonToPoint=function(t){var e,n=this.mapTransforms;if(!n)return s(22,!1,this),{x:0,y:null};for(e in n)if(Object.hasOwnProperty.call(n,e)&&n[e].hitZone){var r=this.transformFromLatLon(t,n[e]);if(i({x:r.x,y:-r.y},n[e].hitZone.coordinates[0]))return r}return this.transformFromLatLon(t,n.default)},n.geojson=function(t,e,n){var r=[],i=[],a=function(t){t.forEach((function(t,e){0===e?i.push(["M",t[0],-t[1]]):i.push(["L",t[0],-t[1]])}))};return e=e||"map",t.features.forEach((function(t){var n,o=t.geometry,s=o.type;o=o.coordinates,t=t.properties,i=[],"map"===e||"mapbubble"===e?("Polygon"===s?(o.forEach(a),i.push(["Z"])):"MultiPolygon"===s&&(o.forEach((function(t){t.forEach(a)})),i.push(["Z"])),i.length&&(n={path:i})):"mapline"===e?("LineString"===s?a(o):"MultiLineString"===s&&o.forEach(a),i.length&&(n={path:i})):"mappoint"===e&&"Point"===s&&(n={x:o[0],y:-o[1]}),n&&r.push(l(n,{name:t.name||t.NAME,properties:t}))})),n&&t.copyrightShort&&(n.chart.mapCredits=o(n.chart.options.credits.mapText,{geojson:t}),n.chart.mapCreditsFull=o(n.chart.options.credits.mapTextFull,{geojson:t})),r},e(t.prototype,"addCredits",(function(t,e){e=u(!0,this.options.credits,e),this.mapCredits&&(e.href=null),t.call(this,e),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}))})),e(n,"masters/modules/map.src.js",[n["Core/Globals.js"],n["Core/Axis/Color/ColorAxis.js"],n["Series/MapBubble/MapBubbleSeries.js"],n["Core/Chart/MapChart.js"]],(function(t,e,n,r){t.ColorAxis=e,t.MapChart=r,t.mapChart=t.Map=r.mapChart,t.maps=r.maps,e.compose(t.Chart,t.Fx,t.Legend,t.Series),n.compose(t.Chart,t.Legend,t.Series)})),e(n,"masters/highmaps.src.js",[n["masters/highcharts.src.js"]],(function(t){return t.product="Highmaps",t})),n["masters/highmaps.src.js"]._modules=n,n["masters/highmaps.src.js"]},t.exports?(o.default=o,t.exports=i.document?o(i):o):void 0===(r=function(){return o(i)}.call(e,n,e,t))||(t.exports=r)},9729:function(t,e,n){"use strict";var r,i,o;o=function(t){function e(t,e,n,r){t.hasOwnProperty(e)||(t[e]=r.apply(null,n))}e(t=t?t._modules:{},"Accessibility/Utils/HTMLUtilities.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e){var n=t.doc,r=t.win,i=e.merge;return{addClass:function(t,e){t.classList?t.classList.add(e):0>t.className.indexOf(e)&&(t.className+=e)},escapeStringForHTML:function(t){return t.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")},getElement:function(t){return n.getElementById(t)},getFakeMouseEvent:function(t){if("function"===typeof r.MouseEvent)return new r.MouseEvent(t);if(n.createEvent){var e=n.createEvent("MouseEvent");if(e.initMouseEvent)return e.initMouseEvent(t,!0,!0,r,"click"===t?1:0,0,0,0,0,!1,!1,!1,!1,0,null),e}return{type:t}},getHeadingTagNameForElement:function(t){var e=function(t){return t=parseInt(t.slice(1),10),"h"+Math.min(6,t+1)};return function t(n){var r;t:{for(r=n;r=r.previousSibling;){var i=r.tagName||"";if(/H[1-6]/.test(i)){r=i;break t}}r=""}return r?e(r):(n=n.parentElement)?(r=n.tagName,/H[1-6]/.test(r)?e(r):t(n)):"p"}(t)},removeElement:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},reverseChildNodes:function(t){for(var e=t.childNodes.length;e--;)t.appendChild(t.childNodes[e])},setElAttrs:function(t,e){Object.keys(e).forEach((function(n){var r=e[n];null===r?t.removeAttribute(n):t.setAttribute(n,r)}))},stripHTMLTagsFromString:function(t){return"string"===typeof t?t.replace(/<\/?[^>]+(>|$)/g,""):t},visuallyHideElement:function(t){i(!0,t.style,{position:"absolute",width:"1px",height:"1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(1px, 1px, 1px, 1px)",marginTop:"-3px","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=1)",filter:"alpha(opacity=1)",opacity:"0.01"})}}})),e(t,"Accessibility/Utils/ChartUtilities.js",[t["Accessibility/Utils/HTMLUtilities.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e,n){function r(t){if(t.points&&t.points.length)return(t=l(t.points,(function(t){return!!t.graphic})))&&t.graphic&&t.graphic.element}function i(t){var e=r(t);return e&&e.parentNode||t.graph&&t.graph.element||t.group&&t.group.element}var o=t.stripHTMLTagsFromString,a=e.doc,s=n.defined,l=n.find,u=n.fireEvent;return{getChartTitle:function(t){return o(t.options.title.text||t.langFormat("accessibility.defaultChartTitle",{chart:t}))},getAxisDescription:function(t){return t&&(t.userOptions&&t.userOptions.accessibility&&t.userOptions.accessibility.description||t.axisTitle&&t.axisTitle.textStr||t.options.id||t.categories&&"categories"||t.dateTime&&"Time"||"values")},getAxisRangeDescription:function(t){var e=t.options||{};return e.accessibility&&"undefined"!==typeof e.accessibility.rangeDescription?e.accessibility.rangeDescription:t.categories?(e=t.chart,t=t.dataMax&&t.dataMin?e.langFormat("accessibility.axis.rangeCategories",{chart:e,axis:t,numCategories:t.dataMax-t.dataMin+1}):""):!t.dateTime||0!==t.min&&0!==t.dataMin?function(t){var e=t.chart,n=e.options&&e.options.accessibility&&e.options.accessibility.screenReaderSection.axisRangeDateFormat||"",r=function(r){return t.dateTime?e.time.dateFormat(n,t[r]):t[r]};return e.langFormat("accessibility.axis.rangeFromTo",{chart:e,axis:t,rangeFrom:r("min"),rangeTo:r("max")})}(t):function(t){var e=t.chart,n={},r="Seconds";n.Seconds=((t.max||0)-(t.min||0))/1e3,n.Minutes=n.Seconds/60,n.Hours=n.Minutes/60,n.Days=n.Hours/24,["Minutes","Hours","Days"].forEach((function(t){2n||i!==e-1,r.a11yProxyElement&&(r.a11yProxyElement.style.visibility=i?"hidden":"visible")}))},onChartRender:function(){u(this.chart)||this.removeProxies()},onChartUpdate:function(){this.updateLegendTitle()},updateProxiesPositions:function(){for(var t=0,e=this.proxyElementsList;t/g," "));t=t.langFormat("accessibility.legend.legendLabel"+(e?"":"NoTitle"),{chart:t,legendTitle:e,chartTitle:b(t)}),this.legendProxyGroup&&this.legendProxyGroup.setAttribute("aria-label",t)},addLegendProxyGroup:function(){this.legendProxyGroup=this.addProxyGroup({"aria-label":"_placeholder_",role:"all"===this.chart.options.accessibility.landmarkVerbosity?"region":null})},addLegendListContainer:function(){if(this.legendProxyGroup){var t=this.legendListContainer=this.createElement("ul");t.style.listStyle="none",this.legendProxyGroup.appendChild(t)}},proxyLegendItems:function(){var t=this;(this.chart.legend&&this.chart.legend.allItems||[]).forEach((function(e){e.legendItem&&e.legendItem.element&&t.proxyLegendItem(e)}))},proxyLegendItem:function(t){if(t.legendItem&&t.legendGroup&&this.legendListContainer){var e=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:y(t.name),item:t});e={tabindex:-1,"aria-pressed":t.visible,"aria-label":e};var n=t.legendGroup.div?t.legendItem:t.legendGroup,r=this.createElement("li");this.legendListContainer.appendChild(r),t.a11yProxyElement=this.createProxyButton(t.legendItem,r,e,n),this.proxyElementsList.push({item:t,element:t.a11yProxyElement,posElement:n})}},getKeyboardNavigation:function(){var t=this.keyCodes,e=this,r=this.chart;return new a(r,{keyCodeMap:[[[t.left,t.right,t.up,t.down],function(t){return e.onKbdArrowKey(this,t)}],[[t.enter,t.space],function(r){return n.isFirefox&&r===t.space?this.response.success:e.onKbdClick(this)}]],validate:function(){return e.shouldHaveLegendNavigation()},init:function(t){return e.onKbdNavigationInit(t)},terminate:function(){r.legend.allItems.forEach((function(t){return t.setState("",!0)}))}})},onKbdArrowKey:function(t,e){var n=this.keyCodes,r=t.response,i=this.chart,o=i.options.accessibility,a=i.legend.allItems.length;return e=e===n.left||e===n.up?-1:1,i.highlightLegendItem(this.highlightedLegendItemIx+e)?(this.highlightedLegendItemIx+=e,r.success):1=a&&t||0<=a&&!t||5>s||h(o))&&s"+t+"":""}))}var o=t.escapeStringForHTML,a=t.stripHTMLTagsFromString;return{getAnnotationsInfoHTML:function(t){var e=t.annotations;return e&&e.length?'
    '+i(t).join(" ")+"
":""},getAnnotationLabelDescription:r,getAnnotationListItems:i,getPointAnnotationTexts:function(t){var r=e(t.series.chart).filter((function(e){return-1e&&t.graphic&&t.graphic.element)}))||null}function a(t){var e=t.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(!1!==e&&t.points&&t.points.length>=e)}function s(t,e){var n=t.series.chart,r=n.options.accessibility.point||{};return t=t.series.tooltipOptions||{},n=n.options.lang,E(e)?S(e,r.valueDecimals||t.valueDecimals||-1,n.decimalPoint,n.accessibility.thousandsSep||n.thousandsSep):e}function l(t,e){return t.chart.langFormat("accessibility.series."+e+"Description",{name:v(t[e]),series:t})}function u(t){var e=t.series,n=e.chart,r=n.options.accessibility.point||{};if(e=e.xAxis&&e.xAxis.dateTime)return e=e.getXDateFormat(t.x||0,n.options.tooltip.dateTimeLabelFormats),r=r.dateFormatter&&r.dateFormatter(t)||r.dateFormat||e,n.time.dateFormat(r,t.x||0,void 0)}function c(t){var e=u(t),n=(t.series.xAxis||{}).categories&&T(t.category)&&(""+t.category).replace("
"," "),r=t.id&&0>t.id.indexOf("highcharts-"),i="x, "+t.x;return t.name||e||n||(r?t.id:i)}function h(t){var e=t.series,n=e.chart.options.accessibility.point||{},r=e.tooltipOptions||{},i=n.valuePrefix||r.valuePrefix||"";return n=n.valueSuffix||r.valueSuffix||"",r=s(t,t["undefined"!==typeof t.value?"value":"y"]),t.isNull?e.chart.langFormat("accessibility.series.nullPointValue",{point:t}):e.pointArrayMap?function(t,e,n){var r=e||"",i=n||"";return t.series.pointArrayMap.reduce((function(e,n){e+=e.length?", ":"";var o=s(t,M(t[n],t.options[n]));return e+(n+": ")+r+o+i}),"")}(t,i,n):i+r+n}function f(t){var e=t.series,n=e.chart,r=n.options.accessibility.point.valueDescriptionFormat,i=(e=M(e.xAxis&&e.xAxis.options.accessibility&&e.xAxis.options.accessibility.enabled,!n.angular))?c(t):"";return t={point:t,index:T(t.index)?t.index+1:"",xDescription:i,value:h(t),separator:e?", ":""},w(r,t,n)}function d(t){var e=t.series,n=e.chart,r=f(t),i=t.options&&t.options.accessibility&&t.options.accessibility.description;i=i?" "+i:"",e=1t&&re.dataMax&&(r=(n=e.dataMax)-i),this.setExtremes(r,n)},e.prototype=new t,r(e.prototype,{init:function(){var t=this,e=this.chart;["afterShowResetZoom","afterDrilldown","drillupall"].forEach((function(n){t.addEvent(e,n,(function(){t.updateProxyOverlays()}))}))},onChartUpdate:function(){var t=this.chart,e=this;t.mapNavButtons&&t.mapNavButtons.forEach((function(n,r){a(t,n.element),e.setMapNavButtonAttrs(n.element,"accessibility.zoom.mapZoom"+(r?"Out":"In"))}))},setMapNavButtonAttrs:function(t,e){var n=this.chart;e=n.langFormat(e,{chart:n}),l(t,{tabindex:-1,role:"button","aria-label":e})},onChartRender:function(){this.updateProxyOverlays()},updateProxyOverlays:function(){var t=this.chart;s(this.drillUpProxyGroup),s(this.resetZoomProxyGroup),t.resetZoomButton&&this.recreateProxyButtonAndGroup(t.resetZoomButton,"resetZoomProxyButton","resetZoomProxyGroup",t.langFormat("accessibility.zoom.resetZoomButton",{chart:t})),t.drillUpButton&&this.recreateProxyButtonAndGroup(t.drillUpButton,"drillUpProxyButton","drillUpProxyGroup",t.langFormat("accessibility.drillUpButton",{chart:t,buttonText:t.getDrilldownBackText()}))},recreateProxyButtonAndGroup:function(t,e,n,r){s(this[n]),this[n]=this.addProxyGroup(),this[e]=this.createProxyButton(t,this[n],{"aria-label":r,tabindex:-1})},getMapZoomNavigation:function(){var t=this.keyCodes,e=this.chart,n=this;return new i(e,{keyCodeMap:[[[t.up,t.down,t.left,t.right],function(t){return n.onMapKbdArrow(this,t)}],[[t.tab],function(t,e){return n.onMapKbdTab(this,e)}],[[t.space,t.enter],function(){return n.onMapKbdClick(this)}]],validate:function(){return!!(e.mapZoom&&e.mapNavButtons&&e.mapNavButtons.length)},init:function(t){return n.onMapNavInit(t)}})},onMapKbdArrow:function(t,e){var n=this.keyCodes;return this.chart[e===n.up||e===n.down?"yAxis":"xAxis"][0].panStep(e===n.left||e===n.up?-1:1),t.response.success},onMapKbdTab:function(t,e){var n=this.chart;t=t.response;var r=(e=e.shiftKey)&&!this.focusedMapNavButtonIx||!e&&this.focusedMapNavButtonIx;return n.mapNavButtons[this.focusedMapNavButtonIx].setState(0),r?(n.mapZoom(),t[e?"prev":"next"]):(this.focusedMapNavButtonIx+=e?-1:1,e=n.mapNavButtons[this.focusedMapNavButtonIx],n.setFocusToElement(e.box,e.element),e.setState(2),t.success)},onMapKbdClick:function(t){return this.fakeClickEvent(this.chart.mapNavButtons[this.focusedMapNavButtonIx].element),t.response.success},onMapNavInit:function(t){var e=this.chart,n=e.mapNavButtons[0],r=e.mapNavButtons[1];n=0l-s,S=m=864e5*{month:28,year:365}[g]*v-x&&i-36e5<=864e5*{month:31,year:366}[g]*v+x?m=!0:"ytd"===g?(m=c-u+x===i,C=!e):"all"===g&&(m=r.max-r.min>=l-s,_=!e&&f&&m),g=!d&&(w||S||_||o),v=e&&m||m&&!f&&!C||e&&t.frozenStates,g?b=3:v&&(f=!0,b=2),y.state!==b&&(y.setState(b),n&&(n.options[a+1].disabled=g,2===b&&(n.selectedIndex=a+1)),0===b&&h===a&&t.setSelected())}))},e.prototype.computeButtonRange=function(t){var e=t.type,n=t.count||1,r={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};r[e]?t._range=r[e]*n:"month"!==e&&"year"!==e||(t._range=864e5*{month:30,year:365}[e]*n),t._offsetMin=w(t.offsetMin,0),t._offsetMax=w(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},e.prototype.getInputValue=function(t){t="min"===t?this.minInput:this.maxInput;var e=this.chart.options.rangeSelector,n=this.chart.time;return t?("text"===t.type&&e.inputDateParser||this.defaultInputDateParser)(t.value,n.useUTC,n):0},e.prototype.setInputValue=function(t,e){var n=this.options,r=this.chart.time,i="min"===t?this.minInput:this.maxInput;if(t="min"===t?this.minDateBox:this.maxDateBox,i){var o=i.getAttribute("data-hc-time");o=h(o)?Number(o):void 0,h(e)&&(h(o)&&i.setAttribute("data-hc-time-previous",o),i.setAttribute("data-hc-time",e),o=e),i.value=r.dateFormat(this.inputTypeFormats[i.type]||n.inputEditDateFormat,o),t&&t.attr({text:r.dateFormat(n.inputDateFormat,o)})}},e.prototype.setInputExtremes=function(t,e,n){if(t="min"===t?this.minInput:this.maxInput){var r=this.inputTypeFormats[t.type],i=this.chart.time;r&&(e=i.dateFormat(r,e),t.min!==e&&(t.min=e),n=i.dateFormat(r,n),t.max!==n&&(t.max=n))}},e.prototype.showInput=function(t){var e="min"===t?this.minDateBox:this.maxDateBox;if((t="min"===t?this.minInput:this.maxInput)&&e&&this.inputGroup){var n="text"===t.type,r=this.inputGroup,i=r.translateX;r=r.translateY;var o=this.options.inputBoxWidth;c(t,{width:n?e.width+(o?-2:20)+"px":"auto",height:n?e.height-2+"px":"auto",border:"2px solid silver"}),c(t,n&&o?{left:i+e.x+"px",top:r+"px"}:{left:Math.min(Math.round(e.x+i-(t.offsetWidth-e.width)/2),this.chart.chartWidth-t.offsetWidth)+"px",top:r-(t.offsetHeight-e.height)/2+"px"})}},e.prototype.hideInput=function(t){(t="min"===t?this.minInput:this.maxInput)&&c(t,{top:"-9999em",border:0,width:"1px",height:"1px"})},e.prototype.defaultInputDateParser=function(t,e,r){var i,o=t.split("/").join("-").split(" ").join("T");return-1===o.indexOf("T")&&(o+="T00:00"),e?o+="Z":((i=n.isSafari)&&(i=!(6<(i=o).length&&(i.lastIndexOf("-")===i.length-6||i.lastIndexOf("+")===i.length-6))),i&&(o+=0>=(i=new Date(o).getTimezoneOffset()/60)?"+"+x(-i)+":00":"-"+x(i)+":00")),o=Date.parse(o),v(o)||(t=t.split("-"),o=Date.UTC(S(t[0]),S(t[1])-1,S(t[2]))),r&&e&&v(o)&&(o+=r.getTimezoneOffset(o)),o},e.prototype.drawInput=function(t){function e(){var e=l.getInputValue(t),n=r.xAxis[0],i=r.scroller&&r.scroller.xAxis?r.scroller.xAxis:n,o=i.dataMin;i=i.dataMax;var a=l.maxInput,s=l.minInput;e!==Number(b.getAttribute("data-hc-time-previous"))&&v(e)&&(b.setAttribute("data-hc-time-previous",e),m&&a&&v(o)?e>Number(a.getAttribute("data-hc-time"))?e=void 0:ei&&(e=i)),"undefined"!==typeof e&&n.setExtremes(m?e:n.min,m?n.max:e,void 0,void 0,{trigger:"rangeSelectorInput"}))}var r=this.chart,o=this.div,a=this.inputGroup,l=this,h=r.renderer.style||{},f=r.renderer,d=r.options.rangeSelector,m="min"===t,g=s.lang[m?"rangeSelectorFrom":"rangeSelectorTo"]||"";g=f.label(g,0).addClass("highcharts-range-label").attr({padding:g?2:0,height:g?d.inputBoxHeight:0}).add(a),f=f.label("",0).addClass("highcharts-range-input").attr({padding:2,width:d.inputBoxWidth,height:d.inputBoxHeight,"text-align":"center"}).on("click",(function(){l.showInput(t),l[t+"Input"].focus()})),r.styledMode||f.attr({stroke:d.inputBoxBorderColor,"stroke-width":1}),f.add(a);var b=u("input",{name:t,className:"highcharts-range-selector"},void 0,o);b.setAttribute("type",function(t){if(-1!==t.indexOf("%L"))return"text";var e="aAdewbBmoyY".split("").some((function(e){return-1!==t.indexOf("%"+e)})),n="HkIlMS".split("").some((function(e){return-1!==t.indexOf("%"+e)}));return e&&n?"datetime-local":e?"date":n?"time":"text"}(d.inputDateFormat||"%b %e, %Y")),r.styledMode||(g.css(y(h,d.labelStyle)),f.css(y({color:i.neutralColor80},h,d.inputStyle)),c(b,p({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:h.fontSize,fontFamily:h.fontFamily,top:"-9999em"},d.inputStyle))),b.onfocus=function(){l.showInput(t)},b.onblur=function(){b===n.doc.activeElement&&e(),l.hideInput(t),l.setInputValue(t),b.blur()};var x=!1;return b.onchange=function(){x||(e(),l.hideInput(t),b.blur())},b.onkeypress=function(t){13===t.keyCode&&e()},b.onkeydown=function(t){x=!0,38!==t.keyCode&&40!==t.keyCode||e()},b.onkeyup=function(){x=!1},{dateBox:f,input:b,label:g}},e.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector;return{buttonTop:(t="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0)+e.buttonPosition.y,inputTop:t+e.inputPosition.y-10}},e.prototype.getYTDExtremes=function(t,e,n){var r=this.chart.time,i=new r.Date(t),o=r.get("FullYear",i);return n=n?r.Date.UTC(o,0,1):+new r.Date(o,0,1),e=Math.max(e,n),i=i.getTime(),{max:Math.min(t||i,i),min:e}},e.prototype.render=function(t,e){var n=this.chart,r=n.renderer,i=n.container,o=n.options,a=o.rangeSelector,s=w(o.chart.style&&o.chart.style.zIndex,0)+1;if(o=a.inputEnabled,!1!==a.enabled){if(this.rendered||(this.group=r.g("range-selector-group").attr({zIndex:7}).add(),this.div=u("div",void 0,{position:"relative",height:0,zIndex:s}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),o&&(this.inputGroup=r.g("input-group").add(this.group),r=this.drawInput("min"),this.minDateBox=r.dateBox,this.minLabel=r.label,this.minInput=r.input,r=this.drawInput("max"),this.maxDateBox=r.dateBox,this.maxLabel=r.label,this.maxInput=r.input)),o&&(this.setInputValue("min",t),this.setInputValue("max",e),t=n.scroller&&n.scroller.getUnionExtremes()||n.xAxis[0]||{},h(t.dataMin)&&h(t.dataMax)&&(n=n.xAxis[0].minRange||0,this.setInputExtremes("min",t.dataMin,Math.min(t.dataMax,this.getInputValue("max"))-n),this.setInputExtremes("max",Math.max(t.dataMin,this.getInputValue("min"))+n,t.dataMax)),this.inputGroup)){var l=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach((function(t){if(t){var e=t.getBBox().width;e&&(t.attr({x:l}),l+=e+a.inputSpacing)}}))}this.alignElements(),this.rendered=!0}},e.prototype.renderButtons=function(){var t=this,e=this.buttons,r=this.options,i=s.lang,o=this.chart.renderer,a=y(r.buttonTheme),c=a&&a.states,h=a.width||28;delete a.width,delete a.states,this.buttonGroup=o.g("range-selector-buttons").add(this.group);var f=this.dropdown=u("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);l(f,"touchstart",(function(){f.style.fontSize="16px"})),[[n.isMS?"mouseover":"mouseenter"],[n.isMS?"mouseout":"mouseleave"],["change","click"]].forEach((function(n){var r=n[0],i=n[1];l(f,r,(function(){var n=e[t.currentButtonIndex()];n&&g(n.element,i||r)}))})),this.zoomText=o.label(i&&i.rangeSelectorZoom||"",0).attr({padding:r.buttonTheme.padding,height:r.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(r.labelStyle),a["stroke-width"]=w(a["stroke-width"],0)),u("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,f),this.buttonOptions.forEach((function(n,r){u("option",{textContent:n.title||n.text},void 0,f),e[r]=o.button(n.text,0,0,(function(e){var i,o=n.events&&n.events.click;o&&(i=o.call(n,e)),!1!==i&&t.clickButton(r),t.isActive=!0}),a,c&&c.hover,c&&c.select,c&&c.disabled).attr({"text-align":"center",width:h}).add(t.buttonGroup),n.title&&e[r].attr("title",n.title)}))},e.prototype.alignElements=function(){var t=this,e=this.buttonGroup,n=this.buttons,r=this.chart,i=this.group,o=this.inputGroup,a=this.options,s=this.zoomText,l=r.options,u=l.exporting&&!1!==l.exporting.enabled&&l.navigation&&l.navigation.buttonOptions;l=a.buttonPosition;var c=a.inputPosition,h=a.verticalAlign,f=function(e,n){return u&&t.titleCollision(r)&&"top"===h&&"right"===n.align&&n.y-e.getBBox().height-12<(u.y||0)+(u.height||0)+r.spacing[0]?-40:0},d=r.plotLeft;if(i&&l&&c){var p=l.x-r.spacing[3];if(e){if(this.positionButtons(),!this.initialButtonGroupWidth){var m=0;s&&(m+=s.getBBox().width+5),n.forEach((function(t,e){m+=t.width,e!==n.length-1&&(m+=a.buttonSpacing)})),this.initialButtonGroupWidth=m}d-=r.spacing[3],this.updateButtonStates(),s=f(e,l),this.alignButtonGroup(s),i.placed=e.placed=r.hasLoaded}e=0,o&&(e=f(o,c),"left"===c.align?p=d:"right"===c.align&&(p=-Math.max(r.axisOffset[1],-e)),o.align({y:c.y,width:o.getBBox().width,align:c.align,x:c.x+p-2},!0,r.spacingBox),o.placed=r.hasLoaded),this.handleCollision(e),i.align({verticalAlign:h},!0,r.spacingBox),o=i.alignAttr.translateY,e=i.getBBox().height+20,f=0,"bottom"===h&&(f=o-(e=e+(f=(f=r.legend&&r.legend.options)&&"bottom"===f.verticalAlign&&f.enabled&&!f.floating?r.legend.legendHeight+w(f.margin,10):0)-20)-(a.floating?0:a.y)-(r.titleOffset?r.titleOffset[2]:0)-10),"top"===h?(a.floating&&(f=0),r.titleOffset&&r.titleOffset[0]&&(f=r.titleOffset[0]),f+=r.margin[0]-r.spacing[0]||0):"middle"===h&&(c.y===l.y?f=o:(c.y||l.y)&&(f=0>c.y||0>l.y?f-Math.min(c.y,l.y):o-e)),i.translate(a.x,a.y+Math.floor(f)),l=this.minInput,c=this.maxInput,o=this.dropdown,a.inputEnabled&&l&&c&&(l.style.marginTop=i.translateY+"px",c.style.marginTop=i.translateY+"px"),o&&(o.style.marginTop=i.translateY+"px")}},e.prototype.alignButtonGroup=function(t,e){var n=this.chart,r=this.buttonGroup,i=this.options.buttonPosition,o=n.plotLeft-n.spacing[3],a=i.x-n.spacing[3];"right"===i.align?a+=t-o:"center"===i.align&&(a-=o/2),r&&r.align({y:i.y,width:w(e,this.initialButtonGroupWidth),align:i.align,x:a},!0,n.spacingBox)},e.prototype.positionButtons=function(){var t=this.buttons,e=this.chart,n=this.options,r=this.zoomText,i=e.hasLoaded?"animate":"attr",o=n.buttonPosition,a=e.plotLeft,s=a;r&&"hidden"!==r.visibility&&(r[i]({x:w(a+o.x,a)}),s+=o.x+r.getBBox().width+5),this.buttonOptions.forEach((function(e,r){"hidden"!==t[r].visibility?(t[r][i]({x:s}),s+=t[r].width+n.buttonSpacing):t[r][i]({x:a})}))},e.prototype.handleCollision=function(t){var e=this,n=this.chart,r=this.buttonGroup,i=this.inputGroup,o=this.options,a=o.buttonPosition,s=o.dropdown,l=o.inputPosition;o=function(){var t=0;return e.buttons.forEach((function(e){(e=e.getBBox()).width>t&&(t=e.width)})),t};var u=function(e){if(i&&r){var n=i.alignAttr.translateX+i.alignOptions.x-t+i.getBBox().x+2,o=i.alignOptions.width,s=r.alignAttr.translateX+r.getBBox().x;return s+e>n&&n+o>s&&a.y=-t?0:-t),translateY:i.alignAttr.translateY+r.getBBox().height+10})};if(r){if("always"===s)return this.collapseButtons(t),void(u(o())&&c());"never"===s&&this.expandButtons()}i&&r?l.align===a.align||u(this.initialButtonGroupWidth+20)?"responsive"===s?(this.collapseButtons(t),u(o())&&c()):c():"responsive"===s&&this.expandButtons():r&&"responsive"===s&&(this.initialButtonGroupWidth>n.plotWidth?this.collapseButtons(t):this.expandButtons())},e.prototype.collapseButtons=function(t){var e=this.buttons,n=this.buttonOptions,r=this.chart,i=this.dropdown,o=this.options,a=this.zoomText,s=r.userOptions.rangeSelector&&r.userOptions.rangeSelector.buttonTheme||{},l=function(t){return{text:t?t+" \u25be":"\u25be",width:"auto",paddingLeft:w(o.buttonTheme.paddingLeft,s.padding,8),paddingRight:w(o.buttonTheme.paddingRight,s.padding,8)}};a&&a.hide();var u=!1;n.forEach((function(t,n){2!==(n=e[n]).state?n.hide():(n.show(),n.attr(l(t.text)),u=!0)})),u||(i&&(i.selectedIndex=0),e[0].show(),e[0].attr(l(this.zoomText&&this.zoomText.textStr))),n=o.buttonPosition.align,this.positionButtons(),"right"!==n&&"center"!==n||this.alignButtonGroup(t,e[this.currentButtonIndex()].getBBox().width),this.showDropdown()},e.prototype.expandButtons=function(){var t=this.buttons,e=this.buttonOptions,n=this.options,r=this.zoomText;this.hideDropdown(),r&&r.show(),e.forEach((function(e,r){(r=t[r]).show(),r.attr({text:e.text,width:n.buttonTheme.width||28,paddingLeft:w(n.buttonTheme.paddingLeft,"unset"),paddingRight:w(n.buttonTheme.paddingRight,"unset")}),2>r.state&&r.setState(0)})),this.positionButtons()},e.prototype.currentButtonIndex=function(){var t=this.dropdown;return t&&0i&&0>r||0r?e.accessibility&&(e.accessibility.keyboardNavigation.tabindexContainer.focus(),e.accessibility.keyboardNavigation[0>t?"prev":"next"]()):n&&(t=n[r?"maxDateBox":"minDateBox"],n=n[r?"maxInput":"minInput"],t&&n&&e.setFocusToElement(t,n))},onInputNavInit:function(t){var e=this,n=this,r=this.chart,i=0this.series.length?"Single":"Multiple";return(this.langFormat("accessibility.chartTypes."+t+r,n)||this.langFormat("accessibility.chartTypes.default"+r,n))+(e?" "+e:"")},(e=function(){}).prototype=new o,n(e.prototype,{init:function(){var t=this.chart,e=this;this.initRegionsDefinitions(),this.addEvent(t,"aftergetTableAST",(function(t){e.onDataTableCreated(t)})),this.addEvent(t,"afterViewData",(function(t){e.dataTableDiv=t,setTimeout((function(){e.focusDataTable()}),300)})),this.announcer=new a(t,"assertive")},initRegionsDefinitions:function(){var t=this;this.screenReaderSections={before:{element:null,buildContent:function(e){var n=e.options.accessibility.screenReaderSection.beforeChartFormatter;return n?n(e):t.defaultBeforeChartFormatter(e)},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.renderTo.firstChild)},afterInserted:function(){"undefined"!==typeof t.sonifyButtonId&&t.initSonifyButton(t.sonifyButtonId),"undefined"!==typeof t.dataTableButtonId&&t.initDataTableButton(t.dataTableButtonId)}},after:{element:null,buildContent:function(e){var n=e.options.accessibility.screenReaderSection.afterChartFormatter;return n?n(e):t.defaultAfterChartFormatter()},insertIntoDOM:function(t,e){e.renderTo.insertBefore(t,e.container.nextSibling)},afterInserted:function(){t.chart.accessibility&&t.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},onChartRender:function(){var t=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach((function(e){t.updateScreenReaderSection(e)}))},getLinkedDescriptionElement:function(){var t=this.chart.options.accessibility.linkedDescription;if(t){if("string"!==typeof t)return t;if(t=c(t,this.chart),1===(t=h.querySelectorAll(t)).length)return t[0]}},setLinkedDescriptionAttrs:function(){var t=this.linkedDescriptionElement;t&&(t.setAttribute("aria-hidden","true"),y(t,"highcharts-linked-description"))},updateScreenReaderSection:function(e){var n=this.chart,r=this.screenReaderSections[e],i=r.buildContent(n),o=r.element=r.element||this.createElement("div"),a=o.firstChild||this.createElement("div");this.setScreenReaderSectionAttribs(o,e),t.setElementHTML(a,i),o.appendChild(a),r.insertIntoDOM(o,n),C(a),v(n,a),r.afterInserted&&r.afterInserted()},setScreenReaderSectionAttribs:function(t,e){var n=this.chart,r=n.langFormat("accessibility.screenReaderSection."+e+"RegionLabel",{chart:n,chartTitle:g(n)});w(t,{id:"highcharts-screen-reader-region-"+e+"-"+n.index,"aria-label":r}),t.style.position="relative","all"===n.options.accessibility.landmarkVerbosity&&r&&t.setAttribute("role","region")},defaultBeforeChartFormatter:function(){var t=this.chart,e=t.options.accessibility.screenReaderSection.beforeChartFormat,n=this.getAxesDescription(),i=t.sonify&&t.options.sonification&&t.options.sonification.enabled,o="highcharts-a11y-sonify-data-btn-"+t.index,a="hc-linkto-highcharts-data-table-"+t.index,s=d(t),l=t.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:t});return n={headingTagName:x(t.renderTo),chartTitle:g(t),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:n.xAxis,yAxisDescription:n.yAxis,playAsSoundButton:i?this.getSonifyButtonText(o):"",viewTableButton:t.getCSV?this.getDataTableButtonText(a):"",annotationsTitle:s?l:"",annotationsList:s},t=r.i18nFormat(e,n,t),this.dataTableButtonId=a,this.sonifyButtonId=o,t.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")},defaultAfterChartFormatter:function(){var t=this.chart,e=t.options.accessibility.screenReaderSection.afterChartFormat,n={endOfChartMarker:this.getEndOfChartMarkerText()};return r.i18nFormat(e,n,t).replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")},getLinkedDescription:function(){var t=this.linkedDescriptionElement;return S(t&&t.innerHTML||"")},getLongdescText:function(){var t=this.chart.options,e=t.caption;e=e&&e.text;var n=this.getLinkedDescription();return t.accessibility.description||n||e||""},getTypeDescriptionText:function(){var t=this.chart;return t.types?t.options.accessibility.typeDescription||t.getTypeDescription(t.types):""},getDataTableButtonText:function(t){var e=this.chart;return'"},getSonifyButtonText:function(t){var e=this.chart;return e.options.sonification&&!1===e.options.sonification.enabled?"":'"},getSubtitleText:function(){var t=this.chart.options.subtitle;return S(t&&t.text||"")},getEndOfChartMarkerText:function(){var t=this.chart,e=t.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:t});return'
'+e+"
"},onDataTableCreated:function(t){var e=this.chart;if(e.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var n=t.tree.attributes||{};n.tabindex=-1,n.summary=e.langFormat("accessibility.table.tableSummary",{chart:e}),t.tree.attributes=n}},focusDataTable:function(){var t=this.dataTableDiv;(t=t&&t.getElementsByTagName("table")[0])&&t.focus&&t.focus()},initSonifyButton:function(t){var e=this,n=this.sonifyButton=b(t),r=this.chart,i=function(t){n&&(n.setAttribute("aria-hidden","true"),n.setAttribute("aria-label","")),t.preventDefault(),t.stopPropagation(),t=r.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:r}),e.announcer.announce(t),setTimeout((function(){n&&(n.removeAttribute("aria-hidden"),n.removeAttribute("aria-label")),r.sonify&&r.sonify()}),1e3)};n&&r&&(w(n,{tabindex:-1}),n.onclick=function(t){(r.options.accessibility&&r.options.accessibility.screenReaderSection.onPlayAsSoundClick||i).call(this,t,r)})},initDataTableButton:function(t){var e=this.viewDataTableButton=b(t),n=this.chart;t=t.replace("hc-linkto-",""),e&&(w(e,{tabindex:-1,"aria-expanded":!!b(t)}),e.onclick=n.options.accessibility.screenReaderSection.onViewDataTableClick||function(){n.viewData()})},getAxesDescription:function(){var t=this.chart,e=function(e,n){return 1<(e=t[e]).length||e[0]&&f(e[0].options.accessibility&&e[0].options.accessibility.enabled,n)},n=!!t.types&&0>t.types.indexOf("map"),r=!!t.hasCartesianSeries,i=e("xAxis",!t.angular&&r&&n);return e=e("yAxis",r&&n),n={},i&&(n.xAxis=this.getAxisDescriptionText("xAxis")),e&&(n.yAxis=this.getAxisDescriptionText("yAxis")),n},getAxisDescriptionText:function(t){var e=this.chart,n=e[t];return e.langFormat("accessibility.axis."+t+"Description"+(1{chartTitle}
{typeDescription}
{chartSubtitle}
{chartLongdesc}
{playAsSoundButton}
{viewTableButton}
{xAxisDescription}
{yAxisDescription}
{annotationsTitle}{annotationsList}
",afterChartFormat:"{endOfChartMarker}",axisRangeDateFormat:"%Y-%m-%d %H:%M:%S"},series:{describeSingleSeries:!1,pointDescriptionEnabledThreshold:200},point:{valueDescriptionFormat:"{index}. {xDescription}{separator}{value}."},landmarkVerbosity:"all",linkedDescription:'*[data-highcharts-chart="{index}"] + .highcharts-description',keyboardNavigation:{enabled:!0,focusBorder:{enabled:!0,hideBrowserFocusOutline:!0,style:{color:t.highlightColor80,lineWidth:2,borderRadius:3},margin:2},order:["series","zoom","rangeSelector","legend","chartMenu"],wrapAround:!0,seriesNavigation:{skipNullPoints:!0,pointNavigationEnabledThreshold:!1}},announceNewData:{enabled:!1,minAnnounceInterval:5e3,interruptUser:!1}},legend:{accessibility:{enabled:!0,keyboardNavigation:{enabled:!0}}},exporting:{accessibility:{enabled:!0}}}})),e(t,"Accessibility/Options/LangOptions.js",[],(function(){return{accessibility:{defaultChartTitle:"Chart",chartContainerLabel:"{title}. Highcharts interactive chart.",svgContainerLabel:"Interactive chart",drillUpButton:"{buttonText}",credits:"Chart credits: {creditsStr}",thousandsSep:",",svgContainerTitle:"",graphicContainerLabel:"",screenReaderSection:{beforeRegionLabel:"Chart screen reader information, {chartTitle}.",afterRegionLabel:"",annotations:{heading:"Chart annotations summary",descriptionSinglePoint:"{annotationText}. Related to {annotationPoint}",descriptionMultiplePoints:"{annotationText}. Related to {annotationPoint}{ Also related to, #each(additionalAnnotationPoints)}",descriptionNoPoints:"{annotationText}"},endOfChartMarker:"End of interactive chart."},sonification:{playAsSoundButtonText:"Play as sound, {chartTitle}",playAsSoundClickAnnouncement:"Play"},legend:{legendLabelNoTitle:"Toggle series visibility, {chartTitle}",legendLabel:"Chart legend: {legendTitle}",legendItem:"Show {itemName}"},zoom:{mapZoomIn:"Zoom chart",mapZoomOut:"Zoom out chart",resetZoomButton:"Reset zoom"},rangeSelector:{dropdownLabel:"{rangeTitle}",minInputLabel:"Select start date.",maxInputLabel:"Select end date.",clickButtonAnnouncement:"Viewing {axisRangeDescription}"},table:{viewAsDataTableButtonText:"View as data table, {chartTitle}",tableSummary:"Table representation of chart."},announceNewData:{newDataAnnounce:"Updated data for chart {chartTitle}",newSeriesAnnounceSingle:"New data series: {seriesDesc}",newPointAnnounceSingle:"New data point: {pointDesc}",newSeriesAnnounceMultiple:"New data series in chart {chartTitle}: {seriesDesc}",newPointAnnounceMultiple:"New data point in chart {chartTitle}: {pointDesc}"},seriesTypeDescriptions:{boxplot:"Box plot charts are typically used to display groups of statistical data. Each data point in the chart can have up to 5 values: minimum, lower quartile, median, upper quartile, and maximum.",arearange:"Arearange charts are line charts displaying a range between a lower and higher value for each point.",areasplinerange:"These charts are line charts displaying a range between a lower and higher value for each point.",bubble:"Bubble charts are scatter charts where each data point also has a size value.",columnrange:"Columnrange charts are column charts displaying a range between a lower and higher value for each point.",errorbar:"Errorbar series are used to display the variability of the data.",funnel:"Funnel charts are used to display reduction of data in stages.",pyramid:"Pyramid charts consist of a single pyramid with item heights corresponding to each point value.",waterfall:"A waterfall chart is a column chart where each column contributes towards a total end value."},chartTypes:{emptyChart:"Empty chart",mapTypeDescription:"Map of {mapTitle} with {numSeries} data series.",unknownMap:"Map of unspecified region with {numSeries} data series.",combinationChart:"Combination chart with {numSeries} data series.",defaultSingle:"Chart with {numPoints} data {#plural(numPoints, points, point)}.",defaultMultiple:"Chart with {numSeries} data series.",splineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",splineMultiple:"Line chart with {numSeries} lines.",lineSingle:"Line chart with {numPoints} data {#plural(numPoints, points, point)}.",lineMultiple:"Line chart with {numSeries} lines.",columnSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",columnMultiple:"Bar chart with {numSeries} data series.",barSingle:"Bar chart with {numPoints} {#plural(numPoints, bars, bar)}.",barMultiple:"Bar chart with {numSeries} data series.",pieSingle:"Pie chart with {numPoints} {#plural(numPoints, slices, slice)}.",pieMultiple:"Pie chart with {numSeries} pies.",scatterSingle:"Scatter chart with {numPoints} {#plural(numPoints, points, point)}.",scatterMultiple:"Scatter chart with {numSeries} data series.",boxplotSingle:"Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotMultiple:"Boxplot with {numSeries} data series.",bubbleSingle:"Bubble chart with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleMultiple:"Bubble chart with {numSeries} data series."},axis:{xAxisDescriptionSingular:"The chart has 1 X axis displaying {names[0]}. {ranges[0]}",xAxisDescriptionPlural:"The chart has {numAxes} X axes displaying {#each(names, -1) }and {names[-1]}.",yAxisDescriptionSingular:"The chart has 1 Y axis displaying {names[0]}. {ranges[0]}",yAxisDescriptionPlural:"The chart has {numAxes} Y axes displaying {#each(names, -1) }and {names[-1]}.",timeRangeDays:"Range: {range} days.",timeRangeHours:"Range: {range} hours.",timeRangeMinutes:"Range: {range} minutes.",timeRangeSeconds:"Range: {range} seconds.",rangeFromTo:"Range: {rangeFrom} to {rangeTo}.",rangeCategories:"Range: {numCategories} categories."},exporting:{chartMenuLabel:"Chart menu",menuButtonLabel:"View chart menu",exportRegionLabel:"Chart menu, {chartTitle}"},series:{summary:{default:"{name}, series {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",defaultCombination:"{name}, series {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",line:"{name}, line {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",lineCombination:"{name}, series {ix} of {numSeries}. Line with {numPoints} data {#plural(numPoints, points, point)}.",spline:"{name}, line {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",splineCombination:"{name}, series {ix} of {numSeries}. Line with {numPoints} data {#plural(numPoints, points, point)}.",column:"{name}, bar series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bars, bar)}.",columnCombination:"{name}, series {ix} of {numSeries}. Bar series with {numPoints} {#plural(numPoints, bars, bar)}.",bar:"{name}, bar series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bars, bar)}.",barCombination:"{name}, series {ix} of {numSeries}. Bar series with {numPoints} {#plural(numPoints, bars, bar)}.",pie:"{name}, pie {ix} of {numSeries} with {numPoints} {#plural(numPoints, slices, slice)}.",pieCombination:"{name}, series {ix} of {numSeries}. Pie with {numPoints} {#plural(numPoints, slices, slice)}.",scatter:"{name}, scatter plot {ix} of {numSeries} with {numPoints} {#plural(numPoints, points, point)}.",scatterCombination:"{name}, series {ix} of {numSeries}, scatter plot with {numPoints} {#plural(numPoints, points, point)}.",boxplot:"{name}, boxplot {ix} of {numSeries} with {numPoints} {#plural(numPoints, boxes, box)}.",boxplotCombination:"{name}, series {ix} of {numSeries}. Boxplot with {numPoints} {#plural(numPoints, boxes, box)}.",bubble:"{name}, bubble series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bubbles, bubble)}.",bubbleCombination:"{name}, series {ix} of {numSeries}. Bubble series with {numPoints} {#plural(numPoints, bubbles, bubble)}.",map:"{name}, map {ix} of {numSeries} with {numPoints} {#plural(numPoints, areas, area)}.",mapCombination:"{name}, series {ix} of {numSeries}. Map with {numPoints} {#plural(numPoints, areas, area)}.",mapline:"{name}, line {ix} of {numSeries} with {numPoints} data {#plural(numPoints, points, point)}.",maplineCombination:"{name}, series {ix} of {numSeries}. Line with {numPoints} data {#plural(numPoints, points, point)}.",mapbubble:"{name}, bubble series {ix} of {numSeries} with {numPoints} {#plural(numPoints, bubbles, bubble)}.",mapbubbleCombination:"{name}, series {ix} of {numSeries}. Bubble series with {numPoints} {#plural(numPoints, bubbles, bubble)}."},description:"{description}",xAxisDescription:"X axis, {name}",yAxisDescription:"Y axis, {name}",nullPointValue:"No value",pointAnnotationsDescription:"{Annotation: #each(annotations). }"}}}})),e(t,"Accessibility/Options/DeprecatedOptions.js",[t["Core/Utilities.js"]],(function(t){function e(t,e,n){for(var r,o=0;o(n=isNaN(n)?e.length:n)?e.length+n:Math.min(n,e.length),o=0;oi?"undefined"===typeof(t=e[e.length+i])&&(t=e[0]):"undefined"===typeof(t=e[i])&&(t=e[e.length-1])),"undefined"!==typeof t?t:""):"{"+t+"}"}var o=n.format,a=r.pick;e.i18nFormat=function(t,e,n){var r=function(t,e){var n=(t=t.slice(e||0)).indexOf("{"),r=t.indexOf("}");if(-1n)return{statement:t.substring(n+1,r),begin:e+n+1,end:e+r}},a=[],s=0;do{var l=r(t,s),u=t.substring(s,l&&l.begin-1);u.length&&a.push({value:u,type:"constant"}),l&&a.push({value:l.statement,type:"statement"}),s=l?l.end+1:s+1}while(l);return a.forEach((function(t){"statement"===t.type&&(t.value=i(t.value,e))})),o(a.reduce((function(t,e){return t+e.value}),""),e,n)},t.prototype.langFormat=function(t,n){t=t.split(".");for(var r=this.options.lang,i=0;i0?this.introJs.showHints():e||this.introJs.hideHints()}},{key:"render",value:function(){return null}}])&&p(e.prototype,n),i&&p(e,i),a}(o.Component);e.default=b,y(b,"propTypes",{enabled:i.default.bool,hints:i.default.arrayOf(i.default.shape({element:i.default.string.isRequired,hint:i.default.string.isRequired,hintPosition:a.hintPosition})).isRequired,onClick:i.default.func,onClose:i.default.func,options:a.options}),y(b,"defaultProps",{enabled:!1,onClick:null,onClose:null,options:s.options})},7248:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h(n(7600)),i=h(n(1386)),o=n(4519),a=n(8002),s=c(n(3641)),l=c(n(4310));function u(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return u=function(){return t},t}function c(t){if(t&&t.__esModule)return t;if(null===t||"object"!==f(t)&&"function"!==typeof t)return{default:t};var e=u();if(e&&e.has(t))return e.get(t);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=r?Object.getOwnPropertyDescriptor(t,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=t[i]}return n.default=t,e&&e.set(t,n),n}function h(t){return t&&t.__esModule?t:{default:t}}function f(t){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e0&&!this.isVisible?(this.introJs.start(),this.isVisible=!0,this.introJs.goToStepNumber(n+1),i&&i(this.introJs._currentStep)):!e&&this.isVisible&&(this.isVisible=!1,this.introJs.exit())}},{key:"render",value:function(){return null}}])&&m(e.prototype,n),i&&m(e,i),l}(o.Component);e.default=w,x(w,"propTypes",{enabled:i.default.bool,initialStep:i.default.number.isRequired,steps:i.default.arrayOf(i.default.shape({element:i.default.oneOfType([i.default.string,i.default.instanceOf(Element)]),intro:i.default.node.isRequired,position:s.tooltipPosition,tooltipClass:i.default.string,highlightClass:i.default.string})).isRequired,onStart:i.default.func,onExit:i.default.func.isRequired,onBeforeExit:i.default.func,onBeforeChange:i.default.func,onAfterChange:i.default.func,onChange:i.default.func,onPreventChange:i.default.func,onComplete:i.default.func,options:s.options}),x(w,"defaultProps",{enabled:!1,onStart:null,onBeforeExit:null,onBeforeChange:null,onAfterChange:null,onChange:null,onPreventChange:null,onComplete:null,options:l.options})},4310:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.options=void 0;e.options={hidePrev:!0,hideNext:!0}},3641:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.options=e.hintPosition=e.tooltipPosition=void 0;var r,i=(r=n(1386))&&r.__esModule?r:{default:r};var o=i.default.oneOf(["top","right","bottom","left","bottom-left-aligned","bottom-middle-aligned","bottom-right-aligned","top-left-aligned","top-middle-aligned","top-right-aligned","auto"]);e.tooltipPosition=o;var a=i.default.oneOf(["top-middle","top-left","top-right","bottom-left","bottom-right","bottom-middle","middle-left","middle-right","middle-middle"]);e.hintPosition=a;var s=i.default.shape({nextLabel:i.default.string,prevLabel:i.default.string,skipLabel:i.default.string,doneLabel:i.default.string,hidePrev:i.default.bool,hideNext:i.default.bool,tooltipPosition:o,tooltipClass:i.default.string,highlightClass:i.default.string,exitOnEsc:i.default.bool,exitOnOverlayClick:i.default.bool,showStepNumbers:i.default.bool,keyboardNavigation:i.default.bool,showButtons:i.default.bool,showBullets:i.default.bool,showProgress:i.default.bool,scrollToElement:i.default.bool,overlayOpacity:i.default.number,scrollPadding:i.default.number,positionPrecedence:i.default.arrayOf(i.default.string),disableInteraction:i.default.bool,hintPosition:a,hintButtonLabel:i.default.string,hintAnimation:i.default.bool});e.options=s},4595:function(t,e,n){"use strict";Object.defineProperty(e,"Rg",{enumerable:!0,get:function(){return r.default}});var r=o(n(7248)),i=o(n(9614));function o(t){return t&&t.__esModule?t:{default:t}}},7600:function(t,e,n){"use strict";function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(r){l=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof f?e:f,o=Object.create(i.prototype),a=new _(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function f(){}function d(){}function p(){}var m={};l(m,o,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(k([])));v&&v!==e&&n.call(v,o)&&(m=v);var y=p.prototype=f.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function r(i,o,a,s){var l=c(t[i],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(h).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,s)}))}s(l.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function w(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function o(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,l,"next",t)}function l(t){o(a,r,i,s,l,"throw",t)}s(void 0)}))}}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:"introjs-stamp";return t[n]=t[n]||0,void 0===e[n]&&(e[n]=t[n]++),e[n]}}();function c(t,e,n){if(t)for(var r=0,i=t.length;r=0&&e.left>=0&&e.bottom+80<=window.innerHeight&&e.right<=window.innerWidth}(i))){var o=g().height;r.bottom-(r.bottom-r.top)<0||i.clientHeight>o?window.scrollBy(0,r.top-(o/2-r.height/2)-this._options.scrollPadding):window.scrollBy(0,r.top-(o/2-r.height/2)+this._options.scrollPadding)}}function y(t){t.setAttribute("role","button"),t.tabIndex=0}function b(t){var e=t.parentNode;return!(!e||"HTML"===e.nodeName)&&("fixed"===d(t,"position")||b(e))}function x(t,e){var n=document.body,r=document.documentElement,i=window.pageYOffset||r.scrollTop||n.scrollTop,o=window.pageXOffset||r.scrollLeft||n.scrollLeft;e=e||n;var a=t.getBoundingClientRect(),s=e.getBoundingClientRect(),l=d(e,"position"),u={width:a.width,height:a.height};return"body"!==e.tagName.toLowerCase()&&"relative"===l||"sticky"===l?Object.assign(u,{top:a.top-s.top,left:a.left-s.left}):b(t)?Object.assign(u,{top:a.top,left:a.left}):Object.assign(u,{top:a.top+i,left:a.left+o})}var w=function(t){try{return!!t()}catch(t){return!0}},S=!w((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),C=Function.prototype,_=C.apply,k=C.call,E="object"==typeof Reflect&&Reflect.apply||(S?k.bind(_):function(){return k.apply(_,arguments)}),M=Function.prototype.call,T=S?M.bind(M):function(){return M.apply(M,arguments)},A=Function.prototype,O=A.bind,P=A.call,N=S&&O.bind(P,P),j=S?function(t){return t&&N(t)}:function(t){return t&&function(){return P.apply(t,arguments)}},L="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof n.g?n.g:"undefined"!=typeof self?self:{};function D(t,e){return t(e={exports:{}},e.exports),e.exports}var I,R,B=function(t){return t&&t.Math==Math&&t},F=B("object"==typeof globalThis&&globalThis)||B("object"==typeof window&&window)||B("object"==typeof self&&self)||B("object"==typeof L&&L)||function(){return this}()||Function("return this")(),z=!w((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),H={}.propertyIsEnumerable,U=Object.getOwnPropertyDescriptor,G={f:U&&!H.call({1:2},1)?function(t){var e=U(this,t);return!!e&&e.enumerable}:H},W=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=j({}.toString),Y=j("".slice),X=function(t){return Y(V(t),8,-1)},q=Object,Z=j("".split),$=w((function(){return!q("z").propertyIsEnumerable(0)}))?function(t){return"String"==X(t)?Z(t,""):q(t)}:q,K=TypeError,Q=function(t){if(null==t)throw K("Can't call method on "+t);return t},J=function(t){return $(Q(t))},tt=function(t){return"function"==typeof t},et=function(t){return"object"==typeof t?null!==t:tt(t)},nt=function(t,e){return arguments.length<2?function(t){return tt(t)?t:void 0}(F[t]):F[t]&&F[t][e]},rt=j({}.isPrototypeOf),it=nt("navigator","userAgent")||"",ot=F.process,at=F.Deno,st=ot&&ot.versions||at&&at.version,lt=st&&st.v8;lt&&(R=(I=lt.split("."))[0]>0&&I[0]<4?1:+(I[0]+I[1])),!R&&it&&(!(I=it.match(/Edge\/(\d+)/))||I[1]>=74)&&(I=it.match(/Chrome\/(\d+)/))&&(R=+I[1]);var ut=R,ct=!!Object.getOwnPropertySymbols&&!w((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ut&&ut<41})),ht=ct&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ft=Object,dt=ht?function(t){return"symbol"==typeof t}:function(t){var e=nt("Symbol");return tt(e)&&rt(e.prototype,ft(t))},pt=String,mt=TypeError,gt=function(t,e){var n=t[e];return null==n?void 0:function(t){if(tt(t))return t;throw mt(function(t){try{return pt(t)}catch(t){return"Object"}}(t)+" is not a function")}(n)},vt=TypeError,yt=Object.defineProperty,bt=function(t,e){try{yt(F,t,{value:e,configurable:!0,writable:!0})}catch(o){F[t]=e}return e},xt=F["__core-js_shared__"]||bt("__core-js_shared__",{}),wt=D((function(t){(t.exports=function(t,e){return xt[t]||(xt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.3",mode:"global",copyright:"\xa9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.3/LICENSE",source:"https://github.com/zloirock/core-js"})})),St=Object,Ct=function(t){return St(Q(t))},_t=j({}.hasOwnProperty),kt=Object.hasOwn||function(t,e){return _t(Ct(t),e)},Et=0,Mt=Math.random(),Tt=j(1..toString),At=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Tt(++Et+Mt,36)},Ot=wt("wks"),Pt=F.Symbol,Nt=Pt&&Pt.for,jt=ht?Pt:Pt&&Pt.withoutSetter||At,Lt=function(t){if(!kt(Ot,t)||!ct&&"string"!=typeof Ot[t]){var e="Symbol."+t;ct&&kt(Pt,t)?Ot[t]=Pt[t]:Ot[t]=ht&&Nt?Nt(e):jt(e)}return Ot[t]},Dt=TypeError,It=Lt("toPrimitive"),Rt=function(t){var e=function(t,e){if(!et(t)||dt(t))return t;var n,r=gt(t,It);if(r){if(void 0===e&&(e="default"),n=T(r,t,e),!et(n)||dt(n))return n;throw Dt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&tt(n=t.toString)&&!et(r=T(n,t)))return r;if(tt(n=t.valueOf)&&!et(r=T(n,t)))return r;if("string"!==e&&tt(n=t.toString)&&!et(r=T(n,t)))return r;throw vt("Can't convert object to primitive value")}(t,e)}(t,"string");return dt(e)?e:e+""},Bt=F.document,Ft=et(Bt)&&et(Bt.createElement),zt=function(t){return Ft?Bt.createElement(t):{}},Ht=!z&&!w((function(){return 7!=Object.defineProperty(zt("div"),"a",{get:function(){return 7}}).a})),Ut=Object.getOwnPropertyDescriptor,Gt={f:z?Ut:function(t,e){if(t=J(t),e=Rt(e),Ht)try{return Ut(t,e)}catch(t){}if(kt(t,e))return W(!T(G.f,t,e),t[e])}},Wt=z&&w((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Vt=String,Yt=TypeError,Xt=function(t){if(et(t))return t;throw Yt(Vt(t)+" is not an object")},qt=TypeError,Zt=Object.defineProperty,$t=Object.getOwnPropertyDescriptor,Kt={f:z?Wt?function(t,e,n){if(Xt(t),e=Rt(e),Xt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var r=$t(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return Zt(t,e,n)}:Zt:function(t,e,n){if(Xt(t),e=Rt(e),Xt(n),Ht)try{return Zt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw qt("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Qt=z?function(t,e,n){return Kt.f(t,e,W(1,n))}:function(t,e,n){return t[e]=n,t},Jt=Function.prototype,te=z&&Object.getOwnPropertyDescriptor,ee=kt(Jt,"name"),ne={EXISTS:ee,PROPER:ee&&"something"===function(){}.name,CONFIGURABLE:ee&&(!z||z&&te(Jt,"name").configurable)},re=j(Function.toString);tt(xt.inspectSource)||(xt.inspectSource=function(t){return re(t)});var ie,oe,ae,se=xt.inspectSource,le=F.WeakMap,ue=tt(le)&&/native code/.test(se(le)),ce=wt("keys"),he=function(t){return ce[t]||(ce[t]=At(t))},fe={},de=F.TypeError,pe=F.WeakMap;if(ue||xt.state){var me=xt.state||(xt.state=new pe),ge=j(me.get),ve=j(me.has),ye=j(me.set);ie=function(t,e){if(ve(me,t))throw new de("Object already initialized");return e.facade=t,ye(me,t,e),e},oe=function(t){return ge(me,t)||{}},ae=function(t){return ve(me,t)}}else{var be=he("state");fe[be]=!0,ie=function(t,e){if(kt(t,be))throw new de("Object already initialized");return e.facade=t,Qt(t,be,e),e},oe=function(t){return kt(t,be)?t[be]:{}},ae=function(t){return kt(t,be)}}var xe={set:ie,get:oe,has:ae,enforce:function(t){return ae(t)?oe(t):ie(t,{})},getterFor:function(t){return function(e){var n;if(!et(e)||(n=oe(e)).type!==t)throw de("Incompatible receiver, "+t+" required");return n}}},we=D((function(t){var e=ne.CONFIGURABLE,n=xe.enforce,r=xe.get,i=Object.defineProperty,o=z&&!w((function(){return 8!==i((function(){}),"length",{value:8}).length})),a=String(String).split("String"),s=t.exports=function(t,r,s){"Symbol("===String(r).slice(0,7)&&(r="["+String(r).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),s&&s.getter&&(r="get "+r),s&&s.setter&&(r="set "+r),(!kt(t,"name")||e&&t.name!==r)&&(z?i(t,"name",{value:r,configurable:!0}):t.name=r),o&&s&&kt(s,"arity")&&t.length!==s.arity&&i(t,"length",{value:s.arity});try{s&&kt(s,"constructor")&&s.constructor?z&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var l=n(t);return kt(l,"source")||(l.source=a.join("string"==typeof r?r:"")),t};Function.prototype.toString=s((function(){return tt(this)&&r(this).source||se(this)}),"toString")})),Se=function(t,e,n,r){r||(r={});var i=r.enumerable,o=void 0!==r.name?r.name:e;if(tt(n)&&we(n,o,r),r.global)i?t[e]=n:bt(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch(t){}i?t[e]=n:Kt.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},Ce=Math.ceil,_e=Math.floor,ke=Math.trunc||function(t){var e=+t;return(e>0?_e:Ce)(e)},Ee=function(t){var e=+t;return e!=e||0===e?0:ke(e)},Me=Math.max,Te=Math.min,Ae=Math.min,Oe=function(t){return t>0?Ae(Ee(t),9007199254740991):0},Pe=function(t){return function(e,n,r){var i,o=J(e),a=Oe(o.length),s=function(t,e){var n=Ee(t);return n<0?Me(n+e,0):Te(n,e)}(r,a);if(t&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},Ne={includes:Pe(!0),indexOf:Pe(!1)},je=Ne.indexOf,Le=j([].push),De=function(t,e){var n,r=J(t),i=0,o=[];for(n in r)!kt(fe,n)&&kt(r,n)&&Le(o,n);for(;e.length>i;)kt(r,n=e[i++])&&(~je(o,n)||Le(o,n));return o},Ie=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Re=Ie.concat("length","prototype"),Be={f:Object.getOwnPropertyNames||function(t){return De(t,Re)}},Fe={f:Object.getOwnPropertySymbols},ze=j([].concat),He=nt("Reflect","ownKeys")||function(t){var e=Be.f(Xt(t)),n=Fe.f;return n?ze(e,n(t)):e},Ue=function(t,e,n){for(var r=He(e),i=Kt.f,o=Gt.f,a=0;aa;)Kt.f(t,n=i[a++],r[n]);return t},mn={f:pn},gn=nt("document","documentElement"),vn=he("IE_PROTO"),yn=function(){},bn=function(t){return"