-
Notifications
You must be signed in to change notification settings - Fork 0
/
447.65dde7003fde61ba.js
1 lines (1 loc) · 254 KB
/
447.65dde7003fde61ba.js
1
(self.webpackChunkemporium=self.webpackChunkemporium||[]).push([[447],{3447:(Qt,_e,et)=>{"use strict";et.d(_e,{$e:()=>mx,H5:()=>fx,K$:()=>px,Dw:()=>Ax,a4:()=>Jx,JU:()=>Sx,Nm:()=>Mx});var n=et(3668),v=et(6019),T=et(9814),Nt=et(5711),fr=et(5077),xr=et(9463);function _r(){}function nn(i){return null==i?_r:function(){return this.querySelector(i)}}function xs(i){return"object"==typeof i&&"length"in i?i:Array.from(i)}function Tr(){return[]}function _s(i){return null==i?Tr:function(){return this.querySelectorAll(i)}}function vs(i){return function(){return this.matches(i)}}function Ts(i){return function(s){return s.matches(i)}}var Cr=Array.prototype.find;function Ar(){return this.firstElementChild}var Lr=Array.prototype.filter;function Sr(){return this.children}function ys(i){return new Array(i.length)}function xi(i,s){this.ownerDocument=i.ownerDocument,this.namespaceURI=i.namespaceURI,this._next=null,this._parent=i,this.__data__=s}function Er(i){return function(){return i}}function Br(i,s,t,e,a,o){for(var l,r=0,h=s.length,c=o.length;r<c;++r)(l=s[r])?(l.__data__=o[r],e[r]=l):t[r]=new xi(i,o[r]);for(;r<h;++r)(l=s[r])&&(a[r]=l)}function Zr(i,s,t,e,a,o,r){var l,h,m,c=new Map,u=s.length,d=o.length,g=new Array(u);for(l=0;l<u;++l)(h=s[l])&&(g[l]=m=r.call(h,h.__data__,l,s)+"",c.has(m)?a[l]=h:c.set(m,h));for(l=0;l<d;++l)m=r.call(i,o[l],l,o)+"",(h=c.get(m))?(e[l]=h,h.__data__=o[l],c.delete(m)):t[l]=new xi(i,o[l]);for(l=0;l<u;++l)(h=s[l])&&c.get(g[l])===h&&(a[l]=h)}function Hr(i){return i.__data__}function Rr(i,s){return i<s?-1:i>s?1:i>=s?0:NaN}xi.prototype={constructor:xi,appendChild:function(i){return this._parent.insertBefore(i,this._next)},insertBefore:function(i,s){return this._parent.insertBefore(i,s)},querySelector:function(i){return this._parent.querySelector(i)},querySelectorAll:function(i){return this._parent.querySelectorAll(i)}};var sn="http://www.w3.org/1999/xhtml";const bs={svg:"http://www.w3.org/2000/svg",xhtml:sn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _i(i){var s=i+="",t=s.indexOf(":");return t>=0&&"xmlns"!==(s=i.slice(0,t))&&(i=i.slice(t+1)),bs.hasOwnProperty(s)?{space:bs[s],local:i}:i}function Vr(i){return function(){this.removeAttribute(i)}}function Ur(i){return function(){this.removeAttributeNS(i.space,i.local)}}function jr(i,s){return function(){this.setAttribute(i,s)}}function Kr(i,s){return function(){this.setAttributeNS(i.space,i.local,s)}}function tl(i,s){return function(){var t=s.apply(this,arguments);null==t?this.removeAttribute(i):this.setAttribute(i,t)}}function el(i,s){return function(){var t=s.apply(this,arguments);null==t?this.removeAttributeNS(i.space,i.local):this.setAttributeNS(i.space,i.local,t)}}function Cs(i){return i.ownerDocument&&i.ownerDocument.defaultView||i.document&&i||i.defaultView}function nl(i){return function(){this.style.removeProperty(i)}}function sl(i,s,t){return function(){this.style.setProperty(i,s,t)}}function al(i,s,t){return function(){var e=s.apply(this,arguments);null==e?this.style.removeProperty(i):this.style.setProperty(i,e,t)}}function Oe(i,s){return i.style.getPropertyValue(s)||Cs(i).getComputedStyle(i,null).getPropertyValue(s)}function rl(i){return function(){delete this[i]}}function ll(i,s){return function(){this[i]=s}}function cl(i,s){return function(){var t=s.apply(this,arguments);null==t?delete this[i]:this[i]=t}}function ws(i){return i.trim().split(/^|\s+/)}function an(i){return i.classList||new As(i)}function As(i){this._node=i,this._names=ws(i.getAttribute("class")||"")}function ks(i,s){for(var t=an(i),e=-1,a=s.length;++e<a;)t.add(s[e])}function Ls(i,s){for(var t=an(i),e=-1,a=s.length;++e<a;)t.remove(s[e])}function ul(i){return function(){ks(this,i)}}function dl(i){return function(){Ls(this,i)}}function gl(i,s){return function(){(s.apply(this,arguments)?ks:Ls)(this,i)}}function pl(){this.textContent=""}function fl(i){return function(){this.textContent=i}}function xl(i){return function(){var s=i.apply(this,arguments);this.textContent=null==s?"":s}}function vl(){this.innerHTML=""}function Tl(i){return function(){this.innerHTML=i}}function yl(i){return function(){var s=i.apply(this,arguments);this.innerHTML=null==s?"":s}}function Cl(){this.nextSibling&&this.parentNode.appendChild(this)}function Al(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ll(i){return function(){var s=this.ownerDocument,t=this.namespaceURI;return t===sn&&s.documentElement.namespaceURI===sn?s.createElement(i):s.createElementNS(t,i)}}function Sl(i){return function(){return this.ownerDocument.createElementNS(i.space,i.local)}}function Ss(i){var s=_i(i);return(s.local?Sl:Ll)(s)}function Ml(){return null}function Ol(){var i=this.parentNode;i&&i.removeChild(this)}function Bl(){var i=this.cloneNode(!1),s=this.parentNode;return s?s.insertBefore(i,this.nextSibling):i}function Zl(){var i=this.cloneNode(!0),s=this.parentNode;return s?s.insertBefore(i,this.nextSibling):i}function Yl(i){return i.trim().split(/^|\s+/).map(function(s){var t="",e=s.indexOf(".");return e>=0&&(t=s.slice(e+1),s=s.slice(0,e)),{type:s,name:t}})}function Il(i){return function(){var s=this.__on;if(s){for(var o,t=0,e=-1,a=s.length;t<a;++t)o=s[t],i.type&&o.type!==i.type||o.name!==i.name?s[++e]=o:this.removeEventListener(o.type,o.listener,o.options);++e?s.length=e:delete this.__on}}}function Xl(i,s,t){return function(){var a,e=this.__on,o=function(i){return function(s){i.call(this,s,this.__data__)}}(s);if(e)for(var r=0,l=e.length;r<l;++r)if((a=e[r]).type===i.type&&a.name===i.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=o,a.options=t),void(a.value=s);this.addEventListener(i.type,o,t),a={type:i.type,name:i.name,value:s,listener:o,options:t},e?e.push(a):this.__on=[a]}}function Ds(i,s,t){var e=Cs(i),a=e.CustomEvent;"function"==typeof a?a=new a(s,t):(a=e.document.createEvent("Event"),t?(a.initEvent(s,t.bubbles,t.cancelable),a.detail=t.detail):a.initEvent(s,!1,!1)),i.dispatchEvent(a)}function Rl(i,s){return function(){return Ds(this,i,s)}}function Jl(i,s){return function(){return Ds(this,i,s.apply(this,arguments))}}As.prototype={add:function(i){this._names.indexOf(i)<0&&(this._names.push(i),this._node.setAttribute("class",this._names.join(" ")))},remove:function(i){var s=this._names.indexOf(i);s>=0&&(this._names.splice(s,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(i){return this._names.indexOf(i)>=0}};var Ms=[null];function Ht(i,s){this._groups=i,this._parents=s}function Fs(){return new Ht([[document.documentElement]],Ms)}Ht.prototype=Fs.prototype={constructor:Ht,select:function(i){"function"!=typeof i&&(i=nn(i));for(var s=this._groups,t=s.length,e=new Array(t),a=0;a<t;++a)for(var h,c,o=s[a],r=o.length,l=e[a]=new Array(r),u=0;u<r;++u)(h=o[u])&&(c=i.call(h,h.__data__,u,o))&&("__data__"in h&&(c.__data__=h.__data__),l[u]=c);return new Ht(e,this._parents)},selectAll:function(i){i="function"==typeof i?function(i){return function(){var s=i.apply(this,arguments);return null==s?[]:xs(s)}}(i):_s(i);for(var s=this._groups,t=s.length,e=[],a=[],o=0;o<t;++o)for(var h,r=s[o],l=r.length,c=0;c<l;++c)(h=r[c])&&(e.push(i.call(h,h.__data__,c,r)),a.push(h));return new Ht(e,a)},selectChild:function(i){return this.select(null==i?Ar:function(i){return function(){return Cr.call(this.children,i)}}("function"==typeof i?i:Ts(i)))},selectChildren:function(i){return this.selectAll(null==i?Sr:function(i){return function(){return Lr.call(this.children,i)}}("function"==typeof i?i:Ts(i)))},filter:function(i){"function"!=typeof i&&(i=vs(i));for(var s=this._groups,t=s.length,e=new Array(t),a=0;a<t;++a)for(var h,o=s[a],r=o.length,l=e[a]=[],c=0;c<r;++c)(h=o[c])&&i.call(h,h.__data__,c,o)&&l.push(h);return new Ht(e,this._parents)},data:function(i,s){if(!arguments.length)return Array.from(this,Hr);var t=s?Zr:Br,e=this._parents,a=this._groups;"function"!=typeof i&&(i=Er(i));for(var o=a.length,r=new Array(o),l=new Array(o),h=new Array(o),c=0;c<o;++c){var u=e[c],d=a[c],g=d.length,m=xs(i.call(u,u&&u.__data__,c,e)),x=m.length,_=l[c]=new Array(x),p=r[c]=new Array(x),y=h[c]=new Array(g);t(u,d,_,p,y,m,s);for(var S,D,w=0,C=0;w<x;++w)if(S=_[w]){for(w>=C&&(C=w+1);!(D=p[C])&&++C<x;);S._next=D||null}}return(r=new Ht(r,e))._enter=l,r._exit=h,r},enter:function(){return new Ht(this._enter||this._groups.map(ys),this._parents)},exit:function(){return new Ht(this._exit||this._groups.map(ys),this._parents)},join:function(i,s,t){var e=this.enter(),a=this,o=this.exit();return e="function"==typeof i?i(e):e.append(i+""),null!=s&&(a=s(a)),null==t?o.remove():t(o),e&&a?e.merge(a).order():a},merge:function(i){if(!(i instanceof Ht))throw new Error("invalid merge");for(var s=this._groups,t=i._groups,e=s.length,o=Math.min(e,t.length),r=new Array(e),l=0;l<o;++l)for(var g,h=s[l],c=t[l],u=h.length,d=r[l]=new Array(u),m=0;m<u;++m)(g=h[m]||c[m])&&(d[m]=g);for(;l<e;++l)r[l]=s[l];return new Ht(r,this._parents)},selection:function(){return this},order:function(){for(var i=this._groups,s=-1,t=i.length;++s<t;)for(var r,e=i[s],a=e.length-1,o=e[a];--a>=0;)(r=e[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(i){function s(d,g){return d&&g?i(d.__data__,g.__data__):!d-!g}i||(i=Rr);for(var t=this._groups,e=t.length,a=new Array(e),o=0;o<e;++o){for(var c,r=t[o],l=r.length,h=a[o]=new Array(l),u=0;u<l;++u)(c=r[u])&&(h[u]=c);h.sort(s)}return new Ht(a,this._parents).order()},call:function(){var i=arguments[0];return arguments[0]=this,i.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var i=this._groups,s=0,t=i.length;s<t;++s)for(var e=i[s],a=0,o=e.length;a<o;++a){var r=e[a];if(r)return r}return null},size:function(){let i=0;for(const s of this)++i;return i},empty:function(){return!this.node()},each:function(i){for(var s=this._groups,t=0,e=s.length;t<e;++t)for(var l,a=s[t],o=0,r=a.length;o<r;++o)(l=a[o])&&i.call(l,l.__data__,o,a);return this},attr:function(i,s){var t=_i(i);if(arguments.length<2){var e=this.node();return t.local?e.getAttributeNS(t.space,t.local):e.getAttribute(t)}return this.each((null==s?t.local?Ur:Vr:"function"==typeof s?t.local?el:tl:t.local?Kr:jr)(t,s))},style:function(i,s,t){return arguments.length>1?this.each((null==s?nl:"function"==typeof s?al:sl)(i,s,null==t?"":t)):Oe(this.node(),i)},property:function(i,s){return arguments.length>1?this.each((null==s?rl:"function"==typeof s?cl:ll)(i,s)):this.node()[i]},classed:function(i,s){var t=ws(i+"");if(arguments.length<2){for(var e=an(this.node()),a=-1,o=t.length;++a<o;)if(!e.contains(t[a]))return!1;return!0}return this.each(("function"==typeof s?gl:s?ul:dl)(t,s))},text:function(i){return arguments.length?this.each(null==i?pl:("function"==typeof i?xl:fl)(i)):this.node().textContent},html:function(i){return arguments.length?this.each(null==i?vl:("function"==typeof i?yl:Tl)(i)):this.node().innerHTML},raise:function(){return this.each(Cl)},lower:function(){return this.each(Al)},append:function(i){var s="function"==typeof i?i:Ss(i);return this.select(function(){return this.appendChild(s.apply(this,arguments))})},insert:function(i,s){var t="function"==typeof i?i:Ss(i),e=null==s?Ml:"function"==typeof s?s:nn(s);return this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},remove:function(){return this.each(Ol)},clone:function(i){return this.select(i?Zl:Bl)},datum:function(i){return arguments.length?this.property("__data__",i):this.node().__data__},on:function(i,s,t){var a,r,e=Yl(i+""),o=e.length;if(!(arguments.length<2)){for(l=s?Xl:Il,a=0;a<o;++a)this.each(l(e[a],s,t));return this}var l=this.node().__on;if(l)for(var u,h=0,c=l.length;h<c;++h)for(a=0,u=l[h];a<o;++a)if((r=e[a]).type===u.type&&r.name===u.name)return u.value},dispatch:function(i,s){return this.each(("function"==typeof s?Jl:Rl)(i,s))},[Symbol.iterator]:function*(){for(var i=this._groups,s=0,t=i.length;s<t;++s)for(var r,e=i[s],a=0,o=e.length;a<o;++a)(r=e[a])&&(yield r)}};const Ge=Fs;function ut(i){return"string"==typeof i?new Ht([[document.querySelector(i)]],[document.documentElement]):new Ht([[i]],Ms)}var Wl={value:()=>{}};function Os(){for(var e,i=0,s=arguments.length,t={};i<s;++i){if(!(e=arguments[i]+"")||e in t||/[\s.]/.test(e))throw new Error("illegal type: "+e);t[e]=[]}return new vi(t)}function vi(i){this._=i}function Ql(i,s){return i.trim().split(/^|\s+/).map(function(t){var e="",a=t.indexOf(".");if(a>=0&&(e=t.slice(a+1),t=t.slice(0,a)),t&&!s.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}function Vl(i,s){for(var a,t=0,e=i.length;t<e;++t)if((a=i[t]).name===s)return a.value}function Es(i,s,t){for(var e=0,a=i.length;e<a;++e)if(i[e].name===s){i[e]=Wl,i=i.slice(0,e).concat(i.slice(e+1));break}return null!=t&&i.push({name:s,value:t}),i}vi.prototype=Os.prototype={constructor:vi,on:function(i,s){var a,t=this._,e=Ql(i+"",t),o=-1,r=e.length;if(!(arguments.length<2)){if(null!=s&&"function"!=typeof s)throw new Error("invalid callback: "+s);for(;++o<r;)if(a=(i=e[o]).type)t[a]=Es(t[a],i.name,s);else if(null==s)for(a in t)t[a]=Es(t[a],i.name,null);return this}for(;++o<r;)if((a=(i=e[o]).type)&&(a=Vl(t[a],i.name)))return a},copy:function(){var i={},s=this._;for(var t in s)i[t]=s[t].slice();return new vi(i)},call:function(i,s){if((a=arguments.length-2)>0)for(var a,o,t=new Array(a),e=0;e<a;++e)t[e]=arguments[e+2];if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(e=0,a=(o=this._[i]).length;e<a;++e)o[e].value.apply(s,t)},apply:function(i,s,t){if(!this._.hasOwnProperty(i))throw new Error("unknown type: "+i);for(var e=this._[i],a=0,o=e.length;a<o;++a)e[a].value.apply(s,t)}};const Bs=Os;function on(i){i.preventDefault(),i.stopImmediatePropagation()}function Ul(i){var s=i.document.documentElement,t=ut(i).on("dragstart.drag",on,!0);"onselectstart"in s?t.on("selectstart.drag",on,!0):(s.__noselect=s.style.MozUserSelect,s.style.MozUserSelect="none")}function jl(i,s){var t=i.document.documentElement,e=ut(i).on("dragstart.drag",null);s&&(e.on("click.drag",on,!0),setTimeout(function(){e.on("click.drag",null)},0)),"onselectstart"in t?e.on("selectstart.drag",null):(t.style.MozUserSelect=t.__noselect,delete t.__noselect)}function rn(i,s,t){i.prototype=s.prototype=t,t.constructor=i}function Zs(i,s){var t=Object.create(i.prototype);for(var e in s)t[e]=s[e];return t}function qe(){}var Ti=1/.7,Ee="\\s*([+-]?\\d+)\\s*",Qe="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ut="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Kl=/^#([0-9a-f]{3,8})$/,tc=new RegExp("^rgb\\("+[Ee,Ee,Ee]+"\\)$"),ec=new RegExp("^rgb\\("+[Ut,Ut,Ut]+"\\)$"),ic=new RegExp("^rgba\\("+[Ee,Ee,Ee,Qe]+"\\)$"),nc=new RegExp("^rgba\\("+[Ut,Ut,Ut,Qe]+"\\)$"),sc=new RegExp("^hsl\\("+[Qe,Ut,Ut]+"\\)$"),ac=new RegExp("^hsla\\("+[Qe,Ut,Ut,Qe]+"\\)$"),Hs={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Ps(){return this.rgb().formatHex()}function Ns(){return this.rgb().formatRgb()}function ve(i){var s,t;return i=(i+"").trim().toLowerCase(),(s=Kl.exec(i))?(t=s[1].length,s=parseInt(s[1],16),6===t?Ys(s):3===t?new It(s>>8&15|s>>4&240,s>>4&15|240&s,(15&s)<<4|15&s,1):8===t?yi(s>>24&255,s>>16&255,s>>8&255,(255&s)/255):4===t?yi(s>>12&15|s>>8&240,s>>8&15|s>>4&240,s>>4&15|240&s,((15&s)<<4|15&s)/255):null):(s=tc.exec(i))?new It(s[1],s[2],s[3],1):(s=ec.exec(i))?new It(255*s[1]/100,255*s[2]/100,255*s[3]/100,1):(s=ic.exec(i))?yi(s[1],s[2],s[3],s[4]):(s=nc.exec(i))?yi(255*s[1]/100,255*s[2]/100,255*s[3]/100,s[4]):(s=sc.exec(i))?$s(s[1],s[2]/100,s[3]/100,1):(s=ac.exec(i))?$s(s[1],s[2]/100,s[3]/100,s[4]):Hs.hasOwnProperty(i)?Ys(Hs[i]):"transparent"===i?new It(NaN,NaN,NaN,0):null}function Ys(i){return new It(i>>16&255,i>>8&255,255&i,1)}function yi(i,s,t,e){return e<=0&&(i=s=t=NaN),new It(i,s,t,e)}function rc(i){return i instanceof qe||(i=ve(i)),i?new It((i=i.rgb()).r,i.g,i.b,i.opacity):new It}function Ve(i,s,t,e){return 1===arguments.length?rc(i):new It(i,s,t,null==e?1:e)}function It(i,s,t,e){this.r=+i,this.g=+s,this.b=+t,this.opacity=+e}function Is(){return"#"+ln(this.r)+ln(this.g)+ln(this.b)}function Xs(){var i=this.opacity;return(1===(i=isNaN(i)?1:Math.max(0,Math.min(1,i)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===i?")":", "+i+")")}function ln(i){return((i=Math.max(0,Math.min(255,Math.round(i)||0)))<16?"0":"")+i.toString(16)}function $s(i,s,t,e){return e<=0?i=s=t=NaN:t<=0||t>=1?i=s=NaN:s<=0&&(i=NaN),new jt(i,s,t,e)}function Rs(i){if(i instanceof jt)return new jt(i.h,i.s,i.l,i.opacity);if(i instanceof qe||(i=ve(i)),!i)return new jt;if(i instanceof jt)return i;var s=(i=i.rgb()).r/255,t=i.g/255,e=i.b/255,a=Math.min(s,t,e),o=Math.max(s,t,e),r=NaN,l=o-a,h=(o+a)/2;return l?(r=s===o?(t-e)/l+6*(t<e):t===o?(e-s)/l+2:(s-t)/l+4,l/=h<.5?o+a:2-o-a,r*=60):l=h>0&&h<1?0:r,new jt(r,l,h,i.opacity)}function jt(i,s,t,e){this.h=+i,this.s=+s,this.l=+t,this.opacity=+e}function cn(i,s,t){return 255*(i<60?s+(t-s)*i/60:i<180?t:i<240?s+(t-s)*(240-i)/60:s)}function Js(i,s,t,e,a){var o=i*i,r=o*i;return((1-3*i+3*o-r)*s+(4-6*o+3*r)*t+(1+3*i+3*o-3*r)*e+r*a)/6}rn(qe,ve,{copy:function(i){return Object.assign(new this.constructor,this,i)},displayable:function(){return this.rgb().displayable()},hex:Ps,formatHex:Ps,formatHsl:function(){return Rs(this).formatHsl()},formatRgb:Ns,toString:Ns}),rn(It,Ve,Zs(qe,{brighter:function(i){return i=null==i?Ti:Math.pow(Ti,i),new It(this.r*i,this.g*i,this.b*i,this.opacity)},darker:function(i){return i=null==i?.7:Math.pow(.7,i),new It(this.r*i,this.g*i,this.b*i,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Is,formatHex:Is,formatRgb:Xs,toString:Xs})),rn(jt,function(i,s,t,e){return 1===arguments.length?Rs(i):new jt(i,s,t,null==e?1:e)},Zs(qe,{brighter:function(i){return i=null==i?Ti:Math.pow(Ti,i),new jt(this.h,this.s,this.l*i,this.opacity)},darker:function(i){return i=null==i?.7:Math.pow(.7,i),new jt(this.h,this.s,this.l*i,this.opacity)},rgb:function(){var i=this.h%360+360*(this.h<0),s=isNaN(i)||isNaN(this.s)?0:this.s,t=this.l,e=t+(t<.5?t:1-t)*s,a=2*t-e;return new It(cn(i>=240?i-240:i+120,a,e),cn(i,a,e),cn(i<120?i+240:i-120,a,e),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var i=this.opacity;return(1===(i=isNaN(i)?1:Math.max(0,Math.min(1,i)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===i?")":", "+i+")")}}));const hn=i=>()=>i;function Gs(i,s){var t=s-i;return t?function(i,s){return function(t){return i+t*s}}(i,t):hn(isNaN(i)?s:i)}const bi=function i(s){var t=function(i){return 1==(i=+i)?Gs:function(s,t){return t-s?function(i,s,t){return i=Math.pow(i,t),s=Math.pow(s,t)-i,t=1/t,function(e){return Math.pow(i+e*s,t)}}(s,t,i):hn(isNaN(s)?t:s)}}(s);function e(a,o){var r=t((a=Ve(a)).r,(o=Ve(o)).r),l=t(a.g,o.g),h=t(a.b,o.b),c=Gs(a.opacity,o.opacity);return function(u){return a.r=r(u),a.g=l(u),a.b=h(u),a.opacity=c(u),a+""}}return e.gamma=i,e}(1);function qs(i){return function(s){var r,l,t=s.length,e=new Array(t),a=new Array(t),o=new Array(t);for(r=0;r<t;++r)l=Ve(s[r]),e[r]=l.r||0,a[r]=l.g||0,o[r]=l.b||0;return e=i(e),a=i(a),o=i(o),l.opacity=1,function(h){return l.r=e(h),l.g=a(h),l.b=o(h),l+""}}}function Ws(i,s){var r,t=s?s.length:0,e=i?Math.min(t,i.length):0,a=new Array(e),o=new Array(t);for(r=0;r<e;++r)a[r]=he(i[r],s[r]);for(;r<t;++r)o[r]=s[r];return function(l){for(r=0;r<e;++r)o[r]=a[r](l);return o}}function gc(i,s){var t=new Date;return i=+i,s=+s,function(e){return t.setTime(i*(1-e)+s*e),t}}function Gt(i,s){return i=+i,s=+s,function(t){return i*(1-t)+s*t}}function mc(i,s){var a,t={},e={};for(a in(null===i||"object"!=typeof i)&&(i={}),(null===s||"object"!=typeof s)&&(s={}),s)a in i?t[a]=he(i[a],s[a]):e[a]=s[a];return function(o){for(a in t)e[a]=t[a](o);return e}}qs(function(i){var s=i.length-1;return function(t){var e=t<=0?t=0:t>=1?(t=1,s-1):Math.floor(t*s),a=i[e],o=i[e+1];return Js((t-e/s)*s,e>0?i[e-1]:2*a-o,a,o,e<s-1?i[e+2]:2*o-a)}}),qs(function(i){var s=i.length;return function(t){var e=Math.floor(((t%=1)<0?++t:t)*s);return Js((t-e/s)*s,i[(e+s-1)%s],i[e%s],i[(e+1)%s],i[(e+2)%s])}});var un=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dn=new RegExp(un.source,"g");function Qs(i,s){var e,a,o,t=un.lastIndex=dn.lastIndex=0,r=-1,l=[],h=[];for(i+="",s+="";(e=un.exec(i))&&(a=dn.exec(s));)(o=a.index)>t&&(o=s.slice(t,o),l[r]?l[r]+=o:l[++r]=o),(e=e[0])===(a=a[0])?l[r]?l[r]+=a:l[++r]=a:(l[++r]=null,h.push({i:r,x:Gt(e,a)})),t=dn.lastIndex;return t<s.length&&(o=s.slice(t),l[r]?l[r]+=o:l[++r]=o),l.length<2?h[0]?function(i){return function(s){return i(s)+""}}(h[0].x):function(i){return function(){return i}}(s):(s=h.length,function(c){for(var d,u=0;u<s;++u)l[(d=h[u]).i]=d.x(c);return l.join("")})}function xc(i,s){s||(s=[]);var a,t=i?Math.min(s.length,i.length):0,e=s.slice();return function(o){for(a=0;a<t;++a)e[a]=i[a]*(1-o)+s[a]*o;return e}}function he(i,s){var e,t=typeof s;return null==s||"boolean"===t?hn(s):("number"===t?Gt:"string"===t?(e=ve(s))?(s=e,bi):Qs:s instanceof ve?bi:s instanceof Date?gc:function(i){return ArrayBuffer.isView(i)&&!(i instanceof DataView)}(s)?xc:Array.isArray(s)?Ws:"function"!=typeof s.valueOf&&"function"!=typeof s.toString||isNaN(s)?mc:Gt)(i,s)}function Vs(i,s){if(i=function(i){let s;for(;s=i.sourceEvent;)i=s;return i}(i),void 0===s&&(s=i.currentTarget),s){var t=s.ownerSVGElement||s;if(t.createSVGPoint){var e=t.createSVGPoint();return e.x=i.clientX,e.y=i.clientY,[(e=e.matrixTransform(s.getScreenCTM().inverse())).x,e.y]}if(s.getBoundingClientRect){var a=s.getBoundingClientRect();return[i.clientX-a.left-s.clientLeft,i.clientY-a.top-s.clientTop]}}return[i.pageX,i.pageY]}var Ci,Ke,Be=0,Ue=0,je=0,wi=0,Te=0,Ai=0,ti="object"==typeof performance&&performance.now?performance:Date,js="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(i){setTimeout(i,17)};function gn(){return Te||(js(Tc),Te=ti.now()+Ai)}function Tc(){Te=0}function ki(){this._call=this._time=this._next=null}function Ks(i,s,t){var e=new ki;return e.restart(i,s,t),e}function ta(){Te=(wi=ti.now())+Ai,Be=Ue=0;try{!function(){gn(),++Be;for(var s,i=Ci;i;)(s=Te-i._time)>=0&&i._call.call(null,s),i=i._next;--Be}()}finally{Be=0,function(){for(var i,t,s=Ci,e=1/0;s;)s._call?(e>s._time&&(e=s._time),i=s,s=s._next):(t=s._next,s._next=null,s=i?i._next=t:Ci=t);Ke=i,mn(e)}(),Te=0}}function bc(){var i=ti.now(),s=i-wi;s>1e3&&(Ai-=s,wi=i)}function mn(i){Be||(Ue&&(Ue=clearTimeout(Ue)),i-Te>24?(i<1/0&&(Ue=setTimeout(ta,i-ti.now()-Ai)),je&&(je=clearInterval(je))):(je||(wi=ti.now(),je=setInterval(bc,1e3)),Be=1,js(ta)))}function ea(i,s,t){var e=new ki;return e.restart(a=>{e.stop(),i(a+s)},s=null==s?0:+s,t),e}ki.prototype=Ks.prototype={constructor:ki,restart:function(i,s,t){if("function"!=typeof i)throw new TypeError("callback is not a function");t=(null==t?gn():+t)+(null==s?0:+s),!this._next&&Ke!==this&&(Ke?Ke._next=this:Ci=this,Ke=this),this._call=i,this._time=t,mn()},stop:function(){this._call&&(this._call=null,this._time=1/0,mn())}};var wc=Bs("start","end","cancel","interrupt"),Ac=[];function Di(i,s,t,e,a,o){var r=i.__transition;if(r){if(t in r)return}else i.__transition={};!function(i,s,t){var a,e=i.__transition;function r(c){var u,d,g,m;if(1!==t.state)return h();for(u in e)if((m=e[u]).name===t.name){if(3===m.state)return ea(r);4===m.state?(m.state=6,m.timer.stop(),m.on.call("interrupt",i,i.__data__,m.index,m.group),delete e[u]):+u<s&&(m.state=6,m.timer.stop(),m.on.call("cancel",i,i.__data__,m.index,m.group),delete e[u])}if(ea(function(){3===t.state&&(t.state=4,t.timer.restart(l,t.delay,t.time),l(c))}),t.state=2,t.on.call("start",i,i.__data__,t.index,t.group),2===t.state){for(t.state=3,a=new Array(g=t.tween.length),u=0,d=-1;u<g;++u)(m=t.tween[u].value.call(i,i.__data__,t.index,t.group))&&(a[++d]=m);a.length=d+1}}function l(c){for(var u=c<t.duration?t.ease.call(null,c/t.duration):(t.timer.restart(h),t.state=5,1),d=-1,g=a.length;++d<g;)a[d].call(i,u);5===t.state&&(t.on.call("end",i,i.__data__,t.index,t.group),h())}function h(){for(var c in t.state=6,t.timer.stop(),delete e[s],e)return;delete i.__transition}e[s]=t,t.timer=Ks(function(c){t.state=1,t.timer.restart(r,t.delay,t.time),t.delay<=c&&r(c-t.delay)},0,t.time)}(i,t,{name:s,index:e,group:a,on:wc,tween:Ac,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function xn(i,s){var t=qt(i,s);if(t.state>0)throw new Error("too late; already scheduled");return t}function Kt(i,s){var t=qt(i,s);if(t.state>3)throw new Error("too late; already running");return t}function qt(i,s){var t=i.__transition;if(!t||!(t=t[s]))throw new Error("transition not found");return t}function _n(i,s){var e,a,r,t=i.__transition,o=!0;if(t){for(r in s=null==s?null:s+"",t)(e=t[r]).name===s?(a=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(a?"interrupt":"cancel",i,i.__data__,e.index,e.group),delete t[r]):o=!1;o&&delete i.__transition}}var Mi,aa=180/Math.PI,vn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function oa(i,s,t,e,a,o){var r,l,h;return(r=Math.sqrt(i*i+s*s))&&(i/=r,s/=r),(h=i*t+s*e)&&(t-=i*h,e-=s*h),(l=Math.sqrt(t*t+e*e))&&(t/=l,e/=l,h/=l),i*e<s*t&&(i=-i,s=-s,h=-h,r=-r),{translateX:a,translateY:o,rotate:Math.atan2(s,i)*aa,skewX:Math.atan(h)*aa,scaleX:r,scaleY:l}}function ra(i,s,t,e){function a(c){return c.length?c.pop()+" ":""}return function(c,u){var d=[],g=[];return c=i(c),u=i(u),function(c,u,d,g,m,x){if(c!==d||u!==g){var _=m.push("translate(",null,s,null,t);x.push({i:_-4,x:Gt(c,d)},{i:_-2,x:Gt(u,g)})}else(d||g)&&m.push("translate("+d+s+g+t)}(c.translateX,c.translateY,u.translateX,u.translateY,d,g),function(c,u,d,g){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),g.push({i:d.push(a(d)+"rotate(",null,e)-2,x:Gt(c,u)})):u&&d.push(a(d)+"rotate("+u+e)}(c.rotate,u.rotate,d,g),function(c,u,d,g){c!==u?g.push({i:d.push(a(d)+"skewX(",null,e)-2,x:Gt(c,u)}):u&&d.push(a(d)+"skewX("+u+e)}(c.skewX,u.skewX,d,g),function(c,u,d,g,m,x){if(c!==d||u!==g){var _=m.push(a(m)+"scale(",null,",",null,")");x.push({i:_-4,x:Gt(c,d)},{i:_-2,x:Gt(u,g)})}else(1!==d||1!==g)&&m.push(a(m)+"scale("+d+","+g+")")}(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,g),c=u=null,function(m){for(var p,x=-1,_=g.length;++x<_;)d[(p=g[x]).i]=p.x(m);return d.join("")}}}var Mc=ra(function(i){const s=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(i+"");return s.isIdentity?vn:oa(s.a,s.b,s.c,s.d,s.e,s.f)},"px, ","px)","deg)"),Fc=ra(function(i){return null!=i&&(Mi||(Mi=document.createElementNS("http://www.w3.org/2000/svg","g")),Mi.setAttribute("transform",i),i=Mi.transform.baseVal.consolidate())?oa((i=i.matrix).a,i.b,i.c,i.d,i.e,i.f):vn},", ",")",")");function Oc(i,s){var t,e;return function(){var a=Kt(this,i),o=a.tween;if(o!==t)for(var r=0,l=(e=t=o).length;r<l;++r)if(e[r].name===s){(e=e.slice()).splice(r,1);break}a.tween=e}}function Ec(i,s,t){var e,a;if("function"!=typeof t)throw new Error;return function(){var o=Kt(this,i),r=o.tween;if(r!==e){a=(e=r).slice();for(var l={name:s,value:t},h=0,c=a.length;h<c;++h)if(a[h].name===s){a[h]=l;break}h===c&&a.push(l)}o.tween=a}}function Tn(i,s,t){var e=i._id;return i.each(function(){var a=Kt(this,e);(a.value||(a.value={}))[s]=t.apply(this,arguments)}),function(a){return qt(a,e).value[s]}}function la(i,s){var t;return("number"==typeof s?Gt:s instanceof ve?bi:(t=ve(s))?(s=t,bi):Qs)(i,s)}function Zc(i){return function(){this.removeAttribute(i)}}function Hc(i){return function(){this.removeAttributeNS(i.space,i.local)}}function Pc(i,s,t){var e,o,a=t+"";return function(){var r=this.getAttribute(i);return r===a?null:r===e?o:o=s(e=r,t)}}function Nc(i,s,t){var e,o,a=t+"";return function(){var r=this.getAttributeNS(i.space,i.local);return r===a?null:r===e?o:o=s(e=r,t)}}function Yc(i,s,t){var e,a,o;return function(){var r,h,l=t(this);return null==l?void this.removeAttribute(i):(r=this.getAttribute(i))===(h=l+"")?null:r===e&&h===a?o:(a=h,o=s(e=r,l))}}function Ic(i,s,t){var e,a,o;return function(){var r,h,l=t(this);return null==l?void this.removeAttributeNS(i.space,i.local):(r=this.getAttributeNS(i.space,i.local))===(h=l+"")?null:r===e&&h===a?o:(a=h,o=s(e=r,l))}}function $c(i,s){return function(t){this.setAttribute(i,s.call(this,t))}}function Rc(i,s){return function(t){this.setAttributeNS(i.space,i.local,s.call(this,t))}}function Jc(i,s){var t,e;function a(){var o=s.apply(this,arguments);return o!==e&&(t=(e=o)&&Rc(i,o)),t}return a._value=s,a}function zc(i,s){var t,e;function a(){var o=s.apply(this,arguments);return o!==e&&(t=(e=o)&&$c(i,o)),t}return a._value=s,a}function qc(i,s){return function(){xn(this,i).delay=+s.apply(this,arguments)}}function Wc(i,s){return s=+s,function(){xn(this,i).delay=s}}function Vc(i,s){return function(){Kt(this,i).duration=+s.apply(this,arguments)}}function Uc(i,s){return s=+s,function(){Kt(this,i).duration=s}}function Kc(i,s){if("function"!=typeof s)throw new Error;return function(){Kt(this,i).ease=s}}function oh(i,s,t){var e,a,o=function(i){return(i+"").trim().split(/^|\s+/).every(function(s){var t=s.indexOf(".");return t>=0&&(s=s.slice(0,t)),!s||"start"===s})}(s)?xn:Kt;return function(){var r=o(this,i),l=r.on;l!==e&&(a=(e=l).copy()).on(s,t),r.on=a}}var dh=Ge.prototype.constructor;function ca(i){return function(){this.style.removeProperty(i)}}function vh(i,s,t){return function(e){this.style.setProperty(i,s.call(this,e),t)}}function Th(i,s,t){var e,a;function o(){var r=s.apply(this,arguments);return r!==a&&(e=(a=r)&&vh(i,r,t)),e}return o._value=s,o}function Ah(i){return function(s){this.textContent=i.call(this,s)}}function kh(i){var s,t;function e(){var a=i.apply(this,arguments);return a!==t&&(s=(t=a)&&Ah(a)),s}return e._value=i,e}var Mh=0;function ne(i,s,t,e){this._groups=i,this._parents=s,this._name=t,this._id=e}function ha(){return++Mh}var ye=Ge.prototype;ne.prototype=function(i){return Ge().transition(i)}.prototype={constructor:ne,select:function(i){var s=this._name,t=this._id;"function"!=typeof i&&(i=nn(i));for(var e=this._groups,a=e.length,o=new Array(a),r=0;r<a;++r)for(var u,d,l=e[r],h=l.length,c=o[r]=new Array(h),g=0;g<h;++g)(u=l[g])&&(d=i.call(u,u.__data__,g,l))&&("__data__"in u&&(d.__data__=u.__data__),c[g]=d,Di(c[g],s,t,g,c,qt(u,t)));return new ne(o,this._parents,s,t)},selectAll:function(i){var s=this._name,t=this._id;"function"!=typeof i&&(i=_s(i));for(var e=this._groups,a=e.length,o=[],r=[],l=0;l<a;++l)for(var u,h=e[l],c=h.length,d=0;d<c;++d)if(u=h[d]){for(var m,g=i.call(u,u.__data__,d,h),x=qt(u,t),_=0,p=g.length;_<p;++_)(m=g[_])&&Di(m,s,t,_,g,x);o.push(g),r.push(u)}return new ne(o,r,s,t)},filter:function(i){"function"!=typeof i&&(i=vs(i));for(var s=this._groups,t=s.length,e=new Array(t),a=0;a<t;++a)for(var h,o=s[a],r=o.length,l=e[a]=[],c=0;c<r;++c)(h=o[c])&&i.call(h,h.__data__,c,o)&&l.push(h);return new ne(e,this._parents,this._name,this._id)},merge:function(i){if(i._id!==this._id)throw new Error;for(var s=this._groups,t=i._groups,e=s.length,o=Math.min(e,t.length),r=new Array(e),l=0;l<o;++l)for(var g,h=s[l],c=t[l],u=h.length,d=r[l]=new Array(u),m=0;m<u;++m)(g=h[m]||c[m])&&(d[m]=g);for(;l<e;++l)r[l]=s[l];return new ne(r,this._parents,this._name,this._id)},selection:function(){return new dh(this._groups,this._parents)},transition:function(){for(var i=this._name,s=this._id,t=ha(),e=this._groups,a=e.length,o=0;o<a;++o)for(var h,r=e[o],l=r.length,c=0;c<l;++c)if(h=r[c]){var u=qt(h,s);Di(h,i,t,c,r,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new ne(e,this._parents,i,t)},call:ye.call,nodes:ye.nodes,node:ye.node,size:ye.size,empty:ye.empty,each:ye.each,on:function(i,s){var t=this._id;return arguments.length<2?qt(this.node(),t).on.on(i):this.each(oh(t,i,s))},attr:function(i,s){var t=_i(i),e="transform"===t?Fc:la;return this.attrTween(i,"function"==typeof s?(t.local?Ic:Yc)(t,e,Tn(this,"attr."+i,s)):null==s?(t.local?Hc:Zc)(t):(t.local?Nc:Pc)(t,e,s))},attrTween:function(i,s){var t="attr."+i;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(null==s)return this.tween(t,null);if("function"!=typeof s)throw new Error;var e=_i(i);return this.tween(t,(e.local?Jc:zc)(e,s))},style:function(i,s,t){var e="transform"==(i+="")?Mc:la;return null==s?this.styleTween(i,function(i,s){var t,e,a;return function(){var o=Oe(this,i),r=(this.style.removeProperty(i),Oe(this,i));return o===r?null:o===t&&r===e?a:a=s(t=o,e=r)}}(i,e)).on("end.style."+i,ca(i)):"function"==typeof s?this.styleTween(i,function(i,s,t){var e,a,o;return function(){var r=Oe(this,i),l=t(this),h=l+"";return null==l&&(this.style.removeProperty(i),h=l=Oe(this,i)),r===h?null:r===e&&h===a?o:(a=h,o=s(e=r,l))}}(i,e,Tn(this,"style."+i,s))).each(function(i,s){var t,e,a,l,o="style."+s,r="end."+o;return function(){var h=Kt(this,i),c=h.on,u=null==h.value[o]?l||(l=ca(s)):void 0;(c!==t||a!==u)&&(e=(t=c).copy()).on(r,a=u),h.on=e}}(this._id,i)):this.styleTween(i,function(i,s,t){var e,o,a=t+"";return function(){var r=Oe(this,i);return r===a?null:r===e?o:o=s(e=r,t)}}(i,e,s),t).on("end.style."+i,null)},styleTween:function(i,s,t){var e="style."+(i+="");if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==s)return this.tween(e,null);if("function"!=typeof s)throw new Error;return this.tween(e,Th(i,s,null==t?"":t))},text:function(i){return this.tween("text","function"==typeof i?function(i){return function(){var s=i(this);this.textContent=null==s?"":s}}(Tn(this,"text",i)):function(i){return function(){this.textContent=i}}(null==i?"":i+""))},textTween:function(i){var s="text";if(arguments.length<1)return(s=this.tween(s))&&s._value;if(null==i)return this.tween(s,null);if("function"!=typeof i)throw new Error;return this.tween(s,kh(i))},remove:function(){return this.on("end.remove",(i=this._id,function(){var s=this.parentNode;for(var t in this.__transition)if(+t!==i)return;s&&s.removeChild(this)}));var i},tween:function(i,s){var t=this._id;if(i+="",arguments.length<2){for(var r,e=qt(this.node(),t).tween,a=0,o=e.length;a<o;++a)if((r=e[a]).name===i)return r.value;return null}return this.each((null==s?Oc:Ec)(t,i,s))},delay:function(i){var s=this._id;return arguments.length?this.each(("function"==typeof i?qc:Wc)(s,i)):qt(this.node(),s).delay},duration:function(i){var s=this._id;return arguments.length?this.each(("function"==typeof i?Vc:Uc)(s,i)):qt(this.node(),s).duration},ease:function(i){var s=this._id;return arguments.length?this.each(Kc(s,i)):qt(this.node(),s).ease},easeVarying:function(i){if("function"!=typeof i)throw new Error;return this.each(function(i,s){return function(){var t=s.apply(this,arguments);if("function"!=typeof t)throw new Error;Kt(this,i).ease=t}}(this._id,i))},end:function(){var i,s,t=this,e=t._id,a=t.size();return new Promise(function(o,r){var l={value:r},h={value:function(){0==--a&&o()}};t.each(function(){var c=Kt(this,e),u=c.on;u!==i&&((s=(i=u).copy())._.cancel.push(l),s._.interrupt.push(l),s._.end.push(h)),c.on=s}),0===a&&o()})},[Symbol.iterator]:ye[Symbol.iterator]};var Eh={time:null,delay:0,duration:250,ease:function(i){return((i*=2)<=1?i*i*i:(i-=2)*i*i+2)/2}};function Bh(i,s){for(var t;!(t=i.__transition)||!(t=t[s]);)if(!(i=i.parentNode))throw new Error(`transition ${s} not found`);return t}Ge.prototype.interrupt=function(i){return this.each(function(){_n(this,i)})},Ge.prototype.transition=function(i){var s,t;i instanceof ne?(s=i._id,i=i._name):(s=ha(),(t=Eh).time=gn(),i=null==i?null:i+"");for(var e=this._groups,a=e.length,o=0;o<a;++o)for(var h,r=e[o],l=r.length,c=0;c<l;++c)(h=r[c])&&Di(h,i,s,c,r,t||Bh(h,s));return new ne(e,this._parents,i,s)};const yn=i=>()=>i;function Ph(i,{sourceEvent:s,target:t,selection:e,mode:a,dispatch:o}){Object.defineProperties(this,{type:{value:i,enumerable:!0,configurable:!0},sourceEvent:{value:s,enumerable:!0,configurable:!0},target:{value:t,enumerable:!0,configurable:!0},selection:{value:e,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:o}})}function Nh(i){i.stopImmediatePropagation()}function bn(i){i.preventDefault(),i.stopImmediatePropagation()}var ua={name:"drag"},Cn={name:"space"},Ze={name:"handle"},He={name:"center"};const{abs:da,max:wt,min:At}=Math;function ga(i){return[+i[0],+i[1]]}function wn(i){return[ga(i[0]),ga(i[1])]}var Fi={name:"x",handles:["w","e"].map(ei),input:function(i,s){return null==i?null:[[+i[0],s[0][1]],[+i[1],s[1][1]]]},output:function(i){return i&&[i[0][0],i[1][0]]}},Oi={name:"y",handles:["n","s"].map(ei),input:function(i,s){return null==i?null:[[s[0][0],+i[0]],[s[1][0],+i[1]]]},output:function(i){return i&&[i[0][1],i[1][1]]}},se=(["n","w","e","s","nw","ne","sw","se"].map(ei),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),ma={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},pa={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Ih={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Xh={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ei(i){return{type:i}}function $h(i){return!i.ctrlKey&&!i.button}function Rh(){var i=this.ownerSVGElement||this;return i.hasAttribute("viewBox")?[[(i=i.viewBox.baseVal).x,i.y],[i.x+i.width,i.y+i.height]]:[[0,0],[i.width.baseVal.value,i.height.baseVal.value]]}function Jh(){return navigator.maxTouchPoints||"ontouchstart"in this}function An(i){for(;!i.__brush;)if(!(i=i.parentNode))return;return i.__brush}function zh(i){return i[0][0]===i[1][0]||i[0][1]===i[1][1]}function Ei(i,s){return i<s?-1:i>s?1:i>=s?0:NaN}function Ln(i){let s=i,t=i;function e(r,l,h,c){for(null==h&&(h=0),null==c&&(c=r.length);h<c;){const u=h+c>>>1;t(r[u],l)<0?h=u+1:c=u}return h}return 1===i.length&&(s=(r,l)=>i(r)-l,t=function(i){return(s,t)=>Ei(i(s),t)}(i)),{left:e,center:function(r,l,h,c){null==h&&(h=0),null==c&&(c=r.length);const u=e(r,l,h,c-1);return u>h&&s(r[u-1],l)>-s(r[u],l)?u-1:u},right:function(r,l,h,c){for(null==h&&(h=0),null==c&&(c=r.length);h<c;){const u=h+c>>>1;t(r[u],l)>0?c=u:h=u+1}return h}}}var Sn=Math.sqrt(50),Dn=Math.sqrt(10),Mn=Math.sqrt(2);function fa(i,s,t){var e=(s-i)/Math.max(0,t),a=Math.floor(Math.log(e)/Math.LN10),o=e/Math.pow(10,a);return a>=0?(o>=Sn?10:o>=Dn?5:o>=Mn?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(o>=Sn?10:o>=Dn?5:o>=Mn?2:1)}function Fn(i,s,t){var e=Math.abs(s-i)/Math.max(0,t),a=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),o=e/a;return o>=Sn?a*=10:o>=Dn?a*=5:o>=Mn&&(a*=2),s<i?-a:a}const ae=1e3,Rt=6e4,oe=60*Rt,be=24*oe,On=7*be,xa=30*be,En=365*be;var Bn=new Date,Zn=new Date;function vt(i,s,t,e){function a(o){return i(o=0===arguments.length?new Date:new Date(+o)),o}return a.floor=function(o){return i(o=new Date(+o)),o},a.ceil=function(o){return i(o=new Date(o-1)),s(o,1),i(o),o},a.round=function(o){var r=a(o),l=a.ceil(o);return o-r<l-o?r:l},a.offset=function(o,r){return s(o=new Date(+o),null==r?1:Math.floor(r)),o},a.range=function(o,r,l){var c,h=[];if(o=a.ceil(o),l=null==l?1:Math.floor(l),!(o<r&&l>0))return h;do{h.push(c=new Date(+o)),s(o,l),i(o)}while(c<o&&o<r);return h},a.filter=function(o){return vt(function(r){if(r>=r)for(;i(r),!o(r);)r.setTime(r-1)},function(r,l){if(r>=r)if(l<0)for(;++l<=0;)for(;s(r,-1),!o(r););else for(;--l>=0;)for(;s(r,1),!o(r););})},t&&(a.count=function(o,r){return Bn.setTime(+o),Zn.setTime(+r),i(Bn),i(Zn),Math.floor(t(Bn,Zn))},a.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?a.filter(e?function(r){return e(r)%o==0}:function(r){return a.count(0,r)%o==0}):a:null}),a}var Bi=vt(function(){},function(i,s){i.setTime(+i+s)},function(i,s){return s-i});Bi.every=function(i){return i=Math.floor(i),isFinite(i)&&i>0?i>1?vt(function(s){s.setTime(Math.floor(s/i)*i)},function(s,t){s.setTime(+s+t*i)},function(s,t){return(t-s)/i}):Bi:null};const Qh=Bi;const ii=vt(function(i){i.setTime(i-i.getMilliseconds())},function(i,s){i.setTime(+i+s*ae)},function(i,s){return(s-i)/ae},function(i){return i.getUTCSeconds()});const Ta=vt(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*ae)},function(i,s){i.setTime(+i+s*Rt)},function(i,s){return(s-i)/Rt},function(i){return i.getMinutes()});const ba=vt(function(i){i.setTime(i-i.getMilliseconds()-i.getSeconds()*ae-i.getMinutes()*Rt)},function(i,s){i.setTime(+i+s*oe)},function(i,s){return(s-i)/oe},function(i){return i.getHours()});const Zi=vt(i=>i.setHours(0,0,0,0),(i,s)=>i.setDate(i.getDate()+s),(i,s)=>(s-i-(s.getTimezoneOffset()-i.getTimezoneOffset())*Rt)/be,i=>i.getDate()-1);function Ce(i){return vt(function(s){s.setDate(s.getDate()-(s.getDay()+7-i)%7),s.setHours(0,0,0,0)},function(s,t){s.setDate(s.getDate()+7*t)},function(s,t){return(t-s-(t.getTimezoneOffset()-s.getTimezoneOffset())*Rt)/On})}var Hi=Ce(0),Pi=Ce(1),Pe=(Ce(2),Ce(3),Ce(4));const Aa=(Ce(5),Ce(6),vt(function(i){i.setDate(1),i.setHours(0,0,0,0)},function(i,s){i.setMonth(i.getMonth()+s)},function(i,s){return s.getMonth()-i.getMonth()+12*(s.getFullYear()-i.getFullYear())},function(i){return i.getMonth()}));var Hn=vt(function(i){i.setMonth(0,1),i.setHours(0,0,0,0)},function(i,s){i.setFullYear(i.getFullYear()+s)},function(i,s){return s.getFullYear()-i.getFullYear()},function(i){return i.getFullYear()});Hn.every=function(i){return isFinite(i=Math.floor(i))&&i>0?vt(function(s){s.setFullYear(Math.floor(s.getFullYear()/i)*i),s.setMonth(0,1),s.setHours(0,0,0,0)},function(s,t){s.setFullYear(s.getFullYear()+t*i)}):null};const we=Hn;const tu=vt(function(i){i.setUTCSeconds(0,0)},function(i,s){i.setTime(+i+s*Rt)},function(i,s){return(s-i)/Rt},function(i){return i.getUTCMinutes()});const eu=vt(function(i){i.setUTCMinutes(0,0,0)},function(i,s){i.setTime(+i+s*oe)},function(i,s){return(s-i)/oe},function(i){return i.getUTCHours()});const Pn=vt(function(i){i.setUTCHours(0,0,0,0)},function(i,s){i.setUTCDate(i.getUTCDate()+s)},function(i,s){return(s-i)/be},function(i){return i.getUTCDate()-1});function Ae(i){return vt(function(s){s.setUTCDate(s.getUTCDate()-(s.getUTCDay()+7-i)%7),s.setUTCHours(0,0,0,0)},function(s,t){s.setUTCDate(s.getUTCDate()+7*t)},function(s,t){return(t-s)/On})}var Nn=Ae(0),Ni=Ae(1),Ne=(Ae(2),Ae(3),Ae(4));const ou=(Ae(5),Ae(6),vt(function(i){i.setUTCDate(1),i.setUTCHours(0,0,0,0)},function(i,s){i.setUTCMonth(i.getUTCMonth()+s)},function(i,s){return s.getUTCMonth()-i.getUTCMonth()+12*(s.getUTCFullYear()-i.getUTCFullYear())},function(i){return i.getUTCMonth()}));var Yn=vt(function(i){i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0)},function(i,s){i.setUTCFullYear(i.getUTCFullYear()+s)},function(i,s){return s.getUTCFullYear()-i.getUTCFullYear()},function(i){return i.getUTCFullYear()});Yn.every=function(i){return isFinite(i=Math.floor(i))&&i>0?vt(function(s){s.setUTCFullYear(Math.floor(s.getUTCFullYear()/i)*i),s.setUTCMonth(0,1),s.setUTCHours(0,0,0,0)},function(s,t){s.setUTCFullYear(s.getUTCFullYear()+t*i)}):null};const Ye=Yn;function Ma(i,s,t,e,a,o){const r=[[ii,1,ae],[ii,5,5e3],[ii,15,15e3],[ii,30,3e4],[o,1,Rt],[o,5,5*Rt],[o,15,15*Rt],[o,30,30*Rt],[a,1,oe],[a,3,3*oe],[a,6,6*oe],[a,12,12*oe],[e,1,be],[e,2,2*be],[t,1,On],[s,1,xa],[s,3,3*xa],[i,1,En]];function h(c,u,d){const g=Math.abs(u-c)/d,m=Ln(([,,p])=>p).right(r,g);if(m===r.length)return i.every(Fn(c/En,u/En,d));if(0===m)return Qh.every(Math.max(Fn(c,u,d),1));const[x,_]=r[g/r[m-1][2]<r[m][2]/g?m-1:m];return x.every(_)}return[function(c,u,d){const g=u<c;g&&([c,u]=[u,c]);const m=d&&"function"==typeof d.range?d:h(c,u,d),x=m?m.range(c,+u+1):[];return g?x.reverse():x},h]}const[$_,R_]=Ma(Ye,ou,Nn,Pn,eu,tu),[ru,lu]=Ma(we,Aa,Hi,Zi,ba,Ta);function In(i){if(0<=i.y&&i.y<100){var s=new Date(-1,i.m,i.d,i.H,i.M,i.S,i.L);return s.setFullYear(i.y),s}return new Date(i.y,i.m,i.d,i.H,i.M,i.S,i.L)}function Xn(i){if(0<=i.y&&i.y<100){var s=new Date(Date.UTC(-1,i.m,i.d,i.H,i.M,i.S,i.L));return s.setUTCFullYear(i.y),s}return new Date(Date.UTC(i.y,i.m,i.d,i.H,i.M,i.S,i.L))}function ni(i,s,t){return{y:i,m:s,d:t,H:0,M:0,S:0,L:0}}var Ie,za,Fa={"-":"",_:" ",0:"0"},Tt=/^\s*\d+/,hu=/^%/,uu=/[\\^$*+?|[\]().{}]/g;function R(i,s,t){var e=i<0?"-":"",a=(e?-i:i)+"",o=a.length;return e+(o<t?new Array(t-o+1).join(s)+a:a)}function du(i){return i.replace(uu,"\\$&")}function si(i){return new RegExp("^(?:"+i.map(du).join("|")+")","i")}function ai(i){return new Map(i.map((s,t)=>[s.toLowerCase(),t]))}function gu(i,s,t){var e=Tt.exec(s.slice(t,t+1));return e?(i.w=+e[0],t+e[0].length):-1}function mu(i,s,t){var e=Tt.exec(s.slice(t,t+1));return e?(i.u=+e[0],t+e[0].length):-1}function pu(i,s,t){var e=Tt.exec(s.slice(t,t+2));return e?(i.U=+e[0],t+e[0].length):-1}function fu(i,s,t){var e=Tt.exec(s.slice(t,t+2));return e?(i.V=+e[0],t+e[0].length):-1}function xu(i,s,t){var e=Tt.exec(s.slice(t,t+2));return e?(i.W=+e[0],t+e[0].length):-1}function Oa(i,s,t){var e=Tt.exec(s.slice(t,t+4));return e?(i.y=+e[0],t+e[0].length):-1}function Ea(i,s,t){var e=Tt.exec(s.slice(t,t+2));return e?(i.y=+e[0]+(+e[0]>68?1900:2e3),t+e[0].length):-1}function _u(i,s,t){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(s.slice(t,t+6));return e?(i.Z=e[1]?0:-(e[2]+(e[3]||"00")),t+e[0].length):-1}function vu(i,s,t){var e=Tt.exec(s.slice(t,t+1));return e?(i.q=3*e[0]-3,t+e[0].length):-1}function Tu(i,s,t){var e=Tt.exec(s.slice(t,t+2));return e?(i.m=e[0]-1,t+e[0].length):-1}function Ba(i,s,t){var e=Tt.exec(s.slice(t,t+2));return e?(i.d=+e[0],t+e[0].length):-1}function yu(i,s,t){var e=Tt.exec(s.slice(t,t+3));return e?(i.m=0,i.d=+e[0],t+e[0].length):-1}function Za(i,s,t){var e=Tt.exec(s.slice(t,t+2));return e?(i.H=+e[0],t+e[0].length):-1}function bu(i,s,t){var e=Tt.exec(s.slice(t,t+2));return e?(i.M=+e[0],t+e[0].length):-1}function Cu(i,s,t){var e=Tt.exec(s.slice(t,t+2));return e?(i.S=+e[0],t+e[0].length):-1}function wu(i,s,t){var e=Tt.exec(s.slice(t,t+3));return e?(i.L=+e[0],t+e[0].length):-1}function Au(i,s,t){var e=Tt.exec(s.slice(t,t+6));return e?(i.L=Math.floor(e[0]/1e3),t+e[0].length):-1}function ku(i,s,t){var e=hu.exec(s.slice(t,t+1));return e?t+e[0].length:-1}function Lu(i,s,t){var e=Tt.exec(s.slice(t));return e?(i.Q=+e[0],t+e[0].length):-1}function Su(i,s,t){var e=Tt.exec(s.slice(t));return e?(i.s=+e[0],t+e[0].length):-1}function Ha(i,s){return R(i.getDate(),s,2)}function Du(i,s){return R(i.getHours(),s,2)}function Mu(i,s){return R(i.getHours()%12||12,s,2)}function Fu(i,s){return R(1+Zi.count(we(i),i),s,3)}function Pa(i,s){return R(i.getMilliseconds(),s,3)}function Ou(i,s){return Pa(i,s)+"000"}function Eu(i,s){return R(i.getMonth()+1,s,2)}function Bu(i,s){return R(i.getMinutes(),s,2)}function Zu(i,s){return R(i.getSeconds(),s,2)}function Hu(i){var s=i.getDay();return 0===s?7:s}function Pu(i,s){return R(Hi.count(we(i)-1,i),s,2)}function Na(i){var s=i.getDay();return s>=4||0===s?Pe(i):Pe.ceil(i)}function Nu(i,s){return i=Na(i),R(Pe.count(we(i),i)+(4===we(i).getDay()),s,2)}function Yu(i){return i.getDay()}function Iu(i,s){return R(Pi.count(we(i)-1,i),s,2)}function Xu(i,s){return R(i.getFullYear()%100,s,2)}function $u(i,s){return R((i=Na(i)).getFullYear()%100,s,2)}function Ru(i,s){return R(i.getFullYear()%1e4,s,4)}function Ju(i,s){var t=i.getDay();return R((i=t>=4||0===t?Pe(i):Pe.ceil(i)).getFullYear()%1e4,s,4)}function zu(i){var s=i.getTimezoneOffset();return(s>0?"-":(s*=-1,"+"))+R(s/60|0,"0",2)+R(s%60,"0",2)}function Ya(i,s){return R(i.getUTCDate(),s,2)}function Gu(i,s){return R(i.getUTCHours(),s,2)}function qu(i,s){return R(i.getUTCHours()%12||12,s,2)}function Wu(i,s){return R(1+Pn.count(Ye(i),i),s,3)}function Ia(i,s){return R(i.getUTCMilliseconds(),s,3)}function Qu(i,s){return Ia(i,s)+"000"}function Vu(i,s){return R(i.getUTCMonth()+1,s,2)}function Uu(i,s){return R(i.getUTCMinutes(),s,2)}function ju(i,s){return R(i.getUTCSeconds(),s,2)}function Ku(i){var s=i.getUTCDay();return 0===s?7:s}function td(i,s){return R(Nn.count(Ye(i)-1,i),s,2)}function Xa(i){var s=i.getUTCDay();return s>=4||0===s?Ne(i):Ne.ceil(i)}function ed(i,s){return i=Xa(i),R(Ne.count(Ye(i),i)+(4===Ye(i).getUTCDay()),s,2)}function id(i){return i.getUTCDay()}function nd(i,s){return R(Ni.count(Ye(i)-1,i),s,2)}function sd(i,s){return R(i.getUTCFullYear()%100,s,2)}function ad(i,s){return R((i=Xa(i)).getUTCFullYear()%100,s,2)}function od(i,s){return R(i.getUTCFullYear()%1e4,s,4)}function rd(i,s){var t=i.getUTCDay();return R((i=t>=4||0===t?Ne(i):Ne.ceil(i)).getUTCFullYear()%1e4,s,4)}function ld(){return"+0000"}function $a(){return"%"}function Ra(i){return+i}function Ja(i){return Math.floor(+i/1e3)}function Ga(i){return null===i?NaN:+i}Ie=function(i){var s=i.dateTime,t=i.date,e=i.time,a=i.periods,o=i.days,r=i.shortDays,l=i.months,h=i.shortMonths,c=si(a),u=ai(a),d=si(o),g=ai(o),m=si(r),x=ai(r),_=si(l),p=ai(l),y=si(h),w=ai(h),C={a:function(L){return r[L.getDay()]},A:function(L){return o[L.getDay()]},b:function(L){return h[L.getMonth()]},B:function(L){return l[L.getMonth()]},c:null,d:Ha,e:Ha,f:Ou,g:$u,G:Ju,H:Du,I:Mu,j:Fu,L:Pa,m:Eu,M:Bu,p:function(L){return a[+(L.getHours()>=12)]},q:function(L){return 1+~~(L.getMonth()/3)},Q:Ra,s:Ja,S:Zu,u:Hu,U:Pu,V:Nu,w:Yu,W:Iu,x:null,X:null,y:Xu,Y:Ru,Z:zu,"%":$a},S={a:function(L){return r[L.getUTCDay()]},A:function(L){return o[L.getUTCDay()]},b:function(L){return h[L.getUTCMonth()]},B:function(L){return l[L.getUTCMonth()]},c:null,d:Ya,e:Ya,f:Qu,g:ad,G:rd,H:Gu,I:qu,j:Wu,L:Ia,m:Vu,M:Uu,p:function(L){return a[+(L.getUTCHours()>=12)]},q:function(L){return 1+~~(L.getUTCMonth()/3)},Q:Ra,s:Ja,S:ju,u:Ku,U:td,V:ed,w:id,W:nd,x:null,X:null,y:sd,Y:od,Z:ld,"%":$a},D={a:function(L,B,N){var b=m.exec(B.slice(N));return b?(L.w=x.get(b[0].toLowerCase()),N+b[0].length):-1},A:function(L,B,N){var b=d.exec(B.slice(N));return b?(L.w=g.get(b[0].toLowerCase()),N+b[0].length):-1},b:function(L,B,N){var b=y.exec(B.slice(N));return b?(L.m=w.get(b[0].toLowerCase()),N+b[0].length):-1},B:function(L,B,N){var b=_.exec(B.slice(N));return b?(L.m=p.get(b[0].toLowerCase()),N+b[0].length):-1},c:function(L,B,N){return H(L,s,B,N)},d:Ba,e:Ba,f:Au,g:Ea,G:Oa,H:Za,I:Za,j:yu,L:wu,m:Tu,M:bu,p:function(L,B,N){var b=c.exec(B.slice(N));return b?(L.p=u.get(b[0].toLowerCase()),N+b[0].length):-1},q:vu,Q:Lu,s:Su,S:Cu,u:mu,U:pu,V:fu,w:gu,W:xu,x:function(L,B,N){return H(L,t,B,N)},X:function(L,B,N){return H(L,e,B,N)},y:Ea,Y:Oa,Z:_u,"%":ku};function k(L,B){return function(N){var Bt,Z,ht,b=[],ct=-1,W=0,Et=L.length;for(N instanceof Date||(N=new Date(+N));++ct<Et;)37===L.charCodeAt(ct)&&(b.push(L.slice(W,ct)),null!=(Z=Fa[Bt=L.charAt(++ct)])?Bt=L.charAt(++ct):Z="e"===Bt?" ":"0",(ht=B[Bt])&&(Bt=ht(N,Z)),b.push(Bt),W=ct+1);return b.push(L.slice(W,ct)),b.join("")}}function J(L,B){return function(N){var W,Et,b=ni(1900,void 0,1);if(H(b,L,N+="",0)!=N.length)return null;if("Q"in b)return new Date(b.Q);if("s"in b)return new Date(1e3*b.s+("L"in b?b.L:0));if(B&&!("Z"in b)&&(b.Z=0),"p"in b&&(b.H=b.H%12+12*b.p),void 0===b.m&&(b.m="q"in b?b.q:0),"V"in b){if(b.V<1||b.V>53)return null;"w"in b||(b.w=1),"Z"in b?(Et=(W=Xn(ni(b.y,0,1))).getUTCDay(),W=Et>4||0===Et?Ni.ceil(W):Ni(W),W=Pn.offset(W,7*(b.V-1)),b.y=W.getUTCFullYear(),b.m=W.getUTCMonth(),b.d=W.getUTCDate()+(b.w+6)%7):(Et=(W=In(ni(b.y,0,1))).getDay(),W=Et>4||0===Et?Pi.ceil(W):Pi(W),W=Zi.offset(W,7*(b.V-1)),b.y=W.getFullYear(),b.m=W.getMonth(),b.d=W.getDate()+(b.w+6)%7)}else("W"in b||"U"in b)&&("w"in b||(b.w="u"in b?b.u%7:"W"in b?1:0),Et="Z"in b?Xn(ni(b.y,0,1)).getUTCDay():In(ni(b.y,0,1)).getDay(),b.m=0,b.d="W"in b?(b.w+6)%7+7*b.W-(Et+5)%7:b.w+7*b.U-(Et+6)%7);return"Z"in b?(b.H+=b.Z/100|0,b.M+=b.Z%100,Xn(b)):In(b)}}function H(L,B,N,b){for(var Bt,Z,ct=0,W=B.length,Et=N.length;ct<W;){if(b>=Et)return-1;if(37===(Bt=B.charCodeAt(ct++))){if(Bt=B.charAt(ct++),!(Z=D[Bt in Fa?B.charAt(ct++):Bt])||(b=Z(L,N,b))<0)return-1}else if(Bt!=N.charCodeAt(b++))return-1}return b}return C.x=k(t,C),C.X=k(e,C),C.c=k(s,C),S.x=k(t,S),S.X=k(e,S),S.c=k(s,S),{format:function(L){var B=k(L+="",C);return B.toString=function(){return L},B},parse:function(L){var B=J(L+="",!1);return B.toString=function(){return L},B},utcFormat:function(L){var B=k(L+="",S);return B.toString=function(){return L},B},utcParse:function(L){var B=J(L+="",!0);return B.toString=function(){return L},B}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}),za=Ie.format;const md=Ln(Ei).right,Wa=(Ln(Ga),md);function pd(i,s){return i=+i,s=+s,function(t){return Math.round(i*(1-t)+s*t)}}function xd(i){return+i}var Qa=[0,1];function Xe(i){return i}function $n(i,s){return(s-=i=+i)?function(t){return(t-i)/s}:function(i){return function(){return i}}(isNaN(s)?NaN:.5)}function vd(i,s,t){var e=i[0],a=i[1],o=s[0],r=s[1];return a<e?(e=$n(a,e),o=t(r,o)):(e=$n(e,a),o=t(o,r)),function(l){return o(e(l))}}function Td(i,s,t){var e=Math.min(i.length,s.length)-1,a=new Array(e),o=new Array(e),r=-1;for(i[e]<i[0]&&(i=i.slice().reverse(),s=s.slice().reverse());++r<e;)a[r]=$n(i[r],i[r+1]),o[r]=t(s[r],s[r+1]);return function(l){var h=Wa(i,l,1,e)-1;return o[h](a[h](l))}}function Va(i,s){return s.domain(i.domain()).range(i.range()).interpolate(i.interpolate()).clamp(i.clamp()).unknown(i.unknown())}function Ua(){return function(){var e,a,o,l,h,c,i=Qa,s=Qa,t=he,r=Xe;function u(){var g=Math.min(i.length,s.length);return r!==Xe&&(r=function(i,s){var t;return i>s&&(t=i,i=s,s=t),function(e){return Math.max(i,Math.min(s,e))}}(i[0],i[g-1])),l=g>2?Td:vd,h=c=null,d}function d(g){return null==g||isNaN(g=+g)?o:(h||(h=l(i.map(e),s,t)))(e(r(g)))}return d.invert=function(g){return r(a((c||(c=l(s,i.map(e),Gt)))(g)))},d.domain=function(g){return arguments.length?(i=Array.from(g,xd),u()):i.slice()},d.range=function(g){return arguments.length?(s=Array.from(g),u()):s.slice()},d.rangeRound=function(g){return s=Array.from(g),t=pd,u()},d.clamp=function(g){return arguments.length?(r=!!g||Xe,u()):r!==Xe},d.interpolate=function(g){return arguments.length?(t=g,u()):t},d.unknown=function(g){return arguments.length?(o=g,d):o},function(g,m){return e=g,a=m,u()}}()(Xe,Xe)}function oi(i,s){switch(arguments.length){case 0:break;case 1:this.range(i);break;default:this.range(s).domain(i)}return this}function Cd(i){return new Date(i)}function wd(i){return i instanceof Date?+i:+new Date(+i)}function ja(i,s,t,e,a,o,r,l,h,c){var u=Ua(),d=u.invert,g=u.domain,m=c(".%L"),x=c(":%S"),_=c("%I:%M"),p=c("%I %p"),y=c("%a %d"),w=c("%b %d"),C=c("%B"),S=c("%Y");function D(k){return(h(k)<k?m:l(k)<k?x:r(k)<k?_:o(k)<k?p:e(k)<k?a(k)<k?y:w:t(k)<k?C:S)(k)}return u.invert=function(k){return new Date(d(k))},u.domain=function(k){return arguments.length?g(Array.from(k,wd)):g().map(Cd)},u.ticks=function(k){var J=g();return i(J[0],J[J.length-1],null==k?10:k)},u.tickFormat=function(k,J){return null==J?D:c(J)},u.nice=function(k){var J=g();return(!k||"function"!=typeof k.range)&&(k=s(J[0],J[J.length-1],null==k?10:k)),k?g(function(i,s){var r,t=0,e=(i=i.slice()).length-1,a=i[t],o=i[e];return o<a&&(r=t,t=e,e=r,r=a,a=o,o=r),i[t]=s.floor(a),i[e]=s.ceil(o),i}(J,k)):u},u.copy=function(){return Va(u,ja(i,s,t,e,a,o,r,l,h,c))},u}function ke(){return oi.apply(ja(ru,lu,we,Aa,Hi,Zi,ba,Ta,ii,za).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Ka,Ad=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Yi(i){if(!(s=Ad.exec(i)))throw new Error("invalid format: "+i);var s;return new Rn({fill:s[1],align:s[2],sign:s[3],symbol:s[4],zero:s[5],width:s[6],comma:s[7],precision:s[8]&&s[8].slice(1),trim:s[9],type:s[10]})}function Rn(i){this.fill=void 0===i.fill?" ":i.fill+"",this.align=void 0===i.align?">":i.align+"",this.sign=void 0===i.sign?"-":i.sign+"",this.symbol=void 0===i.symbol?"":i.symbol+"",this.zero=!!i.zero,this.width=void 0===i.width?void 0:+i.width,this.comma=!!i.comma,this.precision=void 0===i.precision?void 0:+i.precision,this.trim=!!i.trim,this.type=void 0===i.type?"":i.type+""}function Ii(i,s){if((t=(i=s?i.toExponential(s-1):i.toExponential()).indexOf("e"))<0)return null;var t,e=i.slice(0,t);return[e.length>1?e[0]+e.slice(2):e,+i.slice(t+1)]}function $e(i){return(i=Ii(Math.abs(i)))?i[1]:NaN}function to(i,s){var t=Ii(i,s);if(!t)return i+"";var e=t[0],a=t[1];return a<0?"0."+new Array(-a).join("0")+e:e.length>a+1?e.slice(0,a+1)+"."+e.slice(a+1):e+new Array(a-e.length+2).join("0")}Yi.prototype=Rn.prototype,Rn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const eo={"%":(i,s)=>(100*i).toFixed(s),b:i=>Math.round(i).toString(2),c:i=>i+"",d:function(i){return Math.abs(i=Math.round(i))>=1e21?i.toLocaleString("en").replace(/,/g,""):i.toString(10)},e:(i,s)=>i.toExponential(s),f:(i,s)=>i.toFixed(s),g:(i,s)=>i.toPrecision(s),o:i=>Math.round(i).toString(8),p:(i,s)=>to(100*i,s),r:to,s:function(i,s){var t=Ii(i,s);if(!t)return i+"";var e=t[0],a=t[1],o=a-(Ka=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,r=e.length;return o===r?e:o>r?e+new Array(o-r+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+Ii(i,Math.max(0,s+o-1))[0]},X:i=>Math.round(i).toString(16).toUpperCase(),x:i=>Math.round(i).toString(16)};function io(i){return i}var Xi,Jn,ao,no=Array.prototype.map,so=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Pd(i){var s=i.domain;return i.ticks=function(t){var e=s();return function(i,s,t){var e,o,r,l,a=-1;if(t=+t,(i=+i)==(s=+s)&&t>0)return[i];if((e=s<i)&&(o=i,i=s,s=o),0===(l=fa(i,s,t))||!isFinite(l))return[];if(l>0){let h=Math.round(i/l),c=Math.round(s/l);for(h*l<i&&++h,c*l>s&&--c,r=new Array(o=c-h+1);++a<o;)r[a]=(h+a)*l}else{l=-l;let h=Math.round(i*l),c=Math.round(s*l);for(h/l<i&&++h,c/l>s&&--c,r=new Array(o=c-h+1);++a<o;)r[a]=(h+a)/l}return e&&r.reverse(),r}(e[0],e[e.length-1],null==t?10:t)},i.tickFormat=function(t,e){var a=s();return function(i,s,t,e){var o,a=Fn(i,s,t);switch((e=Yi(null==e?",f":e)).type){case"s":var r=Math.max(Math.abs(i),Math.abs(s));return null==e.precision&&!isNaN(o=function(i,s){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor($e(s)/3)))-$e(Math.abs(i)))}(a,r))&&(e.precision=o),ao(e,r);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(o=function(i,s){return i=Math.abs(i),s=Math.abs(s)-i,Math.max(0,$e(s)-$e(i))+1}(a,Math.max(Math.abs(i),Math.abs(s))))&&(e.precision=o-("e"===e.type));break;case"f":case"%":null==e.precision&&!isNaN(o=function(i){return Math.max(0,-$e(Math.abs(i)))}(a))&&(e.precision=o-2*("%"===e.type))}return Jn(e)}(a[0],a[a.length-1],null==t?10:t,e)},i.nice=function(t){null==t&&(t=10);var h,c,e=s(),a=0,o=e.length-1,r=e[a],l=e[o],u=10;for(l<r&&(c=r,r=l,l=c,c=a,a=o,o=c);u-- >0;){if((c=fa(r,l,t))===h)return e[a]=r,e[o]=l,s(e);if(c>0)r=Math.floor(r/c)*c,l=Math.ceil(l/c)*c;else{if(!(c<0))break;r=Math.ceil(r*c)/c,l=Math.floor(l*c)/c}h=c}return i},i}function Q(){var i=Ua();return i.copy=function(){return Va(i,Q())},oi.apply(i,arguments),Pd(i)}function oo(i,s,t){i=+i,s=+s,t=(a=arguments.length)<2?(s=i,i=0,1):a<3?1:+t;for(var e=-1,a=0|Math.max(0,Math.ceil((s-i)/t)),o=new Array(a);++e<a;)o[e]=i+e*t;return o}Xi=function(i){var s=void 0===i.grouping||void 0===i.thousands?io:function(i,s){return function(t,e){for(var a=t.length,o=[],r=0,l=i[0],h=0;a>0&&l>0&&(h+l+1>e&&(l=Math.max(1,e-h)),o.push(t.substring(a-=l,a+l)),!((h+=l+1)>e));)l=i[r=(r+1)%i.length];return o.reverse().join(s)}}(no.call(i.grouping,Number),i.thousands+""),t=void 0===i.currency?"":i.currency[0]+"",e=void 0===i.currency?"":i.currency[1]+"",a=void 0===i.decimal?".":i.decimal+"",o=void 0===i.numerals?io:function(i){return function(s){return s.replace(/[0-9]/g,function(t){return i[+t]})}}(no.call(i.numerals,String)),r=void 0===i.percent?"%":i.percent+"",l=void 0===i.minus?"\u2212":i.minus+"",h=void 0===i.nan?"NaN":i.nan+"";function c(d){var g=(d=Yi(d)).fill,m=d.align,x=d.sign,_=d.symbol,p=d.zero,y=d.width,w=d.comma,C=d.precision,S=d.trim,D=d.type;"n"===D?(w=!0,D="g"):eo[D]||(void 0===C&&(C=12),S=!0,D="g"),(p||"0"===g&&"="===m)&&(p=!0,g="0",m="=");var k="$"===_?t:"#"===_&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",J="$"===_?e:/[%p]/.test(D)?r:"",H=eo[D],V=/[defgprs%]/.test(D);function Y(M){var I,mt,G,O=k,F=J;if("c"===D)F=H(M)+F,M="";else{var q=(M=+M)<0||1/M<0;if(M=isNaN(M)?h:H(Math.abs(M),C),S&&(M=function(i){t:for(var a,s=i.length,t=1,e=-1;t<s;++t)switch(i[t]){case".":e=a=t;break;case"0":0===e&&(e=t),a=t;break;default:if(!+i[t])break t;e>0&&(e=0)}return e>0?i.slice(0,e)+i.slice(a+1):i}(M)),q&&0==+M&&"+"!==x&&(q=!1),O=(q?"("===x?x:l:"-"===x||"("===x?"":x)+O,F=("s"===D?so[8+Ka/3]:"")+F+(q&&"("===x?")":""),V)for(I=-1,mt=M.length;++I<mt;)if(48>(G=M.charCodeAt(I))||G>57){F=(46===G?a+M.slice(I+1):M.slice(I))+F,M=M.slice(0,I);break}}w&&!p&&(M=s(M,1/0));var xt=O.length+M.length+F.length,X=xt<y?new Array(y-xt+1).join(g):"";switch(w&&p&&(M=s(X+M,X.length?y-F.length:1/0),X=""),m){case"<":M=O+M+F+X;break;case"=":M=O+X+M+F;break;case"^":M=X.slice(0,xt=X.length>>1)+O+M+F+X.slice(xt);break;default:M=X+O+M+F}return o(M)}return C=void 0===C?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C)),Y.toString=function(){return d+""},Y}return{format:c,formatPrefix:function(d,g){var m=c(((d=Yi(d)).type="f",d)),x=3*Math.max(-8,Math.min(8,Math.floor($e(g)/3))),_=Math.pow(10,-x),p=so[8+x/3];return function(y){return m(_*y)+p}}}}({thousands:",",grouping:[3],currency:["$",""]}),Jn=Xi.format,ao=Xi.formatPrefix;const ro=Symbol("implicit");function zn(){var i=new Map,s=[],t=[],e=ro;function a(o){var r=o+"",l=i.get(r);if(!l){if(e!==ro)return e;i.set(r,l=s.push(o))}return t[(l-1)%t.length]}return a.domain=function(o){if(!arguments.length)return s.slice();s=[],i=new Map;for(const r of o){const l=r+"";i.has(l)||i.set(l,s.push(r))}return a},a.range=function(o){return arguments.length?(t=Array.from(o),a):t.slice()},a.unknown=function(o){return arguments.length?(e=o,a):e},a.copy=function(){return zn(s,t).unknown(e)},oi.apply(a,arguments),a}function yt(){var o,r,i=zn().unknown(void 0),s=i.domain,t=i.range,e=0,a=1,l=!1,h=0,c=0,u=.5;function d(){var g=s().length,m=a<e,x=m?a:e,_=m?e:a;o=(_-x)/Math.max(1,g-h+2*c),l&&(o=Math.floor(o)),x+=(_-x-o*(g-h))*u,r=o*(1-h),l&&(x=Math.round(x),r=Math.round(r));var p=oo(g).map(function(y){return x+o*y});return t(m?p.reverse():p)}return delete i.unknown,i.domain=function(g){return arguments.length?(s(g),d()):s()},i.range=function(g){return arguments.length?([e,a]=g,e=+e,a=+a,d()):[e,a]},i.rangeRound=function(g){return[e,a]=g,e=+e,a=+a,l=!0,d()},i.bandwidth=function(){return r},i.step=function(){return o},i.round=function(g){return arguments.length?(l=!!g,d()):l},i.padding=function(g){return arguments.length?(h=Math.min(1,c=+g),d()):h},i.paddingInner=function(g){return arguments.length?(h=Math.min(1,g),d()):h},i.paddingOuter=function(g){return arguments.length?(c=+g,d()):c},i.align=function(g){return arguments.length?(u=Math.max(0,Math.min(1,g)),d()):u},i.copy=function(){return yt(s(),[e,a]).round(l).paddingInner(h).paddingOuter(c).align(u)},oi.apply(d(),arguments)}function lo(i){var s=i.copy;return i.padding=i.paddingOuter,delete i.paddingInner,delete i.paddingOuter,i.copy=function(){return lo(s())},i}function Le(){return lo(yt.apply(null,arguments).paddingInner(1))}function Nd(i,s,t=Ga){if(e=i.length){if((s=+s)<=0||e<2)return+t(i[0],0,i);if(s>=1)return+t(i[e-1],e-1,i);var e,a=(e-1)*s,o=Math.floor(a),r=+t(i[o],o,i);return r+(+t(i[o+1],o+1,i)-r)*(a-o)}}function ho(){var e,i=[],s=[],t=[];function a(){var r=0,l=Math.max(1,s.length);for(t=new Array(l-1);++r<l;)t[r-1]=Nd(i,r/l);return o}function o(r){return null==r||isNaN(r=+r)?e:s[Wa(t,r)]}return o.invertExtent=function(r){var l=s.indexOf(r);return l<0?[NaN,NaN]:[l>0?t[l-1]:i[0],l<t.length?t[l]:i[i.length-1]]},o.domain=function(r){if(!arguments.length)return i.slice();i=[];for(let l of r)null!=l&&!isNaN(l=+l)&&i.push(l);return i.sort(Ei),a()},o.range=function(r){return arguments.length?(s=Array.from(r),a()):s.slice()},o.unknown=function(r){return arguments.length?(e=r,o):e},o.quantiles=function(){return t.slice()},o.copy=function(){return ho().domain(i).range(s).unknown(e)},oi.apply(o,arguments)}function uo(i){this._context=i}function Se(i){return new uo(i)}uo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,s){switch(i=+i,s=+s,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,s):this._context.moveTo(i,s);break;case 1:this._point=2;default:this._context.lineTo(i,s)}}};const qn=Math.PI,Wn=2*qn,De=1e-6,Yd=Wn-De;function Qn(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function go(){return new Qn}Qn.prototype=go.prototype={constructor:Qn,moveTo:function(i,s){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+s)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(i,s){this._+="L"+(this._x1=+i)+","+(this._y1=+s)},quadraticCurveTo:function(i,s,t,e){this._+="Q"+ +i+","+ +s+","+(this._x1=+t)+","+(this._y1=+e)},bezierCurveTo:function(i,s,t,e,a,o){this._+="C"+ +i+","+ +s+","+ +t+","+ +e+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(i,s,t,e,a){var o=this._x1,r=this._y1,l=(t=+t)-(i=+i),h=(e=+e)-(s=+s),c=o-i,u=r-s,d=c*c+u*u;if((a=+a)<0)throw new Error("negative radius: "+a);if(null===this._x1)this._+="M"+(this._x1=i)+","+(this._y1=s);else if(d>De)if(Math.abs(u*l-h*c)>De&&a){var g=t-o,m=e-r,x=l*l+h*h,_=g*g+m*m,p=Math.sqrt(x),y=Math.sqrt(d),w=a*Math.tan((qn-Math.acos((x+d-_)/(2*p*y)))/2),C=w/y,S=w/p;Math.abs(C-1)>De&&(this._+="L"+(i+C*c)+","+(s+C*u)),this._+="A"+a+","+a+",0,0,"+ +(u*g>c*m)+","+(this._x1=i+S*l)+","+(this._y1=s+S*h)}else this._+="L"+(this._x1=i)+","+(this._y1=s)},arc:function(i,s,t,e,a,o){i=+i,s=+s,o=!!o;var r=(t=+t)*Math.cos(e),l=t*Math.sin(e),h=i+r,c=s+l,u=1^o,d=o?e-a:a-e;if(t<0)throw new Error("negative radius: "+t);null===this._x1?this._+="M"+h+","+c:(Math.abs(this._x1-h)>De||Math.abs(this._y1-c)>De)&&(this._+="L"+h+","+c),t&&(d<0&&(d=d%Wn+Wn),d>Yd?this._+="A"+t+","+t+",0,1,"+u+","+(i-r)+","+(s-l)+"A"+t+","+t+",0,1,"+u+","+(this._x1=h)+","+(this._y1=c):d>De&&(this._+="A"+t+","+t+",0,"+ +(d>=qn)+","+u+","+(this._x1=i+t*Math.cos(a))+","+(this._y1=s+t*Math.sin(a))))},rect:function(i,s,t,e){this._+="M"+(this._x0=this._x1=+i)+","+(this._y0=this._y1=+s)+"h"+ +t+"v"+ +e+"h"+-t+"Z"},toString:function(){return this._}};const Vn=go;function Un(i){return"object"==typeof i&&"length"in i?i:Array.from(i)}function $(i){return function(){return i}}function mo(i){return i[0]}function po(i){return i[1]}function Ji(i,s){var t=$(!0),e=null,a=Se,o=null;function r(l){var h,u,g,c=(l=Un(l)).length,d=!1;for(null==e&&(o=a(g=Vn())),h=0;h<=c;++h)!(h<c&&t(u=l[h],h,l))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+i(u,h,l),+s(u,h,l));if(g)return o=null,g+""||null}return i="function"==typeof i?i:void 0===i?mo:$(i),s="function"==typeof s?s:void 0===s?po:$(s),r.x=function(l){return arguments.length?(i="function"==typeof l?l:$(+l),r):i},r.y=function(l){return arguments.length?(s="function"==typeof l?l:$(+l),r):s},r.defined=function(l){return arguments.length?(t="function"==typeof l?l:$(!!l),r):t},r.curve=function(l){return arguments.length?(a=l,null!=e&&(o=a(e)),r):a},r.context=function(l){return arguments.length?(null==l?e=o=null:o=a(e=l),r):e},r}function Re(i,s,t){var e=null,a=$(!0),o=null,r=Se,l=null;function h(u){var d,g,m,_,y,x=(u=Un(u)).length,p=!1,w=new Array(x),C=new Array(x);for(null==o&&(l=r(y=Vn())),d=0;d<=x;++d){if(!(d<x&&a(_=u[d],d,u))===p)if(p=!p)g=d,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),m=d-1;m>=g;--m)l.point(w[m],C[m]);l.lineEnd(),l.areaEnd()}p&&(w[d]=+i(_,d,u),C[d]=+s(_,d,u),l.point(e?+e(_,d,u):w[d],t?+t(_,d,u):C[d]))}if(y)return l=null,y+""||null}function c(){return Ji().defined(a).curve(r).context(o)}return i="function"==typeof i?i:void 0===i?mo:$(+i),s="function"==typeof s?s:$(void 0===s?0:+s),t="function"==typeof t?t:void 0===t?po:$(+t),h.x=function(u){return arguments.length?(i="function"==typeof u?u:$(+u),e=null,h):i},h.x0=function(u){return arguments.length?(i="function"==typeof u?u:$(+u),h):i},h.x1=function(u){return arguments.length?(e=null==u?null:"function"==typeof u?u:$(+u),h):e},h.y=function(u){return arguments.length?(s="function"==typeof u?u:$(+u),t=null,h):s},h.y0=function(u){return arguments.length?(s="function"==typeof u?u:$(+u),h):s},h.y1=function(u){return arguments.length?(t=null==u?null:"function"==typeof u?u:$(+u),h):t},h.lineX0=h.lineY0=function(){return c().x(i).y(s)},h.lineY1=function(){return c().x(i).y(t)},h.lineX1=function(){return c().x(e).y(s)},h.defined=function(u){return arguments.length?(a="function"==typeof u?u:$(!!u),h):a},h.curve=function(u){return arguments.length?(r=u,null!=o&&(l=r(o)),h):r},h.context=function(u){return arguments.length?(null==u?o=l=null:l=r(o=u),h):o},h}function fo(){}function jn(i,s,t){i._context.bezierCurveTo(i._x1+i._k*(i._x2-i._x0),i._y1+i._k*(i._y2-i._y0),i._x2+i._k*(i._x1-s),i._y2+i._k*(i._y1-t),i._x2,i._y2)}function xo(i,s){this._context=i,this._k=(1-s)/6}function _o(i,s){this._context=i,this._k=(1-s)/6}function vo(i){this._curve=i}xo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:jn(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(i,s){switch(i=+i,s=+s,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,s):this._context.moveTo(i,s);break;case 1:this._point=2,this._x1=i,this._y1=s;break;case 2:this._point=3;default:jn(this,i,s)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=s}},function i(s){function t(e){return new xo(e,s)}return t.tension=function(e){return i(+e)},t}(0),_o.prototype={areaStart:fo,areaEnd:fo,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(i,s){switch(i=+i,s=+s,this._point){case 0:this._point=1,this._x3=i,this._y3=s;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=s);break;case 2:this._point=3,this._x5=i,this._y5=s;break;default:jn(this,i,s)}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=s}},function i(s){function t(e){return new _o(e,s)}return t.tension=function(e){return i(+e)},t}(0),function(i){function s(t){return new vo(i(t))}s._curve=i}(Se),vo.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(i,s){this._curve.point(s*Math.sin(i),s*-Math.cos(i))}};var yo=Math.abs,kt=Math.atan2,Me=Math.cos,Jd=Math.max,Kn=Math.min,te=Math.sin,Je=Math.sqrt,Pt=1e-12,li=Math.PI,zi=li/2,Gi=2*li;function zd(i){return i>1?0:i<-1?li:Math.acos(i)}function bo(i){return i>=1?zi:i<=-1?-zi:Math.asin(i)}function Gd(i){return i.innerRadius}function qd(i){return i.outerRadius}function Wd(i){return i.startAngle}function Qd(i){return i.endAngle}function Vd(i){return i&&i.padAngle}function Ud(i,s,t,e,a,o,r,l){var h=t-i,c=e-s,u=r-a,d=l-o,g=d*h-u*c;if(!(g*g<Pt))return[i+(g=(u*(s-o)-d*(i-a))/g)*h,s+g*c]}function qi(i,s,t,e,a,o,r){var l=i-t,h=s-e,c=(r?o:-o)/Je(l*l+h*h),u=c*h,d=-c*l,g=i+u,m=s+d,x=t+u,_=e+d,p=(g+x)/2,y=(m+_)/2,w=x-g,C=_-m,S=w*w+C*C,D=a-o,k=g*_-x*m,J=(C<0?-1:1)*Je(Jd(0,D*D*S-k*k)),H=(k*C-w*J)/S,V=(-k*w-C*J)/S,Y=(k*C+w*J)/S,M=(-k*w+C*J)/S,O=H-p,F=V-y,I=Y-p,mt=M-y;return O*O+F*F>I*I+mt*mt&&(H=Y,V=M),{cx:H,cy:V,x01:-u,y01:-d,x11:H*(a/D-1),y11:V*(a/D-1)}}function ts(){var i=Gd,s=qd,t=$(0),e=null,a=Wd,o=Qd,r=Vd,l=null;function h(){var c,u,d=+i.apply(this,arguments),g=+s.apply(this,arguments),m=a.apply(this,arguments)-zi,x=o.apply(this,arguments)-zi,_=yo(x-m),p=x>m;if(l||(l=c=Vn()),g<d&&(u=g,g=d,d=u),g>Pt)if(_>Gi-Pt)l.moveTo(g*Me(m),g*te(m)),l.arc(0,0,g,m,x,!p),d>Pt&&(l.moveTo(d*Me(x),d*te(x)),l.arc(0,0,d,x,m,p));else{var O,F,y=m,w=x,C=m,S=x,D=_,k=_,J=r.apply(this,arguments)/2,H=J>Pt&&(e?+e.apply(this,arguments):Je(d*d+g*g)),V=Kn(yo(g-d)/2,+t.apply(this,arguments)),Y=V,M=V;if(H>Pt){var I=bo(H/d*te(J)),mt=bo(H/g*te(J));(D-=2*I)>Pt?(C+=I*=p?1:-1,S-=I):(D=0,C=S=(m+x)/2),(k-=2*mt)>Pt?(y+=mt*=p?1:-1,w-=mt):(k=0,y=w=(m+x)/2)}var G=g*Me(y),q=g*te(y),xt=d*Me(S),X=d*te(S);if(V>Pt){var Mt,st=g*Me(w),K=g*te(w),tt=d*Me(C),ce=d*te(C);if(_<li&&(Mt=Ud(G,q,tt,ce,st,K,xt,X))){var ee=G-Mt[0],ie=q-Mt[1],_t=st-Mt[0],fe=K-Mt[1],L=1/te(zd((ee*_t+ie*fe)/(Je(ee*ee+ie*ie)*Je(_t*_t+fe*fe)))/2),B=Je(Mt[0]*Mt[0]+Mt[1]*Mt[1]);Y=Kn(V,(d-B)/(L-1)),M=Kn(V,(g-B)/(L+1))}}k>Pt?M>Pt?(O=qi(tt,ce,G,q,g,M,p),F=qi(st,K,xt,X,g,M,p),l.moveTo(O.cx+O.x01,O.cy+O.y01),M<V?l.arc(O.cx,O.cy,M,kt(O.y01,O.x01),kt(F.y01,F.x01),!p):(l.arc(O.cx,O.cy,M,kt(O.y01,O.x01),kt(O.y11,O.x11),!p),l.arc(0,0,g,kt(O.cy+O.y11,O.cx+O.x11),kt(F.cy+F.y11,F.cx+F.x11),!p),l.arc(F.cx,F.cy,M,kt(F.y11,F.x11),kt(F.y01,F.x01),!p))):(l.moveTo(G,q),l.arc(0,0,g,y,w,!p)):l.moveTo(G,q),d>Pt&&D>Pt?Y>Pt?(O=qi(xt,X,st,K,d,-Y,p),F=qi(G,q,tt,ce,d,-Y,p),l.lineTo(O.cx+O.x01,O.cy+O.y01),Y<V?l.arc(O.cx,O.cy,Y,kt(O.y01,O.x01),kt(F.y01,F.x01),!p):(l.arc(O.cx,O.cy,Y,kt(O.y01,O.x01),kt(O.y11,O.x11),!p),l.arc(0,0,d,kt(O.cy+O.y11,O.cx+O.x11),kt(F.cy+F.y11,F.cx+F.x11),p),l.arc(F.cx,F.cy,Y,kt(F.y11,F.x11),kt(F.y01,F.x01),!p))):l.arc(0,0,d,S,C,p):l.lineTo(xt,X)}else l.moveTo(0,0);if(l.closePath(),c)return l=null,c+""||null}return h.centroid=function(){var c=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2,u=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-li/2;return[Me(u)*c,te(u)*c]},h.innerRadius=function(c){return arguments.length?(i="function"==typeof c?c:$(+c),h):i},h.outerRadius=function(c){return arguments.length?(s="function"==typeof c?c:$(+c),h):s},h.cornerRadius=function(c){return arguments.length?(t="function"==typeof c?c:$(+c),h):t},h.padRadius=function(c){return arguments.length?(e=null==c?null:"function"==typeof c?c:$(+c),h):e},h.startAngle=function(c){return arguments.length?(a="function"==typeof c?c:$(+c),h):a},h.endAngle=function(c){return arguments.length?(o="function"==typeof c?c:$(+c),h):o},h.padAngle=function(c){return arguments.length?(r="function"==typeof c?c:$(+c),h):r},h.context=function(c){return arguments.length?(l=null==c?null:c,h):l},h}function jd(i,s){return s<i?-1:s>i?1:s>=i?0:NaN}function Kd(i){return i}function Co(){var i=Kd,s=jd,t=null,e=$(0),a=$(Gi),o=$(0);function r(l){var h,u,d,y,S,c=(l=Un(l)).length,g=0,m=new Array(c),x=new Array(c),_=+e.apply(this,arguments),p=Math.min(Gi,Math.max(-Gi,a.apply(this,arguments)-_)),w=Math.min(Math.abs(p)/c,o.apply(this,arguments)),C=w*(p<0?-1:1);for(h=0;h<c;++h)(S=x[m[h]=h]=+i(l[h],h,l))>0&&(g+=S);for(null!=s?m.sort(function(D,k){return s(x[D],x[k])}):null!=t&&m.sort(function(D,k){return t(l[D],l[k])}),h=0,d=g?(p-c*C)/g:0;h<c;++h,_=y)x[u=m[h]]={data:l[u],index:h,value:S=x[u],startAngle:_,endAngle:y=_+(S>0?S*d:0)+C,padAngle:w};return x}return r.value=function(l){return arguments.length?(i="function"==typeof l?l:$(+l),r):i},r.sortValues=function(l){return arguments.length?(s=l,t=null,r):s},r.sort=function(l){return arguments.length?(t=l,s=null,r):t},r.startAngle=function(l){return arguments.length?(e="function"==typeof l?l:$(+l),r):e},r.endAngle=function(l){return arguments.length?(a="function"==typeof l?l:$(+l),r):a},r.padAngle=function(l){return arguments.length?(o="function"==typeof l?l:$(+l),r):o},r}function ng(i,s,t,e,a){for(var r,o=i.children,l=-1,h=o.length,c=i.value&&(e-s)/i.value;++l<h;)(r=o[l]).y0=t,r.y1=a,r.x0=s,r.x1=s+=r.value*c}function sg(i,s,t,e,a){for(var r,o=i.children,l=-1,h=o.length,c=i.value&&(a-t)/i.value;++l<h;)(r=o[l]).x0=s,r.x1=e,r.y0=t,r.y1=t+=r.value*c}function cg(i){var s=0,t=i.children,e=t&&t.length;if(e)for(;--e>=0;)s+=t[e].value;else s=1;i.value=s}function Lo(i,s){i instanceof Map?(i=[void 0,i],void 0===s&&(s=kg)):void 0===s&&(s=Ag);for(var e,o,r,l,h,t=new ui(i),a=[t];e=a.pop();)if((r=s(e.data))&&(h=(r=Array.from(r)).length))for(e.children=r,l=h-1;l>=0;--l)a.push(o=r[l]=new ui(r[l])),o.parent=e,o.depth=e.depth+1;return t.eachBefore(So)}function Ag(i){return i.children}function kg(i){return Array.isArray(i)?i[1]:null}function Lg(i){void 0!==i.data.value&&(i.value=i.data.value),i.data=i.data.data}function So(i){var s=0;do{i.height=s}while((i=i.parent)&&i.height<++s)}function ui(i){this.data=i,this.depth=this.height=0,this.parent=null}Math,et(6655),function i(s){function t(e,a,o,r,l){!function(i,s,t,e,a,o){for(var h,c,m,x,p,y,w,C,S,D,k,r=[],l=s.children,u=0,d=0,g=l.length,_=s.value;u<g;){m=a-t,x=o-e;do{p=l[d++].value}while(!p&&d<g);for(y=w=p,k=p*p*(D=Math.max(x/m,m/x)/(_*i)),S=Math.max(w/k,k/y);d<g;++d){if(p+=c=l[d].value,c<y&&(y=c),c>w&&(w=c),k=p*p*D,(C=Math.max(w/k,k/y))>S){p-=c;break}S=C}r.push(h={value:p,dice:m<x,children:l.slice(u,d)}),h.dice?ng(h,t,e,a,_?e+=x*p/_:o):sg(h,t,e,_?t+=m*p/_:a,o),_-=p,u=d}}(s,e,a,o,r,l)}return t.ratio=function(e){return i((e=+e)>1?e:1)},t}((1+Math.sqrt(5))/2),ui.prototype=Lo.prototype={constructor:ui,count:function(){return this.eachAfter(cg)},each:function(i,s){let t=-1;for(const e of this)i.call(s,e,++t,this);return this},eachAfter:function(i,s){for(var o,r,l,t=this,e=[t],a=[],h=-1;t=e.pop();)if(a.push(t),o=t.children)for(r=0,l=o.length;r<l;++r)e.push(o[r]);for(;t=a.pop();)i.call(s,t,++h,this);return this},eachBefore:function(i,s){for(var a,o,t=this,e=[t],r=-1;t=e.pop();)if(i.call(s,t,++r,this),a=t.children)for(o=a.length-1;o>=0;--o)e.push(a[o]);return this},find:function(i,s){let t=-1;for(const e of this)if(i.call(s,e,++t,this))return e},sum:function(i){return this.eachAfter(function(s){for(var t=+i(s.data)||0,e=s.children,a=e&&e.length;--a>=0;)t+=e[a].value;s.value=t})},sort:function(i){return this.eachBefore(function(s){s.children&&s.children.sort(i)})},path:function(i){for(var s=this,t=function(i,s){if(i===s)return i;var t=i.ancestors(),e=s.ancestors(),a=null;for(i=t.pop(),s=e.pop();i===s;)a=i,i=t.pop(),s=e.pop();return a}(s,i),e=[s];s!==t;)e.push(s=s.parent);for(var a=e.length;i!==t;)e.splice(a,0,i),i=i.parent;return e},ancestors:function(){for(var i=this,s=[i];i=i.parent;)s.push(i);return s},descendants:function(){return Array.from(this)},leaves:function(){var i=[];return this.eachBefore(function(s){s.children||i.push(s)}),i},links:function(){var i=this,s=[];return i.each(function(t){t!==i&&s.push({source:t.parent,target:t})}),s},copy:function(){return Lo(this).eachBefore(Lg)},[Symbol.iterator]:function*(){var s,e,a,o,i=this,t=[i];do{for(s=t.reverse(),t=[];i=s.pop();)if(yield i,e=i.children)for(a=0,o=e.length;a<o;++a)t.push(e[a])}while(t.length)}};const Og=["caretElm"];function Eg(i,s){}const Bg=function(i){return{model:i}};function Zg(i,s){if(1&i&&(n.TgZ(0,"span"),n.YNc(1,Eg,0,0,"ng-template",5),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",t.template)("ngTemplateOutletContext",n.VKq(2,Bg,t.context))}}function Hg(i,s){if(1&i&&n._UZ(0,"span",6),2&i){const t=n.oxw();n.Q6J("innerHTML",t.title,n.oJD)}}function Pg(i,s){if(1&i&&(n.O4$(),n.kcU(),n._UZ(0,"ngx-charts-scale-legend",4)),2&i){const t=n.oxw();n.Q6J("horizontal",t.legendOptions&&t.legendOptions.position===t.LegendPosition.Below)("valueRange",t.legendOptions.domain)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)}}function Ng(i,s){if(1&i){const t=n.EpF();n.O4$(),n.kcU(),n.TgZ(0,"ngx-charts-legend",5),n.NdJ("labelClick",function(a){return n.CHM(t),n.oxw().legendLabelClick.emit(a)})("labelActivate",function(a){return n.CHM(t),n.oxw().legendLabelActivate.emit(a)})("labelDeactivate",function(a){return n.CHM(t),n.oxw().legendLabelDeactivate.emit(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("horizontal",t.legendOptions&&t.legendOptions.position===t.LegendPosition.Below)("data",t.legendOptions.domain)("title",t.legendOptions.title)("colors",t.legendOptions.colors)("height",t.view[1])("width",t.legendWidth)("activeEntries",t.activeEntries)}}const Mo=["*"],Yg=["ngx-charts-axis-label",""],Fo=["ticksel"],Ig=["ngx-charts-x-axis-ticks",""];function Xg(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g",3),n.TgZ(1,"title"),n._uU(2),n.qZA(),n.TgZ(3,"text",4),n._uU(4),n.qZA(),n.qZA()),2&i){const t=s.$implicit,e=n.oxw();n.uIk("transform",e.tickTransform(t)),n.xp6(2),n.Oqu(e.tickFormat(t)),n.xp6(1),n.Udp("font-size","12px"),n.uIk("text-anchor",e.textAnchor)("transform",e.textTransform),n.xp6(1),n.hij(" ",e.tickTrim(e.tickFormat(t))," ")}}function $g(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"line",6),n.qZA()),2&i){const t=n.oxw(2);n.uIk("transform",t.gridLineTransform()),n.xp6(1),n.uIk("y1",-t.gridLineHeight)}}function Rg(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,$g,2,2,"g",5),n.qZA()),2&i){const t=s.$implicit,e=n.oxw();n.uIk("transform",e.tickTransform(t)),n.xp6(1),n.Q6J("ngIf",e.showGridLines)}}const Jg=["ngx-charts-x-axis",""];function zg(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().emitTicksHeight(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("trimTicks",t.trimTicks)("rotateTicks",t.rotateTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickStroke",t.tickStroke)("scale",t.xScale)("orient",t.xOrient)("showGridLines",t.showGridLines)("gridLineHeight",t.dims.height)("width",t.dims.width)("tickValues",t.ticks)}}function Gg(i,s){if(1&i&&(n.O4$(),n._UZ(0,"g",3)),2&i){const t=n.oxw();n.Q6J("label",t.labelText)("offset",t.labelOffset)("orient",t.orientation.Bottom)("height",t.dims.height)("width",t.dims.width)}}const qg=["ngx-charts-y-axis-ticks",""];function Wg(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g",4),n.TgZ(1,"title"),n._uU(2),n.qZA(),n.TgZ(3,"text",5),n._uU(4),n.qZA(),n.qZA()),2&i){const t=s.$implicit,e=n.oxw();n.uIk("transform",e.transform(t)),n.xp6(2),n.Oqu(e.tickFormat(t)),n.xp6(1),n.Udp("font-size","12px"),n.uIk("dy",e.dy)("x",e.x1)("y",e.y1)("text-anchor",e.textAnchor),n.xp6(1),n.hij(" ",e.tickTrim(e.tickFormat(t))," ")}}function Qg(i,s){if(1&i&&(n.O4$(),n._UZ(0,"path",6)),2&i){const t=n.oxw();n.uIk("d",t.referenceAreaPath)("transform",t.gridLineTransform())}}function Vg(i,s){if(1&i&&(n.O4$(),n._UZ(0,"line",9)),2&i){const t=n.oxw(3);n.uIk("x2",t.gridLineWidth)}}function Ug(i,s){if(1&i&&(n.O4$(),n._UZ(0,"line",9)),2&i){const t=n.oxw(3);n.uIk("x2",-t.gridLineWidth)}}function jg(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Vg,1,1,"line",8),n.YNc(2,Ug,1,1,"line",8),n.qZA()),2&i){const t=n.oxw(2);n.uIk("transform",t.gridLineTransform()),n.xp6(1),n.Q6J("ngIf",t.orient===t.Orientation.Left),n.xp6(1),n.Q6J("ngIf",t.orient===t.Orientation.Right)}}function Kg(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,jg,3,3,"g",7),n.qZA()),2&i){const t=s.$implicit,e=n.oxw();n.uIk("transform",e.transform(t)),n.xp6(1),n.Q6J("ngIf",e.showGridLines)}}function tm(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n.TgZ(1,"title"),n._uU(2),n.qZA(),n.TgZ(3,"text",11),n._uU(4),n.qZA(),n.qZA()),2&i){const t=n.oxw(2).$implicit,e=n.oxw();n.xp6(2),n.Oqu(e.tickTrim(e.tickFormat(t.value))),n.xp6(1),n.uIk("dy",e.dy)("y",-6)("x",e.gridLineWidth)("text-anchor",e.textAnchor),n.xp6(1),n.hij(" ",t.name," ")}}function em(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"line",10),n.YNc(2,tm,5,6,"g",7),n.qZA()),2&i){const t=n.oxw().$implicit,e=n.oxw();n.uIk("transform",e.transform(t.value)),n.xp6(1),n.uIk("x2",e.gridLineWidth)("transform",e.gridLineTransform()),n.xp6(1),n.Q6J("ngIf",e.showRefLabels)}}function im(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,em,3,4,"g",7),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.showRefLines)}}const nm=["ngx-charts-y-axis",""];function sm(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().emitTicksWidth(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("trimTicks",t.trimTicks)("maxTickLength",t.maxTickLength)("tickFormatting",t.tickFormatting)("tickArguments",t.tickArguments)("tickValues",t.ticks)("tickStroke",t.tickStroke)("scale",t.yScale)("orient",t.yOrient)("showGridLines",t.showGridLines)("gridLineWidth",t.dims.width)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)("height",t.dims.height)}}function am(i,s){if(1&i&&(n.O4$(),n._UZ(0,"g",3)),2&i){const t=n.oxw();n.Q6J("label",t.labelText)("offset",t.labelOffset)("orient",t.yOrient)("height",t.dims.height)("width",t.dims.width)}}const om=["ngx-charts-circle-series",""];function rm(i,s){if(1&i&&(n.O4$(),n._UZ(0,"rect",4)),2&i){const t=n.oxw(2);n.Q6J("@animationState","active"),n.uIk("x",t.circle.cx-t.circle.radius)("y",t.circle.cy)("width",2*t.circle.radius)("height",t.circle.height)("fill",t.gradientFill)}}const lm=function(i){return{name:i}};function cm(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g"),n.TgZ(1,"defs"),n._UZ(2,"g",1),n.qZA(),n.YNc(3,rm,1,6,"rect",2),n.TgZ(4,"g",3),n.NdJ("select",function(){n.CHM(t);const a=n.oxw();return a.onClick(a.circle.data)})("activate",function(){return n.CHM(t),n.oxw().activateCircle()})("deactivate",function(){return n.CHM(t),n.oxw().deactivateCircle()}),n.qZA(),n.qZA()}if(2&i){const t=n.oxw();n.xp6(2),n.Q6J("orientation",t.barOrientation.Vertical)("name",t.gradientId)("stops",t.circle.gradientStops),n.xp6(1),n.Q6J("ngIf",t.barVisible&&"standard"===t.type),n.xp6(1),n.ekj("active",t.isActive(n.VKq(19,lm,t.circle.seriesName))),n.Q6J("cx",t.circle.cx)("cy",t.circle.cy)("r",t.circle.radius)("fill",t.circle.color)("pointerEvents",0===t.circle.value?"none":"all")("data",t.circle.value)("classNames",t.circle.classNames)("tooltipDisabled",t.tooltipDisabled)("tooltipPlacement",t.placementTypes.Top)("tooltipType",t.styleTypes.tooltip)("tooltipTitle",t.tooltipTemplate?void 0:t.getTooltipText(t.circle))("tooltipTemplate",t.tooltipTemplate)("tooltipContext",t.circle.data)}}const hm=["ngx-charts-circle",""],um=["ngx-charts-grid-panel",""],dm=["ngx-charts-grid-panel-series",""];function gm(i,s){if(1&i&&(n.O4$(),n._UZ(0,"g",1)),2&i){const t=s.$implicit;n.ekj("grid-panel",!0)("odd","odd"===t.class)("even","even"===t.class),n.Q6J("height",t.height)("width",t.width)("x",t.x)("y",t.y)}}const mm=["ngx-charts-svg-linear-gradient",""];function pm(i,s){if(1&i&&(n.O4$(),n._UZ(0,"stop")),2&i){const t=s.$implicit;n.Udp("stop-color",t.color)("stop-opacity",t.opacity),n.uIk("offset",t.offset+"%")}}const fm=["ngx-charts-svg-radial-gradient",""];function xm(i,s){if(1&i&&(n.O4$(),n._UZ(0,"stop")),2&i){const t=s.$implicit;n.Udp("stop-color",t.color)("stop-opacity",t.opacity),n.uIk("offset",t.offset+"%")}}const _m=["ngx-charts-area",""];function vm(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"defs"),n._UZ(1,"g",2),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("orientation",t.barOrientation.Vertical)("name",t.gradientId)("stops",t.gradientStops)}}const Tm=["ngx-charts-count-up",""],ym=["tooltipAnchor"],bm=["ngx-charts-tooltip-area",""];function Cm(i,s){if(1&i&&(n.TgZ(0,"div",6),n._UZ(1,"span",7),n._uU(2),n.qZA()),2&i){const t=s.$implicit,e=n.oxw(2);n.xp6(1),n.Udp("background-color",t.color),n.xp6(1),n.hij(" ",e.getToolTipText(t)," ")}}function wm(i,s){if(1&i&&(n.O4$(),n.kcU(),n.TgZ(0,"div",4),n.YNc(1,Cm,3,3,"div",5),n.qZA()),2&i){const t=s.model;n.xp6(1),n.Q6J("ngForOf",t)}}const Am=["ngx-charts-timeline",""];function km(i,s){if(1&i&&(n.TgZ(0,"header",4),n.TgZ(1,"span",5),n._uU(2),n.qZA(),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.Oqu(t.title)}}function Lm(i,s){if(1&i){const t=n.EpF();n.TgZ(0,"li",6),n.TgZ(1,"ngx-charts-legend-entry",7),n.NdJ("select",function(a){return n.CHM(t),n.oxw().labelClick.emit(a)})("activate",function(a){return n.CHM(t),n.oxw().activate(a)})("deactivate",function(a){return n.CHM(t),n.oxw().deactivate(a)}),n.qZA(),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw();n.xp6(1),n.Q6J("label",t.label)("formattedLabel",t.formattedLabel)("color",t.color)("isActive",e.isActive(t))}}const dt=["tooltipTemplate"],Qi=["seriesTooltipTemplate"],U=function(i,s){return[i,s]},lt=".ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .arc{cursor:pointer}.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover,.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .card.active,.ngx-charts .card:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .bar:focus,.ngx-charts .cell:focus,.ngx-charts .arc:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .card.hidden{display:none}.ngx-charts g:focus{outline:none}.ngx-charts .line-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .polar-series-path.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .area-series.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:normal}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:#0000000d}\n",np=["ngx-charts-bar",""];function sp(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"defs"),n._UZ(1,"g",2),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("orientation",t.orientation)("name",t.gradientId)("stops",t.gradientStops)}}function ap(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",5),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().updateXAxisHeight(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function op(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",6),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().updateYAxisWidth(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("yScale",t.yScale)("dims",t.dims)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)("yAxisOffset",t.dataLabelMaxWidth.negative)}}function fp(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",5),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().updateXAxisHeight(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function xp(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",6),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().updateYAxisWidth(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function _p(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",6),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().updateXAxisHeight(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("xScale",t.groupScale)("dims",t.dims)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)("xAxisOffset",t.dataLabelMaxHeight.negative)}}function vp(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",7),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().updateYAxisWidth(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("yScale",t.valueScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)}}function Tp(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",8),n.NdJ("select",function(a){const r=n.CHM(t).$implicit;return n.oxw().onClick(a,r)})("activate",function(a){const r=n.CHM(t).$implicit;return n.oxw().onActivate(a,r)})("deactivate",function(a){const r=n.CHM(t).$implicit;return n.oxw().onDeactivate(a,r)})("dataLabelHeightChanged",function(a){const r=n.CHM(t).index;return n.oxw().onDataLabelMaxHeightChanged(a,r)}),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw();n.Q6J("@animationState","active")("activeEntries",e.activeEntries)("xScale",e.innerScale)("yScale",e.valueScale)("colors",e.colors)("series",t.series)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("seriesName",t.name)("roundEdges",e.roundEdges)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero),n.uIk("transform",e.groupTransform(t))}}const Lp=["ngx-charts-series-horizontal",""];function Sp(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("select",function(a){return n.CHM(t),n.oxw().click(a)})("activate",function(a){return n.CHM(t),n.oxw().activate.emit(a)})("deactivate",function(a){return n.CHM(t),n.oxw().deactivate.emit(a)}),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw();n.Q6J("@animationState","active")("width",t.width)("height",t.height)("x",t.x)("y",t.y)("fill",t.color)("stops",t.gradientStops)("data",t.data)("orientation",e.barOrientation.Horizontal)("roundEdges",t.roundEdges)("gradient",e.gradient)("isActive",e.isActive(t.data))("ariaLabel",t.ariaLabel)("animations",e.animations)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement",e.tooltipPlacement)("tooltipType",e.tooltipType)("tooltipTitle",e.tooltipTemplate?void 0:t.tooltipText)("tooltipTemplate",e.tooltipTemplate)("tooltipContext",t.data)("noBarWhenZero",e.noBarWhenZero)}}function Dp(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",4),n.NdJ("dimensionsChanged",function(a){const r=n.CHM(t).index;return n.oxw(2).dataLabelWidthChanged.emit({size:a,index:r})}),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw(2);n.Q6J("barX",t.x)("barY",t.y)("barWidth",t.width)("barHeight",t.height)("value",t.total)("valueFormatting",e.dataLabelFormatting)("orientation",e.barOrientation.Horizontal)}}function Mp(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Dp,1,7,"g",3),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.barsForDataLabels)("ngForTrackBy",t.trackDataLabelBy)}}const Fp=["ngx-charts-series-vertical",""];function Op(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("select",function(a){return n.CHM(t),n.oxw().onClick(a)})("activate",function(a){return n.CHM(t),n.oxw().activate.emit(a)})("deactivate",function(a){return n.CHM(t),n.oxw().deactivate.emit(a)}),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw();n.Q6J("@animationState","active")("@.disabled",!e.animations)("width",t.width)("height",t.height)("x",t.x)("y",t.y)("fill",t.color)("stops",t.gradientStops)("data",t.data)("orientation",e.barOrientation.Vertical)("roundEdges",t.roundEdges)("gradient",e.gradient)("ariaLabel",t.ariaLabel)("isActive",e.isActive(t.data))("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement",e.tooltipPlacement)("tooltipType",e.tooltipType)("tooltipTitle",e.tooltipTemplate?void 0:t.tooltipText)("tooltipTemplate",e.tooltipTemplate)("tooltipContext",t.data)("noBarWhenZero",e.noBarWhenZero)("animations",e.animations)}}function Ep(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",4),n.NdJ("dimensionsChanged",function(a){const r=n.CHM(t).index;return n.oxw(2).dataLabelHeightChanged.emit({size:a,index:r})}),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw(2);n.Q6J("barX",t.x)("barY",t.y)("barWidth",t.width)("barHeight",t.height)("value",t.total)("valueFormatting",e.dataLabelFormatting)("orientation",e.barOrientation.Vertical)}}function Bp(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,Ep,1,7,"g",3),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.barsForDataLabels)("ngForTrackBy",t.trackDataLabelBy)}}const Zp=["ngx-charts-bar-label",""],tf=["ngx-charts-line",""];function ef(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",7),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().updateXAxisHeight(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("xScale",t.xScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showXAxisLabel)("labelText",t.xAxisLabel)("trimTicks",t.trimXAxisTicks)("rotateTicks",t.rotateXAxisTicks)("maxTickLength",t.maxXAxisTickLength)("tickFormatting",t.xAxisTickFormatting)("ticks",t.xAxisTicks)}}function nf(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",8),n.NdJ("dimensionsChanged",function(a){return n.CHM(t),n.oxw().updateYAxisWidth(a)}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("yScale",t.yScale)("dims",t.dims)("showGridLines",t.showGridLines)("showLabel",t.showYAxisLabel)("labelText",t.yAxisLabel)("trimTicks",t.trimYAxisTicks)("maxTickLength",t.maxYAxisTickLength)("tickFormatting",t.yAxisTickFormatting)("ticks",t.yAxisTicks)("referenceLines",t.referenceLines)("showRefLines",t.showRefLines)("showRefLabels",t.showRefLabels)}}function sf(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"g",9),n.qZA()),2&i){const t=s.$implicit,e=n.oxw();n.Q6J("@animationState","active"),n.xp6(1),n.Q6J("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("data",t)("activeEntries",e.activeEntries)("scaleType",e.scaleType)("curve",e.curve)("rangeFillOpacity",e.rangeFillOpacity)("hasRange",e.hasRange)("animations",e.animations)}}function af(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g"),n.TgZ(1,"g",13),n.NdJ("select",function(a){return n.CHM(t),n.oxw(2).onClick(a)})("activate",function(a){return n.CHM(t),n.oxw(2).onActivate(a)})("deactivate",function(a){return n.CHM(t),n.oxw(2).onDeactivate(a)}),n.qZA(),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("data",t)("scaleType",e.scaleType)("visibleValue",e.hoveredVertical)("activeEntries",e.activeEntries)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)}}function of(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",10),n.NdJ("mouseleave",function(){return n.CHM(t),n.oxw().hideCircles()}),n.TgZ(1,"g",11),n.NdJ("hover",function(a){return n.CHM(t),n.oxw().updateHoveredVertical(a)}),n.qZA(),n.YNc(2,af,2,9,"g",12),n.qZA()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("dims",t.dims)("xSet",t.xSet)("xScale",t.xScale)("yScale",t.yScale)("results",t.results)("colors",t.colors)("tooltipDisabled",t.tooltipDisabled)("tooltipTemplate",t.seriesTooltipTemplate),n.xp6(1),n.Q6J("ngForOf",t.results)}}function rf(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"g"),n._UZ(1,"g",15),n.qZA()),2&i){const t=s.$implicit,e=n.oxw(2);n.xp6(1),n.Q6J("xScale",e.timelineXScale)("yScale",e.timelineYScale)("colors",e.colors)("data",t)("scaleType",e.scaleType)("curve",e.curve)("hasRange",e.hasRange)("animations",e.animations)}}function lf(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",14),n.NdJ("onDomainChange",function(a){return n.CHM(t),n.oxw().updateDomain(a)}),n.YNc(1,rf,2,8,"g",4),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("results",t.results)("view",n.WLB(10,U,t.timelineWidth,t.height))("height",t.timelineHeight)("scheme",t.scheme)("customColors",t.customColors)("scaleType",t.scaleType)("legend",t.legend),n.uIk("transform",t.timelineTransform),n.xp6(1),n.Q6J("ngForOf",t.results)("ngForTrackBy",t.trackBy)}}const cf=["ngx-charts-line-series",""];function hf(i,s){if(1&i&&(n.O4$(),n._UZ(0,"g",4)),2&i){const t=n.oxw();n.Q6J("orientation",t.barOrientation.Vertical)("name",t.gradientId)("stops",t.gradientStops)}}function uf(i,s){if(1&i&&(n.O4$(),n._UZ(0,"g",5)),2&i){const t=n.oxw();n.ekj("active",t.isActive(t.data))("inactive",t.isInactive(t.data)),n.Q6J("data",t.data)("path",t.outerPath)("fill",t.hasGradient?t.gradientUrl:t.colors.getColor(t.data.name))("opacity",t.rangeFillOpacity)("animations",t.animations)}}const bf=["ngx-charts-pie-label",""],Cf=["ngx-charts-pie-arc",""];function wf(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"defs"),n._UZ(1,"g",3),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("color",t.fill)("name",t.radialGradientId)("startOpacity",t.startOpacity)}}function Af(i,s){if(1&i&&(n.O4$(),n._UZ(0,"text",10)),2&i){const t=n.oxw().$implicit;n.Q6J("countTo",t.percent)("countSuffix","%")}}function kf(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"text",11),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",t.percent.toLocaleString()," ")}}function Lf(i,s){if(1&i&&(n.O4$(),n._UZ(0,"text",12)),2&i){const t=n.oxw().$implicit,e=n.oxw();n.Q6J("countTo",t.total)("countPrefix",e.label+": "),n.uIk("y",t.outerRadius)}}function Sf(i,s){if(1&i&&(n.O4$(),n.TgZ(0,"text",13),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit,e=n.oxw();n.uIk("y",t.outerRadius),n.xp6(1),n.AsE(" ",e.label,": ",t.total.toLocaleString()," ")}}const Df=function(i){return{data:i}};function Mf(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",3),n.TgZ(1,"g",4),n.NdJ("select",function(a){return n.CHM(t),n.oxw().onClick(a)})("activate",function(a){return n.CHM(t),n.oxw().onActivate(a)})("deactivate",function(a){return n.CHM(t),n.oxw().onDeactivate(a)}),n.qZA(),n.YNc(2,Af,1,2,"text",5),n.YNc(3,kf,2,1,"text",6),n.TgZ(4,"text",7),n._uU(5),n.qZA(),n.YNc(6,Lf,1,3,"text",8),n.YNc(7,Sf,2,3,"text",9),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw();n.uIk("transform",t.transform),n.xp6(1),n.Q6J("colors",t.colors)("data",t.data)("innerRadius",t.innerRadius)("outerRadius",t.outerRadius)("animations",e.animations)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement",e.placementTypes.Top)("tooltipType",e.styleTypes.tooltip)("tooltipTitle",e.tooltipTemplate?void 0:e.tooltipText(n.VKq(17,Df,t)))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",t.data[0].data),n.xp6(1),n.Q6J("ngIf",e.animations),n.xp6(1),n.Q6J("ngIf",!e.animations),n.xp6(2),n.hij(" ",t.label," "),n.xp6(1),n.Q6J("ngIf",e.animations),n.xp6(1),n.Q6J("ngIf",!e.animations)}}const Ff=["ngx-charts-pie-grid-series",""];function Of(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g",2),n.NdJ("select",function(a){return n.CHM(t),n.oxw().onClick(a)})("activate",function(a){return n.CHM(t),n.oxw().activate.emit(a)})("deactivate",function(a){return n.CHM(t),n.oxw().deactivate.emit(a)}),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw();n.Q6J("startAngle",t.startAngle)("endAngle",t.endAngle)("innerRadius",e.innerRadius)("outerRadius",e.outerRadius)("fill",e.color(t))("value",t.data.value)("data",t.data)("gradient",!1)("pointerEvents",t.pointerEvents)("animate",t.animate),n.uIk("class",t.class)}}const Ef=["ngx-charts-pie-series",""];function Bf(i,s){if(1&i&&(n.O4$(),n._UZ(0,"g",3)),2&i){const t=n.oxw().$implicit,e=n.oxw();n.Q6J("data",t)("radius",e.outerRadius)("color",e.color(t))("label",e.labelText(t))("labelTrim",e.trimLabels)("labelTrimSize",e.maxLabelLength)("max",e.max)("value",t.value)("explodeSlices",e.explodeSlices)("animations",e.animations)}}function Zf(i,s){if(1&i){const t=n.EpF();n.O4$(),n.TgZ(0,"g"),n.YNc(1,Bf,1,10,"g",1),n.TgZ(2,"g",2),n.NdJ("select",function(a){return n.CHM(t),n.oxw().onClick(a)})("activate",function(a){return n.CHM(t),n.oxw().activate.emit(a)})("deactivate",function(a){return n.CHM(t),n.oxw().deactivate.emit(a)})("dblclick",function(a){return n.CHM(t),n.oxw().dblclick.emit(a)}),n.qZA(),n.qZA()}if(2&i){const t=s.$implicit,e=n.oxw();n.xp6(1),n.Q6J("ngIf",e.labelVisible(t)),n.xp6(1),n.Q6J("startAngle",t.startAngle)("endAngle",t.endAngle)("innerRadius",e.innerRadius)("outerRadius",e.outerRadius)("fill",e.color(t))("value",t.data.value)("gradient",e.gradient)("data",t.data)("max",e.max)("explodeSlices",e.explodeSlices)("isActive",e.isActive(t.data))("animate",e.animations)("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement",e.placementTypes.Top)("tooltipType",e.styleTypes.tooltip)("tooltipTitle",e.getTooltipTitle(t))("tooltipTemplate",e.tooltipTemplate)("tooltipContext",t.data)}}let Zo=(()=>{class i{constructor(t,e,a){this.applicationRef=t,this.componentFactoryResolver=e,this.injector=a}static setGlobalRootViewContainer(t){i.globalRootViewContainer=t}getRootViewContainer(){if(this._container)return this._container;if(i.globalRootViewContainer)return i.globalRootViewContainer;if(this.applicationRef.components.length)return this.applicationRef.components[0];throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer or setGlobalRootViewContainer.")}setRootViewContainer(t){this._container=t}getComponentRootNode(t){return function(i){return i.element}(t)?t.element.nativeElement:t.hostView&&t.hostView.rootNodes.length>0?t.hostView.rootNodes[0]:t.location.nativeElement}getRootViewContainerNode(t){return this.getComponentRootNode(t)}projectComponentBindings(t,e){if(e){if(void 0!==e.inputs){const a=Object.getOwnPropertyNames(e.inputs);for(const o of a)t.instance[o]=e.inputs[o]}if(void 0!==e.outputs){const a=Object.getOwnPropertyNames(e.outputs);for(const o of a)t.instance[o]=e.outputs[o]}}return t}appendComponent(t,e={},a){a||(a=this.getRootViewContainer());const o=this.getComponentRootNode(a),r=new Nt.u0(o,this.componentFactoryResolver,this.applicationRef,this.injector),l=new Nt.C5(t),h=r.attach(l);return this.projectComponentBindings(h,e),h}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.z2F),n.LFG(n._Vd),n.LFG(n.zs3))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i.globalRootViewContainer=null,i})();function rx(i,s,t){t=t||{};let e,a,o,r=null,l=0;function h(){l=!1===t.leading?0:+new Date,r=null,o=i.apply(e,a)}return function(){const c=+new Date;!l&&!1===t.leading&&(l=c);const u=s-(c-l);return e=this,a=arguments,u<=0?(clearTimeout(r),r=null,l=c,o=i.apply(e,a)):!r&&!1!==t.trailing&&(r=setTimeout(h,u)),o}}function lx(i,s){return function(e,a,o){return{configurable:!0,enumerable:o.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:o.enumerable,value:rx(o.value,i,s)}),this[a]}}}}var E=(()=>{return(i=E||(E={})).Top="top",i.Bottom="bottom",i.Left="left",i.Right="right",i.Center="center",E;var i})();function Ho(i,s,t){return t===E.Top?i.top-7:t===E.Bottom?i.top+i.height-s.height+7:t===E.Center?i.top+i.height/2-s.height/2:void 0}function Po(i,s,t){return t===E.Left?i.left-7:t===E.Right?i.left+i.width-s.width+7:t===E.Center?i.left+i.width/2-s.width/2:void 0}class Xt{static calculateVerticalAlignment(s,t,e){let a=Ho(s,t,e);return a+t.height>window.innerHeight&&(a=window.innerHeight-t.height),a}static calculateVerticalCaret(s,t,e,a){let o;a===E.Top&&(o=s.height/2-e.height/2+7),a===E.Bottom&&(o=t.height-s.height/2-e.height/2-7),a===E.Center&&(o=t.height/2-e.height/2);const r=Ho(s,t,a);return r+t.height>window.innerHeight&&(o+=r+t.height-window.innerHeight),o}static calculateHorizontalAlignment(s,t,e){let a=Po(s,t,e);return a+t.width>window.innerWidth&&(a=window.innerWidth-t.width),a}static calculateHorizontalCaret(s,t,e,a){let o;a===E.Left&&(o=s.width/2-e.width/2+7),a===E.Right&&(o=t.width-s.width/2-e.width/2-7),a===E.Center&&(o=t.width/2-e.width/2);const r=Po(s,t,a);return r+t.width>window.innerWidth&&(o+=r+t.width-window.innerWidth),o}static shouldFlip(s,t,e,a){let o=!1;return e===E.Right&&s.left+s.width+t.width+a>window.innerWidth&&(o=!0),e===E.Left&&s.left-t.width-a<0&&(o=!0),e===E.Top&&s.top-t.height-a<0&&(o=!0),e===E.Bottom&&s.top+s.height+t.height+a>window.innerHeight&&(o=!0),o}static positionCaret(s,t,e,a,o){let r=0,l=0;return s===E.Right?(l=-7,r=Xt.calculateVerticalCaret(e,t,a,o)):s===E.Left?(l=t.width,r=Xt.calculateVerticalCaret(e,t,a,o)):s===E.Top?(r=t.height,l=Xt.calculateHorizontalCaret(e,t,a,o)):s===E.Bottom&&(r=-7,l=Xt.calculateHorizontalCaret(e,t,a,o)),{top:r,left:l}}static positionContent(s,t,e,a,o){let r=0,l=0;return s===E.Right?(l=e.left+e.width+a,r=Xt.calculateVerticalAlignment(e,t,o)):s===E.Left?(l=e.left-t.width-a,r=Xt.calculateVerticalAlignment(e,t,o)):s===E.Top?(r=e.top-t.height-a,l=Xt.calculateHorizontalAlignment(e,t,o)):s===E.Bottom&&(r=e.top+e.height+a,l=Xt.calculateHorizontalAlignment(e,t,o)),{top:r,left:l}}static determinePlacement(s,t,e,a){if(Xt.shouldFlip(e,t,s,a)){if(s===E.Right)return E.Left;if(s===E.Left)return E.Right;if(s===E.Top)return E.Bottom;if(s===E.Bottom)return E.Top}return s}}let cx=(()=>{class i{constructor(t,e,a){this.element=t,this.renderer=e,this.platformId=a}get cssClasses(){let t="ngx-charts-tooltip-content";return t+=` position-${this.placement}`,t+=` type-${this.type}`,t+=` ${this.cssClass}`,t}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,v.NF)(this.platformId))return;const t=this.element.nativeElement,e=this.host.nativeElement.getBoundingClientRect();if(!e.height&&!e.width)return;const a=t.getBoundingClientRect();this.checkFlip(e,a),this.positionContent(t,e,a),this.showCaret&&this.positionCaret(e,a),setTimeout(()=>this.renderer.addClass(t,"animate"),1)}positionContent(t,e,a){const{top:o,left:r}=Xt.positionContent(this.placement,a,e,this.spacing,this.alignment);this.renderer.setStyle(t,"top",`${o}px`),this.renderer.setStyle(t,"left",`${r}px`)}positionCaret(t,e){const a=this.caretElm.nativeElement,o=a.getBoundingClientRect(),{top:r,left:l}=Xt.positionCaret(this.placement,e,t,o,this.alignment);this.renderer.setStyle(a,"top",`${r}px`),this.renderer.setStyle(a,"left",`${l}px`)}checkFlip(t,e){this.placement=Xt.determinePlacement(this.placement,e,t,this.spacing)}onWindowResize(){this.position()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.Lbi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-tooltip-content"]],viewQuery:function(t,e){if(1&t&&n.Gf(Og,5),2&t){let a;n.iGM(a=n.CRH())&&(e.caretElm=a.first)}},hostVars:2,hostBindings:function(t,e){1&t&&n.NdJ("resize",function(){return e.onWindowResize()},!1,n.Jf7),2&t&&n.Tol(e.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n._UZ(1,"span",0,1),n.TgZ(3,"div",2),n.YNc(4,Zg,2,4,"span",3),n.YNc(5,Hg,1,1,"span",4),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Gre("tooltip-caret position-",e.placement,""),n.Q6J("hidden",!e.showCaret),n.xp6(3),n.Q6J("ngIf",!e.title),n.xp6(1),n.Q6J("ngIf",e.title))},directives:[v.O5,v.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:normal;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),function(i,s,t,e){var r,a=arguments.length,o=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,t):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(i,s,t,e);else for(var l=i.length-1;l>=0;l--)(r=i[l])&&(o=(a<3?r(o):a>3?r(s,t,o):r(s,t))||o);a>3&&o&&Object.defineProperty(s,t,o)}([lx(100)],i.prototype,"onWindowResize",null),i})(),es=(()=>{class i extends class{constructor(s){this.injectionService=s,this.defaults={},this.components=new Map}getByType(s=this.type){return this.components.get(s)}create(s){return this.createByType(this.type,s)}createByType(s,t){t=this.assignDefaults(t);const e=this.injectComponent(s,t);return this.register(s,e),e}destroy(s){const t=this.components.get(s.componentType);if(t&&t.length){const e=t.indexOf(s);e>-1&&(t[e].destroy(),t.splice(e,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(s){const t=this.components.get(s);if(t&&t.length){let e=t.length-1;for(;e>=0;)this.destroy(t[e--])}}injectComponent(s,t){return this.injectionService.appendComponent(s,t)}assignDefaults(s){const t=Object.assign({},this.defaults.inputs),e=Object.assign({},this.defaults.outputs);return!s.inputs&&!s.outputs&&(s={inputs:s}),t&&(s.inputs=Object.assign(Object.assign({},t),s.inputs)),e&&(s.outputs=Object.assign(Object.assign({},e),s.outputs)),s}register(s,t){this.components.has(s)||this.components.set(s,[]),this.components.get(s).push(t)}}{constructor(t){super(t),this.type=cx}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Zo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();var j=(()=>{return(i=j||(j={})).Right="right",i.Below="below",j;var i})(),Fe=(()=>{return(i=Fe||(Fe={})).ScaleLegend="scaleLegend",i.Legend="legend",Fe;var i})(),f=(()=>{return(i=f||(f={})).Time="time",i.Linear="linear",i.Ordinal="ordinal",i.Quantile="quantile",f;var i})();let it=(()=>{class i{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new n.vpe,this.legendLabelActivate=new n.vpe,this.legendLabelDeactivate=new n.vpe,this.LegendPosition=j,this.LegendType=Fe}ngOnChanges(t){this.update()}update(){let t=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===j.Right)&&(t=this.legendType===Fe.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-t)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==j.Right?this.chartWidth:Math.floor(this.view[0]*t/12)}getLegendType(){return this.legendOptions.scaleType===f.Linear?Fe.ScaleLegend:Fe.Legend}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[n._Bn([es]),n.TTD],ngContentSelectors:Mo,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(t,e){1&t&&(n.F$t(),n.TgZ(0,"div",0),n.O4$(),n.TgZ(1,"svg",1),n.Hsn(2),n.qZA(),n.YNc(3,Pg,1,5,"ngx-charts-scale-legend",2),n.YNc(4,Ng,1,7,"ngx-charts-legend",3),n.qZA()),2&t&&(n.Udp("width",e.view[0],"px"),n.Q6J("@animationState","active")("@.disabled",!e.animations),n.xp6(1),n.uIk("width",e.chartWidth)("height",e.view[1]),n.xp6(2),n.Q6J("ngIf",e.showLegend&&e.legendType===e.LegendType.ScaleLegend),n.xp6(1),n.Q6J("ngIf",e.showLegend&&e.legendType===e.LegendType.Legend))},directives:function(){return[v.O5,Uo,Qo]},encapsulation:2,data:{animation:[(0,T.X$)("animationState",[(0,T.eR)(":enter",[(0,T.oB)({opacity:0}),(0,T.jt)("500ms 100ms",(0,T.oB)({opacity:1}))])])]},changeDetection:0}),i})(),ux=(()=>{class i{constructor(t,e){this.element=t,this.zone=e,this.visible=new n.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const t=()=>{if(!this.element)return;const{offsetHeight:e,offsetWidth:a}=this.element.nativeElement;e&&a?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),i})();function Vi(i){return"[object Date]"===toString.call(i)}let nt=(()=>{class i{constructor(t,e,a,o){this.chartElement=t,this.zone=e,this.cd=a,this.platformId=o,this.scheme="cool",this.schemeType=f.Ordinal,this.animations=!0,this.select=new n.vpe}ngOnInit(){(0,v.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new ux(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())}ngOnChanges(t){this.update()}update(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{const t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,e;const a=this.chartElement.nativeElement;if((0,v.NF)(this.platformId)&&null!==a.parentNode){const o=a.parentNode.getBoundingClientRect();t=o.width,e=o.height}return t&&e?{width:t,height:e}:null}formatDates(){for(let t=0;t<this.results.length;t++){const e=this.results[t];if(e.label=e.name,Vi(e.label)&&(e.label=e.label.toLocaleDateString()),e.series)for(let a=0;a<e.series.length;a++){const o=e.series[a];o.label=o.name,Vi(o.label)&&(o.label=o.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,v.NF)(this.platformId))return;const e=(0,fr.R)(window,"resize").pipe((0,xr.b)(200)).subscribe(a=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=e}cloneData(t){const e=[];for(const a of t){const o={name:a.name};if(void 0!==a.value&&(o.value=a.value),void 0!==a.series){o.series=[];for(const r of a.series){const l=Object.assign({},r);o.series.push(l)}}void 0!==a.extra&&(o.extra=JSON.parse(JSON.stringify(a.extra))),e.push(o)}return e}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.Lbi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[n.TTD],decls:1,vars:0,template:function(t,e){1&t&&n._UZ(0,"div")},encapsulation:2}),i})();var pt=(()=>{return(i=pt||(pt={})).Top="top",i.Bottom="bottom",i.Left="left",i.Right="right",pt;var i})();let is=(()=>{class i{constructor(t){this.textHeight=25,this.margin=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case pt.Top:case pt.Bottom:this.y=this.offset,this.x=this.width/2;break;case pt.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case pt.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[n.TTD],attrs:Yg,decls:2,vars:6,template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"text"),n._uU(1),n.qZA()),2&t&&(n.uIk("stroke-width",e.strokeWidth)("x",e.x)("y",e.y)("text-anchor",e.textAnchor)("transform",e.transform),n.xp6(1),n.hij(" ",e.label," "))},encapsulation:2,changeDetection:0}),i})();function de(i,s=16){return"string"!=typeof i?"number"==typeof i?i+"":"":(i=i.trim()).length<=s?i:`${i.slice(0,s)}...`}function No(i,s){if(i.length>s){const t=[],e=Math.floor(i.length/s);for(let a=0;a<i.length;a++)a%e==0&&t.push(i[a]);i=t}return i}var Lt=(()=>{return(i=Lt||(Lt={})).Start="start",i.Middle="middle",i.End="end",Lt;var i})();let Yo=(()=>{class i{constructor(t){this.platformId=t,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new n.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Lt.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,v.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);t!==this.height&&(this.height=t,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const t=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(a){return"Date"===a.constructor.name?a.toLocaleDateString():a.toLocaleString()};const e=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(a){return this.scale(a)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",e&&0!==e?(this.textTransform=`rotate(${e})`,this.textAnchor=Lt.End,this.verticalSpacing=10):this.textAnchor=Lt.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(t){let e=0;this.maxTicksLength=0;for(let c=0;c<t.length;c++){const u=this.tickFormat(t[c]).toString();let d=u.length;this.trimTicks&&(d=this.tickTrim(u).length),d>this.maxTicksLength&&(this.maxTicksLength=d)}const r=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let l=r;const h=Math.floor(this.width/t.length);for(;l>h&&e>-90;)e-=30,l=Math.cos(e*(Math.PI/180))*r;return this.approxHeight=Math.max(Math.abs(Math.sin(e*(Math.PI/180))*r),10),e}getTicks(){let t;const e=this.getMaxTicks(20),a=this.getMaxTicks(100);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[a]):(t=this.scale.domain(),t=No(t,e)),t}getMaxTicks(t){return Math.floor(this.width/t)}tickTransform(t){return"translate("+this.adjustedScale(t)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(t){return this.trimTicks?de(t,this.maxTickLength):t}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Lbi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&n.Gf(Fo,5),2&t){let a;n.iGM(a=n.CRH())&&(e.ticksElement=a.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:Ig,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g",null,0),n.YNc(2,Xg,5,7,"g",1),n.qZA(),n.YNc(3,Rg,2,2,"g",2)),2&t&&(n.xp6(2),n.Q6J("ngForOf",e.ticks),n.xp6(1),n.Q6J("ngForOf",e.ticks))},directives:[v.sg,v.O5],encapsulation:2,changeDetection:0}),i})(),Ot=(()=>{class i{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=pt.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new n.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=pt}ngOnChanges(t){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:t}){const e=t+25+5;e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({height:t})},0))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(t,e){if(1&t&&n.Gf(Yo,5),2&t){let a;n.iGM(a=n.CRH())&&(e.ticksComponent=a.first)}},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:Jg,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,zg,1,12,"g",0),n.YNc(2,Gg,1,5,"g",1),n.qZA()),2&t&&(n.uIk("class",e.xAxisClassName)("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.xScale),n.xp6(1),n.Q6J("ngIf",e.showLabel))},directives:[v.O5,Yo,is],encapsulation:2,changeDetection:0}),i})();function Wt(i,s,t,e,a,[o,r,l,h]){let c="";return c=`M${[i+a,s]}`,c+="h"+((t=0===(t=Math.floor(t))?1:t)-2*a),c+=r?`a${[a,a]} 0 0 1 ${[a,a]}`:`h${a}v${a}`,c+="v"+((e=0===(e=Math.floor(e))?1:e)-2*a),c+=h?`a${[a,a]} 0 0 1 ${[-a,a]}`:`v${a}h${-a}`,c+="h"+(2*a-t),c+=l?`a${[a,a]} 0 0 1 ${[-a,-a]}`:`h${-a}v${-a}`,c+="v"+(2*a-e),c+=o?`a${[a,a]} 0 0 1 ${[a,-a]}`:`v${-a}h${a}`,c+="z",c}let Io=(()=>{class i{constructor(t){this.platformId=t,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new n.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Lt.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=pt}ngOnChanges(t){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,v.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);t!==this.width&&(this.width=t,this.dimensionsChanged.emit({width:t}),setTimeout(()=>this.updateDims()))}update(){let t;const e=this.orient===pt.Top||this.orient===pt.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,t=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(a){return"Date"===a.constructor.name?a.toLocaleDateString():a.toLocaleString()},this.adjustedScale=t.bandwidth?function(a){return t(a)+.5*t.bandwidth()}:t,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case pt.Top:case pt.Bottom:this.transform=function(a){return"translate("+this.adjustedScale(a)+",0)"},this.textAnchor=Lt.Middle,this.y2=this.innerTickSize*e,this.y1=this.tickSpacing*e,this.dy=e<0?"0em":".71em";break;case pt.Left:this.transform=function(a){return"translate(0,"+this.adjustedScale(a)+")"},this.textAnchor=Lt.End,this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em";break;case pt.Right:this.transform=function(a){return"translate(0,"+this.adjustedScale(a)+")"},this.textAnchor=Lt.Start,this.x2=this.innerTickSize*-e,this.x1=this.tickSpacing*-e,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(t=>t.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(t=>t.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Wt(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let t;const e=this.getMaxTicks(20),a=this.getMaxTicks(50);return this.tickValues?t=this.tickValues:this.scale.ticks?t=this.scale.ticks.apply(this.scale,[a]):(t=this.scale.domain(),t=No(t,e)),t}getMaxTicks(t){return Math.floor(this.height/t)}tickTransform(t){return`translate(${this.adjustedScale(t)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(t){return this.trimTicks?de(t,this.maxTickLength):t}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(a=>this.tickTrim(this.tickFormat(a)).length))}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Lbi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(t,e){if(1&t&&n.Gf(Fo,5),2&t){let a;n.iGM(a=n.CRH())&&(e.ticksElement=a.first)}},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:qg,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g",null,0),n.YNc(2,Wg,5,9,"g",1),n.qZA(),n.YNc(3,Qg,1,2,"path",2),n.YNc(4,Kg,2,2,"g",3),n.YNc(5,im,2,1,"g",3)),2&t&&(n.xp6(2),n.Q6J("ngForOf",e.ticks),n.xp6(1),n.Q6J("ngIf",e.referenceLineLength>1&&e.refMax&&e.refMin&&e.showRefLines),n.xp6(1),n.Q6J("ngForOf",e.ticks),n.xp6(1),n.Q6J("ngForOf",e.referenceLines))},directives:[v.sg,v.O5],encapsulation:2,changeDetection:0}),i})(),St=(()=>{class i{constructor(){this.showGridLines=!1,this.yOrient=pt.Left,this.yAxisOffset=0,this.dimensionsChanged=new n.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(t){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===pt.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):(this.offset=this.offset,this.transform=`translate(${this.offset} , 0)`),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:t}){t!==this.labelOffset&&this.yOrient===pt.Right?(this.labelOffset=t+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0)):t!==this.labelOffset&&(this.labelOffset=t,setTimeout(()=>{this.dimensionsChanged.emit({width:t})},0))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(t,e){if(1&t&&n.Gf(Io,5),2&t){let a;n.iGM(a=n.CRH())&&(e.ticksComponent=a.first)}},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:nm,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g"),n.YNc(1,sm,1,14,"g",0),n.YNc(2,am,1,5,"g",1),n.qZA()),2&t&&(n.uIk("class",e.yAxisClassName)("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.yScale),n.xp6(1),n.Q6J("ngIf",e.showLabel))},directives:[v.O5,Io,is],encapsulation:2,changeDetection:0}),i})(),Xo=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[v.ez]]}),i})();var Dt=(()=>{return(i=Dt||(Dt={})).popover="popover",i.tooltip="tooltip",Dt;var i})(),ge=(()=>{return(i=ge||(ge={}))[i.all="all"]="all",i[i.focus="focus"]="focus",i[i.mouseover="mouseover"]="mouseover",ge;var i})();let Jt=(()=>{class i{constructor(t,e,a){this.tooltipService=t,this.viewContainerRef=e,this.renderer=a,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=E.Top,this.tooltipAlignment=E.Center,this.tooltipType=Dt.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=ge.all,this.tooltipImmediateExit=!1,this.show=new n.vpe,this.hide=new n.vpe}get listensForFocus(){return this.tooltipShowEvent===ge.all||this.tooltipShowEvent===ge.focus}get listensForHover(){return this.tooltipShowEvent===ge.all||this.tooltipShowEvent===ge.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(t){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(t))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(t){if(this.component||this.tooltipDisabled)return;const e=t?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const a=this.createBoundOptions();this.component=this.tooltipService.create(a),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},e)}addHideListeners(t){this.mouseEnterContentEvent=this.renderer.listen(t,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(t,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",e=>{t.contains(e.target)||this.hideTooltip()}))}hideTooltip(t=!1){if(!this.component)return;const e=()=>{this.mouseLeaveContentEvent&&this.mouseLeaveContentEvent(),this.mouseEnterContentEvent&&this.mouseEnterContentEvent(),this.documentClickEvent&&this.documentClickEvent(),this.hide.emit(!0),this.tooltipService.destroy(this.component),this.component=void 0};clearTimeout(this.timeout),t?e():this.timeout=setTimeout(e,this.tooltipHideTimeout)}createBoundOptions(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(es),n.Y36(n.s_b),n.Y36(n.Qsj))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngx-tooltip",""]],hostBindings:function(t,e){1&t&&n.NdJ("focusin",function(){return e.onFocus()})("blur",function(){return e.onBlur()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(o){return e.onMouseLeave(o.target)})("click",function(){return e.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTitle:"tooltipTitle",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),i})(),$o=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Zo,es],imports:[[v.ez]]}),i})();function bt(i){return i instanceof Date?i.toLocaleDateString():i.toLocaleString()}function ft(i){return i.toLocaleString().replace(/[&'`"<>]/g,s=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[s]))}const Ro={};function Ct(){let i=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return i=`a${i}`,Ro[i]?Ct():(Ro[i]=!0,i)}var z=(()=>{return(i=z||(z={})).Vertical="vertical",i.Horizontal="horizontal",z;var i})(),me=(()=>{return(i=me||(me={})).Standard="standard",i.Stacked="stacked",me;var i})();let di=(()=>{class i{constructor(){this.type=me.Standard,this.tooltipDisabled=!1,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.barVisible=!1,this.barOrientation=z,this.placementTypes=E,this.styleTypes=Dt}ngOnInit(){this.gradientId="grad"+Ct().toString(),this.gradientFill=`url(#${this.gradientId})`}ngOnChanges(){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const t=this.data.series.findIndex(e=>{const a=e.name;return a&&this.visibleValue&&a.toString()===this.visibleValue.toString()&&void 0!==e.value});if(-1!==t)return this.mapDataPointToCircle(this.data.series[t],t)}mapDataPointToCircle(t,e){const a=this.data.name,o=t.value,r=t.name,l=bt(r);let h;h=this.xScale(this.scaleType===f.Time?r:this.scaleType===f.Linear?Number(r):r);const c=this.yScale(this.type===me.Standard?o:t.d1),d=this.yScale.range()[0]-c;let m;return m=this.colors.getColor(this.colors.scaleType===f.Linear?this.type===me.Standard?o:t.d1:a),{classNames:[`circle-data-${e}`],value:o,label:r,data:Object.assign({},t,{series:a,value:o,name:r}),cx:h,cy:c,radius:5,height:d,tooltipLabel:l,color:m,opacity:1,seriesName:a,gradientStops:this.getGradientStops(m),min:t.min,max:t.max}}getTooltipText({tooltipLabel:t,value:e,seriesName:a,min:o,max:r}){return`\n <span class="tooltip-label">${ft(a)} \u2022 ${ft(t)}</span>\n <span class="tooltip-val">${e.toLocaleString()}${this.getTooltipMinMaxText(o,r)}</span>\n `}getTooltipMinMaxText(t,e){if(void 0!==t||void 0!==e){let a=" (";return void 0!==t?(void 0===e&&(a+="\u2265"),a+=t.toLocaleString(),void 0!==e&&(a+=" - ")):void 0!==e&&(a+="\u2264"),void 0!==e&&(a+=e.toLocaleString()),a+=")",a}return""}getGradientStops(t){return[{offset:0,color:t,opacity:.2},{offset:100,color:t,opacity:1}]}onClick(t){this.select.emit(t)}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(a=>t.name===a.name)}activateCircle(){this.barVisible=!0,this.activate.emit({name:this.data.name})}deactivateCircle(){this.barVisible=!1,this.circle.opacity=0,this.deactivate.emit({name:this.data.name})}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-circle-series",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[n.TTD],attrs:om,decls:1,vars:1,consts:[[4,"ngIf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],["class","tooltip-bar",4,"ngIf"],["ngx-charts-circle","","ngx-tooltip","",1,"circle",3,"cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],[1,"tooltip-bar"]],template:function(t,e){1&t&&n.YNc(0,cm,5,21,"g",0),2&t&&n.Q6J("ngIf",e.circle)},directives:function(){return[v.O5,pe,Ui,Jt]},encapsulation:2,data:{animation:[(0,T.X$)("animationState",[(0,T.eR)(":enter",[(0,T.oB)({opacity:0}),(0,T.jt)(250,(0,T.oB)({opacity:1}))])])]},changeDetection:0}),i})(),Ui=(()=>{class i{constructor(){this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(t){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(t,e){1&t&&n.NdJ("click",function(){return e.onClick()})("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{classNames:"classNames",cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[n.TTD],attrs:hm,decls:1,vars:8,template:function(t,e){1&t&&(n.O4$(),n._UZ(0,"circle")),2&t&&n.uIk("cx",e.cx)("cy",e.cy)("r",e.r)("fill",e.fill)("stroke",e.stroke)("opacity",e.circleOpacity)("class",e.classNames)("pointer-events",e.pointerEvents)},encapsulation:2,changeDetection:0}),i})(),Jo=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:um,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(t,e){1&t&&(n.O4$(),n._UZ(0,"rect",0)),2&t&&n.uIk("height",e.height)("width",e.width)("x",e.x)("y",e.y)},encapsulation:2,changeDetection:0}),i})();var ze=(()=>{return(i=ze||(ze={})).Odd="odd",i.Even="even",ze;var i})();let ns=(()=>{class i{ngOnChanges(t){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(t=>{let e,a,o,r,l,h=ze.Odd;if(this.orient===z.Vertical){const c=this.xScale(t.name);Number.parseInt((c/this.xScale.step()).toString(),10)%2==1&&(h=ze.Even),e=this.xScale.bandwidth()*this.xScale.paddingInner(),a=this.xScale.bandwidth()+e,o=this.dims.height,r=this.xScale(t.name)-e/2,l=0}else if(this.orient===z.Horizontal){const c=this.yScale(t.name);Number.parseInt((c/this.yScale.step()).toString(),10)%2==1&&(h=ze.Even),e=this.yScale.bandwidth()*this.yScale.paddingInner(),a=this.dims.width,o=this.yScale.bandwidth()+e,r=0,l=this.yScale(t.name)-e/2}return{name:t.name,class:h,height:o,width:a,x:r,y:l}})}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[n.TTD],attrs:dm,decls:1,vars:1,consts:[["ngx-charts-grid-panel","",3,"height","width","x","y","grid-panel","odd","even",4,"ngFor","ngForOf"],["ngx-charts-grid-panel","",3,"height","width","x","y"]],template:function(t,e){1&t&&n.YNc(0,gm,1,10,"g",0),2&t&&n.Q6J("ngForOf",e.gridPanels)},directives:[v.sg,Jo],encapsulation:2,changeDetection:0}),i})(),pe=(()=>{class i{constructor(){this.orientation=z.Vertical}ngOnChanges(t){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===z.Horizontal?this.x2="100%":this.orientation===z.Vertical&&(this.y1="100%")}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[n.TTD],attrs:mm,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"linearGradient",0),n.YNc(1,pm,1,5,"stop",1),n.qZA()),2&t&&(n.Q6J("id",e.name),n.uIk("x1",e.x1)("y1",e.y1)("x2",e.x2)("y2",e.y2),n.xp6(1),n.Q6J("ngForOf",e.stops))},directives:[v.sg],encapsulation:2,changeDetection:0}),i})(),ss=(()=>{class i{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(t){this.stopsInput=t}ngOnChanges(t){this.r="30%",("color"in t||"startOpacity"in t||"endOpacity"in t)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops",color:"color",name:"name",startOpacity:"startOpacity"},features:[n.TTD],attrs:fm,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"radialGradient",0),n.YNc(1,xm,1,5,"stop",1),n.qZA()),2&t&&(n.Q6J("id",e.name),n.uIk("cx",e.cx)("cy",e.cy)("r",e.r),n.xp6(1),n.Q6J("ngForOf",e.stops))},directives:[v.sg],encapsulation:2,changeDetection:0}),i})(),as=(()=>{class i{constructor(t){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new n.vpe,this.animationsLoaded=!1,this.hasGradient=!1,this.barOrientation=z,this.element=t.nativeElement}ngOnChanges(){this.update(),this.animationsLoaded||(this.loadAnimation(),this.animationsLoaded=!0)}update(){this.gradientId="grad"+Ct().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl()}loadAnimation(){this.areaPath=this.startingPath,setTimeout(this.updatePathEl.bind(this),100)}updatePathEl(){const t=ut(this.element).select(".area");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.startOpacity},{offset:100,color:this.fill,opacity:this.endOpacity}]}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-area",""]],inputs:{opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",animations:"animations",data:"data",path:"path",startingPath:"startingPath",fill:"fill",stops:"stops"},outputs:{select:"select"},features:[n.TTD],attrs:_m,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(t,e){1&t&&(n.YNc(0,vm,2,3,"defs",0),n.O4$(),n._UZ(1,"path",1)),2&t&&(n.Q6J("ngIf",e.gradient),n.xp6(1),n.Udp("opacity",e.opacity),n.uIk("d",e.areaPath)("fill",e.gradient?e.gradientFill:e.fill))},directives:[v.O5,pe],encapsulation:2,changeDetection:0}),i})();function zo(i,s,t,e){return t*(1-Math.pow(2,-10*i/e))*1024/1023+s}function Go(i,s,t,e,a){const o=Number(i),r=Number(s),l=o>r,h=Math.max(0,t),c=Math.pow(10,h),u=1e3*Number(e);let d;function g(m){let x;const _=m-d;x=l?o-zo(_,0,o-r,u):zo(_,o,r-o,u),x=l?x<r?r:x:x>r?r:x,x=Math.round(x*c)/c;const p=_<u;if(a({value:x,progress:_,timestamp:m,finished:!p}),p)return requestAnimationFrame(y=>g(y))}return requestAnimationFrame(m=>(d=m,g(m)))}let os,ji=(()=>{class i{constructor(t,e){this.cd=t,this.countDuration=1,this.countPrefix="",this.countSuffix="",this.countChange=new n.vpe,this.countFinish=new n.vpe,this.value="",this._countDecimals=0,this._countTo=0,this._countFrom=0,this.nativeElement=e.nativeElement}set countDecimals(t){this._countDecimals=t}get countDecimals(){return this._countDecimals?this._countDecimals:function(i){const s=Number(i);return s%1!=0&&Math.abs(s)<=10?2:0}(this.countTo)}set countTo(t){this._countTo=parseFloat(t),this.start()}get countTo(){return this._countTo}set countFrom(t){this._countFrom=parseFloat(t),this.start()}get countFrom(){return this._countFrom}ngOnDestroy(){cancelAnimationFrame(this.animationReq)}start(){cancelAnimationFrame(this.animationReq);const t=this.valueFormatting||(a=>`${this.countPrefix}${a.toLocaleString()}${this.countSuffix}`);this.animationReq=Go(this.countFrom,this.countTo,this.countDecimals,this.countDuration,({value:a,progress:o,finished:r})=>{this.value=t(a),this.cd.markForCheck(),r||this.countChange.emit({value:this.value,progress:o}),r&&this.countFinish.emit({value:this.value,progress:o})})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.sBO),n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","ngx-charts-count-up",""]],inputs:{countDuration:"countDuration",countPrefix:"countPrefix",countSuffix:"countSuffix",countDecimals:"countDecimals",countTo:"countTo",countFrom:"countFrom",valueFormatting:"valueFormatting"},outputs:{countChange:"countChange",countFinish:"countFinish"},attrs:Tm,decls:1,vars:1,template:function(t,e){1&t&&n._uU(0),2&t&&n.hij(" ",e.value," ")},encapsulation:2}),i})();"undefined"!=typeof window?os=window:"undefined"!=typeof global&&(os=global);const Wo=os.MouseEvent;function rs(i,s=!1,t=!0){if("function"==typeof Wo)return new Wo(i,{bubbles:s,cancelable:t});{const e=document.createEvent("MouseEvent");return e.initEvent(i,s,t),e}}let gi=(()=>{class i{constructor(t){this.platformId=t,this.anchorOpacity=0,this.anchorPos=-1,this.anchorValues=[],this.placementTypes=E,this.styleTypes=Dt,this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new n.vpe}getValues(t){const e=[];for(const a of this.results){const o=a.series.find(l=>l.name.toString()===t.toString());let r=a.name;if(r instanceof Date&&(r=r.toLocaleDateString()),o){const l=o.name;let c,h=o.value;if(this.showPercentage&&(h=(o.d1-o.d0).toFixed(2)+"%"),this.colors.scaleType===f.Linear){let d=h;o.d1&&(d=o.d1),c=this.colors.getColor(d)}else c=this.colors.getColor(a.name);const u=Object.assign({},o,{value:h,name:l,series:r,min:o.min,max:o.max,color:c});e.push(u)}}return e}mouseMove(t){if(!(0,v.NF)(this.platformId))return;const e=t.pageX-t.target.getBoundingClientRect().left,a=this.findClosestPointIndex(e),o=this.xSet[a];if(this.anchorPos=this.xScale(o),this.anchorPos=Math.max(0,this.anchorPos),this.anchorPos=Math.min(this.dims.width,this.anchorPos),this.anchorValues=this.getValues(o),this.anchorPos!==this.lastAnchorPos){const r=rs("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(r),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(t){let e=0,a=this.xSet.length-1,o=Number.MAX_VALUE,r=0;for(;e<=a;){const l=(e+a)/2|0,h=this.xScale(this.xSet[l]),c=Math.abs(h-t);if(c<o&&(o=c,r=l),h<t)e=l+1;else{if(!(h>t)){o=0,r=l;break}a=l-1}}return r}showTooltip(){const t=rs("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(t)}hideTooltip(){const t=rs("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(t),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(t){let e="";return e+=void 0!==t.series?t.series:"???",e+=": ",void 0!==t.value&&(e+=t.value.toLocaleString()),(void 0!==t.min||void 0!==t.max)&&(e+=" (",void 0!==t.min?(void 0===t.max&&(e+="\u2265"),e+=t.min.toLocaleString(),void 0!==t.max&&(e+=" - ")):void 0!==t.max&&(e+="\u2264"),void 0!==t.max&&(e+=t.max.toLocaleString()),e+=")"),e}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Lbi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(t,e){if(1&t&&n.Gf(ym,5),2&t){let a;n.iGM(a=n.CRH())&&(e.tooltipAnchor=a.first)}},inputs:{showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},attrs:bm,decls:6,vars:18,consts:[["y","0",1,"tooltip-area",2,"opacity","0","cursor","auto",3,"mousemove","mouseleave"],["defaultTooltipTemplate",""],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],["tooltipAnchor",""],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(t,e){if(1&t&&(n.O4$(),n.TgZ(0,"g"),n.TgZ(1,"rect",0),n.NdJ("mousemove",function(o){return e.mouseMove(o)})("mouseleave",function(){return e.hideTooltip()}),n.qZA(),n.YNc(2,wm,2,1,"ng-template",null,1,n.W1O),n._UZ(4,"rect",2,3),n.qZA()),2&t){const a=n.MAs(3);n.xp6(1),n.uIk("x",0)("width",e.dims.width)("height",e.dims.height),n.xp6(3),n.Udp("opacity",e.anchorOpacity)("pointer-events","none"),n.Q6J("@animationState",0!==e.anchorOpacity?"active":"inactive")("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement",e.placementTypes.Right)("tooltipType",e.styleTypes.tooltip)("tooltipSpacing",15)("tooltipTemplate",e.tooltipTemplate?e.tooltipTemplate:a)("tooltipContext",e.anchorValues)("tooltipImmediateExit",!0),n.uIk("x",e.anchorPos)("width",1)("height",e.dims.height)}},directives:[Jt,v.sg],encapsulation:2,data:{animation:[(0,T.X$)("animationState",[(0,T.eR)("inactive => active",[(0,T.oB)({opacity:0}),(0,T.jt)(250,(0,T.oB)({opacity:.7}))]),(0,T.eR)("active => inactive",[(0,T.oB)({opacity:.7}),(0,T.jt)(250,(0,T.oB)({opacity:0}))])])]},changeDetection:0}),i})(),mi=(()=>{class i{constructor(t,e){this.cd=e,this.height=50,this.select=new n.vpe,this.onDomainChange=new n.vpe,this.initialized=!1,this.element=t.nativeElement}ngOnChanges(t){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const t=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${t})`,this.filterId="filter"+Ct().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let t=[];for(const a of this.results)for(const o of a.series)t.includes(o.name)||t.push(o.name);let e=[];return this.scaleType===f.Time?e=[Math.min(...t),Math.max(...t)]:this.scaleType===f.Linear?(t=t.map(r=>Number(r)),e=[Math.min(...t),Math.max(...t)]):e=t,e}getXScale(){let t;return this.scaleType===f.Time?t=ke().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===f.Linear?t=Q().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===f.Ordinal&&(t=Le().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),t}addBrush(){if(this.brush)return;const t=this.height,e=this.view[0];this.brush=function(i){var l,s=Rh,t=$h,e=Jh,a=!0,o=Bs("start","brush","end"),r=6;function h(p){var y=p.property("__brush",_).selectAll(".overlay").data([ei("overlay")]);y.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",se.overlay).merge(y).each(function(){var C=An(this).extent;ut(this).attr("x",C[0][0]).attr("y",C[0][1]).attr("width",C[1][0]-C[0][0]).attr("height",C[1][1]-C[0][1])}),p.selectAll(".selection").data([ei("selection")]).enter().append("rect").attr("class","selection").attr("cursor",se.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var w=p.selectAll(".handle").data(i.handles,function(C){return C.type});w.exit().remove(),w.enter().append("rect").attr("class",function(C){return"handle handle--"+C.type}).attr("cursor",function(C){return se[C.type]}),p.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",g).filter(e).on("touchstart.brush",g).on("touchmove.brush",m).on("touchend.brush touchcancel.brush",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var p=ut(this),y=An(this).selection;y?(p.selectAll(".selection").style("display",null).attr("x",y[0][0]).attr("y",y[0][1]).attr("width",y[1][0]-y[0][0]).attr("height",y[1][1]-y[0][1]),p.selectAll(".handle").style("display",null).attr("x",function(w){return"e"===w.type[w.type.length-1]?y[1][0]-r/2:y[0][0]-r/2}).attr("y",function(w){return"s"===w.type[0]?y[1][1]-r/2:y[0][1]-r/2}).attr("width",function(w){return"n"===w.type||"s"===w.type?y[1][0]-y[0][0]+r:r}).attr("height",function(w){return"e"===w.type||"w"===w.type?y[1][1]-y[0][1]+r:r})):p.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(p,y,w){var C=p.__brush.emitter;return!C||w&&C.clean?new d(p,y,w):C}function d(p,y,w){this.that=p,this.args=y,this.state=p.__brush,this.active=0,this.clean=w}function g(p){if((!l||p.touches)&&t.apply(this,arguments)){var Y,M,F,I,G,q,X,st,ce,ee,ie,y=this,w=p.target.__data__.type,C="selection"===(a&&p.metaKey?w="overlay":w)?ua:a&&p.altKey?He:Ze,S=i===Oi?null:Ih[w],D=i===Fi?null:Xh[w],k=An(y),J=k.extent,H=k.selection,V=J[0][0],O=J[0][1],mt=J[1][0],xt=J[1][1],K=0,tt=0,Mt=S&&D&&a&&p.shiftKey,_t=Array.from(p.touches||[p],Z=>{const ht=Z.identifier;return(Z=Vs(Z,y)).point0=Z.slice(),Z.identifier=ht,Z});if("overlay"===w){H&&(ce=!0);const Z=[_t[0],_t[1]||_t[0]];k.selection=H=[[Y=i===Oi?V:At(Z[0][0],Z[1][0]),F=i===Fi?O:At(Z[0][1],Z[1][1])],[G=i===Oi?mt:wt(Z[0][0],Z[1][0]),X=i===Fi?xt:wt(Z[0][1],Z[1][1])]],_t.length>1&&ct()}else Y=H[0][0],F=H[0][1],G=H[1][0],X=H[1][1];M=Y,I=F,q=G,st=X;var fe=ut(y).attr("pointer-events","none"),L=fe.selectAll(".overlay").attr("cursor",se[w]);_n(y);var B=u(y,arguments,!0).beforestart();if(p.touches)B.moved=b,B.ended=W;else{var N=ut(p.view).on("mousemove.brush",b,!0).on("mouseup.brush",W,!0);a&&N.on("keydown.brush",Et,!0).on("keyup.brush",Bt,!0),Ul(p.view)}c.call(y),B.start(p,C.name)}function b(Z){for(const ht of Z.changedTouches||[Z])for(const pi of _t)pi.identifier===ht.identifier&&(pi.cur=Vs(ht,y));if(Mt&&!ee&&!ie&&1===_t.length){const ht=_t[0];da(ht.cur[0]-ht[0])>da(ht.cur[1]-ht[1])?ie=!0:ee=!0}for(const ht of _t)ht.cur&&(ht[0]=ht.cur[0],ht[1]=ht.cur[1]);ce=!0,bn(Z),ct(Z)}function ct(Z){const ht=_t[0],pi=ht.point0;var xe;switch(K=ht[0]-pi[0],tt=ht[1]-pi[1],C){case Cn:case ua:S&&(K=wt(V-Y,At(mt-G,K)),M=Y+K,q=G+K),D&&(tt=wt(O-F,At(xt-X,tt)),I=F+tt,st=X+tt);break;case Ze:_t[1]?(S&&(M=wt(V,At(mt,_t[0][0])),q=wt(V,At(mt,_t[1][0])),S=1),D&&(I=wt(O,At(xt,_t[0][1])),st=wt(O,At(xt,_t[1][1])),D=1)):(S<0?(K=wt(V-Y,At(mt-Y,K)),M=Y+K,q=G):S>0&&(K=wt(V-G,At(mt-G,K)),M=Y,q=G+K),D<0?(tt=wt(O-F,At(xt-F,tt)),I=F+tt,st=X):D>0&&(tt=wt(O-X,At(xt-X,tt)),I=F,st=X+tt));break;case He:S&&(M=wt(V,At(mt,Y-K*S)),q=wt(V,At(mt,G+K*S))),D&&(I=wt(O,At(xt,F-tt*D)),st=wt(O,At(xt,X+tt*D)))}q<M&&(S*=-1,xe=Y,Y=G,G=xe,xe=M,M=q,q=xe,w in ma&&L.attr("cursor",se[w=ma[w]])),st<I&&(D*=-1,xe=F,F=X,X=xe,xe=I,I=st,st=xe,w in pa&&L.attr("cursor",se[w=pa[w]])),k.selection&&(H=k.selection),ee&&(M=H[0][0],q=H[1][0]),ie&&(I=H[0][1],st=H[1][1]),(H[0][0]!==M||H[0][1]!==I||H[1][0]!==q||H[1][1]!==st)&&(k.selection=[[M,I],[q,st]],c.call(y),B.brush(Z,C.name))}function W(Z){if(Nh(Z),Z.touches){if(Z.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else jl(Z.view,ce),N.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);fe.attr("pointer-events","all"),L.attr("cursor",se.overlay),k.selection&&(H=k.selection),zh(H)&&(k.selection=null,c.call(y)),B.end(Z,C.name)}function Et(Z){switch(Z.keyCode){case 16:Mt=S&&D;break;case 18:C===Ze&&(S&&(G=q-K*S,Y=M+K*S),D&&(X=st-tt*D,F=I+tt*D),C=He,ct());break;case 32:(C===Ze||C===He)&&(S<0?G=q-K:S>0&&(Y=M-K),D<0?X=st-tt:D>0&&(F=I-tt),C=Cn,L.attr("cursor",se.selection),ct());break;default:return}bn(Z)}function Bt(Z){switch(Z.keyCode){case 16:Mt&&(ee=ie=Mt=!1,ct());break;case 18:C===He&&(S<0?G=q:S>0&&(Y=M),D<0?X=st:D>0&&(F=I),C=Ze,ct());break;case 32:C===Cn&&(Z.altKey?(S&&(G=q-K*S,Y=M+K*S),D&&(X=st-tt*D,F=I+tt*D),C=He):(S<0?G=q:S>0&&(Y=M),D<0?X=st:D>0&&(F=I),C=Ze),L.attr("cursor",se[w]),ct());break;default:return}bn(Z)}}function m(p){u(this,arguments).moved(p)}function x(p){u(this,arguments).ended(p)}function _(){var p=this.__brush||{selection:null};return p.extent=wn(s.apply(this,arguments)),p.dim=i,p}return h.move=function(p,y){p.tween?p.on("start.brush",function(w){u(this,arguments).beforestart().start(w)}).on("interrupt.brush end.brush",function(w){u(this,arguments).end(w)}).tween("brush",function(){var w=this,C=w.__brush,S=u(w,arguments),D=C.selection,k=i.input("function"==typeof y?y.apply(this,arguments):y,C.extent),J=he(D,k);function H(V){C.selection=1===V&&null===k?null:J(V),c.call(w),S.brush()}return null!==D&&null!==k?H:H(1)}):p.each(function(){var w=this,C=arguments,S=w.__brush,D=i.input("function"==typeof y?y.apply(w,C):y,S.extent),k=u(w,C).beforestart();_n(w),S.selection=null===D?null:D,c.call(w),k.start().brush().end()})},h.clear=function(p){h.move(p,null)},d.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(p,y){return this.starting?(this.starting=!1,this.emit("start",p,y)):this.emit("brush",p),this},brush:function(p,y){return this.emit("brush",p,y),this},end:function(p,y){return 0==--this.active&&(delete this.state.emitter,this.emit("end",p,y)),this},emit:function(p,y,w){var C=ut(this.that).datum();o.call(p,this.that,new Ph(p,{sourceEvent:y,target:h,selection:i.output(this.state.selection),mode:w,dispatch:o}),C)}},h.extent=function(p){return arguments.length?(s="function"==typeof p?p:yn(wn(p)),h):s},h.filter=function(p){return arguments.length?(t="function"==typeof p?p:yn(!!p),h):t},h.touchable=function(p){return arguments.length?(e="function"==typeof p?p:yn(!!p),h):e},h.handleSize=function(p){return arguments.length?(r=+p,h):r},h.keyModifiers=function(p){return arguments.length?(a=!!p,h):a},h.on=function(){var p=o.on.apply(o,arguments);return p===o?h:p},h}(Fi).extent([[0,0],[e,t]]).on("brush end",({selection:a})=>{const r=(a||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(r),this.cd.markForCheck()}),ut(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),ut(this.element).select(".brush").call(this.brush),ut(this.element).select(".selection").attr("fill",void 0).attr("stroke",void 0).attr("fill-opacity",void 0),this.cd.markForCheck())}getDims(){return{width:this.view[0],height:this.height}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-timeline",""]],inputs:{height:"height",view:"view",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",autoScale:"autoScale",scaleType:"scaleType"},outputs:{select:"select",onDomainChange:"onDomainChange"},features:[n.TTD],attrs:Am,ngContentSelectors:Mo,decls:7,vars:4,consts:[[1,"timeline"],["in","SourceGraphic","type","matrix","values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"],[1,"embedded-chart"],["x","0","y","0",1,"brush-background"],[1,"brush"]],template:function(t,e){1&t&&(n.F$t(),n.O4$(),n.TgZ(0,"g",0),n.TgZ(1,"filter"),n._UZ(2,"feColorMatrix",1),n.qZA(),n.TgZ(3,"g",2),n.Hsn(4),n.qZA(),n._UZ(5,"rect",3),n._UZ(6,"g",4),n.qZA()),2&t&&(n.uIk("transform",e.transform),n.xp6(1),n.uIk("id",e.filterId),n.xp6(4),n.uIk("width",e.view[0])("height",e.height))},styles:[".timeline .brush-background{fill:#0000000d}.timeline .brush .selection{fill:#0000001a;stroke-width:1px;stroke:#888}.timeline .brush .handle{fill-opacity:0}.timeline .embedded-chart{opacity:.6}\n"],encapsulation:2,changeDetection:0}),i})(),Qo=(()=>{class i{constructor(t){this.cd=t,this.horizontal=!1,this.labelClick=new n.vpe,this.labelActivate=new n.vpe,this.labelDeactivate=new n.vpe,this.legendEntries=[]}ngOnChanges(t){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const t=[];for(const e of this.data){const a=bt(e);-1===t.findIndex(r=>r.label===a)&&t.push({label:e,formattedLabel:a,color:this.colors.getColor(e)})}return t}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(a=>t.label===a.name)}activate(t){this.labelActivate.emit(t)}deactivate(t){this.labelDeactivate.emit(t)}trackBy(t,e){return e.label}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[n.TTD],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(t,e){1&t&&(n.TgZ(0,"div"),n.YNc(1,km,3,1,"header",0),n.TgZ(2,"div",1),n.TgZ(3,"ul",2),n.YNc(4,Lm,2,4,"li",3),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Udp("width",e.width,"px"),n.xp6(1),n.Q6J("ngIf",(null==e.title?null:e.title.length)>0),n.xp6(2),n.Udp("max-height",e.height-45,"px"),n.ekj("horizontal-legend",e.horizontal),n.xp6(1),n.Q6J("ngForOf",e.legendEntries)("ngForTrackBy",e.trackBy))},directives:function(){return[v.O5,v.sg,Vo]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:bold}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),i})(),Vo=(()=>{class i{constructor(){this.isActive=!1,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.toggle=new n.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(t,e){1&t&&n.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(t,e){1&t&&(n.TgZ(0,"span",0),n.NdJ("click",function(){return e.select.emit(e.formattedLabel)}),n.TgZ(1,"span",1),n.NdJ("click",function(){return e.toggle.emit(e.formattedLabel)}),n.qZA(),n.TgZ(2,"span",2),n._uU(3),n.qZA(),n.qZA()),2&t&&(n.ekj("active",e.isActive),n.Q6J("title",e.formattedLabel),n.xp6(1),n.Udp("background-color",e.color),n.xp6(2),n.hij(" ",e.trimmedLabel," "))},encapsulation:2,changeDetection:0}),i})(),Uo=(()=>{class i{constructor(){this.horizontal=!1}ngOnChanges(t){const e=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${e})`}gradientString(t,e){e.push(1);const a=[];return t.reverse().forEach((o,r)=>{a.push(`${o} ${Math.round(100*e[r])}%`)}),a.join(", ")}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[n.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(t,e){1&t&&(n.TgZ(0,"div",0),n.TgZ(1,"div",1),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.qZA(),n._UZ(4,"div",2),n.TgZ(5,"div",1),n.TgZ(6,"span"),n._uU(7),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Udp("height",e.horizontal?void 0:e.height,"px")("width",e.width,"px"),n.ekj("horizontal-legend",e.horizontal),n.xp6(3),n.Oqu(e.valueRange[1].toLocaleString()),n.xp6(1),n.Udp("background",e.gradient),n.xp6(3),n.Oqu(e.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),i})(),zt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[v.ez,Xo,$o],v.ez,Xo,$o]}),i})();function ot({width:i,height:s,margins:t,showXAxis:e=!1,showYAxis:a=!1,xAxisHeight:o=0,yAxisWidth:r=0,showXLabel:l=!1,showYLabel:h=!1,showLegend:c=!1,legendType:u=f.Ordinal,legendPosition:d=j.Right,columns:g=12}){let m=t[3],x=i,_=s-t[0]-t[2];if(c&&d===j.Right&&(g-=u===f.Ordinal?2:1),x=x*g/12,x=x-t[1]-t[3],e&&(_-=5,_-=o,l&&(_-=30)),a&&(x-=5,x-=r,m+=r,m+=10,h)){const p=30;x-=p,m+=p}return x=Math.max(0,x),_=Math.max(0,_),{width:Math.floor(x),height:Math.floor(_),xOffset:Math.floor(m)}}let Ko=[{name:"vivid",selectable:!0,group:f.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:f.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:f.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:f.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:f.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:f.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:f.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:f.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:f.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:f.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:f.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:f.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:f.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:f.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:f.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class rt{constructor(s,t,e,a){"string"==typeof s&&(s=Ko.find(o=>o.name===s)),this.colorDomain=s.domain,this.scaleType=t,this.domain=e,this.customColors=a,this.scale=this.generateColorScheme(s,t,this.domain)}generateColorScheme(s,t,e){let a;switch("string"==typeof s&&(s=Ko.find(o=>o.name===s)),t){case f.Quantile:a=ho().range(s.domain).domain(e);break;case f.Ordinal:a=zn().range(s.domain).domain(e);break;case f.Linear:{const o=[...s.domain];1===o.length&&(o.push(o[0]),this.colorDomain=o);const r=oo(0,1,1/o.length);a=Q().range(o).domain(r)}}return a}getColor(s){if(null==s)throw new Error("Value can not be null");if(this.scaleType===f.Linear){const t=Q().domain(this.domain).range([0,1]);return this.scale(t(s))}{if("function"==typeof this.customColors)return this.customColors(s);const t=s.toString();let e;return this.customColors&&this.customColors.length>0&&(e=this.customColors.find(a=>a.name.toLowerCase()===t.toLowerCase())),e?e.value:this.scale(s)}}getLinearGradientStops(s,t){void 0===t&&(t=this.domain[0]);const e=Q().domain(this.domain).range([0,1]),a=yt().domain(this.colorDomain).range([0,1]),o=this.getColor(s),r=e(t),l=this.getColor(t),h=e(s);let c=1,u=r;const d=[];for(d.push({color:l,offset:r,originalOffset:r,opacity:1});u<h&&c<this.colorDomain.length;){const g=this.colorDomain[c],m=a(g);if(m<=r)c++;else{if(m.toFixed(4)>=(h-a.bandwidth()).toFixed(4))break;d.push({color:g,offset:m,opacity:1}),u=m,c++}}if(d[d.length-1].offset<100&&d.push({color:o,offset:h,opacity:1}),h===r)d[0].offset=0,d[1].offset=100;else if(100!==d[d.length-1].offset)for(const g of d)g.offset=(g.offset-r)/(h-r)*100;return d}}let gx=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt]]}),i})(),ds=(()=>{class i{constructor(t){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=t.nativeElement}ngOnChanges(t){t.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+Ct().toString(),this.gradientFill=`url(#${this.gradientId})`,this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()}loadAnimation(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)}updatePathEl(){const t=ut(this.element).select(".bar"),e=this.getPath();this.animations?t.transition().duration(500).attr("d",e):t.attr("d",e)}getGradient(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]}getStartingPath(){if(!this.animations)return this.getPath();let e,t=this.getRadius();return this.roundEdges?this.orientation===z.Vertical?(t=Math.min(this.height,t),e=Wt(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===z.Horizontal&&(t=Math.min(this.width,t),e=Wt(this.x,this.y,1,this.height,0,this.edges)):this.orientation===z.Vertical?e=Wt(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===z.Horizontal&&(e=Wt(this.x,this.y,1,this.height,0,this.edges)),e}getPath(){let e,t=this.getRadius();return this.roundEdges?this.orientation===z.Vertical?(t=Math.min(this.height,t),e=Wt(this.x,this.y,this.width,this.height,t,this.edges)):this.orientation===z.Horizontal&&(t=Math.min(this.width,t),e=Wt(this.x,this.y,this.width,this.height,t,this.edges)):e=Wt(this.x,this.y,this.width,this.height,t,this.edges),e}getRadius(){let t=0;return this.roundEdges&&this.height>5&&this.width>5&&(t=Math.floor(Math.min(5,this.height/2,this.width/2))),t}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let t=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===z.Vertical?t=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===z.Horizontal&&(t=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),t}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===z.Vertical&&0===this.height||this.orientation===z.Horizontal&&0===this.width)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(t,e){1&t&&n.NdJ("mouseenter",function(){return e.onMouseEnter()})("mouseleave",function(){return e.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[n.TTD],attrs:np,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(t,e){1&t&&(n.YNc(0,sp,2,3,"defs",0),n.O4$(),n.TgZ(1,"path",1),n.NdJ("click",function(){return e.select.emit(e.data)}),n.qZA()),2&t&&(n.Q6J("ngIf",e.hasGradient),n.xp6(1),n.ekj("active",e.isActive)("hidden",e.hideBar),n.uIk("d",e.path)("aria-label",e.ariaLabel)("fill",e.hasGradient?e.gradientFill:e.fill))},directives:[v.O5,pe],encapsulation:2,changeDetection:0}),i})(),mx=(()=>{class i extends nt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=j.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new n.vpe,this.deactivate=new n.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxWidth={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=ot({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`}getXScale(){this.xDomain=this.getXDomain();const t=Q().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?t.nice():t}getYScale(){this.yDomain=this.getYDomain();const t=this.yDomain.length/(this.dims.height/this.barPadding+1);return yt().rangeRound([0,this.dims.height]).paddingInner(t).domain(this.yDomain)}getXDomain(){const t=this.results.map(o=>o.value);return[this.xScaleMin?Math.min(this.xScaleMin,...t):Math.min(0,...t),this.xScaleMax?Math.max(this.xScaleMax,...t):Math.max(0,...t)]}getYDomain(){return this.results.map(t=>t.label)}onClick(t){this.select.emit(t)}setColors(){let t;t=this.schemeType===f.Ordinal?this.yDomain:this.xDomain,this.colors=new rt(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===t.scaleType?(t.domain=this.yDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.xDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxWidthChanged(t){t.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,t.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,t.size.width),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e=!1){t=this.results.find(o=>e?o.label===t.name:o.name===t.name),!(this.activeEntries.findIndex(o=>o.name===t.name&&o.value===t.value&&o.series===t.series)>-1)&&(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(o=>e?o.label===t.name:o.name===t.name);const a=this.activeEntries.findIndex(o=>o.name===t.name&&o.value===t.value&&o.series===t.series);this.activeEntries.splice(a,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return i.\u0275fac=function(){let s;return function(e){return(s||(s=n.n5z(i)))(e||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-bar-horizontal"]],contentQueries:function(t,e,a){if(1&t&&n.Suo(a,dt,5),2&t){let o;n.iGM(o=n.CRH())&&(e.tooltipTemplate=o.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",xScaleMax:"xScaleMax",xScaleMin:"xScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-series-horizontal","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","activeEntries","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.NdJ("legendLabelClick",function(o){return e.onClick(o)})("legendLabelActivate",function(o){return e.onActivate(o,!0)})("legendLabelDeactivate",function(o){return e.onDeactivate(o,!0)}),n.O4$(),n.TgZ(1,"g",1),n.YNc(2,ap,1,10,"g",2),n.YNc(3,op,1,9,"g",3),n.TgZ(4,"g",4),n.NdJ("select",function(o){return e.onClick(o)})("activate",function(o){return e.onActivate(o)})("deactivate",function(o){return e.onDeactivate(o)})("dataLabelWidthChanged",function(o){return e.onDataLabelMaxWidthChanged(o)}),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Q6J("view",n.WLB(22,U,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),n.xp6(1),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.xAxis),n.xp6(1),n.Q6J("ngIf",e.yAxis),n.xp6(1),n.Q6J("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("series",e.results)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("activeEntries",e.activeEntries)("roundEdges",e.roundEdges)("animations",e.animations)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("noBarWhenZero",e.noBarWhenZero))},directives:function(){return[it,v.O5,tn,Ot,St]},styles:[lt],encapsulation:2,changeDetection:0}),i})();var gt=(()=>{return(i=gt||(gt={})).Standard="standard",i.Normalized="normalized",i.Stacked="stacked",gt;var i})();let px=(()=>{class i extends nt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=j.Right,this.tooltipDisabled=!1,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new n.vpe,this.deactivate=new n.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0}}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=ot({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.formatDates(),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}getXScale(){this.xDomain=this.getXDomain();const t=this.xDomain.length/(this.dims.width/this.barPadding+1);return yt().range([0,this.dims.width]).paddingInner(t).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const t=Q().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?t.nice():t}getXDomain(){return this.results.map(t=>t.label)}getYDomain(){const t=this.results.map(o=>o.value);let e=this.yScaleMin?Math.min(this.yScaleMin,...t):Math.min(0,...t);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(e=Math.min(e,...this.yAxisTicks));let a=this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(a=Math.max(a,...this.yAxisTicks)),[e,a]}onClick(t){this.select.emit(t)}setColors(){let t;t=this.schemeType===f.Ordinal?this.xDomain:this.yDomain,this.colors=new rt(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===f.Ordinal?(t.domain=this.xDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onDataLabelMaxHeightChanged(t){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),t.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(t,e=!1){t=this.results.find(o=>e?o.label===t.name:o.name===t.name),!(this.activeEntries.findIndex(o=>o.name===t.name&&o.value===t.value&&o.series===t.series)>-1)&&(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(o=>e?o.label===t.name:o.name===t.name);const a=this.activeEntries.findIndex(o=>o.name===t.name&&o.value===t.value&&o.series===t.series);this.activeEntries.splice(a,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return i.\u0275fac=function(){let s;return function(e){return(s||(s=n.n5z(i)))(e||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(t,e,a){if(1&t&&n.Suo(a,dt,5),2&t){let o;n.iGM(o=n.CRH())&&(e.tooltipTemplate=o.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","activeEntries","roundEdges","animations","noBarWhenZero","activate","deactivate","select","dataLabelHeightChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.NdJ("legendLabelClick",function(o){return e.onClick(o)})("legendLabelActivate",function(o){return e.onActivate(o,!0)})("legendLabelDeactivate",function(o){return e.onDeactivate(o,!0)}),n.O4$(),n.TgZ(1,"g",1),n.YNc(2,fp,1,11,"g",2),n.YNc(3,xp,1,9,"g",3),n.TgZ(4,"g",4),n.NdJ("activate",function(o){return e.onActivate(o)})("deactivate",function(o){return e.onDeactivate(o)})("select",function(o){return e.onClick(o)})("dataLabelHeightChanged",function(o){return e.onDataLabelMaxHeightChanged(o)}),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Q6J("view",n.WLB(22,U,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),n.xp6(1),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.xAxis),n.xp6(1),n.Q6J("ngIf",e.yAxis),n.xp6(1),n.Q6J("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("series",e.results)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("activeEntries",e.activeEntries)("roundEdges",e.roundEdges)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero))},directives:function(){return[it,v.O5,en,Ot,St]},styles:[lt],encapsulation:2,changeDetection:0}),i})(),fx=(()=>{class i extends nt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=j.Right,this.tooltipDisabled=!1,this.scaleType=f.Ordinal,this.showGridLines=!0,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.groupPadding=16,this.barPadding=8,this.roundDomains=!1,this.roundEdges=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.activate=new n.vpe,this.deactivate=new n.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.barOrientation=z,this.trackBy=(t,e)=>e.name}update(){super.update(),this.showDataLabel||(this.dataLabelMaxHeight={negative:0,positive:0}),this.margin=[10+this.dataLabelMaxHeight.positive,20,10+this.dataLabelMaxHeight.negative,20],this.dims=ot({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.showDataLabel&&(this.dims.height-=this.dataLabelMaxHeight.negative),this.formatDates(),this.groupDomain=this.getGroupDomain(),this.innerDomain=this.getInnerDomain(),this.valueDomain=this.getValueDomain(),this.groupScale=this.getGroupScale(),this.innerScale=this.getInnerScale(),this.valueScale=this.getValueScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]+this.dataLabelMaxHeight.negative})`}onDataLabelMaxHeightChanged(t,e){t.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,t.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,t.size.height),e===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const t=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return yt().rangeRound([0,this.dims.width]).paddingInner(t).paddingOuter(t/2).domain(this.groupDomain)}getInnerScale(){const t=this.groupScale.bandwidth(),e=this.innerDomain.length/(t/this.barPadding+1);return yt().rangeRound([0,t]).paddingInner(e).domain(this.innerDomain)}getValueScale(){const t=Q().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?t.nice():t}getGroupDomain(){const t=[];for(const e of this.results)t.includes(e.label)||t.push(e.label);return t}getInnerDomain(){const t=[];for(const e of this.results)for(const a of e.series)t.includes(a.label)||t.push(a.label);return t}getValueDomain(){const t=[];for(const o of this.results)for(const r of o.series)t.includes(r.value)||t.push(r.value);return[Math.min(0,...t),this.yScaleMax?Math.max(this.yScaleMax,...t):Math.max(0,...t)]}groupTransform(t){return`translate(${this.groupScale(t.label)}, 0)`}onClick(t,e){e&&(t.series=e.name),this.select.emit(t)}setColors(){let t;t=this.schemeType===f.Ordinal?this.innerDomain:this.valueDomain,this.colors=new rt(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===f.Ordinal?(t.domain=this.innerDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.valueDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t,e,a=!1){const o=Object.assign({},t);e&&(o.series=e.name);const r=this.results.map(l=>l.series).flat().filter(l=>a?l.label===o.name:l.name===o.name&&l.series===o.series);this.activeEntries=[...r],this.activate.emit({value:o,entries:this.activeEntries})}onDeactivate(t,e,a=!1){const o=Object.assign({},t);e&&(o.series=e.name),this.activeEntries=this.activeEntries.filter(r=>a?r.label!==o.name:!(r.name===o.name&&r.series===o.series)),this.deactivate.emit({value:o,entries:this.activeEntries})}}return i.\u0275fac=function(){let s;return function(e){return(s||(s=n.n5z(i)))(e||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(t,e,a){if(1&t&&n.Suo(a,dt,5),2&t){let o;n.iGM(o=n.CRH())&&(e.tooltipTemplate=o.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",showGridLines:"showGridLines",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",gradient:"gradient",schemeType:"schemeType",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",yScaleMax:"yScaleMax",dataLabelFormatting:"dataLabelFormatting"},outputs:{activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:6,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-series-vertical","",3,"activeEntries","xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","roundEdges","animations","noBarWhenZero","select","activate","deactivate","dataLabelHeightChanged"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.NdJ("legendLabelActivate",function(o){return e.onActivate(o,void 0,!0)})("legendLabelDeactivate",function(o){return e.onDeactivate(o,void 0,!0)})("legendLabelClick",function(o){return e.onClick(o)}),n.O4$(),n.TgZ(1,"g",1),n._UZ(2,"g",2),n.YNc(3,_p,1,10,"g",3),n.YNc(4,vp,1,9,"g",4),n.YNc(5,Tp,1,17,"g",5),n.qZA(),n.qZA()),2&t&&(n.Q6J("view",n.WLB(15,U,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),n.xp6(1),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("xScale",e.groupScale)("yScale",e.valueScale)("data",e.results)("dims",e.dims)("orient",e.barOrientation.Vertical),n.xp6(1),n.Q6J("ngIf",e.xAxis),n.xp6(1),n.Q6J("ngIf",e.yAxis),n.xp6(1),n.Q6J("ngForOf",e.results)("ngForTrackBy",e.trackBy))},directives:function(){return[it,ns,v.O5,v.sg,Ot,St,en]},styles:[lt],encapsulation:2,data:{animation:[(0,T.X$)("animationState",[(0,T.eR)(":leave",[(0,T.oB)({opacity:1,transform:"*"}),(0,T.jt)(500,(0,T.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),i})();var $t=(()=>{return(i=$t||($t={})).positive="positive",i.negative="negative",$t;var i})();let tn=(()=>{class i{constructor(){this.type=gt.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.dataLabelWidthChanged=new n.vpe,this.barsForDataLabels=[],this.barOrientation=z}ngOnChanges(t){this.update()}update(){this.updateTooltipSettings();const t={[$t.positive]:0,[$t.negative]:0};let e,a;e=$t.positive,this.type===gt.Normalized&&(a=this.series.map(r=>r.value).reduce((r,l)=>r+l,0));const o=Math.max(this.xScale.domain()[0],0);this.bars=this.series.map(r=>{let l=r.value;const h=this.getLabel(r),c=bt(h);e=l>0?$t.positive:$t.negative;const d={value:l,label:h,roundEdges:this.roundEdges,data:r,formattedLabel:c};if(d.height=this.yScale.bandwidth(),this.type===gt.Standard)d.width=Math.abs(this.xScale(l)-this.xScale(o)),d.x=this.xScale(l<0?l:o),d.y=this.yScale(h);else if(this.type===gt.Stacked){const m=t[e],x=m+l;t[e]+=l,d.width=this.xScale(x)-this.xScale(m),d.x=this.xScale(m),d.y=0,d.offset0=m,d.offset1=x}else if(this.type===gt.Normalized){let m=t[e],x=m+l;t[e]+=l,a>0?(m=100*m/a,x=100*x/a):(m=0,x=0),d.width=this.xScale(x)-this.xScale(m),d.x=this.xScale(m),d.y=0,d.offset0=m,d.offset1=x,l=(x-m).toFixed(2)+"%"}this.colors.scaleType===f.Ordinal?d.color=this.colors.getColor(h):this.type===gt.Standard?(d.color=this.colors.getColor(l),d.gradientStops=this.colors.getLinearGradientStops(l)):(d.color=this.colors.getColor(d.offset1),d.gradientStops=this.colors.getLinearGradientStops(d.offset1,d.offset0));let g=c;return d.ariaLabel=c+" "+l.toLocaleString(),null!=this.seriesName&&(g=`${this.seriesName} \u2022 ${c}`,d.data.series=this.seriesName,d.ariaLabel=this.seriesName+" "+d.ariaLabel),d.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${ft(g)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(l):l.toLocaleString()}</span>\n `,d}),this.updateDataLabels()}updateDataLabels(){if(this.type===gt.Stacked){this.barsForDataLabels=[];const t={};t.series=this.seriesName;const e=this.series.map(o=>o.value).reduce((o,r)=>r>0?o+r:o,0),a=this.series.map(o=>o.value).reduce((o,r)=>r<0?o+r:o,0);t.total=e+a,t.x=0,t.y=0,t.width=this.xScale(t.total>0?e:a),t.height=this.yScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(t=>{var e;const a={};return a.series=null!==(e=this.seriesName)&&void 0!==e?e:t.label,a.total=t.value,a.x=this.xScale(0),a.y=this.yScale(t.label),a.width=this.xScale(a.total)-this.xScale(0),a.height=this.yScale.bandwidth(),a})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:E.Top,this.tooltipType=this.tooltipDisabled?void 0:Dt.tooltip}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(a=>t.name===a.name&&t.value===a.value)}getLabel(t){return t.label?t.label:t.name}trackBy(t,e){return e.label}trackDataLabelBy(t,e){return t+"#"+e.series+"#"+e.total}click(t){this.select.emit(t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-series-horizontal",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelWidthChanged:"dataLabelWidthChanged"},features:[n.TTD],attrs:Lp,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(t,e){1&t&&(n.YNc(0,Sp,1,21,"g",0),n.YNc(1,Mp,2,2,"g",1)),2&t&&(n.Q6J("ngForOf",e.bars)("ngForTrackBy",e.trackBy),n.xp6(1),n.Q6J("ngIf",e.showDataLabel))},directives:function(){return[v.sg,v.O5,ds,Jt,tr]},encapsulation:2,data:{animation:[(0,T.X$)("animationState",[(0,T.eR)(":leave",[(0,T.oB)({opacity:1}),(0,T.jt)(500,(0,T.oB)({opacity:0}))])])]},changeDetection:0}),i})(),en=(()=>{class i{constructor(){this.type=gt.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.dataLabelHeightChanged=new n.vpe,this.barsForDataLabels=[],this.barOrientation=z}ngOnChanges(t){this.update()}update(){let t;this.updateTooltipSettings(),this.series.length&&(t=this.xScale.bandwidth()),t=Math.round(t);const e=Math.max(this.yScale.domain()[0],0),a={[$t.positive]:0,[$t.negative]:0};let r,o=$t.positive;this.type===gt.Normalized&&(r=this.series.map(l=>l.value).reduce((l,h)=>l+h,0)),this.bars=this.series.map((l,h)=>{let c=l.value;const u=this.getLabel(l),d=bt(u);o=c>0?$t.positive:$t.negative;const m={value:c,label:u,roundEdges:this.roundEdges,data:l,width:t,formattedLabel:d,height:0,x:0,y:0};if(this.type===gt.Standard)m.height=Math.abs(this.yScale(c)-this.yScale(e)),m.x=this.xScale(u),m.y=this.yScale(c<0?0:c);else if(this.type===gt.Stacked){const _=a[o],p=_+c;a[o]+=c,m.height=this.yScale(_)-this.yScale(p),m.x=0,m.y=this.yScale(p),m.offset0=_,m.offset1=p}else if(this.type===gt.Normalized){let _=a[o],p=_+c;a[o]+=c,r>0?(_=100*_/r,p=100*p/r):(_=0,p=0),m.height=this.yScale(_)-this.yScale(p),m.x=0,m.y=this.yScale(p),m.offset0=_,m.offset1=p,c=(p-_).toFixed(2)+"%"}this.colors.scaleType===f.Ordinal?m.color=this.colors.getColor(u):this.type===gt.Standard?(m.color=this.colors.getColor(c),m.gradientStops=this.colors.getLinearGradientStops(c)):(m.color=this.colors.getColor(m.offset1),m.gradientStops=this.colors.getLinearGradientStops(m.offset1,m.offset0));let x=d;return m.ariaLabel=d+" "+c.toLocaleString(),null!=this.seriesName&&(x=`${this.seriesName} \u2022 ${d}`,m.data.series=this.seriesName,m.ariaLabel=this.seriesName+" "+m.ariaLabel),m.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${ft(x)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(c):c.toLocaleString()}</span>\n `,m}),this.updateDataLabels()}updateDataLabels(){if(this.type===gt.Stacked){this.barsForDataLabels=[];const t={};t.series=this.seriesName;const e=this.series.map(o=>o.value).reduce((o,r)=>r>0?o+r:o,0),a=this.series.map(o=>o.value).reduce((o,r)=>r<0?o+r:o,0);t.total=e+a,t.x=0,t.y=0,t.height=this.yScale(t.total>0?e:a),t.width=this.xScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(t=>{var e;const a={};return a.series=null!==(e=this.seriesName)&&void 0!==e?e:t.label,a.total=t.value,a.x=this.xScale(t.label),a.y=this.yScale(0),a.height=this.yScale(a.total)-this.yScale(0),a.width=this.xScale.bandwidth(),a})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:E.Top,this.tooltipType=this.tooltipDisabled?void 0:Dt.tooltip}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(a=>t.name===a.name&&t.value===a.value)}onClick(t){this.select.emit(t)}getLabel(t){return t.label?t.label:t.name}trackBy(t,e){return e.label}trackDataLabelBy(t,e){return t+"#"+e.series+"#"+e.total}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[n.TTD],attrs:Fp,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(t,e){1&t&&(n.YNc(0,Op,1,22,"g",0),n.YNc(1,Bp,2,2,"g",1)),2&t&&(n.Q6J("ngForOf",e.bars)("ngForTrackBy",e.trackBy),n.xp6(1),n.Q6J("ngIf",e.showDataLabel))},directives:function(){return[v.sg,v.O5,ds,Jt,tr]},encapsulation:2,data:{animation:[(0,T.X$)("animationState",[(0,T.eR)(":leave",[(0,T.oB)({opacity:1}),(0,T.jt)(500,(0,T.oB)({opacity:0}))])])]},changeDetection:0}),i})(),tr=(()=>{class i{constructor(t){this.dimensionsChanged=new n.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=t.nativeElement}ngOnChanges(t){this.update()}getSize(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}}ngAfterViewInit(){this.dimensionsChanged.emit(this.getSize())}update(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):bt(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform=`rotate(-45, ${this.x} , ${this.y})`)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[n.TTD],attrs:Zp,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"text",0),n._uU(1),n.qZA()),2&t&&(n.uIk("text-anchor",e.textAnchor)("transform",e.transform)("x",e.x)("y",e.y),n.xp6(1),n.hij(" ",e.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),i})(),er=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt]]}),i})(),vx=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt]]}),i})(),yx=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt]]}),i})(),wx=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt]]}),i})(),sr=(()=>{class i{constructor(t){this.element=t,this.fill="none",this.animations=!0,this.initialized=!1}ngOnChanges(t){this.initialized?this.updatePathEl():(this.initialized=!0,this.initialPath=this.path)}updatePathEl(){const t=ut(this.element.nativeElement).select(".line");this.animations?t.transition().duration(750).attr("d",this.path):t.attr("d",this.path)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-line",""]],inputs:{fill:"fill",animations:"animations",path:"path",stroke:"stroke",data:"data"},features:[n.TTD],attrs:tf,decls:1,vars:4,consts:[["stroke-width","1.5px",1,"line"]],template:function(t,e){1&t&&(n.O4$(),n._UZ(0,"path",0)),2&t&&(n.Q6J("@animationState","active"),n.uIk("d",e.initialPath)("fill",e.fill)("stroke",e.stroke))},encapsulation:2,data:{animation:[(0,T.X$)("animationState",[(0,T.eR)(":enter",[(0,T.oB)({strokeDasharray:2e3,strokeDashoffset:2e3}),(0,T.jt)(1e3,(0,T.oB)({strokeDashoffset:0}))])])]},changeDetection:0}),i})(),Ax=(()=>{class i extends nt{constructor(){super(...arguments),this.legendTitle="Legend",this.legendPosition=j.Right,this.showGridLines=!0,this.curve=Se,this.activeEntries=[],this.trimXAxisTicks=!0,this.trimYAxisTicks=!0,this.rotateXAxisTicks=!0,this.maxXAxisTickLength=16,this.maxYAxisTickLength=16,this.roundDomains=!1,this.tooltipDisabled=!1,this.showRefLines=!1,this.showRefLabels=!0,this.activate=new n.vpe,this.deactivate=new n.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10}update(){super.update(),this.dims=ot({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendType:this.schemeType,legendPosition:this.legendPosition}),this.timeline&&(this.dims.height-=this.timelineHeight+this.margin[2]+this.timelinePadding),this.xDomain=this.getXDomain(),this.filteredDomain&&(this.xDomain=this.filteredDomain),this.yDomain=this.getYDomain(),this.seriesDomain=this.getSeriesDomain(),this.xScale=this.getXScale(this.xDomain,this.dims.width),this.yScale=this.getYScale(this.yDomain,this.dims.height),this.updateTimeline(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.dims.xOffset} , ${this.margin[0]})`,this.clipPathId="clip"+Ct().toString(),this.clipPath=`url(#${this.clipPathId})`}updateTimeline(){this.timeline&&(this.timelineWidth=this.dims.width,this.timelineXDomain=this.getXDomain(),this.timelineXScale=this.getXScale(this.timelineXDomain,this.timelineWidth),this.timelineYScale=this.getYScale(this.yDomain,this.timelineHeight),this.timelineTransform=`translate(${this.dims.xOffset}, ${-this.margin[2]})`)}getXDomain(){let t=function(i){const s=new Set;for(const t of i)for(const e of t.series)s.add(e.name);return Array.from(s)}(this.results);this.scaleType=function(i,s=!0){return s&&i.every(a=>a instanceof Date)?f.Time:i.every(e=>"number"==typeof e)?f.Linear:f.Ordinal}(t);let a,o,e=[];return this.scaleType===f.Linear&&(t=t.map(r=>Number(r))),(this.scaleType===f.Time||this.scaleType===f.Linear)&&(a=this.xScaleMin?this.xScaleMin:Math.min(...t),o=this.xScaleMax?this.xScaleMax:Math.max(...t)),this.scaleType===f.Time?(e=[new Date(a),new Date(o)],this.xSet=[...t].sort((r,l)=>{const h=r.getTime(),c=l.getTime();return h>c?1:c>h?-1:0})):this.scaleType===f.Linear?(e=[a,o],this.xSet=[...t].sort((r,l)=>r-l)):(e=t,this.xSet=t),e}getYDomain(){const t=[];for(const r of this.results)for(const l of r.series)t.indexOf(l.value)<0&&t.push(l.value),void 0!==l.min&&(this.hasRange=!0,t.indexOf(l.min)<0&&t.push(l.min)),void 0!==l.max&&(this.hasRange=!0,t.indexOf(l.max)<0&&t.push(l.max));const e=[...t];return this.autoScale||e.push(0),[this.yScaleMin?this.yScaleMin:Math.min(...e),this.yScaleMax?this.yScaleMax:Math.max(...e)]}getSeriesDomain(){return this.results.map(t=>t.name)}getXScale(t,e){let a;return this.scaleType===f.Time?a=ke().range([0,e]).domain(t):this.scaleType===f.Linear?(a=Q().range([0,e]).domain(t),this.roundDomains&&(a=a.nice())):this.scaleType===f.Ordinal&&(a=Le().range([0,e]).padding(.1).domain(t)),a}getYScale(t,e){const a=Q().range([e,0]).domain(t);return this.roundDomains?a.nice():a}updateDomain(t){this.filteredDomain=t,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(t){this.hoveredVertical=t.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(t){this.select.emit(t)}trackBy(t,e){return`${e.name}`}setColors(){let t;t=this.schemeType===f.Ordinal?this.seriesDomain:this.yDomain,this.colors=new rt(this.scheme,this.schemeType,t,this.customColors)}getLegendOptions(){const t={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return t.scaleType===f.Ordinal?(t.domain=this.seriesDomain,t.colors=this.colors,t.title=this.legendTitle):(t.domain=this.yDomain,t.colors=this.colors.scale),t}updateYAxisWidth({width:t}){this.yAxisWidth=t,this.update()}updateXAxisHeight({height:t}){this.xAxisHeight=t,this.update()}onActivate(t){this.deactivateAll(),!(this.activeEntries.findIndex(a=>a.name===t.name&&a.value===t.value)>-1)&&(this.activeEntries=[t],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){const e=this.activeEntries.findIndex(a=>a.name===t.name&&a.value===t.value);this.activeEntries.splice(e,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const t of this.activeEntries)this.deactivate.emit({value:t,entries:[]});this.activeEntries=[]}}return i.\u0275fac=function(){let s;return function(e){return(s||(s=n.n5z(i)))(e||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-line-chart"]],contentQueries:function(t,e,a){if(1&t&&(n.Suo(a,dt,5),n.Suo(a,Qi,5)),2&t){let o;n.iGM(o=n.CRH())&&(e.tooltipTemplate=o.first),n.iGM(o=n.CRH())&&(e.seriesTooltipTemplate=o.first)}},hostBindings:function(t,e){1&t&&n.NdJ("mouseleave",function(){return e.hideCircles()})},inputs:{legendTitle:"legendTitle",legendPosition:"legendPosition",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",showRefLines:"showRefLines",showRefLabels:"showRefLabels",legend:"legend",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",autoScale:"autoScale",timeline:"timeline",gradient:"gradient",schemeType:"schemeType",rangeFillOpacity:"rangeFillOpacity",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",referenceLines:"referenceLines",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax"},outputs:{activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:11,vars:20,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"line-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","dimensionsChanged"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","activeEntries","scaleType","curve","rangeFillOpacity","hasRange","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate","hover"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"xScale","yScale","colors","data","scaleType","visibleValue","activeEntries","tooltipDisabled","tooltipTemplate","select","activate","deactivate"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","scaleType","legend","onDomainChange"],["ngx-charts-line-series","",3,"xScale","yScale","colors","data","scaleType","curve","hasRange","animations"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.NdJ("legendLabelClick",function(o){return e.onClick(o)})("legendLabelActivate",function(o){return e.onActivate(o)})("legendLabelDeactivate",function(o){return e.onDeactivate(o)}),n.O4$(),n.TgZ(1,"defs"),n.TgZ(2,"clipPath"),n._UZ(3,"rect"),n.qZA(),n.qZA(),n.TgZ(4,"g",1),n.YNc(5,ef,1,10,"g",2),n.YNc(6,nf,1,12,"g",3),n.TgZ(7,"g"),n.YNc(8,sf,2,11,"g",4),n.YNc(9,of,3,9,"g",5),n.qZA(),n.qZA(),n.YNc(10,lf,2,13,"g",6),n.qZA()),2&t&&(n.Q6J("view",n.WLB(17,U,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),n.xp6(2),n.uIk("id",e.clipPathId),n.xp6(1),n.uIk("width",e.dims.width+10)("height",e.dims.height+10)("transform","translate(-5, -5)"),n.xp6(1),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("ngIf",e.xAxis),n.xp6(1),n.Q6J("ngIf",e.yAxis),n.xp6(1),n.uIk("clip-path",e.clipPath),n.xp6(1),n.Q6J("ngForOf",e.results)("ngForTrackBy",e.trackBy),n.xp6(1),n.Q6J("ngIf",!e.tooltipDisabled),n.xp6(1),n.Q6J("ngIf",e.timeline&&"ordinal"!=e.scaleType))},directives:function(){return[it,v.O5,v.sg,Ot,St,kx,gi,di,mi]},styles:[lt],encapsulation:2,data:{animation:[(0,T.X$)("animationState",[(0,T.eR)(":leave",[(0,T.oB)({opacity:1}),(0,T.jt)(500,(0,T.oB)({opacity:0}))])])]},changeDetection:0}),i})(),kx=(()=>{class i{constructor(){this.animations=!0,this.barOrientation=z}ngOnChanges(t){this.update()}update(){this.updateGradients();const t=this.sortData(this.data.series),e=this.getLineGenerator();this.path=e(t)||"";const a=this.getAreaGenerator();if(this.areaPath=a(t)||"",this.hasRange){const o=this.getRangeGenerator();this.outerPath=o(t)||""}if(this.hasGradient){this.stroke=this.gradientUrl;const o=this.data.series.map(h=>h.value),r=Math.max(...o);r===Math.min(...o)&&(this.stroke=this.colors.getColor(r))}else this.stroke=this.colors.getColor(this.data.name)}getLineGenerator(){return Ji().x(t=>{const e=t.name;let a;return a=this.xScale(this.scaleType===f.Time?e:this.scaleType===f.Linear?Number(e):e),a}).y(t=>this.yScale(t.value)).curve(this.curve)}getRangeGenerator(){return Re().x(t=>{const e=t.name;let a;return a=this.xScale(this.scaleType===f.Time?e:this.scaleType===f.Linear?Number(e):e),a}).y0(t=>this.yScale("number"==typeof t.min?t.min:t.value)).y1(t=>this.yScale("number"==typeof t.max?t.max:t.value)).curve(this.curve)}getAreaGenerator(){return Re().x(e=>this.xScale(e.name)).y0(()=>this.yScale.range()[0]).y1(e=>this.yScale(e.value)).curve(this.curve)}sortData(t){return this.scaleType===f.Linear?function(i,s,t="asc"){return i.sort((e,a)=>"asc"===t?e[s]-a[s]:a[s]-e[s])}(t,"name"):this.scaleType===f.Time?function(i,s,t="asc"){return i.sort((e,a)=>{const o=e[s].getTime(),r=a[s].getTime();return"asc"===t?o>r?1:r>o?-1:0:o>r?-1:r>o?1:0})}(t,"name"):function(i,s,t="asc",e){return i.sort((a,o)=>{const l=o[s],h=e.indexOf(a[s]),c=e.indexOf(l);return"asc"===t?h-c:c-h})}(t,"name","asc",this.xScale.domain())}updateGradients(){if(this.colors.scaleType===f.Linear){this.hasGradient=!0,this.gradientId="grad"+Ct().toString(),this.gradientUrl=`url(#${this.gradientId})`;const t=this.data.series.map(o=>o.value),e=Math.max(...t),a=Math.min(...t);this.gradientStops=this.colors.getLinearGradientStops(e,a),this.areaGradientStops=this.colors.getLinearGradientStops(e)}else this.hasGradient=!1,this.gradientStops=void 0,this.areaGradientStops=void 0}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(a=>t.name===a.name)}isInactive(t){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(a=>t.name===a.name)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-line-series",""]],inputs:{animations:"animations",data:"data",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",curve:"curve",activeEntries:"activeEntries",rangeFillOpacity:"rangeFillOpacity",hasRange:"hasRange"},features:[n.TTD],attrs:cf,decls:6,vars:22,consts:[["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops",4,"ngIf"],["ngx-charts-area","",1,"line-highlight",3,"data","path","fill","opacity","startOpacity","gradient","stops","animations"],["ngx-charts-line","",1,"line-series",3,"data","path","stroke","animations"],["ngx-charts-area","","class","line-series-range",3,"data","path","fill","active","inactive","opacity","animations",4,"ngIf"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"],["ngx-charts-area","",1,"line-series-range",3,"data","path","fill","opacity","animations"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g"),n.TgZ(1,"defs"),n.YNc(2,hf,1,3,"g",0),n.qZA(),n._UZ(3,"g",1),n._UZ(4,"g",2),n.YNc(5,uf,1,9,"g",3),n.qZA()),2&t&&(n.xp6(2),n.Q6J("ngIf",e.hasGradient),n.xp6(1),n.ekj("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),n.Q6J("data",e.data)("path",e.areaPath)("fill",e.hasGradient?e.gradientUrl:e.colors.getColor(e.data.name))("opacity",.25)("startOpacity",0)("gradient",!0)("stops",e.areaGradientStops)("animations",e.animations),n.xp6(1),n.ekj("active",e.isActive(e.data))("inactive",e.isInactive(e.data)),n.Q6J("data",e.data)("path",e.path)("stroke",e.stroke)("animations",e.animations),n.xp6(1),n.Q6J("ngIf",e.hasRange))},directives:[v.O5,as,sr,pe],encapsulation:2,changeDetection:0}),i})(),ar=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt]]}),i})();Math;let rr=(()=>{class i{constructor(t){this.platformId=t,this.animations=!0,this.labelTrim=!0,this.labelTrimSize=10,this.trimLabel=de}ngOnChanges(t){this.setTransforms(),this.update()}setTransforms(){if((0,v.PM)(this.platformId))this.styleTransform=`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=`translate(${this.textX},${this.textY})`,this.textTransition=this.animations?"transform 0.75s":null;else{const t=/(edge|msie|trident)/i.test(navigator.userAgent);this.styleTransform=t?null:`translate3d(${this.textX}px,${this.textY}px, 0)`,this.attrTransform=t?`translate(${this.textX},${this.textY})`:null,this.textTransition=t||!this.animations?null:"transform 0.75s"}}update(){let t=this.radius;this.explodeSlices&&(t=this.radius*this.value/this.max);const a=ts().innerRadius(t).outerRadius(t).centroid(this.data);let o=this.data.pos[1]/a[1];(0===this.data.pos[1]||0===a[1])&&(o=1),this.line=`M${a}L${[o*a[0],o*a[1]]}L${this.data.pos}`}get textX(){return this.data.pos[0]}get textY(){return this.data.pos[1]}textAnchor(){return this.midAngle(this.data)<Math.PI?Lt.Start:Lt.End}midAngle(t){return t.startAngle+(t.endAngle-t.startAngle)/2}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Lbi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-pie-label",""]],inputs:{animations:"animations",labelTrim:"labelTrim",labelTrimSize:"labelTrimSize",data:"data",radius:"radius",label:"label",color:"color",max:"max",value:"value",explodeSlices:"explodeSlices"},features:[n.TTD],attrs:bf,decls:6,vars:17,consts:[["dy",".35em",1,"pie-label"],["fill","none",1,"pie-label-line","line"]],template:function(t,e){1&t&&(n.TgZ(0,"title"),n._uU(1),n.qZA(),n.O4$(),n.TgZ(2,"g"),n.TgZ(3,"text",0),n._uU(4),n.qZA(),n.qZA(),n._UZ(5,"path",1)),2&t&&(n.xp6(1),n.Oqu(e.label),n.xp6(1),n.Udp("transform",e.styleTransform)("transition",e.textTransition),n.uIk("transform",e.attrTransform),n.xp6(1),n.Udp("text-anchor",e.textAnchor())("shape-rendering","crispEdges"),n.ekj("animation",e.animations),n.xp6(1),n.hij(" ",e.labelTrim?e.trimLabel(e.label,e.labelTrimSize):e.label," "),n.xp6(1),n.ekj("animation",e.animations),n.uIk("d",e.line)("stroke",e.color))},encapsulation:2,changeDetection:0}),i})(),gs=(()=>{class i{constructor(t){this.startAngle=0,this.endAngle=2*Math.PI,this.cornerRadius=0,this.explodeSlices=!1,this.gradient=!1,this.animate=!0,this.pointerEvents=!0,this.isActive=!1,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.dblclick=new n.vpe,this.barOrientation=z,this.initialized=!1,this.element=t.nativeElement}ngOnChanges(t){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const t=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+Ct().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=t.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let t=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(t=this.outerRadius*this.value/this.max),ts().innerRadius(this.innerRadius).outerRadius(t).cornerRadius(this.cornerRadius)}loadAnimation(){const t=ut(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().attrTween("d",function(a){this._current=this._current||a;const o=Object.assign({},a);o.endAngle=o.startAngle;const r=he(o,o);return this._current=r(0),function(l){return e(r(l))}}).transition().duration(750).attrTween("d",function(a){this._current=this._current||a;const o=he(this._current,a);return this._current=o(0),function(r){return e(o(r))}})}updateAnimation(){const t=ut(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),e=this.calculateArc();t.transition().duration(750).attrTween("d",function(a){this._current=this._current||a;const o=he(this._current,a);return this._current=o(0),function(r){return e(o(r))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(t){t.preventDefault(),t.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:t})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{startAngle:"startAngle",endAngle:"endAngle",cornerRadius:"cornerRadius",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive",fill:"fill",innerRadius:"innerRadius",outerRadius:"outerRadius",value:"value",max:"max",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[n.TTD],attrs:Cf,decls:3,vars:7,consts:[[1,"arc-group"],[4,"ngIf"],[1,"arc",3,"click","dblclick","mouseenter","mouseleave"],["ngx-charts-svg-radial-gradient","",3,"color","name","startOpacity"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g",0),n.YNc(1,wf,2,3,"defs",1),n.TgZ(2,"path",2),n.NdJ("click",function(){return e.onClick()})("dblclick",function(o){return e.onDblClick(o)})("mouseenter",function(){return e.activate.emit(e.data)})("mouseleave",function(){return e.deactivate.emit(e.data)}),n.qZA(),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",e.gradient),n.xp6(1),n.Udp("pointer-events",e.getPointerEvents()),n.ekj("active",e.isActive),n.uIk("d",e.path)("fill",e.getGradient()))},directives:[v.O5,ss],encapsulation:2,changeDetection:0}),i})(),Sx=(()=>{class i extends nt{constructor(){super(...arguments),this.labels=!1,this.legend=!1,this.legendTitle="Legend",this.legendPosition=j.Right,this.explodeSlices=!1,this.doughnut=!1,this.arcWidth=.25,this.activeEntries=[],this.tooltipDisabled=!1,this.trimLabels=!0,this.maxLabelLength=10,this.dblclick=new n.vpe,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe}update(){super.update(),this.labels&&this.hasNoOptionalMarginsSet()?this.margins=[30,80,30,80]:!this.labels&&this.hasNoOptionalMarginsSet()&&(this.margins=[20,20,20,20]),this.dims=ot({width:this.width,height:this.height,margins:this.margins,showLegend:this.legend,legendPosition:this.legendPosition}),this.formatDates(),this.translation=`translate(${this.margins[3]+this.dims.width/2}, ${this.margins[0]+this.dims.height/2})`,this.outerRadius=Math.min(this.dims.width,this.dims.height),this.outerRadius/=this.labels?3:2,this.innerRadius=0,this.doughnut&&(this.innerRadius=this.outerRadius*(1-this.arcWidth)),this.domain=this.getDomain(),this.data=this.results.sort((a,o)=>this.domain.indexOf(a.name)-this.domain.indexOf(o.name)),this.setColors(),this.legendOptions=this.getLegendOptions()}getDomain(){return this.results.map(t=>t.label)}onClick(t){this.select.emit(t)}setColors(){this.colors=new rt(this.scheme,f.Ordinal,this.domain,this.customColors)}getLegendOptions(){return{scaleType:f.Ordinal,domain:this.domain,colors:this.colors,title:this.legendTitle,position:this.legendPosition}}onActivate(t,e=!1){t=this.results.find(o=>e?o.label===t.name:o.name===t.name),!(this.activeEntries.findIndex(o=>o.name===t.name&&o.value===t.value&&o.series===t.series)>-1)&&(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(o=>e?o.label===t.name:o.name===t.name);const a=this.activeEntries.findIndex(o=>o.name===t.name&&o.value===t.value&&o.series===t.series);this.activeEntries.splice(a,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}hasNoOptionalMarginsSet(){return!this.margins||this.margins.length<=0}}return i.\u0275fac=function(){let s;return function(e){return(s||(s=n.n5z(i)))(e||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-pie-chart"]],contentQueries:function(t,e,a){if(1&t&&n.Suo(a,dt,5),2&t){let o;n.iGM(o=n.CRH())&&(e.tooltipTemplate=o.first)}},inputs:{labels:"labels",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",explodeSlices:"explodeSlices",doughnut:"doughnut",arcWidth:"arcWidth",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",margins:"margins",gradient:"gradient",labelFormatting:"labelFormatting",tooltipText:"tooltipText"},outputs:{dblclick:"dblclick",select:"select",activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:3,vars:24,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"pie-chart","chart"],["ngx-charts-pie-series","",3,"colors","series","showLabels","labelFormatting","trimLabels","maxLabelLength","activeEntries","innerRadius","outerRadius","explodeSlices","gradient","animations","tooltipDisabled","tooltipTemplate","tooltipText","dblclick","select","activate","deactivate"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.NdJ("legendLabelActivate",function(o){return e.onActivate(o,!0)})("legendLabelDeactivate",function(o){return e.onDeactivate(o,!0)})("legendLabelClick",function(o){return e.onClick(o)}),n.O4$(),n.TgZ(1,"g",1),n.TgZ(2,"g",2),n.NdJ("dblclick",function(o){return e.dblclick.emit(o)})("select",function(o){return e.onClick(o)})("activate",function(o){return e.onActivate(o)})("deactivate",function(o){return e.onDeactivate(o)}),n.qZA(),n.qZA(),n.qZA()),2&t&&(n.Q6J("view",n.WLB(21,U,e.width,e.height))("showLegend",e.legend)("legendOptions",e.legendOptions)("activeEntries",e.activeEntries)("animations",e.animations),n.xp6(1),n.uIk("transform",e.translation),n.xp6(1),n.Q6J("colors",e.colors)("series",e.data)("showLabels",e.labels)("labelFormatting",e.labelFormatting)("trimLabels",e.trimLabels)("maxLabelLength",e.maxLabelLength)("activeEntries",e.activeEntries)("innerRadius",e.innerRadius)("outerRadius",e.outerRadius)("explodeSlices",e.explodeSlices)("gradient",e.gradient)("animations",e.animations)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("tooltipText",e.tooltipText))},directives:function(){return[it,hr]},styles:[lt,".pie-label{font-size:11px}.pie-label.animation{-webkit-animation:.75s ease-in fadeIn;animation:.75s ease-in fadeIn}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.pie-label-line{stroke-dasharray:100%}.pie-label-line.animation{-webkit-animation:3s linear drawOut;animation:3s linear drawOut;transition:d .75s}@-webkit-keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}@keyframes drawOut{0%{stroke-dashoffset:100%}to{stroke-dashoffset:0}}\n"],encapsulation:2,changeDetection:0}),i})();function cr(i,s,t,e){const a=yt(),o=yt(),r=i.width,l=i.height,[h,c]=function(i,s,t){let e=1,a=s;const o=i.width;if(o>t)for(;o/a<t;)e+=1,a=Math.ceil(s/e);return[a,e]}(i,s.length,t),u=[],d=[];for(let p=0;p<c;p++)d.push(p);for(let p=0;p<h;p++)u.push(p);a.domain(u),o.domain(d),a.rangeRound([0,r],.1),o.rangeRound([0,l],.1);const g=[],m=e||function(i){return i.map(s=>s?s.value:0).reduce((s,t)=>s+t,0)}(s),x=a.bandwidth(),_=o.bandwidth();for(let p=0;p<s.length;p++)g[p]={},g[p].data={name:s[p]?s[p].name:"",value:s[p]?s[p].value:void 0,extra:s[p]?s[p].extra:void 0,label:s[p]?s[p].label:""},g[p].x=a(p%h),g[p].y=o(Math.floor(p/h)),g[p].width=x,g[p].height=_,g[p].data.percent=m>0?g[p].data.value/m:0,g[p].data.total=m;return g}let Mx=(()=>{class i extends nt{constructor(){super(...arguments),this.tooltipDisabled=!1,this.label="Total",this.minWidth=150,this.activeEntries=[],this.activate=new n.vpe,this.deactivate=new n.vpe,this.margin=[20,20,20,20],this.placementTypes=E,this.styleTypes=Dt}update(){super.update(),this.dims=ot({width:this.width,height:this.height,margins:this.margin}),this.formatDates(),this.domain=this.getDomain(),this.data=cr(this.dims,this.results,this.minWidth,this.designatedTotal),this.transform=`translate(${this.margin[3]} , ${this.margin[0]})`,this.series=this.getSeries(),this.setColors(),this.tooltipText=this.tooltipText||this.defaultTooltipText}defaultTooltipText({data:t}){return`\n <span class="tooltip-label">${de(bt(t.name))}</span>\n <span class="tooltip-val">${t.value.toLocaleString()}</span>\n `}getDomain(){return this.results.map(t=>t.label)}getSeries(){const t=this.designatedTotal?this.designatedTotal:this.getTotal();return this.data.map(e=>{const r=e.data.name,l=bt(r),h=e.data.value,c=function(i,s){let t;if(void 0===s)for(const e of i)null!=e&&(t>e||void 0===t&&e>=e)&&(t=e);else{let e=-1;for(let a of i)null!=(a=s(a,++e,i))&&(t>a||void 0===t&&a>=a)&&(t=a)}return t}([e.width-10,e.height-20])/2-5;let d=0;return{transform:`translate(${e.x+(e.width-10)/2}, ${e.y+(e.height-20)/2})`,colors:()=>(d+=1,1===d?"rgba(100,100,100,0.3)":this.colorScale.getColor(l)),innerRadius:.9*c,outerRadius:c,name:r,label:de(l),total:h,value:h,percent:Jn(".1%")(e.data.percent),data:[e,{data:{other:!0,value:t-h,name:e.data.name}}]}})}getTotal(){return this.results.map(t=>t.value).reduce((t,e)=>t+e,0)}onClick(t){this.select.emit(t)}setColors(){this.colorScale=new rt(this.scheme,f.Ordinal,this.domain,this.customColors)}onActivate(t,e=!1){t=this.results.find(o=>e?o.label===t.name:o.name===t.name),!(this.activeEntries.findIndex(o=>o.name===t.name&&o.value===t.value&&o.series===t.series)>-1)&&(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t,e=!1){t=this.results.find(o=>e?o.label===t.name:o.name===t.name);const a=this.activeEntries.findIndex(o=>o.name===t.name&&o.value===t.value&&o.series===t.series);this.activeEntries.splice(a,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}}return i.\u0275fac=function(){let s;return function(e){return(s||(s=n.n5z(i)))(e||i)}}(),i.\u0275cmp=n.Xpm({type:i,selectors:[["ngx-charts-pie-grid"]],contentQueries:function(t,e,a){if(1&t&&n.Suo(a,dt,5),2&t){let o;n.iGM(o=n.CRH())&&(e.tooltipTemplate=o.first)}},inputs:{tooltipDisabled:"tooltipDisabled",label:"label",minWidth:"minWidth",activeEntries:"activeEntries",tooltipText:"tooltipText",designatedTotal:"designatedTotal"},outputs:{activate:"activate",deactivate:"deactivate"},features:[n.qOj],decls:3,vars:8,consts:[[3,"view","showLegend","animations"],[1,"pie-grid","chart"],["class","pie-grid-item",4,"ngFor","ngForOf"],[1,"pie-grid-item"],["ngx-charts-pie-grid-series","","ngx-tooltip","",3,"colors","data","innerRadius","outerRadius","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate"],["class","label percent-label","dy","-0.5em","x","0","y","5","ngx-charts-count-up","","text-anchor","middle",3,"countTo","countSuffix",4,"ngIf"],["class","label percent-label","dy","-0.5em","x","0","y","5","text-anchor","middle",4,"ngIf"],["dy","0.5em","x","0","y","5","text-anchor","middle",1,"label"],["class","label","dy","1.23em","x","0","text-anchor","middle","ngx-charts-count-up","",3,"countTo","countPrefix",4,"ngIf"],["class","label","dy","1.23em","x","0","text-anchor","middle",4,"ngIf"],["dy","-0.5em","x","0","y","5","ngx-charts-count-up","","text-anchor","middle",1,"label","percent-label",3,"countTo","countSuffix"],["dy","-0.5em","x","0","y","5","text-anchor","middle",1,"label","percent-label"],["dy","1.23em","x","0","text-anchor","middle","ngx-charts-count-up","",1,"label",3,"countTo","countPrefix"],["dy","1.23em","x","0","text-anchor","middle",1,"label"]],template:function(t,e){1&t&&(n.TgZ(0,"ngx-charts-chart",0),n.O4$(),n.TgZ(1,"g",1),n.YNc(2,Mf,8,19,"g",2),n.qZA(),n.qZA()),2&t&&(n.Q6J("view",n.WLB(5,U,e.width,e.height))("showLegend",!1)("animations",e.animations),n.xp6(1),n.uIk("transform",e.transform),n.xp6(1),n.Q6J("ngForOf",e.series))},directives:function(){return[it,v.sg,Fx,Jt,v.O5,ji]},styles:[lt,".pie-grid .arc1{opacity:.4}.pie-grid .percent-label{font-size:16px;font-weight:400}\n"],encapsulation:2,changeDetection:0}),i})(),Fx=(()=>{class i{constructor(t){this.innerRadius=70,this.outerRadius=80,this.animations=!0,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.element=t.nativeElement}ngOnChanges(t){this.update()}update(){this.layout=Co().value(t=>t.data.value).sort(null),this.arcs=this.getArcs()}getArcs(){return this.layout(this.data).map((t,e)=>{const a=t.data.data.name,o=t.data.data.other;0===e&&(t.startAngle=0);const r=this.colors(a);return{data:t.data.data,class:"arc arc"+e,fill:r,startAngle:o?0:t.startAngle,endAngle:t.endAngle,animate:this.animations&&!o,pointerEvents:!o}})}onClick(t){this.select.emit(this.data[0].data)}trackBy(t,e){return e.data.name}label(t){return t.data.name}color(t){return this.colors(this.label(t))}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-pie-grid-series",""]],inputs:{innerRadius:"innerRadius",outerRadius:"outerRadius",animations:"animations",colors:"colors",data:"data"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[n.TTD],attrs:Ff,decls:2,vars:2,consts:[[1,"pie-grid-arcs"],["ngx-charts-pie-arc","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","data","gradient","pointerEvents","animate","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-arc","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","data","gradient","pointerEvents","animate","select","activate","deactivate"]],template:function(t,e){1&t&&(n.O4$(),n.TgZ(0,"g",0),n.YNc(1,Of,1,11,"g",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngForOf",e.arcs)("ngForTrackBy",e.trackBy))},directives:[v.sg,gs],encapsulation:2,changeDetection:0}),i})(),hr=(()=>{class i{constructor(){this.series=[],this.innerRadius=60,this.outerRadius=80,this.trimLabels=!0,this.maxLabelLength=10,this.tooltipDisabled=!1,this.animations=!0,this.select=new n.vpe,this.activate=new n.vpe,this.deactivate=new n.vpe,this.dblclick=new n.vpe,this.placementTypes=E,this.styleTypes=Dt}ngOnChanges(t){this.update()}update(){const e=Co().value(a=>a.value).sort(null)(this.series);this.max=function(i,s){let t;if(void 0===s)for(const e of i)null!=e&&(t<e||void 0===t&&e>=e)&&(t=e);else{let e=-1;for(let a of i)null!=(a=s(a,++e,i))&&(t<a||void 0===t&&a>=a)&&(t=a)}return t}(e,a=>a.value),this.data=this.calculateLabelPositions(e),this.tooltipText=this.tooltipText||this.defaultTooltipText}midAngle(t){return t.startAngle+(t.endAngle-t.startAngle)/2}outerArc(){return ts().innerRadius(1.5*this.outerRadius).outerRadius(1.5*this.outerRadius)}calculateLabelPositions(t){const o=t;o.forEach(r=>{r.pos=this.outerArc().centroid(r),r.pos[0]=1.5*this.outerRadius*(this.midAngle(r)<Math.PI?1:-1)});for(let r=0;r<o.length-1;r++){const l=o[r];if(this.labelVisible(l))for(let h=r+1;h<o.length;h++){const c=o[h];if(this.labelVisible(c)&&c.pos[0]*l.pos[0]>0){const u=10-Math.abs(c.pos[1]-l.pos[1]);u>0&&(c.pos[1]+=Math.sign(c.pos[0])*u)}}}return o}labelVisible(t){return this.showLabels&&t.endAngle-t.startAngle>Math.PI/30}getTooltipTitle(t){return this.tooltipTemplate?void 0:this.tooltipText(t)}labelText(t){return this.labelFormatting?this.labelFormatting(t.data.name):this.label(t)}label(t){return bt(t.data.name)}defaultTooltipText(t){const e=this.label(t),a=bt(t.data.value);return`\n <span class="tooltip-label">${ft(e)}</span>\n <span class="tooltip-val">${a}</span>\n `}color(t){return this.colors.getColor(this.label(t))}trackBy(t,e){return e.data.name}onClick(t){this.select.emit(t)}isActive(t){return!!this.activeEntries&&void 0!==this.activeEntries.find(a=>t.name===a.name&&t.series===a.series)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["g","ngx-charts-pie-series",""]],inputs:{series:"series",innerRadius:"innerRadius",outerRadius:"outerRadius",trimLabels:"trimLabels",maxLabelLength:"maxLabelLength",tooltipDisabled:"tooltipDisabled",animations:"animations",tooltipText:"tooltipText",colors:"colors",dims:"dims",explodeSlices:"explodeSlices",showLabels:"showLabels",gradient:"gradient",activeEntries:"activeEntries",labelFormatting:"labelFormatting",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},features:[n.TTD],attrs:Ef,decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations",4,"ngIf"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"startAngle","endAngle","innerRadius","outerRadius","fill","value","gradient","data","max","explodeSlices","isActive","animate","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","select","activate","deactivate","dblclick"],["ngx-charts-pie-label","",3,"data","radius","color","label","labelTrim","labelTrimSize","max","value","explodeSlices","animations"]],template:function(t,e){1&t&&n.YNc(0,Zf,3,19,"g",0),2&t&&n.Q6J("ngForOf",e.data)("ngForTrackBy",e.trackBy)},directives:[v.sg,v.O5,gs,Jt,rr],encapsulation:2,changeDetection:0}),i})(),ms=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt]]}),i})(),Ox=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt,ms,ar]]}),i})(),Hx=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt]]}),i})(),Yx=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt]]}),i})(),$x=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[[zt,ms,er]]}),i})(),Jx=(()=>{class i{constructor(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[zt,gx,er,vx,yx,wx,ar,Ox,Hx,ms,Yx,$x]}),i})()},6655:(Qt,_e,et)=>{"use strict";const n=et(1977),v=et(3367),T=et(5384);Qt.exports=function Nt(at,Zt){switch(v(at)){case"object":return function(at,Zt){if("function"==typeof Zt)return Zt(at);if(Zt||T(at)){const A=new at.constructor;for(let P in at)A[P]=Nt(at[P],Zt);return A}return at}(at,Zt);case"array":return function(at,Zt){const A=new at.constructor(at.length);for(let P=0;P<at.length;P++)A[P]=Nt(at[P],Zt);return A}(at,Zt);default:return n(at)}}},5384:(Qt,_e,et)=>{"use strict";var n=et(936);function v(T){return!0===n(T)&&"[object Object]"===Object.prototype.toString.call(T)}Qt.exports=function(Nt){var Yt,Vt;return!(!1===v(Nt)||(Yt=Nt.constructor,"function"!=typeof Yt)||(Vt=Yt.prototype,!1===v(Vt))||!1===Vt.hasOwnProperty("isPrototypeOf"))}},936:Qt=>{"use strict";Qt.exports=function(et){return null!=et&&"object"==typeof et&&!1===Array.isArray(et)}},3367:Qt=>{var _e=Object.prototype.toString;function et(A){return"function"==typeof A.constructor?A.constructor.name:null}Qt.exports=function(P){if(void 0===P)return"undefined";if(null===P)return"null";var Ft=typeof P;if("boolean"===Ft)return"boolean";if("string"===Ft)return"string";if("number"===Ft)return"number";if("symbol"===Ft)return"symbol";if("function"===Ft)return"GeneratorFunction"===et(P)?"generatorfunction":"function";if(function(A){return Array.isArray?Array.isArray(A):A instanceof Array}(P))return"array";if(function(A){return!(!A.constructor||"function"!=typeof A.constructor.isBuffer)&&A.constructor.isBuffer(A)}(P))return"buffer";if(function(A){try{if("number"==typeof A.length&&"function"==typeof A.callee)return!0}catch(P){if(-1!==P.message.indexOf("callee"))return!0}return!1}(P))return"arguments";if(function(A){return A instanceof Date||"function"==typeof A.toDateString&&"function"==typeof A.getDate&&"function"==typeof A.setDate}(P))return"date";if(function(A){return A instanceof Error||"string"==typeof A.message&&A.constructor&&"number"==typeof A.constructor.stackTraceLimit}(P))return"error";if(function(A){return A instanceof RegExp||"string"==typeof A.flags&&"boolean"==typeof A.ignoreCase&&"boolean"==typeof A.multiline&&"boolean"==typeof A.global}(P))return"regexp";switch(et(P)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(A){return"function"==typeof A.throw&&"function"==typeof A.return&&"function"==typeof A.next}(P))return"generator";switch(Ft=_e.call(P)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return Ft.slice(8,-1).toLowerCase().replace(/\s/g,"")}},1977:(Qt,_e,et)=>{"use strict";const n=Symbol.prototype.valueOf,v=et(3367);Qt.exports=function(A,P){switch(v(A)){case"array":return A.slice();case"object":return Object.assign({},A);case"date":return new A.constructor(Number(A));case"map":return new Map(A);case"set":return new Set(A);case"buffer":return function(A){const P=A.length,Ft=Buffer.allocUnsafe?Buffer.allocUnsafe(P):Buffer.from(P);return A.copy(Ft),Ft}(A);case"symbol":return function(A){return n?Object(n.call(A)):{}}(A);case"arraybuffer":return function(A){const P=new A.constructor(A.byteLength);return new Uint8Array(P).set(new Uint8Array(A)),P}(A);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function(A,P){return new A.constructor(A.buffer,A.byteOffset,A.length)}(A);case"regexp":return function(A){const P=void 0!==A.flags?A.flags:/\w+$/.exec(A)||void 0,Ft=new A.constructor(A.source,P);return Ft.lastIndex=A.lastIndex,Ft}(A);case"error":return Object.create(A);default:return A}}}}]);