ok

Mini Shell

Direktori : /home2/selectio/www/fms-worksuite/public/vendor/jquery/
Upload File :
Current File : /home2/selectio/www/fms-worksuite/public/vendor/jquery/jscharting.js

/*
 * jscharting.js v3.3.1.20220428
 * (c) 2009-2022 Corporate Web Solutions Ltd.
 * All client side / JavaScript code may not be used in any way without a valid JSCharting license.
 * License holder usage is governed by the license.txt terms included with the distribution.
 * To license JSCharting for your own use, please visit jscharting.com 
 */
'use strict';(function(S,L){"object"===typeof exports&&"undefined"!==typeof module?L(exports):"function"===typeof define&&define.amd?define(["exports"],L):(S=S||self,L(S.JSC={}))})(this,function(S){function L(c,a){function b(){this.constructor=c}yj(c,a);c.prototype=null===a?Object.create(a):(b.prototype=a.prototype,new b)}function Fb(c,a,b,d){var e=arguments.length,f=3>e?a:null===d?d=Object.getOwnPropertyDescriptor(a,b):d,g;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)f=Reflect.decorate(c,
a,b,d);else for(var h=c.length-1;0<=h;h--)if(g=c[h])f=(3>e?g(f):3<e?g(a,b,f):g(a,b))||f;return 3<e&&f&&Object.defineProperty(a,b,f),f}function xa(c){var a="function"===typeof Symbol&&c[Symbol.iterator],b=0;return a?a.call(c):{next:function(){c&&b>=c.length&&(c=void 0);return{value:c&&c[b++],done:!c}}}}function F(c,a){var b="function"===typeof Symbol&&c[Symbol.iterator];if(!b)return c;c=b.call(c);var d,e=[];try{for(;(void 0===a||0<a--)&&!(d=c.next()).done;)e.push(d.value)}catch(g){var f={error:g}}finally{try{d&&
!d.done&&(b=c["return"])&&b.call(c)}finally{if(f)throw f.error;}}return e}function G(){for(var c=[],a=0;a<arguments.length;a++)c=c.concat(F(arguments[a]));return c}function t(c){return void 0!==c}function H(c,a){return Lu.call(c,a)}function jb(c,a){a=c&&c.indexOf(a);-1<a&&c.splice(a,1);return a}function C(c,a){if(a){a=a.split(".");for(var b=0;void 0!==c&&b<a.length;b++)c=c[a[b]]}return c}function J(c,a){if(a)for(var b=0;void 0!==c&&b<a.length;b++)c=c[a[b]];return c}function on(c){return null===c}
function K(c){var a=typeof c;if("undefined"!==a){if("boolean"===a)return"boolean";if("number"===a)return"number";if("function"===a)return"function";if(c&&c.pop)return"array";if("string"===a)return"string";if(null===c)return"null";if("object"===a)return c&&c.getUTCMilliseconds?"date":"object"}return"undefined"}function xd(c){return null==c?void 0===c?"[object Undefined]":"[object Null]":Mu.call(c)}function pn(c,a){return function(b){return c(a(b))}}function Tc(c){return null!=c&&"object"==typeof c}
function Qe(c){return null==c?"":Rf(c)}function dh(c){if(!Tc(c)||"[object Object]"!=xd(c))return!1;c=zj(c);if(null===c)return!0;c=rb.call(c,"constructor")&&c.constructor;return"function"==typeof c&&c instanceof c&&eh.call(c)==Nu}function Aj(c,a){for(var b=-1,d=null==c?0:c.length,e=0,f=[];++b<d;){var g=c[b];a(g,b,c)&&(f[e++]=g)}return f}function Bj(c,a){for(var b=-1,d=Array(c);++b<c;)d[b]=a(b);return d}function qn(c){return Tc(c)&&"[object Arguments]"==xd(c)}function Ou(){return!1}function fh(c,a){a=
null==a?9007199254740991:a;return!!a&&("number"==typeof c||Pu.test(c))&&-1<c&&0==c%1&&c<a}function Cj(c){return"number"==typeof c&&-1<c&&0==c%1&&9007199254740991>=c}function Qu(c){return Tc(c)&&Cj(c.length)&&!!Ea[xd(c)]}function rn(c){return function(a){return c(a)}}function sn(c,a){var b=ab(c),d=!b&&Re(c),e=!b&&!d&&Se(c),f=!b&&!d&&!e&&gh(c);d=(b=b||d||e||f)?Bj(c.length,String):[];var g=d.length,h;for(h in c)!a&&!rb.call(c,h)||b&&("length"==h||e&&("offset"==h||"parent"==h)||f&&("buffer"==h||"byteLength"==
h||"byteOffset"==h)||fh(h,g))||d.push(h);return d}function hh(c){var a=c&&c.constructor;return c===("function"==typeof a&&a.prototype||Sf)}function tn(c){if(!hh(c))return Ru(c);var a=[],b;for(b in Object(c))rb.call(c,b)&&"constructor"!=b&&a.push(b);return a}function yb(c){var a=typeof c;return null!=c&&("object"==a||"function"==a)}function Gb(c){if(!yb(c))return!1;c=xd(c);return"[object Function]"==c||"[object GeneratorFunction]"==c||"[object AsyncFunction]"==c||"[object Proxy]"==c}function yd(c){return null!=
c&&Cj(c.length)&&!Gb(c)}function Te(c){return yd(c)?sn(c):tn(c)}function Su(c,a){var b=[];ih(c,function(c,e,f){a(c,e,f)&&b.push(c)});return b}function Td(c,a){return c===a||c!==c&&a!==a}function jh(c,a){for(var b=c.length;b--;)if(Td(c[b][0],a))return b;return-1}function Uc(c){var a=-1,b=null==c?0:c.length;for(this.clear();++a<b;){var d=c[a];this.set(d[0],d[1])}}function Ud(c){if(null!=c){try{return eh.call(c)}catch(a){}return c+""}return""}function Vd(c,a){c=null==c?void 0:c[a];return(a=!yb(c)||un&&
un in c?!1:(Gb(c)?Tu:Uu).test(Ud(c)))?c:void 0}function Wd(c){var a=-1,b=null==c?0:c.length;for(this.clear();++a<b;){var d=c[a];this.set(d[0],d[1])}}function kh(c,a){c=c.__data__;var b=typeof a;return("string"==b||"number"==b||"symbol"==b||"boolean"==b?"__proto__"!==a:null===a)?c["string"==typeof a?"string":"hash"]:c.map}function Vc(c){var a=-1,b=null==c?0:c.length;for(this.clear();++a<b;){var d=c[a];this.set(d[0],d[1])}}function nc(c){this.size=(this.__data__=new Uc(c)).size}function Xd(c){var a=
-1,b=null==c?0:c.length;for(this.__data__=new Vc;++a<b;)this.add(c[a])}function Vu(c,a){for(var b=-1,d=null==c?0:c.length;++b<d;)if(a(c[b],b,c))return!0;return!1}function vn(c,a){return c.has(a)}function wn(c,a,b,d,e,f){var g=b&1,h=c.length,k=a.length;if(h!=k&&!(g&&k>h))return!1;if((k=f.get(c))&&f.get(a))return k==a;k=-1;var l=!0,m=b&2?new Xd:void 0;f.set(c,a);for(f.set(a,c);++k<h;){var n=c[k],p=a[k];if(d)var q=g?d(p,n,k,a,c,f):d(n,p,k,c,a,f);if(void 0!==q){if(q)continue;l=!1;break}if(m){if(!Vu(a,
function(a,c){if(!m.has(c)&&(n===a||e(n,a,b,d,f)))return m.push(c)})){l=!1;break}}else if(n!==p&&!e(n,p,b,d,f)){l=!1;break}}f["delete"](c);f["delete"](a);return l}function Dj(c){var a=-1,b=Array(c.size);c.forEach(function(c,e){b[++a]=[e,c]});return b}function Tf(c){var a=-1,b=Array(c.size);c.forEach(function(c){b[++a]=c});return b}function Wu(c,a,b,d,e,f,g){switch(b){case "[object DataView]":if(c.byteLength!=a.byteLength||c.byteOffset!=a.byteOffset)break;c=c.buffer;a=a.buffer;case "[object ArrayBuffer]":if(c.byteLength!=
a.byteLength||!f(new lh(c),new lh(a)))break;return!0;case "[object Boolean]":case "[object Date]":case "[object Number]":return Td(+c,+a);case "[object Error]":return c.name==a.name&&c.message==a.message;case "[object RegExp]":case "[object String]":return c==a+"";case "[object Map]":var h=Dj;case "[object Set]":h||(h=Tf);if(c.size!=a.size&&!(d&1))break;if(b=g.get(c))return b==a;d|=2;g.set(c,a);a=wn(h(c),h(a),d,e,f,g);g["delete"](c);return a;case "[object Symbol]":if(Uf)return Uf.call(c)==Uf.call(a)}return!1}
function Ej(c,a){for(var b=-1,d=a.length,e=c.length;++b<d;)c[e+b]=a[b];return c}function xn(c,a,b){a=a(c);return ab(c)?a:Ej(a,b(c))}function yn(){return[]}function Fj(c){return xn(c,Te,Gj)}function zc(c,a,b,d,e){if(c===a)return!0;if(null==c||null==a||!Tc(c)&&!Tc(a))return c!==c&&a!==a;a:{var f=ab(c),g=ab(a),h=f?"[object Array]":Ac(c),k=g?"[object Array]":Ac(a);h="[object Arguments]"==h?"[object Object]":h;k="[object Arguments]"==k?"[object Object]":k;var l="[object Object]"==h;g="[object Object]"==
k;if((k=h==k)&&Se(c)){if(!Se(a)){a=!1;break a}f=!0;l=!1}if(k&&!l)e||(e=new nc),a=f||gh(c)?wn(c,a,b,d,zc,e):Wu(c,a,h,b,d,zc,e);else if(b&1||(f=l&&rb.call(c,"__wrapped__"),h=g&&rb.call(a,"__wrapped__"),!f&&!h))if(k)b:if(e||(e=new nc),f=b&1,h=Fj(c),g=h.length,k=Fj(a).length,g==k||f){for(l=g;l--;){var m=h[l];if(!(f?m in a:rb.call(a,m))){a=!1;break b}}if((k=e.get(c))&&e.get(a))a=k==a;else{k=!0;e.set(c,a);e.set(a,c);for(var n=f;++l<g;){m=h[l];var p=c[m],q=a[m];if(d)var r=f?d(q,p,m,a,c,e):d(p,q,m,c,a,e);
if(void 0===r?p!==q&&!zc(p,q,b,d,e):!r){k=!1;break}n||(n="constructor"==m)}k&&!n&&(b=c.constructor,d=a.constructor,b!=d&&"constructor"in c&&"constructor"in a&&!("function"==typeof b&&b instanceof b&&"function"==typeof d&&d instanceof d)&&(k=!1));e["delete"](c);e["delete"](a);a=k}}else a=!1;else a=!1;else c=f?c.value():c,a=h?a.value():a,e||(e=new nc),a=zc(c,a,b,d,e)}return a}function Xu(c,a,b,d){var e=b.length,f=e,g=!d;if(null==c)return!f;for(c=Object(c);e--;){var h=b[e];if(g&&h[2]?h[1]!==c[h[0]]:
!(h[0]in c))return!1}for(;++e<f;){h=b[e];var k=h[0],l=c[k],m=h[1];if(g&&h[2]){if(void 0===l&&!(k in c))return!1}else{h=new nc;if(d)var n=d(l,m,k,c,a,h);if(void 0===n?!zc(m,l,3,d,h):!n)return!1}}return!0}function Yu(c){for(var a=Te(c),b=a.length;b--;){var d=a[b],e=c[d];a[b]=[d,e,e===e&&!yb(e)]}return a}function zn(c,a){return function(b){return null==b?!1:b[c]===a&&(void 0!==a||c in Object(b))}}function Zu(c){var a=Yu(c);return 1==a.length&&a[0][2]?zn(a[0][0],a[0][1]):function(b){return b===c||Xu(b,
c,a)}}function Yd(c){return"symbol"==typeof c||Tc(c)&&"[object Symbol]"==xd(c)}function Hj(c,a){if(ab(c))return!1;var b=typeof c;return"number"==b||"symbol"==b||"boolean"==b||null==c||Yd(c)?!0:$u.test(c)||!av.test(c)||null!=a&&c in Object(a)}function Zd(c,a){for(var b=-1,d=null==c?0:c.length,e=Array(d);++b<d;)e[b]=a(c[b],b,c);return e}function Rf(c){if("string"==typeof c)return c;if(ab(c))return Zd(c,Rf)+"";if(Yd(c))return An?An.call(c):"";var a=c+"";return"0"==a&&1/c==-Vf?"-0":a}function mh(c,a){return ab(c)?
c:Hj(c,a)?[c]:bv(Qe(c))}function Wf(c){if("string"==typeof c||Yd(c))return c;var a=c+"";return"0"==a&&1/c==-Vf?"-0":a}function Ij(c,a){a=mh(a,c);for(var b=0,d=a.length;null!=c&&b<d;)c=c[Wf(a[b++])];return b&&b==d?c:void 0}function cv(c,a){return Hj(c)&&a===a&&!yb(a)?zn(Wf(c),a):function(b){var d=null==b?void 0:Ij(b,c);d=void 0===d?void 0:d;if(void 0===d&&d===a){if(d=null!=b){d=c;d=mh(d,b);for(var e=-1,f=d.length,g=!1;++e<f;){var h=Wf(d[e]);if(!(g=null!=b&&null!=b&&h in Object(b)))break;b=b[h]}g||
++e!=f?d=g:(f=null==b?0:b.length,d=!!f&&Cj(f)&&fh(h,f)&&(ab(b)||Re(b)))}h=d}else h=zc(a,d,3);return h}}function $d(c){return c}function Bn(c){return function(a){return null==a?void 0:a[c]}}function dv(c){return function(a){return Ij(a,c)}}function ae(c,a){return"function"==typeof c?c:null==c?$d:"object"==typeof c?ab(c)?cv(c[0],c[1]):Zu(c):Hj(c)?Bn(Wf(c)):dv(c)}function Cn(c,a,b,d){var e=c.length;for(b+=d?1:-1;d?b--:++b<e;)if(a(c[b],b,c))return b;return-1}function nh(c){if("number"==typeof c)return c;
if(Yd(c))return Jj;yb(c)&&(c="function"==typeof c.valueOf?c.valueOf():c,c=yb(c)?c+"":c);if("string"!=typeof c)return 0===c?c:+c;c=c.replace(Dn,"");var a=ev.test(c);return a||fv.test(c)?gv(c.slice(2),a?2:8):hv.test(c)?Jj:+c}function Ue(c){c?(c=nh(c),c=c===Vf||c===-Vf?1.7976931348623157E308*(0>c?-1:1):c===c?c:0):c=0===c?c:0;var a=c%1;return c===c?a?c-a:c:0}function En(c,a,b){var d=null==c?0:c.length;if(!d)return-1;b=null==b?0:Ue(b);0>b&&(b=oh(d+b,0));return Cn(c,ae(a),b)}function Kj(c,a,b){switch(b.length){case 0:return c.call(a);
case 1:return c.call(a,b[0]);case 2:return c.call(a,b[0],b[1]);case 3:return c.call(a,b[0],b[1],b[2])}return c.apply(a,b)}function Lj(c,a,b){"__proto__"==a&&ph?ph(c,a,{configurable:!0,enumerable:!0,value:b,writable:!0}):c[a]=b}function Fn(c,a,b){var d=c[a];rb.call(c,a)&&Td(d,b)&&(void 0!==b||a in c)||Lj(c,a,b)}function be(c,a,b,d){var e=!b;b||(b={});for(var f=-1,g=a.length;++f<g;){var h=a[f],k=d?d(b[h],c[h],h,b,c):void 0;void 0===k&&(k=c[h]);e?Lj(b,h,k):Fn(b,h,k)}return b}function Gn(c,a,b){a=oh(void 0===
a?c.length-1:a,0);return function(){for(var d=arguments,e=-1,f=oh(d.length-a,0),g=Array(f);++e<f;)g[e]=d[a+e];e=-1;for(f=Array(a+1);++e<a;)f[e]=d[e];f[a]=b(g);return Kj(c,this,f)}}function iv(c){return function(){return c}}function ce(c,a){return Hn(Gn(c,a,$d),c+"")}function qh(c,a,b){if(!yb(b))return!1;var d=typeof a;return("number"==d?yd(b)&&fh(a,b.length):"string"==d&&a in b)?Td(b[a],c):!1}function Mj(c){return ce(function(a,b){var d=-1,e=b.length,f=1<e?b[e-1]:void 0,g=2<e?b[2]:void 0;f=3<c.length&&
"function"==typeof f?(e--,f):void 0;g&&qh(b[0],b[1],g)&&(f=3>e?void 0:f,e=1);for(a=Object(a);++d<e;)(g=b[d])&&c(a,g,d,f);return a})}function de(c){if(yd(c))c=sn(c,!0);else if(yb(c)){var a=hh(c),b=[];for(d in c)("constructor"!=d||!a&&rb.call(c,d))&&b.push(d);c=b}else{var d=[];if(null!=c)for(a in Object(c))d.push(a);c=d}return c}function jv(c,a,b,d){return void 0===c||Td(c,Sf[b])&&!rb.call(d,b)?a:c}function In(c,a,b){(void 0===b||Td(c[a],b))&&(void 0!==b||a in c)||Lj(c,a,b)}function Jn(c,a){if(a)return c.slice();
a=c.length;a=Kn?Kn(a):new c.constructor(a);c.copy(a);return a}function Nj(c){var a=new c.constructor(c.byteLength);(new lh(a)).set(new lh(c));return a}function Ln(c,a){a=a?Nj(c.buffer):c.buffer;return new c.constructor(a,c.byteOffset,c.length)}function Mn(c,a){var b=-1,d=c.length;for(a||(a=Array(d));++b<d;)a[b]=c[b];return a}function Nn(c){return"function"!=typeof c.constructor||hh(c)?{}:kv(zj(c))}function Xf(c){return Tc(c)&&yd(c)}function rh(c,a,b,d,e){c!==a&&Oj(a,function(f,g){if(yb(f)){e||(e=
new nc);f=e;var h=c[g],k=a[g],l=f.get(k);if(!l){l=d?d(h,k,g+"",c,a,f):void 0;var m=void 0===l;if(m){var n=ab(k),p=!n&&Se(k),q=!n&&!p&&gh(k);l=k;if(n||p||q)ab(h)?l=h:Xf(h)?l=Mn(h):p?(m=!1,l=Jn(k,!0)):q?(m=!1,l=Ln(k,!0)):l=[];else if(dh(k)||Re(k))if(l=h,Re(h))l=be(h,de(h));else{if(!yb(h)||b&&Gb(h))l=Nn(k)}else m=!1}m&&(f.set(k,l),rh(l,k,b,d,f),f["delete"](k))}In(c,g,l)}else h=d?d(c[g],f,g+"",c,a,e):void 0,void 0===h&&(h=f),In(c,g,h)},de)}function On(c,a,b,d,e,f){yb(c)&&yb(a)&&(f.set(a,c),rh(c,a,void 0,
On,f),f["delete"](a));return c}function Pn(c,a){for(var b=-1,d=null==c?0:c.length;++b<d&&!1!==a(c[b],b,c););return c}function lv(c,a){return c&&be(a,Te(a),c)}function mv(c,a){return c&&be(a,de(a),c)}function nv(c,a){return be(c,Gj(c),a)}function ov(c,a){return be(c,Qn(c),a)}function Rn(c){return xn(c,de,Qn)}function pv(c){var a=c.length,b=c.constructor(a);a&&"string"==typeof c[0]&&rb.call(c,"index")&&(b.index=c.index,b.input=c.input);return b}function qv(c,a){c.set(a[0],a[1]);return c}function Pj(c,
a,b,d){var e=-1,f=null==c?0:c.length;for(d&&f&&(b=c[++e]);++e<f;)b=a(b,c[e],e,c);return b}function rv(c,a){c.add(a);return c}function sv(c,a,b,d){var e=c.constructor;switch(a){case "[object ArrayBuffer]":return Nj(c);case "[object Boolean]":case "[object Date]":return new e(+c);case "[object DataView]":return a=d?Nj(c.buffer):c.buffer,new c.constructor(a,c.byteOffset,c.byteLength);case "[object Float32Array]":case "[object Float64Array]":case "[object Int8Array]":case "[object Int16Array]":case "[object Int32Array]":case "[object Uint8Array]":case "[object Uint8ClampedArray]":case "[object Uint16Array]":case "[object Uint32Array]":return Ln(c,
d);case "[object Map]":return a=d?b(Dj(c),1):Dj(c),Pj(a,qv,new c.constructor);case "[object Number]":case "[object String]":return new e(c);case "[object RegExp]":return a=new c.constructor(c.source,tv.exec(c)),a.lastIndex=c.lastIndex,a;case "[object Set]":return a=d?b(Tf(c),1):Tf(c),Pj(a,rv,new c.constructor);case "[object Symbol]":return Uf?Object(Uf.call(c)):{}}}function Yf(c,a,b,d,e,f){var g,h=a&1,k=a&2,l=a&4;b&&(g=e?b(c,d,e,f):b(c));if(void 0!==g)return g;if(!yb(c))return c;if(d=ab(c)){if(g=
pv(c),!h)return Mn(c,g)}else{var m=Ac(c),n="[object Function]"==m||"[object GeneratorFunction]"==m;if(Se(c))return Jn(c,h);if("[object Object]"==m||"[object Arguments]"==m||n&&!e){if(g=k||n?{}:Nn(c),!h)return k?ov(c,mv(g,c)):nv(c,lv(g,c))}else{if(!Ba[m])return e?c:{};g=sv(c,m,Yf,h)}}f||(f=new nc);if(e=f.get(c))return e;f.set(c,g);k=l?k?Rn:Fj:k?de:Te;var p=d?void 0:k(c);Pn(p||c,function(d,e){p&&(e=d,d=c[e]);Fn(g,e,Yf(d,a,b,e,c,f))});return g}function Qj(c){return"function"==typeof c?c:$d}function Sn(c,
a){var b=-1,d=yd(c)?Array(c.length):[];ih(c,function(c,f,g){d[++b]=a(c,f,g)});return d}function uv(c,a,b,d,e){e(c,function(c,e,h){b=d?(d=!1,c):a(b,c,e,h)});return b}function vv(c){return c!==c}function Rj(c,a,b){if(a===a)a:{--b;for(var d=c.length;++b<d;)if(c[b]===a){c=b;break a}c=-1}else c=Cn(c,vv,b);return c}function sh(c,a){return!(null==c||!c.length)&&-1<Rj(c,a,0)}function wv(){}function xv(c){return ab(c)||Re(c)||!!(Tn&&c&&c[Tn])}function th(c,a,b,d,e){var f=-1,g=c.length;b||(b=xv);for(e||(e=
[]);++f<g;){var h=c[f];0<a&&b(h)?1<a?th(h,a-1,b,d,e):Ej(e,h):d||(e[e.length]=h)}return e}function yv(c,a){var b=c.length;for(c.sort(a);b--;)c[b]=c[b].value;return c}function zv(c,a,b){var d=-1;a=Zd(a.length?a:[$d],rn(ae));c=Sn(c,function(b,c,g){return{criteria:Zd(a,function(a){return a(b)}),index:++d,value:b}});return yv(c,function(a,c){a:{for(var d=-1,e=a.criteria,f=c.criteria,l=e.length,m=b.length;++d<l;){b:{var n=e[d],p=f[d];if(n!==p){var q=void 0!==n,r=null===n,u=n===n,y=Yd(n),v=void 0!==p,w=
null===p,E=p===p,I=Yd(p);if(!w&&!I&&!y&&n>p||y&&v&&E&&!w&&!I||r&&v&&E||!q&&E||!u){n=1;break b}if(!r&&!y&&!I&&n<p||I&&q&&u&&!r&&!y||w&&q&&u||!v&&u||!E){n=-1;break b}}n=0}if(n){if(d>=m){a=n;break a}a=n*("desc"==b[d]?-1:1);break a}}a=a.index-c.index}return a})}function Sj(c,a,b){var d=-1,e=c.length;0>a&&(a=-a>e?0:e+a);b=b>e?e:b;0>b&&(b+=e);e=a>b?0:b-a>>>0;a>>>=0;for(b=Array(e);++d<e;)b[d]=c[d+a];return b}function Un(c,a){a=mh(a,c);c=2>a.length?c:Ij(c,Sj(a,0,-1));var b;(b=null==c)||(b=null==a?0:a.length,
b=delete c[Wf(b?a[b-1]:void 0)]);return b}function Av(c){return Xf(c)?c:[]}function Bv(c){return dh(c)?void 0:c}function Cv(c){return(null==c?0:c.length)?th(c,1):[]}function Tj(c,a,b){c===c&&(void 0!==b&&(c=c<=b?c:b),void 0!==a&&(c=c>=a?c:a));return c}function Vn(c,a){for(var b,d=-1,e=c.length;++d<e;){var f=a(c[d]);void 0!==f&&(b=void 0===b?f:b+f)}return b}function Wn(c,a){for(var b={},d=0;d<c.length;d++){var e=c[d],f=a(e,d);t(f)&&(b[f]=e)}return b}function Xb(c,a,b,d,e,f,g){if(b&&(c.length||a.length)){var h=
function(c){(c=b(c))&&a.push(c)},k=function(b){jb(a,b);e&&e(b);b.destroy&&b.destroy()};if(!a.length)return x(c,h),a;c=Wn(c,f||Xn);g=Wn(a,g||Xn);for(var l in c)H(g,l)?d&&d(c[l],g[l]):h(c[l]);for(l in g)!H(c,l)&&k(g[l]);return a}}function Dv(c){return"number"===typeof c&&isNaN(c)}function Bc(c,a,b){}function Hb(c,a,b){return c}function ee(c,a){return c.indexOf?-1<c.indexOf(a):H(c,a)}function uh(c,a){var b;if(c){if(H(c,a))return a;c=ya(c);a=a.toLowerCase();try{for(var d=xa(c),e=d.next();!e.done;e=d.next()){var f=
e.value;if(f.toLowerCase()===a)return f}}catch(h){var g={error:h}}finally{try{e&&!e.done&&(b=d.return)&&b.call(d)}finally{if(g)throw g.error;}}}}function Fa(c,a){for(var b in c)a(b)}function M(c,a){for(var b in a)c[b]=a[b];return c}function X(c,a){return M(M({},c),a)}function Ra(c,a){return Pa({},c,a)}function Pa(c,a,b){if(!b)return M(c,a);for(var d in a)zd.call(b,d)&&(c[d]=a[d]);return c}function Wc(c,a,b){if(!b)return M(c,a);for(var d in a)zd.call(b,d)||(c[d]=a[d]);return c}function fe(c,a,b){return Wc(M({},
c),a,b)}function Ve(c,a,b){return Pa(M({},c),a,b)}function Ib(c,a){var b={},d;for(d in c)zd.call(a,d)||(b[d]=c[d]);return b}function ja(c){for(var a={},b=0;b<c.length;b++)a[c[b]]=void 0;return a}function Xc(c){return c.length?1===c.length?c[0]:Ev.apply([],c):[]}function Uj(c){return ja(c.split(","))}function Vj(c,a){return B(c,function(b,c){return b+a[c]})}function Q(c){return c[c.length-1]}function Wj(c,a,b,d,e){var f=null,g;for(g in a){var h=null;if(!zd.call(c,g)||(b&&zd.call(b,g)?h=!zc(c[g],a[g]):
c[g]!==a[g]))f=f||{},f[g]=h?la(a[g]):a[g],d||(c[g]=f[g])}if(e)for(g in c)zd.call(a,g)||(f=f||{},f[g]=null,d||delete c[g]);return f}function z(c,a,b,d,e){c=arguments;var f,g=c.length;for(f=0;f<g;f++){var h=c[f];if(t(h)&&null!==h)return h}}function O(c){return"string"===typeof c}function Sa(c){return c&&"object"===typeof c}function U(c){return void 0===c}function Jb(c){return null===c||U(c)}function ya(c){return Object.keys(c)}function Yn(c,a){void 0===a&&(a=".");var b=function(c,e,f){void 0===f&&(f=
[]);if("object"!==typeof c)return e&&f.push(e),f;for(var d=Object.keys(c),h=0,k=d.length;h<k;h++){var l=d[h];b(c[l],(e?e+a:"")+l,f)}return f};return b(c)}function Cc(c,a){return P(c,function(b){return t(a[b])})?!0:!1}function Zn(c,a){for(var b in c)if(zd.call(a,b))return!0;return!1}function Xj(c,a){var b={},d;x(a,function(a){if(d=C(c,a))b[a]=d});return b}function Y(c,a,b){if(c&&a&&"undefined"!==typeof b){a=a.split(".");var d=a.length-1,e;for(e=0;e<d;e++){var f=a[e];c=void 0===c[f]?c[f]={}:c[f]}return c[a[d]]=
b}}function We(c,a,b){if(c&&a&&"undefined"!==typeof b){var d=a.length-1,e;for(e=0;e<d;e++){var f=a[e];c=void 0===c[f]?c[f]={}:c[f]}return c[a[d]]=b}}function Dc(c,a,b,d,e,f){a=C(a,d);if(t(a))return a=e?e(a):a,"function"===typeof b?b(c,a):Y(c,b,a),!0}function $n(c,a,b,d){a=J(a,d);if(t(a))return We(c,b,a),!0}function vh(c,a,b){for(var d=0,e=c.length;d<e;d++)if(c[d][a]===b)return c[d]}function Xe(c,a){if(!c||a.length!==c.length)return!1;for(var b=0,d=a.length;b<d;b++)if(a[b]instanceof Array&&c[b]instanceof
Array){if(!a[b].equals(c[b]))return!1}else if(a[b]!=c[b])return!1;return!0}function ao(c){var a=c.name;a||(a=(c=c.toString().match(Fv))&&c[1]);return a}function Yj(c){return window.eval(c)}function bo(c){if(!c)return c;for(var a=[],b=0;b<c.length;b++){var d=c[b],e=d.toLowerCase(),f=" "===d;0<b&&(f||d!==e)&&a.push("-");!f&&a.push(e)}return a.join("")}function Ye(c,a,b){c=wh(c);return c.split(a,b)}function Kb(c,a){return x(Ye(c,","),a)}function Ec(c){if(!c)return[0,0,0,0];if(4===c.length&&c.push)return c;
switch(K(c)){case "number":return[c,c,c,c];case "object":return[c.top||0,c.right||0,c.bottom||0,c.left||0];case "array":return Gv(c);case "string":return Ec(Zj(c))}return c}function Gv(c){switch(c.length){case 1:var a=c[0]||0;return[a,a,a,a];case 2:return a=c[0],c=c[1],[a,c,a,c];case 3:return a=c[1],[c[0],a,c[2],a]}return c}function Zj(c){return B(c.match(Hv),function(a){return Number(a)})}function co(c,a){for(var b=[],d=0;d<c;d++)b.push(a(d));return b}function Va(c,a,b){var d;(d=a)&&O(d)&&(d=d.split(","));
var e=d?function(b){if(-1<d.indexOf(b))return!0}:function(b){return!1};eo(c,function(a,c,h){if(!e(c)){var f=-1<c.indexOf("_")?c.replace(Iv,"$1."):c,g=K(a);if(-1<f.indexOf(".")){var m=C(h,f);U(m)?Y(h,f,a):"object"===g&&Sa(m)&&(a=A(m,a));delete h[c]}"object"===g?Va(a,b&&d):"array"===g&&x(a,function(a){return Va(a,b&&d)})}});return c}function ge(c){return 0<c?1:0>c?-1:0}function sa(c,a){void 0===a&&(a=0);return Math.round(c*Math.pow(10,a))/Math.pow(10,a)}function xh(c){c=c.slice();var a=ea;return c.sort(function(b,
d){return a(c,function(a){return a===b}).length-a(c,function(b){return b===d}).length}).pop()}function yh(c){c=c.slice();c.sort(function(b,a){return b-a});var a=Yb.floor(c.length/2);return c.length%2?c[a]:(c[a-1]+c[a])/2}function Jv(c,a){var b,d=a.length;if(0===d)return 0;c.pop&&(c=Wa(c)/c.length);a=a.slice();a.sort(function(b,a){return b-a});for(b=0;b<d&&!(a[b]>c);b++);return b/d*100}function Zf(c){return c.length&&Wa(c)/c.length}function ak(c,a){return Math.round(c*Math.pow(10,a))/Math.pow(10,a)}
function T(c,a,b,d,e){return bk(b,d)?c:c+(e-b)/(d-b)*(a-c)}function ck(c){if(null===c)return"00";c=parseInt(c);if(0===c||Aa(c))return"00";c=Math.round(c);return"0123456789ABCDEF".charAt((c-c%16)/16)+"0123456789ABCDEF".charAt(c%16)}function fo(c){var a=function(b){return!Aa(b)&&t(b)&&null!==b};if(c.pop){for(var b=0,d=c.length;b<d;b++)if(!a(c[b]))return!1;return!0}return a(c)}function dk(c,a){return c<a?-1:c>a?1:0}function ma(c,a){return c>a?c-a:a-c}function go(c){return c*c*Math.PI}function $f(c){return Yb.max.apply(Yb,
G(B(c,function(a){return ag(a)})))}function ho(c,a){var b=c,d=[],e=function(){b=(9301*b+49297)%233280;return b/233280};-1===c&&(e=function(){return Math.random()});for(c=0;c<a;c++)d[c]=e();return d}function bk(c,a,b){void 0===b&&(b=ek);return ma(c,a)<b}function Ze(c){var a=c.charCodeAt(0);return 64<a&&91>a?String.fromCharCode(a+32).concat(c.substr(1)):c}function he(c){void 0===c&&(c=7);for(var a="";c--;)a+="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"[Math.floor(51*Math.random())];
return a}function fk(c){return!Aa(parseFloat(c))&&isFinite(parseFloat(c))}function io(c){return 180*c/Math.PI}function zb(c){return c*Math.PI/180}function zh(c){return 360===c?c:(c+36E3)%360}function ie(c,a,b,d){return{x:c+d*Math.cos(b),y:a+d*Math.sin(b)}}function Yc(c,a,b,d){return ie(c,a,zb(b),d)}function pa(c,a,b){return Lb(c,zb(a),b)}function Lb(c,a,b){return[c[0]+b*Math.cos(a),c[1]+b*Math.sin(a)]}function gk(c,a){return[(c[0]+a[0])/2,(c[1]+a[1])/2]}function hk(c,a,b){void 0===b&&(b=.5);return[c[0]+
(a[0]-c[0])*b,c[1]+(a[1]-c[1])*b]}function La(c,a){c=Zb(c);a=Zb(a);return(180*Math.atan2(a.y-c.y,a.x-c.x)/Math.PI+360)%360}function Mb(c,a){c=Zb(c);a=Zb(a);var b=a.x-c.x;c=a.y-c.y;return Math.sqrt(b*b+c*c)}function oc(c,a){var b=a[0]-c[0];c=a[1]-c[1];return Math.sqrt(b*b+c*c)}function $e(c,a,b,d){c=Zb(c);a=Zb(a);b=Zb(b);d=Zb(d);var e=c.x;c=c.y;var f=b.x,g=b.y;b={x:null,y:null,onLine1:!1,onLine2:!1};var h=d.x-f;d=d.y-g;var k=a.x-e,l=a.y-c;a=d*k-h*l;if(0==a)return!Fc(d)||!Fc(h)||Fc(k)&&Fc(l)||!Fc((f-
e)*l-(g-c)*k)?!Fc(l)||!Fc(k)||Fc(h)&&Fc(d)||!Fc((e-f)*d-(c-g)*h)?b:{x:e,y:c,onLine1:!0,onLine2:!0}:{x:f,y:g,onLine1:!0,onLine2:!0};g=c-g;f=e-f;var m=k*g-l*f;g=(h*g-d*f)/a;f=m/a;b.x=e+g*k;b.y=c+g*l;0<g&&1>g&&(b.onLine1=!0);0<f&&1>f&&(b.onLine2=!0);return b}function jo(c,a,b){var d=La(c,a);b=Zb(b);d=ie(b.x,b.y,zb(d+90),5);d=$e(c,a,b,d);return Mb(b,d)}function bg(c,a){var b=c[0];c=c[1];for(var d=!1,e=0,f=a.length-1;e<a.length;f=e++){var g=a[e][0],h=a[e][1],k=a[f][0];f=a[f][1];h>c!=f>c&&b<(k-g)*(c-h)/
(f-h)+g&&(d=!d)}return d}function Kv(c,a){var b;try{for(var d=xa(c),e=d.next();!e.done;e=d.next())if(bg(e.value,a))return!0}catch(g){var f={error:g}}finally{try{e&&!e.done&&(b=d.return)&&b.call(d)}finally{if(f)throw f.error;}}}function ko(c,a,b){c=Zb(c);a=Zb(a);b=Zb(b);c=(a.x-c.x)*(b.y-c.y)-(a.y-c.y)*(b.x-c.x);return-1E-11>c?-1:1E-11<c?1:0}function cg(c,a,b,d){return function(e){if(0>=e){var f=0;0<c?f=a/c:!a&&0<b&&(f=d/b);return f*e}if(1<=e)return f=0,1>b?f=(d-1)/(b-1):1===b&&1>c&&(f=(a-1)/(c-1)),
1+f*(e-1);f=0;for(var g=1,h=0;f<g;){h=(f+g)/2;var k=3*c*(1-h)*(1-h)*h+3*b*(1-h)*h*h+h*h*h;if(1E-5>Math.abs(e-k))break;k<e?f=h:g=h}return 3*a*(1-h)*(1-h)*h+3*d*(1-h)*h*h+h*h*h}}function ik(c,a){void 0===a&&(a=1);var b=F(c[0],2),d=b[0];b=b[1];var e=F(c[1],2),f=e[0];e=e[1];var g=F(c[2],2),h=g[0];g=g[1];var k=F(c[3],2);c=k[0];k=k[1];a/=2;for(var l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],
n=0,p=0;12>p;p++){var q=a*l[p]+a,r=q*(q*(-3*d+9*f-9*h+3*c)+6*d-12*f+6*h)-3*d+3*f;q=q*(q*(-3*b+9*e-9*g+3*k)+6*b-12*e+6*g)-3*b+3*e;n+=m[p]*Math.sqrt(r*r+q*q)}return a*n}function jk(c,a){var b=F(c[0],2),d=b[0];b=b[1];var e=F(c[1],2),f=e[0],g=e[1];e=F(c[2],2);var h=e[0],k=e[1];e=F(c[3],2);c=e[0];e=e[1];var l=(f-d)*a+d,m=(g-b)*a+b;f=(h-f)*a+f;g=(k-g)*a+g;h=(c-h)*a+h;k=(e-k)*a+k;var n=(f-l)*a+l,p=(g-m)*a+m;f=(h-f)*a+f;g=(k-g)*a+g;return[[d,b],[l,m],[n,p],[(f-n)*a+n,(g-p)*a+p],[f,g],[h,k],[c,e]]}function Lv(c,
a,b,d,e,f){var g=[];a:{var h=c[0];c=c[1];var k=a[0];a=a[1];var l=b[0];b=b[1];var m=d[0];d=d[1];var n=e[0];e=e[1];var p=f[0];f=f[1];var q=Math.min(n,p),r=Math.min(e,f),u=Math.max(n,p),y=Math.max(e,f),v,w=e-f,E=p-n;w=[w*(-1*h+3*k+-3*l+m)+E*(-1*c+3*a+-3*b+d),w*(3*h+-6*k+3*l)+E*(3*c+-6*a+3*b),w*(-3*h+3*k)+E*(-3*c+3*a),w*h+E*c+(n*f-p*e)];E=v=w.length-1;var I=[];for(var D=0;D<=v;D++)if(1E-8>=Math.abs(w[D]))v--;else break;switch(v){case 1:v=w[E-1];D=I;void 0===D&&(D=[]);0!==v&&D.push(-w[E]/v);break;case 2:var t=
w[E-2];v=I;void 0===v&&(v=[]);D=w[E-1]/t;w=D*D-w[E]/t*4;0<w?(w=Math.sqrt(w),v.push(.5*(-D+w)),v.push(.5*(-D-w))):0===w&&v.push(.5*-D);break;case 3:var x=w[E-3];v=I;void 0===v&&(v=[]);t=w[E-2]/x;var V=w[E-1]/x;D=(3*V-t*t)/3;E=(2*t*t*t-9*V*t+w[E]/x*27)/27;w=t/3;t=E*E/4+D*D*D/27;E/=2;1E-6>=Math.abs(t)&&(t=0);0<t?(x=Math.sqrt(t),D=-E+x,t=0<=D?Math.pow(D,1/3):-Math.pow(-D,1/3),D=-E-x,t=0<=D?t+Math.pow(D,1/3):t-Math.pow(-D,1/3),v.push(t-w)):0>t?(D=Math.sqrt(-D/3),t=Math.atan2(Math.sqrt(-t),-E)/3,E=Math.cos(t),
t=Math.sin(t),x=Math.sqrt(3),v.push(2*D*E-w),v.push(-D*(E+x*t)-w),v.push(-D*(E-x*t)-w)):(D=0<=E?-Math.pow(E,1/3):Math.pow(-E,1/3),v.push(2*D-w),v.push(-D-w))}for(v=0;v<I.length;v++)if(w=I[v],0<=w&&1>=w)if(x=h+(k-h)*w,t=c+(a-c)*w,D=k+(l-k)*w,E=a+(b-a)*w,x+=(D-x)*w,t+=(E-t)*w,D=x+(D+(l+(m-l)*w-D)*w-x)*w,w=t+(E+(b+(d-b)*w-E)*w-t)*w,1E-7>Math.abs(n-p)){if(r<=w&&w<=y)if(g)g.push([D,w]);else break a}else if(1E-7>Math.abs(e-f)){if(q<=D&&D<=u)if(g)g.push([D,w]);else break a}else if(D>=q&&w>=r&&D<=u&&w<=y)if(g)g.push([D,
w]);else break a}return g}function Mv(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];var b=F(c[0],2);a=b[0];b=b[1];var d=F(c[1],2),e=d[0];d=d[1];var f=F(c[2],2),g=f[0];f=f[1];c=F(c[3],2);var h=c[0],k=c[1],l,m,n=l=Number.POSITIVE_INFINITY,p=m=Number.NEGATIVE_INFINITY;c=e-a;var q=d-b,r=g-e,u=f-d;h-=g;k-=f;for(var y=0;1.001>y;y+=.025){var v=a+y*c,w=b+y*q,E=e+y*r,I=d+y*u,D=g+y*h,t=f+y*k,x=E-v,V=I-w;D-=E;t-=I;v+=y*x;w+=y*V;E+=y*D;I+=y*t;E-=v;I-=w;E=v+y*E;I=w+y*I;n=Math.min(n,E);l=Math.min(l,
I);p=Math.max(p,E);m=Math.max(m,I)}return[n,l,p-n,m-l]}function Zb(c){c.pop&&(c={x:c[0],y:c[1]});return c}function Nv(c,a,b,d,e,f){void 0===f&&(f=0);f=((0>e?b:d)[1]-f)/Math.abs(Math.sin(zb(e)));f=Math.min(f,(0<=e?b:d)[0]);return a-c<f}function lo(c){var a=zh(c);return 90<a&&270>a?zh(a+180):c}function Fc(c){return 1E-7>Math.abs(c)}function dg(c,a){return P(c,function(b){return Nb(b,a)})}function af(c,a){a=F(mo([bf(c),bf(a)]),2);c=a[0];a=a[1];if(no(c,a))return a;if(no(a,c))return c;if(a[0]<c[1])return[a[0],
c[1]]}function eg(c,a){var b=[];cf(c,function(c){return df(b,af(c,a))});return b}function kk(c,a){var b=0,d=a[0]-c[0],e=c[1]-a[1],f=(c[1]+c[0])/2,g=(a[1]+a[0])/2;a[1]-a[0]>c[1]-c[0]?b=f-g:0>d?b=-d:0>e&&(b=e);a[0]+=b;a[1]+=b;return a}function oo(c,a){for(var b=0;b<c.length;b++)if(Nb(bf(c[b]),a))return b;return-1}function Ov(c,a){cf(a,function(b){var a;try{for(var e=xa(c),f=e.next();!f.done;f=e.next()){var g=f.value,h=g,k=b;if(je(h,k[0])||je(h,k[1])){h=g;k=b;if(je(h,k[0])&&je(h,k[1]))var l=g,m=[[g[0],
b[0]],[b[1],g[1]]];else var n=g;break}}}catch(q){var p={error:q}}finally{try{f&&!f.done&&(a=e.return)&&a.call(e)}finally{if(p)throw p.error;}}l&&(p=c.indexOf(l),c.splice.apply(c,G([p,1],m)));n&&(m=c.indexOf(n),b=je(n,b[0])?[n[0],b[0]]:je(n,b[1])?[b[1],n[1]]:void 0,c[m]=b);return c});return c}function lk(c,a,b){var d;b/=2;var e=[];try{for(var f=xa(c),g=f.next();!g.done;g=f.next()){var h=g.value;e.push([ua(h-b,a[0],a[1]),ua(h+b,a[0],a[1])])}}catch(l){var k={error:l}}finally{try{g&&!g.done&&(d=f.return)&&
d.call(f)}finally{if(k)throw k.error;}}return e}function fg(c,a){var b=[],d;c=po(c)?c:mo(c.slice(0));if(po(c))return a=a||Pv(c),cf(c,function(c,f,g){!f&&c[0]>a[0]?b.push([a[0],Math.min(c[0],a[1])]):f&&c[0]>a[0]&&d[1]!==c[0]&&b.push([Math.max(d[1],a[0]),Math.min(c[0],a[1])]);g&&c[1]<a[1]&&b.push([Math.max(a[0],c[1]),a[1]]);d=c}),b}function Pv(c){c=qo(c);return[Math.min.apply(Math,G(c)),Math.max.apply(Math,G(c))]}function Qv(c){var a;cf(c,function(b){return a=a&&ma(a[0],a[1])>ma(b[0],b[1])?a:b});return a}
function qo(c){var a=[];cf(c,function(b){return a.push.apply(a,G(b))});return a}function ro(c){var a=0;cf(c,function(b){return a+=b[1]-b[0]});return a}function mo(c,a){void 0===a&&(a=!1);return c.sort(function(b,c){return a?c[0]-b[0]:b[0]-c[0]})}function cf(c,a){for(var b=0,d=c.length;b<d&&!1!==a(c[b],b,b===c.length-1,b?c[b-1]:void 0);b++);}function po(c){for(var a=0,b=c.length;a<b;a++)if(a&&c[a][0]<c[a-1][0])return!1;return!0}function so(c,a,b){b&&(c=to(c,b),a=to(a,b));b=c;var d=a;b=b[2]*b[3]===
d[2]*d[3]&&b[2]===d[2]?0:b<d?-1:b>d?1:0;return 0===b&&c[0]===a[0]&&c[1]===a[1]?0:0===b?-1:b}function to(c,a){return B(c,function(b){return sa(b,a)})}function sb(c,a){return[c[0]+a,c[1]+a,c[2]-2*a,c[3]-2*a]}function ef(c,a){return ob(va(c),a)}function Ha(c){var a=[],b;if(c&&c.length){for(var d=0,e=c.length;d<e;d++)if(b=c[d])a.push([b[0],b[1]]),a.push([b[0]+b[2],b[1]+b[3]]);return Xa(a)}}function uo(c){for(var a=c[0],b=1,d=c.length;b<d;b++)if(a=Ah(a,c[b]),0>=a[2]||0>=a[3]){a=null;break}return a}function Xa(c){if(!c.length)return[0,
0,0,0];var a=c[0],b=a[0],d=a[0],e=a[1];a=a[1];for(var f,g,h=0,k=c.length;h<k;h++){var l=c[h];(f=l[0])>d&&(d=f);f<b&&(b=f);(g=l[1])>a&&(a=g);g<e&&(e=g)}return[b,e,d-b,a-e]}function Rv(c,a){return Ha([c,Xa(a)])}function Bh(c,a){return ob(va(c),[Math.max(c[2],a[0]),Math.max(c[3],a[1])])}function Sv(c,a){var b=F(c,4);c=b[2];b=b[3];a=F(a,4);a=Math.min(a[3]/b,a[2]/c);return[c*a,b*a]}function va(c){return[Zc(c),$c(c)]}function Ah(c,a){c=c.slice(0);a=$b(a);c=mk(c,a[0]);c=nk(c,a[1]);c=ok(c,a[2]);return pk(c,
a[3])}function mk(c,a){var b=Ya(c);c[0]=c[0]<a?a:c[0];c[2]=b<a?a-c[0]:b-c[0];return c}function nk(c,a){var b=Za(c);c[1]=c[1]<a?a:c[1];c[3]=b<a?a-c[1]:b-c[1];return c}function ok(c,a){var b=Ya(c);c[0]=c[0]>a?a:c[0];c[2]=b>a?a-c[0]:b-c[0];return c}function pk(c,a){var b=Za(c);c[1]=c[1]>a?a:c[1];c[3]=b>a?a-c[1]:b-c[1];return c}function vo(c,a){return ef(c,[c[2]+a[0]+a[2],c[3]+a[1]+a[3]])}function wo(c,a){return vo(c,a.map(function(b){return-b}))}function ha(c){return[c.x,c.y,c.width,c.height]}function ob(c,
a){return[c[0]-a[0]/2,c[1]-a[1]/2,a[0],a[1]]}function Gc(c){var a;c.length&&(a=c[0].pop?B(c,function(b){return xo(b)}).join(" "):xo(c));return a}function Tv(c,a){var b=a[0][1]==a[1][1];if(a[0][0]>a[1][0]||a[0][1]>a[1][1])a=[a[1],a[0]];var d=[],e,f;b?(a[0][0]<c[0]&&(e=[a[0],[c[0],a[0][1]]]),a[1][0]>c[0]+c[2]&&(f=[[c[0]+c[2],a[1][1]],a[1]])):(a[0][1]<c[1]&&(e=[a[0],[a[0][0],c[1]]]),a[1][1]>c[1]+c[3]&&(f=[[a[1][0],c[1]+c[3]],a[1]]));e&&d.push(e);f&&d.push(f);return d}function yo(c,a,b,d,e,f){a=qk(c,
a,[ke.x(b),ke.x(d),ke.y(e),ke.y(f)]);return Hc(c,a)}function le(c,a,b,d){b=pc.x(b);d=pc.y(d);return{box:Hc(c,qk(c,a,[b[0],b[1],d[0],d[1]])),contentAlignment:[b[2],d[2]]}}function qk(c,a,b){var d=b[0];d=(0,b[1])(a)-d(c);var e=b[2];c=(0,b[3])(a)-e(c);return[d,c]}function rk(c,a){return[c[0]-a[0],c[1]-a[1]]}function zo(c,a){c=Ch(c.slice(0),a);for(var b=[],d=0,e=c.length;d<e;d++){var f=c[d];if(d){var g=Dh(f,b,a);f[0]=g[0];f[1]=g[1]}b.push(f)}return b}function Dh(c,a,b){if(!ad(a,c))return c;var d=[],e=
!1,f="v"==={u:"v",d:"v",l:"h",r:"h"}[b],g=f?Ad:Bd;f=f?Ya:Za;for(var h=g(c),k=f(c),l=0,m=a.length;l<m;l++){var n=a[l];g(n)>k||f(n)<h||d.push(n)}d=Ch(d,b);a=0;for(c=c.slice(0);!e;){g=d[a++];if(bd(c,g)&&(e=c,g=[g],f=b,h=1<g.length?Ha(g):g[0],ad(g,e)))switch(f){case "u":e[1]=h[1]-e[3];break;case "l":e[0]=h[0]-e[2];break;case "d":e[1]=Za(h);break;case "r":e[0]=Ya(h)}e=!ad(d.slice(a),c)||a>=d.length}return c}function sk(c,a){var b=va(c),d=$b(c);x(a,function(a){if(bd(ff(d),a)){var c=va(a);c=rk(b,c);1<Math.abs(c[1])?
0<c[1]?d[1]=Za(a):d[3]=a[1]:1<Math.abs(c[0])&&(0>c[0]?d[2]=a[0]:d[0]=Ya(a))}});return ff(d)}function Ch(c,a){a={u:{getter:Za,dir:"desc"},d:{getter:Bd},l:{getter:Ya,dir:"desc"},r:{getter:Ad}}[a];var b=a.getter,d=function(a,c){a=b(a);c=b(c);return a<c?-1:a>c?1:0};c.sort("desc"===a.dir?function(b,a){return d(a,b)}:d);return c}function cd(c,a){c=Ao(c,a);return Bo(c,a)}function Ao(c,a){a=kk([a[0],Ya(a)],[c[0],Ya(c)]);return[a[0],c[1],a[1]-a[0],c[3]]}function Bo(c,a){a=kk([a[1],Za(a)],[c[1],Za(c)]);return[c[0],
a[0],c[2],a[1]-a[0]]}function dd(c,a){var b=c[0],d=a[0];if(b=!(d<b||d+a[2]>b+c[2]))b=c[1],d=a[1],b=!(d<b||d+a[3]>b+c[3]);return b}function Cd(c,a){return a[0]>c[0]&&a[0]<c[0]+c[2]&&a[1]>c[1]&&a[1]<c[1]+c[3]}function Co(c,a,b){return a[0]-c[0]>b&&c[0]+c[2]-a[0]>b&&a[1]-c[1]>b&&c[1]+c[3]-a[1]>b}function bd(c,a){var b=c[0],d=a[0];return b+.01<d+a[2]&&b+c[2]>d+.01&&c[1]+.01<a[1]+a[3]&&c[1]+c[3]>a[1]+.01}function Uv(c,a){if(!bd(c,a))return 0;var b=Math.max(c[0],a[0])-Math.min(Ya(c),Ya(a)),d=Math.max(c[1],
a[1])-Math.min(Za(c),Za(a));b*=d;return b/(c[2]*c[3]+a[2]*a[3]-b)}function ad(c,a,b){for(var d=0,e=c.length;d<e;d++)if((!b||c[d].id!==b)&&bd(c[d],a))return!0}function Do(c){for(var a=0,b=c.length;a<b;a++)for(var d=a;d<b;d++)if(d!==a&&bd(c[a],c[d]))return!0}function Eo(c,a){var b=[],d=function(c){c=$e(c[0],c[1],a[0],a[1]);c.onLine1&&c.onLine2&&b.push([c.x,c.y])},e=me(c,"bl,br"),f=me(c,"tl,tr"),g=me(c,"tr,br");c=me(c,"tl,bl");d(f);d(g);d(e);d(c);return b.length?b:void 0}function tk(c,a,b){return Xa(uk(c,
a,b))}function uk(c,a,b){var d=a[0],e=F(c,4);c=e[0];var f=e[1],g=c+e[2];e=f+e[3];var h=[c+a[1],f+a[2]];a=[c,f];f=[g,f];g=[g,e];c=[c,e];b=B(b?[a,c]:[a,f,g,c],function(b){return{x:b[0],y:b[1],angle:La(h,b),len:Mb(h,b)}});return b=B(b,function(b){b=Yc(h[0],h[1],b.angle+d,b.len);return[b.x,b.y]})}function Vv(c,a){x(c,function(b){ta(b,function(b){return b[3]});b.reverse()});return Wv(c,a)}function Wv(c,a){var b=a.limitBox,d,e,f=Math.max.apply(Math,G(B(c,function(b){return Q(b)[2]})));if(t(a.masterSet))var g=
B(c[a.masterSet],function(b){return[2]});else g=[],x(c,function(b){g.push.apply(g,G(B(b,function(b){return b[2]})))});g=ed(ea(g,function(b){return b>=f}).sort(function(b,a){return b>a?1:-1}));var h=function(b){var a=[],d=B(c,function(c){c=c.slice(0);c=P(c,function(a){return a[2]<=b});a.push(c[2]);return c}),e=0;x(d,function(b){return e+=b[3]});var f=[0,0,Math.max.apply(Math,G(a)),e];f.ids=B(d,function(b){return b.id});return f};x(g,function(a){a=h(a);if(a[3]<b[3])return d=a,!1;e=a});return d||e}function Xv(c){for(var a=
[],b=1,d=Math.round(Math.sqrt(c));b<=d;b++)a.push([b,Math.ceil(c/b)]);c=B(a,function(b){return[b[1],b[0]]}).reverse();a.push.apply(a,G(c));return a}function Yv(c){return B(Xv(c),function(a){return a[0]})}function Fo(){if(vk)return vk;for(var c=ia.getElementsByTagName("script"),a=0;a<c.length;a++){var b=c[a],d=b.getAttribute("src");if(d&&0!==b.src.indexOf("file://")&&(b=d.split("?")[0],d=b.split("/").slice(-1)[0].toLowerCase(),"jscharting.js"===d||0===d.indexOf("jscharting")&&d.indexOf(".js")===d.length-
3))return vk=b.split("/").slice(0,-1).join("/")}}function ne(){return wk?wk:wk=Fo()||"https://code.jscharting.com/3.3.1"}function Go(){var c=W.JSC;return!Fo()&&(!c||!c.chart)}function xk(c,a,b,d){Eh(c,a,b,d,Zv)}function $v(c,a,b,d){Eh(c,a,b,d,function(b){return b})}function Eh(c,a,b,d,e){aw(c,{success:function(d){var f=d.responseText;if(f)try{f=e(f)}catch(h){b&&b({path:c,data:f,status:d.status,state:"parsererror",error:h})}a&&a({path:c,status:d.status,data:f})},error:function(a){b&&b({path:c,status:a.status})},
async:!d})}function bw(c){return"object"===typeof HTMLElement?c instanceof HTMLElement:c&&"object"===typeof c&&null!==c&&1===c.nodeType&&"string"===typeof c.nodeName}function Zv(c){var a=ia.createElement("script");a.type="text/javascript";a.text=c;ia.head.appendChild(a).parentNode.removeChild(a)}function aw(c,a){var b=new XMLHttpRequest,d=a||{};a=d.data;var e=d.success,f=d.error,g=K(a);d=!1!==d.async;if(b){if("function"===g)e=a,a=null;else if("object"===g){g=[];for(var h in a)a.hasOwnProperty(h)&&
g.push(encodeURIComponent(h)+"="+encodeURIComponent(a[h]));a=g.join("&")}b.open(a?"POST":"GET",c,d);a&&(b.setRequestHeader("X-Requested-With","XMLHttpRequest"),b.setRequestHeader("Content-type","application/x-www-form-urlencoded"),b.setRequestHeader("Api-Key","foobar"));b.onreadystatechange=function(){if(4===b.readyState){var a=b.status;a=200<=a&&300>a||304===a;e&&a&&e(b);if(f&&!a)return f(b)}};if(4===b.readyState)return b;b.send(a);return b}}function cw(c,a){function b(){(new Date).getTime()-d>=
a?c.call():e.value=W.requestAnimationFrame(b)}var d=(new Date).getTime(),e={};e.value=W.requestAnimationFrame(b);return e}function dw(c){c&&c.value&&W.cancelAnimationFrame(c.value)}function Ho(c,a){void 0===a&&(a=1);var b=a,d=function(){1>b?setTimeout(c,0):(b--,W.requestAnimationFrame(d))};d()}function ew(c,a){return new Fh.Intl.DateTimeFormat(c,a)}function fw(c,a){return new Fh.Intl.NumberFormat(c,a)}function gw(c,a){var b=Fh.Intl.Collator;return b?new b(c,a):null}function hw(c,a,b){var d=b._getNumberFormat(b.locale,
b.options);if(d){if(a||b.formatString){var e=a||b.formatString;a=Na.None;var f=iw.exec(e)[0];switch(f.toLowerCase()){case "c":a=Na.Currency;break;case "n":a=Na.Number;break;case "p":a=Na.Percent;break;case "f":a=Na.Float;break;case "d":a=Na.Decimal;break;case "e":a=Na.Exponential;break;case "g":a=Na.General;break;case "a":a=Na.NumericSymbol;break;case "t":a=Na.PowersOfTen;break;case "x":a=Na.Hexadecimal;var g=f===f.toLowerCase()?"lower":"upper"}e=jw.exec(e);e=null===e?null:parseInt(e[0]);g={type:a,
specifier:e,charCase:g};if(g.type)return kw(g,c,b)}return d.format(c)}return null!==c?c.toLocaleString():""}function lw(c,a,b){void 0===a&&(a={});if(!c)return"";var d=O(a),e=d?a:a.formatString||b.formatString,f=mw[e];if(f){var g=f.options;if(!g&&f.formatString)return Io(c,f.formatString,b);if(!g&&f.handler)return f.handler(c);a=X(d?{}:a,g||{});a=b._getDateTimeFormat(b.locale,a)}else a=b._getDateTimeFormat(b.locale,b.options);return a?e&&!f?Io(c,e,b):a.format(c):c.toLocaleDateString()}function kw(c,
a,b){var d=function(b,a){return function(c){return Math.min(Math.max(parseInt(c||0),b),a)}},e=function(b){return d(0,20)(b)},f=function(b){return d(1,21)(b)},g=X({minimumFractionDigits:0,maximumFractionDigits:2},b.options),h=!0,k=Fh.Intl.NumberFormat;if(!k)return a;switch(c.type){case Na.Number:case Na.Float:g.style="decimal";null!==c.specifier&&(g.maximumFractionDigits=e(c.specifier),g.minimumFractionDigits=e(c.specifier));break;case Na.Currency:g.style="currency";g.currency=nw(b.locale);c=Jb(c.specifier)?
2:c.specifier;g.minimumFractionDigits=e(c);g.maximumFractionDigits=e(c);break;case Na.Percent:g.style="percent";c.specifier&&(g.minimumFractionDigits=e(c.specifier));break;case Na.Decimal:g.style="decimal";g.useGrouping=g.useGrouping||!1;null!==c.specifier&&(g.maximumFractionDigits=e(c.specifier),g.minimumFractionDigits=e(c.specifier));break;case Na.Exponential:a=a.toExponential(c.specifier);h=!1;break;case Na.General:g.style="decimal";c.specifier&&(g.maximumSignificantDigits=f(c.specifier));break;
case Na.Hexadecimal:a=a.toString(16);c.specifier&&(a=ac(a,c.specifier));"upper"===c.charCase&&(a=a.toUpperCase());h=!1;break;case Na.NumericSymbol:a=ow(a,c.specifier);h=!1;break;case Na.PowersOfTen:if(a){h=Math.floor(ak(Math.log(Math.abs(a))/Math.log(10),6));e=a/Math.pow(10,h);var l=c.specifier||0;c=1E-5>Math.abs(Math.abs(e)-1);f=e%1?2:0;if(Math.abs(a)>=Math.pow(10,l)||Math.abs(a)<=Math.pow(10,-l))a="10<sup>"+h+"</sup>",a=(c?0>e?"-":"":e.toFixed(f)+"\u22c5")+a}h=!1}if(!h)return a.toString();delete g.specifier;
return(new k(b.locale,g)).format(a)}function Io(c,a,b){var d=function(a,c){b.dateTimeFormatters[c]||(b.dateTimeFormatters[c]=b._getDateTimeFormat(b.locale,a))};return a.replace(pw,function(a){if(!a)return"";switch(a){case "h":case "hh":case "t":case "tt":d({hour12:!0,hour:"numeric"},a);break;case "MMM":d({month:"short"},a);break;case "MMMM":d({month:"long"},a);break;case "g":d({era:"short"},a);break;case "gg":d({era:"long"},a);break;case "ddd":d({weekday:"short"},a);break;case "dddd":d({weekday:"long"},
a)}return bc[a](c,b.dateTimeFormatters[a])})}function qw(c,a,b){var d=a.reverse(),e=function(){if(0===d.length)b();else{var a=d.pop();c(function(){a();e()})}};e()}function Qa(c,a,b,d){function e(c){var d=K(c),e=a();if("undefined"===d)return f();if("array"===d){if(Gh(c))return d=b&&b.call(this,c),e=f(),e.items=d||[],e;b&&b(c)}else{if("number"===d)return 0>c&&e.length?e[e.length+c]:e[c];if("string"===d)return P(e,function(b){return b.currentOptions&&(b.currentOptions.name===c||b.currentOptions.id===
c||b.currentOptions.key===c)||b.id===c||b.key===c||b.prefix===c});if("object"===d||"function"===d)return f().filter(c)}}var f=function(){return new c(a(),d)};e.add=d?function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];d.push.apply(d,G(b));return f()}:f;e.splice=d?function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];d.splice.apply(d,G(b));return f()}:f;e.remove=d?function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];d.remove.apply(d,G(b));return f()}:
f;return e}function Jo(c,a){return function(){var b=[];c.each(function(c){b.push.apply(b,G(a(c)))});return b}}function yk(c,a){return function(b){a(c,b)}}function Gh(c){var a=function(b){return Ia(b.map(function(b){return K(b)}))},b=function(b){b=a(b);return 1===b.length&&"string"===b[0]};if(c.pop){var d=a(c);if(b(c))return{firstId:c[0],levels:1};if(1===d.length&&"array"===d[0]){var e=[];c.forEach(function(b){return e.push.apply(e,G(a(b)))});e=Ia(e);if(1===e.length&&"string"===e[0])return{firstId:c[0][0],
levels:2}}}}function rw(c){if(!gf){var a=gg?gg+"icons/":void 0;a||((a=ne())?("/"!==a[a.length-1]&&(a+="/"),a+="icons/"):a=null);gf=a||"/dist/icons/"}"/"!==gf[gf.length-1]&&(gf+="/");return gf+c+".js"}function Ko(c,a,b){void 0===a&&(a=null);void 0===b&&(b=null);if(c&&"none"!==c){var d=c.replace("{os}",sw),e=hf[d];if(t(e))return e;hf[d]=null;void 0===e&&xk(rw(c),function(b){if(a){var c=!gg&&Go();b.displayCdnWarning=c;a(b)}},function(a){hf[d]=null;b&&b(a)},!0);return hf[d]}}function zk(c,a){void 0===
a&&(a=!1);if(c)for(var b=ya(c),d=0;d<b.length;d++){var e=b[d];if(!hf[e]||a)hf[e]=c[e]}}function hg(c,a){return M(ja(c),a)}function tw(c,a,b,d){var e=d?d.noKerning:!1,f=d?d.delimiter:" ";d=new RegExp("([^"+f+"]+)");var g=a.fontSize||b.fontSize,h=uw(a,b);O(g)&&(g=parseInt(g));var k=g*h.height;g={descent:h.descent*k,leading:(h.height-h.descent)*k,height:k,fontSize:g};h=ig(c,a,b,e);k=String.fromCharCode(8230);f={width:h,metrics:g,text:c,style:a,delimiter:{text:f,width:ig(f,a,b,e)},ellipsis:{text:k,width:ig(k,
a,b,e)}};c=c.split(d);if(d=c.length)for(f.parts=[],g=0;g<d;g++)h=c[g],void 0!==h&&f.parts.push({text:h,width:ig(h,a,b,e)});return f}function Lo(c,a){var b={font:c.fontFamily},d=[].concat(Hh).concat(Ak);d.push(". .");d=Bk(d,c,a);for(var e={},f={},g=0,h=Hh.length;g<h;g++)e[Hh[g]]=d[Hh[g]];e[" "]=d[". ."]-2*d["."];var k=!1;g=0;for(h=Ak.length;g<h;g++){var l=Ak[g],m=d[l[0]]+d[l[1]];m-=d[l];.001<m&&(k=!0)}if(k)for(c=Bk(Ck,c,a),g=0,h=Ck.length;g<h;g++)l=Ck[g],m=d[l[0]]+d[l[1]],m-=c[l],.001<m&&(f[l]=m);
b.stringWidths=e;b.kerning=f;return b}function Ih(c){return c.getComputedTextLength?c.getComputedTextLength():0}function Bk(c,a,b){var d={},e=ia.createElementNS("http://www.w3.org/2000/svg","svg");b.fontFamily&&e.setAttribute("font-family",b.fontFamily);b.fontWeight&&e.setAttribute("font-weight",b.fontWeight);b.textRendering&&e.setAttribute("text-rendering",b.textRendering);b=ia.createDocumentFragment();var f=ia.createElementNS("http://www.w3.org/2000/svg","g");f.setAttribute("font-size","100px");
a.fontFamily&&f.setAttribute("font-family",a.fontFamily);a.fontWeight&&f.setAttribute("font-weight",a.fontWeight);b.appendChild(f);a=0;for(var g=c.length;a<g;a++)f.appendChild(Dk(c[a]));e.appendChild(b);ia.body.appendChild(e);b=e.childNodes[0].childNodes;a=0;for(g=b.length;a<g;a++)d[c[a]]=Ih(b[a]);e.parentNode.removeChild(e);return d}function Dk(c){var a=ia.createElementNS("http://www.w3.org/2000/svg","text");a.textContent=c;return a}function Ek(c,a){if(!Fk){Gk||(Gk=vw());var b=Gk,d="fontSize"===
b.roundTarget?function(a){return Math.round(a/b.roundStep)*b.roundStep}:function(b){return b};Fk=function(a,c){c=d(c);a*=c/100;return"width"===b.roundTarget&&(!b.roundThreshold||c<b.roundThreshold)?Math.round(a/b.roundStep)*b.roundStep:a}}return Fk(c,a)}function vw(){var c=1,a=0,b=ia.createElementNS("http://www.w3.org/2000/svg","svg"),d=ia.createDocumentFragment(),e=function(b){var a=Dk("m");a.setAttribute("font-size",b+"px");d.appendChild(a)};b.setAttribute("text-rendering","geometricPrecision");
e(100);for(var f=[100],g=10;11>=g;)e(g),f.push(g),g+=.25;for(g=13;20>g;)e(g),f.push(g),g+=1;b.appendChild(d);ia.body.appendChild(b);e=!0;var h=!1;h=0;g=b.childNodes;for(var k=[],l=[],m=Ih(g[0]),n=1;6>n;n++){var p=Ih(g[n]),q=f[n]*m/100,r=k.length?+!(.01>=Math.abs(k[k.length-1]-p)):0;.1>=Math.abs(q-p)||(e=!1);.01>=Math.abs(q-p)&&h++;k.push(p);l.push(r)}h=2<=h;if(!e)if(h){var u="fontSize";f=l.join("");"01010"===f?c=.5:"00100"===f&&(c=1)}else for(a=f[6],u="width",c=1,n=6;13>n;n++)if(p=Ih(g[n]),q=f[n]*
m/100,.1>=Math.abs(q-p)){a=f[n];break}b.parentNode.removeChild(b);return{roundTarget:u,roundStep:c,roundThreshold:a}}function ww(c,a){var b=xw(c,a);return function(c){return 1===c?a:b(c)}}function xw(c,a){function b(b){for(var a=b.length,c,d=[],e=[];null!==(c=yw.exec(b));)e.push({text:c[0],index:c.index,end:c.index+c[0].length});c=function(a,c,e){d.push({type:a,text:b.substring(c,e),index:c,end:e})};var f=0,g=!1;if(e.length)for(;!g&&f<a;){var q=P(e,function(b){return b.index===f}),r=void 0;q?(c("number",
f,q.end),f=q.end):(r=P(e,function(b){return b.index>f}))?(c("text",f,r.index),f=r.index):(c("text",f,a),g=!0)}else c("text",0,a);return d}var d=b(c),e=b(a),f=function(){for(var b=function(b,a){return P(b,function(b,c){return c>a&&"number"===b.type})},a=0,c=0,f=!1,m=[];!f;){var n=d[a],p=e[c];if(!n&&!p){f=!0;break}n&&p?n.type===p.type?("text"===n.type?m.push(oe(n.text,p.text)):m.push(zw(n.text,p.text)),a++,c++):"number"===n.type?(b(e,c)?m.push(oe("",p.text)):(m.push(oe(n.text,p.text)),a++),c++):b(d,
a)?(m.push(oe(n.text,"")),a++):(m.push(oe(n.text,p.text)),a++,c++):(n?m.push(oe(n.text,"")):m.push(oe("",p.text)),a++,c++)}return m}();return function(b){b=ua(T(0,1,0,.8,b),0,1);return 0===b?c:1===b?a:f.map(function(a){return a(b)}).join("")}}function oe(c,a){if(c===a)return function(b){return a};var b=c.length,d=a.length,e=Math.max(b,d),f=d>b,g=Math.max(d-a.trimStart().length,b-c.trimStart().length);b=Math.max(d-a.trimEnd().length,b-c.trimEnd().length);var h="                      ".substr(0,g),
k="                      ".substr(0,b);return function(b){if(0===b)return c;if(1<=b)return a;var d=[];b=Math.round(b*e);f||(b=e-1-b);for(var g=0;g<e;g++){var l=f?g:e-1-g;d[l]=l<b?f?a[l]:c[l]:f?c[l]:a[l]}d=h+d.join("").trim()+k;return d.length>e?d.substring(0,e):d}}function zw(c,a){function b(b){var a=b.indexOf(","),c=b.indexOf(".");return{commas:-1<a,decimalPlaces:-1<c?b.length-1-c:0}}var d=/((-|\+?)([0-9]{1,3}(,?[0-9])*)(\.[0-9]+|\.)?|\.[0-9]+)/g,e=c.match(d)[0];a=a.match(d)[0];d=[c.indexOf(e),e.length];
var f=d[0]+d[1],g=0<d[0]?c.substr(0,d[0]):"",h=f<c.length?c.substring(f,c.length):"",k=parseFloat(e.replace(/,/gi,"")),l=parseFloat(a.replace(/,/gi,""));c=b(e);e=b(a);var m=function(b,a){var c=b.decimalPlaces>a.decimalPlaces?b:a;c.commas=b.commas||a.commas;return c}(c,e);return function(b){b=T(k,l,0,1,b);b=jg(b,(m.commas?"n":"d")+m.decimalPlaces);return g+b+h}}function pe(c){c={chartType:{type:"enum",members:{vertical:{isDefault:!0,chain:"enum_seriesType"},horizontal:{chain:"enum_seriesType"},pie:{chain:"enum_pieType",
enumAttributes:{seriesLayout:"visualShape",behavior:"colorByPoint,labelConnector,noNameGrouping"}},gauge:{chain:"enum_gaugeType",enumAttributes:{seriesLayout:"visualShape",behavior:"colorByPoint,noNameGrouping,snapToZero"}},radar:{chain:"enum_radarType",enumAttributes:{seriesLayout:"visualShape"}},funnel:{chain:"enum_funnelShapeType",enumAttributes:{seriesLayout:"visualShape",funnelNozzleType:"nozzle",behavior:"colorByPoint,labelConnector,noNameGrouping"}},pyramid:{chain:"enum_funnelOrientationType",
enumAttributes:{funnelShapeType:"square",seriesLayout:"visualShape",behavior:"colorByPoint,labelConnector,noNameGrouping"}},cone:{chain:"enum_funnelOrientationType",enumAttributes:{funnelShapeType:"round",seriesLayout:"visualShape",behavior:"colorByPoint,labelConnector,noNameGrouping"}},heatmap:{chain:"enum_columnType",enumAttributes:{behavior:"colorByPoint"}},treemap:{chain:"enum_treemapMode",enumAttributes:{behavior:"noNameGrouping,tree"}},map:{chain:"enum_columnType",enumAttributes:{behavior:"noNameGrouping"}},
organizational:{chain:"enum_organizationConnectorType",enumAttributes:{behavior:"annotation,tree,noNameGrouping,noLegend"}},venn:{chain:"enum_vennType",enumAttributes:{seriesLayout:"visualShape",behavior:"colorByPoint,noLegend"}},calendar:{chain:"enum_calendarType",enumAttributes:{}}},terminateAt:"enum_seriesType"},treemapMode:{members:{squarify:{isDefault:!0,chain:"enum_treemapDirection"},sliceanddice:{chain:"enum_treemapDirection"},stripes:{chain:"enum_treemapDirection"}}},treemapDirection:{members:{horizontal:{isDefault:!0,
chain:"enum_columnType"},vertical:{chain:"enum_columnType"}}},radarType:{type:"enum",members:{auto:{isDefault:!0,chain:"enum_seriesType"},polar:{chain:"enum_seriesType"},spider:{chain:"enum_seriesType"}}},gaugeType:{type:"enum",members:{circular:{isDefault:!0,chain:"enum_circularGaugeType"},linear:{chain:"enum_linearGaugeType"}}},linearGaugeType:{type:"enum",members:{vertical:{isDefault:!0,chain:"enum_seriesType"},horizontal:{chain:"enum_seriesType"}}},seriesType:{type:"enum",members:{column:{chain:"enum_columnType",
enumAttributes:{behavior:"snapToZero,clusters,drawRect"}},line:{isDefault:!0,chain:"enum_lineSeriesType",enumAttributes:{behavior:"drawMarker,drawLine"}},area:{chain:"enum_areaShadingType",enumAttributes:{behavior:"drawMarker,drawLine,drawArea,snapToZero"}},marker:{enumAttributes:{behavior:"drawMarker"}},bubble:{chain:"enum_bubbleSizingType",enumAttributes:{behavior:""}},ohlc:{enumAttributes:{behavior:"clusters"}},candlestick:{chain:"enum_columnType",enumAttributes:{behavior:"clusters,drawRect"}},
map:{chain:"enum_columnType",enumAttributes:{behavior:"varyPalette"}},heatmap:{chain:"enum_columnType",enumAttributes:{}},calendar:{chain:"enum_calendarType",enumAttributes:{}},variwide:{chain:"enum_variwideType",enumAttributes:{behavior:"snapToZero,clusters,drawRect"}}}},bubbleSizingType:{type:"enum",members:{area:{isDefault:!0},width:{}}},areaShadingType:{type:"enum",members:{subtle:{isDefault:!0,chain:"enum_lineSeriesType"},none:{chain:"enum_lineSeriesType"}}},lineSeriesType:{type:"enum",members:{normal:{isDefault:!0},
spline:{},step:{}}},circularGaugeType:{type:"enum",members:{clip:{isDefault:!0,chain:"enum_seriesType"},circle:{chain:"enum_seriesType"},arc:{chain:"enum_seriesType"}}},columnType:{type:"enum",members:{subtle:{isDefault:!0},solid:{},aqua:{},rounded:{},roundCaps:{},cushion:{}}},pieType:{type:"enum",members:{normal:{isDefault:!0},donut:{}}},vennType:{type:"enum",members:{normal:{isDefault:!0},colorbypoint:{}}},funnelOrientationType:{type:"enum",members:{normal:{isDefault:!0},inverted:{}}},funnelShapeType:{type:"enum",
members:{round:{isDefault:!0,chain:"enum_funnelOrientationType"},square:{chain:"enum_funnelOrientationType"}}},organizationConnectorType:{type:"enum",members:{rightangle:{isDefault:!0,chain:"enum_organizationType"},straight:{chain:"enum_organizationType"}}},organizationType:{type:"enum",members:{down:{isDefault:!0},left:{},up:{},right:{}}},calendarType:{type:"enum",members:{auto:{isDefault:!0,chain:"enum_columnType"},decade:{chain:"enum_columnType"},years:{chain:"enum_columnType"},year:{chain:"enum_columnType"},
quarter:{chain:"enum_columnType"},month:{chain:"enum_columnType"},week30min:{chain:"enum_columnType"},week:{chain:"enum_columnType"},dayminutes:{chain:"enum_columnType"},dayhours:{chain:"enum_columnType"},day30min:{chain:"enum_columnType"},day15min:{chain:"enum_columnType"},day5min:{chain:"enum_columnType"},day:{chain:"enum_columnType"},hourseconds:{chain:"enum_columnType"},hour30sec:{chain:"enum_columnType"},hour10sec:{chain:"enum_columnType"},hourminutes:{chain:"enum_columnType"},hour:{chain:"enum_columnType"},
minute:{chain:"enum_columnType"}}},variwideType:{type:"enum",members:{subtle:{isDefault:!0},solid:{},aqua:{},rounded:{},roundCaps:{},cushion:{}}},nanoChartTypes:{type:"enum",members:"sparkline|arealine|bar|bullet|column|progress|pie|heatmap|scale|chart|barfull"},markerTypes:{type:"enum",members:"none|diamond|circle|arrow-down|arrow-up|five-point-star|four-point-star|merger|split-reverse|seven-point-star|six-point-star|spinoff|split|square|triangle|triangle-down"},emptyPointMode:{type:"enum",members:"default|ignore|treatAsZero"},
projection:{type:"enum",members:"none|mercator|lambertConformalConic|lambertAzimuthalEqualArea|stereographic|orthographic"},scaleBreakType:{type:"enum",updated:"2.7",members:{zigzag:{isDefault:!0},gap:"",line:"",hidden:""}},scale:{type:"enum",updated:"2.6",members:{auto:{isDefault:!0},time:"",stacked:"",stackedFull:"",stackedLogarithmic:{},logarithmic:{},variwide:{}}},rangeMode:{type:"enum",updated:"2.8",members:{auto:{isDefault:!0},curly:"",measure:""}},colors:{type:"enum",caseInsensitive:!0,members:{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",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",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",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",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},palette:{type:"enum",members:"default|spreadsheet|oceanMidtones|mutedRainbow|pastelContrast|rainforest|random|autumn|bright|lavender|midTones|mixed|pastel|poppies|spring|warmEarth|waterMeadow|darkRainbow|midRange|vividDark|fiveColor1|fiveColor2|fiveColor3|fiveColor4|fiveColor5|fiveColor6|fiveColor7|fiveColor8|fiveColor9|fiveColor10|fiveColor11|fiveColor12|fiveColor13|fiveColor14|fiveColor15|fiveColor16|fiveColor17|fiveColor18|fiveColor19|fiveColor20|fiveColor21|fiveColor22|fiveColor23|fiveColor24|fiveColor25|fiveColor26|fiveColor27|fiveColor28|fiveColor29|fiveColor30|fiveColor31|fiveColor32|fiveColor33|fiveColor34|fiveColor35|fiveColor36|fiveColor37|fiveColor38|fiveColor39|fiveColor40|fiveColor41|fiveColor42|fiveColor43|fiveColor44|fiveColor45|fiveColor46|colorVision1|colorVision2|colorVision3|colorVision4"},
hatchStyle:{type:"enum",members:"none|horizontal|vertical|light-downward-diagonal|light-upward-diagonal|percent05|percent10|percent20|percent25|dashed-downward-diagonal|dashed-upward-diagonal|dashed-horizontal|dashed-vertical|forward-diagonal|backward-diagonal|large-horizontal|dark-downward-diagonal|dark-upward-diagonal|dark-horizontal|dark-vertical|wide-downward-diagonal|wide-upward-diagonal|narrow-horizontal|narrow-vertical|small-grid|large-grid|dotted-grid|cross-diagonal|outlined-diamond|dotted|dotted-diamond|solid-diamond|large-checker-board|small-checker-board|wave|zig-zag|diagonal-brick|horizontal-brick|weave"},
cultures:{type:"enum",members:"af|af-ZA|ar|ar-AE|ar-BH|ar-DZ|ar-EG|ar-IQ|ar-JO|ar-KW|ar-LB|ar-LY|ar-MA|ar-OM|ar-QA|ar-SA|ar-SY|ar-TN|ar-YE|az|az-Cyrl-AZ|az-Latn-AZ|be|be-BY|bg|bg-BG|bs-Latn-BA|ca|ca-ES|cs|cs-CZ|cy-GB|da|da-DK|de|de-AT|de-DE|de-CH|de-LI|de-LU|dv|dv-MV|el|el-GR|en|en-029|en-AU|en-BZ|en-CA|en-GB|en-IE|en-JM|en-NZ|en-PH|en-TT|en-US|en-ZA|en-ZW|es|es-AR|es-BO|es-CL|es-CO|es-CR|es-DO|es-EC|es-ES|es-GT|es-HN|es-MX|es-NI|es-PA|es-PE|es-PR|es-PY|es-SV|es-UY|es-VE|et|et-EE|eu|eu-ES|fa|fa-IR|fi|fi-FI|fo|fo-FO|fr|fr-BE|fr-CA|fr-FR|fr-CH|fr-LU|fr-MC|gl|gl-ES|gu|gu-IN|he|he-IL|hi|hi-IN|hr|hr-BA|hr-HR|hu|hu-HU|hy|hy-AM|id|id-ID|is|is-IS|it|it-CH|it-IT|ja|ja-JP|ka|ka-GE|kk|kk-KZ|kn|kn-IN|ko|kok|kok-IN|ko-KR|ky|ky-KG|lt|lt-LT|lv|lv-LV|mi-NZ|mk|mk-MK|mn|mn-MN|mr|mr-IN|ms|ms-BN|ms-MY|mt-MT|nb-NO|nl|nl-BE|nl-NL|nn-NO|no|ns-ZA|pa|pa-IN|pl|pl-PL|pt|pt-BR|pt-PT|quz-BO|quz-EC|quz-PE|ro|ro-RO|ru|ru-RU|sa|sa-IN|se-FI|se-NO|se-SE|sk|sk-SK|sl|sl-SI|sma-NO|sma-SE|smj-NO|smj-SE|smn-FI|sms-FI|sq|sq-AL|sr|sr-Cyrl-BA|sr-Cyrl-CS|sr-Latn-BA|sr-Latn-CS|sv|sv-FI|sv-SE|sw|sw-KE|syr|syr-SY|ta|ta-IN|te|te-IN|th|th-TH|tn-ZA|tr|tr-TR|tt|tt-RU|uk|uk-UA|ur|ur-PK|uz|uz-Cyrl-UZ|uz-Latn-UZ|vi|vi-VN|xh-ZA|zh-CN|zh-HK|zh-CHS|zh-CHT|zh-MO|zh-SG|zh-TW|zu-ZA"},
timeUnit:{type:"enum",members:"second|minute|hour|day|week|month|year"},zoomAxis:{type:"enum",members:"x|y|xy|none"},alignHorizontal:{type:"enum",members:"center|left|right"},alignVertical:{type:"enum",members:"top|middle|bottom"},directionalLayout:{type:"enum",members:"auto|vertical|horizontal"},orientation:{type:"enum",members:"none|left|right|top|bottom|topLeft|topRight|bottomRight|bottomLeft|opposite"},titlePosition:{type:"enum",members:"left|center|right|full"},placement:{type:"enum",members:"auto|inside|outside"},
uiItemType:{type:"enum",updated:"2.7",members:{auto:{isDefault:!0},option:"",checkbox:"",toggle:"",radio:"",select:"",selectMultiple:"",range:"",file:""}},pointSelectionMode:{type:"enum",members:"auto|single|multiple"},hoverAction:{type:"enum",members:"highlightPoint|highlightSeries|highlightPointGroup"},fontWeight:{type:"enum",members:"normal|bold"},fontStyle:{type:"enum",members:"normal|italic"},fontFamily:{type:"enum",caseInsensitive:!0,members:"Tahoma|Arial|Verdana|Helvetica|Trebuchet MS|Arial Black|Comic Sans MS|Courier New|Georgia|Impact|Lucida Console|Lucida Sans Unicode|Lucida Grande|Geneva|Times New Roman|MS Sans Serif|MS Serif|Arial, Helvetica, sans-serif|Arial Black, Gadget, sans-serif|Comic Sans MS, cursive|Courier New, monospace|Georgia, serif|Impact, Charcoal, sans-serif|Lucida Console, Monaco, monospace|Lucida Sans Unicode, Lucida Grande, sans-serif|Palatino Linotype, Book Antiqua, Palatino, serif|Tahoma, Geneva, sans-serif|Times New Roman, Times, serif|Trebuchet MS, sans-serif|Verdana, Geneva, sans-serif|MS Sans Serif, Geneva, sans-serif|MS Serif, New York, serif"},
textDecoration:{type:"enum",members:"overline|line-through|underline|underline overline"},cursor:{type:"enum",members:"none|default|pointer|help|crosshair|wait|progress|text|n-resize|ne-resize|nw-resize|e-resize|s-resize|se-resize|sw-resize|w-resize"},dashStyle:{type:"enum",caseInsensitive:!0,members:"Solid|ShortDash|ShortDot|ShortDashDot|ShortDashDotDot|Dot|Dash|LongDash|DashDot|DashDotDot|LongDashDot|LongDashDotDot"},boxCornerType:{type:"enum",members:"square|cut|round"},mimeType:{type:"enum",members:"image/png|image/jpeg|application/pdf|image/svg+xml"},
animationEasing:{type:"enum",members:"easeInQuad|easeOutQuad|easeInCubic|easeOutCubic|easeInOutCubic|easeInQuart|easeOutQuart|easeInOutQuart|easeInQuint|easeOutQuint|easeInOutQuint|easeInSine|easeOutSine|easeInOutSine|easeInExpo|easeOutExpo|easeInOutExpo|easeInCirc|easeOutCirc|easeInOutCirc|easeInElastic|easeOutElastic|easeInOutElastic|easeInBack|easeOutBack|easeInOutBack|easeInBounce|easeOutBounce|easeInOutBounce"},calculation:{type:"enum",members:"sum|average|min|max"},funnelNozzleType:{type:"enum",
members:{nozzle:{isDefault:!0},noNozzle:{}}},seriesLayout:{type:"enum",members:{XY:{isDefault:!0,chain:"enum_funnelOrientationType"},visualShape:{chain:"enum_funnelOrientationType"}}}}[c];if("string"===typeof c.members){var a=c.members;a=a.split("|");for(var b={},d=0,e=a.length;d<e;d++)b[a[d]]="";c.members=b}return c}function qa(c,a){if(c&&c.pop){a=a||c.kind;if("rgba"===a&&!Aa(c[3]))return"rgba("+parseInt(c[0])+","+parseInt(c[1])+","+parseInt(c[2])+","+sa(c[3],5)+")";if(2<c.length||"rgb"===a)return"rgb("+
parseInt(c[0])+","+parseInt(c[1])+","+parseInt(c[2])+")"}return c}function Ic(c,a){a.kind=c;return a}function fd(c,a,b){function d(b,a,c){0>c&&(c+=1);1<c&&--c;return c<1/6?b+6*(a-b)*c:.5>c?a:c<2/3?b+(a-b)*(2/3-c)*6:b}var e,f,g=1;if(c&&c.pop){var h=F(c,4);c=h[0];a=h[1];b=h[2];g=h[3];t(g)||(g=1)}if(0===a)h=e=f=b;else{f=.5>b?b*(1+a):b+a-b*a;var k=2*b-f;h=d(k,f,c+1/3);e=d(k,f,c);f=d(k,f,c-1/3)}h=Ic("rgba",Mo([h,e,f,g]));h.hsl=[c,a,b];return h}function jf(c,a,b){c/=255;a/=255;b/=255;var d=Math.max(c,a,
b),e=Math.min(c,a,b),f=(d+e)/2;if(d===e)var g=e=0;else{var h=d-e;e=.5<f?h/(2-d-e):h/(d+e);switch(d){case c:g=(a-b)/h+(a<b?6:0);break;case a:g=(b-c)/h+2;break;case b:g=(c-a)/h+4}g/=6}return Ic("hsl",[g,e,f])}function Aw(c,a,b,d){c&&c.pop&&(d=F(c,4),c=d[0],a=d[1],b=d[2],d=d[3]);c/=255;a/=255;b/=255;var e=Math.max(c,a,b),f=Math.min(c,a,b),g=e-f;if(e===f)var h=0;else{switch(e){case c:h=(a-b)/g+(a<b?6:0);break;case a:h=(b-c)/g+2;break;case b:h=(c-a)/g+4}h/=6}return Ic("hsv",[h,0===e?0:g/e,e,d])}function Bw(c,
a,b,d){c&&c.pop&&(d=F(c,4),c=d[0],a=d[1],b=d[2],d=d[3]);var e=Math.floor(6*c),f=6*c-e;c=b*(1-a);var g=b*(1-f*a);a=b*(1-(1-f)*a);e=F([[b,a,c],[g,b,c],[c,b,a],[c,g,b],[a,c,b],[b,c,g]][e%6],3);b=e[0];a=e[1];e=e[2];1<b&&(b=1);1<a&&(a=1);1<e&&(e=1);return Ic("rgba",Mo([b,a,e,d]))}function na(c,a){var b,d,e,f;if(c){if(b=c.kind){if("rgba"===b)return c;if("rgb"===b)return 4>c.length&&(c[3]=1),c.kind="rgba",c}b=K(c);if("array"===b)return c.kind=4===c.length?"rgba":"rgb",c;if("string"===b){var g=No[c];if(!g){if("#"===
c[0])g=Hk(c);else if(b=Cw[c.toLowerCase()])g=Hk(b);g&&(No[c]=g)}if(!g)if("h"===c[0])"a"===c[3]?e=kf.hsla.exec(c):d=kf.hsl.exec(c);else{var h=Oo[c];!h&&(h=kf.rgba.exec(c))&&(h=[parseInt(h[1]),parseInt(h[2]),parseInt(h[3]),parseFloat(h[4])],Oo[c]=h);if(!h){var k=kf.rgb.exec(c);k||(g=Hk(c))||(f=kf.hexShort.exec(c))}}}b="rgba";if(h)var l=h.slice(0);else if(g)l=g.slice(0),"rgb"!==a?l.push(1):b="rgb";else if(k)l=[parseInt(k[1]),parseInt(k[2]),parseInt(k[3])],"rgb"!==a?l.push(1):b="rgb";else if(f)l=[17*
parseInt(f[1],16),17*parseInt(f[2],16),17*parseInt(f[3],16)],"rgb"!==a?l.push(1):b="rgb";else{if(e)var m=[parseInt(e[1])/360,parseInt(e[2])/100,parseInt(e[3])/100,parseFloat(e[4])];else d?(m=[parseInt(d[1])/360,parseInt(d[2])/100,parseInt(d[3])/100,1],l=fd(m)):l="transparent"===c?[255,255,255,0]:[0,0,0,0];m&&(l=fd(m))}l.kind=b}return l}function ca(c,a,b,d){var e=function(a){return Math.round(T(f[a],g[a],0,100,b))};if(c&&a){var f=na(c),g=na(a);c=e(0);a=e(1);e=e(2);d||(d=T(f[3],g[3],0,100,b));e=[c,
a,e,d];if(t(d))return Ic(t(d)?"rgba":"rgb",e)}else{if(c)return c;if(a)return a}}function kg(c){var a=[];if("object"===typeof c&&c.stops){for(var b=0,d=c.stops.length;b<d;b++)a[b]=c.stops[b][1];return Ik(a)}return"function"===typeof c.pop?Ik(c):c}function Ik(c){c=B(Po.apply(null,B(c,na)),function(a){return Qo(a)});return qa(c)}function qe(c,a,b){var d={};d.tweenID=b&&b.id?b.id:he(5);d.from=Ro(c,d.tweenID);d.to=Ro(a,d.tweenID);if(d.from.isComplex||d.to.isComplex){if(d.from.isComplex)if(d.to.isComplex)d.stepFn=
"linear"===d.from.type?So(d):To(d);else var e=d.to,f=d.from;else e=d.from,f=d.to;f?(d.stepFn="linear"===f.type?So(d):To(d),e&&Dw(e,f)):d.from.type!==d.to.type&&(c=kg(d.to.input),a=kg(d.from.input),c=Ik([c,a]),d.animations=[qe(d.from.input,c),qe(c,d.to.input)],d.stepFn=Ew(d));d.from.stops.length!=d.to.stops.length&&(c=d.from,a=d.to,c.stops.length!==a.stops.length&&(c.stops.length<a.stops.length&&(a=F([a,c],2),c=a[0],a=a[1]),e=Uo(c),f=Uo(a),b=re(e,f),e=re(f,e),Vo(a,b),c.stops.length!==a.stops.length&&
Vo(c,e)))}return d.stepFn||Fw(d)}function So(c){return function(a){if(1==a)return c.to.input;var b=c.from.linearGradient,d=c.to.linearGradient;b={linearGradient:[cc(b[0],d[0],a),cc(b[1],d[1],a),cc(b[2],d[2],a),cc(b[3],d[3],a)],stops:[]};Wo(c,b.stops,a);b.tweenId=c.tweenID;return b}}function To(c){return function(a){if(1==a)return c.to.input;var b=c.from.radialGradient,d=c.to.radialGradient,e={radialGradient:{cx:cc(b.cx,d.cx,a),cy:cc(b.cy,d.cy,a),r:cc(b.r,d.r,a)},stops:[]};t(d.fx)&&(e.radialGradient.fx=
cc(z(b.fx,.5),d.fx,a));t(d.fy)&&(e.radialGradient.fx=cc(z(b.fy,.5),d.fy,a));Wo(c,e.stops,a);e.tweenId=c.tweenID;return e}}function Wo(c,a,b){for(var d=function(b,a){"rgb"===b.kind&&(a=t(a)?a:1,3<b.length?b[3]=a:b.push(a),b.kind="rgba");return b},e=0,f=c.from.stops.length;e<f;e++){var g=c.from.stops[e],h=c.to.stops[e],k=ca(d(g.color,g.opacity),d(h.color,h.opacity),100*b),l=void 0;"rgba"===k.kind&&(l="rgb");a.push([100*cc(g.x,h.x,b)+"%",qa(k,l),l?k[3]:cc(g.opacity,h.opacity,b)])}}function Ew(c){return function(a){if(1==
a)return c.to.input;a=T(0,c.animations.length,0,1,a);return c.animations[Math.floor(a)](a%1)}}function Fw(c){return function(a){return 1==a?c.to.input:qa(ca(c.from.stops[0].color,c.to.stops[0].color,100*a))}}function Ro(c,a){var b={input:c,stops:[],id:a};a=function(a,c,d){a=na(a,"rgb");"rgba"===a.kind&&(a.kind="rgb",d=a[3]);b.stops.push({color:a,x:c,opacity:d})};if("string"==K(c))a(c,0,1),b.type="color";else{for(var d=0,e=c.stops.length;d<e;d++){var f=c.stops[d],g=1;"string"==K(f[0])&&-1<f[0].indexOf("%")&&
(g=100);a(f[1],parseFloat(f[0])/g,f[2])}b.isComplex=!0;c.linearGradient?(b.type="linear",b.linearGradient=Xo(b,c.linearGradient)):c.radialGradient&&(b.type="radial",b.radialGradient=Xo(b,c.radialGradient))}return b}function Xo(c,a){var b="radial"==c.type?{}:[];x(a,function(a,c){var d=["x1","y1","x2","y2"].indexOf(c);a="number"===K(a)?a:parseFloat(a)/(-1<a.indexOf("%")?100:1);b[-1===d?c:d]=a});return b}function Uo(c){for(var a=[],b=0,d=c.stops.length;b<d;b++)a.push(c.stops[b].x);return a}function Vo(c,
a){for(var b=0,d=a.length;b<d;b++){var e=c,f=a[b],g=e.stops;if(1<g.length)for(var h=1,k=g.length;h<k;h++){var l=g[h],m=g[h-1];if(l.x>f&&m.x<f){var n=T(0,1,m.x,l.x,f);l={color:ca(m.color,l.color,100*n),x:f,opacity:cc(m.opacity,l.opacity,n)};e.stops.splice(h,0,l)}}}}function Dw(c,a){if("color"!==c.type)throw"matchStops called on a "+c.type;var b=c.stops[0].color,d=t(c.stops[0].opacity)?c.stops[0].opacity:1;c.stops=a.stops.slice(0);"linear"==a.type&&(c.linearGradient=la(a.linearGradient));"radial"==
a.type&&(c.radialGradient=la(a.radialGradient));x(c.stops,function(e,f){c.stops[f]={x:a.stops[f].x,color:b,opacity:d}})}function Gw(c,a,b){var d={};a=a.meta;var e=c&&c.meta&&c.meta.pattern;d.pattern=a.pattern;d.colorAnim=qe(e?c.meta.color:a.color,a.color,b);d.bgAnim=qe(e?c.meta.backgroundColor:c,a.backgroundColor,b);return function(b){return{pattern:d.pattern,color:d.colorAnim(b),backgroundColor:d.bgAnim(b)}}}function qc(c){if(c)return c.pop?2===c.length&&c[1].toFixed?ba(qc(c[0]),1-c[1]):!1:c}function Hw(c){c=
na(c);return"#"+Jk(c[0],c[1],c[2])}function Jk(c,a,b){return ck(ua(c,0,255))+ck(ua(a,0,255))+ck(ua(b,0,255))}function Kk(c){if(c){var a=c.pop?c:na(c);c="#"+Jk(a[0],a[1],a[2]);a=parseFloat(z(a[3],1));return{hex:c,opacity:a}}return{hex:"none",opacity:1}}function Yo(c){c=na(c);var a=F(Jh(c),3);c=a[0];var b=a[1];a=a[2];return.2126*(.03928>=c?c/12.92:Math.pow((c+.055)/1.055,2.4))+.7152*(.03928>=b?b/12.92:Math.pow((b+.055)/1.055,2.4))+.0722*(.03928>=a?a/12.92:Math.pow((a+.055)/1.055,2.4))}function lf(c){c=
na(c);return Zo(Jh(c))}function Lk(c,a){c=na(c);var b=$o(Jh(c));b[0]=a;a=ap(b);c[0]=255*a[0];c[1]=255*a[1];c[2]=255*a[2];return c}function Mk(c,a){var b=lf(c);return Lk(c,ua(b+a,0,1))}function gd(c,a){a=ua(a,-100,100);var b=function(b){return Math.floor(ua(b,0,255))},d=function(a){return b(f[a]+(255-f[a])*e)},e=a/100,f=na(c);0<a?(c=d(0),a=d(1),d=d(2)):(e*=-1,e=1-e,c=b(f[0]*e),a=b(f[1]*e),d=b(f[2]*e));return Ic("rgba",[c,a,d,f[3]])}function se(c,a,b){b=0<b?"+"+b:b;return te(c,"hsv("+{h:b+",,",s:","+
b+",",v:",,"+b}[a]+")")}function Kh(c){c=na(c);var a=jf(c[0],c[1],c[2]);a[2]+=.007*Math.pow(100*a[2]-100,2)/200;a=fd(a[0],a[1],a[2]);a[3]=c[3];return a}function ue(c,a){void 0===a&&(a=.7);c=na(c);var b=jf(c[0],c[1],c[2]);b[2]+=Math.pow(b[2]-1,2)*a;a=fd(b[0],b[1],b[2]);a[3]=c[3];return a}function ve(c){c=na(c);var a=jf(c[0],c[1],c[2]);a[2]-=.007*Math.pow(100*a[2],2)/100;a=fd(a);a[3]=c[3];return a}function Dd(c,a){c=na(c);1<a&&(a=T(0,1,0,255,a));return[c[0],c[1],c[2],a]}function ba(c,a){if(!a||!a.toFixed)return c;
1>=a&&(a*=100);c=na(c);return Ic("rgba",[c[0],c[1],c[2],(100-a)/100*c[3]])}function Jc(c,a){return a&&a.toFixed?(1>=a&&(a*=100),c=na(c),Ic("rgba",[c[0],c[1],c[2],1-a/100])):c}function bp(c,a){return lg(c,function(b){return Jc(b,a)})}function Ma(c){var a=zb((c+360)%360+180),b=Math.cos(Math.abs((.5*(Math.floor(a/Math.PI*2)+2)+.25)*Math.PI-a))*Math.sqrt(2);c=b*Math.cos(a);var d=b*Math.sin(a);a=0>d?1:0;b=0<=c?c:c+1;d=0<=d?d:d+1;return[(0>c?1:0).toFixed(4),a.toFixed(4),b.toFixed(4),d.toFixed(4)]}function kb(c,
a,b,d){a.length&&a[0][1].pop&&x(a,Nk);d&&(c.hash=d);return{linearGradient:c,stops:a}}function Nk(c){var a=Kk(c[1]);c[1]=a.hex;c[2]=a.opacity;return c}function cp(c,a,b,d){var e=a.length,f=kb(Ma(c),[]);for(c=0;c<e;c++){var g=na(qc(b[c])||b[c]),h=qa(g);f.stops.push([a[c]/100,Hw(h),g[3]])}f.linearGradient.hash=d||"";return f}function mg(c,a,b,d){void 0===a&&(a=[0,0]);void 0===b&&(b=2);a={cx:.5+2*a[0],cy:.5+2*a[1],r:2.75-b};b=na(c);c=ue(b);b=ve(b);c=[["0%",c],["100%",b]];c.length&&c[0][1].pop&&x(c,Nk);
return{radialGradient:a,stops:c}}function ng(c,a,b,d){void 0===a&&(a=!1);void 0===b&&(b=!1);void 0===d&&(d=!1);var e=["aqua",c,a,b,d].join(""),f=0;if("object"===typeof a&&null!==a)var g=!0,h=a;else{f=a?90:0;var k=Ma(f);h=a?0:90}c=na(c);b&&(k=Ma(f+180),h=0);var l=d?ca(ve(c),"#ffffff",10):ve(c),m=d?ca(Kh(c),"#ffffff",10):ue(c);b=ca(l,m,.8,c[3]);f=ca(l,m,40,c[3]);var n=ca(l,"#fefefe",70.5,c[3]),p=ca(l,b,50,c[3]);p=ca(p,"#fefefe",39.2,c[3]);l=ca(l,b,60,c[3]);l=ca(l,"#fefefe",39.2,c[3]);var q=ca(b,"#fefefe",
39.2,c[3]);d&&(m=ca(m,"#f7ffe0",60,1),f=ca(f,"#f7ffe0",40,1));d=[["0%",n],["25%",p],["30%",l],["49.99%",q],["50%",b],["70%",f],["100%",m]];return g?(a=a.gradientDistance,25>a?(d[3][0]="47%",d[4][0]="53%"):50>a?(d[3][0]="48%",d[4][0]="52%"):(d[3][0]="49.5%",d[4][0]="50.5%"),kb(k,d,[h,"100%",c[3],c[3]])):kb(k,d,[h,"100%",c[3],c[3]],e)}function mf(c,a,b,d){void 0===a&&(a=!1);void 0===b&&(b=!1);void 0===d&&(d=!1);var e=["rounded",c,a,b,d].join(""),f=0;if("object"===typeof a&&null!==a)var g=!0;else{f=
a?90:0;var h=Ma(f);a=a?0:90}c=na(c);b&&(h=Ma(f+180),a=0);b=d?ca(ve(c),"#ffffff",5):ve(c);f=d?ca(Kh(c),"#ffffff",50):ue(c);var k=ca(b,"#fefefe",25,c[3]),l=ca(b,f,18.75,c[3]),m=ca(l,"#fefefe",62.745,c[3]);l=ca(l,"#fefefe",54.90196,c[3]);var n=ca(b,f,31.25,c[3]);c=ca(n,"#fefefe",11.764705,c[3]);var p=b;g&&(p=k=m,b=f);d&&(b=ca(b,"#f7ffe0",50,1),p=ca(p,"#f7ffe0",60,1));d=[["0%",p],["5%",k],["20%",m],["20%",l],["30%",c],["30%",n],["85%",f],["100%",b]];return g?kb(h,d):kb(h,d,[a,"100%",1,1],e)}function Ok(c,
a,b,d){void 0===a&&(a=!1);void 0===b&&(b=!1);void 0===d&&(d=!1);var e=a?Ma(90):Ma(0),f=a?0:90;a="subtl"+c+a+b;var g=.03,h=c=na(c),k=lf(h),l=c[3];b&&(e=Ma(180),f=0);b=te;c=Lh("hsv(,,+"+g+")");var m=Lh("hsv(,,-"+g+")");g=Lh("hsv(,,-"+2*g+")");var n=c(h),p=m(h);c=g(h);n===h&&(c="#"+Jk(p[0],p[1],p[2]),n=m(c),c=g(c));d&&(.85<k?(g=1.4*-(k-.8),n=b(n,"hsv(,,"+(0>g?"-":"+")+Math.abs(g)+")")):(h=ca(h,"#f7ffe0",20,1),n=ca(n,"#f7ffe0",50,1),c=ca(c,"#f7ffe0",70,1)));d=[["0%",Jc(n,1-l)],["50%",Jc(qa(h),1-l)],["90%",
Jc(p,1-l)],["100%",Jc(c,1-l)]];return kb(e,d,[f,"100%",h[3],h[3]],a)}function Pk(c,a,b,d){void 0===a&&(a=!1);void 0===b&&(b=!1);void 0===d&&(d=!1);var e=a?Ma(90):Ma(0);a=a?0:90;var f="squ"+c+b+d,g=c=na(c);c=c[3];b&&(e=Ma(180),a=0);b=ca(g,d?"white":"black",20);b=[["0%",Jc(b,1-c)],["49.99%",Jc(b,1-c)],["50%",Jc(g,1-c)],["100%",Jc(g,1-c)]];return kb(e,b,[a,"100%",g[3],g[3]],f)}function lg(c,a,b){void 0===b&&(b=["val"]);for(var d,e=0,f=0,g=b.length;f<g;f++)if("val"===b[f]){e=f;break}c.pop&&c.kind&&(c=
qa(c));var h=[];if("object"===typeof c){if(c.stops){d=Object.create(c);var k=[];f=0;for(g=d.stops.length;f<g;f++){var l=d.stops[f];b[e]=3===l.length?qa(Jc(l[1],1-l[2])):l[1];l=Nk([l[0],a.apply(null,b)]);h.push(l[1]);k.push(l)}d.stops=k;if(a=H(c,"linearGradient")?"linearGradient":H(c,"radialGradient")?"radialGradient":void 0)c=d[a]=c[a].slice(),c.hash=k.join("")+c.join("");return d}if(c.image)return"url('"+c.image+"')"}else return b[e]=c,a.apply(null,b)}function Iw(c,a){function b(b){return Math.sqrt(b[0]*
b[0]*.284+b[1]*b[1]*.72+b[2]*b[2]*.068)/255}void 0===a&&(a=.3);var d=c=na(c);d[0]||d[1]||d[2]||(d[0]=d[1]=d[2]=5);c=b(d);var e=4.2*a;a*=9;a=.49>=c?T(.008*e,.115*e,0,.49,c):T(-.08*a,-.09*a,.49,1,c);return dp(function(a,c){var d=b(a);d=ua(d+c,0,1);c=b(a);d-=c;var e=b(gd(a,-10));return gd(a,d/(e-c)*-10)}(d,a))}function Ob(c,a){if("none"===c)return"rgba(0,0,0,0)";c=qc(c);t(a)&&(c=bp(c,a));return qa(c)}function og(c){c=na(qc(c));return Kk(c)}function dc(c,a,b,d,e){if(!t(c))return c;var f,g=c.length,h=
[],k=[];if(c.pop){if(f=qc(c))return b?hd(b,ba(f,a),d):qa(ba(f,a));if(2===g)return!0===c[1]?hd(b,ba(qc(c[0]),a),d):ba(qc(c[0]),a);if(2<g){var l=c.join(""),m=c[g-1],n=100/(g-2);c=c.slice(0);d=qc(c[0]);for(b=0;b<g-1;b++)c[b]=b||e?da(c[b],e||d):c[b],f=ba(qc(c[b]),a),k.push(qa(f)),h.push(n*b);return cp(m,h,k,l)}}else{if(c.linearGradient&&c.linearGradient.pop)return t(a)?Mh(c,1-a):c;if(c.stops){if(c.hasOwnProperty("angle")&&c.stops){g=c.stops.length;m=c.stops;d=m[0][1];for(b=0;b<g;b++)f=m[b],"undefined"!==
typeof f[0]?h.push(100*f[0]):h.push(0),f=b||e?da(f[1],e||d):f[1],k.push(ba(qc(f),a));return cp(c.angle,h,k)}}else{if(c.image)return"url('"+c.image+"')";if(c.charAt)return b?hd(b,ba(c,a),d):ba(c,a)}}}function da(c,a){return lg(a,function(b){a:if(b){if("currentColor"!==c){if(pg(c))var a=te(b,c);else if(Oa[c])switch(c){case Oa.crysDark:a=ve(b);break;case Oa.crysBright:case Oa.select:a=ue(b);break;case Oa.hover:var e=b?1-na(b)[3]:void 0;a=lf(b);a=.59>a?Lk(b,a+.15):Lk(b,a-.15);a=bp(a,100*e);break;case Oa.outline:a=
Iw(b,.07);case Oa.outlineContrast:break;case Oa.label:a=gd(b,-40);break;case Oa.labelContrast:var f=a=te(b,"contrast");e=Yo(b);f=Yo(f);e=(Math.max(e,f)+.05)/(Math.min(e,f)+.05);7>e&&(b=ep(na(b)),a=ca(a,.5>b[0]?"#fff":"#000",(8-e)/8*100));break;case Oa.seriesLine:a=Mk(b,-.095);break;case Oa.hueEffect:a=se(b,"h",-23.4);break;case Oa.lightenDark:a=lf(b);a=Mk(b,.5>a?.095:-.125);break;default:a=b}else{b=c;break a}b=qa(a)}}else b=void 0;return b})}function hd(c,a,b){if(!a||"undefined"===typeof a)return a;
"none"===a&&(a="rgba(0,0,0,0)");if(a.linearGradient)return a;if(!1===a[1])return a[0];a.length&&!a.kind&&(a=Ob(a));var d=c,e=na(a)[3],f=1-e,g=ba(a,f);d+=a+(b||0);var h=a;switch(c){case Ja.gaugePolarBack:b=ba(ca(a,"#ffffff",20),f);h=g;var k=ba(se(a,"v",-.02),f);h=kb(Ma(90),[["0%",b],["40%",h],["100%",k]],[180,"0%",1,1],d);break;case Ja.titleBox:b=ba(ca(a,"#ffffff",20),f);h=g;k=ba(se(a,"v",-.06),f);h=kb(Ma(90),[["0%",b],["40%",h],["100%",k]],[180,"0%",1,1],d);break;case Ja.box:b=ba(ca(a,"#ffffff",20),
f);k=h=g;h=kb(Ma(90),[["0%",b],["40%",h],["100%",k]],[180,"0%",1,1],d);break;case Ja.chartArea:b=ba(ca(a,"#ffffff",20),f);e=k=h=g;var l=ba(gd(a,-5),f);h=kb(Ma(90),[["0%",b],["25%",h],["30%",k],["80%",e],["100%",l]],[180,"0%",1,1],d);break;case Ja.altGridFillRad:h=qa(ba(Dd(a,105),f),"rgba");break;case Ja.altGridFillY:case Ja.altGridFillX:g=.04;0<b&&(g=Math.min(1.7/b,.34));if(0===e)return Ob(a,100);b=ba(Dd("#ffffff",180),f);h=ba(Dd("#ffffff",180),f);k=ba(Dd(a,105),f);e=ba(Dd(a,30),f);l=ba(Dd(gd(a,60),
7.5),f);a=ba(Dd(a,82.5),f);h=kb("altGridFillY"===c?Ma(90):Ma(0),[["0%",b],[g+"%",h],[g+"%",k],["35%",e],["60%",l],["100%",a]],["altGridFillY"===c?180:90,"50%",.35,.1],d);break;case Ja.axisMarkerY:case Ja.axisMarkerX:g=na(a);e=Math.min(255*g[3]+20,255);b=ba(ba(Dd(se(a,"v",-.04),e),7),f);h=ba(ba(a,7),f);h=kb("axisMarkerY"===c?Ma(90):Ma(0),[["0%",b],["20%",h],["80%",h],["100%",b]],["axisMarkerY"===c?180:90,"0%",e/255,e/255],d);break;case Ja.jsButton:b=ba(gd(a,-10),f);h=ba(ue(a),f);k=ba(gd(a,-20),f);
h=kb(Ma(90),[["0%",b],["20%",h],["70%",a],["85%",a],["100%",k]],[180,"0%",1,1],d);break;case Ja.jumpButton:b=ba(gd(a,-10),f);h=ba(ue(a),f);k=ba(gd(a,-20),f);h=kb(Ma(90),[["0%",b],["20%",a],["70%",h],["85%",a],["100%",k]],[180,"0%",1,1],d);break;case Ja.areaFill:b=ba(a,f);k=se(a,"v",.1);h=kb(Ma(90),[["0%",k],["70%",b],["80%",b],["100%",b]],[180,"0%",e,e],d);break;case Ja.aqua:h=ng(a);break;case Ja.rounded:h=mf(a);break;case Ja.subtle:h=Ok(a);break;case Ja.cushion:h=mg(a);break;case Ja.navBar:h=a}return h}
function Jw(c,a){if(a){if(a.pop&&2<a.length)return a.map(function(b){return"string"===typeof b?da(b,c):b});a.stops&&(a=la(a),a.stops=a.stops.map(function(b){b.splice(0)[1]=da(b[1],c)}))}return a}function Mh(c,a){return c?lg(c,function(b){t(a)&&a.toFixed&&(b=na(b),b=Ic("rgba",[b[0],b[1],b[2],b[3]*a]));return qa(b)}):c}function we(c,a,b,d){c=ca(c,a,b,d);return qa(c)}function Qk(c){c=qc(c);return na(c)}function dp(c,a){return qa(c,a)}function Kw(c,a,b){function d(b,a,c,d){b&&(a&&0!==b["stroke-width"]&&
(b.stroke=a),c&&(b.fill=c),d&&(b["stoke-width"]=d))}var e=b.horizontal,f=b.inverted,g=b.offsets,h=b.share,k=b.isRadial?b:e,l="lighterOnDark"===b.strokeMode?ue:ve,m,n=!0;if("aqua"===c)d(a[""],a[""].stroke,ng(a[""].fill,k,f)),(m=a.hover)&&d(m,m.stroke||we(l(m.fill),m.fill,50),ng(m.fill,k,f,!0),2),(m=a.select)&&d(m,m.stroke||qa(l(m.fill)),ng(m.fill,k,f,!0));else if("cushion"===c)d(a[""],a[""].stroke,mg(a[""].fill,g,h)),(m=a.hover)&&d(m,m.stroke||we(l(m.fill),m.fill,50),mg(m.fill,g,h),2),(m=a.select)&&
d(m,m.stroke||qa(l(m.fill)),mg(m.fill,g,h)),n=!1;else if("rounded"===c){m=a[""];m.stroke=m.stroke||qa(l(m.fill));m.fill=mf(m.fill,k,f);if(m=a.hover)m.stroke=m.stroke||m.fill,m.fill=mf(m.fill,k,f,!0),m["stoke-width"]=2;if(m=a.select)m.stroke=m.stroke||qa(l(m.fill)),m.fill=mf(m.fill,k,f,!0)}else if("subtle"===c){m=a[""];0!==m["stroke-width"]&&(m.stroke=m.stroke||qa(l(m.fill)));m.fill=Ok(m.fill,k,f);if(m=a.hover)0!==m["stroke-width"]&&(m.stroke=m.stroke||m.fill),C(k,"isRadial")?(m.fill=we(Kh(m.fill),
"#ffffff",20),n=!1):m.fill=Ok(m.fill,k,f,!0);if(m=a.select)0!==m["stroke-width"]&&(m.stroke=m.stroke||qa(l(m.fill))),m.fill=mf(m.fill,k,f,!0)}else if("square"===c){m=a[""];m.stroke=m.stroke||qa(l(m.fill));m.fill=Pk(m.fill,e,f);if(m=a.hover)m.stroke=m.stroke||m.fill,m.fill=Pk(m.fill,e,f,!0);if(m=a.select)m.stroke=m.stroke||qa(l(m.fill)),m.fill=Pk(m.fill,e,f,!0)}else{m=a[""];m.stroke=qa(m.stroke||qa(l(m.fill)));if(m=a.hover)m.stroke=m.stroke||m.fill,m.fill=we(Kh(m.fill),"#ffffff",20);(m=a.select)&&
(m.stroke=qa(m.stroke||qa(l(m.fill))));n=!1}n&&b.lgCoords&&(c=function(a){a.linearGradient=b.lgCoords},c(a[""].fill),a.hover&&c(a.hover.fill),a.select&&c(a.select.fill))}function fp(c,a){void 0===a&&(a=1);if("none"===c)return c;(c=lg(c,function(b){b=Qk(b);b=se(b,"s",-a);return qa(b)}))&&c.linearGradient&&(c.linearGradient.hash=c.linearGradient.hash+"DS"+a);return c}function gp(c,a,b,d){function e(c){var d=[],e=f(c),h=e[1];e=e[0];e=g(e,a[c],[0,h]);c=(e[1]-e[0])/b;for(h=0;h<b;h++)d[h]=e[0]+c*h;return d}
function f(b){switch(b){case "hue":return[l[0],1];case "saturation":return[l[1],1];case "lightness":return[l[2],1];case "r":return[k[0],255];case "g":return[k[1],255];case "b":return[k[2],255]}}function g(b,a,c){function d(){f=c[1]-e[1];g=e[0]-c[0]}var e=[b-a/2,b+a/2],f,g;d();0>f?(e[0]+=f,e[1]+=f,d(),0>g&&(e[0]=c[0])):0>g&&(e[0]-=g,e[1]-=g,d(),0>f&&(e[1]=c[1]));return e}d=t(d)?d:1;var h=0===d,k=na(c),l=jf(k[0],k[1],k[2]);c={};for(p in a)a.hasOwnProperty(p)&&(c[p]=e(p));for(var m=[],n=0;n<b;n++){var p=
[l[0],l[1],l[2]];c.hue&&(p[0]=c.hue[n]);c.saturation&&(p[1]=c.saturation[n]);c.lightness&&(p[2]=c.lightness[n]);m[n]=Kk(fd(p[0],p[1],p[2])).hex}return h?m:Lw(m,d)}function Lw(c,a){a=t(a)?a:-1;var b=c.length,d;for(t(a)&&(d=ho(a,c.length+2));0!==b;){var e=Math.floor(d[b]*b);--b;a=c[b];c[b]=c[e];c[e]=a}return c}function Rk(){return{x:0,y:0,width:0,height:0}}function Sk(c,a,b){t(a)&&(c.x-=(a-c.width)/2,c.width=a);t(b)&&(c.y-=(b-c.height)/2,c.height=b);return c}function Ed(c,a){return Sk(c,c.width*a,c.height*
a)}function Tk(c,a){return{x:c.x+a,y:c.y+a,width:c.width-2*a,height:c.height-2*a,borderWidth:2*a}}function hp(c,a){return[c[0]+a[3],c[1]+a[0],c[2]-a[3]-a[1],c[3]-a[0]-a[2]]}function ip(c,a,b){return{x:c.x+a,y:c.y+b,width:c.width,height:c.height}}function jp(c,a){return Tk(c,a*Math.min(c.width,c.height)/2)}function qg(c,a,b,d){return{x:c-b/2,y:a-d/2,width:b,height:d}}function kp(c){0>c.width&&(c.x+=c.width,c.width=-c.width);0>c.height&&(c.y+=c.height,c.height=-c.height);c.right=c.x+c.width;c.bottom=
c.y+c.height;c.cx=c.x+c.width/2;c.cy=c.y+c.height/2;return c}function lp(c){return[c.x,c.y,c.x+c.width,c.y+c.height]}function mp(c){return{x:c[0],y:c[1],width:c[2]-c[0],height:c[3]-c[1]}}function Kc(c){return{x:c[0],y:c[1],width:c[2],height:c[3]}}function np(c,a){var b=c.width*c.height,d=a.width*a.height;b=b===d&&c.width===a.width?0:dk(b,d);return 0===b&&c.x===a.x&&c.y===a.y?0:0===b?-1:b}function Nh(c){"undefined"===typeof c&&(c=0);c.toFixed?c=Uk[c]:c.charAt?(c=c.toLowerCase(),c=Uk[Mw.indexOf(c)]):
c=Uk[0];return c?("#"+c.match(/.{1,6}/g).join("#")).match(/.{1,7}/g):c}function op(c,a,b,d){void 0===d&&(d={});var e=nf[c]=nf[c]||{};e.loaded&&a();var f=e.callbacks=e.callbacks||[];e.loading?f.push(a):(e.loading=!0,f.push(a),Nw(c,function(){x(f,function(b){return b()});e.loading=!1;e.loaded=!0},b,d))}function Ow(c,a){if(!c)return null;a||ne();return-1<c.indexOf("http:")||-1<c.indexOf("https:")?c+".js":(a||ne())+"/"+c+".js"}function Nw(c,a,b,d){var e=d.baseUrl,f=d.notificationContainer,g=Ow(c,e);xk(g,
a,function(){b&&b.emit("warning","moduleLoader","libNotFound",{data:[g],container:f});a()});Pw(b,e,g,f)}function Pw(c,a,b,d){a=!a&&Go();c&&(a?c.emit("warning","moduleLoader","cdnLoad",{data:[b],container:d}):ne()&&"https://code.jscharting.com/3.3.1"===ne()||!Qw(b)||c.emit("warning","moduleLoader","scriptLoad",{data:[b],container:d}))}function Qw(c){return P(["maps","toolbar","types"],function(a){return~c.indexOf("modules/"+a)})}function Ab(c){return c.id=c.id||he()}function Oh(c,a){var b=c[a],d;"object"===
K(b)&&(d=c[a]=[b]);return d||c[a]}function Rw(c,a,b){var d,e;if("undefined"!==(e=K(d=C(c,a)))&&"array"===e){var f={};x(d,function(a,c){f[b[c]]=a});Y(c,a,f)}}function pp(c,a){var b,d;"undefined"!==(d=K(b=C(c,a)))&&"string"===d&&Y(c,a,b.toLowerCase())}function Sw(c){Fa(Tw,function(a){var b=c[a];b&&pb(b)&&1>Math.abs(b)&&(c[a]=100*b+"%")})}function qp(c,a){var b;"undefined"!==K(b=C(c,a))&&Ob(b)&&Y(c,a,Ob(b))}function Uw(c){if("object"==typeof c){var a=[];x(["topLeft","topRight","bottomRight","bottomLeft"],
function(b,d){a[d]=c[b]});return a}}function db(c,a){return t(c)&&c.charAt?-1<c.indexOf("%")?(c=parseInt(c.match("-?[0-9]+")),c/100*a):parseInt(c):c}function of(c,a){Ph||(Ph=W.Promise||Vw);return new Ph(c,a)}function Ww(c,a){var b=[],d=function(){return 0===b.filter(function(b){return!b}).length},e;c.forEach(function(f){f.then(function(f){b.push(f?f.ok:!0);f&&f.error&&(e=f.error);f={ok:d()};e&&(f.error=e);b.length===c.length&&a(f)},function(){b.push(!1);b.length===c.length&&a({ok:!1})})})}function Vw(c){return new rp("polyfill/promise",
function(){return new (Ph=W.Promise)(c)})}function Xw(c,a){return new rp(["polyfill/promise","polyfill/fetch"],function(){return(Qh=W.fetch)(c,a)})}function rg(c){if(c&&c.unit){var a=z(c.multiplier,c.count);void 0===a&&(c.multiplier=1);a=z(a,1);return Rh[c.unit]/1*a}return 0}function ec(c,a){var b=a.unit,d=z(a.multiplier,a.count,1);"quarter"===b&&(b="month",d*=3);c.getMonth||(c=new Date(c));c=new Date(c.getTime());if(a&&b)if("decade"===b)c.setFullYear(c.getFullYear()+10*d);else return"month"===b?
new Date(c.getFullYear(),c.getMonth()+d,c.getDate()):"year"===b?(c.setFullYear(c.getFullYear()+d),new Date(c.getTime())):"day"===b?(c.setDate(c.getDate()+d),new Date(c.getTime())):new Date(c.getTime()+rg(a));return c}function Vk(c,a,b){b.getMonth||(b=new Date(b));b=new Date(b.getTime());var d=c.unit?c.unit:c;a=c.multiplier?c.multiplier:1;"minute"===d&&1<a&&(d="hour");switch(d){case "decade":b.setFullYear(10*Math.floor(.1*b.getFullYear()));case "year":b.setMonth(0);case "month":b.setDate(1);case "week":if("week"===
d){b.setDate(b.getDate()-b.getDay()+Yw);break}case "day":b.setHours(0);case "hour":b.setMinutes(0);case "minute":b.setSeconds(0)}b.setMilliseconds(0);return b}function pf(c,a){return{year:{year:a?"2-digit":"numeric"},month:{month:a?"numeric":"short"},day:{day:"numeric"},weekday:{weekday:"short"},hour:{hour:"numeric"},minute:a?{minute:"2-digit"}:{hour:"numeric",minute:"2-digit"},second:a?{second:"2-digit"}:{hour:"numeric",minute:"2-digit",second:"2-digit"},millisecond:"fff"}[c]}function Sh(c){var a=
B(c,Wk);c=Math.min.apply(Math,G(a));a=Math.max.apply(Math,G(a));for(var b=[];c<a+1;c++)b.push(pf(Th[c]));return b}function sp(c){var a=c.pair,b=a.major,d=a.minor,e=c.sigUnits,f=c.intervals;a=pf(b.unit);d=pf(d.unit);var g=a,h=d;e.major.length&&e.minor.length?1===c.intervals[0].length?(b=Math.min.apply(Math,G(B(e.major,Wk))),e=Math.min.apply(Math,G(B(e.minor,Wk))),e--,3<=e&&e--,e>b&&(g=A.apply(null,Sh([Th[b],Th[e]])))):(c=Sh(e.major),e=Sh(e.minor),3<c.length&&c.pop(),"day"===b.unit&&f[1].length>=f[0].length&&
A(a,pf("month")),c.length&&f[1][0]>f[0][0]&&(g=A.apply(null,c)),e.length&&(h=d=A.apply(null,e))):!e.major.length&&e.minor.length&&1===e.minor.length&&"day"===e.minor[0]&&(h=A(pf("month"),h));return{major:a,minor:d,majorFirst:g,minorFirst:h}}function tp(c){var a=F(c,2);c=a[1];a=Ia(B(a[0],Xk));c=Ia(B(c,Xk));return{major:a,minor:c}}function Uh(c,a,b,d){var e=[],f=[],g=[];d=d.getTime();var h=b.getTime();h=d-h;var k={exists:0,close:0},l=b;l.getMonth||(l=new Date(l));var m=c.unit?c.unit:c,n=c.multiplier?
c.multiplier:1,p=Vk(c,1,l);if(p.getTime()!==l.getTime())for(;p.getTime()<l.getTime();)p=ec(p,{unit:m,multiplier:n});for(l=m=p;l.getTime()<=d;)f.push(l.getTime()),l=ec(l,c);e.push(f);if(a){var q;l=m;l.getMonth||(l=new Date(l));for("week"===a.unit&&(l=Vk(a,1,l));l>b;)l=ec(l,{unit:a.unit,multiplier:-z(a.multiplier,1)});b=ec(l,a);b.setMilliseconds(0);for(l=b;l.getTime()<=d;){n=m=c=void 0;p=l.getTime();var r=f;b=h/20;if(0>r.indexOf(p)){if(r.length){try{for(var u=xa(r),y=u.next();!y.done;y=u.next()){var v=
y.value;if(void 0===c||ma(v,p)<ma(c,p))c=v}}catch(w){n={error:w}}finally{try{y&&!y.done&&(m=u.return)&&m.call(u)}finally{if(n)throw n.error;}}c=ma(c,p)}else c=void 0;b=t(c)&&(c>=b?void 0:"close")}else b="exists";(q=b)?k[q]++:g.push(l.getTime());l=ec(l,a)}1<g.length&&e.push(g);e.minorRemoval=k}return e}function Vh(c,a){a=a||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,
4,6]],["year",null]];var b=a[a.length-1],d=Rh[b[0]],e;c.unit&&(c=rg(c));for(e=0;e<a.length;e++){b=a[e];d=Rh[b[0]];var f=b[1];if(a[e+1]&&c<=(d*f[f.length-1]+Rh[a[e+1][0]])/2)break}return{unitRange:d,count:Math.max(1,Math.round(c/d)),unit:b[0]}}function Zw(c,a,b,d){var e=$w(),f,g=function(b){f=b=Uh(b.major,b.minor,c,a);return b[0].length+(b[1]?b[1].length:0)},h,k=0,l=0;if(d)var m=h=d.pair,n=g(d.pair),p=f;else for(;l<b;)if(h=e[k]){l=g(h);if(l>b||3<f.minorRemoval.close)break;k++;m=h;n=l;p=f}else break;
return{pair:m,count:n,intervals:p,sigUnits:tp(p)}}function Yk(c,a,b,d){void 0===d&&(d=!0);c=new Zk(c);a=c.isInterval?d?c.setRangeSnap(a,b):c.setRange(a,b):c.getRanges(a,b);return B(a,function(b){return B(b,function(b){return b.getTime()})})}function up(c,a){var b;return(b=c.offset)?a.map(function(a){return a.map(function(a){return Z(a.getTime()+b)})}):a}function $k(c,a,b){void 0===a&&(a="sum");if((!c||!c.length)&&t(b))return b;switch(a){case "sum":return Wa(c);case "average":return a=Wa(c),null===
a?NaN:a/c.length;case "min":return Math.min.apply(Math,G(c));case "max":return Math.max.apply(Math,G(c))}}function ax(c,a){if("function"===typeof c.pop)return vp(function(b){c.forEach(function(a){return b(a.values)})})?[{points:qf(c,a)}]:c.map(function(b){return{name:b.key,points:qf(b.values,a)}});var b=Object.keys(c);if(al(C(c,b[0])))return[{points:qf(c,a)}];var d=[];b.forEach(function(b){return d.push({name:b,points:qf(c[b],a)})});return d}function qf(c,a){var b="function"===typeof a,d=b?function(b,
c){return a(c,b)}:Hb,e=function(){d=function(b){return $k(b,a)}};if("function"===typeof c.pop)return!b&&vp(function(b){c.forEach(function(a){return b(a.values)})})&&e(),c.map(function(a){if(b)a=d(a.values,a.key);else{var c=a.key;a={x:"string"===typeof c&&c.match(wp)?parseFloat(c):c,y:d(a.values,a.key)}}return a});var f=Object.keys(c);!b&&al(C(c,f[0]))&&e();var g=[];f.forEach(function(a){return g.push(b?d(c[a],a):{x:a,y:d(c[a],a)})});return g}function xp(c,a,b){return"object"===typeof a&&a.pattern?
bx(c,a,b):yp(zp(c,a,void 0,b))}function zp(c,a,b,d){a=sg(a);var e={};b&&b.forEach(function(b){e[b]=[]});b=0;for(var f=c.length;b<f;b++){var g=c[b],h=a(g);null!==h&&cx(e,h,g)}d&&x(e,function(b,a){b=dx(d);return e[a]=b(e[a])});return e}function bx(c,a,b){c=ex(c,a,b);a=c.notDates?parseInt:function(b){return Z(parseInt(b))};delete c.notDates;return yp(c,a)}function ex(c,a,b){var d,e=a.pattern,f=a.range,g=sg(a.key);a=[];if(!e)throw"CalendarPattern Required";var h=new Zk(e),k="numeric"===h.intervalType?
Hb:function(b){return b.getTime()};if(f)var l=[Z(f[0]),Z(f[1])],m=h.setRange(Z(f[0]),Z(f[1]));else{try{for(var n=xa(c),p=n.next();!p.done;p=n.next()){var q=id(g(p.value));Aa(q)||a.push(q)}}catch(u){var r={error:u}}finally{try{p&&!p.done&&(d=n.return)&&d.call(n)}finally{if(r)throw r.error;}}r=Math.min.apply(Math,G(a));d=Math.max.apply(Math,G(a));l=[Z(r),Z(d)];m=h.setRangeSnap(Z(r),Z(d))}r=m.map(function(b){return k(b[0])});c=zp(c,function(b,a){b=id((a||g)(b));a=h.isInside(b);if(-1===a){if(!Nb(l,b))return null;
Aa(id(b))||(a=m.length-1)}return k(m[a][0])},r,b);"numeric"===h.intervalType&&(c.notDates=!0);return c}function bl(c){var a,b,d,e=function(c,e){if("key"===c[0]){var f=void 0;!b&&a?(b=!0,f=function(b){return xp(b,c[1],a[1])}):f=function(b){return xp(b,c[1],e)};b=!0;if(d){var g=f,h=d[1];f=function(b){b=ta(g(b),function(b){return b.key});!0===h&&b.reverse();return b};d=void 0}return f}if("rollup"===c[0])return a=c,Hb;if("sortKey"===c[0])return d=c,Hb;if("reverse"===c[0])return function(b){return b.reverse()}};
c=c.calls.slice(0);for(var f=c.length-1,g=Hb;-1<f;)g=e(c[f--],g);return g}function fx(c,a,b,d){Eh(c,a,b,d,Wh)}function Xh(c){return B(c,function(a){a.match(gx)?a="number":a.match(hx)?a="dirtyNumber":(a=Aa((new Date(a)).getTime())?void 0:-1===a.indexOf("%"),a=a?"date":"string");return a})}function cl(c){if(1<c.length){var a=Xh(c[0]),b=Xh(c[1]);if(function(b,a){return!P(b,function(b){return b!==a})}(a,"string")){if(3>c.length)return!Xe(a,b);if(2<c.length)return c=Xh(c[2]),!Xe(a,c)}}}function dl(c){var a=
Math.min(3,c.length),b=[];qb(a,function(a){return b[a]=Xh(c[a])});if(!P(b,function(b){return P(b,function(b){})})){for(var d=void 0,e=0;e<b.length-1&&!(d=!Xe(b[e],b[e+1]));e++);var f=["date","number","string","dirtyNumber","undefined"];if(d){var g=[];qb(b[0].length,function(c){var d=[];qb(a,function(a){d.push(b[a][c])});d.sort(function(b,a){return dk(f.indexOf(b),f.indexOf(a))});g.push(d)});return B(g,function(b){return b[0]})}return b[0]}return[]}function Wh(c,a,b){void 0===a&&(a=",");var d=[],e,
f,g,h=!1;for(e=f=g=0;g<c.length;g++){var k=c[g],l=c[g+1];d[e]=d[e]||[];d[e][f]=d[e][f]||"";'"'===k&&h&&'"'===l?(d[e][f]+=k,++g):'"'===k?h=!h:k!==a||h?"\r"!==k||"\n"!==l||h?"\n"!==k||h?"\r"!==k||h?d[e][f]+=k:(++e,f=0):(++e,f=0):(++e,f=0,++g):++f}!b&&cl(d)&&(d.shift(),cl(d)&&d.shift());return d}function Ap(c,a){var b={number:function(b){b=parseFloat(b);return Aa(b)?null:b},dirtyNumber:function(b){b=parseFloat(b.replace(/[^0-9.-]+/g,""));return Aa(b)?null:b},string:function(b){return b},date:function(b){return(new Date(b)).getTime()},
"":function(b){return b}},d=function(c){return B(c,function(c,d){return b[a[d]](c)})},e=function(b){x(c[b],function(b){b=K(b);if("number"===b||"dirtyNumber"===b||"date"===b||"object"===b)return f=!0,!1})},f=!1;if(c.length){qb(3,function(b){return e(b)});if(f)return c;a=a||dl(c);return B(c,d)}}function Bp(c,a){"string"===K(c)&&a&&(c={mapTo:c,data:a});var b={number:function(b){return parseFloat(b)},string:function(b){return b},dateNumber:function(b){return new Date(parseInt(b))},date:function(b){return new Date(b)},
"":function(b){return b}},d,e=c.csv,f=c.data;a=c.intervals;var g=K(f),h=c.types,k=c.newline||ix,l=c.mapTo||"x,y,z",m=c.delimiter||",";h&&(h=h.split(","));var n=function(b){return fk(b)?"number":"string"},p=function(b,a){return"date"===h[a]?{number:"dateNumber",string:"date"}[n(b)]:h[a]},q=function(b){return h?B(b,p):B(b,n)},r=function(b){return B(b.split(m),function(b,a){return u[a](b)})};e||"string"!==g||(e=f);if(e){e=e.split(k);c.header&&(e=e.splice(0,1));h=q(e[Math.min(1,e.length-1)].split(m));
var u=B(h,function(a){return b[a]});f=B(e,r)}f&&(d=Cp(l,f));a&&x(a,function(a,c){var e=a.start,f=a.step,g=b[a.type||""];x(d,function(b,a){return b[c]=g(e+f*a)})});return d}function Cp(c,a){function b(b,a,c){b[a]=c}function d(b,a,c){Y(b,a,c)}c=c.split(",");var e=[],f=[],g,h,k,l=0;for(g=c.length;l<g;l++)c[l]=c[l].trim(),f[l]=-1<c[l].indexOf(".")?d:b;var m=0;for(h=a.length;m<h;m++){g=a[m];l={};var n=0;for(k=g.length;n<k;n++)f[n](l,c[n],g[n]);e[m]=l}return e}function Dp(c,a){void 0===a&&(a={});var b=
[],d=Wh(c,a.delimiter,!0);qb(2,function(a){return cl(d)&&b.push(d.shift())});var e=dl(d);c={raw:c,headers:b,types:e.map(jx),split:d};a.skipCoerce||(c.data=Ap(d,e));return c}function el(c,a,b){void 0===b&&(b={});c=Dp(c,{delimiter:a,skipCoerce:!!b.coerce});var d=b;void 0===d&&(d={});b=d.map;a=d.coerce;var e=c.data,f=c.headers,g=c.types;d.columns&&(f=[d.columns]);e=e||c.split;if(0<f.length&&f[0].length&&e[0].length===f[0].length){var h=f[0];d=[];for(var k=0;k<e.length;k++){for(var l=e[k],m={},n=0;n<
l.length;n++)m[h[n]]=l[n];l=b?b(m):m;d.push(a?a(l,k,g):l)}d.columns=h;1<f.length&&(d.headers=f)}else d=c.data;d&&(d.types=c.types);return d}function fl(c,a,b){void 0===b&&(b={});(b=b.map)&&(c=c.map(b));var d=ya(c[0]),e=function(b,a){return a.map(function(a){return b[a]})};c=c.map(function(b,c){return e(b,d).join(a)});c.splice(0,0,d.join(a));return c.join("\n")}function kx(c,a){var b=ia.body,d=1E3,e=ia.createElement("span");e.innerHTML="QW@HhsXJ";e.style.position="absolute";e.style.top=e.style.left=
"-9999px";e.style.visibility="hidden";e.style.fontFamily="Courier New";e.style.fontSize="250px";b.appendChild(e);var f=e.offsetWidth;e.style.fontFamily=c+",Courier New";var g=function(){f!==e.offsetWidth?(b.removeChild(e),a(!0)):0>d?(b.removeChild(e),a(!1)):(setTimeout(g,50),d-=50)};g()}function Fd(c){return c?(gl[c]||(gl[c]=0),"_jsc_"+c+gl[c]++):"_jsc"+lx++}function Ep(c){return(c||"")+Math.random().toFixed(5).slice(2)}function mx(c){return c?-1<c.indexOf("_jsc"):!1}function rf(c,a){a=a||1;return c&&
c.pop?[sa(c[0],a),sa(c[1],a)]:t(c.x)?{x:sa(c.x,a),y:sa(c.y,a)}:c}function bb(c,a,b){c=rf(c.slice(0),b);a=rf(a.slice(0),b);if(c[0]===a[0]&&c[1]===a[1])return!0}function Fp(c,a,b,d,e){e=Math.min((c-a)/2,e);e/(hl*a)*Gp>Math.abs(b-d)&&(e=(d-b)/Gp*a*hl);return{cornerR:e,oCornerR:(c+a)/2/a*e}}function fc(c,a){var b=a[0]-c[0];c=a[1]-c[1];return Math.sqrt(b*b+c*c)}function Hp(c,a,b,d,e,f,g,h,k,l){var m=Math.PI,n=120*m/180,p=m/180*(+e||0),q=[],r=function(b,a,c){var d=b*tb.cos(c)-a*tb.sin(c);b=b*tb.sin(c)+
a*tb.cos(c);return{x:d,y:b}};if(l){w=l[0];var u=l[1];f=l[2];v=l[3]}else{u=r(c,a,-p);c=u.x;a=u.y;u=r(h,k,-p);h=u.x;k=u.y;u=(c-h)/2;w=(a-k)/2;v=u*u/(b*b)+w*w/(d*d);1<v&&(v=tb.sqrt(v),b*=v,d*=v);v=b*b;var y=d*d;v=(f==g?-1:1)*tb.sqrt(Ip((v*y-v*w*w-y*u*u)/(v*w*w+y*u*u)));f=v*b*w/d+(c+h)/2;var v=v*-d*u/b+(a+k)/2,w=tb.asin(((a-v)/d).toFixed(9));u=tb.asin(((k-v)/d).toFixed(9));w=c<f?m-w:w;u=h<f?m-u:u;0>w&&(w=2*m+w);0>u&&(u=2*m+u);g&&w>u&&(w-=2*m);!g&&u>w&&(u-=2*m)}Ip(u-w)>n&&(q=u,m=h,y=k,u=w+n*(g&&u>w?1:
-1),h=f+b*tb.cos(u),k=v+d*tb.sin(u),q=Hp(h,k,b,d,e,0,g,m,y,[u,q,f,v]));f=u-w;e=tb.cos(w);n=tb.sin(w);g=tb.cos(u);m=tb.sin(u);u=tb.tan(f/4);b=4/3*b*u;u*=4/3*d;d=[c,a];c=[c+b*n,a-u*e];a=[h+b*m,k-u*g];h=[h,k];c[0]=2*d[0]-c[0];c[1]=2*d[1]-c[1];if(l)return[c,a,h].concat(q);q=[c,a,h].concat(q).join().split(",");l=[];h=0;for(k=q.length;h<k;h++)l[h]=h%2?r(q[h-1],q[h],p).y:r(q[h],q[h+1],p).x;return l}function tg(c){return B(c,function(a){return[a.x,a.y]})}function il(c,a,b){if(t(C(c,"0.0")))for(var d=[],e=
0,f=c.length;e<f;e++)d.push(il[c[e],a[e],b]);else for(d=[],e=0,f=c.length;e<f;e++)d.push(T(c[e],a[e],0,1,b));return d}function wa(c){return c.join?c.join(" ").replace(/,/g," "):c}function Jp(c,a,b){var d=0;for(c=c.shapes;d<c.length;d++){for(var e=c[d],f=0,g=e.items;f<g.length;f++)a(g[f],f,d);b&&b(e,d)}}function jl(c,a){var b="",d;Jp(c,function(c,f,g){var e=c[0];b+=d!==e?xe[e]:" ";d=e;if(1!==d)for(e=2;e<c.length;e++){var k=a?a(c[e],e,f,g):c[e];b+=(2<e?" ":"")+(k[0]+" "+k[1])}});return b}function Pb(c){if(c.bboxValue)return c.bboxValue;
var a={};x(c.items,function(b){Kp[b[0]]&&Kp[b[0]](a,b)});c.bboxValue=[a.xMin,a.yMin,a.xMax-a.xMin,a.yMax-a.yMin];c.minMaxResult=a;return c.bboxValue}function kl(c,a){var b=F(a,2);a=b[0];b=b[1];var d=U(c.xMax);if(a>c.xMax||d)c.xMax=a;if(a<c.xMin||d)c.xMin=a;if(b>c.yMax||d)c.yMax=b;if(b<c.yMin||d)c.yMin=b;return c}function Lp(c,a){return kl(c,a[2])}function nx(c,a){var b=c.bbox(),d=Sv(b,a);a=Sk(Kc(a),d[0],d[1]);var e=ha(a);return jl(c,function(a){return Yh(e,b,a)})}function Mp(c,a,b){var d=0;b&&c.clearCache(!0);
b=0;for(c=c.shapes;b<c.length;b++)d+=ye(c[b],a);return d}function ye(c,a){if(t(c.lengthValue))return c.lengthValue;for(var b=0,d=0,e=c.items;d<e.length;d++){var f=e[d],g=f;if(t(f.lengthValue))f=f.lengthValue;else a:{var h=a;switch(f[0]){case 1:case 2:f=fc(f[1],f[2]);break a;case 3:f=h?ik(f.slice(1)):(fc(f[1],f[2])+fc(f[4],f[3])+fc(f[3],f[2])+fc(f[1],f[4]))/2;break a;default:f=0}}g=g.lengthValue=f;b+=g}return c.lengthValue=b}function sf(c,a){if(3===c[0]){var b=c[1],d=c[4];if(0===a)a=b;else if(1===
a)a=d;else{c=F([b,c[2],c[3],d],4);var e=c[1],f=c[2];d=c[3];b=F(c[0],2);c=b[0];b=b[1];var g=F(d,2);d=g[0];g=g[1];var h=F(e,2);e=h[0];h=h[1];var k=F(f,2);f=k[0];k=k[1];var l=1-a,m=ll(l,3),n=ll(l,2),p=a*a*a;a=[m*c+3*n*a*e+3*l*a*a*f+p*d,m*b+3*n*a*h+3*l*a*a*k+p*g]}return a}return il(c[1],c[2],a)}function Np(c){c.length();var a=[],b=0;for(c=c.shapes;b<c.length;b++)a.push.apply(a,Op(c[b]));return a}function Op(c){if(c.flatPoints)return c.flatPoints;var a=[];ye(c);for(var b,d=0,e=c.items;d<e.length;d++){var f=
e[d];if(3===f[0]){b=Math.max(2,Math.floor(f.lengthValue/10));var g=f.lengthValue/(b+1);g=T(0,1,0,f.lengthValue,g);for(var h=1;h<=b;h++)a.push(sf(f,h*g));a.push(f[4])}else a.push(f[2])}return c.flatPoints=a}function Lc(c,a){void 0===a&&(a=6);if(c.positions)return c.positions;for(var b=[],d=ye(c),e=0,f=0,g=c.items;f<g.length;f++){var h=g[f];e+=h.lengthValue;h=h.position=t(h.position)?h.position:sa(e/d,a);b.push(h)}return c.positions=b}function Pp(c,a,b){var d=[];if(3===c[0]){if(c=Lv(c[1],c[2],c[3],
c[4],a,b),c.length)return x(c,function(b){Aa(b[0])||d.push({x:b[0],y:b[1],onLine1:!0,onLine2:!0})}),d}else return d.push($e(c[1],c[2],a,b)),d;d.push({x:0,y:0,onLine1:!1,onLine2:!1,isNaN:!0});return d}function Zh(c,a,b,d){var e,f;void 0===d&&(d=6);var g=Lc(c,d),h=ye(c),k=[],l=[];c=c.items;for(var m=1,n=c.length;m<n;m++){var p=c[m],q=p.lengthValue,r=Pp(p,a,b),u=g[m-1];try{for(var y=(e=void 0,xa(r)),v=y.next();!v.done;v=y.next()){var w=v.value;if(!w.isNaN)if(w.onLine1&&w.onLine2){var E=fc(p[1],[w.x,
w.y]),t=sa(E/q,d);Qp(m,w,t,sa(u+E/h,d),l,k)}else{var D=Q(p);r=b;0===ko(rf(a),rf(D),rf(r))&&Qp(m,w,1,sa(u+q/h,d),l,k)}}}catch(R){e={error:R}}finally{try{v&&!v.done&&(f=y.return)&&f.call(y)}finally{if(e)throw e.error;}}}return l}function Qp(c,a,b,d,e,f){var g=rf([a.x,a.y]).join(" ");e.push({i:c,intersect:a,percOfSegment:b,percOfShape:d});f.push(g)}function ml(c){if(c.vertices)return c.vertices;var a=[],b=c.items,d=b.length-1;x(b,function(c,f){var e=Q(c);f===d?1===c[0]||bb(e,Q(b[0]))||a.push(e):f&&bb(c[1],
e)||a.push(e)});return c.vertices=a}function ox(c){if(c.centroid)return c.centroid;var a=ml(c),b=a.length,d=0,e=0;x(a,function(b){d+=b[0];e+=b[1]});c.centroid=[d/b,e/b];return c.centroid}function ug(c){if(c.center)return c.center;c.center=va(Pb(c));return c.center}function nl(c,a,b){b=b||Pb(c);c=ug(c);return Yh(a,b,c)}function vg(c,a){if(a)return ug(c);a=ox(c);return bg(a,ml(c))?a:ug(c)}function Rp(c){if(t(c.direction))return c.direction;for(var a=ml(c),b=0,d=0,e=a.length;d<e;d++){var f=a[d],g=a[(d+
1)%a.length];b+=(g[0]-f[0])*(g[1]+f[1])}c.direction=0<b?"cw":"ccw";return c.direction}function Sp(c,a){if(t(c.orientation))return c.orientation;a=vg(c,a);c.orientation=La(a,Q(c.items[0]));return c.orientation}function $h(c,a,b,d){var e=c[0];return 0===e?[]:3===e||1===e&&3===a[0]?(c=3===e?[c[1],c[2],c[3],c[4]]:[c[1],c[1],c[2],c[2]],0<b&&(b=jk(c,b),c=b.slice(3,b.length)),1>d&&(d=jk(c,d),c=d.slice(0,4)),c):[sf(c,b),sf(c,d)]}function px(c){c.lengthValue=void 0}function qx(c){c.lengthValue=void 0;c.flatPoints=
void 0}function rx(c){var a,b=[];if(c=c.match(sx))try{for(var d=xa(c),e=d.next();!e.done;e=d.next()){var f=e.value,g=f.match(tx);g=g?g.map(function(b){return Number(b)}):[];b.push([f[0],g])}}catch(k){var h={error:k}}finally{try{e&&!e.done&&(a=d.return)&&a.call(d)}finally{if(h)throw h.error;}}return b}function Tp(c,a){return[2*a[0]-c[0],2*a[1]-c[1]]}function wg(){return new tf({hasErrors:!0})}function Up(c,a,b,d){var e=c.args;a=a||0;for(var f=e.length;f-a>b-1;a+=b)d(c,a,e)}function uf(c,a,b,d){Up(c,
d,2*a,function(c,d){b(c,1===a?ai(c,d):co(a,function(b){return ai(c,d+2*b)}))})}function ai(c,a){return c.isRelative?[c.args[a]+(c.endPoint?c.endPoint[0]:0),c.args[a+1]+(c.endPoint?c.endPoint[1]:0)]:[c.args[a],c.args[a+1]]}function ux(c){var a;c=rx(c);if(!c.length)return wg();var b=bi();try{for(var d=xa(c),e=d.next();!e.done;e=d.next()){var f=e.value,g=ol[f[0]];b.args=f[1];b.isRelative=g.isRelative;b.cIsClosed&&"M"!==g.command&&Vp(b);if(b.args.length<g.argsCount)return wg();vx[g.command](b);if(b.firstCommand&&
!b.startPoint)return wg();b.lastCommand=f;b.firstCommand=!1}}catch(k){var h={error:k}}finally{try{e&&!e.done&&(a=d.return)&&a.call(d)}finally{if(h)throw h.error;}}return ci(b)}function pl(c,a,b){if(!a||1===b||0===b||3!==c[0])return b;c=c.slice(1);var d=void 0;b=void 0;void 0===d&&(d=1);void 0===b&&(b=.01);var e=d/2;d-=e;var f;for(f=ik(c,d);Math.abs(f-a)>b;)e/=2,d+=(f<a?1:-1)*e,f=ik(c,d);return d}function Wp(c,a){switch(a[0]){case 0:xg(c,a[2]);break;case 1:ql(c);break;case 2:jd(c,a[2]);break;case 3:ze(c,
a.slice(2))}}function bi(){return{firstCommand:!0,shapes:[]}}function ci(c){rl(c);var a=c.startPoint,b=c.endPoint;return new tf({hasCurves:c.hasCurves,hasLines:c.hasLines,isClosed:a[0]===b[0]&&a[1]===b[1],shapes:c.shapes})}function Xp(c,a,b){if(a[0][0].length)for(var d=0;d<a.length;d++)Xp(c,a[d],b);else{xg(c,a[0]);for(d=1;d<a.length;d++)jd(c,a[d]);!0!==b&&ql(c)}}function rl(c){c.cShape.hasLines=c.cHasLines;c.cShape.hasCurves=c.cHasCurves;c.cShape.isClosed=c.cIsClosed;c.cHasLines=c.cHasCurves=c.cStartPoint=
c.cIsClosed=void 0}function jd(c,a){di(c,2,[a]);c.hasLines=c.cHasLines=!0}function ze(c,a){di(c,3,a);c.hasCurves=c.cHasCurves=!0;c.lastCurve=a}function wx(c,a){var b=c.lastCurve&&3===Q(c.cShape.items)[0]?Tp(c.lastCurve[1],c.endPoint):c.endPoint;a.unshift(b);ze(c,a)}function Yp(c,a){var b=c.endPoint[0],d=c.endPoint[1],e=a[0][0],f=a[0][1],g=a[1][0],h=a[1][1];c.lastQ=a[0];ze(c,[[b+2*(e-b)/3,d+2*(f-d)/3],[g+2*(e-g)/3,h+2*(f-h)/3],a[1]])}function xx(c,a){Yp(c,[Tp(c.lastQ,c.endPoint),a])}function di(c,
a,b){a=[a,c.endPoint];a.push.apply(a,b);c.endPoint=Q(b);c.cShape&&c.cShape.items.push(a)}function Vp(c,a){c.cShape&&rl(c);a&&(c.endPoint=a);c.cStartPoint=c.endPoint;c.lastCurve=null;c.cShape={cStartPoint:c.cStartPoint,items:[]};c.shapes.push(c.cShape)}function xg(c,a){Vp(c,a||ai(c,0));c.firstCommand&&(c.startPoint=c.cStartPoint);di(c,0,[c.endPoint]);a||uf(c,1,jd,2)}function ql(c){di(c,1,[c.cStartPoint]);c.cIsClosed=!0}function yx(c,a,b){a=ai(c,a+5);var d=c.endPoint;if(d[0]===a[0]&&d[1]===a[1])return!0;
var e=Hp(d[0],d[1],b[0],b[1],b[2],b[3],b[4],a[0],a[1]);b=function(b){return[e[b],e[b+1]]};d=e.length;e[d-2]=a[0];e[d-1]=a[1];for(a=0;5<d-a;a+=6)ze(c,[b(a),b(a+2),b(a+4)])}function Ca(c){return c?ux(c.join?c.join(" "):c):new tf}function rc(c){if(c){var a;if(c.length&&c[0].push){var b=bi();try{for(var d=xa(c),e=d.next();!e.done;e=d.next())Wp(b,e.value)}catch(g){var f={error:g}}finally{try{e&&!e.done&&(a=d.return)&&a.call(d)}finally{if(f)throw f.error;}}c=ci(b)}else c=wg()}else c=new tf;return c}function Gd(c,
a,b){if(1<b){var d=1>a?Gd(c,a,1):"",e=0<b%1?Gd(c,0,b%1):"";b=Q(c.shapes).isClosed;if(d)if(e){c=Ca(d);d=Ca(e);c=c.items();e=d.items();var f=Q(c);d="";a=0;for(var g=e.length;a<g;a++){var h=e[a];b&&a===g-1?(d="Z",3!==h[0]&&(bb(Q(c[0]),Q(h))||bb(Q(h),Q(k)))||c.push(h)):a?bb(Q(h),Q(k))||c.push(h):bb(Q(h),Q(f))||c.push(h);var k=h}b=[];k=0;for(e=c.length;k<e;k++){f=c[k];k===c.length-1?3!==f[0]&&bb(Q(f),Q(c[0]))||b.push(f):k?bb(Q(f),Q(l))||b.push(f):b.push(f);var l=f}l=rc(b).toString()+d}else l=d;else l=
e;return l}l=c.items();k=c.length();g=Zp(l,k,a);k=Zp(l,k,b);h=l[g.i];e=l[k.i];f=g.i;d=[];if(0<a){if(a=$h(l[g.i],l[g.i-1],g.percOfSegment,1),d.push("M",a[0].join(" ")),a.shift(),1===h[0]?(h=l[g.i-1],d.push(xe[h[0]])):d.push(xe[h[0]]),d.push(a.join(" ").replace(/,/g," ")),f++,k.i===g.i&&1===k.percOfSegment)return d.join(" ")}else d=["M",g.xy.join(" ")];a=f;for(g=k.i;a<g;a++)d.push($p(l[a])),f++;1>b?(a=$h(l[k.i],l[k.i-1],0,k.percOfSegment),a.shift(),1===e[0]?(h=l[k.i-1],d.push(xe[h[0]])):d.push(xe[e[0]]),
d.push(a.join(" ").replace(/,/g," "))):(f=k.i,b=l[f],1===b[0]?c.hasCurves?(c=Q(b),d.push("C",Q(l[k.i-1]).join(" "),c.join(" "),c.join(" "))):d.push("L",Q(b).join(" ")):d.push($p(b)));return d.join(" ")}function zx(c,a,b,d){var e=c.items();if(0===a&&0===b)return rc(e);d="caps"===(d&&d.mode);var f=Mp(c,!0,!0);c=sl(e,f,a/f);b=sl(e,f,(f-b)/f);a=bi();var g=!1;f=!1;var h=c.i,k=b.i;d&&(1<h&&(c.i=2,c.percOfSegment=0,g=!0),k<e.length-1&&(b.i=e.length-2,b.percOfSegment=1,f=!0));d=c.i===b.i;var l=e[c.i];g?(0!==
l[0]&&xg(a,l[1]),h=1):(c=$h(l,e[c.i-1],pl(l,c.toLen,c.percOfSegment),d?pl(l,b.toLen,b.percOfSegment):1),xg(a,c[0]),3===l[0]?ze(a,c.slice(1)):jd(a,c[1]));f&&(k=3===e[e.length-1][0]?e.length:e.length-1);for(c=h+1;c<k;c++)Wp(a,e[c]);f||d||(d=$h(e[b.i],e[b.i-1],0,pl(e[b.i],b.toLen,b.percOfSegment)),3===e[b.i][0]?ze(a,d.slice(1)):jd(a,d[1]));return ci(a)}function Zp(c,a,b){a=sl(c,a,b);a.xy=sf(c[a.i],a.percOfSegment);return a}function sl(c,a,b){if(0===b)return{i:1,percOfSegment:b};if(1===b)return{i:c.length-
1,percOfSegment:b};a*=b;b=0;for(var d,e=1,f=c.length;e<f;e++){var g=c[e];if(g.lengthValue){var h=void 0;void 0===h&&(h=ek);if(h=b<a||bk(b,a,h)){h=b+g.lengthValue;var k=void 0;void 0===k&&(k=ek);h=h>a||bk(h,a,k)}if(h){var l=sa(T(0,1,b,b+g.lengthValue,a),6),m=e;d=a-b;break}b+=g.lengthValue}}1===l&&m<c.length-1&&(d=l=0,m++);return{i:m,percOfSegment:l,toLen:d}}function $p(c){return 1===c[0]?"Z":wa([xe[c[0]],c.slice(2).join(" ")])}function eb(c,a){if(c)if(void 0===a&&(a={}),c.length&&c[0].push){var b=
bi();Xp(b,c,a.isOpen);rl(b);c=ci(b)}else c=wg();else c=new tf;return c}function aq(c){var a=function(b){return 0===b[2]&&0===b[3]},b="string"===typeof c;return!c||c.hasErrors?!0:!b&&c.bbox?a(c.bbox()):c.arcShape?0===c.arcShape.r:b||c.push?a(tl(c)):!0}function Ax(c){var a=[],b=0;for(c=c.shapes;b<c.length;b++)a.push(rc(c[b].items));return a}function bq(c){if(U(c.isClose)){var a=Q(c.items),b=c.items[0],d;!(d=1===a[0])&&(d=2<c.items.length)&&(b=b[1],a=Q(a),d=b[0]===a[0]&&b[1]===a[1]);c.isClose=d}return c.isClose}
function ul(c,a,b,d,e){var f=e.start,g=e.skipEndFix?e.end:e.end-.001,h=e.caps||{},k=e.r||b||d;b=e.innerR;d=e.open;var l=(h.start||h.left||"").toLowerCase();h=(h.end||h.right||"").toLowerCase();var m=e.end-f<ei?0:1,n=e.cornerR,p=n&&"gap"!==l&&"flat"!==l,q=n&&"gap"!==h&&"flat"!==h;if(n&&(p||q)){var r=[c,a],u=Fp(k,b,f,g,n),y=u.cornerR,v=u.oCornerR;u=k-v;var w=b+y,E=zb(y/(cq*b)*360),I=zb(v/(cq*k)*360);y=Lb(r,f,u);v=Lb(r,g,u);u=Lb(r,f,w);w=Lb(r,g,w);var D=Lb(r,f+E,b),x=Lb(r,g-E,b);E=Lb(r,f+I,k);r=Lb(r,
g-I,k)}var Ga=Math.cos(f),V=Math.sin(f),aa=Math.cos(g),N=Math.sin(g);e=e.ccw;var Bb=q?r:[c+k*aa,a+k*N];r=p?E:[c+k*Ga,a+k*V];I=["M",r[0],r[1],"A",k,k,0,m,e?0:1,Bb[0],Bb[1]];var gc="insideround"===h;t(b)&&(k-=b,aa=q?x:[c+b*aa,a+b*N],c=p?D:[c+b*Ga,a+b*V],"round"===h||gc?(a=gk(Bb,aa),g=Mc(a[0],a[1],k/2,g,g+ei,gc),I.push.apply(I,G(g))):"gap"===h?I.push.apply(I,G(["M",aa[0],aa[1]])):q?I.push.apply(I,G(["A",n,n,0,0,1,v[0],v[1],"L",w[0],w[1],"A",n,n,0,0,1,x[0],x[1]])):I.push.apply(I,G([d?"M":"L",aa[0],aa[1]])),
I.push.apply(I,G(["A",b,b,0,m,e?1:0,c[0],c[1]])),gc="insideround"===l,"round"===l||gc?(a=gk(r,c),g=Mc(a[0],a[1],k/2,f+ei,f,gc),I.push.apply(I,G(g))):p?I.push("A",n,n,0,0,1,u[0],u[1],"L",y[0],y[1],"A",n,n,0,0,1,E[0],E[1]):"gap"!==l&&"gap"===h&&I.push.apply(I,G(["L"],r)),"gap"===h||"gap"===l)&&(d=!0);I.push(d?"":"Z");return I}function Mc(c,a,b,d,e,f){return ul(c,a,b,b,{start:d,end:e,open:!0,ccw:f}).slice(3,11)}function fi(c,a,b,d,e){return eb([[c,a],[c+b,a],[c+b,a+d],[c,a+d]],e)}function dq(c,a,b,d,
e){void 0===e&&(e={});var f=F(eq(b,d,e),2);return Bx(c,a,b,d,f[0],f[1],e.callout)}function Cx(c,a,b){void 0===b&&(b={});c=F(eq(c,a,b),2);var d=c[0];c=c[1];a=Math.max;b=function(b){d=b.radius||d;return{round:d-Math.cos(Math.PI/4)*d,cut:d/2,square:0,callout:0}[b.type||b]};return[a(b(c[0]),b(c[3])),a(b(c[0]),b(c[1])),a(b(c[1]),b(c[2])),a(b(c[2]),b(c[3]))]}function eq(c,a,b){c=Math.min(c/2,a/2);var d=Math.min(z(b.r,b.radius,5),c);a=U(z(b.r,b.radius))?"square":"round";b=B(b.corners||[a,a,a,a],function(b){return b.r?
(d=b.r,b.type):b});return[Math.min(d,c),b]}function Bx(c,a,b,d,e,f,g){var h=Math.PI;c=F($b([c,a,b,d]),4);var k=c[0],l=c[1],m=c[2],n=c[3],p=[],q,r="",u,y,v,w,E,I,D;g&&(g.pop||(g=[g]),x(g,function(b){var a=b.position;b=b.size;u=pa([0,0],45,b[0])[0];var c=F([fq(a[0]),fq(a[1])],2),d=c[0];c=c[1];r+=(c?0===a[1]?"T":"B":"")+(d?0===a[0]?"L":"R":"");t(D=Dx[r])?f[D]={type:"callout",size:b,radius:u}:q=c?a[0]:d?a[1]:void 0;p.push({name:r,pos:q,size:b})}));g=function(b){v=n-b;w=k+b;E=m-b;I=l+b;y=b};var R=[],Ga,
V,aa,N,Bb=[];c=function(b,a,c,d,e,f,g){R.push(R.length?"L":"M",a);switch(b.type||b){case "square":R.push("L",c,"L",d);break;case "round":R.push.apply(R,G(Mc(e[0],e[1],y,f,g)));break;case "cut":R.push("L",d);break;case "callout":Bb.push(N=Lb(e,(f+g)/2,b.size[1])),R.push("L",N,"L",d)}};a=function(b,a,c){Ga=b.size[0]/2;V=T(a+Ga,c-Ga,0,1,b.pos);aa=T(a,c,0,1,b.pos)};b=function(b,a,c){Bb.push(a);R.push("L",b,"L",a,"L",c)};d=f[0];g(d.radius||e);c(d,[k,I],[k,l],[w,l],[w,I],h,3*h/2);if(d=P(p,{name:"T"}))a(d,
w,E),b([V-Ga,l],[aa,l-d.size[1]],[V+Ga,l]);d=f[1];g(d.radius||e);c(d,[E,l],[m,l],[m,I],[E,I],-h/2,0);if(d=P(p,{name:"R"}))a(d,I,v),b([m,V-Ga],[m+d.size[1],aa],[m,V+Ga]);d=f[2];g(d.radius||e);c(d,[m,v],[m,n],[E,n],[E,v],0,h/2);if(d=P(p,{name:"B"}))a(d,w,E),b([V+Ga,n],[aa,n+d.size[1]],[V-Ga,n]);d=f[3];g(d.radius||e);c(d,[w,n],[k,n],[k,v],[w,v],h/2,h);if(d=P(p,{name:"L"}))a(d,I,v),b([k,V+Ga],[k-d.size[1],aa],[k,V-Ga]);R.length&&R.push("Z");return wa(R)}function gq(c){void 0===c&&(c={});var a=c.type;
if(hq[a])return hq[a](c);var b=z(c.lineWidth,1),d=db(z(c.size,10*b),b);a=z(c.overflow,!1);var e=db(z(c.width,d),b);b=db(z(c.height,d),b);d=!1===a?z(c.centerWidth,e/2):0;return M(Pa({},c,iq),{width:e,height:b,overflow:0<d?!0:a,centerWidth:d})}function jq(c){return c&&"none"!==c?O(c)?{shape:c}:Ra(c):null}function Ex(c,a,b,d){var e=M({size:d,x:a,y:b},O(c)?{name:c}:c);return(a=(c=e.path)||(e.name?Ko(e.name,function(b){oa.emit("warning","dom","scriptLoad",{data:[b.path]})},function(b){oa.emit("warning",
"dom","iconNotFound",{data:[e.name]})}):null))?kq(a,[e.x||0,e.y||0,e.width||0,e.height||0,e.size],jq(e.outerShape),e.padding,!!c)[0]:null}function fb(c,a){a=a||[];a.push(Ae(c[0]));1<c.length&&a.push("L");for(var b=1,d=c.length;b<d;b++)a.push(c[b][0]+" "+c[b][1]);return a}function Fx(c,a,b){void 0===a&&(a=!0);var d=[];d.push("M",c[0].join(" "),"L");a=a?function(a){d.push(c[b?a:a-1][0]+" "+c[b?a-1:a][1])}:function(a){d.push(c[b?a-1:a][0]+" "+c[b?a:a-1][1])};for(var e=1,f=c.length;e<f;e++)a(e),d.push(c[e][0]+
" "+c[e][1]);return d}function zg(c){var a=[];x(c,function(b){fb(b,a)});return a}function Gx(c,a){void 0===a&&(a=.8);var b=function(b){return b.join(" ")},d=["M",b(c[0])],e=[];if(3>c.length)e=c.slice(0);else for(var f=1,g=c.length-1;f<g;f++)e[f]=Hx(c,f,a);if(2===c.length)d.push("C",c[0],c[1],c[1]);else for(f=0,g=c.length-1;f<g;f++)f?f===g-1?d.push("C",b(e[f][1]),b(c[f+1]),b(c[f+1])):d.push("C",b(e[f][1]),b(e[f+1][0]),c[f+1]):d.push("C",b(c[f]),b(e[f+1][0]),b(c[f+1]));return wa(d)}function Hx(c,a,
b){void 0===b&&(b=.8);var d=c[a-1],e=c[a],f=c[a+1];b=1-b;a=La(e,d);c=La(e,f);d=fc(d,e);f=fc(e,f);f=Math.min(d,f);d=ie(e[0],e[1],zb(a),f);c=ie(e[0],e[1],zb(c),f);b*=fc([d.x,d.y],[c.x,c.y]);d=La(d,c);c=tg([ie(e[0],e[1],zb(d-180),b)])[0];e=tg([ie(e[0],e[1],zb(d),b)])[0];return[c,e]}function lq(c){var a=F(c.points,3),b=c.angles,d=c.cxy,e=c.radius;a=0>ko(a[0],a[1],a[2]);c=c.angles.map(function(b){return zb(b)});c[0]=a&&"0270"===b.join("")?2*Math.PI:c[0];return Mc(d[0],d[1],e,c[0],c[1],a)}function mq(c,
a,b,d,e,f){var g=oc(c,a),h=oc(a,b);e=Math.min(e?g:g/2,f?h:h/2);c=[La(b,a),La(c,a)];d=t(d)?Math.min(d,e):e;a=[pa(a,c[1]+180,d),a,pa(a,c[0]+180,d)];return{points:a,radius:d,angles:c,cxy:pa(a[0],c[0]+180,d)}}function Ix(c,a){var b=c.length;if(2<b)for(var d=1;d<c.length-1;d++)a(c[d-1],c[d],c[d+1],1===d,d===b-2,d-1)}function Nc(c,a){var b=[];2===c.length?(b.push(Ae(c[0])),b.push(Oc(c[1]))):Ix(c,function(c,e,f,g,h,k){e=mq(c,e,f,a.pop?a[ua(k,0,a.length-1)]:a,g,h);g&&b.push(Ae(c));b.push(Oc(e.points[0]));
b.push.apply(b,G(lq(e)));h&&!bb(e.points[2],f)&&b.push(Oc(f))});return b.join(" ")}function nq(c,a){void 0===a&&(a=[0,0,0,0]);var b=[],d=function(b){return 0>b?b+4:b%4},e=function(e,g){void 0===g&&(g=Oc);a[e]?(e=mq(c[d(e-1)],c[e],c[d(e+1)],a[e],!1,!1),b.push(g(e.points[0])),b.push.apply(b,G(lq(e)))):b.push(g(c[e]))};e(0,Ae);e(1);e(2);e(3);b.push("Z");return b.join(" ")}function Jx(c,a){a=kd(a,{width:1.5});var b=a.gapLength,d=a.width,e=a.lineLength,f=a.midPoint,g=a.lineAngle,h=a.noStart,k=a.noEnd,
l=a.tipPos*e-b/2,m=e-l-b,n=[],p=c.slice(0);if(0===b)n.push(Ae(c[1]),Oc(c[2]));else{var q=Math.min(b,e-4);n.push(Ae(c[1]),Oc(pa(f,g+180,q/2)));n.push(Ae(pa(f,g,q/2)),Oc(c[2]))}b={type:"arrow",overflow:!1,width:"400%",length:"600%"};h={start:h?{}:b,end:k?{}:b};c=[c[1],c[2]];return{d:n.join(" "),pathOptions:{caps:h,"stroke-width":d,stroke:a.color,fill:"none"},startLen:l,endLen:m,gapLength:q,bbox:Xa(p),endPoints:c,mode:"measure"}}function Kx(c,a){a=kd(a,{width:3,radius:100,tipLength:5});var b=a.gapLength,
d=a.tipLength,e=a.radius,f=a.tipPos,g=a.lineLength,h=a.midPoint,k=a.sideLength,l=a.lineAngle,m=a.tipAngle,n=function(b,a){return[b[0]+a[0],b[1]+a[1]]},p=function(b,a,c){return b.map(function(b){return[b[0]+a,b[1]+c]})},q=pa([0,0],m,a.width),r=function(b){return p(b,q[0],q[1])},u=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return x.push.apply(x,G(b))},y=Hb,v=Hb;f=f*g-b/2;var w=g-f-b,E=Math.min(e,f)<k;k=Math.min(e,w)<k;if(E||k){var t=pa([0,0],l,1),D=pa([0,0],l+180,1);y=function(b,
a,c){b[a]=n(b[a],t);b[c]=n(b[c],t)};v=function(b,a,c){b[a]=n(b[a],D);b[c]=n(b[c],D)}}var x=[],Ga=c.slice(0),V=[],aa=0;0===b?(b=c.slice(0,2),E&&y(b,0,1),d=pa(h,m,d),Ga.push(d),b.push(h,d),h=[b[3],b[2],c[2],c[3]],k&&v(h,2,3),u(Nc(b,e)),u(Nc(h,e).replace("M","L")),u(Oc(c[3])),E&&v(b,0,1),k&&y(h,2,3),b=r(b).reverse(),h=r(h).reverse(),u(Nc(h,e).replace("M","L")),u(Nc(b,e).replace("M","L"),Oc(c[0]),"Z")):(aa=Math.min(b,g-4),b=c.slice(0,2),E&&y(b,0,1),b.push(pa(h,l+180,aa/2)),h=[pa(h,l,aa/2),c[2],c[3]],
u(Nc(b,e)),E&&v(b,0,1),b=r(b).reverse(),u(Nc(b,e).replace("M","L"),Oc(c[0]),"Z"),k&&v(h,1,2),u(Nc(h,e)),k&&y(h,1,2),h=r(h).reverse(),u(Nc(h,e).replace("M","L"),"Z"));V.push(c[3]);V.push(c[0]);return{d:x.join(" "),pathOptions:{"stroke-width":0,fill:a.color},startLen:f,endLen:w,gapLength:aa,bbox:Xa(Ga),endPoints:V,mode:"curly"}}function oq(c,a,b,d,e){function f(b){return b&&b.join?b.join(" ").replace(/,/g," "):b}function g(a){switch(a){case "b":var c=[[u,y],["L"],[h-1.1*n,y],["L"],[h-.35*n,y-1.25*n],
["L"],[h+.45*n,y+.65*n],["L"],[h+.8*n,y],["L"],[u+b,y]];c=c.reverse();break;case "r":c=[[u,y],["L"],[u,k-1.12*p],["L"],[u-1.25*p,k-.35*p],["L"],[u+.65*p,k+.45*p],["L"],[u,k+.8*p],["L"],[u,y+d]];break;case "t":c=[[u+b,y],["L"],[h+1.15*n,y],["L"],[h+.35*n,y+1.25*n],["L"],[h-.45*n,y-.65*n],["L"],[h-.85*n,y],["L"],[u,y]];c=c.reverse();break;case "l":c=[[u,y+d],["L"],[u,k+1.15*p],["L"],[u+1.25*p,k+.35*p],["L"],[u-.65*p,k-.45*p],["L"],[u,k-.85*p],["L"],[u,y]]}c.splice(0,0,"M");return c}e=e||{};var h=c+
b/2,k=a+d/2,l=e.zigWidth||0,m=1.6*(l||10),n=Math.min(m,b/2),p=Math.min(m,d/2);l/=2;m=e.lines;var q=c+b,r=a+d,u=c,y=a,v=!e.open,w=[];switch(e.zigSides){case "t":y=a+l;w=e=g("t");m.push(f(e));v&&w.push(["L",q,r,"L",c,r]);break;case "b":y=r-l;v&&w.push(["M",c,a,"L",q,a]);e=f(g("b"));m.push(f(e));w.push(v?e.replace("M","L"):e);break;case "m":y=a+l;w=e=g("t");m.push(f(e));y=r-l;e=f(g("b"));m.push(e);w.push(v?e.replace("M","L"):e);break;case "r":u=q-l;w=e=g("r");m.push(f(e));v&&w.push(["L",c,r,"L",c,a]);
break;case "l":u=c+l;v&&w.push(["M",q,a,"L",q,r]);e=f(g("l"));m.push(f(e));w.push(v?e.replace("M","L"):e);break;case "c":u=q-l,w=e=g("r"),m.push(f(e)),u=c+l,e=f(g("l")),m.push(e),w.push(v?e.replace("M","L"):e)}return f(w).split(" ")}function pq(c,a,b,d,e,f){return sc[c]||"needle"===c?sc["needle"===c?"square":c](a,b,d,e,f):Ex(c,a,b,d)}function Lx(c,a,b){vl[a]?b(vl[a]):(b({width:0,height:0},!1),Ag[a]?Ag[a].push(b):(Ag[a]=[b],c.calculateImageSize(a,function(b,c){var d=vl[a]={width:b,height:c};x(Ag[a],
function(b){return b(d,!1)});Ag[a]=void 0})))}function qq(c,a,b){var d=c.pointerType;d||(d=(d=c.type.match(/^mouse|touch/i))?d[0]:null);return{el:a,eventArgs:c,eventName:b,device:d?d:"other",pointers:c.pointers}}function Mx(c){c._s0={};c._s1={};c._s2={};c._s3={}}function gi(c,a){t(a)&&(c._s4=a);return c._s4}function rq(c){return c?(c=/url\(#(.*)\)/g.exec(c))?c[1]:null:null}function wl(c,a,b){a&&(x(a.childNodes,function(a){return wl(c,a,b)}),a.refNodes.length&&x(a.refNodes,function(a){return wl(c,
a,b)}),Fa(sq,function(d){return tq(c,d,a.attr(d),null,b)}))}function tq(c,a,b,d,e){H(sq,a)&&(a=rq(b),d=rq(d),c=c._s0,null!==d&&(H(c,d)?c[d]++:c[d]=1),null!==a&&(H(c,a)&&c[a]--,H(c,a)&&1>c[a]&&(delete c[a],e(a))))}function xl(c,a){c=c._s1;return H(c,a)?c[a]:null}function yl(c,a){var b=c._s1;H(b,a)&&delete b[a];b=c._s2;c=c._s3;H(c,a)&&(delete b[c[a]],delete c[a])}function Bg(c,a,b){var d=uq(c);a=Nx(c,a,b);a.updateAttr=function(b){b.el?b.el.attr(b.attr):b.el=c.element(b).add(d);return b};return a}function uq(c){var a;
(a=gi(c))||(a=c.element("defs"),!c._noRender&&a.add(),a=gi(c,a));return a}function Nx(c,a,b){b=b||{};var d=b.id&&xl(c,b.id);return d?d:vq(c,a,b,b.hash)}function vq(c,a,b,d,e){var f=U(b.id),g=c._s1,h=c._s2;if(g=H(h,d)?g[h[d]]:null)return g;g=b;f?g=M(la(b),{id:Fd()}):zl(c,b.id);a={tag:a,attr:Ka(g,["hash","meta"]),isDef:!0,hash:d,val:e};b=g.id;e=a;c._s1[b]=e;d&&(e=c._s3,c._s2[d]=b,e[b]=d);return a}function zl(c,a){var b=xl(c,a);if(b){var d=b.isDef?b.el:b;d&&d.destroy();delete b.el;yl(c,a)}else(c=c.query("#"+
a))&&c.destroy()}function Cg(c){var a=c||{};a.color=a.color||"black";a.backgroundColor=a.backgroundColor||"none";a.strokeWidth=t(a.strokeWidth)?a.strokeWidth:1;a.granualWidth=c.granualWidth||c.size||5;a.granualHeight=c.granualHeight||c.size||5;return a}function wq(c,a,b){c={hash:"#"+c+":"+b.color+", "+b.backgroundColor+", "+b.strokeWidth,width:b.granualWidth,height:b.granualHeight,patternUnits:"userSpaceOnUse",x:0,y:0,childNodes:a};b.patternTransform&&(c.patternTransform=b.patternTransform);b.transform&&
(c.transform=b.transform);return c}function hi(c,a,b){a.unshift({tag:"rect",attr:{width:b.granualWidth,height:b.granualHeight,fill:b.backgroundColor||"none"}});return wq(c,a,b)}function xq(c){c=M(c,yq[c.pattern]);c.omit=["childNodes"];var a=c.template;a||(H(c,"c")?a="line":H(c,"d")?a="path":H(c,"p")&&(a="point"));return Ox[a](c)}function Px(c,a,b,d){if(!H(yq,c.pattern))return null;var e=M({},c);if(c.backgroundColor&&!O(c.backgroundColor)){var f=void 0;d&&d.d&&(d=d.d,d=d.isPath?d:Ca(d),f=Kc(d.bbox()));
f=f||a.box();e.width=c.width=f.width;e.height=c.height=f.height;var g=c.backgroundColor;d=c.width;f=c.height;c=Ra(c);c.backgroundColor="none";c=xq(c);a=Bg(a.renderer,"pattern",c);b=b(g);a.val=c;c=b.isDef?b.attr.id:b.attr("id");b={hash:"#complexPattern:"+a.attr.id+", "+c+", "+d+", "+f,x:0,y:0,width:"100%",height:"100%",childNodes:[{tag:"rect",attr:{x:0,y:0,width:d,height:f,fill:b}},{tag:"rect",attr:{x:0,y:0,width:"100%",height:"100%",fill:a}}]}}else b=xq(c);e.hash=b.hash;b.meta=e;return b}function zq(c,
a){var b=c.items,d=vg(c,c.hasCurves),e=Pb(c),f=ye(c);e=Math.max(e[2],e[3]);Lc(c);c=[d,tg([Yc(d[0],d[1],a,e)])[0]];e=1;for(var g=b.length;e<g;e++){var h=b[e],k=Q(h),l=b[e-1];if(!bb(k,h[1])){var m=La(d,h[1]);k=Pp(h,c[0],c[1]);for(var n=0;n<k.length;n++){var p=k[n];if(p.onLine2&&p.onLine1||m===a){var q=m===a&&p.isNaN?0:fc(h[1],[p.x,p.y]);q=0===q?l.position:q==h.lengthValue?h.position:q/f+l.position;break}}if(t(q))break}}a=rc(b);if(!t(q))return a.toString();q%=1;return Gd(a,q,1+q)}function Qx(c,a,b){var d=
c.bboxValue;if(0===d[2]&&0===d[3])return c=rc(c.items),[c,c];b=Zh(c,a,b);1<b.length&&0===sa(b[0].percOfShape+1-b[b.length-1].percOfShape,2)&&b.pop();if(1<b.length)a=b[0].percOfShape,b=Q(b).percOfShape;else if(1===b.length){a=b[0].percOfShape;if(1!==Q(c.items)[0]){var e=rc(c.items);return[Gd(e,0,a),Gd(e,a,1)]}a=.5<a?1-a:a;b=(a+.5)%1}else{a=0;b=.5;var f=3!==Q(Q(c.items))[0]}e=rc(c.items);c=function(b,a){b=Gd(e,b,a);f||(b=-1===b.indexOf("Z")?b+"Z":b);return b};return[c(a,b),c(b,1+a)]}function ld(c,a,
b){for(var d=0,e=a.length;d<e;d++){var f=c,g=a[d],h=f.items,k=ye(f),l=Lc(f),m=0;if(!(0===g||1===g||-1<l.indexOf(g))){var n=!1;l=1;for(var p=h.length;l<p;l++){var q=h[l],r=h[l-1],u=m+q.lengthValue/k;if(n)q[1]=Q(r),q.lengthValue=void 0,q.position=void 0;else{if(m<g&&g<u){n=T(0,1,m,u,g);var y=q[0];m=1===y;3===y||m&&3===r[0]?(n=jk(m?[q[1],q[1],q[2],q[2]]:[q[1],q[2],q[3],q[4]],n),n.slice(0,4),n.slice(4),r=[3,q[1],n[1],n[2],n[3]],q=m?[1,r[4],q[2]]:[3,r[4],n[4],n[5],n[6]]):(r=[2,q[1],sf(q,n)],q=m?[1,r[2],
q[2]]:[2,r[2],sf(q,1)]);h.splice(l,1,r,q);l++;p++;n=!0}m=u}}f.lengthValue=void 0;f.positions=void 0}if(b&&c.items.length===b)break}}function Aq(c){for(var a=[],b=c.items.length-1;0<=b;b--){var d=c.items[b];0!==b&&1!==d[0]&&bb(d[1],Q(d))||a.unshift(d)}return{items:a}}function Bq(c,a){var b=bq(c),d=bq(a);c.items.length!==a.items.length&&b!==d&&(b=b?a:c,b.items.push([1,Q(Q(b.items)),b.items[0][2]]));if(c.items.length!==a.items.length&&(c=Aq(c),a=Aq(a),c.items.length!==a.items.length)){if(c.items.length<
a.items.length){a=F([a,c],2);c=a[0];a=a[1];var e=!0}d=Lc(c);var f=Lc(a);b=re(d,f);d=re(f,d);ld(a,b,c.items.length+d.length);c.items.length!==a.items.length&&ld(c,d,a.items.length)}return{from:e?a:c,to:e?c:a}}function ii(c){if(c.hasCurves&&!c.hasLines)return c;c=c.items();for(var a=0,b=c.length;a<b;a++){var d=c[a],e=d[0];if(2===e||1===e)c[a]=[3,d[1],d[1],d[2],d[2]];1===e&&(c.splice(a+1,0,[1,d[2],d[2]]),b++,a++)}return rc(c)}function Rx(c,a){var b,d,e=c.length(),f=a.length();if(!e||!f)return null;if(c.hasCurves||
a.hasCurves){var g=!c.hasCurves||c.hasLines,h=!a.hasCurves||a.hasLines;c=ii(c);a=ii(a)}f=c.shapes.length;var k=a.shapes.length;if(f===k)return 1===f?c.isClosed||a.isClosed?Cq(c.shapes[0],a.shapes[0],g,h):(c={items:c.items()},a={items:a.items()},Bq(c,a)):Dq(c,a);var l;f<k&&(l=!0);g=f>k?a:c;h=Math.abs(f-k);e=0;for(f=f>k?c:a;0<h--;){var m=f;k=g.bbox();var n=m.shapes[0],p=m.shapes[1],q=[ug(n),ug(p)],r=La(q[0],q[1]),u=Ha([Pb(n),Pb(p)]);u=Math.max(u[2],u[3]);p=Eq(p.items,q[0],r);var y=Eq(n.items,q[1],r);
y=$e(q[0],q[1],y,Yc(y[0],y[1],r+90,10));q=$e(q[0],q[1],p,Yc(p[0],p[1],r+90,10));null===y.x&&null===y.y&&null===q.x&&null===q.y?n=n.center:(n=tg([y,q]),n=il(n[0],n[1],.5));r=[Yc(n[0],n[1],r-90,2*u),Yc(n[0],n[1],r+90,2*u)];r=tg(r);u=m.bbox();m=Yh(k,u,r[0]);k=Yh(k,u,r[1]);k=bb(m,k)?r:[m,k];m=g.shapes.splice(2*e,1)[0];k=Qx(m,k[0],k[1]);l?(c=Ca(k.join("")),(b=g.shapes).splice.apply(b,G([2*e,0],c.shapes)),c.shapes=g.shapes,g=c):(a=Ca(k.join("")),(d=g.shapes).splice.apply(d,G([2*e,0],a.shapes)),a.shapes=
g.shapes,g=a);e=2*(e+1)>g.shapes.length-1?0:e+1}return Dq(c,a)}function Dq(c,a){var b=[0,0,1,1],d=nl(c.shapes[0],b,c.bbox()),e=fc(d,nl(a.shapes[0],b,a.bbox()));b=fc(d,nl(a.shapes[a.shapes.length-1],b,a.bbox()));a=a.shapes.slice(0);e>b&&(a=a.reverse());e=[];b=[];d=0;for(var f=a.length;d<f;d++){var g=Cq(c.shapes[d],a[d],!1,!1);e=e.concat(g.from.items);b=b.concat(g.to.items)}return{from:{items:e},to:{items:b}}}function Cq(c,a,b,d){if(Rp(c)!==Rp(a)){var e=[],f={hasCurves:c.hasCurves,hasLines:c.hasLines,
isClosed:c.isClosed,items:e},g=Q(c.items),h=1===g[0],k=h?g[1]:Q(g),l=c.items.length-(h?2:1);e.push([0,k,k]);for(k=l;0<k;k--)switch(l=c.items[k],l[0]){case 2:e.push([l[0],l[2],l[1]]);break;case 3:e.push([3,l[4],l[3],l[2],l[1]])}h&&e.push([1,g[2],g[1]]);c=f}var m;e=sa(Sp(c,c.hasCurves));f=sa(Sp(a,a.hasCurves));f!==e&&(c.items.length===a.items.length&&45>Math.abs(e-f)&&(m=!0),m||(b&&!d?c=Ca(zq(c,f)).shapes[0]:(b=Ca(zq(a,e)),a=1==b.shapes.length?b.shapes[0]:a)));b=Bq(c,a);a=b.from;b=b.to;a.items.length!==
b.items.length&&a.items.length!==b.items.length&&(m=Lc(a),c=Lc(b),d=re(m,c),m=re(c,m),m.length<d.length?ld(b,d,a.items.length):ld(a,m,b.items.length));if(a.items.length!==b.items.length){if(a.items.length>b.items.length){a.items.splice(Math.floor(a.items.length/2),1);var n=a,p=b.items.length}else a.items.length<b.items.length&&(b.items.splice(Math.floor(b.items.length/2),1),n=b,p=a.items.length);for(;n.items.length>p;)n.items.splice(Math.floor(n.items.length/2),1)}return{from:a,to:b}}function Eq(c,
a,b){for(var d,e=Number.MAX_VALUE,f=0,g=c.length;f<g;f++){var h=Q(c[f]),k=Yc(h[0],h[1],b+90,10);k=jo(h,k,a);k<e&&(d=h,e=k)}return d}function Fq(c,a,b){var d=b.count-b.del,e="step"===b.type?2:1,f=F(c.items.length<a.items.length?[c,a]:[a,c],2),g=f[0],h=f[1];Lc(g);ye(g);f=function(b,a){--a;a=(-1<a?a:0)*e;return[a,b.length-2-a]};var k=f(g.items,b.at),l=[],m=function(b,a,c){void 0===c&&(c=-1);var d=1E-4*c;qb(a,function(a){l.push(b+(a+1)*d)})};c.items.length!==a.items.length?0>d?Fq(a,c,{action:"splice",
at:b.at,count:-d,del:0,type:b.type,shapeName:b.shapeName}):("area"==b.shapeName?(m(g.items[k[0]].position,e,-1),m(g.items[k[1]].position,e,1)):m(g.items[k[0]].position,e,-1),ld(g,l),l=[]):b.shift&&("area"===b.shapeName?(Lc(h),d=a.items,g=f(d,1),m(d[g[0]].position,e,1),m(d[g[1]].position,e,-1),ld(a,l),l=[],d=c.items,g=f(d,b.pointsLen),m(d[g[0]].position,e,1),m(d[g[1]].position,e,-1),ld(c,l)):(m(1,e,-1),ld(c,l),l=[],m(0,e,1),ld(a,l)),l=[]);return{from:c,to:a}}function Sx(c,a,b){void 0===b&&(b={});var d=
{};if(c&&a&&b.simple)return d.final=a,d.from=c.items(!0),d.to=a.items(!0),Al(d);d.final=rc(a.items());if(c.hasErrors)return Gq(d);if(a.hasErrors)return d.final=c,Gq(d);var e;if((e=b.slice)&&e.from&&e.to)d.slice=e,d.stepFn=Tx(d);else if((e=b.needle)&&e.from&&e.to)d.needle=e,d.stepFn=Ux(d);else if((e=b.xlat)&&e.from&&e.to)d.xlat=e,d.stepFn=Al(d);else if(!b.simple)if(b.action){var f=c;e=a;if(f.hasCurves||e.hasCurves)f=ii(f),e=ii(e);f=f.items();e=e.items();f=b.at>Math.min(f.length,e.length)-1?null:Fq({items:f},
{items:e},b)}else f=Hq(d,c,a);d.from=f?f.from.items:c.items();d.to=f?f.to.items:a.items();return d.stepFn||Al(d)}function Gq(c){return function(){return c.final.toString()}}function Al(c){return function(a){if(1===a)return c.final.toString();var b=c.invertStep?Vx:Wx,d=c.xlat;d=d?d.fn(a):[0,0];for(var e="",f,g,h,k=0;k<c.from.length;k++){var l=c.from[k],m=g=c.to[k]||g,n=l[0];e+=f!==n?xe[n]:" ";f=n;if(1!==f)for(n=2;n<l.length;n++)h=m[n]||h,e+=(2<n?" ":"")+(b(l[n][0],h[0],a)+d[0]+" "+(b(l[n][1],h[1],
a)+d[1]))}return e}}function Iq(c){return function(a){if(1===a)return c.final.toString();c.invertStep&&(a=1-a);return Gd(c.final,0,a)}}function Tx(c){return function(a){if(1===a)return c.final.toString();var b=c.slice.from,d=c.slice.to;a={cxy:Jq(b.cxy,d.cxy,a),start:md(b.start,d.start,a),end:md(b.end,d.end,a),open:d.open,r:md(b.r,d.r,a),innerR:md(b.innerR,d.innerR,a),caps:d.caps};b=a.cxy;return wa(ul(b[0],b[1],a.r,a.r,a))}}function Ux(c){return function(a){if(1===a)return c.final.toString();var b=
c.needle.from,d=c.needle.to;a={arc:{cxy:Jq(b.arc.cxy,d.arc.cxy,a),angle:md(b.arc.angle,d.arc.angle,a)},xyz:[0,0,md(b.xyz[2],d.xyz[2],a)],xyzs:[0,0,md(b.xyzs[2],d.xyzs[2],a)]};return wa(c.needle.gen(a))}}function Hq(c,a,b){if(!a||0===a.shapes.length){a={items:b.items()};var d=vg(a,b.hasCurves);a=b.items();var e=[],f=F(d,2);d=f[0];f=f[1];for(var g=0;g<a.length;g++){for(var h=a[g].slice(0),k=1;k<h.length;k++)h[k]=[d,f];e.push(h)}a=rc(e);return(c=Hq(c,a,b))?c:{from:{items:a.items()},to:{items:b.items()}}}if(Kq(a,
b))c.stepFn=Iq(c);else if(Kq(b,a))c.stepFn=Iq(c),c.invertStep=!0;else return Rx(a,b)}function Kq(c,a){return 1===c.shapes.length&&1===c.shapes[0].items.length&&(1<a.shapes.length||1<a.shapes[0].items.length)}function Xx(c){if("linear"===c)return null;var a=Yx.exec(c);return a?cg.apply(this,a.slice(1).map(Number)):(a=Zx.exec(c))?ji(Number(a[1]),{start:1,middle:.5,end:0}[a[2]]):(c={ease:cg(.25,.1,.25,1),"ease-in":cg(.42,0,1,1),"ease-out":cg(0,0,.58,1),"ease-in-out":cg(.42,0,.58,1),"step-start":ji(1,
1),"step-middle":ji(1,.5),"step-end":ji(1,0)}[c])?c:null}function Lq(c){var a=c?X(Mq,pb(c)?{duration:c}:c):Mq;"linear"!==a.easing&&(a.easingFunction=Xx(a.easing)||Nq);a.activeDuration=Math.abs((0===a.duration||0===a.iterations?0:a.duration*a.iterations)/a.playbackRate);a.totalDuration=a.delay+a.activeDuration+a.endDelay;c=function(b){if(null==b)var c=0;else c=a.delay+a.activeDuration+a.endDelay,c=b<Math.min(a.delay,c)?1:b>=Math.min(a.delay+a.activeDuration,c)?2:3;a:{switch(c){case 1:if("backwards"===
a.fill||"both"===a.fill){b=0;break a}break;case 3:b-=a.delay;break a;case 2:if("forwards"===a.fill||"both"===a.fill){b=a.activeDuration;break a}}b=null}if(null===b)c=null;else{var e=a.iterationStart;0===a.duration?1!==c&&(e+=a.iterations):e+=b/a.duration;var f=Infinity===e?a.iterationStart%1:e%1;0!==f||2!==c||0===a.iterations||0===b&&0!==a.duration||(f=1);b=f;e=2===c&&Infinity===a.iterations?Infinity:1===b?Math.floor(e)-1:Math.floor(e);c=a.direction;"normal"!==c&&"reverse"!==c&&("alternate-reverse"===
c&&(e+=1),c="normal",Infinity!==e&&0!==e%2&&(c="reverse"));c=a.easingFunction("normal"===c?b:1-b)}return c};c.options=a;return c}function Bl(c){return ka(c)?B(c,function(a){return Bl(a)}):parseFloat(Oq(c,"px",""))}function $x(c,a,b){var d=Lq({duration:100,easing:b});return function(b){b=d(b);return{current:vf(c,a,b),timeFraction:b}}}function Cl(c,a){if(a.linearGradient)var b="linearGradient";else if(a.radialGradient)b="radialGradient";else return;var d=Pq[b],e=d.argsToAttrs(a),f=e.attrs;e=e.stops;
var g=[];f.hash||g.push(d.toString(f));e=B(e,function(b){if(ka(b)){b=F(b,3);var a=b[0],c=b[1];b=b[2]}else a=b.offset,c=b.color,b=b.opacity;a={offset:U(a)?"0%":a,color:U(c)?"black":c,opacity:U(b)?"1":b};f.hash||g.push(Pq.stopToString(a));return a});d=f.hash||d.keyPrefix+"("+tc(g,", ")+")";c=vq(c,b,f,d,a);c.attr.childNodes=B(e,function(b){var a={offset:b.offset,"stop-color":b.color};b=b.opacity;0<=b&&1>b&&(a["stop-opacity"]=b);return{tag:"stop",attr:a}});c.updateAttr=ay;return c}function ay(c,a,b){var d=
c.el,e=b.renderer;if(c.isDestroyed||d&&d.isDestroyed)c=Cl(e,c.val);else if(d)return c;if((a=b.data.vals[a])&&a.attr&&c.tag===a.tag&&(b=a.el,d=e._s0[a.attr.id]||0,b&&1===d)){d=c.attr;var f=b.data.attrs.id;if(f===d.id)return c.el=b,c;a.isDestroyed=!0;yl(e,d.id);yl(e,f);a=c;var g=c.hash;e._s1[f]=a;g&&(a=e._s3,e._s2[g]=f,a[f]=g);d.id=f;by(b,d);c.el=b;return c}c.el=e.element(c).add(uq(e));return c}function by(c,a){var b=a.childNodes,d=c.childNodes;c.attr(Ka(a,["childNodes"]));Xb(b,d,function(b){return c.renderer.element(b).add(c)},
function(b,a){return a.attr(b.attr)},function(b){return b.destroy()},function(a){return b.indexOf(a)},function(b){return d.indexOf(b)})}function Cb(c,a){x(c,function(b){return Dg[b]=a})}function cy(c,a,b,d,e){if(H(ki,c)){if(!d)return ki[c];d[ki[c]]=b}}function dy(c,a,b,d,e){if(!d)return"attr";M(d,b)}function ey(c,a,b,d,e){if(!d)return"d";c=b&&a&&Sa(b)&&!0!==b.isElement?ka(b)?tc(b," "):b:b;d.d=c}function fy(c,a,b,d,e){"overflow"===c&&d&&a&&b&&(c=a.data.vals["clip-path"],"visible"===b?c&&(d["clip-path"]=
null):"hidden"===b&&(c||(c=Bg(a.renderer,"clipRect")),d["clip-path"]=c))}function Qq(c,a,b,d,e){"clipPath"===c&&d&&a&&!H(d,"clip-path")&&(c=a.data.vals["clip-path"],b?(b=Ve(e,O(b)||b.isPath?{d:b}:b,gy),c?c.attr=M(c.attr,b):c=Bg(a.renderer,"clipPath",b),d["clip-path"]=c,a.shadowEl&&hy(a.shadowEl,b)):c&&(d["clip-path"]=null))}function Dl(c,a){var b=c.shadowTranslate,d=b[0],e=b[1];b=Ca(a).translate(function(b){return[b[0]+d,b[1]+e]});c.attr({d:a+b});if(c=c.data.vals["clip-path"])c.attr=M(c.attr,{d:b}),
c.updateAttr(c)}function hy(c,a){var b=a.d;c.childNodes.length?x(c.childNodes,function(a){return Dl(a,b)}):Dl(c,b)}function iy(c,a,b,d,e){if("shadow"===c&&d&&a){e&&H(e,"clipPath")&&!H(d,"clip-path")&&Qq("clipPath",a,e.clipPath,d,e);var f=a.shadowEl;!b&&f?Rq(a):b&&(!0===b&&(b=Ra({mode:"interpolation",x:5,y:5,color:"rgba(0,0,0,.075)",toColor:"rgba(0,0,0,.025)",interpolationSteps:2,interpolationFunc:"linear"})),b.mode=b.mode||"simple",c=b.mode+" "+(b.x||0)+" "+(b.y||0)+" "+(b.blur||0)+" "+(b.color||
"black")+" "+(b.toColor||"white")+" "+(b.interpolationSteps||0)+" "+(b.interpolationFunc||"linear")+" "+(b.inset?"inset":""),f&&f.data.shadowConfig.val===c||(f&&f.data.shadowConfig.mode===b.mode||(f&&Rq(a),a.shadowEl=f=jy(b,a,d),a.isPatched&&a.renderer.addBefore(f,a),a.refNodes.push(f),f.ownerAttrsChanged=function(b){return ky(f,b,a)},f.alignBeforeOwner=!0),f.data.shadowConfig=X(b,{val:c}),ly(b,f,a,d)))}}function ky(c,a,b){if(!b.data.vals["clip-path"]){var d=fe({},Ib(a,Sq),{fill:void 0,stroke:void 0});
c.childNodes.length?x(c.childNodes,function(b){return b.attr(d)}):c.attr(d)}}function jy(c,a,b){return"interpolation"===c.mode?a.renderer.element("g"):Tq(a,b["clip-path"])}function Tq(c,a){if(a=a||c.data.vals["clip-path"])return a=a.attr.d,c.renderer.element("path",{d:a,"fill-rule":"evenodd",clipPath:a,stroke:"none"});a=X(Ib(c.data.attrs,Sq),{fill:"none",stroke:"none"});return c.renderer.element(c.nodeName,a)}function ly(c,a,b,d){if("radial"===c.mode&&c.blur)a.renderer.attr(a,{translate:[c.x,c.y],
fill:{radialGradient:{},stops:[["0%",c.color],[100-c.blur+"%",c.color],["100%",c.toColor||"white"]]}});else if("interpolation"===c.mode){var e=c.interpolationSteps||1,f=c.interpolationFunc||"linear",g=qe(c.color||"black",c.toColor||"white");f=$x([0,0],[c.x,c.y],f);var h=100/e,k=!1;a.childNodes.length!==e&&(a.childNodes.length&&x(Eg(a.childNodes),function(b){return b.destroy()}),k=!0);for(var l=(d=b.data.vals["clip-path"]||d["clip-path"])?d.attr.d:null,m=0;m<e;m++){var n=k?Tq(b,d).add(a):a.childNodes[m],
p=0===m?{timeFraction:1,current:[c.x,c.y]}:f(h*(e-m)),q=p.current;p=g(p.timeFraction);l?(n.shadowTranslate=q,n.attr({fill:p}),Dl(n,l)):n.attr({translate:q,fill:p})}}else a.renderer.attr(a,{translate:[c.x,c.y],fill:c.color})}function Rq(c){var a=c.shadowEl,b=c.refNodes;if(b.length){var d=b.indexOf(a);-1<d&&b.splice(d,1)}a.destroy();delete c.shadowEl}function my(c,a,b,d,e){if(H(El,c)){c=El[c];a&&a.isHtml&&(c=ny[c]);if(!d)return c;H(d,c)||(d[c]=li(c,b,e,a))}}function li(c,a,b,d){if(!a||!d||!O(a)&&!Sa(a)||
a.isElement)return a;a:if(b&&"fill"===c&&!a.pattern&&!J(a,["meta","pattern"])&&!J(a,["val","meta","pattern"])){c=d.data;if(!Cc(["hatch","hatchPattern"],b)){if(!H(c,"hatch"))break a;b.hatchPattern=c.hatchPattern;b.hatch=c.hatch}var e=b.hatch||"black";c.hatchPattern=""+(b.hatchPattern||"horizontal");c.hatch=e;a="none"===b.hatchPattern||"none"===b.hatch?a:{pattern:""+(b.hatchPattern||"horizontal"),color:b.hatch||"black",backgroundColor:b.fill}}return O(a)?oy(a,d):Sa(a)?(b=a.linearGradient||a.radialGradient?
Cl(d.renderer,a):a.pattern?py(a,d,b):a,b):a}function Uq(c,a){c=Bg(c.renderer,"pattern",a);c.val=a;return c}function py(c,a,b){return(b=Px(c,a,function(b){return li("fill",b,null,a)},b))?Uq(a,b):c}function qy(c,a){var b=a.renderer;c=Hd(c,"'\"");return Uq(a,{hash:"#image:"+c,width:"100%",height:"100%",patternContentUnits:"objectBoundingBox",childNodes:[b.image({src:c,width:1,height:1,preserveAspectRatio:"none"})]})}function oy(c,a){var b=/(.*)\((.*)\)/g.exec(c);if(!b)return c;var d=F(b,3);b=d[1];d=
d[2];if(!b||!d)return c;var e=Ye(d,", "),f=function(){return B(Eg(e,1),function(b){return Vq(Ye(b," "))})};d=function(b){var c=f();c[b]=Ye(e[0]," ");return Cl(a.renderer,c)};return"linear-gradient"===b?d("linearGradient"):"radial-gradient"===b?d("radialGradient"):"url"===b&&"#"!==e[0].charAt(0)?qy(e[0],a):c}function ry(c,a,b,d,e){c=a&&a.isHtml?"border-width":"stroke-width";if(!d)return c;H(d,c)||(d[c]=li(c,b,e,a))}function sy(c,a,b,d,e){if(!d||!a)return c;if("text"!==a.nodeName&&"tspan"!==a.nodeName)d[c]=
li("stroke",b,e,a);else{var f=a.strokeEl;!b&&f?Wq(a):b&&!1!==b.visible&&(c=O(b)?{stroke:b}:b,b=JSON.stringify(c),f&&f.data.strokeHash===b||(f&&Wq(a),a.strokeEl=f=a.renderer.element(a.nodeName,a.data.vals),a.isPatched&&(a.renderer.addBefore(f,a),f.el.style.stroke=ty(c.stroke,a),f.el.style.strokeWidth=c["stroke-width"]||e.strokeWidth,f.el.style.strokeDasharray=c["stroke-dasharray"],f.el.style.strokeOpacity=c["stroke-opacity"],f.el.style.strokeLinejoin="round",f.el.innerHTML=a.el.innerHTML),a.refNodes.push(f),
f.ownerAttrsChanged=function(b){f.el.innerHTML=a.el.innerHTML},f.alignBeforeOwner=!0,f.data.strokeHash=b))}}function Wq(c){var a=c.strokeEl;a.destroy();delete a.ownerAttrsChanged;delete c.strokeEl}function ty(c,a){return pg(c)?te(J(a,["parentNode","data","attrs","fill"])||"black",c):c}function uy(c,a,b,d,e){if(H(mi,c)){if(!d)return mi[c];if(e&&!H(d,"transform"))if(O(e.transform)||null===e.transform)d.transform=e.transform;else{var f;a&&(c=a.attr("transform"))&&H(c,"val")&&(f=c);f=f||{};e.transform&&
M(f,e.transform);Fa(hc,function(b){H(e,b)&&(f[b]=e[b])});var g=[];Fa(hc,function(b){if(H(f,b)&&null!==f[b]){var a=hc[b][1](f[b]);null!=a&&g.push(b+"("+tc(a,",")+")");f[b]=a}});if(c=g.length?tc(g," "):null)f.val=c;d.transform=c?f:null}}}function vy(c,a,b,d,e){if(H(ni,c)){if(!d)return ni[c];c=ni[c];b&&a&&(a.data.zIndex=b);d[c]=b}}function wy(c,a,b,d,e){if(!d)return"easing";c=b&&O(b)?H(Xq,b)?Xq[b]:b:b;d.easing=c}function xy(c,a,b,d,e){if("mask"===c){if(!d)return c;a&&!H(d,"mask")&&(b?(c=a.data.vals.mask,
b=Ve(e,O(b)?{d:b}:b,yy),c?c.attr=M(c.attr,b):c=Bg(a.renderer,"mask",b),d.mask=c):d.mask=null)}}function zy(c,a,b,d,e){if(!d)return"text";d.text=a.isHtml?b:b.replace(Ay," ")}function Rb(c){return function(a){Fl[c]=a}}function Yq(c){if(c.type&&0===c.type.indexOf("touch"))return!0;c=c||window.event;return"buttons"in c&&1===c.buttons?!0:1===(c.which||c.button)}function wf(c,a){function b(){return d=a.getBoundingClientRect()}if(void 0===c.eventData.clientX||void 0===c.eventData.clientY)c.eventData.clientX=
c.clientX,c.eventData.clientY=c.clientY;var d=null,e=null;c.eventData.coordinates={getPageXY:function(){var f=c.eventData.pageX,g=c.eventData.pageY;if(void 0===f||void 0===g)d||(d=b()),e||(e=a.getBBox?a.getBBox():null),f=c.eventData.clientX-d.left+(e?e.x:0),g=c.eventData.clientY-d.top+(e?e.y:0);return{x:f,y:g}},getOuterBox:b}}function oi(c,a){return a?a.querySelector(c):ia.querySelector(c)}function Zq(c,a,b){Gl(c,a,{reorder:b});c.el.appendChild(a.el);a.refNodes.length&&x(a.refNodes,function(b){return b.alignBeforeOwner&&
Fg(b,a)})}function Fg(c,a,b){var d=a.parentNode;d&&(Gl(d,c,{index:d.childNodes.indexOf(a),reorder:b}),a.el.parentNode.insertBefore(c.el,a.el),c.refNodes.length&&x(c.refNodes,function(b){return b.alignBeforeOwner&&Fg(b,c)}))}function $q(c,a,b){var d=a.parentNode;if(d){var e=d.childNodes,f=e.indexOf(a)+1;Gl(d,c,{index:f===e.length?null:f,reorder:b});a.el.parentNode.insertBefore(c.el,a.el.nextSibling);c.refNodes.length&&x(c.refNodes,function(b){return b.alignBeforeOwner&&Fg(b,c)})}}function By(c){Cy(c.el);
ar(c);c.childNodes=[];c.refNodes.length&&(x(c.refNodes,function(a){return a.destroy()}),c.refNodes=[]);delete c.el}function Gl(c,a,b){b=b||{reorder:!1,index:null};var d=b.reorder;b=b.index;a&&(c!==a.parentNode||d)&&(d=ar(a),-1<d&&d<b&&b--,c&&(d=c.childNodes,0===b?d.unshift(a):b?d.splice(b,0,a):d.push(a),a.parentNode=c))}function ar(c){if(!c.parentNode)return-1;var a=c.parentNode.zIndexHash,b=c.data.zIndex||0;a[b]&&delete a[b];a=c.parentNode.childNodes;b=a.indexOf(c);if(0>b)return-1;a.splice(b,1);
c.parentNode=null;return b}function Gg(c,a,b){if(!c||c instanceof ub)return c;b=new ub(c,a,b);var d=b.data.attrs,e,f={};if(c.hasAttributes()){var g=c.attributes;try{for(var h=xa(g),k=h.next();!k.done;k=h.next()){var l=k.value;f[l.name]=l.value}}catch(y){var m={error:y}}finally{try{k&&!k.done&&(e=h.return)&&e.call(h)}finally{if(m)throw m.error;}}}M(d,f);c.parentNode&&(b.parentNode=new ub(c.parentNode,a,void 0));var n;c=[];a=b.el.childNodes;try{for(var p=xa(a),q=p.next();!q.done;q=p.next()){var r=q.value;
1===r.nodeType&&c.push(Gg(r,b.renderer))}}catch(y){var u={error:y}}finally{try{q&&!q.done&&(n=p.return)&&n.call(p)}finally{if(u)throw u.error;}}b.childNodes=c;return b}function Dy(c,a,b){a.omit&&(a=Ka(a,a.omit),delete a.omit);for(var d in a){var e=a[d],f=e;e&&e.isDef?(e.updateAttr&&(e=e.updateAttr(e,d,c)),f="url(#"+e.attr.id+")"):e instanceof ub?e.el?(f=e.el.id,Jb(f)&&(f=Fd(),Hl(e,"id",f)),f="url(#"+f+")"):f=br(c,d):"transform"===d&&(e?O(e)||(c.data.transform=e,f=e.val):c.data.transform=e);f=Jb(f)?
f:wh(f);Hl(c,d,f,b);c.data.vals[d]=e}c.refNodes.length&&x(c.refNodes,function(b){return b.ownerAttrsChanged&&b.ownerAttrsChanged(a)})}function Ey(c,a){if(t(a)){if(a){var b=F(ka(a)?a:[a.x,a.y,a.width,a.height],4);b=xf(b[0],b[1],b[2],b[3]);return c.data.box=b}delete c.data.box}if(c.data.box)return c.data.box;c=c.el;if(!c)return xf();a=c.nodeName.toLowerCase();if("svg"===a||"div"===a)return c.parentNode?(c=c.getBoundingClientRect(),xf(0,0,c.width,c.height)):xf(0,0,0,0);try{return b=c.getBBox(),xf(b.x,
b.y,b.width,b.height)}catch(d){return xf()}}function xf(c,a,b,d){void 0===c&&(c=0);void 0===a&&(a=0);void 0===b&&(b=0);void 0===d&&(d=0);return{x:c,y:a,width:b,height:d}}function cr(c,a,b){var d,e=c.childNodes,f=parseFloat(a.attr("z-index"));b>c.zIndexMax?c.zIndexMax=b:((d=c.zIndexHash[b])?$q(a,d,!0):(d=P(e,function(a){return(a.data.zIndex||0)>b}))&&Fg(a,d,!0),d&&(c.zIndexMax=e[e.length-1].data.zIndex));f!==b&&c.zIndexHash[f]===a&&delete c.zIndexHash[f];c.zIndexHash[b]=a;d||Zq(c,a,!0)}function Hl(c,
a,b,d){var e=c.el,f=c.data.attrs,g=f[a];dr[a]===b&&(b=null);if(g!=b){if("z-index"===a)e=parseFloat(b),c.parentNode&&cr(c.parentNode,c,e);else if("text"===a)e.textContent=b;else if("value"===a)e.value=b;else if("innerHTML"===a)e.innerHTML=b;else if(pi(e.tagName)&&"type"===a)e.type=b;else if(pi(e.tagName)&&"accept"===a)e.accept=b;else if(c=b,null==c)Il(e,a)?e.style&&(e.style[a]=""):e.removeAttribute(a);else if(Il(e,a))e.style&&(e.style[a]=c);else{var h=er(a);h?e.setAttributeNS(h,a,c):e.setAttribute(a,
c)}f[a]=b;d&&d(a,g,b)}}function fr(c,a){var b=M({},c.data.attrs),d="path"===c.nodeName,e=function(b,d){a&&H(a,b)||Hl(c,b,d)};Fa(b,function(b){(!d||"fill"!==b&&"stroke"!==b)&&e(b,null)});d&&(e("fill","none"),e("stroke","none"))}function br(c,a){var b=c.data.attrs,d=c.el,e=void 0;if("transform"===a)return M({},c.data[a])||null;"path"!==c.nodeName||"fill"!==a&&"stroke"!==a||(e="none");(c=b[a]||e||dr[a])||("text"===a?a=d.firstChild?d.firstChild.nodeValue:"":Il(d,a)?(d=d.style,a=!d||vb(d[a])?null:d[a]):
a=(c=er(a))?d.getAttributeNS(c,a):d.getAttribute(a),c=a);return c}function gr(c){return c&&(c.start&&c.start.type||c.end&&c.end.type)}function Fy(c){var a=c.caps||{};a.lineWidth=z(a.lineWidth,c.lineWidth,c["stroke-width"]);return{lineWidth:a.lineWidth,start:a.start&&a.start.type||a.type?gq(fe(a,a.start||{},hr)):{},end:a.end&&a.end.type||a.type?gq(fe(a,a.end||{},hr)):{},eachShape:a.eachShape}}function Gy(c,a){var b=function(a,c){return 2>c||!bb(a[c],a[c+1])?c:b(a,c-1)},d=function(b){b=b.shapes[0].items[1]||
b.shapes[0].items[0];return La(b[2],b[1])},e=function(a){a=Q(Q(a.shapes).items);var c=b(a,a.length-2);return La(a[c],a[c+1])};c=Hy(c);var f=c.length(),g=function(b){return qi(b)?z(b.centerWidth,0):0},h=function(b){return qi(b)?z(b.centerWidth&&b.width,0):0},k=h(a.start),l=h(a.end);h=g(a.start);a=g(a.end);var m=h/f,n=a/f;if((g=m||n)&&k+l>f)return null;f=g?zx(c,h,a,{mode:"caps"}):c;var p=f.shapes[0].items[0][2],q=Q(Q(Q(f.shapes).items));k=c.shapes[0].items[0][2];l=Q(Q(Q(c.shapes).items));d=m&&!bb(p,
k)?La(p,k):d(f);e=n&&!bb(q,l)?La(q,l):e(f);n=[p,q];h&&(n[0]=pa(k,d-180,h));a&&(n[1]=pa(l,e-180,a));return{clipLen:[h,a],points:n,angles:[d,e],d:g?f:c}}function Hy(c){if(1>c.shapes.length||1===c.shapes.length&&2>c.shapes[0].items.length)return c;a:for(var a=[0,0],b=0;b<c.shapes.length;b++)for(var d=c.shapes[b],e=0===b?1:0;e<d.items.length;e++){var f=d.items[e];a=[b,e];if(!bb(f[1],Q(f)))break a}b=c.shapes.length-1;a:for(;0<=b;b--)for(d=c.shapes[b],e=d.items.length-1;0<=e;e--){var g=[b,e];f=d.items[e];
if(!bb(f[1],Q(f)))break a}b=[c.shapes[0].items[0]];for(d=a[0];d<=g[0];d++)for(e=c.shapes[d],f=d==a[0]?a[1]:0;f<=(d==g[0]?g[1]:e.items.length-1);f++)b.push(e.items[f]);return rc(b)}function Iy(c,a){var b,d,e=function(b,a){var c=a.cxy;a=a.angle;var d=b.concavity,e=b.width,f=b.height;c=!0===b.overflow?c:pa(c,a,-e/2);c=ob(c,[e,f]);d={angle:a,concavity:d};b=pq(b.type,c[0],c[1],c[2],c[3],d);if(d.skipTransform)return b;b=b.isPath?b:Ca(b);return b.rotate(a+90)},f=c.start||{};c=c.end||{};qi(f)&&(b=e(f,{cxy:a.points[0],
angle:a.angles[0]}));qi(c)&&(d=e(c,{cxy:a.points[1],angle:a.angles[1]}));return{start:b,end:d}}function qi(c){return c&&c.type&&"none"!==c.type}function ir(c){var a={},b=Jy;Fa(c,function(d){if(H(b,d)){var e=b[d];2<e.length?a[e]=c[d]:a[e[0]]=e[1](c[d])}else a[d]=c[d]});return a}function Ky(c,a,b){c[a]=b}function Ly(c,a,b){return Jl(c,a,b)&&{updateGlobalCoordinates:!0}}function My(c,a,b){return Jl(c,a,b)&&{updateSharedAttrs:!0}}function Ny(c,a,b){return ri(c,a,parseFloat(b)||Infinity)}function ri(c,
a,b){return Jl(c,a,b)&&{needRecalc:!0}}function Jl(c,a,b){if(!zc(c[a],b))return c[a]=b,!0}function Oy(c,a,b){b="auto"===b||null===b||Aa(b)?nd():Ta(b,{isMutable:!1});return ri(c,Py[a],b)}function Qy(c,a,b){b=yf(b,c.width?c.width.px:0);return ri(c,a,b)}function Ry(c,a,b,d){var e="string"===typeof c;c=e?[{val:c}]:c;for(var f=[],g=0,h=c.length;g<h;g++){var k=c[g];k.textVariants||(k.textVariants=Sy(k.val,d.ignoreCategories));var l=k.textVariants,m=e?a.personal:k,n=e?a.own:X(a.own,m),p=[];k=function(c,
f){var h=l[c].completeString;d.preserveStartSpaces||0!==g||(h=h.replace(Id.startSpaces,""));d.preserveSpaces||(h=h.replace(Id.spaces," "));c=Ty(n,e?a.parent:a.own,b);h=tw(h,c,b);if(1===f&&t(c.width)){var k;if(k=parseFloat(c.width))delete c.width,x(h.parts,function(b){b.text&&(b.width=k,k=0)})}h.style=e?a.personal:X(a.personal,m);p.push(h)};for(var q=0,r=l.length;q<r;q++)k(q,r);f.push(p)}return f}function Sy(c,a){if(-1<c.indexOf("&ors;")){var b=[{completeString:"",variantsUsed:[]}],d=[],e={},f=[],
g=Uy(c).split(Id.variants);c=[];for(var h=0,k=g.length;h<k;h++)h%2?c.push(g[h]):c=c.concat(g[h].split(Id.space));h=0;for(k=c.length;h<k;h++)if(g=c[h]){g=g.split(jr.orc);var l=g[1];l=l?l.split(":"):[];g=g[0].split(jr.or);f.push(1<g.length&&!a?{versions:g,category:{variantsNumber:g.length,name:l[0]||"",priority:l[1]||0}}:g[0])}c=0;for(h=f.length;c<h;c++)if(k=f[c],g=k.versions){k=k.category;l=e[k.name];var m=1;l||(l=b.length,k.name&&!a&&(e[k.name]=l),m=g.length);for(var n=[],p=0;p<m;p++)n=n.concat(Vy(b));
b=n;for(m=0;m<b.length;m++)n=Math.floor(m/l)%g.length,b[m].completeString+=g[n],b[m].variantsUsed.push(n);d.push(k.priority)}else for(g=0,l=b.length;g<l;g++)b[g].completeString+=k;return Wy(b,d)}return[{completeString:c,variantsUsed:[]}]}function kr(c){for(var a=[],b=0,d=c.length;b<d;b++){var e=c[b];e&&void 0!=e.length?a.push(kr(e)):a.push(M({},e))}return a}function Uy(c){var a=new String(c);-1<c.indexOf("&ors;")&&Fa(lr,function(b){var c=lr[b],e=parseInt(b);Id["char_"+b]||(Id["char_"+b]=new RegExp("&#"+
b+";?"+(c?"|&"+c+";?":""),"ig"));a=a.replace(Id["char_"+b],String.fromCharCode(e))});return a}function Wy(c,a){for(var b=[],d=0,e=a.length;d<e;d++){var f=a[d];f&&(b[parseInt(f)-1]=d)}a=function(){var a=b[g];c.sort(function(b,c){return b.variantsUsed[a]>c.variantsUsed[a]})};var g=0;for(d=b.length;g<d;g++)a();return c}function Vy(c){for(var a=[],b=0,d=c.length;b<d;b++){var e=c[b];a.push({completeString:e.completeString,variantsUsed:e.variantsUsed.slice()})}return a}function Ty(c,a,b){a=a.fontSize;var d=
b.fontSize;b=c.fontSize||a;if("number"==typeof b)a=b;else{if(Id.fontSize.test(b)&&(d=parseFloat(b)))switch(b.replace(d,"")){case "em":if(!a){d=0;break}d*=parseFloat(a);break;case "pt":d=4*d/3}a=d}c.fontSize=a;c.fontFamily=c.fontFamily;return c}function Xy(c){c=c.split("|");var a=["left","center","right"],b=["top","middle","bottom"],d={};x(c,function(c){a[c]&&(d.x=c);b[c]&&(d.y=c)});return d}function Yy(c){if(!c||c.push)return c;switch(K(c)){case "number":return[c];case "string":return Zj(c)}return c}
function Zy(c,a){var b=c.length-1;if(a<c[b].minSize.width.px)return c[b];if(a>c[0].minSize.width.px)return c[0];for(var d=0;d<=b;){var e=Math.floor((d+b)/2);if(a>c[e].minSize.width.px)b=e-1;else if(a<c[e].minSize.width.px)d=e+1;else return c[e].minSize.width.px}return c[d]}function mr(c,a,b){var d=O(c),e=d?ia.getElementById(c):c;c=d?c:c.getAttribute&&c.getAttribute("id");d=b&&b.preserve;var f=!c||!si[c];if(f||!d)var g=new Kl({container:e,staticSize:!0,skipDomDestroy:!d});f?(e=g.textStack(a),e.attr(M(nr,
b)),e.add().refresh(),c&&d&&(si[c]=e)):(e=si[c],e.attr(M(nr,b)).val(a).refresh());a=e.setPreliminarySize().getBbox();b=e.renderer.root.el;b.setAttribute("width",a.width+1);b.setAttribute("height",a.height+1);d||(e.destroy(),g.destroyChildren(),g.destroy(),c&&delete si[c]);return b}function or(c){if(c.type){var a=F(c.type.split(":"),2),b=a[1];c.type=a[0];c.subType=b}else c.type="panel"}function zf(c,a,b){ti=ti||{};var d=a.split(",");a=c+a+b;var e,f;if(e=ti[a])return e;var g=0;for(f=d.length;g<f;g++){var h=
void 0;e=c;var k=Hd(d[g]).replace("enum_",""),l=!1,m={sequence:[],explicit:[]};m.setting=e;for(e=e.toLowerCase();!l;){var n=void 0;h=void 0;var p,q=void 0,r=void 0,u=void 0,y=e,v=pe(k),w=ya(v.members);y=Hd(y);var E=0;for(p=w.length;E<p;E++)if(0!==y.indexOf(w[E].toLowerCase())||y.length!==w[E].length&&!v.members[w[E]].chain)0!==y.indexOf(w[E].toLowerCase())||y.length===w[E].length||v.members[w[E]].chain?v.members[w[E]].isDefault&&(r=w[E]):n=w[E];else{q=w[E];break}!q&&n&&(q=n);q?u=!0:(q=r,h=!0);q?(n=
0===y.indexOf(q.toLowerCase())?y.replace(q.toLowerCase(),""):y,h={match:q,isDefault:h,explicit:u,chain:v.members[q].chain,value:n,attributes:v.members[q].enumAttributes}):h={invalid:y};if(t(h.invalid))h.value=h.invalid,l=!0;else{if(!h.isDefault||!b)if(m[k]=h.match,m.sequence.push(k),h.attributes)for(var I in h.attributes)m[I]=h.attributes[I];h.explicit&&m.explicit.push(k);k=h.chain;e=h.value;k||0!==e.length?k?k=k.replace("enum_",""):k||(l=!0):l=!0}}m.sequence=m.sequence.join(",");m.explicit=m.explicit.join(",");
0<h.value.length&&(m.invalid=h.value);e=m;if(!e.invalid)break}return ti[a]=e}function $y(c,a){var b=K(a);switch(c){case "palette":if("array"!==b&&"object"!==b)return Nh(a)}return a}function az(c){var a=ya(pr);x(a,function(b){return c=c.replace(new RegExp("\\b"+b+"\\b","i"),pr[b])});return c}function Ll(c,a){a=Ec(a).slice(0);a.unshift(a.pop());c=$b(c);c[0]+=a[0];c[1]+=a[1];c[2]-=a[2];c[3]-=a[3];return ff(c)}function wb(c,a){var b={},d=z(c.visible,!0),e=z(c.width,1),f=z(c.opacity,1)*z(a,1),g=og(c.color||
"black");a=z(c.caps,"butt");f*=g.opacity;d&&!U(c.color)?(b.stroke=g.hex,b["stroke-opacity"]=f):(b.stroke="none",e=0);if(!U(d=c.dashStyle)){c=e;d=d.toLowerCase();if(d=bz[d].split(",")){f=0;for(g=d.length;f<g;f++)d[f]*=c;c=d.join(",")}else c="none";b["stroke-dasharray"]=c}b.fill="none";b["stroke-width"]=e;b["stroke-linejoin"]="round";O(a)?b["stroke-linecap"]=a:b.caps=a;return b}function ui(c){0===c["stroke-width"]&&(delete c["stroke-linejoin"],delete c["stroke-linecap"],delete c.stroke,delete c["stroke-opacity"]);
return c}function ic(c,a){var b={},d;a=z(c.opacity,1)*z(a,1);U(d=c.outline)||(b=wb(d,a));U(d=c.fill||c.color)||vi(b,d,a);b["fill-rule"]="evenodd";qr(b,c.hatch,b.stroke||"rgb(50,50,50)");!1===c.visible&&(b.opacity=0);U(d=c.d||c.path)||(b.d=d);U(d=c.size)?U(d=c.radius)||(b.r=d):b.r=(parseInt(d)||0)/2;return b}function Hg(c,a,b){var d,e=z(c.opacity,1)*z(a,1),f={},g={},h={},k={};!1===c.boxVisible?(f.fill=!1===c.boxPointerEvents?"transparent":"none",f.stroke="none",f.shadow=!1):(U(d=c.outline)||(a=wb(d,
e),A(f,a),A(h,a)),U(d=c.fill)||vi([k,f],d,e,b),lb(c,f,"radius","r",void 0),lb(c,f,"shadow",void 0,void 0));lb(c,g,"margin","margin",Ec);lb(c,g,"padding","padding",Ec);lb(c,g,"width",void 0,void 0);lb(c,g,"height",void 0,void 0);U(d=c.height)?g.height=void 0:g.height=d;U(d=c.style)||A(g,d);lb(c,g,"zIndex",void 0,void 0);return{bg:f,root:g,stroke:h,fill:k}}function rr(c){var a=c.animation,b=C(c,"label.style"),d=C(c,"label.align"),e=c.outline,f=function(b,a,d){lb(c,h,b,a,d)},g=function(b){return b+"px"},
h={position:"absolute",whiteSpace:"nowrap"};f("radius","radius",g);f("padding","padding",g);f("fill","background");f("offsetX","left",g);f("offsetY","top",g);f("width","width",g);f("height","height",g);f("radius","borderRadius",g);f("text-align","text-align");f("background-color","background-color");f("border","border");f("click","onclick");f("visibility","visibility");f("left","left");f("top","top");f("zIndex","zIndex");d&&(h.textAlign=d);t(b)&&(lb(b,h,"color","color"),lb(b,h,"fontSize","fontSize"),
lb(b,h,"fontFamily","fontFamily"),lb(b,h,"fontWeight","fontWeight"),lb(b,h,"textDecoration","textDecoration"),lb(b,h,"fontStyle","fontStyle"));t(e)&&(h.border=e.color+" solid "+e.width+"px");t(a)&&(h.transitionProperty=a?"left, top":null,h.transitionDuration=a?(a.duration||0)/1E3+"s":null,h.transitionTimingFunction=a?a.easing:null);!1===c.boxVisible&&(h.background="none",h.border="none");return h}function Ig(c,a){var b=Hg(c,void 0,a);b=A(b.bg,b.root);var d,e=[];if(U(d=c.corners))U(d=c.radius)||(qb(4,
function(){e.push({type:"round",r:d})}),f={corners:e});else var f={corners:cz(d,c)};b.shape=M(c.shape||{},f);"titleBox"===a&&b.shape&&x(b.shape.corners,function(b,a){1<a&&(b.type="square")});return b}function cz(c,a){var b=c,d=[];switch(K(c)){case "string":qb(4,function(){d.push({type:b,r:a.radius})});break;case "array":if(4!==b.length)for(b=b.slice(0);4>b.length;)b.push("round");d=B(b,function(b){return{type:b,r:a.radius}});break;case "object":d=[{type:b.topleft||"round",r:a.radius||3},{type:b.topright||
"round",r:a.radius||3},{type:b.bottomright||"round",r:a.radius||3},{type:b.bottomleft||"round",r:a.radius||3}]}return d}function uc(c,a,b){var d,e={};c=a?Ka(c,a):c;a=function(b,a,d){lb(c,e,b,a,d)};var f;U(d=c.color)?U(d=J(c,["style","color"]))||(f=d):f=d;f&&(e.fill=da(f,b&&b.color||f));a("margin","margin",Ec);a("padding","padding",Ec);a("visible","display",function(b){return b?"block":"none"});a("align","xAlignment");a("align","xContentAlignment");a("verticalAlign","yAlignment",function(b){return b.replace("middle",
"center")});a("cssClass","className");a("rotate","rotate");a("width");a("height");a("textOverflow");a("maxWidth");a("strategy");a("autoWrap");a("opacity");a("animation");!U(d=c.offset)&&(d=sr(d))&&(e.offsetX=d[0],e.offsetY=d[1]);U(d=c.outline)||(pg(d.color)&&(d=A({},d,{color:te(e.fill,d.color)})),Wc(e,wb(d),{fill:!0}));U(d=c.style)||A(e,d);return e}function sr(c){var a=K(c);if("string"===a){if(c=c.split(","),2===c.length)return[parseInt(c[0]),parseInt(c[1])]}else{if("number"===a)return[c,c];if("array"===
a)return c}}function qr(c,a,b){a&&(lb(a,c,"style","hatchPattern"),b&&(a=A({color:da("contrast",b)},a)),lb(a,c,"color","hatch",Ob),"none"===c.hatchPattern&&(delete c.hatchPattern,delete c.hatch,c.stroke="none"));return c}function vi(c,a,b,d){void 0===b&&(b=1);var e=K(a);if("undefined"!==e){if("object"!==e)if("none"!==a){var f=Mh(dc(a),b);d&&"string"===typeof f&&(f=hd(d,f))}else f="transparent";else f=dc(a,1-b);c.pop?x(c,function(b){return b.fill=f}):c.fill=f}}function Jd(c){var a="none"!==c.color,
b=!1===c.visible,d;if(d=b)d=c&&c.caps,d=!(d&&(d.end||d.start||d.type));d=d&&!c.color;c=0!==c.width;return b?!1:d||!c?!1:a}function tr(c){var a=c.outline;return c.fill&&"none"!==c.fill||a&&"none"!==a&&0!==a.width}function Kd(c){var a=0!==J(c,["text","length"]);return!1===c.visible?!1:!!a}function Jg(c,a,b,d){void 0===d&&(d={});var e,f=d.minIntervalGap=z(d.minIntervalGap,.3),g=d.axOptions||{},h=g.scale||{};if(b.length){var k=b[0];b=b[1]}var l=h.type&&0===h.type.toLowerCase().indexOf("log");h=h.logBase||
10;var m={interval:0,min:0,max:0,range:0},n=wi(d.userMax)?d.userMax:d.snapZero&&0>a?0:a,p=wi(d.userMin)?d.userMin:d.snapZero&&0<=c?0:c,q=$f([n,p]),r=Math.abs(n-p);if(e=d.breaks)r=Ov([[p,n]],e),r=ro(r);m.range=r=sa(r,q);(q=d.minInterval||k&&r/k)&&(q.unit||O(q))&&(q=Vh(q.unit?q:{unit:q}),q=q.count*q.unitRange);k=ur(r,dz,q,b).best.interval;"auto"===d.userMinorInterval&&(q=Kd(C(g,"defaultMinorTick.label")),g=Jd(C(g,"defaultMinorTick.gridLine")),m.minorInterval=C(ur(k,ez,d.minInterval,q||g?2:b),"best.interval"));
q=$f([c,a,r,k]);e=Math.log(Math.abs(a))/Math.log(h);b=Math.log(Math.abs(c))/Math.log(h);g=function(b){var a=Math.floor(b);return b-a<f?a-1:a};r=function(b){var a=Math.ceil(b);return a-b<f?a+1:a};e=0>a?g(e):r(e);b=0>c?r(b):g(b);wi(d.userMax)?(d.userMax<c&&(m.error=vr.badMax),m.max=d.userMax):l?m.max=Math.pow(h,e)*ge(a):d.snapZero&&0>=a?m.max=0:(m.max=Math.ceil(a/k)*k,0!==m.max&&a>m.max-k*f&&(m.max+=k));wi(d.userMin)?(d.userMin>a&&(m.error=vr.badMin),m.min=d.userMin):l?m.min=Math.pow(h,b)*ge(c):d.snapZero&&
0<=c?m.min=0:(m.min=Math.floor(c/k)*k,0!==m.min&&c<m.min+k*f&&(m.min-=k));l?m.log=[b,e]:(m.min=sa(m.min,q),m.max=sa(m.max,q));m.range=m.max-m.min;m.interval=k;return m}function ur(c,a,b,d){var e=-1,f=[],g=Math.pow(10,Math.floor(Math.log(c)/Math.LN10)),h,k=0;for(h=a.length;k<h;k++){var l=g/a[k],m=c/l+1;f[k]={interval:l,tickCount:m};m=m<d;l=U(b)||l>=b;var n=k===h-1;if(-1===e&&(m&&l||n)){e=k;break}}return{prev:0<e?f[e-1]:void 0,best:f[e],next:e<h-1?f[e-1]:void 0}}function fz(c){function a(b){return 0<
b.length?b[0]:"!@!@!"}function b(b,a){return b[a]?b[a]:0}function d(b){for(var a=0;a<f;a++)e[a].propNames[0]===b&&e[a].propNames.shift();jb(q,b)}var e=[],f=c.length,g=!1,h="!@!@!",k=0,l="",m=[],n,p=!1,q=[];x(c,function(b){return q.push.apply(q,G(b))});q=Ia(q);for(function(){for(var b=0;b<f;b++){var a={propNames:[],nCounts:{}},d=c[b],g=d.length;g>k&&(k=g);for(var h=0;h<g;h++)a.propNames.push(d[h]),a.nCounts[d[h]]?a.nCounts[d[h]]++:a.nCounts[d[h]]=1;e.push(a)}}();!g;){h="!@!@!";for(n=0;n<f;n++)l=a(e[n].propNames),
"!@!@!"===h?h=l:h!==l&&0<b(e[n].nCounts,h)&&(h=l);if("!@!@!"===h||m.length>=k*f)g=!0;else if(m.length>=k){p=!0;for(n=0;n<f;n++)if(l=a(e[n].propNames),"!@!@!"!==h){p=!1;break}g=p}g||(m.push(h),d(h))}q.length&&m.push.apply(m,G(q));return m}function Ld(c,a,b,d){return Ml.abs((c-a[d])/(a[b]-a[d])*100)}function vc(c,a,b){a=a[b];return c&&a?Ml.abs(c/a*100):0}function Kg(c){return H(c,"ye")&&!H(c,"y")}function Lg(c){return Kg(c)?ma(c.ye,c.ys):c.y}function Nl(c,a){var b="y"===a,d=c.pOptions,e=c.scCache,f=
c.yVal,g;if((g=c.series[a+"Axis"])&&c.chart.chartItemManager.exists(g.id))return c=t(g.min)?g.range:Jg(e[b?"min":a+"Min"],e[b?"max":a+"Max"],10),Ml.abs(((b?d[f]-(d.low||0):d[a])-c.min)/(c.max-c.min)*100)}function xi(c,a){var b="y"===a;return vc(b?Lg(c.indexedData):c.pOptions[a],c.cache,b?"yRangeSumAbs":a+"SumAbs")}function yi(c,a){var b="y"===a,d=b?"yRangeSumAbs":a+"SumAbs";return vc(c.pOptions?b?Lg(c.indexedData):c.pOptions[a]:c.cache[d],c.scCache,d)}function zi(c,a){var b="y"===a,d=b?"yRangeSumAbs":
a+"SumAbs",e=c.pgCache;return e[d]?vc(b?Lg(c.indexedData):c.pOptions[a],e,d):c.pOptions[a]?100:0}function Ai(c,a){var b="y"===a,d=c.pOptions[b?c.yVal:a];return t(d)?Jv(d,c.cache[b?"averList":a+"AverList"]):0}function wr(c){var a=c.pOptions.y;return t(a)&&"string"===typeof a&&!c.fOptions.yIsTime?a:Kg(c.indexedData)?c.indexedData.ye:c.indexedData.y}function Ol(c,a){return(c.val.pop?c.val[1]-c.val[0]:0)/a}function gz(c){if(!c.calcCache){var a=c.indexer,b=c.userPoints.length,d=c.xAxis||{},e=c.zAxis||
{},f="category"===d.type,g=Math.abs,h=Sb(a,"getKey"),k=Sb(a,"getItem"),l=Sb(a,"sum"),m=Sb(a,"sumAbs"),n=function(b){return b.name};f&&(n=function(b){return t(b.name)?b.name:d.catList[b.x]});var p=H(a.data,"ye")&&!H(a.data,"y"),q=0<h("xr").length,r=0<h("zr").length,u=!p,y=!q,v=!q,w=p?2*b:b,E=p?(l("ys")+l("ye"))/w:l("y")/b;q=q?(l("xs")+l("xe"))/w:l("x")/b;b=r?(l("zs")+l("ze"))/w:l("z")/b;r=u?"y":"ye";w=u?"y":"ys";var I=u?"y":"yr",D=y?"x":"xe",x=y?"x":"xs",Ga=u?h("y"):Xc(h("yr")),V=y?h("x"):Xc(h("xr")),
aa=v?h("z"):Xc(h("zr")),N=h("name");f&&0===N.length&&0<V.length&&(N=V.map(function(b){return d.catList[b]}));f=u?Ga:Xc(h("ya"));y=y?V:Xc(h("xa"));h=v?aa:Xc(h("za"));u=k(a.min_i(w));var Bb=k(a.max_i(r)),gc=k(a.min_i(x)),A=k(a.max_i(D)),z=k(v?a.min_i("z"):a.min_i("zs"));a=k(v?a.max_i("z"):a.max_i("ze"));c.calcCache={list:Ga,xList:V,zList:aa,nList:N,max:Bb[r],min:u[w],xMax:A[D],xMin:gc[x],zMax:a.z,zMin:z.z,zAbsmax:Math.max(g(a.z),g(z.z)),nMax:n(Bb),nMin:n(u),nZMax:n(a),nZMin:n(z),nXMax:n(A),nXMin:n(gc),
sum:l(I),zSum:l("z"),xSum:l("x"),sumAbs:m(I),zSumAbs:m("z"),xSumAbs:m("x"),average:E,zAverage:b,xAverage:q,range:Ga.length?Bb[I]-u[I]:void 0,zRange:aa.length?a.z-z.z:void 0,yRangeSum:l(I),yRangeSumAbs:p?m("yr"):m("y"),yStartSum:l("ys"),name:c.name,type:c.currentOptions.type,xAxis:c.xAxis,yAxis:c.yAxis,zAxis:c.zAxis,zAxisLabelText:C(e.currentOptions,"label.text"),averList:f,xAverList:y,zAverList:h}}return c.calcCache}function hz(c){var a=c.indexer;a.reset();c.chart.series().each(function(b){var a=
b.getCalcCache();c.indexer.indexObject(a,b._i)});var b=Math.abs,d=function(b){return Xc(Sb(a,"concat")(b))},e=Sb(a,"getItem"),f=Sb(a,"min_i"),g=Sb(a,"max_i"),h=Sb(a,"min"),k=Sb(a,"max"),l=Sb(a,"sum"),m=d("list"),n=d("average"),p=d("xList");d=d("zList");var q=e(f("min")),r=e(g("max")),u=e(f("xMin")),y=e(g("xMax"));f=e(f("zMin"));e=e(g("zMax"));g=a.getKey("type");var v=k("zMax"),w=h("zMin"),E={list:m,typeList:g,type:g[0],sumList:a.getKey("sum"),max:k("max"),min:h("min"),sum:l("sum"),average:n.length?
l("average")/n.length:n,range:m.length?k("max")-h("min"):void 0,zList:d,xList:p,zSumList:a.getKey("zSum"),xSumList:a.getKey("xSum"),zMax:v,zMin:w,zAbsmax:Math.max(b(v),b(w)),xMax:k("xMax"),xMin:h("xMin"),zSum:l("zSum"),xSum:l("xSum"),sumAbs:l("sumAbs"),zSumAbs:l("zSumAbs"),xSumAbs:l("xSumAbs"),zAverage:d.length?l("zSum")/m.length:void 0,xAverage:p.length?l("xSum")/m.length:void 0,zRange:d.length?k("zMax")-h("zMin"):void 0,yRangeSum:l("yRangeSum"),yRangeSumAbs:l("yRangeSumAbs"),nMin:q.nMin,nMax:r.nMax,
nZMax:e.nZMax,nZMin:f.nZMin,nXMax:y.nXMax,nXMin:u.nXMin,snMax:r.name,snMin:q.name,snZMax:e.name,snZMin:f.name,snXMax:y.name,snXMin:u.name},t={Min:h,Max:k};Kb("Sum,Average",function(b){Kb("Min,Max",function(a){Kb("y,x,z",function(c){var d="y"===c;E[(d?Ze(a):c+a)+b]=t[a](d?Ze(b):c+b)})})});return E}function iz(c){var a=c[0],b=function(b){return c.map(function(a){return a.tokenValue(b)})},d=b("%yValue"),e=Math.min.apply(Math,G(d)),f=Math.max.apply(Math,G(d)),g=Wa(d),h=c.length;d=d.join(",");return{xvalue:a.replaceTokens("%xValue"),
ysum:g,sum:g,ylist:d,ymin:e,min:e,ymax:f,count:h,pointcount:h,max:f,colors:b("%color").map(function(b){return og(b).hex}).join(",")}}function jz(c,a,b){void 0===b&&(b="x");var d=c.chartArea.chartAreaSet.series(),e=c.indexer.getValue(b,a._i),f=new Pl,g=0;x(d,function(a){var c=a.indexer.findValue_i(b,e);a=a.indexer.getItem(c);f.indexObject(a,g);g++});c=f.getKey("y");a=f.getKey("z");d=f.hasKey("yr")?"yr":"y";var h=Sb(f,"sum"),k=Sb(f,"sumAbs");return{list:c,sum:h("y"),sumAbs:k("y"),yRangeSum:h(d),yRangeSumAbs:k(d),
zList:a,zSum:h("z"),xSum:h("x"),zSumAbs:k("z"),xSumAbs:k("x"),average:c.length?h("y")/c.length:void 0,zAverage:a.length?h("z")/a.length:void 0}}function xr(c,a,b){var d=b.atribs;if(d)if("function"===typeof d.pop)for(var e=0,f=d.length;e<f;e++){if(c===d[e][0].toLowerCase())return Bi(d[e][1])}else{f=e=void 0;for(var g=c.split("."),h=function(b,a){for(var c=ya(b),d=0,e=c.length;d<e;d++){var f=c[d];if(a===f.toLowerCase())return b[f]}},k=void 0;(f=g.shift())&&t(k=h(e||d,f));)e=k;if(t(e))return Bi(e)}c=
a[c];if(!c)return"INVALID TOKEN";a=c.val?c.val(b):c(b);a!==a&&(a=0);if(!t(a))return"-";C(b.fOptions,"y.isTime")&&c.yVal&&(a=new Date(a));return Bi(a)}function kz(c,a,b){var d=b.fOptions||{},e=","+c+",",f={fStr:d.fStr,culture:d.culture,isTime:d.isTime};return-1<",min,max,average,rangesum,lasty,sum,median,mode,value,ysum,yaverage,ymedian,ymode,ymin,ymax,ymaxsum,maxsum,yminsum,minsum,yrangesum,yvalue,ystart,yrange,open,high,low,close,".indexOf(e)?d.y||f:-1<",xvalue,xsum,xmin,xmax,xmaxsum,xminsum,xaverage,lastx,xrange,lastx,xmode,xmedian".indexOf(e)?
d.x||f:-1<",complete,".indexOf(e)?{fStr:"p",culture:d.y.culture}:-1<",zvalue,zsum,zmin,zmax,zmaxsum,zminsum,zaverage,lastz,zrange,zmode,zmedian,".indexOf(e)?d.z||f:(c=a[c])&&c.axis?{fStr:c.fStr||"n",culture:d[c.axis]?d[c.axis].culture:b.chart?b.chart.currentOptions.defaultCultureName:"en-US"}:b.gOptions?{culture:b.gOptions.cultureName}:f}function Af(c){c=c.token||c.attr||c;return{text:c,result:c&&0<c.length&&(0<=c.indexOf("%")||0<=c.indexOf("{"))}}function yr(c,a,b,d){var e=Af(c);if(!e.result)return e.text;
c=Ci(c,[a,b],d,yr);return Bf(c,lz,{fOptions:d,chart:a.chart,series:a,point:b,sOptions:a.currentOptions,pOptions:b.currentOptions,atribs:b.currentOptions.attributes,yVal:a.ctManager.isType("treemap")?"value":"y",pgCache:jz(a,b),cache:a.getCalcCache(),scCache:a.chartArea.chartAreaSet.getCalcCache(),indexedData:a.indexer.getItem(b._i)})}function zr(c,a,b){var d=Af(c);if(!d.result)return d.text;c=Ci(c,a,b,zr);return Bf(c,mz,{fOptions:b,chart:a.chart,series:a,sOptions:a.currentOptions,atribs:a.currentOptions.attributes,
yVal:a.ctManager.isType("treemap")?"value":"y",cache:a.getCalcCache(),scCache:a.chartArea.chartAreaSet.getCalcCache()})}function Di(c,a,b){var d=Af(c);if(!d.result)return d.text;c=Ci(c,a,b,Di);return Bf(c,nz,{fOptions:b,chart:a.chart,cache:a.getCalcCache()})}function Mg(c,a,b){var d=Af(c);if(!d.result)return d.text;c=Ci(c,a,b,Mg);d=C(a,"value");var e=a.currentOptions||{},f=C(e,"value");f=z(f,e.max,e.min);return Bf(c,oz,{fOptions:b,val:f,item:a,atribs:a.currentOptions.attributes,cache:e,evaluedValue:"function"===
typeof d?a.value():[]})}function Ei(c,a,b){void 0===b&&(b={});var d=Af(c);return d.result?Bf(c,{},{fOptions:b,item:a,atribs:a}):d.text}function Ar(c,a,b,d){for(var e,f,g,h=ya(a),k,l,m=c.toLowerCase(),n=0,p=h.length;n<p;n++){g=h[n];if(-1===(l=c.indexOf("%"))||l===c.length-1||!g)break;e="%"+g;-1<m.toLowerCase().indexOf(e)&&(c=c.replace(new RegExp(e,"gi"),function(c){k=Bi(xr(g,a,b));b.formatApplied=f=kz(g,a,b);d&&(f=null);c=K(k);var e=k;"array"===c?e=k[0]:k=[k];b.formatApplied&&b.formatApplied.isTime&&
(k=B(k,function(b){return new Date(b)}),e=k[0]);f||"date"!==K(e)||(f={fStr:"yyyy-MM-ddTHH:mm:ss.fffffffzzz",culture:"en-US"});return B(k,function(b){return f?Br(b,f.fStr,f):b}).join(3>k.length?"\u2014":" ")}),m=c.toLowerCase())}return c}function Bi(c){return c||t(c)?c:""}function Br(c,a,b){var d=b?b.culture||"en-US":"en-US",e=K(c);return"date"===e?(b=new Cr(d,{formatString:a||""}),Aa(c.getTime())?"Invalid Date":b.formatDate(c,a)):"number"===e?(b&&a&&"c"!==a.toLowerCase()&&!0!==b.fStrStrict&&t(b.precision)&&
b.precision&&(a=ag(c),a="n"+Math.min(a,b.precision)),b=new Cr(d,{formatString:a||""}),b.formatNumber(c,a)):c}function pz(c,a,b){var d=/\{ *[\w\-\(%0-9][^\}\{]+ *: *[^\}\{]+ *\}/,e=/\{ *[\w\-\(%0-9][^\}\{]+ *\}/,f,g;if(!c)return c;for(;!k&&null!==(g=d.exec(c)||e.exec(c));){var h=0;for(f=g.length;h<f;h++){var k=g[h].toString(),l=qz(k,a,b);c=c.replace(k,l);k=l&&O(l)&&Ng(l,"{")}}return c}function qz(c,a,b){var d,e=Hd(c),f=e.indexOf(":"),g=-1<f;if(g){c=e.substring(1,f);var h=Hd(e.substring(f+1,e.length-
1).replace(/^(date)*(number)*/gi,function(b){d=b.toLowerCase();return""}))}else c=e.substring(1,e.length-1);c=Ar(Hd(c),a,b,!0);e=c.match(Ql);a=!1;if(e&&(e=e.length)){a=!0;var k=1===e?"date":"number"}h||(h=C(b,"formatApplied.fStr"));e=c;a&&(e=c.replace(Ql,function(b){return Date.parse(b)}));a=!0;if(/[\+-\/\*\^%]+/.test(e))try{c=Yj('"strict mode";(f{r/**/;f days{rn/86400000;}f weeks{rn/604800000;}f years{rn/31536000000;}f hours{rn/3600000;}f minutes{rn/60000;}f seconds{rn/(1000);}}())'.replace(/f/g,
"function").replace(/\{r/g,"(n){return ").replace("/**/",e))}catch(l){a=!1}(k=d||k)?"date"===k?c=Aa((new Date(c)).getTime())?new Date(parseFloat(c)):new Date(Date.parse(c)):"number"===k&&(c.valueOf&&(c=c.valueOf()),c=parseFloat(c)):"string"===typeof c?fk(c)?c=parseFloat(c):Ql.test(c)&&(c=new Date(Date.parse(c))):"number"!==typeof c||h||(h="n:"+Math.min(ag(c),3));return a?h?Br(c,h,b.formatApplied||{culture:J(b.fOptions,["culture"])}):c:"{"+c+(g?":"+h:"")+"}"}function Bf(c,a,b){var d=c&&c.attr,e=b.atribs,
f=a;if(c.token)return xr(c.token.slice(1).toLowerCase(),f,b);d&&(c=c.attr);c=c.replace(/\\\\/g,"##@@@!@##").replace(/\\\{/g,"!!@@#@#@@!").replace(/\\\}/g,"###@!@!#@").replace(/\\%/g,"#@@!@##@");if(e){f=e.pop?e:~c.indexOf(".")?Yn(e,"."):ya(e);var g=!!e.pop,h={};x(f,function(b){h[(g?b[0]:b).toLowerCase()]=void 0});f=d?h:M(h,a)}c=pz(c,f,b);c=Ar(c,f,b);return c.replace(/##@@@!@##/g,"\\").replace(/!!@@#@#@@!/g,"{").replace(/###@!@!#@/g,"}").replace(/#@@!@##@/g,"%")}function Ci(c,a,b,d){var e;if("string"===
typeof c&&-1<c.indexOf("<")){var f=c.match(Dr);if(f){b=function(b){b=A({},b);var a=function(b){b&&!b.isTime&&(b.fStr="d")};a(b.x);a(b.y);a(b.z);return b}(b);try{for(var g=xa(f),h=g.next();!h.done;h=g.next()){var k=h.value;c=a.pop?c.replace(k,"<"+d(k.replace("<",""),a[0],a[1],b)):c.replace(k,"<"+d(k.replace("<",""),a,b))}}catch(m){var l={error:m}}finally{try{h&&!h.done&&(e=g.return)&&e.call(g)}finally{if(l)throw l.error;}}}}return c}function Er(c,a,b){var d=Fr(c),e=a[1],f=Fi(c);c=Pb(f);b||(b=vg(f,
f.hasCurves));f=Math.max(c[2],c[3]);var g=[],h=c[1]+1;try{for(;h+e<c[1]+c[3]-2;){var k=Gr(d,h,e);k&&k[2]>=a[0]&&g.push([f-Mb(va(k),b),k]);h+=1}}catch(m){}if(g.length){g.sort(function(b,a){return b[0]<a[0]?-1:b[0]>a[0]?1:0}).reverse();var l=g[0][1]}l&&(l=ob(va(l),a));return l}function Fr(c){var a=Fi(c);a=Pb(a);a=Math.floor(a[3]/3);c=Fi(c);return rz(c,a)}function Fi(c){var a,b=0;x(c.shapes,function(c){var d=Pb(c);d=d[2]*d[3];d>=b&&(b=d,a=c)});return a}function rz(c,a){var b=[],d=Pb(c),e=d[0]-50,f=d[0]+
d[2]+50,g=d[1],h=d[3];d=function(b){b=g+b*h;return[[e,b],[f,b]]};var k=function(b){for(var a=[],c=function(b){for(var c=0,d=a.length;c<d;c++)if(bb(a[c],b))return!1;return!0},d=0,g=b.length;d<g;d++){var h=b[d];h=[Math.round(h.intersect.x),Math.round(h.intersect.y)];c(h)&&h[0]>e&&h[0]<f&&a.push(h)}a.sort(function(b,a){return b[0]<a[0]?-1:b[0]>a[0]?1:0});2<a.length&&(a=[a[0],a[a.length-1]]);1===a.length&&a.push(a[0]);return a};a=Math.abs(.9998/(a-1));for(var l=1E-4;1>l;l+=a){var m=d(l);m=Zh(c,m[0],m[1]);
b.push(k(m))}return b}function sz(c,a){return{scans:Hr(c.scans,function(b){return[T(a[0],a[0]+a[2],0,1,b[0]),T(a[1],a[1]+a[3],0,1,b[1])]}),pathBBox:a}}function Hr(c,a){for(var b=[],d=0,e=c.length;d<e;d++){for(var f=c[d],g=[],h=0,k=f.length;h<k;h++)g.push(a(f[h]));b.push(g)}return b}function Gr(c,a,b){b=a+b;for(var d,e,f=function(b){return[[T(d[0][0],e[0][0],d[0][1],e[0][1],b),b],[T(d[1][0],e[1][0],d[1][1],e[1][1],b),b]]},g,h,k=0,l=c.length-1;k<l;k++){d=c[k];e=c[k+1];var m=d[0][1],n=e[0][1];!g&&a>=
m&&a<=n&&(g=f(a));!h&&b>=m&&b<=n&&(h=f(b));if(g&&h)break}if(h&&g)return c=Math.max(g[0][0],h[0][0]),[c,a,Math.min(g[1][0],h[1][0])-c,b-a]}function tz(c){var a=ta(c.chartItems(),function(b){return z(b.currentOptions.sortOrder,b.currentOptions.order,0)}),b=[[],[],[],[]],d={},e={casMargin:[0,0,0,0],overflows:[0,0,0,0],max:[0,0,0,0],itemsToTune:a,aggr:d},f=c.chart.rootVisuals.itemsBox.getGlobalBboxArray(),g=!0;x(a,function(a){if(!a.currentOptions.asHTML){var c=F(Og(a),3),e=c[0],h=c[1];c=c[2];a.isMeasured=
!1;if(!e&&!c.isIn){var k=Ir(a,h,c,d,f);k&&x(c.pos,function(a,c){a&&b[c].push(k)&&(g=!1)})}}});if(g)return e;var h=c.items,k=B(h,function(b){return b.overflows}),l=[function(){var b=h[0].rootVisuals.titleBox.rootPanel.setPreliminarySize().getGlobalBboxArray();return b[2]&&b[3]?0:k[0][0]},function(){return ra(B(k,function(b){return b[1]}))},function(){return Q(k)[2]},function(){return ra(B(k,function(b){return b[3]}))}];c=function(a){var c=b[a];if(!c.length)return 0;var d=0;x(c,function(b){return d=
Math.max(d,b[uz[a]])});c=l[a]();d=c>d?c:d;e.overflows[a]=c;return(e.max[a]=d)&&Math.max(d-c,0)};e.casMargin=[c(0),c(1),c(2),c(3)];return e}function vz(c,a){var b={},d=c.items,e=d[0],f=c.chart.rootVisuals.itemsBox,g=f.getGlobalBboxArray(),h=function(){var b=B(d,function(b){return b.getContentGlobalBbox()});return Ha(b)};h=1<d.length?h():e.getContentGlobalBbox();c=c.measureResult;var k=[g[0]+c.max[3],g[1]+c.max[0],g[2]-c.max[1]-c.max[3],g[3]-c.max[2]-c.max[0]];e=e.getContentGlobalBbox();var l=c.aggr,
m=[g,k,h,e,[k[0],h[1],k[2],h[3]],[h[0],k[1],h[2],k[3]]];x(c.itemsToTune,function(b){if(!b.isMeasured){var a=F(Og(b),3),c=a[2];Ir(b,a[1],c,l,m[c.alignBoxIndex])}});var n={};l.tltl&&l.tltl.total[0]>e[2]?n.tltl={direction:1,align:[-1,0]}:l.blbl&&l.blbl.total[0]>e[2]&&(n.blbl={direction:1,align:[-1,0]});f.update();x(c.itemsToTune,function(c){var d=c.rootPanel,e=d.getGlobalBboxArray?d.getGlobalBboxArray(!0):c.bbox(!0);if(e[2]||e[3]){d.isHtml?(e[0]-=parseFloat(d.attr("left")),e[1]-=parseFloat(d.attr("top"))):
(e[0]-=d.offsetX,e[1]-=d.offsetY);var f=F(Og(c),3),g=f[0],h=f[1];f=f[2];!g&&n[h]&&(f=X(f,n[h]));e=wz(e,m,g,h,f,b,l[h]);if(g=c.options("offset"))g=g.split(","),e[0]+=parseInt(g[0])||0,e[1]+=parseInt(g[1])||0;g=a&&a.animation;d.attr(d.isHtml?{left:e[0]+"px",top:e[1]+"px"}:{offsetX:e[0],offsetY:e[1],animation:g});c.positionUpdated(m[pb(f)?f:f.alignBoxIndex])}})}function wz(c,a,b,d,e,f,g){void 0===g&&(g={total:[0,0],max:[0,0]});if(b)return[d[0]+a[e][0]-c[0],d[1]+a[e][1]-c[1]];b=F(a,3);var h=b[0],k=b[2],
l=[],m=[],n=f[d],p=e.direction,q=e.align,r=e.stackAlign;b=function(b,a){a=a(b);var e=f[d];if(!e[b]){e[b]=[];var g=0===p?1:0;e[b][g]=m[b][g]+1*(c[b]+c[b+2]*(0<(b===g?1:0)?1:b!==g?.5+q[b]/2:0))-(.5+r[b]/2)*c[b+2]*(b===g?1:0)}e[b][p]=a+1*(c[b]+c[b+2]*(0<(b===p?1:0)?1:b!==p?.5+q[b]/2:0));return a};var u=function(b){return n[b][p]+-1*(c[b]+c[b+2]*(0<-1*(b===p?1:0)?1:b!==p?.5+q[b]/2:0))},y=function(b){var a=l[b];m[b]=[v(b,a,0),v(b,a,1)];a=m[b][p];var d=m[b];if(!e.checkBorder[b]&&c[b+2]<=k[b+2])b=a;else{var f=
c[b+2],g=h[b],n=k[b];a=c[b]+a;var q=g+h[b+2];a<g&&(a=n);a+f>q&&(a=n+k[b+2]-f,a<g&&(a=q/2-f/2));b=a-c[b]}return d[p]=b},v=function(b,a,d){d=b!==d?1:-1;var e=.5+r[b]/2;return a+((0<d?g.max[b]||c[b+2]:g.total[b])-c[b+2])*d*(0<d?.5+q[b]/2-e:e)};n||(l=qk(c,a[e.alignBoxIndex],pc.default(d,"tltr")),f[d]=[]);return[b(0,n?u:y),b(1,n?u:y)]}function Og(c){return c._posInfo_=c._posInfo_||Jr(c.currentOptions)}function Jr(c){var a=c.position||"bltl";if(a.push)return[1,a,0];var b=function(b){return parseFloat(b)},
d=function(b,a){var d=F(b,4),e=d[0],f=d[1],g=d[2];d=d[3];var h=e===g&&f===d,q=["t"===g&&("b"===e||"m"===e||h)&&1,"r"===d&&("l"===f||"c"===f||h)&&1,"b"===g&&("t"===e||"m"===e||h)&&1,"l"===d&&("r"===f||"c"===f||h)&&1],r=h?3:1<Wa(q)?1:q[0]||q[2]?5:4;e={isIn:h,pos:q,alignBoxIndex:r,checkBorder:[f===d&&"c"===f,e===g&&"m"===e],direction:h?"m"===g?1:0:5!==r?1:0,align:["l"===f?-1:"r"===f?1:0,0],stackAlign:["l"===f?-1:"r"===f?1:0,"t"===e?-1:"b"===e?1:0]};e.direction=z(c.direction,a,e.direction);e.align=z(c.alignment,
e.align);H(c,"fixed")&&(e.stackAlign=[-1,-1]);return[0,b,e]};a=a.toLowerCase().trim();if(4===a.length&&"left"!==a&&!xz.test(a))return d(a);a=a.replace("ca:","inside ").replace("ca","inside top left").trim();var e=a.split(",");if(1<e.length)return d=e[0],(a=0===d.indexOf("inside"))&&(e[0]=d.substring(6)),[1,e.map(b),a?3:0];if("center"===a)return d=d("mcmc"),d[2].isIn=!1,d[2].alignBoxIndex=2,d;b=a.split(" ");e="inside"===b[0]?1:0;var f=b.join("");f=f.length===a.length?yz[f]||f:f;return d(zz[f]||"bltl",
Az[b[e]])}function Ir(c,a,b,d,e){e=c.measure(e);b=b.direction;var f=!d[a];a=d[a]=d[a]||{total:[0,0],max:[0,0]};if(!e[2]&&!e[3])return null;!f&&b||(a.total[0]+=e[2]);(f||b)&&(a.total[1]+=e[3]);(f||b)&&c.isVisible&&a.max[0]<e[2]&&(a.max[0]=e[2]);(f||!b)&&c.isVisible&&a.max[1]<e[3]&&(a.max[1]=e[3]);return e}function Kr(c){return Lr[P((c||"topRight").toLowerCase().split(" "),function(a){return Lr[a]})]}function Mr(c){var a=c.trim().toLowerCase();return 0===a.indexOf("ca")||0===a.indexOf("inside")?a.match(Bz)?
"caAlign":"caOffset":Cz.test(c)?"absolute":"position"}function Dz(c){var a=c.chart,b=c.collisionManager,d=ha(c.rootVisuals.content.getGlobalBbox());d=[-d[0],-d[1]];var e=function(a){a.isVisible&&b.addLabelBox(Hc(a.getBounds(),d))};b.reset();a.uiItems&&a.uiItems().each(e);a.annotations().each(e);Mr(c.legend.currentOptions.position).match("caOffset|caAlign|absolute")&&(c=c.legend.getBounds(),b.addLabelBox(Hc(c,d)))}function Gi(c){var a=new Function("getter","return "+JSON.stringify(c)+";"),b=Ez(c);
return b.length?function(){var c=a(),e;try{for(var f=xa(b),g=f.next();!g.done;g=f.next()){var h=g.value;Y(c,h[0],h[1])}}catch(l){var k={error:l}}finally{try{g&&!g.done&&(e=f.return)&&e.call(f)}finally{if(k)throw k.error;}}return c}:a}function Nr(c,a){var b=K(a);c=c.currentOptions;return"undefined"===b?c:"string"===b?-1<a.indexOf(".")||-1<a.indexOf("_")?C(c,a.replace(/_/g,".")):c[a]:"NotGetter"}function Or(c){if(!c.currentOptions.colorsValueRange)var a=1>=c.stopRange&&0<=c.stopExtremes[0]&&1>=c.stopExtremes[1],
b=1>=c.dataRange&&0<=c.extremes[0]&&1>=c.extremes[1];return{stopPerc:a,dataPerc:b}}function od(c,a,b){return c&&c.pixelCorrection?c.snap(a,b):a}function pd(c,a,b){if(!c||!c.pixelCorrection)return a;c=od(c,[a[0],a[1],b,b],b);return[c[0],c[1]]}function Be(c,a,b){return c&&c.pixelCorrection?B(a,function(a){return pd(c,a,b)}):a}function Pr(c,a,b,d){if(!c||!c.pixelCorrection)return a;d=t(d)?d:b/2;var e=a[0],f=a[1],g=F(e,2);e=g[0];g=g[1];var h=F(f,2);f=h[0];h=h[1];return e===f?(a=!1,g>h&&(a=g,g=h,h=a,a=
!0),g+=d,e=[e,g,0,h-d-g],c=od(c,e,b),e=[c[0],c[1]-d],f=[c[0],c[1]+c[3]+d],a?[f,e]:[e,f]):g===h?(a=!1,e>f&&(a=e,e=f,f=a,a=!0),e+=d,e=[e,g,f-d-e,0],c=od(c,e,b),e=[c[0]-d,c[1]],f=[c[0]+c[2]+d,c[1]],a?[f,e]:[e,f]):a}function Rl(c){return new Fz(c)}function Md(c){c.type="panel";return c}function Ce(c){c.width="*";c.height="*";return c}function Hi(c,a,b,d){return{xAlignment:c,yAlignment:a,offsetX:b,offsetY:d}}function Sl(c,a){c=c.rootVisuals;var b;(b=a[3])&&c.leftOverflow.attr({width:b});(b=a[0])&&c.topOverflow.attr({height:b});
(b=a[1])&&c.rightOverflow.attr({width:b});(b=a[2])&&c.bottomOverflow.attr({height:b})}function Qr(c){var a=function(){var b=[0,0],a=[0,0];c.axes().each(function(c){var d=c.overflowSize.tL;c=c.overflowSize.bR;b[0]=Math.max(b[0],d[0]);b[1]=Math.max(b[1],d[1]);a[0]=Math.max(a[0],c[0]);a[1]=Math.max(a[1],c[1])});return[b[1],a[0],a[1],b[0]]},b=function(){var b=[0,0,0,0];c.axes().each(function(a){b[a.sideIndex()]+=a.sideDepth()});return b},d,e=function(){var e=[0,0,0,0],g=a(),h=c.chart.currentOptions.extraOverflows||
[0,0,0,0],k=(c.currentOptions.extraOverflows||[0,0,0,0]).map(function(b,a){return b+h[a]});d=b();x(g,function(b,a){e[a]=Math.max(g[a]+k[a]-d[a],0)});return e}();c.overflows=e;c.axSizes=d;return e}function Rr(c){var a=c.overflows=Qr(c);Sl(c,a);return a}function Tl(c,a,b){function d(b,a,c){var d=b.series,f=d.currentOptions.pointSelection||{};c=f.max;d=d.chart;if(pb(c))if(f=d._sMaxList,a)if(f&&f.length+1>c){for(;f.length+1>c;)e(f.shift());f.push(b)}else d._sMaxList=f=f||[],P(f,function(a){return a.id===
b.id})||f.push(b);else jb(f,b);else d._sMaxList=[],a&&"single"===f&&(d._sMaxList=[b])}function e(b){b.legendEntry&&b.legendEntry.updateCheckbox(!1);Ul(b,!1);b.setState("")}var f=c.chart,g=c.series.currentOptions.pointSelection,h=t(g)?g:!1;h&&d(c,a);f.isRendered?(c.setState(a?"select":""),h&&(a&&c.series.chartArea.series().points().items.forEach(function(a){var d;if(d=a.selected)a:{if(a.selected){if(a._i===c._i&&a===c){d=void 0;break a}"multiple"===h||pb(h.max)||("single"===h?e(a):!b&&e(a))}d=void 0}return d}),
c.legendEntry&&c.legendEntry.updateCheckbox(a),Ul(c,a))):a&&(c.selected=!0)}function Ul(c,a){c.currentOptions.selected=a;c.userOptions.selected=a}function Vl(c,a,b){var d,e,f;b=t(b)?b:c.userPoints.length;0===a&&(d=c.currentOptions.firstPoint)?f=d:a===b-1&&(e=c.currentOptions.lastPoint)&&(f=A({},f||{},e));c._defPointGen||(c._defPointGen=Gi(A({label:{placement:"auto",style:{fontFamily:"tahoma, geneva, sans-serif",fontSize:"12px"}}},c.currentOptions.defaultPoint)));c=c._defPointGen();return f?A(c,f):
c}function Wl(c){c=c.currentOptions;!0===c.muted&&!1===C(c,"states.mute.enabled")&&(c.muted=!1);!0===c.selected&&!1===C(c,"states.select.enabled")&&(c.selected=!1)}function Xl(c,a){var b,d;!1===(null===(d=null===(b=c.currentOptions.states)||void 0===b?void 0:b[a])||void 0===d?void 0:d.enabled)&&(a=t(c.state)&&c.state!==a?c.state:"");return a}function Ii(c,a,b,d){function e(b,a){if(void 0!==(g=K(f=a))&&"undefined"!==g)if(b="c"===b[0]?b.replace("complete.y","complete").replace("complete.x","completeX"):
b,a=""+b,"array"===g){if(2!==f.length)throw"value array can only have 2 items.";K(f[0]);b=f[0];K(f[1]);var d=f[1];h[a+"e"]=d;h[a+"s"]=b;h[a+"r"]=d-b;h[a+"a"]=(d+b)/2}else"null"===g&&"y"===b?"treataszero"===c.currentOptions.emptyPointMode?h.y=0:h.isEmpty=!0:h[a]=f}for(var f,g,h={},k=a.name,l=0,m=b.length;l<m;l++){var n=b[l];-1<n.indexOf(".")?e(n,C(a,n)):e(n,a[n])}!0!==d&&A(h,Gz(a,h));Y(h,"cpbIndex",a.cpbIndex);x(Sr,function(b){return Y(h,b,a[b])});h.x=a.map?z(h.x,k):t(h.x)?h.x:t(a.x)?void 0:k;t(h.x)||
t(h.xr)||(h.x=a._i);return h}function Gz(c,a){function b(b,c,e){var l={};e="sv"+e;p=a[c];t(p)||(p=a[c+"e"]);n=U(m=a[c+"s"])?m=p:p-m;(f=b.range)&&d(l,(e+"s,"+e).split(","),f);(h=b.offset)&&d(l,(e+"s,"+e).split(","),[m-h,p+h]);if(g=b.percent)h=g/100*n,d(l,(e+"s,"+e).split(","),[m-h,p+h]);if(k=b.values)l[e+"v"]=k;return l}function d(b,a,c){for(var d=0,e=a.length;d<e;d++)b[a[d]]=c[d]}var e,f,g,h,k,l={},m,n,p;(e=c.subvalue)&&A(l,b(e,"y",""));(e=c.subvalueX)&&A(l,b(e,"x","x"));return l}function Tr(c,a){return c.map(function(b){return Ji(b,
a)})}function Ji(c,a){return{_i:c.indexer.findValue_i("x",a.value),series:c}}function Ur(c,a){var b=[];c.forEach(function(c){b.push.apply(b,G(Hz(c,a)))});return b}function Hz(c,a){for(var b=[],d=0;;)if(d=c.indexer.findValue_i("x",a.value,d),t(d))b.push({_i:d,series:c}),d++;else break;return b}function Iz(c){return(c=c&&c.info.type)&&(c.isShape||c.isPie||c.colorByPoint)?"point":"series"}function Yl(c){if((c=c.currentOptions.hoverAction)&&"none"!==c)return c.toLowerCase().replace("highlight","").replace("pointgroup",
"group")}function Zl(c,a,b){var d="Point"===c.kind,e=d?c.series:c,f=d?c:void 0,g=e.chart;b=b&&"auto"!==b?b:Iz(e);d||"point"!==b||(b="series");b&&"none"!==b&&(g.highlighted=c);g.series().items.forEach(function(c){c.isVisible&&(c!==e&&"group"!==b?Pg(c,"mute"):"point"===b?Pg(c,"mute",f):"group"===b?Pg(c,"mute",Jz(f)):Pg(c,z(a,""),f))})}function Tb(c,a){c.renderer.renderer.isRootDestroyed()||(c.series().items.forEach(function(b){b.isVisible&&Pg(b,"",a,!0)}),c.highlighted=void 0)}function Pg(c,a,b,d){if(c.isVisible){if(d){var e=
c.getAnimationConfig();e&&0!==e.duration&&(e.duration=Math.min(230,e.duration));var f={animation:e}}else f={continueAnimation:!1};if(b&&b.pop)c.points().each(function(c){"select"!==c._state&&(ee(b,c)?c.setState("",f):c.setState(a,f))});else{var g=""===a;b&&b.series===c&&c.state===a||"select"===c.state||(c.visualizer.debounce.clear("unhoverline"),c.setState(a,f));c.points().each(function(c){(c!==b||"mute"===c._state&&g)&&"select"!==c._state&&c.setState(a,f)})}d&&c.chartArea.ignoreAnimationFor(f.animation.duration)}}
function Jz(c){var a=c.series,b=a.chartArea.series().items;return Tr(b,{value:a.indexer.getValue("x",c._i)}).map(function(b){return b.series._points[b._i]})}function Vr(c,a){var b=c.series,d=b.rootVisuals,e=b.info.type,f=b.info.style,g={},h=!0!==b.xAxis.options("crosshair.enabled")&&!0!==b.yAxis.options("crosshair.enabled")&&!1!==b.options("mouseTracking.enabled")&&!1!==b.options("states.hover.enabled");f=f.attr.line;if(e.drawLine&&c.coordinates.line){var k=c.paths.lines?c.paths.lines.join(" ").replace(/,/g,
" "):zg(c.coordinates.line).join(" ");g.pathAnimation={type:"line",shift:null===a||void 0===a?void 0:a.shift}}""!==b.state&&(f=b.getStateAttrs(b.state).line);return{d:k,state:f,shapeName:"line",target:d.line,zIndex:b.zIndex+gb.series,visGetter:function(){return b.visuals.line},visSetter:function(a){return b.visuals.line=a},animation:g,events:h?{mouseover:function(a){b.visualizer.debounce.run("unhoverline");"select"!==b.state&&b.setState("hover")},mouseout:function(a){b.visualizer.debounce.defer("unhoverline",
function(){"select"!==b.state&&"mute"!==b.state&&b.setState("")},150)}}:{}}}function Ki(c,a,b,d){var e=a[0],f=a[1];a=Math.min.apply(Math,G(a));e=qg(e/2,f/2,a,a);b=d||c.series.getPointMarkerType(b&&b.currentOptions?b.currentOptions:b);0===c.series.getPointAttr().pointAttr[""].r&&(b="none");return{base:0===b.indexOf("url")?b:Nd(b,e.x,e.y,a,a)}}function Nd(c,a,b,d,e,f){return pq(c.name?c.name:c,a,b,d,e,f)}function Wr(c,a,b){var d=c.series,e=a[0],f=a[1];d=d.ctManager.settingVal("lineSeriesType",d.currentOptions);
c=Ki(c,a,b);switch(d){case "spline":e="M0 "+f+" C "+.2*e+" 0   "+.8*e+" "+1*f+"   "+e+" 0";break;case "step":e="M0 "+f+" L "+.5*e+" "+f+"   "+.5*e+" 0   "+e+" 0";break;default:e="M0 "+f+" L "+e+" 0"}c.extra=e;return c}function $l(c,a,b){var d={base:sc.rectangle(0,0,a[0],a[1],{r:2,corners:["round","round","round","round"]})};b&&(c.series.options("forceMarker")||!0===J(b.currentOptions,["marker","visible"]))&&(d.extra=c.getBodyShapeName(b,!0),O(d.extra)&&-1===d.extra.indexOf("url")&&(d.extra=Nd(d.extra,
0,0,a[0],a[1])));return d}function am(c,a,b,d){var e=b.rect;if(!e)return"";c=c.series;var f=c.ctManager,g=c.ctSvIs("seriesType","candlestick");e=ha(e);var h=a.currentOptions.marker||{};if((0===e[2]||0===e[3])&&!0===h.visible)return d=b.styleSet.markerSize,b.meta.shape=ob(b.xyz,[d,d]),"";f=f.isHoriz()?2:3;1>e[f]&&(g||0<e[f])&&(e[f]=1,2===f&&--e[0]);g=z(J(a.currentOptions,["outline","width"]),1);d=od(d,e,g);d.id=a.id;f=(g=c.ctmIsType("gauge"))?c.pane.isHoriz:c.chartArea.isHoriz;if(g&&c.ctSvIs("columnType",
"roundcaps")){a=d[0];c=d[1];g=d[2];e=d[3];f={caps:f?{left:"round",right:"round"}:{top:"round",bottom:"round"}};void 0===f&&(f={});f=f.caps;var k=Math.PI/2;if(f){h=g/2;var l=e/2,m=["M",a,c];f.top?m.push.apply(m,G(Mc(a+h,c,h,2*k,0))):m.push.apply(m,G(["L",a+g,c]));f.right?m.push.apply(m,G(Mc(a+g,c+l,l,-k,k))):m.push.apply(m,G(["L",a+g,c+e]));f.bottom?m.push.apply(m,G(Mc(a+h,c+e,h,0,2*k))):m.push.apply(m,G(["L",a,c+e]));f.left?m.push.apply(m,G(Mc(a,c+l,l,k,-k))):m.push("Z");a=m}else a=fi(a,c,g,e)}else d[2]&&
d[3]?(c=Kz(c.indexer.getValue("pos",a._i),f,a),a=Lz(Xr(d),c,Mz(d[2],d[3],c,a))):a=sc.none(d[0],d[1]);Y(b,"collision.body",d);return wa(a)}function Lz(c,a,b){return nq(c,a.map(function(a){return a?b:0}))}function Kz(c,a,b){var d,e=a?[1,0,0,1]:[1,1,0,0],f=a?[0,1,1,0]:[0,0,1,1],g=b.series,h=g.yAxis.isInverted();if(g.yAxis.isStacked()||g.yAxis.isStackedFull()){a=g.xAxis.dpsStackInfo;try{for(var k=xa(a),l=k.next();!l.done;l=k.next()){var m=l.value,n=m.topNegative;if(P(m.topPositive,function(a){return a&&
a.series._i===g._i&&a._i===b._i}))return h?f:e;if(P(n,function(a){return a&&a.series._i===g._i&&a._i===b._i}))return h?e:f}}catch(q){var p={error:q}}finally{try{l&&!l.done&&(d=k.return)&&d.call(k)}finally{if(p)throw p.error;}}return[0,0,0,0]}if(p=b.series.xAxis.dpsStackInfoZ)if(p=p[b.series._i+"-"+b._i])return p.startTouches&&p.endTouches?[0,0,0,0]:p.startTouches?h?f:e:p.endTouches?h?e:f:[1,1,1,1];e=a?[1,0,0,1]:[0,0,1,1];f=a?[0,1,1,0]:[1,1,0,0];d=a?0:1;h=c.xyz[d];p=c.xyzs[d];c=c.xyzOrigins[d];return h===
c||p===c?(a?h<p:h>p)?e:f:[1,1,1,1]}function Mz(c,a,b,d){var e=b.reduce(function(b,a){return b+a});return e?(b=5,c=Math.min(c,a),a=Math.round(c/(2===e?2:4)),d=d.currentOptions.radius,"number"===typeof d?b=Math.min(d,c/2):(150<c?b=8:6>c?b=1:10>c?b=2:15>c?b=3:25>c&&(b=4),b=Math.min(b,a)),b):0}function Yr(c,a,b){var d,e=[];if(c){var f=c.label;b=c.defaultLabel}else return{cxy:k,size:e,innerSize:l,offset:m,innerPadding:n};var g=ha(a);a=Math.min(a.width,a.height);var h;if(d=c.center){var k=F(d.split(","),
2);d=k[1];k=[db(k[0],g[2]),db(d,g[3])]}if("undefined"!==(h=K(d=c.size)))switch(h){case "string":d=F(d.split(","),2);e=d[0];d=d[1];e=[db(e,a),db(d,a)];break;case "array":a=F(d,2);e=a[0];d=a[1];e=[db(e,g[2]),db(d,g[3])];break;default:e=db(d,a),e=[e,e]}if(d=c.innerSize)var l=db(d,1);if(d=c.offset){var m=F(d.split(","),2);a=m[1];m=[db(m[0],g[2]),db(a,g[3])]}if(d=c.innerPadding)var n=db(d,1);f&&c.defaultLabel&&(f.pop?x(f,function(b,a){return f[a]=A({},c.defaultLabel,b)}):f=A({},c.defaultLabel,f));return{cxy:k,
size:e,innerSize:l,offset:m,innerPadding:n,defaultLabel:b,label:f}}function Zr(c,a,b){var d=b.xAlignment;b=b.yAlignment;return yo(c,a,d,d,b,b)}function Nz(c,a,b,d,e,f){var g=c.series,h=d.meta,k=a.visuals,l=a.currentOptions.label,m,n=g.pane||g.chartArea;a.labelAutoHidden=!1;var p=n.collisionManager,q=function(b,d){var e=c.collidePointBoxes?b:Zr(h.labelTextBox,b,h.labelAttr);if(d?!p.collideLabels(e):!p.collideAll(e,a.id))return h.shape&&Cd(h.shape,va(b))&&!dd(h.shape,b)?!1:!0},r=function(b){return q(b,
!0)};c.initPointLabel(a,d,b,f);k=c.getLabelWrapper(k.label,b);n=h.labelSize.slice(0);var u=c.possibleLabelPositions(a,"",b,d,e);e=h.labelAttr;d.meta.label=void 0;d.meta.labelPossible=u;r=P(u,function(b){return q(b,!1)})||P(u,r);d.meta.isVertical&&(m=!0);r||!1!==b.label.autoHide||(u.length?r=u[0]:(r=h.xy,h.shape&&(r=va(h.shape)),r=[r[0]-n[0]/2,r[1]-n[1]/2,n[0],n[1]],u=[r]));u[0]&&(r||c.isRadial)?((d=d.meta.label=r||u[0])&&d.rotate&&!t(e.rotate)&&(e.rotate=d.rotate),t(e.rotate)&&pb(e.rotate)?(r=va(d),
A(e,{x:r[0]-n[0]/2,y:r[1]-n[1]/2}),e.rotate=[e.rotate,n[0]/2,n[1]/2]):m?(r=va(d),A(e,{x:r[0]-n[0]/2,y:r[1]-n[1]/2}),e.rotate=[-90,n[0]/2,n[1]/2]):(A(e,{x:d[0],y:d[1]}),e.rotate=[0,0,0]),e=c.render_applyDynamicAttrVals([e,{zIndex:g.zIndex+gb.label}],f),e.zIndex=g.zIndex+gb.label,(c.hcLabelsOnly||d.isInside)&&b.label.hcColor&&(e.fill=b.label.hcColor,(g=J(l,["outline","color"]))&&pg(g)&&(e.stroke=og(te(e.fill,g)).hex)),k.attr(e)):(u.length&&(b=u[0],k.attr({x:b[0],y:b[1]})),c.hideVisual(k),h.autoHidden=
!0,a.labelAutoHidden=!0,oa.emit("tip",g.name||"","pLabelHidden",{data:[g.name||g.currentOptions.id||" ",$r(h.labelText,10)],container:g.chartArea.chart.getWrapper()}))}function Oz(c,a,b,d,e,f){var g=c.series;b=g.isVisible;d=!1===(a.currentOptions.label||{}).autoHide;var h=e.meta,k=ha(c.series.contentRect()),l=0,m=h.labelSize,n=h.labelObstacles;h.marker&&(l=e.meta.marker[2]);h=Pz;("line"===c.kind||"area"===c.kind)&&g.ctSvIs("lineSeriesType","step")&&(h=Qz);e=ob(e.xyz,[l,l]);var p=h(c,e,n,a._i,f);e=
Rz(c,a);x(e,function(b){var a="o"===b.align[0],c="o"===b.vAlign[0];a=(-1<b.align.indexOf("left")||-1<b.align.indexOf("right"))&&(-1<b.vAlign.indexOf("top")||-1<b.vAlign.indexOf("bottom"))&&p.outCorner?p.outCorner:a||c?p.out:p.in;b.box=le(G([0,0],m),a,b.align,b.vAlign).box});e=b&&d?ta(e,function(b){return!dd(k,b.box)}):b?ea(e,function(b){return dd(k,b.box)}):e;g=g.info.type.drawArea&&!c.isRadial?Sz:g.info.type.drawLine&&0===n.length?Tz:Uz;e.length&&(e=g(e,c,a,p,f));b&&d&&(e=ta(e,function(b){return!dd(k,
b.box)}));return B(e,function(b){return b.box})}function as(c,a){var b=c.series;c=b.info.style.base;a=b.info.type.drawMarker;var d=b.getUniqueColors(3);1<d.length?(d.push(0),c=dc(d)):c=c.color;b=b.currentOptions.defaultPoint||{};d=b.marker||{};a=a?A({},b,d):b;b=z(a.fill,a.color,"currentColor");d=z(J(a,["outline","color"]),a.color,"outline");var e=z(J(a,["outline","width"]),1);b={fill:da(b,c),stroke:da(d,c),"stroke-width":ua(e,0,3)};a.hatch&&(b.hatch=da(a.hatch,c),b.hatchPattern=a.hatchPattern);return{base:b}}
function Vz(c,a,b,d,e,f){var g=b.xyz,h=c.series,k;c=c.getBodyShapeName(a);var l=b.rect;if("string"===typeof c&&xb(c,"url("))return c;if(!(k=b.path)){k=z(e,5);e=a.currentOptions.marker||{};l||(l=qg(g[0],g[1],2*k,2*k));if(k=bs(e.offset))l=ip(Ra(l),k[0],k[1]);g=b.meta.snappedBox=[l.x,l.y,l.width,l.height];c&&!~Wz.indexOf(c)&&(k=J(e,["outline","width"])||1,g=b.meta.snappedBox=od(d,g,k));b.path?k=b.path:(d=h.pointBodyDGenerator,0===l.width&&0===l.height&&(c="none"),k=d&&d(c,b),k||((k=Nd(c,g[0],g[1],g[2],
g[3]))||(k=Nd("none",g[0],g[1],g[2],g[3])),"none"!==c&&(d=e.rotate,O(d)&&-1<d.indexOf("%")&&(d=parseFloat(a.replaceTokens(d))),d&&(a="auto"===d?J(b,["arc","angle"]):d,"circle"!==c&&(k=(k.isPath?k:Ca(k)).rotate(a+90))))));f&&(b.meta.marker=ha(l))}return wa(k)}function Xz(c,a,b,d,e){var f=b.xyz,g=b.xyzs;d=z(d,5);var h=c.series.xAxis;f=[h&&h.isStackedFull()?(f[0]+g[0])/2:f[0],f[1]];if("string"===typeof a&&xb(a,"url("))return a;e=pd(e,f,1);e=qg(e[0],e[1],2*d,2*d);e=(e=Nd(a,e.x,e.y,e.width,e.height))?
e.pop?wa(e):e:"M0 0";d=J(c.currentOptions,["marker","rotate"]);O(d)&&-1<d.indexOf("%")&&(d=parseFloat(c.replaceTokens(d)));d&&"circle"!==a&&(c="auto"===d?J(b,["arc","angle"]):d,e=Ca(e).rotate(c+90));return e}function cs(c){var a=(c.pane||c.chartArea).rootVisuals,b=a.dataContent;a=a.axisMarkersFront;var d=c.visuals.shapeLabels=c.visuals.shapeLabels||c.renderer.panel().add(a);c.rootVisuals={area:b,line:b,points:b,pointHalo:a,shapeLabels:d}}function Ua(c){c&&c.attr({opacity:0})}function Yz(c,a){var b=
c.series;a=b.rootVisuals;var d,e=b.info.style.attr.area;c.coordinates.area&&(d=c.paths.areas?c.paths.areas.join(" ").replace(/[,Z]/g," ")+"Z":zg(c.coordinates.area).join(" "));""!==b.state&&(e=b.getStateAttrs(b.state).area);return{d:d,state:e,shapeName:"area",target:a.area,zIndex:b.zIndex+gb.series,visGetter:function(){return b.visuals.area},visSetter:function(a){return b.visuals.area=a}}}function ds(c){var a=c.currentOptions,b=c.series,d=a.id;return bm(a.parent).map(function(a){if(a.id){var e=b.ciManager.exists(a.id);
if(e)return{cid:d,c_i:c._i,pid:a.id,p_i:e._i,key:d+"-"+a.id,line:a.line||{}};oa.emit("warning","",'No point with id "'+a.id+'" found.',{container:b.chart.getWrapper()})}})}function Li(c){return bm(c).map(function(a){return a.id})}function bm(c){var a=[],b=K(c),d=function(b){return{id:b.trim(),line:{}}},e=function(b){var a=b.id.split(",").map(function(b){return b.trim()});return 1<a.length?a.map(function(a){return{id:a,line:b.line||{}}}):[b]};c&&("string"===b?a.push.apply(a,G(c.split(",").map(d))):
"array"===b&&c.length?c.forEach(function(b){return a.push.apply(a,G(bm(b)))}):"object"===b&&t(c.id)&&a.push.apply(a,G(e(c))));return a}function cm(c,a,b){if(O(a)){a=a.toLowerCase();if("up"===a)return Qg(c,function(b){return!b.currentOptions.parent});if("down"===a){var d=Qg(c,function(b){return!b.series.visualizer.getChildren(b).length},!0);d.forEach(function(b){return b.reverse()});return d}if("all"===a){d=[];a=Qg(c,function(b){return!b.currentOptions.parent});var e=Qg(c,function(b){return!b.series.visualizer.getChildren(b).length},
!0);e.forEach(function(b){return b.reverse()});a.forEach(function(b){e.forEach(function(a){d.push(Ia(a.slice(0).concat(b)))})});return d}}else{var f=a.currentOptions.id;d=Qg(c,function(b){return b.currentOptions.id===f});return d.length||b?d:cm(a,c,!0)}}function Qg(c,a,b){void 0===b&&(b=!1);var d=b?"getChildren":"getParents",e=c.series.visualizer,f=[],g=function(b,c){b.push(c.currentOptions.id);if(a(c))return f.push(b),!1;c=e[d](c);if(!c.length)return!1;c.forEach(function(a){var c=b.slice(0);g(c,
a)})};g([],c);return f}function es(c,a){void 0===a&&(a=function(b,a){return b+"-"+a});var b=function(b){for(var c=[],d=0;d<b.length-1;d++)c.push(a(b[d],b[d+1]));return c};return Ia(c.reduce(function(a,c){return a.concat(b(c))},[]))}function fs(c,a,b,d){var e=c.series,f=e.chart;a=dm(a,e);var g=function(b){var a=f.series().items,c=0,d;for(b=b.slice(0);c<a.length&&!d;){var e=a[c++].visualizer;e&&e.resetLines&&(b=e.resetLines(b),0===b.length&&(d=!0))}};if(a.length){if("object"===typeof b||!t(b))if(e=
es(a),!b)g(e);else if(Object.keys(b).length&&b){var h=wb(b);e.map(function(b){return A({key:b,zIndex:100},h)}).forEach(function(b){var a=b.key.split("-")[0];a=c.series.ciManager.exists(a).series.visualizer;if(a.styleLine){a.styleLine(b,d);var e=Od(a.connectorAttrsHL,function(a){return a.key===b.key});-1<e?a.connectorAttrsHL[e]=b:a.connectorAttrsHL.push(b)}})}return a}oa.emit("warning","","No connecting path was found between the specified points.",{container:e.chart.getWrapper()})}function dm(c,a){var b=
function(b){return oa.emit("warning","",b,{container:a.chart.getWrapper()})},d=function(d){var e=[];if(d.pop)if(2===d.length){e=d[1];var f=["up","top","root","first"],g=["down","bottom","floor","last"],m=["both","all","any"];e?(e=e.toLowerCase().trim(),f=(-1<f.indexOf(e)?"up":void 0)||(-1<g.indexOf(e)?"down":void 0)||(-1<m.indexOf(e)?"all":void 0)):f=void 0;e=a.ciManager.exists(d[0]);f=a.ciManager.exists(d[1])||f;if(!e||!f){b("Specified point ID cannot be found.");return}if(d[0]===d[1]){b("There are no connector lines between the same two points.");
return}e=cm(e,f);if(!e.length){b("No connecting path was found between the specified points.");return}}else 2<d.length&&(e=d[0].pop?d:[d],dm([c[0],c[1]],a)[0][0]!==c[0]&&(e[0]=e[0].slice(0),e[0].reverse()));return e},e=Gh(c),f=[];e&&(2===e.levels?c.forEach(function(b){return f.push.apply(f,G(d(b)))}):f.push.apply(f,G(d(c))));return f}function Zz(c,a,b,d,e,f,g){var h=c.series,k=h.info.type.roundCaps,l=c.isHoriz(),m=a.meta;g=m.labelObstacles;var n=a.meta.shape.slice(0);k&&(n=Ll(n,l?[0,-n[3]/2]:[-n[2]/
2,0]));k=0;m.marker&&(k=a.meta.marker[2]);m={u:0,r:0,d:0,l:0};m[b]=k;var p=$z(c,n,b,g,m,a);a=B(f,function(b){var a=!gs(b),c=a?p.out:p.in;b=le(G([0,0],e),c,b.align,b.vAlign).box;b.isInside=!a;return b});x(a,function(b,a){});var q=[];x(a,function(b){(h.pane||!c.series.isVisible||dd(d,b))&&q.push(b)});return q}function aA(c,a,b){var d=c.series,e=d.pane;e=e&&e.getCompleteVisInfo?e.getCompleteVisInfo(b):Gc(ha(b.rectComplete));c=bA(c,a);return{d:e,clipPath:b.pathD,state:c,target:d.rootVisuals.points,zIndex:d.zIndex+
gb.complete,visGetter:function(){return a.visuals.rectComplete},visSetter:function(b){return a.visuals.rectComplete=b}}}function bA(c,a){c=c.series;var b={hatch:"rgba(0,0,0,.8)",stroke:"#000","stroke-opacity":.3,"stroke-width":1,hatchPattern:"light-upward-diagonal",zIndex:c.zIndex+gb.complete},d=a.currentOptions.complete||{},e=c.currentOptions.defaultPoint||{},f=function(b){return d[b]||C(e,"complete."+b)};a=f("hatch");if(f=f("fill"))f=da(f,c.info.style.base.color),vi(b,f);a&&(a.color&&(a=A({},a),
a.color=da(a.color,c.info.style.base.color)),qr(b,a));return b}function cA(c,a){return Ii(c,{x:a.x,y:[a.open,a.close],subvalue:{range:[a.low,a.high]}},["x","y","subvalue"])}function dA(c,a){var b={x:a.x,y:[a.low,a.high],subvalue:{range:[a.open,a.close]}};a.name&&(b.name=a.name);return Ii(c,b,["x","y","subvalue"])}function eA(c,a,b,d){var e=b.xyz,f=b.xyzs,g=b.sv,h=b.svs;c=c.isHoriz();var k=b.rect;b=c?0:k.width/2;c=c?k.height/2:0;a=z(J(a.currentOptions,["outline","width"]),1);d=Be(d,[f,e,[h[0]-b,h[1]-
c],h,[g[0]+b,g[1]+c],g],a);return wa(["M",d[0],"L",d[1],"M",d[2],"L",d[3],"M",d[4],"L",d[5]])}function fA(c,a,b,d,e){d=hs(c,a,d);return[hs(c,a,b),"Z",d,"z"]}function hs(c,a,b,d){void 0===d&&(d=!0);var e=[];c-=b;a-=b;var f=2*b,g=2*b;b*=.3318;d&&e.push("M",c+f/2,a);e.push("C",c+f+b,a,c+f+b,a+g,c+f/2,a+g,"C",c-b,a+g,c-b,a,c+f/2,a);return wa(e)}function gA(c,a,b,d){var e=c.series;a=b.xyz;var f=b.xyzs,g="M"+a[0]+" "+a[1],h=Aa(a[2]),k=f[2]!==a[2];e=e.options("shape.type")||"circle";d=pd(d,a,1);if(h)b.pathD=
b.meta.bodyD=g,b.hitTest=Bc;else{k?g=fA(d[0],d[1],a[2],f[2]).join(" "):(d=qg(d[0],d[1],f[2],f[2]),g=Nd(e,d.x,d.y,d.width,d.height));b.pathD=b.meta.bodyD=g;var l=b.xyz,m=Math.max(b.xyz[2]/2,5),n=c.getLabelHitTest();b.hitTest=function(b,a){return Mb(l,[b,a])<=m||n(this,b,a)}}return wa(g)}function hA(c){c=ya(c);return!(1===c.length&&jc(c,is).length)}function iA(c){return function(){var a=[];c.each(function(b){a=a.concat(b._points)});return a}}function jA(c){return function(a){var b=c.items[0];if(Gh(a)){if(a=
dm(a,b),a.length){var d=b.ciManager,e=[];a.forEach(function(b){return b.forEach(function(b){return e.push.apply(e,G(b.split("-")))})});return e.map(function(b){return d.exists(b)})}}else b.options({poitns:a})}}function kA(c,a,b,d){d=a.dataPositions.items;var e=a.dpsStackInfo||d.map(function(b){return{value:b.value}});x(d,function(b,a){b=Tr(c,b);var d=e[a],f,g,m=0,n=0,p={},q=b[0].series.yAxis.isStackedFull(),r=0;q&&x(b,function(b){b=b.series.indexer.getItem(b._i).y;r+=b});var u=Math.max.apply(void 0,
c.map(function(b){return b._i}));x(b,function(b){var a=b.series.indexer.getItem(b._i).y,c=q?a/r:a;q&&b.series._i===u&&(d.topNegative=[b]);0<=c?(p.ys=m,p.yr=a,m=p.ye=c+m,f=b):(p.ys=n,p.yr=c,n=p.ye=n+c,g=b);b.series.indexer.indexObject(p,b._i)});f&&(d.topPositive=d.topPositive||[],d.topPositive.push(f));g&&(d.topNegative=d.topNegative||[],d.topNegative.push(g))});a.dpsStackInfo=e;c.reverse();x(c,function(a){a.zIndex=b+=8;a.seriesDirty.pos(!0)});return b}function lA(c,a,b){var d=a.dataPositions.items,
e=function(b){return t(b.z)?b.z:t(b.y)?b.y:1},f=[],g=[],h=c.length,k=a.range.max-a.range.min,l=function(b,a){b=Ji(b,a);return e(b.series.indexer.getItem(b._i))},m=b?B(c,function(b){return Wa(B(d,function(a){return l(b,a)}))}):B(d,function(b){return Wa(B(c,function(a){return l(a,b)}))}),n=function(b,a,c,d,e,h){var k={};f.push([e,c]);f.push([c,h+e]);g.push([a-d,a]);g.push([a,a+d]);k.xs=a-d;k.xe=a+d;b.series.indexer.indexObject(k,b._i)};if(b)x(c,function(b,c){var f=a.range.min;x(d,function(a,d){a=Ji(b,
a);var g=a.series.indexer.getItem(a._i);g=e(g)*k/m[c];n(a,d,f+g/2,.5,f,g);f+=g})});else{var p=Wa(m),q=a.range.min;x(d,function(b,a){x(c,function(c,d){c=Ji(c,b);var e=m[a]*k/(p*h),f=.5/h;n(c,a+d/h-.5+f,q+e/2,f,q,e);q+=e})})}var r=function(b,a,c){for(var d,e=0,f=b.length;e<f;e++){var g=b[e],h=g,k=Math.round(100*c)/100;if(k>=Math.round(100*h[0])/100&&k<=Math.round(100*h[1])/100){b=a[e];d=T(b[0],b[1],g[0],g[1],c);break}}return d};a._stackTranslators={backward:function(b){return r(f,g,b)},forward:function(b){return r(g,
f,b)}}}function mA(c,a,b){function d(b){x(b,function(a){t(a._i)&&x(b,function(b){if(t(b._i)&&(a.series!==b.series||a._i!==b._i)){var c=a.series.indexer.getItem(a._i);b=b.series.indexer.getItem(b._i);if(f(c)&&f(b)){var d=e[a.series._i+"-"+a._i]||(e[a.series._i+"-"+a._i]={});d.startTouches=d.startTouches||c.ys===b.ye;d.endTouches=d.endTouches||c.ye===b.ys}}})})}void 0===b&&(b=!1);var e={},f=function(b){return t(b.ys)&&t(b.ye)};x(a.dataPositions.items,function(a,e){b?c.forEach(function(b){return d(Ur([b],
a))}):(e=Ur(c,a),d(e))});return a.dpsStackInfoZ=e}function nA(c,a){for(var b={points:[]},d,e,f,g=function(b){return Dc(e,f,b,b)},h=function(b){return B(b,function(b){return b.pop?{x:b[0],y:b[1],z:b[2]}:b})},k=function(b,a){var c,d=0;x(b,function(b){t(c=b[a])&&(d+=c)});return d},l=function(l,m){f=c[l];d=h(f.points);a?x(d,function(a){b.points.push(A({cpbIndex:l},a))}):(m=B(d,function(b){return b.y}),e={y:Wa(m),x:k(d,"x")},e.subvalue={values:m},x(["id","name"],g),b.points[l]=A(e,f.defaultPoint||{}))},
m=0,n=c.length;m<n;m++)l(m);b.isMerged=!0;return b}function js(c){var a=c.indexer,b=c.info,d=c.options(),e=d.xAxis,f=c.chart.chartItemManager.exists(d.yAxis)||{};e=c.chart.chartItemManager.exists(e)||{};var g,h=b.type.seriesType,k=function(b){b=c.replaceTokens({token:b});return"-"===b?"":b},l=k("%xAxisLabel"),m=k("%yAxisLabel");k=k("%zAxisLabel");b.type.isMapLayer&&(g=c.chart.geoParser.findFeatureProps(c,c.chart.internal.mappingInfo));return{vScale:J(f.currentOptions,["scale","type"])||f.type||f.dataType,
xScale:e.type||e.dataType,ct:c.ctManager.settingVal("chartType",d),st:h,mapInfo:g,xNotSorted:!b.xIsSorted,yAxisLabel:m,xAxisLabel:l,zAxisLabel:k,sName:d.name,hasZ:a.hasKey("z"),hasX:a.hasKey("x"),hasRange:a.hasAllKeys(["ys","ye"])&&!a.hasKey("y")}}function Rg(c,a,b){c.push(De(c[c.length-1],a,b))}function De(c,a,b){return[c[0]+a[0]*b,c[1]+a[1]*b]}function ks(c,a){var b;void 0===a&&(a=Hb);var d=[];try{for(var e=xa(c),f=e.next();!f.done;f=e.next()){var g=f.value,h=a(g);t(h)&&!h.pop&&d.push(g)}}catch(l){var k=
{error:l}}finally{try{f&&!f.done&&(b=e.return)&&b.call(e)}finally{if(k)throw k.error;}}return d}function Ee(c,a){var b=function(b){return a[0]===b[0]&&a[1]===b[1]},d=function(b){return a===b};b=a.pop?b:d;for(d=0;d<c.length;d++)if(b(c[d]))return d;return-1}function ls(c){var a=[[],[],[],[]];c.each(function(b){return a[b.sideIndex()].push(b)});a[0].reverse();a[3].reverse();return a}function Mi(c){var a=c.isTransitioning?c._ticks:ea(c._ticks,function(b){return!b.invalid});c=ks(a,function(b){return b.value()});
a=oA(a,function(b){return b.value()});var b=c.length;a=ta(a,function(b){return t(b.currentOptions._lI)?b.currentOptions._lI:-1});var d=function(a){return!b&&a._rngData&&0===a._rngData.level&&(!a.currentOptions.rangeMode||"auto"===a.currentOptions.rangeMode)},e=[],f=c.slice(0);x(a,function(b){b._isBaseRange=d(b)});var g=ea(a,function(b){return b._isBaseRange});f.push.apply(f,G(g));e.push.apply(e,G(ea(a,function(b){return!d(b)})));var h=1;b||x(e,function(b){b._rngData&&b._rngData.level<h&&(h=b._rngData.level)});
var k;g.length&&0===h&&(k=!0);return{valTicks:c,rngTicks:a,valArrange:f,rngArrange:e,fullRangesLevel:h,sharesBase:k}}function oA(c,a){var b;void 0===a&&(a=Hb);var d=[];try{for(var e=xa(c),f=e.next();!f.done;f=e.next()){var g=f.value,h=a(g);t(h)&&2===h.length&&d.push(g)}}catch(l){var k={error:l}}finally{try{f&&!f.done&&(b=e.return)&&b.call(e)}finally{if(k)throw k.error;}}return d}function ms(c,a){var b=c.isHoriz,d=P(c._ticks,function(b){return!b._isRange}),e=Mi(c),f=c._rngData,g=f.levels,h=f.duV;f=
function(b){for(var c=0;c<a.length;c++)b(a[c],c)};f(function(b){var a=b._rngData;b=b._metrics.textSize.slice(0);a.labelSize=a.rotate?[b[1],b[0]]:b});var k=c.tickMetricsData,l=c.sideIndex(),m=k.getMaxLength(),n=0===l||1===l,p=0===l||3===l,q=0,r=[0,0],u=0;k=e.sharesBase?0:k.maxLength;r[h.vc]=p?m-k:k;var y=function(b){var a=!1;b._rngData.rotate&&(a=!a);return a},v=function(b){var a=b._metrics.textSize;return y(b)?[a[1],a[0]]:a.slice(0)},w=function(b){return ea(a,function(a){return a._rngData.visible&&
a._rngData.level===b})};k=function(a){a=w(a);if(a.length){var f=Math.max.apply(Math,G(a.map(function(b){return b._rngData.labelOnTop?0:v(b)[1]}))),g=0,k=function(b,a,c){var d=De(r,h.o,q);d[h.hc]=b._metrics.px[0];d=[d];Rg(d,h.o,a);Rg(d,h.f,ma(b._metrics.px[0],b._metrics.px[1]));Rg(d,h.i,a);return{points:d,options:A({},c)}},m,p=function(b,a){b=w(b+1)||[];if(b.length){b=b.map(function(b){return b._metrics.px});for(var c=!1;!c&&b.length;)if(0<eg(b,a).length)c=!0;else break;return c}return!0},E=[];x(a,
function(b,a){a=b._rngData;var c=v(b),e=b.currentOptions.rangeMode;e=!d&&0===a.level&&(!e||"auto"===e)&&!b._rngData.visPartial;var f=a.labelSize;a.labelOnTop||(b=e?f[1]/2+b.currentOptions.padding:Math.max(14,c[1]/2),E.push(b))});x(a,function(a){m=[];var u=a._rngData,w=a._metrics.px,t=Zf(u.labelRange),D=v(a),x=a.currentOptions.rangeMode;x=!d&&0===u.level&&(!x||"auto"===x)&&!a._rngData.visPartial;var I=u.labelSize,R=Math.max.apply(Math,G(E));if(u.labelOnTop){var V=De(r,h.o,q+20+D[1]/2);V[h.hc]=t;u.labelBbox=
ob(V,D);u.shapeOptions=k(a,14,{gapLength:0,tipLength:20*(1-.7),tipPos:T(0,1,w[0],w[1],V[h.hc])});w=p(u.level,u.labelRange);g=Math.max(g,u.autoLabelOnTop&&!w?20:u.labelOnTop?D[1]+20:D[1])}else V=De(r,h.o,q+R),V[h.hc]=t,u.labelBbox=ob(V,D),u.shapeOptions=k(a,R,{gapLength:I[0],tipPos:T(0,1,w[0],w[1],V[h.hc])}),g=Math.max(g,f);0===u.level&&e.sharesBase&&(g=Math.max(g,c.tickMetricsData.maxLength));u.labelCxy=V;if(u=!x)u=y(a),b||(u=!u);a._cxyRotate=u?0===l?-90:n?90:-90:void 0;m.push(a.currentOptions.padding)});
a=g+Math.max.apply(Math,G(m));q+=a;u+=a}};for(var E=0;E<g.length;E++)k(E);f(function(b){if(b._rngData.visible){var a=b._rngData,c=Xa(a.shapeOptions.points);b._positionData={tickPoints:a.shapeOptions.points,textBBox:ob(a.labelCxy,b._metrics.textSize),bbox:Ha([a.labelBbox,c])}}});r[h.vc]=p?m:0;return{ticks:c._rngData.ticks,levels:g,edges:c._rngData.edges,origin:r,depth:u,duV:h}}function em(c){c=c.currentOptions.hoverAction;return t(c)?"none"!==c&&!1!==c:!0}function ns(c,a){a=a||c.currentOptions.label;
var b=["color","style.color","outline.color"],d,e={};try{for(var f=xa(b),g=f.next();!g.done;g=f.next()){var h=g.value,k=C(a,h);if(k&&k.length&&-1<k.indexOf("%")){b=h;var l=void 0,m=k;if(!r){var n=void 0,p=c.currentOptions,q=c.axis;"function"===typeof p.target&&(n=p.target());var r=n||(q.chartArea.replaceTokens?q.chartArea:q.chart)}l=r;var u=l.replaceTokens(m);Y(e,b,u)}}}catch(v){var y={error:v}}finally{try{g&&!g.done&&(d=f.return)&&d.call(f)}finally{if(y)throw y.error;}}return Object.keys(e).length?
A(qd(a),e):a}function os(c){var a=c.axis.tickPositions,b=c._value,d=a.minor||[];a=Ee(a,b);return"custom"===c.type?c.rank=1:0===a?(c.isFirst=!0,c.rank=2):-1===Ee(d,b)?c.rank=3:c.rank=5}function pA(c){for(var a=Mi(c).valArrange,b=function(b){if(-1<b)for(var d=a.length;b<d;b++){var e=a[b];if(c.tickVisible(e.value())&&!e._isSquished)return b}return-1},d=0,e=a.length-1;d<e;d++){var f=a[d];f._isSquished=!1;c.tickVisible(f.value())?f._age=0:f._age++}d=0;f=!1;for(var g,h,k,l;!f;){var m=b(d);e=b(m+1);if(-1<
m&&-1<e){m=a[m];g=a[e];h=l=!1;var n=m.angledAttr();"angled"===c.labelMode&&0!==n.rotate[0]?(h=m._metrics,k=g._metrics,h=Nv(z(h.px[0],h.px),z(k.px[0],k.px),h.textSize,k.textSize,n.rotate[0],z(m.currentOptions.padding,0)+z(g.currentOptions.padding,0))):m._cxyRotate?(h=[va(m._bboxClipped),va(g._bboxClipped)],h=[uk(m._bboxClipped,G([m._cxyRotate],h[0])),uk(g._bboxClipped,G([g._cxyRotate],h[1]))],h=Kv(h[0],h[1])):h=bd(m._bboxClipped,g._bboxClipped);h&&(g.rank>m.rank?l=g._isSquished=!0:g.rank<m.rank?m._isSquished=
!0:l=g._isSquished=!0);d=l?d:e}else f=!0}}function Cf(c,a,b){void 0===b&&(b={});var d=a.metrics(b),e=d.px,f=d.textSize,g=d.tickLength,h=c.sideIndex(),k=0===h||1===h,l=c.tickMetricsData;h="inside"===a.currentOptions.placement;var m=a.options("padding")||0,n=h?0:l.getMaxLength(),p=2===e.length;e=a._metrics.px=c.getCaLen(a.value());e.pop&&e.length&&(e=(e[0]+e[1])/2);Aa(e)&&(e=0);var q=0===c.currentOptions.anchorWidth?.5:0,r=c.viewState.caRect,u=r.x,y=u+r.width,v=r.y;r=v+r.height;c.isHoriz?(p&&(q-e>u&&
(e=u+q),q+e>y&&(e=y-q)),p=h?0:1,k?(k=h?1:-1,g=[[e,n],[e,n+k*d.tickLength]],e=[e-f[0]/2,g[1][1]+k*m+k*(h?0:f[1]),f[0],p*f[1]]):(k=h?-1:1,g=[[e,0],[e,k*g]],e=[e-f[0]/2,g[1][1]+k*m+f[1]*(p-1),f[0],p*f[1]]),f=e[3]+(h?0:d.tickLength+d.tickPadding||0)):(p&&(q-e>v&&(e=v+q),q+e>r&&(e=r-q)),q=C(a.currentOptions,"label.align")||k?"left":"right",p=h?0:1,k?(k=h?-1:1,g=[[0,e],[k*d.tickLength,e]],e=["right"===q?g[1][0]+k*m+p*l.maxTextSize[0]-f[0]:g[1][0]+k*m+f[0]*(p-1),e-f[1]/2,p*f[0],f[1]]):(k=h?1:-1,g=[[n,e],
[n+k*d.tickLength,e]],e=["right"===q?g[1][0]+k*m-p*f[0]:g[1][0]+k*m-p*l.maxTextSize[0],e-f[1]/2,p*f[0],f[1]]),f=e[2]+(h?0:d.tickLength+d.tickPadding||0));l=g.slice(0);"angled"===c.labelMode?(a._positionData||(a._positionData={tickPoints:g,textBBox:e}),m=a.angledBounds()):m=e.slice(0);l.push.apply(l,G(me(m,"tl,br")));l=a._bbox=Xa(l);h&&(l[c.isHoriz?3:2]=0,l[c.isHoriz?1:0]=0);if(b.tickPointsOnly)return a._positionData.tickPoints=g,a._positionData;c=a._bboxClipped=e.slice(0);c[2]=d.textSize[0];c[3]=
d.textSize[1];return a._positionData={tickPoints:g,textBBox:e,bbox:l,textLength:f}}function qA(c){var a,b=Mi(c),d=b.rngTicks,e=b.rngArrange;b=c.duV();var f=!1;if(d&&d.length){c.isZoomed||"category"!==c.type||(f=!0);var g=d[0].getVisualTargets({},!0).tick,h=b.hc;d=sb(ha(c.viewState.caRect),-8);var k=De(d,b.i,d[h+2]);k.push(0,0);d=Ha([d,k]);var l=$b(d);k=hb([l[h],l[h]+8,l[h+2]-8,l[h+2]],function(b){return sa(T(0,1,l[h],l[h+2],b),2)});var m=f?[1,1,1,1]:[0,1,1,0];d={d:Gc(d),fill:{linearGradient:c.isHoriz?
[0,0,1,0]:[0,0,0,1],stops:B(k,function(b,a){return[b,"white",m[a]]})}};!f&&g.attr({mask:d})}if(e.length){c._rngData=ms(c,e);for(f=0;f<e.length;f++){d=e[f];k=d._rngData.shapeOptions;var n=A({},d.currentOptions.line);Jd(n)?"#e2e2e2"===n.color&&(n.color="#a8a8a8"):n.color="none";k&&(d._rngData.renderData=rA(d,C(k,"points"),A(k.options,n),g))}d=c._rngData;g=d.levels;var p=d.edges;d=d.origin;k=[];n=function(b,a){return P(e,function(c){return c._metrics.px[0]===b[0]&&c._metrics.px[1]===b[1]&&c._rngData.level===
a})};var q=function(b,a){return P(b,function(b){return b[0]===a||b[1]===a})};try{for(var r=xa(p),u=r.next();!u.done;u=r.next()){var y=u.value;for(f=g.length-1;0<=f;f--)if(p=void 0,p=q(g[f],y)){var v=n(p,f);if(v&&Jd(v.currentOptions.line)){var w=v._rngData.renderData.endPoints,E=w[0][b.hc]===y?w[0]:w[1];c.valVisible(c.linToVal(E[b.hc]))&&(p=[],p[b.hc]=E[b.hc],p[b.vc]=d[b.vc],k.push([E,p]))}break}}}catch(D){var t={error:D}}finally{try{u&&!u.done&&(a=r.return)&&a.call(r)}finally{if(t)throw t.error;}}k.length&&
(c._rngData.connectorLines=k)}}function rA(c,a,b,d){var e=c.axis,f="category"===e.type,g=c.currentOptions.rangeMode;c=c._rngData;var h=P(e._ticks,function(b){return!b._isRange});b=kd(la(b),{type:f?"curly":"measure",gapLength:0,tipPos:.5,color:"#000"});f=h||0!==c.level||c.visPartial?"curly"===b.type?"curly":"measure":"min";g=g&&"auto"!==g?g:f;var k=z(b.width,ps[g]);f=function(b){var a=pd(d,b,k);return e.isHoriz?[b[0],a[1]]:[a[0],b[1]]};var l=La(a[0],a[1]);a=a.slice(0);"curly"===b.type&&(a[1]=pa(a[1],
l+180,k/2),a[2]=pa(a[2],l+180,k/2));c=b.tipPos;h=oc(a[1],a[2]);c=ua(1<c?c/h:c,0,1);A(b,{lineLength:h,midPoint:hk(a[1],a[2],c),sideLength:oc(a[0],a[1]),lineAngle:La(a[1],a[2]),tipAngle:l,tipPos:c});var m=h-12;l=b.gapLength;var n=b.midPoint,p=b.lineAngle;if(0<l)if(l>h-12)A(b,{gapLength:m,tipPos:.5,midPoint:hk(a[1],a[2],.5)});else if(.5!==c){c=1>c?c*h:c;m=oc(n,a[1]);var q=oc(n,a[2]),r=oc(n,pa(n,p+180,l/2));l=oc(n,pa(n,p,l/2));r>m-6&&(c+=r-(m-6));l>q-6&&(c-=l-(q-6));A(b,{tipPos:c/h,midPoint:hk(a[1],a[2],
c/h)})}var u;"min"!==g&&(u="curly"===g?Kx(a,b):Jx(a.map(f),b));return u}function sA(c){var a=Date.now();if(c&&c.length){var b=c[0].axis;x(c,function(b){return 0!==C(b.currentOptions,"value.length")&&tA(b)});var d=function(b){if(b=b._arrangeInfo.used)return(a-b.time)/1E3*10},e=function(b,a,c){var e=0,f=0,g=!0;x(c,function(b,d){e+=c[d][a[d]]||0});for(var h=0,k=b.length;h<k;h++){var l=void 0,m=P(b[h]._arrangeInfo.possible,a);if(m){if(t(l=d(b[h]))&&Mb(m.cxy,b[h]._arrangeInfo.used.cxy)>l){g=!1;break}if(m.collide){g=
!1;break}else f++}else{g=!1;break}}if(g)return e+f/b.length},f=function(b,a){for(var c={},d=0,e=b.length;d<e;d++){var f=ea(b[d]._arrangeInfo.possible,a);x(f,function(b){c[""+b.xAlignment+b.yAlignment+b.rotation]={xAlignment:b.xAlignment,yAlignment:b.yAlignment,rotation:b.rotation}})}var g=[];x(c,function(b){return g.push(b)});return g},g=function(b,a){var c=[];x(b,function(b){return c.push(a(b))});return Ia(c)},h=ea(c,function(b){return b.isRange()});c=ea(c,function(b){return!b.isRange()});var k=
function(a,c,h){if(a.length){for(var k=f(a,{}),l=g(k,c),m,n=0,y=l.length;n<y;n++)for(var v=l[n],w=0,E=k.length;w<E;w++){var t=k[w];if(c(t)===v){var D=e(a,t,h);D&&(!m||m[0]<D)&&(m=[D,t])}}var R=1<a.length;x(a,function(a){var c=b.chartArea.collisionManager,e=a._arrangeInfo.possible,f=ea(e,function(b){return R?!c.collideLabels(b.box,a.id):!c.collideAll(b.box,a.id)}),g=a._arrangeInfo.used,h,k,l=g?{xAlignment:g.xAlignment,yAlignment:g.yAlignment,rotation:g.rotation}:{};!f.length&&e.length&&(f=e);f.length&&
(g&&(R||(k=h=P(f,l)),k||(k=P(e,l)),k&&(k.time=g.time)),!h&&m&&(h=P(f,m[1])),h||(h=f[0]),g&&h&&!R&&""+g.xAlignment+g.yAlignment+g.rotation!==""+h.xAlignment+h.yAlignment+h.rotation&&(e=Mb(g.cxy,h.cxy),f=d(a),e>f&&k&&(h=k)),a._arrangeInfo.used=h,c.addLabelBox(h.box,h.marker.id))})}};k(h,b.isHoriz?function(b){return b.yAlignment}:function(b){return b.xAlignment},{yAlignment:b.isHoriz?{inmiddle:.1,intop:.3,inbottom:.2}:{inmiddle:.3,intop:.2,inbottom:.1},xAlignment:b.isHoriz?{inleft:.2,incenter:.3,inright:.1}:
{inleft:.3,incenter:.2,inright:.1}});k(c,b.isHoriz?function(b){return b.yAlignment}:function(b){return b.xAlignment},{yAlignment:{outtop:.2,outbottom:.1},xAlignment:{outright:.3,outleft:.1}})}}function tA(c){var a=c.axis,b=c.currentOptions,d=c.options("label");b=b.value;var e=c.isHoriz,f=a.chartArea.collisionManager,g=[];if(d){var h=function(b){b.push([b[0][0]+(e?1:0),b[0][1]+(e?0:1)]);return Ha(b)};d=ka(b[0])?b[0]:b;hb(d,function(b){return g.push(h(a.getCaPoints(b,void 0)))});x(g,function(b){return f.addBox(b)});
d=Ha(g);c._arrangeInfo.edgeBoxes=g;c._arrangeInfo.box=d;uA(c);vA(c)}}function uA(c){var a=c.rootVisuals,b=c.currentOptions,d=b.labelPadding||0;b=b.label||{};if(c.getText()&&c.axis.valVisible(c.value())){var e=a.label=a.label||new Ni(c.chart,b),f=c.attrBuilder(uc(b),{},{});f.val=c.getText();f.padding=d;e.options({text:c.getText()});a.label.attr(f);!1!==b.autoWrap?(e.rootVisuals.text.attr({autoWrap:"auto"}),a.label.rootPanel.attr({maxWidth:0,autoWrap:"auto"})):(e.rootVisuals.text.attr({autoWrap:"none"}),
a.label.rootPanel.attr({autoWrap:"none"}));c._arrangeInfo.labelSizes=e.getSizes();a.label.rootPanel.attr({autoWrap:"none"}).setPreliminarySize(!0)}}function vA(c){var a=c.axis;c._arrangeInfo.visible=!0;var b=c.options("label");if(b&&Kd(b)){var d=b.align,e=b.verticalAlign;b=b.rotate;var f=d||e,g=function(b){var a=c._arrangeInfo.labelSizes[0];return P(c._arrangeInfo.labelSizes,function(c){c[0]<a[0]&&(a=c);return c[0]<=b})||a},h=ha(c.axis.chartArea.contentRect),k=c._arrangeInfo.labelSizes[0],l=uo([c._arrangeInfo.box,
h])||c._arrangeInfo.box,m=c.isRange(),n=c.isHoriz;h=c.axis.chartArea;var p=Date.now(),q=h.collisionManager,r=sb(ha(h.contentRect),-1);c._arrangeInfo.possible=[];if(a.valVisible(c.value())){k=g(n?r[2]:r[3])||k;var u=g(l[2]),y=g(l[3]);g=[l[0],l[1],k[0],k[1]];k=function(b,a,d){x(a,function(a){var e,g=b.slice(0),h=0!==d,k=a[0];a=a[1];var v=0===k.indexOf("in"),w=v&&0<d&&("inleft"===k&&"intop"===a||"inright"===k&&"inbottom"===a);m&&v&&(g=[0,0],h?g.push.apply(g,G(y)):g.push.apply(g,G(u)));h&&(g=[g[0]-g[3],
g[1],g[3],g[2]]);g=le(g,l,k,a);h=g.box;dd(r,h)&&!w&&(!n&&m&&v&&(v=0===c._arrangeInfo.possible.length&&f,dd(l,h)||v||(e=!0)),!e&&c._arrangeInfo.possible.push({xAlignment:k,yAlignment:a,box:h,cxy:va(h),collide:!0===q.collideAll(h),rotation:d,textAlignment:g.contentAlignment,marker:c,time:p}))})};h=function(b,a,c){void 0===c&&(c=!1);var d=[];x(b,function(b){x(a,function(a){c?d.push([b,a]):d.push(b+a)})});return d};var v=[],w=[];a="sp"===a.prefix;t(b)&&0!==b||(n&&!a?(d?v=h(["in"],[d]):(v=h(["in"],["left",
"right"]),v.push("incenter")),e?w=h([m?"in":"out"],[e]):m?(w=h(["in","out"],["top","bottom"]),w.push("inmiddle")):w=h(["out"],["top","bottom"])):(e?w=h(["in"],[e]):(w=h(["in","out"],["top","bottom"]),w.push("inmiddle")),d?v=h([m?"in":"out"],[d]):m?(v=h(["in"],["left","right"]),v.push("incenter")):v=a?h(["out"],["left","right"]):h([],[""])),a=h(v,w,!0),k(g,a,0));t(b)&&90!==b&&-90!==b||(n?(v=d?h(["in"],[d]):h(["in"],["left","right"]),w=e?h([m?"in":"out"],[e]):m?h(["in"],["top","bottom","middle"]):h([],
[""])):(w=e?h(["in"],[e]):h(["in"],["top","bottom","middle"]),d?v=h([m?"in":"out"],[d]):m?(v=h(["in","out"],["left","right"]),v.push("incenter")):v=h(["out"],["left","right"])),a=h(v,w,!0),k(g,a,90))}else c._arrangeInfo.visible=!1}}function wA(c,a){if(!a.items.length&&!J(c.currentOptions,["scale","range"]))return a=c.chartArea.chartAreaSet.freeAxes[c.prefix].id,a!==c.id&&a}function fm(c){var a=[];t(c)&&(c.pop?(a=c.length,a=(2===a?c:1===a?[c[0],null]:[])||[]):a=[c.min,c.max]);c=a;return pb(c[0])&&
pb(c[1])}function qs(c,a){return(c=J(c.currentOptions,["scale","type"]))&&a(c)}function gm(c,a){return qs(c,a)||c.syncAxis&&qs(c.syncAxis,a)}function rs(c,a){var b,d=function(b){return[b[0],b[1],b[1]-b[0]]},e=function(a){return"object"===K(a)?(b=!0,Yk(a,c.range?c.range.min:c.min,c.range?c.range.max:c.max)):a.map(function(b){return c.toPosition(b)})};if(ka(a)&&a.length){var f=[];x(a,function(b){"array"===K(b)?f.push(e(b)):f.push.apply(f,G(e(b)))});c.hasCalPatBreaks=b;return B(f,d)}c.hasCalPatBreaks=
b;return a}function xA(c){var a=[];hb(c,function(b){return a.push(b)});return ed(ta(a))}function yA(c,a){var b=[0,c._sizeMetrics.length],d=0<ma(b[0],b[1]);P(c._ticks,function(b){return!b._isRange});var e=[],f=function(b){for(var c=0;c<a.length;c++)b(a[c],c)},g=function(a){return d?af(b,a):bf(a)};f(function(b){b.metrics();b._cxyRotate=void 0;b._rngData={visRange:g(bf(b._metrics.px))};var a=b._rngData,c=(c=b._rngData.visRange)&&0<c.length,d=ta(b._metrics.px),e=b._rngData.visRange;e&&e.length?(b=ma(d[0],
e[0]),d=ma(d[1],e[1]),d=10<b||10<d):d=void 0;A(a,{visible:c,visPartial:d})});f(function(b){var a=b._rngData;if(b._rngData.visible){b=b._metrics.px;for(var c=0;!f;){var d=e[c]=e[c]||[];if(!eg(d,b).length){d.push(b);var f=!0}c++}f=c-1}else f=0;return a.level=f});f(function(b){b=b._rngData;var a=b.visRange,c=b.obstacles=[],d=function(b){return je(bf(a),b)&&c.push(b)};b.higherIntersects=[];if(b.visible)for(var f=b.level+1;f<e.length;f++){var g=eg(e[f],a);df.apply(null,[b.higherIntersects].concat(g));
hb(g,d)}});var h=c.tickMetricsData,k=c.sideIndex();h=h.getMaxLength();k=0===k||3===k;var l=[0,0];c=c.duV("inside"===C(c.currentOptions,"defaultTick.placement"));l[c.vc]=k?h:0;f(function(b){var a=b._metrics.px;b._rngData.rotate=!t(C(b.currentOptions,"label.rotate"))&&b._metrics.textSize[0]>ma(a[0],a[1])});f(function(b){var a=g(b._metrics.px);if(b._rngData.visible){var c=void 0,d=b.currentOptions,f=b._rngData,h=fg(lk(ta(f.obstacles),a,0),a),k=b._metrics.textSize,l=!1;b._rngData.rotate&&(l=!l);k=l?[k[1],
k[0]]:k.slice(0);k[0]+=d.padding;f.labelSize=k;k=k[0];h=h.length?Qv(h):Df(a,5);var m=5*z(b.currentOptions.line.width,ps.measure);l=Df(a,m);b=Df(b._metrics.px,m);h=af(h,l);h[1]-h[0]<k?(!f.visPartial&&ma(l[0],l[1])<k&&(c=!0),a=(a[0]+a[1])/2,f.labelRange=[a-k/2,a+k/2]):(a=(h[0]+h[1])/2,f.labelRange=[a-k/2,a+k/2]);a=f.labelRange.slice(0);f.labelRange=kk(b,f.labelRange);Xe(a,f.labelRange);d=d.label&&d.label.placement;0!==f.level||c||d&&"auto"!==d?(c?f.autoLabelOnTop=!0:1===e.length?f.autoLabelOnTop=!0:
(c=f.higherIntersects&&0<eg(f.higherIntersects,f.labelRange).length,f.autoLabelOnTop=!f.visPartial&&!c&&f.level<e.length-1),f.labelOnTop=t(f.labelOnTop)?f.labelOnTop:f.autoLabelOnTop,c=z(d,"auto"),c&&"auto"===c||(f.labelOnTop="outside"===c?!0:!1)):f.labelOnTop=f.autoLabelOnTop=!1}});var m=[];x(e,function(b){b.length&&m.push.apply(m,G(qo(b)))});m=ed(ta(m));return{ticks:a,levels:e,edges:m,origin:l,duV:c}}function zA(c){var a="sv"+("x"===c?"x":"");return[""+c,c+"s",c+"e",""+a,a+"s",a+"v"]}function AA(c,
a,b){var d,e=c.childAxes.length?c.childAxes.splice(0):[c];x(e,function(e){e.userOptions.markers=e.userOptions.markers||[];e.userOptions.markers.push(a);e._markers.push(new ss(e,a));d=!0;e.syncLegend();c.chart.isRendered&&!1!==b&&c.chart.renderer.refresh();!1!==b&&e.renderOnCa(b)});d&&c.chart.isRendered&&!1!==b&&c.chart._legends[0].isVisible&&(c.chart.chartAreaSet.reflow(b),c.chart.renderer.refresh())}function Oi(c){c=(new Date(c)).getTime();return Aa(c)?(new Date).getTime():c}function BA(c){return function(){var a=
[];c.each(function(b){a=a.concat(b._ticks)});return a}}function CA(c){return function(){var a=[];c.each(function(b){a=a.concat(b._markers)});return a}}function DA(c){return!c.chart.ctManager.isType("map")&&(Fe(c)||Ge(c)&&c.series.currentOptions.pointSelection)?!0:!1}function ts(c){return Ge(c)&&(c=c.series.currentOptions.pointSelection,"single"===c||1===c.max)?"system/default/radio-button":"system/default/checkbox"}function us(c){if(Fe(c))return c.isVisible;if(Ge(c))return c.selected}function hm(c){c=
c.currentOptions.hoverAction;return t(c)?"highlight"===c||"mute"===c:!0}function im(c,a){void 0===a&&(a=!0);var b=K(c);if("array"===b)return c;if("string"===b)return b=-1<c.indexOf(",")?/[,]/g:/[ ]/g,(a?c.toLowerCase():c).split(b).map(function(b){return b.trim()})}function vs(c,a,b){var d=[],e=[],f=[];a.each(function(a){a.breaks.length&&EA(c,a,b,d,e,f)});return{clipPath:d.length?wa(d):null,paths:e,outlines:f}}function EA(c,a,b,d,e,f){void 0===d&&(d=[]);void 0===e&&(e=[]);void 0===f&&(f=[]);var g=
a.getBreakRects(),h=C(a.currentOptions,"scale.defaultBreak.line.width"),k=C(a.currentOptions,"scale.defaultBreak.line.color"),l=C(a.currentOptions,"scale.defaultBreak.type").toLowerCase();a=a.isHoriz;var m=function(a){return od(c,a,b)};g.sort(a?function(b,a){return b[0]-a[0]}:function(b,a){return b[1]-a[1]});var n=g.length;if(1!=n)for(var p=0;p<n;p++){var q=g[p];q[0]+=b/2;q[1]+=b/2;if(!q)break;var r=void 0;r=0===p?a?"r":"b":p===n-1?a?"l":"t":a?"c":"m";if(q=(FA[l]||ws)(r,h,q,m))q.clipPath&&d.push(q.clipPath),
q.path&&e.push({path:q.path,color:k}),q.outlinePath&&f.push({path:q.outlinePath,stroke:k})}}function ws(c,a,b,d){b=d(b);d={clipPath:oq(b[0],b[1],b[2],b[3],{zigSides:c,zigWidth:a,lines:[]})};var e="m"===c||"t"===c||"b"===c?1:0;b[e]+=.5;--b[e+2];d.outlinePath=oq(b[0],b[1],b[2],b[3],{zigWidth:a,zigSides:c,open:!0,lines:[]});return d}function GA(c,a,b,d){var e=c.isHoriz,f=c.tooltip.currentOptions.combined,g=c.chart.axes("x"),h=[],k=[],l=[],m=!1;c.axes().filter(function(b){b=b.options("crosshair")||{};
return b.enabled&&!b.snapToData}).each(function(b){return b.crosshairXy(a)});c.axes().filter(function(b){if("x"===b.prefix)return((b.options("crosshair")||{}).enabled||f)&&!b.options("scale.syncWith")}).each(function(b){var c=[b,b.crosshairXy(a,void 0,d)];x(b.serList,function(b){if(b.isVisible&&!1!==b.options("mouseTracking_enabled")){var a=b.showHaloAtX(c[1]);a&&h.push(a);b.haloPath&&(k.push(b.haloPath),l.push(b))}})});var n=Gc(ha(c.contentRect))+" "+k.join(" ");x(l,function(b){var a;(a=b.visuals.pointHalo)&&
x(a,function(b){return b.attr({clipPath:{d:n,"clip-rule":"evenodd"}})})});h=h.map(function(b){return{axId:b[0].id,point:b[1],yVal:b[2]}});if(h.length){var p=(new Pi).key("axId").entries(h),q=[];x(p,function(b){var a=c.axes(b.key);if(a){c.tooltip.cttEnabled(a,g)&&(q.push.apply(q,G(b.values.map(function(b){return b.point}))),m=!0);var d=a.options("crosshair");d.enabled&&d.snapToData&&HA(c,a,IA(b.values))}});q=ea(q,function(b){return!b.series.indexer.getValue("isEmpty",b._i)&&!1!==b.series.options("mouseTracking_enabled")});
q=ta(q,function(b){return b.series.indexer.getValue("pos",b._i).xyz[e?0:1]});q.length&&c.tooltip.show(q,b,a)}else c.axes().filter(function(b){if("y"===b.prefix)return(b.options("crosshair")||{}).enabled}).each(function(b){return b.crosshairXy(a)});return m}function JA(c){c.axes().each(function(a){a.crosshair()})}function KA(c){var a=Oh({chartArea:c.chartArea||[{}]},"chartArea"),b=Xj(c,["title","series","legend","events"]);Xj(c,["xAxis","yAxis","zAxis"]);var d={xAxis:c.xAxis||[{}],yAxis:c.yAxis||[{}],
zAxis:c.zAxis||[{}]};A(a[0],Ka(b,"series"));a.rootItems=b;a.rootAx=d;c.series.length&&(a[0].series=a[0].series||[],a[0].series=(a[0].series||[]).concat(b.series));return a}function LA(c){return function(){var a=[];c.each(function(b){return a.push.apply(a,G(b.items))});return a}}function MA(c,a,b){if(a.data){a=a.data;var d=c.data=c.data||{},e=K(a),f=t(a.transformer)?a.transformer:c.ctManager.isType("calendar")?NA:null,g=function(a){if(!d.val||d.val&&d.fileName!==a)return fx(a,function(e){d.val=f?f(e.data):
e.data;d.types=!f&&dl(d.val);x(d.types,function(b,a){return"date"===b&&Y(c,"typeContextOptions.axes."+["x","y","z"][a]+".scale.type","time")});d.fileName=a;b(e)}),a};switch(e){case "array":d.val=a;break;case "string":if(256>a.length&&a.indexOf(".csv")===a.length-4)return g(a);d.val=Wh(a);break;case "object":if(a.data)d.val=Wh(a.data,a.delimiter,a.header);else if(a.file)return g(a.file)}}}function NA(c){return B(c,function(a){return[a[0],parseFloat(a[1])]})}function jm(c,a,b){var d=nf[c];!d&&km[c].checker(a,
!1,{})?xs(c,a||{},b):!d||d.loaded?b():d.loading&&d.callbacks.push(b)}function ys(c,a,b,d){void 0===d&&(d=!1);a||b();var e=[],f=nf,g=function(a){e.splice(e.indexOf(a),1);e.length||OA(b)},h=PA(a),k=h?X(km,h):km,l=a.modules?ja(a.modules):{};Fa(k,function(b){var h=f[b],m=function(){h&&h.afterLoad&&h.afterLoad(c,a);!h&&-1<b.indexOf("locale")&&f[b]&&(f[b].loading=!1,f[b].loaded=!0)};h&&h.loaded||!k[b].checker(a,d,l,c.ctManager)?m():(e.push(b),xs(b,M({notificationContainer:c.getWrapper()},a),function(){m();
g(b)}))});var m=MA(c,a,function(){g(m)});m&&e.push(m);e.length||b()}function zs(c,a){for(var b in QA)if(c.isType(b,a))return!0}function xs(c,a,b){op(c,b,oa,a)}function PA(c){var a=W.Intl;c=c.defaultCultureName||"en-US";if(a&&0<a.NumberFormat.supportedLocalesOf([c]).length)return null;RA();a={};a["https://code.jscharting.com/polyfill/locales/"+c]={checker:function(){return!0}};return a}function RA(){W.IntlPolyfill||(W.IntlPolyfill={__addLocaleData:function(c){return Qi.push(c)}})}function OA(c){var a=
W.IntlPolyfill;Qi.length&&a&&(x(Qi,function(b){return a.__addLocaleData(b)}),Qi=[]);c()}function SA(c,a,b){var d,e={},f=c.calIndexer,g={layoutAttr:e,boxAttr:{},needRefresh:!1,needRedraw:!1,updateCalendar:!1};t(a.margin)&&Y(a,"box.margin",a.margin);x(a,function(b,d){if(lm[d])lm[d](b,c,g,a)});if(g.updateCalendar){var h=c.userOptions,k=c.currentOptions;k.series=void 0;k.x=qd(h.x);k.y=qd(h.y);f.updateChart(k);var l=k.series;x(c.chartAreaSet.items,function(b){b.options({series:l})})}Object.keys(e).length&&
c.renderer.attr(e).refresh();e=t(null===(d=null===a||void 0===a?void 0:a.box)||void 0===d?void 0:d.padding);(!c.isRendered||e)&&c.isColorized&&100<c.renderer.getRootBox().height&&(g.boxAttr.padding=g.boxAttr.padding||[0,0,0,0],g.boxAttr.padding[2]+=20);if((d=g.boxAttr)&&Object.keys(d).length){if(e=d.margin)f=Ec(c.rootVisuals.box.margin.initial),d.margin=Vj(f,e);c.rootVisuals.box.attr(d);g.needRefresh=c.isRendered}g.needRedraw?c.redraw(b):g.needRefresh&&c.rootPanel.refresh()}function TA(c,a,b){Fa(mm,
function(d){a=mm[d](c,a,b)});return a}function As(c,a,b){return of(function(d,e){e={text:a};b&&(e.baseUrl=b.baseUrl,e.notificationContainer=b.notificationContainer);jm("modules/types",e,function(){return d(mr(c,a,b))})})}function UA(c,a,b){Bs=b;"undefined"!=typeof c&&(c.fn.JSC=function(){function b(b){for(var c=0,d=a.length;c<d;c++)if(b[0]==a[c][0])return a[c][1]}var c=arguments,f;if(this[0]){"string"===typeof c[0]&&(c=Array.prototype.slice.call(c,1));var g=c[0];t(g)?((f=b(this))&&f.dispose(),g.targetElement=
this[0],c=new Bs(g,c[1]),c.globalChartIndex=a.length,a.push([this[0],c]),g=this):g=b(this)}return g})}function Cs(){return"3.3.1.20220428"}function VA(){return of(function(c){"loading"===ia.readyState?ia.addEventListener("DOMContentLoaded",c):c()})}function Ds(c,a){var b=Ri(a),d={grid_enabled:!0};b&&(d.baseUrl=b.baseUrl,d.notificationContainer=b.notificationContainer);return of(function(a,f){jm("modules/datagrid",d,function(){a(wc.gridConstructor&&wc.gridConstructor(c,b,void 0))})})}function Es(c,
a){if(!(this instanceof Es))return Ds(c,a);var b=wc.gridConstructor&&wc.gridConstructor(c,a,void 0);return b?(b.then=function(a){return a&&a(b)},b):Ds(c,a)}function Ri(c){var a;rd&&(a=rd?rd():{});return c&&a?A(a,c):c||a}var yj=function(c,a){yj=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,a){b.__proto__=a}||function(b,a){for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c])};return yj(c,a)},Si=function(){Si=Object.assign||function(c){for(var a,b=1,d=arguments.length;b<d;b++){a=arguments[b];
for(var e in a)Object.prototype.hasOwnProperty.call(a,e)&&(c[e]=a[e])}return c};return Si.apply(this,arguments)},WA={exportButtonTooltip:"Export to raster or vector image",printButtonTooltip:"Print the chart",resetZoomText:"Zoom Out",resetZoomTooltip:"Reset Zoom"},Uk="4285F4fE4C14DBCB1815AC20D150B1d9AeeC8C2808ED7C1F1eFEdAF2955B6eA738F5424378BE3CA87A893B3F84E154F5CD992D8C2903B9B09DC9F9F95F035FCACBFA0381830202FE9CCEFEFBCC9BdD7311A3340E7E4957B823E6BC0DE8BFC70D5987BD5C923|9C9Ad9C3063cCECEc63e63d8284e65CECECdFee84dbcebd84e8484a8284ebeCdFCEcCEdCEc9C9CCcF9ACECE9AcCF9C3165d31CFCE9CCFbCFb9Ab65e63659C949694e3063319A63e3e0313e09C3e09C306331309C313031accadacdbbbd84a82a848482e84e84e8284C6C3C6848284|4B649A88E2D869838eD93FA5EE4034088B2FAEB8E9ED266666FA7CD992C85203D4804FAFC7DD57F9EEFC335BA63D2F81C238683D996FEAB90342172309AE9538772BC16DF07420ADC7A4D9ED99DAA029BAEB076A40145A6485769C85B624F030670AD47A6BC1814E07CA65E495FD0F2881ED681E873AE862D16CC889C78AE792B499869EE625BDE959C952859E55CE88675403C8BCC|B2213DBAC01464AF4ADA5B8AEE971F989EDDB7D3E68B44D7DDC9870157E10EA61EEE6B07B9CFB4B24B420C78B02E5302CE296DF22889FD27DB64DCF58C635867CCB46CFE2C17DDCD290587A37ECB27AF7685322D741B7E94F0442B54F2BD25E7E9A3AAFBC054D4B64A9EC8220159A70F3D2D7F07302AF2B035D60DE7EB89DA6ADE9FB9D9202AED22AF7BE2D4515B93979B1B16C53E1E|E68E423F5C79E5D5ADEC6CBBE66457F9E2D796A6A28121DB6D38E9C36845D6CA2199DED1532E506469D45014C4203AFB07CE2E94B32C06656D65D0238E216D6715A1994C8485A6B487313CCC310C174DFDEDBB99164216F3937963EC5D2DD54867E7FD2285EC778128790D82EE3834604D8325A064D350D28AA5B70A21B8575A5AF365480DF3C610753A709C3492045A45039ED80834|3D88419BE23923AAC40154C4141CE1507A0314A091B380FC677487E15195AD6E9B8C285ACF5735E1DF6C4FEC798AC2D30DE68CCFDF87DA890744336DB040582E53E52887F3867F22CD32C024649382DCB1B2D46909DC8E14B09D538A23C6309E13209892613ADF85666902ADC6B62473C056BBFD6AEE25765714D55532F4FD0701211044F9EF7A76D24F029ED9E04CF978DEC9CC0A32|9ADB5E61F34C0C8DEFC21EC7737198D5D73F6085AE67C358B0C0BA2FE63093EF6B377F4DB066102F3B8CCA0F7ACA720AA4D70F6E875B33331805AF3390DCA5BF2E2D5B3CF14A24702E304A229BB4DCE54EB0890E2024681e44B35ABB6DC9E5EE50BDF4D6E35175AB29D3F561011966327C9E4DE52979E09C44A37A51478B95191EB3B90D38F7618992E5B81E411eF2B4D184EBF6BE|860104dD62E583410c6dF7e0551314FEdAF7F4D1Ccb4502830B0CF6FCDAaFDdB1d9D02EE1413AE6A29DE56eE4A711BB1313D195e61140DBCB037402E13B8C267B86D163F1815C2C8955E4520A7B817B851175F1A13C4CAB4aC1C898B88918AD3122815F2DA05813A68D2089291E977E12|181161D14524F9F72B83EA282BFBCDA395DEDC2ECE4133F5DA011D01A468837EB8EA917CC3B9F0C972E8958DFAF8717754D6A67B1D2CD14524E18514AC7F1384875DBA5965D42A5D8E2C6F6059A9A4A0D4F4F226A8F96072FEDFCCC2F6F69AEEAFA9FCFB94996BE6B98E569B9EA89E5FB8E9D97C7ACAC7E6AA6F9E9DB0A0AA56BE817BCACACF63CFCEEBE86F69D0FDCCE5E89C12FEe|4A2123D52E06B38D95dDBC5C2644482B2B8AE7EA1dE19C8D8A7E553C15DCD2D5dCA95DAC5E4DB9F62dDBD9BC9F95E49291484C50FAB36C9A6343E57B63BED7DA92392FD7CEC2d95eD0BBC1759980ADC0DFE5BFD2E0CC84C0D0C5CDD25EdC7C3C1dF1C69658F1F98E61693CA86567FB4C2688A259cC5A5C18ACAEBdC6A5D1A4845C5D531ADDCFA2D67F45AA3B33dC667|8A98DB3C59BA16265173A278B7F5Dd8F7A05CC3A192973C5D64488B775BA64E1B44475F714B96646DC4D02154F171A46F1842ECA991F8C12FED8F11F1CFC4D8BEF3F8FA2C3248862E0A1CA18BB670A3DD0A0D460A0D4655D3EBCDdD579DAC734879694E3A719686D18A56418775A47BD9A36773D98BC8EB4B73A7DC96B52A0951184B0D8BEF31E4AB3B1B7A1848BD4AAB5D2B1B7A14A67C5|BF2D305E8D34855E26a9FC2dC380B75174BED869349648B31E4BCCD150B159B6E6A36079C9EEd7BD76CdE648E4F6C29BAEAEA2dBA8AB74957C0C2F3E5D8dF285AAd45E0C18CBEE7A437942DDDde216C54DDF78F6174618BE767D89A7C7C8B59234172A3AD680C866D82789410869FBD19CDA087CB5980E78F5CAD5054A0AE7C321727308B113C2A573F2F0F4EA36E68|2A3D2FBCD0A4F7dD1AE708AF5ADBDF8D4DCB1E6d7AAEB38FAF6E101811B6C4B0dBEC4D06F71DFCC65BBD8BAD77856FDdB6E67347B8EDd47C3F2F89E8B834C37A1C261E2dCA3B491F52A09593B7D3647AAAD7ccD43F4E5DA4BD74dC49Ad6044CAD5C974A05B7383689B4427BE8B94d8C63D9c88ADC8D5A37dFDACAE488A1E997CC52A095849B50618C73C9DCB6|D1CEBC914927aDe04AE7C8C6F8EBbFBD0C75D65C3e7Ce9F3Ce8873e98A646648E8EC7E6827D4E6FA573737D83DFB7ADd2525E49F76F3EAF2FBF794d6E6EE20106A017174B2722e892F9CCB9685D1D215EDEA35C7F1186F3F67801C655567905D8DF64041A92E2EE38B97FBC197B5B3B3FEDD96FDD1F2DB391988010442e11eCE7498E6eeFC88eA3D2e447D|2263093BDB09F0d5EBCE86C7A7124AA9D2B5C770EC7E207CBB60B3E89080A1C0CdFA3C7CE96C514B18B09F09AFD408F8EeE4FA30715480DAdF3C513A107E7109AFD40815480D2D992A98BB7B5D5F307C833D4057217FA4328B932E3064220A1C0CB3C45E7EBC7D7CBC803A3D1E7B812B6E9C30ABB53B3E772615341587AD565D5F30|D0B85D648F8CF892eF9F29BA7D3EdAF168676A35F0C963dEF7AC6D332AC8827F3D864dFE49D3ED62B2AD61687C3DB0A89AB07286F6B899CEA95C6E581CCFB999F5A864B4CC9D516862D4F8A24E150ACF6E27718E258F889ED0C8996F685BB3AC29E9D23670370C7867669D721AB4DA55B06F52324C1936773D98BC8E483E46D8BEF313706B38384F738C5EdDEb64e998A50|173C64648F8C51CdF95cA7D3EF03343C676A35C49D35dEF7AC6D332B0EBBAE1dB6dFE499E68e181F03687C3DCDdD5DEFCdE3DEF22F2F696E6EBE03639F55D3EBF1C4B5e0A3F52A0951184B011B08C7DC96B9A9865CCCD6DdE23EFDFDB7FAB07A70370C786766e25595B93E09893BD5A809F36773D98BC8EF2CA8ED8BEF313706B38384F2CA6CB08F4BA8DF36E998A50|64eeC864eA08Cee64a6432e6464e64|4682B49ACD32708090CD853FB22222dA5bcd45eA0522DdD7e3CB37154A9DD6A5ACD4169E19370DBBA55D366CDAAD8BFD8d69B4DB7093|8Beb8Ce8B4513B8860B808e06B8E23556B2Fe64e2E8B57e8B8BeBdF4682B4ee80483D8B4Be828e080DC143Ca94eD3|468966dF0A5dB03BB649268E28e|7D8A2EC9D787F9D690dC0A9d8598|393A3DDBe485D9E9BC8DBBFE0FCEB|595441B9B09DDDE8EB69BFDE4A8797|7D7E9ABFC7B2D8D6B0D0C3B39B7A76|C44C51dB6B8dEFB6A2B5BF5F8CA3|FCdF5D1DBBD91AA9D3E606F193441|B0CC99677E52B7CA79F6E8B189725B|F7F2B2ADCF4F84815B4A1A2C8E3557|E8E595D0A82540627C26393DdFAE4|5A1FeD1570DFDE792477725A9CC66|595241B8AE9CDED7C6ACCFCC8A0917|66858D93A299C0BFA9dE7D5dBEAC|dF0A3B8CC6E4B6e0E4F8de4460|C7F2F547A0A1781515B8864CD9C39C|3B180182561AdF3D2ABB8864F462E|C3d939698656A4A2CC1420Ed8C47|759C52C2E858dE3A6E8A2989C5241|123B4AE6cC7C09AdE427dA908|ED9877B0B9ADAE555B485566837076|B8ECD7083643B1Ee1CEF09D476C5E|323240968C63FDdC9dD175C3C967|F0E14CdBB20FA7B12E8530559CC0D|4059529C9B7AdD393d974d54F29|762B1B807227CCBF7AdEF9860B0A1|5D4970372049F1BAF3FAEEd59535E|F9EBAE7898983C6573E8B54DB14D1C|B9121B4C1B1BF6E497FCFAE1BD8D46|B6D09C7273685C5C66533E3ECC9585|8F9AB3B0D0Dd1F3F0dACA1A61618|d5B2BB1221C34393E8CC6D7dDA8C|E51E19FC7529F9F23D8DEA550962B4|FD814C2DD5ECd364DA1F886dF37D|324732EADAD27E1F2DA1861D97A9CA|FA5E73E6DDD399CE5D43456DEB9765|3A8394C6EDF7D9F2B0dD1C1B71E4F|463531F57C75C380C921D4F6A5EBB0|997F87F7D6CDE6FCB5C5E0DC454B65|463531F57C75C380C921D4F6A5EBB0|070707FBDB5BEC360880C3d448B14|E37484CEDDE499B18DE9CD6CEAB79A|CAD6C35E7277F99DB1FBBFCCF6E1DC|F9FDF32B3532D33D3EC3B9ADe5773|94B13A2C81C06B4687960303F16723|DCE7B5B0C4CEFE4F13E6384D17304B|DA1C1C68DA1CF1E80821A4D8FC6A08|D3B569E29351C95B406D9DC54C507CB4F4F78BEFEA23877B03576019303A|003049D62828F77F00FCBF49EAE2B7|2F485833669986BBD89EE493DAF7DC|813405D45113F9A03FF8DDA4F1F9C2".replace(/e/g,
"00").replace(/d/g,"FF").replace(/c/g,"FFFF").replace(/b/g,"00FF").replace(/a/g,"000000").split("|"),Lu=Object.prototype.hasOwnProperty,Fs="object"==typeof global&&global&&global.Object===Object&&global,XA="object"==typeof self&&self&&self.Object===Object&&self,sd=Fs||XA||Function("return this")(),Ti=sd.Symbol,Sf=Object.prototype,rb=Sf.hasOwnProperty,ab=Array.isArray,Mu=Sf.toString,zj=pn(Object.getPrototypeOf,Object),eh=Function.prototype.toString,Nu=eh.call(Object),Oj=function(c){return function(a,
b,d){var e=-1,f=Object(a);d=d(a);for(var g=d.length;g--;){var h=d[c?g:++e];if(!1===b(f[h],h,f))break}return a}}(),Gs=Sf.propertyIsEnumerable,Re=qn(function(){return arguments}())?qn:function(c){return Tc(c)&&rb.call(c,"callee")&&!Gs.call(c,"callee")},Hs="object"==typeof S&&S&&!S.nodeType&&S,Is=Hs&&"object"==typeof module&&module&&!module.nodeType&&module,Js=Is&&Is.exports===Hs,Ui=Js?sd.Buffer:void 0,Se=(Ui?Ui.isBuffer:void 0)||Ou,Kn=Ui?Ui.allocUnsafe:void 0,Pu=/^(?:0|[1-9]\d*)$/,Ea={};Ea["[object Float32Array]"]=
Ea["[object Float64Array]"]=Ea["[object Int8Array]"]=Ea["[object Int16Array]"]=Ea["[object Int32Array]"]=Ea["[object Uint8Array]"]=Ea["[object Uint8ClampedArray]"]=Ea["[object Uint16Array]"]=Ea["[object Uint32Array]"]=!0;Ea["[object Arguments]"]=Ea["[object Array]"]=Ea["[object ArrayBuffer]"]=Ea["[object Boolean]"]=Ea["[object DataView]"]=Ea["[object Date]"]=Ea["[object Error]"]=Ea["[object Function]"]=Ea["[object Map]"]=Ea["[object Number]"]=Ea["[object Object]"]=Ea["[object RegExp]"]=Ea["[object Set]"]=
Ea["[object String]"]=Ea["[object WeakMap]"]=!1;var nm=Js&&Fs.process;a:{try{var om=nm&&nm.binding&&nm.binding("util");break a}catch(c){}om=void 0}var Ks=om&&om.isTypedArray,gh=Ks?rn(Ks):Qu,Ru=pn(Object.keys,Object),ih=function(c,a){return function(b,d){if(null==b)return b;if(!yd(b))return c(b,d);for(var e=b.length,f=a?e:-1,g=Object(b);(a?f--:++f<e)&&!1!==d(g[f],f,g););return b}}(function(c,a){return c&&Oj(c,a,Te)}),Vi=Array.prototype,YA=Vi.splice;Uc.prototype.clear=function(){this.__data__=[];this.size=
0};Uc.prototype["delete"]=function(c){var a=this.__data__;c=jh(a,c);if(0>c)return!1;c==a.length-1?a.pop():YA.call(a,c,1);--this.size;return!0};Uc.prototype.get=function(c){var a=this.__data__;c=jh(a,c);return 0>c?void 0:a[c][1]};Uc.prototype.has=function(c){return-1<jh(this.__data__,c)};Uc.prototype.set=function(c,a){var b=this.__data__,d=jh(b,c);0>d?(++this.size,b.push([c,a])):b[d][1]=a;return this};var pm=sd["__core-js_shared__"],un=function(){var c=/[^.]+$/.exec(pm&&pm.keys&&pm.keys.IE_PROTO||
"");return c?"Symbol(src)_1."+c:""}(),Uu=/^\[object .+?Constructor\]$/,Tu=RegExp("^"+eh.call(rb).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Sg=Vd(sd,"Map"),Tg=Vd(Object,"create");Wd.prototype.clear=function(){this.__data__=Tg?Tg(null):{};this.size=0};Wd.prototype["delete"]=function(c){c=this.has(c)&&delete this.__data__[c];this.size-=c?1:0;return c};Wd.prototype.get=function(c){var a=this.__data__;return Tg?(c=a[c],"__lodash_hash_undefined__"===
c?void 0:c):rb.call(a,c)?a[c]:void 0};Wd.prototype.has=function(c){var a=this.__data__;return Tg?void 0!==a[c]:rb.call(a,c)};Wd.prototype.set=function(c,a){var b=this.__data__;this.size+=this.has(c)?0:1;b[c]=Tg&&void 0===a?"__lodash_hash_undefined__":a;return this};Vc.prototype.clear=function(){this.size=0;this.__data__={hash:new Wd,map:new (Sg||Uc),string:new Wd}};Vc.prototype["delete"]=function(c){c=kh(this,c)["delete"](c);this.size-=c?1:0;return c};Vc.prototype.get=function(c){return kh(this,c).get(c)};
Vc.prototype.has=function(c){return kh(this,c).has(c)};Vc.prototype.set=function(c,a){var b=kh(this,c),d=b.size;b.set(c,a);this.size+=b.size==d?0:1;return this};nc.prototype.clear=function(){this.__data__=new Uc;this.size=0};nc.prototype["delete"]=function(c){var a=this.__data__;c=a["delete"](c);this.size=a.size;return c};nc.prototype.get=function(c){return this.__data__.get(c)};nc.prototype.has=function(c){return this.__data__.has(c)};nc.prototype.set=function(c,a){var b=this.__data__;if(b instanceof
Uc){var d=b.__data__;if(!Sg||199>d.length)return d.push([c,a]),this.size=++b.size,this;b=this.__data__=new Vc(d)}b.set(c,a);this.size=b.size;return this};Xd.prototype.add=Xd.prototype.push=function(c){this.__data__.set(c,"__lodash_hash_undefined__");return this};Xd.prototype.has=function(c){return this.__data__.has(c)};var lh=sd.Uint8Array,Wi=Ti?Ti.prototype:void 0,Uf=Wi?Wi.valueOf:void 0,qm=Object.getOwnPropertySymbols,Gj=qm?function(c){if(null==c)return[];c=Object(c);return Aj(qm(c),function(a){return Gs.call(c,
a)})}:yn,rm=Vd(sd,"DataView"),sm=Vd(sd,"Promise"),Ef=Vd(sd,"Set"),tm=Vd(sd,"WeakMap"),ZA=Ud(rm),$A=Ud(Sg),aB=Ud(sm),bB=Ud(Ef),cB=Ud(tm),Ac=xd;if(rm&&"[object DataView]"!=Ac(new rm(new ArrayBuffer(1)))||Sg&&"[object Map]"!=Ac(new Sg)||sm&&"[object Promise]"!=Ac(sm.resolve())||Ef&&"[object Set]"!=Ac(new Ef)||tm&&"[object WeakMap]"!=Ac(new tm))Ac=function(c){var a=xd(c);if(c=(c="[object Object]"==a?c.constructor:void 0)?Ud(c):"")switch(c){case ZA:return"[object DataView]";case $A:return"[object Map]";
case aB:return"[object Promise]";case bB:return"[object Set]";case cB:return"[object WeakMap]"}return a};var av=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$u=/^\w*$/,um=function(c,a){if("function"!=typeof c||null!=a&&"function"!=typeof a)throw new TypeError("Expected a function");var b=function(){var d=arguments,e=a?a.apply(this,d):d[0],f=b.cache;if(f.has(e))return f.get(e);d=c.apply(this,d);b.cache=f.set(e,d)||f;return d};b.cache=new (um.Cache||Vc);return b};um.Cache=Vc;var dB=/^\./,eB=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,
fB=/\\(\\)?/g,bv=function(c){c=um(c,function(b){500===a.size&&a.clear();return b});var a=c.cache;return c}(function(c){var a=[];dB.test(c)&&a.push("");c.replace(eB,function(b,c,e,f){a.push(e?f.replace(fB,"$1"):c||b)});return a}),Vf=1/0,An=Wi?Wi.toString:void 0,Jj=0/0,Dn=/^\s+|\s+$/g,hv=/^[-+]0x[0-9a-f]+$/i,ev=/^0b[01]+$/i,fv=/^0o[0-7]+$/i,gv=parseInt,oh=Math.max,gB=function(c){return function(a,b,d){var e=Object(a);if(!yd(a)){var f=ae(b);a=Te(a);b=function(b){return f(e[b],b,e)}}b=c(a,b,d);return-1<
b?e[f?a[b]:b]:void 0}}(En),ph=function(){try{var c=Vd(Object,"defineProperty");c({},"",{});return c}catch(a){}}(),hB=Date.now,Hn=function(c){var a=0,b=0;return function(){var d=hB(),e=16-(d-b);b=d;if(0<e){if(800<=++a)return arguments[0]}else a=0;return c.apply(void 0,arguments)}}(ph?function(c,a){return ph(c,"toString",{configurable:!0,enumerable:!1,value:iv(a),writable:!0})}:$d),iB=Mj(function(c,a,b,d){be(a,de(a),c,d)}),jB=ce(function(c){c.push(void 0,jv);return Kj(iB,void 0,c)}),Ls=Object.create,
kv=function(){function c(){}return function(a){if(!yb(a))return{};if(Ls)return Ls(a);c.prototype=a;a=new c;c.prototype=void 0;return a}}(),vm=Mj(function(c,a,b,d){rh(c,a,b,d)}),td=ce(function(c){c.push(void 0,On);return Kj(vm,void 0,c)}),Qn=qm?function(c){for(var a=[];c;)Ej(a,Gj(c)),c=zj(c);return a}:yn,tv=/\w*$/,Ba={};Ba["[object Arguments]"]=Ba["[object Array]"]=Ba["[object ArrayBuffer]"]=Ba["[object DataView]"]=Ba["[object Boolean]"]=Ba["[object Date]"]=Ba["[object Float32Array]"]=Ba["[object Float64Array]"]=
Ba["[object Int8Array]"]=Ba["[object Int16Array]"]=Ba["[object Int32Array]"]=Ba["[object Map]"]=Ba["[object Number]"]=Ba["[object Object]"]=Ba["[object RegExp]"]=Ba["[object Set]"]=Ba["[object String]"]=Ba["[object Symbol]"]=Ba["[object Uint8Array]"]=Ba["[object Uint8ClampedArray]"]=Ba["[object Uint16Array]"]=Ba["[object Uint32Array]"]=!0;Ba["[object Error]"]=Ba["[object Function]"]=Ba["[object WeakMap]"]=!1;var kB=Mj(function(c,a,b){rh(c,a,b)}),lB=Ef&&1/Tf(new Ef([,-0]))[1]==Vf?function(c){return new Ef(c)}:
wv,mB=ce(function(c){if(!c||!c.length)return[];var a=0;c=Aj(c,function(b){if(Xf(b))return a=oh(b.length,a),!0});return Bj(a,function(b){return Zd(c,Bn(b))})}),Tn=Ti?Ti.isConcatSpreadable:void 0,nB=ce(function(c,a){if(null==c)return[];var b=a.length;1<b&&qh(c,a[0],a[1])?a=[]:2<b&&qh(a[0],a[1],a[2])&&(a=[a[0]]);return zv(c,th(a,1),[])}),oB=Vi.splice,pB=Vi.join,qB=Vi.reverse,rB=ce(function(c,a){if(Xf(c)){a=th(a,1,Xf,!0);var b=-1,d=sh,e=!0,f=c.length,g=[],h=a.length;if(f)a:for(200<=a.length&&(d=vn,e=
!1,a=new Xd(a));++b<f;){var k=c[b],l=k;k=0!==k?k:0;if(e&&l===l){for(var m=h;m--;)if(a[m]===l)continue a;g.push(k)}else d(a,l,void 0)||g.push(k)}c=g}else c=[];return c}),Ms=Math.min,sB=ce(function(c){var a=Zd(c,Av);if(a.length&&a[0]===c[0]){c=a[0].length;for(var b=a.length,d=b,e=Array(b),f=Infinity,g=[];d--;){var h=a[d];f=Ms(h.length,f);e[d]=120<=c&&120<=h.length?new Xd(d&&h):void 0}h=a[0];var k=-1,l=e[0];a:for(;++k<c&&g.length<f;){var m=h[k],n=m;m=0!==m?m:0;if(l?!l.has(n):!sh(g,n,void 0)){for(d=b;--d;){var p=
e[d];if(p?!p.has(n):!sh(a[d],n,void 0))continue a}l&&l.push(n);g.push(m)}}a=g}else a=[];return a}),tB=function(c){return Hn(Gn(c,void 0,Cv),c+"")}(function(c,a){var b={};if(null==c)return b;var d=!1;a=Zd(a,function(b){b=mh(b,c);d||(d=1<b.length);return b});be(c,Rn(c),b);d&&(b=Yf(b,7,Bv));for(var e=a.length;e--;)Un(b,a[e]);return b}),ea=function(c,a){return(ab(c)?Aj:Su)(c,ae(a))},P=gB,Od=En,kd=jB,la=function(c){return Yf(c,4)},qd=function(c){return Yf(c,5)},A=kB,x=function(c,a){return(ab(c)?Pn:ih)(c,
Qj(a))},B=function(c,a){return(ab(c)?Zd:Sn)(c,ae(a))},wm=function(c,a,b){var d=ab(c)?Pj:uv,e=3>arguments.length;return d(c,ae(a),b,e,ih)},Ia=function(c){if(c&&c.length)a:{var a=-1,b=sh,d=c.length,e=!0,f=[];if(200<=d){if(b=lB(c)){c=Tf(b);break a}e=!1;b=vn;var g=new Xd}else g=f;b:for(;++a<d;){var h=c[a],k=h;h=0!==h?h:0;if(e&&k===k){for(var l=g.length;l--;)if(g[l]===k)continue b;f.push(h)}else b(g,k,void 0)||(g!==f&&g.push(k),f.push(h))}c=f}else c=[];return c},ed=function(c){if(c&&c.length){for(var a=
-1,b=c.length,d=0,e=[];++a<b;){var f=c[a],g=f;if(!a||!Td(g,h)){var h=g;e[d++]=0===f?0:f}}c=e}else c=[];return c},wh=Qe,eo=function(c,a){return null==c?c:Oj(c,Qj(a),de)},Po=mB,ta=nB,Ff=function(c,a){var b=[];if(!c||!c.length)return b;var d=-1,e=[],f=c.length;for(a=ae(a);++d<f;){var g=c[d];a(g,d,c)&&(b.push(g),e.push(d))}a=c?e.length:0;for(d=a-1;a--;)if(f=e[a],a==d||f!==h){var h=f;fh(f)?oB.call(c,f,1):Un(c,f)}return b},jc=sB,tc=function(c,a){return null==c?"":pB.call(c,a)},Eg=function(c,a,b){var d=
null==c?0:c.length;if(!d)return[];b&&"number"!=typeof b&&qh(c,a,b)?(a=0,b=d):(a=null==a?0:Ue(a),b=void 0===b?d:Ue(b));return Sj(c,a,b)},Vq=function(c){return null==c?c:qB.call(c)},re=rB,qb=function(c,a){c=Ue(c);if(1>c||9007199254740991<c)return[];var b=4294967295,d=Ms(c,4294967295);a=Qj(a);c-=4294967295;for(d=Bj(d,a);++b<c;)a(b);return d},Ka=tB,ka=ab,pb=function(c){return"number"==typeof c||Tc(c)&&"[object Number]"==xd(c)},vb=function(c){if(null==c)return!0;if(yd(c)&&(ab(c)||"string"==typeof c||"function"==
typeof c.splice||Se(c)||gh(c)||Re(c)))return!c.length;var a=Ac(c);if("[object Map]"==a||"[object Set]"==a)return!c.size;if(hh(c))return!tn(c).length;for(var b in c)if(rb.call(c,b))return!1;return!0},Ng=function(c,a,b){c=Qe(c);b=null==b?0:Tj(Ue(b),0,c.length);a=Rf(a);return c.slice(b,b+a.length)==a},Oq=function(){var c=arguments,a=Qe(c[0]);return 3>c.length?a:a.replace(c[1],c[2])},Hd=function(c,a,b){if((c=Qe(c))&&(b||void 0===a))return c.replace(Dn,"");if(!c||!(a=Rf(a)))return c;c=c.split("");a=a.split("");
b=-1;for(var d=c.length;++b<d&&-1<Rj(a,c[b],0););for(d=c.length;d--&&-1<Rj(a,c[d],0););a=d+1;d=c.length;a=void 0===a?d:a;return(!b&&a>=d?c:Sj(c,b,a)).join("")},Ug=function(c,a,b){c=Qe(c);a=Rf(a);var d=c.length;d=b=void 0===b?d:Tj(Ue(b),0,d);b-=a.length;return 0<=b&&c.slice(b,d)==a},ra=function(c){if(c&&c.length){for(var a=-1,b=c.length;++a<b;){var d=c[a],e=d;if(null!=e&&(void 0===f?e===e&&!Yd(e):e>f))var f=e,g=d}c=g}else c=void 0;return c},Wa=function(c){return c&&c.length?Vn(c,$d):0},Qo=function(c){var a=
null==c?0:c.length;return a?Vn(c,$d)/a:Jj},ua=function(c,a,b){void 0===b&&(b=a,a=void 0);void 0!==b&&(b=nh(b),b=b===b?b:0);void 0!==a&&(a=nh(a),a=a===a?a:0);return Tj(nh(c),a,b)},Xn=function(c,a){return c.id||a},Aa=Number.isNaN||Dv,Fv=/function ([^\(]+)/,Ev=Array.prototype.concat,zd=Object.prototype.hasOwnProperty,df=function(c){for(var a=[],b=1;b<arguments.length;b++)a[b-1]=arguments[b];return x(a,function(b){return t(b)&&c.push(b)})},xm={},Xi=function(c,a){var b=!1,d,e,f=function(){b?(d=arguments,
e=this):(c.apply(this,arguments),b=!0,f.timeoutId=setTimeout(function(){b=!1;d&&(f.apply(e,d),d=e=null)},a))};f.cancel=function(){clearTimeout(f.timeoutId);b=!1};return f},Ub=function(c,a,b,d){b=b||function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];return JSON.stringify(b)};c=c||ao(a);return uB(c,a,b,d)},uB=function(c,a,b,d){return function(){for(var e=[],f=0;f<arguments.length;f++)e[f]=arguments[f];if(0<e.length){xm.hasOwnProperty(c)||Object.defineProperty(xm,c,{configurable:!1,
enumerable:!1,writable:!1,value:{}});f=xm[c];var g=b.apply(this,e);d&&(g+=b.apply(this,d(this)));if(f.hasOwnProperty(g))var h=f[g];else h=a.apply(this,e),f[g]=h}return h}},Ns=function(){try{return window.localStorage.setItem("test","test"),window.localStorage.removeItem("test"),!0}catch(c){return!1}},Os=function(c,a,b){return function(){for(var d=[],e=0;e<arguments.length;e++)d[e]=arguments[e];if(0<d.length){e=ao(c)+a.apply(this,d);if(!b)var f=(f=window.localStorage.getItem(e))&&JSON.parse(f);if(!f||
b)f=c.apply(this,d),window.localStorage.setItem(e,JSON.stringify(f))}return f}},Hv=/[-]{0,1}[\d]*[\.]{0,1}[\d]+/g,hb=function(c,a){return t(c)?c.pop?c.map(function(b){return hb(b,a)}):a(c):c},Iv=/([a-zA-Z]+)_/g,vB=Object.freeze({__proto__:null,def:t,has:H,removeArrItem:jb,evalPath:C,epa:J,getValType:K,isNull:on,mergeCollections:Xb,noop:Bc,noopRet:Hb,contains:ee,caseInsensitiveProperty:uh,eachKey:Fa,extend:M,extendCopy:X,copy:Ra,extendScoped:Pa,extendScopedNegate:Wc,extendCopyScopedNegate:fe,extendCopyScoped:Ve,
exclude:Ib,plainArray:ja,concatArrays:Xc,plainCommaSplitedString:Uj,arraySum:Vj,plainToArray:function(c){var a=[],b;for(b in c)a.push(c[b]);return a},last:Q,copyIfChanged:function(c,a){var b={},d=!1,e;for(e in a)d||zd.call(c,e)&&c[e]===a[e]||(d=!0),b[e]=a[e];return d?b:null},changesWithExtend:Wj,pick:z,attr:function(c,a,b){var d,e;if(O(a))t(b)?c.setAttribute(a,b):c&&c.getAttribute&&(e=c.getAttribute(a));else if(t(a)&&Sa(a))for(d in a)c.setAttribute(d,a[d]);return e},isString:O,isObject:Sa,isUndefined:U,
isUndefinedOrNull:Jb,keys:ya,keysFlatten:Yn,detect:Cc,detectKey:Zn,pickPaths:function(c,a){var b,d;x(a,function(a){if(d=C(c,a))return b=d,!1});return b},pluckPaths:Xj,setPathVal:Y,setPathValArr:We,applySetting:Dc,applySettingArr:$n,findInArrSimple:vh,compareArrays:Xe,pushDef:df,throttle:Xi,Memoize:Ub,localStorageAvailable:Ns,evalString:Yj,fromLocalStorage:Os,kebabCase:bo,split:Ye,eachCommaSplited:Kb,parseNumber:function(c){return Number(c)},parseMargin:Ec,extractNumbers:Zj,mapRange:co,mapDeep:hb,
expandOptionsProperties:Va,sign:ge,isNaN:Aa,isPlainObject:dh,filter:ea,find:P,findIndex:Od,defaults:kd,defaultsDeep:td,clone:la,cloneDeep:qd,merge:A,mergeWith:vm,each:x,map:B,reduce:wm,uniq:Ia,sortedUniq:ed,toString:wh,forIn:eo,zip:Po,sortBy:ta,remove:Ff,intersection:jc,join:tc,slice:Eg,reverse:Vq,difference:re,times:qb,omit:Ka,isArray:ka,isEqual:function(c,a){return zc(c,a)},isFunction:Gb,isNumber:pb,isEmpty:vb,startsWith:Ng,replace:Oq,trim:Hd,endsWith:Ug,max:ra,sum:Wa,mean:Qo,clamp:ua}),Yb=Math,
wB=Number.MAX_VALUE,ym=Math.floor,Ps=function(c,a,b){void 0===b&&(b=0);return dk(sa(c,b),sa(a,b))},ag=function(c){c=""+Math.abs(c);for(var a=c.length-1,b=a,d=c[b];d&&"."!==d;)d=c[--b];return-1===b?0:a-b},ek=1/Math.pow(10,6),xB=function(c,a){var b,d=[];try{for(var e=xa(c),f=e.next();!f.done;f=e.next()){var g=f.value;d.push([ma(g,a),g])}}catch(k){var h={error:k}}finally{try{f&&!f.done&&(b=e.return)&&b.call(e)}finally{if(h)throw h.error;}}d=ta(d,function(b){return b[0]});return c.length&&d[0][1]},wp=
/^-?\d+\.?\d*$/,Qs=String.fromCharCode(160),yB=Qs+"\u2013"+Qs,Gf=function(c){return c&&c.toLowerCase?c.toLowerCase():c},xb=function(c,a){return c&&-1<c.indexOf(a)},Rs=function(c){return t(c)&&"function"===typeof c.pop&&2===c.length?c.join(yB):c.pop?c.join(", "):c},$r=function(c,a,b){void 0===b&&(b="\u2026");return c.length>a?c.substr(0,a)+b:c},ll=Math.pow,Ss=function(c,a){return c-Math.floor(c/a)*a},je=function(c,a){return a>c[0]&&a<c[1]},Nb=function(c,a){return a>=c[0]&&a<=c[1]},no=function(c,a){return Nb(c,
a[0])&&Nb(c,a[1])},Df=function(c,a){return a.length?[c[0]+a[0],c[1]-a[1]]:[c[0]+a,c[1]-a]},bf=function(c){return c[1]<c[0]?[c[1],c[0]]:c},Za=function(c){return c[1]+c[3]},Ya=function(c){return c[0]+c[2]},Bd=function(c){return c[1]},Ad=function(c){return c[0]},Zc=function(c){return c[0]+c[2]/2},$c=function(c){return c[1]+c[3]/2},pc={b:Za,t:Bd,c:Zc,l:Ad,r:Ya,m:$c,intop:[Bd,Bd,"top"],outtop:[Za,Bd,"bottom"],inbottom:[Za,Za,"bottom"],outbottom:[Bd,Za,"top"],inmiddle:[$c,$c,"middle"],outmiddle:[$c,$c,
"middle"],inleft:[Ad,Ad,"left"],outleft:[Ya,Ad,"right"],inright:[Ya,Ya,"right"],outright:[Ad,Ya,"left"],incenter:[Zc,Zc,"center"],outcenter:[Zc,Zc,"center"],default:function(c,a){c=c.toLowerCase();return 4==c.length?[pc[c[1]],pc[c[3]],pc[c[0]],pc[c[2]]]:pc[c]||pc[a]},x:function(c){return pc.default(c,"incenter")},y:function(c){return pc.default(c,"inmiddle")}},ke={left:Ad,right:Ya,center:Zc,top:Bd,middle:$c,bottom:Za,default:function(c,a){return ke[c.toLowerCase()]||a},x:function(c){return ke.default(c,
Zc)},y:function(c){return ke.default(c,$c)}},zB=function(c){var a=c[0],b=c[1],d=Ya(c),e=Za(c),f=Zc(c),g=$c(c);return function(c){return{tl:[a,b],tr:[d,b],tm:[f,b],bl:[a,e],br:[d,e],bm:[f,e],lm:[a,g],rm:[d,g]}[c.toLowerCase()]}},me=function(c,a){c=zB(c);a=a.split(",");return B(a,c)},Ts=Ya,Us=Za,xo=function(c){return"M"+c[0]+" "+c[1]+" h"+c[2]+" v"+c[3]+" h"+-c[2]+" Z"},$b=function(c){return[c[0],c[1],Ya(c),Za(c)]},ff=function(c){return[c[0],c[1],c[2]-c[0],c[3]-c[1]]},Vs=function(c){return[[c[0],Ya(c)],
[c[1],Za(c)]]},Xr=function(c,a){void 0===a&&(a=4);return me(c,"tl,tr,br,bl"+(5===a?",tl":""))},Hc=function(c,a){return zm(c.slice(0),a)},zm=function(c,a){c[0]+=a[0];c[1]+=a[1];return c},Yi=function(){return"undefined"!==typeof window?window:{}},W=Yi(),ia="undefined"!==typeof document?document:{},AB="performance"in Yi()&&"now"in performance?performance:{offset:Date.now(),now:function(){return Date.now()-this.offset}},Am=W.navigator?W.navigator.userAgent.toLowerCase():void 0,wk=null,vk=null,Bm=[{name:"winphone",
value:"Windows Phone"},{name:"win",value:"Win"},{name:"iphone",value:"iPhone"},{name:"ipad",value:"iPad"},{name:"kindle",value:"Silk"},{name:"android",value:"Android"},{name:"blackberry",value:"BlackBerry"},{name:"macintosh",value:"Mac"},{name:"linux",value:"Linux"}],Zi=function(){var c;for(c=0;c<Bm.length;c+=1)if((new RegExp(Bm[c].value,"i")).test(Am))return Bm[c].name;return"unknown"}(),BB="ipad"===Zi||"iphone"===Zi,CB=function(){var c,a=["ms","moz","webkit","o"],b=0;try{for(var d=xa(a),e=d.next();!e.done;e=
d.next()){var f=e.value;W.requestAnimationFrame=W[f+"RequestAnimationFrame"];W.cancelAnimationFrame=W[f+"CancelAnimationFrame"]||W[f+"CancelRequestAnimationFrame"]}}catch(h){var g={error:h}}finally{try{e&&!e.done&&(c=d.return)&&c.call(d)}finally{if(g)throw g.error;}}W.requestAnimationFrame||(W.requestAnimationFrame=function(a){var c=AB.now(),d=Math.max(0,16-(c-b));b=c+d;return W.setTimeout(function(){return a(b)},d)});W.cancelAnimationFrame||(W.cancelAnimationFrame=function(b){return clearTimeout(b)})};
W.requestAnimationFrame||CB();var Fh=Yi(),Na;(function(c){c[c.None=0]="None";c[c.Currency=1]="Currency";c[c.Number=2]="Number";c[c.Decimal=3]="Decimal";c[c.Exponential=4]="Exponential";c[c.Float=5]="Float";c[c.General=6]="General";c[c.Hexadecimal=7]="Hexadecimal";c[c.Percent=8]="Percent";c[c.NumericSymbol=9]="NumericSymbol";c[c.PowersOfTen=10]="PowersOfTen"})(Na||(Na={}));var Ws=["k","M","B","T","Q"],iw=/^[A-z]+/,jw=/[0-9]+/,pw=/(d{1,4}|f{1,7}|F{1,7}|gg?|K|hh?|HH?|mm?|M{1,4}|ss?|tt?|y{1,4}|z{1,3}|S)/gm,
DB=/^([a-zA-Z]*)([_\-a-zA-Z]*)$/,Xs=function(c){return O(c)?c:c.formatString+c.currency},Ys=function(c){return O(c)?c:c.formatString+c.timeZone+c.month+c.day+c.year+c.hour+c.minute+c.second+c.weekday},EB=function(c,a){return(c||"").toString()+(a?Xs(a):"")},FB=function(c,a){return(c?c:"")+(a?Xs(a):"")},GB=function(c,a){return(c||"").toString()+(a?Ys(a):"")},HB=function(c,a){return(c?c:"")+(a?Ys(a):"")},Cm={year:"numeric",month:"numeric",day:"numeric"},$i={weekday:"long",year:"numeric",month:"long",
day:"numeric"},Dm={hour:"2-digit",minute:"2-digit"},aj={hour:"2-digit",minute:"2-digit",second:"2-digit"},Zs={month:"long",day:"numeric"},$s={month:"long",year:"numeric"},ac=function(c,a){void 0===a&&(a=2);for(c=c.toString();c.length<a;)c="0"+c;return c},bj=function(c,a){void 0===a&&(a=2);for(c=c.toString();c.length<a;)c+="0";return c},bc={d:function(c){return c.getDate().toString()},dd:function(c){return ac(c.getDate(),2)},ddd:function(c,a){return a.format(c)},dddd:function(c,a){return a.format(c)},
f:function(c){return Math.round(c.getMilliseconds()/100).toString()},ff:function(c){return Math.round(c.getMilliseconds()/10).toString()},fff:function(c){return c.getMilliseconds().toString()},ffff:function(c){return bj(bc.fff(c),4)},fffff:function(c){return bj(bc.fff(c),5)},ffffff:function(c){return bj(bc.fff(c),6)},fffffff:function(c){return bj(bc.fff(c),7)},F:function(c){return(c=c.getMilliseconds())?Math.round(c/100).toString():""},FF:function(c){return(c=c.getMilliseconds())?Math.round(c/10).toString():
""},FFF:function(c){return(c=c.getMilliseconds())?Math.round(c).toString():""},FFFF:function(c){return bc.FFF(c)},FFFFF:function(c){return bc.FFF(c)},FFFFFF:function(c){return bc.FFF(c)},FFFFFFF:function(c){return bc.FFF(c)},g:function(c,a){return a.format(c)},gg:function(c,a){return a.format(c)},h:function(c,a){return a.format(c).replace(/\D/g,"")},hh:function(c,a){return ac(a.format(c).replace(/\D/g,""),2)},H:function(c){return c.getHours().toString()},HH:function(c){return ac(c.getHours(),2)},
K:function(c){return c.getTimezoneOffset()?bc.zzz(c):"Z"},m:function(c){return c.getMinutes().toString()},mm:function(c){return ac(c.getMinutes(),2)},M:function(c){return(c.getMonth()+1).toString()},MM:function(c){return ac(c.getMonth()+1,2)},MMM:function(c,a){return a.format(c)},MMMM:function(c,a){return a.format(c)},s:function(c){return c.getSeconds().toString()},ss:function(c){return ac(c.getSeconds(),2)},t:function(c,a){return bc.tt(c,a).substring(0,1)},tt:function(c,a){return a.format(c).replace(/\d/g,
"").trim()},y:function(c){c=c.getFullYear().toString();return parseInt(c.substring(c.length-2)).toString()},yy:function(c){c=c.getFullYear().toString();return c.substring(c.length-2).toString()},yyy:function(c){c=c.getFullYear();return ac(c,3)},yyyy:function(c){c=c.getFullYear();return ac(c,4)},yyyyy:function(c){c=c.getFullYear();return ac(c,5)},z:function(c){c=at(c);return(0<c?"+":"-")+Math.abs(c)},zz:function(c){c=at(c);return(0<c?"+":"-")+ac(Math.abs(c),2)},zzz:function(c){return bc.zz(c)+":"+
ac(c.getMinutes()-c.getUTCMinutes(),2)}},at=function(c){c=c.getHours()-c.getUTCHours();12<Math.abs(c)&&(c-=24*ge(c));return c},mw={D:{options:$i},d:{options:Cm},F:{options:X($i,aj)},f:{options:X($i,Dm)},T:{options:aj},t:{options:Dm},g:{options:X(Cm,Dm)},G:{options:X(Cm,aj)},m:{options:Zs},M:{options:Zs},y:{options:$s},Y:{options:$s},u:{formatString:"yyyy-MM-dd HH:mm:ssZ"},U:{options:X({timeZone:"UTC"},X($i,aj))},s:{formatString:"yyyy-MM-ddTHH:mm:ss"},r:{handler:function(c){return c.toUTCString()}},
R:{handler:function(c){return c.toUTCString()}}},Vg=function(){function c(a,b){var c=this;void 0===b&&(b={});this.locale=a;this.options=b;this.dateTimeFormatters={};this.setLocale=function(b){c.locale!==b&&(c.locale=b)};this.formatDate=function(b,a){return c._formatDate(b,a,c)};this.formatNumber=function(b,a){return c._formatNumber(b,a,c)};this._getDateTimeFormat=Ub("getDateTimeFormat",ew,HB);this._getNumberFormat=Ub("getNumberFormat",fw,FB);this._getCollator=Ub("getCollator",gw);this._formatDate=
Ub("formatDate",lw,GB,function(b){return[b.locale,b.options]});this._formatNumber=Ub("formatNumber",hw,EB,function(b){return[b.locale,b.options]});this.formatString=this.options.formatString}c.prototype.compare=function(a,b){var c=this._getCollator(this.locale,this.options);return c?c.compare(a,b):a===b};return c}(),IB=/_|-/g,nw=function(c){var a=c.split(IB);c=1<a.length?a.pop():c;c=c.toUpperCase();return c in bt?bt[c]:"USD"},bt={AD:"EUR",AE:"AED",AF:"AFN",AG:"XCD",AI:"XCD",AL:"ALL",AM:"AMD",AN:"ANG",
AO:"AOA",AR:"ARS",AS:"USD",AT:"EUR",AU:"AUD",AW:"AWG",AX:"EUR",AZ:"AZN",BA:"BAM",BB:"BBD",BD:"BDT",BE:"EUR",BF:"XOF",BG:"BGN",BH:"BHD",BI:"BIF",BJ:"XOF",BL:"EUR",BM:"BMD",BN:"BND",BO:"BOB",BQ:"USD",BR:"BRL",BS:"BSD",BT:"BTN",BV:"NOK",BW:"BWP",BY:"BYR",BZ:"BZD",CA:"CAD",CC:"AUD",CD:"CDF",CF:"XAF",CG:"XAF",CH:"CHF",CI:"XOF",CK:"NZD",CL:"CLP",CM:"XAF",CN:"CNY",CO:"COP",CR:"CRC",CU:"CUP",CV:"CVE",CW:"ANG",CX:"AUD",CY:"EUR",CZ:"CZK",DE:"EUR",DJ:"DJF",DK:"DKK",DM:"XCD",DO:"DOP",DZ:"DZD",EC:"USD",EE:"EUR",
EG:"EGP",EH:"MAD",ER:"ERN",ES:"EUR",ET:"ETB",FI:"EUR",FJ:"FJD",FK:"FKP",FM:"USD",FO:"DKK",FR:"EUR",GA:"XAF",GB:"GBP",GD:"XCD",GE:"GEL",GF:"EUR",GG:"GBP",GH:"GHS",GI:"GIP",GL:"DKK",GM:"GMD",GN:"GNF",GP:"EUR",GQ:"XAF",GR:"EUR",GS:"GBP",GT:"GTQ",GU:"USD",GW:"XOF",GY:"GYD",HK:"HKD",HM:"AUD",HN:"HNL",HR:"HRK",HT:"HTG",HU:"HUF",ID:"IDR",IE:"EUR",IL:"ILS",IM:"GBP",IN:"INR",IO:"USD",IQ:"IQD",IR:"IRR",IS:"ISK",IT:"EUR",JE:"GBP",JM:"JMD",JO:"JOD",JP:"JPY",KE:"KES",KG:"KGS",KH:"KHR",KI:"AUD",KM:"KMF",KN:"XCD",
KP:"KPW",KR:"KRW",KW:"KWD",KY:"KYD",KZ:"KZT",LA:"LAK",LB:"LBP",LC:"XCD",LI:"CHF",LK:"LKR",LR:"LRD",LS:"LSL",LT:"LTL",LU:"EUR",LV:"LVL",LY:"LYD",MA:"MAD",MC:"EUR",MD:"MDL",ME:"EUR",MF:"EUR",MG:"MGA",MH:"USD",MK:"MKD",ML:"XOF",MM:"MMK",MN:"MNT",MO:"MOP",MP:"USD",MQ:"EUR",MR:"MRO",MS:"XCD",MT:"EUR",MU:"MUR",MV:"MVR",MW:"MWK",MX:"MXN",MY:"MYR",MZ:"MZN",NA:"NAD",NC:"XPF",NE:"XOF",NF:"AUD",NG:"NGN",NI:"NIO",NL:"EUR",NO:"NOK",NP:"NPR",NR:"AUD",NU:"NZD",NZ:"NZD",OM:"OMR",PA:"PAB",PE:"PEN",PF:"XPF",PG:"PGK",
PH:"PHP",PK:"PKR",PL:"PLN",PM:"EUR",PN:"NZD",PR:"USD",PS:"ILS",PT:"EUR",PW:"USD",PY:"PYG",QA:"QAR",RE:"EUR",RO:"RON",RS:"RSD",RU:"RUB",RW:"RWF",SA:"SAR",SB:"SBD",SC:"SCR",SD:"SDG",SE:"SEK",SG:"SGD",SH:"SHP",SI:"EUR",SJ:"NOK",SK:"EUR",SL:"SLL",SM:"EUR",SN:"XOF",SO:"SOS",SR:"SRD",ST:"STD",SV:"SVC",SX:"ANG",SY:"SYP",SZ:"SZL",TC:"USD",TD:"XAF",TF:"EUR",TG:"XOF",TH:"THB",TJ:"TJS",TK:"NZD",TL:"USD",TM:"TMT",TN:"TND",TO:"TOP",TR:"TRY",TT:"TTD",TV:"AUD",TW:"TWD",TZ:"TZS",UA:"UAH",UG:"UGX",UM:"USD",US:"USD",
UY:"UYU",UZ:"UZS",VA:"EUR",VC:"XCD",VE:"VEF",VG:"USD",VI:"USD",VN:"VND",VU:"VUV",WF:"XPF",WS:"WST",YE:"YER",YT:"EUR",ZA:"ZAR",ZM:"ZMK",ZW:"ZWL"},ct=function(c){var a=1E4<=c;c=a?Math.ceil(Math.log(c)/Math.log(1E3))-1:0;c=Math.min(5,c);return a?[c,Ws[c-1]||""]:[0,""]},ow=function(c,a){var b="";if(a&&c){var d=c/Math.pow(1E3,a);b=Ws[a-1]}else 1E4<=Math.abs(c)&&(d=F(ct(c),2),a=d[1],d=c/Math.pow(1E3,d[0]),b=a);return(d||c)+b},jg=function(c,a,b){void 0===b&&(b="en-US");var d=K(c),e="object"===typeof a;b=
new Vg(b,e?a:{});return"date"===d?b.formatDate(c,e?{}:a):b.formatNumber(c,e?{}:a)},dt=function(c){var a;if(a=c)a=DB.exec(c),a=c&&a?(c=a[1])&&c.toLowerCase():void 0;if(c=a)return!!~JB.indexOf(c)},JB="ae ar arc bcc bqi ckb dv fa glk he ku mzn nqo pnb ps sd ug ur yi".split(" "),oa={missed:{},events:{},on:function(c,a,b){var d=this;(this.events[c]||(this.events[c]=[])).push({fn:a,ctx:b});this.missed[c]&&this.missed[c].forEach(function(b){return d.emit.apply(d,G([b.name],b.rest))})},emit:function(c){for(var a=
[],b=1;b<arguments.length;b++)a[b-1]=arguments[b];b=(this.events[c]||[]).slice();b.length?b.forEach(function(b){return b.fn.apply(b.ctx,a)}):((this.missed[c]||(this.missed[c]=[])).push({name:c,rest:a}),"error"===c&&W.console.error("JSCharting Error: Set chart option {debug:true} to view full error messages."))},un:function(c,a){var b=this.events[c],d=[];if(b&&a)for(var e=0,f=b.length;e<f;e++)b[e].fn!==a&&b[e].fn._!==a&&d.push(b[e]);d.length?this.events[c]=d:delete this.events[c]}},He=function(){function c(a){this.stack=
{};var b="undefined"!==typeof window,c=Yi();this._clearFn=(this._forAnimation=!0===a)||!b?dw:c.clearTimeout.bind(c);this._setFn=this._forAnimation||!b?cw:c.setTimeout.bind(c)}c.prototype.defer=function(a,b,c){var d=this.stack[a];d?d.lastBounce=Date.now():this.stack[a]=this.timeout(a,b,c)};c.prototype.clear=function(a){var b=this.stack[a];if(b)return this._clearFn(b.timer),delete this.stack[a],!0};c.prototype.has=function(a){return!!this.stack[a]};c.prototype.run=function(a){var b=this.stack[a];if(b)return this._clearFn(b.timer),
b.fn(),delete this.stack[a],!0};c.prototype.clearAll=function(){var a=this;Fa(a.stack,function(b){a.clear(b)})};c.prototype.timeout=function(a,b,c){var d=this,f=d._setFn,g={timer:null,start:Date.now(),fn:b,lastBounce:Date.now(),delay:c};g.timer=f(function(){var e=Date.now(),f=g.lastBounce+c;e<f?d.stack[a]=d.timeout(a,b,f-e):(b.call(),delete d.stack[a])},c);return g};return c}(),KB=function(){function c(){this.items={};this._onReady={}}c.prototype.hold=function(a){var b=he(6);this.holdItem(b,a);return b};
c.prototype.release=function(a){a&&(delete this.items[a],this.isReady()&&this.triggerFnQueue())};c.prototype.isReady=function(){return 0===Object.keys(this.items).length};c.prototype.onReady=function(a,b){this._onReady[a]=b};c.prototype.unReady=function(a){delete this._onReady[a]};c.prototype.reset=function(){this.items={};this._onReady={}};c.prototype.debug=function(a){};c.prototype.holdItem=function(a,b){this.items[a]=b};c.prototype.triggerFnQueue=function(){var a=Object.keys(this._onReady),b=this._onReady;
this._onReady={};for(var c=0,e=a.length;c<e;c++)b[a[c]]();this._onReady={}};return c}(),LB=function(){function c(){this.callCount=0}c.prototype.open=function(){this.callCount++};c.prototype.close=function(){this.callCount--};return c}(),mb=function(c){function a(b,d){d=c.call(this,b,d)||this;d.items=b;d.kindObject=a;return d}L(a,c);a.prototype.options=function(b,a){var c=this.items.length-1;return this.each(function(d,e){d.options(b,!1===a||c!==e?!1:void 0)})};return a}(function(){function c(a,b){this.items=
a;this.currentOptions=b;this.kindObject=c;this.__collection__=a.slice(0)}c.prototype.find=function(a){return P(this.items,a)};c.prototype.filter=function(a){return this.wrap(ea(this.items,a))};c.prototype.each=function(a){x(this.items,a);return this};c.prototype.sortBy=function(a){return this.wrap(ta(this.items,a))};c.prototype.map=function(a){return B(this.items,a)};c.prototype.reverse=function(){return this.wrap(this.items.slice(0).reverse())};c.prototype.remove=function(a){var b=[];x(this.items.slice(0),
function(c){c.remove?c.remove(a):b.push(c)});this.items=b;return this};c.prototype.wrap=function(a){if(a instanceof this.kindObject)return a;C(a,"__collection__");return new this.kindObject(a)};return c}()),Wg={},cj,dj="circle square triangle triangle-down diamond four-point-star arrow-down arrow-up five-point-star six-point-star seven-point-star".split(" "),et="x y z mapData complete completeX complete.y complete.x name subvalue subvalueX yAxisTick xAxisTick".split(" "),Sr="color marker outline opacity label fill".split(" "),
MB=["selected","muted"],is=["selected","muted"],gb={series:0,body:1,complete:2,error:3,marker:4,breakPath:5,labelConnector:6,label:7},Dr=/<chart \\?.*?>/i,NB=(cj={},cj[1]=function(){return{fill:"#f6f6f6",boxVisible:!0,outline:{width:1}}},cj[0]=function(){return{fill:"rgba(255, 255, 255, 0.5)",boxVisible:!1,outline:{width:0},shadow:!1}},cj),Hf=function(c){void 0===c&&(c=0);return A({radius:5,padding:3,label:{style:{color:"#323232"}},outline:{color:"#bdbdbd"},sortOrder:1},NB[c]())},hf={},ft={iphone:"ios",
ipad:"ios",android:"android",winphone:"winphone"},sw=H(ft,Zi)?ft[Zi]:"default",gg=null,gf=null,Em=["class","className","style","externalResourcesRequired"].concat(["requiredFeatures","requiredExtensions","systemLanguage"],["id","xml:base","xml:lang","xml:space"],"onfocusin onfocusout onactivate onclick onmousedown onmouseup onmouseover onmousemove onmouseout onload".split(" "),"alignment-baseline baseline-shift clip clip-path clip-rule color color-interpolation color-interpolation-filters color-profile color-rendering cursor direction display dominant-baseline enable-background fill fill-opacity fill-rule filter flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-orientation-horizontal glyph-orientation-vertical image-rendering kerning letter-spacing lighting-color marker-end marker-mid marker-start mask opacity overflow pointer-events shape-rendering stop-color stop-opacity stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-align background-color border text-decoration text-rendering unicode-bidi visibility word-spacing writing-mode user-select strokeWidth borderWidth border-width borderColor border-color fontStyle fontSize fontFamily fontWeight z-index zIndex clipPath shadow textDecoration tabindex".split(" "),
["transform","translate","rotate","scale"],["aria-label","role","aria-hidden"]),OB=Em.concat(Em,["x","y","width","height"]),gt=ja(Em),ej=ja(OB),Jy={borderColor:"stroke","border-color":"stroke",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",borderWidth:"stroke-width","border-width":"stroke-width",className:"class",strokeDashArray:"stroke-dasharray",textRendering:"text-rendering",zIndex:"z-index",fontFamily:["fontFamily",function(c){return c.toLowerCase()}],description:"aria-label"},PB=ja("transform radius translate scale z-index animation transition display rotate overflow clipPath opacity visibility tabindex role aria-label".split(" ")),
QB=hg("d path pathLength shape hatch hatchPattern".split(" "),gt),RB=hg(["src"],ej),ht=hg(["rx","ry"],ej),SB=hg(["radius"],ht),TB=ja("id class translate transform rotate animation opacity z-index fill color display cursor tabindex aria-label".split(" ")),Xg=ja("stroke stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width".split(" ")),UB=hg(["fill","fill-rule"],Xg),Ck='A" AW AV Yt Hv Sp vo us fr Dv ry W. Vr LT T: ro xc Ak F" OC w; P, PA r, DY SR yo la wb Bc f? L" m" Xv c" lp Ix Oj YW RX f" VA a" Ku my ot e, il So T" F. FA D, Ru tt st CO Co gy Te w. OA bv fe Fw Xf cv XA YA UA D" aj am he bc VT r: xt 11 AT AY Av Aw Ay F, LV LW LY Ly P. RT RV RW RY T, T- T. T; TA TO Ta Tc Ti To Tr Ts Tu Tw Ty V, V- V. V: V; Va Ve Vi Vo Vu Vy W, W- W: W; WA Wa We Wo Wr Wu Wy Y, Y- Y. Y: Y; Ya Ye Yi Yo Yp Yq Yu Yv ff r. v, v. w, y, y. \'A -A -I -J -P -S -T -V -W -X -Y -Z -a -v -w -x -y -z .. ., .- A- AS AU At Au B, B. BT C- D. DT DW DX DZ F: F; Fa Fe Fo I- J, J. JA K- KO Ka Ke Ko Kv Kw Ky L\' L- LC LG LO Lv O, O. OT OX OY OZ Pa Pe Po Q, Q. R- Ra Re Ro Ry S, S. SA SS Sv Sw Sy TC TG TS TT Tg Tv Tz U, U. X- XC XG XO Xa Xe Xo Xu Xy YO Yd Yg Ym Yn Yr Ys Z- ZC ZG ZO ZZ Za Ze Zo Zw Zy av aw ay b, b. by c- cT eT f, f- f. fy hv hw hy k- ke ko mv mw nv nw ny o, o. ov ox oy p, p. py r- ra t- ty v- va ve w- wa x- xd xe xg xo y- ya yc yd ye yg yq z- zc zd ze zg zo zq Ki Kn Ph Pi Pr Wi AC AG AO AQ BA BU DA DV Fr Ja Je Jo Ju Jy KC KG LU Lw NA OV OW QT QV QY RC RG RO RQ RU TQ Tm VC VG VO VQ WC WG WO Wd YC YG YS at ch ck cl cy eb ev ex fa fo ow pw sw vc vd vq wc wd we wo wq 24 37 41 47 51 52 57 62 67 74 ET KQ KS LQ LS P/ PJ T/ TJ TZ V/ VJ W/ WJ Y/ YJ Yc rg A) L) Pl Rv Td Tk Tl Tp Tq Tt Vl Vp Vs Vv Wl Wp Ws Wv Yl fi fk fl tz vl wl yl'.split(" "),
Ak=["AW","Tw","LW"],VB=String.fromCharCode(8206),Hh="a!\"#$%&\\'() * +,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[] ^ _`bcdefghijklmnopqrstuvwxyz{|}~".split("").concat([169,174,160,8482,34,38,60,62,176,8364,185,178,179,188,189,190,177,180,183,8230].map(function(c){return String.fromCharCode(c)})),it=function(c,a){return c.fontFamily+("normal"!==c.fontWeight?c.fontWeight||"":"")+(a.fontFamily||"")+("normal"!==a.fontWeight?a.fontWeight||"":"")},WB=function(c,a){return it(c,a)+Am},Fk,Gk,uw=Ub("getMetrics",
function(c,a){var b=ia.createElementNS("http://www.w3.org/2000/svg","svg"),d=Dk("A");a.fontFamily&&b.setAttribute("font-family",a.fontFamily);c.fontFamily&&d.setAttribute("font-family",c.fontFamily);d.setAttribute("font-size","100px");d.setAttribute("style","line-height: normal;");b.appendChild(d);ia.body.appendChild(b);c=d.getBBox?d.getBBox():{y:0,height:0};b.parentNode.removeChild(b);return{descent:(c.height+c.y)/100,height:c.height/100}},function(c,a){return c.fontFamily+(a.fontFamily||"")}),ig=
Ub("getTextMeasurement",function(c,a,b,d){var e=a.fontSize,f=XB(a,b);a:if(f){for(var g=0,h=0,k,l=0,m=c.length;l<m;l++){var n=c[l],p=f.stringWidths[n];if(!p)if(n===VB)p=0;else{d=null;break a}g+=Ek(p,e);l&&f.kerning&&!d&&(k=Ek(f.kerning[k+n]||0,e),h+=k);k=n}d=g-h}else d=null;return null===d?Ek(Bk([c],a,b)[c],e):d},function(c,a,b,d){return c+a.fontSize+a.fontFamily+a.fontStyle+a.fontWeight+b.fontSize+b.fontFamily+b.fontStyle+b.fontWeight+d}),YB=Ns()?function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=
arguments[a];return Os(Lo,WB).apply(null,c)}:Lo,XB=Ub("loadFontData",YB,it),yw=/((\D?)(-|\+?)([0-9]{1,3}(,?[0-9])*)((\.[0-9]+|\.)?|\.[0-9]+)(\S*))/g;(function(c){c=c.String.prototype;(function(a,b){if(b in a?!a[b]:1){var c=/^\s+/;a[b]=a.trimLeft||function(){return this.replace(c,"")}}})(c,"trimStart");(function(a,b){if(b in a?!a[b]:1){var c=/\s+$/;a[b]=a.trimRight||function(){return this.replace(c,"")}}})(c,"trimEnd")})(window);var fj=Math.round,Jh=function(c){return[c[0]/255,c[1]/255,c[2]/255]},
Mo=function(c){return[fj(255*c[0]),fj(255*c[1]),fj(255*c[2]),c[3]]},Zo=function(c){return.2126*c[0]+.7152*c[1]+.0722*c[2]},ep=function(c,a,b){c.pop&&(b=F(c,3),c=b[0],a=b[1],b=b[2]);return Ic("yuv",$o(Jh([c,a,b])))},$o=function(c,a,b){c.pop&&(b=F(c,3),c=b[0],a=b[1],b=b[2]);return[Zo([c,a,b]),-.09991*c+-.33609*a+.436*b,.615*c+-.55861*a+-.05639*b]},ZB=function(c){for(var a=[],b=1;b<arguments.length;b++)a[b-1]=arguments[b];a=ap.apply(void 0,G([c],a));return[255*a[0],255*a[1],255*a[2]].map(fj)},ap=function(c,
a,b){c.pop&&(b=F(c,3),c=b[0],a=b[1],b=b[2]);return[ua(c+5.8E-6*a+1.28033*b,0,1),ua(c+-.21482*a+-.38059*b,0,1),ua(c+2.12798*a+1.1E-5*b,0,1)]},Cw=pe("colors").members,No={},Oo={},jt={},Hk=function(c){var a=jt[c];!a&&(a=kf.hexColor.exec(c))&&(a=[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)],jt[c]=a);return a},kf={rgba:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,rgb:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,hsl:/hsl\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*%,\s*([0-9]{1,3})\s*%\)/,
hsla:/hsla\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})%\s*,\s*([0-9]{1,3})%\s*,\s*([0-9]?(?:\.[0-9]+)?)\)/,hexColor:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,hexShort:/#([a-fA-F0-9]{1})([a-fA-F0-9]{1})([a-fA-F0-9]{1})/},$B={r:0,g:1,b:2,h:0,s:1,l:2,a:3,y:0,u:1,v:2},Yg={r:255,g:255,b:255,h:1,s:1,l:1,a:1,y:1,u:.5,v:1},Fm={r:0,g:0,b:0,h:0,s:0,l:0,a:0,y:0,u:-.5,v:0},kt={lighten:"hsl(,,+.1)",lightenmore:"hsl(,,+.2)",darken:"hsv(,,-.1)",darkenmore:"hsv(,,-.2)",brighten:"hsl(,+.8,+.3)",desaturate:"hsl(-360,-1,)",
complement:"hsl(%+180,,)",contrast:"yuv(+-.7,,)"},pg=function(c){return kt[O(c)&&c.toLowerCase()]||null!==aC.exec(c)},bC=/[-+*/%]*%?/,cC={"+":function(c,a,b){return c+a},"-":function(c,a,b){return c-a},"*":function(c,a,b){return c*a},"/":function(c,a,b){return c/a},"%+":function(c,a,b){return(c+a)%Yg[b]},"%-":function(c,a,b){return(c-a)%Yg[b]},"+-":function(c,a,b){a=Math.abs(a);return c+(c>=Fm[b]+(Yg[b]-Fm[b])/2?-a:a)}},aC=/[+\-*/%]/,lt={prefix:/(.{3,4})\(/,rgb:/rgb[\s|\(]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))\s*\)?/,
rgba:/rgba[\s|\(]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))\s*\)?/,hsl:/hsl[\s|\(]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))\s*\)?/,hsla:/hsla[\s|\(]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))\s*\)?/,
yuv:/yuv[\s|\(]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))\s*\)?/,hsv:/hsv[\s|\(]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))[,|\s]+((?:[%\-\+*/]*\d*\.\d+%?)|(?:[%\-\+*/]*\d*%?))\s*\)?/},te=function(c,a){return Lh(a)(na(c))},Gm={},Lh=function(c){c=c&&c.toLowerCase();if(!Gm[c]){c=kt[c]||c;var a=function(){var b,a={};if(pg(c)){if(b=lt.prefix.exec(c))var d=
b[1];if(b=lt[d].exec(c))var h=b.slice(1);for(b=0;b<h.length;b++){var k=bC.exec(h[b])[0];a[d.charAt(b)]=h[b].length?[cC[k],parseFloat(h[b].substr(1))]:[]}a.format=d}return a}(),b=[];0===a.format.indexOf("hsl")&&b.push(jf);0===a.format.indexOf("yuv")&&b.push(ep);0===a.format.indexOf("hsv")&&b.push(Aw);var d=0<b.length;b.push(function(){var b=a.format,c=0===b.indexOf("hsl"),d=function(b){var c=a[b],d="h"===b?360:1,e=c[0],f=c[1],g=$B[b];return function(a){var c=e(a[g],f/d,b);c="h"===b?c%Yg.h*(0>c?-1:
1)+(0>c?1:0):ua(c,Fm[b],Yg[b]);a[g]=c}},h=[];a.format.split("").forEach(function(b){a[b].length&&h.push(d(b))});return function(a){h.forEach(function(b){return b(a)});c?a=fd.call.apply(fd,G([null],a)):"yuv"===b?a=ZB.call(null,a):"hsv"===b&&(a=Bw.call(null,a));return qa(a,4===a.length?"rgba":"rgb")}}());Gm[c]=function(a){var c=na(a);a=0;for(c=d?b[a++](c[0],c[1],c[2],c[3]):c;a<b.length;)c=b[a++](c);return c}}return Gm[c]},cc=function(c,a,b){return b*(a-c)+c},Oa={crysDark:"crysDark",crysBright:"crysBright",
hueEffect:"hueEffect",hover:"hover",select:"selected",outline:"outline",outlineContrast:"outlineContrast",label:"label",labelContrast:"labelContrast",seriesLine:"seriesLine",lightenDark:"lightenDark",currentColor:"currentColor"},Ja={gaugePolarBack:"gaugePolarBack",titleBox:"titleBox",box:"box",chartArea:"chartArea",altGridFillY:"altGridFillY",altGridFillX:"altGridFillX",altGridFillRad:"altGridFillRad",axisMarkerY:"axisMarkerY",axisMarkerX:"axisMarkerX",jsButton:"jsButton",jumpButton:"jumpButton",
areaFill:"areaFill",navBar:"navBar",aqua:"aqua",rounded:"rounded",cushion:"cushion",subtle:"subtle"},dC=ya(pe("palette").members),Mw=B(dC,function(c){return c.toLowerCase()}),gj=function(c){return"hatch"===c?(c=pe("hatchStyle").members,delete c.none,ya(c)):Nh(c)},mt=function(c,a){var b=F(a,2);a=b[1];var d=[];b=0>b[0];var e=function(b){for(var a=0;a<b.length;a++)if(-1<d.indexOf(b[a]))return!0};if("object"===K(c)){d=ya(c);var f=e(["colors","stops"]),g=e([,"ranges","stops"])}e="#b00026 #bd0026 #e31a1c #fc4e2a #fd8d3c #feb24c #fed976 #ffeda0".split(" ");
var h="#edf8b0 #c7e9b4 #7fcdbb #41b6c3 #1d91c0 #225ea8 #253494 #081d58".split(" "),k=e.slice(0);k.push("#ffffff");k.push.apply(k,G(h));e.push("#ffffff");h.unshift("#ffffff");return A({colors:f?void 0:g?h:k,colorsValueRange:g?void 0:f&&!b?[0,a]:[-a,a],pointValue:function(b){return b.currentOptions.z}},c||{})},nf={},Tw=Uj("width,height,x,y"),bs=function(c){return"string"===typeof c?B(c.split(","),parseFloat):c},Ph,rp=function(){function c(a,b){this._callStack=[];var c=this;c._callback=b;a=Array.isArray(a)?
a:[a];var e,f,g=function(b,a){return function(){op(b,function(){return a()})}};for(b=function(){var b=f||c.loaded;f=g(e,function(){return b.call(c)})};e=a.pop();)b();f()}c.prototype.then=function(a,b){this._callStack.push([a,b]);return this};c.prototype.catch=function(a){return this.then(null,a)};c.prototype.loaded=function(){for(var a=this._callback(),b=-1,c=this._callStack.length;++b<c;)a=a.then.apply(a,this._callStack[b])};return c}(),Qh,Z=function(c){return c.getMonth?c:new Date(c)},id=function(c){return Z(c).getTime()},
Yw=z(0,0),nt={weekday:[0,6],dayofyear:[1,365],minuteofday:[0,1440]},Hm={years:12,decade:11,year:10,quarter:9,month:8,week:7,dayofyear:6.2,day:6.1,weekday:6,hour:3,minuteofday:2.1,minute:2,secondofhour:1.1,second:1},eC=[,"second","minute","hour",,,"day","week","month","quarter","year","decade","years"],Rh={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,quarter:72576E5,year:314496E5,decade:314496E6},fC=function(c){return c},gC=[[["year",100],["year",50]],[["year",
100],["year",25]],[["year",50],["year",25]],[["year",50],["year",10]],[["year",25],["year",5]],[["year",10],["year",5]],[["year",10],["year",2]],[["year",10],["year",1]],[["year",1],["month",6]],[["year",1],["month",3]],[["year",1],["month",1]],[["month",1],["day",15]],[["month",1],["day",5]],[["month",1],["day",2]],[["month",1],["day",1]],[["day",1],["hour",12]],[["day",1],["hour",6]],[["day",1],["hour",3]],[["day",1],["hour",1]],[["hour",1],["minute",30]],[["hour",1],["minute",15]],[["hour",1],
["minute",10]],[["hour",1],["minute",5]],[["hour",1],["minute",1]],[["minute",1],["second",30]],[["minute",1],["second",10]],[["minute",1],["second",1]],[["second",1],["millisecond",500]],[["second",1],["millisecond",200]],[["second",1],["millisecond",100]],[["second",1],["millisecond",50]],[["second",1],["millisecond",10]],[["second",1],["millisecond",1]]],hC=B("year,getFullYear month,getMonth weekday,getDay day,getDate hour,getHours minute,getMinutes second,getSeconds millisecond,getMilliseconds".split(" "),
function(c){return c.split(",")}),ot=function(){var c=hC.slice(0);jb(c,P(c,function(a){return"weekday"===a[0]}));return c}(),pt={},Th=[];x(ot,function(c,a){return Th[pt[c[0]]=a]=c[0]});for(var Wk=function(c){return pt[c]},Im,$w=function(){if(!Im){var c=function(a){return{unit:a[0],multiplier:a[1]}};Im=B(gC,function(a){return{major:c(a[0]),minor:c(a[1])}})}return Im},Xk=Ub("significantUnitFn",function(c){c.getMonth||(c=new Date(c));var a=ot.slice(0),b=B(a,function(b){return b[0]});b.reverse();var d=
{};x(a,function(b){d[b[0]]=c[b[1]]()});--d.day;var e;x(b,function(b){if(0<d[b])return!(e=b)});return e},function(c){return c}),qt=function(){function c(a){var b=this;this.weekStart=a;this.fns={decade:function(b){return parseInt(b.getFullYear().toString()[2])},year:function(b){return b.getFullYear()},quarter:function(b){return Math.floor((b.getMonth()+3)/3)},month:function(b){return b.getMonth()+1},dayofyear:function(b){var a=new Date(b.getFullYear(),0,0);return Math.floor((b-a)/864E5)},day:function(b){return b.getDate()},
weekday:function(a){a=a.getDay()-b.weekStart;return 0>a?7+a:a},week:function(a){var c=a.getFullYear(),d=new Date(c,0,1);a=new Date(c,a.getMonth(),a.getDate());return Math.ceil(((a-d)/864E5+b.fns.weekday(d)+1)/7)},hour:function(b){return b.getHours()},minuteofday:function(b){return 60*b.getHours()+b.getMinutes()},minute:function(b){return b.getMinutes()},secondofhour:function(b){return 60*b.getMinutes()+b.getSeconds()},second:function(b){return b.getSeconds()},millisecond:function(b){return b.getMilliseconds()},
none:function(b){return 0},date:function(b){return b.getTime()}};this.revFns={decade:function(b,a){b=Z(b).getFullYear().toString();b=b.substr(0,2)+a+"0";return new Date(parseInt(b),0,1)},year:function(b,a){return new Date(a,0,1)},quarter:function(b,a){return new Date(Z(b).getFullYear(),3*(a-1),1)},month:function(b,a){return new Date(Z(b).getFullYear(),a-1,1)},week:function(a,c){a=Z(a).getFullYear();a=new Date(a,0,1);var d=-(a.getDay()-b.weekStart);c=d+(0<d?-7:0)+7*(c-1);d=new Date(a.valueOf());d.setDate(a.getDate()+
c);return d},dayofyear:function(b,a){return new Date(Z(b).getFullYear(),0,a)},day:function(b,a){return new Date(Z(b).getFullYear(),Z(b).getMonth(),a)},weekday:function(a,c){var d=b.fns.week(a);a=b.revFns.week(a,d);return ec(a,t(c)?{unit:"day",multiplier:c}:{unit:"day"})},hour:function(b,a){b=Z(b);b=new Date(b.setMinutes(0));b=new Date(b.setSeconds(0));return Z(b.setHours(a))},hourMod:function(b,a){b=Z(b);b=new Date(b.setMinutes(0));b=new Date(b.setSeconds(0));return ec(b,{unit:"hour",multiplier:a})},
minute:function(b,a){b=Z(b);return(new Date(b.setSeconds(0))).setMinutes(a)},minuteofday:function(b,a){b=Z(b);return Z(Z(Z(b.setSeconds(0)).setHours(0)).setMinutes(a))},minuteMod:function(b,a){b=Z(b);return ec(b,{unit:"minute",multiplier:a})},minuteofdayMod:function(b,a){b=Z(b);return ec(b,{unit:"minute",multiplier:a})},secondofhour:function(b,a){b=Z(b);return Z(b.setMinutes(0)).setSeconds(a)},secondofhourMod:function(b,a){b=Z(b);return ec(b,{unit:"second",multiplier:a})},second:function(b,a){return Z(b).setSeconds(a)},
millisecond:function(b,a){return Z(b).setMilliseconds(a)},none:function(b,a){return b}}}c.prototype.fn=function(a){if("string"===typeof a){var b=this.fns[a];return function(a){return b(Z(a))}}var c=this.fns[a.unit];if(a.mod&&a.mul)return function(b){return Math.floor(c(Z(b))/a.mul)%a.mod};if(a.mul)return function(b){return Math.floor(c(Z(b))/a.mul)}};c.prototype.reverseFn=function(a){if("string"===typeof a){var b=this.revFns[a];return function(a,c){return b(Z(a),c)}}var c=this.revFns[a.unit];if(a.mod&&
a.mul)return c=this.revFns[a.unit+"Mod"]||c,function(b,d){return c(b,d*a.mul)};if(a.mul)return function(b,d){return c(b,d*a.mul)}};return c}(),Zk=function(){function c(a,b){this.calIndexer=b;if(O(a)){var c={};c[a]="*";a=c}this.currentOptions=Ka(la(a),["inclusive","every","offset"]);this.inclusive=z(a.inclusive,!0);this.every=z(a.every,1);this.offset=z(a.offset,0);"object"===typeof this.offset&&(this.offset=rg(this.offset));this.fnSet=new qt(b?b.currentOptions.weekStart:0);this.setFilter()}c.prototype.setFilter=
function(){var a=this,b=a.currentOptions,c=Object.getOwnPropertyNames(b);a.propNames=c;var e=c[0];1===c.length&&"date"===c[0]&&"object"!==typeof b[c[0]]&&(a.isDate=!0,b.date.pop&&(a.isDateRange=!0));var f=function(c){Hm[c]<Hm[e]&&(e=c);return function(c){var d=b[c],e=K(d),f=a.fnSet.fn(c);"*"===d&&(e="star",a.starUnit=c,a.isInterval=!0,nt[c]&&(a.intervalType="numeric"));c=function(b){return function(a){var c;try{for(var e=xa(d),f=e.next();!f.done;f=e.next())if(b(a,f.value))return!0}catch(E){var g=
{error:E}}finally{try{f&&!f.done&&(c=e.return)&&c.call(e)}finally{if(g)throw g.error;}}}};var g=function(b){if("number"===b)return function(b,a){return f(b)===z(a,d)};if("string"===b||"date"===b){var c=Z(d);return function(b,a){return f(b)===f(Z(a||c))}}if("object"===b){b="string"===typeof d.range[0]?function(b){return f(Z(b))}:fC;var e=b(d.range[0]),g=b(d.range[1]);return function(b,a){b=f(Z(b));return Nb([e,g],b)}}if("function"===b)return function(b,a){return(a||d)(b)};if("star"===b)return function(b,
c){return a.indexOfInterval(b)}};return"array"===e?c(g(K(d[0]))):g(e)}(c)};if(1<c.length){a.isMultiFilter=!0;var g=B(c,function(b){return f(b)});c=a.inclusive?function(b){var a;try{for(var c=xa(g),d=c.next();!d.done;d=c.next()){var e=d.value;if(!e(b))return!1}}catch(q){var f={error:q}}finally{try{d&&!d.done&&(a=c.return)&&a.call(c)}finally{if(f)throw f.error;}}return!0}:function(b){var a;try{for(var c=xa(g),d=c.next();!d.done;d=c.next()){var e=d.value;if(e(b))return!0}}catch(q){var f={error:q}}finally{try{d&&
!d.done&&(a=c.return)&&a.call(c)}finally{if(f)throw f.error;}}};a.checkDateFn=c}else a.checkDateFn=f(c[0]);e=eC[Math.floor(Hm[e.unit||e])];a.minUnitName=e};c.prototype.indexOfInterval=function(a){var b=this.intervalRanges;a=id(a);if("numeric"===this.intervalType)return this.fnSet.fn(this.starUnit)(a);if(this.isMultiFilter){for(var c=0;c<b.length;c++)if(-1<oo(b[c],a))return c;return-1}return oo(b,a)};c.prototype.isInside=function(a){return this.isInterval?this.indexOfInterval(Z(a)):this.checkDateFn(Z(a))};
c.prototype.setRangeSnap=function(a,b){var c=this.fnSet,e=this.starUnit;a=c.reverseFn(e)(a,c.fn(e)(a));var f=c.fn(e)(b);b=c.reverseFn(e)(b,f+1);b=Z(id(b)-1);return this.setRange(a,b)};c.prototype.setRange=function(a,b){this.userRange=[a,b];if(this.isInterval){if("numeric"===this.intervalType){a=nt[this.starUnit];var c=a[0],e=[];qb(a[1]-a[0]+1,function(b){return e.push([b+c,b+c+1-.001])});return this.intervalRanges=e}return this.intervalRanges=ea(this.getIntervalRanges(a,b),function(b){return id(b[1])!==
id(b[0])})}return this.getRanges(a,b)};c.prototype.getRanges=function(a,b){var c={unit:this.minUnitName};a=Vk(this.minUnitName,1,Z(a));b=Z(b);for(var e=[],f=[],g=!1,h,k=!1;!k;)(h=this.isInside(a))&&!g?(h=a,g=!0,f[0]=h):!h&&g&&(f[1]=Z(a.getTime()-1),e.push(f),f=[],g=!1),a=ec(a,c),a>b&&(k=!0);return up(this,e)};c.prototype.getIntervalRanges=function(a,b){var d=this,e=d.currentOptions;if(!this.minUnitName)return[[a,b]];var f=d.every,g=[];if(d.isMultiFilter){f=function(f){var g={every:d.every};g[f]=e[f];
return(new c(g)).setRange(a,b)};var h=ea(d.propNames,function(b){return b!==d.starUnit}),k=f(d.starUnit),l=B(h,f),m,n;x(k,function(b){var a=b.slice(0);n=[];x(l[0],function(b){(m=af(a,b))&&n.push(m)});n.length&&g.push(n)})}else f={unit:this.minUnitName,multiplier:f},f=Uh(f,f,a,b)[0],h=B(f,function(b){return[b,b]}),f.length?g=B(fg(h,[a,b]),function(b){return[Z(b[0]),Z(id(b[1])-1)]}):g.push([a,b]);return up(d,g)};return c}(),cx=function(c,a,b){c[a]?c[a].push(b):c[a]=[b]},al=function(c){if(c&&c.pop)for(var a=
0,b=Math.min(50,c.length);a<b;a++){var d=c[a],e=typeof d;if(null!==d){if("number"===e)return!0;if("object"===e)return!1}}},vp=function(c){var a;c(function(b){b=al(b);if(!0===b||!1===b)return a=b,!1});return a},sg=function(c){if("function"===typeof c)return c;if(-1<c.indexOf(".")){var a=c.split(".");return function(b){return J(b,a)}}return function(b){return b[c]}},dx=function(c){if("function"===typeof c)return c;var a=sg(c);return function(b){return b.map(function(b){return a(b)})}},yp=function(c,
a){var b=[];x(c,function(c,e){return b.push({key:a?a(e):e,values:c})});return b},Pi=function(){function c(){this.calls=[];return this}c.prototype.countKeyCalls=function(){var a=0;x(this.calls,function(b){return"key"===b[0]&&a++});return a};c.prototype.clone=function(){var a=new c;a.calls=this.calls.slice(0);a.pointRollupFn=this.pointRollupFn;return a};c.prototype.key=function(a){var b=this.clone();b.calls.push(["key",a]);return b};c.prototype.rollup=function(a,b){var c=this.clone();c.calc=b;c.calls.push(["rollup",
a]);return c};c.prototype.sortKey=function(a){var b=this.clone();b.calls.push(["sortKey",a]);return b};c.prototype.pointRollup=function(a){var b=this.clone();b.pointRollupFn=a;return b};c.prototype.series=function(a){a=bl(this)(a);var b=this.countKeyCalls();if(1===b)return[{points:qf(a,this.pointRollupFn||this.calc)}];if(2===b)return ax(a,this.pointRollupFn||this.calc);throw"Nest: One or two key() calls are required.";};c.prototype.points=function(a){a=bl(this)(a);return qf(a,this.pointRollupFn)};
c.prototype.entries=function(a){return bl(this)(a)};return c}(),ix=/\r?\n/,gx=/^-?\d+\.?\d*%?$/,hx=/^\W{1}-?\d+\.?\d*%?$/,jx=function(c){return"dirtyNumber"===c?"number":c},rt=function(c){return of(function(a){var b=Array.isArray(c)?c:[c],d=!0,e=b.length;if(!c.length){var f=Error("Fonts list is empty");a({ok:d,error:f})}b.forEach(function(b){return kx(b,function(c){c||(d=!1,f=Error("Loading "+b+" 1000ms timeout exceeded"));0===--e&&a({ok:d,error:f})})})})},lx=0,gl={},hl=Math.PI,Gp=2*hl,tb=Math,Ip=
Math.abs,Yh=function(c,a,b){return[T(c[0],c[0]+c[2],a[0],a[0]+a[2],b[0]),T(c[1],c[1]+c[3],a[1],a[1]+a[3],b[1])]},xe=["M","Z","L","C"],Kp=[Lp,null,Lp,function(c,a){a=Mv.apply(null,a.slice(1));return kl(kl(c,a),[a[0]+a[2],a[1]+a[3]])}],st={stringValue:[jl,""],bbox:[function(c){c=c.shapes;1===c.length&&Pb(c[0]);var a;x(c,function(b,c){Pb(b);b=b.minMaxResult;c?(a.xMin=Math.min(a.xMin,b.xMin),a.yMin=Math.min(a.yMin,b.yMin),a.xMax=Math.max(a.xMax,b.xMax),a.yMax=Math.max(a.yMax,b.yMax)):a=b});return[a.xMin,
a.yMin,a.xMax-a.xMin,a.yMax-a.yMin]},""],lengthValue:[Mp,0],flatPoints:[Np,[]],positions:[function(c,a){void 0===a&&(a=6);c.length();var b=[],d=0;for(c=c.shapes;d<c.length;d++)b.push(Lc(c[d],a));return b},[]]},tf=function(){function c(a){this.isPath=!0;this.shapes=[];this._cache={};a&&M(this,a)}c.prototype.fromCache=function(a){var b=this._cache;b[a]=t(b[a])?b[a]:this.hasErrors?st[a][1]:st[a][0](this);return b[a]};c.prototype.toString=function(){return this.fromCache("stringValue")};c.prototype.bbox=
function(){return this.fromCache("bbox")};c.prototype.scaleTo=function(a){return nx(this,a)};c.prototype.translate=function(a){return jl(this,a)};c.prototype.rotate=function(a,b){var c=this.bbox();b=b||va(c);return this.translate(function(c){return pa(b,La(b,c)+a,Mb(b,c))})};c.prototype.hitTest=function(a,b){var c=this.bbox();a=[a,b];if(Cd(c,a)){c=void 0;b=0;for(var e=this.shapes;b<e.length;b++)if(1===Q(e[b].items)[0]){c=!0;break}if(!c)return bg(a,Np(this));b=0;for(e=this.shapes;b<e.length;b++)if(bg(a,
Op(e[b])))return!0}return!1};c.prototype.length=function(){return this.fromCache("lengthValue")};c.prototype.flatPoints=function(){return this.fromCache("flatPoints")};c.prototype.positions=function(){return this.fromCache("positions")};c.prototype.clearCache=function(a){this._cache={};a&&Jp(this,px,qx)};c.prototype.items=function(a){var b=this.shapes;if(1===b.length)return a?b[0].items:b[0].items.slice(0);var c=[];x(b,function(b){return x(b.items,function(b){return c.push(b)})});return c};c.prototype.isEqual=
function(a){var b=a?a.toString():"";return this===a||this.toString()===b};return c}(),sx=/([astvzqmhlc])([^astvzqmhlc]*)/gi,tx=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi,Jm=["c",6,"a",7,"l",2,"z",0,"m",2,"h",1,"v",1,"s",4,"t",2,"q",4],ol={},vx={M:xg,H:function(c){jd(c,[c.isRelative?Wa(c.args)+c.endPoint[0]:Q(c.args),c.endPoint[1]])},V:function(c){jd(c,[c.endPoint[0],c.isRelative?Wa(c.args)+c.endPoint[1]:Q(c.args)])},Z:ql,L:function(c){uf(c,1,jd)},C:function(c){uf(c,3,ze)},S:function(c){uf(c,2,wx)},Q:function(c){uf(c,
2,Yp)},T:function(c){var a=c.lastCommand[0];uf(c,1,"T"===a||"Q"===a?xx:jd)},A:function(c){Up(c,0,7,yx)}},iC=function(c,a){var b=c.toLocaleUpperCase();ol[c]={command:b,argsCount:a,isRelative:!0};ol[b]={command:b,argsCount:a,isRelative:!1}},hj=0;hj<Jm.length;hj+=2)iC(Jm[hj],Jm[hj+1]);var tl=Ub("pathLibBbox",function(c){return Ca(c).bbox()}),ei=Math.PI,cq=2*ei,fq=function(c){return Math.round(c)===c},Dx={TL:0,TR:1,BR:2,BL:3},iq=ja("type fill stroke stroke-width stroke-opacity overflow centerWidth eachShape".split(" ")),
tt=Yb.PI,jC=2*tt,sc={none:function(c,a){return eb([[c,a]])},circle:function(c,a,b,d){b=Math.min(b,d)/2;return G(["M",c+b,a],Mc(c+b,a+b,b,-tt/2,.75*jC-.05),["Z"])},square:fi,arrow:function(c,a,b,d,e){void 0===e&&(e={});var f=va([c,a,b,d]);a=e.angle||0;var g=e.concavity||.15,h=pa(f,a,b/2),k=pa(f,a+180,b/2);c=pa(k,a-90,d/2);d=pa(k,a+90,d/2);a=pa(k,a,b*g);k=function(b,a){var c=gk(h,b);b=La(h,b);var d=Mb(f,c);return pa(c,b+a,g*d)};b=[f[0]-a[0],f[1]-a[1]];c=[h,k(c,-90),c,a,d,k(d,90)];e.skipTransform=!0;
return eb(function(b,a){return b.map(function(b){return[b[0]+a[0],b[1]+a[1]]})}(c,b))},triangle:function(c,a,b,d){return eb([[c+b/2,a],[c+b,a+d],[c,a+d]])},"triangle-down":function(c,a,b,d){return eb([[c,a],[c+b,a],[c+b/2,a+d]])},diamond:function(c,a,b,d){d=Ed({x:c,y:a,width:b,height:d},1.1);c=d.x;a=d.y;b=d.width;d=d.height;return eb([[c+b/2,a],[c+b,a+d/2],[c+b/2,a+d],[c,a+d/2]])},"four-point-star":function(c,a,b,d){d=Ed({x:c,y:a,width:b,height:d},1.15);c=d.x;a=d.y;b=d.width;d=d.height;b/=2;var e=
.32*b;c+=b;a+=d/2;return eb([[c,a-b],[c+e,a-e],[c+b,a],[c+e,a+e],[c,a+b],[c-e,a+e],[c-b,a],[c-e,a-e]])},"five-point-star":function(c,a,b,d){d=Ed({x:c,y:a,width:b,height:d},1.15);c=d.x+1;a=d.y;b=d.width;d=d.height;b/=2;c+=b;a+=d/2;return eb([[c,a-.96*b],[c+.36*b,a-.4*b],[c+b,a-.24*b],[c+.56*b,a+.26*b],[c+.6*b,a+.94*b],[c,a+.65*b],[c-.6*b,a+.94*b],[c-.56*b,a+.26*b],[c-b,a-.24*b],[c-.36*b,a-.4*b]])},"six-point-star":function(c,a,b,d){d=Ed({x:c,y:a,width:b,height:d},1.15);c=d.x+1;a=d.y;b=d.width;d=d.height;
b/=2;c+=b;a+=d/2;return eb([[c,a-b],[c+.3*b,a-.54*b],[c+.88*b,a-.5*b],[c+.6*b,a],[c+.86*b,a+.5*b],[c+.3*b,a+.52*b],[c,a+b],[c-.3*b,a+.52*b],[c-.86*b,a+.5*b],[c-.6*b,a],[c-.88*b,a-.5*b],[c-.3*b,a-.54*b]])},"seven-point-star":function(c,a,b,d){d=Ed({x:c,y:a,width:b,height:d},1.15);c=d.x+1;a=d.y;b=d.width;d=d.height;b/=2;c+=b;a+=d/2;return eb([[c,a-.98*b],[c+.28*b,a-.54*b],[c+.8*b,a-.6*b],[c+.62*b,a-.12*b],[c+b,a+.16*b],[c+.5*b,a+.44*b],[c+.44*b,a+.96*b],[c,a+.68*b],[c-.44*b,a+.96*b],[c-.5*b,a+.44*b],
[c-b,a+.16*b],[c-.62*b,a-.12*b],[c-.8*b,a-.6*b],[c-.28*b,a-.54*b]])},"arrow-up":function(c,a,b,d){d=Ed({x:c,y:a,width:b,height:d},1.15);c=d.x+1;a=d.y;b=d.width;d=d.height;b/=2;c+=b;a+=d/2;return eb([[c,a-b],[c+.9*b,a-.08*b],[c+.36*b,a-.08*b],[c+.36*b,a+b],[c-.36*b,a+b],[c-.36*b,a-.08*b],[c-.9*b,a-.08*b]])},"arrow-down":function(c,a,b,d){d=Ed({x:c,y:a,width:b,height:d},1.15);c=d.x+1;a=d.y;b=d.width;d=d.height;b/=2;c+=b;a+=d/2;return eb([[c,a+b],[c+.9*b,a+.08*b],[c+.36*b,a+.08*b],[c+.36*b,a-b],[c-.36*
b,a-b],[c-.36*b,a+.08*b],[c-.9*b,a+.08*b]])},split:function(c,a,b,d){b/=2;c+=b;a+=d/2;return eb([[[c+.2*b,a-b],[c+b,a],[c+.2*b,a+b]],[[c-.2*b,a+b],[c-b,a],[c-.2*b,a-b]]])},"split-reverse":function(c,a,b,d){b/=2;c+=b;a+=d/2;return eb([[[c+b,a-b],[c+b,a+b],[c+.16*b,a]],[[c-b,a-b],[c-b,a+b],[c-.16*b,a]]])},spinoff:function(c,a,b,d){b/=2;c+=b;a+=d/2;return eb([[[c-b,a-b],[c+.72*b,a-b],[c+.72*b,a],[c,a],[c,a+.72*b],[c-b,a+.72*b]],[[c+.24*b,a+.24*b],[c+b,a+.24*b],[c+b,a+b],[c+.24*b,a+b]]])},merger:function(c,
a,b,d){b/=2;c+=b;a+=d/2;return eb([[c-.38*b,a-b],[c+.73*b,a-b],[c+.73*b,a+b],[c+.16*b,a+b],[c+.16*b,a+.22*b],[c-.58*b,a+b],[c-.94*b,a+.6*b],[c-.38*b,a+.02*b]])},path:function(c,a,b,d,e){return e.d},rectangle:function(c,a,b,d,e){return dq(c,a,b,d,e)}},hq={arrow:function(c){void 0===c&&(c={});var a=z(c.lineWidth,1),b=z(c.overflow,!1),d=db(z(c.size,10*a),a),e=t(c.length),f=db(z(e?c.length:c.width,1.6*d),a);a=db(z(e?c.width:c.height,d),a);d=ua(z(c.concavity,.2),-.5,.5);e=f-f*d;return M(Pa({},c,iq),{width:f,
height:a,concavity:d,overflow:!0,centerWidth:!1===b?e:0})}},kq=Ub("drawIconFunction",function(c,a,b,d,e){var f=Ca(c),g=a[4],h=d?t(d.initial)?[d.top.px,d.right.px,d.bottom.px,d.left.px]:0<d.length?d:[d.top,d.right,d.bottom,d.left]:[0,0,0,0],k=!0;if(!(e||0!==a[2]&&0!==a[3]||g))return["",0,0,0];if(g||0===a[2]||0===a[3])e=f.bbox(),a[2]=g||e[2],a[3]=g||e[3],g||(k=!1);g=Math.max(a[2],a[3]);e=b?[a[0],a[1],g,g]:a;if((d=!b&&d&&0===d.initial)&&!k)return[c,g,a[2],a[3]];c=d?e:hp(e,h);f=f.scaleTo(c);if(!b)return[f,
g,a[2],a[3]];b=sc[b.shape||"square"](e[0],e[1],e[2],e[3]);return[wa([f,b]),g,a[2],a[3]]},function(c,a,b,d,e){return c+a[0]+a[1]+a[2]+a[3]+a[4]+(b&&b.shape)+(d&&d.initial)+e}),Ae=function(c){return"M"+c[0]+" "+c[1]},Oc=function(c){return"L"+c[0]+" "+c[1]},kC=[-9999,9999],lC=ja(["div"]),ub=function(){function c(a,b,c){this.renderer=b;this.init(a,c)}c.prototype.init=function(a,b){this.el=a;this.data={attrs:{},vals:{},id:Fd()};this.childNodes=[];this.refNodes=[];this.isElement=!0;this.isDestroyed=this.isPatched=
!1;this.zIndexHash={};this.zIndexMax=kC[0];this.nodeName=b||a.nodeName.toLowerCase();this.isHtml=H(lC,this.nodeName)};c.prototype.attr=function(a,b){return this.renderer.attr(this,a,b)};c.prototype.add=function(a){return this.renderer.add(this,a)};c.prototype.addBefore=function(a){return this.renderer.addBefore(this,a)};c.prototype.addAfter=function(a){return this.renderer.addAfter(this,a)};c.prototype.destroy=function(){return this.renderer.destroy(this)};c.prototype.on=function(a,b){return this.renderer.on(this,
a,b)};c.prototype.un=function(a,b){return this.renderer.un(this,a,b)};c.prototype.box=function(a){return this.renderer.box(this,a)};c.prototype.getBbox=function(){return this.box()};c.prototype.animate=function(a,b){var c=F(a,2);a=c[0];c=c[1];this.getTransition().options({animation:b,middle:{from:a,to:c},end:c})};c.prototype.getAnimations=function(){return this.getTransition().getAnimations()};c.prototype.isAnimating=function(){return 0<this.getAnimations().length};c.prototype.finishAnimation=function(a){this._transition&&
!this._transition.attrApllying&&this._transition.finishAnimation(!0,a)};c.prototype.show=function(){return this.renderer.show(this)};c.prototype.hide=function(){return this.renderer.hide(this)};c.prototype.visible=function(a){return this.renderer.visible(this,a)};c.prototype.query=function(a){return this.renderer.query(a,this)};c.prototype.transition=function(a){this.getTransition().options(a);return this.getTransition()};c.prototype.tryAutoTransition=function(a){var b=this;return b.getTransition().tryAutoTransition(a,
function(){var a=b.data,c=M({},a.attrs);a.transform&&(c.transform=a.transform);a.vals.d&&(c.d=a.vals.d);return c})};c.prototype.normalizeAttrs=function(a){return a&&a.omit?Ka(a,a.omit.concat("omit")):a};c.prototype.getTransition=function(){if(!this._transition){var a=M({},this.renderer.defaultOptions().transition);"path"===this.nodeName&&(a.generator="path");this._transition=Wg[0].create(this,a)}return this._transition};return c}(),ut=X(sc,{rectangle:dq}),mC=function(c){function a(b,a){b=c.call(this,
b,a)||this;b.x=0;b.y=0;b.width=0;b.height=0;return b}L(a,c);a.prototype.attr=function(b,a){if(!b||!Sa(b))return H(this,b)?this[b]:this.renderer.attr(this,b,a);b=this.collectAttributes(b);if(!b)return null;a=F([b.shapeName,b.relativeSize],2);this.shapeName=a[0];this.relativeSize=a[1];b.relativeSize&&(a=F([b.cx,b.cy,b.r],3),this.cx=a[0],this.cy=a[1],this.r=a[2]);a=this.renderer.attr(this,b);b=F([b.x,b.y,b.width,b.height,b.shapeOptions,b.d],6);this.x=b[0];this.y=b[1];this.width=b[2];this.height=b[3];
this.shapeOptions=b[4];this.d=b[5];return a};a.prototype.normalizeAttrs=function(b){b=this.collectAttributes(b);return c.prototype.normalizeAttrs.call(this,b)};a.prototype.collectAttributes=function(b){var a=this.default,c=F([this.shapeName,this.relativeSize],2),f=c[0];c=c[1];if(b.shapeConfig||b.shapeName)f=b.shapeName||b.shapeConfig.name;if(!f||!H(ut,f))return null;b=b.shapeConfig?b.shapeConfig.config||{}:M({},b);M(b,b.attr);b.shapeName=f;U(c)&&(Cc(["x","y","width","height"],b)&&(c=!1),Cc(["cx",
"cy","r"],b)&&(c=!0));c&&(a=F([a(b.cx,this.cx||0),a(b.cy,this.cy||0),a(b.r,this.r||0),b.cx-b.r,b.cy-b.r,this.calculateFromRadius(b.r),this.calculateFromRadius(b.r)],7),b.cx=a[0],b.cy=a[1],b.r=a[2],b.x=a[3],b.y=a[4],b.width=a[5],b.height=a[6]);b.relativeSize=c;a=F([this.default(b.x,this.x),this.default(b.y,this.y),this.default(b.width,this.width),this.default(b.height,this.height),b.shape||this.shapeOptions],5);b.x=a[0];b.y=a[1];b.width=a[2];b.height=a[3];b.shapeOptions=a[4];b.d=this.dToString(ut[f](b.x,
b.y,b.width,b.height,b.shapeOptions));b.omit="x y width height cx cy r shapeName shape path attr relativeSize shapeOptions".split(" ");b.d===this.d&&b.omit.push("d");return b};a.prototype.default=function(b,a){return Jb(b)?a:b};a.prototype.calculateFromRadius=function(b){return t(b)?2*b:null};a.prototype.dToString=function(b){return ka(b)?tc(b," "):b};return a}(ub),nC=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.attrApplier=b.defaultAttrApplier;return b}L(a,c);a.prototype.attr=
function(b,a){var c=this.morphType||this.nodeName;if(ij[c])a:{var d;try{for(var g=xa(ij[c]),h=g.next();!h.done;h=g.next()){var k=h.value;if(k(this,b,a))break a}}catch(m){var l={error:m}}finally{try{h&&!h.done&&(d=g.return)&&d.call(g)}finally{if(l)throw l.error;}}}return this.attrApplier(b,a)};a.prototype.defaultAttrApplier=function(b,a){return this.renderer.attr(this,b,a)};return a}(ub),ij={},oC=function(){function c(a,b,c,e,f){this.root=a;this.width=b;this.height=c;this.defaultWidth=e;this.defaultHeight=
f}c.prototype.path=function(a){return this.pathInner(nC,a)};c.prototype.shape=function(a,b){return this.pathInner(mC,{shapeConfig:{name:a,config:b}})};c.prototype.newId=function(){return Fd()};return c}(),vt=function(c){function a(b,a){b=c.call(this,b,a)||this;b.x=0;b.y=0;b.width=0;b.height=0;return b}L(a,c);a.prototype.attr=function(b,a){var c=this;if(!b||!Sa(b))return this.renderer.attr(this,b,a);U(this.relativeSize)&&this.setSizeType(b);this.checkSizeRecalculated(b,function(a){var d=F([c.default(b.width,
c.width),c.default(b.height,c.height),c.default(b.cx,c.cx||0),c.default(b.cy,c.cy||0)],4),e=d[0],f=d[1],l=d[2];d=d[3];var m=F([c.relativeSize?l-e/2:c.default(b.x,c.x||0),c.relativeSize?d-f/2:c.default(b.y,c.y||0)],2),n=m[0];m=m[1];M(a,{x:n,y:m,width:e,height:f});a.omit=["cx","cy"];c.renderer.attr(c,a);a=F([n,m,e,f,l,d],6);c.x=a[0];c.y=a[1];c.width=a[2];c.height=a[3];c.cx=a[4];c.cy=a[5]});return this};a.prototype.default=function(b,a){return Jb(b)?a:b};a.prototype.setSizeType=function(b){Cc(["x","y"],
b)?this.relativeSize=!1:Cc(["cx","cy"],b)&&(this.relativeSize=!0)};a.prototype.checkSizeRecalculated=function(b,a){U(this.sizeRecalculated)&&(this.sizeRecalculated=U(b.width)||U(b.height));b.src&&this.sizeRecalculated?Lx(this.renderer,b.src,function(c,d){b.width=c.width;b.height=c.height;!1===d&&(b.animation=!1);a(b)}):a(b)};return a}(ub),vl={},Ag={},ud=function(){function c(){this.callbacks=[];this.idleDefer=new He;this.id=0}c.prototype.on=function(a,b){var c=this,e={callback:a,event:this,un:function(){c.un(a)}};
this.callbacks.push({callback:a,subscriber:b});return e};c.prototype.onDefer=function(a,b,c){var d=this,f=this.id++;return this.on(function(c,e){return d.idleDefer.defer("event"+f,function(){return a.apply(d,[c,e])},b)},c)};c.prototype.un=function(a){this.callbacks=a?ea(this.callbacks,function(b){return b.callback!==a}):[]};c.prototype.trigger=function(a,b){x(this.callbacks,function(c){return c.callback.apply(c.subscriber,[a,b])})};return c}(),vd=function(c){function a(){return null!==c&&c.apply(this,
arguments)||this}L(a,c);a.prototype.on=function(b,a){var d=this,f=P(this.callbacks,function(a){return a.callback===b});return f?{callback:f,event:this,un:function(){d.un(f)}}:c.prototype.on.call(this,b,a)};return a}(ud),Km=function(c){function a(b){var a=c.call(this)||this;a.domEventName=b;a.hasSubscription=!1;a.element=null;return a}L(a,c);a.prototype.setElement=function(b){this.element!==b&&(this.unsubscribeDomEvent(),this.element=b,this.subsribeDomEvent())};a.prototype.on=function(b,a){b=c.prototype.on.call(this,
b,a);this.subsribeDomEvent();return b};a.prototype.un=function(b){c.prototype.un.call(this,b);0===this.callbacks.length&&this.unsubscribeDomEvent()};a.prototype.subsribeDomEvent=function(){var b=this;this.hasSubscription||(this.element?this.callbacks.length&&(this.element.on(this.domEventName,function(a){b.trigger(qq(a,b.element,b.domEventName))}),this.hasSubscription=!0):this.hasSubscription=!1)};a.prototype.unsubscribeDomEvent=function(){this.hasSubscription&&(this.element&&this.element.un(this.domEventName),
this.hasSubscription=!1)};return a}(ud),Lm=new ud,pC=ja(["width","height"]),wt=ja(["d","animation","transition","clip-rule"]),qC=X(wt,ja(["fill"])),Mm=function(c){function a(b,a){b=c.call(this,b,a)||this;b.path=b.renderElement().add(b);return b}L(a,c);a.prototype.attr=function(b,a){if(!b||!Sa(b))return this.renderer.attr(this,b,a);b.id&&this.renderer.attr(this,"id",b.id);b["clip-rule"]&&this.renderer.attr(this,"clip-rule",b["clip-rule"]);b=Ve({},b,this.availableAttrs());return this.renderer.attr(this.path,
b)};a.prototype.destroy=function(){this.path&&(this.path.destroy(),delete this.path);return this.renderer.destroy(this)};a.prototype.renderElement=function(){return this.renderer.path()};a.prototype.availableAttrs=function(){return wt};return a}(ub),rC=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.renderElement=function(){return this.renderer.rect()};a.prototype.availableAttrs=function(){return pC};return a}(Mm),sC=function(c){function a(){return null!==
c&&c.apply(this,arguments)||this}L(a,c);a.prototype.availableAttrs=function(){return qC};return a}(Mm),sq=ja(["fill","stroke","mask","clip-path"]),Nm={},yq={horizontal:{c:[0,0,5,0]},"large-horizontal":{c:[0,0,10,0],size:10},"narrow-horizontal":{c:[0,0,2.5,0],size:2.5},"dark-horizontal":{c:[0,0,5,0],strokeWidth:4},vertical:{c:[0,0,0,5]},"large-vertical":{c:[0,0,0,10],size:10},"narrow-vertical":{c:[0,0,0,2.5],size:2.5},"dark-vertical":{c:[0,0,0,5],strokeWidth:4},"backward-diagonal":{c:[0,0,0,10],size:10,
patternTransform:"rotate(45)"},"light-upward-diagonal":{c:[0,0,0,5],patternTransform:"rotate(45)"},"dark-upward-diagonal":{c:[0,0,0,5],strokeWidth:4,patternTransform:"rotate(45)"},"wide-upward-diagonal":{c:[0,0,0,10],strokeWidth:5,patternTransform:"rotate(45)",size:10},"forward-diagonal":{c:[0,0,0,10],size:10,patternTransform:"rotate(-45)"},"light-downward-diagonal":{c:[0,0,0,5],patternTransform:"rotate(-45)"},"dark-downward-diagonal":{c:[0,0,0,5],strokeWidth:4,patternTransform:"rotate(-45)"},"wide-downward-diagonal":{c:[0,
0,0,10],strokeWidth:5,patternTransform:"rotate(-45)",size:10},"dashed-downward-diagonal":{c:[0,2.5,5,7.5],granualHeight:10},"dashed-upward-diagonal":{c:[5,2.5,0,7.5],granualHeight:10},"horizontal-brick":{d:"M0,0L0,5M0,5L10,5M5,5L5,10M10,5L10,0M0,10L10,10M0,0L10,0",size:10},"large-checker-board":{d:"M0,5L5,5 5,0 0,0ZM5,10L5,5 10,5 10,10Z",size:10,borderColor:"transparent",inside:!0},"small-checker-board":{d:"M0,2.5L2.5,2.5 2.5,0 0,0ZM2.5,5L2.5,2.5 5,2.5 5,5Z",borderColor:"transparent",inside:!0},"cross-diagonal":{d:"M0,0l10,10M10,0l-10,10",
size:10},"dashed-horizontal":{d:"M0 1 L5 1M 5 6L10 6",size:10},"dashed-vertical":{d:"M1,0L1,5M6,5L6,10",size:10},"diagonal-brick":{d:"M5,0L0,5M0,5L5,10M5,10L10,5",size:10},"large-grid":{d:"M0,0L10,0M10,0L10,10",size:10},"small-grid":{d:"M0,0L5,0M5,0L5,5"},"solid-diamond":{d:"M0,1L4,5 0,9M10,1L6,5 10,9",size:10,inside:!0,borderColor:"transparent"},"outlined-diamond":{d:"M0,0L10,10M10,0L0,10",size:10,strokeWidth:1},wave:{d:"M1,2.5C2,5 4,5 5,2.5S8,0 9,2.5",granualWidth:10,insideBack:!0},weave:{d:"M3,0L0,3M0,3L7,10M7,10L10,7M10,7L3,0M2, 5L0, 7M5, 8L3, 10M8, 5L10, 3",
size:10},"zig-zag":{d:"M0,5L5,0M5,0L10,5",granualWidth:10},percent05:{p:[[2.5,7.5],[7.5,2.5]],size:10},percent10:{p:[[1.5,4],[6.5,1.5]],granualWidth:10},percent20:{p:[[1,3.5],[3.5,1]]},percent25:{p:[[1,1.75],[3.5,.5]],granualHeight:2.5},"dotted-grid":{p:[[1,8.5],[3.5,8.5],[6,8.5],[8.5,8.5],[8.5,1],[8.5,3.5],[8.5,6]],size:10},"dotted-diamond":{p:[[4,1],[1.5,3.5],[6.5,3.5],[9,6],[1.5,8.5],[6.5,8.5]],size:10},dotted:{template:"circle"},image:{template:"image"},"image-large":{template:"image",size:10}},
Ox={line:function(c){c=Cg(c);var a=F(c.c,4);return hi(c.pattern,[{tag:"line",attr:{x1:a[0],y1:a[1],x2:a[2],y2:a[3],stroke:c.color,"stroke-width":c.strokeWidth,strokeDashArray:c.dashArray}}],c)},path:function(c){c=Cg(c);var a=c.pattern,b=[{tag:"path",attr:{d:c.d,fill:c.inside?c.color:c.insideBack?c.backgroundColor:void 0,"stroke-width":c.strokeWidth||1,"border-color":c.borderColor,strokeDashArray:c.dashArray}}];b.unshift({tag:"rect",attr:{width:c.granualWidth,height:c.granualHeight,fill:c.backgroundColor||
"none","stroke-width":0}});return wq(a,[{tag:"g",attr:{stroke:c.color||"black","stroke-width":c.strokeWidth||1,childNodes:b}}],c)},point:function(c){c=Cg(c);return hi(c.pattern,B(c.p,function(a){return{tag:"circle",attr:{cx:a[0],cy:a[1],r:.5,fill:c.color}}}),c)},circle:function(c){c=Cg(c);return hi(c.pattern,[{tag:"circle",attr:{cx:c.granualWidth/2,cy:c.granualHeight/2,r:.5,fill:c.color,transform:c.transform}}],c)},image:function(c){var a=/(.*)\((.*)\)/g.exec(c.color);if(!a)return null;a=F(a,3);var b=
a[2];if(!a[1]||!b)return null;a=Ye(b,", ");c.color=Hd(a[0],"'\"");c=Cg(c);return hi(c.pattern,[{tag:"image",attr:{width:c.granualWidth,height:c.granualHeight,src:c.color}}],c)}},hc={translate:[[0,0],function(c){c=ka(c)?c:[c.x,c.y];return 0===c[0]&&0===c[1]?null:c}],rotate:[[0,0,0],function(c){c=ka(c)?c:[c,0,0];return 0===c[0]&&0===c[1]&&0===c[2]?null:c}],scale:function(c){return[[c],function(a){a=ka(a)?a:[a];return a[0]===c?null:a}]}(1)},tC=function(){return function(){}}(),uC=function(){return function(){}}(),
Jq=function(c,a,b){return[md(c[0],a[0],b),md(c[1],a[1],b)]},md=function(c,a,b){return c+(a-c)*b},Wx=function(c,a,b){return c+(a-c)*b},Vx=function(c,a,b){return c+(a-c)*(1-b)},jj=function(c){return c&&c.val?c.val:c},Ie=function(c){return c+""},Om=function(c){return Jb(c)?1:c},Pm=function(c){return Jb(c)?0:c},xt=function(c,a,b){c=c||"black";a=a||"black";b=b.colorAnimation;var d=a&&a.meta&&a.meta.pattern;return!d&&c&&c.meta&&c.meta.pattern?qe(c.meta.backgroundColor,a,b):(d?Gw:qe)(c,a,b)},Qm={x:[Ie,null,
!0],y:[Ie,null,!0],start:[Ie,null,!0],end:[Ie,null,!0],width:[Ie,null,!0],height:[Ie,null,!0],opacity:[Om,null,!1],rotate:[Pm,null,!1],offsetX:[Pm,null,!1],offsetY:[Pm,null,!1],display:[Ie,null,!1],transform:[function(c){return c},null,!1],fill:[jj,xt,!0],stroke:[jj,xt,!0],"stroke-opacity":[Om,null,!1],"stroke-width":[Om,null,!1],text:[jj,function(c,a){return ww(c,a)},!0],d:[jj,function(c,a,b){return Sx(c&&c.isPath?c:Ca(c),a&&a.isPath?a:Ca(a),b.pathAnimation)},!1]},Yx=/cubic-bezier\(\s*(-?\d+\.?\d*|-?\.\d+)\s*,\s*(-?\d+\.?\d*|-?\.\d+)\s*,\s*(-?\d+\.?\d*|-?\.\d+)\s*,\s*(-?\d+\.?\d*|-?\.\d+)\s*\)/,
Zx=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,ji=function(c,a){return function(b){if(1<=b)return 1;var d=1/c;b+=a*d;return b-b%d}},Nq=function(c){return c},Mq={activeDuration:0,totalDuration:0,delay:0,endDelay:0,fill:"none",iterationStart:0,iterations:1,duration:0,playbackRate:1,direction:"normal",easing:"linear",easingFunction:Nq},yt=function(c){return c},vf=function(c,a,b){if("number"==typeof a)return c=c||0,Math.round(1E4*(b*(a-c)+c))/1E4;if("boolean"==typeof c&&"boolean"==typeof a)return 1>
b&&!a?c:a;if(dh(a)){var d={};Fa(a,function(e){return d[e]=vf(c[e],a[e],b)});return d}if(c.length==a.length){for(var e=[],f=0;f<c.length;f++)e.push(vf(c[f],a[f],b));return e}throw Error("Wrong interpolation arguments "+c+":"+a);};Nm.lineargradient=Nm.radialgradient=function(c,a){var b=c.nodeName.toLowerCase(),d=function(b,a){return Jb(b)?a:b},e=null;if("lineargradient"===b){var f={};x(["x1","y1","x2","y2"],function(b){return f[b]=d(c.attr(b),0)});e={linearGradient:f};e.id=e.linearGradient.id=a}else if("radialgradient"===
b){var g={};x(["cx","cy","r","fx","fy"],function(b){return g[b]=d(c.attr(b),0)});e={radialGradient:g};e.id=e.radialGradient.id=a}e&&(e.stops=B(c.childNodes,function(b){return[d(b.attr("offset"),"0%"),d(b.attr("stop-color"),"black"),d(b.attr("stop-opacity"),"1")]}),c.val=e)};var kc=function(c,a){return U(c)?a:O(c)&&Ug(c,"%")?c:100*c+"%"},Pq={linearGradient:{keyPrefix:"linear-gradient",argsToAttrs:function(c){var a=c.linearGradient;if(ka(a)){var b=F(a,6),d=b[0],e=b[1],f=b[2],g=b[3],h=b[4];b=b[5];h=
h||a.hash||c.hash;b=b||a.id||c.id}else d=a.x1,f=a.x2,e=a.y1,g=a.y2,h=a.hash,b=a.id;return{attrs:{x1:d,x2:f,y1:e,y2:g,id:b,hash:h},stops:c.stops}},toString:function(c){return kc(c.x1,"0%")+" "+kc(c.y1,"0%")+" "+kc(c.x2,"100%")+" "+kc(c.y2,"0%")}},radialGradient:{keyPrefix:"radial-gradient",argsToAttrs:function(c){var a=c.radialGradient;if(ka(a)){var b=F(a,7),d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5];b=b[6];k=k||a.hash||c.hash;b=b||a.id||c.id}else d=a.cx,e=a.cy,f=a.r,g=a.fx,h=a.fy,k=a.hash,b=a.id;return{attrs:{cx:d,
cy:e,r:f,fx:g,fy:h,id:b,hash:k},stops:c.stops}},toString:function(c){return kc(c.cx,"50%")+" "+kc(c.cy,"50%")+" "+kc(c.r,"50%")+" "+kc(c.fx,kc(c.cx,"50%"))+" "+kc(c.fy,kc(c.cy,"50%"))}},stopToString:function(c){return kc(c.offset)+" "+c.color+" "+c.opacity}},Dg={},Rm=function(c,a){if(!c)return c;if(O(c))return H(Dg,c)?Dg[c](c,a):c;var b={},d;for(d in c)if(H(c,d)){var e=c[d];if(H(Dg,d))Dg[d](d,a,e,b,c);else b[d]=e}return b},vC=function(){function c(){}c.prototype.resolve=function(a,b){return Rm(a,
b)};return c}();Wg[1]=new vC;var ki={src:"xlink:href",fontWeight:"font-weight",fontStyle:"font-style",fontSize:"font-size",fontFamily:"font-family",textDecoration:"text-decoration",className:"class",strokeDashArray:"stroke-dasharray",textRendering:"text-rendering",textAnchor:"text-anchor",whiteSpace:"white-space",textAlign:"text-align",borderRadius:"border-radius"},gy=ja(["d","animation","transition","clip-rule"]),Sq=ja(["class","id","translate","opacity"]),El={color:"fill",fill:"fill",stroke:"stroke",
borderColor:"stroke","border-color":"stroke",hatch:"fill",hatchPattern:"fill"},ny={fill:"color",stroke:"border-color"},wC=["stroke-width","strokeWidth","border-width","borderWidth"],xC=["strokeAttrs","stroke"],mi={transform:"transform"};Fa(hc,function(c){return mi[c]="transform"});var ni={zIndex:"z-index","z-index":"z-index"},Xq={"ease-out-cubic":"cubic-bezier(.215, .61, .355, 1)","ease-in-out-cubic":"cubic-bezier(.645, .045, .355, 1)","ease-in-circ":"cubic-bezier(.6, .04, .98, .335)","ease-out-circ":"cubic-bezier(.075, .82, .165, 1)",
"ease-in-out-circ":"cubic-bezier(.785, .135, .15, .86)","ease-in-expo":"cubic-bezier(.95, .05, .795, .035)","ease-out-expo":"cubic-bezier(.19, 1, .22, 1)","ease-in-out-expo":"cubic-bezier(1, 0, 0, 1)","ease-in-quad":"cubic-bezier(.55, .085, .68, .53)","ease-out-quad":"cubic-bezier(.25, .46, .45, .94)","ease-in-out-quad":"cubic-bezier(.455, .03, .515, .955)","ease-in-quart":"cubic-bezier(.895, .03, .685, .22)","ease-out-quart":"cubic-bezier(.165, .84, .44, 1)","ease-in-out-quart":"cubic-bezier(.77, 0, .175, 1)",
"ease-in-quint":"cubic-bezier(.755, .05, .855, .06)","ease-out-quint":"cubic-bezier(.23, 1, .32, 1)","ease-in-out-quint":"cubic-bezier(.86, 0, .07, 1)","ease-in-sine":"cubic-bezier(.47, 0, .745, .715)","ease-out-sine":"cubic-bezier(.39, .575, .565, 1)","ease-in-out-sine":"cubic-bezier(.445, .05, .55, .95)","ease-in-back":"cubic-bezier(.6, -.28, .735, .045)","ease-out-back":"cubic-bezier(.175, .885, .32, 1.275)","ease-in-out-back":"cubic-bezier(.68, -.55, .265, 1.55)"},yy=ja(["d","animation","transition",
"fill","display"]),Ay=new RegExp(String.fromCharCode(160),"gm");x([function(){Cb(ya(ki),cy)},function(){Cb(["attr"],dy)},function(){Cb(["d"],ey)},function(){Cb(["overflow"],fy)},function(){Cb(["clipPath"],Qq)},function(){Cb(["shadow"],iy)},function(){Cb(ya(El),my)},function(){Cb(wC,ry);Cb(xC,sy)},function(){Cb(ya(mi),uy)},function(){Cb(ya(ni),vy)},function(){Cb(["easing"],wy)},function(){Cb(["mask"],xy)},function(){Cb(["text"],zy)}],function(c){return c()});var yC=function(c,a,b){var d={},e=[];Fa(hc,
function(f){var g=hc[f][1](vf(a[f],b[f],c));if(null!=g||a[f])g&&e.push(f+"("+tc(g,",")+")"),d[f]=g});var f=e.length?tc(e," "):null;f&&(d.val=f);return f?d:null},kj={transform:function(c,a){var b={translate:[0,0],scale:[1],rotate:[0,0,0]},d=c?Ve(b,c,hc):b,e=a?Ve(b,a,hc):b;c={};Fa(hc,function(b){null===d[b]&&(d[b]=hc[b][0]);null===e[b]&&(e[b]=hc[b][0]);"rotate"===b&&(d[b][1]=e[b][1],d[b][2]=e[b][2])});c.transform={interpolate:function(b){return yC(b,d,e)}};return{complex:!0,props:c}},display:function(c,
a){return{from:"block"==c,to:"block"==a,convert:function(b){return b?"block":"none"}}}},zC=function(c,a){return{from:parseFloat(c),to:parseFloat(a),convert:yt}},AC=function(c,a){return{from:Bl(c),to:Bl(a),convert:yt}};x("opacity rotate offsetX offsetY start end stroke-width stroke-opacity".split(" "),function(c){return kj[c]=zC});x(["x","y","width","height"],function(c){return kj[c]=AC});var Sm=function(){return function(){}}(),BC=function(c){function a(){return null!==c&&c.apply(this,arguments)||
this}L(a,c);a.prototype.update=function(b){};return a}(Sm),CC=function(c){function a(b){var a=c.call(this)||this;a.frameHandler=b;return a}L(a,c);a.prototype.update=function(b){this.frameHandler(b)};return a}(Sm),DC=function(c){function a(b,a){var d=c.call(this)||this;d.frames=b;d.parseFrames();a&&a.onFrame&&(d.onFrame=a.onFrame);return d}L(a,c);a.prototype.update=function(b){var a={},c=this.interpolations;Fa(c,function(d){var e=c[d];a[d]=e.interpolate?e.interpolate(b):e.convert(vf(e.from,e.to,b))});
if(this.onFrame)this.onFrame(b,a,vf)};a.prototype.parseFrames=function(){var b=this.frames[0],a=this.frames[this.frames.length-1],c={};Fa(a,function(d){if(H(kj,d)){var e=kj[d](b[d],a[d]);e&&(e.complex?M(c,e.props):c[d]=e)}});this.interpolations=c};return a}(Sm),EC=function(c){function a(b,a,e,f){var d=c.call(this)||this;d.timeLine=e;d.idle=!0;d.paused=!1;d.currentTimePending=!1;d.finishedFlag=!0;d._startTime=null;d._currentTime=0;d.playbackRate=1;d.inEffect=!1;d.effectTime=Lq(a);b=Gb(b)?new CC(b):
ka(b)&&1<b.length?new DC(b,a):new BC;d.effect=b;d.onFinishAnimation=a.onFinishAnimation;d._final=a.final;d.scope=a.scope;d.renderer=f;return d}L(a,c);a.prototype.play=function(){this.paused=!1;if(this.isFinished()||this.idle)this.rewind(),this._startTime=null;this.idle=this.finishedFlag=!1};a.prototype.pause=function(){this.isFinished()||this.paused||this.idle?this.idle&&(this.rewind(),this.idle=!1):this.currentTimePending=!0;this._startTime=null;this.paused=!0};a.prototype.finish=function(){if(!this.idle){var b=
this.effectTime.options;this._currentTime=0<this.playbackRate?b.totalDuration:0;this._startTime=b.totalDuration-this._currentTime;this.currentTimePending=!1}};a.prototype.cancel=function(){this.inEffect&&(this.inEffect=!1,this.idle=!0,this.paused=!1,this.finishedFlag=!0,this._currentTime=0,this._startTime=null,this.updateEffect(null))};a.prototype.reverse=function(){this.playbackRate*=-1;this.play()};a.prototype.playState=function(){return this.idle?"idle":null==this._startTime&&!this.paused&&0!==
this.playbackRate||this.currentTimePending?"pending":this.paused?"paused":this.isFinished()?"finished":"running"};a.prototype.isFinished=function(){var b=this.effectTime.options.totalDuration;return!this.idle&&(0<this.playbackRate&&(this._currentTime>b||this._currentTime===b&&0!==b)||0>this.playbackRate&&0>=this._currentTime)};a.prototype.frame=function(){var b=this;this.idle||this.paused||(null==this._startTime?this._startTime=this.timeLine.currentTime-this._currentTime/this.playbackRate:this.isFinished()||
this.tickCurrentTime((this.timeLine.currentTime-this._startTime)*this.playbackRate));this.currentTimePending=!1;this.isFinished()?this.finishedFlag||(this.onFinish&&W.setTimeout(function(){b.onFinish()},0),this.finishedFlag=!0):this.finishedFlag=!1};a.prototype.startTime=function(){return this._startTime};a.prototype.currentTime=function(){return this._currentTime};a.prototype.rewind=function(){var b=this.effectTime.options;if(0<=this.playbackRate)this._currentTime=0;else if(Infinity>b.totalDuration)this._currentTime=
b.totalDuration;else throw Error("Unable to rewind negative playback rate animation with infinite duration");};a.prototype.tickCurrentTime=function(b){b!==this._currentTime&&(this._currentTime=b,this.updateEffect(0>this.playbackRate&&0===this._currentTime?-1:this._currentTime))};a.prototype.updateEffect=function(b){b=this.effectTime(b);this.inEffect=null!==b;this.effect.update(null===b?1:b)};a.prototype.finishAnimation=function(b){this.finish();b&&(this.updateEffect(null),this.finishedFlag||(this.finishedFlag=
!0,this.onFinish&&this.onFinish()));this.onFinish=null;if(this.onFinishAnimation)this.onFinishAnimation();this._final&&this._final()};return a}(tC),FC=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.ticking=!1;b.animations=[];b._awaitCallbacks=[];b._framesCount=0;return b}L(a,c);a.prototype.animate=function(b,a,c){b=new EC(b,a,this,c);this.animations.push(b);b.play();this.startAnimationsFrame();return b};a.prototype.getAnimations=function(b){this.discardAnimations();return b?
ea(this.animations,function(a){return a.scope===b}):this.animations};a.prototype.getOwnAnimations=function(b){this.discardAnimations();return ea(this.animations,function(a){return a.renderer===b})};a.prototype.await=function(b){this.ticking?this._awaitCallbacks.push(b):b(0)};a.prototype.startAnimationsFrame=function(){var b=this;b.ticking||(b.ticking=!0,b._framesCount=0,W.requestAnimationFrame(function(a){return b.frame(a)}))};a.prototype.frame=function(b){var a=this;a.currentTime=b;a._framesCount++;
x(a.animations,function(b){return b.frame()});a.discardAnimations();0===a.animations.length?a.final():W.requestAnimationFrame(function(b){return a.frame(b)})};a.prototype.discardAnimations=function(){this.animations=ea(this.animations,function(b){b=b.playState();return"finished"!==b&&"idle"!==b})};a.prototype.final=function(){var b=this._awaitCallbacks.slice(),a=this._framesCount;this.ticking=!1;this._awaitCallbacks=[];setTimeout(function(){x(b,function(b){return b(a)})})};return a}(uC),Pd=(new (function(){function c(){}
c.prototype.create=function(){return new FC};return c}())).create(),Fl={},JC=function(){function c(){}c.prototype.createEventsProcessorType=function(){return"ontouchstart"in W?GC:"PointerEvent"in W?HC:IC};return c}(),KC=function(){function c(){this.subscribedEvents={}}c.prototype.isStoreEvent=function(a){return null!=Fl[a]};c.prototype.addEvent=function(a,b,c){var d=Fl[b];if(!d)return!1;this.subscribedEvents[b]||(this.subscribedEvents[b]=[]);a=new d(a,c);a.on();this.subscribedEvents[b].push(a);return!0};
c.prototype.removeEvent=function(a,b,c){if(!this.isStoreEvent(b))return!1;if(!this.subscribedEvents[b])return!0;for(var d=this.subscribedEvents[b].length,f=0;f<d;f++){var g=this.subscribedEvents[b][f];g.eventTarget!==a||c&&g.fn!==c||(this.subscribedEvents[b].splice(f,1),g.un(),d--)}return!0};return c}(),If={},Vb=function(){function c(a,b){var c=this;this.eventTarget=a;this.fn=b;this.pointers={};this.pointerEvents=["pointerdown","pointerenter","pointerout"];this.publicPointerEvents=["pointermove",
"pointerup","pointercancel","pointerout"];this.touchEvents=["touchstart","touchend","touchmove","touchcancel"];this.publicTouchEvents=[];this.mouseEvents=["mousedown","mousemove","mouseover","mouseout","mouseup"];this.publicMouseEvents=[];this.innerEventsHandler=function(b){b.type===fa.Down&&(c.pointers[b.id]=b);c.processEventDescription(b);b.eventData.pointers=c.pointersToArray();c.eventsHandler(b);b.type===fa.Move&&c.pointers[b.id]&&(c.pointers[b.id]=b);if(b.type===fa.Up||b.type===fa.Leave)delete c.pointers[b.id],
delete If[b.id]}}c.prototype.on=function(){this.hasSubscription||(this.subscribe(),this.hasSubscription=!0)};c.prototype.un=function(){this.hasSubscription&&(this.unsubscribe(),this.hasSubscription=!1)};c.prototype.clearPointers=function(){for(var a in If)delete If[a]};c.prototype.pointersToArray=function(){var a=[],b;for(b in If)a.push(If[b]);return a};c.prototype.subscribe=function(){this.eventsProcessor=new ((new JC).createEventsProcessorType())(this.eventTarget,this.innerEventsHandler,{pointerEvents:this.pointerEvents,
publicPointerEvents:this.publicPointerEvents,touchEvents:this.touchEvents,publicTouchEvents:this.publicTouchEvents,mouseEvents:this.mouseEvents,publicMouseEvents:this.publicMouseEvents});this.eventsProcessor.subscribe()};c.prototype.unsubscribe=function(){this.eventsProcessor.unsubscribe()};c.prototype.processEventDescription=function(a){If[a.id]=new LC(a.id,a.pageX,a.pageY,a.clientX,a.clientY)};return c}();(function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.pointerEvents=["pointerdown"];
b.publicPointerEvents=["pointerup","pointercancel"];b.touchEvents=["touchstart"];b.publicTouchEvents=["touchend","touchcancel"];b.mouseEvents=["mousedown"];b.publicMouseEvents=["mouseup","mouseout"];return b}L(a,c);a.prototype.eventsHandler=function(b){switch(b.type){case fa.Down:b.eventData.customEventType="vdown",wf(b,this.eventTarget),this.fn(b.eventData)}};return a=Fb([Rb("vdown")],a)})(Vb);(function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.subscribe=function(){var b=
this;b.eventsProcessor=new zt(b.eventTarget,function(a){return b.eventsHandler(a)},{events:["keyup"]});b.eventsProcessor.subscribe()};a.prototype.eventsHandler=function(b){13==b.keyCode&&this.fn(b)};return a=Fb([Rb("vkeyenter")],a)})(Vb);(function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.subscribe=function(){var b=this;b.eventsProcessor=new zt(b.eventTarget,function(a){return b.eventsHandler(a)},{events:["focus","blur"]});b.eventsProcessor.subscribe()};a.prototype.eventsHandler=
function(b){"focus"===b.type?b.hasFocus=!0:"blur"===b.type&&(b.hasFocus=!1);this.fn(b)};return a=Fb([Rb("vchangefocus")],a)})(Vb);(function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.pointerEvents=["pointerup","pointercancel"];b.publicPointerEvents=[];b.touchEvents=["touchend","touchcancel"];b.mouseEvents=["mouseup","mouseout"];return b}L(a,c);a.prototype.eventsHandler=function(b){switch(b.type){case fa.Up:b.eventData.customEventType="vup",wf(b,this.eventTarget),this.fn(b.eventData)}};
return a=Fb([Rb("vup")],a)})(Vb);(function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.pointerEvents=["pointermove","pointerdown","pointerout","pointerleave"];b.publicPointerEvents=["pointerup","pointercancel"];b.touchEvents=["touchmove","touchstart","touchend","touchcancel"];b.mouseEvents=["mousemove","mousedown","mouseup"];b.downArgs=[];b._resetDiff=4;return b}L(a,c);a.prototype.subscribe=function(){c.prototype.subscribe.call(this)};a.prototype.eventsHandler=function(b){var a=
vh(this.downArgs,"id",b.id);switch(b.type){case fa.Down:if(!Yq(b.eventData))break;this.downArgs.push(b);break;case fa.Move:if(!a)break;var c=a.clientX-b.clientX;b=a.clientY-b.clientY;c*c+b*b>this._resetDiff&&this.downArgs.splice(this.downArgs.indexOf(a),1);break;case fa.Up:a&&a.id===b.id&&a.eventData.target===b.eventData.target&&(b.eventData.customEventType="vclick",wf(b,this.eventTarget),this.fn(b.eventData),this.downArgs.splice(this.downArgs.indexOf(a),1))}};return a=Fb([Rb("vclick")],a)})(Vb);
(function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.pointerEvents=["pointerenter","pointerleave","pointercancel"];b.publicPointerEvents=[];b.touchEvents=["touchstart","touchend","touchcancel"];b.mouseEvents=["mouseover","mouseout"];return b}L(a,c);a.prototype.eventsHandler=function(b){switch(b.type){case fa.Down:case fa.Enter:b.eventData.customEventType="venter",wf(b,this.eventTarget),this.fn(b.eventData)}};return a=Fb([Rb("venter")],a)})(Vb);(function(c){function a(){var b=
null!==c&&c.apply(this,arguments)||this;b.pointerEvents=["pointerout","pointercancel"];b.publicPointerEvents=[];b.touchEvents=["touchend","touchcancel"];b.mouseEvents=["mouseout"];return b}L(a,c);a.prototype.eventsHandler=function(b){switch(b.type){case fa.Up:case fa.Leave:b.eventData.customEventType="vleave",this.fn(b.eventData)}};return a=Fb([Rb("vleave")],a)})(Vb);(function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.pointerEvents=["pointermove"];b.touchEvents=["touchmove"];
b.mouseEvents=["mousemove"];b.publicPointerEvents=["pointerup","pointercancel"];b.publicTouchEvents=["touchend","touchcancel"];b.publicMouseEvents=["mouseup","mouseout"];return b}L(a,c);a.prototype.eventsHandler=function(b){switch(b.type){case fa.Move:b.eventData.customEventType="vmove",wf(b,this.eventTarget),this.fn(b.eventData)}};return a=Fb([Rb("vmove")],a)})(Vb);(function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.timeoutId=null;b.timeout=750;return b}L(a,c);a.prototype.eventsHandler=
function(b){var a=this;switch(b.type){case fa.Down:this.timeoutId=setTimeout(function(){a.fn({type:"taphold",clientX:b.clientX,clientY:b.clientY});a.timeoutId=null},this.timeout);break;case fa.Move:case fa.Up:this.reset()}};a.prototype.reset=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)};return a=Fb([Rb("taphold")],a)})(Vb);(function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.distance=0;b.distanceX=0;b.distanceY=0;b.threshold=.3;return b}L(a,c);
a.prototype.eventsHandler=function(b){switch(b.type){case fa.Move:this.callPinchEvent(b);break;case fa.Up:2===Object.keys(this.pointers).length&&(this.distance=0)}};a.prototype.callPinchEvent=function(b){var a=Object.keys(this.pointers);if(2!==a.length)this.distance=0;else{var c=this.pointers[a[0]],f=this.pointers[a[1]],g=!1,h=!1;c.id===b.id?(c=b,g=c.clientX<f.clientX,h=c.clientY<f.clientY):f.id===b.id&&(f=b,g=f.clientX<c.clientX,h=f.clientY<c.clientY);var k=this.calculateDistance(c,f),l=this.calculateAxisDistance(c,
f,{x:1,y:0}),m=this.calculateAxisDistance(c,f,{x:0,y:1});if(0===this.distance)this.distance=k,this.distanceX=l,this.distanceY=m;else{var n=k-this.distance;if(!(Math.abs(n)<this.threshold)){var p=l-this.distanceX,q=m-this.distanceY;this.distance=k;this.distanceX=l;this.distanceY=m;this.fn({type:"pinch",distance:this.distance,offset:n,offsetX:p,offsetY:q,isLeftPointer:g,isTopPointer:h,pointersCount:a.length,eventData:b.eventData,firstClientX:c.clientX,firstClientY:c.clientY,secondClientX:f.clientX,
secondClientY:f.clientY})}}}};a.prototype.calculateDistance=function(b,a){var c=a.clientX-b.clientX;b=a.clientY-b.clientY;return Math.sqrt(c*c+b*b)};a.prototype.calculateAxisDistance=function(b,a,c){return Math.abs(c.x*a.clientX+c.y*a.clientY-(c.x*b.clientX+c.y*b.clientY))};return a=Fb([Rb("pinch")],a)})(Vb);(function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.eventsHandler=function(b){switch(b.type){case fa.Move:this.callMoveEvent(b)}};a.prototype.callMoveEvent=
function(b){var a=b.id;this.pointers[a]&&this.fn({type:"move",offsetX:b.clientX-this.pointers[a].clientX,offsetY:b.clientY-this.pointers[a].clientY,pointersCount:Object.keys(this.pointers).length})};return a=Fb([Rb("move")],a)})(Vb);(function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.timeoutInterval=function(){return 500};a.prototype.resetTimeoutInterval=function(){return 300};a.prototype.getName=function(){return"DoubleTapEvent"};a.prototype.tapCount=function(){return 2};
return a=Fb([Rb("doubletap")],a)})(function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.timeoutId=null;b.resetTimeoutId=null;b.currentTapCount=0;return b}L(a,c);a.prototype.eventsHandler=function(b){var a=this;switch(b.type){case fa.Down:clearTimeout(this.timeoutId);clearTimeout(this.resetTimeoutId);this.currentTapCount++;this.timeoutId=setTimeout(function(){a.currentTapCount===a.tapCount()&&(b.eventData.customEventType=a.getName(),wf(b,a.eventTarget),a.fn(b.eventData));a.currentTapCount=
0},this.timeoutInterval());break;case fa.Up:this.resetTimeoutId=setTimeout(function(){a.currentTapCount=0},this.resetTimeoutInterval())}};return a}(Vb));(function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.getName=function(){return"vdblclick"};a.prototype.clicksCount=function(){return 2};a.prototype.timeout=function(){return 300};return a=Fb([Rb("vdblclick")],a)})(function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.downArgs=[];b.currentClicksCount=
0;return b}L(a,c);a.prototype.eventsHandler=function(b){var a=this,c=vh(this.downArgs,"id",b.id);switch(b.type){case fa.Down:if(!Yq(b.eventData))break;clearTimeout(this.timeoutId);this.downArgs.push(b);break;case fa.Up:c&&c.id===b.id&&c.eventData.target===b.eventData.target&&(clearTimeout(this.timeoutId),this.currentClicksCount++,b.eventData.customEventType=this.getName(),this.currentClicksCount===this.clicksCount()?(this.fn(b.eventData),this.currentClicksCount=0):this.timeoutId=setTimeout(function(){a.currentClicksCount=
0},this.timeout()),this.downArgs.splice(this.downArgs.indexOf(c),1))}};return a}(Vb));var fa;(function(c){c[c.None=0]="None";c[c.Down=1]="Down";c[c.Move=2]="Move";c[c.Enter=3]="Enter";c[c.Leave=4]="Leave";c[c.Up=5]="Up"})(fa||(fa={}));var Tm=function(){return function(c,a,b,d,e,f,g){this.type=c;this.id=a;this.pageX=b;this.pageY=d;this.clientX=e;this.clientY=f;this.eventData=g}}(),lj=function(){function c(a,b,c){void 0===c&&(c={});this.el=a;this.eventsHandler=b;this.options=c}c.prototype.getWindowForElement=
function(){var a=this.el;a=a.ownerDocument||a;return a.defaultView||a.parentWindow||W};c.prototype.triggerEventsHandler=function(a){this.eventsHandler&&this.eventsHandler(a)};c.prototype.handleEvents=function(a,b,c,e){var d;if(a&&a.length){try{for(var g=xa(a),h=g.next();!h.done;h=g.next())this.el[b](h.value,c,e)}catch(l){var k={error:l}}finally{try{h&&!h.done&&(d=g.return)&&d.call(g)}finally{if(k)throw k.error;}}return!0}return!1};c.prototype.handlePublicEvents=function(a,b,c,e){var d,g=this.getWindowForElement();
if(a&&a.length){try{for(var h=xa(a),k=h.next();!k.done;k=h.next())g[b](k.value,c,e)}catch(m){var l={error:m}}finally{try{k&&!k.done&&(d=h.return)&&d.call(h)}finally{if(l)throw l.error;}}return!0}return!1};return c}(),zt=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.handler=function(a){b.triggerEventsHandler(a)};return b}L(a,c);a.prototype.subscribe=function(){this.handleEvents(this.options.events,"addEventListener",this.handler);this.handlePublicEvents(this.options.publicEvents,
"addEventListener",this.handler)};a.prototype.unsubscribe=function(){this.handleEvents(this.options.events,"removeEventListener",this.handler);this.handlePublicEvents(this.options.publicEvents,"removeEventListener",this.handler)};return a}(lj),IC=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.handler=function(a){switch(a.type.toLowerCase()){case "mousedown":var c=fa.Down;break;case "mousemove":c=fa.Move;break;case "mouseover":c=fa.Enter;break;case "mouseout":c=fa.Leave;break;
case "mouseup":c=fa.Up}b.triggerEventsHandler(new Tm(c,"1",a.pageX,a.pageY,a.clientX,a.clientY,a))};return b}L(a,c);a.prototype.subscribe=function(){this.handleEvents(this.options.mouseEvents,"addEventListener",this.handler);this.handlePublicEvents(this.options.publicMouseEvents,"addEventListener",this.handler)};a.prototype.unsubscribe=function(){this.handleEvents(this.options.mouseEvents,"removeEventListener",this.handler);this.handlePublicEvents(this.options.publicMouseEvents,"removeEventListener",
this.handler)};return a}(lj),GC=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.handler=function(a){switch(a.type.toLowerCase()){case "touchstart":b.triggerTouchEvent(fa.Down,a);break;case "touchmove":b.triggerTouchEvent(fa.Move,a);break;case "touchend":case "touchcancel":b.triggerTouchEvent(fa.Up,a)}};return b}L(a,c);a.prototype.subscribe=function(){this.handleEvents(this.options.touchEvents,"addEventListener",this.handler,{passive:!1});this.handlePublicEvents(this.options.publicTouchEvents,
"addEventListener",this.handler,{passive:!1})};a.prototype.unsubscribe=function(){this.handleEvents(this.options.touchEvents,"removeEventListener",this.handler);this.handlePublicEvents(this.options.publicTouchEvents,"removeEventListener",this.handler)};a.prototype.triggerTouchEvent=function(b,a){for(var c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];this.triggerEventsHandler(new Tm(b,d.identifier,d.pageX,d.pageY,d.clientX,d.clientY,a))}};return a}(lj),HC=function(c){function a(){var b=
null!==c&&c.apply(this,arguments)||this;b.handler=function(a){var c=a.type,d=b.getIdFromEvent(a);switch(c.toLowerCase()){case "pointerdown":var g=fa.Down;break;case "pointermove":g=fa.Move;break;case "pointerenter":g=fa.Enter;break;case "pointerout":g=fa.Leave;break;case "pointerup":case "pointercancel":case "pointerleave":g=fa.Up}b.triggerEventsHandler(new Tm(g,d,a.pageX,a.pageY,a.clientX,a.clientY,a))};return b}L(a,c);a.prototype.subscribe=function(){this.handleEvents(this.options.pointerEvents,
"addEventListener",this.handler);this.handlePublicEvents(this.options.publicPointerEvents,"addEventListener",this.handler)};a.prototype.unsubscribe=function(){this.handleEvents(this.options.pointerEvents,"removeEventListener",this.handler);this.handlePublicEvents(this.options.publicPointerEvents,"removeEventListener",this.handler)};a.prototype.getIdFromEvent=function(b){return b.pointerId.toString()};return a}(lj),LC=function(){return function(c,a,b,d,e){this.id=c;this.pageX=a;this.pageY=b;this.clientX=
d;this.clientY=e}}(),MC=ja(["div","input","button"]),pi=function(c){return c?H(MC,c.toLowerCase()):!1},mj=function(c,a,b){a=b||"svg";return(a=pi(c)?"http://www.w3.org/1999/xhtml":"svg"===a?"http://www.w3.org/2000/svg":"html"===a?"http://www.w3.org/1999/xhtml":void 0)?ia.createElementNS(a,c):ia.createElement(c)},Cy=function(c){if(c){var a=c.parentNode;a&&a.removeChild(c)}},NC="alt disabled href id src style title class onclick tabindex role aria-label".split(" "),OC=["user-select","outline"],er=function(c){if(0===
c.lastIndexOf("xml:",0))return"http://www.w3.org/XML/1998/namespace";if(0===c.lastIndexOf("xlink:",0))return"http://www.w3.org/1999/xlink"},Il=function(c,a){c=c.tagName.toLowerCase();return pi(c)&&-1===NC.indexOf(a)||-1<OC.indexOf(a)},dr={width:"0",height:"0",x:"0",y:"0","z-index":"0",fill:"black",stroke:"none",opacity:"1","stroke-width":"1",display:"inline",visibility:"visible",transform:"none","clip-path":"none"},PC=Uj("width,height,font-size,font-family"),Um={image:function(c,a){return c.createElement(vt,
"image",a)},clipRect:function(c,a){return c.createElement(rC,"clipPath",a)},clipPath:function(c,a){return c.createElement(Mm,"clipPath",a)},mask:function(c,a){return c.createElement(sC,"mask",a)}},At=function(c,a){var b=ia.createElement("div"),d=function(b){return'<div style="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;"><div style="position: absolute; left: 0; top: 0; transition: 0s;'+(b||"")+'"></div></div>'};b.style.cssText="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden;";
b.innerHTML=d()+d(" width: 200%; height: 200%");c.appendChild(b);var e,f,g,h,k=c.offsetWidth,l=c.offsetHeight,m=b.childNodes[0],n=m.childNodes[0],p=b.childNodes[1],q=function(){n.style.width="100000px";n.style.height="100000px";m.scrollLeft=1E5;m.scrollTop=1E5;p.scrollLeft=1E5;p.scrollTop=1E5};q();var r=function(){f=0;e&&(k=g,l=h,a.call())},u=function(){g=c.offsetWidth;h=c.offsetHeight;(e=g!==k||h!==l)&&!f&&(f=W.requestAnimationFrame(r));q()};d=function(b){b.attachEvent?b.attachEvent("onscroll",u):
b.addEventListener("scroll",u)};d(m);d(p);return b},QC=function(c){function a(b){var a=this;b=b||{};var e=b.container,f=b.textRendering,g=a=c.call(this,e,b.width,b.height,b.defaultWidth,b.defaultHeight)||this;Mx(g);g.disableAnimation=!1;g.eventsStore=new KC;g._noRender=b.noRender;g._staticSize=b.staticSize;g._skipDomDestroy=b.skipDomDestroy;g._defaultOptions={transition:{animation:{duration:500,easing:"ease-in-out-circ"},generator:"default"}};g._measuringImages={};if(!g._noRender){g.initContainer(e);
e=g.root&&g.root.el;var h=g.getSvgSize(),k=g.width||"100%",l=g.height||"100%";g.documentElement=new ub(ia.documentElement,g);g.root=e?g.root:g.svg({width:h.width,height:h.height,textRendering:f});g.overlay=g.htmlElement("",{id:Fd("overlay"),position:"absolute",left:0,top:0});g.wrapper=g.htmlElement("",{id:Ep("JSCharting_")});g.wrapper.attr({width:k,height:l,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",position:"relative"});g.container.el.appendChild(g.wrapper.el);g.wrapper.el.appendChild(g.root.el);
g.wrapper.el.appendChild(g.overlay.el);!b.staticSize&&(g._resizeSensor=At(g.wrapper.el,function(){return g.rootResize()}))}return a}L(a,c);a.prototype.resubscribeResize=function(){var b=this;b._resizeSensor&&(b._resizeSensor.parentNode.removeChild(b._resizeSensor),b._resizeSensor=At(b.wrapper.el,function(){return b.rootResize()}))};a.prototype.setCursor=function(b){this._setCursor!==b&&this.processAttributes(this.wrapper,{cursor:b});this._setCursor=b};a.prototype.getCursor=function(){return this._setCursor};
a.prototype.element=function(b,a,c){var d=this;if(!U(b)){if(b instanceof ub)return b;if(H(Um,b))return Um[b](this,a);if(!O(b))return this.element(b.tag,b.attr,c);var e=a?a.childNodes:null;e&&(a=Ka(a,["childNodes"]));var h=this.createElement(ub,b,a,c);h&&e&&x(e,function(b){d.element(b).add(h)});return h}};a.prototype.isRootHidden=function(){var b=this.root&&this.root.el;if(!b)return!0;b=W.getComputedStyle(b);return"hidden"===b.visibility||"none"===b.display};a.prototype.isRootDestroyed=function(){var b=
this.root;return b?b.isDestroyed:!0};a.prototype.add=function(b,a){var c=b.el instanceof HTMLElement,d=a&&a.el&&a.el instanceof HTMLElement;if(a&&a.addElementToParent&&!c)return a.addElementToParent(b),b;a=c?d?a:this.overlay:a||this.root;if(b.data.zIndex||a.data.ordered)return c=b.data.zIndex||0,a.data.ordered=!0,cr(a,b,c),b;Zq(a,b);return b};a.prototype.addBefore=function(b,a){Fg(b,a);return b};a.prototype.addAfter=function(b,a){$q(b,a);return b};a.prototype.attr=function(b,a,c){var d;if(U(a))return fr(b),
b;if(!a)return b;var e=O(a),h=t(c),k=e&&!h,l=a;e&&h&&(l=(d={},d[a]=c,d));if(!b)return this.rootAttr(l,k);if(l.transition)return b.transition(l.transition),b;a=this.processAttributes(b,Rm(l,b));return k?a:b};a.prototype.rect=function(b,a,c,f,g,h){if(U(b))return this.element("rect");b=Sa(b)?b:{x:b,y:a,width:c,height:f,rx:g,ry:h};return this.element("rect",b)};a.prototype.circle=function(b,a,c){if(U(b))return this.element("circle");b=Sa(b)?b:{cx:b,cy:a,r:c};return this.element("circle",b)};a.prototype.image=
function(b,a,c,f,g){if(U(b))return this.element("image");b=Sa(b)?b:{src:b,x:a,y:c,width:f,height:g};return this.createElement(vt,"image",b)};a.prototype.query=function(b,a){return a?this.wrap(oi(b,a.el)):this.wrap(oi(b))};a.prototype.queryAll=function(b){var a=this;b=ia.querySelectorAll(b);return B(b,function(b){return a.wrap(b)})};a.prototype.svg=function(b){b=this.createElement(ub,"svg",b);b.el.setAttribute("xmlns","http://www.w3.org/2000/svg");b.el.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink");
this.element("desc",{text:"Created with JSCharting"}).add(b);return b};a.prototype.reCreateElement=function(b,a){var c=b.parentNode,d=mj(a);b.destroy();b.init(d,a);b.isPatched=!0;c&&b.add(c);return b};a.prototype.destroy=function(b,a){var c=this;a=a||c._skipDomDestroy;if(b){var d=gi(c);wl(c,b,function(b){return d&&zl(c,b)});var g=b.data.events;g&&g.length&&x(g.slice(0),function(a){return c.un(b,a.type,a.fn)});!a&&By(b);b.isDestroyed=!0;return b}d&&d.destroy();gi(c,null);W.removeEventListener("resize",
void 0,!1);mx(c.container.attr("id"))&&c.destroy(c.container);c.destroy(c.wrapper);c.destroy(c.overlay);c.destroy(c.documentElement,!0);return c.destroy(c.root)};a.prototype.on=function(b,a,c){var d=function(a){return c.call(b,a)};this.eventsStore.addEvent(b.el,a,d)||b.el.addEventListener(a,d,!1);(b.data.events=b.data.events||[]).push({type:a,fn:c,f:d});return b};a.prototype.un=function(b,a,c){if(!b.data.events)return b;for(var d=b.data.events=b.data.events||[],e=d.length-1;-1<e;e--){var h=d[e];h.type!==
a&&a||h.fn!==c&&c||(this.eventsStore.removeEvent(b.el,h.type,h.f)||b.el.removeEventListener(h.type,h.f,!1),d.splice(e,1))}return b};a.prototype.box=function(b,a){var c=this,d;if(b&&(d=b.el)){var g=W.getComputedStyle(d),h=g.width,k=g.height;if(0<h.indexOf("px")&&0<k.indexOf("px")&&(h=parseInt(h),k=parseInt(k),0===k&&0===h&&d.getBBox&&(d=d.getBBox(),h=d.width,k=d.height),0<=h&&0<=k))return{x:parseInt(g.x),y:parseInt(g.y),width:h,height:k}}a=Ey(b||this.root,a);g=t(this.width)&&pb(this.width);d=t(this.height)&&
pb(this.height);var l=function(b){var a;return!(null===(a=c.root)||void 0===a?0:a.attr)||"100%"!==c.root.attr(b)};h=!a.width&&!g;k=!a.height&&!d;var m=h&&l("width");l=k&&l("height");b||!m&&!l||this._staticSize?(b||!h&&!k||(h=this.container.getBbox(),a.width=a.width||h.width,a.height=a.height||h.height),this._defaultSizeIsSet=!1):(a.width=a.width||this.defaultWidth,a.height=a.height||this.defaultHeight,(h=this.wrapper)&&oa.emit("warning",h.attr("id"),"defaultSizeIsSet",{container:h.el}),this._defaultSizeIsSet=
!0);b||(g&&(a.width=this.width),d&&(a.height=this.height));return a};a.prototype.isDefaultSizeSet=function(){return this._defaultSizeIsSet};a.prototype.pathInner=function(b,a){if(U(a))return this.createElement(b,"path");var c=ka(a);a=O(a)||c?{d:c?tc(a," "):a}:a;ka(a.d)&&(a.d=tc(a.d," "));a.d&&a.d.path&&(a.d=a.d.path);return this.createElement(b,"path",a)};a.prototype.rootResize=function(){if(!this.width||!this.height){var b=this.root.attr("display"),a=this.getSvgSize(),c=this.root.renderer.defaultHeigh;
b={width:a.width,display:b};var f=this.root.data.attrs.height,g=parseInt(f),h=J(this.root.el,["parentNode","parentElement"]);f===c+""?(c=h.offsetHeight,h=h.firstElementChild,(f="chartGridSwitch"===h.classList.item(0))?c<g+(f&&h.offsetHeight)&&(b.height=a.height):c!==g&&(b.height=a.height)):b.height=a.height;this.root.attr(b)}Lm&&Lm.trigger()};a.prototype.getSvgSize=function(){var b=this.container.getBbox();return{width:this.width||(b.width?"100%":this.defaultWidth),height:this.height||(b.height?"100%":
this.defaultHeight)}};a.prototype.wrap=function(b){return Gg(b,this)};a.prototype.createElement=function(b,a,c,f){f=mj(a,null,f);b=new b(f,this,a);"path"===b.nodeName&&(c=c||{},c.fill||(c.fill="none"),c.stroke||(c.stroke="none"));c&&b.attr(c);b.isPatched=!0;return b};a.prototype.processAttributes=function(b,a){var c=this;if(a&&(a.beforeAttr&&(a.beforeAttr(a),delete a.beforeAttr),a.reset&&(fr(b,a),delete a.reset),b.el)){if(O(a))return br(b,a);var d=this.isAnimationDisabled();if(d||!b.isPatched||!a.autoTransition&&
!a.animation||!b.tryAutoTransition(a)){H(a,"animation")&&(a.animation=void 0);if(a.continueAnimation){if(a.continueAnimation=void 0,b._transition&&b._transition.attachToEnd(a))return}else b.finishAnimation(d?null:a);return Dy(b,a,function(b,a,d){tq(c,b,a,d,function(b){return zl(c,b)})})}}};a.prototype.isAnimationDisabled=function(b){return this.disableAnimation||!1===this._defaultOptions.transition.animation||b&&!1===b.animation};a.prototype.showHide=function(b,a){var c=b.attr("display");a!==("none"!==
c)&&b.attr("display",a?null:"none");return b};a.prototype.show=function(b){return this.showHide(b,!0)};a.prototype.hide=function(b){return this.showHide(b,!1)};a.prototype.visible=function(b,a){return this.showHide(b,t(a)?a:"none"===b.attr("display"))};a.prototype.calculateImageSize=function(b,a){Ug(b,".svg")?this.calculateSvgImageSize(b,a):this.calculateRasterImageSize(b,a)};a.prototype.load=function(b,a){var c=this;$v(b,function(b){var d=b.data,e=mj("div",null,"html");b=!0;/^\s*<\s*svg(?:\s|>)/m.test(d)||
(d='<svg xmlns="http://www.w3.org/2000/svg">'+d+"</svg>",b=!1);e.innerHTML=d;if(d=e.getElementsByTagName("svg")[0])if(b)b=Gg(d,c);else{for(b=ia.createDocumentFragment();d.firstChild;)b.appendChild(d.firstChild);b=Gg(b,c)}else b=null;return a(b)})};a.prototype.htmlElement=function(b,a){b=b||"";var c=mj("div",null,"html");c.innerHTML=b;b=Gg(c,this,"div");a&&b.attr(a);return b};a.prototype.relativeToRoot=function(b,a){var c=this.getRootBoundingClientRect();return{x:b-c.left,y:a-c.top}};a.prototype.getClientXY=
function(b){var a=this.getRootBoundingClientRect(),c=b.getBbox(),f=0,g=0;do{var h=(h=b.attr("transform").translate)?[h[0],h[1]]:[0,0];f+=h[0];g+=h[1];b=b.parentNode}while(b&&"svg"!==b.el.tagName);return{x:c.x+a.left+f,y:c.y+a.top+g}};a.prototype.isAnimating=function(){return 0<Pd.getAnimations().length};a.prototype.isAnimatingOwn=function(){return 0<Pd.getOwnAnimations(this).length};a.prototype.getOffsetsFromVisualViewport=function(b){var a=ia.documentElement.getBoundingClientRect();b=b.parentNode?
b.getBoundingClientRect():{top:0,left:0};return{top:b.top-a.top-window.pageYOffset,left:b.left-a.left-window.pageXOffset}};a.prototype.getRootBoundingClientRect=function(){var b=this;if(b._rootBoundingClientRect)return b._rootBoundingClientRect;b._rootBoundingClientRect=b.getOffsetsFromVisualViewport(b.root.el);W.setTimeout(function(){b._rootBoundingClientRect=null},1E3);return b._rootBoundingClientRect};a.prototype.cssText=function(b,a){var c=ia,d=c.head||c.getElementsByTagName("head")[0],g=c.createElement("style");
a&&g.setAttribute("id",a);g.type="text/css";g.styleSheet?g.styleSheet.cssText=b:g.appendChild(c.createTextNode(b));d.appendChild(g)};a.prototype.calculateRasterImageSize=function(b,a){var c=function(b){return b.addEventListener("load",function(){return a(b.width,b.height)})};if(this._measuringImages[b])d=this._measuringImages[b],d.width?a(d.width,d.height):c(d);else{this._measuringImages[b]=new Image;var d=this._measuringImages[b];c(d);d.src=b}};a.prototype.calculateSvgImageSize=function(b,a){this.load(b,
function(b){return a(b.attr("width")||0,b.attr("height")||0)})};a.prototype.rootAttr=function(b,a){var c=this.wrapper,d=this.root;if(a)return"disableAnimation"===b?this.disableAnimation:this.processAttributes(d,b);b.transition&&(M(this._defaultOptions.transition,b.transition),delete b.transition);H(b,"disableAnimation")&&(this.disableAnimation=b.disableAnimation,delete b.disableAnimation);b.container&&(this.replaceContainer(b.container),delete b.container);vb(b)||(a=Rm(b,d),b=Ra(a,PC),a=Ra(a),b&&
this.processAttributes(c,b),a&&this.processAttributes(d,a))};a.prototype.defaultOptions=function(){return this._defaultOptions};a.prototype.replaceContainer=function(b){this.initContainer(b);this.container.el.appendChild(this.wrapper.el);this.wrapper.el.appendChild(this.root.el);this.wrapper.el.appendChild(this.overlay.el)};a.prototype.initContainer=function(b){if(b&&(O(b)||b.tagName))if(b=b.tagName?b:oi(b),"svg"===b.tagName.toLowerCase()){this.root=this.wrap(b);var a=b.getElementsByTagName("desc")[0];
b=b.getElementsByTagName("defs")[0];a||this.element("desc",{text:"Created with JSCharting"}).add(this.root);b&&(new ub(b,this)).add(this.root)}else if("div"===b.tagName.toLowerCase()){for(;b.lastChild;)b.removeChild(b.lastChild);this.container=this.wrap(b)}this.container||(this.container=this.htmlElement("",{id:Fd("container")}),oi("body").appendChild(this.container.el))};return a}(oC),Bt=new (function(){function c(){}c.prototype.create=function(a){return new QC(a)};return c}()),Ct=function(){function c(){}
c.prototype.generate=function(a,b,c){var d={},f;Fa(a,function(b){t(a[b])&&("z-index"===b?(f=f||{},f[b]=a[b]):H(Qm,b)&&(d[b]=a[b]))});a.animation&&(d.animation=a.animation);b={middle:{from:b,to:d},end:a};f&&(b.start=f);return b};return c}(),RC=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.generate=function(b,a,e){e=c.prototype.generate.call(this,b,a,e);var d=A({},a,b),g=!a.d||Ug(a.d,"Z");b=!b.d||Ug(b.d,"Z");e.middle.to.fill&&!a.fill&&(e.middle.from.fill=
"none");if(g&&b)return e;e.middle.from.fill=g?a.fill||"none":"none";if(e.middle.to.fill||d.fill)e.middle.to.fill=b?d.fill||"none":"none";return e};return a}(Ct),SC={default:(new Ct).generate,path:(new RC).generate},TC=function(){function c(a){this._el=a;this.scope=this._el.data.id;this._renderer=this._el.renderer}c.prototype.attr=function(a){var b=this._el;return b.isComposite?b.attr(a):this._renderer.attr(b,a)};c.prototype.attrEnd=function(a){var b=this._el;Fa(a,function(b){var c=a[b];c&&!c.el&&
!c.isDef&&c.val&&(a[b]=c.val)});b.isComposite?b.attr(a):this._renderer.attr(b,a)};c.prototype.normalize=function(a){return this._el.normalizeAttrs(a)};c.prototype.parse=function(a,b){return"u"===b[0]?this.parseUrl(b):"%"===b[b.length-1]?this.parseDemesion(a,b):b};c.prototype.parseUrl=function(a){var b=/url\(#(.*)\)/g.exec(a);if(!b)return a;var c=this._renderer;b=b[1];var e=xl(c,b);e?b=e:(c=c.query("#"+b))?(e=c.nodeName.toLowerCase(),(e=Nm[e])&&e(c,b),b=c):b=void 0;return b&&b.val?b.val:a};c.prototype.parseDemesion=
function(a,b){var c=parseFloat(b),e=!!this._el.parentNode,f=e?this._el.parentNode.box():this._el.box();return H(f,a)?e?c*f[a]/100:f[a]:b};return c}(),Dt=function(){function c(a,b){this._animation={};this._defaults={};this._activeAnimatingAttrs=this._animatingAttrs=null;this._skipEnd=!1;this._processors={};this._updater=a;this.renderer=this._updater._renderer;this.scope=this._updater.scope;b&&this.options(b)}c.prototype.options=function(a){if(a){a.animation&&M(this._animation,Wg[1].resolve(a.animation));
a.defaults&&M(this._defaults,this.normalize(a.defaults));a.processors&&this.registerProcessors(a.processors);a.generator&&(this._generator=SC[a.generator]);var b=a.start,c=a.middle;a=a.end;!c&&!a||this.checkForSameAnimation(c)||(this._skipEnd=!0,this.finishAnimation(),this._skipEnd=!1,b&&(b=this.normalize(b),this._animatingAttrs&&(b=Ka(b,ya(this._animatingAttrs))),this.attr(b)),a&&(this._endAttrs=this._endAttrs||{},M(this._endAttrs,Ka(a,["animation","autoTransition","attrTransition"]))),b=this._appliedAnimation=
c.to&&c.to.animation?X(this._animation,Wg[1].resolve(c.to.animation)):M({},this._animation),c&&c.to?(this.applyAnimation(c.from,c.to,b,this.renderer),this.waitFinish(b)):this.applyEnd(b))}};c.prototype.getAnimationOptions=function(){return this._animation};c.prototype.getAnimations=function(){return Pd.getAnimations(this.scope)};c.prototype.finishAnimation=function(a,b){void 0===a&&(a=!1);var c=this.getAnimations()||[];if(c.length){if(b){var e=this._activeAnimatingAttrs;if(e){var f=!0,g;for(g in b)if(H(e,
g)&&e[g]!==b[g]){f=!1;break}if(f)return}}x(c,function(b){return b.finishAnimation(a)})}};c.prototype.tryAutoTransition=function(a,b,c){if(this._generator&&!1!==a.animation&&(!a.animation||0!==a.animation.duration))return this.options(this._generator(a,b(),c)),this};c.prototype.attachToEnd=function(a){if(!(this.getAnimations()||[]).length||!a)return!1;var b=this._endAttrs=this._endAttrs||{};M(b,a);return!0};c.prototype.checkForSameAnimation=function(a){if(!(a&&a.to&&a.to.animation&&this._animatingAttrs))return!1;
for(var b in a.to)if("animation"!==b&&a.to[b]!==this._animatingAttrs[b])return!1;return!0};c.prototype.applyEnd=function(a){var b=this;if(!b._skipEnd&&(b._animatingAttrs=null,b._activeAnimatingAttrs=null,b._endAttrs&&!vb(b._endAttrs))){if(a.beforeAttr||b._beforeAttr)b._endAttrs.beforeAttr=function(c){return b.checkForBeforeAttr(c,a,null)};b.attrApllying=!0;b._updater.attrEnd(b._endAttrs);b.attrApllying=!1;b._endAttrs=null}};c.prototype.applyAnimation=function(a,b,c,e){var d=this;a=this.normalize(a);
b=this.normalize(b);var g=this,h={},k={},l={},m=this._animatingAttrs,n=null!==m,p=this._defaults,q=[],r={},u={},y=!0;n&&(b=M(m,b));(function(b){Fa(b,function(e){var f=b[e];if(H(Qm,e)){var v=n&&H(m,e)?d.attr(e):a&&H(a,e)?a[e]:H(p,e)?p[e]:d.attr(e),w=Qm[e];w[2]&&O(v)&&(v=d._updater.parse(e,v));f&&f.isElement&&!H(f,"val")?r[e]=t(f[e])?f[e]:f:(v=w[0](v),f=w[2]&&O(f)?g._updater.parse(e,f):f,f=w[0](f),l[e]=f,d._endAttrs&&H(d._endAttrs,e)&&f===d._endAttrs[e]&&delete d._endAttrs[e],v==f||f&&f.isEqual&&f.isEqual(v)||
(u[e]=f,y=!1,w[1]?q.push({key:e,animator:w[1](v,f,c)}):(h[e]=v,k[e]=f)))}else r[e]=f})})(b);this._animatingAttrs=this._curAttrs=this._prevAttrs=l;this._activeAnimatingAttrs=u;this._offset=0;b=M({onFrame:function(b,a){d._offset=b=null===b?1:b;q.length&&x(q,function(c){a[c.key]=c.animator(b)});d._prevAttrs=d._curAttrs;d._curAttrs=a;d.checkForBeforeAttr(a,c,b);d.attr(a)},scope:this.scope},c);vb(r)||this.attr(r);y||Pd.animate([h,k],b,e)};c.prototype.waitFinish=function(a){var b=this,c=this.getAnimations(),
e=a.onFinish,f=a.final,g=function(){b.applyEnd(a);e&&e();f&&f()},h=function(){P(c,function(b){return"finished"!==b.playState()})||g()};c&&0<c.length?(x(c,function(b){b.onFinish=function(){h()}}),h()):g()};c.prototype.normalize=function(a){if(!a)return null;a=Ka(a,["animation","autoTransition","attrTransition"]);return this._updater.normalize(a)};c.prototype.attr=function(a){this.attrApllying=!0;a=this._updater.attr(a);this.attrApllying=!1;return a};c.prototype.registerProcessors=function(a){var b=
this;ka(a)?x(a,function(a){return b.registerProcessor(a)}):this.registerProcessor(a)};c.prototype.registerProcessor=function(a){a.name&&(a.beforeAttr&&(this._beforeAttr=this._beforeAttr||[],this._beforeAttr.push(a.beforeAttr)),this._processors[a.name]=a)};c.prototype.checkForBeforeAttr=function(a,b,c){var d=this;b.beforeAttr?b.beforeAttr(a,this._prevAttrs,c):this._beforeAttr&&x(this._beforeAttr,function(b){return b(a,d._prevAttrs,c)})};return c}(),UC=function(){function c(){}c.prototype.create=function(a,
b){return new Dt(new TC(a),b)};return c}();Wg[0]=new UC;var Vm=ja("transform clipPath clip-path opacity display zIndex".split(" ")),Et=X(Vm,ja(["animation","fill","stroke"])),VC=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.attr=function(b,a){return(this.attrApplier=this.attrApplier||new (this.applierType())(this)).attr(b,a)};return a}(ub),Ft=function(){function c(a){this._attrsToApply={};this._firstAttrApplied=!1;this._childElements=[];this.renderer=a.renderer;
this.virtualElement=a;this.virtualElement.isComposite=!0}c.prototype.attr=function(a,b){if(!a||!Sa(a)){var c=this.virtualElement.data.vals;return H(c,a)?c[a]:this.renderer.attr(this.virtualElement,a,b)}this._firstAttrApplied&&a.animation&&a.animation.duration&&this.virtualElement.isPatched&&!this.renderer.disableAnimation?(this._attrsToApply=a,this.renderer.attr(this.virtualElement,this.startAnimationAttrs(a))):(this._firstAttrApplied=!0,M(this._attrsToApply,a),this.applyAttrs());return this.virtualElement};
c.prototype.startAnimationAttrs=function(a){return Pa({},a,this.animAttrs())};c.prototype.animAttrs=function(){return Et};c.prototype.groupAttrs=function(){return Vm};c.prototype.applyAttrs=function(){var a=this.attrsToApply(),b=Ib(a,Vm);M(this.virtualElement.data.vals,b);this.constructChildren(a,b);this.renderer.attr(this.virtualElement,Pa({},a,this.groupAttrs()))};c.prototype.attrsToApply=function(){return fe(this.virtualElement.data.vals,this._attrsToApply,{animation:void 0})};c.prototype.addElement=
function(a){var b="circle"===a.elType?this.renderer.circle(a).add(this.virtualElement):this.renderer.path(a).add(this.virtualElement);b.data.key=a.key;return b};c.prototype.removeElement=function(a){var b=this.virtualElement.el;b&&b.removeChild(a.el)};c.prototype.bindConfig=function(a){var b=this;Xb(a,b._childElements,function(a){return b.addElement(a)},function(b,a){return a.attr(b)},function(a){return b.removeElement(a)},function(b){return b.key},function(b){return b.data.key})};return c}(),WC=
X(Et,ja(["d"])),XC=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.animAttrs=function(){return WC};a.prototype.constructChildren=function(b,a){var c=[];if(b.d){var d=function(b){b.omit=["key","caps"];c.push(b)},g=function(b,a,c,e){b={key:b,d:a,stroke:z(c.stroke,"none"),fill:z(c.fill,e.stroke,"rgba(0,0,0,.5)"),opacity:z(c.opacity,c["stroke-opacity"],e.opacity,e["stroke-opacity"],1),zIndex:z(c["z-index"],e["z-index"]),display:z(c.display,e.display)};d(b)},
h=function(b,c,e){var f=Gy(c,e),h=f?Iy(e,f):{};c=X(a,{d:f?f.d:c,caps:void 0});c.key="l-"+b;d(c);h.start&&g("c-start-"+b,h.start,e.start,a);h.end&&g("c-end-"+b,h.end,e.end,a)},k=this._caps=Fy(b);b=this._originalPath=b.d&&b.d.isPath?b.d:Ca(b.d);if(k.eachShape){b=Ax(b);for(var l=0;l<b.length;l++)h(l,b[l],k)}else h(0,b,k);this.bindConfig(c)}};a.prototype.startAnimationAttrs=function(b){var a=Pa({},b,this.animAttrs());a.d&&(a.d=a.d&&a.d.isPath?a.d:Ca(a.d));this._skipCapsDuringAnimation=this._originalPath&&
this._originalPath.hasCurves&&!gr(this._caps)&&gr(b.caps);return a};a.prototype.attrsToApply=function(){this._attrsToApply.caps||(this._attrsToApply.caps={});var b=c.prototype.attrsToApply.call(this);this._skipCapsDuringAnimation&&this.virtualElement.isAnimating()&&(b.caps={});return b};return a}(Ft),hr=ja(["start","end"]);(function(c,a){(ij[c]=ij[c]||[]).push(a)})("path",function(c,a){if(!a||!a.caps)return!1;a=c.data.vals;c.renderer.reCreateElement(c,"g");c.morphType="lineShape";var b=new XC(c);
b.attr(a);c.attrApplier=b.attr.bind(b)});var Je;(function(c){c[c.x=0]="x";c[c.y=1]="y";c[c.xy=2]="xy"})(Je||(Je={}));var Gt;(function(c){c[c.Width=0]="Width";c[c.Height=1]="Height";c[c.Whitespace=2]="Whitespace";c[c.None=3]="None"})(Gt||(Gt={}));var $a=function(c){return c&&"*"===c.valueType},xc=function(c){return c&&!c.isMutable&&"px"===c.valueType},ib=function(c){return c&&"%"===c.valueType},Ke=function(c){return c&&"px"===c.valueType},Db=function(c){return c&&!c.isMutable},lc=function(c){return c?
c.px:0},YC=/[0123456789]+|.+/g,Ta=function(c,a){var b=typeof c;if("object"===b&&c.valueType)return M({},c);if(0===c&&!a)return nd();var d=0,e=0,f=-Infinity,g=!1,h=0,k=0,l=!0;a&&(f=z(a.minPx,-Infinity),g=z(a.stretch,!1),l=z(a.isMutable,!0));var m=g?"*":"px";if("number"===b)e=c||0,d=g?1:c;else if("string"===b&&c.length)switch(a&&(h=z(a.allSpace,0),k=z(a.freeSpace,0)),c=c.match(YC),d=parseFloat(c[0]),d=(a=Aa(d))||g?1:d,m=(a?c[0]:c[1])||m,k=g?e:k,m){case "*":e=(k||0)*(d||1);break;case "%":e=(h||0)*d/
100;break;case "px":e=d}e=ak(ra([e,f]),6);return{val:d,px:e,valueType:m,isMutable:l}},nd=function(){return{val:0,px:0,valueType:"px",isMutable:!0,minPx:0}},yf=function(c,a){var b,d;a=a||0;var e={val:0,px:0,valueType:"px"};if("number"===typeof c)a=b=d=e={val:c,px:c,valueType:"px"};else if(c.length){e="string"===typeof c?c.split(/ +/g):"object"===typeof c?c:[0];var f={allSpace:a};a=Ta(e[0],f);b=t(e[1])?Ta(e[1],f):a;d=t(e[2])?Ta(e[2],f):a;e=t(e[3])?Ta(e[3],f):b}else"object"===typeof c?(f={allSpace:a},
a=c.top?Ta(c.top,f):e,b=c.right?Ta(c.right,f):e,d=c.bottom?Ta(c.bottom,f):e,e=c.left?Ta(c.left,f):e):a=b=d=e;var g=0,h=0,k=0;f=0+((Ke(e)?e.val:0)+(Ke(b)?b.val:0));g+=(Ke(a)?a.val:0)+(Ke(d)?d.val:0);h+=(ib(e)?e.val:0)+(ib(b)?b.val:0);k+=(ib(a)?a.val:0)+(ib(d)?d.val:0);return{initial:c,top:a,right:b,bottom:d,left:e,horizontal:{absolute:f,relative:h,px:e.px+b.px},vertical:{absolute:g,relative:k,px:a.px+d.px}}},Ht=function(c,a,b){if(b){var d=b.padding,e=b.offset,f=d?d.horizontal.relative:0;d=d?d.horizontal.absolute:
0;e=e?Le(e.left)+Le(e.right):0;f/=100;f=1+f/(1-f);d=(Le(c)+d+e)*f;"px"===c.valueType?c=Ta(d):c.valueType?(c=M({},c),c.px=d):c=d}d=c;b&&0!==a.px&&(f=b.padding,e=b.offset,b=f?f.vertical.relative:0,f=f?f.vertical.absolute:0,e=e?Le(e.top)+Le(e.bottom):0,b=Le(a)+f+e+b/100*Le(d),"px"===a.valueType?a=Ta(b):a.valueType?(a=M({},a),a.px=b):a=b);return{width:c,height:a}},Le=function(c){return c.valueType?c.px:c},It=function(c,a,b,d,e){function f(b,a){if(ka(b)){var c=b[0];b=b[1]}else c=b.x,b=b.y;t(c)&&(a.x=c);
t(b)&&(a.y=b)}var g={x:0,y:0,width:0,height:0},h={x:0,y:0},k={x:0,y:0};e=e||[0,0];a.getBbox?(g=void 0!==a.toGlobal?a.getGlobalBbox():void 0!==c.toGlobal?c.toGlobal(a.getBbox()):a.getBbox(),O(b)&&(h=nj(b,g)),Gb(b)&&(a=b(g),f(a,g))):(f(a,g),O(b)&&(h=nj(b,a)));b=d||b;O(b)&&(k=nj(b,c.getBbox()));b=void 0!==c.toGlobal?c.globalX:0;d=void 0!==c.toGlobal?c.globalY:0;a=void 0!==c.toGlobal?c.offsetX:0;c=void 0!==c.toGlobal?c.offsetY:0;return{offsetX:t(h.x)?g.x-b+a+(h.x||0)-(k.x||0)+(e[0]||0):0+(e[0]||0),offsetY:t(h.y)?
g.y-d+c+(h.y||0)-(k.y||0)+(e[1]||0):0+(e[1]||0)}},Jt=function(c,a,b){var d=b?b.globalX:0;b=b?b.globalY:0;a="toLocal"===a?-1:1;return ka(c)?[c[0]+d*a,c[1]+b*a,c[2],c[3]]:{x:c.x+d*a,y:c.y+b*a,width:c.width,height:c.height}},nj=function(c,a){c=c.split("|");var b={left:0,center:.5,right:1},d={top:0,middle:.5,bottom:1},e=(H(a,"width")?a.width:a[2])||0,f=(H(a,"height")?a.height:a[3])||0,g={};x(c,function(a){t(b[a])&&(g.x=(g.x||0)+b[a]*e);t(d[a])&&(g.y=(g.y||0)+d[a]*f)});return g},Kf=function(c,a,b){void 0===
a&&(a=0);var d=ka(c);if(d){var e=F(c,4),f=e[0],g=e[1],h=e[2];e=e[3]}else f=c.x,g=c.y,h=c.width,e=c.height;var k=U(h)||U(e);if(U(f)||U(g))return c;c=a/2%1||1;a=b?b.globalX:0;b=b?b.globalY:0;k||(h=Jf(h+f,a,c)-Jf(f,a,c),e=Jf(e+g,b,c)-Jf(g,b,c));f=Jf(f,a,c);g=Jf(g,b,c);return d?k?[f,g]:[f,g,h,e]:k?{x:f,y:g}:{x:f,y:g,width:h,height:e}},Jf=function(c,a,b){a=b-(a+c)%1;.5<Math.abs(a)&&(a-=0<a?1:-1);return c+a},ZC=function(c){function a(e,f){for(var g=0,h=c[f].length;g<h;g++){var k=e.slice(0);k.push(c[f][g]);
f===d?b.push(k):a(k,f+1)}}var b=[],d=c.length-1;a([],0);return b},Me={left:0,top:0,center:.5,middle:.5,right:1,bottom:1},Py={x:"userX",y:"userY",width:"width",height:"height"},Kt="fontFamily fontStyle fontWeight fontSize whiteSpace strategy textOverflow".split(" "),wd={};x("variant visibility cellSpacing cellPadding pixelCorrection preserveStartSpaces title".split(" "),function(c){wd[c]=Ky});x(["margin","padding"],function(c){wd[c]=Qy});x("maxWidth maxHeight fitWidth fitHeight ignoreCategories orientation autoWrap suspend xContentAlignment yContentAlignment xAlignment yAlignment".split(" "),
function(c){wd[c]=ri});x(Kt,function(c){wd[c]=My});x(["width","height","x","y","strokeWidth"],function(c){wd[c]=Oy});x(["offsetX","offsetY"],function(c){wd[c]=Ly});x(["maxWidth","maxHeight","fitWidth","fitHeight"],function(c){wd[c]=Ny});var oj=function(){function c(a,b){this.widths=[];this.heights=[];this.lefts=[];this.rights=[];this.bottoms=[];this.tops=[];a=this.rectangles=a;this.scoreDirection=b;for(var c=0,e=this.rectangles.length;c<e;c++)b=a[c],this.lefts.push(b.x),this.tops.push(b.y),this.rights.push(b.x+
b.width),this.widths.push(b.width),this.heights.push(b.height),this.bottoms.push(b.y+b.height);this.minX=Math.min.apply(null,this.lefts);this.minY=Math.min.apply(null,this.tops);this.maxX=Math.max.apply(null,this.rights);this.maxY=Math.max.apply(null,this.bottoms);this.minWidth=Math.min.apply(null,this.widths);this.minHeight=Math.min.apply(null,this.heights);this.maxWidth=this.maxX-this.minX;this.maxHeight=this.maxY-this.minY}c.prototype.getScore=function(a,b){var c=0,e=[];if(a===Je.xy&&b){var f=
c=0;for(a=0;a<b[0];a++){for(var g=0,h=0;h<b[1];h++){var k=this.widths[a*b[1]+h],l=this.heights[a*b[1]+h];g+=k;e.push(k*l)}c=g>c?g:c}for(h=0;h<b[1];h++){for(a=g=0;a<b[0];a++)g+=this.heights[a*b[1]+h];f=g>f?g:f}c*=f}else for(b=(a=a===Je.y)?this.widths:this.heights,f=a?this.heights:this.widths,h=a?this.maxWidth:this.maxHeight,a=0,g=b.length;a<g;a++)e.push(b[a]*f[a]),c+=h*f[a];return{whitespace:1-Wa(e)/c,magnitude:c}};return c}(),$C=function(){function c(){}c.prototype.compareScores=function(a,b,c){a=
this.quantifyScore(a,c);b=this.quantifyScore(b,c);return a<b?-1:a>b?1:0};c.prototype.comparer=function(a){var b=this;return function(c,e){return b.compareScores(c,e,a)}};c.prototype.mergeScores=function(a){for(var b=0,c=0,e=0,f=0,g=a.length;f<g;f++){var h=a[f];h.magnitude&&(b+=h.whitespace*h.magnitude,c<h.magnitude&&(c=h.magnitude),e++)}return b?b/(e*c):0};c.prototype.quantifyScore=function(a,b){return a.whitespace.toFixed(6)};c.prototype.sort=function(a,b){a.sort(this.comparer(b))};return c}(),Lt=
/style\s*=\s*["']([^"]*)["']/,Mt=/([\S_]+)=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))*.)["']?/g,Nt=/['"]/g,aD=/[\u0590-\u05ff\u0600-\u06ff]/,bD=/[-_]([a-z])/g,cD=/(\d+px)* *([\w#]+)/,dD=/&nbsp;/gm,eD=/\s\w+(?=[\s|>])/g,Ot={disk:"\u25cf\u00a0",circle:"\u25cb\u00a0",square:"\u25a0\u00a0",none:""},fD=["antialias"],Wm=function(c){var a="";if(c){var b=c.length;if(O(c))a=c;else{if(1===b&&O(c[0].val))return c=c[0],c.type="text",c;if(b){a=[];for(var d=[],e=0;e<b;e++){var f=c[e];"visual"===f.kind||"panel"===f.type?
(d.length&&(a.push({type:"text",val:d.slice(0)}),d=[]),a.push(f)):d.push(f)}d.length&&a.push({type:"text",val:d.slice(0)});return 1===a.length?a[0]:{type:"stack",val:a}}}}return{type:"text",val:a}},gD=function(c){c=c.split(";");var a={};x(c,function(b){if(b){var c=b.split(":");2===c.length&&(b=Pt(c[0].trim()),c=c[1].trim(),a[b]=c)}});return a},hD={textStroke:function(c){c=F(c.match(cD)||[],3);return{stroke:c[2],strokeWidth:c[1]}},textStrokeWidth:function(c){return{strokeWidth:c}}},Zg=function(c,a){a=
a||{};a.val=c||"";return a},Wb=function(c,a,b){return c.substring(a,a+b.length).toLowerCase()===b},iD=function(c){var a,b,d=[],e=[],f=[],g=Zg(),h={},k=[],l=[],m=0,n=[],p=[],q=[],r=function(b){if(b){b=ka(b)?b:b.split(";");var a=[],c={};x(b,function(b){if(b){var d=b.split(":");1===d.length&&(d=b.split("="));if(2===d.length){b=d[0].trim();b=0===b.indexOf("data-")?b:Pt(b);d=d[1].trim();var e,f=hD[b];d=f?f(d):(e={},e[b]=d,e);M(h,d);M(c,d);a.push.apply(a,G(Object.keys(d)))}}});t(c.description)&&!t(c.tabindex)&&
(h.tabindex=100,c.tabindex=100,a.push("tabindex"));a.length&&(k.push(a),(b=l.length)?l.push(X(l[b-1],c)):l.push(c))}else k.push([]),l.push([])},u=function(){var b=k.pop();l.pop();b&&(x(b,function(b){delete h[b]}),(b=l.length)&&M(h,l[b-1]))},y=function(){g&&""!==g.val&&e.push(g);var b=n[n.length-1];if(n.length&&b>m){var a=d[d.length-1];a.margin||(a.margin=[0,0,0,0]);a.margin[2]=Math.floor(p[m]/2)}if(e.length){a=Wm(e);b=n.length?m>b?Math.floor(p[m-1]/2):0:0;var c=Wa(q)||0,f;if(a.margin){var k=f=a.margin;
pb(f)?k=[f,f,f,f]:O(f)&&(f=parseInt(f)||0,k=[f,f,f,f]);f=k}else f=[0,0,0,0];f[0]+=b;f[3]+=c;a.margin=f;n.push(m);d.push(a);e=[];g=Zg("",Ra(h))}},v=function(){if(g.val)if(g.width&&O(g.val)){var b={type:"panel",width:g.width};g.verticalAlign&&(b.verticalAlign=g.verticalAlign);g.align&&(b.xContentAlignment=g.align);g.type="text";b.val=[Ka(g,["width","align","verticalAlign"])];e.push(b)}else e.push(X(g,h));g=Zg("",Ra(h))};c=c.replace(dD,String.fromCharCode(160));var w=0,E=c.length;for(w=0;w<E;w++){var I=
c[w];if("<"===I){if(Wb(c,w+1,"br")){w+=Wb(c,w+3,"/")?4:3;g.val||e.length||e.push({val:" "});y();continue}if(Wb(c,w+1,"hr")){w+=Wb(c,w+3,"/")?4:3;y();d.push({type:"panel",width:"100%",yContentAlignment:"middle",val:[{type:"text",val:" "},{type:"panel",width:"100%",val:[{type:"icon",d:"M 0 0 L 10 0",width:"100%",height:"1px",stroke:"darkgray",fill:"none"}]}]});continue}for(var D=!1,R=0,z=Qt.length;R<z;R++){var V=Qt[R];if(Wb(c,w,V.start)){w+=V.start.length-1;v();M(h,V.attrs);D=!0;break}else{for(var aa=
0,N=V.stops.length;aa<N;aa++){var C=V.stops[aa];if(Wb(c,w,C)){w+=C.length-1;x(V.attrs,function(b,a){return delete h[a]});D=!0;break}}if(D)break}}if(D){v();continue}R=0;for(z=Rt.length;R<z;R++)if(V=Rt[R],Wb(c,w+1,V.start)){for(z=w+=V.start.length+1;">"!==c[w];)w++;"ul"===V.key&&(R=null,10<w-z&&(R=(z=c.substring(z,w).match(Lt))?z[1]:R),r(R),y(),m++,R=h.listPadding,R=t(R)?parseInt(R):10,p.push(R),q.push(R));"li"===V.key&&(V=Ot[h.listStyleType],e.unshift(A({type:"text",val:t(V)?V:Ot.disk},h)));D=!0;break}else{aa=
0;for(N=V.stops.length;aa<N;aa++)if(C=V.stops[aa],Wb(c,w+1,C)){for(w+=C.length+1;">"!==c[w];)w++;"li"===V.key&&y();"ul"===V.key&&(u(),m--,y(),q.pop());D=!0;break}if(D)break}if(D){v();continue}V=function(d,f){d=St[d];if(Wb(c,w+1,d.tag)){w+=d.tag.length;f="";for(var k=c[w],l={kind:"visual"};">"!==k&&w++<E;)k=c[w],f+=k;k=f.match(Mt);x(k,function(b){b=b.split("=");2===b.length&&(l[b[0]]=b[1].replace(Nt,""))});l.style&&(l=M(gD(l.style),l));"chart"===d.tag?((f=f.match(eD))&&B(f,function(b){b=b.trim();~fD.indexOf(b)?
l[b]=!0:l.type=b}),l.type=l.type||"chart",l.isNanoChart=!0):(l.type=d.val,l.fill=l.fill||"black");g.val&&e.push(Ra(g));g=Zg("",Ra(h));l=Va(l);"icon"===d.tag&&-1<(null===(a=l.fill)||void 0===a?void 0:a.indexOf(","))&&-1===(null===(b=l.fill)||void 0===b?void 0:b.toLowerCase().indexOf("rgb"))&&(d=l.fill.split(",").map(function(b){return b.trim()}),f=Q(d),k=fk(f),d[d.length-1]=k?parseFloat(f):f,k||d.push(90),l.fill=dc(d));g.width?e.push(X(g,{type:"panel",yAlignment:l.verticalAlign,val:[l]})):e.push(l);
D=!0}};R=0;for(z=St.length;R<z;R++)V(R,z);if(D){v();continue}if(Wb(c,w+1,"absolute")){w+=9;v();f=e.slice(0);e=[];continue}else if(Wb(c,w+1,"/absolute")){w+=10;v();e=f.concat({type:"panel",val:e});f=[];continue}if(Wb(c,w+1,"span")){w+=5;V="";for(R=c[w];">"!==R&&w++<E;)R=c[w],V+=R;(R=(z=V.match(Lt))?z[1]:null)||(V=V.match(Mt),R=B(V,function(b){return b.replace(Nt,"")}));r(R);D=!0}else Wb(c,w+1,"/span")&&(w+=6,v(),u(),D=!0);if(D){g.val&&e.push(Ra(g));g=Zg("",Ra(h));continue}}g.val+=I}g.val&&e.push(g);
d.length?(d.push(Wm(e)),f={type:"stack:y",val:d}):f=Wm(e);return{value:f,isRtl:!!c.match(aD)}},Qt=[{start:"<b>",stops:["</b>","<b/>"],attrs:{fontWeight:"bold"}},{start:"<strong>",stops:["</strong>","<strong/>"],attrs:{fontWeight:"bold"}},{start:"<i>",stops:["</i>","<i/>"],attrs:{fontStyle:"italic"}},{start:"<sup>",stops:["</sup>","<sup/>"],attrs:{fontSize:"0.7em",verticalAlign:"sup"}},{start:"<sub>",stops:["</sub>","<sub/>"],attrs:{fontSize:"0.7em",verticalAlign:"sub"}}],St=[{tag:"icon",val:"icon"},
{tag:"img",val:"image"},{tag:"chart",val:"nanoChart"}],Rt=[{start:"ul",stops:["/ul","ul/"],key:"ul"},{start:"li",stops:["/li","<li/"],key:"li"}],Pt=function(c){return 0<c.indexOf("-")?c.replace(bD,function(a){return a[1].toUpperCase()}):c},jD=function(c,a){function b(b){for(var a=0,f=0,g,h,k=0,l=[],m=0,n=0,p=e.length;n<p;n++){var q=e[n];if(h=q.length){h=d(q,0===n,p===h);g=h.width;for(h=h.height;g>b;){var r;a:{for(var u=r=q.length;2<u;u--){var v=q[u-1],w=q[u-2],y=q[u-3];if(2<r&&(y.isSpace?!v.isSpace:
w.isSpace)){r=2+r-u;break a}}r=0}if(!r)break;g=n;void 0===r&&(r=1);for(u=0;u<r;u++)v=e[g].pop(),e[g+1].unshift(v);g=d(q,0==n).width}l.push({x:0,y:m,width:g,height:h,info:{itemCount:q.length}});m+=h;f=f<g?g:f;a=a<g||!a?g:a;k++}}b=e;n=[];p=0;for(q=b.length;p<q;p++)n.push(Eg(b[p]));return{lines:n,linesUsed:k,width:f,height:m,maxLineWidth:a||g,score:(new oj(l)).getScore(Je.y),parts:c}}function d(b,a,c){void 0===c&&(c=!1);for(var d=0,e=0,f=0,g=b.length;f<g;f++){var h=b[f],k=h.width,l=h.height;e=e>l?e:
l;if(!h.isSpace||(f!=g-1||c)&&(0<f||a))d+=k}return{height:e,width:d}}var e=[],f=a.step;f=void 0===f?.1:f;var g=a.width;g=void 0===g?0:g;var h=a.height;h=void 0===h?0:h;a=a.wrapText;a=void 0===a?!0:a;for(var k=f,l,m=[],n=0,p=c.length;n<p;n++){for(var q=c[n],r=q.metrics,u=q.parts,y=[],v=0,w=u.length;v<w;v++){var t=u[v],x=t.width;t=-1<t.text.indexOf(q.delimiter.text);e.push([]);var D={width:x,isSpace:t};r&&r.height&&(D.height=r.height);y.push(D);t||l&&!(l>x)||(l=x);k+=x}e[0]=e[0].concat(y)}for(g&&(k=
g);k>=l+f;){g=b(k);if(g.maxLineWidth>k)break;(!h||g.height<=h)&&m.push(g);if(!a&&m.length)break;k=g.maxLineWidth-f}m.length||m.push(b(l));return m},Id={space:/(\s)/,variants:/&ore;|&ors;/g,startSpaces:/^ +/g,spaces:/ +/g,quotes:/'|"/g,fontSize:/^[\d\.]+(px|pt|em)?$/},lr={169:"copy",174:"reg",160:"nbsp",8482:"trade",34:"quot",38:"amp",60:"lt",62:"gt",176:"deg",8364:"euro",185:"sup1",178:"sup2",179:"sup3",188:"frac14",189:"frac12",190:"frac34",177:"plusmn",180:"acute",183:"middot"},jr={ore:"&ore;",
ors:"&ors;",orc:"&orc;",or:"&||;"},kD=ja("x y width height rotate opacity fill stroke offsetX offsetY text".split(" ")),Xm=ja(["animation","transition"]),lD={initialize:!1,reposition:!0,destroy:!0,animatable:kD},mD=function(){function c(a){this._li=a;this.scope=Fd()}c.prototype.attr=function(a){var b=this._li;if(O(a))return this._li.attr(a);b.updateAttrs(a,!0);b.root.refresh()};c.prototype.attrEnd=function(a){return this.attr(a)};c.prototype.normalize=function(a){return a};c.prototype.parse=function(a,
b){return b};return c}(),nD=function(){function c(a,b){this._visual=a;this._options={auto:!1,mode:"simple",behaviour:M({},lD)};this._renderer=a.renderer;var c=M({},this._renderer.defaultOptions().transition);this._attrTransition=new Dt(new mD(a),c);b&&this.options(b)}c.prototype.options=function(a){a&&(H(a,"auto")&&(this._options.auto=a.auto||!1),H(a,"mode")&&(this._options.mode=a.mode||"simple"),a.behaviour&&M(this._options.behaviour,a.behaviour),a.animation&&this._attrTransition.options({animation:a.animation}))};
c.prototype.applyAttrs=function(a,b){var c=this._visual,e=a.transition,f=!1;!1===e?(e={auto:!1},f=!0):"auto"===e&&(e={auto:!0},f=!0);e&&Cc(["auto","mode","behaviour"],e)&&(this.options(e),e=f?null:Ka(a.transition,["auto","mode","animation","behaviour"]),vb(e)&&(e=null,delete a.transition));if(this._renderer.disableAnimation||!a.animation&&!e&&!this._options.auto)c.updateAttrs(Ib(a,Xm),b);else if(!vb(a)){var g="simple"===this._options.mode;if(c.isPatched||g)if(f=this._options.behaviour.animatable,
g)t(a.animation)||e||!Zn(f,a)||(a.transition=null,a.animation=this._attrTransition.getAnimationOptions()),c.updateAttrs(a,b);else{if(!e){e=Pa({},a,f);g=Ib(a,f);if(vb(e)){c.updateAttrs(Ib(a,Xm),b);return}b=Pa({},c.attrs,f);a.animation&&(e.animation=a.animation);e={start:g,middle:{from:b,to:e}}}this._attrTransition.options(e)}else c.updateAttrs(a,b)}};c.prototype.applyPatch=function(a){var b=this._visual,c=this._options;this._renderer.disableAnimation||!c.auto||!c.behaviour.initialize||b.isPatched?
b.applyPatch(a):"layout"===c.mode?(b.applyPatch(a),this.layoutInitializeTransition()):(a.transition=this.getSimpleInitializeTransition(),b.applyPatch(a))};c.prototype.applyDestroy=function(){var a=this._visual,b=this._options;!this._renderer.disableAnimation&&b.auto&&b.behaviour.destroy?"simple"===b.mode?a.updateAttrs({transition:this.getSimpleDestroyTransition()},!0):this.layoutDestroy():a.applyDestroy()};c.prototype.applyAdd=function(a,b){var c=this._visual,e=this._options;!this._renderer.disableAnimation&&
e.auto&&c.isPatched&&e.behaviour.reposition?"simple"===e.mode?this.simpleAdd(a):this.layoutAdd(a):c.applyAdd(a,b)};c.prototype.getSimpleInitializeTransition=function(){var a=this._visual.getBbox(),b=0===a.x&&0===a.y?null:{translate:[a.x,a.y],scale:[1],val:"translate("+a.x+", "+a.y+")"};return{start:{transform:{translate:[a.x+a.width/2,a.y+a.height/2],scale:[0],val:"translate("+(a.x+a.width/2)+", "+(a.y+a.height/2)+") scale(0)"}},middle:{to:{transform:b}},end:{transform:b}}};c.prototype.getSimpleDestroyTransition=
function(){var a=this._visual,b=a.getBbox();return{middle:{from:{transform:a.el.data.transform},to:{animation:{final:function(){var b=a.root;a.applyDestroy();b.refresh()}},transform:{translate:[b.x+b.width/2,b.y+b.height/2],scale:[0],val:"translate("+(b.x+b.width/2)+", "+(b.y+b.height/2)+") scale(0)"}}}}};c.prototype.layoutInitializeTransition=function(){this._attrTransition.finishAnimation();var a=this._visual,b=a.root,c=a.getBbox(),e=a.getGlobalBbox(),f=e.width,g=a.layout.panel({width:0,height:0,
x:c.x,y:c.y}).applyAdd(a.parent),h=a.layout.panel().add();a.updateAttrs({scale:0},!0).applyAdd(h);b.refresh();h.refresh();this._attrTransition.options({middle:{from:{width:0,height:0},to:{animation:{final:function(){a.updateAttrs({scale:1},!0).applyAdd(g.parent);g.applyDestroy();h.applyDestroy();a.refresh()},onFrame:function(c,d){g.updateAttrs(d);b.refresh();c=g.getGlobalBbox();a.applyPatch({translate:[c.x,c.y],scale:[c.width/f]})}},width:e.width,height:e.height}}})};c.prototype.layoutDestroy=function(){this._attrTransition.finishAnimation();
var a=this._visual,b=a.getBbox(),c=a.getGlobalBbox(),e=c.width,f=a.root,g=a.layout.panel({width:b.width,height:b.height,x:b.x,y:b.y}).applyAdd(a.parent),h=a.layout.panel().add();a.updateAttrs(c,!0).applyAdd(h);f.refresh();h.refresh();this._attrTransition.options({middle:{from:{width:b.width,height:b.height},to:{animation:{final:function(){g.applyDestroy();a.applyDestroy();h.applyDestroy();f.refresh()},onFrame:function(b,c){g.updateAttrs(c);f.refresh();b=g.getGlobalBbox();a.applyPatch({translate:[b.x,
b.y],scale:[b.width/e]})}},width:0,height:0}}})};c.prototype.simpleAdd=function(a){this._attrTransition.finishAnimation();this._visual.el.finishAnimation();var b=this._visual,c=b.getBbox(),e=b.getGlobalBbox(),f=b.layout.panel().add(),g=b.layout.panel({width:c.width,height:c.height}).add(a);b.updateAttrs(e,!0).applyAdd(f);g.refresh();f.refresh();var h=g.getGlobalBbox();this._attrTransition.options({middle:{to:{animation:{final:function(){var c=g.getBbox();g.applyDestroy();b.applyAdd(a);b.updateAttrs(c,
!0);f.applyDestroy();g.refresh();b.refresh()},onFrame:function(a,c,d){b.applyPatch({translate:[d(e.x,h.x,a),d(e.y,h.y,a)]})}}}}})};c.prototype.layoutAdd=function(a){this._attrTransition.finishAnimation();var b=this._visual,c=b.getGlobalBbox(),e=b.getBbox(),f=b.layout.panel({width:0,height:0,x:e.x,y:e.y}).applyAdd(a),g=b.layout.panel(b.getBbox()).applyAdd(b.parent),h=a.root,k=g.root,l=b.layout.panel().add();b.updateAttrs(c,!0).applyAdd(l);h.refresh();h!==k&&k.refresh();l.refresh();var m=e.width,n=
e.height,p=c.x,q=c.y;this._attrTransition.options({middle:{to:{animation:{final:function(){b.updateAttrs(e,!0).applyAdd(a);f.applyDestroy();g.applyDestroy();h.refresh();h!==k&&k.refresh();l.applyDestroy();b.refresh()},onFrame:function(a,c,d){f.updateAttrs({width:d(0,m,a),height:d(0,n,a)});g.updateAttrs({width:d(m,0,a),height:d(n,0,a)});h.refresh();h!==k&&k.refresh();c=f.getGlobalBbox();b.applyPatch({translate:[d(p,c.x,a),d(q,c.y,a)]})}}}}})};return c}(),oD=ja(["setSize","finalSize","renderSize","pixelCorrection"]),
pD=function(c){return c.px},Ym={},qD=ja(["translate","rotate"]);x(["width","height","x","y"],function(c){return Ym[c]=pD});var Pc;(function(c){c[c.WriteIfChanged=0]="WriteIfChanged";c[c.ReadOnly=1]="ReadOnly";c[c.WriteOnly=2]="WriteOnly"})(Pc||(Pc={}));var Lf=function(){function c(a,b){this.layout=a;this.forcePixelCorrection=!1;this.init();this.applyConfig(b)}c.prototype.init=function(){this.combinations=[];this.events={};this.subscriptions=[];this.attrs={};this._awaitHandlers=[];this.autoWrap="auto";
this.renderer=this.layout.renderer;this.root=this;this.margin=yf(0);this.isPatched=!1;this.offsetY=this.offsetX=this.globalY=this.globalX=0;this.wasAdded=!1;this.pixelCorrection=this.layout.pixelCorrection;this.state={needPatching:!0,needRecalculation:!0,needAttachPatching:!0,needDestroy:!1,destroyed:!1};this._availableAttrs=this.availableAttributes()};c.prototype.updateSize=function(a,b){};c.prototype.val=function(a){return this};c.prototype.calculateMargin=function(){return this.margin};c.prototype.arrToBox=
function(a){return{x:a[0],y:a[1],width:a[2],height:a[3]}};c.prototype.getAnimation=function(){return this._animation||this.attrs.animation};c.prototype.getBbox=function(a){return this.arrToBox(this.getBboxArray(a))};c.prototype.getGlobalBbox=function(){return this.arrToBox(this.getGlobalBboxArray())};c.prototype.getBboxArray=function(a,b){return this.bboxArrayBased(lc(this.x),lc(this.y),a,b)};c.prototype.getGlobalBboxArray=function(a){return this.bboxArrayBased(this.globalX,this.globalY,!1,a)};c.prototype.bboxArrayBased=
function(a,b,c,e){return[a+(c?this.offsetX:0)-(e?lc(this.margin.left):0),b+(c?this.offsetY:0)-(e?lc(this.margin.top):0),lc(this.width)+(e?lc(this.margin.horizontal):0),lc(this.height)+(e?lc(this.margin.vertical):0)]};c.prototype.setSize=function(a){this.suspend||(this.setSizeValue("width",a.width,this.maxWidth),this.setSizeValue("height",a.height,this.maxHeight),this.setSizeValue("x",a.x),this.setSizeValue("y",a.y),this.needPatch(!0),this.finalSizeCalled(),this.triggerEvent("setSize"))};c.prototype.getTypeEvents=
function(){return oD};c.prototype.setSizeValue=function(a,b,c){var d=this[a],f=!d||d.isMutable;pb(b)&&d&&!Ke(d)?this[a].px=t(c)&&b>c?c:b:t(b)&&f&&(this[a]=Ta(b))};c.prototype.handleEvent=function(a,b,c,e){if(t(b)&&(b=this.getEventByName(b,"un"!==a)))return b[a](b instanceof Km?this.wrapEventCallback(c):c,e)};c.prototype.getEventByName=function(a,b){!this.events[a]&&b&&(H(this.getTypeEvents(),a)?this.events[a]=new ud:this.subscribeDomEvents(a));return this.events[a]};c.prototype.subscribeDomEvents=
function(a){throw Error("Methods doesn't implemented");};c.prototype.triggerEvent=function(a){(a=this.events[a])&&a.trigger(this.getBbox())};c.prototype.on=function(a,b,c){(a=this.handleEvent(c?"onDefer":"on",a,b,c))&&this.subscriptions.push(a);return this};c.prototype.un=function(a,b){this.handleEvent("un",a,b);return this};c.prototype.isRelative=function(){return this.width&&"px"!==this.width.valueType||this.height&&"px"!==this.height.valueType};c.prototype.add=function(a,b){return!this.wasAdded||
a&&a!==this.parent?this.transitionAnimator?(this.transitionAnimator.applyAdd(a,b),this):this.applyAdd(a,b):this};c.prototype.await=function(a){this.root._awaitHandlers.push(a);return this};c.prototype.applyAdd=function(a,b){return this.insert({parent:a,position:b})};c.prototype.alignTo=function(a,b,c,e){return this.attr(It(this,a,b,c,e))};c.prototype.alignIn=function(a,b,c){this.insert({parent:a});a={};var d=this.getBbox();if(O(b)){var f=Xy(b);f.x&&(a.xAlignment=f.x);f.y&&(a.yAlignment=f.y);this.attr(a)}b=
c||b;O(b)&&(b=nj(b,d),a.offsetX=0-b.x,a.offsetY=0-b.y);return this.attr(a)};c.prototype.insertFirst=function(a){return this.insert({parent:a,position:0})};c.prototype.insert=function(a){var b=a.parent;a=a.position;U(b)&&(b=this.parent);b&&b!==this.parent&&(this.parent&&(this.forcePixelCorrection=!0,this.parent.removeChild(this),this.updateAttrs({offsetX:0,offsetY:0})),b===this.layout?(this.parent=b=null,this.notifyParentChanged()):(0===a?b.prependChild:b.appendChild).call(b,this,a)&&(this.parent=
b,this.notifyParentChanged()));this.parent||this.layout.addChild(this);this.wasAdded=!0;this.setRenewComplete(!b||this.parent.wasAdded);return this};c.prototype.refresh=function(a){if(this.parent)return this.root.refresh(a),this;this.wasAdded||this.add();this.setRenewComplete(!0);this.applyRefresh(a);!a&&this.endRefresh();return this};c.prototype.applyRefresh=function(a){this.parent||(this.update(),a||this.layout.destroyChildren());a||this.patch()};c.prototype.endRefresh=function(){this._awaitHandlers.length&&
(x(this._awaitHandlers,function(a){return a()}),this._awaitHandlers=[]);this.triggerEvent("renderSize")};c.prototype.updateGlobalCoordinates=function(){this.setGlobalCoordinates()};c.prototype.needPatch=function(a){this.state.needPatching=!0};c.prototype.setGlobalCoordinates=function(a){var b=this.parent,c=this.x.px+(b?b.globalX:0)+(this.offsetX||0);b=this.y.px+(b?b.globalY:0)+(this.offsetY||0);if(this.globalX!==c||this.globalY!==b||a)this.globalX=c,this.globalY=b,this.triggerEvent("pixelCorrection")};
c.prototype.collectAttrs=function(a){return this.attrs};c.prototype.correctPixelValues=function(a,b){a.rotate&&1===Math.abs(a.rotate[0])/90%2&&(a.rotate[0]+=.1)};c.prototype.patch=function(){var a=this.state,b=this.collectAttrs();if(!a.destroyed&&a.needPatching&&this.isComplete())if(a.needDestroy)this.patchDestroy();else{this.pixelCorrection&&this.correctPixelValues(b,this.parent);a=this.parentChanged;var c=this.cached(b,Pc.ReadOnly),e=vb(c);this._transition&&(e&&(c={},e=!1),c.transition=this._transition,
this._transition=null);e&&!a?this.emptyPatch():(t(this._animation)&&!e&&(c.animation=this._animation,Pa(c,b,hc),this._animation=void 0),this.transitionAnimator?this.transitionAnimator.applyPatch(c):this.applyPatch(c))}};c.prototype.emptyPatch=function(){this.state.needPatching=!1;this.isPatched=!0};c.prototype.applyPatch=function(a){this.applyPatchState(a)};c.prototype.applyPatchState=function(a){this.cached(a,Pc.WriteOnly);this.state.needPatching=!1;this.isPatched=!0};c.prototype.parentAttrsChanged=
function(a){};c.prototype.sharedAttrsUpdated=function(a){};c.prototype.fillProperties=function(a){var b=this,c={},e;Fa(a,function(d){var f=a[d];if(H(wd,d)&&t(f)){var h=wd[d](b,d,f);h&&(M(c,h),e=e||{},e[d]=f)}});c.updateSharedAttrs&&this.sharedAttrsUpdated(e);c.needRecalc&&this.setRenewComplete();c.updateGlobalCoordinates&&this.updateGlobalCoordinates();t(a.animation)&&(this._animation=a.animation);a.transition&&(this._transition=a.transition)};c.prototype.addEvent=function(a){this.events[a]=new ud};
c.prototype.cached=function(a,b,c,e,f){void 0===b&&(b=Pc.WriteIfChanged);void 0===c&&(c="_cache_");void 0===e&&(e=this);var d=H(e,c);a=Wc({},a,Xm);var h=d?e[c]:a;return d?b===Pc.WriteOnly?(M(h,a),{}):(b=Wj(h,a,qD,b===Pc.ReadOnly,f))?b:null:(e[c]=h,M({},h))};c.prototype.notifyParentChanged=function(){this.updateRoot()};c.prototype.updateRoot=function(){var a=this.parent?this.parent.root:this,b=this.root;a!==b&&(0<b._awaitHandlers.length&&(a._awaitHandlers=a._awaitHandlers.concat(b._awaitHandlers),
b.parent&&(b._awaitHandlers=[])),this.root=a)};c.prototype.availableAttributes=function(){return null};c.prototype.defaultConfig=function(){return null};c.prototype.applyConfig=function(a){var b=!a,c=this.defaultConfig();b&&null===c?this.config={}:(b&&(a={}),this.config=this.extendDefault(c||{},a),this.checkForAttrAnimation(ir(this.config)))};c.prototype.extendDefault=function(a,b){return M(a,b)};c.prototype.checkForAttrAnimation=function(a,b){if(this.transitionAnimator||H(a,"animation")||H(a,"transition"))return this.transitionAnimator||
(this.transitionAnimator=new nD(this)),this.transitionAnimator.applyAttrs(a,b),this;this.updateAttrs(a,b)};c.prototype.updateAttrs=function(a,b){this.applyAttrs(a);b&&this.isPatched&&this.needPatch();return this};c.prototype.applyAttrs=function(a){this.fillProperties(a);var b=this.attrs,c=this._availableAttrs;if(c){for(var e in a)if(Object.hasOwnProperty.call(c,e)||0===e.indexOf("data-"))b[e]=a[e];a=b}else a=M(b,a);this.attrs=a};c.prototype.setRenewComplete=function(a){var b=this.state,c=b.needRecalculation;
if(a||!c)!this.parent||!a&&c?b.needRecalculation=!0:(b.needRecalculation=!0,this.parent.setRenewComplete(a))};c.prototype.updateCombinations=function(){this.state.needRecalculation&&this.isComplete()&&(this.combinations=this.composeCombinations(),this.state.needRecalculation=!1,this.variant=null)};c.prototype.attr=function(a,b){if(O(a)){if(U(b))return H(this,a)?(b=this[a],H(Ym,a)?Ym[a](b):b):this.attrs[a];var c=a;a={};a[c]=b}a=ir(a);this.checkForAttrAnimation(a,this.isPatched);return this};c.prototype.update=
function(){this.updateCombinations();this.updateSize(this.wasAdded&&!this.parent?this.layout.getRootBox():void 0);this.triggerEvent("finalSize");return this};c.prototype.isComplete=function(){return!0};c.prototype.composeCombinations=function(){return[]};c.prototype.finalSizeCalled=function(){};c.prototype.getContentSize=function(){return this.getBbox()};c.prototype.visible=function(a,b){var c="none"!==this.attr("display");t(a)||(a=!c);if(a===c)return this;this.attr({display:a?null:"none"});!0!==
b&&(this.suspend=!a);this.setRenewComplete(!0);return this};c.prototype.destroy=function(){if(this.transitionAnimator)return this.transitionAnimator.applyDestroy(),this;this.applyDestroy();return this};c.prototype.applyDestroy=function(){x(this.subscriptions,function(a){return a.un()});this.subscriptions=[];this.isPatched=!1;this.parent?(this.parent.removeChild(this),this.layout.needToDestroy(this)):this.layout.removeChild(this);this.state.needDestroy=!0;this.state.needPatching=!0};c.prototype.patchDestroy=
function(){this.state.destroyed=!0};c.prototype.setDomEventsElement=function(a){for(var b in this.events)this.events[b]instanceof Km&&this.events[b].setElement(a)};c.prototype.toLocal=function(a){return Jt(a,"toLocal",this.parent)};c.prototype.toGlobal=function(a){return Jt(a,"toGlobal",this.parent)};c.prototype.setPreliminarySize=function(a){var b=this.variant?this.variant.index:0;this.combinations.length&&!a||this.updateCombinations();b>=this.combinations.length&&(b=0);this.combinations.length&&
this.setSize(this.combinations[b].minSize);this.parent&&this.updateGlobalCoordinates();return this};c.prototype.externalOn=function(a,b,c){if(a){var d=this.wrapEventCallback(c),f=function(c){c=qq(c,a,b);d(c)};a.on(b,f);return{un:function(){a.un(b,f)}}}};c.prototype.wrapEventCallback=function(a){var b=this;return t(a)?function(c){c.bbox=b.getBbox();var d=c.pointers=c.pointers?B(c.pointers,function(a){return b.toRelativeXY(a)}):[b.toRelativeXY(c.eventArgs)];c.x=d[0][0];c.y=d[0][1];a&&a(c)}:void 0};
c.prototype.toRelativeXY=function(a){if(!a)return[0,0];var b=t(a.clientX)?this.renderer.relativeToRoot(a.clientX-this.globalX,a.clientY-this.globalY):{x:0,y:0};return[b.x,b.y,a.id]};return c}(),Mf=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.init=function(){c.prototype.init.call(this);this.width=this.width||nd();this.height=this.height||nd();this.x=this.x||nd();this.y=this.y||nd()};a.prototype.availableAttributes=function(){return gt};a.prototype.updateSize=
function(b,a){a&&(this.variant=a);b&&this.setSize(b);this.setGlobalCoordinates();this.updateVisual();return this};a.prototype.updateVisual=function(){this.setPosition(this.x,this.y)};a.prototype.setPosition=function(b,a){var c=!this.x||this.x.isMutable,d=!this.y||this.y.isMutable;this.x=b&&c?b:this.x;this.y=a&&d?a:this.y};a.prototype.getZeroSize=function(b){var a=nd();$a(b)&&(a.valueType="*");return a};a.prototype.composeCombinations=function(){var b=this,a=function(a){return xc(a)?a:b.getZeroSize(a)},
c=a(this.width);a=a(this.height);return[{score:{whitespace:0,magnitude:c.px*a.px},minSize:{width:c,height:a},index:0}]};a.prototype.patchDestroy=function(){c.prototype.patchDestroy.call(this);this.el&&(this.el.destroy(),delete this.el)};a.prototype.below=function(b){this.belowItem=b;return this.add()};a.prototype.useMainElementForEvents=function(b){this._useMainElementForEvents=b};a.prototype.subscribeDomEvents=function(b){var a=new Km(b),c=this.getLowermostElement();this._useMainElementForEvents&&
(c=this.el);a.setElement(c);this.events[b]=a};a.prototype.getLowermostElement=function(){return this.el};a.prototype.collectAttrs=function(b){void 0===b&&(b=!1);return b?M(M({},this.attrs),this.getBbox(!0)):this.attrs||{}};a.prototype.getParentGroup=function(){return this.parent?this.parent.getElement():null};a.prototype.notifyParentChanged=function(){c.prototype.notifyParentChanged.call(this);this.parentChanged=!0};a.prototype.applyPatch=function(b){if(!this.el||this.parentChanged){var a=null!=this.el,
e=this.getParentGroup();this.el=a?this.el.attr(b):this.createElement(b);this.belowItem?(a=this.belowItem.getLowermostElement()||this.belowItem.el)?this.el.addBefore(a):this.el.add(e):this.el.add(e);this.setDomEventsElement(this.el)}else this.el.attr(b);this.parentChanged=!1;c.prototype.applyPatch.call(this,b)};a.prototype.transition=function(b){this.el&&this.el.transition(b)};return a}(Lf),Tt=nd(),rD=[{score:{whitespace:0,magnitude:0},minSize:{width:Tt,height:Tt},maxlineWidth:0,lineUsed:1,lines:[[{width:0,
height:0,isSpace:!1}]],parts:[{text:"",width:0,parts:[{text:"",width:0}]}],index:0}],sD=ja(["width","height","x","y"]),Ut=["val","textVariants","verticalAlign"],Vt=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.preserveStartSpaces=!0;b._cachedCombinations={};b.textElements=[];b._maxDescent=0;return b}L(a,c);a.prototype.val=function(b){if(t(b)){var a=Sa(b),c=a?b.val||"":b;this.text!==c&&this.attr(a?b:{val:c});return this}return this.text};a.prototype.createElement=function(b){return this.renderer.element("text",
b)};a.prototype.getMaxDescent=function(){return this._maxDescent};a.prototype.updateVisual=function(){var b=this,a=this._parentAttributes&&this._parentAttributes.textOverflow;a="ellipsis"===(this._textOverflow||a);var c=this.variant,f=this.width?this.width.px:void 0,g=this.height?this.height.px:void 0,h=this.maxWidth||f,k=this.xAlignment||this.xContentAlignment||"left";if(!c){for(var l=this.combinations,m=l.length,n=0;n<m;n++){var p=l[n];if(p&&(!f||p.minSize.width.px<f)&&(!g||p.minSize.height.px<
g)){c=p;break}}c||(c=l[m-1])}x(c.parts,function(a){return a.metrics&&(b._maxDescent=Math.max(a.metrics.descent,b._maxDescent))});this.wrappedLayout=function(b,a,c){for(var d=b.lines,e=b.parts,f=b.maxLineWidth,g=[],k=0,l=0,m=0,n=e[m],p=n.parts,q=0,r=d.length;q<r;q++){var u=d[q],t=u.length,x={text:"",x:0,y:0,styles:{}},z=0,A=[],C=0,G=0,B=0,J=0;if(t){for(var H=0;H<=t;H++){var Da=h-z;if(!p[k]||H===t){var F=n.metrics||{height:0,descent:0},L=F.height,K=F.descent;F=F.leading-F.fontSize;var O=L-K;x.text&&
(x.styles=n.style||{},A.push(M({},x)),C=C<L?L:C,G=G<O?O:G,B=B<K?K:B,J=J<F?F:J);if(H<t){for(;n&&!(k<n.parts.length);)k-=n.parts.length,n=e[++m];p=n.parts;x={text:"",x:z,y:0,styles:{}}}}if(L=u[H]){F=L.width;L=!L.isSpace;if(0!==H||L||0===q){K=H!==t-1;O=u.length===p.length;if(L||K||O)z+=F;K=p[k].text;if(a){Da=K.substring(0,Math.round(K.length*(Da&&F?Da/F:0)-1)-Math.ceil(n.ellipsis.width/(F/K.length)));F=L&&H===t-2;var P=(O=H===t-1)?!1:!u[H+1].isSpace;F=b.width>(h||0)&&(!F&&!O||P)?n.ellipsis.width:0;h&&
.01<z-h+F&&(L||H<t-1)&&(K=Da+n.ellipsis.text,k+=t-H-1,H=t-1)}x.text+=K}k++}}u=0;for(t=A.length;u<t;u++)x=A[u],H=x.styles&&x.styles.verticalAlign,Da=n.metrics.fontSize/2,x.y=l+("sup"===H?J+Da:"sub"===H?G+Da-B:G),x.x+=Me[c]*(f-z),g.push(x);l+=C}}return{parts:g,score:b.score}}(c,a,k)};a.prototype.composeCombinations=function(){if(!this.text)return rD;var b=Ka(this._ownAttributes,["x","y"]),a=X(this.layout.svgStyles,this._parentAttributes),c=X(a,b),f=c.whiteSpace||"normal",g=this.preserveStartSpaces,
h="pre"!==f&&"nowrap"!==f&&"auto"===this.autoWrap,k=(!this.width||"*"!==this.width.valueType&&this.width.isMutable)&&c.strategy?c.strategy:"none",l=this.ignoreCategories,m=c.fontFamily,n=c.fontStyle,p=c.fontWeight,q=c.fontSize;if(this._cachedCombinations.filter){var r=this._cachedCombinations,u=r.filter;if(u.whiteSpace===f&&u.text===this.text&&u.strategy===k&&u.fontFamily===m&&u.fontStyle===n&&u.fontWeight===p&&u.fontSize===q)return r.result}this._cachedCombinations.filter={whiteSpace:f,text:this.text,
strategy:k,fontFamily:m,fontStyle:n,fontWeight:p,fontSize:q};b={own:c,personal:b,parent:a};h={ignoreCategories:l,preserveSpaces:"pre"===f||"pre-wrap"===f,preserveStartSpaces:g,wrapText:h,wrappingStrategy:k,width:xc(this.width)?this.width.px:0,height:xc(this.height)?this.height.px:0,maxWidth:this.maxWidth,maxHeight:this.maxHeight};k=Ry(this.text,b,this.layout.svgStyles,h);f=h.width;g=h.height;h={wrapText:h.wrapText,strategy:h.wrappingStrategy,width:f,height:g,maxWidth:h.maxWidth,maxHeight:h.maxHeight};
l=[[]];b=0;for(a=k.length;b<a;b++)if(c=k[b],m=c.length){m=[];n=0;for(p=c.length;n<p;n++){q=kr(l);r=0;for(u=l.length;r<u;r++)q[r].push(c[n]);m=m.concat(q)}l=m}else for(n=0,p=l.length;n<p;n++)l[n].push(void 0==m?c:c[0]);k=l;l=[];b=0;for(a=k.length;b<a;b++){m=jD(k[b],h);if(h){var y=void 0;c=void 0;n=m.length;p=h.wrapText;q=h.strategy;r=h.maxWidth;u=h.maxHeight;var v="none"===q,w=[],E=0;if(n){for(var x=0;x<n;x++){var D=m[x],R=D.score;y=y&&y!==D.linesUsed;var z=(!t(r)||D.width<r)&&(!t(u)||D.height<u);
p&&z&&(v||!c||y||D[q]<c[q]||R.whitespace<c.score.whitespace)&&(E+=v&&E||y?1:0,c=w[E]=D);y=D.linesUsed}w.length||w.push(m[p?n-1:0])}c=w}else c=m;l=l.concat(c)}h=l;k=0;for(l=h.length;k<l;k++)b=h[k],a=g,b&&(b.minSize={width:Ta(f||b.width),height:Ta(a||b.height)},delete b.width,delete b.height),h[k].index=k;return this._cachedCombinations.result=h};a.prototype.fillProperties=function(b){b&&(t(b.val)&&(this.text!==b.val&&this.setRenewComplete(),this.text=b.val),t(b.stroke)&&(this._strokeAttrs=Pa({},b,
Xg)),t(b.textOverflow)&&(this._textOverflow=b.textOverflow),c.prototype.fillProperties.call(this,b))};a.prototype.getLowermostElement=function(){return this.textElements[0]};a.prototype.patchDestroy=function(){var b=this.textElements;if(b){for(var a=0,e=b.length;a<e;a++)b[a]&&b[a].destroy();this.textElements=[]}c.prototype.patchDestroy.call(this)};a.prototype.availableAttributes=function(){return TB};a.prototype.collectAttrs=function(){var b=c.prototype.collectAttrs.call(this,!0);b.translate={x:b.x,
y:b.y};return Wc({},b,sD)};a.prototype.applyPatch=function(b){var a=this.wrappedLayout||{},c=this.textElements,f=a.parts,g=f?f.length:1,h=c.length,k=this.getParentGroup(),l=(this.el||k?b:X(this.layout.svgStyles,b))||{},m=!!this.el,n=this.getAnimation();m||(this.el=this.createElement(l).add(k));for(k=0;k<g;k++){var p=f?f[k]:a,q={text:p.text,x:p.x||0,y:p.y||0};q=X(q,p.styles);this.preserveStartSpaces&&(q.style="white-space: pre");q.x=0===q.x?"0px":q.x;if(k<h)p=c[k],q=Ka(q,Ut),(q=this.cached(q,Pc.WriteIfChanged,
"_cache_",p,!0))&&p.attr(Si(Si({},q),{animation:n}));else{q=fe(Ka(p,["styles"]),q,ja(Ut));p=this.renderer.element("tspan");this.cached(q,Pc.WriteOnly,"_cache_",p);if(!p)return this;p.prev=q;c.push(p);p.add(this.el);n?(p.attr(X(q,{text:""})),p.attr({text:q.text,animation:n})):p.attr(q)}}a=function(b){var a=c.pop();n?a.attr({text:"",animation:X(n,{onFinish:function(){return a.destroy()}})}):a.destroy()};for(k=h-1;k>=g;k--)a();m&&this.el.attr(l);this._strokeAttrs&&this.el.attr({strokeAttrs:this._strokeAttrs});
this.applyPatchState(b)};a.prototype.sharedAttrsUpdated=function(b){this._ownAttributes=this._ownAttributes||{};M(this._ownAttributes,b);this.setRenewComplete()};a.prototype.parentAttrsChanged=function(b){var a=this;a._parentAttributes||(a._parentAttributes={});M(a._parentAttributes,b);var c=!1;Fa(b,function(d){a[d]!==b[d]&&(c=!0)});c&&a.setRenewComplete()};return a}(Mf),tD=function(c){function a(b,a){return(c.call(this,b,a)||this).updateSize()}L(a,c);a.prototype.availableAttributes=function(){return RB};
a.prototype.createElement=function(b){var a=this.renderer.image(b);b.width^b.height&&~Am.indexOf("Safari")&&(a.el.onload=function(){var c=a.el.getBBox();!b.width&&a.el.setAttribute("width",c.width);!b.height&&a.el.setAttribute("height",c.height)});return a};a.prototype.collectAttrs=function(){var b=c.prototype.collectAttrs.call(this,!0);return X(b,{src:this.src})};a.prototype.fillProperties=function(b){b&&(this.src=t(b.src)?b.src:this.src||"",c.prototype.fillProperties.call(this,b))};return a}(Mf),
uD=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.availableAttributes=function(){return ht};a.prototype.collectAttrs=function(){var b=c.prototype.collectAttrs.call(this,!0),a={rx:this.rx,ry:this.ry},e=parseInt(b["stroke-width"])||0;e&&(a.x=b.x+e/2,a.y=b.y+e/2,a.width=b.width-e,a.height=b.height-e);return X(b,a)};a.prototype.fillProperties=function(b){if(b){var a=t(b.radius)?b.radius:b.cornerRadius;this.rx=t(b.rx)?b.rx:t(a)?a:this.rx||0;this.ry=t(b.ry)?b.ry:
t(a)?a:this.ry||0;H(b,"stroke-width")&&(this.strokeWidth=parseInt(b["stroke-width"])||0);c.prototype.fillProperties.call(this,b)}};a.prototype.createElement=function(b){return this.renderer.rect(b)};a.prototype.correctPixelValues=function(b,a){c.prototype.correctPixelValues.call(this,b,a);a=Kf(b,this.strokeWidth,a);M(b,a)};return a}(Mf),Wt=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.availableAttributes=function(){return QB};a.prototype.collectAttrs=function(){var b=
Ka(c.prototype.collectAttrs.call(this,!0),["cx","cy","r"]);M(b,this.getShapeBox());return b};a.prototype.getShapeBox=function(b){b=b||this.getBbox(!0);return{x:this.relativeSize?t(this.cx)?this.cx-this.r:null:b.x,y:this.relativeSize?t(this.cy)?this.cy-this.r:null:b.y,width:this.relativeSize?this.calculateFromRadius(this.r):b.width,height:this.relativeSize?this.calculateFromRadius(this.r):b.height,shapeName:this.mode}};a.prototype.fillProperties=function(b){b&&(this.mode=b.mode||b.subType||this.mode,
U(this.relativeSize)&&this.setSizeType(b),this.cx=b.cx,this.cy=b.cy,this.r=b.r,c.prototype.fillProperties.call(this,b))};a.prototype.createElement=function(b){return this.renderer.shape(this.mode,b)};a.prototype.setSizeType=function(b){Cc(["x","y","width","height"],b)?this.relativeSize=!1:Cc(["cx","cy","r"],b)&&(this.relativeSize=!0)};a.prototype.calculateFromRadius=function(b){return t(b)?2*b:null};a.prototype.default=function(b,a){return Jb(b)?a:b};return a}(Mf),Xt={},Yt=function(c){function a(){return null!==
c&&c.apply(this,arguments)||this}L(a,c);a.prototype.init=function(){c.prototype.init.call(this);this.padding=this.padding||yf(0)};a.prototype.extendDefault=function(b,a){a.name&&U(a.size)&&(b.width=b.height=16);return c.prototype.extendDefault.call(this,b,a)};a.prototype.collectAttrs=function(){var b=c.prototype.collectAttrs.call(this);this.updateIconState();b.d=this._iconD;t(this._rotate)&&(1===this._rotate.length&&(this._rotate.push(this._iconWidth?b.x+this._iconWidth/2:0),this._rotate.push(this._iconHeight?
b.y+this._iconHeight/2:0)),b.rotate=this._rotate);return b};a.prototype.getFromStoreOrShapes=function(b){var a=this;if(b&&"none"!==b){var c,f;return(f=Xt[b])?f:(c=sc[b])?Xt[b]=c(0,0,10,10,{r:2}).toString():Ko(b,function(b){b.displayCdnWarning&&oa.emit("warning","dom","cdnLoad",{container:a.renderer.wrapper.el})},function(){oa.emit("warning","dom","iconNotFound",{data:[b],container:a.renderer.wrapper.el})})}};a.prototype.updateIconState=function(b){b=b&&(b.d||b.path)||this.attrs.d||this.attrs.path;
var a=this.getShapeBox();this.pixelCorrection&&(a=Kf(a,1===a.height||1===a.width?1:0,this.parent));var c=b||(this._icon?this.getFromStoreOrShapes(this._icon):null);c&&(b=kq(c,[a.x,a.y,a.width,a.height,this._userSize],this._outerShape,this.padding,!!b),this._iconD=b[0],this._iconSize=b[1],this._iconWidth=b[2],this._iconHeight=b[3])};a.prototype.val=function(b){t(b)&&this.attr(b);return this};a.prototype.getIconSize=function(){this.updateIconState();return this._iconSize};a.prototype.createElement=
function(b){return this.renderer.path(b)};a.prototype.fillProperties=function(b){if(b){var a=b.outline,e=b.hatch;this._icon=H(b,"name")?b.name:this._icon;this._userSize=H(b,"size")?parseInt(b.size):this._userSize;this._outerShape=t(b.outerShape)?jq(b.outerShape):this._outerShape;if(b.size||(b.d||b.path)&&!b.width&&!b.height)this.updateIconState(b),b.width=this._iconWidth,b.height=this._iconHeight;t(b.rotate)&&(this._rotate=Yy(b.rotate),b.rotate=void 0);t(a)&&(a.color&&(b.stroke=a.color),a.width&&
(b.borderWidth=a.width));t(e)&&(e.style&&(b.hatchPattern=e.style),e.color&&(b.hatch=e.color));c.prototype.fillProperties.call(this,b)}};return a}(Wt),vD=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.availableAttributes=function(){return ej};a.prototype.createElement=function(b){b=this.renderer.element("g",b);if(this._innerSvg){var a=b.el;if(t(a.innerHTML))return a.innerHTML=this._innerSvg,b;var c=ia.createElement("div");c.innerHTML="<svg><g>"+this._innerSvg+
"</g></svg>";x(c.childNodes[0].childNodes,function(b){return a.appendChild(b)})}return b};a.prototype.fillProperties=function(b){b&&(this._innerSvg=b.innerSvg||this._innerSvg,c.prototype.fillProperties.call(this,b))};return a}(Mf),wD=ja(Kt),xD=ja(["width","height","x","y"]),$g=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.init=function(){c.prototype.init.call(this);this.childElements=[];this.attachedElements=[];this.itemsCount=0;this.padding=this.padding||
yf(0,this.width?this.width.px:0);this.stretchSum={width:1,height:1};this.scoring=new $C};a.prototype.sameChildren=function(b){b=B(b,function(b){var a=J(b,["constructor","name"]);return b.type||(a?a.toLowerCase():void 0)}).join();if(this.childrenHash===b)return!0;this.childrenHash=b;return!1};a.prototype.val=function(b){if(!b)return this.childElements;ka(b)||(b=[b]);if(this.sameChildren(b))for(var a=0,c=b.length;a<c;a++){var f=b[a];f instanceof Lf&&(this.childElements[a].destroy(),f.insert({parent:this,
position:a}));f.val&&this.childElements[a].attr(f);this.childElements[a].val(f.val||f)}else for(this.destroyChildren(),this.destroyAttachedElements(),a=0,c=b.length;a<c;a++)f=b[a],f instanceof Lf||(O(f)&&(f={type:"text",text:f}),ka(f)&&(f={type:"stack",val:f}),f.add||(f=this.layout.item(f))),f.add(this);return this};a.prototype.addElementToParent=function(b){this.attach(b,{setSize:null})};a.prototype.attach=function(b,a){a=a&&t(a.setSize)?a.setSize:function(a){return b.attr({x:0,y:0,width:a.width,
height:a.height})};this.attachedElements.push({el:b,domAttached:!1,setSize:a});this.state.needAttachPatching=!0;this.isPatched&&this.patchAttachedElements()};a.prototype.updateSize=function(b,a){var c=!this.variant||a&&this.variant!==a,d=b&&(b.width!==this.width.px||b.height!==this.height.px||b.x!==this.x.px||b.y!==this.y.px);d&&this.setSize(b);this.setGlobalCoordinates();this.variant=a||this.variant||this.selectVariant();b||this.setSize(this.variant.minSize);(c||d)&&this.arrange();return this};a.prototype.calculatePadding=
function(b,a){a=this.padding;var c=a.right,d=a.top,g=a.bottom,h=function(a){return"%"===a.valueType?a.val*b/100:a.px};return{left:h(a.left),right:h(c),top:h(d),bottom:h(g)}};a.prototype.getContentSize=function(){var b=this.getBbox(),a=this.calculatePadding(b.width,b.height);return{width:Math.max(b.width-a.left-a.right,0),height:Math.max(b.height-a.top-a.bottom,0),x:b.x+a.left,y:b.y+a.top}};a.prototype.getStretchingArea=function(){var b=this.stretchSum,a=this.getReservedSpace(),c=this.getContentSize();
return{width:Math.max(c.width-a.width,0)/(b.width||1),height:Math.max(c.height-a.height,0)/(b.height||1)}};a.prototype.getReservedSpace=function(){return{width:0,height:0}};a.prototype.selectVariant=function(){var b=this.combinations,a=null,c=b.length,f=this.strategy||this.layout.svgStyles.strategy,g=null,h=function(b){return b&&"*"!==b.valueType};if(c){for(var k=0;k<c;k++){var l=b[k],m=l.score,n=this.fitsSize(l.minSize),p=h(this.width),q=h(this.height),r=g&&1===this.scoring.compareScores(g,m,f);
p=!g||p&&q&&r;n.width&&n.height&&p&&(a=l,g=m)}g=null;if(!a){for(k=c-1;0<=k;k--){c=b[k];h="height"===f?f:"width";if(g&&g.minSize[h].px<c.minSize[h].px&&!a||g&&a&&g.minSize[h].px===a.minSize[h].px)a=g;g=b[k]}a=a||g}return a}};a.prototype.fitsSize=function(b){var a=lc(this.width),c=lc(this.height);return{width:!a||1>b.width.px-a,height:!c||1>b.height.px-c}};a.prototype.composeCombinations=function(){var b=this,a=[],c=this.childElements,f=!c||!c.length,g=this.suspend,h=this.width,k=this.height;if(f||
g){a=[];if(g)for(var l=0;l<c.length;l++){var m=c[l];m.combinations.length||m.updateCombinations();m=m.combinations;a.push(m.length?m[0]:null)}c=function(b){return g||!b||f&&b.isMutable?nd():b};return[{components:a,score:{whitespace:0,magnitude:h&&k?h.px*k.px:0},minSize:{width:c(h),height:c(k)},index:0}]}h=1;for(l=0;l<c.length;l++)m=c[l],m.combinations.length||m.updateCombinations(),m=m.combinations.slice(),k=m.length,h*=k,k||m.push(null),a.push(m);1E3<h&&(a=B(a,function(a){a=b.maxWidth?Zy(a,b.maxWidth):
a[0];return[a]}));c=this.mixCombinations(a);return this.filterCombinations(c)};a.prototype.mixCombinations=function(b){return this.getCombinations(b)};a.prototype.getCombinations=function(b,a){a=a||{codes:[],result:[],counter:0};if(0<b.length)for(var c=b[0].length,d=0;d<c;d++){var g=b.slice(0);a.codes[a.counter]=b[0][d];g.shift();a.counter++;this.getCombinations(g,a)}else b=a.codes.slice(0),a.result.push(b);a.counter--;return a.result};a.prototype.filterCombinations=function(b){var a=this.width,c=
this.height,f=xc(a),g=xc(c),h="none"===this.autoWrap,k=!f&&!g&&!t(this.maxWidth)&&"golden"===this.autoWrap,l=function(b){return t(b)?b:Infinity},m=l(this.maxWidth);l=l(this.maxHeight);if(1===b.length)return b=this.measure(b[0]),f&&(b.minSize.width=Ra(a)),g&&(b.minSize.height=Ra(c)),b.index=0,[b];if(!(f||g||h||k)){a=[];c=0;g=f=void 0;for(var n=0,p=b.length;n<p;n++){var q=this.measure(b[n]),r=q.minSize;h=m-r.width.px;k=l-r.height.px;var u=Math.max(Math.abs(Math.min(0,h)),Math.abs(Math.min(0,k)));if(0<=
h&&0<=k)a.push(q),q.index=c++;else if(!f||U(g)||g>u)g=u,f=q}!a.length&&f&&a.push(f);return a}var y=null,v=0,w=b.length-1;n=0;for(p=b.length;n<p;n++){q=this.measure(b[n]);r=q.minSize;var E=r.width.px;r=r.height.px;var x=E/r,D=!f||q.minSize.width.px<=a.px,R=!g||q.minSize.height.px<=c.px,z=!k||!y||Math.abs(1.618-x)<Math.abs(1.618-v)&&.35>q.score.whitespace;if((E<=m&&r<=l||f||g)&&D&&R&&z&&(f&&(q.minSize.width=Ra(a)),g&&(q.minSize.height=Ra(c)),u=q,k&&(y=q,v=x),f||h||k&&1.618>x))break;n===p-1&&!u&&D&&
(w=0)}b=u||this.measure(b[w]);b.index=0;return[b]};a.prototype.selectClosest=function(b,a,c){function d(b,a,c){b=b.minSize;a=a.minSize;return c?Math.abs(b[c].px-a[c].px):Math.abs(b.width.px-a.width.px)+Math.abs(b.height.px-a.height.px)}for(var e=b[0],h=e?d(a,e,c):null,k=1,l=b.length;k<l;k++){var m=b[k];if(null!==m){var n=d(a,m,c);if(null===h||h>n)h=n,e=m}}return e};a.prototype.applyFitSize=function(b,a){var c=this.fitWidth,d=this.fitHeight,g=1,h=1;c&&c<b&&(g=c/b);d&&d<a&&(h=d/a);(c||d)&&this.attr({transform:{scale:Math.min(g,
h)}})};a.prototype.arrange=function(){var b=this.variant;if(b){var a=this.childElements,c=b.components,f=this.getContentSize(),g=this.width.isMutable?b.minSize.width:this.width,h=this.height.isMutable?b.minSize.height:this.height;b=this.calculatePadding(g.px,h.px);if(c)for(this.applyFitSize(g.px,h.px),g=0,h=a.length;g<h;g++){var k=a[g],l=c[g],m=k.width,n=k.height;if(l){var p=k.calculateMargin(),q=lc(k.userX),r=lc(k.userY);q=f.width-p.horizontal.px-(q?q-b.left:0);r=f.height-p.vertical.px-(r?r-b.top:
0);m=Db(m)?m:l.minSize.width;n=Db(n)?n:l.minSize.height;var u=function(b,a){return $a(a)?b:ib(a)?a.val*b/100:a.px};q=u(q,m);r=u(r,n);m=f.width-q-p.horizontal.px;n=f.height-r-p.vertical.px;m=(Me[k.xAlignment||this.xContentAlignment]||0)*(0<m?m:0);n=(Me[k.yAlignment||this.yContentAlignment]||0)*(0<n?n:0);k.updateSize({width:q,height:r,x:k.userX?k.userX.px:m+b.left+p.left.px,y:k.userY?k.userY.px:n+b.top+p.top.px},l)}}}};a.prototype.measure=function(b){for(var a=[],c=0,f=0,g=!1,h=!1,k=[],l=this.childElements,
m=0,n=b.length;m<n;m++){var p=b[m],q=l[m];if(p){var r=xc(q.width)?q.width:p.minSize.width,u=xc(q.height)?q.height:p.minSize.height,y=q.calculateMargin(),v=Db(q.userX)?q.userX.px:0;q=Db(q.userY)?q.userY.px:0;var w=y.horizontal.relative/100;r=(r.px+v+y.horizontal.absolute)*(1+w/(1-w));u=u.px+q+y.vertical.absolute+y.vertical.relative/100*r;y=$a(p.minSize.width);v=$a(p.minSize.height);g=g||y;h=h||v;c=r>c?r:c;f=u>f?u:f;k.push(p.score);a.push({x:0,y:0,width:p.minSize.width.px,height:p.minSize.height.px})}}return{components:b,
minSize:this.completeSize(Ta(c,{stretch:g}),Ta(f,{stretch:h})),score:{whitespace:this.combineScores(k,a),magnitude:c*f},index:0}};a.prototype.completeSize=function(b,a){return Ht(b,a,{padding:this.padding})};a.prototype.createElement=function(b){return this.renderer.element("g",b)};a.prototype.updateRoot=function(){c.prototype.updateRoot.call(this);x(this.childElements,function(b){return b.updateRoot()})};a.prototype.updateCombinations=function(){x(this.childElements,function(b){return b.updateCombinations()});
c.prototype.updateCombinations.call(this)};a.prototype.updateGlobalCoordinates=function(){c.prototype.updateGlobalCoordinates.call(this);x(this.childElements,function(b){return b.updateGlobalCoordinates()})};a.prototype.applyDestroy=function(){for(var b=this.childElements;b.length;)b[0].applyDestroy();c.prototype.applyDestroy.call(this)};a.prototype.applyRefresh=function(b){c.prototype.applyRefresh.call(this,b);if(this.isPatched&&!b){x(this.childElements,function(b){return b.applyRefresh()});if((b=
this.el&&this.el.data.vals["clip-path"])&&b.isDef){var a=this.getBbox();b.attr=M(b.attr||{},{width:a.width,height:a.height});b.updateAttr&&b.updateAttr(b)}this.state.needAttachPatching&&this.patchAttachedElements()}};a.prototype.applyPatch=function(b){c.prototype.applyPatch.call(this,b);this.patchTitle(b);b=(b=b&&b.translate)&&(b.x||b.y);(this.forcePixelCorrection||b)&&this.pixelCorrection&&(this.updateGlobalCoordinates(),this.correctPixelValuesDown())};a.prototype.correctPixelValuesDown=function(){x(this.childElements,
function(b){b.pixelCorrection&&b.isPatched&&(b.needPatch(),b.patch(),b instanceof a&&b.correctPixelValuesDown())})};a.prototype.patchAttachedElements=function(){var b=this,a=b.el,c=[];x(b.attachedElements,function(b){b.el.isDestroyed?c.push(b):b.domAttached||(b.el.add(a),b.domAttached=!0)});c.length&&x(c,function(a){b.attachedElements.splice(b.attachedElements.indexOf(a),1)});b.state.needAttachPatching=!1};a.prototype.destroyAttachedElements=function(){x(this.attachedElements,function(b){return b.el&&
b.el.destroy()})};a.prototype.patchTitle=function(b){b=this.title;var a=this._titleVisual;t(b)&&(b?(a||(a=this._titleVisual=this.renderer.element("title").add(this.el)),a.attr({text:b})):a&&(a.destroy(),this._titleVisual=null))};a.prototype.availableAttributes=function(){return ej};a.prototype.collectAttrs=function(){var b=c.prototype.collectAttrs.call(this,!0);b.translate={x:b.x,y:b.y};H(b,"shadow")&&!H(b,"clipPath")&&delete b.shadow;return Wc({},b,xD)};a.prototype.appendChild=function(b,a){return 0<
a?this.insertChild(b,a):this.addChild(b,"push")};a.prototype.prependChild=function(b){return this.addChild(b,"unshift")};a.prototype.addChild=function(b,a){return this.childElements&&0>this.childElements.indexOf(b)?(this.childElements[a](b),a=this.childElements.length,this.itemsCount<a&&(this.itemsCount=a),this._sharedAttributes&&b.parentAttrsChanged(this._sharedAttributes),!0):!1};a.prototype.removeChild=function(b){b.parent=null;b=this.childElements.indexOf(b);0>b||(this.childElements.splice(b,
1),this.itemsCount=this.childElements.length,this.setRenewComplete())};a.prototype.insertChild=function(b,a){var c=this.childElements,d=c.indexOf(b),g=0>d;g||c.splice(d,1);c.splice(a,0,b);if(g)return this.itemsCount=c.length,this._sharedAttributes&&b.parentAttrsChanged(this._sharedAttributes),!0;this.setRenewComplete();return!1};a.prototype.isNotEmpty=function(){return 0<this.childElements.length};a.prototype.clear=function(b){for(var a=this.childElements,c=0,f=a.length;c<f;c++){var g=a[c];g&&(g.parent=
null,-1===b.indexOf(g)&&g.patchDestroy())}this.childElements=[];this.combinations=[];this.variant=null;this.itemsCount=0;return this};a.prototype.destroyChildren=function(){var b=this.childElements;if(b){for(var a=0,c=b.length;a<c;a++){var f=b[a];f&&(f.parent=null,f.patchDestroy())}this.childElements=[]}};a.prototype.patchDestroy=function(){this.destroyChildren();c.prototype.patchDestroy.call(this)};a.prototype.combineScores=function(b,a){if(!a||2>a.length)return b[0].whitespace;b=this.scoring.mergeScores(b);
a=this.scoreCombination(a);return(b+a.whitespace)/2};a.prototype.isComplete=function(){var b=0===this.itemsCount&&0<this.childElements.length||this.childElements.length===this.itemsCount,a=0===this.itemsCount&&(xc(this.width)||xc(this.height));return b||a};a.prototype.scoreCombination=function(b){return(new oj(b)).getScore()};a.prototype.finalSizeCalled=function(){if(this.attachedElements){var b=this.getBbox();x(this.attachedElements,function(a){a.setSize&&a.setSize(b)})}};a.prototype.snap=function(b,
a){void 0===a&&(a=1);return Kf(b,a,this)};a.prototype.getElement=function(){return this.el};a.prototype.getLowermostElement=function(){var b=this.el;return b?b.childNodes[0]:null};a.prototype.sharedAttrsUpdated=function(b){var a=this._sharedAttributes=this._sharedAttributes||{};Pa(a,b,wD);x(this.childElements,function(b){return b.parentAttrsChanged(a)})};a.prototype.parentAttrsChanged=function(b){var a=this,c;Fa(b,function(d){a[d]!==b[d]&&(c=c||{},c[d]=b[d])});c&&(this._sharedAttributes=c,this.sharedAttrsUpdated(c))};
return a}(Mf),ah=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.init=function(){c.prototype.init.call(this);this.orientation="x"};a.prototype.fillProperties=function(b){b&&(this.orientation=b.subType||b.orientation||this.orientation,c.prototype.fillProperties.call(this,b))};a.prototype.arrange=function(){var b=this.variant;if(b){var a=this.childElements,c=b.components,f=b.extra||{},g=this.getContentSize(),h=this.width.isMutable?b.minSize.width:this.width,
k=this.height.isMutable?b.minSize.height:this.height;b=this.calculatePadding(h.px,k.px);var l="y"===this.orientation;this.applyFitSize(h.px,k.px);var m=0,n=0,p=0;h=0;this.stretchSum=f.stretchSum||this.stretchSum;f=0;for(k=a.length;f<k;f++){var q=a[f],r=c[f];if(r){var u=q.calculateMargin(),y=Db(q.width)?q.width:r.minSize.width,v=Db(q.height)?q.height:r.minSize.height,w=$a(y)?u.horizontal.px:(ib(y)?y.val*g.width/100:y.px)+u.horizontal.px,t=$a(v)?u.vertical.px:(ib(v)?v.val*g.height/100:v.px)+u.vertical.px;
q=$a(y)?g.width*y.val/this.stretchSum.width:w;v=$a(v)?g.height*v.val/this.stretchSum.height:t;l?(m=m>w?m:w,n+=t,p=p>q?p:q,h+=v):(m+=w,n=n>t?n:t,p+=q,h=h>v?h:v)}}var x=0,D=0,R=0,z=0;m=l?g.width:ra([0,g.width-m]);n=l?ra([0,g.height-n]):g.height;p=ra([0,g.width-p]);h=ra([0,g.height-h]);f=0;for(k=a.length;f<k;f++)if(q=a[f],r=c[f])u=q.calculateMargin(),y=q.width&&!q.width.isMutable?q.width:r.minSize.width,v=q.height&&!q.height.isMutable?q.height:r.minSize.height,w=$a(y)?m*y.val/this.stretchSum.width:ib(y)?
y.val*g.width/100:y.px,t=$a(v)?n*v.val/this.stretchSum.height:ib(v)?v.val*g.height/100:v.px,q.updateSize({width:w,height:t,x:x+(Me[q.xAlignment||this.xContentAlignment]||0)*(l?g.width-w-u.horizontal.px:p)+b.left+u.left.px,y:D+(Me[q.yAlignment||this.yContentAlignment]||0)*(l?h:g.height-t-u.vertical.px)+b.top+u.top.px},r),l?(R=R>w?R:w,D=z+=t+u.vertical.px):(R+=w+u.horizontal.px,z=z>t?z:t,x=R)}};a.prototype.reverse=function(){this.childElements.reverse();this.state.needRecalculation=!0};a.prototype.getReservedSpace=
function(){var b=this.variant?{width:this.variant.minSize.width.px,height:this.variant.minSize.height.px}:c.prototype.getReservedSpace.call(this),a="y"===this.orientation;return{width:a?0:b.width,height:a?b.height:0}};a.prototype.selectClosest=function(b,a){return c.prototype.selectClosest.call(this,b,a,"y"===this.orientation?"width":"height")};a.prototype.measure=function(b){for(var a=[],c=[],f=0,g=0,h=0,k=0,l=!1,m=!1,n=0,p=0,q=0,r=this.childElements,u=0,y=b.length;u<y;u++){var v=b[u],w=r[u];if(v){var t=
v.minSize.width,x=v.minSize.height,D=Db(w.width)?w.width:t,R=Db(w.height)?w.height:x;w=r[u].calculateMargin();l=l||$a(D);m=m||$a(R);c.push(v.score);a.push({x:0,y:0,width:t.px,height:x.px});"x"===this.orientation?(f+=(ib(D)?0:D.px)+w.horizontal.absolute,h+=(ib(D)?D.val:0)+w.horizontal.relative,v=Math.max(Ke(R)?R.px:0,x.px)+w.vertical.absolute,g=g>v?g:v,n+=$a(D)?D.val:0):(g+=(ib(R)?0:R.px)+w.vertical.absolute,k+=(ib(R)?R.val:0)+w.vertical.relative,D=Math.max(Ke(D)?D.px:0,t.px)+w.horizontal.absolute,
f=f>D?f:D,p+=$a(R)?R.val:0);q+=w.vertical.relative}}f=100>h?100*f/(100-h):0;g=100*g/(100-k)+q*f/100;return{components:b,minSize:this.completeSize(Ta(f,{stretch:Db(this.width)?!1:l}),Ta(g,{stretch:Db(this.height)?!1:m})),score:{whitespace:this.combineScores(c,a),magnitude:f*g},extra:{stretchSum:{width:n||1,height:p||1}},index:0}};a.prototype.val=function(b){b&&b.length&&(this.itemsCount=b.length);return c.prototype.val.call(this,b)};a.prototype.scoreCombination=function(b){var a=Je[this.orientation||
"x"];return(new oj(b)).getScore(a)};return a}($g),Zt=["cellSpacing","cellPadding","borders"],yD=function(c){function a(b,a){b=c.call(this,b,a)||this;b.rowCount=0;b.columnCount=0;b.gridElements=[];b.borders=[];b.borderElements=[];a&&a.cellSpacing&&b.applyCellSpacing(a.cellSpacing);return b}L(a,c);a.prototype.attr=function(b,a){H(b,"cellSpacing")&&this.applyCellSpacing(b.cellSpacing);return c.prototype.attr.call(this,b,a)};a.prototype.applyCellSpacing=function(b){(this.cellSpacing=parseInt(b)||0)&&
"number"===typeof this.padding.initial&&(this.padding=yf(this.padding.initial+this.cellSpacing/2));var a=yf(this.cellSpacing/2);x(this.childElements,function(b){b.padding=a})};a.prototype.isComplete=function(){var b=this.childElements;b=b?b.length:0;return 0<b&&b===this.rowCount*this.columnCount};a.prototype.arrange=function(){var b=this.variant;if(b){this.calculatePadding((this.width.isMutable?b.minSize.width:this.width).px,(this.height.isMutable?b.minSize.height:this.height).px);for(var a=this.childElements,
c=this.getContentSize(),f=b.components,g=[],h=[],k=[],l=[],m=0;m<this.rowCount;m++)for(var n=0;n<this.columnCount;n++){var p=m*this.columnCount+n,q=f[p],r=a[p];if(q){var u=q.minSize,y=function(b,a){return ib(b)?b.val*a/100:b.px};q=y(u.width,c.width);y=y(u.height,c.height);p=r.width&&!r.width.isMutable?r.width:u.width;r=r.height&&!r.height.isMutable?r.height:u.height;g[n]=ra([g[n],$a(p)?p.val:0]);h[m]=ra([h[m],$a(r)?r.val:0]);k[n]=ra([k[n],q]);l[m]=ra([l[m],y])}else k[n]=ra([k[n],0]),l[m]=ra([l[m],
0]),g[n]=ra([g[n],0]),h[m]=ra([h[m],0])}m=[];n=[];g=Wa(g);u=Wa(h);h=[];for(var v=0;v<this.rowCount;v++)for(var w=0;w<this.columnCount;w++){p=v*this.columnCount+w;q=f[p];r=a[p];p=b.minSize;y=c.width-p.width.px+k[w];var t=c.height-p.height.px+l[v];q?(p=Db(r.width)?r.width:q.minSize.width,r=Db(r.height)?r.height:q.minSize.height,q=$a(p)?y*p.val/g:ib(p)?p.val*c.width/100:p.px,y=$a(r)?t*r.val/u:ib(r)?r.val*c.height/100:r.px,m[w]=ra([m[w],q]),n[v]=ra([n[v],y]),h.push([q,y])):(m[w]=ra([m[w],0]),n[v]=ra([n[v],
0]))}c=this.padding.top.px;for(f=0;f<this.rowCount;f++){k=n[f];l=this.padding.left.px;for(g=0;g<this.columnCount;g++)p=f*this.columnCount+g,u=m[g],r=a[p],v=h[this.columnCount*f+g],q=u,y=k,w=l,t=c,xc(r.width)&&(w+=(Me[r.xAlignment]||0)*(u-v[0])),xc(r.height)&&(t+=(Me[r.yAlignment]||0)*(k-v[1])),r.updateSize({width:q,height:y,x:w,y:t},b.components[p]),l+=u;c+=k}}};a.prototype.refreshBorders=function(){for(var b=function(b,c){c=a.borders[b];if(!c)return"continue";var d=a.childElements[b];b=a.borderElements[b]=
a.borderElements[b]||[];for(var e=function(b,a){b=Kf([b?0:a?d.width.px:0,b?a?d.height.px:0:0,b?d.width.px:0,b?0:d.height.px],1,d);return"M "+b[0]+" "+b[1]+" l "+b[2]+" "+b[3]},f=0;4>f;f++)if(c[f]){var g=b[f],h=!(f%2),q=1===f||2===f;g?g.attr({d:e(h,q)}):(g=a.renderer.path({d:e(h,q),strokeWidth:1,stroke:"gray",fill:"none"}),g.add(d),b[f]=g)}},a=this,c=0,f=this.childElements.length;c<f;c++)b(c)};a.prototype.applyPatch=function(b){this.refreshBorders();c.prototype.applyPatch.call(this,b)};a.prototype.getReservedSpace=
function(){var b=this.variant;return b?{width:b.minSize.width.px,height:b.minSize.height.px}:{width:0,height:0}};a.prototype.scoreCombination=function(b){return(new oj(b)).getScore(Je.xy,[this.rowCount,this.columnCount])};a.prototype.measure=function(b){function a(b,a){if(b.length!==a.length)return 0;for(var c=[],d=0;d<b.length;d++){var e=[b[d]],f=a[d];0<f&&e.push(f/100);c.push(e)}b=ZC(c);for(c=a=0;c<b.length;c++){e=d=0;f=b[c];for(var g=0;g<f.length;g++){var h=f[g];1>h?d+=h:e+=h}a=ra([a,1>d?e/(1-
d):e])}return a}for(var c=[],f=[],g={widths:[],heights:[]},h={widths:[],heights:[]},k={width:!1,height:!1},l=function(b){return ib(b)?0:b.px},m=function(b){return ib(b)?b.val:0},n=this.childElements,p=0;p<this.rowCount;p++)for(var q=0;q<this.columnCount;q++){var r=p*this.columnCount+q,u=b[r],y=n[r];if(u){r=u.minSize.width;var v=u.minSize.height,w=Db(y.width)?y.width:r;y=Db(y.height)?y.height:v;k.width=k.width||$a(w);k.height=k.height||$a(y);c.push(u.score);f.push({x:0,y:0,width:r.px,height:v.px});
g.widths[q]=ra([g.widths[q]||0,l(r)]);g.heights[p]=ra([g.heights[p]||0,l(v)]);h.widths[q]=ra([h.widths[q]||0,m(r)]);h.heights[p]=ra([h.heights[p]||0,m(v)])}else g.widths[q]=ra([g.widths[q]||0,0]),g.heights[p]=ra([g.heights[p]||0,0]),h.widths[q]=ra([h.widths[q]||0,0]),h.heights[p]=ra([h.heights[p]||0,0])}g=function(b,c,d){var e=a(b.widths,c.widths);b=a(b.heights,c.heights);return{width:Ta(e,{stretch:d.width}),height:Ta(b,{stretch:d.height})}}(g,h,k);return{components:b,score:{whitespace:this.combineScores(c,
f),magnitude:g.width.px*g.height.px},minSize:this.completeSize(g.width,g.height),index:0}};a.prototype.mixCombinations=function(b){for(var a=this.rowCount,c=this.columnCount,f=[],g=b.reduce(function(b,a){return b.length>a.length?b:a}).length,h=0;h<a;h++)for(var k=0;k<c;k++)for(var l=b[h*c+k],m=l.length-1,n=g;0<n--;){var p=m*n/g+.5<<0;f[n]||(f[n]=[]);f[n].push(l[p])}return f};a.prototype.val=function(b){if(!b)return this.gridElements;this.rowCount=b.length;this.columnCount=wm(b,function(b,a){return a.length>
b?a.length:b},0);this.clear(Xc(b));for(var a=this.cellSpacing/2||0,c=0;c<this.rowCount;c++)for(var f=0;f<this.columnCount;f++){var g=b[c][f]||this.layout.panel({type:"panel"}),h=this.wrapInnerItem(g,a);this.gridElements.push(g);h.add(this)}this.refreshBorders();return this};a.prototype.wrapInnerItem=function(b,a){if(b.parent)return b.parent;a=this.layout.panel({padding:a});"px"!==b.width.valueType&&(a.width=la(b.width),"%"===b.width.valueType&&(b.width.val=100));"px"!==b.height.valueType&&(a.height=
la(b.height),"%"===b.height.valueType&&(b.height.val=100));"Icon"!==b.constructor.name&&(a.attrs=Ib(b.attrs,Xg),b.attrs={});b.add(a);return a};a.prototype.clear=function(b){for(var a=this.childElements,c=0,f=a.length;c<f;c++){var g=a[c],h=this.gridElements[c];g&&(g.parent=null,g.destroyAttachedElements(),-1===b.indexOf(h)&&g.patchDestroy())}this.borderElements=[];this.gridElements=[];this.childElements=[];this.combinations=[];this.variant=null;this.itemsCount=0;return this};a.prototype.fillProperties=
function(b){if(b){var a=this.processAttrs(b);c.prototype.fillProperties.call(this,b);a&&this.isComplete()&&this.setRenewComplete()}};a.prototype.processAttrs=function(b){for(var a=!1,c=Zt.length,f=0;f<c;f++){var g=Zt[f],h=b[g];t(h)&&(a=a||this[g]!==h,this[g]=h,delete b[g])}return a};return a}($g),$t=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.availableAttributes=function(){return SB};a.prototype.defaultConfig=function(){var b=this.layout;b=b?C(b.renderer,
"errorReporting.chart"):void 0;b=(b?b.boxDefaults():Hf()).outline;return{fill:"white","border-color":b.color,"border-width":b.width}};a.prototype.getPaddingOffset=function(b,a){b=b.valueType?b.px:b;var c=a.valueType?a.px:a;a=Cx(b,c,this.shape||{});b=0===b&&0===c;return{top:a[1]+(b?0:this.strokeWidth),bottom:a[3]+(b?0:this.strokeWidth),left:a[0]+(b?0:this.strokeWidth),right:a[2]+(b?0:this.strokeWidth)}};a.prototype.fillProperties=function(b){b&&(this.processAttrs(b),c.prototype.fillProperties.call(this,
b))};a.prototype.destroyRect=function(){this.rect&&(delete this._box_cache_,this.rect.destroy(),this.rect=null)};a.prototype.patchRect=function(){var b=this.strokeWidth,a=this.getBbox(),c=!a.width||!a.height;if(!this.childElements.length||c)this.destroyRect();else if(a.width===2*b&&a.height===2*b)this.destroyRect();else if(b=X(this.attrs||{},{"border-width":this.strokeWidth,stroke:this.stroke,fill:this.fillColor,shadow:this.shadow,width:ra([a.width-b,0]),height:ra([a.height-b,0]),x:b/2,y:b/2,shape:this.shape}),
this.pixelCorrection&&(a=Kf(b,this.strokeWidth,this),M(b,a)),b=Wc({},b,PB),b=this.cached(b,Pc.WriteIfChanged,"_box_cache_"))this.rect?this.rect.attr(b):(this.rect=this.renderer.shape("rectangle",b),(b=this.firstItem())?(b=this.getLowermostElement()||b.el,this.rect.addBefore(b)):this.rect.add(this.getElement())),this.rectAttrsApplied({d:this.rect.attr("d")})};a.prototype.emptyPatch=function(){c.prototype.emptyPatch.call(this);this.patchRect()};a.prototype.applyPatch=function(b){c.prototype.applyPatch.call(this,
Wc({},b,UB));this.patchRect()};a.prototype.patchDestroy=function(){this.rect&&(this.rect.destroy(),delete this.rect);c.prototype.patchDestroy.call(this)};a.prototype.rectAttrsApplied=function(b){};a.prototype.firstItem=function(){return this.childElements&&this.childElements.length?P(this.childElements,function(b){return b.isPatched}):null};a.prototype.calculatePadding=function(b,a){var c=this.padding;b=this.getPaddingOffset(b,a);return{left:c.left.px+b.left,right:c.right.px+b.right,top:c.top.px+
b.top,bottom:c.bottom.px+b.bottom}};a.prototype.completeSize=function(b,a){var c=this.padding,d=this.getPaddingOffset(b,a);return Ht(b,a,{padding:c,offset:d})};a.prototype.processAttrs=function(b){H(b,"stroke-width")&&(this.strokeWidth=parseInt(b["stroke-width"])||0,delete b["stroke-width"]);H(b,"stroke")&&(this.stroke=b.stroke,delete b.stroke);H(b,"color")&&(this.fillColor=b.color,delete b.color);H(b,"fill")&&(this.fillColor=b.fill,delete b.fill);H(b,"shadow")&&(this.shadow=b.shadow,delete b.shadow);
H(b,"shape")&&(this.shape=b.shape,delete b.shape,this.setRenewComplete());if(H(b,"radius")){this.shape=this.shape||{};this.shape.r=b.radius;var a=b.corners&&ka(b.corners),c=a?b.corners:this.shape.corners||[{type:"round"},{type:"round"},{type:"round"},{type:"round"}];a&&!H(c[0],"type")&&(c=B(c,function(b){return{type:b}}));this.shape.corners=c;delete b.radius;delete b.corners;this.setRenewComplete()}};return a}($g),au=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.fillProperties=
function(b){b&&H(b,"text")&&(this.textAttr!==b.text&&(this.textAttr=b.text,O(this.textAttr)&&(this.textAttr={val:this.textAttr}),this.createTextAndSetTextValue()),delete b.text);c.prototype.fillProperties.call(this,b)};a.prototype.createTextAndSetTextValue=function(){this.textAttr?this.textVisual?this.textVisual.attr(this.textAttr):(this.textVisual=this.layout.textStack(),this.textAttr.zIndex=1,this.textVisual.attr(this.textAttr),this.textVisual.add(this)):this.textVisual&&(this.textVisual.destroy(),
this.textVisual=null)};return a}($t),zD=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.fillProperties=function(b){var a=this,e=t(b.val)?b.val:b.text,f=b.xAlignment,g=b.yAlignment,h=b.xContentAlignment||f,k=b.yContentAlignment||g;!b.xContentAlignment&&b.xAlignment&&(b.xContentAlignment=f);!b.yContentAlignment&&b.yAlignment&&(b.yContentAlignment=g);h&&this.xContentAlignment!==h&&x(this.childElements,function(b){!b.config.xContentAlignment&&b.attr({xContentAlignment:h})});
k&&this.yContentAlignment!==k&&x(this.childElements,function(b){!b.config.yContentAlignment&&b.attr({yContentAlignment:k})});b.width&&(b.strategy=b.strategy||"none");b.stroke&&(this._strokeAttrs=Pa({},b,Xg),x(this.childElements,function(b){b.attr(a._strokeAttrs)}));c.prototype.fillProperties.call(this,b);t(e)&&this.val(e)};a.prototype.init=function(){c.prototype.init.call(this);this.orientation="y"};a.prototype.val=function(b){return t(b)?(O(b)&&this._textAttr!==b&&(this._textAttr=b,this.parseTextAndSetTextValue()),
this):this._textAttr};a.prototype.setTextExtraProps=function(b,a){var c=this;"text"!==b.type&&"icon"!==b.type||M(b,a);ka(b.val)&&x(b.val,function(b){return c.setTextExtraProps(b,a)})};a.prototype.collectAttrs=function(){var b=c.prototype.collectAttrs.call(this);return Ib(b,Xg)};a.prototype.editLine=function(b){var a;if("text"===b.type&&b.val)if(ka(b.val)&&ea(b.val,function(b){return b.align}).length){var c=[];x(b.val,function(b){c.push({type:"text",val:[b],xAlignment:b.align})});b=M(b,{type:"stack",
val:c,width:b.width||"100%"})}else O(b.val)&&b.align&&(b.xAlignment=b.align);var f=this.textOverflow;f=f&&("ellipsis"===f||"clip"===f);var g=this.getAnimation()||(null===(a=this.renderer.defaultOptions().transition)||void 0===a?void 0:a.animation);a=g&&!this._recreate;if(f||g){var h={};f&&(h.width="*");a&&(h.animation=g);this.setTextExtraProps(b,h)}var k=this.xContentAlignment||this.xAlignment,l=this.yContentAlignment||this.yAlignment,m=function(b){k&&(b.xAlignment=b.xAlignment||k);l&&(b.yAlignment=
b.yAlignment||l)};if(k||l)ka(b)?x(b,function(b){return m(b)}):m(b);this._strokeAttrs&&M(b,this._strokeAttrs);return b};a.prototype.canReuse=function(b){if(ka(b.val)||ka(b)){b=b.val||b;for(var a=0,c=b.length;a<c;a++)if(!this.canReuse(b[a]))return!1;return!0}return"visual"===b.kind&&"icon"!==b.type||b.align?!1:!0};a.prototype.destroyElements=function(){for(;this.childElements.length;)this.childElements[0].destroy()};a.prototype.sameHash=function(b){b=b.val||b;b=O(b)?"":B(b,function(b){return b.type}).join();
if(this._configHash===b)return!0;this._configHash=b;return!1};a.prototype.parseTextAndSetTextValue=function(){var b=this._textAttr;""===b&&this.destroyElements();if(b){b=iD(b);b.isRtl&&(this.attrs.direction="rtl",this.attrs.textAnchor="end");var a=b.value,c="stack:y"===a.type?a.val:[a],f=this.childElements.length;b=[];var g=this.sameHash(a);this._recreate=this._recreate||this._type&&a.type&&this._type!==a.type||a.val&&(!this.canReuse(a)||!g)||a.isNanoChart;this._type=ka(a)?"array":a.type;a=0;for(g=
c.length;a<g;a++){var h=c[a],k=h.length;vb(h.val)&&!k&&vb(h.name)&&vb(h.src)&&vb(h.d)&&"visual"!==h.kind||b.push(this.editLine(h))}var l=B(b,function(b){return(b=P(b.val,function(b){return b.verticalAlign}))&&b.verticalAlign});if(!this._recreate&&0<f){a=0;for(g=b.length;a<g;a++)a<f?(c=b[a],this.childElements[a].val(c.val&&c.val.length&&"text"!==c.type?c.val:c)):(h=this.layout.item(b[a]).add(this),0<a&&h.attr({preserveStartSpaces:!1}));a=f-1;for(g=b.length;a>=g;a--)this.childElements[a].destroy()}else for(this._recreate=
void 0,this.destroyElements(),this.sharedAttrsUpdated(this.attrs),a=0,g=b.length;a<g;a++)c=b[a],h=void 0,"visual"===c.kind&&c.align&&(c.xAlignment=c.align),ka(c.val)&&(c.yContentAlignment=c.yContentAlignment||l[a]||this.yContentAlignment),(f=this.layout.item(c))&&(h=f.add(this)),0<a&&h&&h.attr({preserveStartSpaces:!1});x(this.childElements,function(b,a){if(!l[a]&&b instanceof ah&&(a=b.childElements,b=ea(a,function(b){return b instanceof Yt}),b.length)){var c=0;a=ea(a,function(b){return b instanceof
Vt});x(a,function(b){return c=Math.max(c,b.update().getMaxDescent())});x(b,function(b){var a=b.calculateMargin();a.bottom.val||a.top.val||b.attr({margin:{top:0,left:a.left.val,right:a.right.val,bottom:c}})})}})}};return a}(ah),Qc={},Qd={},bu={strategy:"width",textRendering:"geometricPrecision"},nr={fontSize:"12px",fontFamily:"tahoma, geneva, sans-serif"};Qc.panel=$g;Qc.stack=ah;Qc.grid=yD;Qc["stack:text"]=zD;Qc["box:text"]=au;Qc.box=$t;Qd.icon=Yt;Qd.image=tD;Qd.rect=uD;Qd.shape=Wt;Qd.text=Vt;Qd.svgContainer=
vD;var si={},Kl=function(){function c(a){this.children=[];this._needToDestroy=[];var b=this;a=X(bu,a);b.renderer=Bt.create(a);b.pixelCorrection=t(a.pixelCorrection)?a.pixelCorrection:!0;b.svgStyles=X({},bu);b.refreshHandler=Lm.onDefer(function(a){a=b.disableAnimation();b.refreshRootBox();b.refresh();a&&b.enableAnimation()},30)}c.prototype.refresh=function(){this.destroyChildren();this.eachChildren(function(a){return a.refresh()})};c.prototype.refreshRootBox=function(){this.rootBox=this.renderer.box()};
c.prototype.getRootBox=function(){this.rootBox||this.refreshRootBox();return this.rootBox};c.prototype.eachChildren=function(a){var b=this,c;x(this.children,function(b){b.parent?(c=c||[],c.push(b)):a(b)});c&&x(c,function(a){b.children.splice(b.children.indexOf(a),1)})};c.prototype.removeChild=function(a){a=this.children.indexOf(a);0<=a&&(this.needToDestroy(this.children[a]),this.children.splice(a,1))};c.prototype.addChild=function(a){-1===this.children.indexOf(a)&&this.children.push(a)};c.prototype.needToDestroy=
function(a){this._needToDestroy.push(a)};c.prototype.destroyChildren=function(){1>this._needToDestroy.length||(x(this._needToDestroy,function(a){return a.patch()}),this._needToDestroy=[])};c.prototype.destroy=function(){this.refreshHandler&&this.refreshHandler.un();this.renderer.destroy()};c.prototype.item=function(a){return a?this.createLayoutItem(la(a)):null};c.prototype.panel=function(a){a=a||{type:"panel"};a=O(a)?{type:a}:la(a);or(a);var b=Qc[a.type],c=!b&&a.type,e=c?[this.createLayoutItem(a)]:
a.val||[];b||(delete a.type,delete a.val,a=X(c?{}:a,{type:"panel",val:e}));return this.createPanel(a)};c.prototype.box=function(a){a=X({type:"box"},a||{});!a.mode&&a.text&&(a.mode="text");a.mode&&(a.type="box:"+a.mode);return this.createPanel(a)};c.prototype.stack=function(a){a=X({type:"stack"},a||{});return this.createPanel(a)};c.prototype.stackY=function(a){a=X({type:"stack:y"},a||{});return this.panel(a)};c.prototype.text=function(a){void 0===a&&(a="");return this.createVisual({type:"text",val:a})};
c.prototype.textStack=function(a){void 0===a&&(a="");return this.createPanel({type:"stack:text",text:a})};c.prototype.rect=function(a){return this.createVisual(X({type:"rect"},a||{}))};c.prototype.group=function(a){return this.createVisual(X({type:"group"},a||{}))};c.prototype.svgContainer=function(a){return this.createVisual(X({type:"svgContainer"},{innerSvg:a}))};c.prototype.image=function(a){return this.createVisual(X({type:"image"},a||{}))};c.prototype.shape=function(a,b){return this.createVisual(X({type:"shape",
mode:a},b||{}))};c.prototype.icon=function(a){return this.createVisual(X({type:"icon",name:O(a)?a:null},a||{}))};c.prototype.attr=function(a,b){Sa(a)?Pa(this.svgStyles,a,{fontFamily:"",fontSize:""}):O(a)&&t(b)&&this.svgStyles[a]&&(this.svgStyles[a]=b);a=this.renderer.attr(null,a,b);return t(a)?a:this};c.prototype.add=function(a){a&&this.attr({container:a});return this};c.prototype.button=function(a){return this.createPanel(X({type:"button"},a||{}))};c.prototype.input=function(a){return this.createPanel(X({type:"input"},
a||{}))};c.prototype.file=function(a){return this.createPanel(X({type:"file"},a||{}))};c.prototype.color=function(a){return this.createPanel(X({type:"color"},a||{}))};c.prototype.range=function(a,b,c){return this.createPanel(X({type:"range"},a||{}),b,c)};c.prototype.finishAnimations=function(){return Pd.getAnimations().map(function(a){return a.cancel()})};c.prototype.disableAnimation=function(){var a=!1===this.attr("disableAnimation");a&&this.attr("disableAnimation",!0);return a};c.prototype.enableAnimation=
function(){this.attr("disableAnimation",!1)};c.prototype.createPanel=function(a,b,c){for(var d=Qc[a.type],f=a.val||[],g=[],h=0,k=f.length;h<k;h++){var l=f[h];if(l instanceof Array){g.push([]);for(var m=0,n=l.length;m<n;m++){var p=l[m];(p=p instanceof Lf?p:this.createLayoutItem(p))&&g[h].push(p)}}else(p=l instanceof Lf?l:this.createLayoutItem(l))&&g.push(p)}a=new d(this,a);a.chart=b;a.uiParent=c;g.length&&a.val(g);return a};c.prototype.createVisual=function(a){var b=a.type,c=Qd[b];if(!c){if(a.isNanoChart){a=
Object.keys(pe("nanoChartTypes").members);c=b.length;for(var e=0,f=a.length;e<f;e++){var g=a[e],h=b,k=g;if(0===h.length)h=k.length;else if(0===k.length)h=h.length;else{for(var l=[],m=0;m<=k.length;m++)l[m]=[m];for(var n=0;n<=h.length;n++)l[0][n]=n;for(m=1;m<=k.length;m++)for(n=1;n<=h.length;n++)l[m][n]=k[m-1]===h[n-1]?l[m-1][n-1]:Math.min(l[m-1][n-1]+1,Math.min(l[m][n-1]+1,l[m-1][n]+1));h=l[k.length][h.length]}if(3>h&&(!p||h<c)){var p=g;c=h}}oa.emit("warning","layout",p?"microchartNotFoundSuggestion":
"microchartNotFound",{data:[b,p],container:C(this.renderer,"wrapper.el")})}return null}return new c(this,a)};c.prototype.createLayoutItem=function(a){if(!a.type&&!O(a.type))return null;or(a);return Qc[a.type]?this.createPanel(a):this.createVisual(a)};return c}(),Pl=function(){function c(a){void 0===a&&(a={});this.schema=a;this.lengths={};this.indexes={};this.calculations={};this.uniqTypes={};this.ordered={};this.data={};this.dataFlat={}}c.prototype.getKeys=function(){for(var a=this.getAllKeys(),b=
[],c=0,e=a.length;c<e;c++)this.data[a[c]].length&&b.push(a[c]);return b};c.prototype.getAllKeys=function(){return Object.keys(this.data)};c.prototype.getKey=function(a){return(a=this.data[a])?a.slice():[]};c.prototype.getKeyRef=function(a){return this.data[a]||[]};c.prototype.hasKey=function(a){return this.data[a]&&this.data[a].length};c.prototype.hasAllKeys=function(a){var b=!0;a="array"===K(a)?a:a.split(",");for(var c=0,e=a.length;c<e;c++)if(!this.hasKey(a[c])){b=!1;break}return b};c.prototype.hasAnyKeys=
function(a){for(var b=0,c=a.length;b<c;b++)if(this.hasKey(a[b]))return!0};c.prototype.getValue=function(a,b){var c;return(c=this.data[a])?c[b]:void 0};c.prototype.setValue=function(a,b,c){this.data[a][b]=c};c.prototype.getItem=function(a){for(var b=this.getKeys(),c={},e,f=0,g=b.length;f<g;f++){var h=b[f];t(e=this.getValue(h,a))&&(c[h]=e)}return c};c.prototype.findValue_i=function(a,b,c){void 0===c&&(c=0);var d,f,g=this.uniqTypes[a];if(g&&"date"===g[0])return this.findValue_iDate(a,b,c);if((f=this.data[a])&&
(d=f.indexOf(b,c))>c-1)return this.indexes[a][d]};c.prototype.findValue_iDate=function(a,b,c){void 0===c&&(c=0);var d=this.data[a];b=b.getTime?b.getTime():b;for(var f=d.length;c<f;c++)if(d[c].getTime()===b)return this.indexes[a][c]};c.prototype.findInterpolatedInfo=function(a,b){var c=this.uniqTypes[a];if(c&&"date"===c[0])return this.findInterpolatedInfo_date(a,b);a=this.data[a];c=0;for(var e=a.length;c<e;c++){var f=a[c],g=void 0;if(b===f)return{i:c,inter:0};if(b>=f&&c<e-1&&b<(g=a[c+1]))return{i:c,
inter:T(0,1,f,g,b)}}return{i:-1,inter:0}};c.prototype.findInterpolatedInfo_date=function(a,b){a=this.data[a];var c=K(b);b="string"===c?Date.parse(b):"date"===c?b.getTime():b;c=0;for(var e=a.length;c<e;c++){var f=a[c].getTime(),g=void 0;if(b===f)return{i:c,inter:0};if(b>=f&&c<e-1&&b<(g=a[c+1].getTime()))return{i:c,inter:T(0,1,f,g,b)}}return{i:-1,inter:0}};c.prototype.max_i=function(a){return(a=this.calculations[a])?a.max_i:-1};c.prototype.min_i=function(a){return(a=this.calculations[a])?a.min_i:-1};
c.prototype.max=function(a){return(a=this.calculations[a])?a.max:void 0};c.prototype.min=function(a){return(a=this.calculations[a])?a.min:void 0};c.prototype.sum=function(a){return(a=this.calculations[a])?a.sum:void 0};c.prototype.sumAbs=function(a){return(a=this.calculations[a])?a.sumAbs:void 0};c.prototype.concat=function(a){return this.getKeyRef(a).slice(0)};c.prototype.indexObject=function(a,b){var c=Object.keys(a);this.indexKeys(c,a,b)};c.prototype.indexKeys=function(a,b,c){for(var d,f=0,g=a.length;f<
g;f++){var h=a[f],k=this.schema[h]||{},l=b[h];d=this.data[h]=this.data[h]||[];var m=this.indexes[h]=this.indexes[h]||[];this.lengths[h]=this.lengths[h]+1||1;if(t(b[h]))if(d[c]=l,m.push(c),"number"===(d=this.addUniqType(h,l)))this.addCalcValue(h,l,c);else if("array"===d&&k.flatten)for(h=this.dataFlat[h]=this.dataFlat[h]||[],k=0,d=l.length;k<d;k++)h.push(l[k]);else"date"===d&&this.addCalcValue(h,l.getTime(),c)}};c.prototype.sortBy=function(a,b,c){void 0===b&&(b=!0);var d=this,f=this.indexes[a],g=!!f,
h=c?function(b){return c(d.getItem(b))}:function(){var b=d.data[a];g=b&&b.length;return function(a){return b[a]}}();if(g){f=f.map(function(b,a){return{_i:b,val:h(a)}});var k=function(b,a){return b.val<a.val?-1:b.val>a.val?1:0},l=function(b,a){return k(a,b)};f.sort(b?k:l);return B(f,function(b){return b._i})}};c.prototype.sortByNone=function(){var a=this,b=0;x(ya(this.data),function(c){a.data[c].length>b&&(b=a.data[c].length)});var c=[];qb(b,function(b){return c.push(b)});return c};c.prototype.addUniqType=
function(a,b){b=K(b);a=this.uniqTypes[a]=this.uniqTypes[a]||[];0>a.indexOf(b)&&a.push(b);return b};c.prototype.addCalcValue=function(a,b,c){var d=this.calculations[a]=this.calculations[a];d?(b>d.max&&(d.max=b,d.max_i=c),b<d.min&&(d.min=b,d.min_i=c),d.sum+=b,d.sumAbs+=Yb.abs(b)):this.calculations[a]={min:b,max:b,min_i:c,max_i:c,sum:b,sumAbs:Yb.abs(b)}};c.prototype.reset=function(a){var b=this;a?this.resetKey(a):(x(this.getKeys(),function(a){b.resetKey(a)}),this.lengths={})};c.prototype.resetKey=function(a){delete this.data[a];
delete this.indexes[a];delete this.calculations[a];delete this.uniqTypes[a];delete this.lengths[a];delete this.ordered[a]};c.prototype.countDecimals=function(a){var b=this.data[a],c=[0];this.dataFlat[a]?b=this.dataFlat[a]:2!==a.length||!this.data[a[0]]||"e"!==a[1]&&"s"!==a[1]||(b=this.data[a[0]]);if(b&&b.length){a=0;for(var e=b.length;a<e;a++)c.push(ag(b[a]))}return Math.max.apply(Math,G(c))};c.prototype.log=function(a){a=Object.keys(this.data);x(a,function(b){})};return c}(),AD=function(){function c(a){this.chart=
a;this.items={};this.spItems=[]}c.prototype.getSPItems=function(){return this.spItems.slice(0)};c.prototype.register=function(a){var b=Ab(a);this.items[b]=a;"SmartPalette"===a.kind&&this.spItems.push(a);return a};c.prototype.remove=function(a){if(a=z(a.id,a.currentOptions.id))return this.removeById(a)};c.prototype.exists=function(a){return this.items[a]};c.prototype.filter=function(a){return ea(this.items,a)};c.prototype.destroyItem=function(a){var b;return(b=this.items[a])?(b.destroy&&b.destroy(),
this.removeById(a),!0):!1};c.prototype.removeById=function(a){var b=this.items,c;return(c=b[a])?("SmartPalette"===c.kind&&jb(this.spItems,c),delete b[a],!0):!1};return c}(),ti={},BD={LineString:"line",MultiLineString:"line",Polygon:"column",MultiPolygon:"column",Point:"marker",MultiPoint:"marker"},pr={organization:"organizational"},cu=function(){function c(b,a){var c={};if(0<a.length)if("string"===K(a)){c=zf(a,"seriesType,chartType");var d=zf(a,"seriesType,chartType",!0);c.invalid&&(c={},d={})}else c=
a;if(0<b.length||!c.chartType)if("string"===K(b)){b=az(b);var e=zf(b,"chartType"),f=zf(b,"chartType",!0)}else e=b;d=kd({},d,f,c,e);switch(d.chartType){case "radar":case "gauge":var g=!0}return{dst:c,ct:e,ctdst:d,isPaneType:g}}function a(b,a){var d=k,e=b.toLowerCase(),g;a&&(g=f(a))&&(a=c(k,g),d=a.ctdst);if(d.chartType&&d.chartType.toLowerCase()===e||d.seriesType&&d.seriesType.toLowerCase()===e)return!0;if("calendar"===b||"heatmap"===b||"variwide"===b)return e===d.seriesType}function b(b){var a;b&&
b.currentOptions&&(b=b.currentOptions);return b&&(a=f(b))?c(k,a):c(k,"")}function d(a,c){var d=b(c);d=d.ctdst||d;if(c=d[a])return c.toLowerCase();if(!c&&"seriesType"===a&&"map"===d.chartType)return"map"}function e(b){var a;g.chartType&&-1<"pie,gauge,funnel,cone,pyramid".indexOf(g.chartType)&&(a=!0);if(a&&b){for(var c=[],d=[],e=0,f=b.length;e<f;e++){a=!1;var h=b[e];h.i=e;h.type&&zf(h.type,"chartType","noDef").chartType&&(c.push([h]),a=!0);a||d.push(h)}d.length&&c.splice(0,0,d);return c}return a}function f(b){var c,
d,e,f=b.type;a("map")&&!f&&(c=b.map)&&(d=c.type||C(c,"features.0.geometry.type"))&&(f=(e=BD[d])?e:d);return f}var g={},h={},k;return{init:function(b){var a=C(b,"type")||"";b=C(b,"defaultSeries.type")||C(b,"defaultSeries_type")||"";a=c(a,b);g=a.ct||{};h=a.dst||{};k=a.ctdst||{}},isType:a,getIsTypeChecker:function(b){var a=k,d;b&&(d=f(b))&&(b=c(k,d),a=b.ctdst);var e=function(b,c){return a[b]&&a[b].toLowerCase()===c};return function(b){var c=b.toLowerCase();if(e("chartType",c)||e("seriesType",c))return!0;
if("calendar"===b||"heatmap"===b||"variwide"===b)return c===a.seriesType}},hasSetting:function(b,a,d){var e=k,g;d&&(g=f(d))&&(d=c(k,g),e=d.ctdst);if(d=e[b])if(d=d.toLowerCase(),"behavior"===b){if(-1<(","+d+",").indexOf(","+a.toLowerCase()+","))return!0}else if(d&&d===a.toLowerCase())return!0},settingVal:d,getSettingChecker:function(a){var c,d=b(a);d=d.ctdst||d;return function(b){if(c=d[b])return c.toLowerCase();if(!c&&"seriesType"===b&&"map"===d.chartType)return"map"}},curCtDst:b,mergeSettings:c,
getPaneGroups:function(b){var a=[],c=[],d;h.chartType&&(d=1);for(var e=0,f=b.length;e<f;e++){var g=!1,k=b[e];k.i=e;if(d||k.type){var l=d||zf(k.type,"chartType","noDef");if(d||l.chartType)a.push([k]),g=!0}g||c.push(k)}0<c.length&&a.splice(0,0,c);return B(a,function(b){var a=B(b,function(b){return b.id}).join("");b.hash=a;return b})},shouldDataMerge:e,dataMergeType:function(b){if(e())return b=P(b,function(b){return P(b.points,function(b){return z(b[1],b.y,0).length})}),"gauge"===g.chartType&&b?"collect":
"sum"},isMapLayer:function(b){if(a("map")&&("object"===typeof b.getMapData()||a("map")&&(C(b.userOptions,"mapDataId")||C(b.userPoints,"0.mapDataId"))))return!0},isHoriz:function(){return"horizontal"===d("chartType")||"horizontal"===d("linearGaugeType")}}},bz={solid:"",dot:"1,3",dash:"4,3",dashdot:"4,3,1,3",dashdotdot:"4,3,1,3,1,3",shortdash:"3,1",shortdot:"1,1",shortdashdot:"3,1,1,1",shortdashdotdot:"3,1,1,1,1,1",longdash:"8,3",longdashdot:"8,3,1,3",longdashdotdot:"8,3,1,3,1,3"},du=function(c){return c},
CD=function(){return[{option:"outline.color",check:du,dependent:"outline.width",value:1},{option:"outline.width",check:function(c){return 0<c},dependent:"boxVisible",value:!0},{option:"fill",check:du,dependent:"boxVisible",value:!0,important:!0}]},eu={},$m=function(c,a){var b=function(b){var a=eu[b];a||(a=eu[b]=b.split("."));return a},d=CD();d.push.apply(d,G(a||[]));x(d,function(a){var d=ka(a.option)?a.option:[a.option];d=P(d,function(d){return a.check(J(c,b(d)))});var e=a.important||U(J(c,b(a.dependent)));
d&&e&&We(c,b(a.dependent),a.value)});return c},lb=function(c,a,b,d,e){var f;U(f=c[b])||(a[d||b]=e?e(f):f)},wi=t,dz=[10,5,4,2,1,.5],ez=[50,20,10,5,4,2,1],vr={badMin:"min",badMax:"max"},Ml=Yb,Rd=function(c,a){return{val:function(b){return c(Lg(b.indexedData),a?b.scCache:b.cache,"max","min")},axis:"y"}},Sd=function(c,a,b){return{val:function(d){return a(d.pOptions[c],b?d.scCache:d.cache,c+"Max",c+"Min")},axis:c}},cb=function(c,a,b){return{val:function(b){return a(b,c)},axis:c,fStr:b}},za=function(c,
a){return H(c.cache,a)?c.cache[a]:c.scCache&&c.scCache[a]},yc=function(c,a,b){c=c.cache["y"===a?"list":a+"List"];return c.length?b(c):""},Ne=function(c){return{val:function(a){return c(a)},yVal:!0}},fu={yaxislabel:function(c){return c.cache.yAxis?J(c.cache.yAxis.currentOptions,["label","text"]):void 0},xaxislabel:function(c){return c.cache.xAxis?J(c.cache.xAxis.currentOptions,["label","text"]):void 0},zaxislabel:function(c){return c.chart.currentOptions.zAxisLabelText||J(c.chart.currentOptions,["zAxis",
"label","text"])},percentoftotal:cb("y",yi),ypercentoftotal:cb("y",yi),xpercentoftotal:cb("x",yi),zpercentoftotal:cb("z",yi),icon:function(c){return c.point.getIconTag()}},DD={percentofdatarange:Rd(Ld,!0),ypercentofdatarange:Rd(Ld,!0),xpercentofdatarange:Sd("x",Ld,!0),zpercentofdatarange:Sd("z",Ld,!0),percentofdatamax:Rd(vc,!0),ypercentofdatamax:Rd(vc,!0),xpercentofdatamax:Sd("x",vc,!0),zpercentofdatamax:Sd("z",vc,!0),percentofseriesrange:Rd(Ld),ypercentofseriesrange:Rd(Ld),xpercentofseriesrange:Sd("x",
Ld),zpercentofseriesrange:Sd("z",Ld),percentofseriesmax:Rd(vc),ypercentofseriesmax:Rd(vc),xpercentofseriesmax:Sd("x",vc),zpercentofseriesmax:Sd("z",vc),percentofaxisrange:cb("y",Nl),ypercentofaxisrange:cb("y",Nl),xpercentofaxisrange:cb("x",Nl),percentofseries:cb("y",xi),ypercentofseries:cb("y",xi),xpercentofseries:cb("x",xi),zpercentofseries:cb("z",xi),percentofgroup:cb("y",zi),ypercentofgroup:cb("y",zi),xpercentofgroup:cb("x",zi),zpercentofgroup:cb("z",zi),percentile:cb("y",Ai,"n0"),ypercentile:cb("y",
Ai,"n0"),xpercentile:cb("x",Ai,"n0"),zpercentile:cb("z",Ai,"n0"),seriespointcount:function(c){return c.series.userPoints.length},seriesname:function(c){return c.sOptions.name},parentid:function(c){return c.pOptions.parent||""},parentname:function(c){var a=c.pOptions.parent,b=c.chart.chartItemManager.exists(a);return(a&&b?b:c.sOptions).name},complete:function(c){return z(C(c.pOptions,"complete.y"),C(c.pOptions,"complete"),0)},zvalue:function(c){return c.pOptions.z},xvalue:function(c){var a=t(c.pOptions.x)?
c.fOptions.xIsTime?new Date(c.pOptions.x):c.pOptions.x:c.pOptions.name;return t(a)?a:t(c.point.x)?c.point.x:"category"===J(c.cache,["xAxis","type"])&&J(c.cache,["xAxis","catList",c.indexedData.x])||void 0},yvalue:Ne(function(c){return wr(c)}),value:Ne(function(c){return wr(c)}),ystart:Ne(function(c){return Kg(c.indexedData)?c.indexedData.ys:c.indexedData.y}),open:Ne(function(c){return c.pOptions.open}),close:Ne(function(c){return c.pOptions.close}),high:Ne(function(c){return t(c.pOptions.high)?c.pOptions.high:
Kg(c.indexedData)?c.indexedData.ye:c.indexedData.y}),low:Ne(function(c){return t(c.pOptions.low)?c.pOptions.low:Kg(c.indexedData)?c.indexedData.ys:c.indexedData.y}),id:function(c){return c.pOptions.id},name:function(c){return c.pOptions.name||("string"===typeof c.pOptions.x?c.pOptions.x:c.indexedData.name||"")||(t(c.point.x)?c.point.x:"category"===J(c.cache,["xAxis","type"])&&J(c.cache,["xAxis","catList",c.indexedData.x]))||""},color:function(c){return Ob(c.series.getPointAttr(c.point).baseColor,
0)},yrange:function(c){return Lg(c.indexedData)},subvaluelist:function(c){return(c=c.pOptions.subvalue)&&c.values?c.values.join(","):""}},Nf={type:function(c){return za(c,"type")},maxpointname:function(c){return za(c,"nMax")},ymaxpointname:function(c){return za(c,"nMax")},xmaxpointname:function(c){return za(c,"nXMax")},zmaxpointname:function(c){return za(c,"nZMax")},minpointname:function(c){return za(c,"nMin")},yminpointname:function(c){return za(c,"nMin")},xminpointname:function(c){return za(c,"nXMin")},
zminpointname:function(c){return za(c,"nZMin")},pointcount:function(c){return za(c,"list").length},median:function(c){return yc(c,"y",yh)},ymedian:function(c){return yc(c,"y",yh)},xmedian:function(c){return yc(c,"x",yh)},zmedian:function(c){return yc(c,"z",yh)},mode:function(c){return yc(c,"y",xh)},ymode:function(c){return yc(c,"y",xh)},xmode:function(c){return yc(c,"x",xh)},zmode:function(c){return yc(c,"z",xh)},rangesum:function(c){return za(c,"yRangeSum")},yrangesum:function(c){return za(c,"yRangeSum")},
yaverage:function(c){return za(c,"average")},average:function(c){return za(c,"average")},zaverage:function(c){return za(c,"zAverage")},xaverage:function(c){return za(c,"xAverage")}},an={lasty:function(c){return yc(c,"y",Q)},lastx:function(c){return yc(c,"x",Q)},lastz:function(c){return yc(c,"z",Q)},name:function(c){return c.series.name},value:function(c){return c.cache.sum},color:function(c){return c.sOptions.color?c.sOptions.color:1===c.series._points.length?c.series._points[0].tokenValue("%color"):
c.series.info.style.base.color},id:function(c){return c.sOptions.id||c.sOptions.options.id},ylist:function(c){return c.cache.list?c.cache.list.join(","):""},xlist:function(c){return c.cache.list?c.cache.list.join(","):""},zlist:function(c){return c.cache.list?c.cache.list.join(","):""}},bh={name:function(c){return z(c.item.name,c.cache.name,C(c.cache,"label.text"),"")},color:function(c){return c.item.color},minutes:function(c){return Ol(c,6E4)},hours:function(c){return Ol(c,36E5)},days:function(c){return Ol(c,
864E5)}};Kb("value,ysum",function(c){return bh[c]=function(a){return a.val.pop?a.val[1]:a.val}});Kb("min,ymin,xmin",function(c){return bh[c]=function(a){var b=a.evaluedValue[0],c=a.cache.min,e=a.cache.low;a=(a=a.cache.value)&&(ka(a[0])?a[0][0]:a[0]);return z(b,c,e,a)}});Kb("max,ymax,xmax",function(c){return bh[c]=function(a){var b=a.evaluedValue[1],c=a.cache.max,e=a.cache.options;a=(a=a.cache.value)&&(ka(a[0])?a[0][1]:a[1]);return z(b,c,e,a)}});Kb("range,yrange",function(c){return bh[c]=function(a){return a.val.pop?
a.val[1]-a.val[0]:a.val}});Kb("Sum,Average",function(c){var a=Ze(c);Kb("Min,Max",function(b){var d=Ze(b);Kb("y,x,z",function(e){var f="y"===e;f&&(Nf[d+a]=function(b){return za(b,d+c)});Nf[e+d+a]=function(a){return za(a,(f?d:e+b)+c)}})})});Kb("Sum,Min,Max,Range,Absmax",function(c){return Kb("y,x,z",function(a){var b=Ze(c),d="y"===a;d&&(Nf[b]=function(a){return za(a,b)});Nf[a+b]=function(e){return za(e,d?b:a+c)};var e=b+"ofseries";d&&(an[e]=function(a){return a.scCache[b]});an[a+e]=function(e){return e.scCache[d?
b:a+c]}})});var lz=M(DD,fu),mz=M(an,X(fu,Nf)),nz=M({title:function(c){return c.chart.options("title.label.text")},maxseriesname:function(c){return za(c,"snMax")},ymaxseriesname:function(c){return za(c,"snMax")},xmaxseriesname:function(c){return za(c,"snXMax")},zmaxseriesname:function(c){return za(c,"snZMax")},minseriesname:function(c){return za(c,"snMin")},yminseriesname:function(c){return za(c,"snMin")},xminseriesname:function(c){return za(c,"snXMin")},zminseriesname:function(c){return za(c,"snZMin")},
name:function(c){return za(c,"name")},typelist:function(c){return c.cache.typeList.join(",")},sumlist:function(c){return c.cache.sumList.join(",")},ysumlist:function(c){return c.cache.sumList.join(",")},xsumlist:function(c){return c.cache.xSumList.join(",")},zsumlist:function(c){return c.cache.zSumList.join(",")}},Nf),oz=bh,Cr=Vg,Ql=/(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(.\d+)[+-](\d{2}):(\d{2})/g,Sb=function(c,a){return function(b){return c[a](b)}},ED=function(c,a){var b=$b(c);c=a([b[0],
b[1]]);a=a([b[2],b[3]]);a=ff([c[0],c[1],a[0],a[1]]);0>a[2]&&(a[0]-=a[2],a[2]=Math.abs(a[2]));0>a[3]&&(a[1]-=a[3],a[3]=Math.abs(a[2]));return a},uz=[3,2,3,2],Cz=/(-?[0-9]+),(-?[0-9]+)/,xz=/[\s,]/,Lr={top:"t",topright:"r",right:"r",bottomright:"r",bottom:"b",topleft:"l",left:"l",bottomleft:"l"},yz={topright:"righttop",bottomright:"rightbottom",topleft:"lefttop",bottomleft:"leftbottom"},zz={insidetop:"tctc",insidetopright:"trtr",insideright:"mrmr",insidebottomright:"brbr",insidebottom:"bcbc",insidetopleft:"tltl",
insidelefttop:"tltl",insiderighttop:"trtr",insiderightbottom:"brbr",insideleftbottom:"blbl",insideleft:"mlml",insidebottomleft:"blbl",insidecenter:"mcmc",insidemiddle:"mcmc",top:"bctc",topcenter:"bctc",righttop:"tltr",right:"mlmr",middleright:"mlmr",rightbottom:"blbr",bottom:"tcbc",bottomcenter:"tcbc",lefttop:"trtl",left:"mrml",middleleft:"mrml",leftbottom:"brbl",topright:"brtr",bottomright:"trbr",topleft:"bltl",bottomleft:"tlbl",outsidetopright:"bltr",outsidebottomright:"tlbr",outsidetopleft:"brtl",
outsidebottomleft:"trbl",outsiderighttop:"bltr",outsiderightbottom:"tlbr",outsidelefttop:"brtl",outsideleftbottom:"trbl"},Az={top:0,bottom:0,middle:0,left:1,right:1,center:1},Bz=B(function(c){return(c=pe(c))?Object.keys(c.members):[]}("orientation"),function(c){return c.toLowerCase()}).join("|"),gu=function(){function c(a,b,c){void 0===c&&(c=[]);this.currentOptions={};this.userOptions={};this.chart=a;if(void 0===b){var d=1;b={}}b=this.normalizeOptions(b);this.userOptions=la(b);C(this.userOptions,
"data.length")&&(this.userOptions.data=this.userOptions.data.map(function(b){return la(b)}));this.renderer=a&&(a.renderer||a);this.init.apply(this,G(c));!d&&this.setOptions()}c.prototype.options=function(a,b){if("string"===typeof a)return this.optionsGet(a);A(this.userOptions,this.normalizeOptions(a));this.setOptions();return this};c.prototype.init=function(){for(var a=0;a<arguments.length;a++);this.defaultMutable=!0};c.prototype.normalizeOptions=function(a,b){return Va(a,b)};c.prototype.optionsGetter=
function(a){return Nr(this,a)};c.prototype.optionsGet=function(a){return C(this.currentOptions,a.replace(/_/g,"."))};c.prototype.defaultOptions=function(){return{}};c.prototype.contextOptions=function(){return this.defaultContextOptions};c.prototype.dependentOptions=function(){return[]};c.prototype.completeUserOptions=function(){return $m(this.userOptions,this.dependentOptions())};c.prototype.setOptions=function(){var a=[this.defaultOptions()],b=this.contextOptions();b&&a.push(b);a.push(this.completeUserOptions());
!this.defaultMutable&&a.unshift({});this.currentOptions=A.apply(null,a);return this};return c}(),hu=function(c){function a(b,a,e){void 0===e&&(e=[]);b=c.call(this,b,a,e)||this;b.attribs={};b.events={};b.updateOptions={};b.subscriptions=[];return b}L(a,c);a.prototype.init=function(){for(var b=0;b<arguments.length;b++);this.defaultMutable=!0};a.prototype.defaultOptions=function(){return this.chart?{animation:this.chart.options("animation")}:{}};a.prototype.setOptions=function(){c.prototype.setOptions.call(this);
this.setRootVisuals();return this};a.prototype.options=function(b,a){var c=this.optionsGetter(b);if("NotGetter"!==c)return c;A(this.userOptions,this.normalizeOptions(b));this.setOptions();!1!==a&&this.render(null,a);return this};a.prototype.normalizeUpdateOpt=function(b,a){"object"===typeof a?(b=qd(b),a=A(b,Va(a))):a=b;return a};a.prototype.afterUpdate=function(b){if(b&&b.then){var a=this;Pd.await(function(){b.then&&(b.then.call(a.chart),delete b.then)})}};a.prototype.setRootVisuals=function(){this.rootPanel||
(this.rootPanel=this.renderer.panel());return this};a.prototype.setAttribs=function(){return this};a.prototype.render=function(b,a){return this};a.prototype.getBounds=function(b){var a=b||this.rootPanel,c=a;for(b=[0,0];c;)b[0]+=c.x.px+c.offsetX,b[1]+=c.y.px+c.offsetY,c=c.parent;a.isPatched?(a=a.getBbox(),a=[a.width,a.height]):(c=a.combinations,c.length||(c=a.composeCombinations()),c=c[0],a=[z(C(a.attrs,"width"),c.minSize.width.px),z(C(a.attrs,"height"),c.minSize.height.px)]);return b.concat(a)};a.prototype.add=
function(b,a){this.parentLayoutItem=b||this.renderer;this.render();this.rootPanel.add(b,a);return this};a.prototype.destroy=function(){x(this.rootVisuals,function(b){return b&&b.destroy&&b.destroy()});this.rootPanel&&this.rootPanel.destroy()};a.prototype.handleEvent=function(b,a,c,f){if(t(a)&&t(c)&&(a=this.events[a]))return a[b](c,f)};a.prototype.trigger=function(b,a){this.events[b].trigger(a,this)};a.prototype.on=function(b,a,c){(b=this.handleEvent(c?"onDefer":"on",b,a,c))&&this.subscriptions.push(b);
return this};a.prototype.un=function(b,a){this.handleEvent("un",b,a);return this};a.prototype.triggerUser=function(b,a){return this.triggerUserTarget(b,this,a)};a.prototype.triggerUserTarget=function(b,a,c){var d=this.currentOptions.events;d=(b=d&&uh(d,b))&&d[b];if(Gb(d))return d.call(a,c||void 0)};a.prototype.hasUserEvent=function(b){var a=this.currentOptions.events;if(b){if("any"===b)return a&&ya(a).length;if(a)return(b=uh(a,b))&&Gb(a[b])}};a.prototype.hasAnyNamedEvent=function(b){return this.hasUserEvent(b)||
this.events[b]};a.prototype.click=function(b){};return a}(gu),mc=function(c){function a(b,a,e){void 0===e&&(e=[]);e=c.call(this,b,a,e)||this;e.chart=b;void 0===a&&(a={});e.id=a.id||void 0;e.ciManager=b.chartItemManager;e.ciManager.register(e);return e}L(a,c);a.prototype.destroy=function(){c.prototype.destroy.call(this);this.ciManager.remove(this)};return a}(hu),Ez=function(c){var a=[],b=function(c,e){void 0===e&&(e="");var d;if("object"!==typeof c||null===c)return c;var g=function(c,d){var f=typeof c;
d=e.length?e+"."+d:d;"object"===f&&null!==c?b(c,d):"function"===f&&a.push([d,c])};if(Array.isArray(c)){var h=c.length;for(d=0;d<h;d++)g(c[d],d)}else for(d in c)c.hasOwnProperty(d)&&g(c[d],d)};b(c);return a},FD=ja("rotate fontFamily fontStyle fontWeight fontSize color margin padding".split(" ")),GD=ja(["val","xAlignment","yAlignment","stroke"]),Ni=function(c){function a(b,a,e){b=c.call(this,b,a)||this;b.target=e;b.currentState="";return b}L(a,c);a.prototype.setRootVisuals=function(){var b=this.rootVisuals=
this.rootVisuals||{},a=this.rootPanel,c=this.renderer;this.rootPanel||(a=this.rootPanel=c.panel());b.background||(b.background=b.background||c.item({type:"rect",fill:"transparent"}).add(a));b.text||(b.text=b.text||c.textStack(this.getText()).attr({width:"auto",autoWrap:"none"}).add(a));return this};a.prototype.setAttribs=function(){var b,a={};a[""]=this.translate(this.currentOptions);if(b=this.currentOptions.states)b.hover&&(a.hover=this.translate(C(this.currentOptions,"states.hover"))),b.select&&
(a.select=this.translate(C(this.currentOptions,"states.selected")));this.attribs=a;return this};a.prototype.applyAttrs=function(b){this.rootPanel.attr(Ib(b,GD));this.rootVisuals.text.attr(Ib(b,FD));this.chart.triggerOptionsApplied("label",this)};a.prototype.isVisible=function(){return!1!==this.currentOptions.visible&&this.getText().length};a.prototype.getSize=function(b){if(!this.isVisible())return[0,0];b&&this.applyAttrs(b);this.rootPanel.updateCombinations();var a=this.rootPanel.combinations;b=
this.rootPanel.calculateMargin();if(!a.length)return[0,0];a=a[0].minSize;return[a.width.px+b.horizontal.px,a.height.px+b.vertical.px]};a.prototype.getSizes=function(b){if(!this.isVisible())return[[0,0]];b&&this.applyAttrs(b);this.rootPanel.updateCombinations();b=this.rootPanel.combinations;var a=this.rootPanel.calculateMargin();a=[a.horizontal.px,a.vertical.px];return b.length?B(b,function(b){b=b.minSize;return[b.width.px+a[0],b.height.px+a[1]]}):[[0,0]]};a.prototype.render=function(){var b=this;
this.setOptions();this.setAttribs();var a=this.currentOptions,c=this.attribs[""],f=c.attr.label;c=c.layout.label;var g=this.rootVisuals.text;if(this.isVisible()){this.rootPanel&&this.rootPanel.visible(!0);this.applyAttrs(c);var h=this.rootVisuals.text.variant;90===Math.abs(c.rotate)&&"center"===c.yAlignment&&h&&g.attr({y:h.minSize.width.px/2*(0>c.rotate?1:-1)});g&&(g.attr(f),g.attr({val:this.getText()}),C(a,"states.hover")&&((void 0).on("mouseover",function(){b.setState("hover")}),(void 0).on("mouseout",
function(){b.setState("")})))}else this.rootPanel&&this.rootPanel.visible(!1);return this};a.prototype.translate=function(b){var a={},c={};b=b||this.currentOptions;c=kd({},b.style||{});Dc(a,b,function(b,a){b.color=a},"color",Ob);c=uc(this.currentOptions);return{attr:{label:a},layout:{label:c}}};a.prototype.setState=function(b){if(b!==this.currentState){var a=this.attribs[b],c=a.attr.label;this.rootPanel.options(a.layout.label);this.rootPanel.attr(c);this.currentState=b}};a.prototype.attr=function(b){this.rootPanel.attr(b)};
a.prototype.getTextEl=function(){return this.rootVisuals.text};a.prototype.getText=function(){return this.evalText(this.options("text"))||""};a.prototype.evalText=function(b){var a=this.target||this.chart;b&&a&&a.replaceTokens&&(b=a.replaceTokens(b));return b};return a}(hu),HD="visible fill outline opacity radius padding position margin corners shadow width height".split(" "),bn=function(c){c=c?c.boxDefaults():Hf();c.fill=Mh(c.fill,.8);c.position="bltl";return c},pj=function(c){function a(b,a,e){b=
c.call(this,b,a,[b,a,e])||this;b.target=e;b.fillShading="box";b.asHTML=!1;b.isVisible=!1;b.applyOptions(!1);return b}L(a,c);a.prototype.init=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];F(b,3)};a.prototype.defaultOptions=function(){var b=C(this.chart.currentOptions,"defaultAnnotation");return A(bn(this.chart),b)};a.prototype.setRootVisuals=function(){var b=this,a=this.renderer;this.rootPanel||(a=this.rootPanel=this.rootPanel||(this.asHTML||this.currentOptions.asHTML?a.renderer.htmlElement().attr({left:0,
top:0}):a.box({autoWrap:"none",transition:{auto:!0}})),this.rootVisuals||(this.rootVisuals={content:this.createContentVisual(a)}),a.on("click",function(a){return b.click(a)}));return this};a.prototype.getBounds=function(b){return!b&&this.currentOptions.asHTML?this.bbox():c.prototype.getBounds.call(this,b)};a.prototype.createContentVisual=function(b){var a=this.renderer;return this.asHTML||this.currentOptions.asHTML?a.renderer.htmlElement().add(b):a.textStack().add(b)};a.prototype.bbox=function(b){var a=
this.rootPanel,c=a.getBbox();this.currentOptions.asHTML&&(b=b?Ec(this.currentOptions.margin):[0,0,0,0],c.x=(parseFloat(a.attr("left"))||0)-b[3],c.y=(parseFloat(a.attr("top"))||0)-b[0],c.width=c.width+b[1]+b[3],c.height=c.height+b[0]+b[2]);return[c.x,c.y,c.width,c.height]};a.prototype.visible=function(b){t(b)||(b="none"!==this.rootPanel.attr("display"));this.rootPanel.attr({display:b?"block":"none"});this.setVisible(b);return this};a.prototype.setVisible=function(b){this.isVisible=b};a.prototype.alignTo=
function(){for(var b,a=[],c=0;c<arguments.length;c++)a[c]=arguments[c];(b=this.rootPanel).alignTo.apply(b,G(a))};a.prototype.options=function(b,a){var c=this.optionsGetter(b);if("NotGetter"!==c)return c;c=this.normalizeOptions(b);var d=this.userOptions.label,g=c.label&&c.label.text;d=d&&d.text;g=t(g)&&d!==g;if(!Wj(this.userOptions,c))return this;this.setOptions();c=t(a);this.applyOptions(c?a:{skipReflow:!0});if(!1===a||c&&a.skipReflow)return this;g=(c=this.rootPanel)&&c.isPatched&&(g||void 0);!g&&
c&&this.chart.isRendered&&!1!==a&&(b=ya(b),0<jc(b,HD).length&&(g=!0));g&&(F(Og(this),1)[0]?c.refresh&&c.refresh():this.chart.chartAreaSet.reflow(a,!1,!0));this.afterUpdate(a);return this};a.prototype.normalizeOptions=function(b){var a=void 0;void 0===a&&(a="corners");var e,f;"undefined"!==(f=K(e=C(b,a)))&&"object"===f&&(b[a]=Uw(e));return c.prototype.normalizeOptions.call(this,b)};a.prototype.applyOptions=function(b){void 0===b&&(b={});b=Va(b);this.rootPanel||this.setOptions();var a=this.currentOptions,
c=this.userOptions,f=this.rootPanel,g=this.rootVisuals.content,h=this.asHTML||a.asHTML,k=la(z(b.animation,a.animation,{}));b=la(a);var l=uc(a.label),m=C(a,"label.text");!1===k&&(k={duration:0});if(h){var n=this.rootPanel,p=n.transition(),q=n.renderer.isAnimationDisabled(b);b.animation=n.isPatched&&!q?p?A(p.getAnimationOptions(),k):k:null;b=rr(b)}else b=Ig(b,z(a.fillShading,this.fillShading)),b.animation=k;if((m=this.evalText(m))||!this.asHTML&&g&&g.textAttr!==m||this.asHTML&&f.innerHTML!==m)l=A(l,
{animation:k}),this.asHTML||a.asHTML?l.innerHTML=m:(l.val=m,c.width&&(l.maxWidth=c.width,l.strategy="none")),g&&g.attr(l);this.checkVisibility(a);a=this.currentOptions.position;this._pos_!==a?(this._pos_=a,c=this._posInfo_=Jr(this.currentOptions),c[0]?(a=c[1],g=c[2],k=this.chart.chartAreaSet,c=this.rootPanel.getBboxArray?this.rootPanel.getBboxArray():[0,0].join(this.bbox(!0).slice(2)),g=0===g?this.chart.rootVisuals.itemsBox.getGlobalBboxArray():k.items[0].getContentGlobalBbox(),a=[a[0]+g[0]-c[0],
a[1]+g[1]-c[1]]):a=void 0):a=void 0;a&&(b[h?"left":"offsetX"]=h?a[0]+"px":a[0],b[h?"top":"offsetY"]=h?a[1]+"px":a[1]);f.attr(this.transformRootAttr(b));this.triggerOptionsApplied();return this};a.prototype.triggerOptionsApplied=function(){this.chart.triggerOptionsApplied("annotation",this)};a.prototype.transformRootAttr=function(b){return b};a.prototype.checkVisibility=function(b){b=!1!==b.visible;var a=this.rootPanel?"none"!==this.rootPanel.attr("display"):this.isVisible,c=b!==a;this.setVisible(a);
c&&this.visible(b)};a.prototype.destroy=function(){c.prototype.destroy.call(this);this._unsubscribeContentBox&&this._unsubscribeContentBox();this.rootPanel&&this.rootPanel.destroy()};a.prototype.remove=function(b){var a=this.chart,c;jb(a._annotations,this);(c=P(a.userOptions.annotations,{id:this.id}))&&jb(a.userOptions.annotations,c);this.destroy();!1!==b&&this.chart.chartAreaSet.reflow(!1,!1,!0)};a.prototype.measure=function(b){this.isMeasured=!0;b&&!this.currentOptions.maxWidth&&this.rootPanel.attr({maxWidth:b[2]});
return this.rootPanel?this.rootPanel.isHtml?ha(this.bbox(!0)):this.rootPanel.setPreliminarySize(!0).getGlobalBboxArray(!0):[0,0,0,0]};a.prototype.positionApplied=function(b){};a.prototype.positionUpdated=function(b){this.positionApplied(b)};a.prototype.getText=function(){};a.prototype.evalText=function(b){var a=this.target||this.chart;a&&a.replaceTokens&&"string"===typeof b&&-1<b.indexOf("%")&&(b=a.replaceTokens(b));return b};return a}(mc),ID=function(c){function a(b,a){a=c.call(this,b.chart,a,b)||
this;a.chartArea=b;a.fillShading="titleBox";return a}L(a,c);a.prototype.applyOptions=function(){var b=this.currentOptions;if(!1===b.visible)return this.rootPanel.attr({suspend:"true"}),this;c.prototype.applyOptions.call(this);if(b=C(b,"position"))"full"===b?this.rootPanel.attr({width:"100%",strategy:"none"}):this.rootPanel.attr({width:"auto"});return this};a.prototype.triggerOptionsApplied=function(){this.chart.triggerOptionsApplied("title",this)};a.prototype.defaultOptions=function(){var b=this.chart;
b=b?b.boxDefaults():Hf();return A(b,{position:"left",padding:[3,3,6,3],corners:["cut","square","square","square"],label:{align:"left",style:{fontSize:14}},shadow:z(b.shadow,!0)})};a.prototype.dependentOptions=function(){return[{option:"fill",check:function(b){return b},dependent:"padding",value:3}]};a.prototype.setRootVisuals=function(){c.prototype.setRootVisuals.call(this);this.rootPanel.attr({transition:!1});return this};a.prototype.createContentVisual=function(b){return this.renderer.textStack().add(b)};
return a}(pj),cn=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.kind="EntryWrapper";return b}L(a,c);a.prototype.defaultOptions=function(){return{}};a.prototype.styleIconVisual=function(b,a){if(b){b=b.base;var c=A({},this.currentOptions),d=C(c,"outline.color");Y(c,"outline.color",d||da("outline",c.color||"white"));c=ic(c);b&&b.attr(c);a.isStyled=!0}};a.prototype.getIconVisual=function(b,a,c){a=this.renderer;c=c.iconVisual||{};var d=c.root=c.root||a.panel({yAlignment:"center"});
b=this.getIconPaths(b);b.base&&!c.base&&(c.base=c.base||a.renderer.path({d:b.base}).add(d));return c};a.prototype.getIconPaths=function(b){return{base:sc.rectangle(0,0,b[0],b[1],{r:2,corners:["round","round","round","round"]}),extra:void 0}};a.prototype.setState=function(b){};a.prototype.replaceTokens=function(b,a){return this.chart.replaceTokens(b,a)};a.prototype.getFormatInfo=function(){return this.chart.getFormatInfo()};return a}(mc),iu=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||
this;b.kind="RangeValueEntry";return b}L(a,c);a.prototype.replaceTokens=function(b,a){return Mg(b,this,a||this.getFormatInfo())};return a}(cn),nb=function(c){return"string"===typeof c?(c=c.trim(),c.match(wp)?parseFloat(c):c.match(/\/|:|AM|PM|\.\d\./g)&&!Aa((new Date(c)).getTime())&&6<=c.length&&6<=c.replace(/[^0-9]/g,"").length?(new Date(c)).getTime():parseFloat(c)):c},ju=function(){function c(a,b){this.chart=a;this.kind="SmartPalette";this.axisRange=[];this.legendEntries=[];this.colorRanges=[];this.mode=
"colorBar";this.rangesMode="manual";this.currentOptions={};this.userOptions={};this.refreshExtremes=!1;Ab(b);this.setOptions(b);this.id=b.id;a&&(this.ciManager=a.chartItemManager).register(this)}c.prototype.options=function(a){var b=Nr(this,a);if("NotGetter"!==b)return b;this.setOptions(a);return this};c.prototype.setOptions=function(a){A(this.userOptions,this.normalizeOptions(a,"colors,id"));this.refreshExtremes=O(a.pointValue)&&this.currentOptions.pointValue!==this.userOptions.pointValue;this.currentOptions=
this.translateOptions(A({},this.defaultOptions(),this.userOptions));this.initialized=!1;this.mode=a.ranges?"ranges":"colorBar";this.stopPosDefined=!0;this.colorRanges=[];this.stops=this.getStops();this.setStopRange()};c.prototype.normalizeOptions=function(a,b){return Va(a,b)};c.prototype.translateOptions=function(a){var b;if(b=a.ranges)if("array"===K(b))a.ranges=B(b,function(b){return"object"===K(b)?b:{value:b}});else{var c=b.min,e=b.max,f=[];b=b.interval;!t(b)||t(c)&&t(e)||(oa.emit("warning",a.id||
this.id,"minMaxRequired",{container:this.chart.getWrapper()}),c=c||0,e=z(e,3*b));if(t(c)&&t(e)){var g=e-c;e=z(b,g/3);b=ym(g/e);20<b&&(e=ym(g/20),b=ym(g/e),oa.emit("warning",a.id||this.id,"spRangesOverflow",{data:["ranges.interval"],container:this.chart.getWrapper()}));g=0;for(var h=b;g<h;g++)f.push({value:g===b-1?[c+e*g,c+e*(g+1)]:c+e*g});a.ranges=f}}return a};c.prototype.defaultOptions=function(){return{}};c.prototype.syncLegendEntries=function(a){var b=a.smartPalette,c=b.getRangeConfigs(),e,f=[];
b.legendEntries.length?(f=b.legendEntries,x(f,function(b){return b.setColumns()})):(x(c,function(b){f.push(e=a.addEntry(new JD(a.chart,b)));e.setColumns()}),b.legendEntries=f);return f};c.prototype.getRangeConfigs=function(){var a=this.currentOptions,b=a.ranges,c=function(b,c){return A({legendEntry:{value:"%min - %max",name:" ",cursor:"default",set:1}},a.defaultRange||{},b,c)};if("array"===K(b))return this.colorRanges.length?this.colorRanges:B(b,function(a,d){var e=d?b[d-1]:void 0,f=d<b.length-1?
b[d+1]:void 0;d=hb(a.value,nb);return f?(e=f.value,c({min:d.pop?d[0]:d,max:e.pop?e[0]:e},a)):"array"===K(d)?c({min:d[0],max:d[1]},Ka(a,"value")):c({min:d,max:d+Math.abs(d-nb(e.value))},a)})};c.prototype.setStopRange=function(){var a=B(this.stops,function(b){return b[0]}),b=Math.min.apply(Math,G(a));a=Math.max.apply(Math,G(a));this.stopRange=a-b;this.stopExtremes=[b,a];var c=hb(this.currentOptions.colorsValueRange,nb);this.clips=!(0<=b&&1>=a)||c};c.prototype.getStops=function(a){var b=this,d=this,
e=d.currentOptions,f=function(){var b=[],a=[];a=l.map(function(b){return nb(b[0])});for(var c=0,d=l.length;c<d;c++)a[c]=l[c][0];a=[Math.min.apply(null,a),Math.max.apply(null,a)];for(c=l.length-1;-1<c;c--){d=l[c];var e=void 0,f=void 0;e=[sa(a[1]-nb(d[0])+a[0],2),d[1]];if(f=0<c?l[c-1]:void 0)3<f.length?(e[2]=1-f[3],e[3]=1-f[2]):2<f.length&&(e[2]=0,e[3]=1-f[2]);b.push(e)}l=b},g=function(){var b=e.colors,c=hb(e.colorsValueRange,nb);d.stopPosDefined=!1;"solid"===a&&b.push(b[b.length-1]);var f=z(C(c,"0"),
0),g=(z(C(c,"1"),1)-f)/(b.length-1);return B(b,function(b,c){return"solid"===a?[f+c*g,b,1]:[f+c*g,b]})},h=function(){var a=e.ranges,f=[],g=!0,h=[];x(a,function(b){var a="object"===K(b)?b.value:b;g=(b=b.color)?g:!1;a=hb(a,nb);a.pop?(f.push([a[0],b,1]),f.push([a[1],b]),h.push(a[0])):(f.push([a,b,1]),h.push(a))});if(!g){e.colors||(e.colors=["white"],oa.emit("warning",e.id,"colorsRequired",{container:b.chart.getWrapper()}));for(var k=e.colors,l=Math.min.apply(Math,G(h)),y=[],v=(Math.max.apply(Math,G(h))-
l)/(k.length-1),w=0,t=k.length;w<t;w++)y.push([l+v*w,k[w]]);var I=new c(d.chart,{stops:y,invert:e.invert});x(f,function(b){b[1]=I.getValueColor(b[0])});x(a,function(b){b.color=b.value.pop?I.getValueColor(nb(b.value[0])):I.getValueColor(nb(b.value))});I.destroy()}return f},k=function(b){if(b&&b.length)return b.map(function(b){b=b.slice(0);b[0]=nb(b[0]);return b})},l="ranges"===d.mode?h():k(e.stops)||g();e.invert&&"ranges"!==d.mode&&f();return l};c.prototype.getPointColor=function(a,b,c){c=c||{};b=
this.getPointValue(b,a,c);return this.getValueColor(b,a)};c.prototype.getValueColor=function(a,b){var c=this.stops||this.getStops(b);(function(){if(b){var a;if(a=b.info.style.base)for(var d=0,g=c.length;d<g;d++)"%color"===c[d][1].toLowerCase()&&(c[d][1]=a.color)}})();a=this.valueToStopPos(a);return function(b){a:{for(var a=0,d=c.length;a<d;a++){var e=c[a];if(nb(e[0])>b){a=0===a?[e]:[c[a-1],e];break a}nb(e[0]);if(a===d-1){a=[e];break a}}a=void 0}d=a[0];e=[];if(1===a.length)return a[0][1];b=T(0,1,d[0],
a[1][0],b);2<d.length&&(e[0]=d[2],3<d.length&&(e[1]=d[3]));if(b<e[0])return d[1];if(1<e.length&&b>e[1])return a[1][1];var k=[0,1];1<e.length?k=e:0<e.length&&(k[0]=e[0]);b=T(0,1,k[0],k[1],b);return we(d[1],a[1][1],100*b)}(a)};c.prototype.setPointSpValues=function(a,b){var c=a.userPoints;b=this.currentOptions;var e=b.colorsValueRange,f=a.colorKey||"valueSP",g=function(b){return null!==b&&!Aa(b)},h=function(b){return g(b)&&t(b)};if(a.info.usesSmartPalette&&c&&c.length){var k=c.length-1,l=c[k];l[f]=this.getPointValue(l,
a);if(this.extremes&&!this.refreshExtremes)var m=this.extremes[0],n=this.extremes[1];else g(l[f])&&(m=n=l[f]);l=this.getPointValue(c[0],a);n=h(n)?n:l;for(m=h(m)?m:l;k--;)if(l=c[k],l=l[f]=this.getPointValue(l,a),g(l))if(l>n||!h(n))n=l;else if(l<m||!h(m))m=l;this.extremes=[m,n];this.refreshExtremes=!1;this.dataRange=n-m;c=!e&&0<=m&&1>=n;a=this.axisConfig={};k=void 0;(k=b.colorsValueRange)?(m=k[0],n=k[1]):c&&this.clips?(m=0,n=1):this.clips||(m=this.stopPosToValue(0),n=this.stopPosToValue(1));m=Jg(m,
n,8,{minIntervalGap:0});this.axisRange=[m.min,m.max];n=.001*(m.max-m.min);a.min=m.min-n;a.max=m.max+n;a.interval=m.interval;a.tickInterval=m.interval;a.startOnTick=a.endOnTick=!1}return this.extremes};c.prototype.getPointValue=function(a,b,c){c=c||{};var d=this.currentOptions,f=t(a._i)?b._points[a._i]:P(b._points,{id:a.id})||P(b._points,{currentOptions:{id:a.id}});f||(a=0);c=c.spSrc;"number"===typeof a?f=a:(a=b.ctmIsType("heatmap")?"percentOfZAxisRange":"percentOfYAxisRange",(d=d.pointValue)||(b=
1<b.userPoints.length?"chart"===c?"{%percentOfDataRange/100}":"{%percentOfSeriesRange/100}":"{"+a+"/100}",d=b),b=d,"function"===K(b)?f=b(f):(-1===b.indexOf(":")&&(b=b.replace("}",":n5}")),this.tokenUsed=b,f=f.replaceTokens(b,{y:{culture:"en-US"},x:{culture:"en-US"}}),f=f.replace(/,/g,""),f=nb(f)));return f};c.prototype.valueToStopPos=function(a){var b,c=Or(this),e=c.dataPerc;return c.stopPerc&&!e&&(b=this.axisRange)&&t(b[0])?T(0,1,b[0],b[1],a):a};c.prototype.stopPosToValue=function(a){var b,c=Or(this),
e=c.dataPerc;return c.stopPerc&&!e&&(b=this.extremes)&&t(b[0])&&!Aa(b[0])?T(b[0],b[1],0,1,a):a};c.prototype.getTraditionalStops=function(a,b){function c(b,a,c){function d(b){b=T(h[0],h[1],0,1,b);b=e.stopPosToValue(b);return e.getValueColor(b)}var f=[];f=function(){for(var d=[],e=0,f=b.length;e<f;e++){var g=b[e],h=e<f-1?b[e+1]:"undefined",k=0<e?b[e-1]:"undefined";if(g[0]<a&&h[0]>a)d.push(a);else if(!(g[0]<a&&h[0]<a))if(g[0]===a)d.push(g[0]);else if(h[0]!==a)if(g[0]>c&&k){if(k[0]<c){d.push(c);break}}else d.push(g[0])}return d}();
return function(b){for(var e=[],f=0,g=b.length;f<g;f++){var h=b[f];e.push([T(0,1,a,c,h),d(h)])}return e}(f)}var e=this,f=[],g=e.getStops(a),h=[];a=e.axisRange;var k=function(b){return T(0,1,h[0],h[1],b)};h=e.stopExtremes;for(var l=0,m=g.length;l<m;l++){var n=g[l],p=l<m?g[l+1]:void 0;f.push([k(nb(n[0])),n[1]]);if(p){if(2<n.length){var q=1===n[2]?1E-4:0;f.push([T(k(nb(n[0])),k(p[0])-q,0,1,n[2]),n[1]])}3<n.length&&f.push([T(k(nb(n[0])),k(p[0]),0,1,n[3]),p[1]])}}b&&(b.pop&&(a=b),b&&e.clips&&2===a.length&&
(b=k(e.valueToStopPos(a[0])),a=k(e.valueToStopPos(a[1])),f=c(f,b,a)));return f};c.prototype.getPaletteCSS=function(a,b){a=this.getTraditionalStops(a);var c=[];c.push(b?"to bottom":"to right");a.map(function(b){var a=og(b[1]).hex;b=100*nb(b[0]);c.push(a+" "+b+"%")});return"background: linear-gradient("+c.join(", ")+");"};c.prototype.destroy=function(){this.ciManager.remove(this);this.destroyEntries()};c.prototype.destroyEntries=function(){x(this.legendEntries,function(a){return a.destroy()})};return c}(),
JD=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.kind="SmartPaletteEntry";return b}L(a,c);return a}(iu),ku,KD=function(){function c(a,b){this._layout=a;this._renderer=a.renderer;this._options={label:"",type:"default",delay:300,fill:"#fff"};this._mini=this._isShowing=this._isStarted=!1;ku||(this._renderer.cssText("\n\n.loader,\n.loader .loader-overlay {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tleft: 0;\n\tbottom: 0;\n\toverflow: hidden;\n}\n\n.loader {\n\tanimation:loader-fadeIn ease-in 1;\n\tanimation-fill-mode:forwards;\n\tanimation-duration:0.1s;\n\n\topacity: 0;\n\tvisibility: visible;\n}\n\n.loader.hide,\n.loader.anim-hide {\n\tanimation:loader-fadeOut ease-in 1;\n\tanimation-fill-mode:forwards;\n\tanimation-duration:0.03s;\n}\n\n.loader.hide {\n\tanimation-duration:0s;\n\tvisibility: hidden;\n}\n\n.loader .loader-overlay {\n\topacity: 0.3;\n}\n\n.loader .loader-text {\n\tcolor: #666;\n\tmargin-top: 5px;\n}\n\n.loader.mini .loader-text {\n\ttop: 7px;\n\tleft: 20px;\n}\n\n.loader .loader-icon-holder {\n\tposition: relative;\n\ttop: calc(50% - 35px);\n\ttext-align: center;\n}\n\n.loader.mini .loader-icon-holder {\n\ttop: 7px;\n\tleft:0;\n}\n\n.loader.mini .loader-text {\n\ttop: 1px;\n\tfont-size: 6px;\n}\n\n.loader.bars .loader-icon,\n.loader.bars .loader-icon:before,\n.loader.bars .loader-icon:after {\n\tbackground: rgba(50,102,187, 0.75);\n\tanimation: loader-bars 1s infinite ease-in-out;\n\twidth: 10px;\n\theight: 40px;\n}\n.loader.bars .loader-icon {\n\tcolor: rgba(50,102,187, 0.75);\n\ttext-indent: -9999em;\n\tfont-size: 11px;\n\t-webkit-animation-delay: -0.16s;\n\tanimation-delay: -0.16s;\n\tmargin: 0 auto;\n}\n\n.loader.bars .loader-icon:before,\n.loader.bars .loader-icon:after {\n\tposition: absolute;\n\ttop: 0;\n\tcontent: '';\n}\n\n.loader.bars .loader-icon:before {\n\tleft: -15px;\n\tanimation-delay: -0.32s;\n}\n.loader.bars .loader-icon:after {\n\tleft: 15px;\n}\n\n.loader.bars.mini .loader-icon,\n.loader.bars.mini .loader-icon:before,\n.loader.bars.mini .loader-icon:after {\n\twidth: 5px;\n\theight: 20px;\n\tanimation: loader-bars 1s infinite ease-in-out;\n}\n\n.loader.bars.mini .loader-icon:before {\n\tleft: -7px;\n\tanimation-delay: -0.32s;\n}\n\n.loader.bars.mini .loader-icon:after {\n\tleft: 7px;\n}\n\n.loader.bars.mini .loader-icon {\n\ttop: 5px;\n\tleft: 5px;\n}\n\n\n@keyframes loader-fadeIn { 0% { opacity:0; } 100% { opacity:1; } }\n@keyframes loader-fadeOut { 0% { opacity:1; transform: scale(1); } 99% { transform: scale(1); } 100% { opacity:0; transform: scale(0); } }\n\n@keyframes loader-bars {\n0%,\n80%,\n100% {\n\ttransform: scaleY(0.75);\n}\n40% {\n\ttransform: scaleY(1.25);\n}\n}\n\n@keyframes loader-default { from {  opacity: 1 } to {  opacity: 0 } }\n\n\n.loader.default .loader-icon {\n\twidth: 50px;\n\theight: 50px;\n\tposition: relative;\n\tmargin: 0 auto;\n}\n\n.loader.default .loader-icon .inner\n{\n\tanimation: loader-default ease-out 0.96s infinite;\n\tposition: absolute;\n\tbackground: #444; \n\tborder-radius: 2px;\n\ttransform-origin: 2px 25px;\n\tleft: 50%; \n\theight: 25%;\n\twidth: 8.33%;\n}\n\n.loader.default.mini .loader-icon {\n\twidth: 20px;\n\theight: 20px;\n}\n\n.loader.default.mini .loader-icon .inner\n{\n\tborder-radius: 1px;\n\ttransform-origin: 0px 10px;\n}\n\n.loader.default .loader-icon .inner:nth-of-type(1) {\n\ttransform: rotate(0deg);\n\tanimation-delay: -0.88s;\n}\n.loader.default .loader-icon .inner:nth-of-type(2) {\n\ttransform: rotate(30deg);\n\tanimation-delay: -0.8s;\n}\n\n.loader.default .loader-icon .inner:nth-of-type(3) {\n\ttransform: rotate(60deg);\n\tanimation-delay: -0.72s;\n}\n\n.loader.default .loader-icon .inner:nth-of-type(4) {\n\ttransform: rotate(90deg);\n\tanimation-delay: -0.64s;\n}\n.loader.default .loader-icon .inner:nth-of-type(5) {\n\ttransform: rotate(120deg);\n\tanimation-delay: -0.56s;\n}\n.loader.default .loader-icon .inner:nth-of-type(6) {\n\ttransform: rotate(150deg);\n\tanimation-delay: -0.48s;\n}\n.loader.default .loader-icon .inner:nth-of-type(7) {\n\ttransform: rotate(180deg);\n\tanimation-delay: -0.4s;\n}\n.loader.default .loader-icon .inner:nth-of-type(8) {\n\ttransform: rotate(210deg);\n\tanimation-delay: -0.32s;\n}\n.loader.default .loader-icon .inner:nth-of-type(9){\n\ttransform: rotate(240deg);\n\tanimation-delay: -0.24s;\n}\n.loader.default .loader-icon .inner:nth-of-type(10){\n\ttransform: rotate(270deg);\n\tanimation-delay: -0.16s;\n}\n.loader.default .loader-icon .inner:nth-of-type(11) {\n\ttransform: rotate(300deg);\n\tanimation-delay: -0.08s;\n}\n.loader.default .loader-icon .inner:nth-of-type(12) {\n\ttransform: rotate(330deg);\n}\n"),
ku=!0);b&&this.options(b)}c.prototype.options=function(a){M(this._options,a)};c.prototype.loading=function(a,b){return!1===a?this.end():this._renderer.isRootHidden()?!1:this.start(a,b)};c.prototype.destroy=function(){this.end();this._loaderElement&&this._loaderElement.destroy()};c.prototype.ensureAnimationApplied=function(a){var b=this,c=(new Date).getTime()-b._endTime;b._animationApplied||!b._isShowing||!0!==b._options.break||0>c?a():(b._loaderElement.attr({"animation-delay":"0ms"}),Ho(function(){b._animationApplied=
!0;b.insideRequest=!0;a();b.insideRequest=!1}))};c.prototype.mainClass=function(){return"loader "+this._options.type};c.prototype.createElements=function(){if(!this._loaderElement){this._loaderElement=this._renderer.htmlElement("",{class:this.mainClass()+" hide"}).add(this._renderer.wrapper);this._overlayElement=this._renderer.htmlElement("",{class:"loader-overlay"}).add(this._loaderElement);this._iconHolderElement=this._renderer.htmlElement("",{class:"loader-icon-holder"}).add(this._loaderElement);
this._iconElement=this._renderer.htmlElement("",{class:"loader-icon"}).add(this._iconHolderElement);this._textElement=this._renderer.htmlElement("",{class:"loader-text"}).add(this._iconHolderElement);for(var a=0;12>a;a++)this._renderer.htmlElement("",{class:"inner"}).add(this._iconElement)}return this._loaderElement};c.prototype.end=function(){if(!this._isStarted||!this._loaderElement)return!1;if(this._isShowing){var a=0<(new Date).getTime()-this._endTime&&this._animationApplied?"anim-hide":"hide";
this._loaderElement.attr({class:this.mainClass()+" "+(this._mini?"mini ":"")+a,"animation-delay":"0ms"})}this._isStarted=this._isShowing=!1;return!0};c.prototype.start=function(a,b){var c=this,e=c._isStarted,f=(t(b)?b:c._options.delay)||0,g=!c._loaderElement,h=O(a)||null===a?a:c._options.label,k=c._textToShow!==h;if(c._isStarted&&!k&&b)return!1;c._isStarted=!0;c._textToShow=h;c.createElements();(function(){(k||g)&&c._textElement.attr({innerHTML:h});if(!c._isShowing){var b=c._layout.getRootBox();c._mini=
50>b.height||50>b.width;c._endTime=f+(new Date).getTime();c._animationApplied=!1;Ho(function(){if(!c._animationApplied){c._animationApplied=!0;var b=c._endTime-(new Date).getTime();c._isShowing&&c._loaderElement.attr({"animation-delay":(0<b?b:0)+"ms"})}});c._loaderElement.attr({class:c._mini?c.mainClass()+" mini":c.mainClass(),width:b.width+"px",height:b.height+"px","animation-delay":f+"ms"});c._overlayElement.attr({"background-color":c._options.fill||"#fff"});c._isShowing=!0}})();return!e};return c}(),
LD=function(){return function(c){this.series=c}}(),lu={contentArea:0,axis:1},Fz=function(){function c(a){this.layout=a;this.uses={}}c.prototype.use=function(a){this.uses=a;return this};c.prototype.build=function(a){var b=this.layout,c={};a=this.uses=a||this.uses;var e=A({content:{holder:{stretch:!0}},axis:{offset:0}},a);a.title&&(c.titleBoxPanel=b.panel(),c.titleBox=(new ID(a.title.holder)).add(c.titleBoxPanel));if(a.axis){var f=e.axis.offset;c.topAxes=b.panel({type:"stack:y"}).attr(Hi("left","bottom",
0,-f));c.leftAxes=b.panel({type:"stack:x"}).attr(Hi("right","top",-f,0));c.rightAxes=b.panel({type:"stack:x"}).attr(Hi("left","top",f,0));c.bottomAxes=b.panel({type:"stack:y"}).attr(Hi("left","top",0,f))}var g=[],h=a.outline?a.outline.width:1;if(a.content&&a.content.stroke){c.contentStroke=b.renderer.path({fill:"none",stroke:"none","stroke-width":a.content.stroke.width});var k=!0===a.content.stroke.onFront}a.background&&(c.caBackgroundPanel=b.panel({padding:h/2}),c.caBackground=b.rect(Ce({fill:"rgba(0,0,0,0)",
shadow:!1})).add(c.caBackgroundPanel),(a.contentHolderFront||k)&&c.contentStroke.add(c.caBackgroundPanel),a.contentHolderFront||g.push(c.caBackgroundPanel));var l=function(a){return Ce(b.panel({type:"panel"})).attr({x:h/2,y:h/2})};a.axisMarkers&&(c.axisMarkersBehind=l(),c.axisMarkersFront=l());a.gridLines&&(c.gridLinesBehind=l(),c.gridLinesFront=l());c.dataContent=l();f=Md({});f=c.contentHolder=b.panel(e.content.holder.stretch?Ce(f):f);var m=function(b){return b&&g.push(b)};m(c.gridLinesBehind);!a.axis&&
a.contentHolderFront?(m(c.axisMarkersBehind),c.axisContentBehind=l(),g.push(c.axisContentBehind)):m(c.axisMarkersBehind);g.push(c.dataContent);m(c.gridLinesFront);m(c.axisMarkersFront);!a.axis&&a.contentHolderFront&&(c.axisContentFront=l(),g.push(c.axisContentFront));c.content=b.panel(Ce(Md({val:g}))).add(f);a.contentOverlay&&(c.contentOverlay=b.panel(Ce(Md({}))).add(f));!a.contentHolderFront&&!1===k&&c.contentStroke.add(f);a.annotationLayer&&(c.anHolder=b.panel(Ce(Md({}))).add(f));a.overflow&&(c.topOverflow=
b.panel(),c.leftOverflow=b.panel(),c.rightOverflow=b.panel(),c.bottomOverflow=b.panel());k=function(a){if(!a)return a;var c=b.panel({zIndex:lu.axis});a.add(c);return c};k={type:"grid",val:[[b.panel(),k(c.topAxes),b.panel()],[k(c.leftAxes),f,k(c.rightAxes)],[b.panel(),k(c.bottomAxes),b.panel()]]};a.contentHolderFront&&(c.contentHolderBehind=b.panel(),c.contentHolderFront=b.panel());c.grid=!a.axis&&a.contentHolderFront?b.panel({val:[c.caBackgroundPanel,c.contentHolderBehind,f,c.contentHolderFront]}):
a.axis?b.panel(e.content.holder.stretch?Ce(k):k):f;c.mainStacks=a.overflow?b.panel({type:"stack:y",val:[Md({val:a.title?[c.topOverflow,{type:"stack:y",yAlignment:"bottom",val:[c.titleBoxPanel]}]:[c.topOverflow]}),{type:"stack:x",val:[Md({val:[c.leftOverflow]}),c.grid,Md({val:[c.rightOverflow]})]},Md({val:[c.bottomOverflow]})]}):c.grid;return c};return c}(),dn,mu={custom:1E3,AxisMarker:1200},en=function(c){var a=c.point,b=c.yVal;c=c.color||a.tokenValue("%color");a=lf(c);return{value:b,label:{color:.65<
a?"#000":"#fff"},fill:c,outline:{color:.85<a?"#d3d3d3":c},gridLine:{color:c}}},fn=function(){function c(a){this.chartArea=a;this.boxes=[];this.labelBoxes=[];this.paths=[];this._allBoxes=void 0;this.anyColLabelOverflow=!1}c.prototype.addIdBox=function(a,b){b.id=a;this.addBox(b)};c.prototype.addBox=function(a){a&&4===a.length&&this.boxes.push(a)};c.prototype.addBodyBox=function(a){this.addBox(a)};c.prototype.addLabelBox=function(a,b){a&&4===a.length&&(a.id=b,this.labelBoxes.push(a))};c.prototype.reset=
function(){this.boxes=[];this.labelBoxes=[];this._allBoxes=void 0;this.anyColLabelOverflow=!1};c.prototype.collideAllExcept=function(a,b){if(ad(this.boxes,a)||ad(this.labelBoxes,a))return!0};c.prototype.collideAll=function(a,b){if(ad(this.boxes,a,b)||ad(this.labelBoxes,a,b))return!0};c.prototype.collideLabels=function(a,b){return ad(this.labelBoxes,a,b)?!0:!1};c.prototype.alignAvoid=function(a,b){a=Dh(a,this.boxes,b);return Dh(a,this.labelBoxes,b)};return c}(),MD=function(c){function a(b,a){var d=
c.call(this,b.chart,a,[b,a])||this;d.series=b;d.attribs={point:{},states:{}};d.kind="Point";d.visuals={marker:void 0,rect:void 0,body:void 0,rectComplete:void 0,errorY:void 0,errorX:void 0,errorXV:void 0,errorYV:void 0,label:void 0,labelConnector:void 0};d._state="";d.info={};d.isMousedOver=!1;d.chart=b.chart;d.x=a.x;d.y=a.y;d.name=a.name;d._i=a._i;d._state="";(d.selected=a.selected)&&Tl(d,!0);return d}L(a,c);a.prototype.init=function(b,a){this.series=b;this._i=a._i;this.defaultMutable=!0};a.prototype.options=
function(b,a){var c=this.series,d=!0,g=this.optionsGetter(b);if("NotGetter"!==g)return g;if("object"===typeof b.mapData&&(this.setMapData(b.mapData),1===ya(b).length))return this;b=Va(b,"map,mapData,geometry");g=ya(b);0<jc(g,et).length?c.seriesDirty.pointData(!0):0<jc(g,Sr).length&&c.seriesDirty.pointIndex(!0);var h;if(0<(h=jc(g,MB)).length&&(t(b.selected)&&Tl(this,b.selected),t(b.muted)&&"select"!==this._state&&this.setState(b.muted?"mute":""),this.chart.isRendered&&this.syncLeCheckbox(),g.length===
h.length)){d=!1;var k=!0}t(b._i)&&(this._i=b._i);M(this.userOptions,b);k?M(this.currentOptions,b):(c.userPoints[this._i]=this.userOptions,this.genOptions());Wl(this);if(d&&!1!==a){c.chartArea.invalidate();c.setDataInfo();a=this.normalizeUpdateOpt({animation:c.currentOptions.animation},a);this.chart.redraw(a);var l=!0}this.triggerUser("update");this.userDefinedExploded=t(this.userOptions.exploded);!l&&this.afterUpdate(a);return this};a.prototype.defaultOptions=function(){return Vl(this.series,this._i)};
a.prototype.contextOptions=function(){};a.prototype.setOptions=function(){c.prototype.setOptions.call(this);Wl(this);return this};a.prototype.setState=function(b,a){var c=this,d=c.series,g=c.chart;b=Xl(c,b);var h={};if(t(null===a||void 0===a?void 0:a.animation)){A(h,!1===a.animation?{duration:0}:a.animation);var k=!!h.duration}if(b!==c._state){a=c.userDefinedExploded;var l=(c.coord()||{}).styleSet||d.getPointAttr(this),m=l.pointAttr,n=l.svAttr;l=function(b){var a=b.rootPanel;return a?a.rect||a.el:
b};var p;(p=c.visuals.body)&&(l=l(p))&&l.attr&&l.attr(A(k?{animation:h}:{},m[b]));x(["errorY","errorX","errorXV","errorYV"],function(a){(p=c.visuals[a])&&p.attr(A(k?{animation:h}:{},n[b]))});l=c.selected;var q=c.selected="select"===b;c._state=b;var r=d.info.type.isPie,u=c.userDefinedExploded;q&&!l?(c.triggerUser("select"),g._pointSelection(),r&&!u&&c.options({exploded:!0}),m[b]||oa.emit("warning",d.name||d.id,"pointSelectNoAttrs",{data:[c.options("id")],container:d.chart.getWrapper()})):!q&&l&&(c.triggerUser("unselect"),
g._pointSelection(),r&&!u&&(Ul(c,!1),c.options({exploded:!1})));c.userDefinedExploded=a}};a.prototype.select=function(b,a,c){b=t(b)?b:!this.selected;Tl(this,b,c)};a.prototype.mouseOver=function(b){var a=this.chart,c=C(b,"eventArgs");if(!this.isMousedOver&&!1!==this.series.options("mouseTracking.enabled")){this.isMousedOver=!0;var f=a.hoveredPoint;a.hoveredPoint=this;f&&f!==this&&f.mouseOut(b);a.hoveredPoint=this;b=this.triggerUser("mouseOver",c);!1!==b&&"select"!==this._state&&this.setState("hover");
c=this.mouseOverOutCursor();a.setCursor(c.over);return b}};a.prototype.mouseOut=function(b){var a=C(b,"eventArgs"),c=this.series;this.isMousedOver=!1;if(!this._cursorCaptured){if(C(c.currentOptions,"mouseTracking.sticky"))var f=(f=this.chart.hoveredPoint)?f.series===c:!1;f||("select"!==c.state&&c.setState(""),c.tooltip.hideTooltip(),!1===f&&c.triggerUser("mouseOut",b),this.chart.hoveredPoint=void 0);b=this.triggerUser("mouseOut",a);!1!==b&&"select"!==this._state&&(this.setState(""),c.visualizer.hideHaloMo());
this.chart.setCursor();return b}};a.prototype.click=function(b){var a=this.currentOptions.nativeClick,c=C(b,"eventArgs"),f=this.series.chartArea;if(!1!==this.series.options("mouseTracking.enabled")){var g={eventArgs:b.eventArgs,currentTarget:this};M(g,f.clickData(g));f=this.series.currentOptions.pointSelection;b=b.accumulate||c&&c.ctrlKey;!1!==this.triggerUser("click",g)&&(a&&a.call(this,g),f&&this.select(void 0,void 0,b),this.syncLeCheckbox())}};a.prototype.mouseOverOutCursor=function(){var b=this.currentOptions,
a=this.series.currentOptions,c=b.cursor||a.cursor;a=a.pointSelection;b=this.hasUserEvent("click")||b.nativeClick;var f={over:void 0,out:"initial"};if(c||a||b)f.over=c||"pointer";return f};a.prototype.genOptions=function(){if(this.currentOptions.mapDataId&&this.userOptions.mapDataId&&this.currentOptions.mapDataId===this.userOptions.mapDataId){var b=this.currentOptions.map,a=this.userOptions.map,c=void 0,f=void 0;delete this.currentOptions.map;delete this.userOptions.map;this.userOptions.mapData&&this.currentOptions.mapData&&
this.userOptions.mapData!==this.currentOptions.mapData&&this.userOptions.mapData.id===this.currentOptions.mapData.id&&(c=this.currentOptions.mapData,f=this.userOptions.mapData,delete this.currentOptions.mapData,delete this.userOptions.mapData);this.currentOptions=A(this.defaultOptions(),this.userOptions);this.currentOptions.map=b;this.userOptions.map=a;c&&f&&(this.currentOptions.mapData=c,this.userOptions.mapData=f)}else this.currentOptions=A(this.defaultOptions(),this.userOptions)};a.prototype.getMapData=
function(){return C(this.info,"map")||C(this.userOptions,"mapData")||C(this.userOptions,"map")||{}};a.prototype.setMapData=function(b){Y(this.info,"map",b);return this};a.prototype.getPosConfig=function(){return{}};a.prototype.destroy=function(){x(this.visuals,function(b){return b&&b.destroy()});var b=this.legendEntry;b&&b.destroy();this.chart.setCursor();c.prototype.destroy.call(this)};a.prototype.syncLegendItems=function(b){var a=this.series;b=1/a.points().items.length;b=a._i+b*this._i;a=a.chart.requestLegend(a);
var c=this.options("legendEntry.visible");!1===c||"none"!==a.spMode&&!0!==c||(this.legendEntry?this.legendEntry.setColumns():this.legendEntry=a.addEntry(this,b))};a.prototype.syncLeCheckbox=function(){var b;if(null===(b=this.legendEntry)||void 0===b?0:b.checkbox)this.legendEntry.updateCheckbox(),this.legendEntry.checkbox.refresh()};a.prototype.getIconVisual=function(b,a,c){var d=this.series;a!==this&&(a=void 0);return d.getIconVisual(b,a||this,c)};a.prototype.iconName=function(){return this.series.iconName()};
a.prototype.getIconTag=function(){var b=this.series,a=b.info.style;b=b.getPointAttr(this.currentOptions).baseColor||a.base.color;return"<icon name="+this.iconName()+" fill="+b+" verticalAlign=middle width=20 height=10>"};a.prototype.styleIconVisual=function(b){var a=this.series.getPointAttr(this.currentOptions);b&&b.base.attr(a.pointAttr[""])};a.prototype.getParents=function(){var b=this.series,a=b.visualizer,c=[];a.getParents?c=a.getParents(this):oa.emit("warning","","The getParents() function is not supported for this type of series type.",
{container:b.chart.getWrapper()});return Qa(mb,function(){return c},function(b){})()};a.prototype.getChildren=function(){var b=this.series,a=b.visualizer,c=[];a.getChildren?c=a.getChildren(this):oa.emit("warning","","The getChildren() function is not supported for this type of series type.",{container:b.chart.getWrapper()});return Qa(mb,function(){return c},function(b){})()};a.prototype.replaceTokens=function(b,a){return yr(b,this.series,this,a||this.series.getFormatInfo())};a.prototype.tokenValue=
function(b){return this.replaceTokens({token:b})};a.prototype.remove=function(b){var a=this.series,c=Od(a.userPoints,{id:this.options("id")});-1<c&&(a.removePoint(c,b),this.triggerUser("remove"))};a.prototype.zoomTo=function(b){var a=this.series;if(a.ctManager.isType("calendar"))a.zoomTo(b);else if(a.ctManager.isType("map")){var c=this.getMapData();(c=C(c,"bbox")||C(c,"properties.bbox"))&&a.chart.zoom(c,b)}else a.chartArea._isStaticDragArea?(c=this.coord(),c=4===c.xyz.length?va(c.xyz):c.xyz.slice(0,
2),c=fo(c)?{center:Hc(c,a.visualizer._coordOffset)}:void 0):(c=a.indexer.getValue("pos",this._i).xyz.slice(0,2),c=fo(c)?{pos:c}:void 0),c&&a.chartArea.zoom(c,b)};a.prototype.setRootVisuals=function(){return this};a.prototype.coord=function(){return this.series.indexer.getItem(this._i).coordinates};a.prototype.bbox=function(){var b=this.coord();if(b.pathObj&&b.pathObj.isPath)var a=b.pathObj.bbox();else{var c=O(b.pathD)?b.pathD:b.pathD.pop?b.pathD.join(" "):void 0;b.htShape?a=b.htShape.bbox():O(c)?
(c=-1<c.indexOf("url")?Gc(ha(this.visuals.body.getBbox())):c)&&(a=tl(c)):b.pathD.bbox&&(a=b.pathD.bbox())}!a&&b.xyz&&(a=b.xyz.slice(0,2),a.push(0,0));c=[];df(c,b.sv,b.svs);var f=[a];df(f,C(b,"collision.body"));c.length&&f.push(Xa(c));1<f.length&&(a=Ha(f));return a};return a}(mc),ND={top:"bottom",bottom:"top",left:"right",right:"left",center:"center",middle:"middle"},OD={top:"right",bottom:"left",left:"top",right:"bottom",center:"middle",middle:"center"},PD=function(){var c=function(b){b=b.split(",");
return B(b,function(b){return{align:"incenter",vAlign:b}})},a={normal:{},range:{},stacked:{},ganttCandle:{}};x({normal:{auto:"outtop,intop,outbottom",others:"inmiddle,inbottom"},range:{auto:"outtop,inmiddle,outbottom",others:"intop,inbottom"},ganttCandle:{auto:"inmiddle,outtop,outbottom",others:""},stacked:{auto:"inmiddle",others:"intop,inbottom"}},function(b,d){x(b,function(b,f){return a[d][f]=c(b)})});return a},QD=function(){var c={normal:{auto:[{align:"left",vAlign:"top"},{align:"center",vAlign:"top"},
{align:"right",vAlign:"top"},{align:"left",vAlign:"middle"},{align:"right",vAlign:"middle"},{align:"left",vAlign:"bottom"},{align:"center",vAlign:"bottom"},{align:"right",vAlign:"bottom"}],others:[{align:"incenter",vAlign:"inmiddle"}]}};x(c.normal.auto,function(a,b){c.normal.others.push({align:"in"+a.align,vAlign:"in"+a.vAlign})});(function(a){x(a,function(b,c){b=a[c];b.align="out"+b.align;b.vAlign="out"+b.vAlign})})(c.normal.auto);return c},Of=function(c){return"i"===c[0]?["in",c.substr(2).toLowerCase()]:
["out",c.substr(3).toLowerCase()]},gn=function(c,a,b,d,e){a=e?a:b;c=e?c.align:c.vAlign;return d&&d[0]!==c[0]||a&&a.toLowerCase()!==Of(c)[1]},gs=function(c){return"i"===c.align[0]&&"i"===c.vAlign[0]},nu=function(c,a){c=Of(c);return c[0]+a[c[1]]},Rc=function(c,a){var b=a?OD:ND;return{align:nu(a?c.vAlign:c.align,b),vAlign:nu(a?c.align:c.vAlign,b),rotation:c.rotation||0}},$z=function(c,a,b,d,e,f){b=a.slice(0);e=function(b,a){var c=[],d=va(b);b=$b(b);var e={u:[d[0],b[1]],d:[d[0],b[3]],l:[b[0],d[1]],r:[b[2],
d[1]]};x(["u","d","l","r"],function(b){var d;(d=a[b])&&c.push(ob(e[b],[d,d]))});return c}(a,e);b=G([b],d,e);f=(f=f.rectComplete)?ha(f):void 0;b=Ha(b);a=sk(a,G(d,e,f?[f]:[]));c.isHoriz()?(a=ef(a,[a[2]-10,a[3]]),b=ef(b,[b[2]+10,b[3]])):(a=ef(a,[a[2],a[3]-10]),b=ef(b,[b[2],b[3]+10]));return{in:a,out:b}},Pz=function(c,a,b,d,e){c=sb(Ha(G([a],b)),-5);return{in:sk(a,b),out:c,outCorner:sb(c,3)}},Qz=function(c,a,b,d,e){c=c.isHoriz();var f=e.getValue("coordinates",d);d=e.getValue("coordinates",d-1);f&&d&&(b=
b.slice(0),d=d.xyz,f=f.xyz,c?b.push(Xa([f,[d[0],f[1]]])):b.push(Xa([f,[f[0],d[1]]])));return{in:sk(a,b),out:sb(Ha(G([a],b)),-5)}},RD=function(c,a,b,d){var e=a.currentOptions.label||{},f=e.align,g=e.verticalAlign,h="auto"===e.placement?void 0:e.placement;d=f||g||h;var k=a.series.info.hasYRanges,l=c.isHoriz(),m=a.series;a=m.info;var n=a.hasSubvalues;c=m.yAxis.isStacked();var p="category"===m.xAxis.type;m=PD();a=n||l&&p&&a.type.zStacked;if(e.alignSequence)return e.alignSequence;if(h&&(l&&f||!l&&g))return d=
"i"===h[0]?"in":"out",e=l?[{align:d+f,vAlign:"inmiddle"}]:[{align:"incenter",vAlign:d+g}];c=m[c?"stacked":a?"ganttCandle":k?"range":"normal"];a=function(a){return{u:function(b){return b},d:function(b){return B(b,function(b){return Rc(b)})},r:function(b){return B(b,function(b){return Rc(b,!0)})},l:function(b){return B(b,function(b){return Rc(Rc(b,!0))})}}[b](a)};e=a(c.auto);k=function(b){return!gn(b,f,g,h,l)};d&&(e=ea(e,k),d=a(c.others),e.push.apply(e,G(ea(d,k))));return e},Rz=function(c,a,b){a=a.currentOptions.label||
{};var d=a.align,e=a.verticalAlign,f="auto"===a.placement?void 0:a.placement;c=d||e||f;b=QD();if(a.alignSequence)return a.alignSequence;if(d&&e)return c=f&&"i"===f[0]?"in":"out",[{align:c+d,vAlign:c+e}];b=b.normal;a=b.auto;var g=function(b){var a=d?gn(b,d,e,f,!0):!0;b=e?gn(b,d,e,f,!1):!0;return a&&b};c&&(a=ea(a,function(b){return!g(b)}),a.push.apply(a,G(ea(b.others,function(b){return!g(b)}))));return a},SD=function(c,a,b,d){var e,f;t(b)?(x(c,function(c){var g=La(a,va(c.box)),k=0;g=Math.abs(Ss(b-g+
180,360)-180);if(!t(f)||g<f)e=c,f=g;45>g?k+=2:(135<g&&(k+=1),d.length&&(Eo(c.box,d[0])&&(k-=2),d[1]&&Eo(c.box,d[1])&&(k-=2)));c.score=k}),e&&e.score++):ou(c,a)},ou=function(c,a){var b,d,e=t(a);x(c,function(c){var f=0,h=Of(c.vAlign)[1],k=Of(c.align)[1];if(e){var l=va(c.box);l=Mb(a,l);if(!t(d)||l<d)d=l,b=c}"center"===k&&(f++,"top"===h&&f++);"middle"===h&&f++;c.score=f});e&&(b.score+=3)},TD=function(c,a,b,d,e,f){x(c,function(c){var g=0,k=c;e?k=f?Rc(c,!0):Rc(Rc(c,!0)):f&&(k=Rc(c));var l=Of(k.vAlign)[1];
k=Of(k.align)[1];if(b||d){var m=b?"right":"left";a?"bottom"===l&&k===m?g+=2:"middle"===l&&k===m?g++:"bottom"===l&&"center"===k&&g++:(k===m&&g++,"bottom"!==l&&g++)}else a?"bottom"===l&&"center"===k?g+=2:"middle"===l?g++:"top"===l&&--g:("center"===k&&g++,"top"===l&&g++);c.score=g})},Uz=function(c,a,b,d,e){a=ha(a.coordRect);va(a);ou(c);c=ta(c,function(b){return b.score});c.reverse();return c},Tz=function(c,a,b,d,e){d=function(b){return e.getValue("coordinates",b)};a=d(b._i);var f=d(b._i-1),g=d(b._i+
1);d=[];b.series.ctSvIs("lineSeriesType","step")||(f&&d.push([a.xyz,f.xyz]),g&&d.push([a.xyz,g.xyz]));if(2===d.length){b=La(d[0][0],d[0][1]);var h=La(d[1][0],d[1][1]);h=Ss(h-b+180,360)-180;h=b+h/2+180}else d.length&&(h=La(d[0][1],d[0][0]));SD(c,a.xyz,h,d);c=ta(c,function(b){return b.score});c.reverse();return c},Sz=function(c,a,b,d,e){var f=function(b){return e.getValue("coordinates",b)};d=f(b._i);var g=f(b._i-1);f=f(b._i+1);var h=b.series;b=0===h._i;var k=h.yAxis;h=k.isStackedFull();k=k.isStacked();
a=a.isHoriz();TD(c,k&&!(k&&!h&&b),!g,!f,a,a?d.xyz[0]<d.xyzs[0]:d.xyz[1]>d.xyzs[1]);c=ta(c,function(b){return b.score});c.reverse();return c},pu=function(){return{opacity:.9,width:3,color:"#dedeac"}},qu=function(){return{axes:"x,y",values:"x,y",requiredData:"x,y",supportedData:"x,y,subvalue,subvalueX",privateAxes:"",customAxisOptions:{}}},Wz="circle diamond four-point-star five-point-star six-point-star seven-point-star".split(" "),Oe=function(c){function a(b){var a=c.call(this,b)||this;a.series=b;
a.kind="base";a.typeConfig=qu();a.typeConfigCtSpecific={chartType:{gauge:{privateAxes:"x",customAxisOptions:{x:{}}},radar:{x:{isRadial:!0,scale:{range:{padding:0}}},y:{isRadial:!0}}},radarType:{polar:{x:{radialInterpolation:"spider"}},spider:{x:{radialInterpolation:"spider"}}},gaugeType:{},linearGaugeType:{horizontal:{}}};a.shapeLabelMeta={};a.debugBBox=!1;a.staticBodyDGetter=void 0;a.staticSeriesBodyInfo=Bc;a.staticPointCompleteVisInfo=Bc;a.coordDirty=!0;a.coordinates={};a.paths={areas:void 0,lines:void 0};
a.pointValueParser=Ii;a.collidePointBoxes=!0;a.getLabelHitTest=function(){return function(b,a,c){var d=b.meta.label;b=b.meta.labelAttr;var e=d&&d.slice(2);return d&&Cd([d[0]+(b.offsetX||0),d[1]+(b.offsetY||0),e[0],e[1]],[a,c])}};cs(b);a.debounce=new He;return a}L(a,c);a.prototype.getTypeConfigDefault=function(){return qu()};a.prototype.getTypeConfig=function(b){if(!this._typeConfigCache||b){var a=this.series;b=this.getTypeConfigDefault();var c=this.typeConfigCtSpecific,f,g,h=this.series.ctManager.getSettingChecker(a),
k;for(k in c)a=c[k],(f=h(k))&&(g=a[f])&&A(b,g);c&&(delete b.chartTypeSpecific,A(b,c));this._typeConfigCache=b}return this._typeConfigCache};a.prototype.pointArrayExpander=function(b){return{x:b[0],y:b[1]}};a.prototype.pointLeVisible=function(b){return!0};a.prototype.contextDefaults=function(){};a.prototype.eachPoint=function(b){for(var a=this.series.points().items,c=0,f=a.length;c<f&&!1!==b(a[c],a[c]._i);c++);};a.prototype.render=function(b,a){var c=this.series,d=c.currentOptions,g=this,h=c.info.type,
k=(c.pane||c.chartArea).collisionManager,l,m=g.isHoriz(),n,p,q=c.rootVisuals,r=c.info,u=r.type,y=J(c.chart.currentOptions,["navigator","enabled"]),v=c.renderer;if(t(g.lastRenderVisibility)&&!g.lastRenderVisibility&&!c.isVisible)return g;var w=z(J(c.currentOptions,["defaultPoint","subvalue","line","length"]),20),E=w,I=function(a){var d;a&&(d=a(g,b))&&(aa=d.d)&&((l={d:aa,zIndex:t(d.zIndex)?d.zIndex:c.zIndex+gb.series},d.clipPath&&(l.clipPath=d.clipPath),l=g.render_applyDynamicAttrVals([l,d.state,{animation:d.animation}],
b,d.state),n=d.visGetter())?(l.animation&&(a=g.getAnimatorOptions(d.shapeName))&&(l.animation.pathAnimation=a,a.fromD=J(n,["data","attrs","d"]),n.finishAnimation()),l.clipPath&&l.animation&&(a=n.data.vals["clip-path"])&&(a.el.attr({animation:l.animation,d:l.clipPath}),delete l.clipPath),n.attr(l)):(d.visSetter(n=v.path(l)),n.add(d.target),x(d.events,function(b,a){return n.on(a,b)})))},D=q.points;v=v.renderer;b=Sa(b)?b:{};q=D&&D.pixelCorrection;c.state=d.selected?"select":d.muted?"mute":c.state||"";
if(u.drawArea||u.drawLine)q&&("step"===c.ctSv("lineSeriesType")||u.drawMarker&&"polar"!==c.ctSv("radarType")&&!1!==J(c.currentOptions,["defaultPoint","marker","visible"]))?b.coordinatesCorrection=function(b){return Be(D,b,1)}:b.coordinatesCorrection=function(b){return b.map(function(b){return[b[0],b[1]]})};!a&&c.preRender(b);b.coordinatesCorrection=null;x(g.staticSeriesBodyInfo,I);var R=c.points().items,C=function(b,a,c,d,e,f){var g,h="",k=function(b){return m&&!f||!m&&f?[[b[0],b[1]-e],[b[0],b[1]+
e]]:[[b[0]-e,b[1]],[b[0]+e,b[1]]]};if(u.drawRect&&b){b=ha(b);var l=Co(b,a,1),n=Co(b,c,1);l||n||(g=Tv(b,[a,c]))}g?x(g,function(b){b&&b.length&&(h+=wa(fb(b)),d&&d.labelObstacles.push(Xa(b)))}):(h=wa(fb([a,c])),d&&d.labelObstacles.push(Xa([a,c])));e&&(h+=wa(fb(k(a))),h+=wa(fb(k(c))));return h},V=this.staticBodyDGetter||Vz,aa,N,B,H,F,Qb,L,M,K,P;a=function(a,d){K=R[U.renderOrder[a]];if(!K)return"continue";N=c.indexer.getValue("coordinates",K._i);F=K.visuals;if(N){var e=K.currentOptions;Qb=P=N.styleSet||
c.getPointAttr(e);N.styleSet=P;L=P.svAttr[""];M=!1;p=K._state=e.selected?"select":e.muted?"mute":K._state||"";a=P.pointAttr[p];B=N.xyz;H=N.xyzs;N.meta.labelObstacles=[];P.labelVisible&&g.initPointLabel(K,N,P,b);r.hasSubvalues&&(E=z(J(e,["subvalue","line","length"]),w),E*=z(N.width,N.unclusteredWidth,J(N,["marker","size"]),10)/100);y&&u.drawMarker&&(u.drawLine||u.drawArea)||r.hasMaxedMarkerLimit&&u.drawMarker&&(u.drawLine||u.drawArea)&&(e.color||e.outline||e.marker||F.body||(M=!0));U.isRadial&&(M=
!1);var f=d=void 0,q=void 0;if(!M&&(f=N.prev,!f||f.isVisible||N.isVisible||N.everVisible)){f&&!f.isVisible&&N.isVisible&&F.body&&f.pathD&&F.body.attr({d:f.pathD,animation:!1});aa=N.pathObj||N.path||V(g,K,N,D,a.r,P.drawMarker);N.pathD=aa;var t=f=void 0;if(t=N.meta.marker)f=0<t[2]&&0<t[3];f||!aq(aa)?("string"===typeof aa&&xb(aa,"url(")?(d=aa.replace(/url\(/g,"").replace(/\)/g,""),l={src:d,cx:B[0],cy:B[1],zIndex:c.zIndex+gb.body}):aa.arcShape&&"object"===typeof aa?(l=A(Ra(aa.arcShape),{zIndex:c.zIndex+
gb.body}),q=!0):l={d:aa,zIndex:c.zIndex+gb.body},l=g.render_applyDynamicAttrVals([l,a],b,a),(n=F.body)?((a=g.getPointAnimatorOptions(N,K))&&!vb(a)&&(l.animation.pathAnimation=a,!n.isComposite&&n.finishAnimation()),n.attr(l)):(q&&"solid"===c.ctSv("columnType")&&(l.shading="solid"),F.body=n=q?v.element("arcShape",l):d?v.element("image",l):v.path(l),n.add(D))):(n=F.body)&&n.attr({d:aa});if(q&&n.hitTest){var Ga=N.htShape=n;N.hitTest=function(b,a){return Ga.hitTest(b,a)}}else if(!N.hitTest&&O(N.pathD)&&
!1!==e.mouseTracking){var Bb=N;N.hitTest=function(b,a){return(Bb.htShape||(Bb.htShape=Ca(Bb.pathD))).hitTest(b,a)}}!1!==c.isVisible&&(k.addBodyBox(J(N,["collision","body"])),k.addBox(N.meta.marker))}h.drawMarker||!c.currentOptions.forceMarker&&!0!==J(e,["marker","visible"])||(Qb=c.getPointAttr(e,!0),a=Qb.pointAttr[p],aa=Xz(K,g.getBodyShapeName(K,!0),N,a.r,D),aa.indexOf&&xb(aa,"url(")?(e=(d=c.xAxis)&&d.isStackedFull()?(B[0]+H[0])/2:B[0],q=B[1],d=aa.replace(/url\(/g,"").replace(/\)/g,""),l={src:d,cx:e,
cy:q,zIndex:c.zIndex+gb.body}):(l={d:aa,zIndex:c.zIndex+gb.marker},d=void 0),l=g.render_applyDynamicAttrVals([l,a],b,a),(n=F.marker)?n.attr(l):(F.marker=n=d?v.element("image",l):v.path(l),n.add(D)));if(r.hasSubvalues&&!g.isRadial&&"ohlc"!==r.type.seriesType){a={get:function(){return F.errorY},set:function(b){return F.errorY=b},onX:!1};d={get:function(){return F.errorX},set:function(b){return F.errorX=b},onX:!0};var gc=L["stroke-width"]||1,yg=E/2;e=function(a,d){a=Be(D,a,gc);l={d:C(N.rect,a[0],a[1],
N.meta,"candlestick"!==h.seriesType?yg:0,d.onX),zIndex:c.zIndex+gb.error};l=g.render_applyDynamicAttrVals([l,L],b,L);(n=d.get())?n.attr(l):(d.set(n=v.path(l)),n.add(D))};N.sv&&N.svs&&(q=N.sv,f=N.svs,t=m?0:1,r.drawRect&&(N.sv[t]===N.xyz[t]&&(q=N.xyzs),N.svs[t]===N.xyzs[t]&&(f=N.xyz)),e([q,f],a));N.svx&&N.svxs&&e([N.svx,N.svxs],d);a=m?N.svxv:N.svv;d=m?N.svv:N.svxv;var Da=[];if(a){Da=[];var Q=[];x(Be(D,a,gc),function(b){b=[[b[0]-yg,b[1]],[b[0]+yg,b[1]]];Da.push.apply(Da,G(b));N.meta.labelObstacles.push(b);
Q.push(b)});l={d:zg(Q),zIndex:c.zIndex+gb.error};l=g.render_applyDynamicAttrVals([l,L],b,L);(n=F.errorYV)?n.attr(l):(F.errorYV=n=v.path(l),n.add(D))}if(d){Da=[];var T=[];x(Be(D,d,gc),function(b){b=[[b[0],b[1]-yg],[b[0],b[1]+yg]];Da.push.apply(Da,G(b));T.push(b)});N.meta.labelObstacles.push(Xa(Da));l={d:zg(T),zIndex:c.zIndex+gb.error};l=g.render_applyDynamicAttrVals([l,L],b,L);(n=F.errorXV)?n.attr(l):(F.errorXV=n=v.path(l),n.add(D))}}r.hasComplete&&I(function(b){return b.staticPointCompleteVisInfo(b,
K,N)});P.labelVisible&&u.isShape&&!c.pane||u.isAnnotation?(U.renderLabel(K,P,N,c.indexer,b),k.addLabelBox(N.meta.label)):(g.hideVisual(g.getLabelWrapper(F.label,P)),g.hideVisual(F.labelConnector))}else g.hideVisual(F.body),g.hideVisual(g.getLabelWrapper(F.label,P));g.hideUnusedPointVisuals(K);K.chart.triggerOptionsApplied("point",K)};var U=this;d=0;for(q=R.length;d<q;d++)a(d);g.isRendered=!0;g.hideUnused();g.lastRenderVisibility=c.isVisible;return g};a.prototype.renderLabels=function(b,a){a=this.series;
var c=(a.pane||a.chartArea).collisionManager;if(a.info.type.isAnnotation||!(a.chart.isRendered&&this.isRendered||a.isVisible))return this;b=Sa(b)?b:{};b.coordinatesCorrection=null;for(var d=a.points().items,g,h,k,l=0,m=d.length;l<m;l++)if(k=d[this.renderOrder[l]])g=a.indexer.getValue("coordinates",k._i),h=k.visuals,g?(h=k.currentOptions,h=g.styleSet||a.getPointAttr(h),h.labelVisible&&a.isVisible&&(this.renderLabel(k,h,g,a.indexer,b),h=g.meta.label,this.collidePointBoxes?c.addLabelBox(h):h&&c.addLabelBox(Zr(g.meta.labelTextBox,
h,g.meta.labelAttr)))):(this.hideVisual(h.body),this.hideVisual(h.label)),this.hideUnusedPointVisuals(k);this.isRendered=!0;this.hideUnused();return this};a.prototype.renderHierarchy=function(b){return this};a.prototype.getAnimatorOptions=function(b,a){a=this.updateInfo;var c=this.series;if(a&&a.action){var d=c.ctManager.settingVal("lineSeriesType",c.currentOptions);return{action:a.action,at:a.at,count:z(a.count,1),del:a.del||0,type:d,shapeName:b,shift:a.shift||!1,fromD:void 0,pointsLen:c._points.length}}return null};
a.prototype.getPointAnimatorOptions=function(b,a){if(this.isRadial&&a){var c=J(this.series,["pointBodyDGenerator"]);if("needle"===this.getBodyShapeName(a)&&b.coordPrev)return{needle:{from:b.coordPrev,to:b,gen:function(b){return c("needle",b)}}};if("circular"===this.series.ctSv("gaugeType")){var d=Mb(b.arc.cxy,b.xyz),g=b.coordPrev;return{xlat:{from:b.coordPrev,to:b,fn:function(a){var c=g.xyz,e=b.xyz,f=c[0];c=c[1];e=[f+(e[0]-f)*a,c+(e[1]-c)*a];f=g.arc.angle;a=pa(b.arc.cxy,f+(b.arc.angle-f)*a,d);return[a[0]-
e[0],a[1]-e[1]]}}}}}return{}};a.prototype.renderDebug=function(b,a,c){};a.prototype.isHoriz=function(){var b=this.series;return(b.pane||b.chartArea).isHoriz};a.prototype.renderLabel=function(b,a,c,f,g){Nz(this,b,a,c,f,g)};a.prototype.initPointLabel=function(b,a,c,f){var d=this.series,e=a.meta,k=b.visuals,l=this.kind,m=(d.pane||d.chartArea).collisionManager,n=d.info.style.base,p=d.renderer,q=d.rootVisuals,r=d.info.type,u=this.isHoriz();if(!e.labelSize){d=J(b.currentOptions,["label","text"])||d.info.labelTextInfo.label;
"function"===K(d)&&(d=d(b)||"");d=b.replaceTokens(d);e.labelText=d;b=uc(c.label,"pie"===l?["offset"]:void 0,n);l={};b.autoWrap="none";b.val=d;if(d=J(e,["label","bounds"]))this.collidePointBoxes?(l.width=d[2],l.height=d[3]):(l.maxWidth=d[2],l.maxHeight=d[3],l.width=null,l.height=null),l.x=d[0],l.y=d[1],kd(b,{xAlignment:"center",yAlignment:"middle"}),b.maxWidth=d[2],b.maxHeight=d[3],b.width=null,b.height=null;if(n=!k.label)k=k.label=p.textStack().attr(A({},b));else{p={};if(null===f||void 0===f?0:f.animation)p.animation=
la(f.animation);k=k.label.attr(A(p,b))}f=k.setPreliminarySize(!0).getBboxArray().slice(2);p=10<=Math.max(f[0]-l.maxWidth,f[1]-l.maxHeight);n?p?(q=this.wrapLabel(k,l,c).add(q.points),f[0]=l.maxWidth,f[1]=l.maxHeight):q=k.attr(l).add(q.points):q=this.getLabelWrapper(k,c).attr(l);!r.drawRect&&"ohlc"!==this.kind||u||(this.isRadial?(a=a.pathOptions,r=(a.innerR+a.r)/2,a=Mb(Lb(a.cxy,a.start,r),Lb(a.cxy,a.end,r))):a=a.rect.width,f[0]>a&&(m.anyColLabelOverflow=!0));!J(c,["label","autoHide"])&&e.shape&&(c=
!u||m.anyColLabelOverflow,m=e.shape[2],u=e.shape[3],a=c?m/f[1]:u/f[1],r={fitWidth:null,fitHeight:null},.5<a&&(a=Math.floor(100*a)/100,1>a&&(f[0]*=a,f[1]*=a),c&&(r.fitHeight=m),!c&&(r.fitHeight=u)),q.attr(r));this.collidePointBoxes||(l.width=d[2],l.height=d[3],l.maxWidth=null,l.maxHeight=null,q.attr(A({},l)),e.labelTextBox=[0,0,Math.min(d[2],f[0]),Math.min(d[3],f[1])]);delete b.width;delete b.height;e.labelAttr=b;e.labelSize=d?[d[2],d[3]]:f;e.labelInternalSize=f}return this};a.prototype.wrapLabel=
function(b,a,c){return b.attr(a)};a.prototype.getLabelWrapper=function(b,a){return J(a,["label","wrapped"])?b.parent.parent:b};a.prototype.possibleLabelPositions=function(b,a,c,f,g){return Oz(this,b,a,c,f,g)};a.prototype.getBodyShapeName=function(b,a){return this.series.getPointMarkerType(b.currentOptions)};a.prototype.updatePointsGlobals=function(){var b=this.series.pane;return this.pointsGlobals=b?b.getGlobalOffsets():void 0};a.prototype.setCoordinates=function(b,a){function c(b,a){void 0===a&&
(a={xIsSorted:!0,isFinal:!1});var c=a.isFinal,e=a.xIsSorted,f=J(h.currentOptions,["line","tension"]);f=t(f)?ua(T(.7,1,0,1,f),0,1):.8;var g={spline:function(b){return[Gx(b,f)]},step:r?function(b){return fb(b)}:function(b,a){return Fx(b,a,!e)},normal:function(b){return fb(b)}}[P?"spline":aa];if(R.drawLine||R.drawArea){a=[];var k=function(b,a,c){void 0===c&&(c=!1);if(c)return wa(g(b))+"Z"+wa(g(a))+"Z";a.reverse();b.push.apply(b,G(a));return wa(g(b))+"Z"};B.length&&(B=d?d(B):B,K.push(B),b=b||0<M.length,
R.drawLine&&(r?c&&(a=K.slice(0),1===K.length?L.push(wa(g(B,O))+(b?"":"Z")):(b=a[a.length-1].slice(0),b.push.apply(b,G(a[0])),b=wa(g(b,O)),L.push(b),2<K.length&&(b=K.slice(1,K.length-1),x(b,function(b){L.push(wa(g(b,O)))})))):1<B.length&&L.push(g(B,O))),R.drawArea&&(r?(Qb.push({s:H,e:B}),c&&(M=[],1===Qb.length?(H=d?d(H):H,M.push(k(H,B,!0))):(b=Qb[Qb.length-1],c=b.s.slice(0),b=b.e.slice(0),a=Qb[0].s,b.push.apply(b,G(Qb[0].e)),c.push.apply(c,G(a)),M.push(k(c,b)),2<Qb.length&&(c=Qb.slice(1,Qb.length-
1),x(c,function(b){M.push(k(b.s,b.e))}))))):(H.reverse(),H=d?d(H):H,a=[g(B,O)],a.push(g(H,!O).join(" ").replace(/M/gi,"L")),M.push(wa(a)+"Z"))))}B=[];H=[]}var d=a?a.coordinatesCorrection:null,g=this,h=g.series,k=h.currentOptions,l=h.indexer,m=h.pane,n,p,q=h.chartArea.isZoomLive();if(t(g.lastRenderVisibility)&&!g.lastRenderVisibility&&!h.isVisible)return g;var r=m?m.isRadial:!1,u=h.indexer.data.coordinates||h.prevCoords;u&&(u=u.slice(0));var y=b.x,v=b.y,w=b.width,E=b.height,I=h.ctManager,D=h.info,
R=D.type,C=h.userPoints,V=h.points().items,aa=I.settingVal("lineSeriesType",k),N=J(k,["emptyPointMode"])||"undefined",B=[],H=[],K=[];a=[];var Qb=[],L=[],M=[],O=g.isHoriz(),P=I.isType("map")&&"line"===R.seriesType&&"spline"===aa||I.isType("radar")&&m&&"polar"===m.getRadarType()&&"line"===R.seriesType,U=J(m,["projection","val2linxy"]),Q=O?b.height:b.width;r&&(Q=1,g.isRadial=!0);m=m?m.xAxis:h.xAxis;I=m.clusterCounts[h.type];var Da=t(I);I=z(I,1);var X=m.getShortestDistPerc(),Zm=X*Q,W=m.currentOptions.spacingPercentage,
Z=Zm*W;if(1<=Z||r)Zm-=Z;var Y=z(m.currentOptions.staticColumnWidth,Zm),S=Y/I;"column"!==k.type||r||(S=Math.max(S,5));var da=Y/I;r||(S=sa(S),da=sa(Y/I));m=z(h.clusterIndex,1);var ea=-(S*I)/2+S*m;Z=X*W;var ba={xLength:1,clusterWidth:X-(1<=Z?Z:0)};A(ba,{thisWidth:ba.clusterWidth/I});A(ba,{unclusteredWidth:ba.clusterWidth/I,clusterOffset:-(ba.thisWidth*I)/2+ba.thisWidth*m});I=function(b){return"string"===typeof b&&-1<b.indexOf("%")?parseInt(b)/100*Math.min(w,E):b};var fa=function(b,a){var c;if(c=n[b])p[b]=
ta.apply(void 0,G(c)),a&&Gb(a)&&(p[b]=a.apply(void 0,G(p[b])))},ia=function(b){var a;if(a=n[b]){var c=p[b]=[];x(a,function(b){c.push(ta.apply(void 0,G(b)))})}},ja=l.hasAllKeys("ys,ye"),ca=l.hasAllKeys("xs,xe");m=h.ctManager.settingVal("bubbleSizingType",h.options());var la=I(J(k,["size","max"]))||50,ma=I(J(k,["size","min"]))||5,na=go(la/2),qa=go(ma/2);l.indexKeys(["coordinates","bbox"],{},0);var oa=function(b,a){return[y+b*w,v+a*E]};W=function(b,a){return[ca?b:ba.clusterOffset+ba.thisWidth/2+b,a]};
var ra=function(b){return ca?b:ba.clusterOffset+ba.thisWidth/2+b};I=function(b,a){return[b,ca?a:ea+S/2+a]};var pa=function(b,a,c){U&&(a=F(O?U(a,b,c):U(b,a,c),2),b=a[0],a=a[1]);b=oa(b,a);r&&(t(c)||(c=.9),b.push(w/2*c));return b};m={column:r?W:function(b,a){return[ca?y+b*w:y+ea+S/2+b*w,v+a*E]},marker:r?pa:oa,bubble:"width"===m?function(b,a,c){b=pa(b,a);b.push(T(ma,la,0,1,c));return b}:function(b,a,c){b=pa(b,a);b.push(2*Math.sqrt(T(qa,na,0,1,c)/Math.PI));return b}};m.ohlc=m.column;O&&(m.column=r?I:function(b,
a){return[y+b*w,ca?v+a*E:v+ea+S/2+a*E]});m.variwide=m.column;var ta=m[h.type]||m.marker;W=function(a,d){d=[];var e={};if(l.getValue("isEmpty",a))return"ignore"!==N&&c(!0),"continue";n=l.getValue("pos",a);p={width:Da?S:void 0,unclusteredWidth:da,clusterSpace:X*Q,meta:e};g.clearPrevCoord(l.getValue("coordinates",a));l.setValue("coordinates",a,p);var f=r&&R.drawRect?pa:void 0;fa("xyz",f);fa("xyzs",f);var m=p.xyzs;f=p.xyz;var v=m[1]-f[1],w=S;if(r){var y=g.series.pane.angleArc();p.arc={angle:T(y.start,
y.end,0,1,n.xyz[0]),cxy:va(ha(b))}}e.xy=f;y=void 0;var E=ca?m[0]:f[0]-S/2,I=ca?f[0]-m[0]:S,A=void 0;r&&(v=n.xyzs[1]-n.xyz[1],E=ca?n.xyzs[0]:n.xyz[0]-S/2,A=ca?n.xyzs[0]:n.xyz[0],I=ca?n.xyz[0]-n.xyzs[0]:w);if(Da)if(r){if(O){if(v=p.rectPos={y:ca?n.xyzs[1]:ra(n.xyz[1]-S/2),x:n.xyzs[0],width:n.xyz[0]-n.xyzs[0],height:S,ccw:n.xyzRDesc[1]},n.xyzRDesc[1]&&ka(C[a].y)){w=void 0;for(0>v.width?w=v.x+v.width:0<v.width&&(w=v.x,v.x+=v.width);w<v.x;)w+=1;v.width=w-v.x}}else v=p.rectPos={x:ra(A)-S/2,y:n.xyz[1],width:I,
height:v};p.arcPos={start:v.x,end:v.x+v.width,angle:v.x+v.width/2}}else O?(y=ca?m[1]:f[1]-S/2,w=ca?f[1]-m[1]:S,v=m[0]-f[0],y={y:y,x:f[0],width:v,height:w}):y={x:E,y:f[1],width:I,height:v},y=kp(y),e.shape=ha(y);t(E)&&I&&(p.rect=y,R.drawRect&&D.hasComplete&&(E=n.completee-n.completes,I=n.completeXe-n.completeXs,r?(v=p.rectPos,p.rectCompletePos=O?{x:T(v.x,v.x+v.width,0,1,n.completes),y:T(v.y+v.height,v.y,0,1,n.completeXe),width:E*v.width,height:I*v.height,targetBox:ha(b)}:{x:v.x+n.completeXs*v.width,
y:v.y+(1-n.completee)*v.height,width:I*v.width,height:E*v.height,targetBox:ha(b)}):p.rectComplete=O?{x:T(y.x,y.x+y.width,0,1,n.completes),y:T(y.y+y.height,y.y,0,1,n.completeXe),width:E*y.width,height:I*y.height}:{x:y.x+n.completeXs*y.width,y:y.y+(1-n.completee)*y.height,width:I*y.width,height:E*y.height}),y&&d.push([y.x,y.y,y.width,y.height]));B.push(f);P&&n.interpPoints&&x(n.interpPoints,function(b){B.push(ta.apply(void 0,G(b)))});R.drawArea&&H.push(m);D.hasSubvalues&&!r&&(x(["sv","svs","svx","svxs"],
fa),x(["svv","svxv"],ia));h.coordinatesModifier&&h.coordinatesModifier(g,p);m=(p.styleSet=q?u[a].styleSet:h.getPointAttr(h.userPoints[a])).markerSize;y=J(k,["defaultPoint","marker","visible"])||!0===J(C[a],["marker","visible"]);if(R.drawMarker||k.forceMarker||y)if(D.hasMaxedMarkerLimit&&!y&&(m=0),g.isRadial&&"needle"===g.getBodyShapeName(V[a])){if(!q){var aa=(e=h.pointBodyDGenerator)&&e("needle",p),F;p.hitTest=function(b,a){F=F||Ca(aa);return F.hitTest(b,a)}}}else e.marker=ob(f,[m,m]),e=e.marker.slice(0),
f=void 0,(f=0===a||a===C.length-1?J(Vl(g.series,a),["marker","offset"]):z(J(C[a],["marker","offset"]),J(k,["defaultPoint","marker","offset"])))&&(f=bs(f))&&(e=Hc(e,f)),d.push(e);if(!R.isRadarColumn&&d.length&&!q){d=Ha(d);var K=15>d[2]||15>d[3]?Bh(d,[15,15]):d.slice(0);ja&&!R.isRadar&&(K=Rv(K,[p.xyzs]),!R.drawRect&&t(Y)&&(e=.8*Y,K=Bh(K,O?[0,e]:[e,0])));p.pathD=Gc(K);e=z(C[a].mouseTracking,J(k,["defaultPoint","mouseTracking"]));if(!t(e)||!0===e){var Ga=g.getLabelHitTest();p.hitTest=function(b,a){return Cd(K,
[b,a])||Ga(this,b,a)}}l.setValue("bbox",a,d)}};m=0;for(I=C.length;m<I;m++)W(m);c(null,{isFinal:!0,xIsSorted:h.info.xIsSorted});g.paths={lines:L,areas:M};g.coordinates.line=K;R.drawArea&&(g.coordinates.area=a);g.coordRect=b;g.validate(!0);if(u)for(m=0,I=V.length;m<I;m++)if(a=h.indexer.getValue("coordinates",m))a.coordPrev=g.clearPrevCoord(u[m]);g.renderOrder=l.sortByNone();g.renderOrderRev=g.renderOrder.slice(0);g.renderOrderRev.reverse();return this};a.prototype.clearPrevCoord=function(b){var a=b&&
b.coordPrev;a&&(a.prevCoord&&(this.clearPrevCoord(a),a.prevCoord=void 0),a.pathD&&(a.pathD.clearCache&&a.pathD.clearCache(!0),a.pathD=void 0),a.hitTest=void 0,b.coordPrev=void 0);return b};a.prototype.setPos=function(b,a){};a.prototype.getShapeOptions=function(b,a){var c=this.series;a=c.pane||c.chartArea;c=c.currentOptions.shape;a.defaultShapeOptions&&(c=td({},c,a.defaultShapeOptions().ca));return Yr(c,b)};a.prototype.validate=function(b){this.coordDirty=b?!1:!0};a.prototype.hideUnused=function(){var b=
this.series,a=b.visuals;b=b.info.type;b.drawLine||b.tree||!a.line||this.hideVisual(a.line);!b.drawArea&&a.area&&this.hideVisual(a.area);return this};a.prototype.hideVisual=function(b){b&&(b.finishAnimation&&b.finishAnimation(),b.attr({opacity:0}))};a.prototype.hideUnusedPointVisuals=function(b){};a.prototype.render_applyDynamicAttrVals=function(b,a,c){var d=this.series;c=c||d.info.style.states[d.state]||{};if(b.pop&&1<b.length){for(var e=A({},b[0]),h=1,k=b.length;h<k;h++)e=vm(e,b[h]);b=e}e=b.animation?
b.animation:{};b.animation=a&&a.animation?A({},d.getAnimationConfig(),a.animation||{},e):!1!==a?A({},d.getAnimationConfig(),e):A({},{duration:0},e);d.isVisible?(b.opacity=z(b.opacity,c.opacity,1),b.display="block"):(b.opacity=0,b.display="none");return b};a.prototype.render_applyDynamicAttrValsLE=function(b,a,c){b=this.render_applyDynamicAttrVals(b,a,c);b.opacity=1;b.display="block";return b};a.prototype.getPointIconVisual=function(b,a,c){return this.getIconVisual(b,a,c)};a.prototype.getIconVisual=
function(b,a,c){var d=this,e=d.series,h=e.renderer,k=c.iconVisual||{},l=d.getIconPaths(b,a),m;a=function(a,f){"string"===typeof l[a]&&0===l[a].indexOf("url(")?(m=l[a].replace(/url\(/g,"").replace(/\)/g,""),f={src:m,cx:b[0]/2,cy:b[1]/2,zIndex:5,width:b[0],height:b[1]}):f=d.render_applyDynamicAttrValsLE([{d:l[a],opacity:1,zIndex:f},{}],{animation:e.getAnimationConfig()},{});(k[a]=k[a]||(m?h.renderer.element("image",f).add(n):h.renderer.path(f).add(n))).attr(f);c.icons[a]=f.d};var n=k.root=k.root||h.panel({yAlignment:"center"});
l.base?a("base",2):Ua(k.base);l.extra?a("extra",1):Ua(k.extra);return k};a.prototype.getIconPaths=function(b,a){return Ki(this,b,a)};a.prototype.getIconStyles=function(b){return as(this)};a.prototype.setIconVisualAttr=function(b,a){var c=this,d=c.series,g=c.getIconStyles(b),h;if(b)var k=b.base,l=b.extra;b=function(b){var e={animation:a.isStyled?d.getAnimationConfig():!1};h=c.render_applyDynamicAttrValsLE(b,{},{});h=A(h,e);!1===d.isVisible&&(c.modifyHiddenIconStyle(h),delete h.display,delete h.opacity);
return h};if(g.base&&k){var m=b(g.base),n=a.icons.base;n&&(m.d=n);k.attr(m)}g.extra&&l&&l.attr(b(g.extra));a.isStyled=!0};a.prototype.modifyHiddenIconStyle=function(b){var a=b.fill;!1===this.series.isVisible&&(b.fill&&(a=fp(a,.8),a=se(a,"v",-.2),a=qa(a),b.fill=a),b.stroke&&(b.stroke=fp(b.stroke,.2)),1<b["stroke-width"]&&(b["stroke-width"]=1));return b};a.prototype.showHalo=function(b){var a=this.series,c=a.chartArea,f=ha(c.contentRect),g=a.visuals,h=a.renderer;if(b&&!a.indexer.getValue("isEmpty",
b._i)){var k=b.currentOptions.focusGlow;if(!1!==k){var l=k?M(pu(),k):pu();l.width=t(l.width)?2*l.width:l.width;xb(l.color,"%")&&(l.color=b.replaceTokens(l.color));Jd(l)&&(k=ic({outline:l}),A(k,{d:wa(this.haloPath(b,l)),"stroke-linejoin":"round","pointer-events":"none",zIndex:1}),b=b.visuals.body,c.panes&&b&&(f=sb(Ha([f,ha(b.box())]),-10)),k.clipPath={d:Gc(f)+k.d,"clip-rule":"evenodd"},f=la(k),f["stroke-opacity"]*=.4,k["stroke-width"]*=.6,a.haloPath=k.d,c=g.pointHalo||[],c.length||(c=g.pointHalo=[h.renderer.path().add(a.rootVisuals.pointHalo),
h.renderer.path().add(a.rootVisuals.pointHalo)]),c[0].attr(k),c[1].attr(f))}}else c=g.pointHalo||[],c.length&&x(c,function(b){return b.attr({d:"M0 0"})}),a.haloPath=""};a.prototype.hideHalo=function(){this.showHalo()};a.prototype.hideHaloMo=function(){var b=this.series,a=b.xAxis;b=b.chartArea.tooltip.cttEnabled(b.yAxis,a);a=a&&(a.currentOptions.crosshair||{}).enabled;b||a||this.hideHalo()};a.prototype.haloPath=function(b,a){var c=this.series;a=a.width;var d=c.indexer.getValue("coordinates",b._i);
c=c.info.hasMaxedMarkerLimit;var g=d&&z(d.pathD,d.pathObj,d.meta.bodyD),h="string"===typeof g&&-1<g.indexOf("url("),k=g.arcShape,l=!h&&aq(g);if(k)return b.visuals.body.attrApplier.outlinePath();if(h)return Gc(ha(b.visuals.body.box()));if(l||c)b=d.meta.xy||d.xyz,g=sc.circle(b[0]-a/2,b[1]-a/2,a,a);return g};a.prototype.pointMouseOver=function(b,a){var c=this.series,d=c.chart,g=d.hoveredPoint===a&&this.hoveredItem===a;J(d.hoveredPoint,["series"]);c.chartArea.debounce.clear("unmute");(this.hoveredItem=
a)&&a.mouseOver(b);var h=c.translateToGlobal([b.x,b.y]),k;c.pane&&(k=c.pane.getGlobalOffsets());if(!1===J(d.currentOptions,["defaultTooltip","enabled"])&&a.labelAutoHidden){var l;(l=a.visuals.label)&&l.attr({opacity:1}).refresh()}!c.chartArea.tooltip.cttEnabled(c.yAxis,c.xAxis)&&c.tooltip.showTooltip(a,b,h,k);a&&!g&&this.showHalo(a);a&&!g&&((b=Yl(a))?Zl(a,"",b):("select"!==c.state&&c.setState("hover"),a.chart.highlighted&&Tb(a.chart,a)))};a.prototype.pointMouseOut=function(b,a){var c=this.series,
d=c.chart;c=c.chartArea;this.hoveredItem=void 0;!1===J(d.currentOptions,["defaultTooltip","enabled"])&&a.labelAutoHidden&&(d=void 0,(d=a.visuals.label)&&d.attr({opacity:0}).refresh());b=a&&a.mouseOut(b);this.hideHalo();!1!==b&&a&&!1!==J(a.currentOptions,["states","mute","enabled"])&&c.debounce.defer("unmute",function(){Tb(a.series.chart)},230)};a.prototype.pointClick=function(b,a){a&&a.click(b)};a.prototype.pointMouseOutAny=function(){var b;if(b=this.hoveredItem)return"select"!==this.series.state&&
this.series.setState(""),this.pointMouseOut({},b),!0};return a}(LD),Sc={marker:Oe},UD=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.staticSeriesBodyInfo=[Yz,Vr];b.kind="area";return b}L(a,c);a.prototype.contextDefaults=function(){};a.prototype.hideUnusedPointVisuals=function(b){b=b.visuals;Ua(b.marker);Ua(b.labelConnector);Ua(b.rectComplete);Ua(b.rect)};a.prototype.getIconPaths=function(b,a){var c=b[0],d=b[1];b=Wr(this,b,a);b.extra+=" L "+c+" "+d+" L0 "+d+" Z";return b};
a.prototype.getIconStyles=function(b){var a=this.series.info.style.attr;b=c.prototype.getIconStyles.call(this,b);a=A(b,{extra:a.area});b=a.extra;b.fill&&!b.stroke&&(b.stroke=kg(b.fill));return a};return a}(Oe),ru=function(){return{axes:"x,y",values:"x,y",requiredData:"x,y",supportedData:"x,y,subvalue,subvalueX,complete,completeX",privateAxes:"",customAxisOptions:{}}},ch=function(c){function a(b){var a=c.call(this,b)||this;a.series=b;a.kind="column";a.typeConfig=ru();a.staticBodyDGetter=am;a.staticPointCompleteVisInfo=
aA;a.staticPositionsFromAligments=Zz;a.connectorVisuals=[];a.connectorAttrs=[];a.connectorAttrsHL=[];return a}L(a,c);a.prototype.buildChildLookup=function(){this.series.chartArea.buildChildLookup()};a.prototype.getChildren=function(b){this.buildChildLookup();return this.series.chartArea.childLookup[b.currentOptions.id]||[]};a.prototype.getTypeConfigDefault=function(){return ru()};a.prototype.render=function(b){c.prototype.render.call(this,b);return this};a.prototype.setCoordinates=function(b,a){C(this,
"series.pane.isRadial")&&(this.isRadial=!0,this.staticBodyDGetter=this.series.pane.staticBodyDGetter,this.staticPositionsFromAligments=this.series.pane.staticPositionsFromAligments);c.prototype.setCoordinates.call(this,b,a);return this};a.prototype.getParents=function(b){var a=this,c=[],f,g=[];if(b){if(f=b.options("parent"))g=Li(f);return B(g,function(b){return a.series.ciManager.exists(b)})}this.eachPoint(function(b){(f=b.options("parent"))?(g=Li(f),!a.series.ciManager.exists(g[0])&&c.push(b)):c.push(b)});
return Ia(c)};a.prototype.renderHierarchy=function(b){var a=this.series,c=this.isHoriz(),f=a.indexer,g=a[(c?"x":"y")+"Axis"].isInverted()?1:0,h=function(b,a,d){void 0===d&&(d=3);var e=function(b,a,c){return ma(b,a)>ma(b,c)?c:a},f=$b(a.meta.shape),h=b.xyz.slice(0,2),k=a.xyz.slice(0,2),l=c?1:0,m=c?0:1,n=h[l]<k[l]?1:-1,p=h[l];k=k[l];var t=ma(p,k)-a.clusterSpace/2,x=ma(p,e(p,f[l],f[l+2])),z=b.xyz[m];b=a.xyz[m];var V=a.xyzs[m],A,N=[A=h],C=function(b,a){var c=A.slice(0);c[b]=a;N.push(A=c)},B=ta([V,b]),
G=5*g;a=z+G;e=e(A[m],B[0],B[1]);h=A[m]-e;b=0<h?-1:1;f=function(b){void 0===b&&(b=1);C(m,z+G/b);C(l,p+t*n);C(m,ua(V+G/b,B[0],B[1]));C(l,p+x*n)};Nb(B,a)&&b!==g?f(1):Nb(B,a)?(C(m,a),C(l,p+x*n)):0===h?f(1.5):b===g?(C(m,e-G),C(l,k),C(m,V)):b!==g&&f(1);return Nc(N,d)},k=[],l=function(b,c){if(c.length){var d=f.getValue("coordinates",b._i);x(c,function(c){if(c){var e=a.ciManager.exists(c.pid);if(e&&e.series.isVisible){var f=e.series.indexer.getValue("coordinates",e._i),g=A({color:"#494949",width:1,caps:{end:{type:"arrow",
size:4,concavity:.005}}},e.series.options("line")||{},b.options("connectorLine")||{},c.line);c.zIndex=5;c=A(wb(g),{d:h(f,d,g.radius),key:b.id+"-"+e.id,zIndex:z(c.zIndex,5)});k.push(c)}}})}return[]};this.eachPoint(function(b){return l(b,ds(b))});this.updateDeps(k,b);return this};a.prototype.updateDeps=function(b,a){var c=this,d=c.series.renderer.renderer,g=c.series.rootVisuals.area;b=J(a,["preserveNoodleAttrs"])?B(b,function(b){return c.render_applyDynamicAttrVals(b,a)}):c.connectorAttrs=B(b,function(b){return c.render_applyDynamicAttrVals(b,
a)});if(null===a||void 0===a?0:a.animation)b=b.slice(0),b=b.map(function(b){b=la(b);b.animation=a.animation;return b});var h=c.connectorAttrsHL;h.length&&(b=b.map(function(b){var a=P(h,function(a){return a.key===b.key});return a?A({},b,a):b}));b&&t(b.length)&&Xb(b,c.connectorVisuals,function(b){var a=d.path(la(b)).add(g);a.data.key=b.key;c.connectorVisuals.push(a)},function(b,a){return a.attr(la(b))},function(b){g.removeChild(b.el);jb(c.connectorVisuals,b);b.destroy()},function(b){return b.key},function(b){return b.data.key});
return c};a.prototype.styleLines=function(b,a,c){return fs(this,b,a,c)};a.prototype.resetLines=function(b){var a=this,c=a.connectorAttrs.slice(0);if(b){var f=[],g=a.series.renderer.renderer,h=a.series.rootVisuals.area,k=function(b){var d=c[b],e=a.connectorVisuals[b];h.removeChild(e.el);e.destroy();e=g.path(A(la(d),{animation:{duration:0}})).add(h);e.data.key=d.key;a.connectorVisuals[b]=e;a.connectorAttrsHL.length&&(b=P(a.connectorAttrsHL,function(b){return b.key===d.key}))&&jb(a.connectorAttrsHL,
b)};b.forEach(function(b){var c=Od(a.connectorAttrs,function(a){return a.key===b});-1<c?k(c):f.push(b)});return f}a.connectorAttrsHL=[];this.updateDeps([],{animation:{duration:0}});this.updateDeps(c,{animation:{duration:0}})};a.prototype.styleLine=function(b,a){var c=b.key,d=this.connectorVisuals,g=this.connectorAttrs,h=Od(g,function(b){return b.key===c});if(d=d[h])b=A({},g[h],b),b=this.render_applyDynamicAttrVals(b,a),a&&(a=J(a,["animation"]))&&A(b,{animation:a}),d.attr(b)};a.prototype.getBodyShapeName=
function(b,a){return a?this.series.getPointMarkerType(b.currentOptions):"square"};a.prototype.hideUnusedPointVisuals=function(b){var a=b.series.options("forceMarker")||!0===C(b.currentOptions,"marker.visible");b=b.visuals;!a&&Ua(b.marker);Ua(b.labelConnector)};a.prototype.possibleLabelPositions=function(b,a,c,f,g){c=this.series;a=f.meta;var d=b.currentOptions.label||{},e=c.chartArea;e=(c.pane||e).collisionManager;c=this.isHoriz();var l=d.rotate;d=!c&&e.anyColLabelOverflow;e=ha(this.series.contentRect());
a=a.labelSize.slice(0);t(l)&&(d=!1,90===Math.abs(l)?d=!0:0!==l&&(a=tk(G([0,0],a),[l,0,0]).slice(2)));d&&(f.meta.isVertical=!0,a.reverse());g=this.isRadial?g.getValue("pos",b._i):f;g=c?g.xyz[0]>g.xyzs[0]?"r":"l":g.xyz[1]>g.xyzs[1]?"d":"u";b=RD(this,b,g);return this.staticPositionsFromAligments(this,f,g,e,a,b,d)};a.prototype.getIconPaths=function(b,a){return $l(this,b,a)};a.prototype.getIconStyles=function(b){b=this.series;var a=b.info,c=b.getPointAttr(),f=as(this);if(a.hasUniqueStyles||a.type.colorByPoint)b=
c.pointAttr[""],Dc(f,b,"base.hatch","hatch"),Dc(f,b,"base.hatchPattern","hatchPattern");else if(f=A(f,{base:c.pointAttr[""]}),a=f.base.fill,c=a.linearGradient){var g=c.hash;c=a.linearGradient=Ma(90);c.hash=g+"LE"+b.isVisible}return f};a.prototype.getPointAnimatorOptions=function(b,a){return(a=this.series.pane)&&a.isRadial&&b.coordPrev?"spider"===a.getRadarType()?{}:{slice:{to:b.pathOptions,from:b.coordPrev.pathOptions}}:{}};return a}(Oe),VD=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||
this;b.kind="line";b.staticSeriesBodyInfo=[Vr];return b}L(a,c);a.prototype.contextDefaults=function(){};a.prototype.render=function(b){c.prototype.render.call(this,b);return this};a.prototype.hideUnusedPointVisuals=function(b){b=b.visuals;Ua(b.marker);Ua(b.labelConnector)};a.prototype.getIconPaths=function(b,a){return Wr(this,b,a)};a.prototype.getIconStyles=function(b){var a=this.series,e=A({},a.info.style.attr),f=c.prototype.getIconStyles.call(this,b),g=Math.max.apply(Math,G(a.chartArea.series(function(b){return b.info.type.drawLine}).items.map(function(b){return J(b.currentOptions,
["line","width"])||0}))),h=1,k=function(b,a){void 0===a&&(a=h);return b?Math.max(1,b*a):b};a=function(b,a){void 0===a&&(a=h);return Math.round(k(b,a))};4<g&&(h=4/g);if(g=e.line["stroke-width"])if(e.line["stroke-width"]=a(g),a=void 0,2<g&&(a=e.line["stroke-dasharray"])){g=a.split(",").map(function(b){return parseInt(b)});g=Wa(g);b=Ca(b.extra.data.attrs.d).length();var l=h;l=Math.min(l,b/(2.2*g));e.line["stroke-dasharray"]=a.split(",").map(function(b){return k(parseInt(b),l)}).join(",")}return A(f,
{extra:Ka(e.line,["caps"])})};return a}(Oe),su=function(){return{axes:"x,y",values:"x,open,high,low,close"}},WD=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.kind="candlestick";b.typeConfig=su();b.pointValueParser=cA;b.staticBodyDGetter=am;return b}L(a,c);a.prototype.getTypeConfigDefault=function(){return su()};a.prototype.pointArrayExpander=function(b){return{x:b[0],open:b[1],high:b[2],low:b[3],close:b[4]}};a.prototype.hideUnusedPointVisuals=function(b){b=b.visuals;Ua(b.rect);
Ua(b.marker);Ua(b.labelConnector)};a.prototype.getIconPaths=function(b,a){var c=b[1]/2,d=b.slice(0),g=Math.round(.4*b[0]),h=g/2;d[0]-=g;var k=$l(this,d,a);x(k,function(b,a){b=b.isPath?b:Ca(wa(b));k[a]=b.translate(function(b){return[b[0]+h,b[1]]})});k.extra="M0 "+c+" L "+h+" "+c;k.extra+="M"+(b[0]-h)+" "+c+" L"+b[0]+" "+c+" ";return k};a.prototype.getIconStyles=function(b){b=this.series.info.style.base.color;return{base:{fill:b,stroke:da("outline",b),"stroke-width":1},extra:{fill:"none",stroke:da("outline",
b),"stroke-width":1}}};return a}(ch),tu=function(){return{axes:"x,y",values:"x,open,high,low,close",customAxisOptions:{z:{visible:!1}}}},XD=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.kind="ohlc";b.typeConfig=tu();b.pointValueParser=dA;b.staticBodyDGetter=eA;return b}L(a,c);a.prototype.getTypeConfigDefault=function(){return tu()};a.prototype.pointArrayExpander=function(b){return{x:b[0],open:b[1],high:b[2],low:b[3],close:b[4]}};a.prototype.hideUnusedPointVisuals=function(b){var a=
b.visuals;Ua(a.rect);!b.series.options("forceMarker")&&Ua(a.marker);Ua(a.marker);Ua(a.labelConnector)};a.prototype.getIconPaths=function(b,a){a=b[1]/2;var c=.3*b[0],d={extra:""};d.extra="M0 "+a+" L "+b[0]+" "+a;d.extra+="M"+c+" 0 L"+c+" "+a;d.extra+="M"+(b[0]-c)+" "+b[1]+" L"+(b[0]-c)+" "+a;return d};a.prototype.getIconStyles=function(b){return{extra:{fill:"none",stroke:da("outline",this.series.info.style.base.color),"stroke-width":1}}};return a}(ch),YD=function(c){function a(b){var a=c.call(this,
b)||this;a.series=b;a.kind="variwide";b.chart.typeContextOptions={axes:{x:{spacingPercentage:0,scale:{type:"stackedFull"}}}};return a}L(a,c);return a}(ch),uu=function(){return{axes:"x,y,z",values:"x,y,z",requiredData:"x,y,z",supportedData:"x,y,z,subvalue,subvalueX",customAxisOptions:{z:{visible:!1}}}},ZD=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.kind="bubble";b.typeConfig=uu();b.staticBodyDGetter=gA;return b}L(a,c);a.prototype.getTypeConfigDefault=function(){return uu()};
a.prototype.pointArrayExpander=function(b){return{x:b[0],y:b[1],z:b[2]}};a.prototype.setCoordinates=function(b,a){var d=this.series;c.prototype.setCoordinates.call(this,b,a);this.renderOrder=d.indexer.sortBy("z",!1)||d.indexer.sortBy("ze",!1);this.renderOrderRev=this.renderOrder.slice(0);this.renderOrderRev.reverse();return this};a.prototype.getIconPaths=function(b,a){return Ki(this,b,a,"circle")};a.prototype.possibleLabelPositions=function(b,a,e,f,g){a=a||f.pathD||f.meta.bodyD;var d=f.meta,k=f.xyz,
l=d.labelSize;a=Er(Ca(a),l,k);k=[];a?(a.isInside=!0,k.push(a)):(d.marker||(d.marker=[0,0,0]),d.marker[2]=f.xyzs[2],k=c.prototype.possibleLabelPositions.call(this,b,"",e,f,g));return k};a.prototype.hideUnusedPointVisuals=function(b){var a=b.visuals;Ua(a.rect);b.series.options("forceMarker")||b.options("marker.visible")||Ua(a.marker);Ua(a.labelConnector)};return a}(Oe);Sc.area=UD;Sc.column=ch;Sc.line=VD;Sc.candlestick=WD;Sc.ohlc=XD;Sc.variwide=YD;Sc.bubble=ZD;var hn,Eb,qj,rj=function(){return{radius:2,
shadow:!0,boxVisible:!0,fill:"auto",outline:{color:"auto",width:1},transparency:.2,enabled:!0,timeout:1200,margin:7,padding:5,followCursor:"auto"}},$D=function(c){return c.pop?c.map(function(a){return a.id}).join(""):c.id},vu=function(){function c(a){var b=this;this.series=a;this.kind="Tooltip";this.currentOptions=rj();this.moveTooltip=Xi(function(a,c,d){var e=b.chart.rootVisuals.tooltip;if(e){var f=e.rootPanel.el;f&&(a=b.position(a,b.targetPanel(),e.bbox(),c,!0,d).outBox,f.attr({animation:{duration:10},
transform:{translate:a.slice(0,2)}}))}},10);var c="Series"===a.kind?a.chartArea:a;this.chart=a.chart;this.curCA=c;this.chart.tooltipRef=this;this.currentOptions=A(rj(),c.currentOptions.defaultTooltip||this.chart.currentOptions.defaultTooltip||{});this.isVisible=!1;this.debounce=new He}c.prototype.options=function(a){a=Va(a);this.setOptions(a);return this};c.prototype.setOptions=function(a){this.currentOptions=A(rj(),this.curCA.currentOptions.defaultTooltip||this.chart.currentOptions.defaultTooltip||
{},a);return this};c.prototype.targetMetrics=function(a){var b=a.coord(),c=this.currentOptions.margin||0,e=C(b,"meta.label");a=a.bbox();4===C(b,"meta.marker.length")&&(a=Ha([a,b.meta.marker]));return{xyz:b.xyz,xyzs:b.xyzs,elBox:sb(a,-c),labelBox:e?sb(e,-c):e}};c.prototype.showTooltip=function(a,b,c,e){var d=this,g=this.currentOptions,h=this.debounce,k=this.isFollowCursor(a,b);a&&a!==hn&&!1!==g.enabled&&!0!==g.combined?(hn=a,h.clear("showtimeout"),h.clear("hidetimeout"),k?this.show(a,b,c,e):h.defer("showtimeout",
function(){return d.show(a,b,c,e)},20)):k&&this.moveTooltip(a,c,e)};c.prototype.isFollowCursor=function(a,b){var c=this.currentOptions;if("boolean"===typeof c.followCursor)return c.followCursor;if("touch"===b.device||c.combined||!a.series)return!1;a=a.series.info.type;return!a.isAnnotation&&(a.isShape||a.isMapLayer||a.tree)};c.prototype.hideTooltip=function(a){var b=this,c=this,e=this.series,f=this.debounce;a=z(a,this.currentOptions.timeout,1200);f.clear("showtimeout");f.clear("hidetimeout");hn=null;
if(!0!==e.options("mouseTracking.sticky")){var g=C(this.chart.rootVisuals,"tooltip.rootPanel.el");g&&f.defer("hidetimeout",function(){Eb===c&&(g&&g.attr&&g.attr({opacity:0,animation:{duration:40}}),setTimeout(function(){return b.hide()},40))},a)}};c.prototype.defaultAnimation=function(a){return{duration:a?0:40}};c.prototype.hide=function(){var a=this.chart.rootVisuals.tooltip;a&&a.isVisible&&(a.visible(!1),a.isVisible=!1,qj="",this.chart.renderer.refresh());Eb===this&&(Eb.debounce.clear("hidetimeout"),
Eb=void 0)};c.prototype.translateToGlobal=function(a){var b=this.series.translateToGlobal(a);4===a.length&&b.push.apply(b,G(a.slice(2,4)));return b};c.prototype.correctChartBox=function(a){a=this.translateToGlobal(a);a[0]=-a[0];a[1]=-a[1];return a};c.prototype.correctCABox=function(a){return this.series.correctRootBox(a)};c.prototype.targetPanel=function(){return this.series.rootVisuals.points};c.prototype.color=function(a){return a.tokenValue("%color")};c.prototype.text=function(a){var b=a.series;
b=z(C(a.currentOptions,"tooltip"),C(b.currentOptions,"defaultPoint.tooltip"),b.getAutoTooltipText(a),b.info.labelTextInfo.tooltip);return Gb(b)&&(b=b(a),Jb(b))?(oa.emit("warning",this.chart.id,"ttFnResultBad",{data:[b],container:this.chart.getWrapper()}),""):a.replaceTokens(b)};c.prototype.show=function(a,b,c,e){this.preShow();var d=this.chart,g=$D(a),h=(a.pop?a[0]:a).series;g+=h.id||h.currentOptions.name||h.currentOptions.id||"";var k=qj===g,l=this.targetPanel(),m=this.currentOptions;if(!k){h=d.rootVisuals.tooltip;
if(!k){var n=this.text(a),p=this.color(a),q=C(m,"outline.color");q=A({style:{"pointer-events":"none"}},m,{label:{text:n,align:this.chart.isRtlCulture?"right":"left",animation:{duration:0}},outline:{color:"auto"===q?da("outline",p):q}});q.margin=0;if(h){var r=h.isVisible;h.visible(!0);(d=h.rootPanel.el)&&d.attr&&d.attr({opacity:1})}else h=d.rootVisuals.tooltip=(new aE(d,A({asHTML:!1,autoWrap:"none"},q))).add(d.rootVisuals.front);h.options(q,!1);h.rootPanel.setPreliminarySize&&h.rootPanel.setPreliminarySize(!0)}d=
h.bbox();m=this.isFollowCursor(a,b);l=this.position(a,l,d,c,m,e);e=l.xy;l=l.outBox;k?h.options({position:e.join(",")}):(k=h.chart.rootVisuals.itemsBox.getGlobalBboxArray(),e=[l[0]-k[0],l[1]-k[1]],q=q.fill,d[3]&&(d=Kc(d),l=this.currentOptions,void 0===l&&(l={}),k=1-(l.opacity||1),l=t(l.radius)?l.radius/4+3:5,d=Math.round(l/d.height*100),p=Ob(p,k),p=kb(Ma(90),[["0%",p],["0%",p],[0+d+"%",ba("#f0f2fd",k)],[0+d+"%",ba("#ffffff",k)],[100-d+"%",ba("#ffffff",k)],[100-d+"%",ba("#e6e9fd",k)],["100%",p],["100%",
p]])),h.options({fillShading:!1,fill:"auto"===q?p:q,position:e.join(",")},r?{animation:this.defaultAnimation()}:{animation:this.defaultAnimation(!0)}),Eb=this,qj=g,this.postShow(a,b,c));qj=g}};c.prototype.position=function(a,b,c,e,f,g){var d="TooltipCa"===this.kind,k=!!this.series.pane,l=this.curCA.rootVisuals.content,m=J(this.chart.userOptions,["defaultTooltip","margin"]),n=this.currentOptions.margin;f&&!t(m)&&(n=20);if(f)g&&(e[0]-=g.x,e[1]-=g.y);else{var p=this.targetMetrics(a);if(!p)return{xy:[0,
0],outbox:c}}var q=p?p.xyz:e,r=p?p.xyzs:p;m=p?p.elBox:ob(q,[2*n,2*n]);var u=p&&p.labelBox?Ha([m,p.labelBox]):void 0,y=r&&q[0]!==r[0];ha(("chartArea"===this.series.kind?this.series.rootVisuals.content:this.series.chartArea.rootPanel).getGlobalBbox());var v=sb(ha(this.chart.rootPanel.getGlobalBbox()),0),w=this.correctCABox(ha(l.getGlobalBbox()));l=this.correctChartBox(ha(this.chart.rootPanel.getGlobalBbox()));var E=k?this.correctCABox(ha(this.chart.rootPanel.getGlobalBbox())):v,I=k?E:l.slice(0);k||
x(this.curCA._axes,function(b){if(b.isVisible){b=b.sideIndex();var a=$b(w);switch(b){case 0:I=nk(I,a[1]);E=nk(E,a[1]);break;case 1:I=ok(I,a[2]);E=ok(E,a[2]);break;case 2:I=pk(I,a[3]);E=pk(E,a[3]);break;case 3:I=mk(I,a[0]),E=mk(E,a[0])}}});b=od(b,y?[(q[0]+r[0])/2,q[1]]:q,1);b=[b[0]-c[2]/2,b[1]-c[3]-n];b=f?b:this.translateToGlobal(b);n=b.slice(0);n.push.apply(n,G(c.slice(2)));r="inCenter";q="outTop";if(m&&(d&&(this.curCA.isHoriz?(q=e[1]<l[3]/2?"outBottom":"outTop",r="inMiddle"):(r=e[0]<l[2]/2?"outRight":
"outLeft",q="inMiddle")),y=f?m:this.translateToGlobal(m),n=le(n,y,r,q).box,!d&&!f&&(y=(a[0]||a).series.visualizer,v=void 0,p&&p.labelBox&&(v=this.possiblePositions(a[0]||a,c,u,I,y)),v&&0!==v.length||(v=this.possiblePositions(a[0]||a,c,m,I,y)),0<v.length))){var D=!0;n=k?v[0]:this.translateToGlobal(v[0]);Uv(this.translateToGlobal(m),cd(n,E))&&(D="forced"!==v[0][4])}n=cd(n,E);m&&!d&&!D&&Cd(n,e)&&(q="outTop"===q?"outBottom":"inMiddle",a=n.slice(0),y=f?m:this.translateToGlobal(m),n=le(n,y,r,q).box,n=cd(n,
E),f&&Cd(n,e)&&(f=l[2]-e[0],e[0]>n[2]||f>n[2]?(r=e[0]>l[2]/2?"outLeft":"outRight",n=le(n,y,r,q).box,n=cd(n,E)):n=a));g&&(n[0]+=Math.round(g.x),n[1]+=Math.round(g.y));return{xy:b,outBox:n}};c.prototype.possiblePositions=function(a,b,c,e,f){a=a.series;var d=a.chartArea.collisionManager;f=a.yAxis;var h=a.isStacked,k=a.info.type,l=!1;k.drawRect||(l=!0);var m=function(b){return b.split(",").map(function(b){b=b.split("-");return{align:"out"+b[0],vAlign:"out"+b[1]}})},n=m("center-top,center-bottom,left-middle,right-middle");
l&&n.push.apply(n,G(m("left-top,right-top,left-bottom,right-bottom")));k.drawRect&&"horizontal"===a.ctSv("chartType")&&(n=n.map(function(b){return Rc(b,!0)}),f&&!f.isInverted()&&(n=n.map(function(b){return Rc(b)})));var p=function(b){return dd(e,b)};a=n.map(function(a){return le(G([0,0],b.slice(2)),c,a.align,a.vAlign).box});f=a.filter(p).filter(function(b){return p(b)&&h?!d.collideLabels(b):!d.collideAll(b)});if(!f.length){if(p(a[0]))return a[0].push("possible"),[a[0]];a[0].push("forced");f=[a[0]];
1<a.length&&p(a[1])&&(a[1].push("possible"),f.push(a[1]),f.reverse())}return f};c.prototype.preShow=function(){Eb&&Eb.chart!==this.chart&&Eb.hide();Eb=this};c.prototype.hideActiveTooltip=function(a){Eb&&(a?Eb&&a===Eb.chart&&Eb.hide():Eb.hide())};c.prototype.postShow=function(a,b,c){"touch"===b.device&&this.hideTooltip(8E3);this.isVisible=!0;this.chart.chartAreaSet.items[0].debounce.clear("clickoff");this.chart.tooltipRef=this};c.prototype.cttEnabled=function(a,b){var c=this.currentOptions,e=c.combined,
f=a.currentOptions.crosshair||{};a=b&&b.options("crosshair.enabled");f=f.enabled;if(c.enabled)return e?!0:t(e)?e:!0!==a||!b||f?!1:a};return c}(),bE=function(c){function a(b){var a=c.call(this,b)||this;a.chartArea=b;a.kind="TooltipCa";return a}L(a,c);a.prototype.color=function(b){return"#f0f0f0"};a.prototype.targetMetrics=function(b){var a=this,e=this.chartArea.isHoriz;b=ea(b,function(b){return!b.series.indexer.getValue("isEmpty",b._i)}).map(function(b){return c.prototype.targetMetrics.call(a,b)});
var f=b.map(function(b){return b.xyz});f.push.apply(f,G(b.map(function(b){return b.xyzs})));var g,h,k=function(b){var a=ta(f,function(a){return a[b]});g=a[0];h=a[a.length-1]};e?k(0):k(1);if(b.length)return{xyz:h,xyzs:g,elBox:Ha(b.map(function(b){return b.elBox})),labelBox:Ha(b.map(function(b){return b.labelBox}))}};a.prototype.translateToGlobal=function(b){var a=this.targetPanel().getGlobalBbox();a=[b[0]+a.x,b[1]+a.y];4===b.length&&a.push.apply(a,G(b.slice(2,4)));return a};a.prototype.correctCABox=
function(b){return b};a.prototype.targetPanel=function(){return this.chartArea.rootVisuals.content};a.prototype.defaultAnimation=function(b){return{duration:b?0:40}};a.prototype.text=function(b){var a=this;if(b.length){var e=iz(b),f=b[0].chart.options("defaultTooltip");f=C(f,"label.text")||"<b>%xValue</b><br>%points";var g=void 0;e.points=b.map(function(b){return c.prototype.text.call(a,b)}).filter(function(b){return O(b)&&b.trim().length}).join("<br>");g="function"===typeof f?f(b):f;return Ei(g,
e)}};return a}(vu),aE=function(c){function a(){return null!==c&&c.apply(this,arguments)||this}L(a,c);a.prototype.defaultOptions=function(){var b=C(this.chart.currentOptions,"defaultTooltip");return A(rj(),b)};a.prototype.triggerOptionsApplied=function(){};return a}(pj),wu=function(){return{mouseTracking:{sticky:!1},markerLimit:110,opacity:.9,defaultPoint:{}}},jn=function(c){return!1!==c.options("mouseTracking.enabled")&&!1!==c.options("mouseTracking")},kn=function(c){function a(b,a){var d=c.call(this,
b.chart,a,[b,a])||this;d.chartArea=b;d.kind="Series";d.isVisible=!0;d.legendEntries=[];d.isStacked=!0;d.visuals={panel:void 0,line:void 0,area:void 0,pointHalo:void 0,shapeLabels:void 0};d.zIndex=0;d.cpbIndexOffset=0;d._points=[];d.indexer=new Pl({svv:{flatten:!0},svxv:{flatten:!0}});d.userPoints=[];d.dataPoints=[];d.dirty=!0;d.state="";d.seriesDirty=new cE(d);d.chart=b.chart;d.renderer=b.renderer;d.ctManager=b.ctManager;d.initFP();a&&d.options(a,!1);d.tooltip=new vu(d);return d}L(a,c);a.prototype.init=
function(){for(var b=0;b<arguments.length;b++);};a.prototype.getCaSeriesPoints=function(){var b=this,a=this.chartArea.userOptions.series;if(a&&a.length)return(a=P(a,function(a){return a.name===b.name}))&&a.points};a.prototype.initFP=function(){var b=this;this.points=Qa(mb,function(){return b._points},function(a){b.options({points:a})},{push:function(a,c){var d=J(c,["shift"]);!0===d&&b.userPoints.shift();a.pop&&(a=b.visualizer.pointArrayExpander(a));b.userPoints.push(a);var e=b.getCaSeriesPoints();
e&&e.push(a);b.visualizer.updateInfo={action:"splice",at:b.userPoints.length-1,count:1,del:0,shift:d};b.chart.renderer.finishAnimations();b.invalidate().refresh(c);b.visualizer.updateInfo=void 0},splice:function(a,c,f,g){var d;(d=b.userPoints).splice.apply(d,G([a,c],f));(d=b.getCaSeriesPoints())&&d.splice.apply(d,G([a,c],f));b.visualizer.updateInfo={action:"splice",at:a,del:c,count:f.length};b.chart.renderer.finishAnimations();b.invalidate().refresh(g);b.visualizer.updateInfo=void 0}})};a.prototype.syncLegendItems=
function(){var b=this,a=this,c=a.info.type.colorByPoint,f=a.chartArea,g=a.chart,h=a.currentOptions.legendEntry||{},k=a.legendEntries,l=g.requestLegend(this),m=a.ctmIsType("map"),n=function(){a.legendEntry?a.legendEntry.setColumns():a.legendEntry=l.addEntry(b,a._i)},p=function(){a.legendEntry&&(a.legendEntry.destroy(),a.legendEntry=void 0)},q=function(b){b.syncLegendItems(a.legendEntry);b.legendEntry&&(k.push(b.legendEntry),b.legendEntry.setColumns())},r=function(){a.points().each(function(b){b.legendEntry&&
(b.legendEntry.destroy(),b.legendEntry=void 0)});a.legendEntries=[]};if(!(!a.isVisible&&g.isRendered&&a.visualizer.isRendered||m&&a.currentOptions.isBaseLayer)){f.chartAreaSet.enumerateData();var u=!1!==J(a.chartArea.currentOptions,["legend","visible"]);if(c){!y&&a.setPoints();var y=!0}if(c&&u&&!1!==a.options("defaultPoint.legendEntry.visible"))k=a.legendEntries=[],a.points().each(q),!0===h.visible?n():p();else if(u&&!1!==h.visible?n():p(),a._points.length&&a._points[0].legendEntry&&r(),a.info.hasUniqueStyles||
k.length)!y&&a.setPoints(),y=!0,a.points().each(function(b){u&&!0===b.options("legendEntry.visible")?q(b):b.legendEntry&&(b.legendEntry.destroy(),a.legendEntries=ea(k,function(a){return a!==b.legendEntry}),b.legendEntry=void 0)})}};a.prototype.iconName=function(){var b=this;if(!b._iconName){var a=function(b){return!b||0!==b.size&&"none"!==b.type},c=function(b){return"system/default/"+b},f=function(){var a=b.points(0);return a&&a.currentOptions.marker},g=J(b.currentOptions,["defaultPoint","marker"]);
a=!a(g)||!a(f());f=this.info.type;b._iconName=f.drawArea?c(a?"areaSolo":"area"):f.drawLine?c(a?"lineSolo":"line"):f.drawMarker?c("circle"):c("square")}return b._iconName};a.prototype.getIconVisual=function(b,a,c){a===this&&(a=void 0);return this.visualizer.getIconVisual(b,a,c)};a.prototype.styleIconVisual=function(b,a){b&&this.visualizer.setIconVisualAttr(b,a)};a.prototype.setAxes=function(){var b=this,a=b.options(),c=b.visualizer.getTypeConfig(),f=c.customAxisOptions||{},g=c.privateAxes||"";c=c.axes.length?
c.axes.split(","):[];var h;x(c,function(c){h=c+"Axis";var d,e=b.chartArea.axConfList,k=A({},f[c]);(d=b[h])&&(d=d.parentAxis||d);var p=b.userOptions[h],q=p||a[h]||(d?d.id:void 0);if(d=xb(g,c)&&(!d||!d.currentOptions.isPrivate))q=la(e[c][0]),p&&q.id!==p&&(q={}),delete q.id,k=A(k,q),k.isPrivate=!0,q=p||he(6);p=b[h];c=b[h]=b.chartArea.requestAxis(b,c,q,k);c.isPrivate=d;p&&p.isPrivate&&p.id!==c.id&&p.destroy();Y(b.currentOptions,h,c.id)});return this};a.prototype.assignAxes=function(){var b=this,a=this.visualizer.getTypeConfig().axes.split(","),
c=this.chartArea.axConfList,f,g,h,k=this.options();x(a,function(a){f=a+"Axis";c[a]=c[a]||[];if(g=k[f])"object"===K(g)&&(h=Ab(g),c[a].push(g),k[f]=h);else if(g=z(c[a][0],b.chartArea.chartAreaSet.freeAxes[a]))k[f]=g.id})};a.prototype.reIndexStringVals=function(b){var a=this.indexer,c=b.toPosition,f=[b.prefix];f.push.apply(f,G(b.usedDataKeys));f=Ia(f);b=a.data;x(f,function(b){if(xb(a.uniqTypes[b],"string")){var d=a.getKey(b);a.reset(b);for(var e=0,f=d.length;e<f;e++){var g={};g[b]=c(d[e]);a.indexKeys([b],
g,e)}}});if(2===jc(["ye","ys"],f).length&&b.ys&&b.ys.length){a.reset("yr");f=0;for(var g=b.ys.length;f<g;f++)a.indexKeys(["yr"],{yr:b.ye[f]-b.ys[f]},f)}this.seriesDirty.pointIndex(!1)};a.prototype.getFormatInfo=function(){var b=this,a={},c,f=this.visualizer.getTypeConfig().axes.split(","),g=this.chart.currentOptions.defaultCultureName;g&&(a.culture=g);x(f,function(d){(c=b[d+"Axis"])?a[d]=c.getFormatInfo():a[d]={}});return a};a.prototype.options=function(b,a){var c=!0,d=this.optionsGetter(b);if("NotGetter"!==
d)return d;d=ya(b);var g=1===d.length;if("object"===typeof b.mapData&&(this.setMapData(b.mapData),g))return this;if(0<jc(d,is).length){var h=g;M(this.userOptions,b);M(this.currentOptions,b);this.visualizer&&(t(b.muted)&&"select"!==this.state?this.setState(b.muted?"mute":""):t(b.selected)&&this.select(b.selected))}if(!h){t(b.visible)&&(this.isVisible=b.visible,g&&(c=!1),this.chart.isRendered&&this.legendEntry&&this.legendEntry.updateCheckbox(this.isVisible));if(b.points||b.emptyPointMode)this.seriesDirty.points(!0),
this.seriesDirty.pointIndex(!0),this.seriesDirty.resetCache();this.userPoints=b.points||this.userPoints;delete b.points;b=this.normalizeOptions(b);(b.defaultPoint||b.firstPoint||b.lastPoint)&&this.seriesDirty.points(!0);b=M(this.userOptions,b);this.name=b.name||"";this.setOptions();this.type=this.ctManager.settingVal("seriesType",this.options());this.setType(c);if(!1!==a){a=this.normalizeUpdateOpt({animation:this.currentOptions.animation},a);c&&this.chartArea.invalidate();this.chart.redraw(a);var k=
!0}c&&this.chart.updateSideItems(a)}this.chart.triggerOptionsApplied("series",this);!k&&this.afterUpdate(a);return this};a.prototype.optionsGetter=function(b){return"visible"===b?this.isVisible:c.prototype.optionsGetter.call(this,b)};a.prototype.normalizeArrPoints=function(){var b;if(b=this.userPoints){var a=K(b);if("string"===a&&0===b.indexOf("JSC.points"))this.userPoints=Yj(b);else if("object"===a&&b.data)this.userPoints=Bp(b);else if(b.length){a=0;for(var e=b.length;a<e;a++){var f=b[a];f.pop?b[a]=
this.visualizer.pointArrayExpander(f):"number"===typeof f?b[a]={y:f}:c.prototype.normalizeOptions.call(this,b[a],"map,attributes")}this.userPoints=b}}};a.prototype.setType=function(b){var a=this.options(),c=this.ctManager;"gauge"===a.type&&(this.type=a.type="gauge marker");var f=c.settingVal("seriesType",a);c=c.settingVal("chartType",a);"organizational"===c&&(this.type=f=a.type="annotation");f=a=f||this.type||f||c;f=H(Sc,f)?Sc[f]:Oe;this.visualizer&&this.visualizer.kind===a||(this.visualizer=new f(this),
this.setOptions(),this.assignAxes());"calendar"===this.visualizer.kind&&(this.isStacked=!1);this.visualizer.getTypeConfig(!0);this._ctmIsTypeCache=this._ctSvCache=void 0;this.normalizeArrPoints();!1!==b&&this.setData()};a.prototype.normalizeOptions=function(b){b=c.prototype.normalizeOptions.call(this,b);Rw(b,"size",["min","max"]);pp(b,"emptyPointMode");var a=b,e,f;"undefined"!==(f=K(e=C(a,"animation.easing")))&&"string"===f&&Y(a,"animation.easing",bo(e));return b};a.prototype.defaultOptions=function(){var b=
this.chart.options("navigator.enabled");return A(b?A(wu(),{line:{width:2}}):wu(),{animation:this.chart.options("animation")})};a.prototype.contextOptions=function(){return this.visualizer?this.visualizer.contextDefaults():void 0};a.prototype.setOptions=function(){var b=this.chart.options("navigator.enabled"),a=this.normalizeOptions(this.chart.currentOptions.defaultSeries||{}),c=this.currentOptions=A({},this.defaultOptions(),this.contextOptions(),a,this.userOptions);b&&"line"===this.ctManager.settingVal("seriesType",
c)&&(this.currentOptions=A(c,{defaultPoint:{marker:{type:"circle",color:"none",outline:{width:0}},states:{hover:{marker:{outline:{width:2}}}}}}));a=this.ctManager;b=this.ctSv("gaugeType");if("gauge"===a.settingVal("chartType",c)){a=a.curCtDst(c);var f=a.dst.explicit||"";a=xb((a.ct||{}).explicit||"","seriesType");c=c.type||"";var g=xb(c,"gauge");f=-1!==f.indexOf("seriesType");var h="circular"===b?"marker":"column";if(!a&&!f)if("circular"===b){g&&!f&&(h=c+h,this.currentOptions.type=h);var k={type:h,
defaultPoint:{marker:{type:"needle",length:.8}}}}else"linear"===b&&(g&&!f&&(h=c+h,this.currentOptions.type=h),k={type:h})}k&&td(this.currentOptions,k);Wl(this);return this};a.prototype.ctSv=function(b){this._ctSvCache||(this._ctSvCache=this.ctManager.getSettingChecker(this.currentOptions));return this._ctSvCache(b)};a.prototype.ctSvIs=function(b,a){return this.ctSv(b)===a};a.prototype.ctmIsType=function(b){this._ctmIsTypeCache||(this._ctmIsTypeCache=this.ctManager.getIsTypeChecker(this.currentOptions));
return this._ctmIsTypeCache(b)};a.prototype.correctRootBox=function(b){var a=this.chart.navigator;if(this.pane){var c=this.pane.getGlobalOffsets();b[0]-=c.x;b[1]-=c.y}a&&(b[1]+=a.defaults.toolbarHeight,b[3]-=a.defaults.toolbarHeight);return b};a.prototype.setInfo=function(){var b=this.ctManager,a=this.options(),c=b.hasSetting,f=function(b){return c("behavior",b,a)},g=b.settingVal("chartType",a),h=b.settingVal("seriesType",a);"organizational"===g&&(this.type=h=a.type="annotation");b={seriesType:h,
drawMarker:f("drawMarker"),drawArea:f("drawArea"),drawRect:f("drawRect"),drawLine:f("drawLine")||"organizational"===g,colorByPoint:f("colorByPoint")||t(a.palette),colorByPointLocal:t(a.palette),snapToZero:f("snapToZero"),drawSubvalue:f("drawSubvalue"),noNameGrouping:f("noNameGrouping"),tree:f("tree"),varyPalette:f("varyPalette"),labelConnector:f("labelConnector"),clusters:f("clusters"),noPos:f("noPos"),isMapLayer:b.isMapLayer(this),isAnnotation:f("annotation"),isShape:"visualshape"===b.settingVal("seriesLayout",
a),isPie:"pie"===g,isRadar:"radar"===g,hasNeedles:"gauge"===g&&"marker"===h&&"needle"===J(a,["defaultPoint","marker","type"]),roundCaps:this.ctSvIs("columnType","roundcaps"),isRadarColumn:!1};"line"===J(a,["map","type"])&&(b.drawMarker=!1,b.drawArea=!1,b.drawLine=!0);if(b.isPie||a.isMerged)b.colorByPoint=!0;b.isRadar&&b.drawRect&&(b.isRadarColumn=!0);"gauge"===g&&(b.snapToZero=!0);f=J(this,["info","style"]);this.info={type:b,hasSubvalues:!1,hasComplete:!1,hasYRanges:!1,hasUniqueStyles:!1,hasMaxedMarkerLimit:!1,
data:{},style:f||{},xIsSorted:!0,labelTextInfo:{},map:this.info?this.info.map:{}};if("object"===K(a.palette||this.chart.palette)||"heatmap"===g)this.info.usesSmartPalette=!0};a.prototype.setDataInfo=function(b){var a=this.visualizer,c=this.chart,f=this.info,g=f.type,h=this.userPoints,k=h.length,l=this.indexer,m=0,n=a.pointValueParser,p=a.pointDataKeys||et;if(this.seriesDirty.pointIndex()||b){this._catCache=[];t(this._i)||this.chartArea.chartAreaSet.enumerateSeries(this);g.clusters&&(this.zAxis&&"stacked"===
J(this.zAxis.currentOptions,["scale","type"])||"stacked"===J(this.chart.currentOptions,["zAxisScaleType"])||"stacked"===J(this.chart.currentOptions,["zAxis","scale","type"]))&&(g.clusters=!1,g.zStacked=!0);this.prevCoords=l.data.coordinates||this.prevCoords;var q=0===l.getAllKeys.length;l.reset();b=void 0;var r=!0;!this.isVisible&&!q&&c.isRendered&&this.isStacked&&(b={y:0});q=this.cpbIndexOffset;var u=function(b){return b},y;c=void 0;if(c=this.currentOptions.defaultPoint)if(y=c.subvalue)u=function(b){return b.subvalue?
b:A(b,{subvalue:y})};for(;m<k;m++){var v=h[m];this.setLegendEntryVisibility(v);Ab(v);v=b?A({},v,b):v;u(v);v._i=m;g.colorByPoint&&(v.cpbIndex=z(v.cpbIndex,g.colorByPointLocal?m:q++));v=n(this,v,p,a.skipSubvalues);l.indexObject(v,m);m&&r&&t(v.x)&&pb(v.x)&&v.x<l.data.x[m-1]&&(r=!1)}f.hasYRanges=!1;l.hasAllKeys(["y","ys"])&&(g.snapToZero=!1,f.hasYRanges=!0);l.hasAllKeys(["ys","ye"])&&!l.hasKey("y")&&(g.snapToZero=!1,f.hasYRanges=!0);this.currentOptions.isPreview&&(g.snapToZero=!1);f.hasMaxedMarkerLimit=
g.drawMarker&&k>this.currentOptions.markerLimit;f.xIsSorted=r;l.hasAnyKeys(["subvalue","subvalueX"])&&(f.hasSubvalues=!0);l.hasAnyKeys(["complete","completee","completeX","completeXe"])&&(f.hasComplete=!0);a=void 0;g.varyPalette?a=!0:l.hasAnyKeys(["color","outline","marker","label","fill"])?a=!0:"candlestick"===g.seriesType?a=!0:"ohlc"===g.seriesType?J(this.currentOptions,["defaultPoint","altColor"])&&(a=!0):g.tree?a=!0:g.isRadarColumn&&(a=!0);if("object"===K(this.chart.options("palette")))g.colorByPoint=
!0;else if("%color"===J(c,["marker","fill"]))a=!0;else if(this.currentOptions.firstPoint||this.currentOptions.lastPoint)a=!0;f.hasUniqueStyles=a||f.hasUniqueStyles;this.seriesDirty.pointIndex(!1);this.seriesDirty.pos(!0);this.validateData();this.setAttribs(!0);this.visualizer.validate(!1);this.syncLegendItems()}};a.prototype.setLegendEntryVisibility=function(b){!1===this.visualizer.pointLeVisible(b)&&(b=b.legendEntry||(b.legendEntry={}),b.visible=z(b.visible,!1))};a.prototype.validateData=function(){if(this.visualizer&&
this.userPoints.length&&!this.ctmIsType("map")){var b=this.visualizer.getTypeConfig(),a=b.requiredData,c=b.supportedData,f=this.indexer.getAllKeys();a&&(a=a.split(","),xb(f,"ys")&&f.push("y"),xb(f,"xs")&&f.push("x"),xb(f,"zs")&&f.push("z"),jc(f,a).length<a.length&&oa.emit("error",this.id,"dataRequired",{data:[this.name||this.id,a.join(", ")],container:this.chart.getWrapper()}));c&&b.supportedData.split(",")}};a.prototype.setData=function(){this.setInfo();this.setDataInfo(!0)};a.prototype.setPoints=
function(){var b=this,a=b.xAxis||{};if(b.seriesDirty.points()){if(!b._points.length||b.dirty){b._defPointGen=void 0;Xb(b.userPoints,b._points,function(a){return new MD(b,a)},function(b,a){return a.options(b,!1)},function(b){return b.destroy()},function(b,a){return z(b.id,b.name)||a},function(b,a){return z(b.currentOptions.id,b.currentOptions.name,b.id)||a});var c=[],f={};x(b._points,function(b){f[b.id]=b});x(b.userPoints,function(b){df(c,f[b.id])});b._points=c}if(b.info.usesSmartPalette){var g=b.getSP(),
h=g.userOptions.pointValue;100<this._points.length&&O(h)&&oa.emit("warning",b.id,"spPointValueSuggestion",{container:this.chart.getWrapper()});g.setPointSpValues(b)}b.seriesDirty.points(!1)}"category"===a.type&&J(a.currentOptions,["categories","length"])&&x(b._points,function(a){a.currentOptions.name||"string"===typeof a.x||(a.name=b.xAxis.catList[b.indexer.data.x[a._i]])});return this};a.prototype.getAutoLabelText=function(b,a){function c(){switch(q.type.seriesType){case "candlestick":case "ohlc":var b=
r?y(["%icon"," ","O:%open H:%high L:%low C:%close"]):"%xValue {%close-%open}<br/>Open: %open<br/>High: %high<br/>Low: %low<br/>Close: %close";return b;default:var a=b="",c=r?"":"<br/>",d=xb(Gf(u.vScale),Gf("stacked")),e=q.type.drawLine,f=1<p.chartArea.series().items.length,g=!r&&!e&&!d;r?a="%icon":(u.sName&&f&&!g&&(b+=v("%seriesName")+"<br/>"),"category"===u.xScale?b+=u.xAxisLabel?"%xAxisLabel: "+(v("%name")+"<br/>"):"%name ":(u.pointName&&(b="%name<br/>"),b+=u.xAxisLabel?"%xAxisLabel: "+v("%xValue")+
"<br/>":"%xValue "));b+=D("yAxisLabel",c,w()," ");u.hasZ&&(b+=D("zAxisLabel","<br/>","%zValue","<br/>",!0));r||(e||d?d&&(b+="<br/>%ypercentOfGroup% of "+x()):b+="<br/>"+m());u.hasComplete&&(b+="<br/>%complete Complete");b=a?y([a,"<span style='width:5;'> </span>",b]):b;return n(b.trim())}}function d(){var b=I();b+=" "+D("yAxisLabel","<br/>",w(),"<br/>");u.hasZ&&(b+=" "+D("zAxisLabel","<br/>","%zValue","<br/>",!0));b+=m();return n(b.trim())}function g(){var b=(u.sName?v("%seriesName")+"<br/>":"")+"%name: "+
w();return n(b.trim())}function h(b){var a="",c=u.mapInfo||{};b&&b.options("name")&&(a+="%name");u.mapInfo&&u.serName&&u.serName!==c.name&&(a+=a.trim().length?"<br/>":"","province"===c.mapLevel&&(b=c.country,xb(Gf(u.serName),Gf(b))&&(a+="%country")));u.serName&&(a+=a.trim().length?"<br/>":"",a+="%seriesName");"marker"===q.type.st&&(a+=a.trim().length?"<br/>":"",a+="<br/>Lat: "+v("%yValue"),a+="<br/>Long: "+v("%xValue"));u.hasZ&&(a+=a.trim().length?"<br/>":"",a+=D("zAxisLabel","<br/>","%zValue","<br/>",
!0));return n(a.trim())}function k(){var b=u.sName?"%seriesName":"";b+=" "+I();b+=b.trim().length?"<br/>":"";b+=D("yAxisLabel","<br/>",w(),"<br/>");return n(b.trim())}function l(){var b="";"category"===u.xScale?b+=u.xAxisLabel?"%xAxisLabel: "+(v("%name")+"<br/>"):"%name ":(u.pointName&&(b="%name<br/>"),b+=u.xAxisLabel?"%xAxisLabel: "+v("%xValue")+"<br/>":"%xValue ");b+=" "+D("yAxisLabel","<br/>",w(),"<br/>");u.hasZ&&(b+=" "+D("zAxisLabel","<br/>","%zValue","<br/>",!0));return n(b.trim())}function m(b){var a=
"";"time"!==u.vScale&&(a=t(b)?b+"% of ":"%percentOfSeries% of ",a+=u.sName?"%seriesName":q.type.colorByPoint?"Series":"%icon",xb(Gf(u.vScale),Gf("stacked"))&&(a+="<br/>%percentOfGroup% of "+x()));return a}function n(b){return b.replace(/<br\/><br\/>/g,"<br/>").replace(/<br\/> <br\/>/g,"<br/>")}void 0===b&&(b={});var p=this,q=this.info,r=p.chartArea.tooltip.cttEnabled(p.yAxis,p.xAxis),u=A(b,q.labelTextInfo);b=this.options("defaultPoint.label.text");var y=function(b){return(p.chart.isRtlCulture?b.reverse():
b).join("")},v=function(b){return"<b>"+b+"</b>"},w=function(){return u.hasRange?"time"===u.vScale?"%yStart\u2013%yValue":"(%yStart\u2013%yValue)":"%yValue"},x=function(){return"category"===u.xScale?"%name":"%xValue"},I=function(){return u.pointName||O(u.pointX)?u.pointName?"%name":"%xValue":""},D=function(b,a,c,d,e){return r?c:u[b]?a+("%"+b)+": "+v(c)+"<br/>":(e?"("+c+")":c)+d},z="",C="";switch(u.ct){case "horizontal":case "vertical":z=c();break;case "cone":case "pyramid":case "funnel":case "treemap":case "pie":z=
d();break;case "heatmap":z=l();break;case "radar":z=c();break;case "gauge":z=k();break;case "navigator":z=c();break;case "organizational":C=z="%XValue";break;case "map":z=a?h(a):"%name";C="%name";break;case "calendar":z=c();C="%name";break;case "venn":C="%name";z=g();break;default:z=c()}return{tooltip:z,label:b||C||"%yValue"}};a.prototype.getAutoTooltipText=function(b){return this.getAutoLabelText({pointName:b.name,pointX:b.options("x"),hasComplete:t(b.options("complete"))}).tooltip};a.prototype.setPane=
function(b){this.pane=b;b.hasNeedles=b.hasNeedles||this.info.type.hasNeedles;b.hasRoundCaps=b.hasRoundCaps||this.info.type.roundCaps;cs(this)};a.prototype.render=function(b,a){this.renderRect=b.rect||b;this.userPoints.length&&this.visualizer.render(a);return this};a.prototype.renderLabels=function(b,a){this.renderRect=b.rect||b;this.userPoints.length&&this.visualizer.renderLabels(a)};a.prototype.renderHierarchy=function(b,a){this.renderRect=b.rect||b;this.userPoints.length&&this.visualizer.renderHierarchy(a)};
a.prototype.setPos=function(){var b=this,a=b.ctManager,c=b.pane,f=b.ctmIsType("radar"),g=b.ctmIsType("gauge"),h=b.info,k=b.options(),l=b.userPoints,m=J(k,["emptyPointMode"])||"undefined",n,p=g&&"marker"===h.type.seriesType,q=J(b.currentOptions,["defaultPoint","marker","length"]);a=a.settingVal("lineSeriesType",k);var r="line"===h.type.seriesType&&"spline"===a&&b.ctmIsType("map")||"line"===h.type.seriesType&&f&&c&&"polar"===c.getRadarType(),u=f?15/360:5,y,v,w;if(b.seriesDirty.pos()&&!b.info.type.noPos){b.info.labelTextInfo=
js(this);c=b.getAutoLabelText({},b._points[0]);M(b.info.labelTextInfo,c);b.isStacked=b.yAxis.isStacked();b.indexer.indexKeys(["pos"],{},0);var E=b.getXYZTranslator(),I=function(b,a,c,d){t(B[b])&&(H[b]=E(a,c,d))},D=E(0,0,0),A=function(b,a){return Math.floor(oc(b,a)/u)},C=function(b,a,c,d){var e=[];c&&qb(c,function(f){f&&(f=[T(b[0],a[0],0,1,1/c*f),T(b[1],a[1],0,1,1/c*f)],e.push(d?d.apply(void 0,G(f)):f))});return e};c=function(a,c){B=b.indexer.getItem(a);if(B.isEmpty&&"ignore"===m&&!J(b,["pane","isRadial"]))return"continue";
var d=z(B.ye,B.y),e=z(B.ys,0),g=z(B.xe,B.x),k=z(B.xs,g),l=z(B.ze,B.z),u=void 0;p&&(n=z(J(B,["marker","length"]),q,.8))&&(n.pop?(c=F(n,2),u=c[0],l=c[1]):(l=n,u=0));u=z(B.zs,u,l);H={xyz:E(g,d,l),xyzOrigins:D,xyzs:E(k,e,u),xyzRDesc:[k>g,e>d,u>l]};"map"===h.type.seriesType&&b.visualizer.setPos(B,H);h.hasSubvalues&&(I("sv",g,B.sv,l),I("svs",g,B.svs,l),I("svx",B.svx,d,l),I("svxs",B.svxs,d,l),t(B.svv)&&(H.svv=y=[],x(B.svv,function(b){y.push(E(g,b,l))})),t(B.svxv)&&(H.svxv=y=[],x(B.svxv,function(b){y.push(E(b,
d,l))})));h.hasComplete&&(t(z(B.completee,B.complete))||t(z(B.completeXe,B.completeX))?(c=function(b,a,c){t(Y(H,a,z(B[a],B[c])))?Y(H,b,B[b]||0):(H[b]=0,H[a]=1)},c("completes","completee","complete"),c("completeXs","completeXe","completeX")):H.completes=H.completee=H.completeXs=H.completeXe=0);b.indexer.setValue("pos",a,H);r&&w&&(a=void 0,b.ctmIsType("map")?a=A(w,[g,d]):f&&(a=A(v.xyz,H.xyz)),v.interpPoints=C(w,[g,d],a,E));v=H;w=[g,d]};a=0;for(l=l.length;a<l;a++)c(a,l);if(f&&r){var B=b.indexer.getItem(0),
H=b.indexer.getValue("pos",0);l=v.xyz[0]+2*ma(v.xyz[0],1);l=[v.xyz,[l,H.xyz[1]]];c=A(l[0],l[1]);v.interpPoints=C(l[0],l[1],c);v.interpPoints.unshift(l[0],l[0])}}else b.info.type.noPos&&(b.info.labelTextInfo=js(this),c=b.getAutoLabelText(),M(b.info.labelTextInfo,c));b.seriesDirty.pos(!1);return this};a.prototype.setCoordinates=function(b,a){this.userPoints.length&&this.visualizer.setCoordinates(b||this.contentRect(),a);return this};a.prototype.setState=function(b,a){void 0===a&&(a={});b=Xl(this,b);
if(this.state!==b){var c={},d=z(a.continueAnimation,!0);if(a.animation){A(c,!1===a.animation?{duration:0}:a.animation);var g=!!c.duration}a=function(b){return A(g?{continueAnimation:d,animation:c}:{continueAnimation:d},b)};var h=this.info.type,k,l=this.getStateAttrs(b);h.drawLine&&(k=this.visuals.line)&&l.line&&k.attr(a(l.line));h.drawArea&&(k=this.visuals.area)&&k.attr(a(l.area));this.state=b;"select"===b&&this.chart._seriesSelection()}};a.prototype.getStateAttrs=function(b){var a=this.info.type,
c=this.info.style,f=c.states;b=Xl(this,b);b=f[b];f={line:void 0,area:void 0};a.drawLine&&(f.line=M({},b));a.drawArea&&(f.area=ic({fill:z(b.areaColor,c.base.areaColor),opacity:z(b.areaOpacity,c.base.areaOpacity)}));return f};a.prototype.getXYZValAxes=function(){var b=this.pane,a=J(b,["xAxis"])||this.xAxis,c=J(b,["yAxis"])||this.yAxis;b=J(b,["zAxis"])||this.zAxis;return[a,c,b]};a.prototype.getXYZTranslator=function(){var b=this.chartArea,a=this.pane,c=a?a.isHoriz:b.isHoriz,f=z(J(a,["projection"]),b.projection),
g=F(this.getXYZValAxes(),3);b=g[0];a=g[1];g=g[2];var h=b?b.getValToLin()||Bc:Hb,k=a?a.getValToLin()||Bc:Hb,l=g?g.getValToLin()||Bc:Hb;return this.ctmIsType("map")?this.transformFn=function(b,a,c){b=f.val2linxy(b,a);return[h(b[0]),k(b[1]),l(c)]}:this.transformFn=c?function(b,a,c){return[k(a),h(b),l(c)]}:function(b,a,c){return[h(b),k(a),l(c)]}};a.prototype.preRender=function(b){void 0===b&&(b={});var a=b.rect||this.contentRect();if(b.rect){var c=z(this.options("shape.padding"),.3);c&&(a=jp(a,c))}t(this._i)||
this.chartArea.chartAreaSet.enumerateData();this.setPos().setPoints().setAttribs().setCoordinates(a,b)};a.prototype.contentRect=function(){return this.renderRect};a.prototype.destroy=function(){var b=this.visualizer;b&&b.clearHighlightVisuals&&b.clearHighlightVisuals();this.rootVisuals=null;this.points().each(function(b){return b.destroy()});c.prototype.destroy.call(this);x(this.visuals,function(b){return t(b)&&hb(b,function(b){return b.destroy&&b.destroy()})||!0});this.legendEntry&&this.legendEntry.destroy()};
a.prototype.translateToGlobal=function(b){var a=this.chartArea.rootVisuals.content.getGlobalBbox();a=[b[0]+a.x,b[1]+a.y];2<b.length&&(a[2]=b[2],a[3]=b[3]);return a};a.prototype.hitTest=function(b){var a=this.visualizer;if(this.isVisible&&jn(this)){var c=this.indexer.getKey("coordinates"),f,g=a.renderOrderRev;if(a=a.pointsGlobals||a.updatePointsGlobals())b[0]-=a.x,b[1]-=a.y;a=function(a){if((f=c[a])&&f.hitTest&&f.hitTest(b[0],b[1]))return!0};var h=void 0;if(g){g.length>c.length&&(g=g.filter(function(b){return b<
c.length}));for(var k=0,l=c.length;k<l;k++)if(h=g[k],a(h))return this._points[h]}else for(k=0,l=c.length;k<l;k++)if(a(k))return this._points[k]}};a.prototype.mouseOut=function(b){var a=this.chart.requestLegend(this);a&&a.pointOut();this.visualizer.pointMouseOutAny()&&this.triggerUser("mouseOut",b)};a.prototype.mouseMove=function(b,a){if(jn(this)){a=this.chartArea;var c=this.visualizer,d=this.chart.requestLegend(this),g=[b.x,b.y],h;if(h=this.hitTest(g)){var k="hover"===this.state||c.hoveredItem;a.crosshair(g,
b,!0);c.pointMouseOver(b,h);d.pointOver(h);!k&&this.triggerUser("mouseOver");return!0}J(this.currentOptions,["mouseTracking","sticky"])||(c.pointMouseOutAny()&&this.triggerUser("mouseOut",b),d&&d.pointOut())}};a.prototype.mouseClick=function(b){if(jn(this)){var a;if(a=this.hitTest([b.x,b.y]))return this.visualizer.pointClick(b,a),this.triggerUser("click",b),a}};a.prototype.pointOver=function(b,a){};a.prototype.showHaloAtX=function(b){var a=this.indexer;b=a.findValue_i("x",b);var c=this.info.labelTextInfo.hasRange,
f=[],g=this._points[b];g&&this.visualizer.showHalo(g);if(t(b)){var h=a.getItem(b);c?x(["svs","sv","ys","ye"],function(b){b=h[b];t(b)&&f.push(b)}):f.push(z(a.getValue("ye",b),a.getValue("y",b)));return[this.yAxis,g,f]}};a.prototype.hideHalo=function(){this.visualizer.showHalo()};a.prototype.setAttribs=function(b){var a=this.currentOptions,c=this._i,f=this.ctmIsType("treemap"),g=a.line||f&&J(a,["shape","outline"])||{};f=this.info;var h=this.chart.palette,k=this.userPoints.length>a.markerLimit?1:2,l=
"array"===K(h)?h:gj("default");this.info.style={set:{color:m,opacity:p,line:{},area:{}},attr:{line:{},area:{}},states:{}};h=f.style;var m=z(a.color,J(a,["defaultPoint","color"]),l[c%l.length]);c=z(J(a,["defaultPoint","marker","type"]),dj[c%dj.length]);m=Qk(m);var n=z(m[3],1),p=z(a.opacity,1)*n;l=z(J(a,["outline","opacity"]),a.opacity,1)*n;n*=z(J(a,["shape","opacity"]),a.opacity,.8);m=qa(m,"rgb");var q=da(g.color||Oa.seriesLine,m),r=J(a,["shape","fill"])||a.fill;if(r){r=Jw(m,r);r=da(dc(r),m);var u=
r.linearGradient?r:dp(Qk(r))}u=this.ctSvIs("areaShadingType","subtle")?hd(Ja.areaFill,u||m):m;p=h.base={color:m,altColor:"white",opacity:p,lineColor:q,lineOpacity:l,areaOpacity:n,areaColor:u,markerType:c};if(!b)return b=f.style.states,u=2,this.ctmIsType("organizational")&&(u=0),m=a.states||{},a=m.hover||{},h=m.select||{},m=m.mute||{},f.type.drawLine&&(k=f.style.set.line={width:z(g.width,k),color:p.lineColor,opacity:z(g.opacity,1)*p.lineOpacity,dashStyle:g.dashStyle},g.caps&&(k.caps=g.caps),b[""]=
f.style.attr.line=wb(k),g=a.line||{},b.hover=!1!==a.enabled?A({},b[""],{"stroke-width":z(g.width,k.width+u),stroke:da(z(g.color,a.color,k.color),p.color),"stroke-opacity":z(g.opacity,a.opacity,k.opacity)}):{},g=h.line||{},b.select=!1!==h.enabled?A({},b[""],{"stroke-width":z(g.width,k.width+u),stroke:da(z(g.color,h.color,k.color),p.color),"stroke-opacity":z(g.opacity,h.opacity,k.opacity)}):{},g=m.line||{},b.mute=!1!==m.enabled?A({},b[""],{"stroke-width":z(g.width,k.width),stroke:da(z(g.color,m.color,
k.color),p.color),"stroke-opacity":z(g.opacity,m.opacity,.15*k.opacity)}):{}),f.type.drawArea&&(g=f.style.set.area={color:p.areaColor,opacity:p.areaOpacity},(g.fill=p.areaFill)||(this.ctSvIs("areaShadingType","subtle")?g.fill=hd(Ja.areaFill,g.color):g.fill=g.color),!1!==a.enabled&&a.fill&&(b.hover.areaColor=da(a.fill,p.areaColor)),!1!==m.enabled&&(b.mute.areaOpacity=z(m.opacity,.15*p.areaOpacity),m.fill&&(b.mute.areaColor=da(a.fill,p.areaColor))),f.style.attr.area=ic(g)),this};a.prototype.getPointAttr=
function(b,a){function c(b,a,c){var d={},e=function(a,c){return c?c(J(b,a)):J(b,a)},f=function(b){$n(d,a,b,b)},g=function(b,c,e){We(d,b,da(J(a,b)||e,c))},h=function(a,c,d){t(J(b,a))&&We(m,c,e(a,d))},k=function(b){return b&&b.pop&&2===b.length?Ob(b):b};g(["color"],N);var l=d.color&&da(Oa.outline,k(d.color));g(["outline","color"],N,l);a.fill&&(d.color=da(dc(a.fill,void 0,void 0,void 0,N),N));f(["outline","width"]);f(["outline","dashStyle"]);f(["size"]);f(["opacity"]);J(a,["hatch","style"])&&(f(["hatch",
"style"]),g(["hatch","color"],N));var m={color:c.color?lg(k(b.color),c.color,["val"]):k(b.color),opacity:e(["opacity"],c.opacity),outline:{color:e(["outline","color"],c.outlineColor),width:e(["outline","width"],c.outlineWidth)}};h(["outline","dashStyle"],["dashStyle"],c.dashStyle);h(["size"],["size"],c.size);h(["hatch","style"],["hatch","style"],c.hatch);h(["hatch","color"],["hatch","color"],c.hatchColor);return A(m,d)}function d(b,a,c){var d=J(b,["states",a])||{},e=d.marker||{},f,g,h;if(f=td(e.outline,
d.outline,c.outline))e.outline=f;if(f=e.fill||d.fill)e.fill=f;t(g=z(e.size,d.size))&&(e.size=g);t(h=z(e.opacity,d.opacity,c&&c.opacity))&&(e.opacity=h);b=J(b,["marker","states",a])||{};return td(e,b)||{}}var g=b?b.currentOptions?b.currentOptions:b:{},h=this.currentOptions,k=t(g._i)?Vl(this,g._i):h.defaultPoint||{},l=!b,m=this.info.hasUniqueStyles||this.info.type.colorByPoint,n=this.info,p=n.style.base,q=n.type,r=this.ctmIsType("calendar")?Oa.lightenDark:this.ctmIsType("map")?"darkenmore":Oa.outline,
u,y=this.ctmIsType("map"),v={},w=q.drawMarker||h.forceMarker||J(k,["marker","visible"])||(b?J(g,["marker","visible"]):J(k,["marker","visible"]));a=a||q.drawMarker;if((l||!m)&&(u=this.info.style.defaultPoint)&&(!a||u.drawMarker))return u;g=Ib(g,{map:void 0,attributes:void 0,mapData:void 0});g=td(g,k||{});u=g.label||{};var x=g.marker||{},I=g.states||{},D=I.hover||{},C=I.select||{},B=I.mute||{},G=!1!==J(this.currentOptions,["mouseTracking","enabled"]),H=!1!==B.enabled;G=(I=t(C.enabled)?C.enabled:!1!==
this.currentOptions.pointSelection||l&&!m)||G&&!1!==D.enabled||!0===D.enabled;var N=l?g.color||p.color:this.getPointColors(g);if("object"===typeof N&&N.color){var F=N.fill;N=N.color}var L=da(r,N);r=!1!==(q.labelVisible||u.visible)&&(!!J(u,["text","length"])||Gb(u.text)||u.visible);var M=z(g.opacity,1)*p.opacity,O=this.getPointHatchStyle(g);if(!l&&g&&("candlestick"===this.info.type.seriesType||"ohlc"===this.info.type.seriesType)&&g.close<g.open){var P=(b||{}).altColor||(k||{}).altColor;if("ohlc"===
this.info.type.seriesType)P&&g.color&&(g=A({},g),g.color=da(P,g.color)),N=L=P?da(P,L):L;else{(P=P||p.altColor)&&g.color&&(g=A({},g),g.fill=da(P,g.color));N=P?da(P,p.altColor):p.altColor;var U=!0}}F={color:F?dc(F):N,opacity:M,hatch:{style:O},outline:{color:L,width:1}};p=c(F,g,{});var S=q.isAnnotation?{color:function(b){return b},outline:{color:function(b){return da(Oa.labelContrast,b)},width:function(b){return b+2}}}:{color:function(b){return da(Oa.hover,b)}};q.isMapLayer&&q.drawLine&&(S.outlineWidth=
function(b){return b+2});h=h.states||{};P=ja(["color","opacity"]);if(G){var Q=Pa({},h.hover||{},P);D=A(Q,D);var T=c(p,D,S)}if(H){Q=Pa({},h.mute||{},P);B=A(Q,B);var X=c(p,B,{opacity:function(b){return.15*b}})}if(I){var Da=h.select||{};S=Pa({},Da,P);C=A(Da,C);Da=c(T,C,{color:function(b){return da("select",b)},outlineWidth:function(b){return b+1}})}r&&(C=u.color||J(u,["style","color"]),D=this.ctSvIs("columnType","cushion"),B="map"===this.ctSv("chartType")&&"marker"===this.ctSv("seriesType")&&"#505050",
Q="center"!==u.align&&"middle"!==u.verticalAlign&&q.drawMarker?N:p.color,"object"===K(Q)&&(Q=kg(Q)),u.color=C||B||da(q.isMapLayer||q.isAnnotation?Oa.labelContrast:Oa.label,Q),C||D||(u.hcColor=da(Oa.labelContrast,Q)));if(a||w)B=Q=D=D=void 0,S=G&&d(g,"hover",h.hover||{}),B=I&&d(g,"select",h.select||{}),C=H&&d(g,"mute",h.mute||{}),F.marker=D={color:N,size:10,opacity:M,hatch:{style:O},outline:{color:L,width:1}},O=t(x.visible)?x.visible:!0,p.marker=D=c(D,x,{}),O||(D.size=0),G&&(O=t(S.visible)?S.visible:
O,Q=Pa({},h.hover||{},P),T.marker=Q=c(D,A(Q,S),{size:function(b){return 1.2*b},color:function(b){return da(Oa.hover,b)}}),O||(Q.size=0)),I&&(O=t(B.visible)?B.visible:O,S=Pa({},h.select||{},P),Da.marker=B=c(Q,A(S,B),{color:function(b){return da("select",b)},outlineWidth:function(b){return b+1}}),O||(B.size=0),Da.marker=B),H&&(Q=Pa({},h.mute||{},P),X.marker=c(D,A(Q,C),{opacity:function(b){return.15*b}}));x={};F=a?p.marker:p;O=x[""]=ui(ic(F));G&&(F=a?T.marker:T,x.hover=ui(ic(F)));I&&(F=a?Da.marker:Da,
x.select=ui(ic(F)));H&&(F=a?X.marker:X,x.mute=ui(ic(F)));!q.isMapLayer||q.drawLine||a||"bubble"===q.seriesType||(x[""]["stroke-linejoin"]="round",x[""].zIndex=this.zIndex,G&&(x.hover.zIndex=this.zIndex+1),I&&(x.select.zIndex=0));"bubble"===q.seriesType&&t(g.zIndex)&&(x[""].zIndex=g.zIndex);n.hasSubvalues&&(T=J(g,["subvalue","line"])||{},F={opacity:M,outline:{width:z(T.width,1),color:da(T.color||L,N),length:T.length,dashStyle:T.dashStyle}},v[""]=ic(F));this.chart.use3D||U||this.ctmIsType("venn")||
!(y||q.drawRect||q.isShape&&!q.isPie||this.ctmIsType("heatmap")||this.ctmIsType("calendar")||this.ctmIsType("treemap"))||l||(U={},(y=J(this,["indexer","data","coordinates"]))&&(U.pointData=y[g._i]),O.fill&&O.fill.stops||this.attrShader(x,U));!1===q.drawArea&&(x[""].fill="none",G&&(x.hover.fill="none"),I&&(x.select.fill="none"));if(r){var W=A({},u);W=A(W,u.line);W=wb(W)}q={baseColor:N,pointAttr:x,svAttr:v,labelVisible:r,labelConnector:q.labelConnector,labelConnectorAttr:W,drawMarker:q.drawMarker,label:u};
l||!m?n.style.defaultPoint=q:(q.isDefault=l,this.indexer.indexKeys(["color"],{},0),this.indexer.setValue("color",g._i,q.baseColor));if(w||a)q.markerSize=p.marker.size;this.ctmIsType("gauge")&&this.ctSvIs("gaugeType","circular")&&(b=(b||{}).altColor||(k||{}).altColor)&&(q.pointAttr[""].altColor=da(b,N));return q};a.prototype.attrShader=function(b,a){var c=a.radAngle,d=this.ctManager,g=this.currentOptions,h=this.info.type.isRadarColumn,k=d.settingVal("columnType",g)||"default";d="horizontal"===d.settingVal("chartType",
g)||this.ctSvIs("linearGaugeType","horizontal");g=!1;if(this.ctmIsType("map")){k="subtle";var l=this.chart.ctManager;"map"===l.settingVal("seriesType")&&(l=l.settingVal("columnType"),k=l!==k?l:k)}t(c)&&(d=c);this.ctSvIs("funnelShapeType","square")&&(k="square");"le"===c&&(d=!0,g=!1);c={horizontal:d,inverted:g,isRadial:h};this.ctmIsType("calendar")&&(c.strokeMode="lighterOnDark");this.ctmIsType("treemap")&&"cushion"===k?(h=this.renderRect,d=a.pointData.cxy,g=a.pointData.bbox,l=ha(h),a=va(l),g=g[2]/
l[2]+g[3]/l[3],c.offsets=[(a[0]-d[0])/h.width,(a[1]-d[1])/h.height],c.share=g):h&&a.pointData?c.lgCoords=this.pane.getShaderOptions(a.pointData.pathOptions):this.ctmIsType("gauge")&&this.ctSvIs("gaugeType","circular")&&(k=this.ctSvIs("seriesType","column")?"none":"subtle");"roundcaps"===k&&(k="subtle");Kw(k,b,c)};a.prototype.getPointColor=function(b){b=this.getPointColors(b);return b.fill||b.color};a.prototype.getSP=function(){var b=this.chart,a=this.currentOptions.palette||this.chart.palette,c="object"===
K(a),f;if((!c||!(a.stops||a.colors||a.ranges))&&this.ctmIsType("heatmap")){var g=this.indexer.calculations.z;g?(this.chart.palette=a=mt(c?a:{},[g.min,g.max]),this.chart.legends().each(function(b){return b.updateSp()})):this.chart.palette=a={colors:this.chart.palette}}a.id&&(f=b.getSmartPalette(a.id));return f||b.getSmartPalette(a)};a.prototype.getPointColors=function(b,a){var c=this.info,d=c.type,g=c.style.base,h=this.currentOptions;c=c.type.colorByPoint;var k;a=a||d.drawMarker;d.isTree||(k=b.color);
if(a){var l=b.marker||{},m=l.color;l=l.fill}m&&(m=dc(m));if(m||k)return k?{color:Ob(k),fill:l||m}:{color:Ob(g.color),fill:l||m};c?(d=h.palette||this.chart.palette,h=K(d),"string"===h&&(d=Nh(d)),"object"===h?g=this.getSP().getPointColor(this,b):(b=this.indexer.getValue("cpbIndex",b._i),g=t(b)?d[b%d.length]:g.color),g=Ob(g)):(g=b.color||g.color,d.varyPalette&&!b.color&&(h=b._i,b=na(g),g=jf(b[0],b[1],b[2]),k=t(h)?ho(1,h+1)[h]:Yb.random(),h=.03*k,.5<k&&(h=-h),g[2]=ua(g[2]+h*g[2],0,1),g=fd(g[0],g[1],g[2]),
g=qa([g[0],g[1],g[2],b[3]]),d.isVaryingColors=!0));return{color:g,fill:l}};a.prototype.getPointHatchStyle=function(b,a){a=this.info.type;var c=this.currentOptions,d=this.chart.currentOptions,g=d.defaultSeries||{},h=J(b,["hatch","style"]);c=c.hatchPalette||d.hatchPalette||g.hatchPalette;h||(a.colorByPoint?(a=K(c),"undefined"!==a&&("boolean"===a&&(c=gj("hatch")),b=this.indexer.getValue("cpbIndex",b._i),t(b)?h=c[b%c.length]:c&&(h=c[this._i%c.length]))):c&&(h=c[this._i%c.length]));return h};a.prototype.getPointMarkerType=
function(b){var a,c=this.info.style.base;(a=J(b,["marker","type"]))||(this.info.type.colorByPoint&&!this.info.usesSmartPalette&&b?(a=this.indexer.getValue("cpbIndex",b._i),a=t(a)?a:b._i||0,a=dj[a%dj.length]):a=c.markerType);return a};a.prototype.getUniqueColors=function(b){var a=this.info,c=a.type,f=[];if(a.hasUniqueStyles||c.colorByPoint){a=this.indexer.getKey("color");for(var g=0,h=a.length;g<h;g++)if(c=a[g]){if(c!==k&&(f.push(c),f.length===b))break;var k=c}}else f.push(this.info.style.base.color);
return f};a.prototype.setColor=function(){var b=this.chart,a=this.options("palette")||b.palette;"object"===K(a)&&b.getSmartPalette(a).setPointSpValues(this)};a.prototype.invalidate=function(){this.dirty=!0;this.seriesDirty.all(!0);delete this.info.style.defaultPoint;return this};a.prototype.refresh=function(b){this.dirty&&(this.chartArea.invalidate(),this.chartArea.chartAreaSet.enumerateData(),this.setDataInfo(),this.chart.redraw(z(b,{animation:this.getAnimationConfig()})),this.chart.updateSideItems());
return this};a.prototype.visible=function(b,a){var c=this.seriesDirty,d=this.chartArea;t(b)?b!==this.isVisible&&(this.isVisible=b,this.dirty=!0,c.pos(!0),c.coord(!0),d.resetTimers()):(this.isVisible=!this.isVisible,this.dirty=!0,c.pos(!0),c.coord(!0),d.resetTimers());this.dirty&&(this.legendEntry&&this.legendEntry.updateCheckbox(this.isVisible),d.series().each(function(b){return b.seriesDirty.pos(!0)}),!1!==a&&this.chart.redraw(a||{animation:this.getAnimationConfig()}),this.triggerUser(this.isVisible?
"show":"hide"));return this};a.prototype.getAnimationConfig=function(){return A({},this.userOptions.animation||this.chart.currentOptions.animation)};a.prototype.select=function(b,a){var c;t(b)&&(c=b);this.points().each(function(c){return c.select(b,a)});this.setState(c?"select":"")};a.prototype.removePoint=function(b,a){-1<b&&(this.userPoints.splice(b,1),this.visualizer.updateInfo={action:"splice",at:b,count:0,del:1},this.invalidate(),!1!==a&&this.refresh())};a.prototype.zoomTo=function(b){var a=
this.ctmIsType("calendar");this._points.length&&this.ctmIsType("map")?(a=this.chart.geoParser.getSeriesBBox(this),0===a[2]&&0===a[3]&&(a=ob(a,[.01,.01])),this.chart.zoom(a,b)):a&&this.chart.zoom(this.currentOptions.attributes.date,b)};a.prototype.remove=function(b){b=this.chartArea;var a=Od(b._series,{id:this.id});-1<a&&(b.spliceSeries(a,1,[]),this.triggerUser("remove"))};a.prototype.yAt=function(b){return this.interpolate("x","y",b)};a.prototype.interpolate=function(b,a,c){var d=this.indexer;b=d.findInterpolatedInfo(b,
c);if(-1!==b.i)return 0<b.inter?(c=d.getValue(a,b.i),a=d.getValue(a,b.i+1),T(c,a,0,1,b.inter)):d.getValue(a,b.i)};a.prototype.getCalcCache=function(){return gz(this)};a.prototype.replaceTokens=function(b,a){return zr(b,this,a||this.getFormatInfo())};a.prototype.tokenValue=function(b){return this.replaceTokens({token:b})};a.prototype.getMapData=function(){var b=J(this.info,["map"]);if("string"===typeof b||b&&0<ya(b).length)return b;b=J(this.userOptions,["map"])||{};return"string"===typeof b?b:b&&0<
ya(b).length?b:J(W,["JSC","internal","_modules","maps","geo",this.userOptions.mapDataId])};a.prototype.setMapData=function(b){Y(this.info,"map",b);return this};a.prototype.getConfig=function(){var b=M({},this.userOptions);b.points=this.userPoints;return b};return a}(mc),cE=function(){function c(a){this.series=a;this.setAll(!0)}c.prototype.setAll=function(a){this.pointData(a);this._coord=this._pos=this._points=a;this.series._ctSvCache=null;this.series._ctmIsTypeCache=null};c.prototype.any=function(){return this._pointData||
this._pointIndex||this._points||this._pos||this._coord};c.prototype.points=function(a){var b=this;return b.getSet(a,b._points,function(a){return b._points=a})};c.prototype.pos=function(a){var b=this;return b.getSet(a,b._pos,function(a){return b._pos=a})};c.prototype.coord=function(a){var b=this;return b.getSet(a,b.series.visualizer.coordDirty,function(a){return b.series.visualizer.coordDirty=a})};c.prototype.pointData=function(a){var b=this;!0===a?(b.pointIndex(a),b.series.chartArea.series().each(function(b){b.seriesDirty.pos(!0)}),
b.resetCache(),b.series.chartArea.chartAreaSet._calcCache=void 0):!1===a&&b.pointIndex(a);return b.getSet(a,b._pointData,function(a){return b._pointData=a})};c.prototype.resetCache=function(){this.series.calcCache=void 0};c.prototype.pointIndex=function(a){var b=this;return b.getSet(a,b._pointIndex,function(a){return b._pointIndex=a})};c.prototype.all=function(a){this.setAll(a)};c.prototype.getSet=function(a,b,c){if(t(a))c(a);else return b};return c}(),ln=function(c){function a(b,d){d=c.call(this,
b,d)||this;d.items=b;d.kindObject=a;d.points=Qa(mb,iA(d),jA(d));return d}L(a,c);a.prototype.options=function(b,a){var c=this.items.length?!1:a,d=this.each(function(a){a.options(b,c)});!c&&!1!==a&&hA(b)&&this.items[0].chart.redraw(a);return d};return a}(mb),dE=function(c){function a(b,a){a=c.call(this,b.chart,a)||this;a.marker=b;a.fillMod="axisMarkerY";return a}L(a,c);a.prototype.styleIconVisual=function(b,a){b=b.base;var c=this.marker.isRange(),d=A({},this.currentOptions),g=d.line,h=g.color||da("outline",
d.color||"white");c?(Y(d,"outline.color",h),c=ic(d)):(Y(d,"line.color",h),Y(d,"line.width",Math.min(4,g.width)),c=wb(d.line));b&&b.attr(c);a.isStyled=!0};a.prototype.getIconPaths=function(b){var a=b[0],c=b[1],f=.8*c;return this.marker.isRange()?{base:sc.square(0,f,b[0],b[1]-2*f),extra:void 0}:{base:eb([[0,c/2],[a,c/2]],{isOpen:!0}),extra:void 0}};return a}(iu),xu={top:"left",middle:"center",bottom:"left",left:"top",center:"middle",right:"bottom"},ss=function(c){function a(b,a){var d=c.call(this,b.chart,
a,[b,a])||this;d.axis=b;d.kind="AxisMarker";d.rootVisuals={path:void 0,label:void 0};d.invalid=!1;d._arrangeInfo={box:void 0,visible:!0,edgeBoxes:[],labelSizes:[],possible:[],used:void 0};d.events={click:new ud};d.isHoriz=!b.isHoriz;d.options(a,!1);return d}L(a,c);a.prototype.init=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];a=F(b,2);b=a[0];a=a[1];t(a.value)?this.defaultContextOptions={legendEntry:{value:a.value.pop?"x"===b.prefix?"%xmin - %xmax":"%min - %max":"%value"}}:this.invalid=
!0;this.axis=b};a.prototype.defaultOptions=function(){if(this.axis){var b=this.axis.options("defaultMarker");return A({color:"#a6bce3",opacity:.8,line:{width:1,onTop:!1},labelPadding:5,legendEntry:{color:"#3a3e4b",value:"%"}},b||{})}};a.prototype.options=function(b,a){var d=this.axis,f=this.optionsGetter(b);if("NotGetter"!==f)return f;t(b.low)&&t(b.high)&&(b.value=[b.low,b.high]);c.prototype.options.call(this,b,a);C(d.userOptions,"markers.length")&&A(d.userOptions.markers[this.getIndexInAx()],b);
d.invalidate();this.syncLegendEntry(b);!1!==a&&(!this.chart.isRendered||!this.isRendered||this.options("label")||this.options("includeInScale")||t(b.value)&&this.legendEntry?(this.render(d.viewState),this.axis.chart.redraw(a)):this.render(d.viewState));return this};a.prototype.normalizeOptions=function(b){b=c.prototype.normalizeOptions.call(this,b);qp(b,"color");qp(b,"line.color");var a=b.value;"object"===K(a)&&t(a.low)&&t(a.high)&&(b.value=[a.low,a.high]);return b};a.prototype.click=function(b){this.trigger("click",
b)};a.prototype.setRootVisuals=function(){return this};a.prototype.setAttribs=function(){var b=this.currentOptions,a=this.axis;this.isRange()?(a="x"===a.prefix?Ja.axisMarkerX:Ja.axisMarkerY,b={fill:hd(a,dc(b.color,1-z(b.opacity,1)))}):b=wb(A({color:b.color,opacity:b.opacity},b.line));this.attribs={path:b,label:void 0};return this};a.prototype.render=function(b,a){this.setOptions().setRootVisuals().setAttribs();var c=this.currentOptions;b=this.axis;var d=c.label||{},g=this.rootVisuals,h=this.renderer.renderer,
k=this.value();if(0!==k.length){var l=this.visualTarget();c=C(c,"line.width");var m=b.getCaPath(k,l,void 0,{lineWidth:k.length?0:c,forMarker:1});c=!g.path;this.invalid=!b.valVisible(k);h=g.path=g.path||this.bindEventsOn(h.path());(h.parentNode!==l.el||U(h.parentNode))&&h.add(l);b=this.attrBuilder({d:m},this.attribs.path,a);b["fill-rule"]="evenodd";c?b.animation=!1:b.reset=!0;h.attr(b);(g=g.label)&&this.getText()&&(this._arrangeInfo.visible?(g.add(l),b=this.attrBuilder(uc(d),{"pointer-events":"none"},
a),(a=this._arrangeInfo.used)&&a.box||(a=this._arrangeInfo.possible[0]),a&&a.box&&(g.rootPanel.visible(!0),d=a.rotation,l=a.textAlignment[0],h=a.textAlignment[1],k=0<d,!k||this.axis.isHoriz||t(this.userOptions.label.rotate)||(d*="right"===l?1:-1),m=0<d,c=k?m?a.box[2]:0:0,m=k?m?0:a.box[3]:0,g.rootVisuals.text.attr({xContentAlignment:k?xu[h]:l,yContentAlignment:k?xu[l]:h,opacity:1}),b.rotate=[d,0,0],!1!==b.autoWrap&&(b.maxWidth=a.box[k?3:2]),b.offsetX=a.box[0]+c,b.offsetY=a.box[1]+m,b.zIndex=1,g.rootPanel.attr(b))):
g.rootPanel.visible(!1));this.isRendered=!0;return this}};a.prototype.bindEventsOn=function(b){var a=this;b.on("click",function(b){a.click(b)});return b};a.prototype.syncLegendEntry=function(b){var a=this,c=a.axis,f=c.chartArea&&a.chart.requestLegend(),g=function(b){if(c.isRadial){var d=P(a.chart.axes().items,function(b){return ee(b.childAxes,c)});return P(f.items,function(a){return(a=a.target.marker)&&a.axis===d&&zc(a.currentOptions.value,b.value)})}};f&&f.isVisible&&f.allowEntries()&&(a.legendEntry?
(b&&t(b.value)&&a.legendEntry.target.options({value:b.value}),a.legendEntry.setColumns()):!1===C(a.currentOptions,"legendEntry.visible")||g(a.currentOptions)||(a.legendEntry=f.addEntry(new dE(a,Ka(a.currentOptions,["id"]))).setColumns(),a.legendEntry.sortOrderValue=mu[a.kind]))};a.prototype.resetTimers=function(){C(this,"_arrangeInfo.used.time")&&(this._arrangeInfo.used.time=0)};a.prototype.visualTarget=function(){var b=this._visualTargets=this._visualTargets||this.axis.chartArea.getAxisMarkerVisualTargets();
return this.options("onTop")?b.front:b.behind};a.prototype.attrBuilder=function(b,a,c){void 0===b&&(b={});void 0===a&&(a={});void 0===c&&(c={});b=A({},b,a,c);c.animation||(b=A(b,{animation:this.chart.options("animation")}));b.opacity=this.invalid?0:1;return b};a.prototype.getText=function(){var b=this.axis,a=C(this.currentOptions,"label.text");a&&-1<a.indexOf("%")&&(a=Mg(a,this,this.chart.getFormatInfo(void 0,"major")),a=b.chartArea.replaceTokens(a));return a};a.prototype.value=function(){var b=this.axis,
a=z(this.currentOptions.value,this._value);return b.normUserValue(a)};a.prototype.isRange=function(){return void 0!==this.value().pop};a.prototype.getIndexInAx=function(){var b=this;return Od(this.axis.currentOptions.markers,function(a){return a.id===b.id})};a.prototype.remove=function(b){this.destroy();this.legendEntry&&!1!==b&&(this.legendEntry.legend.chart.chartAreaSet.reflow(b),this.chart.isRendered&&this.chart.renderer.refresh())};a.prototype.destroy=function(){var b=this.rootVisuals;this.axis.removeMarker(this);
b.path.destroy();b.label&&b.label.destroy();this.legendEntry&&this.legendEntry.destroy()};return a}(mc),yu=function(){function c(a,b,c){this.axis=a;this.valToLin=b;this.range=la(a.range);this.chartArea=c;this.inverted=a.isInverted();this.breaks=a.breaks;this.caRect=la(c.contentRect)}c.prototype.equalsRange=function(a){var b=this.range,c=a.range;if(b.min===c.min&&b.max===c.max){a:{b=this.breaks;c=a.breaks;if(b&&c){if(b.length===c.length){for(var e=0,f=b.length;e<f;e++){var g=b[e],h=c[e];g=g[0]===h[0]&&
g[1]===h[1]?!0:void 0;if(!g){b=void 0;break a}}b=!0;break a}}else if(b===c){b=!0;break a}b=void 0}if(b)return!0===this.inverted!==(!0===a.isInverted())?void 0:!0}};c.prototype.equals=function(a){var b=this.caRect;if(this.equalsRange(a)&&(a=a.chartArea.contentRect,b&&a&&0===np(b,a)))return!0};c.prototype.isValid=function(){if(this.caRect)return!0};c.prototype.rect=function(){return this.caRect=this.caRect||this.chartArea.contentRect};return c}(),eE=function(){function c(){this.items=[]}c.prototype.get=
function(a,b){for(var c=this.items,e=0,f=c.length-1,g;e<=f;){g=Yb.floor((e+f)/2);if(a===c[g].value)return c[g];a<c[g].value?f=g-1:e=g+1}return b?e||0:void 0};c.prototype.add=function(a){var b=this.get(a,!0);if("number"===K(b)){var c=b;b={value:a,clusters:{}};this.items.splice(c,0,b)}return b};c.prototype.toArray=function(){for(var a=this.items,b=[],c=0,e=a.length;c<e;c++)b.push(a[c].value);return b};c.prototype.getShortestRange=function(){var a=void 0,b=wB;return 1<this.items.length?(x(this.items,
function(c,e){e&&(e=c.value-a,e<b&&(b=e));a=c.value}),b):1};c.prototype.getSmallestAbsValue=function(){var a=this.items,b=a.map(function(b){return Math.abs(b.value)}),c=Math.max.apply(Math,G(b)),e=c,f=0;for(a=a.length;f<a;f++){var g=b[f];0<g&&g<e&&(c=this.items[f].value,e=g)}return c};c.prototype.reset=function(){this.items=[]};return c}(),ps={min:1,curly:3,measure:1.5},sj=function(c){return c&&"Point"===c.kind},zu=function(c){function a(b,a,e,f){e=c.call(this,b.chart,e,[b,f,e])||this;e.axis=b;e._value=
a;e.type=f;e.visuals={};e.tickLen=0;e.invalid=!1;e.isDestroyed=!1;e._age=0;e._isNew=!0;e._metrics=void 0;e._visible=!0;e._isRange=t(a)&&!!a.pop;os(e);return e}L(a,c);a.prototype.init=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];var c=F(b,3);b=c[0];a=c[1];c=c[2];this.defMinorTickOptions=c.defaultMinorTick;this.axis=b;this.type=a;this.defaultMutable=!1;this._isRange=t(c.value)&&!!c.value.pop;"function"===typeof c.target&&(this.target=c.target())};a.prototype.setType=function(b,
a){this.type=b;a&&(this.userOptions.target=a);this.setOptions();os(this)};a.prototype.defaultOptions=function(){if(this.axis){var b=this.axis.currentOptions;switch(this.type){case "minor":b=this.defMinorTickOptions||A({},b.defaultTick,b.defaultMinorTick);break;default:b=b.defaultTick||{}}return b}};a.prototype.dependentOptions=function(){return[{option:["line.color","line.width"],check:function(b){return b},dependent:"line.visible",value:!0}]};a.prototype.px=function(b,a){this._px=t(b)&&!Aa(b)?b:
void 0;this._pxPrev=t(a)&&!Aa(a)?a:void 0;return this._px};a.prototype.getTickTargetPanel=function(){var b=this.axis;return this.currentOptions.onTop?b.chartArea.rootVisuals.gridLinesFront:b.chartArea.rootVisuals.gridLinesBehind};a.prototype.options=function(b,a){var d=this.optionsGetter(b);if("NotGetter"!==d)return d;b&&(t(b.value)&&(this._needUpdateText=this._value!==b.value,this._value=b.value,this._isRange=!!b.value.pop),"function"===typeof b.target&&(this.target=b.target()));d=c.prototype.options.call(this,
b,a);U(a)&&Sa(b)&&!this.chart.dirty&&this.axis.options({});return d};a.prototype.setRootVisuals=function(){var b=this.axis,a=this.getTickTargetPanel();b&&!this.rootVisuals&&(this.rootVisuals={ticks:b.rootVisuals.tickSpacer,labels:b.rootVisuals.main,gridLines:a});return this};a.prototype.bindEvents=function(){var b=this;if(b.visuals){var a=b.hasUserEvent("click"),c=b.visuals.labelText;a=a?"pointer":"default";c.on("vclick",function(a){return b.click(a)});c.on("mouseover",function(a){return b.mouseover(a)});
c.on("mouseout",function(a){return b.mouseout(a)});c.attr({cursor:a})}return b};a.prototype.mouseover=function(b){var a=this.target,c=this.chart.touched(),f="x"===this.axis.prefix;if(!1!==this.triggerUser("mouseOver",b)&&a&&sj(a)){var g=a.series;em(this)&&(b=this.axis.chartArea.debounce,a=f?a:g,b.clear("unmute"),Zl(a,"",Yl(this)||(f?"group":"series")),c&&b.defer("unmute",function(){Tb(g.chart)},8E3))}};a.prototype.mouseout=function(b){var a=this.target;if(!1!==this.triggerUser("mouseOut",b)&&a&&sj(a)&&
em(this)){var c=a.series;this.axis.chartArea.debounce.defer("unmute",function(){Tb(c.chart)},230)}};a.prototype.click=function(b){var a="x"===this.axis.prefix,c=this.target;!1!==this.triggerUser("click",b)&&c&&(sj(c)&&em(this)&&"touch"!==b.device?(b=c.series,this.axis.chartArea.debounce.clear("unmute"),Tb(b.chart)):"touch"===b.device&&(this.axis.chartArea.resetTimers(),sj(c)&&(b=a?c:c.series,this.chart.highlighted===b&&Tb(b.chart))))};a.prototype.setPos=function(){};a.prototype.value=function(){var b=
this.axis,a=z(this.currentOptions.value,this._value);return b.normUserValue(a)};a.prototype.render=function(b,a){void 0===a&&(a={});if(this.isDestroyed)return this;this.setOptions().setRootVisuals();var c=this.currentOptions,d=this.axis,g=d.chartArea,h=!1;b=this.visuals;var k=this.renderer,l={},m=k.renderer,n=this._metrics,p=d.isRadial,q=this._positionData,r=this.getVisualTargets(),u=this.value(),y=d.currentOptions.orientation,v="top"===y||"right"===y||"opposite"===y;if("origin"===this.type){var w=
(y=d.userOptions.originTick)&&!1===y.enabled;h=d.linToPos(this._px);(y||0!==h&&1!==h)&&!w&&(c=A({},c,d.currentOptions.originTick))}this._isSquished&&d.currentOptions.defaultHiddenTick&&(c=A({},c,d.currentOptions.defaultHiddenTick));w=c.fill&&"none"!==c.fill;if(t(this._metrics.px)){y=d.tickVisible(u)||c.internal;h=!b.tickLine&&!w;if(y||!h){h=void 0;h=wb(c.line||{});var E=h["stroke-width"]||0;if(!w){var I=b.tickLine=b.tickLine||m.path().attr({opacity:0}).add(r.line),D=void 0;if(this._rngData)if(p=this._rngData.renderData)l=
A({d:p.d},p.pathOptions);else{l={};p=d._rngData.origin;var B=d.duV("inside"===c.placement),G=p[B.vc],F=[];p=function(b){var a=[],d=[];d[B.vc]=G;d[B.hc]=b;a.push(pd(r.tick,d,E));Rg(a,B.o,z(c.line.length,5));F.push(fb(a))};p(this._metrics.px[0]);p(this._metrics.px[1]);l={d:wa(F)}}else D=q.tickPoints,q=p?D[0]:pd(r.tick,D[0],E),p=p?D[1]:pd(r.tick,D[1],E),l={d:q?fb([p,q]):"M0 0"};D=this.attrBuilder(l,h,a);l={};I.attr(D)}if(a.onCa){h=!b.gridLine;k=Ra(c.gridLine||{});v="column"===k.width;var H=w?!0:!d.autoHideGrid();
h&&!Jd(c.gridLine)||!r.grid||(Dc(k,k,"visible","visible",function(b){return"auto"===b?H:b}),v&&(n=d.isStackedFull(),k.width=n?d.clusterWidth(this._value):d.clusterWidth(),k.caps=g.hasRoundCaps?"round":void 0,delete k.dashStyle),k=wb(k),n=u,v&&(v=k["stroke-width"],"column"===v&&(v=d.clusterWidth()),v&&(k["stroke-width"]=Math.round(v+E)),this._isRange&&"category"===d.type&&(n=Zf(u))),d=d.getCaPath(n,r.grid,void 0,{lineWidth:k["stroke-width"],multiShape:this._isRange}),b=b.gridLine=b.gridLine||m.path(d).attr({opacity:0}),
b.parentNode&&b.parentNode===r.grid.el||b.add(r.grid),h=this.attrBuilder({zIndex:5,d:d},k,a),(d=J(h,["caps","size"]))&&d!==h["stroke-width"]&&(h.caps.size=h["stroke-width"]),b.attr(h))}else{h=uc(ns(this,c.label));g=n.text;Y(c,"label.text",g);var N=this.angledAttr();l.val=g;l=this.attrBuilder(l,A({autoWrap:"none"},h),a);t(h.opacity)&&(l.opacity=h.opacity);l=Ka(l,["rotate","x","y"]);p=N.rotate?N.rotate.length?N.rotate[0]:N.rotate:0;m=z(c.outline&&c.outline.width,1);q=tr(c);u="inside"===C(d.currentOptions,
"defaultTick.placement");h=c.line.length;q=c.padding-(q?2*m:0);I={padding:p?0:q,radius:c.radius,corners:c.corners,fill:c.fill,outline:c.outline};!p&&w&&(I.shape={callout:{position:d.isHoriz?[.5,v!==u?1:0]:[v!==u?0:1,.5],size:[h,h]}});N=A(N,Ig(I));w&&(N.zIndex=3);x(["animation","margin"],function(b){l[b]&&(N[b]=l[b],delete l[b])});if(!b.label){var K=b.label=k.box();b.labelText=k.textStack(g).add(K);K.add(r.label);this.bindEvents();if(this.chart.inited){var L=l.opacity,M=l.animation;K.renderer.isAnimationDisabled(l)||
(N.opacity=0,K.await(function(){K.el.transition({middle:{to:{opacity:L}},end:{opacity:L},animation:M})}))}}N.xContentAlignment=l.xContentAlignment=this.contentAlignment();l.width=n.textSize[0];l.height=n.textSize[1];if(this.isCrosshair||"sp"===this.axis.prefix)l.animation={duration:0};b.labelText.attr(l);k=p?0:q;!p&&k&&(N.x-=k,N.y-=k);b.label.attr(N);tr(c)&&!p&&(k=b.labelText.setPreliminarySize().getBbox(),n=b.label.getPaddingOffset(k.width,k.height),k=n.left,n=n.top,m&&(n-=m*(d.isHoriz?u&&v||!u&&
!v?-1:1:0)),(k||n)&&b.label.attr({x:N.x-k,y:N.y-n}))}this.visible(y,a)}this._isNew=!1}return this};a.prototype.contentAlignment=function(){if(this._isRange&&!1===this._rngData.rotate&&!1!==this.currentOptions.enabled)return"center";switch(this.axis.sideIndex()){case 0:case 2:return"center";case 1:return"left";case 3:return"right"}return null};a.prototype.getVisualTargets=function(){return this.axis.getVisualTargets(this.currentOptions,this._isRange)};a.prototype.angledBounds=function(){var b,a=this.metrics().textSize;
if(b=this.angledAttr())return tk([b.x,b.y,a[0],a[1]],b.rotate)};a.prototype.angledAttr=function(){var b=this.axis,a=b.currentOptions,c=this._positionData,f=c.textBBox,g=va(f),h=z(a.defaultTick.padding,3),k={x:f[0],y:f[1]},l=this.labelSize,m=l[0];l=l[1];if(t(this._cxyRotate))k.rotate=[this._cxyRotate,g[0]-f[0],g[1]-f[1]];else if((!this._isRange||this._isBaseRange)&&b.isHoriz){f=b.sideIndex();f=0===f||1===f;g=C(a,"defaultTick.label.rotate");a=z(g,a.autoRotate);var n=[0,0];if("angled"===b.labelMode&&
a){k.x+=c.textBBox[2]/2;a=lo(a);c=Yc(0,0,a-90,l/2).x;f?(k.x-=c,0>a?n=[0,l]:(n=[m,l],k.x-=m),b.isHoriz&&(k.y=b.tickMetricsData.getMaxLength()-this._metrics.tickLength-h-l)):(k.x+=c,0>a&&(n=[m,0],k.x-=m));if(this._isBaseRange&&b.isHoriz){c="inside"===this.currentOptions.placement;var p=ge(a)*Math.abs(Math.cos(a*Math.PI/180)),q=Math.abs(Math.sin(a*Math.PI/180));p*=m;l*=q;var r=Math.abs(this._metrics.px[1]-this._metrics.px[0]),u=Math.max(0,Math.abs(p)+Math.abs(l)-r);b=U(g)?r/b.tickMetricsData.getMaxLength():
1;k.x=u?k.x-(f?-1:1)*ge(a)*(r*b/2-l/2):k.x-(f?-1:1)*p*b/2;c&&(k.y-=q*(m/2+h+this.tickLen))}k.rotate=[a,n[0],n[1]]}}k.rotate||(k.rotate=[0,0,0]);return k};a.prototype.metrics=function(b){void 0===b&&(b={});var a=this.currentOptions,c=this.axis,f=this.tickLen=z(J(a,["line","length"]),5),g=z(this.currentOptions.padding,3),h=this._px=c.getCaLen(this.value());c=c.valToAngle(this.value());if(!Kd(a.label))return this.labelSize=[0,0],this._metrics={angle:c,px:h,textSize:[0,0],tickLength:f,tickPadding:g};
var k=this.renderer,l=this.getText(),m,n;if(n=this._metrics)n=this._metrics,a=a.label.style,void 0===a&&(a={}),n=n.text===l&&n.fontFamily===a.fontFamily&&n.fontSize===a.fontSize&&n.fontStyle===a.fontStyle&&n.fontWeight===a.fontWeight;n&&(m=!0);a=this._metrics||{};if(m)this._metrics=A(a,{tickLength:f,tickPadding:g,px:h,angle:c});else{m=uc(ns(this));k=k.textStack(l);k.attr(A({autoWrap:"none"},m));n=k.composeCombinations()[0];var p=void 0;!~l.indexOf(" ")||~l.indexOf("<br")||~l.indexOf("\n")||~l.indexOf("</")||
"none"===m.autoWrap||(k.attr({maxWidth:n.minSize.width.px-1,autoWrap:"auto"}),p=k.composeCombinations()[0],p=[p.minSize.width.px,p.minSize.height.px]);n=this.labelSize=[n.minSize.width.px,n.minSize.height.px];k.destroy();this._metrics=A(a,{tickLength:f,textSize:n,primTextSize:n,altTextSize:p,text:l,fontFamily:m.fontFamily,fontSize:m.fontSize,fontStyle:m.fontStyle,fontWeight:m.fontWeight,tickPadding:g,px:h,angle:c})}t(b.altTextSize)&&(f=this._metrics,f.textSize=this.labelSize=(b.altTextSize?f.altTextSize:
f.primTextSize)||f.textSize);return this._metrics};a.prototype.getText=function(){var b,a=this,c=a.currentOptions,f=a.axis,g="category"===f.type,h=a.value(),k=C(c,"label.text"),l=a.type+(a.isFirst?" first":""),m=f.getFormatInfo(ka(h)?h[0]:h,l);m=m.culture+m.fStr;var n;"function"===typeof c.target&&(n=c.target());var p=n||(f.chartArea.replaceTokens?f.chartArea:f.chart);if(!a._formattedText||m!==a._formatInfoHash||a._needUpdateText){k||("minor"===a.type?k=C(f.currentOptions,"defaultMinorTicklabel.text"):
"major"===a.type&&(k=C(f.currentOptions,"defaultTicklabel.text")));n=K(k);var q=f.getFormatInfo(void 0,"major");c=function(b,c,d){c=t(c)&&"function"===typeof c.pop&&2===c.length?{value:Rs(c),min:c[0],max:c[1]}:{value:c,name:c};q.isTime&&d&&delete q.isTime;b=Ei(b,c,q);a._formattedText=p.replaceTokens(b)};k?"function"===n?(k=z(k(function(b){return g&&b.pop&&2===b.length&&0===b[0]%.5&&0===b[1]%.5?1===ma(b[0],b[1])?sa(Zf(b)):[b+.5,b-.5]:b}(h)),"")+"",a._formattedText=k?Ei(k,{value:h},(b={},b[f.prefix]=
f.getFormatInfo(h,l),b)):""):"string"===n&&(b=ee(k,"%"),n=ee(k,"{"),b&&g&&"function"===typeof h.pop?c(k,f.format(h,{tickType:l},!0)):b||n?c(k,n?h:hb(h,function(b){return f.format(b,{tickType:l})}),!n):a._formattedText=k):a._formattedText="category"!==f.type?"time"===f.type&&2===h.length?f.format(h[0],{tickType:l}):hb(h,function(b){return f.format(b,{tickType:l})}):f.format(h,{tickType:l});a._formattedText=Rs(a._formattedText);m=hb(h,function(b){return f.getFormatInfo(b,l)});h=m[0]||m;a._formatInfoHash=
h.culture+h.fStr}a._needUpdateText=!1;return a._formattedText};a.prototype.invalidate=function(){this.invalid=!0;return this};a.prototype.validate=function(){this.invalid=!1};a.prototype.attrBuilder=function(b,a,c){void 0===b&&(b={});void 0===a&&(a={});void 0===c&&(c={});b=A(a,b);t(c.animation)?A(b,{animation:c.animation}):!1===c?b.animation=!1:b=A(b,{animation:this.chart.options("animation")});this.invalid||(b.opacity=1);return b};a.prototype.remove=function(b){this.destroy();!1!==b&&this.axis.renderOnCa(b)};
a.prototype.destroy=function(){var b=this,a=0,c=this.axis;-1<(a=c._ticks.indexOf(this))&&c._ticks.splice(a,1);Ff(c.currentOptions.customTicks,function(a){return a.id===b.id});Ff(c.userOptions.customTicks,function(a){return a.id===b.id});a=this.visuals;a.gridLine&&a.gridLine.destroy();a.tickLine&&a.tickLine.destroy();a.label&&a.label.destroy();this.ciManager.remove(this)};a.prototype.visible=function(b,a){var c=this,d=this.visuals,g=function(b,d){b&&b.attr(c.attrBuilder({},{opacity:d?1:0},a))},h=function(b){g(d.gridLine,
b);g(d.tickLine,b);d.label&&g(d.label.el,b);c._visible=b};b!==this._visible&&h(b)};return a}(mc),tj,fE=["scale","staticColumnWidth","spacingPercentage"],gE=(tj={},tj[1]={line:{visible:!0}},tj[0]={line:{visible:!1}},tj),hE=function(c){var a={scale:{type:"auto",defaultBreak:{type:"zigzag",line:{width:10,color:"#d6d6d6"}}},crosshair:{snapToData:!0,gridLine:{width:1,dashStyle:"longdash",color:"#BDBDBD",visible:!0},fill:"#fff",outline:{color:"#a9a9a9"},radius:3,corners:"round"},label:{align:"center",margin:5,
style:{color:"#474747",fontSize:"13px",fontWeight:"normal"}},line:{color:"#A0A0A0",width:1},defaultTick:{gridLine:{width:1,color:"#e6e6e6",visible:"auto"},line:{color:"#e2e2e2",length:5},label:{offset:"0,0",style:{color:"#5f5f5f",fontSize:"12px"},margin:5},fill:"none",outline:"none",padding:3},defaultMinorTick:{gridLine:{width:1,color:"rgba(223,223,223,0.59)",dashStyle:"ShortDash"},line:{color:"#e2e2e2",length:4,width:1},padding:3,label:{style:{color:"#7b7b7b"}}},defaultHiddenTick:{label:{opacity:.05,
offset:null},gridLine:{opacity:.2},line:{opacity:.5}},spacingPercentage:.2,originTick:{gridLine:{color:"#f0cfcd"}},autoRotate:-45};if("y"===c.prefix){var b=c.range,d=b&&b.min,e=b&&b.max;if(t(d)&&t(e)){var f=Math.max(Math.abs(d),Math.abs(e));1E4<f&&(c.type||c.isLog()||(a.defaultTick.label.text=function(b){var a=c.currentOptions.formatString||"",g="c"===a[0];a=a.slice(1);var h=g?"c":"n";if(b){var n=(e-d)/(c._ticks.length||1);b=F(ct(f),2);var p=Math.pow(1E3,b[0]);n=Math.log(p/n)/Math.log(10);return"{%value/"+
p+":"+h+(a||Math.max(g?2:0,0<n?Math.ceil(n):0))+"}"+b[1]}return"{%value:"+h+(a||(g?2:0))+"}"}))}}c.isLog()&&(a.formatString="g10");c.isHoriz||(A(a,{alternateGridFill:"#f7f7f7"}),delete a.autoRotate);if("x"===c.prefix){var g=(b=c.range)&&b.min;b=b&&b.max;t(g)&&t(b)&&1E3<=g&&9999>=b&&(a.formatString="d")}return A(a,gE[c.chart.getStyling()])},Au=function(c,a){!a&&c&&c.pop&&(a=c[1],c=c[0]);c>a&&(a=F([a,c],2),c=a[0],a=a[1]);return[c,a]},mn=function(c){return{string:"string",category:"string",number:"number",
date:"time",time:"time"}[c]||c},iE=function(c){var a="category"===c.type,b=!!c.syncAxis,d=C(c.userOptions,"defaultTick.gridLine");if("x"===c.prefix&&a){if(c.isHeatmap)return!0;if(d&&Jd(d))return!1;var e=c.getSeriesColl().items,f=Ia(B(e,function(b){return b.yAxis}));d=c.isRadial;var g=function(){var b;try{for(var a=xa(f),c=a.next();!c.done;c=a.next()){var d=c.value.range;if(!d||0!==d.min&&0!==d.max)return!1}}catch(u){var e={error:u}}finally{try{c&&!c.done&&(b=a.return)&&b.call(a)}finally{if(e)throw e.error;
}}return!0}(),h=Ia(B(e,function(b){return b.info.type.seriesType})),k=function(b){return 0===ea(b,function(b){return"column"!==b&&"area"!==b&&"variwide"!==b}).length};e=0<ea(e,function(b){return b.info.hasYRanges}).length;var l=function(){var b;try{for(var a=xa(f),d=a.next();!d.done;d=a.next()){var e=d.value;if(e){var g=e.getValToLin()(0);switch(c.sideIndex()){case 0:case 3:return 0===g;case 1:case 2:return 1===g}}}}catch(y){var h={error:y}}finally{try{d&&!d.done&&(b=a.return)&&b.call(a)}finally{if(h)throw h.error;
}}};return!d&&g&&l()&&!e&&k(h)&&a||a&&b}},jE=function(c){var a=c.chartArea;if(a.chartAreaSet&&a.axes&&!c.userOptions.alternateGridFill){var b=a.axes({prefix:"y"}).items.length;a=a.chartAreaSet.freeAxes.y.id;if(1<b&&c.id!==a)return!0}},uj=function(c){function a(b,a,e){var d=c.call(this,b.chart||b,a,[b,e,a])||this;d.serList=[];d.catList=[];d.dataPositions=new eE;d.clusterCounts={};d.originValue=void 0;d.min=void 0;d.max=void 0;d.breaks=[];d.events={setRange:new ud};d.isVisible=!0;d.type="";d.usedDataKeys=
[];d.noData=!0;d.dataInfo={precision:0,seriesTypesUnique:[],serColl:void 0};d.isPrivate=!1;d.childAxes=[];d._ticks=[];d._markers=[];d.labelMode="normal";d.altGridFillVisuals=[];d.attribs={};d.initSizeMetrics=function(){d._sizeMetrics={clipped:[0,0],bbox:[0,0,0,0],length:0,size:[0,0],labelSize:[0,0],history:[]}};d.toPosition=function(b){var a=K(b),c="category"===d.type;if("string"===a)-1<b.indexOf("%")&&(b=d.chartArea.chartAreaSet.replaceTokens({token:b},d.getFormatInfo()));else{if(b.pop)return a=
typeof b[0],b=B(b,function(b){return d.toPosition(b)}),c&&!d.isRadial&&"string"===a&&(b=ta(b),b=Df(b,-.5)),b;if("object"===a&&"time"===d.type)return Yk(b,d.range?d.range.min:d.min,d.range?d.range.max:d.max);if(c)return b}return d._toPosition(b)};d.toText=function(b){return b};d._toPosition=function(b){return b};d._autoTimeFormats={};d._incompatableTypes={stackedFull:"time"};d.overflowSize={tL:[0,0],bR:[0,0],margins:[0,0,0,0]};d._nRects=[];d.zoomRange=[];"chartArea"===b.kind&&(b._axes.push(d),("x"===
e?b.xAxis:b.yAxis).push(d),b.chartAreaSet._axes.push(d));d.initSizeMetrics();d.possibleKeys=zA(e);d.resetMetricsData();d.initFP();d.options(a,!1);return d}L(a,c);a.prototype.getFormatInfo=function(b,a){var c=!!a,d=c?"_formatInfo":"_formatInfoData";if(!this[d]||t(b)){var g={},h=this.currentOptions,k=this.dataType,l=0,m=!1;a&&(m=a.split(" "),a=m[0],m="first"===m[1]);g.fStr=h.formatString;g.culture=h.cultureName||this.chart.currentOptions.defaultCultureName||"en-US";g.fStr?(g.fStrStrict=!0,g.precision=
this.dataInfo.precision):"number"===k?(!1!==this.options("defaultTick.enabled")&&this.tickPositions&&this.tickPositions.all.length&&(l=$f(xA(this.tickPositions.all))),a=void 0,!c&&t(a=this.dataInfo.precision)&&(a=Math.min(a,3),a=Math.max(a,l),g.fStr="n"+a)):"time"===k&&(g.fStr=t(b)?{year:"yyyy",month:"MMM",day:"d",hour:"t",minute:"t",second:"T",millisecond:"fff"}[Xk(b)]:"d",g.fStr=this._autoTimeFormats[a]||g.fStr,"major"===a&&m?g.fStr=this._autoTimeFormats.majorFirst:"minor"===a&&m&&(g.fStr=this._autoTimeFormats.minorFirst));
g.isTime="time"===k;!g.fStr||g.isTime&&t(b)||(this[d]=g)}return g||this[d]};a.prototype.format=function(b,a){var c=this;a=c.getFormatInfo(b,(void 0===a?{tickType:null}:a).tickType);var d=function(b){return t(b)&&b.toFixed&&-1<b&&c.catList.length>b?c.catList[b]:""};if("category"===c.type){if(t(b)){if(b.pop&&2===b.length&&0===b[0]%.5&&0===b[1]%.5)if(1===ma(b[0],b[1]))b=sa(Zf(b));else return b=ta(b),hb([b[0]+.5,b[1]-.5],d);if(d=d(b))return d}}else{if("time"===c.type)return a=a.fStr,c.formatter("object"===
typeof a?a:void 0).formatDate(new Date(b),a);c.isStackedFull()&&(b*=100)}return c.formatter().formatNumber(b,a.fStr)};a.prototype.formatter=function(b){if(b)return new Vg(this.currentOptions.cultureName||"en-US",b);this._formatter||(this._formatter=new Vg(this.currentOptions.cultureName||"en-US",{}));return this._formatter};a.prototype.init=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];a=F(b,2);b=a[0];a=a[1];"chartArea"===b.kind&&(this.chartArea=b);this.prefix=a;this.defaultContextOptions=
C(this.chart,"typeContextOptions.axes."+a)||{};var c=b.ctManager||b.ctm;b.isHoriz||c&&c.isHoriz()?this.isHoriz="y"===a?!0:!1:"x"===a&&(this.isHoriz=!0);this.isRadial=!1;this.updateOptions={animation:this.chart.options("animation")};this.defaultMutable=!0};a.prototype.initFP=function(){var b=this;b.ticks=Qa(mb,function(){return b._ticks},function(){return 0},{push:function(a,c){b.userOptions.customTicks=b.userOptions.customTicks||[];b.userOptions.customTicks.push(a);b.setOptions();!1!==c&&(b.render(void 0,
c).renderOnCa(c),!b.valVisible(a.value)&&b.chart.redraw(c))}});b.markers=Qa(mb,function(){return b._markers},function(){return 0},{push:function(a,c){AA(b,a,c);!1!==c&&b.renderOnCa(c);b.chart.chartAreaSet.reflow(c);!1!==c&&!b.valVisible(a.value)&&b.chart.redraw(c)}})};a.prototype.normalizeOptions=function(b){var a,e;b=c.prototype.normalizeOptions.call(this,b);"undefined"!==(e=K(a=J(b,["scale","range"])))&&"array"===e&&("time"===b.scale.type&&(O(a[0])&&(a[0]=Oi(a[0])),O(a[1])&&(a[1]=Oi(a[1]))),Y(b,
"scale.range",{min:a[0],max:a[1]}));t(J(b,["scale","invert"]))&&Y(b,"scale.invert",!0===J(b,["scale","invert"]));x(b.markers,Ab);b.customTicks&&(b.customTicks=B(b.customTicks,function(b,a){if("number"===typeof b)return{value:b};b._lI=a;return b}));return b};a.prototype.defaultOptions=function(){var b=this.chart.options("defaultCultureName");this.defaultContextOptions.cultureName=b||"en-US";b=hE(this);var a=this.chart.currentOptions.defaultAxis;a&&A(b,a);return this.defaultContextOptions?A(b,this.defaultContextOptions||
{}):b};a.prototype.dependentOptions=function(){return[{option:["line.color","line.width","line.breaks"],check:function(b){return b},dependent:"line.visible",value:!0}]};a.prototype.options=function(b,a){var c=this.chart,d=c.currentOptions.defaultAxis||{},g=this.optionsGetter(b);if("NotGetter"!==g)return g;b=A({},b);b=this.normalizeOptions(b);this.invalidate();g=(g=b.orientation)&&g!==this.userOptions.orientation;var h=ya(b);0<jc(h,fE).length&&x(this.serList,function(b){return b.seriesDirty.all(!0)});
A(this.userOptions,b);this.setOptions();t(h=this.options("visible"))&&(this.isVisible=h);this.currentOptions.staticDraggable&&(this._isDragHost=!0);b.events&&(h=b.events.setRange)&&this.events.setRange.on(h);(b.defaultTick||b.defaultMinorTick)&&this.ticks().each(function(a){A(a.defMinorTickOptions,b.defaultTick,b.defaultMinorTick);a.options({},!1)});g&&this.isAdded&&this.resetVisuals();g=this.rootVisuals;(b.label||d.label)&&g&&g.label&&g.label.options(this.currentOptions.label);t(b.caOffset)&&(d=
this.getParentPanel(),(g=this.rootPanel.parent)&&g!==d&&(this.parentLayoutItem=d||this.renderer,this.rootPanel.add(d),this.applyCaOffset()));if(!1!==a){a=this.normalizeUpdateOpt({animation:c.currentOptions.animation},a);this.chartArea.invalidate();this.setRange();c.redraw(a);var k=!0}c.triggerOptionsApplied("axis",this);!k&&this.afterUpdate(a);return this};a.prototype.getParentPanel=function(b){b=b||this.rootPanel.parent;return t(this.currentOptions.caOffset)&&!1!==this.isVisible&&b&&b instanceof
ah?b.parent:b};a.prototype.invalidate=function(){this._formatter=this._formatInfoData=this._formatInfo=void 0;this.setOptions();return this};a.prototype.getRange=function(){var b=this.range;return{min:b.min,max:b.max,dataMin:this.min,dataMax:this.max}};a.prototype.getCategories=function(){return"category"===this.type?this.catList?this.catList.slice(0):[]:void 0};a.prototype.syncLegend=function(){x(this._markers,function(b){b.syncLegendEntry()})};a.prototype.setData=function(b){void 0===b&&(b=!1);
var a=this,c=a.prefix,f=a.chartArea,g=a.currentOptions,h=C(g,"scale.syncWith")||"",k=f.isZoomLive(),l=[],m=0,n=[],p=f.ctManager,q=p.isType("heatmap")||p.isType("calendar");a.isHeatmap=q;p=a.chart.options("axisToZoom");var r=f.getZoomAxes()[0],u="y"===c&&r&&(!p||-1===p.indexOf("y"))&&(r&&r.isZoomed||f.axes("x").isZoomed);a.options("type");if(this._isDragHost)return this;f=a.dataInfo.serColl=a.getSeriesColl(function(b){return b.isVisible});if("map"===a.options("type")){var y=!0;f.each(function(b){y&&
"map"!==b.type&&(y=!1)});f=a.dataInfo.serColl=f.filter(function(b){return"map"!==b.type});if(y)return a.mapsOnly=!0,this}f.each(function(b){return b.seriesDirty.pointIndex()&&b.setDataInfo()});var v=[];if(a.applyAxisSync(h,f))return this;var w=a.possibleKeys.slice(0);a.isStackedFull()&&w.splice(w.indexOf("y"),1);f.each(function(b){n.push.apply(n,G(jc(b.indexer.getKeys(),w)))});if(!n.length)if(g=J(g,["scale","range"]),!g||g.pop||t(g.min)||t(g.max)||(g=void 0),g&&"none"!==h)a.data=g.slice?g.slice(0):
[g.min,g.max];else return a.noData=!0,this;a.noData=!1;a.usedDataKeys=Ia(n);var x=!0;a.serList=f.each(function(b){var c=b.indexer,d;v.push(b.type);if(u&&b.xAxis.isZoomed){var e=b.xAxis.range;e=[e.min,e.max];if(b.info.labelTextInfo.xNotSorted){for(var f=c.data.x,g=c.data.y,h=d=void 0,n=void 0,p=void 0,r=[],w=0,y=f.length;w<y;w++){var t=f[w];if(void 0===d||t>e[0]&&t<d)d=t,r[0]=w;if(void 0===h||t<e[1]&&t>h)h=t,r[1]=w;t<e[1]&&t>e[0]&&(t=g[w],(void 0===n||n<t)&&(n=t),(void 0===p||p>t)&&(p=t))}f=[p,n]}else r=
[c.findInterpolatedInfo("x",e[0]),c.findInterpolatedInfo("x",e[1])],r=[r[0].i+1,r[1].i],-1===r[0]&&-1===r[1]?r=void 0:(-1===r[1]?r=[r[0]]:-1===r[0]&&(r[0]=0),2===r.length&&(r[1]++,r[1]=ua(r[1],r[0]+1,c.lengths.x-1)),f=[b.yAt(e[0]),b.yAt(e[1])])}w=0;for(e=a.usedDataKeys.length;w<e;w++)if(g=a.usedDataKeys[w],"svv"===g||"svxv"===g?d=c.dataFlat[g]:(d=c.getKey(g),r&&(d=d.slice.apply(d,G(r)),"y"===g&&(d.splice(0,0,f[0]),d.push(f[1])))),q&&(d=Ia(d)),d&&d.length){h=l.length;n=0;for(p=d.length;n<p;n++)y=d[n],
x&&l[n+h-1]>y&&(x=!1),l.push(y);k?m=a.dataInfo.precision:(d=c.uniqTypes[g])&&-1<d.indexOf("number")&&(m=Math.max(c.countDecimals(g),m))}a.isHeatmap&&(l=Ia(l));I=I||b.info.labelTextInfo.xNotSorted||!1===b.info.xIsSorted||!1===x}).items;var I="x"!==c?!0:I;a.dataInfo={precision:m,seriesTypesUnique:Ia(v),serColl:f};a.data=l;Ff(l,function(b){return Jb(b)||Aa(b)});l&&"object"===typeof l[0]?(c=B(l,function(b){return b.getTime()}),a.dataSortedUniq=B(ed(I?ta(c):c),function(b){return new Date(b)})):a.dataSortedUniq=
ed(I?ta(l):l);a.invalidate();!b&&a.detectType();return this};a.prototype.applyAxisSync=function(b,a){var c=this;b||(b=wA(this,a));if(b=this.syncAxis=this.ciManager.exists(b)){this.min=b.min;this.max=b.max;this.range=la(b.range);this.type=b.type;this.dataType=b.dataType;this.usedDataKeys=b.usedDataKeys.slice(0);this.catList=b.catList.slice(0);this._toPosition=b._toPosition;var d=C(b.currentOptions,"scale.type");d&&!C(this.userOptions,"scale.type")&&(this.currentOptions.scale=this.currentOptions.scale||
{},this.currentOptions.scale.type=d);"category"===b.type&&(a.each(function(b){b.reIndexStringVals(c)}),a.items.length||(this.dataPositions=la(b.dataPositions),this.resetTicksLabels()));this.setViewState(!0);return!0}};a.prototype.detectType=function(){var b=this,a=this,c=[],f,g=[],h=a.usedDataKeys;if(a.mapsOnly)return a.dataType=mn("number"),this;var k=a.getSeriesColl().items;x(k,function(b){x(h,function(d){(f=b.indexer.uniqTypes[d])&&c.push.apply(c,G(f));f&&"string"===f[0]?(g.push(b.indexer.getKey(d)),
b._catCache=b._catCache||[],b._catCache[d]=b.indexer.getKey(d)):"category"===a.type&&f&&"number"===f[0]&&C(b._catCache,NaN+d+".length")&&g.push(b._catCache[d].slice(0))})});g=B(g,Ia);var l=a.currentOptions.categories,m=l&&l.length;if(m)if(g.length){l=l.slice(0);var n=[];g.forEach(function(b){return n.push.apply(n,G(b))});n=Ia(n);var p=ea(n,function(b){return-1===l.indexOf(b)});p.length?(g=l,g.push.apply(g,G(p))):g=l}else g=l;c=Ia(c);p=c[0];1<c.length||(a.dataType=mn(p));p=C(a.userOptions,"scale.type");
p=this.checkTypeCompatability(p,a.dataType)&&p||C(a.contextOptions(),"scale.type");var q=function(b){a.dataType=mn(a.type="category");a.catList.length&&b.length&&a.catList.join("")!==b.join("")&&a.resetTicksLabels();var c=a.catList=b;a.childAxes&&x(a.childAxes,function(b){return b.resetTicksLabels()});a._toPosition=function(b){return c.indexOf(b)}};-1<c.indexOf("string")?("time"===p?(a.dataType=a.type="time",a._toPosition=Oi):"map"!==a.chart.ctManager.settingVal("chartType")&&q(m?g:fz(g)),x(k,function(a){a.reIndexStringVals(b)}),
a.setData(!0)):-1<c.indexOf("date")?(a.dataType=a.type="time",a._toPosition=Oi):-1<c.indexOf("number")&&g&&g.length?(q(g),a.dataType="number",a._toPosition=function(b){return b}):g&&g.length&&!p?(q(g),a.dataType="number",a._toPosition=function(b){return b}):"time"===p&&(a.dataType=a.type="time");a.originValue="category"!==a.type&&"time"!==a.type?0:void 0;this._duV=void 0;return this};a.prototype.checkTypeCompatability=function(b,a){var c=!b||!a||this._incompatableTypes[b]!==a;!c&&oa.emit("warning",
this.id,"incompatableAxisTypeOptions",{container:this.chart.getWrapper(),data:[b,a]});return c};a.prototype.getSeriesColl=function(b){var a=this,c=a.parentAxis||a;if(b){if("function"===typeof b)return a.chart.series(function(d){var e;return(null===(e=d[a.prefix+"Axis"])||void 0===e?void 0:e.id)===c.id&&b(d)});b[a.prefix+"Axis"]={id:c.id};return a.chart.series(b)}return a.chart.series(function(b){var d;return(null===(d=b[a.prefix+"Axis"])||void 0===d?void 0:d.id)===c.id})};a.prototype.setRange=function(b,
a){function c(b){var a=[],c=k.markers;b=b.getCustomTicks();var d=[];c&&a.push.apply(a,G(c));b&&a.push.apply(a,G(b));x(a,function(b){b.includeInScale&&(b=r(b.value),b.pop?d.push.apply(d,G(b)):d.push(b))});d.length&&(a=[Math.min.apply(Math,G(d)),Math.max.apply(Math,G(d))],v=Math.max(v,a[1]),y=Math.min(y,a[0]))}var d=this,g=this,h=g.syncAxis,k=g.currentOptions,l=g.currentOptions.scale,m,n={axOptions:k,axLength:g._sizeMetrics.length},p=g.range,q=A({},g.range),r=g.toPosition;if(g.noData||g._isDragHost||
g.mapsOnly)return this;p=function(b){y=g.min=b[0];v=g.max=b[1]};var u=g.dataSortedUniq;u=[u[0],u[u.length-1]];h?p([h.min,h.max]):("time"==g.dataType?p(B(u,g._toPosition)):p(u),c(this));y===v&&(y-=.2,v+=.2);!h&&Dc(n,g.userOptions,function(b,a){Jb(a)||(t(a.min)&&(b.userMin=r(a.min)-.2),t(a.max)&&(b.userMax=r(a.max)+.2))},"scale.range");Dc(n,g.userOptions,function(b,a){null!==a&&"object"===typeof a&&"time"!==g.dataType&&"time"!==g.type?oa.emit("warning",g.id,"objInterval",{data:[g.prefix],container:d.chart.getWrapper()}):
b.userInterval=a},"scale.interval");g.snapToZero=!1;l.includeOrigin?n.snapZero=!0:"time"!==g.type&&"y"===g.prefix&&g.getSeriesColl({info:{type:{snapToZero:!0}}}).items.length&&(n.snapZero=!0);g.snapToZero=n.snapZero;!h&&g.setAutoScaleBreaks();n.breaks=h?h.breaks:g.breaks;!h&&Dc(n,g.currentOptions,function(b,a){"array"===K(a)&&(b.breaks=a)},"scale.breaks");n.minInterval=C(k,"scale.minInterval");n.userMinorInterval=l.minorInterval;if(g.isZoomed){var y=g.zoomRange[0],v=g.zoomRange[1];n.userMin=y;n.userMax=
v;p=g.range=Jg(y,v,8,n);p.min=y;p.max=v}else h=C(g.userOptions,"scale.range.min"),l=C(g.userOptions,"scale.range.max"),p=z(h,y),u=z(l,v),g.isStackedFull()?(p=g.range=Jg(y,v,10,n),p.min=0,p.max=1):"z"!==g.prefix||n.snapZero?(p=g.range=Jg(p,u,8,n),"time"===g.type&&(p.min=y,p.max=v)):p=g.range={min:g.min,max:g.max},t(h)&&(p.min=r(h)),t(l)&&(p.max=r(l)),g.unZoomedRange={min:p.min,max:p.max};t(m=C(k,"scale.minorInterval"))&&"number"===typeof m&&(p.minorInterval=m);t(m=C(k,"scale.interval"))&&m&&"auto"!==
m&&(p.interval=m);t(m=C(k,"scale.zoomLimit"))?g.zoomLimit=m:g.zoomLimit=g.viewState?Math.max(g.linToVal(5)-g.linToVal(0),.001*(g.max-g.min)):.05*(p.max-p.min);g.loadDPs().adjustRange().setViewState(b,a);q.min===p.min&&q.max===p.max||g.getSeriesColl({isVisible:!0}).each(function(b){return b.seriesDirty.pos(!0)});return this};a.prototype.removeMarker=function(b){var a=this;b=this._markers.indexOf(b);Ff(this.currentOptions.markers,function(b){return b.id===a.id});this._markers.splice(b,1)};a.prototype.adjustRange=
function(){var b=this,a=b.snapToZero,c=b.min,f=b.max,g=b.isHoriz!==b.chartArea.isHoriz&&"x"===b.prefix,h=.5,k=function(a){return J(b.userOptions,["scale","range",a])},l=k("min"),m=k("max"),n=k("padding");if(!b.syncAxis&&!b.isZoomed){k=b.range;if(b.isHeatmap)g=.5,"category"!==b.type&&(g=b.shortestValDistance/2),k.min=t(l)?b.normUserValue(l):c-g,k.max=t(m)?b.normUserValue(m):f+g;else if(t(n))g=0,pb(n)?g=ma(f,c)*n:"time"===b.type&&n.unit&&(g=Vh(n).unitRange),c=[c-g,f+g],a&&(c=[Math.min(c[0],0),Math.max(c[1],
0)]),k.min=t(l)?b.normUserValue(l):c[0],k.max=t(m)?b.normUserValue(m):c[1];else{a=b.getSeriesColl(function(b){return b.isVisible});var p=a.filter(function(b){return b.info&&b.info.type.drawRect});a=a.filter(function(b){return b.info&&"bubble"===b.info.type.seriesType});n=0<p.items.length;var q=0<a.items.length;if(n||q)h+=b.options("spacingPercentage")/2.2;if("category"===b.type)k.min=t(l)?l:c-h,k.max=t(m)?m:f+h;else{if(g&&!b.isLog()){var r=void 0,u=[],y=0;p.each(function(b,a){b.indexer.calculations.x&&
(u.push(b.indexer.min("x"),b.indexer.max("x")),y=Math.max(y,b.indexer.data.x.length))});var v=u[0]===c&&u[1]===f;if(p.items.length&&u.length){var w=b.getShortestDistPerc();r=[Math.min.apply(Math,G(u)),Math.max.apply(Math,G(u))];w=(ma(f,c)||0)/Math.max(y-1,1);w*=h;v?(0===w&&(w=h),k.min=r[0]-w,k.max=r[1]+w):(k.min=Math.min(r[0]-w,k.min),k.max=Math.max(r[1]+w,k.max));w=!0}u=[];y=0;a.each(function(b,a){b.indexer.calculations.x&&(u.push(b.indexer.min("x"),b.indexer.max("x")),y=Math.max(y,b.indexer.data.x.length))});
h=.1;p=u[0]===c&&u[1]===f;a.items.length&&u.length&&(r=[Math.min.apply(Math,G(u)),Math.max.apply(Math,G(u))],h*=r[1]-r[0],p?(k.min=r[0]-h,k.max=r[1]+h):(k.min=Math.min(r[0]-h,k.min),k.max=Math.max(r[1]+h,k.max)),w=!0)}k.min=t(l)?b.normUserValue(l):k.min;k.max=t(m)?b.normUserValue(m):k.max;w||"category"===b.type||b.isLog()||!g&&"time"!==b.type||(g=n?.05:q?.1:.02,g*=ma(k.max,k.min),t(l)||(k.min=c-g),t(m)||(k.max=f+g))}}b.isLog()&&b.minAbsValue&&(l=b.minAbsValue,m=Math.log(Math.abs(l))/Math.log(J(b.userOptions,
["scale","logBase"])||10),c=function(b){var a=Math.floor(b);return.3>b-a?a-1:a},f=function(b){var a=Math.ceil(b);return.3>a-b?a+1:a},l=0>l?f(m):c(m),b.range.smLog=l,0===b.range.max?b.range.log[1]=l:0===b.range.min&&(b.range.log[0]=l));b.unZoomedRange={min:k.min,max:k.max}}return this};a.prototype.setAutoScaleBreaks=function(){this.autoScaleBreaks();return this};a.prototype.autoScaleBreaks=function(){function b(b){for(var a=[],c=0,d=b.length;c<d;c++)c&&a.push([b[c-1],b[c],b[c]-b[c-1]]);return a}function a(b,
a){function c(b,a){return b[2]-a[2]}function d(b,a){return a[2]-b[2]}b.sort(a?c:d)}function c(b,a){function c(b,a){return b[0]-a[0]}function d(b,a){return a[0]-b[0]}void 0===a&&(a=!0);b.sort(a?c:d)}function f(b){for(var a=[],c=0,d=b.length;c<d;c++)a.push(b[c][0]),a.push(b[c][1]);return[Math.min.apply(null,a),Math.max.apply(null,a)]}var g=this.dataSortedUniq,h=[this.min,this.max],k=this.max-this.min,l=0,m=0,n=100,p=[],q=C(this.userOptions,"scale.breaks.limit"),r=C(this.userOptions,"scale.breaks"),
u=[];if(q){if(r=C(this.currentOptions,"markers")){k=0;for(var t=r.length;k<t;k++){var v=r[k],w=void 0;"array"===K(v.value)&&1<v.value.length?(w=this.toPosition(v.value[1]),g.push(w)):w=this.toPosition(v.value);(Nb(h,w)||v.includeInScale)&&g.push(w)}g.sort(function(b,a){return b<a?-1:b>a?1:0});k=(g[g.length-1]>this.max?g[g.length-1]:this.max)-(g[0]<this.min?g[0]:this.min)}h=b(g);a(h,!0);for(r=0;r<h.length;r++)t=h[r][2],g=t/k*100,t<.08*k&&(g<n&&(n=g),l++,m+=t);m/=l;if(0<l){g=.08/(n/100);g=k/g*(g-1);
v=3>l?35:10>l?30:15>l?25:20>l?20:15;if(7>n&&1<=l){r=0;for(l=h.length;r<l;r++)w=h[r],t=w[2],t>10*m&&t/k*100>v&&p.push(w);a(p,!1);m=[];l=0;for(h=p.length;l<h;l++)if(l<q)m.push(p[l]);else break;p=m;q=l=0;for(m=p.length;q<m;q++)h=p[q],l<g?l+=h[2]:(p.splice(q--,1),m=p.length);if(p.length)for(q=f(p),q=q[1]-q[0],q=k-(q- -(.2*(k-q))),g=l=void 0,g=8<k/q*n?l=.4*q:l=.2*q,1<p.length&&(l=g=2*l),q=0,m=p.length;q<m;q++)n=p[q],"time"===this.type&&(k=function(b){return b instanceof Date?b.getTime():b},n[0]=k(n[0]),
n[1]=k(n[1])),n[0]+g>n[1]-l?(k=.2*n[2],n[0]+=k,n[1]-=k):(n[0]+=g,n[1]-=l),u.push(n)}c(u);this.breaks=u}else this.breaks=[]}else r&&(this.breaks=rs(this,r))};a.prototype.loadDPs=function(){var b=this,a=this,c=a.chartArea;if("chartArea"!==c.kind||!c.isZoomLive()){var f=this.dataPositions;f.reset();var g=function(b){return b};x(this.serList,function(c){if(c.isVisible){var d=c.indexer.getKey(b.prefix);d=d.length?d:a.data.slice(0);var e=c.indexer.uniqTypes[b.prefix];e&&"date"===e[0]&&(g=function(b){return b.getTime()});
e=0;for(var h=d.length;e<h;e++){var n=f.add(g(d[e])),p=c.info.type;p.clusters&&(n.clusters[p.seriesType]=(n.clusters[p.seriesType]||0)+1)}}});this.loadDPs_shortestDistance();this.loadDPs_minAbsValue()}return this};a.prototype.normUserValue=function(b){var a=this.toPosition(b);this.isRadial||"category"!==this.type||"string"!==typeof b||(a=[a-.5,a+.5]);return a};a.prototype.getShortestDistPerc=function(){return this.syncAxis?this.syncAxis.getShortestDistPerc():t(this.shortestValDistance)?this.shortestValDistance/
(this.range.max-this.range.min):1};a.prototype.setTickPositions=function(){var b=this,a=b.currentOptions,c=a.scale||{},f=!1!==C(a,"defaultTick.enabled"),g=!1!==C(a,"defaultMinorTick.enabled"),h=b.range,k=[];a=[];var l,m=c.interval,n=c.minorInterval,p=b.getPointTicks(),q=b.getCustomTicks();b.pointTicks={values:p.map(function(b){return b.value}),configs:p.map(function(b){return b.config}),points:p.map(function(b){return b.point})};var r=c.type&&0===c.type.toLowerCase().indexOf("log"),u=c.logBase||10;
m&&"auto"!==m||(m=void 0);var y=function(a){var c=[];x(a,function(a){b.valVisible(a)&&c.push(a)});return c};if(r&&!t(m))f=function(a,c,d,e){void 0===e&&(e=100);var f=0,m=g&&"auto"===n;m&&(l=l||[]);for(var p=function(){v=parseFloat(Math.pow(u,a).toFixed(7))*(d?-1:1);b.valVisible(v)&&k.push(v);a+=c;if(m){var g=v,n=parseFloat(Math.pow(u,a).toFixed(7));qb(10,function(a){a&&(-1===k.indexOf(g)&&Math.abs(g)<Math.abs(n)&&b.valVisible(g)&&l.push(g),g+=v)})}q=f++>e||v>h.max||v<h.min};!q;)p();if(g&&"auto"===
n)for(a=h.log[0];!q;){-1===k.indexOf(v)&&b.valVisible(v)&&l.push(v);var q=!0}},0===h.min?(f(h.smLog,1,!1),h.logMin=Math.log(k[0])/Math.log(u),b.valVisible(0)&&k.push(0)):0===h.max?(b.valVisible(0)&&k.push(0),f(h.smLog,1,!0),h.logMax=Math.log(Math.abs(k[k.length-1]))/Math.log(u)):0<h.min?f(Math.floor(h.log[0]),1,!1):0>h.max?f(Math.floor(h.log[1]),1,!0):(-1<h.min&&(f(Math.ceil(h.log[0]),-1,!0,1),h.logMin=Math.log(Math.abs(k[k.length-1]))/Math.log(u)),1>h.max&&(f(Math.ceil(h.log[1]),-1,!1,1),h.logMax=
Math.log(k[k.length-1])/Math.log(u)),-1>=h.min&&f(h.logMax||h.smLog||0,1,!0),b.valVisible(0)&&k.push(0),1<=h.max&&f(h.logMin||h.smLog||0,1,!1)),h.logRange=k.length-1;else if("category"===b.type)f&&(k=y(b.dataPositions.toArray()),(f=b.catList)&&f.length&&k.length<f.length&&(k=y(f.map(function(b,a){return a}))),b.isRadial||(k=k.map(function(b){return[b-.5,b+.5]})));else if("time"===b.type)!f||m||n||c.minInterval?(f&&(k=b._getTimeTickPositions()),g&&t(n)&&(l=b._getTimeTickPositions(!0))):(f=b._getTimeTickPositionsAuto(),
k=f.major,l=f.minor);else{c=m||h.interval;y=$f([h.min,h.max,c]);if(f){var v=sa(Yb.floor(h.min/c)*c,y);f=1;for(m=v;v<=h.max;)b.valVisible(v)&&k.push(v),v=sa(m+c*f++,y)}if(g&&t(h.minorInterval))for(y=$f([h.min,h.max,h.minorInterval]),v=sa(Yb.floor(h.min/h.minorInterval)*h.minorInterval,y),l=[],f=0,m=v;v<=h.max;)-1===k.indexOf(v)&&b.valVisible(v)&&l.push(v),v=sa(m+h.minorInterval*f++,y)}b.invalidate();if(q){var w=[],E=[];f=0;for(c=q.length;f<c;f++)if(y=q[f],"time"!==b.type||"object"!==typeof y.value||
y.value.pop)t(y.value)&&(r=m=b.toPosition(y.value),b.isRadial||"category"!==b.type||("string"===typeof y.value&&(m=[m-.5,m+.5]),2===m.length&&(r=Df(m,.1))),b.valVisible(r)&&(w.push(m),k.push(m)));else for(m=Yk(y.value.pattern||y.value,b.min,b.max),r=0;r<m.length;r++)m[r].v=y.value,b.valVisible(m[r])&&(w.push(m[r]),k.push(m[r]));!E.length&&(E=void 0)}if(p&&p.length)for(f=0,c=p.length;f<c;f++){y=p[f];m=b.toPosition(y.value);if(!b.isRadial&&"category"===b.type){m=[m-.5,m+.5];var z=!0}b.valVisible(m)&&
(w.push(m),k.push(m))}b.tickPositions=ed(z?k:ta(k));a.push.apply(a,G(k));w&&(b.tickPositions.custom=w,a.push.apply(a,G(w)));E&&(b.tickPositions.cpPositions=E,a.push.apply(a,G(E)));l&&(b.tickPositions.minor=l,a.push.apply(a,G(l)));z=b.tickPositions.length===p.length&&z;b.tickPositions.all=ed(z?a:ta(a));return this};a.prototype._getTimeTickPositions=function(b){var a=this.range,c=this.options("scale."+(b?"minorInterval":"interval"));c&&"auto"!==c||(c=void 0);var f=Vh(c||a.interval);!c&&10<a.range/(f.unitRange*
f.count)&&(f=Vh(a.range));a.timeInterval=f;b=Uh(f,void 0,new Date(Math.round(a.min)),new Date(Math.round(a.max)));!c&&20<b[0].length&&(f.multiplier=Math.floor(b[0].length/10),b=Uh(f,void 0,new Date(Math.round(a.min)),new Date(Math.round(a.max))));this._autoTimeResult=a={intervals:b,pair:{major:{unit:f.unit,multiplier:f.count},minor:{unit:f.unit,multiplier:f.count}},sigUnits:tp(b)};this._autoTimeFormats=sp(a);return b[0]};a.prototype._getTimeTickPositionsAuto=function(){var b=this.range;b=[new Date(Math.round(b.min)),
new Date(Math.round(b.max))];b=Zw(b[0],b[1],10,this.chartArea.isDragging&&this._autoTimeResult);var a=b.intervals;this._autoTimeResult=b;this._autoTimeFormats=sp(b);return{major:a[0],minor:a[1]}};a.prototype.loadDPs_shortestDistance=function(){var b=this.range;this.shortestValDistance=this.dataPositions.getShortestRange();this.shortestPercDistance=this.shortestValDistance/(b.max-b.min);return this};a.prototype.loadDPs_minAbsValue=function(){this.isLog()&&(this.minAbsValue=this.dataPositions.getSmallestAbsValue())};
a.prototype.isLog=function(){return gm(this,function(b){return 0===b.toLowerCase().indexOf("log")})};a.prototype.isStacked=function(){return gm(this,function(b){return-1<b.indexOf("stacked")})};a.prototype.isStackedFull=function(){return gm(this,function(b){return"stackedfull"===b.toLowerCase()})};a.prototype.getValToLin=function(){return this.viewState?this.viewState.valToLin:void 0};a.prototype._getValToLin=function(){var b=this,a=b.range,c=b.breaks,f=b.isInverted(),g=f?[0,1]:[1,0];if(c.length){f=
b._openRanges();var h=f.ranges,k=f.sum;return function(b){var d;if(d=dg(h,b))return T(g[0],g[1],0,k,b-d[0]+d[2]);if(d=dg(c,b))if(d=dg(h,d[0]))return T(g[0],g[1],0,k,d[2]+d[1]-d[0]);return T(g[0],g[1],a.min,a.max,b)}}var l=b.userOptions.scale||{};if(b.isLog()){var m=l.logBase||10,n=function(b){return 0===b?b:Math.log(Math.abs(b))/Math.log(m)},p=function(b){var c=0>a.min*a.max;if(c&&-1<a.min)var d=a.logMin-a.log[0]-1;else d=0===a.min?a.logMin-1:a.log[0],c&&(1>a.max&&(d-=a.log[1]),d+=1);if(c&&1>a.max)var e=
a.logMax-a.log[1]-1;else e=0===a.max?a.logMax-1:a.log[1],c&&(-1<a.min&&(e-=a.log[0]),e+=1);var f=a.logRange,g=a.smLog;if(0===b)return 0<=a.min?0:0>=a.max?1:c&&-1>a.min&&1>a.max?1-Math.abs(e/f):c&&-1<a.min&&1>a.max?1-Math.abs(d/f):c&&-1<a.min&&1<a.max?Math.abs(d/f):Math.abs((g-d)/f);if(0>b)return c&&(-1<a.min||1>a.max)?(a.log[0]-n(b))/f:c?(d-n(b)-1)/f:(d-n(b))/f;if(0<b)return c&&(d-=2*g),c&&(1>a.max||-1<a.min)?1-(a.log[1]-n(b))/f:c?(n(b)+d+1)/f:(n(b)-d)/f};return f?function(b){return p(b)}:function(b){return 1-
p(b)}}var q=b.fitRange,r=a.min,u=a.max,y=function(b){return T(g[0],g[1],r,u,q?ua(b,r,u):b)};return b.isStackedFull()&&"category"===b.type?function(a){var c=b._stackTranslators;c=c?c.forward(a):a;return y(t(c)?c:a)}:y};a.prototype._openRanges=function(b){var a=this.range,c=this.isInverted(),f=a.min,g=a.max,h=this.breaks;a=[];var k=0,l=0;h.length?(a=B(fg(h,[f,g]),function(b){var a=[b[0],b[1],l];l+=b[1]-b[0];return a}),k=ro(a)):(a.push([f,g,0]),k=g-f);if(b){var m=[];for(b=0;b<a.length;b++)f=a[b],g=h=
f[2]/k,h=h+(f[1]-f[0])/k+(b===a.length-1?0:-1E-14),m.push([c?g:1-h,c?h:1-g,{valRange:f}])}return{ranges:a,sum:k,posRanges:m}};a.prototype.linToVal=function(b,a){return this.posToVal(this.linToPos(b),a)};a.prototype.posToVal=function(b,a){var c=this.range;if(fm(c)){var d=c.min,g=c.max,h=this.isInverted(),k=[0,1],l=this._isDragHost?[d,g]:h?[d,g]:[g,d],m=this._openRanges(!0),n=function(b){return T(l[0],l[1],k[0],k[1],b)};d=function(b){var a=dg(m.posRanges,b);if(!a)return n(b);var c=F(a[2].valRange,2),
d=c[0];c=c[1];d=h?[d,c]:[c,d];return T(d[0],d[1],a[0],a[1],b)};d=this.breaks.length?d:n;this.isLog()?(d=this.options("scale.logBase")||10,g=c.log[0],b=(h?b:1-b)*(c.log[1]-g)+g,c=Math.pow(d,Math.abs(b)),c<d&&(c=d*(c-1)/(d-1)),d=ge(b)*c):this.isStackedFull()&&"category"===this.type?(c=this._stackTranslators,d=d(b),d=c?c.backward(d):d):d=d(b);d=a?ua(d,Math.min.apply(Math,G(l)),Math.max.apply(Math,G(l))):d}return d};a.prototype.linToPos=function(b){return T(0,1,0,this._sizeMetrics.length,b)};a.prototype.valToAngle=
function(b,a){};a.prototype.isInBreak=function(b){return!!dg(this.breaks,b)};a.prototype.valVisible=function(b,a){var c=this.range,d=[c.min,c.max];a=t(a)?a:!!b.pop;var g="category"===this.type&&a?.5:0;return b.pop?this.valVisible(b[0],a)||this.valVisible(b[1],a)?!(d[0]===b[1]||d[1]===b[0]):(b=af(d,[b[0]+g,b[1]-g]))&&b.length:b-g>=c.min&&b+g<=c.max&&!this.isInBreak(b)};a.prototype.tickVisible=function(b){var a=!!b.pop;if(this.valVisible(b))return(a=-1<Ee(this.tickPositions.all,b))&&"category"===this.type&&
2===b.length?this.valVisible(Df(b,.1)):a;if(this.hasCalPatBreaks){var c=this.range;c=[c.min,c.max];return a?Nb(c,b[0])&&Nb(c,b[1]):Nb(c,b)}};a.prototype.isInverted=function(){var b=z((this.currentOptions.scale||{}).invert,!1);"x"!==this.prefix&&"sp"!==this.prefix||this.isHoriz||!this.type||!this.type.match("category|string|time")||(b=!b);if("x"===this.prefix||"z"===this.prefix||"sp"===this.prefix)b=!b;this.chartArea&&this.chartArea.isHoriz&&("x"===this.prefix||"y"===this.prefix||"sp"===this.prefix)&&
(b=!b);"sp"===this.prefix&&(b=!b);this.isRadial&&"x"===this.prefix&&!this.isHoriz&&(b=!b);return b};a.prototype.clusterWidth=function(b){return t(b)?this.clusterWidthByValue(b):z(this.options("staticColumnWidth"),this.getShortestDistPerc()*this._sizeMetrics.length*(1-this.options("spacingPercentage")))};a.prototype.clusterWidthByValue=function(b){var a=this.getValToLin(),c=this.shortestValDistance/2;return this._sizeMetrics.length*(a(b+c)-a(b-c))};a.prototype.duV=function(b){void 0===b&&(b=!1);var a;
if(!(a=this._duV)){a=void 0;void 0===a&&(a=!1);var c=this.isInverted(),f=this.sideIndex(),g=[-1,0],h=[0,-1],k=[1,0],l=[0,1],m=[c?1:-1,0],n=[c?-1:1,0],p=[0,c?1:-1];c=[0,c?-1:1];f=[{f:m,b:n,o:h,i:l,vc:1,hc:0},{f:p,b:c,o:k,i:g,vc:0,hc:1},{f:m,b:n,o:l,i:h,vc:1,hc:0},{f:p,b:c,o:g,i:k,vc:0,hc:1}][a?(f+2)%4:f];f.inside=a;a=Gi(f)}this._duV=a;a=this._duV();b&&(a.o[0]*=-1,a.o[1]*=-1,a.i[0]*=-1,a.i[1]*=-1,a.inside=b);return a};a.prototype.measure=function(b){var a=this.chartArea,c=this.viewState,f=this.rootVisuals,
g=this.sideIndex();this._isZoomLive=a.isZoomLive&&a.isZoomLive();C(this.currentOptions,"label.text");if(c&&!1!==this.isVisible){var h=f.label.rootPanel.calculateMargin();if(b&&(b.pop&&(b=this.viewState.caRect={x:0,y:0,width:b[0],height:b[1]}),b)){c=this.measure_ticks(this.chartArea.isRendering);var k=this.tickBounds=c.slice(0);this.isHoriz?k[1]+=2===g?b.height:-k[3]:k[0]+=1===g?b.width:-k[2];"caPaneLinear"===a.kind&&a.hasRoundCaps&&"x"===this.prefix&&(a=this.clusterWidth()/2,g=ha(b),g=Ll(g,this.isHoriz?
[-a,0]:[0,-a]),this.tickBounds=Ha([g,k]));if(!c)return l;var l=Ah(c,ha(b));a=this._sizeMetrics.clipped;g=[0,0];var m=[0,0];this.isHoriz?(k=this._sizeMetrics.clipped=[b.width,c[3]],this._sizeMetrics.length=b.width,g[0]=Math.abs(Math.min(0,c[0])),m[0]=c[2]+c[0]-b.width):(k=this._sizeMetrics.clipped=[c[2],b.height],this._sizeMetrics.length=b.height,g[1]=Math.abs(Math.min(0,c[1])),m[1]=c[3]+c[1]-b.height);if("hidden"===this.options("overflow")||this.chartArea.isDragging)g=[0,0],m=[0,0];this.overflowSize=
{tL:g,bR:m};!a.length||a[0]===k[0]&&a[1]===k[1]||this.rootVisuals.main.attr(this.isHoriz?{height:k[1],width:"*"}:{width:k[0],height:"*"});b=f.label.getSize({width:this._sizeMetrics.length-h.horizontal.px});this._sizeMetrics.labelSize=b;this.isHoriz?(f.labelContainer.attr({height:b[1]}),this.rootPanel.attr({width:0})):f.labelContainer.attr({width:b[1]});this.rootPanel.setPreliminarySize(!0);f=this.rootPanel.getBbox();0===f.width&&("sp"!==this.prefix&&(f=Kc(l)),this.isHoriz&&(f.height+=b[1]||0));this.isHoriz?
this.rootVisuals.labelContainer.attr({height:b[1]}):this.rootVisuals.labelContainer.attr({width:b[1]});this._sizeMetrics.bbox=c;this._sizeMetrics.size=[f.width,f.height];this.setViewState(!0);this.setViewStateSize();l=this._sizeMetrics.history;b=this._sizeMetrics.clipped;2===l.length&&(this._sizeMetrics.history=[l[1]]);this._sizeMetrics.history.push([Math.round(b[0]),Math.round(b[1])]);c[2]=f.width;c[3]=f.height;return[0,0,f.width,f.height]}}else if(!1===this.isVisible)return this._sizeMetrics.length=
this.isHoriz?b[0]:b[1],[0,0,0,0];return l};a.prototype.setLength=function(b){this._sizeMetrics.length=this.isHoriz?b.width:b.height;return this};a.prototype.requireReflow=function(){var b=this.currentOptions.defaultTick;if(b){var a=b.label;if("inside"===b.placement||a&&"inside"===a.placement)return!1}b=this._sizeMetrics.history;return 2===b.length&&(this.isHoriz&&b[0][1]!==b[1][1]||!this.isHoriz&&b[0][0]!==b[1][0])};a.prototype.resetMetricsData=function(){var b={maxTextSize:[0,0],maxLength:0,maxRadiusLen:0,
maxLengthRange:0,getMaxLength:function(){return b.overlapRange?Math.max(b.maxLength,b.maxLengthRange):b.maxLength+b.maxLengthRange}};this.tickMetricsData=b};a.prototype.measure_ticks=function(b){function a(){var b=[],a=C(g.currentOptions,"defaultTick.label.rotate")||0;if(g.isHoriz&&(a||g.currentOptions.autoRotate))return x(A,function(a){if(!a.invalid){var c=a.angledBounds();Kd(a.currentOptions.label)&&b.push(c);a.metrics().rotated=c}}),Ha(b)}function c(b){var a=g._rngData=ms(g,b);b=Ha(B(b,function(b){return b._positionData.bbox}));
b[1]=0;b[a.duV.vc+2]=a.depth;return b}var f=this;void 0===b&&(b=!1);var g=this,h=g.viewState,k=[],l=[],m=[],n=[],p=[],q=[],r=g.isHoriz?1:0,u=g.isHoriz?function(b,a,c){return(a&&b.rotated?b.rotated[3]:(c&&b.altTextSize?b.altTextSize:b.textSize)[1])+b.tickLength+b.tickPadding||0}:function(b,a,c){return(a&&b.rotated?b.rotated[2]:(c&&b.altTextSize?b.altTextSize:b.textSize)[0])+b.tickLength+b.tickPadding||0},y=C(g.currentOptions,"defaultTick"),v="inside"===y.placement;y=C(y,"label.rotate")||0;y=g.isHoriz&&
0!==y;var w,z=[],A=[],D=[],F=function(){w=Mi(g);z=w.rngTicks;A=w.valArrange;D=w.rngArrange};if(h&&!1!==g.isVisible){g.setTicks(h).setAttribs();F();g._rngData=yA(g,z);F();var H=0;x(A,function(b){if(b.invalid)Cf(f,b);else{var a=b.metrics();Kd(b.currentOptions.label)&&"inside"!==b.currentOptions.placement&&(m.push(a.textSize[0]),n.push(a.textSize[1]),H+=a.primTextSize[1],p.push(u(a)),q.push(u(a,!1,!0)),l.push(a))}});F=m.length?[Math.max.apply(Math,G(m)),Math.max.apply(Math,G(n))]:[0,0];var K=p.length?
Math.max.apply(Math,G(p)):0,L=q.length?Math.max.apply(Math,G(q)):0;g.tickMetricsData.maxTextSize=F;g.tickMetricsData.maxLength=K;g.tickMetricsData.maxLengthAlt=L;g.tickMetricsData.maxRadiusLen=0;F=[];var N=void 0,M=!1;K=U(C(g.currentOptions,"defaultTick.label.rotate"))&&U(g.userOptions.autoRotate)&&"angled"!==g.labelMode;h=!g.isHoriz&&h.axisSize&&h.axisSize[1]>2*H;L=[];for(var O=0,P=A.length;O<P;O++){var Q=A[O];if(!Q.invalid){var S=Cf(this,Q,{altTextSize:!1}),T=S.textBBox;N=N&&bd(N,T);var W=h&&10<
T[2]/T[3],X=N&&g.isHoriz,Z=!1!==J(Q.currentOptions,["label","autoWrap"])&&Q._formattedText&&!Q._formattedText.match(/<br\s*\/?>/);if(K&&Z&&Q._metrics.altTextSize&&(X||W)){if(!M&&N&&(M=A[O-1],S=Cf(this,M,{altTextSize:!0}),N=S.textBBox,L[L.length-1]=S.textLength,Kd(M.currentOptions.label)&&g.tickVisible(M.value())&&(k[k.length-1]=M._bbox,F[F.length-1]=N),!bd(N,T))){N=T;M=!1;continue}S=Cf(this,Q,{altTextSize:!0});T=S.textBBox;M=!0}else M=!1;L.push(S.textLength);Kd(Q.currentOptions.label)&&g.tickVisible(Q.value())&&
(k.push(Q._bbox),F.push(T));N=T}}L.length&&(g.tickMetricsData.maxLength=Math.max.apply(Math,G(L)));if(y||g.isHoriz&&Do(F)||b&&"angled"===g.labelMode){g.labelMode="angled";var Y=a()||Y}else g.labelMode="normal";"angled"===g.labelMode&&(p=[],x(l,function(b){p.push(u(b,!0))}),g.tickMetricsData.maxLength=Math.max.apply(Math,G(p)),k=[],x(A,function(b){b.invalid||(Cf(f,b,{tickPointsOnly:!0}),Kd(b.currentOptions.label)&&k.push(b._bbox))}));Y=Ha(k)||[0,0,0,0];b=ea(D,function(b){return b._rngData.visible});
b.length&&(b=c(b),y=0===w.fullRangesLevel,Y[r+2]=v?0:y?Math.max(b[r+2],Y[r+2]):b[r+2]+Y[r+2],g.tickMetricsData.maxLengthRange=v?0:b[r+2],g.tickMetricsData.overlapRange=y)}r=g.currentOptions.caOffset;t(r)&&(g.isHoriz?Y[3]=Math.max(0,Y[3]+r):Y[2]=Math.max(0,Y[2]+r));return Y||[0,0,0,0]};a.prototype.sideIndex=function(){var b=this.currentOptions.orientation;b="right"===b||"top"===b||"opposite"===b;return this.isHoriz?b?0:2:b?1:3};a.prototype.sideDepth=function(){var b=this._sizeMetrics.size;return this.isHoriz?
b[1]:b[0]};a.prototype.autoHideGrid=function(){t(this._autoHideGrid)||(this._autoHideGrid=iE(this));return this._autoHideGrid};a.prototype.render=function(b,a){void 0===a&&(a=this.updateOptions);var c,d=this.viewState,g=this.viewStatePrev;if(c=this.syncAxis)d=this.viewState=la(c.viewState),g=this.viewStatePrev=la(c.viewStatePrev);if(d){var h=A({},a);h.isTransitioning=this.isTransitioning;if(!1!==this.isVisible&&this.isAdded){b=b||this.chartArea.renderRect;var k=this.isTransitioning?[g,d]:d;if(d.caRect=
b)this.measure(b),this._autoHideGrid=void 0,pA(this),qA(this),this.render_rngLines(b,h),x(this._ticks,function(b){return b.render(k,h)}),this.garbageCollection(),this.render_line(b,a),this.render_alignLabel()}else!1===this.isVisible&&this.isAdded&&this.resetVisuals();!a.invalidate&&this.validate()}return this};a.prototype.garbageCollection=function(){x(this._ticks.slice(0),function(b){b&&6<b._age&&b.destroy()})};a.prototype.render_alignLabel=function(){var b=this.currentOptions.label,a=this.sideIndex(),
c=this._sizeMetrics.labelSize;this.isHoriz||(b.rotation=0===a||1===a?90:-90,a=va([0,0,c[1],c[0]]),this.rootVisuals.labelContainer.attr({offsetX:a[0]-c[0]/2,offsetY:a[1]-c[1]/2,rotate:[b.rotation,c[0]/2,c[1]/2]}))};a.prototype.renderOnCa=function(b,a){void 0===a&&(a=this.updateOptions);var c=this.viewState,d=this.viewStatePrev;(b=b||this.chartArea.renderRect)&&this.isVisible&&c&&(c.caRect=b,b=this.isTransitioning?[d,c]:c,this.renderGridLines(b,a),this.render_markers(b,a),this.validate())};a.prototype.renderGridLines=
function(b,a){x(this._ticks,function(c){return c.render(b,A({onCa:!0},a))});this.render_altGrid(b,a)};a.prototype.getGridLinesTarget=function(){var b=C(this.currentOptions,"defaultTick.gridLine.onTop"),a=this.chartArea.rootVisuals;return b?a.gridLinesFront:a.gridLinesBehind};a.prototype.render_altGrid=function(b,a){void 0===b&&(b=this.chartArea);void 0===a&&(a={});var c=this;b=ks("time"===c.type?c.tickPositions.all:c.tickPositions);var d=c.renderer.renderer,g=c.attribs.altGrid,h=c.viewState,k=c.viewStatePrev,
l=c.altGridFillVisuals,m,n,p=c.getGridLinesTarget(),q=function(){return x(l,function(b){return b.invalid=!0})},r=function(b){return P(l,function(a){return a.value[0]===b[0]&&a.value[1]===b[1]})},u=function(b){b.visual.attr(A({opacity:0,d:c.getCaPath(b.value,p,h)},a))},t=k&&!1!==a;if(g&&"none"!==g.fill&&!jE(c)){q();for(var v=0,w=b.length;v<w-1;v+=2){var z=[b[v],b[v+1]];if(m=c.getCaPath(z,p,h))(q=r(z))?(q.invalid=!1,q.visual.attr(A({d:m,opacity:1},a))):(t&&(n=c.getCaPath(z,p,k)),q={value:z,visual:d.path(A({d:n||
m,opacity:0,animation:!1,zIndex:4},Ka(g,["animation"]))).add(p),invalid:!1},l.push(q),z=A({d:m,opacity:1,"fill-rule":"evenodd"},g,a),t||(z.animation=!1),q.visual.attr(z))}x(ea(l,{invalid:!0}),u)}};a.prototype.init_markers=function(){var b=this.currentOptions.markers||[];if((b&&b.length||this._markers.length)&&!this._markers.length)for(var a=0,c=b.length;a<c;a++){var f=b[a];if(f.value&&f.value.pattern){var g=rs(this,[f.value.pattern]);f.value=B(g,function(b){return b.slice(0,2)})}this._markers.push(new ss(this,
f))}};a.prototype.render_markers=function(b,a){void 0===a&&(a={});var c=this;b=!c.isRadial;var d=c.currentOptions.markers||[];c.init_markers();if(d&&d.length||c._markers.length)b&&sA(c._markers),x(c._markers,function(b){b.render(c.viewState,a)})};a.prototype.render_line=function(b,a){var c=this;a=c.rootVisuals.line;var d=c.currentOptions,g=d.line,h=c.userOptions.line,k=c.chart.options("defaultAxis.line");g.visible=g.visible||(h?Jd(h):!1)||(k?Jd(k):!1);h=wb(g);h.d=this.getLinePath(b);k=function(b){var a=
0;return Ca(b).translate(function(b){var c=1E-4*a++;return[b[0]+c,b[1]+c]})};var l=c.options("line.breaks");if(l){var m=0;h.d=Ca(h.d).translate(function(b){var a=1E-4*m++;return[b[0]+a,b[1]+a]});c.isRadial?b=Ca(h.d).length():(b=c.getLinePathPoints(b),b=oc(b[0],b[1]));b=c.ticksToDashAttr(b,d.line.width,l);M(h,b);h["stroke-linecap"]="round"}else if(g.caps&&(d=c.originValue,h.caps)){l=void 0;l={eachShape:!0,size:"300%"};t(this.originValue)&&(l.start={overflow:!0});h.caps=td(h.caps,l);var n=c.duV();b=
c.getLinePathPoints(b);var p=b[0][n.vc];l=function(b){var a=[];a[n.vc]=p;a[n.hc]=c.getCaLen(b);return a};t(d)&&c.valVisible(d)?(d=l(d),l=fb([d,b[0]]).join(" "),l+=fb([d,b[1]]).join(" "),h.d=l):t(d)&&(b=[c.range.min,c.range.max],0>=b[1]&&b.reverse(),l=fb(b.map(l)),h.d=l,h.caps.start={type:"none"})}g=g.color;if(O(g)&&-1<g.toLowerCase().indexOf("smartpalette")){g=g.split(/:/gi);if(g=c.chart.getSmartPalette(1<g.length?g[1]:c.chart.palette))g=g.getTraditionalStops(!1,[c.range.min,c.range.max]),c.isInverted()||
(g=B(g,function(b){return[1-b[0],b[1],b[2]]}),g=ta(g,function(b){return b[0]})),h.stroke=dc({stops:g,angle:c.isHoriz?0:90}),h.d=k(h.d);h["stroke-opacity"]=1}a.attr(h)};a.prototype.render_rngLines=function(b,a){b={width:1,color:"#4c4c4c",dashStyle:"dash",opacity:.2};a=this.renderer;var c=this.rootVisuals.mainRng,d=C(this._rngData,"connectorLines"),g=this.rootVisuals.rngConnectors,h=[];if(d&&d.length){var k=wb(b);x(d,function(b){fb(b,h)});k.d=wa(h)}k?g?g.attr(k):g=this.rootVisuals.rngConnectors=a.renderer.path().attr(k).add(c):
g&&g.attr({opacity:0})};a.prototype.setRootVisuals=function(){var b=this.renderer;if(!this.rootVisuals&&!1!==this.options("visible")){var a=b.panel({cssClass:"labelContainer"}),c=b.panel("stack:"+(this.isHoriz?"y":"x")),f=b.panel(),g=b.renderer.path().add(f),h=b.panel({zIndex:2}).add(f);b=(new Ni(this.chart,this.currentOptions.label)).add(a);var k=this.duV();0>k.o[k.vc]?(a.add(c),f.add(c)):(f.add(c),a.add(c));this.rootVisuals={stack:c,main:f,label:b,labelContainer:a,line:g,mainRng:h};this.applyCaOffset();
this.rootPanel&&c.add(this.rootPanel);this.rootPanel=c}return this};a.prototype.applyCaOffset=function(){var b=this.currentOptions,a=t(b.anchorWidth)?b.anchorWidth:z(C((this.chartArea||this.chart.chartAreas(0)).currentOptions,"outline.width"),1)/2,c=this.duV(),f=c.o,g=c.hc;c=c.i.slice(0);c[g]=1;a=De([0,0],c,a);b=De(a,f,b.caOffset||0);this.rootVisuals.stack.attr({offsetX:b[0],offsetY:b[1]})};a.prototype.setAttribs=function(){var b=this.isHoriz,a=this.currentOptions.alternateGridFill,c=K(a);b=this.isRadial?
Ja.altGridFillRad:b?Ja.altGridFillX:Ja.altGridFillY;var f={fill:a||"none"};a&&"none"!==a?"object"!==c?f={fill:hd(b,a)}:vi(f,a):f={fill:"none"};this.attribs.altGrid=f;return this};a.prototype.setViewState=function(b,a){var c=this.viewState,d;(d=this.syncAxis)?(this.viewState=la(d.viewState),this.viewStatePrev=la(d.viewStatePrev)):c&&c.equalsRange(this)?this.posDirty=!1:(c&&(this.isTransitioning=!0),this.viewStatePrev=c,this.coordinatesDirty=this.posDirty=!0,this.viewState=new yu(this,this._getValToLin(),
this.chartArea),!b&&this.viewState.isValid()&&this.render(null,a),this.trigger("setRange",this.viewState.range));return this};a.prototype.setViewStateSize=function(){var b;if(b=this.viewState)b.axisSize=this._sizeMetrics.clipped.slice(0),b.axisBBox=this._sizeMetrics.bbox.slice(0);return this};a.prototype.validate=function(){this.isTransitioning=this.coordinatesDirty=this.posDirty=!1;return this};a.prototype.getCaPath=function(b,a,c,f){var d=this;void 0===c&&(c=this.viewState);void 0===f&&(f=1);var e=
t(b.pop),k=!1,l=b;if(!e||t(b[0])&&!t(b[0].pop))l=[b];if("object"===typeof f){var m=f;f=z(m.lineWidth,1);k=m.multiShape}var n="";x(k&&e?b:l,function(b){b=d.getCaPoints(b,a,c,f);n+=fb(b).join(" ")+(k||!e&&!d.isRadial?"":"Z")});return n};a.prototype.getCaPoints=function(b,a,c,f){void 0===c&&(c=this.viewState);void 0===f&&(f=1);b=this.toPosition(b);var d=!1;if("object"===typeof f){var e=f;f=z(e.lineWidth,1);d=e.posOnly}var k=function(b){return Math.max(-1E6,Math.min(1E6,c.valToLin(b)))},l=c.caRect||c.chartArea.contentRect||
c.chartArea.innerRect,m=c.chartArea,n=this.isHoriz,p=t(b.pop),q=m.rootVisuals.gridLinesBehind;e=function(b){b=k(b);b=n?b*l.width:b*l.height;b=n?[[b,l.y],[b,l.y+l.height]]:[[l.x,b],[l.x+l.width,b]];return(2===b.length?Pr:Be)(a||q,b,f)};if(this.isRadial){var r=ha(l),u=r[2],y=r[3],v=r[1],w=r[0];r=m.getRadarType();var x=function(b){return d?[b[0],b[1]]:[w+b[0]*u,v+b[1]*y]},A=this.interpolationAxis;if(this.isHoriz){var D=m.projection.val2linxy,C=function(b,a){return x(D(b,a))};"polar"===r?e=function(b){b=
k(b);return[C(b,0),C(b,1)]}:p||(C=m.projection.webVal2linxy,e=function(b){b=k(b);return[C(b,0),C(b,1)]})}else if(!this.isHoriz){var F=m.projection.val2linxy,H=A.getTicksPos();e=function(b){var a=k(b);return B(H,function(b){return x(F(b,a))})}}}if(p){m=e(b[0]);e=e(b[1]).reverse();var J=this._duV();if(b[0]===b[1]||1>ma(m[0][J.hc],e[0][J.hc]))e=e.map(function(b){return Hc(b,J.f)});m.push.apply(m,G(e))}else m=e(b);return m};a.prototype.ticksToDashAttr=function(b,a,c){void 0===a&&(a=1);c=c||{};kd(c,{gap:.01,
cap:!0,invert:!1});var d=this,e=c.custom,h=[],k=0,l={},m=d.getTicksPos();e?(m=e,1<Math.max.apply(Math,G(e))&&(m=B(e,function(b){return d.viewState.valToLin(b)}))):m=e||d.getTicksPos();a=2*(b*c.gap/2+(c.cap?a/2:0))/b;m[0]>m[m.length-1]&&(m=B(m,function(b){return 1-b}));m=lk(m,[0,1],a);var n=fg(m,[0,1]);x(n,function(a,c){var d=c===n.length-1,e=d?void 0:n[c+1],f=a[1]-a[0];0===c&&0<a[0]&&(k=a[0]*b);h.push(f*b);e&&h.push((e[0]-a[1])*b);d&&1>a[1]&&h.push((1-a[1])*b+2)});c.invert&&h.unshift(0);l["stroke-dasharray"]=
h.join(",");k&&(l["stroke-dashoffset"]=-k);return l};a.prototype.getCaLen=function(b,a){void 0===a&&(a=this.viewState);var c=a.caRect||a.chartArea.contentRect,d=this.isHoriz,g=a.valToLin;return hb(b,function(b){b=g(b);return d?b*c.width:b*c.height})};a.prototype.getLinePath=function(b){var a=this.currentOptions,c=F(this.getLinePathPoints(b),2),f=c[0];c=c[1];a=wb(a.line);return this.breakLine(b,[f,c],a["stroke-width"])};a.prototype.getLinePathPoints=function(b){b="inside"===C(this.currentOptions,"defaultTick.placement");
var a=this.range,c=b?0:this.tickMetricsData.getMaxLength();b=this.getCaLen(a.min);a=this.getCaLen(a.max);switch(this.sideIndex()){case 0:var f=[a,c],g=[b,c];break;case 1:c=[0,a];g=[0,b];f=c;break;case 2:c=[a,0];g=[b,0];f=c;break;case 3:f=[c,a],g=[c,b]}return[g,f]};a.prototype.breakLine=function(b,a,c,f){var d=this,e=d.currentOptions,k=d.rootVisuals.main,l=[],m=a[0][0],n=a[0][1],p=d.isInverted();a=(C(e,"scale.defaultBreak.type")||"").toLowerCase();a="gap"===a||"zigzag"===a?C(e,"scale.defaultBreak.line.width")/
2:0;var q=b.y,r=b.x,u=b.x+b.width,y=b.y+b.height;b=d._openRanges();var v=function(b){return d.isHoriz?[b,n]:[m,b]},w=function(b,a){var f="";a=p?-a:a;d.isHoriz&&(a=-a);for(var g=0,h=b.length;g<h;g++){var m=b[g],n=d.getCaLen(m[0]),w=d.getCaLen(m[1]),x=(t(e.anchorWidth)?e.anchorWidth:z((d.chartArea||d.chart.chartAreas(0)).options("outline.width"),1))/2,A=v(n>w?n+x:n-x),C=v(w>n?w+x:w-x),B=v(n),E=v(w);E=[B,E];d.isHoriz?(E.push([B[0],q]),E.push([B[0],y])):(E.push([u,B[1]]),E.push([r,B[1]]));B=sb(Xa(E),
-.5);l.push(B);1<b.length&&g<b.length-1&&(C=v(d.getCaLen(m[1])+(w>n?x-a:a-x)));g&&(A=v(d.getCaLen(m[0])+(n>w?x-a:a-x)));k&&(m=Pr(k,[A,C],c,x||void 0),A=m[0],C=m[1]);f+=wa(fb([A,C]))}return f};d._nRects=l;return f?w(eg(b.ranges,f),a):w(b.ranges,a)};a.prototype.getBreakRects=function(){return this._nRects.slice(0)};a.prototype.resetTimers=function(){x(this._markers,function(b){return b.resetTimers()})};a.prototype.getPointTicks=function(){var b=this,a=b.dataInfo.serColl,c=b.prefix,f=c+"AxisTick",g=
"category"===b.type,h=g&&"x"===c,k=b._isZoomLive,l=!!b.syncAxis,m=b.usedDataKeys;if(a&&!a.items.length&&b.syncAxis)a=b.syncAxis.dataInfo.serColl;else if(a&&!a.items.length){a=b.chart.series().filter(function(b){return b.isVisible});var n=!0}else b.parentAxis&&(a=b.parentAxis.dataInfo.serColl);if(!k){var p=[],q=[],r=function(b){var a=b&&b.series[("x"===c?"y":"x")+"Axis"];if(a)return a.getValToLin()("x"===c?b.y:b.x)},u=function(a,d,e,f,k){f=h?z(f.name,f.x):b.isStacked()&&k.hasKey(c+"s")?[k.getValue(c+
"s",d),k.getValue(c+"e",d)]:z(f[c],k.getValue(c,d),k.getValue(m[0],d));f=g&&"number"===typeof f?[f-.5,f+.5]:b.normUserValue(f);e={point:function(){a._points.length||a.setPoints();return a._points[d]},config:e,value:f};if(k=P(p,{value:f})){var l=k.point(),n=e.point();if(l!==n)switch(l=r(l),n=r(n),b.sideIndex()){case 0:case 3:var u=l>n;break;case 1:case 2:u=l<n}else u=!0}k?u&&(jb(p,k),p.push(e)):(p.push(e),q.push(f))},t=function(a,c){var d=b.id&&b.id===a.axisId;c=c[b.prefix+"Axis"].id===b.id;return n?
d:l?d||c:!a.axisId||d};a&&a.each(function(b){var a=function(b){return b&&b[f]},c=b.indexer,d=b.currentOptions,e=c.data[f]&&0<c.data[f].length,g=b.userPoints,h=g.length,k=a(d.defaultPoint),l=a(d.firstPoint)||a(d.lastPoint),m=function(b){return b};if(k){var n=Gi(k);m=function(b){return A(n(),b)}}if(k){if(t(k,b))for(e=0;e<h;e++)k=c.getValue(f,e),u(b,e,m(k||{}),g[e],c)}else if(e){var p=c.data[f],q=c.indexes[f];for(e=0;e<(q?q.length:0);e++){var r=q[e];(k=p[r])&&t(k,b)&&u(b,r,m(k),g[r],c)}}l&&((l=a(d.firstPoint))&&
t(l,b)&&null!==g[0].y&&u(b,0,l,g[0],c),(a=a(d.lastPoint))&&t(a,b)&&null!==g[h-1].y&&u(b,h-1,a,g[h-1],c))});var v=[];q.length&&(q=Ia(q),x(q,function(b){return v.push(P(p,{value:b}))}),v.positions=q);b._getPointTicks=v}return b._getPointTicks};a.prototype.getCustomTicks=function(){if(!this._isZoomLive){var b=this.currentOptions,a=this.userOptions,c=B(b.customTicks||[],function(a){var c=A({},b.defaultTick);return A(c,a)});if(t(this.originValue)&&a.originTick&&!1!==C(b,"defaultTick.enabled")&&!1!==C(b,
"originTick.enabled")){var f=A({},b.defaultTick);f=A(f,a.originTick);f.value=this.originValue;c.push(f)}this._getCustomTicks=c}return this._getCustomTicks};a.prototype.setTicks=function(b){var a=this,c=a.currentOptions,f=a._isZoomLive,g=a.isLog(),h=function(b,a){return T(b,b+a,0,1,m.valToLin(b))},k=function(b,c){b=b.rect();return a.isHoriz?h(b.x,b.width):h(b.y,b.height)};b=F(b.pop?b:[void 0,b],2);var l=b[0],m=b[1];m.rect();if(m.isValid()){var n=void 0;b=void 0;a.setTickPositions().invalidateTicks();
var p=A(g?{label:{visible:!1}}:{},c.defaultTick,c.defaultMinorTick);c=b="inside"!==p.placement||a.isRadial||"category"===a.type?0:1;for(var q=a.tickPositions.all.length-b;c<q;c++){n=a.tickPositions.all[c];var r=a.findTickInfo(n);(b=a.findTick(n,g?r.type:void 0))?(b.type!==r.type?(b.options(r.config,!1),b._needUpdateText=!0):(n=b.currentOptions.value,O(n)&&-1<n.indexOf("%")&&(b._needUpdateText=!0)),!f&&b.setType(r.type)):(r.config.defaultMinorTick=p,a._ticks.push(b=new zu(this,n,r.config,r.type)));
b.validate()}c=0;for(q=a._ticks.length;c<q;c++)b=a._ticks[c],a.isTransitioning&&!b.invalid?b.px(k(l||a.viewStatePrev),k(m,b.value())):b.px(k(m,b.value()));a._ticks=ta(a._ticks,function(b){return z(b._value[0],b._value)});a._ticks=ta(a._ticks,function(b){return b._isRange&&"custom"===b.type?2:1});g=!1;c=f=0;for(q=a._ticks.length;c<q;c++)b=a._ticks[c],(k=a.tickVisible(b.value()))&&f++,!g&&k?g=b.isFirst=!0:b.isFirst=!1;100<f&&(g="category"===a.type,(k=!!J(a.currentOptions,["scale","interval"]))||g)&&
(f={data:[a.prefix,f],container:this.chart.getWrapper()},k&&!g?oa.emit("tip",a.id,"time"===a.type?"manyTicksTime":"manyTicks",f):g&&oa.emit("tip",a.id,"manyTicksCat",f))}return this};a.prototype.resetTicksLabels=function(){x(this._ticks,function(b){delete b._formattedText})};a.prototype.invalidateTicks=function(){for(var b=this._ticks,a=0,c=b.length;a<c;a++)b[a].invalidate();return this};a.prototype.findTick=function(b,a){for(var c=0,d=this._ticks.length;c<d;c++){var g=this._ticks[c],h=g.value(),
k=b;if((h.pop?h[0]===k[0]&&h[1]===k[1]:h===k)&&(a?g.type===a:1))return g}};a.prototype.findTickInfo=function(b){var a=this,c={};if(t(b.v)){var f="custom",g=a.getCustomTicks();c=P(g,{value:b.v});c=A({},c);delete c.value}else{var h=a.tickPositions,k=h.minor||[],l=h.custom||[],m=a.originValue;g=Ee(a.pointTicks.values||[],b);if(-1<g){f="custom";c=a.pointTicks;var n=c.points[g];c=c.configs[g];c.target=function(){return n&&n()}}else-1<Ee(l,b)?(f="custom",g=a.getCustomTicks(),c=P(g,function(c){c=c.value;
var d=a.toPosition(c);"category"===a.type&&"string"===typeof c&&(d=[d-.5,d+.5]);return d.pop?Xe(d,b):d===b}),c=A({},c)):t(m)&&b===m?f="origin":-1<Ee(h,b)?f="major":-1<Ee(k,b)&&(f="minor")}return{type:f,config:c}};a.prototype.getTicksPos=function(b){void 0===b&&(b=this.viewState);!this.tickPositions&&this.setTickPositions();return hb(this.tickPositions.all,function(a){return b.valToLin(a)})};a.prototype.add=function(b){this.isAdded||(this.isAdded=!0,!1!==this.isVisible&&(this.parentLayoutItem=(b=this.getParentPanel(b))||
this.renderer,this.rootPanel.add(b)));return this};a.prototype.crosshairXy=function(b,a,c){var d=this.prefix,e=this.isHoriz?0:1;b=b["x"===d?e:"y"===d?e:-1];c=this.crossLinToVal(b,c);t(b)&&this.crosshair(a?A({value:c},a):{value:c});return c};a.prototype.crossLinToVal=function(b,a){var c=this.syncAxis||this,d=this.options("crosshair");b=this.linToVal(b);c=c.dataPositions.toArray();return d.snapToData||"x"===this.prefix&&!1!==d.snapToData||a?("category"===this.type&&0===c.length&&(c=this.tickPositions.map(function(b){return b[0]+
.5})),xB(c,b)):b};a.prototype.crosshair=function(b){var a=this;clearTimeout(a.crossTimeout);if(a.isVisible&&!a.isRadial&&!a.childAxes.length){var c=a.crossTicks=a.crossTicks||[],f=function(b){Cf(a,b);b.render(a.viewState,{onCa:!0,animation:!1});b.render(a.viewState,{onCa:!1,animation:!1})},g=a.options("crosshair");if(t(b)&&!0===g.enabled){if(b=b.pop?b:[b],t(b[0]))var h=b.map(function(b,a){return A({key:a},g,b)}),k=!0}else h=[];Xb(h,c,function(b){b=new zu(a,b.value,A({internal:!0},b),"custom");b.isCrosshair=
!0;a.crossTicks.push(b);f(b)},function(b,a){a.options(b,!1);f(a)},function(b){jb(a.crossTicks,b);b.remove()},function(b){return b.key},function(b){return b.currentOptions.key});a.rootPanel.refresh();k&&(a.crossTimeout=setTimeout(function(){a.crosshair();a.chart.series().each(function(b){return b.visualizer.hideHalo()})},8E3));return b&&1===b.length?b[0]:b}};a.prototype.setDataRange=function(b){this.min=b[0];this.max=b[1];b=this.range={min:b[0],max:b[1]};this.unZoomedRange=Ra(b);this._isMapHost=!0};
a.prototype.setMapRange=function(b,a){this.min=Math.min(b[0],a[0]);this.max=Math.max(b[1],a[1]);this.range={min:a[0],max:a[1]};this.unZoomedRange={min:this.min,max:this.max};this.zoomLimit=Math.max(b[1],a[1])-Math.min(b[0],a[0]);this.zoomRange=this.zoomRange||[Math.min(b[0],a[0]),Math.max(b[1],a[1])];this._isMapHost=!0};a.prototype.setStaticRange=function(b,a){this._isDragHost=!0;this.min=b[0];this.max=b[1];this.range={min:a[0],max:a[1]};this.zoomLimit=this._sizeMetrics.length=a[1]-a[0];this.zoomRange=
this.zoomRange.length?this.zoomRange:a;this.linToVal=function(b){return b}};a.prototype.zoom=function(b,a,c){var d=!1;d=!this.isZoomed;var e=this._isDragHost?[this.min,this.max]:this.unZoomedRange,h=this._isDragHost?this.zoomRange:[this.range.min,this.range.max];e=e||{min:this.min,max:this.max};var k=1<ma(e.min,e.max)?2:5,l=function(b,a){return 0===Ps(b[0],a[0],k)&&0===Ps(b[1],a[1],k)};t(b)||t(a)?this.canZoom(b,a)&&(a=F(Au(b,a),2),b=a[0],a=a[1],this._formatInfo=void 0,b!==a&&(this.zoomRange=[b,a],
this.isZoomed=!0,this._isDragHost||(d&&(this.unZoomedRange={min:this.range.min,max:this.range.max}),e=this.unZoomedRange,this.isZoomed=!l([b,a],[e.min,e.max])),"map"===this.options("type")?(this.range.min=b,this.range.max=a):this._isDragHost||this.setRange(!1,c),d=!0)):(this.isDragging=this.isZoomed=!1,this.zoomRange=[],this.isZoomed=!1,this.setRange(!0,c));d=!l(this.isZoomed?this.zoomRange:[this.range.min,this.range.max],h);!this._isDragHost&&x(this.serList,function(b){return b.seriesDirty.pos(!0)});
!1!==c&&this.chart.redraw(c);b=this.chartArea;d&&b.zoomUpdated();return d};a.prototype.drag=function(b){var a=this.zoomRange.slice(0),c=this.unZoomedRange?this.unZoomedRange:this;c=[c.min,c.max];this.isDragging=!0;a[0]+b<c[0]&&(b=c[0]-a[0]);a[1]+b>c[1]&&(b=c[1]-a[1]);a[0]+=b;a[1]+=b;if(b)return this._isDragHost?this.zoomRange=a:this.zoom(a[0],a[1],!1),!0};a.prototype.canDrag=function(){if(this._isDragHost){var b=this.zoomRange.slice(0),a=this.unZoomedRange?this.unZoomedRange:this;return ma(b[0],b[1])<
ma(a.min,a.max)}return this.isZoomed};a.prototype.canZoom=function(b,a){a=F(Au(b,a),2);b=a[0];a=a[1];if(this._isMapHost||this._isDragHost&&(this.min!==this.range.min||this.max!==this.range.max))return!0;if(b!==a){var c=this.zoomLimit;"object"===K(this.zoomLimit)&&"time"===this.type&&(c=rg(this.zoomLimit));if(ma(a,b)>c)return!0}};a.prototype.destroyVisuals=function(){x(this.rootVisuals,function(b){return b&&b.destroy()});x(this._ticks.slice(0),function(b){return b&&b.destroy()});this._ticks=[];this.rootPanel.destroy();
this.rootVisuals=this.rootPanel=void 0};a.prototype.destroy=function(){c.prototype.destroy.call(this);var b=this.chartArea._axes.indexOf(this);-1<b&&this.chartArea._axes.splice(b,1)};a.prototype.resetVisuals=function(){this.isAdded=!1;this._duV=void 0;this.destroyVisuals();this.setRootVisuals();this.initSizeMetrics();this.chartArea.rootPanel.refresh()};a.prototype.getVisualTargets=function(b,a){void 0===b&&(b={});void 0===a&&(a=!1);var c=this.rootVisuals,d=this.chartArea.rootVisuals,g=d.axisFront,
h=d.axisBehind,k=d.axisBehindAll,l=z(b.onTop,this.options("onTop")),m=z(J(b,["label","onTop"]),l);b=z(J(b,["gridLine","onTop"]),l)?d.gridLinesFront:d.gridLinesBehind;d=c=a=a?c.mainRng:c.main;g&&h&&(a=l?g:h,c=m?g:h,d=m?g:k);return{tick:a,label:c,line:d,grid:b}};return a}(mc),Pf=function(c){function a(b,d){d=c.call(this,b,d)||this;d.items=b;d.kindObject=a;d.markers=Qa(mb,CA(d),Bc);d.ticks=Qa(mb,BA(d),Bc);return d}L(a,c);return a}(mb),kE=function(c){function a(b,a){b=c.call(this,b,a,"sp")||this;b.possibleKeys=
["spValue"];b.initFP();b.options(a,!1);return b}L(a,c);a.prototype.init=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];this.prefix=F(b,3)[1];this.defaultContextOptions={};this.updateOptions={animation:this.chart.options("animation")}};a.prototype.defaultOptions=function(){return A(c.prototype.defaultOptions.call(this),{crosshair:{enabled:!0}})};a.prototype.renderGridLines=function(b,a){};return a}(uj),Du=function(c){function a(b,a,e){var d=c.call(this,b.chart,e)||this;d.parent=
b;d.palette=a;d._axes=[];d.isHoriz=z(e.isHoriz,"horizontal"===b.layoutDirection);b=A({orientation:d.isHoriz?"bottom":"right",anchorWidth:0},C(a.currentOptions,"colorBar.axis"));b=d.axis=new kE(d,b);d._axes.push(b);d.initFP();b.chartArea=d;b.setRootVisuals();b.isHoriz=d.isHoriz;d.collisionManager=new fn(d);return d}L(a,c);a.prototype.getAxisMarkerVisualTargets=function(){var b=this.rootVisuals;return{behind:b.axisMarkersFront,front:b.axisMarkersFront}};a.prototype.requestLegend=function(b){return null};
a.prototype.initFP=function(){var b=this;this.axes=Qa(Pf,function(){return b._axes},function(b){})};a.prototype.getBarSize=function(b){var a=this.palette.options("colorBar")||{},c;a=this.isHoriz?this.swatchSize=[z(a.length,Bu),z(a.width,Cu)]:this.swatchSize=[z(a.width,Cu),z(a.length,Bu)];if(b=this.updateChartBox(b)){var f=[0,0];if(c=this.overflows)f=[c[1]+c[3],c[0]+c[2]];this.swatchSize=[Math.min(a[0],b[2]-f[0]),Math.min(a[1],b[3]-f[1])]}return this.swatchSize};a.prototype.updateChartBox=function(b){b&&
t(b[2])&&t(b[3])&&(this.chartBox=sb(b,10));return this.chartBox};a.prototype.pointOver=function(b){var a=this.axis,c=this.palette,f=c.getPointValue(b.currentOptions,b.series);null===f||Aa(f)||(c=c.getValueColor(f),a.crosshair(en({point:b,yVal:f,color:c})))};a.prototype.pointOut=function(){this.axis.crosshair()};a.prototype.getUserWH=function(){var b=this.isHoriz,a=this.palette.options("colorBar")||{};return[b?a.length:a.width,b?a.width:a.length]};a.prototype.measure=function(b,a){var c=this.axis;
this.setRootVisuals();var d=this.palette.axisConfig,g=this.getBarSize(b);this.axisSize=void 0;if(d){c.range=d;c.fitRange=!0;c.setViewState();this.axisSize=c.measure(g);d=this.updateOverflows();var h=this.getBarSize(b);if(h[0]!==g[0]||h[1]!==g[1])g=h,this.axisSize=c.measure(g);g=this.size=this.isHoriz?[g[0]+d[0],g[1]+this.axisSize[3]+d[1]]:[g[0]+this.axisSize[2]+d[0],g[1]+d[1]];c=g[0]>b[2];g=g[1]>b[3];if(c||g)if(d=this.getUserWH(),!a&&c&&!t(d[0])||g&&!t(d[1]))return this.measure(b,!0)}return this.size};
a.prototype.renderAxis=function(){var b=this.axis,a=this.contentRect,c=b.range.min;null!==c&&!Aa(c)&&t(c)&&t(b.range.max)&&b.render(a).renderOnCa(a)};a.prototype.patchAxis=function(){var b=this,a=b.rootVisuals,c=b.axis;c.isAdded||(a=[a.topAxes,a.rightAxes,a.bottomAxes,a.leftAxes][b.axis.sideIndex()],c.isVisible&&c.rootPanel&&(c.add(a),a.on("pixelCorrection",function(){b.renderAxis()}),c.rootPanel.isPatched||c.rootPanel.await(function(){return b.renderAxis()})))};a.prototype.render=function(b){var a=
this.rootVisuals;b=this.getBarSize(b);this.rootPanel.attr({width:this.size[0],height:this.size[1]});this.contentRect={x:0,y:0,width:b[0],height:b[1]};this.patchAxis();var c=this.axis.options("scale.invert");c={stops:this.palette.getTraditionalStops(null,!0),angle:this.isHoriz?c?180:0:c?90:-90};c=dc(c);a.colorContent.attr({fill:c,width:b[0],height:b[1]});return this};a.prototype.updateOverflows=function(){var b=Rr(this);this.overflows=b.slice(0);return[b[1]+b[3],b[0]+b[2]]};a.prototype.setRootVisuals=
function(){var b=this.renderer;if(!this.rootVisuals){var a=this.rootVisuals=Rl(b).build({outline:{width:0},axis:{offset:.5},content:{holder:{stretch:!1}},axisMarkers:!0,overflow:!0});a.colorContent=b.rect({radius:3}).add(a.dataContent);this.rootPanel=a.mainStacks}return this};a.prototype.destroy=function(){c.prototype.destroy.call(this);this.axis.destroy()};return a}(mc),Cu=25,Bu=300,Fe=function(c){return c&&"Series"===c.kind},Ge=function(c){return c&&"Point"===c.kind},lE=function(c){function a(b,
a,e){var d=c.call(this,b.chart,C(a.currentOptions,"legendEntry")||{},[b,a])||this;d.legend=b;d.target=a;d.sortOrderValue=e;d.rowVisuals=[];d.textVisualsRef=[];d.state="";d.icons={};d.legend=b;d.bindEvents();d.optionsApplied();return d}L(a,c);a.prototype.init=function(){for(var b=[],a=0;a<arguments.length;a++)b[a]=arguments[a];b=F(b,2);a=b[1];this.legend=b[0];this.target=a};a.prototype.defaultOptions=function(){return A(A({set:0,checkbox:{color:"#555555",size:12}},this.legend.currentOptions.defaultEntry),
this.target.currentOptions.legendEntry)};a.prototype.options=function(b,a){var d=this.optionsGetter(b);if("NotGetter"!==d)return d;var f=z(C(b,"checkbox.checked"),C(b,"checkbox_checked")),g=t(f),h=C(this.currentOptions,"checkbox.checked");d=t(h)&&!t(C(this.userOptions,"checkbox.checked"))&&!g;this.isCustom&&!this.legend._isSyncing&&this.chart.isRendered&&this._onUserOptions&&this._onUserOptions(b);var k=c.prototype.options.call(this,b,a);d?Y(this.currentOptions,"checkbox.checked",h):g&&this.chart.isRendered&&
!1!==a&&(this.updateCheckbox(f),this.checkbox&&this.checkbox.refresh());"EntryWrapper"===this.target.kind&&(this.target.options({legendEntry:b},a),this.legend.isDirty=!0,!1!==a&&this.chart.chartAreaSet.reflow(void 0,!1,!0));this.optionsApplied();this.afterUpdate(a);return k};a.prototype.optionsApplied=function(){this.userOptions.checkbox&&delete this.userOptions.checkbox.checked;this.chart.triggerOptionsApplied("legendEntry",this)};a.prototype.render=function(b){this.updateStyles(!0);return this};
a.prototype.zoomTo=function(){this.target&&this.target.zoomTo&&this.target.zoomTo();return this};a.prototype.refreshOptions=function(b){var a=this.target.options("legendEntry");a&&this.options(a,b)};a.prototype.getBounds=function(b){var a=this;if(b)return c.prototype.getBounds.call(this,b);var e=[];x(this.rowVisuals,function(b){e.push(a.getBounds(b))});return Ha(e)};a.prototype.updateTrackerPosition=function(){var b=this.getBounds();b&&this.trackerElement.attr(Kc(sb(b,-2)))};a.prototype.updateCheckbox=
function(b){if(this.checkbox){var a=this.target,c=this.checkbox.attrs.name;b=""+ts(a)+(z(b,us(a))?"":"-blank");b!==c&&this.checkbox.attr({name:b})}return this};a.prototype.setRootVisuals=function(){return this};a.prototype.bindEvents=function(){var b=this,a=b.chart,c=b.target,f;if(!b.trackerElement){var g="pointer",h=b.hasUserEvent("click");(f=b.options("cursor"))?g=f:Ge(c)?c.series.options("pointSelection")||h||c.series.chartArea.canZoom()||(g="default"):Fe(c)||h?"EntryWrapper"!==c.kind||h||(g="default"):
g="default";c=b.options("initialCursor");!a.isRendered&&c&&(g=c);a=b.trackerElement=b.trackerElement||b.renderer.renderer.rect().attr({cursor:g,fill:"rgba(255,255,255,0)",zIndex:1}).add(a.rootVisuals.front);a.on("mouseover",function(a){return b.mouseover(a)});a.on("mouseout",function(a){return b.mouseout(a)});a.on("vclick",function(a){return b.click(a)})}};a.prototype.mouseover=function(b){var a=this,c=a.legend,f=a.target,g=Fe(f),h=Ge(f),k=h||g,l=a.chart.ctManager,m=l.isType("map"),n=l.isType("calendar");
l="select"===f._state;c=c.chart.chartAreas(0);var p=c.debounce;b="touchend"===b.type;m=hm(a)&&!m&&!n;n=function(){p.defer("mute",function(){Zl(f,"",Yl(a))},36)};c.resetTimers();if(!1!==a.triggerUser("mouseOver",f)){if(f.mouseOver){if(k&&m)if(!l&&f.setState(""),b&&a.chart.highlighted===f)p.run("unmute")||Tb(a.chart);else{n();var q=!0}}else if(g&&m)if(f.isVisible)n(),q=!0;else var r=!0;else m&&!h&&(r=!0),!l&&f.setState("hover");a.setState("hover");r?q&&a.chart.touched()&&p.defer("unmute",function(){Tb(f.chart)},
2E3):p.clear("unmute")}};a.prototype.mouseout=function(b){var a=this.target,c=Fe(a),f=Ge(a);b="select"===a._state||"select"===a.state;!1!==this.triggerUser("mouseOut",a)&&((c||f)&&hm(this)&&(c=(f?a.series.chartArea:a.chartArea).debounce,c.clear("mute"),c.defer("unmute",function(){Tb(a.chart)},230)),a.setState&&!b&&a.setState(""),this.updateStyles())};a.prototype.click=function(b){var a=this,c=a.target,f="touchend"===b.type,g=Ge(c),h=(g?c.series.chartArea:c.chartArea)||a.chart.chartAreaSet.items[0],
k,l=Fe(c)||g;f&&h&&h.debounce.clear("touchTimeout");var m=function(b){return Y(a.currentOptions,"checkbox.checked",b)};if(a.checkbox&&!l){var n=m(!C(a.currentOptions,"checkbox.checked"));a._onUserOptions=function(b){b=z(C(b,"checkbox.checked"),C(b,"checkbox_checked"));t(b)&&(k=!0)}}if(!1!==c.triggerUser("legendEntryClick")&&!1!==a.triggerUser("click",c)){if(l){l=a.chart.ctManager;n=l.isType("map");l=l.isType("calendar");m=Fe(c);var p=c.isVisible,q=a.chart.options("axisToZoom");q=q&&"none"!==q;hm(a)&&
(f&&g&&!a.checkbox?(a.mouseover(b),h.debounce.defer("touchTimeout",function(){h.clickOff()},8E3)):!1!==p&&Tb(c.chart));c.visible&&!l&&!n&&m&&c.visible();c.zoomTo&&(q||l)&&c.zoomTo();this.chart.resetTimers()}else a.checkbox&&(a.updateCheckbox(n),a.checkbox.refresh(),m(n));a.checkbox?c.click&&c.click({eventArgs:b,accumulate:!!a.checkbox}):"Point"===c.kind&&"pie"===c.series.ctSv("chartType")&&c.select()}else a._onUserOptions&&!k&&m(!C(a.currentOptions,"checkbox.checked"));a._onUserOptions=void 0;b.preventDefault()};
a.prototype.updateStyles=function(b){var a=this.target,c=this.chart.ctManager;c.isType("map");var f=C(this.currentOptions,"checkbox.checked");c=c.isType("calendar");f=t(f)||this.checkbox&&c;this.targetVisible=z(a.isVisible,!0);-1<this.legend.getTemplateColumns().indexOf("%icon")&&this.styleIconVisual();f&&this.updateCheckbox(z(C(this.currentOptions,"checkbox.checked"),this.targetVisible));!1===this.targetVisible?this.setState("hidden",b):this.setState("",b)};a.prototype.setColumns=function(){var b=
this,a=this,c=a.currentOptions,f=a.legend,g=c.set,h=f.getTemplateColumns(g),k=a.target;a.refreshOptions(!1);var l=C(a.userOptions,"checkbox.enabled");C(f.currentOptions,"defaultEntry.checkbox.enabled");var m=f.checkboxManual?l:DA(k)?!1!==l:l;if(f.isVisible){var n=uc(c);delete n.val;n.autoWrap="none";var p=f.getColumnAlignments(g);a.rowVisuals=B(h,function(d,e){var f=d.toLowerCase(),g;if("%checkbox"===f)(g=a.rowVisuals[e])||(m?(e=A({fill:c.checkbox.color},c.checkbox,{name:""+ts(k)+(us(k)?"":"-blank")}),
g=d=a.renderer.panel({yAlignment:"center"}),a.checkbox=a.renderer.icon(e),a.checkbox.add(d),e=C(c,"checkbox.checked"),t(e)&&a.updateCheckbox(e)):g=a.renderer.panel({}));else if("%icon"===f)if(g=a.rowVisuals[e])a.iconVisual=g=b.getIconVisual(),g=g.root;else{a.iconVisual=g=b.getIconVisual();a.rootVisuals={icon:g};var h=g.base,l=g.extra;e=b._iconSize?a._iconSize[0]:z(c.iconWidth,J(c,["icon","width"]),20);g.root.attr({width:e,height:b._iconSize?a._iconSize[1]:10,xAlignment:"center",yAlignment:"middle"});
g=g.root;g.on("pixelCorrection",function(){var b=z(C(h,"data.attrs.stroke-width"),1);b=pd(g,[0,0],b);h&&h.attr({translate:b});l&&l.attr({translate:b})})}else"%name"===f?d=a.options("name"):"%value"===f&&(d=a.options("value")),"function"===typeof d&&(d=d(k)),a.options("attributes")&&(d=Mg({attr:d},a,A({mode:"AttrOnly"},a.chart.getFormatInfo()))),d=k.replaceTokens(d),f=A({xAlignment:p[e],yAlignment:"middle"},n),(g=a.rowVisuals[e])?f.val=d:(g=a.renderer.textStack(d),a.textVisualsRef.push(g)),!1===k.isVisible&&
k.chart.isRendered||g.attr(f);!1===k.isVisible&&k.chart.isRendered||a.refreshOptions(!1);return g})}return this};a.prototype.getIconVisual=function(){var b=this.currentOptions,a=this.target,c=b.icon,f=z(b.iconWidth,J(c,["width"]),20),g=K(c);a=a.getIconVisual([this._iconSize?this._iconSize[0]:f,this._iconSize?this._iconSize[1]:10],a,this);this._iconSize=null;if(c){var h=a.base||a.extra;h&&(c="object"===g?"none"===c.name?10:z(c.size,c.width,f):"string"===g&&"none"===c?10:f,b=Nd(b.icon,0,0,c,c))&&(h.attr({d:b}),
this._iconSize=[c,c])}return a};a.prototype.styleIconVisual=function(){var b=this.currentOptions,a=this.getIconVisual();this.target.styleIconVisual(a,this);a=this.getIconVisual();if(b=b.icon)if(a=a.base||a.extra)b=ic(b),a.attr(b)};a.prototype.setState=function(b,a){if(b!==this.state||a){var c=A({},this.currentOptions);"normal"!==b&&(a=this.options("states."+b))&&A(c,a);var d=uc(c);delete d.val;d.autoWrap="none";a=this.legend.rootPanel;c=a.getBbox();x(this.textVisualsRef,function(b){b.attr(d);b.isPatched&&
b.patch()});var g=a.setPreliminarySize(!0).getBbox();g.width===c.width&&g.height===c.height||a.refresh();this.state=b}};a.prototype.remove=function(b){var a=this.legend;this.destroy();a.syncCustomEntries();a.isDirty=!0;!1!==b&&a.chart.chartAreaSet.reflow(!1,!1,!0)};a.prototype.hideTracker=function(){this.trackerElement&&this.trackerElement.hide(!0)};a.prototype.destroy=function(){var b=this.legend,a,c=jb(this.legend.items,this);if(a=P(b._userEntries,{id:this.id}))jb(b._userEntries,a),jb(b.userOptions.customEntries,
a),jb(b.currentOptions.customEntries,a);-1<c&&(this.legend.isDirty=!0);this.textVisualsRef=[];x(this.rowVisuals,function(b){return b.destroy()});this.trackerElement&&this.trackerElement.destroy()};return a}(mc),Eu=[120,70],mE=function(c){function a(){var b=null!==c&&c.apply(this,arguments)||this;b.isDirty=!0;b.fillShading="box";b.items=[];b.spItems=[];b.spMode="none";b._aligmentsCache=[];b._customEntries=[];return b}L(a,c);a.prototype.init=function(b){this.alignTo=b;this.kind="Legend";this.updateSp();
this.initFP()};a.prototype.initFP=function(){var b=this;b.entries=Qa(mb,function(){return b.items},function(){return 0},{push:function(a,c){b._userEntries=b._userEntries||[];b._userEntries.push(a);b.syncCustomEntries();b.isDirty=!0;!1!==c&&b.chart.chartAreaSet.reflow(void 0,!1,!0)}})};a.prototype.options=function(b,a){var d=this.optionsGetter(b);if("NotGetter"!==d)return d;this.isDirty=!0;c.prototype.options.call(this,b,!1);!1!==a&&this.chart.chartAreaSet.reflow(void 0,!1,!0);this.afterUpdate(a);
return this};a.prototype.updateSp=function(){var b=this.chart,a,c=b.palette&&!1!==C(b.palette,"colorBar.visible");(b=this.smartPalette="object"===K(a=b.palette)&&c?b.getSmartPalette(a):void 0)?this.spMode=b.mode:!1===c&&(this.spMode="colorBar");this.colorBar&&("colorBar"!==this.spMode?(this.colorBar.destroy(),this.colorBar=void 0):this.smartPalette.destroyEntries());return this};a.prototype.allowEntries=function(){this.chart.ctManager.isType("calendar");return!0};a.prototype.setOptions=function(){c.prototype.setOptions.call(this);
this.isVisible=!1!==this.currentOptions.visible;this.setLayoutDirection();this.updateSp();var b=this._userEntries=this.currentOptions.customEntries||[];x(b,Ab);return this};a.prototype.defaultOptions=function(){var b=this.chart;b=b?b.boxDefaults():Hf();var a=b.label.style;return{position:"right top",fill:b.fill,layout:"auto",radius:b.radius,boxPointerEvents:!1,boxVisible:b.boxVisible,corners:["cut","square","cut","square"],outline:b.outline,title:{label:{style:{fontSize:"13px"}}},defaultEntry:{name:"%name",
value:"%value",icon:{width:20},style:{color:a.color,fontSize:"11px"},states:{hidden:{style:{color:"#707070"}}}},headerStyle:{color:a.color,fontSize:"12px",fontWeight:"normal"},horizontalSpacing:3,margin:!1===b.boxVisible?0:7,template:"%value %icon %name",name:"%name",value:"%value",shadow:z(b.shadow,!0),sortOrder:0}};a.prototype.normalizeOptions=function(b,a){b=c.prototype.normalizeOptions.call(this,b,a);t(b.width)&&!t(b.maxWidth)&&(b.maxWidth=b.width);return b};a.prototype.contextOptions=function(){return A({},
this.defaultContextOptions||{},C(this.chart,"typeContextOptions.legend")||{})};a.prototype.dependentOptions=function(){return[{option:"fill",check:function(b){return b},dependent:"margin",value:7}]};a.prototype.defaultEntryOptions=function(){};a.prototype.pointOver=function(b){this.colorBar&&this.colorBar.pointOver(b)};a.prototype.pointOut=function(){this.colorBar&&this.colorBar.pointOut()};a.prototype.setRootVisuals=function(){var b=this.currentOptions,a=this.rootVisuals,c=this.rootPanel;a||(a=this.rootVisuals=
{title:void 0,stack:void 0,background:void 0,grid:void 0},c=this.rootPanel=c||this.renderer.box(),c=a.stack=a.stack||this.renderer.panel({type:"stack:y"}).add(c),a.title=a.title||(new Ni(this.chart,{text:"",margin:3})).add(c),a.grid=a.grid||this.renderer.panel({type:"grid",xAlignment:"center",cellSpacing:z(b.cellSpacing,5)}).add(c),a.gridSp||(a.gridSpDivider=this.renderer.textStack("<hr>").attr({xAlignment:"center",width:"100%",fontSize:5,padding:[0,5],suspend:!0}).visible(!1).add(c),a.gridSp=this.renderer.panel({type:"grid",
xAlignment:"center",cellSpacing:z(b.cellSpacing,5)}).add(c)));return this};a.prototype.setAttribs=function(){var b=this.currentOptions,a=b.margin;"position"===Mr(b.position)&&a&&"number"===typeof a&&(b.margin=this.getAdjustedMarginVal(a));b=Ig(b,this.fillShading);delete b.width;this.attribs={bg:b};return this};a.prototype.getAdjustedMarginVal=function(b){var a=[0,0,0,0];a[{t:2,r:3,b:0,l:1}[Kr(this.options("position"))]]=b;return a};a.prototype.measure=function(b){this.render(t(b)?Kc(b):this.chart.renderer.rootBox);
this.isMeasured=!0;return this.getLegendBoxWithMargins()};a.prototype.render=function(b){var a=this,c=a.currentOptions,f="vertical"!==a.layoutDirection,g=a.rootPanel,h=a.rootVisuals,k=b?ha(b):void 0;if(b){b=la(b);var l=!0}else b={};a.updateSp();if(!l)return this;if(a.isDirty||b)if(a.isVisible){g.visible(!0);a.setTargetItems();a.sortByInternalSortValue();var m="colorBar"===a.spMode&&a.smartPalette,n=0<a.entries().items.length,p=m&&n,q=n&&"ranges"===a.spMode;h.grid.attr({width:null,height:null});a.setAttribs();
n=a.attribs;var r=A({},a.options("title.label"));C(r,"text.length")&&(r.text=a.chart.replaceTokens(r.text));var u=void 0;(u=C(r,"align"))&&h.title.rootPanel.attr({xAlignment:u});h.title.options(r);r=la(b);p&&l&&(k=vo(k,[0,-Eu[f?1:0],0,0]),r=Kc(k));var t=function(b,a){void 0===a&&(a=h.grid);b.borders.length&&a.attr({borders:b.borders});a.val(b.rows)};if(l&&q){f=h.gridSp.getBboxArray();l=h.gridSpDivider.getBboxArray();f=[0,0,0,f[3]+h.title.getSize()[1]+l[3]];b=wo(k,f);h.gridSpDivider.suspend=!0;f=a.getItemSets();
k=a.getItemBoxSets(b,f);b=Vv(k,{limitBox:b});var v=[h.grid,h.gridSp],w=0,z=b.ids;x(f,function(b,c){b&&t(a.getSetRows(b,z[Math.min(c,z.length-1)]),v[c]);b&&w++});h.gridSpDivider.visible(1<w);a.updateStyles()}else{a.allowEntries()&&t(a.getRows());k=void 0;p=m?r:a.chart.renderer.rootBox;if(a.allowEntries()&&l&&(k=Math.ceil(a.getApproximiteSplitFactor(p)),1<k))for(t(a.getRows(k));1<a.getApproximiteSplitFactor(p)&&k<a.items.length;)t(a.getRows(++k));a.updateStyles();m&&l&&(h.gridSpDivider.visible(0<h.grid.childElements.length).setPreliminarySize(!0),
k=h.grid.getBboxArray(),l=h.gridSpDivider.getBboxArray(),b=wo(ha(b),[0,0,0,k[3]+h.title.getSize()[1]+l[3]]),l=void 0,!f&&k[2]>1.5*b[3]&&k[2]>Eu[0]?(b=[0,0,k[2],b[3]],l=!0):140<b[3]&&(b[3]*=.8),h.gridSp.val([[a.getSwatch(b,l)]]))}h.grid.attr({width:c.width,height:c.height});g.attr(n.bg);a.isDirty=!1}else g.isPatched&&(g.attr({width:null,height:null}),g.visible(!1),g.refresh());a.chart.triggerOptionsApplied("legend",a);return this};a.prototype.invalidate=function(){this.isDirty=!0;return this};a.prototype.updateStyles=
function(){this.isVisible&&x(this.items,function(b){b.updateStyles()});return this};a.prototype.getApproximiteSplitFactor=function(b){var a=this.rootVisuals,c=this.currentOptions;this.rootPanel.update();var f=a.gridSp.getBbox(),g=a.gridSpDivider.getBbox();a=a.stack.getBbox();a.height-=f.height+g.height;f=this.curRect=a;b="vertical"===this.layoutDirection?f.height/(b.height||f.height):f.width/(b.width||f.width);b=ak(b,2);1>=b&&(c=z(c.maxWidth,c.width))&&(b=f.width/c);return b};a.prototype.getRows=
function(b){void 0===b&&(b=1);return this.getSetRows(this.getVisibleItems(),b)};a.prototype.getSetRows=function(b,a){void 0===a&&(a=1);var c=this,d=[],g=c.renderer,h=c.currentOptions,k=[],l=[],m=b.length&&b[0].set,n=function(a,b){return x(a,function(a){k.push(a);l.push(b)})},p=function(a,b){a?a.setColumns?(b=a.setColumns().rowVisuals,n(b,a.currentOptions.lineAbove?[!0,!1,!1,!1]:null)):n(a,null):n(c.getBlankEntry(m),null)},q=function(){k.push(g.panel({width:h.horizontalSpacing}));l.push(null)},r=function(a){if(u&&
a){for(var b=0;b<a;b++)p(c.getHeaderEntry()),b!==a-1&&q();d.push(k);k=[]}},u=void 0!==c.getHeaderEntry(m),t=Math.ceil(b.length/a);a=[];for(var v=0,w=0,z=b.length;w<z;w+=t){var A=b.slice(w,w+t);a.push(A);v=Math.max(v,A.length)}if("vertical"===c.layoutDirection)for(r(a.length),b=0;b<v;b++){k=[];r=0;for(t=a.length;r<t;r++)p(a[r][b]),r!==t-1&&q();d.push(k)}else for(r(v),r=0,t=a.length;r<t;r++){k=[];for(b=0;b<v;b++)p(a[r][b]),b!==v-1&&q();d.push(k)}return{rows:d,borders:l}};a.prototype.setLayoutDirection=
function(){var a=this.currentOptions,c=a.layout;c=c||"auto";var e={t:"horizontal",r:"vertical",b:"horizontal",l:"vertical"};a=Kr(a.position)||"r";this.layoutDirection=("auto"===c?e[a[0]]:c)||"vertical"};a.prototype.getSwatch=function(a,c){this.setLayoutDirection();var b=this.smartPalette;this.colorBar&&b.id!==this.colorBar.palette.id?(this.colorBar.destroy(),c=this.colorBar=new Du(this,b,{maxWidth:400,maxHeight:400,isHoriz:c})):c=this.colorBar=this.colorBar||new Du(this,b,{maxWidth:400,maxHeight:400,
isHoriz:c});c.measure(a)&&c.render();!this.allowEntries()&&x(this.getVisibleItems(),function(a){a.hideTracker()});return c.rootPanel};a.prototype.setTargetItems=function(){var a=this.chart;this.smartPalette&&(this._targetItems="ranges"===this.spMode?this.smartPalette.syncLegendEntries(this):void 0);a.calIndexer&&a.calIndexer.syncLegendEntries(this);this.syncCustomEntries()};a.prototype.getVisibleItems=function(){var a=z(this._targetItems,[]).slice(0);this.allowEntries()&&a.push.apply(a,G(this.items));
a=Ia(a);return ea(a,function(a){if(!1!==a.options("visible"))return a})};a.prototype.getItemSets=function(){var a=this.getVisibleItems(),c=[];x(a,function(a){var b=z(a.currentOptions.set,0);c[b]?c[b].push(a):c[b]=[a]});return c};a.prototype.getItemBoxSets=function(a,c){var b=this,d=b.rootPanel,g=b.rootVisuals,h="vertical"!==b.layoutDirection;c=c||b.getItemSets();var k=[],l=[g.grid,g.gridSp];x(c,function(c,e){if(c){e=l[e];if(c){for(var f=[],g=Yv(c.length),m=void 0,n=0,t=g.length;n<t;n++){var v=g[n],
w=b.getSetRows(c,g[n]);w.borders.length&&e.attr({borders:w.borders});e.val(w.rows);d.update();w=e.getBboxArray();if(h)if(w[2]<a[2]){w.id=v;f.push(w);break}else m=w.slice(0),m.id=v;else{if(w[2]>a[2]){m=w.slice(0);m.id=v;break}w[3]<a[3]?(w.id=v,f.push(w)):(m=w.slice(0),m.id=v)}}!f.length&&m.length&&f.push(m);c=f}else c=void 0;c.length&&k.push(c)}});return k};a.prototype.getBlankEntry=function(a){var b=[],c=this.renderer;a=this.getTemplateColumns(a).length;for(var f=0;f<a;f++)b.push(c.panel());return b};
a.prototype.getColumnAlignments=function(a){void 0===a&&(a=0);var b=this,c=!b.chart.chartAreaSet.series().length;if(b._aligmentsCache[a])return b._aligmentsCache[a];var f=b.getTemplateColumns(a),g=function(){return P(b.items,function(a){return!a.isCustom})}()||b.items[1]||b.items[0];if(!g)return[];var h=g.target,k=function(a,c){var d=a.replace(",",".");a=parseFloat(d);if(!a&&0!==a)return!1;a=a.toString();if(a===d)return!0;d=d.length-a.length;for(var e=1;e<b.items.length;e++){var f=b.items[e].target.replaceTokens(c);
a=parseFloat(f);if(!a&&0!==a)return!1;a=a.toString();if(f.length-a.length!==d)return!1}return!0};f=B(f,function(a,b){if("%icon"===a)return"center";var d;c?b=d=Mg({attr:a},g,g.chart.getFormatInfo()):(b=h.replaceTokens(a),d=h.replaceTokens({token:a}));var e=K(d);"object"===e&&(e="string",d=d.token||d);"INVALID TOKEN"===d?e="number":"string"===e&&k(b,a)&&(e="number");return"string"===e?"left":"right"});return b._aligmentsCache[a]=f};a.prototype.getTemplateColumns=function(a){var b=this.currentOptions.template,
c=!!b.pop,f=t(a),g=!0===C(this.userOptions,"defaultEntry.checkbox.enabled");b=im(c?b[f?a:0]:b,!1);c=this.userOptions.template;!a||c&&"%icon %name"!==c||"ranges"!==this.spMode||(b=im("%icon %value",!1));P(b,function(a){return"%checkbox"===a.trim().toLowerCase()})||(this.items.filter(function(a){return!0===a.userOptions.checkbox||C(a.userOptions,"checkbox.enabled")}).length?(b.unshift("%checkbox"),this.checkboxManual=!0):(a=this.userOptions.customEntries)&&a.filter(function(a){return!0===a.checkbox||
C(a,"checkbox.enabled")}).length&&(b.unshift("%checkbox"),this.checkboxManual=!0),!ee(b,"%checkbox")&&g&&b.unshift("%checkbox"));g&&this.checkboxManual&&(this.checkboxManual=!1);return b};a.prototype.getHeaderEntry=function(a){var b=this,c=b.currentOptions,f=im(c.header,!1);if(f){var g=b.getTemplateColumns(a);a=g.length;var h=uc({style:c.headerStyle});f&&f.length&&f.length!==g.length&&(c=g.indexOf("%checkbox"),-1<c&&f.splice(c,0,""));P(b.items,function(a){return!a.isCustom});var k=b.getColumnAlignments();
c=[];if(f.length===a)return c=B(f,function(a,c){-1<a.indexOf("%")&&(a=b.chart.replaceTokens(a));a=b.renderer.textStack().val(a);a.attr(A({xAlignment:k[c]||"left",yAlignment:"bottom"},h));return a})}};a.prototype.getLegendBoxWithMargins=function(){var a=this.rootPanel;1<a.combinations.length?this.rootPanel.refresh(!0):this.rootPanel.setPreliminarySize(!0);return a.getGlobalBboxArray(!0)};a.prototype.positionUpdated=function(a){x(this.items,function(a,b){a.updateTrackerPosition()})};a.prototype.addEntry=
function(a,c,e){void 0===c&&(c=0);var b;a.legend=this;e&&(!t(b=e.replaceIndex)||0>b)&&(b=this.items.indexOf(e));a=new lE(this,a,c);-1<b?(this.items.splice(b+1,0,a),e.replaceIndex=b+1):this.items.push(a);this.sortByInternalSortValue();this.isDirty=!0;return a};a.prototype.syncCustomEntries=function(){var a=this,c=mu.custom;a._isSyncing=!0;Xb(a._userEntries,a._customEntries,function(b){var d=a.addEntry(new cn(a.chart,{legendEntry:b}));t(C(b,"checkbox.checked"))&&delete b.checkbox.checked;d.isCustom=
!0;d.sortOrderValue=c++;return d},function(a,b){return b.options(a,!1)});x(a._customEntries,function(a){return a.setColumns()});a._isSyncing=!1};a.prototype.sortByInternalSortValue=function(){this.items.sort(function(a,c){a=z(a.currentOptions.sortOrder,a.sortOrderValue);c=z(c.currentOptions.sortOrder,c.sortOrderValue);return a<c?-1:a>c?1:0});this.options("reversed")&&this.items.reverse()};a.prototype.add=function(a){this.render();this.rootPanel&&this.rootPanel.add(a);return this};return a}(mc),FA=
{zigzag:ws,gap:function(c,a,b,d){var e=a/2,f="c"===c||"l"===c,g="m"===c||"t"===c;f=F(d([b[0]+(f?e:0),b[1]+(g?e:0),b[2]-(f||"r"===c?"c"===c?a:e:0),b[3]-(g||"b"===c?"m"===c?a:e:0)]),4);b=f[0];d=f[1];e=f[2];g=f[3];f={clipPath:fi(b,d,e,g)};if("r"!==c&&"b"!==c){var h=d+.5,k=b+.5;c="t"===c||"m"===c?[[[b,h],[b+e,h]],[[b,h-a],[b+e,h-a]]]:[[[k,d],[k,d+g]],[[k-a,d],[k-a,d+g]]];f.outlinePath=fb(c[0]).concat(fb(c[1]))}return f},line:function(c,a,b,d){if("r"===c||"b"===c)return null;var e=a/2,f="c"===c||"l"===
c;c="m"===c||"t"===c;a=d([b[0]-(f?e:0),b[1]-(c?e:0),f?a:b[2],c?a:b[3]]);return{path:fi(a[0],a[1],a[2],a[3])}},hidden:function(){return null}},HA=function(c,a,b){var d=a.id,e=function(a){return a.crosshair(b)};c.axes().filter({userOptions:{scale:{syncWith:d}}}).each(e);e(a)},IA=function(c){var a=[];x(c,function(b){b.yVal.pop?x(b.yVal,function(c){a.push(en(A({},b,{yVal:c})))}):a.push(en(b))});return a},Fu=["column","area","candlestick","ohlc","variwide"],vj=["column","candlestick","ohlc","variwide"],
Gu=function(c){function a(a,d){var b=c.call(this,a.chart,d,[a.chart,d])||this;b.chartAreaSet=a;b.kind="chartArea";b._series=[];b.yAxis=[];b.xAxis=[];b.zAxis=[];b._axes=[];b.axConfList={};b.renderedRect=Rk();b.preRenderedRect=Rk();b.isDirtyPreRender=!0;b.isRendering=!1;b.renderRect={x:0,y:0,width:0,height:0,borderWidth:0};b.projection={lin2valxy:function(a,b){return[a,b]},val2linxy:function(a,b){return[a,b]}};b._awaitRenderCallbacks=[];b.maxSeriesZIndex=0;b.events={contentBox:new ud,click:new ud};
b.isZoomedDragArea=!1;b.zoomAxes=[];b.computeVals2=function(a,c){var d=a.slice(0,2);b.isHoriz&&d.reverse();var e=[];x(b.zoomAxes,function(a,b){return e[b]=a?a.linToVal(d[b],c):void 0});return b.projection.lin2valxy(e[0],e[1])};b.computeValsTouch=function(a,c){return B(a,function(a){return b.computeVals2(a,c)})};b._lastPointers=[];b.mouseMove=Xi(function(a){var c=function(){var a=e.getCursor();return!a||"crosshair"===a||"move"===a},d=a.pointers||[[a.x,a.y]],e=b.chart,f="touch"===a.device,g;if(2===
d.length&&b.isPinchZooming)b.pinch(a);else if(1===d.length){d=d[0];var h=void 0;if(b.isZooming)return b.zoomEndVals=h=b.computeVals2(d,!0),b.moveZoom(b,h),!0;if(b.isDragging)return b.drag(b.computeVals2(d));var r=b.renderer.renderer.isAnimatingOwn()&&!b._ignoreAnimation;h=b.isType("map");if(!r&&(g=b.renderBySortedSeriesRev)){r=void 0;if(b.crosshair(d,a))b.debounce.run("unmute");else for(var u=0,t=g.length;u<t&&!(r=g[u].mouseMove(a,d));u++);b.crossPDD().length&&a.eventArgs.cancelable&&a.eventArgs.preventDefault();
f&&(r?(b.debounce.defer("touchTimeout",function(){b.clickOff()},8E3),b._hoveredItem=b.chart.hoveredPoint):b._hoveredItem=void 0);!r&&c()&&b._axisToZoom&&(h||b._isStaticDragArea?(b.isZoomed||b.isZoomedDragArea)&&e.setCursor("move"):b.isZoomed&&!h?b.isInDragArea(d[1])?e.setCursor("move"):h||e.setCursor("crosshair"):e.setCursor("crosshair"));return r||!0}}},13);b.docMM=void 0;b.docVUp=void 0;a.items.push(b);var f=b.readyDefer=new KB,g=f.hold("caConst");b.initFP();b.chart=a.chart;b.collisionManager=new fn(b);
b.legend=b.chart.legends(0);b.legend.alignTo=b.legend.alignTo||b;b.prepAxisConfigs();f.release(g);b._firstOpCall=!0;b.options(d,!1);b.tooltip=new bE(b);return b}L(a,c);a.prototype.init=function(a){this._renderDataCallMonitor=new LB;this.ctManager=cu();this.ctManager.init(a.userOptions);this.debounce=new He};a.prototype.initFP=function(){var a=this;this.axes=Qa(Pf,function(){return a._axes},function(a){});this.series=Qa(ln,function(){return a._series},function(a){})};a.prototype.defaultOptions=function(){var a=
this.chart,c=a.boxDefaults(this.userOptions.boxVisible?1:void 0),e=we(c.fill,"white",30),f=C(a.typeContextOptions,"chartArea");c={fill:e,outline:c.outline,boxVisible:c.boxVisible,shadow:c.shadow};f&&A(c,f);a.chartAreaSet.hasScaleBreaks&&(c.boxVisible=!0);return c};a.prototype.normalizeOptions=function(a){a=c.prototype.normalizeOptions.call(this,a,"series");Oh(a,"xAxis");Oh(a,"yAxis");pp(a,"orientation");Sw(a);return a};a.prototype.options=function(a,d){var b=this.optionsGetter(a);if("NotGetter"!==
b)return b;(b=a.series)&&!this._firstOpCall&&(delete this.userOptions.series,delete this.currentOptions.series);!this._firstOpCall&&c.prototype.options.call(this,a,d);this.isHoriz=this.ctManager.isHoriz();b&&this.setSeries(d);this.applyOptions();!1!==d&&this.chartAreaSet.tryReflow();this._firstOpCall=!1;return this};a.prototype.applyOptions=function(){var a=this.options(),c;if(this.rootVisuals.caBackground){var e=Hg(a,void 0,Ja.chartArea);this.rootVisuals.caBackground.attr(e.fill)}e=a.height;var f=
a.width;if(e||f){var g={};f&&(g.width=f);e&&(g.height=e);this.rootPanel.attr(g)}(c=a.title)&&this.rootVisuals.titleBox.options(c);(this._isStaticDragArea=this.isType("organizational"))?this._axisToZoom="xy":(this._axisToZoom=this.chart.currentOptions.axisToZoom||this.currentOptions.axisToZoom,"none"===this._axisToZoom&&(this._axisToZoom=""));this.chart.triggerOptionsApplied("chartArea",this);return this};a.prototype.canZoom=function(){return!!this._axisToZoom};a.prototype.setSeries=function(a){var b=
this;b.log("setSeries()");var c=b.processSeriesConfigs(),f=function(a,c){var d=a.currentOptions,e=d&&(d.id||d.name),f=a.id||a.name;return b.ctManager.isType("map",a)?e||f||c:d?e||c:f||c};Xb(c,b._series,function(a){b.addSeries(a)},function(b,c){return c.options(b,a||!1)},function(){},f,f);b.triggerUser("setSeries",b);b.updateMapData(a);return this};a.prototype.processSeriesConfigs=function(){var a=this.options(),c=this.ctManager;a=a.series||[];if(c.shouldDataMerge()&&a.length&&1<a.length){var e=c.dataMergeType(a);
c=c.shouldDataMerge(a);c.length&&(a=B(c,function(a){return nA(a,"collect"===e)}))}return a};a.prototype.spliceSeries=function(a,c,e,f){var b=this,d=this.readyDefer,k=this._series,l=d.hold("spliceSer"),m=k.slice(0,a),n=k.slice(a,a+c);a=k.slice(a+c,k.length);c=0;for(k=n.length;c<k;c++)n[c].destroy();e=B(e,function(a){return(new kn(b)).options(a,f||!1)});m.push.apply(m,G(e));m.push.apply(m,G(a));this._series=m;this.updateMapData(f);this.triggerUser("addSeries");d.release(l)};a.prototype.updateMapData=
function(a){var b=this;b.isType("map")&&b.triggerUser("updateMapData",[b,function(){return b.chart.redraw(a)}])};a.prototype.addSeries=function(a,c){this.isDirtyPreRender=!0;var b,d=this.readyDefer,g=d.hold("addSer");this._series.push(b=new kn(this));b.options(a,c||!1);this.isType("map");d.release(g);this.triggerUser("addSeries");return b};a.prototype.preRender=function(){var a=this;if(a.isDirtyPreRender){var c=!a.renderedRect.width;a.setAxes();var e=function(b){b=a.axes(b).items.sort(function(a,
b){a=a.options("scale.syncWith");b=b.options("scale.syncWith");return a&&b||a===b?0:a?1:-1});for(var c=0;c<b.length;c++){var d=b[c];d.setData().setRange(!0);d.init_markers()}};e(function(a){return"x"===a.prefix});a.dataLayout_clustersAndStacks();a.series().each(function(a){return a.setColor()});e(function(a){return"x"!==a.prefix});a.isMultiType()&&(a.panes=a.panes||(dn?new dn(a):null),a.panes.setPanes(a._updateOptions));a.preRenderedRect=a.contentRect;a.isDirtyPreRender=!1;c&&a.triggerUser("firstPreRender",
a)}};a.prototype.setAxes=function(){var a=this,c=this,e=(J(c.chart.currentOptions,["defaultAxis","scale"])||{}).syncWith,f=c.chartAreaSet.allAxes;c.series().each(function(a){a.setAxes()});x(["x","y","z"],function(b){if(1<f[b].length)for(var d=0,g=f[b].length;d<g;d++)if(d){var l=f[b][d],m=!1,n=l.scale||{},p=!!n.range;p&&fm(n.range);var q=n.syncWith||e,r=J(c._series[0],["visualizer","kind"])||"";"none"===q||c.ciManager.exists(l.id)||r.match(/^map|^annotation|^funnel|^venn|^pie/)||(l.scale?p&&!fm(n.range)&&
(m=!0):l.defaultTick?t(l.defaultTick.enabled)||oa.emit("tip",l.id,"multiAxDTE",{data:[l.id,b],container:c.chart.getWrapper()}):l=A({defaultTick:{enabled:!1}},l),m||new uj(a,l,b))}});c.setZoomAxes();c.triggerUser("setAxes",c)};a.prototype.isType=function(a){return this.ctManager.isType(a)};a.prototype.isMultiType=function(){return this.isType("radar")||this.isType("gauge")};a.prototype.buildChildLookup=function(){if(!this.childLookup){var a=this.childLookup={};this._series.forEach(function(b){b._points.forEach(function(b){var c;
if(c=b.currentOptions.parent)c=Li(c),x(c,function(c){a[c]=a[c]||[];a[c].push(b)})})})}};a.prototype.requestAxis=function(a,c,e,f){var b,d=this.chart.chartItemManager;if(e){if(b=d.exists(e))return b;a=this.getAxConfig(e)||{}}else a=this.chartAreaSet.freeAxes[c];(e=z(e,a?a.id:void 0))&&(b=d.exists(a.id))||(b=A({},a),e&&(b.id=e),b=new uj(this,f?A(b,f):b,c));return b};a.prototype.getAxConfig=function(a){if(a)for(var b=this.axConfList,c=ya(b),f=this.chartAreaSet.currentOptions.rootAx,g,h=0,k=c.length;h<
k;h++){var l=c[h];if((g=P(b[l],{id:a}))||(g=P(f[l+"Axis"],{id:a})))return g}};a.prototype.prepAxisConfigs=function(){var a=this,c,e;x(["x","y","z"],function(b){e=b+"Axis";c=a.currentOptions[e]||[];c.push(a.chartAreaSet.freeAxes[b]);x(c,Ab);a.axConfList[b]=c});return a};a.prototype.populateAxisPanels=function(){function a(a){return function(b){b.isVisible&&b.rootPanel&&!b.isAdded&&b.add(a)}}if(!this.isMultiType()){var c=this.rootVisuals,e=this.readyDefer,f=ls(this.axes()),g=[this.rootRect.width,this.rootRect.height],
h,k=[c.topAxes,c.rightAxes,c.bottomAxes,c.leftAxes];c=function(a){return!a.isHoriz};var l=function(a){return a.isHoriz},m=e.hold("axM");qb(4,function(b){x(f[b],a(k[b]))});this.axes(c).each(function(a){a.resetMetricsData();if(h=a.measure(g))g[0]-=h[2]});this.axes(l).each(function(a){a.resetMetricsData();if(h=a.measure(g))g[1]-=h[3]});var n=function(a){return a.measure(g)};this.axes(c).each(n);this.axes(l).each(n);e.release(m)}return this};a.prototype.measureAxes=function(){this.populateAxisPanels();
Qr(this)};a.prototype.measureAxes_resetOverflows=function(){var a=this.rootVisuals;a.leftOverflow.attr({width:0});a.topOverflow.attr({height:0});a.rightOverflow.attr({width:0});a.bottomOverflow.attr({height:0});this.overflows=[0,0,0,0]};a.prototype.tryRenderData=function(a){var b=this.rootVisuals.content.getGlobalBbox();if(!b.width||!b.height)return!1;var c=this.contentRect;if(c&&c.width===b.width&&c.height===b.height)return!1;c=this.contentRect=b;c.x=0;c.y=0;this.renderData(a);return!0};a.prototype.renderData=
function(a){var b=this,c=b.chart,f=b.rootVisuals;b.log("renderData");b.isRendering=!0;var g=b.readyDefer,h=b.contentRect;if(!g.isReady())return g.onReady(b.id+"renderD",function(){b.isType("map")&&b.chartAreaSet.reflow();b.renderData(a||b._updateOptions||void 0)}),b;var k=b._renderDataCallMonitor;if(!(10<k.callCount)){k.open();b._updateOptions=void 0;h||(h=b.contentRect=Kc([0,0,800,500]));var l=!1;if(h){l=b.chart.disableAnimation(a);b.triggerUser("preRenderData",[b,!b.renderedRect.width]);if(b._cancelBubble){k.close();
b._cancelBubble=0<k.callCount;return}b.trigger("contentBox",f.content.getGlobalBbox());Dz(b);g=b.currentOptions.outline.width;var m=b.renderRect=Tk(h,g/2),n={x:0,y:0,width:m.width,height:m.height};g={x:0,y:0,width:h.width-2*g,height:h.height-2*g,borderWidth:g};var p=f.titleBox.currentOptions;m=p.position&&"full"!==p.position?p.position:"left";p=Hg(p);f.titleBox.alignTo(f.content,m,m,[0,p.stroke["stroke-width"]]);var q=[],r;c.flowEvents.beforeRenderSeries.trigger([b,h,g,a,q,function(){return r=!0}]);
r||(f=b.series(function(a){return a.chartArea.id===b.id&&!1===a.info.type.isShape&&void 0===a.pane}).sortBy("zIndex"),f.each(function(b){return q.push(function(){return b.render(n,a)})}),f.each(function(b){return q.push(function(){return b.renderLabels(n,a)})}),f.each(function(b){return q.push(function(){return b.renderHierarchy(n,a)})}));qw(function(a){return c.ensureLoadingApplied(a)},q,function(){c.flowEvents.nextRenderSeries.trigger([b,h,n,a,function(){return r=!0}]);b.renderedRect=h;b.isMultiType()||
b.axes().each(function(b){b.render(n,A({invalidate:!0},a));b.renderOnCa(n,a)});b.render_caClip();l&&b.chart.enableAnimation();b.rootPanel.refresh();b.legend.updateStyles();b.renderBySortedSeriesRev=b.series(function(a){return a.chartArea.id===b.id}).sortBy("zIndex").items.slice(0);b.renderBySortedSeriesRev.reverse();b._chartFirstTimeRendered||(b._chartFirstTimeRendered=!0,b.triggerUser("chartAreaRenderDataFirstTime",b));var d=b._awaitRenderCallbacks.slice();b._awaitRenderCallbacks=[];b.isRendering=
!1;b.isRendered=!0;x(d,function(a){return a()});b._cancelBubble=1<k.callCount;k.close()})}return this}};a.prototype.getContentGlobalBbox=function(){return this.rootVisuals.content.getGlobalBboxArray()};a.prototype.awaitRender=function(a){this._awaitRenderCallbacks.push(a)};a.prototype.render_caClip=function(){var a=this,c=a.rootVisuals,e=a.currentOptions,f=a.rootVisuals.content,g=a.axes(),h=sb(ha(a.renderRect),-1),k=e.outline.width||0;g=vs(f,g,k);h=g.clipPath||Gc(ha(od(f,Kc(h),k)));k=Hg(e);k=A({d:h},
Ka(k.stroke,"fill"));var l={shadow:a.currentOptions.shadow};!1!==e.clipContent&&(l.clipPath=h);f.attr(l);if(g.outlines){var m=[];c.outlinePaths&&x(c.outlinePaths,function(a){return a.destroy()});x(g.outlines,function(b){m.push(a.renderer.renderer.path({fill:"none",stroke:b.stroke,d:b.path,zIndex:gb.breakPath}).add(f))});c.outlinePaths=m}if(g.paths){var n=[];c.breakPaths&&x(c.breakPaths,function(a){return a.destroy()});x(g.paths,function(b){n.push(a.renderer.renderer.path({fill:b.color,stroke:"none",
d:b.path,zIndex:gb.breakPath}).add(f))});c.breakPaths=n}k["stroke-width"]||(k.stroke="none");c.contentStroke.attr(k)};a.prototype.setRootVisuals=function(){var a=this.renderer;if(!this.rootVisuals){var c=this.currentOptions.outline.width;this.rootPanel=(this.rootVisuals=Rl(a).build({axis:{},axisMarkers:!0,annotationLayer:!0,contentOverlay:!0,background:!0,gridLines:!0,overflow:!0,outline:{width:c},title:{holder:this},content:{stroke:{width:1}}})).mainStacks;this.bindRootEvents()}return this};a.prototype.getAxisMarkerVisualTargets=
function(){var a=this.rootVisuals;return{behind:a.axisMarkersBehind,front:a.axisMarkersFront}};a.prototype.invalidate=function(){this.isDirtyPreRender=!0;this.series().each(function(a){a.seriesDirty.pos(!0);a.seriesDirty.coord(!0)});this.legend.invalidate();this.chartAreaSet.invalidateCache();return this};a.prototype.dataLayout_clustersAndStacks=function(){var a=this,c=[],e=[],f={},g=function(){x(vj,function(a,b){f[a]=0})},h=0;x(this.xAxis,function(b){var d=a.series({isVisible:!0});g();b.dpsStackInfo=
void 0;d.items.reverse();var k=Ia(d.items.map(function(a){return a.type}));d.each(function(g){var l=-1<Fu.indexOf(g.type);e=[];l||(g.zIndex=h+=8);g=jc(Fu,k);x(g,function(g){d.filter(function(a){return a.isVisible&&a.type===g&&a.xAxis.id===b.id}).reverse().each(function(k){if(-1===c.indexOf(k.id)){var l=k.yAxis.isStacked(),m=k.xAxis.isStackedFull();l?(l=d.filter({yAxis:{id:k.yAxis.id},xAxis:{id:b.id},isVisible:!0,type:g}).each(function(a){-1<vj.indexOf(g)&&(a.clusterIndex=f[g]);a.isStacked=!0;c.push(a.id)}).items,
h=kA(l,b,h),-1<vj.indexOf(g)&&(f[g]++,e.push(g))):(-1<vj.indexOf(g)&&(k.clusterIndex=f[g],e.push(g),k.info.type.clusters&&f[g]++),k.zIndex=h+=8,c.push(k.id));m&&"category"===k.xAxis.type&&(k=a.yAxis[0].isStacked(),l=d.filter({isVisible:!0,type:g}).items,lA(l,b,k))}})});e.length&&(e=Ia(e),x(e,function(a){b.clusterCounts[a]=f[a]||1}))});if(-1<k.indexOf("column")){var n=d.filter(function(a){return a.isVisible&&a.xAxis&&a.xAxis.id===b.id&&"column"===a.type&&!a.yAxis.isStacked()&&!a.yAxis.isStackedFull()});
if(n.items.length){var p="stacked"===a.chart.options("zAxis.scale.type")||"stacked"===a.chart.options("zAxisScaleType");mA(n.items,b,!p)}}});this.maxSeriesZIndex=h;this.dataLayoutExperiment()};a.prototype.dataLayoutExperiment=function(){var a=this._series.slice(0),c=[],e=function(a){return a.pop?x(a,e):c.push(a.id)},f=0,g=function(a){a.zIndex=f+=8},h=function(a){var b=a.type,c=a.info.type.snapToZero,d=a.info.type.clusters;c&&a.yAxis.isStacked()&&(b+=a.yAxis.id);d&&(b+=a.xAxis.id);c||d||(b+=a.id);
return b},k=function(b){return ea(a,function(a){return h(a)===b})};c=[];x(a,function(a){-1<c.indexOf(a.id)||(a=h(a),a=k(a),1===a.length?g(a[0]):x(a,g),e(a))});this.maxSeriesZIndex=f};a.prototype.resetTimers=function(){x(this._axes,function(a){return a.resetTimers()});this.chart.hideTooltip();this.crosshair()};a.prototype.ignoreAnimationFor=function(a){var b=this;a?(b._ignoreAnimation=!0,b.debounce.defer("ignoreAnim",function(){b._ignoreAnimation=!1},a)):b._ignoreAnimation&&(b.debounce.clear("ignoreAnim"),
b._ignoreAnimation=!1)};a.prototype.isZoomLive=function(){return this.isPinchZooming||this.isDragging||this.isMapZooming};a.prototype.setZoomAxes=function(){var a=this,c=a.isType("map");a.axes().each(function(b){if(b.isVisible||b._isDragHost||c)a.zoomAxes["x"===b.prefix?0:"y"===b.prefix?1:2]=b});return a};a.prototype.getZoomAxes=function(){this.zoomAxes.length||this.setZoomAxes();return this.zoomAxes};a.prototype.keyup=function(a){"Escape"===a.eventArgs.key&&this.cancelAll()};a.prototype.clickData=
function(a){var b=this,c={yAxis:[],xAxis:[]};if(!t(a.x)){var f=b.rootVisuals.content.toRelativeXY(a.eventArgs);a.x=f[0];a.y=f[1]}var g=[];b.axes().each(function(d){if(d.isVisible&&!d.noData||b.isType("map"))"x"===d.prefix?c.xAxis.push({value:g[0]=d.linToVal(a.x)}):"y"===d.prefix&&c.yAxis.push({value:g[1]=d.linToVal(a.y)})});c.xAxis=B(c.xAxis,function(a){return{value:b.projection.lin2valxy(a.value,g[1])[0]}});c.yAxis=B(c.yAxis,function(a){return{value:b.projection.lin2valxy(g[0],a.value)[1]}});return c};
a.prototype.click=function(a){this.debounce.clear("clickoff");this.cancelAll();clearTimeout(this.zoomStartIntervalId);var b=a.pointers||[[a.x,a.y]];if(1===b.length){b={yAxis:[],xAxis:[],event:a.eventArgs};var c=!1,f="touch"===a.device;if(!this.isZooming&&!this.isDragging){var g=this.chart.highlighted,h=void 0;f&&(h=this._hoveredItem,this.mouseMove(a),this.mouseUp(a));for(var k=ea(this.renderBySortedSeriesRev,function(a){return a.isVisible}),l=0,m=k.length;l<m;l++)if(k[l].mouseClick(a)){c=!0;break}f&&
(h&&h===this._hoveredItem?this.clickOff(a):c?(f=this.chart.hoveredPoint)&&g&&Tb(this.chart,f):Tb(this.chart))}this.hasAnyNamedEvent("click")&&(M(b,this.clickData(a)),c||(this.trigger("click",b),this.triggerUser("click",b)))}else 2===b.length?this.zoom("-100%"):3===b.length&&this.zoom("initial")};a.prototype.clickOff=function(a,c){function b(){var a=d.chart,b;d.cancelAll();d.crosshair();d.chart.hideTooltip();d.legend.pointOut();(b=a.hoveredPoint)&&"hover"===b._state&&b.mouseOut();d.debounce.has("unmue")?
d.debounce.run("unmute"):Tb(d.chart);d._hoveredItem=void 0}var d=this;c?b():d.debounce.defer("clickoff",b,30)};a.prototype.dblclick=function(a){this.cancelAll();a=a.pointers||[[a.x,a.y]];1===a.length&&this.zoom({level:"+100%",at:this.computeVals2(a[0])})};a.prototype.mouseDown=function(a){var b=this,c=b.chart,f=b.getZoomAxes(),g=a.device,h=a.pointers||[[a.x,a.y]],k=b.computeValsTouch(h),l=h.length,m=h[0];b._lastPointers.length!==h.length&&(clearTimeout(b.zoomStartIntervalId),b.cancelAll());b.zoomEndVals=
void 0;var n=[],p=b._axisToZoom;n=k[0];!p&&b._isStaticDragArea&&(b._axisToZoom=p="xy");var q=function(){b.isPinchZooming=p;b.pinchStartTouches=h;b.zoomStartRanges=B(f,function(a){return[a.range.min,a.range.max]});b.renderer.attr("disableAnimation",!0)};(function(){if(b.isType("map"))return b.isZoomed||2===l?!0:!1;if(b._isStaticDragArea||b.isZoomed&&b.isInDragArea(m[1])){var a=!1;b.axes().each(function(b){b.canDrag()&&(a=!0)});return a}return!!p})()&&(b.zoomStartIntervalId=setTimeout(function(){b.attachDoc();
if(1===l)if(b.isType("map")||b._isStaticDragArea||b.isZoomed&&b.isInDragArea(m[1])||"touch"===g&&b.isZoomed){var a;if(a=p)b.isDragging=a,b.dragPrevVals=n,b.renderer.attr("disableAnimation",!0),b._prevCursor=c.getCursor(),!b._prevCursor&&b.isZoomed&&c.setCursor("move")}else{if(!b.isZoomed&&"touch"===g||"touch"!==g)if(a=p)b.isZooming=a,b.zoomStartVals=n,b.renderer.attr("disableAnimation",!0)}else 2===l&&q();b.isDragging||b.isZooming||b.chart.setCursor();b.mouseLeft=!1;b.chart.resetTimers()},10),a.eventArgs.cancelable&&
a.eventArgs.preventDefault());b._lastPointers=h};a.prototype.mouseUp=function(a){clearTimeout(this.zoomStartIntervalId);this.isDragging&&this.mouseLeft&&this.chart.setCursor();this.endDrag().endZoom();this.isPinchZooming=!1;this._lastPointers=a.pointers||[]};a.prototype.isInDragArea=function(a){var b=this.isHoriz?0:1;return(b=this.zoomAxes[b]||this._axes[b])&&.5<b.linToPos(a)};a.prototype.mouseOut=function(a){a=a.eventArgs;for(var b=0,c=this._series.length;b<c;b++)this._series[b].mouseOut(a);a=this.chart.getCursor();
"crosshair"!==a&&"move"!==a||this.isDragging||this.chart.setCursor();this.isDragging&&(this.mouseLeft=!0);this.crosshair()};a.prototype.wheelHandler=function(a){var b=[a.x,a.y],c=a.eventArgs;this._axisToZoom&&(this.setZoomAxes(),this._isStaticDragArea?(this.isDragging=this._axisToZoom,this.dragPrevVals=this.computeVals2(b),b=this.computeVals2([b[0]-.5*c.deltaX,b[1]-.5*c.deltaY]),this.drag(b)&&a.eventArgs.preventDefault(),this.endDrag()):c.altKey&&(b=this.computeVals2(b),this.zoom({at:b,level:(0>c.deltaY?
"+":"-")+Math.abs(.5*c.deltaY)}),this.resetTimers(),a.eventArgs.preventDefault()))};a.prototype.pinch=function(a){var b=this,c=b.isType("map");a=a.pointers;var f=b.getZoomAxes(),g=b.isType("map")&&"xy"||b.chart.currentOptions.axisToZoom,h=function(){return c?Vs(b.zoomBBox||b.zoomBBoxSet):B(f,function(a){return[a.range.min,a.range.max]})};b.isPinchZooming?(b.pinchZoom(b.computeValsTouch(b.pinchStartTouches),b.computeValsTouch(a)),b.pinchStartTouches=a,b.zoomStartRanges=h()):(b.cancelAll(),g&&"none"!==
g&&(b.isPinchZooming=g,b.pinchStartTouches=a,b.zoomStartRanges=h(),b.renderer.attr("disableAnimation",!0)))};a.prototype.resetZoom=function(){clearInterval(this.zoomStartIntervalId);var a=this.isDragging=this.isZooming=!1;this.isZoomed=!1;this.isType("map")?this.chart.zoom("initial"):(x(this.zoomAxes,function(b){b&&(a=!0,b.zoom(void 0,void 0,!1))}),this.series().each(function(a){a.seriesDirty.pos(!0);a.seriesDirty.coord(!0)}),this.renderData());this.chart.setCursor();a&&this.chart.redraw();return this};
a.prototype.cancelAll=function(){this.endDrag();this.isZooming=!1;this.zoomVisual&&this.zoomVisual.attr({display:"none"});this.isPinchZooming=!1;return this};a.prototype.endDrag=function(){this.isDragging&&(this.isDragging=!1,this.series().each(function(a){J(a,["indexer","data","coordinates","0","hitTest"])||a.setCoordinates(void 0,{forceCoordinates:!0})}),this.renderer.attr("disableAnimation",!1),!this._prevCursor&&this.chart.setCursor(),this._prevCursor=null);return this};a.prototype.endZoom=function(){var a=
this;clearInterval(a.zoomStartIntervalId);a.renderer.attr("disableAnimation",!1);if(a.isZooming&&a.zoomEndVals){var c={},e=!1,f=[],g=function(b,d){if(-1<a.isZooming.indexOf(b))b=c[b+"Axis"]=[a.zoomStartVals[d],a.zoomEndVals[d]],f[d]=b;else if(b=a.zoomAxes[d])b=b.range,f[d]=[b.min,b.max]};a.isZoomingReflow=!0;g("x",0);g("y",1);g=function(a){var b=a[0];a=a[1];return Xa([[b?b[0]:0,a?a[0]:0],[b?b[1]:0,a?a[1]:0]])}(f);!1!==a.triggerUser("selection",c)&&(a.zoom(g),a.isZoomingReflow=!1,(e=!!P(a.zoomAxes,
function(a){return a&&a.isZoomed}))&&a.triggerUser("selection",c));a.cancelAll();a.isZoomed=e}else a.isZooming=!1;a.detachDoc();return a};a.prototype.pinchZoom=function(a,c){var b=this.isPinchZooming,d=this.zoomStartRanges,g=Bh(Xa(a),[1,1]),h=Bh(Xa(c),[1,1]);c=va(g);a=va(h);var k=h[2]/g[2]||1;g=h[3]/g[3]||1;if(b){if(-1<b.indexOf("x")){var l=d[0],m=l[1]-l[0];k=m/k;h=(a[0]-l[0])/m;l=(l[1]-a[0])/m;h=c[0]-k*h;l=c[0]+k*l;k=[h,l]}else k=d[0];-1<b.indexOf("y")?(d=d[1],l=d[1]-d[0],b=l/g,h=(a[1]-d[0])/l,l=
(d[1]-a[1])/l,h=c[1]-b*h,l=c[1]+b*l,c=[h,l]):c=d[1];c=Xa([[k[0],c[0]],[k[1],c[1]]]);this.triggerUser("cazoom",[this,c]);this.zoom(c)}};a.prototype.drag=function(a){var b=this.isDragging,c=[0,0];if(b){var f=O(b);f&&-1<b.indexOf("x")&&(c[0]=this.dragPrevVals[0]-a[0]);f&&-1<b.indexOf("y")&&(c[1]=this.dragPrevVals[1]-a[1]);this._isStaticDragArea&&(this.dragPrevVals=a);this.isType("map")?(this.triggerUser("pan",[this,c]),this.chart.redraw({animation:!1})):this.zoom(c)}return!1};a.prototype.moveZoom=function(a,
c){if(a.isZooming){var b={},d=a.isHoriz?"y":"x",g="x"===d?0:1,h=a.isHoriz?"x":"y",k="x"===h?0:1,l=a.rootVisuals.content.getGlobalBbox(),m=a.zoomVisual=a.zoomVisual||a.renderer.renderer.path({d:"M0 0"}).add(a.rootVisuals.front),n=[0+l.x,0+l.y,a.contentRect.width,a.contentRect.height];if(-1<a.isZooming.indexOf(d)){var p=a.zoomAxes[g].getCaLen(c[g]),q=a.zoomAxes[g].getCaLen(a.zoomStartVals[g]);p=ua(p,0,a.contentRect.width);q=ua(q,0,a.contentRect.width);n[0]=p+l.x;n[2]=q-p;b[d+"Axis"]=[a.zoomStartVals[g],
c[g]]}-1<a.isZooming.indexOf(h)&&(d=a.zoomAxes[k].getCaLen(c[k]),g=a.zoomAxes[k].getCaLen(a.zoomStartVals[k]),n[1]=d+l.y,n[3]=g-d,b[h+"Axis"]=[a.zoomStartVals[k],c[k]]);c=Gc(n);m.attr({d:c,fill:"rgba(0,0,200,.2)",display:"block","pointer-events":"none"});a.triggerUser("selecting",b)}};a.prototype.zoomUpdated=function(a){var b=this,c=this,f=c._axisToZoom;if(c._isStaticDragArea)var g=!1;else t(a)?g=a:c.isType("map")?g=!!so(c.zoomBBox||c.zoomBBoxSet,c.zoomBBoxInitial,3):c._isStaticDragArea||(g=c.getZoomAxes(),
g=!!P(g,{isZoomed:!0}));c.isZoomed=g;a=c.chart.toolbar();f&&a&&a.zoomInOut(g);if(!this._eventWaitingId){var h=c.isDragging?"scrolled":"zoomed";this._eventWaitingId=setInterval(function(){b.renderer.renderer.isAnimatingOwn()&&!b._ignoreAnimation||c.isDragging||(clearTimeout(b._eventWaitingId),b._eventWaitingId=void 0,b.triggerUser(h,b.axes().map(function(a){return a.range})))},100)}};a.prototype.bindRootEvents=function(){this.bindEvents()};a.prototype.bindEvents=function(){var a=this;if(!a._evBound){var c=
a.rootVisuals.content;c.on("touchmove",function(b){(a.isZooming||a.isDragging||a.isPinchZooming)&&b.eventArgs.cancelable&&b.eventArgs.preventDefault()});var e;c.on("mouseover",function(b){e||(a.triggerUser("mouseOver",b),e=!0)});c.on("mouseout",function(b){a.evInsideCA(b)||(a.mouseMove.cancel(),a.mouseOut(b),a.triggerUser("mouseOut",b),e=!1)});c.on("vmove",function(b){return!a.docMM&&a.mouseMove(b)});c.on("vclick",function(b){a.click(b);b.eventArgs.preventDefault()});c.on("vdown",function(b){return a.mouseDown(b)});
c.on("wheel",function(b){return a.wheelHandler(b)});a._docElement||(a._docElement=a.chart.renderer.renderer.documentElement);a._docElement.on("keyup",function(b){return a.keyup({eventArgs:b})});a._docElement.on("vclick",function(b){return!a.evInsideChart(b)&&a.clickOff({eventArgs:b})});a._evBound=!0}};a.prototype.attachDoc=function(){var a=this,c=a._docElement;if(!a.docMM||!a.docVUp){var e=a.rootVisuals.content;a.docMM=e.externalOn(c,"vmove",function(b){return a.docVMoveHandler(b)});a.docVUp=e.externalOn(c,
"vup",function(b){return a.mouseUp(b)})}};a.prototype.detachDoc=function(){this.docMM&&this.docMM.un();this.docVUp&&this.docVUp.un();this.docMM=this.docVUp=null};a.prototype.docVMoveHandler=function(a){this.mouseMove(a)&&a.eventArgs.preventDefault()};a.prototype.evInsideCA=function(a){var b;if((b=C(this.rootPanel,"el"))&&a.composedPath)return-1<(a.composedPath&&a.composedPath()).indexOf(b);if(b=this.contentRect)return b=sb(ha(b),0),Cd(b,[a.x,a.y])};a.prototype.evInsideChart=function(a){var b=C(this.chart.rootPanel,
"el.parentNode.el");return b&&a.composedPath?-1<a.composedPath().indexOf(b):this.evInsideCA(a)};a.prototype.crosshair=function(a,c,e){var b=!a&&!c;b&&this.tooltip&&this.tooltip.hideTooltip();if(-1!==["vertical","horizontal"].indexOf(this.ctManager.settingVal("chartType")))return b?(this.series().each(function(a){return a.hideHalo()}),JA(this)):GA(this,a,c,e)};a.prototype.crossPDD=function(){var a=this.isHoriz,c,e;this.axes().each(function(a){var b=a.prefix;if(C(a.currentOptions,"crosshair.enabled")&&
(c=c||"x"===b,e=e||"y"===b,c&&e))return!1});return a?(e?"X":"")+(c?"Y":""):(c?"X":"")+(e?"Y":"")};a.prototype.zoom=function(a,c){(a=this.zoomConfToBox(a))&&this.setZoomBox(a,c);return this.getZoomBoxes().zoom};a.prototype.zoomConfToBox=function(a){var b=this.isType("map"),c=K(a),f=this._isStaticDragArea,g=b&&this.chart.options("mapping.zoomLimit"),h=this.getZoomAxes();b=this.getZoomBoxes();var k=b.full,l=b.zoom,m=function(a){var b;if("string"===typeof a){if("initial"===a)return 1;var c="+"===a[0]?
1:"-"===a[0]?-1:0;(b=a.replace(/^\D+/g,"")).length&&(b=parseFloat(b)/100);0===c?c=b:(a=k[2]/l[2],c=a+a*b*c)}else c=a;return ua(c,1,g||99999)};b=function(a){return B(a,function(a,b){return h[b].posToVal(a)})};var n=function(a,b){b=b?b.slice(0):va(l);b.push(a);return q(b)},p=function(a,b){b=m(b);var c=f?l[2]:ua(k[2]/b,1,k[2]);b=f?l[3]:ua(k[3]/b,1,k[3]);var d=ma(a[0],l[0])/l[2],e=ma(a[0],Ts(l))/l[2],g=ma(a[1],l[1])/l[3],h=ma(a[1],Us(l))/l[3];return cd(ff([a[0]-c*d,a[1]-b*g,a[0]+c*e,a[1]+b*h]),k)},q=
function(a){var b=m(a[2]),c=f?l[2]:ua(k[2]/b,1,k[2]);b=f?l[3]:ua(k[3]/b,1,k[3]);return cd(ob(a,[c,b]),k)},r=function(a){a=a.slice(0);a[2]="+0";return q(a)};if("number"===c)var u=n(a);else"string"===c?u=n(m(a)):4===a.length?u=a:3===a.length?u=q(a):2===a.length?u=cd(Hc(l,a),k):(t(a.at)&&t(a.level)&&(u=p(a.at,a.level)),t(a.offset)&&(u=cd(Hc(l,a.offset),k)),t(a.pos)?u=r(b(a.pos)):t(a.center)&&(u=r(a.center)));return u=Ah(u,k)};a.prototype.getZoomBoxes=function(){var a=this.isType("map"),c=this.getZoomAxes(),
e=function(a){var b=a[0];a=a[1];return Xa([[b?b.min:0,a?a.min:0],[b?b.max:0,a?a.max:0]])},f=a?this.zoomBBoxMax:e(B(c,function(a){return a&&a.unZoomedRange?a.unZoomedRange:a}));a=a?this.zoomBBox||this.zoomBBoxSet:e(B(c,function(a){a&&(a.zoomRange.length?(a=a.zoomRange,a=a.pop?{min:a[0],max:a[1]}:a):a=a.range);return a}));return{full:f,zoom:a}};a.prototype.setZoomBox=function(a,c){var b=this._isStaticDragArea,d=this.getZoomAxes(),g=this.isType("map"),h=!1,k=this.chart.currentOptions.axisToZoom||this._axisToZoom,
l=!1,m=Vs(a),n=function(a,b){k&&-1<k.indexOf(a)&&(a="x"===a?0:1,h=d[a].zoom(b[0],b[1],!1)||h,l=l||d[a].isZoomed)},p=this.isDragging;this.isZoomingReflow=!0;b&&(this.isDragging=!0);g?(this.zoomBBox=a,h=!0):(n("x",m[0]),n("y",m[1]));!1!==c&&h&&this.chart.redraw(A({forceCoordinates:!0},c));b&&(this.isDragging=p);this.isZoomingReflow=!1;this.isZoomed=l;this.zoomUpdated()};a.prototype.add=function(a){var b=this.readyDefer,c=b.hold("addCA");this.setRootVisuals();this.rootPanel.add(a);b.release(c);return this};
a.prototype.replaceTokens=function(a,c){c||(c=this._series&&this._series.length?this.series(0).getFormatInfo():this.chart.getFormatInfo());return Di(a,this.chartAreaSet,c)};a.prototype.tokenValue=function(a){return this.replaceTokens({token:a})};a.prototype.log=function(a){};return a}(mc),nE=function(){function c(a){var b=this;this.chart=a;this.items=[];this.indexer=new Pl;this.freeAxes={};this.allAxes={};this._axes=[];this.enumerationData={sI:0,cpbOffset:0};this._reflowsCount=0;this.id=he(5);this.axes=
function(){return new Pf(b._axes)}}c.prototype.init=function(){var a=KA(this.chart.currentOptions);if(this.userOptions){A(this.userOptions.rootAx,a.rootAx);this.userOptions.rootItems=a.rootItems;for(var b=0,c=a.length;b<c;b++)this.userOptions[b]?A(this.userOptions[b],a[b]):this.userOptions[b]=a[b]}else this.userOptions=a;this.setRootVisuals().setOptions().setObjects(this.currentOptions).enumerateData();x(this.series(),function(a){return a.seriesDirty.resetCache()});this._calcCache=void 0;return this};
c.prototype.setOptions=function(){var a=this.currentOptions=this.userOptions=this.normalizeOptions(this.userOptions),b=function(b){return a.rootAx[b+"Axis"]};this.freeAxes={x:b("x")[0],y:b("y")[0],z:b("z")[0]};this.allAxes={x:b("x"),y:b("y"),z:b("z")};b=function(a){return a.scale&&a.scale.breaks};this.hasScaleBreaks=b(this.freeAxes.x)||b(this.freeAxes.y)||b(this.freeAxes.x);return this};c.prototype.normalizeOptions=function(a){a=Va(a,"series",!0);var b=["xAxis","yAxis","zAxis"];x(b,function(b){return Oh(a.rootAx,
b)});x(b,function(b){return a.rootAx[b]&&x(a.rootAx[b],Ab)});return a};c.prototype.enumerateData=function(){var a=this;this.enumerationData={sI:0,cpbOffset:0};x(this.series(),function(b){a.enumerateSeries(b)});return this};c.prototype.enumerateSeries=function(a){var b=this.enumerationData,c=b.sI;b=b.cpbOffset;a._i=c++;a.info.type.colorByPoint&&(a.cpbIndexOffset=b,b+=a.info.type.colorByPoint?a.userPoints.length:1);this.enumerationData={sI:c,cpbOffset:b}};c.prototype.setObjects=function(a){var b=this,
c=b.rootVisuals.stack;b.log("setObjects()");Xb(a,b.items,function(a,d){(new Gu(b,a)).add(c)},function(a,b){return b.options(a)});return b};c.prototype.series=function(){var a=[];x(this.items,function(b){return a.push.apply(a,G(b._series))});return a};c.prototype.add=function(a){var b=this.visualWrapper;(b=this.visualWrapper)?(b.setRootVisuals(),this.setRootVisuals(),this.rootVisuals.stack.add(b.rootPanel)):this.setRootVisuals();x(this.items,function(a){});this.rootPanel.add(a);return this};c.prototype.setRootVisuals=
function(){var a=this.chart.renderer,b=this.rootVisuals,c=this.rootPanel=this.rootPanel||a.panel({width:"*",height:"*"});b||(b=this.rootVisuals={stack:void 0});b.stack=b.stack||a.panel("stack").attr({orientation:"y"}).add(c);return this};c.prototype.replaceTokens=function(a,b){return Di(a,this,b||this.getFormatInfo())};c.prototype.getFormatInfo=function(){return this.chart.series(0).getFormatInfo()};c.prototype.getCalcCache=function(){var a;(a=this._calcCache)||(a=this._calcCache=hz(this));return a};
c.prototype.invalidateCache=function(){this._calcCache=void 0;this.chart.series().each(function(a){a.calcCache=void 0})};c.prototype.invalidate=function(){this.each(function(a){return a.invalidate()})};c.prototype.each=function(a){x(this.items,a)};c.prototype.log=function(a){};c.prototype.tryReflow=function(a){return this.reflow(a,!1,!1,!0)};c.prototype.reflow=function(a,b,c,e){var d=this;if(d._reflowStarted)d._needRenderData=d._needRenderData||b,d._needLayoutRefresh=d._needLayoutRefresh||c;else if(d._reflowStarted=
!0,d._needRenderData=d._needLayoutRefresh=!1,e&&!d.needReflow()||9<d._reflowsCount)d._reflowsCount=0,d._reflowStarted=!1;else{var g,h=d.items,k=[],l={};e=function(a){return x(h,m[a])};var m={beforeMeasure:function(c){var e=c.readyDefer,f=e.hold("rootSetSize");k.push(function(){return e.release(f)});c.rootRect=c.rootVisuals.grid.getBbox();b&&(c.isDirtyPreRender=!0)&&(c._cancelBubble=!1);c._updateOptions=a||c._updateOptions;c.preRender();g=g||!c.isZoomingReflow&&(c.isDragging||c.isZooming);l[c.id]=
{renderDataResult:!1};d.invalidateCache()},startMeasure:function(a){var b=a.rootVisuals;b.titleBox.applyOptions();b.titleBoxPanel.attr({width:null});a.measureAxes_resetOverflows()},measureAxes:function(a){return!a.isMultiType()&&a.measureAxes()},applyOverflows:function(a){return!a.isMultiType()&&Sl(a,a.overflows)},endMeasure:function(a){var b=a.rootVisuals;a.rootRect=b.grid.getBbox();a.axes().each(function(b){return b.setLength(a.rootRect)});var c=b.content.getGlobalBbox().width;b.titleBoxPanel.attr({width:c});
b.titleBox.rootPanel.attr({maxWidth:c})},tryRenderData:function(b){l[b.id].renderDataResult=b.tryRenderData(a)},renderData:function(e){var f=l[e.id].renderDataResult;!f&&(f=b&&e.renderData(a));!f&&c&&d.rootPanel.refresh()}};e("beforeMeasure");if(!g||c){e("startMeasure");d.chart.refreshAnnotations();d.axes().each(function(a){return a.syncLegend()});e("measureAxes");if(1<h.length){var n=[0,0,0,0],p,q;x(h,function(a){p=a.axSizes;qb(4,function(a){return n[a]=Math.max(n[a],p[a])})});var r=n[3],t=n[1];
x(h,function(a){q=a.overflows.slice(0);p=a.axSizes;q[1]=Math.max(q[1],t-p[1]);q[3]=Math.max(q[3],r-p[3]);Sl(a,q)})}else e("applyOverflows");var y=d.measureResult=tz(d);d.rootPanel.attr({margin:y.casMargin});d.rootPanel.refresh(!0);e("endMeasure");vz(d,a);e("tryRenderData")}e("renderData");x(k,function(a){return a()});d._reflowStarted=!1;d._reflowsCount++;d.reflow(a,d._needRenderData,d._needLayoutRefresh,!d._needRenderData&&!d._needLayoutRefresh)}};c.prototype.chartItems=function(){var a=this.chart,
b=a.toolbar();a=a.legends().items.concat(a.annotations().items);b&&(a=a.concat(b.children()));return a};c.prototype.needReflow=function(){var a;x(this.items,function(b){if(!a){var c=b.rootVisuals.grid.getBbox(),e=b.rootRect;b.axes().each(function(b){b.requireReflow()&&(a=!0)});!c.width||!c.height||e&&sa(e.width,4)===sa(c.width,4)&&sa(e.height,4)===sa(c.height,4)?c.width||c.height||oa.emit("warning",b.id,"cantGetSize",{container:b.chart.getWrapper()}):a=!0}});return a};return c}(),oE=function(c){function a(b,
d){d=c.call(this,b,d)||this;d.items=b;d.kindObject=a;d.points=Qa(mb,Jo(d,function(a){return a.series().points().items}),yk(d,function(){throw"Not implemented. ";}));d.series=Qa(ln,Jo(d,function(a){return a.series().items}),yk(d,function(){throw"Not implemented. ";}));return d}L(a,c);return a}(mb),pE=function(c){function a(b,d){d=c.call(this,b,d)||this;d.items=b;d.kindObject=a;d.entries=Qa(mb,LA(d),yk(d,function(){}));return d}L(a,c);return a}(mb),km={"modules/debug":{checker:function(c){return!0===
c.debug}},"modules/types":{checker:function(c,a,b,d){if(c.navigator||H(b,"types")||d&&zs(d))return!0;if((a=c.series)&&a.length)for(b=0;b<a.length;b++)if(d&&zs(d,a[b]))return!0;d=Ib(c,{series:void 0,targetElement:void 0});c=c.series&&c.series[0];d.series=c&&(c.map?{}:{name:c.name,points:c.points?[c.points[0]]:[]});return Dr.test(JSON.stringify(d))?!0:!1}},"modules/toolbar":{checker:function(c,a){void 0===a&&(a=!1);if(!a)return!1;if(c.navigator||(a=c.axisToZoom)&&"none"!==a||c.export||t(c.toolbar)&&
!1!==c.toolbar.visible)return!0;for(var b in c)if(Ng(b,"toolbar")&&!1!==c.toolbar_visible&&!1!==c["toolbar.visible"])return!0;return!1}},"modules/maps":{checker:function(c){return c.type&&Ng(c.type,"map")}},"modules/accessibility":{checker:function(c){return c.tabIndex||c.description}},"https://code.jscharting.com/polyfill/intl":{checker:function(c){return!W.Intl}},"modules/datagrid":{checker:function(c){return c.grid&&!1!==c.grid.enabled||c.grid_enabled&&!1!==c.grid_enabled}}},QA=ja("pie organizational gauge radar treemap funnel cone pyramid heatmap calendar venn".split(" ")),
Qi=[],wc={},lm={animation:function(c,a){a.renderer.attr({transition:{animation:c}})},box:function(c,a,b){c=Ig(c);c.fill&&a._loader&&a._loader.options({fill:c.fill});b.boxAttr=c;c.padding&&a.isRendered&&(b.needRedraw=!0)},loading:function(c,a){a._loader&&a._loader.options(c)},width:function(c,a,b){a.isRendered&&Y(b.layoutAttr,"width",c)},height:function(c,a,b){a.isRendered&&Y(b.layoutAttr,"height",c)},targetElement:function(c,a,b){a.isRendered&&(O(c)&&(c=ia.getElementById(c)),Y(b.layoutAttr,"container",
c))},annotations:function(c,a,b){a.isRendered&&(a.annotations(c),b.needRedraw=!0)},defaultAnnotation:function(c,a){a.isRendered&&a.annotations().options({})},defaultBox:function(c,a,b){a.isRendered&&(a.annotations().options({}),b.needRefresh=!0)},defaultSeries:function(c,a,b){a.isRendered&&(a.series().each(function(a){return a.seriesDirty.all(!0)}),a.series().options({},!1),b.needRedraw=!0)},defaultCultureName:function(c,a,b){a.isRendered&&(a.axes().each(function(a){return a.invalidate().options({},
!1)}),a.chartAreaSet.invalidate(),b.needRedraw=!0)},palette:function(c,a){t(a.palette=$y("palette",c))?(a.series().each(function(a){return a.seriesDirty.all(!0)}),a.dirty=!0,a._spDirty=!0):oa.emit("warning",a.id,"paletteNF",{data:[c],container:a.getWrapper()})},title:function(c,a){a.isRendered&&(a.chartAreas(0).options({title:c}),c.position&&(a.dirty=!0))},type:function(c,a,b){a.isRendered&&(a.ctManager.init(a.currentOptions),x(a.chartAreaSet.items,function(b){b.ctManager.init(a.currentOptions)}),
a.series().each(function(a){return a.seriesDirty.all(!0)}),b.needRedraw=!0,a.calIndexer?(a.calIndexer.options({}),b.updateCalendar=!0):a.typeContextOptions=a.typeContextOptions||{});a.ctManager.hasSetting("behavior","noLegend")&&((a.typeContextOptions||(a.typeContextOptions={})).legend={visible:!1})},mapping:function(c,a){a.isRendered&&(H(c,"base")||H(c,"referenceLayers")||H(c,"projection")?a.chartAreas(0).triggerUser("updateMapData",[a.chartAreas(0),!1]):H(c,"projection")&&c.projection!==a.currentOptions.projection&&
a.chartAreas(0).triggerUser("updateMapData",[a.chartAreas(0),!1]),a.dirty=!0)},axisToZoom:function(c,a){(""===c||"none"===c)&&(c=(c=a.toolbar())&&c.items?c.items("zoom"):void 0)&&c.options({visible:!1})},series:function(c,a,b){a.isRendered&&a.calIndexer?(a.userOptions.series=c,b.updateCalendar=!0,b.needRedraw=!0):a.isRendered&&(a.chartAreas(0).options({series:c},!1),b.needRedraw=!0)},defaultTooltip:function(c,a,b){a.isRendered&&(a.chartAreas().each(function(a){return a.tooltip.options(c)}),a.series().each(function(a){return a.tooltip.options(c)}))},
defaultAxis:function(c,a,b){a.isRendered&&(a.axes().options({},!1),b.needRefresh=!0)},xAxis:function(c,a,b){!c.pop&&a.isRendered&&((a=a.axes("x"))&&a.options(c,!1),b.needRefresh=!0)},yAxis:function(c,a,b){!c.pop&&a.isRendered&&((a=a.axes("y"))&&a.options(c,!1),b.needRefresh=!0)}},mm={},Bs,Hu=function(){return{fontFamily:"tahoma, geneva, sans-serif",fontSize:"12px",fontWeight:"normal",fontStyle:"normal","user-select":"none",transition:{animation:{duration:330,easing:"ease-in-out-circ"}}}},qE=function(c){var a=
{defaultAnnotation:bn(c),animation:Hu().transition.animation,languageStrings:WA,debug:!0};c.ctManager.isType("map")&&M(a,{legend:{template:"%icon %name"},axisToZoom:"xy"});return a},nn={},Iu,wj=function(){function c(a,b){void 0===a&&(a={});this.kind="Chart";this.cpbIndex=0;this.isRtlCulture=!1;this.flowEvents={optionsApplied:new vd,beforeSetUserOptions:new vd,beforeApplyLayout:new vd,beforeSnapshot:new vd,afterSnapshot:new vd,beforeOptionsNormalization:new vd,beforeDefaultsApply:new vd,beforeRenderSeries:new vd,
nextRenderSeries:new vd};var d=this;if(!(d instanceof c))return new c(a,b);d.rootVisuals={box:void 0,front:void 0,tooltip:void 0};d.internal={ctManager:d.ctManager,mappingInfo:{contextMaps:"",dataMaps:[],allMaps:[],loadedCallStack:[],regionList:[],mapsLoading:!1,internalMapsUsed:!1,customMapsUsed:!1,projection:"mercator",mapsLoadingList:[]}};d._annotations=[];d._legends=[];d._highlights=[];d.palette=Nh(0);d.use3D=!1;d.internalConfigs={chartAreas:[]};d.ctManager=cu();d.mapsLoaded=!1;d.action=new rE;
d.dirty=!0;var e=1===arguments.length?[arguments[0]]:Array.apply(null,arguments),f=B(e,K);"string"===f[0]||bw(e[0])?(a=qd(e[1]||{}),a.targetElement=e[0],b=e[2]):"object"===f[0]&&(a=qd(e[0]),b=e[1]);var g=Ri(a),h=function(){d.triggerUser("load");d.checkGridOption();d.dirty=!1;d.loading(!1);d.inited=!0;b&&b.call(d,d)};d.id=g.id||he(5);d.isColorized=!0;d.initRenderer(g);d.renderer.refresh();d.currentOptions=g;d.ctManager.init(g);g&&!1===g.loading||d.loading(!0);gg=g.baseUrl;ys(d,g,function(){d.init(g,
h)},!0)}c.prototype.toGrid=function(a,b){var c=this,e=Ri(b),f=this._grid=wc.chartToGrid&&wc.chartToGrid(this,a,e);if(f)return f.then=function(a){return a&&a(f)},f;var g={grid_enabled:!0};e&&(g.baseUrl=e.baseUrl,g.notificationContainer=e.notificationContainer);return of(function(b,d){jm("modules/datagrid",g,function(){c._grid=wc.chartToGrid&&wc.chartToGrid(c,a,e);b(c._grid)})})};c.prototype.checkGridOption=function(){var a=this,b=a.currentOptions.grid,c=a.currentOptions.targetElement;b&&(!0===b.enabled?
a._grid?(a._grid.setDataFromChart(!1),a._grid.options(b)):a.toGrid(c,M({className:"dataTable",exportFile:!0},b)).then(function(b){a._gridSwitch=wc.createGridSwitch&&wc.createGridSwitch(a,c,b)}):!1===b.enabled&&(a._grid&&a._grid.destroy(),a._gridSwitch&&a._gridSwitch.destroy(),delete a._grid,delete a._gridSwitch),a.triggerOptionsApplied("grid",a))};c.prototype.init=function(a,b){var c=this,e=c.options("navigator.enabled");a=c.userOptions=a;if(!c.renderer.renderer.isRootDestroyed()){c.chartItemManager=
new AD(this);c.initFP();Fa(nn,function(a){return nn[a](c)});if(!c.ctManager.isType("calendar")&&c.data&&!c.userOptions.series){var f=Ap(c.data.val);c.userOptions.series=[{points:B(f,function(a){return{x:a[0],y:a[1],z:a[2]}})}]}c.seriesCount=a.series?a.series.length:0;c.isRtlCulture=dt(a.defaultCultureName);c.setRootVisuals();c.disableAnimation(!1);c.flowEvents.beforeSetUserOptions.trigger({type:"chart",owner:c});c.options(c.userOptions,{skipClone:!0});oa.emit("validate",c.id,"chartAfterOptions",{chart:c,
data:c.userOptions});var g=c.chartAreaSet.add();c.drawAnnotations();c.flowEvents.beforeApplyLayout.trigger({type:"chart",owner:c});c.rootPanel.refresh(!0);g.tryReflow();c._lastRefreshedRect=c.renderer.getRootBox();c.rootPanel.on("finalSize",function(a){var b=c._lastRefreshedRect;b&&b.width===a.width&&b.height===a.height||(c._lastRefreshedRect=a,g.tryReflow())});c.enableAnimation();var h=[],k=function(){c.isRendered=!0;h.length||b.call(c,c)};x(c.chartAreaSet.items,function(a){!a.isRendered&&a.isRendering&&
(h.push(a.id),e&&(a.navHold=a.readyDefer.hold("Navigator")),a.awaitRender(function(){h.splice(h.indexOf(a.id),1);k()}))});k()}};c.prototype.exportImage=function(a,b){void 0===a&&(a={});this.renderer.attr("disableAnimation",!0);this.flowEvents.beforeSnapshot.trigger({type:"chart",owner:this});this.triggerUser("beforeExport");this.rootPanel.refresh();this.chartAreaSet.items.forEach(function(a){return a.clickOff(null,!0)});b&&this.options(b);b=a.imageType||a.type;b={png:"image/png",jpg:"image/jpeg",
pdf:"application/pdf",svg:"image/svg+xml"}[b.toLowerCase()]||b;var c=a.server||"https://export.jscharting.com/download",e=this.getSVG(),f=a.title||this.options("title_label_text"),g=a.author,h=a.subject,k=a.keywords,l=a.comment,m=a.rating;this.submitForm(e.svgString,b,c,a.width,e.width,e.height,Cs(),f,g,h,k,l,m);this.flowEvents.afterSnapshot.trigger({type:"chart",owner:this});this.triggerUser("afterExport");this.rootPanel.refresh();this.renderer.attr("disableAnimation",!1)};c.prototype.print=function(){var a=
this,b=a.getWrapper(),c=b.style,e=a.renderer,f=W,g=f.document.documentElement,h=g.style;a.chartAreaSet.items.forEach(function(a){return a.clickOff(null,!0)});var k=b.parentElement,l=[],m=f.document.body,n=m.children;(function(){for(var a=0;a<n.length;a++){var c=n[a];if("none"!==c.style.display){var d={el:c,display:c.style.display};c.style.display="none";l.push(d)}}m.appendChild(b)})();h.visibility="hidden";var p=M({},c),q=e.attr("width"),r=e.attr("height"),t=function(a){a=a.getBoundingClientRect();
return{top:a.top+(f.pageYOffset||g.scrollTop),left:a.left+(f.pageXOffset||g.scrollLeft)}},x=function(a){for(var b=(a=a.parentNode)&&a.style&&a.style.position,c=["absolute","relative","fixed"];a&&(!b||!~c.indexOf(b));)b=(a=a.parentNode)&&a.style&&a.style.position;return a}(b);t=x?t(x):{left:0,top:0};A(c,{visibility:"visible",position:"absolute",top:-t.top,left:-t.left});e.attr("disableAnimation",!0);e.attr("width","21cm");e.attr("height",e.rootBox.height||"100%");a.flowEvents.beforeSnapshot.trigger({type:"chart",
owner:a});a.triggerUser("beforeExport");e.refresh();setTimeout(function(){f.focus();f.print();setTimeout(function(){k.appendChild(b);for(var d=0;d<l.length;d++){var f=l[d];f.el.style.display=f.display}A(c,{visibility:p.visibility,position:p.position,top:p.top,left:p.left});e.attr("width",q);e.attr("height",r);a.flowEvents.afterSnapshot.trigger({type:"chart",owner:a});a.triggerUser("afterExport");e.refresh();e.attr("disableAnimation",!1);h.visibility="visible"},BB?3E3:1)},1)};c.prototype.submitForm=
function(a,b,c,e,f,g,h,k,l,m,n,p,q){var d=ia.createElement("form");d.action=c;d.method="POST";this.createFormInput(d,"svg",a);this.createFormInput(d,"type",b);this.createFormInput(d,"width",e);this.createFormInput(d,"actualWidth",f);this.createFormInput(d,"actualHeight",g);this.createFormInput(d,"version",h);this.createFormInput(d,"title",k);this.createFormInput(d,"author",l);this.createFormInput(d,"subject",m);this.createFormInput(d,"keywords",n);this.createFormInput(d,"comment",p);this.createFormInput(d,
"rating",q);ia.body.appendChild(d);d.submit();ia.body.removeChild(d)};c.prototype.createFormInput=function(a,b,c){if(c){var d=ia.createElement("input");d.value=encodeURIComponent(c);d.name=b;a.appendChild(d);return d}};c.prototype.toolbar=function(){return this._toolbar};c.prototype.initFP=function(){var a=this;a.series=Qa(ln,function(){return a.chartAreaSet.series()},function(b){x(b,Ab);a.userOptions.series=b;var c=a.chartAreas(0).readyDefer,e=c.hold("splS");a.chartAreas(0).spliceSeries(0,a.chartAreas(0).series().items.length,
b,!1);a.redraw({animation:a.currentOptions.animation});c.release(e)},{push:function(b,c){var d=a.chartAreas(0);b=d.addSeries(b,!1);d.triggerUser("updateMapData",[d,b]);!1!==c&&a.redraw(c);a.action.log("data")},splice:function(b,c,e,f){a.chartAreas(0).spliceSeries(b,c,ka(e)?e:[e],!1);!1!==f&&a.redraw(f);a.action.log("data")}});a.annotations=Qa(mb,function(){return a._annotations},function(b){x(b,Ab);Y(a.userOptions,"annotations",b);a.drawAnnotations();a.chartAreaSet.reflow(null,!1,!0)},{push:function(b,
c){Ab(b);a.userOptions.annotations=a.userOptions.annotations||[];a.userOptions.annotations.push(b);a.drawAnnotations();Sa(c)&&(c=Va(c));a.chartAreaSet.reflow(c,!1,!0)},splice:function(b,c,e,f){var d;x(e,Ab);a.userOptions.annotations=a.userOptions.annotations||[];(d=a.userOptions.annotations).splice.apply(d,G([b,c],e));a.drawAnnotations();Sa(f)&&(f=Va(f));a.chartAreaSet.reflow(f,!1,!0)}});a.chartAreas=Qa(oE,function(){return a.chartAreaSet.items},function(a){});a.xAxis=Qa(Pf,function(){a.chartAreaSet.axes({prefix:"x"})},
function(b){a.currentOptions.xAxis=b});a.axes=Qa(Pf,function(){return a.chartAreaSet.axes().items},function(a){});a.legends=Qa(pE,function(){return a._legends},function(a){},{push:function(a,c){},splice:function(a,c,e,f){}})};c.prototype.options=function(a,b){var c=this,e=K(a);if("undefined"===e)return c.currentOptions;if("string"===e)return C(c.currentOptions,a);var f=c.inited&&!c.isRendered&&c.loading(!0);c.ctManager.init(c.currentOptions);c.initApi();a=!t(b)||t(b)&&!b.skipClone?qd(a):a;c.isRendered&&
(a=Va(a,"series,targetElement"));a=TA(c,a,b);a=c.setUserOptions(a);c.optionsNormalized=!0;ys(c,a,function(){SA(c,a,b);a.series&&!c.isRendered?c.initControls():c.dirty&&!1!==b&&(c.setCursor(),c.chartAreaSet.invalidate(),c.redraw());c.inited&&a.grid&&c.checkGridOption();c.triggerOptionsApplied("chart",c);f&&c.loading(!1)});b&&b.then&&Pd.await(function(){b.then&&(b.then.call(c),delete b.then)});return c};c.prototype.triggerOptionsApplied=function(a,b){this.flowEvents.optionsApplied.trigger({type:a,owner:b})};
c.prototype.replaceTokens=function(a,b){return this.chartAreaSet.series().length?Di(a,this.chartAreaSet,this.getFormatInfo()):a};c.prototype.tokenValue=function(a){return this.replaceTokens({token:a})};c.prototype.getFormatInfo=function(){return this.chartAreaSet.series().length?this.series(0).getFormatInfo():{x:{},y:{},z:{}}};c.prototype.getSVG=function(){var a=this.getWrapper().getElementsByTagName("svg")[0],b=a.getBoundingClientRect(),c=a.outerHTML;c||(c=(new XMLSerializer).serializeToString(a),
c=c.replace('xmlns="http://www.w3.org/2000/svg"',""),c=c.replace('xmlns:NS1=""',""),c=c.replace('NS1:xmlns:xlink="http://www.w3.org/1999/xlink"',""));return{svgString:c,width:b.width,height:b.height}};c.prototype.zoom=function(a,b){return this.chartAreas(0).zoom(a||1,b)};c.prototype.connectors=function(a,b,c){void 0===c&&(c={animation:{duration:0}});var d=this.chartAreaSet.items[0].ciManager,f;if(t(b)||t(a))if(f=Gh(a)){if(d=d.exists(f.firstId))return f=d.series,f=f.visualizer,f.styleLines&&f.styleLines(a,
b,c);oa.emit("warning","",'No point with the id "'+f.firstId+'" was found.',{container:this.getWrapper()})}else oa.emit("warning","","The specified pathSelector is not valid.",{container:this.getWrapper()});else this.series().each(function(a){var b=a.visualizer.resetLines;b&&b.apply(a.visualizer)})};c.prototype.setUserOptions=function(a){var b=a.series,c=a.data;delete a.series;delete a.data;var e=this.normalizeOptions(a);this.userOptions=A(this.userOptions,e);var f=qE(this);this.flowEvents.beforeDefaultsApply.trigger({type:"chart",
owner:this,options:f});f=A(f,this.userOptions);x(["defaultBox","defaultAxis"],function(a){f[a]&&(f[a]=$m(f[a]))});this.currentOptions=A(this.currentOptions,this.contextOptions(),f);b&&(e.series=this.currentOptions.series=b);c&&(e.data=this.currentOptions.data=c);a.defaultCultureName&&(this.isRtlCulture=dt(a.defaultCultureName));return e};c.prototype.contextOptions=function(){return C(this,"typeContextOptions.chart")||{}};c.prototype.normalizeOptions=function(a){var b=a.annotations;b&&x(b,Ab);a.defaultPoint&&
Y(a,"defaultSeries.defaultPoint",A(C(a,"defaultSeries.defaultPoint")||{},a.defaultPoint||{}));(b=a.hatchPalette)&&!0===b&&(a.hatchPalette=Ju("hatch"));a.export&&We(a,["toolbar","items","export","visible"],!0);this.flowEvents.beforeOptionsNormalization.trigger({type:"chart",owner:this,options:a});return a};c.prototype.initApi=function(){var a=this.userOptions,b=this.internal,c=a.template;delete a.template;b.spv=Y;a=Va(a,"data,series,targetElement");a.series=a.series||[];c&&(c=Va(c),a=td(a,c));this.currentOptions=
A({},a)};c.prototype.initControls=function(){this.drawLegends();this.chartAreaSet.init()};c.prototype.initRenderer=function(a){var b=a.targetElement,c=O(b)?ia.getElementById(b):b;c||O(b)&&oa.emit("error",this.id,"targetElIdNotFound",{data:[b]});(this.renderer=new Kl({container:c,width:this.getSizeOrMin(a.width,25),height:this.getSizeOrMin(a.height,25),defaultWidth:640,defaultHeight:350,pixelCorrection:a.pixelCorrection})).attr(Hu())};c.prototype.getSizeOrMin=function(a,b){var c=0;"number"===typeof a?
c=a:"string"===typeof a&&-1===a.indexOf("%")&&(c=parseInt(a));return c?Math.max(c,b):a};c.prototype.setRootVisuals=function(){var a=this,b=a.renderer,c={width:"*",height:"*"},e=a.rootPanel;e||(a.isRtlCulture&&(c.direction="rtl",c["text-anchor"]="end"),e=a.rootPanel=b.panel(c),e.on("touchstart",function(b){return a.touched(!0)}));c=a.rootVisuals=a.rootVisuals||{box:void 0,front:void 0,uiItemsFront:void 0,itemsBox:void 0};var f=c.box=c.box||b.box({width:"*",height:"*",stroke:"none",fill:"#FFFFFF",margin:3}).add(e);
c.uiItemsFront=c.uiItemsFront||b.panel({width:"*",height:"*"}).add(e);c.front=c.front||b.panel({width:"*",height:"*"}).add(e);a.isColorized&&!a.chartAreaSet&&(a.renderer.getRootBox(),e=b.box({xAlignment:"left",yAlignment:"bottom",cursor:"pointer",borderWidth:0,height:17,fill:"transparent",margin:[0,0,4,4]}).add(e),a.renderer.renderer.element("title").attr({text:"Chart created using ".concat("JSCharting")}).add(e),b.svgContainer("<linearGradient id=\"a\" gradientUnits=\"userSpaceOnUse\" x1=\"8.4\" x2=\"8.4\" y1=\"16.327\" y2=\"1.765\"><stop offset=\"0\" stop-color=\"#4a4949\"/><stop offset=\"1\" stop-color=\"#666565\"/></linearGradient><linearGradient id=\"b\"><stop offset=\"0\" stop-color=\"#0d48a1\"/><stop offset=\"1\" stop-color=\"#20ade2\"/></linearGradient><linearGradient id=\"c\" gradientUnits=\"userSpaceOnUse\" x1=\"24.226\" x2=\"24.226\" xlink:href=\"#b\" y1=\"16.343\" y2=\"4.618\"/><filter id=\"d\" width=\"120%\" height=\"120%\" x=\"-10%\" y=\"-10%\"><feColorMatrix type=\"saturate\" values=\"0\"></feColorMatrix></filter><g opacity=0.4 filter=\"url(#d)\" id='brandingLogo'><rect x=0 y=0 width=31 height=16.4 fill=\"rgba(255,255,255,0)\"/><path d=\"m4.7 12.9s.1.9-.9.9c-1.2 0-1.9-1.3-1.9-1.3l-1.9 1.8s1.7 2 3.9 2c2.4 0 3.5-1.6 3.5-2.6v-11.6h-2.7zm6.7-6.9c-.7-.7.9-3 3.2-.2l1.9-1.8s-1.7-2.2-4-2.2c-2.8 0-4.8 3.2-3.4 5 1.8 2.4 5.1 4.2 5.1 5.4 0 .7-.4 1.5-1.4 1.5-2.1 0-2.5-1.8-2.5-1.8l-2.3 1.4s1.5 3 4.3 3c2.7 0 4.5-1.3 4.5-4.3-.1-2.2-4.2-4.7-5.4-6z\" fill=\"url(#a)\"/><path d=\"m23.7 0c-2.3-.1-5.1 2.1-5.1 2.1l5.3 5.2-.2-7.3z\" fill=\"#1faae0\"/><path d=\"m25.1 1-.3 7.2 3-6.4c.1 0-.9-.6-2.7-.8z\" fill=\"#0e4da4\"/><path d=\"m28.8 2.7-1.2 2.2s1.7 1.1 1.7 1.3l1.7-1.7s-1.6-1.7-2.2-1.8z\" fill=\"#1d9fd9\"/><path d=\"m23.3 13.6c-5.2-2-2.5-7.5-2.5-7.5l-1.8-1.5c-3.4 4.5-.7 10.4 3.3 11.4 6 1.5 8.7-2.4 8.7-2.4l-1.7-1.7c-2 1.7-4.1 2.5-6 1.7z\" fill=\"url(#c)\"/></g>").add(e),e.on("click",function(a){ia.location.href="https://jscharting.com"}),
a.renderer.renderer.cssText("#brandingLogo:hover{\n\t\t\t\topacity:1;\n\t\t\t\tfilter:none;\n\t\t\t} #brandingLogo {\n\t\t\t\t-webkit-transition: opacity 1s ease;\n\t\t\t\t-moz-transition: opacity 1s ease;\n\t\t\t\t-o-transition: opacity 1s ease;\n\t\t\t\ttransition: opacity 1s ease;\n\t\t\t}"));a.chartAreaSet=a.chartAreaSet||(new nE(this)).add(f);c.itemsBox=c.itemsBox||b.panel({width:"*",height:"*"}).add(f)};c.prototype.boxDefaults=function(a){var b=Va(this.userOptions.defaultBox);a=Hf(z(a,this.getStyling()));
b&&(b.fill||b.outline&&0!==b.outline.width)&&(a.boxVisible=!0);return b?A(a,b):a};c.prototype.getStyling=function(){var a=this.currentOptions,b=Va(this.userOptions.defaultBox);return z(a.legacyStyling,b&&b.boxVisible)?1:0};c.prototype.touched=function(a){if(t(a))Iu=!0;else return Iu};c.prototype.setCursor=function(a){this.renderer.renderer.setCursor(a)};c.prototype.getCursor=function(){return this.renderer.renderer.getCursor()};c.prototype.getWrapper=function(){return C(this,"renderer.renderer.wrapper.el")};
c.prototype.resetTimers=function(){this.chartAreas().each(function(a){return a.resetTimers()})};c.prototype.redraw=function(a){var b=this;if(!1===b.dirty){var c=b.renderer.getRootBox(),e=b.renderer.renderer.isDefaultSizeSet();if(!c.height||!c.width||e){b.renderer.refreshRootBox();b.renderer.refresh();b.renderer.renderer.rootResize();e?setTimeout(function(){return b.renderer.renderer.resubscribeResize()},1E3):b.renderer.renderer.resubscribeResize();return}}a=Va(a);c=b.disableAnimation(a);b.tooltipRef&&
b.tooltipRef.hide();b.series().each(function(a){return a.visualizer.hideHalo()});b.chartAreaSet.enumerateData();b.chartAreaSet.reflow(a,!0);b.triggerUser("redraw");c&&b.enableAnimation();b.dirty=!1;a&&a.then&&Pd.await(function(){a.then&&(a.then.call(b),delete a.then)})};c.prototype.updateSideItems=function(a){this._grid&&this._grid.setDataFromChart(a)};c.prototype.disableAnimation=function(a){var b=this.renderer;(a=t(a)&&(!1===a||!1===a.animation)&&b.disableAnimation())&&b.attr("disableAnimation",
!0);return a};c.prototype.enableAnimation=function(){this.renderer.attr("disableAnimation",!1)};c.prototype.hideTooltip=function(){var a=this.tooltipRef;a&&a.isVisible&&a.hideActiveTooltip(this)};c.prototype.zoomInOut=function(a){};c.prototype.refreshAnnotations=function(){this.annotations().each(function(a){var b=a.options("label_text");b&&-1<b.indexOf("%")&&a.applyOptions()})};c.prototype.drawAnnotations=function(a){var b=this;(a=b.userOptions.annotations)&&Xb(a,b._annotations,function(a){a=new pj(b,
a);a.add(b.rootVisuals.itemsBox);return a},function(a,b){return b.options(a)})};c.prototype.requestLegend=function(a){return this._legends[0]};c.prototype.drawLegends=function(a){var b=this;a=b.options("legend")||{};var c=b.rootVisuals.itemsBox;Xb([a],b._legends,function(a){return(new mE(b,a)).add(c)},function(a,b){return b.options(a)})};c.prototype.triggerUser=function(a,b){var c=this.currentOptions.events;c=(a=c&&uh(c,a))&&c[a];if(Gb(c))return c.call(this,b)};c.prototype.loading=function(a,b){return(this._loader=
this._loader||new KD(this.renderer,M({fill:this.currentOptions.box?this.currentOptions.box.fill:"#fff"},this.currentOptions.loading||{}))).loading(a,b)};c.prototype.ensureLoadingApplied=function(a){this._loader?this._loader.ensureAnimationApplied(a):a()};c.prototype.destroy=function(){this._selDeBouncer&&this._selDeBouncer.clearAll();this.chartAreaSet&&x(this.chartAreaSet.items,function(a){return a.debounce.clearAll()});this._loader&&this._loader.destroy();this.renderer.destroy()};c.prototype.dispose=
function(){this.destroy()};c.prototype.getSmartPalette=function(a){var b=this.chartItemManager,c,e,f=K(a);if("string"===f)return b.exists(a);var g=b.getSPItems(),h=1===g.length&&(a.colors||a.ranges||a.stops)?!1:!0;this._spDirty&&!h&&(x(b.getSPItems(),function(a){return b.destroyItem(a.id)}),g=b.getSPItems());if(h&&1===g.length){g[0].setOptions(a);var k=g[0]}else(c=a.id)&&(e=b.exists(c))?(e.setOptions(a),k=e):"object"===f&&(k=new ju(this,a));this._spDirty=!1;return k};c.prototype._pointSelection=function(){var a=
this;(a._selDeBouncer=a._selDeBouncer||new He).defer("pSel",function(){var b=a._sMaxList&&a._sMaxList.length?a._sMaxList.slice(0):a.series().points({selected:!0}).items;a.triggerUser("pointSelectionChanged",b)},30)};c.prototype._seriesSelection=function(){var a=this;(a._selDeBouncer=a._selDeBouncer||new He).defer("pSel",function(){var b=a.series(function(a){return a.options("selected")}).items;a.triggerUser("seriesSelectionChanged",b)},30)};return c}(),rE=function(){function c(){this._log=[]}c.prototype.log=
function(a){this._log.push(this._last=a)};c.prototype.last=function(){return this._last};c.prototype.clear=function(){this._log=[]};return c}(),Ku=[];(function(c,a){W.JSC=A(W.JSC,{Chart:a});UA(W.jQuery,c,a)})(Ku,wj);var Ju=gj,sE=B,tE=A,uE=Pi,xj=function(c,a,b){return $k(b?c.map(sg(b)):c,a)};zk({"system/default/area":"M 23 0 A 12 12 0 0 0 11 12 A 12 12 0 0 0 23 24 A 12 12 0 0 0 35 12 A 12 12 0 0 0 23 0 z M 48 0 L 35.785156 6.1074219 A 14.10924 14.10924 0 0 1 37.109375 12.033203 A 14.10924 14.10924 0 0 1 30.458984 24 L 48 24 L 48 0 z M 10.583984 18.708984 L 0 24 L 15.556641 24 A 14.10924 14.10924 0 0 1 10.583984 18.708984 z ",
"system/default/areaSolo":"M 0,24 48,0 48,24 Z","system/default/checkbox-blank":"M38 10v28H10V10h28m0-4H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4z","system/default/checkbox":"M38 6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM20 34L10 24l2.83-2.83L20 28.34l15.17-15.17L38 16 20 34z","system/default/circle":"M0,12a12,12 0 1,0 24,0a12,12 0 1,0 -24,0","system/default/diamond":"M12 .001l12 12-12 12-12-12 12-12z","system/default/line":"M 46.076172 -0.001953125 L 34.929688 4.7050781 A 14.000001 14 0 0 1 36.732422 9.3027344 L 47.996094 4.546875 L 46.076172 -0.001953125 z M 23 0 A 12 12 0 0 0 11 12 A 12 12 0 0 0 23 24 A 12 12 0 0 0 35 12 A 12 12 0 0 0 23 0 z M 9.453125 15.460938 L 0 19.451172 L 1.9199219 24 L 11.488281 19.960938 A 14.000001 14 0 0 1 9.453125 15.460938 z",
"system/default/lineSolo":"M 46.076172,-0.00195313 0,19.451172 1.9199219,24 47.996094,4.546875 46.076172,-0.00195313 Z","system/default/radio-button-blank":"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","system/default/radio-button":"M24 14c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10zm0-10C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z",
"system/default/square":"M18 24H6c-3.3 0-6-2.7-6-6V6c0-3.3 2.7-6 6-6h12c3.3 0 6 2.7 6 6v12c0 3.3-2.7 6-6 6z","system/default/triangle":"M24 22h-24l12-20z","system/default/triangleDown":"M12 21l-12-18h24z","system/default/warning":"M18.9 18.3l-9-16c0-.1-.1-.1-.2-.2-.2-.2-.5-.1-.6.2l-9 16c-.1 0-.1.1-.1.2 0 .3.2.5.5.5h18c.1 0 .2 0 .2-.1.3-.1.4-.4.2-.6zM10 16.5c0 .3-.2.5-.5.5s-.5-.2-.5-.5v-1c0-.3.2-.5.5-.5s.5.2.5.5v1zm0-3c0 .3-.2.5-.5.5s-.5-.2-.5-.5v-5c0-.3.2-.5.5-.5s.5.2.5.5v5z"},!1);Y(W,"JSC.internal.registerIcons",
zk);Y(W,"JSC.internal.setPathVal",Y);["log","warning","error"].forEach(function(c){Y(W,"JSC.internal."+c,function(a,b){oa.emit(c,null,a,{container:b})})});var Pe=C(W,"JSC.internal"),rd,vE=Object.freeze({SELECT_STATE:"select",NORMAL_STATE:"",zIndexReference:gb,boxDefaults:Hf}),wE=Object.freeze({def:t,has:H,noop:Bc,removeArrItem:jb,evalPath:C,epa:J,contains:ee,getValType:K,isNull:on,mergeCollections:Xb,extend:M,extendCopy:X,copy:Ra,extendScoped:Pa,extendScopedNegate:Wc,extendCopyScopedNegate:fe,plainArray:ja,
arraySum:Vj,last:Q,pick:z,isString:O,isObject:Sa,isUndefined:U,keys:ya,eachKey:Fa,detect:Cc,setPathVal:Y,applySetting:Dc,findInArrSimple:vh,throttle:Xi,parseMargin:Ec,mapDeep:hb,expandOptionsProperties:Va,isNaN:Aa,filter:ea,find:P,findIndex:Od,defaults:kd,defaultsDeep:td,clone:la,cloneDeep:qd,merge:A,each:x,map:B,reduce:wm,uniq:Ia,sortedUniq:ed,toString:wh,sortBy:ta,remove:Ff,join:tc,slice:Eg,times:qb,omit:Ka,isArray:ka,isFunction:Gb,isNumber:pb,isEmpty:vb,startsWith:Ng,max:ra,sum:Wa,clamp:ua,Memoize:Ub}),
xE=Object.freeze({boxPoints:me,rightX:Ts,bottomY:Us,compareBoxes:so,pad:sb,setSize:ef,bboxUnion:Ha,intersect:uo,bboxFromPoints:Xa,center:va,clip:Ah,collide:bd,fitInTarget:function(c,a){var b=F(c,4);c=b[2];var d=b[3];b=F(a,4);a=b[2];b=b[3];c=d/c;d=c*b;var e=a/c;d>a?d=c*e:e>b&&(e=d/c);return[e,d]},ltrbMargins:function(c,a,b){c=$b(c);a=$b(a);var d=function(a){return 0<a?a:0},e=[];e[0]=c[0]-a[0];e[1]=c[1]-a[1];e[2]=a[2]-c[2];e[3]=a[3]-c[3];return b?B(e,d):e},fromRect:ha,fromCenter:ob,toPath:Gc,toLTRB:$b,
fromLTRB:ff,toPoints:Xr,alignTo:yo,offsetBetween:rk,unsquishSnapTo:function(c,a,b){void 0===b&&(b="d");var d={v:Bo,h:Ao}[{u:"v",d:"v",l:"h",r:"h"}[b]];c=Ch(c.slice(0),b);zo(c,b);b=Ha(c);a=d(b,a);var e=[a[0]-b[0],a[1]-b[1]];x(c,function(a){return zm(a,e)});return c},unsquishBoxes:zo,unsquishBoxesCb:function(c,a,b){for(var d=Ch(c.slice(0),a),e=[],f=0,g=d.length;f<g;f++){var h=d[f];if(f){var k=Dh(h,e,a),l=rk(k,h);if(l[0]||l[1])h[0]=k[0],h[1]=k[1],b&&b(c.indexOf(h),l,h)}e.push(h)}return e},snapInside:cd,
bInsideA:dd,pointInside:Cd,collideAny:Do,collideList:ad,rotatedAt:tk,translate:Hc,translateRef:zm,bestLayout:function(c,a,b){for(var d=!1,e=1,f,g,h=0;!d;)f=a.width/Math.ceil(c/e),g=a.height/e,f=Math.min(f,g),f<=h?(d=!0,e--):(e++,h=f),100<e&&(d=!0);c/=e;c>parseInt(c)&&(c=parseInt(c)+1);b||(f=f/Math.min(a.width,a.height)*100);return{cols:c,rows:e,maxSize:f}}}),yE=Object.freeze({changeBrightness:function(c,a){return qa(Mk(c,a))},brightness:function(c){return lf(c)},cushionEffect:mg,aquaEffect:ng,roundedEffect:mf,
colorMods:Oa,parseJscColor:Ob,toHexOpacity:og,parseJscFill:dc,modifyColor:da,modifyFill:hd,addOpacity:Mh,tween:we,colorToPalette:gp,simplify:kg}),zE=Object.freeze({math:Yb,round:sa,avg:Zf,mapValue:T,arraySum:function(c){return Wa(c)},diff:ma,decimalPlaces:ag}),AE=Object.freeze({lowerFirst:Ze,getRandomString:he,shortenEllipsis:$r}),BE=Object.freeze({toDegrees:io,toRadians:zb,normalizeAngle:zh,quadrant:function(c){c=zh(io(c));return 180>c?90<=c?2:3:270<=c?0:1},getPolarPoint:ie,getPolarDegPoint:Yc,gpdp:pa,
gpdp_text:function(c,a,b,d,e,f){var g=F(e,2);e=g[0];g=g[1];e+=b;g+=b;var h=function(a,b){void 0===b&&(b=0);if(0===b)return a;b=Math.min(Math.abs(b),1);return 1===b?1:ll(a,Math.max(1-b,.1))},k=a*Math.PI/180,l=function(a){return.001>Math.abs(a)?0:a};a=l(Math.cos(k));var m=Math.cos(2*k);k=l(Math.sin(k));l=Math.abs;var n=function(a){return 0<a?1:0>a?-1:0},p=n(a),q=n(k),r=h(l(k),f[0])*q;h=h(l(a),f[1])*p;f=((0>m?q:r)-1)*e/2;m=-((0<m?p:h)+1)*g/2;d=(d+a*(l(m)-(0<a?g:0)))/k||-e/2;d=Math.min(l(d),e/2)*n(d);
0>k?(d=-e-d,f=Math.max(l(f),l(d))*n(f)):f=Math.min(l(f),l(d))*n(f);return[c[0]+b+f,c[1]+b+m]},gpp:Lb,angleOfPoints:La,pointDistance:Mb,pDist:oc,lineIntersect:$e,lineDistance:jo,pointInsidePolygon:bg,arcCapDegOffset:function(c,a){var b=c-a;c=[pa([0,0],0,(c+a)/2)];b=pa(c[0],108,b);return Math.abs(zb(La([0,0],b)))/2},ensureUprightText:lo}),CE=Object.freeze({isValInsideInc:Nb,intersect:af,positionsToPadRanges:lk,invert:fg}),DE=Object.freeze({win:W,doc:ia,getRootScriptPath:ne,getScript:xk,getJson:function(c,
a,b,d){Eh(c,a,b,d,JSON.parse)}}),EE=Object.freeze({Formatter:Vg,formatString:jg}),FE=Object.freeze({getApiEnum:pe}),GE=Object.freeze({zero:Rk,resize:Sk,scale:Ed,moveTL:function(c,a,b){"undefined"!==typeof a&&(c.width-=a-c.x,c.x=a);"undefined"!==typeof b&&(c.height-=b-c.y,c.y=b);return c},padBox:Tk,padRect:hp,translate:ip,padBoxRel:jp,centerRect:qg,normalize:kp,toLTRB:lp,fromLTRB:mp,round:function(c){c=lp(c);c=B(c,Math.round);return mp(c)},fromBBox:Kc,compare:np}),HE=Object.freeze({registerIcons:zk}),
IE=Object.freeze({measureText:ig}),JE=Object.freeze({getPalette:gj,getPaletteConfig:mt}),KE=Object.freeze({registerModule:function(c,a){c=nf[c]=nf[c]||{};c.afterLoad=a;return c.loaded?!1:c.loaded=!0}}),LE=Object.freeze({idFyObj:Ab,percOrNum:db}),ME=Object.freeze({toDate:Z,toDateNum:id,intervalToSpan:rg,addTimeInterval:ec,unitToFormatOptions:pf,unitListToFormatOptions:Sh,GroupingFunctions:qt,CalendarPattern:Zk}),NE=Object.freeze({calculations:$k,keyArg:sg,nest:Pi}),OE=Object.freeze({fromPoints:eb,
bbox:tl,pathIntersects:function(c,a,b){return Zh(c.shapes[0],a,b)},Path:tf,fromString:Ca,subPath:Gd,shapeBbox:Pb,visualCenterForShape:vg,shapeIntersects:Zh}),PE=Object.freeze({pointsToPath:fb,multiLineToPath:zg,flattenD:wa,arcCornerR:Fp,arc:ul,arcSegment:Mc,pointsEqual:bb,roundCorners:Nc,roundRectCorners:nq}),QE=Object.freeze({parseSize:Ta}),RE=Object.freeze({padMargin:Ll,lineToAttr:wb,shapeToAttr:ic,boxToAttr:Hg,completeDependentOptions:$m,annotationToHtmlAttr:rr,labelToAttr:uc,offsetToAttr:sr,boxToLayoutBoxAttr:Ig}),
SE=Object.freeze({fitBoxInPath:Er,fitBoxData:function(c,a){var b=Fr(c),d=function(b){return[T(0,1,a[0],a[0]+a[2],b[0]),T(0,1,a[1],a[1]+a[3],b[1])]};c=Fi(c);c=Pb(c);return(b=b?Hr(b,d):void 0)?{scans:b,pathBBox:ED(c,d)}:void 0},fitBoxInScanData:function(c,a,b,d){var e=b[1];c=sz(c,a).scans;var f=Math.max(a[2],a[3]),g=[],h=a[1]+1;try{for(;h+e<a[1]+a[3]-2;){var k=Gr(c,h,e);k&&k[2]>=b[0]&&g.push([f-Mb(va(k),d),k]);h+=1}}catch(m){}if(g.length){g.sort(function(a,b){return a[0]<b[0]?-1:a[0]>b[0]?1:0}).reverse();
var l=g[0][1]}l&&(l=ob(va(l),b));return l}}),TE=Object.freeze({parseObjectTokens:Ei,parseGridTokens:function(c,a,b){void 0===b&&(b={});var d=Af(c);return d.result?Bf(c,{},{gOptions:b,item:a,atribs:a}):d.text}}),UE=Object.freeze({snapToPanel:od,snapPointToPanel:pd,snapPointsToPanel:Be}),VE=Object.freeze({axesBySideIndex:ls,addXlatD:Rg}),Qf=Object.freeze({__proto__:null,jsLib:wE,mathLib:zE,layoutLib:QE,rectLib:GE,trigLib:BE,SeriesBaseType:Oe,SeriesTypeColumn:ch,minimumHittestSize:15,registerSeriesType:function(c,
a){Sc[c]=a},undefVal:void 0,undef:"undefined",bboxLib:xE,stylingLib:RE,polyFitLib:SE,shapeLib:PE,Annotation:pj,moduleLoader:KE,collectionPropFactory:Qa,consts:vE,en:{error:{}},idleDefer:He,platform:DE,strLib:AE,getColumnIconPathsStatic:$l,BaseChartItem:mc,AxisCollectionWrapper:Pf,AxisViewState:yu,getShapeOptions:Yr,Axis:uj,panels:Rl,dmUtils:UE,ChartArea:Gu,CollisionManager:fn,getBreaksPath:vs,zIndexReference:lu,registerPanes:function(c){dn=c},shapes:sc,colorLib:yE,Series:kn,parsePointValues:Ii,parentNoodles:ds,
parentPropToIds:Li,mapParentChain:cm,pathsToUniqueKeys:es,visStyleConnectors:fs,columnPointBodyD:am,getIconPathsStatic:Ki,getShapePath:Nd,registerTag:function(c,a){Um[c]=a},VirtualElement:ub,rangeLib:CE,TextBox:au,LayoutItem:Lf,Panel:$g,StackPanel:ah,Layout:Kl,registerPanel:function(c,a){Qc[c]=a},UpdatablesCollection:mb,miUtils:FE,isTouchDevice:function(){return"ontouchstart"in W},annotationDefaults:bn,getAlignToOffsets:It,iconsStore:HE,chartOptionsAppliers:lm,pathLib:OE,updateOverflows:Rr,cachedPositionInfo:Og,
isAlignInside:gs,EntryWrapper:cn,formatting:EE,timeLib:ME,chartOptionsModifiers:mm,registerVisual:function(c,a){Qd[c]=a},generateId:Fd,snapPixels:Kf,textLib:IE,palettes:JE,chartInitializers:nn,CompositeElement:VC,CompositeAttrApplier:Ft,Label:Ni,tokenLib:TE,label:mr,dataUtil:NE,registerDataGridFunction:function(c,a){wc[c]=a},jscLabel:As,normalizationUtils:LE,rendererFactory:Bt,emitter:oa,BaseOptions:gu,axisUtils:VE,hideVisual:Ua,generateIdRandom:Ep});Y(Pe,"_modules.types.export",Qf);Y(Pe,"_modules.maps.export",
Qf);Y(Pe,"_modules.toolbar.export",Qf);Y(Pe,"_modules.accessibility.export",Qf);Y(Pe,"_modules.datagrid.export",Qf);Y(Pe,"_modules.debug.export",Qf);S.Chart=wj;S.Grid=Es;S.Nest=uE;S.chart=function(c,a){var b=Object.create(wj.prototype);wj.apply(b,arguments);return b};S.colorToPalette=function(c,a,b,d){return gp(c,a,b,d)};S.csv2Json=function(c,a){return el(c,",",a)};S.defaults=function(c){if(t(c))if(null===c)var a={};else a=rd?rd():{},A(a,c);else return rd?rd():{};a.baseUrl&&(gg=a.baseUrl);return(rd=
Gi(a))?rd():{}};S.dsv2Json=function(c,a,b){void 0===b&&(b={});return el(c,a,b)};S.fetch=function(c,a){Qh||(Qh=W.fetch||Xw);return Qh(c,a)};S.fontsReady=function(c){return rt(c)};S.formatDate=function(c,a,b){void 0===a&&(a="d");return jg(new Date(c),a,b).replace(/\u200E/gi,"")};S.formatNumber=function(c,a,b){void 0===a&&(a="n");return jg(parseFloat(c),a,b)};S.formatString=function(c,a,b){void 0===b&&(b="en-US");return jg(c,a,b)};S.getPalette=Ju;S.getVersion=Cs;S.globalCharts=Ku;S.internal=Pe;S.json2Csv=
function(c,a){return fl(c,",",a)};S.json2Dsv=function(c,a,b){void 0===b&&(b={});return fl(c,a,b)};S.json2Tsv=function(c,a){return fl(c,"\t",a)};S.label=function(c,a,b){return As(c,a,Ri(b))};S.map=sE;S.max=function(c,a){return xj(c,"max",a)};S.mean=function(c,a){return xj(c,"average",a)};S.merge=tE;S.min=function(c,a){return xj(c,"min",a)};S.nest=function(){return new Pi};S.parseCsv=function(c,a){void 0===a&&(a={});return Dp(c,a)};S.parsePoints=function(c,a){return Bp(c,a)};S.pointsFromArray=function(c,
a){return Cp(c,a)};S.ready=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return of(function(a){var b=[],e=[];c.forEach(function(a){O(a)?b.push(a):a===ia&&e.push(VA())});b.length&&e.push(rt(b));e.length?Ww(e,a):a({ok:!0})})};S.smartPalette={getPaletteCSS:function(c,a){return(new ju(null,c)).getPaletteCSS(c,a)}};S.sortBy=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];return ta.apply(vB,G(c))};S.sourcePath=function(){return ne()};S.sum=function(c,a){return xj(c,
"sum",a)};S.tsv2Json=function(c,a){return el(c,"\t",a)};Object.defineProperty(S,"__esModule",{value:!0})});

Zerion Mini Shell 1.0