1"use strict";(self.webpackChunkclient_platform=self.webpackChunkclient_platform||[]).push([[68],{7068:(Ip,fr,Ee)=>{Ee.d(fr,{X4:()=>pp,mG:()=>vp,pv:()=>Pp,MM:()=>Bp,dV:()=>Gp});var r=Ee(3664),u=Ee(2615),yt=Ee(7705),$=Ee(2200),fe=Ee(177);class Di{_attachedHost;attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;null!=n&&(this._attachedHost=null,n.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(n){this._attachedHost=n}}class Pn extends Di{component;viewContainerRef;injector;projectableNodes;constructor(n,i,e,a){super(),this.component=n,this.viewContainerRef=i,this.injector=e,this.projectableNodes=a}}class yr extends Di{templateRef;viewContainerRef;context;injector;constructor(n,i,e,a){super(),this.templateRef=n,this.viewContainerRef=i,this.context=e,this.injector=a}get origin(){return this.templateRef.elementRef}attach(n,i=this.context){return this.context=i,super.attach(n)}detach(){return this.context=void 0,super.detach()}}class Tr extends Di{element;constructor(n){super(),this.element=n instanceof r.aKT?n.nativeElement:n}}class br{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){return n instanceof Pn?(this._attachedPortal=n,this.attachComponentPortal(n)):n instanceof yr?(this._attachedPortal=n,this.attachTemplatePortal(n)):this.attachDomPortal&&n instanceof Tr?(this._attachedPortal=n,this.attachDomPortal(n)):void 0}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class Cr extends br{outletElement;_appRef;_defaultInjector;constructor(n,i,e){super(),this.outletElement=n,this._appRef=i,this._defaultInjector=e}attachComponentPortal(n){let i;if(n.viewContainerRef){const e=n.injector||n.viewContainerRef.injector,a=e.get(r.Ab1,null,{optional:!0})||void 0;i=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:e,ngModuleRef:a,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>i.destroy())}else{const e=this._appRef,a=n.injector||this._defaultInjector||u.zZn.NULL,s=a.get(u.uvJ,e.injector);i=(0,yt.a0P)(n.component,{elementInjector:a,environmentInjector:s,projectableNodes:n.projectableNodes||void 0}),e.attachView(i.hostView),this.setDisposeFn(()=>{e.viewCount>0&&e.detachView(i.hostView),i.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(i)),this._attachedPortal=n,i}attachTemplatePortal(n){let i=n.viewContainerRef,e=i.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return e.rootNodes.forEach(a=>this.outletElement.appendChild(a)),e.detectChanges(),this.setDisposeFn(()=>{let a=i.indexOf(e);-1!==a&&i.remove(a)}),this._attachedPortal=n,e}attachDomPortal=n=>{const i=n.element,e=this.outletElement.ownerDocument.createComment("dom-portal");i.parentNode.insertBefore(e,i),this.outletElement.appendChild(i),this._attachedPortal=n,super.setDisposeFn(()=>{e.parentNode&&e.parentNode.replaceChild(i,e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}}var kr=Ee(3726),wr=Ee(152),U=Ee(1514);function Sr(){}function Fi(t){return null==t?Sr:function(){return this.querySelector(t)}}function Dr(){return[]}function On(t){return null==t?Dr:function(){return this.querySelectorAll(t)}}function Rn(t){return function(){return this.matches(t)}}function $n(t){return function(n){return n.matches(t)}}var Br=Array.prototype.find;function Vr(){return this.firstElementChild}var Or=Array.prototype.filter;function Rr(){return Array.from(this.children)}function Gn(t){return new Array(t.length)}function Ht(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function Xr(t,n,i,e,a,s){for(var l,o=0,h=n.length,c=s.length;o<c;++o)(l=n[o])?(l.__data__=s[o],e[o]=l):i[o]=new Ht(t,s[o]);for(;o<h;++o)(l=n[o])&&(a[o]=l)}function Yr(t,n,i,e,a,s,o){var l,h,p,c=new Map,d=n.length,m=s.length,g=new Array(d);for(l=0;l<d;
vendor: 4,727 bytes, line 1
1++l)(h=n[l])&&(g[l]=p=o.call(h,h.__data__,l,n)+"",c.has(p)?a[l]=h:c.set(p,h));for(l=0;l<m;++l)p=o.call(t,s[l],l,s)+"",(h=c.get(p))?(e[l]=h,h.__data__=s[l],c.delete(p)):i[l]=new Ht(t,s[l]);for(l=0;l<d;++l)(h=n[l])&&c.get(g[l])===h&&(a[l]=h)}function zr(t){return t.__data__}function jr(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Jr(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Ht.prototype={constructor:Ht,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ei="http://www.w3.org/1999/xhtml";const In={svg:"http://www.w3.org/2000/svg",xhtml:Ei,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Xt(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),In.hasOwnProperty(n)?{space:In[n],local:t}:t}function ro(t){return function(){this.removeAttribute(t)}}function oo(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lo(t,n){return function(){this.setAttribute(t,n)}}function co(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function ho(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function mo(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Nn(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function uo(t){return function(){this.style.removeProperty(t)}}function po(t,n,i){return function(){this.style.setProperty(t,n,i)}}function fo(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function st(t,n){return t.style.getPropertyValue(n)||Nn(t).getComputedStyle(t,null).getPropertyValue(n)}function _o(t){return function(){delete this[t]}}function vo(t,n){return function(){this[t]=n}}function yo(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function Hn(t){return t.trim().split(/^|\s+/)}function Bi(t){return t.classList||new Xn(t)}function Xn(t){this._node=t,this._names=Hn(t.getAttribute("class")||"")}function Yn(t,n){for(var i=Bi(t),e=-1,a=n.length;++e<a;)i.add(n[e])}function zn(t,n){for(var i=Bi(t),e=-1,a=n.length;++e<a;)i.remove(n[e])}function bo(t){return function(){Yn(this,t)}}function Co(t){return function(){zn(this,t)}}function ko(t,n){return function(){(n.apply(this,arguments)?Yn:zn)(this,t)}}function So(){this.textContent=""}function Lo(t){return function(){this.textContent=t}}function Ao(t){return function(){var n=t.apply(this,arguments);this.textContent=n??""}}function Fo(){this.innerHTML=""}function Eo(t){return function(){this.innerHTML=t}}function Bo(t){return function(){var n=t.apply(this,arguments);this.innerHTML=n??""}}function Vo(){this.nextSibling&&this.parentNode.appendChild(this)}function Oo(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $o(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===Ei&&n.documentElement.namespaceURI===Ei?n.createElement(t):n.createElementNS(i,t)}}function Go(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Wn(t){var n=Xt(t);return(n.local?Go:$o)(n)}function No(){return null}function Xo(){var t=this.parentNode;t&&t.removeChild(this)}function zo(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Wo(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Zo(t){return function(){var n=this.__on;if(n){for(var s,i=0,e=-1,a=n.length;i<a;++i)s=n[i],t.type&&s.type!==t.type||s.name!==t.name?n[++e]=s:this.removeEventListener(s.type,s.listener,s.options);++e?n.length=e:delete this.__on}}}function Ko(t,n,i){return function(){var a,e=this.__on,s=function qo(t){return function(n){t.call(this,n,this.__data__)}}(n);if(e)for(var o=0,l=e.length;o<l;++o)if((a=e[o]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.options),this.addEventListener(a.type,a.listener=s,a.options=i),void(a.value=n);this.addEventListener(t.type,s,i),a={type:t.type,name:t.name,value:n,listener:s,options:i},e?e.push(a):this.__on=[a]}}function jn(t,n,i){var e=Nn(t),a=e.CustomEvent;"function"==typeof a?a=new a(n,i):(a=e.document.createEvent("Event"),i?(a.initEvent(n,i.bubbles,i.cancelable),a.detail=i.detail):a.initEvent(n,!1,!1)),t.dis
1patchEvent(a)}function el(t,n){return function(){return jn(this,t,n)}}function tl(t,n){return function(){return jn(this,t,n.apply(this,arguments))}}Xn.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var Un=[null];function xe(t,n){this._groups=t,this._parents=n}function qn(){return new xe([[document.documentElement]],Un)}xe.prototype=qn.prototype={constructor:xe,select:function Lr(t){"function"!=typeof t&&(t=Fi(t));for(var n=this._groups,i=n.length,e=new Array(i),a=0;a<i;++a)for(var h,c,s=n[a],o=s.length,l=e[a]=new Array(o),d=0;d<o;++d)(h=s[d])&&(c=t.call(h,h.__data__,d,s))&&("__data__"in h&&(c.__data__=h.__data__),l[d]=c);return new xe(e,this._parents)},selectAll:function Er(t){t="function"==typeof t?function Fr(t){return function(){return function Ar(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}(t.apply(this,arguments))}}(t):On(t);for(var n=this._groups,i=n.length,e=[],a=[],s=0;s<i;++s)for(var h,o=n[s],l=o.length,c=0;c<l;++c)(h=o[c])&&(e.push(t.call(h,h.__data__,c,o)),a.push(h));return new xe(e,a)},selectChild:function Pr(t){return this.select(null==t?Vr:function Mr(t){return function(){return Br.call(this.children,t)}}("function"==typeof t?t:$n(t)))},selectChildren:function Gr(t){return this.selectAll(null==t?Rr:function $r(t){return function(){return Or.call(this.children,t)}}("function"==typeof t?t:$n(t)))},filter:function Ir(t){"function"!=typeof t&&(t=Rn(t));for(var n=this._groups,i=n.length,e=new Array(i),a=0;a<i;++a)for(var h,s=n[a],o=s.length,l=e[a]=[],c=0;c<o;++c)(h=s[c])&&t.call(h,h.__data__,c,s)&&l.push(h);return new xe(e,this._parents)},data:function Wr(t,n){if(!arguments.length)return Array.from(this,zr);var i=n?Yr:Xr,e=this._parents,a=this._groups;"function"!=typeof t&&(t=function Hr(t){return function(){return t}}(t));for(var s=a.length,o=new Array(s),l=new Array(s),h=new Array(s),c=0;c<s;++c){var d=e[c],m=a[c],g=m.length,p=jr(t.call(d,d&&d.__data__,c,e)),x=p.length,T=l[c]=new Array(x),f=o[c]=new Array(x);i(d,m,T,f,h[c]=new Array(g),p,n);for(var L,D,C=0,y=0;C<x;++C)if(L=T[C]){for(C>=y&&(y=C+1);!(D=f[y])&&++y<x;);L._next=D||null}}return(o=new xe(o,e))._enter=l,o._exit=h,o},enter:function Nr(){return new xe(this._enter||this._groups.map(Gn),this._parents)},exit:function Ur(){return new xe(this._exit||this._groups.map(Gn),this._parents)},join:function qr(t,n,i){var e=this.enter(),a=this,s=this.exit();return"function"==typeof t?(e=t(e))&&(e=e.selection()):e=e.append(t+""),null!=n&&(a=n(a))&&(a=a.selection()),null==i?s.remove():i(s),e&&a?e.merge(a).order():a},merge:function Qr(t){for(var n=t.selection?t.selection():t,i=this._groups,e=n._groups,a=i.length,o=Math.min(a,e.length),l=new Array(a),h=0;h<o;++h)for(var p,c=i[h],d=e[h],m=c.length,g=l[h]=new Array(m),x=0;x<m;++x)(p=c[x]||d[x])&&(g[x]=p);for(;h<a;++h)l[h]=i[h];return new xe(l,this._parents)},selection:function al(){return this},order:function Zr(){for(var t=this._groups,n=-1,i=t.length;++n<i;)for(var o,e=t[n],a=e.length-1,s=e[a];--a>=0;)(o=e[a])&&(s&&4^o.compareDocumentPosition(s)&&s.parentNode.insertBefore(o,s),s=o);return this},sort:function Kr(t){function n(m,g){return m&&g?t(m.__data__,g.__data__):!m-!g}t||(t=Jr);for(var i=this._groups,e=i.length,a=new Array(e),s=0;s<e;++s){for(var c,o=i[s],l=o.length,h=a[s]=new Array(l),d=0;d<l;++d)(c=o[d])&&(h[d]=c);h.sort(n)}return new xe(a,this._parents).order()},call:function eo(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function to(){return Array.from(this)},node:function io(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e=t[n],a=0,s=e.length;a<s;++a){var o=e[a];if(o)return o}return null},size:function no(){let t=0;for(const n of this)++t;return t},empty:function ao(){return!this.node()},each:function so(t){for(var n=this._groups,i=0,e=n.length;i<e;++i)for(var l,a=n[i],s=0,o=a.length;s<o;++s)(l=a[s])&&t.call(l,l.__data__,s,a);return this},attr:function go(t,n){var i=Xt(t);if(arguments.length<2){var e=this.node();return i.local?e.getAttributeNS(i.space,i.local):e.getAttribute(i)}return this.each((null==n?i.local?oo:ro:"function"==typeof n?i.local?mo:ho:i.local?co:lo)(i,n))},style:function xo(t,n,i){return arguments.length>1?this.each((null==n?uo:"function"==typeof n?fo:po)(t,n,i??"")):st(this.node(),t)},property:function To(t,n){return arguments.length>
vendor: 8,997 bytes, line 1
11?this.each((null==n?_o:"function"==typeof n?yo:vo)(t,n)):this.node()[t]},classed:function wo(t,n){var i=Hn(t+"");if(arguments.length<2){for(var e=Bi(this.node()),a=-1,s=i.length;++a<s;)if(!e.contains(i[a]))return!1;return!0}return this.each(("function"==typeof n?ko:n?bo:Co)(i,n))},text:function Do(t){return arguments.length?this.each(null==t?So:("function"==typeof t?Ao:Lo)(t)):this.node().textContent},html:function Mo(t){return arguments.length?this.each(null==t?Fo:("function"==typeof t?Bo:Eo)(t)):this.node().innerHTML},raise:function Po(){return this.each(Vo)},lower:function Ro(){return this.each(Oo)},append:function Io(t){var n="function"==typeof t?t:Wn(t);return this.select(function(){return this.appendChild(n.apply(this,arguments))})},insert:function Ho(t,n){var i="function"==typeof t?t:Wn(t),e=null==n?No:"function"==typeof n?n:Fi(n);return this.select(function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)})},remove:function Yo(){return this.each(Xo)},clone:function jo(t){return this.select(t?Wo:zo)},datum:function Uo(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function Jo(t,n,i){var a,o,e=function Qo(t){return t.trim().split(/^|\s+/).map(function(n){var i="",e=n.indexOf(".");return e>=0&&(i=n.slice(e+1),n=n.slice(0,e)),{type:n,name:i}})}(t+""),s=e.length;if(!(arguments.length<2)){for(l=n?Ko:Zo,a=0;a<s;++a)this.each(l(e[a],n,i));return this}var l=this.node().__on;if(l)for(var d,h=0,c=l.length;h<c;++h)for(a=0,d=l[h];a<s;++a)if((o=e[a]).type===d.type&&o.name===d.name)return d.value},dispatch:function il(t,n){return this.each(("function"==typeof n?tl:el)(t,n))},[Symbol.iterator]:function*nl(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,e=t[n],a=0,s=e.length;a<s;++a)(o=e[a])&&(yield o)}};const Tt=qn;function re(t){return"string"==typeof t?new xe([[document.querySelector(t)]],[document.documentElement]):new xe([[t]],Un)}var sl={value:()=>{}};function Qn(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e);i[e]=[]}return new Yt(i)}function Yt(t){this._=t}function ol(t,n){for(var a,i=0,e=t.length;i<e;++i)if((a=t[i]).name===n)return a.value}function Zn(t,n,i){for(var e=0,a=t.length;e<a;++e)if(t[e].name===n){t[e]=sl,t=t.slice(0,e).concat(t.slice(e+1));break}return null!=i&&t.push({name:n,value:i}),t}Yt.prototype=Qn.prototype={constructor:Yt,on:function(t,n){var a,i=this._,e=function rl(t,n){return t.trim().split(/^|\s+/).map(function(i){var e="",a=i.indexOf(".");if(a>=0&&(e=i.slice(a+1),i=i.slice(0,a)),i&&!n.hasOwnProperty(i))throw new Error("unknown type: "+i);return{type:i,name:e}})}(t+"",i),s=-1,o=e.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++s<o;)if(a=(t=e[s]).type)i[a]=Zn(i[a],t.name,n);else if(null==n)for(a in i)i[a]=Zn(i[a],t.name,null);return this}for(;++s<o;)if((a=(t=e[s]).type)&&(a=ol(i[a],t.name)))return a},copy:function(){var t={},n=this._;for(var i in n)t[i]=n[i].slice();return new Yt(t)},call:function(t,n){if((a=arguments.length-2)>0)for(var a,s,i=new Array(a),e=0;e<a;++e)i[e]=arguments[e+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(e=0,a=(s=this._[t]).length;e<a;++e)s[e].value.apply(n,i)},apply:function(t,n,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var e=this._[t],a=0,s=e.length;a<s;++a)e[a].value.apply(n,i)}};const Kn=Qn,Mi={capture:!0,passive:!1};function Vi(t){t.preventDefault(),t.stopImmediatePropagation()}function Pi(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function Jn(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function bt(){}var zt=1/.7,rt="\\s*([+-]?\\d+)\\s*",kt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",we="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hl=/^#([0-9a-f]{3,8})$/,dl=new RegExp(`^rgb\\(${rt},${rt},${rt}\\)$`),ml=new RegExp(`^rgb\\(${we},${we},${we}\\)$`),gl=new RegExp(`^rgba\\(${rt},${rt},${rt},${kt}\\)$`),ul=new RegExp(`^rgba\\(${we},${we},${we},${kt}\\)$`),pl=new RegExp(`^hsl\\(${kt},${we},${we}\\)$`),fl=new RegExp(`^hsla\\(${kt},${we},${we},${kt}\\)$`),ea={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 ta(){return this.rgb().formatHex()}function ia(){return this.rgb().formatRgb()}function je(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=hl.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?na(n):3===i?new ue(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?Wt(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?Wt(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=dl.exec(t))?new ue(n[1],n[2],n[3],1):(n=ml.exec(t))?new ue(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=gl.exec(t))?Wt(n[1],n[2],n[3],n[4]):(n=ul.exec(t))?Wt(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=pl.exec(t))?ra(n[1],n[2]/100,n[3]/100,1):(n=fl.exec(t))?ra(n[1],n[2]/100,n[3]/100,n[4]):ea.hasOwnProperty(t)?na(ea[t]):"transparent"===t?new ue(NaN,NaN,NaN,0):null}function na(t){return new ue(t>>16&255,t>>8&255,255&t,1)}function Wt(t,n,i,e){return e<=0&&(t=n=i=NaN),new ue(t,n,i,e)}function jt(t,n,i,e){return 1===arguments.length?function vl(t){return t instanceof bt||(t=je(t)),t?new ue((t=t.rgb()).r,t.g,t.b,t.opacity):new ue}(t):new ue(t,n,i,e??1)}function ue(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function aa(){return`#${qe(this.r)}${qe(this.g)}${qe(this.b)}`}function sa(){const t=Ut(this.opacity);return`${1===t?"rgb(":"rgba("}${Ue(this.r)}, ${Ue(this.g)}, ${Ue(this.b)}${1===t?")":`, ${t})`}`}function Ut(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ue(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function qe(t){return((t=Ue(t))<16?"0":"")+t.toString(16)}function ra(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Te(t,n,i,e)}function oa(t){if(t instanceof Te)return new Te(t.h,t.s,t.l,t.opacity);if(t instanceof bt||(t=je(t)),!t)return new Te;if(t instanceof Te)return t;var n=(t=t.rgb()).r/255,i=t.g/255,e=t.b/255,a=Math.min(n,i,e),s=Math.max(n,i,e),o=NaN,l=s-a,h=(s+a)/2;return l?(o=n===s?(i-e)/l+6*(i<e):i===s?(e-n)/l+2:(n-i)/l+4,l/=h<.5?s+a:2-s-a,o*=60):l=h>0&&h<1?0:o,new Te(o,l,h,t.opacity)}function Te(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function la(t){return(t=(t||0)%360)<0?t+360:t}
1function qt(t){return Math.max(0,Math.min(1,t||0))}function Oi(t,n,i){return 255*(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)}function ca(t,n,i,e,a){var s=t*t,o=s*t;return((1-3*t+3*s-o)*n+(4-6*s+3*o)*i+(1+3*t+3*s-3*o)*e+o*a)/6}Pi(bt,je,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ta,formatHex:ta,formatHex8:function xl(){return this.rgb().formatHex8()},formatHsl:function _l(){return oa(this).formatHsl()},formatRgb:ia,toString:ia}),Pi(ue,jt,Jn(bt,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new ue(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new ue(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ue(Ue(this.r),Ue(this.g),Ue(this.b),Ut(this.opacity))},displayable(){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:aa,formatHex:aa,formatHex8:function yl(){return`#${qe(this.r)}${qe(this.g)}${qe(this.b)}${qe(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:sa,toString:sa})),Pi(Te,function Tl(t,n,i,e){return 1===arguments.length?oa(t):new Te(t,n,i,e??1)},Jn(bt,{brighter(t){return t=null==t?zt:Math.pow(zt,t),new Te(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new Te(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,e=i+(i<.5?i:1-i)*n,a=2*i-e;return new ue(Oi(t>=240?t-240:t+120,a,e),Oi(t,a,e),Oi(t<120?t+240:t-120,a,e),this.opacity)},clamp(){return new Te(la(this.h),qt(this.s),qt(this.l),Ut(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Ut(this.opacity);return`${1===t?"hsl(":"hsla("}${la(this.h)}, ${100*qt(this.s)}%, ${100*qt(this.l)}%${1===t?")":`, ${t})`}`}}));const Ri=t=>()=>t;function da(t,n){var i=n-t;return i?function ha(t,n){return function(i){return t+i*n}}(t,i):Ri(isNaN(t)?n:t)}const Qt=function t(n){var i=function wl(t){return 1==(t=+t)?da:function(n,i){return i-n?function kl(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}(n,i,t):Ri(isNaN(n)?i:n)}}(n);function e(a,s){var o=i((a=jt(a)).r,(s=jt(s)).r),l=i(a.g,s.g),h=i(a.b,s.b),c=da(a.opacity,s.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=h(d),a.opacity=c(d),a+""}}return e.gamma=t,e}(1);function ma(t){return function(n){var o,l,i=n.length,e=new Array(i),a=new Array(i),s=new Array(i);for(o=0;o<i;++o)l=jt(n[o]),e[o]=l.r||0,a[o]=l.g||0,s[o]=l.b||0;return e=t(e),a=t(a),s=t(s),l.opacity=1,function(h){return l.r=e(h),l.g=a(h),l.b=s(h),l+""}}}function ga(t,n){var o,i=n?n.length:0,e=t?Math.min(i,t.length):0,a=new Array(e),s=new Array(i);for(o=0;o<e;++o)a[o]=Qe(t[o],n[o]);for(;o<i;++o)s[o]=n[o];return function(l){for(o=0;o<e;++o)s[o]=a[o](l);return s}}function Sl(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function be(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function Ll(t,n){var a,i={},e={};for(a in(null===t||"object"!=typeof t)&&(t={}),(null===n||"object"!=typeof n)&&(n={}),n)a in t?i[a]=Qe(t[a],n[a]):e[a]=n[a];return function(s){for(a in i)e[a]=i[a](s);return e}}ma(function bl(t){var n=t.length-1;return function(i){var e=i<=0?i=0:i>=1?(i=1,n-1):Math.floor(i*n),a=t[e],s=t[e+1];return ca((i-e/n)*n,e>0?t[e-1]:2*a-s,a,s,e<n-1?t[e+2]:2*s-a)}}),ma(function Cl(t){var n=t.length;return function(i){var e=Math.floor(((i%=1)<0?++i:i)*n);return ca((i-e/n)*n,t[(e+n-1)%n],t[e%n],t[(e+1)%n],t[(e+2)%n])}});var $i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gi=new RegExp($i.source,"g");function ua(t,n){var e,a,s,i=$i.lastIndex=Gi.lastIndex=0,o=-1,l=[],h=[];for(t+="",n+="";(e=$i.exec(t))&&(a=Gi.exec(n));)(s=a.index)>i&&(s=n.slice(i,s),l[o]?l[o]+=s:l[++o]=s),(e=e[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,h.push({i:o,x:be(e,a)})),i=Gi.lastIndex;return i<n.length&&(s=n.slice(i),l[o]?l[o]+=s:l[++o]=s),l.length<2?h[0]?function Dl(t){return function(n){return t(n)+""}}(h[0].x):function Al(t){return function(){return t}}(n):(n=h.length,function(c){for(var m,d=0;d<n;++d)l[(m=h[d]).i]=m.x(c);return l.join("")})}function Fl(t,n){n||(n=[]);var a,i=t?Math.min(n.length,t.length):0,e=n.slice();return function(s){for(a=0;a<i;++a)e[a]=t[a]*(1-s)+n[a]*s;return e}}function Qe(t,n){var e,i=typeof n;return null==n||"boolean"===i?Ri(n):("number"===i?be:"string"===i?(e=je(n))?(n=e,Qt):ua:n instanceof je?Qt:n instanceof Date?Sl:function El(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(n)?Fl:Array.isArray(n)?ga:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?Ll:be)(t,n)}function pa(t,n){if(t=function Bl(t){let n;for(;n=t.sourceEvent;)t=n;return t}(t),void 0===n&&(n=t.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var e=i.createSVGPoint();return e.x=t.clientX,e.y=t.clientY,[(e=e.matrixTransform(n.getScreenCTM().inverse())).x,e.y]}if(n.getBoundingClientRect){var a=n.getBoundingClientRect();return[t.clientX-a.left-n.clientLeft,t.clientY-a.top-n.clientTop]}}return[t.pageX,t.pageY]}var Zt,Lt,ot=0,wt=0,St=0,Kt=0,Ze=0,Jt=0,At="object"==typeof performance&&performance.now?performance:Date,xa="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ii(){return Ze||(xa(Ml),Ze=At.now()+Jt)}function Ml(){Ze=0}function ei(){this._call=this._time=this._next=null}function _a(t,n,i){var e=new ei;return e.restart(t,n,i),e}function va(){Ze=(Kt=At.now())+Jt,ot=wt=0;try{!function Vl(){Ii(),++ot;for(var n,t=Zt;t;)(n=Ze-t._time)>=0&&t._call.call(void 0,n),t=t._next;--ot}()}finally{ot=0,function Ol(){for(var t,i,n=Zt,e=1/0;n;)n._call?(e>n._time&&(e=n._time),t=n,n=n._next):(i=n._next,n._next=null,n=t?t._next=i:Zt=i);Lt=t,Ni(e)}(),Ze=0}}function Pl(){var t=At.now(),n=t-Kt;n>1e3&&(Jt-=n,Kt=t)}function Ni(t){ot||(wt&&(wt=clearTimeout(wt)),t-Ze>24?(t<1/0&&(wt=setTimeout(va,t-At.now()-Jt)),St&&(St=clearInterval(St))):(St||(Kt=At.now(),St=setInterval(Pl,1e3)),ot=1,xa(va)))}function ya(t,n,i){var e=new ei;return e.restart(a=>{e.stop(),t(a+n)},n=null==n?0:+n,i),e}ei.prototype=_a.prototype={constructor:ei,restart:function(t,n,i){if("function"!=typeof t)throw new TypeError("callback is not a function");i=(null==i?Ii():+i)+(null==n?0:+n),!this._next&&Lt!==this&&(Lt?Lt._next=this:Zt=this,Lt=this),this._call=t,this._time=i,Ni()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ni())}};var Rl=Kn("start","end","cancel","interrupt"),$l=[];function ni(t,n,i,e,a,s){var o=t.__transition;if(o){if(i in o)return}else t.__transition={};!function Gl(t,n,i){var a,e=t.__transition;function o(c){var d,m,g,p;if(1!==i.state)return h();for(d in e)if((p=e[d]).name===i.name){if(3===p.state)return ya(o);4===p.state?(p.state=6,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete e[d]):+d<n&&(p.state=6,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete e[d])}if(ya(function(){3===i.state&&(i.state=4,i.timer.restart(l,i.delay,i.time),l(c))}),i.state=2,i.on.call("start",t,t.__data__,i.index,i.group),2===i.state){for(i.state=3,a=new Array(g=i.tween.length),d=0,m=-1;d<g;++d)(p=i.tween[d].value.call(t,t.__data__,i.index,i.group))&&(a[++m]=p);a.length=m+1}}function l(c){for(var d=c<i.duration?i.ease.call(null,c/i.duration):(i.timer.restart(h),i.state=5,1
1),m=-1,g=a.length;++m<g;)a[m].call(t,d);5===i.state&&(i.on.call("end",t,t.__data__,i.index,i.group),h())}function h(){for(var c in i.state=6,i.timer.stop(),delete e[n],e)return;delete t.__transition}e[n]=i,i.timer=_a(function s(c){i.state=1,i.timer.restart(o,i.delay,i.time),i.delay<=c&&o(c-i.delay)},0,i.time)}(t,i,{name:n,index:e,group:a,on:Rl,tween:$l,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:0})}function Yi(t,n){var i=Ce(t,n);if(i.state>0)throw new Error("too late; already scheduled");return i}function Se(t,n){var i=Ce(t,n);if(i.state>3)throw new Error("too late; already running");return i}function Ce(t,n){var i=t.__transition;if(!i||!(i=i[n]))throw new Error("transition not found");return i}function zi(t,n){var e,a,o,i=t.__transition,s=!0;if(i){for(o in n=null==n?null:n+"",i)(e=i[o]).name===n?(a=e.state>2&&e.state<5,e.state=6,e.timer.stop(),e.on.call(a?"interrupt":"cancel",t,t.__data__,e.index,e.group),delete i[o]):s=!1;s&&delete t.__transition}}var ai,ka=180/Math.PI,Wi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function wa(t,n,i,e,a,s){var o,l,h;return(o=Math.sqrt(t*t+n*n))&&(t/=o,n/=o),(h=t*i+n*e)&&(i-=t*h,e-=n*h),(l=Math.sqrt(i*i+e*e))&&(i/=l,e/=l,h/=l),t*e<n*i&&(t=-t,n=-n,h=-h,o=-o),{translateX:a,translateY:s,rotate:Math.atan2(n,t)*ka,skewX:Math.atan(h)*ka,scaleX:o,scaleY:l}}function Sa(t,n,i,e){function a(c){return c.length?c.pop()+" ":""}return function(c,d){var m=[],g=[];return c=t(c),d=t(d),function s(c,d,m,g,p,x){if(c!==m||d!==g){var T=p.push("translate(",null,n,null,i);x.push({i:T-4,x:be(c,m)},{i:T-2,x:be(d,g)})}else(m||g)&&p.push("translate("+m+n+g+i)}(c.translateX,c.translateY,d.translateX,d.translateY,m,g),function o(c,d,m,g){c!==d?(c-d>180?d+=360:d-c>180&&(c+=360),g.push({i:m.push(a(m)+"rotate(",null,e)-2,x:be(c,d)})):d&&m.push(a(m)+"rotate("+d+e)}(c.rotate,d.rotate,m,g),function l(c,d,m,g){c!==d?g.push({i:m.push(a(m)+"skewX(",null,e)-2,x:be(c,d)}):d&&m.push(a(m)+"skewX("+d+e)}(c.skewX,d.skewX,m,g),function h(c,d,m,g,p,x){if(c!==m||d!==g){var T=p.push(a(p)+"scale(",null,",",null,")");x.push({i:T-4,x:be(c,m)},{i:T-2,x:be(d,g)})}else(1!==m||1!==g)&&p.push(a(p)+"scale("+m+","+g+")")}(c.scaleX,c.scaleY,d.scaleX,d.scaleY,m,g),c=d=null,function(p){for(var f,x=-1,T=g.length;++x<T;)m[(f=g[x]).i]=f.x(p);return m.join("")}}}var Xl=Sa(function Nl(t){const n=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return n.isIdentity?Wi:wa(n.a,n.b,n.c,n.d,n.e,n.f)},"px, ","px)","deg)"),Yl=Sa(function Hl(t){return null!=t&&(ai||(ai=document.createElementNS("http://www.w3.org/2000/svg","g")),ai.setAttribute("transform",t),t=ai.transform.baseVal.consolidate())?wa((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Wi},", ",")",")");function zl(t,n){var i,e;return function(){var a=Se(this,t),s=a.tween;if(s!==i)for(var o=0,l=(e=i=s).length;o<l;++o)if(e[o].name===n){(e=e.slice()).splice(o,1);break}a.tween=e}}function Wl(t,n,i){var e,a;if("function"!=typeof i)throw new Error;return function(){var s=Se(this,t),o=s.tween;if(o!==e){a=(e=o).slice();for(var l={name:n,value:i},h=0,c=a.length;h<c;++h)if(a[h].name===n){a[h]=l;break}h===c&&a.push(l)}s.tween=a}}function ji(t,n,i){var e=t._id;return t.each(function(){var a=Se(this,e);(a.value||(a.value={}))[n]=i.apply(this,arguments)}),function(a){return Ce(a,e).value[n]}}function La(t,n){var i;return("number"==typeof n?be:n instanceof je?Qt:(i=je(n))?(n=i,Qt):ua)(t,n)}function Ul(t){return function(){this.removeAttribute(t)}}function ql(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ql(t,n,i){var e,s,a=i+"";return function(){var o=this.getAttribute(t);return o===a?null:o===e?s:s=n(e=o,i)}}function Zl(t,n,i){var e,s,a=i+"";return function(){var o=this.getAttributeNS(t.space,t.local);return o===a?null:o===e?s:s=n(e=o,i)}}function Kl(t,n,i){var e,a,s;return function(){var o,h,l=i(this);return null==l?void this.removeAttribute(t):(o=this.getAttribute(t))===(h=l+"")?null:o===e&&h===a?s:(a=h,s=n(e=o,l))}}function Jl(t,n,i){var e,a,s;return function(){var o,h,l=i(this);return null==l?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local))===(h=l+"")?null:o===e&&h===a?s:(a=h,s=n(e=o,l))}}function nc(t,n){var i,e;function a(){var s=n.apply(this,arguments);return s!==e&&(i=(e=s)&&function ic(t,n){return function(i){this.setAttributeNS(t.space,t.local,n.call(this,i))}}(t,s)),i}return a._value=n,a}function ac(t,n){var i,e;function a(){var s=n.apply(this,arguments);return s!==e&&(i=(e=s)&&function tc(t,n){return function(i){this.setAttribute(t,n.call(this,i))}}(t,s)),i}return a._value=n,a}function rc(t,n){return function(){Yi(this,t).delay=+n.apply(this,arguments)}}function oc(t,n){return n=+n,function(){Yi(this,t).delay=n}}function cc(t,n){return function(){Se(this,t).duration=+n.apply(this,arguments)}}function hc(t,n){return n=+n,function(){Se(this,t).duration=n}}var wc=Tt.prototype.constructor;function Aa(t){return function(){this.style.removeProperty(t)}}var Xc=0;function Be(t,n,i,e){this._groups=t,this._parents=n,this._name=i,this._id=e}function Da(){return++Xc}var Me=Tt.prototype;Be.prototype=function Yc(t){return Tt().transition(t)}.prototype={constructor:Be,select:function Cc(t){var n=this._name,i=this._id;"function"!=typeof t&&(t=Fi(t));for(var e=this._groups,a=e.length,s=new Array(a),o=0;o<a;++o)for(var d,m,l=e[o],h=l.length,c=s[o]=new Array(h),g=0;g<h;++g)(d=l[g])&&(m=t.call(d,d.__data__,g,l))&&("__data__"in d&&(m.__data__=d.__data__),c[g]=m,ni(c[g],n,i,g,c,Ce(d,i)));return new Be(s,this._parents,n,i)},selectAll:function kc(t){var n=this._name,i=this._id;"function"!=typeof t&&(t=On(t));for(var e=this._groups,a=e.length,s=[],o=[],l=0;l<a;++l)for(var d,h=e[l],c=h.length,m=0;m<c;++m)if(d=h[m]){for(var p,g=t.call(d,d.__data__,m,h),x=Ce(d,i),T=0,f=g.length;T<f;++T)(p=g[T])&&ni(p,n,i,T,g,x);s.push(g),o.push(d)}return new Be(s,o,n,i)},selectChild:Me.selectChild,selectChildren:Me.selectChildren,filter:function fc(t){"function"!=typeof t&&(t=Rn(t));for(var n=this._groups,i=n.length,e=new Array(i),a=0;a<i;++a)for(var h,s=n[a],o=s.length,l=e[a]=[],c=0;c<o;++c)(h=s[c])&&t.call(h,h.__data__,c,s)&&l.push(h);return new Be(e,this._parents,this._name,this._id)},merge:function xc(t){if(t._id!==this._id)throw new Error;for(var n=this._groups,i=t._groups,e=n.length,s=Math.min(e,i.length),o=new Array(e),l=0;l<s;++l)for(var g,h=n[l],c=i[l],d=h.length,m=o[l]=new Array(d),p=0;p<d;
1++p)(g=h[p]||c[p])&&(m[p]=g);for(;l<e;++l)o[l]=n[l];return new Be(o,this._parents,this._name,this._id)},selection:function Sc(){return new wc(this._groups,this._parents)},transition:function Nc(){for(var t=this._name,n=this._id,i=Da(),e=this._groups,a=e.length,s=0;s<a;++s)for(var h,o=e[s],l=o.length,c=0;c<l;++c)if(h=o[c]){var d=Ce(h,n);ni(h,t,i,c,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new Be(e,this._parents,t,i)},call:Me.call,nodes:Me.nodes,node:Me.node,size:Me.size,empty:Me.empty,each:Me.each,on:function yc(t,n){var i=this._id;return arguments.length<2?Ce(this.node(),i).on.on(t):this.each(function vc(t,n,i){var e,a,s=function _c(t){return(t+"").trim().split(/^|\s+/).every(function(n){var i=n.indexOf(".");return i>=0&&(n=n.slice(0,i)),!n||"start"===n})}(n)?Yi:Se;return function(){var o=s(this,t),l=o.on;l!==e&&(a=(e=l).copy()).on(n,i),o.on=a}}(i,t,n))},attr:function ec(t,n){var i=Xt(t),e="transform"===i?Yl:La;return this.attrTween(t,"function"==typeof n?(i.local?Jl:Kl)(i,e,ji(this,"attr."+t,n)):null==n?(i.local?ql:Ul)(i):(i.local?Zl:Ql)(i,e,n))},attrTween:function sc(t,n){var i="attr."+t;if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==n)return this.tween(i,null);if("function"!=typeof n)throw new Error;var e=Xt(t);return this.tween(i,(e.local?nc:ac)(e,n))},style:function Ec(t,n,i){var e="transform"==(t+="")?Xl:La;return null==n?this.styleTween(t,function Lc(t,n){var i,e,a;return function(){var s=st(this,t),o=(this.style.removeProperty(t),st(this,t));return s===o?null:s===i&&o===e?a:a=n(i=s,e=o)}}(t,e)).on("end.style."+t,Aa(t)):"function"==typeof n?this.styleTween(t,function Dc(t,n,i){var e,a,s;return function(){var o=st(this,t),l=i(this),h=l+"";return null==l&&(this.style.removeProperty(t),h=l=st(this,t)),o===h?null:o===e&&h===a?s:(a=h,s=n(e=o,l))}}(t,e,ji(this,"style."+t,n))).each(function Fc(t,n){var i,e,a,l,s="style."+n,o="end."+s;return function(){var h=Se(this,t),c=h.on,d=null==h.value[s]?l||(l=Aa(n)):void 0;(c!==i||a!==d)&&(e=(i=c).copy()).on(o,a=d),h.on=e}}(this._id,t)):this.styleTween(t,function Ac(t,n,i){var e,s,a=i+"";return function(){var o=st(this,t);return o===a?null:o===e?s:s=n(e=o,i)}}(t,e,n),i).on("end.style."+t,null)},styleTween:function Vc(t,n,i){var e="style."+(t+="");if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;return this.tween(e,function Mc(t,n,i){var e,a;function s(){var o=n.apply(this,arguments);return o!==a&&(e=(a=o)&&function Bc(t,n,i){return function(e){this.style.setProperty(t,n.call(this,e),i)}}(t,o,i)),e}return s._value=n,s}(t,n,i??""))},text:function Rc(t){return this.tween("text","function"==typeof t?function Oc(t){return function(){var n=t(this);this.textContent=n??""}}(ji(this,"text",t)):function Pc(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function Ic(t){var n="text";if(arguments.length<1)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function Gc(t){var n,i;function e(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&function $c(t){return function(n){this.textContent=t.call(this,n)}}(a)),n}return e._value=t,e}(t))},remove:function bc(){return this.on("end.remove",function Tc(t){return function(){var n=this.parentNode;for(var i in this.__transition)if(+i!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function jl(t,n){var i=this._id;if(t+="",arguments.length<2){for(var o,e=Ce(this.node(),i).tween,a=0,s=e.length;a<s;++a)if((o=e[a]).name===t)return o.value;return null}return this.each((null==n?zl:Wl)(i,t,n))},delay:function lc(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?rc:oc)(n,t)):Ce(this.node(),n).delay},duration:function dc(t){var n=this._id;return arguments.length?this.each(("function"==typeof t?cc:hc)(n,t)):Ce(this.node(),n).duration},ease:function gc(t){var n=this._id;return arguments.length?this.each(function mc(t,n){if("function"!=typeof n)throw new Error;return function(){Se(this,t).ease=n}}(n,t)):Ce(this.node(),n).ease},easeVarying:function pc(t){if("function"!=typeof t)throw new Error;return this.each(function uc(t,n){return function(){var i=n.apply(this,arguments);if("function"!=typeof i)throw new Error;Se(this,t).ease=i}}(this._id,t))},end:function Hc(){var t,n,i=this,e=i._id,a=i.size();return new Promise(function(s,o){var l={value:o},h={value:function(){0===--a&&s()}};i.each(function(){var c=Se(this,e),d=c.on;
vendor: 4,476 bytes, line 1
1d!==t&&((n=(t=d).copy())._.cancel.push(l),n._.interrupt.push(l),n._.end.push(h)),c.on=n}),0===a&&s()})},[Symbol.iterator]:Me[Symbol.iterator]};var Wc={time:null,delay:0,duration:250,ease:function zc(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function jc(t,n){for(var i;!(i=t.__transition)||!(i=i[n]);)if(!(t=t.parentNode))throw new Error(`transition ${n} not found`);return i}Tt.prototype.interrupt=function Il(t){return this.each(function(){zi(this,t)})},Tt.prototype.transition=function Uc(t){var n,i;t instanceof Be?(n=t._id,t=t._name):(n=Da(),(i=Wc).time=Ii(),t=null==t?null:t+"");for(var e=this._groups,a=e.length,s=0;s<a;++s)for(var h,o=e[s],l=o.length,c=0;c<l;++c)(h=o[c])&&ni(h,t,n,c,o,i||jc(h,n));return new Be(e,this._parents,t,n)};const Ui=t=>()=>t;function qc(t,{sourceEvent:n,target:i,selection:e,mode:a,dispatch:s}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},selection:{value:e,enumerable:!0,configurable:!0},mode:{value:a,enumerable:!0,configurable:!0},_:{value:s}})}function qi(t){t.preventDefault(),t.stopImmediatePropagation()}var Fa={name:"drag"},Qi={name:"space"},lt={name:"handle"},ct={name:"center"};const{abs:Ea,max:oe,min:le}=Math;function Ba(t){return[+t[0],+t[1]]}function Zi(t){return[Ba(t[0]),Ba(t[1])]}var si={name:"x",handles:["w","e"].map(Dt),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ri={name:"y",handles:["n","s"].map(Dt),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},Ve=(["n","w","e","s","nw","ne","sw","se"].map(Dt),{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"},Va={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Kc={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Jc={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Dt(t){return{type:t}}function eh(t){return!t.ctrlKey&&!t.button}function th(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function ih(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ki(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function Ft(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function sh(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function en(t){let n,i,e;function a(l,h,c=0,d=l.length){if(c<d){if(0!==n(h,h))return d;do{const m=c+d>>>1;i(l[m],h)<0?c=m+1:d=m}while(c<d)}return c}return 2!==t.length?(n=Ft,i=(l,h)=>Ft(t(l),h),e=(l,h)=>t(l)-h):(n=t===Ft||t===sh?t:rh,i=t,e=t),{left:a,center:function o(l,h,c=0,d=l.length){const m=a(l,h,c,d-1);return m>c&&e(l[m-1],h)>-e(l[m],h)?m-1:m},right:function s(l,h,c=0,d=l.length){if(c<d){if(0!==n(h,h))return d;do{const m=c+d>>>1;i(l[m],h)<=0?c=m+1:d=m}while(c<d)}return c}}}function rh(){return 0}const oh=Math.sqrt(50),lh=Math.sqrt(10),ch=Math.sqrt(2);function oi(t,n,i){const e=(n-t)/Math.max(0,i),a=Math.floor(Math.log10(e)),s=e/Math.pow(10,a),o=s>=oh?10:s>=lh?5:s>=ch?2:1;let l,h,c;return a<0?(c=Math.pow(10,-a)/o,l=Math.round(t*c),h=Math.round(n*c),l/c<t&&++l,h/c>n&&--h,c=-c):(c=Math.pow(10,a)*o,l=Math.round(t/c),h=Math.round(n/c),l*c<t&&++l,h*c>n&&--h),h<l&&.5<=i&&i<2?oi(t,n,2*i):[l,h,c]}function tn(t,n,i){return oi(t=+t,n=+n,i=+i)[2]}function nn(t,n,i){i=+i;const e=(n=+n)<(t=+t),a=e?tn(n,t,i):tn(t,n,i);return(e?-1:1)*(a<0?1/-a:a)}const Pe=1e3,ye=6e4,Oe=60*ye,Re=24*Oe,an=7*Re,Pa=30*Re,sn=365*Re,rn=new Date,on=new Date;function ae(t,n,i,e){function a(s){return t(s=0===arguments.length?new Date:new Date(+s)),s}return a.floor=s=>(t(s=new Date(+s)),s),a.ceil=s=>(t(s=new Date(s-1)),n(s,1),t(s),s),a.round=s=>{const o=a(s),l=a.ceil(s);return s-o<l-s?o:l},a.offset=(s,o)=>(n(s=new Date(+s),null==o?1:Math.floor(o)),s),a.range=(s,o,l)=>{const h=[];if(s=a.ceil(s),l=null==l?1:Math.floor(l),!(s<o&&l>0))return h;let c;do{h.push(c=new Date(+s)),n(s,l),t(s)}while(c<s&&s<o);return h},a.filter=s=>ae(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;n(o,-1),!s(o););else for(;--l>=0;)for(;n(o,1),!s(o););}),i&&(a.count=(s,o)=>
vendor: 7,094 bytes, line 1
1(rn.setTime(+s),on.setTime(+o),t(rn),t(on),Math.floor(i(rn,on))),a.every=s=>(s=Math.floor(s),isFinite(s)&&s>0?s>1?a.filter(e?o=>e(o)%s===0:o=>a.count(0,o)%s===0):a:null)),a}const li=ae(()=>{},(t,n)=>{t.setTime(+t+n)},(t,n)=>n-t);li.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?ae(n=>{n.setTime(Math.floor(n/t)*t)},(n,i)=>{n.setTime(+n+i*t)},(n,i)=>(i-n)/t):li:null);const ht=ae(t=>{t.setTime(t-t.getMilliseconds())},(t,n)=>{t.setTime(+t+n*Pe)},(t,n)=>(n-t)/Pe,t=>t.getUTCSeconds()),ln=ae(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pe)},(t,n)=>{t.setTime(+t+n*ye)},(t,n)=>(n-t)/ye,t=>t.getMinutes()),Oa=ae(t=>{t.setUTCSeconds(0,0)},(t,n)=>{t.setTime(+t+n*ye)},(t,n)=>(n-t)/ye,t=>t.getUTCMinutes()),cn=ae(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pe-t.getMinutes()*ye)},(t,n)=>{t.setTime(+t+n*Oe)},(t,n)=>(n-t)/Oe,t=>t.getHours()),Ra=ae(t=>{t.setUTCMinutes(0,0,0)},(t,n)=>{t.setTime(+t+n*Oe)},(t,n)=>(n-t)/Oe,t=>t.getUTCHours()),Et=ae(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ye)/Re,t=>t.getDate()-1),hn=ae(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/Re,t=>t.getUTCDate()-1),$a=ae(t=>{t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n)},(t,n)=>(n-t)/Re,t=>Math.floor(t/Re));function Ke(t){return ae(n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},(n,i)=>{n.setDate(n.getDate()+7*i)},(n,i)=>(i-n-(i.getTimezoneOffset()-n.getTimezoneOffset())*ye)/an)}const ci=Ke(0),hi=Ke(1),dt=(Ke(2),Ke(3),Ke(4));function Je(t){return ae(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCDate(n.getUTCDate()+7*i)},(n,i)=>(i-n)/an)}Ke(5),Ke(6);const dn=Je(0),di=Je(1),mt=(Je(2),Je(3),Je(4)),mn=(Je(5),Je(6),ae(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,n)=>{t.setMonth(t.getMonth()+n)},(t,n)=>n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear()),t=>t.getMonth())),Ga=ae(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)},(t,n)=>n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear()),t=>t.getUTCMonth()),$e=ae(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n)},(t,n)=>n.getFullYear()-t.getFullYear(),t=>t.getFullYear());$e.every=t=>isFinite(t=Math.floor(t))&&t>0?ae(n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,i)=>{n.setFullYear(n.getFullYear()+i*t)}):null;const Xe=ae(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)},(t,n)=>n.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function Ia(t,n,i,e,a,s){const o=[[ht,1,Pe],[ht,5,5e3],[ht,15,15e3],[ht,30,3e4],[s,1,ye],[s,5,5*ye],[s,15,15*ye],[s,30,30*ye],[a,1,Oe],[a,3,3*Oe],[a,6,6*Oe],[a,12,12*Oe],[e,1,Re],[e,2,2*Re],[i,1,an],[n,1,Pa],[n,3,3*Pa],[t,1,sn]];function h(c,d,m){const g=Math.abs(d-c)/m,p=en(([,,f])=>f).right(o,g);if(p===o.length)return t.every(nn(c/sn,d/sn,m));if(0===p)return li.every(Math.max(nn(c,d,m),1));const[x,T]=o[g/o[p-1][2]<o[p][2]/g?p-1:p];return x.every(T)}return[function l(c,d,m){const g=d<c;g&&([c,d]=[d,c]);const p=m&&"function"==typeof m.range?m:h(c,d,m),x=p?p.range(c,+d+1):[];return g?x.reverse():x},h]}Xe.every=t=>isFinite(t=Math.floor(t))&&t>0?ae(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)}):null;const[ix,nx]=Ia(Xe,Ga,dn,$a,Ra,Oa),[vh,yh]=Ia($e,mn,ci,Et,cn,ln);function gn(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function un(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Bt(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}var gt,ts,Na={"-":"",_:" ",0:"0"},se=/^\s*\d+/,bh=/^%/,Ch=/[\\^$*+?|[\]().{}]/g;function I(t,n,i){var e=t<0?"-":"",a=(e?-t:t)+"",s=a.length;return e+(s<i?new Array(i-s+1).join(n)+a:a)}function kh(t){return t.replace(Ch,"\\$&")}function Mt(t){return new RegExp("^(?:"+t.map(kh).join("|")+")","i")}function Vt(t){return new Map(t.map((n,i)=>[n.toLowerCase(),i]))}function wh(t,n,i){var e=se.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function Sh(t,n,i){var e=se.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function Lh(t,n,i){var e=se.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function Ah(t,n,i){var e=se.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function Dh(t,n,i){var e=se.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function Ha(t,n,i){var e=se.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function Xa(t,n,i){var e=se.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function Fh(t,n,i){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),i+e[0].length):-1}function Eh(t,n,i){var e=se.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function Bh(t,n,i){var e=se.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function Ya(t,n,i){var e=se.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function Mh(t,n,i){var e=se.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function za(t,n,i){var e=se.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function Vh(t,n,i){var e=se.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function Ph(t,n,i){var e=se.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function Oh(t,n,i){var e=se.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function Rh(t,n,i){var e=se.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function $h(t,n,i){var e=bh.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function Gh(t,n,i){var e=se.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function Ih(t,n,i){var e=se.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function Wa(t,n){return I(t.getDate(),n,2)}function Nh(t,n){return I(t.getHours(),n,2)}function Hh(t,n){return I(t.getHours()%12||12,n,2)}function Xh(t,n){return I(1+Et.count($e(t),t),n,3)}function ja(t,n){return I(t.getMilliseconds(),n,3)}function Yh(t,n){return ja(t,n)+"000"}function zh(t,n){return I(t.getMonth()+1,n,2)}function Wh(t,n){return I(t.getMinutes(),n,2)}function jh(t,n){return I(t.getSeconds(),n,2)}function Uh(t){var n=t.getDay();return 0===n?7:n}function qh(t,n){return I(ci.count($e(t)-1,t),n,2)}function Ua(t){var n=t.getDay();return n>=4||0===n?dt(t):dt.ceil(t)}function Qh(t,n){return t=Ua(t),I(dt.count($e(t),t)+(4===$e(t).getDay()),n,2)}function Zh(t){return t.getDay()}function Kh(t,n){return I(hi.count($e(t)-1,t),n,2)}function Jh(t,n){return I(t.getFullYear()%100,n,2)}function ed(t,n){return I((t=Ua(t)).getFullYear()%100,n,2)}function td(t,n){return I(t.getFullYear()%1e4,n,4)}function id(t,n){var i=t.getDay();return I((t=i>=4||0===i?dt(t):dt.ceil(t)).getFullYear()%1e4,n,4)}
vendor: 4,398 bytes, line 1
1function nd(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+I(n/60|0,"0",2)+I(n%60,"0",2)}function qa(t,n){return I(t.getUTCDate(),n,2)}function ad(t,n){return I(t.getUTCHours(),n,2)}function sd(t,n){return I(t.getUTCHours()%12||12,n,2)}function rd(t,n){return I(1+hn.count(Xe(t),t),n,3)}function Qa(t,n){return I(t.getUTCMilliseconds(),n,3)}function od(t,n){return Qa(t,n)+"000"}function ld(t,n){return I(t.getUTCMonth()+1,n,2)}function cd(t,n){return I(t.getUTCMinutes(),n,2)}function hd(t,n){return I(t.getUTCSeconds(),n,2)}function dd(t){var n=t.getUTCDay();return 0===n?7:n}function md(t,n){return I(dn.count(Xe(t)-1,t),n,2)}function Za(t){var n=t.getUTCDay();return n>=4||0===n?mt(t):mt.ceil(t)}function gd(t,n){return t=Za(t),I(mt.count(Xe(t),t)+(4===Xe(t).getUTCDay()),n,2)}function ud(t){return t.getUTCDay()}function pd(t,n){return I(di.count(Xe(t)-1,t),n,2)}function fd(t,n){return I(t.getUTCFullYear()%100,n,2)}function xd(t,n){return I((t=Za(t)).getUTCFullYear()%100,n,2)}function _d(t,n){return I(t.getUTCFullYear()%1e4,n,4)}function vd(t,n){var i=t.getUTCDay();return I((t=i>=4||0===i?mt(t):mt.ceil(t)).getUTCFullYear()%1e4,n,4)}function yd(){return"+0000"}function Ka(){return"%"}function Ja(t){return+t}function es(t){return Math.floor(+t/1e3)}function is(t){return null===t?NaN:+t}!function kd(t){gt=function Th(t){var n=t.dateTime,i=t.date,e=t.time,a=t.periods,s=t.days,o=t.shortDays,l=t.months,h=t.shortMonths,c=Mt(a),d=Vt(a),m=Mt(s),g=Vt(s),p=Mt(o),x=Vt(o),T=Mt(l),f=Vt(l),_=Mt(h),C=Vt(h),y={a:function H(S){return o[S.getDay()]},A:function K(S){return s[S.getDay()]},b:function G(S){return h[S.getMonth()]},B:function Q(S){return l[S.getMonth()]},c:null,d:Wa,e:Wa,f:Yh,g:ed,G:id,H:Nh,I:Hh,j:Xh,L:ja,m:zh,M:Wh,p:function W(S){return a[+(S.getHours()>=12)]},q:function j(S){return 1+~~(S.getMonth()/3)},Q:Ja,s:es,S:jh,u:Uh,U:qh,V:Qh,w:Zh,W:Kh,x:null,X:null,y:Jh,Y:td,Z:nd,"%":Ka},L={a:function He(S){return o[S.getUTCDay()]},A:function De(S){return s[S.getUTCDay()]},b:function de(S){return h[S.getUTCMonth()]},B:function Fe(S){return l[S.getUTCMonth()]},c:null,d:qa,e:qa,f:od,g:xd,G:vd,H:ad,I:sd,j:rd,L:Qa,m:ld,M:cd,p:function ne(S){return a[+(S.getUTCHours()>=12)]},q:function ke(S){return 1+~~(S.getUTCMonth()/3)},Q:Ja,s:es,S:hd,u:dd,U:md,V:gd,w:ud,W:pd,x:null,X:null,y:fd,Y:_d,Z:yd,"%":Ka},D={a:function R(S,B,V){var v=p.exec(B.slice(V));return v?(S.w=x.get(v[0].toLowerCase()),V+v[0].length):-1},A:function A(S,B,V){var v=m.exec(B.slice(V));return v?(S.w=g.get(v[0].toLowerCase()),V+v[0].length):-1},b:function N(S,B,V){var v=_.exec(B.slice(V));return v?(S.m=C.get(v[0].toLowerCase()),V+v[0].length):-1},B:function b(S,B,V){var v=T.exec(B.slice(V));return v?(S.m=f.get(v[0].toLowerCase()),V+v[0].length):-1},c:function F(S,B,V){return O(S,n,B,V)},d:Ya,e:Ya,f:Rh,g:Xa,G:Ha,H:za,I:za,j:Mh,L:Oh,m:Bh,M:Vh,p:function q(S,B,V){var v=c.exec(B.slice(V));return v?(S.p=d.get(v[0].toLowerCase()),V+v[0].length):-1},q:Eh,Q:Gh,s:Ih,S:Ph,u:Sh,U:Lh,V:Ah,w:wh,W:Dh,x:function ie(S,B,V){return O(S,i,B,V)},X:function X(S,B,V){return O(S,e,B,V)},y:Xa,Y:Ha,Z:Fh,"%":$h};function w(S,B){return function(V){var ge,E,ee,v=[],J=-1,Y=0,me=S.length;for(V instanceof Date||(V=new Date(+V));++J<me;)37===S.charCodeAt(J)&&(v.push(S.slice(Y,J)),null!=(E=Na[ge=S.charAt(++J)])?ge=S.charAt(++J):E="e"===ge?" ":"0",(ee=B[ge])&&(ge=ee(V,E)),v.push(ge),Y=J+1);return v.push(S.slice(Y,J)),v.join("")}}function P(S,B){return function(V){var Y,me,v=Bt(1900,void 0,1);if(O(v,S,V+="",0)!=V.length)return null;if("Q"in v)return new Date(v.Q);if("s"in v)return new Date(1e3*v.s+("L"in v?v.L:0));if(B&&!("Z"in v)&&(v.Z=0),"p"in v&&(v.H=v.H%12+12*v.p),void 0===v.m&&(v.m="q"in v?v.q:0),"V"in v){if(v.V<1||v.V>53)return null;"w"in v||(v.w=1),"Z"in v?(me=(Y=un(Bt(v.y,0,1))).getUTCDay(),Y=me>4||0===me?di.ceil(Y):di(Y),Y=hn.offset(Y,7*(v.V-1)),v.y=Y.getUTCFullYear(),v.m=Y.getUTCMonth(),v.d=Y.getUTCDate()+(v.w+6)%7):(me=(Y=gn(Bt(v.y,0,1))).getDay(),Y=me>4||0===me?hi.ceil(Y):hi(Y),Y=Et.offset(Y,7*(v.V-1)),v.y=Y.getFullYear(),v.m=Y.getMonth(),v.d=Y.getDate()+(v.w+6)%7)}else("W"in v||"U"in v)&&("w"in v||(v.w="u"in v?v.u%7:"W"in v?1:0),me="Z"in v?un(Bt(v.y,0,1)).getUTCDay():gn(Bt(v.y,0,1)).getDay(),v.m=0,v.d="W"in v?(v.w+6)%7+7*v.W-(me+5)%7:v.w+7*v.U-(me+6)%7);return"Z"in v?(v.H+=v.Z/100|0,v.M+=v.Z%100,un(v)):gn(v)}}function O(S,B,V,v){for(var ge,E,J=0,Y=B.length,me=V.length;J<Y;){if(v>=me)return-1;
vendor: 6,489 bytes, line 1
1if(37===(ge=B.charCodeAt(J++))){if(ge=B.charAt(J++),!(E=D[ge in Na?B.charAt(J++):ge])||(v=E(S,V,v))<0)return-1}else if(ge!=V.charCodeAt(v++))return-1}return v}return y.x=w(i,y),y.X=w(e,y),y.c=w(n,y),L.x=w(i,L),L.X=w(e,L),L.c=w(n,L),{format:function(S){var B=w(S+="",y);return B.toString=function(){return S},B},parse:function(S){var B=P(S+="",!1);return B.toString=function(){return S},B},utcFormat:function(S){var B=w(S+="",L);return B.toString=function(){return S},B},utcParse:function(S){var B=P(S+="",!0);return B.toString=function(){return S},B}}}(t),ts=gt.format}({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"]});const wd=en(Ft).right,as=(en(is),wd);function Sd(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function Ad(t){return+t}var ss=[0,1];function ut(t){return t}function pn(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:function Ld(t){return function(){return t}}(isNaN(n)?NaN:.5)}function Fd(t,n,i){var e=t[0],a=t[1],s=n[0],o=n[1];return a<e?(e=pn(a,e),s=i(o,s)):(e=pn(e,a),s=i(s,o)),function(l){return s(e(l))}}function Ed(t,n,i){var e=Math.min(t.length,n.length)-1,a=new Array(e),s=new Array(e),o=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<e;)a[o]=pn(t[o],t[o+1]),s[o]=i(n[o],n[o+1]);return function(l){var h=as(t,l,1,e)-1;return s[h](a[h](l))}}function rs(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function os(){return function Bd(){var e,a,s,l,h,c,t=ss,n=ss,i=Qe,o=ut;function d(){var g=Math.min(t.length,n.length);return o!==ut&&(o=function Dd(t,n){var i;return t>n&&(i=t,t=n,n=i),function(e){return Math.max(t,Math.min(n,e))}}(t[0],t[g-1])),l=g>2?Ed:Fd,h=c=null,m}function m(g){return null==g||isNaN(g=+g)?s:(h||(h=l(t.map(e),n,i)))(e(o(g)))}return m.invert=function(g){return o(a((c||(c=l(n,t.map(e),be)))(g)))},m.domain=function(g){return arguments.length?(t=Array.from(g,Ad),d()):t.slice()},m.range=function(g){return arguments.length?(n=Array.from(g),d()):n.slice()},m.rangeRound=function(g){return n=Array.from(g),i=Sd,d()},m.clamp=function(g){return arguments.length?(o=!!g||ut,d()):o!==ut},m.interpolate=function(g){return arguments.length?(i=g,d()):i},m.unknown=function(g){return arguments.length?(s=g,m):s},function(g,p){return e=g,a=p,d()}}()(ut,ut)}function Pt(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function Vd(t){return new Date(t)}function Pd(t){return t instanceof Date?+t:+new Date(+t)}function ls(t,n,i,e,a,s,o,l,h,c){var d=os(),m=d.invert,g=d.domain,p=c(".%L"),x=c(":%S"),T=c("%I:%M"),f=c("%I %p"),_=c("%a %d"),C=c("%b %d"),y=c("%B"),L=c("%Y");function D(w){return(h(w)<w?p:l(w)<w?x:o(w)<w?T:s(w)<w?f:e(w)<w?a(w)<w?_:C:i(w)<w?y:L)(w)}return d.invert=function(w){return new Date(m(w))},d.domain=function(w){return arguments.length?g(Array.from(w,Pd)):g().map(Vd)},d.ticks=function(w){var P=g();return t(P[0],P[P.length-1],w??10)},d.tickFormat=function(w,P){return null==P?D:c(P)},d.nice=function(w){var P=g();return(!w||"function"!=typeof w.range)&&(w=n(P[0],P[P.length-1],w??10)),w?g(function Md(t,n){var o,i=0,e=(t=t.slice()).length-1,a=t[i],s=t[e];return s<a&&(o=i,i=e,e=o,o=a,a=s,s=o),t[i]=n.floor(a),t[e]=n.ceil(s),t}(P,w)):d},d.copy=function(){return rs(d,ls(t,n,i,e,a,s,o,l,h,c))},d}function cs(){return Pt.apply(ls(vh,yh,$e,mn,ci,Et,cn,ln,ht,ts).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var hs,Od=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mi(t){if(!(n=Od.exec(t)))throw new Error("invalid format: "+t);var n;return new fn({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function fn(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function gi(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function pt(t){return(t=gi(Math.abs(t)))?t[1]:NaN}function ds(t,n){var i=gi(t,n);if(!i)return t+"";var e=i[0],a=i[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")}mi.prototype=fn.prototype,fn.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 ms={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function Rd(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>ds(100*t,n),r:ds,s:function Hd(t,n){var i=gi(t,n);if(!i)return t+"";var e=i[0],a=i[1],s=a-(hs=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,o=e.length;return s===o?e:s>o?e+new Array(s-o+1).join("0"):s>0?e.slice(0,s)+"."+e.slice(s):"0."+new Array(1-s).join("0")+gi(t,Math.max(0,n+s-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function gs(t){return t}var ui,fs,xs,us=Array.prototype.map,ps=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function Ud(t){var n=t.domain;return t.ticks=function(i){var e=n();return function hh(t,n,i){if(!((i=+i)>0))return[];if((t=+t)===(n=+n))return[t];const e=n<t,[a,s,o]=e?oi(n,t,i):oi(t,n,i);if(!(s>=a))return[];const l=s-a+1,h=new Array(l);if(e)if(o<0)for(let c=0;c<l;++c)h[c]=(s-c)/-o;else for(let c=0;c<l;++c)h[c]=(s-c)*o;else if(o<0)for(let c=0;c<l;++c)h[c]=(a+c)/-o;else for(let c=0;c<l;++c)h[c]=(a+c)*o;return h}(e[0],e[e.length-1],i??10)},t.tickFormat=function(i,e){var a=n();
1return function jd(t,n,i,e){var s,a=nn(t,n,i);switch((e=mi(e??",f")).type){case"s":var o=Math.max(Math.abs(t),Math.abs(n));return null==e.precision&&!isNaN(s=function $d(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(pt(n)/3)))-pt(Math.abs(t)))}(a,o))&&(e.precision=s),xs(e,o);case"":case"e":case"g":case"p":case"r":null==e.precision&&!isNaN(s=function zd(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,pt(n)-pt(t))+1}(a,Math.max(Math.abs(t),Math.abs(n))))&&(e.precision=s-("e"===e.type));break;case"f":case"%":null==e.precision&&!isNaN(s=function Wd(t){return Math.max(0,-pt(Math.abs(t)))}(a))&&(e.precision=s-2*("%"===e.type))}return fs(e)}(a[0],a[a.length-1],i??10,e)},t.nice=function(i){null==i&&(i=10);var h,c,e=n(),a=0,s=e.length-1,o=e[a],l=e[s],d=10;for(l<o&&(c=o,o=l,l=c,c=a,a=s,s=c);d-- >0;){if((c=tn(o,l,i))===h)return e[a]=o,e[s]=l,n(e);if(c>0)o=Math.floor(o/c)*c,l=Math.ceil(l/c)*c;else{if(!(c<0))break;o=Math.ceil(o*c)/c,l=Math.floor(l*c)/c}h=c}return t},t}function Le(){var t=os();return t.copy=function(){return rs(t,Le())},Pt.apply(t,arguments),Ud(t)}function _s(t,n,i){t=+t,n=+n,i=(a=arguments.length)<2?(n=t,t=0,1):a<3?1:+i;for(var e=-1,a=0|Math.max(0,Math.ceil((n-t)/i)),s=new Array(a);++e<a;)s[e]=t+e*i;return s}!function Yd(t){ui=function Xd(t){var n=void 0===t.grouping||void 0===t.thousands?gs:function Gd(t,n){return function(i,e){for(var a=i.length,s=[],o=0,l=t[0],h=0;a>0&&l>0&&(h+l+1>e&&(l=Math.max(1,e-h)),s.push(i.substring(a-=l,a+l)),!((h+=l+1)>e));)l=t[o=(o+1)%t.length];return s.reverse().join(n)}}(us.call(t.grouping,Number),t.thousands+""),i=void 0===t.currency?"":t.currency[0]+"",e=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?gs:function Id(t){return function(n){return n.replace(/[0-9]/g,function(i){return t[+i]})}}(us.call(t.numerals,String)),o=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"\u2212":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function c(m){var g=(m=mi(m)).fill,p=m.align,x=m.sign,T=m.symbol,f=m.zero,_=m.width,C=m.comma,y=m.precision,L=m.trim,D=m.type;"n"===D?(C=!0,D="g"):ms[D]||(void 0===y&&(y=12),L=!0,D="g"),(f||"0"===g&&"="===p)&&(f=!0,g="0",p="=");var w="$"===T?i:"#"===T&&/[boxX]/.test(D)?"0"+D.toLowerCase():"",P="$"===T?e:/[%p]/.test(D)?o:"",O=ms[D],q=/[defgprs%]/.test(D);function R(A){var F,ie,X,N=w,b=P;if("c"===D)b=O(A)+b,A="";else{var H=(A=+A)<0||1/A<0;if(A=isNaN(A)?h:O(Math.abs(A),y),L&&(A=function Nd(t){e:for(var a,n=t.length,i=1,e=-1;i<n;++i)switch(t[i]){case".":e=a=i;break;case"0":0===e&&(e=i),a=i;break;default:if(!+t[i])break e;e>0&&(e=0)}return e>0?t.slice(0,e)+t.slice(a+1):t}(A)),H&&0==+A&&"+"!==x&&(H=!1),N=(H?"("===x?x:l:"-"===x||"("===x?"":x)+N,b=("s"===D?ps[8+hs/3]:"")+b+(H&&"("===x?")":""),q)for(F=-1,ie=A.length;++F<ie;)if(48>(X=A.charCodeAt(F))||X>57){b=(46===X?a+A.slice(F+1):A.slice(F))+b,A=A.slice(0,F);break}}C&&!f&&(A=n(A,1/0));var K=N.length+A.length+b.length,G=K<_?new Array(_-K+1).join(g):"";switch(C&&f&&(A=n(G+A,G.length?_-b.length:1/0),G=""),p){case"<":A=N+A+b+G;break;case"=":A=N+G+A+b;break;case"^":A=G.slice(0,K=G.length>>1)+N+A+b+G.slice(K);break;default:A=G+N+A+b}return s(A)}return y=void 0===y?6:/[gprs]/.test(D)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),R.toString=function(){return m+""},R}return{format:c,formatPrefix:function d(m,g){var p=c(((m=mi(m)).type="f",m)),x=3*Math.max(-8,Math.min(8,Math.floor(pt(g)/3))),T=Math.pow(10,-x),f=ps[8+x/3];return function(_){return p(T*_)+f}}}}(t),fs=ui.format,xs=ui.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});class vs extends Map{constructor(n,i=bs){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:i}}),null!=n)for(const[e,a]of n)this.set(e,a)}get(n){return super.get(xn(this,n))}has(n){return super.has(xn(this,n))}set(n,i){return super.set(function ys({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):(t.set(e,i),i)}(this,n),i)}delete(n){return super.delete(function Ts({_intern:t,_key:n},i){const e=n(i);return t.has(e)&&(i=t.get(e),t.delete(e)),i}(this,n))}}function xn({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function bs(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;
vendor: 4,870 bytes, line 1
1const Cs=Symbol("implicit");function _n(){var t=new vs,n=[],i=[],e=Cs;function a(s){let o=t.get(s);if(void 0===o){if(e!==Cs)return e;t.set(s,o=n.push(s)-1)}return i[o%i.length]}return a.domain=function(s){if(!arguments.length)return n.slice();n=[],t=new vs;for(const o of s)t.has(o)||t.set(o,n.push(o)-1);return a},a.range=function(s){return arguments.length?(i=Array.from(s),a):i.slice()},a.unknown=function(s){return arguments.length?(e=s,a):e},a.copy=function(){return _n(n,i).unknown(e)},Pt.apply(a,arguments),a}function pi(){var s,o,t=_n().unknown(void 0),n=t.domain,i=t.range,e=0,a=1,l=!1,h=0,c=0,d=.5;function m(){var g=n().length,p=a<e,x=p?a:e,T=p?e:a;s=(T-x)/Math.max(1,g-h+2*c),l&&(s=Math.floor(s)),x+=(T-x-s*(g-h))*d,o=s*(1-h),l&&(x=Math.round(x),o=Math.round(o));var f=_s(g).map(function(_){return x+s*_});return i(p?f.reverse():f)}return delete t.unknown,t.domain=function(g){return arguments.length?(n(g),m()):n()},t.range=function(g){return arguments.length?([e,a]=g,e=+e,a=+a,m()):[e,a]},t.rangeRound=function(g){return[e,a]=g,e=+e,a=+a,l=!0,m()},t.bandwidth=function(){return o},t.step=function(){return s},t.round=function(g){return arguments.length?(l=!!g,m()):l},t.padding=function(g){return arguments.length?(h=Math.min(1,c=+g),m()):h},t.paddingInner=function(g){return arguments.length?(h=Math.min(1,g),m()):h},t.paddingOuter=function(g){return arguments.length?(c=+g,m()):c},t.align=function(g){return arguments.length?(d=Math.max(0,Math.min(1,g)),m()):d},t.copy=function(){return pi(n(),[e,a]).round(l).paddingInner(h).paddingOuter(c).align(d)},Pt.apply(m(),arguments)}function ks(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return ks(n())},t}function ws(){return ks(pi.apply(null,arguments).paddingInner(1))}function qd(t,n,i=is){if((e=t.length)&&!isNaN(n=+n)){if(n<=0||e<2)return+i(t[0],0,t);if(n>=1)return+i(t[e-1],e-1,t);var e,a=(e-1)*n,s=Math.floor(a),o=+i(t[s],s,t);return o+(+i(t[s+1],s+1,t)-o)*(a-s)}}function Ss(){var e,t=[],n=[],i=[];function a(){var o=0,l=Math.max(1,n.length);for(i=new Array(l-1);++o<l;)i[o-1]=qd(t,o/l);return s}function s(o){return null==o||isNaN(o=+o)?e:n[as(i,o)]}return s.invertExtent=function(o){var l=n.indexOf(o);return l<0?[NaN,NaN]:[l>0?i[l-1]:t[0],l<i.length?i[l]:t[t.length-1]]},s.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let l of o)null!=l&&!isNaN(l=+l)&&t.push(l);return t.sort(Ft),a()},s.range=function(o){return arguments.length?(n=Array.from(o),a()):n.slice()},s.unknown=function(o){return arguments.length?(e=o,s):e},s.quantiles=function(){return i.slice()},s.copy=function(){return Ss().domain(t).range(n).unknown(e)},Pt.apply(s,arguments)}function Ls(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function z(t){return function(){return t}}function As(t){this._context=t}function vn(t){return new As(t)}As.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};const yn=Math.PI,Tn=2*yn,et=1e-6,Qd=Tn-et;function Ds(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class fi{constructor(n){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==n?Ds:function Zd(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return Ds;const i=10**n;return function(e){this._+=e[0];for(let a=1,s=e.length;a<s;++a)this._+=Math.round(arguments[a]*i)/i+e[a]}}(n)}moveTo(n,i){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(n,i){this._append`L${this._x1=+n},${this._y1=+i}`}quadraticCurveTo(n,i,e,a){this._append`Q${+n},${+i},${this._x1=+e},${this._y1=+a}`}bezierCurveTo(n,i,e,a,s,o){this._append`C${+n},${+i},${+e},${+a},${this._x1=+s},${this._y1=+o}`}arcTo(n,i,e,a,s){if(n=+n,i=+i,e=+e,a=+a,(s=+s)<0)throw new Error(`negative radius: ${s}`);let o=this._x1,l=this._y1,h=e-n,c=a-i,d=o-n,m=l-i,g=d*d+m*m;if(null===this._x1)this._append`M${this._x1=n},${this._y1=i}`;else if(g>et)if(Math.abs(m*h-c*d)>et&&s){let p=e-o,x=a-l,T=h*h+c*c,f=p*p+x*x,_=Math.sqrt(T),C=Math.sqrt(g),y=s*Math.tan((yn-Math.acos((T+g-f)/(2*_*C)))/2),L=y/C,D=y/_;Math.abs(L-1)>et&&this._append`L${n+L*d},${i+L*m}`,this._append`A${s},${s},0,0,${+(m*p>d*x)},${this._x1=n+D*h},${this._y1=i+D*c}`}else this._append`L${this._x1=n},${this._y1=i}`}arc(n,i,e,a,s,o){if(n=+n,i=+i,o=!!o,(e=+e)<0)throw new Error(`negative radius: ${e}`);let l=e*Math.cos(a),h=e*Math.sin(a),c=n+l,d=i+h,m=1^o,g=o?a-s:s-a;
1null===this._x1?this._append`M${c},${d}`:(Math.abs(this._x1-c)>et||Math.abs(this._y1-d)>et)&&this._append`L${c},${d}`,e&&(g<0&&(g=g%Tn+Tn),g>Qd?this._append`A${e},${e},0,1,${m},${n-l},${i-h}A${e},${e},0,1,${m},${this._x1=c},${this._y1=d}`:g>et&&this._append`A${e},${e},0,${+(g>=yn)},${m},${this._x1=n+e*Math.cos(s)},${this._y1=i+e*Math.sin(s)}`)}rect(n,i,e,a){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+i}h${e=+e}v${+a}h${-e}Z`}toString(){return this._}}function bn(t){let n=3;return t.digits=function(i){if(!arguments.length)return n;if(null==i)n=null;else{const e=Math.floor(i);if(!(e>=0))throw new RangeError(`invalid digits: ${i}`);n=e}return t},()=>new fi(n)}function Fs(t){return t[0]}function Es(t){return t[1]}function Bs(t,n){var i=z(!0),e=null,a=vn,s=null,o=bn(l);function l(h){var c,m,p,d=(h=Ls(h)).length,g=!1;for(null==e&&(s=a(p=o())),c=0;c<=d;++c)!(c<d&&i(m=h[c],c,h))===g&&((g=!g)?s.lineStart():s.lineEnd()),g&&s.point(+t(m,c,h),+n(m,c,h));if(p)return s=null,p+""||null}return t="function"==typeof t?t:void 0===t?Fs:z(t),n="function"==typeof n?n:void 0===n?Es:z(n),l.x=function(h){return arguments.length?(t="function"==typeof h?h:z(+h),l):t},l.y=function(h){return arguments.length?(n="function"==typeof h?h:z(+h),l):n},l.defined=function(h){return arguments.length?(i="function"==typeof h?h:z(!!h),l):i},l.curve=function(h){return arguments.length?(a=h,null!=e&&(s=a(e)),l):a},l.context=function(h){return arguments.length?(null==h?e=s=null:s=a(e=h),l):e},l}function xi(t,n,i){var e=null,a=z(!0),s=null,o=vn,l=null,h=bn(c);function c(m){var g,p,x,f,C,T=(m=Ls(m)).length,_=!1,y=new Array(T),L=new Array(T);for(null==s&&(l=o(C=h())),g=0;g<=T;++g){if(!(g<T&&a(f=m[g],g,m))===_)if(_=!_)p=g,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),x=g-1;x>=p;--x)l.point(y[x],L[x]);l.lineEnd(),l.areaEnd()}_&&(y[g]=+t(f,g,m),L[g]=+n(f,g,m),l.point(e?+e(f,g,m):y[g],i?+i(f,g,m):L[g]))}if(C)return l=null,C+""||null}function d(){return Bs().defined(a).curve(o).context(s)}return t="function"==typeof t?t:void 0===t?Fs:z(+t),n="function"==typeof n?n:z(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?Es:z(+i),c.x=function(m){return arguments.length?(t="function"==typeof m?m:z(+m),e=null,c):t},c.x0=function(m){return arguments.length?(t="function"==typeof m?m:z(+m),c):t},c.x1=function(m){return arguments.length?(e=null==m?null:"function"==typeof m?m:z(+m),c):e},c.y=function(m){return arguments.length?(n="function"==typeof m?m:z(+m),i=null,c):n},c.y0=function(m){return arguments.length?(n="function"==typeof m?m:z(+m),c):n},c.y1=function(m){return arguments.length?(i=null==m?null:"function"==typeof m?m:z(+m),c):i},c.lineX0=c.lineY0=function(){return d().x(t).y(n)},c.lineY1=function(){return d().x(t).y(i)},c.lineX1=function(){return d().x(e).y(n)},c.defined=function(m){return arguments.length?(a="function"==typeof m?m:z(!!m),c):a},c.curve=function(m){return arguments.length?(o=m,null!=s&&(l=o(s)),c):o},c.context=function(m){return arguments.length?(null==m?s=l=null:l=o(s=m),c):s},c}const Ms=Math.abs,ce=Math.atan2,tt=Math.cos,Jd=Math.max,Cn=Math.min,Ae=Math.sin,ft=Math.sqrt,pe=1e-12,Ot=Math.PI,_i=Ot/2,em=2*Ot;function Vs(t){return t>=1?_i:t<=-1?-_i:Math.asin(t)}function im(t){return t.innerRadius}function nm(t){return t.outerRadius}function am(t){return t.startAngle}function sm(t){return t.endAngle}function rm(t){return t&&t.padAngle}function vi(t,n,i,e,a,s,o){var l=t-i,h=n-e,c=(o?s:-s)/ft(l*l+h*h),d=c*h,m=-c*l,g=t+d,p=n+m,x=i+d,T=e+m,f=(g+x)/2,_=(p+T)/2,C=x-g,y=T-p,L=C*C+y*y,D=a-s,w=g*T-x*p,P=(y<0?-1:1)*ft(Jd(0,D*D*L-w*w)),O=(w*y-C*P)/L,q=(-w*C-y*P)/L,R=(w*y+C*P)/L,A=(-w*C+y*P)/L,N=O-f,b=q-_,F=R-f,ie=A-_;return N*N+b*b>F*F+ie*ie&&(O=R,q=A),{cx:O,cy:q,x01:-d,y01:-m,x11:O*(a/D-1),y11:q*(a/D-1)}}const cm=["caretElm"],hm=t=>({model:t});function dm(t,n){}function mm(t,n){if(1&t&&(r.j41(0,"span"),r.DNE(1,dm,0,0,"ng-template",5),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("ngTemplateOutlet",i.template)("ngTemplateOutletContext",r.eq3(2,hm,i.context))}}function gm(t,n){if(1&t&&r.nrm(0,"span",6),2&t){const i=r.XpG();r.Y8G("innerHTML",i.title,r.npT)}}function um(t,n){if(1&t&&(r.j41(0,"header",4)(1,"span",5),r.EFF(2),r.k0s()()),2&t){const i=r.XpG();r.R7$(2),r.JRh(i.title)}}function pm(t,n){if(1&t){const i=r.RV6();r.j41(0,"li",6)(1,"ngx-charts-legend-entry",7),r.bIt("select",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.labelClick.emit(a))})("activate",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.activate(a))})("deactivate",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.deactivate(a))}),r.k0s()()}if(2&t){const i=n.$implicit,e=r.XpG();r.R7$(),r.Y8G("label",i.label)("formattedLabel",i.formattedLabel)("color",i.color)("isActive",e.isActive(i))}}const Ps=["*"];function fm(t,n){if(1&t&&r.nrm(0,"ngx-charts-scale-legend",4),2&t){const i=r.XpG();r.Y8G("horizontal",i.legendOptions&&i.legendOptions.position===i.LegendPosition.Below)("valueRange",i.legendOptions.domain)("colors",i.legendOptions.colors)("height",i.view[1])("width",i.legendWidth)}}function xm(t,n){if(1&t){const i=r.RV6();r.j41(0,"ngx-charts-legend",5),r.bIt("labelClick",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.legendLabelClick.emit(a))})("labelActivate",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.legendLabelActivate.emit(a))})("labelDeactivate",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.legendLabelDeactivate.emit(a))}),r.k0s()}if(2&t){const i=r.XpG();r.Y8G("horizontal",i.legendOptions&&i.legendOptions.position===i.LegendPosition.Below)("data",i.legendOptions.domain)("title",i.legendOptions.title)("colors",i.legendOptions.colors)("height",i.view[1])("width",i.legendWidth)("activeEntries",i.activeEntries)}}const _m=["ngx-charts-axis-label",""],Os=["ticksel"],vm=["ngx-charts-x-axis-ticks",""];function ym(t,n){1&t&&(u.qSk(),r.eu8(0))}function Tm(t,n){if(1&t&&(u.qSk(),r.j41(0,"tspan",12),r.EFF(1),r.k0s()),2&t){const i=n.$implicit;r.BMQ("y",12*n.index),r.R7$(),r.SpI(" ",i," ")}}function bm(t,n){if(1&t&&(u.qSk(),r.qex(0),r.DNE(1,Tm,2,2,"tspan",11),r.bVm()),2&t){const i=n.ngIf;r.R7$(),r.Y8G("ngForOf",i)}}function Cm(t,n){if(1&t&&r.DNE(0,bm,2,1,"ng-container",8),2&t){const i=r.XpG(2).$implicit,e=r.XpG();r.Y8G("ngIf",e.tickChunks(i))}}function km(t,n){if(1&t&&r.EFF(0),2&t){const i=r.XpG().ngIf,e=r.XpG(2);r.SpI(" ",e.tickTrim(i)," ")}}function wm(t,n){if(1&t&&(u.qSk(),r.qex(0),r.j41(1,"title"),r.EFF(2),r.k0s(),r.j41(3,"text",9),r.DNE(4,ym,1,0,"ng-container",10),r.k0s(),r.DNE(5,Cm,1,1,"ng-template",null,1,r.C5r)(7,km,1,1,"ng-template",null,2,r.C5r),r.bVm()),2&t){const i=n.ngIf,e=r.sdS(6),a=r.sdS(8),s=r.XpG(2);r.R7$(2),r.JRh(i),r.R7$(),r.BMQ("text-anchor",s.textAnchor)("transform",s.textTransform),r.R7$(),r.Y8G("ngIf",s.isWrapTicksSupported)("ngIfThen",e)("ngIfElse",a)}}function Sm(t,n){if(1&t&&(u.qSk(),r.j41(0,"g",7),r.DNE(1,wm,9,6,"ng-container",8),r.k0s()),2&t){const i=n.$implicit,e=r.XpG();r.BMQ("transform",e.tickTransform(i)),r.R7$(),r.Y8G("ngIf",e.tickFormat(i))}}function Lm(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.nrm(1,"line",13),r.k0s()),2&t){const i=r.XpG(2);r.BMQ("transform",i.gridLineTransform()),r.R7$(),r.BMQ("y1",-i.gridLineHeight)}}function Am(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.DNE(1,Lm,2,2,"g",8),r.k0s()),2&t){const i=n.$implicit,e=r.XpG();r.BMQ("transform",e.tickTransform(i)),r.R7$(),r.Y8G("ngIf",e.showGridLines)}}function Dm(t,n){if(1&t&&(u.qSk(),r.nrm(0,"path",14)),2&t){const i=r.XpG();r.BMQ("d",i.referenceAreaPath)("transform",i.gridLineTransform())}}function Fm(t,n){if(1&t&&(u.qSk(),r.j41(0,"g")(1,"title"),r.EFF(2),r.k0s(),r.j41(3,"text",17),r.EFF(4),r.k0s()()),2&t){const i=r.XpG(2).$implicit,e=r.XpG();r.R7$(2),r.JRh(e.tickTrim(e.tickFormat(i.value))),r.R7$(2),r.SpI(" ",i.name," ")}}function Em(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.nrm(1,"line",16),r.DNE(2,Fm,5,2,"g",8),r.k0s()),2&t){const i=r.XpG().$implicit,e=r.XpG();r.BMQ("transform",e.transform(i.value)),r.R7$(),r.BMQ("y2",25+e.gridLineHeight)("transform",e.gridLineTransform()),r.R7$(),r.Y8G("ngIf",e.showRefLabels)}}function Bm(t,n){if(1&t&&(u.qSk(),r.j41(0,"g",15),r.DNE(1,Em,3,4,"g",8),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("ngIf",i.showRefLines)}}const Mm=["ngx-charts-x-axis",""];function Vm(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",2),r.bIt("dimensionsChanged",function(a){u.eBV(i);const s=r.XpG();
1return u.Njj(s.emitTicksHeight(a))}),r.k0s()}if(2&t){const i=r.XpG();r.Y8G("trimTicks",i.trimTicks)("rotateTicks",i.rotateTicks)("maxTickLength",i.maxTickLength)("tickFormatting",i.tickFormatting)("tickArguments",i.tickArguments)("tickStroke",i.tickStroke)("scale",i.xScale)("orient",i.xOrient)("showGridLines",i.showGridLines)("gridLineHeight",i.dims.height)("referenceLines",i.referenceLines)("showRefLines",i.showRefLines)("showRefLabels",i.showRefLabels)("width",i.dims.width)("tickValues",i.ticks)("wrapTicks",i.wrapTicks)}}function Pm(t,n){if(1&t&&(u.qSk(),r.nrm(0,"g",3)),2&t){const i=r.XpG();r.Y8G("label",i.labelText)("offset",i.labelOffset)("orient",i.orientation.Bottom)("height",i.dims.height)("width",i.dims.width)}}const Om=["ngx-charts-y-axis-ticks",""];function Rm(t,n){1&t&&(u.qSk(),r.eu8(0))}function $m(t,n){if(1&t&&(u.qSk(),r.j41(0,"tspan",13),r.EFF(1),r.k0s()),2&t){const i=n.$implicit,e=n.index,a=r.XpG(6);r.BMQ("y",e*(8+a.tickSpacing)),r.R7$(),r.SpI(" ",i," ")}}function Gm(t,n){if(1&t&&(u.qSk(),r.qex(0),r.DNE(1,$m,2,2,"tspan",12),r.bVm()),2&t){const i=r.XpG().ngIf;r.R7$(),r.Y8G("ngForOf",i)}}function Im(t,n){if(1&t&&(u.qSk(),r.qex(0),r.DNE(1,Gm,2,1,"ng-container",11),r.bVm()),2&t){const i=n.ngIf;r.XpG(2);const e=r.sdS(8);r.R7$(),r.Y8G("ngIf",i.length>1)("ngIfElse",e)}}function Nm(t,n){if(1&t&&r.DNE(0,Im,2,2,"ng-container",8),2&t){const i=r.XpG(2).$implicit,e=r.XpG();r.Y8G("ngIf",e.tickChunks(i))}}function Hm(t,n){if(1&t&&r.EFF(0),2&t){const i=r.XpG().ngIf,e=r.XpG(2);r.SpI(" ",e.tickTrim(i)," ")}}function Xm(t,n){if(1&t&&(u.qSk(),r.qex(0),r.j41(1,"title"),r.EFF(2),r.k0s(),r.j41(3,"text",9),r.DNE(4,Rm,1,0,"ng-container",10),r.k0s(),r.DNE(5,Nm,1,1,"ng-template",null,1,r.C5r)(7,Hm,1,1,"ng-template",null,2,r.C5r),r.bVm()),2&t){const i=n.ngIf,e=r.sdS(6),a=r.sdS(8),s=r.XpG(2);r.R7$(2),r.JRh(i),r.R7$(),r.xc7("font-size","12px"),r.BMQ("dy",s.dy)("x",s.x1)("y",s.y1)("text-anchor",s.textAnchor),r.R7$(),r.Y8G("ngIf",s.wrapTicks)("ngIfThen",e)("ngIfElse",a)}}function Ym(t,n){if(1&t&&(u.qSk(),r.j41(0,"g",7),r.DNE(1,Xm,9,10,"ng-container",8),r.k0s()),2&t){const i=n.$implicit,e=r.XpG();r.BMQ("transform",e.transform(i)),r.R7$(),r.Y8G("ngIf",e.tickFormat(i))}}function zm(t,n){if(1&t&&(u.qSk(),r.nrm(0,"path",14)),2&t){const i=r.XpG();r.BMQ("d",i.referenceAreaPath)("transform",i.gridLineTransform())}}function Wm(t,n){if(1&t&&(u.qSk(),r.nrm(0,"line",16)),2&t){const i=r.XpG(3);r.BMQ("x2",i.gridLineWidth)}}function jm(t,n){if(1&t&&(u.qSk(),r.nrm(0,"line",16)),2&t){const i=r.XpG(3);r.BMQ("x2",-i.gridLineWidth)}}function Um(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.DNE(1,Wm,1,1,"line",15)(2,jm,1,1,"line",15),r.k0s()),2&t){const i=r.XpG(2);r.BMQ("transform",i.gridLineTransform()),r.R7$(),r.Y8G("ngIf",i.orient===i.Orientation.Left),r.R7$(),r.Y8G("ngIf",i.orient===i.Orientation.Right)}}function qm(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.DNE(1,Um,3,3,"g",8),r.k0s()),2&t){const i=n.$implicit,e=r.XpG();r.BMQ("transform",e.transform(i)),r.R7$(),r.Y8G("ngIf",e.showGridLines)}}function Qm(t,n){if(1&t&&(u.qSk(),r.j41(0,"g")(1,"title"),r.EFF(2),r.k0s(),r.j41(3,"text",19),r.EFF(4),r.k0s()()),2&t){const i=r.XpG(2).$implicit,e=r.XpG();r.R7$(2),r.JRh(e.tickTrim(e.tickFormat(i.value))),r.R7$(),r.BMQ("dy",e.dy)("y",-6)("x",e.gridLineWidth)("text-anchor",e.textAnchor),r.R7$(),r.SpI(" ",i.name," ")}}function Zm(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.nrm(1,"line",18),r.DNE(2,Qm,5,6,"g",8),r.k0s()),2&t){const i=r.XpG().$implicit,e=r.XpG();r.BMQ("transform",e.transform(i.value)),r.R7$(),r.BMQ("x2",e.gridLineWidth),r.R7$(),r.Y8G("ngIf",e.showRefLabels)}}function Km(t,n){if(1&t&&(u.qSk(),r.j41(0,"g",17),r.DNE(1,Zm,3,3,"g",8),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("ngIf",i.showRefLines)}}const Jm=["ngx-charts-y-axis",""];function eg(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",2),r.bIt("dimensionsChanged",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.emitTicksWidth(a))}),r.k0s()}if(2&t){const i=r.XpG();r.Y8G("trimTicks",i.trimTicks)("maxTickLength",i.maxTickLength)("tickFormatting",i.tickFormatting)("tickArguments",i.tickArguments)("tickValues",i.ticks)("tickStroke",i.tickStroke)("scale",i.yScale)("orient",i.yOrient)("showGridLines",i.showGridLines)("gridLineWidth",i.dims.width)("referenceLines",i.referenceLines)("showRefLines",i.showRefLines)("showRefLabels",i.showRefLabels)("height",i.dims.height)("wrapTicks",i.wrapTicks)}}function tg(t,n){if(1&t&&(u.qSk(),r.nrm(0,"g",3)),2&t){const i=r.XpG();r.Y8G("label",i.labelText)("offset",i.labelOffset)("orient",i.yOrient)("height",i.dims.height)("width",i.dims.width)}}const ig=["ngx-charts-circle",""],ng=["ngx-charts-svg-linear-gradient",""];function ag(t,n){if(1&t&&(u.qSk(),r.nrm(0,"stop")),2&t){const i=n.$implicit;r.xc7("stop-color",i.color)("stop-opacity",i.opacity),r.BMQ("offset",i.offset+"%")}}const sg=["ngx-charts-circle-series",""],rg=t=>({name:t});function og(t,n){if(1&t&&(u.qSk(),r.nrm(0,"rect",4)),2&t){const i=r.XpG(2);r.Y8G("@animationState","active"),r.BMQ("x",i.circle.cx-i.circle.radius)("y",i.circle.cy)("width",2*i.circle.radius)("height",i.circle.height)("fill",i.gradientFill)}}function lg(t,n){if(1&t&&(u.qSk(),r.nrm(0,"rect",4)),2&t){const i=r.XpG(2);r.BMQ("x",i.circle.cx-i.circle.radius)("y",i.circle.cy)("width",2*i.circle.radius)("height",i.circle.height)("fill",i.gradientFill)}}function cg(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g")(1,"defs"),r.nrm(2,"g",1),r.k0s(),r.DNE(3,og,1,6,"rect",2)(4,lg,1,5,"rect",2),r.j41(5,"g",3),r.bIt("select",function(){u.eBV(i);const a=r.XpG();return u.Njj(a.onClick(a.circle.data))})("activate",function(){u.eBV(i);const a=r.XpG();return u.Njj(a.activateCircle())})("deactivate",function(){u.eBV(i);const a=r.XpG();return u.Njj(a.deactivateCircle())}),r.k0s()()}if(2&t){const i=r.XpG();r.R7$(2),r.Y8G("orientation",i.barOrientation.Vertical)("name",i.gradientId)("stops",i.circle.gradientStops),r.R7$(),r.Y8G("ngIf",!i.isSSR&&i.barVisible&&"standard"===i.t
1ype),r.R7$(),r.Y8G("ngIf",i.isSSR&&i.barVisible&&"standard"===i.type),r.R7$(),r.AVh("active",i.isActive(r.eq3(20,rg,i.circle.seriesName))),r.Y8G("cx",i.circle.cx)("cy",i.circle.cy)("r",i.circle.radius)("fill",i.circle.color)("pointerEvents",0===i.circle.value?"none":"all")("data",i.circle.value)("classNames",i.circle.classNames)("tooltipDisabled",i.tooltipDisabled)("tooltipPlacement",i.placementTypes.Top)("tooltipType",i.styleTypes.tooltip)("tooltipTitle",i.tooltipTemplate?void 0:i.getTooltipText(i.circle))("tooltipTemplate",i.tooltipTemplate)("tooltipContext",i.circle.data)}}const gg=["ngx-charts-svg-radial-gradient",""];function ug(t,n){if(1&t&&(u.qSk(),r.nrm(0,"stop")),2&t){const i=n.$implicit;r.xc7("stop-color",i.color)("stop-opacity",i.opacity),r.BMQ("offset",i.offset+"%")}}const pg=["ngx-charts-area",""];function fg(t,n){if(1&t&&(u.qSk(),r.j41(0,"defs"),r.nrm(1,"g",2),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("orientation",i.barOrientation.Vertical)("name",i.gradientId)("stops",i.gradientStops)}}const _g=["tooltipAnchor"],vg=["ngx-charts-tooltip-area",""];function yg(t,n){if(1&t&&(r.j41(0,"div",6),r.nrm(1,"span",7),r.EFF(2),r.k0s()),2&t){const i=n.$implicit,e=r.XpG(2);r.R7$(),r.xc7("background-color",i.color),r.R7$(),r.SpI(" ",e.getToolTipText(i)," ")}}function Tg(t,n){if(1&t&&(r.j41(0,"div",4),r.DNE(1,yg,3,3,"div",5),r.k0s()),2&t){const i=n.model;r.R7$(),r.Y8G("ngForOf",i)}}const bg=["ngx-charts-timeline",""],Fg=["ngx-charts-area-series",""],kn=["tooltipTemplate"],Eg=["seriesTooltipTemplate"],Ye=(t,n)=>[t,n];function Bg(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",7),r.bIt("dimensionsChanged",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.updateXAxisHeight(a))}),r.k0s()}if(2&t){const i=r.XpG();r.Y8G("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)("wrapTicks",i.wrapTicks)}}function Mg(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",8),r.bIt("dimensionsChanged",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.updateYAxisWidth(a))}),r.k0s()}if(2&t){const i=r.XpG();r.Y8G("yScale",i.yScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)("referenceLines",i.referenceLines)("showRefLines",i.showRefLines)("showRefLabels",i.showRefLabels)("wrapTicks",i.wrapTicks)}}function Vg(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.nrm(1,"g",9),r.k0s()),2&t){const i=n.$implicit,e=r.XpG();r.R7$(),r.Y8G("xScale",e.xScale)("yScale",e.yScale)("baseValue",e.baseValue)("colors",e.colors)("data",i)("activeEntries",e.activeEntries)("scaleType",e.scaleType)("gradient",e.gradient)("curve",e.curve)("animations",e.animations)}}function Pg(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g")(1,"g",13),r.bIt("select",function(a){const s=u.eBV(i).$implicit,o=r.XpG(2);return u.Njj(o.onClick(a,s))})("activate",function(a){u.eBV(i);const s=r.XpG(2);return u.Njj(s.onActivate(a))})("deactivate",function(a){u.eBV(i);const s=r.XpG(2);return u.Njj(s.onDeactivate(a))}),r.k0s()()}if(2&t){const i=n.$implicit,e=r.XpG(2);r.R7$(),r.Y8G("xScale",e.xScale)("yScale",e.yScale)("colors",e.colors)("activeEntries",e.activeEntries)("data",i)("scaleType",e.scaleType)("visibleValue",e.hoveredVertical)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)}}function Og(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",10),r.bIt("mouseleave",function(){u.eBV(i);const a=r.XpG();return u.Njj(a.hideCircles())}),r.j41(1,"g",11),r.bIt("hover",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.updateHoveredVertical(a))}),r.k0s(),r.DNE(2,Pg,2,9,"g",12),r.k0s()}if(2&t){const i=r.XpG();r.R7$(),r.Y8G("dims",i.dims)("xSet",i.xSet)("xScale",i.xScale)("yScale",i.yScale)("results",i.results)("colors",i.colors)("tooltipDisabled",i.tooltipDisabled)("tooltipTemplate",i.seriesTooltipTemplate),r.R7$(),r.Y8G("ngForOf",i.results)}}function Rg(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.nrm(1,"g",15),r.k0s()),2&t){const i=n.$implicit,e=r.XpG(2);r.R7$(),r.Y8G("xScale",e.timelineXScale)("yScale",e.timelineYScale)("baseValue",e.baseValue)("colors",e.colors)("data",i)("scaleType",e.scaleType)("gradient",e.gradient)("curve",e.curve)("animations",e.animations)}}function $g(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",14),r.bIt("onDomainChange",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.updateDomain(a))}),r.DNE(1,Rg,2,9,"g",4),r.k0s()}if(2&t){const i=r.XpG();r.Y8G("results",i.results)("view",r.l_i(10,Ye,i.timelineWidth,i.height))("height",i.timelineHeight)("scheme",i.scheme)("customColors",i.customColors)("legend",i.legend)("scaleType",i.scaleType),r.BMQ("transform",i.timelineTransform),r.R7$(),r.Y8G("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}const wn=".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}
120%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .node,.ngx-charts .link,.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 .node.active,.ngx-charts .node:hover,.ngx-charts .link.active,.ngx-charts .link: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 .node:focus,.ngx-charts .link:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .node.hidden,.ngx-charts .link.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:400}.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",Xg=["ngx-charts-bar",""];function Yg(t,n){if(1&t&&(u.qSk(),r.j41(0,"defs"),r.nrm(1,"g",2),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("orientation",i.orientation)("name",i.gradientId)("stops",i.gradientStops)}}const zg=["ngx-charts-bar-label",""],Jg=["ngx-charts-series-vertical",""];function eu(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",2),r.bIt("select",function(a){u.eBV(i);const s=r.XpG(2);return u.Njj(s.onClick(a))})("activate",function(a){u.eBV(i);const s=r.XpG(2);return u.Njj(s.activate.emit(a))})("deactivate",function(a){u.eBV(i);const s=r.XpG(2);return u.Njj(s.deactivate.emit(a))}),r.k0s()}if(2&t){const i=n.$implicit,e=r.XpG(2);r.Y8G("@animationState","active")("@.disabled",!e.animations)("width",i.width)("height",i.height)("x",i.x)("y",i.y)("fill",i.color)("stops",i.gradientStops)("data",i.data)("orientation",e.barOrientation.Vertical)("roundEdges",i.roundEdges)("gradient",e.gradient)("ariaLabel",i.ariaLabel)("isActive",e.isActive(i.data))("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement",e.tooltipPlacement)("tooltipType",e.tooltipType)("tooltipTitle",e.tooltipTemplate?void 0:i.tooltipText)("tooltipTemplate",e.tooltipTemplate)("tooltipContext",i.data)("noBarWhenZero",e.noBarWhenZero)("animations",e.animations)}}function tu(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.DNE(1,eu,1,22,"g",1),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("ngForOf",i.bars)("ngForTrackBy",i.trackBy)}}function iu(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",2),r.bIt("select",function(a){u.eBV(i);const s=r.XpG(2);return u.Njj(s.onClick(a))})("activate",function(a){u.eBV(i);const s=r.XpG(2);return u.Njj(s.activate.emit(a))})("deactivate",function(a){u.eBV(i);const s=r.XpG(2);return u.Njj(s.deactivate.emit(a))}),r.k0s()}if(2&t){const i=n.$implicit,e=r.XpG(2);r.Y8G("width",i.width)("height",i.height)("x",i.x)("y",i.y)("fill",i.color)("stops",i.gradientStops)("data",i.data)("orientation",e.barOrientation.Vertical)("roundEdges",i.roundEdges)("gradient",e.gradient)("ariaLabel",i.ariaLabel)("isActive",e.isActive(i.data))("tooltipDisabled",e.tooltipDisabled)("tooltipPlacement",e.tooltipPlacement)("tooltipType",e.tooltipType)("tooltipTitle",e.tooltipTemplate?void 0:i.tooltipText)("tooltipTemplate",e.tooltipTemplate)("tooltipContext",i.data)("noBarWhenZero",e.noBarWhenZero)("animations",e.animations)}}function nu(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.DNE(1,iu,1,20,"g",1),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("ngForOf",i.bars)("ngForTrackBy",i.trackBy)}}function au(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",4),r.bIt("dimensionsChanged",function(a){const s=u.eBV(i).index,o=r.XpG(2);return u.Njj(o.dataLabelHeightChanged.emit({size:a,index:s}))}),r.k0s()}if(2&t){const i=n.$implicit,e=r.XpG(2);
1r.Y8G("barX",i.x)("barY",i.y)("barWidth",i.width)("barHeight",i.height)("value",i.total)("valueFormatting",e.dataLabelFormatting)("orientation",e.barOrientation.Vertical)}}function su(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.DNE(1,au,1,7,"g",3),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("ngForOf",i.barsForDataLabels)("ngForTrackBy",i.trackDataLabelBy)}}function hu(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",5),r.bIt("dimensionsChanged",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.updateXAxisHeight(a))}),r.k0s()}if(2&t){const i=r.XpG();r.Y8G("xScale",i.xScale)("dims",i.dims)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)("xAxisOffset",i.dataLabelMaxHeight.negative)("wrapTicks",i.wrapTicks)}}function du(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g",6),r.bIt("dimensionsChanged",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.updateYAxisWidth(a))}),r.k0s()}if(2&t){const i=r.XpG();r.Y8G("yScale",i.yScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)("wrapTicks",i.wrapTicks)}}function mu(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g")(1,"g",8),r.bIt("select",function(a){const s=u.eBV(i).$implicit,o=r.XpG(2);return u.Njj(o.onClick(a,s))})("activate",function(a){const s=u.eBV(i).$implicit,o=r.XpG(2);return u.Njj(o.onActivate(a,s))})("deactivate",function(a){const s=u.eBV(i).$implicit,o=r.XpG(2);return u.Njj(o.onDeactivate(a,s))})("dataLabelHeightChanged",function(a){const s=u.eBV(i).index,o=r.XpG(2);return u.Njj(o.onDataLabelMaxHeightChanged(a,s))}),r.k0s()()}if(2&t){const i=n.$implicit,e=r.XpG(2);r.Y8G("@animationState","active"),r.BMQ("transform",e.groupTransform(i)),r.R7$(),r.Y8G("type",e.barChartType.Stacked)("xScale",e.xScale)("yScale",e.yScale)("activeEntries",e.activeEntries)("colors",e.colors)("series",i.series)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("seriesName",i.name)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero)}}function gu(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.DNE(1,mu,2,17,"g",7),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}function uu(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g")(1,"g",8),r.bIt("select",function(a){const s=u.eBV(i).$implicit,o=r.XpG(2);return u.Njj(o.onClick(a,s))})("activate",function(a){const s=u.eBV(i).$implicit,o=r.XpG(2);return u.Njj(o.onActivate(a,s))})("deactivate",function(a){const s=u.eBV(i).$implicit,o=r.XpG(2);return u.Njj(o.onDeactivate(a,s))})("dataLabelHeightChanged",function(a){const s=u.eBV(i).index,o=r.XpG(2);return u.Njj(o.onDataLabelMaxHeightChanged(a,s))}),r.k0s()()}if(2&t){const i=n.$implicit,e=r.XpG(2);r.BMQ("transform",e.groupTransform(i)),r.R7$(),r.Y8G("type",e.barChartType.Stacked)("xScale",e.xScale)("yScale",e.yScale)("activeEntries",e.activeEntries)("colors",e.colors)("series",i.series)("dims",e.dims)("gradient",e.gradient)("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("showDataLabel",e.showDataLabel)("dataLabelFormatting",e.dataLabelFormatting)("seriesName",i.name)("animations",e.animations)("noBarWhenZero",e.noBarWhenZero)}}function pu(t,n){if(1&t&&(u.qSk(),r.j41(0,"g"),r.DNE(1,uu,2,16,"g",7),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("ngForOf",i.results)("ngForTrackBy",i.trackBy)}}const Du=["ngx-charts-pie-arc",""];function Fu(t,n){if(1&t&&(u.qSk(),r.j41(0,"defs"),r.nrm(1,"g",3),r.k0s()),2&t){const i=r.XpG();r.R7$(),r.Y8G("color",i.fill)("name",i.radialGradientId)("startOpacity",i.startOpacity)}}const Ru=["textEl"],Iu=["valueTextEl"],Nu=["unitsTextEl"],Rs=()=>({});function Hu(t,n){if(1&t&&(u.qSk(),r.nrm(0,"line",10)),2&t){const i=r.XpG();r.BMQ("transform",i.transformLine)("stroke",i.colors.getColor(i.units))}}function Xu(t,n){if(1&t&&(u.qSk(),r.nrm(0,"line",11)),2&t){const i=r.XpG();r.BMQ("transform",i.transformLine)("stroke",i.colors.getColor(i.units))}}const Yu=["ngx-charts-gauge-arc",""],zu=["ngx-charts-gauge-axis",""];function Wu(t,n){if(1&t&&(u.qSk(),r.j41(0,"g",2),r.nrm(1,"path"),r.k0s()),2&t){const i=n.$implicit;r.R7$(),r.BMQ("d",i.line)}}function ju(t,n){if(1&t&&(u.qSk(),r.j41(0,"g",2)(1,"text",3),r.EFF(2),r.k0s()()),2&t){const i=n.$implicit;r.R7$(),r.xc7("text-anchor",i.textAnchor),r.BMQ("transform",i.textTransform),r.R7$(),r.SpI(" ",i.text," ")}}function Uu(t,n){if(1&t&&(u.qSk(),r.j41(0,"g",4),r.nrm(1,"path"),r.k0s()),2&t){const i=n.$implicit;r.R7$(),r.BMQ("d",i.line)}}function qu(t,n){if(1&t){const i=r.RV6();u.qSk(),r.j41(0,"g")(1,"g",6),r.bIt("select",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.onClick(a))})("activate",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.onActivate(a))})("deactivate",function(a){u.eBV(i);const s=r.XpG();return u.Njj(s.onDeactivate(a))}),r.k0s()()}if(2&t){const i=n.$implicit,e=r.XpG();r.BMQ("transform",e.rotation),r.R7$(),r.Y8G("backgroundArc",i.backgroundArc)("valueArc",i.valueArc)("cornerRadius",e.cornerRadius)("colors",e.colors)("isActive",e.isActive(i.valueArc.data))("tooltipDisabled",e.tooltipDisabled)("tooltipTemplate",e.tooltipTemplate)("valueFormatting",e.valueFormatting)("animations",e.animations)}}function Qu(t,n){if(1&t&&(u.qSk(),r.nrm(0,"g",7)),2&t){const i=r.XpG();r.Y8G("bigSegments",i.bigSegments)("smallSegments",i.smallSegments)("min",i.min)("max",i.max)("radius",i.outerRadius)("angleSpan",i.angleSpan)("valueScale",i.valueScale)("startAngle",i.startAngle)("tickFormatting",i.axisTickFormatting)}}function Zu(t,n){if(1&t&&(u.qSk(),r.j41(0,"text",8,0)(2,"tspan",9),r.EFF(3),r.k0s(),r.j41(4,"tspan",10),r.EFF(5),r.k0s()()),2&t){const i=r.XpG();r.xc7("text-anchor","middle"),r.BMQ("transform",i.textTransform),r.R7$(3),r.JRh(i.displayValue),r.R7$(2),r.JRh(i.units)}}function Ju(t,n,i){i=i||{};let e,a,s,o=null,l=0;function h(){l=!1===i.leading?0:+new Date,o=null,s=t.apply(e,a)}return function(){const c=+new Date;!l&&!1===i.leading&&(l=c);const d=n-(c-l);return e=this,a=arguments,d<=0?(clearTimeout(o),o=null,l=c,s=t.apply(e,a)):!o&&!1!==i.trailing&&(o=setTimeout(h,d)),s}}function ep(t,n){return function(e,a,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,a,{configurable:!0,enumerable:s.enumerable,value:Ju(s.value,t,n)}),this[a]}}}}var M=function(t){return t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t}(M||{});function $s(t,n,i){return i===M.Top?t.top-7:i===M.Bottom?t.top+t.height-n.height+7:i===M.Center?t.top+t.height/2-n.height/2:void 0}function Gs(t,n,i){return i===M.Left?t.left-7:i===M.Right?t.left+t.width-n.width+7:i===M.Center?t.left+t.width/2-n.width/2:void 0}class _e{static calculateVerticalAlignment(n,i,e){let a=$s(n,i,e);return a+i.height>window.innerHeight&&(a=window.innerHeight-i.height),a}static calculateVerticalCaret(n,i,e,a){let s;a===M.Top&&(s=n.height/2-e.height/2+7),a===M.Bottom&&(s=i.height-n.height/2-e.height/2-7),a===M.Center&&(s=i.height/2-e.height/2);const o=$s(n,i,a);return o+i.height>window.innerHeight&&(s+=o+i.height-window.innerHeight),s}static calculateHorizontalAlignment(n,i,e){let a=Gs(n,i,e);return a+i.width>window.innerWidth&&(a=window.innerWidth-i.width),a}static calculateHorizontalCaret(n,i,e,a){let s;a===M.Left&&(s=n.width/2-e.width/2+7),a===M.Right&&(s=i.width-n.width/2-e.width/2-7),a===M.Center&&(s=i.width/2-e.width/2);const o=Gs(n,i,a);return o+i.width>window.innerWidth&&(s+=o+i.width-window.innerWidth),s}static shouldFlip(n,i,e,a){let s=!1;return e===M.Right&&n.left+n.width+i.width+a>window.innerWidth&&(s=!0),e===M.Left&&n.left-i.width-a<0&&(s=!0),e===M.Top&&n.top-i.height-a<0&&(s=!0),e===M.Bottom&&n.top+n.height+i.height+a>window.innerHeight&&(s=!0),s}static positionCaret(n,i,e,a,s){let o=0,l=0;return n===M.Right?(l=-7,o=_e.calculateVerticalCaret(e,i,a,s)):n===M.Left?(l=i.width,o=_e.calculateVerticalCaret(e,i,a,s)):n===M.Top?(o=i.height,l=_e.calculateHorizontalCaret(e,i,a,s)):n===M.Bottom&&(o=-7,l=_e.calculateHorizontalCaret(e,i,a,s)),{top:o,left:l}}static positionContent(n,i,e,a,s){let o=0,l=0;return n===M.Right?(l=e.left+e.width+a,o=_e.calculateVerticalAlignment(e,i,s)):n===M.Left?(l=e.left-i.width-a,o=_e.calculateVerticalAlignment(e,i,s)):n===M.Top?(o=e.top-i.height-a,l=_e.calculateHorizontalAlignment(e,i,s)):n===M.Bottom&&(o=e.top+e.height+a,l=_e.calculateHorizontalAlignment(e,i,s)),{top:o,left:l}}static determinePlacement(n,i,e,a){if(_e.shouldFlip(e,i,n,a)){if(n===M.Right)return M.Left;if(n===M.Left)return M.Right;if(n===M.Top)return M.Bottom;if(n===M.Bottom)return M.Top}return n}}let tp=(()=>{var t;
1class n{get cssClasses(){let e="ngx-charts-tooltip-content";return e+=` position-${this.placement}`,e+=` type-${this.type}`,e+=` ${this.cssClass}`,e}constructor(e,a,s){this.element=e,this.renderer=a,this.platformId=s}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,fe.UE)(this.platformId))return;const e=this.element.nativeElement,a=this.host.nativeElement.getBoundingClientRect();if(!a.height&&!a.width)return;const s=e.getBoundingClientRect();this.checkFlip(a,s),this.positionContent(e,a,s),this.showCaret&&this.positionCaret(a,s),setTimeout(()=>this.renderer.addClass(e,"animate"),1)}positionContent(e,a,s){const{top:o,left:l}=_e.positionContent(this.placement,s,a,this.spacing,this.alignment);this.renderer.setStyle(e,"top",`${o}px`),this.renderer.setStyle(e,"left",`${l}px`)}positionCaret(e,a){const s=this.caretElm.nativeElement,o=s.getBoundingClientRect(),{top:l,left:h}=_e.positionCaret(this.placement,a,e,o,this.alignment);this.renderer.setStyle(s,"top",`${l}px`),this.renderer.setStyle(s,"left",`${h}px`)}checkFlip(e,a){this.placement=_e.determinePlacement(this.placement,a,e,this.spacing)}onWindowResize(){this.position()}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.aKT),r.rXU(r.sFG),r.rXU(r.Agw))},this.\u0275cmp=r.VBU({type:n,selectors:[["ngx-tooltip-content"]],viewQuery:function(a,s){if(1&a&&r.GBs(cm,5),2&a){let o;r.mGM(o=r.lsd())&&(s.caretElm=o.first)}},hostVars:2,hostBindings:function(a,s){1&a&&r.bIt("resize",function(){return s.onWindowResize()},r.tSv),2&a&&r.HbH(s.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},standalone:!1,decls:6,vars:6,consts:[["caretElm",""],[3,"hidden"],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(a,s){1&a&&(r.j41(0,"div"),r.nrm(1,"span",1,0),r.j41(3,"div",2),r.DNE(4,mm,2,4,"span",3)(5,gm,1,1,"span",4),r.k0s()()),2&a&&(r.R7$(),r.HbH(r.VkB("tooltip-caret position-",s.placement)),r.Y8G("hidden",!s.showCaret),r.R7$(3),r.Y8G("ngIf",!s.title),r.R7$(),r.Y8G("ngIf",s.title))},dependencies:[$.bT,$.T3],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;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:#000000bf;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:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translateZ(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}))}return t(),function xr(t,n,i,e){var o,a=arguments.length,s=a<3?n:null===e?e=Object.getOwnPropertyDescriptor(n,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,n,i,e);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(s=(a<3?o(s):a>3?o(n,i,s):o(n,i))||s);a>3&&s&&Object.defineProperty(n,i,s)}([ep(100)],n.prototype,"onWindowResize",null),n})();class ip{constructor(n){this.injectionService=n,this.defaults={},this.components=new Map}getByType(n=this.type){return this.components.get(n)}create(n){return this.createByType(this.type,n)}createByType(n,i){i=this.assignDefaults(i);const e=this.injectComponent(n,i);return this.register(n,e),e}destroy(n){const i=this.components.get(n.componentType);if(i&&i.length){const e=i.indexOf(n);e>-1&&(i[e].destroy(),i.splice(e,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(n){const i=this.components.get(n);if(i&&i.length){let e=i.length-1;for(;e>=0;)this.destroy(i[e--])}}injectComponent(n,i){return this.injectionService.appendComponent(n,i)}assignDefaults(n){const i={...this.defaults.inputs},e={...this.defaults.outputs};return!n.inputs&&!n.outputs&&(n={inputs:n}),i&&(n.inputs={...i,...n.inputs}),e&&(n.outputs={...e,...n.outputs}),n}register(n,i){this.components.has(n)||this.components.set(n,[]),this.components.get(n).push(i)}}let Is=(()=>{var t;class n{static setGlobalRootViewContainer(e){n.globalRootViewContainer=e}constructor(e,a){this.applicationRef=e,this.injector=a}getRootViewContainer(){if(this._container)return this._container;if(n.globalRootViewContainer)return n.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(e){this._container=e}getComponentRootNode(e){return function np(t){return t.element}(e)?e.element.nativeElement:e.hostView&&e.hostView.rootNodes.length>0?e.hostView.rootNodes[0]:e.location.nativeElement}getRootViewContainerNode(e){return this.getComponentRootNode(e)}projectComponentBindings(e,a){if(a){if(void 0!==a.inputs){const s=Object.getOwnPropertyNames(a.inputs);for(const o of s)e.instance[o]=a.inputs[o]}if(void 0!==a.outputs){const s=Object.getOwnPropertyNames(a.outputs);for(const o of s)e.instance[o]=a.outputs[o]}}return e}appendComponent(e,a={},s){s||(s=this.getRootViewContainer());const o=this.getComponentRootNode(s),l=new Cr(o,this.applicationRef,this.injector),h=new Pn(e),c=l.attach(h);return this.projectComponentBindings(c,a),c}static#e=t=()=>(this.globalRootViewContainer=null,this.\u0275fac=function(a){return new(a||n)(u.KVO(r.o8S),u.KVO(u.zZn))},this.\u0275prov=u.jDH({token:n,factory:n.\u0275fac}))}return t(),n})(),Sn=(()=>{var t;class n extends ip{constructor(e){super(e),this.type=tp}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(u.KVO(Is))},this.\u0275prov=u.jDH({token:n,factory:n.\u0275fac}))}return t(),n})();var Ge=function(t){return t.Right="right",t.Below="below",t}(Ge||{}),Rt=function(t){return t.ScaleLegend="scaleLegend",t.Legend="legend",t}(Rt||{}),k=function(t){return t.Time="time",t.Linear="linear",t.Ordinal="ordinal",t.Quantile="quantile",t}(k||{});function it(t){return t instanceof Date?t.toLocaleDateString():t.toLocaleStr
1ing()}function yi(t){return t.toLocaleString().replace(/[&'`"<>]/g,n=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[n]))}let Ns=(()=>{var t;class n{constructor(){this.isActive=!1,this.select=new r.bkB,this.activate=new r.bkB,this.deactivate=new r.bkB,this.toggle=new r.bkB}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(a,s){1&a&&r.bIt("mouseenter",function(){return s.onMouseEnter()})("mouseleave",function(){return s.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},standalone:!1,decls:4,vars:6,consts:[["tabindex","-1",3,"click","title"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(a,s){1&a&&(r.j41(0,"span",0),r.bIt("click",function(){return s.select.emit(s.formattedLabel)}),r.j41(1,"span",1),r.bIt("click",function(){return s.toggle.emit(s.formattedLabel)}),r.k0s(),r.j41(2,"span",2),r.EFF(3),r.k0s()()),2&a&&(r.AVh("active",s.isActive),r.Y8G("title",s.formattedLabel),r.R7$(),r.xc7("background-color",s.color),r.R7$(2),r.SpI(" ",s.trimmedLabel," "))},encapsulation:2,changeDetection:0}))}return t(),n})(),Hs=(()=>{var t;class n{constructor(e){this.cd=e,this.horizontal=!1,this.labelClick=new r.bkB,this.labelActivate=new r.bkB,this.labelDeactivate=new r.bkB,this.legendEntries=[]}ngOnChanges(e){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const e=[];for(const a of this.data){const s=it(a);-1===e.findIndex(l=>l.label===s)&&e.push({label:a,formattedLabel:s,color:this.colors.getColor(a)})}return e}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.label===s.name)}activate(e){this.labelActivate.emit(e)}deactivate(e){this.labelDeactivate.emit(e)}trackBy(e,a){return a.label}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(yt.gRc))},this.\u0275cmp=r.VBU({type:n,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},standalone:!1,features:[r.OA$],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,"select","activate","deactivate","label","formattedLabel","color","isActive"]],template:function(a,s){1&a&&(r.j41(0,"div"),r.DNE(1,um,3,1,"header",0),r.j41(2,"div",1)(3,"ul",2),r.DNE(4,pm,2,4,"li",3),r.k0s()()()),2&a&&(r.xc7("width",s.width,"px"),r.R7$(),r.Y8G("ngIf",(null==s.title?null:s.title.length)>0),r.R7$(2),r.xc7("max-height",s.height-45,"px"),r.AVh("horizontal-legend",s.horizontal),r.R7$(),r.Y8G("ngForOf",s.legendEntries)("ngForTrackBy",s.trackBy))},dependencies:[$.Sq,$.bT,Ns],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:700}.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:#0000000d}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;-webkit-transition:.2s;-moz-transition:.2s;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}))}return t(),n})(),Xs=(()=>{var t;class n{constructor(){this.horizontal=!1}ngOnChanges(e){const a=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${a})`}gradientString(e,a){a.push(1);const s=[];
1return e.reverse().forEach((o,l)=>{s.push(`${o} ${Math.round(100*a[l])}%`)}),s.join(", ")}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},standalone:!1,features:[r.OA$],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(a,s){1&a&&(r.j41(0,"div",0)(1,"div",1)(2,"span"),r.EFF(3),r.k0s()(),r.nrm(4,"div",2),r.j41(5,"div",1)(6,"span"),r.EFF(7),r.k0s()()()),2&a&&(r.xc7("height",s.horizontal?void 0:s.height,"px")("width",s.width,"px"),r.AVh("horizontal-legend",s.horizontal),r.R7$(3),r.JRh(s.valueRange[1].toLocaleString()),r.R7$(),r.xc7("background",s.gradient),r.R7$(3),r.JRh(s.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}))}return t(),n})(),$t=(()=>{var t;class n{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new r.bkB,this.legendLabelActivate=new r.bkB,this.legendLabelDeactivate=new r.bkB,this.LegendPosition=Ge,this.LegendType=Rt}ngOnChanges(e){this.update()}update(){let e=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Ge.Right)&&(e=this.legendType===Rt.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Ge.Right?this.chartWidth:Math.floor(this.view[0]*e/12)}getLegendType(){return this.legendOptions.scaleType===k.Linear?Rt.ScaleLegend:Rt.Legend}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},standalone:!1,features:[r.Jv_([Sn]),r.OA$],ngContentSelectors:Ps,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,"labelClick","labelActivate","labelDeactivate","horizontal","data","title","colors","height","width","activeEntries"]],template:function(a,s){1&a&&(r.NAR(),r.j41(0,"div",0),u.qSk(),r.j41(1,"svg",1),r.SdG(2),r.k0s(),r.DNE(3,fm,1,5,"ngx-charts-scale-legend",2)(4,xm,1,7,"ngx-charts-legend",3),r.k0s()),2&a&&(r.xc7("width",s.view[0],"px")("height",s.view[1],"px"),r.R7$(),r.BMQ("width",s.chartWidth)("height",s.view[1]),r.R7$(2),r.Y8G("ngIf",s.showLegend&&s.legendType===s.LegendType.ScaleLegend),r.R7$(),r.Y8G("ngIf",s.showLegend&&s.legendType===s.LegendType.Legend))},dependencies:[$.bT,Hs,Xs],encapsulation:2,changeDetection:0}))}return t(),n})(),ap=(()=>{var t;class n{constructor(e,a){this.element=e,this.zone=a,this.visible=new r.bkB,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const e=()=>{if(!this.element)return;const{offsetHeight:a,offsetWidth:s}=this.element.nativeElement;a&&s?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>e())})}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.aKT),r.rXU(r.SKi))},this.\u0275dir=r.FsC({type:n,selectors:[["visibility-observer"]],outputs:{visible:"visible"},standalone:!1}))}return t(),n})();function Ln(t){return"[object Date]"===toString.call(t)}function sp(t){return"number"==typeof t}
1let Gt=(()=>{var t;class n{constructor(e,a,s,o){this.chartElement=e,this.zone=a,this.cd=s,this.platformId=o,this.scheme="cool",this.schemeType=k.Ordinal,this.animations=!0,this.select=new r.bkB}ngOnInit(){(0,fe.Vy)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new ap(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(e){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 e=this.getContainerDims();e&&(this.width=e.width,this.height=e.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 e,a;const s=this.chartElement.nativeElement;if((0,fe.UE)(this.platformId)&&null!==s.parentNode){const o=s.parentNode.getBoundingClientRect();e=o.width,a=o.height}return e&&a?{width:e,height:a}:null}formatDates(){for(let e=0;e<this.results.length;e++){const a=this.results[e];if(a.label=a.name,Ln(a.label)&&(a.label=a.label.toLocaleDateString()),a.series)for(let s=0;s<a.series.length;s++){const o=a.series[s];o.label=o.name,Ln(o.label)&&(o.label=o.label.toLocaleDateString())}}}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){if(!(0,fe.UE)(this.platformId))return;const a=(0,kr.R)(window,"resize").pipe((0,wr.B)(200)).subscribe(s=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=a}cloneData(e){const a=[];for(const s of e){const o={};if(void 0!==s.name&&(o.name=s.name),void 0!==s.value&&(o.value=s.value),void 0!==s.series){o.series=[];for(const l of s.series){const h=Object.assign({},l);o.series.push(h)}}void 0!==s.extra&&(o.extra=JSON.parse(JSON.stringify(s.extra))),void 0!==s.source&&(o.source=s.source),void 0!==s.target&&(o.target=s.target),a.push(o)}return a}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.aKT),r.rXU(r.SKi),r.rXU(yt.gRc),r.rXU(r.Agw))},this.\u0275cmp=r.VBU({type:n,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},standalone:!1,features:[r.OA$],decls:1,vars:0,template:function(a,s){1&a&&r.nrm(0,"div")},encapsulation:2}))}return t(),n})();var Z=function(t){return t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t}(Z||{});let Ys=(()=>{var t;class n{constructor(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}ngOnChanges(e){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Z.Top:case Z.Bottom:this.y=this.offset,this.x=this.width/2;break;case Z.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Z.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.aKT))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},standalone:!1,features:[r.OA$],attrs:_m,decls:2,vars:6,template:function(a,s){1&a&&(u.qSk(),r.j41(0,"text"),r.EFF(1),r.k0s()),2&a&&(r.BMQ("stroke-width",s.strokeWidth)("x",s.x)("y",s.y)("text-anchor",s.textAnchor)("transform",s.transform),r.R7$(),r.SpI(" ",s.label," "))},encapsulation:2,changeDetection:0}))}return t(),n})();function An(t,n=16){return"string"!=typeof t?"number"==typeof t?t+"":"":(t=t.trim()).length<=n?t:`${t.slice(0,n)}...`}function zs(t,n){if(t.length>n){const i=[],e=Math.floor(t.length/n);for(let a=0;a<t.length;a++)a%e===0&&i.push(t[a]);t=i}return t}function Ws(t,n,i){const e=(t||"").toString();let a=[];if(/\s/.test(e))a=e.split(/\s+/).reduce((s,o)=>{const l=(s.pop()||"")+" ";return l.length+o.length>n?[...s,l.trim(),o.trim()]:[...s,l+o]},[]);else{let s=0;for(;s<e.length;)a.push(e.substring(s,s+n)),s+=n}return a.length>i&&(a=a.splice(0,i),a[a.length-1]+="..."),a}var he=function(t){return t.Start="start",t.Middle="middle",t.End="end",t}(he||{});function Ie(t,n,i,e,a,[s,o,l,h]){let c="";return c=`M${[t+a,n]}`,c+="h"+((i=0===(i=Math.floor(i))?1:i)-2*a),c+=o?`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-i),c+=l?`a${[a,a]} 0 0 1 ${[-a,-a]}`:`h${-a}v${-a}`,c+="v"+(2*a-e),c+=s?`a${[a,a]} 0 0 1 ${[a,-a]}`:`v${-a}h${a}`,c+="z",c}let js=(()=>{var t;class n{get isWrapTicksSupported(){return this.wrapTicks&&this.scale.step}constructor(e){this.platformId=e,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.wrapTicks=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new r.bkB,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=he.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10,this.maxPossibleLengthForTickIfWrapped=16,this.referenceLineLength=0}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,fe.UE)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);e!==this.height&&(this.height=e,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale;this.adjustedScale=this.scale.bandwidth?function(o){return this.scale(o)+.5*this.scale.bandwidth()}:this.scale,this.ticks=this.getTicks();const a=this.orient===Z.Top||this.orient===Z.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.orient){case Z.Bottom:this.transform=function(o){return"translate("+this.adjustedScale(o)+",0)"},this.textAnchor=he.Middle,this.x2=this.innerTickSize*a,this.x1=this.tickSpacing*a,this.dx=a<0?"0em":".71em";break;case Z.Left:this.transform=function(o){return"translate(0,"+this.adjustedScale(o)+")"},this.textAnchor=he.End,this.y2=this.innerTickSize*-a,this.y1=this.tickSpacing*-a,this.dx=".32em";break;case Z.Top:this.transform=function(o){return"translate("+this.adjustedScale(o)+",0)"},this.textAnchor=he.Middle,this.y2=this.innerTickSize*a,this.y1=this.tickSpacing*a,this.dx=a<0?"0em":".71em";break;case Z.Right:this.transform=function(o){return"translate(0,"+this.adjustedScale(o)+")"},this.textAnchor=he.Start,this.x2=this.innerTickSize*-a,this.x1=this.tickSpacing*-a,this.dx=".32em"}this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(o){return"Date"===o.constructor.name?o.toLocaleDateString():o.toLocaleStr
1ing()};const s=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.textTransform="",s&&0!==s?(this.textTransform=`rotate(${s})`,this.textAnchor=he.End,this.verticalSpacing=10):this.textAnchor=he.Middle,setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Ie(this.refMax,25-this.gridLineHeight,this.refMin-this.refMax,this.gridLineHeight,0,[!1,!1,!1,!1])}getRotationAngle(e){let a=0;this.maxTicksLength=0;for(let g=0;g<e.length;g++){const p=this.tickFormat(e[g]).toString();let x=p.length;this.trimTicks&&(x=this.tickTrim(p).length),x>this.maxTicksLength&&(this.maxTicksLength=x)}const l=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let h=l;const c=Math.floor(this.width/e.length);for(;h>c&&a>-90;)a-=30,h=Math.cos(a*(Math.PI/180))*l;let d=14;if(this.isWrapTicksSupported){const g=this.ticks.reduce((x,T)=>T.length>x.length?T:x,"");d=14*(this.tickChunks(g).length||1),this.maxPossibleLengthForTickIfWrapped=this.getMaxPossibleLengthForTick(g)}const m=0!==a?Math.max(Math.abs(Math.sin(a*Math.PI/180))*this.maxTickLength*7,10):d;return this.approxHeight=Math.min(m,200),this.showRefLines&&this.referenceLines&&this.setReferencelines(),a}getTicks(){let e;const a=this.getMaxTicks(20),s=this.getMaxTicks(100);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[s]):(e=this.scale.domain(),e=zs(e,a)),e}getMaxTicks(e){return Math.floor(this.width/e)}tickTransform(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(e){return this.trimTicks?An(e,this.maxTickLength):e}getMaxPossibleLengthForTick(e){if(this.scale.bandwidth){const s=Math.floor(this.scale.bandwidth()/7),o=e.slice(0,s);return Math.max(o.length,this.maxTickLength)}return this.maxTickLength}tickChunks(e){if(e.toString().length>this.maxTickLength&&this.scale.bandwidth){let s=this.rotateTicks?Math.floor(this.scale.step()/14):5;if(s<=1)return[this.tickTrim(e)];let o=Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength);return(0,fe.UE)(this.platformId)||(o=Math.floor(Math.min(this.approxHeight/5,Math.max(this.maxPossibleLengthForTickIfWrapped,this.maxTickLength)))),s=Math.min(s,5),Ws(e,o,s<1?1:s)}return[this.tickTrim(e)]}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.Agw))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(a,s){if(1&a&&r.GBs(Os,5),2&a){let o;r.mGM(o=r.lsd())&&(s.ticksElement=o.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks",wrapTicks:"wrapTicks",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[r.OA$],attrs:vm,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01","font-size","12px"],[4,"ngIf","ngIfThen","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],["y2","0",1,"gridline-path","gridline-path-vertical"],[1,"reference-area"],[1,"ref-line"],["y1","25",1,"refline-path","gridline-path-vertical"],["transform","rotate(-270) translate(5, -5)",1,"refline-label"]],template:function(a,s){1&a&&(u.qSk(),r.j41(0,"g",null,0),r.DNE(2,Sm,2,2,"g",3),r.k0s(),r.DNE(3,Am,2,2,"g",4)(4,Dm,1,2,"path",5)(5,Bm,2,1,"g",6)),2&a&&(r.R7$(2),r.Y8G("ngForOf",s.ticks),r.R7$(),r.Y8G("ngForOf",s.ticks),r.R7$(),r.Y8G("ngIf",s.referenceLineLength>1&&s.refMax&&s.refMin&&s.showRefLines),r.R7$(),r.Y8G("ngForOf",s.referenceLines))},dependencies:[$.Sq,$.bT],encapsulation:2,changeDetection:0}))}return t(),n})(),Us=(()=>{var t;class n{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Z.Bottom,this.xAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new r.bkB,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=Z}ngOnChanges(e){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,typeof this.xAxisTickCount<"u"&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:e}){const a=e+25+5;a!==this.labelOffset&&(this.labelOffset=a,setTimeout(()=>{this.dimensionsChanged.emit({height:e})},0))}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(a,s){if(1&a&&r.GBs(js,5),2&a){let o;r.mGM(o=r.lsd())&&(s.ticksComponent=o.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",xAxisOffset:"xAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[r.OA$],attrs:Mm,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"dimensionsChanged","trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","referenceLines","showRefLines","showRefLabels","width","tickValues","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(a,s){1&a&&(u.qSk(),r.j41(0,"g"),r.DNE(1,Vm,1,16,"g",0)(2,Pm,1,5,"g",1),r.k0s()),2&a&&(r.BMQ("class",s.xAxisClassName)("transform",s.transform),r.R7$(),r.Y8G("ngIf",s.xScale),r.R7$(),r.Y8G("ngIf",s.showLabel))},dependencies:[$.bT,Ys,js],encapsulation:2,changeDetection:0}))}return t(),n})(),qs=(()=>{var t;class n{constructor(e){this.platformId=e,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.wrapTicks=!1,this.dimensionsChanged=new r.bkB,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=he.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Z}ngOnChanges(e){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,fe.UE)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const e=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);e!==this.width&&(this.width=e,this.dimensionsChanged.emit({width:e}),setTimeout(()=>this.updateDims()))}update(){const e=this.scale,a=this.orient===Z.Top||this.orient===Z.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(s){return"Date"===s.constructor.name?s.toLocaleDateString():s.toLocaleStr
1ing()},this.adjustedScale=e.bandwidth?s=>{const o=e(s)+.5*e.bandwidth();if(this.wrapTicks&&s.toString().length>this.maxTickLength){const l=this.tickChunks(s).length;if(1===l)return o;const d=.5*e.bandwidth()-8*l*.5;return e(s)+d}return o}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Z.Top:case Z.Bottom:this.transform=function(s){return"translate("+this.adjustedScale(s)+",0)"},this.textAnchor=he.Middle,this.y2=this.innerTickSize*a,this.y1=this.tickSpacing*a,this.dy=a<0?"0em":".71em";break;case Z.Left:this.transform=function(s){return"translate(0,"+this.adjustedScale(s)+")"},this.textAnchor=he.End,this.x2=this.innerTickSize*-a,this.x1=this.tickSpacing*-a,this.dy=".32em";break;case Z.Right:this.transform=function(s){return"translate(0,"+this.adjustedScale(s)+")"},this.textAnchor=he.Start,this.x2=this.innerTickSize*-a,this.x1=this.tickSpacing*-a,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(e=>e.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(e=>e.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=Ie(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let e;const a=this.getMaxTicks(20),s=this.getMaxTicks(50);return this.tickValues?e=this.tickValues:this.scale.ticks?e=this.scale.ticks.apply(this.scale,[s]):(e=this.scale.domain(),e=zs(e,a)),e}getMaxTicks(e){return Math.floor(this.height/e)}tickTransform(e){return`translate(${this.adjustedScale(e)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(e){return this.trimTicks?An(e,this.maxTickLength):e}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(s=>this.tickTrim(this.tickFormat(s)).length))}tickChunks(e){if(e.toString().length>this.maxTickLength&&this.scale.bandwidth){const a=this.maxTickLength,s=Math.floor(this.scale.bandwidth()/15);return s<=1?[this.tickTrim(e)]:Ws(e,a,Math.min(s,5))}return[this.tickFormat(e)]}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.Agw))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(a,s){if(1&a&&r.GBs(Os,5),2&a){let o;r.mGM(o=r.lsd())&&(s.ticksElement=o.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[r.OA$],attrs:Om,decls:6,vars:4,consts:[["ticksel",""],["tmplMultilineTick",""],["tmplSinglelineTick",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],["class","ref-line",4,"ngFor","ngForOf"],[1,"tick"],[4,"ngIf"],["stroke-width","0.01"],[4,"ngIf","ngIfThen","ngIfElse"],[4,"ngIf","ngIfElse"],["x","0",4,"ngFor","ngForOf"],["x","0"],[1,"reference-area"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],[1,"ref-line"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(a,s){1&a&&(u.qSk(),r.j41(0,"g",null,0),r.DNE(2,Ym,2,2,"g",3),r.k0s(),r.DNE(3,zm,1,2,"path",4)(4,qm,2,2,"g",5)(5,Km,2,1,"g",6)),2&a&&(r.R7$(2),r.Y8G("ngForOf",s.ticks),r.R7$(),r.Y8G("ngIf",s.referenceLineLength>1&&s.refMax&&s.refMin&&s.showRefLines),r.R7$(),r.Y8G("ngForOf",s.ticks),r.R7$(),r.Y8G("ngForOf",s.referenceLines))},dependencies:[$.Sq,$.bT],encapsulation:2,changeDetection:0}))}return t(),n})(),Qs=(()=>{var t;class n{constructor(){this.showGridLines=!1,this.yOrient=Z.Left,this.yAxisOffset=0,this.wrapTicks=!1,this.dimensionsChanged=new r.bkB,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(e){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Z.Right?(this.labelOffset=65,this.transform=`translate(${this.offset+this.dims.width} , 0)`):this.transform=`translate(${this.offset} , 0)`,void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])}emitTicksWidth({width:e}){e!==this.labelOffset&&this.yOrient===Z.Right?(this.labelOffset=e+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0)):e!==this.labelOffset&&(this.labelOffset=e,setTimeout(()=>{this.dimensionsChanged.emit({width:e})},0))}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(a,s){if(1&a&&r.GBs(qs,5),2&a){let o;r.mGM(o=r.lsd())&&(s.ticksComponent=o.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset",wrapTicks:"wrapTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[r.OA$],attrs:Jm,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","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"dimensionsChanged","trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","wrapTicks"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(a,s){1&a&&(u.qSk(),r.j41(0,"g"),r.DNE(1,eg,1,15,"g",0)(2,tg,1,5,"g",1),r.k0s()),2&a&&(r.BMQ("class",s.yAxisClassName)("transform",s.transform),r.R7$(),r.Y8G("ngIf",s.yScale),r.R7$(),r.Y8G("ngIf",s.showLabel))},dependencies:[$.bT,Ys,qs],encapsulation:2,changeDetection:0}))}return t(),n})(),Zs=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[$.MD]}))}return t(),n})();var xt=function(t){return t.popover="popover",t.tooltip="tooltip",t}(xt||{}),_t=function(t){return t[t.all="all"]="all",t[t.focus="focus"]="focus",t[t.mouseover="mouseover"]="mouseover",t}(_t||{});let Ti=(()=>{var t;class n{get listensForFocus(){return this.tooltipShowEvent===_t.all||this.tooltipShowEvent===_t.focus}get listensForHover(){return this.tooltipShowEvent===_t.all||this.tooltipShowEvent===_t.mouseover}
1constructor(e,a,s){this.tooltipService=e,this.viewContainerRef=a,this.renderer=s,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=M.Top,this.tooltipAlignment=M.Center,this.tooltipType=xt.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=_t.all,this.tooltipImmediateExit=!1,this.show=new r.bkB,this.hide=new r.bkB}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(e){if(this.component||this.tooltipDisabled)return;const a=e?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?400:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const s=this.createBoundOptions();this.component=this.tooltipService.create(s),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},a)}addHideListeners(e){this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",a=>{e.contains(a.target)||this.hideTooltip()}))}hideTooltip(e=!1){if(!this.component)return;const a=()=>{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),e?a():this.timeout=setTimeout(a,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}}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(Sn),r.rXU(r.c1b),r.rXU(r.sFG))},this.\u0275dir=r.FsC({type:n,selectors:[["","ngx-tooltip",""]],hostBindings:function(a,s){1&a&&r.bIt("focusin",function(){return s.onFocus()})("blur",function(){return s.onBlur()})("mouseenter",function(){return s.onMouseEnter()})("mouseleave",function(l){return s.onMouseLeave(l.target)})("click",function(){return s.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"},standalone:!1}))}return t(),n})(),Ks=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({providers:[Is,Sn],imports:[$.MD]}))}return t(),n})();const Js={};function nt(){let t=("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4);return t=`a${t}`,Js[t]?nt():(Js[t]=!0,t)}var te=function(t){return t.Vertical="vertical",t.Horizontal="horizontal",t}(te||{});let er=(()=>{var t;class n{constructor(){this.select=new r.bkB,this.activate=new r.bkB,this.deactivate=new r.bkB}onClick(){this.select.emit(this.data)}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}ngOnChanges(e){this.classNames=Array.isArray(this.classNames)?this.classNames.join(" "):"",this.classNames+="circle"}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-circle",""]],hostBindings:function(a,s){1&a&&r.bIt("click",function(){return s.onClick()})("mouseenter",function(){return s.onMouseEnter()})("mouseleave",function(){return s.onMouseLeave()})},inputs:{cx:"cx",cy:"cy",r:"r",fill:"fill",stroke:"stroke",data:"data",classNames:"classNames",circleOpacity:"circleOpacity",pointerEvents:"pointerEvents"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},standalone:!1,features:[r.OA$],attrs:ig,decls:1,vars:8,template:function(a,s){1&a&&(u.qSk(),r.nrm(0,"circle")),2&a&&r.BMQ("cx",s.cx)("cy",s.cy)("r",s.r)("fill",s.fill)("stroke",s.stroke)("opacity",s.circleOpacity)("class",s.classNames)("pointer-events",s.pointerEvents)},encapsulation:2,changeDetection:0}))}return t(),n})(),bi=(()=>{var t;class n{constructor(){this.orientation=te.Vertical}ngOnChanges(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===te.Horizontal?this.x2="100%":this.orientation===te.Vertical&&(this.y1="100%")}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},standalone:!1,features:[r.OA$],attrs:ng,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(a,s){1&a&&(u.qSk(),r.j41(0,"linearGradient",0),r.DNE(1,ag,1,5,"stop",1),r.k0s()),2&a&&(r.Y8G("id",s.name),r.BMQ("x1",s.x1)("y1",s.y1)("x2",s.x2)("y2",s.y2),r.R7$(),r.Y8G("ngForOf",s.stops))},dependencies:[$.Sq],encapsulation:2,changeDetection:0}))}return t(),n})();
1var Ci=function(t){return t.Standard="standard",t.Stacked="stacked",t}(Ci||{});let Dn,tr=(()=>{var t;class n{constructor(e){this.platformId=e,this.type=Ci.Standard,this.tooltipDisabled=!1,this.select=new r.bkB,this.activate=new r.bkB,this.deactivate=new r.bkB,this.barVisible=!1,this.barOrientation=te,this.placementTypes=M,this.styleTypes=xt,this.isSSR=!1}ngOnInit(){this.gradientId="grad"+nt().toString(),this.gradientFill=`url(#${this.gradientId})`,(0,fe.Vy)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}update(){this.circle=this.getActiveCircle()}getActiveCircle(){const e=this.data.series.findIndex(a=>{const s=a.name;return s&&this.visibleValue&&s.toString()===this.visibleValue.toString()&&void 0!==a.value});if(-1!==e)return this.mapDataPointToCircle(this.data.series[e],e)}mapDataPointToCircle(e,a){const s=this.data.name,o=e.value,l=e.name,h=it(l);let c;c=this.xScale(this.scaleType===k.Time?l:this.scaleType===k.Linear?Number(l):l);const d=this.yScale(this.type===Ci.Standard?o:e.d1),g=this.yScale.range()[0]-d;let x;return x=this.colors.getColor(this.colors.scaleType===k.Linear?this.type===Ci.Standard?o:e.d1:s),{classNames:[`circle-data-${a}`],value:o,label:l,data:Object.assign({},e,{series:s,value:o,name:l}),cx:c,cy:d,radius:5,height:g,tooltipLabel:h,color:x,opacity:1,seriesName:s,gradientStops:this.getGradientStops(x),min:e.min,max:e.max}}getTooltipText({tooltipLabel:e,value:a,seriesName:s,min:o,max:l}){return`\n <span class="tooltip-label">${yi(s)} \u2022 ${yi(e)}</span>\n <span class="tooltip-val">${a.toLocaleString()}${this.getTooltipMinMaxText(o,l)}</span>\n `}getTooltipMinMaxText(e,a){if(void 0!==e||void 0!==a){let s=" (";return void 0!==e?(void 0===a&&(s+="\u2265"),s+=e.toLocaleString(),void 0!==a&&(s+=" - ")):void 0!==a&&(s+="\u2264"),void 0!==a&&(s+=a.toLocaleString()),s+=")",s}return""}getGradientStops(e){return[{offset:0,color:e,opacity:.2},{offset:100,color:e,opacity:1}]}onClick(e){this.select.emit(e)}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.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})}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.Agw))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-circle-series",""]],inputs:{data:"data",type:"type",xScale:"xScale",yScale:"yScale",colors:"colors",scaleType:"scaleType",visibleValue:"visibleValue",activeEntries:"activeEntries",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},standalone:!1,features:[r.OA$],attrs:sg,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,"select","activate","deactivate","cx","cy","r","fill","pointerEvents","data","classNames","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext"],[1,"tooltip-bar"]],template:function(a,s){1&a&&r.DNE(0,cg,6,22,"g",0),2&a&&r.Y8G("ngIf",s.circle)},dependencies:[$.bT,Ti,er,bi],encapsulation:2,data:{animation:[(0,U.hZ)("animationState",[(0,U.kY)(":enter",[(0,U.iF)({opacity:0}),(0,U.i0)(250,(0,U.iF)({opacity:1}))])])]},changeDetection:0}))}return t(),n})(),nr=(()=>{var t;class n{constructor(){this.endOpacity=1,this.cx=0,this.cy=0}get stops(){return this.stopsInput||this.stopsDefault}set stops(e){this.stopsInput=e}ngOnChanges(e){this.r="30%",("color"in e||"startOpacity"in e||"endOpacity"in e)&&(this.stopsDefault=[{offset:0,color:this.color,opacity:this.startOpacity},{offset:100,color:this.color,opacity:this.endOpacity}])}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-svg-radial-gradient",""]],inputs:{color:"color",name:"name",startOpacity:"startOpacity",endOpacity:"endOpacity",cx:"cx",cy:"cy",stops:"stops"},standalone:!1,features:[r.OA$],attrs:gg,decls:2,vars:5,consts:[["gradientUnits","userSpaceOnUse",3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(a,s){1&a&&(u.qSk(),r.j41(0,"radialGradient",0),r.DNE(1,ug,1,5,"stop",1),r.k0s()),2&a&&(r.Y8G("id",s.name),r.BMQ("cx",s.cx)("cy",s.cy)("r",s.r),r.R7$(),r.Y8G("ngForOf",s.stops))},dependencies:[$.Sq],encapsulation:2,changeDetection:0}))}return t(),n})(),ar=(()=>{var t;class n{constructor(e){this.opacity=1,this.startOpacity=.5,this.endOpacity=1,this.gradient=!1,this.animations=!0,this.select=new r.bkB,this.animationsLoaded=!1,this.hasGradient=!1,this.barOrientation=te,this.element=e.nativeElement}ngOnChanges(){this.update(),this.animationsLoaded||(this.loadAnimation(),this.animationsLoaded=!0)}update(){this.gradientId="grad"+nt().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 e=re(this.element).select(".area");this.animations?e.transition().duration(750).attr("d",this.path):e.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}]}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.aKT))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-area",""]],inputs:{data:"data",path:"path",startingPath:"startingPath",fill:"fill",opacity:"opacity",startOpacity:"startOpacity",endOpacity:"endOpacity",gradient:"gradient",stops:"stops",animations:"animations"},outputs:{select:"select"},standalone:!1,features:[r.OA$],attrs:pg,decls:2,vars:5,consts:[[4,"ngIf"],[1,"area"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(a,s){1&a&&(r.DNE(0,fg,2,3,"defs",0),u.qSk(),r.nrm(1,"path",1)),2&a&&(r.Y8G("ngIf",s.gradient),r.R7$(),r.xc7("opacity",s.opacity),r.BMQ("d",s.areaPath)("fill",s.gradient?s.gradientFill:s.fill))},dependencies:[$.bT,bi],encapsulation:2,changeDetection:0}))}return t(),n})();typeof window<"u"?Dn=window:typeof global<"u"&&(Dn=global);const or=Dn.MouseEvent;function Fn(t,n=!1,i=!0){if("function"==typeof or)return new or(t,{bubbles:n,cancelable:i});{const e=document.createEvent("MouseEvent");return e.initEvent(t,n,i),e}}let lr=(()=>{var t;class n{constructor(e){this.platformId=e,this.anchorOpacity=0,this.anchorPos=-1,this.anchorV
1alues=[],this.placementTypes=M,this.styleTypes=xt,this.showPercentage=!1,this.tooltipDisabled=!1,this.hover=new r.bkB}getValues(e){const a=[];for(const s of this.results){const o=s.series.find(h=>h.name.toString()===e.toString());let l=s.name;if(l instanceof Date&&(l=l.toLocaleDateString()),o){const h=o.name;let d,c=o.value;if(this.showPercentage&&(c=(o.d1-o.d0).toFixed(2)+"%"),this.colors.scaleType===k.Linear){let g=c;o.d1&&(g=o.d1),d=this.colors.getColor(g)}else d=this.colors.getColor(s.name);const m=Object.assign({},o,{value:c,name:h,series:l,min:o.min,max:o.max,color:d});a.push(m)}}return a}mouseMove(e){if(!(0,fe.UE)(this.platformId))return;const a=e.pageX-e.target.getBoundingClientRect().left,s=this.findClosestPointIndex(a),o=this.xSet[s];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 l=Fn("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(l),this.anchorOpacity=.7,this.hover.emit({value:o}),this.showTooltip(),this.lastAnchorPos=this.anchorPos}}findClosestPointIndex(e){let a=0,s=this.xSet.length-1,o=Number.MAX_VALUE,l=0;for(;a<=s;){const h=(a+s)/2|0,c=this.xScale(this.xSet[h]),d=Math.abs(c-e);if(d<o&&(o=d,l=h),c<e)a=h+1;else{if(!(c>e)){o=0,l=h;break}s=h-1}}return l}showTooltip(){const e=Fn("mouseenter");this.tooltipAnchor.nativeElement.dispatchEvent(e)}hideTooltip(){const e=Fn("mouseleave");this.tooltipAnchor.nativeElement.dispatchEvent(e),this.anchorOpacity=0,this.lastAnchorPos=-1}getToolTipText(e){let a="";return a+=void 0!==e.series?e.series:"???",a+=": ",void 0!==e.value&&(a+=e.value.toLocaleString()),(void 0!==e.min||void 0!==e.max)&&(a+=" (",void 0!==e.min?(void 0===e.max&&(a+="\u2265"),a+=e.min.toLocaleString(),void 0!==e.max&&(a+=" - ")):void 0!==e.max&&(a+="\u2264"),void 0!==e.max&&(a+=e.max.toLocaleString()),a+=")"),a}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.Agw))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-tooltip-area",""]],viewQuery:function(a,s){if(1&a&&r.GBs(_g,5),2&a){let o;r.mGM(o=r.lsd())&&(s.tooltipAnchor=o.first)}},inputs:{dims:"dims",xSet:"xSet",xScale:"xScale",yScale:"yScale",results:"results",colors:"colors",showPercentage:"showPercentage",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate"},outputs:{hover:"hover"},standalone:!1,attrs:vg,decls:6,vars:18,consts:[["defaultTooltipTemplate",""],["tooltipAnchor",""],["y","0",1,"tooltip-area",2,"opacity","0","cursor","'auto'",3,"mousemove","mouseleave"],["y","0","ngx-tooltip","",1,"tooltip-anchor",3,"tooltipDisabled","tooltipPlacement","tooltipType","tooltipSpacing","tooltipTemplate","tooltipContext","tooltipImmediateExit"],[1,"area-tooltip-container"],["class","tooltip-item",4,"ngFor","ngForOf"],[1,"tooltip-item"],[1,"tooltip-item-color"]],template:function(a,s){if(1&a){const o=r.RV6();u.qSk(),r.j41(0,"g")(1,"rect",2),r.bIt("mousemove",function(h){return u.eBV(o),u.Njj(s.mouseMove(h))})("mouseleave",function(){return u.eBV(o),u.Njj(s.hideTooltip())}),r.k0s(),r.DNE(2,Tg,2,1,"ng-template",null,0,r.C5r),r.nrm(4,"rect",3,1),r.k0s()}if(2&a){const o=r.sdS(3);r.R7$(),r.BMQ("x",0)("width",s.dims.width)("height",s.dims.height),r.R7$(3),r.xc7("opacity",s.anchorOpacity)("pointer-events","none"),r.Y8G("@animationState",0!==s.anchorOpacity?"active":"inactive")("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement",s.placementTypes.Right)("tooltipType",s.styleTypes.tooltip)("tooltipSpacing",15)("tooltipTemplate",s.tooltipTemplate?s.tooltipTemplate:o)("tooltipContext",s.anchorValues)("tooltipImmediateExit",!0),r.BMQ("x",s.anchorPos)("width",1)("height",s.dims.height)}},dependencies:[$.Sq,Ti],encapsulation:2,data:{animation:[(0,U.hZ)("animationState",[(0,U.kY)("inactive => active",[(0,U.iF)({opacity:0}),(0,U.i0)(250,(0,U.iF)({opacity:.7}))]),(0,U.kY)("active => inactive",[(0,U.iF)({opacity:.7}),(0,U.i0)(250,(0,U.iF)({opacity:0}))])])]},changeDetection:0}))}return t(),n})(),cr=(()=>{var t;class n{constructor(e,a){this.cd=a,this.height=50,this.select=new r.bkB,this.onDomainChange=new r.bkB,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update(),this.initialized||(this.addBrush(),this.initialized=!0)}update(){this.dims=this.getDims(),this.height=this.dims.height;const e=this.view[1]-this.height;this.xDomain=this.getXDomain(),this.xScale=this.getXScale(),this.brush&&this.updateBrush(),this.transform=`translate(0 , ${e})`,this.filterId="filter"+nt().toString(),this.filter=`url(#${this.filterId})`,this.cd.markForCheck()}getXDomain(){let e=[];for(const s of this.results)for(const o of s.series)e.includes(o.name)||e.push(o.name);let a=[];return this.scaleType===k.Time?a=[Math.min(...e),Math.max(...e)]:this.scaleType===k.Linear?(e=e.map(l=>Number(l)),a=[Math.min(...e),Math.max(...e)]):a=e,a}getXScale(){let e;return this.scaleType===k.Time?e=cs().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===k.Linear?e=Le().range([0,this.dims.width]).domain(this.xDomain):this.scaleType===k.Ordinal&&(e=ws().range([0,this.dims.width]).padding(.1).domain(this.xDomain)),e}addBrush(){if(this.brush)return;const e=this.height,a=this.view[0];this.brush=function ah(){return function Ji(t){var l,n=th,i=eh,e=ih,a=!0,s=Kn("start","brush","end"),o=6;function h(f){var _=f.property("__brush",T).selectAll(".overlay").data([Dt("overlay")]);_.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ve.overlay).merge(_).each(function(){var y=Ki(this).extent;re(this).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])}),f.selectAll(".selection").data([Dt("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ve.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var C=f.selectAll(".handle").data(t.handles,function(y){return y.type});C.exit().remove(),C.enter().append("rect").attr("class",function(y){return"handle handle--"+y.type}).attr("cursor",function(y){return Ve[y.type]}),f.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",g).filter(e).on("touchstart.brush",g).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var f=re(this),_=Ki(this).selection;_?(f.selectAll(".selection").style("display",null).attr("x",_[0][0]).attr("y",_[0][1]).attr("width",_[1][0]-_[0][0]).attr("height",_[1][1]-_[0][1]),f.selectAll(".handle").style("display",null).attr("x",function(C){return"e"===C.type[C.type.length-1]?_[1][0]-o/2:_[0][0]-o/2}).attr("y",function(C){return"s"===C.type[0]?_[1][1]-o/2:_[0][1]-o/2}).attr("width",function(C){return"n"===C.type||"s"===C.type?_[1][0]-_[0][0]+o:o}).attr("height",function(C){return"e"===C.type||"w"===C.type?_[1][1]-_[0][1]+o:o})):f.selectAll(".selection,.handle").style("display","none").attr("x",
vendor: 5,060 bytes, line 1
1null).attr("y",null).attr("width",null).attr("height",null)}function d(f,_,C){var y=f.__brush.emitter;return!y||C&&y.clean?new m(f,_,C):y}function m(f,_,C){this.that=f,this.args=_,this.state=f.__brush,this.active=0,this.clean=C}function g(f){if((!l||f.touches)&&i.apply(this,arguments)){var R,A,b,F,X,H,G,Q,He,de,Fe,_=this,C=f.target.__data__.type,y="selection"===(a&&f.metaKey?C="overlay":C)?Fa:a&&f.altKey?ct:lt,L=t===ri?null:Kc[C],D=t===si?null:Jc[C],w=Ki(_),P=w.extent,O=w.selection,q=P[0][0],N=P[0][1],ie=P[1][0],K=P[1][1],W=0,j=0,De=L&&D&&a&&f.shiftKey,ne=Array.from(f.touches||[f],E=>{const ee=E.identifier;return(E=pa(E,_)).point0=E.slice(),E.identifier=ee,E});zi(_);var ke=d(_,arguments,!0).beforestart();if("overlay"===C){O&&(He=!0);const E=[ne[0],ne[1]||ne[0]];w.selection=O=[[R=t===ri?q:le(E[0][0],E[1][0]),b=t===si?N:le(E[0][1],E[1][1])],[X=t===ri?ie:oe(E[0][0],E[1][0]),G=t===si?K:oe(E[0][1],E[1][1])]],ne.length>1&&J(f)}else R=O[0][0],b=O[0][1],X=O[1][0],G=O[1][1];A=R,F=b,H=X,Q=G;var S=re(_).attr("pointer-events","none"),B=S.selectAll(".overlay").attr("cursor",Ve[C]);if(f.touches)ke.moved=v,ke.ended=Y;else{var V=re(f.view).on("mousemove.brush",v,!0).on("mouseup.brush",Y,!0);a&&V.on("keydown.brush",function me(E){switch(E.keyCode){case 16:De=L&&D;break;case 18:y===lt&&(L&&(X=H-W*L,R=A+W*L),D&&(G=Q-j*D,b=F+j*D),y=ct,J(E));break;case 32:(y===lt||y===ct)&&(L<0?X=H-W:L>0&&(R=A-W),D<0?G=Q-j:D>0&&(b=F-j),y=Qi,B.attr("cursor",Ve.selection),J(E));break;default:return}qi(E)},!0).on("keyup.brush",function ge(E){switch(E.keyCode){case 16:De&&(de=Fe=De=!1,J(E));break;case 18:y===ct&&(L<0?X=H:L>0&&(R=A),D<0?G=Q:D>0&&(b=F),y=lt,J(E));break;case 32:y===Qi&&(E.altKey?(L&&(X=H-W*L,R=A+W*L),D&&(G=Q-j*D,b=F+j*D),y=ct):(L<0?X=H:L>0&&(R=A),D<0?G=Q:D>0&&(b=F),y=lt),B.attr("cursor",Ve[C]),J(E));break;default:return}qi(E)},!0),function ll(t){var n=t.document.documentElement,i=re(t).on("dragstart.drag",Vi,Mi);"onselectstart"in n?i.on("selectstart.drag",Vi,Mi):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(f.view)}c.call(_),ke.start(f,y.name)}function v(E){for(const ee of E.changedTouches||[E])for(const It of ne)It.identifier===ee.identifier&&(It.cur=pa(ee,_));if(De&&!de&&!Fe&&1===ne.length){const ee=ne[0];Ea(ee.cur[0]-ee[0])>Ea(ee.cur[1]-ee[1])?Fe=!0:de=!0}for(const ee of ne)ee.cur&&(ee[0]=ee.cur[0],ee[1]=ee.cur[1]);He=!0,qi(E),J(E)}function J(E){const ee=ne[0],It=ee.point0;var We;switch(W=ee[0]-It[0],j=ee[1]-It[1],y){case Qi:case Fa:L&&(W=oe(q-R,le(ie-X,W)),A=R+W,H=X+W),D&&(j=oe(N-b,le(K-G,j)),F=b+j,Q=G+j);break;case lt:ne[1]?(L&&(A=oe(q,le(ie,ne[0][0])),H=oe(q,le(ie,ne[1][0])),L=1),D&&(F=oe(N,le(K,ne[0][1])),Q=oe(N,le(K,ne[1][1])),D=1)):(L<0?(W=oe(q-R,le(ie-R,W)),A=R+W,H=X):L>0&&(W=oe(q-X,le(ie-X,W)),A=R,H=X+W),D<0?(j=oe(N-b,le(K-b,j)),F=b+j,Q=G):D>0&&(j=oe(N-G,le(K-G,j)),F=b,Q=G+j));break;case ct:L&&(A=oe(q,le(ie,R-W*L)),H=oe(q,le(ie,X+W*L))),D&&(F=oe(N,le(K,b-j*D)),Q=oe(N,le(K,G+j*D)))}H<A&&(L*=-1,We=R,R=X,X=We,We=A,A=H,H=We,C in Ma&&B.attr("cursor",Ve[C=Ma[C]])),Q<F&&(D*=-1,We=b,b=G,G=We,We=F,F=Q,Q=We,C in Va&&B.attr("cursor",Ve[C=Va[C]])),w.selection&&(O=w.selection),de&&(A=O[0][0],H=O[1][0]),Fe&&(F=O[0][1],Q=O[1][1]),(O[0][0]!==A||O[0][1]!==F||O[1][0]!==H||O[1][1]!==Q)&&(w.selection=[[A,F],[H,Q]],c.call(_),ke.brush(E,y.name))}function Y(E){if(function Qc(t){t.stopImmediatePropagation()}(E),E.touches){if(E.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else(function cl(t,n){var i=t.document.documentElement,e=re(t).on("dragstart.drag",null);n&&(e.on("click.drag",Vi,Mi),setTimeout(function(){e.on("click.drag",null)},0)),"onselectstart"in i?e.on("selectstart.drag",null):(i.style.MozUserSelect=i.__noselect,delete i.__noselect)})(E.view,He),V.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);S.attr("pointer-events","all"),B.attr("cursor",Ve.overlay),w.selection&&(O=w.selection),function nh(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(O)&&(w.selection=null,c.call(_)),ke.end(E,y.name)}}function p(f){d(this,arguments).moved(f)}function x(f){d(this,arguments).ended(f)}function T(){var f=this.__brush||{selection:null};return f.extent=Zi(n.apply(this,arguments)),f.dim=t,f}return h.move=function(f,_,C){f.tween?f.on("start.brush",function(y){d(this,arguments).beforestart().start(y)}).on("interrupt.brush end.brush",function(y){d(this,arguments).end(y)}).tween("brush",function(){var y=this,L=y.__brush,D=d(y,arguments),w=L.selection,P=t.input("function"==typeof _?_.apply(this,arguments):_,L.extent),O=Qe(w,P);function q(R){L.selection=1===R&&null===P?null:O(R),c.call(y),D.brush()}return null!==w&&null!==P?q:q(1)}):f.each(function(){var y=this,L=arguments,D=y.__brush,w=t.input("function"==typeof _?_.apply(y,L):_,D.extent),P=d(y,L).beforestart();zi(y),D.selection=null===w?null:w,c.call(y),P.start(C).brush(C).end(C)})},h.clear=function(f,_){h.move(f,null,_)},m.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(f,_){return this.starting?(this.starting=!1,this.emit
1("start",f,_)):this.emit("brush",f),this},brush:function(f,_){return this.emit("brush",f,_),this},end:function(f,_){return 0===--this.active&&(delete this.state.emitter,this.emit("end",f,_)),this},emit:function(f,_,C){var y=re(this.that).datum();s.call(f,this.that,new qc(f,{sourceEvent:_,target:h,selection:t.output(this.state.selection),mode:C,dispatch:s}),y)}},h.extent=function(f){return arguments.length?(n="function"==typeof f?f:Ui(Zi(f)),h):n},h.filter=function(f){return arguments.length?(i="function"==typeof f?f:Ui(!!f),h):i},h.touchable=function(f){return arguments.length?(e="function"==typeof f?f:Ui(!!f),h):e},h.handleSize=function(f){return arguments.length?(o=+f,h):o},h.keyModifiers=function(f){return arguments.length?(a=!!f,h):a},h.on=function(){var f=s.on.apply(s,arguments);return f===s?h:f},h}(si)}().extent([[0,0],[a,e]]).on("brush end",({selection:s})=>{const l=(s||this.xScale.range()).map(this.xScale.invert);this.onDomainChange.emit(l),this.cd.markForCheck()}),re(this.element).select(".brush").call(this.brush)}updateBrush(){this.brush&&(this.brush.extent([[0,0],[this.view[0],this.height]]),re(this.element).select(".brush").call(this.brush),re(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}}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.aKT),r.rXU(yt.gRc))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-timeline",""]],inputs:{view:"view",results:"results",scheme:"scheme",customColors:"customColors",legend:"legend",autoScale:"autoScale",scaleType:"scaleType",height:"height"},outputs:{select:"select",onDomainChange:"onDomainChange"},standalone:!1,features:[r.OA$],attrs:bg,ngContentSelectors:Ps,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(a,s){1&a&&(r.NAR(),u.qSk(),r.j41(0,"g",0)(1,"filter"),r.nrm(2,"feColorMatrix",1),r.k0s(),r.j41(3,"g",2),r.SdG(4),r.k0s(),r.nrm(5,"rect",3)(6,"g",4),r.k0s()),2&a&&(r.BMQ("transform",s.transform),r.R7$(),r.BMQ("id",s.filterId),r.R7$(4),r.BMQ("width",s.view[0])("height",s.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}))}return t(),n})(),ve=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[$.MD,Zs,Ks,$.MD,Zs,Ks]}))}return t(),n})();function wi({width:t,height:n,margins:i,showXAxis:e=!1,showYAxis:a=!1,xAxisHeight:s=0,yAxisWidth:o=0,showXLabel:l=!1,showYLabel:h=!1,showLegend:c=!1,legendType:d=k.Ordinal,legendPosition:m=Ge.Right,columns:g=12}){let p=i[3],x=t,T=n-i[0]-i[2];return c&&m===Ge.Right&&(g-=d===k.Ordinal?2:1),x=x*g/12,x=x-i[1]-i[3],e&&(T-=5,T-=s,l&&(T-=30)),a&&(x-=5,x-=o,p+=o,p+=10,h&&(x-=30,p+=30)),x=Math.max(0,x),T=Math.max(0,T),{width:Math.floor(x),height:Math.floor(T),xOffset:Math.floor(p)}}const hr=[{name:"vivid",selectable:!0,group:k.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:k.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:k.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:k.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:k.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:k.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:k.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:k.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:k.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:k.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:k.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:k.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:k.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:k.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:k.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class Si{constructor(n,i,e,a){"string"==typeof n&&(n=hr.find(s=>
1s.name===n)),this.colorDomain=n.domain,this.scaleType=i,this.domain=e,this.customColors=a,this.scale=this.generateColorScheme(n,i,this.domain)}generateColorScheme(n,i,e){let a;switch("string"==typeof n&&(n=hr.find(s=>s.name===n)),i){case k.Quantile:a=Ss().range(n.domain).domain(e);break;case k.Ordinal:a=_n().range(n.domain).domain(e);break;case k.Linear:{const s=[...n.domain];1===s.length&&(s.push(s[0]),this.colorDomain=s);const o=_s(0,1,1/s.length);a=Le().range(s).domain(o)}}return a}getColor(n){if(null==n)throw new Error("Value can not be null");if(this.scaleType===k.Linear){const i=Le().domain(this.domain).range([0,1]);return this.scale(i(n))}{if("function"==typeof this.customColors)return this.customColors(n);const i=n.toString();let e;return this.customColors&&this.customColors.length>0&&(e=this.customColors.find(a=>a.name.toLowerCase()===i.toLowerCase())),e?e.value:this.scale(n)}}getLinearGradientStops(n,i){void 0===i&&(i=this.domain[0]);const e=Le().domain(this.domain).range([0,1]),a=pi().domain(this.colorDomain).range([0,1]),s=this.getColor(n),o=e(i),l=this.getColor(i),h=e(n);let c=1,d=o;const m=[];for(m.push({color:l,offset:o,originalOffset:o,opacity:1});d<h&&c<this.colorDomain.length;){const g=this.colorDomain[c],p=a(g);if(p<=o)c++;else{if(p.toFixed(4)>=(h-a.bandwidth()).toFixed(4))break;m.push({color:g,offset:p,opacity:1}),d=p,c++}}if(m[m.length-1].offset<100&&m.push({color:s,offset:h,opacity:1}),h===o)m[0].offset=0,m[1].offset=100;else if(100!==m[m.length-1].offset)for(const g of m)g.offset=(g.offset-o)/(h-o)*100;return m}}let up=(()=>{var t;class n{constructor(){this.baseValue="auto",this.stacked=!1,this.normalized=!1,this.animations=!0,this.select=new r.bkB}ngOnChanges(e){this.update()}update(){let e,a;this.updateGradient();const s=l=>this.xScale(l.name);this.stacked||this.normalized?(e=xi().x(s).y0((l,h)=>this.yScale(l.d0)).y1((l,h)=>this.yScale(l.d1)),a=xi().x(s).y0(l=>this.yScale.range()[0]).y1(l=>this.yScale.range()[0])):(e=xi().x(s).y0(()=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(l=>this.yScale(l.value)),a=xi().x(s).y0(l=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue)).y1(l=>"auto"===this.baseValue?this.yScale.range()[0]:this.yScale(this.baseValue))),e.curve(this.curve),a.curve(this.curve),this.opacity=.8;let o=this.data.series;o=this.scaleType===k.Linear?function dp(t,n,i="asc"){return t.sort((e,a)=>"asc"===i?e[n]-a[n]:a[n]-e[n])}(o,"name"):this.scaleType===k.Time?function gp(t,n,i="asc"){return t.sort((e,a)=>{const s=e[n].getTime(),o=a[n].getTime();return"asc"===i?s>o?1:o>s?-1:0:s>o?-1:o>s?1:0})}(o,"name"):function mp(t,n,i="asc",e){return t.sort((a,s)=>{const l=s[n],h=e.indexOf(a[n]),c=e.indexOf(l);return"asc"===i?h-c:c-h})}(o,"name","asc",this.xScale.domain()),this.path=e(o),this.startingPath=a(o)}updateGradient(){if(this.colors.scaleType===k.Linear)if(this.hasGradient=!0,this.stacked||this.normalized){const e=this.data.series.map(l=>l.d0),a=this.data.series.map(l=>l.d1),s=Math.max(...a),o=Math.min(...e);this.gradientStops=this.colors.getLinearGradientStops(s,o)}else{const e=this.data.series.map(s=>s.value),a=Math.max(...e);this.gradientStops=this.colors.getLinearGradientStops(a)}else this.hasGradient=!1,this.gradientStops=void 0}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name)}isInactive(e){return!(!this.activeEntries||0===this.activeEntries.length)&&void 0===this.activeEntries.find(s=>e.name===s.name)}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-area-series",""]],inputs:{data:"data",xScale:"xScale",yScale:"yScale",baseValue:"baseValue",colors:"colors",scaleType:"scaleType",stacked:"stacked",normalized:"normalized",gradient:"gradient",curve:"curve",activeEntries:"activeEntries",animations:"animations"},outputs:{select:"select"},standalone:!1,features:[r.OA$],attrs:Fg,decls:1,vars:12,consts:[["ngx-charts-area","",1,"area-series",3,"data","path","fill","stops","startingPath","opacity","gradient","animations"]],template:function(a,s){1&a&&(u.qSk(),r.nrm(0,"g",0)),2&a&&(r.AVh("active",s.isActive(s.data))("inactive",s.isInactive(s.data)),r.Y8G("data",s.data)("path",s.path)("fill",s.colors.getColor(s.data.name))("stops",s.gradientStops)("startingPath",s.startingPath)("opacity",s.opacity)("gradient",s.gradient||s.hasGradient)("animations",s.animations))},dependencies:[ar],encapsulation:2,changeDetection:0}))}return t(),n})(),pp=(()=>{var t;class n extends Gt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ge.Right,this.xAxis=!1,this.yAxis=!1,this.baseValue="auto",this.autoScale=!1,this.timeline=!1,this.showGridLines=!0,this.curve=vn,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=!1,this.wrapTicks=!1,this.activate=new r.bkB,this.deactivate=new r.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.timelineHeight=50,this.timelinePadding=10,this.trackBy=(e,a)=>a.name}
1update(){super.update(),this.dims=wi({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"+nt().toString(),this.clipPath=`url(#${this.clipPathId})`;const e=re(this.chartElement.nativeElement).select(".area-chart").node();re(this.chartElement.nativeElement).selectAll(".ref-line").nodes().forEach(s=>e.appendChild(s))}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 e=function hp(t){const n=new Set;for(const i of t)for(const e of i.series)n.add(e.name);return Array.from(n)}(this.results);this.scaleType=function dr(t,n=!0){return n&&t.every(a=>a instanceof Date)?k.Time:t.every(e=>"number"==typeof e)?k.Linear:k.Ordinal}(e);let s,o,a=[];return this.scaleType===k.Linear&&(e=e.map(l=>Number(l))),(this.scaleType===k.Time||this.scaleType===k.Linear)&&(s=this.xScaleMin?this.xScaleMin:Math.min(...e),o=this.xScaleMax?this.xScaleMax:Math.max(...e)),this.scaleType===k.Time?(a=[new Date(s),new Date(o)],this.xSet=[...e].sort((l,h)=>{const c=l.getTime(),d=h.getTime();return c>d?1:d>c?-1:0})):this.scaleType===k.Linear?(a=[s,o],this.xSet=[...e].sort((l,h)=>l-h)):(a=e,this.xSet=e),a}getYDomain(){const e=[];for(const l of this.results)for(const h of l.series)e.includes(h.value)||e.push(h.value);const a=[...e];return this.autoScale||a.push(0),"auto"!==this.baseValue&&a.push(this.baseValue),[this.yScaleMin?this.yScaleMin:Math.min(...a),this.yScaleMax?this.yScaleMax:Math.max(...a)]}getSeriesDomain(){return this.results.map(e=>e.name)}getXScale(e,a){let s;return this.scaleType===k.Time?s=cs():this.scaleType===k.Linear?s=Le():this.scaleType===k.Ordinal&&(s=ws().padding(.1)),s.range([0,a]).domain(e),this.roundDomains?s.nice():s}getYScale(e,a){const s=Le().range([a,0]).domain(e);return this.roundDomains?s.nice():s}getScaleType(e){let a=!0,s=!0;for(const o of e)Ln(o)&&(a=!1),sp(o)&&(s=!1);return a?k.Time:s?k.Linear:k.Ordinal}updateDomain(e){this.filteredDomain=e,this.xDomain=this.filteredDomain,this.xScale=this.getXScale(this.xDomain,this.dims.width)}updateHoveredVertical(e){this.hoveredVertical=e.value,this.deactivateAll()}hideCircles(){this.hoveredVertical=null,this.deactivateAll()}onClick(e,a){a&&(e.series=a.name),this.select.emit(e)}setColors(){let e;e=this.schemeType===k.Ordinal?this.seriesDomain:this.yDomain,this.colors=new Si(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return e.scaleType===k.Ordinal?(e.domain=this.seriesDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.yDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const a=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(a,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}deactivateAll(){this.activeEntries=[...this.activeEntries];for(const e of this.activeEntries)this.deactivate.emit({value:e,entries:[]});this.activeEntries=[]}static#e=t=()=>(this.\u0275fac=(()=>{let e;return function(s){return(e||(e=r.xGo(n)))(s||n)}})(),this.\u0275cmp=r.VBU({type:n,selectors:[["ngx-charts-area-chart"]],contentQueries:function(a,s,o){if(1&a&&(r.wni(o,kn,5),r.wni(o,Eg,5)),2&a){let l;r.mGM(l=r.lsd())&&(s.tooltipTemplate=l.first),r.mGM(l=r.lsd())&&(s.seriesTooltipTemplate=l.first)}},hostBindings:function(a,s){1&a&&r.bIt("mouseleave",function(){return s.hideCircles()})},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",baseValue:"baseValue",autoScale:"autoScale",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",timeline:"timeline",gradient:"gradient",showGridLines:"showGridLines",curve:"curve",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",roundDomains:"roundDomains",tooltipDisabled:"tooltipDisabled",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",xScaleMin:"xScaleMin",xScaleMax:"xScaleMax",yScaleMin:"yScaleMin",yScaleMax:"yScaleMax",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[r.Vt3],decls:11,vars:20,consts:[[3,"legendLabelClick","legendLabelActivate","legendLabelDeactivate","view","showLegend","legendOptions","activeEntries","animations"],[1,"area-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngFor","ngForOf","ngForTrackBy"],[3,"mouseleave",4,"ngIf"],["ngx-charts-timeline","",3,"results","view","height","scheme","customColors","legend","scaleType","onDomainChange",4,"ngIf"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","referenceLines","showRefLines","showRefLabels","wrapTicks"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","activeEntries","scaleType","gradient","curve","animations"],[3,"mouseleave"],["ngx-charts-tooltip-area","",3,"hover","dims","xSet","xScale","yScale","results","colors","tooltipDisabled","tooltipTemplate"],[4,"ngFor","ngForOf"],["ngx-charts-circle-series","",3,"select","activate","deactivate","xScale","yScale","colors","activeEntries","data","scaleType","visibleValue","tooltipDisabled","tooltipTemplate"],["ngx-charts-timeline","",3,"onDomainChange","results","view","height","scheme","customColors","legend","scaleType"],["ngx-charts-area-series","",3,"xScale","yScale","baseValue","colors","data","scaleType","gradient","curve","animations"]],template:function(a,s){1&a&&(r.j41(0,"ngx-charts-chart",0),r.bIt("legendLabelClick",function(l){return s.onClick(l)})("legendLabelActivate",function(l){return s.onActivate(l)})("legendLabelDeactivate",function(l){return s.onDeactivate(l)}
1),u.qSk(),r.j41(1,"defs")(2,"clipPath"),r.nrm(3,"rect"),r.k0s()(),r.j41(4,"g",1),r.DNE(5,Bg,1,11,"g",2)(6,Mg,1,13,"g",3),r.j41(7,"g"),r.DNE(8,Vg,2,10,"g",4)(9,Og,3,9,"g",5),r.k0s()(),r.DNE(10,$g,2,13,"g",6),r.k0s()),2&a&&(r.Y8G("view",r.l_i(17,Ye,s.width,s.height))("showLegend",s.legend)("legendOptions",s.legendOptions)("activeEntries",s.activeEntries)("animations",s.animations),r.R7$(2),r.BMQ("id",s.clipPathId),r.R7$(),r.BMQ("width",s.dims.width+10)("height",s.dims.height+10)("transform","translate(-5, -5)"),r.R7$(),r.BMQ("transform",s.transform),r.R7$(),r.Y8G("ngIf",s.xAxis),r.R7$(),r.Y8G("ngIf",s.yAxis),r.R7$(),r.BMQ("clip-path",s.clipPath),r.R7$(),r.Y8G("ngForOf",s.results)("ngForTrackBy",s.trackBy),r.R7$(),r.Y8G("ngIf",!s.tooltipDisabled),r.R7$(),r.Y8G("ngIf",s.timeline&&"ordinal"!=s.scaleType))},dependencies:[$.Sq,$.bT,Us,Qs,lr,$t,tr,cr,up],styles:[".ngx-charts-outer{animation:chartFadeIn linear .6s}@keyframes chartFadeIn{0%{opacity:0}20%{opacity:0}to{opacity:1}}.ngx-charts{float:left;overflow:visible}.ngx-charts .circle,.ngx-charts .cell,.ngx-charts .bar,.ngx-charts .node,.ngx-charts .link,.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 .node.active,.ngx-charts .node:hover,.ngx-charts .link.active,.ngx-charts .link: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 .node:focus,.ngx-charts .link:focus,.ngx-charts .card:focus{outline:none}.ngx-charts .bar.hidden,.ngx-charts .cell.hidden,.ngx-charts .arc.hidden,.ngx-charts .node.hidden,.ngx-charts .link.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:400}.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"],encapsulation:2,changeDetection:0}))}return t(),n})(),fp=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})(),mr=(()=>{var t;class n{constructor(e){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new r.bkB,this.activate=new r.bkB,this.deactivate=new r.bkB,this.hasGradient=!1,this.hideBar=!1,this.element=e.nativeElement}ngOnChanges(e){e.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+nt().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 e=re(this.element).select(".bar"),a=this.getPath();this.animations?e.transition().duration(500).attr("d",a):e.attr("d",a)}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 a,e=this.getRadius();return this.roundEdges?this.orientation===te.Vertical?(e=Math.min(this.height,e),a=Ie(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===te.Horizontal&&(e=Math.min(this.width,e),a=Ie(this.x,this.y,1,this.height,0,this.edges)):this.orientation===te.Vertical?a=Ie(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===te.Horizontal&&(a=Ie(this.x,this.y,1,this.height,0,this.edges)),a}getPath(){let a,e=this.getRadius();return this.roundEdges?this.orientation===te.Vertical?(e=Math.min(this.height,e),a=Ie(this.x,this.y,this.width,this.height,e,this.edges)):this.orientation===te.Horizontal&&(e=Math.min(this.width,e),a=Ie(this.x,this.y,this.width,this.height,e,this.edges)):a=Ie(this.x,this.y,this.width,this.height,e,this.edges),a}getRadius(){let e=0;return this.roundEdges&&this.height>5&&this.width>5&&(e=Math.floor(Math.min(5,this.height/2,this.width/2))),e}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let e=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===te.Vertical?e=this.data.value>
10?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===te.Horizontal&&(e=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),e}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===te.Vertical&&0===this.height||this.orientation===te.Horizontal&&0===this.width)}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.aKT))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(a,s){1&a&&r.bIt("mouseenter",function(){return s.onMouseEnter()})("mouseleave",function(){return s.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},standalone:!1,features:[r.OA$],attrs:Xg,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(a,s){1&a&&(r.DNE(0,Yg,2,3,"defs",0),u.qSk(),r.j41(1,"path",1),r.bIt("click",function(){return s.select.emit(s.data)}),r.k0s()),2&a&&(r.Y8G("ngIf",s.hasGradient),r.R7$(),r.AVh("active",s.isActive)("hidden",s.hideBar),r.BMQ("d",s.path)("aria-label",s.ariaLabel)("fill",s.hasGradient?s.gradientFill:s.fill))},dependencies:[$.bT,bi],encapsulation:2,changeDetection:0}))}return t(),n})();var Ne=function(t){return t.Standard="standard",t.Normalized="normalized",t.Stacked="stacked",t}(Ne||{}),vt=function(t){return t.positive="positive",t.negative="negative",t}(vt||{});let xp=(()=>{var t;class n{constructor(e){this.dimensionsChanged=new r.bkB,this.horizontalPadding=2,this.verticalPadding=5,this.element=e.nativeElement}ngOnChanges(e){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):it(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})`)}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.aKT))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},standalone:!1,features:[r.OA$],attrs:zg,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(a,s){1&a&&(u.qSk(),r.j41(0,"text",0),r.EFF(1),r.k0s()),2&a&&(r.BMQ("text-anchor",s.textAnchor)("transform",s.transform)("x",s.x)("y",s.y),r.R7$(),r.SpI(" ",s.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}))}return t(),n})(),_p=(()=>{var t;class n{constructor(e){this.platformId=e,this.type=Ne.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new r.bkB,this.activate=new r.bkB,this.deactivate=new r.bkB,this.dataLabelHeightChanged=new r.bkB,this.barsForDataLabels=[],this.barOrientation=te,this.isSSR=!1}ngOnInit(){(0,fe.Vy)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}update(){let e;this.updateTooltipSettings(),this.series.length&&(e=this.xScale.bandwidth()),e=Math.round(e);const a=Math.max(this.yScale.domain()[0],0),s={[vt.positive]:0,[vt.negative]:0};let l,o=vt.positive;this.type===Ne.Normalized&&(l=this.series.map(h=>h.value).reduce((h,c)=>h+c,0)),this.bars=this.series.map((h,c)=>{let d=h.value;const m=this.getLabel(h),g=it(m);o=d>0?vt.positive:vt.negative;const x={value:d,label:m,roundEdges:this.roundEdges,data:h,width:e,formattedLabel:g,height:0,x:0,y:0};
1if(this.type===Ne.Standard)x.height=Math.abs(this.yScale(d)-this.yScale(a)),x.x=this.xScale(m),x.y=this.yScale(d<0?0:d);else if(this.type===Ne.Stacked){const f=s[o],_=f+d;s[o]+=d,x.height=this.yScale(f)-this.yScale(_),x.x=0,x.y=this.yScale(_),x.offset0=f,x.offset1=_}else if(this.type===Ne.Normalized){let f=s[o],_=f+d;s[o]+=d,l>0?(f=100*f/l,_=100*_/l):(f=0,_=0),x.height=this.yScale(f)-this.yScale(_),x.x=0,x.y=this.yScale(_),x.offset0=f,x.offset1=_,d=(_-f).toFixed(2)+"%"}this.colors.scaleType===k.Ordinal?x.color=this.colors.getColor(m):this.type===Ne.Standard?(x.color=this.colors.getColor(d),x.gradientStops=this.colors.getLinearGradientStops(d)):(x.color=this.colors.getColor(x.offset1),x.gradientStops=this.colors.getLinearGradientStops(x.offset1,x.offset0));let T=g;return x.ariaLabel=g+" "+d.toLocaleString(),null!=this.seriesName&&(T=`${this.seriesName} \u2022 ${g}`,x.data.series=this.seriesName,x.ariaLabel=this.seriesName+" "+x.ariaLabel),x.tooltipText=this.tooltipDisabled?void 0:`\n <span class="tooltip-label">${yi(T)}</span>\n <span class="tooltip-val">${this.dataLabelFormatting?this.dataLabelFormatting(d):d.toLocaleString()}</span>\n `,x}),this.updateDataLabels()}updateDataLabels(){if(this.type===Ne.Stacked){this.barsForDataLabels=[];const e={};e.series=this.seriesName;const a=this.series.map(o=>o.value).reduce((o,l)=>l>0?o+l:o,0),s=this.series.map(o=>o.value).reduce((o,l)=>l<0?o+l:o,0);e.total=a+s,e.x=0,e.y=0,e.height=this.yScale(e.total>0?a:s),e.width=this.xScale.bandwidth(),this.barsForDataLabels.push(e)}else this.barsForDataLabels=this.series.map(e=>{const a={};return a.series=this.seriesName??e.label,a.total=e.value,a.x=this.xScale(e.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:M.Top,this.tooltipType=this.tooltipDisabled?void 0:xt.tooltip}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.value===s.value)}onClick(e){this.select.emit(e)}getLabel(e){return e.label?e.label:e.name}trackBy(e,a){return a.label}trackDataLabelBy(e,a){return e+"#"+a.series+"#"+a.total}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.Agw))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},standalone:!1,features:[r.OA$],attrs:Jg,decls:3,vars:3,consts:[[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",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar","","ngx-tooltip","",3,"select","activate","deactivate","width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","ariaLabel","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","animations"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"dimensionsChanged","barX","barY","barWidth","barHeight","value","valueFormatting","orientation"]],template:function(a,s){1&a&&r.DNE(0,tu,2,2,"g",0)(1,nu,2,2,"g",0)(2,su,2,2,"g",0),2&a&&(r.Y8G("ngIf",!s.isSSR),r.R7$(),r.Y8G("ngIf",s.isSSR),r.R7$(),r.Y8G("ngIf",s.showDataLabel))},dependencies:[$.Sq,$.bT,Ti,mr,xp],encapsulation:2,data:{animation:[(0,U.hZ)("animationState",[(0,U.kY)(":leave",[(0,U.iF)({opacity:1}),(0,U.i0)(500,(0,U.iF)({opacity:0}
1))])])]},changeDetection:0}))}return t(),n})(),vp=(()=>{var t;class n extends Gt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ge.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.showDataLabel=!1,this.noBarWhenZero=!0,this.wrapTicks=!1,this.activate=new r.bkB,this.deactivate=new r.bkB,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barChartType=Ne,this.trackBy=(e,a)=>a.name}ngOnInit(){(0,fe.Vy)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(){this.update()}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=wi({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.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})`}getGroupDomain(){const e=[];for(const a of this.results)e.includes(a.label)||e.push(a.label);return e}getInnerDomain(){const e=[];for(const a of this.results)for(const s of a.series)e.includes(s.label)||e.push(s.label);return e}getValueDomain(){const e=[];let a=0,s=0;for(const h of this.results){let c=0,d=0;for(const m of h.series)m.value<0?c+=m.value:d+=m.value,a=m.value<a?m.value:a,s=m.value>s?m.value:s;e.push(c),e.push(d)}return e.push(a),e.push(s),[Math.min(0,...e),this.yScaleMax?Math.max(this.yScaleMax,...e):Math.max(...e)]}getXScale(){const e=this.groupDomain.length/(this.dims.width/this.barPadding+1);return pi().rangeRound([0,this.dims.width]).paddingInner(e).domain(this.groupDomain)}getYScale(){const e=Le().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?e.nice():e}onDataLabelMaxHeightChanged(e,a){e.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,e.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,e.size.height),a===this.results.length-1&&setTimeout(()=>this.update())}groupTransform(e){return`translate(${this.xScale(e.name)||0}, 0)`}onClick(e,a){a&&(e.series=a.name),this.select.emit(e)}setColors(){let e;e=this.schemeType===k.Ordinal?this.innerDomain:this.valueDomain,this.colors=new Si(this.scheme,this.schemeType,e,this.customColors)}getLegendOptions(){const e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return e.scaleType===k.Ordinal?(e.domain=this.innerDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.valueDomain,e.colors=this.colors.scale),e}updateYAxisWidth({width:e}){this.yAxisWidth=e,this.update()}updateXAxisHeight({height:e}){this.xAxisHeight=e,this.update()}onActivate(e,a,s=!1){const o=Object.assign({},e);a&&(o.series=a.name);const l=this.results.map(h=>h.series).flat().filter(h=>s?h.label===o.name:h.name===o.name&&h.series===o.series);this.activeEntries=[...l],this.activate.emit({value:o,entries:this.activeEntries})}onDeactivate(e,a,s=!1){const o=Object.assign({},e);a&&(o.series=a.name),this.activeEntries=this.activeEntries.filter(l=>s?l.label!==o.name:!(l.name===o.name&&l.series===o.series)),this.deactivate.emit({value:o,entries:this.activeEntries})}static#e=t=()=>(this.\u0275fac=(()=>{let e;return function(s){return(e||(e=r.xGo(n)))(s||n)}})(),this.\u0275cmp=r.VBU({type:n,selectors:[["ngx-charts-bar-vertical-stacked"]],contentQueries:function(a,s,o){if(1&a&&r.wni(o,kn,5),2&a){let l;r.mGM(l=r.lsd())&&(s.tooltipTemplate=l.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero",wrapTicks:"wrapTicks"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[r.Vt3,r.OA$],decls:6,vars:13,consts:[[3,"legendLabelActivate","legendLabelDeactivate","legendLabelClick","view","showLegend","legendOptions","activeEntries","animations"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks","dimensionsChanged",4,"ngIf"],[4,"ngIf"],["ngx-charts-x-axis","",3,"dimensionsChanged","xScale","dims","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","xAxisOffset","wrapTicks"],["ngx-charts-y-axis","",3,"dimensionsChanged","yScale","dims","showGridLines","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","wrapTicks"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-series-vertical","",3,"select","activate","deactivate","dataLabelHeightChanged","type","xScale","yScale","activeEntries","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","showDataLabel","dataLabelFormatting","seriesName","animations","noBarWhenZero"]],template:function(a,s){1&a&&(r.j41(0,"ngx-charts-chart",0),r.bIt("legendLabelActivate",function(l){return s.onActivate(l,void 0,!0)})("legendLabelDeactivate",function(l){return s.onDeactivate(l,void 0,!0)})("legendLabelClick",function(l){return s.onClick(l)}),u.qSk(),r.j41(1,"g",1),r.DNE(2,hu,1,11,"g",2)(3,du,1,10,"g",3)(4,gu,2,2,"g",4)(5,pu,2,2,"g",4),r.k0s()()),2&a&&(r.Y8G("view",r.l_i(10,Ye,s.width,s.height))("showLegend",s.legend)("legendOptions",s.legendOptions)("activeEntries",s.activeEntries)("animations",s.animations),r.R7$(),r.BMQ("transform",s.transform),r.R7$(),r.Y8G("ngIf",s.xAxis),r.R7$(),r.Y8G("ngIf",s.yAxis),r.R7$(),r.Y8G("ngIf",!s.isSSR),r.R7$(),r.Y8G("ngIf",s.isSSR))},dependencies:[$.Sq,$.bT,Us,Qs,$t,_p],styles:[wn],encapsulation:2,data:{animation:[(0,U.hZ)("animationState",[(0,U.kY)(":leave",[(0,U.iF)({opacity:1,transform:"*"}),(0,U.i0)(500,(0,U.iF)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}))}return t(),n})(),gr=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})(),yp=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})(),Tp=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})(),bp=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})(),pr=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})();Math;let Cp=(()=>{var t;class n{constructor(e){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 r.bkB,this.activate=new r.bkB,this.deactivate=new r.bkB,this.dblclick=new r.bkB,this.barOrientation=te,this.initialized=!1,this.element=e.nativeElement}ngOnChanges(e){this.update()}getGradient(){return this.gradient?this.gradientFill:this.fill}getPointerEvents(){return this.pointerEvents?"auto":"none"}update(){const e=this.calculateArc();this.startOpacity=.5,this.radialGradientId="linearGrad"+nt().toString(),this.gradientFill=`url(#${this.radialGradientId})`,this.animate?this.initialized?this.updateAnimation():(this.loadAnimation(),this.initialized=!0):this.path=e.startAngle(this.startAngle).endAngle(this.endAngle)()}calculateArc(){let e=this.outerRadius;return this.explodeSlices&&0===this.innerRadius&&(e=this.outerRadius*this.value/this.max),function lm(){var t=im,n=nm,i=z(0),e=null,a=am,s=sm,o=rm,l=null,h=bn(c);function c(){var d,m,g=+t.apply(this,arguments),p=+n.apply(this,arguments),x=a.apply(this,arguments)-_i,T=s.apply(this,arguments)-_i,f=Ms(T-x),_=T>x;if(l||(l=d=h()),p<g&&(m=p,p=g,g=m),p>pe)if(f>em-pe)l.moveTo(p*tt(x),p*Ae(x)),l.arc(0,0,p,x,T,!_),g>pe&&(l.moveTo(g*tt(T),g*Ae(T)),l.arc(0,0,g,T,x,_));else{var b,F,C=x,y=T,L=x,D=T,w=f,P=f,O=o.apply(this,arguments)/2,q=O>pe&&(e?+e.apply(this,arguments):ft(g*g+p*p)),R=Cn(Ms(p-g)/2,+i.apply(this,arguments)),A=R,N=R;if(q>pe){var ie=Vs(q/g*Ae(O)),X=Vs(q/p*Ae(O));(w-=2*ie)>pe?(L+=ie*=_?1:-1,D-=ie):(w=0,L=D=(x+T)/2),(P-=2*X)>pe?(C+=X*=_?1:-1,y-=X):(P=0,C=y=(x+T)/2)}var H=p*tt(C),K=p*Ae(C),G=g*tt(D),Q=g*Ae(D);if(R>pe){var de,W=p*tt(y),j=p*Ae(y),He=g*tt(L),De=g*Ae(L);if(f<Ot)if(de=function om(t,n,i,e,a,s,o,l){var h=i-t,c=e-n,d=o-a,m=l-s,g=m*h-d*c;if(!(g*g<pe))return[t+(g=(d*(n-s)-m*(t-a))/g)*h,n+g*c]}(H,K,He,De,W,j,G,Q)){var Fe=H-de[0],ne=K-de[1],ke=W-de[0],S=j-de[1],B=1/Ae(function tm(t){return t>1?0:t<-1?Ot:Math.acos(t)}((Fe*ke+ne*S)/(ft(Fe*Fe+ne*ne)*ft(ke*ke+S*S)))/2),V=ft(de[0]*de[0]+de[1]*de[1]);A=Cn(R,(g-V)/(B-1)),N=Cn(R,(p-V)/(B+1))}else A=N=0}P>pe?N>pe?(b=vi(He,De,H,K,p,N,_),F=vi(W,j,G,Q,p,N,_),l.moveTo(b.cx+b.x01,b.cy+b.y01),N<R?l.arc(b.cx,b.cy,N,ce(b.y01,b.x01),ce(F.y01,F.x01),!_):(l.arc(b.cx,b.cy,N,ce(b.y01,b.x01),ce(b.y11,b.x11),!_),l.arc(0,0,p,ce(b.cy+b.y11,b.cx+b.x11),ce(F.cy+F.y11,F.cx+F.x11),!_),l.arc(F.cx,F.
1cy,N,ce(F.y11,F.x11),ce(F.y01,F.x01),!_))):(l.moveTo(H,K),l.arc(0,0,p,C,y,!_)):l.moveTo(H,K),g>pe&&w>pe?A>pe?(b=vi(G,Q,W,j,g,-A,_),F=vi(H,K,He,De,g,-A,_),l.lineTo(b.cx+b.x01,b.cy+b.y01),A<R?l.arc(b.cx,b.cy,A,ce(b.y01,b.x01),ce(F.y01,F.x01),!_):(l.arc(b.cx,b.cy,A,ce(b.y01,b.x01),ce(b.y11,b.x11),!_),l.arc(0,0,g,ce(b.cy+b.y11,b.cx+b.x11),ce(F.cy+F.y11,F.cx+F.x11),_),l.arc(F.cx,F.cy,A,ce(F.y11,F.x11),ce(F.y01,F.x01),!_))):l.arc(0,0,g,D,L,_):l.lineTo(G,Q)}else l.moveTo(0,0);if(l.closePath(),d)return l=null,d+""||null}return c.centroid=function(){var d=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,m=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Ot/2;return[tt(m)*d,Ae(m)*d]},c.innerRadius=function(d){return arguments.length?(t="function"==typeof d?d:z(+d),c):t},c.outerRadius=function(d){return arguments.length?(n="function"==typeof d?d:z(+d),c):n},c.cornerRadius=function(d){return arguments.length?(i="function"==typeof d?d:z(+d),c):i},c.padRadius=function(d){return arguments.length?(e=null==d?null:"function"==typeof d?d:z(+d),c):e},c.startAngle=function(d){return arguments.length?(a="function"==typeof d?d:z(+d),c):a},c.endAngle=function(d){return arguments.length?(s="function"==typeof d?d:z(+d),c):s},c.padAngle=function(d){return arguments.length?(o="function"==typeof d?d:z(+d),c):o},c.context=function(d){return arguments.length?(l=d??null,c):l},c}().innerRadius(this.innerRadius).outerRadius(e).cornerRadius(this.cornerRadius)}loadAnimation(){const e=re(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),a=this.calculateArc();e.transition().attrTween("d",function(s){this._current=this._current||s;const o=Object.assign({},s);o.endAngle=o.startAngle;const l=Qe(o,o);return this._current=l(0),function(h){return a(l(h))}}).transition().duration(750).attrTween("d",function(s){this._current=this._current||s;const o=Qe(this._current,s);return this._current=o(0),function(l){return a(o(l))}})}updateAnimation(){const e=re(this.element).selectAll(".arc").data([{startAngle:this.startAngle,endAngle:this.endAngle}]),a=this.calculateArc();e.transition().duration(750).attrTween("d",function(s){this._current=this._current||s;const o=Qe(this._current,s);return this._current=o(0),function(l){return a(o(l))}})}onClick(){clearTimeout(this._timeout),this._timeout=setTimeout(()=>this.select.emit(this.data),200)}onDblClick(e){e.preventDefault(),e.stopPropagation(),clearTimeout(this._timeout),this.dblclick.emit({data:this.data,nativeEvent:e})}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)(r.rXU(r.aKT))},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-pie-arc",""]],inputs:{fill:"fill",startAngle:"startAngle",endAngle:"endAngle",innerRadius:"innerRadius",outerRadius:"outerRadius",cornerRadius:"cornerRadius",value:"value",max:"max",data:"data",explodeSlices:"explodeSlices",gradient:"gradient",animate:"animate",pointerEvents:"pointerEvents",isActive:"isActive"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dblclick:"dblclick"},standalone:!1,features:[r.OA$],attrs:Du,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(a,s){1&a&&(u.qSk(),r.j41(0,"g",0),r.DNE(1,Fu,2,3,"defs",1),r.j41(2,"path",2),r.bIt("click",function(){return s.onClick()})("dblclick",function(l){return s.onDblClick(l)})("mouseenter",function(){return s.activate.emit(s.data)})("mouseleave",function(){return s.deactivate.emit(s.data)}),r.k0s()()),2&a&&(r.R7$(),r.Y8G("ngIf",s.gradient),r.R7$(),r.xc7("pointer-events",s.getPointerEvents()),r.AVh("active",s.isActive),r.BMQ("d",s.path)("fill",s.getGradient()))},dependencies:[$.bT,nr],encapsulation:2,changeDetection:0}))}return t(),n})(),En=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})(),Sp=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve,En,pr]}))}return t(),n})();const Ap={0:10,1:10,2:10,3:10,4:10,5:10,6:10,7:10,8:10,9:10,A:11,B:11,C:11,D:12,E:10,F:9,G:12,H:12,I:7,J:7,K:11,L:9,M:13,N:12,O:13,P:10,Q:13,R:11,S:11,T:10,U:12,V:11,W:16,X:11,Y:10,Z:11,a:10,b:10,c:8,d:10,e:10,f:6,g:10,h:10,i:4,j:6,k:9,l:4,m:16,n:10,o:10,p:10,q:10,r:7,s:8,t:6,u:10,v:9,w:13,x:9,y:9,z:8,"!":6,"@":16,"#":13,$:10,"%":17,"^":13,"&":12,"*":10,"(":7,")":7,_:10,"-":7,"+":13,"=":13,",":6,".":6,"/":7,"'":4,":":7,"|":7,"?":9,";":7,"<":13,">":13};let Fp=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})(),Ep=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})();var at=function(t){return t.Value="value",t.Units="units",t}(at||{});let Bp=(()=>{var t;class n extends Gt{constructor(){super(...arguments),this.min=0,this.max=100,this.value=0,this.margin=[10,20,10,20],this.valueResizeScale=1,this.unitsResizeScale=1,this.valueTextTransform="",this.valueTranslate="",this.unitsTextTransform="",this.unitsTranslate="",this.barOrientation=te}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>{this.scaleText(at.Value),this.scaleText(at.Units)})}ngOnChanges(){this.update()}
1update(){super.update(),this.hasPreviousValue=void 0!==this.previousValue,this.max=Math.max(this.max,this.value),this.min=Math.min(this.min,this.value),this.hasPreviousValue&&(this.max=Math.max(this.max,this.previousValue),this.min=Math.min(this.min,this.previousValue)),this.dims=wi({width:this.width,height:this.height,margins:this.margin}),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.setColors();const a=this.margin[0]+this.dims.height/2;this.transform=`translate(${this.margin[3]+this.dims.width/2}, ${a})`,this.transformLine=`translate(${this.margin[3]+this.valueScale(this.previousValue)}, ${a})`,this.valueTranslate="translate(0, -15)",this.unitsTranslate="translate(0, 15)",(0,fe.Vy)(this.platformId)?(this.scaleTextSSR("value"),this.scaleTextSSR("units")):(setTimeout(()=>this.scaleText(at.Value),50),setTimeout(()=>this.scaleText(at.Units),50))}getValueDomain(){return[this.min,this.max]}getValueScale(){return Le().range([0,this.dims.width]).domain(this.valueDomain)}getDisplayValue(){return this.valueFormatting?this.valueFormatting(this.value):this.value.toLocaleString()}scaleText(e,a=!0){let s,o;e===at.Value?(s=this.valueTextEl,o=this.valueResizeScale):(s=this.unitsTextEl,o=this.unitsResizeScale);const{width:l,height:h}=s.nativeElement.getBoundingClientRect();if(0===l||0===h)return;const c=o,d=this.dims.width,m=Math.max(this.dims.height/2-15,0),g=Math.floor(d/(l/o)*100)/100,p=Math.floor(m/(h/o)*100)/100;o=Math.min(p,g),o!==c&&(e===at.Value?(this.valueResizeScale=o,this.valueTextTransform=`scale(${o}, ${o})`):(this.unitsResizeScale=o,this.unitsTextTransform=`scale(${o}, ${o})`),this.cd.markForCheck(),a&&(0,fe.UE)(this.platformId)&&setTimeout(()=>{this.scaleText(e,!1)},50))}scaleTextSSR(e){let a=1;const o=function Lp(t,n,i=8){return n.split("").reduce((e,a)=>e+(t[a]||i),0)}(Ap,"value"===e?this.displayValue:this.units,10),h=this.dims.width,c=Math.max(this.dims.height/2-15,0),d=Math.floor(h/(o/a)*100)/100,m=Math.floor(c/(25/a)*100)/100;a=Math.min(m,d),"value"===e?(this.valueResizeScale=a,this.valueTextTransform=`scale(${a}, ${a})`):(this.unitsResizeScale=a,this.unitsTextTransform=`scale(${a}, ${a})`),this.cd.markForCheck()}onClick(){this.select.emit({name:"Value",value:this.value})}setColors(){this.colors=new Si(this.scheme,k.Ordinal,[this.value],this.customColors)}static#e=t=()=>(this.\u0275fac=(()=>{let e;return function(s){return(e||(e=r.xGo(n)))(s||n)}})(),this.\u0275cmp=r.VBU({type:n,selectors:[["ngx-charts-linear-gauge"]],viewQuery:function(a,s){if(1&a&&(r.GBs(Iu,5),r.GBs(Nu,5)),2&a){let o;r.mGM(o=r.lsd())&&(s.valueTextEl=o.first),r.mGM(o=r.lsd())&&(s.unitsTextEl=o.first)}},inputs:{min:"min",max:"max",value:"value",units:"units",previousValue:"previousValue",valueFormatting:"valueFormatting"},standalone:!1,features:[r.Vt3,r.OA$],decls:15,vars:38,consts:[["valueTextEl",""],["unitsTextEl",""],[3,"click","view","showLegend","animations"],[1,"linear-gauge","chart"],["ngx-charts-bar","",1,"background-bar",3,"width","height","x","y","data","orientation","roundEdges","animations"],["ngx-charts-bar","",3,"width","height","x","y","fill","data","orientation","roundEdges","animations"],["x1","0","y1","5","x2","0","y2","15",4,"ngIf"],["x1","0","y1","-5","x2","0","y2","-15",4,"ngIf"],["alignment-baseline","after-edge",1,"value"],["alignment-baseline","before-edge",1,"units"],["x1","0","y1","5","x2","0","y2","15"],["x1","0","y1","-5","x2","0","y2","-15"]],template:function(a,s){if(1&a){const o=r.RV6();r.j41(0,"ngx-charts-chart",2),r.bIt("click",function(){return u.eBV(o),u.Njj(s.onClick())}),u.qSk(),r.j41(1,"g",3),r.nrm(2,"g",4)(3,"g",5),r.DNE(4,Hu,1,2,"line",6)(5,Xu,1,2,"line",7),r.j41(6,"g")(7,"g")(8,"text",8,0),r.EFF(10),r.k0s()(),r.j41(11,"g")(12,"text",9,1),r.EFF(14),r.k0s()()()()()}2&a&&(r.Y8G("view",r.l_i(33,Ye,s.width,s.height))("showLegend",!1)("animations",s.animations),r.R7$(2),r.Y8G("width",s.dims.width)("height",3)("x",s.margin[3])("y",s.dims.height/2+s.margin[0]-2)("data",r.lJ4(36,Rs))("orientation",s.barOrientation.Horizontal)("roundEdges",!0)("animations",s.animations),r.R7$(),r.Y8G("width",s.valueScale(s.value))("height",3)("x",s.margin[3])("y",s.dims.height/2+s.margin[0]-2)("fill",s.colors.getColor(s.units))("data",r.lJ4(37,Rs))("orientation",s.barOrientation.Horizontal)("roundEdges",!0)("animations",s.animations),r.R7$(),r.Y8G("ngIf",s.hasPreviousValue),r.R7$(),r.Y8G("ngIf",s.hasPreviousValue),r.R7$(),r.BMQ("transform",s.transform),r.R7$(),r.BMQ("transform",s.valueTranslate),r.R7$(),r.xc7("text-anchor","middle"),r.BMQ("transform",s.valueTextTransform),r.R7$(2),r.SpI(" ",s.displayValue," "),r.R7$(),r.BMQ("transform",s.unitsTranslate),r.R7$(),r.xc7("text-anchor","middle"),r.BMQ("transform",s.unitsTextTransform),r.R7$(2),r.SpI(" ",s.units," "))},dependencies:[$.bT,$t,mr],styles:[wn,".linear-gauge{cursor:pointer}.linear-gauge .background-bar path{fill:#0000000d}.linear-gauge .units{fill:#666}\n"],encapsulation:2,changeDetection:0}))}return t(),n})(),Mp=(()=>{var t;class n{constructor(){this.isActive=!1,this.tooltipDisabled=!1,this.animations=!0,this.select=new r.bkB,this.activate=new r.bkB,this.deactivate=new r.bkB,this.placementTypes=M,this.styleTypes=xt}tooltipText(e){const a=it(e.data.name);let s;return s=this.valueFormatting?this.valueFormatting(e.data.value):it(e.data.value),`\n <sp
1an class="tooltip-label">${yi(a)}</span>\n <span class="tooltip-val">${s}</span>\n `}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-gauge-arc",""]],inputs:{backgroundArc:"backgroundArc",valueArc:"valueArc",cornerRadius:"cornerRadius",colors:"colors",isActive:"isActive",tooltipDisabled:"tooltipDisabled",valueFormatting:"valueFormatting",tooltipTemplate:"tooltipTemplate",animations:"animations"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},standalone:!1,attrs:Yu,decls:2,vars:23,consts:[["ngx-charts-pie-arc","",1,"background-arc",3,"startAngle","endAngle","innerRadius","outerRadius","cornerRadius","data","animate","pointerEvents"],["ngx-charts-pie-arc","","ngx-tooltip","",3,"select","activate","deactivate","startAngle","endAngle","innerRadius","outerRadius","cornerRadius","fill","data","animate","isActive","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext"]],template:function(a,s){1&a&&(u.qSk(),r.nrm(0,"g",0),r.j41(1,"g",1),r.bIt("select",function(l){return s.select.emit(l)})("activate",function(l){return s.activate.emit(l)})("deactivate",function(l){return s.deactivate.emit(l)}),r.k0s()),2&a&&(r.Y8G("startAngle",0)("endAngle",s.backgroundArc.endAngle)("innerRadius",s.backgroundArc.innerRadius)("outerRadius",s.backgroundArc.outerRadius)("cornerRadius",s.cornerRadius)("data",s.backgroundArc.data)("animate",!1)("pointerEvents",!1),r.R7$(),r.Y8G("startAngle",0)("endAngle",s.valueArc.endAngle)("innerRadius",s.valueArc.innerRadius)("outerRadius",s.valueArc.outerRadius)("cornerRadius",s.cornerRadius)("fill",s.colors.getColor(s.valueArc.data.name))("data",s.valueArc.data)("animate",s.animations)("isActive",s.isActive)("tooltipDisabled",s.tooltipDisabled)("tooltipPlacement",s.placementTypes.Top)("tooltipType",s.styleTypes.tooltip)("tooltipTitle",s.tooltipTemplate?void 0:s.tooltipText(s.valueArc))("tooltipTemplate",s.tooltipTemplate)("tooltipContext",s.valueArc.data))},dependencies:[Ti,Cp],encapsulation:2,changeDetection:0}))}return t(),n})(),Vp=(()=>{var t;class n{constructor(){this.rotate=""}ngOnChanges(e){this.update()}update(){this.rotationAngle=-90+this.startAngle,this.rotate=`rotate(${this.rotationAngle})`,this.ticks=this.getTicks()}getTicks(){const e=this.angleSpan/this.bigSegments,a=e/this.smallSegments,o={big:[],small:[]},l=this.radius+10,h=l+20+10;for(let c=0;c<=this.bigSegments;c++){const d=c*e,m=d*Math.PI/180,g=this.getTextAnchor(d);let p=!1;if(0===c&&360===this.angleSpan&&(p=!0),!p){let x=Number.parseFloat(this.valueScale.invert(d).toString()).toLocaleString();this.tickFormatting&&(x=this.tickFormatting(x)),o.big.push({line:this.getTickPath(l,20,m),textAnchor:g,text:x,textTransform:`\n translate(${h*Math.cos(m)}, ${h*Math.sin(m)}) rotate(${-this.rotationAngle})\n `})}if(c!==this.bigSegments)for(let x=1;x<=this.smallSegments;x++){const f=(d+x*a)*Math.PI/180;o.small.push({line:this.getTickPath(l,10,f)})}}return o}getTextAnchor(e){let a=he.Middle;return(e=(this.startAngle+e)%360)>45&&e<=135?a=he.Start:e>225&&e<=315&&(a=he.End),a}getTickPath(e,a,s){const o=e*Math.sin(s),l=(e+a)*Math.sin(s),d=[{x:e*Math.cos(s),y:o},{x:(e+a)*Math.cos(s),y:l}];return Bs().x(g=>g.x).y(g=>g.y)(d)}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275cmp=r.VBU({type:n,selectors:[["g","ngx-charts-gauge-axis",""]],inputs:{bigSegments:"bigSegments",smallSegments:"smallSegments",min:"min",max:"max",angleSpan:"angleSpan",startAngle:"startAngle",radius:"radius",valueScale:"valueScale",tickFormatting:"tickFormatting"},standalone:!1,features:[r.OA$],attrs:zu,decls:4,vars:4,consts:[["class","gauge-tick gauge-tick-large",4,"ngFor","ngForOf"],["class","gauge-tick gauge-tick-small",4,"ngFor","ngForOf"],[1,"gauge-tick","gauge-tick-large"],["alignment-baseline","central"],[1,"gauge-tick","gauge-tick-small"]],template:function(a,s){1&a&&(u.qSk(),r.j41(0,"g"),r.DNE(1,Wu,2,1,"g",0)(2,ju,3,4,"g",0)(3,Uu,2,1,"g",1),r.k0s()),2&a&&(r.BMQ("transform",s.rotate),r.R7$(),r.Y8G("ngForOf",s.ticks.big),r.R7$(),r.Y8G("ngForOf",s.ticks.big),r.R7$(),r.Y8G("ngForOf",s.ticks.small))},dependencies:[$.Sq],encapsulation:2,changeDetection:0}))}return t(),n})(),Pp=(()=>{var t;class n extends Gt{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ge.Right,this.min=0,this.max=100,this.bigSegments=10,this.smallSegments=5,this.showAxis=!0,this.startAngle=-120,this.angleSpan=240,this.activeEntries=[],this.tooltipDisabled=!1,this.showText=!0,this.activate=new r.bkB,this.deactivate=new r.bkB,this.resizeScale=1,this.rotation="",this.textTransform="scale(1, 1)",this.cornerRadius=10}ngOnChanges(){this.update()}ngAfterViewInit(){super.ngAfterViewInit(),setTimeout(()=>this.scaleText())}
1update(){super.update(),this.showAxis?this.margin||(this.margin=[60,100,60,100]):this.margin||(this.margin=[10,20,10,20]),this.startAngle<0&&(this.startAngle=this.startAngle%360+360),this.angleSpan=Math.min(this.angleSpan,360),this.dims=wi({width:this.width,height:this.height,margins:this.margin,showLegend:this.legend,legendPosition:this.legendPosition}),this.domain=this.getDomain(),this.valueDomain=this.getValueDomain(),this.valueScale=this.getValueScale(),this.displayValue=this.getDisplayValue(),this.outerRadius=Math.min(this.dims.width,this.dims.height)/2,this.arcs=this.getArcs(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform=`translate(${this.margin[3]+this.dims.width/2}, ${this.margin[0]+this.dims.height/2})`,this.rotation=`rotate(${this.startAngle})`,setTimeout(()=>this.scaleText(),50)}getArcs(){const e=[],s=Math.min(.7*this.outerRadius/this.results.length,10),o=.7*s;this.textRadius=this.outerRadius-this.results.length*s,this.cornerRadius=Math.floor(o/2);let l=0;for(const h of this.results){const c=this.outerRadius-l*s,d=c-o,m={endAngle:this.angleSpan*Math.PI/180,innerRadius:d,outerRadius:c,data:{value:this.max,name:h.name}},g={endAngle:Math.min(this.valueScale(h.value),this.angleSpan)*Math.PI/180,innerRadius:d,outerRadius:c,data:{value:h.value,name:h.name}};e.push({backgroundArc:m,valueArc:g}),l++}return e}getDomain(){return this.results.map(e=>e.name)}getValueDomain(){const e=this.results.map(o=>o.value),a=Math.min(...e),s=Math.max(...e);return this.min=void 0!==this.min?Math.min(this.min,a):a,this.max=void 0!==this.max?Math.max(this.max,s):s,[this.min,this.max]}getValueScale(){return Le().range([0,this.angleSpan]).nice().domain(this.valueDomain)}getDisplayValue(){const e=this.results.map(a=>a.value).reduce((a,s)=>a+s,0);return this.textValue&&0!==this.textValue.length?this.textValue.toLocaleString():this.valueFormatting?this.valueFormatting(e):e.toLocaleString()}scaleText(e=!0){if(!this.showText)return;const{width:a}=this.textEl.nativeElement.getBoundingClientRect(),s=this.resizeScale;this.resizeScale=0===a?1:Math.floor(this.textRadius/(a/this.resizeScale)*100)/100,this.resizeScale!==s&&(this.textTransform=`scale(${this.resizeScale}, ${this.resizeScale})`,this.cd.markForCheck(),e&&setTimeout(()=>this.scaleText(!1),50))}onClick(e){this.select.emit(e)}getLegendOptions(){return{scaleType:k.Ordinal,colors:this.colors,domain:this.domain,title:this.legendTitle,position:this.legendPosition}}setColors(){this.colors=new Si(this.scheme,k.Ordinal,this.domain,this.customColors)}onActivate(e){this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value)>-1||(this.activeEntries=[e,...this.activeEntries],this.activate.emit({value:e,entries:this.activeEntries}))}onDeactivate(e){const a=this.activeEntries.findIndex(s=>s.name===e.name&&s.value===e.value);this.activeEntries.splice(a,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:e,entries:this.activeEntries})}isActive(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(s=>e.name===s.name&&e.series===s.series)}trackBy(e,a){return a.valueArc.data.name}static#e=t=()=>(this.\u0275fac=(()=>{let e;return function(s){return(e||(e=r.xGo(n)))(s||n)}})(),this.\u0275cmp=r.VBU({type:n,selectors:[["ngx-charts-gauge"]],contentQueries:function(a,s,o){if(1&a&&r.wni(o,kn,5),2&a){let l;r.mGM(l=r.lsd())&&(s.tooltipTemplate=l.first)}},viewQuery:function(a,s){if(1&a&&r.GBs(Ru,5),2&a){let o;r.mGM(o=r.lsd())&&(s.textEl=o.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",min:"min",max:"max",textValue:"textValue",units:"units",bigSegments:"bigSegments",smallSegments:"smallSegments",results:"results",showAxis:"showAxis",startAngle:"startAngle",angleSpan:"angleSpan",activeEntries:"activeEntries",axisTickFormatting:"axisTickFormatting",tooltipDisabled:"tooltipDisabled",valueFormatting:"valueFormatting",showText:"showText",margin:"margin"},outputs:{activate:"activate",deactivate:"deactivate"},standalone:!1,features:[r.Vt3,r.OA$],decls:5,vars:13,consts:[["textEl",""],[3,"legendLabelClick","legendLabelActivate","legendLabelDeactivate","view","showLegend","legendOptions","activeEntries","animations"],[1,"gauge","chart"],[4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting",4,"ngIf"],["alignment-baseline","central",3,"textAnchor",4,"ngIf"],["ngx-charts-gauge-arc","",3,"select","activate","deactivate","backgroundArc","valueArc","cornerRadius","colors","isActive","tooltipDisabled","tooltipTemplate","valueFormatting","animations"],["ngx-charts-gauge-axis","",3,"bigSegments","smallSegments","min","max","radius","angleSpan","valueScale","startAngle","tickFormatting"],["alignment-baseline","central"],["x","0","dy","0"],["x","0","dy","1.2em"]],template:function(a,s){1&a&&(r.j41(0,"ngx-charts-chart",1),r.bIt("legendLabelClick",function(l){return s.onClick(l)})("legendLabelActivate",function(l){return s.onActivate(l)})("legendLabelDeactivate",function(l){return s.onDeactivate(l)}),u.qSk(),r.j41(1,"g",2),r.DNE(2,qu,2,10,"g",3)(3,Qu,1,9,"g",4)(4,Zu,6,5,"text",5),r.k0s()()),2&a&&(r.Y8G("view",r.l_i(10,Ye,s.width,s.height))("showLegend",s.legend)("legendOptions",s.legendOptions)("activeEntries",s.activeEntries)("animations",s.animations),r.R7$(),r.BMQ("transform",s.transform),r.R7$(),r.Y8G("ngForOf",s.arcs)("ngForTrackBy",s.trackBy),r.R7$(),r.Y8G("ngIf",s.showAxis),r.R7$(),r.Y8G("ngIf",s.showText))},dependencies:[$.Sq,$.bT,$t,Mp,Vp],styles:[wn,".gauge .background-arc path{fill:#0000000d}.gauge .gauge-tick path{stroke:#666}.gauge .gauge-tick text{font-size:12px;fill:#666;font-weight:700}.gauge .gauge-tick-large path{stroke-width:2px}.gauge .gauge-tick-small path{stroke-width:1px}\n"],encapsulation:2,changeDetection:0}))}return t(),n})(),Op=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve,En,gr]}))}return t(),n})(),$p=(()=>{var t;class n{static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve]}))}return t(),n})(),Gp=(()=>{var t;class n{constructor(){!function Rp(){typeof SVGElement<"u"&&typeof SVGElement.prototype.contains>
1"u"&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}static#e=t=()=>(this.\u0275fac=function(a){return new(a||n)},this.\u0275mod=r.$C({type:n}),this.\u0275inj=u.G2t({imports:[ve,fp,gr,yp,Tp,bp,$p,pr,Sp,Fp,En,Ep,Op]}))}return t(),n})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.